diff --git a/android/app/src/main/assets/index.android.bundle b/android/app/src/main/assets/index.android.bundle index dbd2c4d..240eff5 100644 --- a/android/app/src/main/assets/index.android.bundle +++ b/android/app/src/main/assets/index.android.bundle @@ -3,7 +3,7 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date. !(function(n){var e=(function(){function n(n,e){return n}function e(n){var e={};return n.forEach((function(n,t){e[n]=!0})),e}function t(n,t,a){if(n.formatValueCalls++,n.formatValueCalls>200)return`[TOO BIG formatValueCalls ${n.formatValueCalls} exceeded limit of 200]`;var c=r(n,t);if(c)return c;var f=Object.keys(t),p=e(f);if(d(t)&&(f.indexOf('message')>=0||f.indexOf('description')>=0))return o(t);if(0===f.length){if(v(t)){var g=t.name?': '+t.name:'';return n.stylize('[Function'+g+']','special')}if(s(t))return n.stylize(RegExp.prototype.toString.call(t),'regexp');if(y(t))return n.stylize(Date.prototype.toString.call(t),'date');if(d(t))return o(t)}var h,m,b='',j=!1,O=['{','}'];(h=t,Array.isArray(h)&&(j=!0,O=['[',']']),v(t))&&(b=' [Function'+(t.name?': '+t.name:'')+']');return s(t)&&(b=' '+RegExp.prototype.toString.call(t)),y(t)&&(b=' '+Date.prototype.toUTCString.call(t)),d(t)&&(b=' '+o(t)),0!==f.length||j&&0!=t.length?a<0?s(t)?n.stylize(RegExp.prototype.toString.call(t),'regexp'):n.stylize('[Object]','special'):(n.seen.push(t),m=j?i(n,t,a,p,f):f.map((function(e){return l(n,t,a,p,e,j)})),n.seen.pop(),u(m,b,O)):O[0]+b+O[1]}function r(n,e){if(p(e))return n.stylize('undefined','undefined');if('string'==typeof e){var t="'"+JSON.stringify(e).replace(/^"|"$/g,'').replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return n.stylize(t,'string')}return f(e)?n.stylize(''+e,'number'):a(e)?n.stylize(''+e,'boolean'):c(e)?n.stylize('null','null'):void 0}function o(n){return'['+Error.prototype.toString.call(n)+']'}function i(n,e,t,r,o){for(var i=[],u=0,a=e.length;u-1&&(a=l?a.split('\n').map((function(n){return' '+n})).join('\n').slice(2):'\n'+a.split('\n').map((function(n){return' '+n})).join('\n')):a=n.stylize('[Circular]','special')),p(u)){if(l&&i.match(/^\d+$/))return a;(u=JSON.stringify(''+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(u=u.slice(1,u.length-1),u=n.stylize(u,'name')):(u=u.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),u=n.stylize(u,'string'))}return u+': '+a}function u(n,e,t){return n.reduce((function(n,e){return e.indexOf('\n')>=0&&0,n+e.replace(/\u001b\[\d\d?m/g,'').length+1}),0)>60?t[0]+(''===e?'':e+'\n ')+' '+n.join(',\n ')+' '+t[1]:t[0]+e+' '+n.join(', ')+' '+t[1]}function a(n){return'boolean'==typeof n}function c(n){return null===n}function f(n){return'number'==typeof n}function p(n){return void 0===n}function s(n){return g(n)&&'[object RegExp]'===h(n)}function g(n){return'object'==typeof n&&null!==n}function y(n){return g(n)&&'[object Date]'===h(n)}function d(n){return g(n)&&('[object Error]'===h(n)||n instanceof Error)}function v(n){return'function'==typeof n}function h(n){return Object.prototype.toString.call(n)}function m(n,e){return Object.prototype.hasOwnProperty.call(n,e)}return function(e,r){return t({seen:[],formatValueCalls:0,stylize:n},e,r.depth)}})(),t=0,r=1,o=2,i=3,l=[];l[t]='debug',l[r]='log',l[o]='warning',l[i]='error';function u(t){return function(){var r;r=1===arguments.length&&'string'==typeof arguments[0]?arguments[0]:Array.prototype.map.call(arguments,(function(n){return e(n,{depth:10})})).join(', ');var u=arguments[0],a=t;'string'==typeof u&&'Warning: '===u.slice(0,9)&&a>=i&&(a=o),n.__inspectorLog&&n.__inspectorLog(l[a],r,[].slice.call(arguments),1),c.length&&(r=f('',r)),n.nativeLoggingHook(r,a)}}function a(n,e){return Array.apply(null,Array(e)).map((function(){return n}))}var c=[];function f(n,e){return c.join('')+n+' '+(e||'')}if(n.nativeLoggingHook){n.console;n.console={error:u(i),info:u(r),log:u(r),warn:u(o),trace:u(t),debug:u(t),table:function(e){if(!Array.isArray(e)){var t=e;for(var o in e=[],t)if(t.hasOwnProperty(o)){var i=t[o];i["(index)"]=o,e.push(i)}}if(0!==e.length){var l=Object.keys(e[0]).sort(),u=[],c=[];l.forEach((function(n,t){c[t]=n.length;for(var r=0;r';return function(){for(var r=arguments.length,u=new Array(r),e=0;e57343)s.push(a);else if(56320<=a&&a<=57343)s.push(65533);else if(55296<=a&&a<=56319)if(o===t-1)s.push(65533);else{var u=i.charCodeAt(o+1);if(56320<=u&&u<=57343){var l=1023&a,f=1023&u;s.push(65536+(l<<10)+f),o+=1}else s.push(65533)}o+=1}return s}function a(n){for(var i='',t=0;t>10),56320+(1023&o)))}return i}function u(n){return 0<=n&&n<=127}var l=u,f=-1;function c(n){this.tokens=[].slice.call(n),this.tokens.reverse()}c.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.pop():f},prepend:function(n){if(Array.isArray(n))for(var i=n;i.length;)this.tokens.push(i.pop());else this.tokens.push(n)},push:function(n){if(Array.isArray(n))for(var i=n;i.length;)this.tokens.unshift(i.shift());else this.tokens.unshift(n)}};var d=-1;function h(n,i){if(n)throw TypeError('Decoder error');return i||65533}function p(n){throw TypeError('The code point '+n+' could not be encoded.')}function _(n){return n=String(n).trim().toLowerCase(),Object.prototype.hasOwnProperty.call(w,n)?w[n]:null}var b=[{encodings:[{labels:["unicode-1-1-utf-8","utf-8","utf8"],name:"UTF-8"}],heading:"The Encoding"},{encodings:[{labels:["866","cp866","csibm866","ibm866"],name:"IBM866"},{labels:["csisolatin2","iso-8859-2","iso-ir-101","iso8859-2","iso88592","iso_8859-2","iso_8859-2:1987","l2","latin2"],name:"ISO-8859-2"},{labels:["csisolatin3","iso-8859-3","iso-ir-109","iso8859-3","iso88593","iso_8859-3","iso_8859-3:1988","l3","latin3"],name:"ISO-8859-3"},{labels:["csisolatin4","iso-8859-4","iso-ir-110","iso8859-4","iso88594","iso_8859-4","iso_8859-4:1988","l4","latin4"],name:"ISO-8859-4"},{labels:["csisolatincyrillic","cyrillic","iso-8859-5","iso-ir-144","iso8859-5","iso88595","iso_8859-5","iso_8859-5:1988"],name:"ISO-8859-5"},{labels:["arabic","asmo-708","csiso88596e","csiso88596i","csisolatinarabic","ecma-114","iso-8859-6","iso-8859-6-e","iso-8859-6-i","iso-ir-127","iso8859-6","iso88596","iso_8859-6","iso_8859-6:1987"],name:"ISO-8859-6"},{labels:["csisolatingreek","ecma-118","elot_928","greek","greek8","iso-8859-7","iso-ir-126","iso8859-7","iso88597","iso_8859-7","iso_8859-7:1987","sun_eu_greek"],name:"ISO-8859-7"},{labels:["csiso88598e","csisolatinhebrew","hebrew","iso-8859-8","iso-8859-8-e","iso-ir-138","iso8859-8","iso88598","iso_8859-8","iso_8859-8:1988","visual"],name:"ISO-8859-8"},{labels:["csiso88598i","iso-8859-8-i","logical"],name:"ISO-8859-8-I"},{labels:["csisolatin6","iso-8859-10","iso-ir-157","iso8859-10","iso885910","l6","latin6"],name:"ISO-8859-10"},{labels:["iso-8859-13","iso8859-13","iso885913"],name:"ISO-8859-13"},{labels:["iso-8859-14","iso8859-14","iso885914"],name:"ISO-8859-14"},{labels:["csisolatin9","iso-8859-15","iso8859-15","iso885915","iso_8859-15","l9"],name:"ISO-8859-15"},{labels:["iso-8859-16"],name:"ISO-8859-16"},{labels:["cskoi8r","koi","koi8","koi8-r","koi8_r"],name:"KOI8-R"},{labels:["koi8-ru","koi8-u"],name:"KOI8-U"},{labels:["csmacintosh","mac","macintosh","x-mac-roman"],name:"macintosh"},{labels:["dos-874","iso-8859-11","iso8859-11","iso885911","tis-620","windows-874"],name:"windows-874"},{labels:["cp1250","windows-1250","x-cp1250"],name:"windows-1250"},{labels:["cp1251","windows-1251","x-cp1251"],name:"windows-1251"},{labels:["ansi_x3.4-1968","ascii","cp1252","cp819","csisolatin1","ibm819","iso-8859-1","iso-ir-100","iso8859-1","iso88591","iso_8859-1","iso_8859-1:1987","l1","latin1","us-ascii","windows-1252","x-cp1252"],name:"windows-1252"},{labels:["cp1253","windows-1253","x-cp1253"],name:"windows-1253"},{labels:["cp1254","csisolatin5","iso-8859-9","iso-ir-148","iso8859-9","iso88599","iso_8859-9","iso_8859-9:1989","l5","latin5","windows-1254","x-cp1254"],name:"windows-1254"},{labels:["cp1255","windows-1255","x-cp1255"],name:"windows-1255"},{labels:["cp1256","windows-1256","x-cp1256"],name:"windows-1256"},{labels:["cp1257","windows-1257","x-cp1257"],name:"windows-1257"},{labels:["cp1258","windows-1258","x-cp1258"],name:"windows-1258"},{labels:["x-mac-cyrillic","x-mac-ukrainian"],name:"x-mac-cyrillic"}],heading:"Legacy single-byte encodings"},{encodings:[{labels:["chinese","csgb2312","csiso58gb231280","gb2312","gb_2312","gb_2312-80","gbk","iso-ir-58","x-gbk"],name:"GBK"},{labels:["gb18030"],name:"gb18030"}],heading:"Legacy multi-byte Chinese (simplified) encodings"},{encodings:[{labels:["big5","big5-hkscs","cn-big5","csbig5","x-x-big5"],name:"Big5"}],heading:"Legacy multi-byte Chinese (traditional) encodings"},{encodings:[{labels:["cseucpkdfmtjapanese","euc-jp","x-euc-jp"],name:"EUC-JP"},{labels:["csiso2022jp","iso-2022-jp"],name:"ISO-2022-JP"},{labels:["csshiftjis","ms932","ms_kanji","shift-jis","shift_jis","sjis","windows-31j","x-sjis"],name:"Shift_JIS"}],heading:"Legacy multi-byte Japanese encodings"},{encodings:[{labels:["cseuckr","csksc56011987","euc-kr","iso-ir-149","korean","ks_c_5601-1987","ks_c_5601-1989","ksc5601","ksc_5601","windows-949"],name:"EUC-KR"}],heading:"Legacy multi-byte Korean encodings"},{encodings:[{labels:["csiso2022kr","hz-gb-2312","iso-2022-cn","iso-2022-cn-ext","iso-2022-kr"],name:"replacement"},{labels:["utf-16be"],name:"UTF-16BE"},{labels:["utf-16","utf-16le"],name:"UTF-16LE"},{labels:["x-user-defined"],name:"x-user-defined"}],heading:"Legacy miscellaneous encodings"}],w={};b.forEach((function(n){n.encodings.forEach((function(n){n.labels.forEach((function(i){w[i]=n}))}))}));var v,y,x={},O={};function k(n,i){return i&&i[n]||null}function E(n,i){var t=i.indexOf(n);return-1===t?null:t}function j(i){if(!('encoding-indexes'in n))throw Error("Indexes missing. Did you forget to include encoding-indexes.js first?");return n['encoding-indexes'][i]}function B(n){if(n>39419&&n<189e3||n>1237575)return null;if(7457===n)return 59335;var i,t=0,o=0,s=j('gb18030-ranges');for(i=0;i>6*o)+s];o>0;){var u=t>>6*(o-1);a.push(128|63&u),o-=1}return a}}function P(n,i){var t=i.fatal;this.handler=function(i,o){if(o===f)return d;if(u(o))return o;var s=n[o-128];return null===s?h(t):s}}function D(n,i){i.fatal;this.handler=function(i,t){if(t===f)return d;if(l(t))return t;var o=E(t,n);return null===o&&p(t),o+128}}function F(n){var t=n.fatal,o=0,s=0,a=0;this.handler=function(n,l){if(l===f&&0===o&&0===s&&0===a)return d;var c;if(l!==f||0===o&&0===s&&0===a||(o=0,s=0,a=0,h(t)),0!==a){c=null,i(l,48,57)&&(c=B(10*(126*(10*(o-129)+s-48)+a-129)+l-48));var p=[s,a,l];return o=0,s=0,a=0,null===c?(n.prepend(p),h(t)):c}if(0!==s)return i(l,129,254)?(a=l,null):(n.prepend([s,l]),o=0,s=0,h(t));if(0!==o){if(i(l,48,57))return s=l,null;var _=o,b=null;o=0;var w=l<127?64:65;return(i(l,64,126)||i(l,128,254))&&(b=190*(_-129)+(l-w)),null===(c=null===b?null:k(b,j('gb18030')))&&u(l)&&n.prepend(l),null===c?h(t):c}return u(l)?l:128===l?8364:i(l,129,254)?(o=l,null):h(t)}}function J(n,i){n.fatal;this.handler=function(n,o){if(o===f)return d;if(l(o))return o;if(58853===o)return p(o);if(i&&8364===o)return 128;var s=E(o,j('gb18030'));if(null!==s){var a=s%190;return[t(s/190)+129,a+(a<63?64:65)]}if(i)return p(o);s=S(o);var u=t(s/10/126/10),c=t((s-=10*u*126*10)/10/126),h=t((s-=10*c*126)/10);return[u+129,c+48,h+129,s-10*h+48]}}function K(n){var t=n.fatal,o=0;this.handler=function(n,s){if(s===f&&0!==o)return o=0,h(t);if(s===f&&0===o)return d;if(0!==o){var a=o,l=null;o=0;var c=s<127?64:98;switch((i(s,64,126)||i(s,161,254))&&(l=157*(a-129)+(s-c)),l){case 1133:return[202,772];case 1135:return[202,780];case 1164:return[234,772];case 1166:return[234,780]}var p=null===l?null:k(l,j('big5'));return null===p&&u(s)&&n.prepend(s),null===p?h(t):p}return u(s)?s:i(s,129,254)?(o=s,null):h(t)}}function R(n){n.fatal;this.handler=function(n,i){if(i===f)return d;if(l(i))return i;var o=I(i);if(null===o)return p(i);var s=t(o/157)+129;if(s<161)return p(i);var a=o%157;return[s,a+(a<63?64:98)]}}function G(n){var t=n.fatal,o=!1,s=0;this.handler=function(n,a){if(a===f&&0!==s)return s=0,h(t);if(a===f&&0===s)return d;if(142===s&&i(a,161,223))return s=0,65216+a;if(143===s&&i(a,161,254))return o=!0,s=a,null;if(0!==s){var l=s;s=0;var c=null;return i(l,161,254)&&i(a,161,254)&&(c=k(94*(l-161)+(a-161),j(o?'jis0212':'jis0208'))),o=!1,i(a,161,254)||n.prepend(a),null===c?h(t):c}return u(a)?a:142===a||143===a||i(a,161,254)?(s=a,null):h(t)}}function N(n){n.fatal;this.handler=function(n,o){if(o===f)return d;if(l(o))return o;if(165===o)return 92;if(8254===o)return 126;if(i(o,65377,65439))return[142,o-65377+161];8722===o&&(o=65293);var s=E(o,j('jis0208'));return null===s?p(o):[t(s/94)+161,s%94+161]}}function z(n){var t=n.fatal,o=0,s=1,a=2,u=3,l=4,c=5,p=6,_=o,b=o,w=0,v=!1;this.handler=function(n,y){switch(_){default:case o:return 27===y?(_=c,null):i(y,0,127)&&14!==y&&15!==y&&27!==y?(v=!1,y):y===f?d:(v=!1,h(t));case s:return 27===y?(_=c,null):92===y?(v=!1,165):126===y?(v=!1,8254):i(y,0,127)&&14!==y&&15!==y&&27!==y&&92!==y&&126!==y?(v=!1,y):y===f?d:(v=!1,h(t));case a:return 27===y?(_=c,null):i(y,33,95)?(v=!1,65344+y):y===f?d:(v=!1,h(t));case u:return 27===y?(_=c,null):i(y,33,126)?(v=!1,w=y,_=l,null):y===f?d:(v=!1,h(t));case l:if(27===y)return _=c,h(t);if(i(y,33,126)){_=u;var x=k(94*(w-33)+y-33,j('jis0208'));return null===x?h(t):x}return y===f?(_=u,n.prepend(y),h(t)):(_=u,h(t));case c:return 36===y||40===y?(w=y,_=p,null):(n.prepend(y),v=!1,_=b,h(t));case p:var O=w;w=0;var E=null;if(40===O&&66===y&&(E=o),40===O&&74===y&&(E=s),40===O&&73===y&&(E=a),36!==O||64!==y&&66!==y||(E=u),null!==E){_=_=E;var B=v;return v=!0,B?h(t):null}return n.prepend([O,y]),v=!1,_=b,h(t)}}}function q(n){n.fatal;var i=0,o=1,s=2,a=i;this.handler=function(n,u){if(u===f&&a!==i)return n.prepend(u),a=i,[27,40,66];if(u===f&&a===i)return d;if(!(a!==i&&a!==o||14!==u&&15!==u&&27!==u))return p(65533);if(a===i&&l(u))return u;if(a===o&&(l(u)&&92!==u&&126!==u||165==u||8254==u)){if(l(u))return u;if(165===u)return 92;if(8254===u)return 126}if(l(u)&&a!==i)return n.prepend(u),a=i,[27,40,66];if((165===u||8254===u)&&a!==o)return n.prepend(u),a=o,[27,40,74];8722===u&&(u=65293);var c=E(u,j('jis0208'));return null===c?p(u):a!==s?(n.prepend(u),a=s,[27,36,66]):[t(c/94)+33,c%94+33]}}function H(n){var t=n.fatal,o=0;this.handler=function(n,s){if(s===f&&0!==o)return o=0,h(t);if(s===f&&0===o)return d;if(0!==o){var a=o,l=null;o=0;var c=s<127?64:65,p=a<160?129:193;if((i(s,64,126)||i(s,128,252))&&(l=188*(a-p)+s-c),i(l,8836,10715))return 48508+l;var _=null===l?null:k(l,j('jis0208'));return null===_&&u(s)&&n.prepend(s),null===_?h(t):_}return u(s)||128===s?s:i(s,161,223)?65216+s:i(s,129,159)||i(s,224,252)?(o=s,null):h(t)}}function Q(n){n.fatal;this.handler=function(n,o){if(o===f)return d;if(l(o)||128===o)return o;if(165===o)return 92;if(8254===o)return 126;if(i(o,65377,65439))return o-65377+161;8722===o&&(o=65293);var s=T(o);if(null===s)return p(o);var a=t(s/188),u=s%188;return[a+(a<31?129:193),u+(u<63?64:65)]}}function V(n){var t=n.fatal,o=0;this.handler=function(n,s){if(s===f&&0!==o)return o=0,h(t);if(s===f&&0===o)return d;if(0!==o){var a=o,l=null;o=0,i(s,65,254)&&(l=190*(a-129)+(s-65));var c=null===l?null:k(l,j('euc-kr'));return null===l&&u(s)&&n.prepend(s),null===c?h(t):c}return u(s)?s:i(s,129,254)?(o=s,null):h(t)}}function W(n){n.fatal;this.handler=function(n,i){if(i===f)return d;if(l(i))return i;var o=E(i,j('euc-kr'));return null===o?p(i):[t(o/190)+129,o%190+65]}}function X(n,i){var t=n>>8,o=255&n;return i?[t,o]:[o,t]}function Y(n,t){var o=t.fatal,s=null,a=null;this.handler=function(t,u){if(u===f&&(null!==s||null!==a))return h(o);if(u===f&&null===s&&null===a)return d;if(null===s)return s=u,null;var l;if(l=n?(s<<8)+u:(u<<8)+s,s=null,null!==a){var c=a;return a=null,i(l,56320,57343)?65536+1024*(c-55296)+(l-56320):(t.prepend(X(l,n)),h(o))}return i(l,55296,56319)?(a=l,null):i(l,56320,57343)?h(o):l}}function Z(n,t){t.fatal;this.handler=function(t,o){if(o===f)return d;if(i(o,0,65535))return X(o,n);var s=X(55296+(o-65536>>10),n),a=X(56320+(o-65536&1023),n);return s.concat(a)}}function $(n){n.fatal;this.handler=function(n,i){return i===f?d:u(i)?i:63360+i-128}}function nn(n){n.fatal;this.handler=function(n,t){return t===f?d:l(t)?t:i(t,63360,63487)?t-63360+128:p(t)}}Object.defineProperty&&(Object.defineProperty(C.prototype,'encoding',{get:function(){return this._encoding.name.toLowerCase()}}),Object.defineProperty(C.prototype,'fatal',{get:function(){return'fatal'===this._error_mode}}),Object.defineProperty(C.prototype,'ignoreBOM',{get:function(){return this._ignoreBOM}})),C.prototype.decode=function(n,i){var t;t='object'==typeof n&&n instanceof ArrayBuffer?new Uint8Array(n):'object'==typeof n&&'buffer'in n&&n.buffer instanceof ArrayBuffer?new Uint8Array(n.buffer,n.byteOffset,n.byteLength):new Uint8Array(0),i=o(i),this._do_not_flush||(this._decoder=O[this._encoding.name]({fatal:'fatal'===this._error_mode}),this._BOMseen=!1),this._do_not_flush=Boolean(i.stream);for(var s,u=new c(t),l=[];;){var h=u.read();if(h===f)break;if((s=this._decoder.handler(u,h))===d)break;null!==s&&(Array.isArray(s)?l.push.apply(l,s):l.push(s))}if(!this._do_not_flush){do{if((s=this._decoder.handler(u,u.read()))===d)break;null!==s&&(Array.isArray(s)?l.push.apply(l,s):l.push(s))}while(!u.endOfStream());this._decoder=null}return function(n){var i,t;return i=['UTF-8','UTF-16LE','UTF-16BE'],t=this._encoding.name,-1===i.indexOf(t)||this._ignoreBOM||this._BOMseen||(n.length>0&&65279===n[0]?(this._BOMseen=!0,n.shift()):n.length>0&&(this._BOMseen=!0)),a(n)}.call(this,l)},Object.defineProperty&&Object.defineProperty(A.prototype,'encoding',{get:function(){return this._encoding.name.toLowerCase()}}),A.prototype.encode=function(n,i){n=void 0===n?'':String(n),i=o(i),this._do_not_flush||(this._encoder=x[this._encoding.name]({fatal:'fatal'===this._fatal})),this._do_not_flush=Boolean(i.stream);for(var t,a=new c(s(n)),u=[];;){var l=a.read();if(l===f)break;if((t=this._encoder.handler(a,l))===d)break;Array.isArray(t)?u.push.apply(u,t):u.push(t)}if(!this._do_not_flush){for(;(t=this._encoder.handler(a,a.read()))!==d;)Array.isArray(t)?u.push.apply(u,t):u.push(t);this._encoder=null}return new Uint8Array(u)},x['UTF-8']=function(n){return new M(n)},O['UTF-8']=function(n){return new L(n)},'encoding-indexes'in n&&b.forEach((function(n){'Legacy single-byte encodings'===n.heading&&n.encodings.forEach((function(n){var i=n.name,t=j(i.toLowerCase());O[i]=function(n){return new P(t,n)},x[i]=function(n){return new D(t,n)}}))})),O.GBK=function(n){return new F(n)},x.GBK=function(n){return new J(n,!0)},x.gb18030=function(n){return new J(n)},O.gb18030=function(n){return new F(n)},x.Big5=function(n){return new R(n)},O.Big5=function(n){return new K(n)},x['EUC-JP']=function(n){return new N(n)},O['EUC-JP']=function(n){return new G(n)},x['ISO-2022-JP']=function(n){return new q(n)},O['ISO-2022-JP']=function(n){return new z(n)},x.Shift_JIS=function(n){return new Q(n)},O.Shift_JIS=function(n){return new H(n)},x['EUC-KR']=function(n){return new W(n)},O['EUC-KR']=function(n){return new V(n)},x['UTF-16BE']=function(n){return new Z(!0,n)},O['UTF-16BE']=function(n){return new Y(!0,n)},x['UTF-16LE']=function(n){return new Z(!1,n)},O['UTF-16LE']=function(n){return new Y(!1,n)},x['x-user-defined']=function(n){return new nn(n)},O['x-user-defined']=function(n){return new $(n)},n.TextEncoder||(n.TextEncoder=A),n.TextDecoder||(n.TextDecoder=C),void 0!==m&&m.exports&&(m.exports={TextEncoder:n.TextEncoder,TextDecoder:n.TextDecoder,EncodingIndexes:n["encoding-indexes"]})})(this||{})}),439,[440]); __d((function(g,r,i,a,m,e,d){}),440,[]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),r=e(_r(d[2])),n=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=u(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var f=o?Object.getOwnPropertyDescriptor(e,a):null;f&&(f.get||f.set)?Object.defineProperty(n,a,f):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n})(_r(d[3])),o=_r(d[4]);_r(d[5]);var a=_r(d[6]);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}_e.default=function(){var e={backgroundColor:_r(d[7]).Colors.darker},u=(0,n.useState)(null),f=(0,r.default)(u,2),l=f[0],c=f[1];return(0,n.useEffect)((function(){console.log('inside useeffect');var e=(function(){var e=(0,t.default)((function*(){if(!l){var e=yield(0,_r(d[8]).getFormTemplate)('eb3df1f89653475f0bcbd22da35f8d2f126db8a68a88a7abedc53535c76c39b4');console.log("Form isss",e),c(e)}}));return function(){return e.apply(this,arguments)}})();e()}),[l]),(0,a.jsxs)(o.SafeAreaView,{style:e,children:[(0,a.jsx)(o.StatusBar,{barStyle:'light-content',backgroundColor:e.backgroundColor}),(0,a.jsx)(o.ScrollView,{contentInsetAdjustmentBehavior:"automatic",style:e,children:(0,a.jsx)(_r(d[9]).PrescriptionCreator,{form:l})})]})}}),441,[1,339,26,153,2,442,194,462,473,503]); -__d((function(g,r,i,a,m,e,d){'web'!==r(d[0]).Platform.OS&&(0,r(d[1]).setupURLPolyfill)()}),442,[2,443]); -__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0});var l={setupURLPolyfill:!0};e.setupURLPolyfill=function(){globalThis.REACT_NATIVE_URL_POLYFILL=`${o.default.name}@${o.default.version}`,globalThis.URL=r(d[3]).URL,globalThis.URLSearchParams=r(d[4]).URLSearchParams},r(d[1]);var o=t(r(d[2]));Object.keys(r(d[3])).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(l,t)||t in e&&e[t]===r(d[3])[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r(d[3])[t]}}))})),Object.keys(r(d[4])).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(l,t)||t in e&&e[t]===r(d[4])[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r(d[4])[t]}}))}))}),443,[1,444,445,446,461]); -__d((function(g,r,i,a,m,e,d){var t=r(d[0]),n=parseInt(t.Platform.Version,10);'ios'===t.Platform.OS&&10===n&&null==Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,'byteLength')&&Object.defineProperty(ArrayBuffer.prototype,'byteLength',{configurable:!0,enumerable:!1,get:function(){return null}})}),444,[2]); -__d((function(e,t,i,r,a,n,l){a.exports={name:"react-native-url-polyfill",version:"2.0.0",description:"A lightweight and trustworthy URL polyfill for React Native",keywords:["URL","URLSearchParams","polyfill","react native","whatwg-url"],bugs:{url:"https://github.com/charpeni/react-native-url-polyfill/issues"},homepage:"https://github.com/charpeni/react-native-url-polyfill",readme:"https://github.com/charpeni/react-native-url-polyfill#readme",repository:{type:"git",url:"https://github.com/charpeni/react-native-url-polyfill.git"},main:"index.js",types:"index.d.ts",scripts:{test:"jest",lint:"eslint .",prepare:"husky install","bundle-size":"node scripts/bundle-size"},author:"Nicolas Charpentier ",license:"MIT",dependencies:{"whatwg-url-without-unicode":"8.0.0-3"},devDependencies:{"@react-native-community/eslint-config":"3.2.0",detox:"20.9.1",eslint:"8.44.0","eslint-plugin-prettier":"4.2.1",husky:"8.0.3",jest:"29.5.0","lint-staged":"13.2.3","metro-react-native-babel-preset":"0.76.7",nanoid:"3.3.6",prettier:"2.8.8",react:"18.2.0","react-native":"0.72.1","react-native-bundle-scale":"1.1.0",typescript:"5.1.6"},peerDependencies:{"react-native":"*"},jest:{preset:"react-native",testPathIgnorePatterns:["/node_modules/","./platforms/"]},"lint-staged":{"*.js":["eslint --fix"]}}}),445,[]); -__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.URL=void 0;var t=r(d[0]),o=null,n=t.NativeModules.BlobModule;n&&'string'==typeof n.BLOB_URI_SCHEME&&(o=n.BLOB_URI_SCHEME+':','string'==typeof n.BLOB_URI_HOST&&(o+=`//${n.BLOB_URI_HOST}/`)),r(d[1]).URL.createObjectURL=function(t){if(null===o)throw new Error('Cannot create URL for blob!');return`${o}${t.data.blobId}?offset=${t.data.offset}&size=${t.size}`},r(d[1]).URL.revokeObjectURL=function(t){};e.URL=r(d[1]).URL}),446,[2,447]); -__d((function(g,r,i,a,m,e,d){"use strict";var s={};r(d[0]).URL.install(s),r(d[0]).URLSearchParams.install(s),e.URL=s.URL,e.URLSearchParams=s.URLSearchParams,e.parseURL=r(d[1]).parseURL,e.basicURLParse=r(d[1]).basicURLParse,e.serializeURL=r(d[1]).serializeURL,e.serializeHost=r(d[1]).serializeHost,e.serializeInteger=r(d[1]).serializeInteger,e.serializeURLOrigin=r(d[1]).serializeURLOrigin,e.setTheUsername=r(d[1]).setTheUsername,e.setThePassword=r(d[1]).setThePassword,e.cannotHaveAUsernamePasswordPort=r(d[1]).cannotHaveAUsernamePasswordPort,e.percentDecode=r(d[2]).percentDecode}),447,[448,452,457]); -__d((function(g,r,i,a,m,e,d){"use strict";e.URL=r(d[0]),e.URLSearchParams=r(d[1])}),448,[449,458]); -__d((function(g,r,i,a,m,e,d){"use strict";var t=r(d[0]),o=r(d[1]),n=r(d[2]),s={_mixedIntoPredicates:[],is:function(t){if(t){if(r(d[3]).hasOwn(t,r(d[3]).implSymbol)&&t[r(d[3]).implSymbol]instanceof r(d[4]).implementation)return!0;for(var o of m.exports._mixedIntoPredicates)if(o(t))return!0}return!1},isImpl:function(t){if(t){if(t instanceof r(d[4]).implementation)return!0;var o=r(d[3]).wrapperForImpl(t);for(var n of m.exports._mixedIntoPredicates)if(n(o))return!0}return!1},convert:function(t){var o=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).context,n=void 0===o?"The provided value":o;if(m.exports.is(t))return r(d[3]).implForWrapper(t);throw new TypeError(`${n} is not of type 'URL'.`)},create:function(t,o,n){if(void 0===t[r(d[3]).ctorRegistrySymbol])throw new Error("Internal error: invalid global object");var l=t[r(d[3]).ctorRegistrySymbol].URL;if(void 0===l)throw new Error("Internal error: constructor URL is not installed on the passed global object");var p=Object.create(l.prototype);return p=s.setup(p,t,o,n)},createImpl:function(t,o,n){var l=s.create(t,o,n);return r(d[3]).implForWrapper(l)},_internalSetup:function(t){},setup:function(t,o){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return l.wrapper=t,s._internalSetup(t),Object.defineProperty(t,r(d[3]).implSymbol,{value:new(r(d[4]).implementation)(o,n,l),configurable:!0}),t[r(d[3]).implSymbol][r(d[3]).wrapperSymbol]=t,r(d[4]).init&&r(d[4]).init(t[r(d[3]).implSymbol],l),t},install:function(l){var p=(function(){function t(n){if(o(this,t),arguments.length<1)throw new TypeError("Failed to construct 'URL': 1 argument required, but only "+arguments.length+" present.");var p=[],h=arguments[0];h=r(d[5]).USVString(h,{context:"Failed to construct 'URL': parameter 1"}),p.push(h);var c=arguments[1];return void 0!==c&&(c=r(d[5]).USVString(c,{context:"Failed to construct 'URL': parameter 2"})),p.push(c),s.setup(Object.create(this.constructor.prototype),l,p)}return n(t,[{key:"toJSON",value:function(){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");return this[r(d[3]).implSymbol].toJSON()}},{key:"href",get:function(){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");return this[r(d[3]).implSymbol].href},set:function(t){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");t=r(d[5]).USVString(t,{context:"Failed to set the 'href' property on 'URL': The provided value"}),this[r(d[3]).implSymbol].href=t}},{key:"toString",value:function(){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");return this[r(d[3]).implSymbol].href}},{key:"origin",get:function(){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");return this[r(d[3]).implSymbol].origin}},{key:"protocol",get:function(){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");return this[r(d[3]).implSymbol].protocol},set:function(t){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");t=r(d[5]).USVString(t,{context:"Failed to set the 'protocol' property on 'URL': The provided value"}),this[r(d[3]).implSymbol].protocol=t}},{key:"username",get:function(){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");return this[r(d[3]).implSymbol].username},set:function(t){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");t=r(d[5]).USVString(t,{context:"Failed to set the 'username' property on 'URL': The provided value"}),this[r(d[3]).implSymbol].username=t}},{key:"password",get:function(){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");return this[r(d[3]).implSymbol].password},set:function(t){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");t=r(d[5]).USVString(t,{context:"Failed to set the 'password' property on 'URL': The provided value"}),this[r(d[3]).implSymbol].password=t}},{key:"host",get:function(){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");return this[r(d[3]).implSymbol].host},set:function(t){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");t=r(d[5]).USVString(t,{context:"Failed to set the 'host' property on 'URL': The provided value"}),this[r(d[3]).implSymbol].host=t}},{key:"hostname",get:function(){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");return this[r(d[3]).implSymbol].hostname},set:function(t){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");t=r(d[5]).USVString(t,{context:"Failed to set the 'hostname' property on 'URL': The provided value"}),this[r(d[3]).implSymbol].hostname=t}},{key:"port",get:function(){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");return this[r(d[3]).implSymbol].port},set:function(t){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");t=r(d[5]).USVString(t,{context:"Failed to set the 'port' property on 'URL': The provided value"}),this[r(d[3]).implSymbol].port=t}},{key:"pathname",get:function(){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");return this[r(d[3]).implSymbol].pathname},set:function(t){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");t=r(d[5]).USVString(t,{context:"Failed to set the 'pathname' property on 'URL': The provided value"}),this[r(d[3]).implSymbol].pathname=t}},{key:"search",get:function(){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");return this[r(d[3]).implSymbol].search},set:function(t){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");t=r(d[5]).USVString(t,{context:"Failed to set the 'search' property on 'URL': The provided value"}),this[r(d[3]).implSymbol].search=t}},{key:"searchParams",get:function(){var t=this;if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");return r(d[3]).getSameObject(this,"searchParams",(function(){return r(d[3]).tryWrapperForImpl(t[r(d[3]).implSymbol].searchParams)}))}},{key:"hash",get:function(){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");return this[r(d[3]).implSymbol].hash},set:function(t){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");t=r(d[5]).USVString(t,{context:"Failed to set the 'hash' property on 'URL': The provided value"}),this[r(d[3]).implSymbol].hash=t}}]),t})();Object.defineProperties(p.prototype,t({toJSON:{enumerable:!0},href:{enumerable:!0},toString:{enumerable:!0},origin:{enumerable:!0},protocol:{enumerable:!0},username:{enumerable:!0},password:{enumerable:!0},host:{enumerable:!0},hostname:{enumerable:!0},port:{enumerable:!0},pathname:{enumerable:!0},search:{enumerable:!0},searchParams:{enumerable:!0},hash:{enumerable:!0}},Symbol.toStringTag,{value:"URL",configurable:!0})),void 0===l[r(d[3]).ctorRegistrySymbol]&&(l[r(d[3]).ctorRegistrySymbol]=Object.create(null)),l[r(d[3]).ctorRegistrySymbol].URL=p,Object.defineProperty(l,"URL",{configurable:!0,writable:!0,value:p})}};m.exports=s}),449,[170,5,6,450,451,460]); -__d((function(g,r,_i,a,m,_e,d){"use strict";var e=Symbol("wrapper"),t=Symbol("impl"),o=Symbol("SameObject caches"),p=Symbol.for("[webidl2js] constructor registry");function n(t){return t?t[e]:null}function y(e){return e?e[t]:null}var i=Symbol("internal"),l=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));var s=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get;var u=Symbol("supports property index"),c=Symbol("supported property indices"),b=Symbol("supports property name"),S=Symbol("supported property names"),f=Symbol("indexed property get"),x=Symbol("indexed property set new"),O=Symbol("indexed property set existing"),w=Symbol("named property get"),j=Symbol("named property set new"),P=Symbol("named property set existing"),I=Symbol("named property delete");m.exports={isObject:function(e){return"object"==typeof e&&null!==e||"function"==typeof e},hasOwn:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},wrapperSymbol:e,implSymbol:t,getSameObject:function(e,t,p){return e[o]||(e[o]=Object.create(null)),t in e[o]||(e[o][t]=p()),e[o][t]},ctorRegistrySymbol:p,wrapperForImpl:n,implForWrapper:y,tryWrapperForImpl:function(e){var t=n(e);return t||e},tryImplForWrapper:function(e){var t=y(e);return t||e},iterInternalSymbol:i,IteratorPrototype:l,isArrayBuffer:function(e){try{return s.call(e),!0}catch(e){return!1}},isArrayIndexPropName:function(e){if("string"!=typeof e)return!1;var t=e>>>0;return t!==Math.pow(2,32)-1&&e===`${t}`},supportsPropertyIndex:u,supportedPropertyIndices:c,supportsPropertyName:b,supportedPropertyNames:S,indexedGet:f,indexedSetNew:x,indexedSetExisting:O,namedGet:w,namedSetNew:j,namedSetExisting:P,namedDelete:I}}),450,[]); -__d((function(g,r,i,a,m,e,d){"use strict";var t=r(d[0]),s=r(d[1]);e.implementation=(function(){function n(s,u){t(this,n);var l=u[0],h=u[1],o=null;if(void 0!==h&&null===(o=r(d[2]).basicURLParse(h)))throw new TypeError(`Invalid base URL: ${h}`);var _=r(d[2]).basicURLParse(l,{baseURL:o});if(null===_)throw new TypeError(`Invalid URL: ${l}`);var c=null!==_.query?_.query:"";this._url=_,this._query=r(d[3]).createImpl(s,[c],{doNotStripQMark:!0}),this._query._url=this}return s(n,[{key:"href",get:function(){return r(d[2]).serializeURL(this._url)},set:function(t){var s=r(d[2]).basicURLParse(t);if(null===s)throw new TypeError(`Invalid URL: ${t}`);this._url=s,this._query._list.splice(0);var n=s.query;null!==n&&(this._query._list=r(d[4]).parseUrlencoded(n))}},{key:"origin",get:function(){return r(d[2]).serializeURLOrigin(this._url)}},{key:"protocol",get:function(){return this._url.scheme+":"},set:function(t){r(d[2]).basicURLParse(t+":",{url:this._url,stateOverride:"scheme start"})}},{key:"username",get:function(){return this._url.username},set:function(t){r(d[2]).cannotHaveAUsernamePasswordPort(this._url)||r(d[2]).setTheUsername(this._url,t)}},{key:"password",get:function(){return this._url.password},set:function(t){r(d[2]).cannotHaveAUsernamePasswordPort(this._url)||r(d[2]).setThePassword(this._url,t)}},{key:"host",get:function(){var t=this._url;return null===t.host?"":null===t.port?r(d[2]).serializeHost(t.host):r(d[2]).serializeHost(t.host)+":"+r(d[2]).serializeInteger(t.port)},set:function(t){this._url.cannotBeABaseURL||r(d[2]).basicURLParse(t,{url:this._url,stateOverride:"host"})}},{key:"hostname",get:function(){return null===this._url.host?"":r(d[2]).serializeHost(this._url.host)},set:function(t){this._url.cannotBeABaseURL||r(d[2]).basicURLParse(t,{url:this._url,stateOverride:"hostname"})}},{key:"port",get:function(){return null===this._url.port?"":r(d[2]).serializeInteger(this._url.port)},set:function(t){r(d[2]).cannotHaveAUsernamePasswordPort(this._url)||(""===t?this._url.port=null:r(d[2]).basicURLParse(t,{url:this._url,stateOverride:"port"}))}},{key:"pathname",get:function(){return this._url.cannotBeABaseURL?this._url.path[0]:0===this._url.path.length?"":"/"+this._url.path.join("/")},set:function(t){this._url.cannotBeABaseURL||(this._url.path=[],r(d[2]).basicURLParse(t,{url:this._url,stateOverride:"path start"}))}},{key:"search",get:function(){return null===this._url.query||""===this._url.query?"":"?"+this._url.query},set:function(t){var s=this._url;if(""===t)return s.query=null,void(this._query._list=[]);var n="?"===t[0]?t.substring(1):t;s.query="",r(d[2]).basicURLParse(n,{url:s,stateOverride:"query"}),this._query._list=r(d[4]).parseUrlencoded(n)}},{key:"searchParams",get:function(){return this._query}},{key:"hash",get:function(){return null===this._url.fragment||""===this._url.fragment?"":"#"+this._url.fragment},set:function(t){if(""!==t){var s="#"===t[0]?t.substring(1):t;this._url.fragment="",r(d[2]).basicURLParse(s,{url:this._url,stateOverride:"fragment"})}else this._url.fragment=null}},{key:"toJSON",value:function(){return this.href}}]),n})()}),451,[5,6,452,458,457]); -__d((function(g,r,_i,a,m,_e,d){"use strict";var t={ftp:21,file:null,http:80,https:443,ws:80,wss:443},s=Symbol("failure");function e(t){return r(d[0]).ucs2.decode(t).length}function i(t,s){var e=t[s];return isNaN(e)?void 0:String.fromCodePoint(e)}function h(t){return"."===t||"%2e"===t.toLowerCase()}function u(t){return 2===t.length&&r(d[1]).isASCIIAlpha(t.codePointAt(0))&&(":"===t[1]||"|"===t[1])}function n(s){return void 0!==t[s]}function o(t){return n(t.scheme)}function l(t){return!n(t.scheme)}function p(s){return t[s]}function f(t){for(var s=r(d[2]).Buffer.from(t),e="",i=0;i126}var b=new Set([47,58,59,61,64,91,92,93,94,124]);function v(t){return I(t)||b.has(t)}var y=new Set([32,34,60,62,96]);function w(t){return c(t)||y.has(t)}var A=new Set([35,63,123,125]);function I(t){return w(t)||A.has(t)}function E(t,s){var e=String.fromCodePoint(t);return s(t)?f(e):e}function S(t){var e=10;if(t.length>=2&&"0"===t.charAt(0)&&"x"===t.charAt(1).toLowerCase()?(t=t.substring(2),e=16):t.length>=2&&"0"===t.charAt(0)&&(t=t.substring(1),e=8),""===t)return 0;var i=/[^0-7]/;return 10===e&&(i=/[^0-9]/),16===e&&(i=/[^0-9A-Fa-f]/),i.test(t)?s:parseInt(t,e)}function q(t){var e=t.split(".");if(""===e[e.length-1]&&e.length>1&&e.pop(),e.length>4)return t;var i=[];for(var h of e){if(""===h)return t;var u=S(h);if(u===s)return t;i.push(u)}for(var n=0;n255)return s;if(i[i.length-1]>=Math.pow(256,5-i.length))return s;var o=i.pop(),l=0;for(var p of i)o+=p*Math.pow(256,3-l),++l;return o}function C(t){for(var s="",e=t,i=1;i<=4;++i)s=String(e%256)+s,4!==i&&(s="."+s),e=Math.floor(e/256);return s}function N(t){var e=[0,0,0,0,0,0,0,0],h=0,u=null,n=0;if(58===(t=r(d[0]).ucs2.decode(t))[n]){if(58!==t[n+1])return s;n+=2,u=++h}for(;n6)return s;for(var p=0;void 0!==t[n];){var f=null;if(p>0){if(!(46===t[n]&&p<4))return s;++n}if(!r(d[1]).isASCIIDigit(t[n]))return s;for(;r(d[1]).isASCIIDigit(t[n]);){var c=parseInt(i(t,n));if(null===f)f=c;else{if(0===f)return s;f=10*f+c}if(f>255)return s;++n}e[h]=256*e[h]+f,2!==++p&&4!==p||++h}if(4!==p)return s;break}if(58===t[n]){if(void 0===t[++n])return s}else if(void 0!==t[n])return s;e[h]=o,++h}else{if(null!==u)return s;++n,u=++h}}if(null!==u){var b=h-u;for(h=7;0!==h&&b>0;){var v=e[u+b-1];e[u+b-1]=e[h],e[h]=v,--h,--b}}else if(null===u&&8!==h)return s;return e}function O(t){for(var s="",e=U(t).idx,i=!1,h=0;h<=7;++h){if(!i||0!==t[h])if(i&&(i=!1),e!==h)s+=t[h].toString(16),7!==h&&(s+=":");else s+=0===h?"::":":",i=!0}return s}function x(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("["===t[0])return"]"!==t[t.length-1]?s:N(t.substring(1,t.length-1));if(e)return L(t);var i=B(r(d[3]).percentDecode(r(d[2]).Buffer.from(t)).toString());if(i===s)return s;if(-1!==i.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|\?|@|\[|\\|\]/))return s;var h=q(i);return"number"==typeof h||h===s?h:i}function L(t){if(-1!==t.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/))return s;for(var e="",i=r(d[0]).ucs2.decode(t),h=0;he&&(s=i,e=h),i=null,h=0):(null===i&&(i=u),++h);return h>e&&(s=i,e=h),{idx:s,len:e}}function R(t){return"number"==typeof t?C(t):t instanceof Array?"["+O(t)+"]":t}function B(t){return null===t?s:t}function F(t){return t.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g,"")}function P(t){return t.replace(/\u0009|\u000A|\u000D/g,"")}function H(t){var s,e=t.path;0!==e.length&&("file"===t.scheme&&1===e.length&&(s=e[0],/^[A-Za-z]:$/.test(s))||e.pop())}function k(t){return""!==t.username||""!==t.password}function D(t,e,i,h,u){if(this.pointer=0,this.input=t,this.base=e||null,this.encodingOverride=i||"utf-8",this.stateOverride=u,this.url=h,this.failure=!1,this.parseError=!1,!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null,cannotBeABaseURL:!1};var n=F(this.input);n!==this.input&&(this.parseError=!0),this.input=n}var o=P(this.input);for(o!==this.input&&(this.parseError=!0),this.input=o,this.state=u||"scheme start",this.buffer="",this.atFlag=!1,this.arrFlag=!1,this.passwordTokenSeenFlag=!1,this.input=r(d[0]).ucs2.decode(this.input);this.pointer<=this.input.length;++this.pointer){var l=this.input[this.pointer],p=isNaN(l)?void 0:String.fromCodePoint(l),f=this["parse "+this.state](l,p);if(!f)break;if(f===s){this.failure=!0;break}}}D.prototype["parse scheme start"]=function(t,e){if(r(d[1]).isASCIIAlpha(t))this.buffer+=e.toLowerCase(),this.state="scheme";else{if(this.stateOverride)return this.parseError=!0,s;this.state="no scheme",--this.pointer}return!0},D.prototype["parse scheme"]=function(t,e){if(r(d[1]).isASCIIAlphanumeric(t)||43===t||45===t||46===t)this.buffer+=e.toLowerCase();else if(58===t){if(this.stateOverride){if(o(this.url)&&!n(this.buffer))return!1;if(!o(this.url)&&n(this.buffer))return!1;if((k(this.url)||null!==this.url.port)&&"file"===this.buffer)return!1;if("file"===this.url.scheme&&(""===this.url.host||null===this.url.host))return!1}if(this.url.scheme=this.buffer,this.stateOverride)return this.url.port===p(this.url.scheme)&&(this.url.port=null),!1;this.buffer="","file"===this.url.scheme?(47===this.input[this.pointer+1]&&47===this.input[this.pointer+2]||(this.parseError=!0),this.state="file"):o(this.url)&&null!==this.base&&this.base.scheme===this.url.scheme?this.state="special relative or authority":o(this.url)?this.state="special authority slashes":47===this.input[this.pointer+1]?(this.state="path or authority",++this.pointer):(this.url.cannotBeABaseURL=!0,this.url.path.push(""),this.state="cannot-be-a-base-URL path")}else{if(this.stateOverride)return this.parseError=!0,s;this.buffer="",this.state="no scheme",this.pointer=-1}return!0},D.prototype["parse no scheme"]=function(t){return null===this.base||this.base.cannotBeABaseURL&&35!==t?s:(this.base.cannotBeABaseURL&&35===t?(this.url.scheme=this.base.scheme,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.url.cannotBeABaseURL=!0,this.state="fragment"):"file"===this.base.scheme?(this.state="file",--this.pointer):(this.state="relative",--this.pointer),!0)},D.prototype["parse special relative or authority"]=function(t){return 47===t&&47===this.input[this.pointer+1]?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="relative",--this.pointer),!0},D.prototype["parse path or authority"]=function(t){return 47===t?this.state="authority":(this.state="path",--this.pointer),!0},D.prototype["parse relative"]=function(t){return this.url.scheme=this.base.scheme,isNaN(t)?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query):47===t?this.state="relative slash":63===t?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query="",this.state="query"):35===t?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):o(this.url)&&92===t?(this.parseError=!0,this.state="relative slash"):(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(0,this.base.path.length-1),this.state="path",--this.pointer),!0},D.prototype["parse relative slash"]=function(t){return!o(this.url)||47!==t&&92!==t?47===t?this.state="authority":(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.state="path",--this.pointer):(92===t&&(this.parseError=!0),this.state="special authority ignore slashes"),!0},D.prototype["parse special authority slashes"]=function(t){return 47===t&&47===this.input[this.pointer+1]?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="special authority ignore slashes",--this.pointer),!0},D.prototype["parse special authority ignore slashes"]=function(t){return 47!==t&&92!==t?(this.state="authority",--this.pointer):this.parseError=!0,!0},D.prototype["parse authority"]=function(t,i){if(64===t){this.parseError=!0,this.atFlag&&(this.buffer="%40"+this.buffer),this.atFlag=!0;for(var h=e(this.buffer),u=0;uMath.pow(2,16)-1)return this.parseError=!0,s;this.url.port=i===p(this.url.scheme)?null:i,this.buffer=""}if(this.stateOverride)return!1;this.state="path start",--this.pointer}return!0};var z=new Set([47,92,63,35]);function T(t,s){var e,i,h=t.length-s;return h>=2&&(e=t[s],i=t[s+1],r(d[1]).isASCIIAlpha(e)&&(58===i||124===i))&&(2===h||z.has(t[s+2]))}D.prototype["parse file"]=function(t){return this.url.scheme="file",47===t||92===t?(92===t&&(this.parseError=!0),this.state="file slash"):null!==this.base&&"file"===this.base.scheme?isNaN(t)?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query):63===t?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query="",this.state="query"):35===t?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):(T(this.input,this.pointer)?this.parseError=!0:(this.url.host=this.base.host,this.url.path=this.base.path.slice(),H(this.url)),this.state="path",--this.pointer):(this.state="path",--this.pointer),!0},D.prototype["parse file slash"]=function(t){var s;return 47===t||92===t?(92===t&&(this.parseError=!0),this.state="file host"):(null===this.base||"file"!==this.base.scheme||T(this.input,this.pointer)||(2===(s=this.base.path[0]).length&&r(d[1]).isASCIIAlpha(s.codePointAt(0))&&":"===s[1]?this.url.path.push(this.base.path[0]):this.url.host=this.base.host),this.state="path",--this.pointer),!0},D.prototype["parse file host"]=function(t,e){if(isNaN(t)||47===t||92===t||63===t||35===t)if(--this.pointer,!this.stateOverride&&u(this.buffer))this.parseError=!0,this.state="path";else if(""===this.buffer){if(this.url.host="",this.stateOverride)return!1;this.state="path start"}else{var i=x(this.buffer,l(this.url));if(i===s)return s;if("localhost"===i&&(i=""),this.url.host=i,this.stateOverride)return!1;this.buffer="",this.state="path start"}else this.buffer+=e;return!0},D.prototype["parse path start"]=function(t){return o(this.url)?(92===t&&(this.parseError=!0),this.state="path",47!==t&&92!==t&&--this.pointer):this.stateOverride||63!==t?this.stateOverride||35!==t?void 0!==t&&(this.state="path",47!==t&&--this.pointer):(this.url.fragment="",this.state="fragment"):(this.url.query="",this.state="query"),!0},D.prototype["parse path"]=function(t){if(isNaN(t)||47===t||o(this.url)&&92===t||!this.stateOverride&&(63===t||35===t)){if(o(this.url)&&92===t&&(this.parseError=!0),".."===(s=(s=this.buffer).toLowerCase())||"%2e."===s||".%2e"===s||"%2e%2e"===s?(H(this.url),47===t||o(this.url)&&92===t||this.url.path.push("")):!h(this.buffer)||47===t||o(this.url)&&92===t?h(this.buffer)||("file"===this.url.scheme&&0===this.url.path.length&&u(this.buffer)&&(""!==this.url.host&&null!==this.url.host&&(this.parseError=!0,this.url.host=""),this.buffer=this.buffer[0]+":"),this.url.path.push(this.buffer)):this.url.path.push(""),this.buffer="","file"===this.url.scheme&&(void 0===t||63===t||35===t))for(;this.url.path.length>1&&""===this.url.path[0];)this.parseError=!0,this.url.path.shift();63===t&&(this.url.query="",this.state="query"),35===t&&(this.url.fragment="",this.state="fragment")}else 37!==t||r(d[1]).isASCIIHex(this.input[this.pointer+1])&&r(d[1]).isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=E(t,I);var s;return!0},D.prototype["parse cannot-be-a-base-URL path"]=function(t){return 63===t?(this.url.query="",this.state="query"):35===t?(this.url.fragment="",this.state="fragment"):(isNaN(t)||37===t||(this.parseError=!0),37!==t||r(d[1]).isASCIIHex(this.input[this.pointer+1])&&r(d[1]).isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),isNaN(t)||(this.url.path[0]+=E(t,c))),!0},D.prototype["parse query"]=function(t,s){if(isNaN(t)||!this.stateOverride&&35===t){o(this.url)&&"ws"!==this.url.scheme&&"wss"!==this.url.scheme||(this.encodingOverride="utf-8");for(var e=r(d[2]).Buffer.from(this.buffer),i=0;i126||34===e[i]||35===e[i]||60===e[i]||62===e[i]||39===e[i]&&o(this.url)?this.url.query+=r(d[3]).percentEncode(e[i]):this.url.query+=String.fromCodePoint(e[i]);this.buffer="",35===t&&(this.url.fragment="",this.state="fragment")}else 37!==t||r(d[1]).isASCIIHex(this.input[this.pointer+1])&&r(d[1]).isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=s;return!0},D.prototype["parse fragment"]=function(t){return isNaN(t)||(0===t?this.parseError=!0:(37!==t||r(d[1]).isASCIIHex(this.input[this.pointer+1])&&r(d[1]).isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),this.url.fragment+=E(t,w))),!0},m.exports.serializeURL=function(t,s){var e=t.scheme+":";if(null!==t.host?(e+="//",""===t.username&&""===t.password||(e+=t.username,""!==t.password&&(e+=":"+t.password),e+="@"),e+=R(t.host),null!==t.port&&(e+=":"+t.port)):null===t.host&&"file"===t.scheme&&(e+="//"),t.cannotBeABaseURL)e+=t.path[0];else for(var i of t.path)e+="/"+i;return null!==t.query&&(e+="?"+t.query),s||null===t.fragment||(e+="#"+t.fragment),e},m.exports.serializeURLOrigin=function(t){switch(t.scheme){case"blob":try{return m.exports.serializeURLOrigin(m.exports.parseURL(t.path[0]))}catch(t){return"null"}case"ftp":case"http":case"https":case"ws":case"wss":return s={scheme:t.scheme,host:t.host,port:t.port},e=s.scheme+"://",e+=R(s.host),null!==s.port&&(e+=":"+s.port),e;default:return"null"}var s,e},m.exports.basicURLParse=function(t,s){void 0===s&&(s={});var e=new D(t,s.baseURL,s.encodingOverride,s.url,s.stateOverride);return e.failure?null:e.url},m.exports.setTheUsername=function(t,s){t.username="";for(var e=r(d[0]).ucs2.decode(s),i=0;i= 0x80 (not a basic code point)','invalid-input':'Invalid input'},c=Math.floor,l=String.fromCharCode;function s(n){throw new RangeError(v[n])}function p(n,o){for(var t=[],i=n.length;i--;)t[i]=o(n[i]);return t}function h(n,o){var t=n.split('@'),i='';return t.length>1&&(i=t[0]+'@',n=t[1]),i+p((n=n.replace(f,'.')).split('.'),o).join('.')}function w(n){for(var o=[],t=0,i=n.length;t=55296&&u<=56319&&t>1,n+=c(n/o);n>455;u+=t)n=c(n/35);return c(u+36*n/(n+38))},A=function(n){var i,u=[],f=n.length,v=0,l=128,p=72,h=n.lastIndexOf("-");h<0&&(h=0);for(var w=0;w=128&&s('not-basic'),u.push(n.charCodeAt(w));for(var C=h>0?h+1:0;C=f&&s('invalid-input');var F=(i=n.charCodeAt(C++))>=48&&i<58?i-48+26:i>=65&&i<91?i-65:i>=97&&i<123?i-97:t;F>=t&&s('invalid-input'),F>c((o-v)/S)&&s('overflow'),v+=F*S;var I=b<=p?1:b>=p+26?26:b-p;if(Fc(o/m)&&s('overflow'),S*=m}var E=u.length+1;p=x(v-A,E,0==A),c(v/E)>o-l&&s('overflow'),l+=c(v/E),v%=E,u.splice(v++,0,l)}return String.fromCodePoint.apply(String,u)},S=function(n){var i=[],u=(n=w(n)).length,f=128,v=0,p=72;for(var h of n)h<128&&i.push(l(h));var A=i.length,S=A;for(A&&i.push("-");S=f&&Fc((o-v)/I)&&s('overflow'),v+=(b-f)*I,f=b,n))if(mo&&s('overflow'),m===f){for(var E=v,j=t;;j+=t){var k=j<=p?1:j>=p+26?26:j-p;if(E=48&&n<=57}function t(n){return n>=65&&n<=90||n>=97&&n<=122}m.exports={isASCIIDigit:n,isASCIIAlpha:t,isASCIIAlphanumeric:function(u){return t(u)||n(u)},isASCIIHex:function(t){return n(t)||t>=65&&t<=70||t>=97&&t<=102}}}),454,[]); +__d((function(g,_r,_i,a,m,_e,d){var n=_r(d[0]),t=_r(d[1]),e=_r(d[2]),o=_r(d[3]),r=_r(d[4]),u=_r(d[5]);function i(n,t,r){return t=o(t),e(n,s()?Reflect.construct(t,r||[],o(n).constructor):t.apply(n,r))}function s(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(n){}return(s=function(){return!!n})()}var c=_r(d[6]).NativeModules,f=(function(e){"use strict";function o(){return t(this,o),i(this,o,arguments)}return r(o,e),n(o)})(u(Error)),p=(function(e){"use strict";function o(){return t(this,o),i(this,o,arguments)}return r(o,e),n(o)})(u(Error)),l=!1;function y(n){l||(console.warn('Using an insecure random number generator, this should only happen when running in a debugger without support for crypto.getRandomValues'),l=!0);for(var t,e=0;e>>((3&e)<<3)&255;return n}function R(n){if(c.RNGetRandomValues)return c.RNGetRandomValues.getRandomBase64(n);if(c.ExpoRandom)return c.ExpoRandom.getRandomBase64String(n);if(g.ExpoModules)return g.ExpoModules.ExpoRandom.getRandomBase64String(n);throw new Error('Native module not found')}function h(){return'RN$Bridgeless'in g&&RN$Bridgeless,!1}'object'!=typeof g.crypto&&(g.crypto={}),'function'!=typeof g.crypto.getRandomValues&&(g.crypto.getRandomValues=function(n){if(!(n instanceof Int8Array||n instanceof Uint8Array||n instanceof Int16Array||n instanceof Uint16Array||n instanceof Int32Array||n instanceof Uint32Array||n instanceof Uint8ClampedArray))throw new f('Expected an integer array');if(n.byteLength>65536)throw new p('Can only request a maximum of 65536 bytes');return g.expo&&g.expo.modules&&g.expo.modules.ExpoCrypto&&g.expo.modules.ExpoCrypto.getRandomValues?(g.expo.modules.ExpoCrypto.getRandomValues(n),n):h()?y(n):(_r(d[7])(R(n.byteLength),new Uint8Array(n.buffer,n.byteOffset,n.byteLength)),n)})}),441,[6,5,10,14,15,76,2,442]); +__d((function(g,r,_i,a,m,e,d){'use strict';var t=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,62,0,62,0,63,52,53,54,55,56,57,58,59,60,61,0,0,0,0,0,0,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,0,0,0,0,63,0,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51];m.exports=function(o,c){for(var h,A=o.length,C='='===o[A-2]?2:'='===o[A-1]?1:0,n=0,f=A-C&4294967292,i=0;i>16&255,c[n++]=h>>8&255,c[n++]=255&h;1===C&&(h=t[o.charCodeAt(i)]<<10|t[o.charCodeAt(i+1)]<<4|t[o.charCodeAt(i+2)]>>2,c[n++]=h>>8&255,c[n++]=255&h),2===C&&(h=t[o.charCodeAt(i)]<<2|t[o.charCodeAt(i+1)]>>4,c[n++]=255&h)}}),442,[]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),r=e(_r(d[2])),n=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=f(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=o?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(n,a,u):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n})(_r(d[3])),o=_r(d[4]);_r(d[5]);var a=e(_r(d[6])),u=_r(d[7]);function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:t})(e)}_e.default=function(){var e={backgroundColor:_r(d[8]).Colors.darker},f=(0,n.useState)(null),l=(0,r.default)(f,2),c=l[0],i=l[1];return(0,n.useEffect)((function(){console.log('inside useeffect');var e=(function(){var e=(0,t.default)((function*(){if(!c){var e=yield(0,_r(d[9]).getFormTemplate)('eb3df1f89653475f0bcbd22da35f8d2f126db8a68a88a7abedc53535c76c39b4');i(e)}}));return function(){return e.apply(this,arguments)}})();e()}),[c]),(0,u.jsxs)(o.SafeAreaView,{style:e,children:[(0,u.jsx)(a.default,{}),(0,u.jsx)(o.StatusBar,{barStyle:'light-content',backgroundColor:e.backgroundColor}),(0,u.jsx)(o.ScrollView,{contentInsetAdjustmentBehavior:"automatic",style:e,children:(0,u.jsx)(_r(d[10]).PrescriptionCreator,{form:c})})]})}}),443,[1,339,26,153,2,444,464,194,480,491,521]); +__d((function(g,r,i,a,m,e,d){'web'!==r(d[0]).Platform.OS&&(0,r(d[1]).setupURLPolyfill)()}),444,[2,445]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0});var l={setupURLPolyfill:!0};e.setupURLPolyfill=function(){globalThis.REACT_NATIVE_URL_POLYFILL=`${o.default.name}@${o.default.version}`,globalThis.URL=r(d[3]).URL,globalThis.URLSearchParams=r(d[4]).URLSearchParams},r(d[1]);var o=t(r(d[2]));Object.keys(r(d[3])).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(l,t)||t in e&&e[t]===r(d[3])[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r(d[3])[t]}}))})),Object.keys(r(d[4])).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(l,t)||t in e&&e[t]===r(d[4])[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r(d[4])[t]}}))}))}),445,[1,446,447,448,463]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]),n=parseInt(t.Platform.Version,10);'ios'===t.Platform.OS&&10===n&&null==Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,'byteLength')&&Object.defineProperty(ArrayBuffer.prototype,'byteLength',{configurable:!0,enumerable:!1,get:function(){return null}})}),446,[2]); +__d((function(e,t,i,r,a,n,l){a.exports={name:"react-native-url-polyfill",version:"2.0.0",description:"A lightweight and trustworthy URL polyfill for React Native",keywords:["URL","URLSearchParams","polyfill","react native","whatwg-url"],bugs:{url:"https://github.com/charpeni/react-native-url-polyfill/issues"},homepage:"https://github.com/charpeni/react-native-url-polyfill",readme:"https://github.com/charpeni/react-native-url-polyfill#readme",repository:{type:"git",url:"https://github.com/charpeni/react-native-url-polyfill.git"},main:"index.js",types:"index.d.ts",scripts:{test:"jest",lint:"eslint .",prepare:"husky install","bundle-size":"node scripts/bundle-size"},author:"Nicolas Charpentier ",license:"MIT",dependencies:{"whatwg-url-without-unicode":"8.0.0-3"},devDependencies:{"@react-native-community/eslint-config":"3.2.0",detox:"20.9.1",eslint:"8.44.0","eslint-plugin-prettier":"4.2.1",husky:"8.0.3",jest:"29.5.0","lint-staged":"13.2.3","metro-react-native-babel-preset":"0.76.7",nanoid:"3.3.6",prettier:"2.8.8",react:"18.2.0","react-native":"0.72.1","react-native-bundle-scale":"1.1.0",typescript:"5.1.6"},peerDependencies:{"react-native":"*"},jest:{preset:"react-native",testPathIgnorePatterns:["/node_modules/","./platforms/"]},"lint-staged":{"*.js":["eslint --fix"]}}}),447,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.URL=void 0;var t=r(d[0]),o=null,n=t.NativeModules.BlobModule;n&&'string'==typeof n.BLOB_URI_SCHEME&&(o=n.BLOB_URI_SCHEME+':','string'==typeof n.BLOB_URI_HOST&&(o+=`//${n.BLOB_URI_HOST}/`)),r(d[1]).URL.createObjectURL=function(t){if(null===o)throw new Error('Cannot create URL for blob!');return`${o}${t.data.blobId}?offset=${t.data.offset}&size=${t.size}`},r(d[1]).URL.revokeObjectURL=function(t){};e.URL=r(d[1]).URL}),448,[2,449]); +__d((function(g,r,i,a,m,e,d){"use strict";var s={};r(d[0]).URL.install(s),r(d[0]).URLSearchParams.install(s),e.URL=s.URL,e.URLSearchParams=s.URLSearchParams,e.parseURL=r(d[1]).parseURL,e.basicURLParse=r(d[1]).basicURLParse,e.serializeURL=r(d[1]).serializeURL,e.serializeHost=r(d[1]).serializeHost,e.serializeInteger=r(d[1]).serializeInteger,e.serializeURLOrigin=r(d[1]).serializeURLOrigin,e.setTheUsername=r(d[1]).setTheUsername,e.setThePassword=r(d[1]).setThePassword,e.cannotHaveAUsernamePasswordPort=r(d[1]).cannotHaveAUsernamePasswordPort,e.percentDecode=r(d[2]).percentDecode}),449,[450,454,459]); +__d((function(g,r,i,a,m,e,d){"use strict";e.URL=r(d[0]),e.URLSearchParams=r(d[1])}),450,[451,460]); +__d((function(g,r,i,a,m,e,d){"use strict";var t=r(d[0]),o=r(d[1]),n=r(d[2]),s={_mixedIntoPredicates:[],is:function(t){if(t){if(r(d[3]).hasOwn(t,r(d[3]).implSymbol)&&t[r(d[3]).implSymbol]instanceof r(d[4]).implementation)return!0;for(var o of m.exports._mixedIntoPredicates)if(o(t))return!0}return!1},isImpl:function(t){if(t){if(t instanceof r(d[4]).implementation)return!0;var o=r(d[3]).wrapperForImpl(t);for(var n of m.exports._mixedIntoPredicates)if(n(o))return!0}return!1},convert:function(t){var o=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).context,n=void 0===o?"The provided value":o;if(m.exports.is(t))return r(d[3]).implForWrapper(t);throw new TypeError(`${n} is not of type 'URL'.`)},create:function(t,o,n){if(void 0===t[r(d[3]).ctorRegistrySymbol])throw new Error("Internal error: invalid global object");var l=t[r(d[3]).ctorRegistrySymbol].URL;if(void 0===l)throw new Error("Internal error: constructor URL is not installed on the passed global object");var p=Object.create(l.prototype);return p=s.setup(p,t,o,n)},createImpl:function(t,o,n){var l=s.create(t,o,n);return r(d[3]).implForWrapper(l)},_internalSetup:function(t){},setup:function(t,o){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return l.wrapper=t,s._internalSetup(t),Object.defineProperty(t,r(d[3]).implSymbol,{value:new(r(d[4]).implementation)(o,n,l),configurable:!0}),t[r(d[3]).implSymbol][r(d[3]).wrapperSymbol]=t,r(d[4]).init&&r(d[4]).init(t[r(d[3]).implSymbol],l),t},install:function(l){var p=(function(){function t(n){if(o(this,t),arguments.length<1)throw new TypeError("Failed to construct 'URL': 1 argument required, but only "+arguments.length+" present.");var p=[],h=arguments[0];h=r(d[5]).USVString(h,{context:"Failed to construct 'URL': parameter 1"}),p.push(h);var c=arguments[1];return void 0!==c&&(c=r(d[5]).USVString(c,{context:"Failed to construct 'URL': parameter 2"})),p.push(c),s.setup(Object.create(this.constructor.prototype),l,p)}return n(t,[{key:"toJSON",value:function(){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");return this[r(d[3]).implSymbol].toJSON()}},{key:"href",get:function(){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");return this[r(d[3]).implSymbol].href},set:function(t){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");t=r(d[5]).USVString(t,{context:"Failed to set the 'href' property on 'URL': The provided value"}),this[r(d[3]).implSymbol].href=t}},{key:"toString",value:function(){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");return this[r(d[3]).implSymbol].href}},{key:"origin",get:function(){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");return this[r(d[3]).implSymbol].origin}},{key:"protocol",get:function(){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");return this[r(d[3]).implSymbol].protocol},set:function(t){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");t=r(d[5]).USVString(t,{context:"Failed to set the 'protocol' property on 'URL': The provided value"}),this[r(d[3]).implSymbol].protocol=t}},{key:"username",get:function(){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");return this[r(d[3]).implSymbol].username},set:function(t){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");t=r(d[5]).USVString(t,{context:"Failed to set the 'username' property on 'URL': The provided value"}),this[r(d[3]).implSymbol].username=t}},{key:"password",get:function(){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");return this[r(d[3]).implSymbol].password},set:function(t){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");t=r(d[5]).USVString(t,{context:"Failed to set the 'password' property on 'URL': The provided value"}),this[r(d[3]).implSymbol].password=t}},{key:"host",get:function(){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");return this[r(d[3]).implSymbol].host},set:function(t){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");t=r(d[5]).USVString(t,{context:"Failed to set the 'host' property on 'URL': The provided value"}),this[r(d[3]).implSymbol].host=t}},{key:"hostname",get:function(){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");return this[r(d[3]).implSymbol].hostname},set:function(t){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");t=r(d[5]).USVString(t,{context:"Failed to set the 'hostname' property on 'URL': The provided value"}),this[r(d[3]).implSymbol].hostname=t}},{key:"port",get:function(){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");return this[r(d[3]).implSymbol].port},set:function(t){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");t=r(d[5]).USVString(t,{context:"Failed to set the 'port' property on 'URL': The provided value"}),this[r(d[3]).implSymbol].port=t}},{key:"pathname",get:function(){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");return this[r(d[3]).implSymbol].pathname},set:function(t){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");t=r(d[5]).USVString(t,{context:"Failed to set the 'pathname' property on 'URL': The provided value"}),this[r(d[3]).implSymbol].pathname=t}},{key:"search",get:function(){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");return this[r(d[3]).implSymbol].search},set:function(t){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");t=r(d[5]).USVString(t,{context:"Failed to set the 'search' property on 'URL': The provided value"}),this[r(d[3]).implSymbol].search=t}},{key:"searchParams",get:function(){var t=this;if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");return r(d[3]).getSameObject(this,"searchParams",(function(){return r(d[3]).tryWrapperForImpl(t[r(d[3]).implSymbol].searchParams)}))}},{key:"hash",get:function(){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");return this[r(d[3]).implSymbol].hash},set:function(t){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");t=r(d[5]).USVString(t,{context:"Failed to set the 'hash' property on 'URL': The provided value"}),this[r(d[3]).implSymbol].hash=t}}]),t})();Object.defineProperties(p.prototype,t({toJSON:{enumerable:!0},href:{enumerable:!0},toString:{enumerable:!0},origin:{enumerable:!0},protocol:{enumerable:!0},username:{enumerable:!0},password:{enumerable:!0},host:{enumerable:!0},hostname:{enumerable:!0},port:{enumerable:!0},pathname:{enumerable:!0},search:{enumerable:!0},searchParams:{enumerable:!0},hash:{enumerable:!0}},Symbol.toStringTag,{value:"URL",configurable:!0})),void 0===l[r(d[3]).ctorRegistrySymbol]&&(l[r(d[3]).ctorRegistrySymbol]=Object.create(null)),l[r(d[3]).ctorRegistrySymbol].URL=p,Object.defineProperty(l,"URL",{configurable:!0,writable:!0,value:p})}};m.exports=s}),451,[170,5,6,452,453,462]); +__d((function(g,r,_i,a,m,_e,d){"use strict";var e=Symbol("wrapper"),t=Symbol("impl"),o=Symbol("SameObject caches"),p=Symbol.for("[webidl2js] constructor registry");function n(t){return t?t[e]:null}function y(e){return e?e[t]:null}var i=Symbol("internal"),l=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));var s=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get;var u=Symbol("supports property index"),c=Symbol("supported property indices"),b=Symbol("supports property name"),S=Symbol("supported property names"),f=Symbol("indexed property get"),x=Symbol("indexed property set new"),O=Symbol("indexed property set existing"),w=Symbol("named property get"),j=Symbol("named property set new"),P=Symbol("named property set existing"),I=Symbol("named property delete");m.exports={isObject:function(e){return"object"==typeof e&&null!==e||"function"==typeof e},hasOwn:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},wrapperSymbol:e,implSymbol:t,getSameObject:function(e,t,p){return e[o]||(e[o]=Object.create(null)),t in e[o]||(e[o][t]=p()),e[o][t]},ctorRegistrySymbol:p,wrapperForImpl:n,implForWrapper:y,tryWrapperForImpl:function(e){var t=n(e);return t||e},tryImplForWrapper:function(e){var t=y(e);return t||e},iterInternalSymbol:i,IteratorPrototype:l,isArrayBuffer:function(e){try{return s.call(e),!0}catch(e){return!1}},isArrayIndexPropName:function(e){if("string"!=typeof e)return!1;var t=e>>>0;return t!==Math.pow(2,32)-1&&e===`${t}`},supportsPropertyIndex:u,supportedPropertyIndices:c,supportsPropertyName:b,supportedPropertyNames:S,indexedGet:f,indexedSetNew:x,indexedSetExisting:O,namedGet:w,namedSetNew:j,namedSetExisting:P,namedDelete:I}}),452,[]); +__d((function(g,r,i,a,m,e,d){"use strict";var t=r(d[0]),s=r(d[1]);e.implementation=(function(){function n(s,u){t(this,n);var l=u[0],h=u[1],o=null;if(void 0!==h&&null===(o=r(d[2]).basicURLParse(h)))throw new TypeError(`Invalid base URL: ${h}`);var _=r(d[2]).basicURLParse(l,{baseURL:o});if(null===_)throw new TypeError(`Invalid URL: ${l}`);var c=null!==_.query?_.query:"";this._url=_,this._query=r(d[3]).createImpl(s,[c],{doNotStripQMark:!0}),this._query._url=this}return s(n,[{key:"href",get:function(){return r(d[2]).serializeURL(this._url)},set:function(t){var s=r(d[2]).basicURLParse(t);if(null===s)throw new TypeError(`Invalid URL: ${t}`);this._url=s,this._query._list.splice(0);var n=s.query;null!==n&&(this._query._list=r(d[4]).parseUrlencoded(n))}},{key:"origin",get:function(){return r(d[2]).serializeURLOrigin(this._url)}},{key:"protocol",get:function(){return this._url.scheme+":"},set:function(t){r(d[2]).basicURLParse(t+":",{url:this._url,stateOverride:"scheme start"})}},{key:"username",get:function(){return this._url.username},set:function(t){r(d[2]).cannotHaveAUsernamePasswordPort(this._url)||r(d[2]).setTheUsername(this._url,t)}},{key:"password",get:function(){return this._url.password},set:function(t){r(d[2]).cannotHaveAUsernamePasswordPort(this._url)||r(d[2]).setThePassword(this._url,t)}},{key:"host",get:function(){var t=this._url;return null===t.host?"":null===t.port?r(d[2]).serializeHost(t.host):r(d[2]).serializeHost(t.host)+":"+r(d[2]).serializeInteger(t.port)},set:function(t){this._url.cannotBeABaseURL||r(d[2]).basicURLParse(t,{url:this._url,stateOverride:"host"})}},{key:"hostname",get:function(){return null===this._url.host?"":r(d[2]).serializeHost(this._url.host)},set:function(t){this._url.cannotBeABaseURL||r(d[2]).basicURLParse(t,{url:this._url,stateOverride:"hostname"})}},{key:"port",get:function(){return null===this._url.port?"":r(d[2]).serializeInteger(this._url.port)},set:function(t){r(d[2]).cannotHaveAUsernamePasswordPort(this._url)||(""===t?this._url.port=null:r(d[2]).basicURLParse(t,{url:this._url,stateOverride:"port"}))}},{key:"pathname",get:function(){return this._url.cannotBeABaseURL?this._url.path[0]:0===this._url.path.length?"":"/"+this._url.path.join("/")},set:function(t){this._url.cannotBeABaseURL||(this._url.path=[],r(d[2]).basicURLParse(t,{url:this._url,stateOverride:"path start"}))}},{key:"search",get:function(){return null===this._url.query||""===this._url.query?"":"?"+this._url.query},set:function(t){var s=this._url;if(""===t)return s.query=null,void(this._query._list=[]);var n="?"===t[0]?t.substring(1):t;s.query="",r(d[2]).basicURLParse(n,{url:s,stateOverride:"query"}),this._query._list=r(d[4]).parseUrlencoded(n)}},{key:"searchParams",get:function(){return this._query}},{key:"hash",get:function(){return null===this._url.fragment||""===this._url.fragment?"":"#"+this._url.fragment},set:function(t){if(""!==t){var s="#"===t[0]?t.substring(1):t;this._url.fragment="",r(d[2]).basicURLParse(s,{url:this._url,stateOverride:"fragment"})}else this._url.fragment=null}},{key:"toJSON",value:function(){return this.href}}]),n})()}),453,[5,6,454,460,459]); +__d((function(g,r,_i,a,m,_e,d){"use strict";var t={ftp:21,file:null,http:80,https:443,ws:80,wss:443},s=Symbol("failure");function e(t){return r(d[0]).ucs2.decode(t).length}function i(t,s){var e=t[s];return isNaN(e)?void 0:String.fromCodePoint(e)}function h(t){return"."===t||"%2e"===t.toLowerCase()}function u(t){return 2===t.length&&r(d[1]).isASCIIAlpha(t.codePointAt(0))&&(":"===t[1]||"|"===t[1])}function n(s){return void 0!==t[s]}function o(t){return n(t.scheme)}function l(t){return!n(t.scheme)}function p(s){return t[s]}function f(t){for(var s=r(d[2]).Buffer.from(t),e="",i=0;i126}var b=new Set([47,58,59,61,64,91,92,93,94,124]);function v(t){return I(t)||b.has(t)}var y=new Set([32,34,60,62,96]);function w(t){return c(t)||y.has(t)}var A=new Set([35,63,123,125]);function I(t){return w(t)||A.has(t)}function E(t,s){var e=String.fromCodePoint(t);return s(t)?f(e):e}function S(t){var e=10;if(t.length>=2&&"0"===t.charAt(0)&&"x"===t.charAt(1).toLowerCase()?(t=t.substring(2),e=16):t.length>=2&&"0"===t.charAt(0)&&(t=t.substring(1),e=8),""===t)return 0;var i=/[^0-7]/;return 10===e&&(i=/[^0-9]/),16===e&&(i=/[^0-9A-Fa-f]/),i.test(t)?s:parseInt(t,e)}function q(t){var e=t.split(".");if(""===e[e.length-1]&&e.length>1&&e.pop(),e.length>4)return t;var i=[];for(var h of e){if(""===h)return t;var u=S(h);if(u===s)return t;i.push(u)}for(var n=0;n255)return s;if(i[i.length-1]>=Math.pow(256,5-i.length))return s;var o=i.pop(),l=0;for(var p of i)o+=p*Math.pow(256,3-l),++l;return o}function C(t){for(var s="",e=t,i=1;i<=4;++i)s=String(e%256)+s,4!==i&&(s="."+s),e=Math.floor(e/256);return s}function N(t){var e=[0,0,0,0,0,0,0,0],h=0,u=null,n=0;if(58===(t=r(d[0]).ucs2.decode(t))[n]){if(58!==t[n+1])return s;n+=2,u=++h}for(;n6)return s;for(var p=0;void 0!==t[n];){var f=null;if(p>0){if(!(46===t[n]&&p<4))return s;++n}if(!r(d[1]).isASCIIDigit(t[n]))return s;for(;r(d[1]).isASCIIDigit(t[n]);){var c=parseInt(i(t,n));if(null===f)f=c;else{if(0===f)return s;f=10*f+c}if(f>255)return s;++n}e[h]=256*e[h]+f,2!==++p&&4!==p||++h}if(4!==p)return s;break}if(58===t[n]){if(void 0===t[++n])return s}else if(void 0!==t[n])return s;e[h]=o,++h}else{if(null!==u)return s;++n,u=++h}}if(null!==u){var b=h-u;for(h=7;0!==h&&b>0;){var v=e[u+b-1];e[u+b-1]=e[h],e[h]=v,--h,--b}}else if(null===u&&8!==h)return s;return e}function O(t){for(var s="",e=U(t).idx,i=!1,h=0;h<=7;++h){if(!i||0!==t[h])if(i&&(i=!1),e!==h)s+=t[h].toString(16),7!==h&&(s+=":");else s+=0===h?"::":":",i=!0}return s}function x(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("["===t[0])return"]"!==t[t.length-1]?s:N(t.substring(1,t.length-1));if(e)return L(t);var i=B(r(d[3]).percentDecode(r(d[2]).Buffer.from(t)).toString());if(i===s)return s;if(-1!==i.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|\?|@|\[|\\|\]/))return s;var h=q(i);return"number"==typeof h||h===s?h:i}function L(t){if(-1!==t.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/))return s;for(var e="",i=r(d[0]).ucs2.decode(t),h=0;he&&(s=i,e=h),i=null,h=0):(null===i&&(i=u),++h);return h>e&&(s=i,e=h),{idx:s,len:e}}function R(t){return"number"==typeof t?C(t):t instanceof Array?"["+O(t)+"]":t}function B(t){return null===t?s:t}function F(t){return t.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g,"")}function P(t){return t.replace(/\u0009|\u000A|\u000D/g,"")}function H(t){var s,e=t.path;0!==e.length&&("file"===t.scheme&&1===e.length&&(s=e[0],/^[A-Za-z]:$/.test(s))||e.pop())}function k(t){return""!==t.username||""!==t.password}function D(t,e,i,h,u){if(this.pointer=0,this.input=t,this.base=e||null,this.encodingOverride=i||"utf-8",this.stateOverride=u,this.url=h,this.failure=!1,this.parseError=!1,!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null,cannotBeABaseURL:!1};var n=F(this.input);n!==this.input&&(this.parseError=!0),this.input=n}var o=P(this.input);for(o!==this.input&&(this.parseError=!0),this.input=o,this.state=u||"scheme start",this.buffer="",this.atFlag=!1,this.arrFlag=!1,this.passwordTokenSeenFlag=!1,this.input=r(d[0]).ucs2.decode(this.input);this.pointer<=this.input.length;++this.pointer){var l=this.input[this.pointer],p=isNaN(l)?void 0:String.fromCodePoint(l),f=this["parse "+this.state](l,p);if(!f)break;if(f===s){this.failure=!0;break}}}D.prototype["parse scheme start"]=function(t,e){if(r(d[1]).isASCIIAlpha(t))this.buffer+=e.toLowerCase(),this.state="scheme";else{if(this.stateOverride)return this.parseError=!0,s;this.state="no scheme",--this.pointer}return!0},D.prototype["parse scheme"]=function(t,e){if(r(d[1]).isASCIIAlphanumeric(t)||43===t||45===t||46===t)this.buffer+=e.toLowerCase();else if(58===t){if(this.stateOverride){if(o(this.url)&&!n(this.buffer))return!1;if(!o(this.url)&&n(this.buffer))return!1;if((k(this.url)||null!==this.url.port)&&"file"===this.buffer)return!1;if("file"===this.url.scheme&&(""===this.url.host||null===this.url.host))return!1}if(this.url.scheme=this.buffer,this.stateOverride)return this.url.port===p(this.url.scheme)&&(this.url.port=null),!1;this.buffer="","file"===this.url.scheme?(47===this.input[this.pointer+1]&&47===this.input[this.pointer+2]||(this.parseError=!0),this.state="file"):o(this.url)&&null!==this.base&&this.base.scheme===this.url.scheme?this.state="special relative or authority":o(this.url)?this.state="special authority slashes":47===this.input[this.pointer+1]?(this.state="path or authority",++this.pointer):(this.url.cannotBeABaseURL=!0,this.url.path.push(""),this.state="cannot-be-a-base-URL path")}else{if(this.stateOverride)return this.parseError=!0,s;this.buffer="",this.state="no scheme",this.pointer=-1}return!0},D.prototype["parse no scheme"]=function(t){return null===this.base||this.base.cannotBeABaseURL&&35!==t?s:(this.base.cannotBeABaseURL&&35===t?(this.url.scheme=this.base.scheme,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.url.cannotBeABaseURL=!0,this.state="fragment"):"file"===this.base.scheme?(this.state="file",--this.pointer):(this.state="relative",--this.pointer),!0)},D.prototype["parse special relative or authority"]=function(t){return 47===t&&47===this.input[this.pointer+1]?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="relative",--this.pointer),!0},D.prototype["parse path or authority"]=function(t){return 47===t?this.state="authority":(this.state="path",--this.pointer),!0},D.prototype["parse relative"]=function(t){return this.url.scheme=this.base.scheme,isNaN(t)?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query):47===t?this.state="relative slash":63===t?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query="",this.state="query"):35===t?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):o(this.url)&&92===t?(this.parseError=!0,this.state="relative slash"):(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(0,this.base.path.length-1),this.state="path",--this.pointer),!0},D.prototype["parse relative slash"]=function(t){return!o(this.url)||47!==t&&92!==t?47===t?this.state="authority":(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.state="path",--this.pointer):(92===t&&(this.parseError=!0),this.state="special authority ignore slashes"),!0},D.prototype["parse special authority slashes"]=function(t){return 47===t&&47===this.input[this.pointer+1]?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="special authority ignore slashes",--this.pointer),!0},D.prototype["parse special authority ignore slashes"]=function(t){return 47!==t&&92!==t?(this.state="authority",--this.pointer):this.parseError=!0,!0},D.prototype["parse authority"]=function(t,i){if(64===t){this.parseError=!0,this.atFlag&&(this.buffer="%40"+this.buffer),this.atFlag=!0;for(var h=e(this.buffer),u=0;uMath.pow(2,16)-1)return this.parseError=!0,s;this.url.port=i===p(this.url.scheme)?null:i,this.buffer=""}if(this.stateOverride)return!1;this.state="path start",--this.pointer}return!0};var z=new Set([47,92,63,35]);function T(t,s){var e,i,h=t.length-s;return h>=2&&(e=t[s],i=t[s+1],r(d[1]).isASCIIAlpha(e)&&(58===i||124===i))&&(2===h||z.has(t[s+2]))}D.prototype["parse file"]=function(t){return this.url.scheme="file",47===t||92===t?(92===t&&(this.parseError=!0),this.state="file slash"):null!==this.base&&"file"===this.base.scheme?isNaN(t)?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query):63===t?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query="",this.state="query"):35===t?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):(T(this.input,this.pointer)?this.parseError=!0:(this.url.host=this.base.host,this.url.path=this.base.path.slice(),H(this.url)),this.state="path",--this.pointer):(this.state="path",--this.pointer),!0},D.prototype["parse file slash"]=function(t){var s;return 47===t||92===t?(92===t&&(this.parseError=!0),this.state="file host"):(null===this.base||"file"!==this.base.scheme||T(this.input,this.pointer)||(2===(s=this.base.path[0]).length&&r(d[1]).isASCIIAlpha(s.codePointAt(0))&&":"===s[1]?this.url.path.push(this.base.path[0]):this.url.host=this.base.host),this.state="path",--this.pointer),!0},D.prototype["parse file host"]=function(t,e){if(isNaN(t)||47===t||92===t||63===t||35===t)if(--this.pointer,!this.stateOverride&&u(this.buffer))this.parseError=!0,this.state="path";else if(""===this.buffer){if(this.url.host="",this.stateOverride)return!1;this.state="path start"}else{var i=x(this.buffer,l(this.url));if(i===s)return s;if("localhost"===i&&(i=""),this.url.host=i,this.stateOverride)return!1;this.buffer="",this.state="path start"}else this.buffer+=e;return!0},D.prototype["parse path start"]=function(t){return o(this.url)?(92===t&&(this.parseError=!0),this.state="path",47!==t&&92!==t&&--this.pointer):this.stateOverride||63!==t?this.stateOverride||35!==t?void 0!==t&&(this.state="path",47!==t&&--this.pointer):(this.url.fragment="",this.state="fragment"):(this.url.query="",this.state="query"),!0},D.prototype["parse path"]=function(t){if(isNaN(t)||47===t||o(this.url)&&92===t||!this.stateOverride&&(63===t||35===t)){if(o(this.url)&&92===t&&(this.parseError=!0),".."===(s=(s=this.buffer).toLowerCase())||"%2e."===s||".%2e"===s||"%2e%2e"===s?(H(this.url),47===t||o(this.url)&&92===t||this.url.path.push("")):!h(this.buffer)||47===t||o(this.url)&&92===t?h(this.buffer)||("file"===this.url.scheme&&0===this.url.path.length&&u(this.buffer)&&(""!==this.url.host&&null!==this.url.host&&(this.parseError=!0,this.url.host=""),this.buffer=this.buffer[0]+":"),this.url.path.push(this.buffer)):this.url.path.push(""),this.buffer="","file"===this.url.scheme&&(void 0===t||63===t||35===t))for(;this.url.path.length>1&&""===this.url.path[0];)this.parseError=!0,this.url.path.shift();63===t&&(this.url.query="",this.state="query"),35===t&&(this.url.fragment="",this.state="fragment")}else 37!==t||r(d[1]).isASCIIHex(this.input[this.pointer+1])&&r(d[1]).isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=E(t,I);var s;return!0},D.prototype["parse cannot-be-a-base-URL path"]=function(t){return 63===t?(this.url.query="",this.state="query"):35===t?(this.url.fragment="",this.state="fragment"):(isNaN(t)||37===t||(this.parseError=!0),37!==t||r(d[1]).isASCIIHex(this.input[this.pointer+1])&&r(d[1]).isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),isNaN(t)||(this.url.path[0]+=E(t,c))),!0},D.prototype["parse query"]=function(t,s){if(isNaN(t)||!this.stateOverride&&35===t){o(this.url)&&"ws"!==this.url.scheme&&"wss"!==this.url.scheme||(this.encodingOverride="utf-8");for(var e=r(d[2]).Buffer.from(this.buffer),i=0;i126||34===e[i]||35===e[i]||60===e[i]||62===e[i]||39===e[i]&&o(this.url)?this.url.query+=r(d[3]).percentEncode(e[i]):this.url.query+=String.fromCodePoint(e[i]);this.buffer="",35===t&&(this.url.fragment="",this.state="fragment")}else 37!==t||r(d[1]).isASCIIHex(this.input[this.pointer+1])&&r(d[1]).isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=s;return!0},D.prototype["parse fragment"]=function(t){return isNaN(t)||(0===t?this.parseError=!0:(37!==t||r(d[1]).isASCIIHex(this.input[this.pointer+1])&&r(d[1]).isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),this.url.fragment+=E(t,w))),!0},m.exports.serializeURL=function(t,s){var e=t.scheme+":";if(null!==t.host?(e+="//",""===t.username&&""===t.password||(e+=t.username,""!==t.password&&(e+=":"+t.password),e+="@"),e+=R(t.host),null!==t.port&&(e+=":"+t.port)):null===t.host&&"file"===t.scheme&&(e+="//"),t.cannotBeABaseURL)e+=t.path[0];else for(var i of t.path)e+="/"+i;return null!==t.query&&(e+="?"+t.query),s||null===t.fragment||(e+="#"+t.fragment),e},m.exports.serializeURLOrigin=function(t){switch(t.scheme){case"blob":try{return m.exports.serializeURLOrigin(m.exports.parseURL(t.path[0]))}catch(t){return"null"}case"ftp":case"http":case"https":case"ws":case"wss":return s={scheme:t.scheme,host:t.host,port:t.port},e=s.scheme+"://",e+=R(s.host),null!==s.port&&(e+=":"+s.port),e;default:return"null"}var s,e},m.exports.basicURLParse=function(t,s){void 0===s&&(s={});var e=new D(t,s.baseURL,s.encodingOverride,s.url,s.stateOverride);return e.failure?null:e.url},m.exports.setTheUsername=function(t,s){t.username="";for(var e=r(d[0]).ucs2.decode(s),i=0;i= 0x80 (not a basic code point)','invalid-input':'Invalid input'},c=Math.floor,l=String.fromCharCode;function s(n){throw new RangeError(v[n])}function p(n,o){for(var t=[],i=n.length;i--;)t[i]=o(n[i]);return t}function h(n,o){var t=n.split('@'),i='';return t.length>1&&(i=t[0]+'@',n=t[1]),i+p((n=n.replace(f,'.')).split('.'),o).join('.')}function w(n){for(var o=[],t=0,i=n.length;t=55296&&u<=56319&&t>1,n+=c(n/o);n>455;u+=t)n=c(n/35);return c(u+36*n/(n+38))},A=function(n){var i,u=[],f=n.length,v=0,l=128,p=72,h=n.lastIndexOf("-");h<0&&(h=0);for(var w=0;w=128&&s('not-basic'),u.push(n.charCodeAt(w));for(var C=h>0?h+1:0;C=f&&s('invalid-input');var F=(i=n.charCodeAt(C++))>=48&&i<58?i-48+26:i>=65&&i<91?i-65:i>=97&&i<123?i-97:t;F>=t&&s('invalid-input'),F>c((o-v)/S)&&s('overflow'),v+=F*S;var I=b<=p?1:b>=p+26?26:b-p;if(Fc(o/m)&&s('overflow'),S*=m}var E=u.length+1;p=x(v-A,E,0==A),c(v/E)>o-l&&s('overflow'),l+=c(v/E),v%=E,u.splice(v++,0,l)}return String.fromCodePoint.apply(String,u)},S=function(n){var i=[],u=(n=w(n)).length,f=128,v=0,p=72;for(var h of n)h<128&&i.push(l(h));var A=i.length,S=A;for(A&&i.push("-");S=f&&Fc((o-v)/I)&&s('overflow'),v+=(b-f)*I,f=b,n))if(mo&&s('overflow'),m===f){for(var E=v,j=t;;j+=t){var k=j<=p?1:j>=p+26?26:j-p;if(E=48&&n<=57}function t(n){return n>=65&&n<=90||n>=97&&n<=122}m.exports={isASCIIDigit:n,isASCIIAlpha:t,isASCIIAlphanumeric:function(u){return t(u)||n(u)},isASCIIHex:function(t){return n(t)||t>=65&&t<=70||t>=97&&t<=102}}}),456,[]); __d((function(g,r,_i,_a,_m,_e,d){ /*! * The buffer module from node.js, for the browser. @@ -507,244 +509,276 @@ __d((function(g,r,_i,_a,_m,_e,d){ * @author Feross Aboukhadijeh * @license MIT */ -'use strict';var t='function'==typeof Symbol&&'function'==typeof Symbol.for?Symbol.for('nodejs.util.inspect.custom'):null;_e.Buffer=i,_e.SlowBuffer=function(t){+t!=t&&(t=0);return i.alloc(+t)},_e.INSPECT_MAX_BYTES=50;var e=2147483647;function n(t){if(t>e)throw new RangeError('The value "'+t+'" is invalid for option "size"');var n=new Uint8Array(t);return Object.setPrototypeOf(n,i.prototype),n}function i(t,e,n){if('number'==typeof t){if('string'==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return s(t)}return o(t,e,n)}function o(t,e,n){if('string'==typeof t)return h(t,e);if(ArrayBuffer.isView(t))return p(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(J(t,ArrayBuffer)||t&&J(t.buffer,ArrayBuffer))return c(t,e,n);if('undefined'!=typeof SharedArrayBuffer&&(J(t,SharedArrayBuffer)||t&&J(t.buffer,SharedArrayBuffer)))return c(t,e,n);if('number'==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var o=t.valueOf&&t.valueOf();if(null!=o&&o!==t)return i.from(o,e,n);var f=l(t);if(f)return f;if('undefined'!=typeof Symbol&&null!=Symbol.toPrimitive&&'function'==typeof t[Symbol.toPrimitive])return i.from(t[Symbol.toPrimitive]('string'),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function f(t){if('number'!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function u(t,e,i){return f(t),t<=0?n(t):void 0!==e?'string'==typeof i?n(t).fill(e,i):n(t).fill(e):n(t)}function s(t){return f(t),n(t<0?0:0|y(t))}function h(t,e){if('string'==typeof e&&''!==e||(e='utf8'),!i.isEncoding(e))throw new TypeError('Unknown encoding: '+e);var o=0|w(t,e),f=n(o),u=f.write(t,e);return u!==o&&(f=f.slice(0,u)),f}function a(t){for(var e=t.length<0?0:0|y(t.length),i=n(e),o=0;o=e)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+e.toString(16)+' bytes');return 0|t}function w(t,e){if(i.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||J(t,ArrayBuffer))return t.byteLength;if('string'!=typeof t)throw new TypeError("The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type "+typeof t);var n=t.length,o=arguments.length>2&&!0===arguments[2];if(!o&&0===n)return 0;for(var f=!1;;)switch(e){case'ascii':case'latin1':case'binary':return n;case'utf8':case'utf-8':return Y(t).length;case'ucs2':case'ucs-2':case'utf16le':case'utf-16le':return 2*n;case'hex':return n>>>1;case'base64':return W(t).length;default:if(f)return o?-1:Y(t).length;e=(''+e).toLowerCase(),f=!0}}function v(t,e,n){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return'';if((void 0===n||n>this.length)&&(n=this.length),n<=0)return'';if((n>>>=0)<=(e>>>=0))return'';for(t||(t='utf8');;)switch(t){case'hex':return P(this,e,n);case'utf8':case'utf-8':return S(this,e,n);case'ascii':return x(this,e,n);case'latin1':case'binary':return C(this,e,n);case'base64':return L(this,e,n);case'ucs2':case'ucs-2':case'utf16le':case'utf-16le':return k(this,e,n);default:if(i)throw new TypeError('Unknown encoding: '+t);t=(t+'').toLowerCase(),i=!0}}function b(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function m(t,e,n,o,f){if(0===t.length)return-1;if('string'==typeof n?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),Z(n=+n)&&(n=f?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(f)return-1;n=t.length-1}else if(n<0){if(!f)return-1;n=0}if('string'==typeof e&&(e=i.from(e,o)),i.isBuffer(e))return 0===e.length?-1:E(t,e,n,o,f);if('number'==typeof e)return e&=255,'function'==typeof Uint8Array.prototype.indexOf?f?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):E(t,[e],n,o,f);throw new TypeError('val must be string, number or Buffer')}function E(t,e,n,i,o){var f,u=1,s=t.length,h=e.length;if(void 0!==i&&('ucs2'===(i=String(i).toLowerCase())||'ucs-2'===i||'utf16le'===i||'utf-16le'===i)){if(t.length<2||e.length<2)return-1;u=2,s/=2,h/=2,n/=2}function a(t,e){return 1===u?t[e]:t.readUInt16BE(e*u)}if(o){var p=-1;for(f=n;fs&&(n=s-h),f=n;f>=0;f--){for(var c=!0,l=0;lo&&(i=o):i=o;var f=e.length;i>f/2&&(i=f/2);for(var u=0;u239?4:a>223?3:a>191?2:1;if(o+c<=n)switch(c){case 1:a<128&&(p=a);break;case 2:128==(192&(f=t[o+1]))&&(h=(31&a)<<6|63&f)>127&&(p=h);break;case 3:f=t[o+1],u=t[o+2],128==(192&f)&&128==(192&u)&&(h=(15&a)<<12|(63&f)<<6|63&u)>2047&&(h<55296||h>57343)&&(p=h);break;case 4:f=t[o+1],u=t[o+2],s=t[o+3],128==(192&f)&&128==(192&u)&&128==(192&s)&&(h=(15&a)<<18|(63&f)<<12|(63&u)<<6|63&s)>65535&&h<1114112&&(p=h)}null===p?(p=65533,c=1):p>65535&&(p-=65536,i.push(p>>>10&1023|55296),p=56320|1023&p),i.push(p),o+=c}return R(i)}_e.kMaxLength=e,i.TYPED_ARRAY_SUPPORT=(function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}})(),i.TYPED_ARRAY_SUPPORT||'undefined'==typeof console||'function'!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(i.prototype,'parent',{enumerable:!0,get:function(){if(i.isBuffer(this))return this.buffer}}),Object.defineProperty(i.prototype,'offset',{enumerable:!0,get:function(){if(i.isBuffer(this))return this.byteOffset}}),i.poolSize=8192,i.from=function(t,e,n){return o(t,e,n)},Object.setPrototypeOf(i.prototype,Uint8Array.prototype),Object.setPrototypeOf(i,Uint8Array),i.alloc=function(t,e,n){return u(t,e,n)},i.allocUnsafe=function(t){return s(t)},i.allocUnsafeSlow=function(t){return s(t)},i.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==i.prototype},i.compare=function(t,e){if(J(t,Uint8Array)&&(t=i.from(t,t.offset,t.byteLength)),J(e,Uint8Array)&&(e=i.from(e,e.offset,e.byteLength)),!i.isBuffer(t)||!i.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var n=t.length,o=e.length,f=0,u=Math.min(n,o);fo.length?i.from(u).copy(o,f):Uint8Array.prototype.set.call(o,u,f);else{if(!i.isBuffer(u))throw new TypeError('"list" argument must be an Array of Buffers');u.copy(o,f)}f+=u.length}return o},i.byteLength=w,i.prototype._isBuffer=!0,i.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError('Buffer size must be a multiple of 16-bits');for(var e=0;ee&&(t+=' ... '),''},t&&(i.prototype[t]=i.prototype.inspect),i.prototype.compare=function(t,e,n,o,f){if(J(t,Uint8Array)&&(t=i.from(t,t.offset,t.byteLength)),!i.isBuffer(t))throw new TypeError("The \"target\" argument must be one of type Buffer or Uint8Array. Received type "+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===o&&(o=0),void 0===f&&(f=this.length),e<0||n>t.length||o<0||f>this.length)throw new RangeError('out of range index');if(o>=f&&e>=n)return 0;if(o>=f)return-1;if(e>=n)return 1;if(this===t)return 0;for(var u=(f>>>=0)-(o>>>=0),s=(n>>>=0)-(e>>>=0),h=Math.min(u,s),a=this.slice(o,f),p=t.slice(e,n),c=0;c>>=0,isFinite(n)?(n>>>=0,void 0===i&&(i='utf8')):(i=n,n=void 0)}var o=this.length-e;if((void 0===n||n>o)&&(n=o),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError('Attempt to write outside buffer bounds');i||(i='utf8');for(var f=!1;;)switch(i){case'hex':return B(this,t,e,n);case'utf8':case'utf-8':return A(this,t,e,n);case'ascii':case'latin1':case'binary':return U(this,t,e,n);case'base64':return T(this,t,e,n);case'ucs2':case'ucs-2':case'utf16le':case'utf-16le':return I(this,t,e,n);default:if(f)throw new TypeError('Unknown encoding: '+i);i=(''+i).toLowerCase(),f=!0}},i.prototype.toJSON=function(){return{type:'Buffer',data:Array.prototype.slice.call(this._arr||this,0)}};var O=4096;function R(t){var e=t.length;if(e<=O)return String.fromCharCode.apply(String,t);for(var n='',i=0;ii)&&(n=i);for(var o='',f=e;fn)throw new RangeError('Trying to access beyond buffer length')}function _(t,e,n,o,f,u){if(!i.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>f||et.length)throw new RangeError('Index out of range')}function j(t,e,n,i,o,f){if(n+i>t.length)throw new RangeError('Index out of range');if(n<0)throw new RangeError('Index out of range')}function z(t,e,n,i,o){return e=+e,n>>>=0,o||j(t,0,n,4),r(d[1]).write(t,e,n,i,23,4),n+4}function D(t,e,n,i,o){return e=+e,n>>>=0,o||j(t,0,n,8),r(d[1]).write(t,e,n,i,52,8),n+8}i.prototype.slice=function(t,e){var n=this.length;(t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e>>=0,e>>>=0,n||M(t,e,this.length);for(var i=this[t],o=1,f=0;++f>>=0,e>>>=0,n||M(t,e,this.length);for(var i=this[t+--e],o=1;e>0&&(o*=256);)i+=this[t+--e]*o;return i},i.prototype.readUint8=i.prototype.readUInt8=function(t,e){return t>>>=0,e||M(t,1,this.length),this[t]},i.prototype.readUint16LE=i.prototype.readUInt16LE=function(t,e){return t>>>=0,e||M(t,2,this.length),this[t]|this[t+1]<<8},i.prototype.readUint16BE=i.prototype.readUInt16BE=function(t,e){return t>>>=0,e||M(t,2,this.length),this[t]<<8|this[t+1]},i.prototype.readUint32LE=i.prototype.readUInt32LE=function(t,e){return t>>>=0,e||M(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},i.prototype.readUint32BE=i.prototype.readUInt32BE=function(t,e){return t>>>=0,e||M(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},i.prototype.readIntLE=function(t,e,n){t>>>=0,e>>>=0,n||M(t,e,this.length);for(var i=this[t],o=1,f=0;++f=(o*=128)&&(i-=Math.pow(2,8*e)),i},i.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||M(t,e,this.length);for(var i=e,o=1,f=this[t+--i];i>0&&(o*=256);)f+=this[t+--i]*o;return f>=(o*=128)&&(f-=Math.pow(2,8*e)),f},i.prototype.readInt8=function(t,e){return t>>>=0,e||M(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},i.prototype.readInt16LE=function(t,e){t>>>=0,e||M(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},i.prototype.readInt16BE=function(t,e){t>>>=0,e||M(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},i.prototype.readInt32LE=function(t,e){return t>>>=0,e||M(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},i.prototype.readInt32BE=function(t,e){return t>>>=0,e||M(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},i.prototype.readFloatLE=function(t,e){return t>>>=0,e||M(t,4,this.length),r(d[1]).read(this,t,!0,23,4)},i.prototype.readFloatBE=function(t,e){return t>>>=0,e||M(t,4,this.length),r(d[1]).read(this,t,!1,23,4)},i.prototype.readDoubleLE=function(t,e){return t>>>=0,e||M(t,8,this.length),r(d[1]).read(this,t,!0,52,8)},i.prototype.readDoubleBE=function(t,e){return t>>>=0,e||M(t,8,this.length),r(d[1]).read(this,t,!1,52,8)},i.prototype.writeUintLE=i.prototype.writeUIntLE=function(t,e,n,i){(t=+t,e>>>=0,n>>>=0,i)||_(this,t,e,n,Math.pow(2,8*n)-1,0);var o=1,f=0;for(this[e]=255&t;++f>>=0,n>>>=0,i)||_(this,t,e,n,Math.pow(2,8*n)-1,0);var o=n-1,f=1;for(this[e+o]=255&t;--o>=0&&(f*=256);)this[e+o]=t/f&255;return e+n},i.prototype.writeUint8=i.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||_(this,t,e,1,255,0),this[e]=255&t,e+1},i.prototype.writeUint16LE=i.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||_(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},i.prototype.writeUint16BE=i.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||_(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},i.prototype.writeUint32LE=i.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||_(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},i.prototype.writeUint32BE=i.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||_(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},i.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e>>>=0,!i){var o=Math.pow(2,8*n-1);_(this,t,e,n,o-1,-o)}var f=0,u=1,s=0;for(this[e]=255&t;++f>>=0,!i){var o=Math.pow(2,8*n-1);_(this,t,e,n,o-1,-o)}var f=n-1,u=1,s=0;for(this[e+f]=255&t;--f>=0&&(u*=256);)t<0&&0===s&&0!==this[e+f+1]&&(s=1),this[e+f]=(t/u|0)-s&255;return e+n},i.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||_(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},i.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||_(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},i.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||_(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},i.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||_(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},i.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||_(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},i.prototype.writeFloatLE=function(t,e,n){return z(this,t,e,!0,n)},i.prototype.writeFloatBE=function(t,e,n){return z(this,t,e,!1,n)},i.prototype.writeDoubleLE=function(t,e,n){return D(this,t,e,!0,n)},i.prototype.writeDoubleBE=function(t,e,n){return D(this,t,e,!1,n)},i.prototype.copy=function(t,e,n,o){if(!i.isBuffer(t))throw new TypeError('argument should be a Buffer');if(n||(n=0),o||0===o||(o=this.length),e>=t.length&&(e=t.length),e||(e=0),o>0&&o=this.length)throw new RangeError('Index out of range');if(o<0)throw new RangeError('sourceEnd out of bounds');o>this.length&&(o=this.length),t.length-e>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),'number'==typeof t)for(u=e;u55295&&n<57344){if(!o){if(n>56319){(e-=3)>-1&&f.push(239,191,189);continue}if(u+1===i){(e-=3)>-1&&f.push(239,191,189);continue}o=n;continue}if(n<56320){(e-=3)>-1&&f.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(e-=3)>-1&&f.push(239,191,189);if(o=null,n<128){if((e-=1)<0)break;f.push(n)}else if(n<2048){if((e-=2)<0)break;f.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;f.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error('Invalid code point');if((e-=4)<0)break;f.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return f}function q(t){for(var e=[],n=0;n>8,o=n%256,f.push(o),f.push(i);return f}function W(t){return r(d[0]).toByteArray(N(t))}function X(t,e,n,i){for(var o=0;o=e.length||o>=t.length);++o)e[o+n]=t[o];return o}function J(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function Z(t){return t!=t}var $=(function(){for(var t='0123456789abcdef',e=new Array(256),n=0;n<16;++n)for(var i=16*n,o=0;o<16;++o)e[i+o]=t[n]+t[o];return e})()}),455,[103,456]); +'use strict';var t='function'==typeof Symbol&&'function'==typeof Symbol.for?Symbol.for('nodejs.util.inspect.custom'):null;_e.Buffer=i,_e.SlowBuffer=function(t){+t!=t&&(t=0);return i.alloc(+t)},_e.INSPECT_MAX_BYTES=50;var e=2147483647;function n(t){if(t>e)throw new RangeError('The value "'+t+'" is invalid for option "size"');var n=new Uint8Array(t);return Object.setPrototypeOf(n,i.prototype),n}function i(t,e,n){if('number'==typeof t){if('string'==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return s(t)}return o(t,e,n)}function o(t,e,n){if('string'==typeof t)return h(t,e);if(ArrayBuffer.isView(t))return p(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(J(t,ArrayBuffer)||t&&J(t.buffer,ArrayBuffer))return c(t,e,n);if('undefined'!=typeof SharedArrayBuffer&&(J(t,SharedArrayBuffer)||t&&J(t.buffer,SharedArrayBuffer)))return c(t,e,n);if('number'==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var o=t.valueOf&&t.valueOf();if(null!=o&&o!==t)return i.from(o,e,n);var f=l(t);if(f)return f;if('undefined'!=typeof Symbol&&null!=Symbol.toPrimitive&&'function'==typeof t[Symbol.toPrimitive])return i.from(t[Symbol.toPrimitive]('string'),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function f(t){if('number'!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function u(t,e,i){return f(t),t<=0?n(t):void 0!==e?'string'==typeof i?n(t).fill(e,i):n(t).fill(e):n(t)}function s(t){return f(t),n(t<0?0:0|y(t))}function h(t,e){if('string'==typeof e&&''!==e||(e='utf8'),!i.isEncoding(e))throw new TypeError('Unknown encoding: '+e);var o=0|w(t,e),f=n(o),u=f.write(t,e);return u!==o&&(f=f.slice(0,u)),f}function a(t){for(var e=t.length<0?0:0|y(t.length),i=n(e),o=0;o=e)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+e.toString(16)+' bytes');return 0|t}function w(t,e){if(i.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||J(t,ArrayBuffer))return t.byteLength;if('string'!=typeof t)throw new TypeError("The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type "+typeof t);var n=t.length,o=arguments.length>2&&!0===arguments[2];if(!o&&0===n)return 0;for(var f=!1;;)switch(e){case'ascii':case'latin1':case'binary':return n;case'utf8':case'utf-8':return Y(t).length;case'ucs2':case'ucs-2':case'utf16le':case'utf-16le':return 2*n;case'hex':return n>>>1;case'base64':return W(t).length;default:if(f)return o?-1:Y(t).length;e=(''+e).toLowerCase(),f=!0}}function v(t,e,n){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return'';if((void 0===n||n>this.length)&&(n=this.length),n<=0)return'';if((n>>>=0)<=(e>>>=0))return'';for(t||(t='utf8');;)switch(t){case'hex':return P(this,e,n);case'utf8':case'utf-8':return S(this,e,n);case'ascii':return x(this,e,n);case'latin1':case'binary':return C(this,e,n);case'base64':return L(this,e,n);case'ucs2':case'ucs-2':case'utf16le':case'utf-16le':return k(this,e,n);default:if(i)throw new TypeError('Unknown encoding: '+t);t=(t+'').toLowerCase(),i=!0}}function b(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function m(t,e,n,o,f){if(0===t.length)return-1;if('string'==typeof n?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),Z(n=+n)&&(n=f?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(f)return-1;n=t.length-1}else if(n<0){if(!f)return-1;n=0}if('string'==typeof e&&(e=i.from(e,o)),i.isBuffer(e))return 0===e.length?-1:E(t,e,n,o,f);if('number'==typeof e)return e&=255,'function'==typeof Uint8Array.prototype.indexOf?f?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):E(t,[e],n,o,f);throw new TypeError('val must be string, number or Buffer')}function E(t,e,n,i,o){var f,u=1,s=t.length,h=e.length;if(void 0!==i&&('ucs2'===(i=String(i).toLowerCase())||'ucs-2'===i||'utf16le'===i||'utf-16le'===i)){if(t.length<2||e.length<2)return-1;u=2,s/=2,h/=2,n/=2}function a(t,e){return 1===u?t[e]:t.readUInt16BE(e*u)}if(o){var p=-1;for(f=n;fs&&(n=s-h),f=n;f>=0;f--){for(var c=!0,l=0;lo&&(i=o):i=o;var f=e.length;i>f/2&&(i=f/2);for(var u=0;u239?4:a>223?3:a>191?2:1;if(o+c<=n)switch(c){case 1:a<128&&(p=a);break;case 2:128==(192&(f=t[o+1]))&&(h=(31&a)<<6|63&f)>127&&(p=h);break;case 3:f=t[o+1],u=t[o+2],128==(192&f)&&128==(192&u)&&(h=(15&a)<<12|(63&f)<<6|63&u)>2047&&(h<55296||h>57343)&&(p=h);break;case 4:f=t[o+1],u=t[o+2],s=t[o+3],128==(192&f)&&128==(192&u)&&128==(192&s)&&(h=(15&a)<<18|(63&f)<<12|(63&u)<<6|63&s)>65535&&h<1114112&&(p=h)}null===p?(p=65533,c=1):p>65535&&(p-=65536,i.push(p>>>10&1023|55296),p=56320|1023&p),i.push(p),o+=c}return R(i)}_e.kMaxLength=e,i.TYPED_ARRAY_SUPPORT=(function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}})(),i.TYPED_ARRAY_SUPPORT||'undefined'==typeof console||'function'!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(i.prototype,'parent',{enumerable:!0,get:function(){if(i.isBuffer(this))return this.buffer}}),Object.defineProperty(i.prototype,'offset',{enumerable:!0,get:function(){if(i.isBuffer(this))return this.byteOffset}}),i.poolSize=8192,i.from=function(t,e,n){return o(t,e,n)},Object.setPrototypeOf(i.prototype,Uint8Array.prototype),Object.setPrototypeOf(i,Uint8Array),i.alloc=function(t,e,n){return u(t,e,n)},i.allocUnsafe=function(t){return s(t)},i.allocUnsafeSlow=function(t){return s(t)},i.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==i.prototype},i.compare=function(t,e){if(J(t,Uint8Array)&&(t=i.from(t,t.offset,t.byteLength)),J(e,Uint8Array)&&(e=i.from(e,e.offset,e.byteLength)),!i.isBuffer(t)||!i.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var n=t.length,o=e.length,f=0,u=Math.min(n,o);fo.length?i.from(u).copy(o,f):Uint8Array.prototype.set.call(o,u,f);else{if(!i.isBuffer(u))throw new TypeError('"list" argument must be an Array of Buffers');u.copy(o,f)}f+=u.length}return o},i.byteLength=w,i.prototype._isBuffer=!0,i.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError('Buffer size must be a multiple of 16-bits');for(var e=0;ee&&(t+=' ... '),''},t&&(i.prototype[t]=i.prototype.inspect),i.prototype.compare=function(t,e,n,o,f){if(J(t,Uint8Array)&&(t=i.from(t,t.offset,t.byteLength)),!i.isBuffer(t))throw new TypeError("The \"target\" argument must be one of type Buffer or Uint8Array. Received type "+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===o&&(o=0),void 0===f&&(f=this.length),e<0||n>t.length||o<0||f>this.length)throw new RangeError('out of range index');if(o>=f&&e>=n)return 0;if(o>=f)return-1;if(e>=n)return 1;if(this===t)return 0;for(var u=(f>>>=0)-(o>>>=0),s=(n>>>=0)-(e>>>=0),h=Math.min(u,s),a=this.slice(o,f),p=t.slice(e,n),c=0;c>>=0,isFinite(n)?(n>>>=0,void 0===i&&(i='utf8')):(i=n,n=void 0)}var o=this.length-e;if((void 0===n||n>o)&&(n=o),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError('Attempt to write outside buffer bounds');i||(i='utf8');for(var f=!1;;)switch(i){case'hex':return B(this,t,e,n);case'utf8':case'utf-8':return A(this,t,e,n);case'ascii':case'latin1':case'binary':return U(this,t,e,n);case'base64':return T(this,t,e,n);case'ucs2':case'ucs-2':case'utf16le':case'utf-16le':return I(this,t,e,n);default:if(f)throw new TypeError('Unknown encoding: '+i);i=(''+i).toLowerCase(),f=!0}},i.prototype.toJSON=function(){return{type:'Buffer',data:Array.prototype.slice.call(this._arr||this,0)}};var O=4096;function R(t){var e=t.length;if(e<=O)return String.fromCharCode.apply(String,t);for(var n='',i=0;ii)&&(n=i);for(var o='',f=e;fn)throw new RangeError('Trying to access beyond buffer length')}function _(t,e,n,o,f,u){if(!i.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>f||et.length)throw new RangeError('Index out of range')}function j(t,e,n,i,o,f){if(n+i>t.length)throw new RangeError('Index out of range');if(n<0)throw new RangeError('Index out of range')}function z(t,e,n,i,o){return e=+e,n>>>=0,o||j(t,0,n,4),r(d[1]).write(t,e,n,i,23,4),n+4}function D(t,e,n,i,o){return e=+e,n>>>=0,o||j(t,0,n,8),r(d[1]).write(t,e,n,i,52,8),n+8}i.prototype.slice=function(t,e){var n=this.length;(t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e>>=0,e>>>=0,n||M(t,e,this.length);for(var i=this[t],o=1,f=0;++f>>=0,e>>>=0,n||M(t,e,this.length);for(var i=this[t+--e],o=1;e>0&&(o*=256);)i+=this[t+--e]*o;return i},i.prototype.readUint8=i.prototype.readUInt8=function(t,e){return t>>>=0,e||M(t,1,this.length),this[t]},i.prototype.readUint16LE=i.prototype.readUInt16LE=function(t,e){return t>>>=0,e||M(t,2,this.length),this[t]|this[t+1]<<8},i.prototype.readUint16BE=i.prototype.readUInt16BE=function(t,e){return t>>>=0,e||M(t,2,this.length),this[t]<<8|this[t+1]},i.prototype.readUint32LE=i.prototype.readUInt32LE=function(t,e){return t>>>=0,e||M(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},i.prototype.readUint32BE=i.prototype.readUInt32BE=function(t,e){return t>>>=0,e||M(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},i.prototype.readIntLE=function(t,e,n){t>>>=0,e>>>=0,n||M(t,e,this.length);for(var i=this[t],o=1,f=0;++f=(o*=128)&&(i-=Math.pow(2,8*e)),i},i.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||M(t,e,this.length);for(var i=e,o=1,f=this[t+--i];i>0&&(o*=256);)f+=this[t+--i]*o;return f>=(o*=128)&&(f-=Math.pow(2,8*e)),f},i.prototype.readInt8=function(t,e){return t>>>=0,e||M(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},i.prototype.readInt16LE=function(t,e){t>>>=0,e||M(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},i.prototype.readInt16BE=function(t,e){t>>>=0,e||M(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},i.prototype.readInt32LE=function(t,e){return t>>>=0,e||M(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},i.prototype.readInt32BE=function(t,e){return t>>>=0,e||M(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},i.prototype.readFloatLE=function(t,e){return t>>>=0,e||M(t,4,this.length),r(d[1]).read(this,t,!0,23,4)},i.prototype.readFloatBE=function(t,e){return t>>>=0,e||M(t,4,this.length),r(d[1]).read(this,t,!1,23,4)},i.prototype.readDoubleLE=function(t,e){return t>>>=0,e||M(t,8,this.length),r(d[1]).read(this,t,!0,52,8)},i.prototype.readDoubleBE=function(t,e){return t>>>=0,e||M(t,8,this.length),r(d[1]).read(this,t,!1,52,8)},i.prototype.writeUintLE=i.prototype.writeUIntLE=function(t,e,n,i){(t=+t,e>>>=0,n>>>=0,i)||_(this,t,e,n,Math.pow(2,8*n)-1,0);var o=1,f=0;for(this[e]=255&t;++f>>=0,n>>>=0,i)||_(this,t,e,n,Math.pow(2,8*n)-1,0);var o=n-1,f=1;for(this[e+o]=255&t;--o>=0&&(f*=256);)this[e+o]=t/f&255;return e+n},i.prototype.writeUint8=i.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||_(this,t,e,1,255,0),this[e]=255&t,e+1},i.prototype.writeUint16LE=i.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||_(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},i.prototype.writeUint16BE=i.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||_(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},i.prototype.writeUint32LE=i.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||_(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},i.prototype.writeUint32BE=i.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||_(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},i.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e>>>=0,!i){var o=Math.pow(2,8*n-1);_(this,t,e,n,o-1,-o)}var f=0,u=1,s=0;for(this[e]=255&t;++f>>=0,!i){var o=Math.pow(2,8*n-1);_(this,t,e,n,o-1,-o)}var f=n-1,u=1,s=0;for(this[e+f]=255&t;--f>=0&&(u*=256);)t<0&&0===s&&0!==this[e+f+1]&&(s=1),this[e+f]=(t/u|0)-s&255;return e+n},i.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||_(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},i.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||_(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},i.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||_(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},i.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||_(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},i.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||_(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},i.prototype.writeFloatLE=function(t,e,n){return z(this,t,e,!0,n)},i.prototype.writeFloatBE=function(t,e,n){return z(this,t,e,!1,n)},i.prototype.writeDoubleLE=function(t,e,n){return D(this,t,e,!0,n)},i.prototype.writeDoubleBE=function(t,e,n){return D(this,t,e,!1,n)},i.prototype.copy=function(t,e,n,o){if(!i.isBuffer(t))throw new TypeError('argument should be a Buffer');if(n||(n=0),o||0===o||(o=this.length),e>=t.length&&(e=t.length),e||(e=0),o>0&&o=this.length)throw new RangeError('Index out of range');if(o<0)throw new RangeError('sourceEnd out of bounds');o>this.length&&(o=this.length),t.length-e>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),'number'==typeof t)for(u=e;u55295&&n<57344){if(!o){if(n>56319){(e-=3)>-1&&f.push(239,191,189);continue}if(u+1===i){(e-=3)>-1&&f.push(239,191,189);continue}o=n;continue}if(n<56320){(e-=3)>-1&&f.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(e-=3)>-1&&f.push(239,191,189);if(o=null,n<128){if((e-=1)<0)break;f.push(n)}else if(n<2048){if((e-=2)<0)break;f.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;f.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error('Invalid code point');if((e-=4)<0)break;f.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return f}function q(t){for(var e=[],n=0;n>8,o=n%256,f.push(o),f.push(i);return f}function W(t){return r(d[0]).toByteArray(N(t))}function X(t,e,n,i){for(var o=0;o=e.length||o>=t.length);++o)e[o+n]=t[o];return o}function J(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function Z(t){return t!=t}var $=(function(){for(var t='0123456789abcdef',e=new Array(256),n=0;n<16;++n)for(var i=16*n,o=0;o<16;++o)e[i+o]=t[n]+t[o];return e})()}),457,[103,458]); __d((function(g,r,_i,a,_m,_e,_d){ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ -_e.read=function(o,t,h,M,f){var w,p,i=8*f-M-1,n=(1<>1,e=-7,u=h?f-1:0,s=h?-1:1,c=o[t+u];for(u+=s,w=c&(1<<-e)-1,c>>=-e,e+=i;e>0;w=256*w+o[t+u],u+=s,e-=8);for(p=w&(1<<-e)-1,w>>=-e,e+=M;e>0;p=256*p+o[t+u],u+=s,e-=8);if(0===w)w=1-N;else{if(w===n)return p?NaN:1/0*(c?-1:1);p+=Math.pow(2,M),w-=N}return(c?-1:1)*p*Math.pow(2,w-M)},_e.write=function(o,t,h,M,f,w){var p,i,n,N=8*w-f-1,e=(1<>1,s=23===f?Math.pow(2,-24)-Math.pow(2,-77):0,c=M?0:w-1,l=M?1:-1,d=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(i=isNaN(t)?1:0,p=e):(p=Math.floor(Math.log(t)/Math.LN2),t*(n=Math.pow(2,-p))<1&&(p--,n*=2),(t+=p+u>=1?s/n:s*Math.pow(2,1-u))*n>=2&&(p++,n/=2),p+u>=e?(i=0,p=e):p+u>=1?(i=(t*n-1)*Math.pow(2,f),p+=u):(i=t*Math.pow(2,u-1)*Math.pow(2,f),p=0));f>=8;o[h+c]=255&i,c+=l,i/=256,f-=8);for(p=p<0;o[h+c]=255&p,c+=l,p/=256,N-=8);o[h+c-l]|=128*d}}),456,[]); -__d((function(g,r,_i,a,m,e,d){"use strict";var n=r(d[0]);function f(n,f){for(var t=[],o=0,i=n.indexOf(f);i>=0;)t.push(n.slice(o,i)),o=i+1,i=n.indexOf(f,o);return o!==n.length&&t.push(n.slice(o)),t}function t(n,f,t){for(var o=n.indexOf(f);o>=0;)n[o]=t,o=n.indexOf(f,o+1);return n}function o(n){var f=n.toString(16).toUpperCase();return 1===f.length&&(f="0"+f),"%"+f}function i(n){for(var f=r(d[1]).Buffer.alloc(n.byteLength),t=0,o=0;o=0?(l=c.slice(0,v),s=c.slice(v+1)):(l=c,s=r(d[1]).Buffer.alloc(0)),l=t(r(d[1]).Buffer.from(l),43,32),s=t(r(d[1]).Buffer.from(s),43,32),u.push([i(l).toString(),i(s).toString()])}return u}function c(n){var f="";for(var t of n)f+=32===t?"+":42===t||45===t||46===t||t>=48&&t<=57||t>=65&&t<=90||95===t||t>=97&&t<=122?String.fromCodePoint(t):o(t);return f}m.exports={percentEncode:o,percentDecode:i,parseUrlencoded:function(n){return u(r(d[1]).Buffer.from(n))},serializeUrlencoded:function(f){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,o="utf-8";void 0!==t&&(o=t);var i="";for(var u of f.entries()){var l=n(u,2),s=l[0],v=l[1],h=c(r(d[1]).Buffer.from(v[0])),p=v[1];v.length>2&&void 0!==v[2]&&("hidden"===v[2]&&"_charset_"===h?p=o:"file"===v[2]&&(p=p.name)),0!==s&&(i+="&"),i+=`${h}=${p=c(r(d[1]).Buffer.from(p))}`}return i}}}),457,[26,455,454]); -__d((function(g,r,_i,a,m,e,d){"use strict";var t=r(d[0]),o=r(d[1]),n=r(d[2]),i=r(d[3]),l=Object.create(r(d[4]).IteratorPrototype,n({next:{value:function(){var t=this[r(d[4]).iterInternalSymbol],o=t.target,n=t.kind,l=t.index,s=Array.from(o[r(d[4]).implSymbol]);if(l>=s.length)return{value:void 0,done:!0};var c=s[l];t.index=l+1;var u,p=c.map(r(d[4]).tryWrapperForImpl),h=i(p,2),y=h[0],f=h[1];switch(n){case"key":u=y;break;case"value":u=f;break;case"key+value":u=[y,f]}return{value:u,done:!1}},writable:!0,enumerable:!0,configurable:!0}},Symbol.toStringTag,{value:"URLSearchParams Iterator",configurable:!0})),s={_mixedIntoPredicates:[],is:function(t){if(t){if(r(d[4]).hasOwn(t,r(d[4]).implSymbol)&&t[r(d[4]).implSymbol]instanceof r(d[5]).implementation)return!0;for(var o of m.exports._mixedIntoPredicates)if(o(t))return!0}return!1},isImpl:function(t){if(t){if(t instanceof r(d[5]).implementation)return!0;var o=r(d[4]).wrapperForImpl(t);for(var n of m.exports._mixedIntoPredicates)if(n(o))return!0}return!1},convert:function(t){var o=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).context,n=void 0===o?"The provided value":o;if(m.exports.is(t))return r(d[4]).implForWrapper(t);throw new TypeError(`${n} is not of type 'URLSearchParams'.`)},createDefaultIterator:function(t,o){var n=Object.create(l);return Object.defineProperty(n,r(d[4]).iterInternalSymbol,{value:{target:t,kind:o,index:0},configurable:!0}),n},create:function(t,o,n){if(void 0===t[r(d[4]).ctorRegistrySymbol])throw new Error("Internal error: invalid global object");var i=t[r(d[4]).ctorRegistrySymbol].URLSearchParams;if(void 0===i)throw new Error("Internal error: constructor URLSearchParams is not installed on the passed global object");var l=Object.create(i.prototype);return l=s.setup(l,t,o,n)},createImpl:function(t,o,n){var i=s.create(t,o,n);return r(d[4]).implForWrapper(i)},_internalSetup:function(t){},setup:function(t,o){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return i.wrapper=t,s._internalSetup(t),Object.defineProperty(t,r(d[4]).implSymbol,{value:new(r(d[5]).implementation)(o,n,i),configurable:!0}),t[r(d[4]).implSymbol][r(d[4]).wrapperSymbol]=t,r(d[5]).init&&r(d[5]).init(t[r(d[4]).implSymbol],i),t},install:function(l){var c=(function(){function n(){t(this,n);var o=[],i=arguments[0];if(void 0!==i)if(r(d[4]).isObject(i))if(void 0!==i[Symbol.iterator]){if(!r(d[4]).isObject(i))throw new TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence is not an iterable object.");var c=[],u=i;for(var p of u){if(!r(d[4]).isObject(p))throw new TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence's element is not an iterable object.");var h=[],y=p;for(var f of y)f=r(d[6]).USVString(f,{context:"Failed to construct 'URLSearchParams': parameter 1 sequence's element's element"}),h.push(f);p=h,c.push(p)}i=c}else{if(!r(d[4]).isObject(i))throw new TypeError("Failed to construct 'URLSearchParams': parameter 1 record is not an object.");var v=Object.create(null);for(var b of Reflect.ownKeys(i)){var S=Object.getOwnPropertyDescriptor(i,b);if(S&&S.enumerable){var w=b;w=r(d[6]).USVString(w,{context:"Failed to construct 'URLSearchParams': parameter 1 record's key"});var x=i[b];x=r(d[6]).USVString(x,{context:"Failed to construct 'URLSearchParams': parameter 1 record's value"}),v[w]=x}}i=v}else i=r(d[6]).USVString(i,{context:"Failed to construct 'URLSearchParams': parameter 1"});else i="";return o.push(i),s.setup(Object.create(this.constructor.prototype),l,o)}return o(n,[{key:"append",value:function(t,o){var n;if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");if(arguments.length<2)throw new TypeError("Failed to execute 'append' on 'URLSearchParams': 2 arguments required, but only "+arguments.length+" present.");var i=[],l=arguments[0];l=r(d[6]).USVString(l,{context:"Failed to execute 'append' on 'URLSearchParams': parameter 1"}),i.push(l);var s=arguments[1];return s=r(d[6]).USVString(s,{context:"Failed to execute 'append' on 'URLSearchParams': parameter 2"}),i.push(s),(n=this[r(d[4]).implSymbol]).append.apply(n,i)}},{key:"delete",value:function(t){var o;if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");if(arguments.length<1)throw new TypeError("Failed to execute 'delete' on 'URLSearchParams': 1 argument required, but only "+arguments.length+" present.");var n=[],i=arguments[0];return i=r(d[6]).USVString(i,{context:"Failed to execute 'delete' on 'URLSearchParams': parameter 1"}),n.push(i),(o=this[r(d[4]).implSymbol]).delete.apply(o,n)}},{key:"get",value:function(t){var o;if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");if(arguments.length<1)throw new TypeError("Failed to execute 'get' on 'URLSearchParams': 1 argument required, but only "+arguments.length+" present.");var n=[],i=arguments[0];return i=r(d[6]).USVString(i,{context:"Failed to execute 'get' on 'URLSearchParams': parameter 1"}),n.push(i),(o=this[r(d[4]).implSymbol]).get.apply(o,n)}},{key:"getAll",value:function(t){var o;if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");if(arguments.length<1)throw new TypeError("Failed to execute 'getAll' on 'URLSearchParams': 1 argument required, but only "+arguments.length+" present.");var n=[],i=arguments[0];return i=r(d[6]).USVString(i,{context:"Failed to execute 'getAll' on 'URLSearchParams': parameter 1"}),n.push(i),r(d[4]).tryWrapperForImpl((o=this[r(d[4]).implSymbol]).getAll.apply(o,n))}},{key:"has",value:function(t){var o;if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");if(arguments.length<1)throw new TypeError("Failed to execute 'has' on 'URLSearchParams': 1 argument required, but only "+arguments.length+" present.");var n=[],i=arguments[0];return i=r(d[6]).USVString(i,{context:"Failed to execute 'has' on 'URLSearchParams': parameter 1"}),n.push(i),(o=this[r(d[4]).implSymbol]).has.apply(o,n)}},{key:"set",value:function(t,o){var n;if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");if(arguments.length<2)throw new TypeError("Failed to execute 'set' on 'URLSearchParams': 2 arguments required, but only "+arguments.length+" present.");var i=[],l=arguments[0];l=r(d[6]).USVString(l,{context:"Failed to execute 'set' on 'URLSearchParams': parameter 1"}),i.push(l);var s=arguments[1];return s=r(d[6]).USVString(s,{context:"Failed to execute 'set' on 'URLSearchParams': parameter 2"}),i.push(s),(n=this[r(d[4]).implSymbol]).set.apply(n,i)}},{key:"sort",value:function(){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");return this[r(d[4]).implSymbol].sort()}},{key:"toString",value:function(){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");return this[r(d[4]).implSymbol].toString()}},{key:"keys",value:function(){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");return m.exports.createDefaultIterator(this,"key")}},{key:"values",value:function(){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");return m.exports.createDefaultIterator(this,"value")}},{key:"entries",value:function(){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");return m.exports.createDefaultIterator(this,"key+value")}},{key:"forEach",value:function(t){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");if(arguments.length<1)throw new TypeError("Failed to execute 'forEach' on 'iterable': 1 argument required, but only 0 present.");if("function"!=typeof t)throw new TypeError("Failed to execute 'forEach' on 'iterable': The callback provided as parameter 1 is not a function.");for(var o=arguments[1],n=Array.from(this[r(d[4]).implSymbol]),l=0;li[0]},t.map((function(t,i){return{item:t,index:i}})).sort((function(t,s){return i(t.item,s.item)||t.index-s.index})).map((function(t){return t.item}))),this._updateSteps()}},{key:s,value:function(){return this._list[Symbol.iterator]()}},{key:"toString",value:function(){return r(d[2]).serializeUrlencoded(this._list)}}]),n})(Symbol.iterator)}),459,[5,6,457]); -__d((function(g,r,_i,_a,m,_e,_d){"use strict";function n(n,t){return`${t&&t.context?t.context:"Value"} ${n}.`}function t(n){if(null===n)return"Null";switch(typeof n){case"undefined":return"Undefined";case"boolean":return"Boolean";case"number":return"Number";case"string":return"String";case"symbol":return"Symbol";default:return"Object"}}function e(n){return a(n>0&&n%1==.5&&!(1&n)||n<0&&n%1==-.5&&!(1&~n)?Math.floor(n):Math.round(n))}function o(n){return a(Math.trunc(n))}function i(n){return n<0?-1:1}function u(n,t){var e=n%t;return i(t)!==i(e)?e+t:e}function a(n){return 0===n?0:n}function f(t,i){var f,c,s=!i.unsigned;64===t?(c=Math.pow(2,53)-1,f=s?1-Math.pow(2,53):0):s?(f=-Math.pow(2,t-1),c=Math.pow(2,t-1)-1):(f=0,c=Math.pow(2,t)-1);var l=Math.pow(2,t),y=Math.pow(2,t-1);return function(t,i){void 0===i&&(i={});var w=+t;if(w=a(w),i.enforceRange){if(!Number.isFinite(w))throw new TypeError(n("is not a finite number",i));if((w=o(w))c)throw new TypeError(n(`is outside the accepted range of ${f} to ${c}, inclusive`,i));return w}return!Number.isNaN(w)&&i.clamp?w=e(w=Math.min(Math.max(w,f),c)):Number.isFinite(w)&&0!==w?(w=o(w))>=f&&w<=c?w:(w=u(w,l),s&&w>=y?w-l:w):0}}function c(t,e){if("function"!=typeof t)throw new TypeError(n("is not a function",e));return t}_e.any=function(n){return n},_e.void=function(){},_e.boolean=function(n){return!!n},_e.byte=f(8,{unsigned:!1}),_e.octet=f(8,{unsigned:!0}),_e.short=f(16,{unsigned:!1}),_e["unsigned short"]=f(16,{unsigned:!0}),_e.long=f(32,{unsigned:!1}),_e["unsigned long"]=f(32,{unsigned:!0}),_e["long long"]=f(64,{unsigned:!1}),_e["unsigned long long"]=f(64,{unsigned:!0}),_e.double=function(t,e){var o=+t;if(!Number.isFinite(o))throw new TypeError(n("is not a finite floating-point value",e));return o},_e["unrestricted double"]=function(n){return+n},_e.float=function(t,e){var o=+t;if(!Number.isFinite(o))throw new TypeError(n("is not a finite floating-point value",e));if(Object.is(o,-0))return o;var i=Math.fround(o);if(!Number.isFinite(i))throw new TypeError(n("is outside the range of a single-precision floating-point value",e));return i},_e["unrestricted float"]=function(n){var t=+n;return isNaN(t)||Object.is(t,-0)?t:Math.fround(t)},_e.DOMString=function(t,e){if(void 0===e&&(e={}),e.treatNullAsEmptyString&&null===t)return"";if("symbol"==typeof t)throw new TypeError(n("is a symbol, which cannot be converted to a string",e));return String(t)},_e.ByteString=function(t,e){for(var o,i=_e.DOMString(t,e),u=0;void 0!==(o=i.codePointAt(u));++u)if(o>255)throw new TypeError(n("is not a valid ByteString",e));return i},_e.USVString=function(n,t){for(var e=_e.DOMString(n,t),o=e.length,i=[],u=0;u57343)i.push(String.fromCodePoint(a));else if(56320<=a&&a<=57343)i.push(String.fromCodePoint(65533));else if(u===o-1)i.push(String.fromCodePoint(65533));else{var f=e.charCodeAt(u+1);if(56320<=f&&f<=57343){var c=1023&a,s=1023&f;i.push(String.fromCodePoint(65536+1024*c+s)),++u}else i.push(String.fromCodePoint(65533))}}return i.join("")},_e.object=function(e,o){if("Object"!==t(e))throw new TypeError(n("is not an object",o));return e};var s=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get;function l(n){try{return s.call(n),!0}catch(n){return!1}}_e.ArrayBuffer=function(t,e){if(!l(t))throw new TypeError(n("is not a view on an ArrayBuffer object",e));return t};var y=Object.getOwnPropertyDescriptor(DataView.prototype,"byteLength").get;_e.DataView=function(t,e){try{return y.call(t),t}catch(t){throw new TypeError(n("is not a view on an DataView object",e))}},[Int8Array,Int16Array,Int32Array,Uint8Array,Uint16Array,Uint32Array,Uint8ClampedArray,Float32Array,Float64Array].forEach((function(t){var e=t.name,o=/^[AEIOU]/.test(e)?"an":"a";_e[e]=function(t,i){if(!ArrayBuffer.isView(t)||t.constructor.name!==e)throw new TypeError(n(`is not ${o} ${e} object`,i));return t}})),_e.ArrayBufferView=function(t,e){if(!ArrayBuffer.isView(t))throw new TypeError(n("is not a view on an ArrayBuffer object",e));return t},_e.BufferSource=function(t,e){if(!ArrayBuffer.isView(t)&&!l(t))throw new TypeError(n("is not an ArrayBuffer object or a view on one",e));return t},_e.DOMTimeStamp=_e["unsigned long long"],_e.Function=c,_e.VoidFunction=c}),460,[]); -__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"URLSearchParams",{enumerable:!0,get:function(){return r(d[0]).URLSearchParams}})}),461,[447]); -__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Colors",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"DebugInstructions",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"Header",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"HermesBadge",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"LearnMoreLinks",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"ReloadInstructions",{enumerable:!0,get:function(){return l.default}});var n=t(r(d[1])),u=t(r(d[2])),o=t(r(d[3])),f=t(r(d[4])),c=t(r(d[5])),l=t(r(d[6]))}),462,[1,463,464,465,466,469,472]); -__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={primary:'#1292B4',white:'#FFF',lighter:'#F3F3F3',light:'#DAE1E7',dark:'#444',darker:'#222',black:'#000'}}),463,[]); -__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=t(r(d[1])),h=t(r(d[2])),u=t(r(d[3])),n=(t(r(d[4])),r(d[5])),s=l.default.create({highlight:{fontWeight:'700'}}),o=u.default.select({ios:function(){return(0,n.jsxs)(h.default,{children:["Press ",(0,n.jsx)(h.default,{style:s.highlight,children:"Cmd + D"})," in the simulator or",' ',(0,n.jsx)(h.default,{style:s.highlight,children:"Shake"})," your device to open the Dev Menu."]})},default:function(){return(0,n.jsxs)(h.default,{children:["Press ",(0,n.jsx)(h.default,{style:s.highlight,children:"Cmd or Ctrl + M"})," or",' ',(0,n.jsx)(h.default,{style:s.highlight,children:"Shake"})," your device to open the Dev Menu."]})}});e.default=o}),464,[1,196,246,21,153,194]); -__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(r(d[1])),l=t(r(d[2])),n=t(r(d[3])),c=t(r(d[4])),u=t(r(d[5])),f=t(r(d[6])),s=(t(r(d[7])),r(d[8])),v=l.default.create({background:{paddingBottom:40,paddingTop:96,paddingHorizontal:32},logo:{opacity:.2,overflow:'visible',resizeMode:'cover',marginLeft:-128,marginBottom:-192},text:{fontSize:40,fontWeight:'700',textAlign:'center'}});e.default=function(){var t='dark'===(0,c.default)();return(0,s.jsxs)(o.default,{accessibilityRole:"image",testID:"new-app-screen-header",source:r(d[9]),style:[v.background,{backgroundColor:t?u.default.darker:u.default.lighter}],imageStyle:v.logo,children:[(0,s.jsx)(f.default,{}),(0,s.jsxs)(n.default,{style:[v.text,{color:t?u.default.white:u.default.black}],children:["Welcome to",'\n',"React Native"]})]})}}),465,[1,376,196,246,431,463,466,153,194,467]); -__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=t(r(d[1])),n=t(r(d[2])),u=t(r(d[3])),o=t(r(d[4])),s=t(r(d[5])),f=(t(r(d[6])),r(d[7])),c=n.default.create({badge:{position:'absolute',top:8,right:12},badgeText:{fontSize:14,fontWeight:'600',textAlign:'right'}});e.default=function(){var t,n,b='dark'===(0,o.default)(),h=null!=(t=null==(n=g.HermesInternal)||null==n.getRuntimeProperties?void 0:n.getRuntimeProperties()['OSS Release Version'])?t:'';return g.HermesInternal?(0,f.jsx)(l.default,{style:c.badge,children:(0,f.jsx)(u.default,{style:[c.badgeText,{color:b?s.default.light:s.default.dark}],children:`Engine: Hermes ${h}`})}):null}}),466,[1,156,196,246,431,463,153,194]); -__d((function(g,r,i,a,m,e,d){m.exports=r(d[0]).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/node_modules/react-native/Libraries/NewAppScreen/components",width:512,height:512,scales:[1],hash:"3cf817075ffdc798cf13c457bf4c3bc5",name:"logo",type:"png"})}),467,[468]); -__d((function(g,r,i,a,m,e,d){'use strict';m.exports=r(d[0])}),468,[179]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),i=e(_r(d[2])),n=e(_r(d[3])),o=e(_r(d[4])),a=e(_r(d[5])),r=e(_r(d[6])),l=e(_r(d[7])),s=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var i=u(t);if(i&&i.has(e))return i.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var r=o?Object.getOwnPropertyDescriptor(e,a):null;r&&(r.get||r.set)?Object.defineProperty(n,a,r):n[a]=e[a]}return n.default=e,i&&i.set(e,n),n})(_r(d[8])),c=_r(d[9]);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,i=new WeakMap;return(u=function(e){return e?i:t})(e)}var p=[{id:1,title:'The Basics',link:'https://reactnative.dev/docs/tutorial',description:'Explains a Hello World for React Native.'},{id:2,title:'Style',link:'https://reactnative.dev/docs/style',description:'Covers how to use the prop named style which controls the visuals.'},{id:3,title:'Layout',link:'https://reactnative.dev/docs/flexbox',description:'React Native uses flexbox for layout, learn how it works.'},{id:4,title:'Components',link:'https://reactnative.dev/docs/components-and-apis',description:'The full list of components and APIs inside React Native.'},{id:5,title:'Navigation',link:'https://reactnative.dev/docs/navigation',description:'How to handle moving between screens inside your application.'},{id:6,title:'Networking',link:'https://reactnative.dev/docs/network',description:'How to use the Fetch API in React Native.'},{id:7,title:'Debugging',link:'https://facebook.github.io/react-native/docs/debugging',description:'Learn about the tools available to debug and inspect your app.'},{id:8,title:'Help',link:'https://facebook.github.io/react-native/help',description:'Need more help? There are many other React Native developers who may have the answer.'},{id:9,title:'Follow us on Twitter',link:'https://twitter.com/reactnative',description:'Stay in touch with the community, join in on Q&As and more by following React Native on Twitter.'}],f=o.default.create({container:{marginTop:32,paddingHorizontal:24},linkContainer:{flexWrap:'wrap',flexDirection:'row',justifyContent:'space-between',alignItems:'center',paddingVertical:8},link:{flex:2,fontSize:18,fontWeight:'400',color:l.default.primary},description:{flex:3,paddingVertical:16,fontWeight:'400',fontSize:18},separator:{height:o.default.hairlineWidth}});_e.default=function(){var e='dark'===(0,r.default)();return(0,c.jsx)(i.default,{style:f.container,children:p.map((function(o){var r=o.id,u=o.title,p=o.link,h=o.description;return(0,c.jsxs)(s.Fragment,{children:[(0,c.jsx)(i.default,{style:[f.separator,{backgroundColor:e?l.default.dark:l.default.light}]}),(0,c.jsxs)(t.default,{accessibilityRole:"button",onPress:function(){return(0,n.default)(p)},style:f.linkContainer,children:[(0,c.jsx)(a.default,{style:f.link,children:u}),(0,c.jsx)(a.default,{style:[f.description,{color:e?l.default.lighter:l.default.dark}],children:h})]})]},r)}))})}}),469,[1,278,156,470,196,246,431,463,153,194]); -__d((function(g,r,i,a,m,e,d){'use strict';m.exports=function(t){fetch(r(d[0])().url+'open-url',{method:'POST',body:JSON.stringify({url:t})})}}),470,[471]); -__d((function(g,r,i,a,m,e,d){var l,t,n=r(d[0])(r(d[1]));m.exports=function(){var u;if(void 0===l){var o=n.default.getConstants().scriptURL,s=o.match(/^https?:\/\/.*?\//);l=s?s[0]:null,t=s?o:null}return{url:null!=(u=l)?u:"http://localhost:8081/",fullBundleUrl:t,bundleLoadedFromServer:null!==l}}}),471,[1,178]); -__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=t(r(d[1])),o=t(r(d[2])),u=t(r(d[3])),n=(t(r(d[4])),r(d[5])),s=l.default.create({highlight:{fontWeight:'700'}}),h=u.default.select({ios:function(){return(0,n.jsxs)(o.default,{children:["Press ",(0,n.jsx)(o.default,{style:s.highlight,children:"Cmd + R"})," in the simulator to reload your app's code."]})},default:function(){return(0,n.jsxs)(o.default,{children:["Double tap ",(0,n.jsx)(o.default,{style:s.highlight,children:"R"})," on your keyboard to reload your app's code."]})}});e.default=h}),472,[1,196,246,21,153,194]); -__d((function(g,r,i,a,m,_e,d){var e=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.getFormTemplate=void 0;var o=e(r(d[1])),t=['wss://relay.primal.net/','wss://relay.hllo.live/'];_e.getFormTemplate=(function(){var e=(0,o.default)((function*(e){console.log('inside getFormTemplate');var o=new(r(d[2]).SimplePool),n={kinds:[0],authors:[e]},l=null;try{console.log('inside try'),l=yield o.get(t,n),console.log('Main thread is working, got event',l)}catch(e){console.log('inside catch'),console.log('error is',e)}if(o.close(t),!l)throw Error('Form template not found');return JSON.parse(l.content)}));return function(o){return e.apply(this,arguments)}})()}),473,[1,339,474]); -__d((function(g,_r,_i,_a,m,_e2,_d){"use strict";var n=_r(_d[0]),e=_r(_d[1]),t=_r(_d[2]),r=_r(_d[3]),i=_r(_d[4]),o=_r(_d[5]),u=_r(_d[6]),a=_r(_d[7]);function c(n,r,i){return r=t(r),e(n,s()?Reflect.construct(r,i||[],t(n).constructor):r.apply(n,i))}function s(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(n){}return(s=function(){return!!n})()}var f,l=Object.defineProperty,d=Object.getOwnPropertyDescriptor,h=Object.getOwnPropertyNames,v=Object.prototype.hasOwnProperty,p=function(n,e){for(var t in e)l(n,t,{get:e[t],enumerable:!0})},y=function(n,e,t,r){if(e&&"object"==typeof e||"function"==typeof e){var i=function(i){v.call(n,i)||i===t||l(n,i,{get:function(){return e[i]},enumerable:!(r=d(e,i))||r.enumerable})};for(var o of h(e))i(o)}return n},b={};p(b,{AbstractRelay:function(){return Me},AbstractSimplePool:function(){return Ne},Relay:function(){return Le},SimplePool:function(){return Ie},Subscription:function(){return Ae},finalizeEvent:function(){return H},fj:function(){return ye},generateSecretKey:function(){return I},getEventHash:function(){return L},getFilterLimit:function(){return pe},getPublicKey:function(){return j},kinds:function(){return q},matchFilter:function(){return de},matchFilters:function(){return he},mergeFilters:function(){return ve},nip04:function(){return Ye},nip05:function(){return ot},nip10:function(){return pt},nip11:function(){return gt},nip13:function(){return Et},nip18:function(){return _t},nip19:function(){return je},nip21:function(){return Ot},nip25:function(){return Ct},nip27:function(){return It},nip28:function(){return qt},nip30:function(){return zt},nip39:function(){return Qt},nip42:function(){return xe},nip44:function(){return er},nip47:function(){return ur},nip57:function(){return lr},nip98:function(){return mr},parseReferences:function(){return Xe},relayConnect:function(){return Ce},serializeEvent:function(){return C},useWebSocketImplementation:function(){return Pe},utils:function(){return x},validateEvent:function(){return k},verifiedSymbol:function(){return w},verifyEvent:function(){return U}}),m.exports=(f=b,y(l({},"__esModule",{value:!0}),f));var w=Symbol("verified"),E=function(n){return n instanceof Object};function k(n){if(!E(n))return!1;if("number"!=typeof n.kind)return!1;if("string"!=typeof n.content)return!1;if("number"!=typeof n.created_at)return!1;if("string"!=typeof n.pubkey)return!1;if(!n.pubkey.match(/^[a-f0-9]{64}$/))return!1;if(!Array.isArray(n.tags))return!1;for(var e=0;en.until)}function he(n,e){for(var t=0;tn.limit)&&(n.limit=t.limit),t.until&&(!n.until||t.until>n.until)&&(n.until=t.until),t.since&&(!n.since||t.since0&&void 0!==arguments[0]?arguments[0]:"closed by caller";this.closed||(this.relay.send('["CLOSE",'+JSON.stringify(this.id)+"]"),this.closed=!0),this.relay.openSubs.delete(this.id),null==(n=this.onclose)||n.call(this,e)}}]),n})();function Ce(n){return Le.connect(n)}var Le=(function(n){function e(n){return u(this,e),c(this,e,[n,{verifyEvent:U}])}var t;return r(e,n),o(e,null,[{key:"connect",value:(t=i((function*(n){var t=new e(n);return yield t.connect(),t})),function(n){return t.apply(this,arguments)})}]),e})(Me),Ne=(function(){function n(e){u(this,n),this.relays=new Map,this.seenOn=new Map,this.trackRelays=!1,this.trustedRelayURLs=new Set,this.verifyEvent=e.verifyEvent}var e,t,r;return o(n,[{key:"ensureRelay",value:(r=i((function*(n,e){n=T(n);var t=this.relays.get(n);return t||(t=new Me(n,{verifyEvent:this.trustedRelayURLs.has(n)?Oe:this.verifyEvent}),null!=e&&e.connectionTimeout&&(t.connectionTimeout=e.connectionTimeout),this.relays.set(n,t)),yield t.connect(),t})),function(n,e){return r.apply(this,arguments)})},{key:"close",value:function(n){var e=this;n.map(T).forEach((function(n){var t;null==(t=e.relays.get(n))||t.close()}))}},{key:"subscribeMany",value:function(n,e,t){var r=this;this.trackRelays&&(t.receivedEvent=function(n,e){var t=r.seenOn.get(e);t||(t=new Set,r.seenOn.set(e,t)),t.add(n)});var o,u=new Set,a=[],c=[],s=function(e){c[e]=!0,c.filter((function(n){return n})).length===n.length&&(null==t.oneose||t.oneose(),s=function(){})},f=[],l=function(e,r){s(e),f[e]=r,f.filter((function(n){return n})).length===n.length&&(null==t.onclose||t.onclose(f),l=function(){})},d=function(n){if(null!=t.alreadyHaveEvent&&t.alreadyHaveEvent(n))return!0;var e=u.has(n);return u.add(n),e},h=Promise.all(n.map(T).map((function(){var n=i((function*(n,i,o){if(o.indexOf(n)===i){var u;try{u=yield r.ensureRelay(n,{connectionTimeout:t.maxWait?Math.max(.8*t.maxWait,t.maxWait-1e3):void 0})}catch(n){return void l(i,(null==n?void 0:n.message)||String(n))}var c=u.subscribe(e,Object.assign({},t,{oneose:function(){return s(i)},onclose:function(n){return l(i,n)},alreadyHaveEvent:d,eoseTimeout:t.maxWait}));a.push(c)}else l(i,"duplicate url")}));return function(e,t,r){return n.apply(this,arguments)}})()));return{close:(o=i((function*(){yield h,a.forEach((function(n){n.close()}))})),function(){return o.apply(this,arguments)})}}},{key:"subscribeManyEose",value:function(n,e,t){var r=this.subscribeMany(n,e,Object.assign({},t,{oneose:function(){r.close()}}));return r}},{key:"querySync",value:(t=i((function*(n,e,t){var r=this;return new Promise((function(){var o=i((function*(i){var o=[];r.subscribeManyEose(n,[e],Object.assign({},t,{onevent:function(n){o.push(n)},onclose:function(n){i(o)}}))}));return function(n){return o.apply(this,arguments)}})())})),function(n,e,r){return t.apply(this,arguments)})},{key:"get",value:(e=i((function*(n,e,t){e.limit=1;var r=yield this.querySync(n,e,t);return r.sort((function(n,e){return e.created_at-n.created_at})),r[0]||null})),function(n,t,r){return e.apply(this,arguments)})},{key:"publish",value:function(n,e){var t=this;return n.map(T).map((function(){var n=i((function*(n,r,i){return i.indexOf(n)!==r?Promise.reject("duplicate url"):(yield t.ensureRelay(n)).publish(e)}));return function(e,t,r){return n.apply(this,arguments)}})())}}]),n})(),Ie=(function(n){function e(){return u(this,e),c(this,e,[{verifyEvent:U}])}return r(e,n),o(e)})(Ne),je={};p(je,{BECH32_REGEX:function(){return Ue},Bech32MaxSize:function(){return He},decode:function(){return qe},encodeBytes:function(){return ze},naddrEncode:function(){return Fe},neventEncode:function(){return We},noteEncode:function(){return Je},nprofileEncode:function(){return Ke},npubEncode:function(){return De},nrelayEncode:function(){return Ze},nsecEncode:function(){return Be}});var He=5e3,Ue=/[\x21-\x7E]{1,83}1[023456789acdefghjklmnpqrstuvwxyz]{6,}/;function qe(n){var e=_r(_d[11]).bech32.decode(n,He),t=e.prefix,r=e.words,i=new Uint8Array(_r(_d[11]).bech32.fromWords(r));switch(t){case"nprofile":var o,u=$e(i);if(null==(o=u[0])||!o[0])throw new Error("missing TLV 0 for nprofile");if(32!==u[0][0].length)throw new Error("TLV 0 should be 32 bytes");return{type:"nprofile",data:{pubkey:(0,_r(_d[9]).bytesToHex)(u[0][0]),relays:u[1]?u[1].map((function(n){return _.decode(n)})):[]}};case"nevent":var a,c,s,f=$e(i);if(null==(a=f[0])||!a[0])throw new Error("missing TLV 0 for nevent");if(32!==f[0][0].length)throw new Error("TLV 0 should be 32 bytes");if(f[2]&&32!==f[2][0].length)throw new Error("TLV 2 should be 32 bytes");if(f[3]&&4!==f[3][0].length)throw new Error("TLV 3 should be 4 bytes");return{type:"nevent",data:{id:(0,_r(_d[9]).bytesToHex)(f[0][0]),relays:f[1]?f[1].map((function(n){return _.decode(n)})):[],author:null!=(c=f[2])&&c[0]?(0,_r(_d[9]).bytesToHex)(f[2][0]):void 0,kind:null!=(s=f[3])&&s[0]?parseInt((0,_r(_d[9]).bytesToHex)(f[3][0]),16):void 0}};case"naddr":var l,d,h,v=$e(i);if(null==(l=v[0])||!l[0])throw new Error("missing TLV 0 for naddr");if(null==(d=v[2])||!d[0])throw new Error("missing TLV 2 for naddr");if(32!==v[2][0].length)throw new Error("TLV 2 should be 32 bytes");if(null==(h=v[3])||!h[0])throw new Error("missing TLV 3 for naddr");if(4!==v[3][0].length)throw new Error("TLV 3 should be 4 bytes");return{type:"naddr",data:{identifier:_.decode(v[0][0]),pubkey:(0,_r(_d[9]).bytesToHex)(v[2][0]),kind:parseInt((0,_r(_d[9]).bytesToHex)(v[3][0]),16),relays:v[1]?v[1].map((function(n){return _.decode(n)})):[]}};case"nrelay":var p,y=$e(i);if(null==(p=y[0])||!p[0])throw new Error("missing TLV 0 for nrelay");return{type:"nrelay",data:_.decode(y[0][0])};case"nsec":return{type:t,data:i};case"npub":case"note":return{type:t,data:(0,_r(_d[9]).bytesToHex)(i)};default:throw new Error(`unknown prefix ${t}`)}}function $e(n){for(var e={},t=n;t.length>0;){var r=t[0],i=t[1],o=t.slice(2,2+i);if(t=t.slice(2+i),o.length>24&255,r[1]=t>>16&255,r[2]=t>>8&255,r[3]=255&t,e=r),Ve("nevent",Ge({0:[(0,_r(_d[9]).hexToBytes)(n.id)],1:(n.relays||[]).map((function(n){return S.encode(n)})),2:n.author?[(0,_r(_d[9]).hexToBytes)(n.author)]:[],3:e?[new Uint8Array(e)]:[]}))}function Fe(n){var e=new ArrayBuffer(4);return new DataView(e).setUint32(0,n.kind,!1),Ve("naddr",Ge({0:[S.encode(n.identifier)],1:(n.relays||[]).map((function(n){return S.encode(n)})),2:[(0,_r(_d[9]).hexToBytes)(n.pubkey)],3:[new Uint8Array(e)]}))}function Ze(n){return Ve("nrelay",Ge({0:[S.encode(n)]}))}function Ge(n){var e=[];return Object.entries(n).reverse().forEach((function(n){var t=a(n,2),r=t[0];t[1].forEach((function(n){var t=new Uint8Array(n.length+2);t.set([parseInt(r)],0),t.set([n.length],1),t.set(n,2),e.push(t)}))})),_r(_d[9]).concatBytes.apply(void 0,e)}var Qe=/\bnostr:((note|npub|naddr|nevent|nprofile)1\w+)\b|#\[(\d+)\]/g;function Xe(n){var e=[];for(var t of n.content.matchAll(Qe))if(t[2])try{var r=qe(t[1]),i=r.type,o=r.data;switch(i){case"npub":e.push({text:t[0],profile:{pubkey:o,relays:[]}});break;case"nprofile":e.push({text:t[0],profile:o});break;case"note":e.push({text:t[0],event:{id:o,relays:[]}});break;case"nevent":e.push({text:t[0],event:o});break;case"naddr":e.push({text:t[0],address:o})}}catch(n){}else if(t[3]){var u=parseInt(t[3],10),c=n.tags[u];if(!c)continue;switch(c[0]){case"p":e.push({text:t[0],profile:{pubkey:c[1],relays:c[2]?[c[2]]:[]}});break;case"e":e.push({text:t[0],event:{id:c[1],relays:c[2]?[c[2]]:[]}});break;case"a":try{var s=c[1].split(":"),f=a(s,3),l=f[0],d=f[1],h=f[2];e.push({text:t[0],address:{identifier:h,pubkey:d,kind:parseInt(l,10),relays:c[2]?[c[2]]:[]}})}catch(n){}}}return e}var Ye={};function nt(n,e,t){return et.apply(this,arguments)}function et(){return(et=i((function*(n,e,t){var r=n instanceof Uint8Array?(0,_r(_d[9]).bytesToHex)(n):n,i=it(_r(_d[8]).secp256k1.getSharedSecret(r,"02"+e)),o=Uint8Array.from((0,_r(_d[9]).randomBytes)(16)),u=S.encode(t),a=(0,_r(_d[12]).cbc)(i,o).encrypt(u);return`${_r(_d[11]).base64.encode(new Uint8Array(a))}?iv=${_r(_d[11]).base64.encode(new Uint8Array(o.buffer))}`}))).apply(this,arguments)}function tt(n,e,t){return rt.apply(this,arguments)}function rt(){return(rt=i((function*(n,e,t){var r=n instanceof Uint8Array?(0,_r(_d[9]).bytesToHex)(n):n,i=t.split("?iv="),o=a(i,2),u=o[0],c=o[1],s=it(_r(_d[8]).secp256k1.getSharedSecret(r,"02"+e)),f=_r(_d[11]).base64.decode(c),l=_r(_d[11]).base64.decode(u),d=(0,_r(_d[12]).cbc)(s,f).decrypt(l);return _.decode(d)}))).apply(this,arguments)}function it(n){return n.slice(1,33)}p(Ye,{decrypt:function(){return tt},encrypt:function(){return nt}});var ot={};p(ot,{NIP05_REGEX:function(){return at},isValid:function(){return ht},queryProfile:function(){return lt},searchDomain:function(){return st},useFetchImplementation:function(){return ct}});var ut,at=/^(?:([\w.+-]+)@)?([\w_-]+(\.[\w_-]+)+)$/;try{ut=fetch}catch(n){}function ct(n){ut=n}function st(n){return ft.apply(this,arguments)}function ft(){return ft=i((function*(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";try{var t=`https://${n}/.well-known/nostr.json?name=${e}`,r=yield ut(t,{redirect:"error"});return(yield r.json()).names}catch(n){return{}}})),ft.apply(this,arguments)}function lt(n){return dt.apply(this,arguments)}function dt(){return(dt=i((function*(n){var e=n.match(at);if(!e)return null;var t=a(e,3),r=(t[0],t[1]),i=void 0===r?"_":r,o=t[2];try{var u,c=`https://${o}/.well-known/nostr.json?name=${i}`,s=yield(yield ut(c,{redirect:"error"})).json(),f=s.names[i];return f?{pubkey:f,relays:null==(u=s.relays)?void 0:u[f]}:null}catch(n){return null}}))).apply(this,arguments)}function ht(n,e){return vt.apply(this,arguments)}function vt(){return(vt=i((function*(n,e){var t=yield lt(e);return!!t&&t.pubkey===n}))).apply(this,arguments)}var pt={};function yt(n){var e={reply:void 0,root:void 0,mentions:[],profiles:[]},t=[];for(var r of n.tags)"e"===r[0]&&r[1]&&t.push(r),"p"===r[0]&&r[1]&&e.profiles.push({pubkey:r[1],relays:r[2]?[r[2]]:[]});for(var i=0;i=e)break}return r}p(Et,{getPow:function(){return kt},minePow:function(){return xt}});var _t={};function St(e,t,r,i){var o;return H({kind:X,tags:[].concat(n(null!=(o=e.tags)?o:[]),[["e",t.id,r],["p",t.pubkey]]),content:""===e.content?"":JSON.stringify(t),created_at:e.created_at},i)}function Tt(n){var e,t;if(n.kind===X){for(var r,i,o=n.tags.length-1;o>=0&&(void 0===r||void 0===i);o--){var u=n.tags[o];u.length>=2&&("e"===u[0]&&void 0===r?r=u:"p"===u[0]&&void 0===i&&(i=u))}if(void 0!==r)return{id:r[1],relays:[r[2],null==(e=i)?void 0:e[2]].filter((function(n){return"string"==typeof n})),author:null==(t=i)?void 0:t[1]}}}function Rt(n){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).skipVerification,t=Tt(n);if(void 0!==t&&""!==n.content){var r;try{r=JSON.parse(n.content)}catch(n){return}if(r.id===t.id&&(e||U(r)))return r}}p(_t,{finishRepostEvent:function(){return St},getRepostedEvent:function(){return Rt},getRepostedEventPointer:function(){return Tt}});var Ot={};p(Ot,{NOSTR_URI_REGEX:function(){return Pt},parse:function(){return At},test:function(){return Mt}});var Pt=new RegExp(`nostr:(${Ue.source})`);function Mt(n){return"string"==typeof n&&new RegExp(`^${Pt.source}$`).test(n)}function At(n){var e=n.match(new RegExp(`^${Pt.source}$`));if(!e)throw new Error(`Invalid Nostr URI: ${n}`);return{uri:e[0],value:e[1],decoded:qe(e[1])}}var Ct={};function Lt(e,t,r){var i,o,u=t.tags.filter((function(n){return n.length>=2&&("e"===n[0]||"p"===n[0])}));return H(Object.assign({},e,{kind:Y,tags:[].concat(n(null!=(i=e.tags)?i:[]),n(u),[["e",t.id],["p",t.pubkey]]),content:null!=(o=e.content)?o:"+"}),r)}function Nt(n){if(n.kind===Y){for(var e,t,r=n.tags.length-1;r>=0&&(void 0===e||void 0===t);r--){var i=n.tags[r];i.length>=2&&("e"===i[0]&&void 0===e?e=i:"p"===i[0]&&void 0===t&&(t=i))}if(void 0!==e&&void 0!==t)return{id:e[1],relays:[e[2],t[2]].filter((function(n){return void 0!==n})),author:t[1]}}}p(Ct,{finishReactionEvent:function(){return Lt},getReactedEventPointer:function(){return Nt}});var It={};p(It,{matchAll:function(){return Ht},regex:function(){return jt},replaceAll:function(){return Ut}});var jt=function(){return new RegExp(`\\b${Pt.source}\\b`,"g")};function*Ht(n){var e=n.matchAll(jt());for(var t of e)try{var r=a(t,2),i=r[0],o=r[1];yield{uri:i,value:o,decoded:qe(o),start:t.index,end:t.index+i.length}}catch(n){}}function Ut(n,e){return n.replaceAll(jt(),(function(n,t){return e({uri:n,value:t,decoded:qe(t)})}))}var qt={};p(qt,{channelCreateEvent:function(){return $t},channelHideMessageEvent:function(){return Jt},channelMessageEvent:function(){return Dt},channelMetadataEvent:function(){return Bt},channelMuteUserEvent:function(){return Vt}});var $t=function(e,t){var r,i;if("object"==typeof e.content)i=JSON.stringify(e.content);else{if("string"!=typeof e.content)return;i=e.content}return H({kind:tn,tags:n(null!=(r=e.tags)?r:[]),content:i,created_at:e.created_at},t)},Bt=function(e,t){var r,i;if("object"==typeof e.content)i=JSON.stringify(e.content);else{if("string"!=typeof e.content)return;i=e.content}return H({kind:rn,tags:[["e",e.channel_create_event_id]].concat(n(null!=(r=e.tags)?r:[])),content:i,created_at:e.created_at},t)},Dt=function(e,t){var r,i=[["e",e.channel_create_event_id,e.relay_url,"root"]];return e.reply_to_channel_message_event_id&&i.push(["e",e.reply_to_channel_message_event_id,e.relay_url,"reply"]),H({kind:on,tags:[].concat(i,n(null!=(r=e.tags)?r:[])),content:e.content,created_at:e.created_at},t)},Jt=function(e,t){var r,i;if("object"==typeof e.content)i=JSON.stringify(e.content);else{if("string"!=typeof e.content)return;i=e.content}return H({kind:un,tags:[["e",e.channel_message_event_id]].concat(n(null!=(r=e.tags)?r:[])),content:i,created_at:e.created_at},t)},Vt=function(e,t){var r,i;if("object"==typeof e.content)i=JSON.stringify(e.content);else{if("string"!=typeof e.content)return;i=e.content}return H({kind:an,tags:[["p",e.pubkey_to_mute]].concat(n(null!=(r=e.tags)?r:[])),content:i,created_at:e.created_at},t)},zt={};p(zt,{EMOJI_SHORTCODE_REGEX:function(){return Kt},matchAll:function(){return Ft},regex:function(){return Wt},replaceAll:function(){return Zt}});var Kt=/:(\w+):/,Wt=function(){return new RegExp(`\\B${Kt.source}\\B`,"g")};function*Ft(n){var e=n.matchAll(Wt());for(var t of e)try{var r=a(t,2),i=r[0],o=r[1];yield{shortcode:i,name:o,start:t.index,end:t.index+i.length}}catch(n){}}function Zt(n,e){return n.replaceAll(Wt(),(function(n,t){return e({shortcode:n,name:t})}))}var Gt,Qt={};p(Qt,{useFetchImplementation:function(){return Xt},validateGithub:function(){return Yt}});try{Gt=fetch}catch(n){}function Xt(n){Gt=n}function Yt(n,e,t){return nr.apply(this,arguments)}function nr(){return(nr=i((function*(n,e,t){try{return(yield(yield Gt(`https://gist.github.com/${e}/${t}/raw`)).text())===`Verifying that I control the following Nostr public key: ${n}`}catch(n){return!1}}))).apply(this,arguments)}var er={};p(er,{default:function(){return or},v2:function(){return ir}});var tr=new TextDecoder,rr={minPlaintextSize:1,maxPlaintextSize:65535,utf8Encode:_r(_d[9]).utf8ToBytes,utf8Decode:function(n){return tr.decode(n)},getConversationKey:function(n,e){var t=_r(_d[8]).secp256k1.getSharedSecret(n,"02"+e).subarray(1,33);return(0,_r(_d[13]).extract)(_r(_d[10]).sha256,t,"nip44-v2")},getMessageKeys:function(n,e){var t=(0,_r(_d[13]).expand)(_r(_d[10]).sha256,n,e,76);return{chacha_key:t.subarray(0,32),chacha_nonce:t.subarray(32,44),hmac_key:t.subarray(44,76)}},calcPaddedLen:function(n){if(!Number.isSafeInteger(n)||n<1)throw new Error("expected positive integer");if(n<=32)return 32;var e=1<rr.maxPlaintextSize)throw new Error("invalid plaintext size: must be between 1 and 65535 bytes");var e=new Uint8Array(2);return new DataView(e.buffer).setUint16(0,n,!1),e},pad:function(n){var e=rr.utf8Encode(n),t=e.length,r=rr.writeU16BE(t),i=new Uint8Array(rr.calcPaddedLen(t)-t);return(0,_r(_d[9]).concatBytes)(r,e,i)},unpad:function(n){var e=new DataView(n.buffer).getUint16(0),t=n.subarray(2,2+e);if(err.maxPlaintextSize||t.length!==e||n.length!==2+rr.calcPaddedLen(e))throw new Error("invalid padding");return rr.utf8Decode(t)},hmacAad:function(n,e,t){if(32!==t.length)throw new Error("AAD associated data must be 32 bytes");var r=(0,_r(_d[9]).concatBytes)(t,e);return(0,_r(_d[14]).hmac)(_r(_d[10]).sha256,n,r)},decodePayload:function(n){if("string"!=typeof n)throw new Error("payload must be a valid string");var e,t=n.length;if(t<132||t>87472)throw new Error("invalid payload length: "+t);if("#"===n[0])throw new Error("unknown encryption version");try{e=_r(_d[11]).base64.decode(n)}catch(n){throw new Error("invalid base64: "+n.message)}var r=e.length;if(r<99||r>65603)throw new Error("invalid data length: "+r);var i=e[0];if(2!==i)throw new Error("unknown encryption version "+i);return{nonce:e.subarray(1,33),ciphertext:e.subarray(33,-32),mac:e.subarray(-32)}}};var ir={utils:rr,encrypt:function(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(0,_r(_d[9]).randomBytes)(32),r=rr.getMessageKeys(e,t),i=r.chacha_key,o=r.chacha_nonce,u=r.hmac_key,a=rr.pad(n),c=(0,_r(_d[15]).chacha20)(i,o,a),s=rr.hmacAad(u,c,t);return _r(_d[11]).base64.encode((0,_r(_d[9]).concatBytes)(new Uint8Array([2]),t,c,s))},decrypt:function(n,e){var t=rr.decodePayload(n),r=t.nonce,i=t.ciphertext,o=t.mac,u=rr.getMessageKeys(e,r),a=u.chacha_key,c=u.chacha_nonce,s=u.hmac_key,f=rr.hmacAad(s,i,r);if(!(0,_r(_d[16]).equalBytes)(f,o))throw new Error("invalid MAC");var l=(0,_r(_d[15]).chacha20)(a,c,i);return rr.unpad(l)}},or={v2:ir},ur={};function ar(n){var e=new URL(n),t=e.pathname,r=e.searchParams,i=t,o=r.get("relay"),u=r.get("secret");if(!i||!o||!u)throw new Error("invalid connection string");return{pubkey:i,relay:o,secret:u}}function cr(n,e,t){return sr.apply(this,arguments)}function sr(){return(sr=i((function*(n,e,t){var r={method:"pay_invoice",params:{invoice:t}},i=yield nt(e,n,JSON.stringify(r)),o={kind:Hn,created_at:Math.round(Date.now()/1e3),content:i,tags:[["p",n]]};return H(o,e)}))).apply(this,arguments)}p(ur,{makeNwcRequestEvent:function(){return cr},parseConnectionString:function(){return ar}});var fr,lr={};p(lr,{getZapEndpoint:function(){return hr},makeZapReceipt:function(){return gr},makeZapRequest:function(){return pr},useFetchImplementation:function(){return dr},validateZapRequest:function(){return yr}});try{fr=fetch}catch(n){}function dr(n){fr=n}function hr(n){return vr.apply(this,arguments)}function vr(){return(vr=i((function*(n){try{var e="",t=JSON.parse(n.content),r=t.lud06,i=t.lud16;if(r){var o=_r(_d[11]).bech32.decode(r,1e3).words,u=_r(_d[11]).bech32.fromWords(o);e=_.decode(u)}else{if(!i)return null;var c=i.split("@"),s=a(c,2),f=s[0],l=s[1];e=new URL(`/.well-known/lnurlp/${f}`,`https://${l}`).toString()}var d=yield fr(e),h=yield d.json();if(h.allowsNostr&&h.nostrPubkey)return h.callback}catch(n){}return null}))).apply(this,arguments)}function pr(e){var t=e.profile,r=e.event,i=e.amount,o=e.relays,u=e.comment,a=void 0===u?"":u;if(!i)throw new Error("amount not given");if(!t)throw new Error("profile not given");var c={kind:9734,created_at:Math.round(Date.now()/1e3),content:a,tags:[["p",t],["amount",i.toString()],["relays"].concat(n(o))]};return r&&c.tags.push(["e",r]),c}function yr(n){var e;try{e=JSON.parse(n)}catch(n){return"Invalid zap request JSON."}if(!k(e))return"Zap request is not a valid Nostr event.";if(!U(e))return"Invalid signature on zap request.";var t=e.tags.find((function(n){var e=a(n,2),t=e[0],r=e[1];return"p"===t&&r}));if(!t)return"Zap request doesn't have a 'p' tag.";if(!t[1].match(/^[a-f0-9]{64}$/))return"Zap request 'p' tag is not valid hex.";var r=e.tags.find((function(n){var e=a(n,2),t=e[0],r=e[1];return"e"===t&&r}));return r&&!r[1].match(/^[a-f0-9]{64}$/)?"Zap request 'e' tag is not valid hex.":e.tags.find((function(n){var e=a(n,2),t=e[0],r=e[1];return"relays"===t&&r}))?null:"Zap request doesn't have a 'relays' tag."}function gr(e){var t=e.zapRequest,r=e.preimage,i=e.bolt11,o=e.paidAt,u=JSON.parse(t),c=u.tags.filter((function(n){var e=a(n,1)[0];return"e"===e||"p"===e||"a"===e})),s={kind:9735,created_at:Math.round(o.getTime()/1e3),content:"",tags:[].concat(n(c),[["P",u.pubkey],["bolt11",i],["description",t]])};return r&&s.tags.push(["preimage",r]),s}var mr={};p(mr,{getToken:function(){return wr},hashPayload:function(){return Ar},unpackEventFromToken:function(){return Sr},validateEvent:function(){return Lr},validateEventKind:function(){return Or},validateEventMethodTag:function(){return Mr},validateEventPayloadTag:function(){return Cr},validateEventTimestamp:function(){return Rr},validateEventUrlTag:function(){return Pr},validateToken:function(){return kr}});var br="Nostr ";function wr(n,e,t){return Er.apply(this,arguments)}function Er(){return Er=i((function*(n,e,t){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4?arguments[4]:void 0,o={kind:$n,tags:[["u",n],["method",e]],created_at:Math.round((new Date).getTime()/1e3),content:""};i&&o.tags.push(["payload",Ar(i)]);var u=yield t(o);return(r?br:"")+_r(_d[11]).base64.encode(S.encode(JSON.stringify(u)))})),Er.apply(this,arguments)}function kr(n,e,t){return xr.apply(this,arguments)}function xr(){return(xr=i((function*(n,e,t){var r=yield Sr(n).catch((function(n){throw n}));return yield Lr(r,e,t).catch((function(n){throw n}))}))).apply(this,arguments)}function Sr(n){return Tr.apply(this,arguments)}function Tr(){return(Tr=i((function*(n){if(!n)throw new Error("Missing token");n=n.replace(br,"");var e=_.decode(_r(_d[11]).base64.decode(n));if(!e||0===e.length||!e.startsWith("{"))throw new Error("Invalid token");return JSON.parse(e)}))).apply(this,arguments)}function Rr(n){return!!n.created_at&&Math.round((new Date).getTime()/1e3)-n.created_at<60}function Or(n){return n.kind===$n}function Pr(n,e){var t=n.tags.find((function(n){return"u"===n[0]}));return!!t&&(t.length>0&&t[1]===e)}function Mr(n,e){var t=n.tags.find((function(n){return"method"===n[0]}));return!!t&&(t.length>0&&t[1].toLowerCase()===e.toLowerCase())}function Ar(n){var e=(0,_r(_d[10]).sha256)(S.encode(JSON.stringify(n)));return(0,_r(_d[9]).bytesToHex)(e)}function Cr(n,e){var t=n.tags.find((function(n){return"payload"===n[0]}));if(!t)return!1;var r=Ar(e);return t.length>0&&t[1]===r}function Lr(n,e,t,r){return Nr.apply(this,arguments)}function Nr(){return(Nr=i((function*(n,e,t,r){if(!U(n))throw new Error("Invalid nostr event, signature invalid");if(!Or(n))throw new Error("Invalid nostr event, kind invalid");if(!Rr(n))throw new Error("Invalid nostr event, created_at timestamp invalid");if(!Pr(n,e))throw new Error("Invalid nostr event, url tag invalid");if(!Mr(n,t))throw new Error("Invalid nostr event, method tag invalid");if(Boolean(r)&&"object"==typeof r&&Object.keys(r).length>0&&!Cr(n,r))throw new Error("Invalid nostr event, payload tag does not match request body hash");return!0}))).apply(this,arguments)}}),474,[34,10,14,15,339,6,5,26,475,488,490,493,494,498,499,500,496]); +_e.read=function(o,t,h,M,f){var w,p,i=8*f-M-1,n=(1<>1,e=-7,u=h?f-1:0,s=h?-1:1,c=o[t+u];for(u+=s,w=c&(1<<-e)-1,c>>=-e,e+=i;e>0;w=256*w+o[t+u],u+=s,e-=8);for(p=w&(1<<-e)-1,w>>=-e,e+=M;e>0;p=256*p+o[t+u],u+=s,e-=8);if(0===w)w=1-N;else{if(w===n)return p?NaN:1/0*(c?-1:1);p+=Math.pow(2,M),w-=N}return(c?-1:1)*p*Math.pow(2,w-M)},_e.write=function(o,t,h,M,f,w){var p,i,n,N=8*w-f-1,e=(1<>1,s=23===f?Math.pow(2,-24)-Math.pow(2,-77):0,c=M?0:w-1,l=M?1:-1,d=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(i=isNaN(t)?1:0,p=e):(p=Math.floor(Math.log(t)/Math.LN2),t*(n=Math.pow(2,-p))<1&&(p--,n*=2),(t+=p+u>=1?s/n:s*Math.pow(2,1-u))*n>=2&&(p++,n/=2),p+u>=e?(i=0,p=e):p+u>=1?(i=(t*n-1)*Math.pow(2,f),p+=u):(i=t*Math.pow(2,u-1)*Math.pow(2,f),p=0));f>=8;o[h+c]=255&i,c+=l,i/=256,f-=8);for(p=p<0;o[h+c]=255&p,c+=l,p/=256,N-=8);o[h+c-l]|=128*d}}),458,[]); +__d((function(g,r,_i,a,m,e,d){"use strict";var n=r(d[0]);function f(n,f){for(var t=[],o=0,i=n.indexOf(f);i>=0;)t.push(n.slice(o,i)),o=i+1,i=n.indexOf(f,o);return o!==n.length&&t.push(n.slice(o)),t}function t(n,f,t){for(var o=n.indexOf(f);o>=0;)n[o]=t,o=n.indexOf(f,o+1);return n}function o(n){var f=n.toString(16).toUpperCase();return 1===f.length&&(f="0"+f),"%"+f}function i(n){for(var f=r(d[1]).Buffer.alloc(n.byteLength),t=0,o=0;o=0?(l=c.slice(0,v),s=c.slice(v+1)):(l=c,s=r(d[1]).Buffer.alloc(0)),l=t(r(d[1]).Buffer.from(l),43,32),s=t(r(d[1]).Buffer.from(s),43,32),u.push([i(l).toString(),i(s).toString()])}return u}function c(n){var f="";for(var t of n)f+=32===t?"+":42===t||45===t||46===t||t>=48&&t<=57||t>=65&&t<=90||95===t||t>=97&&t<=122?String.fromCodePoint(t):o(t);return f}m.exports={percentEncode:o,percentDecode:i,parseUrlencoded:function(n){return u(r(d[1]).Buffer.from(n))},serializeUrlencoded:function(f){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,o="utf-8";void 0!==t&&(o=t);var i="";for(var u of f.entries()){var l=n(u,2),s=l[0],v=l[1],h=c(r(d[1]).Buffer.from(v[0])),p=v[1];v.length>2&&void 0!==v[2]&&("hidden"===v[2]&&"_charset_"===h?p=o:"file"===v[2]&&(p=p.name)),0!==s&&(i+="&"),i+=`${h}=${p=c(r(d[1]).Buffer.from(p))}`}return i}}}),459,[26,457,456]); +__d((function(g,r,_i,a,m,e,d){"use strict";var t=r(d[0]),o=r(d[1]),n=r(d[2]),i=r(d[3]),l=Object.create(r(d[4]).IteratorPrototype,n({next:{value:function(){var t=this[r(d[4]).iterInternalSymbol],o=t.target,n=t.kind,l=t.index,s=Array.from(o[r(d[4]).implSymbol]);if(l>=s.length)return{value:void 0,done:!0};var c=s[l];t.index=l+1;var u,p=c.map(r(d[4]).tryWrapperForImpl),h=i(p,2),y=h[0],f=h[1];switch(n){case"key":u=y;break;case"value":u=f;break;case"key+value":u=[y,f]}return{value:u,done:!1}},writable:!0,enumerable:!0,configurable:!0}},Symbol.toStringTag,{value:"URLSearchParams Iterator",configurable:!0})),s={_mixedIntoPredicates:[],is:function(t){if(t){if(r(d[4]).hasOwn(t,r(d[4]).implSymbol)&&t[r(d[4]).implSymbol]instanceof r(d[5]).implementation)return!0;for(var o of m.exports._mixedIntoPredicates)if(o(t))return!0}return!1},isImpl:function(t){if(t){if(t instanceof r(d[5]).implementation)return!0;var o=r(d[4]).wrapperForImpl(t);for(var n of m.exports._mixedIntoPredicates)if(n(o))return!0}return!1},convert:function(t){var o=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).context,n=void 0===o?"The provided value":o;if(m.exports.is(t))return r(d[4]).implForWrapper(t);throw new TypeError(`${n} is not of type 'URLSearchParams'.`)},createDefaultIterator:function(t,o){var n=Object.create(l);return Object.defineProperty(n,r(d[4]).iterInternalSymbol,{value:{target:t,kind:o,index:0},configurable:!0}),n},create:function(t,o,n){if(void 0===t[r(d[4]).ctorRegistrySymbol])throw new Error("Internal error: invalid global object");var i=t[r(d[4]).ctorRegistrySymbol].URLSearchParams;if(void 0===i)throw new Error("Internal error: constructor URLSearchParams is not installed on the passed global object");var l=Object.create(i.prototype);return l=s.setup(l,t,o,n)},createImpl:function(t,o,n){var i=s.create(t,o,n);return r(d[4]).implForWrapper(i)},_internalSetup:function(t){},setup:function(t,o){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return i.wrapper=t,s._internalSetup(t),Object.defineProperty(t,r(d[4]).implSymbol,{value:new(r(d[5]).implementation)(o,n,i),configurable:!0}),t[r(d[4]).implSymbol][r(d[4]).wrapperSymbol]=t,r(d[5]).init&&r(d[5]).init(t[r(d[4]).implSymbol],i),t},install:function(l){var c=(function(){function n(){t(this,n);var o=[],i=arguments[0];if(void 0!==i)if(r(d[4]).isObject(i))if(void 0!==i[Symbol.iterator]){if(!r(d[4]).isObject(i))throw new TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence is not an iterable object.");var c=[],u=i;for(var p of u){if(!r(d[4]).isObject(p))throw new TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence's element is not an iterable object.");var h=[],y=p;for(var f of y)f=r(d[6]).USVString(f,{context:"Failed to construct 'URLSearchParams': parameter 1 sequence's element's element"}),h.push(f);p=h,c.push(p)}i=c}else{if(!r(d[4]).isObject(i))throw new TypeError("Failed to construct 'URLSearchParams': parameter 1 record is not an object.");var v=Object.create(null);for(var b of Reflect.ownKeys(i)){var S=Object.getOwnPropertyDescriptor(i,b);if(S&&S.enumerable){var w=b;w=r(d[6]).USVString(w,{context:"Failed to construct 'URLSearchParams': parameter 1 record's key"});var x=i[b];x=r(d[6]).USVString(x,{context:"Failed to construct 'URLSearchParams': parameter 1 record's value"}),v[w]=x}}i=v}else i=r(d[6]).USVString(i,{context:"Failed to construct 'URLSearchParams': parameter 1"});else i="";return o.push(i),s.setup(Object.create(this.constructor.prototype),l,o)}return o(n,[{key:"append",value:function(t,o){var n;if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");if(arguments.length<2)throw new TypeError("Failed to execute 'append' on 'URLSearchParams': 2 arguments required, but only "+arguments.length+" present.");var i=[],l=arguments[0];l=r(d[6]).USVString(l,{context:"Failed to execute 'append' on 'URLSearchParams': parameter 1"}),i.push(l);var s=arguments[1];return s=r(d[6]).USVString(s,{context:"Failed to execute 'append' on 'URLSearchParams': parameter 2"}),i.push(s),(n=this[r(d[4]).implSymbol]).append.apply(n,i)}},{key:"delete",value:function(t){var o;if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");if(arguments.length<1)throw new TypeError("Failed to execute 'delete' on 'URLSearchParams': 1 argument required, but only "+arguments.length+" present.");var n=[],i=arguments[0];return i=r(d[6]).USVString(i,{context:"Failed to execute 'delete' on 'URLSearchParams': parameter 1"}),n.push(i),(o=this[r(d[4]).implSymbol]).delete.apply(o,n)}},{key:"get",value:function(t){var o;if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");if(arguments.length<1)throw new TypeError("Failed to execute 'get' on 'URLSearchParams': 1 argument required, but only "+arguments.length+" present.");var n=[],i=arguments[0];return i=r(d[6]).USVString(i,{context:"Failed to execute 'get' on 'URLSearchParams': parameter 1"}),n.push(i),(o=this[r(d[4]).implSymbol]).get.apply(o,n)}},{key:"getAll",value:function(t){var o;if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");if(arguments.length<1)throw new TypeError("Failed to execute 'getAll' on 'URLSearchParams': 1 argument required, but only "+arguments.length+" present.");var n=[],i=arguments[0];return i=r(d[6]).USVString(i,{context:"Failed to execute 'getAll' on 'URLSearchParams': parameter 1"}),n.push(i),r(d[4]).tryWrapperForImpl((o=this[r(d[4]).implSymbol]).getAll.apply(o,n))}},{key:"has",value:function(t){var o;if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");if(arguments.length<1)throw new TypeError("Failed to execute 'has' on 'URLSearchParams': 1 argument required, but only "+arguments.length+" present.");var n=[],i=arguments[0];return i=r(d[6]).USVString(i,{context:"Failed to execute 'has' on 'URLSearchParams': parameter 1"}),n.push(i),(o=this[r(d[4]).implSymbol]).has.apply(o,n)}},{key:"set",value:function(t,o){var n;if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");if(arguments.length<2)throw new TypeError("Failed to execute 'set' on 'URLSearchParams': 2 arguments required, but only "+arguments.length+" present.");var i=[],l=arguments[0];l=r(d[6]).USVString(l,{context:"Failed to execute 'set' on 'URLSearchParams': parameter 1"}),i.push(l);var s=arguments[1];return s=r(d[6]).USVString(s,{context:"Failed to execute 'set' on 'URLSearchParams': parameter 2"}),i.push(s),(n=this[r(d[4]).implSymbol]).set.apply(n,i)}},{key:"sort",value:function(){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");return this[r(d[4]).implSymbol].sort()}},{key:"toString",value:function(){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");return this[r(d[4]).implSymbol].toString()}},{key:"keys",value:function(){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");return m.exports.createDefaultIterator(this,"key")}},{key:"values",value:function(){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");return m.exports.createDefaultIterator(this,"value")}},{key:"entries",value:function(){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");return m.exports.createDefaultIterator(this,"key+value")}},{key:"forEach",value:function(t){if(!this||!m.exports.is(this))throw new TypeError("Illegal invocation");if(arguments.length<1)throw new TypeError("Failed to execute 'forEach' on 'iterable': 1 argument required, but only 0 present.");if("function"!=typeof t)throw new TypeError("Failed to execute 'forEach' on 'iterable': The callback provided as parameter 1 is not a function.");for(var o=arguments[1],n=Array.from(this[r(d[4]).implSymbol]),l=0;li[0]},t.map((function(t,i){return{item:t,index:i}})).sort((function(t,s){return i(t.item,s.item)||t.index-s.index})).map((function(t){return t.item}))),this._updateSteps()}},{key:s,value:function(){return this._list[Symbol.iterator]()}},{key:"toString",value:function(){return r(d[2]).serializeUrlencoded(this._list)}}]),n})(Symbol.iterator)}),461,[5,6,459]); +__d((function(g,r,_i,_a,m,_e,_d){"use strict";function n(n,t){return`${t&&t.context?t.context:"Value"} ${n}.`}function t(n){if(null===n)return"Null";switch(typeof n){case"undefined":return"Undefined";case"boolean":return"Boolean";case"number":return"Number";case"string":return"String";case"symbol":return"Symbol";default:return"Object"}}function e(n){return a(n>0&&n%1==.5&&!(1&n)||n<0&&n%1==-.5&&!(1&~n)?Math.floor(n):Math.round(n))}function o(n){return a(Math.trunc(n))}function i(n){return n<0?-1:1}function u(n,t){var e=n%t;return i(t)!==i(e)?e+t:e}function a(n){return 0===n?0:n}function f(t,i){var f,c,s=!i.unsigned;64===t?(c=Math.pow(2,53)-1,f=s?1-Math.pow(2,53):0):s?(f=-Math.pow(2,t-1),c=Math.pow(2,t-1)-1):(f=0,c=Math.pow(2,t)-1);var l=Math.pow(2,t),y=Math.pow(2,t-1);return function(t,i){void 0===i&&(i={});var w=+t;if(w=a(w),i.enforceRange){if(!Number.isFinite(w))throw new TypeError(n("is not a finite number",i));if((w=o(w))c)throw new TypeError(n(`is outside the accepted range of ${f} to ${c}, inclusive`,i));return w}return!Number.isNaN(w)&&i.clamp?w=e(w=Math.min(Math.max(w,f),c)):Number.isFinite(w)&&0!==w?(w=o(w))>=f&&w<=c?w:(w=u(w,l),s&&w>=y?w-l:w):0}}function c(t,e){if("function"!=typeof t)throw new TypeError(n("is not a function",e));return t}_e.any=function(n){return n},_e.void=function(){},_e.boolean=function(n){return!!n},_e.byte=f(8,{unsigned:!1}),_e.octet=f(8,{unsigned:!0}),_e.short=f(16,{unsigned:!1}),_e["unsigned short"]=f(16,{unsigned:!0}),_e.long=f(32,{unsigned:!1}),_e["unsigned long"]=f(32,{unsigned:!0}),_e["long long"]=f(64,{unsigned:!1}),_e["unsigned long long"]=f(64,{unsigned:!0}),_e.double=function(t,e){var o=+t;if(!Number.isFinite(o))throw new TypeError(n("is not a finite floating-point value",e));return o},_e["unrestricted double"]=function(n){return+n},_e.float=function(t,e){var o=+t;if(!Number.isFinite(o))throw new TypeError(n("is not a finite floating-point value",e));if(Object.is(o,-0))return o;var i=Math.fround(o);if(!Number.isFinite(i))throw new TypeError(n("is outside the range of a single-precision floating-point value",e));return i},_e["unrestricted float"]=function(n){var t=+n;return isNaN(t)||Object.is(t,-0)?t:Math.fround(t)},_e.DOMString=function(t,e){if(void 0===e&&(e={}),e.treatNullAsEmptyString&&null===t)return"";if("symbol"==typeof t)throw new TypeError(n("is a symbol, which cannot be converted to a string",e));return String(t)},_e.ByteString=function(t,e){for(var o,i=_e.DOMString(t,e),u=0;void 0!==(o=i.codePointAt(u));++u)if(o>255)throw new TypeError(n("is not a valid ByteString",e));return i},_e.USVString=function(n,t){for(var e=_e.DOMString(n,t),o=e.length,i=[],u=0;u57343)i.push(String.fromCodePoint(a));else if(56320<=a&&a<=57343)i.push(String.fromCodePoint(65533));else if(u===o-1)i.push(String.fromCodePoint(65533));else{var f=e.charCodeAt(u+1);if(56320<=f&&f<=57343){var c=1023&a,s=1023&f;i.push(String.fromCodePoint(65536+1024*c+s)),++u}else i.push(String.fromCodePoint(65533))}}return i.join("")},_e.object=function(e,o){if("Object"!==t(e))throw new TypeError(n("is not an object",o));return e};var s=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get;function l(n){try{return s.call(n),!0}catch(n){return!1}}_e.ArrayBuffer=function(t,e){if(!l(t))throw new TypeError(n("is not a view on an ArrayBuffer object",e));return t};var y=Object.getOwnPropertyDescriptor(DataView.prototype,"byteLength").get;_e.DataView=function(t,e){try{return y.call(t),t}catch(t){throw new TypeError(n("is not a view on an DataView object",e))}},[Int8Array,Int16Array,Int32Array,Uint8Array,Uint16Array,Uint32Array,Uint8ClampedArray,Float32Array,Float64Array].forEach((function(t){var e=t.name,o=/^[AEIOU]/.test(e)?"an":"a";_e[e]=function(t,i){if(!ArrayBuffer.isView(t)||t.constructor.name!==e)throw new TypeError(n(`is not ${o} ${e} object`,i));return t}})),_e.ArrayBufferView=function(t,e){if(!ArrayBuffer.isView(t))throw new TypeError(n("is not a view on an ArrayBuffer object",e));return t},_e.BufferSource=function(t,e){if(!ArrayBuffer.isView(t)&&!l(t))throw new TypeError(n("is not an ArrayBuffer object or a view on one",e));return t},_e.DOMTimeStamp=_e["unsigned long long"],_e.Function=c,_e.VoidFunction=c}),462,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"URLSearchParams",{enumerable:!0,get:function(){return r(d[0]).URLSearchParams}})}),463,[449]); +__d((function(g,r,i,_a,m,_e,d){var e=r(d[0]),n=r(d[1]),t=r(d[2]),o=r(d[3]),a=r(d[4]),u=r(d[5]);function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}var s,p=r(d[6]),f=r(d[7]),y=f.StyleSheet,l=f.View,v=(f.Platform,y.create({hide:{display:"none",position:"absolute",width:0,height:0,flexGrow:0,flexShrink:1}})),w=new Promise((function(e){s=e}));var h={fake:!0,decrypt:function(){for(var e=arguments.length,n=new Array(e),t=0;t