1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8962],{808:function(e,t){"use strict";function r(e){if(Array.isArray(e)){let t=[],n=0;for(let i=0;i<e.length;i++){let o=r(e[i]);t.push(o),n+=o.length}return d(o(n,192),...t)}let t=y(e);return 1===t.length&&t[0]<128?t:d(o(t.length,128),t)}function n(e,t,r){if(r>e.length)throw Error("invalid RLP (safeSlice): end slice of Uint8Array out-of-bounds");return e.slice(t,r)}function i(e){if(0===e[0])throw Error("invalid RLP: extra zeros");return l(f(e))}function o(e,t){if(e<56)return Uint8Array.from([e+t]);let r=p(e),n=p(t+55+r.length/2);return Uint8Array.from(c(n+r))}function s(e,t=!1){if(null==e||0===e.length)return Uint8Array.from([]);let r=a(y(e));if(t)return r;if(0!==r.remainder.length)throw Error("invalid RLP: remainder must be zero");return r.data}function a(e){let t,r,o,s,u;let f=[],l=e[0];if(l<=127)return{data:e.slice(0,1),remainder:e.slice(1)};if(l<=183){if(t=l-127,o=128===l?Uint8Array.from([]):n(e,1,t),2===t&&o[0]<128)throw Error("invalid RLP encoding: invalid prefix, single byte < 0x80 are not prefixed");return{data:o,remainder:e.slice(t)}}if(l<=191){if(r=l-182,e.length-1<r)throw Error("invalid RLP: not enough bytes for string length");if((t=i(n(e,1,r)))<=55)throw Error("invalid RLP: expected string length to be greater than 55");return{data:o=n(e,r,t+r),remainder:e.slice(t+r)}}if(l<=247){for(s=n(e,1,t=l-191);s.length;)u=a(s),f.push(u.data),s=u.remainder;return{data:f,remainder:e.slice(t)}}{if((t=i(n(e,1,r=l-246)))<56)throw Error("invalid RLP: encoded list too short");let o=r+t;if(o>e.length)throw Error("invalid RLP: total length is larger than the data");for(s=n(e,r,o);s.length;)u=a(s),f.push(u.data),s=u.remainder;return{data:f,remainder:e.slice(o)}}}Object.defineProperty(t,"__esModule",{value:!0}),t.RLP=t.utils=t.decode=t.encode=void 0,t.encode=r,t.decode=s;let u=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function f(e){let t="";for(let r=0;r<e.length;r++)t+=u[e[r]];return t}function l(e){let t=Number.parseInt(e,16);if(Number.isNaN(t))throw Error("Invalid byte sequence");return t}function c(e){if("string"!=typeof e)throw TypeError("hexToBytes: expected string, got "+typeof e);if(e.length%2)throw Error("hexToBytes: received invalid unpadded hex");let t=new Uint8Array(e.length/2);for(let r=0;r<t.length;r++){let n=2*r;t[r]=l(e.slice(n,n+2))}return t}function d(...e){if(1===e.length)return e[0];let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0));for(let r=0,n=0;r<e.length;r++){let i=e[r];t.set(i,n),n+=i.length}return t}function h(e){return new TextEncoder().encode(e)}function p(e){if(e<0)throw Error("Invalid integer as argument, must be unsigned!");let t=e.toString(16);return t.length%2?`0${t}`:t}function b(e){return e.length%2?`0${e}`:e}function g(e){return e.length>=2&&"0"===e[0]&&"x"===e[1]}function m(e){return"string"!=typeof e?e:g(e)?e.slice(2):e}function y(e){if(e instanceof Uint8Array)return e;if("string"==typeof e)return g(e)?c(b(m(e))):h(e);if("number"==typeof e||"bigint"==typeof e)return e?c(p(e)):Uint8Array.from([]);if(null==e)return Uint8Array.from([]);throw Error("toBytes: received unsupported type "+typeof e)}t.utils={bytesToHex:f,concatBytes:d,hexToBytes:c,utf8ToBytes:h},t.RLP={encode:r,decode:s}},80202:function(e,t,r){"use strict";var n=r(9109).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.accountBodyToRLP=t.accountBodyToSlim=t.accountBodyFromSlim=t.isZeroAddress=t.zeroAddress=t.importPublic=t.privateToAddress=t.privateToPublic=t.publicToAddress=t.pubToAddress=t.isValidPublic=t.isValidPrivate=t.generateAddress2=t.generateAddress=t.isValidChecksumAddress=t.toChecksumAddress=t.isValidAddress=t.Account=void 0;let i=r(808),o=r(41032),s=r(66911),a=r(27176),u=r(68511),f=r(23838),l=r(32914),c=r(36130),d=BigInt(0);class h{constructor(e=d,t=d,r=f.KECCAK256_RLP,n=f.KECCAK256_NULL){this.nonce=e,this.balance=t,this.storageRoot=r,this.codeHash=n,this._validate()}static fromAccountData(e){let{nonce:t,balance:r,storageRoot:n,codeHash:i}=e;return new h(void 0!==t?(0,u.bufferToBigInt)((0,u.toBuffer)(t)):void 0,void 0!==r?(0,u.bufferToBigInt)((0,u.toBuffer)(r)):void 0,void 0!==n?(0,u.toBuffer)(n):void 0,void 0!==i?(0,u.toBuffer)(i):void 0)}static fromRlpSerializedAccount(e){let t=(0,u.arrToBufArr)(i.RLP.decode(Uint8Array.from(e)));if(!Array.isArray(t))throw Error("Invalid serialized account input. Must be array");return this.fromValuesArray(t)}static fromValuesArray(e){let[t,r,n,i]=e;return new h((0,u.bufferToBigInt)(t),(0,u.bufferToBigInt)(r),n,i)}_validate(){if(this.nonce<d)throw Error("nonce must be greater than zero");if(this.balance<d)throw Error("balance must be greater than zero");if(32!==this.storageRoot.length)throw Error("storageRoot must have a length of 32");if(32!==this.codeHash.length)throw Error("codeHash must have a length of 32")}raw(){return[(0,u.bigIntToUnpaddedBuffer)(this.nonce),(0,u.bigIntToUnpaddedBuffer)(this.balance),this.storageRoot,this.co
1deHash]}serialize(){return n.from(i.RLP.encode((0,u.bufArrToArr)(this.raw())))}isContract(){return!this.codeHash.equals(f.KECCAK256_NULL)}isEmpty(){return this.balance===d&&this.nonce===d&&this.codeHash.equals(f.KECCAK256_NULL)}}t.Account=h;let p=function(e){try{(0,l.assertIsString)(e)}catch(e){return!1}return/^0x[0-9a-fA-F]{40}$/.test(e)};t.isValidAddress=p;let b=function(e,t){(0,l.assertIsHexString)(e);let r=(0,c.stripHexPrefix)(e).toLowerCase(),i="";void 0!==t&&(i=(0,u.bufferToBigInt)((0,u.toBuffer)(t)).toString()+"0x");let s=n.from(i+r,"utf8"),f=(0,a.bytesToHex)((0,o.keccak256)(s)),d="0x";for(let e=0;e<r.length;e++)parseInt(f[e],16)>=8?d+=r[e].toUpperCase():d+=r[e];return d};t.toChecksumAddress=b;let g=function(e,r){return(0,t.isValidAddress)(e)&&(0,t.toChecksumAddress)(e,r)===e};t.isValidChecksumAddress=g;let m=function(e,t){return((0,l.assertIsBuffer)(e),(0,l.assertIsBuffer)(t),(0,u.bufferToBigInt)(t)===BigInt(0))?n.from((0,o.keccak256)(i.RLP.encode((0,u.bufArrToArr)([e,null])))).slice(-20):n.from((0,o.keccak256)(i.RLP.encode((0,u.bufArrToArr)([e,t])))).slice(-20)};t.generateAddress=m;let y=function(e,t,r){if((0,l.assertIsBuffer)(e),(0,l.assertIsBuffer)(t),(0,l.assertIsBuffer)(r),20!==e.length)throw Error("Expected from to be of length 20");if(32!==t.length)throw Error("Expected salt to be of length 32");let i=(0,o.keccak256)(n.concat([n.from("ff","hex"),e,t,(0,o.keccak256)(r)]));return(0,u.toBuffer)(i).slice(-20)};t.generateAddress2=y;let v=function(e){return s.secp256k1.utils.isValidPrivateKey(e)};t.isValidPrivate=v;let w=function(e,t=!1){if((0,l.assertIsBuffer)(e),64===e.length)try{return s.secp256k1.ProjectivePoint.fromHex(n.concat([n.from([4]),e])),!0}catch(e){return!1}if(!t)return!1;try{return s.secp256k1.ProjectivePoint.fromHex(e),!0}catch(e){return!1}};t.isValidPublic=w;let _=function(e,t=!1){if((0,l.assertIsBuffer)(e),t&&64!==e.length&&(e=n.from(s.secp256k1.ProjectivePoint.fromHex(e).toRawBytes(!1).slice(1))),64!==e.length)throw Error("Expected pubKey to be of length 64");return n.from((0,o.keccak256)(e)).slice(-20)};t.pubToAddress=_,t.publicToAddress=t.pubToAddress;let S=function(e){return(0,l.assertIsBuffer)(e),n.from(s.secp256k1.ProjectivePoint.fromPrivateKey(e).toRawBytes(!1).slice(1))};t.privateToPublic=S;let E=function(e){return(0,t.publicToAddress)((0,t.privateToPublic)(e))};t.privateToAddress=E;let A=function(e){return(0,l.assertIsBuffer)(e),64!==e.length&&(e=n.from(s.secp256k1.ProjectivePoint.fromHex(e).toRawBytes(!1).slice(1))),e};t.importPublic=A;let R=function(){let e=20,t=(0,u.zeros)(e);return(0,u.bufferToHex)(t)};t.zeroAddress=R;let x=function(e){try{(0,l.assertIsString)(e)}catch(e){return!1}return(0,t.zeroAddress)()===e};function M(e){let[t,r,n,i]=e;return[t,r,0===(0,u.arrToBufArr)(n).length?f.KECCAK256_RLP:n,0===(0,u.arrToBufArr)(i).length?f.KECCAK256_NULL:i]}t.isZeroAddress=x,t.accountBodyFromSlim=M;let k=new Uint8Array(0);function O(e){let[t,r,n,i]=e;return[t,r,(0,u.arrToBufArr)(n).equals(f.KECCAK256_RLP)?k:n,(0,u.arrToBufArr)(i).equals(f.KECCAK256_NULL)?k:i]}function T(e,t=!0){let r=t?M(e):e;return(0,u.arrToBufArr)(i.RLP.encode(r))}t.accountBodyToSlim=O,t.accountBodyToRLP=T},4316:function(e,t,r){"use strict";var n=r(9109).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.Address=void 0;let i=r(80202),o=r(68511);class s{constructor(e){if(20!==e.length)throw Error("Invalid address length");this.buf=e}static zero(){return new s((0,o.zeros)(20))}static fromString(e){if(!(0,i.isValidAddress)(e))throw Error("Invalid address");return new s((0,o.toBuffer)(e))}static fromPublicKey(e){if(!n.isBuffer(e))throw Error("Public key should be Buffer");return new s((0,i.pubToAddress)(e))}static fromPrivateKey(e){if(!n.isBuffer(e))throw Error("Private key should be Buffer");return new s((0,i.privateToAddress)(e))}static generate(e,t){if("bigint"!=typeof t)throw Error("Expected nonce to be a bigint");return new s((0,i.generateAddress)(e.buf,(0,o.bigIntToBuffer)(t)))}static generate2(e,t,r){if(!n.isBuffer(t))throw Error("Expected salt to be a Buffer");if(!n.isBuffer(r))throw Error("Expected initCode to be a Buffer");return new s((0,i.generateAddress2)(e.buf,t,r))}equals(e){return this.buf.equals(e.buf)}isZero(){return this.equals(s.zero())}isPrecompileOrSystemAddress(){let e=(0,o.bufferToBigInt)(this.buf),t=BigInt(0),r=BigInt("0xffff");return e>=t&&e<=r}toString(){return"0x"+this.buf.toString("hex")}toBuffer(){return n.from(this.buf)}}t.Address=s},2208:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncEventEmitter=void 0;let n=r(68885);async function i(e,t,r){let n;for await(let i of t)try{i.length<2?i.call(e,r):await new Promise((t,n)=>{i.call(e,r,e=>{e?n(e):t()})})}catch(e){n=e}if(n)throw n}class o extends n.EventEmitter{emit(e,...t){let[r,n]=t,o=this,s=o._events[e]??[];return void 0===n&&"function"==typeof r&&(n=r,r=void 0),("newListener"===e||"removeListener"===e)&&(r={event:r,fn:n},n=void 0),i(o,(s=Array.isArray(s)?s:[s]).slice(),r).then(n).catch(n),o.listenerCount(e)>0}once(e,t){let r;let n=this;if("function"!=typeof t)throw TypeError("listener must be a function");return r=t.length>=2?function(i,o){n.removeListener(e,r),t(i,o)}:function(i){n.removeListener(e,r),t(i,r)},n.on(e,r),n}first(e,t){let r=this._events[e]??[];if("function"!=typeof t)throw TypeError("listener must be a function");return Array.isArray(r)||(this._events[e]=r=[r]),r.unshift(t),this}before(e,t,r){return this.beforeOrAfter(e,t,r)}after(e,t,r){return this.beforeOrAfter(e,t,r,"after")}beforeOrAfter(e,t,r,n){let i,o,s=this._events[e]??[],a="after"===n?1:0;if("function"!=typeof r)throw TypeError("listener must be a function");if("function"!=typeof t)throw TypeError("target must be a function");for(Array.isArray(s)||(this._events[e]=s=[s]),o=s.length,i=s.length;i--;)if(s[i]===t){o=i+a;break}return s.splice(o,0,r),this}on(e,t){return super.on(e,t)}addListener(e,t){return super.addListener(e,t)}prependListener(e,t){return super.prependListener(e,t)}prependOnceListener(e,t){return super.prependOnceListener(e,t)}removeAllListeners(e){return super.removeAllListeners(e)}removeListener(e,t){return super.removeListener(e,t)}eventNames(){return super.eventNames()}listeners(e){return super.listeners(e)}listenerCount(e){return super.listenerCount(e)}getMaxListeners(){return super.getMaxListeners()}setMaxListeners(e){return super.setMaxListeners(e)}}t.AsyncEventEmitter=o},68511:function(e,t,r){"use strict";var n=r(9109).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.intToUnpaddedBuffer=t.bigIntToUnpaddedBuffer=t.bigIntToHex=t.bufArrToArr=t.arrToBufArr=t.validateNoLeadingZeroes=t.baToJSON=t.toUtf8=t.short=t.addHexPrefix=t.toUnsigned=t.fromSigned=t.bufferToInt=t.bigIntToBuffer=t.bufferToBigInt=t.bufferToHex=t.toBuffer=t.unpadHexString=t.unpadArray=t.unpadBuffer=t.setLengthRight=t.setLengthLeft=t.zeros=t.intToBuffer=t.intToHex=void 0;let i=r(32914),o=r(36130),s=function(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`Received an invalid integer type: ${e}`);return`0x${e.toString(16)}`};t.intToHex=s;let a=function(e){let r=(0,t.intToHex)(e);return n.from((0,o.padToEven)(r.slice(2)),"hex")};t.intToBuffer=a;let u=function(e){return n.allocUnsafe(e).fill(0)};t.zeros=u;let f=function(e,r,n){let i=(0,t.zeros)(r);return n?e.length<r?(e.copy(i),i):e.slice(0,r):e.length<r?(e.copy(i,r-e.length),i):e.slice(-r)},l=function(e,t){return(0,i.assertIsBuffer)(e),f(e,t,!1)};t.setLengthLeft=l;let c=function(e,t){return(0,i.assertIsBuffer)(e),f(e,t,!0)};t.setLengthRight=c;let d=function(e){let t=e[0];for(;e.length>0&&"0"===t.toString();)t=(e=e.slice(1))[0];return e},h=function(e){return(0,i.assertIsBuffer)(e),d(e)};t.unpadBuffer=h;let p=function(e){return(0,i.assertIsArray)(e),d(e)};t.unpadArray=p;let b=function(e){return(0,i.assertIsHexString)(e),"0x"+d(e=(0,o.stripHexPrefix)(e))};t.unpadHexString=b;let g=function(e){if(null==e)return n.allocUnsafe(0);if(n.isBuffer(e)||Array.isArray(e)||e instanceof Uint8Array)return n.from(e);if("string"==typeof e){if(!(0,o.isHexString)(e))throw Error(`Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: ${e}`);return n.from((0,o.padToEven)((0,o.stripHexPrefix)(e)),"hex")}if("number"==typeof e)return(0,t.intToBuffer)(e);if("bigint"==typeof e){if(e<BigInt(0))throw Error(`Cannot convert negative bigint to buffer. Given: ${e}`);let t=e.toString(16);return t.length%2&&(t="0"+t),n.from(t,"hex")}if(e.toArray)return n.from(e.toArray());if(e.toBuffer)return n.from(e.toBuffer());throw Error("invalid type")};t.toBuffer=g;let m=function(e){return"0x"+(e=(0,t.toBuffer)(e)).toString("hex")};function y(e){let r=(0,t.bufferToHex)(e);return"0x"===r?BigInt(0):BigInt(r)}function v(e){return(0,t.toBuffer)("0x"+e.toString(16))}t.bufferToHex=m,t.bufferToBigInt=y,t.bigIntToBuffer=v;let w=function(e){let t=Number(y(e));if(!Number.isSafeInteger(t))throw Error("Number exceeds 53 bits");return t};t.bufferToInt=w;let _=function(e){return BigInt.asIntN(256,y(e))};t.fromSigned=_;let S=function(e){return v(BigInt.asUintN(256,e))};t.toUnsigned=S;let E=function(e){return"string"!=typeof e?e:(0,o.isHexPrefixed)(e)?e:"0x"+e};function A(e,t=50){let r=n.isBuffer(e)?e.toString("hex"):e;return r.length<=t?r:r.slice(0,t)+"â¦"}t.addHexPrefix=E,t.short=A;let R=function(e){let t=/^(00)+|(00)+$/g;if((e=(0,o.stripHexPrefix)(e)).length%2!=0)throw Error("Invalid non-even hex string input for toUtf8() provided");return n.from(e.replace(t,""),"hex").toString("utf8")};t.toUtf8=R;let x=function(e){if(n.isBuffer(e))return`0x${e.toString("hex")}`;if(e instanceof Array){let r=[];for(let n=0;n<e.length;n++)r.push((0,t.baToJSON)(e[n]));return r}};t.baToJSON=x;let M=function(e){for(let[t,r]of Object.entries(e))if(void 0!==r&&r.length>0&&0===r[0])throw Error(`${t} cannot have leading zeroes, received: ${r.toString("hex")}`)};function k(e){return Array.isArray(e)?e.map(e=>k(e)):n.from(e)}function O(e){return Array.isArray(e)?e.map(e=>O(e)):Uint8Array.from(e??[])}t.validateNoLeadingZeroes=M,t.arrToBufArr=k,t.bufArrToArr=O;let T=e=>"0x"+e.toString(16);function I(e){return(0,t.unpadBuffer)(v(e))}function P(e){return(0,t.unpadBuffer)((0,t.intToBuffer)(e))}t.bigIntToHex=T,t.bigIntToUnpaddedBuffer=I,t.intToUnpaddedBuffer=P},23838:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.MAX_WITHDRAWALS_PER_PAYLOAD=t.RLP_EMPTY_STRING=t.KECCAK256_RLP=t.KECCAK256_RLP_S=t.KECCAK256_RLP_ARRAY=t.KECCAK256_RLP_ARRAY_S=t.KECCAK256_NULL=t.KECCAK256_NULL_S=t.TWO_POW256=t.SECP256K1_ORDER_DIV_2=t.SECP256K1_ORDER=t.MAX_INTEGER_BIGINT=t.MAX_INTEGER=t.MAX_UINT64=void 0;let n=r(9109),i=r(66911);t.MAX_UINT64=BigInt("0xffffffffffffffff"),t.MAX_INTEGER=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),t.MAX_INTEGER_BIGINT=BigInt("115792089237316195423570985008687907853269984665640564039457584007913129639935"),t.SECP256K1_ORDER=i.secp256k1.CURVE.n,t.SECP256K1_ORDER_DIV_2=i.secp256k1.CURVE.n/BigInt(2),t.TWO_POW256=BigInt("0x10000000000000000000000000000000000000000000000000000000000000000"),t.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",t.KECCAK256_NULL=n.Buffer.from(t.KECCAK256_NULL_S,"hex"),t.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",t.KECCAK256_RLP_ARRAY=n.Buffer.from(t.KECCAK256_RLP_ARRAY_S,"hex"),t.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",t.KECCAK256_RLP=n.Buffer.from(t.KECCAK256_RLP_S,"hex"),t.RLP_EMPTY_STRING=n.Buffer.from([128]),t.MAX_WITHDRAWALS_PER_PAYLOAD=16},52657:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactBytesToNibbles=t.bytesToNibbles=t.nibblesToCompactBytes=t.nibblesToBytes=t.hasTerminator=void 0;let r=e=>e.length>0&&16===e[e.length-1];t.hasTerminator=r;let n=(e,t)=>{for(let r=0,n=0;n<e.length;r+=1,n+=2)t[r]=e[n]<<4|e[n+1]};t.nibblesToBytes=n;let i=e=>{let r=0;(0,t.hasTerminator)(e)&&(r=1,e=e.subarray(0,e.length-1));let n=new Uint8Array(e.length/2+1);return n[0]=r<<5,(1&e.length)==1&&(n[0]|=16,n[0]|=e[0],e=e.subarray(1)),(0,t.nibblesToBytes)(e,n.subarray(1)),n};t.nibblesToCompactBytes=i;let o=e=>{let t=2*e.length+1,r=new Uint8Array(t);for(let t=0;t<e.length;t++){let n=e[t];r[2*t]=n/16,r[2*t+1]=n%16}return r[t-1]=16,r};t.bytesToNibbles=o;let s=e=>{if(0===e.length)return e;let r=(0,t.bytesToNibbles)(e);r[0]<2&&(r=r.subarray(0,r.length-1));let n=2-(1&r[0]);return r.subarray(n)};t.compactBytesToNibbles=s},32914:function(e,t,r){"use strict";var n=r(9109).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.assertIsString=t.assertIsArray=t.assertIsBuffer=t.assertIsHexString=void 0;let i=r(36130),o=function(e){if(!(0,i.isHexString)(e))throw Error(`This method only supports 0x-prefixed hex strings but input was: ${e}`)};t.assertIsHexString=o;let s=function(e){if(!n.isBuffer(e))throw Error(`This method only supports Buffer but input was: ${e}`)};t.assertIsBuffer=s;let a=function(e){if(!Array.isArray(e))throw Error(`This method only supports number arrays but input was: ${e}`)};t.assertIsArray=a;let u=function(e){if("string"!=typeof e)throw Error(`This method only supports strings but input was: ${e}`)};t.assertIsString=u},79082:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.toAscii=t.stripHexPrefix=t.padToEven=t.isHexString=t.isHexPrefixed=t.getKeys=t.getBinarySize=t.fromUtf8=t.fromAscii=t.arrayContainsArray=void 0,i(r(23838),t),i(r(68746),t),i(r(80202),t),i(r(4316),t),i(r(27325),t),i(r(34072),t),i(r(68511),t),i(r(38217),t),i(r(52657),t),i(r(2208),t);var o=r(36130);Object.defineProperty(t,"arrayContainsArray",{enumerable:!0,get:function(){return o.arrayContainsArray}}),Object.defineProperty(t,"fromAscii",{enumerable:!0,get:function(){return o.fromAscii}}),Object.defineProperty(t,"fromUtf8",{enumerable:!0,get:function(){return o.fromUtf8}}),Object.defineProperty(t,"getBinarySize",{enumerable:!0,get:function(){return o.getBinarySize}}),Object.defineProperty(t,"getKeys",{enumerable:!0,get:function(){return o.getKeys}}),Object.defineProperty(t,"isHexPrefixed",{enumerable:!0,get:function(){return o.isHexPrefixed}}),Object.defineProperty(t,"isHexString",{enumerable:!0,get:function(){return o.isHexString}}),Object.defineProperty(t,"padToEven",{enumerable:!0,get:function(){return o.padToEven}}),Object.defineProperty(t,"stripHexPrefix",{enumerable:!0,get:function(){return o.stripHexPrefix}}),Object.defineProperty(t,"toAscii",{enumerable:!0,get:function(){return o.toAscii}}),i(r(25169),t),i(r(51315),t)},36130:function(e,t,r){"use strict";var n=r(9109).Buffer;function i(e){if("string"!=typeof e)throw Error(`[isHexPrefixed] input must be type 'string', received type ${typeof e}`);return"0"===e[0]&&"x"===e[1]}
1Object.defineProperty(t,"__esModule",{value:!0}),t.isHexString=t.getKeys=t.fromAscii=t.fromUtf8=t.toAscii=t.arrayContainsArray=t.getBinarySize=t.padToEven=t.stripHexPrefix=t.isHexPrefixed=void 0,t.isHexPrefixed=i;let o=e=>{if("string"!=typeof e)throw Error(`[stripHexPrefix] input must be type 'string', received ${typeof e}`);return i(e)?e.slice(2):e};function s(e){let t=e;if("string"!=typeof t)throw Error(`[padToEven] value must be type 'string', received ${typeof t}`);return t.length%2&&(t=`0${t}`),t}function a(e){if("string"!=typeof e)throw Error(`[getBinarySize] method requires input type 'string', received ${typeof e}`);return n.byteLength(e,"utf8")}function u(e,t,r){if(!0!==Array.isArray(e))throw Error(`[arrayContainsArray] method requires input 'superset' to be an array, got type '${typeof e}'`);if(!0!==Array.isArray(t))throw Error(`[arrayContainsArray] method requires input 'subset' to be an array, got type '${typeof t}'`);return t[!0===r?"some":"every"](t=>e.indexOf(t)>=0)}function f(e){let t="",r=0,n=e.length;for("0x"===e.substring(0,2)&&(r=2);r<n;r+=2)t+=String.fromCharCode(parseInt(e.substr(r,2),16));return t}function l(e){let t=n.from(e,"utf8");return`0x${s(t.toString("hex")).replace(/^0+|0+$/g,"")}`}function c(e){let t="";for(let r=0;r<e.length;r++){let n=e.charCodeAt(r).toString(16);t+=n.length<2?`0${n}`:n}return`0x${t}`}function d(e,t,r){if(!Array.isArray(e))throw Error(`[getKeys] method expects input 'params' to be an array, got ${typeof e}`);if("string"!=typeof t)throw Error(`[getKeys] method expects input 'key' to be type 'string', got ${typeof e}`);let n=[];for(let i=0;i<e.length;i++){let o=e[i][t];if(!0!==r||o){if("string"!=typeof o)throw Error(`invalid abi - expected type 'string', received ${typeof o}`)}else o="";n.push(o)}return n}function h(e,t){return"string"==typeof e&&!!e.match(/^0x[0-9A-Fa-f]*$/)&&(void 0===t||!(t>0)||e.length===2+2*t)}t.stripHexPrefix=o,t.padToEven=s,t.getBinarySize=a,t.arrayContainsArray=u,t.toAscii=f,t.fromUtf8=l,t.fromAscii=c,t.getKeys=d,t.isHexString=h},25169:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Lock=void 0;class r{constructor(){this.permits=1,this.promiseResolverQueue=[]}async acquire(){return this.permits>0?(this.permits-=1,Promise.resolve(!0)):new Promise(e=>this.promiseResolverQueue.push(e))}release(){if(this.permits+=1,this.permits>1&&this.promiseResolverQueue.length>0)console.warn("Lock.permits should never be > 0 when there is someone waiting.");else if(1===this.permits&&this.promiseResolverQueue.length>0){this.permits-=1;let e=this.promiseResolverQueue.shift();e&&e(!0)}}}t.Lock=r},51315:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getProvider=t.fetchFromProvider=void 0;let n=r(89801),i=async(e,t)=>(await (0,n.default)(e,{headers:{"content-type":"application/json"},type:"json",data:{method:t.method,params:t.params,jsonrpc:"2.0",id:1}})).result;t.fetchFromProvider=i;let o=e=>{if("string"==typeof e)return e;if(e?.connection?.url!==void 0)return e.connection.url;throw Error("Must provide valid provider URL or Web3Provider")};t.getProvider=o},34072:function(e,t,r){"use strict";var n=r(9109).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.hashPersonalMessage=t.isValidSignature=t.fromRpcSig=t.toCompactSig=t.toRpcSig=t.ecrecover=t.ecsign=void 0;let i=r(41032),o=r(66911),s=r(68511),a=r(23838),u=r(32914);function f(e,t,r){let i=o.secp256k1.sign(e,t),s=i.toCompactRawBytes();return{r:n.from(s.slice(0,32)),s:n.from(s.slice(32,64)),v:void 0===r?BigInt(i.recovery+27):BigInt(i.recovery+35)+BigInt(r)*BigInt(2)}}function l(e,t){return e===BigInt(0)||e===BigInt(1)?e:void 0===t?e-BigInt(27):e-(t*BigInt(2)+BigInt(35))}function c(e){return e===BigInt(0)||e===BigInt(1)}t.ecsign=f;let d=function(e,t,r,i,a){let u=n.concat([(0,s.setLengthLeft)(r,32),(0,s.setLengthLeft)(i,32)],64),f=l(t,a);if(!c(f))throw Error("Invalid signature v value");let d=o.secp256k1.Signature.fromCompact(u).addRecoveryBit(Number(f)).recoverPublicKey(e);return n.from(d.toRawBytes(!1).slice(1))};t.ecrecover=d;
1let h=function(e,t,r,i){if(!c(l(e,i)))throw Error("Invalid signature v value");return(0,s.bufferToHex)(n.concat([(0,s.setLengthLeft)(t,32),(0,s.setLengthLeft)(r,32),(0,s.toBuffer)(e)]))};t.toRpcSig=h;let p=function(e,t,r,i){if(!c(l(e,i)))throw Error("Invalid signature v value");let o=r;return(e>BigInt(28)&&e%BigInt(2)===BigInt(1)||e===BigInt(1)||e===BigInt(28))&&(o=n.from(r),o[0]|=128),(0,s.bufferToHex)(n.concat([(0,s.setLengthLeft)(t,32),(0,s.setLengthLeft)(o,32)]))};t.toCompactSig=p;let b=function(e){let t,r,n;let i=(0,s.toBuffer)(e);if(i.length>=65)t=i.slice(0,32),r=i.slice(32,64),n=(0,s.bufferToBigInt)(i.slice(64));else if(64===i.length)t=i.slice(0,32),r=i.slice(32,64),n=BigInt((0,s.bufferToInt)(i.slice(32,33))>>7),r[0]&=127;else throw Error("Invalid signature length");return n<27&&(n+=BigInt(27)),{v:n,r:t,s:r}};t.fromRpcSig=b;let g=function(e,t,r,n=!0,i){if(32!==t.length||32!==r.length||!c(l(e,i)))return!1;let o=(0,s.bufferToBigInt)(t),u=(0,s.bufferToBigInt)(r);return o!==BigInt(0)&&!(o>=a.SECP256K1_ORDER)&&u!==BigInt(0)&&!(u>=a.SECP256K1_ORDER)&&(!n||!(u>=a.SECP256K1_ORDER_DIV_2))};t.isValidSignature=g;let m=function(e){(0,u.assertIsBuffer)(e);let t=n.from(`\u0019Ethereum Signed Message: 2${e.length}`,"utf-8");return n.from((0,i.keccak256)(n.concat([t,e])))};t.hashPersonalMessage=m},38217:function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.toType=t.TypeOutput=void 0;let i=r(68511),o=r(36130);function s(e,t){if(null===e)return null;if(void 0===e)return;if("string"!=typeof e||(0,o.isHexString)(e)){if("number"==typeof e&&!Number.isSafeInteger(e))throw Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)")}else throw Error(`A string must be provided with a 0x-prefix, given: ${e}`);let r=(0,i.toBuffer)(e);switch(t){case n.Buffer:return r;case n.BigInt:return(0,i.bufferToBigInt)(r);case n.Number:{let e=(0,i.bufferToBigInt)(r);if(e>BigInt(Number.MAX_SAFE_INTEGER))throw Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return Number(e)}case n.PrefixedHexString:return(0,i.bufferToHex)(r);default:throw Error("unknown outputType")}}!function(e){e[e.Number=0]="Number",e[e.BigInt=1]="BigInt",e[e.Buffer=2]="Buffer",e[e.PrefixedHexString=3]="PrefixedHexString"}(n=t.TypeOutput||(t.TypeOutput={})),t.toType=s},68746:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GWEI_TO_WEI=void 0,t.GWEI_TO_WEI=BigInt(1e9)},27325:function(e,t,r){"use strict";var n=r(9109).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.Withdrawal=void 0;let i=r(4316),o=r(68511),s=r(38217);class a{constructor(e,t,r,n){this.index=e,this.validatorIndex=t,this.address=r,this.amount=n}static fromWithdrawalData(e){let{index:t,validatorIndex:r,address:n,amount:o}=e,u=(0,s.toType)(t,s.TypeOutput.BigInt);return new a(u,(0,s.toType)(r,s.TypeOutput.BigInt),new i.Address((0,s.toType)(n,s.TypeOutput.Buffer)),(0,s.toType)(o,s.TypeOutput.BigInt))}static fromValuesArray(e){if(4!==e.length)throw Error(`Invalid withdrawalArray length expected=4 actual=${e.length}`);let[t,r,n,i]=e;return a.fromWithdrawalData({index:t,validatorIndex:r,address:n,amount:i})}static toBufferArray(e){let{index:t,validatorIndex:r,address:o,amount:a}=e;return[(0,s.toType)(t,s.TypeOutput.BigInt)===BigInt(0)?n.alloc(0):(0,s.toType)(t,s.TypeOutput.Buffer),(0,s.toType)(r,s.TypeOutput.BigInt)===BigInt(0)?n.alloc(0):(0,s.toType)(r,s.TypeOutput.Buffer),o instanceof i.Address?o.buf:(0,s.toType)(o,s.TypeOutput.Buffer),(0,s.toType)(a,s.TypeOutput.BigInt)===BigInt(0)?n.alloc(0):(0,s.toType)(a,s.TypeOutput.Buffer)]}raw(){return a.toBufferArray(this)}toValue(){return{index:this.index,validatorIndex:this.validatorIndex,address:this.address.buf,amount:this.amount}}toJSON(){return{index:(0,o.bigIntToHex)(this.index),validatorIndex:(0,o.bigIntToHex)(this.validatorIndex),address:"0x"+this.address.buf.toString("hex"),amount:(0,o.bigIntToHex)(this.amount)}}}t.Withdrawal=a},11567:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esMo
2dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EthereumProviderError=t.JsonRpcError=void 0;let i=r(52630),o=n(r(98794)),s=r(43436);class a extends Error{constructor(e,t,r){if(!Number.isInteger(e))throw Error('"code" must be an integer.');if(!t||"string"!=typeof t)throw Error('"message" must be a non-empty string.');super(t),this.code=e,void 0!==r&&(this.data=r)}serialize(){let e={code:this.code,message:this.message};return void 0!==this.data&&(e.data=this.data,(0,i.isPlainObject)(this.data)&&(e.data.cause=(0,s.serializeCause)(this.data.cause))),this.stack&&(e.stack=this.stack),e}toString(){return(0,o.default)(this.serialize(),l,2)}}t.JsonRpcError=a;class u extends a{constructor(e,t,r){if(!f(e))throw Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,r)}}function f(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}function l(e,t){if("[Circular]"!==t)return t}t.EthereumProviderError=u},64421:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.errorValues=t.errorCodes=void 0,t.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}},t.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}}},16804:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.providerErrors=t.rpcErrors=void 0;let n=r(11567),i=r(64421),o=r(43436);function s(e,t){let[r,i]=u(t);return new n.JsonRpcError(e,r??(0,o.getMessageFromCode)(e),i)}function a(e,t){let[r,i]=u(t);return new n.EthereumProviderError(e,r??(0,o.getMessageFromCode)(e),i)}function u(e){if(e){if("string"==typeof e)return[e];if("object"==typeof e&&!Array.isArray(e)){let{message:t,data:r}=e;if(t&&"string"!=typeof t)throw Error("Must specify string message.");return[t??void 0,r]}}return[]}t.rpcErrors={parse:e=>s(i.errorCodes.rpc.parse,e),invalidRequest:e=>s(i.errorCodes.rpc.invalidRequest,e),invalidParams:e=>s(i.errorCodes.rpc.invalidParams,e),methodNotFound:e=>s(i.errorCodes.rpc.methodNotFound,e),internal:e=>s(i.errorCodes.rpc.internal,e),server:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw Error("Ethereum RPC Server errors must provide single object argument.");let{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw Error('"code" must be an integer such that: -32099 <= code
2<= -32005');return s(t,e)},invalidInput:e=>s(i.errorCodes.rpc.invalidInput,e),resourceNotFound:e=>s(i.errorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>s(i.errorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>s(i.errorCodes.rpc.transactionRejected,e),methodNotSupported:e=>s(i.errorCodes.rpc.methodNotSupported,e),limitExceeded:e=>s(i.errorCodes.rpc.limitExceeded,e)},t.providerErrors={userRejectedRequest:e=>a(i.errorCodes.provider.userRejectedRequest,e),unauthorized:e=>a(i.errorCodes.provider.unauthorized,e),unsupportedMethod:e=>a(i.errorCodes.provider.unsupportedMethod,e),disconnected:e=>a(i.errorCodes.provider.disconnected,e),chainDisconnected:e=>a(i.errorCodes.provider.chainDisconnected,e),custom:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw Error("Ethereum Provider custom errors must provide single object argument.");let{code:t,message:r,data:i}=e;if(!r||"string"!=typeof r)throw Error('"message" must be a nonempty string');return new n.EthereumProviderError(t,r,i)}}},68560:function(e,t,r){"use strict";n={value:!0},n=n=n=n=t.Xy=n=n=n=void 0;var n,i=r(11567);n={enumerable:!0,get:function(){return i.JsonRpcError}},n={enumerable:!0,get:function(){return i.EthereumProviderError}};var o=r(43436);n={enumerable:!0,get:function(){return o.serializeCause}},Object.defineProperty(t,"Xy",{enumerable:!0,get:function(){return o.serializeError}}),n={enumerable:!0,get:function(){return o.getMessageFromCode}};var s=r(16804);n={enumerable:!0,get:function(){return s.rpcErrors}},n={enumerable:!0,get:function(){return s.providerErrors}},r(64421)},43436:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serializeCause=t.serializeError=t.isValidCode=t.getMessageFromCode=t.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;let n=r(52630),i=r(64421),o=i.errorCodes.rpc.internal,s="Unspecified error message. This is a bug, please report it.",a={code:o,message:u(o)};function u(e,r=s){if(f(e)){let r=e.toString();if((0,n.hasProperty)(i.errorValues,r))return i.errorValues[r].message;if(d(e))return t.JSON_RPC_SERVER_ERROR_MESSAGE}return r}function f(e){return Number.isInteger(e)}function l(e,{fallbackError:t=a,shouldIncludeStack:r=!0}={}){if(!(0,n.isJsonRpcError)(t))throw Error("Must provide fallback error with integer number code and string message.");let i=c(e,t);return r||delete i.stack,i}function c(e,t){if(e&&"object"==typeof e&&"serialize"in e&&"function"==typeof e.serialize)return e.serialize();if((0,n.isJsonRpcError)(e))return e;let r=h(e);return{...t,data:{cause:r}}}function d(e){return e>=-32099&&e<=-32e3}function h(e){return Array.isArray(e)?e.map(e=>(0,n.isValidJson)(e)?e:(0,n.isObject)(e)?p(e):null):(0,n.isObject)(e)?p(e):(0,n.isValidJson)(e)?e:null}function p(e){return Object.getOwnPropertyNames(e).reduce((t,r)=>{let i=e[r];return(0,n.isValidJson)(i)&&(t[r]=i),t},{})}t.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.",t.getMessageFromCode=u,t.isValidCode=f,t.serializeError=l,t.serializeCause=h},70927:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertExhaustive=t.assertStruct=t.assert=t.AssertionError=void 0;let n=r(66517);function i(e){return"object"==typeof e&&null!==e&&"message"in e}function o(e){var t,r;return"string"==typeof(null===(r=null===(t=null==e?void 0:e.prototype)||void 0===t?void 0:t.constructor)||void 0===r?void 0:r.name)}function s(e){let t=i(e)?e.message:String(e);return t.endsWith(".")?t.slice(0,-1):t}function a(e,t){return o(e)?new e({message:t}):e({message:t})}class u extends Error{constructor(e){super(e.message),this.code="ERR_ASSERTION"}}function f(e,t="Assertion failed.",r=u){if(!e){if(t instanceof Error)throw t;throw a(r,t)}}function l(e,t,r="Assertion failed",i=u){try{(0,n.assert)(e,t)}catch(e){throw a(i,`${r}: ${s(e)}.`)}}function c(e){throw Error("Invalid branch reached. Should be detected during compilation.")}t.AssertionError=u,t.assert=f,t.assertStruct=l,t.assertExhaustive=c},71286:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.base64=void 0;let n=r(66517),i=r(70927),o=(e,t={})=>{var r,o;let s,a;let u=null!==(r=t.paddingRequired)&&void 0!==r&&r,f=null!==(o=t.characterSet)&&void 0!==o?o:"base64";return"base64"===f?s=String.raw`[A-Za-z0-9+\/]`:((0,i.assert)("base64url"===f),s=String.raw`[-_A-Za-z0-9]`),a=u?RegExp(`^(?:${s}{4}
2)*(?:${s}{3}=|${s}{2}==)?$`,"u"):RegExp(`^(?:${s}{4})*(?:${s}{2,3}|${s}{3}=|${s}{2}==)?$`,"u"),(0,n.pattern)(e,a)};t.base64=o},71869:function(e,t,r){"use strict";var n=r(9109).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.createDataView=t.concatBytes=t.valueToBytes=t.stringToBytes=t.numberToBytes=t.signedBigIntToBytes=t.bigIntToBytes=t.hexToBytes=t.bytesToString=t.bytesToNumber=t.bytesToSignedBigInt=t.bytesToBigInt=t.bytesToHex=t.assertIsBytes=t.isBytes=void 0;let i=r(70927),o=r(31202),s=48,a=58,u=87,f=function(){let e=[];return()=>{if(0===e.length)for(let t=0;t<256;t++)e.push(t.toString(16).padStart(2,"0"));return e}}();function l(e){return e instanceof Uint8Array}function c(e){(0,i.assert)(l(e),"Value must be a Uint8Array.")}function d(e){if(c(e),0===e.length)return"0x";let t=f(),r=Array(e.length);for(let n=0;n<e.length;n++)r[n]=t[e[n]];return(0,o.add0x)(r.join(""))}function h(e){return c(e),BigInt(d(e))}function p(e){c(e);let t=BigInt(0);for(let r of e)t=(t<<BigInt(8))+BigInt(r);return BigInt.asIntN(8*e.length,t)}function b(e){c(e);let t=h(e);return(0,i.assert)(t<=BigInt(Number.MAX_SAFE_INTEGER),"Number is not a safe integer. Use `bytesToBigInt` instead."),Number(t)}function g(e){return c(e),new TextDecoder().decode(e)}function m(e){var t;if((null===(t=null==e?void 0:e.toLowerCase)||void 0===t?void 0:t.call(e))==="0x")return new Uint8Array;(0,o.assertIsHexString)(e);let r=(0,o.remove0x)(e).toLowerCase(),n=r.length%2==0?r:`0${r}`,i=new Uint8Array(n.length/2);for(let e=0;e<i.length;e++){let t=n.charCodeAt(2*e),r=n.charCodeAt(2*e+1),o=t-(t<a?s:u),f=r-(r<a?s:u);i[e]=16*o+f}return i}function y(e){return(0,i.assert)("bigint"==typeof e,"Value must be a bigint."),(0,i.assert)(e>=BigInt(0),"Value must be a non-negative bigint."),m(e.toString(16))}function v(e,t){(0,i.assert)(t>0);let r=e>>BigInt(31);return!((~e&r)+(e&~r)>>BigInt(8*t+-1))}function w(e,t){(0,i.assert)("bigint"==typeof e,"Value must be a bigint."),(0,i.assert)("number"==typeof t,"Byte length must be a number."),(0,i.assert)(t>0,"Byte length must be greater than 0."),(0,i.assert)(v(e,t),"Byte length is too small to represent the given value.");let r=e,n=new Uint8Array(t);for(let e=0;e<n.length;e++)n[e]=Number(BigInt.asUintN(8,r)),r>>=BigInt(8);return n.reverse()}function _(e){return(0,i.assert)("number"==typeof e,"Value must be a number."),(0,i.assert)(e>=0,"Value must be a non-negative number."),(0,i.assert)(Number.isSafeInteger(e),"Value is not a safe integer. Use `bigIntToBytes` instead."),m(e.toString(16))}function S(e){return(0,i.assert)("string"==typeof e,"Value must be a string."),new TextEncoder().encode(e)}function E(e){if("bigint"==typeof e)return y(e);if("number"==typeof e)return _(e);if("string"==typeof e)return e.startsWith("0x")?m(e):S(e);if(l(e))return e;throw TypeError(`Unsupported value type: "${typeof e}".`)}function A(e){let t=Array(e.length),r=0;for(let n=0;n<e.length;n++){let i=E(e[n]);t[n]=i,r+=i.length}let n=new Uint8Array(r);for(let e=0,r=0;e<t.length;e++)n.set(t[e],r),r+=t[e].length;return n}function R(e){return void 0!==n&&e instanceof n?new DataView(e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)):new DataView(e.buffer,e.byteOffset,e.byteLength)}t.isBytes=l,t.assertIsBytes=c,t.bytesToHex=d,t.bytesToBigInt=h,t.bytesToSignedBigInt=p,t.bytesToNumber=b,t.bytesToString=g,t.hexToBytes=m,t.bigIntToBytes=y,t.signedBigIntToBytes=w,t.numberToBytes=_,t.stringToBytes=S,t.valueToBytes=E,t.concatBytes=A,t.createDataView=R},29733:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChecksumStruct=void 0;let n=r(66517),i=r(71286);t.ChecksumStruct=(0,n.size)((0,i.base64)((0,n.string)(),{paddingRequired:!0}),44,44)},41437:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createHex=t.createBytes=t.createBigInt=t.createNumber=void 0;let n=r(66517),i=r(70927),o=r(71869),s=r(31202),a=(0,n.union)([(0,n.number)(),(0,n.bigint)(),(0,n.string)(),s.StrictHexStruct]),u=(0,n.coerce)((0,n.number)(),a,Number),f=(0,n.coerce)((0,n.bigint)(),a,BigInt);(0,n.union)([s.StrictHexStruct,(0,n.instance)(Uint8Array)]);let l=(0,n.coerce)((0,n.instance)(Uint8Array),(0,n.union)([s.StrictHexStruct]),o.hexToBytes),c=(0,n.coerce)(s.StrictHexStruct,(0,n.instance)(Uint8Array),o.bytesToHex);function d(e){try{let t=(0,n.create)(e,u);return(0,i.assert)(Number.isFinite(t),`Expected a number-like value, got "${e}".`),t}catch(t){if(t instanceof n.StructError)throw Error(`Expected a number-like value, got "${e}".`);throw t}}function h(e){try{return(0,n.create)(e,f)}catch(e){if(e instanceof n.StructError)throw Error(`Expected a number-like value, got "${String(e.value)}".`);throw e}}function p(e){if("string"==typeof e&&"0x"===e.toLowerCase())return new Uint8Array;try{return(0,n.create)(e,l)}catch(e){if(e instanceof n.StructError)throw Error(`Expected a bytes-like value, got "${String(e.value)}".`);throw e}}function b(e){if(e instanceof Uint8Array&&0===e.length||"string"==typeof e&&"0x"===e.toLowerCase())return"0x";try{return(0,n.create)(e,c)}catch(e){if(e instanceof n.StructError)throw Error(`Expected a bytes-like value, got "${String(e.value)}".`);throw e}}t.createNumber=d,t.createBigInt=h,t.createBytes=p,t.createHex=b},14e3:function(e,t){"use strict";var r,n,i=this&&this.__classPrivateFieldSet||function(e,t,r,n,i){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r},o=this&&this.__classPrivateFieldGet||function(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};
2Object.defineProperty(t,"__esModule",{value:!0}),t.FrozenSet=t.FrozenMap=void 0;class s{constructor(e){r.set(this,void 0),i(this,r,new Map(e),"f"),Object.freeze(this)}get size(){return o(this,r,"f").size}[(r=new WeakMap,Symbol.iterator)](){return o(this,r,"f")[Symbol.iterator]()}entries(){return o(this,r,"f").entries()}forEach(e,t){return o(this,r,"f").forEach((r,n,i)=>e.call(t,r,n,this))}get(e){return o(this,r,"f").get(e)}has(e){return o(this,r,"f").has(e)}keys(){return o(this,r,"f").keys()}values(){return o(this,r,"f").values()}toString(){return`FrozenMap(${this.size}) {${this.size>0?` ${[...this.entries()].map(([e,t])=>`${String(e)} => ${String(t)}`).join(", ")} `:""}}`}}t.FrozenMap=s;class a{constructor(e){n.set(this,void 0),i(this,n,new Set(e),"f"),Object.freeze(this)}get size(){return o(this,n,"f").size}[(n=new WeakMap,Symbol.iterator)](){return o(this,n,"f")[Symbol.iterator]()}entries(){return o(this,n,"f").entries()}forEach(e,t){return o(this,n,"f").forEach((r,n,i)=>e.call(t,r,n,this))}has(e){return o(this,n,"f").has(e)}keys(){return o(this,n,"f").keys()}values(){return o(this,n,"f").values()}toString(){return`FrozenSet(${this.size}) {${this.size>0?` ${[...this.values()].map(e=>String(e)).join(", ")} `:""}}`}}t.FrozenSet=a,Object.freeze(s),Object.freeze(s.prototype),Object.freeze(a),Object.freeze(a.prototype)},92933:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},31202:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.remove0x=t.add0x=t.assertIsStrictHexString=t.assertIsHexString=t.isStrictHexString=t.isHexString=t.StrictHexStruct=t.HexStruct=void 0;let n=r(66517),i=r(70927);function o(e){return(0,n.is)(e,t.HexStruct)}function s(e){return(0,n.is)(e,t.StrictHexStruct)}function a(e){(0,i.assert)(o(e),"Value must be a hexadecimal string.")}function u(e){(0,i.assert)(s(e),'Value must be a hexadecimal string, starting with "0x".')}function f(e){return e.startsWith("0x")?e:e.startsWith("0X")?`0x${e.substring(2)}`:`0x${e}`}function l(e){return e.startsWith("0x")||e.startsWith("0X")?e.substring(2):e}t.HexStruct=(0,n.pattern)((0,n.string)(),/^(?:0x)?[0-9a-f]+$/iu),t.StrictHexStruct=(0,n.pattern)((0,n.string)(),/^0x[0-9a-f]+$/iu),t.isHexString=o,t.isStrictHexString=s,t.assertIsHexString=a,t.assertIsStrictHexString=u,t.add0x=f,t.remove0x=l},52630:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(70927),t),i(r(71286),t),i(r(71869),t),i(r(29733),t),i(r(41437),t),i(r(14e3),t),i(r(92933),t),i(r(31202),t),i(r(81789),t),i(r(29224),t),i(r(36789),t),i(r(60692),t),i(r(45950),t),i(r(23901),t),i(r(8357),t),i(r(608),t),i(r(19452),t)},81789:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getJsonRpcIdValidator=t.assertIsJsonRpcError=t.isJsonRpcError=t.assertIsJsonRpcFailure=t.isJsonRpcFailure=t.assertIsJsonRpcSuccess=t.isJsonRpcSuccess=t.assertIsJsonRpcResponse=t.isJsonRpcResponse=t.assertIsPendingJsonRpcResponse=t.isPendingJsonRpcResponse=t.JsonRpcResponseStruct=t.JsonRpcFailureStruct=t.JsonRpcSuccessStruct=t.PendingJsonRpcResponseStruct=t.assertIsJsonRpcRequest=t.isJsonRpcRequest=t.assertIsJsonRpcNotification=t.isJsonRpcNotification=t.JsonRpcNotificationStruct=t.JsonRpcRequestStruct=t.JsonRpcParamsStruct=t.JsonRpcErrorStruct=t.JsonRpcIdStruct=t.JsonRpcVersionStruct=t.jsonrpc2=t.getJsonSize=t.isValidJson=t.JsonStruct=t.UnsafeJsonStruct=void 0;let n=r(66517),i=r(70927),o=()=>(0,n.define)("finite number",e=>(0,n.is)(e,(0,n.number)())&&Number.isFinite(e));function s(e){return(0,n.is)(e,t.JsonStruct)}function a(e){(0,i.assertStruct)(e,t.JsonStruct,"Invalid JSON value");let r=JSON.stringify(e);return new TextEncoder().encode(r).byteLength}function u(e){return(0,n.is)(e,t.JsonRpcNotificationStruct)}function f(e,r){(0,i.assertStruct)(e,t.JsonRpcNotificationStruct,"Invalid JSON-RPC notification",r)}function l(e){return(0,n.is)(e,t.JsonRpcRequestStruct)}function c(e,r){(0,i.assertStruct)(e,t.JsonRpcRequestStruct,"Invalid JSON-RPC request",r)}function d(e){return(0,n.is)(e,t.PendingJsonRpcResponseStruct)}function h(e,r){(0,i.assertStruct)(e,t.PendingJsonRpcResponseStruct,"Invalid pending JSON-RPC response",r)}function p(e){return(0,n.is)(e,t.JsonRpcResponseStruct)}function b(e,r){(0,i.assertStruct)(e,t.JsonRpcResponseStruct,"Invalid JSON-RPC response",r)}function g(e){return(0,n.is)(e,t.JsonRpcSuccessStruct)}function m(e,r){(0,i.assertStruct)(e,t.JsonRpcSuccessStruct,"Invalid JSON-RPC success response",r)}function y(e){return(0,n.is)(e,t.JsonRpcFailureStruct)}function v(e,r){(0,i.assertStruct)(e,t.JsonRpcFailureStruct,"Invalid JSON-RPC failure response",r)}function w(e){return(0,n.is)(e,t.JsonRpcErrorStruct)}function _(e,r){(0,i.assertStruct)(e,t.JsonRpcErrorStruct,"Invalid JSON-RPC error",r)}function S(e){let{permitEmptyString:t,permitFractions:r,permitNull:n}=Object.assign({permitEmptyString:!0,permitFractions:!1,permitNull:!0},e);return e=>!!("number"==typeof e&&(r||Number.isInteger(e))||"string"==typeof e&&(t||e.length>0)||n&&null===e)}t.UnsafeJsonStruct=(0,n.union)([(0,n.literal)(null),(0,n.boolean)(),o(),(0,n.string)(),(0,n.array)((0,n.lazy)(()=>t.UnsafeJsonStruct)),(0,n.record)((0,n.string)(),(0,n.lazy)(()=>t.UnsafeJsonStruct))]),t.JsonStruct=(0,n.define)("Json",(e,r)=>{function n(e,t){let n=[...t.validator(e,r)];return!(n.length>0)||n}try{let r=n(e,t.UnsafeJsonStruct);if(!0!==r)return r;return n(JSON.parse(JSON.stringify(e)),t.UnsafeJsonStruct)}catch(e){if(e instanceof RangeError)return"Circular reference detected";return!1}}),t.isValidJson=s,t.getJsonSize=a,t.jsonrpc2="2.0",t.JsonRpcVersionStru
2ct=(0,n.literal)(t.jsonrpc2),t.JsonRpcIdStruct=(0,n.nullable)((0,n.union)([(0,n.number)(),(0,n.string)()])),t.JsonRpcErrorStruct=(0,n.object)({code:(0,n.integer)(),message:(0,n.string)(),data:(0,n.optional)(t.JsonStruct),stack:(0,n.optional)((0,n.string)())}),t.JsonRpcParamsStruct=(0,n.optional)((0,n.union)([(0,n.record)((0,n.string)(),t.JsonStruct),(0,n.array)(t.JsonStruct)])),t.JsonRpcRequestStruct=(0,n.object)({id:t.JsonRpcIdStruct,jsonrpc:t.JsonRpcVersionStruct,method:(0,n.string)(),params:t.JsonRpcParamsStruct}),t.JsonRpcNotificationStruct=(0,n.omit)(t.JsonRpcRequestStruct,["id"]),t.isJsonRpcNotification=u,t.assertIsJsonRpcNotification=f,t.isJsonRpcRequest=l,t.assertIsJsonRpcRequest=c,t.PendingJsonRpcResponseStruct=(0,n.object)({id:t.JsonRpcIdStruct,jsonrpc:t.JsonRpcVersionStruct,result:(0,n.optional)((0,n.unknown)()),error:(0,n.optional)(t.JsonRpcErrorStruct)}),t.JsonRpcSuccessStruct=(0,n.object)({id:t.JsonRpcIdStruct,jsonrpc:t.JsonRpcVersionStruct,result:t.JsonStruct}),t.JsonRpcFailureStruct=(0,n.object)({id:t.JsonRpcIdStruct,jsonrpc:t.JsonRpcVersionStruct,error:t.JsonRpcErrorStruct}),t.JsonRpcResponseStruct=(0,n.union)([t.JsonRpcSuccessStruct,t.JsonRpcFailureStruct]),t.isPendingJsonRpcResponse=d,t.assertIsPendingJsonRpcResponse=h,t.isJsonRpcResponse=p,t.assertIsJsonRpcResponse=b,t.isJsonRpcSuccess=g,t.assertIsJsonRpcSuccess=m,t.isJsonRpcFailure=y,t.assertIsJsonRpcFailure=v,t.isJsonRpcError=w,t.assertIsJsonRpcError=_,t.getJsonRpcIdValidator=S},29224:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},36789:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createModuleLogger=t.createProjectLogger=void 0;let i=(0,n(r(55022)).default)("metamask");function o(e){return i.extend(e)}function s(e,t){return e.extend(t)}t.createProjectLogger=o,t.createModuleLogger=s},60692:function(e,t){"use strict";var r;function n(e){return Array.isArray(e)&&e.length>0}function i(e){return null==e}function o(e){return!!e&&"object"==typeof e&&!Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.calculateNumberSize=t.calculateStringSize=t.isASCII=t.isPlainObject=t.ESCAPE_CHARACTERS_REGEXP=t.JsonSize=t.hasProperty=t.isObject=t.isNullOrUndefined=t.isNonEmptyArray=void 0,t.isNonEmptyArray=n,t.isNullOrUndefined=i,t.isObject=o;let s=(e,t)=>Object.hasOwnProperty.call(e,t);function a(e){if("object"!=typeof e||null===e)return!1;try{let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}catch(e){return!1}}function u(e){return 127>=e.charCodeAt(0)}function f(e){var r;return e.split("").reduce((e,t)=>u(t)?e+1:e+2,0)+(null!==(r=e.match(t.ESCAPE_CHARACTERS_REGEXP))&&void 0!==r?r:[]).length}function l(e){return e.toString().length}t.hasProperty=s,function(e){e[e.Null=4]="Null",e[e.Comma=1]="Comma",e[e.Wrapper=1]="Wrapper",e[e.True=4]="True",e[e.False=5]="False",e[e.Quote=1]="Quote",e[e.Colon=1]="Colon",e[e.Date=24]="Date"}(r=t.JsonSize||(t.JsonSize={})),t.ESCAPE_CHARACTERS_REGEXP=/"|\\|\n|\r|\t/gu,t.isPlainObject=a,t.isASCII=u,t.calculateStringSize=f,t.calculateNumberSize=l},45950:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToBigInt=t.hexToNumber=t.bigIntToHex=t.numberToHex=void 0;let n=r(70927),i=r(31202),o=e=>((0,n.assert)("number"==typeof e,"Value must be a number."),(0,n.assert)(e>=0,"Value must be a non-negative number."),(0,n.assert)(Number.isSafeInteger(e),"Value is not a safe integer. Use `bigIntToHex` instead."),(0,i.add0x)(e.toString(16)));t.numberToHex=o;let s=e=>((0,n.assert)("bigint"==typeof e,"Value must be a bigint."),(0,n.assert)(e>=0,"Value must be a non-negative bigint."),(0,i.add0x)(e.toString(16)));t.bigIntToHex=s;let a=e=>{(0,i.assertIsHexString)(e);let t=parseInt(e,16);return(0,n.assert)(Number.isSafeInteger(t),"Value is not a safe integer. Use `hexToBigInt` instead."),t};t.hexToNumber=a;let u=e=>((0,i.assertIsHexString)(e),BigInt((0,i.add0x)(e)));t.hexToBigInt=u},23901:function(e,t){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0})},8357:function(e,t){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.timeSince=t.inMilliseconds=t.Duration=void 0,function(e){e[e.Millisecond=1]="Millisecond",e[e.Second=1e3]="Second",e[e.Minute=6e4]="Minute",e[e.Hour=36e5]="Hour",e[e.Day=864e5]="Day",e[e.Week=6048e5]="Week",e[e.Year=31536e6]="Year"}(r=t.Duration||(t.Duration={}));let n=e=>Number.isInteger(e)&&e>=0,i=(e,t)=>{if(!n(e))throw Error(`"${t}" must be a non-negative integer. Received: "${e}".`)};function o(e,t){return i(e,"count"),e*t}function s(e){return i(e,"timestamp"),Date.now()-e}t.inMilliseconds=o,t.timeSince=s},608:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},19452:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.satisfiesVersionRange=t.gtRange=t.gtVersion=t.assertIsSemVerRange=t.assertIsSemVerVersion=t.isValidSemVerRange=t.isValidSemVerVersion=t.VersionRangeStruct=t.VersionStruct=void 0;let n=r(35420),i=r(66517),o=r(70927);function s(e){return(0,i.is)(e,t.VersionStruct)}function a(e){return(0,i.is)(e,t.VersionRangeStruct)}function u(e){(0,o.assertStruct)(e,t.VersionStruct)}function f(e){(0,o.assertStruct)(e,t.VersionRangeStruct)}function l(e,t){return(0,n.gt)(e,t)}function c(e,t){return(0,n.gtr)(e,t)}function d(e,t){return(0,n.satisfies)(e,t,{includePrerelease:!0})}t.VersionStruct=(0,i.refine)((0,i.string)(),"Version",e=>null!==(0,n.valid)(e)||`Expected SemVer version, got "${e}"`),t.VersionRangeStruct=(0,i.refine)((0,i.string)(),"Version range",e=>null!==(0,n.validRange)(e)||`Expected SemVer range, got "${e}"`),t.isValidSemVerVersion=s,t.isValidSemVerRange=a,t.assertIsSemVerVersion=u,t.assertIsSemVerRange=f,t.gtVersion=l,t.gtRange=c,t.satisfiesVersionRange=d},15684:function(e,t,r){let n=Symbol("SemVer ANY");class i{static get ANY(){return n}constructor(e,t){if(t=o(t),e instanceof i){if(!!t.loose===e.loose)return e;e=e.value}f("comparator",e=e.trim().split(/\s+/).join(" "),t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===n?this.value="":this.value=this.operator+this.semver.version,f("comp",this)}parse(e){let t=this.options.loose?s[a.COMPARATORLOOSE]:s[a.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new l(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(f("Comparator.test",e,this.options.loose),this.semver===n||e===n)return!0;if("string"==typeof e)try{e=new l(e,this.options)}catch(e){return!1}return u(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof i))throw TypeError("a Comparator is required");return""===this.operator?""===this.value||new c(e.value,t).test(this.value):""===e.operator?""===e.value||new c(this.value,t).test(e.semver):!((t=o(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||u(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||u(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">"))}}e.exports=i;let o=r(36380),{safeRe:s,t:a}=r(67831),u=r(67625),f=r(15921),l=r(13919),c=r(56161)},56161:function(e,t,r){class n{constructor(e,t){if(t=o(t),e instanceof n){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;return new n(e.raw,t)}if(e instanceof s)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!g(e[0])),0===this.set.length)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(1===e.length&&m(e[0])){this.set=[e];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){let t=((this.options.includePrerelease&&p)|(this.options.loose&&b))+":"+e,r=i.get(t);if(r)return r;let n=this.options.loose,o=n?f[l.HYPHENRANGELOOSE]:f[l.HYPHENRANGE];a("hyphen replace",e=e.replace(o,O(this.options.includePrerelease))),a("comparator trim",e=e.replace(f[l.COMPARATORTRIM],c)),a("tilde trim",e=e.replace(f[l.TILDETRIM],d)),a("caret trim",e=e.replace(f[l.CARETTRIM],h));let u=e.split(" ").map(e=>v(e,this.options)).join(" ").split(/\s+/).map(e=>k(e,this.options));n&&(u=u.filter(e=>(a("loose invalid filter",e,this.options),!!e.match(f[l.COMPARATORLOOSE])))),a("range list",u);let m=new Map;for(let e of u.map(e=>new s(e,this.options))){if(g(e))return[e];m.set(e.value,e)}m.size>1&&m.has("")&&m.delete("");let y=[...m.values()];return i.set(t,y),y}intersects(e,t){if(!(e instanceof n))throw TypeError("a Range is required");return this.set.some(r=>y(r,t)&&e.set.some(e=>y(e,t)&&r.every(r=>e.every(e=>r.intersects(e,t)))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(T(this.set[t],e,this.options))return!0;return!1}}
2e.exports=n;let i=new(r(74138)),o=r(36380),s=r(15684),a=r(15921),u=r(13919),{safeRe:f,t:l,comparatorTrimReplace:c,tildeTrimReplace:d,caretTrimReplace:h}=r(67831),{FLAG_INCLUDE_PRERELEASE:p,FLAG_LOOSE:b}=r(10740),g=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,y=(e,t)=>{let r=!0,n=e.slice(),i=n.pop();for(;r&&n.length;)r=n.every(e=>i.intersects(e,t)),i=n.pop();return r},v=(e,t)=>(a("comp",e,t),a("caret",e=E(e,t)),a("tildes",e=_(e,t)),a("xrange",e=R(e,t)),a("stars",e=M(e,t)),e),w=e=>!e||"x"===e.toLowerCase()||"*"===e,_=(e,t)=>e.trim().split(/\s+/).map(e=>S(e,t)).join(" "),S=(e,t)=>{let r=t.loose?f[l.TILDELOOSE]:f[l.TILDE];return e.replace(r,(t,r,n,i,o)=>{let s;return a("tilde",e,t,r,n,i,o),w(r)?s="":w(n)?s=`>=${r}.0.0 <${+r+1}.0.0-0`:w(i)?s=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:o?(a("replaceTilde pr",o),s=`>=${r}.${n}.${i}-${o} <${r}.${+n+1}.0-0`):s=`>=${r}.${n}.${i} <${r}.${+n+1}.0-0`,a("tilde return",s),s})},E=(e,t)=>e.trim().split(/\s+/).map(e=>A(e,t)).join(" "),A=(e,t)=>{a("caret",e,t);let r=t.loose?f[l.CARETLOOSE]:f[l.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(t,r,i,o,s)=>{let u;return a("caret",e,t,r,i,o,s),w(r)?u="":w(i)?u=`>=${r}.0.0${n} <${+r+1}.0.0-0`:w(o)?u="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:s?(a("replaceCaret pr",s),u="0"===r?"0"===i?`>=${r}.${i}.${o}-${s} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}-${s} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o}-${s} <${+r+1}.0.0-0`):(a("no pr"),u="0"===r?"0"===i?`>=${r}.${i}.${o}${n} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o} <${+r+1}.0.0-0`),a("caret return",u),u})},R=(e,t)=>(a("replaceXRanges",e,t),e.split(/\s+/).map(e=>x(e,t)).join(" ")),x=(e,t)=>{e=e.trim();let r=t.loose?f[l.XRANGELOOSE]:f[l.XRANGE];return e.replace(r,(r,n,i,o,s,u)=>{a("xRange",e,r,n,i,o,s,u);let f=w(i),l=f||w(o),c=l||w(s),d=c;return"="===n&&d&&(n=""),u=t.includePrerelease?"-0":"",f?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&d?(l&&(o=0),s=0,">"===n?(n=">=",l?(i=+i+1,o=0):o=+o+1,s=0):"<="===n&&(n="<",l?i=+i+1:o=+o+1),"<"===n&&(u="-0"),r=`${n+i}.${o}.${s}${u}`):l?r=`>=${i}.0.0${u} <${+i+1}.0.0-0`:c&&(r=`>=${i}.${o}.0${u} <${i}.${+o+1}.0-0`),a("xRange return",r),r})},M=(e,t)=>(a("replaceStars",e,t),e.trim().replace(f[l.STAR],"")),k=(e,t)=>(a("replaceGTE0",e,t),e.trim().replace(f[t.includePrerelease?l.GTE0PRE:l.GTE0],"")),O=e=>(t,r,n,i,o,s,a,u,f,l,c,d)=>(r=w(n)?"":w(i)?`>=${n}.0.0${e?"-0":""}`:w(o)?`>=${n}.${i}.0${e?"-0":""}`:s?`>=${r}`:`>=${r}${e?"-0":""}`,u=w(f)?"":w(l)?`<${+f+1}.0.0-0`:w(c)?`<${f}.${+l+1}.0-0`:d?`<=${f}.${l}.${c}-${d}`:e?`<${f}.${l}.${+c+1}-0`:`<=${u}`,`${r} ${u}`.trim()),T=(e,t,r)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++)if(a(e[r].semver),e[r].semver!==s.ANY&&e[r].semver.prerelease.length>0){let n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}},13919:function(e,t,r){let n=r(15921),{MAX_LENGTH:i,MAX_SAFE_INTEGER:o}=r(10740),{safeRe:s,t:a}=r(67831),u=r(36380),{compareIdentifiers:f}=r(72688);class l{constructor(e,t){if(t=u(t),e instanceof l){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>i)throw TypeError(`version is longer than ${i} characters`);n("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let r=e.trim().match(t.loose?s[a.LOOSE]:s[a.FULL]);if(!r)throw TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>o||this.major<0)throw TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t<o)return t}return e}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(n("SemVer.compare",this.version,this.options,e),!(e instanceof l)){if("string"==typeof e&&e===this.version)return 0;e=new l(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof l||(e=new l(e,this.options)),f(this.major,e.major)||f(this.minor,e.minor)||f(this.patch,e.patch)}comparePre(e){if(e instanceof l||(e=new l(e,this.options)),this.prerelease.length&&!e.prerelease.length)return -1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let r=this.prerelease[t],i=e.prerelease[t];
2if(n("prerelease compare",t,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return -1;if(r===i)continue;else return f(r,i)}while(++t)}compareBuild(e){e instanceof l||(e=new l(e,this.options));let t=0;do{let r=this.build[t],i=e.build[t];if(n("build compare",t,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return -1;if(r===i)continue;else return f(r,i)}while(++t)}inc(e,t,r){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,r),this.inc("pre",t,r);break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{let e=Number(r)?1:0;if(!t&&!1===r)throw Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let n=this.prerelease.length;for(;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);
2if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let n=[t,e];!1===r&&(n=[t]),0===f(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=l},47673:function(e,t,r){let n=r(87430),i=(e,t)=>{let r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};e.exports=i},67625:function(e,t,r){let n=r(78174),i=r(80044),o=r(67910),s=r(45328),a=r(48553),u=r(70439),f=(e,t,r,f)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return n(e,r,f);case"!=":return i(e,r,f);case">":return o(e,r,f);case">=":return s(e,r,f);case"<":return a(e,r,f);case"<=":return u(e,r,f);default:throw TypeError(`Invalid operator: ${t}`)}};e.exports=f},98228:function(e,t,r){let n=r(13919),i=r(87430),{safeRe:o,t:s}=r(67831),a=(e,t)=>{if(e instanceof n)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){let n;let i=t.includePrerelease?o[s.COERCERTLFULL]:o[s.COERCERTL];for(;(n=i.exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&n.index+n[0].length===r.index+r[0].length||(r=n),i.lastIndex=n.index+n[1].length+n[2].length;i.lastIndex=-1}else r=e.match(t.includePrerelease?o[s.COERCEFULL]:o[s.COERCE]);if(null===r)return null;let a=r[2],u=r[3]||"0",f=r[4]||"0",l=t.includePrerelease&&r[5]?`-${r[5]}`:"",c=t.includePrerelease&&r[6]?`+${r[6]}`:"";return i(`${a}.${u}.${f}${l}${c}`,t)};e.exports=a},21423:function(e,t,r){let n=r(13919),i=(e,t,r)=>{let i=new n(e,r),o=new n(t,r);return i.compare(o)||i.compareBuild(o)};e.exports=i},14552:function(e,t,r){let n=r(59251),i=(e,t)=>n(e,t,!0);e.exports=i},59251:function(e,t,r){let n=r(13919),i=(e,t,r)=>new n(e,r).compare(new n(t,r));e.exports=i},66584:function(e,t,r){let n=r(87430),i=(e,t)=>{let r=n(e,null,!0),i=n(t,null,!0),o=r.compare(i);if(0===o)return null;let s=o>0,a=s?r:i,u=s?i:r,f=!!a.prerelease.length;if(u.prerelease.length&&!f)return u.patch||u.minor?a.patch?"patch":a.minor?"minor":"major":"major";let l=f?"pre":"";return r.major!==i.major?l+"major":r.minor!==i.minor?l+"minor":r.patch!==i.patch?l+"patch":"prerelease"};e.exports=i},78174:function(e,t,r){let n=r(59251),i=(e,t,r)=>0===n(e,t,r);e.exports=i},67910:function(e,t,r){let n=r(59251),i=(e,t,r)=>n(e,t,r)>0;e.exports=i},45328:function(e,t,r){let n=r(59251),i=(e,t,r)=>n(e,t,r)>=0;e.exports=i},14689:function(e,t,r){let n=r(13919),i=(e,t,r,i,o)=>{"string"==typeof r&&(o=i,i=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,i,o).version}catch(e){return null}};e.exports=i},48553:function(e,t,r){let n=r(59251),i=(e,t,r)=>0>n(e,t,r);e.exports=i},70439:function(e,t,r){let n=r(59251),i=(e,t,r)=>0>=n(e,t,r);e.exports=i},76802:function(e,t,r){let n=r(13919),i=(e,t)=>new n(e,t).major;e.exports=i},87357:function(e,t,r){let n=r(13919),i=(e,t)=>new n(e,t).minor;e.exports=i},80044:function(e,t,r){let n=r(59251),i=(e,t,r)=>0!==n(e,t,r);e.exports=i},87430:function(e,t,r){let n=r(13919),i=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}};e.exports=i},42286:function(e,t,r){let n=r(13919),i=(e,t)=>new n(e,t).patch;e.exports=i},10592:function(e,t,r){let n=r(87430),i=(e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null};e.exports=i},50807:function(e,t,r){let n=r(59251),i=(e,t,r)=>n(t,e,r);e.exports=i},2377:function(e,t,r){let n=r(21423),i=(e,t)=>e.sort((e,r)=>n(r,e,t));e.exports=i},55372:function(e,t,r){let n=r(56161),i=(e,t,r)=>{try{t=new n(t,r)}catch(e){return!1}return t.test(e)};e.exports=i},22112:function(e,t,r){let n=r(21423),i=(e,t)=>e.sort((e,r)=>n(e,r,t));e.exports=i},95427:function(e,t,r){let n=r(87430),i=(e,t)=>{let r=n(e,t);return r?r.version:null};e.exports=i},35420:function(e,t,r){let n=r(67831),i=r(10740),o=r(13919),s=r(72688),a=r(87430),u=r(95427),f=r(47673),l=r(14689),c=r(66584),d=r
2(76802),h=r(87357),p=r(42286),b=r(10592),g=r(59251),m=r(50807),y=r(14552),v=r(21423),w=r(22112),_=r(2377),S=r(67910),E=r(48553),A=r(78174),R=r(80044),x=r(45328),M=r(70439),k=r(67625),O=r(98228),T=r(15684),I=r(56161),P=r(55372),L=r(8126),B=r(62410),N=r(36818),C=r(72242),j=r(77904),D=r(89470),F=r(91660),U=r(63786),q=r(8590),$=r(51470),z=r(74536);e.exports={parse:a,valid:u,clean:f,inc:l,diff:c,major:d,minor:h,patch:p,prerelease:b,compare:g,rcompare:m,compareLoose:y,compareBuild:v,sort:w,rsort:_,gt:S,lt:E,eq:A,neq:R,gte:x,lte:M,cmp:k,coerce:O,Comparator:T,Range:I,satisfies:P,toComparators:L,maxSatisfying:B,minSatisfying:N,minVersion:C,validRange:j,outside:D,gtr:F,ltr:U,intersects:q,simplifyRange:$,subset:z,SemVer:o,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:s.compareIdentifiers,rcompareIdentifiers:s.rcompareIdentifiers}},10740:function(e){let t="2.0.0",r=256,n=Number.MAX_SAFE_INTEGER||9007199254740991,i=16,o=250,s=["major","premajor","minor","preminor","patch","prepatch","prerelease"];e.exports={MAX_LENGTH:r,MAX_SAFE_COMPONENT_LENGTH:i,MAX_SAFE_BUILD_LENGTH:o,MAX_SAFE_INTEGER:n,RELEASE_TYPES:s,SEMVER_SPEC_VERSION:t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},15921:function(e,t,r){var n=r(25566);let i="object"==typeof n&&n.env&&n.env.NODE_DEBUG&&/\bsemver\b/i.test(n.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=i},72688:function(e){let t=/^[0-9]+$/,r=(e,r)=>{let n=t.test(e),i=t.test(r);return n&&i&&(e=+e,r=+r),e===r?0:n&&!i?-1:i&&!n?1:e<r?-1:1},n=(e,t)=>r(t,e);e.exports={compareIdentifiers:r,rcompareIdentifiers:n}},74138:function(e){class t{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(void 0!==t)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}e.exports=t},36380:function(e){let t=Object.freeze({loose:!0}),r=Object.freeze({}),n=e=>e?"object"!=typeof e?t:e:r;e.exports=n},67831:function(e,t,r){let{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:o}=r(10740),s=r(15921),a=(t=e.exports={}).re=[],u=t.safeRe=[],f=t.src=[],l=t.t={},c=0,d="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",o],[d,i]],p=e=>{for(let[t,r]of h)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e},b=(e,t,r)=>{let n=p(t),i=c++;s(e,i,t),l[e]=i,f[i]=t,a[i]=new RegExp(t,r?"g":void 0),u[i]=new RegExp(n,r?"g":void 0)};b("NUMERICIDENTIFIER","0|[1-9]\\d*"),b("NUMERICIDENTIFIERLOOSE","\\d+"),b("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),b("MAINVERSION",`(${f[l.NUMERICIDENTIFIER]})\\.(${f[l.NUMERICIDENTIFIER]})\\.(${f[l.NUMERICIDENTIFIER]})`),b("MAINVERSIONLOOSE",`(${f[l.NUMERICIDENTIFIERLOOSE]})\\.(${f[l.NUMERICIDENTIFIERLOOSE]})\\.(${f[l.NUMERICIDENTIFIERLOOSE]})`),b("PRERELEASEIDENTIFIER",`(?:${f[l.NUMERICIDENTIFIER]}|${f[l.NONNUMERICIDENTIFIER]})`),b("PRERELEASEIDENTIFIERLOOSE",`(?:${f[l.NUMERICIDENTIFIERLOOSE]}|${f[l.NONNUMERICIDENTIFIER]})`),b("PRERELEASE",`(?:-(${f[l.PRERELEASEIDENTIFIER]}(?:\\.${f[l.PRERELEASEIDENTIFIER]})*))`),b("PRERELEASELOOSE",`(?:-?(${f[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${f[l.PRERELEASEIDENTIFIERLOOSE]})*))`),b("BUILDIDENTIFIER",`${d}+`),b("BUILD",`(?:\\+(${f[l.BUILDIDENTIFIER]}(?:\\.${f[l.BUILDIDENTIFIER]})*))`),b("FULLPLAIN",`v?${f[l.MAINVERSION]}${f[l.PRERELEASE]}?${f[l.BUILD]}?`),b("FULL",`^${f[l.FULLPLAIN]}$`),b("LOOSEPLAIN",`[v=\\s]*${f[l.MAINVERSIONLOOSE]}${f[l.PRERELEASELOOSE]}?${f[l.BUILD]}?`),b("LOOSE",`^${f[l.LOOSEPLAIN]}$`),b("GTLT","((?:<|>)?=?)"),b("XRANGEIDENTIFIERLOOSE",`${f[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),b("XRANGEIDENTIFIER",`${f[l.NUMERICIDENTIFIER]}|x|X|\\*`),b("XRANGEPLAIN",`[v=\\s]*(${f[l.XRANGEIDENTIFIER]})(?:\\.(${f[l.XRANGEIDENTIFIER]})(?:\\.(${f[l.XRANGEIDENTIFIER]})(?:${f[l.PRERELEASE]})?${f[l.BUILD]}?)?)?`),b("XRANGEPLAINLOOSE",`[v=\\s]*(${f[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${f[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${f[l.XRANGEIDENTIFIERLOOSE]})(?:${f[l.PRERELEASELOOSE]})?${f[l.BUILD]}?)?)?`),b("XRANGE",`^${f[l.GTLT]}\\s*${f[l.XRANGEPLAIN]}$`),b("XRANGELOOSE",`^${f[l.GTLT]}\\s*${f[l.XRANGEPLAINLOOSE]}$`),b("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),b("COERCE",`${f[l.COERCEPLAIN]}(?:$|[^\\d])`),b("COERCEFULL",f[l.COERCEPLAIN]+`(?:${f[l.PRERELEASE]})?`+`(?:${f[l.BUILD]})?`+"(?:$|[^\\d])"),b("COERCERTL",f[l.COERCE],!0),b("COERCERTLFULL",f[l.COERCEFULL],!0),b("LONETILDE","(?:~>?)"),b("TILDETRIM",`(\\s*)${f[l.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",b("TILDE",`^${f[l.LONETILDE]}${f[l.XRANGEPLAIN]}$`),b("TILDELOOSE",`^${f[l.LONETILDE]}${f[l.XRANGEPLAINLOOSE]}$`),b("LONECARET","(?:\\^)"),b("CARETTRIM",`(\\s*)${f[l.LONECARET]}
2\\s+`,!0),t.caretTrimReplace="$1^",b("CARET",`^${f[l.LONECARET]}${f[l.XRANGEPLAIN]}$`),b("CARETLOOSE",`^${f[l.LONECARET]}${f[l.XRANGEPLAINLOOSE]}$`),b("COMPARATORLOOSE",`^${f[l.GTLT]}\\s*(${f[l.LOOSEPLAIN]})$|^$`),b("COMPARATOR",`^${f[l.GTLT]}\\s*(${f[l.FULLPLAIN]})$|^$`),b("COMPARATORTRIM",`(\\s*)${f[l.GTLT]}\\s*(${f[l.LOOSEPLAIN]}|${f[l.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",b("HYPHENRANGE",`^\\s*(${f[l.XRANGEPLAIN]})\\s+-\\s+(${f[l.XRANGEPLAIN]})\\s*$`),b("HYPHENRANGELOOSE",`^\\s*(${f[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${f[l.XRANGEPLAINLOOSE]})\\s*$`),b("STAR","(<|>)?=?\\s*\\*"),b("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),b("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},91660:function(e,t,r){let n=r(89470),i=(e,t,r)=>n(e,t,">",r);e.exports=i},8590:function(e,t,r){let n=r(56161),i=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r));e.exports=i},63786:function(e,t,r){let n=r(89470),i=(e,t,r)=>n(e,t,"<",r);e.exports=i},62410:function(e,t,r){let n=r(13919),i=r(56161),o=(e,t,r)=>{let o=null,s=null,a=null;try{a=new i(t,r)}catch(e){return null}return e.forEach(e=>{a.test(e)&&(!o||-1===s.compare(e))&&(s=new n(o=e,r))}),o};e.exports=o},36818:function(e,t,r){let n=r(13919),i=r(56161),o=(e,t,r)=>{let o=null,s=null,a=null;try{a=new i(t,r)}catch(e){return null}return e.forEach(e=>{a.test(e)&&(!o||1===s.compare(e))&&(s=new n(o=e,r))}),o};e.exports=o},72242:function(e,t,r){let n=r(13919),i=r(56161),o=r(67910),s=(e,t)=>{e=new i(e,t);let r=new n("0.0.0");if(e.test(r)||(r=new n("0.0.0-0"),e.test(r)))return r;r=null;for(let t=0;t<e.set.length;++t){let i=e.set[t],s=null;i.forEach(e=>{let t=new n(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!s||o(t,s))&&(s=t);break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),s&&(!r||o(r,s))&&(r=s)}return r&&e.test(r)?r:null};e.exports=s},89470:function(e,t,r){let n=r(13919),i=r(15684),{ANY:o}=i,s=r(56161),a=r(55372),u=r(67910),f=r(48553),l=r(70439),c=r(45328),d=(e,t,r,d)=>{let h,p,b,g,m;switch(e=new n(e,d),t=new s(t,d),r){case">":h=u,p=l,b=f,g=">",m=">=";break;case"<":h=f,p=c,b=u,g="<",m="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(a(e,t,d))return!1;for(let r=0;r<t.set.length;++r){let n=t.set[r],s=null,a=null;if(n.forEach(e=>{e.semver===o&&(e=new i(">=0.0.0")),s=s||e,a=a||e,h(e.semver,s.semver,d)?s=e:b(e.semver,a.semver,d)&&(a=e)}),s.operator===g||s.operator===m||(!a.operator||a.operator===g)&&p(e,a.semver)||a.operator===m&&b(e,a.semver))return!1}return!0};e.exports=d},51470:function(e,t,r){let n=r(55372),i=r(59251);e.exports=(e,t,r)=>{let o=[],s=null,a=null,u=e.sort((e,t)=>i(e,t,r));for(let e of u)n(e,t,r)?(a=e,s||(s=e)):(a&&o.push([s,a]),a=null,s=null);s&&o.push([s,null]);let f=[];for(let[e,t]of o)e===t?f.push(e):t||e!==u[0]?t?e===u[0]?f.push(`<=${t}`):f.push(`${e} - ${t}`):f.push(`>=${e}`):f.push("*");let l=f.join(" || "),c="string"==typeof t.raw?t.raw:String(t);return l.length<c.length?l:t}},74536:function(e,t,r){let n=r(56161),i=r(15684),{ANY:o}=i,s=r(55372),a=r(59251),u=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let i=!1;e:for(let n of e.set){for(let e of t.set){let t=c(n,e,r);if(i=i||null!==t,t)continue e}if(i)return!1}return!0},f=[new i(">=0.0.0-0")],l=[new i(">=0.0.0")],c=(e,t,r)=>{let n,i,u,c,p,b,g;if(e===t)return!0;if(1===e.length&&e[0].semver===o){if(1===t.length&&t[0].semver===o)return!0;e=r.includePrerelease?f:l}if(1===t.length&&t[0].semver===o){if(r.includePrerelease)return!0;t=l}let m=new Set;for(let t of e)">"===t.operator||">="===t.operator?n=d(n,t,r):"<"===t.operator||"<="===t.operator?i=h(i,t,r):m.add(t.semver);if(m.size>1||n&&i&&((u=a(n.semver,i.semver,r))>0||0===u&&(">="!==n.operator||"<="!==i.operator)))return null;for(let e of m){if(n&&!s(e,String(n),r)||i&&!s(e,String(i),r))return null;for(let n of t)if(!s(e,String(n),r))return!1;return!0}let y=!!i&&!r.includePrerelease&&!!i.semver.prerelease.length&&i.semver,v=!!n&&!r.includePrerelease&&!!n.semver.prerelease.length&&n.semver;for(let e of(y&&1===y.prerelease.length&&"<"===i.operator&&0===y.prerelease[0]&&(y=!1),t)){if(g=g||">"===e.operator||">="===e.operator,b=b||"<"===e.operator||"<="===e.operator,n){if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),">"===e.operator||">="===e.operator){if((c=d(n,e,r))===e&&c!==n)return!1}else if(">="===n.operator&&!s(n.semver,String(e),r))return!1}if(i){if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),"<"===e.operator||"<="===e.operator){if((
2p=h(i,e,r))===e&&p!==i)return!1}else if("<="===i.operator&&!s(i.semver,String(e),r))return!1}if(!e.operator&&(i||n)&&0!==u)return!1}return(!n||!b||!!i||0===u)&&(!i||!g||!!n||0===u)&&!v&&!y},d=(e,t,r)=>{if(!e)return t;let n=a(e.semver,t.semver,r);return n>0?e:n<0?t:">"===t.operator&&">="===e.operator?t:e},h=(e,t,r)=>{if(!e)return t;let n=a(e.semver,t.semver,r);return n<0?e:n>0?t:"<"===t.operator&&"<="===e.operator?t:e};e.exports=u},8126:function(e,t,r){let n=r(56161),i=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "));e.exports=i},77904:function(e,t,r){let n=r(56161),i=(e,t)=>{try{return new n(e,t).range||"*"}catch(e){return null}};e.exports=i},67021:function(e,t){"use strict";function r(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`Wrong positive integer: ${e}`)}function n(e){if("boolean"!=typeof e)throw Error(`Expected boolean, not ${e}`)}function i(e){return e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name}function o(e,...t){if(!i(e))throw Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function s(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.wrapConstructor");r(e.outputLen),r(e.blockLen)}function a(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")}function u(e,t){o(e);let r=t.outputLen;if(e.length<r)throw Error(`digestInto() expects output buffer of length at least ${r}`)}Object.defineProperty(t,"__esModule",{value:!0}),t.output=t.exists=t.hash=t.bytes=t.bool=t.number=void 0,t.number=r,t.bool=n,t.bytes=o,t.hash=s,t.exists=a,t.output=u;let f={number:r,bool:n,bytes:o,hash:s,exists:a,output:u};t.default=f},77961:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHA2=void 0;let n=r(67021),i=r(85758);function o(e,t,r,n){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,r,n);let i=BigInt(32),o=BigInt(4294967295),s=Number(r>>i&o),a=Number(r&o),u=n?4:0,f=n?0:4;e.setUint32(t+u,s,n),e.setUint32(t+f,a,n)}class s extends i.Hash{constructor(e,t,r,n){super(),this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=n,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,i.createView)(this.buffer)}update(e){(0,n.exists)(this);let{view:t,buffer:r,blockLen:o}=this,s=(e=(0,i.toBytes)(e)).length;for(let n=0;n<s;){let a=Math.min(o-this.pos,s-n);if(a===o){let t=(0,i.createView)(e);for(;o<=s-n;n+=o)this.process(t,n);continue}r.set(e.subarray(n,n+a),this.pos),this.pos+=a,n+=a,this.pos===o&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,n.exists)(this),(0,n.output)(e,this),this.finished=!0;let{buffer:t,view:r,blockLen:s,isLE:a}=this,{pos:u}=this;t[u++]=128,this.buffer.subarray(u).fill(0),this.padOffset>s-u&&(this.process(r,0),u=0);for(let e=u;e<s;e++)t[e]=0;o(r,s-8,BigInt(8*this.length),a),this.process(r,0);let f=(0,i.createView)(e),l=this.outputLen;if(l%4)throw Error("_sha2: outputLen should be aligned to 32bit");let c=l/4,d=this.get();if(c>d.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;e<c;e++)f.setUint32(4*e,d[e],a)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let r=e.slice(0,t);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:t,buffer:r,length:n,finished:i,destroyed:o,pos:s}=this;return e.length=n,e.pos=s,e.finished=i,e.destroyed=o,n%t&&e.buffer.set(r),e}}t.SHA2=s},30455:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.add5L=t.add5H=t.add4H=t.add4L=t.add3H=t.add3L=t.add=t.rotlBL=t.rotlBH=t.rotlSL=t.rotlSH=t.rotr32L=t.rotr32H=t.rotrBL=t.rotrBH=t.rotrSL=t.rotrSH=t.shrSL=t.shrSH=t.toBig=t.split=t.fromBig=void 0;let r=BigInt(4294967296-1),n=BigInt(32);function i(e,t=!1){return t?{h:Number(e&r),l:Number(e>>n&r)}:{h:0|Number(e>>n&r),l:0|Number(e&r)}}function o(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let o=0;o<e.length;o++){let{h:s,l:a}=i(e[o],t);[r[o],n[o]]=[s,a]}return[r,n]}t.fromBig=i,t.split=o;let s=(e,t)=>BigInt(e>>>0)<<n|BigInt(t>>>0);t.toBig=s;let a=(e,t,r)=>e>>>r;t.shrSH=a;let u=(e,t,r)=>e<<32-r|t>>>r;t.shrSL=u;let f=(e,t,r)=>e>>>r|t<<32-r;t.rotrSH=f;let l=(e,t,r)=>e<<32-r|t>>>r;t.rotrSL=l;let c=(e,t,r)=>e<<64-r|t>>>r-32;t.rotrBH=c;let d=(e,t,r)=>e>>>r-32|t<<64-r;t.rotrBL=d;let h=(e,t)=>t;t.rotr32H=h;let p=(e,t)=>e;t.rotr32L=p;let b=(e,t,r)=>e<<r|t>>>32-r;t.rotlSH=b;let g=(e,t,r)=>t<<r|e>>>32-r;t.rotlSL=g;let m=(e,t,r)=>t<<r-32|e>>>64-r;t.rotlBH=m;let y=(e,t,r)=>e<<r-32|t>>>64-r;function v(e,t,r,n){let i=(t>>>0)+(n>>>0);return{h:e+r+(i/4294967296|0)|0,l:0|i}}t.rotlBL=y,t.add=v;let w=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0);t.add3L=w;let _=(e,t,r,n)=>t+r+n+(e/4294967296|0)|0;t.add3H=_;let S=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0);t.add4L=S;let E=(e,t,r,n,i)=>t+r+n+i+(e/4294967296|0)|0;t.add4H=E;let A=(e,t,r,n,i)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(i>>>0);t.add5L=A;let R=(e,t,r,n,i,o)=>t+r+n+i+o+(e/4294967296|0)|0;t.add5H=R;let x={fromBig:i,split:o,toBig:s,shrSH:a,shrSL:u,rotrSH:f,rotrSL:l,rotrBH:c,rotrBL:d,rotr32H:h,rotr32L:p,rotlSH:b,rotlSL:g,rotlBH:m,rotlBL:y,add:v,add3L:w,add3H:_,add4L:S,add4H:E,add5H:R,add5L:A};t.default=x},4319:function(e,t){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},90950:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hmac=t.HMAC=void 0;let n=r(67021),i=r(85758);class o extends i.Hash{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,n.hash)(e);let r=(0,i.toBytes)(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let o=this.blockLen,s=new Uint8Array(o);s.set(r.length>o?e.create().update(r).digest():r);for(let e=0;e<s.length;e++)s[e]^=54;this.iHash.update(s),this.oHash=e.create();for(let e=0;e<s.length;e++)s[e]^=106;this.oHash.update(s),s.fill(0)}update(e){return(0,n.exists)(this),this.iHash.update(e),this}digestInto(e){(0,n.exists)(this),(0,n.bytes)(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){let e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));let{oHash:t,iHash:r,finished:n,destroyed:i,blockLen:o,outputLen:s}=this;return e.finished=n,e.destroyed=i,e.blockLen=o,e.outputLen=s,e.oHash=t._cloneInto(e.oHash),e.iHash=r._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}t.HMAC=o;let s=(e,t,r)=>new o(e,t).update(r).digest();t.hmac=s,t.hmac.create=(e,t)=>new o(e,t)},44212:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha224=t.sha256=void 0;let n=r(77961),i=r(85758),o=(e,t,r)=>e&t^~e&r,s=(e,t,r)=>e&t^e&r^t&r,a=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),u=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),f=new Uint32Array(64);class l extends n.SHA2{constructor(){super(64,32,8,!1),this.A=0|u[0],this.B=0|u[1],this.C=0|u[2],this.D=0|u[3],this.E=0|u[4],this.F=0|u[5],this.G=0|u[6],this.H=0|u[7]}get(){let{A:e,B:t,C:r,D:n,E:i,F:o,G:s,H:a}=this;return[e,t,r,n,i,o,s,a]}set(e,t,r,n,i,o,s,a){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|i,this.F=0|o,this.G=0|s,this.H=0|a}process(e,t){for(let r=0;r<16;r++,t+=4)f[r]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=f[e-15],r=f[e-2],n=(0,i.rotr)(t,7)^(0,i.rotr)(t,18)^t>>>3,o=(0,i.rotr)(r,17)^(0,i.rotr)(r,19)^r>>>10;f[e]=o+f[e-7]+n+f[e-16]|0}let{A:r,B:n,C:u,D:l,E:c,F:d,G:h,H:p}=this;for(let e=0;e<64;e++){let t=p+((0,i.rotr)(c,6)^(0,i.rotr)(c,11)^(0,i.rotr)(c,25))+o(c,d,h)+a[e]+f[e]|0,b=((0,i.rotr)(r,2)^(0,i.rotr)(r,13)^(0,i.rotr)(r,22))+s(r,n,u)|0;p=h,h=d,d=c,c=l+t|0,l=u,u=n,n=r,r=t+b|0}r=r+this.A|0,n=n+this.B|0,u=u+this.C|0,l=l+this.D|0,c=c+this.E|0,d=d+this.F|0,h=h+this.G|0,p=p+this.H|0,this.set(r,n,u,l,c,d,h,p)}roundClean(){f.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class c extends l{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}t.sha256=(0,i.wrapConstructor)(()=>new l),t.sha224=(0,i.wrapConstructor)(()=>new c)},52975:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shake256=t.shake128=t.keccak_512=t.keccak_384=t.keccak_256=t.keccak_224=t.sha3_512=t.sha3_384=t.sha3_256=t.sha3_224=t.Keccak=t.keccakP=void 0;let n=r(67021),i=r(30455),o=r(85758),[s,a,u]=[[],[],[]],f=BigInt(0),l=BigInt(1),c=BigInt(2),d=BigInt(7),h=BigInt(256),p=BigInt(113);for(let e=0,t=l,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],s.push(2*(5*n+r)),a.push((e+1)*(e+2)/2%64);let i=f;for(let e=0;e<7;e++)(t=(t<<l^(t>>d)*p)%h)&c&&(i^=l<<(l<<BigInt(e))-l);u.push(i)}let[b,g]=(0,i.split)(u,!0),m=(e,t,r)=>r>32?(0,i.rotlBH)(e,t,r):(0,i.rotlSH)(e,t,r),y=(e,t,r)=>r>32?(0,i.rotlBL)(e,t,r):(0,i.rotlSL)(e,t,r);function v(e,t=24){let r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let n=(t+8)%10,i=(t+2)%10,o=r[i],s=r[i+1],a=m(o,s,1)^r[n],u=y(o,s,1)^r[n+1];for(let r=0;r<50;r+=10)e[t+r]^=a,e[t+r+1]^=u}let t=e[2],i=e[3];for(let r=0;r<24;r++){let n=a[r],o=m(t,i,n),u=y(t,i,n),f=s[r];t=e[f],i=e[f+1],e[f]=o,e[f+1]=u}for(let t=0;t<50;t+=10){for(let n=0;n<10;n++)r[n]=e[t+n];for(let n=0;n<10;n++)e[t+n]^=~r[(n+2)%10]&r[(n+4)%10]}e[0]^=b[n],e[1]^=g[n]}r.fill(0)}t.keccakP=v;class w extends o.Hash{constructor(e,t,r,i=!1,s=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=i,this.rounds=s,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,n.number)(r),0>=this.blockLen||this.blockLen>=200)throw Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,o.u32)(this.state)}keccak(){v(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){(0,n.exists)(this);let{blockLen:t,state:r}=this,i=(e=(0,o.toBytes)(e)).length;for(let n=0;n<i;){let o=Math.min(t-this.pos,i-n);for(let t=0;t<o;t++)r[this.pos++]^=e[n++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:r,blockLen:n}=this;e[r]^=t,(128&t)!=0&&r===n-1&&this.keccak(),e[n-1]^=128,this.keccak()}writeInto(e){(0,n.exists)(this,!1),(0,n.bytes)(e),this.finish();let t=this.state,{blockLen:r}=this;for(let n=0,i=e.length;n<i;){this.posOut>=r&&this.keccak();let o=Math.min(r-this.posOut,i-n);e.set(t.subarray(this.posOut,this.posOut+o),n),this.posOut+=o,n+=o}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,n.number)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,n.output)(e,this),this.finished)throw Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){let{blockLen:t,suffix:r,outputLen:n,rounds:i,enableXOF:o}=this;return e||(e=new w(t,r,n,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=r,e.outputLen=n,e.enableXOF=o,e.destroyed=this.destroyed,e}}t.Keccak=w;let _=(e,t,r)=>(0,o.wrapConstructor)(()=>new w(t,e,r));t.sha3_224=_(6,144,28),t.sha3_256=_(6,136,32),t.sha3_384=_(6,104,48),t.sha3_512=_(6,72,64),t.keccak_224=_(1,144,28),t.keccak_256=_(1,136,32),t.keccak_384=_(1,104,48),t.keccak_512=_(1,72,64);let S=(e,t,r)=>(0,o.wrapXOFConstructorWithOpts)((n={})=>new w(t,e,void 0===n.dkLen?r:n.dkLen,!0));t.shake128=S(31,168,16),t.shake256=S(31,136,32)},85758:function(e,t,r){"use strict";/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(t,"__esMo
2dule",{value:!0}),t.randomBytes=t.wrapXOFConstructorWithOpts=t.wrapConstructorWithOpts=t.wrapConstructor=t.checkOpts=t.Hash=t.concatBytes=t.toBytes=t.utf8ToBytes=t.asyncLoop=t.nextTick=t.hexToBytes=t.bytesToHex=t.isLE=t.rotr=t.createView=t.u32=t.u8=void 0;let n=r(4319),i=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength);t.u8=i;let o=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));function s(e){return e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name}t.u32=o;let a=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);t.createView=a;let u=(e,t)=>e<<32-t|e>>>t;if(t.rotr=u,t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],!t.isLE)throw Error("Non little-endian hardware is not supported");let f=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function l(e){if(!s(e))throw Error("Uint8Array expected");let t="";for(let r=0;r<e.length;r++)t+=f[e[r]];return t}t.bytesToHex=l;let c={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function d(e){return e>=c._0&&e<=c._9?e-c._0:e>=c._A&&e<=c._F?e-(c._A-10):e>=c._a&&e<=c._f?e-(c._a-10):void 0}function h(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);let t=e.length,r=t/2;if(t%2)throw Error("padded hex string expected, got unpadded hex of length "+t);let n=new Uint8Array(r);for(let t=0,i=0;t<r;t++,i+=2){let r=d(e.charCodeAt(i)),o=d(e.charCodeAt(i+1));if(void 0===r||void 0===o)throw Error('hex string expected, got non-hex character "'+(e[i]+e[i+1])+'" at index '+i);n[t]=16*r+o}return n}t.hexToBytes=h;let p=async()=>{};async function b(e,r,n){let i=Date.now();for(let o=0;o<e;o++){n(o);let e=Date.now()-i;e>=0&&e<r||(await (0,t.nextTick)(),i+=e)}}function g(e){if("string"!=typeof e)throw Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function m(e){if("string"==typeof e&&(e=g(e)),!s(e))throw Error(`expected Uint8Array, got ${typeof e}`);return e}function y(...e){let t=0;for(let r=0;r<e.length;r++){let n=e[r];if(!s(n))throw Error("Uint8Array expected");t+=n.length}let r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){let i=e[t];r.set(i,n),n+=i.length}return r}t.nextTick=p,t.asyncLoop=b,t.utf8ToBytes=g,t.toBytes=m,t.concatBytes=y;class v{clone(){return this._cloneInto()}}t.Hash=v;let w={}.toString;function _(e,t){if(void 0!==t&&"[object Object]"!==w.call(t))throw Error("Options should be object or undefined");return Object.assign(e,t)}function S(e){let t=t=>e().update(m(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function E(e){let t=(t,r)=>e(r).update(m(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t}function A(e){let t=(t,r)=>e(r).update(m(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t}function R(e=32){if(n.crypto&&"function"==typeof n.crypto.getRandomValues)return n.crypto.getRandomValues(new Uint8Array(e));throw Error("crypto.getRandomValues must be defined")}t.checkOpts=_,t.wrapConstructor=S,t.wrapConstructorWithOpts=E,t.wrapXOFConstructorWithOpts=A,t.randomBytes=R},6202:function(e,t,r){"use strict";let n;let{SymbolDispose:i}=r(235),{AbortError:o,codes:s}=r(67682),{isNodeStream:a,isWebStream:u,kControllerErrorFunction:f}=r(18462),l=r(7943),{ERR_INVALID_ARG_TYPE:c}=s,d=(e,t)=>{if("object"!=typeof e||!("aborted"in e))throw new c(t,"AbortSignal",e)};e.exports.addAbortSignal=function(t,r){if(d(t,"signal"),!a(r)&&!u(r))throw new c("stream",["ReadableStream","WritableStream","Stream"],r);return e.exports.addAbortSignalNoValidate(t,r)},e.exports.addAbortSignalNoValidate=function(e,t){if("object"!=typeof e||!("aborted"in e))return t;let s=a(t)?()=>{t.destroy(new o(void 0,{cause:e.reason}))}:()=>{t[f](new o(void 0,{cause:e.reason}))};return e.aborted?s():l(t,(n=n||r(24422).addAbortListener)(e,s)[i]),t}},75974:function(e,t,r){"use strict";let{StringPrototypeSlice:n,SymbolIterator:i,TypedArrayPrototypeSet:o,Uint8Array:s}=r(235),{Buffer:a}=r(9109),{inspect:u}=r(24422);e.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){let t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}unshift(e){let t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}shift(){if(0===this.length)return;let e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(0===this.length)return"";let t=this.head,r=""+t.data;for(;null!==(t=t.next);)r+=e+t.data;return r}concat(e){if(0===this.length)return a.alloc(0);let t=a.allocUnsafe(e>>>0),r=this.head,n=0;for(;r;)o(t,r.data,n),n+=r.data.length,r=r.next;return t}consume(e,t){let r=this.head.data;if(e<r.length){let t=r.slice(0,e);return this.head.data=r.slice(e),t}return e===r.length?this.shift():t?this._getString(e):this._getBuffer(e)}first(){return this.head.data}*[i](){for(let e=this.head;e;e=e.next)yield e.data}_getString(e){let t="",r=this.head,i=0;do{let o=r.data;if(e>o.length)t+=o,e-=o.length;else{e===o.length?(t+=o,++i,r.next?this.head=r.next:this.head=this.tail=null):(t+=n(o,0,e),this.head=r,r.data=n(o,e));break}++i}while(null!==(r=r.next));return this.length-=i,t}_getBuffer(e){let t=a.allocUnsafe(e),r=e,n=this.head,i=0;do{let a=n.data;if(e>a.length)o(t,a,r-e),e-=a.length;else{e===a.length?(o(t,a,r-e),++i,n.next?this.head=n.next:this.head=this.tail=null):(o(t,new s(a.buffer,a.byteOffset,e),r-e),this.head=n,n.data=a.slice(e));break}++i}while(null!==(n=n.next));return this.length-=i,t}[Symbol.for("nodejs.util.inspect.custom")](e,t){return u(this,{...t,depth:0,customInspect:!1})}}},17836:function(e,t,r){"use strict";let{pipeline:n}=r(55658),i=r(71570),{destroyer:o}
2=r(3186),{isNodeStream:s,isReadable:a,isWritable:u,isWebStream:f,isTransformStream:l,isWritableStream:c,isReadableStream:d}=r(18462),{AbortError:h,codes:{ERR_INVALID_ARG_VALUE:p,ERR_MISSING_ARGS:b}}=r(67682),g=r(7943);e.exports=function(...e){let t,r,m,y,v;if(0===e.length)throw new b("streams");if(1===e.length)return i.from(e[0]);let w=[...e];if("function"==typeof e[0]&&(e[0]=i.from(e[0])),"function"==typeof e[e.length-1]){let t=e.length-1;e[t]=i.from(e[t])}for(let t=0;t<e.length;++t)if(s(e[t])||f(e[t])){if(t<e.length-1&&!(a(e[t])||d(e[t])||l(e[t])))throw new p(`streams[${t}]`,w[t],"must be readable");if(t>0&&!(u(e[t])||c(e[t])||l(e[t])))throw new p(`streams[${t}]`,w[t],"must be writable")}function _(e){let t=y;y=null,t?t(e):e?v.destroy(e):R||A||v.destroy()}let S=e[0],E=n(e,_),A=!!(u(S)||c(S)||l(S)),R=!!(a(E)||d(E)||l(E));if(v=new i({writableObjectMode:!!(null!=S&&S.writableObjectMode),readableObjectMode:!!(null!=E&&E.readableObjectMode),writable:A,readable:R}),A){if(s(S))v._write=function(e,r,n){S.write(e,r)?n():t=n},v._final=function(e){S.end(),r=e},S.on("drain",function(){if(t){let e=t;t=null,e()}});else if(f(S)){let e=(l(S)?S.writable:S).getWriter();v._write=async function(t,r,n){try{await e.ready,e.write(t).catch(()=>{}),n()}catch(e){n(e)}},v._final=async function(t){try{await e.ready,e.close().catch(()=>{}),r=t}catch(e){t(e)}}}g(l(E)?E.readable:E,()=>{if(r){let e=r;r=null,e()}})}if(R){if(s(E))E.on("readable",function(){if(m){let e=m;m=null,e()}}),E.on("end",function(){v.push(null)}),v._read=function(){for(;;){let e=E.read();if(null===e){m=v._read;return}if(!v.push(e))return}};else if(f(E)){let e=(l(E)?E.readable:E).getReader();v._read=async function(){for(;;)try{let{value:t,done:r}=await e.read();if(!v.push(t))return;if(r){v.push(null);return}}catch{return}}}}return v._destroy=function(e,n){e||null===y||(e=new h),m=null,t=null,r=null,null===y?n(e):(y=n,s(E)&&o(E,e))},v}},3186:function(e,t,r){"use strict";let n=r(25566),{aggregateTwoErrors:i,codes:{ERR_MULTIPLE_CALLBACK:o},AbortError:s}=r(67682),{Symbol:a}=r(235),{kIsDestroyed:u,isDestroyed:f,isFinished:l,isServerRequest:c}=r(18462),d=a("kDestroy"),h=a("kConstruct");function p(e,t,r){e&&(e.stack,t&&!t.errored&&(t.errored=e),r&&!r.errored&&(r.errored=e))}function b(e,t){let r=this._readableState,n=this._writableState,o=n||r;return null!=n&&n.destroyed||null!=r&&r.destroyed?"function"==typeof t&&t():(p(e,n,r),n&&(n.destroyed=!0),r&&(r.destroyed=!0),o.constructed?g(this,e,t):this.once(d,function(r){g(this,i(r,e),t)})),this}function g(e,t,r){let i=!1;function o(t){if(i)return;i=!0;let o=e._readableState,s=e._writableState;p(t,s,o),s&&(s.closed=!0),o&&(o.closed=!0),"function"==typeof r&&r(t),t?n.nextTick(m,e,t):n.nextTick(y,e)}try{e._destroy(t||null,o)}catch(e){o(e)}}function m(e,t){v(e,t),y(e)}function y(e){let t=e._readableState,r=e._writableState;r&&(r.closeEmitted=!0),t&&(t.closeEmitted=!0),(null!=r&&r.emitClose||null!=t&&t.emitClose)&&e.emit("close")}function v(e,t){let r=e._readableState,n=e._writableState;null!=n&&n.errorEmitted||null!=r&&r.errorEmitted||(n&&(n.errorEmitted=!0),r&&(r.errorEmitted=!0),e.emit("error",t))}function w(){let e=this._readableState,t=this._writableState;e&&(e.constructed=!0,e.closed=!1,e.closeEmitted=!1,e.destroyed=!1,e.errored=null,e.errorEmitted=!1,e.reading=!1,e.ended=!1===e.readable,e.endEmitted=!1===e.readable),t&&(t.constructed=!0,t.destroyed=!1,t.closed=!1,t.closeEmitted=!1,t.errored=null,t.errorEmitted=!1,t.finalCalled=!1,t.prefinished=!1,t.ended=!1===t.writable,t.ending=!1===t.writable,t.finished=!1===t.writable)}function _(e,t,r){let i=e._readableState,o=e._writableState;if(null!=o&&o.destroyed||null!=i&&i.destroyed)return this;null!=i&&i.autoDestroy||null!=o&&o.autoDestroy?e.destroy(t):t&&(t.stack,o&&!o.errored&&(o.errored=t),i&&!i.errored&&(i.errored=t),r?n.nextTick(v,e,t):v(e,t))}function S(e,t){if("function"!=typeof e._construct)return;let r=e._readableState,i=e._writableState;r&&(r.constructed=!1),i&&(i.constructed=!1),e.once(h,t),e.listenerCount(h)>1||n.nextTick(E,e)}function E(e){let t=!1;function r(r){if(t){_(e,null!=r?r:new o);return}t=!0;let i=e._readableState,s=e._writableState,a=s||i;i&&(i.constructed=!0),s&&(s.constructed=!0),a.destroyed?e.emit(d,r):r?_(e,r,!0):n.nextTick(A,e)}try{e._construct(e=>{n.nextTick(r,e)})}catch(e){n.nextTick(r,e)}}function A(e){e.emit(h)}function R(e){return(null==e?void 0:e.setHeader)&&"function"==typeof e.abort}function x(e){e.emit("close")}function M(e,t){e.emit("error",t),n.nextTick(x,e)}function k(e,t){!(!e||f(e))&&(t||l(e)||(t=new s),c(e)?(e.socket=null,e.destroy(t)):R(e)?e.abort():R(e.req)?e.req.abort():"function"==typeof e.destroy?e.destroy(t):"function"==typeof e.close?e.close():t?n.nextTick(M,e,t):n.nextTick(x,e),e.destroyed||(e[u]=!0))}
2e.exports={construct:S,destroyer:k,destroy:b,undestroy:w,errorOrDestroy:_}},71570:function(e,t,r){"use strict";let n,i;let{ObjectDefineProperties:o,ObjectGetOwnPropertyDescriptor:s,ObjectKeys:a,ObjectSetPrototypeOf:u}=r(235);e.exports=c;let f=r(94825),l=r(1917);u(c.prototype,f.prototype),u(c,f);{let e=a(l.prototype);for(let t=0;t<e.length;t++){let r=e[t];c.prototype[r]||(c.prototype[r]=l.prototype[r])}}function c(e){if(!(this instanceof c))return new c(e);f.call(this,e),l.call(this,e),e?(this.allowHalfOpen=!1!==e.allowHalfOpen,!1===e.readable&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===e.writable&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}function d(){return void 0===n&&(n={}),n}o(c.prototype,{writable:{__proto__:null,...s(l.prototype,"writable")},writableHighWaterMark:{__proto__:null,...s(l.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...s(l.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...s(l.prototype,"writableBuffer")},writableLength:{__proto__:null,...s(l.prototype,"writableLength")},writableFinished:{__proto__:null,...s(l.prototype,"writableFinished")},writableCorked:{__proto__:null,...s(l.prototype,"writableCorked")},writableEnded:{__proto__:null,...s(l.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...s(l.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set(e){this._readableState&&this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}}),c.fromWeb=function(e,t){return d().newStreamDuplexFromReadableWritablePair(e,t)},c.toWeb=function(e){return d().newReadableWritablePairFromDuplex(e)},c.from=function(e){return i||(i=r(33077)),i(e,"body")}},33077:function(e,t,r){"use strict";let n=r(25566),i=r(9109),{isReadable:o,isWritable:s,isIterable:a,isNodeStream:u,isReadableNodeStream:f,isWritableNodeStream:l,isDuplexNodeStream:c,isReadableStream:d,isWritableStream:h}=r(18462),p=r(7943),{AbortError:b,codes:{ERR_INVALID_ARG_TYPE:g,ERR_INVALID_RETURN_VALUE:m}}=r(67682),{destroyer:y}=r(3186),v=r(71570),w=r(94825),_=r(1917),{createDeferredPromise:S}=r(24422),E=r(68483),A=globalThis.Blob||i.Blob,R=void 0!==A?function(e){return e instanceof A}:function(e){return!1},x=globalThis.AbortController||r(8741).AbortController,{FunctionPrototypeCall:M}=r(235);class k extends v{constructor(e){super(e),(null==e?void 0:e.readable)===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),(null==e?void 0:e.writable)===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}}function O(e){let{promise:t,resolve:r}=S(),i=new x,o=i.signal;return{value:e(async function*(){for(;;){let e=t;t=null;let{chunk:i,done:s,cb:a}=await e;if(n.nextTick(a),s)return;if(o.aborted)throw new b(void 0,{cause:o.reason});({promise:t,resolve:r}=S()),yield i}}(),{signal:o}),write(e,t,n){let i=r;r=null,i({chunk:e,done:!1,cb:n})},final(e){let t=r;r=null,t({done:!0,cb:e})},destroy(e,t){i.abort(),t(e)}}}function T(e){let t,r,n,i,a;let u=e.readable&&"function"!=typeof e.readable.read?w.wrap(e.readable):e.readable,f=e.writable,l=!!o(u),c=!!s(f);function d(e){let t=i;i=null,t?t(e):e&&a.destroy(e)}return a=new k({readableObjectMode:!!(null!=u&&u.readableObjectMode),writableObjectMode:!!(null!=f&&f.writableObjectMode),readable:l,writable:c}),c&&(p(f,e=>{c=!1,e&&y(u,e),d(e)}),a._write=function(e,r,n){f.write(e,r)?n():t=n},a._final=function(e){f.end(),r=e},f.on("drain",function(){if(t){let e=t;t=null,e()}}),f.on("finish",function(){if(r){let e=r;r=null,e()}})),l&&(p(u,e=>{l=!1,e&&y(u,e),d(e)}),u.on("readable",function(){if(n){let e=n;n=null,e()}}),u.on("end",function(){a.push(null)}),a._read=function(){for(;;){let e=u.read();if(null===e){n=a._read;return}if(!a.push(e))return}}),a._destroy=function(e,o){e||null===i||(e=new b),n=null,t=null,r=null,null===i?o(e):(i=o,y(f,e),y(u,e))},a}e.exports=function e(t,r){if(c(t))return t;if(f(t))return T({readable:t});if(l(t))return T({writable:t});if(u(t))return T({writable:!1,readable:!1});if(d(t))return T({readable:w.fromWeb(t)});if(h(t))return T({writable:_.fromWeb(t)});if("function"==typeof t){let{value:e,write:i,final:o,destroy:s}=O(t);if(a(e))return E(k,e,{objectMode:!0,write:i,final:o,destroy:s});let u=null==e?void 0:e.then;if("function"==typeof u){let t;let r=M(u,e,e=>
2{if(null!=e)throw new m("nully","body",e)},e=>{y(t,e)});return t=new k({objectMode:!0,readable:!1,write:i,final(e){o(async()=>{try{await r,n.nextTick(e,null)}catch(t){n.nextTick(e,t)}})},destroy:s})}throw new m("Iterable, AsyncIterable or AsyncFunction",r,e)}if(R(t))return e(t.arrayBuffer());if(a(t))return E(k,t,{objectMode:!0,writable:!1});if(d(null==t?void 0:t.readable)&&h(null==t?void 0:t.writable))return k.fromWeb(t);if("object"==typeof(null==t?void 0:t.writable)||"object"==typeof(null==t?void 0:t.readable))return T({readable:null!=t&&t.readable?f(null==t?void 0:t.readable)?null==t?void 0:t.readable:e(t.readable):void 0,writable:null!=t&&t.writable?l(null==t?void 0:t.writable)?null==t?void 0:t.writable:e(t.writable):void 0});let i=null==t?void 0:t.then;if("function"==typeof i){let e;return M(i,t,t=>{null!=t&&e.push(t),e.push(null)},t=>{y(e,t)}),e=new k({objectMode:!0,writable:!1,read(){}})}throw new g(r,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],t)}},7943:function(e,t,r){let n;"use strict";let i=r(25566),{AbortError:o,codes:s}=r(67682),{ERR_INVALID_ARG_TYPE:a,ERR_STREAM_PREMATURE_CLOSE:u}=s,{kEmptyObject:f,once:l}=r(24422),{validateAbortSignal:c,validateFunction:d,validateObject:h,validateBoolean:p}=r(77475),{Promise:b,PromisePrototypeThen:g,SymbolDispose:m}=r(235),{isClosed:y,isReadable:v,isReadableNodeStream:w,isReadableStream:_,isReadableFinished:S,isReadableErrored:E,isWritable:A,isWritableNodeStream:R,isWritableStream:x,isWritableFinished:M,isWritableErrored:k,isNodeStream:O,willEmitClose:T,kIsClosedPromise:I}=r(18462);function P(e){return e.setHeader&&"function"==typeof e.abort}let L=()=>{};function B(e,t,s){var p,b;if(2==arguments.length?(s=t,t=f):null==t?t=f:h(t,"options"),d(s,"callback"),
2c(t.signal,"options.signal"),s=l(s),_(e)||x(e))return N(e,t,s);if(!O(e))throw new a("stream",["ReadableStream","WritableStream","Stream"],e);let g=null!==(p=t.readable)&&void 0!==p?p:w(e),I=null!==(b=t.writable)&&void 0!==b?b:R(e),B=e._writableState,C=e._readableState,j=()=>{e.writable||U()},D=T(e)&&w(e)===g&&R(e)===I,F=M(e,!1),U=()=>{F=!0,e.destroyed&&(D=!1),D&&(!e.readable||g)||g&&!q||s.call(e)},q=S(e,!1),$=()=>{q=!0,e.destroyed&&(D=!1),D&&(!e.writable||I)||I&&!F||s.call(e)},z=t=>{s.call(e,t)},H=y(e),W=()=>{H=!0;let t=k(e)||E(e);return t&&"boolean"!=typeof t?s.call(e,t):g&&!q&&w(e,!0)&&!S(e,!1)||I&&!F&&!M(e,!1)?s.call(e,new u):void s.call(e)},V=()=>{H=!0;let t=k(e)||E(e);if(t&&"boolean"!=typeof t)return s.call(e,t);s.call(e)},G=()=>{e.req.on("finish",U)};P(e)?(e.on("complete",U),D||e.on("abort",W),e.req?G():e.on("request",G)):I&&!B&&(e.on("end",j),e.on("close",j)),D||"boolean"!=typeof e.aborted||e.on("aborted",W),e.on("end",$),e.on("finish",U),!1!==t.error&&e.on("error",z),e.on("close",W),H?i.nextTick(W):null!=B&&B.errorEmitted||null!=C&&C.errorEmitted?D||i.nextTick(V):!g&&(!D||v(e))&&(F||!1===A(e))?i.nextTick(V):!I&&(!D||A(e))&&(q||!1===v(e))?i.nextTick(V):C&&e.req&&e.aborted&&i.nextTick(V);let Z=()=>{s=L,e.removeListener("aborted",W),e.removeListener("complete",U),e.removeListener("abort",W),e.removeListener("request",G),e.req&&e.req.removeListener("finish",U),e.removeListener("end",j),e.removeListener("close",j),e.removeListener("finish",U),e.removeListener("end",$),e.removeListener("error",z),e.removeListener("close",W)};if(t.signal&&!H){let a=()=>{let r=s;Z(),r.call(e,new o(void 0,{cause:t.signal.reason}))};if(t.signal.aborted)i.nextTick(a);else{let i=(n=n||r(24422).addAbortListener)(t.signal,a),o=s;s=l((...t)=>{i[m](),o.apply(e,t)})}}return Z}function N(e,t,s){let a=!1,u=L;if(t.signal){if(u=()=>{a=!0,s.call(e,new o(void 0,{cause:t.signal.reason}))},t.signal.aborted)i.nextTick(u);else{let i=(n=n||r(24422).addAbortListener)(t.signal,u),o=s;s=l((...t)=>{i[m](),o.apply(e,t)})}}let f=(...t)=>{a||i.nextTick(()=>s.apply(e,t))};return g(e[I].promise,f,f),L}function C(e,t){var r;let n=!1;return null===t&&(t=f),null!==(r=t)&&void 0!==r&&r.cleanup&&(p(t.cleanup,"cleanup"),n=t.cleanup),new b((r,i)=>{let o=B(e,t,e=>{n&&o(),e?i(e):r()})})}e.exports=B,e.exports.finished=C},68483:function(e,t,r){"use strict";let n=r(25566),{PromisePrototypeThen:i,SymbolAsyncIterator:o,SymbolIterator:s}=r(235),{Buffer:a}=r(9109),{ERR_INVALID_ARG_TYPE:u,ERR_STREAM_NULL_VALUES:f}=r(67682).codes;function l(e,t,r){let l,c;if("string"==typeof t||t instanceof a)return new e({objectMode:!0,...r,read(){this.push(t),this.push(null)}});if(t&&t[o])c=!0,l=t[o]();else if(t&&t[s])c=!1,l=t[s]();else throw new u("iterable",["Iterable"],t);let d=new e({objectMode:!0,highWaterMark:1,...r}),h=!1;async function p(e){let t=null!=e,r="function"==typeof l.throw;if(t&&r){let{value:t,done:r}=await l.throw(e);if(await t,r)return}if("function"==typeof l.return){let{value:e}=await l.return();await e}}async function b(){for(;;){try{let{value:e,done:t}=c?await l.next():l.next();if(t)d.push(null);else{let t=e&&"function"==typeof e.then?await e:e;if(null===t)throw h=!1,new f;if(d.push(t))continue;h=!1}}catch(e){d.destroy(e)}break}}return d._read=function(){h||(h=!0,b())},d._destroy=function(e,t){i(p(e),()=>n.nextTick(t,e),r=>n.nextTick(t,r||e))},d}e.exports=l},56269:function(e,t,r){"use strict";let{ArrayIsArray:n,ObjectSetPrototypeOf:i}=r(235),{EventEmitter:o}=r(68885);function s(e){o.call(this,e)}function a(e,t,r){if("function"==typeof e.prependListener)return e.prepe
2ndListener(t,r);e._events&&e._events[t]?n(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}i(s.prototype,o.prototype),i(s,o),s.prototype.pipe=function(e,t){let r=this;function n(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",n),e.on("drain",i),e._isStdio||t&&!1===t.end||(r.on("end",u),r.on("close",f));let s=!1;function u(){s||(s=!0,e.end())}function f(){s||(s=!0,"function"==typeof e.destroy&&e.destroy())}function l(e){c(),0===o.listenerCount(this,"error")&&this.emit("error",e)}function c(){r.removeListener("data",n),e.removeListener("drain",i),r.removeListener("end",u),r.removeListener("close",f),r.removeListener("error",l),e.removeListener("error",l),r.removeListener("end",c),r.removeListener("close",c),e.removeListener("close",c)}return a(r,"error",l),a(e,"error",l),r.on("end",c),r.on("close",c),e.on("close",c),e.emit("pipe",r),e},e.exports={Stream:s,prependListener:a}},39631:function(e,t,r){"use strict";let n=globalThis.AbortController||r(8741).AbortController,{codes:{ERR_INVALID_ARG_VALUE:i,ERR_INVALID_ARG_TYPE:o,ERR_MISSING_ARGS:s,ERR_OUT_OF_RANGE:a},AbortError:u}=r(67682),{validateAbortSignal:f,validateInteger:l,validateObject:c}=r(77475),d=r(235).Symbol("kWeak"),h=r(235).Symbol("kResistStopPropagation"),{finished:p}=r(7943),b=r(17836),{addAbortSignalNoValidate:g}=r(6202),{isWritable:m,isNodeStream:y}=r(18462),{deprecate:v}=r(24422),{ArrayPrototypePush:w,Boolean:_,MathFloor:S,Number:E,NumberIsNaN:A,Promise:R,PromiseReject:x,PromiseResolve:M,PromisePrototypeThen:k,Symbol:O}=r(235),T=O("kEmpty"),I=O("kEof");function P(e,t){if(null!=t&&c(t,"options"),(null==t?void 0:t.signal)!=null&&f(t.signal,"options.signal"),y(e)&&!m(e))throw new i("stream",e,"must be writable");let r=b(this,e);return null!=t&&t.signal&&g(t.signal,r),r}function L(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);null!=t&&c(t,"options"),(null==t?void 0:t.signal)!=null&&f(t.signal,"options.signal");let n=1;(null==t?void 0:t.concurrency)!=null&&(n=S(t.concurrency));let i=n-1;return(null==t?void 0:t.highWaterMark)!=null&&(i=S(t.highWaterMark)),l(n,"options.concurrency",1),l(i,"options.highWaterMark",0),i+=n,(async function*(){let o,s;let a=r(24422).AbortSignalAny([null==t?void 0:t.signal].filter(_)),f=this,l=[],c={signal:a},d=!1,h=0;function p(){d=!0,b()}function b(){h-=1,g()}function g(){s&&!d&&h<n&&l.length<i&&(s(),s=null)}(async function(){try{for await(let t of f){if(d)return;if(a.aborted)throw new u;try{if((t=e(t,c))===T)continue;t=M(t)}catch(e){t=x(e)}h+=1,k(t,b,p),l.push(t),o&&(o(),o=null),!d&&(l.length>=i||h>=n)&&await new R(e=>{s=e})}l.push(I)}catch(t){let e=x(t);k(e,b,p),l.push(e)}finally{d=!0,o&&(o(),o=null)}})();try{for(;;){for(;l.length>0;){let e=await l[0];if(e===I)return;if(a.aborted)throw new u;e!==T&&(yield e),l.shift(),g()}await new R(e=>{o=e})}}finally{d=!0,s&&(s(),s=null)}}).call(this)}function B(e){return null!=e&&c(e,"options"),(null==e?void 0:e.signal)!=null&&f(e.signal,"options.signal"),(async function*(){let t=0;for await(let n of this){var r;if(null!=e&&null!==(r=e.signal)&&void 0!==r&&r.aborted)throw new u({cause:e.signal.reason});yield[t++,n]}}).call(this)}async function N(e,t){for await(let r of F.call(this,e,t))return!0;return!1}async function C(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);return!await N.call(this,async(...t)=>!await e(...t),t)}async function j(e,t){for await(let r of F.call(this,e,t))return r}async function D(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);async function r(t,r){return await e(t,r),T}for await(let e of L.call(this,r,t));}function F(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);async function r(t,r){return await e(t,r)?t:T}return L.call(this,r,t)}class U extends s{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}async function q(e,t,r){var i,s;if("function"!=typeof e)throw new o("reducer",["Function","AsyncFunction"],e);null!=r&&c(r,"options"),(null==r?void 0:r.signal)!=null&&f(r.signal,"options.signal");let a=arguments.length>1;if(null!=r&&null!==(i=r.signal)&&void 0!==i&&i.aborted){let e=new u(void 0,{cause:r.signal.reason});throw this.once("error",()=>{}),await p(this.destroy(e)),e}let l=new n,b=l.signal;if(null!=r&&r.signal){let e={once:!0,[d]:this,[h]:!0};r.signal.addEventListener("abort",()=>l.abort(),e)}let g=!1;try{for await(let n of this){if(g=!0,null!=r&&null!==(s=r.signal)&&void 0!==s&&s.aborted)throw new u;a?t=await e(t,n,{signal:b}):(t=n,a=!0)}if(!g&&!a)throw new U}finally{l.abort()}return t}async function $(e){null!=e&&c(e,"options"),(null==e?void 0:e.signal)!=null&&f(e.signal,"options.signal");let t=[];for await(let n of this){var r;if(null!=e&&null!==(r=e.signal)&&void 0!==r&&r.aborted)throw new u(void 0,{cause:e.signal.reason});w(t,n)}return t}function z(e,t){let r=L.call(this,e,t);return(async function*(){for await(let e of r)yield*e}).call(this)}function H(e){if(A(e=E(e)))return 0;if(e<0)throw new a("number",">= 0",e);return e}function W(e,t){return null!=t&&c(t,"options"),(null==t?void 0:t.signal)!=null&&f(t.signal,"options.signal"),e=H(e),(async function*(){var r,n;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new u;for await(let r of this){if(null!=t&&null!==(n=t.signal)&&void 0!==n&&n.aborted)throw new u;e--<=0&&(yield r)}}).call(this)}function V(e,t){return null!=t&&c(t,"options"),(null==t?void 0:t.signal)!=null&&f(t.signal,"options.signal"),e=H(e),(async function*(){var r,n;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new u;for await(let r of this){if(null!=t&&null!==(n=t.signal)&&void 0!==n&&n.aborted)throw new u;if(e-- >0&&(yield r),e<=0)return}}).call(this)}e.exports.streamReturningOperators={asIndexedPairs:v(B,"readable.asIndexedPairs will be removed in a future version."),drop:W,filter:F,flatMap:z,map:L,take:V,compose:P},e.exports.promiseReturningOperators={every:C,forEach:D,reduce:q,toArray:$,some:N,find:j}},61926:function(e,t,r){"use strict";let{ObjectSetPrototypeOf:n}
2=r(235);e.exports=o;let i=r(44938);function o(e){if(!(this instanceof o))return new o(e);i.call(this,e)}n(o.prototype,i.prototype),n(o,i),o.prototype._transform=function(e,t,r){r(null,e)}},55658:function(e,t,r){let n,i,o;"use strict";let s=r(25566),{ArrayIsArray:a,Promise:u,SymbolAsyncIterator:f,SymbolDispose:l}=r(235),c=r(7943),{once:d}=r(24422),h=r(3186),p=r(71570),{aggregateTwoErrors:b,codes:{ERR_INVALID_ARG_TYPE:g,ERR_INVALID_RETURN_VALUE:m,ERR_MISSING_ARGS:y,ERR_STREAM_DESTROYED:v,ERR_STREAM_PREMATURE_CLOSE:w},AbortError:_}=r(67682),{validateFunction:S,validateAbortSignal:E}=r(77475),{isIterable:A,isReadable:R,isReadableNodeStream:x,isNodeStream:M,isTransformStream:k,isWebStream:O,isReadableStream:T,isReadableFinished:I}=r(18462),P=globalThis.AbortController||r(8741).AbortController;function L(e,t,r){let n=!1;return e.on("close",()=>{n=!0}),{destroy:t=>{n||(n=!0,h.destroyer(e,t||new v("pipe")))},cleanup:c(e,{readable:t,writable:r},e=>{n=!e})}}function B(e){return S(e[e.length-1],"streams[stream.length - 1]"),e.pop()}function N(e){if(A(e))return e;if(x(e))return C(e);throw new g("val",["Readable","Iterable","AsyncIterable"],e)}async function*C(e){i||(i=r(94825)),yield*i.prototype[f].call(e)}async function j(e,t,r,{end:n}){let i;let o=null,s=e=>{if(e&&(i=e),o){let e=o;o=null,e()}},a=()=>new u((e,t)=>{i?t(i):o=()=>{i?t(i):e()}});t.on("drain",s);let f=c(t,{readable:!1},s);try{for await(let r of(t.writableNeedDrain&&await a(),e))t.write(r)||await a();n&&(t.end(),await a()),r()}catch(e){r(i!==e?b(i,e):e)}finally{f(),t.off("drain",s)}}async function D(e,t,r,{end:n}){k(t)&&(t=t.writable);let i=t.getWriter();try{for await(let t of e)await i.ready,i.write(t).catch(()=>{});await i.ready,n&&await i.close(),r()}catch(e){try{await i.abort(e),r(e)}catch(e){r(e)}}}function F(...e){return U(e,d(B(e)))}function U(e,t,i){let u,f,c,d;if(1===e.length&&a(e[0])&&(e=e[0]),e.length<2)throw new y("streams");let h=new P,b=h.signal,v=null==i?void 0:i.signal,w=[];function S(){F(new _)}E(v,"options.signal"),o=o||r(24422).addAbortListener,v&&(u=o(v,S));let I=[],B=0;function C(e){F(e,0==--B)}function F(e,r){var n;if(e&&(!f||"ERR_STREAM_PREMATURE_CLOSE"===f.code)&&(f=e),f||r){for(;I.length;)I.shift()(f);
2null===(n=u)||void 0===n||n[l](),h.abort(),r&&(f||w.forEach(e=>e()),s.nextTick(t,f,c))}}for(let t=0;t<e.length;t++){let o=e[t],a=t<e.length-1,u=t>0,f=a||(null==i?void 0:i.end)!==!1,l=t===e.length-1;if(M(o)){if(f){let{destroy:e,cleanup:t}=L(o,a,u);I.push(e),R(o)&&l&&w.push(t)}function U(e){e&&"AbortError"!==e.name&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code&&C(e)}o.on("error",U),R(o)&&l&&w.push(()=>{o.removeListener("error",U)})}if(0===t){if("function"==typeof o){if(!A(d=o({signal:b})))throw new m("Iterable, AsyncIterable or Stream","source",d)}else d=A(o)||x(o)||k(o)?o:p.from(o)}else if("function"==typeof o){var $,z;if(d=o(d=k(d)?N(null===($=d)||void 0===$?void 0:$.readable):N(d),{signal:b}),a){if(!A(d,!0))throw new m("AsyncIterable",`transform[${t-1}]`,d)}else{n||(n=r(61926));let e=new n({objectMode:!0}),t=null===(z=d)||void 0===z?void 0:z.then;if("function"==typeof t)B++,t.call(d,t=>{c=t,null!=t&&e.write(t),f&&e.end(),s.nextTick(C)},t=>{e.destroy(t),s.nextTick(C,t)});else if(A(d,!0))B++,j(d,e,C,{end:f});else if(T(d)||k(d)){let t=d.readable||d;B++,j(t,e,C,{end:f})}else throw new m("AsyncIterable or Promise","destination",d);let{destroy:i,cleanup:o}=L(d=e,!1,!0);I.push(i),l&&w.push(o)}}else if(M(o)){if(x(d)){B+=2;let e=q(d,o,C,{end:f});R(o)&&l&&w.push(e)}else if(k(d)||T(d)){let e=d.readable||d;B++,j(e,o,C,{end:f})}else if(A(d))B++,j(d,o,C,{end:f});else throw new g("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],d);d=o}else if(O(o)){if(x(d))B++,D(N(d),o,C,{end:f});else if(T(d)||A(d))B++,D(d,o,C,{end:f});else if(k(d))B++,D(d.readable,o,C,{end:f});else throw new g("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],d);d=o}else d=p.from(o)}return(null!=b&&b.aborted||null!=v&&v.aborted)&&s.nextTick(S),d}function q(e,t,r,{end:n}){let i=!1;if(t.on("close",()=>{i||r(new w)}),e.pipe(t,{end:!1}),n){function o(){i=!0,t.end()}I(e)?s.nextTick(o):e.once("end",o)}else r();return c(e,{readable:!0,writable:!1},t=>{let n=e._readableState;t&&"ERR_STREAM_PREMATURE_CLOSE"===t.code&&n&&n.ended&&!n.errored&&!n.errorEmitted?e.once("end",r).once("error",r):r(t)}),c(t,{readable:!1,writable:!0},r)}e.exports={pipelineImpl:U,pipeline:F}},94825:function(e,t,r){let n;"use strict";let i=r(25566),{ArrayPrototypeIndexOf:o,NumberIsInteger:s,NumberIsNaN:a,NumberParseInt:u,ObjectDefineProperties:f,ObjectKeys:l,ObjectSetPrototypeOf:c,Promise:d,SafeSet:h,SymbolAsyncDispose:p,SymbolAsyncIterator:b,Symbol:g}=r(235);e.exports=eu,eu.ReadableState=ea;let{EventEmitter:m}=r(68885),{Stream:y,prependListener:v}=r(56269),{Buffer:w}=r(9109),{addAbortSignal:_}=r(6202),S=r(7943),E=r(24422).debuglog("stream",e=>{E=e}),A=r(75974),R=r(3186),{getHighWaterMark:x,getDefaultHighWaterMark:M}=r(86410),{aggregateTwoErrors:k,codes:{ERR_INVALID_ARG_TYPE:O,ERR_METHOD_NOT_IMPLEMENTED:T,ERR_OUT_OF_RANGE:I,ERR_STREAM_PUSH_AFTER_EOF:P,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:L},AbortError:B}=r(67682),{validateObject:N}=r(77475),C=g("kPaused"),{StringDecoder:j}=r(56123),D=r(68483);c(eu.prototype,y.prototype),c(eu,y);let F=()=>{},{errorOrDestroy:U}=R,q=1,$=2,z=4,H=8,W=16,V=32,G=64,Z=128,K=256,J=512,X=1024,Y=2048,Q=4096,ee=8192,et=16384,er=32768,en=65536,ei=131072,eo=262144;function es(e){return{enumerable:!1,get(){return(this.state&e)!=0},set(t){t?this.state|=e:this.state&=~e}}}function ea(e,t,n){"boolean"!=typeof n&&(n=t instanceof r(71570)),this.state=Y|Q|W|V,e&&e.objectMode&&(this.state|=q),n&&e&&e.readableObjectMode&&(this.state|=q),this.highWaterMark=e?x(this,e,"readableHighWaterMark",n):M(!1),this.buffer=new A,this.length=0,this.pipes=[],this.flowing=null,this[C]=null,e&&!1===e.emitClose&&(this.state&=~Y),e&&!1===e.autoDestroy&&(this.state&=~Q),this.errored=null,this.defaultEncoding=e&&e.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,e&&e.encoding&&(this.decoder=new j(e.encoding),this.encoding=e.encoding)}function eu(e){if(!(this instanceof eu))return new eu(e);let t=this instanceof r(71570);this._readableState=new ea(e,this,t),e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.construct&&(this._construct=e.construct),e.signal&&!t&&_(e.signal,this)),y.call(this,e),R.construct(this,()=>{this._readableState.needReadable&&em(this,this._readableState)})}function ef(e,t,r,n){let i;E("readableAddChunk",t);let o=e._readableState;if((o.state&q)==0&&("string"==typeof t?(r=r||o.defaultEncoding,o.encoding!==r&&(n&&o.encoding?t=w.from(t,r).toString(o.encoding):(t=w.from(t,r),r=""))):t instanceof w?r="":y._isUint8Array(t)?(t=y._uint8ArrayToBuffer(t),r=""):null!=t&&(i=new O("chunk",["string","Buffer","Uint8Array"],t))),i)U(e,i);else if(null===t)o.state&=~H,ep(e,o);else if((o.state&q)!=0||t&&t.length>0){if(n){if((o.state&z)!=0)U(e,new L);else{if(o.destroyed||o.errored)return!1;el(e,o,t,!0)}}else if(o.ended)U(e,new P);else{if(o.destroyed||o.errored)return!1;o.state&=~H,o.decoder&&!r?(t=o.decoder.write(t),o.objectMode||0!==t.length?el(e,o,t,!1):em(e,o)):el(e,o,t,!1)}}else n||(o.state&=~H,em(e,o));return!o.ended&&(o.length<o.highWaterMark||0===o.length)}function el(e,t,r,n){t.flowing&&0===t.length&&!t.sync&&e.listenerCount("data")>0?((t.state&en)!=0?t.awaitDrainWriters.clear():t.awaitDrainWriters=null,t.dataEmitted=!0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),(t.state&G)!=0&&eb(e)),em(e,t)}f(ea.prototype,{objectMode:es(q),ended:es($),endEmitted:es(z),reading:es(H),constructed:es(W),sync:es(V),needReadable:es(G),emittedReadable:es(Z),readableListening:es(K),resumeScheduled:es(J),errorEmitted:es(X),emitClose:es(Y),autoDestroy:es(Q),destroyed:es(ee),closed:es(et),closeEmitted:es(er),multiAwaitDrain:es(en),readingMore:es(ei),dataEmitted:es(eo)}),eu.prototype.destroy=R.destroy,eu.prototype._undestroy=R.undestroy,eu.prototype._destroy=function(e,t){t(e)},eu.prototype[m.captureRejectionSymbol]=function(e){this.destroy(e)},eu.prototype[p]=function(){let e;return this.destroyed||(e=this.readableEnded?null:new B,this.destroy(e)),new d((t,r)=>S(this,n=>n&&n!==e?r(n):t(null)))},eu.prototype.push=function(e,t){return ef(this,e,t,!1)},eu.prototype.unshift=function(e,t){return ef(this,e,t,!0)},eu.prototype.isPaused=function(){let e=this._readableState;return!0===e[C]||!1===e.flowing},eu.prototype.setEncoding=function(e){let t=new j(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;let r=this._readableState.buffer,n="";for(let e of r)n+=t.write(e);return r.clear(),""!==n&&r.push(n),this._readableState.length=n.length,this};let ec=1073741824;function ed(e){if(e>ec)throw new I("size","<= 1GiB",e);return e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,++e}function eh(e,t){return e<=0||0===t.length&&t.ended?0:(t.state&q)!=0?1:a(e)?t.flowing&&t.length?t.buffer.first().length:t.length:e<=t.length?e:t.ended?t.length:0}function ep(e,t){if(E("onEofChunk"),!t.ended){if(t.decoder){let e=t.decoder.end();e&&e.length&&(t.buffer.push(e),t.length+=t.objectMode?1:e.length)}t.ended=!0,t.sync?eb(e):(t.needReadable=!1,t.emittedReadable=!0,eg(e))}}function eb(e){let t=e._readableState;E("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(E("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(eg,e))}function eg(e){let t=e._readableState;E("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&!t.errored&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,eA(e)}function em(e,t){!t.readingMore&&t.constructed&&(t.readingMore=!0,i.nextTick(ey,e,t))}function ey(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){let r=t.length;if(E("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function ev(e,t){return function(){let r=e._readableState;r.awaitDrainWriters===t?(E("pipeOnDrain",1),r.awaitDrainWriters=null):r.multiAwaitDrain&&(E("pipeOnDrain",r.awaitDrainWriters.size),r.awaitDrainWriters.delete(t)),(!r.awaitDrainWriters||0===r.awaitDrainWriters.size)&&e.listenerCount("data")&&e.resume()}}function ew(e){let t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!1===t[C]?t.flowing=!0:e.listenerCount("data")>0?e.resume():t.readableListening||(t.flowing=null)}function e_(e){E("readable nexttick read 0"),e.read(0)}function eS(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(eE,e,t))}function eE(e,t){E("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),eA(e),t.flowing&&!t.reading&&e.read(0)}function eA(e){let t=e._readableState;for(E("flow",t.flowing);t.flowing&&null!==e.read(););}function eR(e,t){"function"!=typeof e.read&&(e=eu.wrap(e,{objectMode:!0}));let r=ex(e,t);return r.stream=e,r}async function*ex(e,t){let r,n=F;function i(t){this===e?(n(),n=F):n=t}
2e.on("readable",i);let o=S(e,{writable:!1},e=>{r=e?k(r,e):null,n(),n=F});try{for(;;){let t=e.destroyed?null:e.read();if(null!==t)yield t;else if(r)throw r;else{if(null===r)return;await new d(i)}}}catch(e){throw r=k(r,e)}finally{(r||(null==t?void 0:t.destroyOnReturn)!==!1)&&(void 0===r||e._readableState.autoDestroy)?R.destroyer(e,null):(e.off("readable",i),o())}}function eM(e,t){let r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function ek(e){let t=e._readableState;E("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(eO,t,e))}function eO(e,t){if(E("endReadableNT",e.endEmitted,e.length),!e.errored&&!e.closeEmitted&&!e.endEmitted&&0===e.length){if(e.endEmitted=!0,t.emit("end"),t.writable&&!1===t.allowHalfOpen)i.nextTick(eT,t);else if(e.autoDestroy){let e=t._writableState;(!e||e.autoDestroy&&(e.finished||!1===e.writable))&&t.destroy()}}}function eT(e){!e.writable||e.writableEnded||e.destroyed||e.end()}function eI(){return void 0===n&&(n={}),n}eu.prototype.read=function(e){let t;E("read",e),void 0===e?e=NaN:s(e)||(e=u(e,10));let r=this._readableState,n=e;if(e>r.highWaterMark&&(r.highWaterMark=ed(e)),0!==e&&(r.state&=~Z),0===e&&r.needReadable&&((0!==r.highWaterMark?r.length>=r.highWaterMark:r.length>0)||r.ended))return E("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?ek(this):eb(this),null;if(0===(e=eh(e,r))&&r.ended)return 0===r.length&&ek(this),null;let i=(r.state&G)!=0;if(E("need readable",i),(0===r.length||r.length-e<r.highWaterMark)&&E("length less than watermark",i=!0),r.ended||r.reading||r.destroyed||r.errored||!r.constructed)E("reading, ended or constructing",i=!1);else if(i){E("do read"),r.state|=H|V,0===r.length&&(r.state|=G);try{this._read(r.highWaterMark)}catch(e){U(this,e)}r.state&=~V,r.reading||(e=eh(n,r))}return null===(t=e>0?eM(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.multiAwaitDrain?r.awaitDrainWriters.clear():r.awaitDrainWriters=null),0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&ek(this)),null===t||r.errorEmitted||r.closeEmitted||(r.dataEmitted=!0,this.emit("data",t)),t},eu.prototype._read=function(e){throw new T("_read()")},eu.prototype.pipe=function(e,t){let r;let n=this,o=this._readableState;1!==o.pipes.length||o.multiAwaitDrain||(o.multiAwaitDrain=!0,o.awaitDrainWriters=new h(o.awaitDrainWriters?[o.awaitDrainWriters]:[])),o.pipes.push(e),E("pipe count=%d opts=%j",o.pipes.length,t);let s=t&&!1===t.end||e===i.stdout||e===i.stderr?m:u;function a(e,t){E("onunpipe"),e===n&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,l())}function u(){E("onend"),e.end()}o.endEmitted?i.nextTick(s):n.once("end",s),e.on("unpipe",a);let f=!1;function l(){E("cleanup"),e.removeListener("close",b),e.removeListener("finish",g),r&&e.removeListener("drain",r),e.removeListener("error",p),e.removeListener("unpipe",a),n.removeListener("end",u),n.removeListener("end",m),n.removeListener("data",d),f=!0,r&&o.awaitDrainWriters&&(!e._writableState||e._writableState.needDrain)&&r()}function c(){f||(1===o.pipes.length&&o.pipes[0]===e?(E("false write response, pause",0),o.awaitDrainWriters=e,o.multiAwaitDrain=!1):o.pipes.length>1&&o.pipes.includes(e)&&(E("false write response, pause",o.awaitDrainWriters.size),o.awaitDrainWriters.add(e)),n.pause()),r||(r=ev(n,e),e.on("drain",r))}function d(t){E("ondata");let r=e.write(t);E("dest.write",r),!1===r&&c()}function p(t){if(E("onerror",t),m(),e.removeListener("error",p),0===e.listenerCount("error")){let r=e._writableState||e._readableState;r&&!r.errorEmitted?U(e,t):e.emit("error",t)}}function b(){e.removeListener("finish",g),m()}function g(){E("onfinish"),e.removeListener("close",b),m()}function m(){E("unpipe"),n.unpipe(e)}return n.on("data",d),v(e,"error",p),e.once("close",b),e.once("finish",g),e.emit("pipe",n),!0===e.writableNeedDrain?c():o.flowing||(E("pipe resume"),n.resume()),e},eu.prototype.unpipe=function(e){let t=this._readableState,r={hasUnpiped:!1};if(0===t.pipes.length)return this;if(!e){let e=t.pipes;t.pipes=[],this.pause();for(let t=0;t<e.length;t++)e[t].emit("unpipe",this,{hasUnpiped:!1});return this}let n=o(t.pipes,e);return -1===n||(t.pipes.splice(n,1),0===t.pipes.length&&this.pause(),e.emit("unpipe",this,r)),this},eu.prototype.on=function(e,t){let r=y.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>
20,!1!==n.flowing&&this.resume()):"readable"!==e||n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,E("on readable",n.length,n.reading),n.length?eb(this):n.reading||i.nextTick(e_,this)),r},eu.prototype.addListener=eu.prototype.on,eu.prototype.removeListener=function(e,t){let r=y.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(ew,this),r},eu.prototype.off=eu.prototype.removeListener,eu.prototype.removeAllListeners=function(e){let t=y.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&i.nextTick(ew,this),t},eu.prototype.resume=function(){let e=this._readableState;return e.flowing||(E("resume"),e.flowing=!e.readableListening,eS(this,e)),e[C]=!1,this},eu.prototype.pause=function(){return E("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(E("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[C]=!0,this},eu.prototype.wrap=function(e){let t=!1;e.on("data",r=>{!this.push(r)&&e.pause&&(t=!0,e.pause())}),e.on("end",()=>{this.push(null)}),e.on("error",e=>{U(this,e)}),e.on("close",()=>{this.destroy()}),e.on("destroy",()=>{this.destroy()}),this._read=()=>{t&&e.resume&&(t=!1,e.resume())};let r=l(e);for(let t=1;t<r.length;t++){let n=r[t];void 0===this[n]&&"function"==typeof e[n]&&(this[n]=e[n].bind(e))}return this},eu.prototype[b]=function(){return eR(this)},eu.prototype.iterator=function(e){return void 0!==e&&N(e,"options"),eR(this,e)},f(eu.prototype,{readable:{__proto__:null,get(){let e=this._readableState;return!!e&&!1!==e.readable&&!e.destroyed&&!e.errorEmitted&&!e.endEmitted},set(e){this._readableState&&(this._readableState.readable=!!e)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(!1!==this._readableState.readable&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.objectMode}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return!!this._readableState&&this._readableState.closed}},destroyed:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.destroyed},set(e){this._readableState&&(this._readableState.destroyed=e)}},readableEnded:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.endEmitted}}}),f(ea.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return!1!==this[C]},set(e){this[C]=!!e}}}),eu._fromList=eM,eu.from=function(e,t){return D(eu,e,t)},eu.fromWeb=function(e,t){return eI().newStreamReadableFromReadableStream(e,t)},eu.toWeb=function(e,t){return eI().newReadableStreamFromStreamReadable(e,t)},eu.wrap=function(e,t){var r,n;return new eu({objectMode:null===(r=null!==(n=e.readableObjectMode)&&void 0!==n?n:e.objectMode)||void 0===r||r,...t,destroy(t,r){R.destroyer(e,t),r(t)}}).wrap(e)}},86410:function(e,t,r){"use strict";let{MathFloor:n,NumberIsInteger:i}=r(235),{validateInteger:o}=r(77475),{ERR_INVALID_ARG_VALUE:s}
2=r(67682).codes,a=16384,u=16;function f(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}function l(e){return e?u:a}function c(e,t){o(t,"value",0),e?u=t:a=t}function d(e,t,r,o){let a=f(t,o,r);if(null!=a){if(!i(a)||a<0)throw new s(o?`options.${r}`:"options.highWaterMark",a);return n(a)}return l(e.objectMode)}e.exports={getHighWaterMark:d,getDefaultHighWaterMark:l,setDefaultHighWaterMark:c}},44938:function(e,t,r){"use strict";let{ObjectSetPrototypeOf:n,Symbol:i}=r(235);e.exports=f;let{ERR_METHOD_NOT_IMPLEMENTED:o}=r(67682).codes,s=r(71570),{getHighWaterMark:a}=r(86410);n(f.prototype,s.prototype),n(f,s);let u=i("kCallback");function f(e){if(!(this instanceof f))return new f(e);let t=e?a(this,e,"readableHighWaterMark",!0):null;0===t&&(e={...e,highWaterMark:null,readableHighWaterMark:t,writableHighWaterMark:e.writableHighWaterMark||0}),s.call(this,e),this._readableState.sync=!1,this[u]=null,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",c)}function l(e){"function"!=typeof this._flush||this.destroyed?(this.push(null),e&&e()):this._flush((t,r)=>{if(t){e?e(t):this.destroy(t);return}null!=r&&this.push(r),this.push(null),e&&e()})}function c(){this._final!==l&&l.call(this)}f.prototype._final=l,f.prototype._transform=function(e,t,r){throw new o("_transform()")},f.prototype._write=function(e,t,r){let n=this._readableState,i=this._writableState,o=n.length;this._transform(e,t,(e,t)=>{if(e){r(e);return}null!=t&&this.push(t),i.ended||o===n.length||n.length<n.highWaterMark?r():this[u]=r})},f.prototype._read=function(){if(this[u]){let e=this[u];this[u]=null,e()}}},18462:function(e,t,r){"use strict";let{SymbolAsyncIterator:n,SymbolIterator:i,SymbolFor:o}=r(235),s=o("nodejs.stream.destroyed"),a=o("nodejs.stream.errored"),u=o("nodejs.stream.readable"),f=o("nodejs.stream.writable"),l=o("nodejs.stream.disturbed"),c=o("nodejs.webstream.isClosedPromise"),d=o("nodejs.webstream.controllerErrorFunction");function h(e,t=!1){var r;return!!(e&&"function"==typeof e.pipe&&"function"==typeof e.on&&(!t||"function"==typeof e.pause&&"function"==typeof e.resume)&&(!e._writableState||(null===(r=e._readableState)||void 0===r?void 0:r.readable)!==!1)&&(!e._writableState||e._readableState))}function p(e){var t;return!!(e&&"function"==typeof e.write&&"function"==typeof e.on&&(!e._readableState||(null===(t=e._writableState)||void 0===t?void 0:t.writable)!==!1))}function b(e){return!!(e&&"function"==typeof e.pipe&&e._readableState&&"function"==typeof e.on&&"function"==typeof e.write)}function g(e){return e&&(e._readableState||e._writableState||"function"==typeof e.write&&"function"==typeof e.on||"function"==typeof e.pipe&&"function"==typeof e.on)}function m(e){return!!(e&&!g(e)&&"function"==typeof e.pipeThrough&&"function"==typeof e.getReader&&"function"==typeof e.cancel)}function y(e){return!!(e&&!g(e)&&"function"==typeof e.getWriter&&"function"==typeof e.abort)}function v(e){return!!(e&&!g(e)&&"object"==typeof e.readable&&"object"==typeof e.writable)}function w(e){return m(e)||y(e)||v(e)}function _(e,t){return null!=e&&(!0===t?"function"==typeof e[n]:!1===t?"function"==typeof e[i]:"function"==typeof e[n]||"function"==typeof e[i])}function S(e){if(!g(e))return null;let t=e._writableState,r=e._readableState,n=t||r;return!!(e.destroyed||e[s]||null!=n&&n.destroyed)}function E(e){if(!p(e))return null;if(!0===e.writableEnded)return!0;let t=e._writableState;return(null==t||!t.errored)&&("boolean"!=typeof(null==t?void 0:t.ended)?null:t.ended)}function A(e,t){if(!p(e))return null;if(!0===e.writableFinished)return!0;let r=e._writableState;return(null==r||!r.errored)&&("boolean"!=typeof(null==r?void 0:r.finished)?null:!!(r.finished||!1===t&&!0===r.ended&&0===r.length))}function R(e){if(!h(e))return null;if(!0===e.readableEnded)return!0;let t=e._readableState;return!!t&&!t.errored&&("boolean"!=typeof(null==t?void 0:t.ended)?null:t.ended)}function x(e,t){if(!h(e))return null;let r=e._readableState;return(null==r||!r.errored)&&("boolean"!=typeof(null==r?void 0:r.endEmitted)?null:!!(r.endEmitted||!1===t&&!0===r.ended&&0===r.length))}function M(e){return e&&null!=e[u]?e[u]:"boolean"!=typeof(null==e?void 0:e.readable)?null:!S(e)&&h(e)&&e.readable&&!x(e)}function k(e){return e&&null!=e[f]?e[f]:"boolean"!=typeof(null==e?void 0:e.writable)?null:!S(e)&&p(e)&&e.writable&&!E(e)}function O(e,t){return g(e)?!!S(e)||!((null==t?void 0:t.readable)!==!1&&M(e)||(null==t?void 0:t.writable)!==!1&&k(e)):null}function T(e){var t,r;return g(e)?e.writableErrored?e.writableErrored:null!==(t=null===(r=e._writableState)||void 0===r?void 0:r.errored)&&void 0!==t?t:null:null}function I(e){var t,r;return g(e)?e.readableErrored?e.readableErrored:null!==(t=null===(r=e._readableState)||void 0===r?void 0:r.errored)&&void 0!==t?t:null:null}function P(e){if(!g(e))return null;if("boolean"==typeof e.closed)return e.closed;let t=e._writableState,r=e._readableState;return"boolean"==typeof(null==t?void 0:t.closed)||"boolean"==typeof(null==r?void 0:r.closed)?(null==t?void 0:t.closed)||(null==r?void 0:r.closed):"boolean"==typeof e._closed&&L(e)?e._closed:null}function L(e){return"boolean"==typeof e._closed&&"boolean"==typeof e._defaultKeepAlive&&"boolean"==typeof e._removedConnection&&"boolean"==typeof e._removedContLen}function B(e){return"boolean"==typeof e._sent100&&L(e)}function N(e){var t;return"boolean"==typeof e._consuming&&"boolean"==typeof e._dumped&&(null===(t=e.req)||void 0===t?void 0:t.upgradeOrConnect)===void 0}function C(e){if(!g(e))return null;let t=e._writableState,r=e._readableState,n=t||r;return!n&&B(e)||!!(n&&n.autoDestroy&&n.emitClose&&!1===n.closed)}function j(e){var t;return!!(e&&(null!==(t=e[l])&&void 0!==t?t:e.readableDidRead||e.readableAborted))}function D(e){var t,r,n,i,o,s,u,f,l,c;return!!(e&&(null!==(t=null!==(r=null!==(n=null!==(i=null!==(o=null!==(s=e[a])&&void 0!==s?s:e.readableErrored)&&void 0!==o?o:e.writableErrored)&&void 0!==i?i:null===(u=e._readableState)||void 0===u?void 0:u.errorEmitted)&&void 0!==n?n:null===(f=e._writableState)||void 0===f?void 0:f.errorEmitted)&&void 0!==r?r:null===(l=e._readableState)||void 0===l?void 0:l.errored)&&void 0!==t?t:null===(c=e._writableState)||void 0===c?void 0:c.errored))}
2e.exports={isDestroyed:S,kIsDestroyed:s,isDisturbed:j,kIsDisturbed:l,isErrored:D,kIsErrored:a,isReadable:M,kIsReadable:u,kIsClosedPromise:c,kControllerErrorFunction:d,kIsWritable:f,isClosed:P,isDuplexNodeStream:b,isFinished:O,isIterable:_,isReadableNodeStream:h,isReadableStream:m,isReadableEnded:R,isReadableFinished:x,isReadableErrored:I,isNodeStream:g,isWebStream:w,isWritable:k,isWritableNodeStream:p,isWritableStream:y,isWritableEnded:E,isWritableFinished:A,isWritableErrored:T,isServerRequest:N,isServerResponse:B,willEmitClose:C,isTransformStream:v}},1917:function(e,t,r){let n;"use strict";let i=r(25566),{ArrayPrototypeSlice:o,Error:s,FunctionPrototypeSymbolHasInstance:a,ObjectDefineProperty:u,ObjectDefineProperties:f,ObjectSetPrototypeOf:l,StringPrototypeToLowerCase:c,Symbol:d,SymbolHasInstance:h}=r(235);e.exports=N,N.WritableState=L;let{EventEmitter:p}=r(68885),b=r(56269).Stream,{Buffer:g}=r(9109),m=r(3186),{addAbortSignal:y}=r(6202),{getHighWaterMark:v,getDefaultHighWaterMark:w}=r(86410),{ERR_INVALID_ARG_TYPE:_,ERR_METHOD_NOT_IMPLEMENTED:S,ERR_MULTIPLE_CALLBACK:E,ERR_STREAM_CANNOT_PIPE:A,ERR_STREAM_DESTROYED:R,ERR_STREAM_ALREADY_FINISHED:x,ERR_STREAM_NULL_VALUES:M,ERR_STREAM_WRITE_AFTER_END:k,ERR_UNKNOWN_ENCODING:O}=r(67682).codes,{errorOrDestroy:T}=m;function I(){}l(N.prototype,b.prototype),l(N,b);let P=d("kOnFinished");function L(e,t,n){"boolean"!=typeof n&&(n=t instanceof r(71570)),this.objectMode=!!(e&&e.objectMode),n&&(this.objectMode=this.objectMode||!!(e&&e.writableObjectMode)),this.highWaterMark=e?v(this,e,"writableHighWaterMark",n):w(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let i=!!(e&&!1===e.decodeStrings);this.decodeStrings=!i,this.defaultEncoding=e&&e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=U.bind(void 0,t),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,B(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!e||!1!==e.emitClose,this.autoDestroy=!e||!1!==e.autoDestroy,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[P]=[]}function B(e){e.buffered=[],e.bufferedIndex=0,e.allBuffers=!0,e.allNoop=!0}function N(e){let t=this instanceof r(71570);if(!t&&!a(N,this))return new N(e);this._writableState=new L(e,this,t),e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final),"function"==typeof e.construct&&(this._construct=e.construct),e.signal&&y(e.signal,this)),b.call(this,e),m.construct(this,()=>{let e=this._writableState;e.writing||H(this,e),Z(this,e)})}function C(e,t,r,n){let o;let s=e._writableState;if("function"==typeof r)n=r,r=s.defaultEncoding;else{if(r){if("buffer"!==r&&!g.isEncoding(r))throw new O(r)}else r=s.defaultEncoding;"function"!=typeof n&&(n=I)}if(null===t)throw new M;if(!s.objectMode){if("string"==typeof t)!1!==s.decodeStrings&&(t=g.from(t,r),r="buffer");else if(t instanceof g)r="buffer";else if(b._isUint8Array(t))t=b._uint8ArrayToBuffer(t),r="buffer";else throw new _("chunk",["string","Buffer","Uint8Array"],t)}return(s.ending?o=new k:s.destroyed&&(o=new R("write")),o)?(i.nextTick(n,o),T(e,o,!0),o):(s.pendingcb++,j(e,s,t,r,n))}function j(e,t,r,n,i){let o=t.objectMode?1:r.length;t.length+=o;let s=t.length<t.highWaterMark;return s||(t.needDrain=!0),t.writing||t.corked||t.errored||!t.constructed?(t.buffered.push({chunk:r,encoding:n,callback:i}),t.allBuffers&&"buffer"!==n&&(t.allBuffers=!1),t.allNoop&&i!==I&&(t.allNoop=!1)):(t.writelen=o,t.writecb=i,t.writing=!0,t.sync=!0,e._write(r,n,t.onwrite),t.sync=!1),s&&!t.errored&&!t.destroyed}function D(e,t,r,n,i,o,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new R("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function F(e,t,r,n){--t.pendingcb,n(r),z(t),T(e,r)}function U(e,t){let r=e._writableState,n=r.sync,o=r.writecb;if("function"!=typeof o){T(e,new E);return}r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,t?(t.stack,r.errored||(r.errored=t),e._readableState&&!e._readableState.errored&&(e._readableState.errored=t),n?i.nextTick(F,e,r,t,o):F(e,r,t,o)):(r.buffered.length>r.bufferedIndex&&H(e,r),n?null!==r.afterWriteTickInfo&&r.afterWriteTickInfo.cb===o?r.afterWriteTickInfo.count++:(r.afterWriteTickInfo={count:1,cb:o,stream:e,state:r},i.nextTick(q,r.afterWriteTickInfo)):$(e,r,1,o))}
2function q({stream:e,state:t,count:r,cb:n}){return t.afterWriteTickInfo=null,$(e,t,r,n)}function $(e,t,r,n){for(t.ending||e.destroyed||0!==t.length||!t.needDrain||(t.needDrain=!1,e.emit("drain"));r-- >0;)t.pendingcb--,n();t.destroyed&&z(t),Z(e,t)}function z(e){var t,r;if(e.writing)return;for(let r=e.bufferedIndex;r<e.buffered.length;++r){let{chunk:n,callback:i}=e.buffered[r],o=e.objectMode?1:n.length;e.length-=o,i(null!==(t=e.errored)&&void 0!==t?t:new R("write"))}let n=e[P].splice(0);for(let t=0;t<n.length;t++)n[t](null!==(r=e.errored)&&void 0!==r?r:new R("end"));B(e)}function H(e,t){if(t.corked||t.bufferProcessing||t.destroyed||!t.constructed)return;let{buffered:r,bufferedIndex:n,objectMode:i}=t,s=r.length-n;if(!s)return;let a=n;if(t.bufferProcessing=!0,s>1&&e._writev){t.pendingcb-=s-1;let n=t.allNoop?I:e=>{for(let t=a;t<r.length;++t)r[t].callback(e)},i=t.allNoop&&0===a?r:o(r,a);i.allBuffers=t.allBuffers,D(e,t,!0,t.length,i,"",n),B(t)}else{do{let{chunk:n,encoding:o,callback:s}=r[a];r[a++]=null,D(e,t,!1,i?1:n.length,n,o,s)}while(a<r.length&&!t.writing);a===r.length?B(t):a>256?(r.splice(0,a),t.bufferedIndex=0):t.bufferedIndex=a}t.bufferProcessing=!1}function W(e){return e.ending&&!e.destroyed&&e.constructed&&0===e.length&&!e.errored&&0===e.buffered.length&&!e.finished&&!e.writing&&!e.errorEmitted&&!e.closeEmitted}function V(e,t){let r=!1;
2function n(n){if(r){T(e,null!=n?n:E());return}if(r=!0,t.pendingcb--,n){let r=t[P].splice(0);for(let e=0;e<r.length;e++)r[e](n);T(e,n,t.sync)}else W(t)&&(t.prefinished=!0,e.emit("prefinish"),t.pendingcb++,i.nextTick(K,e,t))}t.sync=!0,t.pendingcb++;try{e._final(n)}catch(e){n(e)}t.sync=!1}function G(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.finalCalled=!0,V(e,t)))}function Z(e,t,r){W(t)&&(G(e,t),0===t.pendingcb&&(r?(t.pendingcb++,i.nextTick((e,t)=>{W(t)?K(e,t):t.pendingcb--},e,t)):W(t)&&(t.pendingcb++,K(e,t))))}function K(e,t){t.pendingcb--,t.finished=!0;let r=t[P].splice(0);for(let e=0;e<r.length;e++)r[e]();if(e.emit("finish"),t.autoDestroy){let t=e._readableState;(!t||t.autoDestroy&&(t.endEmitted||!1===t.readable))&&e.destroy()}}L.prototype.getBuffer=function(){return o(this.buffered,this.bufferedIndex)},u(L.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}}),u(N,h,{__proto__:null,value:function(e){return!!a(this,e)||this===N&&e&&e._writableState instanceof L}}),N.prototype.pipe=function(){T(this,new A)},N.prototype.write=function(e,t,r){return!0===C(this,e,t,r)},N.prototype.cork=function(){this._writableState.corked++},N.prototype.uncork=function(){let e=this._writableState;e.corked&&(e.corked--,e.writing||H(this,e))},N.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=c(e)),!g.isEncoding(e))throw new O(e);return this._writableState.defaultEncoding=e,this},N.prototype._write=function(e,t,r){if(this._writev)this._writev([{chunk:e,encoding:t}],r);else throw new S("_write()")},N.prototype._writev=null,N.prototype.end=function(e,t,r){let n;let o=this._writableState;if("function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e){let r=C(this,e,t);r instanceof s&&(n=r)}return o.corked&&(o.corked=1,this.uncork()),n||(o.errored||o.ending?o.finished?n=new x("end"):o.destroyed&&(n=new R("end")):(o.ending=!0,Z(this,o,!0),o.ended=!0)),"function"==typeof r&&(n||o.finished?i.nextTick(r,n):o[P].push(r)),this},f(N.prototype,{closed:{__proto__:null,get(){return!!this._writableState&&this._writableState.closed}},destroyed:{__proto__:null,get(){return!!this._writableState&&this._writableState.destroyed},set(e){this._writableState&&(this._writableState.destroyed=e)}},writable:{__proto__:null,get(){let e=this._writableState;return!!e&&!1!==e.writable&&!e.destroyed&&!e.errored&&!e.ending&&!e.ended},set(e){this._writableState&&(this._writableState.writable=!!e)}},writableFinished:{__proto__:null,get(){return!!this._writableState&&this._writableState.finished}},writableObjectMode:{__proto__:null,get(){return!!this._writableState&&this._writableState.objectMode}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return!!this._writableState&&this._writableState.ending}},writableNeedDrain:{__proto__:null,get(){let e=this._writableState;return!!e&&!e.destroyed&&!e.ending&&e.needDrain}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(!1!==this._writableState.writable&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});let J=m.destroy;function X(){return void 0===n&&(n={}),n}N.prototype.destroy=function(e,t){let r=this._writableState;return!r.destroyed&&(r.bufferedIndex<r.buffered.length||r[P].length)&&i.nextTick(z,r),J.call(this,e,t),this},N.prototype._undestroy=m.undestroy,N.prototype._destroy=function(e,t){t(e)},N.prototype[p.captureRejectionSymbol]=function(e){this.destroy(e)},N.fromWeb=function(e,t){return X().newStreamWritableFromWritableStream(e,t)},N.toWeb=function(e){return X().newWritableStreamFromStreamWritable(e)}},77475:function(e,t,r){"use strict";let{ArrayIsArray:n,ArrayPrototypeIncludes:i,ArrayPrototypeJoin:o,ArrayPrototypeMap:s,NumberIsInteger:a,NumberIsNaN:u,NumberMAX_SAFE_INTEGER:f,NumberMIN_SAFE_INTEGER:l,NumberParseInt:c,ObjectPrototypeHasOwnProperty:d,RegExpPrototypeExec:h,String:p,StringPrototypeToUpperCase:b,StringPrototypeTrim:g}=r(235),{hideStackFrames:m,codes:{ERR_SOCKET_BAD_PORT:y,ERR_INVALID_ARG_TYPE:v,ERR_INVALID_ARG_VALUE:w,ERR_OUT_OF_RANGE:_,ERR_UNKNOWN_SIGNAL:S}}=r(67682),{normalizeEncoding:E}=r(24422),{isAsyncFunction:A,isArrayBufferView:R}=r(24422).types,x={};function M(e){return e===(0|e)}function k(e){return e===e>>>0}let O=/^[0-7]+$/,T="must be a 32-bit unsigned integer or an octal string";function I(e,t,r){if(void 0===e&&(e=r),"string"==typeof e){if(null===h(O,e))throw new w(t,e,T);e=c(e,8)}return B(e,t),e}let P=m((e,t,r=l,n=f)=>{if("number"!=typeof e)throw new v(t,"number",e);if(!a(e))throw new _(t,"an integer",e);if(e<r||e>n)throw new _(t,`>= ${r} && <= ${n}`,e)}
2),L=m((e,t,r=-2147483648,n=2147483647)=>{if("number"!=typeof e)throw new v(t,"number",e);if(!a(e))throw new _(t,"an integer",e);if(e<r||e>n)throw new _(t,`>= ${r} && <= ${n}`,e)}),B=m((e,t,r=!1)=>{if("number"!=typeof e)throw new v(t,"number",e);if(!a(e))throw new _(t,"an integer",e);let n=r?1:0,i=4294967295;if(e<n||e>i)throw new _(t,`>= ${n} && <= ${i}`,e)});function N(e,t){if("string"!=typeof e)throw new v(t,"string",e)}function C(e,t,r,n){if("number"!=typeof e)throw new v(t,"number",e);if(null!=r&&e<r||null!=n&&e>n||(null!=r||null!=n)&&u(e))throw new _(t,`${null!=r?`>= ${r}`:""}${null!=r&&null!=n?" && ":""}${null!=n?`<= ${n}`:""}`,e)}let j=m((e,t,r)=>{if(!i(r,e))throw new w(t,e,"must be one of: "+o(s(r,e=>"string"==typeof e?`'${e}'`:p(e)),", "))});function D(e,t){if("boolean"!=typeof e)throw new v(t,"boolean",e)}function F(e,t,r){return null!=e&&d(e,t)?e[t]:r}let U=m((e,t,r=null)=>{let i=F(r,"allowArray",!1),o=F(r,"allowFunction",!1);if(!F(r,"nullable",!1)&&null===e||!i&&n(e)||"object"!=typeof e&&(!o||"function"!=typeof e))throw new v(t,"Object",e)}),q=m((e,t)=>{if(null!=e&&"object"!=typeof e&&"function"!=typeof e)throw new v(t,"a dictionary",e)}),$=m((e,t,r=0)=>{if(!n(e))throw new v(t,"Array",e);if(e.length<r)throw new w(t,e,`must be longer than ${r}`)});function z(e,t){$(e,t);for(let r=0;r<e.length;r++)N(e[r],`${t}[${r}]`)}function H(e,t){$(e,t);for(let r=0;r<e.length;r++)D(e[r],`${t}[${r}]`)}function W(e,t){$(e,t);for(let r=0;r<e.length;r++){let n=e[r],i=`${t}[${r}]`;if(null==n)throw new v(i,"AbortSignal",n);J(n,i)}}function V(e,t="signal"){if(N(e,t),void 0===x[e]){if(void 0!==x[b(e)])throw new S(e+" (signals must use all capital letters)");throw new S(e)}}let G=m((e,t="buffer")=>{if(!R(e))throw new v(t,["Buffer","TypedArray","DataView"],e)});function Z(e,t){let r=E(t),n=e.length;if("hex"===r&&n%2!=0)throw new w("encoding",t,`is invalid for data of length ${n}`)}function K(e,t="Port",r=!0){if("number"!=typeof e&&"string"!=typeof e||"string"==typeof e&&0===g(e).length||+e!=+e>>>0||e>65535||0===e&&!r)throw new y(t,e,r);return 0|e}let J=m((e,t)=>{if(void 0!==e&&(null===e||"object"!=typeof e||!("aborted"in e)))throw new v(t,"AbortSignal",e)}),X=m((e,t)=>{if("function"!=typeof e)throw new v(t,"Function",e)}),Y=m((e,t)=>{if("function"!=typeof e||A(e))throw new v(t,"Function",e)}),Q=m((e,t)=>{if(void 0!==e)throw new v(t,"undefined",e)});function ee(e,t,r){if(!i(r,e))throw new v(t,`('${o(r,"|")}')`,e)}let et=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function er(e,t){if(void 0===e||!h(et,e))throw new w(t,e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function en(e){if("string"==typeof e)return er(e,"hints"),e;if(n(e)){let t=e.length,r="";if(0===t)return r;for(let n=0;n<t;n++){let i=e[n];er(i,"hints"),r+=i,n!==t-1&&(r+=", ")}return r}throw new w("hints",e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}e.exports={isInt32:M,isUint32:k,parseFileMode:I,validateArray:$,validateStringArray:z,validateBooleanArray:H,validateAbortSignalArray:W,validateBoolean:D,validateBuffer:G,validateDictionary:q,validateEncoding:Z,validateFunction:X,validateInt32:L,validateInteger:P,validateNumber:C,validateObject:U,validateOneOf:j,validatePlainFunction:Y,validatePort:K,validateSignalName:V,validateString:N,validateUint32:B,validateUndefined:Q,validateUnion:ee,validateAbortSignal:J,validateLinkHeaderValue:en}},22634:function(e,t,r){"use strict";let n=r(2625),i=r(32933),o=n.Readable.destroy;e.exports=n.Readable,e.exports._uint8ArrayToBuffer=n._uint8ArrayToBuffer,e.exports._isUint8Array=n._isUint8Array,e.exports.isDisturbed=n.isDisturbed,e.exports.isErrored=n.isErrored,e.exports.isReadable=n.isReadable,e.exports.Readable=n.Readable,e.exports.Writable=n.Writable,e.exports.Duplex=n.Duplex,e.exports.Transform=n.Transform,e.exports.PassThrough=n.PassThrough,e.exports.addAbortSignal=n.addAbortSignal,e.exports.finished=n.finished,e.exports.destroy=n.destroy,e.exports.destroy=o,e.exports.pipeline=n.pipeline,e.exports.compose=n.compose,Object.defineProperty(n,"promises",{configurable:!0,enumerable:!0,get:()=>i}),e.exports.Stream=n.Stream,e.exports.default=e.exports},67682:function(e,t,r){"use strict";let{format:n,inspect:i,AggregateError:o}=r(24422),s=globalThis.AggregateError||o,a=Symbol("kIsNodeError"),u=["string","function","number","object","Function","Object","boolean","bigint","symbol"],f=/^([A-Z][a-z0-9]*)+$/,l="__node_internal_",c={};function d(e,t){if(!e)throw new c.ERR_INTERNAL_ASSERTION(t)}function h(e){let t="",r=e.length,n="-"===e[0]?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function p(e,t,r){if("function"==typeof t)return d(t.length<=r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${t.length}).`),t(...r);let i=(t.match(/%[dfijoOs]/g)||[]).length;return(d(i===r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),0===r.length)?t:n(t,...r)}function b(e,t,r){r||(r=Error);class n extends r{constructor(...r){super(p(e,t,r))}toString(){return`${this.name} [${e}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,
2configurable:!0},toString:{value(){return`${this.name} [${e}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=e,n.prototype[a]=!0,c[e]=n}function g(e){let t=l+e.name;return Object.defineProperty(e,"name",{value:t}),e}function m(e,t){if(e&&t&&e!==t){if(Array.isArray(t.errors))return t.errors.push(e),t;let r=new s([t,e],t.message);return r.code=t.code,r}return e||t}class y extends Error{constructor(e="The operation was aborted",t){if(void 0!==t&&"object"!=typeof t)throw new c.ERR_INVALID_ARG_TYPE("options","Object",t);super(e,t),this.code="ABORT_ERR",this.name="AbortError"}}b("ERR_ASSERTION","%s",Error),b("ERR_INVALID_ARG_TYPE",(e,t,r)=>{d("string"==typeof e,"'name' must be a string"),Array.isArray(t)||(t=[t]);let n="The ";e.endsWith(" argument")?n+=`${e} `:n+=`"${e}" ${e.includes(".")?"property":"argument"} `,n+="must be ";let o=[],s=[],a=[];for(let e of t)d("string"==typeof e,"All expected entries have to be of type string"),u.includes(e)?o.push(e.toLowerCase()):f.test(e)?s.push(e):(d("object"!==e,'The value "object" should be written as "Object"'),a.push(e));if(s.length>0){let e=o.indexOf("object");-1!==e&&(o.splice(o,e,1),s.push("Object"))}if(o.length>0){switch(o.length){case 1:n+=`of type ${o[0]}`;break;case 2:n+=`one of type ${o[0]} or ${o[1]}`;break;default:{let e=o.pop();n+=`one of type ${o.join(", ")}, or ${e}`}}(s.length>0||a.length>0)&&(n+=" or ")}if(s.length>0){switch(s.length){case 1:n+=`an instance of ${s[0]}`;break;case 2:n+=`an instance of ${s[0]} or ${s[1]}`;break;default:{let e=s.pop();n+=`an instance of ${s.join(", ")}, or ${e}`}}a.length>0&&(n+=" or ")}switch(a.length){case 0:break;case 1:a[0].toLowerCase()!==a[0]&&(n+="an "),n+=`${a[0]}`;break;case 2:n+=`one of ${a[0]} or ${a[1]}`;break;default:{let e=a.pop();n+=`one of ${a.join(", ")}, or ${e}`}}if(null==r)n+=`. Received ${r}`;else if("function"==typeof r&&r.name)n+=`. Received function ${r.name}`;else if("object"==typeof r){var l;if(null!==(l=r.constructor)&&void 0!==l&&l.name)n+=`. Received an instance of ${r.constructor.name}`;else{let e=i(r,{depth:-1});n+=`. Received ${e}`}}else{let e=i(r,{colors:!1});e.length>25&&(e=`${e.slice(0,25)}...`),n+=`. Received type ${typeof r} (${e})`}return n},TypeError),b("ERR_INVALID_ARG_VALUE",(e,t,r="is invalid")=>{let n=i(t);n.length>128&&(n=n.slice(0,128)+"...");let o=e.includes(".")?"property":"argument";return`The ${o} '${e}' ${r}. Received ${n}`},TypeError),b("ERR_INVALID_RETURN_VALUE",(e,t,r)=>{var n;let i=null!=r&&null!==(n=r.constructor)&&void 0!==n&&n.name?`instance of ${r.constructor.name}`:`type ${typeof r}`;return`Expected ${e} to be returned from the "${t}" function but got ${i}.`},TypeError),b("ERR_MISSING_ARGS",(...e)=>{let t;d(e.length>0,"At least one arg needs to be specified");let r=e.length;switch(e=(Array.isArray(e)?e:[e]).map(e=>`"${e}"`).join(" or "),r){case 1:t+=`The ${e[0]} argument`;break;case 2:t+=`The ${e[0]} and ${e[1]} arguments`;break;default:{let r=e.pop();t+=`The ${e.join(", ")}, and ${r} arguments`}}return`${t} must be specified`},TypeError),b("ERR_OUT_OF_RANGE",(e,t,r)=>{let n;return d(t,'Missing "range" argument'),Number.isInteger(r)&&Math.abs(r)>4294967296?n=h(String(r)):"bigint"==typeof r?(n=String(r),(r>2n**32n||r<-(2n**32n))&&(n=h(n)),n+="n"):n=i(r),`The value of "${e}" is out of range. It must be ${t}. Received ${n}`},RangeError),b("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),b("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),b("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),b("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),b("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),b("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),b("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),b("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),b("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),b("ERR_STREAM_WRITE_AFTER_END","write after end",Error),b("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),e.exports={AbortError:y,aggregateTwoErrors:g(m),hideStackFrames:g,codes:c}},235:function(e){"use strict";e.exports={ArrayIsArray:e=>Array.isArray(e),ArrayPrototypeIncludes:(e,t)=>e.includes(t),ArrayPrototypeIndexOf:(e,t)=>e.indexOf(t),ArrayPrototypeJoin:(e,t)=>e.join(t),ArrayPrototypeMap:(e,t)=>e.map(t),ArrayPrototypePop:(e,t)=>e.pop(t),ArrayPrototypePush:(e,t)=>e.push(t),ArrayPrototypeSlice:(e,t,r)=>e.slice(t,r),Error,FunctionPrototypeCall:(e,t,...r)=>e.call(t,...r),FunctionPrototypeSymbolHasInstance:(e,t)=>Function.prototype[Symbol.hasInstance].call(e,t),MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties:(e,t)=>Object.defineProperties(e,t),ObjectDefineProperty:(e,t,r)=>Object.defineProperty(e,t,r),ObjectGetOwnPropertyDescriptor:(e,t)=>
2Object.getOwnPropertyDescriptor(e,t),ObjectKeys:e=>Object.keys(e),ObjectSetPrototypeOf:(e,t)=>Object.setPrototypeOf(e,t),Promise,PromisePrototypeCatch:(e,t)=>e.catch(t),PromisePrototypeThen:(e,t,r)=>e.then(t,r),PromiseReject:e=>Promise.reject(e),PromiseResolve:e=>Promise.resolve(e),ReflectApply:Reflect.apply,RegExpPrototypeTest:(e,t)=>e.test(t),SafeSet:Set,String,StringPrototypeSlice:(e,t,r)=>e.slice(t,r),StringPrototypeToLowerCase:e=>e.toLowerCase(),StringPrototypeToUpperCase:e=>e.toUpperCase(),StringPrototypeTrim:e=>e.trim(),Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet:(e,t,r)=>e.set(t,r),Boolean:Boolean,Uint8Array}},24422:function(e,t,r){"use strict";let n=r(9109),{kResistStopPropagation:i,SymbolDispose:o}=r(235),AbortSignal=globalThis.AbortSignal||r(8741).AbortSignal,s=globalThis.AbortController||r(8741).AbortController,a=Object.getPrototypeOf(async function(){}).constructor,u=globalThis.Blob||n.Blob,f=void 0!==u?function(e){return e instanceof u}:function(e){return!1},l=(e,t)=>
2{if(void 0!==e&&(null===e||"object"!=typeof e||!("aborted"in e)))throw new ERR_INVALID_ARG_TYPE(t,"AbortSignal",e)},c=(e,t)=>{if("function"!=typeof e)throw new ERR_INVALID_ARG_TYPE(t,"Function",e)};class d extends Error{constructor(e){if(!Array.isArray(e))throw TypeError(`Expected input to be an Array, got ${typeof e}`);let t="";for(let r=0;r<e.length;r++)t+=` ${e[r].stack} 3`;super(t),this.name="AggregateError",this.errors=e}}e.exports={AggregateError:d,kEmptyObject:Object.freeze({}),once(e){let t=!1;return function(...r){t||(t=!0,e.apply(this,r))}},createDeferredPromise:function(){let e,t;return{promise:new Promise((r,n)=>{e=r,t=n}),resolve:e,reject:t}},promisify:e=>new Promise((t,r)=>{e((e,...n)=>e?r(e):t(...n))}),debuglog:()=>function(){},format:(e,...t)=>e.replace(/%([sdifj])/g,function(...[e,r]){let n=t.shift();if("f"===r)return n.toFixed(6);if("j"===r)return JSON.stringify(n);if("s"!==r||"object"!=typeof n)return n.toString();{let e=n.constructor!==Object?n.constructor.name:"";return`${e} {}`.trim()}}),inspect(e){switch(typeof e){case"string":if(e.includes("'")){if(!e.includes('"'))return`"${e}"`;if(!e.includes("`")&&!e.includes("${"))return`\`${e}\``}return`'${e}'`;case"number":if(isNaN(e))return"NaN";if(Object.is(e,-0))return String(e);return e;case"bigint":return`${String(e)}n`;case"boolean":case"undefined":return String(e);case"object":return"{}"}},types:{isAsyncFunction:e=>e instanceof a,isArrayBufferView:e=>ArrayBuffer.isView(e)},isBlob:f,deprecate:(e,t)=>e,addAbortListener:r(68885).addAbortListener||function(e,t){let r;
3if(void 0===e)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",e);return l(e,"signal"),c(t,"listener"),e.aborted?queueMicrotask(()=>t()):(e.addEventListener("abort",t,{__proto__:null,once:!0,[i]:!0}),r=()=>{e.removeEventListener("abort",t)}),{__proto__:null,[o](){var e;null===(e=r)||void 0===e||e()}}},AbortSignalAny:AbortSignal.any||function(e){if(1===e.length)return e[0];let t=new s,r=()=>t.abort();return e.forEach(e=>{l(e,"signals"),e.addEventListener("abort",r,{once:!0})}),t.signal.addEventListener("abort",()=>{e.forEach(e=>e.removeEventListener("abort",r))},{once:!0}),t.signal}},e.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")},2625:function(e,t,r){"use strict";let{Buffer:n}=r(9109),{ObjectDefineProperty:i,ObjectKeys:o,ReflectApply:s}=r(235),{promisify:{custom:a}}=r(24422),{streamReturningOperators:u,promiseReturningOperators:f}=r(39631),{codes:{ERR_ILLEGAL_CONSTRUCTOR:l}}=r(67682),c=r(17836),{setDefaultHighWaterMark:d,getDefaultHighWaterMark:h}=r(86410),{pipeline:p}=r(55658),{destroyer:b}=r(3186),g=r(7943),m=r(32933),y=r(18462),v=e.exports=r(56269).Stream;for(let e of(v.isDestroyed=y.isDestroyed,v.isDisturbed=y.isDisturbed,v.isErrored=y.isErrored,v.isReadable=y.isReadable,v.isWritable=y.isWritable,v.Readable=r(94825),o(u))){let t=u[e];function w(...e){if(new.target)throw l();return v.Readable.from(s(t,this,e))}i(w,"name",{__proto__:null,value:t.name}),i(w,"length",{__proto__:null,value:t.length}),i(v.Readable.prototype,e,{__proto__:null,value:w,enumerable:!1,configurable:!0,writable:!0})}for(let e of o(f)){let t=f[e];function w(...e){if(new.target)throw l();return s(t,this,e)}i(w,"name",{__proto__:null,value:t.name}),i(w,"length",{__proto__:null,value:t.length}),i(v.Readable.prototype,e,{__proto__:null,value:w,enumerable:!1,configurable:!0,writable:!0})}v.Writable=r(1917),v.Duplex=r(71570),v.Transform=r(44938),v.PassThrough=r(61926),v.pipeline=p;let{addAbortSignal:_}=r(6202);v.addAbortSignal=_,v.finished=g,v.destroy=b,v.compose=c,v.setDefaultHighWaterMark=d,v.getDefaultHighWaterMark=h,i(v,"promises",{__proto__:null,configurable:!0,enumerable:!0,get:()=>m}),i(p,a,{__proto__:null,enumerable:!0,get:()=>m.pipeline}),i(g,a,{__proto__:null,enumerable:!0,get:()=>m.finished}),v.Stream=v,v._isUint8Array=function(e){return e instanceof Uint8Array},v._uint8ArrayToBuffer=function(e){return n.from(e.buffer,e.byteOffset,e.byteLength)}},32933:function(e,t,r){"use strict";let{ArrayPrototypePop:n,Promise:i}=r(235),{isIterable:o,isNodeStream:s,isWebStream:a}=r(18462),{pipelineImpl:u}=r(55658),{finished:f}=r(7943);function l(...e){return new i((t,r)=>{let i,f;let l=e[e.length-1];if(l&&"object"==typeof l&&!s(l)&&!o(l)&&!a(l)){let t=n(e);i=t.signal,f=t.end}u(e,(e,n)=>{e?r(e):t(n)},{signal:i,end:f})})}r(2625),e.exports={finished:f,pipeline:l}},12647:function(e,t,r){"use strict";var n,i=r(9109).Buffer;let o=new(r(65815)).ec("secp256k1"),s=r.g.crypto||r.g.msCrypto||{},a=s.subtle||s.webkitSubtle,u=r(75683),f=i.from("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141","hex"),l=i.alloc(32,0);function c(e,t){if(!e)throw Error(t||"Assertion failed")}function d(e){return i.isBuffer(e)&&32===e.length}function h(e){return!!d(e)&&e.compare(l)>0&&0>e.compare(f)}function p(e,t){if(e.length!==t.length)return!1;let r=0;for(let n=0;n<e.length;n++)r|=e[n]^t[n];return 0===r}function b(e){let t=new Uint8Array(e);return void 0===s.getRandomValues?i.from(u.randomBytes(e)):(s.getRandomValues(t),i.from(t))}async function g(e){return new Uint8Array(a?await a.digest("SHA-512",e):u.createHash("sha512").update(e).digest())}function m(e){return async function(t,r,n){if(a){let o={name:"AES-CBC"},s=await a.importKey("raw",r,o,!1,[e]),u={name:"AES-CBC",iv:t},f=await a[e](u,s,n);return i.from(new Uint8Array(f))}if("encrypt"===e){let e=u.createCipheriv("aes-256-cbc",r,t),o=e.update(n),s=e.final();return i.concat([o,s])}if("decrypt"===e){let e=u.createDecipheriv("aes-256-cbc",r,t),o=e.update(n),s=e.final();return i.concat([o,s])}}}let y=m("encrypt"),v=m("decrypt");async function w(e,t){if(a){let r={name:"HMAC",hash:{name:"SHA-256"}},n=await a.importKey("raw",new Uint8Array(e),r,!1,["sign","verify"]),o=await a.sign("HMAC",n,t);return i.from(new Uint8Array(o))}let r=u.createHmac("sha256",i.from(e));return r.update(t),r.digest()}async function _(e,t,r){return p(await w(e,t),r)}n=function(){let e=b(32);for(;!h(e);)e=b(32);return e};let S=t.rc=function(e){return c(32===e.length,"Bad private key"),c(h(e),"Bad private key"),i.from(o.keyFromPrivate(e).getPublic("arr"))};n=function(e){c(32===e.length,"Bad private key"),c(h(e),"Bad private key");let t=!0;return i.from(o.keyFromPrivate(e).getPublic(t,"arr"))},t.Xx=async function(e,t){return c(32===e.length,"Bad private key"),c(h(e),"Bad private key"),c(t.length>0,"Message should not be empty"),c(t.length<=32,"Message is too long"),i.from(o.sign(t,e,{canonical:!0}).toDER())},n=async function(e,t,r){if(c(65===e.length||33===e.length,"Bad public key"),65===e.length&&c(4===e[0],"Bad public key"),33===e.length&&c(2===e[0]||3===e[0],"Bad public key"),c(t.length>0,"Message should not be empty"),c(t.length<=32,"Message is too long"),o.verify(t,r,e))return null;throw Error("Bad signature")};let E=n=async function(e,t){c(i.isBuffer(e),"Bad private key"),c(i.isBuffer(t),"Bad public key"),c(32===e.length,"Bad private key"),c(h(e),"Bad private key"),c(65===t.length||33===t.length,"Bad public key"),65===t.length&&c(4===t[0],"Bad public key"),33===t.length&&c(2===t[0]||3===t[0],"Bad public key");let r=o.keyFromPrivate(e),n=o.keyFromPublic(t),s=r.derive(n.getPublic());return i.from(s.toArray())},A=n=async function(e,t){c(i.isBuffer(e),"Bad private key"),c(i.isBuffer(t),"Bad public key"),c(32===e.length,"Bad private key"),c(h(e),"Bad private key"),c(65===t.length||33===t.length,"Bad public key"),65===t.length&&c(4===t[0],"Bad public key"),33===t.length&&c(2===t[0]||3===t[0],"Bad public key");let r=o.keyFromPrivate(e),n=o.keyFromPublic(t),s=r.derive(n.getPublic());return i.from(s.toString(16,64),"hex")};t.HI=async function(e,t,r){let n,o,s,a;let u=(r=r||{}).ephemPrivateKey||b(32);for(;!h(u);)u=r.ephemPrivateKey||b(32);o=S(u);let f=await E(u,e),l=await g(f);n=r.iv||b(16);let c=l.slice(0,32);a=l.slice(32),s=await y(n,c,t);let d=i.concat([n,o,s]);return{iv:n,ephemPublicKey:o,ciphertext:s,mac:await w(a,d)}};let R=async function(e,t){let r,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=n?A:E,s=await o(e,t.ephemPublicKey),a=await g(s);r=a.slice(0,32);let u=a.slice(32),f=i.concat([t.iv,t.ephemPublicKey,t.ciphertext]),l=await _(u,f,t.mac);if(!l&&!1===n)return R(e,t,!0);if(!l&&!0===n)throw Error("bad MAC after trying padded");let c=await v(t.iv,r,t.ciphertext);return i.from(new Uint8Array(c))};t.pe=R},63047:function(e,t,r){"use strict";let n,i;r.r(t),r.d(t,{BUTTON_POSITION:function(){return n6},LOGIN_PROVIDER:function(){return n3},PAYMENT_PROVIDER:function(){return n1},TORUS_BUILD_ENV:function(){return n2},TorusInPageProvider:function(){return iS},default:function(){return iP}});var o,s,a,u={};function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){if("object"!=f(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=f(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function c(e){var t=l(e,"string");return"symbol"==f(t)?t:t+""}function d(e,t,r){return(t=c(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.r(u),r.d(u,{Decoder:function(){return t8},Encoder:function(){return t6},PacketType:function(){return o},protocol:function(){return t2}});var h=r(45429);r(22634);var p=r(68885),b=r(98794),g=r.n(b);r(68560);var m=r(99302),y=r.n(m),v=r(47735),w=r.n(v),_=r(68459),S=r.n(_);Symbol("IGNORE_SUBSTREAM");var E=r(98215),A=r(8728),R=r.n(A);r(79082);var x=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,M=Math.ceil,k=Math.floor,O="[BigNumber Error] ",T=O+"Number primitive has more than 15 significant digits: ",I=1e14,P=14,L=9007199254740991,B=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],N=1e7,C=1e9;function j(e){var t,r,n,i=y.prototype={constructor:y,toString:null,valueOf:null},o=new y(1),s=20,a=4,u=-7,f=21,l=-1e7,c=1e7,d=!1,h=1,p=0,b={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xa0",suffix:""},g="0123456789abcdefghijklmnopqrstuvwxyz",m=!0;function y(e,t){var i,o,u,f,d,h,p,b,v=this;if(!(v instanceof y))return new y(e,t);if(null==t){if(e&&!0===e._isBigNumber){v.s=e.s,!e.c||e.e>c?v.c=v.e=null:e.e<l?v.c=[v.e=0]:(v.e=e.e,v.c=e.c.slice());return}if((h="number"==typeof e)&&0*e==0){if(v.s=1/e<0?(e=-e,-1):1,e===~~e){for(f=0,d=e;d>=10;d/=10,f++);f>c?v.c=v.e=null:(v.e=f,v.c=[e]);return}b=String(e)}else{if(!x.test(b=String(e)))return n(v,b,h);v.s=45==b.charCodeAt(0)?(b=b.slice(1),-1):1}(f=b.indexOf("."))>-1&&(b=b.replace(".","")),(d=b.search(/e/i))>0?(f<0&&(f=d),f+=+b.slice(d+1),b=b.substring(0,d)):f<0&&(f=b.length)}else{if(q(t,2,g.length,"Base"),10==t&&m)return S(v=new y(e),s+v.e+1,a);if(b=String(e),h="number"==typeof e){if(0*e!=0)return n(v,b,h,t);if(v.s=1/e<0?(b=b.slice(1),-1):1,y.DEBUG&&b.replace(/^0\.0*|\./,"").length>15)throw Error(T+e)}else v.s=45===b.charCodeAt(0)?(b=b.slice(1),-1):1;for(i=g.slice(0,t),f=d=0,p=b.length;d<p;d++)if(0>
vendor: 8,668 bytes, line 3
3i.indexOf(o=b.charAt(d))){if("."==o){if(d>f){f=p;continue}}else if(!u&&(b==b.toUpperCase()&&(b=b.toLowerCase())||b==b.toLowerCase()&&(b=b.toUpperCase()))){u=!0,d=-1,f=0;continue}return n(v,String(e),h,t)}h=!1,(f=(b=r(b,t,10,v.s)).indexOf("."))>-1?b=b.replace(".",""):f=b.length}for(d=0;48===b.charCodeAt(d);d++);for(p=b.length;48===b.charCodeAt(--p););if(b=b.slice(d,++p)){if(p-=d,h&&y.DEBUG&&p>15&&(e>L||e!==k(e)))throw Error(T+v.s*e);if((f=f-d-1)>c)v.c=v.e=null;else if(f<l)v.c=[v.e=0];else{if(v.e=f,v.c=[],d=(f+1)%P,f<0&&(d+=P),d<p){for(d&&v.c.push(+b.slice(0,d)),p-=P;d<p;)v.c.push(+b.slice(d,d+=P));d=P-(b=b.slice(d)).length}else d-=p;for(;d--;b+="0");v.c.push(+b)}}else v.c=[v.e=0]}function v(e,t,r,n){var i,o,s,l,c;if(null==r?r=a:q(r,0,8),!e.c)return e.toString();if(i=e.c[0],s=e.e,null==t)c=F(e.c),c=1==n||2==n&&(s<=u||s>=f)?z(c,s):H(c,s,"0");else if(o=(e=S(new y(e),t,r)).e,l=(c=F(e.c)).length,1==n||2==n&&(t<=o||o<=u)){for(;l<t;c+="0",l++);c=z(c,o)}else if(t-=s,c=H(c,o,"0"),o+1>l){if(--t>0)for(c+=".";t--;c+="0");}else if((t+=o-l)>0)for(o+1==l&&(c+=".");t--;c+="0");return e.s<0&&i?"-"+c:c}function w(e,t){for(var r,n,i=1,o=new y(e[0]);i<e.length;i++)(n=new y(e[i])).s&&(r=U(o,n))!==t&&(0!==r||o.s!==t)||(o=n);return o}function _(e,t,r){for(var n=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,n++);return(r=n+r*P-1)>c?e.c=e.e=null:r<l?e.c=[e.e=0]:(e.e=r,e.c=t),e}function S(e,t,r,n){var i,o,s,a,u,f,d,h=e.c,p=B;if(h){t:{for(i=1,a=h[0];a>=10;a/=10,i++);if((o=t-i)<0)o+=P,s=t,d=k((u=h[f=0])/p[i-s-1]%10);else if((f=M((o+1)/P))>=h.length){if(n){for(;h.length<=f;h.push(0));u=d=0,i=1,o%=P,s=o-P+1}else break t}else{for(i=1,u=a=h[f];a>=10;a/=10,i++);o%=P,d=(s=o-P+i)<0?0:k(u/p[i-s-1]%10)}if(n=n||t<0||null!=h[f+1]||(s<0?u:u%p[i-s-1]),n=r<4?(d||n)&&(0==r||r==(e.s<0?3:2)):d>5||5==d&&(4==r||n||6==r&&(o>0?s>0?u/p[i-s]:0:h[f-1])%10&1||r==(e.s<0?8:7)),t<1||!h[0])return h.length=0,n?(t-=e.e+1,h[0]=p[(P-t%P)%P],e.e=-t||0):h[0]=e.e=0,e;if(0==o?(h.length=f,a=1,f--):(h.length=f+1,a=p[P-o],h[f]=s>0?k(u/p[i-s]%p[s])*a:0),n)for(;;){if(0==f){for(o=1,s=h[0];s>=10;s/=10,o++);for(s=h[0]+=a,a=1;s>=10;s/=10,a++);o!=a&&(e.e++,h[0]==I&&(h[0]=1));break}if(h[f]+=a,h[f]!=I)break;h[f--]=0,a=1}for(o=h.length;0===h[--o];h.pop());}e.e>c?e.c=e.e=null:e.e<l&&(e.c=[e.e=0])}return e}function E(e){var t,r=e.e;return null===r?e.toString():(t=F(e.c),t=r<=u||r>=f?z(t,r):H(t,r,"0"),e.s<0?"-"+t:t)}return y.clone=j,y.ROUND_UP=0,y.ROUND_DOWN=1,y.ROUND_CEIL=2,y.ROUND_FLOOR=3,y.ROUND_HALF_UP=4,y.ROUND_HALF_DOWN=5,y.ROUND_HALF_EVEN=6,y.ROUND_HALF_CEIL=7,y.ROUND_HALF_FLOOR=8,y.EUCLID=9,y.config=y.set=function(e){var t,r;if(null!=e){if("object"==typeof e){if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(q(r=e[t],0,C,t),s=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(q(r=e[t],0,8,t),a=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(q(r[0],-C,0,t),q(r[1],0,C,t),u=r[0],f=r[1]):(q(r,-C,C,t),u=-(f=r<0?-r:r))),e.hasOwnProperty(t="RANGE")){if((r=e[t])&&r.pop)q(r[0],-C,-1,t),q(r[1],1,C,t),l=r[0],c=r[1];else if(q(r,-C,C,t),r)l=-(c=r<0?-r:r);else throw Error(O+t+" cannot be zero: "+r)}if(e.hasOwnProperty(t="CRYPTO")){if(!!(r=e[t])===r){if(r){if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))d=r;else throw d=!r,Error(O+"crypto unavailable")}else d=r}else throw Error(O+t+" not true or false: "+r)}if(e.hasOwnProperty(t="MODULO_MODE")&&(q(r=e[t],0,9,t),h=r),e.hasOwnProperty(t="POW_PRECISION")&&(q(r=e[t],0,C,t),p=r),e.hasOwnProperty(t="FORMAT")){if("object"==typeof(r=e[t]))b=r;else throw Error(O+t+" not an object: "+r)}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(O+t+" invalid: "+r);m="0123456789"==r.slice(0,10),g=r}}else throw Error(O+"Object expected: "+e)}return{DECIMAL_PLACES:s,ROUNDING_MODE:a,EXPONENTIAL_AT:[u,f],RANGE:[l,c],CRYPTO:d,MODULO_MODE:h,POW_PRECISION:p,FORMAT:b,ALPHABET:g}},y.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!y.DEBUG)return!0;var t,r,n=e.c,i=e.e,o=e.s;t:if("[object Array]"==({}).toString.call(n)){if((1===o||-1===o)&&i>=-C&&i<=C&&i===k(i)){if(0===n[0]){if(0===i&&1===n.length)return!0;break t}if((t=(i+1)%P)<1&&(t+=P),String(n[0]).length==t){for(t=0;t<n.length;t++)if((r=n[t])<0||r>=I||r!==k(r))break t;if(0!==r)return!0}}}else if(null===n&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(O+"Invalid BigNumber: "+e)},y.maximum=y.max=function(){return w(arguments,-1)},y.minimum=y.min=function(){return w(arguments,1)},y.random=function(){var e=9007199254740992,t=9007199254740992*Math.random()&2097151?function(){return k(Math.random()*e)}:function(){return(1073741824*Math.random()|0)*8388608+(8388608*Math.random()|0)};return function(e){var r,n,i,a,u,f=0,l=[],c=new y(o);if(null==e?e=s:q(e,0,C),a=M(e/P),d){if(crypto.getRandomValues){for(r=crypto.getRandomValues(new Uint32Array(a*=2));f<a;)(u=131072*r[f]+(r[f+1]>>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),r[f]=n[0],r[f+1]=n[1]):(l.push(u%1e14),f+=2);f=a/2}else if(crypto.randomBytes){for(r=crypto.randomBytes(a*=7);f<a;)(u=(31&r[f])*281474976710656+1099511627776*r[f+1]+4294967296*r[f+2]+16777216*r[f+3]+(r[f+4]<<16)+(r[f+5]<<8)+r[f+6])>=9e15?crypto.randomBytes(7).copy(r,f):(l.push(u%1e14),f+=7);f=a/7}else throw d=!1,Error(O+"crypto unavailable")}if(!d)for(;f<a;)(u=t())<9e15&&(l[f++]=u%1e14);for(a=l[--f],e%=P,a&&e&&(u=B[P-e],l[f]=k(a/u)*u);0===l[f];l.pop(),f--);if(f<0)l=[i=0];else{for(i=-1;0===l[0];l.splice(0,1),i-=P);for(f=1,u=l[0];u>=10;u/=10,f++);f<P&&(i-=P-f)}return c.e=i,c.c=l,c}}(),y.sum=function(){for(var e=1,t=arguments,r=new y(t[0]);e<t.length;)r=r.plus(t[e++]);return r},r=function(){var e="0123456789";function r(e,t,r,n){for(var i,o,s=[0],a=0,u=e.length;a<u;){for(o=s.length;o--;s[o]*=t);for(s[0]+=n.indexOf(e.charAt(a++)),i=0;i<s.length;i++)s[i]>r-1&&(null==s[i+1]&&(s[i+1]=0),s[i+1]+=s[i]/r|0,s[i]%=r)}return s.reverse()}return function(n,i,o,u,f){var l,c,d,h,b,m,v,w,_=n.indexOf("."),S=s,E=a;for(_>=0&&(h=p,p=0,n=n.replace(".",""),m=(w=new y(i)).pow(n.length-_),p=h,w.c=r(H(F(m.c),m.e,"0"),10,o,e),w.e=w.c.length),d=h=(v=r(n,i,o,f?(l=g,e):(l=e,g))).length;0==v[--h];v.pop());if(!v[0])return l.charAt(0);if(_<0?--d:(m.c=v,m.e=d,m.s=u,v=(m=t(m,w,S,E,o)).c,b=m.r,d=m.e),_=v[c=d+S+1],h=o/2,b=b||c<0||null!=v[c+1],b=E<4?(null!=_||b)&&(0==E||E==(m.s<0?3:2)):_>h||_==h&&(4==E||b||6==E&&1&v[c-1]||E==(m.s<0?8:7)),c<1||!v[0])n=b?H(l.charAt(1),-S,l.charAt(0)):l.charAt(0);else{if(v.length=c,b)for(--o;++v[--c]>o;)v[c]=0,c||(++d,v=[1].concat(v));for(h=v.length;!v[--h];);for(_=0,n="";_<=h;n+=l.charAt(v[_++]));n=H(n,d,l.charAt(0))}return n}}(),t=function(){function e(e,t,r){var n,i,o,s,a=0,u=e.length,f=t%N,l=t/N|0;for(e=e.slice();u--;)n=l*(o=e[u]%N)+(s=e[u]/N|0)*f,a=((i=f*o+n%N*N+a)/r|0)+(n/N|0)+l*s,e[u]=i%r;return a&&(e=[a].concat(e)),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=e[r]<t[r]?1:0,e[r]=i*n+e[r]-t[r];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(n,i,o,s,a){var u,f,l,c,d,h,p,b,g,m,v,w,_,E,A,R,x,M=n.s==i.s?1:-1,O=n.c,T=i.c;if(!O||!O[0]||!T||!T[0])return new y(n.s&&i.s&&(O?!T||O[0]!=T[0]:T)?O&&0==O[0]||!T?0*M:M/0:NaN);for(g=(b=new y(M)).c=[],M=o+(f=n.e-i.e)+1,a||(a=I,f=D(n.e/P)-D(i.e/P),M=M/P|0),l=0;T[l]==(O[l]||0);l++);if(T[l]>(O[l]||0)&&f--,M<0)g.push(1),c=!0;else{for(E=O.length,R=T.length,l=0,M+=2,(d=k(a/(T[0]+1)))>1&&(T=e(T,d,a),O=e(O,d,a),R=T.length,E=O.length),_=R,v=(m=O.slice(0,R)).length;v<R;m[v++]=0);x=[0].concat(x=T.slice()),A=T[0],T[1]>=a/2&&A++;do{if(d=0,(u=t(T,m,R,v))<0){if(w=m[0],R!=v&&(w=w*a+(m[1]||0)),(d=k(w/A))>1)for(d>=a&&(d=a-1),p=(h=e(T,d,a)).length,v=m.length;1==t(h,m,p,v);)d--,r(h,R<p?x:T,p,a),p=h.length,u=1;else 0==d&&(u=d=1),p=(h=T.slice()).length;if(p<v&&(h=[0].concat(h)),r(m,h,v,a),v=m.length,-1==u)for(;1>t(T,m,R,v);)d++,r(m,R<v?x:T,v,a),v=m.length}else 0===u&&(d++,m=[0]);g[l++]=d,m[0]?m[v++]=O[_]||0:(m=[O[_]],v=1)}while((_++<E||null!=m[0])&&M--);c=null!=m[0],g[0]||g.splice(0,1)}if(a==I){for(l=1,M=g[0];M>=10;M/=10,l++);S(b,o+(b.e=l+f*P-1)+1,s,c)}else b.e=f,b.r=+c;return b}}(),n=function(){var e=/^(-?)0([xbo])(?=\w[\w.]*$)/i,t=/^([^.]+)\.$/,r=/^\.([^.]+)$/,n=/^-?(Infinity|NaN)$/,i=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(o,s,a,u){var f,l=a?s:s.replace(i,"");if(n.test(l))o.s=isNaN(l)?null:l<0?-1:1;else{if(!a&&(l=l.replace(e,function(e,t,r){return f="x"==(r=r.toLowerCase())?16:"b"==r?2:8,u&&u!=f?e:t}),u&&(f=u,l=l.replace(t,"$1").replace(r,"0.$1")),s!=l))return new y(l,f);if(y.DEBUG)throw Error(O+"Not a"+(u?" base "+u:"")+" number: "+s);o.s=null}o.c=o.e=null}}(),i.absoluteValue=i.abs=function(){var e=new y(this);return e.s<0&&(e.s=1),e}
vendor: 4,607 bytes, line 3
3,i.comparedTo=function(e,t){return U(this,new y(e,t))},i.decimalPlaces=i.dp=function(e,t){var r,n,i,o=this;if(null!=e)return q(e,0,C),null==t?t=a:q(t,0,8),S(new y(o),e+o.e+1,t);if(!(r=o.c))return null;if(n=((i=r.length-1)-D(this.e/P))*P,i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},i.dividedBy=i.div=function(e,r){return t(this,new y(e,r),s,a)},i.dividedToIntegerBy=i.idiv=function(e,r){return t(this,new y(e,r),0,1)},i.exponentiatedBy=i.pow=function(e,t){var r,n,i,s,u,f,l,c,d,h=this;if((e=new y(e)).c&&!e.isInteger())throw Error(O+"Exponent not an integer: "+E(e));if(null!=t&&(t=new y(t)),f=e.e>14,!h.c||!h.c[0]||1==h.c[0]&&!h.e&&1==h.c.length||!e.c||!e.c[0])return d=new y(Math.pow(+E(h),f?e.s*(2-$(e)):+E(e))),t?d.mod(t):d;if(l=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new y(NaN);(n=!l&&h.isInteger()&&t.isInteger())&&(h=h.mod(t))}else{if(e.e>9&&(h.e>0||h.e<-1||(0==h.e?h.c[0]>1||f&&h.c[1]>=24e7:h.c[0]<8e13||f&&h.c[0]<=9999975e7)))return s=h.s<0&&$(e)?-0:0,h.e>-1&&(s=1/s),new y(l?1/s:s);p&&(s=M(p/P+2))}for(f?(r=new y(.5),l&&(e.s=1),c=$(e)):c=(i=Math.abs(+E(e)))%2,d=new y(o);;){if(c){if(!(d=d.times(h)).c)break;s?d.c.length>s&&(d.c.length=s):n&&(d=d.mod(t))}if(i){if(0===(i=k(i/2)))break;c=i%2}else if(S(e=e.times(r),e.e+1,1),e.e>14)c=$(e);else{if(0==(i=+E(e)))break;c=i%2}h=h.times(h),s?h.c&&h.c.length>s&&(h.c.length=s):n&&(h=h.mod(t))}return n?d:(l&&(d=o.div(d)),t?d.mod(t):s?S(d,p,a,u):d)},i.integerValue=function(e){var t=new y(this);return null==e?e=a:q(e,0,8),S(t,t.e+1,e)},i.isEqualTo=i.eq=function(e,t){return 0===U(this,new y(e,t))},i.isFinite=function(){return!!this.c},i.isGreaterThan=i.gt=function(e,t){return U(this,new y(e,t))>0},i.isGreaterThanOrEqualTo=i.gte=function(e,t){return 1===(t=U(this,new y(e,t)))||0===t},i.isInteger=function(){return!!this.c&&D(this.e/P)>this.c.length-2},i.isLessThan=i.lt=function(e,t){return 0>U(this,new y(e,t))},i.isLessThanOrEqualTo=i.lte=function(e,t){return -1===(t=U(this,new y(e,t)))||0===t},i.isNaN=function(){return!this.s},i.isNegative=function(){return this.s<0},i.isPositive=function(){return this.s>0},i.isZero=function(){return!!this.c&&0==this.c[0]},i.minus=function(e,t){var r,n,i,o,s=this,u=s.s;if(t=(e=new y(e,t)).s,!u||!t)return new y(NaN);if(u!=t)return e.s=-t,s.plus(e);var f=s.e/P,l=e.e/P,c=s.c,d=e.c;if(!f||!l){if(!c||!d)return c?(e.s=-t,e):new y(d?s:NaN);if(!c[0]||!d[0])return d[0]?(e.s=-t,e):new y(c[0]?s:3==a?-0:0)}if(f=D(f),l=D(l),c=c.slice(),u=f-l){for((o=u<0)?(u=-u,i=c):(l=f,i=d),i.reverse(),t=u;t--;i.push(0));i.reverse()}else for(n=(o=(u=c.length)<(t=d.length))?u:t,u=t=0;t<n;t++)if(c[t]!=d[t]){o=c[t]<d[t];break}if(o&&(i=c,c=d,d=i,e.s=-e.s),(t=(n=d.length)-(r=c.length))>0)for(;t--;c[r++]=0);for(t=I-1;n>u;){if(c[--n]<d[n]){for(r=n;r&&!c[--r];c[r]=t);--c[r],c[n]+=I}c[n]-=d[n]}for(;0==c[0];c.splice(0,1),--l);return c[0]?_(e,c,l):(e.s=3==a?-1:1,e.c=[e.e=0],e)},i.modulo=i.mod=function(e,r){var n,i,o=this;return(e=new y(e,r),o.c&&e.s&&(!e.c||e.c[0]))?e.c&&(!o.c||o.c[0])?(9==h?(i=e.s,e.s=1,n=t(o,e,0,3),e.s=i,n.s*=i):n=t(o,e,0,h),(e=o.minus(n.times(e))).c[0]||1!=h||(e.s=o.s),e):new y(o):new y(NaN)},i.multipliedBy=i.times=function(e,t){var r,n,i,o,s,a,u,f,l,c,d,h,p,b,g,m=this,v=m.c,w=(e=new y(e,t)).c;if(!v||!w||!v[0]||!w[0])return m.s&&e.s&&(!v||v[0]||w)&&(!w||w[0]||v)?(e.s*=m.s,v&&w?(e.c=[0],e.e=0):e.c=e.e=null):e.c=e.e=e.s=null,e;for(n=D(m.e/P)+D(e.e/P),e.s*=m.s,(u=v.length)<(c=w.length)&&(p=v,v=w,w=p,i=u,u=c,c=i),i=u+c,p=[];i--;p.push(0));for(b=I,g=N,i=c;--i>=0;){for(r=0,d=w[i]%g,h=w[i]/g|0,o=i+(s=u);o>i;)a=h*(f=v[--s]%g)+(l=v[s]/g|0)*d,r=((f=d*f+a%g*g+p[o]+r)/b|0)+(a/g|0)+h*l,p[o--]=f%b;p[o]=r}return r?++n:p.splice(0,1),_(e,p,n)},i.negated=function(){var e=new y(this);return e.s=-e.s||null,e},i.plus=function(e,t){var r,n=this,i=n.s;if(t=(e=new y(e,t)).s,!i||!t)return new y(NaN);if(i!=t)return e.s=-t,n.minus(e);var o=n.e/P,s=e.e/P,a=n.c,u=e.c;if(!o||!s){if(!a||!u)return new y(i/0);if(!a[0]||!u[0])return u[0]?e:new y(a[0]?n:0*i)}if(o=D(o),s=D(s),a=a.slice(),i=o-s){for(i>0?(s=o,r=u):(i=-i,r=a),r.reverse();i--;r.push(0));r.reverse()}for((i=a.length)-(t=u.length)<0&&(r=u,u=a,a=r,t=i),i=0;t;)i=(a[--t]=a[t]+u[t]+i)/I|0,a[t]=I===a[t]?0:a[t]%I;return i&&(a=[i].concat(a),++s),_(e,a,s)},i.precision=i.sd=function(e,t){var r,n,i,o=this;if(null!=e&&!!e!==e)return q(e,1,C),null==t?t=a:q(t,0,8),S(new y(o),e,t);if(!(r=o.c))return null;if(n=(i=r.length-1)*P+1,i=r[i]){for(;i%10==0;i/=10,n--);for(i=r[0];i>=10;i/=10,n++);}return e&&o.e+1>n&&(n=o.e+1),n},i.shiftedBy=function(e){return q(e,-L,L),this.times("1e"+e)},i.squareRoot=i.sqrt=function(){var e,r,n,i,o,u=this,f=u.c,l=u.s,c=u.e,d=s+4,h=new y("0.5");
3if(1!==l||!f||!f[0])return new y(!l||l<0&&(!f||f[0])?NaN:f?u:1/0);if(0==(l=Math.sqrt(+E(u)))||l==1/0?(((r=F(f)).length+c)%2==0&&(r+="0"),l=Math.sqrt(+r),c=D((c+1)/2)-(c<0||c%2),n=new y(r=l==1/0?"5e"+c:(r=l.toExponential()).slice(0,r.indexOf("e")+1)+c)):n=new y(l+""),n.c[0]){for((l=(c=n.e)+d)<3&&(l=0);;)if(o=n,n=h.times(o.plus(t(u,o,d,1))),F(o.c).slice(0,l)===(r=F(n.c)).slice(0,l)){if(n.e<c&&--l,"9999"!=(r=r.slice(l-3,l+1))&&(i||"4999"!=r)){+r&&(+r.slice(1)||"5"!=r.charAt(0))||(S(n,n.e+s+2,1),e=!n.times(n).eq(u));break}if(!i&&(S(o,o.e+s+2,0),o.times(o).eq(u))){n=o;break}d+=4,l+=4,i=1}}return S(n,n.e+s+1,a,e)},i.toExponential=function(e,t){return null!=e&&(q(e,0,C),e++),v(this,e,t,1)},i.toFixed=function(e,t){return null!=e&&(q(e,0,C),e=e+this.e+1),v(this,e,t)},i.toFormat=function(e,t,r){var n,i=this;if(null==r)null!=e&&t&&"object"==typeof t?(r=t,t=null):e&&"object"==typeof e?(r=e,e=t=null):r=b;else if("object"!=typeof r)throw Error(O+"Argument not an object: "+r);if(n=i.toFixed(e,t),i.c){var o,s=n.split("."),a=+r.groupSize,u=+r.secondaryGroupSize,f=r.groupSeparator||"",l=s[0],c=s[1],d=i.s<0,h=d?l.slice(1):l,p=h.length;if(u&&(o=a,a=u,u=o,p-=o),a>0&&p>0){for(o=p%a||a,l=h.substr(0,o);o<p;o+=a)l+=f+h.substr(o,a);u>0&&(l+=f+h.slice(o)),d&&(l="-"+l)}n=c?l+(r.decimalSeparator||"")+((u=+r.fractionGroupSize)?c.replace(RegExp("\\d{"+u+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):c):l}return(r.prefix||"")+n+(r.suffix||"")},i.toFraction=function(e){var r,n,i,s,u,f,l,d,h,p,b,g,m=this,v=m.c;if(null!=e&&(!(l=new y(e)).isInteger()&&(l.c||1!==l.s)||l.lt(o)))throw Error(O+"Argument "+(l.isInteger()?"out of range: ":"not an integer: ")+E(l));if(!v)return new y(m);for(r=new y(o),h=n=new y(o),i=d=new y(o),g=F(v),u=r.e=g.length-m.e-1,r.c[0]=B[(f=u%P)<0?P+f:f],e=!e||l.comparedTo(r)>0?u>0?r:h:l,f=c,c=1/0,l=new y(g),d.c[0]=0;p=t(l,r,0,1),1!=(s=n.plus(p.times(i))).comparedTo(e);)n=i,i=s,h=d.plus(p.times(s=h)),d=s,r=l.minus(p.times(s=r)),l=s;return s=t(e.minus(n),i,0,1),d=d.plus(s.times(h)),n=n.plus(s.times(i)),d.s=h.s=m.s,u*=2,b=1>t(h,i,u,a).minus(m).abs().comparedTo(t(d,n,u,a).minus(m).abs())?[h,i]:[d,n],c=f,b},i.toNumber=function(){return+E(this)},i.toPrecision=function(e,t){return null!=e&&q(e,1,C),v(this,e,t,2)},i.toString=function(e){var t,n=this,i=n.s,o=n.e;return null===o?i?(t="Infinity",i<0&&(t="-"+t)):t="NaN":(null==e?t=o<=u||o>=f?z(F(n.c),o):H(F(n.c),o,"0"):10===e&&m?t=H(F((n=S(new y(n),s+o+1,a)).c),n.e,"0"):(q(e,2,g.length,"Base"),t=r(H(F(n.c),o,"0"),10,e,i,!0)),i<0&&n.c[0]&&(t="-"+t)),t},i.valueOf=i.toJSON=function(){return E(this)},i._isBigNumber=!0,i[Symbol.toStringTag]="BigNumber",i[Symbol.for("nodejs.util.inspect.custom")]=i.valueOf,null!=e&&y.set(e),y}function D(e){var t=0|e;return e>0||e===t?t:t-1}function F(e){for(var t,r,n=1,i=e.length,o=e[0]+"";n<i;){for(r=P-(t=e[n++]+"").length;r--;t="0"+t);o+=t}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function U(e,t){var r,n,i=e.c,o=t.c,s=e.s,a=t.s,u=e.e,f=t.e;if(!s||!a)return null;if(r=i&&!i[0],n=o&&!o[0],r||n)return r?n?0:-a:s;if(s!=a)return s;if(r=s<0,n=u==f,!i||!o)return n?0:!i^r?1:-1;if(!n)return u>f^r?1:-1;for(s=0,a=(u=i.length)<(f=o.length)?u:f;s<a;s++)if(i[s]!=o[s])return i[s]>o[s]^r?1:-1;return u==f?0:u>f^r?1:-1}function q(e,t,r,n){if(e<t||e>r||e!==k(e))throw Error(O+(n||"Argument")+("number"==typeof e?e<t||e>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function $(e){var t=e.c.length-1;return D(e.e/P)==t&&e.c[t]%2!=0}function z(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function H(e,t,r){var n,i;if(t<0){for(i=r+".";++t;i+=r);e=i+e}else if(n=e.length,++t>n){for(i=r,t-=n;--t;i+=r);e+=i}else t<n&&(e=e.slice(0,t)+"."+e.slice(t));return e}j();var W=r(37554),V=r.n(W),G=r(22510),Z=r.n(G);function K(e){return!!e&&"function"==typeof e.then}Promise.resolve(!1),Promise.resolve(!0);var J=Promise.resolve();function X(e,t){return e||(e=0),new Promise(function(r){return setTimeout(function(){return r(t)},e)})}function Y(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function Q(){return Math.random().toString(36).substring(2)}var ee=0,et=0;function er(){var e=new Date().getTime();return e===ee?1e3*e+ ++et:(ee=e,et=0,1e3*e)}function en(){if("undefined"==typeof navigator)return!1;var e=Z().parse(navigator.userAgent);ei.info(JSON.stringify(e),"current browser info");var t=!0;return navigator.brave&&(t=!1),(e.engine.name===Z().ENGINE_MAP.WebKit||e.engine.name===Z().ENGINE_MAP.Gecko)&&(t=!1),t}var ei=V().getLogger("broadcast-channel");ei.setLevel("error");var eo={create:function(e){var t={messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=function(e){t.messagesCallback&&t.messagesCallback(e.data)},t},close:function(e){e.bc.close(),e.subFns=[]},onMessage:function(e,t){e.messagesCallback=t},postMessage:function(e,t){try{return e.bc.postMessage(t,!1),J}catch(e){return Promise.reject(e)}},canBeUsed:function(e){if("undefined"==typeof window||!e.support3PC||"function"!=typeof BroadcastChannel)return!1;
3if(BroadcastChannel._pubkey)throw Error("BroadcastChannel: Do not overwrite window.BroadcastChannel with this module, this is not a polyfill");return!0},type:"native",averageResponseTime:function(){return 150},microSeconds:er},es=function(){function e(e){this.ttl=e,this.map=new Map,this._to=!1}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.add=function(e){var t=this;this.map.set(e,eu()),this._to||(this._to=!0,setTimeout(function(){t._to=!1,ea(t)},0))},e.prototype.clear=function(){this.map.clear()},e}();function ea(e){for(var t=eu()-e.ttl,r=e.map[Symbol.iterator]();;){var n=r.next().value;if(!n)return;var i=n[0];if(!(n[1]<t))return;e.map.delete(i)}}function eu(){return new Date().getTime()}function ef(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=JSON.parse(JSON.stringify(e));return void 0===t.support3PC&&(t.support3PC=en()),void 0===t.webWorkerSupport&&(t.webWorkerSupport=!0),t.idb||(t.idb={}),t.idb.ttl||(t.idb.ttl=45e3),t.idb.fallbackInterval||(t.idb.fallbackInterval=150),e.idb&&"function"==typeof e.idb.onclose&&(t.idb.onclose=e.idb.onclose),t.localstorage||(t.localstorage={}),t.localstorage.removeTimeout||(t.localstorage.removeTimeout=6e4),t.server||(t.server={}),t.server.url||(t.server.url="https://broadcast-server.tor.us"),t.server.removeTimeout||(t.server.removeTimeout=3e5),e.methods&&(t.methods=e.methods),t}var el="pubkey.broadcast-channel-0-",ec="messages",ed={durability:"relaxed"};function eh(){if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!=typeof window){if(void 0!==window.mozIndexedDB)return window.mozIndexedDB;if(void 0!==window.webkitIndexedDB)return window.webkitIndexedDB;if(void 0!==window.msIndexedDB)return window.msIndexedDB}return!1}function ep(e){e.commit&&e.commit()}function eb(e){var t=eh(),r=el+e,n=t.open(r);return n.onupgradeneeded=function(e){e.target.result.createObjectStore(ec,{keyPath:"id",autoIncrement:!0})},new Promise(function(e,t){n.onerror=function(e){return t(e)},n.onsuccess=function(){e(n.result)}})}function eg(e,t,r){var n={uuid:t,time:new Date().getTime(),data:r},i=e.transaction([ec],"readwrite",ed);return new Promise(function(e,t){i.oncomplete=function(){return e()},i.onerror=function(e){return t(e)},i.objectStore(ec).add(n),ep(i)})}function em(e,t){var r=e.transaction(ec,"readonly",ed),n=r.objectStore(ec),i=[],o=IDBKeyRange.bound(t+1,1/0);if(n.getAll){var s=n.getAll(o);return new Promise(function(e,t){s.onerror=function(e){return t(e)},s.onsuccess=function(t){e(t.target.result)}})}function a(){try{return o=IDBKeyRange.bound(t+1,1/0),n.openCursor(o)}catch(e){return n.openCursor()}}return new Promise(function(e,n){var o=a();o.onerror=function(e){return n(e)},o.onsuccess=function(n){var o=n.target.result;o?o.value.id<t+1?o.continue(t+1):(i.push(o.value),o.continue()):(ep(r),e(i))}})}function ey(e,t){var r=e.transaction([ec],"readwrite",ed).objectStore(ec);return Promise.all(t.map(function(e){var t=r.delete(e);return new Promise(function(e){t.onsuccess=function(){return e()}})}))}function ev(e,t){var r=new Date().getTime()-t,n=e.transaction(ec,"readonly",ed),i=n.objectStore(ec),o=[];return new Promise(function(e){i.openCursor().onsuccess=function(t){var i=t.target.result;if(i){var s=i.value;if(s.time<r)o.push(s),i.continue();else{ep(n),e(o);return}}else e(o)}})}function ew(e,t){return ev(e,t).then(function(t){return ey(e,t.map(function(e){return e.id}))})}function e_(e){e.closed||eE(e).then(function(){return X(e.options.idb.fallbackInterval)}).then(function(){return e_(e)})}function eS(e,t){return!(e.uuid===t.uuid||t.eMIs.has(e.id))&&!(e.data.time<t.messagesCallbackTime)}function eE(e){return e.closed||!e.messagesCallback?J:em(e.db,e.lastCursorId).then(function(t){return t.filter(function(e){return!!e}).map(function(t){return t.id>e.lastCursorId&&(e.lastCursorId=t.id),t}).filter(function(t){return eS(t,e)}).sort(function(e,t){return e.time-t.time}).forEach(function(t){e.messagesCallback&&(e.eMIs.add(t.id),e.messagesCallback(t.data))}),J})}var eA={create:function(e,t){return t=ef(t),eb(e).then(function(r){var n={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:Q(),eMIs:new es(2*t.idb.ttl),writeBlockPromise:J,messagesCallback:null,readQueuePromises:[],db:r};return r.onclose=function(){n.closed=!0,t.idb.onclose&&t.idb.onclose()},e_(n),n})},close:function(e){e.closed=!0,e.db.close()},onMessage:function(e,t,r){e.messagesCallbackTime=r,e.messagesCallback=t,eE(e)},postMessage:function(e,t){return e.writeBlockPromise=e.writeBlockPromise.then(function(){return eg(e.db,e.uuid,t)}).then(function(){0===Y(0,10)&&ew(e.db,e.options.idb.ttl)}),e.writeBlockPromise},canBeUsed:function(e){return!!(e.support3PC&&eh())},type:"idb",averageResponseTime:function(e){return 2*e.idb.fallbackInterval},microSeconds:er},eR="pubkey.broadcastChannel-";function ex(){var e;if("undefined"==typeof window)return null;try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch(e){}return e}function eM(e){return eR+e}function ek(e,t){var r=eM(e),n=function(e){e.key===r&&t(JSON.parse(e.newValue))};return window.addEventListener("storage",n),n}function eO(e){window.removeEventListener("storage",e)}function eT(e){if(!e.support3PC)return!1;var t=ex();if(!t)return!1;try{var r="__broadcastchannel_check";t.setItem(r,"works"),t.removeItem(r)}catch(e){return!1}return!0}var eI={create:function(e,t){if(!eT(t=ef(t)))throw Error("BroadcastChannel: localstorage c
3annot be used");var r=Q(),n=new es(t.localstorage.removeTimeout),i={channelName:e,uuid:r,eMIs:n};return i.listener=ek(e,function(e){!(!i.messagesCallback||e.uuid===r||!e.token||n.has(e.token))&&(e.data.time&&e.data.time<i.messagesCallbackTime||(n.add(e.token),i.messagesCallback(e.data)))}),i},close:function(e){eO(e.listener)},onMessage:function(e,t,r){e.messagesCallbackTime=r,e.messagesCallback=t},postMessage:function(e,t){return new Promise(function(r){X().then(function(){var n=eM(e.channelName),i=JSON.stringify({token:Q(),time:new Date().getTime(),data:t,uuid:e.uuid});ex().setItem(n,i);var o=document.createEvent("Event");o.initEvent("storage",!0,!0),o.key=n,o.newValue=i,window.dispatchEvent(o),r()})})},canBeUsed:eT,type:"localstorage",averageResponseTime:function(){var e=120,t=navigator.userAgent.toLowerCase();return t.includes("safari")&&!t.includes("chrome")?2*e:e},microSeconds:er};function eP(e,t,r,n,i,o,s){try{var a=e[o](s),u=a.value}catch(e){r(e);return}a.done?t(u):Promise.resolve(u).then(n,i)}function eL(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function s(e){eP(o,n,i,s,a,"next",e)}function a(e){eP(o,n,i,s,a,"throw",e)}s(void 0)})}}var eB=r(54566),eN=r.n(eB);let eC=Object.create(null);eC.open="0",eC.close="1",eC.ping="2",eC.pong="3",eC.message="4",eC.upgrade="5",eC.noop="6";let ej=Object.create(null);Object.keys(eC).forEach(e=>{ej[eC[e]]=e});let eD={type:"error",data:"parser error"},eF="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),eU="function"==typeof ArrayBuffer,eq=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,e$=({type:e,data:t},r,n)=>eF&&t instanceof Blob?r?n(t):ez(t,n):eU&&(t instanceof ArrayBuffer||eq(t))?r?n(t):ez(new Blob([t]),n):n(eC[e]+(t||"")),ez=(e,t)=>{let r=new FileReader;return r.onload=function(){t("b"+(r.result.split(",")[1]||""))},r.readAsDataURL(e)};function eH(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}function eW(e,t){return eF&&e.data instanceof Blob?e.data.arrayBuffer().then(eH).then(t):eU&&(e.data instanceof ArrayBuffer||eq(e.data))?t(eH(e.data)):void e$(e,!1,e=>{n||(n=new TextEncoder),t(n.encode(e))})}let eV="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",eG="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e<eV.length;e++)eG[eV.charCodeAt(e)]=e;let eZ=e=>{let t=.75*e.length,r=e.length,n,i=0,o,s,a,u;"="===e[e.length-1]&&(t--,"="===e[e.length-2]&&t--);let f=new ArrayBuffer(t),l=new Uint8Array(f);for(n=0;n<r;n+=4)o=eG[e.charCodeAt(n)],s=eG[e.charCodeAt(n+1)],a=eG[e.charCodeAt(n+2)],u=eG[e.charCodeAt(n+3)],l[i++]=o<<2|s>>4,l[i++]=(15&s)<<4|a>>2,l[i++]=(3&a)<<6|63&u;return f},eK="function"==typeof ArrayBuffer,eJ=(e,t)=>{if("string"!=typeof e)return{type:"message",data:eY(e,t)};let r=e.charAt(0);return"b"===r?{type:"message",data:eX(e.substring(1),t)}:ej[r]?e.length>1?{type:ej[r],data:e.substring(1)}:{type:ej[r]}:eD},eX=(e,t)=>eK?eY(eZ(e),t):{base64:!0,data:e},eY=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,eQ="\x1e",e0=(e,t)=>{let r=e.length,n=Array(r),i=0;e.forEach((e,o)=>{e$(e,!1,e=>{n[o]=e,++i===r&&t(n.join(eQ))})})},e1=(e,t)=>{let r=e.split(eQ),n=[];for(let e=0;e<r.length;e++){let i=eJ(r[e],t);if(n.push(i),"error"===i.type)break}return n};function e2(){return new TransformStream({transform(e,t){eW(e,r=>{let n;let i=r.length;if(i<126)new DataView((n=new Uint8Array(1)).buffer).setUint8(0,i);else if(i<65536){let e=new DataView((n=new Uint8Array(3)).buffer);e.setUint8(0,126),e.setUint16(1,i)}else{let e=new DataView((n=new Uint8Array(9)).buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(i))}e.data&&"string"!=typeof e.data&&(n[0]|=128),t.enqueue(n),t.enqueue(r)})}})}function e6(e){return e.reduce((e,t)=>e+t.length,0)}function e3(e,t){if(e[0].length===t)return e.shift();let r=new Uint8Array(t),n=0;for(let i=0;i<t;i++)r[i]=e[0][n++],n===e[0].length&&(e.shift(),n=0);return e.length&&n<e[0].length&&(e[0]=e[0].slice(n)),r}function e8(e,t){i||(i=new TextDecoder);let r=[],n=0,o=-1,s=!1;return new TransformStream({transform(a,u){for(r.push(a);;){if(0===n){if(1>e6(r))break;let e=e3(r,1);s=(128&e[0])==128,n=(o=127&e[0])<126?3:126===o?1:2}else if(1===n){if(2>e6(r))break;let e=e3(r,2);o=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),n=3}else if(2===n){if(8>e6(r))break;let e=e3(r,8),t=new DataView(e.buffer,e.byteOffset,e.length),i=t.getUint32(0);if(i>2097151){u.enqueue(eD);break}o=4294967296*i+t.getUint32(4),n=3}else{if(e6(r)<o)break;let e=e3(r,o);u.enqueue(eJ(s?e:i.decode(e),t)),n=0}if(0===o||o>e){u.enqueue(eD);break}}}})}let e4=4;function e5(e){if(e)return e7(e)}function e7(e){for(var t in e5.prototype)e[t]=e5.prototype[t];return e}e5.prototype.on=e5.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},e5.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this},e5.prototype.off=e5.prototype.removeListener=e5.prototype.removeAllListeners=e5.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i<n.length;i++)if((r=n[i])===t||r.fn===t){n.splice(i,1);break}return 0===n.length&&delete this._callbacks["$"+e],this},e5.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=Array(arguments.length-1),r=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,i=r.length;n<i;++n)r[n].apply(this,t)}return this},e5.prototype.emitReserved=e5.prototype.emit,e5.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},e5.prototype.hasListeners=function(e){return!!this.listeners(e).length};let e9="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function te(e,...t){return t.reduce((t,r)=>(e.hasOwnProperty(r)&&(t[r]=e[r]),t),{})}let tt=e9.setTimeout,tr=e9.clearTimeout;function tn(e,t){t.useNativeTimers?(e.setTimeoutFn=tt.bind(e9),e.clearTimeoutFn=tr.bind(e9)):(e.setTimeoutFn=e9.setTimeout.bind(e9),e.clearTimeoutFn=e9.clearTimeout.bind(e9))}let ti=1.33;function to(e){return"string"==typeof e?ts(e):Math.ceil((e.byteLength||e.size)*ti)}function ts(e){let t=0,r=0;for(let n=0,i=e.length;n<i;n++)(t=e.charCodeAt(n))<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(n++,r+=4);return r}function ta(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function tu(e){let t={},r=e.split("&");for(let e=0,n=r.length;e<n;e++){let n=r[e].split("=");
3t[decodeURIComponent(n[0])]=decodeURIComponent(n[1])}return t}class tf extends Error{constructor(e,t,r){super(e),this.description=t,this.context=r,this.type="TransportError"}}class tl extends e5{constructor(e){super(),this.writable=!1,tn(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,t,r){return super.emitReserved("error",new tf(e,t,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return("opening"===this.readyState||"open"===this.readyState)&&(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let t=eJ(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){let e=this.opts.hostname;return -1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){let t=ta(e);return t.length?"?"+t:""}}let tc="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),td=64,th={},tp=0,tb=0,tg;function tm(e){let t="";do t=tc[e%td]+t,e=Math.floor(e/td);while(e>0);return t}function ty(){let e=tm(+new Date);return e!==tg?(tp=0,tg=e):e+"."+tm(tp++)}for(;tb<td;tb++)th[tc[tb]]=tb;let tv=!1;try{tv="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}let tw=tv;function t_(e){let t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||tw))return new XMLHttpRequest}catch(e){}if(!t)try{return new e9[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(e){}}function tS(){}function tE(){}let tA=function(){return null!=new t_({xdomain:!1}).responseType}();class tR extends tl{constructor(e){if(super(e),this.polling=!1,"undefined"!=typeof location){let t="https:"===location.protocol,r=location.port;r||(r=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||r!==e.port}let t=e&&e.forceBase64;this.supportsBinary=tA&&!t,this.opts.withCredentials&&(this.cookieJar=tS())}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";let t=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let e=0;this.polling&&(e++,this.once("pollComplete",function(){--e||t()})),this.writable||(e++,this.once("drain",function(){--e||t()}))}else t()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){let t=e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)};e1(e,this.socket.binaryType).forEach(t),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}doClose(){let e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,e0(e,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=ty()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new tx(this.uri(),e)}doWrite(e,t){let r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",(e,t)=>{this.onError("xhr post error",e,t)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(e,t)=>{this.onError("xhr poll error",e,t)}),this.pollXhr=e}}class tx extends e5{constructor(e,t){super(),tn(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.data=void 0!==t.data?t.data:null,this.create()}create(){var e;let t=te(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd;let r=this.xhr=new t_(t);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders)for(let e in r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0),this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(e)&&r.setRequestHeader(e,this.opts.extraHeaders[e])}catch(e){}if("POST"===this.method)try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{r.setRequestHeader("Accept","*/*")}catch(e){}null===(e=this.opts.cookieJar)||void 0===e||e.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var e;3===r.readyState&&(null===(e=this.opts.cookieJar)||void 0===e||e.parseCookies(r)),4===r.readyState&&(200===r.
3status||1223===r.status?this.onLoad():this.setTimeoutFn(()=>{this.onError("number"==typeof r.status?r.status:0)},0))},r.send(this.data)}catch(e){this.setTimeoutFn(()=>{this.onError(e)},0);return}"undefined"!=typeof document&&(this.index=tx.requestsCount++,tx.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=tE,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete tx.requests[this.index],this.xhr=null}}onLoad(){let e=this.xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}function tM(){for(let e in tx.requests)tx.requests.hasOwnProperty(e)&&tx.requests[e].abort()}tx.requestsCount=0,tx.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",tM):"function"==typeof addEventListener&&addEventListener("onpagehide"in e9?"pagehide":"unload",tM,!1));let tk="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),tO=e9.WebSocket||e9.MozWebSocket,tT=!0,tI="arraybuffer";var tP=r(9109).Buffer;let tL="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class tB extends tl{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;let e=this.uri(),t=this.opts.protocols,r=tL?{}:te(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=tT&&!tL?t?new tO(e,t):new tO(e):new tO(e,t,r)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let r=e[t],n=t===e.length-1;e$(r,this.supportsBinary,e=>{let t={};!tT&&(r.options&&(t.compress=r.options.compress),this.opts.perMessageDeflate&&("string"==typeof e?tP.byteLength(e):e.length)<this.opts.perMessageDeflate.threshold&&(t.compress=!1));try{tT?this.ws.send(e):this.ws.send(e,t)}catch(e){}n&&tk(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=ty()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!tO}}class tN extends tl{get name(){return"webtransport"}doOpen(){"function"==typeof WebTransport&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(e=>{let t=e8(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(t).getReader(),n=e2();n.readable.pipeTo(e.writable),this.writer=n.writable.getWriter();let i=()=>{r.read().then(({done:e,value:t})=>{e||(this.onPacket(t),i())}).catch(e=>{})};i();let o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this.writer.write(o).then(()=>this.onOpen())})}))}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let r=e[t],n=t===e.length-1;this.writer.write(r).then(()=>{n&&tk(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;null===(e=this.transport)||void 0===e||e.close()}}let tC={websocket:tB,webtransport:tN,polling:tR},tj=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,tD=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function tF(e){if(e.length>2e3)throw"URI too long";let t=e,r=e.indexOf("["),n=e.indexOf("]");-1!=r&&-1!=n&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));let i=tj.exec(e||""),o={},s=14;for(;s--;)o[tD[s]]=i[s]||"";return -1!=r&&-1!=n&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=tU(o,o.path),o.queryKey=tq(o,o.query),o}function tU(e,t){let r=/\/{2,9}/g,n=t.replace(r,"/").split("/");return("/"==t.slice(0,1)||0===t.length)&&n.splice(0,1),"/"==t.slice(-1)&&n.splice(n.length-1,1),n}function tq(e,t){let r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,n){t&&(r[t]=n)}),r}class t$ extends e5{constructor(e,t={}){super(),this.binaryType=tI,this.writeBuffer=[],e&&"object"==typeof e&&(t=e,e=null),e?(e=tF(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=tF(t.host).host),tn(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=tu(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,"function"==typeof addEventListener&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})}
3,addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){let t=Object.assign({},this.opts.query);t.EIO=e4,t.transport=e,this.id&&(t.sid=this.id);let r=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new tC[e](r)}open(){let e;if(this.opts.rememberUpgrade&&t$.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else if(0===this.transports.length){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch(e){this.transports.shift(),this.open();return}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",e=>this.onClose("transport close",e))}probe(e){let t=this.createTransport(e),r=!1;t$.priorWebsocketSuccess=!1;let n=()=>{r||(t.send([{type:"ping",data:"probe"}]),t.once("packet",e=>{if(!r){if("pong"===e.type&&"probe"===e.data)this.upgrading=!0,this.emitReserved("upgrading",t),t&&(t$.priorWebsocketSuccess="websocket"===t.name,this.transport.pause(()=>{r||"closed"===this.readyState||(f(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())}));else{let e=Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}}}))};function i(){r||(r=!0,f(),t.close(),t=null)}let o=e=>{let r=Error("probe error: "+e);r.transport=t.name,i(),this.emitReserved("upgradeError",r)};function s(){o("transport closed")}function a(){o("socket closed")}function u(e){t&&e.name!==t.name&&i()}let f=()=>{t.removeListener("open",n),t.removeListener("error",o),t.removeListener("close",s
3),this.off("close",a),this.off("upgrading",u)};t.once("open",n),t.once("error",o),t.once("close",s),this.once("close",a),this.once("upgrading",u),-1!==this.upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn(()=>{r||t.open()},200):t.open()}onOpen(){if(this.readyState="open",t$.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){let e=0,t=this.upgrades.length;for(;e<t;e++)this.probe(this.upgrades[e])}}onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),this.resetPingTimeout(),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":let t=Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t<this.writeBuffer.length;t++){let r=this.writeBuffer[t].data;if(r&&(e+=to(r)),t>0&&e>this.maxPayload)return this.writeBuffer.slice(0,t);e+=2}return this.writeBuffer}write(e,t,r){return this.sendPacket("message",e,t,r),this}send(e,t,r){return this.sendPacket("message",e,t,r),this}sendPacket(e,t,r,n){if("function"==typeof t&&(n=t,t=void 0),"function"==typeof r&&(n=r,r=null),"closing"===this.readyState||"closed"===this.readyState)return;(r=r||{}).compress=!1!==r.compress;let i={type:e,data:t,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),n&&this.once("flush",n),this.flush()}close(){let e=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},r=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return("opening"===this.readyState||"open"===this.readyState)&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():e()}):this.upgrading?r():e()),this}onError(e){t$.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){let t=[],r=0,n=e.length;for(;r<n;r++)~this.transports.indexOf(e[r])&&t.push(e[r]);return t}}function tz(e,t="",r){let n=e;r=r||"undefined"!=typeof location&&location,null==e&&(e=r.protocol+"//"+r.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?r.protocol+e:r.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==r?r.protocol+"//"+e:"https://"+e),n=tF(e)),!n.port&&(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";let i=-1!==n.host.indexOf(":")?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+i+":"+n.port+t,n.href=n.protocol+"://"+i+(r&&r.port===n.port?"":":"+n.port),n}t$.protocol=e4,t$.protocol;let tH="function"==typeof ArrayBuffer,tW=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,tV=Object.prototype.toString,tG="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===tV.call(Blob),tZ="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===tV.call(File);function tK(e){return tH&&(e instanceof ArrayBuffer||tW(e))||tG&&e instanceof Blob||tZ&&e instanceof File}function tJ(e,t){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let t=0,r=e.length;t<r;t++)if(tJ(e[t]))return!0;return!1}if(tK(e))return!0;
3if(e.toJSON&&"function"==typeof e.toJSON&&1==arguments.length)return tJ(e.toJSON(),!0);for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&tJ(e[t]))return!0;return!1}function tX(e){let t=[],r=e.data,n=e;return n.data=tY(r,t),n.attachments=t.length,{packet:n,buffers:t}}function tY(e,t){if(!e)return e;if(tK(e)){let r={_placeholder:!0,num:t.length};return t.push(e),r}if(Array.isArray(e)){let r=Array(e.length);for(let n=0;n<e.length;n++)r[n]=tY(e[n],t);return r}if("object"==typeof e&&!(e instanceof Date)){let r={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=tY(e[n],t));return r}return e}function tQ(e,t){return e.data=t0(e.data,t),delete e.attachments,e}function t0(e,t){if(!e)return e;if(e&&!0===e._placeholder){if("number"==typeof e.num&&e.num>=0&&e.num<t.length)return t[e.num];throw Error("illegal attachments")}if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=t0(e[r],t);else if("object"==typeof e)for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=t0(e[r],t));return e}let t1=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],t2=5;!function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"}(o||(o={}));class t6{constructor(e){this.replacer=e}encode(e){return(e.type===o.EVENT||e.type===o.ACK)&&tJ(e)?this.encodeAsBinary({type:e.type===o.EVENT?o.BINARY_EVENT:o.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===o.BINARY_EVENT||e.type===o.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){let t=tX(e),r=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(r),n}}function t3(e){return"[object Object]"===Object.prototype.toString.call(e)}class t8 extends e5{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw Error("got plaintext data when reconstructing a packet");let r=(t=this.decodeString(e)).type===o.BINARY_EVENT;r||t.type===o.BINARY_ACK?(t.type=r?o.EVENT:o.ACK,this.reconstructor=new t4(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else if(tK(e)||e.base64){if(this.reconstructor)(t=this.reconstructor.takeBinaryData(e))&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw Error("got binary data when not reconstructing a packet")}else throw Error("Unknown type: "+e)}decodeString(e){let t=0,r={type:Number(e.charAt(0))};if(void 0===o[r.type])throw Error("unknown packet type "+r.type);if(r.type===o.BINARY_EVENT||r.type===o.BINARY_ACK){let n=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);let i=e.substring(n,t);if(i!=Number(i)||"-"!==e.charAt(t))throw Error("Illegal attachments");r.attachments=Number(i)}if("/"===e.charAt(t+1)){let n=t+1;for(;++t&&","!==e.charAt(t)&&t!==e.length;);r.nsp=e.substring(n,t)}else r.nsp="/";let n=e.charAt(t+1);if(""!==n&&Number(n)==n){let n=t+1;for(;++t;){let r=e.charAt(t);if(null==r||Number(r)!=r){--t;break}if(t===e.length)break}r.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){let n=this.tryParse(e.substr(t));if(t8.isPayloadValid(r.type,n))r.data=n;else throw Error("invalid payload")}return r}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(e){return!1}}static isPayloadValid(e,t){switch(e){case o.CONNECT:return t3(t);case o.DISCONNECT:return void 0===t;case o.CONNECT_ERROR:return"string"==typeof t||t3(t);case o.EVENT:case o.BINARY_EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===t1.indexOf(t[0]));case o.ACK:case o.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class t4{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){let e=tQ(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function t5(e,t,r){return e.on(t,r),function(){e.off(t,r)}}let t7=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class t9 extends e5{constructor(e,t,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[t5(e,"open",this.onopen.bind(this)),t5(e,"packet",this.onpacket.b
3ind(this)),t5(e,"error",this.onerror.bind(this)),t5(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){if(t7.hasOwnProperty(e))throw Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;let r={type:o.EVENT,data:t};if(r.options={},r.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){let e=this.ids++,n=t.pop();this._registerAckCallback(e,n),r.id=e}let n=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return(!this.flags.volatile||n&&this.connected)&&(this.connected?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}_registerAckCallback(e,t){var r;let n=null!==(r=this.flags.timeout)&&void 0!==r?r:this._opts.ackTimeout;if(void 0===n){this.acks[e]=t;return}let i=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,Error("operation has timed out"))},n),o=(...e)=>{this.io.clearTimeoutFn(i),t.apply(this,e)};o.withError=!0,this.acks[e]=o}emitWithAck(e,...t){return new Promise((r,n)=>{let i=(e,t)=>e?n(e):r(t);i.withError=!0,t.push(i),this.emit(e,...t)})}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());let r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((e,...n)=>{if(r===this._queue[0])return null!==e?r.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...n)),r.pending=!1,this._drainQueue()}),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;let t=this._queue[0];(!t.pending||e)&&(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:o.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}
3_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(t=>String(t.id)===e)){let t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,Error("socket has been disconnected"))}})}onpacket(e){if(!(e.nsp!==this.nsp))switch(e.type){case o.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case o.EVENT:case o.BINARY_EVENT:this.onevent(e);break;case o.ACK:case o.BINARY_ACK:this.onack(e);break;case o.DISCONNECT:this.ondisconnect();break;case o.CONNECT_ERROR:this.destroy();let t=Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){let t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length)for(let t of this._anyListeners.slice())t.apply(this,e);super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){let t=this,r=!1;return function(...n){r||(r=!0,t.packet({type:o.ACK,id:e,data:n}))}}onack(e){let t=this.acks[e.id];"function"==typeof t&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:o.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let t=this._anyListeners;for(let r=0;r<t.length;r++)if(e===t[r]){t.splice(r,1);break}}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let t=this._anyOutgoingListeners;for(let r=0;r<t.length;r++)if(e===t[r]){t.splice(r,1);break}}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length)for(let t of this._anyOutgoingListeners.slice())t.apply(this,e.data)}}function re(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}re.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=(1&Math.floor(10*t))==0?e-r:e+r}return 0|Math.min(e,this.max)},re.prototype.reset=function(){this.attempts=0},re.prototype.setMin=function(e){this.ms=e},re.prototype.setMax=function(e){this.max=e},re.prototype.setJitter=function(e){this.jitter=e};class rt extends e5{constructor(e,t){var r;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,tn(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(r=t.randomizationFactor)&&void 0!==r?r:.5),this.backoff=new re({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;let n=t.parser||u;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new t$(this.uri,this.opts);let t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;let n=t5(t,"open",function(){r.onopen(),e&&e()}),i=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},o=t5(t,"error",i);if(!1!==this._timeout){let e=this._timeout,r=this.setTimeoutFn(()=>{n(),i(Error("timeout")),t.close()},e);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}return this.subs.push(n),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(t5(e,"ping",this.onping.bind(this)),t5(e,"data",this.ondata.bind(this)),t5(e,"error",this.onerror.bind(this)),t5(e,"close",this.onclose.bind(this)),t5(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){tk(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new t9(this,e,t),this.nsps[e]=r),r}_destroy(e){for(let e of Object.keys(this.nsps))if(this.nsps[e].active)return;this._close()}_packet(e){let t=this.encoder.encode(e);for(let r=0;r<t.length;r++)this.engine.write(t[r],e.options)}
3cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let t=this.backoff.duration();this._reconnecting=!0;let r=this.setTimeoutFn(()=>{!e.skipReconnect&&(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open(t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()}))},t);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}let rr={};function rn(e,t){let r;"object"==typeof e&&(t=e,e=void 0);let n=tz(e,(t=t||{}).path||"/socket.io"),i=n.source,o=n.id,s=n.path,a=rr[o]&&s in rr[o].nsps;return t.forceNew||t["force new connection"]||!1===t.multiplex||a?r=new rt(i,t):(rr[o]||(rr[o]=new rt(i,t)),r=rr[o]),n.query&&!t.query&&(t.query=n.queryKey),r.socket(n.path,t)}Object.assign(rn,{Manager:rt,Socket:t9,io:rn,connect:rn});var ri=r(12647);r(36882),V().getLogger("http-helpers").setLevel(W.levels.INFO),r(80128);var ro=r(65815);function rs(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`Wrong positive integer: ${e}`)}function ra(e){return e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name}function ru(e,...t){if(!ra(e))throw Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function rf(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")}function rl(e,t){ru(e);let r=t.outputLen;if(e.length<r)throw Error(`digestInto() expects output buffer of length at least ${r}`)}var rc=ru;let rd=BigInt(4294967296-1),rh=BigInt(32);function rp(e,t=!1){return t?{h:Number(e&rd),l:Number(e>>rh&rd)}:{h:0|Number(e>>rh&rd),l:0|Number(e&rd)}}function rb(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let i=0;i<e.length;i++){let{h:o,l:s}=rp(e[i],t);[r[i],n[i]]=[o,s]}return[r,n]}let rg=(e,t,r)=>e<<r|t>>>32-r,rm=(e,t,r)=>t<<r|e>>>32-r,ry=(e,t,r)=>t<<r-32|e>>>64-r,rv=(e,t,r)=>e<<r-32|t>>>64-r,rw=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));function r_(e){return e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name}if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw Error("Non little-endian hardware is not supported");function rS(e){if("string"!=typeof e)throw Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function rE(e){if("string"==typeof e&&(e=rS(e)),!r_(e))throw Error(`expected Uint8Array, got ${typeof e}`);return e}class rA{clone(){return this._cloneInto()}}function rR(e){let t=t=>e().update(rE(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}let[rx,rM,rk]=[[],[],[]],rO=BigInt(0),rT=BigInt(1),rI=BigInt(2),rP=BigInt(7),rL=BigInt(256),rB=BigInt(113);for(let e=0,t=rT,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],rx.push(2*(5*n+r)),rM.push((e+1)*(e+2)/2%64);let i=rO;for(let e=0;e<7;e++)(t=(t<<rT^(t>>rP)*rB)%rL)&rI&&(i^=rT<<(rT<<BigInt(e))-rT);rk.push(i)}let[rN,rC]=rb(rk,!0),rj=(e,t,r)=>r>32?ry(e,t,r):rg(e,t,r),rD=(e,t,r)=>r>32?rv(e,t,r):rm(e,t,r);function rF(e,t=24){let r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let n=(t+8)%10,i=(t+2)%10,o=r[i],s=r[i+1],a=rj(o,s,1)^r[n],u=rD(o,s,1)^r[n+1];for(let r=0;r<50;r+=10)e[t+r]^=a,e[t+r+1]^=u}let t=e[2],i=e[3];for(let r=0;r<24;r++){let n=rM[r],o=rj(t,i,n),s=rD(t,i,n),a=rx[r];t=e[a],i=e[a+1],e[a]=o,e[a+1]=s}for(let t=0;t<50;t+=10){for(let n=0;n<10;n++)r[n]=e[t+n];for(let n=0;n<10;n++)e[t+n]^=~r[(n+2)%10]&r[(n+4)%10]}e[0]^=rN[n],e[1]^=rC[n]}r.fill(0)}class rU extends rA{constructor(e,t,r,n=!1,i=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=n,this.rounds=i,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,rs(r),0>=this.blockLen||this.blockLen>=200)throw Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=rw(this.state)}keccak(){rF(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){rf(this);let{blockLen:t,state:r}=this,n=(e=rE(e)).length;for(let i=0;i<n;){let o=Math.min(t-this.pos,n-i);for(let t=0;t<o;t++)r[this.pos++]^=e[i++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:r,blockLen:n}=this;e[r]^=t,(128&t)!=0&&r===n-1&&this.keccak(),e[n-1]^=128,this.keccak()}writeInto(e){rf(this,!1),ru(e),this.finish();let t=this.state,{blockLen:r}=this;for(let n=0,i=e.length;n<i;){this.posOut>=r&&this.keccak();let o=Math.min(r-this.posOut,i-n);e.set(t.subarray(this.posOut,this.posOut+o),n),this.posOut+=o,n+=o}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return rs(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(rl(e,this),this.finished)throw Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){let{blockLen:t,suffix:r,outputLen:n,rounds:i,enableXOF:o}=this;return e||(e=new rU(t,r,n,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=r,e.outputLen=n,e.enableXOF=o,e.destroyed=this.destroyed,e}}let rq=(e,t,r)=>rR(()=>new rU(t,e,r)),r$=rq(1,144,28),rz=rq(1,136,32),rH=rq(1,104,48),rW=rq(1,72,64);function rV(e){return t=>(rc(t),e(t))}(()=>{let e="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,t="undefined"!=typeof module&&"function"==typeof module.require&&module.require.bind(module);return t&&!e?t("crypto"):void 0})(),rV(r$);let rG=(()=>{let e=rV(rz);return e.create=rz.create,e})();rV(rH),rV(rW);var rZ=r(9109).Buffer;function rK(e){return rZ.from(rG(e))}let rJ=new ro.ec("secp256k1");function rX(e){return{iv:rZ.from(e.iv,"hex"),ephemPublicKey:rZ.from(e.ephemPublicKey,"hex"),ciphertext:rZ.from(e.ciphertext,"hex"),mac:rZ.from(e.mac,"hex")}}function rY(e){return{iv:rZ.from(e.iv).toString("hex"),ephemPublicKey:rZ.from(e.ephemPublicKey).toString("hex"),ciphertext:rZ.from(e.ciphertext).toString("hex"),mac:rZ.from(e.mac).toString("hex")}}async function rQ(e,t){let r=JSON.stringify(t),n=rZ.from(r,"utf-8");return JSON.stringify(rY(await (0,ri.HI)((0,ri.rc)(rZ.from(e,"hex")),n)))}async function r0(e,t){let r=rX(JSON.parse(t)),n=rJ.keyFromPrivate(e);return JSON.parse((await (0,ri.pe)(rZ.from(n.getPrivate().toString("hex",64),"hex"),r)).toString("utf-8"))}var r1=r(9109).Buffer,r2=er,r6="pubkey.broadcastChannel-",r3="server",r8=null,r4=new Set;function r5(e){return r6+e}function r7(e){if(r8)return r8;var t=rn(e,{transports:["websocket","polling"],withCredentials:!0,reconnectionDelayMax:1e4,reconnectionAttempts:10});return t.on("connect_error",function(e){t.io.opts.transports=["polling","websocket"],ei.error("connect error",e)}),t.on("connect",eL(eN().mark(function e(){var r;return eN().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=t.io.engine,ei.debug("initially connected to",r.transport.name),r.once("upgrade",function(){ei.debug("upgraded",r.transport.name)}
3),r.once("close",function(e){ei.debug("connection closed",e)});case 4:case"end":return e.stop()}},e)}))),t.on("error",function(e){ei.error("socket errored",e),t.disconnect()}),r8=t,t}function r9(e,t,r){var n=r7(e),i=r5(t),o=rK(r1.from(i,"utf8")),s=(0,ri.rc)(o).toString("hex");n.connected?n.emit("check_auth_status",s):n.once("connect",function(){ei.debug("connected with socket"),n.emit("check_auth_status",s)});var a=function(){n.once("connect",eL(eN().mark(function e(){return eN().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n.emit("check_auth_status",s);case 1:case"end":return e.stop()}},e)})))},u=function e(){if(!n){document.removeEventListener("visibilitychange",e);return}n.connected||"visible"!==document.visibilityState||a()},f=function(){var e=eL(eN().mark(function e(t){var n;return eN().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,r0(o.toString("hex"),t);case 3:n=e.sent,ei.info(n),r(n),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),ei.error(e.t0);case 11:case"end":return e.stop()}},e,null,[[0,8]])}));return function(t){return e.apply(this,arguments)}}();return n.on("disconnect",function(){ei.debug("socket disconnected"),r4.has(t)&&(ei.error("socket disconnected unexpectedly, reconnecting socket"),a())}),n.on(s+"_success",f),"undefined"!=typeof document&&document.addEventListener("visibilitychange",u),n}function ne(){return!0}var nt={create:function(e,t){if(!ne(t=ef(t)))throw Error("BroadcastChannel: server cannot be used");var r={channelName:e,uuid:Q(),eMIs:new es(t.server.removeTimeout),serverUrl:t.server.url};return t.server.timeout&&(r.timeout=t.server.timeout),r9(t.server.url,e,function(e){r.messagesCallback&&e.uuid!==r.uuid&&(!e.token||r.eMIs.has(e.token)||(r.eMIs.add(e.token),r.messagesCallback(e.data)))}),r4.add(e),r},close:function(e){r4.delete(e.channelName)},onMessage:function(e,t,r){e.messagesCallbackTime=r,e.messagesCallback=t},postMessage:function(e,t){return new Promise(function(r,n){X().then(eL(eN().mark(function i(){var o,s,a,u;return eN().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return o=r5(e.channelName),s=rK(r1.from(o,"utf8")),i.next=4,rQ(s.toString("hex"),{token:Q(),time:new Date().getTime(),data:t,uuid:e.uuid});case 4:return a=i.sent,i.t0=(0,ri.rc)(s).toString("hex"),i.t1=a,i.next=9,(0,ri.Xx)(s,rK(r1.from(a,"utf8")));case 9:return i.t2=i.sent.toString("hex"),u={key:i.t0,data:i.t1,signature:i.t2},e.timeout&&(u.timeout=e.timeout),i.abrupt("return",fetch(e.serverUrl+"/channel/set",{method:"POST",body:JSON.stringify(u),headers:{"Content-Type":"application/json; charset=utf-8"}}).then(r).catch(n));case 13:case"end":return i.stop()}},i)})))})},canBeUsed:ne,type:r3,averageResponseTime:function(){return 500},microSeconds:r2},nr=er,nn="simulate",ni=new Set,no={create:function(e){var t={name:e,messagesCallback:null};return ni.add(t),t},close:function(e){ni.delete(e)},onMessage:function(e,t){e.messagesCallback=t},postMessage:function(e,t){return new Promise(function(r){return setTimeout(function(){Array.from(ni).filter(function(t){return t.name===e.name}).filter(function(t){return t!==e}).filter(function(e){return!!e.messagesCallback}).forEach(function(e){return e.messagesCallback(t)}),r()},5)})},canBeUsed:function(){return!0},type:nn,averageResponseTime:function(){return 5},microSeconds:nr},ns=[eo,eA,eI,nt];function na(e){var t=[].concat(e.methods,ns).filter(Boolean);if(e.type){if("simulate"===e.type)return no;var r=t.find(function(t){return t.type===e.type});if(r)return r;throw Error("method-type "+e.type+" not found")}e.webWorkerSupport||(t=t.filter(function(e){return"idb"!==e.type}));var n=t.find(function(t){return t.canBeUsed(e)});if(n)return n;throw Error("No useable method found in "+JSON.stringify(ns.map(function(e){return e.type})))}var nu=new Set,nf=0,nl=function(e,t){this.id=nf++,nu.add(this),this.name=e,s&&(t=s),this.options=ef(t),this.method=na(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,nd(this)};function nc(e,t,r){var n={time:e.method.microSeconds(),type:t,data:r};return(e._prepP?e._prepP:J).then(function(){var t=e.method.postMessage(e._state,n);return e._uMP.add(t),t.catch().then(function(){return e._uMP.delete(t)}),t})}
3function nd(e){var t=e.method.create(e.name,e.options);K(t)?(e._prepP=t,t.then(function(t){e._state=t})):e._state=t}function nh(e){return e._addEL.message.length>0||e._addEL.internal.length>0}function np(e,t,r){e._addEL[t].push(r),ng(e)}function nb(e,t,r){e._addEL[t]=e._addEL[t].filter(function(e){return e!==r}),nm(e)}function ng(e){if(!e._iL&&nh(e)){var t=function(t){e._addEL[t.type].forEach(function(r){var n=1e5,i=r.time-n;t.time>=i?r.fn(t.data):"server"===e.method.type&&r.fn(t.data)})},r=e.method.microSeconds();e._prepP?e._prepP.then(function(){e._iL=!0,e.method.onMessage(e._state,t,r)}):(e._iL=!0,e.method.onMessage(e._state,t,r))}}function nm(e){if(e._iL&&!nh(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}nl._pubkey=!0,nl.prototype={postMessage:function(e){if(this.closed)throw Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(e));return nc(this,"message",e)},postInternal:function(e){return nc(this,"internal",e)},set onmessage(fn){var ny={time:this.method.microSeconds(),fn:fn};nb(this,"message",this._onML),fn&&"function"==typeof fn?(this._onML=ny,np(this,"message",ny)):this._onML=null},addEventListener:function(e,t){np(this,e,{time:this.method.microSeconds(),fn:t})},removeEventListener:function(e,t){var r=this._addEL[e].find(function(e){return e.fn===t});nb(this,e,r)},close:function(){var e=this;if(!this.closed){nu.delete(this),this.closed=!0;var t=this._prepP?this._prepP:J;return this._onML=null,this._addEL.message=[],t.then(function(){return Promise.all(Array.from(e._uMP))}).then(function(){return Promise.all(e._befC.map(function(e){return e()}))}).then(function(){return e.method.close(e._state)})}},get type(){return this.method.type},get isClosed(){return this.closed}},r(22599),r(9109).Buffer,R()();let nv={IFRAME_STATUS:"iframe_status",CREATE_WINDOW:"create_window",CLOSE_WINDOW:"close_window",USER_LOGGED_IN:"user_logged_in",USER_LOGGED_OUT:"user_logged_out"},nw={LOGOUT:"logout",WALLET_INSTANCE_ID:"wallet_instance_id",USER_INFO:"user_info",SET_PROVIDER:"set_provider",TOPUP:"topup",IFRAME_STATUS:"iframe_status",OPENED_WINDOW:"opened_window",CLOSED_WINDOW:"closed_window",GET_PROVIDER_STATE:"get_provider_state"},n_={GET_PROVIDER_STATE:"wallet_get_provider_state"},nS={ACCOUNTS_CHANGED:"wallet_accounts_changed",CHAIN_CHANGED:"wallet_chain_changed",UNLOCK_STATE_CHANGED:"wallet_unlock_state_changed"};function nE(e){return function(t,r,n){n(n=>{r.error&&V().warn("Error in RPC response:\n",r),t.isTorusInternal||(V().info(`RPC (${e.origin}):`,t,"->",r),n())})}}!function(e){e.approved="approved",e.cancelled="cancelled",e.confirmed="confirmed",e.failed="failed",e.finalized="finalized",e.processed="processed",e.rejected="rejected",e.signed="signed",e.submitted="submitted",e.unapproved="unapproved",e.dropped="dropped",e.expired="expired"}(a||(a={}));var nA=r(5939),nR=r(70845),nx=r.n(nR);r(20450),r(6230),r(9109).Buffer;let nM=()=>nx()(32).toString("hex");function nk(){}let nO="SYN",nT="ACK",nI="BRK";class nP extends nA.Duplex{constructor(e){let{name:t,target:r,targetWindow:n=window,targetOrigin:i="*"}=e;if(super({objectMode:!0}),d(this,"_init",void 0),d(this,"_haveSyn",void 0),d(this,"_name",void 0),d(this,"_target",void 0),d(this,"_targetWindow",void 0),d(this,"_targetOrigin",void 0),d(this,"_onMessage",void 0),d(this,"_synIntervalId",void 0),!t||!r)throw Error("Invalid input.");this._init=!1,this._haveSyn=!1,this._name=t,this._target=r,this._targetWindow=n,this._targetOrigin=i,this._onMessage=this.onMessage.bind(this),this._synIntervalId=null,window.addEventListener("message",this._onMessage,!1),this._handShake()}_break(){this.cork(),this._write(nI,null,nk),this._haveSyn=!1,this._init=!1}_handShake(){this._write(nO,null,nk),this.cork()}_onData(e){if(this._init){if(e===nI)this._break();else try{this.push(e)}catch(e){this.emit("error",e)}}else e===nO?(this._haveSyn=!0,this._write(nT,null,nk)):e===nT&&(this._init=!0,this._haveSyn||this._write(nT,null,nk),this.uncork())}_postMessage(e){let t=this._targetOrigin;this._targetWindow.postMessage({target:this._target,data:e},t)}onMessage(e){let t=e.data;("*"===this._targetOrigin||e.origin===this._targetOrigin)&&e.source===this._targetWindow&&"object"==typeof t&&t.target===this._name&&t.data&&this._onData(t.data)}_read(){}_write(e,t,r){this._postMessage(e),r()}_destroy(){window.removeEventListener("message",this._onMessage,!1)}}function nL(e,t,r){try{Reflect.apply(e,t,r)}catch(e){setTimeout(()=>{throw e})}}function nB(e){let t=e.length,r=Array(t);for(let n=0;n<t;n+=1)r[n]=e[n];return r}class nN extends p.EventEmitter{emit(e){let t="error"===e,r=this._events;if(void 0!==r)t=t&&void 0===r.error;else if(!t)return!1;for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];if(t){let e;if(i.length>0&&([e]=i),e instanceof Error)throw e;let t=Error(`Unhandled error.${e?` (${e.message})`:""}`);throw t.context=e,t}let s=r[e];if(void 0===s)return!1;if("function"==typeof s)nL(s,this,i);else{let e=s.length,t=nB(s);for(let r=0;r<e;r+=1)nL(t[r],this,i)}return!0}}
3class nC extends Error{constructor(e){let{code:t,message:r,data:n}=e;if(!Number.isInteger(t))throw Error("code must be an integer");if(!r||"string"!=typeof r)throw Error("message must be string");super(r),d(this,"code",void 0),d(this,"data",void 0),this.code=t,void 0!==n&&(this.data=n)}toString(){return g()({code:this.code,message:this.message,data:this.data,stack:this.stack})}}let nj=function(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];return(n,i)=>{n||i.error?t(n||i.error):!r||Array.isArray(i)?e(i):e(i.result)}};function nD(){let e={};function t(){return!1}let r=new nN;function n(t){let r=e[t.id];if(!r)throw Error(`StreamMiddleware - Unknown response id "${t.id}"`);delete e[t.id],Object.assign(r.res,t),setTimeout(r.end)}function i(e){r.emit("notification",e)}function o(e,t,r){let o;try{e.id?n(e):i(e)}catch(e){o=e}r(o)}let s=new nA.Duplex({objectMode:!0,read:t,write:o});return{events:r,middleware:(t,r,n,i)=>{s.push(t),e[t.id]={req:t,res:r,next:n,end:i}},stream:s}}function nF(){return(e,t,r,n)=>{let i=e.id,o=nM();e.id=o,t.id=o,r(r=>{e.id=i,t.id=i,r()})}}function nU(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function nq(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?nU(Object(r),!0).forEach(function(t){d(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nU(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}class n$ extends nN{constructor(){super(),d(this,"_middleware",void 0),this._middleware=[]}static async _runAllMiddleware(e,t,r){let n=[],i=null,o=!1;for(let s of r)if([i,o]=await n$._runMiddleware(e,t,s,n),o)break;return[i,o,n.reverse()]}static _runMiddleware(e,t,r,n){return new Promise(i=>{let o=e=>{let r=e||t.error;r&&(t.error=(0,E.serializeError)(r)),i([r,!0])},s=e=>{t.error?o(t.error):(e&&("function"!=typeof e&&o(new nC({code:-32603,message:"JRPCEngine: 'next' return handlers must be functions"})),n.push(e)),i([null,!1]))};try{r(e,t,s,o)}catch(e){o(e)}})}static async _runReturnHandlers(e){for(let t of e)await new Promise((e,r)=>{t(t=>t?r(t):e())})}static _checkForCompletion(e,t,r){if(!("result"in t)&&!("error"in t))throw new nC({code:-32603,message:"Response has no error or result for request"});if(!r)throw new nC({code:-32603,message:"Nothing ended request"})}push(e){this._middleware.push(e)}handle(e,t){if(t&&"function"!=typeof t)throw Error('"callback" must be a function if provided.');return Array.isArray(e)?t?this._handleBatch(e,t):this._handleBatch(e):t?this._handle(e,t):this._promiseHandle(e)}asMiddleware(){return async(e,t,r,n)=>{try{let[i,o,s]=await n$._runAllMiddleware(e,t,this._middleware);if(o)return await n$._runReturnHandlers(s),n(i);return r(async e=>{try{await n$._runReturnHandlers(s)}catch(t){return e(t)}return e()})}catch(e){return n(e)}}}async _handleBatch(e,t){try{let r=await Promise.all(e.map(this._promiseHandle.bind(this)));if(t)return t(null,r);return r}catch(e){if(t)return t(e);throw e}}_promiseHandle(e){return new Promise(t=>{this._handle(e,(e,r)=>{t(r)})})}async _handle(e,t){if(!e||Array.isArray(e)||"object"!=typeof e){let e=new nC({code:-32603,message:"request must be plain object"});return t(e,{id:void 0,jsonrpc:"2.0",error:e})}if("string"!=typeof e.method){let r=new nC({code:-32603,message:"method must be string"});return t(r,{id:e.id,jsonrpc:"2.0",error:r})}let r=nq({},e),n={id:r.id,jsonrpc:r.jsonrpc},i=null;try{await this._processRequest(r,n)}catch(e){i=e}return i&&(delete n.result,n.error||(n.error=(0,E.serializeError)(i))),t(i,n)}async _processRequest(e,t){let[r,n,i]=await n$._runAllMiddleware(e,t,this._middleware);if(n$._checkForCompletion(e,t,n),await n$._runReturnHandlers(i),r)throw r}}class nz extends nA.Duplex{constructor(e){let{parent:t,name:r}=e;super({objectMode:!0}),d(this,"_parent",void 0),d(this,"_name",void 0),this._parent=t,this._name=r}_read(){}_write(e,t,r){this._parent.push({name:this._name,data:e}),r()}}function nH(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function nW(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
3t%2?nH(Object(r),!0).forEach(function(t){d(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nH(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let nV=Symbol("IGNORE_SUBSTREAM");class nG extends nA.Duplex{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(nW(nW({},e),{},{objectMode:!0})),d(this,"_substreams",void 0),d(this,"getStream",void 0),this._substreams={}}createStream(e){if(!e)throw Error("ObjectMultiplex - name must not be empty");if(this._substreams[e])throw Error(`ObjectMultiplex - Substream for name "${e}" already exists`);let t=new nz({parent:this,name:e});return this._substreams[e]=t,nZ(this,e=>t.destroy(e||void 0)),t}ignoreStream(e){if(!e)throw Error("ObjectMultiplex - name must not be empty");if(this._substreams[e])throw Error(`ObjectMultiplex - Substream for name "${e}" already exists`);this._substreams[e]=nV}_read(){}_write(e,t,r){let{name:n,data:i}=e;if(!n)return window.console.warn(`ObjectMultiplex - malformed chunk without name "${e}"`),r();let o=this._substreams[n];return o?o!==nV&&o.push(i):window.console.warn(`ObjectMultiplex - orphaned data for stream "${n}"`),r()}}function nZ(e,t){let r=w()(t);y()(e,{readable:!1},r),y()(e,{writable:!1},r)}var nK=r(56260),nJ=r(59731),nX=r.n(nJ),nY=r(9109).Buffer,nQ="0.3.4",n0={errors:{disconnected:()=>"Torus: Lost connection to Torus.",permanentlyDisconnected:()=>"Torus: Disconnected from iframe. Page reload required.",unsupportedSync:e=>`Torus: The Torus Ethereum provider does not support synchronous methods like ${e} without a callback parameter.`,invalidDuplexStream:()=>"Must provide a Node.js-style duplex stream.",invalidOptions:e=>`Invalid options. Received: { maxEventListeners: ${e}}`,invalidRequestArgs:()=>"Expected a single, non-array, object argument.",invalidRequestMethod:()=>"'args.method' must be a non-empty string.",invalidRequestParams:()=>"'args.params' must be an object or array if provided.",invalidLoggerObject:()=>"'args.logger' must be an object if provided.",invalidLoggerMethod:e=>`'args.logger' must include required method '${e}'.`},info:{connected:e=>`Torus: Connected to chain with ID "${e}".`}};let n1={MOONPAY:"moonpay",WYRE:"wyre",RAMPNETWORK:"rampnetwork",XANPOOL:"xanpool",MERCURYO:"mercuryo",TRANSAK:"transak"},n2={PRODUCTION:"production",DEVELOPMENT:"development",TESTING:"testing"},n6={BOTTOM_LEFT:"bottom-left",TOP_LEFT:"top-left",BOTTOM_RIGHT:"bottom-right",TOP_RIGHT:"top-right"},n3={GOOGLE:"google",FACEBOOK:"facebook",REDDIT:"reddit",DISCORD:"discord",TWITCH:"twitch",APPLE:"apple",LINE:"line",GITHUB:"github",KAKAO:"kakao",LINKEDIN:"linkedin",TWITTER:"twitter",WEIBO:"weibo",WECHAT:"wechat",EMAIL_PASSWORDLESS:"email_passwordless"},n8={en:{embed:{continue:"Continue",actionRequired:"Authorization required",pendingAction:"Click continue to proceed with your request in a popup",cookiesRequired:"Cookies Required",enableCookies:"Please enable cookies in your browser preferences to access Torus",clickHere:"More Info"}},de:{embed:{continue:"Fortsetzen",actionRequired:"Autorisierung erforderlich",pendingAction:"Klicken Sie in einem Popup auf Weiter, um mit Ihrer Anfrage fortzufahren",cookiesRequired:"Cookies ben\xf6tigt",enableCookies:"Bitte aktivieren Sie Cookies in Ihren Browsereinstellungen, um auf Torus zuzugreifen",clickHere:"Mehr Info"}},ja:{embed:{continue:"ç¶ç¶ãã",actionRequired:"èªè¨¼ãå¿ è¦ã§ã",pendingAction:"ç¶è¡ãã¯ãªãã¯ãã¦ããããã¢ããã§ãªã¯ã¨ã¹ããç¶è¡ãã¾ã",cookiesRequired:"å¿ è¦ãªã¯ããã¼",enableCookies:"Torusã«ã¢ã¯ã»ã¹ããã«ã¯ããã©ã¦ã¶ã®è¨å®ã§Cookieãæå¹ã«ãã¦ãã ããã",clickHere:"詳ããã¯"}},ko:{embed:{continue:"ê³ìíë¤",actionRequired:"ì¹ì¸ íì",pendingAction:"íì ìì ìì²ì ì§ííë ¤ë©´ ê³ìì í´ë¦íììì¤.",cookiesRequired:"ì¿ í¤ íì",enableCookies:"ë¸ë¼ì°ì íê²½ ì¤ì ìì ì¿ í¤ë¥¼ íì±ííì¬ Torusì ì¡ì¸ì¤íììì¤.",clickHere:"ë ë§ì ì ë³´"}},zh:{embed:{continue:"ç»§ç»",actionRequired:"éè¦ææ",pendingAction:"åå»ç»§ç»ä»¥å¨å¼¹åºçªå£ä¸ç»§ç»æ¨ç请æ±",cookiesRequired:"å¿ å¡«Cookie",enableCookies:"è¯·å¨æ¨çæµè§å¨é¦é项ä¸å¯ç¨cookie以访é®Torusã",clickHere:"æ´å¤ä¿¡æ¯"}}};var n4={supportedVerifierList:[n3.GOOGLE,n3.REDDIT,n3.DISCORD],api:"https://api.tor.us",translations:n8,prodTorusUrl:"",localStorageKeyPrefix:"torus-"},n5=V().getLogger("solana-embed");function n7(){return(e,t,r)=>{"string"==typeof e.method&&e.method||(t.error=E.ethErrors.rpc.invalidRequest({message:"The request 'method' must be a non-empty string.",data:e})),r(e=>{let{error:r}=t;return r&&n5.error(`Torus - RPC Error: ${r.message}`,r),e()})}}function n9(e,t,r){let n=`Torus: Lost connection to "${e}".`;t?.stack&&(n+=` 4${t.stack}`),n5.warn(n),r&&r.listenerCount("error")>0&&r.emit("error",n)}let ie=()=>Math.random().toString(36).slice(2),it=async e=>{let t,r;switch(e){case"testing":t="https://solana-testing.tor.us",r="debug";break;case"development":t="http://localhost:8080",r="debug";break;default:t="https://solana.tor.us",r="error"}return{torusUrl:t,logLevel:r}},ir=()=>{let e=(window.navigator.language||"en-US").split("-");return Object.prototype.hasOwnProperty.call(n4.translations,e[0])?e[0]:"en"}
4,ii={height:660,width:375},io={height:740,width:1315},is={height:700,width:1200},ia={height:600,width:400};function iu(e){let t;try{t=window[e];let r="__storage_test__";return t.setItem(r,r),t.removeItem(r),!0}catch(e){return e&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&t&&0!==t.length}}function il(e){let{width:t,height:r}=e,n=void 0!==window.screenLeft?window.screenLeft:window.screenX,i=void 0!==window.screenTop?window.screenTop:window.screenY,o=window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:window.screen.width,s=window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:window.screen.height,a=1,u=Math.abs((o-t)/2/1+n),f=Math.abs((s-r)/2/1+i);return`titlebar=0,toolbar=0,status=0,location=0,menubar=0,height=${r/a},width=${t/a},top=${f},left=${u}`}class ic extends nN{constructor(e,t){let{maxEventListeners:r=100,jsonRpcStreamName:n="provider"}=t;if(super(),d(this,"isTorus",void 0),d(this,"_rpcEngine",void 0),d(this,"jsonRpcConnectionEvents",void 0),d(this,"_state",void 0),!(0,nK.duplex)(e))throw Error(n0.errors.invalidDuplexStream());this.isTorus=!0,this.setMaxListeners(r),this._handleConnect=this._handleConnect.bind(this),this._handleDisconnect=this._handleDisconnect.bind(this),this._handleStreamDisconnect=this._handleStreamDisconnect.bind(this),this._rpcRequest=this._rpcRequest.bind(this),this._initializeState=this._initializeState.bind(this),this.request=this.request.bind(this),this.sendAsync=this.sendAsync.bind(this);let i=new nG;S()(e,i,e,this._handleStreamDisconnect.bind(this,"Torus")),i.ignoreStream("phishing");let o=nD();S()(o.stream,i.createStream(n),o.stream,this._handleStreamDisconnect.bind(this,"Torus RpcProvider"));let s=new n$;s.push(nF()),s.push(n7()),s.push(nE({origin:location.origin})),s.push(o.middleware),this._rpcEngine=s,this.jsonRpcConnectionEvents=o.events}async request(e){if(!e||"object"!=typeof e||Array.isArray(e))throw E.ethErrors.rpc.invalidRequest({message:n0.errors.invalidRequestArgs(),data:e});let{method:t,params:r}=e;if("string"!=typeof t||0===t.length)throw E.ethErrors.rpc.invalidRequest({message:n0.errors.invalidRequestMethod(),data:e});if(void 0!==r&&!Array.isArray(r)&&("object"!=typeof r||null===r))throw E.ethErrors.rpc.invalidRequest({message:n0.errors.invalidRequestParams(),data:e});return new Promise((e,n)=>{this._rpcRequest({method:t,params:r},nj(e,n))})}send(e,t){this._rpcRequest(e,t)}sendAsync(e){return new Promise((t,r)=>{this._rpcRequest(e,nj(t,r))})}_handleStreamDisconnect(e,t){n9(e,t,this),this._handleDisconnect(!1,t?t.message:void 0)}}let id=function(e,t,r){for(var n=arguments.length,i=Array(n>3?n-3:0),o=3;o<n;o++)i[o-3]=arguments[o];let s=()=>{r(...i),e.removeEventListener(t,s)};e.addEventListener(t,s)};async function ih(){return new Promise(e=>{"loading"!==document.readyState?e():id(document,"DOMContentLoaded",e)})}let ip=e=>{let t=window.document.createElement("template"),r=e.trim();return t.innerHTML=r,t.content.firstChild};function ib(e){return void 0===e.version}class ig extends nN{constructor(e){let{url:t,target:r,features:n}=e;super(),d(this,"url",void 0),d(this,"target",void 0),d(this,"features",void 0),d(this,"window",void 0),d(this,"windowTimer",void 0),d(this,"iClosedWindow",void 0),this.url=t,this.target=r||"_blank",this.features=n||il(is),this.window=void 0,this.windowTimer=void 0,this.iClosedWindow=!1,this._setupTimer()}_setupTimer(){this.windowTimer=Number(setInterval(()=>{this.window&&this.window.closed&&(clearInterval(this.windowTimer),this.iClosedWindow||this.emit("close"),this.iClosedWindow=!1,this.window=void 0),void 0===this.window&&clearInterval(this.windowTimer)},500))}open(){return this.window=window.open(this.url.href,this.target,this.features),this.window?.focus&&this.window.focus(),Promise.resolve()}close(){this.iClosedWindow=!0,this.window&&this.window.close()}redirect(e){e?window.location.replace(this.url.href):window.location.href=this.url.href}}function im(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function iy(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
4t%2?im(Object(r),!0).forEach(function(t){d(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):im(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}class iv extends ic{constructor(e,t){let{maxEventListeners:r=100,jsonRpcStreamName:n="provider"}=t;super(e,{maxEventListeners:r,jsonRpcStreamName:n}),d(this,"embedTranslations",void 0),d(this,"torusUrl",void 0),d(this,"dappStorageKey",void 0),d(this,"windowRefs",void 0),d(this,"tryWindowHandle",void 0),d(this,"torusAlertContainer",void 0),d(this,"torusIframe",void 0),this._state=iy({},iv._defaultState),this.torusUrl="",this.dappStorageKey="";let i=n4.translations[ir()];this.embedTranslations=i.embed,this.windowRefs={},this.on("connect",()=>{this._state.isConnected=!0});let o=e=>{let{method:t,params:r}=e;if(t===nv.IFRAME_STATUS){let{isFullScreen:e,rid:t}=r;this._displayIframe({isFull:e,rid:t})}else if(t===nv.CREATE_WINDOW){let{windowId:e,url:t}=r;this._createPopupBlockAlert(e,t)}else if(t===nv.CLOSE_WINDOW)this._handleCloseWindow(r);else if(t===nv.USER_LOGGED_IN){let{currentLoginProvider:e}=r;this._state.isLoggedIn=!0,this._state.currentLoginProvider=e}else t===nv.USER_LOGGED_OUT&&(this._state.isLoggedIn=!1,this._state.currentLoginProvider=null,this._displayIframe())};this.jsonRpcConnectionEvents.on("notification",o)}get isLoggedIn(){return this._state.isLoggedIn}get isIFrameFullScreen(){return this._state.isIFrameFullScreen}isConnected(){return this._state.isConnected}async _initializeState(e){try{let{torusUrl:t,dappStorageKey:r,torusAlertContainer:n,torusIframe:i}=e;this.torusUrl=t,this.dappStorageKey=r,this.torusAlertContainer=n,this.torusIframe=i,this.torusIframe.addEventListener("load",()=>{this._state.isIFrameFullScreen||this._displayIframe()});let{currentLoginProvider:o,isLoggedIn:s}=await this.request({method:nw.GET_PROVIDER_STATE,params:[]});this._handleConnect(o,s)}catch(e){n5.error("Torus: Failed to get initial state. Please report this bug.",e)}finally{n5.info("initialized communication state"),this._state.initialized=!0,this.emit("_initialized")}}_handleWindow(e){let{url:t,target:r,features:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=new URL(t||`${this.torusUrl}/redirect?windowId=${e}`);this.dappStorageKey&&(i.hash?i.hash+=`&dappStorageKey=${this.dappStorageKey}`:i.hash=`#dappStorageKey=${this.dappStorageKey}`);let o=new ig({url:i,target:r,features:n});if(o.open(),!o.window){this._createPopupBlockAlert(e,i.href);return}this.windowRefs[e]=o,this.request({method:nw.OPENED_WINDOW,params:{windowId:e}}),o.once("close",()=>{delete this.windowRefs[e],this.request({method:nw.CLOSED_WINDOW,params:{windowId:e}})})}_displayIframe(){let{isFull:e=!1,rid:t=""}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r={};if(e)r.display="block",r.width="100%",r.height="100%",r.top="0px",r.right="0px",r.left="0px",r.bottom="0px";else switch(r.display=this._state.torusWidgetVisibility?"block":"none",r.height="70px",r.width="70px",this._state.buttonPosition){case n6.TOP_LEFT:r.top="0px",r.left="0px",r.right="auto",r.bottom="auto";break;case n6.TOP_RIGHT:r.top="0px",r.right="0px",r.left="auto",r.bottom="auto";break;case n6.BOTTOM_RIGHT:r.bottom="0px",r.right="0px",r.top="auto",r.left="auto";break;case n6.BOTTOM_LEFT:default:r.bottom="0px",r.left="0px",r.top="auto",r.right="auto"}Object.assign(this.torusIframe.style,r),this._state.isIFrameFullScreen=e,this.request({method:nw.IFRAME_STATUS,params:{isIFrameFullScreen:e,rid:t}})}hideTorusButton(){this._state.torusWidgetVisibility=!1,this._displayIframe()}showTorusButton(){this._state.torusWidgetVisibility=!0,this._displayIframe()}_rpcRequest(e,t){let r=t,n=e;Array.isArray(n)||n.jsonrpc||(n.jsonrpc="2.0"),this.tryWindowHandle(n,r)}_handleConnect(e,t){this._state.isConnected||(this._state.isConnected=!0,this.emit("connect",{currentLoginProvider:e,isLoggedIn:t}),n5.debug(n0.info.connected(e)))}_handleDisconnect(e,t){if(this._state.isConnected||!this._state.isPermanentlyDisconnected&&!e){let r;this._state.isConnected=!1,e?(r=new E.EthereumRpcError(1013,t||n0.errors.disconnected()),n5.debug(r)):(r=new E.EthereumRpcError(1011,t||n0.errors.permanentlyDisconnected()),n5.error(r),this._state.currentLoginProvider=null,this._state.isLoggedIn=!1,this._state.torusWidgetVisibility=!1,this._state.isIFrameFullScreen=!1,this._state.isPermanentlyDisconnected=!0),this.emit
4("disconnect",r)}}_handleCloseWindow(e){let{windowId:t}=e;this.windowRefs[t]&&(this.windowRefs[t].close(),delete this.windowRefs[t])}async _createPopupBlockAlert(e,t){let r=this.getLogoUrl(),n=ip(`<div id="torusAlert" class="torus-alert--v2"><div id="torusAlert__logo"><img src="${r}" /></div><div><h1 id="torusAlert__title">${this.embedTranslations.actionRequired}</h1><p id="torusAlert__desc">${this.embedTranslations.pendingAction}</p></div></div>`),i=ip(`<div><a id="torusAlert__btn">${this.embedTranslations.continue}</a></div>`),o=ip('<div id="torusAlert__btn-container"></div>');o.appendChild(i),n.appendChild(o);let s=()=>{i.addEventListener("click",()=>{this._handleWindow(e,{url:t,target:"_blank",features:il(ia)}),n.remove(),0===this.torusAlertContainer.children.length&&(this.torusAlertContainer.style.display="none")})},a=()=>{this.torusAlertContainer.appendChild(n)};await ih(),a(),s(),this.torusAlertContainer.style.display="block"}getLogoUrl(){return`${this.torusUrl}/images/torus_icon-blue.svg`}}function iw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i_(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?iw(Object(r),!0).forEach(function(t){d(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iw(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}d(iv,"_defaultState",{buttonPosition:"bottom-left",currentLoginProvider:null,isIFrameFullScreen:!1,hasEmittedConnection:!1,torusWidgetVisibility:!1,initialized:!1,isLoggedIn:!1,isPermanentlyDisconnected:!1,isConnected:!1});class iS extends ic{constructor(e,t){let{maxEventListeners:r=100,jsonRpcStreamName:n="provider"}=t;super(e,{maxEventListeners:r,jsonRpcStreamName:n}),d(this,"chainId",void 0),d(this,"selectedAddress",void 0),d(this,"tryWindowHandle",void 0),this._state=i_({},iS._defaultState),this.selectedAddress=null,this.chainId=null,this._handleAccountsChanged=this._handleAccountsChanged.bind(this),this._handleChainChanged=this._handleChainChanged.bind(this),this._handleUnlockStateChanged=this._handleUnlockStateChanged.bind(this),this.on("connect",()=>{this._state.isConnected=!0});let i=e=>{let{method:t,params:r}=e;t===nS.ACCOUNTS_CHANGED?this._handleAccountsChanged(r):t===nS.UNLOCK_STATE_CHANGED?this._handleUnlockStateChanged(r):t===nS.CHAIN_CHANGED&&this._handleChainChanged(r)};this.jsonRpcConnectionEvents.on("notification",i)}isConnected(){return this._state.isConnected}async _initializeState(){try{let{accounts:e,chainId:t,isUnlocked:r}=await this.request({method:n_.GET_PROVIDER_STATE,params:[]});this.emit("connect",{chainId:t}),this._handleChainChanged({chainId:t}),this._handleUnlockStateChanged({accounts:e,isUnlocked:r}),this._handleAccountsChanged(e)}catch(e){n5.error("Torus: Failed to get initial state. Please report this bug.",e)}finally{n5.info("initialized provider state"),this._state.initialized=!0,this.emit("_initialized")}}_rpcRequest(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=t,i=e;if(!Array.isArray(i)){if(i.jsonrpc||(i.jsonrpc="2.0"),"solana_accounts"===i.method||"solana_requestAccounts"===i.method)n=(e,n)=>{this._handleAccountsChanged(n.result||[],"solana_accounts"===i.method,r),t(e,n)};else if("wallet_getProviderState"===i.method){this._rpcEngine.handle(e,n);return}}this.tryWindowHandle(i,n)}_handleConnect(e){this._state.isConnected||(this._state.isConnected=!0,this.emit("connect",{chainId:e}),n5.debug(n0.info.connected(e)))}_handleDisconnect(e,t){if(this._state.isConnected||!this._state.isPermanentlyDisconnected&&!e){let r;this._state.isConnected=!1,e?(r=new E.EthereumRpcError(1013,t||n0.errors.disconnected()),n5.debug(r)):(r=new E.EthereumRpcError(1011,t||n0.errors.permanentlyDisconnected()),n5.error(r),this.chainId=null,this._state.accounts=null,this.selectedAddress=null,this._state.isUnlocked=!1,this._state.isPermanentlyDisconnected=!0),this.emit
4("disconnect",r)}}_handleAccountsChanged(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=e;for(let t of(Array.isArray(n)||(n5.error("Torus: Received non-array accounts parameter. Please report this bug.",n),n=[]),e))if("string"!=typeof t){n5.error("Torus: Received non-string account. Please report this bug.",e),n=[];break}nX()(this._state.accounts,n)||(t&&Array.isArray(this._state.accounts)&&this._state.accounts.length>0&&!r&&n5.error('Torus: "solana_accounts" unexpectedly updated accounts. Please report this bug.',n),this._state.accounts=n,this.emit("accountsChanged",n)),this.selectedAddress!==n[0]&&(this.selectedAddress=n[0]||null)}_handleChainChanged(){let{chainId:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e){n5.error("Torus: Received invalid network parameters. Please report this bug.",{chainId:e});return}"loading"===e?this._handleDisconnect(!0):(this._handleConnect(e),e!==this.chainId&&(this.chainId=e,this._state.initialized&&this.emit("chainChanged",this.chainId)))}_handleUnlockStateChanged(){let{accounts:e,isUnlocked:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("boolean"!=typeof t){n5.error("Torus: Received invalid isUnlocked parameter. Please report this bug.",{isUnlocked:t});return}t!==this._state.isUnlocked&&(this._state.isUnlocked=t,this._handleAccountsChanged(e||[]))}}function iE(e){return new Promise((t,r)=>{try{let r=document.createElement("img");r.onload=()=>t(!0),r.onerror=()=>t(!1),r.src=e}catch(e){r(e)}})}d(iS,"_defaultState",{accounts:null,isConnected:!1,isUnlocked:!1,initialized:!1,isPermanentlyDisconnected:!1,hasEmittedConnection:!1});let iA=e=>{let{document:t}=e,r=t.querySelector('head > meta[property="og:site_name"]');if(r)return r.content;let n=t.querySelector('head > meta[name="title"]');return n?n.content:t.title&&t.title.length>0?t.title:e.location.hostname};async function iR(e){try{let{document:t}=e,r=t.querySelector('head > link[rel="shortcut icon"]');if(r&&await iE(r.href)||(r=Array.from(t.querySelectorAll('head > link[rel="icon"]')).find(e=>!!e.href))&&await iE(r.href))return r.href;return""}catch(e){return""}}let ix=async()=>({name:iA(window),icon:await iR(window)});function iM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ik(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?iM(Object(r),!0).forEach(function(t){d(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iM(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let iO=["send_transaction","sign_transaction","sign_all_transactions","sign_message","connect"],iT=[nw.SET_PROVIDER],iI=iu("localStorage");!async function(){try{if("undefined"==typeof document)return;let e=document.createElement("link"),{torusUrl:t}=await it("production");e.href=`${t}/frame`,e.crossOrigin="anonymous",e.type="text/html",e.rel="prefetch",e.relList&&e.relList.supports&&e.relList.supports("prefetch")&&document.head.appendChild(e)}catch(e){n5.warn(e)}}();class iP{constructor(){let{modalZIndex:e=99999}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};d(this,"isInitialized",void 0),d(this,"torusAlert",void 0),d(this,"modalZIndex",void 0),d(this,"alertZIndex",void 0),d(this,"requestedLoginProvider",void 0),d(this,"provider",void 0),d(this,"communicationProvider",void 0),d(this,"dappStorageKey",void 0),d(this,"isTopupHidden",!1),d(this,"torusAlertContainer",void 0),d(this,"torusUrl",void 0),d(this,"torusIframe",void 0),d(this,"styleLink",void 0),this.torusUrl="",this.isInitialized=!1,this.requestedLoginProvider=null,this.modalZIndex=e,this.alertZIndex=e+1e3,this.dappStorageKey=""}get isLoggedIn(){return!!this.communicationProvider&&this.communicationProvider.isLoggedIn}
4async init(){let{buildEnv:e=n2.PRODUCTION,enableLogging:t=!1,network:r,showTorusButton:n=!1,useLocalStorage:i=!1,buttonPosition:o=n6.BOTTOM_LEFT,apiKey:s="torus-default",extraParams:a={},whiteLabel:u}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.isInitialized)throw Error("Already initialized");let{torusUrl:f,logLevel:l}=await it(e);n5.enableAll(),n5.info(f,"url loaded"),n5.info(`Solana Embed Version :${nQ}`),this.torusUrl=f,n5.setDefaultLevel(l),t?n5.enableAll():n5.disableAll();let c=this.handleDappStorageKey(i),d=new URL(f);d.pathname.endsWith("/")?d.pathname+="frame":d.pathname+="/frame";let h=new URLSearchParams;c&&h.append("dappStorageKey",c),h.append("origin",window.location.origin),d.hash=h.toString(),this.torusIframe=ip(`<iframe 5 id="torusIframe" 6 class="torusIframe" 7 src="${d.href}" 8 style="display: none; position: fixed; top: 0; right: 0; width: 100%; 9 height: 100%; border: none; border-radius: 0; z-index: ${this.modalZIndex.toString()}" 10 ></iframe>`),this.torusAlertContainer=ip(`<div id="torusAlertContainer" style="display:none; z-index: ${this.alertZIndex.toString()}"></div>`),this.styleLink=ip(`<link href="${f}/css/widget.css" rel="stylesheet" type="text/css">`);let p=async()=>new Promise((e,t)=>{try{window.document.head.appendChild(this.styleLink),window.document.body.appendChild(this.torusIframe),window.document.body.appendChild(this.torusAlertContainer),this.torusIframe.addEventListener("load",async()=>{let t=await ix();this.torusIframe.contentWindow.postMessage({buttonPosition:o,apiKey:s,network:r,dappMetadata:t,extraParams:a,whiteLabel:u},d.origin),await this._setupWeb3({torusUrl:f}),n&&this.showTorusButton(),u?.topupHide?this.isTopupHidden=u.topupHide:this.hideTorusButton(),this.isInitialized=!0,window.torus=this,e()})}catch(e){t(e)}});await ih(),await p()}async login(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.isInitialized)throw Error("Call init() first");try{this.requestedLoginProvider=e.loginProvider||null,this.requestedLoginProvider||this.communicationProvider._displayIframe({isFull:!0});let t=await new Promise((t,r)=>{this.provider._rpcRequest({method:"solana_requestAccounts",params:[this.requestedLoginProvider,e.login_hint]},nj(t,r))});if(Array.isArray(t)&&t.length>0)return t;throw Error("Login failed")}catch(e){throw n5.error("login failed",e),e}finally{this.communicationProvider.isIFrameFullScreen&&this.communicationProvider._displayIframe()}}async loginWithPrivateKey(e){if(!this.isInitialized)throw Error("Call init() first");let{privateKey:t,userInfo:r}=e,{success:n}=await this.communicationProvider.request({method:"login_with_private_key",params:{privateKey:t,userInfo:r}});if(!n)throw Error("Login Failed")}async logout(){if(!this.communicationProvider.isLoggedIn)throw Error("Not logged in");await this.communicationProvider.request({method:nw.LOGOUT,params:[]}),this.requestedLoginProvider=null}async cleanUp(){this.communicationProvider.isLoggedIn&&await this.logout(),this.clearInit()}clearInit(){function e(e){return e instanceof Element||e instanceof Document}e(this.styleLink)&&window.document.body.contains(this.styleLink)&&(this.styleLink.remove(),this.styleLink=void 0),e(this.torusIframe)&&window.document.body.contains(this.torusIframe)&&(this.torusIframe.remove(),this.torusIframe=void 0),e(this.torusAlertContainer)&&window.document.body.contains(this.torusAlertContainer)&&(this.torusAlert=void 0,this.torusAlertContainer.remove(),this.torusAlertContainer=void 0),this.isInitialized=!1}hideTorusButton(){this.communicationProvider.hideTorusButton()}showTorusButton(){this.communicationProvider.showTorusButton()}async setProvider(e){await this.communicationProvider.request({method:nw.SET_PROVIDER,params:ik({},e)})}async showWallet(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=await this.communicationProvider.request({method:nw.WALLET_INSTANCE_ID,params:[]}),n=e?`/${e}`:"",i=new URL(`${this.torusUrl}/wallet${n}`);i.searchParams.append("instanceId",r),Object.keys(t).forEach(e=>{i.searchParams.append(e,t[e])}),this.dappStorageKey&&(i.hash=`#dappStorageKey=${this.dappStorageKey}`),new ig({url:i,features:il(io)}).open()}async getUserInfo(){return await this.communicationProvider.request({method:nw.USER_INFO,params:[]})}async initiateTopup(e,t){if(!this.isInitialized)throw Error("Torus is not initialized");let r=ie();return this.communicationProvider._handleWindow(r),await this.communicationProvider.request({method:nw.TOPUP,params:{provider:e,params:t,windowId:r}})}async getAccounts(){return await this.provider.request({method:"getAccounts",params:[]})}async sendTransaction(e){let t=ib(e),r=t?e.serialize({requireAllSignatures:!1}).toString("hex"):nY.from(e.serialize()).toString("hex");return await this.provider.request({method:"send_transaction",params:{message:r,isLegacyTransaction:t}})}async signAndSendTransaction(e,t){let r=ib(e),n=r?e.serialize({requireAllSignatures:!1}).toString("hex"):nY.from(e.serialize()).toString("hex");return{signature:await this.provider.request({method:"send_transaction",params:{message:n,options:t,isLegacyTransaction:r}})}}async signTransaction(e){let t=ib(e),r=t?e.serializeMessage().toString("hex"):nY.from(e.message.serialize()).toString("hex"),n=JSON.parse(await this.provider.request({method:"sign_transaction",params:{message:r,messageOnly:!0,isLegacyTransaction:t}})),i={publicKey:new h.PublicKey(n.publicKey),signature:nY.from(n.signature,"hex")};return e.addSignature(i.publicKey,i.signature),e}async signAllTransactions(e){let t;let r=e.map(e=>(t=ib(e))?e.serializeMessage().toString("hex"):nY.from(e.message.serialize()).toString("hex")),n=(await this.provider.request({method:"sign_all_transactions",params:{message:r,messageOnly:!0,isLegacyTransaction:t}})).map(e=>{let t=JSON.parse(e);return{publicKey:new h.PublicKey(t.publicKey),signature:nY.from(t.signature,"hex")}});return e.forEach((e,t)=>(e.addSignature(n[t].publicKey,n[t].signature),e)),e}async signMessage(e){return await this.provider.request({method:"sign_message",params:{data:e}})}async getGaslessPublicKey(){return await this.provider.request({method:"get_gasless_public_key",params:[]})}handleDappStorageKey(e){let t=`${n4.localStorageKeyPrefix}${window.location.hostname}`,r="";if(iI&&e){let e=window.localStorage.getItem(t);if(e)r=e;else{let e=`torus-app-${ie()}`;window.localStorage.setItem(t,e),r=e}}return this.dappStorageKey=r,r}async _setupWeb3(e){n5.info("setupWeb3 running");let t=new nP({name:"embed_torus",target:"iframe_torus",targetWindow:this.torusIframe.contentWindow}),r=new nP({name:"embed_communication",target:"iframe_communication",targetWindow:this.torusIframe.contentWindow}),n=new iS(t,{}),i=new iv(r,{});n.tryWindowHandle=(e,t)=>
10{let r=e;if(!Array.isArray(r)&&iO.includes(r.method)){if(!this.communicationProvider.isLoggedIn)throw Error("User Not Logged In");let e=ie();i._handleWindow(e,{target:"_blank",features:il(ia)}),r.windowId=e}n._rpcEngine.handle(r,t)},i.tryWindowHandle=(e,t)=>{let r=e;if(!Array.isArray(r)&&iT.includes(r.method)){let e=ie();i._handleWindow(e,{target:"_blank",features:il(ii)}),r.params.windowId=e}i._rpcEngine.handle(r,t)};let o=e=>{let t=n[e],r=this;n[e]=function(e,n){let{method:i,params:o=[]}=e;if("solana_requestAccounts"===i){if(!n)return r.login({loginProvider:o[0]});r.login({loginProvider:o[0]}).then(e=>n(null,e)).catch(e=>n(e))}return t.apply(this,[e,n])}};o("request"),o("sendAsync"),o("send");let s=new Proxy(n,{deleteProperty:()=>!0}),a=new Proxy(i,{deleteProperty:()=>!0});this.provider=s,this.communicationProvider=a,await Promise.all([n._initializeState(),i._initializeState(ik(ik({},e),{},{dappStorageKey:this.dappStorageKey,torusAlertContainer:this.torusAlertContainer,torusIframe:this.torusIframe}))]),n5.debug("Torus - injected provider")}}},8741:function(e){"use strict";let{AbortController:t,AbortSignal}="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0;e.exports=t,e.exports.AbortSignal=AbortSignal,e.exports.default=t},17362:function(e,t,r){"use strict";var n,i=r(9109).Buffer;n={value:!0};var o=r(67125);function s(e,t){return(void 0===t&&(t="utf8"),i.isBuffer(e))?f(e.toString("base64")):f(i.from(e,t).toString("base64"))}function a(e,t){return void 0===t&&(t="utf8"),i.from(u(e),"base64").toString(t)}function u(e){return e=e.toString(),o.default(e).replace(/\-/g,"+").replace(/_/g,"/")}function f(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function l(e){return i.from(u(e),"base64")}var c=s;c.encode=s,c.decode=a,c.toBase64=u,c.fromBase64=f,c.toBuffer=l,t.default=c},67125:function(e,t,r){"use strict";var n=r(9109).Buffer;function i(e){var t=4,r=e.length,i=r%t;if(!i)return e;var o=r,s=t-i,a=r+s,u=n.alloc(a);for(u.write(e);s--;)u.write("=",o++);return u.toString()}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i},20450:function(e,t,r){e.exports=r(17362).default,e.exports.default=e.exports},22510:function(e){!function(t,r){e.exports=r()}(0,function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t||4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,(function(t){return e[t]}).bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=90)}({17:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n=r(18),i=function(){function e(){}return e.getFirstMatch=function(e,t){var r=t.match(e);return r&&r.length>0&&r[1]||""},e.getSecondMatch=function(e,t){var r=t.match(e);return r&&r.length>1&&r[2]||""},e.matchAndReturnConst=function(e,t,r){if(e.test(t))return r},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map(function(e){return parseInt(e,10)||0});if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";
vendor: 4,599 bytes, line 10
10case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map(function(e){return parseInt(e,10)||0});if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,r,n){void 0===n&&(n=!1);var i=e.getVersionPrecision(t),o=e.getVersionPrecision(r),s=Math.max(i,o),a=0,u=e.map([t,r],function(t){var r=s-e.getVersionPrecision(t),n=t+Array(r+1).join(".0");return e.map(n.split("."),function(e){return Array(20-e.length).join("0")+e}).reverse()});for(n&&(a=s-Math.min(i,o)),s-=1;s>=a;){if(u[0][s]>u[1][s])return 1;if(u[0][s]===u[1][s]){if(s===a)return 0;s-=1}else if(u[0][s]<u[1][s])return -1}},e.map=function(e,t){var r,n=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(r=0;r<e.length;r+=1)n.push(t(e[r]));return n},e.find=function(e,t){var r,n;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(r=0,n=e.length;r<n;r+=1){var i=e[r];if(t(i,r))return i}},e.assign=function(e){for(var t,r,n=e,i=arguments.length,o=Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];if(Object.assign)return Object.assign.apply(Object,[e].concat(o));var a=function(){var e=o[t];"object"==typeof e&&null!==e&&Object.keys(e).forEach(function(t){n[t]=e[t]})};for(t=0,r=o.length;t<r;t+=1)a();return e},e.getBrowserAlias=function(e){return n.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return n.BROWSER_MAP[e]||""},e}();t.default=i,e.exports=t.default},18:function(e,t,r){"use strict";t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},t.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},t.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},t.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},t.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(91))&&n.__esModule?n:{default:n},o=r(18);function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=function(){var e;function t(){}return t.getParser=function(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)throw Error("UserAgent should be a string");return new i.default(e,t)},t.parse=function(e){return new i.default(e).getResult()}
vendor: 5,912 bytes, line 10
10,e=null,s(t,[{key:"BROWSER_MAP",get:function(){return o.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return o.ENGINE_MAP}},{key:"OS_MAP",get:function(){return o.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return o.PLATFORMS_MAP}}]),t}();t.default=a,e.exports=t.default},91:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n=u(r(92)),i=u(r(93)),o=u(r(94)),s=u(r(95)),a=u(r(17));function u(e){return e&&e.__esModule?e:{default:e}}var f=function(){function e(e,t){if(void 0===t&&(t=!1),null==e||""===e)throw Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},!0!==t&&this.parse()}var t=e.prototype;return t.getUA=function(){return this._ua},t.test=function(e){return e.test(this._ua)},t.parseBrowser=function(){var e=this;this.parsedResult.browser={};var t=a.default.find(n.default,function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some(function(t){return e.test(t)});throw Error("Browser's test function is not valid")});return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var e=this;this.parsedResult.os={};var t=a.default.find(i.default,function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some(function(t){return e.test(t)});throw Error("Browser's test function is not valid")});return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""},t.parsePlatform=function(){var e=this;this.parsedResult.platform={};var t=a.default.find(o.default,function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some(function(t){return e.test(t)});throw Error("Browser's test function is not valid")});return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var e=this;this.parsedResult.engine={};var t=a.default.find(s.default,function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some(function(t){return e.test(t)});throw Error("Browser's test function is not valid")});return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return a.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,r={},n=0,i={},o=0;if(Object.keys(e).forEach(function(t){var s=e[t];"string"==typeof s?(i[t]=s,o+=1):"object"==typeof s&&(r[t]=s,n+=1)}),n>0){var s=Object.keys(r),u=a.default.find(s,function(e){return t.isOS(e)});if(u){var f=this.satisfies(r[u]);if(void 0!==f)return f}var l=a.default.find(s,function(e){return t.isPlatform(e)});if(l){var c=this.satisfies(r[l]);if(void 0!==c)return c}}if(o>0){var d=Object.keys(i),h=a.default.find(d,function(e){return t.isBrowser(e,!0)});if(void 0!==h)return this.compareVersion(i[h])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var r=this.getBrowserName().toLowerCase(),n=e.toLowerCase(),i=a.default.getBrowserTypeByAlias(n);return t&&i&&(n=i.toLowerCase()),n===r},t.compareVersion=function(e){var t=[0],r=e,n=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===e[0]||"<"===e[0]?(r=e.substr(1),"="===e[1]?(n=!0,r=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?r=e.substr(1):"~"===e[0]&&(n=!0,r=e.substr(1)),t.indexOf(a.default.compareVersions(i,r,n))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some(function(e){return t.is(e)})},e}();t.default=f,e.exports=t.default},92:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=/version\/(\d+(\.?_?\d+)+)/i,s=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},r=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},r=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:whale
vendor: 9,522 bytes, line 10
10)[\s/](\d+(?:\.\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},r=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},r=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},r=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},r=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},r=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},r=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},r=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},r=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},r=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},r=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},r=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},r=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},r=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return r&&(t.version=r),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},r=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},r=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},r=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},r=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},r=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},r=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},r=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},r=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},r=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},r=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},r=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},r=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t={name:"Android Browser"},r=i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},r=i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},r=i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(t,e),version:i.default.getSecondMatch(t,e)}}}];t.default=s,e.exports=t.default},93:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),s=[{test:[/Roku\/DVP/],describe:function(e){var t=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:o.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),r=i.default.getWindowsVersionName(t);return{name:o.OS_MAP.Windows,version:t,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:o.OS_MAP.iOS},r=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return r&&(t.version=r),t}},{test:[/macintosh/i],describe:function(e){var t=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),r=i.default.getMacOSVersionName(t),n={name:o.OS_MAP.MacOS,version:t};return r&&(n.versionName=r),n}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:o.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),r=i.default.getAndroidVersionName(t),n={name:o.OS_MAP.Android,version:t};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),r={name:o.OS_MAP.WebOS};return t&&t.length&&(r.version=t),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||i.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:o.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:o.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:o.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.PlayStation4,version:t}}}];t.default=s,e.exports=t.default},94:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),s=[{test:[/googlebot/i],describe:function(){return{type:
10"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=i.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",r={type:o.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(r.model=t),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),r=e.test(/like (ipod|iphone)/i);return t&&!r},describe:function(e){var t=i.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:o.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}}];t.default=s,e.exports=t.default},95:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),s=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:o.ENGINE_MAP.Blink};var t=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:o.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:o.ENGINE_MAP.Trident},r=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:o.ENGINE_MAP.Presto},r=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=e.test(/gecko/i),r=e.test(/like gecko/i);return t&&!r},describe:function(e){var t={name:o.ENGINE_MAP.Gecko},r=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:o.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:o.ENGINE_MAP.WebKit},r=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}}];t.default=s,e.exports=t.default}})})},4807:function(e,t,r){var n;function i(e){this.rand=e}if(e.exports=function(e){return n||(n=new i(null)),n.generate(e)},e.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r<t.length;r++)t[r]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(i.prototype._rand=function(){throw Error("Not implemented yet")});else try{var o=r(89214);if("function"!=typeof o.randomBytes)throw Error("Not supported");i.prototype._rand=function(e){return o.randomBytes(e)}}catch(e){}},65815:function(e,t,r){"use strict";var n=t;n.version=r(58274).i8,n.utils=r(69381),n.rand=r(4807),n.curve=r(36352),n.curves=r(99819),n.ec=r(2915),n.eddsa=r(85747)},71590:function(e,t,r){"use strict";var n=r(28606),i=r(69381),o=i.getNAF,s=i.getJSF,a=i.assert;function u(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}
vendor: 11,504 bytes, line 10
10function f(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=u,u.prototype.point=function(){throw Error("Not implemented")},u.prototype.validate=function(){throw Error("Not implemented")},u.prototype._fixedNafMul=function(e,t){a(e.precomputed);var r,n,i=e._getDoubles(),s=o(t,1,this._bitLength),u=(1<<i.step+1)-(i.step%2==0?2:1);u/=3;var f=[];for(r=0;r<s.length;r+=i.step){n=0;for(var l=r+i.step-1;l>=r;l--)n=(n<<1)+s[l];f.push(n)}for(var c=this.jpoint(null,null,null),d=this.jpoint(null,null,null),h=u;h>0;h--){for(r=0;r<f.length;r++)(n=f[r])===h?d=d.mixedAdd(i.points[r]):n===-h&&(d=d.mixedAdd(i.points[r].neg()));c=c.add(d)}return c.toP()},u.prototype._wnafMul=function(e,t){var r=4,n=e._getNAFPoints(r);r=n.wnd;for(var i=n.points,s=o(t,r,this._bitLength),u=this.jpoint(null,null,null),f=s.length-1;f>=0;f--){for(var l=0;f>=0&&0===s[f];f--)l++;if(f>=0&&l++,u=u.dblp(l),f<0)break;var c=s[f];a(0!==c),u="affine"===e.type?c>0?u.mixedAdd(i[c-1>>1]):u.mixedAdd(i[-c-1>>1].neg()):c>0?u.add(i[c-1>>1]):u.add(i[-c-1>>1].neg())}return"affine"===e.type?u.toP():u},u.prototype._wnafMulAdd=function(e,t,r,n,i){var a,u,f,l=this._wnafT1,c=this._wnafT2,d=this._wnafT3,h=0;for(a=0;a<n;a++){var p=(f=t[a])._getNAFPoints(e);l[a]=p.wnd,c[a]=p.points}for(a=n-1;a>=1;a-=2){var b=a-1,g=a;if(1!==l[b]||1!==l[g]){d[b]=o(r[b],l[b],this._bitLength),d[g]=o(r[g],l[g],this._bitLength),h=Math.max(d[b].length,h),h=Math.max(d[g].length,h);continue}var m=[t[b],null,null,t[g]];0===t[b].y.cmp(t[g].y)?(m[1]=t[b].add(t[g]),m[2]=t[b].toJ().mixedAdd(t[g].neg())):0===t[b].y.cmp(t[g].y.redNeg())?(m[1]=t[b].toJ().mixedAdd(t[g]),m[2]=t[b].add(t[g].neg())):(m[1]=t[b].toJ().mixedAdd(t[g]),m[2]=t[b].toJ().mixedAdd(t[g].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],v=s(r[b],r[g]);for(u=0,h=Math.max(v[0].length,h),d[b]=Array(h),d[g]=Array(h);u<h;u++){var w=0|v[0][u],_=0|v[1][u];d[b][u]=y[(w+1)*3+(_+1)],d[g][u]=0,c[b]=m}}var S=this.jpoint(null,null,null),E=this._wnafT4;for(a=h;a>=0;a--){for(var A=0;a>=0;){var R=!0;for(u=0;u<n;u++)E[u]=0|d[u][a],0!==E[u]&&(R=!1);if(!R)break;A++,a--}if(a>=0&&A++,S=S.dblp(A),a<0)break;for(u=0;u<n;u++){var x=E[u];0!==x&&(x>0?f=c[u][x-1>>1]:x<0&&(f=c[u][-x-1>>1].neg()),S="affine"===f.type?S.mixedAdd(f):S.add(f))}}for(a=0;a<n;a++)c[a]=null;return i?S:S.toP()},u.BasePoint=f,f.prototype.eq=function(){throw Error("Not implemented")},f.prototype.validate=function(){return this.curve.validate(this)},u.prototype.decodePoint=function(e,t){e=i.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*r)return 6===e[0]?a(e[e.length-1]%2==0):7===e[0]&&a(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw Error("Unknown point format")},f.prototype.encodeCompressed=function(e){return this.encode(e,!0)},f.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},f.prototype.encode=function(e,t){return i.encode(this._encode(t),e)},f.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},f.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},f.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<t;i+=e){for(var o=0;o<e;o++)n=n.dbl();r.push(n)}return{step:e,points:r}},f.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)t[i]=t[i-1].add(n);return{wnd:e,points:t}},f.prototype._getBeta=function(){return null},f.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}},1749:function(e,t,r){"use strict";var n=r(69381),i=r(28606),o=r(87398),s=r(71590),a=n.assert;function u(e){this.twisted=(0|e.a)!=1,this.mOneA=this.twisted&&(0|e.a)==-1,this.extended=this.mOneA,s.call(this,"edwards",e),this.a=new i(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),a(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=(0|e.c)==1}function f(e,t,r,n,o){s.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(t,16),this.y=new i(r,16),this.z=n?new i(n,16):this.curve.one,this.t=o&&new i(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,!this.curve.extended||this.t||(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}o(u,s),e.exports=u,u.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},u.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},u.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},u.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),o=this.one.redSub(this.c2.redMul(this.d).redMul(r)),s=n.redMul(o.redInvm()),a=s.redSqrt();if(0!==a.redSqr().redSub(s).cmp(this.zero))throw Error("invalid point");var u=a.fromRed().isOdd();return(t&&!u||!t&&u)&&(a=a.redNeg()),this.point(e,a)},u.prototype.pointFromY=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),o=r.redMul(this.d).redMul(this.c2).redSub(this.a),s=n.redMul(o.redInvm());if(0===s.cmp(this.zero)){if(!t)return this.point(this.zero,e);throw Error("invalid point")}var a=s.redSqrt();if(0!==a.redSqr().redSub(s).cmp(this.zero))throw Error("invalid point");return a.fromRed().isOdd()!==t&&(a=a.redNeg()),this.point(a,e)},u.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},o(f,s.BasePoint),u.prototype.pointFromJSON=function(e){return f.fromJSON(this,e)},u.prototype.point=function(e,t,r,n){return new f(this,e,t,r,n)},f.fromJSON=function(e,t){return new f(e,t[0],t[1],t[2])},f.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},f.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},f.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),s=o.redSub(r),a=n.redSub(t),u=i.redMul(s),f=o.redMul(a),l=i.redMul(a),c=s.redMul(o);return this.curve.point(u,f,c,l)},f.prototype._projDbl=function(){var e,t,r,n,i,o,s=this.x.redAdd(this.y).redSqr(),a=this.x.redSqr(),u=this.y.redSqr();if(this.curve.twisted){var f=(n=this.curve._mulA(a)).redAdd(u);this.zOne?(e=s.redSub(a).redSub(u).redMul(f.redSub(this.curve.two)),t=f.redMul(n.redSub(u)),r=f.redSqr().redSub(f).redSub(f)):(i=this.z.redSqr(),o=f.redSub(i).redISub(i),e=s.redSub(a).redISub(u).redMul(o),t=f.redMul(n.redSub(u)),r=f.redMul(o))}else n=a.redAdd(u),i=this.curve._mulC(this.z).redSqr(),o=n.redSub(i).redSub(i),e=this.curve._mulC(s.redISub(n)).redMul(o),t=this.curve._mulC(n).redMul(a.redISub(u)),r=n.redMul(o);return this.curve.point(e,t,r)},f.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},f.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),s=i.redSub(n),a=i.redAdd(n),u=r.redAdd(t),f=o.redMul(s),l=a.redMul(u),c=o.redMul(u),d=s.redMul(a);return this.curve.point(f,l,d,c)},f.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),s=this.y.redMul(e.y),a=this.curve.d.redMul(o).redMul(s),u=i.redSub(a),f=i.redAdd(a),l=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(s),c=n.redMul(u).redMul(l);return this.curve.twisted?(t=n.redMul(f).redMul(s.redSub(this.curve._mulA(o))),r=u.redMul(f)):(t=n.redMul(f).redMul(s.redSub(o)),r=this.curve._mulC(u).redMul(f)),this.curve.point(c,t,r)},f.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},f.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},f.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},f.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},f.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},f.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},f.prototype.getX=function(){return this.normalize(),this.x.fromRed()},f.prototype.getY=function(){return this.normalize(),this.y.fromRed()},f.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},f.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},f.prototype.toP=f.prototype.normalize,f.prototype.mixedAdd=f.prototype.add},36352:function(e,t,r){"use strict";var n=t;n.base=r(71590),n.short=r(220),n.mont=r(7896),n.edwards=r(1749)},7896:function(e,t,r){"use strict";var n=r(28606),i=r(87398),o=r(71590),s=r(69381);function a(e){o.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u(e,t,r){o.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(a,o),e.exports=a,a.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},i(u,o.BasePoint),a.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},a.prototype.point=function(e,t){return new u(this,e,t)},a.prototype.pointFromJSON=function(e){return u.fromJSON(this,e)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(e,t){return new u(e,t[0],t[1]||e.one)},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>
10":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},u.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},u.prototype.add=function(){throw Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),s=i.redMul(n),a=t.z.redMul(o.redAdd(s).redSqr()),u=t.x.redMul(o.redISub(s).redSqr());return this.curve.point(a,u)},u.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=this,o=[];0!==t.cmpn(0);t.iushrn(1))o.push(t.andln(1));for(var s=o.length-1;s>=0;s--)0===o[s]?(r=r.diffAdd(n,i),n=n.dbl()):(n=r.diffAdd(n,i),r=r.dbl());return n},u.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},u.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},220:function(e,t,r){"use strict";var n=r(69381),i=r(28606),o=r(87398),s=r(71590),a=n.assert;function u(e){s.call(this,"short",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}function f(e,t,r,n){s.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function l(e,t,r,n){s.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(t,16),this.y=new i(r,16),this.z=new i(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(u,s),e.exports=u,u.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){if(e.beta)t=new i(e.beta,16).toRed(this.red);else{var t,r,n,o=this._getEndoRoots(this.p);t=(t=0>o[0].cmp(o[1])?o[0]:o[1]).toRed(this.red)}if(e.lambda)r=new i(e.lambda,16);else{var s=this._getEndoRoots(this.n);0===this.g.mul(s[0]).x.cmp(this.g.x.redMul(t))?r=s[0]:(r=s[1],a(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return n=e.basis?e.basis.map(function(e){return{a:new i(e.a,16),b:new i(e.b,16)}}):this._getEndoBasis(r),{beta:t,lambda:r,basis:n}}},u.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),r=new i(2).toRed(t).redInvm(),n=r.redNeg(),o=new i(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(o).fromRed(),n.redSub(o).fromRed()]},u.prototype._getEndoBasis=function(e){for(var t,r,n,o,s,a,u,f,l,c=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=e,h=this.n.clone(),p=new i(1),b=new i(0),g=new i(0),m=new i(1),y=0;0!==d.cmpn(0);){var v=h.div(d);f=h.sub(v.mul(d)),l=g.sub(v.mul(p));var w=m.sub(v.mul(b));if(!n&&0>f.cmp(c))t=u.neg(),r=p,n=f.neg(),o=l;else if(n&&2==++y)break;u=f,h=d,d=f,g=p,p=l,m=b,b=w}s=f.neg(),a=l;var _=n.sqr().add(o.sqr());return s.sqr().add(a.sqr()).cmp(_)>=0&&(s=t,a=r),n.negative&&(n=n.neg(),o=o.neg()),s.negative&&(s=s.neg(),a=a.neg()),[{a:n,b:o},{a:s,b:a}]},u.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),s=i.mul(r.a),a=o.mul(n.a),u=i.mul(r.b),f=o.mul(n.b);return{k1:e.sub(s).sub(a),k2:u.add(f).neg()}},u.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw Error("invalid point");var o=n.fromRed().isOdd();return(t&&!o||!t&&o)&&(n=n.redNeg()),this.point(e,n)},u.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},u.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<e.length;o++){var s=this._endoSplit(t[o]),a=e[o],u=a._getBeta();s.k1.negative&&(s.k1.ineg(),a=a.neg(!0)),s.k2.negative&&(s.k2.ineg(),u=u.neg(!0)),n[2*o]=a,n[2*o+1]=u,i[2*o]=s.k1,i[2*o+1]=s.k2}for(var f=this._wnafMulAdd(1,n,i,2*o,r),l=0;l<2*o;l++)n[l]=null,i[l]=null;return f},o(f,s.BasePoint),u.prototype.point=function(e,t,r){return new f(this,e,t,r)},u.prototype.pointFromJSON=function(e,t){return f.fromJSON(this,e,t)},f.prototype._getBeta=function(){if(this.curve.endo){var e=this.prec
vendor: 8,222 bytes, line 10
10omputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,n=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},f.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},f.fromJSON=function(e,t,r){"string"==typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],r);if(!t[2])return n;function i(t){return e.point(t[0],t[1],r)}var o=t[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(i))}},n},f.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},f.prototype.isInfinity=function(){return this.inf},f.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e)||0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},f.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),s=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,s)},f.prototype.getX=function(){return this.x.fromRed()},f.prototype.getY=function(){return this.y.fromRed()},f.prototype.mul=function(e){return(e=new i(e,16),this.isInfinity())?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},f.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},f.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},f.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},f.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},f.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(l,s.BasePoint),u.prototype.jpoint=function(e,t,r){return new l(this,e,t,r)},l.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},l.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},l.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),s=e.y.redMul(r.redMul(this.z)),a=n.redSub(i),u=o.redSub(s);if(0===a.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=a.redSqr(),l=f.redMul(a),c=n.redMul(f),d=u.redSqr().redIAdd(l).redISub(c).redISub(c),h=u.redMul(c.redISub(d)).redISub(o.redMul(l)),p=this.z.redMul(e.z).redMul(a);return this.curve.jpoint(d,h,p)},l.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),s=r.redSub(n),a=i.redSub(o);if(0===s.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),f=u.redMul(s),l=r.redMul(u),c=a.redSqr().redIAdd(f).redISub(l).redISub(l),d=a.redMul(l.redISub(c)).redISub(i.redMul(f)),h=this.z.redMul(s);return this.curve.jpoint(c,d,h)},l.prototype.dblp=function(e){if(0===e||this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){var t,r=this;for(t=0;t<e;t++)r=r.dbl();return r}var n=this.curve.a,i=this.curve.tinv,o=this.x,s=this.y,a=this.z,u=a.redSqr().redSqr(),f=s.redAdd(s);for(t=0;t<e;t++){var l=o.redSqr(),c=f.redSqr(),d=c.redSqr(),h=l.redAdd(l).redIAdd(l).redIAdd(n.redMul(u)),p=o.redMul(c),b=h.redSqr().redISub(p.redAdd(p)),g=p.redISub(b),m=h.redMul(g);m=m.redIAdd(m).redISub(d);var y=f.redMul(a);t+1<e&&(u=u.redMul(d)),o=b,a=y,f=m}return this.curve.jpoint(o,f.redMul(i),a)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},l.prototype._zeroDbl=function(){if(this.zOne){var e,t,r,n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),s=this.x.redAdd(i).redSqr().redISub(n).redISub(o);s=s.redIAdd(s);var a=n.redAdd(n).redIAdd(n),u=a.redSqr().redISub(s).redISub(s),f=o.redIAdd(o);f=(f=f.redIAdd(f)).redIAdd(f),e=u,t=a.redMul(s.redISub(u)).redISub(f),r=this.y.redAdd(this.y)}else{var l=this.x.redSqr(),c=this.y.redSqr(),d=c.redSqr(),h=this.x.redAdd(c).redSqr().redISub(l).redISub(d);h=h.redIAdd(h);var p=l.redAdd(l).redIAdd(l),b=p.redSqr(),g=d.redIAdd(d);g=(g=g.redIAdd(g)).redIAdd(g),e=b.redISub(h).redISub(h),t=p.redMul(h.redISub(e)).redISub(g),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},l.prototype._threeDbl=function(){if(this.zOne){var e,t,r,n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),s=this.x.redAdd(i).redSqr().redISub(n).redISub(o);s=s.redIAdd(s);var a=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),u=a.redSqr().redISub(s).redISub(s);e=u;var f=o.redIAdd(o);f=(f=f.redIAdd(f)).redIAdd(f),t=a.redMul(s.redISub(u)).redISub(f),r=this.y.redAdd(this.y)}else{var l=this.z.redSqr(),c=this.y.redSqr(),d=this.x.redMul(c),h=this.x.redSub(l).redMul(this.x.redAdd(l));h=h.redAdd(h).redIAdd(h);var p=d.redIAdd(d),b=(p=p.redIAdd(p)).redAdd(p);e=h.redSqr().redISub(b),r=this.y.redAdd(this.z).redSqr().redISub(c).redISub(l);var g=c.redSqr();g=(g=(g=g.redIAdd(g)).redIAdd(g)).redIAdd(g),t=h.redMul(p.redISub(e)).redISub(g)}return this.curve.jpoint(e,t,r)},l.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=t.redSqr(),s=r.redSqr(),a=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(i)),u=t.redAdd(t),f=(u=u.redIAdd(u)).redMul(s),l=a.redSqr().redISub(f.redAdd(f)),c=f.redISub(l),d=s.redSqr();d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var h=a.redMul(c).redISub(d),p=r.redAdd(r).redMul(n);return this.curve.jpoint(l,h,p)},l.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),i=e.redAdd(e).redIAdd(e),o=i.redSqr(),s=this.x.redAdd(t).redSqr().redISub(e).redISub(n),a=(s=(s=(s=s.redIAdd(s)).redAdd(s).redIAdd(s)).redISub(o)).redSqr(),u=n.redIAdd(n);u=(u=(u=u.redIAdd(u)).redIAdd(u)).redIAdd(u);var f=i.redIAdd(s).redSqr().redISub(o).redISub(a).redISub(u),l=t.redMul(f);l=(l=l.redIAdd(l)).redIAdd(l);var c=this.x.redMul(a).redISub(l);c=(c=c.redIAdd(c)).redIAdd(c);var d=this.y.redMul(f.redMul(u.redISub(f)).redISub(s.redMul(a)));d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var h=this.z.redAdd(s).redSqr().redISub(r).redISub(a);return this.curve.jpoint(c,d,h)},l.prototype.mul=function(e,t){return e=new i(e,t),this.curve._wnafMul(this,e)},l.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),i=r.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(n)).cmpn(0)}
vendor: 5,352 bytes, line 10
10,l.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var n=e.clone(),i=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},l.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},99819:function(e,t,r){"use strict";var n,i=t,o=r(83699),s=r(36352),a=r(69381).assert;function u(e){"short"===e.type?this.curve=new s.short(e):"edwards"===e.type?this.curve=new s.edwards(e):this.curve=new s.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function f(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new u(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=u,f("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),f("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),f("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),f("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),f("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),f("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),f("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(12489)}catch(e){n=void 0}f("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"}
vendor: 5,895 bytes, line 10
10,{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},2915:function(e,t,r){"use strict";var n=r(28606),i=r(83356),o=r(69381),s=r(99819),a=r(4807),u=o.assert,f=r(73790),l=r(84376);function c(e){if(!(this instanceof c))return new c(e);"string"==typeof e&&(u(Object.prototype.hasOwnProperty.call(s,e),"Unknown curve "+e),e=s[e]),e instanceof s.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=c,c.prototype.keyPair=function(e){return new f(this,e)},c.prototype.keyFromPrivate=function(e,t){return f.fromPrivate(this,e,t)},c.prototype.keyFromPublic=function(e,t){return f.fromPublic(this,e,t)},c.prototype.genKeyPair=function(e){e||(e={});for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||a(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),o=this.n.sub(new n(2));;){var s=new n(t.generate(r));if(!(s.cmp(o)>0))return s.iaddn(1),this.keyFromPrivate(s)}},c.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return(r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0)?e.sub(this.n):e},c.prototype.sign=function(e,t,r,o){"object"==typeof r&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new n(e,16));for(var s=this.n.byteLength(),a=t.getPrivate().toArray("be",s),u=e.toArray("be",s),f=new i({hash:this.hash,entropy:a,nonce:u,pers:o.pers,persEnc:o.persEnc||"utf8"}),c=this.n.sub(new n(1)),d=0;;d++){var h=o.k?o.k(d):new n(f.generate(this.n.byteLength()));if(!(0>=(h=this._truncateToN(h,!0)).cmpn(1)||h.cmp(c)>=0)){var p=this.g.mul(h);if(!p.isInfinity()){var b=p.getX(),g=b.umod(this.n);if(0!==g.cmpn(0)){var m=h.invm(this.n).mul(g.mul(t.getPrivate()).iadd(e));if(0!==(m=m.umod(this.n)).cmpn(0)){var y=(p.getY().isOdd()?1:0)|(0!==b.cmp(g)?2:0);return o.canonical&&m.cmp(this.nh)>0&&(m=this.n.sub(m),y^=1),new l({r:g,s:m,recoveryParam:y})}}}}}},c.prototype.verify=function(e,t,r,i){e=this._truncateToN(new n(e,16)),r=this.keyFromPublic(r,i);var o,s=(t=new l(t,"hex")).r,a=t.s;if(0>s.cmpn(1)||s.cmp(this.n)>=0||0>a.cmpn(1)||a.cmp(this.n)>=0)return!1;var u=a.invm(this.n),f=u.mul(e).umod(this.n),c=u.mul(s).umod(this.n);return this.curve._maxwellTrick?!(o=this.g.jmulAdd(f,r.getPublic(),c)).isInfinity()&&o.eqXToP(s):!(o=this.g.mulAdd(f,r.getPublic(),c)).isInfinity()&&0===o.getX().umod(this.n).cmp(s)},c.prototype.recoverPubKey=function(e,t,r,i){u((3&r)===r,"The recovery param is more than two bits"),t=new l(t,i);var o=this.n,s=new n(e),a=t.r,f=t.s,c=1&r,d=r>>1;if(a.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw Error("Unable to find sencond key candinate");a=d?this.curve.pointFromX(a.add(this.curve.n),c):this.curve.pointFromX(a,c);var h=t.r.invm(o),p=o.sub(s).mul(h).umod(o),b=f.mul(h).umod(o);return this.g.mulAdd(p,a,b)},c.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new l(t,n)).recoveryParam)return t.recoveryParam;for(var i,o=0;o<4;o++){try{i=this.recoverPubKey(e,t,o)}catch(e){continue}if(i.eq(r))return o}throw Error("Unable to find valid recovery factor")}},73790:function(e,t,r){"use strict";var n=r(28606),i=r(69381).assert;function o(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=o,o.fromPublic=function(e,t,r){return t instanceof o?t:new o(e,{pub:t,pubEnc:r})},o.fromPrivate=function(e,t,r){return t instanceof o?t:new o(e,{priv:t,privEnc:r})},o.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},o.prototype.getPublic=function(e,t){return("string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t)?this.pub.encode(t,e):this.pub},o.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(e,t){this.priv=new n(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(e,t){if(e.x||e.y){"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&i(e.x&&e.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,t)},o.prototype.derive=function(e){return e.validate()||i(e.validate(),"public point not validated"),e.mul(this.priv).getX()},o.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},o.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},o.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},84376:function(e,t,r){"use strict";var n=r(28606),i=r(69381),o=i.assert;function s(e,t){if(e instanceof s)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function a(){this.place=0}function u(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,o=0,s=t.place;o<n;o++,s++)i<<=8,i|=e[s],i>>>=0;return!(i<=127)&&(t.place=s,i)}function f(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function l(e,t){if(t<128){e.push(t);return}var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}e.exports=s,s.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new a;
vendor: 4,450 bytes, line 10
10if(48!==e[r.place++])return!1;var o=u(e,r);if(!1===o||o+r.place!==e.length||2!==e[r.place++])return!1;var s=u(e,r);if(!1===s)return!1;var f=e.slice(r.place,s+r.place);if(r.place+=s,2!==e[r.place++])return!1;var l=u(e,r);if(!1===l||e.length!==l+r.place)return!1;var c=e.slice(r.place,l+r.place);if(0===f[0]){if(!(128&f[1]))return!1;f=f.slice(1)}if(0===c[0]){if(!(128&c[1]))return!1;c=c.slice(1)}return this.r=new n(f),this.s=new n(c),this.recoveryParam=null,!0},s.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=f(t),r=f(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var n=[2];l(n,t.length),(n=n.concat(t)).push(2),l(n,r.length);var o=n.concat(r),s=[48];return l(s,o.length),s=s.concat(o),i.encode(s,e)}},85747:function(e,t,r){"use strict";var n=r(83699),i=r(99819),o=r(69381),s=o.assert,a=o.parseBytes,u=r(4358),f=r(92274);function l(e){if(s("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof l))return new l(e);e=i[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}e.exports=l,l.prototype.sign=function(e,t){e=a(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),s=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),u=n.add(s).umod(this.curve.n);return this.makeSignature({R:i,S:u,Rencoded:o})},l.prototype.verify=function(e,t,r){e=a(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},l.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return o.intFromLE(e.digest()).umod(this.curve.n)},l.prototype.keyFromPublic=function(e){return u.fromPublic(this,e)},l.prototype.keyFromSecret=function(e){return u.fromSecret(this,e)},l.prototype.makeSignature=function(e){return e instanceof f?e:new f(this,e)},l.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},l.prototype.decodePoint=function(e){var t=(e=o.parseBytes(e)).length-1,r=e.slice(0,t).concat(-129&e[t]),n=(128&e[t])!=0,i=o.intFromLE(r);return this.curve.pointFromY(i,n)},l.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},l.prototype.decodeInt=function(e){return o.intFromLE(e)},l.prototype.isPoint=function(e){return e instanceof this.pointClass}},4358:function(e,t,r){"use strict";var n=r(69381),i=n.assert,o=n.parseBytes,s=n.cachedProperty;function a(e,t){this.eddsa=e,this._secret=o(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=o(t.pub)}a.fromPublic=function(e,t){return t instanceof a?t:new a(e,{pub:t})},a.fromSecret=function(e,t){return t instanceof a?t:new a(e,{secret:t})},a.prototype.secret=function(){return this._secret},s(a,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),s(a,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),s(a,"privBytes",function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,n=t.slice(0,e.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n}),s(a,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),s(a,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),s(a,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),a.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},a.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},a.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),e)},a.prototype.getPublic=function(e){return n.encode(this.pubBytes(),e)},e.exports=a},92274:function(e,t,r){"use strict";var n=r(28606),i=r(69381),o=i.assert,s=i.cachedProperty,a=i.parseBytes;function u(e,t){this.eddsa=e,"object"!=typeof t&&(t=a(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),o(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof n&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}s(u,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),s(u,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}
10),s(u,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),s(u,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),u.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},u.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},e.exports=u},12489:function(e
vendor: 18,406 bytes, line 10
10){e.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0
vendor: 7,734 bytes, line 10
10a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},
1069381:function(e,t,r){"use strict";var n=t,i=r(28606),o=r(71974),s=r(40697);function a(e,t,r){var n=Array(Math.max(e.bitLength(),r)+1);for(s=0;s<n.length;s+=1)n[s]=0;var i=1<<t+1,o=e.clone();for(s=0;s<n.length;s++){var s,a,u=o.andln(i-1);o.isOdd()?(a=u>(i>>1)-1?(i>>1)-u:u,o.isubn(a)):a=0,n[s]=a,o.iushrn(1)}return n}function u(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n=0,i=0;e.cmpn(-n)>0||t.cmpn(-i)>0;){var o,s,a,u=e.andln(3)+n&3,f=t.andln(3)+i&3;3===u&&(u=-1),3===f&&(f=-1),s=(1&u)==0?0:(3==(o=e.andln(7)+n&7)||5===o)&&2===f?-u:u,r[0].push(s),a=(1&f)==0?0:(3==(o=t.andln(7)+i&7)||5===o)&&2===u?-f:f,r[1].push(a),2*n===s+1&&(n=1-n),2*i===a+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r}function f(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}}function l(e){return"string"==typeof e?n.toArray(e,"hex"):e}function c(e){return new i(e,"hex","le")}n.assert=o,n.toArray=s.toArray,n.zero2=s.zero2,n.toHex=s.toHex,n.encode=s.encode,n.getNAF=a,n.getJSF=u,n.cachedProperty=f,n.parseBytes=l,n.intFromLE=c},28606:function(e,t,r){!function(e,t){"use strict";function n(e,t){if(!e)throw Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&(("le"===t||"be"===t)&&(r=t,t=10),this._init(e||0,t||10,r||"be"))}
vendor: 4,182 bytes, line 10
10"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{f="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(85568).Buffer}catch(e){}function s(e,t){var r=e.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function a(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function u(e,t,r,n){for(var i=0,o=Math.min(e.length,r),s=t;s<o;s++){var a=e.charCodeAt(s)-48;i*=n,a>=49?i+=a-49+10:a>=17?i+=a-17+10:i+=a}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return 0>e.cmp(t)?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,r):(this._parseBase(e,t,i),"le"===r&&this._initArray(this.toArray(),t,r)))},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var i,o,s=0;s<this.length;s++)this.words[s]=0;var a=0;if("be"===r)for(s=e.length-1,i=0;s>=0;s-=3)o=e[s]|e[s-1]<<8|e[s-2]<<16,this.words[i]|=o<<a&67108863,this.words[i+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);else if("le"===r)for(s=0,i=0;s<e.length;s+=3)o=e[s]|e[s+1]<<8|e[s+2]<<16,this.words[i]|=o<<a&67108863,this.words[i+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);return this.strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var n,i=0;i<this.length;i++)this.words[i]=0;var o=0,s=0;if("be"===r)for(i=e.length-1;i>=t;i-=2)n=a(e,t,i)<<o,this.words[s]|=67108863&n,o>=18?(o-=18,s+=1,this.words[s]|=n>>>26):o+=8;else for(i=(e.length-t)%2==0?t+1:t;i<e.length;i+=2)n=a(e,t,i)<<o,this.words[s]|=67108863&n,o>=18?(o-=18,s+=1,this.words[s]|=n>>>26):o+=8;this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,s=o%n,a=Math.min(o,o-s)+r,f=0,l=r;l<a;l+=n)f=u(e,l,l+n,t),this.imuln(i),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f);if(0!==s){var c=1;for(f=u(e,l,e.length,t),l=0;l<s;l++)c*=t;this.imuln(c),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f)}this.strip()},o.prototype.copy=function(e){e.words=Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var f,l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,143489
vendor: 4,345 bytes, line 10
1007,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e){for(var t=Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=(e.words[n]&1<<i)>>>i}return t}function p(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],s=i*o,a=67108863&s,u=s/67108864|0;r.words[0]=a;for(var f=1;f<n;f++){for(var l=u>>>26,c=67108863&u,d=Math.min(f,t.length-1),h=Math.max(0,f-e.length+1);h<=d;h++){var p=f-h|0;l+=(s=(i=0|e.words[p])*(o=0|t.words[h])+c)/67108864|0,c=67108863&s}r.words[f]=0|c,u=0|l}return 0!==u?r.words[f]=0|u:r.length--,r.strip()}o.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,i=0,o=0,s=0;s<this.length;s++){var a=this.words[s],u=((a<<i|o)&16777215).toString(16);r=0!=(o=a>>>24-i&16777215)||s!==this.length-1?l[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,s--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var f=c[e],h=d[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modn(h).toString(e);r=(p=p.idivn(h)).isZero()?b+r:l[f-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n(void 0!==f),this.toArrayLike(f,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var i,o,s=this.byteLength(),a=r||Math.max(1,s);n(s<=a,"byte array longer than desired length"),n(a>0,"Requested array length <= 0"),this.strip();var u="le"===t,f=new e(a),l=this.clone();if(u){for(o=0;!l.isZero();o++)i=l.andln(255),l.iushrn(8),f[o]=i;for(;o<a;o++)f[o]=0}else{for(o=0;o<a-s;o++)f[o]=0;for(o=0;!l.isZero();o++)i=l.andln(255),l.iushrn(8),f[a-o-1]=i}return f},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},o.prototype.ior=function(e){return n((this.negative|e.negative)==0),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this.strip()},o.prototype.iand=function(e){return n((this.negative|e.negative)==0),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,n=0;n<r.length;
vendor: 10,171 bytes, line 10
10n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},o.prototype.ixor=function(e){return n((this.negative|e.negative)==0),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<<i:this.words[r]=this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(e){if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(t=this,r=e):(t=e,r=this);for(var o=0,s=0;s<r.length;s++)o=(n=(0|t.words[s])-(0|r.words[s])+o)>>26,this.words[s]=67108863&n;for(;0!==o&&s<t.length;s++)o=(n=(0|t.words[s])+o)>>26,this.words[s]=67108863&n;if(0===o&&s<t.length&&t!==this)for(;s<t.length;s++)this.words[s]=t.words[s];return this.length=Math.max(this.length,s),t!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var b=function(e,t,r){var n,i,o,s=e.words,a=t.words,u=r.words,f=0,l=0|s[0],c=8191&l,d=l>>>13,h=0|s[1],p=8191&h,b=h>>>13,g=0|s[2],m=8191&g,y=g>>>13,v=0|s[3],w=8191&v,_=v>>>13,S=0|s[4],E=8191&S,A=S>>>13,R=0|s[5],x=8191&R,M=R>>>13,k=0|s[6],O=8191&k,T=k>>>13,I=0|s[7],P=8191&I,L=I>>>13,B=0|s[8],N=8191&B,C=B>>>13,j=0|s[9],D=8191&j,F=j>>>13,U=0|a[0],q=8191&U,$=U>>>13,z=0|a[1],H=8191&z,W=z>>>13,V=0|a[2],G=8191&V,Z=V>>>13,K=0|a[3],J=8191&K,X=K>>>13,Y=0|a[4],Q=8191&Y,ee=Y>>>13,et=0|a[5],er=8191&et,en=et>>>13,ei=0|a[6],eo=8191&ei,es=ei>>>13,ea=0|a[7],eu=8191&ea,ef=ea>>>13,el=0|a[8],ec=8191&el,ed=el>>>13,eh=0|a[9],ep=8191&eh,eb=eh>>>13;r.negative=e.negative^t.negative,r.length=19;var eg=(f+(n=Math.imul(c,q))|0)+((8191&(i=(i=Math.imul(c,$))+Math.imul(d,q)|0))<<13)|0;f=((o=Math.imul(d,$))+(i>>>13)|0)+(eg>>>26)|0,eg&=67108863,n=Math.imul(p,q),i=(i=Math.imul(p,$))+Math.imul(b,q)|0,o=Math.imul(b,$);var em=(f+(n=n+Math.imul(c,H)|0)|0)+((8191&(i=(i=i+Math.imul(c,W)|0)+Math.imul(d,H)|0))<<13)|0;f=((o=o+Math.imul(d,W)|0)+(i>>>13)|0)+(em>>>26)|0,em&=67108863,n=Math.imul(m,q),i=(i=Math.imul(m,$))+Math.imul(y,q)|0,o=Math.imul(y,$),n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(b,H)|0,o=o+Math.imul(b,W)|0;var ey=(f+(n=n+Math.imul(c,G)|0)|0)+((8191&(i=(i=i+Math.imul(c,Z)|0)+Math.imul(d,G)|0))<<13)|0;f=((o=o+Math.imul(d,Z)|0)+(i>>>13)|0)+(ey>>>26)|0,ey&=67108863,n=Math.imul(w,q),i=(i=Math.imul(w,$))+Math.imul(_,q)|0,o=Math.imul(_,$),n=n+Math.imul(m,H)|0,i=(i=i+Math.imul(m,W)|0)+Math.imul(y,H)|0,o=o+Math.imul(y,W)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(b,G)|0,o=o+Math.imul(b,Z)|0;var ev=(f+(n=n+Math.imul(c,J)|0)|0)+((8191&(i=(i=i+Math.imul(c,X)|0)+Math.imul(d,J)|0))<<13)|0;f=((o=o+Math.imul(d,X)|0)+(i>>>13)|0)+(ev>>>26)|0,ev&=67108863,n=Math.imul(E,q),i=(i=Math.imul(E,$))+Math.imul(A,q)|0,o=Math.imul(A,$),n=n+Math.imul(w,H)|0,i=(i=i+Math.imul(w,W)|0)+Math.imul(_,H)|0,o=o+Math.imul(_,W)|0,n=n+Math.imul(m,G)|0,i=(i=i+Math.imul(m,Z)|0)+Math.imul(y,G)|0,o=o+Math.imul(y,Z)|0,n=n+Math.imul(p,J)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(b,J)|0,o=o+Math.imul(b,X)|0;var ew=(f+(n=n+Math.imul(c,Q)|0)|0)+((8191&(i=(i=i+Math.imul(c,ee)|0)+Math.imul(d,Q)|0))<<13)|0;f=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(ew>>>26)|0,ew&=67108863,n=Math.imul(x,q),i=(i=Math.imul(x,$))+Math.imul(M,q)|0,o=Math.imul(M,$),n=n+Math.imul(E,H)|0,i=(i=i+Math.imul(E,W)|0)+Math.imul(A,H)|0,o=o+Math.imul(A,W)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,Z)|0,n=n+Math.imul(m,J)|0,i=(i=i+Math.imul(m,X)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,X)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,ee)|0;var e_=(f+(n=n+Math.imul(c,er)|0)|0)+((8191&(i=(i=i+Math.imul(c,en)|0)+Math.imul(d,er)|0))<<13)|0;f=((o=o+Math.imul(d,en)|0)+(i>>>13)|0)+(e_>>>26)|0,e_&=67108863,n=Math.imul(O,q),i=(i=Math.imul(O,$))+Math.imul(T,q)|0,o=Math.imul(T,$),n=n+Math.imul(x,H)|0,i=(i=i+Math.imul(x,W)|0)+Math.imul(M,H)|0,o=o+Math.imul(M,W)|0,n=n+Math.imul(E,G)|0,i=(i=i+Math.imul(E,Z)|0)+Math.imul(A,G)|0,o=o+Math.imul(A,Z)|0,n=n+Math.imul(w,J)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,X)|0,n=n+Math.imul(m,Q)|0,i=(i=i+Math.imul(m,ee)|0)+Math.imul(y,Q)|0,o=o+Math.imul(y,ee)|0,n=n+Math.imul(p,er)|0,i=(i=i+Math.imul(p,en)|0)+Math.imul(b,er)|0,o=o+Math.imul(b,en)|0;var eS=(f+(n=n+Math.imul(c,eo)|0)|0)+((8191&(i=(i=i+Math.imul(c,es)|0)+Math.imul(d,eo)|0))<<13)|0;f=((o=o+Math.imul(d,es)|0)+(i>>>13)|0)+(eS>>>26)|0,eS&=67108863,n=Math.imul(P,q),i=(i=Math.imul(P,$))+Math.imul(L,q)|0,o=Math.imul(L,$),n=n+Math.imul(O,H)|0,i=(i=i+Math.imul(O,W)|0)+Math.imul(T,H)|0,o=o+Math.imul(T,W)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,Z)|0)+Math.imul(M,G)|0,o=o+Math.imul(M,Z)|0,n=n+Math.imul(E,J)|0,i=(i=i+Math.imul(E,X)|0)+Math.imul(A,J)|0,o=o+Math.imul(A,X)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(m,er)|0,i=(i=i+Math.imul(m,en)|0)+Math.imul(y,er)|0,o=o+Math.imul(y,en)|0,n=n+Math.imul(p,eo)|0,i=(i=i+Math.imul(p,es)|0)+Math.imul(b,eo)|0,o=o+Math.imul(b,es)|0;var eE=(f+(n=n+Math.imul(c,eu)|0)|0)+((8191&(i=(i=i+Math.imul(c,ef)|0)+Math.imul(d,eu)|0))<<13)|0;f=((o=o+Math.imul(d,ef)|0)+(i>>>13)|0)+(eE>>>26)|0,eE&=67108863,n=Math.imul(N,q),i=(i=Math.imul(N,$))+Math.imul(C,q)|0,o=Math.imul(C,$),n=n+Math.imul(P,H)|0,i=(i=i+Math.imul(P,W)|0)+Math.imul(L,H)|0,o=o+Math.imul(L,W)|0,n=n+Math.imul(O,G)|0,i=(i=i+Math.imul(O,Z)|0)+Math.imul(T,G)|0,o=o+Math.imul(T,Z)|0,n=n+Math.imul(x,J)|0,i=(i=i+Math.imul(x,X)|0)+Math.imul(M,J)|0,o=o+Math.imul(M,X)|0,n=n+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,ee)|0,n=n+Math.imul(w,er)|0,i=(i=i+Math.imul(w,en)|0)+Math.imul(_,er)|0,o=o+Math.imul(_,en)|0,n=n+Math.imul(m,eo)|0,i=(i=i+Math.imul(m,es)|0)+Math.imul(y,eo)|0,o=o+Math.imul(y,es)|0,n=n+Math.imul(p,eu)|0,i=(i=i+Math.imul(p,ef)|0)+Math.imul(b,eu)|0,o=o+Math.imul(b,ef)|0;var eA=(f+(n=n+Math.imul(c,ec)|0)|0)+((8191&(i=(i=i+Math.imul(c,ed)|0)+Math.imul(d,ec)|0))<<13)|0;f=((o=o+Math.imul(d,ed)|0)+(i>>>13)|0)+(eA>>>26)|0,eA&=67108863,n=Math.imul(D,q),i=(i=Math.imul(D,$))+Math.imul(F,q)|0,o=Math.imul(F,$),n=n+Math.imul(N,H)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(C,H)|0,o=o+Math.imul(C,W)|0,n=n+Math.imul(P,G)|0,i=(i=i+Math.imul(P,Z)|0)+Math.imul(L,G)|0,o=o+Math.imul(L,Z)|0,n=n+Math.imul(O,J)|0,i=(i=i+Math.imul(O,X)|0)+Math.imul(T,J)|0,o=o+Math.imul(T,X)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(E,er)|0,i=(i=i+Math.imul(E,en)|0)+Math.imul(A,er)|0,o=o+Math.imul(A,en)|0,n=n+Math.imul(w,eo)|0,i=(i=i+Math.imul(w,es)|0)+Math.imul(_,eo)|0,o=o+Math.imul(_,es)|0,n=n+Math.imul(m,eu)|0,i=(i=i+Math.imul(m,ef)|0)+Math.imul(y,eu)|0,o=o+Math.imul(y,ef)|0,n=n+Math.imul(p,ec)|0,i=(i=i+Math.imul(p,ed)|0)+Math.imul(b,ec)|0,o=o+Math.imul(b,ed)|0;var eR=(f+(n=n+Math.imul(c,ep)|0)|0)+((8191&(i=(i=i+Math.imul(c,eb)|0)+Math.imul(d,ep)|0))<<13)|0;f=((o=o+Math.imul(d,eb)|0)+(i>>>13)|0)+(eR>>>26)|0,eR&=67108863,n=Math.imul(D,H),i=(i=Math.imul(D,W))+Math.imul(F,H)|0,o=Math.imul(F,W),n=n+Math.imul(N,G)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(C,G)|0,o=o+Math.imul(C,Z)|0,n=n+Math.imul(P,J)|0,i=(i=i+Math.imul(P,X)|0)+Math.imul(L,J)|0,o=o+Math.imul(L,X)|0,n=n+Math.imul(O,Q)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(T,Q)|0,o=o+Math.imul(T,ee)|0,n=n+Math.imul(x,er)|0,i=(i=i+Math.imul(x,en)|0)+Math.imul(M,er)|0,o=o+Math.imul(M,en)|0,n=n+Math.imul(E,eo)|0,i=(i=i+Math.imul(E,es)|0)+Math.imul(A,eo)|0,o=o+Math.imul(A,es)|0,n=n+Math.imul(w,eu)|0,i=(i=i+Math.imul(w,ef)|0)+Math.imul(_,eu)|0,o=o+Math.imul(_,ef)|0,n=n+Math.imul(m,ec)|0,i=(i=i+Math.imul(m,ed)|0)+Math.imul(y,ec)|0,o=o+Math.imul(y,ed)|0;var ex=(f+(n=n+Math.imul(p,ep)|0)|0)+((8191&(i=(i=i+Math.imul(p,eb)|0)+Math.imul(b,ep)|0))<<13)|0;f=((o=o+Math.imul(b,eb)|0)+(i>>>13)|0)+(ex>>>26)|0,ex&=67108863,n=Math.imul(D,G),i=(i=Math.imul(D,Z))+Math.imul(F,G)|0,o=Math.imul(F,Z),n=n+Math.imul(N,J)|0,i=(i=i+Math.imul(N,X)|0)+Math.imul(C,J)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(L,Q)|0,o=o+Math.imul(L,ee)|0,n=n+Math.imul(O,er)|0,i=(i=i+Math.imul(O,en)|0)+Math.imul(T,er)|0,o=o+Math.imul(T,en)|0,n=n+Math.imul(x,eo)|0,i=(i=i+Math.imul(x,es)|0)+Math.imul(M,eo)|0,o=o+Math.imul(M,es)|0,n=n+Math.imul(E,eu)|0,i=(i=i+Math.imul(E,ef)|0)+Math.imul(A,eu)|0,o=o+Math.imul(A,ef)|0,n=n+Math.imul(w,ec)|0,i=(i=i+Math.imul(w,ed)|0)+Math.imul(_,ec)|0,o=o+Math.imul(_,ed)|0;var eM=(f+(n=n+Math.imul(m,ep)|0)|0)+((8191&(i=(i=i+Math.imul(m,eb)|0)+Math.imul(y,ep)|0))<<13)|0;f=((o=o+Math.imul(y,eb)|0)+(i>>>13)|0)+(eM>>>26)|0,eM&=67108863,n=Math.imul(D,J),i=(i=Math.imul(D,X))+Math.imul(F,J)|0,o=Math.imul(F,X
vendor: 20,073 bytes, line 10
10),n=n+Math.imul(N,Q)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(C,Q)|0,o=o+Math.imul(C,ee)|0,n=n+Math.imul(P,er)|0,i=(i=i+Math.imul(P,en)|0)+Math.imul(L,er)|0,o=o+Math.imul(L,en)|0,n=n+Math.imul(O,eo)|0,i=(i=i+Math.imul(O,es)|0)+Math.imul(T,eo)|0,o=o+Math.imul(T,es)|0,n=n+Math.imul(x,eu)|0,i=(i=i+Math.imul(x,ef)|0)+Math.imul(M,eu)|0,o=o+Math.imul(M,ef)|0,n=n+Math.imul(E,ec)|0,i=(i=i+Math.imul(E,ed)|0)+Math.imul(A,ec)|0,o=o+Math.imul(A,ed)|0;var ek=(f+(n=n+Math.imul(w,ep)|0)|0)+((8191&(i=(i=i+Math.imul(w,eb)|0)+Math.imul(_,ep)|0))<<13)|0;f=((o=o+Math.imul(_,eb)|0)+(i>>>13)|0)+(ek>>>26)|0,ek&=67108863,n=Math.imul(D,Q),i=(i=Math.imul(D,ee))+Math.imul(F,Q)|0,o=Math.imul(F,ee),n=n+Math.imul(N,er)|0,i=(i=i+Math.imul(N,en)|0)+Math.imul(C,er)|0,o=o+Math.imul(C,en)|0,n=n+Math.imul(P,eo)|0,i=(i=i+Math.imul(P,es)|0)+Math.imul(L,eo)|0,o=o+Math.imul(L,es)|0,n=n+Math.imul(O,eu)|0,i=(i=i+Math.imul(O,ef)|0)+Math.imul(T,eu)|0,o=o+Math.imul(T,ef)|0,n=n+Math.imul(x,ec)|0,i=(i=i+Math.imul(x,ed)|0)+Math.imul(M,ec)|0,o=o+Math.imul(M,ed)|0;var eO=(f+(n=n+Math.imul(E,ep)|0)|0)+((8191&(i=(i=i+Math.imul(E,eb)|0)+Math.imul(A,ep)|0))<<13)|0;f=((o=o+Math.imul(A,eb)|0)+(i>>>13)|0)+(eO>>>26)|0,eO&=67108863,n=Math.imul(D,er),i=(i=Math.imul(D,en))+Math.imul(F,er)|0,o=Math.imul(F,en),n=n+Math.imul(N,eo)|0,i=(i=i+Math.imul(N,es)|0)+Math.imul(C,eo)|0,o=o+Math.imul(C,es)|0,n=n+Math.imul(P,eu)|0,i=(i=i+Math.imul(P,ef)|0)+Math.imul(L,eu)|0,o=o+Math.imul(L,ef)|0,n=n+Math.imul(O,ec)|0,i=(i=i+Math.imul(O,ed)|0)+Math.imul(T,ec)|0,o=o+Math.imul(T,ed)|0;var eT=(f+(n=n+Math.imul(x,ep)|0)|0)+((8191&(i=(i=i+Math.imul(x,eb)|0)+Math.imul(M,ep)|0))<<13)|0;f=((o=o+Math.imul(M,eb)|0)+(i>>>13)|0)+(eT>>>26)|0,eT&=67108863,n=Math.imul(D,eo),i=(i=Math.imul(D,es))+Math.imul(F,eo)|0,o=Math.imul(F,es),n=n+Math.imul(N,eu)|0,i=(i=i+Math.imul(N,ef)|0)+Math.imul(C,eu)|0,o=o+Math.imul(C,ef)|0,n=n+Math.imul(P,ec)|0,i=(i=i+Math.imul(P,ed)|0)+Math.imul(L,ec)|0,o=o+Math.imul(L,ed)|0;var eI=(f+(n=n+Math.imul(O,ep)|0)|0)+((8191&(i=(i=i+Math.imul(O,eb)|0)+Math.imul(T,ep)|0))<<13)|0;f=((o=o+Math.imul(T,eb)|0)+(i>>>13)|0)+(eI>>>26)|0,eI&=67108863,n=Math.imul(D,eu),i=(i=Math.imul(D,ef))+Math.imul(F,eu)|0,o=Math.imul(F,ef),n=n+Math.imul(N,ec)|0,i=(i=i+Math.imul(N,ed)|0)+Math.imul(C,ec)|0,o=o+Math.imul(C,ed)|0;var eP=(f+(n=n+Math.imul(P,ep)|0)|0)+((8191&(i=(i=i+Math.imul(P,eb)|0)+Math.imul(L,ep)|0))<<13)|0;f=((o=o+Math.imul(L,eb)|0)+(i>>>13)|0)+(eP>>>26)|0,eP&=67108863,n=Math.imul(D,ec),i=(i=Math.imul(D,ed))+Math.imul(F,ec)|0,o=Math.imul(F,ed);var eL=(f+(n=n+Math.imul(N,ep)|0)|0)+((8191&(i=(i=i+Math.imul(N,eb)|0)+Math.imul(C,ep)|0))<<13)|0;f=((o=o+Math.imul(C,eb)|0)+(i>>>13)|0)+(eL>>>26)|0,eL&=67108863;var eB=(f+(n=Math.imul(D,ep))|0)+((8191&(i=(i=Math.imul(D,eb))+Math.imul(F,ep)|0))<<13)|0;return f=((o=Math.imul(F,eb))+(i>>>13)|0)+(eB>>>26)|0,eB&=67108863,u[0]=eg,u[1]=em,u[2]=ey,u[3]=ev,u[4]=ew,u[5]=e_,u[6]=eS,u[7]=eE,u[8]=eA,u[9]=eR,u[10]=ex,u[11]=eM,u[12]=ek,u[13]=eO,u[14]=eT,u[15]=eI,u[16]=eP,u[17]=eL,u[18]=eB,0!==f&&(u[19]=f,r.length++),r};function g(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var s=i;i=0;for(var a=67108863&n,u=Math.min(o,t.length-1),f=Math.max(0,o-e.length+1);f<=u;f++){var l=o-f,c=(0|e.words[l])*(0|t.words[f]),d=67108863&c;s=s+(c/67108864|0)|0,a=67108863&(d=d+a|0),i+=(s=s+(d>>>26)|0)>>>26,s&=67108863}r.words[o]=a,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}function m(e,t,r){return new y().mulp(e,t,r)}function y(e,t){this.x=e,this.y=t}Math.imul||(b=p),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?b(this,e,t):r<63?p(this,e,t):r<1024?g(this,e,t):m(this,e,t)},y.prototype.makeRBT=function(e){for(var t=Array(e),r=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},y.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},y.prototype.permute=function(e,t,r,n,i,o){for(var s=0;s<o;s++)n[s]=t[e[s]],i[s]=r[e[s]]},y.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var s=1;s<i;s<<=1)for(var a=s<<1,u=Math.cos(2*Math.PI/a),f=Math.sin(2*Math.PI/a),l=0;l<i;l+=a)for(var c=u,d=f,h=0;h<s;h++){var p=r[l+h],b=n[l+h],g=r[l+h+s],m=n[l+h+s],y=c*g-d*m;m=c*m+d*g,g=y,r[l+h]=p+g,n[l+h]=b+m,r[l+h+s]=p-g,n[l+h+s]=b-m,h!==a&&(y=u*c-f*d,d=u*d+f*c,c=y)}},y.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},y.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},y.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},y.prototype.convert13b=function(e,t,r,i){for(var o=0,s=0;s<t;s++)o+=0|e[s],r[2*s]=8191&o,o>>>=13,r[2*s+1]=8191&o,o>>>=13;for(s=2*t;s<i;++s)r[s]=0;n(0===o),n((-8192&o)==0)},y.prototype.stub=function(e){for(var t=Array(e),r=0;r<e;r++)t[r]=0;return t},y.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),s=Array(n),a=Array(n),u=Array(n),f=Array(n),l=Array(n),c=Array(n),d=r.words;d.length=n,this.convert13b(e.words,e.length,s,n),this.convert13b(t.words,t.length,f,n),this.transform(s,o,a,u,n,i),this.transform(f,o,l,c,n,i);for(var h=0;h<n;h++){var p=a[h]*l[h]-u[h]*c[h];u[h]=a[h]*c[h]+u[h]*l[h],a[h]=p}return this.conjugate(a,u,n),this.transform(a,u,d,o,n,i),this.conjugate(d,o,n),this.normalize13b(d,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r.strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=Array(this.length+e.length),m(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){n("number"==typeof e),n(e<67108864);for(var t=0,r=0;r<this.length;r++){var i=(0|this.words[r])*e,o=(67108863&i)+(67108863&t);t>>=26,t+=(i/67108864|0)+(o>>>26),this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=h(e);if(0===t.length)return new o(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(t=0;t<this.length;t++){var a=this.words[t]&o,u=(0|this.words[t])-a<<r;this.words[t]=u|s,s=a>>>26-r}s&&(this.words[t]=s,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,r){n("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var i,o=e%26,s=Math.min((e-o)/26,this.length),a=67108863^67108863>>>o<<o,u=r;if(i-=s,i=Math.max(0,i),u){for(var f=0;f<s;f++)u.words[f]=this.words[f];u.length=s}if(0===s);else if(this.length>s)for(this.length-=s,f=0;f<this.length;f++)this.words[f]=this.words[f+s];else this.words[0]=0,this.length=1;var l=0;for(f=this.length-1;f>=0&&(0!==l||f>=i);f--){var c=0|this.words[f];this.words[f]=l<<26-o|c>>>o,l=c&a}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return(n("number"==typeof e),n(e<67108864),e<0)?this.isubn(-e):0!==this.negative?(1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(e),this.negative=1),this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,r){var i,o,s=e.length+r;this._expand(s);var a=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+a;var u=(0|e.words[i])*t;o-=67108863&u,a=(o>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)a=(o=(0|this.words[i+r])+a)>>26,this.words[i+r]=67108863&o;if(0===a)return this.strip();for(n(-1===a),a=0,i=0;i<this.length;i++)a=(o=-(0|this.words[i])+a)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r,n=this.length-e.length,i=this.clone(),s=e,a=0|s.words[s.length-1];0!=(n=26-this._countBits(a))&&(s=s.ushln(n),i.iushln(n),a=0|s.words[s.length-1]);var u=i.length-s.length;if("mod"!==t){(r=new o(null)).length=u+1,r.words=Array(r.length);for(var f=0;f<r.length;f++)r.words[f]=0}var l=i.clone()._ishlnsubmul(s,1,u);0===l.negative&&(i=l,r&&(r.words[u]=1));for(var c=u-1;c>=0;c--){var d=(0|i.words[s.length+c])*67108864+(0|i.words[s.length+c-1]);for(d=Math.min(d/a|0,67108863),i._ishlnsubmul(s,d,c);0!==i.negative;)d--,i.negative=0,i._ishlnsubmul(s,1,c),i.isZero()||(i.negative^=1);r&&(r.words[c]=d)}return r&&r.strip(),i.strip(),"div"!==t&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},o.prototype.divmod=function(e,t,r){var i,s,a;return(n(!e.isZero()),this.isZero())?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(i=a.div.neg()),"div"!==t&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:i,mod:s}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(i=a.div.neg()),{div:i,mod:a.mod}):(this.negative&e.negative)!=0?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(e)),{div:a.div,mod:s}):e.length>this.length||0>this.cmp(e)?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t)},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=67108863);for(var t=67108864%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},o.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),s=new o(0),a=new o(0),u=new o(1),f=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++f;for(var l=r.clone(),c=t.clone();!t.isZero();){for(var d=0,h=1;(t.words[0]&h)==0&&d<26;++d,h<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||s.isOdd())&&(i.iadd(l),s.isub(c)),i.iushrn(1),s.iushrn(1);for(var p=0,b=1;(r.words[0]&b)==0&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||u.isOdd())&&(a.iadd(l),u.isub(c)),a.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(a),s.isub(u)):(r.isub(t),a.isub(i),u.isub(s))}return{a:a,b:u,gcd:r.iushln(f)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,r=this,i=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var s=new o(1),a=new o(0),u=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var f=0,l=1;(r.words[0]&l)==0&&f<26;++f,l<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);for(var c=0,d=1;(i.words[0]&d)==0&&c<26;++c,d<<=1);if(c>0)for(i.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);r.cmp(i)>=0?(r.isub(i),s.isub(a)):(i.isub(r),a.isub(s))}return 0>(t=0===r.cmpn(1)?s:a).cmpn(0)&&t.iadd(e),t},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return(1&this.words[0])==0},o.prototype.isOdd=function(){return(1&this.words[0])==1},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,s=r;0!==o&&s<this.length;s++){var a=0|this.words[s];a+=o,o=a>>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return -1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return -1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return -1===this.cmpn(e)},o.prototype.lt=function(e){return -1===this.cmp(e)},o.prototype.lten=function(e){return 0>=this.cmpn(e)},o.prototype.lte=function(e){return 0>=this.cmp(e)},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new R(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function w(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function S(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function E(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function R(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function x(e){R.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var e=new o(null);return e.words=Array(Math.ceil(this.n/13)),e},w.prototype.ireduce=function(e){var t,r=e;do this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},w.prototype.split=function(e,t){e.iushrn(this.n,0,t)},w.prototype.imulK=function(e){return e.imul(this.k)},i(_,w),_.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i<n;i++)t.words[i]=e.words[i];if(t.length=n,e.length<=9){e.words[0]=0,e.length=1;return}var o=e.words[9];for(i=10,t.words[t.length++]=o&r;i<e.length;i++){var s=0|e.words[i];e.words[i-10]=(s&r)<<4|o>>>22,o=s}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},_.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(S,w),i(E,w),i(A,w),A.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;
10r++){var n=(0|e.words[r])*19+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){var t;if(v[e])return v[e];if("k256"===e)t=new _;else if("p224"===e)t=new S;else if("p192"===e)t=new E;else if("p25519"===e)t=new A;else throw Error("Unknown prime "+e);return v[e]=t,t},R.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},R.prototype._verify2=function(e,t){n((e.negative|t.negative)==0,"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},R.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},R.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},R.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},R.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},R.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},R.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},R.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},R.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},R.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},R.prototype.isqr=function(e){return this.imul(e,e.clone())},R.prototype.sqr=function(e){return this.mul(e,e)},R.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),s=0;!i.isZero()&&0===i.andln(1);)s++,i.iushrn(1);n(!i.isZero());var a=new o(1).toRed(this),u=a.redNeg(),f=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,f).cmp(u);)l.redIAdd(u);for(var c=this.pow(l,i),d=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=s;0!==h.cmp(a);){for(var b=h,g=0;0!==b.cmp(a);g++)b=b.redSqr();n(g<p);var m=this.pow(c,new o(1).iushln(p-g-1));d=d.redMul(m),c=m.redSqr(),h=h.redMul(c),p=g}return d},R.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},R.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=4,n=Array(16);n[0]=new o(1).toRed(this),n[1]=e;for(var i=2;i<n.length;i++)n[i]=this.mul(n[i-1],e);var s=n[0],a=0,u=0,f=t.bitLength()%26;for(0===f&&(f=26),i=t.length-1;i>=0;i--){for(var l=t.words[i],c=f-1;c>=0;c--){var d=l>>c&1;if(s!==n[0]&&(s=this.sqr(s)),0===d&&0===a){u=0;continue}a<<=1,a|=d,(++u===r||0===i&&0===c)&&(s=this.mul(s,n[a]),u=0,a=0)}f=26}return s},R.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},R.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new x(e)},i(x,R),x.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},x.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},x.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):0>i.cmpn(0)&&(s=i.iadd(this.m)),s._forceRed(this)},x.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},99302:function(e,t,r){var n=r(25566),i=r(47735),o=function(){},s=function(e){return e.setHeader&&"function"==typeof e.abort},a=function(e){return e.stdio&&Array.isArray(e.stdio)&&3===e.stdio.length},u=function(e,t,r){if("function"==typeof t)return u(e,null,t);t||(t={}),r=i(r||o);var f=e._writableState,l=e._readableState,c=t.readable||!1!==t.readable&&e.readable,d=t.writable||!1!==t.writable&&e.writable,h=!1,p=function(){e.writable||b()},b=function(){d=!1,c||r.call(e)},g=function(){c=!1,d||r.call(e)},m=function(t){r.call(e,t?Error("exited with error code: "+t):null)},y=function(t){r.call(e,t)},v=function(){n.nextTick(w)},w=function(){if(!h&&(c&&!(l&&l.ended&&!l.destroyed)||d&&!(f&&f.ended&&!f.destroyed)))return r.call(e,Error("premature close"))},_=function(){e.req.on("finish",b)};return s(e)?(e.on("complete",b),e.on("abort",v),e.req?_():e.on("request",_)):d&&!f&&(e.on("end",p),e.on("close",p)),a(e)&&e.on("exit",m),e.on("end",g),e.on("finish",b),!1!==t.error&&e.on("error",y),e.on("close",v),function(){h=!0,e.removeListener("complete",b),e.removeListener("abort",v),e.removeListener("request",_),e.req&&e.req.removeListener("finish",b),e.removeListener("end",p),e.removeListener("close",p),e.removeListener("finish",b),e.removeListener("exit",m),e.removeListener("end",g),e.removeListener("error",y),e.removeListener("close",v)}};e.exports=u},41032:function(e,t,r){"use strict";
10Object.defineProperty(t,"__esModule",{value:!0}),t.keccak512=t.keccak384=t.keccak256=t.keccak224=void 0;let n=r(52975),i=r(27176);t.keccak224=(0,i.wrapHash)(n.keccak_224),t.keccak256=(()=>{let e=(0,i.wrapHash)(n.keccak_256);return e.create=n.keccak_256.create,e})(),t.keccak384=(0,i.wrapHash)(n.keccak_384),t.keccak512=(0,i.wrapHash)(n.keccak_512)},52243:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createCurve=t.getHash=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let n=r(90950),i=r(85758),o=r(88248);function s(e){return{hash:e,hmac:(t,...r)=>(0,n.hmac)(e,t,(0,i.concatBytes)(...r)),randomBytes:i.randomBytes}}function a(e,t){let r=t=>(0,o.weierstrass)({...e,...s(t)});return Object.freeze({...r(t),create:r})}t.getHash=s,t.createCurve=a},6704:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateBasic=t.wNAF=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let n=r(20929),i=r(94072),o=BigInt(0),s=BigInt(1);function a(e,t){let r=(e,t)=>{let r=t.negate();return e?r:t},n=e=>({windows:Math.ceil(t/e)+1,windowSize:2**(e-1)});return{constTimeNegate:r,unsafeLadder(t,r){let n=e.ZERO,i=t;for(;r>o;)r&s&&(n=n.add(i)),i=i.double(),r>>=s;return n},precomputeWindow(e,t){let{windows:r,windowSize:i}=n(t),o=[],s=e,a=s;for(let e=0;e<r;e++){a=s,o.push(a);for(let e=1;e<i;e++)a=a.add(s),o.push(a);s=a.double()}return o},wNAF(t,i,o){let{windows:a,windowSize:u}=n(t),f=e.ZERO,l=e.BASE,c=BigInt(2**t-1),d=2**t,h=BigInt(t);for(let e=0;e<a;e++){let t=e*u,n=Number(o&c);o>>=h,n>u&&(n-=d,o+=s);let a=t,p=t+Math.abs(n)-1,b=e%2!=0,g=n<0;0===n?l=l.add(r(b,i[a])):f=f.add(r(g,i[p]))}return{p:f,f:l}},wNAFCached(e,t,r,n){let i=e._WINDOW_SIZE||1,o=t.get(e);return o||(o=this.precomputeWindow(e,i),1!==i&&t.set(e,n(o))),this.wNAF(i,o,r)}}}function u(e){return(0,n.validateField)(e.Fp),(0,i.validateObject)(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,n.nLength)(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}t.wNAF=a,t.validateBasic=u},30977:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createHasher=t.isogenyMap=t.hash_to_field=t.expand_message_xof=t.expand_message_xmd=void 0;let n=r(20929),i=r(94072);function o(e){if((0,i.isBytes)(e))return e;if("string"==typeof e)return(0,i.utf8ToBytes)(e);throw Error("DST must be Uint8Array or string")}let s=i.bytesToNumberBE;function a(e,t){if(e<0||e>=1<<8*t)throw Error(`bad I2OSP call: value=${e} length=${t}`);let r=Array.from({length:t}).fill(0);for(let n=t-1;n>=0;n--)r[n]=255&e,e>>>=8;return new Uint8Array(r)}function u(e,t){let r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=e[n]^t[n];return r}function f(e){if(!(0,i.isBytes)(e))throw Error("Uint8Array expected")}function l(e){if(!Number.isSafeInteger(e))throw Error("number expected")}function c(e,t,r,n){f(e),f(t),l(r),t.length>255&&(t=n((0,i.concatBytes)((0,i.utf8ToBytes)("H2C-OVERSIZE-DST-"),t)));let{outputLen:o,blockLen:s}=n,c=Math.ceil(r/o);if(c>255)throw Error("Invalid xmd length");let d=(0,i.concatBytes)(t,a(t.length,1)),h=a(0,s),p=a(r,2),b=Array(c),g=n((0,i.concatBytes)(h,e,p,a(0,1),d));b[0]=n((0,i.concatBytes)(g,a(1,1),d));for(let e=1;e<=c;e++){let t=[u(g,b[e-1]),a(e+1,1),d];b[e]=n((0,i.concatBytes)(...t))}return(0,i.concatBytes)(...b).slice(0,r)}function d(e,t,r,n,o){if(f(e),f(t),l(r),t.length>255){let e=Math.ceil(2*n/8);t=o.create({dkLen:e}).update((0,i.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(t).digest()}if(r>65535||t.length>255)throw Error("expand_message_xof: invalid lenInBytes");return o.create({dkLen:r}).update(e).update(a(r,2)).update(t).update(a(t.length,1)).digest()}function h(e,t,r){let a;(0,i.validateObject)(r,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});let{p:u,k:h,m:p,hash:b,expand:g,DST:m}=r;f(e),l(t);let y=o(m),v=Math.ceil((u.toString(2).length+h)/8),w=t*p*v;if("xmd"===g)a=c(e,y,w,b);else if("xof"===g)a=d(e,y,w,h,b);else if("_internal_pass"===g)a=e;else throw Error('expand must be "xmd" or "xof"');let _=Array(t);for(let e=0;e<t;e++){let t=Array(p);for(let r=0;r<p;r++){let i=v*(r+e*p),o=a.subarray(i,i+v);t[r]=(0,n.mod)(s(o),u)}_[e]=t}return _}function p(e,t){let r=t.map(e=>Array.from(e).reverse());return(t,n)=>{let[i,o,s,a]=r.map(r=>r.reduce((r,n)=>e.add(e.mul(r,t),n)));return t=e.div(i,o),n=e.mul(n,e.div(s,a)),{x:t,y:n}}}function b(e,t,r){if("function"!=typeof t)throw Error("mapToCurve() must be defined");return{hashToCurve(n,i){let o=h(n,2,{...r,DST:r.DST,...i}),s=e.fromAffine(t(o[0])),a=e.fromAffine(t(o[1])),u=s.add(a).clearCofactor();return u.assertValidity(),u},encodeToCurve(n,i){let o=h(n,1,{...r,DST:r.encodeDST,...i}),s=e.fromAffine(t(o[0])).clearCofactor();return s.assertValidity(),s}}}t.expand_message_xmd=c,t.expand_message_xof=d,t.hash_to_field=h,t.isogenyMap=p,t.createHasher=b},20929:function(e,t,r){"use strict";
10Object.defineProperty(t,"__esModule",{value:!0}),t.mapHashToField=t.getMinHashLength=t.getFieldBytesLength=t.hashToPrivateScalar=t.FpSqrtEven=t.FpSqrtOdd=t.Field=t.nLength=t.FpIsSquare=t.FpDiv=t.FpInvertBatch=t.FpPow=t.validateField=t.isNegativeLE=t.FpSqrt=t.tonelliShanks=t.invert=t.pow2=t.pow=t.mod=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let n=r(94072),i=BigInt(0),o=BigInt(1),s=BigInt(2),a=BigInt(3),u=BigInt(4),f=BigInt(5),l=BigInt(8);function c(e,t){let r=e%t;return r>=i?r:t+r}function d(e,t,r){if(r<=i||t<i)throw Error("Expected power/modulo > 0");if(r===o)return i;let n=o;for(;t>i;)t&o&&(n=n*e%r),e=e*e%r,t>>=o;return n}function h(e,t,r){let n=e;for(;t-- >i;)n*=n,n%=r;return n}function p(e,t){if(e===i||t<=i)throw Error(`invert: expected positive integers, got n=${e} mod=${t}`);let r=c(e,t),n=t,s=i,a=o,u=o,f=i;for(;r!==i;){let e=n/r,t=n%r,i=s-u*e,o=a-f*e;n=r,r=t,s=u,a=f,u=i,f=o}if(n!==o)throw Error("invert: does not exist");return c(s,t)}function b(e){let t,r,n;let a=(e-o)/s;for(t=e-o,r=0;t%s===i;t/=s,r++);for(n=s;n<e&&d(n,a,e)!==e-o;n++);if(1===r){let t=(e+o)/u;return function(e,r){let n=e.pow(r,t);if(!e.eql(e.sqr(n),r))throw Error("Cannot find square root");return n}}let f=(t+o)/s;return function(e,i){if(e.pow(i,a)===e.neg(e.ONE))throw Error("Cannot find square root");let s=r,u=e.pow(e.mul(e.ONE,n),t),l=e.pow(i,f),c=e.pow(i,t);for(;!e.eql(c,e.ONE);){if(e.eql(c,e.ZERO))return e.ZERO;let t=1;for(let r=e.sqr(c);t<s&&!e.eql(r,e.ONE);t++)r=e.sqr(r);let r=e.pow(u,o<<BigInt(s-t-1));u=e.sqr(r),l=e.mul(l,r),c=e.mul(c,u),s=t}return l}}function g(e){if(e%u===a){let t=(e+o)/u;return function(e,r){let n=e.pow(r,t);if(!e.eql(e.sqr(n),r))throw Error("Cannot find square root");return n}}if(e%l===f){let t=(e-f)/l;return function(e,r){let n=e.mul(r,s),i=e.pow(n,t),o=e.mul(r,i),a=e.mul(e.mul(o,s),i),u=e.mul(o,e.sub(a,e.ONE));if(!e.eql(e.sqr(u),r))throw Error("Cannot find square root");return u}}return b(e)}BigInt(9),BigInt(16),t.mod=c,t.pow=d,t.pow2=h,t.invert=p,t.tonelliShanks=b,t.FpSqrt=g;let m=(e,t)=>(c(e,t)&o)===o;t.isNegativeLE=m;let y=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function v(e){let t={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},r=y.reduce((e,t)=>(e[t]="function",e),t);return(0,n.validateObject)(e,r)}function w(e,t,r){if(r<i)throw Error("Expected power > 0");if(r===i)return e.ONE;if(r===o)return t;let n=e.ONE,s=t;for(;r>i;)r&o&&(n=e.mul(n,s)),s=e.sqr(s),r>>=o;return n}function _(e,t){let r=Array(t.length),n=t.reduce((t,n,i)=>e.is0(n)?t:(r[i]=t,e.mul(t,n)),e.ONE),i=e.inv(n);return t.reduceRight((t,n,i)=>e.is0(n)?t:(r[i]=e.mul(t,r[i]),e.mul(t,n)),i),r}function S(e,t,r){return e.mul(t,"bigint"==typeof r?p(r,e.ORDER):e.inv(r))}function E(e){let t=(e.ORDER-o)/s;return r=>{let n=e.pow(r,t);return e.eql(n,e.ZERO)||e.eql(n,e.ONE)}}function A(e,t){let r=void 0!==t?t:e.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function R(e,t,r=!1,s={}){if(e<=i)throw Error(`Expected Field ORDER > 0, got ${e}`);let{nBitLength:a,nByteLength:u}=A(e,t);if(u>2048)throw Error("Field lengths over 2048 bytes are not supported");let f=g(e),l=Object.freeze({ORDER:e,BITS:a,BYTES:u,MASK:(0,n.bitMask)(a),ZERO:i,ONE:o,create:t=>c(t,e),isValid:t=>{if("bigint"!=typeof t)throw Error(`Invalid field element: expected bigint, got ${typeof t}`);return i<=t&&t<e},is0:e=>e===i,isOdd:e=>(e&o)===o,neg:t=>c(-t,e),eql:(e,t)=>e===t,sqr:t=>c(t*t,e),add:(t,r)=>c(t+r,e),sub:(t,r)=>c(t-r,e),mul:(t,r)=>c(t*r,e),pow:(e,t)=>w(l,e,t),div:(t,r)=>c(t*p(r,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>p(t,e),sqrt:s.sqrt||(e=>f(l,e)),invertBatch:e=>_(l,e),cmov:(e,t,r)=>r?t:e,toBytes:e=>r?(0,n.numberToBytesLE)(e,u):(0,n.numberToBytesBE)(e,u),fromBytes:e=>{if(e.length!==u)throw Error(`Fp.fromBytes: expected ${u}, got ${e.length}`);return r?(0,n.bytesToNumberLE)(e):(0,n.bytesToNumberBE)(e)}});return Object.freeze(l)}function x(e,t){if(!e.isOdd)throw Error("Field doesn't have isOdd");let r=e.sqrt(t);return e.isOdd(r)?r:e.neg(r)}function M(e,t){if(!e.isOdd)throw Error("Field doesn't have isOdd");let r=e.sqrt(t);return e.isOdd(r)?e.neg(r):r}function k(e,t,r=!1){let i=(e=(0,n.ensureBytes)("privateHash",e)).length,s=A(t).nByteLength+8;if(s<24||i<s||i>1024)throw Error(`hashToPrivateScalar: expected ${s}-1024 bytes of input, got ${i}`);return c(r?(0,n.bytesToNumberLE)(e):(0,n.bytesToNumberBE)(e),t-o)+o}function O(e){if("bigint"!=typeof e)throw Error("field order must be bigint");return Math.ceil(e.toString(2).length/8)}function T(e){let t=O(e);return t+Math.ceil(t/2)}function I(e,t,r=!1){let i=e.length,s=O(t),a=T(t);if(i<16||i<a||i>1024)throw Error(`expected ${a}-1024 bytes of input, got ${i}`);let u=c(r?(0,n.bytesToNumberBE)(e):(0,n.bytesToNumberLE)(e),t-o)+o;return r?(0,n.numberToBytesLE)(u,s):(0,n.numberToBytesBE)(u,s)}t.validateField=v,t.FpPow=w,t.FpInvertBatch=_,t.FpDiv=S,t.FpIsSquare=E,t.nLength=A,t.Field=R,t.FpSqrtOdd=x,t.FpSqrtEven=M,t.hashToPrivateScalar=k,t.getFieldBytesLength=O,t.getMinHashLength=T,t.mapHashToField=I},94072:function(e,t){"use strict";
10Object.defineProperty(t,"__esModule",{value:!0}),t.validateObject=t.createHmacDrbg=t.bitMask=t.bitSet=t.bitGet=t.bitLen=t.utf8ToBytes=t.equalBytes=t.concatBytes=t.ensureBytes=t.numberToVarBytesBE=t.numberToBytesLE=t.numberToBytesBE=t.bytesToNumberLE=t.bytesToNumberBE=t.hexToBytes=t.hexToNumber=t.numberToHexUnpadded=t.bytesToHex=t.isBytes=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let r=BigInt(0),n=BigInt(1),i=BigInt(2);function o(e){return e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name}t.isBytes=o;let s=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function a(e){if(!o(e))throw Error("Uint8Array expected");let t="";for(let r=0;r<e.length;r++)t+=s[e[r]];return t}function u(e){let t=e.toString(16);return 1&t.length?`0${t}`:t}function f(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);return BigInt(""===e?"0":`0x${e}`)}t.bytesToHex=a,t.numberToHexUnpadded=u,t.hexToNumber=f;let l={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function c(e){return e>=l._0&&e<=l._9?e-l._0:e>=l._A&&e<=l._F?e-(l._A-10):e>=l._a&&e<=l._f?e-(l._a-10):void 0}function d(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);let t=e.length,r=t/2;if(t%2)throw Error("padded hex string expected, got unpadded hex of length "+t);let n=new Uint8Array(r);for(let t=0,i=0;t<r;t++,i+=2){let r=c(e.charCodeAt(i)),o=c(e.charCodeAt(i+1));if(void 0===r||void 0===o)throw Error('hex string expected, got non-hex character "'+(e[i]+e[i+1])+'" at index '+i);n[t]=16*r+o}return n}function h(e){return f(a(e))}function p(e){if(!o(e))throw Error("Uint8Array expected");return f(a(Uint8Array.from(e).reverse()))}function b(e,t){return d(e.toString(16).padStart(2*t,"0"))}function g(e,t){return b(e,t).reverse()}function m(e){return d(u(e))}function y(e,t,r){let n;if("string"==typeof t)try{n=d(t)}catch(r){throw Error(`${e} must be valid hex string, got "${t}". Cause: ${r}`)}else if(o(t))n=Uint8Array.from(t);else throw Error(`${e} must be hex string or Uint8Array`);let i=n.length;if("number"==typeof r&&i!==r)throw Error(`${e} expected ${r} bytes, got ${i}`);return n}function v(...e){let t=0;for(let r=0;r<e.length;r++){let n=e[r];if(!o(n))throw Error("Uint8Array expected");t+=n.length}let r=new Uint8Array(t),n=0;for(let t=0;t<e.length;t++){let i=e[t];r.set(i,n),n+=i.length}return r}function w(e,t){if(e.length!==t.length)return!1;let r=0;for(let n=0;n<e.length;n++)r|=e[n]^t[n];return 0===r}function _(e){if("string"!=typeof e)throw Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function S(e){let t;for(t=0;e>r;e>>=n,t+=1);return t}function E(e,t){return e>>BigInt(t)&n}t.hexToBytes=d,t.bytesToNumberBE=h,t.bytesToNumberLE=p,t.numberToBytesBE=b,t.numberToBytesLE=g,t.numberToVarBytesBE=m,t.ensureBytes=y,t.concatBytes=v,t.equalBytes=w,t.utf8ToBytes=_,t.bitLen=S,t.bitGet=E;let A=(e,t,i)=>e|(i?n:r)<<BigInt(t);t.bitSet=A;let R=e=>(i<<BigInt(e-1))-n;t.bitMask=R;let x=e=>new Uint8Array(e),M=e=>Uint8Array.from(e);function k(e,t,r){if("number"!=typeof e||e<2)throw Error("hashLen must be a number");if("number"!=typeof t||t<2)throw Error("qByteLen must be a number");if("function"!=typeof r)throw Error("hmacFn must be a function");let n=x(e),i=x(e),o=0,s=()=>{n.fill(1),i.fill(0),o=0},a=(...e)=>r(i,n,...e),u=(e=x())=>{i=a(M([0]),e),n=a(),0!==e.length&&(i=a(M([1]),e),n=a())},f=()=>{if(o++>=1e3)throw Error("drbg: tried 1000 values");let e=0,r=[];for(;e<t;){let t=(n=a()).slice();r.push(t),e+=n.length}return v(...r)};return(e,t)=>{let r;for(s(),u(e);!(r=t(f()));)u();return s(),r}}t.createHmacDrbg=k;let O={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||o(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};function T(e,t,r={}){let n=(t,r,n)=>{let i=O[r];if("function"!=typeof i)throw Error(`Invalid validator "${r}", expected function`);let o=e[t];if((!n||void 0!==o)&&!i(o,e))throw Error(`Invalid param ${String(t)}=${o} (${typeof o}), expected ${r}`)};for(let[e,r]of Object.entries(t))n(e,r,!1);for(let[e,t]of Object.entries(r))n(e,t,!0);return e}t.validateObject=T},88248:function(e,t,r){"use strict";
10Object.defineProperty(t,"__esModule",{value:!0}),t.mapToCurveSimpleSWU=t.SWUFpSqrtRatio=t.weierstrass=t.weierstrassPoints=t.DER=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let n=r(20929),i=r(94072),o=r(94072),s=r(6704);function a(e){let t=(0,s.validateBasic)(e);i.validateObject(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});let{endo:r,Fp:n,a:o}=t;if(r){if(!n.eql(o,n.ZERO))throw Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof r||"bigint"!=typeof r.beta||"function"!=typeof r.splitScalar)throw Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}let{bytesToNumberBE:u,hexToBytes:f}=i;t.DER={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(e){let{Err:r}=t.DER;if(e.length<2||2!==e[0])throw new r("Invalid signature integer tag");let n=e[1],i=e.subarray(2,n+2);if(!n||i.length!==n)throw new r("Invalid signature integer: wrong length");if(128&i[0])throw new r("Invalid signature integer: negative");if(0===i[0]&&!(128&i[1]))throw new r("Invalid signature integer: unnecessary leading zero");return{d:u(i),l:e.subarray(n+2)}},toSig(e){let{Err:r}=t.DER,n="string"==typeof e?f(e):e;if(!i.isBytes(n))throw Error("ui8a expected");let o=n.length;if(o<2||48!=n[0])throw new r("Invalid signature tag");if(n[1]!==o-2)throw new r("Invalid signature: incorrect length");let{d:s,l:a}=t.DER._parseInt(n.subarray(2)),{d:u,l:l}=t.DER._parseInt(a);if(l.length)throw new r("Invalid signature: left bytes after parsing");return{r:s,s:u}},hexFromSig(e){let t=e=>8&Number.parseInt(e[0],16)?"00"+e:e,r=e=>{let t=e.toString(16);return 1&t.length?`0${t}`:t},n=t(r(e.s)),i=t(r(e.r)),o=n.length/2,s=i.length/2,a=r(o),u=r(s);return`30${r(s+o+4)}02${u}${i}02${a}${n}`}};let l=BigInt(0),c=BigInt(1),d=BigInt(2),h=BigInt(3),p=BigInt(4);
10function b(e){let t=a(e),{Fp:r}=t,u=t.toBytes||((e,t,n)=>{let o=t.toAffine();return i.concatBytes(Uint8Array.from([4]),r.toBytes(o.x),r.toBytes(o.y))}),f=t.fromBytes||(e=>{let t=e.subarray(1);return{x:r.fromBytes(t.subarray(0,r.BYTES)),y:r.fromBytes(t.subarray(r.BYTES,2*r.BYTES))}});function d(e){let{a:n,b:i}=t,o=r.sqr(e),s=r.mul(o,e);return r.add(r.add(s,r.mul(e,n)),i)}if(!r.eql(r.sqr(t.Gy),d(t.Gx)))throw Error("bad generator point: equation left != right");function p(e){return"bigint"==typeof e&&l<e&&e<t.n}function b(e){if(!p(e))throw Error("Expected valid bigint: 0 < bigint < curve.n")}function g(e){let r;let{allowedPrivateKeyLengths:s,nByteLength:a,wrapPrivateKey:u,n:f}=t;if(s&&"bigint"!=typeof e){if(i.isBytes(e)&&(e=i.bytesToHex(e)),"string"!=typeof e||!s.includes(e.length))throw Error("Invalid key");e=e.padStart(2*a,"0")}try{r="bigint"==typeof e?e:i.bytesToNumberBE((0,o.ensureBytes)("private key",e,a))}catch(t){throw Error(`private key must be ${a} bytes, hex or bigint, not ${typeof e}`)}return u&&(r=n.mod(r,f)),b(r),r}let m=new Map;function y(e){if(!(e instanceof v))throw Error("ProjectivePoint expected")}class v{constructor(e,t,n){if(this.px=e,this.py=t,this.pz=n,null==e||!r.isValid(e))throw Error("x required");if(null==t||!r.isValid(t))throw Error("y required");if(null==n||!r.isValid(n))throw Error("z required")}static fromAffine(e){let{x:t,y:n}=e||{};if(!e||!r.isValid(t)||!r.isValid(n))throw Error("invalid affine point");if(e instanceof v)throw Error("projective point not allowed");let i=e=>r.eql(e,r.ZERO);return i(t)&&i(n)?v.ZERO:new v(t,n,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){let t=r.invertBatch(e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(v.fromAffine)}static fromHex(e){let t=v.fromAffine(f((0,o.ensureBytes)("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return v.BASE.multiply(g(e))}_setWindowSize(e){this._WINDOW_SIZE=e,m.delete(this)}assertValidity(){if(this.is0()){if(t.allowInfinityPoint&&!r.is0(this.py))return;throw Error("bad point: ZERO")}let{x:e,y:n}=this.toAffine();if(!r.isValid(e)||!r.isValid(n))throw Error("bad point: x or y not FE");let i=r.sqr(n),o=d(e);if(!r.eql(i,o))throw Error("bad point: equation left != right");if(!this.isTorsionFree())throw Error("bad point: not in prime-order subgroup")}hasEvenY(){let{y:e}=this.toAffine();if(r.isOdd)return!r.isOdd(e);throw Error("Field doesn't support isOdd")}equals(e){y(e);let{px:t,py:n,pz:i}=this,{px:o,py:s,pz:a}=e,u=r.eql(r.mul(t,a),r.mul(o,i)),f=r.eql(r.mul(n,a),r.mul(s,i));return u&&f}negate(){return new v(this.px,r.neg(this.py),this.pz)}double(){let{a:e,b:n}=t,i=r.mul(n,h),{px:o,py:s,pz:a}=this,u=r.ZERO,f=r.ZERO,l=r.ZERO,c=r.mul(o,o),d=r.mul(s,s),p=r.mul(a,a),b=r.mul(o,s);return b=r.add(b,b),l=r.mul(o,a),l=r.add(l,l),u=r.mul(e,l),f=r.mul(i,p),f=r.add(u,f),u=r.sub(d,f),f=r.add(d,f),f=r.mul(u,f),u=r.mul(b,u),l=r.mul(i,l),p=r.mul(e,p),b=r.sub(c,p),b=r.mul(e,b),b=r.add(b,l),l=r.add(c,c),c=r.add(l,c),c=r.add(c,p),c=r.mul(c,b),f=r.add(f,c),p=r.mul(s,a),p=r.add(p,p),c=r.mul(p,b),u=r.sub(u,c),l=r.mul(p,d),l=r.add(l,l),new v(u,f,l=r.add(l,l))}add(e){y(e);let{px:n,py:i,pz:o}=this,{px:s,py:a,pz:u}=e,f=r.ZERO,l=r.ZERO,c=r.ZERO,d=t.a,p=r.mul(t.b,h),b=r.mul(n,s),g=r.mul(i,a),m=r.mul(o,u),w=r.add(n,i),_=r.add(s,a);w=r.mul(w,_),_=r.add(b,g),w=r.sub(w,_),_=r.add(n,o);let S=r.add(s,u);return _=r.mul(_,S),S=r.add(b,m),_=r.sub(_,S),S=r.add(i,o),f=r.add(a,u),S=r.mul(S,f),f=r.add(g,m),S=r.sub(S,f),c=r.mul(d,_),f=r.mul(p,m),c=r.add(f,c),f=r.sub(g,c),c=r.add(g,c),l=r.mul(f,c),g=r.add(b,b),g=r.add(g,b),m=r.mul(d,m),_=r.mul(p,_),g=r.add(g,m),m=r.sub(b,m),m=r.mul(d,m),_=r.add(_,m),b=r.mul(g,_),l=r.add(l,b),b=r.mul(S,_),f=r.mul(w,f),f=r.sub(f,b),b=r.mul(w,g),c=r.mul(S,c),new v(f,l,c=r.add(c,b))}subtract(e){return this.add(e.negate())}is0(){return this.equals(v.ZERO)}wNAF(e){return _.wNAFCached(this,m,e,e=>{let t=r.invertBatch(e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(v.fromAffine)})}multiplyUnsafe(e){let n=v.ZERO;if(e===l)return n;if(b(e),e===c)return this;let{endo:i}=t;if(!i)return _.unsafeLadder(this,e);
10let{k1neg:o,k1:s,k2neg:a,k2:u}=i.splitScalar(e),f=n,d=n,h=this;for(;s>l||u>l;)s&c&&(f=f.add(h)),u&c&&(d=d.add(h)),h=h.double(),s>>=c,u>>=c;return o&&(f=f.negate()),a&&(d=d.negate()),d=new v(r.mul(d.px,i.beta),d.py,d.pz),f.add(d)}multiply(e){let n,i;b(e);let o=e,{endo:s}=t;if(s){let{k1neg:e,k1:t,k2neg:a,k2:u}=s.splitScalar(o),{p:f,f:l}=this.wNAF(t),{p:c,f:d}=this.wNAF(u);f=_.constTimeNegate(e,f),c=_.constTimeNegate(a,c),c=new v(r.mul(c.px,s.beta),c.py,c.pz),n=f.add(c),i=l.add(d)}else{let{p:e,f:t}=this.wNAF(o);n=e,i=t}return v.normalizeZ([n,i])[0]}multiplyAndAddUnsafe(e,t,r){let n=v.BASE,i=(e,t)=>t!==l&&t!==c&&e.equals(n)?e.multiply(t):e.multiplyUnsafe(t),o=i(this,t).add(i(e,r));return o.is0()?void 0:o}toAffine(e){let{px:t,py:n,pz:i}=this,o=this.is0();null==e&&(e=o?r.ONE:r.inv(i));let s=r.mul(t,e),a=r.mul(n,e),u=r.mul(i,e);if(o)return{x:r.ZERO,y:r.ZERO};if(!r.eql(u,r.ONE))throw Error("invZ was invalid");return{x:s,y:a}}isTorsionFree(){let{h:e,isTorsionFree:r}=t;if(e===c)return!0;if(r)return r(v,this);throw Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){let{h:e,clearCofactor:r}=t;return e===c?this:r?r(v,this):this.multiplyUnsafe(t.h)}toRawBytes(e=!0){return this.assertValidity(),u(v,this,e)}toHex(e=!0){return i.bytesToHex(this.toRawBytes(e))}}v.BASE=new v(t.Gx,t.Gy,r.ONE),v.ZERO=new v(r.ZERO,r.ONE,r.ZERO);let w=t.nBitLength,_=(0,s.wNAF)(v,t.endo?Math.ceil(w/2):w);return{CURVE:t,ProjectivePoint:v,normPrivateKeyToScalar:g,weierstrassEquation:d,isWithinCurveOrder:p}}function g(e){let t=(0,s.validateBasic)(e);return i.validateObject(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}function m(e){let r=g(e),{Fp:s,n:a}=r,u=s.BYTES+1,f=2*s.BYTES+1;function d(e){return l<e&&e<s.ORDER}function h(e){return n.mod(e,a)}function p(e){return n.invert(e,a)}let{ProjectivePoint:m,normPrivateKeyToScalar:y,weierstrassEquation:v,isWithinCurveOrder:w}=b({...r,toBytes(e,t,r){let n=t.toAffine(),o=s.toBytes(n.x),a=i.concatBytes;return r?a(Uint8Array.from([t.hasEvenY()?2:3]),o):a(Uint8Array.from([4]),o,s.toBytes(n.y))},fromBytes(e){let t=e.length,r=e[0],n=e.subarray(1);if(t===u&&(2===r||3===r)){let e=i.bytesToNumberBE(n);if(!d(e))throw Error("Point is not on curve");let t=v(e),o=s.sqrt(t);return(1&r)==1!=((o&c)===c)&&(o=s.neg(o)),{x:e,y:o}}if(t===f&&4===r)return{x:s.fromBytes(n.subarray(0,s.BYTES)),y:s.fromBytes(n.subarray(s.BYTES,2*s.BYTES))};throw Error(`Point of length ${t} was invalid. Expected ${u} compressed bytes or ${f} uncompressed bytes`)}}),_=e=>i.bytesToHex(i.numberToBytesBE(e,r.nByteLength));function S(e){return e>a>>c}function E(e){return S(e)?h(-e):e}let A=(e,t,r)=>i.bytesToNumberBE(e.slice(t,r));class R{constructor(e,t,r){this.r=e,this.s=t,this.recovery=r,this.assertValidity()}static fromCompact(e){let t=r.nByteLength;return new R(A(e=(0,o.ensureBytes)("compactSignature",e,2*t),0,t),A(e,t,2*t))}static fromDER(e){let{r,s:n}=t.DER.toSig((0,o.ensureBytes)("DER",e));return new R(r,n)}assertValidity(){if(!w(this.r))throw Error("r must be 0 < r < CURVE.n");if(!w(this.s))throw Error("s must be 0 < s < CURVE.n")}addRecoveryBit(e){return new R(this.r,this.s,e)}recoverPublicKey(e){let{r:t,s:n,recovery:i}=this,a=I((0,o.ensureBytes)("msgHash",e));if(null==i||![0,1,2,3].includes(i))throw Error("recovery id invalid");let u=2===i||3===i?t+r.n:t;if(u>=s.ORDER)throw Error("recovery id 2 or 3 invalid");let f=(1&i)==0?"02":"03",l=m.fromHex(f+_(u)),c=p(u),d=h(-a*c),b=h(n*c),g=m.BASE.multiplyAndAddUnsafe(l,d,b);if(!g)throw Error("point at infinify");return g.assertValidity(),g}hasHighS(){return S(this.s)}normalizeS(){return this.hasHighS()?new R(this.r,h(-this.s),this.recovery):this}toDERRawBytes(){return i.hexToBytes(this.toDERHex())}toDERHex(){return t.DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return i.hexToBytes(this.toCompactHex())}toCompactHex(){return _(this.r)+_(this.s)}}let x={isValidPrivateKey(e){try{return y(e),!0}catch(e){return!1}},normPrivateKeyToScalar:y,randomPrivateKey:()=>{let e=n.getMinHashLength(r.n);return n.mapHashToField(r.randomBytes(e),r.n)},precompute:(e=8,t=m.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)};function M(e,t=!0){return m.fromPrivateKey(e).toRawBytes(t)}function k(e){let t=i.isBytes(e),r="string"==typeof e,n=(t||r)&&e.length;return t?n===u||n===f:r?n===2*u||n===2*f:e instanceof m}function O(e,t,r=!0){if(k(e))throw Error("first arg must be private key");if(!k(t))throw Error("second arg must be public key");return m.fromHex(t).multiply(y(e)).toRawBytes(r)}let T=r.bits2int||function(e){let t=i.bytesToNumberBE(e),n=8*e.length-r.nBitLength;return n>0?t>>BigInt(n):t},I=r.bits2int_modN||function(e){return h(T(e))},P=i.bitMask(r.nBitLength);function L(e){if("bigint"!=typeof e)throw Error("bigint expected");if(!(l<=e&&e<P))throw Error(`bigint expected < 2^${r.nBitLength}`);return i.numberToBytesBE(e,r.nByteLength)}
10function B(e,t,n=N){if(["recovered","canonical"].some(e=>e in n))throw Error("sign() legacy options not supported");let{hash:a,randomBytes:u}=r,{lowS:f,prehash:d,extraEntropy:b}=n;null==f&&(f=!0),e=(0,o.ensureBytes)("msgHash",e),d&&(e=(0,o.ensureBytes)("prehashed msgHash",a(e)));let g=I(e),v=y(t),_=[L(v),L(g)];if(null!=b){let e=!0===b?u(s.BYTES):b;_.push((0,o.ensureBytes)("extraEntropy",e))}let A=i.concatBytes(..._),x=g;return{seed:A,k2sig:function(e){let t=T(e);if(!w(t))return;let r=p(t),n=m.BASE.multiply(t).toAffine(),i=h(n.x);if(i===l)return;let o=h(r*h(x+i*v));if(o===l)return;let s=(n.x===i?0:2)|Number(n.y&c),a=o;return f&&S(o)&&(a=E(o),s^=1),new R(i,a,s)}}}let N={lowS:r.lowS,prehash:!1},C={lowS:r.lowS,prehash:!1};function j(e,t,n=N){let{seed:o,k2sig:s}=B(e,t,n),a=r;return i.createHmacDrbg(a.hash.outputLen,a.nByteLength,a.hmac)(o,s)}function D(e,n,s,a=C){let u,f;let l=e;if(n=(0,o.ensureBytes)("msgHash",n),s=(0,o.ensureBytes)("publicKey",s),"strict"in a)throw Error("options.strict was renamed to lowS");let{lowS:c,prehash:d}=a;try{if("string"==typeof l||i.isBytes(l))try{f=R.fromDER(l)}catch(e){if(!(e instanceof t.DER.Err))throw e;f=R.fromCompact(l)}else if("object"==typeof l&&"bigint"==typeof l.r&&"bigint"==typeof l.s){let{r:e,s:t}=l;f=new R(e,t)}else throw Error("PARSE");u=m.fromHex(s)}catch(e){if("PARSE"===e.message)throw Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(c&&f.hasHighS())return!1;d&&(n=r.hash(n));let{r:b,s:g}=f,y=I(n),v=p(g),w=h(y*v),_=h(b*v),S=m.BASE.multiplyAndAddUnsafe(u,w,_)?.toAffine();return!!S&&h(S.x)===b}return m.BASE._setWindowSize(8),{CURVE:r,getPublicKey:M,getSharedSecret:O,sign:j,verify:D,ProjectivePoint:m,Signature:R,utils:x}}function y(e,t){let r=e.ORDER,n=l;for(let e=r-c;e%d===l;e/=d)n+=c;let i=n,o=d<<i-c-c,s=o*d,a=(r-c)/s,u=(a-c)/d,f=s-c,b=o,g=e.pow(t,a),m=e.pow(t,(a+c)/d),y=(t,r)=>{let n=g,o=e.pow(r,f),s=e.sqr(o);s=e.mul(s,r);let a=e.mul(t,s);a=e.pow(a,u),a=e.mul(a,o),o=e.mul(a,r),s=e.mul(a,t);let l=e.mul(s,o);a=e.pow(l,b);let h=e.eql(a,e.ONE);o=e.mul(s,m),a=e.mul(l,n),s=e.cmov(o,s,h),l=e.cmov(a,l,h);for(let t=i;t>c;t--){let r=t-d;r=d<<r-c;let i=e.pow(l,r),a=e.eql(i,e.ONE);o=e.mul(s,n),n=e.mul(n,n),i=e.mul(l,n),s=e.cmov(o,s,a),l=e.cmov(i,l,a)}return{isValid:h,value:s}};if(e.ORDER%p===h){let r=(e.ORDER-h)/p,n=e.sqrt(e.neg(t));y=(t,i)=>{let o=e.sqr(i),s=e.mul(t,i);o=e.mul(o,s);let a=e.pow(o,r);a=e.mul(a,s);let u=e.mul(a,n),f=e.mul(e.sqr(a),i),l=e.eql(f,t),c=e.cmov(u,a,l);return{isValid:l,value:c}}}return y}function v(e,t){if(n.validateField(e),!e.isValid(t.A)||!e.isValid(t.B)||!e.isValid(t.Z))throw Error("mapToCurveSimpleSWU: invalid opts");let r=y(e,t.Z);if(!e.isOdd)throw Error("Fp.isOdd is not implemented!");return n=>{let i,o,s,a,u,f,l,c;i=e.sqr(n),i=e.mul(i,t.Z),o=e.sqr(i),o=e.add(o,i),s=e.add(o,e.ONE),s=e.mul(s,t.B),a=e.cmov(t.Z,e.neg(o),!e.eql(o,e.ZERO)),a=e.mul(a,t.A),o=e.sqr(s),f=e.sqr(a),u=e.mul(f,t.A),o=e.add(o,u),o=e.mul(o,s),f=e.mul(f,a),u=e.mul(f,t.B),o=e.add(o,u),l=e.mul(i,s);let{isValid:d,value:h}=r(o,f);c=e.mul(i,n),c=e.mul(c,h),l=e.cmov(l,s,d),c=e.cmov(c,h,d);let p=e.isOdd(n)===e.isOdd(c);return c=e.cmov(e.neg(c),c,p),{x:l=e.div(l,a),y:c}}}t.weierstrassPoints=b,t.weierstrass=m,t.SWUFpSqrtRatio=y,t.mapToCurveSimpleSWU=v},82849:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeToCurve=t.hashToCurve=t.schnorr=t.secp256k1=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let n=r(44212),i=r(85758),o=r(20929),s=r(88248),a=r(94072),u=r(30977),f=r(52243),l=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),c=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),d=BigInt(1),h=BigInt(2),p=(e,t)=>(e+t/h)/t;function b(e){let t=l,r=BigInt(3),n=BigInt(6),i=BigInt(11),s=BigInt(22),a=BigInt(23),u=BigInt(44),f=BigInt(88),c=e*e*e%t,d=c*c*e%t,p=(0,o.pow2)(d,r,t)*d%t,b=(0,o.pow2)(p,r,t)*d%t,m=(0,o.pow2)(b,h,t)*c%t,y=(0,o.pow2)(m,i,t)*m%t,v=(0,o.pow2)(y,s,t)*y%t,w=(0,o.pow2)(v,u,t)*v%t,_=(0,o.pow2)(w,f,t)*w%t,S=(0,o.pow2)(_,u,t)*v%t,E=(0,o.pow2)(S,r,t)*d%t,A=(0,o.pow2)(E,a,t)*y%t,R=(0,o.pow2)(A,n,t)*c%t,x=(0,o.pow2)(R,h,t);if(!g.eql(g.sqr(x),e))throw Error("Cannot find square root");return x}let g=(0,o.Field)(l,void 0,void 0,{sqrt:b});t.secp256k1=(0,f.createCurve)({a:BigInt(0),b:BigInt(7),Fp:g,n:c,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{let t=c,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-d*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),s=r,a=BigInt("0x100000000000000000000000000000000"),u=p(s*e,t),f=p(-n*e,t),l=(0,o.mod)(e-u*r-f*i,t),h=(0,o.mod)(-u*n-f*s,t),b=l>a,g=h>a;if(b&&(l=t-l),g&&(h=t-h),l>a||h>a)throw Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:b,k1:l,k2neg:g,k2:h}}}},n.sha256);let m=BigInt(0),y=e=>"bigint"==typeof e&&m<e&&e<l,v=e=>"bigint"==typeof e&&m<e&&e<c,w={};function _(e,...t){let r=w[e];if(void 0===r){let t=(0,n.sha256)(Uint8Array.from(e,e=>e.charCodeAt(0)));r=(0,a.concatBytes)(t,t),w[e]=r}return(0,n.sha256)((0,a.concatBytes)(r,...t))}let S=e=>e.toRawBytes(!0).slice(1),E=e=>(0,a.numberToBytesBE)(e,32),A=e=>(0,o.mod)(e,l),R=e=>(0,o.mod)(e,c),x=t.secp256k1.ProjectivePoint,M=(e,t,r)=>x.BASE.multiplyAndAddUnsafe(e,t,r);function k(e){let r=t.secp256k1.utils.normPrivateKeyToScalar(e),n=x.fromPrivateKey(r);return{scalar:n.hasEvenY()?r:R(-r),bytes:S(n)}}function O(e){if(!y(e))throw Error("bad x: need 0 < x < p");let t=A(e*e),r=b(A(t*e+BigInt(7)));r%h!==m&&(r=A(-r));let n=new x(e,r,d);return n.assertValidity(),n}function T(...e){return R((0,a.bytesToNumberBE)(_("BIP0340/challenge",...e)))}function I(e){return k(e).bytes}function P(e,t,r=(0,i.randomBytes)(32)){let n=(0,a.ensureBytes)("message",e),{bytes:o,scalar:s}=k(t),u=(0,a.ensureBytes)("auxRand",r,32),f=E(s^(0,a.bytesToNumberBE)(_("BIP0340/aux",u))),l=_("BIP0340/nonce",f,o,n),c=R((0,a.bytesToNumberBE)(l));if(c===m)throw Error("sign failed: k is zero");let{bytes:d,scalar:h}=k(c),p=T(d,o,n),b=new Uint8Array(64);if(b.set(d,0),b.set(E(R(h+p*s)),32),!L(b,n,o))throw Error("sign: Invalid signature produced");return b}function L(e,t,r){let n=(0,a.ensureBytes)("signature",e,64),i=(0,a.ensureBytes)("message",t),o=(0,a.ensureBytes)("publicKey",r,32);try{let e=O((0,a.bytesToNumberBE)(o)),t=(0,a.bytesToNumberBE)(n.subarray(0,32));if(!y(t))return!1;let r=(0,a.bytesToNumberBE)(n.subarray(32,64));if(!v(r))return!1;let s=T(E(t),S(e),i),u=M(e,r,R(-s));if(!u||!u.hasEvenY()||u.toAffine().x!==t)return!1;return!0}catch(e){return!1}}t.schnorr={getPublicKey:I,sign:P,verify:L,utils:{randomPrivateKey:t.secp256k1.utils.randomPrivateKey,lift_x:O,pointToBytes:S,numberToBytesBE:a.numberToBytesBE,bytesToNumberBE:a.bytesToNumberBE,taggedHash:_,mod:o.mod}};let B=(0,u.isogenyMap)(g,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a4
1013deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(e=>e.map(e=>BigInt(e)))),N=(0,s.mapToCurveSimpleSWU)(g,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:g.create(BigInt("-11"))}),C=(0,u.createHasher)(t.secp256k1.ProjectivePoint,e=>{let{x:t,y:r}=N(g.create(e[0]));return B(t,r)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:g.ORDER,m:1,k:128,expand:"xmd",hash:n.sha256});t.hashToCurve=C.hashToCurve,t.encodeToCurve=C.encodeToCurve},66911:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.secp256k1=void 0;var n=r(82849);Object.defineProperty(t,"secp256k1",{enumerable:!0,get:function(){return n.secp256k1}})},27176:function(e,t,r){"use strict";e=r.nmd(e);var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=t.wrapHash=t.equalsBytes=t.hexToBytes=t.bytesToUtf8=t.utf8ToBytes=t.createView=t.concatBytes=t.toHex=t.bytesToHex=t.assertBytes=t.assertBool=void 0;let i=n(r(67021)),o=r(85758),s=i.default.bool;t.assertBool=s;let a=i.default.bytes;t.assertBytes=a;var u=r(85758);function f(e){if(!(e instanceof Uint8Array))throw TypeError(`bytesToUtf8 expected Uint8Array, got ${typeof e}`);return new TextDecoder().decode(e)}function l(e){let t=e.startsWith("0x")?e.substring(2):e;return(0,o.hexToBytes)(t)}function c(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function d(e){return t=>(i.default.bytes(t),e(t))}Object.defineProperty(t,"bytesToHex",{enumerable:!0,get:function(){return u.bytesToHex}}),Object.defineProperty(t,"toHex",{enumerable:!0,get:function(){return u.bytesToHex}}),Object.defineProperty(t,"concatBytes",{enumerable:!0,get:function(){return u.concatBytes}}),Object.defineProperty(t,"createView",{enumerable:!0,get:function(){return u.createView}}),Object.defineProperty(t,"utf8ToBytes",{enumerable:!0,get:function(){return u.utf8ToBytes}}),t.bytesToUtf8=f,t.hexToBytes=l,t.equalsBytes=c,t.wrapHash=d,t.crypto=(()=>{let t="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,r="function"==typeof e.require&&e.require.bind(e);return{node:r&&!t?r("crypto"):void 0,web:t}})()},59731:function(e){"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;0!=i--;){var n,i,o,s=o[i];if(!e(t[s],r[s]))return!1}return!0}return t!=t&&r!=r}},83699:function(e,t,r){var n=t;n.utils=r(69874),n.common=r(37142),n.sha=r(37727),n.ripemd=r(89561),n.hmac=r(40238),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},37142:function(e,t,r){"use strict";var n=r(69874),i=r(71974);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}
vendor: 9,458 bytes, line 10
10t.BlockHash=o,o.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=e>>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(o=8,n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0;o<this.padLength;o++)n[i++]=0;return n}},40238:function(e,t,r){"use strict";var n=r(69874),i=r(71974);function o(e,t,r){if(!(this instanceof o))return new o(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(t,r))}e.exports=o,o.prototype._init=function(e){e.length>this.blockSize&&(e=new this.Hash().update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(t=0,this.inner=new this.Hash().update(e);t<e.length;t++)e[t]^=106;this.outer=new this.Hash().update(e)},o.prototype.update=function(e,t){return this.inner.update(e,t),this},o.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},89561:function(e,t,r){"use strict";var n=r(69874),i=r(37142),o=n.rotl32,s=n.sum32,a=n.sum32_3,u=n.sum32_4,f=i.BlockHash;function l(){if(!(this instanceof l))return new l;f.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function c(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function d(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function h(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}n.inherits(l,f),t.ripemd160=l,l.blockSize=512,l.outSize=160,l.hmacStrength=192,l.padLength=64,l.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],i=this.h[2],f=this.h[3],l=this.h[4],y=r,v=n,w=i,_=f,S=l,E=0;E<80;E++){var A=s(o(u(r,c(E,n,i,f),e[p[E]+t],d(E)),g[E]),l);r=l,l=f,f=o(i,10),i=n,n=A,A=s(o(u(y,c(79-E,v,w,_),e[b[E]+t],h(E)),m[E]),S),y=S,S=_,_=o(w,10),w=v,v=A}A=a(this.h[1],i,_),this.h[1]=a(this.h[2],f,S),this.h[2]=a(this.h[3],l,y),this.h[3]=a(this.h[4],r,v),this.h[4]=a(this.h[0],n,w),this.h[0]=A},l.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],b=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],g=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],m=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},37727:function(e,t,r){"use strict";t.sha1=r(99659),t.sha224=r(15577),t.sha256=r(4132),t.sha384=r(65560),t.sha512=r(86124)},99659:function(e,t,r){"use strict";var n=r(69874),i=r(37142),o=r(9221),s=n.rotl32,a=n.sum32,u=n.sum32_5,f=o.ft_1,l=i.BlockHash,c=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=Array(80)}n.inherits(d,l),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=s(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],o=this.h[1],l=this.h[2],d=this.h[3],h=this.h[4];for(n=0;n<r.length;n++){var p=~~(n/20),b=u(s(i,5),f(p,o,l,d),h,r[n],c[p]);h=d,d=l,l=s(o,30),o=i,i=b}this.h[0]=a(this.h[0],i),this.h[1]=a(this.h[1],o),this.h[2]=a(this.h[2],l),this.h[3]=a(this.h[3],d),this.h[4]=a(this.h[4],h)},d.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},15577:function(e,t,r){"use strict";var n=r(69874),i=r(4132);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(o,i),e.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},4132:function(e,t,r){"use strict";var n=r(69874),i=r(37142),o=r(9221),s=r(71974),a=n.sum32,u=n.sum32_4,f=n.sum32_5,l=o.ch32,c=o.maj32,d=o.s0_256,h=o.s1_256,p=o.g0_256,b=o.g1_256,g=i.BlockHash,m=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function y(){if(!(this instanceof y))return new y;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=m,this.W=Array(64)}n.inherits(y,g),e.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=u(b(r[n-2]),r[n-7],p(r[n-15]),r[n-16]);var i=this.h[0],o=this.h[1],g=this.h[2],m=this.h[3],y=this.h[4],v=this.h[5],w=this.h[6],_=this.h[7];for(s(this.k.length===r.length),n=0;n<r.length;n++){var S=f(_,h(y),l(y,v,w),this.k[n],r[n]),E=a(d(i),c(i,o,g));_=w,w=v,v=y,y=a(m,S),m=g,g=o,o=i,i=a(S,E)}this.h[0]=a(this.h[0],i),this.h[1]=a(this.h[1],o),this.h[2]=a(this.h[2],g),this.h[3]=a(this.h[3],m),this.h[4]=a(this.h[4],y),this.h[5]=a(this.h[5],v),this.h[6]=a(this.h[6],w),this.h[7]=a(this.h[7],_)},y.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},65560:function(e,t,r){"use strict";var n=r(69874),i=r(86124);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(o,i),e.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},86124:function(e,t,r){"use strict";var n=r(69874),i=r(37142),o=r(71974),s=n.rotr64_hi,a=n.rotr64_lo,u=n.shr64_hi,f=n.shr64_lo,l=n.sum64,c=n.sum64_hi,d=n.sum64_lo,h=n.sum64_4_hi,p=n.sum64_4_lo,b=n.sum64_5_hi,g=n.sum64_5_lo,m=i.BlockHash,y=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,
101126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function v(){if(!(this instanceof v))return new v;m.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=y,this.W=Array(160)}function w(e,t,r,n,i){var o=e&r^~e&i;return o<0&&(o+=4294967296),o}function _(e,t,r,n,i,o){var s=t&n^~t&o;return s<0&&(s+=4294967296),s}function S(e,t,r,n,i){var o=e&r^e&i^r&i;return o<0&&(o+=4294967296),o}function E(e,t,r,n,i,o){var s=t&n^t&o^n&o;return s<0&&(s+=4294967296),s}function A(e,t){var r=s(e,t,28)^s(t,e,2)^s(t,e,7);return r<0&&(r+=4294967296),r}function R(e,t){var r=a(e,t,28)^a(t,e,2)^a(t,e,7);return r<0&&(r+=4294967296),r}function x(e,t){var r=s(e,t,14)^s(e,t,18)^s(t,e,9);return r<0&&(r+=4294967296),r}function M(e,t){var r=a(e,t,14)^a(e,t,18)^a(t,e,9);return r<0&&(r+=4294967296),r}function k(e,t){var r=s(e,t,1)^s(e,t,8)^u(e,t,7);return r<0&&(r+=4294967296),r}function O(e,t){var r=a(e,t,1)^a(e,t,8)^f(e,t,7);return r<0&&(r+=4294967296),r}function T(e,t){var r=s(e,t,19)^s(t,e,29)^u(e,t,6);return r<0&&(r+=4294967296),r}function I(e,t){var r=a(e,t,19)^a(t,e,29)^f(e,t,6);return r<0&&(r+=4294967296),r}n.inherits(v,m),e.exports=v,v.blockSize=1024,v.outSize=512,v.hmacStrength=192,v.padLength=128,v.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n<r.length;n+=2){var i=T(r[n-4],r[n-3]),o=I(r[n-4],r[n-3]),s=r[n-14],a=r[n-13],u=k(r[n-30],r[n-29]),f=O(r[n-30],r[n-29]),l=r[n-32],c=r[n-31];r[n]=h(i,o,s,a,u,f,l,c),r[n+1]=p(i,o,s,a,u,f,l,c)}},v.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,n=this.h[0],i=this.h[1],s=this.h[2],a=this.h[3],u=this.h[4],f=this.h[5],h=this.h[6],p=this.h[7],m=this.h[8],y=this.h[9],v=this.h[10],k=this.h[11],O=this.h[12],T=this.h[13],I=this.h[14],P=this.h[15];o(this.k.length===r.length);for(var L=0;L<r.length;L+=2){var B=I,N=P,C=x(m,y),j=M(m,y),D=w(m,y,v,k,O,T),F=_(m,y,v,k,O,T),U=this.k[L],q=this.k[L+1],$=r[L],z=r[L+1],H=b(B,N,C,j,D,F,U,q,$,z),W=g(B,N,C,j,D,F,U,q,$,z);B=A(n,i);var V=c(B,N=R(n,i),C=S(n,i,s,a,u,f),j=E(n,i,s,a,u,f)),G=d(B,N,C,j);I=O,P=T,O=v,T=k,v=m,k=y,m=c(h,p,H,W),y=d(p,p,H,W),h=u,p=f,u=s,f=a,s=n,a=i,n=c(H,W,V,G),i=d(H,W,V,G)}l(this.h,0,n,i),l(this.h,2,s,a),l(this.h,4,u,f),l(this.h,6,h,p),l(this.h,8,m,y),l(this.h,10,v,k),l(this.h,12,O,T),l(this.h,14,I,P)},v.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},9221:function(e,t,r){"use strict";var n=r(69874).rotr32;function i(e,t,r,n){return 0===e?o(t,r,n):1===e||3===e?a(t,r,n):2===e?s(t,r,n):void 0}function o(e,t,r){return e&t^~e&r}function s(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}function u(e){return n(e,2)^n(e,13)^n(e,22)}function f(e){return n(e,6)^n(e,11)^n(e,25)}function l(e){return n(e,7)^n(e,18)^e>>>3}function c(e){return n(e,17)^n(e,19)^e>>>10}t.ft_1=i,t.ch32=o,t.maj32=s,t.p32=a,t.s0_256=u,t.s1_256=f,t.g0_256=l,t.g1_256=c},69874:function(e,t,r){"use strict";var n=r(71974),i=r(87398);function o(e,t){return(64512&e.charCodeAt(t))==55296&&!(t<0)&&!(t+1>=e.length)&&(64512&e.charCodeAt(t+1))==56320}function s(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e){if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/ig,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)r.push(parseInt(e[i]+e[i+1],16))}else for(var n=0,i=0;i<e.length;i++){var s=e.charCodeAt(i);s<128?r[n++]=s:(s<2048?r[n++]=s>>6|192:(o(e,i)?(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++i)),r[n++]=s>>18|240,r[n++]=s>>12&63|128):r[n++]=s>>12|224,r[n++]=s>>6&63|128),r[n++]=63&s|128)}}else for(i=0;i<e.length;i++)r[i]=0|e[i];return r}function a(e){for(var t="",r=0;r<e.length;r++)t+=l(e[r].toString(16));return t}function u(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function f(e,t){for(var r="",n=0;n<e.length;n++){var i=e[n];"little"===t&&(i=u(i)),r+=c(i.toString(16))}return r}function l(e){return 1===e.length?"0"+e:e}function c(e){if(7===e.length)return"0"+e;if(6===e.length)return"00"+e;if(5===e.length)return"000"+e;if(4===e.length)return"0000"+e;if(3===e.length)return"00000"+e;if(2===e.length)return"000000"+e;if(1===e.length)return"0000000"+e;else return e}function d(e,t,r,i){var o,s=r-t;n(s%4==0);for(var a=Array(s/4),u=0,f=t;u<a.length;u++,f+=4)o="big"===i?e[f]<<24|e[f+1]<<16|e[f+2]<<8|e[f+3]:e[f+3]<<24|e[f+2]<<16|e[f+1]<<8|e[f],a[u]=o>>>0;return a}function h(e,t){for(var r=Array(4*e.length),n=0,i=0;n<e.length;n++,i+=4){var o=e[n];"big"===t?(r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r}function p(e,t){return e>>>t|e<<32-t}function b(e,t){return e<<t|e>>>32-t}function g(e,t){return e+t>>>0}function m(e,t,r){return e+t+r>>>0}function y(e,t,r,n){return e+t+r+n>>>0}function v(e,t,r,n,i){return e+t+r+n+i>>>0}function w(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,s=(o<n?1:0)+r+i;e[t]=s>>>
100,e[t+1]=o}function _(e,t,r,n){return(t+n>>>0<t?1:0)+e+r>>>0}function S(e,t,r,n){return t+n>>>0}function E(e,t,r,n,i,o,s,a){var u,f=t;return e+r+i+s+(u=0+((f=f+n>>>0)<t?1:0)+((f=f+o>>>0)<o?1:0)+((f=f+a>>>0)<a?1:0))>>>0}function A(e,t,r,n,i,o,s,a){return t+n+o+a>>>0}function R(e,t,r,n,i,o,s,a,u,f){var l,c=t;return e+r+i+s+u+(l=0+((c=c+n>>>0)<t?1:0)+((c=c+o>>>0)<o?1:0)+((c=c+a>>>0)<a?1:0)+((c=c+f>>>0)<f?1:0))>>>0}function x(e,t,r,n,i,o,s,a,u,f){return t+n+o+a+f>>>0}function M(e,t,r){return(t<<32-r|e>>>r)>>>0}function k(e,t,r){return(e<<32-r|t>>>r)>>>0}function O(e,t,r){return e>>>r}function T(e,t,r){return(e<<32-r|t>>>r)>>>0}t.inherits=i,t.toArray=s,t.toHex=a,t.htonl=u,t.toHex32=f,t.zero2=l,t.zero8=c,t.join32=d,t.split32=h,t.rotr32=p,t.rotl32=b,t.sum32=g,t.sum32_3=m,t.sum32_4=y,t.sum32_5=v,t.sum64=w,t.sum64_hi=_,t.sum64_lo=S,t.sum64_4_hi=E,t.sum64_4_lo=A,t.sum64_5_hi=R,t.sum64_5_lo=x,t.rotr64_hi=M,t.rotr64_lo=k,t.shr64_hi=O,t.shr64_lo=T},83356:function(e,t,r){"use strict";var n=r(83699),i=r(40697),o=r(71974);function s(e){if(!(this instanceof s))return new s(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}e.exports=s,s.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},s.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},s.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},s.prototype.reseed=function(e,t,r,n){"string"!=typeof t&&(n=r,r=t,t=null),e=i.toArray(e,t),r=i.toArray(r,n),o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},s.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length<e;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var s=o.slice(0,e);return this._update(r),this._reseed++,i.encode(s,t)}},56260:function(e){"use strict";let t=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;t.writable=e=>t(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,t.readable=e=>t(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,t.duplex=e=>t.writable(e)&&t.readable(e),t.transform=e=>t.duplex(e)&&"function"==typeof e._transform,e.exports=t},35866:function(e){var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},80128:function(e,t,r){"use strict";var n=("undefined"!=typeof JSON?JSON:r(19911)).stringify,i=r(35866),o=r(6769),s=r(11356),a=r(50084),u=a("Array.prototype.join"),f=a("Array.prototype.push"),l=function(e,t){for(var r="",n=0;n<e;n+=1)r+=t;return r},c=function(e,t,r){return r};e.exports=function(e){var t=arguments.length>1?arguments[1]:void 0,r=t&&t.space||"";"number"==typeof r&&(r=l(r," "));var a=!!t&&"boolean"==typeof t.cycles&&t.cycles,d=t&&t.replacer?s(t.replacer):c,h="function"==typeof t?t:t&&t.cmp,p=h&&function(e){var t=h.length>2&&function(t){return e[t]};return function(r,n){return h({key:r,value:e[r]},{key:n,value:e[n]},t?{__proto__:null,get:t}:void 0)}},b=[];return function e(t,s,c,h){var g=r?"\n"+l(h,r):"",m=r?": ":":";if(c&&c.toJSON&&"function"==typeof c.toJSON&&(c=c.toJSON()),void 0!==(c=d(t,s,c))){if("object"!=typeof c||null===c)return n(c);if(i(c)){for(var y=[],v=0;v<c.length;v++){var w=e(c,v,c[v],h+1)||n(null);f(y,g+r+w)}return"["+u(y,",")+g+"]"}if(-1!==b.indexOf(c)){if(a)return n("__cycle__");throw TypeError("Converting circular structure to JSON")}f(b,c);for(var _=o(c).sort(p&&p(c)),y=[],v=0;v<_.length;v++){var s=_[v],S=e(c,s,c[s],h+1);if(S){var E=n(s)+m+S;f(y,g+r+E)}}return b.splice(b.indexOf(c),1),"{"+u(y,",")+g+"}"}}({"":e},"",e,0)}},19911:function(e,t,r){"use strict";t.parse=r(85449),t.stringify=r(55519)},85449:function(e){"use strict";var t,r,n,i={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:" "};function o(e){throw{name:"SyntaxError",message:e,at:t,text:n}}function s(e){return e&&e!==r&&o("Expected '"+e+"' instead of '"+r
10+"'"),r=n.charAt(t),t+=1,r}function a(){var e,t="";for("-"===r&&(t="-",s("-"));r>="0"&&r<="9";)t+=r,s();if("."===r)for(t+=".";s()&&r>="0"&&r<="9";)t+=r;if("e"===r||"E"===r)for(t+=r,s(),("-"===r||"+"===r)&&(t+=r,s());r>="0"&&r<="9";)t+=r,s();return isFinite(e=Number(t))||o("Bad number"),e}function u(){var e,t,n,a="";if('"'===r)for(;s();){if('"'===r)return s(),a;if("\\"===r){if(s(),"u"===r){for(t=0,n=0;t<4&&isFinite(e=parseInt(s(),16));t+=1)n=16*n+e;a+=String.fromCharCode(n)}else if("string"==typeof i[r])a+=i[r];else break}else a+=r}o("Bad string")}function f(){for(;r&&r<=" ";)s()}function l(){switch(r){case"t":return s("t"),s("r"),s("u"),s("e"),!0;case"f":return s("f"),s("a"),s("l"),s("s"),s("e"),!1;case"n":return s("n"),s("u"),s("l"),s("l"),null;default:o("Unexpected '"+r+"'")}}function c(){var e=[];if("["===r){if(s("["),f(),"]"===r)return s("]"),e;for(;r;){if(e.push(h()),f(),"]"===r)return s("]"),e;s(","),f()}}o("Bad array")}function d(){var e,t={};if("{"===r){if(s("{"),f(),"}"===r)return s("}"),t;for(;r;){if(e=u(),f(),s(":"),Object.prototype.hasOwnProperty.call(t,e)&&o('Duplicate key "'+e+'"'),t[e]=h(),f(),"}"===r)return s("}"),t;s(","),f()}}o("Bad object")}function h(){switch(f(),r){case"{":return d();case"[":return c();case'"':return u();case"-":return a();default:return r>="0"&&r<="9"?a():l()}}e.exports=function(e,i){var s;return n=e,t=0,r=" ",s=h(),f(),r&&o("Syntax error"),"function"==typeof i?function e(t,r){var n,o,s=t[r];if(s&&"object"==typeof s)for(n in h)Object.prototype.hasOwnProperty.call(s,n)&&(void 0===(o=e(s,n))?delete s[n]:s[n]=o);return i.call(t,r,s)}({"":s},""):s}},55519:function(e){"use strict";var t,r,n,i=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,o={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function s(e){return i.lastIndex=0,i.test(e)?'"'+e.replace(i,function(e){var t=o[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function a(e,i){var o,u,f,l,c,d=t,h=i[e];switch(h&&"object"==typeof h&&"function"==typeof h.toJSON&&(h=h.toJSON(e)),"function"==typeof n&&(h=n.call(i,e,h)),typeof h){case"string":return s(h);case"number":return isFinite(h)?String(h):"null";case"boolean":case"null":return String(h);case"object":if(!h)return"null";if(t+=r,c=[],"[object Array]"===Object.prototype.toString.apply(h)){for(o=0,l=h.length;o<l;o+=1)c[o]=a(o,h)||"null";return f=0===c.length?"[]":t?"[\n"+t+c.join(",\n"+t)+"\n"+d+"]":"["+c.join(",")+"]",t=d,f}if(n&&"object"==typeof n)for(o=0,l=n.length;o<l;o+=1)"string"==typeof(u=n[o])&&(f=a(u,h))&&c.push(s(u)+(t?": ":":")+f);else for(u in h)Object.prototype.hasOwnProperty.call(h,u)&&(f=a(u,h))&&c.push(s(u)+(t?": ":":")+f);return f=0===c.length?"{}":t?"{\n"+t+c.join(",\n"+t)+"\n"+d+"}":"{"+c.join(",")+"}",t=d,f}}e.exports=function(e,i,o){var s;if(t="",r="","number"==typeof o)for(s=0;s<o;s+=1)r+=" ";else"string"==typeof o&&(r=o);if(n=i,i&&"function"!=typeof i&&("object"!=typeof i||"number"!=typeof i.length))throw Error("JSON.stringify");return a("",{"":e})}},36882:function(e,t,r){e=r.nmd(e);var n=200,i="__lodash_hash_undefined__",o=800,s=16,a=9007199254740991,u="[object Arguments]",f="[object Array]",l="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",h="[object Error]",p="[object Function]",b="[object GeneratorFunction]",g="[object Map]",m="[object Number]",y="[object Null]",v="[object Object]",w="[object Proxy]",_="[object RegExp]",S="[object Set]",E="[object String]",A="[object Undefined]",R="[object WeakMap]",x="[object ArrayBuffer]",M="[object DataView]",k="[object Float64Array]",O="[object Int8Array]",T="[object Int16Array]",I="[object Int32Array]",P="[object Uint8Array]",L="[object Uint8ClampedArray]",B="[object Uint16Array]",N="[object Uint32Array]",C=/[\\^$.*+?()[\]{}|]/g,j=/^\[object .+?Constructor\]$/,D=/^(?:0|[1-9]\d*)$/,F={};F["[object Float32Array]"]=F[k]=F[O]=F[T]=F[I]=F[P]=F[L]=F[B]=F[N]=!0,F[u]=F[f]=F[x]=F[c]=F[M]=F[d]=F[h]=F[p]=F[g]=F[m]=F[v]=F[_]=F[S]=F[E]=F[R]=!1;var U="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,q="object"==typeof self&&self&&self.Object===Object&&self,$=U||q||Function("return this")(),z=t&&!t.nodeType&&t,H=z&&e&&!e.nodeType&&e,W
10=H&&H.exports===z,V=W&&U.process,G=function(){try{var e=H&&H.require&&H.require("util").types;if(e)return e;return V&&V.binding&&V.binding("util")}catch(e){}}(),Z=G&&G.isTypedArray;function K(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function J(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function X(e){return function(t){return e(t)}}function Y(e,t){return null==e?void 0:e[t]}function Q(e,t){return function(r){return e(t(r))}}var ee=Array.prototype,et=Function.prototype,er=Object.prototype,en=$["__core-js_shared__"],ei=et.toString,eo=er.hasOwnProperty,es=function(){var e=/[^.]+$/.exec(en&&en.keys&&en.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ea=er.toString,eu=ei.call(Object),ef=RegExp("^"+ei.call(eo).replace(C,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),el=W?$.Buffer:void 0,ec=$.Symbol,ed=$.Uint8Array,eh=el?el.allocUnsafe:void 0,ep=Q(Object.getPrototypeOf,Object),eb=Object.create,eg=er.propertyIsEnumerable,em=ee.splice,ey=ec?ec.toStringTag:void 0,ev=function(){try{var e=tu(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),ew=el?el.isBuffer:void 0,e_=Math.max,eS=Date.now,eE=tu($,"Map"),eA=tu(Object,"create"),eR=function(){function e(){}return function(t){if(!tI(t))return{};if(eb)return eb(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function ex(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function eM(){this.__data__=eA?eA(null):{},this.size=0}function ek(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function eO(e){var t=this.__data__;if(eA){var r=t[e];return r===i?void 0:r}return eo.call(t,e)?t[e]:void 0}function eT(e){var t=this.__data__;return eA?void 0!==t[e]:eo.call(t,e)}function eI(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=eA&&void 0===t?i:t,this}function eP(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function eL(){this.__data__=[],this.size=0}function eB(e){var t=this.__data__,r=eQ(t,e);return!(r<0)&&(r==t.length-1?t.pop():em.call(t,r,1),--this.size,!0)}function eN(e){var t=this.__data__,r=eQ(t,e);return r<0?void 0:t[r][1]}function eC(e){return eQ(this.__data__,e)>-1}function ej(e,t){var r=this.__data__,n=eQ(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function eD(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function eF(){this.size=0,this.__data__={hash:new ex,map:new(eE||eP),string:new ex}}function eU(e){var t=ta(this,e).delete(e);return this.size-=t?1:0,t}function eq(e){return ta(this,e).get(e)}function e$(e){return ta(this,e).has(e)}function ez(e,t){var r=ta(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function eH(e){var t=this.__data__=new eP(e);this.size=t.size}function eW(){this.__data__=new eP,this.size=0}function eV(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function eG(e){return this.__data__.get(e)}function eZ(e){return this.__data__.has(e)}function eK(e,t){var r=this.__data__;if(r instanceof eP){var i=r.__data__;if(!eE||i.length<n-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new eD(i)}return r.set(e,t),this.size=r.size,this}function eJ(e,t){var r=tR(e),n=!r&&tA(e),i=!r&&!n&&tk(e),o=!r&&!n&&!i&&tB(e),s=r||n||i||o,a=s?J(e.length,String):[],u=a.length;for(var f in e)(t||eo.call(e,f))&&!(s&&("length"==f||i&&("offset"==f||"parent"==f)||o&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||tc(f,u)))&&a.push(f);return a}function eX(e,t,r){(void 0===r||tE(e[t],r))&&(void 0!==r||t in e)||e0(e,t,r)}function eY(e,t,r){var n=e[t];eo.call(e,t)&&tE(n,r)&&(void 0!==r||t in e)||e0(e,t,r)}function eQ(e,t){for(var r=e.length;r--;)if(tE(e[r][0],t))return r;return -1}function e0(e,t,r){"__proto__"==t&&ev?ev(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}ex.prototype.clear=eM,ex.prototype.delete=ek,ex.prototype.get=eO,ex.prototype.has=eT,ex.prototype.set=eI,eP.prototype.clear=eL,eP.prototype.delete=eB,eP.prototype.get=eN,eP.prototype.has=eC,eP.prototype.set=ej,eD.prototype.clear=eF,eD.prototype.delete=eU,eD.prototype.get=eq,eD.prototype.has=e$,eD.prototype.set=ez,eH.prototype.clear=eW,eH.prototype.delete=eV,eH.prototype.get=eG,eH.prototype.has=eZ,eH.prototype.set=eK;var e1=ts();function e2(e){return null==e?void 0===e?A:y:ey&&ey in Object(e)?tf(e):tm(e)}function e6(e){return tP(e)&&e2(e)==u}function e3(e){return!(!tI(e)||tp(e))&&(tO(e)?ef:j).test(tS(e))}function e8(e){return tP(e)&&tT(e.length)&&!!F[e2(e)]}function e4(e){if(!tI(e))return tg(e);var t=tb(e),r=[];for(var n in e)"constructor"==n&&(t||!eo.call(e,n))||r.push(n);return r}function e5(e,t,r,n,i){e!==t&&e1(t,function(o,s){if(i||(i=new eH),tI(o))e7(e,t,s,r,e5,n,i);else{var a=n?n(tv(e,s),o,s+"",e,t,i):void 0;void 0===a&&(a=o),eX(e,s,a)}},tC)}function e7(e,t,r,n,i,o,s){var a=tv(e,r),u=tv(t,r),f=s.get(u);if(f){eX(e,r,f);return}var l=o?o(a,u,r+"",e,t,s):void 0,c=void 0===l;if(c){var d=tR(u),h=!d&&tk(u),p=!d&&!h&&tB(u);l=u,d||h||p?tR(a)?l=a:tM(a)?l=tn(a):h?(c=!1,l=te(u,!0)):p?(c=!1,l=tr(u,!0)):l=[]:tL(u)||tA(u)?(l=a,tA(a)?l=tN(a):(!tI(a)||tO(a))&&(l=tl(u))):c=!1}c&&(s.set(u,l),i(l,u,n,o,s),s.delete(u)),eX(e,r,l)}function e9(e,t){return tw(ty(e,t,tF),e+"")}function te(e,t){if(t)return e.slice();var r=e.length,n=eh?eh(r):new e.constructor(r);return e.copy(n),n}function tt(e){var t=new e.constructor(e.byteLength);return new ed(t).set(new ed(e)),t}function tr(e,t){var r=t?tt(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function tn(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function ti(e,t,r,n){var i=!r;r||(r={});for(var o=-1,s=t.length;++o<s;){var a=t[o],u=n?n(r[a],e[a],a,r,e):void 0;void 0===u&&(u=e[a]),i?e0(r,a,u):eY(r,a,u)}return r}function to(e){return e9(function(t,r){var n=-1,i=r.length,o=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,s&&td(r[0],r[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);++n<i;){var a=r[n];a&&e(t,a,n,o)}return t})}function ts(e){return function(t,r,n){for(var i=-1,o=Object(t),s=n(t),a=s.length;a--;){var u=s[e?a:++i];if(!1===r(o[u],u,o))break}return t}}function ta(e,t){var r=e.__data__;return th(t)?r["string"==typeof t?"string":"hash"]:r.map}function tu(e,t){var r=Y(e,t);return e3(r)?r:void 0}function tf(e){var t=eo.call(e,ey),r=e[ey];try{e[ey]=void 0;var n=!0}catch(e){}var i=ea.call(e);return n&&(t?e[ey]=r:delete e[ey]),i}function tl(e){return"function"!=typeof e.constructor||tb(e)?{}:eR(ep(e))}function tc(e,t){var r=typeof e;return!!(t=null==t?a:t)&&("number"==r||"symbol"!=r&&D.test(e))&&e>-1&&e%1==0&&e<t}function td(e,t,r){if(!tI(r))return!1;var n=typeof t;return("number"==n?!!(tx(r)&&tc(t,r.length)):"string"==n&&t in r)&&tE(r[t],e)}function th(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function tp(e){return!!es&&es in e}function tb(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||er)}function tg(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}function tm(e){return ea.call(e)}function ty(e,t,r){return t=e_(void 0===t?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=e_(n.length-t,0),s=Array(o);++i<o;)s[i]=n[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=n[i];return a[t]=r(s),K(e,this,a)}}function tv(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var tw=t_(ev?function(e,t){return ev(e,"toString",{configurable:!0,enumerable:!1,value:tD(t),writable:!0})}:tF);function t_(e){var t=0,r=0;return function(){var n=eS(),i=s-(n-r);if(r=n,i>0){if(++t>=o)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function tS(e){if(null!=e){try{return ei.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function tE(e,t){return e===t||e!=e&&t!=t}var tA=e6(function(){return arguments}())?e6:function(e){return tP(e)&&eo.call(e,"callee")&&!eg.call(e,"callee")},tR=Array.isArray;function tx(e){return null!=e&&tT(e.length)&&!tO(e)}function tM(e){return tP(e)&&tx(e)}var tk=ew||tU;function tO(e){if(!tI(e))return!1;var t=e2(e);return t==p||t==b||t==l||t==w}function tT(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function tI(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function tP(e){return null!=e&&"object"==typeof e}function tL(e){if(!tP(e)||e2(e)!=v)return!1;var t=ep(e);if(null===t)return!0;var r=eo.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&ei.call(r)==eu}var tB=Z?X(Z):e8;function tN(e){return ti(e,tC(e))}function tC(e){return tx(e)?eJ(e,!0):e4(e)}var tj=to(function(e,t,r){e5(e,t,r)});function tD(e){return function(){return e}}function tF(e){return e}function tU(){return!1}e.exports=tj},37554:function(e,t,r){var n,i;!function(o,s){"use strict";void 0!==(i="function"==typeof(n=s)?n.call(t,r,t,e):n)&&(e.exports=i)}(0,function(){"use strict";var e=function(){},t="undefined",r=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"],i={},o=null;function s(e,t){var r=e[t];if("function"==typeof r.bind)return r.bind(e);try{return Function.prototype.bind.call(r,e)}catch(t){return function(){return Function.prototype.apply.apply(r,[e,arguments])}}}function a(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function u(n){return"debug"===n&&(n="log"),typeof console!==t&&("trace"===n&&r?a:void 0!==console[n]?s(console,n):void 0!==console.log?s(console,"log"):e)}function f(){for(var r=this.getLevel(),i=0;i<n.length;i++){var o=n[i];this[o]=i<r?e:this.methodFactory(o,r,this.name)}if(this.log=this.debug,typeof console===t&&r<this.levels.SILENT)return"No console available for logging"}function l(e){return function(){typeof console!==t&&(f.call(this),this[e].apply(this,arguments))}}function c(e,t,r){return u(e)||l.apply(this,arguments)}function d(e,r){var s,a,u,l=this,d="loglevel";function h(e){var r=(n[e]||"silent").toUpperCase();if(typeof window!==t&&d){try{window.localStorage[d]=r;return}catch(e){}try{window.document.cookie=encodeURIComponent(d)+"="+r+";"}catch(e){}}}function p(){var e;if(typeof window!==t&&d){try{e=window.localStorage[d]}catch(e){}if(typeof e===t)try{var r=window.document.cookie,n=encodeURIComponent(d),i=r.indexOf(n+"=");-1!==i&&(e=/^([^;]+)/.exec(r.slice(i+n.length+1))[1])}catch(e){}return void 0===l.levels[e]&&(e=void 0),e}}function b(){if(typeof window!==t&&d){try{window.localStorage.removeItem(d)}catch(e){}try{window.document.cookie=encodeURIComponent(d)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}function g(e){var t=e;if("string"==typeof t&&void 0!==l.levels[t.toUpperCase()]&&(t=l.levels[t.toUpperCase()]),"number"==typeof t&&t>=0&&t<=l.levels.SILENT)return t;
10throw TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?d+=":"+e:"symbol"==typeof e&&(d=void 0),l.name=e,l.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},l.methodFactory=r||c,l.getLevel=function(){return null!=u?u:null!=a?a:s},l.setLevel=function(e,t){return u=g(e),!1!==t&&h(u),f.call(l)},l.setDefaultLevel=function(e){a=g(e),p()||l.setLevel(e,!1)},l.resetLevel=function(){u=null,b(),f.call(l)},l.enableAll=function(e){l.setLevel(l.levels.TRACE,e)},l.disableAll=function(e){l.setLevel(l.levels.SILENT,e)},l.rebuild=function(){if(o!==l&&(s=g(o.getLevel())),f.call(l),o===l)for(var e in i)i[e].rebuild()},s=g(o?o.getLevel():"WARN");var m=p();null!=m&&(u=g(m)),f.call(l)}(o=new d).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw TypeError("You must supply a name when creating a logger.");var t=i[e];return t||(t=i[e]=new d(e,o.methodFactory)),t};var h=typeof window!==t?window.log:void 0;return o.noConflict=function(){return typeof window!==t&&window.log===o&&(window.log=h),o},o.getLoggers=function(){return i},o.default=o,o})},89801:function(e,t,r){"use strict";var n=r(9109).Buffer,i=r(25566);Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidStatusCodeError=t.InvalidCertError=void 0;let o=Object.freeze({redirect:!0,expectStatusCode:200,headers:{},full:!1,keepAlive:!0,cors:!1,referrer:!1,sslAllowSelfSigned:!1,_redirectCount:0});class s extends Error{constructor(e,t){super(e),this.fingerprint256=t}}t.InvalidCertError=s;class a extends Error{constructor(e){super(`Request Failed. Status Code: ${e}`),this.statusCode=e}}function u(e,t){if(!t||"text"===t||"json"===t)try{let r=new TextDecoder("utf8",{fatal:!0}).decode(e);if("text"===t)return r;try{return JSON.parse(r)}catch(e){if("json"===t)throw e;return r}}catch(e){if("text"===t||"json"===t)throw e}return e}t.InvalidStatusCodeError=a;let f={};function l(e,t){let i={...o,...t},c=r(65562),d=r(1337),h=r(42157),{promisify:p}=r(11786),{resolve:b}=r(48464),g=!!/^https/.test(e),m={method:i.method||"GET",headers:{"Accept-Encoding":"gzip, deflate, br"}},y=e=>e.replace(/:| /g,"").toLowerCase();if(i.keepAlive){let e={keepAlive:!0,keepAliveMsecs:3e4,maxFreeSockets:1024,maxCachedSessions:1024},t=[g,g&&i.sslPinnedCertificates?.map(e=>y(e)).sort()].join();m.agent=f[t]||(f[t]=new(g?d:c).Agent(e))}"json"===i.type&&(m.headers["Content-Type"]="application/json"),i.data&&(i.method||(m.method="POST"),m.body="json"===i.type?JSON.stringify(i.data):i.data),m.headers={...m.headers,...i.headers},i.sslAllowSelfSigned&&(m.rejectUnauthorized=!1);let v=async t=>{let r=t.statusCode;if(i.redirect&&300<=r&&r<400&&t.headers.location){if(10==i._redirectCount)throw Error("Request failed. Too much redirects.");return i._redirectCount+=1,await l(b(e,t.headers.location),i)}if(i.expectStatusCode&&r!==i.expectStatusCode)throw t.resume(),new a(r);let o=[];for await(let e of t)o.push(e);let s=n.concat(o),f=t.headers["content-encoding"];"br"===f&&(s=await p(h.brotliDecompress)(s)),("gzip"===f||"deflate"===f)&&(s=await p(h.unzip)(s));let c=u(s,i.type);return i.full?{headers:t.headers,status:r,body:c}:c};return new Promise((t,r)=>{let n=async t=>{if(t&&"DEPTH_ZERO_SELF_SIGNED_CERT"===t.code)try{await l(e,{...i,sslAllowSelfSigned:!0,sslPinnedCertificates:[]})}catch(e){e&&e.fingerprint256&&(t=new s(`Self-signed SSL certificate: ${e.fingerprint256}`,e.fingerprint256))}r(t)},o=(g?d:c).request(e,m,e=>{e.on("error",n),(async()=>{try{t(await v(e))}catch(e){r(e)}})()});o.on("error",n);let a=i.sslPinnedCertificates?.map(e=>y(e)),u=e=>{let t=y(e.getPeerCertificate()?.fingerprint256||"");if(!(!t&&e.isSessionReused())&&!a.includes(t))return o.emit("error",new s(`Invalid SSL certificate: ${t} Expected: ${a}`,t)),o.abort()};i.sslPinnedCertificates&&o.on("socket",e=>{e.listeners("secureConnect").map(e=>(e.name||"").replace("bound ","")).includes("mfetchSecureConnect")||e.on("secureConnect",u.bind(null,e))}),i.keepAlive&&o.setNoDelay(!0),m.body&&o.write(m.body),o.end()})}let c=new Set(["Accept","Accept-Language","Content-Language","Content-Type"].map(e=>e.toLowerCase())),d=new Set(["Accept-Charset","Accept-Encoding","Access-Control-Request-Headers","Access-Control-Request-Method","Connection","Content-Length","Cookie","Cookie2","Date","DNT","Expect","Host","Keep-Alive","Origin","Referer","TE","Trailer","Transfer-Encoding","Upgrade","Via"].map(e=>e.toLowerCase()));async function h(e,t){let r={...o,...t},n=new Headers;"json"===r.type&&n.set("Content-Type","application/json");let i=new URL(e);if(i.username){let e=btoa(`${i.username}:${i.password}`);n.set("Authorization",`Basic ${e}`),i.username="",i.password=""}for(let t in e=""+i,r.headers){let e=t.toLowerCase();(c.has(e)||r.cors&&!d.has(e))&&n.set(t,r.headers[t])}let s={headers:n,redirect:r.redirect?"follow":"manual"};r.referrer||(s.referrerPolicy="no-referrer"),r.cors&&(s.mode="cors"),r.data&&(r.method||(s.method="POST"),s.body="json"===r.type?JSON.stringify(r.data):r.data);let f=await fetch(e,s);if(r.expectStatusCode&&f.status!==r.expectStatusCode)throw new a(f.status);let l=u(new Uint8Array(await f.arrayBuffer()),r.type);return r.full?{headers:Object.fromEntries(f.headers.entries()),status:f.status,body:l}:l}let p=!!("object"==typeof i&&i.versions&&i.versions.node&&i.versions.v8);function b(e,t){return(p?l:h)(e,t)}t.default=b},71974:function(e){function t(e,t){if(!e)throw Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,r){if(e!=t)throw Error(r||"Assertion failed: "+e+" != "+t)}},40697:function(e,t){"use strict";var r=t;function n(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!=typeof e){for(var n=0;n<e.length;n++)r[n]=0|e[n];return r}if("hex"===t){(e=e.replace(/[^a-z0-9]+/ig,"")).length%2!=0&&(e="0"+e);for(var n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16))}else for(var n=0;n<e.length;n++){var i=e.charCodeAt(n),o=i>>8,s=255&i;o?r.push(o,s):r.push(s)}return r}function i(e){return 1===e.length?"0"+e:e}function o(e){for(var t="",r=0;r<e.length;r++)t+=i(e[r].toString(16));return t}r.toArray=n,r.zero2=i,r.toHex=o,r.encode=function(e,t){return"hex"===t?o(e):e}},42157:function(e,t,r){var n="/",i=r(9109).Buffer,o=r(25566);!function(){"use strict";var t={742:function(e,t,r){var n=r(491),s=r(562),a=r(450),u=r(324),f=r(320);for(var l in f)t[l]=f[l];t.NONE=0,t.DEFLATE=1,t.INFLATE=2,t.GZIP=3,t.GUNZIP=4,t.DEFLATERAW=5,t.INFLATERAW=6,t.UNZIP=7;var c=31,d=139;function h(e){if("number"!=typeof e||e<t.DEFLATE||e>t.UNZIP)throw TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=e,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}h.prototype.close=function(){if(this.write_in_progress){this.pending_close=!0;return}this.pending_close=!1,n(this.init_done,"close before init"),n(this.mode<=t.UNZIP),this.mode===t.DEFLATE||this.mode===t.GZIP||this.mode===t.DEFLATERAW?a.deflateEnd(this.strm):(this.mode===t.INFLATE||this.mode===t.GUNZIP||this.mode===t.INFLATERAW||this.mode===t.UNZIP)&&u.inflateEnd(this.strm),this.mode=t.NONE,this.dictionary=null},h.prototype.write=function(e,t,r,n,i,o,s){return this._write(!0,e,t,r,n,i,o,s)},h.prototype.writeSync=function(e,t,r,n,i,o,s){return this._write(!1,e,t,r,n,i,o,s)},h.prototype._write=function(e,r,s,a,u,f,l,c){if(n.equal(arguments.length,8),n(this.init_done,"write before init"),n(this.mode!==t.NONE,"already finalized"),n.equal(!1,this.write_in_progress,"write already in progress"),n.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,n.equal(!1,void 0===r,"must provide flush value"),this.write_in_progress=!0,r!==t.Z_NO_FLUSH&&r!==t.Z_PARTIAL_FLUSH&&r!==t.Z_SYNC_FLUSH&&r!==t.Z_FULL_FLUSH&&r!==t.Z_FINISH&&r!==t.Z_BLOCK)throw Error("Invalid flush value");if(null==s&&(s=i.alloc(0),u=0,a=0),this.strm.avail_in=u,this.strm.input=s,this.strm.next_in=a,this.strm.avail_out=c,this.strm.output=f,this.strm.next_out=l,this.flush=r,!e)return(this._process(),this._checkError())?this._afterSync():void 0;var d=this;return o.nextTick(function(){d._process(),d._after()}),this},h.prototype._afterSync=function(){var e=this.strm.avail_out,t=this.strm.avail_in;return this.write_in_progress=!1,[t,e]},h.prototype._process=function(){var e=null;switch(this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=a.deflate(this.strm,this.flush);break;case t.UNZIP:switch(this.strm.avail_in>0&&(e=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(null===e)break;if(this.strm.input[e]===c){if(this.gzip_id_bytes_read=1,e++,1===this.strm.avail_in)break}else{this.mode=t.INFLATE;break}case 1:if(null===e)break;this.strm.input[e]===d?(this.gzip_id_bytes_read=2,this.mode=t.GUNZIP):this.mode=t.INFLATE;break;default:throw Error("invalid number of gzip magic number bytes read")}case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:for(this.err=u.inflate(this.strm,this.flush),this.err===t.Z_NEED_DICT&&this.dictionary&&(this.err=u.inflateSetDictionary(this.strm,this.dictionary),this.err===t.Z_OK?this.err=u.inflate(this.strm,this.flush):this.err===t.Z_DATA_ERROR&&(this.err=t.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===t.GUNZIP&&this.err===t.Z_STREAM_END&&0!==this.strm.next_in[0];)this.reset(),this.err=u.inflate(this.strm,this.flush);break;default:throw Error("Unknown mode "+this.mode)}}
vendor: 3,400 bytes, line 10
10,h.prototype._checkError=function(){switch(this.err){case t.Z_OK:case t.Z_BUF_ERROR:if(0!==this.strm.avail_out&&this.flush===t.Z_FINISH)return this._error("unexpected end of file"),!1;break;case t.Z_STREAM_END:break;case t.Z_NEED_DICT:return null==this.dictionary?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},h.prototype._after=function(){if(this._checkError()){var e=this.strm.avail_out,t=this.strm.avail_in;this.write_in_progress=!1,this.callback(t,e),this.pending_close&&this.close()}},h.prototype._error=function(e){this.strm.msg&&(e=this.strm.msg),this.onerror(e,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},h.prototype.init=function(e,r,i,o,s){n(4==arguments.length||5==arguments.length,"init(windowBits, level, memLevel, strategy, [dictionary])"),n(e>=8&&e<=15,"invalid windowBits"),n(r>=-1&&r<=9,"invalid compression level"),n(i>=1&&i<=9,"invalid memlevel"),n(o===t.Z_FILTERED||o===t.Z_HUFFMAN_ONLY||o===t.Z_RLE||o===t.Z_FIXED||o===t.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(r,e,i,o,s),this._setDictionary()},h.prototype.params=function(){throw Error("deflateParams Not supported")},h.prototype.reset=function(){this._reset(),this._setDictionary()},h.prototype._init=function(e,r,n,i,o){switch(this.level=e,this.windowBits=r,this.memLevel=n,this.strategy=i,this.flush=t.Z_NO_FLUSH,this.err=t.Z_OK,(this.mode===t.GZIP||this.mode===t.GUNZIP)&&(this.windowBits+=16),this.mode===t.UNZIP&&(this.windowBits+=32),(this.mode===t.DEFLATERAW||this.mode===t.INFLATERAW)&&(this.windowBits=-1*this.windowBits),this.strm=new s,this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=a.deflateInit2(this.strm,this.level,t.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:case t.UNZIP:this.err=u.inflateInit2(this.strm,this.windowBits);break;default:throw Error("Unknown mode "+this.mode)}this.err!==t.Z_OK&&this._error("Init error"),this.dictionary=o,this.write_in_progress=!1,this.init_done=!0},h.prototype._setDictionary=function(){if(null!=this.dictionary){switch(this.err=t.Z_OK,this.mode){case t.DEFLATE:case t.DEFLATERAW:this.err=a.deflateSetDictionary(this.strm,this.dictionary)}this.err!==t.Z_OK&&this._error("Failed to set dictionary")}},h.prototype._reset=function(){switch(this.err=t.Z_OK,this.mode){case t.DEFLATE:case t.DEFLATERAW:case t.GZIP:this.err=a.deflateReset(this.strm);break;case t.INFLATE:case t.INFLATERAW:case t.GUNZIP:this.err=u.inflateReset(this.strm)}this.err!==t.Z_OK&&this._error("Failed to reset stream")},t.Zlib=h},23:function(e,t,r){var n=r(300).Buffer,i=r(781).Transform,s=r(742),a=r(837),u=r(491).ok,f=r(300).kMaxLength,l="Cannot create final Buffer. It would be larger than 0x"+f.toString(16)+" bytes";s.Z_MIN_WINDOWBITS=8,s.Z_MAX_WINDOWBITS=15,s.Z_DEFAULT_WINDOWBITS=15,s.Z_MIN_CHUNK=64,s.Z_MAX_CHUNK=1/0,s.Z_DEFAULT_CHUNK=16384,s.Z_MIN_MEMLEVEL=1,s.Z_MAX_MEMLEVEL=9,s.Z_DEFAULT_MEMLEVEL=8,s.Z_MIN_LEVEL=-1,s.Z_MAX_LEVEL=9,s.Z_DEFAULT_LEVEL=s.Z_DEFAULT_COMPRESSION;for(var c=Object.keys(s),d=0;d<c.length;d++){var h=c[d];h.match(/^Z/)&&Object.defineProperty(t,h,{enumerable:!0,value:s[h],writable:!1})}for(var p={Z_OK:s.Z_OK,Z_STREAM_END:s.Z_STREAM_END,Z_NEED_DICT:s.Z_NEED_DICT,Z_ERRNO:s.Z_ERRNO,Z_STREAM_ERROR:s.Z_STREAM_ERROR,Z_DATA_ERROR:s.Z_DATA_ERROR,Z_MEM_ERROR:s.Z_MEM_ERROR,Z_BUF_ER
vendor: 7,080 bytes, line 10
10ROR:s.Z_BUF_ERROR,Z_VERSION_ERROR:s.Z_VERSION_ERROR},b=Object.keys(p),g=0;g<b.length;g++){var m=b[g];p[p[m]]=m}function y(e,t,r){var i=[],o=0;function s(){for(var t;null!==(t=e.read());)i.push(t),o+=t.length;e.once("readable",s)}function a(t){e.removeListener("end",u),e.removeListener("readable",s),r(t)}function u(){var t,s=null;o>=f?s=RangeError(l):t=n.concat(i,o),i=[],e.close(),r(s,t)}e.on("error",a),e.on("end",u),e.end(t),s()}function v(e,t){if("string"==typeof t&&(t=n.from(t)),!n.isBuffer(t))throw TypeError("Not a string or buffer");var r=e._finishFlushFlag;return e._processChunk(t,r)}function w(e){if(!(this instanceof w))return new w(e);k.call(this,e,s.DEFLATE)}function _(e){if(!(this instanceof _))return new _(e);k.call(this,e,s.INFLATE)}function S(e){if(!(this instanceof S))return new S(e);k.call(this,e,s.GZIP)}function E(e){if(!(this instanceof E))return new E(e);k.call(this,e,s.GUNZIP)}function A(e){if(!(this instanceof A))return new A(e);k.call(this,e,s.DEFLATERAW)}function R(e){if(!(this instanceof R))return new R(e);k.call(this,e,s.INFLATERAW)}function x(e){if(!(this instanceof x))return new x(e);k.call(this,e,s.UNZIP)}function M(e){return e===s.Z_NO_FLUSH||e===s.Z_PARTIAL_FLUSH||e===s.Z_SYNC_FLUSH||e===s.Z_FULL_FLUSH||e===s.Z_FINISH||e===s.Z_BLOCK}function k(e,r){var o=this;if(this._opts=e=e||{},this._chunkSize=e.chunkSize||t.Z_DEFAULT_CHUNK,i.call(this,e),e.flush&&!M(e.flush))throw Error("Invalid flush flag: "+e.flush);if(e.finishFlush&&!M(e.finishFlush))throw Error("Invalid flush flag: "+e.finishFlush);if(this._flushFlag=e.flush||s.Z_NO_FLUSH,this._finishFlushFlag=void 0!==e.finishFlush?e.finishFlush:s.Z_FINISH,e.chunkSize&&(e.chunkSize<t.Z_MIN_CHUNK||e.chunkSize>t.Z_MAX_CHUNK))throw Error("Invalid chunk size: "+e.chunkSize);if(e.windowBits&&(e.windowBits<t.Z_MIN_WINDOWBITS||e.windowBits>t.Z_MAX_WINDOWBITS))throw Error("Invalid windowBits: "+e.windowBits);if(e.level&&(e.level<t.Z_MIN_LEVEL||e.level>t.Z_MAX_LEVEL))throw Error("Invalid compression level: "+e.level);if(e.memLevel&&(e.memLevel<t.Z_MIN_MEMLEVEL||e.memLevel>t.Z_MAX_MEMLEVEL))throw Error("Invalid memLevel: "+e.memLevel);if(e.strategy&&e.strategy!=t.Z_FILTERED&&e.strategy!=t.Z_HUFFMAN_ONLY&&e.strategy!=t.Z_RLE&&e.strategy!=t.Z_FIXED&&e.strategy!=t.Z_DEFAULT_STRATEGY)throw Error("Invalid strategy: "+e.strategy);if(e.dictionary&&!n.isBuffer(e.dictionary))throw Error("Invalid dictionary: it should be a Buffer instance");this._handle=new s.Zlib(r);var a=this;this._hadError=!1,this._handle.onerror=function(e,r){O(a),a._hadError=!0;var n=Error(e);n.errno=r,n.code=t.codes[r],a.emit("error",n)};var u=t.Z_DEFAULT_COMPRESSION;"number"==typeof e.level&&(u=e.level);var f=t.Z_DEFAULT_STRATEGY;"number"==typeof e.strategy&&(f=e.strategy),this._handle.init(e.windowBits||t.Z_DEFAULT_WINDOWBITS,u,e.memLevel||t.Z_DEFAULT_MEMLEVEL,f,e.dictionary),this._buffer=n.allocUnsafe(this._chunkSize),this._offset=0,this._level=u,this._strategy=f,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!o._handle},configurable:!0,enumerable:!0})}function O(e,t){t&&o.nextTick(t),e._handle&&(e._handle.close(),e._handle=null)}function T(e){e.emit("close")}Object.defineProperty(t,"codes",{enumerable:!0,value:Object.freeze(p),writable:!1}),t.Deflate=w,t.Inflate=_,t.Gzip=S,t.Gunzip=E,t.DeflateRaw=A,t.InflateRaw=R,t.Unzip=x,t.createDeflate=function(e){return new w(e)},t.createInflate=function(e){return new _(e)},t.createDeflateRaw=function(e){return new A(e)},t.createInflateRaw=function(e){return new R(e)},t.createGzip=function(e){return new S(e)},t.createGunzip=function(e){return new E(e)},t.createUnzip=function(e){return new x(e)},t.deflate=function(e,t,r){return"function"==typeof t&&(r=t,t={}),y(new w(t),e,r)},t.deflateSync=function(e,t){return v(new w(t),e)},t.gzip=function(e,t,r){return"function"==typeof t&&(r=t,t={}),y(new S(t),e,r)},t.gzipSync=function(e,t){return v(new S(t),e)},t.deflateRaw=function(e,t,r){return"function"==typeof t&&(r=t,t={}),y(new A(t),e,r)},t.deflateRawSync=function(e,t){return v(new A(t),e)},t.unzip=function(e,t,r){return"function"==typeof t&&(r=t,t={}),y(new x(t),e,r)},t.unzipSync=function(e,t){return v(new x(t),e)},t.inflate=function(e,t,r){return"function"==typeof t&&(r=t,t={}),y(new _(t),e,r)},t.inflateSync=function(e,t){return v(new _(t),e)},t.gunzip=function(e,t,r){return"function"==typeof t&&(r=t,t={}),y(new E(t),e,r)},t.gunzipSync=function(e,t){return v(new E(t),e)},t.inflateRaw=function(e,t,r){return"function"==typeof t&&(r=t,t={}),y(new R(t),e,r)},t.inflateRawSync=function(e,t){return v(new R(t),e)},a.inherits(k,i),k.prototype.params=function(e,r,n){if(e<t.Z_MIN_LEVEL||e>t.Z_MAX_LEVEL)throw RangeError("Invalid compression level: "+e);if(r!=t.Z_FILTERED&&r!=t.Z_HUFFMAN_ONLY&&r!=t.Z_RLE&&r!=t.Z_FIXED&&r!=t.Z_DEFAULT_STRATEGY)throw TypeError("Invalid strategy: "+r);if(this._level!==e||this._strategy!==r){var i=this;this.flush(s.Z_SYNC_FLUSH,function(){u(i._handle,"zlib binding closed"),i._handle.params(e,r),!i._hadError&&(i._level=e,i._strategy=r,n&&n())})}else o.nextTick(n)},k.prototype.reset=function(){return u(this._handle,"zlib binding closed"),this._handle.reset()},k.prototype._flush=function(e){this._transform(n.alloc(0),"",e)},k.prototype.flush=function(e,t){var r=this,i=this._writableState;"function"!=typeof e&&(void 0!==e||t)||(t=e,e=s.Z_FULL_FLUSH),i.ended?t&&o.nextTick(t):i.ending?t&&this.once("end",t):i.needDrain?t&&this.once("drain",function(){return r.flush(e,t)}):(this._flushFlag=e,this.write(n.alloc(0),"",t))},k.prototype.close=function(e){O(this,e),o.nextTick(T,this)},k.prototype._transform=function(e,t,r){var i,o=this._writableState,a=(o.ending||o.ended)&&(!e||o.length===e.length);return null===e||n.isBuffer(e)?this._handle?void(a?i=this._finishFlushFlag:(i=this._flushFlag,e.length>=o.length&&(this._flushFlag=this._opts.flush||s.Z_NO_FLUSH)),this._processChunk(e,i,r)):r(Error("zlib binding closed")):r(Error("invalid input"))},k.prototype._processChunk=function(e,t,r){var i=e&&e.length,o=this._chunkSize-this._offset,s=0,a=this,c="function"==typeof r;if(!c){var d,h=[],p=0;this.on("error",function(e){d=e}),u(this._handle,"zlib binding closed");do var b=this._handle.writeSync(t,e,s,i,this._buffer,this._offset,o);while(!this._hadError&&y(b[0],b[1]));if(this._hadError)throw d;if(p>=f)throw O(this),RangeError(l);var g=n.concat(h,p);return O(this),g}u(this._handle,"zlib binding closed");var m=this._handle.write(t,e,s,i,this._buffer,this._offset,o);function y(f,l){if(this&&(this.buffer=null,this.callback=null),!a._hadError){var d=o-l;if(u(d>=0,"have should not go down"),d>0){var b=a._buffer.slice(a._offset,a._offset+d);a._offset+=d,c?a.push(b):(h.push(b),p+=b.length)}if((0===l||a._offset>=a._chunkSize)&&(o=a._chunkSize,a._offset=0,a._buffer=n.allocUnsafe(a._chunkSize)),0===l){if(s+=i-f,i=f,!c)return!0;var g=a._handle.write(t,e,s,i,a._buffer,a._offset,a._chunkSize);return g.callback=y,void(g.buffer=e)}if(!c)return!1;r()}}m.buffer=e,m.callback=y},a.inherits(w,k),a.inherits(_,k),a.inherits(S,k),a.inherits(E,k),a.inherits(A,k),a.inherits(R,
10k),a.inherits(x,k)},380:function(e,t){var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw TypeError(r+"must be non-object");for(var i in r)n(r,i)&&(e[i]=r[i])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,r,n,i){if(t.subarray&&e.subarray){e.set(t.subarray(r,r+n),i);return}for(var o=0;o<n;o++)e[i+o]=t[r+o]},flattenChunks:function(e){var t,r,n,i,o,s;for(t=0,n=0,r=e.length;t<r;t++)n+=e[t].length;for(t=0,s=new Uint8Array(n),i=0,r=e.length;t<r;t++)o=e[t],s.set(o,i),i+=o.length;return s}},o={arraySet:function(e,t,r,n,i){for(var o=0;o<n;o++)e[i+o]=t[r+o]},flattenChunks:function(e){return[].concat.apply([],e)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,i)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,o))},t.setTyped(r)},496:function(e){function t(e,t,r,n){for(var i=65535&e|0,o=e>>>16&65535|0,s=0;0!==r;){s=r>2e3?2e3:r,r-=s;do o=o+(i=i+t[n++]|0)|0;while(--s);i%=65521,o%=65521}return i|o<<16|0}e.exports=t},320:function(e){e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},307:function(e){var t=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();function r(e,r,n,i){var o=t,s=i+n;e^=-1;for(var a=i;a<s;a++)e=e>>>8^o[(e^r[a])&255];return -1^e}e.exports=r},450:function(e,t,r){var n,i=r(380),o=r(842),s=r(496),a=r(307),u=r(31),f=0,l=1,c=3,d=4,h=5,p=0,b=1,g=-2,m=-3,y=-5,v=-1,w=1,_=2,S=3,E=4,A=0,R=2,x=8,M=9,k=15,O=8,T=286,I=30,P=19,L=573,B=15,N=3,C=258,j=262,D=32,F=42,U=69,q=73,$=91,z=103,H=113,W=666,V=1,G=2,Z=3,K=4,J=3;function X(e,t){return e.msg=u[t],t}function Y(e){return(e<<1)-(e>4?9:0)}function Q(e){for(var t=e.length;--t>=0;)e[t]=0}function ee(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(i.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function et(e,t){o._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,ee(e.strm)}function er(e,t){e.pending_buf[e.pending++]=t}function en(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function ei(e,t,r,n){var o=e.avail_in;return(o>n&&(o=n),0===o)?0:(e.avail_in-=o,i.arraySet(t,e.input,e.next_in,o,r),1===e.state.wrap?e.adler=s(e.adler,t,o,r):2===e.state.wrap&&(e.adler=a(e.adler,t,o,r)),e.next_in+=o,e.total_in+=o,o)}function eo(e,t){var r,n,i=e.max_chain_length,o=e.strstart,s=e.prev_length,a=e.nice_match,u=e.strstart>e.w_size-j?e.strstart-(e.w_size-j):0,f=e.window,l=e.w_mask,c=e.prev,d=e.strstart+C,h=f[o+s-1],p=f[o+s];e.prev_length>=e.good_match&&(i>>=2),a>e.lookahead&&(a=e.lookahead);do{if(f[(r=t)+s]!==p||f[r+s-1]!==h||f[r]!==f[o]||f[++r]!==f[o+1])continue;o+=2,r++;do;while(f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&o<d);if(n=C-(d-o),o=d-C,n>s){if(e.match_start=t,s=n,n>=a)break;h=f[o+s-1],p=f[o+s]}}while((t=c[t&l])>u&&0!=--i);return s<=e.lookahead?s:e.lookahead}function es(e){var t,r,n,o,s,a=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=a+(a-j)){i.arraySet(e.window,e.window,a,a,0),e.match_start-=a,e.strstart-=a,e.block_start-=a,t=r=e.hash_size;do n=e.head[--t],e.head[t]=n>=a?n-a:0;while(--r);t=r=a;do n=e.prev[--t],e.prev[t]=n>=a?n-a:0;while(--r);o+=a}if(0===e.strm.avail_in)break;if(r=ei(e.strm,e.window,e.strstart+e.lookahead,o),e.lookahead+=r,e.lookahead+e.insert>=N)for(s=e.strstart-e.insert,e.ins_h=e.window[s],e.ins_h=(e.ins_h<<e.hash_shift^e.window[s+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[s+N-1])&e.hash_mask,e.prev[s&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=s,s++,e.insert--,!(e.lookahead+e.insert<N)););}while(e.lookahead<j&&0!==e.strm.avail_in)}function ea(e,t){for(var r,n;;){if(e.lookahead<j){if(es(e),e.lookahead<j&&t===f)return V;if(0===e.lookahead)break}if(r=0,e.lookahead>=N&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+N-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-j&&(e.match_length=eo(e,r)),e.match_length>=N){if(n=o._tr_tally(e,e.strstart-e.match_start,e.match_length-N),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=N){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+N-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask}
vendor: 4,772 bytes, line 10
10else n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(et(e,!1),0===e.strm.avail_out))return V}return(e.insert=e.strstart<N-1?e.strstart:N-1,t===d)?(et(e,!0),0===e.strm.avail_out)?Z:K:e.last_lit&&(et(e,!1),0===e.strm.avail_out)?V:G}function eu(e,t){for(var r,n,i;;){if(e.lookahead<j){if(es(e),e.lookahead<j&&t===f)return V;if(0===e.lookahead)break}if(r=0,e.lookahead>=N&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+N-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=N-1,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-j&&(e.match_length=eo(e,r),e.match_length<=5&&(e.strategy===w||e.match_length===N&&e.strstart-e.match_start>4096)&&(e.match_length=N-1)),e.prev_length>=N&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-N,n=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-N),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+N-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(0!=--e.prev_length);if(e.match_available=0,e.match_length=N-1,e.strstart++,n&&(et(e,!1),0===e.strm.avail_out))return V}else if(e.match_available){if((n=o._tr_tally(e,0,e.window[e.strstart-1]))&&et(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return V}else e.match_available=1,e.strstart++,e.lookahead--}return(e.match_available&&(n=o._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<N-1?e.strstart:N-1,t===d)?(et(e,!0),0===e.strm.avail_out)?Z:K:e.last_lit&&(et(e,!1),0===e.strm.avail_out)?V:G}function ef(e,t){for(var r,n,i,s,a=e.window;;){if(e.lookahead<=C){if(es(e),e.lookahead<=C&&t===f)return V;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=N&&e.strstart>0&&(n=a[i=e.strstart-1])===a[++i]&&n===a[++i]&&n===a[++i]){s=e.strstart+C;do;while(n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&i<s);e.match_length=C-(s-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=N?(r=o._tr_tally(e,1,e.match_length-N),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(et(e,!1),0===e.strm.avail_out))return V}return(e.insert=0,t===d)?(et(e,!0),0===e.strm.avail_out)?Z:K:e.last_lit&&(et(e,!1),0===e.strm.avail_out)?V:G}function el(e,t){for(var r;;){if(0===e.lookahead&&(es(e),0===e.lookahead)){if(t===f)return V;break}if(e.match_length=0,r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(et(e,!1),0===e.strm.avail_out))return V}return(e.insert=0,t===d)?(et(e,!0),0===e.strm.avail_out)?Z:K:e.last_lit&&(et(e,!1),0===e.strm.avail_out)?V:G}function ec(e,t,r,n,i){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=i}function ed(e){e.window_size=2*e.w_size,Q(e.head),e.max_lazy_match=n[e.level].max_lazy,e.good_match=n[e.level].good_length,e.nice_match=n[e.level].nice_length,e.max_chain_length=n[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=N-1,e.match_available=0,e.ins_h=0}function eh(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=x,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*L),this.dyn_dtree=new i.Buf16((2*I+1)*2),this.bl_tree=new i.Buf16((2*P+1)*2),Q(this.dyn_ltree),Q(this.dyn_dtree),Q(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(B+1),this.heap=new i.Buf16(2*T+1),Q(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*T+1),Q(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ep(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=R,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?F:H,e.adler=2===t.wrap?0:1,t.last_flush=f,o._tr_init(t),p):X(e,g)}function eb(e){var t=ep(e);return t===p&&ed(e.state),t}function eg(e,t){return e&&e.state&&2===e.state.wrap?(e.state.gzhead=t,p):g}
vendor: 17,203 bytes, line 10
10function em(e,t,r,n,o,s){if(!e)return g;var a=1;if(t===v&&(t=6),n<0?(a=0,n=-n):n>15&&(a=2,n-=16),o<1||o>M||r!==x||n<8||n>15||t<0||t>9||s<0||s>E)return X(e,g);8===n&&(n=9);var u=new eh;return e.state=u,u.strm=e,u.wrap=a,u.gzhead=null,u.w_bits=n,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=o+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+N-1)/N),u.window=new i.Buf8(2*u.w_size),u.head=new i.Buf16(u.hash_size),u.prev=new i.Buf16(u.w_size),u.lit_bufsize=1<<o+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new i.Buf8(u.pending_buf_size),u.d_buf=1*u.lit_bufsize,u.l_buf=3*u.lit_bufsize,u.level=t,u.strategy=s,u.method=r,eb(e)}function ey(e,t){return em(e,t,x,k,O,A)}function ev(e,t){if(!e||!e.state||t>h||t<0)return e?X(e,g):g;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||i.status===W&&t!==d)return X(e,0===e.avail_out?y:g);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===F){if(2===i.wrap)e.adler=0,er(i,31),er(i,139),er(i,8),i.gzhead?(er(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),er(i,255&i.gzhead.time),er(i,i.gzhead.time>>8&255),er(i,i.gzhead.time>>16&255),er(i,i.gzhead.time>>24&255),er(i,9===i.level?2:i.strategy>=_||i.level<2?4:0),er(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(er(i,255&i.gzhead.extra.length),er(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=a(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=U):(er(i,0),er(i,0),er(i,0),er(i,0),er(i,0),er(i,9===i.level?2:i.strategy>=_||i.level<2?4:0),er(i,J),i.status=H);else{var r,i,s,u,m=x+(i.w_bits-8<<4)<<8,v=-1;m|=(v=i.strategy>=_||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(m|=D),m+=31-m%31,i.status=H,en(i,m),0!==i.strstart&&(en(i,e.adler>>>16),en(i,65535&e.adler)),e.adler=1}}if(i.status===U){if(i.gzhead.extra){for(s=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),ee(e),s=i.pending,i.pending!==i.pending_buf_size));)er(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=q)}else i.status=q}if(i.status===q){if(i.gzhead.name){s=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),ee(e),s=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,er(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),0===u&&(i.gzindex=0,i.status=$)}else i.status=$}if(i.status===$){if(i.gzhead.comment){s=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),ee(e),s=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,er(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),0===u&&(i.status=z)}else i.status=z}if(i.status===z&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&ee(e),i.pending+2<=i.pending_buf_size&&(er(i,255&e.adler),er(i,e.adler>>8&255),e.adler=0,i.status=H)):i.status=H),0!==i.pending){if(ee(e),0===e.avail_out)return i.last_flush=-1,p}else if(0===e.avail_in&&Y(t)<=Y(r)&&t!==d)return X(e,y);if(i.status===W&&0!==e.avail_in)return X(e,y);if(0!==e.avail_in||0!==i.lookahead||t!==f&&i.status!==W){var w=i.strategy===_?el(i,t):i.strategy===S?ef(i,t):n[i.level].func(i,t);if((w===Z||w===K)&&(i.status=W),w===V||w===Z)return 0===e.avail_out&&(i.last_flush=-1),p;if(w===G&&(t===l?o._tr_align(i):t!==h&&(o._tr_stored_block(i,0,0,!1),t===c&&(Q(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),ee(e),0===e.avail_out))return i.last_flush=-1,p}return t!==d?p:i.wrap<=0?b:(2===i.wrap?(er(i,255&e.adler),er(i,e.adler>>8&255),er(i,e.adler>>16&255),er(i,e.adler>>24&255),er(i,255&e.total_in),er(i,e.total_in>>8&255),er(i,e.total_in>>16&255),er(i,e.total_in>>24&255)):(en(i,e.adler>>>16),en(i,65535&e.adler)),ee(e),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?p:b)}function ew(e){var t;return e&&e.state?(t=e.state.status)!==F&&t!==U&&t!==q&&t!==$&&t!==z&&t!==H&&t!==W?X(e,g):(e.state=null,t===H?X(e,m):p):g}function e_(e,t){var r,n,o,a,u,f,l,c,d=t.length;if(!e||!e.state||2===(a=(r=e.state).wrap)||1===a&&r.status!==F||r.lookahead)return g;for(1===a&&(e.adler=s(e.adler,t,d,0)),r.wrap=0,d>=r.w_size&&(0===a&&(Q(r.head),r.strstart=0,r.block_start=0,r.insert=0),c=new i.Buf8(r.w_size),i.arraySet(c,t,d-r.w_size,r.w_size,0),t=c,d=r.w_size),u=e.avail_in,f=e.next_in,l=e.input,e.avail_in=d,e.next_in=0,e.input=t,es(r);r.lookahead>=N;){n=r.strstart,o=r.lookahead-(N-1);do r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+N-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++;while(--o);r.strstart=n,r.lookahead=N-1,es(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=N-1,r.match_available=0,e.next_in=f,e.input=l,e.avail_in=u,r.wrap=a,p}n=[new ec(0,0,0,0,function(e,t){var r=65535;for(65535>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(es(e),0===e.lookahead&&t===f)return V;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,et(e,!1),0===e.strm.avail_out)||e.strstart-e.block_start>=e.w_size-j&&(et(e,!1),0===e.strm.avail_out))return V}return(e.insert=0,t===d)?(et(e,!0),0===e.strm.avail_out)?Z:K:(e.strstart>e.block_start&&(et(e,!1),e.strm.avail_out),V)}),new ec(4,4,8,4,ea),new ec(4,5,16,8,ea),new ec(4,6,32,32,ea),new ec(4,4,16,16,eu),new ec(8,16,32,32,eu),new ec(8,16,128,128,eu),new ec(8,32,128,256,eu),new ec(32,128,258,1024,eu),new ec(32,258,258,4096,eu)],t.deflateInit=ey,t.deflateInit2=em,t.deflateReset=eb,t.deflateResetKeep=ep,t.deflateSetHeader=eg,t.deflate=ev,t.deflateEnd=ew,t.deflateSetDictionary=e_,t.deflateInfo="pako deflate (from Nodeca project)"},333:function(e){var t=30,r=12;e.exports=function(e,n){var i,o,s,a,u,f,l,c,d,h,p,b,g,m,y,v,w,_,S,E,A,R,x,M,k;i=e.state,o=e.next_in,M=e.input,s=o+(e.avail_in-5),a=e.next_out,k=e.output,u=a-(n-e.avail_out),f=a+(e.avail_out-257),l=i.dmax,c=i.wsize,d=i.whave,h=i.wnext,p=i.window,b=i.hold,g=i.bits,m=i.lencode,y=i.distcode,v=(1<<i.lenbits)-1,w=(1<<i.distbits)-1;r:do for(g<15&&(b+=M[o++]<<g,g+=8,b+=M[o++]<<g,g+=8),_=m[b&v];;){if(b>>>=S=_>>>24,g-=S,0==(S=_>>>16&255))k[a++]=65535&_;else if(16&S)for(E=65535&_,(S&=15)&&(g<S&&(b+=M[o++]<<g,g+=8),E+=b&(1<<S)-1,b>>>=S,g-=S),g<15&&(b+=M[o++]<<g,g+=8,b+=M[o++]<<g,g+=8),_=y[b&w];;){if(b>>>=S=_>>>24,g-=S,16&(S=_>>>16&255)){if(A=65535&_,g<(S&=15)&&(b+=M[o++]<<g,(g+=8)<S&&(b+=M[o++]<<g,g+=8)),(A+=b&(1<<S)-1)>l){e.msg="invalid distance too far back",i.mode=t;break r}if(b>>>=S,g-=S,A>(S=a-u)){if((S=A-S)>d&&i.sane){e.msg="invalid distance too far back",i.mode=t;break r}if(R=0,x=p,0===h){if(R+=c-S,S<E){E-=S;do k[a++]=p[R++];while(--S);R=a-A,x=k}}else if(h<S){if(R+=c+h-S,(S-=h)<E){E-=S;do k[a++]=p[R++];while(--S);if(R=0,h<E){E-=S=h;do k[a++]=p[R++];while(--S);R=a-A,x=k}}}else if(R+=h-S,S<E){E-=S;do k[a++]=p[R++];while(--S);R=a-A,x=k}for(;E>2;)k[a++]=x[R++],k[a++]=x[R++],k[a++]=x[R++],E-=3;E&&(k[a++]=x[R++],E>1&&(k[a++]=x[R++]))}else{R=a-A;do k[a++]=k[R++],k[a++]=k[R++],k[a++]=k[R++],E-=3;while(E>2);E&&(k[a++]=k[R++],E>1&&(k[a++]=k[R++]))}}else if((64&S)==0){_=y[(65535&_)+(b&(1<<S)-1)];continue}else{e.msg="invalid distance code",i.mode=t;break r}break}else if((64&S)==0){_=m[(65535&_)+(b&(1<<S)-1)];continue}else if(32&S){i.mode=r;break r}else{e.msg="invalid literal/length code",i.mode=t;break r}break}while(o<s&&a<f);o-=E=g>>3,g-=E<<3,b&=(1<<g)-1,e.next_in=o,e.next_out=a,e.avail_in=o<s?5+(s-o):5-(o-s),e.avail_out=a<f?257+(f-a):257-(a-f),i.hold=b,i.bits=g}},324:function(e,t,r){var n,i,o=r(380),s=r(496),a=r(307),u=r(333),f=r(19),l=0,c=1,d=2,h=4,p=5,b=6,g=0,m=1,y=2,v=-2,w=-3,_=-4,S=-5,E=8,A=1,R=2,x=3,M=4,k=5,O=6,T=7,I=8,P=9,L=10,B=11,N=12,C=13,j=14,D=15,F=16,U=17,q=18,$=19,z=20,H=21,W=22,V=23,G=24,Z=25,K=26,J=27,X=28,Y=29,Q=30,ee=31,et=852,er=592,en=15;function ei(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function eo(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new o.Buf16(320),this.work=new o.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function es(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=A,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new o.Buf32(et),t.distcode=t.distdyn=new o.Buf32(er),t.sane=1,t.back=-1,g):v}function ea(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,es(e)):v}function eu(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15))?v:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,ea(e)):v}function ef(e,t){var r,n;return e?(n=new eo,e.state=n,n.window=null,(r=eu(e,t))!==g&&(e.state=null),r):v}function el(e){return ef(e,en)}var ec=!0;function ed(e){if(ec){var t;for(n=new o.Buf32(512),i=new o.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(f(c,e.lens,0,288,n,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;f(d,e.lens,0,32,i,0,e.work,{bits:5}),ec=!1}e.lencode=n,e.lenbits=9,e.distcode=i,e.distbits=5}function eh(e,t,r,n){var i,s=e.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new o.Buf8(s.wsize)),n>=s.wsize?(o.arraySet(s.window,t,r-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):((i=s.wsize-s.wnext)>n&&(i=n),o.arraySet(s.window,t,r-n,i,s.wnext),(n-=i)?(o.arraySet(s.window,t,r-n,n,0),s.wnext=n,s.whave=s.wsize):(s.wnext+=i,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=i))),0}function ep(e,t){var r,n,i,et,er,en,eo,es,ea,eu,ef,el,ec,ep,eb,eg,em,ey,ev,ew,e_,eS,eE,eA,eR=0,ex=new o.Buf8(4),eM=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return v;(r=e.state).mode===N&&(r.mode=C),er=e.next_out,i=e.output,eo=e.avail_out,et=e.next_in,n=e.input,en=e.avail_in,es=r.hold,ea=r.bits,eu=en,ef=eo,eS=g;r:for(;;)switch(r.mode){case A:if(0===r.wrap){r.mode=C;break}for(;ea<16;){if(0===en)break r;en--,es+=n[et++]<<ea,ea+=8}if(2&r.wrap&&35615===es){r.check=0,ex[0]=255&es,ex[1]=es>>>8&255,r.check=a(r.check,ex,2,0),es=0,ea=0,r.mode=R;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&es)<<8)+(es>>8))%31){e.msg="incorrect header check",r.mode=Q;break}if((15&es)!==E){e.msg="unknown compression method",r.mode=Q;break}if(es>>>=4,ea-=4,e_=(15&es)+8,0===r.wbits)r.wbits=e_;else if(e_>r.wbits){e.msg="invalid window size",r.mode=Q;break}r.dmax=1<<e_,e.adler=r.check=1,r.mode=512&es?L:N,es=0,ea=0;break;case R:for(;ea<16;){if(0===en)break r;en--,es+=n[et++]<<ea,ea+=8}if(r.flags=es,(255&r.flags)!==E){e.msg="unknown compression method",r.mode=Q;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=Q;break}r.head&&(r.head.text=es>>8&1),512&r.flags&&(ex[0]=255&es,ex[1]=es>>>8&255,r.check=a(r.check,ex,2,0)),es=0,ea=0,r.mode=x;case x:for(;ea<32;){if(0===en)break r;en--,es+=n[et++]<<ea,ea+=8}r.head&&(r.head.time=es),512&r.flags&&(ex[0]=255&es,ex[1]=es>>>8&255,ex[2]=es>>>16&255,ex[3]=es>>>24&255,r.check=a(r.check,ex,4,0)),es=0,ea=0,r.mode=M;case M:for(;ea<16;){if(0===en)break r;en--,es+=n[et++]<<ea,ea+=8}r.head&&(r.head.xflags=255&es,r.head.os=es>>8),512&r.flags&&(ex[0]=255&es,ex[1]=es>>>8&255,r.check=a(r.check,ex,2,0)),es=0,ea=0,r.mode=k;case k:if(1024&r.flags){for(;ea<16;){if(0===en)break r;en--,es+=n[et++]<<ea,ea+=8}r.length=es,r.head&&(r.head.extra_len=es),512&r.flags&&(ex[0]=255&es,ex[1]=es>>>8&255,r.check=a(r.check,ex,2,0)),es=0,ea=0}else r.head&&(r.head.extra=null);r.mode=O;case O:if(1024&r.flags&&((el=r.length)>en&&(el=en),el&&(r.head&&(e_=r.head.extra_len-r.length,r.head.extra||(r.head.extra=Array(r.head.extra_len)),o.arraySet(r.head.extra,n,et,el,e_)),512&r.flags&&(r.check=a(r.check,n,el,et)),en-=el,et+=el,r.length-=el),r.length))break r;r.length=0,r.mode=T;case T:if(2048&r.flags){if(0===en)break r;el=0;do e_=n[et+el++],r.head&&e_&&r.length<65536&&(r.head.name+=String.fromCharCode(e_));while(e_&&el<en);if(512&r.flags&&(r.check=a(r.check,n,el,et)),en-=el,et+=el,e_)break r}else r.head&&(r.head.name=null);r.length=0,r.mode=I;case I:if(4096&r.flags){if(0===en)break r;el=0;do e_=n[et+el++],r.head&&e_&&r.length<65536&&(r.head.comment+=String.fromCharCode(e_));while(e_&&el<en);if(512&r.flags&&(r.check=a(r.check,n,el,et)),en-=el,et+=el,e_)break r}else r.head&&(r.head.comment=null);r.mode=P;case P:if(512&r.flags){for(;ea<16;){if(0===en)break r;en--,es+=n[et++]<<ea,ea+=8}if(es!==(65535&r.check)){e.msg="header crc mismatch",r.mode=Q;break}es=0,ea=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=N;break;case L:for(;ea<32;){if(0===en)break r;en--,es+=n[et++]<<ea,ea+=8}e.adler=r.check=ei(es),es=0,ea=0,r.mode=B;case B:if(0===r.havedict)return e.next_out=er,e.avail_out=eo,e.next_in=et,e.avail_in=en,r.hold=es,r.bits=ea,y;e.adler=r.check=1,r.mode=N;case N:if(t===p||t===b)break r;case C:if(r.last){es>>>=7&ea,ea-=7&ea,r.mode=J;break}for(;ea<3;){if(0===en)break r;en--,es+=n[et++]<<ea,ea+=8}switch(r.last=1&es,ea-=1,3&(es>>>=1)){case 0:r.mode=j;break;case 1:if(ed(r),r.mode=z,t===b){es>>>=2,ea-=2;break r}break;case 2:r.mode=U;break;case 3:e.msg="invalid block type",r.mode=Q}es>>>=2,ea-=2;break;case j:for(es>>>=7&ea,ea-=7&ea;ea<32;){if(0===en)break r;en--,es+=n[et++]<<ea,ea+=8}if((65535&es)!=(es>>>16^65535)){e.msg="invalid stored block lengths",r.mode=Q;break}if(r.length=65535&es,es=0,ea=0,r.mode=D,t===b)break r;case D:r.mode=F;case F:if(el=r.length){if(el>en&&(el=en),el>eo&&(el=eo),0===el)break r;o.arraySet(i,n,et,el,er),en-=el,et+=el,eo-=el,er+=el,r.length-=el;break}r.mode=N;break;case U:for(;ea<14;){if(0===en)break r;en--,es+=n[et++]<<ea,ea+=8}if(r.nlen=(31&es)+257,es>>>=5,ea-=5,r.ndist=(31&es)+1,es>>>=5,ea-=5,r.ncode=(15&es)+4,es>>>=4,ea-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=Q;break}r.have=0,r.mode=q;case q:for(;r.have<r.ncode;){for(;ea<3;){if(0===en)break r;en--,es+=n[et++]<<ea,ea+=8}r.lens[eM[r.have++]]=7&es,es>>>=3,ea-=3}for(;r.have<19;)r.lens[eM[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,eE={bits:r.lenbits},eS=f(l,r.lens,0,19,r.lencode,0,r.work,eE),r.lenbits=eE.bits,eS){e.msg="invalid code lengths set",r.mode=Q;break}r.have=0,r.mode=$;case $:for(;r.have<r.nlen+r.ndist;){for(;eb=(eR=r.lencode[es&(1<<r.lenbits)-1])>>>24,eg=eR>>>16&255,em=65535&eR,!(eb<=ea);){if(0===en)break r;en--,es+=n[et++]<<ea,ea+=8}if(em<16)es>>>=eb,ea-=eb,r.lens[r.have++]=em;else{if(16===em){for(eA=eb+2;ea<eA;){if(0===en)break r;en--,es+=n[et++]<<ea,ea+=8}if(es>>>=eb,ea-=eb,0===r.have){e.msg="invalid bit length repeat",r.mode=Q;break}e_=r.lens[r.have-1],el=3+(3&es),es>>>=2,ea-=2}else if(17===em){for(eA=eb+3;ea<eA;){if(0===en)break r;en--,es+=n[et++]<<ea,ea+=8}es>>>=eb,ea-=eb,e_=0,el=3+(7&es),es>>>=3,ea-=3}else{for(eA=eb+7;ea<eA;){if(0===en)break r;en--,es+=n[et++]<<ea,ea+=8}es>>>=eb,ea-=eb,e_=0,el=11+(127&es),es>>>=7,ea-=7}if(r.have+el>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=Q;break}for(;el--;)r.lens[r.have++]=e_}}if(r.mode===Q)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=Q;break}if(r.lenbits=9,eE={bits:r.lenbits},eS=f(c,r.lens,0,r.nlen,r.lencode,0,r.work,eE),r.lenbits=eE.bits,eS){e.msg="invalid literal/lengths set",r.mode=Q;break}if(r.distbits=6,r.distcode=r.distdyn,eE={bits:r.distbits},eS=f(d,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,eE),r.distbits=eE.bits,eS){e.msg="invalid distances set",r.mode=Q;break}if(r.mode=z,t===b)break r;case z:r.mode=H;case H:if(en>=6&&eo>=258){e.next_out=er,e.avail_out=eo,e.next_in=et,e.avail_in=en,r.hold=es,r.bits=ea,u(e,ef),er=e.next_out,i=e.output,eo=e.avail_out,et=e.next_in,n=e.input,en=e.avail_in,es=r.hold,ea=r.bits,r.mode===N&&(r.back=-1);break}for(r.back=0;eb=(eR=r.lencode[es&(1<<r.lenbits)-1])>>>24,eg=eR>>>16&255,em=65535&eR,!(eb<=ea);){if(0===en)break r;en--,es+=n[et++]<<ea,ea+=8}if(eg&&(240&eg)==0){for(ey=eb,ev=eg,ew=em;eb=(eR=r.lencode[ew+((es&(1<<ey+ev)-1)>>ey)])>>>24,eg=eR>>>16&255,em=65535&eR,!(ey+eb<=ea);){if(0===en)break r;en--,es+=n[et++]<<ea,ea+=8}es>>>=ey,ea-=ey,r.back+=ey}if(es>>>=eb,ea-=eb,r.back+=eb,r.length=em,0===eg){r.mode=K;break}if(32&eg){r.back=-1,r.mode=N;break}if(64&eg){e.msg="invalid literal/length code",r.mode=Q;break}r.extra=15&eg,r.mode=W;case W:if(r.extra){for(eA=r.extra;ea<eA;){if(0===en)break r;en--,es+=n[et++]<<ea,ea+=8}r.length+=es&(1<<r.extra)-1,es>>>=r.extra,ea-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=V;case V:for(;
vendor: 11,547 bytes, line 10
10eb=(eR=r.distcode[es&(1<<r.distbits)-1])>>>24,eg=eR>>>16&255,em=65535&eR,!(eb<=ea);){if(0===en)break r;en--,es+=n[et++]<<ea,ea+=8}if((240&eg)==0){for(ey=eb,ev=eg,ew=em;eb=(eR=r.distcode[ew+((es&(1<<ey+ev)-1)>>ey)])>>>24,eg=eR>>>16&255,em=65535&eR,!(ey+eb<=ea);){if(0===en)break r;en--,es+=n[et++]<<ea,ea+=8}es>>>=ey,ea-=ey,r.back+=ey}if(es>>>=eb,ea-=eb,r.back+=eb,64&eg){e.msg="invalid distance code",r.mode=Q;break}r.offset=em,r.extra=15&eg,r.mode=G;case G:if(r.extra){for(eA=r.extra;ea<eA;){if(0===en)break r;en--,es+=n[et++]<<ea,ea+=8}r.offset+=es&(1<<r.extra)-1,es>>>=r.extra,ea-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=Q;break}r.mode=Z;case Z:if(0===eo)break r;if(el=ef-eo,r.offset>el){if((el=r.offset-el)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=Q;break}el>r.wnext?(el-=r.wnext,ec=r.wsize-el):ec=r.wnext-el,el>r.length&&(el=r.length),ep=r.window}else ep=i,ec=er-r.offset,el=r.length;el>eo&&(el=eo),eo-=el,r.length-=el;do i[er++]=ep[ec++];while(--el);0===r.length&&(r.mode=H);break;case K:if(0===eo)break r;i[er++]=r.length,eo--,r.mode=H;break;case J:if(r.wrap){for(;ea<32;){if(0===en)break r;en--,es|=n[et++]<<ea,ea+=8}if(ef-=eo,e.total_out+=ef,r.total+=ef,ef&&(e.adler=r.check=r.flags?a(r.check,i,ef,er-ef):s(r.check,i,ef,er-ef)),ef=eo,(r.flags?es:ei(es))!==r.check){e.msg="incorrect data check",r.mode=Q;break}es=0,ea=0}r.mode=X;case X:if(r.wrap&&r.flags){for(;ea<32;){if(0===en)break r;en--,es+=n[et++]<<ea,ea+=8}if(es!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=Q;break}es=0,ea=0}r.mode=Y;case Y:eS=m;break r;case Q:eS=w;break r;case ee:return _;default:return v}return(e.next_out=er,e.avail_out=eo,e.next_in=et,e.avail_in=en,r.hold=es,r.bits=ea,(r.wsize||ef!==e.avail_out&&r.mode<Q&&(r.mode<J||t!==h))&&eh(e,e.output,e.next_out,ef-e.avail_out))?(r.mode=ee,_):(eu-=e.avail_in,ef-=e.avail_out,e.total_in+=eu,e.total_out+=ef,r.total+=ef,r.wrap&&ef&&(e.adler=r.check=r.flags?a(r.check,i,ef,e.next_out-ef):s(r.check,i,ef,e.next_out-ef)),e.data_type=r.bits+(r.last?64:0)+(r.mode===N?128:0)+(r.mode===z||r.mode===D?256:0),(0===eu&&0===ef||t===h)&&eS===g&&(eS=S),eS)}function eb(e){if(!e||!e.state)return v;var t=e.state;return t.window&&(t.window=null),e.state=null,g}function eg(e,t){var r;return e&&e.state&&(2&(r=e.state).wrap)!=0?(r.head=t,t.done=!1,g):v}function em(e,t){var r,n,i=t.length;return e&&e.state&&(0===(r=e.state).wrap||r.mode===B)?r.mode===B&&(n=s(n=1,t,i,0))!==r.check?w:eh(e,t,i,i)?(r.mode=ee,_):(r.havedict=1,g):v}t.inflateReset=ea,t.inflateReset2=eu,t.inflateResetKeep=es,t.inflateInit=el,t.inflateInit2=ef,t.inflate=ep,t.inflateEnd=eb,t.inflateGetHeader=eg,t.inflateSetDictionary=em,t.inflateInfo="pako inflate (from Nodeca project)"},19:function(e,t,r){var n=r(380),i=15,o=852,s=592,a=0,u=1,f=2,l=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],c=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],d=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],h=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(e,t,r,p,b,g,m,y){var v,w,_,S,E,A,R,x,M,k=y.bits,O=0,T=0,I=0,P=0,L=0,B=0,N=0,C=0,j=0,D=0,F=null,U=0,q=new n.Buf16(i+1),$=new n.Buf16(i+1),z=null,H=0;for(O=0;O<=i;O++)q[O]=0;for(T=0;T<p;T++)q[t[r+T]]++;for(L=k,P=i;P>=1&&0===q[P];P--);if(L>P&&(L=P),0===P)return b[g++]=20971520,b[g++]=20971520,y.bits=1,0;for(I=1;I<P&&0===q[I];I++);for(L<I&&(L=I),C=1,O=1;O<=i;O++)if(C<<=1,(C-=q[O])<0)return -1;if(C>0&&(e===a||1!==P))return -1;for(O=1,$[1]=0;O<i;O++)$[O+1]=$[O]+q[O];for(T=0;T<p;T++)0!==t[r+T]&&(m[$[t[r+T]]++]=T);if(e===a?(F=z=m,A=19):e===u?(F=l,U-=257,z=c,H-=257,A=256):(F=d,z=h,A=-1),D=0,T=0,O=I,E=g,B=L,N=0,_=-1,S=(j=1<<L)-1,e===u&&j>o||e===f&&j>s)return 1;for(;;){R=O-N,m[T]<A?(x=0,M=m[T]):m[T]>A?(x=z[H+m[T]],M=F[U+m[T]]):(x=96,M=0),v=1<<O-N,I=w=1<<B;do b[E+(D>>N)+(w-=v)]=R<<24|x<<16|M|0;while(0!==w);for(v=1<<O-1;D&v;)v>>=1;if(0!==v?(D&=v-1,D+=v):D=0,T++,0==--q[O]){if(O===P)break;O=t[r+m[T]]}if(O>L&&(D&S)!==_){for(0===N&&(N=L),E+=I,C=1<<(B=O-N);B+N<P&&!((C-=q[B+N])<=0);)B++,C<<=1;if(j+=1<<B,e===u&&j>o||e===f&&j>s)return 1;b[_=D&S]=L<<24|B<<16|E-g|0}}return 0!==D&&(b[E+D]=O-N<<24|4194304),y.bits=L,0}},31:function(e){e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},842:function(e,t,r){var n,i,o,s=r(380),a=4,u=0,f=1,l=2;function c(e){for(var t=e.length;--t>=0;)e[t]=0}var d=0,h=1,p=2,b=3,g=258,m=29,y=256,v=286,w=30,_=19,S=573,E=15,A=16,R=7,x=256,M=16,k=17,O=18,T=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],I=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],P=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],L=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],B=512,N=Array(576);c(N);var C=Array(2*w);c(C);var j=Array(B);c(j);var D=Array(g-b+1);c(D);var F=Array(m);c(F);var U=Array(w);function q(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}function $(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function z(e){return e<256?j[e]:j[256+(e>>>7)]}function H(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function W(e,t,r){e.bi_valid>A-r?(e.bi_buf|=t<<e.bi_valid&65535,H(e,e.bi_buf),e.bi_buf=t>>A-e.bi_valid,e.bi_valid+=r-A):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function V(e,t,r){W(e,r[2*t],r[2*t+1])}function G(e,t){var r=0;do r|=1&e,e>>>=1,r<<=1;while(--t>0);return r>>>1}function Z(e){16===e.bi_valid?(H(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}function K(e,t){var r,n,i,o,s,a,u=t.dyn_tree,f=t.max_code,l=t.stat_desc.static_tree,c=t.stat_desc.has_stree,d=t.stat_desc.extra_bits,h=t.stat_desc.extra_base,p=t.stat_desc.max_length,b=0;for(o=0;o<=E;o++)e.bl_count[o]=0;for(u[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<S;r++)(o=u[2*u[2*(n=e.heap[r])+1]+1]+1)>p&&(o=p,b++),u[2*n+1]=o,!(n>f)&&(e.bl_count[o]++,s=0,n>=h&&(s=d[n-h]),a=u[2*n],e.opt_len+=a*(o+s),c&&(e.static_len+=a*(l[2*n+1]+s)));if(0!==b){do{for(o=p-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[p]--,b-=2}while(b>0);for(o=p;0!==o;o--)for(n=e.bl_count[o];0!==n;)!((i=e.heap[--r])>f)&&(u[2*i+1]!==o&&(e.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),n--)}}function J(e,t,r){var n,i,o=Array(E+1),s=0;for(n=1;n<=E;n++)o[n]=s=s+r[n-1]<<1;for(i=0;i<=t;i++){var a=e[2*i+1];0!==a&&(e[2*i]=G(o[a]++,a))}}function X(){var e,t,r,s,a,u=Array(E+1);for(s=0,r=0;s<m-1;s++)for(e=0,F[s]=r;e<1<<T[s];e++)D[r++]=s;for(D[r-1]=s,a=0,s=0;s<16;s++)for(e=0,U[s]=a;e<1<<I[s];e++)j[a++]=s;for(a>>=7;s<w;s++)for(e=0,U[s]=a<<7;e<1<<I[s]-7;e++)j[256+a++]=s;for(t=0;t<=E;t++)u[t]=0;for(e=0;e<=143;)N[2*e+1]=8,e++,u[8]++;for(;e<=255;)N[2*e+1]=9,e++,u[9]++;for(;e<=279;)N[2*e+1]=7,e++,u[7]++;for(;e<=287;)N[2*e+1]=8,e++,u[8]++;for(J(N,v+1,u),e=0;e<w;e++)C[2*e+1]=5,C[2*e]=G(e,5);n=new q(N,T,y+1,v,E),i=new q(C,I,0,w,E),o=new q([],P,0,_,R)}function Y(e){var t;for(t=0;t<v;t++)e.dyn_ltree[2*t]=0;for(t=0;t<w;t++)e.dyn_dtree[2*t]=0;for(t=0;t<_;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*x]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function Q(e){e.bi_valid>8?H(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function ee(e,t,r,n){Q(e),n&&(H(e,r),H(e,~r)),s.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}function et(e,t,r,n){var i=2*t,o=2*r;return e[i]<e[o]||e[i]===e[o]&&n[t]<=n[r]}function er(e,t,r){for(var n=e.heap[r],i=r<<1;i<=e.heap_len&&(i<e.heap_len&&et(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!et(t,n,e.heap[i],e.depth));)e.heap[r]=e.heap[i],r=i,i<<=1;e.heap[r]=n}function en(e,t,r){var n,i,o,s,a=0;if(0!==e.last_lit)do n=e.pending_buf[e.d_buf+2*a]<<8|e.pending_buf[e.d_buf+2*a+1],i=e.pending_buf[e.l_buf+a],a++,0===n?V(e,i,t):(V(e,(o=D[i])+y+1,t),0!==(s=T[o])&&W(e,i-=F[o],s),V(e,o=z(--n),r),0!==(s=I[o])&&W(e,n-=U[o],s));while(a<e.last_lit);V(e,x,t)}function ei(e,t){var r,n,i,o=t.dyn_tree,s=t.stat_desc.static_tree,a=t.stat_desc.has_stree,u=t.stat_desc.elems,f=-1;for(r=0,e.heap_len=0,e.heap_max=S;r<u;r++)0!==o[2*r]?(e.heap[++e.heap_len]=f=r,e.depth[r]=0):o[2*r+1]=0;for(;e.heap_len<2;)o[2*(i=e.heap[++e.heap_len]=f<2?++f:0)]=1,e.depth[i]=0,e.opt_len--,a&&(e.static_len-=s[2*i+1]);for(t.max_code=f,r=e.heap_len>>1;r>=1;r--)er(e,o,r);i=u;do r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],er(e,o,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,o[2*i]=o[2*r]+o[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,o[2*r+1]=o[2*n+1]=i,e.heap[1]=i++,er(e,o,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],K(e,t),J(o,f,e.bl_count)}function eo(e,t,r){var n,i,o=-1,s=t[1],a=0,u=7,f=4;for(0===s&&(u=138,f=3),t[(r+1)*2+1]=65535,n=0;n<=r;n++)i=s,s=t[(n+1)*2+1],++a<u&&i===s||(a<f?e.bl_tree[2*i]+=a:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[2*M]++):a<=10?e.bl_tree[2*k]++:e.bl_tree[2*O]++,a=0,o=i,0===s?(u=138,f=3):i===s?(u=6,f=3):(u=7,f=4))}function es(e,t,r){var n,i,o=-1,s=t[1],a=0,u=7,f=4;for(0===s&&(u=138,f=3),n=0;n<=r;n++)if(i=s,s=t[(n+1)*2+1],!(++a<u)||i!==s){if(a<f)do V(e,i,e.bl_tree);while(0!=--a);else 0!==i?(i!==o&&(V(e,i,e.bl_tree),a--),V(e,M,e.bl_tree),W(e,a-3,2)):a<=10?(V(e,k,e.bl_tree),W(e,a-3,3)):(V(e,O,e.bl_tree),W(e,a-11,7));a=0,o=i,0===s?(u=138,f=3):i===s?(u=6,f=3):(u=7,f=4)}}function ea(e){var t;for(eo(e,e.dyn_ltree,e.l_desc.max_code),eo(e,e.dyn_dtree,e.d_desc.max_code),ei(e,e.bl_desc),t=_-1;t>=3&&0===e.bl_tree[2*L[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}function eu(e,t,r,n){var i;for(W(e,t-257,5),W(e,r-1,5),W(e,n-4,4),i=0;i<n;i++)W(e,e.bl_tree[2*L[i]+1],3);es(e,e.dyn_ltree,t-1),es(e,e.dyn_dtree,r-1)}function ef(e){var t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return u;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return f;for(t=32;t<y;t++)if(0!==e.dyn_ltree[2*t])return f;return u}c(U);var el=!1;function ec(e){el||(X(),el=!0),e.l_desc=new $(e.dyn_ltree,n),e.d_desc=new $(e.dyn_dtree,i),e.bl_desc=new $(e.bl_tree,o),e.bi_buf=0,e.bi_valid=0,Y(e)}function ed(e,t,r,n){W(e,(d<<1)+(n?1:0),3),ee(e,t,r,!0)}function eh(e){W(e,h<<1,3),V(e,x,N),Z(e)}function ep(e,t,r,n){var i,o,s=0;e.level>0?(e.strm.data_type===l&&(e.strm.data_type=ef(e)),ei(e,e.l_desc),ei(e,e.d_desc),s=ea(e),i=e.opt_len+3+7>>>3,(o=e.static_len+3+7>>>3)<=i&&(i=o)):i=o=r+5,r+4<=i&&-1!==t?ed(e,t,r,n):e.strategy===a||o===i?(W(e,(h<<1)+(n?1:0),3),en(e,N,C)):(W(e,(p<<1)+(n?1:0),3),eu(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),en(e,e.dyn_ltree,e.dyn_dtree)),Y(e),n&&Q(e)}function eb(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[(D[r]+y+1)*2]++,e.dyn_dtree[2*z(t)]++),e.last_lit===e.lit_bufsize-1}t._tr_init=ec,t._tr_stored_block=ed,t._tr_flush_block=ep,t._tr_tally=eb,t._tr_align=eh},562:function(e){function t(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}e.exports=t},491:function(e){e.exports=r(31754)},300:function(e){e.exports=r(9109)},781:function(e){e.exports=r(63090)},837:function(e){e.exports=r(11786)}},s={};function a(e){var r=s[e];
10if(void 0!==r)return r.exports;var n=s[e]={exports:{}},i=!0;try{t[e](n,n.exports,a),i=!1}finally{i&&delete s[e]}return n.exports}a.ab=n+"/";var u=a(23);e.exports=u}()},1337:function(e,t,r){var n="/";!function(){var t={528:function(e,t,r){var n=r(685),i=r(310),o=e.exports;for(var s in n)n.hasOwnProperty(s)&&(o[s]=n[s]);function a(e){if("string"==typeof e&&(e=i.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}o.request=function(e,t){return e=a(e),n.request.call(this,e,t)},o.get=function(e,t){return e=a(e),n.get.call(this,e,t)}},685:function(e){"use strict";e.exports=r(65562)},310:function(e){"use strict";e.exports=r(48464)}},i={};function o(e){var r=i[e];if(void 0!==r)return r.exports;var n=i[e]={exports:{}},s=!0;try{t[e](n,n.exports,o),s=!1}finally{s&&delete i[e]}return n.exports}o.ab=n+"/";var s=o(528);e.exports=s}()},48464:function(e,t,r){var n="/";!function(){var t={452:function(e){"use strict";e.exports=r(46405)}},i={};function o(e){var r=i[e];if(void 0!==r)return r.exports;var n=i[e]={exports:{}},s=!0;try{t[e](n,n.exports,o),s=!1}finally{s&&delete i[e]}return n.exports}o.ab=n+"/";var s={};!function(){var e,t=s,r=(e=o(452))&&"object"==typeof e&&"default"in e?e.default:e,n=/https?|ftp|gopher|file/;function i(e){"string"==typeof e&&(e=v(e));var t=function(e,t,r){var n=e.auth,i=e.hostname,o=e.protocol||"",s=e.pathname||"",a=e.hash||"",u=e.query||"",f=!1;n=n?encodeURIComponent(n).replace(/%3A/i,":")+"@":"",e.host?f=n+e.host:i&&(f=n+(~i.indexOf(":")?"["+i+"]":i),e.port&&(f+=":"+e.port)),u&&"object"==typeof u&&(u=t.encode(u));var l=e.search||u&&"?"+u||"";return o&&":"!==o.substr(-1)&&(o+=":"),e.slashes||(!o||r.test(o))&&!1!==f?(f="//"+(f||""),s&&"/"!==s[0]&&(s="/"+s)):f||(f=""),a&&"#"!==a[0]&&(a="#"+a),l&&"?"!==l[0]&&(l="?"+l),{protocol:o,host:f,pathname:s=s.replace(/[?#]/g,encodeURIComponent),search:l=l.replace("#","%23"),hash:a}}(e,r,n);return""+t.protocol+t.host+t.pathname+t.search+t.hash}var a="http://",u="w.w",f=a+u,l=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,c=/https?|ftp|gopher|file/;function d(e,t){var r="string"==typeof e?v(e):e;e="object"==typeof e?i(e):e;var n=v(t),o="";r.protocol&&!r.slashes&&(o=r.protocol,e=e.replace(r.protocol,""),o+="/"===t[0]||"/"===e[0]?"/":""),o&&n.protocol&&(o="",n.slashes||(o=n.protocol,t=t.replace(n.protocol,"")));var s=e.match(l);s&&!n.protocol&&(e=e.substr((o=s[1]+(s[2]||"")).length),/^\/\/[^/]/.test(t)&&(o=o.slice(0,-1)));var u=new URL(e,f+"/"),d=new URL(t,u).toString().replace(f,""),h=n.protocol||r.protocol;return h+=r.slashes||n.slashes?"//":"",!o&&h?d=d.replace(a,h):o&&(d=d.replace(a,"")),c.test(d)||~t.indexOf(".")||"/"===e.slice(-1)||"/"===t.slice(-1)||"/"!==d.slice(-1)||(d=d.slice(0,-1)),o&&(d=o+("/"===d[0]?d.substr(1):d)),d}function h(){}h.prototype.parse=v,h.prototype.format=i,h.prototype.resolve=d,h.prototype.resolveObject=d;var p=/^https?|ftp|gopher|file/,b=/^(.*?)([#?].*)/,g=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,m=/^([a-z0-9.+-]*:)?\/\/\/*/i,y=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function v(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=!1),e&&"object"==typeof e&&e instanceof h)return e;var o=(e=e.trim()).match(b);e=o?o[1].replace(/\\/g,"/")+o[2]:e.replace(/\\/g,"/"),y.test(e)&&"/"!==e.slice(-1)&&(e+="/");var s=!/(^javascript)/.test(e)&&e.match(g),a=m.test(e),l="";s&&(p.test(s[1])||(l=s[1].toLowerCase(),e=""+s[2]+s[3]),s[2]||(a=!1,p.test(s[1])?(l=s[1],e=""+s[3]):e="//"+s[3]),3!==s[2].length&&1!==s[2].length||(l=s[1],e="/"+s[3]));var c,d=(o?o[1]:e).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),v=d&&d[1],w=new h,_="",S="";try{c=new URL(e)}catch(t){_=t,l||n||!/^\/\//.test(e)||/^\/\/.+[@.]/.test(e)||(S="/",e=e.substr(1));try{c=new URL(e,f)}catch(e){return w.protocol=l,w.href=l,w}}w.slashes=a&&!S,w.host=c.host===u?"":c.host,w.hostname=c.hostname===u?"":c.hostname.replace(/(\[|\])/g,""),w.protocol=_?l||null:c.protocol,w.search=c.search.replace(/\\/g,"%5C"),w.hash=c.hash.replace(/\\/g,"%5C");var E=e.split("#");!w.search&&~E[0].indexOf("?")&&(w.search="?"),w.hash||""!==E[1]||(w.hash="#"),w.query=t?r.decode(c.search.substr(1)):w.search.substr(1),w.pathname=S+(s?function(e){return e.replace(/['^|`]/g,function(e){return"%"+e.charCodeAt().toString(16).toUpperCase()}).replace(/((?:%[0-9A-F]{2})+)/g,function(e,t){try{return decodeURIComponent(t).split("").map(function(e){var t=e.charCodeAt();return t>256||/^[a-z0-9]$/i.test(e)?e:"%"+t.toString(16).toUpperCase()}).join("")}catch(e){return t}})}(c.pathname):c.pathname),"about:"===w.protocol&&"blank"===w.pathname&&(w.protocol="",w.pathname=""),_&&"/"!==e[0]&&(w.pathname=w.pathname.substr(1)),l&&!p.test(l)&&"/"!==e.slice(-1)&&"/"===w.pathname&&(w.pathname=""),w.path=w.pathname+w.search,w.auth=[c.username,c.password].map(decodeURIComponent).filter(
10Boolean).join(":"),w.port=c.port,v&&!w.host.endsWith(v)&&(w.host+=v,w.port=v.slice(1)),w.href=S?""+w.pathname+w.search+w.hash:i(w);var A=/^(file)/.test(w.href)?["host","hostname"]:[];return Object.keys(w).forEach(function(e){~A.indexOf(e)||(w[e]=w[e]||null)}),w}t.parse=v,t.format=i,t.resolve=d,t.resolveObject=function(e,t){return v(d(e,t))},t.Url=h}(),e.exports=s}()},46405:function(e){var t="/";!function(){"use strict";var r={815:function(e){function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,n,i,o){n=n||"&",i=i||"=";var s={};if("string"!=typeof e||0===e.length)return s;var a=/\+/g;e=e.split(n);var u=1e3;o&&"number"==typeof o.maxKeys&&(u=o.maxKeys);var f=e.length;u>0&&f>u&&(f=u);for(var l=0;l<f;++l){var c,d,h,p,b=e[l].replace(a,"%20"),g=b.indexOf(i);g>=0?(c=b.substr(0,g),d=b.substr(g+1)):(c=b,d=""),h=decodeURIComponent(c),p=decodeURIComponent(d),t(s,h)?r(s[h])?s[h].push(p):s[h]=[s[h],p]:s[h]=p}return s};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},577:function(e){var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,o,s,a){return(o=o||"&",s=s||"=",null===e&&(e=void 0),"object"==typeof e)?n(i(e),function(i){var a=encodeURIComponent(t(i))+s;return r(e[i])?n(e[i],function(e){return a+encodeURIComponent(t(e))}).join(o):a+encodeURIComponent(t(e[i]))}).join(o):a?encodeURIComponent(t(a))+s+encodeURIComponent(t(e)):""};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function n(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n));return r}var i=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t}}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}},s=!0;try{r[e](o,o.exports,i),s=!1}finally{s&&delete n[e]}return o.exports}i.ab=t+"/";var o={};!function(){var e=o;e.decode=e.parse=i(815),e.encode=e.stringify=i(577)}(),e.exports=o}()},63090:function(e,t,r){var n="/",i=r(25566);!function(){var t={782:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},646:function(e){"use strict";let t={};function r(e,r,n){function i(e,t,n){return"string"==typeof r?r:r(e,t,n)}n||(n=Error);class o extends n{constructor(e,t,r){super(i(e,t,r))}}o.prototype.name=n.name,o.prototype.code=e,t[e]=o}function n(e,t){if(!Array.isArray(e))return`of ${t} ${String(e)}`;{let r=e.length;return(e=e.map(e=>String(e)),r>2)?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}function i(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function o(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function s(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){let a,u;if("string"==typeof t&&i(t,"not ")?(a="must not be",t=t.replace(/^not /,"")):a="must be",o(e," argument"))u=`The ${e} ${a} ${n(t,"type")}`;else{let r=s(e,".")?"property":"argument";u=`The "${e}" ${r} ${a} ${n(t,"type")}`}return u+`. Received type ${typeof r}`},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},403:function(e,t,r){"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=l;var o=r(709),s=r(337);r(782)(l,o);for(var a=n(s.prototype),u=0;u<a.length;u++){var f=a[u];l.prototype[f]||(l.prototype[f]=s.prototype[f])}function l(e){if(!(this instanceof l))return new l(e);o.call(this,e),s.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",c)))}function c(){this._writableState.ended||i.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(l.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},889:function(e,t,r){"use strict";e.exports=i;var n=r(170);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(782)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},709:function(e,t,n){"use strict";e.exports=O,O.ReadableState=k,n(361).EventEmitter;var o,s,a,u,f,l=function(e,t){return e.listeners(t).length},c=n(678),d=n(300).Buffer,h=r.g.Uint8Array||function(){};function p(e){return d.from(e)}function b(e){return d.isBuffer(e)||e instanceof h}var g=n(837);s=g&&g.debuglog?g.debuglog("stream"):function(){};var m=n(379),y=n(25),v=n(776).getHighWaterMark,w=n(646).q,_=w.ERR_INVALID_ARG_TYPE,S=w.ERR_STREAM_PUSH_AFTER_EOF,E=w.ERR_METHOD_NOT_IMPLEMENT
vendor: 29,252 bytes, line 10
10ED,A=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(782)(O,c);var R=y.errorOrDestroy,x=["error","close","destroy","pause","resume"];function M(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}function k(e,t,r){o=o||n(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof o),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=v(this,e,"readableHighWaterMark",r),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(a||(a=n(704).s),this.decoder=new a(e.encoding),this.encoding=e.encoding)}function O(e){if(o=o||n(403),!(this instanceof O))return new O(e);var t=this instanceof o;this._readableState=new k(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),c.call(this)}function T(e,t,r,n,i){s("readableAddChunk",t);var o,a=e._readableState;if(null===t)a.reading=!1,C(e,a);else if(i||(o=P(a,t)),o)R(e,o);else if(a.objectMode||t&&t.length>0){if("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===d.prototype||(t=p(t)),n)a.endEmitted?R(e,new A):I(e,a,t,!0);else if(a.ended)R(e,new S);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?I(e,a,t,!1):F(e,a)):I(e,a,t,!1)}}else n||(a.reading=!1,F(e,a));return!a.ended&&(a.length<a.highWaterMark||0===a.length)}function I(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&j(e)),F(e,t)}function P(e,t){var r;return b(t)||"string"==typeof t||void 0===t||e.objectMode||(r=new _("chunk",["string","Buffer","Uint8Array"],t)),r}Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),O.prototype.destroy=y.destroy,O.prototype._undestroy=y.undestroy,O.prototype._destroy=function(e,t){t(e)},O.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=d.from(e,t),t=""),r=!0),T(this,e,t,!1,r)},O.prototype.unshift=function(e){return T(this,e,null,!0,!1)},O.prototype.isPaused=function(){return!1===this._readableState.flowing},O.prototype.setEncoding=function(e){a||(a=n(704).s);var t=new a(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";null!==r;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var L=1073741824;function B(e){return e>=L?e=L:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function N(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=B(e)),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function C(e,t){if(s("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?j(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,D(e)))}}function j(e){var t=e._readableState;s("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(s("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(D,e))}function D(e){var t=e._readableState;s("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,V(e)}function F(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(U,e,t))}function U(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(s("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function q(e){return function(){var t=e._readableState;s("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&l(e,"data")&&(t.flowing=!0,V(e))}}function $(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function z(e){s("readable nexttick read 0"),e.read(0)}function H(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(W,e,t))}function W(e,t){s("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),V(e),t.flowing&&!t.reading&&e.read(0)}function V(e){var t=e._readableState;for(s("flow",t.flowing);t.flowing&&null!==e.read(););}function G(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function Z(e){var t=e._readableState;s("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(K,t,e))}function K(e,t){if(s("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function J(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}O.prototype.read=function(e){s("read",e),e=parseInt(e,10);var t,r=this._readableState,n=e;if(0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&((0!==r.highWaterMark?r.length>=r.highWaterMark:r.length>0)||r.ended))return s("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?Z(this):j(this),null;if(0===(e=N(e,r))&&r.ended)return 0===r.length&&Z(this),null;var i=r.needReadable;return s("need readable",i),(0===r.length||r.length-e<r.highWaterMark)&&s("length less than watermark",i=!0),r.ended||r.reading?s("reading or ended",i=!1):i&&(s("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=N(n,r))),null===(t=e>0?G(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&Z(this)),null!==t&&this.emit("data",t),t},O.prototype._read=function(e){R(this,new E("_read()"))},O.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,s("pipe count=%d opts=%j",n.pipesCount,t);var o=t&&!1===t.end||e===i.stdout||e===i.stderr?m:u;function a(e,t){s("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,d())}function u(){s("onend"),e.end()}n.endEmitted?i.nextTick(o):r.once("end",o),e.on("unpipe",a);var f=q(r);e.on("drain",f);var c=!1;function d(){s("cleanup"),e.removeListener("close",b),e.removeListener("finish",g),e.removeListener("drain",f),e.removeListener("error",p),e.removeListener("unpipe",a),r.removeListener("end",u),r.removeListener("end",m),r.removeListener("data",h),c=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&f()}function h(t){s("ondata");var i=e.write(t);s("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==J(n.pipes,e))&&!c&&(s("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function p(t){s("onerror",t),m(),e.removeListener("error",p),0===l(e,"error")&&R(e,t)}function b(){e.removeListener("finish",g),m()}function g(){s("onfinish"),e.removeListener("close",b),m()}function m(){s("unpipe"),r.unpipe(e)}return r.on("data",h),M(e,"error",p),e.once("close",b),e.once("finish",g),e.emit("pipe",r),n.flowing||(s("pipe resume"),r.resume()),e},O.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=J(t.pipes,e);return -1===s||(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},O.prototype.on=function(e,t){var r=c.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"!==e||n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,s("on readable",n.length,n.reading),n.length?j(this):n.reading||i.nextTick(z,this)),r},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(e,t){var r=c.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick($,this),r},O.prototype.removeAllListeners=function(e){var t=c.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&i.nextTick($,this),t},O.prototype.resume=function(){var e=this._readableState;return e.flowing||(s("resume"),e.flowing=!e.readableListening,H(this,e)),e.paused=!1,this},O.prototype.pause=function(){return s("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(s("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},O.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(s("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){s("wrapped data"),r.decoder&&(i=r.decoder.write(i)),(!r.objectMode||null!=i)&&(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<x.length;o++)e.on(x[o],this.emit.bind(this,x[o]));return this._read=function(t){s("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(O.prototype[Symbol.asyncIterator]=function(){return void 0===u&&(u=n(871)),u(this)}),Object.defineProperty(O.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(O.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(O.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),O._fromList=G,Object.defineProperty(O.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(O.from=function(e,t){return void 0===f&&(f=n(727)),f(O,e,t)})},170:function(e,t,r){"use strict";e.exports=l;var n=r(646).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,s=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(403);function f(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function l(e){if(!(this instanceof l))return new l(e);u.call(this,e),this._transformState={afterTransform:f.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",c)}function c(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush(function(t,r){d(e,t,r)})}function d(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new a;if(e._transformState.transforming)throw new s;return e.push(null)}r(782)(l,u),l.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},l.prototype._transform=function(e,t,r){r(new i("_transform()"))},l.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},l.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},l.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,function(e){t(e)})}},337:function(e,t,n){"use strict";function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){W(t,e)}}e.exports=k,k.WritableState=M;var s,a,u={deprecate:n(769)},f=n(678),l=n(300).Buffer,c=r.g.Uint8Array||function(){};function d(e){return l.from(e)}function h(e){return l.isBuffer(e)||e instanceof c}var p=n(25),b=n(776).getHighWaterMark,g=n(646).q,m=g.ERR_INVALID_ARG_TYPE,y=g.ERR_METHOD_NOT_IMPLEMENTED,v=g.ERR_MULTIPLE_CALLBACK,w=g.ERR_STREAM_CANNOT_PIPE,_=g.ERR_STREAM_DESTROYED,S=g.ERR_STREAM_NULL_VALUES,E=g.ERR_STREAM_WRITE_AFTER_END,A=g.ERR_UNKNOWN_ENCODING,R=p.errorOrDestroy;function x(){}function M(e,t,r){s=s||n(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof s),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=b(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=!1===e.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){C(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function k(e){var t=this instanceof(s=s||n(403));if(!t&&!a.call(k,this))return new k(e);this._writableState=new M(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),f.call(this)}function O(e,t){var r=new E;R(e,r),i.nextTick(t,r)}function T(e,t,r,n){var o;return null===r?o=new S:"string"==typeof r||t.objectMode||(o=new m("chunk",["string","Buffer"],r)),!o||(R(e,o),i.nextTick(n,o),!1)}function I(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=l.from(t,r)),t}function P(e,t,r,n,i,o){if(!r){var s=I(t,n,i);n!==s&&(r=!0,i="buffer",n=s)}var a=t.objectMode?1:n.length;t.length+=a;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var f=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},f?f.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else L(e,t,!1,a,n,i,o);return u}function L(e,t,r,n,i,o,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new _("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function B(e,t,r,n,o){--t.pendingcb,r?(i.nextTick(o,n),i.nextTick(z,e,t),e._writableState.errorEmitted=!0,R(e,n)):(o(n),e._writableState.errorEmitted=!0,R(e,n),z(e,t))}function N(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function C(e,t){var r=e._writableState,n=r.sync,o=r.writecb;if("function"!=typeof o)throw new v;if(N(r),t)B(e,r,n,t,o);else{var s=U(r)||e.destroyed;s||r.corked||r.bufferProcessing||!r.bufferedRequest||F(e,r),n?i.nextTick(j,e,r,s,o):j(e,r,s,o)}}function j(e,t,r,n){r||D(e,t),t.pendingcb--,n(),z(e,t)}function D(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function F(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=Array(t.bufferedRequestCount),i=t.corkedRequestsFree;i.entry=r;for(var s=0,a=!0;r;)n[s]=r,r.isBuf||(a=!1),r=r.next,s+=1;n.allBuffers=a,L(e,t,!0,t.length,n,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,f=r.encoding,l=r.callback,c=t.objectMode?1:u.length;if(L(e,t,!1,c,u,f,l),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function U(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function q(e,t){e._final(function(r){t.pendingcb--,r&&R(e,r),t.prefinished=!0,e.emit("prefinish"),z(e,t)})}function $(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,i.nextTick(q,e,t)))}function z(e,t){var r=U(t);if(r&&($(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}function H(e,t,r){t.ending=!0,z(e,t),r&&(t.finished?i.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function W(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}n(782)(k,f),M.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(M.prototype,"buffer",{get:u.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(a=Function.prototype[Symbol.hasInstance],Object.defineProperty(k,Symbol.hasInstance,{value:function(e){return!!a.call(this,e)||this===k&&e&&e._writableState instanceof M}})):a=function(e){return e instanceof this},k.prototype.pipe=function(){R(this,new w)},k.prototype.write=function(e,t,r){var n=this._writableState,i=!1,o=!n.objectMode&&h(e);return o&&!l.isBuffer(e)&&(e=d(e)),"function"==typeof t&&(r=t,t=null),o?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof r&&(r=x),n.ending?O(this,r):(o||T(this,n,e,r))&&(n.pendingcb++,i=P(this,n,o,e,t,r)),i},k.prototype.cork=function(){this._writableState.corked++},k.prototype.uncork=function(){var e=this._writableState;!e.corked||(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||F(this,e))},k.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new A(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),k.prototype._write=function(e,t,r){r(new y("_write()"))},k.prototype._writev=null,k.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||H(this,n,r),this},Object.defineProperty(k.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),k.prototype.destroy=p.destroy,k.prototype._undestroy=p.undestroy,k.prototype._destroy=function(e,t){t(e)}},871:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o,s=r(698),a=Symbol("lastResolve"),u=Symbol("lastReject"),f=Symbol("error"),l=Symbol("ended"),c=Symbol("lastPromise"),d=Symbol("handlePromise"),h=Symbol("stream");function p(e,t){return{value:e,done:t}}function b(e){var t=e[a];if(null!==t){var r=e[h].read();null!==r&&(e[c]=null,e[a]=null,e[u]=null,t(p(r,!1)))}}function g(e){i.nextTick(b,e)}function m(e,t){return function(r,n){e.then(function(){if(t[l]){r(p(void 0,!0));return}t[d](r,n)},n)}}var y=Object.getPrototypeOf(function(){}),v=Object.setPrototypeOf((n(o={get stream(){return this[h]},next:function(){var e,t=this,r=this[f];if(null!==r)return Promise.reject(r);if(this[l])return Promise.resolve(p(void 0,!0));if(this[h].destroyed)return new Promise(function(e,r){i.nextTick(function(){t[f]?r(t[f]):e(p(void 0,!0))})});var n=this[c];if(n)e=new Promise(m(n,this));else{var o=this[h].read();if(null!==o)return Promise.resolve(p(o,!1));e=new Promise(this[d])}return this[c]=e,e}},Symbol.asyncIterator,function(){return this}),n(o,"return",function(){var e=this;return new Promise(function(t,r){e[h].destroy(null,function(e){if(e){r(e);return}t(p(void 0,!0))})})}),o),y),w=function(e){var t,r=Object.create(v,(n(t={},h,{value:e,writable:!0}),n(t,a,{value:null,writable:!0}),n(t,u,{value:null,writable:!0}),n(t,f,{value:null,writable:!0}),n(t,l,{value:e._readableState.endEmitted,writable:!0}),n(t,d,{value:function(e,t){var n=r[h].read();n?(r[c]=null,r[a]=null,r[u]=null,e(p(n,!1))):(r[a]=e,r[u]=t)},writable:!0}),t));return r[c]=null,s(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[u];null!==t&&(r[c]=null,r[a]=null,r[u]=null,t(e)),r[f]=e;return}var n=r[a];null!==n&&(r[c]=null,r[a]=null,r[u]=null,n(p(void 0,!0))),r[l]=!0}),e.on("readable",g.bind(null,r)),r};e.exports=w},379:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){o(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),e}var f=r(300).Buffer,l=r(837).inspect,c=l&&l.custom||"inspect";function d(e,t,r){f.prototype.copy.call(e,t,r)}e.exports=function(){function e(){s(this,e),this.head=null,this.tail=null,this.length=0}return u(e,[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return f.alloc(0);for(var t=f.allocUnsafe(e>>>0),r=this.head,n=0;r;)d(r.data,t,n),n+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=f.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:c,value:function(e,t){return l(this,i({},t,{depth:0,customInspect:!1}))}}]),e}()},25:function(e){"use strict";function t(e,t){var o=this,a=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return a||u?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,i.nextTick(s,this,e)):i.nextTick(s,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?o._writableState?o._writableState.errorEmitted?i.nextTick(n,o):(o._writableState.errorEmitted=!0,i.nextTick(r,o,e)):i.nextTick(r,o,e):t?(i.nextTick(n,o),t(e)):i.nextTick(n,o)})),this}function r(e,t){s(e,t),n(e)}function n(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function o(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function s(e,t){e.emit("error",t)}function a(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}e.exports={destroy:t,undestroy:o,errorOrDestroy:a}},698:function(e,t,r){"use strict";var n=r(646).q.ERR_STREAM_PREMATURE_CLOSE;function i(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}function o(){}function s(e){return e.setHeader&&"function"==typeof e.abort}function a(e,t,r){if("function"==typeof t)return a(e,null,t);t||(t={}),r=i(r||o);var u=t.readable||!1!==t.readable&&e.readable,f=t.writable||!1!==t.writable&&e.writable,l=function(){e.writable||d()},c=e._writableState&&e._writableState.finished,d=function(){f=!1,c=!0,u||r.call(e)},h=e._readableState&&e._readableState.endEmitted,p=function(){u=!1,h=!0,f||r.call(e)},b=function(t){r.call(e,t)},g=function(){var t;return u&&!h?(e._readableState&&e._readableState.ended||(t=new n),r.call(e,t)):f&&!c?(e._writableState&&e._writableState.ended||(t=new n),r.call(e,t)):void 0},m=function(){e.req.on("finish",d)};return s(e)?(e.on("complete",d),e.on("abort",g),e.req?m():e.on("request",m)):f&&!e._writableState&&(e.on("end",l),e.on("close",l)),e.on("end",p),e.on("finish",d),!1!==t.error&&e.on("error",b),e.on("close",g),function(){e.removeListener("complete",d),e.removeListener("abort",g),e.removeListener("request",m),e.req&&e.req.removeListener("finish",d),e.removeListener("end",l),e.removeListener("close",l),e.removeListener("finish",d),e.removeListener("end",p),e.removeListener("error",b),e.removeListener("close",g)}}e.exports=a},727:function(e,t,r){"use strict";function n(e,t,r,n,i,o,s){try{var a=e[o](s),u=a.value}catch(e){r(e);return}a.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise(function(i,o){var s=e.apply(t,r);function a(e){n(s,i,o,a,u,"next",e)}function u(e){n(s,i,o,a,u,"throw",e)}a(void 0)})}}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){a(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}
10var u=r(646).q.ERR_INVALID_ARG_TYPE;function f(e,t,r){if(t&&"function"==typeof t.next)n=t;else if(t&&t[Symbol.asyncIterator])n=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])n=t[Symbol.iterator]();else throw new u("iterable",["Iterable"],t);var n,o=new e(s({objectMode:!0},r)),a=!1;function f(){return l.apply(this,arguments)}function l(){return(l=i(function*(){try{var e=yield n.next(),t=e.value;e.done?o.push(null):o.push((yield t))?f():a=!1}catch(e){o.destroy(e)}})).apply(this,arguments)}return o._read=function(){a||(a=!0,f())},o}e.exports=f},442:function(e,t,r){"use strict";function n(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var i,o=r(646).q,s=o.ERR_MISSING_ARGS,a=o.ERR_STREAM_DESTROYED;function u(e){if(e)throw e}function f(e){return e.setHeader&&"function"==typeof e.abort}function l(e,t,o,s){s=n(s);var u=!1;e.on("close",function(){u=!0}),void 0===i&&(i=r(698)),i(e,{readable:t,writable:o},function(e){if(e)return s(e);u=!0,s()});var l=!1;return function(t){if(!u&&!l){if(l=!0,f(e))return e.abort();if("function"==typeof e.destroy)return e.destroy();s(t||new a("pipe"))}}}function c(e){e()}function d(e,t){return e.pipe(t)}function h(e){return e.length&&"function"==typeof e[e.length-1]?e.pop():u}function p(){for(var e,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=h(r);if(Array.isArray(r[0])&&(r=r[0]),r.length<2)throw new s("streams");var o=r.map(function(t,n){var s=n<r.length-1;return l(t,s,n>0,function(t){e||(e=t),t&&o.forEach(c),s||(o.forEach(c),i(e))})});return r.reduce(d)}e.exports=p},776:function(e,t,r){"use strict";var n=r(646).q.ERR_INVALID_OPT_VALUE;function i(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}function o(e,t,r,o){var s=i(t,o,r);if(null!=s){if(!(isFinite(s)&&Math.floor(s)===s)||s<0)throw new n(o?r:"highWaterMark",s);return Math.floor(s)}return e.objectMode?16:16384}e.exports={getHighWaterMark:o}},678:function(e,t,r){e.exports=r(781)},55:function(e,t,r){var n=r(300),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=s),s.prototype=Object.create(i.prototype),o(i,s),s.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},s.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},s.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},173:function(e,t,r){e.exports=i;var n=r(361).EventEmitter;function i(){n.call(this)}r(782)(i,n),i.Readable=r(709),i.Writable=r(337),i.Duplex=r(403),i.Transform=r(170),i.PassThrough=r(889),i.finished=r(698),i.pipeline=r(442),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",a),r.on("close",u));var s=!1;function a(){s||(s=!0,e.end())}function u(){s||(s=!0,"function"==typeof e.destroy&&e.destroy())}function f(e){if(l(),0===n.listenerCount(this,"error"))throw e}function l(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",a),r.removeListener("close",u),r.removeListener("error",f),e.removeListener("error",f),r.removeListener("end",l),r.removeListener("close",l),e.removeListener("close",l)}return r.on("error",f),e.on("error",f),r.on("end",l),r.on("close",l),e.on("close",l),e.emit("pipe",r),e}},704:function(e,t,r){"use strict";var n=r(55).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";
10case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function s(e){var t=o(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}function a(e){var t;switch(this.encoding=s(e),this.encoding){case"utf16le":this.text=p,this.end=b,t=4;break;case"utf8":this.fillLast=c,t=4;break;case"base64":this.text=g,this.end=m,t=3;break;default:this.write=y,this.end=v;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function u(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function f(e,t,r){var n=t.length-1;if(n<r)return 0;var i=u(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=u(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=u(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}function l(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function c(e){var t=this.lastTotal-this.lastNeed,r=l(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function d(e,t){var r=f(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function p(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function b(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function g(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function m(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function y(e){return e.toString(this.encoding)}function v(e){return e&&e.length?this.write(e):""}t.s=a,a.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},a.prototype.end=h,a.prototype.text=d,a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},769:function(e){function t(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}function n(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=t},300:function(e){"use strict";e.exports=r(9109)},361:function(e){"use strict";e.exports=r(68885)},781:function(e){"use strict";e.exports=r(68885).EventEmitter},837:function(e){"use strict";e.exports=r(11786)}},o={};function s(e){var r=o[e];if(void 0!==r)return r.exports;var n=o[e]={exports:{}},i=!0;try{t[e](n,n.exports,s),i=!1}finally{i&&delete o[e]}return n.exports}s.ab=n+"/";var a=s(173);e.exports=a}()},65562:function(e,t,r){var n="/",i=r(25566),o=r(9109).Buffer;!function(){var t={523:function(e){e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Parti
10al Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},782:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},646:function(e){"use strict";let t={};function r(e,r,n){function i(e,t,n){return"string"==typeof r?r:r(e,t,n)}n||(n=Error);class o extends n{constructor(e,t,r){super(i(e,t,r))}}o.prototype.name=n.name,o.prototype.code=e,t[e]=o}function n(e,t){if(!Array.isArray(e))return`of ${t} ${String(e)}`;{let r=e.length;return(e=e.map(e=>String(e)),r>2)?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}function i(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function o(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function s(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){let a,u;if("string"==typeof t&&i(t,"not ")?(a="must not be",t=t.replace(/^not /,"")):a="must be",o(e," argument"))u=`The ${e} ${a} ${n(t,"type")}`;else{let r=s(e,".")?"property":"argument";u=`The "${e}" ${r} ${a} ${n(t,"type")}`}return u+`. Received type ${typeof r}`},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},403:function(e,t,r){"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=l;var o=r(709),s=r(337);r(782)(l,o);for(var a=n(s.prototype),u=0;u<a.length;u++){var f=a[u];l.prototype[f]||(l.prototype[f]=s.prototype[f])}function l(e){if(!(this instanceof l))return new l(e);o.call(this,e),s.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",c)))}function c(){this._writableState.ended||i.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(l.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},889:function(e,t,r){"use strict";e.exports=i;var n=r(170);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(782)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},709:function(e,t,n){"use strict";e.exports=O,O.ReadableState=k,n(361).EventEmitter;var o,s,a,u,f,l=function(e,t){return e.listeners(t).length},c=n(678),d=n(300).Buffer,h=r.g.Uint8Array||function(){};function p(e){return d.from(e)}function b(e){return d.isBuffer(e)||e instanceof h}var g=n(837);s=g&&g.debuglog?g.debuglog("stream"):function(){};var m=n(379),y=n(25),v=n(776).getHighWaterMark,w=n(646).q,_=w.ERR_INVALID_ARG_TYPE,S=w.ERR_STREAM_PUSH_AFTER_EOF,E=w.ERR_METHOD_NOT_IMPLEMENT
vendor: 29,252 bytes, line 10
10ED,A=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(782)(O,c);var R=y.errorOrDestroy,x=["error","close","destroy","pause","resume"];function M(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}function k(e,t,r){o=o||n(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof o),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=v(this,e,"readableHighWaterMark",r),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(a||(a=n(704).s),this.decoder=new a(e.encoding),this.encoding=e.encoding)}function O(e){if(o=o||n(403),!(this instanceof O))return new O(e);var t=this instanceof o;this._readableState=new k(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),c.call(this)}function T(e,t,r,n,i){s("readableAddChunk",t);var o,a=e._readableState;if(null===t)a.reading=!1,C(e,a);else if(i||(o=P(a,t)),o)R(e,o);else if(a.objectMode||t&&t.length>0){if("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===d.prototype||(t=p(t)),n)a.endEmitted?R(e,new A):I(e,a,t,!0);else if(a.ended)R(e,new S);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?I(e,a,t,!1):F(e,a)):I(e,a,t,!1)}}else n||(a.reading=!1,F(e,a));return!a.ended&&(a.length<a.highWaterMark||0===a.length)}function I(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&j(e)),F(e,t)}function P(e,t){var r;return b(t)||"string"==typeof t||void 0===t||e.objectMode||(r=new _("chunk",["string","Buffer","Uint8Array"],t)),r}Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),O.prototype.destroy=y.destroy,O.prototype._undestroy=y.undestroy,O.prototype._destroy=function(e,t){t(e)},O.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=d.from(e,t),t=""),r=!0),T(this,e,t,!1,r)},O.prototype.unshift=function(e){return T(this,e,null,!0,!1)},O.prototype.isPaused=function(){return!1===this._readableState.flowing},O.prototype.setEncoding=function(e){a||(a=n(704).s);var t=new a(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";null!==r;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var L=1073741824;function B(e){return e>=L?e=L:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function N(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=B(e)),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function C(e,t){if(s("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?j(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,D(e)))}}function j(e){var t=e._readableState;s("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(s("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(D,e))}function D(e){var t=e._readableState;s("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,V(e)}function F(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(U,e,t))}function U(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(s("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function q(e){return function(){var t=e._readableState;s("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&l(e,"data")&&(t.flowing=!0,V(e))}}function $(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function z(e){s("readable nexttick read 0"),e.read(0)}function H(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(W,e,t))}function W(e,t){s("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),V(e),t.flowing&&!t.reading&&e.read(0)}function V(e){var t=e._readableState;for(s("flow",t.flowing);t.flowing&&null!==e.read(););}function G(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function Z(e){var t=e._readableState;s("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(K,t,e))}function K(e,t){if(s("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function J(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}O.prototype.read=function(e){s("read",e),e=parseInt(e,10);var t,r=this._readableState,n=e;if(0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&((0!==r.highWaterMark?r.length>=r.highWaterMark:r.length>0)||r.ended))return s("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?Z(this):j(this),null;if(0===(e=N(e,r))&&r.ended)return 0===r.length&&Z(this),null;var i=r.needReadable;return s("need readable",i),(0===r.length||r.length-e<r.highWaterMark)&&s("length less than watermark",i=!0),r.ended||r.reading?s("reading or ended",i=!1):i&&(s("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=N(n,r))),null===(t=e>0?G(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&Z(this)),null!==t&&this.emit("data",t),t},O.prototype._read=function(e){R(this,new E("_read()"))},O.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,s("pipe count=%d opts=%j",n.pipesCount,t);var o=t&&!1===t.end||e===i.stdout||e===i.stderr?m:u;function a(e,t){s("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,d())}function u(){s("onend"),e.end()}n.endEmitted?i.nextTick(o):r.once("end",o),e.on("unpipe",a);var f=q(r);e.on("drain",f);var c=!1;function d(){s("cleanup"),e.removeListener("close",b),e.removeListener("finish",g),e.removeListener("drain",f),e.removeListener("error",p),e.removeListener("unpipe",a),r.removeListener("end",u),r.removeListener("end",m),r.removeListener("data",h),c=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&f()}function h(t){s("ondata");var i=e.write(t);s("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==J(n.pipes,e))&&!c&&(s("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function p(t){s("onerror",t),m(),e.removeListener("error",p),0===l(e,"error")&&R(e,t)}function b(){e.removeListener("finish",g),m()}function g(){s("onfinish"),e.removeListener("close",b),m()}function m(){s("unpipe"),r.unpipe(e)}return r.on("data",h),M(e,"error",p),e.once("close",b),e.once("finish",g),e.emit("pipe",r),n.flowing||(s("pipe resume"),r.resume()),e},O.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=J(t.pipes,e);return -1===s||(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},O.prototype.on=function(e,t){var r=c.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"!==e||n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,s("on readable",n.length,n.reading),n.length?j(this):n.reading||i.nextTick(z,this)),r},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(e,t){var r=c.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick($,this),r},O.prototype.removeAllListeners=function(e){var t=c.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&i.nextTick($,this),t},O.prototype.resume=function(){var e=this._readableState;return e.flowing||(s("resume"),e.flowing=!e.readableListening,H(this,e)),e.paused=!1,this},O.prototype.pause=function(){return s("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(s("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},O.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(s("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){s("wrapped data"),r.decoder&&(i=r.decoder.write(i)),(!r.objectMode||null!=i)&&(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<x.length;o++)e.on(x[o],this.emit.bind(this,x[o]));return this._read=function(t){s("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(O.prototype[Symbol.asyncIterator]=function(){return void 0===u&&(u=n(871)),u(this)}),Object.defineProperty(O.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(O.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(O.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),O._fromList=G,Object.defineProperty(O.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(O.from=function(e,t){return void 0===f&&(f=n(727)),f(O,e,t)})},170:function(e,t,r){"use strict";e.exports=l;var n=r(646).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,s=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(403);function f(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function l(e){if(!(this instanceof l))return new l(e);u.call(this,e),this._transformState={afterTransform:f.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",c)}function c(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush(function(t,r){d(e,t,r)})}function d(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new a;if(e._transformState.transforming)throw new s;return e.push(null)}r(782)(l,u),l.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},l.prototype._transform=function(e,t,r){r(new i("_transform()"))},l.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},l.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},l.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,function(e){t(e)})}},337:function(e,t,n){"use strict";function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){W(t,e)}}e.exports=k,k.WritableState=M;var s,a,u={deprecate:n(769)},f=n(678),l=n(300).Buffer,c=r.g.Uint8Array||function(){};function d(e){return l.from(e)}function h(e){return l.isBuffer(e)||e instanceof c}var p=n(25),b=n(776).getHighWaterMark,g=n(646).q,m=g.ERR_INVALID_ARG_TYPE,y=g.ERR_METHOD_NOT_IMPLEMENTED,v=g.ERR_MULTIPLE_CALLBACK,w=g.ERR_STREAM_CANNOT_PIPE,_=g.ERR_STREAM_DESTROYED,S=g.ERR_STREAM_NULL_VALUES,E=g.ERR_STREAM_WRITE_AFTER_END,A=g.ERR_UNKNOWN_ENCODING,R=p.errorOrDestroy;function x(){}function M(e,t,r){s=s||n(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof s),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=b(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=!1===e.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){C(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function k(e){var t=this instanceof(s=s||n(403));if(!t&&!a.call(k,this))return new k(e);this._writableState=new M(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),f.call(this)}function O(e,t){var r=new E;R(e,r),i.nextTick(t,r)}function T(e,t,r,n){var o;return null===r?o=new S:"string"==typeof r||t.objectMode||(o=new m("chunk",["string","Buffer"],r)),!o||(R(e,o),i.nextTick(n,o),!1)}function I(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=l.from(t,r)),t}function P(e,t,r,n,i,o){if(!r){var s=I(t,n,i);n!==s&&(r=!0,i="buffer",n=s)}var a=t.objectMode?1:n.length;t.length+=a;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var f=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},f?f.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else L(e,t,!1,a,n,i,o);return u}function L(e,t,r,n,i,o,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new _("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function B(e,t,r,n,o){--t.pendingcb,r?(i.nextTick(o,n),i.nextTick(z,e,t),e._writableState.errorEmitted=!0,R(e,n)):(o(n),e._writableState.errorEmitted=!0,R(e,n),z(e,t))}function N(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function C(e,t){var r=e._writableState,n=r.sync,o=r.writecb;if("function"!=typeof o)throw new v;if(N(r),t)B(e,r,n,t,o);else{var s=U(r)||e.destroyed;s||r.corked||r.bufferProcessing||!r.bufferedRequest||F(e,r),n?i.nextTick(j,e,r,s,o):j(e,r,s,o)}}function j(e,t,r,n){r||D(e,t),t.pendingcb--,n(),z(e,t)}function D(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function F(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=Array(t.bufferedRequestCount),i=t.corkedRequestsFree;i.entry=r;for(var s=0,a=!0;r;)n[s]=r,r.isBuf||(a=!1),r=r.next,s+=1;n.allBuffers=a,L(e,t,!0,t.length,n,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,f=r.encoding,l=r.callback,c=t.objectMode?1:u.length;if(L(e,t,!1,c,u,f,l),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function U(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function q(e,t){e._final(function(r){t.pendingcb--,r&&R(e,r),t.prefinished=!0,e.emit("prefinish"),z(e,t)})}function $(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,i.nextTick(q,e,t)))}function z(e,t){var r=U(t);if(r&&($(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}function H(e,t,r){t.ending=!0,z(e,t),r&&(t.finished?i.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function W(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}n(782)(k,f),M.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(M.prototype,"buffer",{get:u.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(a=Function.prototype[Symbol.hasInstance],Object.defineProperty(k,Symbol.hasInstance,{value:function(e){return!!a.call(this,e)||this===k&&e&&e._writableState instanceof M}})):a=function(e){return e instanceof this},k.prototype.pipe=function(){R(this,new w)},k.prototype.write=function(e,t,r){var n=this._writableState,i=!1,o=!n.objectMode&&h(e);return o&&!l.isBuffer(e)&&(e=d(e)),"function"==typeof t&&(r=t,t=null),o?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof r&&(r=x),n.ending?O(this,r):(o||T(this,n,e,r))&&(n.pendingcb++,i=P(this,n,o,e,t,r)),i},k.prototype.cork=function(){this._writableState.corked++},k.prototype.uncork=function(){var e=this._writableState;!e.corked||(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||F(this,e))},k.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new A(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),k.prototype._write=function(e,t,r){r(new y("_write()"))},k.prototype._writev=null,k.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||H(this,n,r),this},Object.defineProperty(k.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),k.prototype.destroy=p.destroy,k.prototype._undestroy=p.undestroy,k.prototype._destroy=function(e,t){t(e)}},871:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o,s=r(698),a=Symbol("lastResolve"),u=Symbol("lastReject"),f=Symbol("error"),l=Symbol("ended"),c=Symbol("lastPromise"),d=Symbol("handlePromise"),h=Symbol("stream");function p(e,t){return{value:e,done:t}}function b(e){var t=e[a];if(null!==t){var r=e[h].read();null!==r&&(e[c]=null,e[a]=null,e[u]=null,t(p(r,!1)))}}function g(e){i.nextTick(b,e)}function m(e,t){return function(r,n){e.then(function(){if(t[l]){r(p(void 0,!0));return}t[d](r,n)},n)}}var y=Object.getPrototypeOf(function(){}),v=Object.setPrototypeOf((n(o={get stream(){return this[h]},next:function(){var e,t=this,r=this[f];if(null!==r)return Promise.reject(r);if(this[l])return Promise.resolve(p(void 0,!0));if(this[h].destroyed)return new Promise(function(e,r){i.nextTick(function(){t[f]?r(t[f]):e(p(void 0,!0))})});var n=this[c];if(n)e=new Promise(m(n,this));else{var o=this[h].read();if(null!==o)return Promise.resolve(p(o,!1));e=new Promise(this[d])}return this[c]=e,e}},Symbol.asyncIterator,function(){return this}),n(o,"return",function(){var e=this;return new Promise(function(t,r){e[h].destroy(null,function(e){if(e){r(e);return}t(p(void 0,!0))})})}),o),y),w=function(e){var t,r=Object.create(v,(n(t={},h,{value:e,writable:!0}),n(t,a,{value:null,writable:!0}),n(t,u,{value:null,writable:!0}),n(t,f,{value:null,writable:!0}),n(t,l,{value:e._readableState.endEmitted,writable:!0}),n(t,d,{value:function(e,t){var n=r[h].read();n?(r[c]=null,r[a]=null,r[u]=null,e(p(n,!1))):(r[a]=e,r[u]=t)},writable:!0}),t));return r[c]=null,s(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[u];null!==t&&(r[c]=null,r[a]=null,r[u]=null,t(e)),r[f]=e;return}var n=r[a];null!==n&&(r[c]=null,r[a]=null,r[u]=null,n(p(void 0,!0))),r[l]=!0}),e.on("readable",g.bind(null,r)),r};e.exports=w},379:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){o(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),e}var f=r(300).Buffer,l=r(837).inspect,c=l&&l.custom||"inspect";function d(e,t,r){f.prototype.copy.call(e,t,r)}e.exports=function(){function e(){s(this,e),this.head=null,this.tail=null,this.length=0}return u(e,[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return f.alloc(0);for(var t=f.allocUnsafe(e>>>0),r=this.head,n=0;r;)d(r.data,t,n),n+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=f.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:c,value:function(e,t){return l(this,i({},t,{depth:0,customInspect:!1}))}}]),e}()},25:function(e){"use strict";function t(e,t){var o=this,a=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return a||u?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,i.nextTick(s,this,e)):i.nextTick(s,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?o._writableState?o._writableState.errorEmitted?i.nextTick(n,o):(o._writableState.errorEmitted=!0,i.nextTick(r,o,e)):i.nextTick(r,o,e):t?(i.nextTick(n,o),t(e)):i.nextTick(n,o)})),this}function r(e,t){s(e,t),n(e)}function n(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function o(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function s(e,t){e.emit("error",t)}function a(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}e.exports={destroy:t,undestroy:o,errorOrDestroy:a}},698:function(e,t,r){"use strict";var n=r(646).q.ERR_STREAM_PREMATURE_CLOSE;function i(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}function o(){}function s(e){return e.setHeader&&"function"==typeof e.abort}function a(e,t,r){if("function"==typeof t)return a(e,null,t);t||(t={}),r=i(r||o);var u=t.readable||!1!==t.readable&&e.readable,f=t.writable||!1!==t.writable&&e.writable,l=function(){e.writable||d()},c=e._writableState&&e._writableState.finished,d=function(){f=!1,c=!0,u||r.call(e)},h=e._readableState&&e._readableState.endEmitted,p=function(){u=!1,h=!0,f||r.call(e)},b=function(t){r.call(e,t)},g=function(){var t;return u&&!h?(e._readableState&&e._readableState.ended||(t=new n),r.call(e,t)):f&&!c?(e._writableState&&e._writableState.ended||(t=new n),r.call(e,t)):void 0},m=function(){e.req.on("finish",d)};return s(e)?(e.on("complete",d),e.on("abort",g),e.req?m():e.on("request",m)):f&&!e._writableState&&(e.on("end",l),e.on("close",l)),e.on("end",p),e.on("finish",d),!1!==t.error&&e.on("error",b),e.on("close",g),function(){e.removeListener("complete",d),e.removeListener("abort",g),e.removeListener("request",m),e.req&&e.req.removeListener("finish",d),e.removeListener("end",l),e.removeListener("close",l),e.removeListener("finish",d),e.removeListener("end",p),e.removeListener("error",b),e.removeListener("close",g)}}e.exports=a},727:function(e,t,r){"use strict";function n(e,t,r,n,i,o,s){try{var a=e[o](s),u=a.value}catch(e){r(e);return}a.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise(function(i,o){var s=e.apply(t,r);function a(e){n(s,i,o,a,u,"next",e)}function u(e){n(s,i,o,a,u,"throw",e)}a(void 0)})}}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){a(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}
10var u=r(646).q.ERR_INVALID_ARG_TYPE;function f(e,t,r){if(t&&"function"==typeof t.next)n=t;else if(t&&t[Symbol.asyncIterator])n=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])n=t[Symbol.iterator]();else throw new u("iterable",["Iterable"],t);var n,o=new e(s({objectMode:!0},r)),a=!1;function f(){return l.apply(this,arguments)}function l(){return(l=i(function*(){try{var e=yield n.next(),t=e.value;e.done?o.push(null):o.push((yield t))?f():a=!1}catch(e){o.destroy(e)}})).apply(this,arguments)}return o._read=function(){a||(a=!0,f())},o}e.exports=f},442:function(e,t,r){"use strict";function n(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var i,o=r(646).q,s=o.ERR_MISSING_ARGS,a=o.ERR_STREAM_DESTROYED;function u(e){if(e)throw e}function f(e){return e.setHeader&&"function"==typeof e.abort}function l(e,t,o,s){s=n(s);var u=!1;e.on("close",function(){u=!0}),void 0===i&&(i=r(698)),i(e,{readable:t,writable:o},function(e){if(e)return s(e);u=!0,s()});var l=!1;return function(t){if(!u&&!l){if(l=!0,f(e))return e.abort();if("function"==typeof e.destroy)return e.destroy();s(t||new a("pipe"))}}}function c(e){e()}function d(e,t){return e.pipe(t)}function h(e){return e.length&&"function"==typeof e[e.length-1]?e.pop():u}function p(){for(var e,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=h(r);if(Array.isArray(r[0])&&(r=r[0]),r.length<2)throw new s("streams");var o=r.map(function(t,n){var s=n<r.length-1;return l(t,s,n>0,function(t){e||(e=t),t&&o.forEach(c),s||(o.forEach(c),i(e))})});return r.reduce(d)}e.exports=p},776:function(e,t,r){"use strict";var n=r(646).q.ERR_INVALID_OPT_VALUE;function i(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}function o(e,t,r,o){var s=i(t,o,r);if(null!=s){if(!(isFinite(s)&&Math.floor(s)===s)||s<0)throw new n(o?r:"highWaterMark",s);return Math.floor(s)}return e.objectMode?16:16384}e.exports={getHighWaterMark:o}},678:function(e,t,r){e.exports=r(781)},726:function(e,t,r){var n=r(781);"disable"===i.env.READABLE_STREAM&&n?(e.exports=n.Readable,Object.assign(e.exports,n),e.exports.Stream=n):((t=e.exports=r(709)).Stream=n||t,t.Readable=t,t.Writable=r(337),t.Duplex=r(403),t.Transform=r(170),t.PassThrough=r(889),t.finished=r(698),t.pipeline=r(442))},55:function(e,t,r){var n=r(300),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=s),s.prototype=Object.create(i.prototype),o(i,s),s.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},s.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},s.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},813:function(e,t,n){var i=n(450),o=n(254),s=n(911),a=n(523),u=n(310),f=t;f.request=function(e,t){e="string"==typeof e?u.parse(e):s(e);var n=-1===r.g.location.protocol.search(/^https?:$/)?"http:":"",o=e.protocol||n,a=e.hostname||e.host,f=e.port,l=e.path||"/";a&&-1!==a.indexOf(":")&&(a="["+a+"]"),e.url=(a?o+"//"+a:"")+(f?":"+f:"")+l,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var c=new i(e);return t&&c.on("response",t),c},f.get=function(e,t){var r=f.request(e,t);return r.end(),r},f.ClientRequest=i,f.IncomingMessage=o.IncomingMessage,f.Agent=function(){},f.Agent.defaultMaxSockets=4,f.globalAgent=new f.Agent,f.STATUS_CODES=a,f.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]},301:function(e,t){var n;function i(){if(void 0!==n)return n;if(r.g.XMLHttpRequest){n=new r.g.XMLHttpRequest;try{n.open("GET",r.g.XDomainRequest?"/":"https://example.com")}catch(e){n=null}}else n=null;return n}function o(e){var t=i();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}function s(e){return"function"==typeof e}t.fetch=s(r.g.fetch)&&s(r.g.ReadableStream),t.writableStream=s(r.g.WritableStream),t.abortController=s(r.g.AbortController),t.arraybuffer=t.fetch||o("arraybuffer"),t.msstream=!t.fetch&&o("ms-stream"),t.mozchunkedarraybuffer=!t.fetch&&o("moz-chunked-arraybuffer"),t.overrideMimeType=t.fetch||!!i()&&s(i().overrideMimeType),n=null},450:function(e,t,n){var s=n(301),a=n(782),u=n(254),f=n(726),l=u.IncomingMessage,c=u.readyStates;function d(e,t){return s.fetch&&t?"fetch":s.mozchunkedarraybuffer?"moz-chunked-arraybuffer":s.msstream?"ms-stream":s.arraybuffer&&e?"arraybuffer":"text"}var h=e.exports=function(e){var t,r=this;f.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+o.from(e.auth).toString("base64")),Object.keys(e.headers).forEac
10h(function(t){r.setHeader(t,e.headers[t])});var n=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!s.abortController)n=!1,t=!0;else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!s.overrideMimeType;else if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw Error("Invalid value for opts.mode");else t=!0;r._mode=d(t,n),r._fetchTimer=null,r.on("finish",function(){r._onFinish()})};function p(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}}a(h,f.Writable),h.prototype.setHeader=function(e,t){var r=this,n=e.toLowerCase();-1===b.indexOf(n)&&(r._headers[n]={name:e,value:t})},h.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},h.prototype.removeHeader=function(e){var t=this;delete t._headers[e.toLowerCase()]},h.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts,n=e._headers,o=null;"GET"!==t.method&&"HEAD"!==t.method&&(o=new Blob(e._body,{type:(n["content-type"]||{}).value||""}));var a=[];if(Object.keys(n).forEach(function(e){var t=n[e].name,r=n[e].value;Array.isArray(r)?r.forEach(function(e){a.push([t,e])}):a.push([t,r])}),"fetch"===e._mode){var u=null;if(s.abortController){var f=new AbortController;u=f.signal,e._fetchAbortController=f,"requestTimeout"in t&&0!==t.requestTimeout&&(e._fetchTimer=r.g.setTimeout(function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()},t.requestTimeout))}r.g.fetch(e._opts.url,{method:e._opts.method,headers:a,body:o||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:u}).then(function(t){e._fetchResponse=t,e._connect()},function(t){r.g.clearTimeout(e._fetchTimer),e._destroyed||e.emit("error",t)})}else{var l=e._xhr=new r.g.XMLHttpRequest;try{l.open(e._opts.method,e._opts.url,!0)}catch(t){i.nextTick(function(){e.emit("error",t)});return}"responseType"in l&&(l.responseType=e._mode),"withCredentials"in l&&(l.withCredentials=!!t.withCredentials),"text"===e._mode&&"overrideMimeType"in l&&l.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(l.timeout=t.requestTimeout,l.ontimeout=function(){e.emit("requestTimeout")}),a.forEach(function(e){l.setRequestHeader(e[0],e[1])}),e._response=null,l.onreadystatechange=function(){switch(l.readyState){case c.LOADING:case c.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(l.onprogress=function(){e._onXHRProgress()}),l.onerror=function(){e._destroyed||e.emit("error",Error("XHR error"))};try{l.send(o)}catch(t){i.nextTick(function(){e.emit("error",t)});return}}}},h.prototype._onXHRProgress=function(){var e=this;p(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress())},h.prototype._connect=function(){var e=this;e._destroyed||(e._response=new l(e._xhr,e._fetchResponse,e._mode,e._fetchTimer),e._response.on("error",function(t){e.emit("error",t)}),e.emit("response",e._response))},h.prototype._write=function(e,t,r){var n=this;n._body.push(e),r()},h.prototype.abort=h.prototype.destroy=function(){var e=this;e._destroyed=!0,r.g.clearTimeout(e._fetchTimer),e._response&&(e._response._destroyed=!0),e._xhr?e._xhr.abort():e._fetchAbortController&&e._fetchAbortController.abort()},h.prototype.end=function(e,t,r){var n=this;"function"==typeof e&&(r=e,e=void 0),f.Writable.prototype.end.call(n,e,t,r)},h.prototype.flushHeaders=function(){},h.prototype.setTimeout=function(){},h.prototype.setNoDelay=function(){},h.prototype.setSocketKeepAlive=function(){};var b=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]},254:function(e,t,n){var s=n(301),a=n(782),u=n(726),f=t.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},l=t.IncomingMessage=function(e,t,n,a){var f=this;if(u.Readable.call(f),f._mode=n,f.headers={},f.rawHeaders=[],f.trailers={},f.rawTrailers=[],f.on("end",function(){i.nextTick(function(){f.emit("close")})}),"fetch"===n){if(f._fetchResponse=t,f.url=t.url,f.statusCode=t.status,f.statusMessage=t.statusText,t.headers.forEac
10h(function(e,t){f.headers[t.toLowerCase()]=e,f.rawHeaders.push(t,e)}),s.writableStream){var l=new WritableStream({write:function(e){return new Promise(function(t,r){f._destroyed?r():f.push(o.from(e))?t():f._resumeFetch=t})},close:function(){r.g.clearTimeout(a),f._destroyed||f.push(null)},abort:function(e){f._destroyed||f.emit("error",e)}});try{t.body.pipeTo(l).catch(function(e){r.g.clearTimeout(a),f._destroyed||f.emit("error",e)});return}catch(e){}}var c=t.body.getReader();function d(){c.read().then(function(e){if(!f._destroyed){if(e.done){r.g.clearTimeout(a),f.push(null);return}f.push(o.from(e.value)),d()}}).catch(function(e){r.g.clearTimeout(a),f._destroyed||f.emit("error",e)})}d()}else if(f._xhr=e,f._pos=0,f.url=e.responseURL,f.statusCode=e.status,f.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach(function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var r=t[1].toLowerCase();"set-cookie"===r?(void 0===f.headers[r]&&(f.headers[r]=[]),f.headers[r].push(t[2])):void 0!==f.headers[r]?f.headers[r]+=", "+t[2]:f.headers[r]=t[2],f.rawHeaders.push(t[1],t[2])}}),f._charset="x-user-defined",!s.overrideMimeType){var h=f.rawHeaders["mime-type"];if(h){var p=h.match(/;\s*charset=([^;])(;|$)/);p&&(f._charset=p[1].toLowerCase())}f._charset||(f._charset="utf-8")}};a(l,u.Readable),l.prototype._read=function(){var e=this,t=e._resumeFetch;t&&(e._resumeFetch=null,t())},l.prototype._onXHRProgress=function(){var e=this,t=e._xhr,n=null;switch(e._mode){case"text":if((n=t.responseText).length>e._pos){var i=n.substr(e._pos);if("x-user-defined"===e._charset){for(var s=o.alloc(i.length),a=0;a<i.length;a++)s[a]=255&i.charCodeAt(a);e.push(s)}else e.push(i,e._charset);e._pos=n.length}break;case"arraybuffer":if(t.readyState!==f.DONE||!t.response)break;n=t.response,e.push(o.from(new Uint8Array(n)));break;case"moz-chunked-arraybuffer":if(n=t.response,t.readyState!==f.LOADING||!n)break;e.push(o.from(new Uint8Array(n)));break;case"ms-stream":if(n=t.response,t.readyState!==f.LOADING)break;var u=new r.g.MSStreamReader;u.onprogress=function(){u.result.byteLength>e._pos&&(e.push(o.from(new Uint8Array(u.result.slice(e._pos)))),e._pos=u.result.byteLength)},u.onload=function(){e.push(null)},u.readAsArrayBuffer(n)}e._xhr.readyState===f.DONE&&"ms-stream"!==e._mode&&e.push(null)}},704:function(e,t,r){"use strict";var n=r(55).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function s(e){var t=o(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}function a(e){var t;switch(this.encoding=s(e),this.encoding){case"utf16le":this.text=p,this.end=b,t=4;break;case"utf8":this.fillLast=c,t=4;break;case"base64":this.text=g,this.end=m,t=3;break;default:this.write=y,this.end=v;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function u(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function f(e,t,r){var n=t.length-1;if(n<r)return 0;var i=u(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=u(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=u(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}function l(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function c(e){var t=this.lastTotal-this.lastNeed,r=l(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function d(e,t){var r=f(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function p(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function b(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function g(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function m(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function y(e){return e.toString(this.encoding)}function v(e){return e&&e.length?this.write(e):""}t.s=a,a.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},a.prototype.end=h,a.prototype.text=d,a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},769:function(e){function t(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}function n(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}
10e.exports=t},911:function(e){e.exports=r;var t=Object.prototype.hasOwnProperty;function r(){for(var e={},r=0;r<arguments.length;r++){var n=arguments[r];for(var i in n)t.call(n,i)&&(e[i]=n[i])}return e}},300:function(e){"use strict";e.exports=r(9109)},361:function(e){"use strict";e.exports=r(68885)},781:function(e){"use strict";e.exports=r(63090)},310:function(e){"use strict";e.exports=r(48464)},837:function(e){"use strict";e.exports=r(11786)}},s={};function a(e){var r=s[e];if(void 0!==r)return r.exports;var n=s[e]={exports:{}},i=!0;try{t[e](n,n.exports,a),i=!1}finally{i&&delete s[e]}return n.exports}a.ab=n+"/";var u=a(813);e.exports=u}()},38336:function(module){var __dirname="/";!function(){var __webpack_modules__={950:function(__unused_webpack_module,exports){var indexOf=function(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0;r<e.length;r++)if(e[r]===t)return r;return -1},Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var r in e)t.push(r);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r<e.length;r++)t(e[r],r,e)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(e,t,r){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:r})}}catch(e){return function(e,t,r){e[t]=r}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(e){if(!(this instanceof Script))return new Script(e);this.code=e};Script.prototype.runInContext=function(e){if(!(e instanceof Context))throw TypeError("needs a 'context' argument.");var t=document.createElement("iframe");t.style||(t.style={}),t.style.display="none",document.body.appendChild(t);var r=t.contentWindow,n=r.eval,i=r.execScript;!n&&i&&(i.call(r,"null"),n=r.eval),forEach(Object_keys(e),function(t){r[t]=e[t]}
10),forEach(globals,function(t){e[t]&&(r[t]=e[t])});var o=Object_keys(r),s=n.call(r,this.code);return forEach(Object_keys(r),function(t){(t in e||-1===indexOf(o,t))&&(e[t]=r[t])}),forEach(globals,function(t){t in e||defineProp(e,t,r[t])}),document.body.removeChild(t),s},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(e){var t=Script.createContext(e),r=this.runInContext(t);return e&&forEach(Object_keys(t),function(r){e[r]=t[r]}),r},forEach(Object_keys(Script.prototype),function(e){exports[e]=Script[e]=function(t){var r=Script(t);return r[e].apply(r,[].slice.call(arguments,1))}}),exports.isContext=function(e){return e instanceof Context},exports.createScript=function(e){return exports.Script(e)},exports.createContext=Script.createContext=function(e){var t=new Context;return"object"==typeof e&&forEach(Object_keys(e),function(r){t[r]=e[r]}),t}}};"undefined"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab=__dirname+"/");var __nested_webpack_exports__={};__webpack_modules__[950](0,__nested_webpack_exports__),module.exports=__nested_webpack_exports__}()},47735:function(e,t,r){var n=r(57104);function i(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function o(e){var t=function(){if(t.called)throw Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}e.exports=n(i),e.exports.strict=n(o),i.proto=i(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return o(this)},configurable:!0})})},68459:function(e,t,r){var n=r(25566),i=r(47735),o=r(99302),s=r(71156),a=function(){},u=/^v?\.0/.test(n.version),f=function(e){return"function"==typeof e},l=function(e){return!!u&&!!s&&(e instanceof(s.ReadStream||a)||e instanceof(s.WriteStream||a))&&f(e.close)},c=function(e){return e.setHeader&&f(e.abort)},d=function(e,t,r,n){n=i(n);var s=!1;e.on("close",function(){s=!0}),o(e,{readable:t,writable:r},function(e){if(e)return n(e);s=!0,n()});var u=!1;return function(t){if(!s&&!u){if(u=!0,l(e))return e.close(a);if(c(e))return e.abort();if(f(e.destroy))return e.destroy();n(t||Error("stream was destroyed"))}}},h=function(e){e()},p=function(e,t){return e.pipe(t)},b=function(){var e,t=Array.prototype.slice.call(arguments),r=f(t[t.length-1]||a)&&t.pop()||a;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw Error("pump requires two streams per minimum");var n=t.map(function(i,o){var s=o<t.length-1;return d(i,s,o>
100,function(t){e||(e=t),t&&n.forEach(h),s||(n.forEach(h),r(e))})});return t.reduce(p)};e.exports=b},70845:function(e,t,r){"use strict";var n=r(25566),i=65536,o=4294967295;function s(){throw Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}var a=r(10632).Buffer,u=r.g.crypto||r.g.msCrypto;function f(e,t){if(e>o)throw RangeError("requested too many random bytes");var r=a.allocUnsafe(e);if(e>0){if(e>i)for(var s=0;s<e;s+=i)u.getRandomValues(r.slice(s,s+i));else u.getRandomValues(r)}return"function"==typeof t?n.nextTick(function(){t(null,r)}):r}u&&u.getRandomValues?e.exports=f:e.exports=s},57104:function(e){e.exports=t;function t(e,r){if(e&&r)return t(e)(r);if("function"!=typeof e)throw TypeError("need wrapper function");return Object.keys(e).forEach(function(t){n[t]=e[t]}),n;function n(){for(var t=Array(arguments.length),r=0;r<t.length;r++)t[r]=arguments[r];var n=e.apply(this,t),i=t[t.length-1];return"function"==typeof n&&n!==i&&Object.keys(i).forEach(function(e){n[e]=i[e]}),n}}},60518:function(e,t,r){var n=r(80154).default;function i(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=i=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var t,r={},o=Object.prototype,s=o.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},u="function"==typeof Symbol?Symbol:{},f=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",c=u.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,r){return e[t]=r}}function h(e,t,r,n){var i=Object.create((t&&t.prototype instanceof w?t:w).prototype);return a(i,"_invoke",{value:O(e,r,new L(n||[]))}),i}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}r.wrap=h;var b="suspendedStart",g="suspendedYield",m="executing",y="completed",v={};function w(){}function _(){}function S(){}var E={};d(E,f,function(){return this});var A=Object.getPrototypeOf,R=A&&A(A(B([])));R&&R!==o&&s.call(R,f)&&(E=R);var x=S.prototype=w.prototype=Object.create(E);function M(e){["next","throw","return"].forEach(function(t){d(e,t,function(e){return this._invoke(t,e)})})}function k(e,t){var r;function i(r,o,a,u){var f=p(e[r],e,o);if("throw"!==f.type){var l=f.arg,c=l.value;return c&&"object"==n(c)&&s.call(c,"__await")?t.resolve(c.__await).then(function(e){i("next",e,a,u)},function(e){i("throw",e,a,u)}):t.resolve(c).then(function(e){l.value=e,a(l)},function(e){return i("throw",e,a,u)})}u(f.arg)}a(this,"_invoke",{value:function(e,n){function o(){return new t(function(t,r){i(e,n,t,r)})}return r=r?r.then(o,o):o()}})}function O(e,r,n){var i=b;return function(o,s){if(i===m)throw Error("Generator is already running");if(i===y){if("throw"===o)throw s;return{value:t,done:!0}}for(n.method=o,n.arg=s;;){var a=n.delegate;if(a){var u=T(a,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===b)throw i=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=m;var f=p(e,r,n);if("normal"===f.type){if(i=n.done?y:g,f.arg===v)continue;return{value:f.arg,done:n.done}}"throw"===f.type&&(i=y,n.method="throw",n.arg=f.arg)}}}function T(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,T(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),v;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var s=o.arg;return s?s.done?(r[e.resultName]=s.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):s:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,v)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function B(e){if(e||""===e){var r=e[f];if(r)return r.call(e);
vendor: 4,088 bytes, line 10
10if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(s.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw TypeError(n(e)+" is not iterable")}return _.prototype=S,a(x,"constructor",{value:S,configurable:!0}),a(S,"constructor",{value:_,configurable:!0}),_.displayName=d(S,c,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,S):(e.__proto__=S,d(e,c,"GeneratorFunction")),e.prototype=Object.create(x),e},r.awrap=function(e){return{__await:e}},M(k.prototype),d(k.prototype,l,function(){return this}),r.AsyncIterator=k,r.async=function(e,t,n,i,o){void 0===o&&(o=Promise);var s=new k(h(e,t,n,i),o);return r.isGeneratorFunction(t)?s:s.next().then(function(e){return e.done?e.value:s.next()})},M(x),d(x,c,"Generator"),d(x,f,function(){return this}),d(x,"toString",function(){return"[object Generator]"}),r.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},r.values=B,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&s.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return a.type="throw",a.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var u=s.call(o,"catchLoc"),f=s.call(o,"finallyLoc");if(u&&f){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!f)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&s.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:B(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},r}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},80154:function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},54566:function(e,t,r){var n=r(60518)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},58274:function(e){"use strict";e.exports={i8:"6.5.5"}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.