@natewilcox/tic-tac-toe-client
Version:
The client-side application for a multiplayer Tic Tac Toe game, built with Phaser. It communicates with a server to manage game state and player interactions.
1 lines • 2.2 MB
JavaScript
function $parcel$export(t,e,i,r){Object.defineProperty(t,e,{get:i,set:r,enumerable:!0,configurable:!0})}var $parcel$global=globalThis;function $parcel$interopDefault(t){return t&&t.__esModule?t.default:t}var $parcel$modules={},$parcel$inits={},parcelRequire=$parcel$global.parcelRequire94c2;null==parcelRequire&&((parcelRequire=function(t){if(t in $parcel$modules)return $parcel$modules[t].exports;if(t in $parcel$inits){var e=$parcel$inits[t];delete $parcel$inits[t];var i={id:t,exports:{}};return $parcel$modules[t]=i,e.call(i.exports,i,i.exports),i.exports}var r=Error("Cannot find module '"+t+"'");throw r.code="MODULE_NOT_FOUND",r}).register=function(t,e){$parcel$inits[t]=e},$parcel$global.parcelRequire94c2=parcelRequire);var parcelRegister=parcelRequire.register;parcelRegister("27Lyk",function(t,e){$parcel$export(t.exports,"register",()=>i,t=>i=t);var i,r=new Map;i=function(t,e){for(var i=0;i<e.length-1;i+=2)r.set(e[i],{baseUrl:t,path:e[i+1]})}}),parcelRegister("JT1aN",function(t,e){var i=parcelRequire("hPtJY"),r=parcelRequire("6ZWSX").Buffer,n=parcelRequire("kjyEk"),s=parcelRequire("59kwG"),o=parcelRequire("ccDAZ"),a=parcelRequire("5UUfm");let h=parcelRequire("21Rsa").version,u=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function l(t){console.log(`[dotenv@${h}][INFO] ${t}`)}function f(t){console.log(`[dotenv@${h}][WARN] ${t}`)}function c(t){console.log(`[dotenv@${h}][DEBUG] ${t}`)}function d(t){return t&&t.DOTENV_KEY&&t.DOTENV_KEY.length>0?t.DOTENV_KEY:""}function p(t,e){let i;try{i=new URL(e)}catch(t){if("ERR_INVALID_URL"===t.code){let t=Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw t.code="INVALID_DOTENV_KEY",t}throw t}let r=i.password;if(!r){let t=Error("INVALID_DOTENV_KEY: Missing key part");throw t.code="INVALID_DOTENV_KEY",t}let n=i.searchParams.get("environment");if(!n){let t=Error("INVALID_DOTENV_KEY: Missing environment part");throw t.code="INVALID_DOTENV_KEY",t}let s=`DOTENV_VAULT_${n.toUpperCase()}`,o=t.parsed[s];if(!o){let t=Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${s} in your .env.vault file.`);throw t.code="NOT_FOUND_DOTENV_ENVIRONMENT",t}return{ciphertext:o,key:r}}function v(t){let e=null;if(t&&t.path&&t.path.length>0){if(Array.isArray(t.path))for(let i of t.path)n.existsSync(i)&&(e=i.endsWith(".vault")?i:`${i}.vault`);else e=t.path.endsWith(".vault")?t.path:`${t.path}.vault`}else e=s.resolve(i.cwd(),".env.vault");return n.existsSync(e)?e:null}function m(t){return"~"===t[0]?s.join(o.homedir(),t.slice(1)):t}let g={configDotenv:function(t){let e;let r=s.resolve(i.cwd(),".env"),o="utf8",a=!!(t&&t.debug);t&&t.encoding?o=t.encoding:a&&c("No encoding is specified. UTF-8 is used by default");let h=[r];if(t&&t.path){if(Array.isArray(t.path))for(let e of(h=[],t.path))h.push(m(e));else h=[m(t.path)]}let u={};for(let i of h)try{let e=g.parse(n.readFileSync(i,{encoding:o}));g.populate(u,e,t)}catch(t){a&&c(`Failed to load ${i} ${t.message}`),e=t}let l={};return(t&&null!=t.processEnv&&(l=t.processEnv),g.populate(l,u,t),e)?{parsed:u,error:e}:{parsed:u}},_configVault:function(t){l("Loading env from encrypted .env.vault");let e=g._parseVault(t),i={};return t&&null!=t.processEnv&&(i=t.processEnv),g.populate(i,e,t),{parsed:e}},_parseVault:function(t){let e;let i=v(t),r=g.configDotenv({path:i});if(!r.parsed){let t=Error(`MISSING_DATA: Cannot parse ${i} for an unknown reason`);throw t.code="MISSING_DATA",t}let n=d(t).split(","),s=n.length;for(let t=0;t<s;t++)try{let i=n[t].trim(),s=p(r,i);e=g.decrypt(s.ciphertext,s.key);break}catch(e){if(t+1>=s)throw e}return g.parse(e)},config:function(t){if(0===d(t).length)return g.configDotenv(t);let e=v(t);return e?g._configVault(t):(f(`You set DOTENV_KEY but you are missing a .env.vault file at ${e}. Did you forget to build it?`),g.configDotenv(t))},decrypt:function(t,e){let i=r.from(e.slice(-64),"hex"),n=r.from(t,"base64"),s=n.subarray(0,12),o=n.subarray(-16);n=n.subarray(12,-16);try{let t=a.createDecipheriv("aes-256-gcm",i,s);return t.setAuthTag(o),`${t.update(n)}${t.final()}`}catch(r){let t=r instanceof RangeError,e="Invalid key length"===r.message,i="Unsupported state or unable to authenticate data"===r.message;if(t||e){let t=Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw t.code="INVALID_DOTENV_KEY",t}if(i){let t=Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw t.code="DECRYPTION_FAILED",t}throw r}},parse:function(t){let e;let i={},r=t.toString();for(r=r.replace(/\r\n?/mg,"\n");null!=(e=u.exec(r));){let t=e[1],r=e[2]||"",n=(r=r.trim())[0];r=r.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),'"'===n&&(r=(r=r.replace(/\\n/g,"\n")).replace(/\\r/g,"\r")),i[t]=r}return i},populate:function(t,e,i={}){let r=!!(i&&i.debug),n=!!(i&&i.override);if("object"!=typeof e){let t=Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw t.code="OBJECT_REQUIRED",t}for(let i of Object.keys(e))Object.prototype.hasOwnProperty.call(t,i)?(!0===n&&(t[i]=e[i]),r&&(!0===n?c(`"${i}" is already defined and WAS overwritten`):c(`"${i}" is already defined and was NOT overwritten`))):t[i]=e[i]}};t.exports.configDotenv=g.configDotenv,t.exports._configVault=g._configVault,t.exports._parseVault=g._parseVault,t.exports.config=g.config,t.exports.decrypt=g.decrypt,t.exports.parse=g.parse,t.exports.populate=g.populate,t.exports=g}),parcelRegister("hPtJY",function(t,e){var i,r,n,s=t.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function h(t){if(i===setTimeout)return setTimeout(t,0);if((i===o||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}function u(t){if(r===clearTimeout)return clearTimeout(t);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{return r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:o}catch(t){i=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var l=[],f=!1,c=-1;function d(){f&&n&&(f=!1,n.length?l=n.concat(l):c=-1,l.length&&p())}function p(){if(!f){var t=h(d);f=!0;for(var e=l.length;e;){for(n=l,l=[];++c<e;)n&&n[c].run();c=-1,e=l.length}n=null,f=!1,u(t)}}function v(t,e){this.fun=t,this.array=e}function m(){}s.nextTick=function(t){var e=Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];l.push(new v(t,e)),1!==l.length||f||h(p)},v.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={},s.on=m,s.addListener=m,s.once=m,s.off=m,s.removeListener=m,s.removeAllListeners=m,s.emit=m,s.prependListener=m,s.prependOnceListener=m,s.listeners=function(t){return[]},s.binding=function(t){throw Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(t){throw Error("process.chdir is not supported")},s.umask=function(){return 0}}),parcelRegister("6ZWSX",function(t,e){$parcel$export(t.exports,"Buffer",()=>i,t=>i=t),$parcel$export(t.exports,"SlowBuffer",()=>r,t=>r=t),$parcel$export(t.exports,"INSPECT_MAX_BYTES",()=>n,t=>n=t),$parcel$export(t.exports,"kMaxLength",()=>s,t=>s=t);var i,r,n,s,o=parcelRequire("kuxul"),a=parcelRequire("9NvM5");let h="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;i=c,r=_,n=50;let u=0x7fffffff;function l(){try{let 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}}function f(t){if(t>u)throw RangeError('The value "'+t+'" is invalid for option "size"');let e=new Uint8Array(t);return Object.setPrototypeOf(e,c.prototype),e}function c(t,e,i){if("number"==typeof t){if("string"==typeof e)throw TypeError('The "string" argument must be of type string. Received type number');return m(t)}return d(t,e,i)}function d(t,e,i){if("string"==typeof t)return g(t,e);if(ArrayBuffer.isView(t))return x(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(tu(t,ArrayBuffer)||t&&tu(t.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(tu(t,SharedArrayBuffer)||t&&tu(t.buffer,SharedArrayBuffer)))return b(t,e,i);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');let r=t.valueOf&&t.valueOf();if(null!=r&&r!==t)return c.from(r,e,i);let n=w(t);if(n)return n;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return c.from(t[Symbol.toPrimitive]("string"),e,i);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function p(t){if("number"!=typeof t)throw TypeError('"size" argument must be of type number');if(t<0)throw RangeError('The value "'+t+'" is invalid for option "size"')}function v(t,e,i){return(p(t),t<=0)?f(t):void 0!==e?"string"==typeof i?f(t).fill(e,i):f(t).fill(e):f(t)}function m(t){return p(t),f(t<0?0:0|M(t))}function g(t,e){if(("string"!=typeof e||""===e)&&(e="utf8"),!c.isEncoding(e))throw TypeError("Unknown encoding: "+e);let i=0|T(t,e),r=f(i),n=r.write(t,e);return n!==i&&(r=r.slice(0,n)),r}function y(t){let e=t.length<0?0:0|M(t.length),i=f(e);for(let r=0;r<e;r+=1)i[r]=255&t[r];return i}function x(t){if(tu(t,Uint8Array)){let e=new Uint8Array(t);return b(e.buffer,e.byteOffset,e.byteLength)}return y(t)}function b(t,e,i){let r;if(e<0||t.byteLength<e)throw RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(i||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(r=void 0===e&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,e):new Uint8Array(t,e,i),c.prototype),r}function w(t){if(c.isBuffer(t)){let e=0|M(t.length),i=f(e);return 0===i.length||t.copy(i,0,0,e),i}return void 0!==t.length?"number"!=typeof t.length||tl(t.length)?f(0):y(t):"Buffer"===t.type&&Array.isArray(t.data)?y(t.data):void 0}function M(t){if(t>=u)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u.toString(16)+" bytes");return 0|t}function _(t){return+t!=t&&(t=0),c.alloc(+t)}function T(t,e){if(c.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||tu(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);let i=t.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===i)return 0;let n=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return tn(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return ta(t).length;default:if(n)return r?-1:tn(t).length;e=(""+e).toLowerCase(),n=!0}}function S(t,e,i){let r=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===i||i>this.length)&&(i=this.length),i<=0||(i>>>=0)<=(e>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return z(this,e,i);case"utf8":case"utf-8":return D(this,e,i);case"ascii":return N(this,e,i);case"latin1":case"binary":return U(this,e,i);case"base64":return I(this,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y(this,e,i);default:if(r)throw TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function E(t,e,i){let r=t[e];t[e]=t[i],t[i]=r}function A(t,e,i,r,n){if(0===t.length)return -1;if("string"==typeof i?(r=i,i=0):i>0x7fffffff?i=0x7fffffff:i<-0x80000000&&(i=-0x80000000),tl(i=+i)&&(i=n?0:t.length-1),i<0&&(i=t.length+i),i>=t.length){if(n)return -1;i=t.length-1}else if(i<0){if(!n)return -1;i=0}if("string"==typeof e&&(e=c.from(e,r)),c.isBuffer(e))return 0===e.length?-1:C(t,e,i,r,n);if("number"==typeof e)return(e&=255,"function"==typeof Uint8Array.prototype.indexOf)?n?Uint8Array.prototype.indexOf.call(t,e,i):Uint8Array.prototype.lastIndexOf.call(t,e,i):C(t,[e],i,r,n);throw TypeError("val must be string, number or Buffer")}function C(t,e,i,r,n){let s,o=1,a=t.length,h=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return -1;o=2,a/=2,h/=2,i/=2}function u(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(n){let r=-1;for(s=i;s<a;s++)if(u(t,s)===u(e,-1===r?0:s-r)){if(-1===r&&(r=s),s-r+1===h)return r*o}else -1!==r&&(s-=s-r),r=-1}else for(i+h>a&&(i=a-h),s=i;s>=0;s--){let i=!0;for(let r=0;r<h;r++)if(u(t,s+r)!==u(e,r)){i=!1;break}if(i)return s}return -1}function R(t,e,i,r){let n;i=Number(i)||0;let s=t.length-i;r?(r=Number(r))>s&&(r=s):r=s;let o=e.length;for(r>o/2&&(r=o/2),n=0;n<r;++n){let r=parseInt(e.substr(2*n,2),16);if(tl(r))break;t[i+n]=r}return n}function P(t,e,i,r){return th(tn(e,t.length-i),t,i,r)}function O(t,e,i,r){return th(ts(e),t,i,r)}function k(t,e,i,r){return th(ta(e),t,i,r)}function L(t,e,i,r){return th(to(e,t.length-i),t,i,r)}function I(t,e,i){return 0===e&&i===t.length?o.fromByteArray(t):o.fromByteArray(t.slice(e,i))}function D(t,e,i){i=Math.min(t.length,i);let r=[],n=e;for(;n<i;){let e=t[n],s=null,o=e>239?4:e>223?3:e>191?2:1;if(n+o<=i){let i,r,a,h;switch(o){case 1:e<128&&(s=e);break;case 2:(192&(i=t[n+1]))==128&&(h=(31&e)<<6|63&i)>127&&(s=h);break;case 3:i=t[n+1],r=t[n+2],(192&i)==128&&(192&r)==128&&(h=(15&e)<<12|(63&i)<<6|63&r)>2047&&(h<55296||h>57343)&&(s=h);break;case 4:i=t[n+1],r=t[n+2],a=t[n+3],(192&i)==128&&(192&r)==128&&(192&a)==128&&(h=(15&e)<<18|(63&i)<<12|(63&r)<<6|63&a)>65535&&h<1114112&&(s=h)}}null===s?(s=65533,o=1):s>65535&&(s-=65536,r.push(s>>>10&1023|55296),s=56320|1023&s),r.push(s),n+=o}return B(r)}s=0x7fffffff,c.TYPED_ARRAY_SUPPORT=l(),c.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(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(t,e,i){return d(t,e,i)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(t,e,i){return v(t,e,i)},c.allocUnsafe=function(t){return m(t)},c.allocUnsafeSlow=function(t){return m(t)},c.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==c.prototype},c.compare=function(t,e){if(tu(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),tu(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(t)||!c.isBuffer(e))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let i=t.length,r=e.length;for(let n=0,s=Math.min(i,r);n<s;++n)if(t[n]!==e[n]){i=t[n],r=e[n];break}return i<r?-1:r<i?1:0},c.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(t,e){let i;if(!Array.isArray(t))throw TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);if(void 0===e)for(i=0,e=0;i<t.length;++i)e+=t[i].length;let r=c.allocUnsafe(e),n=0;for(i=0;i<t.length;++i){let e=t[i];if(tu(e,Uint8Array))n+e.length>r.length?(c.isBuffer(e)||(e=c.from(e)),e.copy(r,n)):Uint8Array.prototype.set.call(r,e,n);else if(c.isBuffer(e))e.copy(r,n);else throw TypeError('"list" argument must be an Array of Buffers');n+=e.length}return r},c.byteLength=T,c.prototype._isBuffer=!0,c.prototype.swap16=function(){let t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)E(this,e,e+1);return this},c.prototype.swap32=function(){let t=this.length;if(t%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)E(this,e,e+3),E(this,e+1,e+2);return this},c.prototype.swap64=function(){let t=this.length;if(t%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)E(this,e,e+7),E(this,e+1,e+6),E(this,e+2,e+5),E(this,e+3,e+4);return this},c.prototype.toString=function(){let t=this.length;return 0===t?"":0==arguments.length?D(this,0,t):S.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(t){if(!c.isBuffer(t))throw TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){let t="",e=n;return t=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(t+=" ... "),"<Buffer "+t+">"},h&&(c.prototype[h]=c.prototype.inspect),c.prototype.compare=function(t,e,i,r,n){if(tu(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===i&&(i=t?t.length:0),void 0===r&&(r=0),void 0===n&&(n=this.length),e<0||i>t.length||r<0||n>this.length)throw RangeError("out of range index");if(r>=n&&e>=i)return 0;if(r>=n)return -1;if(e>=i)return 1;if(e>>>=0,i>>>=0,r>>>=0,n>>>=0,this===t)return 0;let s=n-r,o=i-e,a=Math.min(s,o),h=this.slice(r,n),u=t.slice(e,i);for(let t=0;t<a;++t)if(h[t]!==u[t]){s=h[t],o=u[t];break}return s<o?-1:o<s?1:0},c.prototype.includes=function(t,e,i){return -1!==this.indexOf(t,e,i)},c.prototype.indexOf=function(t,e,i){return A(this,t,e,i,!0)},c.prototype.lastIndexOf=function(t,e,i){return A(this,t,e,i,!1)},c.prototype.write=function(t,e,i,r){if(void 0===e)r="utf8",i=this.length,e=0;else if(void 0===i&&"string"==typeof e)r=e,i=this.length,e=0;else if(isFinite(e))e>>>=0,isFinite(i)?(i>>>=0,void 0===r&&(r="utf8")):(r=i,i=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let n=this.length-e;if((void 0===i||i>n)&&(i=n),t.length>0&&(i<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let s=!1;for(;;)switch(r){case"hex":return R(this,t,e,i);case"utf8":case"utf-8":return P(this,t,e,i);case"ascii":case"latin1":case"binary":return O(this,t,e,i);case"base64":return k(this,t,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,t,e,i);default:if(s)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),s=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};let F=4096;function B(t){let e=t.length;if(e<=F)return String.fromCharCode.apply(String,t);let i="",r=0;for(;r<e;)i+=String.fromCharCode.apply(String,t.slice(r,r+=F));return i}function N(t,e,i){let r="";i=Math.min(t.length,i);for(let n=e;n<i;++n)r+=String.fromCharCode(127&t[n]);return r}function U(t,e,i){let r="";i=Math.min(t.length,i);for(let n=e;n<i;++n)r+=String.fromCharCode(t[n]);return r}function z(t,e,i){let r=t.length;(!e||e<0)&&(e=0),(!i||i<0||i>r)&&(i=r);let n="";for(let r=e;r<i;++r)n+=tf[t[r]];return n}function Y(t,e,i){let r=t.slice(e,i),n="";for(let t=0;t<r.length-1;t+=2)n+=String.fromCharCode(r[t]+256*r[t+1]);return n}function X(t,e,i){if(t%1!=0||t<0)throw RangeError("offset is not uint");if(t+e>i)throw RangeError("Trying to access beyond buffer length")}function G(t,e,i,r,n,s){if(!c.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>n||e<s)throw RangeError('"value" argument is out of bounds');if(i+r>t.length)throw RangeError("Index out of range")}function V(t,e,i,r,n){Q(e,r,n,t,i,7);let s=Number(e&BigInt(0xffffffff));t[i++]=s,s>>=8,t[i++]=s,s>>=8,t[i++]=s,s>>=8,t[i++]=s;let o=Number(e>>BigInt(32)&BigInt(0xffffffff));return t[i++]=o,o>>=8,t[i++]=o,o>>=8,t[i++]=o,o>>=8,t[i++]=o,i}function W(t,e,i,r,n){Q(e,r,n,t,i,7);let s=Number(e&BigInt(0xffffffff));t[i+7]=s,s>>=8,t[i+6]=s,s>>=8,t[i+5]=s,s>>=8,t[i+4]=s;let o=Number(e>>BigInt(32)&BigInt(0xffffffff));return t[i+3]=o,o>>=8,t[i+2]=o,o>>=8,t[i+1]=o,o>>=8,t[i]=o,i+8}function H(t,e,i,r,n,s){if(i+r>t.length||i<0)throw RangeError("Index out of range")}function j(t,e,i,r,n){return e=+e,i>>>=0,n||H(t,e,i,4,34028234663852886e22,-34028234663852886e22),a.write(t,e,i,r,23,4),i+4}function q(t,e,i,r,n){return e=+e,i>>>=0,n||H(t,e,i,8,17976931348623157e292,-17976931348623157e292),a.write(t,e,i,r,52,8),i+8}c.prototype.slice=function(t,e){let i=this.length;t=~~t,e=void 0===e?i:~~e,t<0?(t+=i)<0&&(t=0):t>i&&(t=i),e<0?(e+=i)<0&&(e=0):e>i&&(e=i),e<t&&(e=t);let r=this.subarray(t,e);return Object.setPrototypeOf(r,c.prototype),r},c.prototype.readUintLE=c.prototype.readUIntLE=function(t,e,i){t>>>=0,e>>>=0,i||X(t,e,this.length);let r=this[t],n=1,s=0;for(;++s<e&&(n*=256);)r+=this[t+s]*n;return r},c.prototype.readUintBE=c.prototype.readUIntBE=function(t,e,i){t>>>=0,e>>>=0,i||X(t,e,this.length);let r=this[t+--e],n=1;for(;e>0&&(n*=256);)r+=this[t+--e]*n;return r},c.prototype.readUint8=c.prototype.readUInt8=function(t,e){return t>>>=0,e||X(t,1,this.length),this[t]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(t,e){return t>>>=0,e||X(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(t,e){return t>>>=0,e||X(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(t,e){return t>>>=0,e||X(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+0x1000000*this[t+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(t,e){return t>>>=0,e||X(t,4,this.length),0x1000000*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readBigUInt64LE=tc(function(t){tt(t>>>=0,"offset");let e=this[t],i=this[t+7];(void 0===e||void 0===i)&&te(t,this.length-8);let r=e+256*this[++t]+65536*this[++t]+0x1000000*this[++t],n=this[++t]+256*this[++t]+65536*this[++t]+0x1000000*i;return BigInt(r)+(BigInt(n)<<BigInt(32))}),c.prototype.readBigUInt64BE=tc(function(t){tt(t>>>=0,"offset");let e=this[t],i=this[t+7];(void 0===e||void 0===i)&&te(t,this.length-8);let r=0x1000000*e+65536*this[++t]+256*this[++t]+this[++t],n=0x1000000*this[++t]+65536*this[++t]+256*this[++t]+i;return(BigInt(r)<<BigInt(32))+BigInt(n)}),c.prototype.readIntLE=function(t,e,i){t>>>=0,e>>>=0,i||X(t,e,this.length);let r=this[t],n=1,s=0;for(;++s<e&&(n*=256);)r+=this[t+s]*n;return r>=(n*=128)&&(r-=Math.pow(2,8*e)),r},c.prototype.readIntBE=function(t,e,i){t>>>=0,e>>>=0,i||X(t,e,this.length);let r=e,n=1,s=this[t+--r];for(;r>0&&(n*=256);)s+=this[t+--r]*n;return s>=(n*=128)&&(s-=Math.pow(2,8*e)),s},c.prototype.readInt8=function(t,e){return(t>>>=0,e||X(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},c.prototype.readInt16LE=function(t,e){t>>>=0,e||X(t,2,this.length);let i=this[t]|this[t+1]<<8;return 32768&i?0xffff0000|i:i},c.prototype.readInt16BE=function(t,e){t>>>=0,e||X(t,2,this.length);let i=this[t+1]|this[t]<<8;return 32768&i?0xffff0000|i:i},c.prototype.readInt32LE=function(t,e){return t>>>=0,e||X(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return t>>>=0,e||X(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readBigInt64LE=tc(function(t){tt(t>>>=0,"offset");let e=this[t],i=this[t+7];return(void 0===e||void 0===i)&&te(t,this.length-8),(BigInt(this[t+4]+256*this[t+5]+65536*this[t+6]+(i<<24))<<BigInt(32))+BigInt(e+256*this[++t]+65536*this[++t]+0x1000000*this[++t])}),c.prototype.readBigInt64BE=tc(function(t){tt(t>>>=0,"offset");let e=this[t],i=this[t+7];return(void 0===e||void 0===i)&&te(t,this.length-8),(BigInt((e<<24)+65536*this[++t]+256*this[++t]+this[++t])<<BigInt(32))+BigInt(0x1000000*this[++t]+65536*this[++t]+256*this[++t]+i)}),c.prototype.readFloatLE=function(t,e){return t>>>=0,e||X(t,4,this.length),a.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return t>>>=0,e||X(t,4,this.length),a.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return t>>>=0,e||X(t,8,this.length),a.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return t>>>=0,e||X(t,8,this.length),a.read(this,t,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(t,e,i,r){if(t=+t,e>>>=0,i>>>=0,!r){let r=Math.pow(2,8*i)-1;G(this,t,e,i,r,0)}let n=1,s=0;for(this[e]=255&t;++s<i&&(n*=256);)this[e+s]=t/n&255;return e+i},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(t,e,i,r){if(t=+t,e>>>=0,i>>>=0,!r){let r=Math.pow(2,8*i)-1;G(this,t,e,i,r,0)}let n=i-1,s=1;for(this[e+n]=255&t;--n>=0&&(s*=256);)this[e+n]=t/s&255;return e+i},c.prototype.writeUint8=c.prototype.writeUInt8=function(t,e,i){return t=+t,e>>>=0,i||G(this,t,e,1,255,0),this[e]=255&t,e+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(t,e,i){return t=+t,e>>>=0,i||G(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(t,e,i){return t=+t,e>>>=0,i||G(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(t,e,i){return t=+t,e>>>=0,i||G(this,t,e,4,0xffffffff,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(t,e,i){return t=+t,e>>>=0,i||G(this,t,e,4,0xffffffff,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeBigUInt64LE=tc(function(t,e=0){return V(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=tc(function(t,e=0){return W(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(t,e,i,r){if(t=+t,e>>>=0,!r){let r=Math.pow(2,8*i-1);G(this,t,e,i,r-1,-r)}let n=0,s=1,o=0;for(this[e]=255&t;++n<i&&(s*=256);)t<0&&0===o&&0!==this[e+n-1]&&(o=1),this[e+n]=(t/s>>0)-o&255;return e+i},c.prototype.writeIntBE=function(t,e,i,r){if(t=+t,e>>>=0,!r){let r=Math.pow(2,8*i-1);G(this,t,e,i,r-1,-r)}let n=i-1,s=1,o=0;for(this[e+n]=255&t;--n>=0&&(s*=256);)t<0&&0===o&&0!==this[e+n+1]&&(o=1),this[e+n]=(t/s>>0)-o&255;return e+i},c.prototype.writeInt8=function(t,e,i){return t=+t,e>>>=0,i||G(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,i){return t=+t,e>>>=0,i||G(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeInt16BE=function(t,e,i){return t=+t,e>>>=0,i||G(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeInt32LE=function(t,e,i){return t=+t,e>>>=0,i||G(this,t,e,4,0x7fffffff,-0x80000000),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},c.prototype.writeInt32BE=function(t,e,i){return t=+t,e>>>=0,i||G(this,t,e,4,0x7fffffff,-0x80000000),t<0&&(t=0xffffffff+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeBigInt64LE=tc(function(t,e=0){return V(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=tc(function(t,e=0){return W(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeFloatLE=function(t,e,i){return j(this,t,e,!0,i)},c.prototype.writeFloatBE=function(t,e,i){return j(this,t,e,!1,i)},c.prototype.writeDoubleLE=function(t,e,i){return q(this,t,e,!0,i)},c.prototype.writeDoubleBE=function(t,e,i){return q(this,t,e,!1,i)},c.prototype.copy=function(t,e,i,r){if(!c.isBuffer(t))throw TypeError("argument should be a Buffer");if(i||(i=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<i&&(r=i),r===i||0===t.length||0===this.length)return 0;if(e<0)throw RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-i&&(r=t.length-e+i);let n=r-i;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,i,r):Uint8Array.prototype.set.call(t,this.subarray(i,r),e),n},c.prototype.fill=function(t,e,i,r){let n;if("string"==typeof t){if("string"==typeof e?(r=e,e=0,i=this.length):"string"==typeof i&&(r=i,i=this.length),void 0!==r&&"string"!=typeof r)throw TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw TypeError("Unknown encoding: "+r);if(1===t.length){let e=t.charCodeAt(0);("utf8"===r&&e<128||"latin1"===r)&&(t=e)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<i)throw RangeError("Out of range index");if(i<=e)return this;if(e>>>=0,i=void 0===i?this.length:i>>>0,t||(t=0),"number"==typeof t)for(n=e;n<i;++n)this[n]=t;else{let s=c.isBuffer(t)?t:c.from(t,r),o=s.length;if(0===o)throw TypeError('The value "'+t+'" is invalid for argument "value"');for(n=0;n<i-e;++n)this[n+e]=s[n%o]}return this};let K={};function Z(t,e,i){K[t]=class extends i{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}function $(t){let e="",i=t.length,r="-"===t[0]?1:0;for(;i>=r+4;i-=3)e=`_${t.slice(i-3,i)}${e}`;return`${t.slice(0,i)}${e}`}function J(t,e,i){tt(e,"offset"),(void 0===t[e]||void 0===t[e+i])&&te(e,t.length-(i+1))}function Q(t,e,i,r,n,s){if(t>i||t<e){let r;let n="bigint"==typeof e?"n":"";throw r=s>3?0===e||e===BigInt(0)?`>= 0${n} and < 2${n} ** ${(s+1)*8}${n}`:`>= -(2${n} ** ${(s+1)*8-1}${n}) and < 2 ** ${(s+1)*8-1}${n}`:`>= ${e}${n} and <= ${i}${n}`,new K.ERR_OUT_OF_RANGE("value",r,t)}J(r,n,s)}function tt(t,e){if("number"!=typeof t)throw new K.ERR_INVALID_ARG_TYPE(e,"number",t)}function te(t,e,i){if(Math.floor(t)!==t)throw tt(t,i),new K.ERR_OUT_OF_RANGE(i||"offset","an integer",t);if(e<0)throw new K.ERR_BUFFER_OUT_OF_BOUNDS;throw new K.ERR_OUT_OF_RANGE(i||"offset",`>= ${i?1:0} and <= ${e}`,t)}Z("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Z("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError),Z("ERR_OUT_OF_RANGE",function(t,e,i){let r=`The value of "${t}" is out of range.`,n=i;return Number.isInteger(i)&&Math.abs(i)>0x100000000?n=$(String(i)):"bigint"==typeof i&&(n=String(i),(i>BigInt(2)**BigInt(32)||i<-(BigInt(2)**BigInt(32)))&&(n=$(n)),n+="n"),r+=` It must be ${e}. Received ${n}`},RangeError);let ti=/[^+/0-9A-Za-z-_]/g;function tr(t){if((t=(t=t.split("=")[0]).trim().replace(ti,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}function tn(t,e){let i;e=e||1/0;let r=t.length,n=null,s=[];for(let o=0;o<r;++o){if((i=t.charCodeAt(o))>55295&&i<57344){if(!n){if(i>56319||o+1===r){(e-=3)>-1&&s.push(239,191,189);continue}n=i;continue}if(i<56320){(e-=3)>-1&&s.push(239,191,189),n=i;continue}i=(n-55296<<10|i-56320)+65536}else n&&(e-=3)>-1&&s.push(239,191,189);if(n=null,i<128){if((e-=1)<0)break;s.push(i)}else if(i<2048){if((e-=2)<0)break;s.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;s.push(i>>12|224,i>>6&63|128,63&i|128)}else if(i<1114112){if((e-=4)<0)break;s.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}else throw Error("Invalid code point")}return s}function ts(t){let e=[];for(let i=0;i<t.length;++i)e.push(255&t.charCodeAt(i));return e}function to(t,e){let i,r;let n=[];for(let s=0;s<t.length&&!((e-=2)<0);++s)r=(i=t.charCodeAt(s))>>8,n.push(i%256),n.push(r);return n}function ta(t){return o.toByteArray(tr(t))}function th(t,e,i,r){let n;for(n=0;n<r&&!(n+i>=e.length)&&!(n>=t.length);++n)e[n+i]=t[n];return n}function tu(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function tl(t){return t!=t}let tf=function(){let t="0123456789abcdef",e=Array(256);for(let i=0;i<16;++i){let r=16*i;for(let n=0;n<16;++n)e[r+n]=t[i]+t[n]}return e}();function tc(t){return"undefined"==typeof BigInt?td:t}function td(){throw Error("BigInt not supported")}}),parcelRegister("kuxul",function(t,e){$parcel$export(t.exports,"toByteArray",()=>i,t=>i=t),$parcel$export(t.exports,"fromByteArray",()=>r,t=>r=t),i=c,r=v;for(var i,r,n=[],s=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=0,u=a.length;h<u;++h)n[h]=a[h],s[a.charCodeAt(h)]=h;function l(t){var e=t.length;if(e%4>0)throw Error("Invalid string. Length must be a multiple of 4");var i=t.indexOf("=");-1===i&&(i=e);var r=i===e?0:4-i%4;return[i,r]}function f(t,e,i){return(e+i)*3/4-i}function c(t){var e,i,r=l(t),n=r[0],a=r[1],h=new o(f(t,n,a)),u=0,c=a>0?n-4:n;for(i=0;i<c;i+=4)e=s[t.charCodeAt(i)]<<18|s[t.charCodeAt(i+1)]<<12|s[t.charCodeAt(i+2)]<<6|s[t.charCodeAt(i+3)],h[u++]=e>>16&255,h[u++]=e>>8&255,h[u++]=255&e;return 2===a&&(e=s[t.charCodeAt(i)]<<2|s[t.charCodeAt(i+1)]>>4,h[u++]=255&e),1===a&&(e=s[t.charCodeAt(i)]<<10|s[t.charCodeAt(i+1)]<<4|s[t.charCodeAt(i+2)]>>2,h[u++]=e>>8&255,h[u++]=255&e),h}function d(t){return n[t>>18&63]+n[t>>12&63]+n[t>>6&63]+n[63&t]}function p(t,e,i){for(var r=[],n=e;n<i;n+=3)r.push(d((t[n]<<16&0xff0000)+(t[n+1]<<8&65280)+(255&t[n+2])));return r.join("")}function v(t){for(var e,i=t.length,r=i%3,s=[],o=16383,a=0,h=i-r;a<h;a+=o)s.push(p(t,a,a+o>h?h:a+o));return 1===r?s.push(n[(e=t[i-1])>>2]+n[e<<4&63]+"=="):2===r&&s.push(n[(e=(t[i-2]<<8)+t[i-1])>>10]+n[e>>4&63]+n[e<<2&63]+"="),s.join("")}s["-".charCodeAt(0)]=62,s["_".charCodeAt(0)]=63}),parcelRegister("9NvM5",function(t,e){var i,r;$parcel$export(t.exports,"read",()=>i,t=>i=t),$parcel$export(t.exports,"write",()=>r,t=>r=t),i=function(t,e,i,r,n){var s,o,a=8*n-r-1,h=(1<<a)-1,u=h>>1,l=-7,f=i?n-1:0,c=i?-1:1,d=t[e+f];for(f+=c,s=d&(1<<-l)-1,d>>=-l,l+=a;l>0;s=256*s+t[e+f],f+=c,l-=8);for(o=s&(1<<-l)-1,s>>=-l,l+=r;l>0;o=256*o+t[e+f],f+=c,l-=8);if(0===s)s=1-u;else{if(s===h)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,r),s-=u}return(d?-1:1)*o*Math.pow(2,s-r)},r=function(t,e,i,r,n,s){var o,a,h,u=8*s-n-1,l=(1<<u)-1,f=l>>1,c=23===n?5960464477539062e-23:0,d=r?0:s-1,p=r?1:-1,v=e<0||0===e&&1/e<0?1:0;for(isNaN(e=Math.abs(e))||e===1/0?(a=isNaN(e)?1:0,o=l):(o=Math.floor(Math.log(e)/Math.LN2),e*(h=Math.pow(2,-o))<1&&(o--,h*=2),o+f>=1?e+=c/h:e+=c*Math.pow(2,1-f),e*h>=2&&(o++,h/=2),o+f>=l?(a=0,o=l):o+f>=1?(a=(e*h-1)*Math.pow(2,n),o+=f):(a=e*Math.pow(2,f-1)*Math.pow(2,n),o=0));n>=8;t[i+d]=255&a,d+=p,a/=256,n-=8);for(o=o<<n|a,u+=n;u>0;t[i+d]=255&o,d+=p,o/=256,u-=8);t[i+d-p]|=128*v}}),parcelRegister("kjyEk",function(t,e){}),parcelRegister("59kwG",function(t,e){var i=parcelRequire("hPtJY");function r(t){if("string"!=typeof t)throw TypeError("Path must be a string. Received "+JSON.stringify(t))}function n(t,e){for(var i,r="",n=0,s=-1,o=0,a=0;a<=t.length;++a){if(a<t.length)i=t.charCodeAt(a);else if(47===i)break;else i=47;if(47===i){if(s===a-1||1===o);else if(s!==a-1&&2===o){if(r.length<2||2!==n||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2)){if(r.length>2){var h=r.lastIndexOf("/");if(h!==r.length-1){-1===h?(r="",n=0):n=(r=r.slice(0,h)).length-1-r.lastIndexOf("/"),s=a,o=0;continue}}else if(2===r.length||1===r.length){r="",n=0,s=a,o=0;continue}}e&&(r.length>0?r+="/..":r="..",n=2)}else r.length>0?r+="/"+t.slice(s+1,a):r=t.slice(s+1,a),n=a-s-1;s=a,o=0}else 46===i&&-1!==o?++o:o=-1}return r}function s(t,e){var i=e.dir||e.root,r=e.base||(e.name||"")+(e.ext||"");return i?i===e.root?i+r:i+t+r:r}var o={resolve:function(){for(var t,e,s="",o=!1,a=arguments.length-1;a>=-1&&!o;a--)a>=0?e=arguments[a]:(void 0===t&&(t=i.cwd()),e=t),r(e),0!==e.length&&(s=e+"/"+s,o=47===e.charCodeAt(0));return(s=n(s,!o),o)?s.length>0?"/"+s:"/":s.length>0?s:"."},normalize:function(t){if(r(t),0===t.length)return".";var e=47===t.charCodeAt(0),i=47===t.charCodeAt(t.length-1);return(0!==(t=n(t,!e)).length||e||(t="."),t.length>0&&i&&(t+="/"),e)?"/"+t:t},isAbsolute:function(t){return r(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0==arguments.length)return".";for(var t,e=0;e<arguments.length;++e){var i=arguments[e];r(i),i.length>0&&(void 0===t?t=i:t+="/"+i)}return void 0===t?".":o.normalize(t)},relative:function(t,e){if(r(t),r(e),t===e||(t=o.resolve(t))===(e=o.resolve(e)))return"";for(var i=1;i<t.length&&47===t.charCodeAt(i);++i);for(var n=t.length,s=n-i,a=1;a<e.length&&47===e.charCodeAt(a);++a);for(var h=e.length-a,u=s<h?s:h,l=-1,f=0;f<=u;++f){if(f===u){if(h>u){if(47===e.charCodeAt(a+f))return e.slice(a+f+1);if(0===f)return e.slice(a+f)}else s>u&&(47===t.charCodeAt(i+f)?l=f:0===f&&(l=0));break}var c=t.charCodeAt(i+f);if(c!==e.charCodeAt(a+f))break;47===c&&(l=f)}var d="";for(f=i+l+1;f<=n;++f)(f===n||47===t.charCodeAt(f))&&(0===d.length?d+="..":d+="/..");return d.length>0?d+e.slice(a+l):(a+=l,47===e.charCodeAt(a)&&++a,e.slice(a))},_makeLong:function(t){return t},dirname:function(t){if(r(t),0===t.length)return".";for(var e=t.charCodeAt(0),i=47===e,n=-1,s=!0,o=t.length-1;o>=1;--o)if(47===(e=t.charCodeAt(o))){if(!s){n=o;break}}else s=!1;return -1===n?i?"/":".":i&&1===n?"//":t.slice(0,n)},basename:function(t,e){if(void 0!==e&&"string"!=typeof e)throw TypeError('"ext" argument must be a string');r(t);var i,n=0,s=-1,o=!0;if(void 0!==e&&e.length>0&&e.length<=t.length){if(e.length===t.length&&e===t)return"";var a=e.length-1,h=-1;for(i=t.length-1;i>=0;--i){var u=t.charCodeAt(i);if(47===u){if(!o){n=i+1;break}}else -1===h&&(o=!1,h=i+1),a>=0&&(u===e.charCodeAt(a)?-1==--a&&(s=i):(a=-1,s=h))}return n===s?s=h:-1===s&&(s=t.length),t.slice(n,s)}for(i=t.length-1;i>=0;--i)if(47===t.charCodeAt(i)){if(!o){n=i+1;break}}else -1===s&&(o=!1,s=i+1);return -1===s?"":t.slice(n,s)},extname:function(t){r(t);for(var e=-1,i=0,n=-1,s=!0,o=0,a=t.length-1;a>=0;--a){var h=t.charCodeAt(a);if(47===h){if(!s){i=a+1;break}continue}-1===n&&(s=!1,n=a+1),46===h?-1===e?e=a:1!==o&&(o=1):-1!==e&&(o=-1)}return -1===e||-1===n||0===o||1===o&&e===n-1&&e===i+1?"":t.slice(e,n)},format:function(t){if(null===t||"object"!=typeof t)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return s("/",t)},parse:function(t){r(t);var e,i={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return i;var n=t.charCodeAt(0),s=47===n;s?(i.root="/",e=1):e=0;for(var o=-1,a=0,h=-1,u=!0,l=t.length-1,f=0;l>=e;--l){if(47===(n=t.charCodeAt(l))){if(!u){a=l+1;break}continue}-1===h&&(u=!1,h=l+1),46===n?-1===o?o=l:1!==f&&(f=1):-1!==o&&(f=-1)}return -1===o||-1===h||0===f||1===f&&o===h-1&&o===a+1?-1!==h&&(0===a&&s?i.base=i.name=t.slice(1,h):i.base=i.name=t.slice(a,h)):(0===a&&s?(i.name=t.slice(1,o),i.base=t.slice(1,h)):(i.name=t.slice(a,o),i.base=t.slice(a,h)),i.ext=t.slice(o,h)),a>0?i.dir=t.slice(0,a-1):s&&(i.dir="/"),i},sep:"/",delimiter:":",win32:null,posix:null};o.posix=o,t.exports=o}),parcelRegister("ccDAZ",function(t,e){var i;$parcel$export(t.exports,"homedir",()=>i,t=>i=t),i=function(){return"/"}}),parcelRegister("5UUfm",function(t,e){$parcel$export(t.exports,"createDecipheriv",()=>x,t=>x=t),i=r=n=s=parcelRequire("hkN9y"),o=a=parcelRequire("1R2J7"),h=u=parcelRequire("1iL1D"),["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(Object.keys(parcelRequire("eFSIF")));var i,r,n,s,o,a,h,u,l,f,c,d,p,v,m,g,y,x,b,w,M,_,T,S,E,A,C,R,P,O,k,L,I,D,F,B=parcelRequire("lORrZ");l=B.pbkdf2,f=B.pbkdf2Sync;var N=parcelRequire("eyeBm");c=N.Cipher,d=N.createCipher,p=N.Cipheriv,v=N.createCipheriv,m=N.Decipher,g=N.createDecipher,y=N.Decipheriv,x=N.createDecipheriv,b=N.getCiphers,w=N.listCiphers;var U=parcelRequire("5NszM");M=U.DiffieHellmanGroup,_=U.createDiffieHellmanGroup,T=U.getDiffieHellman,S=U.createDiffieHellman,E=U.DiffieHellman;var z=parcelRequire("4zMFU");A=z.createSign,C=z.Sign,R=z.createVerify,P=z.Verify,O=parcelRequire("fd3gh");var Y=parcelRequire("fMM6j");k=Y.publicEncrypt,L=Y.privateEncrypt,I=Y.publicDecrypt,D=Y.privateDecrypt;var X=parcelRequire("c34vB");F=X.randomFill,X.randomFillSync}),parcelRegister("hkN9y",function(t,e){var i=parcelRequire("hPtJY"),r=65536,n=0xffffffff;function s(){throw Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}var o=parcelRequire("1U9GM").Buffer,a=$parcel$global.crypto||$parcel$global.msCrypto;function h(t,e){if(t>n)throw RangeError("requested too many random bytes");var s=o.allocUnsafe(t);if(t>0){if(t>r)for(var h=0;h<t;h+=r)a.getRandomValues(s.slice(h,h+r));else a.getRandomValues(s)}return"function"==typeof e?i.nextTick(function(){e(null,s)}):s}a&&a.getRandomValues?t.exports=h:t.exports=s}),parcelRegister("1U9GM",function(t,e){/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var i=parcelRequire("6ZWSX"),r=i.Buffer;function n(t,e){for(var i in t)e[i]=t[i]}function s(t,e,i){return r(t,e,i)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=i:(n(i,t.exports),t.exports.Buffer=s),s.prototype=Object.create(r.prototype),n(r,s),s.from=function(t,e,i){if("number"==typeof t)throw TypeError("Argument must not be a number");return r(t,e,i)},s.alloc=function(t,e,i){if("number"!=typeof t)throw TypeError("Argument must be a number");var n=r(t);return void 0!==e?"string"==typeof i?n.fill(e,i):n.fill(e):n.fill(0),n},s.allocUnsafe=function(t){if("number"!=typeof t)throw TypeError("Argument must be a number");return r(t)},s.allocUnsafeSlow=function(t){if("number"!=typeof t)throw TypeError("Argument must be a number");return i.SlowBuffer(t)}}),parcelRegister("1R2J7",function(t,e){var i=parcelRequire("dlqwk"),r=parcelRequire("loYLU"),n=parcelRequire("a8qBR"),s=parcelRequire("5Z1sR"),o=parcelRequire("26nOC");function a(t){o.call(this,"digest"),this._hash=t}i(a,o),a.prototype._update=function(t){this._hash.update(t)},a.prototype._final=function(){return this._hash.digest()},t.exports=function(t){return"md5"===(t=t.toLowerCase())?new r:"rmd160"===t||"ripemd160"===t?new n:new a(s(t))}}),parcelRegister("dlqwk",function(t,e){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}}}),parcelRegister("loYLU",function(t,e){var i=parcelRequire("dlqwk"),r=parcelRequire("eLdEM"),n=parcelRequire("1U9GM").Buffer,s=Array(16);function o(){r.call(this,64),this._a=0x67452301,this._b=0xefcdab89,this._c=0x98badcfe,this._d=0x10325476}function a(t,e){return t<<e|t>>>32-e}function h(t,e,i,r,n,s,o){return a(t+(e&i|~e&r)+n+s|0,o)+e|0}function u(t,e,i,r,n,s,o){return a(t+(e&r|i&~r)+n+s|0,o)+e|0}function l(t,e,i,r,n,s,o){return a(t+(e^i^r)+n+s|0,o)+e|0}function f(t,e,i,r,n,s,o){return a(t+(i^(e|~r))+n+s|0,o)+e|0}i(o,r),o.prototype._update=function(){for(var t=s,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var i=this._a,r=this._b,n=this._c,o=this._d;i=h(i,r,n,o,t[0],0xd76aa478,7),o=h(o,i,r,n,t[1],0xe8c7b756,12),n=h(n,o,i,r,t[2],0x242070db,17),r=h(r,n,o,i,t[3],0xc1bdceee,22),i=h(i,r,n,o,t[4],0xf57c0faf,7),o=h(o,i,r,n,t[5],0x4787c62a,12),n=h(n,o,i,r,t[6],0xa8304613,17),r=h(r,n,o,i,t[7],0xfd469501,22),i=h(i,r,n,o,t[8],0x698098d8,7),o=h(o,i,r,n,t[9],0x8b44f7af,12),n=h(n,o,i,r,t[10],0xffff5bb1,17),r=h(r,n,o,i,t[11],0x895cd7be,22),i=h(i,r,n,o,t[12],0x6b901122,7),o=h(o,i,r,n,t[13],0xfd987193,12),n=h(n,o,i,r,t[14],0xa679438e,17),r=h(r,n,o,i,t[15],0x49b40821,22),i=u(i,r,n,o,t[1],0xf61e2562,5),o=u(o,i,r,n,t[6],0xc040b340,9),n=u(n,o,i,r,t[11],0x265e5a51,14),r=u(r,n,o,i,t[0],0xe9b6c7aa,20),i=u(i,r,n,o,t[5],0xd62f105d,5),o=u(o,i,r,n,t[10],0x2441453,9),n=u(n,o,i,r,t[15],0xd8a1e681,14),r=u(r,n,o,i,t[4],0xe7d3fbc8,20),i=u(i,r,n,o,t[9],0x21e1cde6,5),o=u(o,i,r,n,t[14],0xc33707d6,9),n=u(n,o,i,r,t[3],0xf4d50d87,14),r=u(r,n,o,i,t[8],0x455a14ed,20),i=u(i,r,n,o,t[13],0xa9e3e905,5),o=u(o,i,r,n,t[2],0xfcefa3f8,9),n=u(n,o,i,r,t[7],0x676f02d9,14),r=u(r,n,o,i,t[12],0x8d2a4c8a,20),i=l(i,r,n,o,t[5],0xfffa3942,4),o=l(o,i,r,n,t[8],0x8771f681,11),n=l(n,o,i,r,t[11],0x6d9d6122,16),r=l(r,n,o,i,t[14],0xfde5380c,23),i=l(i,r,n,o,t[1],0xa4beea44,4),o=l(o,i,r,n,t[4],0x4bdecfa9,11),n=l(n,o,i,r,t[7],0xf6bb4b60,16),r=l(r,n,o,i,t[10],0xbebfbc70,23),i=l(i,r,n,o,t[13],0x289b7ec6,4),o=l(o,i,r,n,t[0],0xeaa127fa,11),n=l(n,o,i,r,t[3],0xd4ef3085,16),r=l(r,n,o,i,t[6],0x4881d05,23),i=l(i,r,n,o,t[9],0xd9d4d039,4),o=l(o,i,r,n,t[12],0xe6db99e5,11),n=l(n,o,i,r,t[15],0x1fa27cf8,16),r=l(r,n,o,i,t[2],0xc4ac5665,23),i=f(i,r,n,o,t[0],0xf4292244,6),o=f(o,i,r,n,t[7],0x432aff97,10),n=f(n,o,i,r,t[14],0xab9423a7,15),r=f(r,n,o,i,t[5],0xfc93a039,21),i=f(i,r,n,o,t[12],0x655b59c3,6),o=f(o,i,r,n,t[3],0x8f0ccc92,10),n=f(n,o,i,r,t[10],0xffeff47d,15),r=f(r,n,o,i,t[1],0x85845dd1,21),i=f(i,r,n,o,t[8],0x6fa87e4f,6),o=f(o,i,r,n,t[15],0xfe2ce6e0,10),n=f(n,o,i,r,t[6],0xa3014314,15),r=f(r,n,o,i,t[13],0x4e0811a1,21),i=f(i,r,n,o,t[4],0xf7537e82,6),o=f(o,i,r,n,t[11],0xbd3af235,10),n=f(n,o,i,r,t[2],0x2ad7d2bb,15),r=f(r,n,o,i,t[9],0xeb86d391,21),this._a=this._a+i|0,this._b=this._b+r|0,this._c=this._c+n|0,this._d=this._d+o|0},o.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=n.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t},t.exports=o}),parcelRegister("eLdEM",function(t,e){var i=parcelRequire("1U9GM").Buffer,r=parcelRequire("ioRHp").Transform;function n(t){r.call(this),this._block=i.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}parcelRequire("dlqwk")(n,r),n.prototype._transform=function(t,e,i){var r=null;try{this.update(t,e)}catch(t){r=t}i(r)},n.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(t){e=t}t(e)};var s="undefined"!=typeof Uint8Array,o="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&ArrayBuffer.isView&&(i.prototype instanceof Uint8Array||i.TYPED_ARRAY_SUPPORT);function a(t,e){if(t instanceof i)return t;if("string"==typeof t)return i.from(t,e);if(o&&ArrayBuffer.isView(t)){if(0===t.byteLength)return i.alloc(0);var r=i.from(t.buffer,t.byteOffset,t.byteLength);if(r.byteLength===t.byteLength)return r}if(s&&t instanceof Uint8Array||i.isBuffer(t)&&t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t))return i.from(t);throw TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}n.prototype.update=function(t,e){if(this._finalized)throw Error("Digest already called");t=a(t,e);for(var i=this._block,r=0;this._blockOffset+t.length-r>=this._blockSize;){for(var n=this._blockOffset;n<this._blockSize;)i[n++]=t[r++];this._update(),this._blockOffset=0}for(;r<t.length;)i[this._blockOffset++]=t[r++];for(var s=0,o=8*t.length;o>0;++s)this._length[s]+=o,(o=this._length[s]/0x100000000|0)>0&&(this._length[s]-=0x100000000*o);return this},n.prototype._update=function(){throw Error("_update is not implemented")},n.prototype.digest=function(t){if(this._finalized)throw Error("Digest already called");this._finalized=!0;var e=this._digest();void 0!==t&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var i=0;i<4;++i)this._length[i]=0;return e},n.prototype._digest=function(){throw Error("_digest is not implemented")},t.exports=n}),parcelRegister("ioRHp",function(t,e){t.exports=r;var i=parcelRequire("7etJZ").EventEmitter;function r(){i.call(this)}parcelRequire("dlqwk")(r,i),r.Readable=parcelRequire("aBufs"),r.Writable=parcelRequire("6XbcT"),r.Duplex=parcelRequire("fFuzr"),r.Transform=parcelRequire("k3Gr9"),r.PassThrough=parcelRequire("6G2fH"),r.finished=parcelRequire("hzqCm"),r.pipeline=parcelRequire("coyuH"),r.Stream=r,r.prototype.pipe=function(t,e){var r=this;function n(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function s(){r.readable&&r.resume&&r.resume()}r.on("data",n),t.on("drain",s),t._isStdio||e&&!1===e.end||(r.on("end",a),r.on("close",h));var o=!1;function a(){o||(o=!0,t.end())}function h(){o||(o=!0,"function"==typeof t.destroy&&t.destroy())}function u(t){if(l(),0===i.listenerCount(this,"error"))throw t}function l(){r.removeListener("data",n),t.removeListener("drain",s),r.removeListener("end",a),r.removeListener("close",h),r.removeListener("error",u),t.removeListener("error",u),r.removeListener("end",l),r.removeListener("close",l),t.removeListener("close",l)}return r.on("error",u),t.on("error",u),r.on("end",l),r.on("close",l),t.on("close",l),t.emit("pipe",r),t}}),parcelRegister("7etJZ",function(t,e){var i,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(t,e,i){return Function.prototype.apply.call(t,e,i)};function s(t){console&&console.warn&&console.warn(t)}i=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var o=Number.isNaN||function(t){return t!=t};function a(){a.init.call(this)}t.exports=a,t.exports.once=x,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var h=10;function u(t){if("function"!=typeof t)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function l(t){return void 0===t._maxListeners?a.defaultMaxListeners:t._maxListeners}function f(t,e,i,r){if(u(i),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,i.listener?i.listener:i),o=t._events),a=o[e]),void 0===a)a=o[e]=i,++t._eventsCount;else if("function"==typeof a?a=o[e]=r?[i,a]:[a,i]:r?a.unshift(i):a.push(i),(n=l(t))>0&&a.length>n&&!a.warned){a.warned=!0;var n,o,a,h=E