1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9867],{1530:(e,t,r)=>{"use strict";var n=r(40918),i=r(19558),o=r(95987),a=o.assert,s=o.parseBytes,f=r(91125),u=r(61584);function d(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof d))return new d(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=d,d.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),f=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:f,Rencoded:o})},d.prototype.verify=function(e,t,r){if(e=s(e),(t=this.makeSignature(t)).S().gte(t.eddsa.curve.n)||t.S().isNeg())return!1;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)},d.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)},d.prototype.keyFromPublic=function(e){return f.fromPublic(this,e)},d.prototype.keyFromSecret=function(e){return f.fromSecret(this,e)},d.prototype.makeSignature=function(e){return e instanceof u?e:new u(this,e)},d.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=128*!!e.getX().isOdd(),t},d.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)},d.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},d.prototype.decodeInt=function(e){return o.intFromLE(e)},d.prototype.isPoint=function(e){return e instanceof this.pointClass}},1643:e=>{"use strict";var t="Function.prototype.bind called on incompatible ",r=Object.prototype.toString,n=Math.max,i="[object Function]",o=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var i=0;i<t.length;i+=1)r[i+e.length]=t[i];return r},a=function(e,t){for(var r=[],n=t||0,i=0;n<e.length;n+=1,i+=1)r[i]=e[n];return r},s=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};e.exports=function(e){var f,u=this;if("function"!=typeof u||r.apply(u)!==i)throw TypeError(t+u);for(var d=a(arguments,1),c=function(){if(this instanceof f){var t=u.apply(this,o(d,arguments));return Object(t)===t?t:this}return u.apply(e,o(d,arguments))},l=n(0,u.length-d.length),h=[],p=0;p<l;p++)h[p]="$"+p;if(f=Function("binder","return function ("+s(h,",")+"){ return binder.apply(this,arguments); }")(c),u.prototype){var b=function(){};b.prototype=u.prototype,f.prototype=new b,b.prototype=null}return f}},1737:(e,t,r)=>{"use strict";var n=r(28419),i=r(71938),o=r(11759);e.exports=function(){return o(n,i,arguments)}},2002:e=>{"use strict";e.exports=Math.abs},2288:(e,t,r)=>{"use strict";var n=r(49364),i=r(29005);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)}},2496:e=>{"use strict";e.exports=Math.floor},3096:(e,t,r)=>{"use strict";let{Buffer:n}=r(82909),{ObjectDefineProperty:i,ObjectKeys:o,ReflectApply:a}=r(21328),{promisify:{custom:s}}=r(16816),{streamReturningOperators:f,promiseReturningOperators:u}=r(77233),{codes:{ERR_ILLEGAL_CONSTRUCTOR:d}}=r(83207),c=r(25864),{setDefaultHighWaterMark:l,getDefaultHighWaterMark:h}=r(50677),{pipeline:p}=r(72802),{destroyer:b}
1=r(67090),g=r(97212),y=r(42523),m=r(47885),v=e.exports=r(27239).Stream;for(let e of(v.isDestroyed=m.isDestroyed,v.isDisturbed=m.isDisturbed,v.isErrored=m.isErrored,v.isReadable=m.isReadable,v.isWritable=m.isWritable,v.Readable=r(62732),o(f))){let t=f[e];function w(...e){if(new.target)throw d();return v.Readable.from(a(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(u)){let t=u[e];function _(...e){if(new.target)throw d();return a(t,this,e)}i(_,"name",{__proto__:null,value:t.name}),i(_,"length",{__proto__:null,value:t.length}),i(v.Readable.prototype,e,{__proto__:null,value:_,enumerable:!1,configurable:!0,writable:!0})}v.Writable=r(95084),v.Duplex=r(78794),v.Transform=r(37384),v.PassThrough=r(21638),v.pipeline=p;let{addAbortSignal:S}=r(56315);v.addAbortSignal=S,v.finished=g,v.destroy=b,v.compose=c,v.setDefaultHighWaterMark=l,v.getDefaultHighWaterMark=h,i(v,"promises",{__proto__:null,configurable:!0,enumerable:!0,get:()=>y}),i(p,s,{__proto__:null,enumerable:!0,get:()=>y.pipeline}),i(g,s,{__proto__:null,enumerable:!0,get:()=>y.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)}},5391:e=>{"use strict";e.exports=EvalError},6533:(e,t,r)=>{"use strict";let{ArrayIsArray:n,ArrayPrototypeIncludes:i,ArrayPrototypeJoin:o,ArrayPrototypeMap:a,NumberIsInteger:s,NumberIsNaN:f,NumberMAX_SAFE_INTEGER:u,NumberMIN_SAFE_INTEGER:d,NumberParseInt:c,ObjectPrototypeHasOwnProperty:l,RegExpPrototypeExec:h,String:p,StringPrototypeToUpperCase:b,StringPrototypeTrim:g}=r(21328),{hideStackFrames:y,codes:{ERR_SOCKET_BAD_PORT:m,ERR_INVALID_ARG_TYPE:v,ERR_INVALID_ARG_VALUE:w,ERR_OUT_OF_RANGE:_,ERR_UNKNOWN_SIGNAL:S}}=r(83207),{normalizeEncoding:x}=r(16816),{isAsyncFunction:A,isArrayBufferView:M}=r(16816).types,E={};function R(e){return e===(0|e)}function O(e){return e===e>>>0}let I=/^[0-7]+$/,P="must be a 32-bit unsigned integer or an octal string";function k(e,t,r){if(void 0===e&&(e=r),"string"==typeof e){if(null===h(I,e))throw new w(t,e,P);e=c(e,8)}return j(e,t),e}let T=y((e,t,r=d,n=u)=>{if("number"!=typeof e)throw new v(t,"number",e);if(!s(e))throw new _(t,"an integer",e);if(e<r||e>n)throw new _(t,`>= ${r} && <= ${n}`,e)}),N=y((e,t,r=-0x80000000,n=0x7fffffff)=>{if("number"!=typeof e)throw new v(t,"number",e);if(!s(e))throw new _(t,"an integer",e);if(e<r||e>n)throw new _(t,`>= ${r} && <= ${n}`,e)}),j=y((e,t,r=!1)=>{if("number"!=typeof e)throw new v(t,"number",e);if(!s(e))throw new _(t,"an integer",e);let n=+!!r,i=0xffffffff;if(e<n||e>i)throw new _(t,`>= ${n} && <= ${i}`,e)});function C(e,t){if("string"!=typeof e)throw new v(t,"string",e)}function B(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)&&f(e))throw new _(t,`${null!=r?`>= ${r}`:""}${null!=r&&null!=n?" && ":""}${null!=n?`<= ${n}`:""}`,e)}let L=y((e,t,r)=>{if(!i(r,e))throw new w(t,e,"must be one of: "+o(a(r,e=>"string"==typeof e?`'${e}'`:p(e)),", "))});function F(e,t){if("boolean"!=typeof e)throw new v(t,"boolean",e)}function D(e,t,r){return null!=e&&l(e,t)?e[t]:r}let q=y((e,t,r=null)=>{let i=D(r,"allowArray",!1),o=D(r,"allowFunction",!1);if(!D(r,"nullable",!1)&&null===e||!i&&n(e)||"object"!=typeof e&&(!o||"function"!=typeof e))throw new v(t,"Object",e)}),U=y((e,t)=>{if(null!=e&&"object"!=typeof e&&"function"!=typeof e)throw new v(t,"a dictionary",e)}),z=y((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 W(e,t){z(e,t);for(let r=0;r<e.length;r++)C(e[r],`${t}[${r}]`)}function $(e,t){z(e,t);for(let r=0;r<e.length;r++)F(e[r],`${t}[${r}]`)}function H(e,t){z(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);Z(n,i)}}function V(e,t="signal"){if(C(e,t),void 0===E[e]){if(void 0!==E[b(e)])throw new S(e+" (signals must use all capital letters)");throw new S(e)}}let G=y((e,t="buffer")=>
1{if(!M(e))throw new v(t,["Buffer","TypedArray","DataView"],e)});function K(e,t){let r=x(t),n=e.length;if("hex"===r&&n%2!=0)throw new w("encoding",t,`is invalid for data of length ${n}`)}function J(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 m(t,e,r);return 0|e}let Z=y((e,t)=>{if(void 0!==e&&(null===e||"object"!=typeof e||!("aborted"in e)))throw new v(t,"AbortSignal",e)}),Y=y((e,t)=>{if("function"!=typeof e)throw new v(t,"Function",e)}),X=y((e,t)=>{if("function"!=typeof e||A(e))throw new v(t,"Function",e)}),Q=y((e,t)=>{if(void 0!==e)throw new v(t,"undefined",e)}),ee=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function et(e,t){if(void 0===e||!h(ee,e))throw new w(t,e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}e.exports={isInt32:R,isUint32:O,parseFileMode:k,validateArray:z,validateStringArray:W,validateBooleanArray:$,validateAbortSignalArray:H,validateBoolean:F,validateBuffer:G,validateDictionary:U,validateEncoding:K,validateFunction:Y,validateInt32:N,validateInteger:T,validateNumber:B,validateObject:q,validateOneOf:L,validatePlainFunction:X,validatePort:J,validateSignalName:V,validateString:C,validateUint32:j,validateUndefined:Q,validateUnion:function(e,t,r){if(!i(r,e))throw new v(t,`('${o(r,"|")}')`,e)},validateAbortSignal:Z,validateLinkHeaderValue:function(e){if("string"==typeof e)return et(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];et(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"')}}},6768:(e,t,r)=>{"use strict";var n=r(97264),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty,a=function(e,t,r){for(var n=0,i=e.length;n<i;n++)o.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))},s=function(e,t,r){for(var n=0,i=e.length;n<i;n++)null==r?t(e.charAt(n),n,e):t.call(r,e.charAt(n),n,e)},f=function(e,t,r){for(var n in e)o.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))};function u(e){return"[object Array]"===i.call(e)}e.exports=function(e,t,r){var i;if(!n(t))throw TypeError("iterator must be a function");arguments.length>=3&&(i=r),u(e)?a(e,t,i):"string"==typeof e?s(e,t,i):f(e,t,i)}},10221:(e,t,r)=>{"use strict";var n=r(65225);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},11540:(e,t,r)=>{"use strict";var n=r(49364),i=r(48946),o=r(29005),a=n.rotr64_hi,s=n.rotr64_lo,f=n.shr64_hi,u=n.shr64_lo,d=n.sum64,c=n.sum64_hi,l=n.sum64_lo,h=n.sum64_4_hi,p=n.sum64_4_lo,b=n.sum64_5_hi,g=n.sum64_5_lo,y=i.BlockHash,m=[0x428a2f98,0xd728ae22,0x71374491,0x23ef65cd,0xb5c0fbcf,0xec4d3b2f,0xe9b5dba5,0x8189dbbc,0x3956c25b,0xf348b538,0x59f111f1,0xb605d019,0x923f82a4,0xaf194f9b,0xab1c5ed5,0xda6d8118,0xd807aa98,0xa3030242,0x12835b01,0x45706fbe,0x243185be,0x4ee4b28c,0x550c7dc3,0xd5ffb4e2,0x72be5d74,0xf27b896f,0x80deb1fe,0x3b1696b1,0x9bdc06a7,0x25c71235,0xc19bf174,0xcf692694,0xe49b69c1,0x9ef14ad2,0xefbe4786,0x384f25e3,0xfc19dc6,0x8b8cd5b5,0x240ca1cc,0x77ac9c65,0x2de92c6f,0x592b0275,0x4a7484aa,0x6ea6e483,0x5cb0a9dc,0xbd41fbd4,0x76f988da,0x831153b5,0x983e5152,0xee66dfab,0xa831c66d,0x2db43210,0xb00327c8,0x98fb213f,0xbf597fc7,0xbeef0ee4,0xc6e00bf3,0x3da88fc2,0xd5a79147,0x930aa725,0x6ca6351,0xe003826f,0x14292967,0xa0e6e70,0x27b70a85,0x46d22ffc,0x2e1b2138,0x5c26c926,0x4d2c6dfc,0x5ac42aed,0x53380d13,0x9d95b3df,0x650a7354,0x8baf63de,0x766a0abb,0x3c77b2a8,0x81c2c92e,0x47edaee6,0x92722c85,0x1482353b,0xa2bfe8a1,0x4cf10364,0xa81a664b,0xbc423001,0xc24b8b70,0xd0f89791,0xc76c51a3,0x654be30,0xd192e819,0xd6ef5218,0xd6990624,0x5565a910,0xf40e3585,0x5771202a,0x106aa070,0x32bbd1b8,0x19a4c116,0xb8d2d0c8,0x1e376c08,0x5141ab53,0x2748774c,0xdf8eeb99,0x34b0bcb5,0xe19b48a8,0x391c0cb3,0xc5c95a63,0x4ed8aa4a,0xe3418acb,0x5b9cca4f,0x7763e373,0x682e6ff3,0xd6b2b8a3,0x748f82ee,0x5defb2fc,0x78a5636f,0x43172f60,0x84c87814,0xa1f0ab72,0x8cc70208,0x1a6439ec,0x90befffa,0x23631e28,0xa4506ceb,0xde82bde9,0xbef9a3f7,0xb2c67915,0xc67178f2,0xe372532b,0xca273ece,0xea26619c,0xd186b8c7,0x21c0c207,0xeada7dd6,0xcde0eb1e,0xf57d4f7f,0xee6ed178,0x6f067aa,0x72176fba,0xa637dc5,0xa2c898a6,0x113f9804,0xbef90dae,0x1b710b35,0x131c471b,0x28db77f5,0x23047d84,0x32caab7b,0x40c72493,0x3c9ebe0a,0x15c9bebc,0x431d67c4,0x9c100d4c,0x4cc5d4be,0xcb3e42b6,0x597f299c,0xfc657e2a,0x5fcb6fab,0x3ad6faec,0x6c44198c,0x4a475817];function v(){if(!(this instanceof v))return new v;
1y.call(this),this.h=[0x6a09e667,0xf3bcc908,0xbb67ae85,0x84caa73b,0x3c6ef372,0xfe94f82b,0xa54ff53a,0x5f1d36f1,0x510e527f,0xade682d1,0x9b05688c,0x2b3e6c1f,0x1f83d9ab,0xfb41bd6b,0x5be0cd19,0x137e2179],this.k=m,this.W=Array(160)}function w(e,t,r,n,i){var o=e&r^~e&i;return o<0&&(o+=0x100000000),o}function _(e,t,r,n,i,o){var a=t&n^~t&o;return a<0&&(a+=0x100000000),a}function S(e,t,r,n,i){var o=e&r^e&i^r&i;return o<0&&(o+=0x100000000),o}function x(e,t,r,n,i,o){var a=t&n^t&o^n&o;return a<0&&(a+=0x100000000),a}function A(e,t){var r=a(e,t,28)^a(t,e,2)^a(t,e,7);return r<0&&(r+=0x100000000),r}function M(e,t){var r=s(e,t,28)^s(t,e,2)^s(t,e,7);return r<0&&(r+=0x100000000),r}function E(e,t){var r=a(e,t,14)^a(e,t,18)^a(t,e,9);return r<0&&(r+=0x100000000),r}function R(e,t){var r=s(e,t,14)^s(e,t,18)^s(t,e,9);return r<0&&(r+=0x100000000),r}function O(e,t){var r=a(e,t,1)^a(e,t,8)^f(e,t,7);return r<0&&(r+=0x100000000),r}function I(e,t){var r=s(e,t,1)^s(e,t,8)^u(e,t,7);return r<0&&(r+=0x100000000),r}function P(e,t){var r=a(e,t,19)^a(t,e,29)^f(e,t,6);return r<0&&(r+=0x100000000),r}function k(e,t){var r=s(e,t,19)^s(t,e,29)^u(e,t,6);return r<0&&(r+=0x100000000),r}n.inherits(v,y),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=P(r[n-4],r[n-3]),o=k(r[n-4],r[n-3]),a=r[n-14],s=r[n-13],f=O(r[n-30],r[n-29]),u=I(r[n-30],r[n-29]),d=r[n-32],c=r[n-31];r[n]=h(i,o,a,s,f,u,d,c),r[n+1]=p(i,o,a,s,f,u,d,c)}},v.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,n=this.h[0],i=this.h[1],a=this.h[2],s=this.h[3],f=this.h[4],u=this.h[5],h=this.h[6],p=this.h[7],y=this.h[8],m=this.h[9],v=this.h[10],O=this.h[11],I=this.h[12],P=this.h[13],k=this.h[14],T=this.h[15];o(this.k.length===r.length);for(var N=0;N<r.length;N+=2){var j=k,C=T,B=E(y,m),L=R(y,m),F=w(y,m,v,O,I,P),D=_(y,m,v,O,I,P),q=this.k[N],U=this.k[N+1],z=r[N],W=r[N+1],$=b(j,C,B,L,F,D,q,U,z,W),H=g(j,C,B,L,F,D,q,U,z,W);j=A(n,i),C=M(n,i);var V=c(j,C,B=S(n,i,a,s,f,u),L=x(n,i,a,s,f,u)),G=l(j,C,B,L);k=I,T=P,I=v,P=O,v=y,O=m,y=c(h,p,$,H),m=l(p,p,$,H),h=f,p=u,f=a,u=s,a=n,s=i,n=c($,H,V,G),i=l($,H,V,G)}d(this.h,0,n,i),d(this.h,2,a,s),d(this.h,4,f,u),d(this.h,6,h,p),d(this.h,8,y,m),d(this.h,10,v,O),d(this.h,12,I,P),d(this.h,14,k,T)},v.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},11759:(e,t,r)=>{"use strict";var n=r(28419),i=r(71938),o=r(66958);e.exports=r(78121)||n.call(o,i)},12483:(e,t,r)=>{"use strict";let{StringPrototypeSlice:n,SymbolIterator:i,TypedArrayPrototypeSet:o,Uint8Array:a}=r(21328),{Buffer:s}=r(82909),{inspect:f}=r(16816);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 s.alloc(0);let t=s.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=s.allocUnsafe(e),r=e,n=this.head,i=0;do{let s=n.data;if(e>s.length)o(t,s,r-e),e-=s.length;else{e===s.length?(o(t,s,r-e),++i,n.next?this.head=n.next:this.head=this.tail=null):(o(t,new a(s.buffer,s.byteOffset,e),r-e),this.head=n,n.data=s.slice(e));break}++i}while(null!==(n=n.next));return this.length-=i,t}[Symbol.for("nodejs.util.inspect.custom")](e,t){return f(this,{...t,depth:0,customInspect:!1})}}},15355:(e,t,r)=>{"use strict";var n=r(49364),i=r(48946),o=r(78413),a=n.rotl32,s=n.sum32,f=n.sum32_5,u=o.ft_1,d=i.BlockHash,c=[0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xca62c1d6];function l(){if(!(this instanceof l))return new l;d.call(this),this.h=[0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0],this.W=Array(80)}n.inherits(l,d),e.exports=l,l.blockSize=512,l.outSize=160,l.hmacStrength=80,l.padLength=64,l.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]=a(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],o=this.h[1],d=this.h[2],l=this.h[3],h=this.h[4];for(n=0;n<r.length;n++){var p=~~(n/20),b=f(a(i,5),u(p,o,d,l),h,r[n],c[p]);h=l,l=d,d=a(o,30),o=i,i=b}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],d),this.h[3]=s(this.h[3],l),this.h[4]=s(this.h[4],h)},l.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},15773:(e,t,r)=>{"use strict";var n=r(96081).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";
1case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=o(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(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=y,t=3;break;default:this.write=m,this.end=v;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function f(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function u(e,t,r){var n=t.length-1;if(n<r)return 0;var i=f(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=f(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=f(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}function d(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=d(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 l(e,t){var r=u(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 y(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function m(e){return e.toString(this.encoding)}function v(e){return e&&e.length?this.write(e):""}t.StringDecoder=s,s.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||""},s.prototype.end=h,s.prototype.text=l,s.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}},16816:(e,t,r)=>{"use strict";let n=r(82909),{format:i,inspect:o}=r(91631),{codes:{ERR_INVALID_ARG_TYPE:a}}=r(83207),{kResistStopPropagation:s,AggregateError:f,SymbolDispose:u}=r(21328),AbortSignal=globalThis.AbortSignal||r(24230).AbortSignal,d=globalThis.AbortController||r(24230).AbortController,c=Object.getPrototypeOf(async function(){}).constructor,l=globalThis.Blob||n.Blob,h=void 0!==l?function(e){return e instanceof l}:function(e){return!1},p=(e,t)=>{if(void 0!==e&&(null===e||"object"!=typeof e||!("aborted"in e)))throw new a(t,"AbortSignal",e)},b=(e,t)=>{if("function"!=typeof e)throw new a(t,"Function",e)};e.exports={AggregateError:f,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:i,inspect:o,types:{isAsyncFunction:e=>e instanceof c,isArrayBufferView:e=>ArrayBuffer.isView(e)},isBlob:h,deprecate:(e,t)=>
1e,addAbortListener:r(69319).addAbortListener||function(e,t){let r;if(void 0===e)throw new a("signal","AbortSignal",e);return p(e,"signal"),b(t,"listener"),e.aborted?queueMicrotask(()=>t()):(e.addEventListener("abort",t,{__proto__:null,once:!0,[s]:!0}),r=()=>{e.removeEventListener("abort",t)}),{__proto__:null,[u](){var e;null==(e=r)||e()}}},AbortSignalAny:AbortSignal.any||function(e){if(1===e.length)return e[0];let t=new d,r=()=>t.abort();return e.forEach(e=>{p(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")},19558:(e,t,r)=>{"use strict";var n,i=t,o=r(40918),a=r(49606),s=r(95987).assert;function f(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function u(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new f(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=f,u("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"]}),u("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"]}),u("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"]}),u("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"]}),u("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"]}),u("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"]}),u("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(32339)}catch(e){n=void 0}u("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"}
1,{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},20585:e=>{"use strict";e.exports={rE:"6.6.1"}},20866:(e,t,r)=>{"use strict";var n,i=r(82909).Buffer;n={value:!0};var o=r(75491);function a(e,t){return(void 0===t&&(t="utf8"),i.isBuffer(e))?u(e.toString("base64")):u(i.from(e,t).toString("base64"))}function s(e,t){return void 0===t&&(t="utf8"),i.from(f(e),"base64").toString(t)}function f(e){return e=e.toString(),o.default(e).replace(/\-/g,"+").replace(/_/g,"/")}function u(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function d(e){return i.from(f(e),"base64")}var c=a;c.encode=a,c.decode=s,c.toBase64=f,c.fromBase64=u,c.toBuffer=d,t.default=c},21328:e=>{"use strict";class t 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} 2`;super(t),this.name="AggregateError",this.errors=e}}e.exports={AggregateError:t,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)=>Object.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,Uint8Array}},21638:(e,t,r)=>{"use strict";let{ObjectSetPrototypeOf:n}=r(21328);e.exports=o;let i=r(37384);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)}},23411:(e,t,r)=>{"use strict";var n=r(80985),i=r(98857),o=r(66530),a=r(1737);e.exports=function(e){var t=o(arguments),r=e.length-(arguments.length-1);return n(t,1+(r>0?r:0),!0)},i?i(e.exports,"apply",{value:a}):e.exports.apply=a},23764: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"))}"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{u="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(79368).Buffer}catch(e){}function a(e,t){var r=e.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function s(e,t,r){var n=a(e,r);return r-1>=t&&(n|=a(e,r-1)<<4),n}function f(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a<o;a++){var s=e.charCodeAt(a)-48;i*=n,s>=49?i+=s-49+10:s>=17?i+=s-17+10:i+=s}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<0x4000000?(this.words=[0x3ffffff&e],this.length=1):e<0x10000000000000?(this.words=[0x3ffffff&e,e/0x4000000&0x3ffffff],this.length=2):(n(e<0x20000000000000),this.words=[0x3ffffff&e,e/0x4000000&0x3ffffff,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,a=0;a<this.length;a++)this.words[a]=0;var s=0;if("be"===r)for(a=e.length-1,i=0;a>=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=o<<s&0x3ffffff,this.words[i+1]=o>>>
vendor: 41,593 bytes, line 2
226-s&0x3ffffff,(s+=24)>=26&&(s-=26,i++);else if("le"===r)for(a=0,i=0;a<e.length;a+=3)o=e[a]|e[a+1]<<8|e[a+2]<<16,this.words[i]|=o<<s&0x3ffffff,this.words[i+1]=o>>>26-s&0x3ffffff,(s+=24)>=26&&(s-=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,a=0;if("be"===r)for(i=e.length-1;i>=t;i-=2)n=s(e,t,i)<<o,this.words[a]|=0x3ffffff&n,o>=18?(o-=18,a+=1,this.words[a]|=n>>>26):o+=8;else for(i=(e.length-t)%2==0?t+1:t;i<e.length;i+=2)n=s(e,t,i)<<o,this.words[a]|=0x3ffffff&n,o>=18?(o-=18,a+=1,this.words[a]|=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<=0x3ffffff;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,u=0,d=r;d<s;d+=n)u=f(e,d,d+n,t),this.imuln(i),this.words[0]+u<0x4000000?this.words[0]+=u:this._iaddn(u);if(0!==a){var c=1;for(u=f(e,d,e.length,t),d=0;d<a;d++)c*=t;this.imuln(c),this.words[0]+u<0x4000000?this.words[0]+=u:this._iaddn(u)}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 u,d=["","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],l=[0,0,0x2000000,0x290d741,0x1000000,0x2e90edd,0x39aa400,0x267bf47,0x1000000,0x290d741,1e7,0x12959c3,0x222c000,0x3bd7765,7529536,0xadcea1,0x1000000,0x1704f61,0x206fc40,0x2cddcf9,64e6,4084101,5153632,6436343,7962624,9765625,0xb54ba0,0xdaf26b,0x1069c00,0x138f9ad,243e5,0x1b4d89f,0x2000000,0x25528a1,0x2b54a20,0x3216b93,0x39aa400];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],a=i*o,s=0x3ffffff&a,f=a/0x4000000|0;r.words[0]=s;for(var u=1;u<n;u++){for(var d=f>>>26,c=0x3ffffff&f,l=Math.min(u,t.length-1),h=Math.max(0,u-e.length+1);h<=l;h++){var p=u-h|0;d+=(a=(i=0|e.words[p])*(o=0|t.words[h])+c)/0x4000000|0,c=0x3ffffff&a}r.words[u]=0|c,f=0|d}return 0!==f?r.words[u]=0|f:r.length--,r.strip()}o.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){for(var r="",i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],f=((s<<i|o)&0xffffff).toString(16);o=s>>>24-i&0xffffff,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?d[6-f.length]+f+r:f+r}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 u=c[e],h=l[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:d[u-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+=0x4000000*this.words[1]:3===this.length&&1===this.words[2]?e+=0x10000000000000+0x4000000*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!==u),this.toArrayLike(u,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var i,o,a=this.byteLength(),s=r||Math.max(1,a);n(a<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0"),this.strip();var f="le"===t,u=new e(s),d=this.clone();if(f){for(o=0;!d.isZero();o++)i=d.andln(255),d.iushrn(8),u[o]=i;for(;o<s;o++)u[o]=0}else{for(o=0;o<s-a;o++)u[o]=0;for(o=0;!d.isZero();o++)i=d.andln(255),d.iushrn(8),u[s-o-1]=i}return u},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;n++)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]=0x3ffffff&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&0x3ffffff>>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]=0x3ffffff&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=0x3ffffff&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,a=0;a<r.length;a++)o=(n=(0|t.words[a])-(0|r.words[a])+o)>>26,this.words[a]=0x3ffffff&n;for(;0!==o&&a<t.length;a++)o=(n=(0|t.words[a])+o)>>26,this.words[a]=0x3ffffff&n;if(0===o&&a<t.length&&t!==this)for(;a<t.length;a++)this.words[a]=t.words[a];return this.length=Math.max(this.length,a),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,a=e.words,s=t.words,f=r.words,u=0,d=0|a[0],c=8191&d,l=d>>>13,h=0|a[1],p=8191&h,b=h>>>13,g=0|a[2],y=8191&g,m=g>>>13,v=0|a[3],w=8191&v,_=v>>>13,S=0|a[4],x=8191&S,A=S>>>13,M=0|a[5],E=8191&M,R=M>>>13,O=0|a[6],I=8191&O,P=O>>>13,k=0|a[7],T=8191&k,N=k>>>13,j=0|a[8],C=8191&j,B=j>>>13,L=0|a[9],F=8191&L,D=L>>>13,q=0|s[0],U=8191&q,z=q>>>13,W=0|s[1],$=8191&W,H=W>>>13,V=0|s[2],G=8191&V,K=V>>>13,J=0|s[3],Z=8191&J,Y=J>>>13,X=0|s[4],Q=8191&X,ee=X>>>13,et=0|s[5],er=8191&et,en=et>>>13,ei=0|s[6],eo=8191&ei,ea=ei>>>13,es=0|s[7],ef=8191&es,eu=es>>>13,ed=0|s[8],ec=8191&ed,el=ed>>>13,eh=0|s[9],ep=8191&eh,eb=eh>>>13;r.negative=e.negative^t.negative,r.length=19,n=Math.imul(c,U);var eg=(u+n|0)+((8191&(i=(i=Math.imul(c,z))+Math.imul(l,U)|0))<<13)|0;u=((o=Math.imul(l,z))+(i>>>13)|0)+(eg>>>26)|0,eg&=0x3ffffff,n=Math.imul(p,U),i=(i=Math.imul(p,z))+Math.imul(b,U)|0,o=Math.imul(b,z),n=n+Math.imul(c,$)|0;var ey=(u+n|0)+((8191&(i=(i=i+Math.imul(c,H)|0)+Math.imul(l,$)|0))<<13)|0;u=((o=o+Math.imul(l,H)|0)+(i>>>13)|0)+(ey>>>26)|0,ey&=0x3ffffff,n=Math.imul(y,U),i=(i=Math.imul(y,z))+Math.imul(m,U)|0,o=Math.imul(m,z),n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,H)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,H)|0,n=n+Math.imul(c,G)|0;var em=(u+n|0)+((8191&(i=(i=i+Math.imul(c,K)|0)+Math.imul(l,G)|0))<<13)|0;u=((o=o+Math.imul(l,K)|0)+(i>>>13)|0)+(em>>>26)|0,em&=0x3ffffff,n=Math.imul(w,U),i=(i=Math.imul(w,z))+Math.imul(_,U)|0,o=Math.imul(_,z),n=n+Math.imul(y,$)|0,i=(i=i+Math.imul(y,H)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,H)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(b,G)|0,o=o+Math.imul(b,K)|0,n=n+Math.imul(c,Z)|0;var ev=(u+n|0)+((8191&(i=(i=i+Math.imul(c,Y)|0)+Math.imul(l,Z)|0))<<13)|0;u=((o=o+Math.imul(l,Y)|0)+(i>>>13)|0)+(ev>>>26)|0,ev&=0x3ffffff,n=Math.imul(x,U),i=(i=Math.imul(x,z))+Math.imul(A,U)|0,o=Math.imul(A,z),n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,H)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,H)|0,n=n+Math.imul(y,G)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(m,G)|0,o=o+Math.imul(m,K)|0,n=n+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,Y)|0,n=n+Math.imul(c,Q)|0;var ew=(u+n|0)+((8191&(i=(i=i+Math.imul(c,ee)|0)+Math.imul(l,Q)|0))<<13)|0;u=((o=o+Math.imul(l,ee)|0)+(i>>>13)|0)+(ew>>>26)|0,ew&=0x3ffffff,n=Math.imul(E,U),i=(i=Math.imul(E,z))+Math.imul(R,U)|0,o=Math.imul(R,z),n=n+Math.imul(x,$)|0,i=(i=i+Math.imul(x,H)|0)+Math.imul(A,$)|0,o=o+Math.imul(A,H)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,K)|0,n=n+Math.imul(y,Z)|0,i=(i=i+Math.imul(y,Y)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,Y)|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,n=n+Math.imul(c,er)|0;var e_=(u+n|0)+((8191&(i=(i=i+Math.imul(c,en)|0)+Math.imul(l,er)|0))<<13)|0;u=((o=o+Math.imul(l,en)|0)+(i>>>13)|0)+(e_>>>26)|0,e_&=0x3ffffff,n=Math.imul(I,U),i=(i=Math.imul(I,z))+Math.imul(P,U)|0,o=Math.imul(P,z),n=n+Math.imul(E,$)|0,i=(i=i+Math.imul(E,H)|0)+Math.imul(R,$)|0,o=o+Math.imul(R,H)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(A,G)|0,o=o+Math.imul(A,K)|0,n=n+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,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,n=n+Math.imul(c,eo)|0;var eS=(u+n|0)+((8191&(i=(i=i+Math.imul(c,ea)|0)+Math.imul(l,eo)|0))<<13)|0;u=((o=o+Math.imul(l,ea)|0)+(i>>>13)|0)+(eS>>>26)|0,eS&=0x3ffffff,n=Math.imul(T,U),i=(i=Math.imul(T,z))+Math.imul(N,U)|0,o=Math.imul(N,z),n=n+Math.imul(I,$)|0,i=(i=i+Math.imul(I,H)|0)+Math.imul(P,$)|0,o=o+Math.imul(P,H)|0,n=n+Math.imul(E,G)|0,i=(i=i+Math.imul(E,K)|0)+Math.imul(R,G)|0,o=o+Math.imul(R,K)|0,n=n+Math.imul(x,Z)|0,i=(i=i+Math.imul(x,Y)|0)+Math.imul(A,Z)|0,o=o+Math.imul(A,Y)|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(y,er)|0,i=(i=i+Math.imul(y,en)|0)+Math.imul(m,er)|0,o=o+Math.imul(m,en)|0,n=n+Math.imul(p,eo)|0,i=(i=i+Math.imul(p,ea)|0)+Math.imul(b,eo)|0,o=o+Math.imul(b,ea)|0,n=n+Math.imul(c,ef)|0;var ex=(u+n|0)+((8191&(i=(i=i+Math.imul(c,eu)|0)+Math.imul(l,ef)|0))<<13)|0;u=((o=o+Math.imul(l,eu)|0)+(i>>>13)|0)+(ex>>>26)|0,ex&=0x3ffffff,n=Math.imul(C,U),i=(i=Math.imul(C,z))+Math.imul(B,U)|0,o=Math.imul(B,z),n=n+Math.imul(T,$)|0,i=(i=i+Math.imul(T,H)|0)+Math.imul(N,$)|0,o=o+Math.imul(N,H)|0,n=n+Math.imul(I,G)|0,i=(i=i+Math.imul(I,K)|0)+Math.imul(P,G)|0,o=o+Math.imul(P,K)|0,n=n+Math.imul(E,Z)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(R,Z)|0,o=o+Math.imul(R,Y)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,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(y,eo)|0,i=(i=i+Math.imul(y,ea)|0)+Math.imul(m,eo)|0,o=o+Math.imul(m,ea)|0,n=n+Math.imul(p,ef)|0,i=(i=i+Math.imul(p,eu)|0)+Math.imul(b,ef)|0,o=o+Math.imul(b,eu)|0,n=n+Math.imul(c,ec)|0;var eA=(u+n|0)+((8191&(i=(i=i+Math.imul(c,el)|0)+Math.imul(l,ec)|0))<<13)|0;u=((o=o+Math.imul(l,el)|0)+(i>>>13)|0)+(eA>>>26)|0,eA&=0x3ffffff,n=Math.imul(F,U),i=(i=Math.imul(F,z))+Math.imul(D,U)|0,o=Math.imul(D,z),n=n+Math.imul(C,$)|0,i=(i=i+Math.imul(C,H)|0)+Math.imul(B,$)|0,o=o+Math.imul(B,H)|0,n=n+Math.imul(T,G)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(N,G)|0,o=o+Math.imul(N,K)|0,n=n+Math.imul(I,Z)|0,i=(i=i+Math.imul(I,Y)|0)+Math.imul(P,Z)|0,o=o+Math.imul(P,Y)|0,n=n+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(R,Q)|0,o=o+Math.imul(R,ee)|0,n=n+Math.imul(x,er)|0,i=(i=i+Math.imul(x,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,ea)|0)+Math.imul(_,eo)|0,o=o+Math.imul(_,ea)|0,n=n+Math.imul(y,ef)|0,i=(i=i+Math.imul(y,eu)|0)+Math.imul(m,ef)|0,o=o+Math.imul(m,eu)|0,n=n+Math.imul(p,ec)|0,i=(i=i+Math.imul(p,el)|0)+Math.imul(b,ec)|0,o=o+Math.imul(b,el)|0,n=n+Math.imul(c,ep)|0;var eM=(u+n|0)+((8191&(i=(i=i+Math.imul(c,eb)|0)+Math.imul(l,ep)|0))<<13)|0;u=((o=o+Math.imul(l,eb)|0)+(i>>>13)|0)+(eM>>>26)|0,eM&=0x3ffffff,n=Math.imul(F,$),i=(i=Math.imul(F,H))+Math.imul(D,$)|0,o=Math.imul(D,H),n=n+Math.imul(C,G)|0,i=(i=i+Math.imul(C,K)|0)+Math.imul(B,G)|0,o=o+Math.imul(B,K)|0,n=n+Math.imul(T,Z)|0,i=(i=i+Math.imul(T,Y)|0)+Math.imul(N,Z)|0,o=o+Math.imul(N,Y)|0,n=n+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(P,Q)|0,o=o+Math.imul(P,ee)|0,n=n+Math.imul(E,er)|0,i=(i=i+Math.imul(E,en)|0)+Math.imul(R,er)|0,o=o+Math.imul(R,en)|0,n=n+Math.imul(x,eo)|0,i=(i=i+Math.imul(x,ea)|0)+Math.imul(A,eo)|0,o=o+Math.imul(A,ea)|0,n=n+Math.imul(w,ef)|0,i=(i=i+Math.imul(w,eu)|0)+Math.imul(_,ef)|0,o=o+Math.imul(_,eu)|0,n=n+Math.imul(y,ec)|0,i=(i=i+Math.imul(y,el)|0)+Math.imul(m,ec)|0,o=o+Math.imul(m,el)|0,n=n+Math.imul(p,ep)|0;var eE=(u+n|0)+((8191&(i=(i=i+Math.imul(p,eb)|0)+Math.imul(b,ep)|0))<<13)|0;u=((o=o+Math.imul(b,eb)|0)+(i>>>13)|0)+(eE>>>26)|0,eE&=0x3ffffff,n=Math.imul(F,G),i=(i=Math.imul(F,K))+Math.imul(D,G)|0,o=Math.imul(D,K),n=n+Math.imul(C,Z)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(B,Z)|0,o=o+Math.imul(B,Y)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,ee)|0,n=n+Math.imul(I,er)|0,i=(i=i+Math.imul(I,en)|0)+Math.imul(P,er)|0,o=o+Math.imul(P,en)|0,n=n+Math.imul(E,eo)|0,i=(i=i+Math.imul(E,ea)|0)+Math.imul(R,eo)|0,o=o+Math.imul(R,ea)|0,n=n+Math.imul(x,ef)|0,i=(i=i+Math.imul(x,eu)|0)+Math.imul(A,ef)|0,o=o+Math.imul(A,eu)|0,n=n+Math.imul(w,ec)|0,i=(i=i+Math.imul(w,el)|0)+Math.imul(_,ec)|0,o=o+Math.imul(_,el)|0,n=n+Math.imul(y,ep)|0;var eR=(u+n|0)+((8191&(i=(i=i+Math.imul(y,eb)|0)+Math.imul(m,ep)|0))<<13)|0;u=((o=o+Math.imul(m,eb)|0)+(i>>>13)|0)+(eR>>>26)|0,eR&=0x3ffffff,n=Math.imul(F,Z),i=(i=Math.imul(F,Y))+Math.imul(D,Z)|0,o=Math.imul(D,Y),n=n+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(B,Q)|0,o=o+Math.imul(B,ee)|0,n=n+Math.imul(T,er)|0,i=(i=i+Math.imul(T,en)|0)+Math.imul(N,er)|0,o=o+Math.imul(N,en)|0,n=n+Math.imul(I,eo)|0,i=(i=i+Math.imul(I,ea)|0)+Math.imul(P,eo)|0,o=o+Math.imul(P,ea)|0,n=n+Math.imul(E,ef)|0,i=(i=i+Math.imul(E,eu)|0)+Math.imul(R,ef)|0,o=o+Math.imul(R,eu)|0,n=n+Math.imul(x,ec)|0,i=(i=i+Math.imul(x,el)|0)+Math.imul(A,ec)|0,o=o+Math.imul(A,el)|0,n=n+Math.imul(w,ep)|0;var eO=(u+n|0)+((8191&(i=(i=i+Math.imul(w,eb)|0)+Math.imul(_,ep)|0))<<13)|0;u=((o=o+Math.imul(_,eb)|0)+(i>>>13)|0)+(eO>>>26)|0,eO&=0x3ffffff,n=Math.imul(F,Q),i=(i=Math.imul(F,ee))+Math.imul(D,Q)|0,o=Math.imul(D,ee),n=n+Math.imul(C,er)|0,i=(i=i+Math.imul(C,en)|0)+Math.imul(B,er)|0,o=o+Math.imul(B,en)|0,n=n+Math.imul(T,eo)|0,i=(i=i+Math.imul(T,ea)|0)+Math.imul(N,eo)|0,o=o+Math.imul(N,ea)|0,n=n+Math.imul(I,ef)|0,i=(i=i+Math.imul(I,eu)|0)+Math.imul(P,ef)|0,o=o+Math.imul(P,eu)|0,n=n+Math.imul(E,ec)|0,i=(i=i+Math.imul(E,el)|0)+Math.imul(R,ec)|0,o=o+Math.imul(R,el)|0,n=n+Math.imul(x,ep)|0;var eI=(u+n|0)+((8191&(i=(i=i+Math.imul(x,eb)|0)+Math.imul(A,ep)|0))<<13)|0;u=((o=o+Math.imul(A,eb)|0)+(i>>>13)|0)+(eI>>>26)|0,eI&=0x3ffffff,n=Math.imul(F,er),i=(i=Math.imul(F,en))+Math.imul(D,er)|0,o=Math.imul(D,en),n=n+Math.imul(C,eo)|0,i=(i=i+Math.imul(C,ea)|0)+Math.imul(B,eo)|0,o=o+Math.imul(B,ea)|0,n=n+Math.imul(T,ef)|0,i=(i=i+Math.imul(T,eu)|0)+Math.imul(N,ef)|0,o=o+Math.imul(N,eu)|0,n=n+Math.imul(I,ec)|0,i=(i=i+Math.imul(I,el)|0)+Math.imul(P,ec)|0,o=o+Math.imul(P,el)|0,n=n+Math.imul(E,ep)|0;var eP=(u+n|0)+((8191&(i=(i=i+Math.imul(E,eb)|0)+Math.imul(R,ep)|0))<<13)|0;u=((o=o+Math.imul(R,eb)|0)+(i>>>13)|0)+(eP>>>26)|0,eP&=0x3ffffff,n=Math.imul(F,eo),i=(i=Math.imul(F,ea))+Math.imul(D,eo)|0,o=Math.imul(D,ea),n=n+Math.imul(C,ef)|0,i=(i=i+Math.imul(C,eu)|0)+Math.imul(B,ef)|0,o=o+Math.imul(B,eu)|0,n=n+Math.imul(T,ec)|0,i=(i=i+Math.imul(T,el)|0)+Math.imul(N,ec)|0,o=o+Math.imul(N,el)|0,n=n+Math.imul(I,ep)|0;var ek=(u+n|0)+((8191&(i=(i=i+Math.imul(I,eb)|0)+Math.imul(P,ep)|0))<<13)|0;u=((o=o+Math.imul(P,eb)|0)+(i>>>13)|0)+(ek>>>26)|0,ek&=0x3ffffff,n=Math.imul(F,ef),i=(i=Math.imul(F,eu))+Math.imul(D,ef)|0,o=Math.imul(D,eu),n=n+Math.imul(C,ec)|0,i=(i=i+Math.imul(C,el)|0)+Math.imul(B,ec)|0,o=o+Math.imul(B,el)|0,n=n+Math.imul(T,ep)|0;var eT=(u+n|0)+((8191&(i=(i=i+Math.imul(T,eb)|0)+Math.imul(N,ep)|0))<<13)|0;u=((o=o+Math.imul(N,eb)|0)+(i>>>13)|0)+(eT>>>26)|0,eT&=0x3ffffff,n=Math.imul(F,ec),i=(i=Math.imul(F,el))+Math.imul(D,ec)|0,o=Math.imul(D,el),n=n+Math.imul(C,ep)|0;var eN=(u+n|0)+((8191&(i=(i=i+Math.imul(C,eb)|0)+Math.imul(B,ep)|0))<<13)|0;u=((o=o+Math.imul(B,eb)|0)+(i>>>13)|0)+(eN>>>26)|0,eN&=0x3ffffff,n=Math.imul(F,ep);var ej=(u+n|0)+((8191&(i=(i=Math.imul(F,eb))+Math.imul(D,ep)|0))<<13)|0;return u=((o=Math.imul(D,eb))+(i>>>13)|0)+(ej>>>26)|0,ej&=0x3ffffff,f[0]=eg,f[1]=ey,f[2]=em,f[3]=ev,f[4]=ew,f[5]=e_,f[6]=eS,f[7]=ex,f[8]=eA,f[9]=eM,f[10]=eE,f[11]=eR,f[12]=eO,f[13]=eI,f[14]=eP,f[15]=ek,f[16]=eT,f[17]=eN,f[18]=ej,0!==u&&(f[19]=u,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 a=i;i=0;for(var s=0x3ffffff&n,f=Math.min(o,t.length-1),u=Math.max(0,o-e.length+1);u<=f;u++){var d=o-u,c=(0|e.words[d])*(0|t.words[u]),l=0x3ffffff&c;a=a+(c/0x4000000|0)|0,s=0x3ffffff&(l=l+s|0),i+=(a=a+(l>>>26)|0)>>>26,a&=0x3ffffff}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}function y(e,t,r){return new m().mulp(e,t,r)}function m(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):y(this,e,t)},m.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},m.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},m.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a<o;a++)n[a]=t[e[a]],i[a]=r[e[a]]},m.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,f=Math.cos(2*Math.PI/s),u=Math.sin(2*Math.PI/s),d=0;d<i;d+=s)for(var c=f,l=u,h=0;h<a;h++){var p=r[d+h],b=n[d+h],g=r[d+h+a],y=n[d+h+a],m=c*g-l*y;y=c*y+l*g,g=m,r[d+h]=p+g,n[d+h]=b+y,r[d+h+a]=p-g,n[d+h+a]=b-y,h!==s&&(m=f*c-u*l,l=f*l+u*c,c=m)}},m.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},m.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}},m.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]=0x3ffffff&i,r=i<0x4000000?0:i/0x4000000|0}return e},m.prototype.convert13b=function(e,t,r,i){for(var o=0,a=0;a<t;a++)o+=0|e[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<i;++a)r[a]=0;n(0===o),n((-8192&o)==0)},m.prototype.stub=function(e){for(var t=Array(e),r=0;r<e;r++)t[r]=0;return t},m.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),a=Array(n),s=Array(n),f=Array(n),u=Array(n),d=Array(n),c=Array(n),l=r.words;l.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(t.words,t.length,u,n),this.transform(a,o,s,f,n,i),this.transform(u,o,d,c,n,i);for(var h=0;h<n;h++){var p=s[h]*d[h]-f[h]*c[h];f[h]=s[h]*c[h]+f[h]*d[h],s[h]=p}return this.conjugate(s,f,n),this.transform(s,f,l,o,n,i),this.conjugate(l,o,n),this.normalize13b(l,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),y(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<0x4000000);for(var t=0,r=0;r<this.length;r++){var i=(0|this.words[r])*e,o=(0x3ffffff&i)+(0x3ffffff&t);t>>=26,t+=(i/0x4000000|0)+(o>>>26),this.words[r]=0x3ffffff&o}return 0!==t&&(this.words[r]=t,this.length++),this.length=0===e?1: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=0x3ffffff>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,f=(0|this.words[t])-s<<r;this.words[t]=f|a,a=s>>>26-r}a&&(this.words[t]=a,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);var i=t?(t-t%26)/26:0,o=e%26,a=Math.min((e-o)/26,this.length),s=0x3ffffff^0x3ffffff>>>o<<o,f=r;if(i-=a,i=Math.max(0,i),f){for(var u=0;u<a;u++)f.words[u]=this.words[u];f.length=a}if(0===a);else if(this.length>a)for(this.length-=a,u=0;u<this.length;u++)this.words[u]=this.words[u+a];else this.words[0]=0,this.length=1;var d=0;for(u=this.length-1;u>=0&&(0!==d||u>=i);u--){var c=0|this.words[u];this.words[u]=d<<26-o|c>>>o,d=c&s}return f&&0!==d&&(f.words[f.length++]=d),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=0x3ffffff^0x3ffffff>>>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<0x4000000),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]>=0x4000000;t++)this.words[t]-=0x4000000,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<0x4000000),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]+=0x4000000,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,a=e.length+r;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+s;var f=(0|e.words[i])*t;o-=0x3ffffff&f,s=(o>>26)-(f/0x4000000|0),this.words[i+r]=0x3ffffff&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>26,this.words[i+r]=0x3ffffff&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=0x3ffffff&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r,n=this.length-e.length,i=this.clone(),a=e,s=0|a.words[a.length-1];0!=(n=26-this._countBits(s))&&(a=a.ushln(n),i.iushln(n),s=0|a.words[a.length-1]);var f=i.length-a.length;if("mod"!==t){(r=new o(null)).length=f+1,r.words=Array(r.length);for(var u=0;u<r.length;u++)r.words[u]=0}var d=i.clone()._ishlnsubmul(a,1,f);0===d.negative&&(i=d,r&&(r.words[f]=1));for(var c=f-1;c>=0;c--){var l=(0|i.words[a.length+c])*0x4000000+(0|i.words[a.length+c-1]);for(l=Math.min(l/s|0,0x3ffffff),i._ishlnsubmul(a,l,c);0!==i.negative;)l--,i.negative=0,i._ishlnsubmul(a,1,c),i.isZero()||(i.negative^=1);r&&(r.words[c]=l)}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,a,s;return(n(!e.isZero()),this.isZero())?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):(this.negative&e.negative)!=0?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):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<=0x3ffffff);for(var t=0x4000000%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<=0x3ffffff);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+0x4000000*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),a=new o(0),s=new o(0),f=new o(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var d=r.clone(),c=t.clone();!t.isZero();){for(var l=0,h=1;(t.words[0]&h)==0&&l<26;++l,h<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(d),a.isub(c)),i.iushrn(1),a.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;)(s.isOdd()||f.isOdd())&&(s.iadd(d),f.isub(c)),s.iushrn(1),f.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(f)):(r.isub(t),s.isub(i),f.isub(a))}return{a:s,b:f,gcd:r.iushln(u)}},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 a=new o(1),s=new o(0),f=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var u=0,d=1;(r.words[0]&d)==0&&u<26;++u,d<<=1);if(u>0)for(r.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(f),a.iushrn(1);for(var c=0,l=1;(i.words[0]&l)==0&&c<26;++c,l<<=1);if(c>0)for(i.iushrn(c);c-- >0;)s.isOdd()&&s.iadd(f),s.iushrn(1);r.cmp(i)>=0?(r.isub(i),a.isub(s)):(i.isub(r),s.isub(a))}return 0>(t=0===r.cmpn(1)?a:s).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,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];s+=o,o=s>>>26,s&=0x3ffffff,this.words[a]=s}return 0!==o&&(this.words[a]=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<=0x3ffffff,"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 M(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 x(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function M(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 E(e){M.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 a=0|e.words[i];e.words[i-10]=(a&r)<<4|o>>>22,o=a}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]=0x3ffffff&t,t=64*n+(t/0x4000000|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(S,w),i(x,w),i(A,w),A.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=(0|e.words[r])*19+t,i=0x3ffffff&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 x;else if("p25519"===e)t=new A;else throw Error("Unknown prime "+e);return v[e]=t,t},M.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},M.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")},M.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},M.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},M.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)},M.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},M.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)},M.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},M.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},M.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},M.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},M.prototype.isqr=function(e){return this.imul(e,e.clone())},M.prototype.sqr=function(e){return this.mul(e,e)},M.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),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),f=s.redNeg(),u=this.m.subn(1).iushrn(1),d=this.m.bitLength();for(d=new o(2*d*d).toRed(this);0!==this.pow(d,u).cmp(f);)d.redIAdd(f);for(var c=this.pow(d,i),l=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var b=h,g=0;0!==b.cmp(s);g++)b=b.redSqr();n(g<p);var y=this.pow(c,new o(1).iushln(p-g-1));l=l.redMul(y),c=y.redSqr(),h=h.redMul(c),p=g}return l},M.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},M.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 a=n[0],s=0,f=0,u=t.bitLength()%26;for(0===u&&(u=26),i=t.length-1;i>=0;i--){for(var d=t.words[i],c=u-1;c>=0;c--){var l=d>>c&1;if(a!==n[0]&&(a=this.sqr(a)),0===l&&0===s){f=0;continue}s<<=1,s|=l,(++f===r||0===i&&0===c)&&(a=this.mul(a,n[s]),f=0,s=0)}u=26}return a},M.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},M.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new E(e)},i(E,M),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.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)},E.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),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):0>i.cmpn(0)&&(a=i.iadd(this.m)),a._forceRed(this)},E.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},24230: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},25487:(e,t,r)=>{"use strict";var n=r(40918),i=r(34243),o=r(29005);function a(e){if(!(this instanceof a))return new a(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;
2var 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=a,a.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=0x1000000000000},a.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},a.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())},a.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},a.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 a=o.slice(0,e);return this._update(r),this._reseed++,i.encode(a,t)}},25864:(e,t,r)=>{"use strict";let{pipeline:n}=r(72802),i=r(78794),{destroyer:o}=r(67090),{isNodeStream:a,isReadable:s,isWritable:f,isWebStream:u,isTransformStream:d,isWritableStream:c,isReadableStream:l}=r(47885),{AbortError:h,codes:{ERR_INVALID_ARG_VALUE:p,ERR_MISSING_ARGS:b}}=r(83207),g=r(97212);e.exports=function(...e){let t,r,y,m,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(a(e[t])||u(e[t])){if(t<e.length-1&&!(s(e[t])||l(e[t])||d(e[t])))throw new p(`streams[${t}]`,w[t],"must be readable");if(t>0&&!(f(e[t])||c(e[t])||d(e[t])))throw new p(`streams[${t}]`,w[t],"must be writable")}function _(e){let t=m;m=null,t?t(e):e?v.destroy(e):M||A||v.destroy()}let S=e[0],x=n(e,_),A=!!(f(S)||c(S)||d(S)),M=!!(s(x)||l(x)||d(x));if(v=new i({writableObjectMode:!!(null!=S&&S.writableObjectMode),readableObjectMode:!!(null!=x&&x.readableObjectMode),writable:A,readable:M}),A){if(a(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(u(S)){let e=(d(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(d(x)?x.readable:x,()=>{if(r){let e=r;r=null,e()}})}if(M){if(a(x))x.on("readable",function(){if(y){let e=y;y=null,e()}}),x.on("end",function(){v.push(null)}),v._read=function(){for(;;){let e=x.read();if(null===e){y=v._read;return}if(!v.push(e))return}};else if(u(x)){let e=(d(x)?x.readable:x).getReader();v._read=async function(){for(;;)try{let{value:t,done:r}=await e.read();if(!v.push(t))return;if(r)return void v.push(null)}catch{return}}}}return v._destroy=function(e,n){e||null===m||(e=new h),y=null,t=null,r=null,null===m?n(e):(m=n,a(x)&&o(x,e))},v}},27239:(e,t,r)=>{"use strict";let{ArrayIsArray:n,ObjectSetPrototypeOf:i}=r(21328),{EventEmitter:o}=r(69319);function a(e){o.call(this,e)}function s(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(a.prototype,o.prototype),i(a,o),a.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",f),r.on("close",u));let a=!1;function f(){a||(a=!0,e.end())}function u(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function d(e){c(),0===o.listenerCount(this,"error")&&this.emit("error",e)}function c(){r.removeListener("data",n),e.removeListener("drain",i),r.removeListener("end",f),r.removeListener("close",u),r.removeListener("error",d),e.removeListener("error",d),r.removeListener("end",c),r.removeListener("close",c),e.removeListener("close",c)}return s(r,"error",d),s(e,"error",d),r.on("end",c),r.on("close",c),e.on("close",c),e.emit("pipe",r),e},e.exports={Stream:a,prependListener:s}},28419:(e,t,r)=>{"use strict";var n=r(1643);e.exports=Function.prototype.bind||n},29005: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)}},29351:e=>{"use strict";e.exports=Error},30237:(e,t,r)=>{var n=r(99742),i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},o=/%[sdj%]/g;t.format=function(e){if(!x(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(u(arguments[r]));return t.join(" ")}for(var r=1,n=arguments,i=n.length,a=String(e).replace(o,function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),s=n[r];r<i;s=n[++r])_(s)||!E(s)?a+=" "+s:a+=" "+u(s);return a},t.deprecate=function(e,r){if(void 0!==n&&!0===n.noDeprecation)return e;if(void 0===n)return function(){return t.deprecate(e,r).apply(this,arguments)};var i=!1;return function(){if(!i){if(n.throwDeprecation)throw Error(r);n.traceDeprecation?console.trace(r):console.error(r),i=!0}return e.apply(this,arguments)}};var a={},s=/^$/;if(n.env.NODE_DEBUG){var f=n.env.NODE_DEBUG;s=RegExp("^"+(f=f.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase())+"$","i")}function u(e,r){var n={seen:[],stylize:c};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),w(r)?n.showHidden=r:r&&t._extend(n,r),A(n.showHidden)&&(n.showHidden=!1),A(n.depth)&&(n.depth=2),A(n.colors)&&(n.colors=!1),A(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=d),h(n,e,n.depth)}function d(e,t){var r=u.styles[t];return r?"\x1b["+u.colors[r][0]+"m"+e+"\x1b["+u.colors[r][1]+"m":e}function c(e,t){return e}function l(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}function h(e,r,n){if(e.customInspect&&r&&I(r.inspect)&&r.inspect!==t.inspect&&!(r.constructor&&r.constructor.prototype===r)){var i,o=r.inspect(n,e);return x(o)||(o=h(e,o,n)),o}var a=p(e,r);if(a)return a;var s=Object.keys(r),f=l(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(r)),O(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return b(r);if(0===s.length){if(I(r)){var u=r.name?": "+r.name:"";return e.stylize("[Function"+u+"]","special")}if(M(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(R(r))return e.stylize(Date.prototype.toString.call(r),"date");if(O(r))return b(r)}var d="",c=!1,w=["{","}"];if(v(r)&&(c=!0,w=["[","]"]),I(r)&&(d=" [Function"+(r.name?": "+r.name:"")+"]"),M(r)&&(d=" "+RegExp.prototype.toString.call(r)),R(r)&&(d=" "+Date.prototype.toUTCString.call(r)),O(r)&&(d=" "+b(r)),0===s.length&&(!c||0==r.length))return w[0]+d+w[1];if(n<0)if(M(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");else return e.stylize("[Object]","special");return e.seen.push(r),i=c?g(e,r,n,f,s):s.map(function(t){return y(e,r,n,f,t,c)}),e.seen.pop(),m(i,d,w)}function p(e,t){if(A(t))return e.stylize("undefined","undefined");if(x(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";
2return e.stylize(r,"string")}return S(t)?e.stylize(""+t,"number"):w(t)?e.stylize(""+t,"boolean"):_(t)?e.stylize("null","null"):void 0}function b(e){return"["+Error.prototype.toString.call(e)+"]"}function g(e,t,r,n,i){for(var o=[],a=0,s=t.length;a<s;++a)j(t,String(a))?o.push(y(e,t,r,n,String(a),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(y(e,t,r,n,i,!0))}),o}function y(e,t,r,n,i,o){var a,s,f;if((f=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=f.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):f.set&&(s=e.stylize("[Setter]","special")),j(n,i)||(a="["+i+"]"),!s&&(0>e.seen.indexOf(f.value)?(s=_(r)?h(e,f.value,null):h(e,f.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").slice(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),A(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function m(e,t,r){var n=0;return e.reduce(function(e,t){return n++,t.indexOf("\n")>=0&&n++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function v(e){return Array.isArray(e)}function w(e){return"boolean"==typeof e}function _(e){return null===e}function S(e){return"number"==typeof e}function x(e){return"string"==typeof e}function A(e){return void 0===e}function M(e){return E(e)&&"[object RegExp]"===P(e)}function E(e){return"object"==typeof e&&null!==e}function R(e){return E(e)&&"[object Date]"===P(e)}function O(e){return E(e)&&("[object Error]"===P(e)||e instanceof Error)}function I(e){return"function"==typeof e}function P(e){return Object.prototype.toString.call(e)}function k(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(!a[e=e.toUpperCase()])if(s.test(e)){var r=n.pid;a[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else a[e]=function(){};return a[e]},t.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(44470),t.isArray=v,t.isBoolean=w,t.isNull=_,t.isNullOrUndefined=function(e){return null==e},t.isNumber=S,t.isString=x,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=A,t.isRegExp=M,t.types.isRegExp=M,t.isObject=E,t.isDate=R,t.types.isDate=R,t.isError=O,t.types.isNativeError=O,t.isFunction=I,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(59101);var T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function N(){var e=new Date,t=[k(e.getHours()),k(e.getMinutes()),k(e.getSeconds())].join(":");return[e.getDate(),T[e.getMonth()],t].join(" ")}function j(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",N(),t.format.apply(t,arguments))},t.inherits=r(93570),t._extend=function(e,t){if(!t||!E(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var C="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function B(e,t){if(!e){var r=Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');if(C&&e[C]){var t=e[C];if("function"!=typeof t)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,C,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise(function(e,n){t=e,r=n}),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push(function(e,n){e?r(e):t(n)});try{e.apply(this,i)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),C&&Object.defineProperty(t,C,{value:t,enumerable:!1,writable:!1,
2configurable:!0}),Object.defineProperties(t,i(e))},t.promisify.custom=C,t.callbackify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var i=t.pop();if("function"!=typeof i)throw TypeError("The last argument must be of type Function");var o=this,a=function(){return i.apply(o,arguments)};e.apply(this,t).then(function(e){n.nextTick(a.bind(null,null,e))},function(e){n.nextTick(B.bind(null,e,a))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,i(e)),t}},30325:(e,t,r)=>{var n,i=r(99742),o=r(52023),a=r(53655);try{n=r(62376)}catch(e){}var s=function(){},f=void 0!==i&&/^v?\.0/.test(i.version),u=function(e){return"function"==typeof e},d=function(e){return!!f&&!!n&&(e instanceof(n.ReadStream||s)||e instanceof(n.WriteStream||s))&&u(e.close)},c=function(e){return e.setHeader&&u(e.abort)},l=function(e,t,r,n){n=o(n);var i=!1;e.on("close",function(){i=!0}),a(e,{readable:t,writable:r},function(e){if(e)return n(e);i=!0,n()});var f=!1;return function(t){if(!i&&!f){if(f=!0,d(e))return e.close(s);if(c(e))return e.abort();if(u(e.destroy))return e.destroy();n(t||Error("stream was destroyed"))}}},h=function(e){e()},p=function(e,t){return e.pipe(t)};e.exports=function(){var e,t=Array.prototype.slice.call(arguments),r=u(t[t.length-1]||s)&&t.pop()||s;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 a=o<t.length-1;return l(i,a,o>
20,function(t){e||(e=t),t&&n.forEach(h),a||(n.forEach(h),r(e))})});return t.reduce(p)}},30868:(e,t,r)=>{"use strict";let n;r.r(t),r.d(t,{BUTTON_POSITION:()=>iI,LOGIN_PROVIDER:()=>iP,PAYMENT_PROVIDER:()=>iR,TORUS_BUILD_ENV:()=>iO,TorusInPageProvider:()=>iZ,default:()=>i6});var i,o,a,s,f,u={};r.r(u),r.d(u,{DO:()=>eB,OG:()=>eJ,My:()=>eF,Ph:()=>eW,lX:()=>e$,Id:()=>eK,fg:()=>eX,qj:()=>eG,aT:()=>ez,aY:()=>eC,lq:()=>eH,z:()=>eV,Q5:()=>e0});var d=r(57078),c=r(85190),l=r(65579),h=r(97064),p=r(84971),b=r.n(p),g=r(69319),y=r(53655),m=r.n(y),v=r(52023),w=r.n(v),_=r(30325),S=r.n(_);function x(){}let A="SYN",M="ACK",E="BRK";class R extends h.Duplex{constructor(e){let{name:t,target:r,targetWindow:n=window,targetOrigin:i="*"}=e;if(super({objectMode:!0}),(0,c.A)(this,"_init",void 0),(0,c.A)(this,"_haveSyn",void 0),(0,c.A)(this,"_name",void 0),(0,c.A)(this,"_target",void 0),(0,c.A)(this,"_targetWindow",void 0),(0,c.A)(this,"_targetOrigin",void 0),(0,c.A)(this,"_onMessage",void 0),(0,c.A)(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(E,null,x),this._haveSyn=!1,this._init=!1}_handShake(){this._write(A,null,x),this.cork()}_onData(e){if(this._init)if(e===E)this._break();else try{this.push(e)}catch(e){this.emit("error",e)}else e===A?(this._haveSyn=!0,this._write(M,null,x)):e===M&&(this._init=!0,this._haveSyn||this._write(M,null,x),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)}}let O={"-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."}},I="Unspecified error message. This is a bug, please report it.",P="Unspecified server error.";function k(e){return Number.isInteger(e)}function T(e){return"string"==typeof e&&e.length>0}function N(e){return!!e&&"object"==typeof e&&!Array.isArray(e)}function j(e){return e>=-32099&&e<=-32e3}function C(e){let t=e;return!!t&&!!k(t.code)&&!!T(t.message)&&(!t.stack||!!T(t.stack))}let B={code:-32603,message:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:I;if(k(e)){let t=e.toString();if(Object.hasOwn(O,t))return O[t].message;if(j(e))return P}return t}(-32603)};function L(e){try{JSON.parse(JSON.stringify(e,(e,t)=>{if("__proto__"===e||"constructor"===e||"function"==typeof t||"symbol"==typeof t)throw Error("Not valid json");return t}),(e,t)=>{if("__proto__"!==e&&"constructor"!==e)return t})}catch(e){return!1}return!0}function F(e){return Object.getOwnPropertyNames(e).reduce((t,r)=>{let n=e[r];return L(n)&&(t[r]=n),t},{})}function D(e){return Array.isArray(e)?e.map(e=>L(e)?e:N(e)?F(e):null):N(e)?F(e):L(e)?e:null}function q(e,t){if(e&&"object"==typeof e&&"serialize"in e&&"function"==typeof e.serialize)return e.serialize();if(C(e))return e;let r=D(e);return(0,d.A)((0,d.A)({},t),{},{data:{cause:r}})}function U(e){let{fallbackError:t=B,shouldIncludeStack:r=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};
2if(!C(t))throw Error("Must provide fallback error with integer number code and string message.");let n=q(e,t);return r||delete n.stack,n}function z(e,t,r){try{Reflect.apply(e,t,r)}catch(e){setTimeout(()=>{throw e})}}function W(e){let t=e.length,r=Array(t);for(let n=0;n<t;n+=1)r[n]=e[n];return r}class $ extends g.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 a=r[e];if(void 0===a)return!1;if("function"==typeof a)z(a,this,i);else{let e=a.length,t=W(a);for(let r=0;r<e;r+=1)z(t[r],this,i)}return!0}}class H 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),(0,c.A)(this,"code",void 0),(0,c.A)(this,"data",void 0),this.code=t,void 0!==n&&(this.data=n)}toString(){return b()({code:this.code,message:this.message,data:this.data,stack:this.stack})}}let V=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 G(){let e={};function t(){return!1}let r=new $;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 a=new h.Duplex({objectMode:!0,read:t,write:o});return{events:r,middleware:(t,r,n,i)=>{a.push(t),e[t.id]={req:t,res:r,next:n,end:i}},stream:a}}function K(){return(e,t,r,n)=>{let i=e.id,o=Math.random().toString(36).slice(2);e.id=o,t.id=o,r(r=>{e.id=i,t.id=i,r()})}}class J extends ${constructor(){super(),(0,c.A)(this,"_middleware",void 0),this._middleware=[]}static async _runAllMiddleware(e,t,r){let n=[],i=null,o=!1;for(let a of r)if([i,o]=await J._runMiddleware(e,t,a,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&&("object"==typeof r&&!1===Object.keys(r).includes("stack")&&(r.stack="Stack trace is not available."),t.error=U(r,{shouldIncludeStack:!0,fallbackError:{message:(null==r?void 0:r.message)||(null==r?void 0:r.toString()),code:(null==r?void 0:r.code)||-32603,stack:(null==r?void 0:r.stack)||"Stack trace is not available.",data:(null==r?void 0:r.data)||(null==r?void 0:r.message)||(null==r?void 0:r.toString())}})),i([r,!0])},a=e=>{t.error?o(t.error):(e&&("function"!=typeof e&&o(new H({code:-32603,message:"JRPCEngine: 'next' return handlers must be functions"})),n.push(e)),i([null,!1]))};try{r(e,t,a,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 H({code:-32603,message:"Response has no error or result for request"});if(!r)throw new H({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,a]=await J._runAllMiddleware(e,t,this._middleware);if(o)return await J._runReturnHandlers(a),n(i);return r(async e=>{try{await J._runReturnHandlers(a)}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,r)=>{this._handle(e,(e,n)=>{e&&void 0===n?r(e):t(n)}).catch(r)})}async _handle(e,t){if(!e||Array.isArray(e)||"object"!=typeof e){let e=new H({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 H({code:-32603,message:"method must be string"});return t(r,{id:e.id,jsonrpc:"2.0",error:r})}let r=(0,d.A)({}
2,e),n={id:r.id,jsonrpc:r.jsonrpc},i=null;try{await this._processRequest(r,n)}catch(e){i=e}if(i&&(delete n.result,!n.error)){var o,a,s,f,u,c,l;"object"==typeof i&&!1===Object.keys(i).includes("stack")&&(i.stack="Stack trace is not available."),n.error=U(i,{shouldIncludeStack:!0,fallbackError:{message:(null==(o=i)?void 0:o.message)||(null==(a=i)?void 0:a.toString()),code:(null==(s=i)?void 0:s.code)||-32603,stack:(null==(f=i)?void 0:f.stack)||"Stack trace is not available.",data:(null==(u=i)?void 0:u.data)||(null==(c=i)?void 0:c.message)||(null==(l=i)?void 0:l.toString())}})}return t(i,n)}async _processRequest(e,t){let[r,n,i]=await J._runAllMiddleware(e,t,this._middleware);if(J._checkForCompletion(e,t,n),await J._runReturnHandlers(i),r)throw r}}class Z extends h.Duplex{constructor(e){let{parent:t,name:r}=e;super({objectMode:!0}),(0,c.A)(this,"_parent",void 0),(0,c.A)(this,"_name",void 0),this._parent=t,this._name=r}_read(){}_write(e,t,r){this._parent.push({name:this._name,data:e}),r()}}let Y=Symbol("IGNORE_SUBSTREAM");class X extends h.Duplex{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super((0,d.A)((0,d.A)({},e),{},{objectMode:!0})),(0,c.A)(this,"_substreams",void 0),(0,c.A)(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 Z({parent:this,name:e});return this._substreams[e]=t,Q(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]=Y}_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!==Y&&o.push(i):window.console.warn(`ObjectMultiplex - orphaned data for stream "${n}"`),r()}}function Q(e,t){let r=w()(t);m()(e,{readable:!1},r),m()(e,{writable:!1},r)}r(95560);var ee=r(61373),et=r.n(ee);function er(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`positive integer expected, not ${e}`)}function en(e){return e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name}function ei(e,...t){if(!en(e))throw Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw Error(`Uint8Array expected of length ${t}, not of length=${e.length}`)}function eo(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.wrapConstructor");er(e.outputLen),er(e.blockLen)}function ea(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 es(e,t){ei(e);let r=t.outputLen;if(e.length<r)throw Error(`digestInto() expects output buffer of length at least ${r}`)}et().getLogger("http-helpers").setLevel(ee.levels.INFO);let ef={bool:function(e){if("boolean"!=typeof e)throw Error(`boolean expected, not ${e}`)},bytes:ei},eu="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,ed=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),ec=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),el=(e,t)=>e<<32-t|e>>>t,eh=68===new Uint8Array(new Uint32Array([0x11223344]).buffer)[0],ep=e=>e<<24&0xff000000|e<<8&0xff0000|e>>>8&65280|e>>>24&255;function eb(e){for(let t=0;t<e.length;t++)e[t]=ep(e[t])}function eg(e){if("string"!=typeof e)throw Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function ey(e){return"string"==typeof e&&(e=eg(e)),ei(e),e}function em(...e){let t=0;for(let r=0;r<e.length;r++){let n=e[r];ei(n),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}class ev{clone(){return this._cloneInto()}}function ew(e){let t=t=>e().update(ey(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function e_(e=32){if(eu&&"function"==typeof eu.getRandomValues)return eu.getRandomValues(new Uint8Array(e));throw Error("crypto.getRandomValues must be defined")}function eS(e,t,r,n){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,r,n);let i=BigInt(32),o=BigInt(0xffffffff),a=Number(r>>i&o),s=Number(r&o),f=4*!!n,u=4*!n;e.setUint32(t+f,a,n),e.setUint32(t+u,s,n)}let ex=(e,t,r)=>e&t^~e&r,eA=(e,t,r)=>e&t^e&r^t&r;class eM extends ev{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=ec(this.buffer)}update(e){ea(this);let{view:t,buffer:r,blockLen:n}=this,i=(e=ey(e)).length;for(let o=0;o<i;){let a=Math.min(n-this.pos,i-o);if(a===n){let t=ec(e);for(;n<=i-o;o+=n)this.process(t,o);continue}r.set(e.subarray(o,o+a),this.pos),this.pos+=a,o+=a,this.pos===n&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){ea(this),es(e,this),this.finished=!0;let{buffer:t,view:r,blockLen:n,isLE:i}=this,{pos:o}=this;t[o++]=128,this.buffer.subarray(o).fill(0),this.padOffset>n-o&&(this.process(r,0),o=0);for(let e=o;e<n;e++)t[e]=0;eS(r,n-8,BigInt(8*this.length),i),this.process(r,0);let a=ec(e),s=this.outputLen;if(s%4)throw Error("_sha2: outputLen should be aligned to 32bit");let f=s/4,u=this.get();if(f>u.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;e<f;e++)a.setUint32(4*e,u[e],i)}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:a}=this;return e.length=n,e.pos=a,e.finished=i,e.destroyed=o,n%t&&e.buffer.set(r),e}}let eE=new Uint32Array([0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc
276c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2]),eR=new Uint32Array([0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19]),eO=new Uint32Array(64);class eI extends eM{constructor(){super(64,32,8,!1),this.A=0|eR[0],this.B=0|eR[1],this.C=0|eR[2],this.D=0|eR[3],this.E=0|eR[4],this.F=0|eR[5],this.G=0|eR[6],this.H=0|eR[7]}get(){let{A:e,B:t,C:r,D:n,E:i,F:o,G:a,H:s}=this;return[e,t,r,n,i,o,a,s]}set(e,t,r,n,i,o,a,s){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|a,this.H=0|s}process(e,t){for(let r=0;r<16;r++,t+=4)eO[r]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=eO[e-15],r=eO[e-2],n=el(t,7)^el(t,18)^t>>>3,i=el(r,17)^el(r,19)^r>>>10;eO[e]=i+eO[e-7]+n+eO[e-16]|0}let{A:r,B:n,C:i,D:o,E:a,F:s,G:f,H:u}=this;for(let e=0;e<64;e++){let t=u+(el(a,6)^el(a,11)^el(a,25))+ex(a,s,f)+eE[e]+eO[e]|0,d=(el(r,2)^el(r,13)^el(r,22))+eA(r,n,i)|0;u=f,f=s,s=a,a=o+t|0,o=i,i=n,n=r,r=t+d|0}r=r+this.A|0,n=n+this.B|0,i=i+this.C|0,o=o+this.D|0,a=a+this.E|0,s=s+this.F|0,f=f+this.G|0,u=u+this.H|0,this.set(r,n,i,o,a,s,f,u)}roundClean(){eO.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}let eP=ew(()=>new eI);class ek extends ev{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,eo(e);let r=ey(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 n=this.blockLen,i=new Uint8Array(n);i.set(r.length>n?e.create().update(r).digest():r);for(let e=0;e<i.length;e++)i[e]^=54;this.iHash.update(i),this.oHash=e.create();for(let e=0;e<i.length;e++)i[e]^=106;this.oHash.update(i),i.fill(0)}update(e){return ea(this),this.iHash.update(e),this}digestInto(e){ea(this),ei(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:a}=this;return e.finished=n,e.destroyed=i,e.blockLen=o,e.outputLen=a,e.oHash=t._cloneInto(e.oHash),e.iHash=r._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}let eT=(e,t,r)=>new ek(e,t).update(r).digest();eT.create=(e,t)=>new ek(e,t);let eN=BigInt(1),ej=BigInt(2);function eC(e){return e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name}function eB(e){if(!eC(e))throw Error("Uint8Array expected")}let eL=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function eF(e){eB(e);let t="";for(let r=0;r<e.length;r++)t+=eL[e[r]];return t}function eD(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);return BigInt(""===e?"0":`0x${e}`)}let eq={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function eU(e){return e>=eq._0&&e<=eq._9?e-eq._0:e>=eq._A&&e<=eq._F?e-(eq._A-10):e>=eq._a&&e<=eq._f?e-(eq._a-10):void 0}function ez(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=eU(e.charCodeAt(i)),o=eU(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 eW(e){return eD(eF(e))}function e$(e){return eB(e),eD(eF(Uint8Array.from(e).reverse()))}function eH(e,t){return ez(e.toString(16).padStart(2*t,"0"))}function eV(e,t){return eH(e,t).reverse()}function eG(e,t,r){let n;if("string"==typeof t)try{n=ez(t)}catch(r){throw Error(`${e} must be valid hex string, got "${t}". Cause: ${r}`)}else if(eC(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 eK(...e){let t=0;for(let r=0;r<e.length;r++){let n=e[r];eB(n),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}let eJ=e=>(ej<<BigInt(e-1))-eN,eZ=e=>new Uint8Array(e),eY=e=>Uint8Array.from(e);function eX(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=eZ(e),i=eZ(e),o=0,a=()=>{n.fill(1),i.fill(0),o=0},s=(...e)=>r(i,n,...e),f=(e=eZ())=>{i=s(eY([0]),e),n=s(),0!==e.length&&(i=s(eY([1]),e),n=s())},u=()=>{if(o++>=1e3)throw Error("drbg: tried 1000 values");let e=0,r=[];for(;e<t;){let t=(n=s()).slice();r.push(t),e+=n.length}return eK(...r)};return(e,t)=>{let r;for(a(),f(e);!(r=t(u()));)f();return a(),r}}let eQ={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||eC(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 e0(e,t,r={}){let n=(t,r,n)=>{let i=eQ[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}let e1=BigInt(0),e2=BigInt(1),e3=BigInt(2),e6=BigInt(3),e4=BigInt(4),e8=BigInt(5),e9=BigInt(8);function e5(e,t){let r=e%t;return r>=e1?r:t+r}function e7(e,t,r){if(r<=e1||t<e1)throw Error("Expected power/modulo > 0");if(r===e2)return e1;let n=e2;for(;t>e1;)t&e2&&(n=n*e%r),e=e*e%r,t>>=e2;return n}function te(e,t,r){let n=e;for(;t-- >e1;)n*=n,n%=r;return n}function tt(e,t){if(e===e1||t<=e1)throw Error(`invert: expected positive integers, got n=${e} mod=${t}`);let r=e5(e,t),n=t,i=e1,o=e2,a=e2,s=e1;for(;r!==e1;){let e=n/r,t=n%r,f=i-a*e,u=o-s*e;n=r,r=t,i=a,o=s,a=f,s=u}if(n!==e2)throw Error("invert: does not exist");return e5(i,t)}function tr(e){let t,r,n,i=(e-e2)/e3;for(t=e-e2,r=0;t%e3===e1;t/=e3,r++);for(n=e3;n<e&&e7(n,i,e)!==e-e2;n++);if(1===r){let t=(e+e2)/e4;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 o=(t+e2)/e3;return function(e,a){if(e.pow(a,i)===e.neg(e.ONE))throw Error("Cannot find square root");let s=r,f=e.pow(e.mul(e.ONE,n),t),u=e.pow(a,o),d=e.pow(a,t);for(;!e.eql(d,e.ONE);){if(e.eql(d,e.ZERO))return e.ZERO;let t=1;for(let r=e.sqr(d);t<s&&!e.eql(r,e.ONE);t++)r=e.sqr(r);let r=e.pow(f,e2<<BigInt(s-t-1));f=e.sqr(r),u=e.mul(u,r),d=e.mul(d,f),s=t}return u}}function tn(e){if(e%e4===e6){let t=(e+e2)/e4;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%e9===e8){let t=(e-e8)/e9;return function(e,r){let n=e.mul(r,e3),i=e.pow(n,t),o=e.mul(r,i),a=e.mul(e.mul(o,e3),i),s=e.mul(o,e.sub(a,e.ONE));if(!e.eql(e.sqr(s),r))throw Error("Cannot find square root");return s}}return tr(e)}BigInt(9),BigInt(16);let ti=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function to(e){let t={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"};return e0(e,ti.reduce((e,t)=>
2(e[t]="function",e),t))}function ta(e,t,r){if(r<e1)throw Error("Expected power > 0");if(r===e1)return e.ONE;if(r===e2)return t;let n=e.ONE,i=t;for(;r>e1;)r&e2&&(n=e.mul(n,i)),i=e.sqr(i),r>>=e2;return n}function ts(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 tf(e,t){let r=void 0!==t?t:e.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function tu(e,t,r=!1,n={}){if(e<=e1)throw Error(`Expected Field ORDER > 0, got ${e}`);let{nBitLength:i,nByteLength:o}=tf(e,t);if(o>2048)throw Error("Field lengths over 2048 bytes are not supported");let a=tn(e),s=Object.freeze({ORDER:e,BITS:i,BYTES:o,MASK:eJ(i),ZERO:e1,ONE:e2,create:t=>e5(t,e),isValid:t=>{if("bigint"!=typeof t)throw Error(`Invalid field element: expected bigint, got ${typeof t}`);return e1<=t&&t<e},is0:e=>e===e1,isOdd:e=>(e&e2)===e2,neg:t=>e5(-t,e),eql:(e,t)=>e===t,sqr:t=>e5(t*t,e),add:(t,r)=>e5(t+r,e),sub:(t,r)=>e5(t-r,e),mul:(t,r)=>e5(t*r,e),pow:(e,t)=>ta(s,e,t),div:(t,r)=>e5(t*tt(r,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>tt(t,e),sqrt:n.sqrt||(e=>a(s,e)),invertBatch:e=>ts(s,e),cmov:(e,t,r)=>r?t:e,toBytes:e=>r?eV(e,o):eH(e,o),fromBytes:e=>{if(e.length!==o)throw Error(`Fp.fromBytes: expected ${o}, got ${e.length}`);return r?e$(e):eW(e)}});return Object.freeze(s)}function td(e){if("bigint"!=typeof e)throw Error("field order must be bigint");return Math.ceil(e.toString(2).length/8)}function tc(e){let t=td(e);return t+Math.ceil(t/2)}function tl(e,t,r=!1){let n=e.length,i=td(t),o=tc(t);if(n<16||n<o||n>1024)throw Error(`expected ${o}-1024 bytes of input, got ${n}`);let a=e5(r?eW(e):e$(e),t-e2)+e2;return r?eV(a,i):eH(a,i)}let th=BigInt(0),tp=BigInt(1);function tb(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>th;)r&tp&&(n=n.add(i)),i=i.double(),r>>=tp;return n},precomputeWindow(e,t){let{windows:r,windowSize:i}=n(t),o=[],a=e,s=a;for(let e=0;e<r;e++){s=a,o.push(s);for(let e=1;e<i;e++)s=s.add(a),o.push(s);a=s.double()}return o},wNAF(t,i,o){let{windows:a,windowSize:s}=n(t),f=e.ZERO,u=e.BASE,d=BigInt(2**t-1),c=2**t,l=BigInt(t);for(let e=0;e<a;e++){let t=e*s,n=Number(o&d);o>>=l,n>s&&(n-=c,o+=tp);let a=t,h=t+Math.abs(n)-1,p=e%2!=0,b=n<0;0===n?u=u.add(r(p,i[a])):f=f.add(r(b,i[h]))}return{p:f,f:u}},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 tg(e){return to(e.Fp),e0(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...tf(e.n,e.nBitLength),...e,...{p:e.Fp.ORDER}})}function ty(e){let t=tg(e);e0(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:i}=t;if(r){if(!n.eql(i,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{Ph:tm,aT:tv}=u,tw={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(e){let{Err:t}=tw;if(e.length<2||2!==e[0])throw new t("Invalid signature integer tag");let r=e[1],n=e.subarray(2,r+2);if(!r||n.length!==r)throw new t("Invalid signature integer: wrong length");if(128&n[0])throw new t("Invalid signature integer: negative");if(0===n[0]&&!(128&n[1]))throw new t("Invalid signature integer: unnecessary leading zero");return{d:tm(n),l:e.subarray(r+2)}},toSig(e){let{Err:t}=tw,r="string"==typeof e?tv(e):e;eB(r);let n=r.length;if(n<2||48!=r[0])throw new t("Invalid signature tag");if(r[1]!==n-2)throw new t("Invalid signature: incorrect length");let{d:i,l:o}=tw._parseInt(r.subarray(2)),{d:a,l:s}=tw._parseInt(o);if(s.length)throw new t("Invalid signature: left bytes after parsing");return{r:i,s:a}},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,a=i.length/2,s=r(o),f=r(a);return`30${r(a+o+4)}02${f}${i}02${s}${n}`}},t_=BigInt(0),tS=BigInt(1),tx=(BigInt(2),BigInt(3));function tA(e){let t=ty(e),{Fp:r}=t,n=t.toBytes||((e,t,n)=>{let i=t.toAffine();return eK(Uint8Array.from([4]),r.toBytes(i.x),r.toBytes(i.y))}),i=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 o(e){let{a:n,b:i}
2=t,o=r.sqr(e),a=r.mul(o,e);return r.add(r.add(a,r.mul(e,n)),i)}if(!r.eql(r.sqr(t.Gy),o(t.Gx)))throw Error("bad generator point: equation left != right");function a(e){return"bigint"==typeof e&&t_<e&&e<t.n}function s(e){if(!a(e))throw Error("Expected valid bigint: 0 < bigint < curve.n")}function f(e){let r,{allowedPrivateKeyLengths:n,nByteLength:i,wrapPrivateKey:o,n:a}=t;if(n&&"bigint"!=typeof e){if(eC(e)&&(e=eF(e)),"string"!=typeof e||!n.includes(e.length))throw Error("Invalid key");e=e.padStart(2*i,"0")}try{r="bigint"==typeof e?e:eW(eG("private key",e,i))}catch(t){throw Error(`private key must be ${i} bytes, hex or bigint, not ${typeof e}`)}return o&&(r=e5(r,a)),s(r),r}let u=new Map;function d(e){if(!(e instanceof c))throw Error("ProjectivePoint expected")}class c{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 c)throw Error("projective point not allowed");let i=e=>r.eql(e,r.ZERO);return i(t)&&i(n)?c.ZERO:new c(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(c.fromAffine)}static fromHex(e){let t=c.fromAffine(i(eG("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return c.BASE.multiply(f(e))}_setWindowSize(e){this._WINDOW_SIZE=e,u.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),a=o(e);if(!r.eql(i,a))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){d(e);let{px:t,py:n,pz:i}=this,{px:o,py:a,pz:s}=e,f=r.eql(r.mul(t,s),r.mul(o,i)),u=r.eql(r.mul(n,s),r.mul(a,i));return f&&u}negate(){return new c(this.px,r.neg(this.py),this.pz)}double(){let{a:e,b:n}=t,i=r.mul(n,tx),{px:o,py:a,pz:s}=this,f=r.ZERO,u=r.ZERO,d=r.ZERO,l=r.mul(o,o),h=r.mul(a,a),p=r.mul(s,s),b=r.mul(o,a);return b=r.add(b,b),d=r.mul(o,s),d=r.add(d,d),f=r.mul(e,d),u=r.mul(i,p),u=r.add(f,u),f=r.sub(h,u),u=r.add(h,u),u=r.mul(f,u),f=r.mul(b,f),d=r.mul(i,d),p=r.mul(e,p),b=r.sub(l,p),b=r.mul(e,b),b=r.add(b,d),d=r.add(l,l),l=r.add(d,l),l=r.add(l,p),l=r.mul(l,b),u=r.add(u,l),p=r.mul(a,s),p=r.add(p,p),l=r.mul(p,b),f=r.sub(f,l),d=r.mul(p,h),d=r.add(d,d),new c(f,u,d=r.add(d,d))}add(e){d(e);let{px:n,py:i,pz:o}=this,{px:a,py:s,pz:f}=e,u=r.ZERO,l=r.ZERO,h=r.ZERO,p=t.a,b=r.mul(t.b,tx),g=r.mul(n,a),y=r.mul(i,s),m=r.mul(o,f),v=r.add(n,i),w=r.add(a,s);v=r.mul(v,w),w=r.add(g,y),v=r.sub(v,w),w=r.add(n,o);let _=r.add(a,f);return w=r.mul(w,_),_=r.add(g,m),w=r.sub(w,_),_=r.add(i,o),u=r.add(s,f),_=r.mul(_,u),u=r.add(y,m),_=r.sub(_,u),h=r.mul(p,w),u=r.mul(b,m),h=r.add(u,h),u=r.sub(y,h),h=r.add(y,h),l=r.mul(u,h),y=r.add(g,g),y=r.add(y,g),m=r.mul(p,m),w=r.mul(b,w),y=r.add(y,m),m=r.sub(g,m),m=r.mul(p,m),w=r.add(w,m),g=r.mul(y,w),l=r.add(l,g),g=r.mul(_,w),u=r.mul(v,u),u=r.sub(u,g),g=r.mul(v,y),h=r.mul(_,h),new c(u,l,h=r.add(h,g))}subtract(e){return this.add(e.negate())}is0(){return this.equals(c.ZERO)}wNAF(e){return h.wNAFCached(this,u,e,e=>{let t=r.invertBatch(e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(c.fromAffine)})}multiplyUnsafe(e){let n=c.ZERO;if(e===t_)return n;if(s(e),e===tS)return this;let{endo:i}=t;if(!i)return h.unsafeLadder(this,e);let{k1neg:o,k1:a,k2neg:f,k2:u}=i.splitScalar(e),d=n,l=n,p=this;for(;a>t_||u>t_;)a&tS&&(d=d.add(p)),u&tS&&(l=l.add(p)),p=p.double(),a>>=tS,u>>=tS;return o&&(d=d.negate()),f&&(l=l.negate()),l=new c(r.mul(l.px,i.beta),l.py,l.pz),d.add(l)}multiply(e){let n,i;s(e);let o=e,{endo:a}=t;if(a){let{k1neg:e,k1:t,k2neg:s,k2:f}=a.splitScalar(o),{p:u,f:d}=this.wNAF(t),{p:l,f:p}=this.wNAF(f);u=h.constTimeNegate(e,u),l=h.constTimeNegate(s,l),l=new c(r.mul(l.px,a.beta),l.py,l.pz),n=u.add(l),i=d.add(p)}else{let{p:e,f:t}=this.wNAF(o);n=e,i=t}return c.normalizeZ([n,i])[0]}multiplyAndAddUnsafe(e,t,r){let n=c.BASE,i=(e,t)=>t!==t_&&t!==tS&&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 a=r.mul(t,e),s=r.mul(n,e),f=r.mul(i,e);if(o)return{x:r.ZERO,y:r.ZERO};
2if(!r.eql(f,r.ONE))throw Error("invZ was invalid");return{x:a,y:s}}isTorsionFree(){let{h:e,isTorsionFree:r}=t;if(e===tS)return!0;if(r)return r(c,this);throw Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){let{h:e,clearCofactor:r}=t;return e===tS?this:r?r(c,this):this.multiplyUnsafe(t.h)}toRawBytes(e=!0){return this.assertValidity(),n(c,this,e)}toHex(e=!0){return eF(this.toRawBytes(e))}}c.BASE=new c(t.Gx,t.Gy,r.ONE),c.ZERO=new c(r.ZERO,r.ONE,r.ZERO);let l=t.nBitLength,h=tb(c,t.endo?Math.ceil(l/2):l);return{CURVE:t,ProjectivePoint:c,normPrivateKeyToScalar:f,weierstrassEquation:o,isWithinCurveOrder:a}}function tM(e){let t=tg(e);return e0(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}function tE(e){let t=tM(e),{Fp:r,n:n}=t,i=r.BYTES+1,o=2*r.BYTES+1;function a(e){return t_<e&&e<r.ORDER}function s(e){return e5(e,n)}function f(e){return tt(e,n)}let{ProjectivePoint:u,normPrivateKeyToScalar:d,weierstrassEquation:c,isWithinCurveOrder:l}=tA({...t,toBytes(e,t,n){let i=t.toAffine(),o=r.toBytes(i.x),a=eK;return n?a(Uint8Array.from([t.hasEvenY()?2:3]),o):a(Uint8Array.from([4]),o,r.toBytes(i.y))},fromBytes(e){let t=e.length,n=e[0],s=e.subarray(1);if(t===i&&(2===n||3===n)){let e,t=eW(s);if(!a(t))throw Error("Point is not on curve");let i=c(t);try{e=r.sqrt(i)}catch(e){throw Error("Point is not on curve"+(e instanceof Error?": "+e.message:""))}return(1&n)==1!=((e&tS)===tS)&&(e=r.neg(e)),{x:t,y:e}}if(t===o&&4===n)return{x:r.fromBytes(s.subarray(0,r.BYTES)),y:r.fromBytes(s.subarray(r.BYTES,2*r.BYTES))};throw Error(`Point of length ${t} was invalid. Expected ${i} compressed bytes or ${o} uncompressed bytes`)}}),h=e=>eF(eH(e,t.nByteLength));function p(e){return e>n>>tS}function b(e){return p(e)?s(-e):e}let g=(e,t,r)=>eW(e.slice(t,r));class y{constructor(e,t,r){this.r=e,this.s=t,this.recovery=r,this.assertValidity()}static fromCompact(e){let r=t.nByteLength;return new y(g(e=eG("compactSignature",e,2*r),0,r),g(e,r,2*r))}static fromDER(e){let{r:t,s:r}=tw.toSig(eG("DER",e));return new y(t,r)}assertValidity(){if(!l(this.r))throw Error("r must be 0 < r < CURVE.n");if(!l(this.s))throw Error("s must be 0 < s < CURVE.n")}addRecoveryBit(e){return new y(this.r,this.s,e)}recoverPublicKey(e){let{r:n,s:i,recovery:o}=this,a=x(eG("msgHash",e));if(null==o||![0,1,2,3].includes(o))throw Error("recovery id invalid");let d=2===o||3===o?n+t.n:n;if(d>=r.ORDER)throw Error("recovery id 2 or 3 invalid");let c=(1&o)==0?"02":"03",l=u.fromHex(c+h(d)),p=f(d),b=s(-a*p),g=s(i*p),y=u.BASE.multiplyAndAddUnsafe(l,b,g);if(!y)throw Error("point at infinify");return y.assertValidity(),y}hasHighS(){return p(this.s)}normalizeS(){return this.hasHighS()?new y(this.r,s(-this.s),this.recovery):this}toDERRawBytes(){return ez(this.toDERHex())}toDERHex(){return tw.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return ez(this.toCompactHex())}toCompactHex(){return h(this.r)+h(this.s)}}let m={isValidPrivateKey(e){try{return d(e),!0}catch(e){return!1}},normPrivateKeyToScalar:d,randomPrivateKey:()=>{let e=tc(t.n);return tl(t.randomBytes(e),t.n)},precompute:(e=8,t=u.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)};function v(e,t=!0){return u.fromPrivateKey(e).toRawBytes(t)}function w(e){let t=eC(e),r="string"==typeof e,n=(t||r)&&e.length;return t?n===i||n===o:r?n===2*i||n===2*o:e instanceof u}function _(e,t,r=!0){if(w(e))throw Error("first arg must be private key");if(!w(t))throw Error("second arg must be public key");return u.fromHex(t).multiply(d(e)).toRawBytes(r)}let S=t.bits2int||function(e){let r=eW(e),n=8*e.length-t.nBitLength;return n>0?r>>BigInt(n):r},x=t.bits2int_modN||function(e){return s(S(e))},A=eJ(t.nBitLength);function M(e){if("bigint"!=typeof e)throw Error("bigint expected");if(!(t_<=e&&e<A))throw Error(`bigint expected < 2^${t.nBitLength}`);return eH(e,t.nByteLength)}function E(e,n,i=R){if(["recovered","canonical"].some(e=>e in i))throw Error("sign() legacy options not supported");let{hash:o,randomBytes:a}=t,{lowS:c,prehash:h,extraEntropy:g}=i;null==c&&(c=!0),e=eG("msgHash",e),h&&(e=eG("prehashed msgHash",o(e)));let m=x(e),v=d(n),w=[M(v),M(m)];if(null!=g&&!1!==g){let e=!0===g?a(r.BYTES):g;w.push(eG("extraEntropy",e))}let _=eK(...w),A=m;return{seed:_,k2sig:function(e){let t=S(e);if(!l(t))return;let r=f(t),n=u.BASE.multiply(t).toAffine(),i=s(n.x);if(i===t_)return;let o=s(r*s(A+i*v));if(o===t_)return;let a=2*(n.x!==i)|Number(n.y&tS),d=o;return c&&p(o)&&(d=b(o),a^=1),new y(i,d,a)}}}let R={lowS:t.lowS,prehash:!1},O={lowS:t.lowS,prehash:!1};function I(e,r,n=R){let{seed:i,k2sig:o}=E(e,r,n),a=t;return eX(a.hash.outputLen,a.nByteLength,a.hmac)(i,o)}function P(e,r,n,i=O){let o,a,d=e;if(r=eG("msgHash",r),n=eG("publicKey",n),"strict"in i)throw Error("options.strict was renamed to lowS");let{lowS:c,prehash:l}=i;try{if("string"==typeof d||eC(d))try{a=y.fromDER(d)}catch(e){if(!(e instanceof tw.Err))throw e;a=y.fromCompact(d)}else if("object"==typeof d&&"bigint"==typeof d.r&&"bigint"==typeof d.s){let{r:e,s:t}=d;a=new y(e,t)}else throw Error("PARSE");o=u.fromHex(n)}catch(e){if("PARSE"===e.message)throw Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(c&&a.hasHighS())return!1;l&&(r=t.hash(r));let{r:h,s:p}=a,b=x(r),g=f(p),m=s(b*g),v=s(h*g),w=u.BASE.multiplyAndAddUnsafe(o,m,v)?.toAffine();return!!w&&s(w.x)===h}return u.BASE._setWindowSize(8),{CURVE:t,getPublicKey:v,getSharedSecret:_,sign:I,verify:P,ProjectivePoint:u,Signature:y,utils:m}}function tR(e){return{hash:e,hmac:(t,...r)=>eT(e,t,em(...r)),randomBytes:e_}}function tO(e,t){let r=t=>tE({...e,...tR(t)});return Object.freeze({...r(t),create:r})}BigInt(4);let tI=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),tP=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),tk=BigInt(1),tT=BigInt(2),tN=(e,t)=>(e+t/tT)/t;function tj(e){let t=tI,r=BigInt(3),n=BigInt(6),i=BigInt(11),o=BigInt(22),a=BigInt(23),s=BigInt(44),f=BigInt(88),u=e*e*e%t,d=u*u*e%t,c=te(d,r,t)*d%t,l=te(c,r,t)*d%t,h=te(l,tT,t)*u%t,p=te(h,i,t)*h%t,b=te(p,o,t)*p%t,g=te(b,s,t)*b%t,y=te(g,f,t)*g%t,m=te(y,s,t)*b%t,v=te(m,r,t)*d%t,w=te(v,a,t)*p%t,_=te(w,n,t)*u%t,S=te(_,tT,t);if(!tC.eql(tC.sqr(S),e))throw Error("Cannot find square root");return S}let tC=tu(tI,void 0,void 0,{sqrt:tj}),tB=tO({a:BigInt(0),b:BigInt(7),Fp:tC,n:tP,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{let t=tP,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-tk*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),o=r,a=BigInt("0x100000000000000000000000000000000"),s=tN(o*e,t),f=tN(-n*e,t),u=e5(e-s*r-f*i,t),d=e5(-s*n-f*o,t),c=u>a,l=d>a;if(c&&(u=t-u),l&&(d=t-d),u>a||d>a)throw Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:c,k1:u,k2neg:l,k2:d}}}},eP),tL=BigInt(0);function tF(e){return t=>(ef.bytes(t),e(t))}function tD(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}tB.ProjectivePoint,ef.bool,ef.bytes,(()=>{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")})(),BigInt(0);let tq={},tU={};for(let e=0;e<16;e++){let t=e,r=16*e,n=e.toString(16).toLowerCase();tU[n]=t,tU[n.toUpperCase()]=t,tq[n]=r,tq[n.toUpperCase()]=r}function tz(e){let t=e.length,r=new Uint8Array(t/2);for(let n=0;n<t;n+=2)r[n/2]=tq[e[n]]+tU[e[n+1]];return r}Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));let tW=[];for(let e=0;e<=65535;e++)tW[e]=BigInt(e);let t$=e=>{if("string"!=typeof e)throw Error(`hex argument type ${typeof e} must be of type string`);if(!/^0x[0-9a-fA-F]*$/.test(e))throw Error(`Input must be a 0x-prefixed hexadecimal string, got ${e}`);let t=e.slice(2);return tz(t.length%2==0?t:tD(t))},tH=e=>{if(!Number.isSafeInteger(e)||e<0)throw Error(`Received an invali
2d integer type: ${e}`);return`0x${e.toString(16)}`},tV=e=>t$(tH(e));BigInt("0xffffffffffffffff"),BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),BigInt("115792089237316195423570985008687907853269984665640564039457584007913129639935"),tB.CURVE.n,tB.CURVE.n,BigInt(2),BigInt("0x10000000000000000000000000000000000000000000000000000000000000000"),t$("0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470"),t$("0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"),t$("0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"),Uint8Array.from([128]),BigInt(-1),BigInt(0),BigInt(1),BigInt(2),BigInt(3),BigInt(7),BigInt(8),BigInt(27),BigInt(28),BigInt(31),BigInt(32),BigInt(64),BigInt(128),BigInt(255),BigInt(256),BigInt(96),BigInt(100),BigInt(160),BigInt(224),BigInt(7922816251426434e13),BigInt(1461501637330903e33),BigInt(2695994666715064e52),BigInt(1e9);Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));let tG=BigInt(0x100000000-1),tK=BigInt(32);function tJ(e,t=!1){return t?{h:Number(e&tG),l:Number(e>>tK&tG)}:{h:0|Number(e>>tK&tG),l:0|Number(e&tG)}}function tZ(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:a}=tJ(e[i],t);[r[i],n[i]]=[o,a]}return[r,n]}let tY=(e,t,r)=>e<<r|t>>>32-r,tX=(e,t,r)=>t<<r|e>>>32-r,tQ=(e,t,r)=>t<<r-32|e>>>64-r,t0=(e,t,r)=>e<<r-32|t>>>64-r,t1=[],t2=[],t3=[],t6=BigInt(0),t4=BigInt(1),t8=BigInt(2),t9=BigInt(7),t5=BigInt(256),t7=BigInt(113);for(let e=0,t=t4,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],t1.push(2*(5*n+r)),t2.push((e+1)*(e+2)/2%64);let i=t6;for(let e=0;e<7;e++)(t=(t<<t4^(t>>t9)*t7)%t5)&t8&&(i^=t4<<(t4<<BigInt(e))-t4);t3.push(i)}let[re,rt]=tZ(t3,!0),rr=(e,t,r)=>r>32?tQ(e,t,r):tY(e,t,r),rn=(e,t,r)=>r>32?t0(e,t,r):tX(e,t,r);function ri(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],a=r[i+1],s=rr(o,a,1)^r[n],f=rn(o,a,1)^r[n+1];for(let r=0;r<50;r+=10)e[t+r]^=s,e[t+r+1]^=f}let t=e[2],i=e[3];for(let r=0;r<24;r++){let n=t2[r],o=rr(t,i,n),a=rn(t,i,n),s=t1[r];t=e[s],i=e[s+1],e[s]=o,e[s+1]=a}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]^=re[n],e[1]^=rt[n]}r.fill(0)}class ro extends ev{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,er(r),0>=this.blockLen||this.blockLen>=200)throw Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=ed(this.state)}keccak(){eh||eb(this.state32),ri(this.state32,this.rounds),eh||eb(this.state32),this.posOut=0,this.pos=0}update(e){ea(this);let{blockLen:t,state:r}=this,n=(e=ey(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){ea(this,!1),ei(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 er(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(es(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 ro(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 ra=(e,t,r)=>ew(()=>new ro(t,e,r)),rs=ra(1,144,28),rf=ra(1,136,32),ru=ra(1,104,48),rd=ra(1,72,64);tF(rs);let rc=(()=>{let e=tF(rf);return e.create=rf.create,e})();tF(ru),tF(rd),new Uint8Array(0),function(e){e.String="string",e.Bytes="view",e.Number="number"}(i||(i={})),function(e){e.String="string",e.Bytes="view",e.JSON="json"}(o||(o={})),function(e){e[e.Number=0]="Number",e[e.BigInt=1]="BigInt",e[e.Uint8Array=2]="Uint8Array",e[e.PrefixedHexString=3]="PrefixedHexString"}(a||(a={})),tF(eP);!function(e){e[e.Deposit=0]="Deposit",e[e.Withdrawal=1]="Withdrawal",e[e.Consolidation=2]="Consolidation"}(s||(s={})),function(e){e[e.Version=0]="Version",e[e.Balance=1]="Balance",e[e.Nonce=2]="Nonce",e[e.CodeHash=3]="CodeHash",e[e.CodeSize=4]="CodeSize"}(f||(f={})),tV(f.Version),tV(f.Balance),tV(f.Nonce),tV(f.CodeHash),tV(f.CodeSize),BigInt(256),BigInt(31),r(50207);let rl={MAINNET:"mainnet",TESTNET:"testnet",CYAN:"cyan",AQUA:"aqua",CELESTE:"celeste"},rh={SAPPHIRE_DEVNET:"sapphire_devnet",SAPPHIRE_MAINNET:"sapphire_mainnet"};function rp(e){let t,r=!1,n=0;try{t=window[e],r=!0,n=t.length;let i="__storage_test__";return t.setItem(i,i),t.removeItem(i),!0}catch(t){let e=t;return e&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&r&&0!==n}}rl.MAINNET,rl.TESTNET,rl.CYAN,rl.AQUA,rl.CELESTE,rl.AQUA,rh.SAPPHIRE_MAINNET,rl.CELESTE,rh.SAPPHIRE_MAINNET,rl.CYAN,rh.SAPPHIRE_MAINNET,rl.MAINNET,rh.SAPPHIRE_MAINNET,rl.TESTNET,rh.SAPPHIRE_DEVNET,rl.MAINNET,rl.TESTNET,rl.CYAN,rl.AQUA,rl.CELESTE,rh.SAPPHIRE_MAINNET,rh.SAPPHIRE_DEVNET,rl.MAINNET,rl.TESTNET,rl.CYAN,rl.AQUA,rl.CELESTE,rl.MAINNET,rl.TESTNET,rl.CYAN,rl.AQUA,rl.CELESTE;class rb{constructor(){(0,c.A)(this,"store",new Map)}getItem(e){return this.store.get(e)||null}setItem(e,t){this.store.set(e,t)}removeItem(e){this.store.delete(e)}}class rg{constructor(e,t){(0,c.A)(this,"storage",void 0),(0,c.A)(this,"_storeKey",void 0),this.storage=t,this._storeKey=e;try{t.getItem(e)||this.resetStore()}catch(e){}}static getInstance(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"local";if(!this.instanceMap.has(e)){let r;r="local"===t&&rp("localStorage")?window.localStorage:"session"===t&&rp("sessionStorage")?window.sessionStorage:new rb,this.instanceMap.set(e,new this(e,r))}return this.instanceMap.get(e)}toJSON(){return this.storage.getItem(this._storeKey)}resetStore(){let e=this.getStore();return this.storage.removeItem(this._storeKey),e}getStore(){return JSON.parse(this.storage.getItem(this._storeKey)||"{}")}get(e){return JSON.parse(this.storage.getItem(this._storeKey)||"{}")[e]}set(e,t){let r=JSON.parse(this.storage.getItem(this._storeKey)||"{}");r[e]=t,this.storage.setItem(this._storeKey,JSON.stringify(r))}}(0,c.A)(rg,"instanceMap",new Map),(0,d.A)((0,d.A)({},rh),rl);var ry=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,rm=Math.ceil,rv=Math.floor,rw="[BigNumber Error] ",r_=rw+"Number primitive has more than 15 significant digits: ",rS=1e14,rx=14,rA=0x1fffffffffffff,rM=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],rE=1e7,rR=1e9;function rO(e){var t,r,n,i=m.prototype={constructor:m,toString:null,valueOf:null},o=new m(1),a=20,s=4,f=-7,u=21,d=-1e7,c=1e7,l=!1,h=1,p=0,b={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xa0",suffix:""},g="0123456789abcdefghijklmnopqrstuvwxyz",y=!0;function m(e,t){var i,o,f,u,l,h,p,b,v=this;if(!(v instanceof m))return new m(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<d?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(u=0,l=e;l>=10;l/=10,u++);u>c?v.c=v.e=null:(v.e=u,v.c=[e]);return}b=String(e)}else{if(!ry.test(b=String(e)))return n(v,b,h);v.s=45==b.charCodeAt(0)?(b=b.slice(1),-1):1}(u=b.indexOf("."))>-1&&(b=b.replace(".","")),(l=b.search(/e/i))>0?(u<0&&(u=l),u+=+b.slice(l+1),b=b.substring(0,l)):u<0&&(u=b.length)}else{if(rT(t,2,g.length,"Base"),10==t&&y)return S(v=new m(e),a+v.e+1,s);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,m.DEBUG&&b.replace(/^0\.0*|\./,"").length>15)throw Error(r_+e)}else v.s=45===b.charCodeAt(0)?(b=b.slice(1),-1):1;for(i=g.slice(0,t),u=l=0,p=b.length;l<p;l++)if(0>
2i.indexOf(o=b.charAt(l))){if("."==o){if(l>u){u=p;continue}}else if(!f&&(b==b.toUpperCase()&&(b=b.toLowerCase())||b==b.toLowerCase()&&(b=b.toUpperCase()))){f=!0,l=-1,u=0;continue}return n(v,String(e),h,t)}h=!1,(u=(b=r(b,t,10,v.s)).indexOf("."))>-1?b=b.replace(".",""):u=b.length}for(l=0;48===b.charCodeAt(l);l++);for(p=b.length;48===b.charCodeAt(--p););if(b=b.slice(l,++p)){if(p-=l,h&&m.DEBUG&&p>15&&(e>rA||e!==rv(e)))throw Error(r_+v.s*e);if((u=u-l-1)>c)v.c=v.e=null;else if(u<d)v.c=[v.e=0];else{if(v.e=u,v.c=[],l=(u+1)%rx,u<0&&(l+=rx),l<p){for(l&&v.c.push(+b.slice(0,l)),p-=rx;l<p;)v.c.push(+b.slice(l,l+=rx));l=rx-(b=b.slice(l)).length}else l-=p;for(;l--;b+="0");v.c.push(+b)}}else v.c=[v.e=0]}function v(e,t,r,n){var i,o,a,d,c;if(null==r?r=s:rT(r,0,8),!e.c)return e.toString();if(i=e.c[0],a=e.e,null==t)c=rP(e.c),c=1==n||2==n&&(a<=f||a>=u)?rj(c,a):rC(c,a,"0");else if(o=(e=S(new m(e),t,r)).e,d=(c=rP(e.c)).length,1==n||2==n&&(t<=o||o<=f)){for(;d<t;c+="0",d++);c=rj(c,o)}else if(t-=a+(2===n&&o>a),c=rC(c,o,"0"),o+1>d){if(--t>0)for(c+=".";t--;c+="0");}else if((t+=o-d)>0)for(o+1==d&&(c+=".");t--;c+="0");return e.s<0&&i?"-"+c:c}function w(e,t){for(var r,n,i=1,o=new m(e[0]);i<e.length;i++)(n=new m(e[i])).s&&(r=rk(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*rx-1)>c?e.c=e.e=null:r<d?e.c=[e.e=0]:(e.e=r,e.c=t),e}function S(e,t,r,n){var i,o,a,s,f,u,l,h=e.c,p=rM;if(h){e:{for(i=1,s=h[0];s>=10;s/=10,i++);if((o=t-i)<0)o+=rx,a=t,l=rv((f=h[u=0])/p[i-a-1]%10);else if((u=rm((o+1)/rx))>=h.length)if(n){for(;h.length<=u;h.push(0));f=l=0,i=1,o%=rx,a=o-rx+1}else break e;else{for(i=1,f=s=h[u];s>=10;s/=10,i++);o%=rx,l=(a=o-rx+i)<0?0:rv(f/p[i-a-1]%10)}if(n=n||t<0||null!=h[u+1]||(a<0?f:f%p[i-a-1]),n=r<4?(l||n)&&(0==r||r==(e.s<0?3:2)):l>5||5==l&&(4==r||n||6==r&&(o>0?a>0?f/p[i-a]:0:h[u-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[(rx-t%rx)%rx],e.e=-t||0):h[0]=e.e=0,e;if(0==o?(h.length=u,s=1,u--):(h.length=u+1,s=p[rx-o],h[u]=a>0?rv(f/p[i-a]%p[a])*s:0),n)for(;;)if(0==u){for(o=1,a=h[0];a>=10;a/=10,o++);for(a=h[0]+=s,s=1;a>=10;a/=10,s++);o!=s&&(e.e++,h[0]==rS&&(h[0]=1));break}else{if(h[u]+=s,h[u]!=rS)break;h[u--]=0,s=1}for(o=h.length;0===h[--o];h.pop());}e.e>c?e.c=e.e=null:e.e<d&&(e.c=[e.e=0])}return e}function x(e){var t,r=e.e;return null===r?e.toString():(t=rP(e.c),t=r<=f||r>=u?rj(t,r):rC(t,r,"0"),e.s<0?"-"+t:t)}return m.clone=rO,m.ROUND_UP=0,m.ROUND_DOWN=1,m.ROUND_CEIL=2,m.ROUND_FLOOR=3,m.ROUND_HALF_UP=4,m.ROUND_HALF_DOWN=5,m.ROUND_HALF_EVEN=6,m.ROUND_HALF_CEIL=7,m.ROUND_HALF_FLOOR=8,m.EUCLID=9,m.config=m.set=function(e){var t,r;if(null!=e)if("object"==typeof e){if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(rT(r=e[t],0,rR,t),a=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(rT(r=e[t],0,8,t),s=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(rT(r[0],-rR,0,t),rT(r[1],0,rR,t),f=r[0],u=r[1]):(rT(r,-rR,rR,t),f=-(u=r<0?-r:r))),e.hasOwnProperty(t="RANGE"))if((r=e[t])&&r.pop)rT(r[0],-rR,-1,t),rT(r[1],1,rR,t),d=r[0],c=r[1];else if(rT(r,-rR,rR,t),r)d=-(c=r<0?-r:r);else throw Error(rw+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))l=r;else throw l=!r,Error(rw+"crypto unavailable");else l=r;else throw Error(rw+t+" not true or false: "+r);if(e.hasOwnProperty(t="MODULO_MODE")&&(rT(r=e[t],0,9,t),h=r),e.hasOwnProperty(t="POW_PRECISION")&&(rT(r=e[t],0,rR,t),p=r),e.hasOwnProperty(t="FORMAT"))if("object"==typeof(r=e[t]))b=r;else throw Error(rw+t+" not an object: "+r);if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(rw+t+" invalid: "+r);y="0123456789"==r.slice(0,10),g=r}}else throw Error(rw+"Object expected: "+e);return{DECIMAL_PLACES:a,ROUNDING_MODE:s,EXPONENTIAL_AT:[f,u],RANGE:[d,c],CRYPTO:l,MODULO_MODE:h,POW_PRECISION:p,FORMAT:b,ALPHABET:g}},m.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!m.DEBUG)return!0;var t,r,n=e.c,i=e.e,o=e.s;e:if("[object Array]"==({}
vendor: 9,745 bytes, line 2
2).toString.call(n)){if((1===o||-1===o)&&i>=-rR&&i<=rR&&i===rv(i)){if(0===n[0]){if(0===i&&1===n.length)return!0;break e}if((t=(i+1)%rx)<1&&(t+=rx),String(n[0]).length==t){for(t=0;t<n.length;t++)if((r=n[t])<0||r>=rS||r!==rv(r))break e;if(0!==r)return!0}}}else if(null===n&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(rw+"Invalid BigNumber: "+e)},m.maximum=m.max=function(){return w(arguments,-1)},m.minimum=m.min=function(){return w(arguments,1)},m.random=function(){var e=0x20000000000000,t=0x20000000000000*Math.random()&2097151?function(){return rv(Math.random()*e)}:function(){return(0x40000000*Math.random()|0)*8388608+(8388608*Math.random()|0)};return function(e){var r,n,i,s,f,u=0,d=[],c=new m(o);if(null==e?e=a:rT(e,0,rR),s=rm(e/rx),l)if(crypto.getRandomValues){for(r=crypto.getRandomValues(new Uint32Array(s*=2));u<s;)(f=131072*r[u]+(r[u+1]>>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),r[u]=n[0],r[u+1]=n[1]):(d.push(f%1e14),u+=2);u=s/2}else if(crypto.randomBytes){for(r=crypto.randomBytes(s*=7);u<s;)(f=(31&r[u])*0x1000000000000+0x10000000000*r[u+1]+0x100000000*r[u+2]+0x1000000*r[u+3]+(r[u+4]<<16)+(r[u+5]<<8)+r[u+6])>=9e15?crypto.randomBytes(7).copy(r,u):(d.push(f%1e14),u+=7);u=s/7}else throw l=!1,Error(rw+"crypto unavailable");if(!l)for(;u<s;)(f=t())<9e15&&(d[u++]=f%1e14);for(s=d[--u],e%=rx,s&&e&&(f=rM[rx-e],d[u]=rv(s/f)*f);0===d[u];d.pop(),u--);if(u<0)d=[i=0];else{for(i=-1;0===d[0];d.splice(0,1),i-=rx);for(u=1,f=d[0];f>=10;f/=10,u++);u<rx&&(i-=rx-u)}return c.e=i,c.c=d,c}}(),m.sum=function(){for(var e=1,t=arguments,r=new m(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,a=[0],s=0,f=e.length;s<f;){for(o=a.length;o--;a[o]*=t);for(a[0]+=n.indexOf(e.charAt(s++)),i=0;i<a.length;i++)a[i]>r-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/r|0,a[i]%=r)}return a.reverse()}return function(n,i,o,f,u){var d,c,l,h,b,y,v,w,_=n.indexOf("."),S=a,x=s;for(_>=0&&(h=p,p=0,n=n.replace(".",""),y=(w=new m(i)).pow(n.length-_),p=h,w.c=r(rC(rP(y.c),y.e,"0"),10,o,e),w.e=w.c.length),l=h=(v=r(n,i,o,u?(d=g,e):(d=e,g))).length;0==v[--h];v.pop());if(!v[0])return d.charAt(0);if(_<0?--l:(y.c=v,y.e=l,y.s=f,v=(y=t(y,w,S,x,o)).c,b=y.r,l=y.e),_=v[c=l+S+1],h=o/2,b=b||c<0||null!=v[c+1],b=x<4?(null!=_||b)&&(0==x||x==(y.s<0?3:2)):_>h||_==h&&(4==x||b||6==x&&1&v[c-1]||x==(y.s<0?8:7)),c<1||!v[0])n=b?rC(d.charAt(1),-S,d.charAt(0)):d.charAt(0);else{if(v.length=c,b)for(--o;++v[--c]>o;)v[c]=0,c||(++l,v=[1].concat(v));for(h=v.length;!v[--h];);for(_=0,n="";_<=h;n+=d.charAt(v[_++]));n=rC(n,l,d.charAt(0))}return n}}(),t=function(){function e(e,t,r){var n,i,o,a,s=0,f=e.length,u=t%rE,d=t/rE|0;for(e=e.slice();f--;)n=d*(o=e[f]%rE)+(a=e[f]/rE|0)*u,s=((i=u*o+n%rE*rE+s)/r|0)+(n/rE|0)+d*a,e[f]=i%r;return s&&(e=[s].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]),e[r]=i*n+e[r]-t[r];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(n,i,o,a,s){var f,u,d,c,l,h,p,b,g,y,v,w,_,x,A,M,E,R=n.s==i.s?1:-1,O=n.c,I=i.c;if(!O||!O[0]||!I||!I[0])return new m(!n.s||!i.s||(O?I&&O[0]==I[0]:!I)?NaN:O&&0==O[0]||!I?0*R:R/0);for(g=(b=new m(R)).c=[],R=o+(u=n.e-i.e)+1,s||(s=rS,u=rI(n.e/rx)-rI(i.e/rx),R=R/rx|0),d=0;I[d]==(O[d]||0);d++);if(I[d]>(O[d]||0)&&u--,R<0)g.push(1),c=!0;else{for(x=O.length,M=I.length,d=0,R+=2,(l=rv(s/(I[0]+1)))>1&&(I=e(I,l,s),O=e(O,l,s),M=I.length,x=O.length),_=M,v=(y=O.slice(0,M)).length;v<M;y[v++]=0);E=[0].concat(E=I.slice()),A=I[0],I[1]>=s/2&&A++;do{if(l=0,(f=t(I,y,M,v))<0){if(w=y[0],M!=v&&(w=w*s+(y[1]||0)),(l=rv(w/A))>1)for(l>=s&&(l=s-1),p=(h=e(I,l,s)).length,v=y.length;1==t(h,y,p,v);)l--,r(h,M<p?E:I,p,s),p=h.length,f=1;else 0==l&&(f=l=1),p=(h=I.slice()).length;if(p<v&&(h=[0].concat(h)),r(y,h,v,s),v=y.length,-1==f)for(;1>t(I,y,M,v);)l++,r(y,M<v?E:I,v,s),v=y.length}else 0===f&&(l++,y=[0]);g[d++]=l,y[0]?y[v++]=O[_]||0:(y=[O[_]],v=1)}while((_++<x||null!=y[0])&&R--);c=null!=y[0],g[0]||g.splice(0,1)}if(s==rS){for(d=1,R=g[0];R>=10;R/=10,d++);S(b,o+(b.e=d+u*rx-1)+1,a,c)}else b.e=u,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,a,s,f){var u,d=s?a:a.replace(i,"");if(n.test(d))o.s=isNaN(d)?null:d<0?-1:1;else{if(!s&&(d=d.replace(e,function(e,t,r){return u="x"==(r=r.toLowerCase())?16:"b"==r?2:8,f&&f!=u?e:t}),f&&(u=f,d=d.replace(t,"$1").replace(r,"0.$1")),a!=d))return new m(d,u);if(m.DEBUG)throw Error(rw+"Not a"+(f?" base "+f:"")+" number: "+a);o.s=null}o.c=o.e=null}}(),i.absoluteValue=i.abs=function(){var e=new m(this);return e.s<0&&(e.s=1),e},i.comparedTo=function(e,t){return rk(this,new m(e,t))},i.decimalPlaces=i.dp=function(e,t){var r,n,i,o=this;if(null!=e)return rT(e,0,rR),null==t?t=s:rT(t,0,8),S(new m(o),e+o.e+1,t);if(!(r=o.c))return null;if(n=((i=r.length-1)-rI(this.e/rx))*rx,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 m(e,r),a,s)},i.dividedToIntegerBy=i.idiv=function(e,r){return t(this,new m(e,r),0,1)},i.exponentiatedBy=i.pow=function(e,t){var r,n,i,a,f,u,d,c,l,h=this;if((e=new m(e)).c&&!e.isInteger())throw Error(rw+"Exponent not an integer: "+x(e));if(null!=t&&(t=new m(t)),u=e.e>14,!h.c||!h.c[0]||1==h.c[0]&&!h.e&&1==h.c.length||!e.c||!e.c[0])return l=new m(Math.pow(+x(h),u?e.s*(2-rN(e)):+x(e))),t?l.mod(t):l;if(d=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new m(NaN);(n=!d&&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||u&&h.c[1]>=24e7:h.c[0]<8e13||u&&h.c[0]<=9999975e7)))return a=h.s<0&&rN(e)?-0:0,h.e>-1&&(a=1/a),new m(d?1/a:a);p&&(a=rm(p/rx+2))}for(u?(r=new m(.5),d&&(e.s=1),c=rN(e)):c=(i=Math.abs(+x(e)))%2,l=new m(o);;){if(c){if(!(l=l.times(h)).c)break;a?l.c.length>a&&(l.c.length=a):n&&(l=l.mod(t))}if(i){if(0===(i=rv(i/2)))break;c=i%2}else if(S(e=e.times(r),e.e+1,1),e.e>14)c=rN(e);else{if(0==(i=+x(e)))break;c=i%2}h=h.times(h),a?h.c&&h.c.length>a&&(h.c.length=a):n&&(h=h.mod(t))}return n?l:(d&&(l=o.div(l)),t?l.mod(t):a?S(l,p,s,f):l)},i.integerValue=function(e){var t=new m(this);return null==e?e=s:rT(e,0,8),S(t,t.e+1,e)},i.isEqualTo=i.eq=function(e,t){return 0===rk(this,new m(e,t))},i.isFinite=function(){return!!this.c},i.isGreaterThan=i.gt=function(e,t){return rk(this,new m(e,t))>0},i.isGreaterThanOrEqualTo=i.gte=function(e,t){return 1===(t=rk(this,new m(e,t)))||0===t},i.isInteger=function(){return!!this.c&&rI(this.e/rx)>this.c.length-2},i.isLessThan=i.lt=function(e,t){return 0>rk(this,new m(e,t))},i.isLessThanOrEqualTo=i.lte=function(e,t){return -1===(t=rk(this,new m(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,a=this,f=a.s;if(t=(e=new m(e,t)).s,!f||!t)return new m(NaN);if(f!=t)return e.s=-t,a.plus(e);var u=a.e/rx,d=e.e/rx,c=a.c,l=e.c;if(!u||!d){if(!c||!l)return c?(e.s=-t,e):new m(l?a:NaN);if(!c[0]||!l[0])return l[0]?(e.s=-t,e):new m(c[0]?a:3==s?-0:0)}if(u=rI(u),d=rI(d),c=c.slice(),f=u-d){for((o=f<0)?(f=-f,i=c):(d=u,i=l),i.reverse(),t=f;t--;i.push(0));i.reverse()}else for(n=(o=(f=c.length)<(t=l.length))?f:t,f=t=0;t<n;t++)if(c[t]!=l[t]){o=c[t]<l[t];break}if(o&&(i=c,c=l,l=i,e.s=-e.s),(t=(n=l.length)-(r=c.length))>0)for(;t--;c[r++]=0);for(t=rS-1;n>f;){if(c[--n]<l[n]){for(r=n;r&&!c[--r];c[r]=t);--c[r],c[n]+=rS}c[n]-=l[n]}for(;0==c[0];c.splice(0,1),--d);return c[0]?_(e,c,d):(e.s=3==s?-1:1,e.c=[e.e=0],e)},i.modulo=i.mod=function(e,r){var n,i,o=this;return(e=new m(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 m(o):new m(NaN)},i.multipliedBy=i.times=function(e,t){var r,n,i,o,a,s,f,u,d,c,l,h,p,b,g,y=this,v=y.c,w=(e=new m(e,t)).c;if(!v||!w||!v[0]||!w[0])return y.s&&e.s&&(!v||v[0]||w)&&(!w||w[0]||v)?(e.s*=y.s,v&&w?(e.c=[0],e.e=0):e.c=e.e=null):e.c=e.e=e.s=null,e;for(n=rI(y.e/rx)+rI(e.e/rx),e.s*=y.s,(f=v.length)<(c=w.length)&&(p=v,v=w,w=p,i=f,f=c,c=i),i=f+c,p=[];i--;p.push(0));for(b=rS,g=rE,i=c;--i>=0;){for(r=0,l=w[i]%g,h=w[i]/g|0,o=i+(a=f);o>i;)s=h*(u=v[--a]%g)+(d=v[a]/g|0)*l,r=((u=l*u+s%g*g+p[o]+r)/b|0)+(s/g|0)+h*d,p[o--]=u%b;p[o]=r}return r?++n:p.splice(0,1),_(e,p,n)},i.negated=function(){var e=new m(this);return e.s=-e.s||null,e},i.plus=function(e,t){var r,n=this,i=n.s;if(t=(e=new m(e,t)).s,!i||!t)return new m(NaN);if(i!=t)return e.s=-t,n.minus(e);var o=n.e/rx,a=e.e/rx,s=n.c,f=e.c;if(!o||!a){if(!s||!f)return new m(i/0);if(!s[0]||!f[0])return f[0]?e:new m(s[0]?n:0*i)}if(o=rI(o),a=rI(a),s=s.slice(),i=o-a){for(i>0?(a=o,r=f):(i=-i,r=s),r.reverse();i--;r.push(0));r.reverse()}for((i=s.length)-(t=f.length)<0&&(r=f,f=s,s=r,t=i),i=0;t;)i=(s[--t]=s[t]+f[t]+i)/rS|0,s[t]=rS===s[t]?0:s[t]%rS;return i&&(s=[i].concat(s),++a),_(e,s,a)},i.precision=i.sd=function(e,t){var r,n,i,o=this;if(null!=e&&!!e!==e)return rT(e,1,rR),null==t?t=s:rT(t,0,8),S(new m(o),e,t);if(!(r=o.c))return null;if(n=(i=r.length-1)*rx+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 rT(e,-rA,rA),this.times("1e"+e)},i.squareRoot=i.sqrt=function(){var e,r,n,i,o,f=this,u=f.c,d=f.s,c=f.e,l=a+4,h=new m("0.5");if(1!==d||!u||!u[0])return new m(!d||d<0&&(!u||u[0])?NaN:u?f:1/0);if(0==(d=Math.sqrt(+x(f)))||d==1/0?(((r=rP(u)).length+c)%2==0&&(r+="0"),d=Math.sqrt(+r),c=rI((c+1)/2)-(c<0||c%2),n=new m(r=d==1/0?"5e"+c:(r=d.toExponential()).slice(0,r.indexOf("e")+1)+c)):n=new m(d+""),n.c[0]){for((d=(c=n.e)+l)<3&&(d=0);;)if(o=n,n=h.times(o.plus(t(f,o,l,1))),rP(o.c).slice(0,d)===(r=rP(n.c)).slice(0,d)){if
2(n.e<c&&--d,"9999"!=(r=r.slice(d-3,d+1))&&(i||"4999"!=r)){+r&&(+r.slice(1)||"5"!=r.charAt(0))||(S(n,n.e+a+2,1),e=!n.times(n).eq(f));break}if(!i&&(S(o,o.e+a+2,0),o.times(o).eq(f))){n=o;break}l+=4,d+=4,i=1}}return S(n,n.e+a+1,s,e)},i.toExponential=function(e,t){return null!=e&&(rT(e,0,rR),e++),v(this,e,t,1)},i.toFixed=function(e,t){return null!=e&&(rT(e,0,rR),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(rw+"Argument not an object: "+r);if(n=i.toFixed(e,t),i.c){var o,a=n.split("."),s=+r.groupSize,f=+r.secondaryGroupSize,u=r.groupSeparator||"",d=a[0],c=a[1],l=i.s<0,h=l?d.slice(1):d,p=h.length;if(f&&(o=s,s=f,f=o,p-=o),s>0&&p>0){for(o=p%s||s,d=h.substr(0,o);o<p;o+=s)d+=u+h.substr(o,s);f>0&&(d+=u+h.slice(o)),l&&(d="-"+d)}n=c?d+(r.decimalSeparator||"")+((f=+r.fractionGroupSize)?c.replace(RegExp("\\d{"+f+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):c):d}return(r.prefix||"")+n+(r.suffix||"")},i.toFraction=function(e){var r,n,i,a,f,u,d,l,h,p,b,g,y=this,v=y.c;if(null!=e&&(!(d=new m(e)).isInteger()&&(d.c||1!==d.s)||d.lt(o)))throw Error(rw+"Argument "+(d.isInteger()?"out of range: ":"not an integer: ")+x(d));if(!v)return new m(y);for(r=new m(o),h=n=new m(o),i=l=new m(o),g=rP(v),f=r.e=g.length-y.e-1,r.c[0]=rM[(u=f%rx)<0?rx+u:u],e=!e||d.comparedTo(r)>0?f>0?r:h:d,u=c,c=1/0,d=new m(g),l.c[0]=0;p=t(d,r,0,1),1!=(a=n.plus(p.times(i))).comparedTo(e);)n=i,i=a,h=l.plus(p.times(a=h)),l=a,r=d.minus(p.times(a=r)),d=a;return a=t(e.minus(n),i,0,1),l=l.plus(a.times(h)),n=n.plus(a.times(i)),l.s=h.s=y.s,f*=2,b=1>t(h,i,f,s).minus(y).abs().comparedTo(t(l,n,f,s).minus(y).abs())?[h,i]:[l,n],c=u,b},i.toNumber=function(){return+x(this)},i.toPrecision=function(e,t){return null!=e&&rT(e,1,rR),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<=f||o>=u?rj(rP(n.c),o):rC(rP(n.c),o,"0"):10===e&&y?t=rC(rP((n=S(new m(n),a+o+1,s)).c),n.e,"0"):(rT(e,2,g.length,"Base"),t=r(rC(rP(n.c),o,"0"),10,e,i,!0)),i<0&&n.c[0]&&(t="-"+t)),t},i.valueOf=i.toJSON=function(){return x(this)},i._isBigNumber=!0,i[Symbol.toStringTag]="BigNumber",i[Symbol.for("nodejs.util.inspect.custom")]=i.valueOf,null!=e&&m.set(e),m}function rI(e){var t=0|e;return e>0||e===t?t:t-1}function rP(e){for(var t,r,n=1,i=e.length,o=e[0]+"";n<i;){for(r=rx-(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 rk(e,t){var r,n,i=e.c,o=t.c,a=e.s,s=t.s,f=e.e,u=t.e;if(!a||!s)return null;if(r=i&&!i[0],n=o&&!o[0],r||n)return r?n?0:-s:a;if(a!=s)return a;if(r=a<0,n=f==u,!i||!o)return n?0:!i^r?1:-1;if(!n)return f>u^r?1:-1;for(a=0,s=(f=i.length)<(u=o.length)?f:u;a<s;a++)if(i[a]!=o[a])return i[a]>o[a]^r?1:-1;return f==u?0:f>u^r?1:-1}function rT(e,t,r,n){if(e<t||e>r||e!==rv(e))throw Error(rw+(n||"Argument")+("number"==typeof e?e<t||e>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function rN(e){var t=e.c.length-1;return rI(e.e/rx)==t&&e.c[t]%2!=0}function rj(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function rC(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}rO();class rB{ttl;map=new Map;_to=!1;constructor(e){this.ttl=e}has(e){return this.map.has(e)}add(e){this.map.set(e,rF()),this._to||(this._to=!0,setTimeout(()=>{this._to=!1,rL(this)},0))}clear(){this.map.clear()}}function rL(e){let t=rF()-e.ttl,r=e.map[Symbol.iterator]();for(;;){let n=r.next().value;if(!n)return;let i=n[0];if(!(n[1]<t))return;e.map.delete(i)}}function rF(){return Date.now()}var rD=r(12692),rq=r(63426),rU=r.n(rq),rz=r(68245),rW=r(82909).Buffer;let r$=new rz.ec("secp256k1"),rH=r.g.crypto||r.g.msCrypto||{},rV=rH.subtle||rH.webkitSubtle,rG=rW.from("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141","hex"),rK=rW.alloc(32,0);function rJ(e,t){if(!e)throw Error(t||"Assertion failed")}function rZ(e){return rW.isBuffer(e)&&32===e.length}function rY(e){return!!rZ(e)&&e.compare(rK)>0&&0>e.compare(rG)}function rX(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 rQ(e){let t=new Uint8Array(e);return void 0===rH.getRandomValues?rW.from(rU().randomBytes(e)):(rH.getRandomValues(t),rW.from(t))}async function r0(e){return new Uint8Array(rV?await rV.digest("SHA-512",e):rU().createHash("sha512").update(e).digest())}
2function r1(e){return async function(t,r,n){if(rV){let i={name:"AES-CBC"},o=await rV.importKey("raw",r,i,!1,[e]),a={name:"AES-CBC",iv:t},s=await rV[e](a,o,n);return rW.from(new Uint8Array(s))}if("encrypt"===e){let e=rU().createCipheriv("aes-256-cbc",r,t),i=e.update(n),o=e.final();return rW.concat([i,o])}if("decrypt"===e){let e=rU().createDecipheriv("aes-256-cbc",r,t),i=e.update(n),o=e.final();return rW.concat([i,o])}throw Error(`Unsupported operation: ${e}`)}}let r2=r1("encrypt"),r3=r1("decrypt");async function r6(e,t){if(rV){let r={name:"HMAC",hash:{name:"SHA-256"}},n=await rV.importKey("raw",new Uint8Array(e),r,!1,["sign","verify"]),i=await rV.sign("HMAC",n,t);return rW.from(new Uint8Array(i))}let r=rU().createHmac("sha256",rW.from(e));return r.update(t),r.digest()}async function r4(e,t,r){return rX(await r6(e,t),r)}let r8=function(e){return rJ(32===e.length,"Bad private key"),rJ(rY(e),"Bad private key"),rW.from(r$.keyFromPrivate(e).getPublic("array"))},r9=async function(e,t){return rJ(32===e.length,"Bad private key"),rJ(rY(e),"Bad private key"),rJ(t.length>0,"Message should not be empty"),rJ(t.length<=32,"Message is too long"),rW.from(r$.sign(t,e,{canonical:!0}).toDER())},r5=async function(e,t){rJ(rW.isBuffer(e),"Bad private key"),rJ(rW.isBuffer(t),"Bad public key"),rJ(32===e.length,"Bad private key"),rJ(rY(e),"Bad private key"),rJ(65===t.length||33===t.length,"Bad public key"),65===t.length&&rJ(4===t[0],"Bad public key"),33===t.length&&rJ(2===t[0]||3===t[0],"Bad public key");let r=r$.keyFromPrivate(e),n=r$.keyFromPublic(t),i=r.derive(n.getPublic());return rW.from(i.toArray())},r7=async function(e,t){rJ(rW.isBuffer(e),"Bad private key"),rJ(rW.isBuffer(t),"Bad public key"),rJ(32===e.length,"Bad private key"),rJ(rY(e),"Bad private key"),rJ(65===t.length||33===t.length,"Bad public key"),65===t.length&&rJ(4===t[0],"Bad public key"),33===t.length&&rJ(2===t[0]||3===t[0],"Bad public key");let r=r$.keyFromPrivate(e),n=r$.keyFromPublic(t),i=r.derive(n.getPublic());return rW.from(i.toString(16,64),"hex")},ne=async function(e,t,r){let n=(r=r||{}).ephemPrivateKey||rQ(32);for(;!rY(n);)n=r.ephemPrivateKey||rQ(32);let i=r8(n),o=await r5(n,e),a=await r0(o),s=r.iv||rQ(16),f=a.slice(0,32),u=a.slice(32),d=await r2(s,rW.from(f),t),c=rW.concat([s,i,d]);return{iv:s,ephemPublicKey:i,ciphertext:d,mac:await r6(rW.from(u),c)}},nt=async function(e,t,r){let n=null!=r&&r,i=n?r7:r5,o=await i(e,t.ephemPublicKey),a=await r0(o),s=a.slice(0,32),f=a.slice(32),u=rW.concat([t.iv,t.ephemPublicKey,t.ciphertext]),d=await r4(rW.from(f),u,t.mac);if(!d&&!1===n)return nt(e,t,!0);if(!d&&!0===n)throw Error("bad MAC after trying padded");let c=await r3(t.iv,rW.from(s),t.ciphertext);return rW.from(new Uint8Array(c))};r(92401);var nr=r(82909).Buffer;function nn(e){return nr.from(rc(e))}let ni=new rz.ec("secp256k1");function no(e){return{iv:nr.from(e.iv,"hex"),ephemPublicKey:nr.from(e.ephemPublicKey,"hex"),ciphertext:nr.from(e.ciphertext,"hex"),mac:nr.from(e.mac,"hex")}}function na(e){return{iv:nr.from(e.iv).toString("hex"),ephemPublicKey:nr.from(e.ephemPublicKey).toString("hex"),ciphertext:nr.from(e.ciphertext).toString("hex"),mac:nr.from(e.mac).toString("hex")}}async function ns(e,t){let r=JSON.stringify(t),n=nr.from(r,"utf-8");return JSON.stringify(na(await ne(r8(nr.from(e,"hex")),n)))}async function nf(e,t){let r=no(JSON.parse(t)),n=ni.keyFromPrivate(e);return JSON.parse((await nt(nr.from(n.getPrivate().toString("hex",64),"hex"),r)).toString("utf-8"))}var nu=r(82909).Buffer;function nd(e){return!!e&&"function"==typeof e.then}Promise.resolve(!1),Promise.resolve(!0);let nc=Promise.resolve();function nl(e,t){return e||(e=0),new Promise(r=>setTimeout(()=>r(t),e))}function nh(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function np(){return Math.random().toString(36).substring(2)}let nb=0;function ng(){let e=1e3*Date.now();return e<=nb&&(e=nb+1),nb=e,e}let ny=et().getLogger("broadcast-channel");ny.setLevel("error");var nm={create:function(e){let t={time:ng(),messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=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),nc}catch(e){return Promise.reject(e)}},canBeUsed:function(){if("undefined"==typeof window||"function"!=typeof BroadcastChannel)return!1;
2if(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:ng};function nv(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=JSON.parse(JSON.stringify(e));return 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://session.web3auth.io"),t.server.removeTimeout||(t.server.removeTimeout=3e5),e.methods&&(t.methods=e.methods),t}let nw="pubkey.broadcast-channel-0-",n_="messages",nS={durability:"relaxed"};function nx(){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 nA(e){e.commit&&e.commit()}function nM(e){let t=nx(),r=nw+e,n=t.open(r);return n.onupgradeneeded=e=>{e.target.result.createObjectStore(n_,{keyPath:"id",autoIncrement:!0})},new Promise((e,t)=>{n.onerror=e=>t(e),n.onsuccess=()=>{e(n.result)}})}function nE(e,t,r){let n={uuid:t,time:Date.now(),data:r},i=e.transaction([n_],"readwrite",nS);return new Promise((e,t)=>{i.oncomplete=()=>e(),i.onerror=e=>t(e),i.objectStore(n_).add(n),nA(i)})}function nR(e,t){let r=e.transaction(n_,"readonly",nS),n=r.objectStore(n_),i=[],o=IDBKeyRange.bound(t+1,1/0);if(n.getAll){let e=n.getAll(o);return new Promise((t,r)=>{e.onerror=e=>r(e),e.onsuccess=function(e){t(e.target.result)}})}function a(){try{return o=IDBKeyRange.bound(t+1,1/0),n.openCursor(o)}catch(e){return n.openCursor()}}return new Promise((e,n)=>{let o=a();o.onerror=e=>n(e),o.onsuccess=n=>{let o=n.target.result;o?o.value.id<t+1?o.continue(t+1):(i.push(o.value),o.continue()):(nA(r),e(i))}})}function nO(e,t){let r=e.transaction([n_],"readwrite",nS).objectStore(n_);return Promise.all(t.map(e=>{let t=r.delete(e);return new Promise(e=>{t.onsuccess=()=>e()})}))}function nI(e,t){let r=Date.now()-t,n=e.transaction(n_,"readonly",nS),i=n.objectStore(n_),o=[];return new Promise(e=>{i.openCursor().onsuccess=t=>{let i=t.target.result;if(i){let t=i.value;if(t.time<r)o.push(t),i.continue();else{nA(n),e(o);return}}else e(o)}})}function nP(e,t){return nI(e,t).then(t=>nO(e,t.map(e=>e.id)))}function nk(e,t){return t=nv(t),nM(e).then(r=>{let n={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:np(),eMIs:new rB(2*t.idb.ttl),writeBlockPromise:nc,messagesCallback:null,readQueuePromises:[],db:r,time:ng()};return r.onclose=function(){n.closed=!0,t.idb.onclose&&t.idb.onclose()},nT(n),n})}function nT(e){e.closed||nj(e).then(()=>nl(e.options.idb.fallbackInterval)).then(()=>nT(e))}function nN(e,t){return!(e.uuid===t.uuid||t.eMIs.has(e.id))&&!(e.data.time<t.messagesCallbackTime)}function nj(e){return e.closed||!e.messagesCallback?nc:nR(e.db,e.lastCursorId).then(t=>(t.filter(e=>!!e).map(t=>(t.id>e.lastCursorId&&(e.lastCursorId=t.id),t)).filter(t=>nN(t,e)).sort((e,t)=>e.time-t.time).forEach(t=>{e.messagesCallback&&(e.eMIs.add(t.id),e.messagesCallback(t.data))}),nc))}function nC(){return!!nx()}var nB={getIdb:nx,createDatabase:nM,create:nk,close:function(e){e.closed=!0,e.db.close()},onMessage:function(e,t,r){e.messagesCallbackTime=r,e.messagesCallback=t,nj(e)},postMessage:function(e,t){return e.writeBlockPromise=e.writeBlockPromise.then(()=>nE(e.db,e.uuid,t)).then(()=>{0===nh(0,10)&&nP(e.db,e.options.idb.ttl)}),e.writeBlockPromise},canBeUsed:nC,type:"idb",averageResponseTime:function(e){return 2*e.idb.fallbackInterval},microSeconds:ng,writeMessage:nE,getAllMessages:function(e){let t=e.transaction(n_,"readonly",nS),r=t.objectStore(n_),n=[];return new Promise(e=>{r.openCursor().onsuccess=r=>{let i=r.target.result;i?(n.push(i.value),i.continue()):(nA(t),e(n))}})},cleanOldMessages:nP,getMessagesHigherThan:nR,getOldMessages:nI};let nL="pubkey.broadcastChannel-";function nF(){let e;if("undefined"==typeof window)return null;try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch(e){}return e}function nD(e){return nL+e}function nq(e,t){return new Promise(r=>{nl().then(()=>{let n=nD(e.channelName),i=JSON.stringify({token:np(),time:Date.now(),data:t,uuid:e.uuid});nF().setItem(n,i);let o=document.createEvent("Event");o.initEvent("storage",!0,!0),o.key=n,o.newValue=i,window.dispatchEvent(o),r()})})}function nU(e,t){let r=nD(e),n=e=>{e.key===r&&t(JSON.parse(e.newValue))};return window.addEventListener("storage",n),n}function nz(e){window.removeEventListener("storage",e)}function nW(){let e=nF();if(!e)return!1;try{let t="__broadcastchannel_check";e.setItem(t,"works"),e.removeItem(t)}catch(e){return!1}return!0}var n$={getLocalStorage:nF,create:function(e,t){if(t=nv(t),!nW())throw Error("BroadcastChannel: localstorage c
2annot be used");let r=np(),n=new rB(t.localstorage.removeTimeout),i={channelName:e,uuid:r,time:ng(),eMIs:n};return i.listener=nU(e,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){nz(e.listener)},onMessage:function(e,t,r){e.messagesCallbackTime=r,e.messagesCallback=t},postMessage:nq,canBeUsed:nW,type:"localstorage",averageResponseTime:function(){let e=120,t=navigator.userAgent.toLowerCase();return t.includes("safari")&&!t.includes("chrome")?2*e:e},microSeconds:ng,storageKey:nD,addStorageEventListener:nU,removeStorageEventListener:nz};let nH=ng,nV="pubkey.broadcastChannel-",nG="server",nK=null,nJ=new Set;function nZ(e){return nV+e}function nY(e){if(nK)return nK;let t=(0,rD.io)(e,{transports:["websocket","polling"],withCredentials:!0,reconnectionDelayMax:1e4,reconnectionAttempts:10});return t.on("connect_error",e=>{t.io.opts.transports=["polling","websocket"],ny.error("connect error",e)}),t.on("connect",async()=>{let{engine:e}=t.io;ny.debug("initially connected to",e.transport.name),e.once("upgrade",()=>{ny.debug("upgraded",e.transport.name)}),e.once("close",e=>{ny.debug("connection closed",e)})}),t.on("error",e=>{ny.error("socket errored",e),t.disconnect()}),nK=t,t}function nX(e,t,r){let n=nY(e),i=nZ(t.channelName),o=nn(nu.from(i,"utf8")),a=r8(o).toString("hex");n.connected?n.emit("check_auth_status",a,{sameOriginCheck:!0,sameIpCheck:!0}):n.once("connect",()=>{ny.debug("connected with socket"),n.emit("check_auth_status",a,{sameOriginCheck:!0,sameIpCheck:!0})});let s=()=>{n.once("connect",async()=>{nJ.has(t.channelName)&&n.emit("check_auth_status",a,{sameOriginCheck:!0,sameIpCheck:!0})})},f=()=>{if(!n||!nJ.has(t.channelName))return void document.removeEventListener("visibilitychange",f);n.connected||"visible"!==document.visibilityState||s()},u=async e=>{try{let t=await nf(o.toString("hex"),e);ny.info(t),r(t)}catch(e){ny.error(e)}};return n.on("disconnect",()=>{ny.debug("socket disconnected"),nJ.has(t.channelName)&&(ny.error("socket disconnected unexpectedly, reconnecting socket"),s())}),n.on(`${a}_success`,u),"undefined"!=typeof document&&document.addEventListener("visibilitychange",f),n}var nQ={create:function(e,t){t=nv(t);let r={channelName:e,uuid:np(),eMIs:new rB(t.server.removeTimeout),serverUrl:t.server.url,time:ng()};return t.server.timeout&&(r.timeout=t.server.timeout),nX(t.server.url,r,e=>{r.messagesCallback&&e.uuid!==r.uuid&&(!e.token||r.eMIs.has(e.token)||(r.eMIs.add(e.token),r.messagesCallback(e.data)))}),nJ.add(e),r},close:function(e){nJ.delete(e.channelName)},onMessage:function(e,t,r){e.messagesCallbackTime=r,e.messagesCallback=t},postMessage:function(e,t){return new Promise((r,n)=>{nl().then(async()=>{let i=nZ(e.channelName),o=nn(nu.from(i,"utf8")),a=await ns(o.toString("hex"),{token:np(),time:Date.now(),data:t,uuid:e.uuid}),s={sameOriginCheck:!0,sameIpCheck:!0,key:r8(o).toString("hex"),data:a,signature:(await r9(o,nn(nu.from(a,"utf8")))).toString("hex")};return e.timeout&&(s.timeout=e.timeout),fetch(e.serverUrl+"/channel/set",{method:"POST",body:JSON.stringify(s),headers:{"Content-Type":"application/json; charset=utf-8"}}).then(r).catch(n)})})},canBeUsed:function(){return!0},type:nG,averageResponseTime:function(){return 500},microSeconds:nH};let n0=ng,n1="simulate",n2=new Set,n3=5;var n6={create:function(e){let t={time:ng(),name:e,messagesCallback:null};return n2.add(t),t},close:function(e){n2.delete(e)},onMessage:function(e,t){e.messagesCallback=t},postMessage:function(e,t){return new Promise(r=>setTimeout(()=>{Array.from(n2).forEach(r=>{r.name===e.name&&r!==e&&r.messagesCallback&&r.time<t.time&&r.messagesCallback(t)}),r()},n3))},canBeUsed:function(){return!0},type:n1,averageResponseTime:function(){return n3},microSeconds:n0};let n4=[nm,nB,n$,nQ];function n8(e){let t=[].concat(e.methods,n4).filter(Boolean);if(e.type){if("simulate"===e.type)return n6;let r=t.find(t=>t.type===e.type);if(r)return r;throw Error("method-type "+e.type+" not found")}e.webWorkerSupport||(t=t.filter(e=>"idb"!==e.type));let r=t.find(t=>t.canBeUsed(e));if(r)return r;throw Error(`No useable method found in ${JSON.stringify(n4.map(e=>e.type))}`)}let n9=new Set,n5=0,n7=function(e,t){this.id=n5++,n9.add(this),this.name=e,n&&(t=n),this.options=nv(t),this.method=n8(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,it(this)};function ie(e,t,r){let n={time:e.method.microSeconds(),type:t,data:r};return(e._prepP?e._prepP:nc).then(()=>{let t=e.method.postMessage(e._state,n);return e._uMP.add(t),t.catch().then(()=>e._uMP.delete(t)),t})}function it(e){let t=e.method.create(e.name,e.options);nd(t)?(e._prepP=t,t.then(t=>{e._state=t})):e._state=t}function ir(e){return!!(e._addEL.message.length>0)||!!(e._addEL.internal.length>0)}function ii(e,t,r){e._addEL[t].push(r),ia(e)}function io(e,t,r){e._addEL[t]=e._addEL[t].filter(e=>e!==r),is(e)}function ia(e){if(!e._iL&&ir(e)){let t=t=>{e._addEL[t.type].forEach(r=>{t.time>=r.time?r.fn(t.data):"server"===e.method.type&&r.fn(t.data)})},r=e.method.microSeconds();e._prepP?e._prepP.then(()=>{e._iL=!0,e.method.onMessage(e._state,t,r)}):(e._iL=!0,e.method.onMessage(e._state,t,r))}}function is(e){if(e._iL&&!ir(e)){e._iL=!1;let t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}n7._pubkey=!0,n7.prototype={postMessage(e){if(this.closed)throw Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(e));return ie(this,"message",e)},postInternal(e){return ie(this,"internal",e)},set onmessage(fn){let e={time:this.method.microSeconds(),fn};io(this,"message",this._onML),fn&&"function"==typeof fn?(this._onML=e,ii(this,"message",e)):this._onML=null},addEventListener(e,t){ii(this,e,{time:this.method.microSeconds(),fn:t})},removeEventListener(e,t){let r=this._addEL[e].find(e=>e.fn===t);io(this,e,r)},close(){if(this.closed)return;n9.delete(this),this.closed=!0;let e=this._prepP?this._prepP:nc;return this._onML=null,this._addEL.message=[],e.then(()=>Promise.all(Array.from(this._uMP))).then(()=>Promise.all(this._befC.map(e=>e()))).then(()=>this.method.close(this._state))}
2,get type(){return this.method.type},get isClosed(){return this.closed}},r(93270);class iu extends Error{}iu.prototype.name="InvalidTokenError",r(82909).Buffer;let id={IFRAME_STATUS:"iframe_status",CLOSE_WINDOW:"close_window",USER_LOGGED_IN:"user_logged_in",USER_LOGGED_OUT:"user_logged_out"},ic={LOGOUT:"logout",WALLET_INSTANCE_ID:"wallet_instance_id",USER_INFO:"user_info",SET_PROVIDER:"set_provider",TOPUP:"topup",IFRAME_STATUS:"iframe_status",CLOSED_WINDOW:"closed_window",GET_PROVIDER_STATE:"get_provider_state"},il={GET_PROVIDER_STATE:"wallet_get_provider_state"},ih={ACCOUNTS_CHANGED:"wallet_accounts_changed",CHAIN_CHANGED:"wallet_chain_changed",UNLOCK_STATE_CHANGED:"wallet_unlock_state_changed"},ip={GOOGLE:"google"};function ib(e){return function(t,r,n){n(n=>{r.error&&et().warn("Error in RPC response:\n",r),t.isTorusInternal||(et().info(`RPC (${e.origin}):`,t,"->",r),n())})}}var ig=function(e){return e[e.GET=0]="GET",e[e.POST=1]="POST",e[e.PUT=2]="PUT",e[e.PATCH=3]="PATCH",e[e.DELETE=4]="DELETE",e}(ig||{});ip.GOOGLE;var iy=r(51647),im=r(34349),iv=r.n(im),iw=r(82909).Buffer,i_="2.1.0";function iS(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe}function ix(e){return iS(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState}function iA(e){return iS(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState}function iM(e){return ix(e)&&iA(e)}var iE={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 iR={MOONPAY:"moonpay",WYRE:"wyre",RAMPNETWORK:"rampnetwork",XANPOOL:"xanpool",MERCURYO:"mercuryo",TRANSAK:"transak"},iO={PRODUCTION:"production",DEVELOPMENT:"development",TESTING:"testing"},iI={BOTTOM_LEFT:"bottom-left",TOP_LEFT:"top-left",BOTTOM_RIGHT:"bottom-right",TOP_RIGHT:"top-right"},iP={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"},ik={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:"æ´å¤ä¿¡æ¯"}}};
2var iT={supportedVerifierList:[iP.GOOGLE,iP.REDDIT,iP.DISCORD],api:"https://api.tor.us",translations:ik,prodTorusUrl:"",localStorageKeyPrefix:"torus-"},iN=et().getLogger("solana-embed");function ij(){return(e,t,r)=>{"string"==typeof e.method&&e.method||(t.error=iy.Ls.rpc.invalidRequest({message:"The request 'method' must be a non-empty string.",data:e})),r(e=>{let{error:r}=t;return r&&iN.error(`Torus - RPC Error: ${r.message}`,r),e()})}}function iC(e,t,r){let n=`Torus: Lost connection to "${e}".`;t?.stack&&(n+=` 3${t.stack}`),iN.warn(n),r&&r.listenerCount("error")>0&&r.emit("error",n)}let iB=()=>Math.random().toString(36).slice(2),iL=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}},iF=()=>{let e=window.navigator.language||"en-US",t=e.split("-");return Object.prototype.hasOwnProperty.call(iT.translations,t[0])?t[0]:"en"},iD={height:660,width:375},iq={height:740,width:1315},iU={height:700,width:1200},iz={height:600,width:400};function iW(e){let t;try{t=window[e];let r="__storage_test__";return t.setItem(r,r),t.removeItem(r),!0}catch(r){let e=r;return e&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&t&&0!==t.length}}function i$(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,a=window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:window.screen.height,s=1,f=Math.abs((o-t)/2/1+n),u=Math.abs((a-r)/2/1+i);return`titlebar=0,toolbar=0,status=0,location=0,menubar=0,height=${r/s},width=${t/s},top=${u},left=${f}`}class iH extends ${constructor(e,t){let{maxEventListeners:r=100,jsonRpcStreamName:n="provider"}=t;if(super(),(0,c.A)(this,"isTorus",void 0),(0,c.A)(this,"_rpcEngine",void 0),(0,c.A)(this,"jsonRpcConnectionEvents",void 0),(0,c.A)(this,"_state",void 0),!iM(e))throw Error(iE.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 X;S()(e,i,e,this._handleStreamDisconnect.bind(this,"Torus")),i.ignoreStream("phishing");let o=G();S()(o.stream,i.createStream(n),o.stream,this._handleStreamDisconnect.bind(this,"Torus RpcProvider"));let a=new J;a.push(K()),a.push(ij()),a.push(ib({origin:location.origin})),a.push(o.middleware),this._rpcEngine=a,this.jsonRpcConnectionEvents=o.events}async request(e){if(!e||"object"!=typeof e||Array.isArray(e))throw iy.Ls.rpc.invalidRequest({message:iE.errors.invalidRequestArgs(),data:e});let{method:t,params:r}=e;if("string"!=typeof t||0===t.length)throw iy.Ls.rpc.invalidRequest({message:iE.errors.invalidRequestMethod(),data:e});if(void 0!==r&&!Array.isArray(r)&&("object"!=typeof r||null===r))throw iy.Ls.rpc.invalidRequest({message:iE.errors.invalidRequestParams(),data:e});return new Promise((e,n)=>{this._rpcRequest({method:t,params:r},V(e,n))})}send(e,t){this._rpcRequest(e,t)}sendAsync(e){return new Promise((t,r)=>{this._rpcRequest(e,V(t,r))})}_handleStreamDisconnect(e,t){iC(e,t,this),this._handleDisconnect(!1,t?t.message:void 0)}}let iV=e=>{let t=window.document.createElement("template");return t.innerHTML=e.trim(),t.content.firstChild};function iG(e){return void 0===e.version}class iK extends ${constructor(e){let{url:t,target:r,features:n,timeout:i=3e4}=e;super(),(0,c.A)(this,"url",void 0),(0,c.A)(this,"target",void 0),(0,c.A)(this,"features",void 0),(0,c.A)(this,"window",void 0),(0,c.A)(this,"windowTimer",void 0),(0,c.A)(this,"iClosedWindow",void 0),(0,c.A)(this,"timeout",void 0),this.url=t,this.target=r||"_blank",this.features=n||i$(iU),this.window=void 0,this.windowTimer=void 0,this.iClosedWindow=!1,this.timeout=i,this._setupTimer()}_setupTimer(){this.windowTimer=Number(setInterval(()=>{this.window&&this.window.closed&&(clearInterval(this.windowTimer),setTimeout(()=>
3{this.iClosedWindow||this.emit("close"),this.iClosedWindow=!1,this.window=void 0},this.timeout)),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}}class iJ extends iH{constructor(e,t){let{maxEventListeners:r=100,jsonRpcStreamName:n="provider"}=t;super(e,{maxEventListeners:r,jsonRpcStreamName:n}),(0,c.A)(this,"embedTranslations",void 0),(0,c.A)(this,"torusUrl",void 0),(0,c.A)(this,"dappStorageKey",void 0),(0,c.A)(this,"windowRefs",void 0),(0,c.A)(this,"tryWindowHandle",void 0),(0,c.A)(this,"torusAlertContainer",void 0),(0,c.A)(this,"torusIframe",void 0),this._state=(0,d.A)({},iJ._defaultState),this.torusUrl="",this.dappStorageKey="";let i=iT.translations[iF()];this.embedTranslations=i.embed,this.windowRefs={},this.on("connect",()=>{this._state.isConnected=!0});let o=e=>{let{method:t,params:r}=e;if(t===id.IFRAME_STATUS){let{isFullScreen:e,rid:t}=r;this._displayIframe({isFull:e,rid:t})}else if("create_window"===t){let{windowId:e,url:t}=r;this._createPopupBlockAlert(e,t)}else if(t===id.CLOSE_WINDOW)this._handleCloseWindow(r);else if(t===id.USER_LOGGED_IN){let{currentLoginProvider:e}=r;this._state.isLoggedIn=!0,this._state.currentLoginProvider=e}else t===id.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:a}=await this.request({method:ic.GET_PROVIDER_STATE,params:[]});this._handleConnect(o,a)}catch(e){iN.error("Torus: Failed to get initial state. Please report this bug.",e)}finally{iN.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 iK({url:i,target:r,features:n});if(o.open(),!o.window)return void this._createPopupBlockAlert(e,i.href);this.windowRefs[e]=o,this.request({method:"opened_window",params:{windowId:e}}),o.once("close",()=>{delete this.windowRefs[e],this.request({method:ic.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 iI.TOP_LEFT:r.top="0px",r.left="0px",r.right="auto",r.bottom="auto";break;case iI.TOP_RIGHT:r.top="0px",r.right="0px",r.left="auto",r.bottom="auto";break;case iI.BOTTOM_RIGHT:r.bottom="0px",r.right="0px",r.top="auto",r.left="auto";break;case iI.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:ic.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
3("connect",{currentLoginProvider:e,isLoggedIn:t}),iN.debug(iE.info.connected(e)))}_handleDisconnect(e,t){if(this._state.isConnected||!this._state.isPermanentlyDisconnected&&!e){let r;this._state.isConnected=!1,e?(r=new iy.no(1013,t||iE.errors.disconnected()),iN.debug(r)):(r=new iy.no(1011,t||iE.errors.permanentlyDisconnected()),iN.error(r),this._state.currentLoginProvider=null,this._state.isLoggedIn=!1,this._state.torusWidgetVisibility=!1,this._state.isIFrameFullScreen=!1,this._state.isPermanentlyDisconnected=!0),this.emit("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=iV(`<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=iV(`<div><a id="torusAlert__btn">${this.embedTranslations.continue}</a></div>`),o=iV('<div id="torusAlert__btn-container"></div>');o.appendChild(i),n.appendChild(o);let a=()=>{i.addEventListener("click",()=>{this._handleWindow(e,{url:t,target:"_blank",features:i$(iz)}),n.remove(),0===this.torusAlertContainer.children.length&&(this.torusAlertContainer.style.display="none")})};(()=>{this.torusAlertContainer.appendChild(n)})(),a(),this.torusAlertContainer.style.display="block"}getLogoUrl(){return`${this.torusUrl}/images/torus_icon-blue.svg`}}(0,c.A)(iJ,"_defaultState",{buttonPosition:"bottom-left",currentLoginProvider:null,isIFrameFullScreen:!1,hasEmittedConnection:!1,torusWidgetVisibility:!1,initialized:!1,isLoggedIn:!1,isPermanentlyDisconnected:!1,isConnected:!1});class iZ extends iH{constructor(e,t){let{maxEventListeners:r=100,jsonRpcStreamName:n="provider"}=t;super(e,{maxEventListeners:r,jsonRpcStreamName:n}),(0,c.A)(this,"chainId",void 0),(0,c.A)(this,"selectedAddress",void 0),(0,c.A)(this,"tryWindowHandle",void 0),this._state=(0,d.A)({},iZ._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===ih.ACCOUNTS_CHANGED?this._handleAccountsChanged(r):t===ih.UNLOCK_STATE_CHANGED?this._handleUnlockStateChanged(r):t===ih.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:il.GET_PROVIDER_STATE,params:[]});this.emit("connect",{chainId:t}),this._handleChainChanged({chainId:t}),this._handleUnlockStateChanged({accounts:e,isUnlocked:r}),this._handleAccountsChanged(e)}catch(e){iN.error("Torus: Failed to get initial state. Please report this bug.",e)}finally{iN.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)return void this._rpcEngine.handle(e,n)}this.tryWindowHandle(i,n)}_handleConnect(e){this._state.isConnected||(this._state.isConnected=!0,this.emit("connect",{chainId:e}),iN.debug(iE.info.connected(e)))}_handleDisconnect(e,t){if(this._state.isConnected||!this._state.isPermanentlyDisconnected&&!e){let r;this._state.isConnected=!1,e?(r=new iy.no(1013,t||iE.errors.disconnected()),iN.debug(r)):(r=new iy.no(1011,t||iE.errors.permanentlyDisconnected()),iN.error(r),this.chainId=null,this._state.accounts=null,this.selectedAddress=null,this._state.isUnlocked=!1,this._state.isPermanentlyDisconnected=!0),this.emit("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)||(iN.error("Torus: Received non-array accounts parameter. Please report this bug.",n),n=[]),e))if("string"!=typeof t){iN.error("Torus: Received non-string account. Please report this bug.",e),n=[];break}iv()(this._state.accounts,n)||(t&&Array.isArray(this._state.accounts)&&this._state.accounts.length>
30&&!r&&iN.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)return void iN.error("Torus: Received invalid network parameters. Please report this bug.",{chainId:e});"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)return void iN.error("Torus: Received invalid isUnlocked parameter. Please report this bug.",{isUnlocked:t});t!==this._state.isUnlocked&&(this._state.isUnlocked=t,this._handleAccountsChanged(e||[]))}}function iY(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)}})}(0,c.A)(iZ,"_defaultState",{accounts:null,isConnected:!1,isUnlocked:!1,initialized:!1,isPermanentlyDisconnected:!1,hasEmittedConnection:!1});let iX=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 iQ(e){try{let{document:t}=e,r=t.querySelector('head > link[rel="shortcut icon"]');if(r&&await iY(r.href)||(r=Array.from(t.querySelectorAll('head > link[rel="icon"]')).find(e=>!!e.href))&&await iY(r.href))return r.href;return""}catch(e){return""}}let i0=async()=>({name:iX(window),icon:await iQ(window)}),i1=["send_transaction","sign_transaction","sign_all_transactions","sign_message","connect"],i2=[ic.SET_PROVIDER],i3=iW("localStorage");!async function(){try{if("undefined"==typeof document)return;let e=document.createElement("link"),{torusUrl:t}=await iL("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){iN.warn(e)}}();class i6{constructor(){let{modalZIndex:e=99999}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,c.A)(this,"isInitialized",void 0),(0,c.A)(this,"torusAlert",void 0),(0,c.A)(this,"modalZIndex",void 0),(0,c.A)(this,"alertZIndex",void 0),(0,c.A)(this,"requestedLoginProvider",void 0),(0,c.A)(this,"provider",void 0),(0,c.A)(this,"communicationProvider",void 0),(0,c.A)(this,"dappStorageKey",void 0),(0,c.A)(this,"isTopupHidden",!1),(0,c.A)(this,"torusAlertContainer",void 0),(0,c.A)(this,"torusUrl",void 0),(0,c.A)(this,"torusIframe",void 0),(0,c.A)(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}
3async init(){let{buildEnv:e=iO.PRODUCTION,enableLogging:t=!1,network:r,showTorusButton:n=!1,useLocalStorage:i=!1,buttonPosition:o=iI.BOTTOM_LEFT,apiKey:a="torus-default",extraParams:s={},whiteLabel:f}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.isInitialized)throw Error("Already initialized");let{torusUrl:u,logLevel:d}=await iL(e);iN.enableAll(),iN.info(u,"url loaded"),iN.info(`Solana Embed Version :${i_}`),this.torusUrl=u,iN.setDefaultLevel(d),t?iN.enableAll():iN.disableAll();let c=this.handleDappStorageKey(i),l=new URL(u);l.pathname.endsWith("/")?l.pathname+="frame":l.pathname+="/frame";let h=new URLSearchParams;return c&&h.append("dappStorageKey",c),h.append("origin",window.location.origin),l.hash=h.toString(),this.torusIframe=iV(`<iframe 4 id="torusIframe" 5 class="torusIframe" 6 src="${l.href}" 7 style="display: none; position: fixed; top: 0; right: 0; width: 100%; 8 height: 100%; border: none; border-radius: 0; z-index: ${this.modalZIndex.toString()}" 9 ></iframe>`),this.torusAlertContainer=iV(`<div id="torusAlertContainer" style="display:none; z-index: ${this.alertZIndex.toString()}"></div>`),this.styleLink=iV(`<link href="${u}/css/widget.css" rel="stylesheet" type="text/css">`),new Promise((e,t)=>{try{this.torusIframe.addEventListener("load",async()=>{let t=await i0();this.torusIframe.contentWindow.postMessage({buttonPosition:o,apiKey:a,network:r,dappMetadata:t,extraParams:s,whiteLabel:f},l.origin),await this._setupWeb3({torusUrl:u}),n&&this.showTorusButton(),f?.topupHide?this.isTopupHidden=f.topupHide:this.hideTorusButton(),this.isInitialized=!0,window.torus=this,e()}),window.document.head.appendChild(this.styleLink),window.document.body.appendChild(this.torusIframe),window.document.body.appendChild(this.torusAlertContainer)}catch(e){t(e)}})}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]},V(t,r))});if(Array.isArray(t)&&t.length>0)return t;throw Error("Login failed")}catch(e){throw iN.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:ic.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:ic.SET_PROVIDER,params:(0,d.A)({},e)})}async showWallet(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=await this.communicationProvider.request({method:ic.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 iK({url:i,features:i$(iq)}).open()}async getUserInfo(){return await this.communicationProvider.request({method:ic.USER_INFO,params:[]})}async initiateTopup(e,t){if(!this.isInitialized)throw Error("Torus is not initialized");let r=iB();return this.communicationProvider._handleWindow(r),await this.communicationProvider.request({method:ic.TOPUP,params:{provider:e,params:t,windowId:r}})}async getAccounts(){return await this.provider.request({method:"getAccounts",params:[]})}async sendTransaction(e){let t=iG(e),r=t?e.serialize({requireAllSignatures:!1}).toString("hex"):iw.from(e.serialize()).toString("hex");return await this.provider.request({method:"send_transaction",params:{message:r,isLegacyTransaction:t}})}async signAndSendTransaction(e,t){let r=iG(e),n=r?e.serialize({requireAllSignatures:!1}).toString("hex"):iw.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=iG(e),r=t?e.serializeMessage().toString("hex"):iw.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 l.PublicKey(n.publicKey),signature:iw.from(n.signature,"hex")};return e.addSignature(i.publicKey,i.signature),e}async signAllTransactions(e){let t,r=e.map(e=>(t=iG(e))?e.serializeMessage().toString("hex"):iw.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 l.PublicKey(t.publicKey),signature:iw.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=`${iT.localStorageKeyPrefix}${window.location.hostname}`,r="";if(i3&&e){let e=window.localStorage.getItem(t);if(e)r=e;else{let e=`torus-app-${iB()}`;window.localStorage.setItem(t,e),r=e}}return this.dappStorageKey=r,r}async _setupWeb3(e){iN.info("setupWeb3 running");
9let t=new R({name:"embed_torus",target:"iframe_torus",targetWindow:this.torusIframe.contentWindow}),r=new R({name:"embed_communication",target:"iframe_communication",targetWindow:this.torusIframe.contentWindow}),n=new iZ(t,{}),i=new iJ(r,{});n.tryWindowHandle=(e,t)=>{let r=e;if(!Array.isArray(r)&&i1.includes(r.method)){if(!this.communicationProvider.isLoggedIn)throw Error("User Not Logged In");let e=iB();i._handleWindow(e,{target:"_blank",features:i$(iz)}),r.windowId=e}n._rpcEngine.handle(r,t)},i.tryWindowHandle=(e,t)=>{let r=e;if(!Array.isArray(r)&&i2.includes(r.method)){let e=iB();i._handleWindow(e,{target:"_blank",features:i$(iD)}),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 a=new Proxy(n,{deleteProperty:()=>!0}),s=new Proxy(i,{deleteProperty:()=>!0});this.provider=a,this.communicationProvider=s,await Promise.all([n._initializeState(),i._initializeState((0,d.A)((0,d.A)({},e),{},{dappStorageKey:this.dappStorageKey,torusAlertContainer:this.torusAlertContainer,torusIframe:this.torusIframe}))]),iN.debug("Torus - injected provider")}}},31183:(e,t,r)=>{"use strict";var n=r(23764),i=r(95987),o=i.getNAF,a=i.getJSF,s=i.assert;function f(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))}function u(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=f,f.prototype.point=function(){throw Error("Not implemented")},f.prototype.validate=function(){throw Error("Not implemented")},f.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r,n,i=e._getDoubles(),a=o(t,1,this._bitLength),f=(1<<i.step+1)-(i.step%2==0?2:1);f/=3;var u=[];for(r=0;r<a.length;r+=i.step){n=0;for(var d=r+i.step-1;d>=r;d--)n=(n<<1)+a[d];u.push(n)}for(var c=this.jpoint(null,null,null),l=this.jpoint(null,null,null),h=f;h>0;h--){for(r=0;r<u.length;r++)(n=u[r])===h?l=l.mixedAdd(i.points[r]):n===-h&&(l=l.mixedAdd(i.points[r].neg()));c=c.add(l)}return c.toP()},f.prototype._wnafMul=function(e,t){var r=4,n=e._getNAFPoints(r);r=n.wnd;for(var i=n.points,a=o(t,r,this._bitLength),f=this.jpoint(null,null,null),u=a.length-1;u>=0;u--){for(var d=0;u>=0&&0===a[u];u--)d++;if(u>=0&&d++,f=f.dblp(d),u<0)break;var c=a[u];s(0!==c),f="affine"===e.type?c>0?f.mixedAdd(i[c-1>>1]):f.mixedAdd(i[-c-1>>1].neg()):c>0?f.add(i[c-1>>1]):f.add(i[-c-1>>1].neg())}return"affine"===e.type?f.toP():f},f.prototype._wnafMulAdd=function(e,t,r,n,i){var s,f,u,d=this._wnafT1,c=this._wnafT2,l=this._wnafT3,h=0;for(s=0;s<n;s++){var p=(u=t[s])._getNAFPoints(e);d[s]=p.wnd,c[s]=p.points}for(s=n-1;s>=1;s-=2){var b=s-1,g=s;if(1!==d[b]||1!==d[g]){l[b]=o(r[b],d[b],this._bitLength),l[g]=o(r[g],d[g],this._bitLength),h=Math.max(l[b].length,h),h=Math.max(l[g].length,h);continue}var y=[t[b],null,null,t[g]];0===t[b].y.cmp(t[g].y)?(y[1]=t[b].add(t[g]),y[2]=t[b].toJ().mixedAdd(t[g].neg())):0===t[b].y.cmp(t[g].y.redNeg())?(y[1]=t[b].toJ().mixedAdd(t[g]),y[2]=t[b].add(t[g].neg())):(y[1]=t[b].toJ().mixedAdd(t[g]),y[2]=t[b].toJ().mixedAdd(t[g].neg()));var m=[-3,-1,-5,-7,0,7,5,1,3],v=a(r[b],r[g]);for(f=0,h=Math.max(v[0].length,h),l[b]=Array(h),l[g]=Array(h);f<h;f++){var w=0|v[0][f],_=0|v[1][f];l[b][f]=m[(w+1)*3+(_+1)],l[g][f]=0,c[b]=y}}var S=this.jpoint(null,null,null),x=this._wnafT4;for(s=h;s>=0;s--){for(var A=0;s>=0;){var M=!0;for(f=0;f<n;f++)x[f]=0|l[f][s],0!==x[f]&&(M=!1);if(!M)break;A++,s--}if(s>=0&&A++,S=S.dblp(A),s<0)break;for(f=0;f<n;f++){var E=x[f];0!==E&&(E>0?u=c[f][E-1>>1]:E<0&&(u=c[f][-E-1>>1].neg()),S="affine"===u.type?S.mixedAdd(u):S.add(u))}}for(s=0;s<n;s++)c[s]=null;return i?S:S.toP()},f.BasePoint=u,u.prototype.eq=function(){throw Error("Not implemented")},u.prototype.validate=function(){return this.curve.validate(this)},f.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]?s(e[e.length-1]%2==0):7===e[0]&&s(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")},u.prototype.encodeCompressed=function(e){return this.encode(e,!0)},u.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))},u.prototype.encode=function(e,t){return i.encode(this._encode(t),e)}
9,u.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},u.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)},u.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}},u.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}},u.prototype._getBeta=function(){return null},u.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}},31787:(e,t,r)=>{"use strict";var n=r(6768),i=r(65200),o=r(23411),a=r(73442),s=r(10221),f=r(34816),u=a("Object.prototype.toString"),d=r(48744)(),c="undefined"==typeof globalThis?r.g:globalThis,l=i(),h=a("String.prototype.slice"),p=a("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return -1},b={__proto__:null};d&&s&&f?n(l,function(e){var t=new c[e];if(Symbol.toStringTag in t&&f){var r=f(t),n=s(r,Symbol.toStringTag);!n&&r&&(n=s(f(r),Symbol.toStringTag)),b["$"+e]=o(n.get)}}):n(l,function(e){var t=new c[e],r=t.slice||t.set;r&&(b["$"+e]=o(r))});var g=function(e){var t=!1;return n(b,function(r,n){if(!t)try{"$"+r(e)===n&&(t=h(n,1))}catch(e){}}),t},y=function(e){var t=!1;return n(b,function(r,n){if(!t)try{r(e),t=h(n,1)}catch(e){}}),t};e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!d){var t=h(u(e),8,-1);return p(l,t)>-1?t:"Object"===t&&y(e)}return s?g(e):null}},32339:e=>{e
vendor: 18,403 bytes, line 9
9.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 9
9a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","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"]]}}},
932545:(e,t,r)=>{var n="/",i=r(99742);!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 a(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 s,f;if("string"==typeof t&&i(t,"not ")?(s="must not be",t=t.replace(/^not /,"")):s="must be",o(e," argument"))f=`The ${e} ${s} ${n(t,"type")}`;else{let r=a(e,".")?"property":"argument";f=`The "${e}" ${r} ${s} ${n(t,"type")}`}return f+`. 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=d;var o=r(709),a=r(337);r(782)(d,o);for(var s=n(a.prototype),f=0;f<s.length;f++){var u=s[f];d.prototype[u]||(d.prototype[u]=a.prototype[u])}function d(e){if(!(this instanceof d))return new d(e);o.call(this,e),a.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(l,this)}function l(e){e.end()}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(d.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(d.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(d.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=I,I.ReadableState=O,n(361).EventEmitter;var o,a,s,f,u,d=function(e,t){return e.listeners(t).length},c=n(678),l=n(300).Buffer,h=r.g.Uint8Array||function(){};function p(e){return l.from(e)}function b(e){return l.isBuffer(e)||e instanceof h}var g=n(837);a=g&&g.debuglog?g.debuglog("stream"):function(){};var y=n(379),m=n(25),v=n(776).getHighWaterMark,w=n(646).q,_=w.ERR_INVALID_ARG_TYPE,S=w.ERR_STREAM_PUSH_AFTER_EOF,x=w.ERR_METHOD_NOT_IMPLEMENT
9ED,A=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(782)(I,c);var M=m.errorOrDestroy,E=["error","close","destroy","pause","resume"];function R(e,t,r){if("function"==typeof e.prependListener)return e.prepe
vendor: 11,119 bytes, line 9
9ndListener(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 O(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 y,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&&(s||(s=n(704).s),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function I(e){if(o=o||n(403),!(this instanceof I))return new I(e);var t=this instanceof o;this._readableState=new O(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 P(e,t,r,n,i){a("readableAddChunk",t);var o,s=e._readableState;if(null===t)s.reading=!1,B(e,s);else if(i||(o=T(s,t)),o)M(e,o);else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=p(t)),n)s.endEmitted?M(e,new A):k(e,s,t,!0);else if(s.ended)M(e,new S);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?k(e,s,t,!1):D(e,s)):k(e,s,t,!1)}else n||(s.reading=!1,D(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function k(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&&L(e)),D(e,t)}function T(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(I.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),I.prototype.destroy=m.destroy,I.prototype._undestroy=m.undestroy,I.prototype._destroy=function(e,t){t(e)},I.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=l.from(e,t),t=""),r=!0),P(this,e,t,!1,r)},I.prototype.unshift=function(e){return P(this,e,null,!0,!1)},I.prototype.isPaused=function(){return!1===this._readableState.flowing},I.prototype.setEncoding=function(e){s||(s=n(704).s);var t=new s(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 N=0x40000000;function j(e){return e>=N?e=N:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function C(e,t){if(e<=0||0===t.length&&t.ended)return 0;if(t.objectMode)return 1;if(e!=e)if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length;return(e>t.highWaterMark&&(t.highWaterMark=j(e)),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function B(e,t){if(a("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?L(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,F(e)))}}function L(e){var t=e._readableState;a("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(a("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(F,e))}function F(e){var t=e._readableState;a("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 D(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(q,e,t))}function q(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(a("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function U(e){return function(){var t=e._readableState;a("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&d(e,"data")&&(t.flowing=!0,V(e))}}function z(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 W(e){a("readable nexttick read 0"),e.read(0)}function $(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(H,e,t))}function H(e,t){a("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(a("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 K(e){var t=e._readableState;a("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(J,t,e))}function J(e,t){if(a("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 Z(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}I.prototype.read=function(e){a("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 a("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?K(this):L(this),null;if(0===(e=C(e,r))&&r.ended)return 0===r.length&&K(this),null;var i=r.needReadable;return a("need readable",i),(0===r.length||r.length-e<r.highWaterMark)&&a("length less than watermark",i=!0),r.ended||r.reading?a("reading or ended",i=!1):i&&(a("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=C(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&&K(this)),null!==t&&this.emit("data",t),t},I.prototype._read=function(e){M(this,new x("_read()"))},I.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,a("pipe count=%d opts=%j",n.pipesCount,t);var o=t&&!1===t.end||e===i.stdout||e===i.stderr?y:f;function s(e,t){a("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,l())}function f(){a("onend"),e.end()}n.endEmitted?i.nextTick(o):r.once("end",o),e.on("unpipe",s);var u=U(r);e.on("drain",u);var c=!1;function l(){a("cleanup"),e.removeListener("close",b),e.removeListener("finish",g),e.removeListener("drain",u),e.removeListener("error",p),e.removeListener("unpipe",s),r.removeListener("end",f),r.removeListener("end",y),r.removeListener("data",h),c=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u()}function h(t){a("ondata");var i=e.write(t);a("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==Z(n.pipes,e))&&!c&&(a("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function p(t){a("onerror",t),y(),e.removeListener("error",p),0===d(e,"error")&&M(e,t)}function b(){e.removeListener("finish",g),y()}function g(){a("onfinish"),e.removeListener("close",b),y()}function y(){a("unpipe"),r.unpipe(e)}return r.on("data",h),R(e,"error",p),e.once("close",b),e.once("finish",g),e.emit("pipe",r),n.flowing||(a("pipe resume"),r.resume()),e},I.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 a=Z(t.pipes,e);return -1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},I.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,a("on readable",n.length,n.reading),n.length?L(this):n.reading||i.nextTick(W,this)),r},I.prototype.addListener=I.prototype.on,I.prototype.removeListener=function(e,t){var r=c.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(z,this),r},I.prototype.removeAllListeners=function(e){var t=c.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&i.nextTick(z,this),t},I.prototype.resume=function(){var e=this._readableState;return e.flowing||(a("resume"),e.flowing=!e.readableListening,$(this,e)),e.paused=!1,this},I.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},I.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(a("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){if(a("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<E.length;o++)e.on(E[o],this.emit.bind(this,E[o]));return this._read=function(t){a("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(I.prototype[Symbol.asyncIterator]=function(){return void 0===f&&(f=n(871)),f(this)}),Object.defineProperty(I.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(I.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(I.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),I._fromList=G,Object.defineProperty(I.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(I.from=function(e,t){return void 0===u&&(u=n(727)),u(I,e,t)})},170:function(e,t,r){"use strict";e.exports=d;
vendor: 11,020 bytes, line 9
9var n=r(646).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,f=r(403);function u(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 d(e){if(!(this instanceof d))return new d(e);f.call(this,e),this._transformState={afterTransform:u.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?l(this,null,null):this._flush(function(t,r){l(e,t,r)})}function l(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}r(782)(d,f),d.prototype.push=function(e,t){return this._transformState.needTransform=!1,f.prototype.push.call(this,e,t)},d.prototype._transform=function(e,t,r){r(new i("_transform()"))},d.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)}},d.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))},d.prototype._destroy=function(e,t){f.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(){H(t,e)}}e.exports=O,O.WritableState=R;var a,s,f={deprecate:n(769)},u=n(678),d=n(300).Buffer,c=r.g.Uint8Array||function(){};function l(e){return d.from(e)}function h(e){return d.isBuffer(e)||e instanceof c}var p=n(25),b=n(776).getHighWaterMark,g=n(646).q,y=g.ERR_INVALID_ARG_TYPE,m=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,x=g.ERR_STREAM_WRITE_AFTER_END,A=g.ERR_UNKNOWN_ENCODING,M=p.errorOrDestroy;function E(){}function R(e,t,r){a=a||n(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof a),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){B(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 O(e){var t=this instanceof(a=a||n(403));if(!t&&!s.call(O,this))return new O(e);this._writableState=new R(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)),u.call(this)}function I(e,t){var r=new x;M(e,r),i.nextTick(t,r)}function P(e,t,r,n){var o;return null===r?o=new S:"string"==typeof r||t.objectMode||(o=new y("chunk",["string","Buffer"],r)),!o||(M(e,o),i.nextTick(n,o),!1)}function k(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=d.from(t,r)),t}function T(e,t,r,n,i,o){if(!r){var a=k(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var f=t.length<t.highWaterMark;if(f||(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else N(e,t,!1,s,n,i,o);return f}function N(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,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 j(e,t,r,n,o){--t.pendingcb,r?(i.nextTick(o,n),i.nextTick(W,e,t),e._writableState.errorEmitted=!0,M(e,n)):(o(n),e._writableState.errorEmitted=!0,M(e,n),W(e,t))}function C(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function B(e,t){var r=e._writableState,n=r.sync,o=r.writecb;if("function"!=typeof o)throw new v;if(C(r),t)j(e,r,n,t,o);else{var a=q(r)||e.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||D(e,r),n?i.nextTick(L,e,r,a,o):L(e,r,a,o)}}function L(e,t,r,n){r||F(e,t),t.pendingcb--,n(),W(e,t)}function F(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function D(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 a=0,s=!0;r;)n[a]=r,r.isBuf||(s=!1),r=r.next,a+=1;n.allBuffers=s,N(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 f=r.chunk,u=r.encoding,d=r.callback,c=t.objectMode?1:f.length;if(N(e,t,!1,c,f,u,d),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function q(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function U(e,t){e._final(function(r){t.pendingcb--,r&&M(e,r),t.prefinished=!0,e.emit("prefinish"),W(e,t)})}function z(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(U,e,t)))}function W(e,t){var r=q(t);if(r&&(z(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 $(e,t,r){t.ending=!0,W(e,t),r&&(t.finished?i.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function H(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)(O,u),R.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(R.prototype,"buffer",{get:f.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]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(O,Symbol.hasInstance,{value:function(e){return!!s.call(this,e)||this===O&&e&&e._writableState instanceof R}})):s=function(e){return e instanceof this},O.prototype.pipe=function(){M(this,new w)},O.prototype.write=function(e,t,r){var n=this._writableState,i=!1,o=!n.objectMode&&h(e);return o&&!d.isBuffer(e)&&(e=l(e)),"function"==typeof t&&(r=t,t=null),o?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof r&&(r=E),n.ending?I(this,r):(o||P(this,n,e,r))&&(n.pendingcb++,i=T(this,n,o,e,t,r)),i},O.prototype.cork=function(){this._writableState.corked++},O.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||D(this,e))},O.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(O.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),O.prototype._write=function(e,t,r){r(new m("_write()"))},O.prototype._writev=null,O.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||$(this,n,r),this},Object.defineProperty(O.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),O.prototype.destroy=p.destroy,O.prototype._undestroy=p.undestroy,O.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,a=r(698),s=Symbol("lastResolve"),f=Symbol("lastReject"),u=Symbol("error"),d=Symbol("ended"),c=Symbol("lastPromise"),l=Symbol("handlePromise"),h=Symbol("stream");function p(e,t){return{value:e,done:t}}function b(e){var t=e[s];if(null!==t){var r=e[h].read();null!==r&&(e[c]=null,e[s]=null,e[f]=null,t(p(r,!1)))}}function g(e){i.nextTick(b,e)}function y(e,t){return function(r,n){e.then(function(){if(t[d])return void r(p(void 0,!0));t[l](r,n)},n)}}var m=Object.getPrototypeOf(function(){}),v=Object.setPrototypeOf((n(o={get stream(){return this[h]},next:function(){var e,t=this,r=this[u];if(null!==r)return Promise.reject(r);if(this[d])return Promise.resolve(p(void 0,!0));if(this[h].destroyed)return new Promise(function(e,r){i.nextTick(function(){t[u]?r(t[u]):e(p(void 0,!0))})});var n=this[c];if(n)e=new Promise(y(n,this));else{var o=this[h].read();if(null!==o)return Promise.resolve(p(o,!1));e=new Promise(this[l])}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)return void r(e);t(p(void 0,!0))})})}),o),m);e.exports=function(e){var t,r=Object.create(v,(n(t={},h,{value:e,writable:!0}),n(t,s,{value:null,writable:!0}),n(t,f,{value:null,writable:!0}),n(t,u,{value:null,writable:!0}),n(t,d,{value:e._readableState.endEmitted,writable:!0}),n(t,l,{value:function(e,t){var n=r[h].read();n?(r[c]=null,r[s]=null,r[f]=null,e(p(n,!1))):(r[s]=e,r[f]=t)},writable:!0}),t));return r[c]=null,a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[f];null!==t&&(r[c]=null,r[s]=null,r[f]=null,t(e)),r[u]=e;return}var n=r[s];null!==n&&(r[c]=null,r[s]=null,r[f]=null,n(p(void 0,!0))),r[d]=!0}
9),e.on("readable",g.bind(null,r)),r}},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 a(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}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)}}function f(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),e}var u=r(300).Buffer,d=r(837).inspect,c=d&&d.custom||"inspect";function l(e,t,r){u.prototype.copy.call(e,t,r)}e.exports=function(){function e(){a(this,e),this.head=null,this.tail=null,this.length=0}return f(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 u.alloc(0);for(var t=u.allocUnsafe(e>>>0),r=this.head,n=0;r;)l(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=u.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 d(this,i({},t,{depth:0,customInspect:!1}))}}]),e}()},25:function(e){"use strict";function t(e,t){n(e,t),r(e)}function r(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function n(e,t){e.emit("error",t)}e.exports={destroy:function(e,o){var a=this,s=this._readableState&&this._readableState.destroyed,f=this._writableState&&this._writableState.destroyed;return s||f?o?o(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,i.nextTick(n,this,e)):i.nextTick(n,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!o&&e?a._writableState?a._writableState.errorEmitted?i.nextTick(r,a):(a._writableState.errorEmitted=!0,i.nextTick(t,a,e)):i.nextTick(t,a,e):o?(i.nextTick(r,a),o(e)):i.nextTick(r,a)})),this},undestroy:function(){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)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},698:function(e,t,r){"use strict";
9var 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 a(e){return e.setHeader&&"function"==typeof e.abort}function s(e,t,r){if("function"==typeof t)return s(e,null,t);t||(t={}),r=i(r||o);var f=t.readable||!1!==t.readable&&e.readable,u=t.writable||!1!==t.writable&&e.writable,d=function(){e.writable||l()},c=e._writableState&&e._writableState.finished,l=function(){u=!1,c=!0,f||r.call(e)},h=e._readableState&&e._readableState.endEmitted,p=function(){f=!1,h=!0,u||r.call(e)},b=function(t){r.call(e,t)},g=function(){var t;return f&&!h?(e._readableState&&e._readableState.ended||(t=new n),r.call(e,t)):u&&!c?(e._writableState&&e._writableState.ended||(t=new n),r.call(e,t)):void 0},y=function(){e.req.on("finish",l)};return a(e)?(e.on("complete",l),e.on("abort",g),e.req?y():e.on("request",y)):u&&!e._writableState&&(e.on("end",d),e.on("close",d)),e.on("end",p),e.on("finish",l),!1!==t.error&&e.on("error",b),e.on("close",g),function(){e.removeListener("complete",l),e.removeListener("abort",g),e.removeListener("request",y),e.req&&e.req.removeListener("finish",l),e.removeListener("end",d),e.removeListener("close",d),e.removeListener("finish",l),e.removeListener("end",p),e.removeListener("error",b),e.removeListener("close",g)}}e.exports=s},727:function(e,t,r){"use strict";function n(e,t,r,n,i,o,a){try{var s=e[o](a),f=s.value}catch(e){r(e);return}s.done?t(f):Promise.resolve(f).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise(function(i,o){var a=e.apply(t,r);function s(e){n(a,i,o,s,f,"next",e)}function f(e){n(a,i,o,s,f,"throw",e)}s(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 a(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){s(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 s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var f=r(646).q.ERR_INVALID_ARG_TYPE;e.exports=function(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 f("iterable",["Iterable"],t);var n,o=new e(a({objectMode:!0},r)),s=!1;function u(){return d.apply(this,arguments)}function d(){return(d=i(function*(){try{var e=yield n.next(),t=e.value;e.done?o.push(null):o.push((yield t))?u():s=!1}catch(e){o.destroy(e)}})).apply(this,arguments)}return o._read=function(){s||(s=!0,u())},o}},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,a=o.ERR_MISSING_ARGS,s=o.ERR_STREAM_DESTROYED;function f(e){if(e)throw e}function u(e){return e.setHeader&&"function"==typeof e.abort}function d(e,t,o,a){a=n(a);var f=!1;e.on("close",function(){f=!0}),void 0===i&&(i=r(698)),i(e,{readable:t,writable:o},function(e){if(e)return a(e);f=!0,a()});var d=!1;return function(t){if(!f&&!d){if(d=!0,u(e))return e.abort();if("function"==typeof e.destroy)return e.destroy();a(t||new s("pipe"))}}}function c(e){e()}function l(e,t){return e.pipe(t)}function h(e){return e.length&&"function"==typeof e[e.length-1]?e.pop():f}e.exports=function(){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 a("streams");var o=r.map(function(t,n){var a=n<r.length-1;return d(t,a,n>0,function(t){e||(e=t),t&&o.forEach(c),a||(o.forEach(c),i(e))})});return r.reduce(l)}},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}e.exports={getHighWaterMark:function(e,t,r,o){var a=i(t,o,r);
vendor: 5,665 bytes, line 9
9if(null!=a){if(!(isFinite(a)&&Math.floor(a)===a)||a<0)throw new n(o?r:"highWaterMark",a);return Math.floor(a)}return e.objectMode?16:16384}}},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 a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.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},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.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",s),r.on("close",f));var a=!1;function s(){a||(a=!0,e.end())}function f(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(d(),0===n.listenerCount(this,"error"))throw e}function d(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",f),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",d),r.removeListener("close",d),e.removeListener("close",d)}return r.on("error",u),e.on("error",u),r.on("end",d),r.on("close",d),e.on("close",d),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";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=o(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(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=y,t=3;break;default:this.write=m,this.end=v;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function f(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function u(e,t,r){var n=t.length-1;if(n<r)return 0;var i=f(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=f(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=f(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}function d(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=d(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 l(e,t){var r=u(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 y(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function m(e){return e.toString(this.encoding)}function v(e){return e&&e.length?this.write(e):""}t.s=s,s.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||""},s.prototype.end=h,s.prototype.text=l,s.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){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}
9e.exports=function e(e,r){if(t("noDeprecation"))return e;var n=!1;return function(){if(!n){if(t("throwDeprecation"))throw Error(r);t("traceDeprecation")?console.trace(r):console.warn(r),n=!0}return e.apply(this,arguments)}}},300:function(e){"use strict";e.exports=r(82909)},361:function(e){"use strict";e.exports=r(69319)},781:function(e){"use strict";e.exports=r(69319).EventEmitter},837:function(e){"use strict";e.exports=r(30237)}},o={};function a(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,a),i=!1}finally{i&&delete o[e]}return n.exports}a.ab=n+"/",e.exports=a(173)}()},33069:(e,t,r)=>{"use strict";var n,i=r(66530),o=r(10221);try{n=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!n&&o&&o(Object.prototype,"__proto__"),s=Object,f=s.getPrototypeOf;e.exports=a&&"function"==typeof a.get?i([a.get]):"function"==typeof f&&function(e){return f(null==e?e:s(e))}},34092:(e,t,r)=>{"use strict";let n=r(99742),i=r(82909),{isReadable:o,isWritable:a,isIterable:s,isNodeStream:f,isReadableNodeStream:u,isWritableNodeStream:d,isDuplexNodeStream:c,isReadableStream:l,isWritableStream:h}=r(47885),p=r(97212),{AbortError:b,codes:{ERR_INVALID_ARG_TYPE:g,ERR_INVALID_RETURN_VALUE:y}}=r(83207),{destroyer:m}=r(67090),v=r(78794),w=r(62732),_=r(95084),{createDeferredPromise:S}=r(16816),x=r(42500),A=globalThis.Blob||i.Blob,M=void 0!==A?function(e){return e instanceof A}:function(e){return!1},E=globalThis.AbortController||r(24230).AbortController,{FunctionPrototypeCall:R}=r(21328);class O 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 I(e){let{promise:t,resolve:r}=S(),i=new E,o=i.signal;return{value:e(async function*(){for(;;){let e=t;t=null;let{chunk:i,done:a,cb:s}=await e;if(n.nextTick(s),a)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 P(e){let t,r,n,i,s,f=e.readable&&"function"!=typeof e.readable.read?w.wrap(e.readable):e.readable,u=e.writable,d=!!o(f),c=!!a(u);function l(e){let t=i;i=null,t?t(e):e&&s.destroy(e)}return s=new O({readableObjectMode:!!(null!=f&&f.readableObjectMode),writableObjectMode:!!(null!=u&&u.writableObjectMode),readable:d,writable:c}),c&&(p(u,e=>{c=!1,e&&m(f,e),l(e)}),s._write=function(e,r,n){u.write(e,r)?n():t=n},s._final=function(e){u.end(),r=e},u.on("drain",function(){if(t){let e=t;t=null,e()}}),u.on("finish",function(){if(r){let e=r;r=null,e()}})),d&&(p(f,e=>{d=!1,e&&m(f,e),l(e)}),f.on("readable",function(){if(n){let e=n;n=null,e()}}),f.on("end",function(){s.push(null)}),s._read=function(){for(;;){let e=f.read();if(null===e){n=s._read;return}if(!s.push(e))return}}),s._destroy=function(e,o){e||null===i||(e=new b),n=null,t=null,r=null,null===i?o(e):(i=o,m(u,e),m(f,e))},s}e.exports=function e(t,r){if(c(t))return t;if(u(t))return P({readable:t});if(d(t))return P({writable:t});if(f(t))return P({writable:!1,readable:!1});if(l(t))return P({readable:w.fromWeb(t)});if(h(t))return P({writable:_.fromWeb(t)});if("function"==typeof t){let{value:e,write:i,final:o,destroy:a}=I(t);if(s(e))return x(O,e,{objectMode:!0,write:i,final:o,destroy:a});let f=null==e?void 0:e.then;if("function"==typeof f){let t,r=R(f,e,e=>{if(null!=e)throw new y("nully","body",e)},e=>{m(t,e)});return t=new O({objectMode:!0,readable:!1,write:i,final(e){o(async()=>{try{await r,n.nextTick(e,null)}catch(t){n.nextTick(e,t)}})},destroy:a})}throw new y("Iterable, AsyncIterable or AsyncFunction",r,e)}if(M(t))return e(t.arrayBuffer());if(s(t))return x(O,t,{objectMode:!0,writable:!1});if(l(null==t?void 0:t.readable)&&h(null==t?void 0:t.writable))return O.fromWeb(t);if("object"==typeof(null==t?void 0:t.writable)||"object"==typeof(null==t?void 0:t.readable))return P({readable:null!=t&&t.readable?u(null==t?void 0:t.readable)?null==t?void 0:t.readable:e(t.readable):void 0,writable:null!=t&&t.writable?d(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 R(i,t,t=>{null!=t&&e.push(t),e.push(null)},t=>{m(e,t)}),e=new O({objectMode:!0,writable:!1,read(){}})}throw new g(r,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],t)}},34243:(e,t)=>
9{"use strict";var r=t;function n(e){return 1===e.length?"0"+e:e}function i(e){for(var t="",r=0;r<e.length;r++)t+=n(e[r].toString(16));return t}r.toArray=function(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,a=255&i;o?r.push(o,a):r.push(a)}return r},r.zero2=n,r.toHex=i,r.encode=function(e,t){return"hex"===t?i(e):e}},34349: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,a=o[i];if(!e(t[a],r[a]))return!1}return!0}return t!=t&&r!=r}},34816:(e,t,r)=>{"use strict";var n=r(86558),i=r(61664),o=r(33069);e.exports=n?function(e){return n(e)}:i?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw TypeError("getProto: not an object");return i(e)}:o?function(e){return o(e)}:null},35302:(e,t,r)=>{"use strict";var n=r(48744)(),i=r(73442)("Object.prototype.toString"),o=function(e){return(!n||!e||"object"!=typeof e||!(Symbol.toStringTag in e))&&"[object Arguments]"===i(e)},a=function(e){return!!o(e)||null!==e&&"object"==typeof e&&"length"in e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"callee"in e&&"[object Function]"===i(e.callee)},s=function(){return o(arguments)}();o.isLegacyArguments=a,e.exports=s?o:a},35943: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];
9return"function"==typeof n&&n!==i&&Object.keys(i).forEach(function(e){n[e]=i[e]}),n}}},37384:(e,t,r)=>{"use strict";let{ObjectSetPrototypeOf:n,Symbol:i}=r(21328);e.exports=u;let{ERR_METHOD_NOT_IMPLEMENTED:o}=r(83207).codes,a=r(78794),{getHighWaterMark:s}=r(50677);n(u.prototype,a.prototype),n(u,a);let f=i("kCallback");function u(e){if(!(this instanceof u))return new u(e);let t=e?s(this,e,"readableHighWaterMark",!0):null;0===t&&(e={...e,highWaterMark:null,readableHighWaterMark:t,writableHighWaterMark:e.writableHighWaterMark||0}),a.call(this,e),this._readableState.sync=!1,this[f]=null,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",c)}function d(e){"function"!=typeof this._flush||this.destroyed?(this.push(null),e&&e()):this._flush((t,r)=>{if(t)return void(e?e(t):this.destroy(t));null!=r&&this.push(r),this.push(null),e&&e()})}function c(){this._final!==d&&d.call(this)}u.prototype._final=d,u.prototype._transform=function(e,t,r){throw new o("_transform()")},u.prototype._write=function(e,t,r){let n=this._readableState,i=this._writableState,o=n.length;this._transform(e,t,(e,t)=>{if(e)return void r(e);null!=t&&this.push(t),i.ended||o===n.length||n.length<n.highWaterMark?r():this[f]=r})},u.prototype._read=function(){if(this[f]){let e=this[f];this[f]=null,e()}}},37881:(e,t,r)=>{"use strict";var n=r(49364),i=r(11540);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[0xcbbb9d5d,0xc1059ed8,0x629a292a,0x367cd507,0x9159015a,0x3070dd17,0x152fecd8,0xf70e5939,0x67332667,0xffc00b31,0x8eb44a87,0x68581511,0xdb0c2e0d,0x64f98fa7,0x47b5481d,0xbefa4fa4]}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")}},38870: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]}
9),forEach(globals,function(t){e[t]&&(r[t]=e[t])});var o=Object_keys(r),a=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),a},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__}()},40918:(e,t,r)=>{var n=t;n.utils=r(49364),n.common=r(48946),n.sha=r(50275),n.ripemd=r(78120),n.hmac=r(2288),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},41760:e=>{"use strict";e.exports=Math.max},42436:(e,t,r)=>{"use strict";var n=r(23764),i=r(93570),o=r(31183),a=r(95987);function s(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 f(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(s,o),e.exports=s,s.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(f,o.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(a.toArray(e,t),1)},s.prototype.point=function(e,t){return new f(this,e,t)},s.prototype.pointFromJSON=function(e){return f.fromJSON(this,e)},f.prototype.precompute=function(){},f.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},f.fromJSON=function(e,t){return new f(e,t[0],t[1]||e.one)},f.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},f.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},f.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)},f.prototype.add=function(){throw Error("Not supported on Montgomery curve")},f.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),a=i.redMul(n),s=t.z.redMul(o.redAdd(a).redSqr()),f=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,f)},f.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 a=o.length-1;a>=0;a--)0===o[a]?(r=r.diffAdd(n,i),n=n.dbl()):(n=r.diffAdd(n,i),r=r.dbl());return n},f.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},f.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},f.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},f.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},f.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},42500:(e,t,r)=>{"use strict";let n=r(99742),{PromisePrototypeThen:i,SymbolAsyncIterator:o,SymbolIterator:a}=r(21328),{Buffer:s}=r(82909),{ERR_INVALID_ARG_TYPE:f,ERR_STREAM_NULL_VALUES:u}=r(83207).codes;e.exports=function(e,t,r){let d,c;if("string"==typeof t||t instanceof s)return new e({objectMode:!0,...r,read(){this.push(t),this.push(null)}});if(t&&t[o])c=!0,d=t[o]();else if(t&&t[a])c=!1,d=t[a]();else throw new f("iterable",["Iterable"],t);let l=new e({objectMode:!0,highWaterMark:1,...r}),h=!1;async function p(e){let t=null!=e,r="function"==typeof d.throw;if(t&&r){let{value:t,done:r}=await d.throw(e);if(await t,r)return}if("function"==typeof d.return){let{value:e}=await d.return();await e}}async function b(){for(;;){try{let{value:e,done:t}=c?await d.next():d.next();if(t)l.push(null);else{let t=e&&"function"==typeof e.then?await e:e;if(null===t)throw h=!1,new u;if(l.push(t))continue;h=!1}}
9catch(e){l.destroy(e)}break}}return l._read=function(){h||(h=!0,b())},l._destroy=function(e,t){i(p(e),()=>n.nextTick(t,e),r=>n.nextTick(t,r||e))},l}},42504:e=>{"use strict";e.exports=Math.pow},42523:(e,t,r)=>{"use strict";let{ArrayPrototypePop:n,Promise:i}=r(21328),{isIterable:o,isNodeStream:a,isWebStream:s}=r(47885),{pipelineImpl:f}=r(72802),{finished:u}=r(97212);r(3096),e.exports={finished:u,pipeline:function(...e){return new i((t,r)=>{let i,u,d=e[e.length-1];if(d&&"object"==typeof d&&!a(d)&&!o(d)&&!s(d)){let t=n(e);i=t.signal,u=t.end}f(e,(e,n)=>{e?r(e):t(n)},{signal:i,end:u})})}}},44470:(e,t,r)=>{"use strict";var n=r(35302),i=r(96512),o=r(31787),a=r(53706);function s(e){return e.call.bind(e)}var f="undefined"!=typeof BigInt,u="undefined"!=typeof Symbol,d=s(Object.prototype.toString),c=s(Number.prototype.valueOf),l=s(String.prototype.valueOf),h=s(Boolean.prototype.valueOf);if(f)var p=s(BigInt.prototype.valueOf);if(u)var b=s(Symbol.prototype.valueOf);function g(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function y(e){return"[object Map]"===d(e)}function m(e){return"[object Set]"===d(e)}function v(e){return"[object WeakMap]"===d(e)}function w(e){return"[object WeakSet]"===d(e)}function _(e){return"[object ArrayBuffer]"===d(e)}function S(e){return"undefined"!=typeof ArrayBuffer&&(_.working?_(e):e instanceof ArrayBuffer)}function x(e){return"[object DataView]"===d(e)}function A(e){return"undefined"!=typeof DataView&&(x.working?x(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=i,t.isTypedArray=a,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||A(e)},t.isUint8Array=function(e){return"Uint8Array"===o(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},t.isUint16Array=function(e){return"Uint16Array"===o(e)},t.isUint32Array=function(e){return"Uint32Array"===o(e)},t.isInt8Array=function(e){return"Int8Array"===o(e)},t.isInt16Array=function(e){return"Int16Array"===o(e)},t.isInt32Array=function(e){return"Int32Array"===o(e)},t.isFloat32Array=function(e){return"Float32Array"===o(e)},t.isFloat64Array=function(e){return"Float64Array"===o(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===o(e)},y.working="undefined"!=typeof Map&&y(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(y.working?y(e):e instanceof Map)},m.working="undefined"!=typeof Set&&m(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(m.working?m(e):e instanceof Set)},v.working="undefined"!=typeof WeakMap&&v(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(v.working?v(e):e instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),t.isWeakSet=function(e){return w(e)},_.working="undefined"!=typeof ArrayBuffer&&_(new ArrayBuffer),t.isArrayBuffer=S,x.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&x(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=A;var M="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function E(e){return"[object SharedArrayBuffer]"===d(e)}function R(e){return void 0!==M&&(void 0===E.working&&(E.working=E(new M)),E.working?E(e):e instanceof M)}function O(e){return g(e,c)}function I(e){return g(e,l)}function P(e){return g(e,h)}function k(e){return f&&g(e,p)}function T(e){return u&&g(e,b)}t.isSharedArrayBuffer=R,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===d(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===d(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===d(e)},t.isGeneratorObject=function(e){return"[object Generator]"===d(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===d(e)},t.isNumberObject=O,t.isStringObject=I,t.isBooleanObject=P,t.isBigIntObject=k,t.isSymbolObject=T,t.isBoxedPrimitive=function(e){return O(e)||I(e)||P(e)||k(e)||T(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(S(e)||R(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw Error(e+" is not supported in userland")}})})},45525:(e,t,r)=>{"use strict";
vendor: 1,950 bytes, line 9
9var n,i=r(52468),o=r(29351),a=r(5391),s=r(55502),f=r(72130),u=r(71742),d=r(65865),c=r(73305),l=r(2002),h=r(2496),p=r(41760),b=r(54366),g=r(42504),y=r(87962),m=r(80611),v=Function,w=function(e){try{return v('"use strict"; return ('+e+").constructor;")()}catch(e){}},_=r(10221),S=r(98857),x=function(){throw new d},A=_?function(){try{return arguments.callee,x}catch(e){try{return _(arguments,"callee").get}catch(e){return x}}}():x,M=r(95295)(),E=r(34816),R=r(61664),O=r(86558),I=r(71938),P=r(66958),k={},T="undefined"!=typeof Uint8Array&&E?E(Uint8Array):n,N={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":M&&E?E([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":k,"%AsyncGenerator%":k,"%AsyncGeneratorFunction%":k,"%AsyncIteratorPrototype%":k,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?n:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":k,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
9IteratorPrototype%":M&&E?E(E([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&M&&E?E(new Map()[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":_,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":s,"%ReferenceError%":f,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&M&&E?E(new Set()[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":M&&E?E(""[Symbol.iterator]()):n,"%Symbol%":M?Symbol:n,"%SyntaxError%":u,"%ThrowTypeError%":A,"%TypedArray%":T,"%TypeError%":d,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":c,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":P,"%Function.prototype.apply%":I,"%Object.defineProperty%":S,"%Object.getPrototypeOf%":R,"%Math.abs%":l,"%Math.floor%":h,"%Math.max%":p,"%Math.min%":b,"%Math.pow%":g,"%Math.round%":y,"%Math.sign%":m,"%Reflect.getPrototypeOf%":O};if(E)try{null.error}catch(e){var j=E(E(e));N["%Error.prototype%"]=j}var C=function e(t){var r;if("%AsyncFunction%"===t)r=w("async function () {}");else if("%GeneratorFunction%"===t)r=w("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=w("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&E&&(r=E(i.prototype))}return N[t]=r,r},B={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},L=r(28419),F=r(71355),D=L.call(P,Array.prototype.concat),q=L.call(I,Array.prototype.splice),U=L.call(P,String.prototype.replace),z=L.call(P,String.prototype.slice),W=L.call(P,RegExp.prototype.exec),$=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,H=/\\(\\)?/g,V=function(e){var t=z(e,0,1),r=z(e,-1);if("%"===t&&"%"!==r)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new u("invalid intrinsic syntax, expected opening `%`");var n=[];return U(e,$,function(e,t,r,i){n[n.length]=r?U(i,H,"$1"):t||e}),n},G=function(e,t){var r,n=e;if(F(B,n)&&(n="%"+(r=B[n])[0]+"%"),F(N,n)){var i=N[n];if(i===k&&(i=C(n)),void 0===i&&!t)throw new d("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new u("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new d("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new d('"allowMissing" argument must be a boolean');if(null===W(/^%?[^%]*%?$/,e))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=V(e),n=r.length>0?r[0]:"",i=G("%"+n+"%",t),o=i.name,a=i.value,s=!1,f=i.alias;f&&(n=f[0],q(r,D([0,1],f)));for(var c=1,l=!0;c<r.length;c+=1){var h=r[c],p=z(h,0,1),b=z(h,-1);if(('"'===p||"'"===p||"`"===p||'"'===b||"'"===b||"`"===b)&&p!==b)throw new u("property names with quotes must have matching quotes");if("constructor"!==h&&l||(s=!0),n+="."+h,F(N,o="%"+n+"%"))a=N[o];
9else if(null!=a){if(!(h in a)){if(!t)throw new d("base intrinsic for "+e+" exists, but the property is not available.");return}if(_&&c+1>=r.length){var g=_(a,h);a=(l=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[h]}else l=F(a,h),a=a[h];l&&!s&&(N[o]=a)}}return a}},45834:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serializeError=t.isValidCode=t.getMessageFromCode=t.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;let n=r(66809),i=r(50943),o=n.errorCodes.rpc.internal,a="Unspecified error message. This is a bug, please report it.",s={code:o,message:f(o)};function f(e,r=a){if(Number.isInteger(e)){let r=e.toString();if(l(n.errorValues,r))return n.errorValues[r].message;if(d(e))return t.JSON_RPC_SERVER_ERROR_MESSAGE}return r}function u(e){if(!Number.isInteger(e))return!1;let t=e.toString();return!!(n.errorValues[t]||d(e))}function d(e){return e>=-32099&&e<=-32e3}function c(e){return e&&"object"==typeof e&&!Array.isArray(e)?Object.assign({},e):e}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.",t.getMessageFromCode=f,t.isValidCode=u,t.serializeError=function(e,{fallbackError:t=s,shouldIncludeStack:r=!1}={}){var n,o;if(!t||!Number.isInteger(t.code)||"string"!=typeof t.message)throw Error("Must provide fallback error with integer number code and string message.");if(e instanceof i.EthereumRpcError)return e.serialize();let a={};if(e&&"object"==typeof e&&!Array.isArray(e)&&l(e,"code")&&u(e.code)){let t=e;a.code=t.code,t.message&&"string"==typeof t.message?(a.message=t.message,l(t,"data")&&(a.data=t.data)):(a.message=f(a.code),a.data={originalError:c(e)})}else{a.code=t.code;let r=null==(n=e)?void 0:n.message;a.message=r&&"string"==typeof r?r:t.message,a.data={originalError:c(e)}}let d=null==(o=e)?void 0:o.stack;return r&&e&&d&&"string"==typeof d&&(a.stack=d),a}},47885:(e,t,r)=>{"use strict";let{SymbolAsyncIterator:n,SymbolIterator:i,SymbolFor:o}=r(21328),a=o("nodejs.stream.destroyed"),s=o("nodejs.stream.errored"),f=o("nodejs.stream.readable"),u=o("nodejs.stream.writable"),d=o("nodejs.stream.disturbed");function c(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.readable)!==!1)&&(!e._writableState||e._readableState))}function l(e){var t;return!!(e&&"function"==typeof e.write&&"function"==typeof e.on&&(!e._readableState||(null==(t=e._writableState)?void 0:t.writable)!==!1))}function h(e){return!!(e&&"function"==typeof e.pipe&&e._readableState&&"function"==typeof e.on&&"function"==typeof e.write)}function p(e){return e&&(e._readableState||e._writableState||"function"==typeof e.write&&"function"==typeof e.on||"function"==typeof e.pipe&&"function"==typeof e.on)}function b(e){return!!(e&&!p(e)&&"function"==typeof e.pipeThrough&&"function"==typeof e.getReader&&"function"==typeof e.cancel)}function g(e){return!!(e&&!p(e)&&"function"==typeof e.getWriter&&"function"==typeof e.abort)}function y(e){return!!(e&&!p(e)&&"object"==typeof e.readable&&"object"==typeof e.writable)}function m(e){return b(e)||g(e)||y(e)}function v(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 w(e){if(!p(e))return null;let t=e._writableState,r=e._readableState,n=t||r;return!!(e.destroyed||e[a]||null!=n&&n.destroyed)}function _(e){if(!l(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 S(e,t){if(!l(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 x(e){if(!c(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 A(e,t){if(!c(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[f]?e[f]:"boolean"!=typeof(null==e?void 0:e.readable)?null:!w(e)&&c(e)&&e.readable&&!A(e)}function E(e){return e&&null!=e[u]?e[u]:"boolean"!=typeof(null==e?void 0:e.writable)?null:!w(e)&&l(e)&&e.writable&&!_(e)}function R(e,t){return p(e)?!!w(e)||!((null==t?void 0:t.readable)!==!1&&M(e)||(null==t?void 0:t.writable)!==!1&&E(e)):null}function O(e){var t,r;return p(e)?e.writableErrored?e.writableErrored:null!=(t=null==(r=e._writableState)?void 0:r.errored)?t:null:null}function I(e){var t,r;return p(e)?e.readableErrored?e.readableErrored:null!=(t=null==(r=e._readableState)?void 0:r.errored)?t:null:null}function P(e){if(!p(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&&k(e)?e._closed:null}function k(e){return"boolean"==typeof e._closed&&"boolean"==typeof e._defaultKeepAlive&&"boolean"==typeof e._removedConnection&&"boolean"==typeof e._removedContLen}function T(e){return"boolean"==typeof e._sent100&&k(e)}function N(e){var t;return"boolean"==typeof e._consuming&&"boolean"==typeof e._dumped&&(null==(t=e.req)?void 0:t.upgradeOrConnect)===void 0}function j(e){if(!p(e))return null;let t=e._writableState,r=e._readableState,n=t||r;return!n&&T(e)||!!(n&&n.autoDestroy&&n.emitClose&&!1===n.closed)}e.exports={isDestroyed:w,kIsDestroyed:a,isDisturbed:function(e){var t;return!!(e&&(null!=(t=e[d])?t:e.readableDidRead||e.readableAborted))},kIsDisturbed:d,isErrored:function(e){var t,r,n,i,o,a,f,u,d,c;return!!(e&&(null!=(t=null!=(r=null!=(n=null!=(i=null!=(o=null!=(a=e[s])?a:e.readableErrored)?o:e.writableErrored)?i:null==(f=e._readableState)?void 0:f.errorEmitted)?n:null==(u=e._writableState)?void 0:u.errorEmitted)?r:null==(d=e._readableState)?void 0:d.errored)?t:null==(c=e._writableState)?void 0:c.errored))},kIsErrored:s,isReadable:M,kIsReadable:f,kIsClosedPromise:o("nodejs.webstream.isClosedPromise"),kControllerErrorFunction:o("nodejs.webstream.controllerErrorFunction"),kIsWritable:u,isClosed:P,isDuplexNodeStream
9:h,isFinished:R,isIterable:v,isReadableNodeStream:c,isReadableStream:b,isReadableEnded:x,isReadableFinished:A,isReadableErrored:I,isNodeStream:p,isWebStream:m,isWritable:E,isWritableNodeStream:l,isWritableStream:g,isWritableEnded:_,isWritableFinished:S,isWritableErrored:O,isServerRequest:N,isServerResponse:T,willEmitClose:j,isTransformStream:y}},48744:(e,t,r)=>{"use strict";var n=r(77785);e.exports=function(){return n()&&!!Symbol.toStringTag}},48946:(e,t,r)=>{"use strict";var n=r(49364),i=r(29005);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}t.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}},49364:(e,t,r)=>{"use strict";var n=r(29005);function i(e,t){return(64512&e.charCodeAt(t))==55296&&!(t<0)&&!(t+1>=e.length)&&(64512&e.charCodeAt(t+1))==56320}function o(e){return(e>>>24|e>>>8&65280|e<<8&0xff0000|(255&e)<<24)>>>0}function a(e){return 1===e.length?"0"+e:e}function s(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;else if(2===e.length)return"000000"+e;else if(1===e.length)return"0000000"+e;else return e}t.inherits=r(93570),t.toArray=function(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),o=0;o<e.length;o+=2)r.push(parseInt(e[o]+e[o+1],16))}else for(var n=0,o=0;o<e.length;o++){var a=e.charCodeAt(o);a<128?r[n++]=a:(a<2048?r[n++]=a>>6|192:(i(e,o)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++o)),r[n++]=a>>18|240,r[n++]=a>>12&63|128):r[n++]=a>>12|224,r[n++]=a>>6&63|128),r[n++]=63&a|128)}else for(o=0;o<e.length;o++)r[o]=0|e[o];return r},t.toHex=function(e){for(var t="",r=0;r<e.length;r++)t+=a(e[r].toString(16));return t},t.htonl=o,t.toHex32=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e[n];"little"===t&&(i=o(i)),r+=s(i.toString(16))}return r},t.zero2=a,t.zero8=s,t.join32=function(e,t,r,i){var o,a=r-t;n(a%4==0);for(var s=Array(a/4),f=0,u=t;f<s.length;f++,u+=4)o="big"===i?e[u]<<24|e[u+1]<<16|e[u+2]<<8|e[u+3]:e[u+3]<<24|e[u+2]<<16|e[u+1]<<8|e[u],s[f]=o>>>0;return s},t.split32=function(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},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=+(o<n)+r+i;e[t]=a>>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,n){return+(t+n>>>0<t)+e+r>>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,o,a,s){var f,u=t;return e+r+i+a+(f=0+ +((u=u+n>>>0)<t)+ +((u=u+o>>>0)<o)+ +((u=u+s>>>0)<s))>>>0},t.sum64_4_lo=function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},t.sum64_5_hi=function(e,t,r,n,i,o,a,s,f,u){var d,c=t;return e+r+i+a+f+(d=0+ +((c=c+n>>>0)<t)+ +((c=c+o>>>0)<o)+ +((c=c+s>>>0)<s)+ +((c=c+u>>>0)<u))>>>0},t.sum64_5_lo=function(e,t,r,n,i,o,a,s,f,u){return t+n+o+s+u>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>
9>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},49606:(e,t,r)=>{"use strict";var n=t;n.base=r(31183),n.short=r(70428),n.mont=r(42436),n.edwards=r(99782)},49620:(e,t,r)=>{"use strict";var n=r(98857),i=r(71742),o=r(65865),a=r(10221);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new o("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,f=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,d=arguments.length>6&&arguments[6],c=!!a&&a(e,t);if(n)n(e,t,{configurable:null===u&&c?c.configurable:!u,enumerable:null===s&&c?c.enumerable:!s,value:r,writable:null===f&&c?c.writable:!f});else if(!d&&(s||f||u))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");else e[t]=r}},50207:(e,t,r)=>{e.exports=r(20866).default,e.exports.default=e.exports},50275:(e,t,r)=>{"use strict";t.sha1=r(15355),t.sha224=r(64208),t.sha256=r(81981),t.sha384=r(37881),t.sha512=r(11540)},50677:(e,t,r)=>{"use strict";let{MathFloor:n,NumberIsInteger:i}=r(21328),{validateInteger:o}=r(6533),{ERR_INVALID_ARG_VALUE:a}=r(83207).codes,s=16384,f=16;function u(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}function d(e){return e?f:s}e.exports={getHighWaterMark:function(e,t,r,o){let s=u(t,o,r);if(null!=s){if(!i(s)||s<0)throw new a(o?`options.${r}`:"options.highWaterMark",s);return n(s)}return d(e.objectMode)},getDefaultHighWaterMark:d,setDefaultHighWaterMark:function(e,t){o(t,"value",0),e?f=t:s=t}}},50943:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EthereumProviderError=t.EthereumRpcError=void 0;let n=r(84971);class i 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 nonempty 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),this.stack&&(e.stack=this.stack),e}toString(){return n.default(this.serialize(),s,2)}}t.EthereumRpcError=i;class o extends i{constructor(e,t,r){if(!a(e))throw Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,r)}}function a(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}function s(e,t){if("[Circular]"!==t)return t}t.EthereumProviderError=o},51647:(e,t,r)=>{"use strict";var n;n={value:!0},n=n=n=t.no=t.Ls=n=void 0;let i=r(50943);Object.defineProperty(t,"no",{enumerable:!0,get:function(){return i.EthereumRpcError}}),n={enumerable:!0,get:function(){return i.EthereumProviderError}};let o=r(45834);n={enumerable:!0,get:function(){return o.serializeError}},n={enumerable:!0,get:function(){return o.getMessageFromCode}};let a=r(97590);Object.defineProperty(t,"Ls",{enumerable:!0,get:function(){return a.ethErrors}});let s=r(66809);n={enumerable:!0,get:function(){return s.errorCodes}}},52023:(e,t,r)=>{var n=r(35943);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)};return t.onceError=(e.name||"Function wrapped with `once`")+" 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})})},52468:e=>{"use strict";e.exports=Object},53655:(e,t,r)=>{var n=r(99742),i=r(52023),o=function(){},a=r.g.Bare?queueMicrotask:n.nextTick.bind(n),s=function(e){return e.setHeader&&"function"==typeof e.abort},f=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 n=e._writableState,d=e._readableState,c=t.readable||!1!==t.readable&&e.readable,l=t.writable||!1!==t.writable&&e.writable,h=!1,p=function(){e.writable||b()},b=function(){l=!1,c||r.call(e)},g=function(){c=!1,l||r.call(e)},y=function(t){r.call(e,t?Error("exited with error code: "+t):null)},m=function(t){r.call(e,t)},v=function(){a(w)},w=function(){if(!h&&(c&&!(d&&d.ended&&!d.destroyed)||l&&!(n&&n.ended&&!n.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",_)):l&&!n&&(e.on("end",p),e.on("close",p)),f(e)&&e.on("exit",y),e.on("end",g),e.on("finish",b),!1!==t.error&&e.on("error",m),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",y),e.removeListener("end",g),e.removeListener("error",m),e.removeListener("close",v)}};e.exports=u},53706:(e,t,r)=>{"use strict";var n=r(31787);e.exports=function(e){return!!n(e)}},54366:e=>{"use strict";e.exports=Math.min},55502:e=>{"use strict";e.exports=RangeError},56315:(e,t,r)=>{"use strict";let n,{SymbolDispose:i}=r(21328),{AbortError:o,codes:a}
9=r(83207),{isNodeStream:s,isWebStream:f,kControllerErrorFunction:u}=r(47885),d=r(97212),{ERR_INVALID_ARG_TYPE:c}=a,l=(e,t)=>{if("object"!=typeof e||!("aborted"in e))throw new c(t,"AbortSignal",e)};e.exports.addAbortSignal=function(t,r){if(l(t,"signal"),!s(r)&&!f(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 a=s(t)?()=>{t.destroy(new o(void 0,{cause:e.reason}))}:()=>{t[u](new o(void 0,{cause:e.reason}))};return e.aborted?a():d(t,(n=n||r(16816).addAbortListener)(e,a)[i]),t}},57005:(e,t,r)=>{"use strict";var n=r(23764),i=r(25487),o=r(95987),a=r(19558),s=r(77373),f=o.assert,u=r(57206),d=r(97711);function c(e){if(!(this instanceof c))return new c(e);"string"==typeof e&&(f(Object.prototype.hasOwnProperty.call(a,e),"Unknown curve "+e),e=a[e]),e instanceof a.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 u(this,e)},c.prototype.keyFromPrivate=function(e,t){return u.fromPrivate(this,e,t)},c.prototype.keyFromPublic=function(e,t){return u.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||s(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 a=new n(t.generate(r));if(!(a.cmp(o)>0))return a.iaddn(1),this.keyFromPrivate(a)}},c.prototype._truncateToN=function(e,t,r){if(n.isBN(e)||"number"==typeof e)i=(e=new n(e,16)).byteLength();else if("object"==typeof e)i=e.length,e=new n(e,16);else{var i,o=e.toString();i=o.length+1>>>1,e=new n(o,16)}"number"!=typeof r&&(r=8*i);var a=r-this.n.bitLength();return(a>0&&(e=e.ushrn(a)),!t&&e.cmp(this.n)>=0)?e.sub(this.n):e},c.prototype.sign=function(e,t,r,o){if("object"==typeof r&&(o=r,r=null),o||(o={}),"string"!=typeof e&&"number"!=typeof e&&!n.isBN(e)){f("object"==typeof e&&e&&"number"==typeof e.length,"Expected message to be an array-like, a hex string, or a BN instance"),f(e.length>>>0===e.length);for(var a=0;a<e.length;a++)f((255&e[a])===e[a])}t=this.keyFromPrivate(t,r),f(!(e=this._truncateToN(e,!1,o.msgBitLength)).isNeg(),"Can not sign a negative message");var s=this.n.byteLength(),u=t.getPrivate().toArray("be",s),c=e.toArray("be",s);f(new n(c).eq(e),"Can not sign message");for(var l=new i({hash:this.hash,entropy:u,nonce:c,pers:o.pers,persEnc:o.persEnc||"utf8"}),h=this.n.sub(new n(1)),p=0;;p++){var b=o.k?o.k(p):new n(l.generate(this.n.byteLength()));if(0>=(b=this._truncateToN(b,!0)).cmpn(1)||b.cmp(h)>=0)continue;var g=this.g.mul(b);if(!g.isInfinity()){var y=g.getX(),m=y.umod(this.n);if(0!==m.cmpn(0)){var v=b.invm(this.n).mul(m.mul(t.getPrivate()).iadd(e));if(0!==(v=v.umod(this.n)).cmpn(0)){var w=!!g.getY().isOdd()|2*(0!==y.cmp(m));return o.canonical&&v.cmp(this.nh)>0&&(v=this.n.sub(v),w^=1),new d({r:m,s:v,recoveryParam:w})}}}}},c.prototype.verify=function(e,t,r,n,i){i||(i={}),e=this._truncateToN(e,!1,i.msgBitLength),r=this.keyFromPublic(r,n);var o,a=(t=new d(t,"hex")).r,s=t.s;if(0>a.cmpn(1)||a.cmp(this.n)>=0||0>s.cmpn(1)||s.cmp(this.n)>=0)return!1;var f=s.invm(this.n),u=f.mul(e).umod(this.n),c=f.mul(a).umod(this.n);return this.curve._maxwellTrick?!(o=this.g.jmulAdd(u,r.getPublic(),c)).isInfinity()&&o.eqXToP(a):!(o=this.g.mulAdd(u,r.getPublic(),c)).isInfinity()&&0===o.getX().umod(this.n).cmp(a)},c.prototype.recoverPubKey=function(e,t,r,i){f((3&r)===r,"The recovery param is more than two bits"),t=new d(t,i);var o=this.n,a=new n(e),s=t.r,u=t.s,c=1&r,l=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw Error("Unable to find sencond key candinate");s=l?this.curve.pointFromX(s.add(this.curve.n),c):this.curve.pointFromX(s,c);var h=t.r.invm(o),p=o.sub(a).mul(h).umod(o),b=u.mul(h).umod(o);return this.g.mulAdd(p,s,b)},c.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new d(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")}},57206:(e,t,r)=>{"use strict";var n=r(23764),i=r(95987).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,r){return this.ec.verify(e,t,this,void 0,r)},o.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},59101:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},61373:function(e,t,r){var n,i;!function(o,a){"use strict";void 0===(i="function"==typeof(n=a)?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 a(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 s(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function f(n){return"debug"===n&&(n="log"),typeof console!==t&&("trace"===n&&r?s:void 0!==console[n]?a(console,n):void 0!==console.log?a(console,"log"):e)}function u(){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 d(e){return function(){typeof console!==t&&(u.call(this),this[e].apply(this,arguments))}}function c(e,t,r){return f(e)||d.apply(this,arguments)}function l(e,r){var a,s,f,d=this,l="loglevel";function h(e){var r=(n[e]||"silent").toUpperCase();if(typeof window!==t&&l){try{window.localStorage[l]=r;return}catch(e){}try{window.document.cookie=encodeURIComponent(l)+"="+r+";"}catch(e){}}}function p(){var e;if(typeof window!==t&&l){try{e=window.localStorage[l]}catch(e){}if(typeof e===t)try{var r=window.document.cookie,n=encodeURIComponent(l),i=r.indexOf(n+"=");-1!==i&&(e=/^([^;]+)/.exec(r.slice(i+n.length+1))[1])}catch(e){}return void 0===d.levels[e]&&(e=void 0),e}}function b(){if(typeof window!==t&&l){try{window.localStorage.removeItem(l)}catch(e){}try{window.document.cookie=encodeURIComponent(l)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}function g(e){var t=e;if("string"==typeof t&&void 0!==d.levels[t.toUpperCase()]&&(t=d.levels[t.toUpperCase()]),"number"==typeof t&&t>=0&&t<=d.levels.SILENT)return t;
9throw TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?l+=":"+e:"symbol"==typeof e&&(l=void 0),d.name=e,d.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},d.methodFactory=r||c,d.getLevel=function(){return null!=f?f:null!=s?s:a},d.setLevel=function(e,t){return f=g(e),!1!==t&&h(f),u.call(d)},d.setDefaultLevel=function(e){s=g(e),p()||d.setLevel(e,!1)},d.resetLevel=function(){f=null,b(),u.call(d)},d.enableAll=function(e){d.setLevel(d.levels.TRACE,e)},d.disableAll=function(e){d.setLevel(d.levels.SILENT,e)},d.rebuild=function(){if(o!==d&&(a=g(o.getLevel())),u.call(d),o===d)for(var e in i)i[e].rebuild()},a=g(o?o.getLevel():"WARN");var y=p();null!=y&&(f=g(y)),u.call(d)}(o=new l).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 l(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})},61584:(e,t,r)=>{"use strict";var n=r(23764),i=r(95987),o=i.assert,a=i.cachedProperty,s=i.parseBytes;function f(e,t){this.eddsa=e,"object"!=typeof t&&(t=s(t)),Array.isArray(t)&&(o(t.length===2*e.encodingLength,"Signature has invalid size"),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}a(f,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),a(f,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),a(f,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),a(f,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),f.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},f.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},e.exports=f},61664:(e,t,r)=>{"use strict";e.exports=r(52468).getPrototypeOf||null},62732:(e,t,r)=>{"use strict";let n,i=r(99742),{ArrayPrototypeIndexOf:o,NumberIsInteger:a,NumberIsNaN:s,NumberParseInt:f,ObjectDefineProperties:u,ObjectKeys:d,ObjectSetPrototypeOf:c,Promise:l,SafeSet:h,SymbolAsyncDispose:p,SymbolAsyncIterator:b,Symbol:g}=r(21328);e.exports=ef,ef.ReadableState=es;let{EventEmitter:y}=r(69319),{Stream:m,prependListener:v}=r(27239),{Buffer:w}=r(82909),{addAbortSignal:_}=r(56315),S=r(97212),x=r(16816).debuglog("stream",e=>{x=e}),A=r(12483),M=r(67090),{getHighWaterMark:E,getDefaultHighWaterMark:R}=r(50677),{aggregateTwoErrors:O,codes:{ERR_INVALID_ARG_TYPE:I,ERR_METHOD_NOT_IMPLEMENTED:P,ERR_OUT_OF_RANGE:k,ERR_STREAM_PUSH_AFTER_EOF:T,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:N},AbortError:j}=r(83207),{validateObject:C}=r(6533),B=g("kPaused"),{StringDecoder:L}=r(15773),F=r(42500);c(ef.prototype,m.prototype),c(ef,m);let D=()=>{},{errorOrDestroy:q}=M,U=1,z=2,W=4,$=8,H=16,V=32,G=64,K=128,J=256,Z=512,Y=1024,X=2048,Q=4096,ee=8192,et=16384,er=32768,en=65536,ei=131072,eo=262144;function ea(e){return{enumerable:!1,get(){return(this.state&e)!=0},set(t){t?this.state|=e:this.state&=~e}}}
9function es(e,t,n){"boolean"!=typeof n&&(n=t instanceof r(78794)),this.state=X|Q|H|V,e&&e.objectMode&&(this.state|=U),n&&e&&e.readableObjectMode&&(this.state|=U),this.highWaterMark=e?E(this,e,"readableHighWaterMark",n):R(!1),this.buffer=new A,this.length=0,this.pipes=[],this.flowing=null,this[B]=null,e&&!1===e.emitClose&&(this.state&=~X),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 L(e.encoding),this.encoding=e.encoding)}function ef(e){if(!(this instanceof ef))return new ef(e);let t=this instanceof r(78794);this._readableState=new es(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)),m.call(this,e),M.construct(this,()=>{this._readableState.needReadable&&ey(this,this._readableState)})}function eu(e,t,r,n){let i;x("readableAddChunk",t);let o=e._readableState;if((o.state&U)==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="":m._isUint8Array(t)?(t=m._uint8ArrayToBuffer(t),r=""):null!=t&&(i=new I("chunk",["string","Buffer","Uint8Array"],t))),i)q(e,i);else if(null===t)o.state&=~$,ep(e,o);else if((o.state&U)!=0||t&&t.length>0)if(n)if((o.state&W)!=0)q(e,new N);else{if(o.destroyed||o.errored)return!1;ed(e,o,t,!0)}else if(o.ended)q(e,new T);else{if(o.destroyed||o.errored)return!1;o.state&=~$,o.decoder&&!r?(t=o.decoder.write(t),o.objectMode||0!==t.length?ed(e,o,t,!1):ey(e,o)):ed(e,o,t,!1)}else n||(o.state&=~$,ey(e,o));return!o.ended&&(o.length<o.highWaterMark||0===o.length)}function ed(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)),ey(e,t)}u(es.prototype,{objectMode:ea(U),ended:ea(z),endEmitted:ea(W),reading:ea($),constructed:ea(H),sync:ea(V),needReadable:ea(G),emittedReadable:ea(K),readableListening:ea(J),resumeScheduled:ea(Z),errorEmitted:ea(Y),emitClose:ea(X),autoDestroy:ea(Q),destroyed:ea(ee),closed:ea(et),closeEmitted:ea(er),multiAwaitDrain:ea(en),readingMore:ea(ei),dataEmitted:ea(eo)}),ef.prototype.destroy=M.destroy,ef.prototype._undestroy=M.undestroy,ef.prototype._destroy=function(e,t){t(e)},ef.prototype[y.captureRejectionSymbol]=function(e){this.destroy(e)},ef.prototype[p]=function(){let e;return this.destroyed||(e=this.readableEnded?null:new j,this.destroy(e)),new l((t,r)=>S(this,n=>n&&n!==e?r(n):t(null)))},ef.prototype.push=function(e,t){return eu(this,e,t,!1)},ef.prototype.unshift=function(e,t){return eu(this,e,t,!0)},ef.prototype.isPaused=function(){let e=this._readableState;return!0===e[B]||!1===e.flowing},ef.prototype.setEncoding=function(e){let t=new L(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=0x40000000;function el(e){if(e>ec)throw new k("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&U)!=0?1:s(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(x("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;x("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(x("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(eg,e))}function eg(e){let t=e._readableState;x("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 ey(e,t){!t.readingMore&&t.constructed&&(t.readingMore=!0,i.nextTick(em,e,t))}function em(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){let r=t.length;if(x("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?(x("pipeOnDrain",1),r.awaitDrainWriters=null):r.multiAwaitDrain&&(x("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[B]?t.flowing=!0:e.listenerCount("data")>0?e.resume():t.readableListening||(t.flowing=null)}function e_(e){x("readable nexttick read 0"),e.read(0)}function eS(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(ex,e,t))}function ex(e,t){x("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(x("flow",t.flowing);t.flowing&&null!==e.read(););}function eM(e,t){"function"!=typeof e.read&&(e=ef.wrap(e,{objectMode:!0}));let r=eE(e,t);return r.stream=e,r}async function*eE(e,t){let r,n=D;function i(t){this===e?(n(),n=D):n=t}
9e.on("readable",i);let o=S(e,{writable:!1},e=>{r=e?O(r,e):null,n(),n=D});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 l(i)}}}catch(e){throw r=O(r,e)}finally{(r||(null==t?void 0:t.destroyOnReturn)!==!1)&&(void 0===r||e._readableState.autoDestroy)?M.destroyer(e,null):(e.off("readable",i),o())}}function eR(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 eO(e){let t=e._readableState;x("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(eI,t,e))}function eI(e,t){if(x("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(eP,t);else if(e.autoDestroy){let e=t._writableState;(!e||e.autoDestroy&&(e.finished||!1===e.writable))&&t.destroy()}}}function eP(e){!e.writable||e.writableEnded||e.destroyed||e.end()}function ek(){return void 0===n&&(n={}),n}ef.prototype.read=function(e){let t;x("read",e),void 0===e?e=NaN:a(e)||(e=f(e,10));let r=this._readableState,n=e;if(e>r.highWaterMark&&(r.highWaterMark=el(e)),0!==e&&(r.state&=~K),0===e&&r.needReadable&&((0!==r.highWaterMark?r.length>=r.highWaterMark:r.length>0)||r.ended))return x("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?eO(this):eb(this),null;if(0===(e=eh(e,r))&&r.ended)return 0===r.length&&eO(this),null;let i=(r.state&G)!=0;if(x("need readable",i),(0===r.length||r.length-e<r.highWaterMark)&&x("length less than watermark",i=!0),r.ended||r.reading||r.destroyed||r.errored||!r.constructed)x("reading, ended or constructing",i=!1);else if(i){x("do read"),r.state|=$|V,0===r.length&&(r.state|=G);try{this._read(r.highWaterMark)}catch(e){q(this,e)}r.state&=~V,r.reading||(e=eh(n,r))}return null===(t=e>0?eR(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&&eO(this)),null===t||r.errorEmitted||r.closeEmitted||(r.dataEmitted=!0,this.emit("data",t)),t},ef.prototype._read=function(e){throw new P("_read()")},ef.prototype.pipe=function(e,t){let r,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),x("pipe count=%d opts=%j",o.pipes.length,t);let a=t&&!1===t.end||e===i.stdout||e===i.stderr?y:f;function s(e,t){x("onunpipe"),e===n&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,d())}function f(){x("onend"),e.end()}o.endEmitted?i.nextTick(a):n.once("end",a),e.on("unpipe",s);let u=!1;function d(){x("cleanup"),e.removeListener("close",b),e.removeListener("finish",g),r&&e.removeListener("drain",r),e.removeListener("error",p),e.removeListener("unpipe",s),n.removeListener("end",f),n.removeListener("end",y),n.removeListener("data",l),u=!0,r&&o.awaitDrainWriters&&(!e._writableState||e._writableState.needDrain)&&r()}function c(){u||(1===o.pipes.length&&o.pipes[0]===e?(x("false write response, pause",0),o.awaitDrainWriters=e,o.multiAwaitDrain=!1):o.pipes.length>1&&o.pipes.includes(e)&&(x("false write response, pause",o.awaitDrainWriters.size),o.awaitDrainWriters.add(e)),n.pause()),r||(r=ev(n,e),e.on("drain",r))}function l(t){x("ondata");let r=e.write(t);x("dest.write",r),!1===r&&c()}function p(t){if(x("onerror",t),y(),e.removeListener("error",p),0===e.listenerCount("error")){let r=e._writableState||e._readableState;r&&!r.errorEmitted?q(e,t):e.emit("error",t)}}function b(){e.removeListener("finish",g),y()}function g(){x("onfinish"),e.removeListener("close",b),y()}function y(){x("unpipe"),n.unpipe(e)}return n.on("data",l),v(e,"error",p),e.once("close",b),e.once("finish",g),e.emit("pipe",n),!0===e.writableNeedDrain?c():o.flowing||(x("pipe resume"),n.resume()),e},ef.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},ef.prototype.on=function(e,t){let r=m.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>
90,!1!==n.flowing&&this.resume()):"readable"!==e||n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,x("on readable",n.length,n.reading),n.length?eb(this):n.reading||i.nextTick(e_,this)),r},ef.prototype.addListener=ef.prototype.on,ef.prototype.removeListener=function(e,t){let r=m.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(ew,this),r},ef.prototype.off=ef.prototype.removeListener,ef.prototype.removeAllListeners=function(e){let t=m.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&i.nextTick(ew,this),t},ef.prototype.resume=function(){let e=this._readableState;return e.flowing||(x("resume"),e.flowing=!e.readableListening,eS(this,e)),e[B]=!1,this},ef.prototype.pause=function(){return x("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(x("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[B]=!0,this},ef.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=>{q(this,e)}),e.on("close",()=>{this.destroy()}),e.on("destroy",()=>{this.destroy()}),this._read=()=>{t&&e.resume&&(t=!1,e.resume())};let r=d(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},ef.prototype[b]=function(){return eM(this)},ef.prototype.iterator=function(e){return void 0!==e&&C(e,"options"),eM(this,e)},u(ef.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}}}),u(es.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return!1!==this[B]},set(e){this[B]=!!e}}}),ef._fromList=eR,ef.from=function(e,t){return F(ef,e,t)},ef.fromWeb=function(e,t){return ek().newStreamReadableFromReadableStream(e,t)},ef.toWeb=function(e,t){return ek().newReadableStreamFromStreamReadable(e,t)},ef.wrap=function(e,t){var r,n;return new ef({objectMode:null==(r=null!=(n=e.readableObjectMode)?n:e.objectMode)||r,...t,destroy(t,r){M.destroyer(e,t),r(t)}}).wrap(e)}},64208:(e,t,r)=>{"use strict";var n=r(49364),i=r(81981);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[0xc1059ed8,0x367cd507,0x3070dd17,0xf70e5939,0xffc00b31,0x68581511,0x64f98fa7,0xbefa4fa4]}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")}},65200:(e,t,r)=>{"use strict";var n=r(72548),i="undefined"==typeof globalThis?r.g:globalThis;e.exports=function(){for(var e=[],t=0;t<n.length;t++)"function"==typeof i[n[t]]&&(e[e.length]=n[t]);return e}},65225:e=>{"use strict";e.exports=Object.getOwnPropertyDescriptor},65701:(e,t,r)=>{"use strict";var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=r(76061),s=Object.prototype.propertyIsEnumerable,f=!s.call({toString:null},"toString"),u=s.call(function(){}
9,"prototype"),d=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],c=function(e){var t=e.constructor;return t&&t.prototype===e},l={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!l["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{c(window[e])}catch(e){return!0}}catch(e){return!0}return!1}(),p=function(e){if("undefined"==typeof window||!h)return c(e);try{return c(e)}catch(e){return!1}};n=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===o.call(e),n=a(e),s=t&&"[object String]"===o.call(e),c=[];if(!t&&!r&&!n)throw TypeError("Object.keys called on a non-object");var l=u&&r;if(s&&e.length>0&&!i.call(e,0))for(var h=0;h<e.length;++h)c.push(String(h));if(n&&e.length>0)for(var b=0;b<e.length;++b)c.push(String(b));else for(var g in e)!(l&&"prototype"===g)&&i.call(e,g)&&c.push(String(g));if(f)for(var y=p(e),m=0;m<d.length;++m)!(y&&"constructor"===d[m])&&i.call(e,d[m])&&c.push(d[m]);return c}}e.exports=n},65865:e=>{"use strict";e.exports=TypeError},66530:(e,t,r)=>{"use strict";var n=r(28419),i=r(65865),o=r(66958),a=r(11759);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new i("a function is required");return a(n,o,e)}},66809:(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."}}},66825:(e,t,r)=>{"use strict";var n=Array.prototype.slice,i=r(76061),o=Object.keys,a=o?function(e){return o(e)}:r(65701),s=Object.keys;a.shim=function(){return Object.keys?!function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)&&(Object.keys=function(e){return i(e)?s(n.call(e)):s(e)}):Object.keys=a,Object.keys||a},e.exports=a},66958:e=>{"use strict";e.exports=Function.prototype.call},67090:(e,t,r)=>{"use strict";let n=r(99742),{aggregateTwoErrors:i,codes:{ERR_MULTIPLE_CALLBACK:o},AbortError:a}=r(83207),{Symbol:s}=r(21328),{kIsDestroyed:f,isDestroyed:u,isFinished:d,isServerRequest:c}=r(47885),l=s("kDestroy"),h=s("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,r){let i=!1;function o(t){if(i)return;i=!0;let o=e._readableState,a=e._writableState;p(t,a,o),a&&(a.closed=!0),o&&(o.closed=!0),"function"==typeof r&&r(t),t?n.nextTick(g,e,t):n.nextTick(y,e)}try{e._destroy(t||null,o)}catch(e){o(e)}}function g(e,t){m(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 m(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 v(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(m,e,t):m(e,t))}function w(e){let t=!1;function r(r){if(t)return void v(e,null!=r?r:new o);t=!0;let i=e._readableState,a=e._writableState,s=a||i;i&&(i.constructed=!0),a&&(a.constructed=!0),s.destroyed?e.emit(l,r):r?v(e,r,!0):n.nextTick(_,e)}try{e._construct(e=>{n.nextTick(r,e)})}catch(e){n.nextTick(r,e)}}function _(e){e.emit(h)}function S(e){return(null==e?void 0:e.setHeader)&&"function"==typeof e.abort}function x(e){e.emit("close")}function A(e,t){e.emit("error",t),n.nextTick(x,e)}e.exports={construct:function(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(w,e)},destroyer:function(e,t){!(!e||u(e))&&(t||d(e)||(t=new a),c(e)?(e.socket=null,e.destroy(t)):S(e)?e.abort():S(e.req)?e.req.abort():"function"==typeof e.destroy?e.destroy(t):"function"==typeof e.close?e.close():t?n.nextTick(A,e,t):n.nextTick(x,e),e.destroyed||(e[f]=!0))},destroy:function(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?b(this,e,t):this.once(l,function(r){b(this,i(r,e),t)})),this},undestroy:function(){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)},errorOrDestroy:v}},68245:(e,t,r)=>{"use strict";var n=t;n.version=r(20585).rE,n.utils=r(95987),n.rand=r(77373),n.curve=r(49606),n.curves=r(19558),n.ec=r(57005),n.eddsa=r(1530)},70428:(e,t,r)=>{"use strict";var n=r(95987),i=r(23764),o=r(93570),a=r(31183),s=n.assert;
vendor: 10,912 bytes, line 9
9function f(e){a.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 u(e,t,r,n){a.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 d(e,t,r,n){a.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(f,a),e.exports=f,f.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 a=this._getEndoRoots(this.n);0===this.g.mul(a[0]).x.cmp(this.g.x.redMul(t))?r=a[0]:(r=a[1],s(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}}},f.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()]},f.prototype._getEndoBasis=function(e){for(var t,r,n,o,a,s,f,u,d,c=this.n.ushrn(Math.floor(this.n.bitLength()/2)),l=e,h=this.n.clone(),p=new i(1),b=new i(0),g=new i(0),y=new i(1),m=0;0!==l.cmpn(0);){var v=h.div(l);u=h.sub(v.mul(l)),d=g.sub(v.mul(p));var w=y.sub(v.mul(b));if(!n&&0>u.cmp(c))t=f.neg(),r=p,n=u.neg(),o=d;else if(n&&2==++m)break;f=u,h=l,l=u,g=p,p=d,y=b,b=w}a=u.neg(),s=d;var _=n.sqr().add(o.sqr());return a.sqr().add(s.sqr()).cmp(_)>=0&&(a=t,s=r),n.negative&&(n=n.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:o},{a:a,b:s}]},f.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),a=i.mul(r.a),s=o.mul(n.a),f=i.mul(r.b),u=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:f.add(u).neg()}},f.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)},f.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)},f.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<e.length;o++){var a=this._endoSplit(t[o]),s=e[o],f=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),f=f.neg(!0)),n[2*o]=s,n[2*o+1]=f,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var u=this._wnafMulAdd(1,n,i,2*o,r),d=0;d<2*o;d++)n[d]=null,i[d]=null;return u},o(u,a.BasePoint),f.prototype.point=function(e,t,r){return new u(this,e,t,r)},f.prototype.pointFromJSON=function(e,t){return u.fromJSON(this,e,t)},u.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;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}},u.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]},u.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},u.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)+">"},u.prototype.isInfinity=function(){return this.inf},u.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)},u.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)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},u.prototype.getX=function(){return this.x.fromRed()},u.prototype.getY=function(){return this.y.fromRed()},u.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)},u.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)},u.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)},u.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))},u.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},u.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(d,a.BasePoint),f.prototype.jpoint=function(e,t,r){return new d(this,e,t,r)},d.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)},d.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},d.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)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),f=o.redSub(a);if(0===s.cmpn(0))if(0!==f.cmpn(0))return this.curve.jpoint(null,null,null);else return this.dbl();var u=s.redSqr(),d=u.redMul(s),c=n.redMul(u),l=f.redSqr().redIAdd(d).redISub(c).redISub(c),h=f.redMul(c.redISub(l)).redISub(o.redMul(d)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(l,h,p)},d.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),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))if(0!==s.cmpn(0))return this.curve.jpoint(null,null,null);else return this.dbl();var f=a.redSqr(),u=f.redMul(a),d=r.redMul(f),c=s.redSqr().redIAdd(u).redISub(d).redISub(d),l=s.redMul(d.redISub(c)).redISub(i.redMul(u)),h=this.z.redMul(a);return this.curve.jpoint(c,l,h)},d.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,a=this.y,s=this.z,f=s.redSqr().redSqr(),u=a.redAdd(a);for(t=0;t<e;t++){var d=o.redSqr(),c=u.redSqr(),l=c.redSqr(),h=d.redAdd(d).redIAdd(d).redIAdd(n.redMul(f)),p=o.redMul(c),b=h.redSqr().redISub(p.redAdd(p)),g=p.redISub(b),y=h.redMul(g);y=y.redIAdd(y).redISub(l);var m=u.redMul(s);t+1<e&&(f=f.redMul(l)),o=b,s=m,u=y}return this.curve.jpoint(o,u.redMul(i),s)},d.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},d.prototype._zeroDbl=function(){if(this.zOne){var e,t,r,n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n),f=s.redSqr().redISub(a).redISub(a),u=o.redIAdd(o);u=(u=u.redIAdd(u)).redIAdd(u),e=f,t=s.redMul(a.redISub(f)).redISub(u),r=this.y.redAdd(this.y)}else{var d=this.x.redSqr(),c=this.y.redSqr(),l=c.redSqr(),h=this.x.redAdd(c).redSqr().redISub(d).redISub(l);h=h.redIAdd(h);var p=d.redAdd(d).redIAdd(d),b=p.redSqr(),g=l.redIAdd(l);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)},d.prototype._threeDbl=function(){if(this.zOne){var e,t,r,n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),f=s.redSqr().redISub(a).redISub(a);e=f;var u=o.redIAdd(o);u=(u=u.redIAdd(u)).redIAdd(u),t=s.redMul(a.redISub(f)).redISub(u),r=this.y.redAdd(this.y)}else{var d=this.z.redSqr(),c=this.y.redSqr(),l=this.x.redMul(c),h=this.x.redSub(d).redMul(this.x.redAdd(d));h=h.redAdd(h).redIAdd(h);var p=l.redIAdd(l),b=(p=p.redIAdd(p)).redAdd(p);e=h.redSqr().redISub(b),r=this.y.redAdd(this.z).redSqr().redISub(c).redISub(d);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)},d.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=t.redSqr(),a=r.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(i)),f=t.redAdd(t),u=(f=f.redIAdd(f)).redMul(a),d=s.redSqr().redISub(u.redAdd(u)),c=u.redISub(d),l=a.redSqr();l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var h=s.redMul(c).redISub(l),p=r.redAdd(r).redMul(n);return this.curve.jpoint(d,h,p)},d.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);
9var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),i=e.redAdd(e).redIAdd(e),o=i.redSqr(),a=this.x.redAdd(t).redSqr().redISub(e).redISub(n),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),f=n.redIAdd(n);f=(f=(f=f.redIAdd(f)).redIAdd(f)).redIAdd(f);var u=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(f),d=t.redMul(u);d=(d=d.redIAdd(d)).redIAdd(d);var c=this.x.redMul(s).redISub(d);c=(c=c.redIAdd(c)).redIAdd(c);var l=this.y.redMul(u.redMul(f.redISub(u)).redISub(a.redMul(s)));l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var h=this.z.redAdd(a).redSqr().redISub(r).redISub(s);return this.curve.jpoint(c,l,h)},d.prototype.mul=function(e,t){return e=new i(e,t),this.curve._wnafMul(this,e)},d.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)},d.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}},d.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)+">"},d.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},71355:(e,t,r)=>{"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty;e.exports=r(28419).call(n,i)},71742:e=>{"use strict";e.exports=SyntaxError},71850: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 a(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 s(e,i){var o,f,u,d,c,l=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 a(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,d=h.length;o<d;o+=1)c[o]=s(o,h)||"null";return u=0===c.length?"[]":t?"[\n"+t+c.join(",\n"+t)+"\n"+l+"]":"["+c.join(",")+"]",t=l,u}if(n&&"object"==typeof n)for(o=0,d=n.length;o<d;o+=1)"string"==typeof(f=n[o])&&(u=s(f,h))&&c.push(a(f)+(t?": ":":")+u);else for(f in h)Object.prototype.hasOwnProperty.call(h,f)&&(u=s(f,h))&&c.push(a(f)+(t?": ":":")+u);return u=0===c.length?"{}":t?"{\n"+t+c.join(",\n"+t)+"\n"+l+"}":"{"+c.join(",")+"}",t=l,u}}e.exports=function(e,i,o){var a;if(t="",r="","number"==typeof o)for(a=0;a<o;a+=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 s("",{"":e})}},71938:e=>{"use strict";e.exports=Function.prototype.apply},72130:e=>{"use strict";e.exports=ReferenceError},72548:e=>{"use strict";e.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},72802:(e,t,r)=>{"use strict";let n,i,o,a=r(99742),{ArrayIsArray:s,Promise:f,SymbolAsyncIterator:u,SymbolDispose:d}=r(21328),c=r(97212),{once:l}=r(16816),h=r(67090),p=r(78794),{aggregateTwoErrors:b,codes:{ERR_INVALID_ARG_TYPE:g,ERR_INVALID_RETURN_VALUE:y,ERR_MISSING_ARGS:m,ERR_STREAM_DESTROYED:v,ERR_STREAM_PREMATURE_CLOSE:w},AbortError:_}=r(83207),{validateFunction:S,validateAbortSignal:x}=r(6533),{isIterable:A,isReadable:M,isReadableNodeStream:E,isNodeStream:R,isTransformStream:O,isWebStream:I,isReadableStream:P,isReadableFinished:k}=r(47885),T=globalThis.AbortController||r(24230).AbortController;function N(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 j(e){return S(e[e.length-1],"streams[stream.length - 1]"),e.pop()}function C(e){if(A(e))return e;if(E(e))return B(e);throw new g("val",["Readable","Iterable","AsyncIterable"],e)}async function*B(e){i||(i=r(62732)),yield*i.prototype[u].call(e)}async function L(e,t,r,{end:n}){let i,o=null,a=e=>{if(e&&(i=e),o){let e=o;o=null,e()}},s=()=>new f((e,t)=>
9{i?t(i):o=()=>{i?t(i):e()}});t.on("drain",a);let u=c(t,{readable:!1},a);try{for await(let r of(t.writableNeedDrain&&await s(),e))t.write(r)||await s();n&&(t.end(),await s()),r()}catch(e){r(i!==e?b(i,e):e)}finally{u(),t.off("drain",a)}}async function F(e,t,r,{end:n}){O(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 D(...e){return q(e,l(j(e)))}function q(e,t,i){let f,u,c,l;if(1===e.length&&s(e[0])&&(e=e[0]),e.length<2)throw new m("streams");let h=new T,b=h.signal,v=null==i?void 0:i.signal,w=[];function S(){D(new _)}x(v,"options.signal"),o=o||r(16816).addAbortListener,v&&(f=o(v,S));let k=[],j=0;function B(e){D(e,0==--j)}function D(e,r){var n;if(e&&(!u||"ERR_STREAM_PREMATURE_CLOSE"===u.code)&&(u=e),u||r){for(;k.length;)k.shift()(u);null==(n=f)||n[d](),h.abort(),r&&(u||w.forEach(e=>e()),a.nextTick(t,u,c))}}for(let t=0;t<e.length;t++){let o=e[t],s=t<e.length-1,f=t>0,u=s||(null==i?void 0:i.end)!==!1,d=t===e.length-1;if(R(o)){if(u){let{destroy:e,cleanup:t}=N(o,s,f);k.push(e),M(o)&&d&&w.push(t)}function q(e){e&&"AbortError"!==e.name&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code&&B(e)}o.on("error",q),M(o)&&d&&w.push(()=>{o.removeListener("error",q)})}if(0===t)if("function"==typeof o){if(!A(l=o({signal:b})))throw new y("Iterable, AsyncIterable or Stream","source",l)}else l=A(o)||E(o)||O(o)?o:p.from(o);else if("function"==typeof o){var z,W;if(l=o(l=O(l)?C(null==(z=l)?void 0:z.readable):C(l),{signal:b}),s){if(!A(l,!0))throw new y("AsyncIterable",`transform[${t-1}]`,l)}else{n||(n=r(21638));let e=new n({objectMode:!0}),t=null==(W=l)?void 0:W.then;if("function"==typeof t)j++,t.call(l,t=>{c=t,null!=t&&e.write(t),u&&e.end(),a.nextTick(B)},t=>{e.destroy(t),a.nextTick(B,t)});else if(A(l,!0))j++,L(l,e,B,{end:u});else if(P(l)||O(l)){let t=l.readable||l;j++,L(t,e,B,{end:u})}else throw new y("AsyncIterable or Promise","destination",l);let{destroy:i,cleanup:o}=N(l=e,!1,!0);k.push(i),d&&w.push(o)}}else if(R(o)){if(E(l)){j+=2;let e=U(l,o,B,{end:u});M(o)&&d&&w.push(e)}else if(O(l)||P(l)){let e=l.readable||l;j++,L(e,o,B,{end:u})}else if(A(l))j++,L(l,o,B,{end:u});else throw new g("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],l);l=o}else if(I(o)){if(E(l))j++,F(C(l),o,B,{end:u});else if(P(l)||A(l))j++,F(l,o,B,{end:u});else if(O(l))j++,F(l.readable,o,B,{end:u});else throw new g("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],l);l=o}else l=p.from(o)}return(null!=b&&b.aborted||null!=v&&v.aborted)&&a.nextTick(S),l}function U(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()}k(e)?a.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:q,pipeline:D}},73305:e=>{"use strict";e.exports=URIError},73442:(e,t,r)=>{"use strict";var n=r(45525),i=r(66530),o=i([n("%String.prototype.indexOf%")]);e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&o(e,".prototype.")>-1?i([r]):r}},75491:(e,t,r)=>{"use strict";var n=r(82909).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=4,r=e.length,i=r%t;if(!i)return e;var o=r,a=t-i,s=r+a,f=n.alloc(s);for(f.write(e);a--;)f.write("=",o++);return f.toString()}},76061:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var r=t.call(e),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),n}},77233:(e,t,r)=>{"use strict";let n=globalThis.AbortController||r(24230).AbortController,{codes:{ERR_INVALID_ARG_VALUE:i,ERR_INVALID_ARG_TYPE:o,ERR_MISSING_ARGS:a,ERR_OUT_OF_RANGE:s},AbortError:f}=r(83207),{validateAbortSignal:u,validateInteger:d,validateObject:c}=r(6533),l=r(21328).Symbol("kWeak"),h=r(21328).Symbol("kResistStopPropagation"),{finished:p}=r(97212),b=r(25864),{addAbortSignalNoValidate:g}
9=r(56315),{isWritable:y,isNodeStream:m}=r(47885),{deprecate:v}=r(16816),{ArrayPrototypePush:w,Boolean:_,MathFloor:S,Number:x,NumberIsNaN:A,Promise:M,PromiseReject:E,PromiseResolve:R,PromisePrototypeThen:O,Symbol:I}=r(21328),P=I("kEmpty"),k=I("kEof");function T(e,t){if(null!=t&&c(t,"options"),(null==t?void 0:t.signal)!=null&&u(t.signal,"options.signal"),m(e)&&!y(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 N(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&&u(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)),d(n,"options.concurrency",1),d(i,"options.highWaterMark",0),i+=n,(async function*(){let o,a,s=r(16816).AbortSignalAny([null==t?void 0:t.signal].filter(_)),u=this,d=[],c={signal:s},l=!1,h=0;function p(){l=!0,b()}function b(){h-=1,g()}function g(){a&&!l&&h<n&&d.length<i&&(a(),a=null)}!async function(){try{for await(let t of u){if(l)return;if(s.aborted)throw new f;try{if((t=e(t,c))===P)continue;t=R(t)}catch(e){t=E(e)}h+=1,O(t,b,p),d.push(t),o&&(o(),o=null),!l&&(d.length>=i||h>=n)&&await new M(e=>{a=e})}d.push(k)}catch(t){let e=E(t);O(e,b,p),d.push(e)}finally{l=!0,o&&(o(),o=null)}}();try{for(;;){for(;d.length>0;){let e=await d[0];if(e===k)return;if(s.aborted)throw new f;e!==P&&(yield e),d.shift(),g()}await new M(e=>{o=e})}}finally{l=!0,a&&(a(),a=null)}}).call(this)}function j(e){return null!=e&&c(e,"options"),(null==e?void 0:e.signal)!=null&&u(e.signal,"options.signal"),(async function*(){let t=0;for await(let n of this){var r;if(null!=e&&null!=(r=e.signal)&&r.aborted)throw new f({cause:e.signal.reason});yield[t++,n]}}).call(this)}async function C(e,t){for await(let r of D.call(this,e,t))return!0;return!1}async function B(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);return!await C.call(this,async(...t)=>!await e(...t),t)}async function L(e,t){for await(let r of D.call(this,e,t))return r}async 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),P}for await(let e of N.call(this,r,t));}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:P}return N.call(this,r,t)}class q extends a{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}async function U(e,t,r){var i,a;if("function"!=typeof e)throw new o("reducer",["Function","AsyncFunction"],e);null!=r&&c(r,"options"),(null==r?void 0:r.signal)!=null&&u(r.signal,"options.signal");let s=arguments.length>1;if(null!=r&&null!=(i=r.signal)&&i.aborted){let e=new f(void 0,{cause:r.signal.reason});throw this.once("error",()=>{}),await p(this.destroy(e)),e}let d=new n,b=d.signal;if(null!=r&&r.signal){let e={once:!0,[l]:this,[h]:!0};r.signal.addEventListener("abort",()=>d.abort(),e)}let g=!1;try{for await(let n of this){if(g=!0,null!=r&&null!=(a=r.signal)&&a.aborted)throw new f;s?t=await e(t,n,{signal:b}):(t=n,s=!0)}if(!g&&!s)throw new q}finally{d.abort()}return t}async function z(e){null!=e&&c(e,"options"),(null==e?void 0:e.signal)!=null&&u(e.signal,"options.signal");let t=[];for await(let n of this){var r;if(null!=e&&null!=(r=e.signal)&&r.aborted)throw new f(void 0,{cause:e.signal.reason});w(t,n)}return t}function W(e,t){let r=N.call(this,e,t);return(async function*(){for await(let e of r)yield*e}).call(this)}function $(e){if(A(e=x(e)))return 0;if(e<0)throw new s("number",">= 0",e);return e}function H(e,t){return null!=t&&c(t,"options"),(null==t?void 0:t.signal)!=null&&u(t.signal,"options.signal"),e=$(e),(async function*(){var r,n;if(null!=t&&null!=(r=t.signal)&&r.aborted)throw new f;for await(let r of this){if(null!=t&&null!=(n=t.signal)&&n.aborted)throw new f;e--<=0&&(yield r)}}).call(this)}function V(e,t){return null!=t&&c(t,"options"),(null==t?void 0:t.signal)!=null&&u(t.signal,"options.signal"),e=$(e),(async function*(){var r,n;if(null!=t&&null!=(r=t.signal)&&r.aborted)throw new f;for await(let r of this){if(null!=t&&null!=(n=t.signal)&&n.aborted)throw new f;if(e-- >0&&(yield r),e<=0)return}}).call(this)}e.exports.streamReturningOperators={asIndexedPairs:v(j,"readable.asIndexedPairs will be removed in a future version."),drop:H,filter:D,flatMap:W,map:N,take:V,compose:T}
9,e.exports.promiseReturningOperators={every:B,forEach:F,reduce:U,toArray:z,some:C,find:L}},77373:(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(73776);if("function"!=typeof o.randomBytes)throw Error("Not supported");i.prototype._rand=function(e){return o.randomBytes(e)}}catch(e){}},77785:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;var n=42;for(var i in e[t]=n,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(a.value!==n||!0!==a.enumerable)return!1}return!0}},78120:(e,t,r)=>{"use strict";var n=r(49364),i=r(48946),o=n.rotl32,a=n.sum32,s=n.sum32_3,f=n.sum32_4,u=i.BlockHash;function d(){if(!(this instanceof d))return new d;u.call(this),this.h=[0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0],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 l(e){return e<=15?0:e<=31?0x5a827999:e<=47?0x6ed9eba1:e<=63?0x8f1bbcdc:0xa953fd4e}function h(e){return e<=15?0x50a28be6:e<=31?0x5c4dd124:e<=47?0x6d703ef3:0x7a6d76e9*!!(e<=63)}n.inherits(d,u),t.ripemd160=d,d.blockSize=512,d.outSize=160,d.hmacStrength=192,d.padLength=64,d.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],i=this.h[2],u=this.h[3],d=this.h[4],m=r,v=n,w=i,_=u,S=d,x=0;x<80;x++){var A=a(o(f(r,c(x,n,i,u),e[p[x]+t],l(x)),g[x]),d);r=d,d=u,u=o(i,10),i=n,n=A,A=a(o(f(m,c(79-x,v,w,_),e[b[x]+t],h(x)),y[x]),S),m=S,S=_,_=o(w,10),w=v,v=A}A=s(this.h[1],i,_),this.h[1]=s(this.h[2],u,S),this.h[2]=s(this.h[3],d,m),this.h[3]=s(this.h[4],r,v),this.h[4]=s(this.h[0],n,w),this.h[0]=A},d.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],y=[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]},78121:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},78413:(e,t,r)=>{"use strict";var n=r(49364).rotr32;function i(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}t.ft_1=function(e,t,r,n){return 0===e?i(t,r,n):1===e||3===e?a(t,r,n):2===e?o(t,r,n):void 0},t.ch32=i,t.maj32=o,t.p32=a,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},78794:(e,t,r)=>{"use strict";let n,i,{ObjectDefineProperties:o,ObjectGetOwnPropertyDescriptor:a,ObjectKeys:s,ObjectSetPrototypeOf:f}=r(21328);e.exports=c;let u=r(62732),d=r(95084);f(c.prototype,u.prototype),f(c,u);{let e=s(d.prototype);for(let t=0;t<e.length;t++){let r=e[t];c.prototype[r]||(c.prototype[r]=d.prototype[r])}}function c(e){if(!(this instanceof c))return new c(e);u.call(this,e),d.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 l(){return void 0===n&&(n={}),n}o(c.prototype,{writable:{__proto__:null,...a(d.prototype,"writable")},writableHighWaterMark:{__proto__:null,...a(d.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...a(d.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...a(d.prototype,"writableBuffer")},writableLength:{__proto__:null,...a(d.prototype,"writableLength")},writableFinished:{__proto__:null,...a(d.prototype,"writableFinished")},writableCorked:{__proto__:null,...a(d.prototype,"writableCorked")},writableEnded:{__proto__:null,...a(d.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...a(d.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 l().newStreamDuplexFromReadableWritablePair(e,t)},c.toWeb=function(e){return l().newReadableWritablePairFromDuplex(e)}
9,c.from=function(e){return i||(i=r(34092)),i(e,"body")}},80611:(e,t,r)=>{"use strict";var n=r(93023);e.exports=function(e){return n(e)||0===e?e:e<0?-1:1}},80815:(e,t,r)=>{"use strict";t.parse=r(93864),t.stringify=r(71850)},80985:(e,t,r)=>{"use strict";var n=r(45525),i=r(49620),o=r(96058)(),a=r(10221),s=r(65865),f=n("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>0xffffffff||f(t)!==t)throw new s("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,u=!0;if("length"in e&&a){var d=a(e,"length");d&&!d.configurable&&(n=!1),d&&!d.writable&&(u=!1)}return(n||u||!r)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},81981:(e,t,r)=>{"use strict";var n=r(49364),i=r(48946),o=r(78413),a=r(29005),s=n.sum32,f=n.sum32_4,u=n.sum32_5,d=o.ch32,c=o.maj32,l=o.s0_256,h=o.s1_256,p=o.g0_256,b=o.g1_256,g=i.BlockHash,y=[0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2];function m(){if(!(this instanceof m))return new m;g.call(this),this.h=[0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19],this.k=y,this.W=Array(64)}n.inherits(m,g),e.exports=m,m.blockSize=512,m.outSize=256,m.hmacStrength=192,m.padLength=64,m.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]=f(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],y=this.h[3],m=this.h[4],v=this.h[5],w=this.h[6],_=this.h[7];for(a(this.k.length===r.length),n=0;n<r.length;n++){var S=u(_,h(m),d(m,v,w),this.k[n],r[n]),x=s(l(i),c(i,o,g));_=w,w=v,v=m,m=s(y,S),y=g,g=o,o=i,i=s(S,x)}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],g),this.h[3]=s(this.h[3],y),this.h[4]=s(this.h[4],m),this.h[5]=s(this.h[5],v),this.h[6]=s(this.h[6],w),this.h[7]=s(this.h[7],_)},m.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},83207:(e,t,r)=>{"use strict";let{format:n,inspect:i}=r(91631),{AggregateError:o}=r(21328),a=globalThis.AggregateError||o,s=Symbol("kIsNodeError"),f=["string","function","number","object","Function","Object","boolean","bigint","symbol"],u=/^([A-Z][a-z0-9]*)+$/,d="__node_internal_",c={};function l(e,t){if(!e)throw new c.ERR_INTERNAL_ASSERTION(t)}function h(e){let t="",r=e.length,n=+("-"===e[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 l(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(l(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,configurable:!0},toString:{value(){return`${this.name} [${e}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=e,n.prototype[s]=!0,c[e]=n}function g(e){let t=d+e.name;return Object.defineProperty(e,"name",{value:t}),e}function y(e,t){if(e&&t&&e!==t){if(Array.isArray(t.errors))return t.errors.push(e),t;let r=new a([t,e],t.message);return r.code=t.code,r}return e||t}class m 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)=>{l("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=[],a=[],s=[];for(let e of t)l("string"==typeof e,"All expected entries have to be of type string"),f.includes(e)?o.push(e.toLowerCase()):u.test(e)?a.push(e):(l("object"!==e,'The value "object" should be written as "Object"'),s.push(e));if(a.length>0){let e=o.indexOf("object");-1!==e&&(o.splice(o,e,1),a.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}`}}(a.length>0||s.length>0)&&(n+=" or ")}if(a.length>0){switch(a.length){case 1:n+=`an instance of ${a[0]}`;break;case 2:n+=`an instance of ${a[0]} or ${a[1]}`;break;default:{let e=a.pop();n+=`an instance of ${a.join(", ")}, or ${e}`}}s.length>0&&(n+=" or ")}switch(s.length){case 0:break;case 1:s[0].toLowerCase()!==s[0]&&(n+="an "),n+=`${s[0]}`;break;case 2:n+=`one of ${s[0]} or ${s[1]}`;break;default:{let e=s.pop();n+=`one of ${s.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 d;if(null!=(d=r.constructor)&&d.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}
9,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)&&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;l(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;if(l(t,'Missing "range" argument'),Number.isInteger(r)&&Math.abs(r)>0x100000000)n=h(String(r));else if("bigint"==typeof r){n=String(r);let e=BigInt(2)**BigInt(32);(r>e||r<-e)&&(n=h(n)),n+="n"}else n=i(r);return`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:m,aggregateTwoErrors:g(y),hideStackFrames:g,codes:c}},84971:e=>{e.exports=a,a.default=a,a.stable=d,a.stableStringify=d;var t="[...]",r="[Circular]",n=[],i=[];function o(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function a(e,t,r,a){void 0===a&&(a=o()),f(e,"",0,[],void 0,0,a);try{s=0===i.length?JSON.stringify(e,t,r):JSON.stringify(e,l(t),r)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==n.length;){var s,u=n.pop();4===u.length?Object.defineProperty(u[0],u[1],u[3]):u[0][u[1]]=u[2]}}return s}function s(e,t,r,o){var a=Object.getOwnPropertyDescriptor(o,r);void 0!==a.get?a.configurable?(Object.defineProperty(o,r,{value:e}),n.push([o,r,t,a])):i.push([t,r,e]):(o[r]=e,n.push([o,r,t]))}function f(e,n,i,o,a,u,d){if(u+=1,"object"==typeof e&&null!==e){for(c=0;c<o.length;c++)if(o[c]===e)return void s(r,e,n,a);if(void 0!==d.depthLimit&&u>d.depthLimit||void 0!==d.edgesLimit&&i+1>d.edgesLimit)return void s(t,e,n,a);if(o.push(e),Array.isArray(e))for(c=0;c<e.length;c++)f(e[c],c,c,o,e,u,d);else{var c,l=Object.keys(e);for(c=0;c<l.length;c++){var h=l[c];f(e[h],h,c,o,e,u,d)}}o.pop()}}function u(e,t){return e<t?-1:+(e>t)}function d(e,t,r,a){void 0===a&&(a=o());var s,f=c(e,"",0,[],void 0,0,a)||e;try{s=0===i.length?JSON.stringify(f,t,r):JSON.stringify(f,l(t),r)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==n.length;){var u=n.pop();4===u.length?Object.defineProperty(u[0],u[1],u[3]):u[0][u[1]]=u[2]}}return s}function c(e,i,o,a,f,d,l){if(d+=1,"object"==typeof e&&null!==e){for(h=0;h<a.length;h++)if(a[h]===e)return void s(r,e,i,f);try{if("function"==typeof e.toJSON)return}catch(e){return}if(void 0!==l.depthLimit&&d>l.depthLimit||void 0!==l.edgesLimit&&o+1>l.edgesLimit)return void s(t,e,i,f);if(a.push(e),Array.isArray(e))for(h=0;h<e.length;h++)c(e[h],h,h,a,e,d,l);else{var h,p={},b=Object.keys(e).sort(u);for(h=0;h<b.length;h++){var g=b[h];c(e[g],g,h,a,e,d,l),p[g]=e[g]}if(void 0===f)return p;n.push([f,i,e]),f[i]=p}a.pop()}}function l(e){return e=void 0!==e?e:function(e,t){return t},function(t,r){if(i.length>0)for(var n=0;n<i.length;n++){var o=i[n];if(o[1]===t&&o[0]===r){r=o[2],i.splice(n,1);break}}return e.call(this,t,r)}}},85125:(e,t,r)=>{"use strict";var n,i=r(73442),o=r(48744)(),a=r(71355),s=r(10221);if(o){var f=i("RegExp.prototype.exec"),u={},d=function(){throw u}
9,c={toString:d,valueOf:d};"symbol"==typeof Symbol.toPrimitive&&(c[Symbol.toPrimitive]=d),n=function(e){if(!e||"object"!=typeof e)return!1;var t=s(e,"lastIndex");if(!(t&&a(t,"value")))return!1;try{f(e,c)}catch(e){return e===u}}}else{var l=i("Object.prototype.toString"),h="[object RegExp]";n=function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&l(e)===h}}e.exports=n},86558:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},87962:e=>{"use strict";e.exports=Math.round},91125:(e,t,r)=>{"use strict";var n=r(95987),i=n.assert,o=n.parseBytes,a=n.cachedProperty;function s(e,t){this.eddsa=e,this._secret=o(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=o(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},a(s,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),a(s,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),a(s,"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}),a(s,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),a(s,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),a(s,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),s.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),e)},s.prototype.getPublic=function(e){return n.encode(this.pubBytes(),e)},e.exports=s},91137:(e,t,r)=>{"use strict";var n=r(73442),i=r(85125),o=n("RegExp.prototype.exec"),a=r(65865);e.exports=function(e){if(!i(e))throw new a("`regex` must be a RegExp");return function(t){return null!==o(e,t)}}},91631:e=>{"use strict";e.exports={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}"`;else 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"{}"}}}},92401:(e,t,r)=>{"use strict";var n=("undefined"!=typeof JSON?JSON:r(80815)).stringify,i=r(92738),o=r(66825),a=r(23411),s=r(73442),f=s("Array.prototype.join"),u=s("Array.prototype.indexOf"),d=s("Array.prototype.splice"),c=s("Array.prototype.sort"),l=function(e,t){for(var r="",n=0;n<e;n+=1)r+=t;return r},h=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 s=!!t&&"boolean"==typeof t.cycles&&t.cycles,p=t&&t.replacer?a(t.replacer):h;if(t&&void 0!==t.collapseEmpty&&"boolean"!=typeof t.collapseEmpty)throw TypeError("`collapseEmpty` must be a boolean, if provided");var b=!!t&&t.collapseEmpty,g="function"==typeof t?t:t&&t.cmp,y=g&&function(e){var t=g.length>2&&function(t){return e[t]};return function(r,n){return g({key:r,value:e[r]},{key:n,value:e[n]},t?{__proto__:null,get:t}:void 0)}},m=[];return function e(t,a,h,g){var v=r?"\n"+l(g,r):"",w=r?": ":":";if(h&&h.toJSON&&"function"==typeof h.toJSON&&(h=h.toJSON()),void 0!==(h=p(t,a,h))){if("object"!=typeof h||null===h)return n(h);var _=function(e,t){return b&&0===e.length?t:("[]"===t?"[":"{")+f(e,",")+v+("[]"===t?"]":"}")};if(i(h)){for(var S=[],x=0;x<h.length;x++){var A=e(h,x,h[x],g+1)||n(null);S[S.length]=v+r+A}return _(S,"[]")}if(-1!==u(m,h)){if(s)return n("__cycle__");throw TypeError("Converting circular structure to JSON")}m[m.length]=h;for(var M=c(o(h),y&&y(h)),S=[],x=0;x<M.length;x++){var a=M[x],E=e(h,a,h[a],g+1);if(E){var R=n(a)+w+E;S[S.length]=v+r+R}}return d(m,u(m,h),1),_(S,"{}")}}({"":e},"",e,0)}},92738:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},93023:e=>{"use strict";e.exports=Number.isNaN||function(e){return e!=e}},93270: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"}
vendor: 13,446 bytes, line 9
9),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);t.default=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";case 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),a=Math.max(i,o),s=0,f=e.map([t,r],function(t){var r=a-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&&(s=a-Math.min(i,o)),a-=1;a>=s;){if(f[0][a]>f[1][a])return 1;if(f[0][a]===f[1][a]){if(a===s)return 0;a-=1}else if(f[0][a]<f[1][a])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),a=1;a<i;a++)o[a-1]=arguments[a];if(Object.assign)return Object.assign.apply(Object,[e].concat(o));var s=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)s();return e},e.getBrowserAlias=function(e){return n.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return n.BROWSER_MAP[e]||""},e}(),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 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)}}t.default=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()},e=null,a(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}(),e.exports=t.default},91:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n=f(r(92)),i=f(r(93)),o=f(r(94)),a=f(r(95)),s=f(r(17));function f(e){return e&&e.__esModule?e:{default:e}}t.default=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=s.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=s.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=s.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=s.default.find(a.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 s.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 a=e[t];"string"==typeof a?(i[t]=a,o+=1):"object"==typeof a&&(r[t]=a,n+=1)}),n>0){var a=Object.keys(r),f=s.default.find(a,function(e){return t.isOS(e)});if(f){var u=this.satisfies(r[f]);if(void 0!==u)return u}var d=s.default.find(a,function(e){return t.isPlatform(e)});if(d){var c=this.satisfies(r[d]);if(void 0!==c)return c}}if(o>0){var l=Object.keys(i),h=s.default.find(l,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=s.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(s.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}(),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;t.default=[{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)[\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"}
vendor: 7,814 bytes, line 9
9,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)}}}],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);t.default=[{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);
9return{name:o.OS_MAP.PlayStation4,version:t}}}],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);t.default=[{test:[/googlebot/i],describe:function(){return{type:"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}}}],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);t.default=[{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}}],e.exports=t.default}})})},93570: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}}},93864: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 a(e){return e&&e!==r&&o("Expected '"+e+"' instead of '"+r
9+"'"),r=n.charAt(t),t+=1,r}function s(){var e,t="";for("-"===r&&(t="-",a("-"));r>="0"&&r<="9";)t+=r,a();if("."===r)for(t+=".";a()&&r>="0"&&r<="9";)t+=r;if("e"===r||"E"===r)for(t+=r,a(),("-"===r||"+"===r)&&(t+=r,a());r>="0"&&r<="9";)t+=r,a();return isFinite(e=Number(t))||o("Bad number"),e}function f(){var e,t,n,s="";if('"'===r)for(;a();)if('"'===r)return a(),s;else if("\\"===r)if(a(),"u"===r){for(t=0,n=0;t<4&&isFinite(e=parseInt(a(),16));t+=1)n=16*n+e;s+=String.fromCharCode(n)}else if("string"==typeof i[r])s+=i[r];else break;else s+=r;o("Bad string")}function u(){for(;r&&r<=" ";)a()}function d(){switch(r){case"t":return a("t"),a("r"),a("u"),a("e"),!0;case"f":return a("f"),a("a"),a("l"),a("s"),a("e"),!1;case"n":return a("n"),a("u"),a("l"),a("l"),null;default:o("Unexpected '"+r+"'")}}function c(){var e=[];if("["===r){if(a("["),u(),"]"===r)return a("]"),e;for(;r;){if(e.push(h()),u(),"]"===r)return a("]"),e;a(","),u()}}o("Bad array")}function l(){var e,t={};if("{"===r){if(a("{"),u(),"}"===r)return a("}"),t;for(;r;){if(e=f(),u(),a(":"),Object.prototype.hasOwnProperty.call(t,e)&&o('Duplicate key "'+e+'"'),t[e]=h(),u(),"}"===r)return a("}"),t;a(","),u()}}o("Bad object")}function h(){switch(u(),r){case"{":return l();case"[":return c();case'"':return f();case"-":return s();default:return r>="0"&&r<="9"?s():d()}}e.exports=function(e,i){var a;return n=e,t=0,r=" ",a=h(),u(),r&&o("Syntax error"),"function"==typeof i?function e(t,r){var n,o,a=t[r];if(a&&"object"==typeof a)for(n in h)Object.prototype.hasOwnProperty.call(a,n)&&(void 0===(o=e(a,n))?delete a[n]:a[n]=o);return i.call(t,r,a)}({"":a},""):a}},95084:(e,t,r)=>{"use strict";let n,i=r(99742),{ArrayPrototypeSlice:o,Error:a,FunctionPrototypeSymbolHasInstance:s,ObjectDefineProperty:f,ObjectDefineProperties:u,ObjectSetPrototypeOf:d,StringPrototypeToLowerCase:c,Symbol:l,SymbolHasInstance:h}=r(21328);e.exports=C,C.WritableState=N;let{EventEmitter:p}=r(69319),b=r(27239).Stream,{Buffer:g}=r(82909),y=r(67090),{addAbortSignal:m}=r(56315),{getHighWaterMark:v,getDefaultHighWaterMark:w}=r(50677),{ERR_INVALID_ARG_TYPE:_,ERR_METHOD_NOT_IMPLEMENTED:S,ERR_MULTIPLE_CALLBACK:x,ERR_STREAM_CANNOT_PIPE:A,ERR_STREAM_DESTROYED:M,ERR_STREAM_ALREADY_FINISHED:E,ERR_STREAM_NULL_VALUES:R,ERR_STREAM_WRITE_AFTER_END:O,ERR_UNKNOWN_ENCODING:I}=r(83207).codes,{errorOrDestroy:P}=y;function k(){}d(C.prototype,b.prototype),d(C,b);let T=l("kOnFinished");function N(e,t,n){"boolean"!=typeof n&&(n=t instanceof r(78794)),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=q.bind(void 0,t),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,j(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[T]=[]}function j(e){e.buffered=[],e.bufferedIndex=0,e.allBuffers=!0,e.allNoop=!0}function C(e){let t=this instanceof r(78794);if(!t&&!s(C,this))return new C(e);this._writableState=new N(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&&m(e.signal,this)),b.call(this,e),y.construct(this,()=>{let e=this._writableState;e.writing||$(this,e),K(this,e)})}function B(e,t,r,n){let o,a=e._writableState;if("function"==typeof r)n=r,r=a.defaultEncoding;else{if(r){if("buffer"!==r&&!g.isEncoding(r))throw new I(r)}else r=a.defaultEncoding;"function"!=typeof n&&(n=k)}if(null===t)throw new R;if(!a.objectMode)if("string"==typeof t)!1!==a.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(a.ending?o=new O:a.destroyed&&(o=new M("write")),o)?(i.nextTick(n,o),P(e,o,!0),o):(a.pendingcb++,L(e,a,t,r,n))}function L(e,t,r,n,i){let o=t.objectMode?1:r.length;t.length+=o;let a=t.length<t.highWaterMark;return a||(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!==k&&(t.allNoop=!1)):(t.writelen=o,t.writecb=i,t.writing=!0,t.sync=!0,e._write(r,n,t.onwrite),t.sync=!1),a&&!t.errored&&!t.destroyed}function F(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new M("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function D(e,t,r,n){--t.pendingcb,n(r),W(t),P(e,r)}function q(e,t){let r=e._writableState,n=r.sync,o=r.writecb;if("function"!=typeof o)return void P(e,new x);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(D,e,r,t,o):D(e,r,t,o)):(r.buffered.length>r.bufferedIndex&&$(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(U,r.afterWriteTickInfo)):z(e,r,1,o))}function U({stream:e,state:t,count:r,cb:n}){return t.afterWriteTickInfo=null,z(e,t,r,n)}
9function z(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&&W(t),K(e,t)}function W(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)?t:new M("write"))}let n=e[T].splice(0);for(let t=0;t<n.length;t++)n[t](null!=(r=e.errored)?r:new M("end"));j(e)}function $(e,t){if(t.corked||t.bufferProcessing||t.destroyed||!t.constructed)return;let{buffered:r,bufferedIndex:n,objectMode:i}=t,a=r.length-n;if(!a)return;let s=n;if(t.bufferProcessing=!0,a>1&&e._writev){t.pendingcb-=a-1;let n=t.allNoop?k:e=>{for(let t=s;t<r.length;++t)r[t].callback(e)},i=t.allNoop&&0===s?r:o(r,s);i.allBuffers=t.allBuffers,F(e,t,!0,t.length,i,"",n),j(t)}else{do{let{chunk:n,encoding:o,callback:a}=r[s];r[s++]=null,F(e,t,!1,i?1:n.length,n,o,a)}while(s<r.length&&!t.writing);s===r.length?j(t):s>256?(r.splice(0,s),t.bufferedIndex=0):t.bufferedIndex=s}t.bufferProcessing=!1}function H(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;
9function n(n){if(r)return void P(e,null!=n?n:x());if(r=!0,t.pendingcb--,n){let r=t[T].splice(0);for(let e=0;e<r.length;e++)r[e](n);P(e,n,t.sync)}else H(t)&&(t.prefinished=!0,e.emit("prefinish"),t.pendingcb++,i.nextTick(J,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 K(e,t,r){H(t)&&(G(e,t),0===t.pendingcb&&(r?(t.pendingcb++,i.nextTick((e,t)=>{H(t)?J(e,t):t.pendingcb--},e,t)):H(t)&&(t.pendingcb++,J(e,t))))}function J(e,t){t.pendingcb--,t.finished=!0;let r=t[T].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()}}N.prototype.getBuffer=function(){return o(this.buffered,this.bufferedIndex)},f(N.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}}),f(C,h,{__proto__:null,value:function(e){return!!s(this,e)||this===C&&e&&e._writableState instanceof N}}),C.prototype.pipe=function(){P(this,new A)},C.prototype.write=function(e,t,r){return!0===B(this,e,t,r)},C.prototype.cork=function(){this._writableState.corked++},C.prototype.uncork=function(){let e=this._writableState;e.corked&&(e.corked--,e.writing||$(this,e))},C.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=c(e)),!g.isEncoding(e))throw new I(e);return this._writableState.defaultEncoding=e,this},C.prototype._write=function(e,t,r){if(this._writev)this._writev([{chunk:e,encoding:t}],r);else throw new S("_write()")},C.prototype._writev=null,C.prototype.end=function(e,t,r){let n,o=this._writableState;if("function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e){let r=B(this,e,t);r instanceof a&&(n=r)}return o.corked&&(o.corked=1,this.uncork()),n||(o.errored||o.ending?o.finished?n=new E("end"):o.destroyed&&(n=new M("end")):(o.ending=!0,K(this,o,!0),o.ended=!0)),"function"==typeof r&&(n||o.finished?i.nextTick(r,n):o[T].push(r)),this},u(C.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 Z=y.destroy;function Y(){return void 0===n&&(n={}),n}C.prototype.destroy=function(e,t){let r=this._writableState;return!r.destroyed&&(r.bufferedIndex<r.buffered.length||r[T].length)&&i.nextTick(W,r),Z.call(this,e,t),this},C.prototype._undestroy=y.undestroy,C.prototype._destroy=function(e,t){t(e)},C.prototype[p.captureRejectionSymbol]=function(e){this.destroy(e)},C.fromWeb=function(e,t){return Y().newStreamWritableFromWritableStream(e,t)},C.toWeb=function(e){return Y().newWritableStreamFromStreamWritable(e)}},95295:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(77785);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},95560:(e,t,r)=>{e=r.nmd(e);var n=200,i="__lodash_hash_undefined__",o=800,a=16,s=0x1fffffffffffff,f="[object Arguments]",u="[object Array]",d="[object AsyncFunction]",c="[object Boolean]",l="[object Date]",h="[object Error]",p="[object Function]",b="[object GeneratorFunction]",g="[object Map]",y="[object Number]",m="[object Null]",v="[object Object]",w="[object Proxy]",_="[object RegExp]",S="[object Set]",x="[object String]",A="[object Undef
9ined]",M="[object WeakMap]",E="[object ArrayBuffer]",R="[object DataView]",O="[object Float64Array]",I="[object Int8Array]",P="[object Int16Array]",k="[object Int32Array]",T="[object Uint8Array]",N="[object Uint8ClampedArray]",j="[object Uint16Array]",C="[object Uint32Array]",B=/[\\^$.*+?()[\]{}|]/g,L=/^\[object .+?Constructor\]$/,F=/^(?:0|[1-9]\d*)$/,D={};D["[object Float32Array]"]=D[O]=D[I]=D[P]=D[k]=D[T]=D[N]=D[j]=D[C]=!0,D[f]=D[u]=D[E]=D[c]=D[R]=D[l]=D[h]=D[p]=D[g]=D[y]=D[v]=D[_]=D[S]=D[x]=D[M]=!1;var q="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,U="object"==typeof self&&self&&self.Object===Object&&self,z=q||U||Function("return this")(),W=t&&!t.nodeType&&t,$=W&&e&&!e.nodeType&&e,H=$&&$.exports===W,V=H&&q.process,G=function(){try{var e=$&&$.require&&$.require("util").types;if(e)return e;return V&&V.binding&&V.binding("util")}catch(e){}}(),K=G&&G.isTypedArray;function J(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 Z(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function Y(e){return function(t){return e(t)}}function X(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=z["__core-js_shared__"],ei=et.toString,eo=er.hasOwnProperty,ea=function(){var e=/[^.]+$/.exec(en&&en.keys&&en.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),es=er.toString,ef=ei.call(Object),eu=RegExp("^"+ei.call(eo).replace(B,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ed=H?z.Buffer:void 0,ec=z.Symbol,el=z.Uint8Array,eh=ed?ed.allocUnsafe:void 0,ep=Q(Object.getPrototypeOf,Object),eb=Object.create,eg=er.propertyIsEnumerable,ey=ee.splice,em=ec?ec.toStringTag:void 0,ev=function(){try{var e=tf(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),ew=ed?ed.isBuffer:void 0,e_=Math.max,eS=Date.now,ex=tf(z,"Map"),eA=tf(Object,"create"),eM=function(){function e(){}return function(t){if(!tk(t))return{};if(eb)return eb(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function eE(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 eR(){this.__data__=eA?eA(null):{},this.size=0}function eO(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t}function eI(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 eP(e){var t=this.__data__;return eA?void 0!==t[e]:eo.call(t,e)}function ek(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=eA&&void 0===t?i:t,this}function eT(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 eN(){this.__data__=[],this.size=0}function ej(e){var t=this.__data__,r=eQ(t,e);return!(r<0)&&(r==t.length-1?t.pop():ey.call(t,r,1),--this.size,!0)}function eC(e){var t=this.__data__,r=eQ(t,e);return r<0?void 0:t[r][1]}function eB(e){return eQ(this.__data__,e)>-1}function eL(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 eF(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 eD(){this.size=0,this.__data__={hash:new eE,map:new(ex||eT),string:new eE}}function eq(e){var t=ts(this,e).delete(e);return this.size-=!!t,t}function eU(e){return ts(this,e).get(e)}function ez(e){return ts(this,e).has(e)}function eW(e,t){var r=ts(this,e),n=r.size;return r.set(e,t),this.size+=+(r.size!=n),this}function e$(e){var t=this.__data__=new eT(e);this.size=t.size}function eH(){this.__data__=new eT,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 eK(e){return this.__data__.has(e)}function eJ(e,t){var r=this.__data__;if(r instanceof eT){var i=r.__data__;if(!ex||i.length<n-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new eF(i)}return r.set(e,t),this.size=r.size,this}function eZ(e,t){var r=tM(e),n=!r&&tA(e),i=!r&&!n&&tO(e),o=!r&&!n&&!i&&tj(e),a=r||n||i||o,s=a?Z(e.length,String):[],f=s.length;for(var u in e)(t||eo.call(e,u))&&!(a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||tc(u,f)))&&s.push(u);return s}function eY(e,t,r){(void 0===r||tx(e[t],r))&&(void 0!==r||t in e)||e0(e,t,r)}function eX(e,t,r){var n=e[t];eo.call(e,t)&&tx(n,r)&&(void 0!==r||t in e)||e0(e,t,r)}function eQ(e,t){for(var r=e.length;r--;)if(tx(e[r][0],t))return r;return -1}
9function e0(e,t,r){"__proto__"==t&&ev?ev(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}eE.prototype.clear=eR,eE.prototype.delete=eO,eE.prototype.get=eI,eE.prototype.has=eP,eE.prototype.set=ek,eT.prototype.clear=eN,eT.prototype.delete=ej,eT.prototype.get=eC,eT.prototype.has=eB,eT.prototype.set=eL,eF.prototype.clear=eD,eF.prototype.delete=eq,eF.prototype.get=eU,eF.prototype.has=ez,eF.prototype.set=eW,e$.prototype.clear=eH,e$.prototype.delete=eV,e$.prototype.get=eG,e$.prototype.has=eK,e$.prototype.set=eJ;var e1=ta();function e2(e){return null==e?void 0===e?A:m:em&&em in Object(e)?tu(e):ty(e)}function e3(e){return tT(e)&&e2(e)==f}function e6(e){return!(!tk(e)||tp(e))&&(tI(e)?eu:L).test(tS(e))}function e4(e){return tT(e)&&tP(e.length)&&!!D[e2(e)]}function e8(e){if(!tk(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 e9(e,t,r,n,i){e!==t&&e1(t,function(o,a){if(i||(i=new e$),tk(o))e5(e,t,a,r,e9,n,i);else{var s=n?n(tv(e,a),o,a+"",e,t,i):void 0;void 0===s&&(s=o),eY(e,a,s)}},tB)}function e5(e,t,r,n,i,o,a){var s=tv(e,r),f=tv(t,r),u=a.get(f);if(u)return void eY(e,r,u);var d=o?o(s,f,r+"",e,t,a):void 0,c=void 0===d;if(c){var l=tM(f),h=!l&&tO(f),p=!l&&!h&&tj(f);d=f,l||h||p?tM(s)?d=s:tR(s)?d=tn(s):h?(c=!1,d=te(f,!0)):p?(c=!1,d=tr(f,!0)):d=[]:tN(f)||tA(f)?(d=s,tA(s)?d=tC(s):(!tk(s)||tI(s))&&(d=td(f))):c=!1}c&&(a.set(f,d),i(d,f,n,o,a),a.delete(f)),eY(e,r,d)}function e7(e,t){return tw(tm(e,t,tD),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 el(t).set(new el(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,a=t.length;++o<a;){var s=t[o],f=n?n(r[s],e[s],s,r,e):void 0;void 0===f&&(f=e[s]),i?e0(r,s,f):eX(r,s,f)}return r}function to(e){return e7(function(t,r){var n=-1,i=r.length,o=i>1?r[i-1]:void 0,a=i>2?r[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&tl(r[0],r[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++n<i;){var s=r[n];s&&e(t,s,n,o)}return t})}function ta(e){return function(t,r,n){for(var i=-1,o=Object(t),a=n(t),s=a.length;s--;){var f=a[e?s:++i];if(!1===r(o[f],f,o))break}return t}}function ts(e,t){var r=e.__data__;return th(t)?r["string"==typeof t?"string":"hash"]:r.map}function tf(e,t){var r=X(e,t);return e6(r)?r:void 0}function tu(e){var t=eo.call(e,em),r=e[em];try{e[em]=void 0;var n=!0}catch(e){}var i=es.call(e);return n&&(t?e[em]=r:delete e[em]),i}function td(e){return"function"!=typeof e.constructor||tb(e)?{}:eM(ep(e))}function tc(e,t){var r=typeof e;return!!(t=null==t?s:t)&&("number"==r||"symbol"!=r&&F.test(e))&&e>-1&&e%1==0&&e<t}function tl(e,t,r){if(!tk(r))return!1;var n=typeof t;return("number"==n?!!(tE(r)&&tc(t,r.length)):"string"==n&&t in r)&&tx(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!!ea&&ea 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 ty(e){return es.call(e)}function tm(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),a=Array(o);++i<o;)a[i]=n[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=n[i];return s[t]=r(a),J(e,this,s)}}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:tF(t),writable:!0})}:tD);function t_(e){var t=0,r=0;return function(){var n=eS(),i=a-(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 tx(e,t){return e===t||e!=e&&t!=t}var tA=e3(function(){return arguments}())?e3:function(e){return tT(e)&&eo.call(e,"callee")&&!eg.call(e,"callee")},tM=Array.isArray;function tE(e){return null!=e&&tP(e.length)&&!tI(e)}function tR(e){return tT(e)&&tE(e)}var tO=ew||tq;function tI(e){if(!tk(e))return!1;var t=e2(e);return t==p||t==b||t==d||t==w}function tP(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=s}function tk(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function tT(e){return null!=e&&"object"==typeof e}function tN(e){if(!tT(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)==ef}var tj=K?Y(K):e4;function tC(e){return ti(e,tB(e))}function tB(e){return tE(e)?eZ(e,!0):e8(e)}var tL=to(function(e,t,r){e9(e,t,r)});function tF(e){return function(){return e}}function tD(e){return e}function tq(){return!1}e.exports=tL},95987:(e,t,r)=>{"use strict";var n=t,i=r(23764),o=r(29005),a=r(34243);function s(e){return"string"==typeof e?n.toArray(e,"hex"):e}n.assert=o,n.toArray=a.toArray,n.zero2=a.zero2,n.toHex=a.toHex,n.encode=a.encode,n.getNAF=function(e,t,r){var n=Array(Math.max(e.bitLength(),r)+1);for(a=0;a<n.length;a+=1)n[a]=0;var i=1<<t+1,o=e.clone();for(a=0;a<n.length;a++){var a,s,f=o.andln(i-1);o.isOdd()?(s=f>(i>>1)-1?(i>>1)-f:f,o.isubn(s)):s=0,n[a]=s,o.iushrn(1)}return n},n.getJSF=function(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,a,s,f=e.andln(3)+n&3,u=t.andln(3)+i&3;3===f&&(f=-1),3===u&&(u=-1),a=(1&f)==0?0:(3==(o=e.andln(7)+n&7)||5===o)&&2===u?-f:f,r[0].push(a),s=(1&u)==0?0:(3==(o=t.andln(7)+i&7)||5===o)&&2===f?-u:u,r[1].push(s),2*n===a+1&&(n=1-n),2*i===s+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=s,n.intFromLE=function(e){return new i(e,"hex","le")}},96058:(e,t,r)=>{"use strict";var n=r(98857),i=function(){return!!n};i.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=i}
9,96512:(e,t,r)=>{"use strict";var n,i=r(73442),o=r(91137)(/^\s*(?:function)?\*/),a=r(48744)(),s=r(34816),f=i("Object.prototype.toString"),u=i("Function.prototype.toString"),d=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch(e){}};e.exports=function(e){if("function"!=typeof e)return!1;if(o(u(e)))return!0;if(!a)return"[object GeneratorFunction]"===f(e);if(!s)return!1;if(void 0===n){var t=d();n=!!t&&s(t)}return s(e)===n}},97064:(e,t,r)=>{"use strict";let n=r(3096),i=r(42523),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},97212:(e,t,r)=>{"use strict";let n,i=r(99742),{AbortError:o,codes:a}=r(83207),{ERR_INVALID_ARG_TYPE:s,ERR_STREAM_PREMATURE_CLOSE:f}=a,{kEmptyObject:u,once:d}=r(16816),{validateAbortSignal:c,validateFunction:l,validateObject:h,validateBoolean:p}=r(6533),{Promise:b,PromisePrototypeThen:g,SymbolDispose:y}=r(21328),{isClosed:m,isReadable:v,isReadableNodeStream:w,isReadableStream:_,isReadableFinished:S,isReadableErrored:x,isWritable:A,isWritableNodeStream:M,isWritableStream:E,isWritableFinished:R,isWritableErrored:O,isNodeStream:I,willEmitClose:P,kIsClosedPromise:k}=r(47885);function T(e){return e.setHeader&&"function"==typeof e.abort}let N=()=>{};function j(e,t,a){var p,b;if(2==arguments.length?(a=t,t=u):null==t?t=u:h(t,"options"),l(a,"callback"),
9c(t.signal,"options.signal"),a=d(a),_(e)||E(e))return C(e,t,a);if(!I(e))throw new s("stream",["ReadableStream","WritableStream","Stream"],e);let g=null!=(p=t.readable)?p:w(e),k=null!=(b=t.writable)?b:M(e),j=e._writableState,B=e._readableState,L=()=>{e.writable||q()},F=P(e)&&w(e)===g&&M(e)===k,D=R(e,!1),q=()=>{D=!0,e.destroyed&&(F=!1),F&&(!e.readable||g)||(!g||U)&&a.call(e)},U=S(e,!1),z=()=>{U=!0,e.destroyed&&(F=!1),F&&(!e.writable||k)||(!k||D)&&a.call(e)},W=t=>{a.call(e,t)},$=m(e),H=()=>{$=!0;let t=O(e)||x(e);return t&&"boolean"!=typeof t?a.call(e,t):g&&!U&&w(e,!0)&&!S(e,!1)||k&&!D&&!R(e,!1)?a.call(e,new f):void a.call(e)},V=()=>{$=!0;let t=O(e)||x(e);if(t&&"boolean"!=typeof t)return a.call(e,t);a.call(e)},G=()=>{e.req.on("finish",q)};T(e)?(e.on("complete",q),F||e.on("abort",H),e.req?G():e.on("request",G)):k&&!j&&(e.on("end",L),e.on("close",L)),F||"boolean"!=typeof e.aborted||e.on("aborted",H),e.on("end",z),e.on("finish",q),!1!==t.error&&e.on("error",W),e.on("close",H),$?i.nextTick(H):null!=j&&j.errorEmitted||null!=B&&B.errorEmitted?F||i.nextTick(V):!g&&(!F||v(e))&&(D||!1===A(e))||!k&&(!F||A(e))&&(U||!1===v(e))?i.nextTick(V):B&&e.req&&e.aborted&&i.nextTick(V);let K=()=>{a=N,e.removeListener("aborted",H),e.removeListener("complete",q),e.removeListener("abort",H),e.removeListener("request",G),e.req&&e.req.removeListener("finish",q),e.removeListener("end",L),e.removeListener("close",L),e.removeListener("finish",q),e.removeListener("end",z),e.removeListener("error",W),e.removeListener("close",H)};if(t.signal&&!$){let s=()=>{let r=a;K(),r.call(e,new o(void 0,{cause:t.signal.reason}))};if(t.signal.aborted)i.nextTick(s);else{let i=(n=n||r(16816).addAbortListener)(t.signal,s),o=a;a=d((...t)=>{i[y](),o.apply(e,t)})}}return K}function C(e,t,a){let s=!1,f=N;if(t.signal)if(f=()=>{s=!0,a.call(e,new o(void 0,{cause:t.signal.reason}))},t.signal.aborted)i.nextTick(f);else{let i=(n=n||r(16816).addAbortListener)(t.signal,f),o=a;a=d((...t)=>{i[y](),o.apply(e,t)})}let u=(...t)=>{s||i.nextTick(()=>a.apply(e,t))};return g(e[k].promise,u,u),N}function B(e,t){var r;let n=!1;return null===t&&(t=u),null!=(r=t)&&r.cleanup&&(p(t.cleanup,"cleanup"),n=t.cleanup),new b((r,i)=>{let o=j(e,t,e=>{n&&o(),e?i(e):r()})})}e.exports=j,e.exports.finished=B},97264:e=>{"use strict";var t,r,n=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},i(function(){throw 42},null,t)}catch(e){e!==r&&(i=null)}else i=null;var o=/^\s*class\b/,a=function(e){try{var t=n.call(e);return o.test(t)}catch(e){return!1}},s=function(e){try{if(a(e))return!1;return n.call(e),!0}catch(e){return!1}},f=Object.prototype.toString,u="[object Object]",d="[object Function]",c="[object GeneratorFunction]",l="[object HTMLAllCollection]",h="[object HTML document.all class]",p="[object HTMLCollection]",b="function"==typeof Symbol&&!!Symbol.toStringTag,g=!(0 in[,]),y=function(){return!1};if("object"==typeof document){var m=document.all;f.call(m)===f.call(document.all)&&(y=function(e){if((g||!e)&&(void 0===e||"object"==typeof e))try{var t=f.call(e);return(t===l||t===h||t===p||t===u)&&null==e("")}catch(e){}return!1})}e.exports=i?function(e){if(y(e))return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;try{i(e,null,t)}catch(e){if(e!==r)return!1}return!a(e)&&s(e)}:function(e){if(y(e))return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;if(b)return s(e);if(a(e))return!1;var t=f.call(e);return(t===d||t===c||!!/^\[object HTML/.test(t))&&s(e)}},97590:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ethErrors=void 0;let n=r(50943),i=r(45834),o=r(66809);function a(e,t){let[r,o]=f(t);return new n.EthereumRpcError(e,r||i.getMessageFromCode(e),o)}function s(e,t){let[r,o]=f(t);return new n.EthereumProviderError(e,r||i.getMessageFromCode(e),o)}function f(e){if(e){if("string"==typeof e)return[e];else if("object"==typeof e&&!Array.isArray(e)){let{message:t,data:r}=e;
9if(t&&"string"!=typeof t)throw Error("Must specify string message.");return[t||void 0,r]}}return[]}t.ethErrors={rpc:{parse:e=>a(o.errorCodes.rpc.parse,e),invalidRequest:e=>a(o.errorCodes.rpc.invalidRequest,e),invalidParams:e=>a(o.errorCodes.rpc.invalidParams,e),methodNotFound:e=>a(o.errorCodes.rpc.methodNotFound,e),internal:e=>a(o.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 <= -32005');return a(t,e)},invalidInput:e=>a(o.errorCodes.rpc.invalidInput,e),resourceNotFound:e=>a(o.errorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>a(o.errorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>a(o.errorCodes.rpc.transactionRejected,e),methodNotSupported:e=>a(o.errorCodes.rpc.methodNotSupported,e),limitExceeded:e=>a(o.errorCodes.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>s(o.errorCodes.provider.userRejectedRequest,e),unauthorized:e=>s(o.errorCodes.provider.unauthorized,e),unsupportedMethod:e=>s(o.errorCodes.provider.unsupportedMethod,e),disconnected:e=>s(o.errorCodes.provider.disconnected,e),chainDisconnected:e=>s(o.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)}}}},97711:(e,t,r)=>{"use strict";var n=r(23764),i=r(95987),o=i.assert;function a(e,t){if(e instanceof a)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 s(){this.place=0}function f(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4||0===e[t.place])return!1;for(var i=0,o=0,a=t.place;o<n;o++,a++)i<<=8,i|=e[a],i>>>=0;return!(i<=127)&&(t.place=a,i)}function u(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 d(e,t){if(t<128)return void e.push(t);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=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;var o=f(e,r);if(!1===o||o+r.place!==e.length||2!==e[r.place++])return!1;var a=f(e,r);if(!1===a||(128&e[r.place])!=0)return!1;var u=e.slice(r.place,a+r.place);if(r.place+=a,2!==e[r.place++])return!1;var d=f(e,r);if(!1===d||e.length!==d+r.place||(128&e[r.place])!=0)return!1;var c=e.slice(r.place,d+r.place);if(0===u[0])if(!(128&u[1]))return!1;else u=u.slice(1);if(0===c[0])if(!(128&c[1]))return!1;else c=c.slice(1);return this.r=new n(u),this.s=new n(c),this.recoveryParam=null,!0},a.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=u(t),r=u(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var n=[2];d(n,t.length),(n=n.concat(t)).push(2),d(n,r.length);var o=n.concat(r),a=[48];return d(a,o.length),a=a.concat(o),i.encode(a,e)}},98857:e=>{"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},99782:(e,t,r)=>{"use strict";var n=r(95987),i=r(23764),o=r(93570),a=r(31183),s=n.assert;function f(e){this.twisted=(0|e.a)!=1,this.mOneA=this.twisted&&(0|e.a)==-1,this.extended=this.mOneA,a.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),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=(0|e.c)==1}function u(e,t,r,n,o){a.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()))))}
vendor: 5,008 bytes, line 9
9o(f,a),e.exports=f,f.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},f.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},f.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},f.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)),a=n.redMul(o.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw Error("invalid point");var f=s.fromRed().isOdd();return(t&&!f||!t&&f)&&(s=s.redNeg()),this.point(e,s)},f.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),a=n.redMul(o.redInvm());if(0===a.cmp(this.zero))if(!t)return this.point(this.zero,e);else throw Error("invalid point");var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},f.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(u,a.BasePoint),f.prototype.pointFromJSON=function(e){return u.fromJSON(this,e)},f.prototype.point=function(e,t,r,n){return new u(this,e,t,r,n)},u.fromJSON=function(e,t){return new u(e,t[0],t[1],t[2])},u.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)+">"},u.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},u.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),a=o.redSub(r),s=n.redSub(t),f=i.redMul(a),u=o.redMul(s),d=i.redMul(s),c=a.redMul(o);return this.curve.point(f,u,c,d)},u.prototype._projDbl=function(){var e,t,r,n,i,o,a=this.x.redAdd(this.y).redSqr(),s=this.x.redSqr(),f=this.y.redSqr();if(this.curve.twisted){var u=(n=this.curve._mulA(s)).redAdd(f);this.zOne?(e=a.redSub(s).redSub(f).redMul(u.redSub(this.curve.two)),t=u.redMul(n.redSub(f)),r=u.redSqr().redSub(u).redSub(u)):(i=this.z.redSqr(),o=u.redSub(i).redISub(i),e=a.redSub(s).redISub(f).redMul(o),t=u.redMul(n.redSub(f)),r=u.redMul(o))}else n=s.redAdd(f),i=this.curve._mulC(this.z).redSqr(),o=n.redSub(i).redSub(i),e=this.curve._mulC(a.redISub(n)).redMul(o),t=this.curve._mulC(n).redMul(s.redISub(f)),r=n.redMul(o);return this.curve.point(e,t,r)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},u.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),a=i.redSub(n),s=i.redAdd(n),f=r.redAdd(t),u=o.redMul(a),d=s.redMul(f),c=o.redMul(f),l=a.redMul(s);return this.curve.point(u,d,l,c)},u.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),f=i.redSub(s),u=i.redAdd(s),d=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),c=n.redMul(f).redMul(d);return this.curve.twisted?(t=n.redMul(u).redMul(a.redSub(this.curve._mulA(o))),r=f.redMul(u)):(t=n.redMul(u).redMul(a.redSub(o)),r=this.curve._mulC(f).redMul(u)),this.curve.point(c,t,r)},u.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},u.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},u.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},u.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},u.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},u.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()},u.prototype.getY=function(){return this.normalize(),this.y.fromRed()},u.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},u.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}},u.prototype.toP=u.prototype.normalize,u.prototype.mixedAdd=u.prototype.add}}]);
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.