@smartledger/bsv 7.5.3 → 7.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +44 -0
- package/README.md +38 -38
- package/bsv-anchor.min.js +8 -8
- package/bsv-didweb.min.js +8 -8
- package/bsv-gdaf.min.js +47 -47
- package/bsv-ltp.min.js +47 -47
- package/bsv-mnemonic.min.js +11 -11
- package/bsv-shamir.min.js +11 -11
- package/bsv-smartcontract.min.js +7 -7
- package/bsv-statuslist.min.js +29 -29
- package/bsv-vcjwt.min.js +10 -10
- package/bsv.bundle.js +47 -47
- package/bsv.min.js +47 -47
- package/docs/MODULE_REFERENCE_COMPLETE.md +27 -27
- package/docs/advanced/UTXO_MANAGER_GUIDE.md +1 -1
- package/docs/getting-started/INSTALLATION.md +23 -23
- package/docs/getting-started/QUICK_START.md +7 -7
- package/docs/migration/FROM_BSV_1_5_6.md +5 -5
- package/package.json +4 -4
- package/version.js +1 -1
package/bsv-anchor.min.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
var bsvAnchor=(()=>{var Ng=Object.create;var bh=Object.defineProperty;var Fg=Object.getOwnPropertyDescriptor;var jg=Object.getOwnPropertyNames;var Hg=Object.getPrototypeOf,Kg=Object.prototype.hasOwnProperty;var Wg=(t,e,r)=>()=>{if(r)throw r[0];try{return t&&(e=t(t=0)),e}catch(i){throw r=[i],i}};var B=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}};var $g=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of jg(e))!Kg.call(t,n)&&n!==r&&bh(t,n,{get:()=>e[n],enumerable:!(i=Fg(e,n))||i.enumerable});return t};var wh=(t,e,r)=>(r=t!=null?Ng(Hg(t)):{},$g(e||!t||!t.__esModule?bh(r,"default",{value:t,enumerable:!0}):r,t));var Sh=B((cE,Eh)=>{b();var He=Eh.exports={},kt,It;function uf(){throw new Error("setTimeout has not been defined")}function hf(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?kt=setTimeout:kt=uf}catch{kt=uf}try{typeof clearTimeout=="function"?It=clearTimeout:It=hf}catch{It=hf}})();function _h(t){if(kt===setTimeout)return setTimeout(t,0);if((kt===uf||!kt)&&setTimeout)return kt=setTimeout,setTimeout(t,0);try{return kt(t,0)}catch{try{return kt.call(null,t,0)}catch{return kt.call(this,t,0)}}}function Gg(t){if(It===clearTimeout)return clearTimeout(t);if((It===hf||!It)&&clearTimeout)return It=clearTimeout,clearTimeout(t);try{return It(t)}catch{try{return It.call(null,t)}catch{return It.call(this,t)}}}var Ht=[],di=!1,Or,po=-1;function Vg(){!di||!Or||(di=!1,Or.length?Ht=Or.concat(Ht):po=-1,Ht.length&&xh())}function xh(){if(!di){var t=_h(Vg);di=!0;for(var e=Ht.length;e;){for(Or=Ht,Ht=[];++po<e;)Or&&Or[po].run();po=-1,e=Ht.length}Or=null,di=!1,Gg(t)}}He.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];Ht.push(new Mh(t,e)),Ht.length===1&&!di&&_h(xh)};function Mh(t,e){this.fun=t,this.array=e}Mh.prototype.run=function(){this.fun.apply(null,this.array)};He.title="browser";He.browser=!0;He.env={};He.argv=[];He.version="";He.versions={};function Kt(){}He.on=Kt;He.addListener=Kt;He.once=Kt;He.off=Kt;He.removeListener=Kt;He.removeAllListeners=Kt;He.emit=Kt;He.prependListener=Kt;He.prependOnceListener=Kt;He.listeners=function(t){return[]};He.binding=function(t){throw new Error("process.binding is not supported")};He.cwd=function(){return"/"};He.chdir=function(t){throw new Error("process.chdir is not supported")};He.umask=function(){return 0}});var Rh=B(vo=>{"use strict";b();vo.byteLength=Zg;vo.toByteArray=Xg;vo.fromByteArray=em;var Ot=[],ut=[],zg=typeof Uint8Array<"u"?Uint8Array:Array,lf="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Cr=0,Bh=lf.length;Cr<Bh;++Cr)Ot[Cr]=lf[Cr],ut[lf.charCodeAt(Cr)]=Cr;var Cr,Bh;ut[45]=62;ut[95]=63;function Ah(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var i=r===e?0:4-r%4;return[r,i]}function Zg(t){var e=Ah(t),r=e[0],i=e[1];return(r+i)*3/4-i}function Yg(t,e,r){return(e+r)*3/4-r}function Xg(t){var e,r=Ah(t),i=r[0],n=r[1],a=new zg(Yg(t,i,n)),s=0,y=n>0?i-4:i,w;for(w=0;w<y;w+=4)e=ut[t.charCodeAt(w)]<<18|ut[t.charCodeAt(w+1)]<<12|ut[t.charCodeAt(w+2)]<<6|ut[t.charCodeAt(w+3)],a[s++]=e>>16&255,a[s++]=e>>8&255,a[s++]=e&255;return n===2&&(e=ut[t.charCodeAt(w)]<<2|ut[t.charCodeAt(w+1)]>>4,a[s++]=e&255),n===1&&(e=ut[t.charCodeAt(w)]<<10|ut[t.charCodeAt(w+1)]<<4|ut[t.charCodeAt(w+2)]>>2,a[s++]=e>>8&255,a[s++]=e&255),a}function Jg(t){return Ot[t>>18&63]+Ot[t>>12&63]+Ot[t>>6&63]+Ot[t&63]}function Qg(t,e,r){for(var i,n=[],a=e;a<r;a+=3)i=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(t[a+2]&255),n.push(Jg(i));return n.join("")}function em(t){for(var e,r=t.length,i=r%3,n=[],a=16383,s=0,y=r-i;s<y;s+=a)n.push(Qg(t,s,s+a>y?y:s+a));return i===1?(e=t[r-1],n.push(Ot[e>>2]+Ot[e<<4&63]+"==")):i===2&&(e=(t[r-2]<<8)+t[r-1],n.push(Ot[e>>10]+Ot[e>>4&63]+Ot[e<<2&63]+"=")),n.join("")}});var qh=B(cf=>{b();cf.read=function(t,e,r,i,n){var a,s,y=n*8-i-1,w=(1<<y)-1,S=w>>1,A=-7,q=r?n-1:0,k=r?-1:1,C=t[e+q];for(q+=k,a=C&(1<<-A)-1,C>>=-A,A+=y;A>0;a=a*256+t[e+q],q+=k,A-=8);for(s=a&(1<<-A)-1,a>>=-A,A+=i;A>0;s=s*256+t[e+q],q+=k,A-=8);if(a===0)a=1-S;else{if(a===w)return s?NaN:(C?-1:1)*(1/0);s=s+Math.pow(2,i),a=a-S}return(C?-1:1)*s*Math.pow(2,a-i)};cf.write=function(t,e,r,i,n,a){var s,y,w,S=a*8-n-1,A=(1<<S)-1,q=A>>1,k=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,C=i?0:a-1,P=i?1:-1,K=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(y=isNaN(e)?1:0,s=A):(s=Math.floor(Math.log(e)/Math.LN2),e*(w=Math.pow(2,-s))<1&&(s--,w*=2),s+q>=1?e+=k/w:e+=k*Math.pow(2,1-q),e*w>=2&&(s++,w/=2),s+q>=A?(y=0,s=A):s+q>=1?(y=(e*w-1)*Math.pow(2,n),s=s+q):(y=e*Math.pow(2,q-1)*Math.pow(2,n),s=0));n>=8;t[r+C]=y&255,C+=P,y/=256,n-=8);for(s=s<<n|y,S+=n;S>0;t[r+C]=s&255,C+=P,s/=256,S-=8);t[r+C-P]|=K*128}});var rt=B(gi=>{"use strict";b();var df=Rh(),vi=qh(),Th=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;gi.Buffer=T;gi.SlowBuffer=am;gi.INSPECT_MAX_BYTES=50;var yo=2147483647;gi.kMaxLength=yo;T.TYPED_ARRAY_SUPPORT=tm();!T.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function tm(){try{let t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch{return!1}}Object.defineProperty(T.prototype,"parent",{enumerable:!0,get:function(){if(T.isBuffer(this))return this.buffer}});Object.defineProperty(T.prototype,"offset",{enumerable:!0,get:function(){if(T.isBuffer(this))return this.byteOffset}});function Wt(t){if(t>yo)throw new RangeError('The value "'+t+'" is invalid for option "size"');let e=new Uint8Array(t);return Object.setPrototypeOf(e,T.prototype),e}function T(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return gf(t)}return Ch(t,e,r)}T.poolSize=8192;function Ch(t,e,r){if(typeof t=="string")return im(t,e);if(ArrayBuffer.isView(t))return nm(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(Ct(t,ArrayBuffer)||t&&Ct(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ct(t,SharedArrayBuffer)||t&&Ct(t.buffer,SharedArrayBuffer)))return vf(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let i=t.valueOf&&t.valueOf();if(i!=null&&i!==t)return T.from(i,e,r);let n=om(t);if(n)return n;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return T.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}T.from=function(t,e,r){return Ch(t,e,r)};Object.setPrototypeOf(T.prototype,Uint8Array.prototype);Object.setPrototypeOf(T,Uint8Array);function Dh(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function rm(t,e,r){return Dh(t),t<=0?Wt(t):e!==void 0?typeof r=="string"?Wt(t).fill(e,r):Wt(t).fill(e):Wt(t)}T.alloc=function(t,e,r){return rm(t,e,r)};function gf(t){return Dh(t),Wt(t<0?0:mf(t)|0)}T.allocUnsafe=function(t){return gf(t)};T.allocUnsafeSlow=function(t){return gf(t)};function im(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!T.isEncoding(e))throw new TypeError("Unknown encoding: "+e);let r=Ph(t,e)|0,i=Wt(r),n=i.write(t,e);return n!==r&&(i=i.slice(0,n)),i}function pf(t){let e=t.length<0?0:mf(t.length)|0,r=Wt(e);for(let i=0;i<e;i+=1)r[i]=t[i]&255;return r}function nm(t){if(Ct(t,Uint8Array)){let e=new Uint8Array(t);return vf(e.buffer,e.byteOffset,e.byteLength)}return pf(t)}function vf(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');let i;return e===void 0&&r===void 0?i=new Uint8Array(t):r===void 0?i=new Uint8Array(t,e):i=new Uint8Array(t,e,r),Object.setPrototypeOf(i,T.prototype),i}function om(t){if(T.isBuffer(t)){let e=mf(t.length)|0,r=Wt(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||wf(t.length)?Wt(0):pf(t);if(t.type==="Buffer"&&Array.isArray(t.data))return pf(t.data)}function mf(t){if(t>=yo)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+yo.toString(16)+" bytes");return t|0}function am(t){return+t!=t&&(t=0),T.alloc(+t)}T.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==T.prototype};T.compare=function(e,r){if(Ct(e,Uint8Array)&&(e=T.from(e,e.offset,e.byteLength)),Ct(r,Uint8Array)&&(r=T.from(r,r.offset,r.byteLength)),!T.isBuffer(e)||!T.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;let i=e.length,n=r.length;for(let a=0,s=Math.min(i,n);a<s;++a)if(e[a]!==r[a]){i=e[a],n=r[a];break}return i<n?-1:n<i?1:0};T.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};T.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return T.alloc(0);let i;if(r===void 0)for(r=0,i=0;i<e.length;++i)r+=e[i].length;let n=T.allocUnsafe(r),a=0;for(i=0;i<e.length;++i){let s=e[i];if(Ct(s,Uint8Array))a+s.length>n.length?(T.isBuffer(s)||(s=T.from(s)),s.copy(n,a)):Uint8Array.prototype.set.call(n,s,a);else if(T.isBuffer(s))s.copy(n,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=s.length}return n};function Ph(t,e){if(T.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||Ct(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);let r=t.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&r===0)return 0;let n=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return yf(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return $h(t).length;default:if(n)return i?-1:yf(t).length;e=(""+e).toLowerCase(),n=!0}}T.byteLength=Ph;function fm(t,e,r){let i=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return gm(this,e,r);case"utf8":case"utf-8":return Lh(this,e,r);case"ascii":return vm(this,e,r);case"latin1":case"binary":return ym(this,e,r);case"base64":return dm(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return mm(this,e,r);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}T.prototype._isBuffer=!0;function Dr(t,e,r){let i=t[e];t[e]=t[r],t[r]=i}T.prototype.swap16=function(){let e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;r<e;r+=2)Dr(this,r,r+1);return this};T.prototype.swap32=function(){let e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let r=0;r<e;r+=4)Dr(this,r,r+3),Dr(this,r+1,r+2);return this};T.prototype.swap64=function(){let e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let r=0;r<e;r+=8)Dr(this,r,r+7),Dr(this,r+1,r+6),Dr(this,r+2,r+5),Dr(this,r+3,r+4);return this};T.prototype.toString=function(){let e=this.length;return e===0?"":arguments.length===0?Lh(this,0,e):fm.apply(this,arguments)};T.prototype.toLocaleString=T.prototype.toString;T.prototype.equals=function(e){if(!T.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:T.compare(this,e)===0};T.prototype.inspect=function(){let e="",r=gi.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};Th&&(T.prototype[Th]=T.prototype.inspect);T.prototype.compare=function(e,r,i,n,a){if(Ct(e,Uint8Array)&&(e=T.from(e,e.offset,e.byteLength)),!T.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),i===void 0&&(i=e?e.length:0),n===void 0&&(n=0),a===void 0&&(a=this.length),r<0||i>e.length||n<0||a>this.length)throw new RangeError("out of range index");if(n>=a&&r>=i)return 0;if(n>=a)return-1;if(r>=i)return 1;if(r>>>=0,i>>>=0,n>>>=0,a>>>=0,this===e)return 0;let s=a-n,y=i-r,w=Math.min(s,y),S=this.slice(n,a),A=e.slice(r,i);for(let q=0;q<w;++q)if(S[q]!==A[q]){s=S[q],y=A[q];break}return s<y?-1:y<s?1:0};function Uh(t,e,r,i,n){if(t.length===0)return-1;if(typeof r=="string"?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,wf(r)&&(r=n?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(n)return-1;r=t.length-1}else if(r<0)if(n)r=0;else return-1;if(typeof e=="string"&&(e=T.from(e,i)),T.isBuffer(e))return e.length===0?-1:kh(t,e,r,i,n);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):kh(t,[e],r,i,n);throw new TypeError("val must be string, number or Buffer")}function kh(t,e,r,i,n){let a=1,s=t.length,y=e.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(t.length<2||e.length<2)return-1;a=2,s/=2,y/=2,r/=2}function w(A,q){return a===1?A[q]:A.readUInt16BE(q*a)}let S;if(n){let A=-1;for(S=r;S<s;S++)if(w(t,S)===w(e,A===-1?0:S-A)){if(A===-1&&(A=S),S-A+1===y)return A*a}else A!==-1&&(S-=S-A),A=-1}else for(r+y>s&&(r=s-y),S=r;S>=0;S--){let A=!0;for(let q=0;q<y;q++)if(w(t,S+q)!==w(e,q)){A=!1;break}if(A)return S}return-1}T.prototype.includes=function(e,r,i){return this.indexOf(e,r,i)!==-1};T.prototype.indexOf=function(e,r,i){return Uh(this,e,r,i,!0)};T.prototype.lastIndexOf=function(e,r,i){return Uh(this,e,r,i,!1)};function sm(t,e,r,i){r=Number(r)||0;let n=t.length-r;i?(i=Number(i),i>n&&(i=n)):i=n;let a=e.length;i>a/2&&(i=a/2);let s;for(s=0;s<i;++s){let y=parseInt(e.substr(s*2,2),16);if(wf(y))return s;t[r+s]=y}return s}function um(t,e,r,i){return go(yf(e,t.length-r),t,r,i)}function hm(t,e,r,i){return go(xm(e),t,r,i)}function lm(t,e,r,i){return go($h(e),t,r,i)}function cm(t,e,r,i){return go(Mm(e,t.length-r),t,r,i)}T.prototype.write=function(e,r,i,n){if(r===void 0)n="utf8",i=this.length,r=0;else if(i===void 0&&typeof r=="string")n=r,i=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(i)?(i=i>>>0,n===void 0&&(n="utf8")):(n=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let a=this.length-r;if((i===void 0||i>a)&&(i=a),e.length>0&&(i<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let s=!1;for(;;)switch(n){case"hex":return sm(this,e,r,i);case"utf8":case"utf-8":return um(this,e,r,i);case"ascii":case"latin1":case"binary":return hm(this,e,r,i);case"base64":return lm(this,e,r,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return cm(this,e,r,i);default:if(s)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),s=!0}};T.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function dm(t,e,r){return e===0&&r===t.length?df.fromByteArray(t):df.fromByteArray(t.slice(e,r))}function Lh(t,e,r){r=Math.min(t.length,r);let i=[],n=e;for(;n<r;){let a=t[n],s=null,y=a>239?4:a>223?3:a>191?2:1;if(n+y<=r){let w,S,A,q;switch(y){case 1:a<128&&(s=a);break;case 2:w=t[n+1],(w&192)===128&&(q=(a&31)<<6|w&63,q>127&&(s=q));break;case 3:w=t[n+1],S=t[n+2],(w&192)===128&&(S&192)===128&&(q=(a&15)<<12|(w&63)<<6|S&63,q>2047&&(q<55296||q>57343)&&(s=q));break;case 4:w=t[n+1],S=t[n+2],A=t[n+3],(w&192)===128&&(S&192)===128&&(A&192)===128&&(q=(a&15)<<18|(w&63)<<12|(S&63)<<6|A&63,q>65535&&q<1114112&&(s=q))}}s===null?(s=65533,y=1):s>65535&&(s-=65536,i.push(s>>>10&1023|55296),s=56320|s&1023),i.push(s),n+=y}return pm(i)}var Ih=4096;function pm(t){let e=t.length;if(e<=Ih)return String.fromCharCode.apply(String,t);let r="",i=0;for(;i<e;)r+=String.fromCharCode.apply(String,t.slice(i,i+=Ih));return r}function vm(t,e,r){let i="";r=Math.min(t.length,r);for(let n=e;n<r;++n)i+=String.fromCharCode(t[n]&127);return i}function ym(t,e,r){let i="";r=Math.min(t.length,r);for(let n=e;n<r;++n)i+=String.fromCharCode(t[n]);return i}function gm(t,e,r){let i=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>i)&&(r=i);let n="";for(let a=e;a<r;++a)n+=Em[t[a]];return n}function mm(t,e,r){let i=t.slice(e,r),n="";for(let a=0;a<i.length-1;a+=2)n+=String.fromCharCode(i[a]+i[a+1]*256);return n}T.prototype.slice=function(e,r){let i=this.length;e=~~e,r=r===void 0?i:~~r,e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),r<e&&(r=e);let n=this.subarray(e,r);return Object.setPrototypeOf(n,T.prototype),n};function Ve(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}T.prototype.readUintLE=T.prototype.readUIntLE=function(e,r,i){e=e>>>0,r=r>>>0,i||Ve(e,r,this.length);let n=this[e],a=1,s=0;for(;++s<r&&(a*=256);)n+=this[e+s]*a;return n};T.prototype.readUintBE=T.prototype.readUIntBE=function(e,r,i){e=e>>>0,r=r>>>0,i||Ve(e,r,this.length);let n=this[e+--r],a=1;for(;r>0&&(a*=256);)n+=this[e+--r]*a;return n};T.prototype.readUint8=T.prototype.readUInt8=function(e,r){return e=e>>>0,r||Ve(e,1,this.length),this[e]};T.prototype.readUint16LE=T.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||Ve(e,2,this.length),this[e]|this[e+1]<<8};T.prototype.readUint16BE=T.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||Ve(e,2,this.length),this[e]<<8|this[e+1]};T.prototype.readUint32LE=T.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||Ve(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};T.prototype.readUint32BE=T.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||Ve(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};T.prototype.readBigUInt64LE=or(function(e){e=e>>>0,yi(e,"offset");let r=this[e],i=this[e+7];(r===void 0||i===void 0)&&yn(e,this.length-8);let n=r+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,a=this[++e]+this[++e]*2**8+this[++e]*2**16+i*2**24;return BigInt(n)+(BigInt(a)<<BigInt(32))});T.prototype.readBigUInt64BE=or(function(e){e=e>>>0,yi(e,"offset");let r=this[e],i=this[e+7];(r===void 0||i===void 0)&&yn(e,this.length-8);let n=r*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],a=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+i;return(BigInt(n)<<BigInt(32))+BigInt(a)});T.prototype.readIntLE=function(e,r,i){e=e>>>0,r=r>>>0,i||Ve(e,r,this.length);let n=this[e],a=1,s=0;for(;++s<r&&(a*=256);)n+=this[e+s]*a;return a*=128,n>=a&&(n-=Math.pow(2,8*r)),n};T.prototype.readIntBE=function(e,r,i){e=e>>>0,r=r>>>0,i||Ve(e,r,this.length);let n=r,a=1,s=this[e+--n];for(;n>0&&(a*=256);)s+=this[e+--n]*a;return a*=128,s>=a&&(s-=Math.pow(2,8*r)),s};T.prototype.readInt8=function(e,r){return e=e>>>0,r||Ve(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};T.prototype.readInt16LE=function(e,r){e=e>>>0,r||Ve(e,2,this.length);let i=this[e]|this[e+1]<<8;return i&32768?i|4294901760:i};T.prototype.readInt16BE=function(e,r){e=e>>>0,r||Ve(e,2,this.length);let i=this[e+1]|this[e]<<8;return i&32768?i|4294901760:i};T.prototype.readInt32LE=function(e,r){return e=e>>>0,r||Ve(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};T.prototype.readInt32BE=function(e,r){return e=e>>>0,r||Ve(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};T.prototype.readBigInt64LE=or(function(e){e=e>>>0,yi(e,"offset");let r=this[e],i=this[e+7];(r===void 0||i===void 0)&&yn(e,this.length-8);let n=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(i<<24);return(BigInt(n)<<BigInt(32))+BigInt(r+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)});T.prototype.readBigInt64BE=or(function(e){e=e>>>0,yi(e,"offset");let r=this[e],i=this[e+7];(r===void 0||i===void 0)&&yn(e,this.length-8);let n=(r<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+i)});T.prototype.readFloatLE=function(e,r){return e=e>>>0,r||Ve(e,4,this.length),vi.read(this,e,!0,23,4)};T.prototype.readFloatBE=function(e,r){return e=e>>>0,r||Ve(e,4,this.length),vi.read(this,e,!1,23,4)};T.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||Ve(e,8,this.length),vi.read(this,e,!0,52,8)};T.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||Ve(e,8,this.length),vi.read(this,e,!1,52,8)};function nt(t,e,r,i,n,a){if(!T.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>n||e<a)throw new RangeError('"value" argument is out of bounds');if(r+i>t.length)throw new RangeError("Index out of range")}T.prototype.writeUintLE=T.prototype.writeUIntLE=function(e,r,i,n){if(e=+e,r=r>>>0,i=i>>>0,!n){let y=Math.pow(2,8*i)-1;nt(this,e,r,i,y,0)}let a=1,s=0;for(this[r]=e&255;++s<i&&(a*=256);)this[r+s]=e/a&255;return r+i};T.prototype.writeUintBE=T.prototype.writeUIntBE=function(e,r,i,n){if(e=+e,r=r>>>0,i=i>>>0,!n){let y=Math.pow(2,8*i)-1;nt(this,e,r,i,y,0)}let a=i-1,s=1;for(this[r+a]=e&255;--a>=0&&(s*=256);)this[r+a]=e/s&255;return r+i};T.prototype.writeUint8=T.prototype.writeUInt8=function(e,r,i){return e=+e,r=r>>>0,i||nt(this,e,r,1,255,0),this[r]=e&255,r+1};T.prototype.writeUint16LE=T.prototype.writeUInt16LE=function(e,r,i){return e=+e,r=r>>>0,i||nt(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};T.prototype.writeUint16BE=T.prototype.writeUInt16BE=function(e,r,i){return e=+e,r=r>>>0,i||nt(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};T.prototype.writeUint32LE=T.prototype.writeUInt32LE=function(e,r,i){return e=+e,r=r>>>0,i||nt(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};T.prototype.writeUint32BE=T.prototype.writeUInt32BE=function(e,r,i){return e=+e,r=r>>>0,i||nt(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function Nh(t,e,r,i,n){Wh(e,i,n,t,r,7);let a=Number(e&BigInt(4294967295));t[r++]=a,a=a>>8,t[r++]=a,a=a>>8,t[r++]=a,a=a>>8,t[r++]=a;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=s,s=s>>8,t[r++]=s,s=s>>8,t[r++]=s,s=s>>8,t[r++]=s,r}function Fh(t,e,r,i,n){Wh(e,i,n,t,r,7);let a=Number(e&BigInt(4294967295));t[r+7]=a,a=a>>8,t[r+6]=a,a=a>>8,t[r+5]=a,a=a>>8,t[r+4]=a;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=s,s=s>>8,t[r+2]=s,s=s>>8,t[r+1]=s,s=s>>8,t[r]=s,r+8}T.prototype.writeBigUInt64LE=or(function(e,r=0){return Nh(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))});T.prototype.writeBigUInt64BE=or(function(e,r=0){return Fh(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))});T.prototype.writeIntLE=function(e,r,i,n){if(e=+e,r=r>>>0,!n){let w=Math.pow(2,8*i-1);nt(this,e,r,i,w-1,-w)}let a=0,s=1,y=0;for(this[r]=e&255;++a<i&&(s*=256);)e<0&&y===0&&this[r+a-1]!==0&&(y=1),this[r+a]=(e/s>>0)-y&255;return r+i};T.prototype.writeIntBE=function(e,r,i,n){if(e=+e,r=r>>>0,!n){let w=Math.pow(2,8*i-1);nt(this,e,r,i,w-1,-w)}let a=i-1,s=1,y=0;for(this[r+a]=e&255;--a>=0&&(s*=256);)e<0&&y===0&&this[r+a+1]!==0&&(y=1),this[r+a]=(e/s>>0)-y&255;return r+i};T.prototype.writeInt8=function(e,r,i){return e=+e,r=r>>>0,i||nt(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};T.prototype.writeInt16LE=function(e,r,i){return e=+e,r=r>>>0,i||nt(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};T.prototype.writeInt16BE=function(e,r,i){return e=+e,r=r>>>0,i||nt(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};T.prototype.writeInt32LE=function(e,r,i){return e=+e,r=r>>>0,i||nt(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};T.prototype.writeInt32BE=function(e,r,i){return e=+e,r=r>>>0,i||nt(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};T.prototype.writeBigInt64LE=or(function(e,r=0){return Nh(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});T.prototype.writeBigInt64BE=or(function(e,r=0){return Fh(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function jh(t,e,r,i,n,a){if(r+i>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Hh(t,e,r,i,n){return e=+e,r=r>>>0,n||jh(t,e,r,4,34028234663852886e22,-34028234663852886e22),vi.write(t,e,r,i,23,4),r+4}T.prototype.writeFloatLE=function(e,r,i){return Hh(this,e,r,!0,i)};T.prototype.writeFloatBE=function(e,r,i){return Hh(this,e,r,!1,i)};function Kh(t,e,r,i,n){return e=+e,r=r>>>0,n||jh(t,e,r,8,17976931348623157e292,-17976931348623157e292),vi.write(t,e,r,i,52,8),r+8}T.prototype.writeDoubleLE=function(e,r,i){return Kh(this,e,r,!0,i)};T.prototype.writeDoubleBE=function(e,r,i){return Kh(this,e,r,!1,i)};T.prototype.copy=function(e,r,i,n){if(!T.isBuffer(e))throw new TypeError("argument should be a Buffer");if(i||(i=0),!n&&n!==0&&(n=this.length),r>=e.length&&(r=e.length),r||(r=0),n>0&&n<i&&(n=i),n===i||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-r<n-i&&(n=e.length-r+i);let a=n-i;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,i,n):Uint8Array.prototype.set.call(e,this.subarray(i,n),r),a};T.prototype.fill=function(e,r,i,n){if(typeof e=="string"){if(typeof r=="string"?(n=r,r=0,i=this.length):typeof i=="string"&&(n=i,i=this.length),n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!T.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(e.length===1){let s=e.charCodeAt(0);(n==="utf8"&&s<128||n==="latin1")&&(e=s)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<i)throw new RangeError("Out of range index");if(i<=r)return this;r=r>>>0,i=i===void 0?this.length:i>>>0,e||(e=0);let a;if(typeof e=="number")for(a=r;a<i;++a)this[a]=e;else{let s=T.isBuffer(e)?e:T.from(e,n),y=s.length;if(y===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<i-r;++a)this[a+r]=s[a%y]}return this};var pi={};function bf(t,e,r){pi[t]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(n){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:n,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}bf("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);bf("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError);bf("ERR_OUT_OF_RANGE",function(t,e,r){let i=`The value of "${t}" is out of range.`,n=r;return Number.isInteger(r)&&Math.abs(r)>2**32?n=Oh(String(r)):typeof r=="bigint"&&(n=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(n=Oh(n)),n+="n"),i+=` It must be ${e}. Received ${n}`,i},RangeError);function Oh(t){let e="",r=t.length,i=t[0]==="-"?1:0;for(;r>=i+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function bm(t,e,r){yi(e,"offset"),(t[e]===void 0||t[e+r]===void 0)&&yn(e,t.length-(r+1))}function Wh(t,e,r,i,n,a){if(t>r||t<e){let s=typeof e=="bigint"?"n":"",y;throw a>3?e===0||e===BigInt(0)?y=`>= 0${s} and < 2${s} ** ${(a+1)*8}${s}`:y=`>= -(2${s} ** ${(a+1)*8-1}${s}) and < 2 ** ${(a+1)*8-1}${s}`:y=`>= ${e}${s} and <= ${r}${s}`,new pi.ERR_OUT_OF_RANGE("value",y,t)}bm(i,n,a)}function yi(t,e){if(typeof t!="number")throw new pi.ERR_INVALID_ARG_TYPE(e,"number",t)}function yn(t,e,r){throw Math.floor(t)!==t?(yi(t,r),new pi.ERR_OUT_OF_RANGE(r||"offset","an integer",t)):e<0?new pi.ERR_BUFFER_OUT_OF_BOUNDS:new pi.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}var wm=/[^+/0-9A-Za-z-_]/g;function _m(t){if(t=t.split("=")[0],t=t.trim().replace(wm,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function yf(t,e){e=e||1/0;let r,i=t.length,n=null,a=[];for(let s=0;s<i;++s){if(r=t.charCodeAt(s),r>55295&&r<57344){if(!n){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}else if(s+1===i){(e-=3)>-1&&a.push(239,191,189);continue}n=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),n=r;continue}r=(n-55296<<10|r-56320)+65536}else n&&(e-=3)>-1&&a.push(239,191,189);if(n=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function xm(t){let e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function Mm(t,e){let r,i,n,a=[];for(let s=0;s<t.length&&!((e-=2)<0);++s)r=t.charCodeAt(s),i=r>>8,n=r%256,a.push(n),a.push(i);return a}function $h(t){return df.toByteArray(_m(t))}function go(t,e,r,i){let n;for(n=0;n<i&&!(n+r>=e.length||n>=t.length);++n)e[n+r]=t[n];return n}function Ct(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function wf(t){return t!==t}var Em=(function(){let t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){let i=r*16;for(let n=0;n<16;++n)e[i+n]=t[r]+t[n]}return e})();function or(t){return typeof BigInt>"u"?Sm:t}function Sm(){throw new Error("BigInt not supported")}});var M,R,b=Wg(()=>{M=wh(Sh()),R=wh(rt())});var xe=B((_f,Vh)=>{b();var mo=rt(),Dt=mo.Buffer;function Gh(t,e){for(var r in t)e[r]=t[r]}Dt.from&&Dt.alloc&&Dt.allocUnsafe&&Dt.allocUnsafeSlow?Vh.exports=mo:(Gh(mo,_f),_f.Buffer=Pr);function Pr(t,e,r){return Dt(t,e,r)}Pr.prototype=Object.create(Dt.prototype);Gh(Dt,Pr);Pr.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return Dt(t,e,r)};Pr.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=Dt(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};Pr.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Dt(t)};Pr.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return mo.SlowBuffer(t)}});var Ur=B((ME,Mf)=>{"use strict";b();var xf=65536,Bm=4294967295;function Am(){throw new Error(`Secure random number generation is not supported by this browser.
|
|
2
|
-
Use Chrome, Firefox or Internet Explorer 11`)}var Rm=xe().Buffer,bo=globalThis.crypto||globalThis.msCrypto;bo&&bo.getRandomValues?Mf.exports=qm:Mf.exports=Am;function qm(t,e){if(t>Bm)throw new RangeError("requested too many random bytes");var r=Rm.allocUnsafe(t);if(t>0)if(t>xf)for(var i=0;i<t;i+=xf)bo.getRandomValues(r.slice(i,i+xf));else bo.getRandomValues(r);return typeof e=="function"?M.default.nextTick(function(){e(null,r)}):r}});var De=B((SE,Ef)=>{b();typeof Object.create=="function"?Ef.exports=function(e,r){e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:Ef.exports=function(e,r){e.super_=r;var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e}});var bi=B((AE,Sf)=>{"use strict";b();var mi=typeof Reflect=="object"?Reflect:null,zh=mi&&typeof mi.apply=="function"?mi.apply:function(e,r,i){return Function.prototype.apply.call(e,r,i)},wo;mi&&typeof mi.ownKeys=="function"?wo=mi.ownKeys:Object.getOwnPropertySymbols?wo=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:wo=function(e){return Object.getOwnPropertyNames(e)};function Tm(t){console&&console.warn&&console.warn(t)}var Yh=Number.isNaN||function(e){return e!==e};function Ie(){Ie.init.call(this)}Sf.exports=Ie;Sf.exports.once=Cm;Ie.EventEmitter=Ie;Ie.prototype._events=void 0;Ie.prototype._eventsCount=0;Ie.prototype._maxListeners=void 0;var Zh=10;function _o(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}Object.defineProperty(Ie,"defaultMaxListeners",{enumerable:!0,get:function(){return Zh},set:function(t){if(typeof t!="number"||t<0||Yh(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");Zh=t}});Ie.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Ie.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||Yh(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function Xh(t){return t._maxListeners===void 0?Ie.defaultMaxListeners:t._maxListeners}Ie.prototype.getMaxListeners=function(){return Xh(this)};Ie.prototype.emit=function(e){for(var r=[],i=1;i<arguments.length;i++)r.push(arguments[i]);var n=e==="error",a=this._events;if(a!==void 0)n=n&&a.error===void 0;else if(!n)return!1;if(n){var s;if(r.length>0&&(s=r[0]),s instanceof Error)throw s;var y=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw y.context=s,y}var w=a[e];if(w===void 0)return!1;if(typeof w=="function")zh(w,this,r);else for(var S=w.length,A=rl(w,S),i=0;i<S;++i)zh(A[i],this,r);return!0};function Jh(t,e,r,i){var n,a,s;if(_o(r),a=t._events,a===void 0?(a=t._events=Object.create(null),t._eventsCount=0):(a.newListener!==void 0&&(t.emit("newListener",e,r.listener?r.listener:r),a=t._events),s=a[e]),s===void 0)s=a[e]=r,++t._eventsCount;else if(typeof s=="function"?s=a[e]=i?[r,s]:[s,r]:i?s.unshift(r):s.push(r),n=Xh(t),n>0&&s.length>n&&!s.warned){s.warned=!0;var y=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");y.name="MaxListenersExceededWarning",y.emitter=t,y.type=e,y.count=s.length,Tm(y)}return t}Ie.prototype.addListener=function(e,r){return Jh(this,e,r,!1)};Ie.prototype.on=Ie.prototype.addListener;Ie.prototype.prependListener=function(e,r){return Jh(this,e,r,!0)};function km(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Qh(t,e,r){var i={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},n=km.bind(i);return n.listener=r,i.wrapFn=n,n}Ie.prototype.once=function(e,r){return _o(r),this.on(e,Qh(this,e,r)),this};Ie.prototype.prependOnceListener=function(e,r){return _o(r),this.prependListener(e,Qh(this,e,r)),this};Ie.prototype.removeListener=function(e,r){var i,n,a,s,y;if(_o(r),n=this._events,n===void 0)return this;if(i=n[e],i===void 0)return this;if(i===r||i.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,i.listener||r));else if(typeof i!="function"){for(a=-1,s=i.length-1;s>=0;s--)if(i[s]===r||i[s].listener===r){y=i[s].listener,a=s;break}if(a<0)return this;a===0?i.shift():Im(i,a),i.length===1&&(n[e]=i[0]),n.removeListener!==void 0&&this.emit("removeListener",e,y||r)}return this};Ie.prototype.off=Ie.prototype.removeListener;Ie.prototype.removeAllListeners=function(e){var r,i,n;if(i=this._events,i===void 0)return this;if(i.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):i[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete i[e]),this;if(arguments.length===0){var a=Object.keys(i),s;for(n=0;n<a.length;++n)s=a[n],s!=="removeListener"&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=i[e],typeof r=="function")this.removeListener(e,r);else if(r!==void 0)for(n=r.length-1;n>=0;n--)this.removeListener(e,r[n]);return this};function el(t,e,r){var i=t._events;if(i===void 0)return[];var n=i[e];return n===void 0?[]:typeof n=="function"?r?[n.listener||n]:[n]:r?Om(n):rl(n,n.length)}Ie.prototype.listeners=function(e){return el(this,e,!0)};Ie.prototype.rawListeners=function(e){return el(this,e,!1)};Ie.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):tl.call(t,e)};Ie.prototype.listenerCount=tl;function tl(t){var e=this._events;if(e!==void 0){var r=e[t];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}Ie.prototype.eventNames=function(){return this._eventsCount>0?wo(this._events):[]};function rl(t,e){for(var r=new Array(e),i=0;i<e;++i)r[i]=t[i];return r}function Im(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}function Om(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}function Cm(t,e){return new Promise(function(r,i){function n(s){t.removeListener(e,a),i(s)}function a(){typeof t.removeListener=="function"&&t.removeListener("error",n),r([].slice.call(arguments))}il(t,e,a,{once:!0}),e!=="error"&&Dm(t,n,{once:!0})})}function Dm(t,e,r){typeof t.on=="function"&&il(t,"error",e,r)}function il(t,e,r,i){if(typeof t.on=="function")i.once?t.once(e,r):t.on(e,r);else if(typeof t.addEventListener=="function")t.addEventListener(e,function n(a){i.once&&t.removeEventListener(e,n),r(a)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t)}});var Lr=B((qE,Bf)=>{b();typeof Object.create=="function"?Bf.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Bf.exports=function(e,r){if(r){e.super_=r;var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e}}});var Af=B((kE,nl)=>{b();nl.exports=bi().EventEmitter});var Rf=B((OE,ol)=>{"use strict";b();ol.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),i=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var n=42;e[r]=n;for(var a in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var s=Object.getOwnPropertySymbols(e);if(s.length!==1||s[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var y=Object.getOwnPropertyDescriptor(e,r);if(y.value!==n||y.enumerable!==!0)return!1}return!0}});var gn=B((DE,al)=>{"use strict";b();var Pm=Rf();al.exports=function(){return Pm()&&!!Symbol.toStringTag}});var qf=B((UE,fl)=>{"use strict";b();fl.exports=Object});var ul=B((NE,sl)=>{"use strict";b();sl.exports=Error});var ll=B((jE,hl)=>{"use strict";b();hl.exports=EvalError});var dl=B((KE,cl)=>{"use strict";b();cl.exports=RangeError});var vl=B(($E,pl)=>{"use strict";b();pl.exports=ReferenceError});var Tf=B((VE,yl)=>{"use strict";b();yl.exports=SyntaxError});var Nr=B((ZE,gl)=>{"use strict";b();gl.exports=TypeError});var bl=B((XE,ml)=>{"use strict";b();ml.exports=URIError});var _l=B((QE,wl)=>{"use strict";b();wl.exports=Math.abs});var Ml=B((tS,xl)=>{"use strict";b();xl.exports=Math.floor});var Sl=B((iS,El)=>{"use strict";b();El.exports=Math.max});var Al=B((oS,Bl)=>{"use strict";b();Bl.exports=Math.min});var ql=B((fS,Rl)=>{"use strict";b();Rl.exports=Math.pow});var kl=B((uS,Tl)=>{"use strict";b();Tl.exports=Math.round});var Ol=B((lS,Il)=>{"use strict";b();Il.exports=Number.isNaN||function(e){return e!==e}});var Dl=B((dS,Cl)=>{"use strict";b();var Um=Ol();Cl.exports=function(e){return Um(e)||e===0?e:e<0?-1:1}});var Ul=B((vS,Pl)=>{"use strict";b();Pl.exports=Object.getOwnPropertyDescriptor});var Fr=B((gS,Ll)=>{"use strict";b();var xo=Ul();if(xo)try{xo([],"length")}catch{xo=null}Ll.exports=xo});var mn=B((bS,Nl)=>{"use strict";b();var Mo=Object.defineProperty||!1;if(Mo)try{Mo({},"a",{value:1})}catch{Mo=!1}Nl.exports=Mo});var Hl=B((_S,jl)=>{"use strict";b();var Fl=typeof Symbol<"u"&&Symbol,Lm=Rf();jl.exports=function(){return typeof Fl!="function"||typeof Symbol!="function"||typeof Fl("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Lm()}});var kf=B((MS,Kl)=>{"use strict";b();Kl.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var If=B((SS,Wl)=>{"use strict";b();var Nm=qf();Wl.exports=Nm.getPrototypeOf||null});var Vl=B((AS,Gl)=>{"use strict";b();var Fm="Function.prototype.bind called on incompatible ",jm=Object.prototype.toString,Hm=Math.max,Km="[object Function]",$l=function(e,r){for(var i=[],n=0;n<e.length;n+=1)i[n]=e[n];for(var a=0;a<r.length;a+=1)i[a+e.length]=r[a];return i},Wm=function(e,r){for(var i=[],n=r||0,a=0;n<e.length;n+=1,a+=1)i[a]=e[n];return i},$m=function(t,e){for(var r="",i=0;i<t.length;i+=1)r+=t[i],i+1<t.length&&(r+=e);return r};Gl.exports=function(e){var r=this;if(typeof r!="function"||jm.apply(r)!==Km)throw new TypeError(Fm+r);for(var i=Wm(arguments,1),n,a=function(){if(this instanceof n){var A=r.apply(this,$l(i,arguments));return Object(A)===A?A:this}return r.apply(e,$l(i,arguments))},s=Hm(0,r.length-i.length),y=[],w=0;w<s;w++)y[w]="$"+w;if(n=Function("binder","return function ("+$m(y,",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var S=function(){};S.prototype=r.prototype,n.prototype=new S,S.prototype=null}return n}});var wi=B((qS,zl)=>{"use strict";b();var Gm=Vl();zl.exports=Function.prototype.bind||Gm});var Eo=B((kS,Zl)=>{"use strict";b();Zl.exports=Function.prototype.call});var So=B((OS,Yl)=>{"use strict";b();Yl.exports=Function.prototype.apply});var Jl=B((DS,Xl)=>{"use strict";b();Xl.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var Of=B((US,Ql)=>{"use strict";b();var Vm=wi(),zm=So(),Zm=Eo(),Ym=Jl();Ql.exports=Ym||Vm.call(Zm,zm)});var Bo=B((NS,e0)=>{"use strict";b();var Xm=wi(),Jm=Nr(),Qm=Eo(),eb=Of();e0.exports=function(e){if(e.length<1||typeof e[0]!="function")throw new Jm("a function is required");return eb(Xm,Qm,e)}});var a0=B((jS,o0)=>{"use strict";b();var tb=Bo(),t0=Fr(),i0;try{i0=[].__proto__===Array.prototype}catch(t){if(!t||typeof t!="object"||!("code"in t)||t.code!=="ERR_PROTO_ACCESS")throw t}var Cf=!!i0&&t0&&t0(Object.prototype,"__proto__"),n0=Object,r0=n0.getPrototypeOf;o0.exports=Cf&&typeof Cf.get=="function"?tb([Cf.get]):typeof r0=="function"?function(e){return r0(e==null?e:n0(e))}:!1});var Ao=B((KS,h0)=>{"use strict";b();var f0=kf(),s0=If(),u0=a0();h0.exports=f0?function(e){return f0(e)}:s0?function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return s0(e)}:u0?function(e){return u0(e)}:null});var Df=B(($S,l0)=>{"use strict";b();var rb=Function.prototype.call,ib=Object.prototype.hasOwnProperty,nb=wi();l0.exports=nb.call(rb,ib)});var Lf=B((VS,g0)=>{"use strict";b();var Be,ob=qf(),ab=ul(),fb=ll(),sb=dl(),ub=vl(),Ei=Tf(),Mi=Nr(),hb=bl(),lb=_l(),cb=Ml(),db=Sl(),pb=Al(),vb=ql(),yb=kl(),gb=Dl(),v0=Function,Pf=function(t){try{return v0('"use strict"; return ('+t+").constructor;")()}catch{}},bn=Fr(),mb=mn(),Uf=function(){throw new Mi},bb=bn?(function(){try{return arguments.callee,Uf}catch{try{return bn(arguments,"callee").get}catch{return Uf}}})():Uf,_i=Hl()(),ze=Ao(),wb=If(),_b=kf(),y0=So(),wn=Eo(),xi={},xb=typeof Uint8Array>"u"||!ze?Be:ze(Uint8Array),jr={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Be:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Be:ArrayBuffer,"%ArrayIteratorPrototype%":_i&&ze?ze([][Symbol.iterator]()):Be,"%AsyncFromSyncIteratorPrototype%":Be,"%AsyncFunction%":xi,"%AsyncGenerator%":xi,"%AsyncGeneratorFunction%":xi,"%AsyncIteratorPrototype%":xi,"%Atomics%":typeof Atomics>"u"?Be:Atomics,"%BigInt%":typeof BigInt>"u"?Be:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Be:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Be:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Be:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":ab,"%eval%":eval,"%EvalError%":fb,"%Float16Array%":typeof Float16Array>"u"?Be:Float16Array,"%Float32Array%":typeof Float32Array>"u"?Be:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Be:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Be:FinalizationRegistry,"%Function%":v0,"%GeneratorFunction%":xi,"%Int8Array%":typeof Int8Array>"u"?Be:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Be:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Be:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":_i&&ze?ze(ze([][Symbol.iterator]())):Be,"%JSON%":typeof JSON=="object"?JSON:Be,"%Map%":typeof Map>"u"?Be:Map,"%MapIteratorPrototype%":typeof Map>"u"||!_i||!ze?Be:ze(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":ob,"%Object.getOwnPropertyDescriptor%":bn,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Be:Promise,"%Proxy%":typeof Proxy>"u"?Be:Proxy,"%RangeError%":sb,"%ReferenceError%":ub,"%Reflect%":typeof Reflect>"u"?Be:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Be:Set,"%SetIteratorPrototype%":typeof Set>"u"||!_i||!ze?Be:ze(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Be:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":_i&&ze?ze(""[Symbol.iterator]()):Be,"%Symbol%":_i?Symbol:Be,"%SyntaxError%":Ei,"%ThrowTypeError%":bb,"%TypedArray%":xb,"%TypeError%":Mi,"%Uint8Array%":typeof Uint8Array>"u"?Be:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Be:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Be:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Be:Uint32Array,"%URIError%":hb,"%WeakMap%":typeof WeakMap>"u"?Be:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Be:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Be:WeakSet,"%Function.prototype.call%":wn,"%Function.prototype.apply%":y0,"%Object.defineProperty%":mb,"%Object.getPrototypeOf%":wb,"%Math.abs%":lb,"%Math.floor%":cb,"%Math.max%":db,"%Math.min%":pb,"%Math.pow%":vb,"%Math.round%":yb,"%Math.sign%":gb,"%Reflect.getPrototypeOf%":_b};if(ze)try{null.error}catch(t){c0=ze(ze(t)),jr["%Error.prototype%"]=c0}var c0,Mb=function t(e){var r;if(e==="%AsyncFunction%")r=Pf("async function () {}");else if(e==="%GeneratorFunction%")r=Pf("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=Pf("async function* () {}");else if(e==="%AsyncGenerator%"){var i=t("%AsyncGeneratorFunction%");i&&(r=i.prototype)}else if(e==="%AsyncIteratorPrototype%"){var n=t("%AsyncGenerator%");n&&ze&&(r=ze(n.prototype))}return jr[e]=r,r},d0={__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"]},_n=wi(),Ro=Df(),Eb=_n.call(wn,Array.prototype.concat),Sb=_n.call(y0,Array.prototype.splice),p0=_n.call(wn,String.prototype.replace),qo=_n.call(wn,String.prototype.slice),Bb=_n.call(wn,RegExp.prototype.exec),Ab=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Rb=/\\(\\)?/g,qb=function(e){var r=qo(e,0,1),i=qo(e,-1);if(r==="%"&&i!=="%")throw new Ei("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&r!=="%")throw new Ei("invalid intrinsic syntax, expected opening `%`");var n=[];return p0(e,Ab,function(a,s,y,w){n[n.length]=y?p0(w,Rb,"$1"):s||a}),n},Tb=function(e,r){var i=e,n;if(Ro(d0,i)&&(n=d0[i],i="%"+n[0]+"%"),Ro(jr,i)){var a=jr[i];if(a===xi&&(a=Mb(i)),typeof a>"u"&&!r)throw new Mi("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:a}}throw new Ei("intrinsic "+e+" does not exist!")};g0.exports=function(e,r){if(typeof e!="string"||e.length===0)throw new Mi("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Mi('"allowMissing" argument must be a boolean');if(Bb(/^%?[^%]*%?$/,e)===null)throw new Ei("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=qb(e),n=i.length>0?i[0]:"",a=Tb("%"+n+"%",r),s=a.name,y=a.value,w=!1,S=a.alias;S&&(n=S[0],Sb(i,Eb([0,1],S)));for(var A=1,q=!0;A<i.length;A+=1){var k=i[A],C=qo(k,0,1),P=qo(k,-1);if((C==='"'||C==="'"||C==="`"||P==='"'||P==="'"||P==="`")&&C!==P)throw new Ei("property names with quotes must have matching quotes");if((k==="constructor"||!q)&&(w=!0),n+="."+k,s="%"+n+"%",Ro(jr,s))y=jr[s];else if(y!=null){if(!(k in y)){if(!r)throw new Mi("base intrinsic for "+e+" exists, but the property is not available.");return}if(bn&&A+1>=i.length){var K=bn(y,k);q=!!K,q&&"get"in K&&!("originalValue"in K.get)?y=K.get:y=y[k]}else q=Ro(y,k),y=y[k];q&&!w&&(jr[s]=y)}}return y}});var Hr=B((ZS,w0)=>{"use strict";b();var m0=Lf(),b0=Bo(),kb=b0([m0("%String.prototype.indexOf%")]);w0.exports=function(e,r){var i=m0(e,!!r);return typeof i=="function"&&kb(e,".prototype.")>-1?b0([i]):i}});var M0=B((XS,x0)=>{"use strict";b();var Ib=gn()(),Ob=Hr(),Nf=Ob("Object.prototype.toString"),To=function(e){return Ib&&e&&typeof e=="object"&&Symbol.toStringTag in e?!1:Nf(e)==="[object Arguments]"},_0=function(e){return To(e)?!0:e!==null&&typeof e=="object"&&"length"in e&&typeof e.length=="number"&&e.length>=0&&Nf(e)!=="[object Array]"&&"callee"in e&&Nf(e.callee)==="[object Function]"},Cb=(function(){return To(arguments)})();To.isLegacyArguments=_0;x0.exports=Cb?To:_0});var q0=B((QS,R0)=>{"use strict";b();var E0=Hr(),Db=gn()(),Pb=Df(),Ub=Fr(),Hf;Db?(S0=E0("RegExp.prototype.exec"),Ff={},ko=function(){throw Ff},jf={toString:ko,valueOf:ko},typeof Symbol.toPrimitive=="symbol"&&(jf[Symbol.toPrimitive]=ko),Hf=function(e){if(!e||typeof e!="object")return!1;var r=Ub(e,"lastIndex"),i=r&&Pb(r,"value");if(!i)return!1;try{S0(e,jf)}catch(n){return n===Ff}}):(B0=E0("Object.prototype.toString"),A0="[object RegExp]",Hf=function(e){return!e||typeof e!="object"&&typeof e!="function"?!1:B0(e)===A0});var S0,Ff,ko,jf,B0,A0;R0.exports=Hf});var k0=B((t5,T0)=>{"use strict";b();var Lb=Hr(),Nb=q0(),Fb=Lb("RegExp.prototype.exec"),jb=Nr();T0.exports=function(e){if(!Nb(e))throw new jb("`regex` must be a RegExp");return function(i){return Fb(e,i)!==null}}});var O0=B((i5,I0)=>{"use strict";b();var Hb=function*(){}.constructor;I0.exports=()=>Hb});var U0=B((o5,P0)=>{"use strict";b();var D0=Hr(),Kb=k0(),Wb=Kb(/^\s*(?:function)?\*/),$b=gn()(),C0=Ao(),Gb=D0("Object.prototype.toString"),Vb=D0("Function.prototype.toString"),zb=O0();P0.exports=function(e){if(typeof e!="function")return!1;if(Wb(Vb(e)))return!0;if(!$b){var r=Gb(e);return r==="[object GeneratorFunction]"}if(!C0)return!1;var i=zb();return i&&C0(e)===i.prototype}});var j0=B((f5,F0)=>{"use strict";b();var N0=Function.prototype.toString,Si=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,Wf,Io;if(typeof Si=="function"&&typeof Object.defineProperty=="function")try{Wf=Object.defineProperty({},"length",{get:function(){throw Io}}),Io={},Si(function(){throw 42},null,Wf)}catch(t){t!==Io&&(Si=null)}else Si=null;var Zb=/^\s*class\b/,$f=function(e){try{var r=N0.call(e);return Zb.test(r)}catch{return!1}},Kf=function(e){try{return $f(e)?!1:(N0.call(e),!0)}catch{return!1}},Oo=Object.prototype.toString,Yb="[object Object]",Xb="[object Function]",Jb="[object GeneratorFunction]",Qb="[object HTMLAllCollection]",ew="[object HTML document.all class]",tw="[object HTMLCollection]",rw=typeof Symbol=="function"&&!!Symbol.toStringTag,iw=!(0 in[,]),Gf=function(){return!1};typeof document=="object"&&(L0=document.all,Oo.call(L0)===Oo.call(document.all)&&(Gf=function(e){if((iw||!e)&&(typeof e>"u"||typeof e=="object"))try{var r=Oo.call(e);return(r===Qb||r===ew||r===tw||r===Yb)&&e("")==null}catch{}return!1}));var L0;F0.exports=Si?function(e){if(Gf(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;try{Si(e,null,Wf)}catch(r){if(r!==Io)return!1}return!$f(e)&&Kf(e)}:function(e){if(Gf(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;if(rw)return Kf(e);if($f(e))return!1;var r=Oo.call(e);return r!==Xb&&r!==Jb&&!/^\[object HTML/.test(r)?!1:Kf(e)}});var W0=B((u5,K0)=>{"use strict";b();var nw=j0(),ow=Object.prototype.toString,H0=Object.prototype.hasOwnProperty,aw=function(e,r,i){for(var n=0,a=e.length;n<a;n++)H0.call(e,n)&&(i==null?r(e[n],n,e):r.call(i,e[n],n,e))},fw=function(e,r,i){for(var n=0,a=e.length;n<a;n++)i==null?r(e.charAt(n),n,e):r.call(i,e.charAt(n),n,e)},sw=function(e,r,i){for(var n in e)H0.call(e,n)&&(i==null?r(e[n],n,e):r.call(i,e[n],n,e))};function uw(t){return ow.call(t)==="[object Array]"}K0.exports=function(e,r,i){if(!nw(r))throw new TypeError("iterator must be a function");var n;arguments.length>=3&&(n=i),uw(e)?aw(e,r,n):typeof e=="string"?fw(e,r,n):sw(e,r,n)}});var G0=B((l5,$0)=>{"use strict";b();$0.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]});var z0=B((d5,V0)=>{"use strict";b();var Vf=G0(),hw=globalThis;V0.exports=function(){for(var e=[],r=0;r<Vf.length;r++)typeof hw[Vf[r]]=="function"&&(e[e.length]=Vf[r]);return e}});var J0=B((v5,X0)=>{"use strict";b();var Z0=mn(),lw=Tf(),Bi=Nr(),Y0=Fr();X0.exports=function(e,r,i){if(!e||typeof e!="object"&&typeof e!="function")throw new Bi("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Bi("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Bi("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Bi("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Bi("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Bi("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,y=arguments.length>6?arguments[6]:!1,w=!!Y0&&Y0(e,r);if(Z0)Z0(e,r,{configurable:s===null&&w?w.configurable:!s,enumerable:n===null&&w?w.enumerable:!n,value:i,writable:a===null&&w?w.writable:!a});else if(y||!n&&!a&&!s)e[r]=i;else throw new lw("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var tc=B((g5,ec)=>{"use strict";b();var zf=mn(),Q0=function(){return!!zf};Q0.hasArrayLengthDefineBug=function(){if(!zf)return null;try{return zf([],"length",{value:1}).length!==1}catch{return!0}};ec.exports=Q0});var ac=B((b5,oc)=>{"use strict";b();var cw=Lf(),rc=J0(),dw=tc()(),ic=Fr(),nc=Nr(),pw=cw("%Math.floor%");oc.exports=function(e,r){if(typeof e!="function")throw new nc("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||pw(r)!==r)throw new nc("`length` must be a positive 32-bit integer");var i=arguments.length>2&&!!arguments[2],n=!0,a=!0;if("length"in e&&ic){var s=ic(e,"length");s&&!s.configurable&&(n=!1),s&&!s.writable&&(a=!1)}return(n||a||!i)&&(dw?rc(e,"length",r,!0,!0):rc(e,"length",r)),e}});var sc=B((_5,fc)=>{"use strict";b();var vw=wi(),yw=So(),gw=Of();fc.exports=function(){return gw(vw,yw,arguments)}});var lc=B((M5,Co)=>{"use strict";b();var mw=ac(),uc=mn(),bw=Bo(),hc=sc();Co.exports=function(e){var r=bw(arguments),i=1+e.length-(arguments.length-1);return mw(r,i>0?i:0,!0)};uc?uc(Co.exports,"apply",{value:hc}):Co.exports.apply=hc});var Jf=B((S5,vc)=>{"use strict";b();var Uo=W0(),ww=z0(),cc=lc(),Yf=Hr(),Po=Fr(),Do=Ao(),_w=Yf("Object.prototype.toString"),pc=gn()(),dc=globalThis,Zf=ww(),Xf=Yf("String.prototype.slice"),xw=Yf("Array.prototype.indexOf",!0)||function(e,r){for(var i=0;i<e.length;i+=1)if(e[i]===r)return i;return-1},Lo={__proto__:null};pc&&Po&&Do?Uo(Zf,function(t){var e=new dc[t];if(Symbol.toStringTag in e&&Do){var r=Do(e),i=Po(r,Symbol.toStringTag);if(!i&&r){var n=Do(r);i=Po(n,Symbol.toStringTag)}if(i&&i.get){var a=cc(i.get);Lo["$"+t]=a}}}):Uo(Zf,function(t){var e=new dc[t],r=e.slice||e.set;if(r){var i=cc(r);Lo["$"+t]=i}});var Mw=function(e){var r=!1;return Uo(Lo,function(i,n){if(!r)try{"$"+i(e)===n&&(r=Xf(n,1))}catch{}}),r},Ew=function(e){var r=!1;return Uo(Lo,function(i,n){if(!r)try{i(e),r=Xf(n,1)}catch{}}),r};vc.exports=function(e){if(!e||typeof e!="object")return!1;if(!pc){var r=Xf(_w(e),8,-1);return xw(Zf,r)>-1?r:r!=="Object"?!1:Ew(e)}return Po?Mw(e):null}});var Qf=B((A5,yc)=>{"use strict";b();var Sw=Jf();yc.exports=function(e){return!!Sw(e)}});var Tc=B(Ae=>{"use strict";b();var Bw=M0(),Aw=U0(),wt=Jf(),gc=Qf();function Ai(t){return t.call.bind(t)}var mc=typeof BigInt<"u",bc=typeof Symbol<"u",ht=Ai(Object.prototype.toString),Rw=Ai(Number.prototype.valueOf),qw=Ai(String.prototype.valueOf),Tw=Ai(Boolean.prototype.valueOf);mc&&(wc=Ai(BigInt.prototype.valueOf));var wc;bc&&(_c=Ai(Symbol.prototype.valueOf));var _c;function Mn(t,e){if(typeof t!="object")return!1;try{return e(t),!0}catch{return!1}}Ae.isArgumentsObject=Bw;Ae.isGeneratorFunction=Aw;Ae.isTypedArray=gc;function kw(t){return typeof Promise<"u"&&t instanceof Promise||t!==null&&typeof t=="object"&&typeof t.then=="function"&&typeof t.catch=="function"}Ae.isPromise=kw;function Iw(t){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(t):gc(t)||Mc(t)}Ae.isArrayBufferView=Iw;function Ow(t){return wt(t)==="Uint8Array"}Ae.isUint8Array=Ow;function Cw(t){return wt(t)==="Uint8ClampedArray"}Ae.isUint8ClampedArray=Cw;function Dw(t){return wt(t)==="Uint16Array"}Ae.isUint16Array=Dw;function Pw(t){return wt(t)==="Uint32Array"}Ae.isUint32Array=Pw;function Uw(t){return wt(t)==="Int8Array"}Ae.isInt8Array=Uw;function Lw(t){return wt(t)==="Int16Array"}Ae.isInt16Array=Lw;function Nw(t){return wt(t)==="Int32Array"}Ae.isInt32Array=Nw;function Fw(t){return wt(t)==="Float32Array"}Ae.isFloat32Array=Fw;function jw(t){return wt(t)==="Float64Array"}Ae.isFloat64Array=jw;function Hw(t){return wt(t)==="BigInt64Array"}Ae.isBigInt64Array=Hw;function Kw(t){return wt(t)==="BigUint64Array"}Ae.isBigUint64Array=Kw;function No(t){return ht(t)==="[object Map]"}No.working=typeof Map<"u"&&No(new Map);function Ww(t){return typeof Map>"u"?!1:No.working?No(t):t instanceof Map}Ae.isMap=Ww;function Fo(t){return ht(t)==="[object Set]"}Fo.working=typeof Set<"u"&&Fo(new Set);function $w(t){return typeof Set>"u"?!1:Fo.working?Fo(t):t instanceof Set}Ae.isSet=$w;function jo(t){return ht(t)==="[object WeakMap]"}jo.working=typeof WeakMap<"u"&&jo(new WeakMap);function Gw(t){return typeof WeakMap>"u"?!1:jo.working?jo(t):t instanceof WeakMap}Ae.isWeakMap=Gw;function ts(t){return ht(t)==="[object WeakSet]"}ts.working=typeof WeakSet<"u"&&ts(new WeakSet);function Vw(t){return ts(t)}Ae.isWeakSet=Vw;function Ho(t){return ht(t)==="[object ArrayBuffer]"}Ho.working=typeof ArrayBuffer<"u"&&Ho(new ArrayBuffer);function xc(t){return typeof ArrayBuffer>"u"?!1:Ho.working?Ho(t):t instanceof ArrayBuffer}Ae.isArrayBuffer=xc;function Ko(t){return ht(t)==="[object DataView]"}Ko.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Ko(new DataView(new ArrayBuffer(1),0,1));function Mc(t){return typeof DataView>"u"?!1:Ko.working?Ko(t):t instanceof DataView}Ae.isDataView=Mc;var es=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function xn(t){return ht(t)==="[object SharedArrayBuffer]"}function Ec(t){return typeof es>"u"?!1:(typeof xn.working>"u"&&(xn.working=xn(new es)),xn.working?xn(t):t instanceof es)}Ae.isSharedArrayBuffer=Ec;function zw(t){return ht(t)==="[object AsyncFunction]"}Ae.isAsyncFunction=zw;function Zw(t){return ht(t)==="[object Map Iterator]"}Ae.isMapIterator=Zw;function Yw(t){return ht(t)==="[object Set Iterator]"}Ae.isSetIterator=Yw;function Xw(t){return ht(t)==="[object Generator]"}Ae.isGeneratorObject=Xw;function Jw(t){return ht(t)==="[object WebAssembly.Module]"}Ae.isWebAssemblyCompiledModule=Jw;function Sc(t){return Mn(t,Rw)}Ae.isNumberObject=Sc;function Bc(t){return Mn(t,qw)}Ae.isStringObject=Bc;function Ac(t){return Mn(t,Tw)}Ae.isBooleanObject=Ac;function Rc(t){return mc&&Mn(t,wc)}Ae.isBigIntObject=Rc;function qc(t){return bc&&Mn(t,_c)}Ae.isSymbolObject=qc;function Qw(t){return Sc(t)||Bc(t)||Ac(t)||Rc(t)||qc(t)}Ae.isBoxedPrimitive=Qw;function e2(t){return typeof Uint8Array<"u"&&(xc(t)||Ec(t))}Ae.isAnyArrayBuffer=e2;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(t){Object.defineProperty(Ae,t,{enumerable:!1,value:function(){throw new Error(t+" is not supported in userland")}})})});var Ic=B((k5,kc)=>{b();kc.exports=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"}});var Bn=B(Re=>{b();var Oc=Object.getOwnPropertyDescriptors||function(e){for(var r=Object.keys(e),i={},n=0;n<r.length;n++)i[r[n]]=Object.getOwnPropertyDescriptor(e,r[n]);return i},t2=/%[sdj%]/g;Re.format=function(t){if(!Yo(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(ar(arguments[r]));return e.join(" ")}for(var r=1,i=arguments,n=i.length,a=String(t).replace(t2,function(y){if(y==="%%")return"%";if(r>=n)return y;switch(y){case"%s":return String(i[r++]);case"%d":return Number(i[r++]);case"%j":try{return JSON.stringify(i[r++])}catch{return"[Circular]"}default:return y}}),s=i[r];r<n;s=i[++r])Zo(s)||!Ri(s)?a+=" "+s:a+=" "+ar(s);return a};Re.deprecate=function(t,e){if(typeof M.default<"u"&&M.default.noDeprecation===!0)return t;if(typeof M.default>"u")return function(){return Re.deprecate(t,e).apply(this,arguments)};var r=!1;function i(){if(!r){if(M.default.throwDeprecation)throw new Error(e);M.default.traceDeprecation?console.trace(e):console.error(e),r=!0}return t.apply(this,arguments)}return i};var Wo={},Cc=/^$/;M.default.env.NODE_DEBUG&&($o=M.default.env.NODE_DEBUG,$o=$o.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),Cc=new RegExp("^"+$o+"$","i"));var $o;Re.debuglog=function(t){if(t=t.toUpperCase(),!Wo[t])if(Cc.test(t)){var e=M.default.pid;Wo[t]=function(){var r=Re.format.apply(Re,arguments);console.error("%s %d: %s",t,e,r)}}else Wo[t]=function(){};return Wo[t]};function ar(t,e){var r={seen:[],stylize:i2};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),os(e)?r.showHidden=e:e&&Re._extend(r,e),Wr(r.showHidden)&&(r.showHidden=!1),Wr(r.depth)&&(r.depth=2),Wr(r.colors)&&(r.colors=!1),Wr(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=r2),Vo(r,t,r.depth)}Re.inspect=ar;ar.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]};ar.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function r2(t,e){var r=ar.styles[e];return r?"\x1B["+ar.colors[r][0]+"m"+t+"\x1B["+ar.colors[r][1]+"m":t}function i2(t,e){return t}function n2(t){var e={};return t.forEach(function(r,i){e[r]=!0}),e}function Vo(t,e,r){if(t.customInspect&&e&&Go(e.inspect)&&e.inspect!==Re.inspect&&!(e.constructor&&e.constructor.prototype===e)){var i=e.inspect(r,t);return Yo(i)||(i=Vo(t,i,r)),i}var n=o2(t,e);if(n)return n;var a=Object.keys(e),s=n2(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(e)),Sn(e)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return rs(e);if(a.length===0){if(Go(e)){var y=e.name?": "+e.name:"";return t.stylize("[Function"+y+"]","special")}if(En(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(zo(e))return t.stylize(Date.prototype.toString.call(e),"date");if(Sn(e))return rs(e)}var w="",S=!1,A=["{","}"];if(Dc(e)&&(S=!0,A=["[","]"]),Go(e)){var q=e.name?": "+e.name:"";w=" [Function"+q+"]"}if(En(e)&&(w=" "+RegExp.prototype.toString.call(e)),zo(e)&&(w=" "+Date.prototype.toUTCString.call(e)),Sn(e)&&(w=" "+rs(e)),a.length===0&&(!S||e.length==0))return A[0]+w+A[1];if(r<0)return En(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special");t.seen.push(e);var k;return S?k=a2(t,e,r,s,a):k=a.map(function(C){return ns(t,e,r,s,C,S)}),t.seen.pop(),f2(k,w,A)}function o2(t,e){if(Wr(e))return t.stylize("undefined","undefined");if(Yo(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}if(Pc(e))return t.stylize(""+e,"number");if(os(e))return t.stylize(""+e,"boolean");if(Zo(e))return t.stylize("null","null")}function rs(t){return"["+Error.prototype.toString.call(t)+"]"}function a2(t,e,r,i,n){for(var a=[],s=0,y=e.length;s<y;++s)Uc(e,String(s))?a.push(ns(t,e,r,i,String(s),!0)):a.push("");return n.forEach(function(w){w.match(/^\d+$/)||a.push(ns(t,e,r,i,w,!0))}),a}function ns(t,e,r,i,n,a){var s,y,w;if(w=Object.getOwnPropertyDescriptor(e,n)||{value:e[n]},w.get?w.set?y=t.stylize("[Getter/Setter]","special"):y=t.stylize("[Getter]","special"):w.set&&(y=t.stylize("[Setter]","special")),Uc(i,n)||(s="["+n+"]"),y||(t.seen.indexOf(w.value)<0?(Zo(r)?y=Vo(t,w.value,null):y=Vo(t,w.value,r-1),y.indexOf(`
|
|
1
|
+
var bsvAnchor=(()=>{var qg=Object.create;var lh=Object.defineProperty;var Tg=Object.getOwnPropertyDescriptor;var kg=Object.getOwnPropertyNames;var Ig=Object.getPrototypeOf,Cg=Object.prototype.hasOwnProperty;var Og=(t,e,r)=>()=>{if(r)throw r[0];try{return t&&(e=t(t=0)),e}catch(i){throw r=[i],i}};var B=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}};var Dg=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of kg(e))!Cg.call(t,n)&&n!==r&&lh(t,n,{get:()=>e[n],enumerable:!(i=Tg(e,n))||i.enumerable});return t};var ch=(t,e,r)=>(r=t!=null?qg(Ig(t)):{},Dg(e||!t||!t.__esModule?lh(r,"default",{value:t,enumerable:!0}):r,t));var gh=B((rE,yh)=>{b();var He=yh.exports={},kt,It;function ff(){throw new Error("setTimeout has not been defined")}function sf(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?kt=setTimeout:kt=ff}catch{kt=ff}try{typeof clearTimeout=="function"?It=clearTimeout:It=sf}catch{It=sf}})();function dh(t){if(kt===setTimeout)return setTimeout(t,0);if((kt===ff||!kt)&&setTimeout)return kt=setTimeout,setTimeout(t,0);try{return kt(t,0)}catch{try{return kt.call(null,t,0)}catch{return kt.call(this,t,0)}}}function Pg(t){if(It===clearTimeout)return clearTimeout(t);if((It===sf||!It)&&clearTimeout)return It=clearTimeout,clearTimeout(t);try{return It(t)}catch{try{return It.call(null,t)}catch{return It.call(this,t)}}}var Ht=[],li=!1,Cr,lo=-1;function Ug(){!li||!Cr||(li=!1,Cr.length?Ht=Cr.concat(Ht):lo=-1,Ht.length&&ph())}function ph(){if(!li){var t=dh(Ug);li=!0;for(var e=Ht.length;e;){for(Cr=Ht,Ht=[];++lo<e;)Cr&&Cr[lo].run();lo=-1,e=Ht.length}Cr=null,li=!1,Pg(t)}}He.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];Ht.push(new vh(t,e)),Ht.length===1&&!li&&dh(ph)};function vh(t,e){this.fun=t,this.array=e}vh.prototype.run=function(){this.fun.apply(null,this.array)};He.title="browser";He.browser=!0;He.env={};He.argv=[];He.version="";He.versions={};function Kt(){}He.on=Kt;He.addListener=Kt;He.once=Kt;He.off=Kt;He.removeListener=Kt;He.removeAllListeners=Kt;He.emit=Kt;He.prependListener=Kt;He.prependOnceListener=Kt;He.listeners=function(t){return[]};He.binding=function(t){throw new Error("process.binding is not supported")};He.cwd=function(){return"/"};He.chdir=function(t){throw new Error("process.chdir is not supported")};He.umask=function(){return 0}});var wh=B(co=>{"use strict";b();co.byteLength=Ng;co.toByteArray=jg;co.fromByteArray=Wg;var Ct=[],ut=[],Lg=typeof Uint8Array<"u"?Uint8Array:Array,uf="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Or=0,mh=uf.length;Or<mh;++Or)Ct[Or]=uf[Or],ut[uf.charCodeAt(Or)]=Or;var Or,mh;ut[45]=62;ut[95]=63;function bh(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var i=r===e?0:4-r%4;return[r,i]}function Ng(t){var e=bh(t),r=e[0],i=e[1];return(r+i)*3/4-i}function Fg(t,e,r){return(e+r)*3/4-r}function jg(t){var e,r=bh(t),i=r[0],n=r[1],a=new Lg(Fg(t,i,n)),s=0,y=n>0?i-4:i,w;for(w=0;w<y;w+=4)e=ut[t.charCodeAt(w)]<<18|ut[t.charCodeAt(w+1)]<<12|ut[t.charCodeAt(w+2)]<<6|ut[t.charCodeAt(w+3)],a[s++]=e>>16&255,a[s++]=e>>8&255,a[s++]=e&255;return n===2&&(e=ut[t.charCodeAt(w)]<<2|ut[t.charCodeAt(w+1)]>>4,a[s++]=e&255),n===1&&(e=ut[t.charCodeAt(w)]<<10|ut[t.charCodeAt(w+1)]<<4|ut[t.charCodeAt(w+2)]>>2,a[s++]=e>>8&255,a[s++]=e&255),a}function Hg(t){return Ct[t>>18&63]+Ct[t>>12&63]+Ct[t>>6&63]+Ct[t&63]}function Kg(t,e,r){for(var i,n=[],a=e;a<r;a+=3)i=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(t[a+2]&255),n.push(Hg(i));return n.join("")}function Wg(t){for(var e,r=t.length,i=r%3,n=[],a=16383,s=0,y=r-i;s<y;s+=a)n.push(Kg(t,s,s+a>y?y:s+a));return i===1?(e=t[r-1],n.push(Ct[e>>2]+Ct[e<<4&63]+"==")):i===2&&(e=(t[r-2]<<8)+t[r-1],n.push(Ct[e>>10]+Ct[e>>4&63]+Ct[e<<2&63]+"=")),n.join("")}});var _h=B(hf=>{b();hf.read=function(t,e,r,i,n){var a,s,y=n*8-i-1,w=(1<<y)-1,S=w>>1,A=-7,q=r?n-1:0,k=r?-1:1,O=t[e+q];for(q+=k,a=O&(1<<-A)-1,O>>=-A,A+=y;A>0;a=a*256+t[e+q],q+=k,A-=8);for(s=a&(1<<-A)-1,a>>=-A,A+=i;A>0;s=s*256+t[e+q],q+=k,A-=8);if(a===0)a=1-S;else{if(a===w)return s?NaN:(O?-1:1)*(1/0);s=s+Math.pow(2,i),a=a-S}return(O?-1:1)*s*Math.pow(2,a-i)};hf.write=function(t,e,r,i,n,a){var s,y,w,S=a*8-n-1,A=(1<<S)-1,q=A>>1,k=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,O=i?0:a-1,P=i?1:-1,W=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(y=isNaN(e)?1:0,s=A):(s=Math.floor(Math.log(e)/Math.LN2),e*(w=Math.pow(2,-s))<1&&(s--,w*=2),s+q>=1?e+=k/w:e+=k*Math.pow(2,1-q),e*w>=2&&(s++,w/=2),s+q>=A?(y=0,s=A):s+q>=1?(y=(e*w-1)*Math.pow(2,n),s=s+q):(y=e*Math.pow(2,q-1)*Math.pow(2,n),s=0));n>=8;t[r+O]=y&255,O+=P,y/=256,n-=8);for(s=s<<n|y,S+=n;S>0;t[r+O]=s&255,O+=P,s/=256,S-=8);t[r+O-P]|=W*128}});var rt=B(vi=>{"use strict";b();var lf=wh(),di=_h(),xh=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;vi.Buffer=T;vi.SlowBuffer=Yg;vi.INSPECT_MAX_BYTES=50;var po=2147483647;vi.kMaxLength=po;T.TYPED_ARRAY_SUPPORT=$g();!T.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function $g(){try{let t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch{return!1}}Object.defineProperty(T.prototype,"parent",{enumerable:!0,get:function(){if(T.isBuffer(this))return this.buffer}});Object.defineProperty(T.prototype,"offset",{enumerable:!0,get:function(){if(T.isBuffer(this))return this.byteOffset}});function Wt(t){if(t>po)throw new RangeError('The value "'+t+'" is invalid for option "size"');let e=new Uint8Array(t);return Object.setPrototypeOf(e,T.prototype),e}function T(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return vf(t)}return Bh(t,e,r)}T.poolSize=8192;function Bh(t,e,r){if(typeof t=="string")return Vg(t,e);if(ArrayBuffer.isView(t))return zg(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(Ot(t,ArrayBuffer)||t&&Ot(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ot(t,SharedArrayBuffer)||t&&Ot(t.buffer,SharedArrayBuffer)))return df(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let i=t.valueOf&&t.valueOf();if(i!=null&&i!==t)return T.from(i,e,r);let n=Zg(t);if(n)return n;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return T.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}T.from=function(t,e,r){return Bh(t,e,r)};Object.setPrototypeOf(T.prototype,Uint8Array.prototype);Object.setPrototypeOf(T,Uint8Array);function Ah(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function Gg(t,e,r){return Ah(t),t<=0?Wt(t):e!==void 0?typeof r=="string"?Wt(t).fill(e,r):Wt(t).fill(e):Wt(t)}T.alloc=function(t,e,r){return Gg(t,e,r)};function vf(t){return Ah(t),Wt(t<0?0:yf(t)|0)}T.allocUnsafe=function(t){return vf(t)};T.allocUnsafeSlow=function(t){return vf(t)};function Vg(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!T.isEncoding(e))throw new TypeError("Unknown encoding: "+e);let r=Rh(t,e)|0,i=Wt(r),n=i.write(t,e);return n!==r&&(i=i.slice(0,n)),i}function cf(t){let e=t.length<0?0:yf(t.length)|0,r=Wt(e);for(let i=0;i<e;i+=1)r[i]=t[i]&255;return r}function zg(t){if(Ot(t,Uint8Array)){let e=new Uint8Array(t);return df(e.buffer,e.byteOffset,e.byteLength)}return cf(t)}function df(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');let i;return e===void 0&&r===void 0?i=new Uint8Array(t):r===void 0?i=new Uint8Array(t,e):i=new Uint8Array(t,e,r),Object.setPrototypeOf(i,T.prototype),i}function Zg(t){if(T.isBuffer(t)){let e=yf(t.length)|0,r=Wt(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||mf(t.length)?Wt(0):cf(t);if(t.type==="Buffer"&&Array.isArray(t.data))return cf(t.data)}function yf(t){if(t>=po)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+po.toString(16)+" bytes");return t|0}function Yg(t){return+t!=t&&(t=0),T.alloc(+t)}T.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==T.prototype};T.compare=function(e,r){if(Ot(e,Uint8Array)&&(e=T.from(e,e.offset,e.byteLength)),Ot(r,Uint8Array)&&(r=T.from(r,r.offset,r.byteLength)),!T.isBuffer(e)||!T.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;let i=e.length,n=r.length;for(let a=0,s=Math.min(i,n);a<s;++a)if(e[a]!==r[a]){i=e[a],n=r[a];break}return i<n?-1:n<i?1:0};T.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};T.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return T.alloc(0);let i;if(r===void 0)for(r=0,i=0;i<e.length;++i)r+=e[i].length;let n=T.allocUnsafe(r),a=0;for(i=0;i<e.length;++i){let s=e[i];if(Ot(s,Uint8Array))a+s.length>n.length?(T.isBuffer(s)||(s=T.from(s)),s.copy(n,a)):Uint8Array.prototype.set.call(n,s,a);else if(T.isBuffer(s))s.copy(n,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=s.length}return n};function Rh(t,e){if(T.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||Ot(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);let r=t.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&r===0)return 0;let n=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return pf(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Uh(t).length;default:if(n)return i?-1:pf(t).length;e=(""+e).toLowerCase(),n=!0}}T.byteLength=Rh;function Xg(t,e,r){let i=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return fm(this,e,r);case"utf8":case"utf-8":return Th(this,e,r);case"ascii":return om(this,e,r);case"latin1":case"binary":return am(this,e,r);case"base64":return im(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return sm(this,e,r);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}T.prototype._isBuffer=!0;function Dr(t,e,r){let i=t[e];t[e]=t[r],t[r]=i}T.prototype.swap16=function(){let e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;r<e;r+=2)Dr(this,r,r+1);return this};T.prototype.swap32=function(){let e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let r=0;r<e;r+=4)Dr(this,r,r+3),Dr(this,r+1,r+2);return this};T.prototype.swap64=function(){let e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let r=0;r<e;r+=8)Dr(this,r,r+7),Dr(this,r+1,r+6),Dr(this,r+2,r+5),Dr(this,r+3,r+4);return this};T.prototype.toString=function(){let e=this.length;return e===0?"":arguments.length===0?Th(this,0,e):Xg.apply(this,arguments)};T.prototype.toLocaleString=T.prototype.toString;T.prototype.equals=function(e){if(!T.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:T.compare(this,e)===0};T.prototype.inspect=function(){let e="",r=vi.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};xh&&(T.prototype[xh]=T.prototype.inspect);T.prototype.compare=function(e,r,i,n,a){if(Ot(e,Uint8Array)&&(e=T.from(e,e.offset,e.byteLength)),!T.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),i===void 0&&(i=e?e.length:0),n===void 0&&(n=0),a===void 0&&(a=this.length),r<0||i>e.length||n<0||a>this.length)throw new RangeError("out of range index");if(n>=a&&r>=i)return 0;if(n>=a)return-1;if(r>=i)return 1;if(r>>>=0,i>>>=0,n>>>=0,a>>>=0,this===e)return 0;let s=a-n,y=i-r,w=Math.min(s,y),S=this.slice(n,a),A=e.slice(r,i);for(let q=0;q<w;++q)if(S[q]!==A[q]){s=S[q],y=A[q];break}return s<y?-1:y<s?1:0};function qh(t,e,r,i,n){if(t.length===0)return-1;if(typeof r=="string"?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,mf(r)&&(r=n?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(n)return-1;r=t.length-1}else if(r<0)if(n)r=0;else return-1;if(typeof e=="string"&&(e=T.from(e,i)),T.isBuffer(e))return e.length===0?-1:Mh(t,e,r,i,n);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):Mh(t,[e],r,i,n);throw new TypeError("val must be string, number or Buffer")}function Mh(t,e,r,i,n){let a=1,s=t.length,y=e.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(t.length<2||e.length<2)return-1;a=2,s/=2,y/=2,r/=2}function w(A,q){return a===1?A[q]:A.readUInt16BE(q*a)}let S;if(n){let A=-1;for(S=r;S<s;S++)if(w(t,S)===w(e,A===-1?0:S-A)){if(A===-1&&(A=S),S-A+1===y)return A*a}else A!==-1&&(S-=S-A),A=-1}else for(r+y>s&&(r=s-y),S=r;S>=0;S--){let A=!0;for(let q=0;q<y;q++)if(w(t,S+q)!==w(e,q)){A=!1;break}if(A)return S}return-1}T.prototype.includes=function(e,r,i){return this.indexOf(e,r,i)!==-1};T.prototype.indexOf=function(e,r,i){return qh(this,e,r,i,!0)};T.prototype.lastIndexOf=function(e,r,i){return qh(this,e,r,i,!1)};function Jg(t,e,r,i){r=Number(r)||0;let n=t.length-r;i?(i=Number(i),i>n&&(i=n)):i=n;let a=e.length;i>a/2&&(i=a/2);let s;for(s=0;s<i;++s){let y=parseInt(e.substr(s*2,2),16);if(mf(y))return s;t[r+s]=y}return s}function Qg(t,e,r,i){return vo(pf(e,t.length-r),t,r,i)}function em(t,e,r,i){return vo(cm(e),t,r,i)}function tm(t,e,r,i){return vo(Uh(e),t,r,i)}function rm(t,e,r,i){return vo(dm(e,t.length-r),t,r,i)}T.prototype.write=function(e,r,i,n){if(r===void 0)n="utf8",i=this.length,r=0;else if(i===void 0&&typeof r=="string")n=r,i=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(i)?(i=i>>>0,n===void 0&&(n="utf8")):(n=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let a=this.length-r;if((i===void 0||i>a)&&(i=a),e.length>0&&(i<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let s=!1;for(;;)switch(n){case"hex":return Jg(this,e,r,i);case"utf8":case"utf-8":return Qg(this,e,r,i);case"ascii":case"latin1":case"binary":return em(this,e,r,i);case"base64":return tm(this,e,r,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return rm(this,e,r,i);default:if(s)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),s=!0}};T.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function im(t,e,r){return e===0&&r===t.length?lf.fromByteArray(t):lf.fromByteArray(t.slice(e,r))}function Th(t,e,r){r=Math.min(t.length,r);let i=[],n=e;for(;n<r;){let a=t[n],s=null,y=a>239?4:a>223?3:a>191?2:1;if(n+y<=r){let w,S,A,q;switch(y){case 1:a<128&&(s=a);break;case 2:w=t[n+1],(w&192)===128&&(q=(a&31)<<6|w&63,q>127&&(s=q));break;case 3:w=t[n+1],S=t[n+2],(w&192)===128&&(S&192)===128&&(q=(a&15)<<12|(w&63)<<6|S&63,q>2047&&(q<55296||q>57343)&&(s=q));break;case 4:w=t[n+1],S=t[n+2],A=t[n+3],(w&192)===128&&(S&192)===128&&(A&192)===128&&(q=(a&15)<<18|(w&63)<<12|(S&63)<<6|A&63,q>65535&&q<1114112&&(s=q))}}s===null?(s=65533,y=1):s>65535&&(s-=65536,i.push(s>>>10&1023|55296),s=56320|s&1023),i.push(s),n+=y}return nm(i)}var Eh=4096;function nm(t){let e=t.length;if(e<=Eh)return String.fromCharCode.apply(String,t);let r="",i=0;for(;i<e;)r+=String.fromCharCode.apply(String,t.slice(i,i+=Eh));return r}function om(t,e,r){let i="";r=Math.min(t.length,r);for(let n=e;n<r;++n)i+=String.fromCharCode(t[n]&127);return i}function am(t,e,r){let i="";r=Math.min(t.length,r);for(let n=e;n<r;++n)i+=String.fromCharCode(t[n]);return i}function fm(t,e,r){let i=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>i)&&(r=i);let n="";for(let a=e;a<r;++a)n+=pm[t[a]];return n}function sm(t,e,r){let i=t.slice(e,r),n="";for(let a=0;a<i.length-1;a+=2)n+=String.fromCharCode(i[a]+i[a+1]*256);return n}T.prototype.slice=function(e,r){let i=this.length;e=~~e,r=r===void 0?i:~~r,e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),r<e&&(r=e);let n=this.subarray(e,r);return Object.setPrototypeOf(n,T.prototype),n};function Ve(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}T.prototype.readUintLE=T.prototype.readUIntLE=function(e,r,i){e=e>>>0,r=r>>>0,i||Ve(e,r,this.length);let n=this[e],a=1,s=0;for(;++s<r&&(a*=256);)n+=this[e+s]*a;return n};T.prototype.readUintBE=T.prototype.readUIntBE=function(e,r,i){e=e>>>0,r=r>>>0,i||Ve(e,r,this.length);let n=this[e+--r],a=1;for(;r>0&&(a*=256);)n+=this[e+--r]*a;return n};T.prototype.readUint8=T.prototype.readUInt8=function(e,r){return e=e>>>0,r||Ve(e,1,this.length),this[e]};T.prototype.readUint16LE=T.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||Ve(e,2,this.length),this[e]|this[e+1]<<8};T.prototype.readUint16BE=T.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||Ve(e,2,this.length),this[e]<<8|this[e+1]};T.prototype.readUint32LE=T.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||Ve(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};T.prototype.readUint32BE=T.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||Ve(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};T.prototype.readBigUInt64LE=or(function(e){e=e>>>0,pi(e,"offset");let r=this[e],i=this[e+7];(r===void 0||i===void 0)&&pn(e,this.length-8);let n=r+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,a=this[++e]+this[++e]*2**8+this[++e]*2**16+i*2**24;return BigInt(n)+(BigInt(a)<<BigInt(32))});T.prototype.readBigUInt64BE=or(function(e){e=e>>>0,pi(e,"offset");let r=this[e],i=this[e+7];(r===void 0||i===void 0)&&pn(e,this.length-8);let n=r*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],a=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+i;return(BigInt(n)<<BigInt(32))+BigInt(a)});T.prototype.readIntLE=function(e,r,i){e=e>>>0,r=r>>>0,i||Ve(e,r,this.length);let n=this[e],a=1,s=0;for(;++s<r&&(a*=256);)n+=this[e+s]*a;return a*=128,n>=a&&(n-=Math.pow(2,8*r)),n};T.prototype.readIntBE=function(e,r,i){e=e>>>0,r=r>>>0,i||Ve(e,r,this.length);let n=r,a=1,s=this[e+--n];for(;n>0&&(a*=256);)s+=this[e+--n]*a;return a*=128,s>=a&&(s-=Math.pow(2,8*r)),s};T.prototype.readInt8=function(e,r){return e=e>>>0,r||Ve(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};T.prototype.readInt16LE=function(e,r){e=e>>>0,r||Ve(e,2,this.length);let i=this[e]|this[e+1]<<8;return i&32768?i|4294901760:i};T.prototype.readInt16BE=function(e,r){e=e>>>0,r||Ve(e,2,this.length);let i=this[e+1]|this[e]<<8;return i&32768?i|4294901760:i};T.prototype.readInt32LE=function(e,r){return e=e>>>0,r||Ve(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};T.prototype.readInt32BE=function(e,r){return e=e>>>0,r||Ve(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};T.prototype.readBigInt64LE=or(function(e){e=e>>>0,pi(e,"offset");let r=this[e],i=this[e+7];(r===void 0||i===void 0)&&pn(e,this.length-8);let n=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(i<<24);return(BigInt(n)<<BigInt(32))+BigInt(r+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)});T.prototype.readBigInt64BE=or(function(e){e=e>>>0,pi(e,"offset");let r=this[e],i=this[e+7];(r===void 0||i===void 0)&&pn(e,this.length-8);let n=(r<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+i)});T.prototype.readFloatLE=function(e,r){return e=e>>>0,r||Ve(e,4,this.length),di.read(this,e,!0,23,4)};T.prototype.readFloatBE=function(e,r){return e=e>>>0,r||Ve(e,4,this.length),di.read(this,e,!1,23,4)};T.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||Ve(e,8,this.length),di.read(this,e,!0,52,8)};T.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||Ve(e,8,this.length),di.read(this,e,!1,52,8)};function nt(t,e,r,i,n,a){if(!T.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>n||e<a)throw new RangeError('"value" argument is out of bounds');if(r+i>t.length)throw new RangeError("Index out of range")}T.prototype.writeUintLE=T.prototype.writeUIntLE=function(e,r,i,n){if(e=+e,r=r>>>0,i=i>>>0,!n){let y=Math.pow(2,8*i)-1;nt(this,e,r,i,y,0)}let a=1,s=0;for(this[r]=e&255;++s<i&&(a*=256);)this[r+s]=e/a&255;return r+i};T.prototype.writeUintBE=T.prototype.writeUIntBE=function(e,r,i,n){if(e=+e,r=r>>>0,i=i>>>0,!n){let y=Math.pow(2,8*i)-1;nt(this,e,r,i,y,0)}let a=i-1,s=1;for(this[r+a]=e&255;--a>=0&&(s*=256);)this[r+a]=e/s&255;return r+i};T.prototype.writeUint8=T.prototype.writeUInt8=function(e,r,i){return e=+e,r=r>>>0,i||nt(this,e,r,1,255,0),this[r]=e&255,r+1};T.prototype.writeUint16LE=T.prototype.writeUInt16LE=function(e,r,i){return e=+e,r=r>>>0,i||nt(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};T.prototype.writeUint16BE=T.prototype.writeUInt16BE=function(e,r,i){return e=+e,r=r>>>0,i||nt(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};T.prototype.writeUint32LE=T.prototype.writeUInt32LE=function(e,r,i){return e=+e,r=r>>>0,i||nt(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};T.prototype.writeUint32BE=T.prototype.writeUInt32BE=function(e,r,i){return e=+e,r=r>>>0,i||nt(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function kh(t,e,r,i,n){Ph(e,i,n,t,r,7);let a=Number(e&BigInt(4294967295));t[r++]=a,a=a>>8,t[r++]=a,a=a>>8,t[r++]=a,a=a>>8,t[r++]=a;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=s,s=s>>8,t[r++]=s,s=s>>8,t[r++]=s,s=s>>8,t[r++]=s,r}function Ih(t,e,r,i,n){Ph(e,i,n,t,r,7);let a=Number(e&BigInt(4294967295));t[r+7]=a,a=a>>8,t[r+6]=a,a=a>>8,t[r+5]=a,a=a>>8,t[r+4]=a;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=s,s=s>>8,t[r+2]=s,s=s>>8,t[r+1]=s,s=s>>8,t[r]=s,r+8}T.prototype.writeBigUInt64LE=or(function(e,r=0){return kh(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))});T.prototype.writeBigUInt64BE=or(function(e,r=0){return Ih(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))});T.prototype.writeIntLE=function(e,r,i,n){if(e=+e,r=r>>>0,!n){let w=Math.pow(2,8*i-1);nt(this,e,r,i,w-1,-w)}let a=0,s=1,y=0;for(this[r]=e&255;++a<i&&(s*=256);)e<0&&y===0&&this[r+a-1]!==0&&(y=1),this[r+a]=(e/s>>0)-y&255;return r+i};T.prototype.writeIntBE=function(e,r,i,n){if(e=+e,r=r>>>0,!n){let w=Math.pow(2,8*i-1);nt(this,e,r,i,w-1,-w)}let a=i-1,s=1,y=0;for(this[r+a]=e&255;--a>=0&&(s*=256);)e<0&&y===0&&this[r+a+1]!==0&&(y=1),this[r+a]=(e/s>>0)-y&255;return r+i};T.prototype.writeInt8=function(e,r,i){return e=+e,r=r>>>0,i||nt(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};T.prototype.writeInt16LE=function(e,r,i){return e=+e,r=r>>>0,i||nt(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};T.prototype.writeInt16BE=function(e,r,i){return e=+e,r=r>>>0,i||nt(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};T.prototype.writeInt32LE=function(e,r,i){return e=+e,r=r>>>0,i||nt(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};T.prototype.writeInt32BE=function(e,r,i){return e=+e,r=r>>>0,i||nt(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};T.prototype.writeBigInt64LE=or(function(e,r=0){return kh(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});T.prototype.writeBigInt64BE=or(function(e,r=0){return Ih(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ch(t,e,r,i,n,a){if(r+i>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Oh(t,e,r,i,n){return e=+e,r=r>>>0,n||Ch(t,e,r,4,34028234663852886e22,-34028234663852886e22),di.write(t,e,r,i,23,4),r+4}T.prototype.writeFloatLE=function(e,r,i){return Oh(this,e,r,!0,i)};T.prototype.writeFloatBE=function(e,r,i){return Oh(this,e,r,!1,i)};function Dh(t,e,r,i,n){return e=+e,r=r>>>0,n||Ch(t,e,r,8,17976931348623157e292,-17976931348623157e292),di.write(t,e,r,i,52,8),r+8}T.prototype.writeDoubleLE=function(e,r,i){return Dh(this,e,r,!0,i)};T.prototype.writeDoubleBE=function(e,r,i){return Dh(this,e,r,!1,i)};T.prototype.copy=function(e,r,i,n){if(!T.isBuffer(e))throw new TypeError("argument should be a Buffer");if(i||(i=0),!n&&n!==0&&(n=this.length),r>=e.length&&(r=e.length),r||(r=0),n>0&&n<i&&(n=i),n===i||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-r<n-i&&(n=e.length-r+i);let a=n-i;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,i,n):Uint8Array.prototype.set.call(e,this.subarray(i,n),r),a};T.prototype.fill=function(e,r,i,n){if(typeof e=="string"){if(typeof r=="string"?(n=r,r=0,i=this.length):typeof i=="string"&&(n=i,i=this.length),n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!T.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(e.length===1){let s=e.charCodeAt(0);(n==="utf8"&&s<128||n==="latin1")&&(e=s)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<i)throw new RangeError("Out of range index");if(i<=r)return this;r=r>>>0,i=i===void 0?this.length:i>>>0,e||(e=0);let a;if(typeof e=="number")for(a=r;a<i;++a)this[a]=e;else{let s=T.isBuffer(e)?e:T.from(e,n),y=s.length;if(y===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<i-r;++a)this[a+r]=s[a%y]}return this};var ci={};function gf(t,e,r){ci[t]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(n){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:n,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}gf("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);gf("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError);gf("ERR_OUT_OF_RANGE",function(t,e,r){let i=`The value of "${t}" is out of range.`,n=r;return Number.isInteger(r)&&Math.abs(r)>2**32?n=Sh(String(r)):typeof r=="bigint"&&(n=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(n=Sh(n)),n+="n"),i+=` It must be ${e}. Received ${n}`,i},RangeError);function Sh(t){let e="",r=t.length,i=t[0]==="-"?1:0;for(;r>=i+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function um(t,e,r){pi(e,"offset"),(t[e]===void 0||t[e+r]===void 0)&&pn(e,t.length-(r+1))}function Ph(t,e,r,i,n,a){if(t>r||t<e){let s=typeof e=="bigint"?"n":"",y;throw a>3?e===0||e===BigInt(0)?y=`>= 0${s} and < 2${s} ** ${(a+1)*8}${s}`:y=`>= -(2${s} ** ${(a+1)*8-1}${s}) and < 2 ** ${(a+1)*8-1}${s}`:y=`>= ${e}${s} and <= ${r}${s}`,new ci.ERR_OUT_OF_RANGE("value",y,t)}um(i,n,a)}function pi(t,e){if(typeof t!="number")throw new ci.ERR_INVALID_ARG_TYPE(e,"number",t)}function pn(t,e,r){throw Math.floor(t)!==t?(pi(t,r),new ci.ERR_OUT_OF_RANGE(r||"offset","an integer",t)):e<0?new ci.ERR_BUFFER_OUT_OF_BOUNDS:new ci.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}var hm=/[^+/0-9A-Za-z-_]/g;function lm(t){if(t=t.split("=")[0],t=t.trim().replace(hm,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function pf(t,e){e=e||1/0;let r,i=t.length,n=null,a=[];for(let s=0;s<i;++s){if(r=t.charCodeAt(s),r>55295&&r<57344){if(!n){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}else if(s+1===i){(e-=3)>-1&&a.push(239,191,189);continue}n=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),n=r;continue}r=(n-55296<<10|r-56320)+65536}else n&&(e-=3)>-1&&a.push(239,191,189);if(n=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function cm(t){let e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function dm(t,e){let r,i,n,a=[];for(let s=0;s<t.length&&!((e-=2)<0);++s)r=t.charCodeAt(s),i=r>>8,n=r%256,a.push(n),a.push(i);return a}function Uh(t){return lf.toByteArray(lm(t))}function vo(t,e,r,i){let n;for(n=0;n<i&&!(n+r>=e.length||n>=t.length);++n)e[n+r]=t[n];return n}function Ot(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function mf(t){return t!==t}var pm=(function(){let t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){let i=r*16;for(let n=0;n<16;++n)e[i+n]=t[r]+t[n]}return e})();function or(t){return typeof BigInt>"u"?vm:t}function vm(){throw new Error("BigInt not supported")}});var M,R,b=Og(()=>{M=ch(gh()),R=ch(rt())});var Me=B((bf,Nh)=>{b();var yo=rt(),Dt=yo.Buffer;function Lh(t,e){for(var r in t)e[r]=t[r]}Dt.from&&Dt.alloc&&Dt.allocUnsafe&&Dt.allocUnsafeSlow?Nh.exports=yo:(Lh(yo,bf),bf.Buffer=Pr);function Pr(t,e,r){return Dt(t,e,r)}Pr.prototype=Object.create(Dt.prototype);Lh(Dt,Pr);Pr.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return Dt(t,e,r)};Pr.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=Dt(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};Pr.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Dt(t)};Pr.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return yo.SlowBuffer(t)}});var Ur=B((dE,_f)=>{"use strict";b();var wf=65536,ym=4294967295;function gm(){throw new Error(`Secure random number generation is not supported by this browser.
|
|
2
|
+
Use Chrome, Firefox or Internet Explorer 11`)}var mm=Me().Buffer,go=globalThis.crypto||globalThis.msCrypto;go&&go.getRandomValues?_f.exports=bm:_f.exports=gm;function bm(t,e){if(t>ym)throw new RangeError("requested too many random bytes");var r=mm.allocUnsafe(t);if(t>0)if(t>wf)for(var i=0;i<t;i+=wf)go.getRandomValues(r.slice(i,i+wf));else go.getRandomValues(r);return typeof e=="function"?M.default.nextTick(function(){e(null,r)}):r}});var K=B((vE,xf)=>{b();typeof Object.create=="function"?xf.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:xf.exports=function(e,r){if(r){e.super_=r;var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e}}});var gi=B((gE,Mf)=>{"use strict";b();var yi=typeof Reflect=="object"?Reflect:null,Fh=yi&&typeof yi.apply=="function"?yi.apply:function(e,r,i){return Function.prototype.apply.call(e,r,i)},mo;yi&&typeof yi.ownKeys=="function"?mo=yi.ownKeys:Object.getOwnPropertySymbols?mo=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:mo=function(e){return Object.getOwnPropertyNames(e)};function wm(t){console&&console.warn&&console.warn(t)}var Hh=Number.isNaN||function(e){return e!==e};function Ce(){Ce.init.call(this)}Mf.exports=Ce;Mf.exports.once=Em;Ce.EventEmitter=Ce;Ce.prototype._events=void 0;Ce.prototype._eventsCount=0;Ce.prototype._maxListeners=void 0;var jh=10;function bo(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}Object.defineProperty(Ce,"defaultMaxListeners",{enumerable:!0,get:function(){return jh},set:function(t){if(typeof t!="number"||t<0||Hh(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");jh=t}});Ce.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Ce.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||Hh(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function Kh(t){return t._maxListeners===void 0?Ce.defaultMaxListeners:t._maxListeners}Ce.prototype.getMaxListeners=function(){return Kh(this)};Ce.prototype.emit=function(e){for(var r=[],i=1;i<arguments.length;i++)r.push(arguments[i]);var n=e==="error",a=this._events;if(a!==void 0)n=n&&a.error===void 0;else if(!n)return!1;if(n){var s;if(r.length>0&&(s=r[0]),s instanceof Error)throw s;var y=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw y.context=s,y}var w=a[e];if(w===void 0)return!1;if(typeof w=="function")Fh(w,this,r);else for(var S=w.length,A=zh(w,S),i=0;i<S;++i)Fh(A[i],this,r);return!0};function Wh(t,e,r,i){var n,a,s;if(bo(r),a=t._events,a===void 0?(a=t._events=Object.create(null),t._eventsCount=0):(a.newListener!==void 0&&(t.emit("newListener",e,r.listener?r.listener:r),a=t._events),s=a[e]),s===void 0)s=a[e]=r,++t._eventsCount;else if(typeof s=="function"?s=a[e]=i?[r,s]:[s,r]:i?s.unshift(r):s.push(r),n=Kh(t),n>0&&s.length>n&&!s.warned){s.warned=!0;var y=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");y.name="MaxListenersExceededWarning",y.emitter=t,y.type=e,y.count=s.length,wm(y)}return t}Ce.prototype.addListener=function(e,r){return Wh(this,e,r,!1)};Ce.prototype.on=Ce.prototype.addListener;Ce.prototype.prependListener=function(e,r){return Wh(this,e,r,!0)};function _m(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function $h(t,e,r){var i={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},n=_m.bind(i);return n.listener=r,i.wrapFn=n,n}Ce.prototype.once=function(e,r){return bo(r),this.on(e,$h(this,e,r)),this};Ce.prototype.prependOnceListener=function(e,r){return bo(r),this.prependListener(e,$h(this,e,r)),this};Ce.prototype.removeListener=function(e,r){var i,n,a,s,y;if(bo(r),n=this._events,n===void 0)return this;if(i=n[e],i===void 0)return this;if(i===r||i.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,i.listener||r));else if(typeof i!="function"){for(a=-1,s=i.length-1;s>=0;s--)if(i[s]===r||i[s].listener===r){y=i[s].listener,a=s;break}if(a<0)return this;a===0?i.shift():xm(i,a),i.length===1&&(n[e]=i[0]),n.removeListener!==void 0&&this.emit("removeListener",e,y||r)}return this};Ce.prototype.off=Ce.prototype.removeListener;Ce.prototype.removeAllListeners=function(e){var r,i,n;if(i=this._events,i===void 0)return this;if(i.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):i[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete i[e]),this;if(arguments.length===0){var a=Object.keys(i),s;for(n=0;n<a.length;++n)s=a[n],s!=="removeListener"&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=i[e],typeof r=="function")this.removeListener(e,r);else if(r!==void 0)for(n=r.length-1;n>=0;n--)this.removeListener(e,r[n]);return this};function Gh(t,e,r){var i=t._events;if(i===void 0)return[];var n=i[e];return n===void 0?[]:typeof n=="function"?r?[n.listener||n]:[n]:r?Mm(n):zh(n,n.length)}Ce.prototype.listeners=function(e){return Gh(this,e,!0)};Ce.prototype.rawListeners=function(e){return Gh(this,e,!1)};Ce.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):Vh.call(t,e)};Ce.prototype.listenerCount=Vh;function Vh(t){var e=this._events;if(e!==void 0){var r=e[t];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}Ce.prototype.eventNames=function(){return this._eventsCount>0?mo(this._events):[]};function zh(t,e){for(var r=new Array(e),i=0;i<e;++i)r[i]=t[i];return r}function xm(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}function Mm(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}function Em(t,e){return new Promise(function(r,i){function n(s){t.removeListener(e,a),i(s)}function a(){typeof t.removeListener=="function"&&t.removeListener("error",n),r([].slice.call(arguments))}Zh(t,e,a,{once:!0}),e!=="error"&&Sm(t,n,{once:!0})})}function Sm(t,e,r){typeof t.on=="function"&&Zh(t,"error",e,r)}function Zh(t,e,r,i){if(typeof t.on=="function")i.once?t.once(e,r):t.on(e,r);else if(typeof t.addEventListener=="function")t.addEventListener(e,function n(a){i.once&&t.removeEventListener(e,n),r(a)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t)}});var Ef=B((bE,Yh)=>{b();Yh.exports=gi().EventEmitter});var Sf=B((_E,Xh)=>{"use strict";b();Xh.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),i=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var n=42;e[r]=n;for(var a in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var s=Object.getOwnPropertySymbols(e);if(s.length!==1||s[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var y=Object.getOwnPropertyDescriptor(e,r);if(y.value!==n||y.enumerable!==!0)return!1}return!0}});var vn=B((ME,Jh)=>{"use strict";b();var Bm=Sf();Jh.exports=function(){return Bm()&&!!Symbol.toStringTag}});var Bf=B((SE,Qh)=>{"use strict";b();Qh.exports=Object});var tl=B((AE,el)=>{"use strict";b();el.exports=Error});var il=B((qE,rl)=>{"use strict";b();rl.exports=EvalError});var ol=B((kE,nl)=>{"use strict";b();nl.exports=RangeError});var fl=B((CE,al)=>{"use strict";b();al.exports=ReferenceError});var Af=B((DE,sl)=>{"use strict";b();sl.exports=SyntaxError});var Lr=B((UE,ul)=>{"use strict";b();ul.exports=TypeError});var ll=B((NE,hl)=>{"use strict";b();hl.exports=URIError});var dl=B((jE,cl)=>{"use strict";b();cl.exports=Math.abs});var vl=B((KE,pl)=>{"use strict";b();pl.exports=Math.floor});var gl=B(($E,yl)=>{"use strict";b();yl.exports=Math.max});var bl=B((VE,ml)=>{"use strict";b();ml.exports=Math.min});var _l=B((ZE,wl)=>{"use strict";b();wl.exports=Math.pow});var Ml=B((XE,xl)=>{"use strict";b();xl.exports=Math.round});var Sl=B((QE,El)=>{"use strict";b();El.exports=Number.isNaN||function(e){return e!==e}});var Al=B((tS,Bl)=>{"use strict";b();var Am=Sl();Bl.exports=function(e){return Am(e)||e===0?e:e<0?-1:1}});var ql=B((iS,Rl)=>{"use strict";b();Rl.exports=Object.getOwnPropertyDescriptor});var Nr=B((oS,Tl)=>{"use strict";b();var wo=ql();if(wo)try{wo([],"length")}catch{wo=null}Tl.exports=wo});var yn=B((fS,kl)=>{"use strict";b();var _o=Object.defineProperty||!1;if(_o)try{_o({},"a",{value:1})}catch{_o=!1}kl.exports=_o});var Ol=B((uS,Cl)=>{"use strict";b();var Il=typeof Symbol<"u"&&Symbol,Rm=Sf();Cl.exports=function(){return typeof Il!="function"||typeof Symbol!="function"||typeof Il("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Rm()}});var Rf=B((lS,Dl)=>{"use strict";b();Dl.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var qf=B((dS,Pl)=>{"use strict";b();var qm=Bf();Pl.exports=qm.getPrototypeOf||null});var Nl=B((vS,Ll)=>{"use strict";b();var Tm="Function.prototype.bind called on incompatible ",km=Object.prototype.toString,Im=Math.max,Cm="[object Function]",Ul=function(e,r){for(var i=[],n=0;n<e.length;n+=1)i[n]=e[n];for(var a=0;a<r.length;a+=1)i[a+e.length]=r[a];return i},Om=function(e,r){for(var i=[],n=r||0,a=0;n<e.length;n+=1,a+=1)i[a]=e[n];return i},Dm=function(t,e){for(var r="",i=0;i<t.length;i+=1)r+=t[i],i+1<t.length&&(r+=e);return r};Ll.exports=function(e){var r=this;if(typeof r!="function"||km.apply(r)!==Cm)throw new TypeError(Tm+r);for(var i=Om(arguments,1),n,a=function(){if(this instanceof n){var A=r.apply(this,Ul(i,arguments));return Object(A)===A?A:this}return r.apply(e,Ul(i,arguments))},s=Im(0,r.length-i.length),y=[],w=0;w<s;w++)y[w]="$"+w;if(n=Function("binder","return function ("+Dm(y,",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var S=function(){};S.prototype=r.prototype,n.prototype=new S,S.prototype=null}return n}});var mi=B((gS,Fl)=>{"use strict";b();var Pm=Nl();Fl.exports=Function.prototype.bind||Pm});var xo=B((bS,jl)=>{"use strict";b();jl.exports=Function.prototype.call});var Mo=B((_S,Hl)=>{"use strict";b();Hl.exports=Function.prototype.apply});var Wl=B((MS,Kl)=>{"use strict";b();Kl.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var Tf=B((SS,$l)=>{"use strict";b();var Um=mi(),Lm=Mo(),Nm=xo(),Fm=Wl();$l.exports=Fm||Um.call(Nm,Lm)});var Eo=B((AS,Gl)=>{"use strict";b();var jm=mi(),Hm=Lr(),Km=xo(),Wm=Tf();Gl.exports=function(e){if(e.length<1||typeof e[0]!="function")throw new Hm("a function is required");return Wm(jm,Km,e)}});var Jl=B((qS,Xl)=>{"use strict";b();var $m=Eo(),Vl=Nr(),Zl;try{Zl=[].__proto__===Array.prototype}catch(t){if(!t||typeof t!="object"||!("code"in t)||t.code!=="ERR_PROTO_ACCESS")throw t}var kf=!!Zl&&Vl&&Vl(Object.prototype,"__proto__"),Yl=Object,zl=Yl.getPrototypeOf;Xl.exports=kf&&typeof kf.get=="function"?$m([kf.get]):typeof zl=="function"?function(e){return zl(e==null?e:Yl(e))}:!1});var So=B((kS,r0)=>{"use strict";b();var Ql=Rf(),e0=qf(),t0=Jl();r0.exports=Ql?function(e){return Ql(e)}:e0?function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return e0(e)}:t0?function(e){return t0(e)}:null});var If=B((CS,i0)=>{"use strict";b();var Gm=Function.prototype.call,Vm=Object.prototype.hasOwnProperty,zm=mi();i0.exports=zm.call(Gm,Vm)});var Df=B((DS,u0)=>{"use strict";b();var Ae,Zm=Bf(),Ym=tl(),Xm=il(),Jm=ol(),Qm=fl(),xi=Af(),_i=Lr(),eb=ll(),tb=dl(),rb=vl(),ib=gl(),nb=bl(),ob=_l(),ab=Ml(),fb=Al(),f0=Function,Cf=function(t){try{return f0('"use strict"; return ('+t+").constructor;")()}catch{}},gn=Nr(),sb=yn(),Of=function(){throw new _i},ub=gn?(function(){try{return arguments.callee,Of}catch{try{return gn(arguments,"callee").get}catch{return Of}}})():Of,bi=Ol()(),ze=So(),hb=qf(),lb=Rf(),s0=Mo(),mn=xo(),wi={},cb=typeof Uint8Array>"u"||!ze?Ae:ze(Uint8Array),Fr={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Ae:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Ae:ArrayBuffer,"%ArrayIteratorPrototype%":bi&&ze?ze([][Symbol.iterator]()):Ae,"%AsyncFromSyncIteratorPrototype%":Ae,"%AsyncFunction%":wi,"%AsyncGenerator%":wi,"%AsyncGeneratorFunction%":wi,"%AsyncIteratorPrototype%":wi,"%Atomics%":typeof Atomics>"u"?Ae:Atomics,"%BigInt%":typeof BigInt>"u"?Ae:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Ae:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Ae:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Ae:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Ym,"%eval%":eval,"%EvalError%":Xm,"%Float16Array%":typeof Float16Array>"u"?Ae:Float16Array,"%Float32Array%":typeof Float32Array>"u"?Ae:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Ae:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Ae:FinalizationRegistry,"%Function%":f0,"%GeneratorFunction%":wi,"%Int8Array%":typeof Int8Array>"u"?Ae:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Ae:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Ae:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":bi&&ze?ze(ze([][Symbol.iterator]())):Ae,"%JSON%":typeof JSON=="object"?JSON:Ae,"%Map%":typeof Map>"u"?Ae:Map,"%MapIteratorPrototype%":typeof Map>"u"||!bi||!ze?Ae:ze(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Zm,"%Object.getOwnPropertyDescriptor%":gn,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Ae:Promise,"%Proxy%":typeof Proxy>"u"?Ae:Proxy,"%RangeError%":Jm,"%ReferenceError%":Qm,"%Reflect%":typeof Reflect>"u"?Ae:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Ae:Set,"%SetIteratorPrototype%":typeof Set>"u"||!bi||!ze?Ae:ze(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Ae:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":bi&&ze?ze(""[Symbol.iterator]()):Ae,"%Symbol%":bi?Symbol:Ae,"%SyntaxError%":xi,"%ThrowTypeError%":ub,"%TypedArray%":cb,"%TypeError%":_i,"%Uint8Array%":typeof Uint8Array>"u"?Ae:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Ae:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Ae:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Ae:Uint32Array,"%URIError%":eb,"%WeakMap%":typeof WeakMap>"u"?Ae:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Ae:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Ae:WeakSet,"%Function.prototype.call%":mn,"%Function.prototype.apply%":s0,"%Object.defineProperty%":sb,"%Object.getPrototypeOf%":hb,"%Math.abs%":tb,"%Math.floor%":rb,"%Math.max%":ib,"%Math.min%":nb,"%Math.pow%":ob,"%Math.round%":ab,"%Math.sign%":fb,"%Reflect.getPrototypeOf%":lb};if(ze)try{null.error}catch(t){n0=ze(ze(t)),Fr["%Error.prototype%"]=n0}var n0,db=function t(e){var r;if(e==="%AsyncFunction%")r=Cf("async function () {}");else if(e==="%GeneratorFunction%")r=Cf("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=Cf("async function* () {}");else if(e==="%AsyncGenerator%"){var i=t("%AsyncGeneratorFunction%");i&&(r=i.prototype)}else if(e==="%AsyncIteratorPrototype%"){var n=t("%AsyncGenerator%");n&&ze&&(r=ze(n.prototype))}return Fr[e]=r,r},o0={__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"]},bn=mi(),Bo=If(),pb=bn.call(mn,Array.prototype.concat),vb=bn.call(s0,Array.prototype.splice),a0=bn.call(mn,String.prototype.replace),Ao=bn.call(mn,String.prototype.slice),yb=bn.call(mn,RegExp.prototype.exec),gb=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,mb=/\\(\\)?/g,bb=function(e){var r=Ao(e,0,1),i=Ao(e,-1);if(r==="%"&&i!=="%")throw new xi("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&r!=="%")throw new xi("invalid intrinsic syntax, expected opening `%`");var n=[];return a0(e,gb,function(a,s,y,w){n[n.length]=y?a0(w,mb,"$1"):s||a}),n},wb=function(e,r){var i=e,n;if(Bo(o0,i)&&(n=o0[i],i="%"+n[0]+"%"),Bo(Fr,i)){var a=Fr[i];if(a===wi&&(a=db(i)),typeof a>"u"&&!r)throw new _i("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:a}}throw new xi("intrinsic "+e+" does not exist!")};u0.exports=function(e,r){if(typeof e!="string"||e.length===0)throw new _i("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new _i('"allowMissing" argument must be a boolean');if(yb(/^%?[^%]*%?$/,e)===null)throw new xi("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=bb(e),n=i.length>0?i[0]:"",a=wb("%"+n+"%",r),s=a.name,y=a.value,w=!1,S=a.alias;S&&(n=S[0],vb(i,pb([0,1],S)));for(var A=1,q=!0;A<i.length;A+=1){var k=i[A],O=Ao(k,0,1),P=Ao(k,-1);if((O==='"'||O==="'"||O==="`"||P==='"'||P==="'"||P==="`")&&O!==P)throw new xi("property names with quotes must have matching quotes");if((k==="constructor"||!q)&&(w=!0),n+="."+k,s="%"+n+"%",Bo(Fr,s))y=Fr[s];else if(y!=null){if(!(k in y)){if(!r)throw new _i("base intrinsic for "+e+" exists, but the property is not available.");return}if(gn&&A+1>=i.length){var W=gn(y,k);q=!!W,q&&"get"in W&&!("originalValue"in W.get)?y=W.get:y=y[k]}else q=Bo(y,k),y=y[k];q&&!w&&(Fr[s]=y)}}return y}});var jr=B((US,c0)=>{"use strict";b();var h0=Df(),l0=Eo(),_b=l0([h0("%String.prototype.indexOf%")]);c0.exports=function(e,r){var i=h0(e,!!r);return typeof i=="function"&&_b(e,".prototype.")>-1?l0([i]):i}});var v0=B((NS,p0)=>{"use strict";b();var xb=vn()(),Mb=jr(),Pf=Mb("Object.prototype.toString"),Ro=function(e){return xb&&e&&typeof e=="object"&&Symbol.toStringTag in e?!1:Pf(e)==="[object Arguments]"},d0=function(e){return Ro(e)?!0:e!==null&&typeof e=="object"&&"length"in e&&typeof e.length=="number"&&e.length>=0&&Pf(e)!=="[object Array]"&&"callee"in e&&Pf(e.callee)==="[object Function]"},Eb=(function(){return Ro(arguments)})();Ro.isLegacyArguments=d0;p0.exports=Eb?Ro:d0});var _0=B((jS,w0)=>{"use strict";b();var y0=jr(),Sb=vn()(),Bb=If(),Ab=Nr(),Nf;Sb?(g0=y0("RegExp.prototype.exec"),Uf={},qo=function(){throw Uf},Lf={toString:qo,valueOf:qo},typeof Symbol.toPrimitive=="symbol"&&(Lf[Symbol.toPrimitive]=qo),Nf=function(e){if(!e||typeof e!="object")return!1;var r=Ab(e,"lastIndex"),i=r&&Bb(r,"value");if(!i)return!1;try{g0(e,Lf)}catch(n){return n===Uf}}):(m0=y0("Object.prototype.toString"),b0="[object RegExp]",Nf=function(e){return!e||typeof e!="object"&&typeof e!="function"?!1:m0(e)===b0});var g0,Uf,qo,Lf,m0,b0;w0.exports=Nf});var M0=B((KS,x0)=>{"use strict";b();var Rb=jr(),qb=_0(),Tb=Rb("RegExp.prototype.exec"),kb=Lr();x0.exports=function(e){if(!qb(e))throw new kb("`regex` must be a RegExp");return function(i){return Tb(e,i)!==null}}});var S0=B(($S,E0)=>{"use strict";b();var Ib=function*(){}.constructor;E0.exports=()=>Ib});var q0=B((VS,R0)=>{"use strict";b();var A0=jr(),Cb=M0(),Ob=Cb(/^\s*(?:function)?\*/),Db=vn()(),B0=So(),Pb=A0("Object.prototype.toString"),Ub=A0("Function.prototype.toString"),Lb=S0();R0.exports=function(e){if(typeof e!="function")return!1;if(Ob(Ub(e)))return!0;if(!Db){var r=Pb(e);return r==="[object GeneratorFunction]"}if(!B0)return!1;var i=Lb();return i&&B0(e)===i.prototype}});var C0=B((ZS,I0)=>{"use strict";b();var k0=Function.prototype.toString,Mi=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,jf,To;if(typeof Mi=="function"&&typeof Object.defineProperty=="function")try{jf=Object.defineProperty({},"length",{get:function(){throw To}}),To={},Mi(function(){throw 42},null,jf)}catch(t){t!==To&&(Mi=null)}else Mi=null;var Nb=/^\s*class\b/,Hf=function(e){try{var r=k0.call(e);return Nb.test(r)}catch{return!1}},Ff=function(e){try{return Hf(e)?!1:(k0.call(e),!0)}catch{return!1}},ko=Object.prototype.toString,Fb="[object Object]",jb="[object Function]",Hb="[object GeneratorFunction]",Kb="[object HTMLAllCollection]",Wb="[object HTML document.all class]",$b="[object HTMLCollection]",Gb=typeof Symbol=="function"&&!!Symbol.toStringTag,Vb=!(0 in[,]),Kf=function(){return!1};typeof document=="object"&&(T0=document.all,ko.call(T0)===ko.call(document.all)&&(Kf=function(e){if((Vb||!e)&&(typeof e>"u"||typeof e=="object"))try{var r=ko.call(e);return(r===Kb||r===Wb||r===$b||r===Fb)&&e("")==null}catch{}return!1}));var T0;I0.exports=Mi?function(e){if(Kf(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;try{Mi(e,null,jf)}catch(r){if(r!==To)return!1}return!Hf(e)&&Ff(e)}:function(e){if(Kf(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;if(Gb)return Ff(e);if(Hf(e))return!1;var r=ko.call(e);return r!==jb&&r!==Hb&&!/^\[object HTML/.test(r)?!1:Ff(e)}});var P0=B((XS,D0)=>{"use strict";b();var zb=C0(),Zb=Object.prototype.toString,O0=Object.prototype.hasOwnProperty,Yb=function(e,r,i){for(var n=0,a=e.length;n<a;n++)O0.call(e,n)&&(i==null?r(e[n],n,e):r.call(i,e[n],n,e))},Xb=function(e,r,i){for(var n=0,a=e.length;n<a;n++)i==null?r(e.charAt(n),n,e):r.call(i,e.charAt(n),n,e)},Jb=function(e,r,i){for(var n in e)O0.call(e,n)&&(i==null?r(e[n],n,e):r.call(i,e[n],n,e))};function Qb(t){return Zb.call(t)==="[object Array]"}D0.exports=function(e,r,i){if(!zb(r))throw new TypeError("iterator must be a function");var n;arguments.length>=3&&(n=i),Qb(e)?Yb(e,r,n):typeof e=="string"?Xb(e,r,n):Jb(e,r,n)}});var L0=B((QS,U0)=>{"use strict";b();U0.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]});var F0=B((t5,N0)=>{"use strict";b();var Wf=L0(),ew=globalThis;N0.exports=function(){for(var e=[],r=0;r<Wf.length;r++)typeof ew[Wf[r]]=="function"&&(e[e.length]=Wf[r]);return e}});var W0=B((i5,K0)=>{"use strict";b();var j0=yn(),tw=Af(),Ei=Lr(),H0=Nr();K0.exports=function(e,r,i){if(!e||typeof e!="object"&&typeof e!="function")throw new Ei("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Ei("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Ei("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Ei("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Ei("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Ei("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,y=arguments.length>6?arguments[6]:!1,w=!!H0&&H0(e,r);if(j0)j0(e,r,{configurable:s===null&&w?w.configurable:!s,enumerable:n===null&&w?w.enumerable:!n,value:i,writable:a===null&&w?w.writable:!a});else if(y||!n&&!a&&!s)e[r]=i;else throw new tw("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var V0=B((o5,G0)=>{"use strict";b();var $f=yn(),$0=function(){return!!$f};$0.hasArrayLengthDefineBug=function(){if(!$f)return null;try{return $f([],"length",{value:1}).length!==1}catch{return!0}};G0.exports=$0});var J0=B((f5,X0)=>{"use strict";b();var rw=Df(),z0=W0(),iw=V0()(),Z0=Nr(),Y0=Lr(),nw=rw("%Math.floor%");X0.exports=function(e,r){if(typeof e!="function")throw new Y0("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||nw(r)!==r)throw new Y0("`length` must be a positive 32-bit integer");var i=arguments.length>2&&!!arguments[2],n=!0,a=!0;if("length"in e&&Z0){var s=Z0(e,"length");s&&!s.configurable&&(n=!1),s&&!s.writable&&(a=!1)}return(n||a||!i)&&(iw?z0(e,"length",r,!0,!0):z0(e,"length",r)),e}});var ec=B((u5,Q0)=>{"use strict";b();var ow=mi(),aw=Mo(),fw=Tf();Q0.exports=function(){return fw(ow,aw,arguments)}});var ic=B((l5,Io)=>{"use strict";b();var sw=J0(),tc=yn(),uw=Eo(),rc=ec();Io.exports=function(e){var r=uw(arguments),i=1+e.length-(arguments.length-1);return sw(r,i>0?i:0,!0)};tc?tc(Io.exports,"apply",{value:rc}):Io.exports.apply=rc});var Zf=B((d5,fc)=>{"use strict";b();var Do=P0(),hw=F0(),nc=ic(),Vf=jr(),Oo=Nr(),Co=So(),lw=Vf("Object.prototype.toString"),ac=vn()(),oc=globalThis,Gf=hw(),zf=Vf("String.prototype.slice"),cw=Vf("Array.prototype.indexOf",!0)||function(e,r){for(var i=0;i<e.length;i+=1)if(e[i]===r)return i;return-1},Po={__proto__:null};ac&&Oo&&Co?Do(Gf,function(t){var e=new oc[t];if(Symbol.toStringTag in e&&Co){var r=Co(e),i=Oo(r,Symbol.toStringTag);if(!i&&r){var n=Co(r);i=Oo(n,Symbol.toStringTag)}if(i&&i.get){var a=nc(i.get);Po["$"+t]=a}}}):Do(Gf,function(t){var e=new oc[t],r=e.slice||e.set;if(r){var i=nc(r);Po["$"+t]=i}});var dw=function(e){var r=!1;return Do(Po,function(i,n){if(!r)try{"$"+i(e)===n&&(r=zf(n,1))}catch{}}),r},pw=function(e){var r=!1;return Do(Po,function(i,n){if(!r)try{i(e),r=zf(n,1)}catch{}}),r};fc.exports=function(e){if(!e||typeof e!="object")return!1;if(!ac){var r=zf(lw(e),8,-1);return cw(Gf,r)>-1?r:r!=="Object"?!1:pw(e)}return Oo?dw(e):null}});var Yf=B((v5,sc)=>{"use strict";b();var vw=Zf();sc.exports=function(e){return!!vw(e)}});var xc=B(Re=>{"use strict";b();var yw=v0(),gw=q0(),wt=Zf(),uc=Yf();function Si(t){return t.call.bind(t)}var hc=typeof BigInt<"u",lc=typeof Symbol<"u",ht=Si(Object.prototype.toString),mw=Si(Number.prototype.valueOf),bw=Si(String.prototype.valueOf),ww=Si(Boolean.prototype.valueOf);hc&&(cc=Si(BigInt.prototype.valueOf));var cc;lc&&(dc=Si(Symbol.prototype.valueOf));var dc;function _n(t,e){if(typeof t!="object")return!1;try{return e(t),!0}catch{return!1}}Re.isArgumentsObject=yw;Re.isGeneratorFunction=gw;Re.isTypedArray=uc;function _w(t){return typeof Promise<"u"&&t instanceof Promise||t!==null&&typeof t=="object"&&typeof t.then=="function"&&typeof t.catch=="function"}Re.isPromise=_w;function xw(t){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(t):uc(t)||vc(t)}Re.isArrayBufferView=xw;function Mw(t){return wt(t)==="Uint8Array"}Re.isUint8Array=Mw;function Ew(t){return wt(t)==="Uint8ClampedArray"}Re.isUint8ClampedArray=Ew;function Sw(t){return wt(t)==="Uint16Array"}Re.isUint16Array=Sw;function Bw(t){return wt(t)==="Uint32Array"}Re.isUint32Array=Bw;function Aw(t){return wt(t)==="Int8Array"}Re.isInt8Array=Aw;function Rw(t){return wt(t)==="Int16Array"}Re.isInt16Array=Rw;function qw(t){return wt(t)==="Int32Array"}Re.isInt32Array=qw;function Tw(t){return wt(t)==="Float32Array"}Re.isFloat32Array=Tw;function kw(t){return wt(t)==="Float64Array"}Re.isFloat64Array=kw;function Iw(t){return wt(t)==="BigInt64Array"}Re.isBigInt64Array=Iw;function Cw(t){return wt(t)==="BigUint64Array"}Re.isBigUint64Array=Cw;function Uo(t){return ht(t)==="[object Map]"}Uo.working=typeof Map<"u"&&Uo(new Map);function Ow(t){return typeof Map>"u"?!1:Uo.working?Uo(t):t instanceof Map}Re.isMap=Ow;function Lo(t){return ht(t)==="[object Set]"}Lo.working=typeof Set<"u"&&Lo(new Set);function Dw(t){return typeof Set>"u"?!1:Lo.working?Lo(t):t instanceof Set}Re.isSet=Dw;function No(t){return ht(t)==="[object WeakMap]"}No.working=typeof WeakMap<"u"&&No(new WeakMap);function Pw(t){return typeof WeakMap>"u"?!1:No.working?No(t):t instanceof WeakMap}Re.isWeakMap=Pw;function Jf(t){return ht(t)==="[object WeakSet]"}Jf.working=typeof WeakSet<"u"&&Jf(new WeakSet);function Uw(t){return Jf(t)}Re.isWeakSet=Uw;function Fo(t){return ht(t)==="[object ArrayBuffer]"}Fo.working=typeof ArrayBuffer<"u"&&Fo(new ArrayBuffer);function pc(t){return typeof ArrayBuffer>"u"?!1:Fo.working?Fo(t):t instanceof ArrayBuffer}Re.isArrayBuffer=pc;function jo(t){return ht(t)==="[object DataView]"}jo.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&jo(new DataView(new ArrayBuffer(1),0,1));function vc(t){return typeof DataView>"u"?!1:jo.working?jo(t):t instanceof DataView}Re.isDataView=vc;var Xf=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function wn(t){return ht(t)==="[object SharedArrayBuffer]"}function yc(t){return typeof Xf>"u"?!1:(typeof wn.working>"u"&&(wn.working=wn(new Xf)),wn.working?wn(t):t instanceof Xf)}Re.isSharedArrayBuffer=yc;function Lw(t){return ht(t)==="[object AsyncFunction]"}Re.isAsyncFunction=Lw;function Nw(t){return ht(t)==="[object Map Iterator]"}Re.isMapIterator=Nw;function Fw(t){return ht(t)==="[object Set Iterator]"}Re.isSetIterator=Fw;function jw(t){return ht(t)==="[object Generator]"}Re.isGeneratorObject=jw;function Hw(t){return ht(t)==="[object WebAssembly.Module]"}Re.isWebAssemblyCompiledModule=Hw;function gc(t){return _n(t,mw)}Re.isNumberObject=gc;function mc(t){return _n(t,bw)}Re.isStringObject=mc;function bc(t){return _n(t,ww)}Re.isBooleanObject=bc;function wc(t){return hc&&_n(t,cc)}Re.isBigIntObject=wc;function _c(t){return lc&&_n(t,dc)}Re.isSymbolObject=_c;function Kw(t){return gc(t)||mc(t)||bc(t)||wc(t)||_c(t)}Re.isBoxedPrimitive=Kw;function Ww(t){return typeof Uint8Array<"u"&&(pc(t)||yc(t))}Re.isAnyArrayBuffer=Ww;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(t){Object.defineProperty(Re,t,{enumerable:!1,value:function(){throw new Error(t+" is not supported in userland")}})})});var Ec=B((b5,Mc)=>{b();Mc.exports=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"}});var En=B(qe=>{b();var Sc=Object.getOwnPropertyDescriptors||function(e){for(var r=Object.keys(e),i={},n=0;n<r.length;n++)i[r[n]]=Object.getOwnPropertyDescriptor(e,r[n]);return i},$w=/%[sdj%]/g;qe.format=function(t){if(!zo(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(ar(arguments[r]));return e.join(" ")}for(var r=1,i=arguments,n=i.length,a=String(t).replace($w,function(y){if(y==="%%")return"%";if(r>=n)return y;switch(y){case"%s":return String(i[r++]);case"%d":return Number(i[r++]);case"%j":try{return JSON.stringify(i[r++])}catch{return"[Circular]"}default:return y}}),s=i[r];r<n;s=i[++r])Vo(s)||!Bi(s)?a+=" "+s:a+=" "+ar(s);return a};qe.deprecate=function(t,e){if(typeof M.default<"u"&&M.default.noDeprecation===!0)return t;if(typeof M.default>"u")return function(){return qe.deprecate(t,e).apply(this,arguments)};var r=!1;function i(){if(!r){if(M.default.throwDeprecation)throw new Error(e);M.default.traceDeprecation?console.trace(e):console.error(e),r=!0}return t.apply(this,arguments)}return i};var Ho={},Bc=/^$/;M.default.env.NODE_DEBUG&&(Ko=M.default.env.NODE_DEBUG,Ko=Ko.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),Bc=new RegExp("^"+Ko+"$","i"));var Ko;qe.debuglog=function(t){if(t=t.toUpperCase(),!Ho[t])if(Bc.test(t)){var e=M.default.pid;Ho[t]=function(){var r=qe.format.apply(qe,arguments);console.error("%s %d: %s",t,e,r)}}else Ho[t]=function(){};return Ho[t]};function ar(t,e){var r={seen:[],stylize:Vw};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),rs(e)?r.showHidden=e:e&&qe._extend(r,e),Kr(r.showHidden)&&(r.showHidden=!1),Kr(r.depth)&&(r.depth=2),Kr(r.colors)&&(r.colors=!1),Kr(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=Gw),$o(r,t,r.depth)}qe.inspect=ar;ar.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]};ar.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function Gw(t,e){var r=ar.styles[e];return r?"\x1B["+ar.colors[r][0]+"m"+t+"\x1B["+ar.colors[r][1]+"m":t}function Vw(t,e){return t}function zw(t){var e={};return t.forEach(function(r,i){e[r]=!0}),e}function $o(t,e,r){if(t.customInspect&&e&&Wo(e.inspect)&&e.inspect!==qe.inspect&&!(e.constructor&&e.constructor.prototype===e)){var i=e.inspect(r,t);return zo(i)||(i=$o(t,i,r)),i}var n=Zw(t,e);if(n)return n;var a=Object.keys(e),s=zw(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(e)),Mn(e)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return Qf(e);if(a.length===0){if(Wo(e)){var y=e.name?": "+e.name:"";return t.stylize("[Function"+y+"]","special")}if(xn(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(Go(e))return t.stylize(Date.prototype.toString.call(e),"date");if(Mn(e))return Qf(e)}var w="",S=!1,A=["{","}"];if(Ac(e)&&(S=!0,A=["[","]"]),Wo(e)){var q=e.name?": "+e.name:"";w=" [Function"+q+"]"}if(xn(e)&&(w=" "+RegExp.prototype.toString.call(e)),Go(e)&&(w=" "+Date.prototype.toUTCString.call(e)),Mn(e)&&(w=" "+Qf(e)),a.length===0&&(!S||e.length==0))return A[0]+w+A[1];if(r<0)return xn(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special");t.seen.push(e);var k;return S?k=Yw(t,e,r,s,a):k=a.map(function(O){return ts(t,e,r,s,O,S)}),t.seen.pop(),Xw(k,w,A)}function Zw(t,e){if(Kr(e))return t.stylize("undefined","undefined");if(zo(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}if(Rc(e))return t.stylize(""+e,"number");if(rs(e))return t.stylize(""+e,"boolean");if(Vo(e))return t.stylize("null","null")}function Qf(t){return"["+Error.prototype.toString.call(t)+"]"}function Yw(t,e,r,i,n){for(var a=[],s=0,y=e.length;s<y;++s)qc(e,String(s))?a.push(ts(t,e,r,i,String(s),!0)):a.push("");return n.forEach(function(w){w.match(/^\d+$/)||a.push(ts(t,e,r,i,w,!0))}),a}function ts(t,e,r,i,n,a){var s,y,w;if(w=Object.getOwnPropertyDescriptor(e,n)||{value:e[n]},w.get?w.set?y=t.stylize("[Getter/Setter]","special"):y=t.stylize("[Getter]","special"):w.set&&(y=t.stylize("[Setter]","special")),qc(i,n)||(s="["+n+"]"),y||(t.seen.indexOf(w.value)<0?(Vo(r)?y=$o(t,w.value,null):y=$o(t,w.value,r-1),y.indexOf(`
|
|
3
3
|
`)>-1&&(a?y=y.split(`
|
|
4
4
|
`).map(function(S){return" "+S}).join(`
|
|
5
5
|
`).slice(2):y=`
|
|
6
6
|
`+y.split(`
|
|
7
7
|
`).map(function(S){return" "+S}).join(`
|
|
8
|
-
`))):y=t.stylize("[Circular]","special")),
|
|
8
|
+
`))):y=t.stylize("[Circular]","special")),Kr(s)){if(a&&n.match(/^\d+$/))return y;s=JSON.stringify(""+n),s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.slice(1,-1),s=t.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=t.stylize(s,"string"))}return s+": "+y}function Xw(t,e,r){var i=0,n=t.reduce(function(a,s){return i++,s.indexOf(`
|
|
9
9
|
`)>=0&&i++,a+s.replace(/\u001b\[\d\d?m/g,"").length+1},0);return n>60?r[0]+(e===""?"":e+`
|
|
10
10
|
`)+" "+t.join(`,
|
|
11
|
-
`)+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}Re.types=Tc();function Dc(t){return Array.isArray(t)}Re.isArray=Dc;function os(t){return typeof t=="boolean"}Re.isBoolean=os;function Zo(t){return t===null}Re.isNull=Zo;function s2(t){return t==null}Re.isNullOrUndefined=s2;function Pc(t){return typeof t=="number"}Re.isNumber=Pc;function Yo(t){return typeof t=="string"}Re.isString=Yo;function u2(t){return typeof t=="symbol"}Re.isSymbol=u2;function Wr(t){return t===void 0}Re.isUndefined=Wr;function En(t){return Ri(t)&&as(t)==="[object RegExp]"}Re.isRegExp=En;Re.types.isRegExp=En;function Ri(t){return typeof t=="object"&&t!==null}Re.isObject=Ri;function zo(t){return Ri(t)&&as(t)==="[object Date]"}Re.isDate=zo;Re.types.isDate=zo;function Sn(t){return Ri(t)&&(as(t)==="[object Error]"||t instanceof Error)}Re.isError=Sn;Re.types.isNativeError=Sn;function Go(t){return typeof t=="function"}Re.isFunction=Go;function h2(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t>"u"}Re.isPrimitive=h2;Re.isBuffer=Ic();function as(t){return Object.prototype.toString.call(t)}function is(t){return t<10?"0"+t.toString(10):t.toString(10)}var l2=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function c2(){var t=new Date,e=[is(t.getHours()),is(t.getMinutes()),is(t.getSeconds())].join(":");return[t.getDate(),l2[t.getMonth()],e].join(" ")}Re.log=function(){console.log("%s - %s",c2(),Re.format.apply(Re,arguments))};Re.inherits=De();Re._extend=function(t,e){if(!e||!Ri(e))return t;for(var r=Object.keys(e),i=r.length;i--;)t[r[i]]=e[r[i]];return t};function Uc(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var Kr=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Re.promisify=function(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');if(Kr&&e[Kr]){var r=e[Kr];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,Kr,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var i,n,a=new Promise(function(w,S){i=w,n=S}),s=[],y=0;y<arguments.length;y++)s.push(arguments[y]);s.push(function(w,S){w?n(w):i(S)});try{e.apply(this,s)}catch(w){n(w)}return a}return Object.setPrototypeOf(r,Object.getPrototypeOf(e)),Kr&&Object.defineProperty(r,Kr,{value:r,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(r,Oc(e))};Re.promisify.custom=Kr;function d2(t,e){if(!t){var r=new Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}function p2(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');function e(){for(var r=[],i=0;i<arguments.length;i++)r.push(arguments[i]);var n=r.pop();if(typeof n!="function")throw new TypeError("The last argument must be of type Function");var a=this,s=function(){return n.apply(a,arguments)};t.apply(this,r).then(function(y){M.default.nextTick(s.bind(null,null,y))},function(y){M.default.nextTick(d2.bind(null,y,s))})}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),Object.defineProperties(e,Oc(t)),e}Re.callbackify=p2});var Kc=B((D5,Hc)=>{"use strict";b();function Lc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function Nc(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Lc(Object(r),!0).forEach(function(i){v2(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Lc(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function v2(t,e,r){return e=jc(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function y2(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Fc(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,jc(i.key),i)}}function g2(t,e,r){return e&&Fc(t.prototype,e),r&&Fc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function jc(t){var e=m2(t,"string");return typeof e=="symbol"?e:String(e)}function m2(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var b2=rt(),Xo=b2.Buffer,w2=Bn(),fs=w2.inspect,_2=fs&&fs.custom||"inspect";function x2(t,e,r){Xo.prototype.copy.call(t,e,r)}Hc.exports=(function(){function t(){y2(this,t),this.head=null,this.tail=null,this.length=0}return g2(t,[{key:"push",value:function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length}},{key:"unshift",value:function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var i=this.head,n=""+i.data;i=i.next;)n+=r+i.data;return n}},{key:"concat",value:function(r){if(this.length===0)return Xo.alloc(0);for(var i=Xo.allocUnsafe(r>>>0),n=this.head,a=0;n;)x2(n.data,i,a),a+=n.data.length,n=n.next;return i}},{key:"consume",value:function(r,i){var n;return r<this.head.data.length?(n=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?n=this.shift():n=i?this._getString(r):this._getBuffer(r),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var i=this.head,n=1,a=i.data;for(r-=a.length;i=i.next;){var s=i.data,y=r>s.length?s.length:r;if(y===s.length?a+=s:a+=s.slice(0,r),r-=y,r===0){y===s.length?(++n,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=s.slice(y));break}++n}return this.length-=n,a}},{key:"_getBuffer",value:function(r){var i=Xo.allocUnsafe(r),n=this.head,a=1;for(n.data.copy(i),r-=n.data.length;n=n.next;){var s=n.data,y=r>s.length?s.length:r;if(s.copy(i,i.length-r,0,y),r-=y,r===0){y===s.length?(++a,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=s.slice(y));break}++a}return this.length-=a,i}},{key:_2,value:function(r,i){return fs(this,Nc(Nc({},i),{},{depth:0,customInspect:!1}))}}]),t})()});var us=B((U5,$c)=>{"use strict";b();function M2(t,e){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,M.default.nextTick(ss,this,t)):M.default.nextTick(ss,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(a){!e&&a?r._writableState?r._writableState.errorEmitted?M.default.nextTick(Jo,r):(r._writableState.errorEmitted=!0,M.default.nextTick(Wc,r,a)):M.default.nextTick(Wc,r,a):e?(M.default.nextTick(Jo,r),e(a)):M.default.nextTick(Jo,r)}),this)}function Wc(t,e){ss(t,e),Jo(t)}function Jo(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function E2(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function ss(t,e){t.emit("error",e)}function S2(t,e){var r=t._readableState,i=t._writableState;r&&r.autoDestroy||i&&i.autoDestroy?t.destroy(e):t.emit("error",e)}$c.exports={destroy:M2,undestroy:E2,errorOrDestroy:S2}});var $r=B((N5,zc)=>{"use strict";b();function B2(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var Vc={};function lt(t,e,r){r||(r=Error);function i(a,s,y){return typeof e=="string"?e:e(a,s,y)}var n=(function(a){B2(s,a);function s(y,w,S){return a.call(this,i(y,w,S))||this}return s})(r);n.prototype.name=r.name,n.prototype.code=t,Vc[t]=n}function Gc(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map(function(i){return String(i)}),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:r===2?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}else return"of ".concat(e," ").concat(String(t))}function A2(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function R2(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function q2(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}lt("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);lt("ERR_INVALID_ARG_TYPE",function(t,e,r){var i;typeof e=="string"&&A2(e,"not ")?(i="must not be",e=e.replace(/^not /,"")):i="must be";var n;if(R2(t," argument"))n="The ".concat(t," ").concat(i," ").concat(Gc(e,"type"));else{var a=q2(t,".")?"property":"argument";n='The "'.concat(t,'" ').concat(a," ").concat(i," ").concat(Gc(e,"type"))}return n+=". Received type ".concat(typeof r),n},TypeError);lt("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");lt("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});lt("ERR_STREAM_PREMATURE_CLOSE","Premature close");lt("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});lt("ERR_MULTIPLE_CALLBACK","Callback called multiple times");lt("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");lt("ERR_STREAM_WRITE_AFTER_END","write after end");lt("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);lt("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);lt("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");zc.exports.codes=Vc});var hs=B((j5,Zc)=>{"use strict";b();var T2=$r().codes.ERR_INVALID_OPT_VALUE;function k2(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function I2(t,e,r,i){var n=k2(e,i,r);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var a=i?r:"highWaterMark";throw new T2(a,n)}return Math.floor(n)}return t.objectMode?16:16*1024}Zc.exports={getHighWaterMark:I2}});var cs=B((K5,Yc)=>{b();Yc.exports=O2;function O2(t,e){if(ls("noDeprecation"))return t;var r=!1;function i(){if(!r){if(ls("throwDeprecation"))throw new Error(e);ls("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}return i}function ls(t){try{if(!globalThis.localStorage)return!1}catch{return!1}var e=globalThis.localStorage[t];return e==null?!1:String(e).toLowerCase()==="true"}});var vs=B(($5,rd)=>{"use strict";b();rd.exports=Ne;function Jc(t){var e=this;this.next=null,this.entry=null,this.finish=function(){a_(e,t)}}var qi;Ne.WritableState=Rn;var C2={deprecate:cs()},Qc=Af(),ea=rt().Buffer,D2=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function P2(t){return ea.from(t)}function U2(t){return ea.isBuffer(t)||t instanceof D2}var ps=us(),L2=hs(),N2=L2.getHighWaterMark,fr=$r().codes,F2=fr.ERR_INVALID_ARG_TYPE,j2=fr.ERR_METHOD_NOT_IMPLEMENTED,H2=fr.ERR_MULTIPLE_CALLBACK,K2=fr.ERR_STREAM_CANNOT_PIPE,W2=fr.ERR_STREAM_DESTROYED,$2=fr.ERR_STREAM_NULL_VALUES,G2=fr.ERR_STREAM_WRITE_AFTER_END,V2=fr.ERR_UNKNOWN_ENCODING,Ti=ps.errorOrDestroy;Lr()(Ne,Qc);function z2(){}function Rn(t,e,r){qi=qi||Gr(),t=t||{},typeof r!="boolean"&&(r=e instanceof qi),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=N2(this,t,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=t.decodeStrings===!1;this.decodeStrings=!i,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(n){t_(e,n)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Jc(this)}Rn.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(Rn.prototype,"buffer",{get:C2.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Qo;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Qo=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ne,Symbol.hasInstance,{value:function(e){return Qo.call(this,e)?!0:this!==Ne?!1:e&&e._writableState instanceof Rn}})):Qo=function(e){return e instanceof this};function Ne(t){qi=qi||Gr();var e=this instanceof qi;if(!e&&!Qo.call(Ne,this))return new Ne(t);this._writableState=new Rn(t,this,e),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),Qc.call(this)}Ne.prototype.pipe=function(){Ti(this,new K2)};function Z2(t,e){var r=new G2;Ti(t,r),M.default.nextTick(e,r)}function Y2(t,e,r,i){var n;return r===null?n=new $2:typeof r!="string"&&!e.objectMode&&(n=new F2("chunk",["string","Buffer"],r)),n?(Ti(t,n),M.default.nextTick(i,n),!1):!0}Ne.prototype.write=function(t,e,r){var i=this._writableState,n=!1,a=!i.objectMode&&U2(t);return a&&!ea.isBuffer(t)&&(t=P2(t)),typeof e=="function"&&(r=e,e=null),a?e="buffer":e||(e=i.defaultEncoding),typeof r!="function"&&(r=z2),i.ending?Z2(this,r):(a||Y2(this,i,t,r))&&(i.pendingcb++,n=J2(this,i,a,t,e,r)),n};Ne.prototype.cork=function(){this._writableState.corked++};Ne.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&ed(this,t))};Ne.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new V2(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(Ne.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function X2(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=ea.from(e,r)),e}Object.defineProperty(Ne.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function J2(t,e,r,i,n,a){if(!r){var s=X2(e,i,n);i!==s&&(r=!0,n="buffer",i=s)}var y=e.objectMode?1:i.length;e.length+=y;var w=e.length<e.highWaterMark;if(w||(e.needDrain=!0),e.writing||e.corked){var S=e.lastBufferedRequest;e.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:a,next:null},S?S.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else ds(t,e,!1,y,i,n,a);return w}function ds(t,e,r,i,n,a,s){e.writelen=i,e.writecb=s,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new W2("write")):r?t._writev(n,e.onwrite):t._write(n,a,e.onwrite),e.sync=!1}function Q2(t,e,r,i,n){--e.pendingcb,r?(M.default.nextTick(n,i),M.default.nextTick(An,t,e),t._writableState.errorEmitted=!0,Ti(t,i)):(n(i),t._writableState.errorEmitted=!0,Ti(t,i),An(t,e))}function e_(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function t_(t,e){var r=t._writableState,i=r.sync,n=r.writecb;if(typeof n!="function")throw new H2;if(e_(r),e)Q2(t,r,i,e,n);else{var a=td(r)||t.destroyed;!a&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&ed(t,r),i?M.default.nextTick(Xc,t,r,a,n):Xc(t,r,a,n)}}function Xc(t,e,r,i){r||r_(t,e),e.pendingcb--,i(),An(t,e)}function r_(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function ed(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var i=e.bufferedRequestCount,n=new Array(i),a=e.corkedRequestsFree;a.entry=r;for(var s=0,y=!0;r;)n[s]=r,r.isBuf||(y=!1),r=r.next,s+=1;n.allBuffers=y,ds(t,e,!0,e.length,n,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new Jc(e),e.bufferedRequestCount=0}else{for(;r;){var w=r.chunk,S=r.encoding,A=r.callback,q=e.objectMode?1:w.length;if(ds(t,e,!1,q,w,S,A),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}Ne.prototype._write=function(t,e,r){r(new j2("_write()"))};Ne.prototype._writev=null;Ne.prototype.end=function(t,e,r){var i=this._writableState;return typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),t!=null&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||o_(this,i,r),this};Object.defineProperty(Ne.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function td(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function i_(t,e){t._final(function(r){e.pendingcb--,r&&Ti(t,r),e.prefinished=!0,t.emit("prefinish"),An(t,e)})}function n_(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,M.default.nextTick(i_,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function An(t,e){var r=td(e);if(r&&(n_(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var i=t._readableState;(!i||i.autoDestroy&&i.endEmitted)&&t.destroy()}return r}function o_(t,e,r){e.ending=!0,An(t,e),r&&(e.finished?M.default.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function a_(t,e,r){var i=t.entry;for(t.entry=null;i;){var n=i.callback;e.pendingcb--,n(r),i=i.next}e.corkedRequestsFree.next=t}Object.defineProperty(Ne.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});Ne.prototype.destroy=ps.destroy;Ne.prototype._undestroy=ps.undestroy;Ne.prototype._destroy=function(t,e){e(t)}});var Gr=B((V5,nd)=>{"use strict";b();var f_=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};nd.exports=Pt;var id=ms(),gs=vs();Lr()(Pt,id);for(ys=f_(gs.prototype),ta=0;ta<ys.length;ta++)ra=ys[ta],Pt.prototype[ra]||(Pt.prototype[ra]=gs.prototype[ra]);var ys,ra,ta;function Pt(t){if(!(this instanceof Pt))return new Pt(t);id.call(this,t),gs.call(this,t),this.allowHalfOpen=!0,t&&(t.readable===!1&&(this.readable=!1),t.writable===!1&&(this.writable=!1),t.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",s_)))}Object.defineProperty(Pt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(Pt.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(Pt.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function s_(){this._writableState.ended||M.default.nextTick(u_,this)}function u_(t){t.end()}Object.defineProperty(Pt.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})});var fd=B((bs,ad)=>{b();var ia=rt(),$t=ia.Buffer;function od(t,e){for(var r in t)e[r]=t[r]}$t.from&&$t.alloc&&$t.allocUnsafe&&$t.allocUnsafeSlow?ad.exports=ia:(od(ia,bs),bs.Buffer=ki);function ki(t,e,r){return $t(t,e,r)}od($t,ki);ki.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return $t(t,e,r)};ki.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=$t(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};ki.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return $t(t)};ki.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return ia.SlowBuffer(t)}});var Ii=B(ud=>{"use strict";b();var _s=fd().Buffer,sd=_s.isEncoding||function(t){switch(t=""+t,t&&t.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 h_(t){if(!t)return"utf8";for(var e;;)switch(t){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 t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function l_(t){var e=h_(t);if(typeof e!="string"&&(_s.isEncoding===sd||!sd(t)))throw new Error("Unknown encoding: "+t);return e||t}ud.StringDecoder=qn;function qn(t){this.encoding=l_(t);var e;switch(this.encoding){case"utf16le":this.text=g_,this.end=m_,e=4;break;case"utf8":this.fillLast=p_,e=4;break;case"base64":this.text=b_,this.end=w_,e=3;break;default:this.write=__,this.end=x_;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=_s.allocUnsafe(e)}qn.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""};qn.prototype.end=y_;qn.prototype.text=v_;qn.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function ws(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function c_(t,e,r){var i=e.length-1;if(i<r)return 0;var n=ws(e[i]);return n>=0?(n>0&&(t.lastNeed=n-1),n):--i<r||n===-2?0:(n=ws(e[i]),n>=0?(n>0&&(t.lastNeed=n-2),n):--i<r||n===-2?0:(n=ws(e[i]),n>=0?(n>0&&(n===2?n=0:t.lastNeed=n-3),n):0))}function d_(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}function p_(t){var e=this.lastTotal-this.lastNeed,r=d_(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function v_(t,e){var r=c_(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var i=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)}function y_(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function g_(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function m_(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function b_(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function w_(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function __(t){return t.toString(this.encoding)}function x_(t){return t&&t.length?this.write(t):""}});var na=B((J5,cd)=>{"use strict";b();var hd=$r().codes.ERR_STREAM_PREMATURE_CLOSE;function M_(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,i=new Array(r),n=0;n<r;n++)i[n]=arguments[n];t.apply(this,i)}}}function E_(){}function S_(t){return t.setHeader&&typeof t.abort=="function"}function ld(t,e,r){if(typeof e=="function")return ld(t,null,e);e||(e={}),r=M_(r||E_);var i=e.readable||e.readable!==!1&&t.readable,n=e.writable||e.writable!==!1&&t.writable,a=function(){t.writable||y()},s=t._writableState&&t._writableState.finished,y=function(){n=!1,s=!0,i||r.call(t)},w=t._readableState&&t._readableState.endEmitted,S=function(){i=!1,w=!0,n||r.call(t)},A=function(P){r.call(t,P)},q=function(){var P;if(i&&!w)return(!t._readableState||!t._readableState.ended)&&(P=new hd),r.call(t,P);if(n&&!s)return(!t._writableState||!t._writableState.ended)&&(P=new hd),r.call(t,P)},k=function(){t.req.on("finish",y)};return S_(t)?(t.on("complete",y),t.on("abort",q),t.req?k():t.on("request",k)):n&&!t._writableState&&(t.on("end",a),t.on("close",a)),t.on("end",S),t.on("finish",y),e.error!==!1&&t.on("error",A),t.on("close",q),function(){t.removeListener("complete",y),t.removeListener("abort",q),t.removeListener("request",k),t.req&&t.req.removeListener("finish",y),t.removeListener("end",a),t.removeListener("close",a),t.removeListener("finish",y),t.removeListener("end",S),t.removeListener("error",A),t.removeListener("close",q)}}cd.exports=ld});var pd=B((eB,dd)=>{"use strict";b();var oa;function sr(t,e,r){return e=B_(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function B_(t){var e=A_(t,"string");return typeof e=="symbol"?e:String(e)}function A_(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var R_=na(),ur=Symbol("lastResolve"),Vr=Symbol("lastReject"),Tn=Symbol("error"),aa=Symbol("ended"),zr=Symbol("lastPromise"),xs=Symbol("handlePromise"),Zr=Symbol("stream");function hr(t,e){return{value:t,done:e}}function q_(t){var e=t[ur];if(e!==null){var r=t[Zr].read();r!==null&&(t[zr]=null,t[ur]=null,t[Vr]=null,e(hr(r,!1)))}}function T_(t){M.default.nextTick(q_,t)}function k_(t,e){return function(r,i){t.then(function(){if(e[aa]){r(hr(void 0,!0));return}e[xs](r,i)},i)}}var I_=Object.getPrototypeOf(function(){}),O_=Object.setPrototypeOf((oa={get stream(){return this[Zr]},next:function(){var e=this,r=this[Tn];if(r!==null)return Promise.reject(r);if(this[aa])return Promise.resolve(hr(void 0,!0));if(this[Zr].destroyed)return new Promise(function(s,y){M.default.nextTick(function(){e[Tn]?y(e[Tn]):s(hr(void 0,!0))})});var i=this[zr],n;if(i)n=new Promise(k_(i,this));else{var a=this[Zr].read();if(a!==null)return Promise.resolve(hr(a,!1));n=new Promise(this[xs])}return this[zr]=n,n}},sr(oa,Symbol.asyncIterator,function(){return this}),sr(oa,"return",function(){var e=this;return new Promise(function(r,i){e[Zr].destroy(null,function(n){if(n){i(n);return}r(hr(void 0,!0))})})}),oa),I_),C_=function(e){var r,i=Object.create(O_,(r={},sr(r,Zr,{value:e,writable:!0}),sr(r,ur,{value:null,writable:!0}),sr(r,Vr,{value:null,writable:!0}),sr(r,Tn,{value:null,writable:!0}),sr(r,aa,{value:e._readableState.endEmitted,writable:!0}),sr(r,xs,{value:function(a,s){var y=i[Zr].read();y?(i[zr]=null,i[ur]=null,i[Vr]=null,a(hr(y,!1))):(i[ur]=a,i[Vr]=s)},writable:!0}),r));return i[zr]=null,R_(e,function(n){if(n&&n.code!=="ERR_STREAM_PREMATURE_CLOSE"){var a=i[Vr];a!==null&&(i[zr]=null,i[ur]=null,i[Vr]=null,a(n)),i[Tn]=n;return}var s=i[ur];s!==null&&(i[zr]=null,i[ur]=null,i[Vr]=null,s(hr(void 0,!0))),i[aa]=!0}),e.on("readable",T_.bind(null,i)),i};dd.exports=C_});var yd=B((rB,vd)=>{b();vd.exports=function(){throw new Error("Readable.from is not available in the browser")}});var ms=B((oB,Bd)=>{"use strict";b();Bd.exports=Te;var Oi;Te.ReadableState=wd;var nB=bi().EventEmitter,bd=function(e,r){return e.listeners(r).length},In=Af(),fa=rt().Buffer,D_=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function P_(t){return fa.from(t)}function U_(t){return fa.isBuffer(t)||t instanceof D_}var Ms=Bn(),Se;Ms&&Ms.debuglog?Se=Ms.debuglog("stream"):Se=function(){};var L_=Kc(),Ts=us(),N_=hs(),F_=N_.getHighWaterMark,sa=$r().codes,j_=sa.ERR_INVALID_ARG_TYPE,H_=sa.ERR_STREAM_PUSH_AFTER_EOF,K_=sa.ERR_METHOD_NOT_IMPLEMENTED,W_=sa.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Ci,Es,Ss;Lr()(Te,In);var kn=Ts.errorOrDestroy,Bs=["error","close","destroy","pause","resume"];function $_(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function wd(t,e,r){Oi=Oi||Gr(),t=t||{},typeof r!="boolean"&&(r=e instanceof Oi),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=F_(this,t,"readableHighWaterMark",r),this.buffer=new L_,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=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(Ci||(Ci=Ii().StringDecoder),this.decoder=new Ci(t.encoding),this.encoding=t.encoding)}function Te(t){if(Oi=Oi||Gr(),!(this instanceof Te))return new Te(t);var e=this instanceof Oi;this._readableState=new wd(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),In.call(this)}Object.defineProperty(Te.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});Te.prototype.destroy=Ts.destroy;Te.prototype._undestroy=Ts.undestroy;Te.prototype._destroy=function(t,e){e(t)};Te.prototype.push=function(t,e){var r=this._readableState,i;return r.objectMode?i=!0:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=fa.from(t,e),e=""),i=!0),_d(this,t,e,!1,i)};Te.prototype.unshift=function(t){return _d(this,t,null,!0,!1)};function _d(t,e,r,i,n){Se("readableAddChunk",e);var a=t._readableState;if(e===null)a.reading=!1,z_(t,a);else{var s;if(n||(s=G_(a,e)),s)kn(t,s);else if(a.objectMode||e&&e.length>0)if(typeof e!="string"&&!a.objectMode&&Object.getPrototypeOf(e)!==fa.prototype&&(e=P_(e)),i)a.endEmitted?kn(t,new W_):As(t,a,e,!0);else if(a.ended)kn(t,new H_);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(e=a.decoder.write(e),a.objectMode||e.length!==0?As(t,a,e,!1):qs(t,a)):As(t,a,e,!1)}else i||(a.reading=!1,qs(t,a))}return!a.ended&&(a.length<a.highWaterMark||a.length===0)}function As(t,e,r,i){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&ua(t)),qs(t,e)}function G_(t,e){var r;return!U_(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new j_("chunk",["string","Buffer","Uint8Array"],e)),r}Te.prototype.isPaused=function(){return this._readableState.flowing===!1};Te.prototype.setEncoding=function(t){Ci||(Ci=Ii().StringDecoder);var e=new Ci(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";r!==null;)i+=e.write(r.data),r=r.next;return this._readableState.buffer.clear(),i!==""&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var gd=1073741824;function V_(t){return t>=gd?t=gd:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function md(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=V_(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}Te.prototype.read=function(t){Se("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return Se("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Rs(this):ua(this),null;if(t=md(t,e),t===0&&e.ended)return e.length===0&&Rs(this),null;var i=e.needReadable;Se("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,Se("length less than watermark",i)),e.ended||e.reading?(i=!1,Se("reading or ended",i)):i&&(Se("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=md(r,e)));var n;return t>0?n=Ed(t,e):n=null,n===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&Rs(this)),n!==null&&this.emit("data",n),n};function z_(t,e){if(Se("onEofChunk"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?ua(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,xd(t)))}}function ua(t){var e=t._readableState;Se("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(Se("emitReadable",e.flowing),e.emittedReadable=!0,M.default.nextTick(xd,t))}function xd(t){var e=t._readableState;Se("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,ks(t)}function qs(t,e){e.readingMore||(e.readingMore=!0,M.default.nextTick(Z_,t,e))}function Z_(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var r=e.length;if(Se("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}Te.prototype._read=function(t){kn(this,new K_("_read()"))};Te.prototype.pipe=function(t,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t);break}i.pipesCount+=1,Se("pipe count=%d opts=%j",i.pipesCount,e);var n=(!e||e.end!==!1)&&t!==M.default.stdout&&t!==M.default.stderr,a=n?y:K;i.endEmitted?M.default.nextTick(a):r.once("end",a),t.on("unpipe",s);function s(qe,j){Se("onunpipe"),qe===r&&j&&j.hasUnpiped===!1&&(j.hasUnpiped=!0,A())}function y(){Se("onend"),t.end()}var w=Y_(r);t.on("drain",w);var S=!1;function A(){Se("cleanup"),t.removeListener("close",C),t.removeListener("finish",P),t.removeListener("drain",w),t.removeListener("error",k),t.removeListener("unpipe",s),r.removeListener("end",y),r.removeListener("end",K),r.removeListener("data",q),S=!0,i.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&w()}r.on("data",q);function q(qe){Se("ondata");var j=t.write(qe);Se("dest.write",j),j===!1&&((i.pipesCount===1&&i.pipes===t||i.pipesCount>1&&Sd(i.pipes,t)!==-1)&&!S&&(Se("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function k(qe){Se("onerror",qe),K(),t.removeListener("error",k),bd(t,"error")===0&&kn(t,qe)}$_(t,"error",k);function C(){t.removeListener("finish",P),K()}t.once("close",C);function P(){Se("onfinish"),t.removeListener("close",C),K()}t.once("finish",P);function K(){Se("unpipe"),r.unpipe(t)}return t.emit("pipe",r),i.flowing||(Se("pipe resume"),r.resume()),t};function Y_(t){return function(){var r=t._readableState;Se("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&bd(t,"data")&&(r.flowing=!0,ks(t))}}Te.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r),this);if(!t){var i=e.pipes,n=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var a=0;a<n;a++)i[a].emit("unpipe",this,{hasUnpiped:!1});return this}var s=Sd(e.pipes,t);return s===-1?this:(e.pipes.splice(s,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};Te.prototype.on=function(t,e){var r=In.prototype.on.call(this,t,e),i=this._readableState;return t==="data"?(i.readableListening=this.listenerCount("readable")>0,i.flowing!==!1&&this.resume()):t==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,Se("on readable",i.length,i.reading),i.length?ua(this):i.reading||M.default.nextTick(X_,this)),r};Te.prototype.addListener=Te.prototype.on;Te.prototype.removeListener=function(t,e){var r=In.prototype.removeListener.call(this,t,e);return t==="readable"&&M.default.nextTick(Md,this),r};Te.prototype.removeAllListeners=function(t){var e=In.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&M.default.nextTick(Md,this),e};function Md(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function X_(t){Se("readable nexttick read 0"),t.read(0)}Te.prototype.resume=function(){var t=this._readableState;return t.flowing||(Se("resume"),t.flowing=!t.readableListening,J_(this,t)),t.paused=!1,this};function J_(t,e){e.resumeScheduled||(e.resumeScheduled=!0,M.default.nextTick(Q_,t,e))}function Q_(t,e){Se("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),ks(t),e.flowing&&!e.reading&&t.read(0)}Te.prototype.pause=function(){return Se("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Se("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function ks(t){var e=t._readableState;for(Se("flow",e.flowing);e.flowing&&t.read()!==null;);}Te.prototype.wrap=function(t){var e=this,r=this._readableState,i=!1;t.on("end",function(){if(Se("wrapped end"),r.decoder&&!r.ended){var s=r.decoder.end();s&&s.length&&e.push(s)}e.push(null)}),t.on("data",function(s){if(Se("wrapped data"),r.decoder&&(s=r.decoder.write(s)),!(r.objectMode&&s==null)&&!(!r.objectMode&&(!s||!s.length))){var y=e.push(s);y||(i=!0,t.pause())}});for(var n in t)this[n]===void 0&&typeof t[n]=="function"&&(this[n]=(function(y){return function(){return t[y].apply(t,arguments)}})(n));for(var a=0;a<Bs.length;a++)t.on(Bs[a],this.emit.bind(this,Bs[a]));return this._read=function(s){Se("wrapped _read",s),i&&(i=!1,t.resume())},this};typeof Symbol=="function"&&(Te.prototype[Symbol.asyncIterator]=function(){return Es===void 0&&(Es=pd()),Es(this)});Object.defineProperty(Te.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(Te.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(Te.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});Te._fromList=Ed;Object.defineProperty(Te.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Ed(t,e){if(e.length===0)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.first():r=e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function Rs(t){var e=t._readableState;Se("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,M.default.nextTick(e6,e,t))}function e6(t,e){if(Se("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}typeof Symbol=="function"&&(Te.from=function(t,e){return Ss===void 0&&(Ss=yd()),Ss(Te,t,e)});function Sd(t,e){for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r;return-1}});var Is=B((fB,Rd)=>{"use strict";b();Rd.exports=Gt;var ha=$r().codes,t6=ha.ERR_METHOD_NOT_IMPLEMENTED,r6=ha.ERR_MULTIPLE_CALLBACK,i6=ha.ERR_TRANSFORM_ALREADY_TRANSFORMING,n6=ha.ERR_TRANSFORM_WITH_LENGTH_0,la=Gr();Lr()(Gt,la);function o6(t,e){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(i===null)return this.emit("error",new r6);r.writechunk=null,r.writecb=null,e!=null&&this.push(e),i(t);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function Gt(t){if(!(this instanceof Gt))return new Gt(t);la.call(this,t),this._transformState={afterTransform:o6.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",a6)}function a6(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,r){Ad(t,e,r)}):Ad(this,null,null)}Gt.prototype.push=function(t,e){return this._transformState.needTransform=!1,la.prototype.push.call(this,t,e)};Gt.prototype._transform=function(t,e,r){r(new t6("_transform()"))};Gt.prototype._write=function(t,e,r){var i=this._transformState;if(i.writecb=r,i.writechunk=t,i.writeencoding=e,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}};Gt.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};Gt.prototype._destroy=function(t,e){la.prototype._destroy.call(this,t,function(r){e(r)})};function Ad(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new n6;if(t._transformState.transforming)throw new i6;return t.push(null)}});var kd=B((uB,Td)=>{"use strict";b();Td.exports=On;var qd=Is();Lr()(On,qd);function On(t){if(!(this instanceof On))return new On(t);qd.call(this,t)}On.prototype._transform=function(t,e,r){r(null,t)}});var Pd=B((lB,Dd)=>{"use strict";b();var Os;function f6(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var Cd=$r().codes,s6=Cd.ERR_MISSING_ARGS,u6=Cd.ERR_STREAM_DESTROYED;function Id(t){if(t)throw t}function h6(t){return t.setHeader&&typeof t.abort=="function"}function l6(t,e,r,i){i=f6(i);var n=!1;t.on("close",function(){n=!0}),Os===void 0&&(Os=na()),Os(t,{readable:e,writable:r},function(s){if(s)return i(s);n=!0,i()});var a=!1;return function(s){if(!n&&!a){if(a=!0,h6(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();i(s||new u6("pipe"))}}}function Od(t){t()}function c6(t,e){return t.pipe(e)}function d6(t){return!t.length||typeof t[t.length-1]!="function"?Id:t.pop()}function p6(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var i=d6(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new s6("streams");var n,a=e.map(function(s,y){var w=y<e.length-1,S=y>0;return l6(s,w,S,function(A){n||(n=A),A&&a.forEach(Od),!w&&(a.forEach(Od),i(n))})});return e.reduce(c6)}Dd.exports=p6});var Ds=B((dB,Ud)=>{b();Ud.exports=ct;var Cs=bi().EventEmitter,v6=Lr();v6(ct,Cs);ct.Readable=ms();ct.Writable=vs();ct.Duplex=Gr();ct.Transform=Is();ct.PassThrough=kd();ct.finished=na();ct.pipeline=Pd();ct.Stream=ct;function ct(){Cs.call(this)}ct.prototype.pipe=function(t,e){var r=this;function i(A){t.writable&&t.write(A)===!1&&r.pause&&r.pause()}r.on("data",i);function n(){r.readable&&r.resume&&r.resume()}t.on("drain",n),!t._isStdio&&(!e||e.end!==!1)&&(r.on("end",s),r.on("close",y));var a=!1;function s(){a||(a=!0,t.end())}function y(){a||(a=!0,typeof t.destroy=="function"&&t.destroy())}function w(A){if(S(),Cs.listenerCount(this,"error")===0)throw A}r.on("error",w),t.on("error",w);function S(){r.removeListener("data",i),t.removeListener("drain",n),r.removeListener("end",s),r.removeListener("close",y),r.removeListener("error",w),t.removeListener("error",w),r.removeListener("end",S),r.removeListener("close",S),t.removeListener("close",S)}return r.on("end",S),r.on("close",S),t.on("close",S),t.emit("pipe",r),t}});var Ld=B((vB,Ps)=>{b();typeof Object.create=="function"?Ps.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Ps.exports=function(e,r){if(r){e.super_=r;var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e}}});var jd=B((gB,Fd)=>{"use strict";b();var Ut=xe().Buffer,Nd=Ds().Transform,y6=Ld();function lr(t){Nd.call(this),this._block=Ut.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}y6(lr,Nd);lr.prototype._transform=function(t,e,r){var i=null;try{this.update(t,e)}catch(n){i=n}r(i)};lr.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(r){e=r}t(e)};var g6=typeof Uint8Array<"u",m6=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(Ut.prototype instanceof Uint8Array||Ut.TYPED_ARRAY_SUPPORT);function b6(t,e){if(t instanceof Ut)return t;if(typeof t=="string")return Ut.from(t,e);if(m6&&ArrayBuffer.isView(t)){if(t.byteLength===0)return Ut.alloc(0);var r=Ut.from(t.buffer,t.byteOffset,t.byteLength);if(r.byteLength===t.byteLength)return r}if(g6&&t instanceof Uint8Array||Ut.isBuffer(t)&&t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t))return Ut.from(t);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}lr.prototype.update=function(t,e){if(this._finalized)throw new Error("Digest already called");t=b6(t,e);for(var r=this._block,i=0;this._blockOffset+t.length-i>=this._blockSize;){for(var n=this._blockOffset;n<this._blockSize;)r[n++]=t[i++];this._update(),this._blockOffset=0}for(;i<t.length;)r[this._blockOffset++]=t[i++];for(var a=0,s=t.length*8;s>0;++a)this._length[a]+=s,s=this._length[a]/4294967296|0,s>0&&(this._length[a]-=4294967296*s);return this};lr.prototype._update=function(){throw new Error("_update is not implemented")};lr.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();t!==void 0&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return e};lr.prototype._digest=function(){throw new Error("_digest is not implemented")};Fd.exports=lr});var pa=B((bB,Kd)=>{"use strict";b();var w6=De(),Hd=jd(),_6=xe().Buffer,x6=new Array(16);function ca(){Hd.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}w6(ca,Hd);ca.prototype._update=function(){for(var t=x6,e=0;e<16;++e)t[e]=this._block.readInt32LE(e*4);var r=this._a,i=this._b,n=this._c,a=this._d;r=Xe(r,i,n,a,t[0],3614090360,7),a=Xe(a,r,i,n,t[1],3905402710,12),n=Xe(n,a,r,i,t[2],606105819,17),i=Xe(i,n,a,r,t[3],3250441966,22),r=Xe(r,i,n,a,t[4],4118548399,7),a=Xe(a,r,i,n,t[5],1200080426,12),n=Xe(n,a,r,i,t[6],2821735955,17),i=Xe(i,n,a,r,t[7],4249261313,22),r=Xe(r,i,n,a,t[8],1770035416,7),a=Xe(a,r,i,n,t[9],2336552879,12),n=Xe(n,a,r,i,t[10],4294925233,17),i=Xe(i,n,a,r,t[11],2304563134,22),r=Xe(r,i,n,a,t[12],1804603682,7),a=Xe(a,r,i,n,t[13],4254626195,12),n=Xe(n,a,r,i,t[14],2792965006,17),i=Xe(i,n,a,r,t[15],1236535329,22),r=Je(r,i,n,a,t[1],4129170786,5),a=Je(a,r,i,n,t[6],3225465664,9),n=Je(n,a,r,i,t[11],643717713,14),i=Je(i,n,a,r,t[0],3921069994,20),r=Je(r,i,n,a,t[5],3593408605,5),a=Je(a,r,i,n,t[10],38016083,9),n=Je(n,a,r,i,t[15],3634488961,14),i=Je(i,n,a,r,t[4],3889429448,20),r=Je(r,i,n,a,t[9],568446438,5),a=Je(a,r,i,n,t[14],3275163606,9),n=Je(n,a,r,i,t[3],4107603335,14),i=Je(i,n,a,r,t[8],1163531501,20),r=Je(r,i,n,a,t[13],2850285829,5),a=Je(a,r,i,n,t[2],4243563512,9),n=Je(n,a,r,i,t[7],1735328473,14),i=Je(i,n,a,r,t[12],2368359562,20),r=Qe(r,i,n,a,t[5],4294588738,4),a=Qe(a,r,i,n,t[8],2272392833,11),n=Qe(n,a,r,i,t[11],1839030562,16),i=Qe(i,n,a,r,t[14],4259657740,23),r=Qe(r,i,n,a,t[1],2763975236,4),a=Qe(a,r,i,n,t[4],1272893353,11),n=Qe(n,a,r,i,t[7],4139469664,16),i=Qe(i,n,a,r,t[10],3200236656,23),r=Qe(r,i,n,a,t[13],681279174,4),a=Qe(a,r,i,n,t[0],3936430074,11),n=Qe(n,a,r,i,t[3],3572445317,16),i=Qe(i,n,a,r,t[6],76029189,23),r=Qe(r,i,n,a,t[9],3654602809,4),a=Qe(a,r,i,n,t[12],3873151461,11),n=Qe(n,a,r,i,t[15],530742520,16),i=Qe(i,n,a,r,t[2],3299628645,23),r=et(r,i,n,a,t[0],4096336452,6),a=et(a,r,i,n,t[7],1126891415,10),n=et(n,a,r,i,t[14],2878612391,15),i=et(i,n,a,r,t[5],4237533241,21),r=et(r,i,n,a,t[12],1700485571,6),a=et(a,r,i,n,t[3],2399980690,10),n=et(n,a,r,i,t[10],4293915773,15),i=et(i,n,a,r,t[1],2240044497,21),r=et(r,i,n,a,t[8],1873313359,6),a=et(a,r,i,n,t[15],4264355552,10),n=et(n,a,r,i,t[6],2734768916,15),i=et(i,n,a,r,t[13],1309151649,21),r=et(r,i,n,a,t[4],4149444226,6),a=et(a,r,i,n,t[11],3174756917,10),n=et(n,a,r,i,t[2],718787259,15),i=et(i,n,a,r,t[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+i|0,this._c=this._c+n|0,this._d=this._d+a|0};ca.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=_6.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t};function da(t,e){return t<<e|t>>>32-e}function Xe(t,e,r,i,n,a,s){return da(t+(e&r|~e&i)+n+a|0,s)+e|0}function Je(t,e,r,i,n,a,s){return da(t+(e&i|r&~i)+n+a|0,s)+e|0}function Qe(t,e,r,i,n,a,s){return da(t+(e^r^i)+n+a|0,s)+e|0}function et(t,e,r,i,n,a,s){return da(t+(r^(e|~i))+n+a|0,s)+e|0}Kd.exports=ca});var Ls=B((_B,Us)=>{b();typeof Object.create=="function"?Us.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Us.exports=function(e,r){if(r){e.super_=r;var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e}}});var $d=B((MB,Wd)=>{b();var M6={}.toString;Wd.exports=Array.isArray||function(t){return M6.call(t)=="[object Array]"}});var Vd=B((SB,Gd)=>{"use strict";b();var E6=Nr(),S6=Hr(),B6=S6("TypedArray.prototype.buffer",!0),A6=Qf();Gd.exports=B6||function(e){if(!A6(e))throw new E6("Not a Typed Array");return e.buffer}});var Cn=B((AB,Zd)=>{"use strict";b();var _t=xe().Buffer,R6=$d(),q6=Vd(),T6=ArrayBuffer.isView||function(e){try{return q6(e),!0}catch{return!1}},k6=typeof Uint8Array<"u",zd=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",I6=zd&&(_t.prototype instanceof Uint8Array||_t.TYPED_ARRAY_SUPPORT);Zd.exports=function(e,r){if(_t.isBuffer(e))return e.constructor&&!("isBuffer"in e)?_t.from(e):e;if(typeof e=="string")return _t.from(e,r);if(zd&&T6(e)){if(e.byteLength===0)return _t.alloc(0);if(I6){var i=_t.from(e.buffer,e.byteOffset,e.byteLength);if(i.byteLength===e.byteLength)return i}var n=e instanceof Uint8Array?e:new Uint8Array(e.buffer,e.byteOffset,e.byteLength),a=_t.from(n);if(a.length===e.byteLength)return a}if(k6&&e instanceof Uint8Array)return _t.from(e);var s=R6(e);if(s)for(var y=0;y<e.length;y+=1){var w=e[y];if(typeof w!="number"||w<0||w>255||~~w!==w)throw new RangeError("Array items must be numbers in the range 0-255.")}if(s||_t.isBuffer(e)&&e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e))return _t.from(e);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}});var Qd=B((qB,Jd)=>{"use strict";b();var O6=xe().Buffer,C6=Cn(),Xd=typeof Uint8Array<"u",D6=Xd&&typeof ArrayBuffer<"u",Yd=D6&&ArrayBuffer.isView;Jd.exports=function(t,e){if(typeof t=="string"||O6.isBuffer(t)||Xd&&t instanceof Uint8Array||Yd&&Yd(t))return C6(t,e);throw new TypeError('The "data" argument must be a string, a Buffer, a Uint8Array, or a DataView')}});var Dn=B((kB,Ns)=>{"use strict";b();typeof M.default>"u"||!M.default.version||M.default.version.indexOf("v0.")===0||M.default.version.indexOf("v1.")===0&&M.default.version.indexOf("v1.8.")!==0?Ns.exports={nextTick:P6}:Ns.exports=M.default;function P6(t,e,r,i){if(typeof t!="function")throw new TypeError('"callback" argument must be a function');var n=arguments.length,a,s;switch(n){case 0:case 1:return M.default.nextTick(t);case 2:return M.default.nextTick(function(){t.call(null,e)});case 3:return M.default.nextTick(function(){t.call(null,e,r)});case 4:return M.default.nextTick(function(){t.call(null,e,r,i)});default:for(a=new Array(n-1),s=0;s<a.length;)a[s++]=arguments[s];return M.default.nextTick(function(){t.apply(null,a)})}}});var tp=B((OB,ep)=>{b();var U6={}.toString;ep.exports=Array.isArray||function(t){return U6.call(t)=="[object Array]"}});var Fs=B((DB,rp)=>{b();rp.exports=bi().EventEmitter});var ya=B((js,np)=>{b();var va=rt(),Vt=va.Buffer;function ip(t,e){for(var r in t)e[r]=t[r]}Vt.from&&Vt.alloc&&Vt.allocUnsafe&&Vt.allocUnsafeSlow?np.exports=va:(ip(va,js),js.Buffer=Di);function Di(t,e,r){return Vt(t,e,r)}ip(Vt,Di);Di.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return Vt(t,e,r)};Di.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=Vt(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};Di.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Vt(t)};Di.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return va.SlowBuffer(t)}});var Pi=B(tt=>{b();function L6(t){return Array.isArray?Array.isArray(t):ga(t)==="[object Array]"}tt.isArray=L6;function N6(t){return typeof t=="boolean"}tt.isBoolean=N6;function F6(t){return t===null}tt.isNull=F6;function j6(t){return t==null}tt.isNullOrUndefined=j6;function H6(t){return typeof t=="number"}tt.isNumber=H6;function K6(t){return typeof t=="string"}tt.isString=K6;function W6(t){return typeof t=="symbol"}tt.isSymbol=W6;function $6(t){return t===void 0}tt.isUndefined=$6;function G6(t){return ga(t)==="[object RegExp]"}tt.isRegExp=G6;function V6(t){return typeof t=="object"&&t!==null}tt.isObject=V6;function z6(t){return ga(t)==="[object Date]"}tt.isDate=z6;function Z6(t){return ga(t)==="[object Error]"||t instanceof Error}tt.isError=Z6;function Y6(t){return typeof t=="function"}tt.isFunction=Y6;function X6(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t>"u"}tt.isPrimitive=X6;tt.isBuffer=rt().Buffer.isBuffer;function ga(t){return Object.prototype.toString.call(t)}});var ap=B((FB,Hs)=>{"use strict";b();function J6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var op=ya().Buffer,Pn=Bn();function Q6(t,e,r){t.copy(e,r)}Hs.exports=(function(){function t(){J6(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length},t.prototype.unshift=function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length},t.prototype.shift=function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(r){if(this.length===0)return"";for(var i=this.head,n=""+i.data;i=i.next;)n+=r+i.data;return n},t.prototype.concat=function(r){if(this.length===0)return op.alloc(0);for(var i=op.allocUnsafe(r>>>0),n=this.head,a=0;n;)Q6(n.data,i,a),a+=n.data.length,n=n.next;return i},t})();Pn&&Pn.inspect&&Pn.inspect.custom&&(Hs.exports.prototype[Pn.inspect.custom]=function(){var t=Pn.inspect({length:this.length});return this.constructor.name+" "+t})});var Ks=B((HB,fp)=>{"use strict";b();var ma=Dn();function ex(t,e){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,ma.nextTick(ba,this,t)):ma.nextTick(ba,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(a){!e&&a?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,ma.nextTick(ba,r,a)):ma.nextTick(ba,r,a):e&&e(a)}),this)}function tx(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function ba(t,e){t.emit("error",e)}fp.exports={destroy:ex,undestroy:tx}});var $s=B((WB,vp)=>{"use strict";b();var Yr=Dn();vp.exports=Ke;function up(t){var e=this;this.next=null,this.entry=null,this.finish=function(){bx(e,t)}}var rx=!M.default.browser&&["v0.10","v0.9."].indexOf(M.default.version.slice(0,5))>-1?setImmediate:Yr.nextTick,Ui;Ke.WritableState=Ln;var hp=Object.create(Pi());hp.inherits=De();var ix={deprecate:cs()},lp=Fs(),_a=ya().Buffer,nx=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function ox(t){return _a.from(t)}function ax(t){return _a.isBuffer(t)||t instanceof nx}var cp=Ks();hp.inherits(Ke,lp);function fx(){}function Ln(t,e){Ui=Ui||Xr(),t=t||{};var r=e instanceof Ui;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,n=t.writableHighWaterMark,a=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=a,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=t.decodeStrings===!1;this.decodeStrings=!s,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(y){px(e,y)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new up(this)}Ln.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(Ln.prototype,"buffer",{get:ix.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var wa;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(wa=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ke,Symbol.hasInstance,{value:function(t){return wa.call(this,t)?!0:this!==Ke?!1:t&&t._writableState instanceof Ln}})):wa=function(t){return t instanceof this};function Ke(t){if(Ui=Ui||Xr(),!wa.call(Ke,this)&&!(this instanceof Ui))return new Ke(t);this._writableState=new Ln(t,this),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),lp.call(this)}Ke.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function sx(t,e){var r=new Error("write after end");t.emit("error",r),Yr.nextTick(e,r)}function ux(t,e,r,i){var n=!0,a=!1;return r===null?a=new TypeError("May not write null values to stream"):typeof r!="string"&&r!==void 0&&!e.objectMode&&(a=new TypeError("Invalid non-string/buffer chunk")),a&&(t.emit("error",a),Yr.nextTick(i,a),n=!1),n}Ke.prototype.write=function(t,e,r){var i=this._writableState,n=!1,a=!i.objectMode&&ax(t);return a&&!_a.isBuffer(t)&&(t=ox(t)),typeof e=="function"&&(r=e,e=null),a?e="buffer":e||(e=i.defaultEncoding),typeof r!="function"&&(r=fx),i.ended?sx(this,r):(a||ux(this,i,t,r))&&(i.pendingcb++,n=lx(this,i,a,t,e,r)),n};Ke.prototype.cork=function(){var t=this._writableState;t.corked++};Ke.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&dp(this,t))};Ke.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this};function hx(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=_a.from(e,r)),e}Object.defineProperty(Ke.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function lx(t,e,r,i,n,a){if(!r){var s=hx(e,i,n);i!==s&&(r=!0,n="buffer",i=s)}var y=e.objectMode?1:i.length;e.length+=y;var w=e.length<e.highWaterMark;if(w||(e.needDrain=!0),e.writing||e.corked){var S=e.lastBufferedRequest;e.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:a,next:null},S?S.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else Ws(t,e,!1,y,i,n,a);return w}function Ws(t,e,r,i,n,a,s){e.writelen=i,e.writecb=s,e.writing=!0,e.sync=!0,r?t._writev(n,e.onwrite):t._write(n,a,e.onwrite),e.sync=!1}function cx(t,e,r,i,n){--e.pendingcb,r?(Yr.nextTick(n,i),Yr.nextTick(Un,t,e),t._writableState.errorEmitted=!0,t.emit("error",i)):(n(i),t._writableState.errorEmitted=!0,t.emit("error",i),Un(t,e))}function dx(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function px(t,e){var r=t._writableState,i=r.sync,n=r.writecb;if(dx(r),e)cx(t,r,i,e,n);else{var a=pp(r);!a&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&dp(t,r),i?rx(sp,t,r,a,n):sp(t,r,a,n)}}function sp(t,e,r,i){r||vx(t,e),e.pendingcb--,i(),Un(t,e)}function vx(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function dp(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var i=e.bufferedRequestCount,n=new Array(i),a=e.corkedRequestsFree;a.entry=r;for(var s=0,y=!0;r;)n[s]=r,r.isBuf||(y=!1),r=r.next,s+=1;n.allBuffers=y,Ws(t,e,!0,e.length,n,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new up(e),e.bufferedRequestCount=0}else{for(;r;){var w=r.chunk,S=r.encoding,A=r.callback,q=e.objectMode?1:w.length;if(Ws(t,e,!1,q,w,S,A),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}Ke.prototype._write=function(t,e,r){r(new Error("_write() is not implemented"))};Ke.prototype._writev=null;Ke.prototype.end=function(t,e,r){var i=this._writableState;typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),t!=null&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||mx(this,i,r)};function pp(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function yx(t,e){t._final(function(r){e.pendingcb--,r&&t.emit("error",r),e.prefinished=!0,t.emit("prefinish"),Un(t,e)})}function gx(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"?(e.pendingcb++,e.finalCalled=!0,Yr.nextTick(yx,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function Un(t,e){var r=pp(e);return r&&(gx(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"))),r}function mx(t,e,r){e.ending=!0,Un(t,e),r&&(e.finished?Yr.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function bx(t,e,r){var i=t.entry;for(t.entry=null;i;){var n=i.callback;e.pendingcb--,n(r),i=i.next}e.corkedRequestsFree.next=t}Object.defineProperty(Ke.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}});Ke.prototype.destroy=cp.destroy;Ke.prototype._undestroy=cp.undestroy;Ke.prototype._destroy=function(t,e){this.end(),e(t)}});var Xr=B((GB,bp)=>{"use strict";b();var yp=Dn(),wx=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};bp.exports=zt;var gp=Object.create(Pi());gp.inherits=De();var mp=zs(),Vs=$s();gp.inherits(zt,mp);for(Gs=wx(Vs.prototype),xa=0;xa<Gs.length;xa++)Ma=Gs[xa],zt.prototype[Ma]||(zt.prototype[Ma]=Vs.prototype[Ma]);var Gs,Ma,xa;function zt(t){if(!(this instanceof zt))return new zt(t);mp.call(this,t),Vs.call(this,t),t&&t.readable===!1&&(this.readable=!1),t&&t.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,t&&t.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",_x)}Object.defineProperty(zt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function _x(){this.allowHalfOpen||this._writableState.ended||yp.nextTick(xx,this)}function xx(t){t.end()}Object.defineProperty(zt.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(t){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=t,this._writableState.destroyed=t)}});zt.prototype._destroy=function(t,e){this.push(null),this.end(),yp.nextTick(e,t)}});var zs=B((ZB,kp)=>{"use strict";b();var Ni=Dn();kp.exports=Pe;var Mx=tp(),Nn;Pe.ReadableState=Bp;var zB=bi().EventEmitter,Mp=function(t,e){return t.listeners(e).length},Qs=Fs(),Fn=ya().Buffer,Ex=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Sx(t){return Fn.from(t)}function Bx(t){return Fn.isBuffer(t)||t instanceof Ex}var Ep=Object.create(Pi());Ep.inherits=De();var Zs=Bn(),ke=void 0;Zs&&Zs.debuglog?ke=Zs.debuglog("stream"):ke=function(){};var Ax=ap(),Sp=Ks(),Li;Ep.inherits(Pe,Qs);var Ys=["error","close","destroy","pause","resume"];function Rx(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):Mx(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function Bp(t,e){Nn=Nn||Xr(),t=t||{};var r=e instanceof Nn;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,n=t.readableHighWaterMark,a=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new Ax,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.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(Li||(Li=Ii().StringDecoder),this.decoder=new Li(t.encoding),this.encoding=t.encoding)}function Pe(t){if(Nn=Nn||Xr(),!(this instanceof Pe))return new Pe(t);this._readableState=new Bp(t,this),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),Qs.call(this)}Object.defineProperty(Pe.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});Pe.prototype.destroy=Sp.destroy;Pe.prototype._undestroy=Sp.undestroy;Pe.prototype._destroy=function(t,e){this.push(null),e(t)};Pe.prototype.push=function(t,e){var r=this._readableState,i;return r.objectMode?i=!0:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=Fn.from(t,e),e=""),i=!0),Ap(this,t,e,!1,i)};Pe.prototype.unshift=function(t){return Ap(this,t,null,!0,!1)};function Ap(t,e,r,i,n){var a=t._readableState;if(e===null)a.reading=!1,Ix(t,a);else{var s;n||(s=qx(a,e)),s?t.emit("error",s):a.objectMode||e&&e.length>0?(typeof e!="string"&&!a.objectMode&&Object.getPrototypeOf(e)!==Fn.prototype&&(e=Sx(e)),i?a.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):Xs(t,a,e,!0):a.ended?t.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(e=a.decoder.write(e),a.objectMode||e.length!==0?Xs(t,a,e,!1):Rp(t,a)):Xs(t,a,e,!1))):i||(a.reading=!1)}return Tx(a)}function Xs(t,e,r,i){e.flowing&&e.length===0&&!e.sync?(t.emit("data",r),t.read(0)):(e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&Ea(t)),Rp(t,e)}function qx(t,e){var r;return!Bx(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}function Tx(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||t.length===0)}Pe.prototype.isPaused=function(){return this._readableState.flowing===!1};Pe.prototype.setEncoding=function(t){return Li||(Li=Ii().StringDecoder),this._readableState.decoder=new Li(t),this._readableState.encoding=t,this};var wp=8388608;function kx(t){return t>=wp?t=wp:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function _p(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=kx(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}Pe.prototype.read=function(t){ke("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return ke("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Js(this):Ea(this),null;if(t=_p(t,e),t===0&&e.ended)return e.length===0&&Js(this),null;var i=e.needReadable;ke("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,ke("length less than watermark",i)),e.ended||e.reading?(i=!1,ke("reading or ended",i)):i&&(ke("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=_p(r,e)));var n;return t>0?n=qp(t,e):n=null,n===null?(e.needReadable=!0,t=0):e.length-=t,e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&Js(this)),n!==null&&this.emit("data",n),n};function Ix(t,e){if(!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,Ea(t)}}function Ea(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(ke("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?Ni.nextTick(xp,t):xp(t))}function xp(t){ke("emit readable"),t.emit("readable"),eu(t)}function Rp(t,e){e.readingMore||(e.readingMore=!0,Ni.nextTick(Ox,t,e))}function Ox(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(ke("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}Pe.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))};Pe.prototype.pipe=function(t,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t);break}i.pipesCount+=1,ke("pipe count=%d opts=%j",i.pipesCount,e);var n=(!e||e.end!==!1)&&t!==M.default.stdout&&t!==M.default.stderr,a=n?y:qe;i.endEmitted?Ni.nextTick(a):r.once("end",a),t.on("unpipe",s);function s(j,Ee){ke("onunpipe"),j===r&&Ee&&Ee.hasUnpiped===!1&&(Ee.hasUnpiped=!0,A())}function y(){ke("onend"),t.end()}var w=Cx(r);t.on("drain",w);var S=!1;function A(){ke("cleanup"),t.removeListener("close",P),t.removeListener("finish",K),t.removeListener("drain",w),t.removeListener("error",C),t.removeListener("unpipe",s),r.removeListener("end",y),r.removeListener("end",qe),r.removeListener("data",k),S=!0,i.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&w()}var q=!1;r.on("data",k);function k(j){ke("ondata"),q=!1;var Ee=t.write(j);Ee===!1&&!q&&((i.pipesCount===1&&i.pipes===t||i.pipesCount>1&&Tp(i.pipes,t)!==-1)&&!S&&(ke("false write response, pause",i.awaitDrain),i.awaitDrain++,q=!0),r.pause())}function C(j){ke("onerror",j),qe(),t.removeListener("error",C),Mp(t,"error")===0&&t.emit("error",j)}Rx(t,"error",C);function P(){t.removeListener("finish",K),qe()}t.once("close",P);function K(){ke("onfinish"),t.removeListener("close",P),qe()}t.once("finish",K);function qe(){ke("unpipe"),r.unpipe(t)}return t.emit("pipe",r),i.flowing||(ke("pipe resume"),r.resume()),t};function Cx(t){return function(){var e=t._readableState;ke("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,e.awaitDrain===0&&Mp(t,"data")&&(e.flowing=!0,eu(t))}}Pe.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r),this);if(!t){var i=e.pipes,n=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var a=0;a<n;a++)i[a].emit("unpipe",this,{hasUnpiped:!1});return this}var s=Tp(e.pipes,t);return s===-1?this:(e.pipes.splice(s,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};Pe.prototype.on=function(t,e){var r=Qs.prototype.on.call(this,t,e);if(t==="data")this._readableState.flowing!==!1&&this.resume();else if(t==="readable"){var i=this._readableState;!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&Ea(this):Ni.nextTick(Dx,this))}return r};Pe.prototype.addListener=Pe.prototype.on;function Dx(t){ke("readable nexttick read 0"),t.read(0)}Pe.prototype.resume=function(){var t=this._readableState;return t.flowing||(ke("resume"),t.flowing=!0,Px(this,t)),this};function Px(t,e){e.resumeScheduled||(e.resumeScheduled=!0,Ni.nextTick(Ux,t,e))}function Ux(t,e){e.reading||(ke("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),eu(t),e.flowing&&!e.reading&&t.read(0)}Pe.prototype.pause=function(){return ke("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ke("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function eu(t){var e=t._readableState;for(ke("flow",e.flowing);e.flowing&&t.read()!==null;);}Pe.prototype.wrap=function(t){var e=this,r=this._readableState,i=!1;t.on("end",function(){if(ke("wrapped end"),r.decoder&&!r.ended){var s=r.decoder.end();s&&s.length&&e.push(s)}e.push(null)}),t.on("data",function(s){if(ke("wrapped data"),r.decoder&&(s=r.decoder.write(s)),!(r.objectMode&&s==null)&&!(!r.objectMode&&(!s||!s.length))){var y=e.push(s);y||(i=!0,t.pause())}});for(var n in t)this[n]===void 0&&typeof t[n]=="function"&&(this[n]=(function(s){return function(){return t[s].apply(t,arguments)}})(n));for(var a=0;a<Ys.length;a++)t.on(Ys[a],this.emit.bind(this,Ys[a]));return this._read=function(s){ke("wrapped _read",s),i&&(i=!1,t.resume())},this};Object.defineProperty(Pe.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Pe._fromList=qp;function qp(t,e){if(e.length===0)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.head.data:r=e.buffer.concat(e.length),e.buffer.clear()):r=Lx(t,e.buffer,e.decoder),r}function Lx(t,e,r){var i;return t<e.head.data.length?(i=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):t===e.head.data.length?i=e.shift():i=r?Nx(t,e):Fx(t,e),i}function Nx(t,e){var r=e.head,i=1,n=r.data;for(t-=n.length;r=r.next;){var a=r.data,s=t>a.length?a.length:t;if(s===a.length?n+=a:n+=a.slice(0,t),t-=s,t===0){s===a.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=a.slice(s));break}++i}return e.length-=i,n}function Fx(t,e){var r=Fn.allocUnsafe(t),i=e.head,n=1;for(i.data.copy(r),t-=i.data.length;i=i.next;){var a=i.data,s=t>a.length?a.length:t;if(a.copy(r,r.length-t,0,s),t-=s,t===0){s===a.length?(++n,i.next?e.head=i.next:e.head=e.tail=null):(e.head=i,i.data=a.slice(s));break}++n}return e.length-=n,r}function Js(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,Ni.nextTick(jx,e,t))}function jx(t,e){!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function Tp(t,e){for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r;return-1}});var tu=B((XB,Cp)=>{"use strict";b();Cp.exports=Zt;var Sa=Xr(),Op=Object.create(Pi());Op.inherits=De();Op.inherits(Zt,Sa);function Hx(t,e){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(!i)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,e!=null&&this.push(e),i(t);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function Zt(t){if(!(this instanceof Zt))return new Zt(t);Sa.call(this,t),this._transformState={afterTransform:Hx.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",Kx)}function Kx(){var t=this;typeof this._flush=="function"?this._flush(function(e,r){Ip(t,e,r)}):Ip(this,null,null)}Zt.prototype.push=function(t,e){return this._transformState.needTransform=!1,Sa.prototype.push.call(this,t,e)};Zt.prototype._transform=function(t,e,r){throw new Error("_transform() is not implemented")};Zt.prototype._write=function(t,e,r){var i=this._transformState;if(i.writecb=r,i.writechunk=t,i.writeencoding=e,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}};Zt.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};Zt.prototype._destroy=function(t,e){var r=this;Sa.prototype._destroy.call(this,t,function(i){e(i),r.emit("close")})};function Ip(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}});var Lp=B((QB,Up)=>{"use strict";b();Up.exports=jn;var Dp=tu(),Pp=Object.create(Pi());Pp.inherits=De();Pp.inherits(jn,Dp);function jn(t){if(!(this instanceof jn))return new jn(t);Dp.call(this,t)}jn.prototype._transform=function(t,e,r){r(null,t)}});var Fp=B((Lt,Np)=>{b();Lt=Np.exports=zs();Lt.Stream=Lt;Lt.Readable=Lt;Lt.Writable=$s();Lt.Duplex=Xr();Lt.Transform=tu();Lt.PassThrough=Lp()});var Kp=B((rA,Hp)=>{"use strict";b();var Wx=xe().Buffer,$x=Qd(),jp=Fp().Transform,Gx=Ls();function cr(t){jp.call(this),this._block=Wx.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}Gx(cr,jp);cr.prototype._transform=function(t,e,r){var i=null;try{this.update(t,e)}catch(n){i=n}r(i)};cr.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(r){e=r}t(e)};cr.prototype.update=function(t,e){if(this._finalized)throw new Error("Digest already called");for(var r=$x(t,e),i=this._block,n=0;this._blockOffset+r.length-n>=this._blockSize;){for(var a=this._blockOffset;a<this._blockSize;)i[a]=r[n],a+=1,n+=1;this._update(),this._blockOffset=0}for(;n<r.length;)i[this._blockOffset]=r[n],this._blockOffset+=1,n+=1;for(var s=0,y=r.length*8;y>0;++s)this._length[s]+=y,y=this._length[s]/4294967296|0,y>0&&(this._length[s]-=4294967296*y);return this};cr.prototype._update=function(){throw new Error("_update is not implemented")};cr.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();t!==void 0&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return e};cr.prototype._digest=function(){throw new Error("_digest is not implemented")};Hp.exports=cr});var Aa=B((nA,Yp)=>{"use strict";b();var ru=rt().Buffer,Vx=Ls(),Zp=Kp(),zx=new Array(16),Hn=[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],Kn=[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],Wn=[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],$n=[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],Gn=[0,1518500249,1859775393,2400959708,2840853838],Vn=[1352829926,1548603684,1836072691,2053994217,0];function Jr(t,e){return t<<e|t>>>32-e}function Wp(t,e,r,i,n,a,s,y){return Jr(t+(e^r^i)+a+s|0,y)+n|0}function $p(t,e,r,i,n,a,s,y){return Jr(t+(e&r|~e&i)+a+s|0,y)+n|0}function Gp(t,e,r,i,n,a,s,y){return Jr(t+((e|~r)^i)+a+s|0,y)+n|0}function Vp(t,e,r,i,n,a,s,y){return Jr(t+(e&i|r&~i)+a+s|0,y)+n|0}function zp(t,e,r,i,n,a,s,y){return Jr(t+(e^(r|~i))+a+s|0,y)+n|0}function Ba(){Zp.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}Vx(Ba,Zp);Ba.prototype._update=function(){for(var t=zx,e=0;e<16;++e)t[e]=this._block.readInt32LE(e*4);for(var r=this._a|0,i=this._b|0,n=this._c|0,a=this._d|0,s=this._e|0,y=this._a|0,w=this._b|0,S=this._c|0,A=this._d|0,q=this._e|0,k=0;k<80;k+=1){var C,P;k<16?(C=Wp(r,i,n,a,s,t[Hn[k]],Gn[0],Wn[k]),P=zp(y,w,S,A,q,t[Kn[k]],Vn[0],$n[k])):k<32?(C=$p(r,i,n,a,s,t[Hn[k]],Gn[1],Wn[k]),P=Vp(y,w,S,A,q,t[Kn[k]],Vn[1],$n[k])):k<48?(C=Gp(r,i,n,a,s,t[Hn[k]],Gn[2],Wn[k]),P=Gp(y,w,S,A,q,t[Kn[k]],Vn[2],$n[k])):k<64?(C=Vp(r,i,n,a,s,t[Hn[k]],Gn[3],Wn[k]),P=$p(y,w,S,A,q,t[Kn[k]],Vn[3],$n[k])):(C=zp(r,i,n,a,s,t[Hn[k]],Gn[4],Wn[k]),P=Wp(y,w,S,A,q,t[Kn[k]],Vn[4],$n[k])),r=s,s=a,a=Jr(n,10),n=i,i=C,y=q,q=A,A=Jr(S,10),S=w,w=P}var K=this._b+n+A|0;this._b=this._c+a+q|0,this._c=this._d+s+y|0,this._d=this._e+r+w|0,this._e=this._a+i+S|0,this._a=K};Ba.prototype._digest=function(){this._block[this._blockOffset]=128,this._blockOffset+=1,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=ru.alloc?ru.alloc(20):new ru(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t};Yp.exports=Ba});var Qr=B((aA,iu)=>{b();typeof Object.create=="function"?iu.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:iu.exports=function(e,r){if(r){e.super_=r;var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e}}});var ei=B((sA,Xp)=>{"use strict";b();var Zx=xe().Buffer,Yx=Cn();function Ra(t,e){this._block=Zx.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}Ra.prototype.update=function(t,e){t=Yx(t,e||"utf8");for(var r=this._block,i=this._blockSize,n=t.length,a=this._len,s=0;s<n;){for(var y=a%i,w=Math.min(n-s,i-y),S=0;S<w;S++)r[y+S]=t[s+S];a+=w,s+=w,a%i===0&&this._update(r)}return this._len+=n,this};Ra.prototype.digest=function(t){var e=this._len%this._blockSize;this._block[e]=128,this._block.fill(0,e+1),e>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=this._len*8;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var i=(r&4294967295)>>>0,n=(r-i)/4294967296;this._block.writeUInt32BE(n,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)}this._update(this._block);var a=this._hash();return t?a.toString(t):a};Ra.prototype._update=function(){throw new Error("_update must be implemented by subclass")};Xp.exports=Ra});var ev=B((hA,Qp)=>{"use strict";b();var Xx=Qr(),Jp=ei(),Jx=xe().Buffer,Qx=[1518500249,1859775393,-1894007588,-899497514],e3=new Array(80);function zn(){this.init(),this._w=e3,Jp.call(this,64,56)}Xx(zn,Jp);zn.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function t3(t){return t<<5|t>>>27}function r3(t){return t<<30|t>>>2}function i3(t,e,r,i){return t===0?e&r|~e&i:t===2?e&r|e&i|r&i:e^r^i}zn.prototype._update=function(t){for(var e=this._w,r=this._a|0,i=this._b|0,n=this._c|0,a=this._d|0,s=this._e|0,y=0;y<16;++y)e[y]=t.readInt32BE(y*4);for(;y<80;++y)e[y]=e[y-3]^e[y-8]^e[y-14]^e[y-16];for(var w=0;w<80;++w){var S=~~(w/20),A=t3(r)+i3(S,i,n,a)+s+e[w]+Qx[S]|0;s=a,a=n,n=r3(i),i=r,r=A}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0};zn.prototype._hash=function(){var t=Jx.allocUnsafe(20);return t.writeInt32BE(this._a|0,0),t.writeInt32BE(this._b|0,4),t.writeInt32BE(this._c|0,8),t.writeInt32BE(this._d|0,12),t.writeInt32BE(this._e|0,16),t};Qp.exports=zn});var iv=B((cA,rv)=>{"use strict";b();var n3=Qr(),tv=ei(),o3=xe().Buffer,a3=[1518500249,1859775393,-1894007588,-899497514],f3=new Array(80);function Zn(){this.init(),this._w=f3,tv.call(this,64,56)}n3(Zn,tv);Zn.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function s3(t){return t<<1|t>>>31}function u3(t){return t<<5|t>>>27}function h3(t){return t<<30|t>>>2}function l3(t,e,r,i){return t===0?e&r|~e&i:t===2?e&r|e&i|r&i:e^r^i}Zn.prototype._update=function(t){for(var e=this._w,r=this._a|0,i=this._b|0,n=this._c|0,a=this._d|0,s=this._e|0,y=0;y<16;++y)e[y]=t.readInt32BE(y*4);for(;y<80;++y)e[y]=s3(e[y-3]^e[y-8]^e[y-14]^e[y-16]);for(var w=0;w<80;++w){var S=~~(w/20),A=u3(r)+l3(S,i,n,a)+s+e[w]+a3[S]|0;s=a,a=n,n=h3(i),i=r,r=A}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0};Zn.prototype._hash=function(){var t=o3.allocUnsafe(20);return t.writeInt32BE(this._a|0,0),t.writeInt32BE(this._b|0,4),t.writeInt32BE(this._c|0,8),t.writeInt32BE(this._d|0,12),t.writeInt32BE(this._e|0,16),t};rv.exports=Zn});var nu=B((pA,ov)=>{"use strict";b();var c3=Qr(),nv=ei(),d3=xe().Buffer,p3=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],v3=new Array(64);function Yn(){this.init(),this._w=v3,nv.call(this,64,56)}c3(Yn,nv);Yn.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function y3(t,e,r){return r^t&(e^r)}function g3(t,e,r){return t&e|r&(t|e)}function m3(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function b3(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function w3(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}function _3(t){return(t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10}Yn.prototype._update=function(t){for(var e=this._w,r=this._a|0,i=this._b|0,n=this._c|0,a=this._d|0,s=this._e|0,y=this._f|0,w=this._g|0,S=this._h|0,A=0;A<16;++A)e[A]=t.readInt32BE(A*4);for(;A<64;++A)e[A]=_3(e[A-2])+e[A-7]+w3(e[A-15])+e[A-16]|0;for(var q=0;q<64;++q){var k=S+b3(s)+y3(s,y,w)+p3[q]+e[q]|0,C=m3(r)+g3(r,i,n)|0;S=w,w=y,y=s,s=a+k|0,a=n,n=i,i=r,r=k+C|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0,this._f=y+this._f|0,this._g=w+this._g|0,this._h=S+this._h|0};Yn.prototype._hash=function(){var t=d3.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t};ov.exports=Yn});var fv=B((yA,av)=>{"use strict";b();var x3=Qr(),M3=nu(),E3=ei(),S3=xe().Buffer,B3=new Array(64);function qa(){this.init(),this._w=B3,E3.call(this,64,56)}x3(qa,M3);qa.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this};qa.prototype._hash=function(){var t=S3.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t};av.exports=qa});var ou=B((mA,pv)=>{"use strict";b();var A3=Qr(),dv=ei(),R3=xe().Buffer,sv=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],q3=new Array(160);function Xn(){this.init(),this._w=q3,dv.call(this,128,112)}A3(Xn,dv);Xn.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function uv(t,e,r){return r^t&(e^r)}function hv(t,e,r){return t&e|r&(t|e)}function lv(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function cv(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function T3(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function k3(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function I3(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function O3(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function Ze(t,e){return t>>>0<e>>>0?1:0}Xn.prototype._update=function(t){for(var e=this._w,r=this._ah|0,i=this._bh|0,n=this._ch|0,a=this._dh|0,s=this._eh|0,y=this._fh|0,w=this._gh|0,S=this._hh|0,A=this._al|0,q=this._bl|0,k=this._cl|0,C=this._dl|0,P=this._el|0,K=this._fl|0,qe=this._gl|0,j=this._hl|0,Ee=0;Ee<32;Ee+=2)e[Ee]=t.readInt32BE(Ee*4),e[Ee+1]=t.readInt32BE(Ee*4+4);for(;Ee<160;Ee+=2){var Fe=e[Ee-30],je=e[Ee-30+1],nr=T3(Fe,je),Ge=k3(je,Fe);Fe=e[Ee-4],je=e[Ee-4+1];var Tt=I3(Fe,je),Ce=O3(je,Fe),st=e[Ee-14],E=e[Ee-14+1],h=e[Ee-32],g=e[Ee-32+1],c=Ge+E|0,o=nr+st+Ze(c,Ge)|0;c=c+Ce|0,o=o+Tt+Ze(c,Ce)|0,c=c+g|0,o=o+h+Ze(c,g)|0,e[Ee]=o,e[Ee+1]=c}for(var u=0;u<160;u+=2){o=e[u],c=e[u+1];var d=hv(r,i,n),v=hv(A,q,k),p=lv(r,A),f=lv(A,r),m=cv(s,P),_=cv(P,s),l=sv[u],x=sv[u+1],I=uv(s,y,w),D=uv(P,K,qe),O=j+_|0,L=S+m+Ze(O,j)|0;O=O+D|0,L=L+I+Ze(O,D)|0,O=O+x|0,L=L+l+Ze(O,x)|0,O=O+c|0,L=L+o+Ze(O,c)|0;var U=f+v|0,N=p+d+Ze(U,f)|0;S=w,j=qe,w=y,qe=K,y=s,K=P,P=C+O|0,s=a+L+Ze(P,C)|0,a=n,C=k,n=i,k=q,i=r,q=A,A=O+U|0,r=L+N+Ze(A,O)|0}this._al=this._al+A|0,this._bl=this._bl+q|0,this._cl=this._cl+k|0,this._dl=this._dl+C|0,this._el=this._el+P|0,this._fl=this._fl+K|0,this._gl=this._gl+qe|0,this._hl=this._hl+j|0,this._ah=this._ah+r+Ze(this._al,A)|0,this._bh=this._bh+i+Ze(this._bl,q)|0,this._ch=this._ch+n+Ze(this._cl,k)|0,this._dh=this._dh+a+Ze(this._dl,C)|0,this._eh=this._eh+s+Ze(this._el,P)|0,this._fh=this._fh+y+Ze(this._fl,K)|0,this._gh=this._gh+w+Ze(this._gl,qe)|0,this._hh=this._hh+S+Ze(this._hl,j)|0};Xn.prototype._hash=function(){var t=R3.allocUnsafe(64);function e(r,i,n){t.writeInt32BE(r,n),t.writeInt32BE(i,n+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t};pv.exports=Xn});var yv=B((wA,vv)=>{"use strict";b();var C3=Qr(),D3=ou(),P3=ei(),U3=xe().Buffer,L3=new Array(160);function Ta(){this.init(),this._w=L3,P3.call(this,128,112)}C3(Ta,D3);Ta.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this};Ta.prototype._hash=function(){var t=U3.allocUnsafe(48);function e(r,i,n){t.writeInt32BE(r,n),t.writeInt32BE(i,n+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t};vv.exports=Ta});var ka=B((xA,Yt)=>{"use strict";b();Yt.exports=function(e){var r=e.toLowerCase(),i=Yt.exports[r];if(!i)throw new Error(r+" is not supported (we accept pull requests)");return new i};Yt.exports.sha=ev();Yt.exports.sha1=iv();Yt.exports.sha224=fv();Yt.exports.sha256=nu();Yt.exports.sha384=yv();Yt.exports.sha512=ou()});var gv=B((EA,au)=>{b();typeof Object.create=="function"?au.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:au.exports=function(e,r){if(r){e.super_=r;var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e}}});var Xt=B((BA,bv)=>{"use strict";b();var N3=xe().Buffer,mv=Ds().Transform,F3=Ii().StringDecoder,j3=gv(),H3=Cn();function xt(t){mv.call(this),this.hashMode=typeof t=="string",this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}j3(xt,mv);xt.prototype.update=function(t,e,r){var i=H3(t,e),n=this._update(i);return this.hashMode?this:(r&&(n=this._toString(n,r)),n)};xt.prototype.setAutoPadding=function(){};xt.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")};xt.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")};xt.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")};xt.prototype._transform=function(t,e,r){var i;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(n){i=n}finally{r(i)}};xt.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(r){e=r}t(e)};xt.prototype._finalOrDigest=function(t){var e=this.__final()||N3.alloc(0);return t&&(e=this._toString(e,t,!0)),e};xt.prototype._toString=function(t,e,r){if(this._decoder||(this._decoder=new F3(e),this._encoding=e),this._encoding!==e)throw new Error("can\u2019t switch encodings");var i=this._decoder.write(t);return r&&(i+=this._decoder.end()),i};bv.exports=xt});var Jn=B((RA,_v)=>{"use strict";b();var K3=De(),W3=pa(),$3=Aa(),G3=ka(),wv=Xt();function Ia(t){wv.call(this,"digest"),this._hash=t}K3(Ia,wv);Ia.prototype._update=function(t){this._hash.update(t)};Ia.prototype._final=function(){return this._hash.digest()};_v.exports=function(e){return e=e.toLowerCase(),e==="md5"?new W3:e==="rmd160"||e==="ripemd160"?new $3:new Ia(G3(e))}});var Ev=B((TA,Mv)=>{"use strict";b();var V3=De(),ti=xe().Buffer,xv=Xt(),z3=ti.alloc(128),Fi=64;function Oa(t,e){xv.call(this,"digest"),typeof e=="string"&&(e=ti.from(e)),this._alg=t,this._key=e,e.length>Fi?e=t(e):e.length<Fi&&(e=ti.concat([e,z3],Fi));for(var r=this._ipad=ti.allocUnsafe(Fi),i=this._opad=ti.allocUnsafe(Fi),n=0;n<Fi;n++)r[n]=e[n]^54,i[n]=e[n]^92;this._hash=[r]}V3(Oa,xv);Oa.prototype._update=function(t){this._hash.push(t)};Oa.prototype._final=function(){var t=this._alg(ti.concat(this._hash));return this._alg(ti.concat([this._opad,t]))};Mv.exports=Oa});var fu=B((IA,Sv)=>{b();var Z3=pa();Sv.exports=function(t){return new Z3().update(t).digest()}});var Rv=B((CA,Av)=>{"use strict";b();var Y3=De(),X3=Ev(),Bv=Xt(),Qn=xe().Buffer,J3=fu(),su=Aa(),uu=ka(),Q3=Qn.alloc(128);function eo(t,e){Bv.call(this,"digest"),typeof e=="string"&&(e=Qn.from(e));var r=t==="sha512"||t==="sha384"?128:64;if(this._alg=t,this._key=e,e.length>r){var i=t==="rmd160"?new su:uu(t);e=i.update(e).digest()}else e.length<r&&(e=Qn.concat([e,Q3],r));for(var n=this._ipad=Qn.allocUnsafe(r),a=this._opad=Qn.allocUnsafe(r),s=0;s<r;s++)n[s]=e[s]^54,a[s]=e[s]^92;this._hash=t==="rmd160"?new su:uu(t),this._hash.update(n)}Y3(eo,Bv);eo.prototype._update=function(t){this._hash.update(t)};eo.prototype._final=function(){var t=this._hash.digest(),e=this._alg==="rmd160"?new su:uu(this._alg);return e.update(this._opad).update(t).digest()};Av.exports=function(e,r){return e=e.toLowerCase(),e==="rmd160"||e==="ripemd160"?new eo("rmd160",r):e==="md5"?new X3(J3,r):new eo(e,r)}});var Ca=B((PA,qv)=>{"use strict";b();qv.exports={}});var hu=B((LA,Tv)=>{"use strict";b();var e8=isFinite,t8=Math.pow(2,30)-1;Tv.exports=function(t,e){if(typeof t!="number")throw new TypeError("Iterations not a number");if(t<0||!e8(t))throw new TypeError("Bad iterations");if(typeof e!="number")throw new TypeError("Key length not a number");if(e<0||e>t8||e!==e)throw new TypeError("Bad key length")}});var lu=B((FA,Iv)=>{"use strict";b();var Da;globalThis.process&&globalThis.process.browser?Da="utf-8":globalThis.process&&globalThis.process.version?(kv=parseInt(M.default.version.split(".")[0].slice(1),10),Da=kv>=6?"utf-8":"binary"):Da="utf-8";var kv;Iv.exports=Da});var cu=B((HA,Dv)=>{"use strict";b();var r8=xe().Buffer,i8=Cn(),Cv=typeof Uint8Array<"u",n8=Cv&&typeof ArrayBuffer<"u",Ov=n8&&ArrayBuffer.isView;Dv.exports=function(t,e,r){if(typeof t=="string"||r8.isBuffer(t)||Cv&&t instanceof Uint8Array||Ov&&Ov(t))return i8(t,e);throw new TypeError(r+" must be a string, a Buffer, a Uint8Array, or a DataView")}});var du=B((WA,Nv)=>{"use strict";b();var o8=fu(),a8=Aa(),f8=ka(),ri=xe().Buffer,s8=hu(),Pv=lu(),Uv=cu(),u8=ri.alloc(128),Pa={__proto__:null,md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,"sha512-256":32,ripemd160:20,rmd160:20},h8={__proto__:null,"sha-1":"sha1","sha-224":"sha224","sha-256":"sha256","sha-384":"sha384","sha-512":"sha512","ripemd-160":"ripemd160"};function l8(t){return new a8().update(t).digest()}function c8(t){function e(r){return f8(t).update(r).digest()}return t==="rmd160"||t==="ripemd160"?l8:t==="md5"?o8:e}function Lv(t,e,r){var i=c8(t),n=t==="sha512"||t==="sha384"?128:64;e.length>n?e=i(e):e.length<n&&(e=ri.concat([e,u8],n));for(var a=ri.allocUnsafe(n+Pa[t]),s=ri.allocUnsafe(n+Pa[t]),y=0;y<n;y++)a[y]=e[y]^54,s[y]=e[y]^92;var w=ri.allocUnsafe(n+r+4);a.copy(w,0,0,n),this.ipad1=w,this.ipad2=a,this.opad=s,this.alg=t,this.blocksize=n,this.hash=i,this.size=Pa[t]}Lv.prototype.run=function(t,e){t.copy(e,this.blocksize);var r=this.hash(e);return r.copy(this.opad,this.blocksize),this.hash(this.opad)};function d8(t,e,r,i,n){s8(r,i),t=Uv(t,Pv,"Password"),e=Uv(e,Pv,"Salt");var a=(n||"sha1").toLowerCase(),s=h8[a]||a,y=Pa[s];if(typeof y!="number"||!y)throw new TypeError("Digest algorithm not supported: "+n);var w=new Lv(s,t,e.length),S=ri.allocUnsafe(i),A=ri.allocUnsafe(e.length+4);e.copy(A,0,0,e.length);for(var q=0,k=y,C=Math.ceil(i/k),P=1;P<=C;P++){A.writeUInt32BE(P,e.length);for(var K=w.run(A,w.ipad1),qe=K,j=1;j<r;j++){qe=w.run(qe,w.ipad2);for(var Ee=0;Ee<k;Ee++)K[Ee]^=qe[Ee]}K.copy(S,q),q+=k}return S}Nv.exports=d8});var Gv=B((GA,$v)=>{"use strict";b();var Kv=xe().Buffer,p8=hu(),Fv=lu(),jv=du(),Hv=cu(),Ua,to=globalThis.crypto&&globalThis.crypto.subtle,v8={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},pu=[],ii;function vu(){return ii||(globalThis.process&&globalThis.process.nextTick?ii=globalThis.process.nextTick:globalThis.queueMicrotask?ii=globalThis.queueMicrotask:globalThis.setImmediate?ii=globalThis.setImmediate:ii=globalThis.setTimeout,ii)}function Wv(t,e,r,i,n){return to.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then(function(a){return to.deriveBits({name:"PBKDF2",salt:e,iterations:r,hash:{name:n}},a,i<<3)}).then(function(a){return Kv.from(a)})}function y8(t){if(globalThis.process&&!globalThis.process.browser||!to||!to.importKey||!to.deriveBits)return Promise.resolve(!1);if(pu[t]!==void 0)return pu[t];Ua=Ua||Kv.alloc(8);var e=Wv(Ua,Ua,10,128,t).then(function(){return!0},function(){return!1});return pu[t]=e,e}function g8(t,e){t.then(function(r){vu()(function(){e(null,r)})},function(r){vu()(function(){e(r)})})}$v.exports=function(t,e,r,i,n,a){if(typeof n=="function"&&(a=n,n=void 0),p8(r,i),t=Hv(t,Fv,"Password"),e=Hv(e,Fv,"Salt"),typeof a!="function")throw new Error("No callback provided to pbkdf2");n=n||"sha1";var s=v8[n.toLowerCase()];if(!s||typeof globalThis.Promise!="function"){vu()(function(){var y;try{y=jv(t,e,r,i,n)}catch(w){a(w);return}a(null,y)});return}g8(y8(s).then(function(y){return y?Wv(t,e,r,i,s):jv(t,e,r,i,n)}),a)}});var gu=B(yu=>{"use strict";b();yu.pbkdf2=Gv();yu.pbkdf2Sync=du()});var mu=B(dt=>{"use strict";b();dt.readUInt32BE=function(e,r){var i=e[0+r]<<24|e[1+r]<<16|e[2+r]<<8|e[3+r];return i>>>0};dt.writeUInt32BE=function(e,r,i){e[0+i]=r>>>24,e[1+i]=r>>>16&255,e[2+i]=r>>>8&255,e[3+i]=r&255};dt.ip=function(e,r,i,n){for(var a=0,s=0,y=6;y>=0;y-=2){for(var w=0;w<=24;w+=8)a<<=1,a|=r>>>w+y&1;for(var w=0;w<=24;w+=8)a<<=1,a|=e>>>w+y&1}for(var y=6;y>=0;y-=2){for(var w=1;w<=25;w+=8)s<<=1,s|=r>>>w+y&1;for(var w=1;w<=25;w+=8)s<<=1,s|=e>>>w+y&1}i[n+0]=a>>>0,i[n+1]=s>>>0};dt.rip=function(e,r,i,n){for(var a=0,s=0,y=0;y<4;y++)for(var w=24;w>=0;w-=8)a<<=1,a|=r>>>w+y&1,a<<=1,a|=e>>>w+y&1;for(var y=4;y<8;y++)for(var w=24;w>=0;w-=8)s<<=1,s|=r>>>w+y&1,s<<=1,s|=e>>>w+y&1;i[n+0]=a>>>0,i[n+1]=s>>>0};dt.pc1=function(e,r,i,n){for(var a=0,s=0,y=7;y>=5;y--){for(var w=0;w<=24;w+=8)a<<=1,a|=r>>w+y&1;for(var w=0;w<=24;w+=8)a<<=1,a|=e>>w+y&1}for(var w=0;w<=24;w+=8)a<<=1,a|=r>>w+y&1;for(var y=1;y<=3;y++){for(var w=0;w<=24;w+=8)s<<=1,s|=r>>w+y&1;for(var w=0;w<=24;w+=8)s<<=1,s|=e>>w+y&1}for(var w=0;w<=24;w+=8)s<<=1,s|=e>>w+y&1;i[n+0]=a>>>0,i[n+1]=s>>>0};dt.r28shl=function(e,r){return e<<r&268435455|e>>>28-r};var La=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];dt.pc2=function(e,r,i,n){for(var a=0,s=0,y=La.length>>>1,w=0;w<y;w++)a<<=1,a|=e>>>La[w]&1;for(var w=y;w<La.length;w++)s<<=1,s|=r>>>La[w]&1;i[n+0]=a>>>0,i[n+1]=s>>>0};dt.expand=function(e,r,i){var n=0,a=0;n=(e&1)<<5|e>>>27;for(var s=23;s>=15;s-=4)n<<=6,n|=e>>>s&63;for(var s=11;s>=3;s-=4)a|=e>>>s&63,a<<=6;a|=(e&31)<<1|e>>>31,r[i+0]=n>>>0,r[i+1]=a>>>0};var Vv=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];dt.substitute=function(e,r){for(var i=0,n=0;n<4;n++){var a=e>>>18-n*6&63,s=Vv[n*64+a];i<<=4,i|=s}for(var n=0;n<4;n++){var a=r>>>18-n*6&63,s=Vv[256+n*64+a];i<<=4,i|=s}return i>>>0};var zv=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];dt.permute=function(e){for(var r=0,i=0;i<zv.length;i++)r<<=1,r|=e>>>zv[i]&1;return r>>>0};dt.padSplit=function(e,r,i){for(var n=e.toString(2);n.length<r;)n="0"+n;for(var a=[],s=0;s<r;s+=i)a.push(n.slice(s,s+i));return a.join(" ")}});var ji=B((JA,Yv)=>{b();Yv.exports=Zv;function Zv(t,e){if(!t)throw new Error(e||"Assertion failed")}Zv.equal=function(e,r,i){if(e!=r)throw new Error(i||"Assertion failed: "+e+" != "+r)}});var Na=B((e7,Xv)=>{"use strict";b();var m8=ji();function pt(t){this.options=t,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=t.padding!==!1}Xv.exports=pt;pt.prototype._init=function(){};pt.prototype.update=function(e){return e.length===0?[]:this.type==="decrypt"?this._updateDecrypt(e):this._updateEncrypt(e)};pt.prototype._buffer=function(e,r){for(var i=Math.min(this.buffer.length-this.bufferOff,e.length-r),n=0;n<i;n++)this.buffer[this.bufferOff+n]=e[r+n];return this.bufferOff+=i,i};pt.prototype._flushBuffer=function(e,r){return this._update(this.buffer,0,e,r),this.bufferOff=0,this.blockSize};pt.prototype._updateEncrypt=function(e){var r=0,i=0,n=(this.bufferOff+e.length)/this.blockSize|0,a=new Array(n*this.blockSize);this.bufferOff!==0&&(r+=this._buffer(e,r),this.bufferOff===this.buffer.length&&(i+=this._flushBuffer(a,i)));for(var s=e.length-(e.length-r)%this.blockSize;r<s;r+=this.blockSize)this._update(e,r,a,i),i+=this.blockSize;for(;r<e.length;r++,this.bufferOff++)this.buffer[this.bufferOff]=e[r];return a};pt.prototype._updateDecrypt=function(e){for(var r=0,i=0,n=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,a=new Array(n*this.blockSize);n>0;n--)r+=this._buffer(e,r),i+=this._flushBuffer(a,i);return r+=this._buffer(e,r),a};pt.prototype.final=function(e){var r;e&&(r=this.update(e));var i;return this.type==="encrypt"?i=this._finalEncrypt():i=this._finalDecrypt(),r?r.concat(i):i};pt.prototype._pad=function(e,r){if(r===0)return!1;for(;r<e.length;)e[r++]=0;return!0};pt.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e};pt.prototype._unpad=function(e){return e};pt.prototype._finalDecrypt=function(){m8.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}});var bu=B((r7,ey)=>{"use strict";b();var Jv=ji(),b8=De(),$e=mu(),Qv=Na();function w8(){this.tmp=new Array(2),this.keys=null}function Nt(t){Qv.call(this,t);var e=new w8;this._desState=e,this.deriveKeys(e,t.key)}b8(Nt,Qv);ey.exports=Nt;Nt.create=function(e){return new Nt(e)};var _8=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];Nt.prototype.deriveKeys=function(e,r){e.keys=new Array(32),Jv.equal(r.length,this.blockSize,"Invalid key length");var i=$e.readUInt32BE(r,0),n=$e.readUInt32BE(r,4);$e.pc1(i,n,e.tmp,0),i=e.tmp[0],n=e.tmp[1];for(var a=0;a<e.keys.length;a+=2){var s=_8[a>>>1];i=$e.r28shl(i,s),n=$e.r28shl(n,s),$e.pc2(i,n,e.keys,a)}};Nt.prototype._update=function(e,r,i,n){var a=this._desState,s=$e.readUInt32BE(e,r),y=$e.readUInt32BE(e,r+4);$e.ip(s,y,a.tmp,0),s=a.tmp[0],y=a.tmp[1],this.type==="encrypt"?this._encrypt(a,s,y,a.tmp,0):this._decrypt(a,s,y,a.tmp,0),s=a.tmp[0],y=a.tmp[1],$e.writeUInt32BE(i,s,n),$e.writeUInt32BE(i,y,n+4)};Nt.prototype._pad=function(e,r){if(this.padding===!1)return!1;for(var i=e.length-r,n=r;n<e.length;n++)e[n]=i;return!0};Nt.prototype._unpad=function(e){if(this.padding===!1)return e;for(var r=e[e.length-1],i=e.length-r;i<e.length;i++)Jv.equal(e[i],r);return e.slice(0,e.length-r)};Nt.prototype._encrypt=function(e,r,i,n,a){for(var s=r,y=i,w=0;w<e.keys.length;w+=2){var S=e.keys[w],A=e.keys[w+1];$e.expand(y,e.tmp,0),S^=e.tmp[0],A^=e.tmp[1];var q=$e.substitute(S,A),k=$e.permute(q),C=y;y=(s^k)>>>0,s=C}$e.rip(y,s,n,a)};Nt.prototype._decrypt=function(e,r,i,n,a){for(var s=i,y=r,w=e.keys.length-2;w>=0;w-=2){var S=e.keys[w],A=e.keys[w+1];$e.expand(s,e.tmp,0),S^=e.tmp[0],A^=e.tmp[1];var q=$e.substitute(S,A),k=$e.permute(q),C=s;s=(y^k)>>>0,y=C}$e.rip(s,y,n,a)}});var ry=B(ty=>{"use strict";b();var x8=ji(),M8=De(),Fa={};function E8(t){x8.equal(t.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e<this.iv.length;e++)this.iv[e]=t[e]}function S8(t){function e(a){t.call(this,a),this._cbcInit()}M8(e,t);for(var r=Object.keys(Fa),i=0;i<r.length;i++){var n=r[i];e.prototype[n]=Fa[n]}return e.create=function(s){return new e(s)},e}ty.instantiate=S8;Fa._cbcInit=function(){var e=new E8(this.options.iv);this._cbcState=e};Fa._update=function(e,r,i,n){var a=this._cbcState,s=this.constructor.super_.prototype,y=a.iv;if(this.type==="encrypt"){for(var w=0;w<this.blockSize;w++)y[w]^=e[r+w];s._update.call(this,y,0,i,n);for(var w=0;w<this.blockSize;w++)y[w]=i[n+w]}else{s._update.call(this,e,r,i,n);for(var w=0;w<this.blockSize;w++)i[n+w]^=y[w];for(var w=0;w<this.blockSize;w++)y[w]=e[r+w]}}});var oy=B((a7,ny)=>{"use strict";b();var B8=ji(),A8=De(),iy=Na(),dr=bu();function R8(t,e){B8.equal(e.length,24,"Invalid key length");var r=e.slice(0,8),i=e.slice(8,16),n=e.slice(16,24);t==="encrypt"?this.ciphers=[dr.create({type:"encrypt",key:r}),dr.create({type:"decrypt",key:i}),dr.create({type:"encrypt",key:n})]:this.ciphers=[dr.create({type:"decrypt",key:n}),dr.create({type:"encrypt",key:i}),dr.create({type:"decrypt",key:r})]}function ni(t){iy.call(this,t);var e=new R8(this.type,this.options.key);this._edeState=e}A8(ni,iy);ny.exports=ni;ni.create=function(e){return new ni(e)};ni.prototype._update=function(e,r,i,n){var a=this._edeState;a.ciphers[0]._update(e,r,i,n),a.ciphers[1]._update(i,n,i,n),a.ciphers[2]._update(i,n,i,n)};ni.prototype._pad=dr.prototype._pad;ni.prototype._unpad=dr.prototype._unpad});var ay=B(Hi=>{"use strict";b();Hi.utils=mu();Hi.Cipher=Na();Hi.DES=bu();Hi.CBC=ry();Hi.EDE=oy()});var uy=B((h7,sy)=>{b();var fy=Xt(),Jt=ay(),q8=De(),oi=xe().Buffer,ro={"des-ede3-cbc":Jt.CBC.instantiate(Jt.EDE),"des-ede3":Jt.EDE,"des-ede-cbc":Jt.CBC.instantiate(Jt.EDE),"des-ede":Jt.EDE,"des-cbc":Jt.CBC.instantiate(Jt.DES),"des-ecb":Jt.DES};ro.des=ro["des-cbc"];ro.des3=ro["des-ede3-cbc"];sy.exports=ja;q8(ja,fy);function ja(t){fy.call(this);var e=t.mode.toLowerCase(),r=ro[e],i;t.decrypt?i="decrypt":i="encrypt";var n=t.key;oi.isBuffer(n)||(n=oi.from(n)),(e==="des-ede"||e==="des-ede-cbc")&&(n=oi.concat([n,n.slice(0,8)]));var a=t.iv;oi.isBuffer(a)||(a=oi.from(a)),this._des=r.create({key:n,iv:a,type:i})}ja.prototype._update=function(t){return oi.from(this._des.update(t))};ja.prototype._final=function(){return oi.from(this._des.final())}});var hy=B(wu=>{b();wu.encrypt=function(t,e){return t._cipher.encryptBlock(e)};wu.decrypt=function(t,e){return t._cipher.decryptBlock(e)}});var Ki=B((p7,ly)=>{b();ly.exports=function(e,r){for(var i=Math.min(e.length,r.length),n=new R.Buffer(i),a=0;a<i;++a)n[a]=e[a]^r[a];return n}});var dy=B(_u=>{b();var cy=Ki();_u.encrypt=function(t,e){var r=cy(e,t._prev);return t._prev=t._cipher.encryptBlock(r),t._prev};_u.decrypt=function(t,e){var r=t._prev;t._prev=e;var i=t._cipher.decryptBlock(e);return cy(i,r)}});var yy=B(vy=>{b();var io=xe().Buffer,T8=Ki();function py(t,e,r){var i=e.length,n=T8(e,t._cache);return t._cache=t._cache.slice(i),t._prev=io.concat([t._prev,r?e:n]),n}vy.encrypt=function(t,e,r){for(var i=io.allocUnsafe(0),n;e.length;)if(t._cache.length===0&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=io.allocUnsafe(0)),t._cache.length<=e.length)n=t._cache.length,i=io.concat([i,py(t,e.slice(0,n),r)]),e=e.slice(n);else{i=io.concat([i,py(t,e,r)]);break}return i}});var my=B(gy=>{b();var xu=xe().Buffer;function k8(t,e,r){var i=t._cipher.encryptBlock(t._prev),n=i[0]^e;return t._prev=xu.concat([t._prev.slice(1),xu.from([r?e:n])]),n}gy.encrypt=function(t,e,r){for(var i=e.length,n=xu.allocUnsafe(i),a=-1;++a<i;)n[a]=k8(t,e[a],r);return n}});var wy=B(by=>{b();var Ha=xe().Buffer;function I8(t,e,r){for(var i,n=-1,a=8,s=0,y,w;++n<a;)i=t._cipher.encryptBlock(t._prev),y=e&1<<7-n?128:0,w=i[0]^y,s+=(w&128)>>n%8,t._prev=O8(t._prev,r?y:w);return s}function O8(t,e){var r=t.length,i=-1,n=Ha.allocUnsafe(t.length);for(t=Ha.concat([t,Ha.from([e])]);++i<r;)n[i]=t[i]<<1|t[i+1]>>7;return n}by.encrypt=function(t,e,r){for(var i=e.length,n=Ha.allocUnsafe(i),a=-1;++a<i;)n[a]=I8(t,e[a],r);return n}});var xy=B(_y=>{b();var C8=Ki();function D8(t){return t._prev=t._cipher.encryptBlock(t._prev),t._prev}_y.encrypt=function(t,e){for(;t._cache.length<e.length;)t._cache=R.Buffer.concat([t._cache,D8(t)]);var r=t._cache.slice(0,e.length);return t._cache=t._cache.slice(e.length),C8(e,r)}});var Mu=B((B7,My)=>{b();function P8(t){for(var e=t.length,r;e--;)if(r=t.readUInt8(e),r===255)t.writeUInt8(0,e);else{r++,t.writeUInt8(r,e);break}}My.exports=P8});var Su=B(Sy=>{b();var U8=Ki(),Ey=xe().Buffer,L8=Mu();function N8(t){var e=t._cipher.encryptBlockRaw(t._prev);return L8(t._prev),e}var Eu=16;Sy.encrypt=function(t,e){var r=Math.ceil(e.length/Eu),i=t._cache.length;t._cache=Ey.concat([t._cache,Ey.allocUnsafe(r*Eu)]);for(var n=0;n<r;n++){var a=N8(t),s=i+n*Eu;t._cache.writeUInt32BE(a[0],s+0),t._cache.writeUInt32BE(a[1],s+4),t._cache.writeUInt32BE(a[2],s+8),t._cache.writeUInt32BE(a[3],s+12)}var y=t._cache.slice(0,e.length);return t._cache=t._cache.slice(e.length),U8(e,y)}});var Bu=B((T7,F8)=>{F8.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}});var Wa=B((k7,By)=>{b();var j8={ECB:hy(),CBC:dy(),CFB:yy(),CFB8:my(),CFB1:wy(),OFB:xy(),CTR:Su(),GCM:Su()},Ka=Bu();for(Au in Ka)Ka[Au].module=j8[Ka[Au].mode];var Au;By.exports=Ka});var no=B((O7,Ry)=>{b();var $a=xe().Buffer;function qu(t){$a.isBuffer(t)||(t=$a.from(t));for(var e=t.length/4|0,r=new Array(e),i=0;i<e;i++)r[i]=t.readUInt32BE(i*4);return r}function Ru(t){for(var e=0;e<t.length;t++)t[e]=0}function Ay(t,e,r,i,n){for(var a=r[0],s=r[1],y=r[2],w=r[3],S=t[0]^e[0],A=t[1]^e[1],q=t[2]^e[2],k=t[3]^e[3],C,P,K,qe,j=4,Ee=1;Ee<n;Ee++)C=a[S>>>24]^s[A>>>16&255]^y[q>>>8&255]^w[k&255]^e[j++],P=a[A>>>24]^s[q>>>16&255]^y[k>>>8&255]^w[S&255]^e[j++],K=a[q>>>24]^s[k>>>16&255]^y[S>>>8&255]^w[A&255]^e[j++],qe=a[k>>>24]^s[S>>>16&255]^y[A>>>8&255]^w[q&255]^e[j++],S=C,A=P,q=K,k=qe;return C=(i[S>>>24]<<24|i[A>>>16&255]<<16|i[q>>>8&255]<<8|i[k&255])^e[j++],P=(i[A>>>24]<<24|i[q>>>16&255]<<16|i[k>>>8&255]<<8|i[S&255])^e[j++],K=(i[q>>>24]<<24|i[k>>>16&255]<<16|i[S>>>8&255]<<8|i[A&255])^e[j++],qe=(i[k>>>24]<<24|i[S>>>16&255]<<16|i[A>>>8&255]<<8|i[q&255])^e[j++],C=C>>>0,P=P>>>0,K=K>>>0,qe=qe>>>0,[C,P,K,qe]}var H8=[0,1,2,4,8,16,32,64,128,27,54],We=(function(){for(var t=new Array(256),e=0;e<256;e++)e<128?t[e]=e<<1:t[e]=e<<1^283;for(var r=[],i=[],n=[[],[],[],[]],a=[[],[],[],[]],s=0,y=0,w=0;w<256;++w){var S=y^y<<1^y<<2^y<<3^y<<4;S=S>>>8^S&255^99,r[s]=S,i[S]=s;var A=t[s],q=t[A],k=t[q],C=t[S]*257^S*16843008;n[0][s]=C<<24|C>>>8,n[1][s]=C<<16|C>>>16,n[2][s]=C<<8|C>>>24,n[3][s]=C,C=k*16843009^q*65537^A*257^s*16843008,a[0][S]=C<<24|C>>>8,a[1][S]=C<<16|C>>>16,a[2][S]=C<<8|C>>>24,a[3][S]=C,s===0?s=y=1:(s=A^t[t[t[k^A]]],y^=t[t[y]])}return{SBOX:r,INV_SBOX:i,SUB_MIX:n,INV_SUB_MIX:a}})();function vt(t){this._key=qu(t),this._reset()}vt.blockSize=16;vt.keySize=256/8;vt.prototype.blockSize=vt.blockSize;vt.prototype.keySize=vt.keySize;vt.prototype._reset=function(){for(var t=this._key,e=t.length,r=e+6,i=(r+1)*4,n=[],a=0;a<e;a++)n[a]=t[a];for(a=e;a<i;a++){var s=n[a-1];a%e===0?(s=s<<8|s>>>24,s=We.SBOX[s>>>24]<<24|We.SBOX[s>>>16&255]<<16|We.SBOX[s>>>8&255]<<8|We.SBOX[s&255],s^=H8[a/e|0]<<24):e>6&&a%e===4&&(s=We.SBOX[s>>>24]<<24|We.SBOX[s>>>16&255]<<16|We.SBOX[s>>>8&255]<<8|We.SBOX[s&255]),n[a]=n[a-e]^s}for(var y=[],w=0;w<i;w++){var S=i-w,A=n[S-(w%4?0:4)];w<4||S<=4?y[w]=A:y[w]=We.INV_SUB_MIX[0][We.SBOX[A>>>24]]^We.INV_SUB_MIX[1][We.SBOX[A>>>16&255]]^We.INV_SUB_MIX[2][We.SBOX[A>>>8&255]]^We.INV_SUB_MIX[3][We.SBOX[A&255]]}this._nRounds=r,this._keySchedule=n,this._invKeySchedule=y};vt.prototype.encryptBlockRaw=function(t){return t=qu(t),Ay(t,this._keySchedule,We.SUB_MIX,We.SBOX,this._nRounds)};vt.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),r=$a.allocUnsafe(16);return r.writeUInt32BE(e[0],0),r.writeUInt32BE(e[1],4),r.writeUInt32BE(e[2],8),r.writeUInt32BE(e[3],12),r};vt.prototype.decryptBlock=function(t){t=qu(t);var e=t[1];t[1]=t[3],t[3]=e;var r=Ay(t,this._invKeySchedule,We.INV_SUB_MIX,We.INV_SBOX,this._nRounds),i=$a.allocUnsafe(16);return i.writeUInt32BE(r[0],0),i.writeUInt32BE(r[3],4),i.writeUInt32BE(r[2],8),i.writeUInt32BE(r[1],12),i};vt.prototype.scrub=function(){Ru(this._keySchedule),Ru(this._invKeySchedule),Ru(this._key)};Ry.exports.AES=vt});var ky=B((D7,Ty)=>{b();var Wi=xe().Buffer,K8=Wi.alloc(16,0);function W8(t){return[t.readUInt32BE(0),t.readUInt32BE(4),t.readUInt32BE(8),t.readUInt32BE(12)]}function qy(t){var e=Wi.allocUnsafe(16);return e.writeUInt32BE(t[0]>>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function oo(t){this.h=t,this.state=Wi.alloc(16,0),this.cache=Wi.allocUnsafe(0)}oo.prototype.ghash=function(t){for(var e=-1;++e<t.length;)this.state[e]^=t[e];this._multiply()};oo.prototype._multiply=function(){for(var t=W8(this.h),e=[0,0,0,0],r,i,n,a=-1;++a<128;){for(i=(this.state[~~(a/8)]&1<<7-a%8)!==0,i&&(e[0]^=t[0],e[1]^=t[1],e[2]^=t[2],e[3]^=t[3]),n=(t[3]&1)!==0,r=3;r>0;r--)t[r]=t[r]>>>1|(t[r-1]&1)<<31;t[0]=t[0]>>>1,n&&(t[0]=t[0]^225<<24)}this.state=qy(e)};oo.prototype.update=function(t){this.cache=Wi.concat([this.cache,t]);for(var e;this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)};oo.prototype.final=function(t,e){return this.cache.length&&this.ghash(Wi.concat([this.cache,K8],16)),this.ghash(qy([0,t,0,e])),this.state};Ty.exports=oo});var Tu=B((U7,Cy)=>{b();var $8=no(),ot=xe().Buffer,Iy=Xt(),G8=De(),Oy=ky(),V8=Ki(),z8=Mu();function Z8(t,e){var r=0;t.length!==e.length&&r++;for(var i=Math.min(t.length,e.length),n=0;n<i;++n)r+=t[n]^e[n];return r}function Y8(t,e,r){if(e.length===12)return t._finID=ot.concat([e,ot.from([0,0,0,1])]),ot.concat([e,ot.from([0,0,0,2])]);var i=new Oy(r),n=e.length,a=n%16;i.update(e),a&&(a=16-a,i.update(ot.alloc(a,0))),i.update(ot.alloc(8,0));var s=n*8,y=ot.alloc(8);y.writeUIntBE(s,0,8),i.update(y),t._finID=i.state;var w=ot.from(t._finID);return z8(w),w}function ai(t,e,r,i){Iy.call(this);var n=ot.alloc(4,0);this._cipher=new $8.AES(e);var a=this._cipher.encryptBlock(n);this._ghash=new Oy(a),r=Y8(this,r,a),this._prev=ot.from(r),this._cache=ot.allocUnsafe(0),this._secCache=ot.allocUnsafe(0),this._decrypt=i,this._alen=0,this._len=0,this._mode=t,this._authTag=null,this._called=!1}G8(ai,Iy);ai.prototype._update=function(t){if(!this._called&&this._alen){var e=16-this._alen%16;e<16&&(e=ot.alloc(e,0),this._ghash.update(e))}this._called=!0;var r=this._mode.encrypt(this,t);return this._decrypt?this._ghash.update(t):this._ghash.update(r),this._len+=t.length,r};ai.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var t=V8(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&Z8(t,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=t,this._cipher.scrub()};ai.prototype.getAuthTag=function(){if(this._decrypt||!ot.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag};ai.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e};ai.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length};Cy.exports=ai});var Iu=B((N7,Py)=>{b();var X8=no(),ku=xe().Buffer,Dy=Xt(),J8=De();function Ga(t,e,r,i){Dy.call(this),this._cipher=new X8.AES(e),this._prev=ku.from(r),this._cache=ku.allocUnsafe(0),this._secCache=ku.allocUnsafe(0),this._decrypt=i,this._mode=t}J8(Ga,Dy);Ga.prototype._update=function(t){return this._mode.encrypt(this,t,this._decrypt)};Ga.prototype._final=function(){this._cipher.scrub()};Py.exports=Ga});var ao=B((j7,Uy)=>{b();var fi=xe().Buffer,Q8=pa();function e4(t,e,r,i){if(fi.isBuffer(t)||(t=fi.from(t,"binary")),e&&(fi.isBuffer(e)||(e=fi.from(e,"binary")),e.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var n=r/8,a=fi.alloc(n),s=fi.alloc(i||0),y=fi.alloc(0);n>0||i>0;){var w=new Q8;w.update(y),w.update(t),e&&w.update(e),y=w.digest();var S=0;if(n>0){var A=a.length-n;S=Math.min(n,y.length),y.copy(a,A,0,S),n-=S}if(S<y.length&&i>0){var q=s.length-i,k=Math.min(i,y.length-S);y.copy(s,q,S,S+k),i-=k}}return y.fill(0),{key:a,iv:s}}Uy.exports=e4});var jy=B(Ou=>{b();var Ly=Wa(),t4=Tu(),Qt=xe().Buffer,r4=Iu(),Ny=Xt(),i4=no(),n4=ao(),o4=De();function fo(t,e,r){Ny.call(this),this._cache=new Va,this._cipher=new i4.AES(e),this._prev=Qt.from(r),this._mode=t,this._autopadding=!0}o4(fo,Ny);fo.prototype._update=function(t){this._cache.add(t);for(var e,r,i=[];e=this._cache.get();)r=this._mode.encrypt(this,e),i.push(r);return Qt.concat(i)};var a4=Qt.alloc(16,16);fo.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return t=this._mode.encrypt(this,t),this._cipher.scrub(),t;if(!t.equals(a4))throw this._cipher.scrub(),new Error("data not multiple of block length")};fo.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this};function Va(){this.cache=Qt.allocUnsafe(0)}Va.prototype.add=function(t){this.cache=Qt.concat([this.cache,t])};Va.prototype.get=function(){if(this.cache.length>15){var t=this.cache.slice(0,16);return this.cache=this.cache.slice(16),t}return null};Va.prototype.flush=function(){for(var t=16-this.cache.length,e=Qt.allocUnsafe(t),r=-1;++r<t;)e.writeUInt8(t,r);return Qt.concat([this.cache,e])};function Fy(t,e,r){var i=Ly[t.toLowerCase()];if(!i)throw new TypeError("invalid suite type");if(typeof e=="string"&&(e=Qt.from(e)),e.length!==i.key/8)throw new TypeError("invalid key length "+e.length);if(typeof r=="string"&&(r=Qt.from(r)),i.mode!=="GCM"&&r.length!==i.iv)throw new TypeError("invalid iv length "+r.length);return i.type==="stream"?new r4(i.module,e,r):i.type==="auth"?new t4(i.module,e,r):new fo(i.module,e,r)}function f4(t,e){var r=Ly[t.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=n4(e,!1,r.key,r.iv);return Fy(t,i.key,i.iv)}Ou.createCipheriv=Fy;Ou.createCipher=f4});var $y=B(Cu=>{b();var s4=Tu(),$i=xe().Buffer,Hy=Wa(),u4=Iu(),Ky=Xt(),h4=no(),l4=ao(),c4=De();function so(t,e,r){Ky.call(this),this._cache=new za,this._last=void 0,this._cipher=new h4.AES(e),this._prev=$i.from(r),this._mode=t,this._autopadding=!0}c4(so,Ky);so.prototype._update=function(t){this._cache.add(t);for(var e,r,i=[];e=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,e),i.push(r);return $i.concat(i)};so.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return d4(this._mode.decrypt(this,t));if(t)throw new Error("data not multiple of block length")};so.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this};function za(){this.cache=$i.allocUnsafe(0)}za.prototype.add=function(t){this.cache=$i.concat([this.cache,t])};za.prototype.get=function(t){var e;if(t){if(this.cache.length>16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null};za.prototype.flush=function(){if(this.cache.length)return this.cache};function d4(t){var e=t[15];if(e<1||e>16)throw new Error("unable to decrypt data");for(var r=-1;++r<e;)if(t[r+(16-e)]!==e)throw new Error("unable to decrypt data");if(e!==16)return t.slice(0,16-e)}function Wy(t,e,r){var i=Hy[t.toLowerCase()];if(!i)throw new TypeError("invalid suite type");if(typeof r=="string"&&(r=$i.from(r)),i.mode!=="GCM"&&r.length!==i.iv)throw new TypeError("invalid iv length "+r.length);if(typeof e=="string"&&(e=$i.from(e)),e.length!==i.key/8)throw new TypeError("invalid key length "+e.length);return i.type==="stream"?new u4(i.module,e,r,!0):i.type==="auth"?new s4(i.module,e,r,!0):new so(i.module,e,r)}function p4(t,e){var r=Hy[t.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=l4(e,!1,r.key,r.iv);return Wy(t,i.key,i.iv)}Cu.createDecipher=p4;Cu.createDecipheriv=Wy});var Za=B(Mt=>{b();var Gy=jy(),Vy=$y(),v4=Bu();function y4(){return Object.keys(v4)}Mt.createCipher=Mt.Cipher=Gy.createCipher;Mt.createCipheriv=Mt.Cipheriv=Gy.createCipheriv;Mt.createDecipher=Mt.Decipher=Vy.createDecipher;Mt.createDecipheriv=Mt.Decipheriv=Vy.createDecipheriv;Mt.listCiphers=Mt.getCiphers=y4});var zy=B(er=>{b();er["des-ecb"]={key:8,iv:0};er["des-cbc"]=er.des={key:8,iv:8};er["des-ede3-cbc"]=er.des3={key:24,iv:8};er["des-ede3"]={key:24,iv:0};er["des-ede-cbc"]={key:16,iv:8};er["des-ede"]={key:16,iv:0}});var Qy=B(Et=>{b();var Zy=uy(),Du=Za(),pr=Wa(),tr=zy(),Yy=ao();function g4(t,e){t=t.toLowerCase();var r,i;if(pr[t])r=pr[t].key,i=pr[t].iv;else if(tr[t])r=tr[t].key*8,i=tr[t].iv;else throw new TypeError("invalid suite type");var n=Yy(e,!1,r,i);return Xy(t,n.key,n.iv)}function m4(t,e){t=t.toLowerCase();var r,i;if(pr[t])r=pr[t].key,i=pr[t].iv;else if(tr[t])r=tr[t].key*8,i=tr[t].iv;else throw new TypeError("invalid suite type");var n=Yy(e,!1,r,i);return Jy(t,n.key,n.iv)}function Xy(t,e,r){if(t=t.toLowerCase(),pr[t])return Du.createCipheriv(t,e,r);if(tr[t])return new Zy({key:e,iv:r,mode:t});throw new TypeError("invalid suite type")}function Jy(t,e,r){if(t=t.toLowerCase(),pr[t])return Du.createDecipheriv(t,e,r);if(tr[t])return new Zy({key:e,iv:r,mode:t,decrypt:!0});throw new TypeError("invalid suite type")}function b4(){return Object.keys(tr).concat(Du.getCiphers())}Et.createCipher=Et.Cipher=g4;Et.createCipheriv=Et.Cipheriv=Xy;Et.createDecipher=Et.Decipher=m4;Et.createDecipheriv=Et.Decipheriv=Jy;Et.listCiphers=Et.getCiphers=b4});var vr=B((e1,Pu)=>{b();(function(t,e){"use strict";function r(E,h){if(!E)throw new Error(h||"Assertion failed")}function i(E,h){E.super_=h;var g=function(){};g.prototype=h.prototype,E.prototype=new g,E.prototype.constructor=E}function n(E,h,g){if(n.isBN(E))return E;this.negative=0,this.words=null,this.length=0,this.red=null,E!==null&&((h==="le"||h==="be")&&(g=h,h=10),this._init(E||0,h||10,g||"be"))}typeof t=="object"?t.exports=n:e.BN=n,n.BN=n,n.wordSize=26;var a;try{typeof window<"u"&&typeof window.Buffer<"u"?a=window.Buffer:a=rt().Buffer}catch{}n.isBN=function(h){return h instanceof n?!0:h!==null&&typeof h=="object"&&h.constructor.wordSize===n.wordSize&&Array.isArray(h.words)},n.max=function(h,g){return h.cmp(g)>0?h:g},n.min=function(h,g){return h.cmp(g)<0?h:g},n.prototype._init=function(h,g,c){if(typeof h=="number")return this._initNumber(h,g,c);if(typeof h=="object")return this._initArray(h,g,c);g==="hex"&&(g=16),r(g===(g|0)&&g>=2&&g<=36),h=h.toString().replace(/\s+/g,"");var o=0;h[0]==="-"&&(o++,this.negative=1),o<h.length&&(g===16?this._parseHex(h,o,c):(this._parseBase(h,g,o),c==="le"&&this._initArray(this.toArray(),g,c)))},n.prototype._initNumber=function(h,g,c){h<0&&(this.negative=1,h=-h),h<67108864?(this.words=[h&67108863],this.length=1):h<4503599627370496?(this.words=[h&67108863,h/67108864&67108863],this.length=2):(r(h<9007199254740992),this.words=[h&67108863,h/67108864&67108863,1],this.length=3),c==="le"&&this._initArray(this.toArray(),g,c)},n.prototype._initArray=function(h,g,c){if(r(typeof h.length=="number"),h.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(h.length/3),this.words=new Array(this.length);for(var o=0;o<this.length;o++)this.words[o]=0;var u,d,v=0;if(c==="be")for(o=h.length-1,u=0;o>=0;o-=3)d=h[o]|h[o-1]<<8|h[o-2]<<16,this.words[u]|=d<<v&67108863,this.words[u+1]=d>>>26-v&67108863,v+=24,v>=26&&(v-=26,u++);else if(c==="le")for(o=0,u=0;o<h.length;o+=3)d=h[o]|h[o+1]<<8|h[o+2]<<16,this.words[u]|=d<<v&67108863,this.words[u+1]=d>>>26-v&67108863,v+=24,v>=26&&(v-=26,u++);return this.strip()};function s(E,h){var g=E.charCodeAt(h);return g>=65&&g<=70?g-55:g>=97&&g<=102?g-87:g-48&15}function y(E,h,g){var c=s(E,g);return g-1>=h&&(c|=s(E,g-1)<<4),c}n.prototype._parseHex=function(h,g,c){this.length=Math.ceil((h.length-g)/6),this.words=new Array(this.length);for(var o=0;o<this.length;o++)this.words[o]=0;var u=0,d=0,v;if(c==="be")for(o=h.length-1;o>=g;o-=2)v=y(h,g,o)<<u,this.words[d]|=v&67108863,u>=18?(u-=18,d+=1,this.words[d]|=v>>>26):u+=8;else{var p=h.length-g;for(o=p%2===0?g+1:g;o<h.length;o+=2)v=y(h,g,o)<<u,this.words[d]|=v&67108863,u>=18?(u-=18,d+=1,this.words[d]|=v>>>26):u+=8}this.strip()};function w(E,h,g,c){for(var o=0,u=Math.min(E.length,g),d=h;d<u;d++){var v=E.charCodeAt(d)-48;o*=c,v>=49?o+=v-49+10:v>=17?o+=v-17+10:o+=v}return o}n.prototype._parseBase=function(h,g,c){this.words=[0],this.length=1;for(var o=0,u=1;u<=67108863;u*=g)o++;o--,u=u/g|0;for(var d=h.length-c,v=d%o,p=Math.min(d,d-v)+c,f=0,m=c;m<p;m+=o)f=w(h,m,m+o,g),this.imuln(u),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f);if(v!==0){var _=1;for(f=w(h,m,h.length,g),m=0;m<v;m++)_*=g;this.imuln(_),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f)}this.strip()},n.prototype.copy=function(h){h.words=new Array(this.length);for(var g=0;g<this.length;g++)h.words[g]=this.words[g];h.length=this.length,h.negative=this.negative,h.red=this.red},n.prototype.clone=function(){var h=new n(null);return this.copy(h),h},n.prototype._expand=function(h){for(;this.length<h;)this.words[this.length++]=0;return this},n.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},n.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},n.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var S=["","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"],A=[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],q=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(h,g){h=h||10,g=g|0||1;var c;if(h===16||h==="hex"){c="";for(var o=0,u=0,d=0;d<this.length;d++){var v=this.words[d],p=((v<<o|u)&16777215).toString(16);u=v>>>24-o&16777215,o+=2,o>=26&&(o-=26,d--),u!==0||d!==this.length-1?c=S[6-p.length]+p+c:c=p+c}for(u!==0&&(c=u.toString(16)+c);c.length%g!==0;)c="0"+c;return this.negative!==0&&(c="-"+c),c}if(h===(h|0)&&h>=2&&h<=36){var f=A[h],m=q[h];c="";var _=this.clone();for(_.negative=0;!_.isZero();){var l=_.modn(m).toString(h);_=_.idivn(m),_.isZero()?c=l+c:c=S[f-l.length]+l+c}for(this.isZero()&&(c="0"+c);c.length%g!==0;)c="0"+c;return this.negative!==0&&(c="-"+c),c}r(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var h=this.words[0];return this.length===2?h+=this.words[1]*67108864:this.length===3&&this.words[2]===1?h+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-h:h},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(h,g){return r(typeof a<"u"),this.toArrayLike(a,h,g)},n.prototype.toArray=function(h,g){return this.toArrayLike(Array,h,g)},n.prototype.toArrayLike=function(h,g,c){var o=this.byteLength(),u=c||Math.max(1,o);r(o<=u,"byte array longer than desired length"),r(u>0,"Requested array length <= 0"),this.strip();var d=g==="le",v=new h(u),p,f,m=this.clone();if(d){for(f=0;!m.isZero();f++)p=m.andln(255),m.iushrn(8),v[f]=p;for(;f<u;f++)v[f]=0}else{for(f=0;f<u-o;f++)v[f]=0;for(f=0;!m.isZero();f++)p=m.andln(255),m.iushrn(8),v[u-f-1]=p}return v},Math.clz32?n.prototype._countBits=function(h){return 32-Math.clz32(h)}:n.prototype._countBits=function(h){var g=h,c=0;return g>=4096&&(c+=13,g>>>=13),g>=64&&(c+=7,g>>>=7),g>=8&&(c+=4,g>>>=4),g>=2&&(c+=2,g>>>=2),c+g},n.prototype._zeroBits=function(h){if(h===0)return 26;var g=h,c=0;return(g&8191)===0&&(c+=13,g>>>=13),(g&127)===0&&(c+=7,g>>>=7),(g&15)===0&&(c+=4,g>>>=4),(g&3)===0&&(c+=2,g>>>=2),(g&1)===0&&c++,c},n.prototype.bitLength=function(){var h=this.words[this.length-1],g=this._countBits(h);return(this.length-1)*26+g};function k(E){for(var h=new Array(E.bitLength()),g=0;g<h.length;g++){var c=g/26|0,o=g%26;h[g]=(E.words[c]&1<<o)>>>o}return h}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var h=0,g=0;g<this.length;g++){var c=this._zeroBits(this.words[g]);if(h+=c,c!==26)break}return h},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(h){return this.negative!==0?this.abs().inotn(h).iaddn(1):this.clone()},n.prototype.fromTwos=function(h){return this.testn(h-1)?this.notn(h).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return this.negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.prototype.iuor=function(h){for(;this.length<h.length;)this.words[this.length++]=0;for(var g=0;g<h.length;g++)this.words[g]=this.words[g]|h.words[g];return this.strip()},n.prototype.ior=function(h){return r((this.negative|h.negative)===0),this.iuor(h)},n.prototype.or=function(h){return this.length>h.length?this.clone().ior(h):h.clone().ior(this)},n.prototype.uor=function(h){return this.length>h.length?this.clone().iuor(h):h.clone().iuor(this)},n.prototype.iuand=function(h){var g;this.length>h.length?g=h:g=this;for(var c=0;c<g.length;c++)this.words[c]=this.words[c]&h.words[c];return this.length=g.length,this.strip()},n.prototype.iand=function(h){return r((this.negative|h.negative)===0),this.iuand(h)},n.prototype.and=function(h){return this.length>h.length?this.clone().iand(h):h.clone().iand(this)},n.prototype.uand=function(h){return this.length>h.length?this.clone().iuand(h):h.clone().iuand(this)},n.prototype.iuxor=function(h){var g,c;this.length>h.length?(g=this,c=h):(g=h,c=this);for(var o=0;o<c.length;o++)this.words[o]=g.words[o]^c.words[o];if(this!==g)for(;o<g.length;o++)this.words[o]=g.words[o];return this.length=g.length,this.strip()},n.prototype.ixor=function(h){return r((this.negative|h.negative)===0),this.iuxor(h)},n.prototype.xor=function(h){return this.length>h.length?this.clone().ixor(h):h.clone().ixor(this)},n.prototype.uxor=function(h){return this.length>h.length?this.clone().iuxor(h):h.clone().iuxor(this)},n.prototype.inotn=function(h){r(typeof h=="number"&&h>=0);var g=Math.ceil(h/26)|0,c=h%26;this._expand(g),c>0&&g--;for(var o=0;o<g;o++)this.words[o]=~this.words[o]&67108863;return c>0&&(this.words[o]=~this.words[o]&67108863>>26-c),this.strip()},n.prototype.notn=function(h){return this.clone().inotn(h)},n.prototype.setn=function(h,g){r(typeof h=="number"&&h>=0);var c=h/26|0,o=h%26;return this._expand(c+1),g?this.words[c]=this.words[c]|1<<o:this.words[c]=this.words[c]&~(1<<o),this.strip()},n.prototype.iadd=function(h){var g;if(this.negative!==0&&h.negative===0)return this.negative=0,g=this.isub(h),this.negative^=1,this._normSign();if(this.negative===0&&h.negative!==0)return h.negative=0,g=this.isub(h),h.negative=1,g._normSign();var c,o;this.length>h.length?(c=this,o=h):(c=h,o=this);for(var u=0,d=0;d<o.length;d++)g=(c.words[d]|0)+(o.words[d]|0)+u,this.words[d]=g&67108863,u=g>>>26;for(;u!==0&&d<c.length;d++)g=(c.words[d]|0)+u,this.words[d]=g&67108863,u=g>>>26;if(this.length=c.length,u!==0)this.words[this.length]=u,this.length++;else if(c!==this)for(;d<c.length;d++)this.words[d]=c.words[d];return this},n.prototype.add=function(h){var g;return h.negative!==0&&this.negative===0?(h.negative=0,g=this.sub(h),h.negative^=1,g):h.negative===0&&this.negative!==0?(this.negative=0,g=h.sub(this),this.negative=1,g):this.length>h.length?this.clone().iadd(h):h.clone().iadd(this)},n.prototype.isub=function(h){if(h.negative!==0){h.negative=0;var g=this.iadd(h);return h.negative=1,g._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(h),this.negative=1,this._normSign();var c=this.cmp(h);if(c===0)return this.negative=0,this.length=1,this.words[0]=0,this;var o,u;c>0?(o=this,u=h):(o=h,u=this);for(var d=0,v=0;v<u.length;v++)g=(o.words[v]|0)-(u.words[v]|0)+d,d=g>>26,this.words[v]=g&67108863;for(;d!==0&&v<o.length;v++)g=(o.words[v]|0)+d,d=g>>26,this.words[v]=g&67108863;if(d===0&&v<o.length&&o!==this)for(;v<o.length;v++)this.words[v]=o.words[v];return this.length=Math.max(this.length,v),o!==this&&(this.negative=1),this.strip()},n.prototype.sub=function(h){return this.clone().isub(h)};function C(E,h,g){g.negative=h.negative^E.negative;var c=E.length+h.length|0;g.length=c,c=c-1|0;var o=E.words[0]|0,u=h.words[0]|0,d=o*u,v=d&67108863,p=d/67108864|0;g.words[0]=v;for(var f=1;f<c;f++){for(var m=p>>>26,_=p&67108863,l=Math.min(f,h.length-1),x=Math.max(0,f-E.length+1);x<=l;x++){var I=f-x|0;o=E.words[I]|0,u=h.words[x]|0,d=o*u+_,m+=d/67108864|0,_=d&67108863}g.words[f]=_|0,p=m|0}return p!==0?g.words[f]=p|0:g.length--,g.strip()}var P=function(h,g,c){var o=h.words,u=g.words,d=c.words,v=0,p,f,m,_=o[0]|0,l=_&8191,x=_>>>13,I=o[1]|0,D=I&8191,O=I>>>13,L=o[2]|0,U=L&8191,N=L>>>13,bt=o[3]|0,F=bt&8191,H=bt>>>13,Qi=o[4]|0,W=Qi&8191,$=Qi>>>13,en=o[5]|0,G=en&8191,V=en>>>13,tn=o[6]|0,z=tn&8191,Z=tn>>>13,rn=o[7]|0,Y=rn&8191,X=rn>>>13,nn=o[8]|0,J=nn&8191,Q=nn>>>13,on=o[9]|0,ee=on&8191,te=on>>>13,an=u[0]|0,re=an&8191,ie=an>>>13,fn=u[1]|0,ne=fn&8191,oe=fn>>>13,sn=u[2]|0,ae=sn&8191,fe=sn>>>13,un=u[3]|0,se=un&8191,ue=un>>>13,hn=u[4]|0,he=hn&8191,le=hn>>>13,ln=u[5]|0,ce=ln&8191,de=ln>>>13,cn=u[6]|0,pe=cn&8191,ve=cn>>>13,dn=u[7]|0,ye=dn&8191,ge=dn>>>13,pn=u[8]|0,me=pn&8191,be=pn>>>13,vn=u[9]|0,we=vn&8191,_e=vn>>>13;c.negative=h.negative^g.negative,c.length=19,p=Math.imul(l,re),f=Math.imul(l,ie),f=f+Math.imul(x,re)|0,m=Math.imul(x,ie);var ci=(v+p|0)+((f&8191)<<13)|0;v=(m+(f>>>13)|0)+(ci>>>26)|0,ci&=67108863,p=Math.imul(D,re),f=Math.imul(D,ie),f=f+Math.imul(O,re)|0,m=Math.imul(O,ie),p=p+Math.imul(l,ne)|0,f=f+Math.imul(l,oe)|0,f=f+Math.imul(x,ne)|0,m=m+Math.imul(x,oe)|0;var Ue=(v+p|0)+((f&8191)<<13)|0;v=(m+(f>>>13)|0)+(Ue>>>26)|0,Ue&=67108863,p=Math.imul(U,re),f=Math.imul(U,ie),f=f+Math.imul(N,re)|0,m=Math.imul(N,ie),p=p+Math.imul(D,ne)|0,f=f+Math.imul(D,oe)|0,f=f+Math.imul(O,ne)|0,m=m+Math.imul(O,oe)|0,p=p+Math.imul(l,ae)|0,f=f+Math.imul(l,fe)|0,f=f+Math.imul(x,ae)|0,m=m+Math.imul(x,fe)|0;var Le=(v+p|0)+((f&8191)<<13)|0;v=(m+(f>>>13)|0)+(Le>>>26)|0,Le&=67108863,p=Math.imul(F,re),f=Math.imul(F,ie),f=f+Math.imul(H,re)|0,m=Math.imul(H,ie),p=p+Math.imul(U,ne)|0,f=f+Math.imul(U,oe)|0,f=f+Math.imul(N,ne)|0,m=m+Math.imul(N,oe)|0,p=p+Math.imul(D,ae)|0,f=f+Math.imul(D,fe)|0,f=f+Math.imul(O,ae)|0,m=m+Math.imul(O,fe)|0,p=p+Math.imul(l,se)|0,f=f+Math.imul(l,ue)|0,f=f+Math.imul(x,se)|0,m=m+Math.imul(x,ue)|0;var gr=(v+p|0)+((f&8191)<<13)|0;v=(m+(f>>>13)|0)+(gr>>>26)|0,gr&=67108863,p=Math.imul(W,re),f=Math.imul(W,ie),f=f+Math.imul($,re)|0,m=Math.imul($,ie),p=p+Math.imul(F,ne)|0,f=f+Math.imul(F,oe)|0,f=f+Math.imul(H,ne)|0,m=m+Math.imul(H,oe)|0,p=p+Math.imul(U,ae)|0,f=f+Math.imul(U,fe)|0,f=f+Math.imul(N,ae)|0,m=m+Math.imul(N,fe)|0,p=p+Math.imul(D,se)|0,f=f+Math.imul(D,ue)|0,f=f+Math.imul(O,se)|0,m=m+Math.imul(O,ue)|0,p=p+Math.imul(l,he)|0,f=f+Math.imul(l,le)|0,f=f+Math.imul(x,he)|0,m=m+Math.imul(x,le)|0;var mr=(v+p|0)+((f&8191)<<13)|0;v=(m+(f>>>13)|0)+(mr>>>26)|0,mr&=67108863,p=Math.imul(G,re),f=Math.imul(G,ie),f=f+Math.imul(V,re)|0,m=Math.imul(V,ie),p=p+Math.imul(W,ne)|0,f=f+Math.imul(W,oe)|0,f=f+Math.imul($,ne)|0,m=m+Math.imul($,oe)|0,p=p+Math.imul(F,ae)|0,f=f+Math.imul(F,fe)|0,f=f+Math.imul(H,ae)|0,m=m+Math.imul(H,fe)|0,p=p+Math.imul(U,se)|0,f=f+Math.imul(U,ue)|0,f=f+Math.imul(N,se)|0,m=m+Math.imul(N,ue)|0,p=p+Math.imul(D,he)|0,f=f+Math.imul(D,le)|0,f=f+Math.imul(O,he)|0,m=m+Math.imul(O,le)|0,p=p+Math.imul(l,ce)|0,f=f+Math.imul(l,de)|0,f=f+Math.imul(x,ce)|0,m=m+Math.imul(x,de)|0;var br=(v+p|0)+((f&8191)<<13)|0;v=(m+(f>>>13)|0)+(br>>>26)|0,br&=67108863,p=Math.imul(z,re),f=Math.imul(z,ie),f=f+Math.imul(Z,re)|0,m=Math.imul(Z,ie),p=p+Math.imul(G,ne)|0,f=f+Math.imul(G,oe)|0,f=f+Math.imul(V,ne)|0,m=m+Math.imul(V,oe)|0,p=p+Math.imul(W,ae)|0,f=f+Math.imul(W,fe)|0,f=f+Math.imul($,ae)|0,m=m+Math.imul($,fe)|0,p=p+Math.imul(F,se)|0,f=f+Math.imul(F,ue)|0,f=f+Math.imul(H,se)|0,m=m+Math.imul(H,ue)|0,p=p+Math.imul(U,he)|0,f=f+Math.imul(U,le)|0,f=f+Math.imul(N,he)|0,m=m+Math.imul(N,le)|0,p=p+Math.imul(D,ce)|0,f=f+Math.imul(D,de)|0,f=f+Math.imul(O,ce)|0,m=m+Math.imul(O,de)|0,p=p+Math.imul(l,pe)|0,f=f+Math.imul(l,ve)|0,f=f+Math.imul(x,pe)|0,m=m+Math.imul(x,ve)|0;var wr=(v+p|0)+((f&8191)<<13)|0;v=(m+(f>>>13)|0)+(wr>>>26)|0,wr&=67108863,p=Math.imul(Y,re),f=Math.imul(Y,ie),f=f+Math.imul(X,re)|0,m=Math.imul(X,ie),p=p+Math.imul(z,ne)|0,f=f+Math.imul(z,oe)|0,f=f+Math.imul(Z,ne)|0,m=m+Math.imul(Z,oe)|0,p=p+Math.imul(G,ae)|0,f=f+Math.imul(G,fe)|0,f=f+Math.imul(V,ae)|0,m=m+Math.imul(V,fe)|0,p=p+Math.imul(W,se)|0,f=f+Math.imul(W,ue)|0,f=f+Math.imul($,se)|0,m=m+Math.imul($,ue)|0,p=p+Math.imul(F,he)|0,f=f+Math.imul(F,le)|0,f=f+Math.imul(H,he)|0,m=m+Math.imul(H,le)|0,p=p+Math.imul(U,ce)|0,f=f+Math.imul(U,de)|0,f=f+Math.imul(N,ce)|0,m=m+Math.imul(N,de)|0,p=p+Math.imul(D,pe)|0,f=f+Math.imul(D,ve)|0,f=f+Math.imul(O,pe)|0,m=m+Math.imul(O,ve)|0,p=p+Math.imul(l,ye)|0,f=f+Math.imul(l,ge)|0,f=f+Math.imul(x,ye)|0,m=m+Math.imul(x,ge)|0;var _r=(v+p|0)+((f&8191)<<13)|0;v=(m+(f>>>13)|0)+(_r>>>26)|0,_r&=67108863,p=Math.imul(J,re),f=Math.imul(J,ie),f=f+Math.imul(Q,re)|0,m=Math.imul(Q,ie),p=p+Math.imul(Y,ne)|0,f=f+Math.imul(Y,oe)|0,f=f+Math.imul(X,ne)|0,m=m+Math.imul(X,oe)|0,p=p+Math.imul(z,ae)|0,f=f+Math.imul(z,fe)|0,f=f+Math.imul(Z,ae)|0,m=m+Math.imul(Z,fe)|0,p=p+Math.imul(G,se)|0,f=f+Math.imul(G,ue)|0,f=f+Math.imul(V,se)|0,m=m+Math.imul(V,ue)|0,p=p+Math.imul(W,he)|0,f=f+Math.imul(W,le)|0,f=f+Math.imul($,he)|0,m=m+Math.imul($,le)|0,p=p+Math.imul(F,ce)|0,f=f+Math.imul(F,de)|0,f=f+Math.imul(H,ce)|0,m=m+Math.imul(H,de)|0,p=p+Math.imul(U,pe)|0,f=f+Math.imul(U,ve)|0,f=f+Math.imul(N,pe)|0,m=m+Math.imul(N,ve)|0,p=p+Math.imul(D,ye)|0,f=f+Math.imul(D,ge)|0,f=f+Math.imul(O,ye)|0,m=m+Math.imul(O,ge)|0,p=p+Math.imul(l,me)|0,f=f+Math.imul(l,be)|0,f=f+Math.imul(x,me)|0,m=m+Math.imul(x,be)|0;var xr=(v+p|0)+((f&8191)<<13)|0;v=(m+(f>>>13)|0)+(xr>>>26)|0,xr&=67108863,p=Math.imul(ee,re),f=Math.imul(ee,ie),f=f+Math.imul(te,re)|0,m=Math.imul(te,ie),p=p+Math.imul(J,ne)|0,f=f+Math.imul(J,oe)|0,f=f+Math.imul(Q,ne)|0,m=m+Math.imul(Q,oe)|0,p=p+Math.imul(Y,ae)|0,f=f+Math.imul(Y,fe)|0,f=f+Math.imul(X,ae)|0,m=m+Math.imul(X,fe)|0,p=p+Math.imul(z,se)|0,f=f+Math.imul(z,ue)|0,f=f+Math.imul(Z,se)|0,m=m+Math.imul(Z,ue)|0,p=p+Math.imul(G,he)|0,f=f+Math.imul(G,le)|0,f=f+Math.imul(V,he)|0,m=m+Math.imul(V,le)|0,p=p+Math.imul(W,ce)|0,f=f+Math.imul(W,de)|0,f=f+Math.imul($,ce)|0,m=m+Math.imul($,de)|0,p=p+Math.imul(F,pe)|0,f=f+Math.imul(F,ve)|0,f=f+Math.imul(H,pe)|0,m=m+Math.imul(H,ve)|0,p=p+Math.imul(U,ye)|0,f=f+Math.imul(U,ge)|0,f=f+Math.imul(N,ye)|0,m=m+Math.imul(N,ge)|0,p=p+Math.imul(D,me)|0,f=f+Math.imul(D,be)|0,f=f+Math.imul(O,me)|0,m=m+Math.imul(O,be)|0,p=p+Math.imul(l,we)|0,f=f+Math.imul(l,_e)|0,f=f+Math.imul(x,we)|0,m=m+Math.imul(x,_e)|0;var Mr=(v+p|0)+((f&8191)<<13)|0;v=(m+(f>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,p=Math.imul(ee,ne),f=Math.imul(ee,oe),f=f+Math.imul(te,ne)|0,m=Math.imul(te,oe),p=p+Math.imul(J,ae)|0,f=f+Math.imul(J,fe)|0,f=f+Math.imul(Q,ae)|0,m=m+Math.imul(Q,fe)|0,p=p+Math.imul(Y,se)|0,f=f+Math.imul(Y,ue)|0,f=f+Math.imul(X,se)|0,m=m+Math.imul(X,ue)|0,p=p+Math.imul(z,he)|0,f=f+Math.imul(z,le)|0,f=f+Math.imul(Z,he)|0,m=m+Math.imul(Z,le)|0,p=p+Math.imul(G,ce)|0,f=f+Math.imul(G,de)|0,f=f+Math.imul(V,ce)|0,m=m+Math.imul(V,de)|0,p=p+Math.imul(W,pe)|0,f=f+Math.imul(W,ve)|0,f=f+Math.imul($,pe)|0,m=m+Math.imul($,ve)|0,p=p+Math.imul(F,ye)|0,f=f+Math.imul(F,ge)|0,f=f+Math.imul(H,ye)|0,m=m+Math.imul(H,ge)|0,p=p+Math.imul(U,me)|0,f=f+Math.imul(U,be)|0,f=f+Math.imul(N,me)|0,m=m+Math.imul(N,be)|0,p=p+Math.imul(D,we)|0,f=f+Math.imul(D,_e)|0,f=f+Math.imul(O,we)|0,m=m+Math.imul(O,_e)|0;var Er=(v+p|0)+((f&8191)<<13)|0;v=(m+(f>>>13)|0)+(Er>>>26)|0,Er&=67108863,p=Math.imul(ee,ae),f=Math.imul(ee,fe),f=f+Math.imul(te,ae)|0,m=Math.imul(te,fe),p=p+Math.imul(J,se)|0,f=f+Math.imul(J,ue)|0,f=f+Math.imul(Q,se)|0,m=m+Math.imul(Q,ue)|0,p=p+Math.imul(Y,he)|0,f=f+Math.imul(Y,le)|0,f=f+Math.imul(X,he)|0,m=m+Math.imul(X,le)|0,p=p+Math.imul(z,ce)|0,f=f+Math.imul(z,de)|0,f=f+Math.imul(Z,ce)|0,m=m+Math.imul(Z,de)|0,p=p+Math.imul(G,pe)|0,f=f+Math.imul(G,ve)|0,f=f+Math.imul(V,pe)|0,m=m+Math.imul(V,ve)|0,p=p+Math.imul(W,ye)|0,f=f+Math.imul(W,ge)|0,f=f+Math.imul($,ye)|0,m=m+Math.imul($,ge)|0,p=p+Math.imul(F,me)|0,f=f+Math.imul(F,be)|0,f=f+Math.imul(H,me)|0,m=m+Math.imul(H,be)|0,p=p+Math.imul(U,we)|0,f=f+Math.imul(U,_e)|0,f=f+Math.imul(N,we)|0,m=m+Math.imul(N,_e)|0;var Sr=(v+p|0)+((f&8191)<<13)|0;v=(m+(f>>>13)|0)+(Sr>>>26)|0,Sr&=67108863,p=Math.imul(ee,se),f=Math.imul(ee,ue),f=f+Math.imul(te,se)|0,m=Math.imul(te,ue),p=p+Math.imul(J,he)|0,f=f+Math.imul(J,le)|0,f=f+Math.imul(Q,he)|0,m=m+Math.imul(Q,le)|0,p=p+Math.imul(Y,ce)|0,f=f+Math.imul(Y,de)|0,f=f+Math.imul(X,ce)|0,m=m+Math.imul(X,de)|0,p=p+Math.imul(z,pe)|0,f=f+Math.imul(z,ve)|0,f=f+Math.imul(Z,pe)|0,m=m+Math.imul(Z,ve)|0,p=p+Math.imul(G,ye)|0,f=f+Math.imul(G,ge)|0,f=f+Math.imul(V,ye)|0,m=m+Math.imul(V,ge)|0,p=p+Math.imul(W,me)|0,f=f+Math.imul(W,be)|0,f=f+Math.imul($,me)|0,m=m+Math.imul($,be)|0,p=p+Math.imul(F,we)|0,f=f+Math.imul(F,_e)|0,f=f+Math.imul(H,we)|0,m=m+Math.imul(H,_e)|0;var Br=(v+p|0)+((f&8191)<<13)|0;v=(m+(f>>>13)|0)+(Br>>>26)|0,Br&=67108863,p=Math.imul(ee,he),f=Math.imul(ee,le),f=f+Math.imul(te,he)|0,m=Math.imul(te,le),p=p+Math.imul(J,ce)|0,f=f+Math.imul(J,de)|0,f=f+Math.imul(Q,ce)|0,m=m+Math.imul(Q,de)|0,p=p+Math.imul(Y,pe)|0,f=f+Math.imul(Y,ve)|0,f=f+Math.imul(X,pe)|0,m=m+Math.imul(X,ve)|0,p=p+Math.imul(z,ye)|0,f=f+Math.imul(z,ge)|0,f=f+Math.imul(Z,ye)|0,m=m+Math.imul(Z,ge)|0,p=p+Math.imul(G,me)|0,f=f+Math.imul(G,be)|0,f=f+Math.imul(V,me)|0,m=m+Math.imul(V,be)|0,p=p+Math.imul(W,we)|0,f=f+Math.imul(W,_e)|0,f=f+Math.imul($,we)|0,m=m+Math.imul($,_e)|0;var Ar=(v+p|0)+((f&8191)<<13)|0;v=(m+(f>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,p=Math.imul(ee,ce),f=Math.imul(ee,de),f=f+Math.imul(te,ce)|0,m=Math.imul(te,de),p=p+Math.imul(J,pe)|0,f=f+Math.imul(J,ve)|0,f=f+Math.imul(Q,pe)|0,m=m+Math.imul(Q,ve)|0,p=p+Math.imul(Y,ye)|0,f=f+Math.imul(Y,ge)|0,f=f+Math.imul(X,ye)|0,m=m+Math.imul(X,ge)|0,p=p+Math.imul(z,me)|0,f=f+Math.imul(z,be)|0,f=f+Math.imul(Z,me)|0,m=m+Math.imul(Z,be)|0,p=p+Math.imul(G,we)|0,f=f+Math.imul(G,_e)|0,f=f+Math.imul(V,we)|0,m=m+Math.imul(V,_e)|0;var Rr=(v+p|0)+((f&8191)<<13)|0;v=(m+(f>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,p=Math.imul(ee,pe),f=Math.imul(ee,ve),f=f+Math.imul(te,pe)|0,m=Math.imul(te,ve),p=p+Math.imul(J,ye)|0,f=f+Math.imul(J,ge)|0,f=f+Math.imul(Q,ye)|0,m=m+Math.imul(Q,ge)|0,p=p+Math.imul(Y,me)|0,f=f+Math.imul(Y,be)|0,f=f+Math.imul(X,me)|0,m=m+Math.imul(X,be)|0,p=p+Math.imul(z,we)|0,f=f+Math.imul(z,_e)|0,f=f+Math.imul(Z,we)|0,m=m+Math.imul(Z,_e)|0;var qr=(v+p|0)+((f&8191)<<13)|0;v=(m+(f>>>13)|0)+(qr>>>26)|0,qr&=67108863,p=Math.imul(ee,ye),f=Math.imul(ee,ge),f=f+Math.imul(te,ye)|0,m=Math.imul(te,ge),p=p+Math.imul(J,me)|0,f=f+Math.imul(J,be)|0,f=f+Math.imul(Q,me)|0,m=m+Math.imul(Q,be)|0,p=p+Math.imul(Y,we)|0,f=f+Math.imul(Y,_e)|0,f=f+Math.imul(X,we)|0,m=m+Math.imul(X,_e)|0;var Tr=(v+p|0)+((f&8191)<<13)|0;v=(m+(f>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,p=Math.imul(ee,me),f=Math.imul(ee,be),f=f+Math.imul(te,me)|0,m=Math.imul(te,be),p=p+Math.imul(J,we)|0,f=f+Math.imul(J,_e)|0,f=f+Math.imul(Q,we)|0,m=m+Math.imul(Q,_e)|0;var kr=(v+p|0)+((f&8191)<<13)|0;v=(m+(f>>>13)|0)+(kr>>>26)|0,kr&=67108863,p=Math.imul(ee,we),f=Math.imul(ee,_e),f=f+Math.imul(te,we)|0,m=Math.imul(te,_e);var Ir=(v+p|0)+((f&8191)<<13)|0;return v=(m+(f>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,d[0]=ci,d[1]=Ue,d[2]=Le,d[3]=gr,d[4]=mr,d[5]=br,d[6]=wr,d[7]=_r,d[8]=xr,d[9]=Mr,d[10]=Er,d[11]=Sr,d[12]=Br,d[13]=Ar,d[14]=Rr,d[15]=qr,d[16]=Tr,d[17]=kr,d[18]=Ir,v!==0&&(d[19]=v,c.length++),c};Math.imul||(P=C);function K(E,h,g){g.negative=h.negative^E.negative,g.length=E.length+h.length;for(var c=0,o=0,u=0;u<g.length-1;u++){var d=o;o=0;for(var v=c&67108863,p=Math.min(u,h.length-1),f=Math.max(0,u-E.length+1);f<=p;f++){var m=u-f,_=E.words[m]|0,l=h.words[f]|0,x=_*l,I=x&67108863;d=d+(x/67108864|0)|0,I=I+v|0,v=I&67108863,d=d+(I>>>26)|0,o+=d>>>26,d&=67108863}g.words[u]=v,c=d,d=o}return c!==0?g.words[u]=c:g.length--,g.strip()}function qe(E,h,g){var c=new j;return c.mulp(E,h,g)}n.prototype.mulTo=function(h,g){var c,o=this.length+h.length;return this.length===10&&h.length===10?c=P(this,h,g):o<63?c=C(this,h,g):o<1024?c=K(this,h,g):c=qe(this,h,g),c};function j(E,h){this.x=E,this.y=h}j.prototype.makeRBT=function(h){for(var g=new Array(h),c=n.prototype._countBits(h)-1,o=0;o<h;o++)g[o]=this.revBin(o,c,h);return g},j.prototype.revBin=function(h,g,c){if(h===0||h===c-1)return h;for(var o=0,u=0;u<g;u++)o|=(h&1)<<g-u-1,h>>=1;return o},j.prototype.permute=function(h,g,c,o,u,d){for(var v=0;v<d;v++)o[v]=g[h[v]],u[v]=c[h[v]]},j.prototype.transform=function(h,g,c,o,u,d){this.permute(d,h,g,c,o,u);for(var v=1;v<u;v<<=1)for(var p=v<<1,f=Math.cos(2*Math.PI/p),m=Math.sin(2*Math.PI/p),_=0;_<u;_+=p)for(var l=f,x=m,I=0;I<v;I++){var D=c[_+I],O=o[_+I],L=c[_+I+v],U=o[_+I+v],N=l*L-x*U;U=l*U+x*L,L=N,c[_+I]=D+L,o[_+I]=O+U,c[_+I+v]=D-L,o[_+I+v]=O-U,I!==p&&(N=f*l-m*x,x=f*x+m*l,l=N)}},j.prototype.guessLen13b=function(h,g){var c=Math.max(g,h)|1,o=c&1,u=0;for(c=c/2|0;c;c=c>>>1)u++;return 1<<u+1+o},j.prototype.conjugate=function(h,g,c){if(!(c<=1))for(var o=0;o<c/2;o++){var u=h[o];h[o]=h[c-o-1],h[c-o-1]=u,u=g[o],g[o]=-g[c-o-1],g[c-o-1]=-u}},j.prototype.normalize13b=function(h,g){for(var c=0,o=0;o<g/2;o++){var u=Math.round(h[2*o+1]/g)*8192+Math.round(h[2*o]/g)+c;h[o]=u&67108863,u<67108864?c=0:c=u/67108864|0}return h},j.prototype.convert13b=function(h,g,c,o){for(var u=0,d=0;d<g;d++)u=u+(h[d]|0),c[2*d]=u&8191,u=u>>>13,c[2*d+1]=u&8191,u=u>>>13;for(d=2*g;d<o;++d)c[d]=0;r(u===0),r((u&-8192)===0)},j.prototype.stub=function(h){for(var g=new Array(h),c=0;c<h;c++)g[c]=0;return g},j.prototype.mulp=function(h,g,c){var o=2*this.guessLen13b(h.length,g.length),u=this.makeRBT(o),d=this.stub(o),v=new Array(o),p=new Array(o),f=new Array(o),m=new Array(o),_=new Array(o),l=new Array(o),x=c.words;x.length=o,this.convert13b(h.words,h.length,v,o),this.convert13b(g.words,g.length,m,o),this.transform(v,d,p,f,o,u),this.transform(m,d,_,l,o,u);for(var I=0;I<o;I++){var D=p[I]*_[I]-f[I]*l[I];f[I]=p[I]*l[I]+f[I]*_[I],p[I]=D}return this.conjugate(p,f,o),this.transform(p,f,x,d,o,u),this.conjugate(x,d,o),this.normalize13b(x,o),c.negative=h.negative^g.negative,c.length=h.length+g.length,c.strip()},n.prototype.mul=function(h){var g=new n(null);return g.words=new Array(this.length+h.length),this.mulTo(h,g)},n.prototype.mulf=function(h){var g=new n(null);return g.words=new Array(this.length+h.length),qe(this,h,g)},n.prototype.imul=function(h){return this.clone().mulTo(h,this)},n.prototype.imuln=function(h){r(typeof h=="number"),r(h<67108864);for(var g=0,c=0;c<this.length;c++){var o=(this.words[c]|0)*h,u=(o&67108863)+(g&67108863);g>>=26,g+=o/67108864|0,g+=u>>>26,this.words[c]=u&67108863}return g!==0&&(this.words[c]=g,this.length++),this.length=h===0?1:this.length,this},n.prototype.muln=function(h){return this.clone().imuln(h)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(h){var g=k(h);if(g.length===0)return new n(1);for(var c=this,o=0;o<g.length&&g[o]===0;o++,c=c.sqr());if(++o<g.length)for(var u=c.sqr();o<g.length;o++,u=u.sqr())g[o]!==0&&(c=c.mul(u));return c},n.prototype.iushln=function(h){r(typeof h=="number"&&h>=0);var g=h%26,c=(h-g)/26,o=67108863>>>26-g<<26-g,u;if(g!==0){var d=0;for(u=0;u<this.length;u++){var v=this.words[u]&o,p=(this.words[u]|0)-v<<g;this.words[u]=p|d,d=v>>>26-g}d&&(this.words[u]=d,this.length++)}if(c!==0){for(u=this.length-1;u>=0;u--)this.words[u+c]=this.words[u];for(u=0;u<c;u++)this.words[u]=0;this.length+=c}return this.strip()},n.prototype.ishln=function(h){return r(this.negative===0),this.iushln(h)},n.prototype.iushrn=function(h,g,c){r(typeof h=="number"&&h>=0);var o;g?o=(g-g%26)/26:o=0;var u=h%26,d=Math.min((h-u)/26,this.length),v=67108863^67108863>>>u<<u,p=c;if(o-=d,o=Math.max(0,o),p){for(var f=0;f<d;f++)p.words[f]=this.words[f];p.length=d}if(d!==0)if(this.length>d)for(this.length-=d,f=0;f<this.length;f++)this.words[f]=this.words[f+d];else this.words[0]=0,this.length=1;var m=0;for(f=this.length-1;f>=0&&(m!==0||f>=o);f--){var _=this.words[f]|0;this.words[f]=m<<26-u|_>>>u,m=_&v}return p&&m!==0&&(p.words[p.length++]=m),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.ishrn=function(h,g,c){return r(this.negative===0),this.iushrn(h,g,c)},n.prototype.shln=function(h){return this.clone().ishln(h)},n.prototype.ushln=function(h){return this.clone().iushln(h)},n.prototype.shrn=function(h){return this.clone().ishrn(h)},n.prototype.ushrn=function(h){return this.clone().iushrn(h)},n.prototype.testn=function(h){r(typeof h=="number"&&h>=0);var g=h%26,c=(h-g)/26,o=1<<g;if(this.length<=c)return!1;var u=this.words[c];return!!(u&o)},n.prototype.imaskn=function(h){r(typeof h=="number"&&h>=0);var g=h%26,c=(h-g)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=c)return this;if(g!==0&&c++,this.length=Math.min(c,this.length),g!==0){var o=67108863^67108863>>>g<<g;this.words[this.length-1]&=o}return this.length===0&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.maskn=function(h){return this.clone().imaskn(h)},n.prototype.iaddn=function(h){return r(typeof h=="number"),r(h<67108864),h<0?this.isubn(-h):this.negative!==0?this.length===1&&(this.words[0]|0)<h?(this.words[0]=h-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(h),this.negative=1,this):this._iaddn(h)},n.prototype._iaddn=function(h){this.words[0]+=h;for(var g=0;g<this.length&&this.words[g]>=67108864;g++)this.words[g]-=67108864,g===this.length-1?this.words[g+1]=1:this.words[g+1]++;return this.length=Math.max(this.length,g+1),this},n.prototype.isubn=function(h){if(r(typeof h=="number"),r(h<67108864),h<0)return this.iaddn(-h);if(this.negative!==0)return this.negative=0,this.iaddn(h),this.negative=1,this;if(this.words[0]-=h,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var g=0;g<this.length&&this.words[g]<0;g++)this.words[g]+=67108864,this.words[g+1]-=1;return this.strip()},n.prototype.addn=function(h){return this.clone().iaddn(h)},n.prototype.subn=function(h){return this.clone().isubn(h)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(h,g,c){var o=h.length+c,u;this._expand(o);var d,v=0;for(u=0;u<h.length;u++){d=(this.words[u+c]|0)+v;var p=(h.words[u]|0)*g;d-=p&67108863,v=(d>>26)-(p/67108864|0),this.words[u+c]=d&67108863}for(;u<this.length-c;u++)d=(this.words[u+c]|0)+v,v=d>>26,this.words[u+c]=d&67108863;if(v===0)return this.strip();for(r(v===-1),v=0,u=0;u<this.length;u++)d=-(this.words[u]|0)+v,v=d>>26,this.words[u]=d&67108863;return this.negative=1,this.strip()},n.prototype._wordDiv=function(h,g){var c=this.length-h.length,o=this.clone(),u=h,d=u.words[u.length-1]|0,v=this._countBits(d);c=26-v,c!==0&&(u=u.ushln(c),o.iushln(c),d=u.words[u.length-1]|0);var p=o.length-u.length,f;if(g!=="mod"){f=new n(null),f.length=p+1,f.words=new Array(f.length);for(var m=0;m<f.length;m++)f.words[m]=0}var _=o.clone()._ishlnsubmul(u,1,p);_.negative===0&&(o=_,f&&(f.words[p]=1));for(var l=p-1;l>=0;l--){var x=(o.words[u.length+l]|0)*67108864+(o.words[u.length+l-1]|0);for(x=Math.min(x/d|0,67108863),o._ishlnsubmul(u,x,l);o.negative!==0;)x--,o.negative=0,o._ishlnsubmul(u,1,l),o.isZero()||(o.negative^=1);f&&(f.words[l]=x)}return f&&f.strip(),o.strip(),g!=="div"&&c!==0&&o.iushrn(c),{div:f||null,mod:o}},n.prototype.divmod=function(h,g,c){if(r(!h.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var o,u,d;return this.negative!==0&&h.negative===0?(d=this.neg().divmod(h,g),g!=="mod"&&(o=d.div.neg()),g!=="div"&&(u=d.mod.neg(),c&&u.negative!==0&&u.iadd(h)),{div:o,mod:u}):this.negative===0&&h.negative!==0?(d=this.divmod(h.neg(),g),g!=="mod"&&(o=d.div.neg()),{div:o,mod:d.mod}):(this.negative&h.negative)!==0?(d=this.neg().divmod(h.neg(),g),g!=="div"&&(u=d.mod.neg(),c&&u.negative!==0&&u.isub(h)),{div:d.div,mod:u}):h.length>this.length||this.cmp(h)<0?{div:new n(0),mod:this}:h.length===1?g==="div"?{div:this.divn(h.words[0]),mod:null}:g==="mod"?{div:null,mod:new n(this.modn(h.words[0]))}:{div:this.divn(h.words[0]),mod:new n(this.modn(h.words[0]))}:this._wordDiv(h,g)},n.prototype.div=function(h){return this.divmod(h,"div",!1).div},n.prototype.mod=function(h){return this.divmod(h,"mod",!1).mod},n.prototype.umod=function(h){return this.divmod(h,"mod",!0).mod},n.prototype.divRound=function(h){var g=this.divmod(h);if(g.mod.isZero())return g.div;var c=g.div.negative!==0?g.mod.isub(h):g.mod,o=h.ushrn(1),u=h.andln(1),d=c.cmp(o);return d<0||u===1&&d===0?g.div:g.div.negative!==0?g.div.isubn(1):g.div.iaddn(1)},n.prototype.modn=function(h){r(h<=67108863);for(var g=(1<<26)%h,c=0,o=this.length-1;o>=0;o--)c=(g*c+(this.words[o]|0))%h;return c},n.prototype.idivn=function(h){r(h<=67108863);for(var g=0,c=this.length-1;c>=0;c--){var o=(this.words[c]|0)+g*67108864;this.words[c]=o/h|0,g=o%h}return this.strip()},n.prototype.divn=function(h){return this.clone().idivn(h)},n.prototype.egcd=function(h){r(h.negative===0),r(!h.isZero());var g=this,c=h.clone();g.negative!==0?g=g.umod(h):g=g.clone();for(var o=new n(1),u=new n(0),d=new n(0),v=new n(1),p=0;g.isEven()&&c.isEven();)g.iushrn(1),c.iushrn(1),++p;for(var f=c.clone(),m=g.clone();!g.isZero();){for(var _=0,l=1;(g.words[0]&l)===0&&_<26;++_,l<<=1);if(_>0)for(g.iushrn(_);_-- >0;)(o.isOdd()||u.isOdd())&&(o.iadd(f),u.isub(m)),o.iushrn(1),u.iushrn(1);for(var x=0,I=1;(c.words[0]&I)===0&&x<26;++x,I<<=1);if(x>0)for(c.iushrn(x);x-- >0;)(d.isOdd()||v.isOdd())&&(d.iadd(f),v.isub(m)),d.iushrn(1),v.iushrn(1);g.cmp(c)>=0?(g.isub(c),o.isub(d),u.isub(v)):(c.isub(g),d.isub(o),v.isub(u))}return{a:d,b:v,gcd:c.iushln(p)}},n.prototype._invmp=function(h){r(h.negative===0),r(!h.isZero());var g=this,c=h.clone();g.negative!==0?g=g.umod(h):g=g.clone();for(var o=new n(1),u=new n(0),d=c.clone();g.cmpn(1)>0&&c.cmpn(1)>0;){for(var v=0,p=1;(g.words[0]&p)===0&&v<26;++v,p<<=1);if(v>0)for(g.iushrn(v);v-- >0;)o.isOdd()&&o.iadd(d),o.iushrn(1);for(var f=0,m=1;(c.words[0]&m)===0&&f<26;++f,m<<=1);if(f>0)for(c.iushrn(f);f-- >0;)u.isOdd()&&u.iadd(d),u.iushrn(1);g.cmp(c)>=0?(g.isub(c),o.isub(u)):(c.isub(g),u.isub(o))}var _;return g.cmpn(1)===0?_=o:_=u,_.cmpn(0)<0&&_.iadd(h),_},n.prototype.gcd=function(h){if(this.isZero())return h.abs();if(h.isZero())return this.abs();var g=this.clone(),c=h.clone();g.negative=0,c.negative=0;for(var o=0;g.isEven()&&c.isEven();o++)g.iushrn(1),c.iushrn(1);do{for(;g.isEven();)g.iushrn(1);for(;c.isEven();)c.iushrn(1);var u=g.cmp(c);if(u<0){var d=g;g=c,c=d}else if(u===0||c.cmpn(1)===0)break;g.isub(c)}while(!0);return c.iushln(o)},n.prototype.invm=function(h){return this.egcd(h).a.umod(h)},n.prototype.isEven=function(){return(this.words[0]&1)===0},n.prototype.isOdd=function(){return(this.words[0]&1)===1},n.prototype.andln=function(h){return this.words[0]&h},n.prototype.bincn=function(h){r(typeof h=="number");var g=h%26,c=(h-g)/26,o=1<<g;if(this.length<=c)return this._expand(c+1),this.words[c]|=o,this;for(var u=o,d=c;u!==0&&d<this.length;d++){var v=this.words[d]|0;v+=u,u=v>>>26,v&=67108863,this.words[d]=v}return u!==0&&(this.words[d]=u,this.length++),this},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.prototype.cmpn=function(h){var g=h<0;if(this.negative!==0&&!g)return-1;if(this.negative===0&&g)return 1;this.strip();var c;if(this.length>1)c=1;else{g&&(h=-h),r(h<=67108863,"Number is too big");var o=this.words[0]|0;c=o===h?0:o<h?-1:1}return this.negative!==0?-c|0:c},n.prototype.cmp=function(h){if(this.negative!==0&&h.negative===0)return-1;if(this.negative===0&&h.negative!==0)return 1;var g=this.ucmp(h);return this.negative!==0?-g|0:g},n.prototype.ucmp=function(h){if(this.length>h.length)return 1;if(this.length<h.length)return-1;for(var g=0,c=this.length-1;c>=0;c--){var o=this.words[c]|0,u=h.words[c]|0;if(o!==u){o<u?g=-1:o>u&&(g=1);break}}return g},n.prototype.gtn=function(h){return this.cmpn(h)===1},n.prototype.gt=function(h){return this.cmp(h)===1},n.prototype.gten=function(h){return this.cmpn(h)>=0},n.prototype.gte=function(h){return this.cmp(h)>=0},n.prototype.ltn=function(h){return this.cmpn(h)===-1},n.prototype.lt=function(h){return this.cmp(h)===-1},n.prototype.lten=function(h){return this.cmpn(h)<=0},n.prototype.lte=function(h){return this.cmp(h)<=0},n.prototype.eqn=function(h){return this.cmpn(h)===0},n.prototype.eq=function(h){return this.cmp(h)===0},n.red=function(h){return new Ce(h)},n.prototype.toRed=function(h){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),h.convertTo(this)._forceRed(h)},n.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(h){return this.red=h,this},n.prototype.forceRed=function(h){return r(!this.red,"Already a number in reduction context"),this._forceRed(h)},n.prototype.redAdd=function(h){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,h)},n.prototype.redIAdd=function(h){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,h)},n.prototype.redSub=function(h){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,h)},n.prototype.redISub=function(h){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,h)},n.prototype.redShl=function(h){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,h)},n.prototype.redMul=function(h){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,h),this.red.mul(this,h)},n.prototype.redIMul=function(h){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,h),this.red.imul(this,h)},n.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(h){return r(this.red&&!h.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,h)};var Ee={k256:null,p224:null,p192:null,p25519:null};function Fe(E,h){this.name=E,this.p=new n(h,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Fe.prototype._tmp=function(){var h=new n(null);return h.words=new Array(Math.ceil(this.n/13)),h},Fe.prototype.ireduce=function(h){var g=h,c;do this.split(g,this.tmp),g=this.imulK(g),g=g.iadd(this.tmp),c=g.bitLength();while(c>this.n);var o=c<this.n?-1:g.ucmp(this.p);return o===0?(g.words[0]=0,g.length=1):o>0?g.isub(this.p):g.strip!==void 0?g.strip():g._strip(),g},Fe.prototype.split=function(h,g){h.iushrn(this.n,0,g)},Fe.prototype.imulK=function(h){return h.imul(this.k)};function je(){Fe.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(je,Fe),je.prototype.split=function(h,g){for(var c=4194303,o=Math.min(h.length,9),u=0;u<o;u++)g.words[u]=h.words[u];if(g.length=o,h.length<=9){h.words[0]=0,h.length=1;return}var d=h.words[9];for(g.words[g.length++]=d&c,u=10;u<h.length;u++){var v=h.words[u]|0;h.words[u-10]=(v&c)<<4|d>>>22,d=v}d>>>=22,h.words[u-10]=d,d===0&&h.length>10?h.length-=10:h.length-=9},je.prototype.imulK=function(h){h.words[h.length]=0,h.words[h.length+1]=0,h.length+=2;for(var g=0,c=0;c<h.length;c++){var o=h.words[c]|0;g+=o*977,h.words[c]=g&67108863,g=o*64+(g/67108864|0)}return h.words[h.length-1]===0&&(h.length--,h.words[h.length-1]===0&&h.length--),h};function nr(){Fe.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i(nr,Fe);function Ge(){Fe.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i(Ge,Fe);function Tt(){Fe.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i(Tt,Fe),Tt.prototype.imulK=function(h){for(var g=0,c=0;c<h.length;c++){var o=(h.words[c]|0)*19+g,u=o&67108863;o>>>=26,h.words[c]=u,g=o}return g!==0&&(h.words[h.length++]=g),h},n._prime=function(h){if(Ee[h])return Ee[h];var g;if(h==="k256")g=new je;else if(h==="p224")g=new nr;else if(h==="p192")g=new Ge;else if(h==="p25519")g=new Tt;else throw new Error("Unknown prime "+h);return Ee[h]=g,g};function Ce(E){if(typeof E=="string"){var h=n._prime(E);this.m=h.p,this.prime=h}else r(E.gtn(1),"modulus must be greater than 1"),this.m=E,this.prime=null}Ce.prototype._verify1=function(h){r(h.negative===0,"red works only with positives"),r(h.red,"red works only with red numbers")},Ce.prototype._verify2=function(h,g){r((h.negative|g.negative)===0,"red works only with positives"),r(h.red&&h.red===g.red,"red works only with red numbers")},Ce.prototype.imod=function(h){return this.prime?this.prime.ireduce(h)._forceRed(this):h.umod(this.m)._forceRed(this)},Ce.prototype.neg=function(h){return h.isZero()?h.clone():this.m.sub(h)._forceRed(this)},Ce.prototype.add=function(h,g){this._verify2(h,g);var c=h.add(g);return c.cmp(this.m)>=0&&c.isub(this.m),c._forceRed(this)},Ce.prototype.iadd=function(h,g){this._verify2(h,g);var c=h.iadd(g);return c.cmp(this.m)>=0&&c.isub(this.m),c},Ce.prototype.sub=function(h,g){this._verify2(h,g);var c=h.sub(g);return c.cmpn(0)<0&&c.iadd(this.m),c._forceRed(this)},Ce.prototype.isub=function(h,g){this._verify2(h,g);var c=h.isub(g);return c.cmpn(0)<0&&c.iadd(this.m),c},Ce.prototype.shl=function(h,g){return this._verify1(h),this.imod(h.ushln(g))},Ce.prototype.imul=function(h,g){return this._verify2(h,g),this.imod(h.imul(g))},Ce.prototype.mul=function(h,g){return this._verify2(h,g),this.imod(h.mul(g))},Ce.prototype.isqr=function(h){return this.imul(h,h.clone())},Ce.prototype.sqr=function(h){return this.mul(h,h)},Ce.prototype.sqrt=function(h){if(h.isZero())return h.clone();var g=this.m.andln(3);if(r(g%2===1),g===3){var c=this.m.add(new n(1)).iushrn(2);return this.pow(h,c)}for(var o=this.m.subn(1),u=0;!o.isZero()&&o.andln(1)===0;)u++,o.iushrn(1);r(!o.isZero());var d=new n(1).toRed(this),v=d.redNeg(),p=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new n(2*f*f).toRed(this);this.pow(f,p).cmp(v)!==0;)f.redIAdd(v);for(var m=this.pow(f,o),_=this.pow(h,o.addn(1).iushrn(1)),l=this.pow(h,o),x=u;l.cmp(d)!==0;){for(var I=l,D=0;I.cmp(d)!==0;D++)I=I.redSqr();r(D<x);var O=this.pow(m,new n(1).iushln(x-D-1));_=_.redMul(O),m=O.redSqr(),l=l.redMul(m),x=D}return _},Ce.prototype.invm=function(h){var g=h._invmp(this.m);return g.negative!==0?(g.negative=0,this.imod(g).redNeg()):this.imod(g)},Ce.prototype.pow=function(h,g){if(g.isZero())return new n(1).toRed(this);if(g.cmpn(1)===0)return h.clone();var c=4,o=new Array(1<<c);o[0]=new n(1).toRed(this),o[1]=h;for(var u=2;u<o.length;u++)o[u]=this.mul(o[u-1],h);var d=o[0],v=0,p=0,f=g.bitLength()%26;for(f===0&&(f=26),u=g.length-1;u>=0;u--){for(var m=g.words[u],_=f-1;_>=0;_--){var l=m>>_&1;if(d!==o[0]&&(d=this.sqr(d)),l===0&&v===0){p=0;continue}v<<=1,v|=l,p++,!(p!==c&&(u!==0||_!==0))&&(d=this.mul(d,o[v]),p=0,v=0)}f=26}return d},Ce.prototype.convertTo=function(h){var g=h.umod(this.m);return g===h?g.clone():g},Ce.prototype.convertFrom=function(h){var g=h.clone();return g.red=null,g},n.mont=function(h){return new st(h)};function st(E){Ce.call(this,E),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new n(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)}i(st,Ce),st.prototype.convertTo=function(h){return this.imod(h.ushln(this.shift))},st.prototype.convertFrom=function(h){var g=this.imod(h.mul(this.rinv));return g.red=null,g},st.prototype.imul=function(h,g){if(h.isZero()||g.isZero())return h.words[0]=0,h.length=1,h;var c=h.imul(g),o=c.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=c.isub(o).iushrn(this.shift),d=u;return u.cmp(this.m)>=0?d=u.isub(this.m):u.cmpn(0)<0&&(d=u.iadd(this.m)),d._forceRed(this)},st.prototype.mul=function(h,g){if(h.isZero()||g.isZero())return new n(0)._forceRed(this);var c=h.mul(g),o=c.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=c.isub(o).iushrn(this.shift),d=u;return u.cmp(this.m)>=0?d=u.isub(this.m):u.cmpn(0)<0&&(d=u.iadd(this.m)),d._forceRed(this)},st.prototype.invm=function(h){var g=this.imod(h._invmp(this.m).mul(this.r2));return g._forceRed(this)}})(typeof Pu>"u"||Pu,e1)});var t1=B((e9,Nu)=>{b();var Uu;Nu.exports=function(e){return Uu||(Uu=new yr(null)),Uu.generate(e)};function yr(t){this.rand=t}Nu.exports.Rand=yr;yr.prototype.generate=function(e){return this._rand(e)};yr.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var r=new Uint8Array(e),i=0;i<r.length;i++)r[i]=this.rand.getByte();return r};if(typeof self=="object")self.crypto&&self.crypto.getRandomValues?yr.prototype._rand=function(e){var r=new Uint8Array(e);return self.crypto.getRandomValues(r),r}:self.msCrypto&&self.msCrypto.getRandomValues?yr.prototype._rand=function(e){var r=new Uint8Array(e);return self.msCrypto.getRandomValues(r),r}:typeof window=="object"&&(yr.prototype._rand=function(){throw new Error("Not implemented yet")});else try{if(Lu=Fu(),typeof Lu.randomBytes!="function")throw new Error("Not supported");yr.prototype._rand=function(e){return Lu.randomBytes(e)}}catch{}var Lu});var ju=B((r9,r1)=>{b();var si=vr(),w4=t1();function ui(t){this.rand=t||new w4.Rand}r1.exports=ui;ui.create=function(e){return new ui(e)};ui.prototype._randbelow=function(e){var r=e.bitLength(),i=Math.ceil(r/8);do var n=new si(this.rand.generate(i));while(n.cmp(e)>=0);return n};ui.prototype._randrange=function(e,r){var i=r.sub(e);return e.add(this._randbelow(i))};ui.prototype.test=function(e,r,i){var n=e.bitLength(),a=si.mont(e),s=new si(1).toRed(a);r||(r=Math.max(1,n/48|0));for(var y=e.subn(1),w=0;!y.testn(w);w++);for(var S=e.shrn(w),A=y.toRed(a),q=!0;r>0;r--){var k=this._randrange(new si(2),y);i&&i(k);var C=k.toRed(a).redPow(S);if(!(C.cmp(s)===0||C.cmp(A)===0)){for(var P=1;P<w;P++){if(C=C.redSqr(),C.cmp(s)===0)return!1;if(C.cmp(A)===0)break}if(P===w)return!1}}return q};ui.prototype.getDivisor=function(e,r){var i=e.bitLength(),n=si.mont(e),a=new si(1).toRed(n);r||(r=Math.max(1,i/48|0));for(var s=e.subn(1),y=0;!s.testn(y);y++);for(var w=e.shrn(y),S=s.toRed(n);r>0;r--){var A=this._randrange(new si(2),s),q=e.gcd(A);if(q.cmpn(1)!==0)return q;var k=A.toRed(n).redPow(w);if(!(k.cmp(a)===0||k.cmp(S)===0)){for(var C=1;C<y;C++){if(k=k.redSqr(),k.cmp(a)===0)return k.fromRed().subn(1).gcd(e);if(k.cmp(S)===0)break}if(C===y)return k=k.redSqr(),k.fromRed().subn(1).gcd(e)}}return!1}});var Vu=B((s9,o1)=>{b();var _4=Ur();o1.exports=Gu;Gu.simpleSieve=Wu;Gu.fermatTest=$u;var Ye=vr(),x4=new Ye(24),M4=ju(),i1=new M4,E4=new Ye(1),Ku=new Ye(2),S4=new Ye(5),n9=new Ye(16),o9=new Ye(8),B4=new Ye(10),A4=new Ye(3),a9=new Ye(7),R4=new Ye(11),n1=new Ye(4),f9=new Ye(12),Hu=null;function q4(){if(Hu!==null)return Hu;var t=1048576,e=[];e[0]=2;for(var r=1,i=3;i<t;i+=2){for(var n=Math.ceil(Math.sqrt(i)),a=0;a<r&&e[a]<=n&&i%e[a]!==0;a++);r!==a&&e[a]<=n||(e[r++]=i)}return Hu=e,e}function Wu(t){for(var e=q4(),r=0;r<e.length;r++)if(t.modn(e[r])===0)return t.cmpn(e[r])===0;return!0}function $u(t){var e=Ye.mont(t);return Ku.toRed(e).redPow(t.subn(1)).fromRed().cmpn(1)===0}function Gu(t,e){if(t<16)return e===2||e===5?new Ye([140,123]):new Ye([140,39]);e=new Ye(e);for(var r,i;;){for(r=new Ye(_4(Math.ceil(t/8)));r.bitLength()>t;)r.ishrn(1);if(r.isEven()&&r.iadd(E4),r.testn(1)||r.iadd(Ku),e.cmp(Ku)){if(!e.cmp(S4))for(;r.mod(B4).cmp(A4);)r.iadd(n1)}else for(;r.mod(x4).cmp(R4);)r.iadd(n1);if(i=r.shrn(1),Wu(i)&&Wu(r)&&$u(i)&&$u(r)&&i1.test(i)&&i1.test(r))return r}}});var a1=B((h9,T4)=>{T4.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}});var h1=B((l9,u1)=>{b();var yt=vr(),k4=ju(),f1=new k4,I4=new yt(24),O4=new yt(11),C4=new yt(10),D4=new yt(3),P4=new yt(7),s1=Vu(),U4=Ur();u1.exports=rr;function L4(t,e){return e=e||"utf8",R.Buffer.isBuffer(t)||(t=new R.Buffer(t,e)),this._pub=new yt(t),this}function N4(t,e){return e=e||"utf8",R.Buffer.isBuffer(t)||(t=new R.Buffer(t,e)),this._priv=new yt(t),this}var Ya={};function F4(t,e){var r=e.toString("hex"),i=[r,t.toString(16)].join("_");if(i in Ya)return Ya[i];var n=0;if(t.isEven()||!s1.simpleSieve||!s1.fermatTest(t)||!f1.test(t))return n+=1,r==="02"||r==="05"?n+=8:n+=4,Ya[i]=n,n;f1.test(t.shrn(1))||(n+=2);var a;switch(r){case"02":t.mod(I4).cmp(O4)&&(n+=8);break;case"05":a=t.mod(C4),a.cmp(D4)&&a.cmp(P4)&&(n+=8);break;default:n+=4}return Ya[i]=n,n}function rr(t,e,r){this.setGenerator(e),this.__prime=new yt(t),this._prime=yt.mont(this.__prime),this._primeLen=t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=L4,this.setPrivateKey=N4):this._primeCode=8}Object.defineProperty(rr.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=F4(this.__prime,this.__gen)),this._primeCode}});rr.prototype.generateKeys=function(){return this._priv||(this._priv=new yt(U4(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()};rr.prototype.computeSecret=function(t){t=new yt(t),t=t.toRed(this._prime);var e=t.redPow(this._priv).fromRed(),r=new R.Buffer(e.toArray()),i=this.getPrime();if(r.length<i.length){var n=new R.Buffer(i.length-r.length);n.fill(0),r=R.Buffer.concat([n,r])}return r};rr.prototype.getPublicKey=function(e){return Xa(this._pub,e)};rr.prototype.getPrivateKey=function(e){return Xa(this._priv,e)};rr.prototype.getPrime=function(t){return Xa(this.__prime,t)};rr.prototype.getGenerator=function(t){return Xa(this._gen,t)};rr.prototype.setGenerator=function(t,e){return e=e||"utf8",R.Buffer.isBuffer(t)||(t=new R.Buffer(t,e)),this.__gen=t,this._gen=new yt(t),this};function Xa(t,e){var r=new R.Buffer(t.toArray());return e?r.toString(e):r}});var d1=B(Gi=>{b();var j4=Vu(),l1=a1(),zu=h1();function H4(t){var e=new R.Buffer(l1[t].prime,"hex"),r=new R.Buffer(l1[t].gen,"hex");return new zu(e,r)}var K4={binary:!0,hex:!0,base64:!0};function c1(t,e,r,i){return R.Buffer.isBuffer(e)||K4[e]===void 0?c1(t,"binary",e,r):(e=e||"binary",i=i||"binary",r=r||new R.Buffer([2]),R.Buffer.isBuffer(r)||(r=new R.Buffer(r,i)),typeof t=="number"?new zu(j4(t,r),r,!0):(R.Buffer.isBuffer(t)||(t=new R.Buffer(t,e)),new zu(t,r,!0)))}Gi.DiffieHellmanGroup=Gi.createDiffieHellmanGroup=Gi.getDiffieHellman=H4;Gi.createDiffieHellman=Gi.DiffieHellman=c1});var p1=B((exports,module)=>{b();var indexOf=function(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0;r<t.length;r++)if(t[r]===e)return r;return-1},Object_keys=function(t){if(Object.keys)return Object.keys(t);var e=[];for(var r in t)e.push(r);return e},forEach=function(t,e){if(t.forEach)return t.forEach(e);for(var r=0;r<t.length;r++)e(t[r],r,t)},defineProp=(function(){try{return Object.defineProperty({},"_",{}),function(t,e,r){Object.defineProperty(t,e,{writable:!0,enumerable:!1,configurable:!0,value:r})}}catch{return function(e,r,i){e[r]=i}}})(),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(t){if(!(t instanceof Context))throw new TypeError("needs a 'context' argument.");var e=document.createElement("iframe");e.style||(e.style={}),e.style.display="none",document.body.appendChild(e);var r=e.contentWindow,i=r.eval,n=r.execScript;!i&&n&&(n.call(r,"null"),i=r.eval),forEach(Object_keys(t),function(y){r[y]=t[y]}),forEach(globals,function(y){t[y]&&(r[y]=t[y])});var a=Object_keys(r),s=i.call(r,this.code);return forEach(Object_keys(r),function(y){(y in t||indexOf(a,y)===-1)&&(t[y]=r[y])}),forEach(globals,function(y){y in t||defineProp(t,y,r[y])}),document.body.removeChild(e),s};Script.prototype.runInThisContext=function(){return eval(this.code)};Script.prototype.runInNewContext=function(t){var e=Script.createContext(t),r=this.runInContext(e);return t&&forEach(Object_keys(e),function(i){t[i]=e[i]}),r};forEach(Object_keys(Script.prototype),function(t){exports[t]=Script[t]=function(e){var r=Script(e);return r[t].apply(r,[].slice.call(arguments,1))}});exports.isContext=function(t){return t instanceof Context};exports.createScript=function(t){return exports.Script(t)};exports.createContext=Script.createContext=function(t){var e=new Context;return typeof t=="object"&&forEach(Object_keys(t),function(r){e[r]=t[r]}),e}});var g1=B(y1=>{b();var v1=zi(),W4=De(),$4=y1;$4.define=function(e,r){return new Vi(e,r)};function Vi(t,e){this.name=t,this.body=e,this.decoders={},this.encoders={}}Vi.prototype._createNamed=function(e){var r;try{r=p1().runInThisContext("(function "+this.name+`(entity) {
|
|
11
|
+
`)+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}qe.types=xc();function Ac(t){return Array.isArray(t)}qe.isArray=Ac;function rs(t){return typeof t=="boolean"}qe.isBoolean=rs;function Vo(t){return t===null}qe.isNull=Vo;function Jw(t){return t==null}qe.isNullOrUndefined=Jw;function Rc(t){return typeof t=="number"}qe.isNumber=Rc;function zo(t){return typeof t=="string"}qe.isString=zo;function Qw(t){return typeof t=="symbol"}qe.isSymbol=Qw;function Kr(t){return t===void 0}qe.isUndefined=Kr;function xn(t){return Bi(t)&&is(t)==="[object RegExp]"}qe.isRegExp=xn;qe.types.isRegExp=xn;function Bi(t){return typeof t=="object"&&t!==null}qe.isObject=Bi;function Go(t){return Bi(t)&&is(t)==="[object Date]"}qe.isDate=Go;qe.types.isDate=Go;function Mn(t){return Bi(t)&&(is(t)==="[object Error]"||t instanceof Error)}qe.isError=Mn;qe.types.isNativeError=Mn;function Wo(t){return typeof t=="function"}qe.isFunction=Wo;function e2(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t>"u"}qe.isPrimitive=e2;qe.isBuffer=Ec();function is(t){return Object.prototype.toString.call(t)}function es(t){return t<10?"0"+t.toString(10):t.toString(10)}var t2=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function r2(){var t=new Date,e=[es(t.getHours()),es(t.getMinutes()),es(t.getSeconds())].join(":");return[t.getDate(),t2[t.getMonth()],e].join(" ")}qe.log=function(){console.log("%s - %s",r2(),qe.format.apply(qe,arguments))};qe.inherits=K();qe._extend=function(t,e){if(!e||!Bi(e))return t;for(var r=Object.keys(e),i=r.length;i--;)t[r[i]]=e[r[i]];return t};function qc(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var Hr=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;qe.promisify=function(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');if(Hr&&e[Hr]){var r=e[Hr];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,Hr,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var i,n,a=new Promise(function(w,S){i=w,n=S}),s=[],y=0;y<arguments.length;y++)s.push(arguments[y]);s.push(function(w,S){w?n(w):i(S)});try{e.apply(this,s)}catch(w){n(w)}return a}return Object.setPrototypeOf(r,Object.getPrototypeOf(e)),Hr&&Object.defineProperty(r,Hr,{value:r,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(r,Sc(e))};qe.promisify.custom=Hr;function i2(t,e){if(!t){var r=new Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}function n2(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');function e(){for(var r=[],i=0;i<arguments.length;i++)r.push(arguments[i]);var n=r.pop();if(typeof n!="function")throw new TypeError("The last argument must be of type Function");var a=this,s=function(){return n.apply(a,arguments)};t.apply(this,r).then(function(y){M.default.nextTick(s.bind(null,null,y))},function(y){M.default.nextTick(i2.bind(null,y,s))})}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),Object.defineProperties(e,Sc(t)),e}qe.callbackify=n2});var Dc=B((M5,Oc)=>{"use strict";b();function Tc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function kc(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Tc(Object(r),!0).forEach(function(i){o2(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Tc(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function o2(t,e,r){return e=Cc(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function a2(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ic(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Cc(i.key),i)}}function f2(t,e,r){return e&&Ic(t.prototype,e),r&&Ic(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Cc(t){var e=s2(t,"string");return typeof e=="symbol"?e:String(e)}function s2(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var u2=rt(),Zo=u2.Buffer,h2=En(),ns=h2.inspect,l2=ns&&ns.custom||"inspect";function c2(t,e,r){Zo.prototype.copy.call(t,e,r)}Oc.exports=(function(){function t(){a2(this,t),this.head=null,this.tail=null,this.length=0}return f2(t,[{key:"push",value:function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length}},{key:"unshift",value:function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var i=this.head,n=""+i.data;i=i.next;)n+=r+i.data;return n}},{key:"concat",value:function(r){if(this.length===0)return Zo.alloc(0);for(var i=Zo.allocUnsafe(r>>>0),n=this.head,a=0;n;)c2(n.data,i,a),a+=n.data.length,n=n.next;return i}},{key:"consume",value:function(r,i){var n;return r<this.head.data.length?(n=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?n=this.shift():n=i?this._getString(r):this._getBuffer(r),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var i=this.head,n=1,a=i.data;for(r-=a.length;i=i.next;){var s=i.data,y=r>s.length?s.length:r;if(y===s.length?a+=s:a+=s.slice(0,r),r-=y,r===0){y===s.length?(++n,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=s.slice(y));break}++n}return this.length-=n,a}},{key:"_getBuffer",value:function(r){var i=Zo.allocUnsafe(r),n=this.head,a=1;for(n.data.copy(i),r-=n.data.length;n=n.next;){var s=n.data,y=r>s.length?s.length:r;if(s.copy(i,i.length-r,0,y),r-=y,r===0){y===s.length?(++a,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=s.slice(y));break}++a}return this.length-=a,i}},{key:l2,value:function(r,i){return ns(this,kc(kc({},i),{},{depth:0,customInspect:!1}))}}]),t})()});var as=B((S5,Uc)=>{"use strict";b();function d2(t,e){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,M.default.nextTick(os,this,t)):M.default.nextTick(os,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(a){!e&&a?r._writableState?r._writableState.errorEmitted?M.default.nextTick(Yo,r):(r._writableState.errorEmitted=!0,M.default.nextTick(Pc,r,a)):M.default.nextTick(Pc,r,a):e?(M.default.nextTick(Yo,r),e(a)):M.default.nextTick(Yo,r)}),this)}function Pc(t,e){os(t,e),Yo(t)}function Yo(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function p2(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function os(t,e){t.emit("error",e)}function v2(t,e){var r=t._readableState,i=t._writableState;r&&r.autoDestroy||i&&i.autoDestroy?t.destroy(e):t.emit("error",e)}Uc.exports={destroy:d2,undestroy:p2,errorOrDestroy:v2}});var Wr=B((A5,Fc)=>{"use strict";b();function y2(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var Nc={};function lt(t,e,r){r||(r=Error);function i(a,s,y){return typeof e=="string"?e:e(a,s,y)}var n=(function(a){y2(s,a);function s(y,w,S){return a.call(this,i(y,w,S))||this}return s})(r);n.prototype.name=r.name,n.prototype.code=t,Nc[t]=n}function Lc(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map(function(i){return String(i)}),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:r===2?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}else return"of ".concat(e," ").concat(String(t))}function g2(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function m2(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function b2(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}lt("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);lt("ERR_INVALID_ARG_TYPE",function(t,e,r){var i;typeof e=="string"&&g2(e,"not ")?(i="must not be",e=e.replace(/^not /,"")):i="must be";var n;if(m2(t," argument"))n="The ".concat(t," ").concat(i," ").concat(Lc(e,"type"));else{var a=b2(t,".")?"property":"argument";n='The "'.concat(t,'" ').concat(a," ").concat(i," ").concat(Lc(e,"type"))}return n+=". Received type ".concat(typeof r),n},TypeError);lt("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");lt("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});lt("ERR_STREAM_PREMATURE_CLOSE","Premature close");lt("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});lt("ERR_MULTIPLE_CALLBACK","Callback called multiple times");lt("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");lt("ERR_STREAM_WRITE_AFTER_END","write after end");lt("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);lt("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);lt("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");Fc.exports.codes=Nc});var fs=B((q5,jc)=>{"use strict";b();var w2=Wr().codes.ERR_INVALID_OPT_VALUE;function _2(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function x2(t,e,r,i){var n=_2(e,i,r);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var a=i?r:"highWaterMark";throw new w2(a,n)}return Math.floor(n)}return t.objectMode?16:16*1024}jc.exports={getHighWaterMark:x2}});var us=B((k5,Hc)=>{b();Hc.exports=M2;function M2(t,e){if(ss("noDeprecation"))return t;var r=!1;function i(){if(!r){if(ss("throwDeprecation"))throw new Error(e);ss("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}return i}function ss(t){try{if(!globalThis.localStorage)return!1}catch{return!1}var e=globalThis.localStorage[t];return e==null?!1:String(e).toLowerCase()==="true"}});var cs=B((C5,zc)=>{"use strict";b();zc.exports=Ne;function Wc(t){var e=this;this.next=null,this.entry=null,this.finish=function(){Y2(e,t)}}var Ai;Ne.WritableState=Bn;var E2={deprecate:us()},$c=Ef(),Jo=rt().Buffer,S2=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function B2(t){return Jo.from(t)}function A2(t){return Jo.isBuffer(t)||t instanceof S2}var ls=as(),R2=fs(),q2=R2.getHighWaterMark,fr=Wr().codes,T2=fr.ERR_INVALID_ARG_TYPE,k2=fr.ERR_METHOD_NOT_IMPLEMENTED,I2=fr.ERR_MULTIPLE_CALLBACK,C2=fr.ERR_STREAM_CANNOT_PIPE,O2=fr.ERR_STREAM_DESTROYED,D2=fr.ERR_STREAM_NULL_VALUES,P2=fr.ERR_STREAM_WRITE_AFTER_END,U2=fr.ERR_UNKNOWN_ENCODING,Ri=ls.errorOrDestroy;K()(Ne,$c);function L2(){}function Bn(t,e,r){Ai=Ai||$r(),t=t||{},typeof r!="boolean"&&(r=e instanceof Ai),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=q2(this,t,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=t.decodeStrings===!1;this.decodeStrings=!i,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(n){$2(e,n)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Wc(this)}Bn.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(Bn.prototype,"buffer",{get:E2.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Xo;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Xo=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ne,Symbol.hasInstance,{value:function(e){return Xo.call(this,e)?!0:this!==Ne?!1:e&&e._writableState instanceof Bn}})):Xo=function(e){return e instanceof this};function Ne(t){Ai=Ai||$r();var e=this instanceof Ai;if(!e&&!Xo.call(Ne,this))return new Ne(t);this._writableState=new Bn(t,this,e),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),$c.call(this)}Ne.prototype.pipe=function(){Ri(this,new C2)};function N2(t,e){var r=new P2;Ri(t,r),M.default.nextTick(e,r)}function F2(t,e,r,i){var n;return r===null?n=new D2:typeof r!="string"&&!e.objectMode&&(n=new T2("chunk",["string","Buffer"],r)),n?(Ri(t,n),M.default.nextTick(i,n),!1):!0}Ne.prototype.write=function(t,e,r){var i=this._writableState,n=!1,a=!i.objectMode&&A2(t);return a&&!Jo.isBuffer(t)&&(t=B2(t)),typeof e=="function"&&(r=e,e=null),a?e="buffer":e||(e=i.defaultEncoding),typeof r!="function"&&(r=L2),i.ending?N2(this,r):(a||F2(this,i,t,r))&&(i.pendingcb++,n=H2(this,i,a,t,e,r)),n};Ne.prototype.cork=function(){this._writableState.corked++};Ne.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&Gc(this,t))};Ne.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new U2(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(Ne.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function j2(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=Jo.from(e,r)),e}Object.defineProperty(Ne.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function H2(t,e,r,i,n,a){if(!r){var s=j2(e,i,n);i!==s&&(r=!0,n="buffer",i=s)}var y=e.objectMode?1:i.length;e.length+=y;var w=e.length<e.highWaterMark;if(w||(e.needDrain=!0),e.writing||e.corked){var S=e.lastBufferedRequest;e.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:a,next:null},S?S.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else hs(t,e,!1,y,i,n,a);return w}function hs(t,e,r,i,n,a,s){e.writelen=i,e.writecb=s,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new O2("write")):r?t._writev(n,e.onwrite):t._write(n,a,e.onwrite),e.sync=!1}function K2(t,e,r,i,n){--e.pendingcb,r?(M.default.nextTick(n,i),M.default.nextTick(Sn,t,e),t._writableState.errorEmitted=!0,Ri(t,i)):(n(i),t._writableState.errorEmitted=!0,Ri(t,i),Sn(t,e))}function W2(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function $2(t,e){var r=t._writableState,i=r.sync,n=r.writecb;if(typeof n!="function")throw new I2;if(W2(r),e)K2(t,r,i,e,n);else{var a=Vc(r)||t.destroyed;!a&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Gc(t,r),i?M.default.nextTick(Kc,t,r,a,n):Kc(t,r,a,n)}}function Kc(t,e,r,i){r||G2(t,e),e.pendingcb--,i(),Sn(t,e)}function G2(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function Gc(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var i=e.bufferedRequestCount,n=new Array(i),a=e.corkedRequestsFree;a.entry=r;for(var s=0,y=!0;r;)n[s]=r,r.isBuf||(y=!1),r=r.next,s+=1;n.allBuffers=y,hs(t,e,!0,e.length,n,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new Wc(e),e.bufferedRequestCount=0}else{for(;r;){var w=r.chunk,S=r.encoding,A=r.callback,q=e.objectMode?1:w.length;if(hs(t,e,!1,q,w,S,A),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}Ne.prototype._write=function(t,e,r){r(new k2("_write()"))};Ne.prototype._writev=null;Ne.prototype.end=function(t,e,r){var i=this._writableState;return typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),t!=null&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||Z2(this,i,r),this};Object.defineProperty(Ne.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Vc(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function V2(t,e){t._final(function(r){e.pendingcb--,r&&Ri(t,r),e.prefinished=!0,t.emit("prefinish"),Sn(t,e)})}function z2(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,M.default.nextTick(V2,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function Sn(t,e){var r=Vc(e);if(r&&(z2(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var i=t._readableState;(!i||i.autoDestroy&&i.endEmitted)&&t.destroy()}return r}function Z2(t,e,r){e.ending=!0,Sn(t,e),r&&(e.finished?M.default.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function Y2(t,e,r){var i=t.entry;for(t.entry=null;i;){var n=i.callback;e.pendingcb--,n(r),i=i.next}e.corkedRequestsFree.next=t}Object.defineProperty(Ne.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});Ne.prototype.destroy=ls.destroy;Ne.prototype._undestroy=ls.undestroy;Ne.prototype._destroy=function(t,e){e(t)}});var $r=B((D5,Yc)=>{"use strict";b();var X2=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};Yc.exports=Pt;var Zc=vs(),ps=cs();K()(Pt,Zc);for(ds=X2(ps.prototype),Qo=0;Qo<ds.length;Qo++)ea=ds[Qo],Pt.prototype[ea]||(Pt.prototype[ea]=ps.prototype[ea]);var ds,ea,Qo;function Pt(t){if(!(this instanceof Pt))return new Pt(t);Zc.call(this,t),ps.call(this,t),this.allowHalfOpen=!0,t&&(t.readable===!1&&(this.readable=!1),t.writable===!1&&(this.writable=!1),t.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",J2)))}Object.defineProperty(Pt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(Pt.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(Pt.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function J2(){this._writableState.ended||M.default.nextTick(Q2,this)}function Q2(t){t.end()}Object.defineProperty(Pt.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})});var Qc=B((ys,Jc)=>{b();var ta=rt(),$t=ta.Buffer;function Xc(t,e){for(var r in t)e[r]=t[r]}$t.from&&$t.alloc&&$t.allocUnsafe&&$t.allocUnsafeSlow?Jc.exports=ta:(Xc(ta,ys),ys.Buffer=qi);function qi(t,e,r){return $t(t,e,r)}Xc($t,qi);qi.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return $t(t,e,r)};qi.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=$t(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};qi.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return $t(t)};qi.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return ta.SlowBuffer(t)}});var Ti=B(td=>{"use strict";b();var ms=Qc().Buffer,ed=ms.isEncoding||function(t){switch(t=""+t,t&&t.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 e_(t){if(!t)return"utf8";for(var e;;)switch(t){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 t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function t_(t){var e=e_(t);if(typeof e!="string"&&(ms.isEncoding===ed||!ed(t)))throw new Error("Unknown encoding: "+t);return e||t}td.StringDecoder=An;function An(t){this.encoding=t_(t);var e;switch(this.encoding){case"utf16le":this.text=f_,this.end=s_,e=4;break;case"utf8":this.fillLast=n_,e=4;break;case"base64":this.text=u_,this.end=h_,e=3;break;default:this.write=l_,this.end=c_;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=ms.allocUnsafe(e)}An.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""};An.prototype.end=a_;An.prototype.text=o_;An.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function gs(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function r_(t,e,r){var i=e.length-1;if(i<r)return 0;var n=gs(e[i]);return n>=0?(n>0&&(t.lastNeed=n-1),n):--i<r||n===-2?0:(n=gs(e[i]),n>=0?(n>0&&(t.lastNeed=n-2),n):--i<r||n===-2?0:(n=gs(e[i]),n>=0?(n>0&&(n===2?n=0:t.lastNeed=n-3),n):0))}function i_(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}function n_(t){var e=this.lastTotal-this.lastNeed,r=i_(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function o_(t,e){var r=r_(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var i=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)}function a_(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function f_(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function s_(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function u_(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function h_(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function l_(t){return t.toString(this.encoding)}function c_(t){return t&&t.length?this.write(t):""}});var ra=B((F5,nd)=>{"use strict";b();var rd=Wr().codes.ERR_STREAM_PREMATURE_CLOSE;function d_(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,i=new Array(r),n=0;n<r;n++)i[n]=arguments[n];t.apply(this,i)}}}function p_(){}function v_(t){return t.setHeader&&typeof t.abort=="function"}function id(t,e,r){if(typeof e=="function")return id(t,null,e);e||(e={}),r=d_(r||p_);var i=e.readable||e.readable!==!1&&t.readable,n=e.writable||e.writable!==!1&&t.writable,a=function(){t.writable||y()},s=t._writableState&&t._writableState.finished,y=function(){n=!1,s=!0,i||r.call(t)},w=t._readableState&&t._readableState.endEmitted,S=function(){i=!1,w=!0,n||r.call(t)},A=function(P){r.call(t,P)},q=function(){var P;if(i&&!w)return(!t._readableState||!t._readableState.ended)&&(P=new rd),r.call(t,P);if(n&&!s)return(!t._writableState||!t._writableState.ended)&&(P=new rd),r.call(t,P)},k=function(){t.req.on("finish",y)};return v_(t)?(t.on("complete",y),t.on("abort",q),t.req?k():t.on("request",k)):n&&!t._writableState&&(t.on("end",a),t.on("close",a)),t.on("end",S),t.on("finish",y),e.error!==!1&&t.on("error",A),t.on("close",q),function(){t.removeListener("complete",y),t.removeListener("abort",q),t.removeListener("request",k),t.req&&t.req.removeListener("finish",y),t.removeListener("end",a),t.removeListener("close",a),t.removeListener("finish",y),t.removeListener("end",S),t.removeListener("error",A),t.removeListener("close",q)}}nd.exports=id});var ad=B((H5,od)=>{"use strict";b();var ia;function sr(t,e,r){return e=y_(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function y_(t){var e=g_(t,"string");return typeof e=="symbol"?e:String(e)}function g_(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var m_=ra(),ur=Symbol("lastResolve"),Gr=Symbol("lastReject"),Rn=Symbol("error"),na=Symbol("ended"),Vr=Symbol("lastPromise"),bs=Symbol("handlePromise"),zr=Symbol("stream");function hr(t,e){return{value:t,done:e}}function b_(t){var e=t[ur];if(e!==null){var r=t[zr].read();r!==null&&(t[Vr]=null,t[ur]=null,t[Gr]=null,e(hr(r,!1)))}}function w_(t){M.default.nextTick(b_,t)}function __(t,e){return function(r,i){t.then(function(){if(e[na]){r(hr(void 0,!0));return}e[bs](r,i)},i)}}var x_=Object.getPrototypeOf(function(){}),M_=Object.setPrototypeOf((ia={get stream(){return this[zr]},next:function(){var e=this,r=this[Rn];if(r!==null)return Promise.reject(r);if(this[na])return Promise.resolve(hr(void 0,!0));if(this[zr].destroyed)return new Promise(function(s,y){M.default.nextTick(function(){e[Rn]?y(e[Rn]):s(hr(void 0,!0))})});var i=this[Vr],n;if(i)n=new Promise(__(i,this));else{var a=this[zr].read();if(a!==null)return Promise.resolve(hr(a,!1));n=new Promise(this[bs])}return this[Vr]=n,n}},sr(ia,Symbol.asyncIterator,function(){return this}),sr(ia,"return",function(){var e=this;return new Promise(function(r,i){e[zr].destroy(null,function(n){if(n){i(n);return}r(hr(void 0,!0))})})}),ia),x_),E_=function(e){var r,i=Object.create(M_,(r={},sr(r,zr,{value:e,writable:!0}),sr(r,ur,{value:null,writable:!0}),sr(r,Gr,{value:null,writable:!0}),sr(r,Rn,{value:null,writable:!0}),sr(r,na,{value:e._readableState.endEmitted,writable:!0}),sr(r,bs,{value:function(a,s){var y=i[zr].read();y?(i[Vr]=null,i[ur]=null,i[Gr]=null,a(hr(y,!1))):(i[ur]=a,i[Gr]=s)},writable:!0}),r));return i[Vr]=null,m_(e,function(n){if(n&&n.code!=="ERR_STREAM_PREMATURE_CLOSE"){var a=i[Gr];a!==null&&(i[Vr]=null,i[ur]=null,i[Gr]=null,a(n)),i[Rn]=n;return}var s=i[ur];s!==null&&(i[Vr]=null,i[ur]=null,i[Gr]=null,s(hr(void 0,!0))),i[na]=!0}),e.on("readable",w_.bind(null,i)),i};od.exports=E_});var sd=B((W5,fd)=>{b();fd.exports=function(){throw new Error("Readable.from is not available in the browser")}});var vs=B((V5,md)=>{"use strict";b();md.exports=ke;var ki;ke.ReadableState=cd;var G5=gi().EventEmitter,ld=function(e,r){return e.listeners(r).length},Tn=Ef(),oa=rt().Buffer,S_=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function B_(t){return oa.from(t)}function A_(t){return oa.isBuffer(t)||t instanceof S_}var ws=En(),Be;ws&&ws.debuglog?Be=ws.debuglog("stream"):Be=function(){};var R_=Dc(),As=as(),q_=fs(),T_=q_.getHighWaterMark,aa=Wr().codes,k_=aa.ERR_INVALID_ARG_TYPE,I_=aa.ERR_STREAM_PUSH_AFTER_EOF,C_=aa.ERR_METHOD_NOT_IMPLEMENTED,O_=aa.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Ii,_s,xs;K()(ke,Tn);var qn=As.errorOrDestroy,Ms=["error","close","destroy","pause","resume"];function D_(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function cd(t,e,r){ki=ki||$r(),t=t||{},typeof r!="boolean"&&(r=e instanceof ki),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=T_(this,t,"readableHighWaterMark",r),this.buffer=new R_,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=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(Ii||(Ii=Ti().StringDecoder),this.decoder=new Ii(t.encoding),this.encoding=t.encoding)}function ke(t){if(ki=ki||$r(),!(this instanceof ke))return new ke(t);var e=this instanceof ki;this._readableState=new cd(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),Tn.call(this)}Object.defineProperty(ke.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});ke.prototype.destroy=As.destroy;ke.prototype._undestroy=As.undestroy;ke.prototype._destroy=function(t,e){e(t)};ke.prototype.push=function(t,e){var r=this._readableState,i;return r.objectMode?i=!0:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=oa.from(t,e),e=""),i=!0),dd(this,t,e,!1,i)};ke.prototype.unshift=function(t){return dd(this,t,null,!0,!1)};function dd(t,e,r,i,n){Be("readableAddChunk",e);var a=t._readableState;if(e===null)a.reading=!1,L_(t,a);else{var s;if(n||(s=P_(a,e)),s)qn(t,s);else if(a.objectMode||e&&e.length>0)if(typeof e!="string"&&!a.objectMode&&Object.getPrototypeOf(e)!==oa.prototype&&(e=B_(e)),i)a.endEmitted?qn(t,new O_):Es(t,a,e,!0);else if(a.ended)qn(t,new I_);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(e=a.decoder.write(e),a.objectMode||e.length!==0?Es(t,a,e,!1):Bs(t,a)):Es(t,a,e,!1)}else i||(a.reading=!1,Bs(t,a))}return!a.ended&&(a.length<a.highWaterMark||a.length===0)}function Es(t,e,r,i){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&fa(t)),Bs(t,e)}function P_(t,e){var r;return!A_(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new k_("chunk",["string","Buffer","Uint8Array"],e)),r}ke.prototype.isPaused=function(){return this._readableState.flowing===!1};ke.prototype.setEncoding=function(t){Ii||(Ii=Ti().StringDecoder);var e=new Ii(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";r!==null;)i+=e.write(r.data),r=r.next;return this._readableState.buffer.clear(),i!==""&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var ud=1073741824;function U_(t){return t>=ud?t=ud:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function hd(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=U_(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}ke.prototype.read=function(t){Be("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return Be("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Ss(this):fa(this),null;if(t=hd(t,e),t===0&&e.ended)return e.length===0&&Ss(this),null;var i=e.needReadable;Be("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,Be("length less than watermark",i)),e.ended||e.reading?(i=!1,Be("reading or ended",i)):i&&(Be("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=hd(r,e)));var n;return t>0?n=yd(t,e):n=null,n===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&Ss(this)),n!==null&&this.emit("data",n),n};function L_(t,e){if(Be("onEofChunk"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?fa(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,pd(t)))}}function fa(t){var e=t._readableState;Be("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(Be("emitReadable",e.flowing),e.emittedReadable=!0,M.default.nextTick(pd,t))}function pd(t){var e=t._readableState;Be("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,Rs(t)}function Bs(t,e){e.readingMore||(e.readingMore=!0,M.default.nextTick(N_,t,e))}function N_(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var r=e.length;if(Be("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}ke.prototype._read=function(t){qn(this,new C_("_read()"))};ke.prototype.pipe=function(t,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t);break}i.pipesCount+=1,Be("pipe count=%d opts=%j",i.pipesCount,e);var n=(!e||e.end!==!1)&&t!==M.default.stdout&&t!==M.default.stderr,a=n?y:W;i.endEmitted?M.default.nextTick(a):r.once("end",a),t.on("unpipe",s);function s(Te,j){Be("onunpipe"),Te===r&&j&&j.hasUnpiped===!1&&(j.hasUnpiped=!0,A())}function y(){Be("onend"),t.end()}var w=F_(r);t.on("drain",w);var S=!1;function A(){Be("cleanup"),t.removeListener("close",O),t.removeListener("finish",P),t.removeListener("drain",w),t.removeListener("error",k),t.removeListener("unpipe",s),r.removeListener("end",y),r.removeListener("end",W),r.removeListener("data",q),S=!0,i.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&w()}r.on("data",q);function q(Te){Be("ondata");var j=t.write(Te);Be("dest.write",j),j===!1&&((i.pipesCount===1&&i.pipes===t||i.pipesCount>1&&gd(i.pipes,t)!==-1)&&!S&&(Be("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function k(Te){Be("onerror",Te),W(),t.removeListener("error",k),ld(t,"error")===0&&qn(t,Te)}D_(t,"error",k);function O(){t.removeListener("finish",P),W()}t.once("close",O);function P(){Be("onfinish"),t.removeListener("close",O),W()}t.once("finish",P);function W(){Be("unpipe"),r.unpipe(t)}return t.emit("pipe",r),i.flowing||(Be("pipe resume"),r.resume()),t};function F_(t){return function(){var r=t._readableState;Be("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&ld(t,"data")&&(r.flowing=!0,Rs(t))}}ke.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r),this);if(!t){var i=e.pipes,n=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var a=0;a<n;a++)i[a].emit("unpipe",this,{hasUnpiped:!1});return this}var s=gd(e.pipes,t);return s===-1?this:(e.pipes.splice(s,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};ke.prototype.on=function(t,e){var r=Tn.prototype.on.call(this,t,e),i=this._readableState;return t==="data"?(i.readableListening=this.listenerCount("readable")>0,i.flowing!==!1&&this.resume()):t==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,Be("on readable",i.length,i.reading),i.length?fa(this):i.reading||M.default.nextTick(j_,this)),r};ke.prototype.addListener=ke.prototype.on;ke.prototype.removeListener=function(t,e){var r=Tn.prototype.removeListener.call(this,t,e);return t==="readable"&&M.default.nextTick(vd,this),r};ke.prototype.removeAllListeners=function(t){var e=Tn.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&M.default.nextTick(vd,this),e};function vd(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function j_(t){Be("readable nexttick read 0"),t.read(0)}ke.prototype.resume=function(){var t=this._readableState;return t.flowing||(Be("resume"),t.flowing=!t.readableListening,H_(this,t)),t.paused=!1,this};function H_(t,e){e.resumeScheduled||(e.resumeScheduled=!0,M.default.nextTick(K_,t,e))}function K_(t,e){Be("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),Rs(t),e.flowing&&!e.reading&&t.read(0)}ke.prototype.pause=function(){return Be("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Be("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Rs(t){var e=t._readableState;for(Be("flow",e.flowing);e.flowing&&t.read()!==null;);}ke.prototype.wrap=function(t){var e=this,r=this._readableState,i=!1;t.on("end",function(){if(Be("wrapped end"),r.decoder&&!r.ended){var s=r.decoder.end();s&&s.length&&e.push(s)}e.push(null)}),t.on("data",function(s){if(Be("wrapped data"),r.decoder&&(s=r.decoder.write(s)),!(r.objectMode&&s==null)&&!(!r.objectMode&&(!s||!s.length))){var y=e.push(s);y||(i=!0,t.pause())}});for(var n in t)this[n]===void 0&&typeof t[n]=="function"&&(this[n]=(function(y){return function(){return t[y].apply(t,arguments)}})(n));for(var a=0;a<Ms.length;a++)t.on(Ms[a],this.emit.bind(this,Ms[a]));return this._read=function(s){Be("wrapped _read",s),i&&(i=!1,t.resume())},this};typeof Symbol=="function"&&(ke.prototype[Symbol.asyncIterator]=function(){return _s===void 0&&(_s=ad()),_s(this)});Object.defineProperty(ke.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(ke.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(ke.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});ke._fromList=yd;Object.defineProperty(ke.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function yd(t,e){if(e.length===0)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.first():r=e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function Ss(t){var e=t._readableState;Be("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,M.default.nextTick(W_,e,t))}function W_(t,e){if(Be("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}typeof Symbol=="function"&&(ke.from=function(t,e){return xs===void 0&&(xs=sd()),xs(ke,t,e)});function gd(t,e){for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r;return-1}});var qs=B((Z5,wd)=>{"use strict";b();wd.exports=Gt;var sa=Wr().codes,$_=sa.ERR_METHOD_NOT_IMPLEMENTED,G_=sa.ERR_MULTIPLE_CALLBACK,V_=sa.ERR_TRANSFORM_ALREADY_TRANSFORMING,z_=sa.ERR_TRANSFORM_WITH_LENGTH_0,ua=$r();K()(Gt,ua);function Z_(t,e){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(i===null)return this.emit("error",new G_);r.writechunk=null,r.writecb=null,e!=null&&this.push(e),i(t);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function Gt(t){if(!(this instanceof Gt))return new Gt(t);ua.call(this,t),this._transformState={afterTransform:Z_.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",Y_)}function Y_(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,r){bd(t,e,r)}):bd(this,null,null)}Gt.prototype.push=function(t,e){return this._transformState.needTransform=!1,ua.prototype.push.call(this,t,e)};Gt.prototype._transform=function(t,e,r){r(new $_("_transform()"))};Gt.prototype._write=function(t,e,r){var i=this._transformState;if(i.writecb=r,i.writechunk=t,i.writeencoding=e,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}};Gt.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};Gt.prototype._destroy=function(t,e){ua.prototype._destroy.call(this,t,function(r){e(r)})};function bd(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new z_;if(t._transformState.transforming)throw new V_;return t.push(null)}});var Md=B((X5,xd)=>{"use strict";b();xd.exports=kn;var _d=qs();K()(kn,_d);function kn(t){if(!(this instanceof kn))return new kn(t);_d.call(this,t)}kn.prototype._transform=function(t,e,r){r(null,t)}});var Rd=B((Q5,Ad)=>{"use strict";b();var Ts;function X_(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var Bd=Wr().codes,J_=Bd.ERR_MISSING_ARGS,Q_=Bd.ERR_STREAM_DESTROYED;function Ed(t){if(t)throw t}function e6(t){return t.setHeader&&typeof t.abort=="function"}function t6(t,e,r,i){i=X_(i);var n=!1;t.on("close",function(){n=!0}),Ts===void 0&&(Ts=ra()),Ts(t,{readable:e,writable:r},function(s){if(s)return i(s);n=!0,i()});var a=!1;return function(s){if(!n&&!a){if(a=!0,e6(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();i(s||new Q_("pipe"))}}}function Sd(t){t()}function r6(t,e){return t.pipe(e)}function i6(t){return!t.length||typeof t[t.length-1]!="function"?Ed:t.pop()}function n6(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var i=i6(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new J_("streams");var n,a=e.map(function(s,y){var w=y<e.length-1,S=y>0;return t6(s,w,S,function(A){n||(n=A),A&&a.forEach(Sd),!w&&(a.forEach(Sd),i(n))})});return e.reduce(r6)}Ad.exports=n6});var Is=B((tB,qd)=>{b();qd.exports=ct;var ks=gi().EventEmitter,o6=K();o6(ct,ks);ct.Readable=vs();ct.Writable=cs();ct.Duplex=$r();ct.Transform=qs();ct.PassThrough=Md();ct.finished=ra();ct.pipeline=Rd();ct.Stream=ct;function ct(){ks.call(this)}ct.prototype.pipe=function(t,e){var r=this;function i(A){t.writable&&t.write(A)===!1&&r.pause&&r.pause()}r.on("data",i);function n(){r.readable&&r.resume&&r.resume()}t.on("drain",n),!t._isStdio&&(!e||e.end!==!1)&&(r.on("end",s),r.on("close",y));var a=!1;function s(){a||(a=!0,t.end())}function y(){a||(a=!0,typeof t.destroy=="function"&&t.destroy())}function w(A){if(S(),ks.listenerCount(this,"error")===0)throw A}r.on("error",w),t.on("error",w);function S(){r.removeListener("data",i),t.removeListener("drain",n),r.removeListener("end",s),r.removeListener("close",y),r.removeListener("error",w),t.removeListener("error",w),r.removeListener("end",S),r.removeListener("close",S),t.removeListener("close",S)}return r.on("end",S),r.on("close",S),t.on("close",S),t.emit("pipe",r),t}});var Id=B((iB,kd)=>{"use strict";b();var Ut=Me().Buffer,Td=Is().Transform,a6=K();function lr(t){Td.call(this),this._block=Ut.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}a6(lr,Td);lr.prototype._transform=function(t,e,r){var i=null;try{this.update(t,e)}catch(n){i=n}r(i)};lr.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(r){e=r}t(e)};var f6=typeof Uint8Array<"u",s6=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(Ut.prototype instanceof Uint8Array||Ut.TYPED_ARRAY_SUPPORT);function u6(t,e){if(t instanceof Ut)return t;if(typeof t=="string")return Ut.from(t,e);if(s6&&ArrayBuffer.isView(t)){if(t.byteLength===0)return Ut.alloc(0);var r=Ut.from(t.buffer,t.byteOffset,t.byteLength);if(r.byteLength===t.byteLength)return r}if(f6&&t instanceof Uint8Array||Ut.isBuffer(t)&&t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t))return Ut.from(t);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}lr.prototype.update=function(t,e){if(this._finalized)throw new Error("Digest already called");t=u6(t,e);for(var r=this._block,i=0;this._blockOffset+t.length-i>=this._blockSize;){for(var n=this._blockOffset;n<this._blockSize;)r[n++]=t[i++];this._update(),this._blockOffset=0}for(;i<t.length;)r[this._blockOffset++]=t[i++];for(var a=0,s=t.length*8;s>0;++a)this._length[a]+=s,s=this._length[a]/4294967296|0,s>0&&(this._length[a]-=4294967296*s);return this};lr.prototype._update=function(){throw new Error("_update is not implemented")};lr.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();t!==void 0&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return e};lr.prototype._digest=function(){throw new Error("_digest is not implemented")};kd.exports=lr});var ca=B((oB,Od)=>{"use strict";b();var h6=K(),Cd=Id(),l6=Me().Buffer,c6=new Array(16);function ha(){Cd.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}h6(ha,Cd);ha.prototype._update=function(){for(var t=c6,e=0;e<16;++e)t[e]=this._block.readInt32LE(e*4);var r=this._a,i=this._b,n=this._c,a=this._d;r=Xe(r,i,n,a,t[0],3614090360,7),a=Xe(a,r,i,n,t[1],3905402710,12),n=Xe(n,a,r,i,t[2],606105819,17),i=Xe(i,n,a,r,t[3],3250441966,22),r=Xe(r,i,n,a,t[4],4118548399,7),a=Xe(a,r,i,n,t[5],1200080426,12),n=Xe(n,a,r,i,t[6],2821735955,17),i=Xe(i,n,a,r,t[7],4249261313,22),r=Xe(r,i,n,a,t[8],1770035416,7),a=Xe(a,r,i,n,t[9],2336552879,12),n=Xe(n,a,r,i,t[10],4294925233,17),i=Xe(i,n,a,r,t[11],2304563134,22),r=Xe(r,i,n,a,t[12],1804603682,7),a=Xe(a,r,i,n,t[13],4254626195,12),n=Xe(n,a,r,i,t[14],2792965006,17),i=Xe(i,n,a,r,t[15],1236535329,22),r=Je(r,i,n,a,t[1],4129170786,5),a=Je(a,r,i,n,t[6],3225465664,9),n=Je(n,a,r,i,t[11],643717713,14),i=Je(i,n,a,r,t[0],3921069994,20),r=Je(r,i,n,a,t[5],3593408605,5),a=Je(a,r,i,n,t[10],38016083,9),n=Je(n,a,r,i,t[15],3634488961,14),i=Je(i,n,a,r,t[4],3889429448,20),r=Je(r,i,n,a,t[9],568446438,5),a=Je(a,r,i,n,t[14],3275163606,9),n=Je(n,a,r,i,t[3],4107603335,14),i=Je(i,n,a,r,t[8],1163531501,20),r=Je(r,i,n,a,t[13],2850285829,5),a=Je(a,r,i,n,t[2],4243563512,9),n=Je(n,a,r,i,t[7],1735328473,14),i=Je(i,n,a,r,t[12],2368359562,20),r=Qe(r,i,n,a,t[5],4294588738,4),a=Qe(a,r,i,n,t[8],2272392833,11),n=Qe(n,a,r,i,t[11],1839030562,16),i=Qe(i,n,a,r,t[14],4259657740,23),r=Qe(r,i,n,a,t[1],2763975236,4),a=Qe(a,r,i,n,t[4],1272893353,11),n=Qe(n,a,r,i,t[7],4139469664,16),i=Qe(i,n,a,r,t[10],3200236656,23),r=Qe(r,i,n,a,t[13],681279174,4),a=Qe(a,r,i,n,t[0],3936430074,11),n=Qe(n,a,r,i,t[3],3572445317,16),i=Qe(i,n,a,r,t[6],76029189,23),r=Qe(r,i,n,a,t[9],3654602809,4),a=Qe(a,r,i,n,t[12],3873151461,11),n=Qe(n,a,r,i,t[15],530742520,16),i=Qe(i,n,a,r,t[2],3299628645,23),r=et(r,i,n,a,t[0],4096336452,6),a=et(a,r,i,n,t[7],1126891415,10),n=et(n,a,r,i,t[14],2878612391,15),i=et(i,n,a,r,t[5],4237533241,21),r=et(r,i,n,a,t[12],1700485571,6),a=et(a,r,i,n,t[3],2399980690,10),n=et(n,a,r,i,t[10],4293915773,15),i=et(i,n,a,r,t[1],2240044497,21),r=et(r,i,n,a,t[8],1873313359,6),a=et(a,r,i,n,t[15],4264355552,10),n=et(n,a,r,i,t[6],2734768916,15),i=et(i,n,a,r,t[13],1309151649,21),r=et(r,i,n,a,t[4],4149444226,6),a=et(a,r,i,n,t[11],3174756917,10),n=et(n,a,r,i,t[2],718787259,15),i=et(i,n,a,r,t[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+i|0,this._c=this._c+n|0,this._d=this._d+a|0};ha.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=l6.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t};function la(t,e){return t<<e|t>>>32-e}function Xe(t,e,r,i,n,a,s){return la(t+(e&r|~e&i)+n+a|0,s)+e|0}function Je(t,e,r,i,n,a,s){return la(t+(e&i|r&~i)+n+a|0,s)+e|0}function Qe(t,e,r,i,n,a,s){return la(t+(e^r^i)+n+a|0,s)+e|0}function et(t,e,r,i,n,a,s){return la(t+(r^(e|~i))+n+a|0,s)+e|0}Od.exports=ha});var Pd=B((fB,Dd)=>{b();var d6={}.toString;Dd.exports=Array.isArray||function(t){return d6.call(t)=="[object Array]"}});var Ld=B((uB,Ud)=>{"use strict";b();var p6=Lr(),v6=jr(),y6=v6("TypedArray.prototype.buffer",!0),g6=Yf();Ud.exports=y6||function(e){if(!g6(e))throw new p6("Not a Typed Array");return e.buffer}});var In=B((lB,Fd)=>{"use strict";b();var _t=Me().Buffer,m6=Pd(),b6=Ld(),w6=ArrayBuffer.isView||function(e){try{return b6(e),!0}catch{return!1}},_6=typeof Uint8Array<"u",Nd=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",x6=Nd&&(_t.prototype instanceof Uint8Array||_t.TYPED_ARRAY_SUPPORT);Fd.exports=function(e,r){if(_t.isBuffer(e))return e.constructor&&!("isBuffer"in e)?_t.from(e):e;if(typeof e=="string")return _t.from(e,r);if(Nd&&w6(e)){if(e.byteLength===0)return _t.alloc(0);if(x6){var i=_t.from(e.buffer,e.byteOffset,e.byteLength);if(i.byteLength===e.byteLength)return i}var n=e instanceof Uint8Array?e:new Uint8Array(e.buffer,e.byteOffset,e.byteLength),a=_t.from(n);if(a.length===e.byteLength)return a}if(_6&&e instanceof Uint8Array)return _t.from(e);var s=m6(e);if(s)for(var y=0;y<e.length;y+=1){var w=e[y];if(typeof w!="number"||w<0||w>255||~~w!==w)throw new RangeError("Array items must be numbers in the range 0-255.")}if(s||_t.isBuffer(e)&&e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e))return _t.from(e);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}});var Wd=B((dB,Kd)=>{"use strict";b();var M6=Me().Buffer,E6=In(),Hd=typeof Uint8Array<"u",S6=Hd&&typeof ArrayBuffer<"u",jd=S6&&ArrayBuffer.isView;Kd.exports=function(t,e){if(typeof t=="string"||M6.isBuffer(t)||Hd&&t instanceof Uint8Array||jd&&jd(t))return E6(t,e);throw new TypeError('The "data" argument must be a string, a Buffer, a Uint8Array, or a DataView')}});var Cn=B((vB,Cs)=>{"use strict";b();typeof M.default>"u"||!M.default.version||M.default.version.indexOf("v0.")===0||M.default.version.indexOf("v1.")===0&&M.default.version.indexOf("v1.8.")!==0?Cs.exports={nextTick:B6}:Cs.exports=M.default;function B6(t,e,r,i){if(typeof t!="function")throw new TypeError('"callback" argument must be a function');var n=arguments.length,a,s;switch(n){case 0:case 1:return M.default.nextTick(t);case 2:return M.default.nextTick(function(){t.call(null,e)});case 3:return M.default.nextTick(function(){t.call(null,e,r)});case 4:return M.default.nextTick(function(){t.call(null,e,r,i)});default:for(a=new Array(n-1),s=0;s<a.length;)a[s++]=arguments[s];return M.default.nextTick(function(){t.apply(null,a)})}}});var Gd=B((gB,$d)=>{b();var A6={}.toString;$d.exports=Array.isArray||function(t){return A6.call(t)=="[object Array]"}});var Os=B((bB,Vd)=>{b();Vd.exports=gi().EventEmitter});var pa=B((Ds,Zd)=>{b();var da=rt(),Vt=da.Buffer;function zd(t,e){for(var r in t)e[r]=t[r]}Vt.from&&Vt.alloc&&Vt.allocUnsafe&&Vt.allocUnsafeSlow?Zd.exports=da:(zd(da,Ds),Ds.Buffer=Ci);function Ci(t,e,r){return Vt(t,e,r)}zd(Vt,Ci);Ci.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return Vt(t,e,r)};Ci.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=Vt(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};Ci.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Vt(t)};Ci.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return da.SlowBuffer(t)}});var Oi=B(tt=>{b();function R6(t){return Array.isArray?Array.isArray(t):va(t)==="[object Array]"}tt.isArray=R6;function q6(t){return typeof t=="boolean"}tt.isBoolean=q6;function T6(t){return t===null}tt.isNull=T6;function k6(t){return t==null}tt.isNullOrUndefined=k6;function I6(t){return typeof t=="number"}tt.isNumber=I6;function C6(t){return typeof t=="string"}tt.isString=C6;function O6(t){return typeof t=="symbol"}tt.isSymbol=O6;function D6(t){return t===void 0}tt.isUndefined=D6;function P6(t){return va(t)==="[object RegExp]"}tt.isRegExp=P6;function U6(t){return typeof t=="object"&&t!==null}tt.isObject=U6;function L6(t){return va(t)==="[object Date]"}tt.isDate=L6;function N6(t){return va(t)==="[object Error]"||t instanceof Error}tt.isError=N6;function F6(t){return typeof t=="function"}tt.isFunction=F6;function j6(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t>"u"}tt.isPrimitive=j6;tt.isBuffer=rt().Buffer.isBuffer;function va(t){return Object.prototype.toString.call(t)}});var Xd=B((EB,Ps)=>{"use strict";b();function H6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Yd=pa().Buffer,On=En();function K6(t,e,r){t.copy(e,r)}Ps.exports=(function(){function t(){H6(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length},t.prototype.unshift=function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length},t.prototype.shift=function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(r){if(this.length===0)return"";for(var i=this.head,n=""+i.data;i=i.next;)n+=r+i.data;return n},t.prototype.concat=function(r){if(this.length===0)return Yd.alloc(0);for(var i=Yd.allocUnsafe(r>>>0),n=this.head,a=0;n;)K6(n.data,i,a),a+=n.data.length,n=n.next;return i},t})();On&&On.inspect&&On.inspect.custom&&(Ps.exports.prototype[On.inspect.custom]=function(){var t=On.inspect({length:this.length});return this.constructor.name+" "+t})});var Us=B((BB,Jd)=>{"use strict";b();var ya=Cn();function W6(t,e){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,ya.nextTick(ga,this,t)):ya.nextTick(ga,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(a){!e&&a?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,ya.nextTick(ga,r,a)):ya.nextTick(ga,r,a):e&&e(a)}),this)}function $6(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function ga(t,e){t.emit("error",e)}Jd.exports={destroy:W6,undestroy:$6}});var Ns=B((RB,ap)=>{"use strict";b();var Zr=Cn();ap.exports=Ke;function ep(t){var e=this;this.next=null,this.entry=null,this.finish=function(){ux(e,t)}}var G6=!M.default.browser&&["v0.10","v0.9."].indexOf(M.default.version.slice(0,5))>-1?setImmediate:Zr.nextTick,Di;Ke.WritableState=Pn;var tp=Object.create(Oi());tp.inherits=K();var V6={deprecate:us()},rp=Os(),ba=pa().Buffer,z6=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Z6(t){return ba.from(t)}function Y6(t){return ba.isBuffer(t)||t instanceof z6}var ip=Us();tp.inherits(Ke,rp);function X6(){}function Pn(t,e){Di=Di||Yr(),t=t||{};var r=e instanceof Di;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,n=t.writableHighWaterMark,a=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=a,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=t.decodeStrings===!1;this.decodeStrings=!s,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(y){nx(e,y)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new ep(this)}Pn.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(Pn.prototype,"buffer",{get:V6.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var ma;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ma=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ke,Symbol.hasInstance,{value:function(t){return ma.call(this,t)?!0:this!==Ke?!1:t&&t._writableState instanceof Pn}})):ma=function(t){return t instanceof this};function Ke(t){if(Di=Di||Yr(),!ma.call(Ke,this)&&!(this instanceof Di))return new Ke(t);this._writableState=new Pn(t,this),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),rp.call(this)}Ke.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function J6(t,e){var r=new Error("write after end");t.emit("error",r),Zr.nextTick(e,r)}function Q6(t,e,r,i){var n=!0,a=!1;return r===null?a=new TypeError("May not write null values to stream"):typeof r!="string"&&r!==void 0&&!e.objectMode&&(a=new TypeError("Invalid non-string/buffer chunk")),a&&(t.emit("error",a),Zr.nextTick(i,a),n=!1),n}Ke.prototype.write=function(t,e,r){var i=this._writableState,n=!1,a=!i.objectMode&&Y6(t);return a&&!ba.isBuffer(t)&&(t=Z6(t)),typeof e=="function"&&(r=e,e=null),a?e="buffer":e||(e=i.defaultEncoding),typeof r!="function"&&(r=X6),i.ended?J6(this,r):(a||Q6(this,i,t,r))&&(i.pendingcb++,n=tx(this,i,a,t,e,r)),n};Ke.prototype.cork=function(){var t=this._writableState;t.corked++};Ke.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&np(this,t))};Ke.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this};function ex(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=ba.from(e,r)),e}Object.defineProperty(Ke.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function tx(t,e,r,i,n,a){if(!r){var s=ex(e,i,n);i!==s&&(r=!0,n="buffer",i=s)}var y=e.objectMode?1:i.length;e.length+=y;var w=e.length<e.highWaterMark;if(w||(e.needDrain=!0),e.writing||e.corked){var S=e.lastBufferedRequest;e.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:a,next:null},S?S.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else Ls(t,e,!1,y,i,n,a);return w}function Ls(t,e,r,i,n,a,s){e.writelen=i,e.writecb=s,e.writing=!0,e.sync=!0,r?t._writev(n,e.onwrite):t._write(n,a,e.onwrite),e.sync=!1}function rx(t,e,r,i,n){--e.pendingcb,r?(Zr.nextTick(n,i),Zr.nextTick(Dn,t,e),t._writableState.errorEmitted=!0,t.emit("error",i)):(n(i),t._writableState.errorEmitted=!0,t.emit("error",i),Dn(t,e))}function ix(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function nx(t,e){var r=t._writableState,i=r.sync,n=r.writecb;if(ix(r),e)rx(t,r,i,e,n);else{var a=op(r);!a&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&np(t,r),i?G6(Qd,t,r,a,n):Qd(t,r,a,n)}}function Qd(t,e,r,i){r||ox(t,e),e.pendingcb--,i(),Dn(t,e)}function ox(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function np(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var i=e.bufferedRequestCount,n=new Array(i),a=e.corkedRequestsFree;a.entry=r;for(var s=0,y=!0;r;)n[s]=r,r.isBuf||(y=!1),r=r.next,s+=1;n.allBuffers=y,Ls(t,e,!0,e.length,n,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new ep(e),e.bufferedRequestCount=0}else{for(;r;){var w=r.chunk,S=r.encoding,A=r.callback,q=e.objectMode?1:w.length;if(Ls(t,e,!1,q,w,S,A),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}Ke.prototype._write=function(t,e,r){r(new Error("_write() is not implemented"))};Ke.prototype._writev=null;Ke.prototype.end=function(t,e,r){var i=this._writableState;typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),t!=null&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||sx(this,i,r)};function op(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function ax(t,e){t._final(function(r){e.pendingcb--,r&&t.emit("error",r),e.prefinished=!0,t.emit("prefinish"),Dn(t,e)})}function fx(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"?(e.pendingcb++,e.finalCalled=!0,Zr.nextTick(ax,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function Dn(t,e){var r=op(e);return r&&(fx(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"))),r}function sx(t,e,r){e.ending=!0,Dn(t,e),r&&(e.finished?Zr.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function ux(t,e,r){var i=t.entry;for(t.entry=null;i;){var n=i.callback;e.pendingcb--,n(r),i=i.next}e.corkedRequestsFree.next=t}Object.defineProperty(Ke.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}});Ke.prototype.destroy=ip.destroy;Ke.prototype._undestroy=ip.undestroy;Ke.prototype._destroy=function(t,e){this.end(),e(t)}});var Yr=B((TB,hp)=>{"use strict";b();var fp=Cn(),hx=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};hp.exports=zt;var sp=Object.create(Oi());sp.inherits=K();var up=Hs(),js=Ns();sp.inherits(zt,up);for(Fs=hx(js.prototype),wa=0;wa<Fs.length;wa++)_a=Fs[wa],zt.prototype[_a]||(zt.prototype[_a]=js.prototype[_a]);var Fs,_a,wa;function zt(t){if(!(this instanceof zt))return new zt(t);up.call(this,t),js.call(this,t),t&&t.readable===!1&&(this.readable=!1),t&&t.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,t&&t.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",lx)}Object.defineProperty(zt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function lx(){this.allowHalfOpen||this._writableState.ended||fp.nextTick(cx,this)}function cx(t){t.end()}Object.defineProperty(zt.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(t){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=t,this._writableState.destroyed=t)}});zt.prototype._destroy=function(t,e){this.push(null),this.end(),fp.nextTick(e,t)}});var Hs=B((CB,xp)=>{"use strict";b();var Ui=Cn();xp.exports=Pe;var dx=Gd(),Un;Pe.ReadableState=gp;var IB=gi().EventEmitter,pp=function(t,e){return t.listeners(e).length},Vs=Os(),Ln=pa().Buffer,px=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function vx(t){return Ln.from(t)}function yx(t){return Ln.isBuffer(t)||t instanceof px}var vp=Object.create(Oi());vp.inherits=K();var Ks=En(),Ie=void 0;Ks&&Ks.debuglog?Ie=Ks.debuglog("stream"):Ie=function(){};var gx=Xd(),yp=Us(),Pi;vp.inherits(Pe,Vs);var Ws=["error","close","destroy","pause","resume"];function mx(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):dx(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function gp(t,e){Un=Un||Yr(),t=t||{};var r=e instanceof Un;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,n=t.readableHighWaterMark,a=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new gx,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.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(Pi||(Pi=Ti().StringDecoder),this.decoder=new Pi(t.encoding),this.encoding=t.encoding)}function Pe(t){if(Un=Un||Yr(),!(this instanceof Pe))return new Pe(t);this._readableState=new gp(t,this),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),Vs.call(this)}Object.defineProperty(Pe.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});Pe.prototype.destroy=yp.destroy;Pe.prototype._undestroy=yp.undestroy;Pe.prototype._destroy=function(t,e){this.push(null),e(t)};Pe.prototype.push=function(t,e){var r=this._readableState,i;return r.objectMode?i=!0:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=Ln.from(t,e),e=""),i=!0),mp(this,t,e,!1,i)};Pe.prototype.unshift=function(t){return mp(this,t,null,!0,!1)};function mp(t,e,r,i,n){var a=t._readableState;if(e===null)a.reading=!1,xx(t,a);else{var s;n||(s=bx(a,e)),s?t.emit("error",s):a.objectMode||e&&e.length>0?(typeof e!="string"&&!a.objectMode&&Object.getPrototypeOf(e)!==Ln.prototype&&(e=vx(e)),i?a.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):$s(t,a,e,!0):a.ended?t.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(e=a.decoder.write(e),a.objectMode||e.length!==0?$s(t,a,e,!1):bp(t,a)):$s(t,a,e,!1))):i||(a.reading=!1)}return wx(a)}function $s(t,e,r,i){e.flowing&&e.length===0&&!e.sync?(t.emit("data",r),t.read(0)):(e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&xa(t)),bp(t,e)}function bx(t,e){var r;return!yx(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}function wx(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||t.length===0)}Pe.prototype.isPaused=function(){return this._readableState.flowing===!1};Pe.prototype.setEncoding=function(t){return Pi||(Pi=Ti().StringDecoder),this._readableState.decoder=new Pi(t),this._readableState.encoding=t,this};var lp=8388608;function _x(t){return t>=lp?t=lp:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function cp(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=_x(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}Pe.prototype.read=function(t){Ie("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return Ie("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Gs(this):xa(this),null;if(t=cp(t,e),t===0&&e.ended)return e.length===0&&Gs(this),null;var i=e.needReadable;Ie("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,Ie("length less than watermark",i)),e.ended||e.reading?(i=!1,Ie("reading or ended",i)):i&&(Ie("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=cp(r,e)));var n;return t>0?n=wp(t,e):n=null,n===null?(e.needReadable=!0,t=0):e.length-=t,e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&Gs(this)),n!==null&&this.emit("data",n),n};function xx(t,e){if(!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,xa(t)}}function xa(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(Ie("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?Ui.nextTick(dp,t):dp(t))}function dp(t){Ie("emit readable"),t.emit("readable"),zs(t)}function bp(t,e){e.readingMore||(e.readingMore=!0,Ui.nextTick(Mx,t,e))}function Mx(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(Ie("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}Pe.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))};Pe.prototype.pipe=function(t,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t);break}i.pipesCount+=1,Ie("pipe count=%d opts=%j",i.pipesCount,e);var n=(!e||e.end!==!1)&&t!==M.default.stdout&&t!==M.default.stderr,a=n?y:Te;i.endEmitted?Ui.nextTick(a):r.once("end",a),t.on("unpipe",s);function s(j,Se){Ie("onunpipe"),j===r&&Se&&Se.hasUnpiped===!1&&(Se.hasUnpiped=!0,A())}function y(){Ie("onend"),t.end()}var w=Ex(r);t.on("drain",w);var S=!1;function A(){Ie("cleanup"),t.removeListener("close",P),t.removeListener("finish",W),t.removeListener("drain",w),t.removeListener("error",O),t.removeListener("unpipe",s),r.removeListener("end",y),r.removeListener("end",Te),r.removeListener("data",k),S=!0,i.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&w()}var q=!1;r.on("data",k);function k(j){Ie("ondata"),q=!1;var Se=t.write(j);Se===!1&&!q&&((i.pipesCount===1&&i.pipes===t||i.pipesCount>1&&_p(i.pipes,t)!==-1)&&!S&&(Ie("false write response, pause",i.awaitDrain),i.awaitDrain++,q=!0),r.pause())}function O(j){Ie("onerror",j),Te(),t.removeListener("error",O),pp(t,"error")===0&&t.emit("error",j)}mx(t,"error",O);function P(){t.removeListener("finish",W),Te()}t.once("close",P);function W(){Ie("onfinish"),t.removeListener("close",P),Te()}t.once("finish",W);function Te(){Ie("unpipe"),r.unpipe(t)}return t.emit("pipe",r),i.flowing||(Ie("pipe resume"),r.resume()),t};function Ex(t){return function(){var e=t._readableState;Ie("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,e.awaitDrain===0&&pp(t,"data")&&(e.flowing=!0,zs(t))}}Pe.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r),this);if(!t){var i=e.pipes,n=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var a=0;a<n;a++)i[a].emit("unpipe",this,{hasUnpiped:!1});return this}var s=_p(e.pipes,t);return s===-1?this:(e.pipes.splice(s,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};Pe.prototype.on=function(t,e){var r=Vs.prototype.on.call(this,t,e);if(t==="data")this._readableState.flowing!==!1&&this.resume();else if(t==="readable"){var i=this._readableState;!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&xa(this):Ui.nextTick(Sx,this))}return r};Pe.prototype.addListener=Pe.prototype.on;function Sx(t){Ie("readable nexttick read 0"),t.read(0)}Pe.prototype.resume=function(){var t=this._readableState;return t.flowing||(Ie("resume"),t.flowing=!0,Bx(this,t)),this};function Bx(t,e){e.resumeScheduled||(e.resumeScheduled=!0,Ui.nextTick(Ax,t,e))}function Ax(t,e){e.reading||(Ie("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),zs(t),e.flowing&&!e.reading&&t.read(0)}Pe.prototype.pause=function(){return Ie("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Ie("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function zs(t){var e=t._readableState;for(Ie("flow",e.flowing);e.flowing&&t.read()!==null;);}Pe.prototype.wrap=function(t){var e=this,r=this._readableState,i=!1;t.on("end",function(){if(Ie("wrapped end"),r.decoder&&!r.ended){var s=r.decoder.end();s&&s.length&&e.push(s)}e.push(null)}),t.on("data",function(s){if(Ie("wrapped data"),r.decoder&&(s=r.decoder.write(s)),!(r.objectMode&&s==null)&&!(!r.objectMode&&(!s||!s.length))){var y=e.push(s);y||(i=!0,t.pause())}});for(var n in t)this[n]===void 0&&typeof t[n]=="function"&&(this[n]=(function(s){return function(){return t[s].apply(t,arguments)}})(n));for(var a=0;a<Ws.length;a++)t.on(Ws[a],this.emit.bind(this,Ws[a]));return this._read=function(s){Ie("wrapped _read",s),i&&(i=!1,t.resume())},this};Object.defineProperty(Pe.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Pe._fromList=wp;function wp(t,e){if(e.length===0)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.head.data:r=e.buffer.concat(e.length),e.buffer.clear()):r=Rx(t,e.buffer,e.decoder),r}function Rx(t,e,r){var i;return t<e.head.data.length?(i=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):t===e.head.data.length?i=e.shift():i=r?qx(t,e):Tx(t,e),i}function qx(t,e){var r=e.head,i=1,n=r.data;for(t-=n.length;r=r.next;){var a=r.data,s=t>a.length?a.length:t;if(s===a.length?n+=a:n+=a.slice(0,t),t-=s,t===0){s===a.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=a.slice(s));break}++i}return e.length-=i,n}function Tx(t,e){var r=Ln.allocUnsafe(t),i=e.head,n=1;for(i.data.copy(r),t-=i.data.length;i=i.next;){var a=i.data,s=t>a.length?a.length:t;if(a.copy(r,r.length-t,0,s),t-=s,t===0){s===a.length?(++n,i.next?e.head=i.next:e.head=e.tail=null):(e.head=i,i.data=a.slice(s));break}++n}return e.length-=n,r}function Gs(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,Ui.nextTick(kx,e,t))}function kx(t,e){!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function _p(t,e){for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r;return-1}});var Zs=B((DB,Sp)=>{"use strict";b();Sp.exports=Zt;var Ma=Yr(),Ep=Object.create(Oi());Ep.inherits=K();Ep.inherits(Zt,Ma);function Ix(t,e){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(!i)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,e!=null&&this.push(e),i(t);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function Zt(t){if(!(this instanceof Zt))return new Zt(t);Ma.call(this,t),this._transformState={afterTransform:Ix.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",Cx)}function Cx(){var t=this;typeof this._flush=="function"?this._flush(function(e,r){Mp(t,e,r)}):Mp(this,null,null)}Zt.prototype.push=function(t,e){return this._transformState.needTransform=!1,Ma.prototype.push.call(this,t,e)};Zt.prototype._transform=function(t,e,r){throw new Error("_transform() is not implemented")};Zt.prototype._write=function(t,e,r){var i=this._transformState;if(i.writecb=r,i.writechunk=t,i.writeencoding=e,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}};Zt.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};Zt.prototype._destroy=function(t,e){var r=this;Ma.prototype._destroy.call(this,t,function(i){e(i),r.emit("close")})};function Mp(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}});var qp=B((UB,Rp)=>{"use strict";b();Rp.exports=Nn;var Bp=Zs(),Ap=Object.create(Oi());Ap.inherits=K();Ap.inherits(Nn,Bp);function Nn(t){if(!(this instanceof Nn))return new Nn(t);Bp.call(this,t)}Nn.prototype._transform=function(t,e,r){r(null,t)}});var kp=B((Lt,Tp)=>{b();Lt=Tp.exports=Hs();Lt.Stream=Lt;Lt.Readable=Lt;Lt.Writable=Ns();Lt.Duplex=Yr();Lt.Transform=Zs();Lt.PassThrough=qp()});var Op=B((FB,Cp)=>{"use strict";b();var Ox=Me().Buffer,Dx=Wd(),Ip=kp().Transform,Px=K();function cr(t){Ip.call(this),this._block=Ox.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}Px(cr,Ip);cr.prototype._transform=function(t,e,r){var i=null;try{this.update(t,e)}catch(n){i=n}r(i)};cr.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(r){e=r}t(e)};cr.prototype.update=function(t,e){if(this._finalized)throw new Error("Digest already called");for(var r=Dx(t,e),i=this._block,n=0;this._blockOffset+r.length-n>=this._blockSize;){for(var a=this._blockOffset;a<this._blockSize;)i[a]=r[n],a+=1,n+=1;this._update(),this._blockOffset=0}for(;n<r.length;)i[this._blockOffset]=r[n],this._blockOffset+=1,n+=1;for(var s=0,y=r.length*8;y>0;++s)this._length[s]+=y,y=this._length[s]/4294967296|0,y>0&&(this._length[s]-=4294967296*y);return this};cr.prototype._update=function(){throw new Error("_update is not implemented")};cr.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();t!==void 0&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return e};cr.prototype._digest=function(){throw new Error("_digest is not implemented")};Cp.exports=cr});var Sa=B((HB,jp)=>{"use strict";b();var Ys=rt().Buffer,Ux=K(),Fp=Op(),Lx=new Array(16),Fn=[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],jn=[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],Hn=[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],Kn=[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],Wn=[0,1518500249,1859775393,2400959708,2840853838],$n=[1352829926,1548603684,1836072691,2053994217,0];function Xr(t,e){return t<<e|t>>>32-e}function Dp(t,e,r,i,n,a,s,y){return Xr(t+(e^r^i)+a+s|0,y)+n|0}function Pp(t,e,r,i,n,a,s,y){return Xr(t+(e&r|~e&i)+a+s|0,y)+n|0}function Up(t,e,r,i,n,a,s,y){return Xr(t+((e|~r)^i)+a+s|0,y)+n|0}function Lp(t,e,r,i,n,a,s,y){return Xr(t+(e&i|r&~i)+a+s|0,y)+n|0}function Np(t,e,r,i,n,a,s,y){return Xr(t+(e^(r|~i))+a+s|0,y)+n|0}function Ea(){Fp.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}Ux(Ea,Fp);Ea.prototype._update=function(){for(var t=Lx,e=0;e<16;++e)t[e]=this._block.readInt32LE(e*4);for(var r=this._a|0,i=this._b|0,n=this._c|0,a=this._d|0,s=this._e|0,y=this._a|0,w=this._b|0,S=this._c|0,A=this._d|0,q=this._e|0,k=0;k<80;k+=1){var O,P;k<16?(O=Dp(r,i,n,a,s,t[Fn[k]],Wn[0],Hn[k]),P=Np(y,w,S,A,q,t[jn[k]],$n[0],Kn[k])):k<32?(O=Pp(r,i,n,a,s,t[Fn[k]],Wn[1],Hn[k]),P=Lp(y,w,S,A,q,t[jn[k]],$n[1],Kn[k])):k<48?(O=Up(r,i,n,a,s,t[Fn[k]],Wn[2],Hn[k]),P=Up(y,w,S,A,q,t[jn[k]],$n[2],Kn[k])):k<64?(O=Lp(r,i,n,a,s,t[Fn[k]],Wn[3],Hn[k]),P=Pp(y,w,S,A,q,t[jn[k]],$n[3],Kn[k])):(O=Np(r,i,n,a,s,t[Fn[k]],Wn[4],Hn[k]),P=Dp(y,w,S,A,q,t[jn[k]],$n[4],Kn[k])),r=s,s=a,a=Xr(n,10),n=i,i=O,y=q,q=A,A=Xr(S,10),S=w,w=P}var W=this._b+n+A|0;this._b=this._c+a+q|0,this._c=this._d+s+y|0,this._d=this._e+r+w|0,this._e=this._a+i+S|0,this._a=W};Ea.prototype._digest=function(){this._block[this._blockOffset]=128,this._blockOffset+=1,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=Ys.alloc?Ys.alloc(20):new Ys(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t};jp.exports=Ea});var Jr=B((WB,Hp)=>{"use strict";b();var Nx=Me().Buffer,Fx=In();function Ba(t,e){this._block=Nx.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}Ba.prototype.update=function(t,e){t=Fx(t,e||"utf8");for(var r=this._block,i=this._blockSize,n=t.length,a=this._len,s=0;s<n;){for(var y=a%i,w=Math.min(n-s,i-y),S=0;S<w;S++)r[y+S]=t[s+S];a+=w,s+=w,a%i===0&&this._update(r)}return this._len+=n,this};Ba.prototype.digest=function(t){var e=this._len%this._blockSize;this._block[e]=128,this._block.fill(0,e+1),e>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=this._len*8;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var i=(r&4294967295)>>>0,n=(r-i)/4294967296;this._block.writeUInt32BE(n,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)}this._update(this._block);var a=this._hash();return t?a.toString(t):a};Ba.prototype._update=function(){throw new Error("_update must be implemented by subclass")};Hp.exports=Ba});var $p=B((GB,Wp)=>{"use strict";b();var jx=K(),Kp=Jr(),Hx=Me().Buffer,Kx=[1518500249,1859775393,-1894007588,-899497514],Wx=new Array(80);function Gn(){this.init(),this._w=Wx,Kp.call(this,64,56)}jx(Gn,Kp);Gn.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function $x(t){return t<<5|t>>>27}function Gx(t){return t<<30|t>>>2}function Vx(t,e,r,i){return t===0?e&r|~e&i:t===2?e&r|e&i|r&i:e^r^i}Gn.prototype._update=function(t){for(var e=this._w,r=this._a|0,i=this._b|0,n=this._c|0,a=this._d|0,s=this._e|0,y=0;y<16;++y)e[y]=t.readInt32BE(y*4);for(;y<80;++y)e[y]=e[y-3]^e[y-8]^e[y-14]^e[y-16];for(var w=0;w<80;++w){var S=~~(w/20),A=$x(r)+Vx(S,i,n,a)+s+e[w]+Kx[S]|0;s=a,a=n,n=Gx(i),i=r,r=A}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0};Gn.prototype._hash=function(){var t=Hx.allocUnsafe(20);return t.writeInt32BE(this._a|0,0),t.writeInt32BE(this._b|0,4),t.writeInt32BE(this._c|0,8),t.writeInt32BE(this._d|0,12),t.writeInt32BE(this._e|0,16),t};Wp.exports=Gn});var zp=B((zB,Vp)=>{"use strict";b();var zx=K(),Gp=Jr(),Zx=Me().Buffer,Yx=[1518500249,1859775393,-1894007588,-899497514],Xx=new Array(80);function Vn(){this.init(),this._w=Xx,Gp.call(this,64,56)}zx(Vn,Gp);Vn.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function Jx(t){return t<<1|t>>>31}function Qx(t){return t<<5|t>>>27}function e3(t){return t<<30|t>>>2}function t3(t,e,r,i){return t===0?e&r|~e&i:t===2?e&r|e&i|r&i:e^r^i}Vn.prototype._update=function(t){for(var e=this._w,r=this._a|0,i=this._b|0,n=this._c|0,a=this._d|0,s=this._e|0,y=0;y<16;++y)e[y]=t.readInt32BE(y*4);for(;y<80;++y)e[y]=Jx(e[y-3]^e[y-8]^e[y-14]^e[y-16]);for(var w=0;w<80;++w){var S=~~(w/20),A=Qx(r)+t3(S,i,n,a)+s+e[w]+Yx[S]|0;s=a,a=n,n=e3(i),i=r,r=A}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0};Vn.prototype._hash=function(){var t=Zx.allocUnsafe(20);return t.writeInt32BE(this._a|0,0),t.writeInt32BE(this._b|0,4),t.writeInt32BE(this._c|0,8),t.writeInt32BE(this._d|0,12),t.writeInt32BE(this._e|0,16),t};Vp.exports=Vn});var Xs=B((YB,Yp)=>{"use strict";b();var r3=K(),Zp=Jr(),i3=Me().Buffer,n3=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],o3=new Array(64);function zn(){this.init(),this._w=o3,Zp.call(this,64,56)}r3(zn,Zp);zn.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function a3(t,e,r){return r^t&(e^r)}function f3(t,e,r){return t&e|r&(t|e)}function s3(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function u3(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function h3(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}function l3(t){return(t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10}zn.prototype._update=function(t){for(var e=this._w,r=this._a|0,i=this._b|0,n=this._c|0,a=this._d|0,s=this._e|0,y=this._f|0,w=this._g|0,S=this._h|0,A=0;A<16;++A)e[A]=t.readInt32BE(A*4);for(;A<64;++A)e[A]=l3(e[A-2])+e[A-7]+h3(e[A-15])+e[A-16]|0;for(var q=0;q<64;++q){var k=S+u3(s)+a3(s,y,w)+n3[q]+e[q]|0,O=s3(r)+f3(r,i,n)|0;S=w,w=y,y=s,s=a+k|0,a=n,n=i,i=r,r=k+O|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0,this._f=y+this._f|0,this._g=w+this._g|0,this._h=S+this._h|0};zn.prototype._hash=function(){var t=i3.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t};Yp.exports=zn});var Jp=B((JB,Xp)=>{"use strict";b();var c3=K(),d3=Xs(),p3=Jr(),v3=Me().Buffer,y3=new Array(64);function Aa(){this.init(),this._w=y3,p3.call(this,64,56)}c3(Aa,d3);Aa.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this};Aa.prototype._hash=function(){var t=v3.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t};Xp.exports=Aa});var Js=B((eA,ov)=>{"use strict";b();var g3=K(),nv=Jr(),m3=Me().Buffer,Qp=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],b3=new Array(160);function Zn(){this.init(),this._w=b3,nv.call(this,128,112)}g3(Zn,nv);Zn.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function ev(t,e,r){return r^t&(e^r)}function tv(t,e,r){return t&e|r&(t|e)}function rv(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function iv(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function w3(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function _3(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function x3(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function M3(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function Ze(t,e){return t>>>0<e>>>0?1:0}Zn.prototype._update=function(t){for(var e=this._w,r=this._ah|0,i=this._bh|0,n=this._ch|0,a=this._dh|0,s=this._eh|0,y=this._fh|0,w=this._gh|0,S=this._hh|0,A=this._al|0,q=this._bl|0,k=this._cl|0,O=this._dl|0,P=this._el|0,W=this._fl|0,Te=this._gl|0,j=this._hl|0,Se=0;Se<32;Se+=2)e[Se]=t.readInt32BE(Se*4),e[Se+1]=t.readInt32BE(Se*4+4);for(;Se<160;Se+=2){var Fe=e[Se-30],je=e[Se-30+1],nr=w3(Fe,je),Ge=_3(je,Fe);Fe=e[Se-4],je=e[Se-4+1];var Tt=x3(Fe,je),De=M3(je,Fe),st=e[Se-14],E=e[Se-14+1],h=e[Se-32],g=e[Se-32+1],c=Ge+E|0,o=nr+st+Ze(c,Ge)|0;c=c+De|0,o=o+Tt+Ze(c,De)|0,c=c+g|0,o=o+h+Ze(c,g)|0,e[Se]=o,e[Se+1]=c}for(var u=0;u<160;u+=2){o=e[u],c=e[u+1];var d=tv(r,i,n),v=tv(A,q,k),p=rv(r,A),f=rv(A,r),m=iv(s,P),_=iv(P,s),l=Qp[u],x=Qp[u+1],I=ev(s,y,w),D=ev(P,W,Te),C=j+_|0,L=S+m+Ze(C,j)|0;C=C+D|0,L=L+I+Ze(C,D)|0,C=C+x|0,L=L+l+Ze(C,x)|0,C=C+c|0,L=L+o+Ze(C,c)|0;var U=f+v|0,N=p+d+Ze(U,f)|0;S=w,j=Te,w=y,Te=W,y=s,W=P,P=O+C|0,s=a+L+Ze(P,O)|0,a=n,O=k,n=i,k=q,i=r,q=A,A=C+U|0,r=L+N+Ze(A,C)|0}this._al=this._al+A|0,this._bl=this._bl+q|0,this._cl=this._cl+k|0,this._dl=this._dl+O|0,this._el=this._el+P|0,this._fl=this._fl+W|0,this._gl=this._gl+Te|0,this._hl=this._hl+j|0,this._ah=this._ah+r+Ze(this._al,A)|0,this._bh=this._bh+i+Ze(this._bl,q)|0,this._ch=this._ch+n+Ze(this._cl,k)|0,this._dh=this._dh+a+Ze(this._dl,O)|0,this._eh=this._eh+s+Ze(this._el,P)|0,this._fh=this._fh+y+Ze(this._fl,W)|0,this._gh=this._gh+w+Ze(this._gl,Te)|0,this._hh=this._hh+S+Ze(this._hl,j)|0};Zn.prototype._hash=function(){var t=m3.allocUnsafe(64);function e(r,i,n){t.writeInt32BE(r,n),t.writeInt32BE(i,n+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t};ov.exports=Zn});var fv=B((rA,av)=>{"use strict";b();var E3=K(),S3=Js(),B3=Jr(),A3=Me().Buffer,R3=new Array(160);function Ra(){this.init(),this._w=R3,B3.call(this,128,112)}E3(Ra,S3);Ra.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this};Ra.prototype._hash=function(){var t=A3.allocUnsafe(48);function e(r,i,n){t.writeInt32BE(r,n),t.writeInt32BE(i,n+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t};av.exports=Ra});var qa=B((nA,Yt)=>{"use strict";b();Yt.exports=function(e){var r=e.toLowerCase(),i=Yt.exports[r];if(!i)throw new Error(r+" is not supported (we accept pull requests)");return new i};Yt.exports.sha=$p();Yt.exports.sha1=zp();Yt.exports.sha224=Jp();Yt.exports.sha256=Xs();Yt.exports.sha384=fv();Yt.exports.sha512=Js()});var Xt=B((aA,uv)=>{"use strict";b();var q3=Me().Buffer,sv=Is().Transform,T3=Ti().StringDecoder,k3=K(),I3=In();function xt(t){sv.call(this),this.hashMode=typeof t=="string",this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}k3(xt,sv);xt.prototype.update=function(t,e,r){var i=I3(t,e),n=this._update(i);return this.hashMode?this:(r&&(n=this._toString(n,r)),n)};xt.prototype.setAutoPadding=function(){};xt.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")};xt.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")};xt.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")};xt.prototype._transform=function(t,e,r){var i;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(n){i=n}finally{r(i)}};xt.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(r){e=r}t(e)};xt.prototype._finalOrDigest=function(t){var e=this.__final()||q3.alloc(0);return t&&(e=this._toString(e,t,!0)),e};xt.prototype._toString=function(t,e,r){if(this._decoder||(this._decoder=new T3(e),this._encoding=e),this._encoding!==e)throw new Error("can\u2019t switch encodings");var i=this._decoder.write(t);return r&&(i+=this._decoder.end()),i};uv.exports=xt});var Yn=B((sA,lv)=>{"use strict";b();var C3=K(),O3=ca(),D3=Sa(),P3=qa(),hv=Xt();function Ta(t){hv.call(this,"digest"),this._hash=t}C3(Ta,hv);Ta.prototype._update=function(t){this._hash.update(t)};Ta.prototype._final=function(){return this._hash.digest()};lv.exports=function(e){return e=e.toLowerCase(),e==="md5"?new O3:e==="rmd160"||e==="ripemd160"?new D3:new Ta(P3(e))}});var pv=B((hA,dv)=>{"use strict";b();var U3=K(),Qr=Me().Buffer,cv=Xt(),L3=Qr.alloc(128),Li=64;function ka(t,e){cv.call(this,"digest"),typeof e=="string"&&(e=Qr.from(e)),this._alg=t,this._key=e,e.length>Li?e=t(e):e.length<Li&&(e=Qr.concat([e,L3],Li));for(var r=this._ipad=Qr.allocUnsafe(Li),i=this._opad=Qr.allocUnsafe(Li),n=0;n<Li;n++)r[n]=e[n]^54,i[n]=e[n]^92;this._hash=[r]}U3(ka,cv);ka.prototype._update=function(t){this._hash.push(t)};ka.prototype._final=function(){var t=this._alg(Qr.concat(this._hash));return this._alg(Qr.concat([this._opad,t]))};dv.exports=ka});var Qs=B((cA,vv)=>{b();var N3=ca();vv.exports=function(t){return new N3().update(t).digest()}});var mv=B((pA,gv)=>{"use strict";b();var F3=K(),j3=pv(),yv=Xt(),Xn=Me().Buffer,H3=Qs(),eu=Sa(),tu=qa(),K3=Xn.alloc(128);function Jn(t,e){yv.call(this,"digest"),typeof e=="string"&&(e=Xn.from(e));var r=t==="sha512"||t==="sha384"?128:64;if(this._alg=t,this._key=e,e.length>r){var i=t==="rmd160"?new eu:tu(t);e=i.update(e).digest()}else e.length<r&&(e=Xn.concat([e,K3],r));for(var n=this._ipad=Xn.allocUnsafe(r),a=this._opad=Xn.allocUnsafe(r),s=0;s<r;s++)n[s]=e[s]^54,a[s]=e[s]^92;this._hash=t==="rmd160"?new eu:tu(t),this._hash.update(n)}F3(Jn,yv);Jn.prototype._update=function(t){this._hash.update(t)};Jn.prototype._final=function(){var t=this._hash.digest(),e=this._alg==="rmd160"?new eu:tu(this._alg);return e.update(this._opad).update(t).digest()};gv.exports=function(e,r){return e=e.toLowerCase(),e==="rmd160"||e==="ripemd160"?new Jn("rmd160",r):e==="md5"?new j3(H3,r):new Jn(e,r)}});var Ia=B((yA,bv)=>{"use strict";b();bv.exports={}});var ru=B((mA,wv)=>{"use strict";b();var W3=isFinite,$3=Math.pow(2,30)-1;wv.exports=function(t,e){if(typeof t!="number")throw new TypeError("Iterations not a number");if(t<0||!W3(t))throw new TypeError("Bad iterations");if(typeof e!="number")throw new TypeError("Key length not a number");if(e<0||e>$3||e!==e)throw new TypeError("Bad key length")}});var iu=B((wA,xv)=>{"use strict";b();var Ca;globalThis.process&&globalThis.process.browser?Ca="utf-8":globalThis.process&&globalThis.process.version?(_v=parseInt(M.default.version.split(".")[0].slice(1),10),Ca=_v>=6?"utf-8":"binary"):Ca="utf-8";var _v;xv.exports=Ca});var nu=B((xA,Sv)=>{"use strict";b();var G3=Me().Buffer,V3=In(),Ev=typeof Uint8Array<"u",z3=Ev&&typeof ArrayBuffer<"u",Mv=z3&&ArrayBuffer.isView;Sv.exports=function(t,e,r){if(typeof t=="string"||G3.isBuffer(t)||Ev&&t instanceof Uint8Array||Mv&&Mv(t))return V3(t,e);throw new TypeError(r+" must be a string, a Buffer, a Uint8Array, or a DataView")}});var ou=B((EA,qv)=>{"use strict";b();var Z3=Qs(),Y3=Sa(),X3=qa(),ei=Me().Buffer,J3=ru(),Bv=iu(),Av=nu(),Q3=ei.alloc(128),Oa={__proto__:null,md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,"sha512-256":32,ripemd160:20,rmd160:20},e8={__proto__:null,"sha-1":"sha1","sha-224":"sha224","sha-256":"sha256","sha-384":"sha384","sha-512":"sha512","ripemd-160":"ripemd160"};function t8(t){return new Y3().update(t).digest()}function r8(t){function e(r){return X3(t).update(r).digest()}return t==="rmd160"||t==="ripemd160"?t8:t==="md5"?Z3:e}function Rv(t,e,r){var i=r8(t),n=t==="sha512"||t==="sha384"?128:64;e.length>n?e=i(e):e.length<n&&(e=ei.concat([e,Q3],n));for(var a=ei.allocUnsafe(n+Oa[t]),s=ei.allocUnsafe(n+Oa[t]),y=0;y<n;y++)a[y]=e[y]^54,s[y]=e[y]^92;var w=ei.allocUnsafe(n+r+4);a.copy(w,0,0,n),this.ipad1=w,this.ipad2=a,this.opad=s,this.alg=t,this.blocksize=n,this.hash=i,this.size=Oa[t]}Rv.prototype.run=function(t,e){t.copy(e,this.blocksize);var r=this.hash(e);return r.copy(this.opad,this.blocksize),this.hash(this.opad)};function i8(t,e,r,i,n){J3(r,i),t=Av(t,Bv,"Password"),e=Av(e,Bv,"Salt");var a=(n||"sha1").toLowerCase(),s=e8[a]||a,y=Oa[s];if(typeof y!="number"||!y)throw new TypeError("Digest algorithm not supported: "+n);var w=new Rv(s,t,e.length),S=ei.allocUnsafe(i),A=ei.allocUnsafe(e.length+4);e.copy(A,0,0,e.length);for(var q=0,k=y,O=Math.ceil(i/k),P=1;P<=O;P++){A.writeUInt32BE(P,e.length);for(var W=w.run(A,w.ipad1),Te=W,j=1;j<r;j++){Te=w.run(Te,w.ipad2);for(var Se=0;Se<k;Se++)W[Se]^=Te[Se]}W.copy(S,q),q+=k}return S}qv.exports=i8});var Pv=B((BA,Dv)=>{"use strict";b();var Cv=Me().Buffer,n8=ru(),Tv=iu(),kv=ou(),Iv=nu(),Da,Qn=globalThis.crypto&&globalThis.crypto.subtle,o8={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},au=[],ti;function fu(){return ti||(globalThis.process&&globalThis.process.nextTick?ti=globalThis.process.nextTick:globalThis.queueMicrotask?ti=globalThis.queueMicrotask:globalThis.setImmediate?ti=globalThis.setImmediate:ti=globalThis.setTimeout,ti)}function Ov(t,e,r,i,n){return Qn.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then(function(a){return Qn.deriveBits({name:"PBKDF2",salt:e,iterations:r,hash:{name:n}},a,i<<3)}).then(function(a){return Cv.from(a)})}function a8(t){if(globalThis.process&&!globalThis.process.browser||!Qn||!Qn.importKey||!Qn.deriveBits)return Promise.resolve(!1);if(au[t]!==void 0)return au[t];Da=Da||Cv.alloc(8);var e=Ov(Da,Da,10,128,t).then(function(){return!0},function(){return!1});return au[t]=e,e}function f8(t,e){t.then(function(r){fu()(function(){e(null,r)})},function(r){fu()(function(){e(r)})})}Dv.exports=function(t,e,r,i,n,a){if(typeof n=="function"&&(a=n,n=void 0),n8(r,i),t=Iv(t,Tv,"Password"),e=Iv(e,Tv,"Salt"),typeof a!="function")throw new Error("No callback provided to pbkdf2");n=n||"sha1";var s=o8[n.toLowerCase()];if(!s||typeof globalThis.Promise!="function"){fu()(function(){var y;try{y=kv(t,e,r,i,n)}catch(w){a(w);return}a(null,y)});return}f8(a8(s).then(function(y){return y?Ov(t,e,r,i,s):kv(t,e,r,i,n)}),a)}});var uu=B(su=>{"use strict";b();su.pbkdf2=Pv();su.pbkdf2Sync=ou()});var hu=B(dt=>{"use strict";b();dt.readUInt32BE=function(e,r){var i=e[0+r]<<24|e[1+r]<<16|e[2+r]<<8|e[3+r];return i>>>0};dt.writeUInt32BE=function(e,r,i){e[0+i]=r>>>24,e[1+i]=r>>>16&255,e[2+i]=r>>>8&255,e[3+i]=r&255};dt.ip=function(e,r,i,n){for(var a=0,s=0,y=6;y>=0;y-=2){for(var w=0;w<=24;w+=8)a<<=1,a|=r>>>w+y&1;for(var w=0;w<=24;w+=8)a<<=1,a|=e>>>w+y&1}for(var y=6;y>=0;y-=2){for(var w=1;w<=25;w+=8)s<<=1,s|=r>>>w+y&1;for(var w=1;w<=25;w+=8)s<<=1,s|=e>>>w+y&1}i[n+0]=a>>>0,i[n+1]=s>>>0};dt.rip=function(e,r,i,n){for(var a=0,s=0,y=0;y<4;y++)for(var w=24;w>=0;w-=8)a<<=1,a|=r>>>w+y&1,a<<=1,a|=e>>>w+y&1;for(var y=4;y<8;y++)for(var w=24;w>=0;w-=8)s<<=1,s|=r>>>w+y&1,s<<=1,s|=e>>>w+y&1;i[n+0]=a>>>0,i[n+1]=s>>>0};dt.pc1=function(e,r,i,n){for(var a=0,s=0,y=7;y>=5;y--){for(var w=0;w<=24;w+=8)a<<=1,a|=r>>w+y&1;for(var w=0;w<=24;w+=8)a<<=1,a|=e>>w+y&1}for(var w=0;w<=24;w+=8)a<<=1,a|=r>>w+y&1;for(var y=1;y<=3;y++){for(var w=0;w<=24;w+=8)s<<=1,s|=r>>w+y&1;for(var w=0;w<=24;w+=8)s<<=1,s|=e>>w+y&1}for(var w=0;w<=24;w+=8)s<<=1,s|=e>>w+y&1;i[n+0]=a>>>0,i[n+1]=s>>>0};dt.r28shl=function(e,r){return e<<r&268435455|e>>>28-r};var Pa=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];dt.pc2=function(e,r,i,n){for(var a=0,s=0,y=Pa.length>>>1,w=0;w<y;w++)a<<=1,a|=e>>>Pa[w]&1;for(var w=y;w<Pa.length;w++)s<<=1,s|=r>>>Pa[w]&1;i[n+0]=a>>>0,i[n+1]=s>>>0};dt.expand=function(e,r,i){var n=0,a=0;n=(e&1)<<5|e>>>27;for(var s=23;s>=15;s-=4)n<<=6,n|=e>>>s&63;for(var s=11;s>=3;s-=4)a|=e>>>s&63,a<<=6;a|=(e&31)<<1|e>>>31,r[i+0]=n>>>0,r[i+1]=a>>>0};var Uv=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];dt.substitute=function(e,r){for(var i=0,n=0;n<4;n++){var a=e>>>18-n*6&63,s=Uv[n*64+a];i<<=4,i|=s}for(var n=0;n<4;n++){var a=r>>>18-n*6&63,s=Uv[256+n*64+a];i<<=4,i|=s}return i>>>0};var Lv=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];dt.permute=function(e){for(var r=0,i=0;i<Lv.length;i++)r<<=1,r|=e>>>Lv[i]&1;return r>>>0};dt.padSplit=function(e,r,i){for(var n=e.toString(2);n.length<r;)n="0"+n;for(var a=[],s=0;s<r;s+=i)a.push(n.slice(s,s+i));return a.join(" ")}});var Ni=B((IA,Fv)=>{b();Fv.exports=Nv;function Nv(t,e){if(!t)throw new Error(e||"Assertion failed")}Nv.equal=function(e,r,i){if(e!=r)throw new Error(i||"Assertion failed: "+e+" != "+r)}});var Ua=B((OA,jv)=>{"use strict";b();var s8=Ni();function pt(t){this.options=t,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=t.padding!==!1}jv.exports=pt;pt.prototype._init=function(){};pt.prototype.update=function(e){return e.length===0?[]:this.type==="decrypt"?this._updateDecrypt(e):this._updateEncrypt(e)};pt.prototype._buffer=function(e,r){for(var i=Math.min(this.buffer.length-this.bufferOff,e.length-r),n=0;n<i;n++)this.buffer[this.bufferOff+n]=e[r+n];return this.bufferOff+=i,i};pt.prototype._flushBuffer=function(e,r){return this._update(this.buffer,0,e,r),this.bufferOff=0,this.blockSize};pt.prototype._updateEncrypt=function(e){var r=0,i=0,n=(this.bufferOff+e.length)/this.blockSize|0,a=new Array(n*this.blockSize);this.bufferOff!==0&&(r+=this._buffer(e,r),this.bufferOff===this.buffer.length&&(i+=this._flushBuffer(a,i)));for(var s=e.length-(e.length-r)%this.blockSize;r<s;r+=this.blockSize)this._update(e,r,a,i),i+=this.blockSize;for(;r<e.length;r++,this.bufferOff++)this.buffer[this.bufferOff]=e[r];return a};pt.prototype._updateDecrypt=function(e){for(var r=0,i=0,n=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,a=new Array(n*this.blockSize);n>0;n--)r+=this._buffer(e,r),i+=this._flushBuffer(a,i);return r+=this._buffer(e,r),a};pt.prototype.final=function(e){var r;e&&(r=this.update(e));var i;return this.type==="encrypt"?i=this._finalEncrypt():i=this._finalDecrypt(),r?r.concat(i):i};pt.prototype._pad=function(e,r){if(r===0)return!1;for(;r<e.length;)e[r++]=0;return!0};pt.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e};pt.prototype._unpad=function(e){return e};pt.prototype._finalDecrypt=function(){s8.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}});var lu=B((PA,Wv)=>{"use strict";b();var Hv=Ni(),u8=K(),$e=hu(),Kv=Ua();function h8(){this.tmp=new Array(2),this.keys=null}function Nt(t){Kv.call(this,t);var e=new h8;this._desState=e,this.deriveKeys(e,t.key)}u8(Nt,Kv);Wv.exports=Nt;Nt.create=function(e){return new Nt(e)};var l8=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];Nt.prototype.deriveKeys=function(e,r){e.keys=new Array(32),Hv.equal(r.length,this.blockSize,"Invalid key length");var i=$e.readUInt32BE(r,0),n=$e.readUInt32BE(r,4);$e.pc1(i,n,e.tmp,0),i=e.tmp[0],n=e.tmp[1];for(var a=0;a<e.keys.length;a+=2){var s=l8[a>>>1];i=$e.r28shl(i,s),n=$e.r28shl(n,s),$e.pc2(i,n,e.keys,a)}};Nt.prototype._update=function(e,r,i,n){var a=this._desState,s=$e.readUInt32BE(e,r),y=$e.readUInt32BE(e,r+4);$e.ip(s,y,a.tmp,0),s=a.tmp[0],y=a.tmp[1],this.type==="encrypt"?this._encrypt(a,s,y,a.tmp,0):this._decrypt(a,s,y,a.tmp,0),s=a.tmp[0],y=a.tmp[1],$e.writeUInt32BE(i,s,n),$e.writeUInt32BE(i,y,n+4)};Nt.prototype._pad=function(e,r){if(this.padding===!1)return!1;for(var i=e.length-r,n=r;n<e.length;n++)e[n]=i;return!0};Nt.prototype._unpad=function(e){if(this.padding===!1)return e;for(var r=e[e.length-1],i=e.length-r;i<e.length;i++)Hv.equal(e[i],r);return e.slice(0,e.length-r)};Nt.prototype._encrypt=function(e,r,i,n,a){for(var s=r,y=i,w=0;w<e.keys.length;w+=2){var S=e.keys[w],A=e.keys[w+1];$e.expand(y,e.tmp,0),S^=e.tmp[0],A^=e.tmp[1];var q=$e.substitute(S,A),k=$e.permute(q),O=y;y=(s^k)>>>0,s=O}$e.rip(y,s,n,a)};Nt.prototype._decrypt=function(e,r,i,n,a){for(var s=i,y=r,w=e.keys.length-2;w>=0;w-=2){var S=e.keys[w],A=e.keys[w+1];$e.expand(s,e.tmp,0),S^=e.tmp[0],A^=e.tmp[1];var q=$e.substitute(S,A),k=$e.permute(q),O=s;s=(y^k)>>>0,y=O}$e.rip(s,y,n,a)}});var Gv=B($v=>{"use strict";b();var c8=Ni(),d8=K(),La={};function p8(t){c8.equal(t.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e<this.iv.length;e++)this.iv[e]=t[e]}function v8(t){function e(a){t.call(this,a),this._cbcInit()}d8(e,t);for(var r=Object.keys(La),i=0;i<r.length;i++){var n=r[i];e.prototype[n]=La[n]}return e.create=function(s){return new e(s)},e}$v.instantiate=v8;La._cbcInit=function(){var e=new p8(this.options.iv);this._cbcState=e};La._update=function(e,r,i,n){var a=this._cbcState,s=this.constructor.super_.prototype,y=a.iv;if(this.type==="encrypt"){for(var w=0;w<this.blockSize;w++)y[w]^=e[r+w];s._update.call(this,y,0,i,n);for(var w=0;w<this.blockSize;w++)y[w]=i[n+w]}else{s._update.call(this,e,r,i,n);for(var w=0;w<this.blockSize;w++)i[n+w]^=y[w];for(var w=0;w<this.blockSize;w++)y[w]=e[r+w]}}});var Zv=B((FA,zv)=>{"use strict";b();var y8=Ni(),g8=K(),Vv=Ua(),dr=lu();function m8(t,e){y8.equal(e.length,24,"Invalid key length");var r=e.slice(0,8),i=e.slice(8,16),n=e.slice(16,24);t==="encrypt"?this.ciphers=[dr.create({type:"encrypt",key:r}),dr.create({type:"decrypt",key:i}),dr.create({type:"encrypt",key:n})]:this.ciphers=[dr.create({type:"decrypt",key:n}),dr.create({type:"encrypt",key:i}),dr.create({type:"decrypt",key:r})]}function ri(t){Vv.call(this,t);var e=new m8(this.type,this.options.key);this._edeState=e}g8(ri,Vv);zv.exports=ri;ri.create=function(e){return new ri(e)};ri.prototype._update=function(e,r,i,n){var a=this._edeState;a.ciphers[0]._update(e,r,i,n),a.ciphers[1]._update(i,n,i,n),a.ciphers[2]._update(i,n,i,n)};ri.prototype._pad=dr.prototype._pad;ri.prototype._unpad=dr.prototype._unpad});var Yv=B(Fi=>{"use strict";b();Fi.utils=hu();Fi.Cipher=Ua();Fi.DES=lu();Fi.CBC=Gv();Fi.EDE=Zv()});var Qv=B((WA,Jv)=>{b();var Xv=Xt(),Jt=Yv(),b8=K(),ii=Me().Buffer,eo={"des-ede3-cbc":Jt.CBC.instantiate(Jt.EDE),"des-ede3":Jt.EDE,"des-ede-cbc":Jt.CBC.instantiate(Jt.EDE),"des-ede":Jt.EDE,"des-cbc":Jt.CBC.instantiate(Jt.DES),"des-ecb":Jt.DES};eo.des=eo["des-cbc"];eo.des3=eo["des-ede3-cbc"];Jv.exports=Na;b8(Na,Xv);function Na(t){Xv.call(this);var e=t.mode.toLowerCase(),r=eo[e],i;t.decrypt?i="decrypt":i="encrypt";var n=t.key;ii.isBuffer(n)||(n=ii.from(n)),(e==="des-ede"||e==="des-ede-cbc")&&(n=ii.concat([n,n.slice(0,8)]));var a=t.iv;ii.isBuffer(a)||(a=ii.from(a)),this._des=r.create({key:n,iv:a,type:i})}Na.prototype._update=function(t){return ii.from(this._des.update(t))};Na.prototype._final=function(){return ii.from(this._des.final())}});var ey=B(cu=>{b();cu.encrypt=function(t,e){return t._cipher.encryptBlock(e)};cu.decrypt=function(t,e){return t._cipher.decryptBlock(e)}});var ji=B((zA,ty)=>{b();ty.exports=function(e,r){for(var i=Math.min(e.length,r.length),n=new R.Buffer(i),a=0;a<i;++a)n[a]=e[a]^r[a];return n}});var iy=B(du=>{b();var ry=ji();du.encrypt=function(t,e){var r=ry(e,t._prev);return t._prev=t._cipher.encryptBlock(r),t._prev};du.decrypt=function(t,e){var r=t._prev;t._prev=e;var i=t._cipher.decryptBlock(e);return ry(i,r)}});var ay=B(oy=>{b();var to=Me().Buffer,w8=ji();function ny(t,e,r){var i=e.length,n=w8(e,t._cache);return t._cache=t._cache.slice(i),t._prev=to.concat([t._prev,r?e:n]),n}oy.encrypt=function(t,e,r){for(var i=to.allocUnsafe(0),n;e.length;)if(t._cache.length===0&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=to.allocUnsafe(0)),t._cache.length<=e.length)n=t._cache.length,i=to.concat([i,ny(t,e.slice(0,n),r)]),e=e.slice(n);else{i=to.concat([i,ny(t,e,r)]);break}return i}});var sy=B(fy=>{b();var pu=Me().Buffer;function _8(t,e,r){var i=t._cipher.encryptBlock(t._prev),n=i[0]^e;return t._prev=pu.concat([t._prev.slice(1),pu.from([r?e:n])]),n}fy.encrypt=function(t,e,r){for(var i=e.length,n=pu.allocUnsafe(i),a=-1;++a<i;)n[a]=_8(t,e[a],r);return n}});var hy=B(uy=>{b();var Fa=Me().Buffer;function x8(t,e,r){for(var i,n=-1,a=8,s=0,y,w;++n<a;)i=t._cipher.encryptBlock(t._prev),y=e&1<<7-n?128:0,w=i[0]^y,s+=(w&128)>>n%8,t._prev=M8(t._prev,r?y:w);return s}function M8(t,e){var r=t.length,i=-1,n=Fa.allocUnsafe(t.length);for(t=Fa.concat([t,Fa.from([e])]);++i<r;)n[i]=t[i]<<1|t[i+1]>>7;return n}uy.encrypt=function(t,e,r){for(var i=e.length,n=Fa.allocUnsafe(i),a=-1;++a<i;)n[a]=x8(t,e[a],r);return n}});var cy=B(ly=>{b();var E8=ji();function S8(t){return t._prev=t._cipher.encryptBlock(t._prev),t._prev}ly.encrypt=function(t,e){for(;t._cache.length<e.length;)t._cache=R.Buffer.concat([t._cache,S8(t)]);var r=t._cache.slice(0,e.length);return t._cache=t._cache.slice(e.length),E8(e,r)}});var vu=B((a7,dy)=>{b();function B8(t){for(var e=t.length,r;e--;)if(r=t.readUInt8(e),r===255)t.writeUInt8(0,e);else{r++,t.writeUInt8(r,e);break}}dy.exports=B8});var gu=B(vy=>{b();var A8=ji(),py=Me().Buffer,R8=vu();function q8(t){var e=t._cipher.encryptBlockRaw(t._prev);return R8(t._prev),e}var yu=16;vy.encrypt=function(t,e){var r=Math.ceil(e.length/yu),i=t._cache.length;t._cache=py.concat([t._cache,py.allocUnsafe(r*yu)]);for(var n=0;n<r;n++){var a=q8(t),s=i+n*yu;t._cache.writeUInt32BE(a[0],s+0),t._cache.writeUInt32BE(a[1],s+4),t._cache.writeUInt32BE(a[2],s+8),t._cache.writeUInt32BE(a[3],s+12)}var y=t._cache.slice(0,e.length);return t._cache=t._cache.slice(e.length),A8(e,y)}});var mu=B((h7,T8)=>{T8.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}});var Ha=B((l7,yy)=>{b();var k8={ECB:ey(),CBC:iy(),CFB:ay(),CFB8:sy(),CFB1:hy(),OFB:cy(),CTR:gu(),GCM:gu()},ja=mu();for(bu in ja)ja[bu].module=k8[ja[bu].mode];var bu;yy.exports=ja});var ro=B((d7,my)=>{b();var Ka=Me().Buffer;function _u(t){Ka.isBuffer(t)||(t=Ka.from(t));for(var e=t.length/4|0,r=new Array(e),i=0;i<e;i++)r[i]=t.readUInt32BE(i*4);return r}function wu(t){for(var e=0;e<t.length;t++)t[e]=0}function gy(t,e,r,i,n){for(var a=r[0],s=r[1],y=r[2],w=r[3],S=t[0]^e[0],A=t[1]^e[1],q=t[2]^e[2],k=t[3]^e[3],O,P,W,Te,j=4,Se=1;Se<n;Se++)O=a[S>>>24]^s[A>>>16&255]^y[q>>>8&255]^w[k&255]^e[j++],P=a[A>>>24]^s[q>>>16&255]^y[k>>>8&255]^w[S&255]^e[j++],W=a[q>>>24]^s[k>>>16&255]^y[S>>>8&255]^w[A&255]^e[j++],Te=a[k>>>24]^s[S>>>16&255]^y[A>>>8&255]^w[q&255]^e[j++],S=O,A=P,q=W,k=Te;return O=(i[S>>>24]<<24|i[A>>>16&255]<<16|i[q>>>8&255]<<8|i[k&255])^e[j++],P=(i[A>>>24]<<24|i[q>>>16&255]<<16|i[k>>>8&255]<<8|i[S&255])^e[j++],W=(i[q>>>24]<<24|i[k>>>16&255]<<16|i[S>>>8&255]<<8|i[A&255])^e[j++],Te=(i[k>>>24]<<24|i[S>>>16&255]<<16|i[A>>>8&255]<<8|i[q&255])^e[j++],O=O>>>0,P=P>>>0,W=W>>>0,Te=Te>>>0,[O,P,W,Te]}var I8=[0,1,2,4,8,16,32,64,128,27,54],We=(function(){for(var t=new Array(256),e=0;e<256;e++)e<128?t[e]=e<<1:t[e]=e<<1^283;for(var r=[],i=[],n=[[],[],[],[]],a=[[],[],[],[]],s=0,y=0,w=0;w<256;++w){var S=y^y<<1^y<<2^y<<3^y<<4;S=S>>>8^S&255^99,r[s]=S,i[S]=s;var A=t[s],q=t[A],k=t[q],O=t[S]*257^S*16843008;n[0][s]=O<<24|O>>>8,n[1][s]=O<<16|O>>>16,n[2][s]=O<<8|O>>>24,n[3][s]=O,O=k*16843009^q*65537^A*257^s*16843008,a[0][S]=O<<24|O>>>8,a[1][S]=O<<16|O>>>16,a[2][S]=O<<8|O>>>24,a[3][S]=O,s===0?s=y=1:(s=A^t[t[t[k^A]]],y^=t[t[y]])}return{SBOX:r,INV_SBOX:i,SUB_MIX:n,INV_SUB_MIX:a}})();function vt(t){this._key=_u(t),this._reset()}vt.blockSize=16;vt.keySize=256/8;vt.prototype.blockSize=vt.blockSize;vt.prototype.keySize=vt.keySize;vt.prototype._reset=function(){for(var t=this._key,e=t.length,r=e+6,i=(r+1)*4,n=[],a=0;a<e;a++)n[a]=t[a];for(a=e;a<i;a++){var s=n[a-1];a%e===0?(s=s<<8|s>>>24,s=We.SBOX[s>>>24]<<24|We.SBOX[s>>>16&255]<<16|We.SBOX[s>>>8&255]<<8|We.SBOX[s&255],s^=I8[a/e|0]<<24):e>6&&a%e===4&&(s=We.SBOX[s>>>24]<<24|We.SBOX[s>>>16&255]<<16|We.SBOX[s>>>8&255]<<8|We.SBOX[s&255]),n[a]=n[a-e]^s}for(var y=[],w=0;w<i;w++){var S=i-w,A=n[S-(w%4?0:4)];w<4||S<=4?y[w]=A:y[w]=We.INV_SUB_MIX[0][We.SBOX[A>>>24]]^We.INV_SUB_MIX[1][We.SBOX[A>>>16&255]]^We.INV_SUB_MIX[2][We.SBOX[A>>>8&255]]^We.INV_SUB_MIX[3][We.SBOX[A&255]]}this._nRounds=r,this._keySchedule=n,this._invKeySchedule=y};vt.prototype.encryptBlockRaw=function(t){return t=_u(t),gy(t,this._keySchedule,We.SUB_MIX,We.SBOX,this._nRounds)};vt.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),r=Ka.allocUnsafe(16);return r.writeUInt32BE(e[0],0),r.writeUInt32BE(e[1],4),r.writeUInt32BE(e[2],8),r.writeUInt32BE(e[3],12),r};vt.prototype.decryptBlock=function(t){t=_u(t);var e=t[1];t[1]=t[3],t[3]=e;var r=gy(t,this._invKeySchedule,We.INV_SUB_MIX,We.INV_SBOX,this._nRounds),i=Ka.allocUnsafe(16);return i.writeUInt32BE(r[0],0),i.writeUInt32BE(r[3],4),i.writeUInt32BE(r[2],8),i.writeUInt32BE(r[1],12),i};vt.prototype.scrub=function(){wu(this._keySchedule),wu(this._invKeySchedule),wu(this._key)};my.exports.AES=vt});var _y=B((v7,wy)=>{b();var Hi=Me().Buffer,C8=Hi.alloc(16,0);function O8(t){return[t.readUInt32BE(0),t.readUInt32BE(4),t.readUInt32BE(8),t.readUInt32BE(12)]}function by(t){var e=Hi.allocUnsafe(16);return e.writeUInt32BE(t[0]>>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function io(t){this.h=t,this.state=Hi.alloc(16,0),this.cache=Hi.allocUnsafe(0)}io.prototype.ghash=function(t){for(var e=-1;++e<t.length;)this.state[e]^=t[e];this._multiply()};io.prototype._multiply=function(){for(var t=O8(this.h),e=[0,0,0,0],r,i,n,a=-1;++a<128;){for(i=(this.state[~~(a/8)]&1<<7-a%8)!==0,i&&(e[0]^=t[0],e[1]^=t[1],e[2]^=t[2],e[3]^=t[3]),n=(t[3]&1)!==0,r=3;r>0;r--)t[r]=t[r]>>>1|(t[r-1]&1)<<31;t[0]=t[0]>>>1,n&&(t[0]=t[0]^225<<24)}this.state=by(e)};io.prototype.update=function(t){this.cache=Hi.concat([this.cache,t]);for(var e;this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)};io.prototype.final=function(t,e){return this.cache.length&&this.ghash(Hi.concat([this.cache,C8],16)),this.ghash(by([0,t,0,e])),this.state};wy.exports=io});var xu=B((g7,Ey)=>{b();var D8=ro(),ot=Me().Buffer,xy=Xt(),P8=K(),My=_y(),U8=ji(),L8=vu();function N8(t,e){var r=0;t.length!==e.length&&r++;for(var i=Math.min(t.length,e.length),n=0;n<i;++n)r+=t[n]^e[n];return r}function F8(t,e,r){if(e.length===12)return t._finID=ot.concat([e,ot.from([0,0,0,1])]),ot.concat([e,ot.from([0,0,0,2])]);var i=new My(r),n=e.length,a=n%16;i.update(e),a&&(a=16-a,i.update(ot.alloc(a,0))),i.update(ot.alloc(8,0));var s=n*8,y=ot.alloc(8);y.writeUIntBE(s,0,8),i.update(y),t._finID=i.state;var w=ot.from(t._finID);return L8(w),w}function ni(t,e,r,i){xy.call(this);var n=ot.alloc(4,0);this._cipher=new D8.AES(e);var a=this._cipher.encryptBlock(n);this._ghash=new My(a),r=F8(this,r,a),this._prev=ot.from(r),this._cache=ot.allocUnsafe(0),this._secCache=ot.allocUnsafe(0),this._decrypt=i,this._alen=0,this._len=0,this._mode=t,this._authTag=null,this._called=!1}P8(ni,xy);ni.prototype._update=function(t){if(!this._called&&this._alen){var e=16-this._alen%16;e<16&&(e=ot.alloc(e,0),this._ghash.update(e))}this._called=!0;var r=this._mode.encrypt(this,t);return this._decrypt?this._ghash.update(t):this._ghash.update(r),this._len+=t.length,r};ni.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var t=U8(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&N8(t,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=t,this._cipher.scrub()};ni.prototype.getAuthTag=function(){if(this._decrypt||!ot.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag};ni.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e};ni.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length};Ey.exports=ni});var Eu=B((b7,By)=>{b();var j8=ro(),Mu=Me().Buffer,Sy=Xt(),H8=K();function Wa(t,e,r,i){Sy.call(this),this._cipher=new j8.AES(e),this._prev=Mu.from(r),this._cache=Mu.allocUnsafe(0),this._secCache=Mu.allocUnsafe(0),this._decrypt=i,this._mode=t}H8(Wa,Sy);Wa.prototype._update=function(t){return this._mode.encrypt(this,t,this._decrypt)};Wa.prototype._final=function(){this._cipher.scrub()};By.exports=Wa});var no=B((_7,Ay)=>{b();var oi=Me().Buffer,K8=ca();function W8(t,e,r,i){if(oi.isBuffer(t)||(t=oi.from(t,"binary")),e&&(oi.isBuffer(e)||(e=oi.from(e,"binary")),e.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var n=r/8,a=oi.alloc(n),s=oi.alloc(i||0),y=oi.alloc(0);n>0||i>0;){var w=new K8;w.update(y),w.update(t),e&&w.update(e),y=w.digest();var S=0;if(n>0){var A=a.length-n;S=Math.min(n,y.length),y.copy(a,A,0,S),n-=S}if(S<y.length&&i>0){var q=s.length-i,k=Math.min(i,y.length-S);y.copy(s,q,S,S+k),i-=k}}return y.fill(0),{key:a,iv:s}}Ay.exports=W8});var ky=B(Su=>{b();var Ry=Ha(),$8=xu(),Qt=Me().Buffer,G8=Eu(),qy=Xt(),V8=ro(),z8=no(),Z8=K();function oo(t,e,r){qy.call(this),this._cache=new $a,this._cipher=new V8.AES(e),this._prev=Qt.from(r),this._mode=t,this._autopadding=!0}Z8(oo,qy);oo.prototype._update=function(t){this._cache.add(t);for(var e,r,i=[];e=this._cache.get();)r=this._mode.encrypt(this,e),i.push(r);return Qt.concat(i)};var Y8=Qt.alloc(16,16);oo.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return t=this._mode.encrypt(this,t),this._cipher.scrub(),t;if(!t.equals(Y8))throw this._cipher.scrub(),new Error("data not multiple of block length")};oo.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this};function $a(){this.cache=Qt.allocUnsafe(0)}$a.prototype.add=function(t){this.cache=Qt.concat([this.cache,t])};$a.prototype.get=function(){if(this.cache.length>15){var t=this.cache.slice(0,16);return this.cache=this.cache.slice(16),t}return null};$a.prototype.flush=function(){for(var t=16-this.cache.length,e=Qt.allocUnsafe(t),r=-1;++r<t;)e.writeUInt8(t,r);return Qt.concat([this.cache,e])};function Ty(t,e,r){var i=Ry[t.toLowerCase()];if(!i)throw new TypeError("invalid suite type");if(typeof e=="string"&&(e=Qt.from(e)),e.length!==i.key/8)throw new TypeError("invalid key length "+e.length);if(typeof r=="string"&&(r=Qt.from(r)),i.mode!=="GCM"&&r.length!==i.iv)throw new TypeError("invalid iv length "+r.length);return i.type==="stream"?new G8(i.module,e,r):i.type==="auth"?new $8(i.module,e,r):new oo(i.module,e,r)}function X8(t,e){var r=Ry[t.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=z8(e,!1,r.key,r.iv);return Ty(t,i.key,i.iv)}Su.createCipheriv=Ty;Su.createCipher=X8});var Dy=B(Bu=>{b();var J8=xu(),Ki=Me().Buffer,Iy=Ha(),Q8=Eu(),Cy=Xt(),e4=ro(),t4=no(),r4=K();function ao(t,e,r){Cy.call(this),this._cache=new Ga,this._last=void 0,this._cipher=new e4.AES(e),this._prev=Ki.from(r),this._mode=t,this._autopadding=!0}r4(ao,Cy);ao.prototype._update=function(t){this._cache.add(t);for(var e,r,i=[];e=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,e),i.push(r);return Ki.concat(i)};ao.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return i4(this._mode.decrypt(this,t));if(t)throw new Error("data not multiple of block length")};ao.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this};function Ga(){this.cache=Ki.allocUnsafe(0)}Ga.prototype.add=function(t){this.cache=Ki.concat([this.cache,t])};Ga.prototype.get=function(t){var e;if(t){if(this.cache.length>16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null};Ga.prototype.flush=function(){if(this.cache.length)return this.cache};function i4(t){var e=t[15];if(e<1||e>16)throw new Error("unable to decrypt data");for(var r=-1;++r<e;)if(t[r+(16-e)]!==e)throw new Error("unable to decrypt data");if(e!==16)return t.slice(0,16-e)}function Oy(t,e,r){var i=Iy[t.toLowerCase()];if(!i)throw new TypeError("invalid suite type");if(typeof r=="string"&&(r=Ki.from(r)),i.mode!=="GCM"&&r.length!==i.iv)throw new TypeError("invalid iv length "+r.length);if(typeof e=="string"&&(e=Ki.from(e)),e.length!==i.key/8)throw new TypeError("invalid key length "+e.length);return i.type==="stream"?new Q8(i.module,e,r,!0):i.type==="auth"?new J8(i.module,e,r,!0):new ao(i.module,e,r)}function n4(t,e){var r=Iy[t.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=t4(e,!1,r.key,r.iv);return Oy(t,i.key,i.iv)}Bu.createDecipher=n4;Bu.createDecipheriv=Oy});var Va=B(Mt=>{b();var Py=ky(),Uy=Dy(),o4=mu();function a4(){return Object.keys(o4)}Mt.createCipher=Mt.Cipher=Py.createCipher;Mt.createCipheriv=Mt.Cipheriv=Py.createCipheriv;Mt.createDecipher=Mt.Decipher=Uy.createDecipher;Mt.createDecipheriv=Mt.Decipheriv=Uy.createDecipheriv;Mt.listCiphers=Mt.getCiphers=a4});var Ly=B(er=>{b();er["des-ecb"]={key:8,iv:0};er["des-cbc"]=er.des={key:8,iv:8};er["des-ede3-cbc"]=er.des3={key:24,iv:8};er["des-ede3"]={key:24,iv:0};er["des-ede-cbc"]={key:16,iv:8};er["des-ede"]={key:16,iv:0}});var Ky=B(Et=>{b();var Ny=Qv(),Au=Va(),pr=Ha(),tr=Ly(),Fy=no();function f4(t,e){t=t.toLowerCase();var r,i;if(pr[t])r=pr[t].key,i=pr[t].iv;else if(tr[t])r=tr[t].key*8,i=tr[t].iv;else throw new TypeError("invalid suite type");var n=Fy(e,!1,r,i);return jy(t,n.key,n.iv)}function s4(t,e){t=t.toLowerCase();var r,i;if(pr[t])r=pr[t].key,i=pr[t].iv;else if(tr[t])r=tr[t].key*8,i=tr[t].iv;else throw new TypeError("invalid suite type");var n=Fy(e,!1,r,i);return Hy(t,n.key,n.iv)}function jy(t,e,r){if(t=t.toLowerCase(),pr[t])return Au.createCipheriv(t,e,r);if(tr[t])return new Ny({key:e,iv:r,mode:t});throw new TypeError("invalid suite type")}function Hy(t,e,r){if(t=t.toLowerCase(),pr[t])return Au.createDecipheriv(t,e,r);if(tr[t])return new Ny({key:e,iv:r,mode:t,decrypt:!0});throw new TypeError("invalid suite type")}function u4(){return Object.keys(tr).concat(Au.getCiphers())}Et.createCipher=Et.Cipher=f4;Et.createCipheriv=Et.Cipheriv=jy;Et.createDecipher=Et.Decipher=s4;Et.createDecipheriv=Et.Decipheriv=Hy;Et.listCiphers=Et.getCiphers=u4});var vr=B((Wy,Ru)=>{b();(function(t,e){"use strict";function r(E,h){if(!E)throw new Error(h||"Assertion failed")}function i(E,h){E.super_=h;var g=function(){};g.prototype=h.prototype,E.prototype=new g,E.prototype.constructor=E}function n(E,h,g){if(n.isBN(E))return E;this.negative=0,this.words=null,this.length=0,this.red=null,E!==null&&((h==="le"||h==="be")&&(g=h,h=10),this._init(E||0,h||10,g||"be"))}typeof t=="object"?t.exports=n:e.BN=n,n.BN=n,n.wordSize=26;var a;try{typeof window<"u"&&typeof window.Buffer<"u"?a=window.Buffer:a=rt().Buffer}catch{}n.isBN=function(h){return h instanceof n?!0:h!==null&&typeof h=="object"&&h.constructor.wordSize===n.wordSize&&Array.isArray(h.words)},n.max=function(h,g){return h.cmp(g)>0?h:g},n.min=function(h,g){return h.cmp(g)<0?h:g},n.prototype._init=function(h,g,c){if(typeof h=="number")return this._initNumber(h,g,c);if(typeof h=="object")return this._initArray(h,g,c);g==="hex"&&(g=16),r(g===(g|0)&&g>=2&&g<=36),h=h.toString().replace(/\s+/g,"");var o=0;h[0]==="-"&&(o++,this.negative=1),o<h.length&&(g===16?this._parseHex(h,o,c):(this._parseBase(h,g,o),c==="le"&&this._initArray(this.toArray(),g,c)))},n.prototype._initNumber=function(h,g,c){h<0&&(this.negative=1,h=-h),h<67108864?(this.words=[h&67108863],this.length=1):h<4503599627370496?(this.words=[h&67108863,h/67108864&67108863],this.length=2):(r(h<9007199254740992),this.words=[h&67108863,h/67108864&67108863,1],this.length=3),c==="le"&&this._initArray(this.toArray(),g,c)},n.prototype._initArray=function(h,g,c){if(r(typeof h.length=="number"),h.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(h.length/3),this.words=new Array(this.length);for(var o=0;o<this.length;o++)this.words[o]=0;var u,d,v=0;if(c==="be")for(o=h.length-1,u=0;o>=0;o-=3)d=h[o]|h[o-1]<<8|h[o-2]<<16,this.words[u]|=d<<v&67108863,this.words[u+1]=d>>>26-v&67108863,v+=24,v>=26&&(v-=26,u++);else if(c==="le")for(o=0,u=0;o<h.length;o+=3)d=h[o]|h[o+1]<<8|h[o+2]<<16,this.words[u]|=d<<v&67108863,this.words[u+1]=d>>>26-v&67108863,v+=24,v>=26&&(v-=26,u++);return this.strip()};function s(E,h){var g=E.charCodeAt(h);return g>=65&&g<=70?g-55:g>=97&&g<=102?g-87:g-48&15}function y(E,h,g){var c=s(E,g);return g-1>=h&&(c|=s(E,g-1)<<4),c}n.prototype._parseHex=function(h,g,c){this.length=Math.ceil((h.length-g)/6),this.words=new Array(this.length);for(var o=0;o<this.length;o++)this.words[o]=0;var u=0,d=0,v;if(c==="be")for(o=h.length-1;o>=g;o-=2)v=y(h,g,o)<<u,this.words[d]|=v&67108863,u>=18?(u-=18,d+=1,this.words[d]|=v>>>26):u+=8;else{var p=h.length-g;for(o=p%2===0?g+1:g;o<h.length;o+=2)v=y(h,g,o)<<u,this.words[d]|=v&67108863,u>=18?(u-=18,d+=1,this.words[d]|=v>>>26):u+=8}this.strip()};function w(E,h,g,c){for(var o=0,u=Math.min(E.length,g),d=h;d<u;d++){var v=E.charCodeAt(d)-48;o*=c,v>=49?o+=v-49+10:v>=17?o+=v-17+10:o+=v}return o}n.prototype._parseBase=function(h,g,c){this.words=[0],this.length=1;for(var o=0,u=1;u<=67108863;u*=g)o++;o--,u=u/g|0;for(var d=h.length-c,v=d%o,p=Math.min(d,d-v)+c,f=0,m=c;m<p;m+=o)f=w(h,m,m+o,g),this.imuln(u),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f);if(v!==0){var _=1;for(f=w(h,m,h.length,g),m=0;m<v;m++)_*=g;this.imuln(_),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f)}this.strip()},n.prototype.copy=function(h){h.words=new Array(this.length);for(var g=0;g<this.length;g++)h.words[g]=this.words[g];h.length=this.length,h.negative=this.negative,h.red=this.red},n.prototype.clone=function(){var h=new n(null);return this.copy(h),h},n.prototype._expand=function(h){for(;this.length<h;)this.words[this.length++]=0;return this},n.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},n.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},n.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var S=["","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"],A=[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],q=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(h,g){h=h||10,g=g|0||1;var c;if(h===16||h==="hex"){c="";for(var o=0,u=0,d=0;d<this.length;d++){var v=this.words[d],p=((v<<o|u)&16777215).toString(16);u=v>>>24-o&16777215,o+=2,o>=26&&(o-=26,d--),u!==0||d!==this.length-1?c=S[6-p.length]+p+c:c=p+c}for(u!==0&&(c=u.toString(16)+c);c.length%g!==0;)c="0"+c;return this.negative!==0&&(c="-"+c),c}if(h===(h|0)&&h>=2&&h<=36){var f=A[h],m=q[h];c="";var _=this.clone();for(_.negative=0;!_.isZero();){var l=_.modn(m).toString(h);_=_.idivn(m),_.isZero()?c=l+c:c=S[f-l.length]+l+c}for(this.isZero()&&(c="0"+c);c.length%g!==0;)c="0"+c;return this.negative!==0&&(c="-"+c),c}r(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var h=this.words[0];return this.length===2?h+=this.words[1]*67108864:this.length===3&&this.words[2]===1?h+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-h:h},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(h,g){return r(typeof a<"u"),this.toArrayLike(a,h,g)},n.prototype.toArray=function(h,g){return this.toArrayLike(Array,h,g)},n.prototype.toArrayLike=function(h,g,c){var o=this.byteLength(),u=c||Math.max(1,o);r(o<=u,"byte array longer than desired length"),r(u>0,"Requested array length <= 0"),this.strip();var d=g==="le",v=new h(u),p,f,m=this.clone();if(d){for(f=0;!m.isZero();f++)p=m.andln(255),m.iushrn(8),v[f]=p;for(;f<u;f++)v[f]=0}else{for(f=0;f<u-o;f++)v[f]=0;for(f=0;!m.isZero();f++)p=m.andln(255),m.iushrn(8),v[u-f-1]=p}return v},Math.clz32?n.prototype._countBits=function(h){return 32-Math.clz32(h)}:n.prototype._countBits=function(h){var g=h,c=0;return g>=4096&&(c+=13,g>>>=13),g>=64&&(c+=7,g>>>=7),g>=8&&(c+=4,g>>>=4),g>=2&&(c+=2,g>>>=2),c+g},n.prototype._zeroBits=function(h){if(h===0)return 26;var g=h,c=0;return(g&8191)===0&&(c+=13,g>>>=13),(g&127)===0&&(c+=7,g>>>=7),(g&15)===0&&(c+=4,g>>>=4),(g&3)===0&&(c+=2,g>>>=2),(g&1)===0&&c++,c},n.prototype.bitLength=function(){var h=this.words[this.length-1],g=this._countBits(h);return(this.length-1)*26+g};function k(E){for(var h=new Array(E.bitLength()),g=0;g<h.length;g++){var c=g/26|0,o=g%26;h[g]=(E.words[c]&1<<o)>>>o}return h}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var h=0,g=0;g<this.length;g++){var c=this._zeroBits(this.words[g]);if(h+=c,c!==26)break}return h},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(h){return this.negative!==0?this.abs().inotn(h).iaddn(1):this.clone()},n.prototype.fromTwos=function(h){return this.testn(h-1)?this.notn(h).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return this.negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.prototype.iuor=function(h){for(;this.length<h.length;)this.words[this.length++]=0;for(var g=0;g<h.length;g++)this.words[g]=this.words[g]|h.words[g];return this.strip()},n.prototype.ior=function(h){return r((this.negative|h.negative)===0),this.iuor(h)},n.prototype.or=function(h){return this.length>h.length?this.clone().ior(h):h.clone().ior(this)},n.prototype.uor=function(h){return this.length>h.length?this.clone().iuor(h):h.clone().iuor(this)},n.prototype.iuand=function(h){var g;this.length>h.length?g=h:g=this;for(var c=0;c<g.length;c++)this.words[c]=this.words[c]&h.words[c];return this.length=g.length,this.strip()},n.prototype.iand=function(h){return r((this.negative|h.negative)===0),this.iuand(h)},n.prototype.and=function(h){return this.length>h.length?this.clone().iand(h):h.clone().iand(this)},n.prototype.uand=function(h){return this.length>h.length?this.clone().iuand(h):h.clone().iuand(this)},n.prototype.iuxor=function(h){var g,c;this.length>h.length?(g=this,c=h):(g=h,c=this);for(var o=0;o<c.length;o++)this.words[o]=g.words[o]^c.words[o];if(this!==g)for(;o<g.length;o++)this.words[o]=g.words[o];return this.length=g.length,this.strip()},n.prototype.ixor=function(h){return r((this.negative|h.negative)===0),this.iuxor(h)},n.prototype.xor=function(h){return this.length>h.length?this.clone().ixor(h):h.clone().ixor(this)},n.prototype.uxor=function(h){return this.length>h.length?this.clone().iuxor(h):h.clone().iuxor(this)},n.prototype.inotn=function(h){r(typeof h=="number"&&h>=0);var g=Math.ceil(h/26)|0,c=h%26;this._expand(g),c>0&&g--;for(var o=0;o<g;o++)this.words[o]=~this.words[o]&67108863;return c>0&&(this.words[o]=~this.words[o]&67108863>>26-c),this.strip()},n.prototype.notn=function(h){return this.clone().inotn(h)},n.prototype.setn=function(h,g){r(typeof h=="number"&&h>=0);var c=h/26|0,o=h%26;return this._expand(c+1),g?this.words[c]=this.words[c]|1<<o:this.words[c]=this.words[c]&~(1<<o),this.strip()},n.prototype.iadd=function(h){var g;if(this.negative!==0&&h.negative===0)return this.negative=0,g=this.isub(h),this.negative^=1,this._normSign();if(this.negative===0&&h.negative!==0)return h.negative=0,g=this.isub(h),h.negative=1,g._normSign();var c,o;this.length>h.length?(c=this,o=h):(c=h,o=this);for(var u=0,d=0;d<o.length;d++)g=(c.words[d]|0)+(o.words[d]|0)+u,this.words[d]=g&67108863,u=g>>>26;for(;u!==0&&d<c.length;d++)g=(c.words[d]|0)+u,this.words[d]=g&67108863,u=g>>>26;if(this.length=c.length,u!==0)this.words[this.length]=u,this.length++;else if(c!==this)for(;d<c.length;d++)this.words[d]=c.words[d];return this},n.prototype.add=function(h){var g;return h.negative!==0&&this.negative===0?(h.negative=0,g=this.sub(h),h.negative^=1,g):h.negative===0&&this.negative!==0?(this.negative=0,g=h.sub(this),this.negative=1,g):this.length>h.length?this.clone().iadd(h):h.clone().iadd(this)},n.prototype.isub=function(h){if(h.negative!==0){h.negative=0;var g=this.iadd(h);return h.negative=1,g._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(h),this.negative=1,this._normSign();var c=this.cmp(h);if(c===0)return this.negative=0,this.length=1,this.words[0]=0,this;var o,u;c>0?(o=this,u=h):(o=h,u=this);for(var d=0,v=0;v<u.length;v++)g=(o.words[v]|0)-(u.words[v]|0)+d,d=g>>26,this.words[v]=g&67108863;for(;d!==0&&v<o.length;v++)g=(o.words[v]|0)+d,d=g>>26,this.words[v]=g&67108863;if(d===0&&v<o.length&&o!==this)for(;v<o.length;v++)this.words[v]=o.words[v];return this.length=Math.max(this.length,v),o!==this&&(this.negative=1),this.strip()},n.prototype.sub=function(h){return this.clone().isub(h)};function O(E,h,g){g.negative=h.negative^E.negative;var c=E.length+h.length|0;g.length=c,c=c-1|0;var o=E.words[0]|0,u=h.words[0]|0,d=o*u,v=d&67108863,p=d/67108864|0;g.words[0]=v;for(var f=1;f<c;f++){for(var m=p>>>26,_=p&67108863,l=Math.min(f,h.length-1),x=Math.max(0,f-E.length+1);x<=l;x++){var I=f-x|0;o=E.words[I]|0,u=h.words[x]|0,d=o*u+_,m+=d/67108864|0,_=d&67108863}g.words[f]=_|0,p=m|0}return p!==0?g.words[f]=p|0:g.length--,g.strip()}var P=function(h,g,c){var o=h.words,u=g.words,d=c.words,v=0,p,f,m,_=o[0]|0,l=_&8191,x=_>>>13,I=o[1]|0,D=I&8191,C=I>>>13,L=o[2]|0,U=L&8191,N=L>>>13,bt=o[3]|0,F=bt&8191,H=bt>>>13,Xi=o[4]|0,$=Xi&8191,G=Xi>>>13,Ji=o[5]|0,V=Ji&8191,z=Ji>>>13,Qi=o[6]|0,Z=Qi&8191,Y=Qi>>>13,en=o[7]|0,X=en&8191,J=en>>>13,tn=o[8]|0,Q=tn&8191,ee=tn>>>13,rn=o[9]|0,te=rn&8191,re=rn>>>13,nn=u[0]|0,ie=nn&8191,ne=nn>>>13,on=u[1]|0,oe=on&8191,ae=on>>>13,an=u[2]|0,fe=an&8191,se=an>>>13,fn=u[3]|0,ue=fn&8191,he=fn>>>13,sn=u[4]|0,le=sn&8191,ce=sn>>>13,un=u[5]|0,de=un&8191,pe=un>>>13,hn=u[6]|0,ve=hn&8191,ye=hn>>>13,ln=u[7]|0,ge=ln&8191,me=ln>>>13,cn=u[8]|0,be=cn&8191,we=cn>>>13,dn=u[9]|0,_e=dn&8191,xe=dn>>>13;c.negative=h.negative^g.negative,c.length=19,p=Math.imul(l,ie),f=Math.imul(l,ne),f=f+Math.imul(x,ie)|0,m=Math.imul(x,ne);var hi=(v+p|0)+((f&8191)<<13)|0;v=(m+(f>>>13)|0)+(hi>>>26)|0,hi&=67108863,p=Math.imul(D,ie),f=Math.imul(D,ne),f=f+Math.imul(C,ie)|0,m=Math.imul(C,ne),p=p+Math.imul(l,oe)|0,f=f+Math.imul(l,ae)|0,f=f+Math.imul(x,oe)|0,m=m+Math.imul(x,ae)|0;var Ue=(v+p|0)+((f&8191)<<13)|0;v=(m+(f>>>13)|0)+(Ue>>>26)|0,Ue&=67108863,p=Math.imul(U,ie),f=Math.imul(U,ne),f=f+Math.imul(N,ie)|0,m=Math.imul(N,ne),p=p+Math.imul(D,oe)|0,f=f+Math.imul(D,ae)|0,f=f+Math.imul(C,oe)|0,m=m+Math.imul(C,ae)|0,p=p+Math.imul(l,fe)|0,f=f+Math.imul(l,se)|0,f=f+Math.imul(x,fe)|0,m=m+Math.imul(x,se)|0;var Le=(v+p|0)+((f&8191)<<13)|0;v=(m+(f>>>13)|0)+(Le>>>26)|0,Le&=67108863,p=Math.imul(F,ie),f=Math.imul(F,ne),f=f+Math.imul(H,ie)|0,m=Math.imul(H,ne),p=p+Math.imul(U,oe)|0,f=f+Math.imul(U,ae)|0,f=f+Math.imul(N,oe)|0,m=m+Math.imul(N,ae)|0,p=p+Math.imul(D,fe)|0,f=f+Math.imul(D,se)|0,f=f+Math.imul(C,fe)|0,m=m+Math.imul(C,se)|0,p=p+Math.imul(l,ue)|0,f=f+Math.imul(l,he)|0,f=f+Math.imul(x,ue)|0,m=m+Math.imul(x,he)|0;var gr=(v+p|0)+((f&8191)<<13)|0;v=(m+(f>>>13)|0)+(gr>>>26)|0,gr&=67108863,p=Math.imul($,ie),f=Math.imul($,ne),f=f+Math.imul(G,ie)|0,m=Math.imul(G,ne),p=p+Math.imul(F,oe)|0,f=f+Math.imul(F,ae)|0,f=f+Math.imul(H,oe)|0,m=m+Math.imul(H,ae)|0,p=p+Math.imul(U,fe)|0,f=f+Math.imul(U,se)|0,f=f+Math.imul(N,fe)|0,m=m+Math.imul(N,se)|0,p=p+Math.imul(D,ue)|0,f=f+Math.imul(D,he)|0,f=f+Math.imul(C,ue)|0,m=m+Math.imul(C,he)|0,p=p+Math.imul(l,le)|0,f=f+Math.imul(l,ce)|0,f=f+Math.imul(x,le)|0,m=m+Math.imul(x,ce)|0;var mr=(v+p|0)+((f&8191)<<13)|0;v=(m+(f>>>13)|0)+(mr>>>26)|0,mr&=67108863,p=Math.imul(V,ie),f=Math.imul(V,ne),f=f+Math.imul(z,ie)|0,m=Math.imul(z,ne),p=p+Math.imul($,oe)|0,f=f+Math.imul($,ae)|0,f=f+Math.imul(G,oe)|0,m=m+Math.imul(G,ae)|0,p=p+Math.imul(F,fe)|0,f=f+Math.imul(F,se)|0,f=f+Math.imul(H,fe)|0,m=m+Math.imul(H,se)|0,p=p+Math.imul(U,ue)|0,f=f+Math.imul(U,he)|0,f=f+Math.imul(N,ue)|0,m=m+Math.imul(N,he)|0,p=p+Math.imul(D,le)|0,f=f+Math.imul(D,ce)|0,f=f+Math.imul(C,le)|0,m=m+Math.imul(C,ce)|0,p=p+Math.imul(l,de)|0,f=f+Math.imul(l,pe)|0,f=f+Math.imul(x,de)|0,m=m+Math.imul(x,pe)|0;var br=(v+p|0)+((f&8191)<<13)|0;v=(m+(f>>>13)|0)+(br>>>26)|0,br&=67108863,p=Math.imul(Z,ie),f=Math.imul(Z,ne),f=f+Math.imul(Y,ie)|0,m=Math.imul(Y,ne),p=p+Math.imul(V,oe)|0,f=f+Math.imul(V,ae)|0,f=f+Math.imul(z,oe)|0,m=m+Math.imul(z,ae)|0,p=p+Math.imul($,fe)|0,f=f+Math.imul($,se)|0,f=f+Math.imul(G,fe)|0,m=m+Math.imul(G,se)|0,p=p+Math.imul(F,ue)|0,f=f+Math.imul(F,he)|0,f=f+Math.imul(H,ue)|0,m=m+Math.imul(H,he)|0,p=p+Math.imul(U,le)|0,f=f+Math.imul(U,ce)|0,f=f+Math.imul(N,le)|0,m=m+Math.imul(N,ce)|0,p=p+Math.imul(D,de)|0,f=f+Math.imul(D,pe)|0,f=f+Math.imul(C,de)|0,m=m+Math.imul(C,pe)|0,p=p+Math.imul(l,ve)|0,f=f+Math.imul(l,ye)|0,f=f+Math.imul(x,ve)|0,m=m+Math.imul(x,ye)|0;var wr=(v+p|0)+((f&8191)<<13)|0;v=(m+(f>>>13)|0)+(wr>>>26)|0,wr&=67108863,p=Math.imul(X,ie),f=Math.imul(X,ne),f=f+Math.imul(J,ie)|0,m=Math.imul(J,ne),p=p+Math.imul(Z,oe)|0,f=f+Math.imul(Z,ae)|0,f=f+Math.imul(Y,oe)|0,m=m+Math.imul(Y,ae)|0,p=p+Math.imul(V,fe)|0,f=f+Math.imul(V,se)|0,f=f+Math.imul(z,fe)|0,m=m+Math.imul(z,se)|0,p=p+Math.imul($,ue)|0,f=f+Math.imul($,he)|0,f=f+Math.imul(G,ue)|0,m=m+Math.imul(G,he)|0,p=p+Math.imul(F,le)|0,f=f+Math.imul(F,ce)|0,f=f+Math.imul(H,le)|0,m=m+Math.imul(H,ce)|0,p=p+Math.imul(U,de)|0,f=f+Math.imul(U,pe)|0,f=f+Math.imul(N,de)|0,m=m+Math.imul(N,pe)|0,p=p+Math.imul(D,ve)|0,f=f+Math.imul(D,ye)|0,f=f+Math.imul(C,ve)|0,m=m+Math.imul(C,ye)|0,p=p+Math.imul(l,ge)|0,f=f+Math.imul(l,me)|0,f=f+Math.imul(x,ge)|0,m=m+Math.imul(x,me)|0;var _r=(v+p|0)+((f&8191)<<13)|0;v=(m+(f>>>13)|0)+(_r>>>26)|0,_r&=67108863,p=Math.imul(Q,ie),f=Math.imul(Q,ne),f=f+Math.imul(ee,ie)|0,m=Math.imul(ee,ne),p=p+Math.imul(X,oe)|0,f=f+Math.imul(X,ae)|0,f=f+Math.imul(J,oe)|0,m=m+Math.imul(J,ae)|0,p=p+Math.imul(Z,fe)|0,f=f+Math.imul(Z,se)|0,f=f+Math.imul(Y,fe)|0,m=m+Math.imul(Y,se)|0,p=p+Math.imul(V,ue)|0,f=f+Math.imul(V,he)|0,f=f+Math.imul(z,ue)|0,m=m+Math.imul(z,he)|0,p=p+Math.imul($,le)|0,f=f+Math.imul($,ce)|0,f=f+Math.imul(G,le)|0,m=m+Math.imul(G,ce)|0,p=p+Math.imul(F,de)|0,f=f+Math.imul(F,pe)|0,f=f+Math.imul(H,de)|0,m=m+Math.imul(H,pe)|0,p=p+Math.imul(U,ve)|0,f=f+Math.imul(U,ye)|0,f=f+Math.imul(N,ve)|0,m=m+Math.imul(N,ye)|0,p=p+Math.imul(D,ge)|0,f=f+Math.imul(D,me)|0,f=f+Math.imul(C,ge)|0,m=m+Math.imul(C,me)|0,p=p+Math.imul(l,be)|0,f=f+Math.imul(l,we)|0,f=f+Math.imul(x,be)|0,m=m+Math.imul(x,we)|0;var xr=(v+p|0)+((f&8191)<<13)|0;v=(m+(f>>>13)|0)+(xr>>>26)|0,xr&=67108863,p=Math.imul(te,ie),f=Math.imul(te,ne),f=f+Math.imul(re,ie)|0,m=Math.imul(re,ne),p=p+Math.imul(Q,oe)|0,f=f+Math.imul(Q,ae)|0,f=f+Math.imul(ee,oe)|0,m=m+Math.imul(ee,ae)|0,p=p+Math.imul(X,fe)|0,f=f+Math.imul(X,se)|0,f=f+Math.imul(J,fe)|0,m=m+Math.imul(J,se)|0,p=p+Math.imul(Z,ue)|0,f=f+Math.imul(Z,he)|0,f=f+Math.imul(Y,ue)|0,m=m+Math.imul(Y,he)|0,p=p+Math.imul(V,le)|0,f=f+Math.imul(V,ce)|0,f=f+Math.imul(z,le)|0,m=m+Math.imul(z,ce)|0,p=p+Math.imul($,de)|0,f=f+Math.imul($,pe)|0,f=f+Math.imul(G,de)|0,m=m+Math.imul(G,pe)|0,p=p+Math.imul(F,ve)|0,f=f+Math.imul(F,ye)|0,f=f+Math.imul(H,ve)|0,m=m+Math.imul(H,ye)|0,p=p+Math.imul(U,ge)|0,f=f+Math.imul(U,me)|0,f=f+Math.imul(N,ge)|0,m=m+Math.imul(N,me)|0,p=p+Math.imul(D,be)|0,f=f+Math.imul(D,we)|0,f=f+Math.imul(C,be)|0,m=m+Math.imul(C,we)|0,p=p+Math.imul(l,_e)|0,f=f+Math.imul(l,xe)|0,f=f+Math.imul(x,_e)|0,m=m+Math.imul(x,xe)|0;var Mr=(v+p|0)+((f&8191)<<13)|0;v=(m+(f>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,p=Math.imul(te,oe),f=Math.imul(te,ae),f=f+Math.imul(re,oe)|0,m=Math.imul(re,ae),p=p+Math.imul(Q,fe)|0,f=f+Math.imul(Q,se)|0,f=f+Math.imul(ee,fe)|0,m=m+Math.imul(ee,se)|0,p=p+Math.imul(X,ue)|0,f=f+Math.imul(X,he)|0,f=f+Math.imul(J,ue)|0,m=m+Math.imul(J,he)|0,p=p+Math.imul(Z,le)|0,f=f+Math.imul(Z,ce)|0,f=f+Math.imul(Y,le)|0,m=m+Math.imul(Y,ce)|0,p=p+Math.imul(V,de)|0,f=f+Math.imul(V,pe)|0,f=f+Math.imul(z,de)|0,m=m+Math.imul(z,pe)|0,p=p+Math.imul($,ve)|0,f=f+Math.imul($,ye)|0,f=f+Math.imul(G,ve)|0,m=m+Math.imul(G,ye)|0,p=p+Math.imul(F,ge)|0,f=f+Math.imul(F,me)|0,f=f+Math.imul(H,ge)|0,m=m+Math.imul(H,me)|0,p=p+Math.imul(U,be)|0,f=f+Math.imul(U,we)|0,f=f+Math.imul(N,be)|0,m=m+Math.imul(N,we)|0,p=p+Math.imul(D,_e)|0,f=f+Math.imul(D,xe)|0,f=f+Math.imul(C,_e)|0,m=m+Math.imul(C,xe)|0;var Er=(v+p|0)+((f&8191)<<13)|0;v=(m+(f>>>13)|0)+(Er>>>26)|0,Er&=67108863,p=Math.imul(te,fe),f=Math.imul(te,se),f=f+Math.imul(re,fe)|0,m=Math.imul(re,se),p=p+Math.imul(Q,ue)|0,f=f+Math.imul(Q,he)|0,f=f+Math.imul(ee,ue)|0,m=m+Math.imul(ee,he)|0,p=p+Math.imul(X,le)|0,f=f+Math.imul(X,ce)|0,f=f+Math.imul(J,le)|0,m=m+Math.imul(J,ce)|0,p=p+Math.imul(Z,de)|0,f=f+Math.imul(Z,pe)|0,f=f+Math.imul(Y,de)|0,m=m+Math.imul(Y,pe)|0,p=p+Math.imul(V,ve)|0,f=f+Math.imul(V,ye)|0,f=f+Math.imul(z,ve)|0,m=m+Math.imul(z,ye)|0,p=p+Math.imul($,ge)|0,f=f+Math.imul($,me)|0,f=f+Math.imul(G,ge)|0,m=m+Math.imul(G,me)|0,p=p+Math.imul(F,be)|0,f=f+Math.imul(F,we)|0,f=f+Math.imul(H,be)|0,m=m+Math.imul(H,we)|0,p=p+Math.imul(U,_e)|0,f=f+Math.imul(U,xe)|0,f=f+Math.imul(N,_e)|0,m=m+Math.imul(N,xe)|0;var Sr=(v+p|0)+((f&8191)<<13)|0;v=(m+(f>>>13)|0)+(Sr>>>26)|0,Sr&=67108863,p=Math.imul(te,ue),f=Math.imul(te,he),f=f+Math.imul(re,ue)|0,m=Math.imul(re,he),p=p+Math.imul(Q,le)|0,f=f+Math.imul(Q,ce)|0,f=f+Math.imul(ee,le)|0,m=m+Math.imul(ee,ce)|0,p=p+Math.imul(X,de)|0,f=f+Math.imul(X,pe)|0,f=f+Math.imul(J,de)|0,m=m+Math.imul(J,pe)|0,p=p+Math.imul(Z,ve)|0,f=f+Math.imul(Z,ye)|0,f=f+Math.imul(Y,ve)|0,m=m+Math.imul(Y,ye)|0,p=p+Math.imul(V,ge)|0,f=f+Math.imul(V,me)|0,f=f+Math.imul(z,ge)|0,m=m+Math.imul(z,me)|0,p=p+Math.imul($,be)|0,f=f+Math.imul($,we)|0,f=f+Math.imul(G,be)|0,m=m+Math.imul(G,we)|0,p=p+Math.imul(F,_e)|0,f=f+Math.imul(F,xe)|0,f=f+Math.imul(H,_e)|0,m=m+Math.imul(H,xe)|0;var Br=(v+p|0)+((f&8191)<<13)|0;v=(m+(f>>>13)|0)+(Br>>>26)|0,Br&=67108863,p=Math.imul(te,le),f=Math.imul(te,ce),f=f+Math.imul(re,le)|0,m=Math.imul(re,ce),p=p+Math.imul(Q,de)|0,f=f+Math.imul(Q,pe)|0,f=f+Math.imul(ee,de)|0,m=m+Math.imul(ee,pe)|0,p=p+Math.imul(X,ve)|0,f=f+Math.imul(X,ye)|0,f=f+Math.imul(J,ve)|0,m=m+Math.imul(J,ye)|0,p=p+Math.imul(Z,ge)|0,f=f+Math.imul(Z,me)|0,f=f+Math.imul(Y,ge)|0,m=m+Math.imul(Y,me)|0,p=p+Math.imul(V,be)|0,f=f+Math.imul(V,we)|0,f=f+Math.imul(z,be)|0,m=m+Math.imul(z,we)|0,p=p+Math.imul($,_e)|0,f=f+Math.imul($,xe)|0,f=f+Math.imul(G,_e)|0,m=m+Math.imul(G,xe)|0;var Ar=(v+p|0)+((f&8191)<<13)|0;v=(m+(f>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,p=Math.imul(te,de),f=Math.imul(te,pe),f=f+Math.imul(re,de)|0,m=Math.imul(re,pe),p=p+Math.imul(Q,ve)|0,f=f+Math.imul(Q,ye)|0,f=f+Math.imul(ee,ve)|0,m=m+Math.imul(ee,ye)|0,p=p+Math.imul(X,ge)|0,f=f+Math.imul(X,me)|0,f=f+Math.imul(J,ge)|0,m=m+Math.imul(J,me)|0,p=p+Math.imul(Z,be)|0,f=f+Math.imul(Z,we)|0,f=f+Math.imul(Y,be)|0,m=m+Math.imul(Y,we)|0,p=p+Math.imul(V,_e)|0,f=f+Math.imul(V,xe)|0,f=f+Math.imul(z,_e)|0,m=m+Math.imul(z,xe)|0;var Rr=(v+p|0)+((f&8191)<<13)|0;v=(m+(f>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,p=Math.imul(te,ve),f=Math.imul(te,ye),f=f+Math.imul(re,ve)|0,m=Math.imul(re,ye),p=p+Math.imul(Q,ge)|0,f=f+Math.imul(Q,me)|0,f=f+Math.imul(ee,ge)|0,m=m+Math.imul(ee,me)|0,p=p+Math.imul(X,be)|0,f=f+Math.imul(X,we)|0,f=f+Math.imul(J,be)|0,m=m+Math.imul(J,we)|0,p=p+Math.imul(Z,_e)|0,f=f+Math.imul(Z,xe)|0,f=f+Math.imul(Y,_e)|0,m=m+Math.imul(Y,xe)|0;var qr=(v+p|0)+((f&8191)<<13)|0;v=(m+(f>>>13)|0)+(qr>>>26)|0,qr&=67108863,p=Math.imul(te,ge),f=Math.imul(te,me),f=f+Math.imul(re,ge)|0,m=Math.imul(re,me),p=p+Math.imul(Q,be)|0,f=f+Math.imul(Q,we)|0,f=f+Math.imul(ee,be)|0,m=m+Math.imul(ee,we)|0,p=p+Math.imul(X,_e)|0,f=f+Math.imul(X,xe)|0,f=f+Math.imul(J,_e)|0,m=m+Math.imul(J,xe)|0;var Tr=(v+p|0)+((f&8191)<<13)|0;v=(m+(f>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,p=Math.imul(te,be),f=Math.imul(te,we),f=f+Math.imul(re,be)|0,m=Math.imul(re,we),p=p+Math.imul(Q,_e)|0,f=f+Math.imul(Q,xe)|0,f=f+Math.imul(ee,_e)|0,m=m+Math.imul(ee,xe)|0;var kr=(v+p|0)+((f&8191)<<13)|0;v=(m+(f>>>13)|0)+(kr>>>26)|0,kr&=67108863,p=Math.imul(te,_e),f=Math.imul(te,xe),f=f+Math.imul(re,_e)|0,m=Math.imul(re,xe);var Ir=(v+p|0)+((f&8191)<<13)|0;return v=(m+(f>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,d[0]=hi,d[1]=Ue,d[2]=Le,d[3]=gr,d[4]=mr,d[5]=br,d[6]=wr,d[7]=_r,d[8]=xr,d[9]=Mr,d[10]=Er,d[11]=Sr,d[12]=Br,d[13]=Ar,d[14]=Rr,d[15]=qr,d[16]=Tr,d[17]=kr,d[18]=Ir,v!==0&&(d[19]=v,c.length++),c};Math.imul||(P=O);function W(E,h,g){g.negative=h.negative^E.negative,g.length=E.length+h.length;for(var c=0,o=0,u=0;u<g.length-1;u++){var d=o;o=0;for(var v=c&67108863,p=Math.min(u,h.length-1),f=Math.max(0,u-E.length+1);f<=p;f++){var m=u-f,_=E.words[m]|0,l=h.words[f]|0,x=_*l,I=x&67108863;d=d+(x/67108864|0)|0,I=I+v|0,v=I&67108863,d=d+(I>>>26)|0,o+=d>>>26,d&=67108863}g.words[u]=v,c=d,d=o}return c!==0?g.words[u]=c:g.length--,g.strip()}function Te(E,h,g){var c=new j;return c.mulp(E,h,g)}n.prototype.mulTo=function(h,g){var c,o=this.length+h.length;return this.length===10&&h.length===10?c=P(this,h,g):o<63?c=O(this,h,g):o<1024?c=W(this,h,g):c=Te(this,h,g),c};function j(E,h){this.x=E,this.y=h}j.prototype.makeRBT=function(h){for(var g=new Array(h),c=n.prototype._countBits(h)-1,o=0;o<h;o++)g[o]=this.revBin(o,c,h);return g},j.prototype.revBin=function(h,g,c){if(h===0||h===c-1)return h;for(var o=0,u=0;u<g;u++)o|=(h&1)<<g-u-1,h>>=1;return o},j.prototype.permute=function(h,g,c,o,u,d){for(var v=0;v<d;v++)o[v]=g[h[v]],u[v]=c[h[v]]},j.prototype.transform=function(h,g,c,o,u,d){this.permute(d,h,g,c,o,u);for(var v=1;v<u;v<<=1)for(var p=v<<1,f=Math.cos(2*Math.PI/p),m=Math.sin(2*Math.PI/p),_=0;_<u;_+=p)for(var l=f,x=m,I=0;I<v;I++){var D=c[_+I],C=o[_+I],L=c[_+I+v],U=o[_+I+v],N=l*L-x*U;U=l*U+x*L,L=N,c[_+I]=D+L,o[_+I]=C+U,c[_+I+v]=D-L,o[_+I+v]=C-U,I!==p&&(N=f*l-m*x,x=f*x+m*l,l=N)}},j.prototype.guessLen13b=function(h,g){var c=Math.max(g,h)|1,o=c&1,u=0;for(c=c/2|0;c;c=c>>>1)u++;return 1<<u+1+o},j.prototype.conjugate=function(h,g,c){if(!(c<=1))for(var o=0;o<c/2;o++){var u=h[o];h[o]=h[c-o-1],h[c-o-1]=u,u=g[o],g[o]=-g[c-o-1],g[c-o-1]=-u}},j.prototype.normalize13b=function(h,g){for(var c=0,o=0;o<g/2;o++){var u=Math.round(h[2*o+1]/g)*8192+Math.round(h[2*o]/g)+c;h[o]=u&67108863,u<67108864?c=0:c=u/67108864|0}return h},j.prototype.convert13b=function(h,g,c,o){for(var u=0,d=0;d<g;d++)u=u+(h[d]|0),c[2*d]=u&8191,u=u>>>13,c[2*d+1]=u&8191,u=u>>>13;for(d=2*g;d<o;++d)c[d]=0;r(u===0),r((u&-8192)===0)},j.prototype.stub=function(h){for(var g=new Array(h),c=0;c<h;c++)g[c]=0;return g},j.prototype.mulp=function(h,g,c){var o=2*this.guessLen13b(h.length,g.length),u=this.makeRBT(o),d=this.stub(o),v=new Array(o),p=new Array(o),f=new Array(o),m=new Array(o),_=new Array(o),l=new Array(o),x=c.words;x.length=o,this.convert13b(h.words,h.length,v,o),this.convert13b(g.words,g.length,m,o),this.transform(v,d,p,f,o,u),this.transform(m,d,_,l,o,u);for(var I=0;I<o;I++){var D=p[I]*_[I]-f[I]*l[I];f[I]=p[I]*l[I]+f[I]*_[I],p[I]=D}return this.conjugate(p,f,o),this.transform(p,f,x,d,o,u),this.conjugate(x,d,o),this.normalize13b(x,o),c.negative=h.negative^g.negative,c.length=h.length+g.length,c.strip()},n.prototype.mul=function(h){var g=new n(null);return g.words=new Array(this.length+h.length),this.mulTo(h,g)},n.prototype.mulf=function(h){var g=new n(null);return g.words=new Array(this.length+h.length),Te(this,h,g)},n.prototype.imul=function(h){return this.clone().mulTo(h,this)},n.prototype.imuln=function(h){r(typeof h=="number"),r(h<67108864);for(var g=0,c=0;c<this.length;c++){var o=(this.words[c]|0)*h,u=(o&67108863)+(g&67108863);g>>=26,g+=o/67108864|0,g+=u>>>26,this.words[c]=u&67108863}return g!==0&&(this.words[c]=g,this.length++),this.length=h===0?1:this.length,this},n.prototype.muln=function(h){return this.clone().imuln(h)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(h){var g=k(h);if(g.length===0)return new n(1);for(var c=this,o=0;o<g.length&&g[o]===0;o++,c=c.sqr());if(++o<g.length)for(var u=c.sqr();o<g.length;o++,u=u.sqr())g[o]!==0&&(c=c.mul(u));return c},n.prototype.iushln=function(h){r(typeof h=="number"&&h>=0);var g=h%26,c=(h-g)/26,o=67108863>>>26-g<<26-g,u;if(g!==0){var d=0;for(u=0;u<this.length;u++){var v=this.words[u]&o,p=(this.words[u]|0)-v<<g;this.words[u]=p|d,d=v>>>26-g}d&&(this.words[u]=d,this.length++)}if(c!==0){for(u=this.length-1;u>=0;u--)this.words[u+c]=this.words[u];for(u=0;u<c;u++)this.words[u]=0;this.length+=c}return this.strip()},n.prototype.ishln=function(h){return r(this.negative===0),this.iushln(h)},n.prototype.iushrn=function(h,g,c){r(typeof h=="number"&&h>=0);var o;g?o=(g-g%26)/26:o=0;var u=h%26,d=Math.min((h-u)/26,this.length),v=67108863^67108863>>>u<<u,p=c;if(o-=d,o=Math.max(0,o),p){for(var f=0;f<d;f++)p.words[f]=this.words[f];p.length=d}if(d!==0)if(this.length>d)for(this.length-=d,f=0;f<this.length;f++)this.words[f]=this.words[f+d];else this.words[0]=0,this.length=1;var m=0;for(f=this.length-1;f>=0&&(m!==0||f>=o);f--){var _=this.words[f]|0;this.words[f]=m<<26-u|_>>>u,m=_&v}return p&&m!==0&&(p.words[p.length++]=m),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.ishrn=function(h,g,c){return r(this.negative===0),this.iushrn(h,g,c)},n.prototype.shln=function(h){return this.clone().ishln(h)},n.prototype.ushln=function(h){return this.clone().iushln(h)},n.prototype.shrn=function(h){return this.clone().ishrn(h)},n.prototype.ushrn=function(h){return this.clone().iushrn(h)},n.prototype.testn=function(h){r(typeof h=="number"&&h>=0);var g=h%26,c=(h-g)/26,o=1<<g;if(this.length<=c)return!1;var u=this.words[c];return!!(u&o)},n.prototype.imaskn=function(h){r(typeof h=="number"&&h>=0);var g=h%26,c=(h-g)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=c)return this;if(g!==0&&c++,this.length=Math.min(c,this.length),g!==0){var o=67108863^67108863>>>g<<g;this.words[this.length-1]&=o}return this.length===0&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.maskn=function(h){return this.clone().imaskn(h)},n.prototype.iaddn=function(h){return r(typeof h=="number"),r(h<67108864),h<0?this.isubn(-h):this.negative!==0?this.length===1&&(this.words[0]|0)<h?(this.words[0]=h-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(h),this.negative=1,this):this._iaddn(h)},n.prototype._iaddn=function(h){this.words[0]+=h;for(var g=0;g<this.length&&this.words[g]>=67108864;g++)this.words[g]-=67108864,g===this.length-1?this.words[g+1]=1:this.words[g+1]++;return this.length=Math.max(this.length,g+1),this},n.prototype.isubn=function(h){if(r(typeof h=="number"),r(h<67108864),h<0)return this.iaddn(-h);if(this.negative!==0)return this.negative=0,this.iaddn(h),this.negative=1,this;if(this.words[0]-=h,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var g=0;g<this.length&&this.words[g]<0;g++)this.words[g]+=67108864,this.words[g+1]-=1;return this.strip()},n.prototype.addn=function(h){return this.clone().iaddn(h)},n.prototype.subn=function(h){return this.clone().isubn(h)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(h,g,c){var o=h.length+c,u;this._expand(o);var d,v=0;for(u=0;u<h.length;u++){d=(this.words[u+c]|0)+v;var p=(h.words[u]|0)*g;d-=p&67108863,v=(d>>26)-(p/67108864|0),this.words[u+c]=d&67108863}for(;u<this.length-c;u++)d=(this.words[u+c]|0)+v,v=d>>26,this.words[u+c]=d&67108863;if(v===0)return this.strip();for(r(v===-1),v=0,u=0;u<this.length;u++)d=-(this.words[u]|0)+v,v=d>>26,this.words[u]=d&67108863;return this.negative=1,this.strip()},n.prototype._wordDiv=function(h,g){var c=this.length-h.length,o=this.clone(),u=h,d=u.words[u.length-1]|0,v=this._countBits(d);c=26-v,c!==0&&(u=u.ushln(c),o.iushln(c),d=u.words[u.length-1]|0);var p=o.length-u.length,f;if(g!=="mod"){f=new n(null),f.length=p+1,f.words=new Array(f.length);for(var m=0;m<f.length;m++)f.words[m]=0}var _=o.clone()._ishlnsubmul(u,1,p);_.negative===0&&(o=_,f&&(f.words[p]=1));for(var l=p-1;l>=0;l--){var x=(o.words[u.length+l]|0)*67108864+(o.words[u.length+l-1]|0);for(x=Math.min(x/d|0,67108863),o._ishlnsubmul(u,x,l);o.negative!==0;)x--,o.negative=0,o._ishlnsubmul(u,1,l),o.isZero()||(o.negative^=1);f&&(f.words[l]=x)}return f&&f.strip(),o.strip(),g!=="div"&&c!==0&&o.iushrn(c),{div:f||null,mod:o}},n.prototype.divmod=function(h,g,c){if(r(!h.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var o,u,d;return this.negative!==0&&h.negative===0?(d=this.neg().divmod(h,g),g!=="mod"&&(o=d.div.neg()),g!=="div"&&(u=d.mod.neg(),c&&u.negative!==0&&u.iadd(h)),{div:o,mod:u}):this.negative===0&&h.negative!==0?(d=this.divmod(h.neg(),g),g!=="mod"&&(o=d.div.neg()),{div:o,mod:d.mod}):(this.negative&h.negative)!==0?(d=this.neg().divmod(h.neg(),g),g!=="div"&&(u=d.mod.neg(),c&&u.negative!==0&&u.isub(h)),{div:d.div,mod:u}):h.length>this.length||this.cmp(h)<0?{div:new n(0),mod:this}:h.length===1?g==="div"?{div:this.divn(h.words[0]),mod:null}:g==="mod"?{div:null,mod:new n(this.modn(h.words[0]))}:{div:this.divn(h.words[0]),mod:new n(this.modn(h.words[0]))}:this._wordDiv(h,g)},n.prototype.div=function(h){return this.divmod(h,"div",!1).div},n.prototype.mod=function(h){return this.divmod(h,"mod",!1).mod},n.prototype.umod=function(h){return this.divmod(h,"mod",!0).mod},n.prototype.divRound=function(h){var g=this.divmod(h);if(g.mod.isZero())return g.div;var c=g.div.negative!==0?g.mod.isub(h):g.mod,o=h.ushrn(1),u=h.andln(1),d=c.cmp(o);return d<0||u===1&&d===0?g.div:g.div.negative!==0?g.div.isubn(1):g.div.iaddn(1)},n.prototype.modn=function(h){r(h<=67108863);for(var g=(1<<26)%h,c=0,o=this.length-1;o>=0;o--)c=(g*c+(this.words[o]|0))%h;return c},n.prototype.idivn=function(h){r(h<=67108863);for(var g=0,c=this.length-1;c>=0;c--){var o=(this.words[c]|0)+g*67108864;this.words[c]=o/h|0,g=o%h}return this.strip()},n.prototype.divn=function(h){return this.clone().idivn(h)},n.prototype.egcd=function(h){r(h.negative===0),r(!h.isZero());var g=this,c=h.clone();g.negative!==0?g=g.umod(h):g=g.clone();for(var o=new n(1),u=new n(0),d=new n(0),v=new n(1),p=0;g.isEven()&&c.isEven();)g.iushrn(1),c.iushrn(1),++p;for(var f=c.clone(),m=g.clone();!g.isZero();){for(var _=0,l=1;(g.words[0]&l)===0&&_<26;++_,l<<=1);if(_>0)for(g.iushrn(_);_-- >0;)(o.isOdd()||u.isOdd())&&(o.iadd(f),u.isub(m)),o.iushrn(1),u.iushrn(1);for(var x=0,I=1;(c.words[0]&I)===0&&x<26;++x,I<<=1);if(x>0)for(c.iushrn(x);x-- >0;)(d.isOdd()||v.isOdd())&&(d.iadd(f),v.isub(m)),d.iushrn(1),v.iushrn(1);g.cmp(c)>=0?(g.isub(c),o.isub(d),u.isub(v)):(c.isub(g),d.isub(o),v.isub(u))}return{a:d,b:v,gcd:c.iushln(p)}},n.prototype._invmp=function(h){r(h.negative===0),r(!h.isZero());var g=this,c=h.clone();g.negative!==0?g=g.umod(h):g=g.clone();for(var o=new n(1),u=new n(0),d=c.clone();g.cmpn(1)>0&&c.cmpn(1)>0;){for(var v=0,p=1;(g.words[0]&p)===0&&v<26;++v,p<<=1);if(v>0)for(g.iushrn(v);v-- >0;)o.isOdd()&&o.iadd(d),o.iushrn(1);for(var f=0,m=1;(c.words[0]&m)===0&&f<26;++f,m<<=1);if(f>0)for(c.iushrn(f);f-- >0;)u.isOdd()&&u.iadd(d),u.iushrn(1);g.cmp(c)>=0?(g.isub(c),o.isub(u)):(c.isub(g),u.isub(o))}var _;return g.cmpn(1)===0?_=o:_=u,_.cmpn(0)<0&&_.iadd(h),_},n.prototype.gcd=function(h){if(this.isZero())return h.abs();if(h.isZero())return this.abs();var g=this.clone(),c=h.clone();g.negative=0,c.negative=0;for(var o=0;g.isEven()&&c.isEven();o++)g.iushrn(1),c.iushrn(1);do{for(;g.isEven();)g.iushrn(1);for(;c.isEven();)c.iushrn(1);var u=g.cmp(c);if(u<0){var d=g;g=c,c=d}else if(u===0||c.cmpn(1)===0)break;g.isub(c)}while(!0);return c.iushln(o)},n.prototype.invm=function(h){return this.egcd(h).a.umod(h)},n.prototype.isEven=function(){return(this.words[0]&1)===0},n.prototype.isOdd=function(){return(this.words[0]&1)===1},n.prototype.andln=function(h){return this.words[0]&h},n.prototype.bincn=function(h){r(typeof h=="number");var g=h%26,c=(h-g)/26,o=1<<g;if(this.length<=c)return this._expand(c+1),this.words[c]|=o,this;for(var u=o,d=c;u!==0&&d<this.length;d++){var v=this.words[d]|0;v+=u,u=v>>>26,v&=67108863,this.words[d]=v}return u!==0&&(this.words[d]=u,this.length++),this},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.prototype.cmpn=function(h){var g=h<0;if(this.negative!==0&&!g)return-1;if(this.negative===0&&g)return 1;this.strip();var c;if(this.length>1)c=1;else{g&&(h=-h),r(h<=67108863,"Number is too big");var o=this.words[0]|0;c=o===h?0:o<h?-1:1}return this.negative!==0?-c|0:c},n.prototype.cmp=function(h){if(this.negative!==0&&h.negative===0)return-1;if(this.negative===0&&h.negative!==0)return 1;var g=this.ucmp(h);return this.negative!==0?-g|0:g},n.prototype.ucmp=function(h){if(this.length>h.length)return 1;if(this.length<h.length)return-1;for(var g=0,c=this.length-1;c>=0;c--){var o=this.words[c]|0,u=h.words[c]|0;if(o!==u){o<u?g=-1:o>u&&(g=1);break}}return g},n.prototype.gtn=function(h){return this.cmpn(h)===1},n.prototype.gt=function(h){return this.cmp(h)===1},n.prototype.gten=function(h){return this.cmpn(h)>=0},n.prototype.gte=function(h){return this.cmp(h)>=0},n.prototype.ltn=function(h){return this.cmpn(h)===-1},n.prototype.lt=function(h){return this.cmp(h)===-1},n.prototype.lten=function(h){return this.cmpn(h)<=0},n.prototype.lte=function(h){return this.cmp(h)<=0},n.prototype.eqn=function(h){return this.cmpn(h)===0},n.prototype.eq=function(h){return this.cmp(h)===0},n.red=function(h){return new De(h)},n.prototype.toRed=function(h){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),h.convertTo(this)._forceRed(h)},n.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(h){return this.red=h,this},n.prototype.forceRed=function(h){return r(!this.red,"Already a number in reduction context"),this._forceRed(h)},n.prototype.redAdd=function(h){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,h)},n.prototype.redIAdd=function(h){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,h)},n.prototype.redSub=function(h){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,h)},n.prototype.redISub=function(h){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,h)},n.prototype.redShl=function(h){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,h)},n.prototype.redMul=function(h){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,h),this.red.mul(this,h)},n.prototype.redIMul=function(h){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,h),this.red.imul(this,h)},n.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(h){return r(this.red&&!h.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,h)};var Se={k256:null,p224:null,p192:null,p25519:null};function Fe(E,h){this.name=E,this.p=new n(h,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Fe.prototype._tmp=function(){var h=new n(null);return h.words=new Array(Math.ceil(this.n/13)),h},Fe.prototype.ireduce=function(h){var g=h,c;do this.split(g,this.tmp),g=this.imulK(g),g=g.iadd(this.tmp),c=g.bitLength();while(c>this.n);var o=c<this.n?-1:g.ucmp(this.p);return o===0?(g.words[0]=0,g.length=1):o>0?g.isub(this.p):g.strip!==void 0?g.strip():g._strip(),g},Fe.prototype.split=function(h,g){h.iushrn(this.n,0,g)},Fe.prototype.imulK=function(h){return h.imul(this.k)};function je(){Fe.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(je,Fe),je.prototype.split=function(h,g){for(var c=4194303,o=Math.min(h.length,9),u=0;u<o;u++)g.words[u]=h.words[u];if(g.length=o,h.length<=9){h.words[0]=0,h.length=1;return}var d=h.words[9];for(g.words[g.length++]=d&c,u=10;u<h.length;u++){var v=h.words[u]|0;h.words[u-10]=(v&c)<<4|d>>>22,d=v}d>>>=22,h.words[u-10]=d,d===0&&h.length>10?h.length-=10:h.length-=9},je.prototype.imulK=function(h){h.words[h.length]=0,h.words[h.length+1]=0,h.length+=2;for(var g=0,c=0;c<h.length;c++){var o=h.words[c]|0;g+=o*977,h.words[c]=g&67108863,g=o*64+(g/67108864|0)}return h.words[h.length-1]===0&&(h.length--,h.words[h.length-1]===0&&h.length--),h};function nr(){Fe.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i(nr,Fe);function Ge(){Fe.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i(Ge,Fe);function Tt(){Fe.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i(Tt,Fe),Tt.prototype.imulK=function(h){for(var g=0,c=0;c<h.length;c++){var o=(h.words[c]|0)*19+g,u=o&67108863;o>>>=26,h.words[c]=u,g=o}return g!==0&&(h.words[h.length++]=g),h},n._prime=function(h){if(Se[h])return Se[h];var g;if(h==="k256")g=new je;else if(h==="p224")g=new nr;else if(h==="p192")g=new Ge;else if(h==="p25519")g=new Tt;else throw new Error("Unknown prime "+h);return Se[h]=g,g};function De(E){if(typeof E=="string"){var h=n._prime(E);this.m=h.p,this.prime=h}else r(E.gtn(1),"modulus must be greater than 1"),this.m=E,this.prime=null}De.prototype._verify1=function(h){r(h.negative===0,"red works only with positives"),r(h.red,"red works only with red numbers")},De.prototype._verify2=function(h,g){r((h.negative|g.negative)===0,"red works only with positives"),r(h.red&&h.red===g.red,"red works only with red numbers")},De.prototype.imod=function(h){return this.prime?this.prime.ireduce(h)._forceRed(this):h.umod(this.m)._forceRed(this)},De.prototype.neg=function(h){return h.isZero()?h.clone():this.m.sub(h)._forceRed(this)},De.prototype.add=function(h,g){this._verify2(h,g);var c=h.add(g);return c.cmp(this.m)>=0&&c.isub(this.m),c._forceRed(this)},De.prototype.iadd=function(h,g){this._verify2(h,g);var c=h.iadd(g);return c.cmp(this.m)>=0&&c.isub(this.m),c},De.prototype.sub=function(h,g){this._verify2(h,g);var c=h.sub(g);return c.cmpn(0)<0&&c.iadd(this.m),c._forceRed(this)},De.prototype.isub=function(h,g){this._verify2(h,g);var c=h.isub(g);return c.cmpn(0)<0&&c.iadd(this.m),c},De.prototype.shl=function(h,g){return this._verify1(h),this.imod(h.ushln(g))},De.prototype.imul=function(h,g){return this._verify2(h,g),this.imod(h.imul(g))},De.prototype.mul=function(h,g){return this._verify2(h,g),this.imod(h.mul(g))},De.prototype.isqr=function(h){return this.imul(h,h.clone())},De.prototype.sqr=function(h){return this.mul(h,h)},De.prototype.sqrt=function(h){if(h.isZero())return h.clone();var g=this.m.andln(3);if(r(g%2===1),g===3){var c=this.m.add(new n(1)).iushrn(2);return this.pow(h,c)}for(var o=this.m.subn(1),u=0;!o.isZero()&&o.andln(1)===0;)u++,o.iushrn(1);r(!o.isZero());var d=new n(1).toRed(this),v=d.redNeg(),p=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new n(2*f*f).toRed(this);this.pow(f,p).cmp(v)!==0;)f.redIAdd(v);for(var m=this.pow(f,o),_=this.pow(h,o.addn(1).iushrn(1)),l=this.pow(h,o),x=u;l.cmp(d)!==0;){for(var I=l,D=0;I.cmp(d)!==0;D++)I=I.redSqr();r(D<x);var C=this.pow(m,new n(1).iushln(x-D-1));_=_.redMul(C),m=C.redSqr(),l=l.redMul(m),x=D}return _},De.prototype.invm=function(h){var g=h._invmp(this.m);return g.negative!==0?(g.negative=0,this.imod(g).redNeg()):this.imod(g)},De.prototype.pow=function(h,g){if(g.isZero())return new n(1).toRed(this);if(g.cmpn(1)===0)return h.clone();var c=4,o=new Array(1<<c);o[0]=new n(1).toRed(this),o[1]=h;for(var u=2;u<o.length;u++)o[u]=this.mul(o[u-1],h);var d=o[0],v=0,p=0,f=g.bitLength()%26;for(f===0&&(f=26),u=g.length-1;u>=0;u--){for(var m=g.words[u],_=f-1;_>=0;_--){var l=m>>_&1;if(d!==o[0]&&(d=this.sqr(d)),l===0&&v===0){p=0;continue}v<<=1,v|=l,p++,!(p!==c&&(u!==0||_!==0))&&(d=this.mul(d,o[v]),p=0,v=0)}f=26}return d},De.prototype.convertTo=function(h){var g=h.umod(this.m);return g===h?g.clone():g},De.prototype.convertFrom=function(h){var g=h.clone();return g.red=null,g},n.mont=function(h){return new st(h)};function st(E){De.call(this,E),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new n(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)}i(st,De),st.prototype.convertTo=function(h){return this.imod(h.ushln(this.shift))},st.prototype.convertFrom=function(h){var g=this.imod(h.mul(this.rinv));return g.red=null,g},st.prototype.imul=function(h,g){if(h.isZero()||g.isZero())return h.words[0]=0,h.length=1,h;var c=h.imul(g),o=c.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=c.isub(o).iushrn(this.shift),d=u;return u.cmp(this.m)>=0?d=u.isub(this.m):u.cmpn(0)<0&&(d=u.iadd(this.m)),d._forceRed(this)},st.prototype.mul=function(h,g){if(h.isZero()||g.isZero())return new n(0)._forceRed(this);var c=h.mul(g),o=c.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=c.isub(o).iushrn(this.shift),d=u;return u.cmp(this.m)>=0?d=u.isub(this.m):u.cmpn(0)<0&&(d=u.iadd(this.m)),d._forceRed(this)},st.prototype.invm=function(h){var g=this.imod(h._invmp(this.m).mul(this.r2));return g._forceRed(this)}})(typeof Ru>"u"||Ru,Wy)});var $y=B((O7,ku)=>{b();var qu;ku.exports=function(e){return qu||(qu=new yr(null)),qu.generate(e)};function yr(t){this.rand=t}ku.exports.Rand=yr;yr.prototype.generate=function(e){return this._rand(e)};yr.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var r=new Uint8Array(e),i=0;i<r.length;i++)r[i]=this.rand.getByte();return r};if(typeof self=="object")self.crypto&&self.crypto.getRandomValues?yr.prototype._rand=function(e){var r=new Uint8Array(e);return self.crypto.getRandomValues(r),r}:self.msCrypto&&self.msCrypto.getRandomValues?yr.prototype._rand=function(e){var r=new Uint8Array(e);return self.msCrypto.getRandomValues(r),r}:typeof window=="object"&&(yr.prototype._rand=function(){throw new Error("Not implemented yet")});else try{if(Tu=Iu(),typeof Tu.randomBytes!="function")throw new Error("Not supported");yr.prototype._rand=function(e){return Tu.randomBytes(e)}}catch{}var Tu});var Cu=B((P7,Gy)=>{b();var ai=vr(),h4=$y();function fi(t){this.rand=t||new h4.Rand}Gy.exports=fi;fi.create=function(e){return new fi(e)};fi.prototype._randbelow=function(e){var r=e.bitLength(),i=Math.ceil(r/8);do var n=new ai(this.rand.generate(i));while(n.cmp(e)>=0);return n};fi.prototype._randrange=function(e,r){var i=r.sub(e);return e.add(this._randbelow(i))};fi.prototype.test=function(e,r,i){var n=e.bitLength(),a=ai.mont(e),s=new ai(1).toRed(a);r||(r=Math.max(1,n/48|0));for(var y=e.subn(1),w=0;!y.testn(w);w++);for(var S=e.shrn(w),A=y.toRed(a),q=!0;r>0;r--){var k=this._randrange(new ai(2),y);i&&i(k);var O=k.toRed(a).redPow(S);if(!(O.cmp(s)===0||O.cmp(A)===0)){for(var P=1;P<w;P++){if(O=O.redSqr(),O.cmp(s)===0)return!1;if(O.cmp(A)===0)break}if(P===w)return!1}}return q};fi.prototype.getDivisor=function(e,r){var i=e.bitLength(),n=ai.mont(e),a=new ai(1).toRed(n);r||(r=Math.max(1,i/48|0));for(var s=e.subn(1),y=0;!s.testn(y);y++);for(var w=e.shrn(y),S=s.toRed(n);r>0;r--){var A=this._randrange(new ai(2),s),q=e.gcd(A);if(q.cmpn(1)!==0)return q;var k=A.toRed(n).redPow(w);if(!(k.cmp(a)===0||k.cmp(S)===0)){for(var O=1;O<y;O++){if(k=k.redSqr(),k.cmp(a)===0)return k.fromRed().subn(1).gcd(e);if(k.cmp(S)===0)break}if(O===y)return k=k.redSqr(),k.fromRed().subn(1).gcd(e)}}return!1}});var Nu=B((H7,Zy)=>{b();var l4=Ur();Zy.exports=Lu;Lu.simpleSieve=Pu;Lu.fermatTest=Uu;var Ye=vr(),c4=new Ye(24),d4=Cu(),Vy=new d4,p4=new Ye(1),Du=new Ye(2),v4=new Ye(5),L7=new Ye(16),N7=new Ye(8),y4=new Ye(10),g4=new Ye(3),F7=new Ye(7),m4=new Ye(11),zy=new Ye(4),j7=new Ye(12),Ou=null;function b4(){if(Ou!==null)return Ou;var t=1048576,e=[];e[0]=2;for(var r=1,i=3;i<t;i+=2){for(var n=Math.ceil(Math.sqrt(i)),a=0;a<r&&e[a]<=n&&i%e[a]!==0;a++);r!==a&&e[a]<=n||(e[r++]=i)}return Ou=e,e}function Pu(t){for(var e=b4(),r=0;r<e.length;r++)if(t.modn(e[r])===0)return t.cmpn(e[r])===0;return!0}function Uu(t){var e=Ye.mont(t);return Du.toRed(e).redPow(t.subn(1)).fromRed().cmpn(1)===0}function Lu(t,e){if(t<16)return e===2||e===5?new Ye([140,123]):new Ye([140,39]);e=new Ye(e);for(var r,i;;){for(r=new Ye(l4(Math.ceil(t/8)));r.bitLength()>t;)r.ishrn(1);if(r.isEven()&&r.iadd(p4),r.testn(1)||r.iadd(Du),e.cmp(Du)){if(!e.cmp(v4))for(;r.mod(y4).cmp(g4);)r.iadd(zy)}else for(;r.mod(c4).cmp(m4);)r.iadd(zy);if(i=r.shrn(1),Pu(i)&&Pu(r)&&Uu(i)&&Uu(r)&&Vy.test(i)&&Vy.test(r))return r}}});var Yy=B((W7,w4)=>{w4.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}});var e1=B(($7,Qy)=>{b();var yt=vr(),_4=Cu(),Xy=new _4,x4=new yt(24),M4=new yt(11),E4=new yt(10),S4=new yt(3),B4=new yt(7),Jy=Nu(),A4=Ur();Qy.exports=rr;function R4(t,e){return e=e||"utf8",R.Buffer.isBuffer(t)||(t=new R.Buffer(t,e)),this._pub=new yt(t),this}function q4(t,e){return e=e||"utf8",R.Buffer.isBuffer(t)||(t=new R.Buffer(t,e)),this._priv=new yt(t),this}var za={};function T4(t,e){var r=e.toString("hex"),i=[r,t.toString(16)].join("_");if(i in za)return za[i];var n=0;if(t.isEven()||!Jy.simpleSieve||!Jy.fermatTest(t)||!Xy.test(t))return n+=1,r==="02"||r==="05"?n+=8:n+=4,za[i]=n,n;Xy.test(t.shrn(1))||(n+=2);var a;switch(r){case"02":t.mod(x4).cmp(M4)&&(n+=8);break;case"05":a=t.mod(E4),a.cmp(S4)&&a.cmp(B4)&&(n+=8);break;default:n+=4}return za[i]=n,n}function rr(t,e,r){this.setGenerator(e),this.__prime=new yt(t),this._prime=yt.mont(this.__prime),this._primeLen=t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=R4,this.setPrivateKey=q4):this._primeCode=8}Object.defineProperty(rr.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=T4(this.__prime,this.__gen)),this._primeCode}});rr.prototype.generateKeys=function(){return this._priv||(this._priv=new yt(A4(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()};rr.prototype.computeSecret=function(t){t=new yt(t),t=t.toRed(this._prime);var e=t.redPow(this._priv).fromRed(),r=new R.Buffer(e.toArray()),i=this.getPrime();if(r.length<i.length){var n=new R.Buffer(i.length-r.length);n.fill(0),r=R.Buffer.concat([n,r])}return r};rr.prototype.getPublicKey=function(e){return Za(this._pub,e)};rr.prototype.getPrivateKey=function(e){return Za(this._priv,e)};rr.prototype.getPrime=function(t){return Za(this.__prime,t)};rr.prototype.getGenerator=function(t){return Za(this._gen,t)};rr.prototype.setGenerator=function(t,e){return e=e||"utf8",R.Buffer.isBuffer(t)||(t=new R.Buffer(t,e)),this.__gen=t,this._gen=new yt(t),this};function Za(t,e){var r=new R.Buffer(t.toArray());return e?r.toString(e):r}});var i1=B(Wi=>{b();var k4=Nu(),t1=Yy(),Fu=e1();function I4(t){var e=new R.Buffer(t1[t].prime,"hex"),r=new R.Buffer(t1[t].gen,"hex");return new Fu(e,r)}var C4={binary:!0,hex:!0,base64:!0};function r1(t,e,r,i){return R.Buffer.isBuffer(e)||C4[e]===void 0?r1(t,"binary",e,r):(e=e||"binary",i=i||"binary",r=r||new R.Buffer([2]),R.Buffer.isBuffer(r)||(r=new R.Buffer(r,i)),typeof t=="number"?new Fu(k4(t,r),r,!0):(R.Buffer.isBuffer(t)||(t=new R.Buffer(t,e)),new Fu(t,r,!0)))}Wi.DiffieHellmanGroup=Wi.createDiffieHellmanGroup=Wi.getDiffieHellman=I4;Wi.createDiffieHellman=Wi.DiffieHellman=r1});var n1=B((exports,module)=>{b();var indexOf=function(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0;r<t.length;r++)if(t[r]===e)return r;return-1},Object_keys=function(t){if(Object.keys)return Object.keys(t);var e=[];for(var r in t)e.push(r);return e},forEach=function(t,e){if(t.forEach)return t.forEach(e);for(var r=0;r<t.length;r++)e(t[r],r,t)},defineProp=(function(){try{return Object.defineProperty({},"_",{}),function(t,e,r){Object.defineProperty(t,e,{writable:!0,enumerable:!1,configurable:!0,value:r})}}catch{return function(e,r,i){e[r]=i}}})(),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(t){if(!(t instanceof Context))throw new TypeError("needs a 'context' argument.");var e=document.createElement("iframe");e.style||(e.style={}),e.style.display="none",document.body.appendChild(e);var r=e.contentWindow,i=r.eval,n=r.execScript;!i&&n&&(n.call(r,"null"),i=r.eval),forEach(Object_keys(t),function(y){r[y]=t[y]}),forEach(globals,function(y){t[y]&&(r[y]=t[y])});var a=Object_keys(r),s=i.call(r,this.code);return forEach(Object_keys(r),function(y){(y in t||indexOf(a,y)===-1)&&(t[y]=r[y])}),forEach(globals,function(y){y in t||defineProp(t,y,r[y])}),document.body.removeChild(e),s};Script.prototype.runInThisContext=function(){return eval(this.code)};Script.prototype.runInNewContext=function(t){var e=Script.createContext(t),r=this.runInContext(e);return t&&forEach(Object_keys(e),function(i){t[i]=e[i]}),r};forEach(Object_keys(Script.prototype),function(t){exports[t]=Script[t]=function(e){var r=Script(e);return r[t].apply(r,[].slice.call(arguments,1))}});exports.isContext=function(t){return t instanceof Context};exports.createScript=function(t){return exports.Script(t)};exports.createContext=Script.createContext=function(t){var e=new Context;return typeof t=="object"&&forEach(Object_keys(t),function(r){e[r]=t[r]}),e}});var f1=B(a1=>{b();var o1=Gi(),O4=K(),D4=a1;D4.define=function(e,r){return new $i(e,r)};function $i(t,e){this.name=t,this.body=e,this.decoders={},this.encoders={}}$i.prototype._createNamed=function(e){var r;try{r=n1().runInThisContext("(function "+this.name+`(entity) {
|
|
12
12
|
this._initNamed(entity);
|
|
13
|
-
})`)}catch{r=function(n){this._initNamed(n)}}return W4(r,e),r.prototype._initNamed=function(n){e.call(this,n)},new r(this)};Vi.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(v1.decoders[e])),this.decoders[e]};Vi.prototype.decode=function(e,r,i){return this._getDecoder(r).decode(e,i)};Vi.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(v1.encoders[e])),this.encoders[e]};Vi.prototype.encode=function(e,r,i){return this._getEncoder(r).encode(e,i)}});var b1=B(m1=>{b();var G4=De();function gt(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}m1.Reporter=gt;gt.prototype.isError=function(e){return e instanceof Zi};gt.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}};gt.prototype.restore=function(e){var r=this._reporterState;r.obj=e.obj,r.path=r.path.slice(0,e.pathLen)};gt.prototype.enterKey=function(e){return this._reporterState.path.push(e)};gt.prototype.exitKey=function(e){var r=this._reporterState;r.path=r.path.slice(0,e-1)};gt.prototype.leaveKey=function(e,r,i){var n=this._reporterState;this.exitKey(e),n.obj!==null&&(n.obj[r]=i)};gt.prototype.path=function(){return this._reporterState.path.join("/")};gt.prototype.enterObject=function(){var e=this._reporterState,r=e.obj;return e.obj={},r};gt.prototype.leaveObject=function(e){var r=this._reporterState,i=r.obj;return r.obj=e,i};gt.prototype.error=function(e){var r,i=this._reporterState,n=e instanceof Zi;if(n?r=e:r=new Zi(i.path.map(function(a){return"["+JSON.stringify(a)+"]"}).join(""),e.message||e,e.stack),!i.options.partial)throw r;return n||i.errors.push(r),r};gt.prototype.wrapResult=function(e){var r=this._reporterState;return r.options.partial?{result:this.isError(e)?null:e,errors:r.errors}:e};function Zi(t,e){this.path=t,this.rethrow(e)}G4(Zi,Error);Zi.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,Zi),!this.stack)try{throw new Error(this.message)}catch(r){this.stack=r.stack}return this}});var Yu=B(Zu=>{b();var V4=De(),Qa=Yi().Reporter,uo=rt().Buffer;function Ft(t,e){if(Qa.call(this,e),!uo.isBuffer(t)){this.error("Input not Buffer");return}this.base=t,this.offset=0,this.length=t.length}V4(Ft,Qa);Zu.DecoderBuffer=Ft;Ft.prototype.save=function(){return{offset:this.offset,reporter:Qa.prototype.save.call(this)}};Ft.prototype.restore=function(e){var r=new Ft(this.base);return r.offset=e.offset,r.length=this.offset,this.offset=e.offset,Qa.prototype.restore.call(this,e.reporter),r};Ft.prototype.isEmpty=function(){return this.offset===this.length};Ft.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")};Ft.prototype.skip=function(e,r){if(!(this.offset+e<=this.length))return this.error(r||"DecoderBuffer overrun");var i=new Ft(this.base);return i._reporterState=this._reporterState,i.offset=this.offset,i.length=this.offset+e,this.offset+=e,i};Ft.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)};function Ja(t,e){if(Array.isArray(t))this.length=0,this.value=t.map(function(r){return r instanceof Ja||(r=new Ja(r,e)),this.length+=r.length,r},this);else if(typeof t=="number"){if(!(0<=t&&t<=255))return e.error("non-byte EncoderBuffer value");this.value=t,this.length=1}else if(typeof t=="string")this.value=t,this.length=uo.byteLength(t);else if(uo.isBuffer(t))this.value=t,this.length=t.length;else return e.error("Unsupported type: "+typeof t)}Zu.EncoderBuffer=Ja;Ja.prototype.join=function(e,r){return e||(e=new uo(this.length)),r||(r=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(i){i.join(e,r),r+=i.length}):(typeof this.value=="number"?e[r]=this.value:typeof this.value=="string"?e.write(this.value,r):uo.isBuffer(this.value)&&this.value.copy(e,r),r+=this.length)),e}});var x1=B((x9,_1)=>{b();var z4=Yi().Reporter,Z4=Yi().EncoderBuffer,Y4=Yi().DecoderBuffer,it=ji(),w1=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],X4=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(w1),J4=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function Oe(t,e){var r={};this._baseState=r,r.enc=t,r.parent=e||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}_1.exports=Oe;var Q4=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];Oe.prototype.clone=function(){var e=this._baseState,r={};Q4.forEach(function(n){r[n]=e[n]});var i=new this.constructor(r.parent);return i._baseState=r,i};Oe.prototype._wrap=function(){var e=this._baseState;X4.forEach(function(r){this[r]=function(){var n=new this.constructor(this);return e.children.push(n),n[r].apply(n,arguments)}},this)};Oe.prototype._init=function(e){var r=this._baseState;it(r.parent===null),e.call(this),r.children=r.children.filter(function(i){return i._baseState.parent===this},this),it.equal(r.children.length,1,"Root node can have only one child")};Oe.prototype._useArgs=function(e){var r=this._baseState,i=e.filter(function(n){return n instanceof this.constructor},this);e=e.filter(function(n){return!(n instanceof this.constructor)},this),i.length!==0&&(it(r.children===null),r.children=i,i.forEach(function(n){n._baseState.parent=this},this)),e.length!==0&&(it(r.args===null),r.args=e,r.reverseArgs=e.map(function(n){if(typeof n!="object"||n.constructor!==Object)return n;var a={};return Object.keys(n).forEach(function(s){s==(s|0)&&(s|=0);var y=n[s];a[y]=s}),a}))};J4.forEach(function(t){Oe.prototype[t]=function(){var r=this._baseState;throw new Error(t+" not implemented for encoding: "+r.enc)}});w1.forEach(function(t){Oe.prototype[t]=function(){var r=this._baseState,i=Array.prototype.slice.call(arguments);return it(r.tag===null),r.tag=t,this._useArgs(i),this}});Oe.prototype.use=function(e){it(e);var r=this._baseState;return it(r.use===null),r.use=e,this};Oe.prototype.optional=function(){var e=this._baseState;return e.optional=!0,this};Oe.prototype.def=function(e){var r=this._baseState;return it(r.default===null),r.default=e,r.optional=!0,this};Oe.prototype.explicit=function(e){var r=this._baseState;return it(r.explicit===null&&r.implicit===null),r.explicit=e,this};Oe.prototype.implicit=function(e){var r=this._baseState;return it(r.explicit===null&&r.implicit===null),r.implicit=e,this};Oe.prototype.obj=function(){var e=this._baseState,r=Array.prototype.slice.call(arguments);return e.obj=!0,r.length!==0&&this._useArgs(r),this};Oe.prototype.key=function(e){var r=this._baseState;return it(r.key===null),r.key=e,this};Oe.prototype.any=function(){var e=this._baseState;return e.any=!0,this};Oe.prototype.choice=function(e){var r=this._baseState;return it(r.choice===null),r.choice=e,this._useArgs(Object.keys(e).map(function(i){return e[i]})),this};Oe.prototype.contains=function(e){var r=this._baseState;return it(r.use===null),r.contains=e,this};Oe.prototype._decode=function(e,r){var i=this._baseState;if(i.parent===null)return e.wrapResult(i.children[0]._decode(e,r));var n=i.default,a=!0,s=null;if(i.key!==null&&(s=e.enterKey(i.key)),i.optional){var y=null;if(i.explicit!==null?y=i.explicit:i.implicit!==null?y=i.implicit:i.tag!==null&&(y=i.tag),y===null&&!i.any){var w=e.save();try{i.choice===null?this._decodeGeneric(i.tag,e,r):this._decodeChoice(e,r),a=!0}catch{a=!1}e.restore(w)}else if(a=this._peekTag(e,y,i.any),e.isError(a))return a}var S;if(i.obj&&a&&(S=e.enterObject()),a){if(i.explicit!==null){var A=this._decodeTag(e,i.explicit);if(e.isError(A))return A;e=A}var q=e.offset;if(i.use===null&&i.choice===null){if(i.any)var w=e.save();var k=this._decodeTag(e,i.implicit!==null?i.implicit:i.tag,i.any);if(e.isError(k))return k;i.any?n=e.raw(w):e=k}if(r&&r.track&&i.tag!==null&&r.track(e.path(),q,e.length,"tagged"),r&&r.track&&i.tag!==null&&r.track(e.path(),e.offset,e.length,"content"),i.any?n=n:i.choice===null?n=this._decodeGeneric(i.tag,e,r):n=this._decodeChoice(e,r),e.isError(n))return n;if(!i.any&&i.choice===null&&i.children!==null&&i.children.forEach(function(K){K._decode(e,r)}),i.contains&&(i.tag==="octstr"||i.tag==="bitstr")){var C=new Y4(n);n=this._getUse(i.contains,e._reporterState.obj)._decode(C,r)}}return i.obj&&a&&(n=e.leaveObject(S)),i.key!==null&&(n!==null||a===!0)?e.leaveKey(s,i.key,n):s!==null&&e.exitKey(s),n};Oe.prototype._decodeGeneric=function(e,r,i){var n=this._baseState;return e==="seq"||e==="set"?null:e==="seqof"||e==="setof"?this._decodeList(r,e,n.args[0],i):/str$/.test(e)?this._decodeStr(r,e,i):e==="objid"&&n.args?this._decodeObjid(r,n.args[0],n.args[1],i):e==="objid"?this._decodeObjid(r,null,null,i):e==="gentime"||e==="utctime"?this._decodeTime(r,e,i):e==="null_"?this._decodeNull(r,i):e==="bool"?this._decodeBool(r,i):e==="objDesc"?this._decodeStr(r,e,i):e==="int"||e==="enum"?this._decodeInt(r,n.args&&n.args[0],i):n.use!==null?this._getUse(n.use,r._reporterState.obj)._decode(r,i):r.error("unknown tag: "+e)};Oe.prototype._getUse=function(e,r){var i=this._baseState;return i.useDecoder=this._use(e,r),it(i.useDecoder._baseState.parent===null),i.useDecoder=i.useDecoder._baseState.children[0],i.implicit!==i.useDecoder._baseState.implicit&&(i.useDecoder=i.useDecoder.clone(),i.useDecoder._baseState.implicit=i.implicit),i.useDecoder};Oe.prototype._decodeChoice=function(e,r){var i=this._baseState,n=null,a=!1;return Object.keys(i.choice).some(function(s){var y=e.save(),w=i.choice[s];try{var S=w._decode(e,r);if(e.isError(S))return!1;n={type:s,value:S},a=!0}catch{return e.restore(y),!1}return!0},this),a?n:e.error("Choice not matched")};Oe.prototype._createEncoderBuffer=function(e){return new Z4(e,this.reporter)};Oe.prototype._encode=function(e,r,i){var n=this._baseState;if(!(n.default!==null&&n.default===e)){var a=this._encodeValue(e,r,i);if(a!==void 0&&!this._skipDefault(a,r,i))return a}};Oe.prototype._encodeValue=function(e,r,i){var n=this._baseState;if(n.parent===null)return n.children[0]._encode(e,r||new z4);var w=null;if(this.reporter=r,n.optional&&e===void 0)if(n.default!==null)e=n.default;else return;var a=null,s=!1;if(n.any)w=this._createEncoderBuffer(e);else if(n.choice)w=this._encodeChoice(e,r);else if(n.contains)a=this._getUse(n.contains,i)._encode(e,r),s=!0;else if(n.children)a=n.children.map(function(q){if(q._baseState.tag==="null_")return q._encode(null,r,e);if(q._baseState.key===null)return r.error("Child should have a key");var k=r.enterKey(q._baseState.key);if(typeof e!="object")return r.error("Child expected, but input is not object");var C=q._encode(e[q._baseState.key],r,e);return r.leaveKey(k),C},this).filter(function(q){return q}),a=this._createEncoderBuffer(a);else if(n.tag==="seqof"||n.tag==="setof"){if(!(n.args&&n.args.length===1))return r.error("Too many args for : "+n.tag);if(!Array.isArray(e))return r.error("seqof/setof, but data is not Array");var y=this.clone();y._baseState.implicit=null,a=this._createEncoderBuffer(e.map(function(q){var k=this._baseState;return this._getUse(k.args[0],e)._encode(q,r)},y))}else n.use!==null?w=this._getUse(n.use,i)._encode(e,r):(a=this._encodePrimitive(n.tag,e),s=!0);var w;if(!n.any&&n.choice===null){var S=n.implicit!==null?n.implicit:n.tag,A=n.implicit===null?"universal":"context";S===null?n.use===null&&r.error("Tag could be omitted only for .use()"):n.use===null&&(w=this._encodeComposite(S,s,A,a))}return n.explicit!==null&&(w=this._encodeComposite(n.explicit,!1,"context",w)),w};Oe.prototype._encodeChoice=function(e,r){var i=this._baseState,n=i.choice[e.type];return n||it(!1,e.type+" not found in "+JSON.stringify(Object.keys(i.choice))),n._encode(e.value,r)};Oe.prototype._encodePrimitive=function(e,r){var i=this._baseState;if(/str$/.test(e))return this._encodeStr(r,e);if(e==="objid"&&i.args)return this._encodeObjid(r,i.reverseArgs[0],i.args[1]);if(e==="objid")return this._encodeObjid(r,null,null);if(e==="gentime"||e==="utctime")return this._encodeTime(r,e);if(e==="null_")return this._encodeNull();if(e==="int"||e==="enum")return this._encodeInt(r,i.args&&i.reverseArgs[0]);if(e==="bool")return this._encodeBool(r);if(e==="objDesc")return this._encodeStr(r,e);throw new Error("Unsupported tag: "+e)};Oe.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)};Oe.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}});var Yi=B(M1=>{b();var ef=M1;ef.Reporter=b1().Reporter;ef.DecoderBuffer=Yu().DecoderBuffer;ef.EncoderBuffer=Yu().EncoderBuffer;ef.Node=x1()});var S1=B(hi=>{b();var E1=Xu();hi.tagClass={0:"universal",1:"application",2:"context",3:"private"};hi.tagClassByName=E1._reverse(hi.tagClass);hi.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"};hi.tagByName=E1._reverse(hi.tag)});var Xu=B(A1=>{b();var B1=A1;B1._reverse=function(e){var r={};return Object.keys(e).forEach(function(i){(i|0)==i&&(i=i|0);var n=e[i];r[n]=i}),r};B1.der=S1()});var eh=B((T9,k1)=>{b();var eM=De(),Ju=zi(),tf=Ju.base,tM=Ju.bignum,R1=Ju.constants.der;function q1(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new ft,this.tree._init(t.body)}k1.exports=q1;q1.prototype.decode=function(e,r){return e instanceof tf.DecoderBuffer||(e=new tf.DecoderBuffer(e,r)),this.tree._decode(e,r)};function ft(t){tf.Node.call(this,"der",t)}eM(ft,tf.Node);ft.prototype._peekTag=function(e,r,i){if(e.isEmpty())return!1;var n=e.save(),a=Qu(e,'Failed to peek tag: "'+r+'"');return e.isError(a)?a:(e.restore(n),a.tag===r||a.tagStr===r||a.tagStr+"of"===r||i)};ft.prototype._decodeTag=function(e,r,i){var n=Qu(e,'Failed to decode tag of "'+r+'"');if(e.isError(n))return n;var a=T1(e,n.primitive,'Failed to get length of "'+r+'"');if(e.isError(a))return a;if(!i&&n.tag!==r&&n.tagStr!==r&&n.tagStr+"of"!==r)return e.error('Failed to match tag: "'+r+'"');if(n.primitive||a!==null)return e.skip(a,'Failed to match body of: "'+r+'"');var s=e.save(),y=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(y)?y:(a=e.offset-s.offset,e.restore(s),e.skip(a,'Failed to match body of: "'+r+'"'))};ft.prototype._skipUntilEnd=function(e,r){for(;;){var i=Qu(e,r);if(e.isError(i))return i;var n=T1(e,i.primitive,r);if(e.isError(n))return n;var a;if(i.primitive||n!==null?a=e.skip(n):a=this._skipUntilEnd(e,r),e.isError(a))return a;if(i.tagStr==="end")break}};ft.prototype._decodeList=function(e,r,i,n){for(var a=[];!e.isEmpty();){var s=this._peekTag(e,"end");if(e.isError(s))return s;var y=i.decode(e,"der",n);if(e.isError(y)&&s)break;a.push(y)}return a};ft.prototype._decodeStr=function(e,r){if(r==="bitstr"){var i=e.readUInt8();return e.isError(i)?i:{unused:i,data:e.raw()}}else if(r==="bmpstr"){var n=e.raw();if(n.length%2===1)return e.error("Decoding of string type: bmpstr length mismatch");for(var a="",s=0;s<n.length/2;s++)a+=String.fromCharCode(n.readUInt16BE(s*2));return a}else if(r==="numstr"){var y=e.raw().toString("ascii");return this._isNumstr(y)?y:e.error("Decoding of string type: numstr unsupported characters")}else{if(r==="octstr")return e.raw();if(r==="objDesc")return e.raw();if(r==="printstr"){var w=e.raw().toString("ascii");return this._isPrintstr(w)?w:e.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(r)?e.raw().toString():e.error("Decoding of string type: "+r+" unsupported")}};ft.prototype._decodeObjid=function(e,r,i){for(var n,a=[],s=0;!e.isEmpty();){var y=e.readUInt8();s<<=7,s|=y&127,(y&128)===0&&(a.push(s),s=0)}y&128&&a.push(s);var w=a[0]/40|0,S=a[0]%40;if(i?n=a:n=[w,S].concat(a.slice(1)),r){var A=r[n.join(" ")];A===void 0&&(A=r[n.join(".")]),A!==void 0&&(n=A)}return n};ft.prototype._decodeTime=function(e,r){var i=e.raw().toString();if(r==="gentime")var n=i.slice(0,4)|0,a=i.slice(4,6)|0,s=i.slice(6,8)|0,y=i.slice(8,10)|0,w=i.slice(10,12)|0,S=i.slice(12,14)|0;else if(r==="utctime"){var n=i.slice(0,2)|0,a=i.slice(2,4)|0,s=i.slice(4,6)|0,y=i.slice(6,8)|0,w=i.slice(8,10)|0,S=i.slice(10,12)|0;n<70?n=2e3+n:n=1900+n}else return e.error("Decoding "+r+" time is not supported yet");return Date.UTC(n,a-1,s,y,w,S,0)};ft.prototype._decodeNull=function(e){return null};ft.prototype._decodeBool=function(e){var r=e.readUInt8();return e.isError(r)?r:r!==0};ft.prototype._decodeInt=function(e,r){var i=e.raw(),n=new tM(i);return r&&(n=r[n.toString(10)]||n),n};ft.prototype._use=function(e,r){return typeof e=="function"&&(e=e(r)),e._getDecoder("der").tree};function Qu(t,e){var r=t.readUInt8(e);if(t.isError(r))return r;var i=R1.tagClass[r>>6],n=(r&32)===0;if((r&31)===31){var a=r;for(r=0;(a&128)===128;){if(a=t.readUInt8(e),t.isError(a))return a;r<<=7,r|=a&127}}else r&=31;var s=R1.tag[r];return{cls:i,primitive:n,tag:r,tagStr:s}}function T1(t,e,r){var i=t.readUInt8(r);if(t.isError(i))return i;if(!e&&i===128)return null;if((i&128)===0)return i;var n=i&127;if(n>4)return t.error("length octect is too long");i=0;for(var a=0;a<n;a++){i<<=8;var s=t.readUInt8(r);if(t.isError(s))return s;i|=s}return i}});var O1=B((I9,I1)=>{b();var rM=De(),iM=rt().Buffer,th=eh();function rh(t){th.call(this,t),this.enc="pem"}rM(rh,th);I1.exports=rh;rh.prototype.decode=function(e,r){for(var i=e.toString().split(/[\r\n]+/g),n=r.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,y=-1,w=0;w<i.length;w++){var S=i[w].match(a);if(S!==null&&S[2]===n)if(s===-1){if(S[1]!=="BEGIN")break;s=w}else{if(S[1]!=="END")break;y=w;break}}if(s===-1||y===-1)throw new Error("PEM section not found for: "+n);var A=i.slice(s+1,y).join("");A.replace(/[^a-z0-9\+\/=]+/gi,"");var q=new iM(A,"base64");return th.prototype.decode.call(this,q,r)}});var P1=B(D1=>{b();var C1=D1;C1.der=eh();C1.pem=O1()});var nh=B((P9,F1)=>{b();var nM=De(),ir=rt().Buffer,U1=zi(),L1=U1.base,ih=U1.constants.der;function N1(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new St,this.tree._init(t.body)}F1.exports=N1;N1.prototype.encode=function(e,r){return this.tree._encode(e,r).join()};function St(t){L1.Node.call(this,"der",t)}nM(St,L1.Node);St.prototype._encodeComposite=function(e,r,i,n){var a=oM(e,r,i,this.reporter);if(n.length<128){var w=new ir(2);return w[0]=a,w[1]=n.length,this._createEncoderBuffer([w,n])}for(var s=1,y=n.length;y>=256;y>>=8)s++;var w=new ir(2+s);w[0]=a,w[1]=128|s;for(var y=1+s,S=n.length;S>0;y--,S>>=8)w[y]=S&255;return this._createEncoderBuffer([w,n])};St.prototype._encodeStr=function(e,r){if(r==="bitstr")return this._createEncoderBuffer([e.unused|0,e.data]);if(r==="bmpstr"){for(var i=new ir(e.length*2),n=0;n<e.length;n++)i.writeUInt16BE(e.charCodeAt(n),n*2);return this._createEncoderBuffer(i)}else return r==="numstr"?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):r==="printstr"?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(r)?this._createEncoderBuffer(e):r==="objDesc"?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+r+" unsupported")};St.prototype._encodeObjid=function(e,r,i){if(typeof e=="string"){if(!r)return this.reporter.error("string objid given, but no values map found");if(!r.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=r[e].split(/[\s\.]+/g);for(var n=0;n<e.length;n++)e[n]|=0}else if(Array.isArray(e)){e=e.slice();for(var n=0;n<e.length;n++)e[n]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!i){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,e[0]*40+e[1])}for(var a=0,n=0;n<e.length;n++){var s=e[n];for(a++;s>=128;s>>=7)a++}for(var y=new ir(a),w=y.length-1,n=e.length-1;n>=0;n--){var s=e[n];for(y[w--]=s&127;(s>>=7)>0;)y[w--]=128|s&127}return this._createEncoderBuffer(y)};function mt(t){return t<10?"0"+t:t}St.prototype._encodeTime=function(e,r){var i,n=new Date(e);return r==="gentime"?i=[mt(n.getFullYear()),mt(n.getUTCMonth()+1),mt(n.getUTCDate()),mt(n.getUTCHours()),mt(n.getUTCMinutes()),mt(n.getUTCSeconds()),"Z"].join(""):r==="utctime"?i=[mt(n.getFullYear()%100),mt(n.getUTCMonth()+1),mt(n.getUTCDate()),mt(n.getUTCHours()),mt(n.getUTCMinutes()),mt(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+r+" time is not supported yet"),this._encodeStr(i,"octstr")};St.prototype._encodeNull=function(){return this._createEncoderBuffer("")};St.prototype._encodeInt=function(e,r){if(typeof e=="string"){if(!r)return this.reporter.error("String int or enum given, but no values map");if(!r.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=r[e]}if(typeof e!="number"&&!ir.isBuffer(e)){var i=e.toArray();!e.sign&&i[0]&128&&i.unshift(0),e=new ir(i)}if(ir.isBuffer(e)){var n=e.length;e.length===0&&n++;var s=new ir(n);return e.copy(s),e.length===0&&(s[0]=0),this._createEncoderBuffer(s)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);for(var n=1,a=e;a>=256;a>>=8)n++;for(var s=new Array(n),a=s.length-1;a>=0;a--)s[a]=e&255,e>>=8;return s[0]&128&&s.unshift(0),this._createEncoderBuffer(new ir(s))};St.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)};St.prototype._use=function(e,r){return typeof e=="function"&&(e=e(r)),e._getEncoder("der").tree};St.prototype._skipDefault=function(e,r,i){var n=this._baseState,a;if(n.default===null)return!1;var s=e.join();if(n.defaultBuffer===void 0&&(n.defaultBuffer=this._encodeValue(n.default,r,i).join()),s.length!==n.defaultBuffer.length)return!1;for(a=0;a<s.length;a++)if(s[a]!==n.defaultBuffer[a])return!1;return!0};function oM(t,e,r,i){var n;if(t==="seqof"?t="seq":t==="setof"&&(t="set"),ih.tagByName.hasOwnProperty(t))n=ih.tagByName[t];else if(typeof t=="number"&&(t|0)===t)n=t;else return i.error("Unknown tag: "+t);return n>=31?i.error("Multi-octet tag encoding unsupported"):(e||(n|=32),n|=ih.tagClassByName[r||"universal"]<<6,n)}});var H1=B((L9,j1)=>{b();var aM=De(),oh=nh();function ah(t){oh.call(this,t),this.enc="pem"}aM(ah,oh);j1.exports=ah;ah.prototype.encode=function(e,r){for(var i=oh.prototype.encode.call(this,e),n=i.toString("base64"),a=["-----BEGIN "+r.label+"-----"],s=0;s<n.length;s+=64)a.push(n.slice(s,s+64));return a.push("-----END "+r.label+"-----"),a.join(`
|
|
14
|
-
`)}});var $1=B(W1=>{b();var K1=W1;K1.der=nh();K1.pem=H1()});var zi=B(G1=>{b();var Xi=G1;Xi.bignum=vr();Xi.define=g1().define;Xi.base=Yi();Xi.constants=Xu();Xi.decoders=P1();Xi.encoders=$1()});var Y1=B((W9,Z1)=>{"use strict";b();var Bt=zi(),V1=Bt.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),fM=Bt.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),fh=Bt.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),sM=Bt.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(fh),this.key("subjectPublicKey").bitstr())}),uM=Bt.define("RelativeDistinguishedName",function(){this.setof(fM)}),hM=Bt.define("RDNSequence",function(){this.seqof(uM)}),z1=Bt.define("Name",function(){this.choice({rdnSequence:this.use(hM)})}),lM=Bt.define("Validity",function(){this.seq().obj(this.key("notBefore").use(V1),this.key("notAfter").use(V1))}),cM=Bt.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),dM=Bt.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(fh),this.key("issuer").use(z1),this.key("validity").use(lM),this.key("subject").use(z1),this.key("subjectPublicKeyInfo").use(sM),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(cM).optional())}),pM=Bt.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(dM),this.key("signatureAlgorithm").use(fh),this.key("signatureValue").bitstr())});Z1.exports=pM});var J1=B(Rt=>{"use strict";b();var At=zi();Rt.certificate=Y1();var vM=At.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});Rt.RSAPrivateKey=vM;var yM=At.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});Rt.RSAPublicKey=yM;var X1=At.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),gM=At.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(X1),this.key("subjectPublicKey").bitstr())});Rt.PublicKey=gM;var mM=At.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(X1),this.key("subjectPrivateKey").octstr())});Rt.PrivateKey=mM;var bM=At.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});Rt.EncryptedPrivateKey=bM;var wM=At.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});Rt.DSAPrivateKey=wM;Rt.DSAparam=At.define("DSAparam",function(){this.int()});var _M=At.define("ECParameters",function(){this.choice({namedCurve:this.objid()})}),xM=At.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(_M),this.key("publicKey").optional().explicit(1).bitstr())});Rt.ECPrivateKey=xM;Rt.signature=At.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})});var Q1=B((z9,MM)=>{MM.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}});var tg=B((Z9,eg)=>{"use strict";b();var EM=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,SM=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,BM=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,AM=ao(),RM=Za(),rf=xe().Buffer;eg.exports=function(t,e){var r=t.toString(),i=r.match(EM),n;if(i){var s="aes"+i[1],y=rf.from(i[2],"hex"),w=rf.from(i[3].replace(/[\r\n]/g,""),"base64"),S=AM(e,y.slice(0,8),parseInt(i[1],10)).key,A=[],q=RM.createDecipheriv(s,S,y);A.push(q.update(w)),A.push(q.final()),n=rf.concat(A)}else{var a=r.match(BM);n=rf.from(a[2].replace(/[\r\n]/g,""),"base64")}var k=r.match(SM)[1];return{tag:k,data:n}}});var uh=B((X9,ig)=>{"use strict";b();var at=J1(),qM=Q1(),TM=tg(),kM=Za(),IM=gu().pbkdf2Sync,sh=xe().Buffer;function OM(t,e){var r=t.algorithm.decrypt.kde.kdeparams.salt,i=parseInt(t.algorithm.decrypt.kde.kdeparams.iters.toString(),10),n=qM[t.algorithm.decrypt.cipher.algo.join(".")],a=t.algorithm.decrypt.cipher.iv,s=t.subjectPrivateKey,y=parseInt(n.split("-")[1],10)/8,w=IM(e,r,i,y,"sha1"),S=kM.createDecipheriv(n,w,a),A=[];return A.push(S.update(s)),A.push(S.final()),sh.concat(A)}function rg(t){var e;typeof t=="object"&&!sh.isBuffer(t)&&(e=t.passphrase,t=t.key),typeof t=="string"&&(t=sh.from(t));var r=TM(t,e),i=r.tag,n=r.data,a,s;switch(i){case"CERTIFICATE":s=at.certificate.decode(n,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(s||(s=at.PublicKey.decode(n,"der")),a=s.algorithm.algorithm.join("."),a){case"1.2.840.113549.1.1.1":return at.RSAPublicKey.decode(s.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return s.subjectPrivateKey=s.subjectPublicKey,{type:"ec",data:s};case"1.2.840.10040.4.1":return s.algorithm.params.pub_key=at.DSAparam.decode(s.subjectPublicKey.data,"der"),{type:"dsa",data:s.algorithm.params};default:throw new Error("unknown key id "+a)}case"ENCRYPTED PRIVATE KEY":n=at.EncryptedPrivateKey.decode(n,"der"),n=OM(n,e);case"PRIVATE KEY":switch(s=at.PrivateKey.decode(n,"der"),a=s.algorithm.algorithm.join("."),a){case"1.2.840.113549.1.1.1":return at.RSAPrivateKey.decode(s.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:s.algorithm.curve,privateKey:at.ECPrivateKey.decode(s.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return s.algorithm.params.priv_key=at.DSAparam.decode(s.subjectPrivateKey,"der"),{type:"dsa",params:s.algorithm.params};default:throw new Error("unknown key id "+a)}case"RSA PUBLIC KEY":return at.RSAPublicKey.decode(n,"der");case"RSA PRIVATE KEY":return at.RSAPrivateKey.decode(n,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:at.DSAPrivateKey.decode(n,"der")};case"EC PRIVATE KEY":return n=at.ECPrivateKey.decode(n,"der"),{curve:n.parameters.value,privateKey:n.privateKey};default:throw new Error("unknown key type "+i)}}rg.signature=at.signature;ig.exports=rg});var lh=B((Q9,ng)=>{b();var CM=Jn(),hh=xe().Buffer;ng.exports=function(t,e){for(var r=hh.alloc(0),i=0,n;r.length<e;)n=DM(i++),r=hh.concat([r,CM("sha1").update(t).update(n).digest()]);return r.slice(0,e)};function DM(t){var e=hh.allocUnsafe(4);return e.writeUInt32BE(t,0),e}});var ch=B((tR,og)=>{b();og.exports=function(e,r){for(var i=e.length,n=-1;++n<i;)e[n]^=r[n];return e}});var dh=B((iR,fg)=>{b();var ag=vr(),PM=xe().Buffer;function UM(t,e){return PM.from(t.toRed(ag.mont(e.modulus)).redPow(new ag(e.publicExponent)).fromRed().toArray())}fg.exports=UM});var ug=B((sg,ph)=>{b();(function(t,e){"use strict";function r(c,o){if(!c)throw new Error(o||"Assertion failed")}function i(c,o){c.super_=o;var u=function(){};u.prototype=o.prototype,c.prototype=new u,c.prototype.constructor=c}function n(c,o,u){if(n.isBN(c))return c;this.negative=0,this.words=null,this.length=0,this.red=null,c!==null&&((o==="le"||o==="be")&&(u=o,o=10),this._init(c||0,o||10,u||"be"))}typeof t=="object"?t.exports=n:e.BN=n,n.BN=n,n.wordSize=26;var a;try{typeof window<"u"&&typeof window.Buffer<"u"?a=window.Buffer:a=rt().Buffer}catch{}n.isBN=function(o){return o instanceof n?!0:o!==null&&typeof o=="object"&&o.constructor.wordSize===n.wordSize&&Array.isArray(o.words)},n.max=function(o,u){return o.cmp(u)>0?o:u},n.min=function(o,u){return o.cmp(u)<0?o:u},n.prototype._init=function(o,u,d){if(typeof o=="number")return this._initNumber(o,u,d);if(typeof o=="object")return this._initArray(o,u,d);u==="hex"&&(u=16),r(u===(u|0)&&u>=2&&u<=36),o=o.toString().replace(/\s+/g,"");var v=0;o[0]==="-"&&(v++,this.negative=1),v<o.length&&(u===16?this._parseHex(o,v,d):(this._parseBase(o,u,v),d==="le"&&this._initArray(this.toArray(),u,d)))},n.prototype._initNumber=function(o,u,d){o<0&&(this.negative=1,o=-o),o<67108864?(this.words=[o&67108863],this.length=1):o<4503599627370496?(this.words=[o&67108863,o/67108864&67108863],this.length=2):(r(o<9007199254740992),this.words=[o&67108863,o/67108864&67108863,1],this.length=3),d==="le"&&this._initArray(this.toArray(),u,d)},n.prototype._initArray=function(o,u,d){if(r(typeof o.length=="number"),o.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(o.length/3),this.words=new Array(this.length);for(var v=0;v<this.length;v++)this.words[v]=0;var p,f,m=0;if(d==="be")for(v=o.length-1,p=0;v>=0;v-=3)f=o[v]|o[v-1]<<8|o[v-2]<<16,this.words[p]|=f<<m&67108863,this.words[p+1]=f>>>26-m&67108863,m+=24,m>=26&&(m-=26,p++);else if(d==="le")for(v=0,p=0;v<o.length;v+=3)f=o[v]|o[v+1]<<8|o[v+2]<<16,this.words[p]|=f<<m&67108863,this.words[p+1]=f>>>26-m&67108863,m+=24,m>=26&&(m-=26,p++);return this._strip()};function s(c,o){var u=c.charCodeAt(o);if(u>=48&&u<=57)return u-48;if(u>=65&&u<=70)return u-55;if(u>=97&&u<=102)return u-87;r(!1,"Invalid character in "+c)}function y(c,o,u){var d=s(c,u);return u-1>=o&&(d|=s(c,u-1)<<4),d}n.prototype._parseHex=function(o,u,d){this.length=Math.ceil((o.length-u)/6),this.words=new Array(this.length);for(var v=0;v<this.length;v++)this.words[v]=0;var p=0,f=0,m;if(d==="be")for(v=o.length-1;v>=u;v-=2)m=y(o,u,v)<<p,this.words[f]|=m&67108863,p>=18?(p-=18,f+=1,this.words[f]|=m>>>26):p+=8;else{var _=o.length-u;for(v=_%2===0?u+1:u;v<o.length;v+=2)m=y(o,u,v)<<p,this.words[f]|=m&67108863,p>=18?(p-=18,f+=1,this.words[f]|=m>>>26):p+=8}this._strip()};function w(c,o,u,d){for(var v=0,p=0,f=Math.min(c.length,u),m=o;m<f;m++){var _=c.charCodeAt(m)-48;v*=d,_>=49?p=_-49+10:_>=17?p=_-17+10:p=_,r(_>=0&&p<d,"Invalid character"),v+=p}return v}n.prototype._parseBase=function(o,u,d){this.words=[0],this.length=1;for(var v=0,p=1;p<=67108863;p*=u)v++;v--,p=p/u|0;for(var f=o.length-d,m=f%v,_=Math.min(f,f-m)+d,l=0,x=d;x<_;x+=v)l=w(o,x,x+v,u),this.imuln(p),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(m!==0){var I=1;for(l=w(o,x,o.length,u),x=0;x<m;x++)I*=u;this.imuln(I),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}this._strip()},n.prototype.copy=function(o){o.words=new Array(this.length);for(var u=0;u<this.length;u++)o.words[u]=this.words[u];o.length=this.length,o.negative=this.negative,o.red=this.red};function S(c,o){c.words=o.words,c.length=o.length,c.negative=o.negative,c.red=o.red}if(n.prototype._move=function(o){S(o,this)},n.prototype.clone=function(){var o=new n(null);return this.copy(o),o},n.prototype._expand=function(o){for(;this.length<o;)this.words[this.length++]=0;return this},n.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},n.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{n.prototype[Symbol.for("nodejs.util.inspect.custom")]=A}catch{n.prototype.inspect=A}else n.prototype.inspect=A;function A(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var q=["","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"],k=[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],C=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(o,u){o=o||10,u=u|0||1;var d;if(o===16||o==="hex"){d="";for(var v=0,p=0,f=0;f<this.length;f++){var m=this.words[f],_=((m<<v|p)&16777215).toString(16);p=m>>>24-v&16777215,v+=2,v>=26&&(v-=26,f--),p!==0||f!==this.length-1?d=q[6-_.length]+_+d:d=_+d}for(p!==0&&(d=p.toString(16)+d);d.length%u!==0;)d="0"+d;return this.negative!==0&&(d="-"+d),d}if(o===(o|0)&&o>=2&&o<=36){var l=k[o],x=C[o];d="";var I=this.clone();for(I.negative=0;!I.isZero();){var D=I.modrn(x).toString(o);I=I.idivn(x),I.isZero()?d=D+d:d=q[l-D.length]+D+d}for(this.isZero()&&(d="0"+d);d.length%u!==0;)d="0"+d;return this.negative!==0&&(d="-"+d),d}r(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var o=this.words[0];return this.length===2?o+=this.words[1]*67108864:this.length===3&&this.words[2]===1?o+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-o:o},n.prototype.toJSON=function(){return this.toString(16,2)},a&&(n.prototype.toBuffer=function(o,u){return this.toArrayLike(a,o,u)}),n.prototype.toArray=function(o,u){return this.toArrayLike(Array,o,u)};var P=function(o,u){return o.allocUnsafe?o.allocUnsafe(u):new o(u)};n.prototype.toArrayLike=function(o,u,d){this._strip();var v=this.byteLength(),p=d||Math.max(1,v);r(v<=p,"byte array longer than desired length"),r(p>0,"Requested array length <= 0");var f=P(o,p),m=u==="le"?"LE":"BE";return this["_toArrayLike"+m](f,v),f},n.prototype._toArrayLikeLE=function(o,u){for(var d=0,v=0,p=0,f=0;p<this.length;p++){var m=this.words[p]<<f|v;o[d++]=m&255,d<o.length&&(o[d++]=m>>8&255),d<o.length&&(o[d++]=m>>16&255),f===6?(d<o.length&&(o[d++]=m>>24&255),v=0,f=0):(v=m>>>24,f+=2)}if(d<o.length)for(o[d++]=v;d<o.length;)o[d++]=0},n.prototype._toArrayLikeBE=function(o,u){for(var d=o.length-1,v=0,p=0,f=0;p<this.length;p++){var m=this.words[p]<<f|v;o[d--]=m&255,d>=0&&(o[d--]=m>>8&255),d>=0&&(o[d--]=m>>16&255),f===6?(d>=0&&(o[d--]=m>>24&255),v=0,f=0):(v=m>>>24,f+=2)}if(d>=0)for(o[d--]=v;d>=0;)o[d--]=0},Math.clz32?n.prototype._countBits=function(o){return 32-Math.clz32(o)}:n.prototype._countBits=function(o){var u=o,d=0;return u>=4096&&(d+=13,u>>>=13),u>=64&&(d+=7,u>>>=7),u>=8&&(d+=4,u>>>=4),u>=2&&(d+=2,u>>>=2),d+u},n.prototype._zeroBits=function(o){if(o===0)return 26;var u=o,d=0;return(u&8191)===0&&(d+=13,u>>>=13),(u&127)===0&&(d+=7,u>>>=7),(u&15)===0&&(d+=4,u>>>=4),(u&3)===0&&(d+=2,u>>>=2),(u&1)===0&&d++,d},n.prototype.bitLength=function(){var o=this.words[this.length-1],u=this._countBits(o);return(this.length-1)*26+u};function K(c){for(var o=new Array(c.bitLength()),u=0;u<o.length;u++){var d=u/26|0,v=u%26;o[u]=c.words[d]>>>v&1}return o}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var o=0,u=0;u<this.length;u++){var d=this._zeroBits(this.words[u]);if(o+=d,d!==26)break}return o},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(o){return this.negative!==0?this.abs().inotn(o).iaddn(1):this.clone()},n.prototype.fromTwos=function(o){return this.testn(o-1)?this.notn(o).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return this.negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.prototype.iuor=function(o){for(;this.length<o.length;)this.words[this.length++]=0;for(var u=0;u<o.length;u++)this.words[u]=this.words[u]|o.words[u];return this._strip()},n.prototype.ior=function(o){return r((this.negative|o.negative)===0),this.iuor(o)},n.prototype.or=function(o){return this.length>o.length?this.clone().ior(o):o.clone().ior(this)},n.prototype.uor=function(o){return this.length>o.length?this.clone().iuor(o):o.clone().iuor(this)},n.prototype.iuand=function(o){var u;this.length>o.length?u=o:u=this;for(var d=0;d<u.length;d++)this.words[d]=this.words[d]&o.words[d];return this.length=u.length,this._strip()},n.prototype.iand=function(o){return r((this.negative|o.negative)===0),this.iuand(o)},n.prototype.and=function(o){return this.length>o.length?this.clone().iand(o):o.clone().iand(this)},n.prototype.uand=function(o){return this.length>o.length?this.clone().iuand(o):o.clone().iuand(this)},n.prototype.iuxor=function(o){var u,d;this.length>o.length?(u=this,d=o):(u=o,d=this);for(var v=0;v<d.length;v++)this.words[v]=u.words[v]^d.words[v];if(this!==u)for(;v<u.length;v++)this.words[v]=u.words[v];return this.length=u.length,this._strip()},n.prototype.ixor=function(o){return r((this.negative|o.negative)===0),this.iuxor(o)},n.prototype.xor=function(o){return this.length>o.length?this.clone().ixor(o):o.clone().ixor(this)},n.prototype.uxor=function(o){return this.length>o.length?this.clone().iuxor(o):o.clone().iuxor(this)},n.prototype.inotn=function(o){r(typeof o=="number"&&o>=0);var u=Math.ceil(o/26)|0,d=o%26;this._expand(u),d>0&&u--;for(var v=0;v<u;v++)this.words[v]=~this.words[v]&67108863;return d>0&&(this.words[v]=~this.words[v]&67108863>>26-d),this._strip()},n.prototype.notn=function(o){return this.clone().inotn(o)},n.prototype.setn=function(o,u){r(typeof o=="number"&&o>=0);var d=o/26|0,v=o%26;return this._expand(d+1),u?this.words[d]=this.words[d]|1<<v:this.words[d]=this.words[d]&~(1<<v),this._strip()},n.prototype.iadd=function(o){var u;if(this.negative!==0&&o.negative===0)return this.negative=0,u=this.isub(o),this.negative^=1,this._normSign();if(this.negative===0&&o.negative!==0)return o.negative=0,u=this.isub(o),o.negative=1,u._normSign();var d,v;this.length>o.length?(d=this,v=o):(d=o,v=this);for(var p=0,f=0;f<v.length;f++)u=(d.words[f]|0)+(v.words[f]|0)+p,this.words[f]=u&67108863,p=u>>>26;for(;p!==0&&f<d.length;f++)u=(d.words[f]|0)+p,this.words[f]=u&67108863,p=u>>>26;if(this.length=d.length,p!==0)this.words[this.length]=p,this.length++;else if(d!==this)for(;f<d.length;f++)this.words[f]=d.words[f];return this},n.prototype.add=function(o){var u;return o.negative!==0&&this.negative===0?(o.negative=0,u=this.sub(o),o.negative^=1,u):o.negative===0&&this.negative!==0?(this.negative=0,u=o.sub(this),this.negative=1,u):this.length>o.length?this.clone().iadd(o):o.clone().iadd(this)},n.prototype.isub=function(o){if(o.negative!==0){o.negative=0;var u=this.iadd(o);return o.negative=1,u._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(o),this.negative=1,this._normSign();var d=this.cmp(o);if(d===0)return this.negative=0,this.length=1,this.words[0]=0,this;var v,p;d>0?(v=this,p=o):(v=o,p=this);for(var f=0,m=0;m<p.length;m++)u=(v.words[m]|0)-(p.words[m]|0)+f,f=u>>26,this.words[m]=u&67108863;for(;f!==0&&m<v.length;m++)u=(v.words[m]|0)+f,f=u>>26,this.words[m]=u&67108863;if(f===0&&m<v.length&&v!==this)for(;m<v.length;m++)this.words[m]=v.words[m];return this.length=Math.max(this.length,m),v!==this&&(this.negative=1),this._strip()},n.prototype.sub=function(o){return this.clone().isub(o)};function qe(c,o,u){u.negative=o.negative^c.negative;var d=c.length+o.length|0;u.length=d,d=d-1|0;var v=c.words[0]|0,p=o.words[0]|0,f=v*p,m=f&67108863,_=f/67108864|0;u.words[0]=m;for(var l=1;l<d;l++){for(var x=_>>>26,I=_&67108863,D=Math.min(l,o.length-1),O=Math.max(0,l-c.length+1);O<=D;O++){var L=l-O|0;v=c.words[L]|0,p=o.words[O]|0,f=v*p+I,x+=f/67108864|0,I=f&67108863}u.words[l]=I|0,_=x|0}return _!==0?u.words[l]=_|0:u.length--,u._strip()}var j=function(o,u,d){var v=o.words,p=u.words,f=d.words,m=0,_,l,x,I=v[0]|0,D=I&8191,O=I>>>13,L=v[1]|0,U=L&8191,N=L>>>13,bt=v[2]|0,F=bt&8191,H=bt>>>13,Qi=v[3]|0,W=Qi&8191,$=Qi>>>13,en=v[4]|0,G=en&8191,V=en>>>13,tn=v[5]|0,z=tn&8191,Z=tn>>>13,rn=v[6]|0,Y=rn&8191,X=rn>>>13,nn=v[7]|0,J=nn&8191,Q=nn>>>13,on=v[8]|0,ee=on&8191,te=on>>>13,an=v[9]|0,re=an&8191,ie=an>>>13,fn=p[0]|0,ne=fn&8191,oe=fn>>>13,sn=p[1]|0,ae=sn&8191,fe=sn>>>13,un=p[2]|0,se=un&8191,ue=un>>>13,hn=p[3]|0,he=hn&8191,le=hn>>>13,ln=p[4]|0,ce=ln&8191,de=ln>>>13,cn=p[5]|0,pe=cn&8191,ve=cn>>>13,dn=p[6]|0,ye=dn&8191,ge=dn>>>13,pn=p[7]|0,me=pn&8191,be=pn>>>13,vn=p[8]|0,we=vn&8191,_e=vn>>>13,ci=p[9]|0,Ue=ci&8191,Le=ci>>>13;d.negative=o.negative^u.negative,d.length=19,_=Math.imul(D,ne),l=Math.imul(D,oe),l=l+Math.imul(O,ne)|0,x=Math.imul(O,oe);var gr=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(gr>>>26)|0,gr&=67108863,_=Math.imul(U,ne),l=Math.imul(U,oe),l=l+Math.imul(N,ne)|0,x=Math.imul(N,oe),_=_+Math.imul(D,ae)|0,l=l+Math.imul(D,fe)|0,l=l+Math.imul(O,ae)|0,x=x+Math.imul(O,fe)|0;var mr=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(mr>>>26)|0,mr&=67108863,_=Math.imul(F,ne),l=Math.imul(F,oe),l=l+Math.imul(H,ne)|0,x=Math.imul(H,oe),_=_+Math.imul(U,ae)|0,l=l+Math.imul(U,fe)|0,l=l+Math.imul(N,ae)|0,x=x+Math.imul(N,fe)|0,_=_+Math.imul(D,se)|0,l=l+Math.imul(D,ue)|0,l=l+Math.imul(O,se)|0,x=x+Math.imul(O,ue)|0;var br=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(br>>>26)|0,br&=67108863,_=Math.imul(W,ne),l=Math.imul(W,oe),l=l+Math.imul($,ne)|0,x=Math.imul($,oe),_=_+Math.imul(F,ae)|0,l=l+Math.imul(F,fe)|0,l=l+Math.imul(H,ae)|0,x=x+Math.imul(H,fe)|0,_=_+Math.imul(U,se)|0,l=l+Math.imul(U,ue)|0,l=l+Math.imul(N,se)|0,x=x+Math.imul(N,ue)|0,_=_+Math.imul(D,he)|0,l=l+Math.imul(D,le)|0,l=l+Math.imul(O,he)|0,x=x+Math.imul(O,le)|0;var wr=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(wr>>>26)|0,wr&=67108863,_=Math.imul(G,ne),l=Math.imul(G,oe),l=l+Math.imul(V,ne)|0,x=Math.imul(V,oe),_=_+Math.imul(W,ae)|0,l=l+Math.imul(W,fe)|0,l=l+Math.imul($,ae)|0,x=x+Math.imul($,fe)|0,_=_+Math.imul(F,se)|0,l=l+Math.imul(F,ue)|0,l=l+Math.imul(H,se)|0,x=x+Math.imul(H,ue)|0,_=_+Math.imul(U,he)|0,l=l+Math.imul(U,le)|0,l=l+Math.imul(N,he)|0,x=x+Math.imul(N,le)|0,_=_+Math.imul(D,ce)|0,l=l+Math.imul(D,de)|0,l=l+Math.imul(O,ce)|0,x=x+Math.imul(O,de)|0;var _r=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(_r>>>26)|0,_r&=67108863,_=Math.imul(z,ne),l=Math.imul(z,oe),l=l+Math.imul(Z,ne)|0,x=Math.imul(Z,oe),_=_+Math.imul(G,ae)|0,l=l+Math.imul(G,fe)|0,l=l+Math.imul(V,ae)|0,x=x+Math.imul(V,fe)|0,_=_+Math.imul(W,se)|0,l=l+Math.imul(W,ue)|0,l=l+Math.imul($,se)|0,x=x+Math.imul($,ue)|0,_=_+Math.imul(F,he)|0,l=l+Math.imul(F,le)|0,l=l+Math.imul(H,he)|0,x=x+Math.imul(H,le)|0,_=_+Math.imul(U,ce)|0,l=l+Math.imul(U,de)|0,l=l+Math.imul(N,ce)|0,x=x+Math.imul(N,de)|0,_=_+Math.imul(D,pe)|0,l=l+Math.imul(D,ve)|0,l=l+Math.imul(O,pe)|0,x=x+Math.imul(O,ve)|0;var xr=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(xr>>>26)|0,xr&=67108863,_=Math.imul(Y,ne),l=Math.imul(Y,oe),l=l+Math.imul(X,ne)|0,x=Math.imul(X,oe),_=_+Math.imul(z,ae)|0,l=l+Math.imul(z,fe)|0,l=l+Math.imul(Z,ae)|0,x=x+Math.imul(Z,fe)|0,_=_+Math.imul(G,se)|0,l=l+Math.imul(G,ue)|0,l=l+Math.imul(V,se)|0,x=x+Math.imul(V,ue)|0,_=_+Math.imul(W,he)|0,l=l+Math.imul(W,le)|0,l=l+Math.imul($,he)|0,x=x+Math.imul($,le)|0,_=_+Math.imul(F,ce)|0,l=l+Math.imul(F,de)|0,l=l+Math.imul(H,ce)|0,x=x+Math.imul(H,de)|0,_=_+Math.imul(U,pe)|0,l=l+Math.imul(U,ve)|0,l=l+Math.imul(N,pe)|0,x=x+Math.imul(N,ve)|0,_=_+Math.imul(D,ye)|0,l=l+Math.imul(D,ge)|0,l=l+Math.imul(O,ye)|0,x=x+Math.imul(O,ge)|0;var Mr=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,_=Math.imul(J,ne),l=Math.imul(J,oe),l=l+Math.imul(Q,ne)|0,x=Math.imul(Q,oe),_=_+Math.imul(Y,ae)|0,l=l+Math.imul(Y,fe)|0,l=l+Math.imul(X,ae)|0,x=x+Math.imul(X,fe)|0,_=_+Math.imul(z,se)|0,l=l+Math.imul(z,ue)|0,l=l+Math.imul(Z,se)|0,x=x+Math.imul(Z,ue)|0,_=_+Math.imul(G,he)|0,l=l+Math.imul(G,le)|0,l=l+Math.imul(V,he)|0,x=x+Math.imul(V,le)|0,_=_+Math.imul(W,ce)|0,l=l+Math.imul(W,de)|0,l=l+Math.imul($,ce)|0,x=x+Math.imul($,de)|0,_=_+Math.imul(F,pe)|0,l=l+Math.imul(F,ve)|0,l=l+Math.imul(H,pe)|0,x=x+Math.imul(H,ve)|0,_=_+Math.imul(U,ye)|0,l=l+Math.imul(U,ge)|0,l=l+Math.imul(N,ye)|0,x=x+Math.imul(N,ge)|0,_=_+Math.imul(D,me)|0,l=l+Math.imul(D,be)|0,l=l+Math.imul(O,me)|0,x=x+Math.imul(O,be)|0;var Er=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(Er>>>26)|0,Er&=67108863,_=Math.imul(ee,ne),l=Math.imul(ee,oe),l=l+Math.imul(te,ne)|0,x=Math.imul(te,oe),_=_+Math.imul(J,ae)|0,l=l+Math.imul(J,fe)|0,l=l+Math.imul(Q,ae)|0,x=x+Math.imul(Q,fe)|0,_=_+Math.imul(Y,se)|0,l=l+Math.imul(Y,ue)|0,l=l+Math.imul(X,se)|0,x=x+Math.imul(X,ue)|0,_=_+Math.imul(z,he)|0,l=l+Math.imul(z,le)|0,l=l+Math.imul(Z,he)|0,x=x+Math.imul(Z,le)|0,_=_+Math.imul(G,ce)|0,l=l+Math.imul(G,de)|0,l=l+Math.imul(V,ce)|0,x=x+Math.imul(V,de)|0,_=_+Math.imul(W,pe)|0,l=l+Math.imul(W,ve)|0,l=l+Math.imul($,pe)|0,x=x+Math.imul($,ve)|0,_=_+Math.imul(F,ye)|0,l=l+Math.imul(F,ge)|0,l=l+Math.imul(H,ye)|0,x=x+Math.imul(H,ge)|0,_=_+Math.imul(U,me)|0,l=l+Math.imul(U,be)|0,l=l+Math.imul(N,me)|0,x=x+Math.imul(N,be)|0,_=_+Math.imul(D,we)|0,l=l+Math.imul(D,_e)|0,l=l+Math.imul(O,we)|0,x=x+Math.imul(O,_e)|0;var Sr=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(Sr>>>26)|0,Sr&=67108863,_=Math.imul(re,ne),l=Math.imul(re,oe),l=l+Math.imul(ie,ne)|0,x=Math.imul(ie,oe),_=_+Math.imul(ee,ae)|0,l=l+Math.imul(ee,fe)|0,l=l+Math.imul(te,ae)|0,x=x+Math.imul(te,fe)|0,_=_+Math.imul(J,se)|0,l=l+Math.imul(J,ue)|0,l=l+Math.imul(Q,se)|0,x=x+Math.imul(Q,ue)|0,_=_+Math.imul(Y,he)|0,l=l+Math.imul(Y,le)|0,l=l+Math.imul(X,he)|0,x=x+Math.imul(X,le)|0,_=_+Math.imul(z,ce)|0,l=l+Math.imul(z,de)|0,l=l+Math.imul(Z,ce)|0,x=x+Math.imul(Z,de)|0,_=_+Math.imul(G,pe)|0,l=l+Math.imul(G,ve)|0,l=l+Math.imul(V,pe)|0,x=x+Math.imul(V,ve)|0,_=_+Math.imul(W,ye)|0,l=l+Math.imul(W,ge)|0,l=l+Math.imul($,ye)|0,x=x+Math.imul($,ge)|0,_=_+Math.imul(F,me)|0,l=l+Math.imul(F,be)|0,l=l+Math.imul(H,me)|0,x=x+Math.imul(H,be)|0,_=_+Math.imul(U,we)|0,l=l+Math.imul(U,_e)|0,l=l+Math.imul(N,we)|0,x=x+Math.imul(N,_e)|0,_=_+Math.imul(D,Ue)|0,l=l+Math.imul(D,Le)|0,l=l+Math.imul(O,Ue)|0,x=x+Math.imul(O,Le)|0;var Br=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(Br>>>26)|0,Br&=67108863,_=Math.imul(re,ae),l=Math.imul(re,fe),l=l+Math.imul(ie,ae)|0,x=Math.imul(ie,fe),_=_+Math.imul(ee,se)|0,l=l+Math.imul(ee,ue)|0,l=l+Math.imul(te,se)|0,x=x+Math.imul(te,ue)|0,_=_+Math.imul(J,he)|0,l=l+Math.imul(J,le)|0,l=l+Math.imul(Q,he)|0,x=x+Math.imul(Q,le)|0,_=_+Math.imul(Y,ce)|0,l=l+Math.imul(Y,de)|0,l=l+Math.imul(X,ce)|0,x=x+Math.imul(X,de)|0,_=_+Math.imul(z,pe)|0,l=l+Math.imul(z,ve)|0,l=l+Math.imul(Z,pe)|0,x=x+Math.imul(Z,ve)|0,_=_+Math.imul(G,ye)|0,l=l+Math.imul(G,ge)|0,l=l+Math.imul(V,ye)|0,x=x+Math.imul(V,ge)|0,_=_+Math.imul(W,me)|0,l=l+Math.imul(W,be)|0,l=l+Math.imul($,me)|0,x=x+Math.imul($,be)|0,_=_+Math.imul(F,we)|0,l=l+Math.imul(F,_e)|0,l=l+Math.imul(H,we)|0,x=x+Math.imul(H,_e)|0,_=_+Math.imul(U,Ue)|0,l=l+Math.imul(U,Le)|0,l=l+Math.imul(N,Ue)|0,x=x+Math.imul(N,Le)|0;var Ar=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,_=Math.imul(re,se),l=Math.imul(re,ue),l=l+Math.imul(ie,se)|0,x=Math.imul(ie,ue),_=_+Math.imul(ee,he)|0,l=l+Math.imul(ee,le)|0,l=l+Math.imul(te,he)|0,x=x+Math.imul(te,le)|0,_=_+Math.imul(J,ce)|0,l=l+Math.imul(J,de)|0,l=l+Math.imul(Q,ce)|0,x=x+Math.imul(Q,de)|0,_=_+Math.imul(Y,pe)|0,l=l+Math.imul(Y,ve)|0,l=l+Math.imul(X,pe)|0,x=x+Math.imul(X,ve)|0,_=_+Math.imul(z,ye)|0,l=l+Math.imul(z,ge)|0,l=l+Math.imul(Z,ye)|0,x=x+Math.imul(Z,ge)|0,_=_+Math.imul(G,me)|0,l=l+Math.imul(G,be)|0,l=l+Math.imul(V,me)|0,x=x+Math.imul(V,be)|0,_=_+Math.imul(W,we)|0,l=l+Math.imul(W,_e)|0,l=l+Math.imul($,we)|0,x=x+Math.imul($,_e)|0,_=_+Math.imul(F,Ue)|0,l=l+Math.imul(F,Le)|0,l=l+Math.imul(H,Ue)|0,x=x+Math.imul(H,Le)|0;var Rr=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,_=Math.imul(re,he),l=Math.imul(re,le),l=l+Math.imul(ie,he)|0,x=Math.imul(ie,le),_=_+Math.imul(ee,ce)|0,l=l+Math.imul(ee,de)|0,l=l+Math.imul(te,ce)|0,x=x+Math.imul(te,de)|0,_=_+Math.imul(J,pe)|0,l=l+Math.imul(J,ve)|0,l=l+Math.imul(Q,pe)|0,x=x+Math.imul(Q,ve)|0,_=_+Math.imul(Y,ye)|0,l=l+Math.imul(Y,ge)|0,l=l+Math.imul(X,ye)|0,x=x+Math.imul(X,ge)|0,_=_+Math.imul(z,me)|0,l=l+Math.imul(z,be)|0,l=l+Math.imul(Z,me)|0,x=x+Math.imul(Z,be)|0,_=_+Math.imul(G,we)|0,l=l+Math.imul(G,_e)|0,l=l+Math.imul(V,we)|0,x=x+Math.imul(V,_e)|0,_=_+Math.imul(W,Ue)|0,l=l+Math.imul(W,Le)|0,l=l+Math.imul($,Ue)|0,x=x+Math.imul($,Le)|0;var qr=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(qr>>>26)|0,qr&=67108863,_=Math.imul(re,ce),l=Math.imul(re,de),l=l+Math.imul(ie,ce)|0,x=Math.imul(ie,de),_=_+Math.imul(ee,pe)|0,l=l+Math.imul(ee,ve)|0,l=l+Math.imul(te,pe)|0,x=x+Math.imul(te,ve)|0,_=_+Math.imul(J,ye)|0,l=l+Math.imul(J,ge)|0,l=l+Math.imul(Q,ye)|0,x=x+Math.imul(Q,ge)|0,_=_+Math.imul(Y,me)|0,l=l+Math.imul(Y,be)|0,l=l+Math.imul(X,me)|0,x=x+Math.imul(X,be)|0,_=_+Math.imul(z,we)|0,l=l+Math.imul(z,_e)|0,l=l+Math.imul(Z,we)|0,x=x+Math.imul(Z,_e)|0,_=_+Math.imul(G,Ue)|0,l=l+Math.imul(G,Le)|0,l=l+Math.imul(V,Ue)|0,x=x+Math.imul(V,Le)|0;var Tr=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,_=Math.imul(re,pe),l=Math.imul(re,ve),l=l+Math.imul(ie,pe)|0,x=Math.imul(ie,ve),_=_+Math.imul(ee,ye)|0,l=l+Math.imul(ee,ge)|0,l=l+Math.imul(te,ye)|0,x=x+Math.imul(te,ge)|0,_=_+Math.imul(J,me)|0,l=l+Math.imul(J,be)|0,l=l+Math.imul(Q,me)|0,x=x+Math.imul(Q,be)|0,_=_+Math.imul(Y,we)|0,l=l+Math.imul(Y,_e)|0,l=l+Math.imul(X,we)|0,x=x+Math.imul(X,_e)|0,_=_+Math.imul(z,Ue)|0,l=l+Math.imul(z,Le)|0,l=l+Math.imul(Z,Ue)|0,x=x+Math.imul(Z,Le)|0;var kr=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(kr>>>26)|0,kr&=67108863,_=Math.imul(re,ye),l=Math.imul(re,ge),l=l+Math.imul(ie,ye)|0,x=Math.imul(ie,ge),_=_+Math.imul(ee,me)|0,l=l+Math.imul(ee,be)|0,l=l+Math.imul(te,me)|0,x=x+Math.imul(te,be)|0,_=_+Math.imul(J,we)|0,l=l+Math.imul(J,_e)|0,l=l+Math.imul(Q,we)|0,x=x+Math.imul(Q,_e)|0,_=_+Math.imul(Y,Ue)|0,l=l+Math.imul(Y,Le)|0,l=l+Math.imul(X,Ue)|0,x=x+Math.imul(X,Le)|0;var Ir=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,_=Math.imul(re,me),l=Math.imul(re,be),l=l+Math.imul(ie,me)|0,x=Math.imul(ie,be),_=_+Math.imul(ee,we)|0,l=l+Math.imul(ee,_e)|0,l=l+Math.imul(te,we)|0,x=x+Math.imul(te,_e)|0,_=_+Math.imul(J,Ue)|0,l=l+Math.imul(J,Le)|0,l=l+Math.imul(Q,Ue)|0,x=x+Math.imul(Q,Le)|0;var af=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(af>>>26)|0,af&=67108863,_=Math.imul(re,we),l=Math.imul(re,_e),l=l+Math.imul(ie,we)|0,x=Math.imul(ie,_e),_=_+Math.imul(ee,Ue)|0,l=l+Math.imul(ee,Le)|0,l=l+Math.imul(te,Ue)|0,x=x+Math.imul(te,Le)|0;var ff=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(ff>>>26)|0,ff&=67108863,_=Math.imul(re,Ue),l=Math.imul(re,Le),l=l+Math.imul(ie,Ue)|0,x=Math.imul(ie,Le);var sf=(m+_|0)+((l&8191)<<13)|0;return m=(x+(l>>>13)|0)+(sf>>>26)|0,sf&=67108863,f[0]=gr,f[1]=mr,f[2]=br,f[3]=wr,f[4]=_r,f[5]=xr,f[6]=Mr,f[7]=Er,f[8]=Sr,f[9]=Br,f[10]=Ar,f[11]=Rr,f[12]=qr,f[13]=Tr,f[14]=kr,f[15]=Ir,f[16]=af,f[17]=ff,f[18]=sf,m!==0&&(f[19]=m,d.length++),d};Math.imul||(j=qe);function Ee(c,o,u){u.negative=o.negative^c.negative,u.length=c.length+o.length;for(var d=0,v=0,p=0;p<u.length-1;p++){var f=v;v=0;for(var m=d&67108863,_=Math.min(p,o.length-1),l=Math.max(0,p-c.length+1);l<=_;l++){var x=p-l,I=c.words[x]|0,D=o.words[l]|0,O=I*D,L=O&67108863;f=f+(O/67108864|0)|0,L=L+m|0,m=L&67108863,f=f+(L>>>26)|0,v+=f>>>26,f&=67108863}u.words[p]=m,d=f,f=v}return d!==0?u.words[p]=d:u.length--,u._strip()}function Fe(c,o,u){return Ee(c,o,u)}n.prototype.mulTo=function(o,u){var d,v=this.length+o.length;return this.length===10&&o.length===10?d=j(this,o,u):v<63?d=qe(this,o,u):v<1024?d=Ee(this,o,u):d=Fe(this,o,u),d};function je(c,o){this.x=c,this.y=o}je.prototype.makeRBT=function(o){for(var u=new Array(o),d=n.prototype._countBits(o)-1,v=0;v<o;v++)u[v]=this.revBin(v,d,o);return u},je.prototype.revBin=function(o,u,d){if(o===0||o===d-1)return o;for(var v=0,p=0;p<u;p++)v|=(o&1)<<u-p-1,o>>=1;return v},je.prototype.permute=function(o,u,d,v,p,f){for(var m=0;m<f;m++)v[m]=u[o[m]],p[m]=d[o[m]]},je.prototype.transform=function(o,u,d,v,p,f){this.permute(f,o,u,d,v,p);for(var m=1;m<p;m<<=1)for(var _=m<<1,l=Math.cos(2*Math.PI/_),x=Math.sin(2*Math.PI/_),I=0;I<p;I+=_)for(var D=l,O=x,L=0;L<m;L++){var U=d[I+L],N=v[I+L],bt=d[I+L+m],F=v[I+L+m],H=D*bt-O*F;F=D*F+O*bt,bt=H,d[I+L]=U+bt,v[I+L]=N+F,d[I+L+m]=U-bt,v[I+L+m]=N-F,L!==_&&(H=l*D-x*O,O=l*O+x*D,D=H)}},je.prototype.guessLen13b=function(o,u){var d=Math.max(u,o)|1,v=d&1,p=0;for(d=d/2|0;d;d=d>>>1)p++;return 1<<p+1+v},je.prototype.conjugate=function(o,u,d){if(!(d<=1))for(var v=0;v<d/2;v++){var p=o[v];o[v]=o[d-v-1],o[d-v-1]=p,p=u[v],u[v]=-u[d-v-1],u[d-v-1]=-p}},je.prototype.normalize13b=function(o,u){for(var d=0,v=0;v<u/2;v++){var p=Math.round(o[2*v+1]/u)*8192+Math.round(o[2*v]/u)+d;o[v]=p&67108863,p<67108864?d=0:d=p/67108864|0}return o},je.prototype.convert13b=function(o,u,d,v){for(var p=0,f=0;f<u;f++)p=p+(o[f]|0),d[2*f]=p&8191,p=p>>>13,d[2*f+1]=p&8191,p=p>>>13;for(f=2*u;f<v;++f)d[f]=0;r(p===0),r((p&-8192)===0)},je.prototype.stub=function(o){for(var u=new Array(o),d=0;d<o;d++)u[d]=0;return u},je.prototype.mulp=function(o,u,d){var v=2*this.guessLen13b(o.length,u.length),p=this.makeRBT(v),f=this.stub(v),m=new Array(v),_=new Array(v),l=new Array(v),x=new Array(v),I=new Array(v),D=new Array(v),O=d.words;O.length=v,this.convert13b(o.words,o.length,m,v),this.convert13b(u.words,u.length,x,v),this.transform(m,f,_,l,v,p),this.transform(x,f,I,D,v,p);for(var L=0;L<v;L++){var U=_[L]*I[L]-l[L]*D[L];l[L]=_[L]*D[L]+l[L]*I[L],_[L]=U}return this.conjugate(_,l,v),this.transform(_,l,O,f,v,p),this.conjugate(O,f,v),this.normalize13b(O,v),d.negative=o.negative^u.negative,d.length=o.length+u.length,d._strip()},n.prototype.mul=function(o){var u=new n(null);return u.words=new Array(this.length+o.length),this.mulTo(o,u)},n.prototype.mulf=function(o){var u=new n(null);return u.words=new Array(this.length+o.length),Fe(this,o,u)},n.prototype.imul=function(o){return this.clone().mulTo(o,this)},n.prototype.imuln=function(o){var u=o<0;u&&(o=-o),r(typeof o=="number"),r(o<67108864);for(var d=0,v=0;v<this.length;v++){var p=(this.words[v]|0)*o,f=(p&67108863)+(d&67108863);d>>=26,d+=p/67108864|0,d+=f>>>26,this.words[v]=f&67108863}return d!==0&&(this.words[v]=d,this.length++),this.length=o===0?1:this.length,u?this.ineg():this},n.prototype.muln=function(o){return this.clone().imuln(o)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(o){var u=K(o);if(u.length===0)return new n(1);for(var d=this,v=0;v<u.length&&u[v]===0;v++,d=d.sqr());if(++v<u.length)for(var p=d.sqr();v<u.length;v++,p=p.sqr())u[v]!==0&&(d=d.mul(p));return d},n.prototype.iushln=function(o){r(typeof o=="number"&&o>=0);var u=o%26,d=(o-u)/26,v=67108863>>>26-u<<26-u,p;if(u!==0){var f=0;for(p=0;p<this.length;p++){var m=this.words[p]&v,_=(this.words[p]|0)-m<<u;this.words[p]=_|f,f=m>>>26-u}f&&(this.words[p]=f,this.length++)}if(d!==0){for(p=this.length-1;p>=0;p--)this.words[p+d]=this.words[p];for(p=0;p<d;p++)this.words[p]=0;this.length+=d}return this._strip()},n.prototype.ishln=function(o){return r(this.negative===0),this.iushln(o)},n.prototype.iushrn=function(o,u,d){r(typeof o=="number"&&o>=0);var v;u?v=(u-u%26)/26:v=0;var p=o%26,f=Math.min((o-p)/26,this.length),m=67108863^67108863>>>p<<p,_=d;if(v-=f,v=Math.max(0,v),_){for(var l=0;l<f;l++)_.words[l]=this.words[l];_.length=f}if(f!==0)if(this.length>f)for(this.length-=f,l=0;l<this.length;l++)this.words[l]=this.words[l+f];else this.words[0]=0,this.length=1;var x=0;for(l=this.length-1;l>=0&&(x!==0||l>=v);l--){var I=this.words[l]|0;this.words[l]=x<<26-p|I>>>p,x=I&m}return _&&x!==0&&(_.words[_.length++]=x),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},n.prototype.ishrn=function(o,u,d){return r(this.negative===0),this.iushrn(o,u,d)},n.prototype.shln=function(o){return this.clone().ishln(o)},n.prototype.ushln=function(o){return this.clone().iushln(o)},n.prototype.shrn=function(o){return this.clone().ishrn(o)},n.prototype.ushrn=function(o){return this.clone().iushrn(o)},n.prototype.testn=function(o){r(typeof o=="number"&&o>=0);var u=o%26,d=(o-u)/26,v=1<<u;if(this.length<=d)return!1;var p=this.words[d];return!!(p&v)},n.prototype.imaskn=function(o){r(typeof o=="number"&&o>=0);var u=o%26,d=(o-u)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=d)return this;if(u!==0&&d++,this.length=Math.min(d,this.length),u!==0){var v=67108863^67108863>>>u<<u;this.words[this.length-1]&=v}return this.length===0&&(this.words[0]=0,this.length=1),this._strip()},n.prototype.maskn=function(o){return this.clone().imaskn(o)},n.prototype.iaddn=function(o){return r(typeof o=="number"),r(o<67108864),o<0?this.isubn(-o):this.negative!==0?this.length===1&&(this.words[0]|0)<=o?(this.words[0]=o-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(o),this.negative=1,this):this._iaddn(o)},n.prototype._iaddn=function(o){this.words[0]+=o;for(var u=0;u<this.length&&this.words[u]>=67108864;u++)this.words[u]-=67108864,u===this.length-1?this.words[u+1]=1:this.words[u+1]++;return this.length=Math.max(this.length,u+1),this},n.prototype.isubn=function(o){if(r(typeof o=="number"),r(o<67108864),o<0)return this.iaddn(-o);if(this.negative!==0)return this.negative=0,this.iaddn(o),this.negative=1,this;if(this.words[0]-=o,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var u=0;u<this.length&&this.words[u]<0;u++)this.words[u]+=67108864,this.words[u+1]-=1;return this._strip()},n.prototype.addn=function(o){return this.clone().iaddn(o)},n.prototype.subn=function(o){return this.clone().isubn(o)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(o,u,d){var v=o.length+d,p;this._expand(v);var f,m=0;for(p=0;p<o.length;p++){f=(this.words[p+d]|0)+m;var _=(o.words[p]|0)*u;f-=_&67108863,m=(f>>26)-(_/67108864|0),this.words[p+d]=f&67108863}for(;p<this.length-d;p++)f=(this.words[p+d]|0)+m,m=f>>26,this.words[p+d]=f&67108863;if(m===0)return this._strip();for(r(m===-1),m=0,p=0;p<this.length;p++)f=-(this.words[p]|0)+m,m=f>>26,this.words[p]=f&67108863;return this.negative=1,this._strip()},n.prototype._wordDiv=function(o,u){var d=this.length-o.length,v=this.clone(),p=o,f=p.words[p.length-1]|0,m=this._countBits(f);d=26-m,d!==0&&(p=p.ushln(d),v.iushln(d),f=p.words[p.length-1]|0);var _=v.length-p.length,l;if(u!=="mod"){l=new n(null),l.length=_+1,l.words=new Array(l.length);for(var x=0;x<l.length;x++)l.words[x]=0}var I=v.clone()._ishlnsubmul(p,1,_);I.negative===0&&(v=I,l&&(l.words[_]=1));for(var D=_-1;D>=0;D--){var O=(v.words[p.length+D]|0)*67108864+(v.words[p.length+D-1]|0);for(O=Math.min(O/f|0,67108863),v._ishlnsubmul(p,O,D);v.negative!==0;)O--,v.negative=0,v._ishlnsubmul(p,1,D),v.isZero()||(v.negative^=1);l&&(l.words[D]=O)}return l&&l._strip(),v._strip(),u!=="div"&&d!==0&&v.iushrn(d),{div:l||null,mod:v}},n.prototype.divmod=function(o,u,d){if(r(!o.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var v,p,f;return this.negative!==0&&o.negative===0?(f=this.neg().divmod(o,u),u!=="mod"&&(v=f.div.neg()),u!=="div"&&(p=f.mod.neg(),d&&p.negative!==0&&p.iadd(o)),{div:v,mod:p}):this.negative===0&&o.negative!==0?(f=this.divmod(o.neg(),u),u!=="mod"&&(v=f.div.neg()),{div:v,mod:f.mod}):(this.negative&o.negative)!==0?(f=this.neg().divmod(o.neg(),u),u!=="div"&&(p=f.mod.neg(),d&&p.negative!==0&&p.isub(o)),{div:f.div,mod:p}):o.length>this.length||this.cmp(o)<0?{div:new n(0),mod:this}:o.length===1?u==="div"?{div:this.divn(o.words[0]),mod:null}:u==="mod"?{div:null,mod:new n(this.modrn(o.words[0]))}:{div:this.divn(o.words[0]),mod:new n(this.modrn(o.words[0]))}:this._wordDiv(o,u)},n.prototype.div=function(o){return this.divmod(o,"div",!1).div},n.prototype.mod=function(o){return this.divmod(o,"mod",!1).mod},n.prototype.umod=function(o){return this.divmod(o,"mod",!0).mod},n.prototype.divRound=function(o){var u=this.divmod(o);if(u.mod.isZero())return u.div;var d=u.div.negative!==0?u.mod.isub(o):u.mod,v=o.ushrn(1),p=o.andln(1),f=d.cmp(v);return f<0||p===1&&f===0?u.div:u.div.negative!==0?u.div.isubn(1):u.div.iaddn(1)},n.prototype.modrn=function(o){var u=o<0;u&&(o=-o),r(o<=67108863);for(var d=(1<<26)%o,v=0,p=this.length-1;p>=0;p--)v=(d*v+(this.words[p]|0))%o;return u?-v:v},n.prototype.modn=function(o){return this.modrn(o)},n.prototype.idivn=function(o){var u=o<0;u&&(o=-o),r(o<=67108863);for(var d=0,v=this.length-1;v>=0;v--){var p=(this.words[v]|0)+d*67108864;this.words[v]=p/o|0,d=p%o}return this._strip(),u?this.ineg():this},n.prototype.divn=function(o){return this.clone().idivn(o)},n.prototype.egcd=function(o){r(o.negative===0),r(!o.isZero());var u=this,d=o.clone();u.negative!==0?u=u.umod(o):u=u.clone();for(var v=new n(1),p=new n(0),f=new n(0),m=new n(1),_=0;u.isEven()&&d.isEven();)u.iushrn(1),d.iushrn(1),++_;for(var l=d.clone(),x=u.clone();!u.isZero();){for(var I=0,D=1;(u.words[0]&D)===0&&I<26;++I,D<<=1);if(I>0)for(u.iushrn(I);I-- >0;)(v.isOdd()||p.isOdd())&&(v.iadd(l),p.isub(x)),v.iushrn(1),p.iushrn(1);for(var O=0,L=1;(d.words[0]&L)===0&&O<26;++O,L<<=1);if(O>0)for(d.iushrn(O);O-- >0;)(f.isOdd()||m.isOdd())&&(f.iadd(l),m.isub(x)),f.iushrn(1),m.iushrn(1);u.cmp(d)>=0?(u.isub(d),v.isub(f),p.isub(m)):(d.isub(u),f.isub(v),m.isub(p))}return{a:f,b:m,gcd:d.iushln(_)}},n.prototype._invmp=function(o){r(o.negative===0),r(!o.isZero());var u=this,d=o.clone();u.negative!==0?u=u.umod(o):u=u.clone();for(var v=new n(1),p=new n(0),f=d.clone();u.cmpn(1)>0&&d.cmpn(1)>0;){for(var m=0,_=1;(u.words[0]&_)===0&&m<26;++m,_<<=1);if(m>0)for(u.iushrn(m);m-- >0;)v.isOdd()&&v.iadd(f),v.iushrn(1);for(var l=0,x=1;(d.words[0]&x)===0&&l<26;++l,x<<=1);if(l>0)for(d.iushrn(l);l-- >0;)p.isOdd()&&p.iadd(f),p.iushrn(1);u.cmp(d)>=0?(u.isub(d),v.isub(p)):(d.isub(u),p.isub(v))}var I;return u.cmpn(1)===0?I=v:I=p,I.cmpn(0)<0&&I.iadd(o),I},n.prototype.gcd=function(o){if(this.isZero())return o.abs();if(o.isZero())return this.abs();var u=this.clone(),d=o.clone();u.negative=0,d.negative=0;for(var v=0;u.isEven()&&d.isEven();v++)u.iushrn(1),d.iushrn(1);do{for(;u.isEven();)u.iushrn(1);for(;d.isEven();)d.iushrn(1);var p=u.cmp(d);if(p<0){var f=u;u=d,d=f}else if(p===0||d.cmpn(1)===0)break;u.isub(d)}while(!0);return d.iushln(v)},n.prototype.invm=function(o){return this.egcd(o).a.umod(o)},n.prototype.isEven=function(){return(this.words[0]&1)===0},n.prototype.isOdd=function(){return(this.words[0]&1)===1},n.prototype.andln=function(o){return this.words[0]&o},n.prototype.bincn=function(o){r(typeof o=="number");var u=o%26,d=(o-u)/26,v=1<<u;if(this.length<=d)return this._expand(d+1),this.words[d]|=v,this;for(var p=v,f=d;p!==0&&f<this.length;f++){var m=this.words[f]|0;m+=p,p=m>>>26,m&=67108863,this.words[f]=m}return p!==0&&(this.words[f]=p,this.length++),this},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.prototype.cmpn=function(o){var u=o<0;if(this.negative!==0&&!u)return-1;if(this.negative===0&&u)return 1;this._strip();var d;if(this.length>1)d=1;else{u&&(o=-o),r(o<=67108863,"Number is too big");var v=this.words[0]|0;d=v===o?0:v<o?-1:1}return this.negative!==0?-d|0:d},n.prototype.cmp=function(o){if(this.negative!==0&&o.negative===0)return-1;if(this.negative===0&&o.negative!==0)return 1;var u=this.ucmp(o);return this.negative!==0?-u|0:u},n.prototype.ucmp=function(o){if(this.length>o.length)return 1;if(this.length<o.length)return-1;for(var u=0,d=this.length-1;d>=0;d--){var v=this.words[d]|0,p=o.words[d]|0;if(v!==p){v<p?u=-1:v>p&&(u=1);break}}return u},n.prototype.gtn=function(o){return this.cmpn(o)===1},n.prototype.gt=function(o){return this.cmp(o)===1},n.prototype.gten=function(o){return this.cmpn(o)>=0},n.prototype.gte=function(o){return this.cmp(o)>=0},n.prototype.ltn=function(o){return this.cmpn(o)===-1},n.prototype.lt=function(o){return this.cmp(o)===-1},n.prototype.lten=function(o){return this.cmpn(o)<=0},n.prototype.lte=function(o){return this.cmp(o)<=0},n.prototype.eqn=function(o){return this.cmpn(o)===0},n.prototype.eq=function(o){return this.cmp(o)===0},n.red=function(o){return new h(o)},n.prototype.toRed=function(o){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),o.convertTo(this)._forceRed(o)},n.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(o){return this.red=o,this},n.prototype.forceRed=function(o){return r(!this.red,"Already a number in reduction context"),this._forceRed(o)},n.prototype.redAdd=function(o){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,o)},n.prototype.redIAdd=function(o){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,o)},n.prototype.redSub=function(o){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,o)},n.prototype.redISub=function(o){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,o)},n.prototype.redShl=function(o){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,o)},n.prototype.redMul=function(o){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.mul(this,o)},n.prototype.redIMul=function(o){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.imul(this,o)},n.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(o){return r(this.red&&!o.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,o)};var nr={k256:null,p224:null,p192:null,p25519:null};function Ge(c,o){this.name=c,this.p=new n(o,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Ge.prototype._tmp=function(){var o=new n(null);return o.words=new Array(Math.ceil(this.n/13)),o},Ge.prototype.ireduce=function(o){var u=o,d;do this.split(u,this.tmp),u=this.imulK(u),u=u.iadd(this.tmp),d=u.bitLength();while(d>this.n);var v=d<this.n?-1:u.ucmp(this.p);return v===0?(u.words[0]=0,u.length=1):v>0?u.isub(this.p):u.strip!==void 0?u.strip():u._strip(),u},Ge.prototype.split=function(o,u){o.iushrn(this.n,0,u)},Ge.prototype.imulK=function(o){return o.imul(this.k)};function Tt(){Ge.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(Tt,Ge),Tt.prototype.split=function(o,u){for(var d=4194303,v=Math.min(o.length,9),p=0;p<v;p++)u.words[p]=o.words[p];if(u.length=v,o.length<=9){o.words[0]=0,o.length=1;return}var f=o.words[9];for(u.words[u.length++]=f&d,p=10;p<o.length;p++){var m=o.words[p]|0;o.words[p-10]=(m&d)<<4|f>>>22,f=m}f>>>=22,o.words[p-10]=f,f===0&&o.length>10?o.length-=10:o.length-=9},Tt.prototype.imulK=function(o){o.words[o.length]=0,o.words[o.length+1]=0,o.length+=2;for(var u=0,d=0;d<o.length;d++){var v=o.words[d]|0;u+=v*977,o.words[d]=u&67108863,u=v*64+(u/67108864|0)}return o.words[o.length-1]===0&&(o.length--,o.words[o.length-1]===0&&o.length--),o};function Ce(){Ge.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i(Ce,Ge);function st(){Ge.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i(st,Ge);function E(){Ge.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i(E,Ge),E.prototype.imulK=function(o){for(var u=0,d=0;d<o.length;d++){var v=(o.words[d]|0)*19+u,p=v&67108863;v>>>=26,o.words[d]=p,u=v}return u!==0&&(o.words[o.length++]=u),o},n._prime=function(o){if(nr[o])return nr[o];var u;if(o==="k256")u=new Tt;else if(o==="p224")u=new Ce;else if(o==="p192")u=new st;else if(o==="p25519")u=new E;else throw new Error("Unknown prime "+o);return nr[o]=u,u};function h(c){if(typeof c=="string"){var o=n._prime(c);this.m=o.p,this.prime=o}else r(c.gtn(1),"modulus must be greater than 1"),this.m=c,this.prime=null}h.prototype._verify1=function(o){r(o.negative===0,"red works only with positives"),r(o.red,"red works only with red numbers")},h.prototype._verify2=function(o,u){r((o.negative|u.negative)===0,"red works only with positives"),r(o.red&&o.red===u.red,"red works only with red numbers")},h.prototype.imod=function(o){return this.prime?this.prime.ireduce(o)._forceRed(this):(S(o,o.umod(this.m)._forceRed(this)),o)},h.prototype.neg=function(o){return o.isZero()?o.clone():this.m.sub(o)._forceRed(this)},h.prototype.add=function(o,u){this._verify2(o,u);var d=o.add(u);return d.cmp(this.m)>=0&&d.isub(this.m),d._forceRed(this)},h.prototype.iadd=function(o,u){this._verify2(o,u);var d=o.iadd(u);return d.cmp(this.m)>=0&&d.isub(this.m),d},h.prototype.sub=function(o,u){this._verify2(o,u);var d=o.sub(u);return d.cmpn(0)<0&&d.iadd(this.m),d._forceRed(this)},h.prototype.isub=function(o,u){this._verify2(o,u);var d=o.isub(u);return d.cmpn(0)<0&&d.iadd(this.m),d},h.prototype.shl=function(o,u){return this._verify1(o),this.imod(o.ushln(u))},h.prototype.imul=function(o,u){return this._verify2(o,u),this.imod(o.imul(u))},h.prototype.mul=function(o,u){return this._verify2(o,u),this.imod(o.mul(u))},h.prototype.isqr=function(o){return this.imul(o,o.clone())},h.prototype.sqr=function(o){return this.mul(o,o)},h.prototype.sqrt=function(o){if(o.isZero())return o.clone();var u=this.m.andln(3);if(r(u%2===1),u===3){var d=this.m.add(new n(1)).iushrn(2);return this.pow(o,d)}for(var v=this.m.subn(1),p=0;!v.isZero()&&v.andln(1)===0;)p++,v.iushrn(1);r(!v.isZero());var f=new n(1).toRed(this),m=f.redNeg(),_=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new n(2*l*l).toRed(this);this.pow(l,_).cmp(m)!==0;)l.redIAdd(m);for(var x=this.pow(l,v),I=this.pow(o,v.addn(1).iushrn(1)),D=this.pow(o,v),O=p;D.cmp(f)!==0;){for(var L=D,U=0;L.cmp(f)!==0;U++)L=L.redSqr();r(U<O);var N=this.pow(x,new n(1).iushln(O-U-1));I=I.redMul(N),x=N.redSqr(),D=D.redMul(x),O=U}return I},h.prototype.invm=function(o){var u=o._invmp(this.m);return u.negative!==0?(u.negative=0,this.imod(u).redNeg()):this.imod(u)},h.prototype.pow=function(o,u){if(u.isZero())return new n(1).toRed(this);if(u.cmpn(1)===0)return o.clone();var d=4,v=new Array(1<<d);v[0]=new n(1).toRed(this),v[1]=o;for(var p=2;p<v.length;p++)v[p]=this.mul(v[p-1],o);var f=v[0],m=0,_=0,l=u.bitLength()%26;for(l===0&&(l=26),p=u.length-1;p>=0;p--){for(var x=u.words[p],I=l-1;I>=0;I--){var D=x>>I&1;if(f!==v[0]&&(f=this.sqr(f)),D===0&&m===0){_=0;continue}m<<=1,m|=D,_++,!(_!==d&&(p!==0||I!==0))&&(f=this.mul(f,v[m]),_=0,m=0)}l=26}return f},h.prototype.convertTo=function(o){var u=o.umod(this.m);return u===o?u.clone():u},h.prototype.convertFrom=function(o){var u=o.clone();return u.red=null,u},n.mont=function(o){return new g(o)};function g(c){h.call(this,c),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new n(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)}i(g,h),g.prototype.convertTo=function(o){return this.imod(o.ushln(this.shift))},g.prototype.convertFrom=function(o){var u=this.imod(o.mul(this.rinv));return u.red=null,u},g.prototype.imul=function(o,u){if(o.isZero()||u.isZero())return o.words[0]=0,o.length=1,o;var d=o.imul(u),v=d.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),p=d.isub(v).iushrn(this.shift),f=p;return p.cmp(this.m)>=0?f=p.isub(this.m):p.cmpn(0)<0&&(f=p.iadd(this.m)),f._forceRed(this)},g.prototype.mul=function(o,u){if(o.isZero()||u.isZero())return new n(0)._forceRed(this);var d=o.mul(u),v=d.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),p=d.isub(v).iushrn(this.shift),f=p;return p.cmp(this.m)>=0?f=p.isub(this.m):p.cmpn(0)<0&&(f=p.iadd(this.m)),f._forceRed(this)},g.prototype.invm=function(o){var u=this.imod(o._invmp(this.m).mul(this.r2));return u._forceRed(this)}})(typeof ph>"u"||ph,sg)});var vh=B((aR,cg)=>{"use strict";b();var Ji=ug(),LM=Ur(),NM=xe().Buffer;function hg(t){var e=t.modulus.byteLength(),r;do r=new Ji(LM(e));while(r.cmp(t.modulus)>=0||!r.umod(t.prime1)||!r.umod(t.prime2));return r}function FM(t){var e=hg(t),r=e.toRed(Ji.mont(t.modulus)).redPow(new Ji(t.publicExponent)).fromRed();return{blinder:r,unblinder:e.invm(t.modulus)}}function lg(t,e){var r=FM(e),i=e.modulus.byteLength(),n=new Ji(t).mul(r.blinder).umod(e.modulus),a=n.toRed(Ji.mont(e.prime1)),s=n.toRed(Ji.mont(e.prime2)),y=e.coefficient,w=e.prime1,S=e.prime2,A=a.redPow(e.exponent1).fromRed(),q=s.redPow(e.exponent2).fromRed(),k=A.isub(q).imul(y).umod(w).imul(S);return q.iadd(k).imul(r.unblinder).umod(e.modulus).toArrayLike(NM,"be",i)}lg.getr=hg;cg.exports=lg});var yg=B((sR,vg)=>{b();var jM=uh(),yh=Ur(),HM=Jn(),dg=lh(),pg=ch(),gh=vr(),KM=dh(),WM=vh(),qt=xe().Buffer;vg.exports=function(e,r,i){var n;e.padding?n=e.padding:i?n=1:n=4;var a=jM(e),s;if(n===4)s=$M(a,r);else if(n===1)s=GM(a,r,i);else if(n===3){if(s=new gh(r),s.cmp(a.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return i?WM(s,a):KM(s,a)};function $M(t,e){var r=t.modulus.byteLength(),i=e.length,n=HM("sha1").update(qt.alloc(0)).digest(),a=n.length,s=2*a;if(i>r-s-2)throw new Error("message too long");var y=qt.alloc(r-i-s-2),w=r-a-1,S=yh(a),A=pg(qt.concat([n,y,qt.alloc(1,1),e],w),dg(S,w)),q=pg(S,dg(A,a));return new gh(qt.concat([qt.alloc(1),q,A],r))}function GM(t,e,r){var i=e.length,n=t.modulus.byteLength();if(i>n-11)throw new Error("message too long");var a;return r?a=qt.alloc(n-i-3,255):a=VM(n-i-3),new gh(qt.concat([qt.from([0,r?1:2]),a,qt.alloc(1),e],n))}function VM(t){for(var e=qt.allocUnsafe(t),r=0,i=yh(t*2),n=0,a;r<t;)n===i.length&&(i=yh(t*2),n=0),a=i[n++],a&&(e[r++]=a);return e}});var _g=B((hR,wg)=>{b();var zM=uh(),gg=lh(),mg=ch(),bg=vr(),ZM=vh(),YM=Jn(),XM=dh(),ho=xe().Buffer;wg.exports=function(e,r,i){var n;e.padding?n=e.padding:i?n=1:n=4;var a=zM(e),s=a.modulus.byteLength();if(r.length>s||new bg(r).cmp(a.modulus)>=0)throw new Error("decryption error");var y;i?y=XM(new bg(r),a):y=ZM(r,a);var w=ho.alloc(s-y.length);if(y=ho.concat([w,y],s),n===4)return JM(a,y);if(n===1)return QM(a,y,i);if(n===3)return y;throw new Error("unknown padding")};function JM(t,e){var r=t.modulus.byteLength(),i=YM("sha1").update(ho.alloc(0)).digest(),n=i.length;if(e[0]!==0)throw new Error("decryption error");var a=e.slice(1,n+1),s=e.slice(n+1),y=mg(a,gg(s,n)),w=mg(s,gg(y,r-n-1));if(eE(i,w.slice(0,n)))throw new Error("decryption error");for(var S=n;w[S]===0;)S++;if(w[S++]!==1)throw new Error("decryption error");return w.slice(S)}function QM(t,e,r){for(var i=e.slice(0,2),n=2,a=0;e[n++]!==0;)if(n>=e.length){a++;break}var s=e.slice(2,n-1);if((i.toString("hex")!=="0002"&&!r||i.toString("hex")!=="0001"&&r)&&a++,s.length<8&&a++,a)throw new Error("decryption error");return e.slice(n)}function eE(t,e){t=ho.from(t),e=ho.from(e);var r=0,i=t.length;t.length!==e.length&&(r++,i=Math.min(t.length,e.length));for(var n=-1;++n<i;)r+=t[n]^e[n];return r}});var xg=B(li=>{b();li.publicEncrypt=yg();li.privateDecrypt=_g();li.privateEncrypt=function(e,r){return li.publicEncrypt(e,r,!0)};li.publicDecrypt=function(e,r){return li.privateDecrypt(e,r,!0)}});var Ig=B(lo=>{"use strict";b();function Mg(){throw new Error(`secure random number generation not supported by this browser
|
|
15
|
-
use chrome, FireFox or Internet Explorer 11`)}var
|
|
13
|
+
})`)}catch{r=function(n){this._initNamed(n)}}return O4(r,e),r.prototype._initNamed=function(n){e.call(this,n)},new r(this)};$i.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(o1.decoders[e])),this.decoders[e]};$i.prototype.decode=function(e,r,i){return this._getDecoder(r).decode(e,i)};$i.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(o1.encoders[e])),this.encoders[e]};$i.prototype.encode=function(e,r,i){return this._getEncoder(r).encode(e,i)}});var u1=B(s1=>{b();var P4=K();function gt(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}s1.Reporter=gt;gt.prototype.isError=function(e){return e instanceof Vi};gt.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}};gt.prototype.restore=function(e){var r=this._reporterState;r.obj=e.obj,r.path=r.path.slice(0,e.pathLen)};gt.prototype.enterKey=function(e){return this._reporterState.path.push(e)};gt.prototype.exitKey=function(e){var r=this._reporterState;r.path=r.path.slice(0,e-1)};gt.prototype.leaveKey=function(e,r,i){var n=this._reporterState;this.exitKey(e),n.obj!==null&&(n.obj[r]=i)};gt.prototype.path=function(){return this._reporterState.path.join("/")};gt.prototype.enterObject=function(){var e=this._reporterState,r=e.obj;return e.obj={},r};gt.prototype.leaveObject=function(e){var r=this._reporterState,i=r.obj;return r.obj=e,i};gt.prototype.error=function(e){var r,i=this._reporterState,n=e instanceof Vi;if(n?r=e:r=new Vi(i.path.map(function(a){return"["+JSON.stringify(a)+"]"}).join(""),e.message||e,e.stack),!i.options.partial)throw r;return n||i.errors.push(r),r};gt.prototype.wrapResult=function(e){var r=this._reporterState;return r.options.partial?{result:this.isError(e)?null:e,errors:r.errors}:e};function Vi(t,e){this.path=t,this.rethrow(e)}P4(Vi,Error);Vi.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,Vi),!this.stack)try{throw new Error(this.message)}catch(r){this.stack=r.stack}return this}});var Hu=B(ju=>{b();var U4=K(),Xa=zi().Reporter,fo=rt().Buffer;function Ft(t,e){if(Xa.call(this,e),!fo.isBuffer(t)){this.error("Input not Buffer");return}this.base=t,this.offset=0,this.length=t.length}U4(Ft,Xa);ju.DecoderBuffer=Ft;Ft.prototype.save=function(){return{offset:this.offset,reporter:Xa.prototype.save.call(this)}};Ft.prototype.restore=function(e){var r=new Ft(this.base);return r.offset=e.offset,r.length=this.offset,this.offset=e.offset,Xa.prototype.restore.call(this,e.reporter),r};Ft.prototype.isEmpty=function(){return this.offset===this.length};Ft.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")};Ft.prototype.skip=function(e,r){if(!(this.offset+e<=this.length))return this.error(r||"DecoderBuffer overrun");var i=new Ft(this.base);return i._reporterState=this._reporterState,i.offset=this.offset,i.length=this.offset+e,this.offset+=e,i};Ft.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)};function Ya(t,e){if(Array.isArray(t))this.length=0,this.value=t.map(function(r){return r instanceof Ya||(r=new Ya(r,e)),this.length+=r.length,r},this);else if(typeof t=="number"){if(!(0<=t&&t<=255))return e.error("non-byte EncoderBuffer value");this.value=t,this.length=1}else if(typeof t=="string")this.value=t,this.length=fo.byteLength(t);else if(fo.isBuffer(t))this.value=t,this.length=t.length;else return e.error("Unsupported type: "+typeof t)}ju.EncoderBuffer=Ya;Ya.prototype.join=function(e,r){return e||(e=new fo(this.length)),r||(r=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(i){i.join(e,r),r+=i.length}):(typeof this.value=="number"?e[r]=this.value:typeof this.value=="string"?e.write(this.value,r):fo.isBuffer(this.value)&&this.value.copy(e,r),r+=this.length)),e}});var c1=B((r9,l1)=>{b();var L4=zi().Reporter,N4=zi().EncoderBuffer,F4=zi().DecoderBuffer,it=Ni(),h1=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],j4=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(h1),H4=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function Oe(t,e){var r={};this._baseState=r,r.enc=t,r.parent=e||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}l1.exports=Oe;var K4=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];Oe.prototype.clone=function(){var e=this._baseState,r={};K4.forEach(function(n){r[n]=e[n]});var i=new this.constructor(r.parent);return i._baseState=r,i};Oe.prototype._wrap=function(){var e=this._baseState;j4.forEach(function(r){this[r]=function(){var n=new this.constructor(this);return e.children.push(n),n[r].apply(n,arguments)}},this)};Oe.prototype._init=function(e){var r=this._baseState;it(r.parent===null),e.call(this),r.children=r.children.filter(function(i){return i._baseState.parent===this},this),it.equal(r.children.length,1,"Root node can have only one child")};Oe.prototype._useArgs=function(e){var r=this._baseState,i=e.filter(function(n){return n instanceof this.constructor},this);e=e.filter(function(n){return!(n instanceof this.constructor)},this),i.length!==0&&(it(r.children===null),r.children=i,i.forEach(function(n){n._baseState.parent=this},this)),e.length!==0&&(it(r.args===null),r.args=e,r.reverseArgs=e.map(function(n){if(typeof n!="object"||n.constructor!==Object)return n;var a={};return Object.keys(n).forEach(function(s){s==(s|0)&&(s|=0);var y=n[s];a[y]=s}),a}))};H4.forEach(function(t){Oe.prototype[t]=function(){var r=this._baseState;throw new Error(t+" not implemented for encoding: "+r.enc)}});h1.forEach(function(t){Oe.prototype[t]=function(){var r=this._baseState,i=Array.prototype.slice.call(arguments);return it(r.tag===null),r.tag=t,this._useArgs(i),this}});Oe.prototype.use=function(e){it(e);var r=this._baseState;return it(r.use===null),r.use=e,this};Oe.prototype.optional=function(){var e=this._baseState;return e.optional=!0,this};Oe.prototype.def=function(e){var r=this._baseState;return it(r.default===null),r.default=e,r.optional=!0,this};Oe.prototype.explicit=function(e){var r=this._baseState;return it(r.explicit===null&&r.implicit===null),r.explicit=e,this};Oe.prototype.implicit=function(e){var r=this._baseState;return it(r.explicit===null&&r.implicit===null),r.implicit=e,this};Oe.prototype.obj=function(){var e=this._baseState,r=Array.prototype.slice.call(arguments);return e.obj=!0,r.length!==0&&this._useArgs(r),this};Oe.prototype.key=function(e){var r=this._baseState;return it(r.key===null),r.key=e,this};Oe.prototype.any=function(){var e=this._baseState;return e.any=!0,this};Oe.prototype.choice=function(e){var r=this._baseState;return it(r.choice===null),r.choice=e,this._useArgs(Object.keys(e).map(function(i){return e[i]})),this};Oe.prototype.contains=function(e){var r=this._baseState;return it(r.use===null),r.contains=e,this};Oe.prototype._decode=function(e,r){var i=this._baseState;if(i.parent===null)return e.wrapResult(i.children[0]._decode(e,r));var n=i.default,a=!0,s=null;if(i.key!==null&&(s=e.enterKey(i.key)),i.optional){var y=null;if(i.explicit!==null?y=i.explicit:i.implicit!==null?y=i.implicit:i.tag!==null&&(y=i.tag),y===null&&!i.any){var w=e.save();try{i.choice===null?this._decodeGeneric(i.tag,e,r):this._decodeChoice(e,r),a=!0}catch{a=!1}e.restore(w)}else if(a=this._peekTag(e,y,i.any),e.isError(a))return a}var S;if(i.obj&&a&&(S=e.enterObject()),a){if(i.explicit!==null){var A=this._decodeTag(e,i.explicit);if(e.isError(A))return A;e=A}var q=e.offset;if(i.use===null&&i.choice===null){if(i.any)var w=e.save();var k=this._decodeTag(e,i.implicit!==null?i.implicit:i.tag,i.any);if(e.isError(k))return k;i.any?n=e.raw(w):e=k}if(r&&r.track&&i.tag!==null&&r.track(e.path(),q,e.length,"tagged"),r&&r.track&&i.tag!==null&&r.track(e.path(),e.offset,e.length,"content"),i.any?n=n:i.choice===null?n=this._decodeGeneric(i.tag,e,r):n=this._decodeChoice(e,r),e.isError(n))return n;if(!i.any&&i.choice===null&&i.children!==null&&i.children.forEach(function(W){W._decode(e,r)}),i.contains&&(i.tag==="octstr"||i.tag==="bitstr")){var O=new F4(n);n=this._getUse(i.contains,e._reporterState.obj)._decode(O,r)}}return i.obj&&a&&(n=e.leaveObject(S)),i.key!==null&&(n!==null||a===!0)?e.leaveKey(s,i.key,n):s!==null&&e.exitKey(s),n};Oe.prototype._decodeGeneric=function(e,r,i){var n=this._baseState;return e==="seq"||e==="set"?null:e==="seqof"||e==="setof"?this._decodeList(r,e,n.args[0],i):/str$/.test(e)?this._decodeStr(r,e,i):e==="objid"&&n.args?this._decodeObjid(r,n.args[0],n.args[1],i):e==="objid"?this._decodeObjid(r,null,null,i):e==="gentime"||e==="utctime"?this._decodeTime(r,e,i):e==="null_"?this._decodeNull(r,i):e==="bool"?this._decodeBool(r,i):e==="objDesc"?this._decodeStr(r,e,i):e==="int"||e==="enum"?this._decodeInt(r,n.args&&n.args[0],i):n.use!==null?this._getUse(n.use,r._reporterState.obj)._decode(r,i):r.error("unknown tag: "+e)};Oe.prototype._getUse=function(e,r){var i=this._baseState;return i.useDecoder=this._use(e,r),it(i.useDecoder._baseState.parent===null),i.useDecoder=i.useDecoder._baseState.children[0],i.implicit!==i.useDecoder._baseState.implicit&&(i.useDecoder=i.useDecoder.clone(),i.useDecoder._baseState.implicit=i.implicit),i.useDecoder};Oe.prototype._decodeChoice=function(e,r){var i=this._baseState,n=null,a=!1;return Object.keys(i.choice).some(function(s){var y=e.save(),w=i.choice[s];try{var S=w._decode(e,r);if(e.isError(S))return!1;n={type:s,value:S},a=!0}catch{return e.restore(y),!1}return!0},this),a?n:e.error("Choice not matched")};Oe.prototype._createEncoderBuffer=function(e){return new N4(e,this.reporter)};Oe.prototype._encode=function(e,r,i){var n=this._baseState;if(!(n.default!==null&&n.default===e)){var a=this._encodeValue(e,r,i);if(a!==void 0&&!this._skipDefault(a,r,i))return a}};Oe.prototype._encodeValue=function(e,r,i){var n=this._baseState;if(n.parent===null)return n.children[0]._encode(e,r||new L4);var w=null;if(this.reporter=r,n.optional&&e===void 0)if(n.default!==null)e=n.default;else return;var a=null,s=!1;if(n.any)w=this._createEncoderBuffer(e);else if(n.choice)w=this._encodeChoice(e,r);else if(n.contains)a=this._getUse(n.contains,i)._encode(e,r),s=!0;else if(n.children)a=n.children.map(function(q){if(q._baseState.tag==="null_")return q._encode(null,r,e);if(q._baseState.key===null)return r.error("Child should have a key");var k=r.enterKey(q._baseState.key);if(typeof e!="object")return r.error("Child expected, but input is not object");var O=q._encode(e[q._baseState.key],r,e);return r.leaveKey(k),O},this).filter(function(q){return q}),a=this._createEncoderBuffer(a);else if(n.tag==="seqof"||n.tag==="setof"){if(!(n.args&&n.args.length===1))return r.error("Too many args for : "+n.tag);if(!Array.isArray(e))return r.error("seqof/setof, but data is not Array");var y=this.clone();y._baseState.implicit=null,a=this._createEncoderBuffer(e.map(function(q){var k=this._baseState;return this._getUse(k.args[0],e)._encode(q,r)},y))}else n.use!==null?w=this._getUse(n.use,i)._encode(e,r):(a=this._encodePrimitive(n.tag,e),s=!0);var w;if(!n.any&&n.choice===null){var S=n.implicit!==null?n.implicit:n.tag,A=n.implicit===null?"universal":"context";S===null?n.use===null&&r.error("Tag could be omitted only for .use()"):n.use===null&&(w=this._encodeComposite(S,s,A,a))}return n.explicit!==null&&(w=this._encodeComposite(n.explicit,!1,"context",w)),w};Oe.prototype._encodeChoice=function(e,r){var i=this._baseState,n=i.choice[e.type];return n||it(!1,e.type+" not found in "+JSON.stringify(Object.keys(i.choice))),n._encode(e.value,r)};Oe.prototype._encodePrimitive=function(e,r){var i=this._baseState;if(/str$/.test(e))return this._encodeStr(r,e);if(e==="objid"&&i.args)return this._encodeObjid(r,i.reverseArgs[0],i.args[1]);if(e==="objid")return this._encodeObjid(r,null,null);if(e==="gentime"||e==="utctime")return this._encodeTime(r,e);if(e==="null_")return this._encodeNull();if(e==="int"||e==="enum")return this._encodeInt(r,i.args&&i.reverseArgs[0]);if(e==="bool")return this._encodeBool(r);if(e==="objDesc")return this._encodeStr(r,e);throw new Error("Unsupported tag: "+e)};Oe.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)};Oe.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}});var zi=B(d1=>{b();var Ja=d1;Ja.Reporter=u1().Reporter;Ja.DecoderBuffer=Hu().DecoderBuffer;Ja.EncoderBuffer=Hu().EncoderBuffer;Ja.Node=c1()});var v1=B(si=>{b();var p1=Ku();si.tagClass={0:"universal",1:"application",2:"context",3:"private"};si.tagClassByName=p1._reverse(si.tagClass);si.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"};si.tagByName=p1._reverse(si.tag)});var Ku=B(g1=>{b();var y1=g1;y1._reverse=function(e){var r={};return Object.keys(e).forEach(function(i){(i|0)==i&&(i=i|0);var n=e[i];r[n]=i}),r};y1.der=v1()});var Gu=B((h9,_1)=>{b();var W4=K(),Wu=Gi(),Qa=Wu.base,$4=Wu.bignum,m1=Wu.constants.der;function b1(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new ft,this.tree._init(t.body)}_1.exports=b1;b1.prototype.decode=function(e,r){return e instanceof Qa.DecoderBuffer||(e=new Qa.DecoderBuffer(e,r)),this.tree._decode(e,r)};function ft(t){Qa.Node.call(this,"der",t)}W4(ft,Qa.Node);ft.prototype._peekTag=function(e,r,i){if(e.isEmpty())return!1;var n=e.save(),a=$u(e,'Failed to peek tag: "'+r+'"');return e.isError(a)?a:(e.restore(n),a.tag===r||a.tagStr===r||a.tagStr+"of"===r||i)};ft.prototype._decodeTag=function(e,r,i){var n=$u(e,'Failed to decode tag of "'+r+'"');if(e.isError(n))return n;var a=w1(e,n.primitive,'Failed to get length of "'+r+'"');if(e.isError(a))return a;if(!i&&n.tag!==r&&n.tagStr!==r&&n.tagStr+"of"!==r)return e.error('Failed to match tag: "'+r+'"');if(n.primitive||a!==null)return e.skip(a,'Failed to match body of: "'+r+'"');var s=e.save(),y=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(y)?y:(a=e.offset-s.offset,e.restore(s),e.skip(a,'Failed to match body of: "'+r+'"'))};ft.prototype._skipUntilEnd=function(e,r){for(;;){var i=$u(e,r);if(e.isError(i))return i;var n=w1(e,i.primitive,r);if(e.isError(n))return n;var a;if(i.primitive||n!==null?a=e.skip(n):a=this._skipUntilEnd(e,r),e.isError(a))return a;if(i.tagStr==="end")break}};ft.prototype._decodeList=function(e,r,i,n){for(var a=[];!e.isEmpty();){var s=this._peekTag(e,"end");if(e.isError(s))return s;var y=i.decode(e,"der",n);if(e.isError(y)&&s)break;a.push(y)}return a};ft.prototype._decodeStr=function(e,r){if(r==="bitstr"){var i=e.readUInt8();return e.isError(i)?i:{unused:i,data:e.raw()}}else if(r==="bmpstr"){var n=e.raw();if(n.length%2===1)return e.error("Decoding of string type: bmpstr length mismatch");for(var a="",s=0;s<n.length/2;s++)a+=String.fromCharCode(n.readUInt16BE(s*2));return a}else if(r==="numstr"){var y=e.raw().toString("ascii");return this._isNumstr(y)?y:e.error("Decoding of string type: numstr unsupported characters")}else{if(r==="octstr")return e.raw();if(r==="objDesc")return e.raw();if(r==="printstr"){var w=e.raw().toString("ascii");return this._isPrintstr(w)?w:e.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(r)?e.raw().toString():e.error("Decoding of string type: "+r+" unsupported")}};ft.prototype._decodeObjid=function(e,r,i){for(var n,a=[],s=0;!e.isEmpty();){var y=e.readUInt8();s<<=7,s|=y&127,(y&128)===0&&(a.push(s),s=0)}y&128&&a.push(s);var w=a[0]/40|0,S=a[0]%40;if(i?n=a:n=[w,S].concat(a.slice(1)),r){var A=r[n.join(" ")];A===void 0&&(A=r[n.join(".")]),A!==void 0&&(n=A)}return n};ft.prototype._decodeTime=function(e,r){var i=e.raw().toString();if(r==="gentime")var n=i.slice(0,4)|0,a=i.slice(4,6)|0,s=i.slice(6,8)|0,y=i.slice(8,10)|0,w=i.slice(10,12)|0,S=i.slice(12,14)|0;else if(r==="utctime"){var n=i.slice(0,2)|0,a=i.slice(2,4)|0,s=i.slice(4,6)|0,y=i.slice(6,8)|0,w=i.slice(8,10)|0,S=i.slice(10,12)|0;n<70?n=2e3+n:n=1900+n}else return e.error("Decoding "+r+" time is not supported yet");return Date.UTC(n,a-1,s,y,w,S,0)};ft.prototype._decodeNull=function(e){return null};ft.prototype._decodeBool=function(e){var r=e.readUInt8();return e.isError(r)?r:r!==0};ft.prototype._decodeInt=function(e,r){var i=e.raw(),n=new $4(i);return r&&(n=r[n.toString(10)]||n),n};ft.prototype._use=function(e,r){return typeof e=="function"&&(e=e(r)),e._getDecoder("der").tree};function $u(t,e){var r=t.readUInt8(e);if(t.isError(r))return r;var i=m1.tagClass[r>>6],n=(r&32)===0;if((r&31)===31){var a=r;for(r=0;(a&128)===128;){if(a=t.readUInt8(e),t.isError(a))return a;r<<=7,r|=a&127}}else r&=31;var s=m1.tag[r];return{cls:i,primitive:n,tag:r,tagStr:s}}function w1(t,e,r){var i=t.readUInt8(r);if(t.isError(i))return i;if(!e&&i===128)return null;if((i&128)===0)return i;var n=i&127;if(n>4)return t.error("length octect is too long");i=0;for(var a=0;a<n;a++){i<<=8;var s=t.readUInt8(r);if(t.isError(s))return s;i|=s}return i}});var M1=B((c9,x1)=>{b();var G4=K(),V4=rt().Buffer,Vu=Gu();function zu(t){Vu.call(this,t),this.enc="pem"}G4(zu,Vu);x1.exports=zu;zu.prototype.decode=function(e,r){for(var i=e.toString().split(/[\r\n]+/g),n=r.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,y=-1,w=0;w<i.length;w++){var S=i[w].match(a);if(S!==null&&S[2]===n)if(s===-1){if(S[1]!=="BEGIN")break;s=w}else{if(S[1]!=="END")break;y=w;break}}if(s===-1||y===-1)throw new Error("PEM section not found for: "+n);var A=i.slice(s+1,y).join("");A.replace(/[^a-z0-9\+\/=]+/gi,"");var q=new V4(A,"base64");return Vu.prototype.decode.call(this,q,r)}});var B1=B(S1=>{b();var E1=S1;E1.der=Gu();E1.pem=M1()});var Yu=B((y9,T1)=>{b();var z4=K(),ir=rt().Buffer,A1=Gi(),R1=A1.base,Zu=A1.constants.der;function q1(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new St,this.tree._init(t.body)}T1.exports=q1;q1.prototype.encode=function(e,r){return this.tree._encode(e,r).join()};function St(t){R1.Node.call(this,"der",t)}z4(St,R1.Node);St.prototype._encodeComposite=function(e,r,i,n){var a=Z4(e,r,i,this.reporter);if(n.length<128){var w=new ir(2);return w[0]=a,w[1]=n.length,this._createEncoderBuffer([w,n])}for(var s=1,y=n.length;y>=256;y>>=8)s++;var w=new ir(2+s);w[0]=a,w[1]=128|s;for(var y=1+s,S=n.length;S>0;y--,S>>=8)w[y]=S&255;return this._createEncoderBuffer([w,n])};St.prototype._encodeStr=function(e,r){if(r==="bitstr")return this._createEncoderBuffer([e.unused|0,e.data]);if(r==="bmpstr"){for(var i=new ir(e.length*2),n=0;n<e.length;n++)i.writeUInt16BE(e.charCodeAt(n),n*2);return this._createEncoderBuffer(i)}else return r==="numstr"?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):r==="printstr"?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(r)?this._createEncoderBuffer(e):r==="objDesc"?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+r+" unsupported")};St.prototype._encodeObjid=function(e,r,i){if(typeof e=="string"){if(!r)return this.reporter.error("string objid given, but no values map found");if(!r.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=r[e].split(/[\s\.]+/g);for(var n=0;n<e.length;n++)e[n]|=0}else if(Array.isArray(e)){e=e.slice();for(var n=0;n<e.length;n++)e[n]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!i){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,e[0]*40+e[1])}for(var a=0,n=0;n<e.length;n++){var s=e[n];for(a++;s>=128;s>>=7)a++}for(var y=new ir(a),w=y.length-1,n=e.length-1;n>=0;n--){var s=e[n];for(y[w--]=s&127;(s>>=7)>0;)y[w--]=128|s&127}return this._createEncoderBuffer(y)};function mt(t){return t<10?"0"+t:t}St.prototype._encodeTime=function(e,r){var i,n=new Date(e);return r==="gentime"?i=[mt(n.getFullYear()),mt(n.getUTCMonth()+1),mt(n.getUTCDate()),mt(n.getUTCHours()),mt(n.getUTCMinutes()),mt(n.getUTCSeconds()),"Z"].join(""):r==="utctime"?i=[mt(n.getFullYear()%100),mt(n.getUTCMonth()+1),mt(n.getUTCDate()),mt(n.getUTCHours()),mt(n.getUTCMinutes()),mt(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+r+" time is not supported yet"),this._encodeStr(i,"octstr")};St.prototype._encodeNull=function(){return this._createEncoderBuffer("")};St.prototype._encodeInt=function(e,r){if(typeof e=="string"){if(!r)return this.reporter.error("String int or enum given, but no values map");if(!r.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=r[e]}if(typeof e!="number"&&!ir.isBuffer(e)){var i=e.toArray();!e.sign&&i[0]&128&&i.unshift(0),e=new ir(i)}if(ir.isBuffer(e)){var n=e.length;e.length===0&&n++;var s=new ir(n);return e.copy(s),e.length===0&&(s[0]=0),this._createEncoderBuffer(s)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);for(var n=1,a=e;a>=256;a>>=8)n++;for(var s=new Array(n),a=s.length-1;a>=0;a--)s[a]=e&255,e>>=8;return s[0]&128&&s.unshift(0),this._createEncoderBuffer(new ir(s))};St.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)};St.prototype._use=function(e,r){return typeof e=="function"&&(e=e(r)),e._getEncoder("der").tree};St.prototype._skipDefault=function(e,r,i){var n=this._baseState,a;if(n.default===null)return!1;var s=e.join();if(n.defaultBuffer===void 0&&(n.defaultBuffer=this._encodeValue(n.default,r,i).join()),s.length!==n.defaultBuffer.length)return!1;for(a=0;a<s.length;a++)if(s[a]!==n.defaultBuffer[a])return!1;return!0};function Z4(t,e,r,i){var n;if(t==="seqof"?t="seq":t==="setof"&&(t="set"),Zu.tagByName.hasOwnProperty(t))n=Zu.tagByName[t];else if(typeof t=="number"&&(t|0)===t)n=t;else return i.error("Unknown tag: "+t);return n>=31?i.error("Multi-octet tag encoding unsupported"):(e||(n|=32),n|=Zu.tagClassByName[r||"universal"]<<6,n)}});var I1=B((m9,k1)=>{b();var Y4=K(),Xu=Yu();function Ju(t){Xu.call(this,t),this.enc="pem"}Y4(Ju,Xu);k1.exports=Ju;Ju.prototype.encode=function(e,r){for(var i=Xu.prototype.encode.call(this,e),n=i.toString("base64"),a=["-----BEGIN "+r.label+"-----"],s=0;s<n.length;s+=64)a.push(n.slice(s,s+64));return a.push("-----END "+r.label+"-----"),a.join(`
|
|
14
|
+
`)}});var D1=B(O1=>{b();var C1=O1;C1.der=Yu();C1.pem=I1()});var Gi=B(P1=>{b();var Zi=P1;Zi.bignum=vr();Zi.define=f1().define;Zi.base=zi();Zi.constants=Ku();Zi.decoders=B1();Zi.encoders=D1()});var F1=B((E9,N1)=>{"use strict";b();var Bt=Gi(),U1=Bt.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),X4=Bt.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),Qu=Bt.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),J4=Bt.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(Qu),this.key("subjectPublicKey").bitstr())}),Q4=Bt.define("RelativeDistinguishedName",function(){this.setof(X4)}),eM=Bt.define("RDNSequence",function(){this.seqof(Q4)}),L1=Bt.define("Name",function(){this.choice({rdnSequence:this.use(eM)})}),tM=Bt.define("Validity",function(){this.seq().obj(this.key("notBefore").use(U1),this.key("notAfter").use(U1))}),rM=Bt.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),iM=Bt.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(Qu),this.key("issuer").use(L1),this.key("validity").use(tM),this.key("subject").use(L1),this.key("subjectPublicKeyInfo").use(J4),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(rM).optional())}),nM=Bt.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(iM),this.key("signatureAlgorithm").use(Qu),this.key("signatureValue").bitstr())});N1.exports=nM});var H1=B(Rt=>{"use strict";b();var At=Gi();Rt.certificate=F1();var oM=At.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});Rt.RSAPrivateKey=oM;var aM=At.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});Rt.RSAPublicKey=aM;var j1=At.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),fM=At.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(j1),this.key("subjectPublicKey").bitstr())});Rt.PublicKey=fM;var sM=At.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(j1),this.key("subjectPrivateKey").octstr())});Rt.PrivateKey=sM;var uM=At.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});Rt.EncryptedPrivateKey=uM;var hM=At.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});Rt.DSAPrivateKey=hM;Rt.DSAparam=At.define("DSAparam",function(){this.int()});var lM=At.define("ECParameters",function(){this.choice({namedCurve:this.objid()})}),cM=At.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(lM),this.key("publicKey").optional().explicit(1).bitstr())});Rt.ECPrivateKey=cM;Rt.signature=At.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})});var K1=B((R9,dM)=>{dM.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}});var $1=B((q9,W1)=>{"use strict";b();var pM=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,vM=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,yM=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,gM=no(),mM=Va(),ef=Me().Buffer;W1.exports=function(t,e){var r=t.toString(),i=r.match(pM),n;if(i){var s="aes"+i[1],y=ef.from(i[2],"hex"),w=ef.from(i[3].replace(/[\r\n]/g,""),"base64"),S=gM(e,y.slice(0,8),parseInt(i[1],10)).key,A=[],q=mM.createDecipheriv(s,S,y);A.push(q.update(w)),A.push(q.final()),n=ef.concat(A)}else{var a=r.match(yM);n=ef.from(a[2].replace(/[\r\n]/g,""),"base64")}var k=r.match(vM)[1];return{tag:k,data:n}}});var th=B((k9,V1)=>{"use strict";b();var at=H1(),bM=K1(),wM=$1(),_M=Va(),xM=uu().pbkdf2Sync,eh=Me().Buffer;function MM(t,e){var r=t.algorithm.decrypt.kde.kdeparams.salt,i=parseInt(t.algorithm.decrypt.kde.kdeparams.iters.toString(),10),n=bM[t.algorithm.decrypt.cipher.algo.join(".")],a=t.algorithm.decrypt.cipher.iv,s=t.subjectPrivateKey,y=parseInt(n.split("-")[1],10)/8,w=xM(e,r,i,y,"sha1"),S=_M.createDecipheriv(n,w,a),A=[];return A.push(S.update(s)),A.push(S.final()),eh.concat(A)}function G1(t){var e;typeof t=="object"&&!eh.isBuffer(t)&&(e=t.passphrase,t=t.key),typeof t=="string"&&(t=eh.from(t));var r=wM(t,e),i=r.tag,n=r.data,a,s;switch(i){case"CERTIFICATE":s=at.certificate.decode(n,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(s||(s=at.PublicKey.decode(n,"der")),a=s.algorithm.algorithm.join("."),a){case"1.2.840.113549.1.1.1":return at.RSAPublicKey.decode(s.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return s.subjectPrivateKey=s.subjectPublicKey,{type:"ec",data:s};case"1.2.840.10040.4.1":return s.algorithm.params.pub_key=at.DSAparam.decode(s.subjectPublicKey.data,"der"),{type:"dsa",data:s.algorithm.params};default:throw new Error("unknown key id "+a)}case"ENCRYPTED PRIVATE KEY":n=at.EncryptedPrivateKey.decode(n,"der"),n=MM(n,e);case"PRIVATE KEY":switch(s=at.PrivateKey.decode(n,"der"),a=s.algorithm.algorithm.join("."),a){case"1.2.840.113549.1.1.1":return at.RSAPrivateKey.decode(s.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:s.algorithm.curve,privateKey:at.ECPrivateKey.decode(s.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return s.algorithm.params.priv_key=at.DSAparam.decode(s.subjectPrivateKey,"der"),{type:"dsa",params:s.algorithm.params};default:throw new Error("unknown key id "+a)}case"RSA PUBLIC KEY":return at.RSAPublicKey.decode(n,"der");case"RSA PRIVATE KEY":return at.RSAPrivateKey.decode(n,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:at.DSAPrivateKey.decode(n,"der")};case"EC PRIVATE KEY":return n=at.ECPrivateKey.decode(n,"der"),{curve:n.parameters.value,privateKey:n.privateKey};default:throw new Error("unknown key type "+i)}}G1.signature=at.signature;V1.exports=G1});var ih=B((C9,z1)=>{b();var EM=Yn(),rh=Me().Buffer;z1.exports=function(t,e){for(var r=rh.alloc(0),i=0,n;r.length<e;)n=SM(i++),r=rh.concat([r,EM("sha1").update(t).update(n).digest()]);return r.slice(0,e)};function SM(t){var e=rh.allocUnsafe(4);return e.writeUInt32BE(t,0),e}});var nh=B((D9,Z1)=>{b();Z1.exports=function(e,r){for(var i=e.length,n=-1;++n<i;)e[n]^=r[n];return e}});var oh=B((U9,X1)=>{b();var Y1=vr(),BM=Me().Buffer;function AM(t,e){return BM.from(t.toRed(Y1.mont(e.modulus)).redPow(new Y1(e.publicExponent)).fromRed().toArray())}X1.exports=AM});var Q1=B((J1,ah)=>{b();(function(t,e){"use strict";function r(c,o){if(!c)throw new Error(o||"Assertion failed")}function i(c,o){c.super_=o;var u=function(){};u.prototype=o.prototype,c.prototype=new u,c.prototype.constructor=c}function n(c,o,u){if(n.isBN(c))return c;this.negative=0,this.words=null,this.length=0,this.red=null,c!==null&&((o==="le"||o==="be")&&(u=o,o=10),this._init(c||0,o||10,u||"be"))}typeof t=="object"?t.exports=n:e.BN=n,n.BN=n,n.wordSize=26;var a;try{typeof window<"u"&&typeof window.Buffer<"u"?a=window.Buffer:a=rt().Buffer}catch{}n.isBN=function(o){return o instanceof n?!0:o!==null&&typeof o=="object"&&o.constructor.wordSize===n.wordSize&&Array.isArray(o.words)},n.max=function(o,u){return o.cmp(u)>0?o:u},n.min=function(o,u){return o.cmp(u)<0?o:u},n.prototype._init=function(o,u,d){if(typeof o=="number")return this._initNumber(o,u,d);if(typeof o=="object")return this._initArray(o,u,d);u==="hex"&&(u=16),r(u===(u|0)&&u>=2&&u<=36),o=o.toString().replace(/\s+/g,"");var v=0;o[0]==="-"&&(v++,this.negative=1),v<o.length&&(u===16?this._parseHex(o,v,d):(this._parseBase(o,u,v),d==="le"&&this._initArray(this.toArray(),u,d)))},n.prototype._initNumber=function(o,u,d){o<0&&(this.negative=1,o=-o),o<67108864?(this.words=[o&67108863],this.length=1):o<4503599627370496?(this.words=[o&67108863,o/67108864&67108863],this.length=2):(r(o<9007199254740992),this.words=[o&67108863,o/67108864&67108863,1],this.length=3),d==="le"&&this._initArray(this.toArray(),u,d)},n.prototype._initArray=function(o,u,d){if(r(typeof o.length=="number"),o.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(o.length/3),this.words=new Array(this.length);for(var v=0;v<this.length;v++)this.words[v]=0;var p,f,m=0;if(d==="be")for(v=o.length-1,p=0;v>=0;v-=3)f=o[v]|o[v-1]<<8|o[v-2]<<16,this.words[p]|=f<<m&67108863,this.words[p+1]=f>>>26-m&67108863,m+=24,m>=26&&(m-=26,p++);else if(d==="le")for(v=0,p=0;v<o.length;v+=3)f=o[v]|o[v+1]<<8|o[v+2]<<16,this.words[p]|=f<<m&67108863,this.words[p+1]=f>>>26-m&67108863,m+=24,m>=26&&(m-=26,p++);return this._strip()};function s(c,o){var u=c.charCodeAt(o);if(u>=48&&u<=57)return u-48;if(u>=65&&u<=70)return u-55;if(u>=97&&u<=102)return u-87;r(!1,"Invalid character in "+c)}function y(c,o,u){var d=s(c,u);return u-1>=o&&(d|=s(c,u-1)<<4),d}n.prototype._parseHex=function(o,u,d){this.length=Math.ceil((o.length-u)/6),this.words=new Array(this.length);for(var v=0;v<this.length;v++)this.words[v]=0;var p=0,f=0,m;if(d==="be")for(v=o.length-1;v>=u;v-=2)m=y(o,u,v)<<p,this.words[f]|=m&67108863,p>=18?(p-=18,f+=1,this.words[f]|=m>>>26):p+=8;else{var _=o.length-u;for(v=_%2===0?u+1:u;v<o.length;v+=2)m=y(o,u,v)<<p,this.words[f]|=m&67108863,p>=18?(p-=18,f+=1,this.words[f]|=m>>>26):p+=8}this._strip()};function w(c,o,u,d){for(var v=0,p=0,f=Math.min(c.length,u),m=o;m<f;m++){var _=c.charCodeAt(m)-48;v*=d,_>=49?p=_-49+10:_>=17?p=_-17+10:p=_,r(_>=0&&p<d,"Invalid character"),v+=p}return v}n.prototype._parseBase=function(o,u,d){this.words=[0],this.length=1;for(var v=0,p=1;p<=67108863;p*=u)v++;v--,p=p/u|0;for(var f=o.length-d,m=f%v,_=Math.min(f,f-m)+d,l=0,x=d;x<_;x+=v)l=w(o,x,x+v,u),this.imuln(p),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(m!==0){var I=1;for(l=w(o,x,o.length,u),x=0;x<m;x++)I*=u;this.imuln(I),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}this._strip()},n.prototype.copy=function(o){o.words=new Array(this.length);for(var u=0;u<this.length;u++)o.words[u]=this.words[u];o.length=this.length,o.negative=this.negative,o.red=this.red};function S(c,o){c.words=o.words,c.length=o.length,c.negative=o.negative,c.red=o.red}if(n.prototype._move=function(o){S(o,this)},n.prototype.clone=function(){var o=new n(null);return this.copy(o),o},n.prototype._expand=function(o){for(;this.length<o;)this.words[this.length++]=0;return this},n.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},n.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{n.prototype[Symbol.for("nodejs.util.inspect.custom")]=A}catch{n.prototype.inspect=A}else n.prototype.inspect=A;function A(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var q=["","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"],k=[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],O=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(o,u){o=o||10,u=u|0||1;var d;if(o===16||o==="hex"){d="";for(var v=0,p=0,f=0;f<this.length;f++){var m=this.words[f],_=((m<<v|p)&16777215).toString(16);p=m>>>24-v&16777215,v+=2,v>=26&&(v-=26,f--),p!==0||f!==this.length-1?d=q[6-_.length]+_+d:d=_+d}for(p!==0&&(d=p.toString(16)+d);d.length%u!==0;)d="0"+d;return this.negative!==0&&(d="-"+d),d}if(o===(o|0)&&o>=2&&o<=36){var l=k[o],x=O[o];d="";var I=this.clone();for(I.negative=0;!I.isZero();){var D=I.modrn(x).toString(o);I=I.idivn(x),I.isZero()?d=D+d:d=q[l-D.length]+D+d}for(this.isZero()&&(d="0"+d);d.length%u!==0;)d="0"+d;return this.negative!==0&&(d="-"+d),d}r(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var o=this.words[0];return this.length===2?o+=this.words[1]*67108864:this.length===3&&this.words[2]===1?o+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-o:o},n.prototype.toJSON=function(){return this.toString(16,2)},a&&(n.prototype.toBuffer=function(o,u){return this.toArrayLike(a,o,u)}),n.prototype.toArray=function(o,u){return this.toArrayLike(Array,o,u)};var P=function(o,u){return o.allocUnsafe?o.allocUnsafe(u):new o(u)};n.prototype.toArrayLike=function(o,u,d){this._strip();var v=this.byteLength(),p=d||Math.max(1,v);r(v<=p,"byte array longer than desired length"),r(p>0,"Requested array length <= 0");var f=P(o,p),m=u==="le"?"LE":"BE";return this["_toArrayLike"+m](f,v),f},n.prototype._toArrayLikeLE=function(o,u){for(var d=0,v=0,p=0,f=0;p<this.length;p++){var m=this.words[p]<<f|v;o[d++]=m&255,d<o.length&&(o[d++]=m>>8&255),d<o.length&&(o[d++]=m>>16&255),f===6?(d<o.length&&(o[d++]=m>>24&255),v=0,f=0):(v=m>>>24,f+=2)}if(d<o.length)for(o[d++]=v;d<o.length;)o[d++]=0},n.prototype._toArrayLikeBE=function(o,u){for(var d=o.length-1,v=0,p=0,f=0;p<this.length;p++){var m=this.words[p]<<f|v;o[d--]=m&255,d>=0&&(o[d--]=m>>8&255),d>=0&&(o[d--]=m>>16&255),f===6?(d>=0&&(o[d--]=m>>24&255),v=0,f=0):(v=m>>>24,f+=2)}if(d>=0)for(o[d--]=v;d>=0;)o[d--]=0},Math.clz32?n.prototype._countBits=function(o){return 32-Math.clz32(o)}:n.prototype._countBits=function(o){var u=o,d=0;return u>=4096&&(d+=13,u>>>=13),u>=64&&(d+=7,u>>>=7),u>=8&&(d+=4,u>>>=4),u>=2&&(d+=2,u>>>=2),d+u},n.prototype._zeroBits=function(o){if(o===0)return 26;var u=o,d=0;return(u&8191)===0&&(d+=13,u>>>=13),(u&127)===0&&(d+=7,u>>>=7),(u&15)===0&&(d+=4,u>>>=4),(u&3)===0&&(d+=2,u>>>=2),(u&1)===0&&d++,d},n.prototype.bitLength=function(){var o=this.words[this.length-1],u=this._countBits(o);return(this.length-1)*26+u};function W(c){for(var o=new Array(c.bitLength()),u=0;u<o.length;u++){var d=u/26|0,v=u%26;o[u]=c.words[d]>>>v&1}return o}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var o=0,u=0;u<this.length;u++){var d=this._zeroBits(this.words[u]);if(o+=d,d!==26)break}return o},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(o){return this.negative!==0?this.abs().inotn(o).iaddn(1):this.clone()},n.prototype.fromTwos=function(o){return this.testn(o-1)?this.notn(o).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return this.negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.prototype.iuor=function(o){for(;this.length<o.length;)this.words[this.length++]=0;for(var u=0;u<o.length;u++)this.words[u]=this.words[u]|o.words[u];return this._strip()},n.prototype.ior=function(o){return r((this.negative|o.negative)===0),this.iuor(o)},n.prototype.or=function(o){return this.length>o.length?this.clone().ior(o):o.clone().ior(this)},n.prototype.uor=function(o){return this.length>o.length?this.clone().iuor(o):o.clone().iuor(this)},n.prototype.iuand=function(o){var u;this.length>o.length?u=o:u=this;for(var d=0;d<u.length;d++)this.words[d]=this.words[d]&o.words[d];return this.length=u.length,this._strip()},n.prototype.iand=function(o){return r((this.negative|o.negative)===0),this.iuand(o)},n.prototype.and=function(o){return this.length>o.length?this.clone().iand(o):o.clone().iand(this)},n.prototype.uand=function(o){return this.length>o.length?this.clone().iuand(o):o.clone().iuand(this)},n.prototype.iuxor=function(o){var u,d;this.length>o.length?(u=this,d=o):(u=o,d=this);for(var v=0;v<d.length;v++)this.words[v]=u.words[v]^d.words[v];if(this!==u)for(;v<u.length;v++)this.words[v]=u.words[v];return this.length=u.length,this._strip()},n.prototype.ixor=function(o){return r((this.negative|o.negative)===0),this.iuxor(o)},n.prototype.xor=function(o){return this.length>o.length?this.clone().ixor(o):o.clone().ixor(this)},n.prototype.uxor=function(o){return this.length>o.length?this.clone().iuxor(o):o.clone().iuxor(this)},n.prototype.inotn=function(o){r(typeof o=="number"&&o>=0);var u=Math.ceil(o/26)|0,d=o%26;this._expand(u),d>0&&u--;for(var v=0;v<u;v++)this.words[v]=~this.words[v]&67108863;return d>0&&(this.words[v]=~this.words[v]&67108863>>26-d),this._strip()},n.prototype.notn=function(o){return this.clone().inotn(o)},n.prototype.setn=function(o,u){r(typeof o=="number"&&o>=0);var d=o/26|0,v=o%26;return this._expand(d+1),u?this.words[d]=this.words[d]|1<<v:this.words[d]=this.words[d]&~(1<<v),this._strip()},n.prototype.iadd=function(o){var u;if(this.negative!==0&&o.negative===0)return this.negative=0,u=this.isub(o),this.negative^=1,this._normSign();if(this.negative===0&&o.negative!==0)return o.negative=0,u=this.isub(o),o.negative=1,u._normSign();var d,v;this.length>o.length?(d=this,v=o):(d=o,v=this);for(var p=0,f=0;f<v.length;f++)u=(d.words[f]|0)+(v.words[f]|0)+p,this.words[f]=u&67108863,p=u>>>26;for(;p!==0&&f<d.length;f++)u=(d.words[f]|0)+p,this.words[f]=u&67108863,p=u>>>26;if(this.length=d.length,p!==0)this.words[this.length]=p,this.length++;else if(d!==this)for(;f<d.length;f++)this.words[f]=d.words[f];return this},n.prototype.add=function(o){var u;return o.negative!==0&&this.negative===0?(o.negative=0,u=this.sub(o),o.negative^=1,u):o.negative===0&&this.negative!==0?(this.negative=0,u=o.sub(this),this.negative=1,u):this.length>o.length?this.clone().iadd(o):o.clone().iadd(this)},n.prototype.isub=function(o){if(o.negative!==0){o.negative=0;var u=this.iadd(o);return o.negative=1,u._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(o),this.negative=1,this._normSign();var d=this.cmp(o);if(d===0)return this.negative=0,this.length=1,this.words[0]=0,this;var v,p;d>0?(v=this,p=o):(v=o,p=this);for(var f=0,m=0;m<p.length;m++)u=(v.words[m]|0)-(p.words[m]|0)+f,f=u>>26,this.words[m]=u&67108863;for(;f!==0&&m<v.length;m++)u=(v.words[m]|0)+f,f=u>>26,this.words[m]=u&67108863;if(f===0&&m<v.length&&v!==this)for(;m<v.length;m++)this.words[m]=v.words[m];return this.length=Math.max(this.length,m),v!==this&&(this.negative=1),this._strip()},n.prototype.sub=function(o){return this.clone().isub(o)};function Te(c,o,u){u.negative=o.negative^c.negative;var d=c.length+o.length|0;u.length=d,d=d-1|0;var v=c.words[0]|0,p=o.words[0]|0,f=v*p,m=f&67108863,_=f/67108864|0;u.words[0]=m;for(var l=1;l<d;l++){for(var x=_>>>26,I=_&67108863,D=Math.min(l,o.length-1),C=Math.max(0,l-c.length+1);C<=D;C++){var L=l-C|0;v=c.words[L]|0,p=o.words[C]|0,f=v*p+I,x+=f/67108864|0,I=f&67108863}u.words[l]=I|0,_=x|0}return _!==0?u.words[l]=_|0:u.length--,u._strip()}var j=function(o,u,d){var v=o.words,p=u.words,f=d.words,m=0,_,l,x,I=v[0]|0,D=I&8191,C=I>>>13,L=v[1]|0,U=L&8191,N=L>>>13,bt=v[2]|0,F=bt&8191,H=bt>>>13,Xi=v[3]|0,$=Xi&8191,G=Xi>>>13,Ji=v[4]|0,V=Ji&8191,z=Ji>>>13,Qi=v[5]|0,Z=Qi&8191,Y=Qi>>>13,en=v[6]|0,X=en&8191,J=en>>>13,tn=v[7]|0,Q=tn&8191,ee=tn>>>13,rn=v[8]|0,te=rn&8191,re=rn>>>13,nn=v[9]|0,ie=nn&8191,ne=nn>>>13,on=p[0]|0,oe=on&8191,ae=on>>>13,an=p[1]|0,fe=an&8191,se=an>>>13,fn=p[2]|0,ue=fn&8191,he=fn>>>13,sn=p[3]|0,le=sn&8191,ce=sn>>>13,un=p[4]|0,de=un&8191,pe=un>>>13,hn=p[5]|0,ve=hn&8191,ye=hn>>>13,ln=p[6]|0,ge=ln&8191,me=ln>>>13,cn=p[7]|0,be=cn&8191,we=cn>>>13,dn=p[8]|0,_e=dn&8191,xe=dn>>>13,hi=p[9]|0,Ue=hi&8191,Le=hi>>>13;d.negative=o.negative^u.negative,d.length=19,_=Math.imul(D,oe),l=Math.imul(D,ae),l=l+Math.imul(C,oe)|0,x=Math.imul(C,ae);var gr=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(gr>>>26)|0,gr&=67108863,_=Math.imul(U,oe),l=Math.imul(U,ae),l=l+Math.imul(N,oe)|0,x=Math.imul(N,ae),_=_+Math.imul(D,fe)|0,l=l+Math.imul(D,se)|0,l=l+Math.imul(C,fe)|0,x=x+Math.imul(C,se)|0;var mr=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(mr>>>26)|0,mr&=67108863,_=Math.imul(F,oe),l=Math.imul(F,ae),l=l+Math.imul(H,oe)|0,x=Math.imul(H,ae),_=_+Math.imul(U,fe)|0,l=l+Math.imul(U,se)|0,l=l+Math.imul(N,fe)|0,x=x+Math.imul(N,se)|0,_=_+Math.imul(D,ue)|0,l=l+Math.imul(D,he)|0,l=l+Math.imul(C,ue)|0,x=x+Math.imul(C,he)|0;var br=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(br>>>26)|0,br&=67108863,_=Math.imul($,oe),l=Math.imul($,ae),l=l+Math.imul(G,oe)|0,x=Math.imul(G,ae),_=_+Math.imul(F,fe)|0,l=l+Math.imul(F,se)|0,l=l+Math.imul(H,fe)|0,x=x+Math.imul(H,se)|0,_=_+Math.imul(U,ue)|0,l=l+Math.imul(U,he)|0,l=l+Math.imul(N,ue)|0,x=x+Math.imul(N,he)|0,_=_+Math.imul(D,le)|0,l=l+Math.imul(D,ce)|0,l=l+Math.imul(C,le)|0,x=x+Math.imul(C,ce)|0;var wr=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(wr>>>26)|0,wr&=67108863,_=Math.imul(V,oe),l=Math.imul(V,ae),l=l+Math.imul(z,oe)|0,x=Math.imul(z,ae),_=_+Math.imul($,fe)|0,l=l+Math.imul($,se)|0,l=l+Math.imul(G,fe)|0,x=x+Math.imul(G,se)|0,_=_+Math.imul(F,ue)|0,l=l+Math.imul(F,he)|0,l=l+Math.imul(H,ue)|0,x=x+Math.imul(H,he)|0,_=_+Math.imul(U,le)|0,l=l+Math.imul(U,ce)|0,l=l+Math.imul(N,le)|0,x=x+Math.imul(N,ce)|0,_=_+Math.imul(D,de)|0,l=l+Math.imul(D,pe)|0,l=l+Math.imul(C,de)|0,x=x+Math.imul(C,pe)|0;var _r=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(_r>>>26)|0,_r&=67108863,_=Math.imul(Z,oe),l=Math.imul(Z,ae),l=l+Math.imul(Y,oe)|0,x=Math.imul(Y,ae),_=_+Math.imul(V,fe)|0,l=l+Math.imul(V,se)|0,l=l+Math.imul(z,fe)|0,x=x+Math.imul(z,se)|0,_=_+Math.imul($,ue)|0,l=l+Math.imul($,he)|0,l=l+Math.imul(G,ue)|0,x=x+Math.imul(G,he)|0,_=_+Math.imul(F,le)|0,l=l+Math.imul(F,ce)|0,l=l+Math.imul(H,le)|0,x=x+Math.imul(H,ce)|0,_=_+Math.imul(U,de)|0,l=l+Math.imul(U,pe)|0,l=l+Math.imul(N,de)|0,x=x+Math.imul(N,pe)|0,_=_+Math.imul(D,ve)|0,l=l+Math.imul(D,ye)|0,l=l+Math.imul(C,ve)|0,x=x+Math.imul(C,ye)|0;var xr=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(xr>>>26)|0,xr&=67108863,_=Math.imul(X,oe),l=Math.imul(X,ae),l=l+Math.imul(J,oe)|0,x=Math.imul(J,ae),_=_+Math.imul(Z,fe)|0,l=l+Math.imul(Z,se)|0,l=l+Math.imul(Y,fe)|0,x=x+Math.imul(Y,se)|0,_=_+Math.imul(V,ue)|0,l=l+Math.imul(V,he)|0,l=l+Math.imul(z,ue)|0,x=x+Math.imul(z,he)|0,_=_+Math.imul($,le)|0,l=l+Math.imul($,ce)|0,l=l+Math.imul(G,le)|0,x=x+Math.imul(G,ce)|0,_=_+Math.imul(F,de)|0,l=l+Math.imul(F,pe)|0,l=l+Math.imul(H,de)|0,x=x+Math.imul(H,pe)|0,_=_+Math.imul(U,ve)|0,l=l+Math.imul(U,ye)|0,l=l+Math.imul(N,ve)|0,x=x+Math.imul(N,ye)|0,_=_+Math.imul(D,ge)|0,l=l+Math.imul(D,me)|0,l=l+Math.imul(C,ge)|0,x=x+Math.imul(C,me)|0;var Mr=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,_=Math.imul(Q,oe),l=Math.imul(Q,ae),l=l+Math.imul(ee,oe)|0,x=Math.imul(ee,ae),_=_+Math.imul(X,fe)|0,l=l+Math.imul(X,se)|0,l=l+Math.imul(J,fe)|0,x=x+Math.imul(J,se)|0,_=_+Math.imul(Z,ue)|0,l=l+Math.imul(Z,he)|0,l=l+Math.imul(Y,ue)|0,x=x+Math.imul(Y,he)|0,_=_+Math.imul(V,le)|0,l=l+Math.imul(V,ce)|0,l=l+Math.imul(z,le)|0,x=x+Math.imul(z,ce)|0,_=_+Math.imul($,de)|0,l=l+Math.imul($,pe)|0,l=l+Math.imul(G,de)|0,x=x+Math.imul(G,pe)|0,_=_+Math.imul(F,ve)|0,l=l+Math.imul(F,ye)|0,l=l+Math.imul(H,ve)|0,x=x+Math.imul(H,ye)|0,_=_+Math.imul(U,ge)|0,l=l+Math.imul(U,me)|0,l=l+Math.imul(N,ge)|0,x=x+Math.imul(N,me)|0,_=_+Math.imul(D,be)|0,l=l+Math.imul(D,we)|0,l=l+Math.imul(C,be)|0,x=x+Math.imul(C,we)|0;var Er=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(Er>>>26)|0,Er&=67108863,_=Math.imul(te,oe),l=Math.imul(te,ae),l=l+Math.imul(re,oe)|0,x=Math.imul(re,ae),_=_+Math.imul(Q,fe)|0,l=l+Math.imul(Q,se)|0,l=l+Math.imul(ee,fe)|0,x=x+Math.imul(ee,se)|0,_=_+Math.imul(X,ue)|0,l=l+Math.imul(X,he)|0,l=l+Math.imul(J,ue)|0,x=x+Math.imul(J,he)|0,_=_+Math.imul(Z,le)|0,l=l+Math.imul(Z,ce)|0,l=l+Math.imul(Y,le)|0,x=x+Math.imul(Y,ce)|0,_=_+Math.imul(V,de)|0,l=l+Math.imul(V,pe)|0,l=l+Math.imul(z,de)|0,x=x+Math.imul(z,pe)|0,_=_+Math.imul($,ve)|0,l=l+Math.imul($,ye)|0,l=l+Math.imul(G,ve)|0,x=x+Math.imul(G,ye)|0,_=_+Math.imul(F,ge)|0,l=l+Math.imul(F,me)|0,l=l+Math.imul(H,ge)|0,x=x+Math.imul(H,me)|0,_=_+Math.imul(U,be)|0,l=l+Math.imul(U,we)|0,l=l+Math.imul(N,be)|0,x=x+Math.imul(N,we)|0,_=_+Math.imul(D,_e)|0,l=l+Math.imul(D,xe)|0,l=l+Math.imul(C,_e)|0,x=x+Math.imul(C,xe)|0;var Sr=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(Sr>>>26)|0,Sr&=67108863,_=Math.imul(ie,oe),l=Math.imul(ie,ae),l=l+Math.imul(ne,oe)|0,x=Math.imul(ne,ae),_=_+Math.imul(te,fe)|0,l=l+Math.imul(te,se)|0,l=l+Math.imul(re,fe)|0,x=x+Math.imul(re,se)|0,_=_+Math.imul(Q,ue)|0,l=l+Math.imul(Q,he)|0,l=l+Math.imul(ee,ue)|0,x=x+Math.imul(ee,he)|0,_=_+Math.imul(X,le)|0,l=l+Math.imul(X,ce)|0,l=l+Math.imul(J,le)|0,x=x+Math.imul(J,ce)|0,_=_+Math.imul(Z,de)|0,l=l+Math.imul(Z,pe)|0,l=l+Math.imul(Y,de)|0,x=x+Math.imul(Y,pe)|0,_=_+Math.imul(V,ve)|0,l=l+Math.imul(V,ye)|0,l=l+Math.imul(z,ve)|0,x=x+Math.imul(z,ye)|0,_=_+Math.imul($,ge)|0,l=l+Math.imul($,me)|0,l=l+Math.imul(G,ge)|0,x=x+Math.imul(G,me)|0,_=_+Math.imul(F,be)|0,l=l+Math.imul(F,we)|0,l=l+Math.imul(H,be)|0,x=x+Math.imul(H,we)|0,_=_+Math.imul(U,_e)|0,l=l+Math.imul(U,xe)|0,l=l+Math.imul(N,_e)|0,x=x+Math.imul(N,xe)|0,_=_+Math.imul(D,Ue)|0,l=l+Math.imul(D,Le)|0,l=l+Math.imul(C,Ue)|0,x=x+Math.imul(C,Le)|0;var Br=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(Br>>>26)|0,Br&=67108863,_=Math.imul(ie,fe),l=Math.imul(ie,se),l=l+Math.imul(ne,fe)|0,x=Math.imul(ne,se),_=_+Math.imul(te,ue)|0,l=l+Math.imul(te,he)|0,l=l+Math.imul(re,ue)|0,x=x+Math.imul(re,he)|0,_=_+Math.imul(Q,le)|0,l=l+Math.imul(Q,ce)|0,l=l+Math.imul(ee,le)|0,x=x+Math.imul(ee,ce)|0,_=_+Math.imul(X,de)|0,l=l+Math.imul(X,pe)|0,l=l+Math.imul(J,de)|0,x=x+Math.imul(J,pe)|0,_=_+Math.imul(Z,ve)|0,l=l+Math.imul(Z,ye)|0,l=l+Math.imul(Y,ve)|0,x=x+Math.imul(Y,ye)|0,_=_+Math.imul(V,ge)|0,l=l+Math.imul(V,me)|0,l=l+Math.imul(z,ge)|0,x=x+Math.imul(z,me)|0,_=_+Math.imul($,be)|0,l=l+Math.imul($,we)|0,l=l+Math.imul(G,be)|0,x=x+Math.imul(G,we)|0,_=_+Math.imul(F,_e)|0,l=l+Math.imul(F,xe)|0,l=l+Math.imul(H,_e)|0,x=x+Math.imul(H,xe)|0,_=_+Math.imul(U,Ue)|0,l=l+Math.imul(U,Le)|0,l=l+Math.imul(N,Ue)|0,x=x+Math.imul(N,Le)|0;var Ar=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,_=Math.imul(ie,ue),l=Math.imul(ie,he),l=l+Math.imul(ne,ue)|0,x=Math.imul(ne,he),_=_+Math.imul(te,le)|0,l=l+Math.imul(te,ce)|0,l=l+Math.imul(re,le)|0,x=x+Math.imul(re,ce)|0,_=_+Math.imul(Q,de)|0,l=l+Math.imul(Q,pe)|0,l=l+Math.imul(ee,de)|0,x=x+Math.imul(ee,pe)|0,_=_+Math.imul(X,ve)|0,l=l+Math.imul(X,ye)|0,l=l+Math.imul(J,ve)|0,x=x+Math.imul(J,ye)|0,_=_+Math.imul(Z,ge)|0,l=l+Math.imul(Z,me)|0,l=l+Math.imul(Y,ge)|0,x=x+Math.imul(Y,me)|0,_=_+Math.imul(V,be)|0,l=l+Math.imul(V,we)|0,l=l+Math.imul(z,be)|0,x=x+Math.imul(z,we)|0,_=_+Math.imul($,_e)|0,l=l+Math.imul($,xe)|0,l=l+Math.imul(G,_e)|0,x=x+Math.imul(G,xe)|0,_=_+Math.imul(F,Ue)|0,l=l+Math.imul(F,Le)|0,l=l+Math.imul(H,Ue)|0,x=x+Math.imul(H,Le)|0;var Rr=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,_=Math.imul(ie,le),l=Math.imul(ie,ce),l=l+Math.imul(ne,le)|0,x=Math.imul(ne,ce),_=_+Math.imul(te,de)|0,l=l+Math.imul(te,pe)|0,l=l+Math.imul(re,de)|0,x=x+Math.imul(re,pe)|0,_=_+Math.imul(Q,ve)|0,l=l+Math.imul(Q,ye)|0,l=l+Math.imul(ee,ve)|0,x=x+Math.imul(ee,ye)|0,_=_+Math.imul(X,ge)|0,l=l+Math.imul(X,me)|0,l=l+Math.imul(J,ge)|0,x=x+Math.imul(J,me)|0,_=_+Math.imul(Z,be)|0,l=l+Math.imul(Z,we)|0,l=l+Math.imul(Y,be)|0,x=x+Math.imul(Y,we)|0,_=_+Math.imul(V,_e)|0,l=l+Math.imul(V,xe)|0,l=l+Math.imul(z,_e)|0,x=x+Math.imul(z,xe)|0,_=_+Math.imul($,Ue)|0,l=l+Math.imul($,Le)|0,l=l+Math.imul(G,Ue)|0,x=x+Math.imul(G,Le)|0;var qr=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(qr>>>26)|0,qr&=67108863,_=Math.imul(ie,de),l=Math.imul(ie,pe),l=l+Math.imul(ne,de)|0,x=Math.imul(ne,pe),_=_+Math.imul(te,ve)|0,l=l+Math.imul(te,ye)|0,l=l+Math.imul(re,ve)|0,x=x+Math.imul(re,ye)|0,_=_+Math.imul(Q,ge)|0,l=l+Math.imul(Q,me)|0,l=l+Math.imul(ee,ge)|0,x=x+Math.imul(ee,me)|0,_=_+Math.imul(X,be)|0,l=l+Math.imul(X,we)|0,l=l+Math.imul(J,be)|0,x=x+Math.imul(J,we)|0,_=_+Math.imul(Z,_e)|0,l=l+Math.imul(Z,xe)|0,l=l+Math.imul(Y,_e)|0,x=x+Math.imul(Y,xe)|0,_=_+Math.imul(V,Ue)|0,l=l+Math.imul(V,Le)|0,l=l+Math.imul(z,Ue)|0,x=x+Math.imul(z,Le)|0;var Tr=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,_=Math.imul(ie,ve),l=Math.imul(ie,ye),l=l+Math.imul(ne,ve)|0,x=Math.imul(ne,ye),_=_+Math.imul(te,ge)|0,l=l+Math.imul(te,me)|0,l=l+Math.imul(re,ge)|0,x=x+Math.imul(re,me)|0,_=_+Math.imul(Q,be)|0,l=l+Math.imul(Q,we)|0,l=l+Math.imul(ee,be)|0,x=x+Math.imul(ee,we)|0,_=_+Math.imul(X,_e)|0,l=l+Math.imul(X,xe)|0,l=l+Math.imul(J,_e)|0,x=x+Math.imul(J,xe)|0,_=_+Math.imul(Z,Ue)|0,l=l+Math.imul(Z,Le)|0,l=l+Math.imul(Y,Ue)|0,x=x+Math.imul(Y,Le)|0;var kr=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(kr>>>26)|0,kr&=67108863,_=Math.imul(ie,ge),l=Math.imul(ie,me),l=l+Math.imul(ne,ge)|0,x=Math.imul(ne,me),_=_+Math.imul(te,be)|0,l=l+Math.imul(te,we)|0,l=l+Math.imul(re,be)|0,x=x+Math.imul(re,we)|0,_=_+Math.imul(Q,_e)|0,l=l+Math.imul(Q,xe)|0,l=l+Math.imul(ee,_e)|0,x=x+Math.imul(ee,xe)|0,_=_+Math.imul(X,Ue)|0,l=l+Math.imul(X,Le)|0,l=l+Math.imul(J,Ue)|0,x=x+Math.imul(J,Le)|0;var Ir=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,_=Math.imul(ie,be),l=Math.imul(ie,we),l=l+Math.imul(ne,be)|0,x=Math.imul(ne,we),_=_+Math.imul(te,_e)|0,l=l+Math.imul(te,xe)|0,l=l+Math.imul(re,_e)|0,x=x+Math.imul(re,xe)|0,_=_+Math.imul(Q,Ue)|0,l=l+Math.imul(Q,Le)|0,l=l+Math.imul(ee,Ue)|0,x=x+Math.imul(ee,Le)|0;var nf=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(nf>>>26)|0,nf&=67108863,_=Math.imul(ie,_e),l=Math.imul(ie,xe),l=l+Math.imul(ne,_e)|0,x=Math.imul(ne,xe),_=_+Math.imul(te,Ue)|0,l=l+Math.imul(te,Le)|0,l=l+Math.imul(re,Ue)|0,x=x+Math.imul(re,Le)|0;var of=(m+_|0)+((l&8191)<<13)|0;m=(x+(l>>>13)|0)+(of>>>26)|0,of&=67108863,_=Math.imul(ie,Ue),l=Math.imul(ie,Le),l=l+Math.imul(ne,Ue)|0,x=Math.imul(ne,Le);var af=(m+_|0)+((l&8191)<<13)|0;return m=(x+(l>>>13)|0)+(af>>>26)|0,af&=67108863,f[0]=gr,f[1]=mr,f[2]=br,f[3]=wr,f[4]=_r,f[5]=xr,f[6]=Mr,f[7]=Er,f[8]=Sr,f[9]=Br,f[10]=Ar,f[11]=Rr,f[12]=qr,f[13]=Tr,f[14]=kr,f[15]=Ir,f[16]=nf,f[17]=of,f[18]=af,m!==0&&(f[19]=m,d.length++),d};Math.imul||(j=Te);function Se(c,o,u){u.negative=o.negative^c.negative,u.length=c.length+o.length;for(var d=0,v=0,p=0;p<u.length-1;p++){var f=v;v=0;for(var m=d&67108863,_=Math.min(p,o.length-1),l=Math.max(0,p-c.length+1);l<=_;l++){var x=p-l,I=c.words[x]|0,D=o.words[l]|0,C=I*D,L=C&67108863;f=f+(C/67108864|0)|0,L=L+m|0,m=L&67108863,f=f+(L>>>26)|0,v+=f>>>26,f&=67108863}u.words[p]=m,d=f,f=v}return d!==0?u.words[p]=d:u.length--,u._strip()}function Fe(c,o,u){return Se(c,o,u)}n.prototype.mulTo=function(o,u){var d,v=this.length+o.length;return this.length===10&&o.length===10?d=j(this,o,u):v<63?d=Te(this,o,u):v<1024?d=Se(this,o,u):d=Fe(this,o,u),d};function je(c,o){this.x=c,this.y=o}je.prototype.makeRBT=function(o){for(var u=new Array(o),d=n.prototype._countBits(o)-1,v=0;v<o;v++)u[v]=this.revBin(v,d,o);return u},je.prototype.revBin=function(o,u,d){if(o===0||o===d-1)return o;for(var v=0,p=0;p<u;p++)v|=(o&1)<<u-p-1,o>>=1;return v},je.prototype.permute=function(o,u,d,v,p,f){for(var m=0;m<f;m++)v[m]=u[o[m]],p[m]=d[o[m]]},je.prototype.transform=function(o,u,d,v,p,f){this.permute(f,o,u,d,v,p);for(var m=1;m<p;m<<=1)for(var _=m<<1,l=Math.cos(2*Math.PI/_),x=Math.sin(2*Math.PI/_),I=0;I<p;I+=_)for(var D=l,C=x,L=0;L<m;L++){var U=d[I+L],N=v[I+L],bt=d[I+L+m],F=v[I+L+m],H=D*bt-C*F;F=D*F+C*bt,bt=H,d[I+L]=U+bt,v[I+L]=N+F,d[I+L+m]=U-bt,v[I+L+m]=N-F,L!==_&&(H=l*D-x*C,C=l*C+x*D,D=H)}},je.prototype.guessLen13b=function(o,u){var d=Math.max(u,o)|1,v=d&1,p=0;for(d=d/2|0;d;d=d>>>1)p++;return 1<<p+1+v},je.prototype.conjugate=function(o,u,d){if(!(d<=1))for(var v=0;v<d/2;v++){var p=o[v];o[v]=o[d-v-1],o[d-v-1]=p,p=u[v],u[v]=-u[d-v-1],u[d-v-1]=-p}},je.prototype.normalize13b=function(o,u){for(var d=0,v=0;v<u/2;v++){var p=Math.round(o[2*v+1]/u)*8192+Math.round(o[2*v]/u)+d;o[v]=p&67108863,p<67108864?d=0:d=p/67108864|0}return o},je.prototype.convert13b=function(o,u,d,v){for(var p=0,f=0;f<u;f++)p=p+(o[f]|0),d[2*f]=p&8191,p=p>>>13,d[2*f+1]=p&8191,p=p>>>13;for(f=2*u;f<v;++f)d[f]=0;r(p===0),r((p&-8192)===0)},je.prototype.stub=function(o){for(var u=new Array(o),d=0;d<o;d++)u[d]=0;return u},je.prototype.mulp=function(o,u,d){var v=2*this.guessLen13b(o.length,u.length),p=this.makeRBT(v),f=this.stub(v),m=new Array(v),_=new Array(v),l=new Array(v),x=new Array(v),I=new Array(v),D=new Array(v),C=d.words;C.length=v,this.convert13b(o.words,o.length,m,v),this.convert13b(u.words,u.length,x,v),this.transform(m,f,_,l,v,p),this.transform(x,f,I,D,v,p);for(var L=0;L<v;L++){var U=_[L]*I[L]-l[L]*D[L];l[L]=_[L]*D[L]+l[L]*I[L],_[L]=U}return this.conjugate(_,l,v),this.transform(_,l,C,f,v,p),this.conjugate(C,f,v),this.normalize13b(C,v),d.negative=o.negative^u.negative,d.length=o.length+u.length,d._strip()},n.prototype.mul=function(o){var u=new n(null);return u.words=new Array(this.length+o.length),this.mulTo(o,u)},n.prototype.mulf=function(o){var u=new n(null);return u.words=new Array(this.length+o.length),Fe(this,o,u)},n.prototype.imul=function(o){return this.clone().mulTo(o,this)},n.prototype.imuln=function(o){var u=o<0;u&&(o=-o),r(typeof o=="number"),r(o<67108864);for(var d=0,v=0;v<this.length;v++){var p=(this.words[v]|0)*o,f=(p&67108863)+(d&67108863);d>>=26,d+=p/67108864|0,d+=f>>>26,this.words[v]=f&67108863}return d!==0&&(this.words[v]=d,this.length++),this.length=o===0?1:this.length,u?this.ineg():this},n.prototype.muln=function(o){return this.clone().imuln(o)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(o){var u=W(o);if(u.length===0)return new n(1);for(var d=this,v=0;v<u.length&&u[v]===0;v++,d=d.sqr());if(++v<u.length)for(var p=d.sqr();v<u.length;v++,p=p.sqr())u[v]!==0&&(d=d.mul(p));return d},n.prototype.iushln=function(o){r(typeof o=="number"&&o>=0);var u=o%26,d=(o-u)/26,v=67108863>>>26-u<<26-u,p;if(u!==0){var f=0;for(p=0;p<this.length;p++){var m=this.words[p]&v,_=(this.words[p]|0)-m<<u;this.words[p]=_|f,f=m>>>26-u}f&&(this.words[p]=f,this.length++)}if(d!==0){for(p=this.length-1;p>=0;p--)this.words[p+d]=this.words[p];for(p=0;p<d;p++)this.words[p]=0;this.length+=d}return this._strip()},n.prototype.ishln=function(o){return r(this.negative===0),this.iushln(o)},n.prototype.iushrn=function(o,u,d){r(typeof o=="number"&&o>=0);var v;u?v=(u-u%26)/26:v=0;var p=o%26,f=Math.min((o-p)/26,this.length),m=67108863^67108863>>>p<<p,_=d;if(v-=f,v=Math.max(0,v),_){for(var l=0;l<f;l++)_.words[l]=this.words[l];_.length=f}if(f!==0)if(this.length>f)for(this.length-=f,l=0;l<this.length;l++)this.words[l]=this.words[l+f];else this.words[0]=0,this.length=1;var x=0;for(l=this.length-1;l>=0&&(x!==0||l>=v);l--){var I=this.words[l]|0;this.words[l]=x<<26-p|I>>>p,x=I&m}return _&&x!==0&&(_.words[_.length++]=x),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},n.prototype.ishrn=function(o,u,d){return r(this.negative===0),this.iushrn(o,u,d)},n.prototype.shln=function(o){return this.clone().ishln(o)},n.prototype.ushln=function(o){return this.clone().iushln(o)},n.prototype.shrn=function(o){return this.clone().ishrn(o)},n.prototype.ushrn=function(o){return this.clone().iushrn(o)},n.prototype.testn=function(o){r(typeof o=="number"&&o>=0);var u=o%26,d=(o-u)/26,v=1<<u;if(this.length<=d)return!1;var p=this.words[d];return!!(p&v)},n.prototype.imaskn=function(o){r(typeof o=="number"&&o>=0);var u=o%26,d=(o-u)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=d)return this;if(u!==0&&d++,this.length=Math.min(d,this.length),u!==0){var v=67108863^67108863>>>u<<u;this.words[this.length-1]&=v}return this.length===0&&(this.words[0]=0,this.length=1),this._strip()},n.prototype.maskn=function(o){return this.clone().imaskn(o)},n.prototype.iaddn=function(o){return r(typeof o=="number"),r(o<67108864),o<0?this.isubn(-o):this.negative!==0?this.length===1&&(this.words[0]|0)<=o?(this.words[0]=o-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(o),this.negative=1,this):this._iaddn(o)},n.prototype._iaddn=function(o){this.words[0]+=o;for(var u=0;u<this.length&&this.words[u]>=67108864;u++)this.words[u]-=67108864,u===this.length-1?this.words[u+1]=1:this.words[u+1]++;return this.length=Math.max(this.length,u+1),this},n.prototype.isubn=function(o){if(r(typeof o=="number"),r(o<67108864),o<0)return this.iaddn(-o);if(this.negative!==0)return this.negative=0,this.iaddn(o),this.negative=1,this;if(this.words[0]-=o,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var u=0;u<this.length&&this.words[u]<0;u++)this.words[u]+=67108864,this.words[u+1]-=1;return this._strip()},n.prototype.addn=function(o){return this.clone().iaddn(o)},n.prototype.subn=function(o){return this.clone().isubn(o)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(o,u,d){var v=o.length+d,p;this._expand(v);var f,m=0;for(p=0;p<o.length;p++){f=(this.words[p+d]|0)+m;var _=(o.words[p]|0)*u;f-=_&67108863,m=(f>>26)-(_/67108864|0),this.words[p+d]=f&67108863}for(;p<this.length-d;p++)f=(this.words[p+d]|0)+m,m=f>>26,this.words[p+d]=f&67108863;if(m===0)return this._strip();for(r(m===-1),m=0,p=0;p<this.length;p++)f=-(this.words[p]|0)+m,m=f>>26,this.words[p]=f&67108863;return this.negative=1,this._strip()},n.prototype._wordDiv=function(o,u){var d=this.length-o.length,v=this.clone(),p=o,f=p.words[p.length-1]|0,m=this._countBits(f);d=26-m,d!==0&&(p=p.ushln(d),v.iushln(d),f=p.words[p.length-1]|0);var _=v.length-p.length,l;if(u!=="mod"){l=new n(null),l.length=_+1,l.words=new Array(l.length);for(var x=0;x<l.length;x++)l.words[x]=0}var I=v.clone()._ishlnsubmul(p,1,_);I.negative===0&&(v=I,l&&(l.words[_]=1));for(var D=_-1;D>=0;D--){var C=(v.words[p.length+D]|0)*67108864+(v.words[p.length+D-1]|0);for(C=Math.min(C/f|0,67108863),v._ishlnsubmul(p,C,D);v.negative!==0;)C--,v.negative=0,v._ishlnsubmul(p,1,D),v.isZero()||(v.negative^=1);l&&(l.words[D]=C)}return l&&l._strip(),v._strip(),u!=="div"&&d!==0&&v.iushrn(d),{div:l||null,mod:v}},n.prototype.divmod=function(o,u,d){if(r(!o.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var v,p,f;return this.negative!==0&&o.negative===0?(f=this.neg().divmod(o,u),u!=="mod"&&(v=f.div.neg()),u!=="div"&&(p=f.mod.neg(),d&&p.negative!==0&&p.iadd(o)),{div:v,mod:p}):this.negative===0&&o.negative!==0?(f=this.divmod(o.neg(),u),u!=="mod"&&(v=f.div.neg()),{div:v,mod:f.mod}):(this.negative&o.negative)!==0?(f=this.neg().divmod(o.neg(),u),u!=="div"&&(p=f.mod.neg(),d&&p.negative!==0&&p.isub(o)),{div:f.div,mod:p}):o.length>this.length||this.cmp(o)<0?{div:new n(0),mod:this}:o.length===1?u==="div"?{div:this.divn(o.words[0]),mod:null}:u==="mod"?{div:null,mod:new n(this.modrn(o.words[0]))}:{div:this.divn(o.words[0]),mod:new n(this.modrn(o.words[0]))}:this._wordDiv(o,u)},n.prototype.div=function(o){return this.divmod(o,"div",!1).div},n.prototype.mod=function(o){return this.divmod(o,"mod",!1).mod},n.prototype.umod=function(o){return this.divmod(o,"mod",!0).mod},n.prototype.divRound=function(o){var u=this.divmod(o);if(u.mod.isZero())return u.div;var d=u.div.negative!==0?u.mod.isub(o):u.mod,v=o.ushrn(1),p=o.andln(1),f=d.cmp(v);return f<0||p===1&&f===0?u.div:u.div.negative!==0?u.div.isubn(1):u.div.iaddn(1)},n.prototype.modrn=function(o){var u=o<0;u&&(o=-o),r(o<=67108863);for(var d=(1<<26)%o,v=0,p=this.length-1;p>=0;p--)v=(d*v+(this.words[p]|0))%o;return u?-v:v},n.prototype.modn=function(o){return this.modrn(o)},n.prototype.idivn=function(o){var u=o<0;u&&(o=-o),r(o<=67108863);for(var d=0,v=this.length-1;v>=0;v--){var p=(this.words[v]|0)+d*67108864;this.words[v]=p/o|0,d=p%o}return this._strip(),u?this.ineg():this},n.prototype.divn=function(o){return this.clone().idivn(o)},n.prototype.egcd=function(o){r(o.negative===0),r(!o.isZero());var u=this,d=o.clone();u.negative!==0?u=u.umod(o):u=u.clone();for(var v=new n(1),p=new n(0),f=new n(0),m=new n(1),_=0;u.isEven()&&d.isEven();)u.iushrn(1),d.iushrn(1),++_;for(var l=d.clone(),x=u.clone();!u.isZero();){for(var I=0,D=1;(u.words[0]&D)===0&&I<26;++I,D<<=1);if(I>0)for(u.iushrn(I);I-- >0;)(v.isOdd()||p.isOdd())&&(v.iadd(l),p.isub(x)),v.iushrn(1),p.iushrn(1);for(var C=0,L=1;(d.words[0]&L)===0&&C<26;++C,L<<=1);if(C>0)for(d.iushrn(C);C-- >0;)(f.isOdd()||m.isOdd())&&(f.iadd(l),m.isub(x)),f.iushrn(1),m.iushrn(1);u.cmp(d)>=0?(u.isub(d),v.isub(f),p.isub(m)):(d.isub(u),f.isub(v),m.isub(p))}return{a:f,b:m,gcd:d.iushln(_)}},n.prototype._invmp=function(o){r(o.negative===0),r(!o.isZero());var u=this,d=o.clone();u.negative!==0?u=u.umod(o):u=u.clone();for(var v=new n(1),p=new n(0),f=d.clone();u.cmpn(1)>0&&d.cmpn(1)>0;){for(var m=0,_=1;(u.words[0]&_)===0&&m<26;++m,_<<=1);if(m>0)for(u.iushrn(m);m-- >0;)v.isOdd()&&v.iadd(f),v.iushrn(1);for(var l=0,x=1;(d.words[0]&x)===0&&l<26;++l,x<<=1);if(l>0)for(d.iushrn(l);l-- >0;)p.isOdd()&&p.iadd(f),p.iushrn(1);u.cmp(d)>=0?(u.isub(d),v.isub(p)):(d.isub(u),p.isub(v))}var I;return u.cmpn(1)===0?I=v:I=p,I.cmpn(0)<0&&I.iadd(o),I},n.prototype.gcd=function(o){if(this.isZero())return o.abs();if(o.isZero())return this.abs();var u=this.clone(),d=o.clone();u.negative=0,d.negative=0;for(var v=0;u.isEven()&&d.isEven();v++)u.iushrn(1),d.iushrn(1);do{for(;u.isEven();)u.iushrn(1);for(;d.isEven();)d.iushrn(1);var p=u.cmp(d);if(p<0){var f=u;u=d,d=f}else if(p===0||d.cmpn(1)===0)break;u.isub(d)}while(!0);return d.iushln(v)},n.prototype.invm=function(o){return this.egcd(o).a.umod(o)},n.prototype.isEven=function(){return(this.words[0]&1)===0},n.prototype.isOdd=function(){return(this.words[0]&1)===1},n.prototype.andln=function(o){return this.words[0]&o},n.prototype.bincn=function(o){r(typeof o=="number");var u=o%26,d=(o-u)/26,v=1<<u;if(this.length<=d)return this._expand(d+1),this.words[d]|=v,this;for(var p=v,f=d;p!==0&&f<this.length;f++){var m=this.words[f]|0;m+=p,p=m>>>26,m&=67108863,this.words[f]=m}return p!==0&&(this.words[f]=p,this.length++),this},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.prototype.cmpn=function(o){var u=o<0;if(this.negative!==0&&!u)return-1;if(this.negative===0&&u)return 1;this._strip();var d;if(this.length>1)d=1;else{u&&(o=-o),r(o<=67108863,"Number is too big");var v=this.words[0]|0;d=v===o?0:v<o?-1:1}return this.negative!==0?-d|0:d},n.prototype.cmp=function(o){if(this.negative!==0&&o.negative===0)return-1;if(this.negative===0&&o.negative!==0)return 1;var u=this.ucmp(o);return this.negative!==0?-u|0:u},n.prototype.ucmp=function(o){if(this.length>o.length)return 1;if(this.length<o.length)return-1;for(var u=0,d=this.length-1;d>=0;d--){var v=this.words[d]|0,p=o.words[d]|0;if(v!==p){v<p?u=-1:v>p&&(u=1);break}}return u},n.prototype.gtn=function(o){return this.cmpn(o)===1},n.prototype.gt=function(o){return this.cmp(o)===1},n.prototype.gten=function(o){return this.cmpn(o)>=0},n.prototype.gte=function(o){return this.cmp(o)>=0},n.prototype.ltn=function(o){return this.cmpn(o)===-1},n.prototype.lt=function(o){return this.cmp(o)===-1},n.prototype.lten=function(o){return this.cmpn(o)<=0},n.prototype.lte=function(o){return this.cmp(o)<=0},n.prototype.eqn=function(o){return this.cmpn(o)===0},n.prototype.eq=function(o){return this.cmp(o)===0},n.red=function(o){return new h(o)},n.prototype.toRed=function(o){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),o.convertTo(this)._forceRed(o)},n.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(o){return this.red=o,this},n.prototype.forceRed=function(o){return r(!this.red,"Already a number in reduction context"),this._forceRed(o)},n.prototype.redAdd=function(o){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,o)},n.prototype.redIAdd=function(o){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,o)},n.prototype.redSub=function(o){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,o)},n.prototype.redISub=function(o){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,o)},n.prototype.redShl=function(o){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,o)},n.prototype.redMul=function(o){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.mul(this,o)},n.prototype.redIMul=function(o){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.imul(this,o)},n.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(o){return r(this.red&&!o.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,o)};var nr={k256:null,p224:null,p192:null,p25519:null};function Ge(c,o){this.name=c,this.p=new n(o,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Ge.prototype._tmp=function(){var o=new n(null);return o.words=new Array(Math.ceil(this.n/13)),o},Ge.prototype.ireduce=function(o){var u=o,d;do this.split(u,this.tmp),u=this.imulK(u),u=u.iadd(this.tmp),d=u.bitLength();while(d>this.n);var v=d<this.n?-1:u.ucmp(this.p);return v===0?(u.words[0]=0,u.length=1):v>0?u.isub(this.p):u.strip!==void 0?u.strip():u._strip(),u},Ge.prototype.split=function(o,u){o.iushrn(this.n,0,u)},Ge.prototype.imulK=function(o){return o.imul(this.k)};function Tt(){Ge.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(Tt,Ge),Tt.prototype.split=function(o,u){for(var d=4194303,v=Math.min(o.length,9),p=0;p<v;p++)u.words[p]=o.words[p];if(u.length=v,o.length<=9){o.words[0]=0,o.length=1;return}var f=o.words[9];for(u.words[u.length++]=f&d,p=10;p<o.length;p++){var m=o.words[p]|0;o.words[p-10]=(m&d)<<4|f>>>22,f=m}f>>>=22,o.words[p-10]=f,f===0&&o.length>10?o.length-=10:o.length-=9},Tt.prototype.imulK=function(o){o.words[o.length]=0,o.words[o.length+1]=0,o.length+=2;for(var u=0,d=0;d<o.length;d++){var v=o.words[d]|0;u+=v*977,o.words[d]=u&67108863,u=v*64+(u/67108864|0)}return o.words[o.length-1]===0&&(o.length--,o.words[o.length-1]===0&&o.length--),o};function De(){Ge.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i(De,Ge);function st(){Ge.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i(st,Ge);function E(){Ge.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i(E,Ge),E.prototype.imulK=function(o){for(var u=0,d=0;d<o.length;d++){var v=(o.words[d]|0)*19+u,p=v&67108863;v>>>=26,o.words[d]=p,u=v}return u!==0&&(o.words[o.length++]=u),o},n._prime=function(o){if(nr[o])return nr[o];var u;if(o==="k256")u=new Tt;else if(o==="p224")u=new De;else if(o==="p192")u=new st;else if(o==="p25519")u=new E;else throw new Error("Unknown prime "+o);return nr[o]=u,u};function h(c){if(typeof c=="string"){var o=n._prime(c);this.m=o.p,this.prime=o}else r(c.gtn(1),"modulus must be greater than 1"),this.m=c,this.prime=null}h.prototype._verify1=function(o){r(o.negative===0,"red works only with positives"),r(o.red,"red works only with red numbers")},h.prototype._verify2=function(o,u){r((o.negative|u.negative)===0,"red works only with positives"),r(o.red&&o.red===u.red,"red works only with red numbers")},h.prototype.imod=function(o){return this.prime?this.prime.ireduce(o)._forceRed(this):(S(o,o.umod(this.m)._forceRed(this)),o)},h.prototype.neg=function(o){return o.isZero()?o.clone():this.m.sub(o)._forceRed(this)},h.prototype.add=function(o,u){this._verify2(o,u);var d=o.add(u);return d.cmp(this.m)>=0&&d.isub(this.m),d._forceRed(this)},h.prototype.iadd=function(o,u){this._verify2(o,u);var d=o.iadd(u);return d.cmp(this.m)>=0&&d.isub(this.m),d},h.prototype.sub=function(o,u){this._verify2(o,u);var d=o.sub(u);return d.cmpn(0)<0&&d.iadd(this.m),d._forceRed(this)},h.prototype.isub=function(o,u){this._verify2(o,u);var d=o.isub(u);return d.cmpn(0)<0&&d.iadd(this.m),d},h.prototype.shl=function(o,u){return this._verify1(o),this.imod(o.ushln(u))},h.prototype.imul=function(o,u){return this._verify2(o,u),this.imod(o.imul(u))},h.prototype.mul=function(o,u){return this._verify2(o,u),this.imod(o.mul(u))},h.prototype.isqr=function(o){return this.imul(o,o.clone())},h.prototype.sqr=function(o){return this.mul(o,o)},h.prototype.sqrt=function(o){if(o.isZero())return o.clone();var u=this.m.andln(3);if(r(u%2===1),u===3){var d=this.m.add(new n(1)).iushrn(2);return this.pow(o,d)}for(var v=this.m.subn(1),p=0;!v.isZero()&&v.andln(1)===0;)p++,v.iushrn(1);r(!v.isZero());var f=new n(1).toRed(this),m=f.redNeg(),_=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new n(2*l*l).toRed(this);this.pow(l,_).cmp(m)!==0;)l.redIAdd(m);for(var x=this.pow(l,v),I=this.pow(o,v.addn(1).iushrn(1)),D=this.pow(o,v),C=p;D.cmp(f)!==0;){for(var L=D,U=0;L.cmp(f)!==0;U++)L=L.redSqr();r(U<C);var N=this.pow(x,new n(1).iushln(C-U-1));I=I.redMul(N),x=N.redSqr(),D=D.redMul(x),C=U}return I},h.prototype.invm=function(o){var u=o._invmp(this.m);return u.negative!==0?(u.negative=0,this.imod(u).redNeg()):this.imod(u)},h.prototype.pow=function(o,u){if(u.isZero())return new n(1).toRed(this);if(u.cmpn(1)===0)return o.clone();var d=4,v=new Array(1<<d);v[0]=new n(1).toRed(this),v[1]=o;for(var p=2;p<v.length;p++)v[p]=this.mul(v[p-1],o);var f=v[0],m=0,_=0,l=u.bitLength()%26;for(l===0&&(l=26),p=u.length-1;p>=0;p--){for(var x=u.words[p],I=l-1;I>=0;I--){var D=x>>I&1;if(f!==v[0]&&(f=this.sqr(f)),D===0&&m===0){_=0;continue}m<<=1,m|=D,_++,!(_!==d&&(p!==0||I!==0))&&(f=this.mul(f,v[m]),_=0,m=0)}l=26}return f},h.prototype.convertTo=function(o){var u=o.umod(this.m);return u===o?u.clone():u},h.prototype.convertFrom=function(o){var u=o.clone();return u.red=null,u},n.mont=function(o){return new g(o)};function g(c){h.call(this,c),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new n(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)}i(g,h),g.prototype.convertTo=function(o){return this.imod(o.ushln(this.shift))},g.prototype.convertFrom=function(o){var u=this.imod(o.mul(this.rinv));return u.red=null,u},g.prototype.imul=function(o,u){if(o.isZero()||u.isZero())return o.words[0]=0,o.length=1,o;var d=o.imul(u),v=d.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),p=d.isub(v).iushrn(this.shift),f=p;return p.cmp(this.m)>=0?f=p.isub(this.m):p.cmpn(0)<0&&(f=p.iadd(this.m)),f._forceRed(this)},g.prototype.mul=function(o,u){if(o.isZero()||u.isZero())return new n(0)._forceRed(this);var d=o.mul(u),v=d.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),p=d.isub(v).iushrn(this.shift),f=p;return p.cmp(this.m)>=0?f=p.isub(this.m):p.cmpn(0)<0&&(f=p.iadd(this.m)),f._forceRed(this)},g.prototype.invm=function(o){var u=this.imod(o._invmp(this.m).mul(this.r2));return u._forceRed(this)}})(typeof ah>"u"||ah,J1)});var fh=B((F9,rg)=>{"use strict";b();var Yi=Q1(),RM=Ur(),qM=Me().Buffer;function eg(t){var e=t.modulus.byteLength(),r;do r=new Yi(RM(e));while(r.cmp(t.modulus)>=0||!r.umod(t.prime1)||!r.umod(t.prime2));return r}function TM(t){var e=eg(t),r=e.toRed(Yi.mont(t.modulus)).redPow(new Yi(t.publicExponent)).fromRed();return{blinder:r,unblinder:e.invm(t.modulus)}}function tg(t,e){var r=TM(e),i=e.modulus.byteLength(),n=new Yi(t).mul(r.blinder).umod(e.modulus),a=n.toRed(Yi.mont(e.prime1)),s=n.toRed(Yi.mont(e.prime2)),y=e.coefficient,w=e.prime1,S=e.prime2,A=a.redPow(e.exponent1).fromRed(),q=s.redPow(e.exponent2).fromRed(),k=A.isub(q).imul(y).umod(w).imul(S);return q.iadd(k).imul(r.unblinder).umod(e.modulus).toArrayLike(qM,"be",i)}tg.getr=eg;rg.exports=tg});var ag=B((H9,og)=>{b();var kM=th(),sh=Ur(),IM=Yn(),ig=ih(),ng=nh(),uh=vr(),CM=oh(),OM=fh(),qt=Me().Buffer;og.exports=function(e,r,i){var n;e.padding?n=e.padding:i?n=1:n=4;var a=kM(e),s;if(n===4)s=DM(a,r);else if(n===1)s=PM(a,r,i);else if(n===3){if(s=new uh(r),s.cmp(a.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return i?OM(s,a):CM(s,a)};function DM(t,e){var r=t.modulus.byteLength(),i=e.length,n=IM("sha1").update(qt.alloc(0)).digest(),a=n.length,s=2*a;if(i>r-s-2)throw new Error("message too long");var y=qt.alloc(r-i-s-2),w=r-a-1,S=sh(a),A=ng(qt.concat([n,y,qt.alloc(1,1),e],w),ig(S,w)),q=ng(S,ig(A,a));return new uh(qt.concat([qt.alloc(1),q,A],r))}function PM(t,e,r){var i=e.length,n=t.modulus.byteLength();if(i>n-11)throw new Error("message too long");var a;return r?a=qt.alloc(n-i-3,255):a=UM(n-i-3),new uh(qt.concat([qt.from([0,r?1:2]),a,qt.alloc(1),e],n))}function UM(t){for(var e=qt.allocUnsafe(t),r=0,i=sh(t*2),n=0,a;r<t;)n===i.length&&(i=sh(t*2),n=0),a=i[n++],a&&(e[r++]=a);return e}});var lg=B((W9,hg)=>{b();var LM=th(),fg=ih(),sg=nh(),ug=vr(),NM=fh(),FM=Yn(),jM=oh(),so=Me().Buffer;hg.exports=function(e,r,i){var n;e.padding?n=e.padding:i?n=1:n=4;var a=LM(e),s=a.modulus.byteLength();if(r.length>s||new ug(r).cmp(a.modulus)>=0)throw new Error("decryption error");var y;i?y=jM(new ug(r),a):y=NM(r,a);var w=so.alloc(s-y.length);if(y=so.concat([w,y],s),n===4)return HM(a,y);if(n===1)return KM(a,y,i);if(n===3)return y;throw new Error("unknown padding")};function HM(t,e){var r=t.modulus.byteLength(),i=FM("sha1").update(so.alloc(0)).digest(),n=i.length;if(e[0]!==0)throw new Error("decryption error");var a=e.slice(1,n+1),s=e.slice(n+1),y=sg(a,fg(s,n)),w=sg(s,fg(y,r-n-1));if(WM(i,w.slice(0,n)))throw new Error("decryption error");for(var S=n;w[S]===0;)S++;if(w[S++]!==1)throw new Error("decryption error");return w.slice(S)}function KM(t,e,r){for(var i=e.slice(0,2),n=2,a=0;e[n++]!==0;)if(n>=e.length){a++;break}var s=e.slice(2,n-1);if((i.toString("hex")!=="0002"&&!r||i.toString("hex")!=="0001"&&r)&&a++,s.length<8&&a++,a)throw new Error("decryption error");return e.slice(n)}function WM(t,e){t=so.from(t),e=so.from(e);var r=0,i=t.length;t.length!==e.length&&(r++,i=Math.min(t.length,e.length));for(var n=-1;++n<i;)r+=t[n]^e[n];return r}});var cg=B(ui=>{b();ui.publicEncrypt=ag();ui.privateDecrypt=lg();ui.privateEncrypt=function(e,r){return ui.publicEncrypt(e,r,!0)};ui.publicDecrypt=function(e,r){return ui.privateDecrypt(e,r,!0)}});var xg=B(uo=>{"use strict";b();function dg(){throw new Error(`secure random number generation not supported by this browser
|
|
15
|
+
use chrome, FireFox or Internet Explorer 11`)}var vg=Me(),pg=Ur(),yg=vg.Buffer,gg=vg.kMaxLength,hh=globalThis.crypto||globalThis.msCrypto,mg=Math.pow(2,32)-1;function bg(t,e){if(typeof t!="number"||t!==t)throw new TypeError("offset must be a number");if(t>mg||t<0)throw new TypeError("offset must be a uint32");if(t>gg||t>e)throw new RangeError("offset out of range")}function wg(t,e,r){if(typeof t!="number"||t!==t)throw new TypeError("size must be a number");if(t>mg||t<0)throw new TypeError("size must be a uint32");if(t+e>r||t>gg)throw new RangeError("buffer too small")}hh&&hh.getRandomValues||!M.default.browser?(uo.randomFill=$M,uo.randomFillSync=GM):(uo.randomFill=dg,uo.randomFillSync=dg);function $M(t,e,r,i){if(!yg.isBuffer(t)&&!(t instanceof globalThis.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof e=="function")i=e,e=0,r=t.length;else if(typeof r=="function")i=r,r=t.length-e;else if(typeof i!="function")throw new TypeError('"cb" argument must be a function');return bg(e,t.length),wg(r,e,t.length),_g(t,e,r,i)}function _g(t,e,r,i){if(M.default.browser){var n=t.buffer,a=new Uint8Array(n,e,r);if(hh.getRandomValues(a),i){M.default.nextTick(function(){i(null,t)});return}return t}if(i){pg(r,function(y,w){if(y)return i(y);w.copy(t,e),i(null,t)});return}var s=pg(r);return s.copy(t,e),t}function GM(t,e,r){if(typeof e>"u"&&(e=0),!yg.isBuffer(t)&&!(t instanceof globalThis.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return bg(e,t.length),r===void 0&&(r=t.length-e),wg(r,e,t.length),_g(t,e,r)}});var Iu=B(Ee=>{"use strict";b();Ee.randomBytes=Ee.rng=Ee.pseudoRandomBytes=Ee.prng=Ur();Ee.createHash=Ee.Hash=Yn();Ee.createHmac=Ee.Hmac=mv();var VM=Ia(),zM=Object.keys(VM),ZM=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(zM);Ee.getHashes=function(){return ZM};var Mg=uu();Ee.pbkdf2=Mg.pbkdf2;Ee.pbkdf2Sync=Mg.pbkdf2Sync;var jt=Ky();Ee.Cipher=jt.Cipher;Ee.createCipher=jt.createCipher;Ee.Cipheriv=jt.Cipheriv;Ee.createCipheriv=jt.createCipheriv;Ee.Decipher=jt.Decipher;Ee.createDecipher=jt.createDecipher;Ee.Decipheriv=jt.Decipheriv;Ee.createDecipheriv=jt.createDecipheriv;Ee.getCiphers=jt.getCiphers;Ee.listCiphers=jt.listCiphers;var ho=i1();Ee.DiffieHellmanGroup=ho.DiffieHellmanGroup;Ee.createDiffieHellmanGroup=ho.createDiffieHellmanGroup;Ee.getDiffieHellman=ho.getDiffieHellman;Ee.createDiffieHellman=ho.createDiffieHellman;Ee.DiffieHellman=ho.DiffieHellman;var tf=Ia();Ee.createSign=tf.createSign;Ee.Sign=tf.Sign;Ee.createVerify=tf.createVerify;Ee.Verify=tf.Verify;Ee.createECDH=Ia();var rf=cg();Ee.publicEncrypt=rf.publicEncrypt;Ee.privateEncrypt=rf.privateEncrypt;Ee.publicDecrypt=rf.publicDecrypt;Ee.privateDecrypt=rf.privateDecrypt;var Eg=xg();Ee.randomFill=Eg.randomFill;Ee.randomFillSync=Eg.randomFillSync;Ee.createCredentials=function(){throw new Error(`sorry, createCredentials is not implemented yet
|
|
16
16
|
we accept pull requests
|
|
17
|
-
https://github.com/browserify/crypto-browserify`)};
|
|
17
|
+
https://github.com/browserify/crypto-browserify`)};Ee.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}});var Ag=B((J9,Bg)=>{"use strict";b();var YM=Iu();function Sg(t){var e;if(typeof t=="string")e=R.Buffer.from(t,"utf8");else if(R.Buffer.isBuffer(t))e=t;else if(t instanceof Uint8Array)e=R.Buffer.from(t);else throw new Error("Data must be string, Buffer, or Uint8Array");return YM.createHash("sha256").update(e).digest("hex")}function XM(t){if(!t.kind||!t.hash||!t.issuerDid)throw new Error("kind, hash, and issuerDid are required");var e=["VC_ANCHOR_SHA256","STATUSLIST_SHA256","PRESENTATION_SHA256"];if(e.indexOf(t.kind)===-1)throw new Error("Invalid kind. Must be one of: "+e.join(", "));if(!/^[a-fA-F0-9]{64}$/.test(t.hash))throw new Error("Invalid hash format. Must be 64 hex characters");var r={protocol:"SmartLedger",version:"1.0",type:t.kind,hash:t.hash,issuer:t.issuerDid,timestamp:t.issuedAt||new Date().toISOString()};return{json:JSON.stringify(r)}}function JM(t,e){var r=Sg(t);return r===e}function QM(t){try{var e=JSON.parse(t);if(e.protocol!=="SmartLedger")return{valid:!1,error:"Invalid protocol"};var r=["VC_ANCHOR_SHA256","STATUSLIST_SHA256","PRESENTATION_SHA256"];return r.indexOf(e.type)===-1?{valid:!1,error:"Invalid anchor type"}:/^[a-fA-F0-9]{64}$/.test(e.hash)?{valid:!0,protocol:e.protocol,version:e.version,type:e.type,hash:e.hash,issuer:e.issuer,timestamp:e.timestamp}:{valid:!1,error:"Invalid hash format"}}catch(i){return{valid:!1,error:"Failed to parse anchor payload: "+i.message}}}Bg.exports={sha256Hex:Sg,buildAnchorPayload:XM,verifyAnchorHash:JM,parseAnchorPayload:QM}});var eE=B((eR,Rg)=>{b();Rg.exports=Ag()});return eE();})();
|
|
18
18
|
if(typeof module!=="undefined"&&module.exports){module.exports=bsvAnchor}else if(typeof define==="function"&&define.amd){define([],function(){return bsvAnchor})}
|