@swapkit/wallet-keystore 1.3.1 → 1.3.3

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/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- var X7=Object.create;var{getPrototypeOf:K7,defineProperty:b9,getOwnPropertyNames:Y7}=Object;var J7=Object.prototype.hasOwnProperty;var B5=(l,g,E)=>{E=l!=null?X7(K7(l)):{};let A=g||!l||!l.__esModule?b9(E,"default",{value:l,enumerable:!0}):E;for(let j of Y7(l))if(!J7.call(A,j))b9(A,j,{get:()=>l[j],enumerable:!0});return A};var R5=((l)=>typeof require!=="undefined"?require:typeof Proxy!=="undefined"?new Proxy(l,{get:(g,E)=>(typeof require!=="undefined"?require:g)[E]}):l)(function(l){if(typeof require!=="undefined")return require.apply(this,arguments);throw Error('Dynamic require of "'+l+'" is not supported')});var{create:Q7,defineProperty:r5,getOwnPropertyDescriptor:F7,getOwnPropertyNames:H7,getPrototypeOf:C7}=Object,G7=Object.prototype.hasOwnProperty,W9=(l,g)=>()=>(l&&(g=l(l=0)),g),C0=(l,g)=>()=>(g||l((g={exports:{}}).exports,g),g.exports),i5=(l,g)=>{for(var E in g)r5(l,E,{get:g[E],enumerable:!0})},a5=(l,g,E,A)=>{if(g&&typeof g=="object"||typeof g=="function")for(let j of H7(g))!G7.call(l,j)&&j!==E&&r5(l,j,{get:()=>g[j],enumerable:!(A=F7(g,j))||A.enumerable});return l},Z9=(l,g,E)=>(a5(l,g,"default"),E&&a5(E,g,"default")),E5=(l,g,E)=>(E=l!=null?Q7(C7(l)):{},a5(g||!l||!l.__esModule?r5(E,"default",{value:l,enumerable:!0}):E,l)),z5=(l)=>a5(r5({},"__esModule",{value:!0}),l),W7=C0((l)=>{l.byteLength=k,l.toByteArray=V,l.fromByteArray=D;var g=[],E=[],A=typeof Uint8Array<"u"?Uint8Array:Array,j="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(S=0,H=j.length;S<H;++S)g[S]=j[S],E[j.charCodeAt(S)]=S;var S,H;E["-".charCodeAt(0)]=62,E["_".charCodeAt(0)]=63;function P(U){var N=U.length;if(N%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var I=U.indexOf("=");I===-1&&(I=N);var M=I===N?0:4-I%4;return[I,M]}function k(U){var N=P(U),I=N[0],M=N[1];return(I+M)*3/4-M}function z(U,N,I){return(N+I)*3/4-I}function V(U){var N,I=P(U),M=I[0],x=I[1],v=new A(z(U,M,x)),y=0,p=x>0?M-4:M,c;for(c=0;c<p;c+=4)N=E[U.charCodeAt(c)]<<18|E[U.charCodeAt(c+1)]<<12|E[U.charCodeAt(c+2)]<<6|E[U.charCodeAt(c+3)],v[y++]=N>>16&255,v[y++]=N>>8&255,v[y++]=N&255;return x===2&&(N=E[U.charCodeAt(c)]<<2|E[U.charCodeAt(c+1)]>>4,v[y++]=N&255),x===1&&(N=E[U.charCodeAt(c)]<<10|E[U.charCodeAt(c+1)]<<4|E[U.charCodeAt(c+2)]>>2,v[y++]=N>>8&255,v[y++]=N&255),v}function $(U){return g[U>>18&63]+g[U>>12&63]+g[U>>6&63]+g[U&63]}function T(U,N,I){for(var M,x=[],v=N;v<I;v+=3)M=(U[v]<<16&16711680)+(U[v+1]<<8&65280)+(U[v+2]&255),x.push($(M));return x.join("")}function D(U){for(var N,I=U.length,M=I%3,x=[],v=16383,y=0,p=I-M;y<p;y+=v)x.push(T(U,y,y+v>p?p:y+v));return M===1?(N=U[I-1],x.push(g[N>>2]+g[N<<4&63]+"==")):M===2&&(N=(U[I-2]<<8)+U[I-1],x.push(g[N>>10]+g[N>>4&63]+g[N<<2&63]+"=")),x.join("")}}),Z7=C0((l)=>{l.read=function(g,E,A,j,S){var H,P,k=S*8-j-1,z=(1<<k)-1,V=z>>1,$=-7,T=A?S-1:0,D=A?-1:1,U=g[E+T];for(T+=D,H=U&(1<<-$)-1,U>>=-$,$+=k;$>0;H=H*256+g[E+T],T+=D,$-=8);for(P=H&(1<<-$)-1,H>>=-$,$+=j;$>0;P=P*256+g[E+T],T+=D,$-=8);if(H===0)H=1-V;else{if(H===z)return P?NaN:(U?-1:1)*(1/0);P=P+Math.pow(2,j),H=H-V}return(U?-1:1)*P*Math.pow(2,H-j)},l.write=function(g,E,A,j,S,H){var P,k,z,V=H*8-S-1,$=(1<<V)-1,T=$>>1,D=S===23?Math.pow(2,-24)-Math.pow(2,-77):0,U=j?0:H-1,N=j?1:-1,I=E<0||E===0&&1/E<0?1:0;for(E=Math.abs(E),isNaN(E)||E===1/0?(k=isNaN(E)?1:0,P=$):(P=Math.floor(Math.log(E)/Math.LN2),E*(z=Math.pow(2,-P))<1&&(P--,z*=2),P+T>=1?E+=D/z:E+=D*Math.pow(2,1-T),E*z>=2&&(P++,z/=2),P+T>=$?(k=0,P=$):P+T>=1?(k=(E*z-1)*Math.pow(2,S),P=P+T):(k=E*Math.pow(2,T-1)*Math.pow(2,S),P=0));S>=8;g[A+U]=k&255,U+=N,k/=256,S-=8);for(P=P<<S|k,V+=S;V>0;g[A+U]=P&255,U+=N,P/=256,V-=8);g[A+U-N]|=I*128}}),U5=C0((l)=>{var g=W7(),E=Z7(),A=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;l.Buffer=P,l.SlowBuffer=x,l.INSPECT_MAX_BYTES=50;var j=2147483647;l.kMaxLength=j,P.TYPED_ARRAY_SUPPORT=S(),!P.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 S(){try{let O=new Uint8Array(1),B={foo:function(){return 42}};return Object.setPrototypeOf(B,Uint8Array.prototype),Object.setPrototypeOf(O,B),O.foo()===42}catch{return!1}}Object.defineProperty(P.prototype,"parent",{enumerable:!0,get:function(){if(P.isBuffer(this))return this.buffer}}),Object.defineProperty(P.prototype,"offset",{enumerable:!0,get:function(){if(P.isBuffer(this))return this.byteOffset}});function H(O){if(O>j)throw new RangeError('The value "'+O+'" is invalid for option "size"');let B=new Uint8Array(O);return Object.setPrototypeOf(B,P.prototype),B}function P(O,B,b){if(typeof O=="number"){if(typeof B=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return $(O)}return k(O,B,b)}P.poolSize=8192;function k(O,B,b){if(typeof O=="string")return T(O,B);if(ArrayBuffer.isView(O))return U(O);if(O==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof O);if(G0(O,ArrayBuffer)||O&&G0(O.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(G0(O,SharedArrayBuffer)||O&&G0(O.buffer,SharedArrayBuffer)))return N(O,B,b);if(typeof O=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let h=O.valueOf&&O.valueOf();if(h!=null&&h!==O)return P.from(h,B,b);let o=I(O);if(o)return o;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof O[Symbol.toPrimitive]=="function")return P.from(O[Symbol.toPrimitive]("string"),B,b);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof O)}P.from=function(O,B,b){return k(O,B,b)},Object.setPrototypeOf(P.prototype,Uint8Array.prototype),Object.setPrototypeOf(P,Uint8Array);function z(O){if(typeof O!="number")throw new TypeError('"size" argument must be of type number');if(O<0)throw new RangeError('The value "'+O+'" is invalid for option "size"')}function V(O,B,b){return z(O),O<=0?H(O):B!==void 0?typeof b=="string"?H(O).fill(B,b):H(O).fill(B):H(O)}P.alloc=function(O,B,b){return V(O,B,b)};function $(O){return z(O),H(O<0?0:M(O)|0)}P.allocUnsafe=function(O){return $(O)},P.allocUnsafeSlow=function(O){return $(O)};function T(O,B){if((typeof B!="string"||B==="")&&(B="utf8"),!P.isEncoding(B))throw new TypeError("Unknown encoding: "+B);let b=v(O,B)|0,h=H(b),o=h.write(O,B);return o!==b&&(h=h.slice(0,o)),h}function D(O){let B=O.length<0?0:M(O.length)|0,b=H(B);for(let h=0;h<B;h+=1)b[h]=O[h]&255;return b}function U(O){if(G0(O,Uint8Array)){let B=new Uint8Array(O);return N(B.buffer,B.byteOffset,B.byteLength)}return D(O)}function N(O,B,b){if(B<0||O.byteLength<B)throw new RangeError('"offset" is outside of buffer bounds');if(O.byteLength<B+(b||0))throw new RangeError('"length" is outside of buffer bounds');let h;return B===void 0&&b===void 0?h=new Uint8Array(O):b===void 0?h=new Uint8Array(O,B):h=new Uint8Array(O,B,b),Object.setPrototypeOf(h,P.prototype),h}function I(O){if(P.isBuffer(O)){let B=M(O.length)|0,b=H(B);return b.length===0||O.copy(b,0,0,B),b}if(O.length!==void 0)return typeof O.length!="number"||w0(O.length)?H(0):D(O);if(O.type==="Buffer"&&Array.isArray(O.data))return D(O.data)}function M(O){if(O>=j)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+j.toString(16)+" bytes");return O|0}function x(O){return+O!=O&&(O=0),P.alloc(+O)}P.isBuffer=function(O){return O!=null&&O._isBuffer===!0&&O!==P.prototype},P.compare=function(O,B){if(G0(O,Uint8Array)&&(O=P.from(O,O.offset,O.byteLength)),G0(B,Uint8Array)&&(B=P.from(B,B.offset,B.byteLength)),!P.isBuffer(O)||!P.isBuffer(B))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(O===B)return 0;let b=O.length,h=B.length;for(let o=0,z0=Math.min(b,h);o<z0;++o)if(O[o]!==B[o]){b=O[o],h=B[o];break}return b<h?-1:h<b?1:0},P.isEncoding=function(O){switch(String(O).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}},P.concat=function(O,B){if(!Array.isArray(O))throw new TypeError('"list" argument must be an Array of Buffers');if(O.length===0)return P.alloc(0);let b;if(B===void 0)for(B=0,b=0;b<O.length;++b)B+=O[b].length;let h=P.allocUnsafe(B),o=0;for(b=0;b<O.length;++b){let z0=O[b];if(G0(z0,Uint8Array))o+z0.length>h.length?(P.isBuffer(z0)||(z0=P.from(z0)),z0.copy(h,o)):Uint8Array.prototype.set.call(h,z0,o);else if(P.isBuffer(z0))z0.copy(h,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=z0.length}return h};function v(O,B){if(P.isBuffer(O))return O.length;if(ArrayBuffer.isView(O)||G0(O,ArrayBuffer))return O.byteLength;if(typeof O!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof O);let b=O.length,h=arguments.length>2&&arguments[2]===!0;if(!h&&b===0)return 0;let o=!1;for(;;)switch(B){case"ascii":case"latin1":case"binary":return b;case"utf8":case"utf-8":return e(O).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return b*2;case"hex":return b>>>1;case"base64":return _0(O).length;default:if(o)return h?-1:e(O).length;B=(""+B).toLowerCase(),o=!0}}P.byteLength=v;function y(O,B,b){let h=!1;if((B===void 0||B<0)&&(B=0),B>this.length||((b===void 0||b>this.length)&&(b=this.length),b<=0)||(b>>>=0,B>>>=0,b<=B))return"";for(O||(O="utf8");;)switch(O){case"hex":return C(this,B,b);case"utf8":case"utf-8":return Q(this,B,b);case"ascii":return W(this,B,b);case"latin1":case"binary":return Z(this,B,b);case"base64":return Y(this,B,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,B,b);default:if(h)throw new TypeError("Unknown encoding: "+O);O=(O+"").toLowerCase(),h=!0}}P.prototype._isBuffer=!0;function p(O,B,b){let h=O[B];O[B]=O[b],O[b]=h}P.prototype.swap16=function(){let O=this.length;if(O%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let B=0;B<O;B+=2)p(this,B,B+1);return this},P.prototype.swap32=function(){let O=this.length;if(O%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let B=0;B<O;B+=4)p(this,B,B+3),p(this,B+1,B+2);return this},P.prototype.swap64=function(){let O=this.length;if(O%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let B=0;B<O;B+=8)p(this,B,B+7),p(this,B+1,B+6),p(this,B+2,B+5),p(this,B+3,B+4);return this},P.prototype.toString=function(){let O=this.length;return O===0?"":arguments.length===0?Q(this,0,O):y.apply(this,arguments)},P.prototype.toLocaleString=P.prototype.toString,P.prototype.equals=function(O){if(!P.isBuffer(O))throw new TypeError("Argument must be a Buffer");return this===O?!0:P.compare(this,O)===0},P.prototype.inspect=function(){let O="",B=l.INSPECT_MAX_BYTES;return O=this.toString("hex",0,B).replace(/(.{2})/g,"$1 ").trim(),this.length>B&&(O+=" ... "),"<Buffer "+O+">"},A&&(P.prototype[A]=P.prototype.inspect),P.prototype.compare=function(O,B,b,h,o){if(G0(O,Uint8Array)&&(O=P.from(O,O.offset,O.byteLength)),!P.isBuffer(O))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof O);if(B===void 0&&(B=0),b===void 0&&(b=O?O.length:0),h===void 0&&(h=0),o===void 0&&(o=this.length),B<0||b>O.length||h<0||o>this.length)throw new RangeError("out of range index");if(h>=o&&B>=b)return 0;if(h>=o)return-1;if(B>=b)return 1;if(B>>>=0,b>>>=0,h>>>=0,o>>>=0,this===O)return 0;let z0=o-h,J0=b-B,$0=Math.min(z0,J0),b0=this.slice(h,o),P0=O.slice(B,b);for(let j0=0;j0<$0;++j0)if(b0[j0]!==P0[j0]){z0=b0[j0],J0=P0[j0];break}return z0<J0?-1:J0<z0?1:0};function c(O,B,b,h,o){if(O.length===0)return-1;if(typeof b=="string"?(h=b,b=0):b>2147483647?b=2147483647:b<-2147483648&&(b=-2147483648),b=+b,w0(b)&&(b=o?0:O.length-1),b<0&&(b=O.length+b),b>=O.length){if(o)return-1;b=O.length-1}else if(b<0)if(o)b=0;else return-1;if(typeof B=="string"&&(B=P.from(B,h)),P.isBuffer(B))return B.length===0?-1:n(O,B,b,h,o);if(typeof B=="number")return B=B&255,typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(O,B,b):Uint8Array.prototype.lastIndexOf.call(O,B,b):n(O,[B],b,h,o);throw new TypeError("val must be string, number or Buffer")}function n(O,B,b,h,o){let z0=1,J0=O.length,$0=B.length;if(h!==void 0&&(h=String(h).toLowerCase(),h==="ucs2"||h==="ucs-2"||h==="utf16le"||h==="utf-16le")){if(O.length<2||B.length<2)return-1;z0=2,J0/=2,$0/=2,b/=2}function b0(j0,y0){return z0===1?j0[y0]:j0.readUInt16BE(y0*z0)}let P0;if(o){let j0=-1;for(P0=b;P0<J0;P0++)if(b0(O,P0)===b0(B,j0===-1?0:P0-j0)){if(j0===-1&&(j0=P0),P0-j0+1===$0)return j0*z0}else j0!==-1&&(P0-=P0-j0),j0=-1}else for(b+$0>J0&&(b=J0-$0),P0=b;P0>=0;P0--){let j0=!0;for(let y0=0;y0<$0;y0++)if(b0(O,P0+y0)!==b0(B,y0)){j0=!1;break}if(j0)return P0}return-1}P.prototype.includes=function(O,B,b){return this.indexOf(O,B,b)!==-1},P.prototype.indexOf=function(O,B,b){return c(this,O,B,b,!0)},P.prototype.lastIndexOf=function(O,B,b){return c(this,O,B,b,!1)};function i(O,B,b,h){b=Number(b)||0;let o=O.length-b;h?(h=Number(h),h>o&&(h=o)):h=o;let z0=B.length;h>z0/2&&(h=z0/2);let J0;for(J0=0;J0<h;++J0){let $0=parseInt(B.substr(J0*2,2),16);if(w0($0))return J0;O[b+J0]=$0}return J0}function Q0(O,B,b,h){return H0(e(B,O.length-b),O,b,h)}function f(O,B,b,h){return H0(K0(B),O,b,h)}function W0(O,B,b,h){return H0(_0(B),O,b,h)}function X(O,B,b,h){return H0(t(B,O.length-b),O,b,h)}P.prototype.write=function(O,B,b,h){if(B===void 0)h="utf8",b=this.length,B=0;else if(b===void 0&&typeof B=="string")h=B,b=this.length,B=0;else if(isFinite(B))B=B>>>0,isFinite(b)?(b=b>>>0,h===void 0&&(h="utf8")):(h=b,b=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let o=this.length-B;if((b===void 0||b>o)&&(b=o),O.length>0&&(b<0||B<0)||B>this.length)throw new RangeError("Attempt to write outside buffer bounds");h||(h="utf8");let z0=!1;for(;;)switch(h){case"hex":return i(this,O,B,b);case"utf8":case"utf-8":return Q0(this,O,B,b);case"ascii":case"latin1":case"binary":return f(this,O,B,b);case"base64":return W0(this,O,B,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return X(this,O,B,b);default:if(z0)throw new TypeError("Unknown encoding: "+h);h=(""+h).toLowerCase(),z0=!0}},P.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Y(O,B,b){return B===0&&b===O.length?g.fromByteArray(O):g.fromByteArray(O.slice(B,b))}function Q(O,B,b){b=Math.min(O.length,b);let h=[],o=B;for(;o<b;){let z0=O[o],J0=null,$0=z0>239?4:z0>223?3:z0>191?2:1;if(o+$0<=b){let b0,P0,j0,y0;switch($0){case 1:z0<128&&(J0=z0);break;case 2:b0=O[o+1],(b0&192)===128&&(y0=(z0&31)<<6|b0&63,y0>127&&(J0=y0));break;case 3:b0=O[o+1],P0=O[o+2],(b0&192)===128&&(P0&192)===128&&(y0=(z0&15)<<12|(b0&63)<<6|P0&63,y0>2047&&(y0<55296||y0>57343)&&(J0=y0));break;case 4:b0=O[o+1],P0=O[o+2],j0=O[o+3],(b0&192)===128&&(P0&192)===128&&(j0&192)===128&&(y0=(z0&15)<<18|(b0&63)<<12|(P0&63)<<6|j0&63,y0>65535&&y0<1114112&&(J0=y0))}}J0===null?(J0=65533,$0=1):J0>65535&&(J0-=65536,h.push(J0>>>10&1023|55296),J0=56320|J0&1023),h.push(J0),o+=$0}return F(h)}var J=4096;function F(O){let B=O.length;if(B<=J)return String.fromCharCode.apply(String,O);let b="",h=0;for(;h<B;)b+=String.fromCharCode.apply(String,O.slice(h,h+=J));return b}function W(O,B,b){let h="";b=Math.min(O.length,b);for(let o=B;o<b;++o)h+=String.fromCharCode(O[o]&127);return h}function Z(O,B,b){let h="";b=Math.min(O.length,b);for(let o=B;o<b;++o)h+=String.fromCharCode(O[o]);return h}function C(O,B,b){let h=O.length;(!B||B<0)&&(B=0),(!b||b<0||b>h)&&(b=h);let o="";for(let z0=B;z0<b;++z0)o+=U0[O[z0]];return o}function K(O,B,b){let h=O.slice(B,b),o="";for(let z0=0;z0<h.length-1;z0+=2)o+=String.fromCharCode(h[z0]+h[z0+1]*256);return o}P.prototype.slice=function(O,B){let b=this.length;O=~~O,B=B===void 0?b:~~B,O<0?(O+=b,O<0&&(O=0)):O>b&&(O=b),B<0?(B+=b,B<0&&(B=0)):B>b&&(B=b),B<O&&(B=O);let h=this.subarray(O,B);return Object.setPrototypeOf(h,P.prototype),h};function G(O,B,b){if(O%1!==0||O<0)throw new RangeError("offset is not uint");if(O+B>b)throw new RangeError("Trying to access beyond buffer length")}P.prototype.readUintLE=P.prototype.readUIntLE=function(O,B,b){O=O>>>0,B=B>>>0,b||G(O,B,this.length);let h=this[O],o=1,z0=0;for(;++z0<B&&(o*=256);)h+=this[O+z0]*o;return h},P.prototype.readUintBE=P.prototype.readUIntBE=function(O,B,b){O=O>>>0,B=B>>>0,b||G(O,B,this.length);let h=this[O+--B],o=1;for(;B>0&&(o*=256);)h+=this[O+--B]*o;return h},P.prototype.readUint8=P.prototype.readUInt8=function(O,B){return O=O>>>0,B||G(O,1,this.length),this[O]},P.prototype.readUint16LE=P.prototype.readUInt16LE=function(O,B){return O=O>>>0,B||G(O,2,this.length),this[O]|this[O+1]<<8},P.prototype.readUint16BE=P.prototype.readUInt16BE=function(O,B){return O=O>>>0,B||G(O,2,this.length),this[O]<<8|this[O+1]},P.prototype.readUint32LE=P.prototype.readUInt32LE=function(O,B){return O=O>>>0,B||G(O,4,this.length),(this[O]|this[O+1]<<8|this[O+2]<<16)+this[O+3]*16777216},P.prototype.readUint32BE=P.prototype.readUInt32BE=function(O,B){return O=O>>>0,B||G(O,4,this.length),this[O]*16777216+(this[O+1]<<16|this[O+2]<<8|this[O+3])},P.prototype.readBigUInt64LE=Z0(function(O){O=O>>>0,F0(O,"offset");let B=this[O],b=this[O+7];(B===void 0||b===void 0)&&w(O,this.length-8);let h=B+this[++O]*256+this[++O]*65536+this[++O]*16777216,o=this[++O]+this[++O]*256+this[++O]*65536+b*16777216;return BigInt(h)+(BigInt(o)<<BigInt(32))}),P.prototype.readBigUInt64BE=Z0(function(O){O=O>>>0,F0(O,"offset");let B=this[O],b=this[O+7];(B===void 0||b===void 0)&&w(O,this.length-8);let h=B*16777216+this[++O]*65536+this[++O]*256+this[++O],o=this[++O]*16777216+this[++O]*65536+this[++O]*256+b;return(BigInt(h)<<BigInt(32))+BigInt(o)}),P.prototype.readIntLE=function(O,B,b){O=O>>>0,B=B>>>0,b||G(O,B,this.length);let h=this[O],o=1,z0=0;for(;++z0<B&&(o*=256);)h+=this[O+z0]*o;return o*=128,h>=o&&(h-=Math.pow(2,8*B)),h},P.prototype.readIntBE=function(O,B,b){O=O>>>0,B=B>>>0,b||G(O,B,this.length);let h=B,o=1,z0=this[O+--h];for(;h>0&&(o*=256);)z0+=this[O+--h]*o;return o*=128,z0>=o&&(z0-=Math.pow(2,8*B)),z0},P.prototype.readInt8=function(O,B){return O=O>>>0,B||G(O,1,this.length),this[O]&128?(255-this[O]+1)*-1:this[O]},P.prototype.readInt16LE=function(O,B){O=O>>>0,B||G(O,2,this.length);let b=this[O]|this[O+1]<<8;return b&32768?b|4294901760:b},P.prototype.readInt16BE=function(O,B){O=O>>>0,B||G(O,2,this.length);let b=this[O+1]|this[O]<<8;return b&32768?b|4294901760:b},P.prototype.readInt32LE=function(O,B){return O=O>>>0,B||G(O,4,this.length),this[O]|this[O+1]<<8|this[O+2]<<16|this[O+3]<<24},P.prototype.readInt32BE=function(O,B){return O=O>>>0,B||G(O,4,this.length),this[O]<<24|this[O+1]<<16|this[O+2]<<8|this[O+3]},P.prototype.readBigInt64LE=Z0(function(O){O=O>>>0,F0(O,"offset");let B=this[O],b=this[O+7];(B===void 0||b===void 0)&&w(O,this.length-8);let h=this[O+4]+this[O+5]*256+this[O+6]*65536+(b<<24);return(BigInt(h)<<BigInt(32))+BigInt(B+this[++O]*256+this[++O]*65536+this[++O]*16777216)}),P.prototype.readBigInt64BE=Z0(function(O){O=O>>>0,F0(O,"offset");let B=this[O],b=this[O+7];(B===void 0||b===void 0)&&w(O,this.length-8);let h=(B<<24)+this[++O]*65536+this[++O]*256+this[++O];return(BigInt(h)<<BigInt(32))+BigInt(this[++O]*16777216+this[++O]*65536+this[++O]*256+b)}),P.prototype.readFloatLE=function(O,B){return O=O>>>0,B||G(O,4,this.length),E.read(this,O,!0,23,4)},P.prototype.readFloatBE=function(O,B){return O=O>>>0,B||G(O,4,this.length),E.read(this,O,!1,23,4)},P.prototype.readDoubleLE=function(O,B){return O=O>>>0,B||G(O,8,this.length),E.read(this,O,!0,52,8)},P.prototype.readDoubleBE=function(O,B){return O=O>>>0,B||G(O,8,this.length),E.read(this,O,!1,52,8)};function R(O,B,b,h,o,z0){if(!P.isBuffer(O))throw new TypeError('"buffer" argument must be a Buffer instance');if(B>o||B<z0)throw new RangeError('"value" argument is out of bounds');if(b+h>O.length)throw new RangeError("Index out of range")}P.prototype.writeUintLE=P.prototype.writeUIntLE=function(O,B,b,h){if(O=+O,B=B>>>0,b=b>>>0,!h){let J0=Math.pow(2,8*b)-1;R(this,O,B,b,J0,0)}let o=1,z0=0;for(this[B]=O&255;++z0<b&&(o*=256);)this[B+z0]=O/o&255;return B+b},P.prototype.writeUintBE=P.prototype.writeUIntBE=function(O,B,b,h){if(O=+O,B=B>>>0,b=b>>>0,!h){let J0=Math.pow(2,8*b)-1;R(this,O,B,b,J0,0)}let o=b-1,z0=1;for(this[B+o]=O&255;--o>=0&&(z0*=256);)this[B+o]=O/z0&255;return B+b},P.prototype.writeUint8=P.prototype.writeUInt8=function(O,B,b){return O=+O,B=B>>>0,b||R(this,O,B,1,255,0),this[B]=O&255,B+1},P.prototype.writeUint16LE=P.prototype.writeUInt16LE=function(O,B,b){return O=+O,B=B>>>0,b||R(this,O,B,2,65535,0),this[B]=O&255,this[B+1]=O>>>8,B+2},P.prototype.writeUint16BE=P.prototype.writeUInt16BE=function(O,B,b){return O=+O,B=B>>>0,b||R(this,O,B,2,65535,0),this[B]=O>>>8,this[B+1]=O&255,B+2},P.prototype.writeUint32LE=P.prototype.writeUInt32LE=function(O,B,b){return O=+O,B=B>>>0,b||R(this,O,B,4,4294967295,0),this[B+3]=O>>>24,this[B+2]=O>>>16,this[B+1]=O>>>8,this[B]=O&255,B+4},P.prototype.writeUint32BE=P.prototype.writeUInt32BE=function(O,B,b){return O=+O,B=B>>>0,b||R(this,O,B,4,4294967295,0),this[B]=O>>>24,this[B+1]=O>>>16,this[B+2]=O>>>8,this[B+3]=O&255,B+4};function L(O,B,b,h,o){X0(B,h,o,O,b,7);let z0=Number(B&BigInt(4294967295));O[b++]=z0,z0=z0>>8,O[b++]=z0,z0=z0>>8,O[b++]=z0,z0=z0>>8,O[b++]=z0;let J0=Number(B>>BigInt(32)&BigInt(4294967295));return O[b++]=J0,J0=J0>>8,O[b++]=J0,J0=J0>>8,O[b++]=J0,J0=J0>>8,O[b++]=J0,b}function _(O,B,b,h,o){X0(B,h,o,O,b,7);let z0=Number(B&BigInt(4294967295));O[b+7]=z0,z0=z0>>8,O[b+6]=z0,z0=z0>>8,O[b+5]=z0,z0=z0>>8,O[b+4]=z0;let J0=Number(B>>BigInt(32)&BigInt(4294967295));return O[b+3]=J0,J0=J0>>8,O[b+2]=J0,J0=J0>>8,O[b+1]=J0,J0=J0>>8,O[b]=J0,b+8}P.prototype.writeBigUInt64LE=Z0(function(O,B=0){return L(this,O,B,BigInt(0),BigInt("0xffffffffffffffff"))}),P.prototype.writeBigUInt64BE=Z0(function(O,B=0){return _(this,O,B,BigInt(0),BigInt("0xffffffffffffffff"))}),P.prototype.writeIntLE=function(O,B,b,h){if(O=+O,B=B>>>0,!h){let $0=Math.pow(2,8*b-1);R(this,O,B,b,$0-1,-$0)}let o=0,z0=1,J0=0;for(this[B]=O&255;++o<b&&(z0*=256);)O<0&&J0===0&&this[B+o-1]!==0&&(J0=1),this[B+o]=(O/z0>>0)-J0&255;return B+b},P.prototype.writeIntBE=function(O,B,b,h){if(O=+O,B=B>>>0,!h){let $0=Math.pow(2,8*b-1);R(this,O,B,b,$0-1,-$0)}let o=b-1,z0=1,J0=0;for(this[B+o]=O&255;--o>=0&&(z0*=256);)O<0&&J0===0&&this[B+o+1]!==0&&(J0=1),this[B+o]=(O/z0>>0)-J0&255;return B+b},P.prototype.writeInt8=function(O,B,b){return O=+O,B=B>>>0,b||R(this,O,B,1,127,-128),O<0&&(O=255+O+1),this[B]=O&255,B+1},P.prototype.writeInt16LE=function(O,B,b){return O=+O,B=B>>>0,b||R(this,O,B,2,32767,-32768),this[B]=O&255,this[B+1]=O>>>8,B+2},P.prototype.writeInt16BE=function(O,B,b){return O=+O,B=B>>>0,b||R(this,O,B,2,32767,-32768),this[B]=O>>>8,this[B+1]=O&255,B+2},P.prototype.writeInt32LE=function(O,B,b){return O=+O,B=B>>>0,b||R(this,O,B,4,2147483647,-2147483648),this[B]=O&255,this[B+1]=O>>>8,this[B+2]=O>>>16,this[B+3]=O>>>24,B+4},P.prototype.writeInt32BE=function(O,B,b){return O=+O,B=B>>>0,b||R(this,O,B,4,2147483647,-2147483648),O<0&&(O=4294967295+O+1),this[B]=O>>>24,this[B+1]=O>>>16,this[B+2]=O>>>8,this[B+3]=O&255,B+4},P.prototype.writeBigInt64LE=Z0(function(O,B=0){return L(this,O,B,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),P.prototype.writeBigInt64BE=Z0(function(O,B=0){return _(this,O,B,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function s(O,B,b,h,o,z0){if(b+h>O.length)throw new RangeError("Index out of range");if(b<0)throw new RangeError("Index out of range")}function r(O,B,b,h,o){return B=+B,b=b>>>0,o||s(O,B,b,4,340282346638528860000000000000000000000,-340282346638528860000000000000000000000),E.write(O,B,b,h,23,4),b+4}P.prototype.writeFloatLE=function(O,B,b){return r(this,O,B,!0,b)},P.prototype.writeFloatBE=function(O,B,b){return r(this,O,B,!1,b)};function Y0(O,B,b,h,o){return B=+B,b=b>>>0,o||s(O,B,b,8,179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,-179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000),E.write(O,B,b,h,52,8),b+8}P.prototype.writeDoubleLE=function(O,B,b){return Y0(this,O,B,!0,b)},P.prototype.writeDoubleBE=function(O,B,b){return Y0(this,O,B,!1,b)},P.prototype.copy=function(O,B,b,h){if(!P.isBuffer(O))throw new TypeError("argument should be a Buffer");if(b||(b=0),!h&&h!==0&&(h=this.length),B>=O.length&&(B=O.length),B||(B=0),h>0&&h<b&&(h=b),h===b||O.length===0||this.length===0)return 0;if(B<0)throw new RangeError("targetStart out of bounds");if(b<0||b>=this.length)throw new RangeError("Index out of range");if(h<0)throw new RangeError("sourceEnd out of bounds");h>this.length&&(h=this.length),O.length-B<h-b&&(h=O.length-B+b);let o=h-b;return this===O&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(B,b,h):Uint8Array.prototype.set.call(O,this.subarray(b,h),B),o},P.prototype.fill=function(O,B,b,h){if(typeof O=="string"){if(typeof B=="string"?(h=B,B=0,b=this.length):typeof b=="string"&&(h=b,b=this.length),h!==void 0&&typeof h!="string")throw new TypeError("encoding must be a string");if(typeof h=="string"&&!P.isEncoding(h))throw new TypeError("Unknown encoding: "+h);if(O.length===1){let z0=O.charCodeAt(0);(h==="utf8"&&z0<128||h==="latin1")&&(O=z0)}}else typeof O=="number"?O=O&255:typeof O=="boolean"&&(O=Number(O));if(B<0||this.length<B||this.length<b)throw new RangeError("Out of range index");if(b<=B)return this;B=B>>>0,b=b===void 0?this.length:b>>>0,O||(O=0);let o;if(typeof O=="number")for(o=B;o<b;++o)this[o]=O;else{let z0=P.isBuffer(O)?O:P.from(O,h),J0=z0.length;if(J0===0)throw new TypeError('The value "'+O+'" is invalid for argument "value"');for(o=0;o<b-B;++o)this[o+B]=z0[o%J0]}return this};var u={};function d(O,B,b){u[O]=class extends b{constructor(){super(),Object.defineProperty(this,"message",{value:B.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${O}]`,this.stack,delete this.name}get code(){return O}set code(h){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:h,writable:!0})}toString(){return`${this.name} [${O}]: ${this.message}`}}}d("ERR_BUFFER_OUT_OF_BOUNDS",function(O){return O?`${O} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),d("ERR_INVALID_ARG_TYPE",function(O,B){return`The "${O}" argument must be of type number. Received type ${typeof B}`},TypeError),d("ERR_OUT_OF_RANGE",function(O,B,b){let h=`The value of "${O}" is out of range.`,o=b;return Number.isInteger(b)&&Math.abs(b)>4294967296?o=a(String(b)):typeof b=="bigint"&&(o=String(b),(b>BigInt(2)**BigInt(32)||b<-(BigInt(2)**BigInt(32)))&&(o=a(o)),o+="n"),h+=` It must be ${B}. Received ${o}`,h},RangeError);function a(O){let B="",b=O.length,h=O[0]==="-"?1:0;for(;b>=h+4;b-=3)B=`_${O.slice(b-3,b)}${B}`;return`${O.slice(0,b)}${B}`}function V0(O,B,b){F0(B,"offset"),(O[B]===void 0||O[B+b]===void 0)&&w(B,O.length-(b+1))}function X0(O,B,b,h,o,z0){if(O>b||O<B){let J0=typeof B=="bigint"?"n":"",$0;throw z0>3?B===0||B===BigInt(0)?$0=`>= 0${J0} and < 2${J0} ** ${(z0+1)*8}${J0}`:$0=`>= -(2${J0} ** ${(z0+1)*8-1}${J0}) and < 2 ** ${(z0+1)*8-1}${J0}`:$0=`>= ${B}${J0} and <= ${b}${J0}`,new u.ERR_OUT_OF_RANGE("value",$0,O)}V0(h,o,z0)}function F0(O,B){if(typeof O!="number")throw new u.ERR_INVALID_ARG_TYPE(B,"number",O)}function w(O,B,b){throw Math.floor(O)!==O?(F0(O,b),new u.ERR_OUT_OF_RANGE(b||"offset","an integer",O)):B<0?new u.ERR_BUFFER_OUT_OF_BOUNDS:new u.ERR_OUT_OF_RANGE(b||"offset",`>= ${b?1:0} and <= ${B}`,O)}var q=/[^+/0-9A-Za-z-_]/g;function m(O){if(O=O.split("=")[0],O=O.trim().replace(q,""),O.length<2)return"";for(;O.length%4!==0;)O=O+"=";return O}function e(O,B){B=B||1/0;let b,h=O.length,o=null,z0=[];for(let J0=0;J0<h;++J0){if(b=O.charCodeAt(J0),b>55295&&b<57344){if(!o){if(b>56319){(B-=3)>-1&&z0.push(239,191,189);continue}else if(J0+1===h){(B-=3)>-1&&z0.push(239,191,189);continue}o=b;continue}if(b<56320){(B-=3)>-1&&z0.push(239,191,189),o=b;continue}b=(o-55296<<10|b-56320)+65536}else o&&(B-=3)>-1&&z0.push(239,191,189);if(o=null,b<128){if((B-=1)<0)break;z0.push(b)}else if(b<2048){if((B-=2)<0)break;z0.push(b>>6|192,b&63|128)}else if(b<65536){if((B-=3)<0)break;z0.push(b>>12|224,b>>6&63|128,b&63|128)}else if(b<1114112){if((B-=4)<0)break;z0.push(b>>18|240,b>>12&63|128,b>>6&63|128,b&63|128)}else throw new Error("Invalid code point")}return z0}function K0(O){let B=[];for(let b=0;b<O.length;++b)B.push(O.charCodeAt(b)&255);return B}function t(O,B){let b,h,o,z0=[];for(let J0=0;J0<O.length&&!((B-=2)<0);++J0)b=O.charCodeAt(J0),h=b>>8,o=b%256,z0.push(o),z0.push(h);return z0}function _0(O){return g.toByteArray(m(O))}function H0(O,B,b,h){let o;for(o=0;o<h&&!(o+b>=B.length||o>=O.length);++o)B[o+b]=O[o];return o}function G0(O,B){return O instanceof B||O!=null&&O.constructor!=null&&O.constructor.name!=null&&O.constructor.name===B.name}function w0(O){return O!==O}var U0=function(){let O="0123456789abcdef",B=new Array(256);for(let b=0;b<16;++b){let h=b*16;for(let o=0;o<16;++o)B[h+o]=O[b]+O[o]}return B}();function Z0(O){return typeof BigInt>"u"?c0:O}function c0(){throw new Error("BigInt not supported")}}),d0=C0((l,g)=>{var E=U5(),A=E.Buffer;function j(H,P){for(var k in H)P[k]=H[k]}A.from&&A.alloc&&A.allocUnsafe&&A.allocUnsafeSlow?g.exports=E:(j(E,l),l.Buffer=S);function S(H,P,k){return A(H,P,k)}S.prototype=Object.create(A.prototype),j(A,S),S.from=function(H,P,k){if(typeof H=="number")throw new TypeError("Argument must not be a number");return A(H,P,k)},S.alloc=function(H,P,k){if(typeof H!="number")throw new TypeError("Argument must be a number");var z=A(H);return P!==void 0?typeof k=="string"?z.fill(P,k):z.fill(P):z.fill(0),z},S.allocUnsafe=function(H){if(typeof H!="number")throw new TypeError("Argument must be a number");return A(H)},S.allocUnsafeSlow=function(H){if(typeof H!="number")throw new TypeError("Argument must be a number");return E.SlowBuffer(H)}}),g5=C0((l,g)=>{var E=65536,A=4294967295;function j(){throw new Error(`Secure random number generation is not supported by this browser.
2
- Use Chrome, Firefox or Internet Explorer 11`)}var S=d0().Buffer,H=global.crypto||global.msCrypto;H&&H.getRandomValues?g.exports=P:g.exports=j;function P(k,z){if(k>A)throw new RangeError("requested too many random bytes");var V=S.allocUnsafe(k);if(k>0)if(k>E)for(var $=0;$<k;$+=E)H.getRandomValues(V.slice($,$+E));else H.getRandomValues(V);return typeof z=="function"?process.nextTick(function(){z(null,V)}):V}}),p0=C0((l,g)=>{typeof Object.create=="function"?g.exports=function(E,A){A&&(E.super_=A,E.prototype=Object.create(A.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}))}:g.exports=function(E,A){if(A){E.super_=A;var j=function(){};j.prototype=A.prototype,E.prototype=new j,E.prototype.constructor=E}}}),S5=C0((l,g)=>{var E=typeof Reflect=="object"?Reflect:null,A=E&&typeof E.apply=="function"?E.apply:function(c,n,i){return Function.prototype.apply.call(c,n,i)},j;E&&typeof E.ownKeys=="function"?j=E.ownKeys:Object.getOwnPropertySymbols?j=function(c){return Object.getOwnPropertyNames(c).concat(Object.getOwnPropertySymbols(c))}:j=function(c){return Object.getOwnPropertyNames(c)};function S(c){console&&console.warn&&console.warn(c)}var H=Number.isNaN||function(c){return c!==c};function P(){P.init.call(this)}g.exports=P,g.exports.once=v,P.EventEmitter=P,P.prototype._events=void 0,P.prototype._eventsCount=0,P.prototype._maxListeners=void 0;var k=10;function z(c){if(typeof c!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof c)}Object.defineProperty(P,"defaultMaxListeners",{enumerable:!0,get:function(){return k},set:function(c){if(typeof c!="number"||c<0||H(c))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+c+".");k=c}}),P.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},P.prototype.setMaxListeners=function(c){if(typeof c!="number"||c<0||H(c))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+c+".");return this._maxListeners=c,this};function V(c){return c._maxListeners===void 0?P.defaultMaxListeners:c._maxListeners}P.prototype.getMaxListeners=function(){return V(this)},P.prototype.emit=function(c){for(var n=[],i=1;i<arguments.length;i++)n.push(arguments[i]);var Q0=c==="error",f=this._events;if(f!==void 0)Q0=Q0&&f.error===void 0;else if(!Q0)return!1;if(Q0){var W0;if(n.length>0&&(W0=n[0]),W0 instanceof Error)throw W0;var X=new Error("Unhandled error."+(W0?" ("+W0.message+")":""));throw X.context=W0,X}var Y=f[c];if(Y===void 0)return!1;if(typeof Y=="function")A(Y,this,n);else for(var Q=Y.length,J=I(Y,Q),i=0;i<Q;++i)A(J[i],this,n);return!0};function $(c,n,i,Q0){var f,W0,X;if(z(i),W0=c._events,W0===void 0?(W0=c._events=Object.create(null),c._eventsCount=0):(W0.newListener!==void 0&&(c.emit("newListener",n,i.listener?i.listener:i),W0=c._events),X=W0[n]),X===void 0)X=W0[n]=i,++c._eventsCount;else if(typeof X=="function"?X=W0[n]=Q0?[i,X]:[X,i]:Q0?X.unshift(i):X.push(i),f=V(c),f>0&&X.length>f&&!X.warned){X.warned=!0;var Y=new Error("Possible EventEmitter memory leak detected. "+X.length+" "+String(n)+" listeners added. Use emitter.setMaxListeners() to increase limit");Y.name="MaxListenersExceededWarning",Y.emitter=c,Y.type=n,Y.count=X.length,S(Y)}return c}P.prototype.addListener=function(c,n){return $(this,c,n,!1)},P.prototype.on=P.prototype.addListener,P.prototype.prependListener=function(c,n){return $(this,c,n,!0)};function T(){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 D(c,n,i){var Q0={fired:!1,wrapFn:void 0,target:c,type:n,listener:i},f=T.bind(Q0);return f.listener=i,Q0.wrapFn=f,f}P.prototype.once=function(c,n){return z(n),this.on(c,D(this,c,n)),this},P.prototype.prependOnceListener=function(c,n){return z(n),this.prependListener(c,D(this,c,n)),this},P.prototype.removeListener=function(c,n){var i,Q0,f,W0,X;if(z(n),Q0=this._events,Q0===void 0)return this;if(i=Q0[c],i===void 0)return this;if(i===n||i.listener===n)--this._eventsCount===0?this._events=Object.create(null):(delete Q0[c],Q0.removeListener&&this.emit("removeListener",c,i.listener||n));else if(typeof i!="function"){for(f=-1,W0=i.length-1;W0>=0;W0--)if(i[W0]===n||i[W0].listener===n){X=i[W0].listener,f=W0;break}if(f<0)return this;f===0?i.shift():M(i,f),i.length===1&&(Q0[c]=i[0]),Q0.removeListener!==void 0&&this.emit("removeListener",c,X||n)}return this},P.prototype.off=P.prototype.removeListener,P.prototype.removeAllListeners=function(c){var n,i,Q0;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[c]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete i[c]),this;if(arguments.length===0){var f=Object.keys(i),W0;for(Q0=0;Q0<f.length;++Q0)W0=f[Q0],W0!=="removeListener"&&this.removeAllListeners(W0);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(n=i[c],typeof n=="function")this.removeListener(c,n);else if(n!==void 0)for(Q0=n.length-1;Q0>=0;Q0--)this.removeListener(c,n[Q0]);return this};function U(c,n,i){var Q0=c._events;if(Q0===void 0)return[];var f=Q0[n];return f===void 0?[]:typeof f=="function"?i?[f.listener||f]:[f]:i?x(f):I(f,f.length)}P.prototype.listeners=function(c){return U(this,c,!0)},P.prototype.rawListeners=function(c){return U(this,c,!1)},P.listenerCount=function(c,n){return typeof c.listenerCount=="function"?c.listenerCount(n):N.call(c,n)},P.prototype.listenerCount=N;function N(c){var n=this._events;if(n!==void 0){var i=n[c];if(typeof i=="function")return 1;if(i!==void 0)return i.length}return 0}P.prototype.eventNames=function(){return this._eventsCount>0?j(this._events):[]};function I(c,n){for(var i=new Array(n),Q0=0;Q0<n;++Q0)i[Q0]=c[Q0];return i}function M(c,n){for(;n+1<c.length;n++)c[n]=c[n+1];c.pop()}function x(c){for(var n=new Array(c.length),i=0;i<n.length;++i)n[i]=c[i].listener||c[i];return n}function v(c,n){return new Promise(function(i,Q0){function f(X){c.removeListener(n,W0),Q0(X)}function W0(){typeof c.removeListener=="function"&&c.removeListener("error",f),i([].slice.call(arguments))}p(c,n,W0,{once:!0}),n!=="error"&&y(c,f,{once:!0})})}function y(c,n,i){typeof c.on=="function"&&p(c,"error",n,i)}function p(c,n,i,Q0){if(typeof c.on=="function")Q0.once?c.once(n,i):c.on(n,i);else if(typeof c.addEventListener=="function")c.addEventListener(n,function f(W0){Q0.once&&c.removeEventListener(n,f),i(W0)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof c)}}),h9=C0((l,g)=>{g.exports=S5().EventEmitter}),t5=C0(()=>{}),$7=C0((l,g)=>{function E(U,N){var I=Object.keys(U);if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(U);N&&(M=M.filter(function(x){return Object.getOwnPropertyDescriptor(U,x).enumerable})),I.push.apply(I,M)}return I}function A(U){for(var N=1;N<arguments.length;N++){var I=arguments[N]!=null?arguments[N]:{};N%2?E(Object(I),!0).forEach(function(M){j(U,M,I[M])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(I)):E(Object(I)).forEach(function(M){Object.defineProperty(U,M,Object.getOwnPropertyDescriptor(I,M))})}return U}function j(U,N,I){return N in U?Object.defineProperty(U,N,{value:I,enumerable:!0,configurable:!0,writable:!0}):U[N]=I,U}function S(U,N){if(!(U instanceof N))throw new TypeError("Cannot call a class as a function")}function H(U,N){for(var I=0;I<N.length;I++){var M=N[I];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(U,M.key,M)}}function P(U,N,I){return N&&H(U.prototype,N),I&&H(U,I),U}var k=U5(),z=k.Buffer,V=t5(),$=V.inspect,T=$&&$.custom||"inspect";function D(U,N,I){z.prototype.copy.call(U,N,I)}g.exports=function(){function U(){S(this,U),this.head=null,this.tail=null,this.length=0}return P(U,[{key:"push",value:function(N){var I={data:N,next:null};this.length>0?this.tail.next=I:this.head=I,this.tail=I,++this.length}},{key:"unshift",value:function(N){var I={data:N,next:this.head};this.length===0&&(this.tail=I),this.head=I,++this.length}},{key:"shift",value:function(){if(this.length!==0){var N=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,N}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(N){if(this.length===0)return"";for(var I=this.head,M=""+I.data;I=I.next;)M+=N+I.data;return M}},{key:"concat",value:function(N){if(this.length===0)return z.alloc(0);for(var I=z.allocUnsafe(N>>>0),M=this.head,x=0;M;)D(M.data,I,x),x+=M.data.length,M=M.next;return I}},{key:"consume",value:function(N,I){var M;return N<this.head.data.length?(M=this.head.data.slice(0,N),this.head.data=this.head.data.slice(N)):N===this.head.data.length?M=this.shift():M=I?this._getString(N):this._getBuffer(N),M}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(N){var I=this.head,M=1,x=I.data;for(N-=x.length;I=I.next;){var v=I.data,y=N>v.length?v.length:N;if(y===v.length?x+=v:x+=v.slice(0,N),N-=y,N===0){y===v.length?(++M,I.next?this.head=I.next:this.head=this.tail=null):(this.head=I,I.data=v.slice(y));break}++M}return this.length-=M,x}},{key:"_getBuffer",value:function(N){var I=z.allocUnsafe(N),M=this.head,x=1;for(M.data.copy(I),N-=M.data.length;M=M.next;){var v=M.data,y=N>v.length?v.length:N;if(v.copy(I,I.length-N,0,y),N-=y,N===0){y===v.length?(++x,M.next?this.head=M.next:this.head=this.tail=null):(this.head=M,M.data=v.slice(y));break}++x}return this.length-=x,I}},{key:T,value:function(N,I){return $(this,A({},I,{depth:0,customInspect:!1}))}}]),U}()}),u9=C0((l,g)=>{function E(k,z){var V=this,$=this._readableState&&this._readableState.destroyed,T=this._writableState&&this._writableState.destroyed;return $||T?(z?z(k):k&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(H,this,k)):process.nextTick(H,this,k)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(k||null,function(D){!z&&D?V._writableState?V._writableState.errorEmitted?process.nextTick(j,V):(V._writableState.errorEmitted=!0,process.nextTick(A,V,D)):process.nextTick(A,V,D):z?(process.nextTick(j,V),z(D)):process.nextTick(j,V)}),this)}function A(k,z){H(k,z),j(k)}function j(k){k._writableState&&!k._writableState.emitClose||k._readableState&&!k._readableState.emitClose||k.emit("close")}function S(){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 H(k,z){k.emit("error",z)}function P(k,z){var{_readableState:V,_writableState:$}=k;V&&V.autoDestroy||$&&$.autoDestroy?k.destroy(z):k.emit("error",z)}g.exports={destroy:E,undestroy:S,errorOrDestroy:P}}),m5=C0((l,g)=>{function E(z,V){z.prototype=Object.create(V.prototype),z.prototype.constructor=z,z.__proto__=V}var A={};function j(z,V,$){$||($=Error);function T(U,N,I){return typeof V=="string"?V:V(U,N,I)}var D=function(U){E(N,U);function N(I,M,x){return U.call(this,T(I,M,x))||this}return N}($);D.prototype.name=$.name,D.prototype.code=z,A[z]=D}function S(z,V){if(Array.isArray(z)){var $=z.length;return z=z.map(function(T){return String(T)}),$>2?"one of ".concat(V," ").concat(z.slice(0,$-1).join(", "),", or ")+z[$-1]:$===2?"one of ".concat(V," ").concat(z[0]," or ").concat(z[1]):"of ".concat(V," ").concat(z[0])}else return"of ".concat(V," ").concat(String(z))}function H(z,V,$){return z.substr(!$||$<0?0:+$,V.length)===V}function P(z,V,$){return($===void 0||$>z.length)&&($=z.length),z.substring($-V.length,$)===V}function k(z,V,$){return typeof $!="number"&&($=0),$+V.length>z.length?!1:z.indexOf(V,$)!==-1}j("ERR_INVALID_OPT_VALUE",function(z,V){return'The value "'+V+'" is invalid for option "'+z+'"'},TypeError),j("ERR_INVALID_ARG_TYPE",function(z,V,$){var T;typeof V=="string"&&H(V,"not ")?(T="must not be",V=V.replace(/^not /,"")):T="must be";var D;if(P(z," argument"))D="The ".concat(z," ").concat(T," ").concat(S(V,"type"));else{var U=k(z,".")?"property":"argument";D='The "'.concat(z,'" ').concat(U," ").concat(T," ").concat(S(V,"type"))}return D+=". Received type ".concat(typeof $),D},TypeError),j("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),j("ERR_METHOD_NOT_IMPLEMENTED",function(z){return"The "+z+" method is not implemented"}),j("ERR_STREAM_PREMATURE_CLOSE","Premature close"),j("ERR_STREAM_DESTROYED",function(z){return"Cannot call "+z+" after a stream was destroyed"}),j("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),j("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),j("ERR_STREAM_WRITE_AFTER_END","write after end"),j("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),j("ERR_UNKNOWN_ENCODING",function(z){return"Unknown encoding: "+z},TypeError),j("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),g.exports.codes=A}),o9=C0((l,g)=>{var E=m5().codes.ERR_INVALID_OPT_VALUE;function A(S,H,P){return S.highWaterMark!=null?S.highWaterMark:H?S[P]:null}function j(S,H,P,k){var z=A(H,k,P);if(z!=null){if(!(isFinite(z)&&Math.floor(z)===z)||z<0){var V=k?P:"highWaterMark";throw new E(V,z)}return Math.floor(z)}return S.objectMode?16:16384}g.exports={getHighWaterMark:j}}),s9=C0((l,g)=>{g.exports=E;function E(j,S){if(A("noDeprecation"))return j;var H=!1;function P(){if(!H){if(A("throwDeprecation"))throw new Error(S);A("traceDeprecation")?console.trace(S):console.warn(S),H=!0}return j.apply(this,arguments)}return P}function A(j){try{if(!global.localStorage)return!1}catch{return!1}var S=global.localStorage[j];return S==null?!1:String(S).toLowerCase()==="true"}}),a9=C0((l,g)=>{g.exports=f;function E(u){var d=this;this.next=null,this.entry=null,this.finish=function(){Y0(d,u)}}var A;f.WritableState=i;var j={deprecate:s9()},S=h9(),H=U5().Buffer,P=global.Uint8Array||function(){};function k(u){return H.from(u)}function z(u){return H.isBuffer(u)||u instanceof P}var V=u9(),$=o9(),T=$.getHighWaterMark,D=m5().codes,U=D.ERR_INVALID_ARG_TYPE,N=D.ERR_METHOD_NOT_IMPLEMENTED,I=D.ERR_MULTIPLE_CALLBACK,M=D.ERR_STREAM_CANNOT_PIPE,x=D.ERR_STREAM_DESTROYED,v=D.ERR_STREAM_NULL_VALUES,y=D.ERR_STREAM_WRITE_AFTER_END,p=D.ERR_UNKNOWN_ENCODING,c=V.errorOrDestroy;p0()(f,S);function n(){}function i(u,d,a){A=A||w5(),u=u||{},typeof a!="boolean"&&(a=d instanceof A),this.objectMode=!!u.objectMode,a&&(this.objectMode=this.objectMode||!!u.writableObjectMode),this.highWaterMark=T(this,u,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var V0=u.decodeStrings===!1;this.decodeStrings=!V0,this.defaultEncoding=u.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(X0){Z(d,X0)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=u.emitClose!==!1,this.autoDestroy=!!u.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new E(this)}i.prototype.getBuffer=function(){for(var u=this.bufferedRequest,d=[];u;)d.push(u),u=u.next;return d},function(){try{Object.defineProperty(i.prototype,"buffer",{get:j.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var Q0;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Q0=Function.prototype[Symbol.hasInstance],Object.defineProperty(f,Symbol.hasInstance,{value:function(u){return Q0.call(this,u)?!0:this!==f?!1:u&&u._writableState instanceof i}})):Q0=function(u){return u instanceof this};function f(u){A=A||w5();var d=this instanceof A;if(!d&&!Q0.call(f,this))return new f(u);this._writableState=new i(u,this,d),this.writable=!0,u&&(typeof u.write=="function"&&(this._write=u.write),typeof u.writev=="function"&&(this._writev=u.writev),typeof u.destroy=="function"&&(this._destroy=u.destroy),typeof u.final=="function"&&(this._final=u.final)),S.call(this)}f.prototype.pipe=function(){c(this,new M)};function W0(u,d){var a=new y;c(u,a),process.nextTick(d,a)}function X(u,d,a,V0){var X0;return a===null?X0=new v:typeof a!="string"&&!d.objectMode&&(X0=new U("chunk",["string","Buffer"],a)),X0?(c(u,X0),process.nextTick(V0,X0),!1):!0}f.prototype.write=function(u,d,a){var V0=this._writableState,X0=!1,F0=!V0.objectMode&&z(u);return F0&&!H.isBuffer(u)&&(u=k(u)),typeof d=="function"&&(a=d,d=null),F0?d="buffer":d||(d=V0.defaultEncoding),typeof a!="function"&&(a=n),V0.ending?W0(this,a):(F0||X(this,V0,u,a))&&(V0.pendingcb++,X0=Q(this,V0,F0,u,d,a)),X0},f.prototype.cork=function(){this._writableState.corked++},f.prototype.uncork=function(){var u=this._writableState;u.corked&&(u.corked--,!u.writing&&!u.corked&&!u.bufferProcessing&&u.bufferedRequest&&G(this,u))},f.prototype.setDefaultEncoding=function(u){if(typeof u=="string"&&(u=u.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((u+"").toLowerCase())>-1))throw new p(u);return this._writableState.defaultEncoding=u,this},Object.defineProperty(f.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Y(u,d,a){return!u.objectMode&&u.decodeStrings!==!1&&typeof d=="string"&&(d=H.from(d,a)),d}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Q(u,d,a,V0,X0,F0){if(!a){var w=Y(d,V0,X0);V0!==w&&(a=!0,X0="buffer",V0=w)}var q=d.objectMode?1:V0.length;d.length+=q;var m=d.length<d.highWaterMark;if(m||(d.needDrain=!0),d.writing||d.corked){var e=d.lastBufferedRequest;d.lastBufferedRequest={chunk:V0,encoding:X0,isBuf:a,callback:F0,next:null},e?e.next=d.lastBufferedRequest:d.bufferedRequest=d.lastBufferedRequest,d.bufferedRequestCount+=1}else J(u,d,!1,q,V0,X0,F0);return m}function J(u,d,a,V0,X0,F0,w){d.writelen=V0,d.writecb=w,d.writing=!0,d.sync=!0,d.destroyed?d.onwrite(new x("write")):a?u._writev(X0,d.onwrite):u._write(X0,F0,d.onwrite),d.sync=!1}function F(u,d,a,V0,X0){--d.pendingcb,a?(process.nextTick(X0,V0),process.nextTick(s,u,d),u._writableState.errorEmitted=!0,c(u,V0)):(X0(V0),u._writableState.errorEmitted=!0,c(u,V0),s(u,d))}function W(u){u.writing=!1,u.writecb=null,u.length-=u.writelen,u.writelen=0}function Z(u,d){var a=u._writableState,V0=a.sync,X0=a.writecb;if(typeof X0!="function")throw new I;if(W(a),d)F(u,a,V0,d,X0);else{var F0=R(a)||u.destroyed;!F0&&!a.corked&&!a.bufferProcessing&&a.bufferedRequest&&G(u,a),V0?process.nextTick(C,u,a,F0,X0):C(u,a,F0,X0)}}function C(u,d,a,V0){a||K(u,d),d.pendingcb--,V0(),s(u,d)}function K(u,d){d.length===0&&d.needDrain&&(d.needDrain=!1,u.emit("drain"))}function G(u,d){d.bufferProcessing=!0;var a=d.bufferedRequest;if(u._writev&&a&&a.next){var V0=d.bufferedRequestCount,X0=new Array(V0),F0=d.corkedRequestsFree;F0.entry=a;for(var w=0,q=!0;a;)X0[w]=a,a.isBuf||(q=!1),a=a.next,w+=1;X0.allBuffers=q,J(u,d,!0,d.length,X0,"",F0.finish),d.pendingcb++,d.lastBufferedRequest=null,F0.next?(d.corkedRequestsFree=F0.next,F0.next=null):d.corkedRequestsFree=new E(d),d.bufferedRequestCount=0}else{for(;a;){var{chunk:m,encoding:e,callback:K0}=a,t=d.objectMode?1:m.length;if(J(u,d,!1,t,m,e,K0),a=a.next,d.bufferedRequestCount--,d.writing)break}a===null&&(d.lastBufferedRequest=null)}d.bufferedRequest=a,d.bufferProcessing=!1}f.prototype._write=function(u,d,a){a(new N("_write()"))},f.prototype._writev=null,f.prototype.end=function(u,d,a){var V0=this._writableState;return typeof u=="function"?(a=u,u=null,d=null):typeof d=="function"&&(a=d,d=null),u!=null&&this.write(u,d),V0.corked&&(V0.corked=1,this.uncork()),V0.ending||r(this,V0,a),this},Object.defineProperty(f.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function R(u){return u.ending&&u.length===0&&u.bufferedRequest===null&&!u.finished&&!u.writing}function L(u,d){u._final(function(a){d.pendingcb--,a&&c(u,a),d.prefinished=!0,u.emit("prefinish"),s(u,d)})}function _(u,d){!d.prefinished&&!d.finalCalled&&(typeof u._final=="function"&&!d.destroyed?(d.pendingcb++,d.finalCalled=!0,process.nextTick(L,u,d)):(d.prefinished=!0,u.emit("prefinish")))}function s(u,d){var a=R(d);if(a&&(_(u,d),d.pendingcb===0&&(d.finished=!0,u.emit("finish"),d.autoDestroy))){var V0=u._readableState;(!V0||V0.autoDestroy&&V0.endEmitted)&&u.destroy()}return a}function r(u,d,a){d.ending=!0,s(u,d),a&&(d.finished?process.nextTick(a):u.once("finish",a)),d.ended=!0,u.writable=!1}function Y0(u,d,a){var V0=u.entry;for(u.entry=null;V0;){var X0=V0.callback;d.pendingcb--,X0(a),V0=V0.next}d.corkedRequestsFree.next=u}Object.defineProperty(f.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(u){!this._writableState||(this._writableState.destroyed=u)}}),f.prototype.destroy=V.destroy,f.prototype._undestroy=V.undestroy,f.prototype._destroy=function(u,d){d(u)}}),w5=C0((l,g)=>{var E=Object.keys||function($){var T=[];for(var D in $)T.push(D);return T};g.exports=k;var A=f9(),j=a9();p0()(k,A);for(S=E(j.prototype),P=0;P<S.length;P++)H=S[P],k.prototype[H]||(k.prototype[H]=j.prototype[H]);var S,H,P;function k($){if(!(this instanceof k))return new k($);A.call(this,$),j.call(this,$),this.allowHalfOpen=!0,$&&($.readable===!1&&(this.readable=!1),$.writable===!1&&(this.writable=!1),$.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",z)))}Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(k.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function z(){this._writableState.ended||process.nextTick(V,this)}function V($){$.end()}Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function($){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=$,this._writableState.destroyed=$)}})}),$9=C0((l)=>{var g=d0().Buffer,E=g.isEncoding||function(x){switch(x=""+x,x&&x.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 A(x){if(!x)return"utf8";for(var v;;)switch(x){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 x;default:if(v)return;x=(""+x).toLowerCase(),v=!0}}function j(x){var v=A(x);if(typeof v!="string"&&(g.isEncoding===E||!E(x)))throw new Error("Unknown encoding: "+x);return v||x}l.StringDecoder=S;function S(x){this.encoding=j(x);var v;switch(this.encoding){case"utf16le":this.text=T,this.end=D,v=4;break;case"utf8":this.fillLast=z,v=4;break;case"base64":this.text=U,this.end=N,v=3;break;default:this.write=I,this.end=M;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=g.allocUnsafe(v)}S.prototype.write=function(x){if(x.length===0)return"";var v,y;if(this.lastNeed){if(v=this.fillLast(x),v===void 0)return"";y=this.lastNeed,this.lastNeed=0}else y=0;return y<x.length?v?v+this.text(x,y):this.text(x,y):v||""},S.prototype.end=$,S.prototype.text=V,S.prototype.fillLast=function(x){if(this.lastNeed<=x.length)return x.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);x.copy(this.lastChar,this.lastTotal-this.lastNeed,0,x.length),this.lastNeed-=x.length};function H(x){return x<=127?0:x>>5===6?2:x>>4===14?3:x>>3===30?4:x>>6===2?-1:-2}function P(x,v,y){var p=v.length-1;if(p<y)return 0;var c=H(v[p]);return c>=0?(c>0&&(x.lastNeed=c-1),c):--p<y||c===-2?0:(c=H(v[p]),c>=0?(c>0&&(x.lastNeed=c-2),c):--p<y||c===-2?0:(c=H(v[p]),c>=0?(c>0&&(c===2?c=0:x.lastNeed=c-3),c):0))}function k(x,v,y){if((v[0]&192)!==128)return x.lastNeed=0,"\uFFFD";if(x.lastNeed>1&&v.length>1){if((v[1]&192)!==128)return x.lastNeed=1,"\uFFFD";if(x.lastNeed>2&&v.length>2&&(v[2]&192)!==128)return x.lastNeed=2,"\uFFFD"}}function z(x){var v=this.lastTotal-this.lastNeed,y=k(this,x,v);if(y!==void 0)return y;if(this.lastNeed<=x.length)return x.copy(this.lastChar,v,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);x.copy(this.lastChar,v,0,x.length),this.lastNeed-=x.length}function V(x,v){var y=P(this,x,v);if(!this.lastNeed)return x.toString("utf8",v);this.lastTotal=y;var p=x.length-(y-this.lastNeed);return x.copy(this.lastChar,0,p),x.toString("utf8",v,p)}function $(x){var v=x&&x.length?this.write(x):"";return this.lastNeed?v+"\uFFFD":v}function T(x,v){if((x.length-v)%2===0){var y=x.toString("utf16le",v);if(y){var p=y.charCodeAt(y.length-1);if(p>=55296&&p<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=x[x.length-2],this.lastChar[1]=x[x.length-1],y.slice(0,-1)}return y}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=x[x.length-1],x.toString("utf16le",v,x.length-1)}function D(x){var v=x&&x.length?this.write(x):"";if(this.lastNeed){var y=this.lastTotal-this.lastNeed;return v+this.lastChar.toString("utf16le",0,y)}return v}function U(x,v){var y=(x.length-v)%3;return y===0?x.toString("base64",v):(this.lastNeed=3-y,this.lastTotal=3,y===1?this.lastChar[0]=x[x.length-1]:(this.lastChar[0]=x[x.length-2],this.lastChar[1]=x[x.length-1]),x.toString("base64",v,x.length-y))}function N(x){var v=x&&x.length?this.write(x):"";return this.lastNeed?v+this.lastChar.toString("base64",0,3-this.lastNeed):v}function I(x){return x.toString(this.encoding)}function M(x){return x&&x.length?this.write(x):""}}),d5={};i5(d5,{StringDecoder:()=>G9.StringDecoder,default:()=>G9.StringDecoder});var G9,f5=W9(()=>{G9=E5($9())}),j9=C0((l,g)=>{var E=m5().codes.ERR_STREAM_PREMATURE_CLOSE;function A(P){var k=!1;return function(){if(!k){k=!0;for(var z=arguments.length,V=new Array(z),$=0;$<z;$++)V[$]=arguments[$];P.apply(this,V)}}}function j(){}function S(P){return P.setHeader&&typeof P.abort=="function"}function H(P,k,z){if(typeof k=="function")return H(P,null,k);k||(k={}),z=A(z||j);var V=k.readable||k.readable!==!1&&P.readable,$=k.writable||k.writable!==!1&&P.writable,T=function(){P.writable||U()},D=P._writableState&&P._writableState.finished,U=function(){$=!1,D=!0,V||z.call(P)},N=P._readableState&&P._readableState.endEmitted,I=function(){V=!1,N=!0,$||z.call(P)},M=function(y){z.call(P,y)},x=function(){var y;if(V&&!N)return(!P._readableState||!P._readableState.ended)&&(y=new E),z.call(P,y);if($&&!D)return(!P._writableState||!P._writableState.ended)&&(y=new E),z.call(P,y)},v=function(){P.req.on("finish",U)};return S(P)?(P.on("complete",U),P.on("abort",x),P.req?v():P.on("request",v)):$&&!P._writableState&&(P.on("end",T),P.on("close",T)),P.on("end",I),P.on("finish",U),k.error!==!1&&P.on("error",M),P.on("close",x),function(){P.removeListener("complete",U),P.removeListener("abort",x),P.removeListener("request",v),P.req&&P.req.removeListener("finish",U),P.removeListener("end",T),P.removeListener("close",T),P.removeListener("finish",U),P.removeListener("end",I),P.removeListener("error",M),P.removeListener("close",x)}}g.exports=H}),j7=C0((l,g)=>{var E;function A(v,y,p){return y in v?Object.defineProperty(v,y,{value:p,enumerable:!0,configurable:!0,writable:!0}):v[y]=p,v}var j=j9(),S=Symbol("lastResolve"),H=Symbol("lastReject"),P=Symbol("error"),k=Symbol("ended"),z=Symbol("lastPromise"),V=Symbol("handlePromise"),$=Symbol("stream");function T(v,y){return{value:v,done:y}}function D(v){var y=v[S];if(y!==null){var p=v[$].read();p!==null&&(v[z]=null,v[S]=null,v[H]=null,y(T(p,!1)))}}function U(v){process.nextTick(D,v)}function N(v,y){return function(p,c){v.then(function(){if(y[k]){p(T(void 0,!0));return}y[V](p,c)},c)}}var I=Object.getPrototypeOf(function(){}),M=Object.setPrototypeOf((E={get stream(){return this[$]},next:function(){var v=this,y=this[P];if(y!==null)return Promise.reject(y);if(this[k])return Promise.resolve(T(void 0,!0));if(this[$].destroyed)return new Promise(function(i,Q0){process.nextTick(function(){v[P]?Q0(v[P]):i(T(void 0,!0))})});var p=this[z],c;if(p)c=new Promise(N(p,this));else{var n=this[$].read();if(n!==null)return Promise.resolve(T(n,!1));c=new Promise(this[V])}return this[z]=c,c}},A(E,Symbol.asyncIterator,function(){return this}),A(E,"return",function(){var v=this;return new Promise(function(y,p){v[$].destroy(null,function(c){if(c){p(c);return}y(T(void 0,!0))})})}),E),I),x=function(v){var y,p=Object.create(M,(y={},A(y,$,{value:v,writable:!0}),A(y,S,{value:null,writable:!0}),A(y,H,{value:null,writable:!0}),A(y,P,{value:null,writable:!0}),A(y,k,{value:v._readableState.endEmitted,writable:!0}),A(y,V,{value:function(c,n){var i=p[$].read();i?(p[z]=null,p[S]=null,p[H]=null,c(T(i,!1))):(p[S]=c,p[H]=n)},writable:!0}),y));return p[z]=null,j(v,function(c){if(c&&c.code!=="ERR_STREAM_PREMATURE_CLOSE"){var n=p[H];n!==null&&(p[z]=null,p[S]=null,p[H]=null,n(c)),p[P]=c;return}var i=p[S];i!==null&&(p[z]=null,p[S]=null,p[H]=null,i(T(void 0,!0))),p[k]=!0}),v.on("readable",U.bind(null,p)),p};g.exports=x}),P7=C0((l,g)=>{g.exports=function(){throw new Error("Readable.from is not available in the browser")}}),f9=C0((l,g)=>{g.exports=X;var E;X.ReadableState=W0;var A=S5().EventEmitter,j=function(w,q){return w.listeners(q).length},S=h9(),H=U5().Buffer,P=global.Uint8Array||function(){};function k(w){return H.from(w)}function z(w){return H.isBuffer(w)||w instanceof P}var V=t5(),$;V&&V.debuglog?$=V.debuglog("stream"):$=function(){};var T=$7(),D=u9(),U=o9(),N=U.getHighWaterMark,I=m5().codes,M=I.ERR_INVALID_ARG_TYPE,x=I.ERR_STREAM_PUSH_AFTER_EOF,v=I.ERR_METHOD_NOT_IMPLEMENTED,y=I.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,p,c,n;p0()(X,S);var i=D.errorOrDestroy,Q0=["error","close","destroy","pause","resume"];function f(w,q,m){if(typeof w.prependListener=="function")return w.prependListener(q,m);!w._events||!w._events[q]?w.on(q,m):Array.isArray(w._events[q])?w._events[q].unshift(m):w._events[q]=[m,w._events[q]]}function W0(w,q,m){E=E||w5(),w=w||{},typeof m!="boolean"&&(m=q instanceof E),this.objectMode=!!w.objectMode,m&&(this.objectMode=this.objectMode||!!w.readableObjectMode),this.highWaterMark=N(this,w,"readableHighWaterMark",m),this.buffer=new T,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=w.emitClose!==!1,this.autoDestroy=!!w.autoDestroy,this.destroyed=!1,this.defaultEncoding=w.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,w.encoding&&(p||(p=(f5(),z5(d5)).StringDecoder),this.decoder=new p(w.encoding),this.encoding=w.encoding)}function X(w){if(E=E||w5(),!(this instanceof X))return new X(w);var q=this instanceof E;this._readableState=new W0(w,this,q),this.readable=!0,w&&(typeof w.read=="function"&&(this._read=w.read),typeof w.destroy=="function"&&(this._destroy=w.destroy)),S.call(this)}Object.defineProperty(X.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(w){!this._readableState||(this._readableState.destroyed=w)}}),X.prototype.destroy=D.destroy,X.prototype._undestroy=D.undestroy,X.prototype._destroy=function(w,q){q(w)},X.prototype.push=function(w,q){var m=this._readableState,e;return m.objectMode?e=!0:typeof w=="string"&&(q=q||m.defaultEncoding,q!==m.encoding&&(w=H.from(w,q),q=""),e=!0),Y(this,w,q,!1,e)},X.prototype.unshift=function(w){return Y(this,w,null,!0,!1)};function Y(w,q,m,e,K0){$("readableAddChunk",q);var t=w._readableState;if(q===null)t.reading=!1,C(w,t);else{var _0;if(K0||(_0=J(t,q)),_0)i(w,_0);else if(t.objectMode||q&&q.length>0)if(typeof q!="string"&&!t.objectMode&&Object.getPrototypeOf(q)!==H.prototype&&(q=k(q)),e)t.endEmitted?i(w,new y):Q(w,t,q,!0);else if(t.ended)i(w,new x);else{if(t.destroyed)return!1;t.reading=!1,t.decoder&&!m?(q=t.decoder.write(q),t.objectMode||q.length!==0?Q(w,t,q,!1):R(w,t)):Q(w,t,q,!1)}else e||(t.reading=!1,R(w,t))}return!t.ended&&(t.length<t.highWaterMark||t.length===0)}function Q(w,q,m,e){q.flowing&&q.length===0&&!q.sync?(q.awaitDrain=0,w.emit("data",m)):(q.length+=q.objectMode?1:m.length,e?q.buffer.unshift(m):q.buffer.push(m),q.needReadable&&K(w)),R(w,q)}function J(w,q){var m;return!z(q)&&typeof q!="string"&&q!==void 0&&!w.objectMode&&(m=new M("chunk",["string","Buffer","Uint8Array"],q)),m}X.prototype.isPaused=function(){return this._readableState.flowing===!1},X.prototype.setEncoding=function(w){p||(p=(f5(),z5(d5)).StringDecoder);var q=new p(w);this._readableState.decoder=q,this._readableState.encoding=this._readableState.decoder.encoding;for(var m=this._readableState.buffer.head,e="";m!==null;)e+=q.write(m.data),m=m.next;return this._readableState.buffer.clear(),e!==""&&this._readableState.buffer.push(e),this._readableState.length=e.length,this};var F=1073741824;function W(w){return w>=F?w=F:(w--,w|=w>>>1,w|=w>>>2,w|=w>>>4,w|=w>>>8,w|=w>>>16,w++),w}function Z(w,q){return w<=0||q.length===0&&q.ended?0:q.objectMode?1:w!==w?q.flowing&&q.length?q.buffer.head.data.length:q.length:(w>q.highWaterMark&&(q.highWaterMark=W(w)),w<=q.length?w:q.ended?q.length:(q.needReadable=!0,0))}X.prototype.read=function(w){$("read",w),w=parseInt(w,10);var q=this._readableState,m=w;if(w!==0&&(q.emittedReadable=!1),w===0&&q.needReadable&&((q.highWaterMark!==0?q.length>=q.highWaterMark:q.length>0)||q.ended))return $("read: emitReadable",q.length,q.ended),q.length===0&&q.ended?V0(this):K(this),null;if(w=Z(w,q),w===0&&q.ended)return q.length===0&&V0(this),null;var e=q.needReadable;$("need readable",e),(q.length===0||q.length-w<q.highWaterMark)&&(e=!0,$("length less than watermark",e)),q.ended||q.reading?(e=!1,$("reading or ended",e)):e&&($("do read"),q.reading=!0,q.sync=!0,q.length===0&&(q.needReadable=!0),this._read(q.highWaterMark),q.sync=!1,q.reading||(w=Z(m,q)));var K0;return w>0?K0=a(w,q):K0=null,K0===null?(q.needReadable=q.length<=q.highWaterMark,w=0):(q.length-=w,q.awaitDrain=0),q.length===0&&(q.ended||(q.needReadable=!0),m!==w&&q.ended&&V0(this)),K0!==null&&this.emit("data",K0),K0};function C(w,q){if($("onEofChunk"),!q.ended){if(q.decoder){var m=q.decoder.end();m&&m.length&&(q.buffer.push(m),q.length+=q.objectMode?1:m.length)}q.ended=!0,q.sync?K(w):(q.needReadable=!1,q.emittedReadable||(q.emittedReadable=!0,G(w)))}}function K(w){var q=w._readableState;$("emitReadable",q.needReadable,q.emittedReadable),q.needReadable=!1,q.emittedReadable||($("emitReadable",q.flowing),q.emittedReadable=!0,process.nextTick(G,w))}function G(w){var q=w._readableState;$("emitReadable_",q.destroyed,q.length,q.ended),!q.destroyed&&(q.length||q.ended)&&(w.emit("readable"),q.emittedReadable=!1),q.needReadable=!q.flowing&&!q.ended&&q.length<=q.highWaterMark,d(w)}function R(w,q){q.readingMore||(q.readingMore=!0,process.nextTick(L,w,q))}function L(w,q){for(;!q.reading&&!q.ended&&(q.length<q.highWaterMark||q.flowing&&q.length===0);){var m=q.length;if($("maybeReadMore read 0"),w.read(0),m===q.length)break}q.readingMore=!1}X.prototype._read=function(w){i(this,new v("_read()"))},X.prototype.pipe=function(w,q){var m=this,e=this._readableState;switch(e.pipesCount){case 0:e.pipes=w;break;case 1:e.pipes=[e.pipes,w];break;default:e.pipes.push(w);break}e.pipesCount+=1,$("pipe count=%d opts=%j",e.pipesCount,q);var K0=(!q||q.end!==!1)&&w!==process.stdout&&w!==process.stderr,t=K0?H0:b;e.endEmitted?process.nextTick(t):m.once("end",t),w.on("unpipe",_0);function _0(h,o){$("onunpipe"),h===m&&o&&o.hasUnpiped===!1&&(o.hasUnpiped=!0,U0())}function H0(){$("onend"),w.end()}var G0=_(m);w.on("drain",G0);var w0=!1;function U0(){$("cleanup"),w.removeListener("close",O),w.removeListener("finish",B),w.removeListener("drain",G0),w.removeListener("error",c0),w.removeListener("unpipe",_0),m.removeListener("end",H0),m.removeListener("end",b),m.removeListener("data",Z0),w0=!0,e.awaitDrain&&(!w._writableState||w._writableState.needDrain)&&G0()}m.on("data",Z0);function Z0(h){$("ondata");var o=w.write(h);$("dest.write",o),o===!1&&((e.pipesCount===1&&e.pipes===w||e.pipesCount>1&&F0(e.pipes,w)!==-1)&&!w0&&($("false write response, pause",e.awaitDrain),e.awaitDrain++),m.pause())}function c0(h){$("onerror",h),b(),w.removeListener("error",c0),j(w,"error")===0&&i(w,h)}f(w,"error",c0);function O(){w.removeListener("finish",B),b()}w.once("close",O);function B(){$("onfinish"),w.removeListener("close",O),b()}w.once("finish",B);function b(){$("unpipe"),m.unpipe(w)}return w.emit("pipe",m),e.flowing||($("pipe resume"),m.resume()),w};function _(w){return function(){var q=w._readableState;$("pipeOnDrain",q.awaitDrain),q.awaitDrain&&q.awaitDrain--,q.awaitDrain===0&&j(w,"data")&&(q.flowing=!0,d(w))}}X.prototype.unpipe=function(w){var q=this._readableState,m={hasUnpiped:!1};if(q.pipesCount===0)return this;if(q.pipesCount===1)return w&&w!==q.pipes?this:(w||(w=q.pipes),q.pipes=null,q.pipesCount=0,q.flowing=!1,w&&w.emit("unpipe",this,m),this);if(!w){var{pipes:e,pipesCount:K0}=q;q.pipes=null,q.pipesCount=0,q.flowing=!1;for(var t=0;t<K0;t++)e[t].emit("unpipe",this,{hasUnpiped:!1});return this}var _0=F0(q.pipes,w);return _0===-1?this:(q.pipes.splice(_0,1),q.pipesCount-=1,q.pipesCount===1&&(q.pipes=q.pipes[0]),w.emit("unpipe",this,m),this)},X.prototype.on=function(w,q){var m=S.prototype.on.call(this,w,q),e=this._readableState;return w==="data"?(e.readableListening=this.listenerCount("readable")>0,e.flowing!==!1&&this.resume()):w==="readable"&&!e.endEmitted&&!e.readableListening&&(e.readableListening=e.needReadable=!0,e.flowing=!1,e.emittedReadable=!1,$("on readable",e.length,e.reading),e.length?K(this):e.reading||process.nextTick(r,this)),m},X.prototype.addListener=X.prototype.on,X.prototype.removeListener=function(w,q){var m=S.prototype.removeListener.call(this,w,q);return w==="readable"&&process.nextTick(s,this),m},X.prototype.removeAllListeners=function(w){var q=S.prototype.removeAllListeners.apply(this,arguments);return(w==="readable"||w===void 0)&&process.nextTick(s,this),q};function s(w){var q=w._readableState;q.readableListening=w.listenerCount("readable")>0,q.resumeScheduled&&!q.paused?q.flowing=!0:w.listenerCount("data")>0&&w.resume()}function r(w){$("readable nexttick read 0"),w.read(0)}X.prototype.resume=function(){var w=this._readableState;return w.flowing||($("resume"),w.flowing=!w.readableListening,Y0(this,w)),w.paused=!1,this};function Y0(w,q){q.resumeScheduled||(q.resumeScheduled=!0,process.nextTick(u,w,q))}function u(w,q){$("resume",q.reading),q.reading||w.read(0),q.resumeScheduled=!1,w.emit("resume"),d(w),q.flowing&&!q.reading&&w.read(0)}X.prototype.pause=function(){return $("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&($("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function d(w){var q=w._readableState;for($("flow",q.flowing);q.flowing&&w.read()!==null;);}X.prototype.wrap=function(w){var q=this,m=this._readableState,e=!1;w.on("end",function(){if($("wrapped end"),m.decoder&&!m.ended){var _0=m.decoder.end();_0&&_0.length&&q.push(_0)}q.push(null)}),w.on("data",function(_0){if($("wrapped data"),m.decoder&&(_0=m.decoder.write(_0)),!(m.objectMode&&_0==null)&&!(!m.objectMode&&(!_0||!_0.length))){var H0=q.push(_0);H0||(e=!0,w.pause())}});for(var K0 in w)this[K0]===void 0&&typeof w[K0]=="function"&&(this[K0]=function(_0){return function(){return w[_0].apply(w,arguments)}}(K0));for(var t=0;t<Q0.length;t++)w.on(Q0[t],this.emit.bind(this,Q0[t]));return this._read=function(_0){$("wrapped _read",_0),e&&(e=!1,w.resume())},this},typeof Symbol=="function"&&(X.prototype[Symbol.asyncIterator]=function(){return c===void 0&&(c=j7()),c(this)}),Object.defineProperty(X.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(X.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(X.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(w){this._readableState&&(this._readableState.flowing=w)}}),X._fromList=a,Object.defineProperty(X.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function a(w,q){if(q.length===0)return null;var m;return q.objectMode?m=q.buffer.shift():!w||w>=q.length?(q.decoder?m=q.buffer.join(""):q.buffer.length===1?m=q.buffer.first():m=q.buffer.concat(q.length),q.buffer.clear()):m=q.buffer.consume(w,q.decoder),m}function V0(w){var q=w._readableState;$("endReadable",q.endEmitted),q.endEmitted||(q.ended=!0,process.nextTick(X0,q,w))}function X0(w,q){if($("endReadableNT",w.endEmitted,w.length),!w.endEmitted&&w.length===0&&(w.endEmitted=!0,q.readable=!1,q.emit("end"),w.autoDestroy)){var m=q._writableState;(!m||m.autoDestroy&&m.finished)&&q.destroy()}}typeof Symbol=="function"&&(X.from=function(w,q){return n===void 0&&(n=P7()),n(X,w,q)});function F0(w,q){for(var m=0,e=w.length;m<e;m++)if(w[m]===q)return m;return-1}}),n9=C0((l,g)=>{g.exports=z;var E=m5().codes,A=E.ERR_METHOD_NOT_IMPLEMENTED,j=E.ERR_MULTIPLE_CALLBACK,S=E.ERR_TRANSFORM_ALREADY_TRANSFORMING,H=E.ERR_TRANSFORM_WITH_LENGTH_0,P=w5();p0()(z,P);function k(T,D){var U=this._transformState;U.transforming=!1;var N=U.writecb;if(N===null)return this.emit("error",new j);U.writechunk=null,U.writecb=null,D!=null&&this.push(D),N(T);var I=this._readableState;I.reading=!1,(I.needReadable||I.length<I.highWaterMark)&&this._read(I.highWaterMark)}function z(T){if(!(this instanceof z))return new z(T);P.call(this,T),this._transformState={afterTransform:k.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",V)}function V(){var T=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(D,U){$(T,D,U)}):$(this,null,null)}z.prototype.push=function(T,D){return this._transformState.needTransform=!1,P.prototype.push.call(this,T,D)},z.prototype._transform=function(T,D,U){U(new A("_transform()"))},z.prototype._write=function(T,D,U){var N=this._transformState;if(N.writecb=U,N.writechunk=T,N.writeencoding=D,!N.transforming){var I=this._readableState;(N.needTransform||I.needReadable||I.length<I.highWaterMark)&&this._read(I.highWaterMark)}},z.prototype._read=function(T){var D=this._transformState;D.writechunk!==null&&!D.transforming?(D.transforming=!0,this._transform(D.writechunk,D.writeencoding,D.afterTransform)):D.needTransform=!0},z.prototype._destroy=function(T,D){P.prototype._destroy.call(this,T,function(U){D(U)})};function $(T,D,U){if(D)return T.emit("error",D);if(U!=null&&T.push(U),T._writableState.length)throw new H;if(T._transformState.transforming)throw new S;return T.push(null)}}),U7=C0((l,g)=>{g.exports=A;var E=n9();p0()(A,E);function A(j){if(!(this instanceof A))return new A(j);E.call(this,j)}A.prototype._transform=function(j,S,H){H(null,j)}}),V7=C0((l,g)=>{var E;function A(U){var N=!1;return function(){N||(N=!0,U.apply(void 0,arguments))}}var j=m5().codes,S=j.ERR_MISSING_ARGS,H=j.ERR_STREAM_DESTROYED;function P(U){if(U)throw U}function k(U){return U.setHeader&&typeof U.abort=="function"}function z(U,N,I,M){M=A(M);var x=!1;U.on("close",function(){x=!0}),E===void 0&&(E=j9()),E(U,{readable:N,writable:I},function(y){if(y)return M(y);x=!0,M()});var v=!1;return function(y){if(!x&&!v){if(v=!0,k(U))return U.abort();if(typeof U.destroy=="function")return U.destroy();M(y||new H("pipe"))}}}function V(U){U()}function $(U,N){return U.pipe(N)}function T(U){return!U.length||typeof U[U.length-1]!="function"?P:U.pop()}function D(){for(var U=arguments.length,N=new Array(U),I=0;I<U;I++)N[I]=arguments[I];var M=T(N);if(Array.isArray(N[0])&&(N=N[0]),N.length<2)throw new S("streams");var x,v=N.map(function(y,p){var c=p<N.length-1,n=p>0;return z(y,c,n,function(i){x||(x=i),i&&v.forEach(V),!c&&(v.forEach(V),M(x))})});return N.reduce($)}g.exports=D}),z7=C0((l,g)=>{l=g.exports=f9(),l.Stream=l,l.Readable=l,l.Writable=a9(),l.Duplex=w5(),l.Transform=n9(),l.PassThrough=U7(),l.finished=j9(),l.pipeline=V7()}),r9=C0((l,g)=>{var E=d0().Buffer,A=z7().Transform,j=p0();function S(P,k){if(!E.isBuffer(P)&&typeof P!="string")throw new TypeError(k+" must be a string or a buffer")}function H(P){A.call(this),this._block=E.allocUnsafe(P),this._blockSize=P,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}j(H,A),H.prototype._transform=function(P,k,z){var V=null;try{this.update(P,k)}catch($){V=$}z(V)},H.prototype._flush=function(P){var k=null;try{this.push(this.digest())}catch(z){k=z}P(k)},H.prototype.update=function(P,k){if(S(P,"Data"),this._finalized)throw new Error("Digest already called");E.isBuffer(P)||(P=E.from(P,k));for(var z=this._block,V=0;this._blockOffset+P.length-V>=this._blockSize;){for(var $=this._blockOffset;$<this._blockSize;)z[$++]=P[V++];this._update(),this._blockOffset=0}for(;V<P.length;)z[this._blockOffset++]=P[V++];for(var T=0,D=P.length*8;D>0;++T)this._length[T]+=D,D=this._length[T]/4294967296|0,D>0&&(this._length[T]-=4294967296*D);return this},H.prototype._update=function(){throw new Error("_update is not implemented")},H.prototype.digest=function(P){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var k=this._digest();P!==void 0&&(k=k.toString(P)),this._block.fill(0),this._blockOffset=0;for(var z=0;z<4;++z)this._length[z]=0;return k},H.prototype._digest=function(){throw new Error("_digest is not implemented")},g.exports=H}),P9=C0((l,g)=>{var E=p0(),A=r9(),j=d0().Buffer,S=new Array(16);function H(){A.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}E(H,A),H.prototype._update=function(){for(var T=S,D=0;D<16;++D)T[D]=this._block.readInt32LE(D*4);var U=this._a,N=this._b,I=this._c,M=this._d;U=k(U,N,I,M,T[0],3614090360,7),M=k(M,U,N,I,T[1],3905402710,12),I=k(I,M,U,N,T[2],606105819,17),N=k(N,I,M,U,T[3],3250441966,22),U=k(U,N,I,M,T[4],4118548399,7),M=k(M,U,N,I,T[5],1200080426,12),I=k(I,M,U,N,T[6],2821735955,17),N=k(N,I,M,U,T[7],4249261313,22),U=k(U,N,I,M,T[8],1770035416,7),M=k(M,U,N,I,T[9],2336552879,12),I=k(I,M,U,N,T[10],4294925233,17),N=k(N,I,M,U,T[11],2304563134,22),U=k(U,N,I,M,T[12],1804603682,7),M=k(M,U,N,I,T[13],4254626195,12),I=k(I,M,U,N,T[14],2792965006,17),N=k(N,I,M,U,T[15],1236535329,22),U=z(U,N,I,M,T[1],4129170786,5),M=z(M,U,N,I,T[6],3225465664,9),I=z(I,M,U,N,T[11],643717713,14),N=z(N,I,M,U,T[0],3921069994,20),U=z(U,N,I,M,T[5],3593408605,5),M=z(M,U,N,I,T[10],38016083,9),I=z(I,M,U,N,T[15],3634488961,14),N=z(N,I,M,U,T[4],3889429448,20),U=z(U,N,I,M,T[9],568446438,5),M=z(M,U,N,I,T[14],3275163606,9),I=z(I,M,U,N,T[3],4107603335,14),N=z(N,I,M,U,T[8],1163531501,20),U=z(U,N,I,M,T[13],2850285829,5),M=z(M,U,N,I,T[2],4243563512,9),I=z(I,M,U,N,T[7],1735328473,14),N=z(N,I,M,U,T[12],2368359562,20),U=V(U,N,I,M,T[5],4294588738,4),M=V(M,U,N,I,T[8],2272392833,11),I=V(I,M,U,N,T[11],1839030562,16),N=V(N,I,M,U,T[14],4259657740,23),U=V(U,N,I,M,T[1],2763975236,4),M=V(M,U,N,I,T[4],1272893353,11),I=V(I,M,U,N,T[7],4139469664,16),N=V(N,I,M,U,T[10],3200236656,23),U=V(U,N,I,M,T[13],681279174,4),M=V(M,U,N,I,T[0],3936430074,11),I=V(I,M,U,N,T[3],3572445317,16),N=V(N,I,M,U,T[6],76029189,23),U=V(U,N,I,M,T[9],3654602809,4),M=V(M,U,N,I,T[12],3873151461,11),I=V(I,M,U,N,T[15],530742520,16),N=V(N,I,M,U,T[2],3299628645,23),U=$(U,N,I,M,T[0],4096336452,6),M=$(M,U,N,I,T[7],1126891415,10),I=$(I,M,U,N,T[14],2878612391,15),N=$(N,I,M,U,T[5],4237533241,21),U=$(U,N,I,M,T[12],1700485571,6),M=$(M,U,N,I,T[3],2399980690,10),I=$(I,M,U,N,T[10],4293915773,15),N=$(N,I,M,U,T[1],2240044497,21),U=$(U,N,I,M,T[8],1873313359,6),M=$(M,U,N,I,T[15],4264355552,10),I=$(I,M,U,N,T[6],2734768916,15),N=$(N,I,M,U,T[13],1309151649,21),U=$(U,N,I,M,T[4],4149444226,6),M=$(M,U,N,I,T[11],3174756917,10),I=$(I,M,U,N,T[2],718787259,15),N=$(N,I,M,U,T[9],3951481745,21),this._a=this._a+U|0,this._b=this._b+N|0,this._c=this._c+I|0,this._d=this._d+M|0},H.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=j.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 P(T,D){return T<<D|T>>>32-D}function k(T,D,U,N,I,M,x){return P(T+(D&U|~D&N)+I+M|0,x)+D|0}function z(T,D,U,N,I,M,x){return P(T+(D&N|U&~N)+I+M|0,x)+D|0}function V(T,D,U,N,I,M,x){return P(T+(D^U^N)+I+M|0,x)+D|0}function $(T,D,U,N,I,M,x){return P(T+(U^(D|~N))+I+M|0,x)+D|0}g.exports=H}),U9=C0((l,g)=>{var E=U5().Buffer,A=p0(),j=r9(),S=new Array(16),H=[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],P=[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],k=[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],z=[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],V=[0,1518500249,1859775393,2400959708,2840853838],$=[1352829926,1548603684,1836072691,2053994217,0];function T(){j.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}A(T,j),T.prototype._update=function(){for(var v=S,y=0;y<16;++y)v[y]=this._block.readInt32LE(y*4);for(var p=this._a|0,c=this._b|0,n=this._c|0,i=this._d|0,Q0=this._e|0,f=this._a|0,W0=this._b|0,X=this._c|0,Y=this._d|0,Q=this._e|0,J=0;J<80;J+=1){var F,W;J<16?(F=U(p,c,n,i,Q0,v[H[J]],V[0],k[J]),W=x(f,W0,X,Y,Q,v[P[J]],$[0],z[J])):J<32?(F=N(p,c,n,i,Q0,v[H[J]],V[1],k[J]),W=M(f,W0,X,Y,Q,v[P[J]],$[1],z[J])):J<48?(F=I(p,c,n,i,Q0,v[H[J]],V[2],k[J]),W=I(f,W0,X,Y,Q,v[P[J]],$[2],z[J])):J<64?(F=M(p,c,n,i,Q0,v[H[J]],V[3],k[J]),W=N(f,W0,X,Y,Q,v[P[J]],$[3],z[J])):(F=x(p,c,n,i,Q0,v[H[J]],V[4],k[J]),W=U(f,W0,X,Y,Q,v[P[J]],$[4],z[J])),p=Q0,Q0=i,i=D(n,10),n=c,c=F,f=Q,Q=Y,Y=D(X,10),X=W0,W0=W}var Z=this._b+n+Y|0;this._b=this._c+i+Q|0,this._c=this._d+Q0+f|0,this._d=this._e+p+W0|0,this._e=this._a+c+X|0,this._a=Z},T.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 v=E.alloc?E.alloc(20):new E(20);return v.writeInt32LE(this._a,0),v.writeInt32LE(this._b,4),v.writeInt32LE(this._c,8),v.writeInt32LE(this._d,12),v.writeInt32LE(this._e,16),v};function D(v,y){return v<<y|v>>>32-y}function U(v,y,p,c,n,i,Q0,f){return D(v+(y^p^c)+i+Q0|0,f)+n|0}function N(v,y,p,c,n,i,Q0,f){return D(v+(y&p|~y&c)+i+Q0|0,f)+n|0}function I(v,y,p,c,n,i,Q0,f){return D(v+((y|~p)^c)+i+Q0|0,f)+n|0}function M(v,y,p,c,n,i,Q0,f){return D(v+(y&c|p&~c)+i+Q0|0,f)+n|0}function x(v,y,p,c,n,i,Q0,f){return D(v+(y^(p|~c))+i+Q0|0,f)+n|0}g.exports=T}),p5=C0((l,g)=>{var E=d0().Buffer;function A(j,S){this._block=E.alloc(j),this._finalSize=S,this._blockSize=j,this._len=0}A.prototype.update=function(j,S){typeof j=="string"&&(S=S||"utf8",j=E.from(j,S));for(var H=this._block,P=this._blockSize,k=j.length,z=this._len,V=0;V<k;){for(var $=z%P,T=Math.min(k-V,P-$),D=0;D<T;D++)H[$+D]=j[V+D];z+=T,V+=T,z%P===0&&this._update(H)}return this._len+=k,this},A.prototype.digest=function(j){var S=this._len%this._blockSize;this._block[S]=128,this._block.fill(0,S+1),S>=this._finalSize&&(this._update(this._block),this._block.fill(0));var H=this._len*8;if(H<=4294967295)this._block.writeUInt32BE(H,this._blockSize-4);else{var P=(H&4294967295)>>>0,k=(H-P)/4294967296;this._block.writeUInt32BE(k,this._blockSize-8),this._block.writeUInt32BE(P,this._blockSize-4)}this._update(this._block);var z=this._hash();return j?z.toString(j):z},A.prototype._update=function(){throw new Error("_update must be implemented by subclass")},g.exports=A}),O7=C0((l,g)=>{var E=p0(),A=p5(),j=d0().Buffer,S=[1518500249,1859775393,-1894007588,-899497514],H=new Array(80);function P(){this.init(),this._w=H,A.call(this,64,56)}E(P,A),P.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function k($){return $<<5|$>>>27}function z($){return $<<30|$>>>2}function V($,T,D,U){return $===0?T&D|~T&U:$===2?T&D|T&U|D&U:T^D^U}P.prototype._update=function($){for(var T=this._w,D=this._a|0,U=this._b|0,N=this._c|0,I=this._d|0,M=this._e|0,x=0;x<16;++x)T[x]=$.readInt32BE(x*4);for(;x<80;++x)T[x]=T[x-3]^T[x-8]^T[x-14]^T[x-16];for(var v=0;v<80;++v){var y=~~(v/20),p=k(D)+V(y,U,N,I)+M+T[v]+S[y]|0;M=I,I=N,N=z(U),U=D,D=p}this._a=D+this._a|0,this._b=U+this._b|0,this._c=N+this._c|0,this._d=I+this._d|0,this._e=M+this._e|0},P.prototype._hash=function(){var $=j.allocUnsafe(20);return $.writeInt32BE(this._a|0,0),$.writeInt32BE(this._b|0,4),$.writeInt32BE(this._c|0,8),$.writeInt32BE(this._d|0,12),$.writeInt32BE(this._e|0,16),$},g.exports=P}),T7=C0((l,g)=>{var E=p0(),A=p5(),j=d0().Buffer,S=[1518500249,1859775393,-1894007588,-899497514],H=new Array(80);function P(){this.init(),this._w=H,A.call(this,64,56)}E(P,A),P.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function k(T){return T<<1|T>>>31}function z(T){return T<<5|T>>>27}function V(T){return T<<30|T>>>2}function $(T,D,U,N){return T===0?D&U|~D&N:T===2?D&U|D&N|U&N:D^U^N}P.prototype._update=function(T){for(var D=this._w,U=this._a|0,N=this._b|0,I=this._c|0,M=this._d|0,x=this._e|0,v=0;v<16;++v)D[v]=T.readInt32BE(v*4);for(;v<80;++v)D[v]=k(D[v-3]^D[v-8]^D[v-14]^D[v-16]);for(var y=0;y<80;++y){var p=~~(y/20),c=z(U)+$(p,N,I,M)+x+D[y]+S[p]|0;x=M,M=I,I=V(N),N=U,U=c}this._a=U+this._a|0,this._b=N+this._b|0,this._c=I+this._c|0,this._d=M+this._d|0,this._e=x+this._e|0},P.prototype._hash=function(){var T=j.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},g.exports=P}),i9=C0((l,g)=>{var E=p0(),A=p5(),j=d0().Buffer,S=[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],H=new Array(64);function P(){this.init(),this._w=H,A.call(this,64,56)}E(P,A),P.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 k(U,N,I){return I^U&(N^I)}function z(U,N,I){return U&N|I&(U|N)}function V(U){return(U>>>2|U<<30)^(U>>>13|U<<19)^(U>>>22|U<<10)}function $(U){return(U>>>6|U<<26)^(U>>>11|U<<21)^(U>>>25|U<<7)}function T(U){return(U>>>7|U<<25)^(U>>>18|U<<14)^U>>>3}function D(U){return(U>>>17|U<<15)^(U>>>19|U<<13)^U>>>10}P.prototype._update=function(U){for(var N=this._w,I=this._a|0,M=this._b|0,x=this._c|0,v=this._d|0,y=this._e|0,p=this._f|0,c=this._g|0,n=this._h|0,i=0;i<16;++i)N[i]=U.readInt32BE(i*4);for(;i<64;++i)N[i]=D(N[i-2])+N[i-7]+T(N[i-15])+N[i-16]|0;for(var Q0=0;Q0<64;++Q0){var f=n+$(y)+k(y,p,c)+S[Q0]+N[Q0]|0,W0=V(I)+z(I,M,x)|0;n=c,c=p,p=y,y=v+f|0,v=x,x=M,M=I,I=f+W0|0}this._a=I+this._a|0,this._b=M+this._b|0,this._c=x+this._c|0,this._d=v+this._d|0,this._e=y+this._e|0,this._f=p+this._f|0,this._g=c+this._g|0,this._h=n+this._h|0},P.prototype._hash=function(){var U=j.allocUnsafe(32);return U.writeInt32BE(this._a,0),U.writeInt32BE(this._b,4),U.writeInt32BE(this._c,8),U.writeInt32BE(this._d,12),U.writeInt32BE(this._e,16),U.writeInt32BE(this._f,20),U.writeInt32BE(this._g,24),U.writeInt32BE(this._h,28),U},g.exports=P}),D7=C0((l,g)=>{var E=p0(),A=i9(),j=p5(),S=d0().Buffer,H=new Array(64);function P(){this.init(),this._w=H,j.call(this,64,56)}E(P,A),P.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},P.prototype._hash=function(){var k=S.allocUnsafe(28);return k.writeInt32BE(this._a,0),k.writeInt32BE(this._b,4),k.writeInt32BE(this._c,8),k.writeInt32BE(this._d,12),k.writeInt32BE(this._e,16),k.writeInt32BE(this._f,20),k.writeInt32BE(this._g,24),k},g.exports=P}),t9=C0((l,g)=>{var E=p0(),A=p5(),j=d0().Buffer,S=[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],H=new Array(160);function P(){this.init(),this._w=H,A.call(this,128,112)}E(P,A),P.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 k(M,x,v){return v^M&(x^v)}function z(M,x,v){return M&x|v&(M|x)}function V(M,x){return(M>>>28|x<<4)^(x>>>2|M<<30)^(x>>>7|M<<25)}function $(M,x){return(M>>>14|x<<18)^(M>>>18|x<<14)^(x>>>9|M<<23)}function T(M,x){return(M>>>1|x<<31)^(M>>>8|x<<24)^M>>>7}function D(M,x){return(M>>>1|x<<31)^(M>>>8|x<<24)^(M>>>7|x<<25)}function U(M,x){return(M>>>19|x<<13)^(x>>>29|M<<3)^M>>>6}function N(M,x){return(M>>>19|x<<13)^(x>>>29|M<<3)^(M>>>6|x<<26)}function I(M,x){return M>>>0<x>>>0?1:0}P.prototype._update=function(M){for(var x=this._w,v=this._ah|0,y=this._bh|0,p=this._ch|0,c=this._dh|0,n=this._eh|0,i=this._fh|0,Q0=this._gh|0,f=this._hh|0,W0=this._al|0,X=this._bl|0,Y=this._cl|0,Q=this._dl|0,J=this._el|0,F=this._fl|0,W=this._gl|0,Z=this._hl|0,C=0;C<32;C+=2)x[C]=M.readInt32BE(C*4),x[C+1]=M.readInt32BE(C*4+4);for(;C<160;C+=2){var K=x[C-30],G=x[C-30+1],R=T(K,G),L=D(G,K);K=x[C-4],G=x[C-4+1];var _=U(K,G),s=N(G,K),r=x[C-14],Y0=x[C-14+1],u=x[C-32],d=x[C-32+1],a=L+Y0|0,V0=R+r+I(a,L)|0;a=a+s|0,V0=V0+_+I(a,s)|0,a=a+d|0,V0=V0+u+I(a,d)|0,x[C]=V0,x[C+1]=a}for(var X0=0;X0<160;X0+=2){V0=x[X0],a=x[X0+1];var F0=z(v,y,p),w=z(W0,X,Y),q=V(v,W0),m=V(W0,v),e=$(n,J),K0=$(J,n),t=S[X0],_0=S[X0+1],H0=k(n,i,Q0),G0=k(J,F,W),w0=Z+K0|0,U0=f+e+I(w0,Z)|0;w0=w0+G0|0,U0=U0+H0+I(w0,G0)|0,w0=w0+_0|0,U0=U0+t+I(w0,_0)|0,w0=w0+a|0,U0=U0+V0+I(w0,a)|0;var Z0=m+w|0,c0=q+F0+I(Z0,m)|0;f=Q0,Z=W,Q0=i,W=F,i=n,F=J,J=Q+w0|0,n=c+U0+I(J,Q)|0,c=p,Q=Y,p=y,Y=X,y=v,X=W0,W0=w0+Z0|0,v=U0+c0+I(W0,w0)|0}this._al=this._al+W0|0,this._bl=this._bl+X|0,this._cl=this._cl+Y|0,this._dl=this._dl+Q|0,this._el=this._el+J|0,this._fl=this._fl+F|0,this._gl=this._gl+W|0,this._hl=this._hl+Z|0,this._ah=this._ah+v+I(this._al,W0)|0,this._bh=this._bh+y+I(this._bl,X)|0,this._ch=this._ch+p+I(this._cl,Y)|0,this._dh=this._dh+c+I(this._dl,Q)|0,this._eh=this._eh+n+I(this._el,J)|0,this._fh=this._fh+i+I(this._fl,F)|0,this._gh=this._gh+Q0+I(this._gl,W)|0,this._hh=this._hh+f+I(this._hl,Z)|0},P.prototype._hash=function(){var M=j.allocUnsafe(64);function x(v,y,p){M.writeInt32BE(v,p),M.writeInt32BE(y,p+4)}return x(this._ah,this._al,0),x(this._bh,this._bl,8),x(this._ch,this._cl,16),x(this._dh,this._dl,24),x(this._eh,this._el,32),x(this._fh,this._fl,40),x(this._gh,this._gl,48),x(this._hh,this._hl,56),M},g.exports=P}),N7=C0((l,g)=>{var E=p0(),A=t9(),j=p5(),S=d0().Buffer,H=new Array(160);function P(){this.init(),this._w=H,j.call(this,128,112)}E(P,A),P.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},P.prototype._hash=function(){var k=S.allocUnsafe(48);function z(V,$,T){k.writeInt32BE(V,T),k.writeInt32BE($,T+4)}return z(this._ah,this._al,0),z(this._bh,this._bl,8),z(this._ch,this._cl,16),z(this._dh,this._dl,24),z(this._eh,this._el,32),z(this._fh,this._fl,40),k},g.exports=P}),V9=C0((E,g)=>{var E=g.exports=function(A){A=A.toLowerCase();var j=E[A];if(!j)throw new Error(A+" is not supported (we accept pull requests)");return new j};E.sha=O7(),E.sha1=T7(),E.sha224=D7(),E.sha256=i9(),E.sha384=N7(),E.sha512=t9()}),P5=C0((l,g)=>{g.exports={ArrayIsArray(E){return Array.isArray(E)},ArrayPrototypeIncludes(E,A){return E.includes(A)},ArrayPrototypeIndexOf(E,A){return E.indexOf(A)},ArrayPrototypeJoin(E,A){return E.join(A)},ArrayPrototypeMap(E,A){return E.map(A)},ArrayPrototypePop(E,A){return E.pop(A)},ArrayPrototypePush(E,A){return E.push(A)},ArrayPrototypeSlice(E,A,j){return E.slice(A,j)},Error,FunctionPrototypeCall(E,A,...j){return E.call(A,...j)},FunctionPrototypeSymbolHasInstance(E,A){return Function.prototype[Symbol.hasInstance].call(E,A)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(E,A){return Object.defineProperties(E,A)},ObjectDefineProperty(E,A,j){return Object.defineProperty(E,A,j)},ObjectGetOwnPropertyDescriptor(E,A){return Object.getOwnPropertyDescriptor(E,A)},ObjectKeys(E){return Object.keys(E)},ObjectSetPrototypeOf(E,A){return Object.setPrototypeOf(E,A)},Promise,PromisePrototypeCatch(E,A){return E.catch(A)},PromisePrototypeThen(E,A,j){return E.then(A,j)},PromiseReject(E){return Promise.reject(E)},ReflectApply:Reflect.apply,RegExpPrototypeTest(E,A){return E.test(A)},SafeSet:Set,String,StringPrototypeSlice(E,A,j){return E.slice(A,j)},StringPrototypeToLowerCase(E){return E.toLowerCase()},StringPrototypeToUpperCase(E){return E.toUpperCase()},StringPrototypeTrim(E){return E.trim()},Symbol,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,TypedArrayPrototypeSet(E,A,j){return E.set(A,j)},Uint8Array}}),N5=C0((l,g)=>{var E=U5(),A=Object.getPrototypeOf(async function(){}).constructor,j=globalThis.Blob||E.Blob,S=typeof j<"u"?function(P){return P instanceof j}:function(P){return!1},H=class extends Error{constructor(P){if(!Array.isArray(P))throw new TypeError(`Expected input to be an Array, got ${typeof P}`);let k="";for(let z=0;z<P.length;z++)k+=` ${P[z].stack}
1
+ var X7=Object.create;var{getPrototypeOf:K7,defineProperty:b9,getOwnPropertyNames:Y7}=Object;var J7=Object.prototype.hasOwnProperty;var B5=(l,g,E)=>{E=l!=null?X7(K7(l)):{};let A=g||!l||!l.__esModule?b9(E,"default",{value:l,enumerable:!0}):E;for(let j of Y7(l))if(!J7.call(A,j))b9(A,j,{get:()=>l[j],enumerable:!0});return A};var R5=((l)=>typeof require!=="undefined"?require:typeof Proxy!=="undefined"?new Proxy(l,{get:(g,E)=>(typeof require!=="undefined"?require:g)[E]}):l)(function(l){if(typeof require!=="undefined")return require.apply(this,arguments);throw Error('Dynamic require of "'+l+'" is not supported')});var{create:Q7,defineProperty:r5,getOwnPropertyDescriptor:F7,getOwnPropertyNames:H7,getPrototypeOf:C7}=Object,G7=Object.prototype.hasOwnProperty,W9=(l,g)=>()=>(l&&(g=l(l=0)),g),C0=(l,g)=>()=>(g||l((g={exports:{}}).exports,g),g.exports),i5=(l,g)=>{for(var E in g)r5(l,E,{get:g[E],enumerable:!0})},a5=(l,g,E,A)=>{if(g&&typeof g=="object"||typeof g=="function")for(let j of H7(g))!G7.call(l,j)&&j!==E&&r5(l,j,{get:()=>g[j],enumerable:!(A=F7(g,j))||A.enumerable});return l},Z9=(l,g,E)=>(a5(l,g,"default"),E&&a5(E,g,"default")),E5=(l,g,E)=>(E=l!=null?Q7(C7(l)):{},a5(g||!l||!l.__esModule?r5(E,"default",{value:l,enumerable:!0}):E,l)),z5=(l)=>a5(r5({},"__esModule",{value:!0}),l),W7=C0((l)=>{l.byteLength=k,l.toByteArray=V,l.fromByteArray=D;var g=[],E=[],A=typeof Uint8Array<"u"?Uint8Array:Array,j="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(S=0,H=j.length;S<H;++S)g[S]=j[S],E[j.charCodeAt(S)]=S;var S,H;E[45]=62,E[95]=63;function P(U){var N=U.length;if(N%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var I=U.indexOf("=");I===-1&&(I=N);var M=I===N?0:4-I%4;return[I,M]}function k(U){var N=P(U),I=N[0],M=N[1];return(I+M)*3/4-M}function z(U,N,I){return(N+I)*3/4-I}function V(U){var N,I=P(U),M=I[0],x=I[1],v=new A(z(U,M,x)),y=0,p=x>0?M-4:M,c;for(c=0;c<p;c+=4)N=E[U.charCodeAt(c)]<<18|E[U.charCodeAt(c+1)]<<12|E[U.charCodeAt(c+2)]<<6|E[U.charCodeAt(c+3)],v[y++]=N>>16&255,v[y++]=N>>8&255,v[y++]=N&255;return x===2&&(N=E[U.charCodeAt(c)]<<2|E[U.charCodeAt(c+1)]>>4,v[y++]=N&255),x===1&&(N=E[U.charCodeAt(c)]<<10|E[U.charCodeAt(c+1)]<<4|E[U.charCodeAt(c+2)]>>2,v[y++]=N>>8&255,v[y++]=N&255),v}function $(U){return g[U>>18&63]+g[U>>12&63]+g[U>>6&63]+g[U&63]}function T(U,N,I){for(var M,x=[],v=N;v<I;v+=3)M=(U[v]<<16&16711680)+(U[v+1]<<8&65280)+(U[v+2]&255),x.push($(M));return x.join("")}function D(U){for(var N,I=U.length,M=I%3,x=[],v=16383,y=0,p=I-M;y<p;y+=v)x.push(T(U,y,y+v>p?p:y+v));return M===1?(N=U[I-1],x.push(g[N>>2]+g[N<<4&63]+"==")):M===2&&(N=(U[I-2]<<8)+U[I-1],x.push(g[N>>10]+g[N>>4&63]+g[N<<2&63]+"=")),x.join("")}}),Z7=C0((l)=>{l.read=function(g,E,A,j,S){var H,P,k=S*8-j-1,z=(1<<k)-1,V=z>>1,$=-7,T=A?S-1:0,D=A?-1:1,U=g[E+T];for(T+=D,H=U&(1<<-$)-1,U>>=-$,$+=k;$>0;H=H*256+g[E+T],T+=D,$-=8);for(P=H&(1<<-$)-1,H>>=-$,$+=j;$>0;P=P*256+g[E+T],T+=D,$-=8);if(H===0)H=1-V;else{if(H===z)return P?NaN:(U?-1:1)*(1/0);P=P+Math.pow(2,j),H=H-V}return(U?-1:1)*P*Math.pow(2,H-j)},l.write=function(g,E,A,j,S,H){var P,k,z,V=H*8-S-1,$=(1<<V)-1,T=$>>1,D=S===23?Math.pow(2,-24)-Math.pow(2,-77):0,U=j?0:H-1,N=j?1:-1,I=E<0||E===0&&1/E<0?1:0;for(E=Math.abs(E),isNaN(E)||E===1/0?(k=isNaN(E)?1:0,P=$):(P=Math.floor(Math.log(E)/Math.LN2),E*(z=Math.pow(2,-P))<1&&(P--,z*=2),P+T>=1?E+=D/z:E+=D*Math.pow(2,1-T),E*z>=2&&(P++,z/=2),P+T>=$?(k=0,P=$):P+T>=1?(k=(E*z-1)*Math.pow(2,S),P=P+T):(k=E*Math.pow(2,T-1)*Math.pow(2,S),P=0));S>=8;g[A+U]=k&255,U+=N,k/=256,S-=8);for(P=P<<S|k,V+=S;V>0;g[A+U]=P&255,U+=N,P/=256,V-=8);g[A+U-N]|=I*128}}),U5=C0((l)=>{var g=W7(),E=Z7(),A=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;l.Buffer=P,l.SlowBuffer=x,l.INSPECT_MAX_BYTES=50;var j=2147483647;l.kMaxLength=j,P.TYPED_ARRAY_SUPPORT=S(),!P.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 S(){try{let O=new Uint8Array(1),B={foo:function(){return 42}};return Object.setPrototypeOf(B,Uint8Array.prototype),Object.setPrototypeOf(O,B),O.foo()===42}catch{return!1}}Object.defineProperty(P.prototype,"parent",{enumerable:!0,get:function(){if(P.isBuffer(this))return this.buffer}}),Object.defineProperty(P.prototype,"offset",{enumerable:!0,get:function(){if(P.isBuffer(this))return this.byteOffset}});function H(O){if(O>j)throw new RangeError('The value "'+O+'" is invalid for option "size"');let B=new Uint8Array(O);return Object.setPrototypeOf(B,P.prototype),B}function P(O,B,b){if(typeof O=="number"){if(typeof B=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return $(O)}return k(O,B,b)}P.poolSize=8192;function k(O,B,b){if(typeof O=="string")return T(O,B);if(ArrayBuffer.isView(O))return U(O);if(O==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof O);if(G0(O,ArrayBuffer)||O&&G0(O.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(G0(O,SharedArrayBuffer)||O&&G0(O.buffer,SharedArrayBuffer)))return N(O,B,b);if(typeof O=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let h=O.valueOf&&O.valueOf();if(h!=null&&h!==O)return P.from(h,B,b);let o=I(O);if(o)return o;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof O[Symbol.toPrimitive]=="function")return P.from(O[Symbol.toPrimitive]("string"),B,b);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof O)}P.from=function(O,B,b){return k(O,B,b)},Object.setPrototypeOf(P.prototype,Uint8Array.prototype),Object.setPrototypeOf(P,Uint8Array);function z(O){if(typeof O!="number")throw new TypeError('"size" argument must be of type number');if(O<0)throw new RangeError('The value "'+O+'" is invalid for option "size"')}function V(O,B,b){return z(O),O<=0?H(O):B!==void 0?typeof b=="string"?H(O).fill(B,b):H(O).fill(B):H(O)}P.alloc=function(O,B,b){return V(O,B,b)};function $(O){return z(O),H(O<0?0:M(O)|0)}P.allocUnsafe=function(O){return $(O)},P.allocUnsafeSlow=function(O){return $(O)};function T(O,B){if((typeof B!="string"||B==="")&&(B="utf8"),!P.isEncoding(B))throw new TypeError("Unknown encoding: "+B);let b=v(O,B)|0,h=H(b),o=h.write(O,B);return o!==b&&(h=h.slice(0,o)),h}function D(O){let B=O.length<0?0:M(O.length)|0,b=H(B);for(let h=0;h<B;h+=1)b[h]=O[h]&255;return b}function U(O){if(G0(O,Uint8Array)){let B=new Uint8Array(O);return N(B.buffer,B.byteOffset,B.byteLength)}return D(O)}function N(O,B,b){if(B<0||O.byteLength<B)throw new RangeError('"offset" is outside of buffer bounds');if(O.byteLength<B+(b||0))throw new RangeError('"length" is outside of buffer bounds');let h;return B===void 0&&b===void 0?h=new Uint8Array(O):b===void 0?h=new Uint8Array(O,B):h=new Uint8Array(O,B,b),Object.setPrototypeOf(h,P.prototype),h}function I(O){if(P.isBuffer(O)){let B=M(O.length)|0,b=H(B);return b.length===0||O.copy(b,0,0,B),b}if(O.length!==void 0)return typeof O.length!="number"||w0(O.length)?H(0):D(O);if(O.type==="Buffer"&&Array.isArray(O.data))return D(O.data)}function M(O){if(O>=j)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+j.toString(16)+" bytes");return O|0}function x(O){return+O!=O&&(O=0),P.alloc(+O)}P.isBuffer=function(O){return O!=null&&O._isBuffer===!0&&O!==P.prototype},P.compare=function(O,B){if(G0(O,Uint8Array)&&(O=P.from(O,O.offset,O.byteLength)),G0(B,Uint8Array)&&(B=P.from(B,B.offset,B.byteLength)),!P.isBuffer(O)||!P.isBuffer(B))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(O===B)return 0;let b=O.length,h=B.length;for(let o=0,z0=Math.min(b,h);o<z0;++o)if(O[o]!==B[o]){b=O[o],h=B[o];break}return b<h?-1:h<b?1:0},P.isEncoding=function(O){switch(String(O).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}},P.concat=function(O,B){if(!Array.isArray(O))throw new TypeError('"list" argument must be an Array of Buffers');if(O.length===0)return P.alloc(0);let b;if(B===void 0)for(B=0,b=0;b<O.length;++b)B+=O[b].length;let h=P.allocUnsafe(B),o=0;for(b=0;b<O.length;++b){let z0=O[b];if(G0(z0,Uint8Array))o+z0.length>h.length?(P.isBuffer(z0)||(z0=P.from(z0)),z0.copy(h,o)):Uint8Array.prototype.set.call(h,z0,o);else if(P.isBuffer(z0))z0.copy(h,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=z0.length}return h};function v(O,B){if(P.isBuffer(O))return O.length;if(ArrayBuffer.isView(O)||G0(O,ArrayBuffer))return O.byteLength;if(typeof O!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof O);let b=O.length,h=arguments.length>2&&arguments[2]===!0;if(!h&&b===0)return 0;let o=!1;for(;;)switch(B){case"ascii":case"latin1":case"binary":return b;case"utf8":case"utf-8":return e(O).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return b*2;case"hex":return b>>>1;case"base64":return _0(O).length;default:if(o)return h?-1:e(O).length;B=(""+B).toLowerCase(),o=!0}}P.byteLength=v;function y(O,B,b){let h=!1;if((B===void 0||B<0)&&(B=0),B>this.length||((b===void 0||b>this.length)&&(b=this.length),b<=0)||(b>>>=0,B>>>=0,b<=B))return"";for(O||(O="utf8");;)switch(O){case"hex":return C(this,B,b);case"utf8":case"utf-8":return Q(this,B,b);case"ascii":return W(this,B,b);case"latin1":case"binary":return Z(this,B,b);case"base64":return Y(this,B,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,B,b);default:if(h)throw new TypeError("Unknown encoding: "+O);O=(O+"").toLowerCase(),h=!0}}P.prototype._isBuffer=!0;function p(O,B,b){let h=O[B];O[B]=O[b],O[b]=h}P.prototype.swap16=function(){let O=this.length;if(O%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let B=0;B<O;B+=2)p(this,B,B+1);return this},P.prototype.swap32=function(){let O=this.length;if(O%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let B=0;B<O;B+=4)p(this,B,B+3),p(this,B+1,B+2);return this},P.prototype.swap64=function(){let O=this.length;if(O%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let B=0;B<O;B+=8)p(this,B,B+7),p(this,B+1,B+6),p(this,B+2,B+5),p(this,B+3,B+4);return this},P.prototype.toString=function(){let O=this.length;return O===0?"":arguments.length===0?Q(this,0,O):y.apply(this,arguments)},P.prototype.toLocaleString=P.prototype.toString,P.prototype.equals=function(O){if(!P.isBuffer(O))throw new TypeError("Argument must be a Buffer");return this===O?!0:P.compare(this,O)===0},P.prototype.inspect=function(){let O="",B=l.INSPECT_MAX_BYTES;return O=this.toString("hex",0,B).replace(/(.{2})/g,"$1 ").trim(),this.length>B&&(O+=" ... "),"<Buffer "+O+">"},A&&(P.prototype[A]=P.prototype.inspect),P.prototype.compare=function(O,B,b,h,o){if(G0(O,Uint8Array)&&(O=P.from(O,O.offset,O.byteLength)),!P.isBuffer(O))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof O);if(B===void 0&&(B=0),b===void 0&&(b=O?O.length:0),h===void 0&&(h=0),o===void 0&&(o=this.length),B<0||b>O.length||h<0||o>this.length)throw new RangeError("out of range index");if(h>=o&&B>=b)return 0;if(h>=o)return-1;if(B>=b)return 1;if(B>>>=0,b>>>=0,h>>>=0,o>>>=0,this===O)return 0;let z0=o-h,J0=b-B,$0=Math.min(z0,J0),b0=this.slice(h,o),P0=O.slice(B,b);for(let j0=0;j0<$0;++j0)if(b0[j0]!==P0[j0]){z0=b0[j0],J0=P0[j0];break}return z0<J0?-1:J0<z0?1:0};function c(O,B,b,h,o){if(O.length===0)return-1;if(typeof b=="string"?(h=b,b=0):b>2147483647?b=2147483647:b<-2147483648&&(b=-2147483648),b=+b,w0(b)&&(b=o?0:O.length-1),b<0&&(b=O.length+b),b>=O.length){if(o)return-1;b=O.length-1}else if(b<0)if(o)b=0;else return-1;if(typeof B=="string"&&(B=P.from(B,h)),P.isBuffer(B))return B.length===0?-1:n(O,B,b,h,o);if(typeof B=="number")return B=B&255,typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(O,B,b):Uint8Array.prototype.lastIndexOf.call(O,B,b):n(O,[B],b,h,o);throw new TypeError("val must be string, number or Buffer")}function n(O,B,b,h,o){let z0=1,J0=O.length,$0=B.length;if(h!==void 0&&(h=String(h).toLowerCase(),h==="ucs2"||h==="ucs-2"||h==="utf16le"||h==="utf-16le")){if(O.length<2||B.length<2)return-1;z0=2,J0/=2,$0/=2,b/=2}function b0(j0,y0){return z0===1?j0[y0]:j0.readUInt16BE(y0*z0)}let P0;if(o){let j0=-1;for(P0=b;P0<J0;P0++)if(b0(O,P0)===b0(B,j0===-1?0:P0-j0)){if(j0===-1&&(j0=P0),P0-j0+1===$0)return j0*z0}else j0!==-1&&(P0-=P0-j0),j0=-1}else for(b+$0>J0&&(b=J0-$0),P0=b;P0>=0;P0--){let j0=!0;for(let y0=0;y0<$0;y0++)if(b0(O,P0+y0)!==b0(B,y0)){j0=!1;break}if(j0)return P0}return-1}P.prototype.includes=function(O,B,b){return this.indexOf(O,B,b)!==-1},P.prototype.indexOf=function(O,B,b){return c(this,O,B,b,!0)},P.prototype.lastIndexOf=function(O,B,b){return c(this,O,B,b,!1)};function i(O,B,b,h){b=Number(b)||0;let o=O.length-b;h?(h=Number(h),h>o&&(h=o)):h=o;let z0=B.length;h>z0/2&&(h=z0/2);let J0;for(J0=0;J0<h;++J0){let $0=parseInt(B.substr(J0*2,2),16);if(w0($0))return J0;O[b+J0]=$0}return J0}function Q0(O,B,b,h){return H0(e(B,O.length-b),O,b,h)}function f(O,B,b,h){return H0(K0(B),O,b,h)}function W0(O,B,b,h){return H0(_0(B),O,b,h)}function X(O,B,b,h){return H0(t(B,O.length-b),O,b,h)}P.prototype.write=function(O,B,b,h){if(B===void 0)h="utf8",b=this.length,B=0;else if(b===void 0&&typeof B=="string")h=B,b=this.length,B=0;else if(isFinite(B))B=B>>>0,isFinite(b)?(b=b>>>0,h===void 0&&(h="utf8")):(h=b,b=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let o=this.length-B;if((b===void 0||b>o)&&(b=o),O.length>0&&(b<0||B<0)||B>this.length)throw new RangeError("Attempt to write outside buffer bounds");h||(h="utf8");let z0=!1;for(;;)switch(h){case"hex":return i(this,O,B,b);case"utf8":case"utf-8":return Q0(this,O,B,b);case"ascii":case"latin1":case"binary":return f(this,O,B,b);case"base64":return W0(this,O,B,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return X(this,O,B,b);default:if(z0)throw new TypeError("Unknown encoding: "+h);h=(""+h).toLowerCase(),z0=!0}},P.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Y(O,B,b){return B===0&&b===O.length?g.fromByteArray(O):g.fromByteArray(O.slice(B,b))}function Q(O,B,b){b=Math.min(O.length,b);let h=[],o=B;for(;o<b;){let z0=O[o],J0=null,$0=z0>239?4:z0>223?3:z0>191?2:1;if(o+$0<=b){let b0,P0,j0,y0;switch($0){case 1:z0<128&&(J0=z0);break;case 2:b0=O[o+1],(b0&192)===128&&(y0=(z0&31)<<6|b0&63,y0>127&&(J0=y0));break;case 3:b0=O[o+1],P0=O[o+2],(b0&192)===128&&(P0&192)===128&&(y0=(z0&15)<<12|(b0&63)<<6|P0&63,y0>2047&&(y0<55296||y0>57343)&&(J0=y0));break;case 4:b0=O[o+1],P0=O[o+2],j0=O[o+3],(b0&192)===128&&(P0&192)===128&&(j0&192)===128&&(y0=(z0&15)<<18|(b0&63)<<12|(P0&63)<<6|j0&63,y0>65535&&y0<1114112&&(J0=y0))}}J0===null?(J0=65533,$0=1):J0>65535&&(J0-=65536,h.push(J0>>>10&1023|55296),J0=56320|J0&1023),h.push(J0),o+=$0}return F(h)}var J=4096;function F(O){let B=O.length;if(B<=J)return String.fromCharCode.apply(String,O);let b="",h=0;for(;h<B;)b+=String.fromCharCode.apply(String,O.slice(h,h+=J));return b}function W(O,B,b){let h="";b=Math.min(O.length,b);for(let o=B;o<b;++o)h+=String.fromCharCode(O[o]&127);return h}function Z(O,B,b){let h="";b=Math.min(O.length,b);for(let o=B;o<b;++o)h+=String.fromCharCode(O[o]);return h}function C(O,B,b){let h=O.length;(!B||B<0)&&(B=0),(!b||b<0||b>h)&&(b=h);let o="";for(let z0=B;z0<b;++z0)o+=U0[O[z0]];return o}function K(O,B,b){let h=O.slice(B,b),o="";for(let z0=0;z0<h.length-1;z0+=2)o+=String.fromCharCode(h[z0]+h[z0+1]*256);return o}P.prototype.slice=function(O,B){let b=this.length;O=~~O,B=B===void 0?b:~~B,O<0?(O+=b,O<0&&(O=0)):O>b&&(O=b),B<0?(B+=b,B<0&&(B=0)):B>b&&(B=b),B<O&&(B=O);let h=this.subarray(O,B);return Object.setPrototypeOf(h,P.prototype),h};function G(O,B,b){if(O%1!==0||O<0)throw new RangeError("offset is not uint");if(O+B>b)throw new RangeError("Trying to access beyond buffer length")}P.prototype.readUintLE=P.prototype.readUIntLE=function(O,B,b){O=O>>>0,B=B>>>0,b||G(O,B,this.length);let h=this[O],o=1,z0=0;for(;++z0<B&&(o*=256);)h+=this[O+z0]*o;return h},P.prototype.readUintBE=P.prototype.readUIntBE=function(O,B,b){O=O>>>0,B=B>>>0,b||G(O,B,this.length);let h=this[O+--B],o=1;for(;B>0&&(o*=256);)h+=this[O+--B]*o;return h},P.prototype.readUint8=P.prototype.readUInt8=function(O,B){return O=O>>>0,B||G(O,1,this.length),this[O]},P.prototype.readUint16LE=P.prototype.readUInt16LE=function(O,B){return O=O>>>0,B||G(O,2,this.length),this[O]|this[O+1]<<8},P.prototype.readUint16BE=P.prototype.readUInt16BE=function(O,B){return O=O>>>0,B||G(O,2,this.length),this[O]<<8|this[O+1]},P.prototype.readUint32LE=P.prototype.readUInt32LE=function(O,B){return O=O>>>0,B||G(O,4,this.length),(this[O]|this[O+1]<<8|this[O+2]<<16)+this[O+3]*16777216},P.prototype.readUint32BE=P.prototype.readUInt32BE=function(O,B){return O=O>>>0,B||G(O,4,this.length),this[O]*16777216+(this[O+1]<<16|this[O+2]<<8|this[O+3])},P.prototype.readBigUInt64LE=Z0(function(O){O=O>>>0,F0(O,"offset");let B=this[O],b=this[O+7];(B===void 0||b===void 0)&&w(O,this.length-8);let h=B+this[++O]*256+this[++O]*65536+this[++O]*16777216,o=this[++O]+this[++O]*256+this[++O]*65536+b*16777216;return BigInt(h)+(BigInt(o)<<BigInt(32))}),P.prototype.readBigUInt64BE=Z0(function(O){O=O>>>0,F0(O,"offset");let B=this[O],b=this[O+7];(B===void 0||b===void 0)&&w(O,this.length-8);let h=B*16777216+this[++O]*65536+this[++O]*256+this[++O],o=this[++O]*16777216+this[++O]*65536+this[++O]*256+b;return(BigInt(h)<<BigInt(32))+BigInt(o)}),P.prototype.readIntLE=function(O,B,b){O=O>>>0,B=B>>>0,b||G(O,B,this.length);let h=this[O],o=1,z0=0;for(;++z0<B&&(o*=256);)h+=this[O+z0]*o;return o*=128,h>=o&&(h-=Math.pow(2,8*B)),h},P.prototype.readIntBE=function(O,B,b){O=O>>>0,B=B>>>0,b||G(O,B,this.length);let h=B,o=1,z0=this[O+--h];for(;h>0&&(o*=256);)z0+=this[O+--h]*o;return o*=128,z0>=o&&(z0-=Math.pow(2,8*B)),z0},P.prototype.readInt8=function(O,B){return O=O>>>0,B||G(O,1,this.length),this[O]&128?(255-this[O]+1)*-1:this[O]},P.prototype.readInt16LE=function(O,B){O=O>>>0,B||G(O,2,this.length);let b=this[O]|this[O+1]<<8;return b&32768?b|4294901760:b},P.prototype.readInt16BE=function(O,B){O=O>>>0,B||G(O,2,this.length);let b=this[O+1]|this[O]<<8;return b&32768?b|4294901760:b},P.prototype.readInt32LE=function(O,B){return O=O>>>0,B||G(O,4,this.length),this[O]|this[O+1]<<8|this[O+2]<<16|this[O+3]<<24},P.prototype.readInt32BE=function(O,B){return O=O>>>0,B||G(O,4,this.length),this[O]<<24|this[O+1]<<16|this[O+2]<<8|this[O+3]},P.prototype.readBigInt64LE=Z0(function(O){O=O>>>0,F0(O,"offset");let B=this[O],b=this[O+7];(B===void 0||b===void 0)&&w(O,this.length-8);let h=this[O+4]+this[O+5]*256+this[O+6]*65536+(b<<24);return(BigInt(h)<<BigInt(32))+BigInt(B+this[++O]*256+this[++O]*65536+this[++O]*16777216)}),P.prototype.readBigInt64BE=Z0(function(O){O=O>>>0,F0(O,"offset");let B=this[O],b=this[O+7];(B===void 0||b===void 0)&&w(O,this.length-8);let h=(B<<24)+this[++O]*65536+this[++O]*256+this[++O];return(BigInt(h)<<BigInt(32))+BigInt(this[++O]*16777216+this[++O]*65536+this[++O]*256+b)}),P.prototype.readFloatLE=function(O,B){return O=O>>>0,B||G(O,4,this.length),E.read(this,O,!0,23,4)},P.prototype.readFloatBE=function(O,B){return O=O>>>0,B||G(O,4,this.length),E.read(this,O,!1,23,4)},P.prototype.readDoubleLE=function(O,B){return O=O>>>0,B||G(O,8,this.length),E.read(this,O,!0,52,8)},P.prototype.readDoubleBE=function(O,B){return O=O>>>0,B||G(O,8,this.length),E.read(this,O,!1,52,8)};function R(O,B,b,h,o,z0){if(!P.isBuffer(O))throw new TypeError('"buffer" argument must be a Buffer instance');if(B>o||B<z0)throw new RangeError('"value" argument is out of bounds');if(b+h>O.length)throw new RangeError("Index out of range")}P.prototype.writeUintLE=P.prototype.writeUIntLE=function(O,B,b,h){if(O=+O,B=B>>>0,b=b>>>0,!h){let J0=Math.pow(2,8*b)-1;R(this,O,B,b,J0,0)}let o=1,z0=0;for(this[B]=O&255;++z0<b&&(o*=256);)this[B+z0]=O/o&255;return B+b},P.prototype.writeUintBE=P.prototype.writeUIntBE=function(O,B,b,h){if(O=+O,B=B>>>0,b=b>>>0,!h){let J0=Math.pow(2,8*b)-1;R(this,O,B,b,J0,0)}let o=b-1,z0=1;for(this[B+o]=O&255;--o>=0&&(z0*=256);)this[B+o]=O/z0&255;return B+b},P.prototype.writeUint8=P.prototype.writeUInt8=function(O,B,b){return O=+O,B=B>>>0,b||R(this,O,B,1,255,0),this[B]=O&255,B+1},P.prototype.writeUint16LE=P.prototype.writeUInt16LE=function(O,B,b){return O=+O,B=B>>>0,b||R(this,O,B,2,65535,0),this[B]=O&255,this[B+1]=O>>>8,B+2},P.prototype.writeUint16BE=P.prototype.writeUInt16BE=function(O,B,b){return O=+O,B=B>>>0,b||R(this,O,B,2,65535,0),this[B]=O>>>8,this[B+1]=O&255,B+2},P.prototype.writeUint32LE=P.prototype.writeUInt32LE=function(O,B,b){return O=+O,B=B>>>0,b||R(this,O,B,4,4294967295,0),this[B+3]=O>>>24,this[B+2]=O>>>16,this[B+1]=O>>>8,this[B]=O&255,B+4},P.prototype.writeUint32BE=P.prototype.writeUInt32BE=function(O,B,b){return O=+O,B=B>>>0,b||R(this,O,B,4,4294967295,0),this[B]=O>>>24,this[B+1]=O>>>16,this[B+2]=O>>>8,this[B+3]=O&255,B+4};function L(O,B,b,h,o){X0(B,h,o,O,b,7);let z0=Number(B&BigInt(4294967295));O[b++]=z0,z0=z0>>8,O[b++]=z0,z0=z0>>8,O[b++]=z0,z0=z0>>8,O[b++]=z0;let J0=Number(B>>BigInt(32)&BigInt(4294967295));return O[b++]=J0,J0=J0>>8,O[b++]=J0,J0=J0>>8,O[b++]=J0,J0=J0>>8,O[b++]=J0,b}function _(O,B,b,h,o){X0(B,h,o,O,b,7);let z0=Number(B&BigInt(4294967295));O[b+7]=z0,z0=z0>>8,O[b+6]=z0,z0=z0>>8,O[b+5]=z0,z0=z0>>8,O[b+4]=z0;let J0=Number(B>>BigInt(32)&BigInt(4294967295));return O[b+3]=J0,J0=J0>>8,O[b+2]=J0,J0=J0>>8,O[b+1]=J0,J0=J0>>8,O[b]=J0,b+8}P.prototype.writeBigUInt64LE=Z0(function(O,B=0){return L(this,O,B,BigInt(0),BigInt("0xffffffffffffffff"))}),P.prototype.writeBigUInt64BE=Z0(function(O,B=0){return _(this,O,B,BigInt(0),BigInt("0xffffffffffffffff"))}),P.prototype.writeIntLE=function(O,B,b,h){if(O=+O,B=B>>>0,!h){let $0=Math.pow(2,8*b-1);R(this,O,B,b,$0-1,-$0)}let o=0,z0=1,J0=0;for(this[B]=O&255;++o<b&&(z0*=256);)O<0&&J0===0&&this[B+o-1]!==0&&(J0=1),this[B+o]=(O/z0>>0)-J0&255;return B+b},P.prototype.writeIntBE=function(O,B,b,h){if(O=+O,B=B>>>0,!h){let $0=Math.pow(2,8*b-1);R(this,O,B,b,$0-1,-$0)}let o=b-1,z0=1,J0=0;for(this[B+o]=O&255;--o>=0&&(z0*=256);)O<0&&J0===0&&this[B+o+1]!==0&&(J0=1),this[B+o]=(O/z0>>0)-J0&255;return B+b},P.prototype.writeInt8=function(O,B,b){return O=+O,B=B>>>0,b||R(this,O,B,1,127,-128),O<0&&(O=255+O+1),this[B]=O&255,B+1},P.prototype.writeInt16LE=function(O,B,b){return O=+O,B=B>>>0,b||R(this,O,B,2,32767,-32768),this[B]=O&255,this[B+1]=O>>>8,B+2},P.prototype.writeInt16BE=function(O,B,b){return O=+O,B=B>>>0,b||R(this,O,B,2,32767,-32768),this[B]=O>>>8,this[B+1]=O&255,B+2},P.prototype.writeInt32LE=function(O,B,b){return O=+O,B=B>>>0,b||R(this,O,B,4,2147483647,-2147483648),this[B]=O&255,this[B+1]=O>>>8,this[B+2]=O>>>16,this[B+3]=O>>>24,B+4},P.prototype.writeInt32BE=function(O,B,b){return O=+O,B=B>>>0,b||R(this,O,B,4,2147483647,-2147483648),O<0&&(O=4294967295+O+1),this[B]=O>>>24,this[B+1]=O>>>16,this[B+2]=O>>>8,this[B+3]=O&255,B+4},P.prototype.writeBigInt64LE=Z0(function(O,B=0){return L(this,O,B,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),P.prototype.writeBigInt64BE=Z0(function(O,B=0){return _(this,O,B,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function s(O,B,b,h,o,z0){if(b+h>O.length)throw new RangeError("Index out of range");if(b<0)throw new RangeError("Index out of range")}function r(O,B,b,h,o){return B=+B,b=b>>>0,o||s(O,B,b,4,340282346638528860000000000000000000000,-340282346638528860000000000000000000000),E.write(O,B,b,h,23,4),b+4}P.prototype.writeFloatLE=function(O,B,b){return r(this,O,B,!0,b)},P.prototype.writeFloatBE=function(O,B,b){return r(this,O,B,!1,b)};function Y0(O,B,b,h,o){return B=+B,b=b>>>0,o||s(O,B,b,8,179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,-179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000),E.write(O,B,b,h,52,8),b+8}P.prototype.writeDoubleLE=function(O,B,b){return Y0(this,O,B,!0,b)},P.prototype.writeDoubleBE=function(O,B,b){return Y0(this,O,B,!1,b)},P.prototype.copy=function(O,B,b,h){if(!P.isBuffer(O))throw new TypeError("argument should be a Buffer");if(b||(b=0),!h&&h!==0&&(h=this.length),B>=O.length&&(B=O.length),B||(B=0),h>0&&h<b&&(h=b),h===b||O.length===0||this.length===0)return 0;if(B<0)throw new RangeError("targetStart out of bounds");if(b<0||b>=this.length)throw new RangeError("Index out of range");if(h<0)throw new RangeError("sourceEnd out of bounds");h>this.length&&(h=this.length),O.length-B<h-b&&(h=O.length-B+b);let o=h-b;return this===O&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(B,b,h):Uint8Array.prototype.set.call(O,this.subarray(b,h),B),o},P.prototype.fill=function(O,B,b,h){if(typeof O=="string"){if(typeof B=="string"?(h=B,B=0,b=this.length):typeof b=="string"&&(h=b,b=this.length),h!==void 0&&typeof h!="string")throw new TypeError("encoding must be a string");if(typeof h=="string"&&!P.isEncoding(h))throw new TypeError("Unknown encoding: "+h);if(O.length===1){let z0=O.charCodeAt(0);(h==="utf8"&&z0<128||h==="latin1")&&(O=z0)}}else typeof O=="number"?O=O&255:typeof O=="boolean"&&(O=Number(O));if(B<0||this.length<B||this.length<b)throw new RangeError("Out of range index");if(b<=B)return this;B=B>>>0,b=b===void 0?this.length:b>>>0,O||(O=0);let o;if(typeof O=="number")for(o=B;o<b;++o)this[o]=O;else{let z0=P.isBuffer(O)?O:P.from(O,h),J0=z0.length;if(J0===0)throw new TypeError('The value "'+O+'" is invalid for argument "value"');for(o=0;o<b-B;++o)this[o+B]=z0[o%J0]}return this};var u={};function d(O,B,b){u[O]=class extends b{constructor(){super(),Object.defineProperty(this,"message",{value:B.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${O}]`,this.stack,delete this.name}get code(){return O}set code(h){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:h,writable:!0})}toString(){return`${this.name} [${O}]: ${this.message}`}}}d("ERR_BUFFER_OUT_OF_BOUNDS",function(O){return O?`${O} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),d("ERR_INVALID_ARG_TYPE",function(O,B){return`The "${O}" argument must be of type number. Received type ${typeof B}`},TypeError),d("ERR_OUT_OF_RANGE",function(O,B,b){let h=`The value of "${O}" is out of range.`,o=b;return Number.isInteger(b)&&Math.abs(b)>4294967296?o=a(String(b)):typeof b=="bigint"&&(o=String(b),(b>BigInt(2)**BigInt(32)||b<-(BigInt(2)**BigInt(32)))&&(o=a(o)),o+="n"),h+=` It must be ${B}. Received ${o}`,h},RangeError);function a(O){let B="",b=O.length,h=O[0]==="-"?1:0;for(;b>=h+4;b-=3)B=`_${O.slice(b-3,b)}${B}`;return`${O.slice(0,b)}${B}`}function V0(O,B,b){F0(B,"offset"),(O[B]===void 0||O[B+b]===void 0)&&w(B,O.length-(b+1))}function X0(O,B,b,h,o,z0){if(O>b||O<B){let J0=typeof B=="bigint"?"n":"",$0;throw z0>3?B===0||B===BigInt(0)?$0=`>= 0${J0} and < 2${J0} ** ${(z0+1)*8}${J0}`:$0=`>= -(2${J0} ** ${(z0+1)*8-1}${J0}) and < 2 ** ${(z0+1)*8-1}${J0}`:$0=`>= ${B}${J0} and <= ${b}${J0}`,new u.ERR_OUT_OF_RANGE("value",$0,O)}V0(h,o,z0)}function F0(O,B){if(typeof O!="number")throw new u.ERR_INVALID_ARG_TYPE(B,"number",O)}function w(O,B,b){throw Math.floor(O)!==O?(F0(O,b),new u.ERR_OUT_OF_RANGE(b||"offset","an integer",O)):B<0?new u.ERR_BUFFER_OUT_OF_BOUNDS:new u.ERR_OUT_OF_RANGE(b||"offset",`>= ${b?1:0} and <= ${B}`,O)}var q=/[^+/0-9A-Za-z-_]/g;function m(O){if(O=O.split("=")[0],O=O.trim().replace(q,""),O.length<2)return"";for(;O.length%4!==0;)O=O+"=";return O}function e(O,B){B=B||1/0;let b,h=O.length,o=null,z0=[];for(let J0=0;J0<h;++J0){if(b=O.charCodeAt(J0),b>55295&&b<57344){if(!o){if(b>56319){(B-=3)>-1&&z0.push(239,191,189);continue}else if(J0+1===h){(B-=3)>-1&&z0.push(239,191,189);continue}o=b;continue}if(b<56320){(B-=3)>-1&&z0.push(239,191,189),o=b;continue}b=(o-55296<<10|b-56320)+65536}else o&&(B-=3)>-1&&z0.push(239,191,189);if(o=null,b<128){if((B-=1)<0)break;z0.push(b)}else if(b<2048){if((B-=2)<0)break;z0.push(b>>6|192,b&63|128)}else if(b<65536){if((B-=3)<0)break;z0.push(b>>12|224,b>>6&63|128,b&63|128)}else if(b<1114112){if((B-=4)<0)break;z0.push(b>>18|240,b>>12&63|128,b>>6&63|128,b&63|128)}else throw new Error("Invalid code point")}return z0}function K0(O){let B=[];for(let b=0;b<O.length;++b)B.push(O.charCodeAt(b)&255);return B}function t(O,B){let b,h,o,z0=[];for(let J0=0;J0<O.length&&!((B-=2)<0);++J0)b=O.charCodeAt(J0),h=b>>8,o=b%256,z0.push(o),z0.push(h);return z0}function _0(O){return g.toByteArray(m(O))}function H0(O,B,b,h){let o;for(o=0;o<h&&!(o+b>=B.length||o>=O.length);++o)B[o+b]=O[o];return o}function G0(O,B){return O instanceof B||O!=null&&O.constructor!=null&&O.constructor.name!=null&&O.constructor.name===B.name}function w0(O){return O!==O}var U0=function(){let O="0123456789abcdef",B=new Array(256);for(let b=0;b<16;++b){let h=b*16;for(let o=0;o<16;++o)B[h+o]=O[b]+O[o]}return B}();function Z0(O){return typeof BigInt>"u"?c0:O}function c0(){throw new Error("BigInt not supported")}}),d0=C0((l,g)=>{var E=U5(),A=E.Buffer;function j(H,P){for(var k in H)P[k]=H[k]}A.from&&A.alloc&&A.allocUnsafe&&A.allocUnsafeSlow?g.exports=E:(j(E,l),l.Buffer=S);function S(H,P,k){return A(H,P,k)}S.prototype=Object.create(A.prototype),j(A,S),S.from=function(H,P,k){if(typeof H=="number")throw new TypeError("Argument must not be a number");return A(H,P,k)},S.alloc=function(H,P,k){if(typeof H!="number")throw new TypeError("Argument must be a number");var z=A(H);return P!==void 0?typeof k=="string"?z.fill(P,k):z.fill(P):z.fill(0),z},S.allocUnsafe=function(H){if(typeof H!="number")throw new TypeError("Argument must be a number");return A(H)},S.allocUnsafeSlow=function(H){if(typeof H!="number")throw new TypeError("Argument must be a number");return E.SlowBuffer(H)}}),g5=C0((l,g)=>{var E=65536,A=4294967295;function j(){throw new Error(`Secure random number generation is not supported by this browser.
2
+ Use Chrome, Firefox or Internet Explorer 11`)}var S=d0().Buffer,H=global.crypto||global.msCrypto;H&&H.getRandomValues?g.exports=P:g.exports=j;function P(k,z){if(k>A)throw new RangeError("requested too many random bytes");var V=S.allocUnsafe(k);if(k>0)if(k>E)for(var $=0;$<k;$+=E)H.getRandomValues(V.slice($,$+E));else H.getRandomValues(V);return typeof z=="function"?process.nextTick(function(){z(null,V)}):V}}),p0=C0((l,g)=>{typeof Object.create=="function"?g.exports=function(E,A){A&&(E.super_=A,E.prototype=Object.create(A.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}))}:g.exports=function(E,A){if(A){E.super_=A;var j=function(){};j.prototype=A.prototype,E.prototype=new j,E.prototype.constructor=E}}}),S5=C0((l,g)=>{var E=typeof Reflect=="object"?Reflect:null,A=E&&typeof E.apply=="function"?E.apply:function(c,n,i){return Function.prototype.apply.call(c,n,i)},j;E&&typeof E.ownKeys=="function"?j=E.ownKeys:Object.getOwnPropertySymbols?j=function(c){return Object.getOwnPropertyNames(c).concat(Object.getOwnPropertySymbols(c))}:j=function(c){return Object.getOwnPropertyNames(c)};function S(c){console&&console.warn&&console.warn(c)}var H=Number.isNaN||function(c){return c!==c};function P(){P.init.call(this)}g.exports=P,g.exports.once=v,P.EventEmitter=P,P.prototype._events=void 0,P.prototype._eventsCount=0,P.prototype._maxListeners=void 0;var k=10;function z(c){if(typeof c!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof c)}Object.defineProperty(P,"defaultMaxListeners",{enumerable:!0,get:function(){return k},set:function(c){if(typeof c!="number"||c<0||H(c))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+c+".");k=c}}),P.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},P.prototype.setMaxListeners=function(c){if(typeof c!="number"||c<0||H(c))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+c+".");return this._maxListeners=c,this};function V(c){return c._maxListeners===void 0?P.defaultMaxListeners:c._maxListeners}P.prototype.getMaxListeners=function(){return V(this)},P.prototype.emit=function(c){for(var n=[],i=1;i<arguments.length;i++)n.push(arguments[i]);var Q0=c==="error",f=this._events;if(f!==void 0)Q0=Q0&&f.error===void 0;else if(!Q0)return!1;if(Q0){var W0;if(n.length>0&&(W0=n[0]),W0 instanceof Error)throw W0;var X=new Error("Unhandled error."+(W0?" ("+W0.message+")":""));throw X.context=W0,X}var Y=f[c];if(Y===void 0)return!1;if(typeof Y=="function")A(Y,this,n);else for(var Q=Y.length,J=I(Y,Q),i=0;i<Q;++i)A(J[i],this,n);return!0};function $(c,n,i,Q0){var f,W0,X;if(z(i),W0=c._events,W0===void 0?(W0=c._events=Object.create(null),c._eventsCount=0):(W0.newListener!==void 0&&(c.emit("newListener",n,i.listener?i.listener:i),W0=c._events),X=W0[n]),X===void 0)X=W0[n]=i,++c._eventsCount;else if(typeof X=="function"?X=W0[n]=Q0?[i,X]:[X,i]:Q0?X.unshift(i):X.push(i),f=V(c),f>0&&X.length>f&&!X.warned){X.warned=!0;var Y=new Error("Possible EventEmitter memory leak detected. "+X.length+" "+String(n)+" listeners added. Use emitter.setMaxListeners() to increase limit");Y.name="MaxListenersExceededWarning",Y.emitter=c,Y.type=n,Y.count=X.length,S(Y)}return c}P.prototype.addListener=function(c,n){return $(this,c,n,!1)},P.prototype.on=P.prototype.addListener,P.prototype.prependListener=function(c,n){return $(this,c,n,!0)};function T(){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 D(c,n,i){var Q0={fired:!1,wrapFn:void 0,target:c,type:n,listener:i},f=T.bind(Q0);return f.listener=i,Q0.wrapFn=f,f}P.prototype.once=function(c,n){return z(n),this.on(c,D(this,c,n)),this},P.prototype.prependOnceListener=function(c,n){return z(n),this.prependListener(c,D(this,c,n)),this},P.prototype.removeListener=function(c,n){var i,Q0,f,W0,X;if(z(n),Q0=this._events,Q0===void 0)return this;if(i=Q0[c],i===void 0)return this;if(i===n||i.listener===n)--this._eventsCount===0?this._events=Object.create(null):(delete Q0[c],Q0.removeListener&&this.emit("removeListener",c,i.listener||n));else if(typeof i!="function"){for(f=-1,W0=i.length-1;W0>=0;W0--)if(i[W0]===n||i[W0].listener===n){X=i[W0].listener,f=W0;break}if(f<0)return this;f===0?i.shift():M(i,f),i.length===1&&(Q0[c]=i[0]),Q0.removeListener!==void 0&&this.emit("removeListener",c,X||n)}return this},P.prototype.off=P.prototype.removeListener,P.prototype.removeAllListeners=function(c){var n,i,Q0;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[c]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete i[c]),this;if(arguments.length===0){var f=Object.keys(i),W0;for(Q0=0;Q0<f.length;++Q0)W0=f[Q0],W0!=="removeListener"&&this.removeAllListeners(W0);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(n=i[c],typeof n=="function")this.removeListener(c,n);else if(n!==void 0)for(Q0=n.length-1;Q0>=0;Q0--)this.removeListener(c,n[Q0]);return this};function U(c,n,i){var Q0=c._events;if(Q0===void 0)return[];var f=Q0[n];return f===void 0?[]:typeof f=="function"?i?[f.listener||f]:[f]:i?x(f):I(f,f.length)}P.prototype.listeners=function(c){return U(this,c,!0)},P.prototype.rawListeners=function(c){return U(this,c,!1)},P.listenerCount=function(c,n){return typeof c.listenerCount=="function"?c.listenerCount(n):N.call(c,n)},P.prototype.listenerCount=N;function N(c){var n=this._events;if(n!==void 0){var i=n[c];if(typeof i=="function")return 1;if(i!==void 0)return i.length}return 0}P.prototype.eventNames=function(){return this._eventsCount>0?j(this._events):[]};function I(c,n){for(var i=new Array(n),Q0=0;Q0<n;++Q0)i[Q0]=c[Q0];return i}function M(c,n){for(;n+1<c.length;n++)c[n]=c[n+1];c.pop()}function x(c){for(var n=new Array(c.length),i=0;i<n.length;++i)n[i]=c[i].listener||c[i];return n}function v(c,n){return new Promise(function(i,Q0){function f(X){c.removeListener(n,W0),Q0(X)}function W0(){typeof c.removeListener=="function"&&c.removeListener("error",f),i([].slice.call(arguments))}p(c,n,W0,{once:!0}),n!=="error"&&y(c,f,{once:!0})})}function y(c,n,i){typeof c.on=="function"&&p(c,"error",n,i)}function p(c,n,i,Q0){if(typeof c.on=="function")Q0.once?c.once(n,i):c.on(n,i);else if(typeof c.addEventListener=="function")c.addEventListener(n,function f(W0){Q0.once&&c.removeEventListener(n,f),i(W0)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof c)}}),h9=C0((l,g)=>{g.exports=S5().EventEmitter}),t5=C0(()=>{}),$7=C0((l,g)=>{function E(U,N){var I=Object.keys(U);if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(U);N&&(M=M.filter(function(x){return Object.getOwnPropertyDescriptor(U,x).enumerable})),I.push.apply(I,M)}return I}function A(U){for(var N=1;N<arguments.length;N++){var I=arguments[N]!=null?arguments[N]:{};N%2?E(Object(I),!0).forEach(function(M){j(U,M,I[M])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(I)):E(Object(I)).forEach(function(M){Object.defineProperty(U,M,Object.getOwnPropertyDescriptor(I,M))})}return U}function j(U,N,I){return N in U?Object.defineProperty(U,N,{value:I,enumerable:!0,configurable:!0,writable:!0}):U[N]=I,U}function S(U,N){if(!(U instanceof N))throw new TypeError("Cannot call a class as a function")}function H(U,N){for(var I=0;I<N.length;I++){var M=N[I];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(U,M.key,M)}}function P(U,N,I){return N&&H(U.prototype,N),I&&H(U,I),U}var k=U5(),z=k.Buffer,V=t5(),$=V.inspect,T=$&&$.custom||"inspect";function D(U,N,I){z.prototype.copy.call(U,N,I)}g.exports=function(){function U(){S(this,U),this.head=null,this.tail=null,this.length=0}return P(U,[{key:"push",value:function(N){var I={data:N,next:null};this.length>0?this.tail.next=I:this.head=I,this.tail=I,++this.length}},{key:"unshift",value:function(N){var I={data:N,next:this.head};this.length===0&&(this.tail=I),this.head=I,++this.length}},{key:"shift",value:function(){if(this.length!==0){var N=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,N}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(N){if(this.length===0)return"";for(var I=this.head,M=""+I.data;I=I.next;)M+=N+I.data;return M}},{key:"concat",value:function(N){if(this.length===0)return z.alloc(0);for(var I=z.allocUnsafe(N>>>0),M=this.head,x=0;M;)D(M.data,I,x),x+=M.data.length,M=M.next;return I}},{key:"consume",value:function(N,I){var M;return N<this.head.data.length?(M=this.head.data.slice(0,N),this.head.data=this.head.data.slice(N)):N===this.head.data.length?M=this.shift():M=I?this._getString(N):this._getBuffer(N),M}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(N){var I=this.head,M=1,x=I.data;for(N-=x.length;I=I.next;){var v=I.data,y=N>v.length?v.length:N;if(y===v.length?x+=v:x+=v.slice(0,N),N-=y,N===0){y===v.length?(++M,I.next?this.head=I.next:this.head=this.tail=null):(this.head=I,I.data=v.slice(y));break}++M}return this.length-=M,x}},{key:"_getBuffer",value:function(N){var I=z.allocUnsafe(N),M=this.head,x=1;for(M.data.copy(I),N-=M.data.length;M=M.next;){var v=M.data,y=N>v.length?v.length:N;if(v.copy(I,I.length-N,0,y),N-=y,N===0){y===v.length?(++x,M.next?this.head=M.next:this.head=this.tail=null):(this.head=M,M.data=v.slice(y));break}++x}return this.length-=x,I}},{key:T,value:function(N,I){return $(this,A({},I,{depth:0,customInspect:!1}))}}]),U}()}),u9=C0((l,g)=>{function E(k,z){var V=this,$=this._readableState&&this._readableState.destroyed,T=this._writableState&&this._writableState.destroyed;return $||T?(z?z(k):k&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(H,this,k)):process.nextTick(H,this,k)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(k||null,function(D){!z&&D?V._writableState?V._writableState.errorEmitted?process.nextTick(j,V):(V._writableState.errorEmitted=!0,process.nextTick(A,V,D)):process.nextTick(A,V,D):z?(process.nextTick(j,V),z(D)):process.nextTick(j,V)}),this)}function A(k,z){H(k,z),j(k)}function j(k){k._writableState&&!k._writableState.emitClose||k._readableState&&!k._readableState.emitClose||k.emit("close")}function S(){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 H(k,z){k.emit("error",z)}function P(k,z){var{_readableState:V,_writableState:$}=k;V&&V.autoDestroy||$&&$.autoDestroy?k.destroy(z):k.emit("error",z)}g.exports={destroy:E,undestroy:S,errorOrDestroy:P}}),m5=C0((l,g)=>{function E(z,V){z.prototype=Object.create(V.prototype),z.prototype.constructor=z,z.__proto__=V}var A={};function j(z,V,$){$||($=Error);function T(U,N,I){return typeof V=="string"?V:V(U,N,I)}var D=function(U){E(N,U);function N(I,M,x){return U.call(this,T(I,M,x))||this}return N}($);D.prototype.name=$.name,D.prototype.code=z,A[z]=D}function S(z,V){if(Array.isArray(z)){var $=z.length;return z=z.map(function(T){return String(T)}),$>2?"one of ".concat(V," ").concat(z.slice(0,$-1).join(", "),", or ")+z[$-1]:$===2?"one of ".concat(V," ").concat(z[0]," or ").concat(z[1]):"of ".concat(V," ").concat(z[0])}else return"of ".concat(V," ").concat(String(z))}function H(z,V,$){return z.substr(!$||$<0?0:+$,V.length)===V}function P(z,V,$){return($===void 0||$>z.length)&&($=z.length),z.substring($-V.length,$)===V}function k(z,V,$){return typeof $!="number"&&($=0),$+V.length>z.length?!1:z.indexOf(V,$)!==-1}j("ERR_INVALID_OPT_VALUE",function(z,V){return'The value "'+V+'" is invalid for option "'+z+'"'},TypeError),j("ERR_INVALID_ARG_TYPE",function(z,V,$){var T;typeof V=="string"&&H(V,"not ")?(T="must not be",V=V.replace(/^not /,"")):T="must be";var D;if(P(z," argument"))D="The ".concat(z," ").concat(T," ").concat(S(V,"type"));else{var U=k(z,".")?"property":"argument";D='The "'.concat(z,'" ').concat(U," ").concat(T," ").concat(S(V,"type"))}return D+=". Received type ".concat(typeof $),D},TypeError),j("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),j("ERR_METHOD_NOT_IMPLEMENTED",function(z){return"The "+z+" method is not implemented"}),j("ERR_STREAM_PREMATURE_CLOSE","Premature close"),j("ERR_STREAM_DESTROYED",function(z){return"Cannot call "+z+" after a stream was destroyed"}),j("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),j("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),j("ERR_STREAM_WRITE_AFTER_END","write after end"),j("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),j("ERR_UNKNOWN_ENCODING",function(z){return"Unknown encoding: "+z},TypeError),j("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),g.exports.codes=A}),o9=C0((l,g)=>{var E=m5().codes.ERR_INVALID_OPT_VALUE;function A(S,H,P){return S.highWaterMark!=null?S.highWaterMark:H?S[P]:null}function j(S,H,P,k){var z=A(H,k,P);if(z!=null){if(!(isFinite(z)&&Math.floor(z)===z)||z<0){var V=k?P:"highWaterMark";throw new E(V,z)}return Math.floor(z)}return S.objectMode?16:16384}g.exports={getHighWaterMark:j}}),s9=C0((l,g)=>{g.exports=E;function E(j,S){if(A("noDeprecation"))return j;var H=!1;function P(){if(!H){if(A("throwDeprecation"))throw new Error(S);A("traceDeprecation")?console.trace(S):console.warn(S),H=!0}return j.apply(this,arguments)}return P}function A(j){try{if(!global.localStorage)return!1}catch{return!1}var S=global.localStorage[j];return S==null?!1:String(S).toLowerCase()==="true"}}),a9=C0((l,g)=>{g.exports=f;function E(u){var d=this;this.next=null,this.entry=null,this.finish=function(){Y0(d,u)}}var A;f.WritableState=i;var j={deprecate:s9()},S=h9(),H=U5().Buffer,P=global.Uint8Array||function(){};function k(u){return H.from(u)}function z(u){return H.isBuffer(u)||u instanceof P}var V=u9(),$=o9(),T=$.getHighWaterMark,D=m5().codes,U=D.ERR_INVALID_ARG_TYPE,N=D.ERR_METHOD_NOT_IMPLEMENTED,I=D.ERR_MULTIPLE_CALLBACK,M=D.ERR_STREAM_CANNOT_PIPE,x=D.ERR_STREAM_DESTROYED,v=D.ERR_STREAM_NULL_VALUES,y=D.ERR_STREAM_WRITE_AFTER_END,p=D.ERR_UNKNOWN_ENCODING,c=V.errorOrDestroy;p0()(f,S);function n(){}function i(u,d,a){A=A||w5(),u=u||{},typeof a!="boolean"&&(a=d instanceof A),this.objectMode=!!u.objectMode,a&&(this.objectMode=this.objectMode||!!u.writableObjectMode),this.highWaterMark=T(this,u,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var V0=u.decodeStrings===!1;this.decodeStrings=!V0,this.defaultEncoding=u.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(X0){Z(d,X0)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=u.emitClose!==!1,this.autoDestroy=!!u.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new E(this)}i.prototype.getBuffer=function(){for(var u=this.bufferedRequest,d=[];u;)d.push(u),u=u.next;return d},function(){try{Object.defineProperty(i.prototype,"buffer",{get:j.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var Q0;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Q0=Function.prototype[Symbol.hasInstance],Object.defineProperty(f,Symbol.hasInstance,{value:function(u){return Q0.call(this,u)?!0:this!==f?!1:u&&u._writableState instanceof i}})):Q0=function(u){return u instanceof this};function f(u){A=A||w5();var d=this instanceof A;if(!d&&!Q0.call(f,this))return new f(u);this._writableState=new i(u,this,d),this.writable=!0,u&&(typeof u.write=="function"&&(this._write=u.write),typeof u.writev=="function"&&(this._writev=u.writev),typeof u.destroy=="function"&&(this._destroy=u.destroy),typeof u.final=="function"&&(this._final=u.final)),S.call(this)}f.prototype.pipe=function(){c(this,new M)};function W0(u,d){var a=new y;c(u,a),process.nextTick(d,a)}function X(u,d,a,V0){var X0;return a===null?X0=new v:typeof a!="string"&&!d.objectMode&&(X0=new U("chunk",["string","Buffer"],a)),X0?(c(u,X0),process.nextTick(V0,X0),!1):!0}f.prototype.write=function(u,d,a){var V0=this._writableState,X0=!1,F0=!V0.objectMode&&z(u);return F0&&!H.isBuffer(u)&&(u=k(u)),typeof d=="function"&&(a=d,d=null),F0?d="buffer":d||(d=V0.defaultEncoding),typeof a!="function"&&(a=n),V0.ending?W0(this,a):(F0||X(this,V0,u,a))&&(V0.pendingcb++,X0=Q(this,V0,F0,u,d,a)),X0},f.prototype.cork=function(){this._writableState.corked++},f.prototype.uncork=function(){var u=this._writableState;u.corked&&(u.corked--,!u.writing&&!u.corked&&!u.bufferProcessing&&u.bufferedRequest&&G(this,u))},f.prototype.setDefaultEncoding=function(u){if(typeof u=="string"&&(u=u.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((u+"").toLowerCase())>-1))throw new p(u);return this._writableState.defaultEncoding=u,this},Object.defineProperty(f.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Y(u,d,a){return!u.objectMode&&u.decodeStrings!==!1&&typeof d=="string"&&(d=H.from(d,a)),d}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Q(u,d,a,V0,X0,F0){if(!a){var w=Y(d,V0,X0);V0!==w&&(a=!0,X0="buffer",V0=w)}var q=d.objectMode?1:V0.length;d.length+=q;var m=d.length<d.highWaterMark;if(m||(d.needDrain=!0),d.writing||d.corked){var e=d.lastBufferedRequest;d.lastBufferedRequest={chunk:V0,encoding:X0,isBuf:a,callback:F0,next:null},e?e.next=d.lastBufferedRequest:d.bufferedRequest=d.lastBufferedRequest,d.bufferedRequestCount+=1}else J(u,d,!1,q,V0,X0,F0);return m}function J(u,d,a,V0,X0,F0,w){d.writelen=V0,d.writecb=w,d.writing=!0,d.sync=!0,d.destroyed?d.onwrite(new x("write")):a?u._writev(X0,d.onwrite):u._write(X0,F0,d.onwrite),d.sync=!1}function F(u,d,a,V0,X0){--d.pendingcb,a?(process.nextTick(X0,V0),process.nextTick(s,u,d),u._writableState.errorEmitted=!0,c(u,V0)):(X0(V0),u._writableState.errorEmitted=!0,c(u,V0),s(u,d))}function W(u){u.writing=!1,u.writecb=null,u.length-=u.writelen,u.writelen=0}function Z(u,d){var a=u._writableState,V0=a.sync,X0=a.writecb;if(typeof X0!="function")throw new I;if(W(a),d)F(u,a,V0,d,X0);else{var F0=R(a)||u.destroyed;!F0&&!a.corked&&!a.bufferProcessing&&a.bufferedRequest&&G(u,a),V0?process.nextTick(C,u,a,F0,X0):C(u,a,F0,X0)}}function C(u,d,a,V0){a||K(u,d),d.pendingcb--,V0(),s(u,d)}function K(u,d){d.length===0&&d.needDrain&&(d.needDrain=!1,u.emit("drain"))}function G(u,d){d.bufferProcessing=!0;var a=d.bufferedRequest;if(u._writev&&a&&a.next){var V0=d.bufferedRequestCount,X0=new Array(V0),F0=d.corkedRequestsFree;F0.entry=a;for(var w=0,q=!0;a;)X0[w]=a,a.isBuf||(q=!1),a=a.next,w+=1;X0.allBuffers=q,J(u,d,!0,d.length,X0,"",F0.finish),d.pendingcb++,d.lastBufferedRequest=null,F0.next?(d.corkedRequestsFree=F0.next,F0.next=null):d.corkedRequestsFree=new E(d),d.bufferedRequestCount=0}else{for(;a;){var{chunk:m,encoding:e,callback:K0}=a,t=d.objectMode?1:m.length;if(J(u,d,!1,t,m,e,K0),a=a.next,d.bufferedRequestCount--,d.writing)break}a===null&&(d.lastBufferedRequest=null)}d.bufferedRequest=a,d.bufferProcessing=!1}f.prototype._write=function(u,d,a){a(new N("_write()"))},f.prototype._writev=null,f.prototype.end=function(u,d,a){var V0=this._writableState;return typeof u=="function"?(a=u,u=null,d=null):typeof d=="function"&&(a=d,d=null),u!=null&&this.write(u,d),V0.corked&&(V0.corked=1,this.uncork()),V0.ending||r(this,V0,a),this},Object.defineProperty(f.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function R(u){return u.ending&&u.length===0&&u.bufferedRequest===null&&!u.finished&&!u.writing}function L(u,d){u._final(function(a){d.pendingcb--,a&&c(u,a),d.prefinished=!0,u.emit("prefinish"),s(u,d)})}function _(u,d){!d.prefinished&&!d.finalCalled&&(typeof u._final=="function"&&!d.destroyed?(d.pendingcb++,d.finalCalled=!0,process.nextTick(L,u,d)):(d.prefinished=!0,u.emit("prefinish")))}function s(u,d){var a=R(d);if(a&&(_(u,d),d.pendingcb===0&&(d.finished=!0,u.emit("finish"),d.autoDestroy))){var V0=u._readableState;(!V0||V0.autoDestroy&&V0.endEmitted)&&u.destroy()}return a}function r(u,d,a){d.ending=!0,s(u,d),a&&(d.finished?process.nextTick(a):u.once("finish",a)),d.ended=!0,u.writable=!1}function Y0(u,d,a){var V0=u.entry;for(u.entry=null;V0;){var X0=V0.callback;d.pendingcb--,X0(a),V0=V0.next}d.corkedRequestsFree.next=u}Object.defineProperty(f.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(u){!this._writableState||(this._writableState.destroyed=u)}}),f.prototype.destroy=V.destroy,f.prototype._undestroy=V.undestroy,f.prototype._destroy=function(u,d){d(u)}}),w5=C0((l,g)=>{var E=Object.keys||function($){var T=[];for(var D in $)T.push(D);return T};g.exports=k;var A=f9(),j=a9();p0()(k,A);for(S=E(j.prototype),P=0;P<S.length;P++)H=S[P],k.prototype[H]||(k.prototype[H]=j.prototype[H]);var S,H,P;function k($){if(!(this instanceof k))return new k($);A.call(this,$),j.call(this,$),this.allowHalfOpen=!0,$&&($.readable===!1&&(this.readable=!1),$.writable===!1&&(this.writable=!1),$.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",z)))}Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(k.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function z(){this._writableState.ended||process.nextTick(V,this)}function V($){$.end()}Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function($){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=$,this._writableState.destroyed=$)}})}),$9=C0((l)=>{var g=d0().Buffer,E=g.isEncoding||function(x){switch(x=""+x,x&&x.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 A(x){if(!x)return"utf8";for(var v;;)switch(x){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 x;default:if(v)return;x=(""+x).toLowerCase(),v=!0}}function j(x){var v=A(x);if(typeof v!="string"&&(g.isEncoding===E||!E(x)))throw new Error("Unknown encoding: "+x);return v||x}l.StringDecoder=S;function S(x){this.encoding=j(x);var v;switch(this.encoding){case"utf16le":this.text=T,this.end=D,v=4;break;case"utf8":this.fillLast=z,v=4;break;case"base64":this.text=U,this.end=N,v=3;break;default:this.write=I,this.end=M;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=g.allocUnsafe(v)}S.prototype.write=function(x){if(x.length===0)return"";var v,y;if(this.lastNeed){if(v=this.fillLast(x),v===void 0)return"";y=this.lastNeed,this.lastNeed=0}else y=0;return y<x.length?v?v+this.text(x,y):this.text(x,y):v||""},S.prototype.end=$,S.prototype.text=V,S.prototype.fillLast=function(x){if(this.lastNeed<=x.length)return x.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);x.copy(this.lastChar,this.lastTotal-this.lastNeed,0,x.length),this.lastNeed-=x.length};function H(x){return x<=127?0:x>>5===6?2:x>>4===14?3:x>>3===30?4:x>>6===2?-1:-2}function P(x,v,y){var p=v.length-1;if(p<y)return 0;var c=H(v[p]);return c>=0?(c>0&&(x.lastNeed=c-1),c):--p<y||c===-2?0:(c=H(v[p]),c>=0?(c>0&&(x.lastNeed=c-2),c):--p<y||c===-2?0:(c=H(v[p]),c>=0?(c>0&&(c===2?c=0:x.lastNeed=c-3),c):0))}function k(x,v,y){if((v[0]&192)!==128)return x.lastNeed=0,"�";if(x.lastNeed>1&&v.length>1){if((v[1]&192)!==128)return x.lastNeed=1,"�";if(x.lastNeed>2&&v.length>2&&(v[2]&192)!==128)return x.lastNeed=2,"�"}}function z(x){var v=this.lastTotal-this.lastNeed,y=k(this,x,v);if(y!==void 0)return y;if(this.lastNeed<=x.length)return x.copy(this.lastChar,v,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);x.copy(this.lastChar,v,0,x.length),this.lastNeed-=x.length}function V(x,v){var y=P(this,x,v);if(!this.lastNeed)return x.toString("utf8",v);this.lastTotal=y;var p=x.length-(y-this.lastNeed);return x.copy(this.lastChar,0,p),x.toString("utf8",v,p)}function $(x){var v=x&&x.length?this.write(x):"";return this.lastNeed?v+"�":v}function T(x,v){if((x.length-v)%2===0){var y=x.toString("utf16le",v);if(y){var p=y.charCodeAt(y.length-1);if(p>=55296&&p<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=x[x.length-2],this.lastChar[1]=x[x.length-1],y.slice(0,-1)}return y}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=x[x.length-1],x.toString("utf16le",v,x.length-1)}function D(x){var v=x&&x.length?this.write(x):"";if(this.lastNeed){var y=this.lastTotal-this.lastNeed;return v+this.lastChar.toString("utf16le",0,y)}return v}function U(x,v){var y=(x.length-v)%3;return y===0?x.toString("base64",v):(this.lastNeed=3-y,this.lastTotal=3,y===1?this.lastChar[0]=x[x.length-1]:(this.lastChar[0]=x[x.length-2],this.lastChar[1]=x[x.length-1]),x.toString("base64",v,x.length-y))}function N(x){var v=x&&x.length?this.write(x):"";return this.lastNeed?v+this.lastChar.toString("base64",0,3-this.lastNeed):v}function I(x){return x.toString(this.encoding)}function M(x){return x&&x.length?this.write(x):""}}),d5={};i5(d5,{StringDecoder:()=>G9.StringDecoder,default:()=>G9.StringDecoder});var G9,f5=W9(()=>{G9=E5($9())}),j9=C0((l,g)=>{var E=m5().codes.ERR_STREAM_PREMATURE_CLOSE;function A(P){var k=!1;return function(){if(!k){k=!0;for(var z=arguments.length,V=new Array(z),$=0;$<z;$++)V[$]=arguments[$];P.apply(this,V)}}}function j(){}function S(P){return P.setHeader&&typeof P.abort=="function"}function H(P,k,z){if(typeof k=="function")return H(P,null,k);k||(k={}),z=A(z||j);var V=k.readable||k.readable!==!1&&P.readable,$=k.writable||k.writable!==!1&&P.writable,T=function(){P.writable||U()},D=P._writableState&&P._writableState.finished,U=function(){$=!1,D=!0,V||z.call(P)},N=P._readableState&&P._readableState.endEmitted,I=function(){V=!1,N=!0,$||z.call(P)},M=function(y){z.call(P,y)},x=function(){var y;if(V&&!N)return(!P._readableState||!P._readableState.ended)&&(y=new E),z.call(P,y);if($&&!D)return(!P._writableState||!P._writableState.ended)&&(y=new E),z.call(P,y)},v=function(){P.req.on("finish",U)};return S(P)?(P.on("complete",U),P.on("abort",x),P.req?v():P.on("request",v)):$&&!P._writableState&&(P.on("end",T),P.on("close",T)),P.on("end",I),P.on("finish",U),k.error!==!1&&P.on("error",M),P.on("close",x),function(){P.removeListener("complete",U),P.removeListener("abort",x),P.removeListener("request",v),P.req&&P.req.removeListener("finish",U),P.removeListener("end",T),P.removeListener("close",T),P.removeListener("finish",U),P.removeListener("end",I),P.removeListener("error",M),P.removeListener("close",x)}}g.exports=H}),j7=C0((l,g)=>{var E;function A(v,y,p){return y in v?Object.defineProperty(v,y,{value:p,enumerable:!0,configurable:!0,writable:!0}):v[y]=p,v}var j=j9(),S=Symbol("lastResolve"),H=Symbol("lastReject"),P=Symbol("error"),k=Symbol("ended"),z=Symbol("lastPromise"),V=Symbol("handlePromise"),$=Symbol("stream");function T(v,y){return{value:v,done:y}}function D(v){var y=v[S];if(y!==null){var p=v[$].read();p!==null&&(v[z]=null,v[S]=null,v[H]=null,y(T(p,!1)))}}function U(v){process.nextTick(D,v)}function N(v,y){return function(p,c){v.then(function(){if(y[k]){p(T(void 0,!0));return}y[V](p,c)},c)}}var I=Object.getPrototypeOf(function(){}),M=Object.setPrototypeOf((E={get stream(){return this[$]},next:function(){var v=this,y=this[P];if(y!==null)return Promise.reject(y);if(this[k])return Promise.resolve(T(void 0,!0));if(this[$].destroyed)return new Promise(function(i,Q0){process.nextTick(function(){v[P]?Q0(v[P]):i(T(void 0,!0))})});var p=this[z],c;if(p)c=new Promise(N(p,this));else{var n=this[$].read();if(n!==null)return Promise.resolve(T(n,!1));c=new Promise(this[V])}return this[z]=c,c}},A(E,Symbol.asyncIterator,function(){return this}),A(E,"return",function(){var v=this;return new Promise(function(y,p){v[$].destroy(null,function(c){if(c){p(c);return}y(T(void 0,!0))})})}),E),I),x=function(v){var y,p=Object.create(M,(y={},A(y,$,{value:v,writable:!0}),A(y,S,{value:null,writable:!0}),A(y,H,{value:null,writable:!0}),A(y,P,{value:null,writable:!0}),A(y,k,{value:v._readableState.endEmitted,writable:!0}),A(y,V,{value:function(c,n){var i=p[$].read();i?(p[z]=null,p[S]=null,p[H]=null,c(T(i,!1))):(p[S]=c,p[H]=n)},writable:!0}),y));return p[z]=null,j(v,function(c){if(c&&c.code!=="ERR_STREAM_PREMATURE_CLOSE"){var n=p[H];n!==null&&(p[z]=null,p[S]=null,p[H]=null,n(c)),p[P]=c;return}var i=p[S];i!==null&&(p[z]=null,p[S]=null,p[H]=null,i(T(void 0,!0))),p[k]=!0}),v.on("readable",U.bind(null,p)),p};g.exports=x}),P7=C0((l,g)=>{g.exports=function(){throw new Error("Readable.from is not available in the browser")}}),f9=C0((l,g)=>{g.exports=X;var E;X.ReadableState=W0;var A=S5().EventEmitter,j=function(w,q){return w.listeners(q).length},S=h9(),H=U5().Buffer,P=global.Uint8Array||function(){};function k(w){return H.from(w)}function z(w){return H.isBuffer(w)||w instanceof P}var V=t5(),$;V&&V.debuglog?$=V.debuglog("stream"):$=function(){};var T=$7(),D=u9(),U=o9(),N=U.getHighWaterMark,I=m5().codes,M=I.ERR_INVALID_ARG_TYPE,x=I.ERR_STREAM_PUSH_AFTER_EOF,v=I.ERR_METHOD_NOT_IMPLEMENTED,y=I.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,p,c,n;p0()(X,S);var i=D.errorOrDestroy,Q0=["error","close","destroy","pause","resume"];function f(w,q,m){if(typeof w.prependListener=="function")return w.prependListener(q,m);!w._events||!w._events[q]?w.on(q,m):Array.isArray(w._events[q])?w._events[q].unshift(m):w._events[q]=[m,w._events[q]]}function W0(w,q,m){E=E||w5(),w=w||{},typeof m!="boolean"&&(m=q instanceof E),this.objectMode=!!w.objectMode,m&&(this.objectMode=this.objectMode||!!w.readableObjectMode),this.highWaterMark=N(this,w,"readableHighWaterMark",m),this.buffer=new T,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=w.emitClose!==!1,this.autoDestroy=!!w.autoDestroy,this.destroyed=!1,this.defaultEncoding=w.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,w.encoding&&(p||(p=(f5(),z5(d5)).StringDecoder),this.decoder=new p(w.encoding),this.encoding=w.encoding)}function X(w){if(E=E||w5(),!(this instanceof X))return new X(w);var q=this instanceof E;this._readableState=new W0(w,this,q),this.readable=!0,w&&(typeof w.read=="function"&&(this._read=w.read),typeof w.destroy=="function"&&(this._destroy=w.destroy)),S.call(this)}Object.defineProperty(X.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(w){!this._readableState||(this._readableState.destroyed=w)}}),X.prototype.destroy=D.destroy,X.prototype._undestroy=D.undestroy,X.prototype._destroy=function(w,q){q(w)},X.prototype.push=function(w,q){var m=this._readableState,e;return m.objectMode?e=!0:typeof w=="string"&&(q=q||m.defaultEncoding,q!==m.encoding&&(w=H.from(w,q),q=""),e=!0),Y(this,w,q,!1,e)},X.prototype.unshift=function(w){return Y(this,w,null,!0,!1)};function Y(w,q,m,e,K0){$("readableAddChunk",q);var t=w._readableState;if(q===null)t.reading=!1,C(w,t);else{var _0;if(K0||(_0=J(t,q)),_0)i(w,_0);else if(t.objectMode||q&&q.length>0)if(typeof q!="string"&&!t.objectMode&&Object.getPrototypeOf(q)!==H.prototype&&(q=k(q)),e)t.endEmitted?i(w,new y):Q(w,t,q,!0);else if(t.ended)i(w,new x);else{if(t.destroyed)return!1;t.reading=!1,t.decoder&&!m?(q=t.decoder.write(q),t.objectMode||q.length!==0?Q(w,t,q,!1):R(w,t)):Q(w,t,q,!1)}else e||(t.reading=!1,R(w,t))}return!t.ended&&(t.length<t.highWaterMark||t.length===0)}function Q(w,q,m,e){q.flowing&&q.length===0&&!q.sync?(q.awaitDrain=0,w.emit("data",m)):(q.length+=q.objectMode?1:m.length,e?q.buffer.unshift(m):q.buffer.push(m),q.needReadable&&K(w)),R(w,q)}function J(w,q){var m;return!z(q)&&typeof q!="string"&&q!==void 0&&!w.objectMode&&(m=new M("chunk",["string","Buffer","Uint8Array"],q)),m}X.prototype.isPaused=function(){return this._readableState.flowing===!1},X.prototype.setEncoding=function(w){p||(p=(f5(),z5(d5)).StringDecoder);var q=new p(w);this._readableState.decoder=q,this._readableState.encoding=this._readableState.decoder.encoding;for(var m=this._readableState.buffer.head,e="";m!==null;)e+=q.write(m.data),m=m.next;return this._readableState.buffer.clear(),e!==""&&this._readableState.buffer.push(e),this._readableState.length=e.length,this};var F=1073741824;function W(w){return w>=F?w=F:(w--,w|=w>>>1,w|=w>>>2,w|=w>>>4,w|=w>>>8,w|=w>>>16,w++),w}function Z(w,q){return w<=0||q.length===0&&q.ended?0:q.objectMode?1:w!==w?q.flowing&&q.length?q.buffer.head.data.length:q.length:(w>q.highWaterMark&&(q.highWaterMark=W(w)),w<=q.length?w:q.ended?q.length:(q.needReadable=!0,0))}X.prototype.read=function(w){$("read",w),w=parseInt(w,10);var q=this._readableState,m=w;if(w!==0&&(q.emittedReadable=!1),w===0&&q.needReadable&&((q.highWaterMark!==0?q.length>=q.highWaterMark:q.length>0)||q.ended))return $("read: emitReadable",q.length,q.ended),q.length===0&&q.ended?V0(this):K(this),null;if(w=Z(w,q),w===0&&q.ended)return q.length===0&&V0(this),null;var e=q.needReadable;$("need readable",e),(q.length===0||q.length-w<q.highWaterMark)&&(e=!0,$("length less than watermark",e)),q.ended||q.reading?(e=!1,$("reading or ended",e)):e&&($("do read"),q.reading=!0,q.sync=!0,q.length===0&&(q.needReadable=!0),this._read(q.highWaterMark),q.sync=!1,q.reading||(w=Z(m,q)));var K0;return w>0?K0=a(w,q):K0=null,K0===null?(q.needReadable=q.length<=q.highWaterMark,w=0):(q.length-=w,q.awaitDrain=0),q.length===0&&(q.ended||(q.needReadable=!0),m!==w&&q.ended&&V0(this)),K0!==null&&this.emit("data",K0),K0};function C(w,q){if($("onEofChunk"),!q.ended){if(q.decoder){var m=q.decoder.end();m&&m.length&&(q.buffer.push(m),q.length+=q.objectMode?1:m.length)}q.ended=!0,q.sync?K(w):(q.needReadable=!1,q.emittedReadable||(q.emittedReadable=!0,G(w)))}}function K(w){var q=w._readableState;$("emitReadable",q.needReadable,q.emittedReadable),q.needReadable=!1,q.emittedReadable||($("emitReadable",q.flowing),q.emittedReadable=!0,process.nextTick(G,w))}function G(w){var q=w._readableState;$("emitReadable_",q.destroyed,q.length,q.ended),!q.destroyed&&(q.length||q.ended)&&(w.emit("readable"),q.emittedReadable=!1),q.needReadable=!q.flowing&&!q.ended&&q.length<=q.highWaterMark,d(w)}function R(w,q){q.readingMore||(q.readingMore=!0,process.nextTick(L,w,q))}function L(w,q){for(;!q.reading&&!q.ended&&(q.length<q.highWaterMark||q.flowing&&q.length===0);){var m=q.length;if($("maybeReadMore read 0"),w.read(0),m===q.length)break}q.readingMore=!1}X.prototype._read=function(w){i(this,new v("_read()"))},X.prototype.pipe=function(w,q){var m=this,e=this._readableState;switch(e.pipesCount){case 0:e.pipes=w;break;case 1:e.pipes=[e.pipes,w];break;default:e.pipes.push(w);break}e.pipesCount+=1,$("pipe count=%d opts=%j",e.pipesCount,q);var K0=(!q||q.end!==!1)&&w!==process.stdout&&w!==process.stderr,t=K0?H0:b;e.endEmitted?process.nextTick(t):m.once("end",t),w.on("unpipe",_0);function _0(h,o){$("onunpipe"),h===m&&o&&o.hasUnpiped===!1&&(o.hasUnpiped=!0,U0())}function H0(){$("onend"),w.end()}var G0=_(m);w.on("drain",G0);var w0=!1;function U0(){$("cleanup"),w.removeListener("close",O),w.removeListener("finish",B),w.removeListener("drain",G0),w.removeListener("error",c0),w.removeListener("unpipe",_0),m.removeListener("end",H0),m.removeListener("end",b),m.removeListener("data",Z0),w0=!0,e.awaitDrain&&(!w._writableState||w._writableState.needDrain)&&G0()}m.on("data",Z0);function Z0(h){$("ondata");var o=w.write(h);$("dest.write",o),o===!1&&((e.pipesCount===1&&e.pipes===w||e.pipesCount>1&&F0(e.pipes,w)!==-1)&&!w0&&($("false write response, pause",e.awaitDrain),e.awaitDrain++),m.pause())}function c0(h){$("onerror",h),b(),w.removeListener("error",c0),j(w,"error")===0&&i(w,h)}f(w,"error",c0);function O(){w.removeListener("finish",B),b()}w.once("close",O);function B(){$("onfinish"),w.removeListener("close",O),b()}w.once("finish",B);function b(){$("unpipe"),m.unpipe(w)}return w.emit("pipe",m),e.flowing||($("pipe resume"),m.resume()),w};function _(w){return function(){var q=w._readableState;$("pipeOnDrain",q.awaitDrain),q.awaitDrain&&q.awaitDrain--,q.awaitDrain===0&&j(w,"data")&&(q.flowing=!0,d(w))}}X.prototype.unpipe=function(w){var q=this._readableState,m={hasUnpiped:!1};if(q.pipesCount===0)return this;if(q.pipesCount===1)return w&&w!==q.pipes?this:(w||(w=q.pipes),q.pipes=null,q.pipesCount=0,q.flowing=!1,w&&w.emit("unpipe",this,m),this);if(!w){var{pipes:e,pipesCount:K0}=q;q.pipes=null,q.pipesCount=0,q.flowing=!1;for(var t=0;t<K0;t++)e[t].emit("unpipe",this,{hasUnpiped:!1});return this}var _0=F0(q.pipes,w);return _0===-1?this:(q.pipes.splice(_0,1),q.pipesCount-=1,q.pipesCount===1&&(q.pipes=q.pipes[0]),w.emit("unpipe",this,m),this)},X.prototype.on=function(w,q){var m=S.prototype.on.call(this,w,q),e=this._readableState;return w==="data"?(e.readableListening=this.listenerCount("readable")>0,e.flowing!==!1&&this.resume()):w==="readable"&&!e.endEmitted&&!e.readableListening&&(e.readableListening=e.needReadable=!0,e.flowing=!1,e.emittedReadable=!1,$("on readable",e.length,e.reading),e.length?K(this):e.reading||process.nextTick(r,this)),m},X.prototype.addListener=X.prototype.on,X.prototype.removeListener=function(w,q){var m=S.prototype.removeListener.call(this,w,q);return w==="readable"&&process.nextTick(s,this),m},X.prototype.removeAllListeners=function(w){var q=S.prototype.removeAllListeners.apply(this,arguments);return(w==="readable"||w===void 0)&&process.nextTick(s,this),q};function s(w){var q=w._readableState;q.readableListening=w.listenerCount("readable")>0,q.resumeScheduled&&!q.paused?q.flowing=!0:w.listenerCount("data")>0&&w.resume()}function r(w){$("readable nexttick read 0"),w.read(0)}X.prototype.resume=function(){var w=this._readableState;return w.flowing||($("resume"),w.flowing=!w.readableListening,Y0(this,w)),w.paused=!1,this};function Y0(w,q){q.resumeScheduled||(q.resumeScheduled=!0,process.nextTick(u,w,q))}function u(w,q){$("resume",q.reading),q.reading||w.read(0),q.resumeScheduled=!1,w.emit("resume"),d(w),q.flowing&&!q.reading&&w.read(0)}X.prototype.pause=function(){return $("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&($("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function d(w){var q=w._readableState;for($("flow",q.flowing);q.flowing&&w.read()!==null;);}X.prototype.wrap=function(w){var q=this,m=this._readableState,e=!1;w.on("end",function(){if($("wrapped end"),m.decoder&&!m.ended){var _0=m.decoder.end();_0&&_0.length&&q.push(_0)}q.push(null)}),w.on("data",function(_0){if($("wrapped data"),m.decoder&&(_0=m.decoder.write(_0)),!(m.objectMode&&_0==null)&&!(!m.objectMode&&(!_0||!_0.length))){var H0=q.push(_0);H0||(e=!0,w.pause())}});for(var K0 in w)this[K0]===void 0&&typeof w[K0]=="function"&&(this[K0]=function(_0){return function(){return w[_0].apply(w,arguments)}}(K0));for(var t=0;t<Q0.length;t++)w.on(Q0[t],this.emit.bind(this,Q0[t]));return this._read=function(_0){$("wrapped _read",_0),e&&(e=!1,w.resume())},this},typeof Symbol=="function"&&(X.prototype[Symbol.asyncIterator]=function(){return c===void 0&&(c=j7()),c(this)}),Object.defineProperty(X.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(X.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(X.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(w){this._readableState&&(this._readableState.flowing=w)}}),X._fromList=a,Object.defineProperty(X.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function a(w,q){if(q.length===0)return null;var m;return q.objectMode?m=q.buffer.shift():!w||w>=q.length?(q.decoder?m=q.buffer.join(""):q.buffer.length===1?m=q.buffer.first():m=q.buffer.concat(q.length),q.buffer.clear()):m=q.buffer.consume(w,q.decoder),m}function V0(w){var q=w._readableState;$("endReadable",q.endEmitted),q.endEmitted||(q.ended=!0,process.nextTick(X0,q,w))}function X0(w,q){if($("endReadableNT",w.endEmitted,w.length),!w.endEmitted&&w.length===0&&(w.endEmitted=!0,q.readable=!1,q.emit("end"),w.autoDestroy)){var m=q._writableState;(!m||m.autoDestroy&&m.finished)&&q.destroy()}}typeof Symbol=="function"&&(X.from=function(w,q){return n===void 0&&(n=P7()),n(X,w,q)});function F0(w,q){for(var m=0,e=w.length;m<e;m++)if(w[m]===q)return m;return-1}}),n9=C0((l,g)=>{g.exports=z;var E=m5().codes,A=E.ERR_METHOD_NOT_IMPLEMENTED,j=E.ERR_MULTIPLE_CALLBACK,S=E.ERR_TRANSFORM_ALREADY_TRANSFORMING,H=E.ERR_TRANSFORM_WITH_LENGTH_0,P=w5();p0()(z,P);function k(T,D){var U=this._transformState;U.transforming=!1;var N=U.writecb;if(N===null)return this.emit("error",new j);U.writechunk=null,U.writecb=null,D!=null&&this.push(D),N(T);var I=this._readableState;I.reading=!1,(I.needReadable||I.length<I.highWaterMark)&&this._read(I.highWaterMark)}function z(T){if(!(this instanceof z))return new z(T);P.call(this,T),this._transformState={afterTransform:k.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",V)}function V(){var T=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(D,U){$(T,D,U)}):$(this,null,null)}z.prototype.push=function(T,D){return this._transformState.needTransform=!1,P.prototype.push.call(this,T,D)},z.prototype._transform=function(T,D,U){U(new A("_transform()"))},z.prototype._write=function(T,D,U){var N=this._transformState;if(N.writecb=U,N.writechunk=T,N.writeencoding=D,!N.transforming){var I=this._readableState;(N.needTransform||I.needReadable||I.length<I.highWaterMark)&&this._read(I.highWaterMark)}},z.prototype._read=function(T){var D=this._transformState;D.writechunk!==null&&!D.transforming?(D.transforming=!0,this._transform(D.writechunk,D.writeencoding,D.afterTransform)):D.needTransform=!0},z.prototype._destroy=function(T,D){P.prototype._destroy.call(this,T,function(U){D(U)})};function $(T,D,U){if(D)return T.emit("error",D);if(U!=null&&T.push(U),T._writableState.length)throw new H;if(T._transformState.transforming)throw new S;return T.push(null)}}),U7=C0((l,g)=>{g.exports=A;var E=n9();p0()(A,E);function A(j){if(!(this instanceof A))return new A(j);E.call(this,j)}A.prototype._transform=function(j,S,H){H(null,j)}}),V7=C0((l,g)=>{var E;function A(U){var N=!1;return function(){N||(N=!0,U.apply(void 0,arguments))}}var j=m5().codes,S=j.ERR_MISSING_ARGS,H=j.ERR_STREAM_DESTROYED;function P(U){if(U)throw U}function k(U){return U.setHeader&&typeof U.abort=="function"}function z(U,N,I,M){M=A(M);var x=!1;U.on("close",function(){x=!0}),E===void 0&&(E=j9()),E(U,{readable:N,writable:I},function(y){if(y)return M(y);x=!0,M()});var v=!1;return function(y){if(!x&&!v){if(v=!0,k(U))return U.abort();if(typeof U.destroy=="function")return U.destroy();M(y||new H("pipe"))}}}function V(U){U()}function $(U,N){return U.pipe(N)}function T(U){return!U.length||typeof U[U.length-1]!="function"?P:U.pop()}function D(){for(var U=arguments.length,N=new Array(U),I=0;I<U;I++)N[I]=arguments[I];var M=T(N);if(Array.isArray(N[0])&&(N=N[0]),N.length<2)throw new S("streams");var x,v=N.map(function(y,p){var c=p<N.length-1,n=p>0;return z(y,c,n,function(i){x||(x=i),i&&v.forEach(V),!c&&(v.forEach(V),M(x))})});return N.reduce($)}g.exports=D}),z7=C0((l,g)=>{l=g.exports=f9(),l.Stream=l,l.Readable=l,l.Writable=a9(),l.Duplex=w5(),l.Transform=n9(),l.PassThrough=U7(),l.finished=j9(),l.pipeline=V7()}),r9=C0((l,g)=>{var E=d0().Buffer,A=z7().Transform,j=p0();function S(P,k){if(!E.isBuffer(P)&&typeof P!="string")throw new TypeError(k+" must be a string or a buffer")}function H(P){A.call(this),this._block=E.allocUnsafe(P),this._blockSize=P,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}j(H,A),H.prototype._transform=function(P,k,z){var V=null;try{this.update(P,k)}catch($){V=$}z(V)},H.prototype._flush=function(P){var k=null;try{this.push(this.digest())}catch(z){k=z}P(k)},H.prototype.update=function(P,k){if(S(P,"Data"),this._finalized)throw new Error("Digest already called");E.isBuffer(P)||(P=E.from(P,k));for(var z=this._block,V=0;this._blockOffset+P.length-V>=this._blockSize;){for(var $=this._blockOffset;$<this._blockSize;)z[$++]=P[V++];this._update(),this._blockOffset=0}for(;V<P.length;)z[this._blockOffset++]=P[V++];for(var T=0,D=P.length*8;D>0;++T)this._length[T]+=D,D=this._length[T]/4294967296|0,D>0&&(this._length[T]-=4294967296*D);return this},H.prototype._update=function(){throw new Error("_update is not implemented")},H.prototype.digest=function(P){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var k=this._digest();P!==void 0&&(k=k.toString(P)),this._block.fill(0),this._blockOffset=0;for(var z=0;z<4;++z)this._length[z]=0;return k},H.prototype._digest=function(){throw new Error("_digest is not implemented")},g.exports=H}),P9=C0((l,g)=>{var E=p0(),A=r9(),j=d0().Buffer,S=new Array(16);function H(){A.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}E(H,A),H.prototype._update=function(){for(var T=S,D=0;D<16;++D)T[D]=this._block.readInt32LE(D*4);var U=this._a,N=this._b,I=this._c,M=this._d;U=k(U,N,I,M,T[0],3614090360,7),M=k(M,U,N,I,T[1],3905402710,12),I=k(I,M,U,N,T[2],606105819,17),N=k(N,I,M,U,T[3],3250441966,22),U=k(U,N,I,M,T[4],4118548399,7),M=k(M,U,N,I,T[5],1200080426,12),I=k(I,M,U,N,T[6],2821735955,17),N=k(N,I,M,U,T[7],4249261313,22),U=k(U,N,I,M,T[8],1770035416,7),M=k(M,U,N,I,T[9],2336552879,12),I=k(I,M,U,N,T[10],4294925233,17),N=k(N,I,M,U,T[11],2304563134,22),U=k(U,N,I,M,T[12],1804603682,7),M=k(M,U,N,I,T[13],4254626195,12),I=k(I,M,U,N,T[14],2792965006,17),N=k(N,I,M,U,T[15],1236535329,22),U=z(U,N,I,M,T[1],4129170786,5),M=z(M,U,N,I,T[6],3225465664,9),I=z(I,M,U,N,T[11],643717713,14),N=z(N,I,M,U,T[0],3921069994,20),U=z(U,N,I,M,T[5],3593408605,5),M=z(M,U,N,I,T[10],38016083,9),I=z(I,M,U,N,T[15],3634488961,14),N=z(N,I,M,U,T[4],3889429448,20),U=z(U,N,I,M,T[9],568446438,5),M=z(M,U,N,I,T[14],3275163606,9),I=z(I,M,U,N,T[3],4107603335,14),N=z(N,I,M,U,T[8],1163531501,20),U=z(U,N,I,M,T[13],2850285829,5),M=z(M,U,N,I,T[2],4243563512,9),I=z(I,M,U,N,T[7],1735328473,14),N=z(N,I,M,U,T[12],2368359562,20),U=V(U,N,I,M,T[5],4294588738,4),M=V(M,U,N,I,T[8],2272392833,11),I=V(I,M,U,N,T[11],1839030562,16),N=V(N,I,M,U,T[14],4259657740,23),U=V(U,N,I,M,T[1],2763975236,4),M=V(M,U,N,I,T[4],1272893353,11),I=V(I,M,U,N,T[7],4139469664,16),N=V(N,I,M,U,T[10],3200236656,23),U=V(U,N,I,M,T[13],681279174,4),M=V(M,U,N,I,T[0],3936430074,11),I=V(I,M,U,N,T[3],3572445317,16),N=V(N,I,M,U,T[6],76029189,23),U=V(U,N,I,M,T[9],3654602809,4),M=V(M,U,N,I,T[12],3873151461,11),I=V(I,M,U,N,T[15],530742520,16),N=V(N,I,M,U,T[2],3299628645,23),U=$(U,N,I,M,T[0],4096336452,6),M=$(M,U,N,I,T[7],1126891415,10),I=$(I,M,U,N,T[14],2878612391,15),N=$(N,I,M,U,T[5],4237533241,21),U=$(U,N,I,M,T[12],1700485571,6),M=$(M,U,N,I,T[3],2399980690,10),I=$(I,M,U,N,T[10],4293915773,15),N=$(N,I,M,U,T[1],2240044497,21),U=$(U,N,I,M,T[8],1873313359,6),M=$(M,U,N,I,T[15],4264355552,10),I=$(I,M,U,N,T[6],2734768916,15),N=$(N,I,M,U,T[13],1309151649,21),U=$(U,N,I,M,T[4],4149444226,6),M=$(M,U,N,I,T[11],3174756917,10),I=$(I,M,U,N,T[2],718787259,15),N=$(N,I,M,U,T[9],3951481745,21),this._a=this._a+U|0,this._b=this._b+N|0,this._c=this._c+I|0,this._d=this._d+M|0},H.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=j.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 P(T,D){return T<<D|T>>>32-D}function k(T,D,U,N,I,M,x){return P(T+(D&U|~D&N)+I+M|0,x)+D|0}function z(T,D,U,N,I,M,x){return P(T+(D&N|U&~N)+I+M|0,x)+D|0}function V(T,D,U,N,I,M,x){return P(T+(D^U^N)+I+M|0,x)+D|0}function $(T,D,U,N,I,M,x){return P(T+(U^(D|~N))+I+M|0,x)+D|0}g.exports=H}),U9=C0((l,g)=>{var E=U5().Buffer,A=p0(),j=r9(),S=new Array(16),H=[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],P=[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],k=[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],z=[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],V=[0,1518500249,1859775393,2400959708,2840853838],$=[1352829926,1548603684,1836072691,2053994217,0];function T(){j.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}A(T,j),T.prototype._update=function(){for(var v=S,y=0;y<16;++y)v[y]=this._block.readInt32LE(y*4);for(var p=this._a|0,c=this._b|0,n=this._c|0,i=this._d|0,Q0=this._e|0,f=this._a|0,W0=this._b|0,X=this._c|0,Y=this._d|0,Q=this._e|0,J=0;J<80;J+=1){var F,W;J<16?(F=U(p,c,n,i,Q0,v[H[J]],V[0],k[J]),W=x(f,W0,X,Y,Q,v[P[J]],$[0],z[J])):J<32?(F=N(p,c,n,i,Q0,v[H[J]],V[1],k[J]),W=M(f,W0,X,Y,Q,v[P[J]],$[1],z[J])):J<48?(F=I(p,c,n,i,Q0,v[H[J]],V[2],k[J]),W=I(f,W0,X,Y,Q,v[P[J]],$[2],z[J])):J<64?(F=M(p,c,n,i,Q0,v[H[J]],V[3],k[J]),W=N(f,W0,X,Y,Q,v[P[J]],$[3],z[J])):(F=x(p,c,n,i,Q0,v[H[J]],V[4],k[J]),W=U(f,W0,X,Y,Q,v[P[J]],$[4],z[J])),p=Q0,Q0=i,i=D(n,10),n=c,c=F,f=Q,Q=Y,Y=D(X,10),X=W0,W0=W}var Z=this._b+n+Y|0;this._b=this._c+i+Q|0,this._c=this._d+Q0+f|0,this._d=this._e+p+W0|0,this._e=this._a+c+X|0,this._a=Z},T.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 v=E.alloc?E.alloc(20):new E(20);return v.writeInt32LE(this._a,0),v.writeInt32LE(this._b,4),v.writeInt32LE(this._c,8),v.writeInt32LE(this._d,12),v.writeInt32LE(this._e,16),v};function D(v,y){return v<<y|v>>>32-y}function U(v,y,p,c,n,i,Q0,f){return D(v+(y^p^c)+i+Q0|0,f)+n|0}function N(v,y,p,c,n,i,Q0,f){return D(v+(y&p|~y&c)+i+Q0|0,f)+n|0}function I(v,y,p,c,n,i,Q0,f){return D(v+((y|~p)^c)+i+Q0|0,f)+n|0}function M(v,y,p,c,n,i,Q0,f){return D(v+(y&c|p&~c)+i+Q0|0,f)+n|0}function x(v,y,p,c,n,i,Q0,f){return D(v+(y^(p|~c))+i+Q0|0,f)+n|0}g.exports=T}),p5=C0((l,g)=>{var E=d0().Buffer;function A(j,S){this._block=E.alloc(j),this._finalSize=S,this._blockSize=j,this._len=0}A.prototype.update=function(j,S){typeof j=="string"&&(S=S||"utf8",j=E.from(j,S));for(var H=this._block,P=this._blockSize,k=j.length,z=this._len,V=0;V<k;){for(var $=z%P,T=Math.min(k-V,P-$),D=0;D<T;D++)H[$+D]=j[V+D];z+=T,V+=T,z%P===0&&this._update(H)}return this._len+=k,this},A.prototype.digest=function(j){var S=this._len%this._blockSize;this._block[S]=128,this._block.fill(0,S+1),S>=this._finalSize&&(this._update(this._block),this._block.fill(0));var H=this._len*8;if(H<=4294967295)this._block.writeUInt32BE(H,this._blockSize-4);else{var P=(H&4294967295)>>>0,k=(H-P)/4294967296;this._block.writeUInt32BE(k,this._blockSize-8),this._block.writeUInt32BE(P,this._blockSize-4)}this._update(this._block);var z=this._hash();return j?z.toString(j):z},A.prototype._update=function(){throw new Error("_update must be implemented by subclass")},g.exports=A}),O7=C0((l,g)=>{var E=p0(),A=p5(),j=d0().Buffer,S=[1518500249,1859775393,-1894007588,-899497514],H=new Array(80);function P(){this.init(),this._w=H,A.call(this,64,56)}E(P,A),P.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function k($){return $<<5|$>>>27}function z($){return $<<30|$>>>2}function V($,T,D,U){return $===0?T&D|~T&U:$===2?T&D|T&U|D&U:T^D^U}P.prototype._update=function($){for(var T=this._w,D=this._a|0,U=this._b|0,N=this._c|0,I=this._d|0,M=this._e|0,x=0;x<16;++x)T[x]=$.readInt32BE(x*4);for(;x<80;++x)T[x]=T[x-3]^T[x-8]^T[x-14]^T[x-16];for(var v=0;v<80;++v){var y=~~(v/20),p=k(D)+V(y,U,N,I)+M+T[v]+S[y]|0;M=I,I=N,N=z(U),U=D,D=p}this._a=D+this._a|0,this._b=U+this._b|0,this._c=N+this._c|0,this._d=I+this._d|0,this._e=M+this._e|0},P.prototype._hash=function(){var $=j.allocUnsafe(20);return $.writeInt32BE(this._a|0,0),$.writeInt32BE(this._b|0,4),$.writeInt32BE(this._c|0,8),$.writeInt32BE(this._d|0,12),$.writeInt32BE(this._e|0,16),$},g.exports=P}),T7=C0((l,g)=>{var E=p0(),A=p5(),j=d0().Buffer,S=[1518500249,1859775393,-1894007588,-899497514],H=new Array(80);function P(){this.init(),this._w=H,A.call(this,64,56)}E(P,A),P.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function k(T){return T<<1|T>>>31}function z(T){return T<<5|T>>>27}function V(T){return T<<30|T>>>2}function $(T,D,U,N){return T===0?D&U|~D&N:T===2?D&U|D&N|U&N:D^U^N}P.prototype._update=function(T){for(var D=this._w,U=this._a|0,N=this._b|0,I=this._c|0,M=this._d|0,x=this._e|0,v=0;v<16;++v)D[v]=T.readInt32BE(v*4);for(;v<80;++v)D[v]=k(D[v-3]^D[v-8]^D[v-14]^D[v-16]);for(var y=0;y<80;++y){var p=~~(y/20),c=z(U)+$(p,N,I,M)+x+D[y]+S[p]|0;x=M,M=I,I=V(N),N=U,U=c}this._a=U+this._a|0,this._b=N+this._b|0,this._c=I+this._c|0,this._d=M+this._d|0,this._e=x+this._e|0},P.prototype._hash=function(){var T=j.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},g.exports=P}),i9=C0((l,g)=>{var E=p0(),A=p5(),j=d0().Buffer,S=[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],H=new Array(64);function P(){this.init(),this._w=H,A.call(this,64,56)}E(P,A),P.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 k(U,N,I){return I^U&(N^I)}function z(U,N,I){return U&N|I&(U|N)}function V(U){return(U>>>2|U<<30)^(U>>>13|U<<19)^(U>>>22|U<<10)}function $(U){return(U>>>6|U<<26)^(U>>>11|U<<21)^(U>>>25|U<<7)}function T(U){return(U>>>7|U<<25)^(U>>>18|U<<14)^U>>>3}function D(U){return(U>>>17|U<<15)^(U>>>19|U<<13)^U>>>10}P.prototype._update=function(U){for(var N=this._w,I=this._a|0,M=this._b|0,x=this._c|0,v=this._d|0,y=this._e|0,p=this._f|0,c=this._g|0,n=this._h|0,i=0;i<16;++i)N[i]=U.readInt32BE(i*4);for(;i<64;++i)N[i]=D(N[i-2])+N[i-7]+T(N[i-15])+N[i-16]|0;for(var Q0=0;Q0<64;++Q0){var f=n+$(y)+k(y,p,c)+S[Q0]+N[Q0]|0,W0=V(I)+z(I,M,x)|0;n=c,c=p,p=y,y=v+f|0,v=x,x=M,M=I,I=f+W0|0}this._a=I+this._a|0,this._b=M+this._b|0,this._c=x+this._c|0,this._d=v+this._d|0,this._e=y+this._e|0,this._f=p+this._f|0,this._g=c+this._g|0,this._h=n+this._h|0},P.prototype._hash=function(){var U=j.allocUnsafe(32);return U.writeInt32BE(this._a,0),U.writeInt32BE(this._b,4),U.writeInt32BE(this._c,8),U.writeInt32BE(this._d,12),U.writeInt32BE(this._e,16),U.writeInt32BE(this._f,20),U.writeInt32BE(this._g,24),U.writeInt32BE(this._h,28),U},g.exports=P}),D7=C0((l,g)=>{var E=p0(),A=i9(),j=p5(),S=d0().Buffer,H=new Array(64);function P(){this.init(),this._w=H,j.call(this,64,56)}E(P,A),P.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},P.prototype._hash=function(){var k=S.allocUnsafe(28);return k.writeInt32BE(this._a,0),k.writeInt32BE(this._b,4),k.writeInt32BE(this._c,8),k.writeInt32BE(this._d,12),k.writeInt32BE(this._e,16),k.writeInt32BE(this._f,20),k.writeInt32BE(this._g,24),k},g.exports=P}),t9=C0((l,g)=>{var E=p0(),A=p5(),j=d0().Buffer,S=[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],H=new Array(160);function P(){this.init(),this._w=H,A.call(this,128,112)}E(P,A),P.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 k(M,x,v){return v^M&(x^v)}function z(M,x,v){return M&x|v&(M|x)}function V(M,x){return(M>>>28|x<<4)^(x>>>2|M<<30)^(x>>>7|M<<25)}function $(M,x){return(M>>>14|x<<18)^(M>>>18|x<<14)^(x>>>9|M<<23)}function T(M,x){return(M>>>1|x<<31)^(M>>>8|x<<24)^M>>>7}function D(M,x){return(M>>>1|x<<31)^(M>>>8|x<<24)^(M>>>7|x<<25)}function U(M,x){return(M>>>19|x<<13)^(x>>>29|M<<3)^M>>>6}function N(M,x){return(M>>>19|x<<13)^(x>>>29|M<<3)^(M>>>6|x<<26)}function I(M,x){return M>>>0<x>>>0?1:0}P.prototype._update=function(M){for(var x=this._w,v=this._ah|0,y=this._bh|0,p=this._ch|0,c=this._dh|0,n=this._eh|0,i=this._fh|0,Q0=this._gh|0,f=this._hh|0,W0=this._al|0,X=this._bl|0,Y=this._cl|0,Q=this._dl|0,J=this._el|0,F=this._fl|0,W=this._gl|0,Z=this._hl|0,C=0;C<32;C+=2)x[C]=M.readInt32BE(C*4),x[C+1]=M.readInt32BE(C*4+4);for(;C<160;C+=2){var K=x[C-30],G=x[C-30+1],R=T(K,G),L=D(G,K);K=x[C-4],G=x[C-4+1];var _=U(K,G),s=N(G,K),r=x[C-14],Y0=x[C-14+1],u=x[C-32],d=x[C-32+1],a=L+Y0|0,V0=R+r+I(a,L)|0;a=a+s|0,V0=V0+_+I(a,s)|0,a=a+d|0,V0=V0+u+I(a,d)|0,x[C]=V0,x[C+1]=a}for(var X0=0;X0<160;X0+=2){V0=x[X0],a=x[X0+1];var F0=z(v,y,p),w=z(W0,X,Y),q=V(v,W0),m=V(W0,v),e=$(n,J),K0=$(J,n),t=S[X0],_0=S[X0+1],H0=k(n,i,Q0),G0=k(J,F,W),w0=Z+K0|0,U0=f+e+I(w0,Z)|0;w0=w0+G0|0,U0=U0+H0+I(w0,G0)|0,w0=w0+_0|0,U0=U0+t+I(w0,_0)|0,w0=w0+a|0,U0=U0+V0+I(w0,a)|0;var Z0=m+w|0,c0=q+F0+I(Z0,m)|0;f=Q0,Z=W,Q0=i,W=F,i=n,F=J,J=Q+w0|0,n=c+U0+I(J,Q)|0,c=p,Q=Y,p=y,Y=X,y=v,X=W0,W0=w0+Z0|0,v=U0+c0+I(W0,w0)|0}this._al=this._al+W0|0,this._bl=this._bl+X|0,this._cl=this._cl+Y|0,this._dl=this._dl+Q|0,this._el=this._el+J|0,this._fl=this._fl+F|0,this._gl=this._gl+W|0,this._hl=this._hl+Z|0,this._ah=this._ah+v+I(this._al,W0)|0,this._bh=this._bh+y+I(this._bl,X)|0,this._ch=this._ch+p+I(this._cl,Y)|0,this._dh=this._dh+c+I(this._dl,Q)|0,this._eh=this._eh+n+I(this._el,J)|0,this._fh=this._fh+i+I(this._fl,F)|0,this._gh=this._gh+Q0+I(this._gl,W)|0,this._hh=this._hh+f+I(this._hl,Z)|0},P.prototype._hash=function(){var M=j.allocUnsafe(64);function x(v,y,p){M.writeInt32BE(v,p),M.writeInt32BE(y,p+4)}return x(this._ah,this._al,0),x(this._bh,this._bl,8),x(this._ch,this._cl,16),x(this._dh,this._dl,24),x(this._eh,this._el,32),x(this._fh,this._fl,40),x(this._gh,this._gl,48),x(this._hh,this._hl,56),M},g.exports=P}),N7=C0((l,g)=>{var E=p0(),A=t9(),j=p5(),S=d0().Buffer,H=new Array(160);function P(){this.init(),this._w=H,j.call(this,128,112)}E(P,A),P.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},P.prototype._hash=function(){var k=S.allocUnsafe(48);function z(V,$,T){k.writeInt32BE(V,T),k.writeInt32BE($,T+4)}return z(this._ah,this._al,0),z(this._bh,this._bl,8),z(this._ch,this._cl,16),z(this._dh,this._dl,24),z(this._eh,this._el,32),z(this._fh,this._fl,40),k},g.exports=P}),V9=C0((E,g)=>{var E=g.exports=function(A){A=A.toLowerCase();var j=E[A];if(!j)throw new Error(A+" is not supported (we accept pull requests)");return new j};E.sha=O7(),E.sha1=T7(),E.sha224=D7(),E.sha256=i9(),E.sha384=N7(),E.sha512=t9()}),P5=C0((l,g)=>{g.exports={ArrayIsArray(E){return Array.isArray(E)},ArrayPrototypeIncludes(E,A){return E.includes(A)},ArrayPrototypeIndexOf(E,A){return E.indexOf(A)},ArrayPrototypeJoin(E,A){return E.join(A)},ArrayPrototypeMap(E,A){return E.map(A)},ArrayPrototypePop(E,A){return E.pop(A)},ArrayPrototypePush(E,A){return E.push(A)},ArrayPrototypeSlice(E,A,j){return E.slice(A,j)},Error,FunctionPrototypeCall(E,A,...j){return E.call(A,...j)},FunctionPrototypeSymbolHasInstance(E,A){return Function.prototype[Symbol.hasInstance].call(E,A)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(E,A){return Object.defineProperties(E,A)},ObjectDefineProperty(E,A,j){return Object.defineProperty(E,A,j)},ObjectGetOwnPropertyDescriptor(E,A){return Object.getOwnPropertyDescriptor(E,A)},ObjectKeys(E){return Object.keys(E)},ObjectSetPrototypeOf(E,A){return Object.setPrototypeOf(E,A)},Promise,PromisePrototypeCatch(E,A){return E.catch(A)},PromisePrototypeThen(E,A,j){return E.then(A,j)},PromiseReject(E){return Promise.reject(E)},ReflectApply:Reflect.apply,RegExpPrototypeTest(E,A){return E.test(A)},SafeSet:Set,String,StringPrototypeSlice(E,A,j){return E.slice(A,j)},StringPrototypeToLowerCase(E){return E.toLowerCase()},StringPrototypeToUpperCase(E){return E.toUpperCase()},StringPrototypeTrim(E){return E.trim()},Symbol,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,TypedArrayPrototypeSet(E,A,j){return E.set(A,j)},Uint8Array}}),N5=C0((l,g)=>{var E=U5(),A=Object.getPrototypeOf(async function(){}).constructor,j=globalThis.Blob||E.Blob,S=typeof j<"u"?function(P){return P instanceof j}:function(P){return!1},H=class extends Error{constructor(P){if(!Array.isArray(P))throw new TypeError(`Expected input to be an Array, got ${typeof P}`);let k="";for(let z=0;z<P.length;z++)k+=` ${P[z].stack}
3
3
  `;super(k),this.name="AggregateError",this.errors=P}};g.exports={AggregateError:H,kEmptyObject:Object.freeze({}),once(P){let k=!1;return function(...z){k||(k=!0,P.apply(this,z))}},createDeferredPromise:function(){let P,k;return{promise:new Promise((z,V)=>{P=z,k=V}),resolve:P,reject:k}},promisify(P){return new Promise((k,z)=>{P((V,...$)=>V?z(V):k(...$))})},debuglog(){return function(){}},format(P,...k){return P.replace(/%([sdifj])/g,function(...[z,V]){let $=k.shift();return V==="f"?$.toFixed(6):V==="j"?JSON.stringify($):V==="s"&&typeof $=="object"?`${$.constructor!==Object?$.constructor.name:""} {}`.trim():$.toString()})},inspect(P){switch(typeof P){case"string":if(P.includes("'"))if(P.includes('"')){if(!P.includes("`")&&!P.includes("${"))return`\`${P}\``}else return`"${P}"`;return`'${P}'`;case"number":return isNaN(P)?"NaN":Object.is(P,-0)?String(P):P;case"bigint":return`${String(P)}n`;case"boolean":case"undefined":return String(P);case"object":return"{}"}},types:{isAsyncFunction(P){return P instanceof A},isArrayBufferView(P){return ArrayBuffer.isView(P)}},isBlob:S},g.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),z9=C0((l,g)=>{var{AbortController:E,AbortSignal:A}=typeof self<"u"?self:typeof window<"u"?window:void 0;g.exports=E,g.exports.AbortSignal=A,g.exports.default=E}),V5=C0((l,g)=>{var{format:E,inspect:A,AggregateError:j}=N5(),S=globalThis.AggregateError||j,H=Symbol("kIsNodeError"),P=["string","function","number","object","Function","Object","boolean","bigint","symbol"],k=/^([A-Z][a-z0-9]*)+$/,z="__node_internal_",V={};function $(x,v){if(!x)throw new V.ERR_INTERNAL_ASSERTION(v)}function T(x){let v="",y=x.length,p=x[0]==="-"?1:0;for(;y>=p+4;y-=3)v=`_${x.slice(y-3,y)}${v}`;return`${x.slice(0,y)}${v}`}function D(x,v,y){if(typeof v=="function")return $(v.length<=y.length,`Code: ${x}; The provided arguments length (${y.length}) does not match the required ones (${v.length}).`),v(...y);let p=(v.match(/%[dfijoOs]/g)||[]).length;return $(p===y.length,`Code: ${x}; The provided arguments length (${y.length}) does not match the required ones (${p}).`),y.length===0?v:E(v,...y)}function U(x,v,y){y||(y=Error);class p extends y{constructor(...c){super(D(x,v,c))}toString(){return`${this.name} [${x}]: ${this.message}`}}Object.defineProperties(p.prototype,{name:{value:y.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${x}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),p.prototype.code=x,p.prototype[H]=!0,V[x]=p}function N(x){let v=z+x.name;return Object.defineProperty(x,"name",{value:v}),x}function I(x,v){if(x&&v&&x!==v){if(Array.isArray(v.errors))return v.errors.push(x),v;let y=new S([v,x],v.message);return y.code=v.code,y}return x||v}var M=class extends Error{constructor(x="The operation was aborted",v=void 0){if(v!==void 0&&typeof v!="object")throw new V.ERR_INVALID_ARG_TYPE("options","Object",v);super(x,v),this.code="ABORT_ERR",this.name="AbortError"}};U("ERR_ASSERTION","%s",Error),U("ERR_INVALID_ARG_TYPE",(x,v,y)=>{$(typeof x=="string","'name' must be a string"),Array.isArray(v)||(v=[v]);let p="The ";x.endsWith(" argument")?p+=`${x} `:p+=`"${x}" ${x.includes(".")?"property":"argument"} `,p+="must be ";let c=[],n=[],i=[];for(let f of v)$(typeof f=="string","All expected entries have to be of type string"),P.includes(f)?c.push(f.toLowerCase()):k.test(f)?n.push(f):($(f!=="object",'The value "object" should be written as "Object"'),i.push(f));if(n.length>0){let f=c.indexOf("object");f!==-1&&(c.splice(c,f,1),n.push("Object"))}if(c.length>0){switch(c.length){case 1:p+=`of type ${c[0]}`;break;case 2:p+=`one of type ${c[0]} or ${c[1]}`;break;default:{let f=c.pop();p+=`one of type ${c.join(", ")}, or ${f}`}}(n.length>0||i.length>0)&&(p+=" or ")}if(n.length>0){switch(n.length){case 1:p+=`an instance of ${n[0]}`;break;case 2:p+=`an instance of ${n[0]} or ${n[1]}`;break;default:{let f=n.pop();p+=`an instance of ${n.join(", ")}, or ${f}`}}i.length>0&&(p+=" or ")}switch(i.length){case 0:break;case 1:i[0].toLowerCase()!==i[0]&&(p+="an "),p+=`${i[0]}`;break;case 2:p+=`one of ${i[0]} or ${i[1]}`;break;default:{let f=i.pop();p+=`one of ${i.join(", ")}, or ${f}`}}if(y==null)p+=`. Received ${y}`;else if(typeof y=="function"&&y.name)p+=`. Received function ${y.name}`;else if(typeof y=="object"){var Q0;(Q0=y.constructor)!==null&&Q0!==void 0&&Q0.name?p+=`. Received an instance of ${y.constructor.name}`:p+=`. Received ${A(y,{depth:-1})}`}else{let f=A(y,{colors:!1});f.length>25&&(f=`${f.slice(0,25)}...`),p+=`. Received type ${typeof y} (${f})`}return p},TypeError),U("ERR_INVALID_ARG_VALUE",(x,v,y="is invalid")=>{let p=A(v);return p.length>128&&(p=p.slice(0,128)+"..."),`The ${x.includes(".")?"property":"argument"} '${x}' ${y}. Received ${p}`},TypeError),U("ERR_INVALID_RETURN_VALUE",(x,v,y)=>{var p;let c=y!=null&&(p=y.constructor)!==null&&p!==void 0&&p.name?`instance of ${y.constructor.name}`:`type ${typeof y}`;return`Expected ${x} to be returned from the "${v}" function but got ${c}.`},TypeError),U("ERR_MISSING_ARGS",(...x)=>{$(x.length>0,"At least one arg needs to be specified");let v,y=x.length;switch(x=(Array.isArray(x)?x:[x]).map((p)=>`"${p}"`).join(" or "),y){case 1:v+=`The ${x[0]} argument`;break;case 2:v+=`The ${x[0]} and ${x[1]} arguments`;break;default:{let p=x.pop();v+=`The ${x.join(", ")}, and ${p} arguments`}break}return`${v} must be specified`},TypeError),U("ERR_OUT_OF_RANGE",(x,v,y)=>{$(v,'Missing "range" argument');let p;return Number.isInteger(y)&&Math.abs(y)>4294967296?p=T(String(y)):typeof y=="bigint"?(p=String(y),(y>2n**32n||y<-(2n**32n))&&(p=T(p)),p+="n"):p=A(y),`The value of "${x}" is out of range. It must be ${v}. Received ${p}`},RangeError),U("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),U("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),U("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),U("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),U("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),U("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),U("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),U("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),U("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),U("ERR_STREAM_WRITE_AFTER_END","write after end",Error),U("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),g.exports={AbortError:M,aggregateTwoErrors:N(I),hideStackFrames:N,codes:V}}),e5=C0((l,g)=>{var{ArrayIsArray:E,ArrayPrototypeIncludes:A,ArrayPrototypeJoin:j,ArrayPrototypeMap:S,NumberIsInteger:H,NumberIsNaN:P,NumberMAX_SAFE_INTEGER:k,NumberMIN_SAFE_INTEGER:z,NumberParseInt:V,ObjectPrototypeHasOwnProperty:$,RegExpPrototypeExec:T,String:D,StringPrototypeToUpperCase:U,StringPrototypeTrim:N}=P5(),{hideStackFrames:I,codes:{ERR_SOCKET_BAD_PORT:M,ERR_INVALID_ARG_TYPE:x,ERR_INVALID_ARG_VALUE:v,ERR_OUT_OF_RANGE:y,ERR_UNKNOWN_SIGNAL:p}}=V5(),{normalizeEncoding:c}=N5(),{isAsyncFunction:n,isArrayBufferView:i}=N5().types,Q0={};function f(w){return w===(w|0)}function W0(w){return w===w>>>0}var X=/^[0-7]+$/,Y="must be a 32-bit unsigned integer or an octal string";function Q(w,q,m){if(typeof w>"u"&&(w=m),typeof w=="string"){if(T(X,w)===null)throw new v(q,w,Y);w=V(w,8)}return W(w,q),w}var J=I((w,q,m=z,e=k)=>{if(typeof w!="number")throw new x(q,"number",w);if(!H(w))throw new y(q,"an integer",w);if(w<m||w>e)throw new y(q,`>= ${m} && <= ${e}`,w)}),F=I((w,q,m=-2147483648,e=2147483647)=>{if(typeof w!="number")throw new x(q,"number",w);if(!H(w))throw new y(q,"an integer",w);if(w<m||w>e)throw new y(q,`>= ${m} && <= ${e}`,w)}),W=I((w,q,m=!1)=>{if(typeof w!="number")throw new x(q,"number",w);if(!H(w))throw new y(q,"an integer",w);let e=m?1:0,K0=4294967295;if(w<e||w>K0)throw new y(q,`>= ${e} && <= ${K0}`,w)});function Z(w,q){if(typeof w!="string")throw new x(q,"string",w)}function C(w,q,m=void 0,e){if(typeof w!="number")throw new x(q,"number",w);if(m!=null&&w<m||e!=null&&w>e||(m!=null||e!=null)&&P(w))throw new y(q,`${m!=null?`>= ${m}`:""}${m!=null&&e!=null?" && ":""}${e!=null?`<= ${e}`:""}`,w)}var K=I((w,q,m)=>{if(!A(m,w)){let e=j(S(m,(t)=>typeof t=="string"?`'${t}'`:D(t)),", "),K0="must be one of: "+e;throw new v(q,w,K0)}});function G(w,q){if(typeof w!="boolean")throw new x(q,"boolean",w)}function R(w,q,m){return w==null||!$(w,q)?m:w[q]}var L=I((w,q,m=null)=>{let e=R(m,"allowArray",!1),K0=R(m,"allowFunction",!1);if(!R(m,"nullable",!1)&&w===null||!e&&E(w)||typeof w!="object"&&(!K0||typeof w!="function"))throw new x(q,"Object",w)}),_=I((w,q,m=0)=>{if(!E(w))throw new x(q,"Array",w);if(w.length<m){let e=`must be longer than ${m}`;throw new v(q,w,e)}});function s(w,q="signal"){if(Z(w,q),Q0[w]===void 0)throw Q0[U(w)]!==void 0?new p(w+" (signals must use all capital letters)"):new p(w)}var r=I((w,q="buffer")=>{if(!i(w))throw new x(q,["Buffer","TypedArray","DataView"],w)});function Y0(w,q){let m=c(q),e=w.length;if(m==="hex"&&e%2!==0)throw new v("encoding",q,`is invalid for data of length ${e}`)}function u(w,q="Port",m=!0){if(typeof w!="number"&&typeof w!="string"||typeof w=="string"&&N(w).length===0||+w!==+w>>>0||w>65535||w===0&&!m)throw new M(q,w,m);return w|0}var d=I((w,q)=>{if(w!==void 0&&(w===null||typeof w!="object"||!("aborted"in w)))throw new x(q,"AbortSignal",w)}),a=I((w,q)=>{if(typeof w!="function")throw new x(q,"Function",w)}),V0=I((w,q)=>{if(typeof w!="function"||n(w))throw new x(q,"Function",w)}),X0=I((w,q)=>{if(w!==void 0)throw new x(q,"undefined",w)});function F0(w,q,m){if(!A(m,w))throw new x(q,`('${j(m,"|")}')`,w)}g.exports={isInt32:f,isUint32:W0,parseFileMode:Q,validateArray:_,validateBoolean:G,validateBuffer:r,validateEncoding:Y0,validateFunction:a,validateInt32:F,validateInteger:J,validateNumber:C,validateObject:L,validateOneOf:K,validatePlainFunction:V0,validatePort:u,validateSignalName:s,validateString:Z,validateUint32:W,validateUndefined:X0,validateUnion:F0,validateAbortSignal:d}}),c9=C0((l,g)=>{var E=g.exports={},A,j;function S(){throw new Error("setTimeout has not been defined")}function H(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?A=setTimeout:A=S}catch{A=S}try{typeof clearTimeout=="function"?j=clearTimeout:j=H}catch{j=H}})();function P(M){if(A===setTimeout)return setTimeout(M,0);if((A===S||!A)&&setTimeout)return A=setTimeout,setTimeout(M,0);try{return A(M,0)}catch{try{return A.call(null,M,0)}catch{return A.call(this,M,0)}}}function k(M){if(j===clearTimeout)return clearTimeout(M);if((j===H||!j)&&clearTimeout)return j=clearTimeout,clearTimeout(M);try{return j(M)}catch{try{return j.call(null,M)}catch{return j.call(this,M)}}}var z=[],V=!1,$,T=-1;function D(){!V||!$||(V=!1,$.length?z=$.concat(z):T=-1,z.length&&U())}function U(){if(!V){var M=P(D);V=!0;for(var x=z.length;x;){for($=z,z=[];++T<x;)$&&$[T].run();T=-1,x=z.length}$=null,V=!1,k(M)}}E.nextTick=function(M){var x=new Array(arguments.length-1);if(arguments.length>1)for(var v=1;v<arguments.length;v++)x[v-1]=arguments[v];z.push(new N(M,x)),z.length===1&&!V&&P(U)};function N(M,x){this.fun=M,this.array=x}N.prototype.run=function(){this.fun.apply(null,this.array)},E.title="browser",E.browser=!0,E.env={},E.argv=[],E.version="",E.versions={};function I(){}E.on=I,E.addListener=I,E.once=I,E.off=I,E.removeListener=I,E.removeAllListeners=I,E.emit=I,E.prependListener=I,E.prependOnceListener=I,E.listeners=function(M){return[]},E.binding=function(M){throw new Error("process.binding is not supported")},E.cwd=function(){return"/"},E.chdir=function(M){throw new Error("process.chdir is not supported")},E.umask=function(){return 0}}),k5={};i5(k5,{default:()=>e9});var e9,x5=W9(()=>{Z9(k5,E5(c9())),e9=E5(c9())}),A5=C0((l,g)=>{var{Symbol:E,SymbolAsyncIterator:A,SymbolIterator:j}=P5(),S=E("kDestroyed"),H=E("kIsErrored"),P=E("kIsReadable"),k=E("kIsDisturbed");function z(J,F=!1){var W;return!!(J&&typeof J.pipe=="function"&&typeof J.on=="function"&&(!F||typeof J.pause=="function"&&typeof J.resume=="function")&&(!J._writableState||((W=J._readableState)===null||W===void 0?void 0:W.readable)!==!1)&&(!J._writableState||J._readableState))}function V(J){var F;return!!(J&&typeof J.write=="function"&&typeof J.on=="function"&&(!J._readableState||((F=J._writableState)===null||F===void 0?void 0:F.writable)!==!1))}function $(J){return!!(J&&typeof J.pipe=="function"&&J._readableState&&typeof J.on=="function"&&typeof J.write=="function")}function T(J){return J&&(J._readableState||J._writableState||typeof J.write=="function"&&typeof J.on=="function"||typeof J.pipe=="function"&&typeof J.on=="function")}function D(J,F){return J==null?!1:F===!0?typeof J[A]=="function":F===!1?typeof J[j]=="function":typeof J[A]=="function"||typeof J[j]=="function"}function U(J){if(!T(J))return null;let{_writableState:F,_readableState:W}=J,Z=F||W;return!!(J.destroyed||J[S]||Z!=null&&Z.destroyed)}function N(J){if(!V(J))return null;if(J.writableEnded===!0)return!0;let F=J._writableState;return F!=null&&F.errored?!1:typeof F?.ended!="boolean"?null:F.ended}function I(J,F){if(!V(J))return null;if(J.writableFinished===!0)return!0;let W=J._writableState;return W!=null&&W.errored?!1:typeof W?.finished!="boolean"?null:!!(W.finished||F===!1&&W.ended===!0&&W.length===0)}function M(J){if(!z(J))return null;if(J.readableEnded===!0)return!0;let F=J._readableState;return!F||F.errored?!1:typeof F?.ended!="boolean"?null:F.ended}function x(J,F){if(!z(J))return null;let W=J._readableState;return W!=null&&W.errored?!1:typeof W?.endEmitted!="boolean"?null:!!(W.endEmitted||F===!1&&W.ended===!0&&W.length===0)}function v(J){return J&&J[P]!=null?J[P]:typeof J?.readable!="boolean"?null:U(J)?!1:z(J)&&J.readable&&!x(J)}function y(J){return typeof J?.writable!="boolean"?null:U(J)?!1:V(J)&&J.writable&&!N(J)}function p(J,F){return T(J)?U(J)?!0:!(F?.readable!==!1&&v(J)||F?.writable!==!1&&y(J)):null}function c(J){var F,W;return T(J)?J.writableErrored?J.writableErrored:(F=(W=J._writableState)===null||W===void 0?void 0:W.errored)!==null&&F!==void 0?F:null:null}function n(J){var F,W;return T(J)?J.readableErrored?J.readableErrored:(F=(W=J._readableState)===null||W===void 0?void 0:W.errored)!==null&&F!==void 0?F:null:null}function i(J){if(!T(J))return null;if(typeof J.closed=="boolean")return J.closed;let{_writableState:F,_readableState:W}=J;return typeof F?.closed=="boolean"||typeof W?.closed=="boolean"?F?.closed||W?.closed:typeof J._closed=="boolean"&&Q0(J)?J._closed:null}function Q0(J){return typeof J._closed=="boolean"&&typeof J._defaultKeepAlive=="boolean"&&typeof J._removedConnection=="boolean"&&typeof J._removedContLen=="boolean"}function f(J){return typeof J._sent100=="boolean"&&Q0(J)}function W0(J){var F;return typeof J._consuming=="boolean"&&typeof J._dumped=="boolean"&&((F=J.req)===null||F===void 0?void 0:F.upgradeOrConnect)===void 0}function X(J){if(!T(J))return null;let{_writableState:F,_readableState:W}=J,Z=F||W;return!Z&&f(J)||!!(Z&&Z.autoDestroy&&Z.emitClose&&Z.closed===!1)}function Y(J){var F;return!!(J&&((F=J[k])!==null&&F!==void 0?F:J.readableDidRead||J.readableAborted))}function Q(J){var F,W,Z,C,K,G,R,L,_,s;return!!(J&&((F=(W=(Z=(C=(K=(G=J[H])!==null&&G!==void 0?G:J.readableErrored)!==null&&K!==void 0?K:J.writableErrored)!==null&&C!==void 0?C:(R=J._readableState)===null||R===void 0?void 0:R.errorEmitted)!==null&&Z!==void 0?Z:(L=J._writableState)===null||L===void 0?void 0:L.errorEmitted)!==null&&W!==void 0?W:(_=J._readableState)===null||_===void 0?void 0:_.errored)!==null&&F!==void 0?F:(s=J._writableState)===null||s===void 0?void 0:s.errored))}g.exports={kDestroyed:S,isDisturbed:Y,kIsDisturbed:k,isErrored:Q,kIsErrored:H,isReadable:v,kIsReadable:P,isClosed:i,isDestroyed:U,isDuplexNodeStream:$,isFinished:p,isIterable:D,isReadableNodeStream:z,isReadableEnded:M,isReadableFinished:x,isReadableErrored:n,isNodeStream:T,isWritable:y,isWritableNodeStream:V,isWritableEnded:N,isWritableFinished:I,isWritableErrored:c,isServerRequest:W0,isServerResponse:f,willEmitClose:X}}),v5=C0((l,g)=>{var E=(x5(),z5(k5)),{AbortError:A,codes:j}=V5(),{ERR_INVALID_ARG_TYPE:S,ERR_STREAM_PREMATURE_CLOSE:H}=j,{kEmptyObject:P,once:k}=N5(),{validateAbortSignal:z,validateFunction:V,validateObject:$}=e5(),{Promise:T}=P5(),{isClosed:D,isReadable:U,isReadableNodeStream:N,isReadableFinished:I,isReadableErrored:M,isWritable:x,isWritableNodeStream:v,isWritableFinished:y,isWritableErrored:p,isNodeStream:c,willEmitClose:n}=A5();function i(X){return X.setHeader&&typeof X.abort=="function"}var Q0=()=>{};function f(X,Y,Q){var J,F;arguments.length===2?(Q=Y,Y=P):Y==null?Y=P:$(Y,"options"),V(Q,"callback"),z(Y.signal,"options.signal"),Q=k(Q);let W=(J=Y.readable)!==null&&J!==void 0?J:N(X),Z=(F=Y.writable)!==null&&F!==void 0?F:v(X);if(!c(X))throw new S("stream","Stream",X);let{_writableState:C,_readableState:K}=X,G=()=>{X.writable||_()},R=n(X)&&N(X)===W&&v(X)===Z,L=y(X,!1),_=()=>{L=!0,X.destroyed&&(R=!1),!(R&&(!X.readable||W))&&(!W||s)&&Q.call(X)},s=I(X,!1),r=()=>{s=!0,X.destroyed&&(R=!1),!(R&&(!X.writable||Z))&&(!Z||L)&&Q.call(X)},Y0=(X0)=>{Q.call(X,X0)},u=D(X),d=()=>{u=!0;let X0=p(X)||M(X);if(X0&&typeof X0!="boolean")return Q.call(X,X0);if(W&&!s&&N(X,!0)&&!I(X,!1))return Q.call(X,new H);if(Z&&!L&&!y(X,!1))return Q.call(X,new H);Q.call(X)},a=()=>{X.req.on("finish",_)};i(X)?(X.on("complete",_),R||X.on("abort",d),X.req?a():X.on("request",a)):Z&&!C&&(X.on("end",G),X.on("close",G)),!R&&typeof X.aborted=="boolean"&&X.on("aborted",d),X.on("end",r),X.on("finish",_),Y.error!==!1&&X.on("error",Y0),X.on("close",d),u?E.nextTick(d):C!=null&&C.errorEmitted||K!=null&&K.errorEmitted?R||E.nextTick(d):(!W&&(!R||U(X))&&(L||x(X)===!1)||!Z&&(!R||x(X))&&(s||U(X)===!1)||K&&X.req&&X.aborted)&&E.nextTick(d);let V0=()=>{Q=Q0,X.removeListener("aborted",d),X.removeListener("complete",_),X.removeListener("abort",d),X.removeListener("request",a),X.req&&X.req.removeListener("finish",_),X.removeListener("end",G),X.removeListener("close",G),X.removeListener("finish",_),X.removeListener("end",r),X.removeListener("error",Y0),X.removeListener("close",d)};if(Y.signal&&!u){let X0=()=>{let F0=Q;V0(),F0.call(X,new A(void 0,{cause:Y.signal.reason}))};if(Y.signal.aborted)E.nextTick(X0);else{let F0=Q;Q=k((...w)=>{Y.signal.removeEventListener("abort",X0),F0.apply(X,w)}),Y.signal.addEventListener("abort",X0)}}return V0}function W0(X,Y){return new T((Q,J)=>{f(X,Y,(F)=>{F?J(F):Q()})})}g.exports=f,g.exports.finished=W0}),L7=C0((l,g)=>{var E=globalThis.AbortController||z9().AbortController,{codes:{ERR_INVALID_ARG_TYPE:A,ERR_MISSING_ARGS:j,ERR_OUT_OF_RANGE:S},AbortError:H}=V5(),{validateAbortSignal:P,validateInteger:k,validateObject:z}=e5(),V=P5().Symbol("kWeak"),{finished:$}=v5(),{ArrayPrototypePush:T,MathFloor:D,Number:U,NumberIsNaN:N,Promise:I,PromiseReject:M,PromisePrototypeThen:x,Symbol:v}=P5(),y=v("kEmpty"),p=v("kEof");function c(K,G){if(typeof K!="function")throw new A("fn",["Function","AsyncFunction"],K);G!=null&&z(G,"options"),G?.signal!=null&&P(G.signal,"options.signal");let R=1;return G?.concurrency!=null&&(R=D(G.concurrency)),k(R,"concurrency",1),async function*(){var L,_;let s=new E,r=this,Y0=[],u=s.signal,d={signal:u},a=()=>s.abort();G!=null&&(L=G.signal)!==null&&L!==void 0&&L.aborted&&a(),G==null||(_=G.signal)===null||_===void 0||_.addEventListener("abort",a);let V0,X0,F0=!1;function w(){F0=!0}async function q(){try{for await(let K0 of r){var m;if(F0)return;if(u.aborted)throw new H;try{K0=K(K0,d)}catch(t){K0=M(t)}K0!==y&&(typeof((m=K0)===null||m===void 0?void 0:m.catch)=="function"&&K0.catch(w),Y0.push(K0),V0&&(V0(),V0=null),!F0&&Y0.length&&Y0.length>=R&&await new I((t)=>{X0=t}))}Y0.push(p)}catch(K0){let t=M(K0);x(t,void 0,w),Y0.push(t)}finally{var e;F0=!0,V0&&(V0(),V0=null),G==null||(e=G.signal)===null||e===void 0||e.removeEventListener("abort",a)}}q();try{for(;;){for(;Y0.length>0;){let m=await Y0[0];if(m===p)return;if(u.aborted)throw new H;m!==y&&(yield m),Y0.shift(),X0&&(X0(),X0=null)}await new I((m)=>{V0=m})}}finally{s.abort(),F0=!0,X0&&(X0(),X0=null)}}.call(this)}function n(K=void 0){return K!=null&&z(K,"options"),K?.signal!=null&&P(K.signal,"options.signal"),async function*(){let G=0;for await(let L of this){var R;if(K!=null&&(R=K.signal)!==null&&R!==void 0&&R.aborted)throw new H({cause:K.signal.reason});yield[G++,L]}}.call(this)}async function i(K,G=void 0){for await(let R of X.call(this,K,G))return!0;return!1}async function Q0(K,G=void 0){if(typeof K!="function")throw new A("fn",["Function","AsyncFunction"],K);return!await i.call(this,async(...R)=>!await K(...R),G)}async function f(K,G){for await(let R of X.call(this,K,G))return R}async function W0(K,G){if(typeof K!="function")throw new A("fn",["Function","AsyncFunction"],K);async function R(L,_){return await K(L,_),y}for await(let L of c.call(this,R,G));}function X(K,G){if(typeof K!="function")throw new A("fn",["Function","AsyncFunction"],K);async function R(L,_){return await K(L,_)?L:y}return c.call(this,R,G)}var Y=class extends j{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function Q(K,G,R){var L;if(typeof K!="function")throw new A("reducer",["Function","AsyncFunction"],K);R!=null&&z(R,"options"),R?.signal!=null&&P(R.signal,"options.signal");let _=arguments.length>1;if(R!=null&&(L=R.signal)!==null&&L!==void 0&&L.aborted){let d=new H(void 0,{cause:R.signal.reason});throw this.once("error",()=>{}),await $(this.destroy(d)),d}let s=new E,r=s.signal;if(R!=null&&R.signal){let d={once:!0,[V]:this};R.signal.addEventListener("abort",()=>s.abort(),d)}let Y0=!1;try{for await(let d of this){var u;if(Y0=!0,R!=null&&(u=R.signal)!==null&&u!==void 0&&u.aborted)throw new H;_?G=await K(G,d,{signal:r}):(G=d,_=!0)}if(!Y0&&!_)throw new Y}finally{s.abort()}return G}async function J(K){K!=null&&z(K,"options"),K?.signal!=null&&P(K.signal,"options.signal");let G=[];for await(let L of this){var R;if(K!=null&&(R=K.signal)!==null&&R!==void 0&&R.aborted)throw new H(void 0,{cause:K.signal.reason});T(G,L)}return G}function F(K,G){let R=c.call(this,K,G);return async function*(){for await(let L of R)yield*L}.call(this)}function W(K){if(K=U(K),N(K))return 0;if(K<0)throw new S("number",">= 0",K);return K}function Z(K,G=void 0){return G!=null&&z(G,"options"),G?.signal!=null&&P(G.signal,"options.signal"),K=W(K),async function*(){var R;if(G!=null&&(R=G.signal)!==null&&R!==void 0&&R.aborted)throw new H;for await(let _ of this){var L;if(G!=null&&(L=G.signal)!==null&&L!==void 0&&L.aborted)throw new H;K--<=0&&(yield _)}}.call(this)}function C(K,G=void 0){return G!=null&&z(G,"options"),G?.signal!=null&&P(G.signal,"options.signal"),K=W(K),async function*(){var R;if(G!=null&&(R=G.signal)!==null&&R!==void 0&&R.aborted)throw new H;for await(let _ of this){var L;if(G!=null&&(L=G.signal)!==null&&L!==void 0&&L.aborted)throw new H;if(K-- >0)yield _;else return}}.call(this)}g.exports.streamReturningOperators={asIndexedPairs:n,drop:Z,filter:X,flatMap:F,map:c,take:C},g.exports.promiseReturningOperators={every:Q0,forEach:W0,reduce:Q,toArray:J,some:i,find:f}}),b5=C0((l,g)=>{var E=(x5(),z5(k5)),{aggregateTwoErrors:A,codes:{ERR_MULTIPLE_CALLBACK:j},AbortError:S}=V5(),{Symbol:H}=P5(),{kDestroyed:P,isDestroyed:k,isFinished:z,isServerRequest:V}=A5(),$=H("kDestroy"),T=H("kConstruct");function D(X,Y,Q){X&&(X.stack,Y&&!Y.errored&&(Y.errored=X),Q&&!Q.errored&&(Q.errored=X))}function U(X,Y){let Q=this._readableState,J=this._writableState,F=J||Q;return J&&J.destroyed||Q&&Q.destroyed?(typeof Y=="function"&&Y(),this):(D(X,J,Q),J&&(J.destroyed=!0),Q&&(Q.destroyed=!0),F.constructed?N(this,X,Y):this.once($,function(W){N(this,A(W,X),Y)}),this)}function N(X,Y,Q){let J=!1;function F(W){if(J)return;J=!0;let{_readableState:Z,_writableState:C}=X;D(W,C,Z),C&&(C.closed=!0),Z&&(Z.closed=!0),typeof Q=="function"&&Q(W),W?E.nextTick(I,X,W):E.nextTick(M,X)}try{X._destroy(Y||null,F)}catch(W){F(W)}}function I(X,Y){x(X,Y),M(X)}function M(X){let{_readableState:Y,_writableState:Q}=X;Q&&(Q.closeEmitted=!0),Y&&(Y.closeEmitted=!0),(Q&&Q.emitClose||Y&&Y.emitClose)&&X.emit("close")}function x(X,Y){let{_readableState:Q,_writableState:J}=X;J&&J.errorEmitted||Q&&Q.errorEmitted||(J&&(J.errorEmitted=!0),Q&&(Q.errorEmitted=!0),X.emit("error",Y))}function v(){let X=this._readableState,Y=this._writableState;X&&(X.constructed=!0,X.closed=!1,X.closeEmitted=!1,X.destroyed=!1,X.errored=null,X.errorEmitted=!1,X.reading=!1,X.ended=X.readable===!1,X.endEmitted=X.readable===!1),Y&&(Y.constructed=!0,Y.destroyed=!1,Y.closed=!1,Y.closeEmitted=!1,Y.errored=null,Y.errorEmitted=!1,Y.finalCalled=!1,Y.prefinished=!1,Y.ended=Y.writable===!1,Y.ending=Y.writable===!1,Y.finished=Y.writable===!1)}function y(X,Y,Q){let{_readableState:J,_writableState:F}=X;if(F&&F.destroyed||J&&J.destroyed)return this;J&&J.autoDestroy||F&&F.autoDestroy?X.destroy(Y):Y&&(Y.stack,F&&!F.errored&&(F.errored=Y),J&&!J.errored&&(J.errored=Y),Q?E.nextTick(x,X,Y):x(X,Y))}function p(X,Y){if(typeof X._construct!="function")return;let{_readableState:Q,_writableState:J}=X;Q&&(Q.constructed=!1),J&&(J.constructed=!1),X.once(T,Y),!(X.listenerCount(T)>1)&&E.nextTick(c,X)}function c(X){let Y=!1;function Q(J){if(Y){y(X,J??new j);return}Y=!0;let{_readableState:F,_writableState:W}=X,Z=W||F;F&&(F.constructed=!0),W&&(W.constructed=!0),Z.destroyed?X.emit($,J):J?y(X,J,!0):E.nextTick(n,X)}try{X._construct(Q)}catch(J){Q(J)}}function n(X){X.emit(T)}function i(X){return X&&X.setHeader&&typeof X.abort=="function"}function Q0(X){X.emit("close")}function f(X,Y){X.emit("error",Y),E.nextTick(Q0,X)}function W0(X,Y){!X||k(X)||(!Y&&!z(X)&&(Y=new S),V(X)?(X.socket=null,X.destroy(Y)):i(X)?X.abort():i(X.req)?X.req.abort():typeof X.destroy=="function"?X.destroy(Y):typeof X.close=="function"?X.close():Y?E.nextTick(f,X,Y):E.nextTick(Q0,X),X.destroyed||(X[P]=!0))}g.exports={construct:p,destroyer:W0,destroy:U,undestroy:v,errorOrDestroy:y}}),O9=C0((l,g)=>{var{ArrayIsArray:E,ObjectSetPrototypeOf:A}=P5(),{EventEmitter:j}=S5();function S(P){j.call(this,P)}A(S.prototype,j.prototype),A(S,j),S.prototype.pipe=function(P,k){let z=this;function V(M){P.writable&&P.write(M)===!1&&z.pause&&z.pause()}z.on("data",V);function $(){z.readable&&z.resume&&z.resume()}P.on("drain",$),!P._isStdio&&(!k||k.end!==!1)&&(z.on("end",D),z.on("close",U));let T=!1;function D(){T||(T=!0,P.end())}function U(){T||(T=!0,typeof P.destroy=="function"&&P.destroy())}function N(M){I(),j.listenerCount(this,"error")===0&&this.emit("error",M)}H(z,"error",N),H(P,"error",N);function I(){z.removeListener("data",V),P.removeListener("drain",$),z.removeListener("end",D),z.removeListener("close",U),z.removeListener("error",N),P.removeListener("error",N),z.removeListener("end",I),z.removeListener("close",I),P.removeListener("close",I)}return z.on("end",I),z.on("close",I),P.on("close",I),P.emit("pipe",z),P};function H(P,k,z){if(typeof P.prependListener=="function")return P.prependListener(k,z);!P._events||!P._events[k]?P.on(k,z):E(P._events[k])?P._events[k].unshift(z):P._events[k]=[z,P._events[k]]}g.exports={Stream:S,prependListener:H}}),T9=C0((l,g)=>{var{AbortError:E,codes:A}=V5(),j=v5(),{ERR_INVALID_ARG_TYPE:S}=A,H=(k,z)=>{if(typeof k!="object"||!("aborted"in k))throw new S(z,"AbortSignal",k)};function P(k){return!!(k&&typeof k.pipe=="function")}g.exports.addAbortSignal=function(k,z){if(H(k,"signal"),!P(z))throw new S("stream","stream.Stream",z);return g.exports.addAbortSignalNoValidate(k,z)},g.exports.addAbortSignalNoValidate=function(k,z){if(typeof k!="object"||!("aborted"in k))return z;let V=()=>{z.destroy(new E(void 0,{cause:k.reason}))};return k.aborted?V():(k.addEventListener("abort",V),j(z,()=>k.removeEventListener("abort",V))),z}}),k7=C0((l,g)=>{var{StringPrototypeSlice:E,SymbolIterator:A,TypedArrayPrototypeSet:j,Uint8Array:S}=P5(),{Buffer:H}=U5(),{inspect:P}=N5();g.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(k){let z={data:k,next:null};this.length>0?this.tail.next=z:this.head=z,this.tail=z,++this.length}unshift(k){let z={data:k,next:this.head};this.length===0&&(this.tail=z),this.head=z,++this.length}shift(){if(this.length===0)return;let k=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,k}clear(){this.head=this.tail=null,this.length=0}join(k){if(this.length===0)return"";let z=this.head,V=""+z.data;for(;(z=z.next)!==null;)V+=k+z.data;return V}concat(k){if(this.length===0)return H.alloc(0);let z=H.allocUnsafe(k>>>0),V=this.head,$=0;for(;V;)j(z,V.data,$),$+=V.data.length,V=V.next;return z}consume(k,z){let V=this.head.data;if(k<V.length){let $=V.slice(0,k);return this.head.data=V.slice(k),$}return k===V.length?this.shift():z?this._getString(k):this._getBuffer(k)}first(){return this.head.data}*[A](){for(let k=this.head;k;k=k.next)yield k.data}_getString(k){let z="",V=this.head,$=0;do{let T=V.data;if(k>T.length)z+=T,k-=T.length;else{k===T.length?(z+=T,++$,V.next?this.head=V.next:this.head=this.tail=null):(z+=E(T,0,k),this.head=V,V.data=E(T,k));break}++$}while((V=V.next)!==null);return this.length-=$,z}_getBuffer(k){let z=H.allocUnsafe(k),V=k,$=this.head,T=0;do{let D=$.data;if(k>D.length)j(z,D,V-k),k-=D.length;else{k===D.length?(j(z,D,V-k),++T,$.next?this.head=$.next:this.head=this.tail=null):(j(z,new S(D.buffer,D.byteOffset,k),V-k),this.head=$,$.data=D.slice(k));break}++T}while(($=$.next)!==null);return this.length-=T,z}[Symbol.for("nodejs.util.inspect.custom")](k,z){return P(this,{...z,depth:0,customInspect:!1})}}}),D9=C0((l,g)=>{var{MathFloor:E,NumberIsInteger:A}=P5(),{ERR_INVALID_ARG_VALUE:j}=V5().codes;function S(k,z,V){return k.highWaterMark!=null?k.highWaterMark:z?k[V]:null}function H(k){return k?16:16384}function P(k,z,V,$){let T=S(z,$,V);if(T!=null){if(!A(T)||T<0){let D=$?`options.${V}`:"options.highWaterMark";throw new j(D,T)}return E(T)}return H(k.objectMode)}g.exports={getHighWaterMark:P,getDefaultHighWaterMark:H}}),X6=C0((l,g)=>{var E=(x5(),z5(k5)),{PromisePrototypeThen:A,SymbolAsyncIterator:j,SymbolIterator:S}=P5(),{Buffer:H}=U5(),{ERR_INVALID_ARG_TYPE:P,ERR_STREAM_NULL_VALUES:k}=V5().codes;function z(V,$,T){let D;if(typeof $=="string"||$ instanceof H)return new V({objectMode:!0,...T,read(){this.push($),this.push(null)}});let U;if($&&$[j])U=!0,D=$[j]();else if($&&$[S])U=!1,D=$[S]();else throw new P("iterable",["Iterable"],$);let N=new V({objectMode:!0,highWaterMark:1,...T}),I=!1;N._read=function(){I||(I=!0,x())},N._destroy=function(v,y){A(M(v),()=>E.nextTick(y,v),(p)=>E.nextTick(y,p||v))};async function M(v){let y=v!=null,p=typeof D.throw=="function";if(y&&p){let{value:c,done:n}=await D.throw(v);if(await c,n)return}if(typeof D.return=="function"){let{value:c}=await D.return();await c}}async function x(){for(;;){try{let{value:v,done:y}=U?await D.next():D.next();if(y)N.push(null);else{let p=v&&typeof v.then=="function"?await v:v;if(p===null)throw I=!1,new k;if(N.push(p))continue;I=!1}}catch(v){N.destroy(v)}break}}return N}g.exports=z}),X9=C0((l,g)=>{var E=(x5(),z5(k5)),{ArrayPrototypeIndexOf:A,NumberIsInteger:j,NumberIsNaN:S,NumberParseInt:H,ObjectDefineProperties:P,ObjectKeys:k,ObjectSetPrototypeOf:z,Promise:V,SafeSet:$,SymbolAsyncIterator:T,Symbol:D}=P5();g.exports=R,R.ReadableState=G;var{EventEmitter:U}=S5(),{Stream:N,prependListener:I}=O9(),{Buffer:M}=U5(),{addAbortSignal:x}=T9(),v=v5(),y=N5().debuglog("stream",(O)=>{y=O}),p=k7(),c=b5(),{getHighWaterMark:n,getDefaultHighWaterMark:i}=D9(),{aggregateTwoErrors:Q0,codes:{ERR_INVALID_ARG_TYPE:f,ERR_METHOD_NOT_IMPLEMENTED:W0,ERR_OUT_OF_RANGE:X,ERR_STREAM_PUSH_AFTER_EOF:Y,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:Q}}=V5(),{validateObject:J}=e5(),F=D("kPaused"),{StringDecoder:W}=$9(),Z=X6();z(R.prototype,N.prototype),z(R,N);var C=()=>{},{errorOrDestroy:K}=c;function G(O,B,b){typeof b!="boolean"&&(b=B instanceof L5()),this.objectMode=!!(O&&O.objectMode),b&&(this.objectMode=this.objectMode||!!(O&&O.readableObjectMode)),this.highWaterMark=O?n(this,O,"readableHighWaterMark",b):i(!1),this.buffer=new p,this.length=0,this.pipes=[],this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.constructed=!0,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this[F]=null,this.errorEmitted=!1,this.emitClose=!O||O.emitClose!==!1,this.autoDestroy=!O||O.autoDestroy!==!1,this.destroyed=!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this.defaultEncoding=O&&O.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.multiAwaitDrain=!1,this.readingMore=!1,this.dataEmitted=!1,this.decoder=null,this.encoding=null,O&&O.encoding&&(this.decoder=new W(O.encoding),this.encoding=O.encoding)}function R(O){if(!(this instanceof R))return new R(O);let B=this instanceof L5();this._readableState=new G(O,this,B),O&&(typeof O.read=="function"&&(this._read=O.read),typeof O.destroy=="function"&&(this._destroy=O.destroy),typeof O.construct=="function"&&(this._construct=O.construct),O.signal&&!B&&x(O.signal,this)),N.call(this,O),c.construct(this,()=>{this._readableState.needReadable&&V0(this,this._readableState)})}R.prototype.destroy=c.destroy,R.prototype._undestroy=c.undestroy,R.prototype._destroy=function(O,B){B(O)},R.prototype[U.captureRejectionSymbol]=function(O){this.destroy(O)},R.prototype.push=function(O,B){return L(this,O,B,!1)},R.prototype.unshift=function(O,B){return L(this,O,B,!0)};function L(O,B,b,h){y("readableAddChunk",B);let o=O._readableState,z0;if(o.objectMode||(typeof B=="string"?(b=b||o.defaultEncoding,o.encoding!==b&&(h&&o.encoding?B=M.from(B,b).toString(o.encoding):(B=M.from(B,b),b=""))):B instanceof M?b="":N._isUint8Array(B)?(B=N._uint8ArrayToBuffer(B),b=""):B!=null&&(z0=new f("chunk",["string","Buffer","Uint8Array"],B))),z0)K(O,z0);else if(B===null)o.reading=!1,u(O,o);else if(o.objectMode||B&&B.length>0)if(h)if(o.endEmitted)K(O,new Q);else{if(o.destroyed||o.errored)return!1;_(O,o,B,!0)}else if(o.ended)K(O,new Y);else{if(o.destroyed||o.errored)return!1;o.reading=!1,o.decoder&&!b?(B=o.decoder.write(B),o.objectMode||B.length!==0?_(O,o,B,!1):V0(O,o)):_(O,o,B,!1)}else h||(o.reading=!1,V0(O,o));return!o.ended&&(o.length<o.highWaterMark||o.length===0)}function _(O,B,b,h){B.flowing&&B.length===0&&!B.sync&&O.listenerCount("data")>0?(B.multiAwaitDrain?B.awaitDrainWriters.clear():B.awaitDrainWriters=null,B.dataEmitted=!0,O.emit("data",b)):(B.length+=B.objectMode?1:b.length,h?B.buffer.unshift(b):B.buffer.push(b),B.needReadable&&d(O)),V0(O,B)}R.prototype.isPaused=function(){let O=this._readableState;return O[F]===!0||O.flowing===!1},R.prototype.setEncoding=function(O){let B=new W(O);this._readableState.decoder=B,this._readableState.encoding=this._readableState.decoder.encoding;let b=this._readableState.buffer,h="";for(let o of b)h+=B.write(o);return b.clear(),h!==""&&b.push(h),this._readableState.length=h.length,this};var s=1073741824;function r(O){if(O>s)throw new X("size","<= 1GiB",O);return O--,O|=O>>>1,O|=O>>>2,O|=O>>>4,O|=O>>>8,O|=O>>>16,O++,O}function Y0(O,B){return O<=0||B.length===0&&B.ended?0:B.objectMode?1:S(O)?B.flowing&&B.length?B.buffer.first().length:B.length:O<=B.length?O:B.ended?B.length:0}R.prototype.read=function(O){y("read",O),O===void 0?O=NaN:j(O)||(O=H(O,10));let B=this._readableState,b=O;if(O>B.highWaterMark&&(B.highWaterMark=r(O)),O!==0&&(B.emittedReadable=!1),O===0&&B.needReadable&&((B.highWaterMark!==0?B.length>=B.highWaterMark:B.length>0)||B.ended))return y("read: emitReadable",B.length,B.ended),B.length===0&&B.ended?G0(this):d(this),null;if(O=Y0(O,B),O===0&&B.ended)return B.length===0&&G0(this),null;let h=B.needReadable;if(y("need readable",h),(B.length===0||B.length-O<B.highWaterMark)&&(h=!0,y("length less than watermark",h)),B.ended||B.reading||B.destroyed||B.errored||!B.constructed)h=!1,y("reading, ended or constructing",h);else if(h){y("do read"),B.reading=!0,B.sync=!0,B.length===0&&(B.needReadable=!0);try{this._read(B.highWaterMark)}catch(z0){K(this,z0)}B.sync=!1,B.reading||(O=Y0(b,B))}let o;return O>0?o=H0(O,B):o=null,o===null?(B.needReadable=B.length<=B.highWaterMark,O=0):(B.length-=O,B.multiAwaitDrain?B.awaitDrainWriters.clear():B.awaitDrainWriters=null),B.length===0&&(B.ended||(B.needReadable=!0),b!==O&&B.ended&&G0(this)),o!==null&&!B.errorEmitted&&!B.closeEmitted&&(B.dataEmitted=!0,this.emit("data",o)),o};function u(O,B){if(y("onEofChunk"),!B.ended){if(B.decoder){let b=B.decoder.end();b&&b.length&&(B.buffer.push(b),B.length+=B.objectMode?1:b.length)}B.ended=!0,B.sync?d(O):(B.needReadable=!1,B.emittedReadable=!0,a(O))}}function d(O){let B=O._readableState;y("emitReadable",B.needReadable,B.emittedReadable),B.needReadable=!1,B.emittedReadable||(y("emitReadable",B.flowing),B.emittedReadable=!0,E.nextTick(a,O))}function a(O){let B=O._readableState;y("emitReadable_",B.destroyed,B.length,B.ended),!B.destroyed&&!B.errored&&(B.length||B.ended)&&(O.emit("readable"),B.emittedReadable=!1),B.needReadable=!B.flowing&&!B.ended&&B.length<=B.highWaterMark,K0(O)}function V0(O,B){!B.readingMore&&B.constructed&&(B.readingMore=!0,E.nextTick(X0,O,B))}function X0(O,B){for(;!B.reading&&!B.ended&&(B.length<B.highWaterMark||B.flowing&&B.length===0);){let b=B.length;if(y("maybeReadMore read 0"),O.read(0),b===B.length)break}B.readingMore=!1}R.prototype._read=function(O){throw new W0("_read()")},R.prototype.pipe=function(O,B){let b=this,h=this._readableState;h.pipes.length===1&&(h.multiAwaitDrain||(h.multiAwaitDrain=!0,h.awaitDrainWriters=new $(h.awaitDrainWriters?[h.awaitDrainWriters]:[]))),h.pipes.push(O),y("pipe count=%d opts=%j",h.pipes.length,B);let o=(!B||B.end!==!1)&&O!==E.stdout&&O!==E.stderr?J0:T0;h.endEmitted?E.nextTick(o):b.once("end",o),O.on("unpipe",z0);function z0(O0,l0){y("onunpipe"),O0===b&&l0&&l0.hasUnpiped===!1&&(l0.hasUnpiped=!0,P0())}function J0(){y("onend"),O.end()}let $0,b0=!1;function P0(){y("cleanup"),O.removeListener("close",N0),O.removeListener("finish",H5),$0&&O.removeListener("drain",$0),O.removeListener("error",D0),O.removeListener("unpipe",z0),b.removeListener("end",J0),b.removeListener("end",T0),b.removeListener("data",y0),b0=!0,$0&&h.awaitDrainWriters&&(!O._writableState||O._writableState.needDrain)&&$0()}function j0(){b0||(h.pipes.length===1&&h.pipes[0]===O?(y("false write response, pause",0),h.awaitDrainWriters=O,h.multiAwaitDrain=!1):h.pipes.length>1&&h.pipes.includes(O)&&(y("false write response, pause",h.awaitDrainWriters.size),h.awaitDrainWriters.add(O)),b.pause()),$0||($0=F0(b,O),O.on("drain",$0))}b.on("data",y0);function y0(O0){y("ondata");let l0=O.write(O0);y("dest.write",l0),l0===!1&&j0()}function D0(O0){if(y("onerror",O0),T0(),O.removeListener("error",D0),O.listenerCount("error")===0){let l0=O._writableState||O._readableState;l0&&!l0.errorEmitted?K(O,O0):O.emit("error",O0)}}I(O,"error",D0);function N0(){O.removeListener("finish",H5),T0()}O.once("close",N0);function H5(){y("onfinish"),O.removeListener("close",N0),T0()}O.once("finish",H5);function T0(){y("unpipe"),b.unpipe(O)}return O.emit("pipe",b),O.writableNeedDrain===!0?h.flowing&&j0():h.flowing||(y("pipe resume"),b.resume()),O};function F0(O,B){return function(){let b=O._readableState;b.awaitDrainWriters===B?(y("pipeOnDrain",1),b.awaitDrainWriters=null):b.multiAwaitDrain&&(y("pipeOnDrain",b.awaitDrainWriters.size),b.awaitDrainWriters.delete(B)),(!b.awaitDrainWriters||b.awaitDrainWriters.size===0)&&O.listenerCount("data")&&O.resume()}}R.prototype.unpipe=function(O){let B=this._readableState,b={hasUnpiped:!1};if(B.pipes.length===0)return this;if(!O){let o=B.pipes;B.pipes=[],this.pause();for(let z0=0;z0<o.length;z0++)o[z0].emit("unpipe",this,{hasUnpiped:!1});return this}let h=A(B.pipes,O);return h===-1?this:(B.pipes.splice(h,1),B.pipes.length===0&&this.pause(),O.emit("unpipe",this,b),this)},R.prototype.on=function(O,B){let b=N.prototype.on.call(this,O,B),h=this._readableState;return O==="data"?(h.readableListening=this.listenerCount("readable")>0,h.flowing!==!1&&this.resume()):O==="readable"&&!h.endEmitted&&!h.readableListening&&(h.readableListening=h.needReadable=!0,h.flowing=!1,h.emittedReadable=!1,y("on readable",h.length,h.reading),h.length?d(this):h.reading||E.nextTick(q,this)),b},R.prototype.addListener=R.prototype.on,R.prototype.removeListener=function(O,B){let b=N.prototype.removeListener.call(this,O,B);return O==="readable"&&E.nextTick(w,this),b},R.prototype.off=R.prototype.removeListener,R.prototype.removeAllListeners=function(O){let B=N.prototype.removeAllListeners.apply(this,arguments);return(O==="readable"||O===void 0)&&E.nextTick(w,this),B};function w(O){let B=O._readableState;B.readableListening=O.listenerCount("readable")>0,B.resumeScheduled&&B[F]===!1?B.flowing=!0:O.listenerCount("data")>0?O.resume():B.readableListening||(B.flowing=null)}function q(O){y("readable nexttick read 0"),O.read(0)}R.prototype.resume=function(){let O=this._readableState;return O.flowing||(y("resume"),O.flowing=!O.readableListening,m(this,O)),O[F]=!1,this};function m(O,B){B.resumeScheduled||(B.resumeScheduled=!0,E.nextTick(e,O,B))}function e(O,B){y("resume",B.reading),B.reading||O.read(0),B.resumeScheduled=!1,O.emit("resume"),K0(O),B.flowing&&!B.reading&&O.read(0)}R.prototype.pause=function(){return y("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(y("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[F]=!0,this};function K0(O){let B=O._readableState;for(y("flow",B.flowing);B.flowing&&O.read()!==null;);}R.prototype.wrap=function(O){let B=!1;O.on("data",(h)=>{!this.push(h)&&O.pause&&(B=!0,O.pause())}),O.on("end",()=>{this.push(null)}),O.on("error",(h)=>{K(this,h)}),O.on("close",()=>{this.destroy()}),O.on("destroy",()=>{this.destroy()}),this._read=()=>{B&&O.resume&&(B=!1,O.resume())};let b=k(O);for(let h=1;h<b.length;h++){let o=b[h];this[o]===void 0&&typeof O[o]=="function"&&(this[o]=O[o].bind(O))}return this},R.prototype[T]=function(){return t(this)},R.prototype.iterator=function(O){return O!==void 0&&J(O,"options"),t(this,O)};function t(O,B){typeof O.read!="function"&&(O=R.wrap(O,{objectMode:!0}));let b=_0(O,B);return b.stream=O,b}async function*_0(O,B){let b=C;function h(J0){this===O?(b(),b=C):b=J0}O.on("readable",h);let o,z0=v(O,{writable:!1},(J0)=>{o=J0?Q0(o,J0):null,b(),b=C});try{for(;;){let J0=O.destroyed?null:O.read();if(J0!==null)yield J0;else{if(o)throw o;if(o===null)return;await new V(h)}}}catch(J0){throw o=Q0(o,J0),o}finally{(o||B?.destroyOnReturn!==!1)&&(o===void 0||O._readableState.autoDestroy)?c.destroyer(O,null):(O.off("readable",h),z0())}}P(R.prototype,{readable:{__proto__:null,get(){let O=this._readableState;return!!O&&O.readable!==!1&&!O.destroyed&&!O.errorEmitted&&!O.endEmitted},set(O){this._readableState&&(this._readableState.readable=!!O)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(O){this._readableState&&(this._readableState.flowing=O)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(O){!this._readableState||(this._readableState.destroyed=O)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),P(G.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[F]!==!1},set(O){this[F]=!!O}}}),R._fromList=H0;function H0(O,B){if(B.length===0)return null;let b;return B.objectMode?b=B.buffer.shift():!O||O>=B.length?(B.decoder?b=B.buffer.join(""):B.buffer.length===1?b=B.buffer.first():b=B.buffer.concat(B.length),B.buffer.clear()):b=B.buffer.consume(O,B.decoder),b}function G0(O){let B=O._readableState;y("endReadable",B.endEmitted),B.endEmitted||(B.ended=!0,E.nextTick(w0,B,O))}function w0(O,B){if(y("endReadableNT",O.endEmitted,O.length),!O.errored&&!O.closeEmitted&&!O.endEmitted&&O.length===0){if(O.endEmitted=!0,B.emit("end"),B.writable&&B.allowHalfOpen===!1)E.nextTick(U0,B);else if(O.autoDestroy){let b=B._writableState;(!b||b.autoDestroy&&(b.finished||b.writable===!1))&&B.destroy()}}}function U0(O){O.writable&&!O.writableEnded&&!O.destroyed&&O.end()}R.from=function(O,B){return Z(R,O,B)};var Z0;function c0(){return Z0===void 0&&(Z0={}),Z0}R.fromWeb=function(O,B){return c0().newStreamReadableFromReadableStream(O,B)},R.toWeb=function(O,B){return c0().newReadableStreamFromStreamReadable(O,B)},R.wrap=function(O,B){var b,h;return new R({objectMode:(b=(h=O.readableObjectMode)!==null&&h!==void 0?h:O.objectMode)!==null&&b!==void 0?b:!0,...B,destroy(o,z0){c.destroyer(O,o),z0(o)}}).wrap(O)}}),K6=C0((l,g)=>{var E=(x5(),z5(k5)),{ArrayPrototypeSlice:A,Error:j,FunctionPrototypeSymbolHasInstance:S,ObjectDefineProperty:H,ObjectDefineProperties:P,ObjectSetPrototypeOf:k,StringPrototypeToLowerCase:z,Symbol:V,SymbolHasInstance:$}=P5();g.exports=W,W.WritableState=J;var{EventEmitter:T}=S5(),D=O9().Stream,{Buffer:U}=U5(),N=b5(),{addAbortSignal:I}=T9(),{getHighWaterMark:M,getDefaultHighWaterMark:x}=D9(),{ERR_INVALID_ARG_TYPE:v,ERR_METHOD_NOT_IMPLEMENTED:y,ERR_MULTIPLE_CALLBACK:p,ERR_STREAM_CANNOT_PIPE:c,ERR_STREAM_DESTROYED:n,ERR_STREAM_ALREADY_FINISHED:i,ERR_STREAM_NULL_VALUES:Q0,ERR_STREAM_WRITE_AFTER_END:f,ERR_UNKNOWN_ENCODING:W0}=V5().codes,{errorOrDestroy:X}=N;k(W.prototype,D.prototype),k(W,D);function Y(){}var Q=V("kOnFinished");function J(q,m,e){typeof e!="boolean"&&(e=m instanceof L5()),this.objectMode=!!(q&&q.objectMode),e&&(this.objectMode=this.objectMode||!!(q&&q.writableObjectMode)),this.highWaterMark=q?M(this,q,"writableHighWaterMark",e):x(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let K0=!!(q&&q.decodeStrings===!1);this.decodeStrings=!K0,this.defaultEncoding=q&&q.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=R.bind(void 0,m),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,F(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!q||q.emitClose!==!1,this.autoDestroy=!q||q.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[Q]=[]}function F(q){q.buffered=[],q.bufferedIndex=0,q.allBuffers=!0,q.allNoop=!0}J.prototype.getBuffer=function(){return A(this.buffered,this.bufferedIndex)},H(J.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function W(q){let m=this instanceof L5();if(!m&&!S(W,this))return new W(q);this._writableState=new J(q,this,m),q&&(typeof q.write=="function"&&(this._write=q.write),typeof q.writev=="function"&&(this._writev=q.writev),typeof q.destroy=="function"&&(this._destroy=q.destroy),typeof q.final=="function"&&(this._final=q.final),typeof q.construct=="function"&&(this._construct=q.construct),q.signal&&I(q.signal,this)),D.call(this,q),N.construct(this,()=>{let e=this._writableState;e.writing||r(this,e),a(this,e)})}H(W,$,{__proto__:null,value:function(q){return S(this,q)?!0:this!==W?!1:q&&q._writableState instanceof J}}),W.prototype.pipe=function(){X(this,new c)};function Z(q,m,e,K0){let t=q._writableState;if(typeof e=="function")K0=e,e=t.defaultEncoding;else{if(!e)e=t.defaultEncoding;else if(e!=="buffer"&&!U.isEncoding(e))throw new W0(e);typeof K0!="function"&&(K0=Y)}if(m===null)throw new Q0;if(!t.objectMode)if(typeof m=="string")t.decodeStrings!==!1&&(m=U.from(m,e),e="buffer");else if(m instanceof U)e="buffer";else if(D._isUint8Array(m))m=D._uint8ArrayToBuffer(m),e="buffer";else throw new v("chunk",["string","Buffer","Uint8Array"],m);let _0;return t.ending?_0=new f:t.destroyed&&(_0=new n("write")),_0?(E.nextTick(K0,_0),X(q,_0,!0),_0):(t.pendingcb++,C(q,t,m,e,K0))}W.prototype.write=function(q,m,e){return Z(this,q,m,e)===!0},W.prototype.cork=function(){this._writableState.corked++},W.prototype.uncork=function(){let q=this._writableState;q.corked&&(q.corked--,q.writing||r(this,q))},W.prototype.setDefaultEncoding=function(q){if(typeof q=="string"&&(q=z(q)),!U.isEncoding(q))throw new W0(q);return this._writableState.defaultEncoding=q,this};function C(q,m,e,K0,t){let _0=m.objectMode?1:e.length;m.length+=_0;let H0=m.length<m.highWaterMark;return H0||(m.needDrain=!0),m.writing||m.corked||m.errored||!m.constructed?(m.buffered.push({chunk:e,encoding:K0,callback:t}),m.allBuffers&&K0!=="buffer"&&(m.allBuffers=!1),m.allNoop&&t!==Y&&(m.allNoop=!1)):(m.writelen=_0,m.writecb=t,m.writing=!0,m.sync=!0,q._write(e,K0,m.onwrite),m.sync=!1),H0&&!m.errored&&!m.destroyed}function K(q,m,e,K0,t,_0,H0){m.writelen=K0,m.writecb=H0,m.writing=!0,m.sync=!0,m.destroyed?m.onwrite(new n("write")):e?q._writev(t,m.onwrite):q._write(t,_0,m.onwrite),m.sync=!1}function G(q,m,e,K0){--m.pendingcb,K0(e),s(m),X(q,e)}function R(q,m){let e=q._writableState,K0=e.sync,t=e.writecb;if(typeof t!="function"){X(q,new p);return}e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0,m?(m.stack,e.errored||(e.errored=m),q._readableState&&!q._readableState.errored&&(q._readableState.errored=m),K0?E.nextTick(G,q,e,m,t):G(q,e,m,t)):(e.buffered.length>e.bufferedIndex&&r(q,e),K0?e.afterWriteTickInfo!==null&&e.afterWriteTickInfo.cb===t?e.afterWriteTickInfo.count++:(e.afterWriteTickInfo={count:1,cb:t,stream:q,state:e},E.nextTick(L,e.afterWriteTickInfo)):_(q,e,1,t))}function L({stream:q,state:m,count:e,cb:K0}){return m.afterWriteTickInfo=null,_(q,m,e,K0)}function _(q,m,e,K0){for(!m.ending&&!q.destroyed&&m.length===0&&m.needDrain&&(m.needDrain=!1,q.emit("drain"));e-- >0;)m.pendingcb--,K0();m.destroyed&&s(m),a(q,m)}function s(q){if(q.writing)return;for(let t=q.bufferedIndex;t<q.buffered.length;++t){var m;let{chunk:_0,callback:H0}=q.buffered[t],G0=q.objectMode?1:_0.length;q.length-=G0,H0((m=q.errored)!==null&&m!==void 0?m:new n("write"))}let e=q[Q].splice(0);for(let t=0;t<e.length;t++){var K0;e[t]((K0=q.errored)!==null&&K0!==void 0?K0:new n("end"))}F(q)}function r(q,m){if(m.corked||m.bufferProcessing||m.destroyed||!m.constructed)return;let{buffered:e,bufferedIndex:K0,objectMode:t}=m,_0=e.length-K0;if(!_0)return;let H0=K0;if(m.bufferProcessing=!0,_0>1&&q._writev){m.pendingcb-=_0-1;let G0=m.allNoop?Y:(U0)=>{for(let Z0=H0;Z0<e.length;++Z0)e[Z0].callback(U0)},w0=m.allNoop&&H0===0?e:A(e,H0);w0.allBuffers=m.allBuffers,K(q,m,!0,m.length,w0,"",G0),F(m)}else{do{let{chunk:G0,encoding:w0,callback:U0}=e[H0];e[H0++]=null;let Z0=t?1:G0.length;K(q,m,!1,Z0,G0,w0,U0)}while(H0<e.length&&!m.writing);H0===e.length?F(m):H0>256?(e.splice(0,H0),m.bufferedIndex=0):m.bufferedIndex=H0}m.bufferProcessing=!1}W.prototype._write=function(q,m,e){if(this._writev)this._writev([{chunk:q,encoding:m}],e);else throw new y("_write()")},W.prototype._writev=null,W.prototype.end=function(q,m,e){let K0=this._writableState;typeof q=="function"?(e=q,q=null,m=null):typeof m=="function"&&(e=m,m=null);let t;if(q!=null){let _0=Z(this,q,m);_0 instanceof j&&(t=_0)}return K0.corked&&(K0.corked=1,this.uncork()),t||(!K0.errored&&!K0.ending?(K0.ending=!0,a(this,K0,!0),K0.ended=!0):K0.finished?t=new i("end"):K0.destroyed&&(t=new n("end"))),typeof e=="function"&&(t||K0.finished?E.nextTick(e,t):K0[Q].push(e)),this};function Y0(q){return q.ending&&!q.destroyed&&q.constructed&&q.length===0&&!q.errored&&q.buffered.length===0&&!q.finished&&!q.writing&&!q.errorEmitted&&!q.closeEmitted}function u(q,m){let e=!1;function K0(t){if(e){X(q,t??p());return}if(e=!0,m.pendingcb--,t){let _0=m[Q].splice(0);for(let H0=0;H0<_0.length;H0++)_0[H0](t);X(q,t,m.sync)}else Y0(m)&&(m.prefinished=!0,q.emit("prefinish"),m.pendingcb++,E.nextTick(V0,q,m))}m.sync=!0,m.pendingcb++;try{q._final(K0)}catch(t){K0(t)}m.sync=!1}function d(q,m){!m.prefinished&&!m.finalCalled&&(typeof q._final=="function"&&!m.destroyed?(m.finalCalled=!0,u(q,m)):(m.prefinished=!0,q.emit("prefinish")))}function a(q,m,e){Y0(m)&&(d(q,m),m.pendingcb===0&&(e?(m.pendingcb++,E.nextTick((K0,t)=>{Y0(t)?V0(K0,t):t.pendingcb--},q,m)):Y0(m)&&(m.pendingcb++,V0(q,m))))}function V0(q,m){m.pendingcb--,m.finished=!0;let e=m[Q].splice(0);for(let K0=0;K0<e.length;K0++)e[K0]();if(q.emit("finish"),m.autoDestroy){let K0=q._readableState;(!K0||K0.autoDestroy&&(K0.endEmitted||K0.readable===!1))&&q.destroy()}}P(W.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(q){this._writableState&&(this._writableState.destroyed=q)}},writable:{__proto__:null,get(){let q=this._writableState;return!!q&&q.writable!==!1&&!q.destroyed&&!q.errored&&!q.ending&&!q.ended},set(q){this._writableState&&(this._writableState.writable=!!q)}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){let q=this._writableState;return q?!q.destroyed&&!q.ending&&q.needDrain:!1}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});var X0=N.destroy;W.prototype.destroy=function(q,m){let e=this._writableState;return!e.destroyed&&(e.bufferedIndex<e.buffered.length||e[Q].length)&&E.nextTick(s,e),X0.call(this,q,m),this},W.prototype._undestroy=N.undestroy,W.prototype._destroy=function(q,m){m(q)},W.prototype[T.captureRejectionSymbol]=function(q){this.destroy(q)};var F0;function w(){return F0===void 0&&(F0={}),F0}W.fromWeb=function(q,m){return w().newStreamWritableFromWritableStream(q,m)},W.toWeb=function(q){return w().newWritableStreamFromStreamWritable(q)}}),I7=C0((l,g)=>{var E=(x5(),z5(k5)),A=U5(),{isReadable:j,isWritable:S,isIterable:H,isNodeStream:P,isReadableNodeStream:k,isWritableNodeStream:z,isDuplexNodeStream:V}=A5(),$=v5(),{AbortError:T,codes:{ERR_INVALID_ARG_TYPE:D,ERR_INVALID_RETURN_VALUE:U}}=V5(),{destroyer:N}=b5(),I=L5(),M=X9(),{createDeferredPromise:x}=N5(),v=X6(),y=globalThis.Blob||A.Blob,p=typeof y<"u"?function(W0){return W0 instanceof y}:function(W0){return!1},c=globalThis.AbortController||z9().AbortController,{FunctionPrototypeCall:n}=P5(),i=class extends I{constructor(W0){super(W0),W0?.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),W0?.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};g.exports=function W0(X,Y){if(V(X))return X;if(k(X))return f({readable:X});if(z(X))return f({writable:X});if(P(X))return f({writable:!1,readable:!1});if(typeof X=="function"){let{value:J,write:F,final:W,destroy:Z}=Q0(X);if(H(J))return v(i,J,{objectMode:!0,write:F,final:W,destroy:Z});let C=J?.then;if(typeof C=="function"){let K,G=n(C,J,(R)=>{if(R!=null)throw new U("nully","body",R)},(R)=>{N(K,R)});return K=new i({objectMode:!0,readable:!1,write:F,final(R){W(async()=>{try{await G,E.nextTick(R,null)}catch(L){E.nextTick(R,L)}})},destroy:Z})}throw new U("Iterable, AsyncIterable or AsyncFunction",Y,J)}if(p(X))return W0(X.arrayBuffer());if(H(X))return v(i,X,{objectMode:!0,writable:!1});if(typeof X?.writable=="object"||typeof X?.readable=="object"){let J=X!=null&&X.readable?k(X?.readable)?X?.readable:W0(X.readable):void 0,F=X!=null&&X.writable?z(X?.writable)?X?.writable:W0(X.writable):void 0;return f({readable:J,writable:F})}let Q=X?.then;if(typeof Q=="function"){let J;return n(Q,X,(F)=>{F!=null&&J.push(F),J.push(null)},(F)=>{N(J,F)}),J=new i({objectMode:!0,writable:!1,read(){}})}throw new D(Y,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],X)};function Q0(W0){let{promise:X,resolve:Y}=x(),Q=new c,J=Q.signal;return{value:W0(async function*(){for(;;){let F=X;X=null;let{chunk:W,done:Z,cb:C}=await F;if(E.nextTick(C),Z)return;if(J.aborted)throw new T(void 0,{cause:J.reason});({promise:X,resolve:Y}=x()),yield W}}(),{signal:J}),write(F,W,Z){let C=Y;Y=null,C({chunk:F,done:!1,cb:Z})},final(F){let W=Y;Y=null,W({done:!0,cb:F})},destroy(F,W){Q.abort(),W(F)}}}function f(W0){let X=W0.readable&&typeof W0.readable.read!="function"?M.wrap(W0.readable):W0.readable,Y=W0.writable,Q=!!j(X),J=!!S(Y),F,W,Z,C,K;function G(R){let L=C;C=null,L?L(R):R?K.destroy(R):!Q&&!J&&K.destroy()}return K=new i({readableObjectMode:!!(X!=null&&X.readableObjectMode),writableObjectMode:!!(Y!=null&&Y.writableObjectMode),readable:Q,writable:J}),J&&($(Y,(R)=>{J=!1,R&&N(X,R),G(R)}),K._write=function(R,L,_){Y.write(R,L)?_():F=_},K._final=function(R){Y.end(),W=R},Y.on("drain",function(){if(F){let R=F;F=null,R()}}),Y.on("finish",function(){if(W){let R=W;W=null,R()}})),Q&&($(X,(R)=>{Q=!1,R&&N(X,R),G(R)}),X.on("readable",function(){if(Z){let R=Z;Z=null,R()}}),X.on("end",function(){K.push(null)}),K._read=function(){for(;;){let R=X.read();if(R===null){Z=K._read;return}if(!K.push(R))return}}),K._destroy=function(R,L){!R&&C!==null&&(R=new T),Z=null,F=null,W=null,C===null?L(R):(C=L,N(Y,R),N(X,R))},K}}),L5=C0((l,g)=>{var{ObjectDefineProperties:E,ObjectGetOwnPropertyDescriptor:A,ObjectKeys:j,ObjectSetPrototypeOf:S}=P5();g.exports=k;var H=X9(),P=K6();S(k.prototype,H.prototype),S(k,H);{let T=j(P.prototype);for(let D=0;D<T.length;D++){let U=T[D];k.prototype[U]||(k.prototype[U]=P.prototype[U])}}function k(T){if(!(this instanceof k))return new k(T);H.call(this,T),P.call(this,T),T?(this.allowHalfOpen=T.allowHalfOpen!==!1,T.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),T.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}E(k.prototype,{writable:{__proto__:null,...A(P.prototype,"writable")},writableHighWaterMark:{__proto__:null,...A(P.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...A(P.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...A(P.prototype,"writableBuffer")},writableLength:{__proto__:null,...A(P.prototype,"writableLength")},writableFinished:{__proto__:null,...A(P.prototype,"writableFinished")},writableCorked:{__proto__:null,...A(P.prototype,"writableCorked")},writableEnded:{__proto__:null,...A(P.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...A(P.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set(T){this._readableState&&this._writableState&&(this._readableState.destroyed=T,this._writableState.destroyed=T)}}});var z;function V(){return z===void 0&&(z={}),z}k.fromWeb=function(T,D){return V().newStreamDuplexFromReadableWritablePair(T,D)},k.toWeb=function(T){return V().newReadableWritablePairFromDuplex(T)};var $;k.from=function(T){return $||($=I7()),$(T,"body")}}),Y6=C0((l,g)=>{var{ObjectSetPrototypeOf:E,Symbol:A}=P5();g.exports=k;var{ERR_METHOD_NOT_IMPLEMENTED:j}=V5().codes,S=L5(),{getHighWaterMark:H}=D9();E(k.prototype,S.prototype),E(k,S);var P=A("kCallback");function k($){if(!(this instanceof k))return new k($);let T=$?H(this,$,"readableHighWaterMark",!0):null;T===0&&($={...$,highWaterMark:null,readableHighWaterMark:T,writableHighWaterMark:$.writableHighWaterMark||0}),S.call(this,$),this._readableState.sync=!1,this[P]=null,$&&(typeof $.transform=="function"&&(this._transform=$.transform),typeof $.flush=="function"&&(this._flush=$.flush)),this.on("prefinish",V)}function z($){typeof this._flush=="function"&&!this.destroyed?this._flush((T,D)=>{if(T){$?$(T):this.destroy(T);return}D!=null&&this.push(D),this.push(null),$&&$()}):(this.push(null),$&&$())}function V(){this._final!==z&&z.call(this)}k.prototype._final=z,k.prototype._transform=function($,T,D){throw new j("_transform()")},k.prototype._write=function($,T,D){let U=this._readableState,N=this._writableState,I=U.length;this._transform($,T,(M,x)=>{if(M){D(M);return}x!=null&&this.push(x),N.ended||I===U.length||U.length<U.highWaterMark?D():this[P]=D})},k.prototype._read=function(){if(this[P]){let $=this[P];this[P]=null,$()}}}),J6=C0((l,g)=>{var{ObjectSetPrototypeOf:E}=P5();g.exports=j;var A=Y6();E(j.prototype,A.prototype),E(j,A);function j(S){if(!(this instanceof j))return new j(S);A.call(this,S)}j.prototype._transform=function(S,H,P){P(null,S)}}),N9=C0((l,g)=>{var E=(x5(),z5(k5)),{ArrayIsArray:A,Promise:j,SymbolAsyncIterator:S}=P5(),H=v5(),{once:P}=N5(),k=b5(),z=L5(),{aggregateTwoErrors:V,codes:{ERR_INVALID_ARG_TYPE:$,ERR_INVALID_RETURN_VALUE:T,ERR_MISSING_ARGS:D,ERR_STREAM_DESTROYED:U,ERR_STREAM_PREMATURE_CLOSE:N},AbortError:I}=V5(),{validateFunction:M,validateAbortSignal:x}=e5(),{isIterable:v,isReadable:y,isReadableNodeStream:p,isNodeStream:c}=A5(),n=globalThis.AbortController||z9().AbortController,i,Q0;function f(Z,C,K){let G=!1;Z.on("close",()=>{G=!0});let R=H(Z,{readable:C,writable:K},(L)=>{G=!L});return{destroy:(L)=>{G||(G=!0,k.destroyer(Z,L||new U("pipe")))},cleanup:R}}function W0(Z){return M(Z[Z.length-1],"streams[stream.length - 1]"),Z.pop()}function X(Z){if(v(Z))return Z;if(p(Z))return Y(Z);throw new $("val",["Readable","Iterable","AsyncIterable"],Z)}async function*Y(Z){Q0||(Q0=X9()),yield*Q0.prototype[S].call(Z)}async function Q(Z,C,K,{end:G}){let R,L=null,_=(Y0)=>{if(Y0&&(R=Y0),L){let u=L;L=null,u()}},s=()=>new j((Y0,u)=>{R?u(R):L=()=>{R?u(R):Y0()}});C.on("drain",_);let r=H(C,{readable:!1},_);try{C.writableNeedDrain&&await s();for await(let Y0 of Z)C.write(Y0)||await s();G&&C.end(),await s(),K()}catch(Y0){K(R!==Y0?V(R,Y0):Y0)}finally{r(),C.off("drain",_)}}function J(...Z){return F(Z,P(W0(Z)))}function F(Z,C,K){if(Z.length===1&&A(Z[0])&&(Z=Z[0]),Z.length<2)throw new D("streams");let G=new n,R=G.signal,L=K?.signal,_=[];x(L,"options.signal");function s(){V0(new I)}L?.addEventListener("abort",s);let r,Y0,u=[],d=0;function a(q){V0(q,--d===0)}function V0(q,m){if(q&&(!r||r.code==="ERR_STREAM_PREMATURE_CLOSE")&&(r=q),!(!r&&!m)){for(;u.length;)u.shift()(r);L?.removeEventListener("abort",s),G.abort(),m&&(r||_.forEach((e)=>e()),E.nextTick(C,r,Y0))}}let X0;for(let q=0;q<Z.length;q++){let m=Z[q],e=q<Z.length-1,K0=q>0,t=e||K?.end!==!1,_0=q===Z.length-1;if(c(m)){let H0=function(G0){G0&&G0.name!=="AbortError"&&G0.code!=="ERR_STREAM_PREMATURE_CLOSE"&&a(G0)};var F0=H0;if(t){let{destroy:G0,cleanup:w0}=f(m,e,K0);u.push(G0),y(m)&&_0&&_.push(w0)}m.on("error",H0),y(m)&&_0&&_.push(()=>{m.removeListener("error",H0)})}if(q===0)if(typeof m=="function"){if(X0=m({signal:R}),!v(X0))throw new T("Iterable, AsyncIterable or Stream","source",X0)}else v(m)||p(m)?X0=m:X0=z.from(m);else if(typeof m=="function")if(X0=X(X0),X0=m(X0,{signal:R}),e){if(!v(X0,!0))throw new T("AsyncIterable",`transform[${q-1}]`,X0)}else{var w;i||(i=J6());let H0=new i({objectMode:!0}),G0=(w=X0)===null||w===void 0?void 0:w.then;if(typeof G0=="function")d++,G0.call(X0,(Z0)=>{Y0=Z0,Z0!=null&&H0.write(Z0),t&&H0.end(),E.nextTick(a)},(Z0)=>{H0.destroy(Z0),E.nextTick(a,Z0)});else if(v(X0,!0))d++,Q(X0,H0,a,{end:t});else throw new T("AsyncIterable or Promise","destination",X0);X0=H0;let{destroy:w0,cleanup:U0}=f(X0,!1,!0);u.push(w0),_0&&_.push(U0)}else if(c(m)){if(p(X0)){d+=2;let H0=W(X0,m,a,{end:t});y(m)&&_0&&_.push(H0)}else if(v(X0))d++,Q(X0,m,a,{end:t});else throw new $("val",["Readable","Iterable","AsyncIterable"],X0);X0=m}else X0=z.from(m)}return(R!=null&&R.aborted||L!=null&&L.aborted)&&E.nextTick(s),X0}function W(Z,C,K,{end:G}){let R=!1;return C.on("close",()=>{R||K(new N)}),Z.pipe(C,{end:G}),G?Z.once("end",()=>{R=!0,C.end()}):K(),H(Z,{readable:!0,writable:!1},(L)=>{let _=Z._readableState;L&&L.code==="ERR_STREAM_PREMATURE_CLOSE"&&_&&_.ended&&!_.errored&&!_.errorEmitted?Z.once("end",K).once("error",K):K(L)}),H(C,{readable:!1,writable:!0},K)}g.exports={pipelineImpl:F,pipeline:J}}),q7=C0((l,g)=>{var{pipeline:E}=N9(),A=L5(),{destroyer:j}=b5(),{isNodeStream:S,isReadable:H,isWritable:P}=A5(),{AbortError:k,codes:{ERR_INVALID_ARG_VALUE:z,ERR_MISSING_ARGS:V}}=V5();g.exports=function(...$){if($.length===0)throw new V("streams");if($.length===1)return A.from($[0]);let T=[...$];if(typeof $[0]=="function"&&($[0]=A.from($[0])),typeof $[$.length-1]=="function"){let n=$.length-1;$[n]=A.from($[n])}for(let n=0;n<$.length;++n)if(S($[n])){if(n<$.length-1&&!H($[n]))throw new z(`streams[${n}]`,T[n],"must be readable");if(n>0&&!P($[n]))throw new z(`streams[${n}]`,T[n],"must be writable")}let D,U,N,I,M;function x(n){let i=I;I=null,i?i(n):n?M.destroy(n):!c&&!p&&M.destroy()}let v=$[0],y=E($,x),p=!!P(v),c=!!H(y);return M=new A({writableObjectMode:!!(v!=null&&v.writableObjectMode),readableObjectMode:!!(y!=null&&y.writableObjectMode),writable:p,readable:c}),p&&(M._write=function(n,i,Q0){v.write(n,i)?Q0():D=Q0},M._final=function(n){v.end(),U=n},v.on("drain",function(){if(D){let n=D;D=null,n()}}),y.on("finish",function(){if(U){let n=U;U=null,n()}})),c&&(y.on("readable",function(){if(N){let n=N;N=null,n()}}),y.on("end",function(){M.push(null)}),M._read=function(){for(;;){let n=y.read();if(n===null){N=M._read;return}if(!M.push(n))return}}),M._destroy=function(n,i){!n&&I!==null&&(n=new k),N=null,D=null,U=null,I===null?i(n):(I=i,j(y,n))},M}}),Q6=C0((l,g)=>{var{ArrayPrototypePop:E,Promise:A}=P5(),{isIterable:j,isNodeStream:S}=A5(),{pipelineImpl:H}=N9(),{finished:P}=v5();function k(...z){return new A((V,$)=>{let T,D,U=z[z.length-1];if(U&&typeof U=="object"&&!S(U)&&!j(U)){let N=E(z);T=N.signal,D=N.end}H(z,(N,I)=>{N?$(N):V(I)},{signal:T,end:D})})}g.exports={finished:P,pipeline:k}}),B7=C0((l,g)=>{var{Buffer:E}=U5(),{ObjectDefineProperty:A,ObjectKeys:j,ReflectApply:S}=P5(),{promisify:{custom:H}}=N5(),{streamReturningOperators:P,promiseReturningOperators:k}=L7(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:z}}=V5(),V=q7(),{pipeline:$}=N9(),{destroyer:T}=b5(),D=v5(),U=Q6(),N=A5(),I=g.exports=O9().Stream;I.isDisturbed=N.isDisturbed,I.isErrored=N.isErrored,I.isReadable=N.isReadable,I.Readable=X9();for(let v of j(P)){let y=function(...c){if(new.target)throw z();return I.Readable.from(S(p,this,c))};M=y;let p=P[v];A(y,"name",{__proto__:null,value:p.name}),A(y,"length",{__proto__:null,value:p.length}),A(I.Readable.prototype,v,{__proto__:null,value:y,enumerable:!1,configurable:!0,writable:!0})}var M;for(let v of j(k)){let y=function(...c){if(new.target)throw z();return S(p,this,c)};M=y;let p=k[v];A(y,"name",{__proto__:null,value:p.name}),A(y,"length",{__proto__:null,value:p.length}),A(I.Readable.prototype,v,{__proto__:null,value:y,enumerable:!1,configurable:!0,writable:!0})}var M;I.Writable=K6(),I.Duplex=L5(),I.Transform=Y6(),I.PassThrough=J6(),I.pipeline=$;var{addAbortSignal:x}=T9();I.addAbortSignal=x,I.finished=D,I.destroy=T,I.compose=V,A(I,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return U}}),A($,H,{__proto__:null,enumerable:!0,get(){return U.pipeline}}),A(D,H,{__proto__:null,enumerable:!0,get(){return U.finished}}),I.Stream=I,I._isUint8Array=function(v){return v instanceof Uint8Array},I._uint8ArrayToBuffer=function(v){return E.from(v.buffer,v.byteOffset,v.byteLength)}}),d9=C0((l,g)=>{var E=B7(),A=Q6(),j=E.Readable.destroy;g.exports=E.Readable,g.exports._uint8ArrayToBuffer=E._uint8ArrayToBuffer,g.exports._isUint8Array=E._isUint8Array,g.exports.isDisturbed=E.isDisturbed,g.exports.isErrored=E.isErrored,g.exports.isReadable=E.isReadable,g.exports.Readable=E.Readable,g.exports.Writable=E.Writable,g.exports.Duplex=E.Duplex,g.exports.Transform=E.Transform,g.exports.PassThrough=E.PassThrough,g.exports.addAbortSignal=E.addAbortSignal,g.exports.finished=E.finished,g.exports.destroy=E.destroy,g.exports.destroy=j,g.exports.pipeline=E.pipeline,g.exports.compose=E.compose,Object.defineProperty(E,"promises",{configurable:!0,enumerable:!0,get(){return A}}),g.exports.Stream=E.Stream,g.exports.default=g.exports}),L9={};i5(L9,{default:()=>F6});var F6,R7=W9(()=>{Z9(L9,E5(d9())),F6=E5(d9())}),q5=C0((l,g)=>{var E=d0().Buffer,A=(R7(),z5(L9)).Transform,j=$9().StringDecoder,S=p0();function H(P){A.call(this),this.hashMode=typeof P=="string",this.hashMode?this[P]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}S(H,A),H.prototype.update=function(P,k,z){typeof P=="string"&&(P=E.from(P,k));var V=this._update(P);return this.hashMode?this:(z&&(V=this._toString(V,z)),V)},H.prototype.setAutoPadding=function(){},H.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},H.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},H.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},H.prototype._transform=function(P,k,z){var V;try{this.hashMode?this._update(P):this.push(this._update(P))}catch($){V=$}finally{z(V)}},H.prototype._flush=function(P){var k;try{this.push(this.__final())}catch(z){k=z}P(k)},H.prototype._finalOrDigest=function(P){var k=this.__final()||E.alloc(0);return P&&(k=this._toString(k,P,!0)),k},H.prototype._toString=function(P,k,z){if(this._decoder||(this._decoder=new j(k),this._encoding=k),this._encoding!==k)throw new Error("can't switch encodings");var V=this._decoder.write(P);return z&&(V+=this._decoder.end()),V},g.exports=H}),u5=C0((l,g)=>{var E=p0(),A=P9(),j=U9(),S=V9(),H=q5();function P(k){H.call(this,"digest"),this._hash=k}E(P,H),P.prototype._update=function(k){this._hash.update(k)},P.prototype._final=function(){return this._hash.digest()},g.exports=function(k){return k=k.toLowerCase(),k==="md5"?new A:k==="rmd160"||k==="ripemd160"?new j:new P(S(k))}}),E7=C0((l,g)=>{var E=p0(),A=d0().Buffer,j=q5(),S=A.alloc(128),H=64;function P(k,z){j.call(this,"digest"),typeof z=="string"&&(z=A.from(z)),this._alg=k,this._key=z,z.length>H?z=k(z):z.length<H&&(z=A.concat([z,S],H));for(var V=this._ipad=A.allocUnsafe(H),$=this._opad=A.allocUnsafe(H),T=0;T<H;T++)V[T]=z[T]^54,$[T]=z[T]^92;this._hash=[V]}E(P,j),P.prototype._update=function(k){this._hash.push(k)},P.prototype._final=function(){var k=this._alg(A.concat(this._hash));return this._alg(A.concat([this._opad,k]))},g.exports=P}),H6=C0((l,g)=>{var E=P9();g.exports=function(A){return new E().update(A).digest()}}),C6=C0((l,g)=>{var E=p0(),A=E7(),j=q5(),S=d0().Buffer,H=H6(),P=U9(),k=V9(),z=S.alloc(128);function V($,T){j.call(this,"digest"),typeof T=="string"&&(T=S.from(T));var D=$==="sha512"||$==="sha384"?128:64;if(this._alg=$,this._key=T,T.length>D){var U=$==="rmd160"?new P:k($);T=U.update(T).digest()}else T.length<D&&(T=S.concat([T,z],D));for(var N=this._ipad=S.allocUnsafe(D),I=this._opad=S.allocUnsafe(D),M=0;M<D;M++)N[M]=T[M]^54,I[M]=T[M]^92;this._hash=$==="rmd160"?new P:k($),this._hash.update(N)}E(V,j),V.prototype._update=function($){this._hash.update($)},V.prototype._final=function(){var $=this._hash.digest(),T=this._alg==="rmd160"?new P:k(this._alg);return T.update(this._opad).update($).digest()},g.exports=function($,T){return $=$.toLowerCase(),$==="rmd160"||$==="ripemd160"?new V("rmd160",T):$==="md5"?new A(H,T):new V($,T)}}),G6=C0((l,g)=>{g.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}}),S7=C0((l,g)=>{g.exports=G6()}),W6=C0((l,g)=>{var E=Math.pow(2,30)-1;g.exports=function(A,j){if(typeof A!="number")throw new TypeError("Iterations not a number");if(A<0)throw new TypeError("Bad iterations");if(typeof j!="number")throw new TypeError("Key length not a number");if(j<0||j>E||j!==j)throw new TypeError("Bad key length")}}),Z6=C0((l,g)=>{var E;global.process&&global.process.browser?E="utf-8":global.process&&global.process.version?(A=parseInt(process.version.split(".")[0].slice(1),10),E=A>=6?"utf-8":"binary"):E="utf-8";var A;g.exports=E}),$6=C0((l,g)=>{var E=d0().Buffer;g.exports=function(A,j,S){if(E.isBuffer(A))return A;if(typeof A=="string")return E.from(A,j);if(ArrayBuffer.isView(A))return E.from(A.buffer);throw new TypeError(S+" must be a string, a Buffer, a typed array or a DataView")}}),j6=C0((l,g)=>{var E=H6(),A=U9(),j=V9(),S=d0().Buffer,H=W6(),P=Z6(),k=$6(),z=S.alloc(128),V={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function $(U,N,I){var M=T(U),x=U==="sha512"||U==="sha384"?128:64;N.length>x?N=M(N):N.length<x&&(N=S.concat([N,z],x));for(var v=S.allocUnsafe(x+V[U]),y=S.allocUnsafe(x+V[U]),p=0;p<x;p++)v[p]=N[p]^54,y[p]=N[p]^92;var c=S.allocUnsafe(x+I+4);v.copy(c,0,0,x),this.ipad1=c,this.ipad2=v,this.opad=y,this.alg=U,this.blocksize=x,this.hash=M,this.size=V[U]}$.prototype.run=function(U,N){U.copy(N,this.blocksize);var I=this.hash(N);return I.copy(this.opad,this.blocksize),this.hash(this.opad)};function T(U){function N(M){return j(U).update(M).digest()}function I(M){return new A().update(M).digest()}return U==="rmd160"||U==="ripemd160"?I:U==="md5"?E:N}function D(U,N,I,M,x){H(I,M),U=k(U,P,"Password"),N=k(N,P,"Salt"),x=x||"sha1";var v=new $(x,U,N.length),y=S.allocUnsafe(M),p=S.allocUnsafe(N.length+4);N.copy(p,0,0,N.length);for(var c=0,n=V[x],i=Math.ceil(M/n),Q0=1;Q0<=i;Q0++){p.writeUInt32BE(Q0,N.length);for(var f=v.run(p,v.ipad1),W0=f,X=1;X<I;X++){W0=v.run(W0,v.ipad2);for(var Y=0;Y<n;Y++)f[Y]^=W0[Y]}f.copy(y,c),c+=n}return y}g.exports=D}),x7=C0((l,g)=>{var E=d0().Buffer,A=W6(),j=Z6(),S=j6(),H=$6(),P,k=global.crypto&&global.crypto.subtle,z={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"},V=[];function $(I){if(global.process&&!global.process.browser||!k||!k.importKey||!k.deriveBits)return Promise.resolve(!1);if(V[I]!==void 0)return V[I];P=P||E.alloc(8);var M=U(P,P,10,128,I).then(function(){return!0}).catch(function(){return!1});return V[I]=M,M}var T;function D(){return T||(global.process&&global.process.nextTick?T=global.process.nextTick:global.queueMicrotask?T=global.queueMicrotask:global.setImmediate?T=global.setImmediate:T=global.setTimeout,T)}function U(I,M,x,v,y){return k.importKey("raw",I,{name:"PBKDF2"},!1,["deriveBits"]).then(function(p){return k.deriveBits({name:"PBKDF2",salt:M,iterations:x,hash:{name:y}},p,v<<3)}).then(function(p){return E.from(p)})}function N(I,M){I.then(function(x){D()(function(){M(null,x)})},function(x){D()(function(){M(x)})})}g.exports=function(I,M,x,v,y,p){typeof y=="function"&&(p=y,y=void 0),y=y||"sha1";var c=z[y.toLowerCase()];if(!c||typeof global.Promise!="function"){D()(function(){var n;try{n=S(I,M,x,v,y)}catch(i){return p(i)}p(null,n)});return}if(A(x,v),I=H(I,j,"Password"),M=H(M,j,"Salt"),typeof p!="function")throw new Error("No callback provided to pbkdf2");N($(c).then(function(n){return n?U(I,M,x,v,c):S(I,M,x,v,y)}),p)}}),P6=C0((l)=>{l.pbkdf2=x7(),l.pbkdf2Sync=j6()}),U6=C0((l)=>{l.readUInt32BE=function(j,S){var H=j[0+S]<<24|j[1+S]<<16|j[2+S]<<8|j[3+S];return H>>>0},l.writeUInt32BE=function(j,S,H){j[0+H]=S>>>24,j[1+H]=S>>>16&255,j[2+H]=S>>>8&255,j[3+H]=S&255},l.ip=function(j,S,H,P){for(var k=0,z=0,V=6;V>=0;V-=2){for(var $=0;$<=24;$+=8)k<<=1,k|=S>>>$+V&1;for(var $=0;$<=24;$+=8)k<<=1,k|=j>>>$+V&1}for(var V=6;V>=0;V-=2){for(var $=1;$<=25;$+=8)z<<=1,z|=S>>>$+V&1;for(var $=1;$<=25;$+=8)z<<=1,z|=j>>>$+V&1}H[P+0]=k>>>0,H[P+1]=z>>>0},l.rip=function(j,S,H,P){for(var k=0,z=0,V=0;V<4;V++)for(var $=24;$>=0;$-=8)k<<=1,k|=S>>>$+V&1,k<<=1,k|=j>>>$+V&1;for(var V=4;V<8;V++)for(var $=24;$>=0;$-=8)z<<=1,z|=S>>>$+V&1,z<<=1,z|=j>>>$+V&1;H[P+0]=k>>>0,H[P+1]=z>>>0},l.pc1=function(j,S,H,P){for(var k=0,z=0,V=7;V>=5;V--){for(var $=0;$<=24;$+=8)k<<=1,k|=S>>$+V&1;for(var $=0;$<=24;$+=8)k<<=1,k|=j>>$+V&1}for(var $=0;$<=24;$+=8)k<<=1,k|=S>>$+V&1;for(var V=1;V<=3;V++){for(var $=0;$<=24;$+=8)z<<=1,z|=S>>$+V&1;for(var $=0;$<=24;$+=8)z<<=1,z|=j>>$+V&1}for(var $=0;$<=24;$+=8)z<<=1,z|=j>>$+V&1;H[P+0]=k>>>0,H[P+1]=z>>>0},l.r28shl=function(j,S){return j<<S&268435455|j>>>28-S};var g=[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];l.pc2=function(j,S,H,P){for(var k=0,z=0,V=g.length>>>1,$=0;$<V;$++)k<<=1,k|=j>>>g[$]&1;for(var $=V;$<g.length;$++)z<<=1,z|=S>>>g[$]&1;H[P+0]=k>>>0,H[P+1]=z>>>0},l.expand=function(j,S,H){var P=0,k=0;P=(j&1)<<5|j>>>27;for(var z=23;z>=15;z-=4)P<<=6,P|=j>>>z&63;for(var z=11;z>=3;z-=4)k|=j>>>z&63,k<<=6;k|=(j&31)<<1|j>>>31,S[H+0]=P>>>0,S[H+1]=k>>>0};var E=[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];l.substitute=function(j,S){for(var H=0,P=0;P<4;P++){var k=j>>>18-P*6&63,z=E[P*64+k];H<<=4,H|=z}for(var P=0;P<4;P++){var k=S>>>18-P*6&63,z=E[256+P*64+k];H<<=4,H|=z}return H>>>0};var A=[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];l.permute=function(j){for(var S=0,H=0;H<A.length;H++)S<<=1,S|=j>>>A[H]&1;return S>>>0},l.padSplit=function(j,S,H){for(var P=j.toString(2);P.length<S;)P="0"+P;for(var k=[],z=0;z<S;z+=H)k.push(P.slice(z,z+H));return k.join(" ")}}),O5=C0((l,g)=>{g.exports=E;function E(A,j){if(!A)throw new Error(j||"Assertion failed")}E.equal=function(A,j,S){if(A!=j)throw new Error(S||"Assertion failed: "+A+" != "+j)}}),k9=C0((l,g)=>{var E=O5();function A(j){this.options=j,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}g.exports=A,A.prototype._init=function(){},A.prototype.update=function(j){return j.length===0?[]:this.type==="decrypt"?this._updateDecrypt(j):this._updateEncrypt(j)},A.prototype._buffer=function(j,S){for(var H=Math.min(this.buffer.length-this.bufferOff,j.length-S),P=0;P<H;P++)this.buffer[this.bufferOff+P]=j[S+P];return this.bufferOff+=H,H},A.prototype._flushBuffer=function(j,S){return this._update(this.buffer,0,j,S),this.bufferOff=0,this.blockSize},A.prototype._updateEncrypt=function(j){var S=0,H=0,P=(this.bufferOff+j.length)/this.blockSize|0,k=new Array(P*this.blockSize);this.bufferOff!==0&&(S+=this._buffer(j,S),this.bufferOff===this.buffer.length&&(H+=this._flushBuffer(k,H)));for(var z=j.length-(j.length-S)%this.blockSize;S<z;S+=this.blockSize)this._update(j,S,k,H),H+=this.blockSize;for(;S<j.length;S++,this.bufferOff++)this.buffer[this.bufferOff]=j[S];return k},A.prototype._updateDecrypt=function(j){for(var S=0,H=0,P=Math.ceil((this.bufferOff+j.length)/this.blockSize)-1,k=new Array(P*this.blockSize);P>0;P--)S+=this._buffer(j,S),H+=this._flushBuffer(k,H);return S+=this._buffer(j,S),k},A.prototype.final=function(j){var S;j&&(S=this.update(j));var H;return this.type==="encrypt"?H=this._finalEncrypt():H=this._finalDecrypt(),S?S.concat(H):H},A.prototype._pad=function(j,S){if(S===0)return!1;for(;S<j.length;)j[S++]=0;return!0},A.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var j=new Array(this.blockSize);return this._update(this.buffer,0,j,0),j},A.prototype._unpad=function(j){return j},A.prototype._finalDecrypt=function(){E.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var j=new Array(this.blockSize);return this._flushBuffer(j,0),this._unpad(j)}}),V6=C0((l,g)=>{var E=O5(),A=p0(),j=U6(),S=k9();function H(){this.tmp=new Array(2),this.keys=null}function P(z){S.call(this,z);var V=new H;this._desState=V,this.deriveKeys(V,z.key)}A(P,S),g.exports=P,P.create=function(z){return new P(z)};var k=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];P.prototype.deriveKeys=function(z,V){z.keys=new Array(32),E.equal(V.length,this.blockSize,"Invalid key length");var $=j.readUInt32BE(V,0),T=j.readUInt32BE(V,4);j.pc1($,T,z.tmp,0),$=z.tmp[0],T=z.tmp[1];for(var D=0;D<z.keys.length;D+=2){var U=k[D>>>1];$=j.r28shl($,U),T=j.r28shl(T,U),j.pc2($,T,z.keys,D)}},P.prototype._update=function(z,V,$,T){var D=this._desState,U=j.readUInt32BE(z,V),N=j.readUInt32BE(z,V+4);j.ip(U,N,D.tmp,0),U=D.tmp[0],N=D.tmp[1],this.type==="encrypt"?this._encrypt(D,U,N,D.tmp,0):this._decrypt(D,U,N,D.tmp,0),U=D.tmp[0],N=D.tmp[1],j.writeUInt32BE($,U,T),j.writeUInt32BE($,N,T+4)},P.prototype._pad=function(z,V){for(var $=z.length-V,T=V;T<z.length;T++)z[T]=$;return!0},P.prototype._unpad=function(z){for(var V=z[z.length-1],$=z.length-V;$<z.length;$++)E.equal(z[$],V);return z.slice(0,z.length-V)},P.prototype._encrypt=function(z,V,$,T,D){for(var U=V,N=$,I=0;I<z.keys.length;I+=2){var M=z.keys[I],x=z.keys[I+1];j.expand(N,z.tmp,0),M^=z.tmp[0],x^=z.tmp[1];var v=j.substitute(M,x),y=j.permute(v),p=N;N=(U^y)>>>0,U=p}j.rip(N,U,T,D)},P.prototype._decrypt=function(z,V,$,T,D){for(var U=$,N=V,I=z.keys.length-2;I>=0;I-=2){var M=z.keys[I],x=z.keys[I+1];j.expand(U,z.tmp,0),M^=z.tmp[0],x^=z.tmp[1];var v=j.substitute(M,x),y=j.permute(v),p=U;U=(N^y)>>>0,N=p}j.rip(U,N,T,D)}}),A7=C0((l)=>{var g=O5(),E=p0(),A={};function j(H){g.equal(H.length,8,"Invalid IV length"),this.iv=new Array(8);for(var P=0;P<this.iv.length;P++)this.iv[P]=H[P]}function S(H){function P($){H.call(this,$),this._cbcInit()}E(P,H);for(var k=Object.keys(A),z=0;z<k.length;z++){var V=k[z];P.prototype[V]=A[V]}return P.create=function($){return new P($)},P}l.instantiate=S,A._cbcInit=function(){var H=new j(this.options.iv);this._cbcState=H},A._update=function(H,P,k,z){var V=this._cbcState,$=this.constructor.super_.prototype,T=V.iv;if(this.type==="encrypt"){for(var D=0;D<this.blockSize;D++)T[D]^=H[P+D];$._update.call(this,T,0,k,z);for(var D=0;D<this.blockSize;D++)T[D]=k[z+D]}else{$._update.call(this,H,P,k,z);for(var D=0;D<this.blockSize;D++)k[z+D]^=T[D];for(var D=0;D<this.blockSize;D++)T[D]=H[P+D]}}}),v7=C0((l,g)=>{var E=O5(),A=p0(),j=k9(),S=V6();function H(k,z){E.equal(z.length,24,"Invalid key length");var V=z.slice(0,8),$=z.slice(8,16),T=z.slice(16,24);k==="encrypt"?this.ciphers=[S.create({type:"encrypt",key:V}),S.create({type:"decrypt",key:$}),S.create({type:"encrypt",key:T})]:this.ciphers=[S.create({type:"decrypt",key:T}),S.create({type:"encrypt",key:$}),S.create({type:"decrypt",key:V})]}function P(k){j.call(this,k);var z=new H(this.type,this.options.key);this._edeState=z}A(P,j),g.exports=P,P.create=function(k){return new P(k)},P.prototype._update=function(k,z,V,$){var T=this._edeState;T.ciphers[0]._update(k,z,V,$),T.ciphers[1]._update(V,$,V,$),T.ciphers[2]._update(V,$,V,$)},P.prototype._pad=S.prototype._pad,P.prototype._unpad=S.prototype._unpad}),M7=C0((l)=>{l.utils=U6(),l.Cipher=k9(),l.DES=V6(),l.CBC=A7(),l.EDE=v7()}),_7=C0((l,g)=>{var E=q5(),A=M7(),j=p0(),S=d0().Buffer,H={"des-ede3-cbc":A.CBC.instantiate(A.EDE),"des-ede3":A.EDE,"des-ede-cbc":A.CBC.instantiate(A.EDE),"des-ede":A.EDE,"des-cbc":A.CBC.instantiate(A.DES),"des-ecb":A.DES};H.des=H["des-cbc"],H.des3=H["des-ede3-cbc"],g.exports=P,j(P,E);function P(k){E.call(this);var z=k.mode.toLowerCase(),V=H[z],$;k.decrypt?$="decrypt":$="encrypt";var T=k.key;S.isBuffer(T)||(T=S.from(T)),(z==="des-ede"||z==="des-ede-cbc")&&(T=S.concat([T,T.slice(0,8)]));var D=k.iv;S.isBuffer(D)||(D=S.from(D)),this._des=V.create({key:T,iv:D,type:$})}P.prototype._update=function(k){return S.from(this._des.update(k))},P.prototype._final=function(){return S.from(this._des.final())}}),w7=C0((l)=>{l.encrypt=function(g,E){return g._cipher.encryptBlock(E)},l.decrypt=function(g,E){return g._cipher.decryptBlock(E)}}),o5=C0((l,g)=>{g.exports=function(E,A){for(var j=Math.min(E.length,A.length),S=new Buffer(j),H=0;H<j;++H)S[H]=E[H]^A[H];return S}}),y7=C0((l)=>{var g=o5();l.encrypt=function(E,A){var j=g(A,E._prev);return E._prev=E._cipher.encryptBlock(j),E._prev},l.decrypt=function(E,A){var j=E._prev;E._prev=A;var S=E._cipher.decryptBlock(A);return g(S,j)}}),g7=C0((l)=>{var g=d0().Buffer,E=o5();function A(j,S,H){var P=S.length,k=E(S,j._cache);return j._cache=j._cache.slice(P),j._prev=g.concat([j._prev,H?S:k]),k}l.encrypt=function(j,S,H){for(var P=g.allocUnsafe(0),k;S.length;)if(j._cache.length===0&&(j._cache=j._cipher.encryptBlock(j._prev),j._prev=g.allocUnsafe(0)),j._cache.length<=S.length)k=j._cache.length,P=g.concat([P,A(j,S.slice(0,k),H)]),S=S.slice(k);else{P=g.concat([P,A(j,S,H)]);break}return P}}),m7=C0((l)=>{var g=d0().Buffer;function E(A,j,S){var H=A._cipher.encryptBlock(A._prev),P=H[0]^j;return A._prev=g.concat([A._prev.slice(1),g.from([S?j:P])]),P}l.encrypt=function(A,j,S){for(var H=j.length,P=g.allocUnsafe(H),k=-1;++k<H;)P[k]=E(A,j[k],S);return P}}),p7=C0((l)=>{var g=d0().Buffer;function E(j,S,H){for(var P,k=-1,z=8,V=0,$,T;++k<z;)P=j._cipher.encryptBlock(j._prev),$=S&1<<7-k?128:0,T=P[0]^$,V+=(T&128)>>k%8,j._prev=A(j._prev,H?$:T);return V}function A(j,S){var H=j.length,P=-1,k=g.allocUnsafe(j.length);for(j=g.concat([j,g.from([S])]);++P<H;)k[P]=j[P]<<1|j[P+1]>>7;return k}l.encrypt=function(j,S,H){for(var P=S.length,k=g.allocUnsafe(P),z=-1;++z<P;)k[z]=E(j,S[z],H);return k}}),b7=C0((l)=>{var g=o5();function E(A){return A._prev=A._cipher.encryptBlock(A._prev),A._prev}l.encrypt=function(A,j){for(;A._cache.length<j.length;)A._cache=Buffer.concat([A._cache,E(A)]);var S=A._cache.slice(0,j.length);return A._cache=A._cache.slice(j.length),g(j,S)}}),z6=C0((l,g)=>{function E(A){for(var j=A.length,S;j--;)if(S=A.readUInt8(j),S===255)A.writeUInt8(0,j);else{S++,A.writeUInt8(S,j);break}}g.exports=E}),l9=C0((l)=>{var g=o5(),E=d0().Buffer,A=z6();function j(H){var P=H._cipher.encryptBlockRaw(H._prev);return A(H._prev),P}var S=16;l.encrypt=function(H,P){var k=Math.ceil(P.length/S),z=H._cache.length;H._cache=E.concat([H._cache,E.allocUnsafe(k*S)]);for(var V=0;V<k;V++){var $=j(H),T=z+V*S;H._cache.writeUInt32BE($[0],T+0),H._cache.writeUInt32BE($[1],T+4),H._cache.writeUInt32BE($[2],T+8),H._cache.writeUInt32BE($[3],T+12)}var D=H._cache.slice(0,P.length);return H._cache=H._cache.slice(P.length),g(P,D)}}),O6=C0((l,g)=>{g.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"}}}),I9=C0((l,g)=>{var E={ECB:w7(),CBC:y7(),CFB:g7(),CFB8:m7(),CFB1:p7(),OFB:b7(),CTR:l9(),GCM:l9()},A=O6();for(j in A)A[j].module=E[A[j].mode];var j;g.exports=A}),K9=C0((l,g)=>{var E=d0().Buffer;function A(z){E.isBuffer(z)||(z=E.from(z));for(var V=z.length/4|0,$=new Array(V),T=0;T<V;T++)$[T]=z.readUInt32BE(T*4);return $}function j(z){for(var V=0;V<z.length;z++)z[V]=0}function S(z,V,$,T,D){for(var U=$[0],N=$[1],I=$[2],M=$[3],x=z[0]^V[0],v=z[1]^V[1],y=z[2]^V[2],p=z[3]^V[3],c,n,i,Q0,f=4,W0=1;W0<D;W0++)c=U[x>>>24]^N[v>>>16&255]^I[y>>>8&255]^M[p&255]^V[f++],n=U[v>>>24]^N[y>>>16&255]^I[p>>>8&255]^M[x&255]^V[f++],i=U[y>>>24]^N[p>>>16&255]^I[x>>>8&255]^M[v&255]^V[f++],Q0=U[p>>>24]^N[x>>>16&255]^I[v>>>8&255]^M[y&255]^V[f++],x=c,v=n,y=i,p=Q0;return c=(T[x>>>24]<<24|T[v>>>16&255]<<16|T[y>>>8&255]<<8|T[p&255])^V[f++],n=(T[v>>>24]<<24|T[y>>>16&255]<<16|T[p>>>8&255]<<8|T[x&255])^V[f++],i=(T[y>>>24]<<24|T[p>>>16&255]<<16|T[x>>>8&255]<<8|T[v&255])^V[f++],Q0=(T[p>>>24]<<24|T[x>>>16&255]<<16|T[v>>>8&255]<<8|T[y&255])^V[f++],c=c>>>0,n=n>>>0,i=i>>>0,Q0=Q0>>>0,[c,n,i,Q0]}var H=[0,1,2,4,8,16,32,64,128,27,54],P=function(){for(var z=new Array(256),V=0;V<256;V++)V<128?z[V]=V<<1:z[V]=V<<1^283;for(var $=[],T=[],D=[[],[],[],[]],U=[[],[],[],[]],N=0,I=0,M=0;M<256;++M){var x=I^I<<1^I<<2^I<<3^I<<4;x=x>>>8^x&255^99,$[N]=x,T[x]=N;var v=z[N],y=z[v],p=z[y],c=z[x]*257^x*16843008;D[0][N]=c<<24|c>>>8,D[1][N]=c<<16|c>>>16,D[2][N]=c<<8|c>>>24,D[3][N]=c,c=p*16843009^y*65537^v*257^N*16843008,U[0][x]=c<<24|c>>>8,U[1][x]=c<<16|c>>>16,U[2][x]=c<<8|c>>>24,U[3][x]=c,N===0?N=I=1:(N=v^z[z[z[p^v]]],I^=z[z[I]])}return{SBOX:$,INV_SBOX:T,SUB_MIX:D,INV_SUB_MIX:U}}();function k(z){this._key=A(z),this._reset()}k.blockSize=16,k.keySize=32,k.prototype.blockSize=k.blockSize,k.prototype.keySize=k.keySize,k.prototype._reset=function(){for(var z=this._key,V=z.length,$=V+6,T=($+1)*4,D=[],U=0;U<V;U++)D[U]=z[U];for(U=V;U<T;U++){var N=D[U-1];U%V===0?(N=N<<8|N>>>24,N=P.SBOX[N>>>24]<<24|P.SBOX[N>>>16&255]<<16|P.SBOX[N>>>8&255]<<8|P.SBOX[N&255],N^=H[U/V|0]<<24):V>6&&U%V===4&&(N=P.SBOX[N>>>24]<<24|P.SBOX[N>>>16&255]<<16|P.SBOX[N>>>8&255]<<8|P.SBOX[N&255]),D[U]=D[U-V]^N}for(var I=[],M=0;M<T;M++){var x=T-M,v=D[x-(M%4?0:4)];M<4||x<=4?I[M]=v:I[M]=P.INV_SUB_MIX[0][P.SBOX[v>>>24]]^P.INV_SUB_MIX[1][P.SBOX[v>>>16&255]]^P.INV_SUB_MIX[2][P.SBOX[v>>>8&255]]^P.INV_SUB_MIX[3][P.SBOX[v&255]]}this._nRounds=$,this._keySchedule=D,this._invKeySchedule=I},k.prototype.encryptBlockRaw=function(z){return z=A(z),S(z,this._keySchedule,P.SUB_MIX,P.SBOX,this._nRounds)},k.prototype.encryptBlock=function(z){var V=this.encryptBlockRaw(z),$=E.allocUnsafe(16);return $.writeUInt32BE(V[0],0),$.writeUInt32BE(V[1],4),$.writeUInt32BE(V[2],8),$.writeUInt32BE(V[3],12),$},k.prototype.decryptBlock=function(z){z=A(z);var V=z[1];z[1]=z[3],z[3]=V;var $=S(z,this._invKeySchedule,P.INV_SUB_MIX,P.INV_SBOX,this._nRounds),T=E.allocUnsafe(16);return T.writeUInt32BE($[0],0),T.writeUInt32BE($[3],4),T.writeUInt32BE($[2],8),T.writeUInt32BE($[1],12),T},k.prototype.scrub=function(){j(this._keySchedule),j(this._invKeySchedule),j(this._key)},g.exports.AES=k}),c7=C0((l,g)=>{var E=d0().Buffer,A=E.alloc(16,0);function j(P){return[P.readUInt32BE(0),P.readUInt32BE(4),P.readUInt32BE(8),P.readUInt32BE(12)]}function S(P){var k=E.allocUnsafe(16);return k.writeUInt32BE(P[0]>>>0,0),k.writeUInt32BE(P[1]>>>0,4),k.writeUInt32BE(P[2]>>>0,8),k.writeUInt32BE(P[3]>>>0,12),k}function H(P){this.h=P,this.state=E.alloc(16,0),this.cache=E.allocUnsafe(0)}H.prototype.ghash=function(P){for(var k=-1;++k<P.length;)this.state[k]^=P[k];this._multiply()},H.prototype._multiply=function(){for(var P=j(this.h),k=[0,0,0,0],z,V,$,T=-1;++T<128;){for(V=(this.state[~~(T/8)]&1<<7-T%8)!==0,V&&(k[0]^=P[0],k[1]^=P[1],k[2]^=P[2],k[3]^=P[3]),$=(P[3]&1)!==0,z=3;z>0;z--)P[z]=P[z]>>>1|(P[z-1]&1)<<31;P[0]=P[0]>>>1,$&&(P[0]=P[0]^-520093696)}this.state=S(k)},H.prototype.update=function(P){this.cache=E.concat([this.cache,P]);for(var k;this.cache.length>=16;)k=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(k)},H.prototype.final=function(P,k){return this.cache.length&&this.ghash(E.concat([this.cache,A],16)),this.ghash(S([0,P,0,k])),this.state},g.exports=H}),T6=C0((l,g)=>{var E=K9(),A=d0().Buffer,j=q5(),S=p0(),H=c7(),P=o5(),k=z6();function z(T,D){var U=0;T.length!==D.length&&U++;for(var N=Math.min(T.length,D.length),I=0;I<N;++I)U+=T[I]^D[I];return U}function V(T,D,U){if(D.length===12)return T._finID=A.concat([D,A.from([0,0,0,1])]),A.concat([D,A.from([0,0,0,2])]);var N=new H(U),I=D.length,M=I%16;N.update(D),M&&(M=16-M,N.update(A.alloc(M,0))),N.update(A.alloc(8,0));var x=I*8,v=A.alloc(8);v.writeUIntBE(x,0,8),N.update(v),T._finID=N.state;var y=A.from(T._finID);return k(y),y}function $(T,D,U,N){j.call(this);var I=A.alloc(4,0);this._cipher=new E.AES(D);var M=this._cipher.encryptBlock(I);this._ghash=new H(M),U=V(this,U,M),this._prev=A.from(U),this._cache=A.allocUnsafe(0),this._secCache=A.allocUnsafe(0),this._decrypt=N,this._alen=0,this._len=0,this._mode=T,this._authTag=null,this._called=!1}S($,j),$.prototype._update=function(T){if(!this._called&&this._alen){var D=16-this._alen%16;D<16&&(D=A.alloc(D,0),this._ghash.update(D))}this._called=!0;var U=this._mode.encrypt(this,T);return this._decrypt?this._ghash.update(T):this._ghash.update(U),this._len+=T.length,U},$.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var T=P(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&z(T,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=T,this._cipher.scrub()},$.prototype.getAuthTag=function(){if(this._decrypt||!A.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},$.prototype.setAuthTag=function(T){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=T},$.prototype.setAAD=function(T){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(T),this._alen+=T.length},g.exports=$}),D6=C0((l,g)=>{var E=K9(),A=d0().Buffer,j=q5(),S=p0();function H(P,k,z,V){j.call(this),this._cipher=new E.AES(k),this._prev=A.from(z),this._cache=A.allocUnsafe(0),this._secCache=A.allocUnsafe(0),this._decrypt=V,this._mode=P}S(H,j),H.prototype._update=function(P){return this._mode.encrypt(this,P,this._decrypt)},H.prototype._final=function(){this._cipher.scrub()},g.exports=H}),Y9=C0((l,g)=>{var E=d0().Buffer,A=P9();function j(S,H,P,k){if(E.isBuffer(S)||(S=E.from(S,"binary")),H&&(E.isBuffer(H)||(H=E.from(H,"binary")),H.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var z=P/8,V=E.alloc(z),$=E.alloc(k||0),T=E.alloc(0);z>0||k>0;){var D=new A;D.update(T),D.update(S),H&&D.update(H),T=D.digest();var U=0;if(z>0){var N=V.length-z;U=Math.min(z,T.length),T.copy(V,N,0,U),z-=U}if(U<T.length&&k>0){var I=$.length-k,M=Math.min(k,T.length-U);T.copy($,I,U,U+M),k-=M}}return T.fill(0),{key:V,iv:$}}g.exports=j}),d7=C0((l)=>{var g=I9(),E=T6(),A=d0().Buffer,j=D6(),S=q5(),H=K9(),P=Y9(),k=p0();function z(U,N,I){S.call(this),this._cache=new $,this._cipher=new H.AES(N),this._prev=A.from(I),this._mode=U,this._autopadding=!0}k(z,S),z.prototype._update=function(U){this._cache.add(U);for(var N,I,M=[];N=this._cache.get();)I=this._mode.encrypt(this,N),M.push(I);return A.concat(M)};var V=A.alloc(16,16);z.prototype._final=function(){var U=this._cache.flush();if(this._autopadding)return U=this._mode.encrypt(this,U),this._cipher.scrub(),U;if(!U.equals(V))throw this._cipher.scrub(),new Error("data not multiple of block length")},z.prototype.setAutoPadding=function(U){return this._autopadding=!!U,this};function $(){this.cache=A.allocUnsafe(0)}$.prototype.add=function(U){this.cache=A.concat([this.cache,U])},$.prototype.get=function(){if(this.cache.length>15){var U=this.cache.slice(0,16);return this.cache=this.cache.slice(16),U}return null},$.prototype.flush=function(){for(var U=16-this.cache.length,N=A.allocUnsafe(U),I=-1;++I<U;)N.writeUInt8(U,I);return A.concat([this.cache,N])};function T(U,N,I){var M=g[U.toLowerCase()];if(!M)throw new TypeError("invalid suite type");if(typeof N=="string"&&(N=A.from(N)),N.length!==M.key/8)throw new TypeError("invalid key length "+N.length);if(typeof I=="string"&&(I=A.from(I)),M.mode!=="GCM"&&I.length!==M.iv)throw new TypeError("invalid iv length "+I.length);return M.type==="stream"?new j(M.module,N,I):M.type==="auth"?new E(M.module,N,I):new z(M.module,N,I)}function D(U,N){var I=g[U.toLowerCase()];if(!I)throw new TypeError("invalid suite type");var M=P(N,!1,I.key,I.iv);return T(U,M.key,M.iv)}l.createCipheriv=T,l.createCipher=D}),l7=C0((l)=>{var g=T6(),E=d0().Buffer,A=I9(),j=D6(),S=q5(),H=K9(),P=Y9(),k=p0();function z(U,N,I){S.call(this),this._cache=new V,this._last=void 0,this._cipher=new H.AES(N),this._prev=E.from(I),this._mode=U,this._autopadding=!0}k(z,S),z.prototype._update=function(U){this._cache.add(U);for(var N,I,M=[];N=this._cache.get(this._autopadding);)I=this._mode.decrypt(this,N),M.push(I);return E.concat(M)},z.prototype._final=function(){var U=this._cache.flush();if(this._autopadding)return $(this._mode.decrypt(this,U));if(U)throw new Error("data not multiple of block length")},z.prototype.setAutoPadding=function(U){return this._autopadding=!!U,this};function V(){this.cache=E.allocUnsafe(0)}V.prototype.add=function(U){this.cache=E.concat([this.cache,U])},V.prototype.get=function(U){var N;if(U){if(this.cache.length>16)return N=this.cache.slice(0,16),this.cache=this.cache.slice(16),N}else if(this.cache.length>=16)return N=this.cache.slice(0,16),this.cache=this.cache.slice(16),N;return null},V.prototype.flush=function(){if(this.cache.length)return this.cache};function $(U){var N=U[15];if(N<1||N>16)throw new Error("unable to decrypt data");for(var I=-1;++I<N;)if(U[I+(16-N)]!==N)throw new Error("unable to decrypt data");if(N!==16)return U.slice(0,16-N)}function T(U,N,I){var M=A[U.toLowerCase()];if(!M)throw new TypeError("invalid suite type");if(typeof I=="string"&&(I=E.from(I)),M.mode!=="GCM"&&I.length!==M.iv)throw new TypeError("invalid iv length "+I.length);if(typeof N=="string"&&(N=E.from(N)),N.length!==M.key/8)throw new TypeError("invalid key length "+N.length);return M.type==="stream"?new j(M.module,N,I,!0):M.type==="auth"?new g(M.module,N,I,!0):new z(M.module,N,I)}function D(U,N){var I=A[U.toLowerCase()];if(!I)throw new TypeError("invalid suite type");var M=P(N,!1,I.key,I.iv);return T(U,M.key,M.iv)}l.createDecipher=D,l.createDecipheriv=T}),q9=C0((l)=>{var g=d7(),E=l7(),A=O6();function j(){return Object.keys(A)}l.createCipher=l.Cipher=g.createCipher,l.createCipheriv=l.Cipheriv=g.createCipheriv,l.createDecipher=l.Decipher=E.createDecipher,l.createDecipheriv=l.Decipheriv=E.createDecipheriv,l.listCiphers=l.getCiphers=j}),h7=C0((l)=>{l["des-ecb"]={key:8,iv:0},l["des-cbc"]=l.des={key:8,iv:8},l["des-ede3-cbc"]=l.des3={key:24,iv:8},l["des-ede3"]={key:24,iv:0},l["des-ede-cbc"]={key:16,iv:8},l["des-ede"]={key:16,iv:0}}),u7=C0((l)=>{var g=_7(),E=q9(),A=I9(),j=h7(),S=Y9();function H($,T){$=$.toLowerCase();var D,U;if(A[$])D=A[$].key,U=A[$].iv;else if(j[$])D=j[$].key*8,U=j[$].iv;else throw new TypeError("invalid suite type");var N=S(T,!1,D,U);return k($,N.key,N.iv)}function P($,T){$=$.toLowerCase();var D,U;if(A[$])D=A[$].key,U=A[$].iv;else if(j[$])D=j[$].key*8,U=j[$].iv;else throw new TypeError("invalid suite type");var N=S(T,!1,D,U);return z($,N.key,N.iv)}function k($,T,D){if($=$.toLowerCase(),A[$])return E.createCipheriv($,T,D);if(j[$])return new g({key:T,iv:D,mode:$});throw new TypeError("invalid suite type")}function z($,T,D){if($=$.toLowerCase(),A[$])return E.createDecipheriv($,T,D);if(j[$])return new g({key:T,iv:D,mode:$,decrypt:!0});throw new TypeError("invalid suite type")}function V(){return Object.keys(j).concat(E.getCiphers())}l.createCipher=l.Cipher=H,l.createCipheriv=l.Cipheriv=k,l.createDecipher=l.Decipher=P,l.createDecipheriv=l.Decipheriv=z,l.listCiphers=l.getCiphers=V}),M5=C0(()=>{}),N6=C0((l,g)=>{(function(E,A){function j(X,Y){if(!X)throw new Error(Y||"Assertion failed")}function S(X,Y){X.super_=Y;var Q=function(){};Q.prototype=Y.prototype,X.prototype=new Q,X.prototype.constructor=X}function H(X,Y,Q){if(H.isBN(X))return X;this.negative=0,this.words=null,this.length=0,this.red=null,X!==null&&((Y==="le"||Y==="be")&&(Q=Y,Y=10),this._init(X||0,Y||10,Q||"be"))}typeof E=="object"?E.exports=H:A.BN=H,H.BN=H,H.wordSize=26;var P;try{typeof window<"u"&&typeof window.Buffer<"u"?P=window.Buffer:P=M5().Buffer}catch{}H.isBN=function(X){return X instanceof H?!0:X!==null&&typeof X=="object"&&X.constructor.wordSize===H.wordSize&&Array.isArray(X.words)},H.max=function(X,Y){return X.cmp(Y)>0?X:Y},H.min=function(X,Y){return X.cmp(Y)<0?X:Y},H.prototype._init=function(X,Y,Q){if(typeof X=="number")return this._initNumber(X,Y,Q);if(typeof X=="object")return this._initArray(X,Y,Q);Y==="hex"&&(Y=16),j(Y===(Y|0)&&Y>=2&&Y<=36),X=X.toString().replace(/\s+/g,"");var J=0;X[0]==="-"&&(J++,this.negative=1),J<X.length&&(Y===16?this._parseHex(X,J,Q):(this._parseBase(X,Y,J),Q==="le"&&this._initArray(this.toArray(),Y,Q)))},H.prototype._initNumber=function(X,Y,Q){X<0&&(this.negative=1,X=-X),X<67108864?(this.words=[X&67108863],this.length=1):X<4503599627370496?(this.words=[X&67108863,X/67108864&67108863],this.length=2):(j(X<9007199254740992),this.words=[X&67108863,X/67108864&67108863,1],this.length=3),Q==="le"&&this._initArray(this.toArray(),Y,Q)},H.prototype._initArray=function(X,Y,Q){if(j(typeof X.length=="number"),X.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(X.length/3),this.words=new Array(this.length);for(var J=0;J<this.length;J++)this.words[J]=0;var F,W,Z=0;if(Q==="be")for(J=X.length-1,F=0;J>=0;J-=3)W=X[J]|X[J-1]<<8|X[J-2]<<16,this.words[F]|=W<<Z&67108863,this.words[F+1]=W>>>26-Z&67108863,Z+=24,Z>=26&&(Z-=26,F++);else if(Q==="le")for(J=0,F=0;J<X.length;J+=3)W=X[J]|X[J+1]<<8|X[J+2]<<16,this.words[F]|=W<<Z&67108863,this.words[F+1]=W>>>26-Z&67108863,Z+=24,Z>=26&&(Z-=26,F++);return this.strip()};function k(X,Y){var Q=X.charCodeAt(Y);return Q>=65&&Q<=70?Q-55:Q>=97&&Q<=102?Q-87:Q-48&15}function z(X,Y,Q){var J=k(X,Q);return Q-1>=Y&&(J|=k(X,Q-1)<<4),J}H.prototype._parseHex=function(X,Y,Q){this.length=Math.ceil((X.length-Y)/6),this.words=new Array(this.length);for(var J=0;J<this.length;J++)this.words[J]=0;var F=0,W=0,Z;if(Q==="be")for(J=X.length-1;J>=Y;J-=2)Z=z(X,Y,J)<<F,this.words[W]|=Z&67108863,F>=18?(F-=18,W+=1,this.words[W]|=Z>>>26):F+=8;else{var C=X.length-Y;for(J=C%2===0?Y+1:Y;J<X.length;J+=2)Z=z(X,Y,J)<<F,this.words[W]|=Z&67108863,F>=18?(F-=18,W+=1,this.words[W]|=Z>>>26):F+=8}this.strip()};function V(X,Y,Q,J){for(var F=0,W=Math.min(X.length,Q),Z=Y;Z<W;Z++){var C=X.charCodeAt(Z)-48;F*=J,C>=49?F+=C-49+10:C>=17?F+=C-17+10:F+=C}return F}H.prototype._parseBase=function(X,Y,Q){this.words=[0],this.length=1;for(var J=0,F=1;F<=67108863;F*=Y)J++;J--,F=F/Y|0;for(var W=X.length-Q,Z=W%J,C=Math.min(W,W-Z)+Q,K=0,G=Q;G<C;G+=J)K=V(X,G,G+J,Y),this.imuln(F),this.words[0]+K<67108864?this.words[0]+=K:this._iaddn(K);if(Z!==0){var R=1;for(K=V(X,G,X.length,Y),G=0;G<Z;G++)R*=Y;this.imuln(R),this.words[0]+K<67108864?this.words[0]+=K:this._iaddn(K)}this.strip()},H.prototype.copy=function(X){X.words=new Array(this.length);for(var Y=0;Y<this.length;Y++)X.words[Y]=this.words[Y];X.length=this.length,X.negative=this.negative,X.red=this.red},H.prototype.clone=function(){var X=new H(null);return this.copy(X),X},H.prototype._expand=function(X){for(;this.length<X;)this.words[this.length++]=0;return this},H.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},H.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},H.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var $=["","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"],T=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],D=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];H.prototype.toString=function(X,Y){X=X||10,Y=Y|0||1;var Q;if(X===16||X==="hex"){Q="";for(var J=0,F=0,W=0;W<this.length;W++){var Z=this.words[W],C=((Z<<J|F)&16777215).toString(16);F=Z>>>24-J&16777215,F!==0||W!==this.length-1?Q=$[6-C.length]+C+Q:Q=C+Q,J+=2,J>=26&&(J-=26,W--)}for(F!==0&&(Q=F.toString(16)+Q);Q.length%Y!==0;)Q="0"+Q;return this.negative!==0&&(Q="-"+Q),Q}if(X===(X|0)&&X>=2&&X<=36){var K=T[X],G=D[X];Q="";var R=this.clone();for(R.negative=0;!R.isZero();){var L=R.modn(G).toString(X);R=R.idivn(G),R.isZero()?Q=L+Q:Q=$[K-L.length]+L+Q}for(this.isZero()&&(Q="0"+Q);Q.length%Y!==0;)Q="0"+Q;return this.negative!==0&&(Q="-"+Q),Q}j(!1,"Base should be between 2 and 36")},H.prototype.toNumber=function(){var X=this.words[0];return this.length===2?X+=this.words[1]*67108864:this.length===3&&this.words[2]===1?X+=4503599627370496+this.words[1]*67108864:this.length>2&&j(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-X:X},H.prototype.toJSON=function(){return this.toString(16)},H.prototype.toBuffer=function(X,Y){return j(typeof P<"u"),this.toArrayLike(P,X,Y)},H.prototype.toArray=function(X,Y){return this.toArrayLike(Array,X,Y)},H.prototype.toArrayLike=function(X,Y,Q){var J=this.byteLength(),F=Q||Math.max(1,J);j(J<=F,"byte array longer than desired length"),j(F>0,"Requested array length <= 0"),this.strip();var W=Y==="le",Z=new X(F),C,K,G=this.clone();if(W){for(K=0;!G.isZero();K++)C=G.andln(255),G.iushrn(8),Z[K]=C;for(;K<F;K++)Z[K]=0}else{for(K=0;K<F-J;K++)Z[K]=0;for(K=0;!G.isZero();K++)C=G.andln(255),G.iushrn(8),Z[F-K-1]=C}return Z},Math.clz32?H.prototype._countBits=function(X){return 32-Math.clz32(X)}:H.prototype._countBits=function(X){var Y=X,Q=0;return Y>=4096&&(Q+=13,Y>>>=13),Y>=64&&(Q+=7,Y>>>=7),Y>=8&&(Q+=4,Y>>>=4),Y>=2&&(Q+=2,Y>>>=2),Q+Y},H.prototype._zeroBits=function(X){if(X===0)return 26;var Y=X,Q=0;return(Y&8191)===0&&(Q+=13,Y>>>=13),(Y&127)===0&&(Q+=7,Y>>>=7),(Y&15)===0&&(Q+=4,Y>>>=4),(Y&3)===0&&(Q+=2,Y>>>=2),(Y&1)===0&&Q++,Q},H.prototype.bitLength=function(){var X=this.words[this.length-1],Y=this._countBits(X);return(this.length-1)*26+Y};function U(X){for(var Y=new Array(X.bitLength()),Q=0;Q<Y.length;Q++){var J=Q/26|0,F=Q%26;Y[Q]=(X.words[J]&1<<F)>>>F}return Y}H.prototype.zeroBits=function(){if(this.isZero())return 0;for(var X=0,Y=0;Y<this.length;Y++){var Q=this._zeroBits(this.words[Y]);if(X+=Q,Q!==26)break}return X},H.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},H.prototype.toTwos=function(X){return this.negative!==0?this.abs().inotn(X).iaddn(1):this.clone()},H.prototype.fromTwos=function(X){return this.testn(X-1)?this.notn(X).iaddn(1).ineg():this.clone()},H.prototype.isNeg=function(){return this.negative!==0},H.prototype.neg=function(){return this.clone().ineg()},H.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},H.prototype.iuor=function(X){for(;this.length<X.length;)this.words[this.length++]=0;for(var Y=0;Y<X.length;Y++)this.words[Y]=this.words[Y]|X.words[Y];return this.strip()},H.prototype.ior=function(X){return j((this.negative|X.negative)===0),this.iuor(X)},H.prototype.or=function(X){return this.length>X.length?this.clone().ior(X):X.clone().ior(this)},H.prototype.uor=function(X){return this.length>X.length?this.clone().iuor(X):X.clone().iuor(this)},H.prototype.iuand=function(X){var Y;this.length>X.length?Y=X:Y=this;for(var Q=0;Q<Y.length;Q++)this.words[Q]=this.words[Q]&X.words[Q];return this.length=Y.length,this.strip()},H.prototype.iand=function(X){return j((this.negative|X.negative)===0),this.iuand(X)},H.prototype.and=function(X){return this.length>X.length?this.clone().iand(X):X.clone().iand(this)},H.prototype.uand=function(X){return this.length>X.length?this.clone().iuand(X):X.clone().iuand(this)},H.prototype.iuxor=function(X){var Y,Q;this.length>X.length?(Y=this,Q=X):(Y=X,Q=this);for(var J=0;J<Q.length;J++)this.words[J]=Y.words[J]^Q.words[J];if(this!==Y)for(;J<Y.length;J++)this.words[J]=Y.words[J];return this.length=Y.length,this.strip()},H.prototype.ixor=function(X){return j((this.negative|X.negative)===0),this.iuxor(X)},H.prototype.xor=function(X){return this.length>X.length?this.clone().ixor(X):X.clone().ixor(this)},H.prototype.uxor=function(X){return this.length>X.length?this.clone().iuxor(X):X.clone().iuxor(this)},H.prototype.inotn=function(X){j(typeof X=="number"&&X>=0);var Y=Math.ceil(X/26)|0,Q=X%26;this._expand(Y),Q>0&&Y--;for(var J=0;J<Y;J++)this.words[J]=~this.words[J]&67108863;return Q>0&&(this.words[J]=~this.words[J]&67108863>>26-Q),this.strip()},H.prototype.notn=function(X){return this.clone().inotn(X)},H.prototype.setn=function(X,Y){j(typeof X=="number"&&X>=0);var Q=X/26|0,J=X%26;return this._expand(Q+1),Y?this.words[Q]=this.words[Q]|1<<J:this.words[Q]=this.words[Q]&~(1<<J),this.strip()},H.prototype.iadd=function(X){var Y;if(this.negative!==0&&X.negative===0)return this.negative=0,Y=this.isub(X),this.negative^=1,this._normSign();if(this.negative===0&&X.negative!==0)return X.negative=0,Y=this.isub(X),X.negative=1,Y._normSign();var Q,J;this.length>X.length?(Q=this,J=X):(Q=X,J=this);for(var F=0,W=0;W<J.length;W++)Y=(Q.words[W]|0)+(J.words[W]|0)+F,this.words[W]=Y&67108863,F=Y>>>26;for(;F!==0&&W<Q.length;W++)Y=(Q.words[W]|0)+F,this.words[W]=Y&67108863,F=Y>>>26;if(this.length=Q.length,F!==0)this.words[this.length]=F,this.length++;else if(Q!==this)for(;W<Q.length;W++)this.words[W]=Q.words[W];return this},H.prototype.add=function(X){var Y;return X.negative!==0&&this.negative===0?(X.negative=0,Y=this.sub(X),X.negative^=1,Y):X.negative===0&&this.negative!==0?(this.negative=0,Y=X.sub(this),this.negative=1,Y):this.length>X.length?this.clone().iadd(X):X.clone().iadd(this)},H.prototype.isub=function(X){if(X.negative!==0){X.negative=0;var Y=this.iadd(X);return X.negative=1,Y._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(X),this.negative=1,this._normSign();var Q=this.cmp(X);if(Q===0)return this.negative=0,this.length=1,this.words[0]=0,this;var J,F;Q>0?(J=this,F=X):(J=X,F=this);for(var W=0,Z=0;Z<F.length;Z++)Y=(J.words[Z]|0)-(F.words[Z]|0)+W,W=Y>>26,this.words[Z]=Y&67108863;for(;W!==0&&Z<J.length;Z++)Y=(J.words[Z]|0)+W,W=Y>>26,this.words[Z]=Y&67108863;if(W===0&&Z<J.length&&J!==this)for(;Z<J.length;Z++)this.words[Z]=J.words[Z];return this.length=Math.max(this.length,Z),J!==this&&(this.negative=1),this.strip()},H.prototype.sub=function(X){return this.clone().isub(X)};function N(X,Y,Q){Q.negative=Y.negative^X.negative;var J=X.length+Y.length|0;Q.length=J,J=J-1|0;var F=X.words[0]|0,W=Y.words[0]|0,Z=F*W,C=Z&67108863,K=Z/67108864|0;Q.words[0]=C;for(var G=1;G<J;G++){for(var R=K>>>26,L=K&67108863,_=Math.min(G,Y.length-1),s=Math.max(0,G-X.length+1);s<=_;s++){var r=G-s|0;F=X.words[r]|0,W=Y.words[s]|0,Z=F*W+L,R+=Z/67108864|0,L=Z&67108863}Q.words[G]=L|0,K=R|0}return K!==0?Q.words[G]=K|0:Q.length--,Q.strip()}var I=function(X,Y,Q){var J=X.words,F=Y.words,W=Q.words,Z=0,C,K,G,R=J[0]|0,L=R&8191,_=R>>>13,s=J[1]|0,r=s&8191,Y0=s>>>13,u=J[2]|0,d=u&8191,a=u>>>13,V0=J[3]|0,X0=V0&8191,F0=V0>>>13,w=J[4]|0,q=w&8191,m=w>>>13,e=J[5]|0,K0=e&8191,t=e>>>13,_0=J[6]|0,H0=_0&8191,G0=_0>>>13,w0=J[7]|0,U0=w0&8191,Z0=w0>>>13,c0=J[8]|0,O=c0&8191,B=c0>>>13,b=J[9]|0,h=b&8191,o=b>>>13,z0=F[0]|0,J0=z0&8191,$0=z0>>>13,b0=F[1]|0,P0=b0&8191,j0=b0>>>13,y0=F[2]|0,D0=y0&8191,N0=y0>>>13,H5=F[3]|0,T0=H5&8191,O0=H5>>>13,l0=F[4]|0,L0=l0&8191,k0=l0>>>13,G5=F[5]|0,I0=G5&8191,q0=G5>>>13,W5=F[6]|0,B0=W5&8191,R0=W5>>>13,Z5=F[7]|0,E0=Z5&8191,S0=Z5>>>13,$5=F[8]|0,x0=$5&8191,A0=$5>>>13,j5=F[9]|0,v0=j5&8191,M0=j5>>>13;Q.negative=X.negative^Y.negative,Q.length=19,C=Math.imul(L,J0),K=Math.imul(L,$0),K=K+Math.imul(_,J0)|0,G=Math.imul(_,$0);var F5=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(F5>>>26)|0,F5&=67108863,C=Math.imul(r,J0),K=Math.imul(r,$0),K=K+Math.imul(Y0,J0)|0,G=Math.imul(Y0,$0),C=C+Math.imul(L,P0)|0,K=K+Math.imul(L,j0)|0,K=K+Math.imul(_,P0)|0,G=G+Math.imul(_,j0)|0;var g0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(g0>>>26)|0,g0&=67108863,C=Math.imul(d,J0),K=Math.imul(d,$0),K=K+Math.imul(a,J0)|0,G=Math.imul(a,$0),C=C+Math.imul(r,P0)|0,K=K+Math.imul(r,j0)|0,K=K+Math.imul(Y0,P0)|0,G=G+Math.imul(Y0,j0)|0,C=C+Math.imul(L,D0)|0,K=K+Math.imul(L,N0)|0,K=K+Math.imul(_,D0)|0,G=G+Math.imul(_,N0)|0;var m0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(m0>>>26)|0,m0&=67108863,C=Math.imul(X0,J0),K=Math.imul(X0,$0),K=K+Math.imul(F0,J0)|0,G=Math.imul(F0,$0),C=C+Math.imul(d,P0)|0,K=K+Math.imul(d,j0)|0,K=K+Math.imul(a,P0)|0,G=G+Math.imul(a,j0)|0,C=C+Math.imul(r,D0)|0,K=K+Math.imul(r,N0)|0,K=K+Math.imul(Y0,D0)|0,G=G+Math.imul(Y0,N0)|0,C=C+Math.imul(L,T0)|0,K=K+Math.imul(L,O0)|0,K=K+Math.imul(_,T0)|0,G=G+Math.imul(_,O0)|0;var h0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(h0>>>26)|0,h0&=67108863,C=Math.imul(q,J0),K=Math.imul(q,$0),K=K+Math.imul(m,J0)|0,G=Math.imul(m,$0),C=C+Math.imul(X0,P0)|0,K=K+Math.imul(X0,j0)|0,K=K+Math.imul(F0,P0)|0,G=G+Math.imul(F0,j0)|0,C=C+Math.imul(d,D0)|0,K=K+Math.imul(d,N0)|0,K=K+Math.imul(a,D0)|0,G=G+Math.imul(a,N0)|0,C=C+Math.imul(r,T0)|0,K=K+Math.imul(r,O0)|0,K=K+Math.imul(Y0,T0)|0,G=G+Math.imul(Y0,O0)|0,C=C+Math.imul(L,L0)|0,K=K+Math.imul(L,k0)|0,K=K+Math.imul(_,L0)|0,G=G+Math.imul(_,k0)|0;var u0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(u0>>>26)|0,u0&=67108863,C=Math.imul(K0,J0),K=Math.imul(K0,$0),K=K+Math.imul(t,J0)|0,G=Math.imul(t,$0),C=C+Math.imul(q,P0)|0,K=K+Math.imul(q,j0)|0,K=K+Math.imul(m,P0)|0,G=G+Math.imul(m,j0)|0,C=C+Math.imul(X0,D0)|0,K=K+Math.imul(X0,N0)|0,K=K+Math.imul(F0,D0)|0,G=G+Math.imul(F0,N0)|0,C=C+Math.imul(d,T0)|0,K=K+Math.imul(d,O0)|0,K=K+Math.imul(a,T0)|0,G=G+Math.imul(a,O0)|0,C=C+Math.imul(r,L0)|0,K=K+Math.imul(r,k0)|0,K=K+Math.imul(Y0,L0)|0,G=G+Math.imul(Y0,k0)|0,C=C+Math.imul(L,I0)|0,K=K+Math.imul(L,q0)|0,K=K+Math.imul(_,I0)|0,G=G+Math.imul(_,q0)|0;var o0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(o0>>>26)|0,o0&=67108863,C=Math.imul(H0,J0),K=Math.imul(H0,$0),K=K+Math.imul(G0,J0)|0,G=Math.imul(G0,$0),C=C+Math.imul(K0,P0)|0,K=K+Math.imul(K0,j0)|0,K=K+Math.imul(t,P0)|0,G=G+Math.imul(t,j0)|0,C=C+Math.imul(q,D0)|0,K=K+Math.imul(q,N0)|0,K=K+Math.imul(m,D0)|0,G=G+Math.imul(m,N0)|0,C=C+Math.imul(X0,T0)|0,K=K+Math.imul(X0,O0)|0,K=K+Math.imul(F0,T0)|0,G=G+Math.imul(F0,O0)|0,C=C+Math.imul(d,L0)|0,K=K+Math.imul(d,k0)|0,K=K+Math.imul(a,L0)|0,G=G+Math.imul(a,k0)|0,C=C+Math.imul(r,I0)|0,K=K+Math.imul(r,q0)|0,K=K+Math.imul(Y0,I0)|0,G=G+Math.imul(Y0,q0)|0,C=C+Math.imul(L,B0)|0,K=K+Math.imul(L,R0)|0,K=K+Math.imul(_,B0)|0,G=G+Math.imul(_,R0)|0;var s0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(s0>>>26)|0,s0&=67108863,C=Math.imul(U0,J0),K=Math.imul(U0,$0),K=K+Math.imul(Z0,J0)|0,G=Math.imul(Z0,$0),C=C+Math.imul(H0,P0)|0,K=K+Math.imul(H0,j0)|0,K=K+Math.imul(G0,P0)|0,G=G+Math.imul(G0,j0)|0,C=C+Math.imul(K0,D0)|0,K=K+Math.imul(K0,N0)|0,K=K+Math.imul(t,D0)|0,G=G+Math.imul(t,N0)|0,C=C+Math.imul(q,T0)|0,K=K+Math.imul(q,O0)|0,K=K+Math.imul(m,T0)|0,G=G+Math.imul(m,O0)|0,C=C+Math.imul(X0,L0)|0,K=K+Math.imul(X0,k0)|0,K=K+Math.imul(F0,L0)|0,G=G+Math.imul(F0,k0)|0,C=C+Math.imul(d,I0)|0,K=K+Math.imul(d,q0)|0,K=K+Math.imul(a,I0)|0,G=G+Math.imul(a,q0)|0,C=C+Math.imul(r,B0)|0,K=K+Math.imul(r,R0)|0,K=K+Math.imul(Y0,B0)|0,G=G+Math.imul(Y0,R0)|0,C=C+Math.imul(L,E0)|0,K=K+Math.imul(L,S0)|0,K=K+Math.imul(_,E0)|0,G=G+Math.imul(_,S0)|0;var a0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(a0>>>26)|0,a0&=67108863,C=Math.imul(O,J0),K=Math.imul(O,$0),K=K+Math.imul(B,J0)|0,G=Math.imul(B,$0),C=C+Math.imul(U0,P0)|0,K=K+Math.imul(U0,j0)|0,K=K+Math.imul(Z0,P0)|0,G=G+Math.imul(Z0,j0)|0,C=C+Math.imul(H0,D0)|0,K=K+Math.imul(H0,N0)|0,K=K+Math.imul(G0,D0)|0,G=G+Math.imul(G0,N0)|0,C=C+Math.imul(K0,T0)|0,K=K+Math.imul(K0,O0)|0,K=K+Math.imul(t,T0)|0,G=G+Math.imul(t,O0)|0,C=C+Math.imul(q,L0)|0,K=K+Math.imul(q,k0)|0,K=K+Math.imul(m,L0)|0,G=G+Math.imul(m,k0)|0,C=C+Math.imul(X0,I0)|0,K=K+Math.imul(X0,q0)|0,K=K+Math.imul(F0,I0)|0,G=G+Math.imul(F0,q0)|0,C=C+Math.imul(d,B0)|0,K=K+Math.imul(d,R0)|0,K=K+Math.imul(a,B0)|0,G=G+Math.imul(a,R0)|0,C=C+Math.imul(r,E0)|0,K=K+Math.imul(r,S0)|0,K=K+Math.imul(Y0,E0)|0,G=G+Math.imul(Y0,S0)|0,C=C+Math.imul(L,x0)|0,K=K+Math.imul(L,A0)|0,K=K+Math.imul(_,x0)|0,G=G+Math.imul(_,A0)|0;var f0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(f0>>>26)|0,f0&=67108863,C=Math.imul(h,J0),K=Math.imul(h,$0),K=K+Math.imul(o,J0)|0,G=Math.imul(o,$0),C=C+Math.imul(O,P0)|0,K=K+Math.imul(O,j0)|0,K=K+Math.imul(B,P0)|0,G=G+Math.imul(B,j0)|0,C=C+Math.imul(U0,D0)|0,K=K+Math.imul(U0,N0)|0,K=K+Math.imul(Z0,D0)|0,G=G+Math.imul(Z0,N0)|0,C=C+Math.imul(H0,T0)|0,K=K+Math.imul(H0,O0)|0,K=K+Math.imul(G0,T0)|0,G=G+Math.imul(G0,O0)|0,C=C+Math.imul(K0,L0)|0,K=K+Math.imul(K0,k0)|0,K=K+Math.imul(t,L0)|0,G=G+Math.imul(t,k0)|0,C=C+Math.imul(q,I0)|0,K=K+Math.imul(q,q0)|0,K=K+Math.imul(m,I0)|0,G=G+Math.imul(m,q0)|0,C=C+Math.imul(X0,B0)|0,K=K+Math.imul(X0,R0)|0,K=K+Math.imul(F0,B0)|0,G=G+Math.imul(F0,R0)|0,C=C+Math.imul(d,E0)|0,K=K+Math.imul(d,S0)|0,K=K+Math.imul(a,E0)|0,G=G+Math.imul(a,S0)|0,C=C+Math.imul(r,x0)|0,K=K+Math.imul(r,A0)|0,K=K+Math.imul(Y0,x0)|0,G=G+Math.imul(Y0,A0)|0,C=C+Math.imul(L,v0)|0,K=K+Math.imul(L,M0)|0,K=K+Math.imul(_,v0)|0,G=G+Math.imul(_,M0)|0;var n0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(n0>>>26)|0,n0&=67108863,C=Math.imul(h,P0),K=Math.imul(h,j0),K=K+Math.imul(o,P0)|0,G=Math.imul(o,j0),C=C+Math.imul(O,D0)|0,K=K+Math.imul(O,N0)|0,K=K+Math.imul(B,D0)|0,G=G+Math.imul(B,N0)|0,C=C+Math.imul(U0,T0)|0,K=K+Math.imul(U0,O0)|0,K=K+Math.imul(Z0,T0)|0,G=G+Math.imul(Z0,O0)|0,C=C+Math.imul(H0,L0)|0,K=K+Math.imul(H0,k0)|0,K=K+Math.imul(G0,L0)|0,G=G+Math.imul(G0,k0)|0,C=C+Math.imul(K0,I0)|0,K=K+Math.imul(K0,q0)|0,K=K+Math.imul(t,I0)|0,G=G+Math.imul(t,q0)|0,C=C+Math.imul(q,B0)|0,K=K+Math.imul(q,R0)|0,K=K+Math.imul(m,B0)|0,G=G+Math.imul(m,R0)|0,C=C+Math.imul(X0,E0)|0,K=K+Math.imul(X0,S0)|0,K=K+Math.imul(F0,E0)|0,G=G+Math.imul(F0,S0)|0,C=C+Math.imul(d,x0)|0,K=K+Math.imul(d,A0)|0,K=K+Math.imul(a,x0)|0,G=G+Math.imul(a,A0)|0,C=C+Math.imul(r,v0)|0,K=K+Math.imul(r,M0)|0,K=K+Math.imul(Y0,v0)|0,G=G+Math.imul(Y0,M0)|0;var r0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(r0>>>26)|0,r0&=67108863,C=Math.imul(h,D0),K=Math.imul(h,N0),K=K+Math.imul(o,D0)|0,G=Math.imul(o,N0),C=C+Math.imul(O,T0)|0,K=K+Math.imul(O,O0)|0,K=K+Math.imul(B,T0)|0,G=G+Math.imul(B,O0)|0,C=C+Math.imul(U0,L0)|0,K=K+Math.imul(U0,k0)|0,K=K+Math.imul(Z0,L0)|0,G=G+Math.imul(Z0,k0)|0,C=C+Math.imul(H0,I0)|0,K=K+Math.imul(H0,q0)|0,K=K+Math.imul(G0,I0)|0,G=G+Math.imul(G0,q0)|0,C=C+Math.imul(K0,B0)|0,K=K+Math.imul(K0,R0)|0,K=K+Math.imul(t,B0)|0,G=G+Math.imul(t,R0)|0,C=C+Math.imul(q,E0)|0,K=K+Math.imul(q,S0)|0,K=K+Math.imul(m,E0)|0,G=G+Math.imul(m,S0)|0,C=C+Math.imul(X0,x0)|0,K=K+Math.imul(X0,A0)|0,K=K+Math.imul(F0,x0)|0,G=G+Math.imul(F0,A0)|0,C=C+Math.imul(d,v0)|0,K=K+Math.imul(d,M0)|0,K=K+Math.imul(a,v0)|0,G=G+Math.imul(a,M0)|0;var i0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(i0>>>26)|0,i0&=67108863,C=Math.imul(h,T0),K=Math.imul(h,O0),K=K+Math.imul(o,T0)|0,G=Math.imul(o,O0),C=C+Math.imul(O,L0)|0,K=K+Math.imul(O,k0)|0,K=K+Math.imul(B,L0)|0,G=G+Math.imul(B,k0)|0,C=C+Math.imul(U0,I0)|0,K=K+Math.imul(U0,q0)|0,K=K+Math.imul(Z0,I0)|0,G=G+Math.imul(Z0,q0)|0,C=C+Math.imul(H0,B0)|0,K=K+Math.imul(H0,R0)|0,K=K+Math.imul(G0,B0)|0,G=G+Math.imul(G0,R0)|0,C=C+Math.imul(K0,E0)|0,K=K+Math.imul(K0,S0)|0,K=K+Math.imul(t,E0)|0,G=G+Math.imul(t,S0)|0,C=C+Math.imul(q,x0)|0,K=K+Math.imul(q,A0)|0,K=K+Math.imul(m,x0)|0,G=G+Math.imul(m,A0)|0,C=C+Math.imul(X0,v0)|0,K=K+Math.imul(X0,M0)|0,K=K+Math.imul(F0,v0)|0,G=G+Math.imul(F0,M0)|0;var t0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(t0>>>26)|0,t0&=67108863,C=Math.imul(h,L0),K=Math.imul(h,k0),K=K+Math.imul(o,L0)|0,G=Math.imul(o,k0),C=C+Math.imul(O,I0)|0,K=K+Math.imul(O,q0)|0,K=K+Math.imul(B,I0)|0,G=G+Math.imul(B,q0)|0,C=C+Math.imul(U0,B0)|0,K=K+Math.imul(U0,R0)|0,K=K+Math.imul(Z0,B0)|0,G=G+Math.imul(Z0,R0)|0,C=C+Math.imul(H0,E0)|0,K=K+Math.imul(H0,S0)|0,K=K+Math.imul(G0,E0)|0,G=G+Math.imul(G0,S0)|0,C=C+Math.imul(K0,x0)|0,K=K+Math.imul(K0,A0)|0,K=K+Math.imul(t,x0)|0,G=G+Math.imul(t,A0)|0,C=C+Math.imul(q,v0)|0,K=K+Math.imul(q,M0)|0,K=K+Math.imul(m,v0)|0,G=G+Math.imul(m,M0)|0;var e0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(e0>>>26)|0,e0&=67108863,C=Math.imul(h,I0),K=Math.imul(h,q0),K=K+Math.imul(o,I0)|0,G=Math.imul(o,q0),C=C+Math.imul(O,B0)|0,K=K+Math.imul(O,R0)|0,K=K+Math.imul(B,B0)|0,G=G+Math.imul(B,R0)|0,C=C+Math.imul(U0,E0)|0,K=K+Math.imul(U0,S0)|0,K=K+Math.imul(Z0,E0)|0,G=G+Math.imul(Z0,S0)|0,C=C+Math.imul(H0,x0)|0,K=K+Math.imul(H0,A0)|0,K=K+Math.imul(G0,x0)|0,G=G+Math.imul(G0,A0)|0,C=C+Math.imul(K0,v0)|0,K=K+Math.imul(K0,M0)|0,K=K+Math.imul(t,v0)|0,G=G+Math.imul(t,M0)|0;var X5=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(X5>>>26)|0,X5&=67108863,C=Math.imul(h,B0),K=Math.imul(h,R0),K=K+Math.imul(o,B0)|0,G=Math.imul(o,R0),C=C+Math.imul(O,E0)|0,K=K+Math.imul(O,S0)|0,K=K+Math.imul(B,E0)|0,G=G+Math.imul(B,S0)|0,C=C+Math.imul(U0,x0)|0,K=K+Math.imul(U0,A0)|0,K=K+Math.imul(Z0,x0)|0,G=G+Math.imul(Z0,A0)|0,C=C+Math.imul(H0,v0)|0,K=K+Math.imul(H0,M0)|0,K=K+Math.imul(G0,v0)|0,G=G+Math.imul(G0,M0)|0;var K5=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(K5>>>26)|0,K5&=67108863,C=Math.imul(h,E0),K=Math.imul(h,S0),K=K+Math.imul(o,E0)|0,G=Math.imul(o,S0),C=C+Math.imul(O,x0)|0,K=K+Math.imul(O,A0)|0,K=K+Math.imul(B,x0)|0,G=G+Math.imul(B,A0)|0,C=C+Math.imul(U0,v0)|0,K=K+Math.imul(U0,M0)|0,K=K+Math.imul(Z0,v0)|0,G=G+Math.imul(Z0,M0)|0;var Y5=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(Y5>>>26)|0,Y5&=67108863,C=Math.imul(h,x0),K=Math.imul(h,A0),K=K+Math.imul(o,x0)|0,G=Math.imul(o,A0),C=C+Math.imul(O,v0)|0,K=K+Math.imul(O,M0)|0,K=K+Math.imul(B,v0)|0,G=G+Math.imul(B,M0)|0;var J5=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(J5>>>26)|0,J5&=67108863,C=Math.imul(h,v0),K=Math.imul(h,M0),K=K+Math.imul(o,v0)|0,G=Math.imul(o,M0);var Q5=(Z+C|0)+((K&8191)<<13)|0;return Z=(G+(K>>>13)|0)+(Q5>>>26)|0,Q5&=67108863,W[0]=F5,W[1]=g0,W[2]=m0,W[3]=h0,W[4]=u0,W[5]=o0,W[6]=s0,W[7]=a0,W[8]=f0,W[9]=n0,W[10]=r0,W[11]=i0,W[12]=t0,W[13]=e0,W[14]=X5,W[15]=K5,W[16]=Y5,W[17]=J5,W[18]=Q5,Z!==0&&(W[19]=Z,Q.length++),Q};Math.imul||(I=N);function M(X,Y,Q){Q.negative=Y.negative^X.negative,Q.length=X.length+Y.length;for(var J=0,F=0,W=0;W<Q.length-1;W++){var Z=F;F=0;for(var C=J&67108863,K=Math.min(W,Y.length-1),G=Math.max(0,W-X.length+1);G<=K;G++){var R=W-G,L=X.words[R]|0,_=Y.words[G]|0,s=L*_,r=s&67108863;Z=Z+(s/67108864|0)|0,r=r+C|0,C=r&67108863,Z=Z+(r>>>26)|0,F+=Z>>>26,Z&=67108863}Q.words[W]=C,J=Z,Z=F}return J!==0?Q.words[W]=J:Q.length--,Q.strip()}function x(X,Y,Q){var J=new v;return J.mulp(X,Y,Q)}H.prototype.mulTo=function(X,Y){var Q,J=this.length+X.length;return this.length===10&&X.length===10?Q=I(this,X,Y):J<63?Q=N(this,X,Y):J<1024?Q=M(this,X,Y):Q=x(this,X,Y),Q};function v(X,Y){this.x=X,this.y=Y}v.prototype.makeRBT=function(X){for(var Y=new Array(X),Q=H.prototype._countBits(X)-1,J=0;J<X;J++)Y[J]=this.revBin(J,Q,X);return Y},v.prototype.revBin=function(X,Y,Q){if(X===0||X===Q-1)return X;for(var J=0,F=0;F<Y;F++)J|=(X&1)<<Y-F-1,X>>=1;return J},v.prototype.permute=function(X,Y,Q,J,F,W){for(var Z=0;Z<W;Z++)J[Z]=Y[X[Z]],F[Z]=Q[X[Z]]},v.prototype.transform=function(X,Y,Q,J,F,W){this.permute(W,X,Y,Q,J,F);for(var Z=1;Z<F;Z<<=1)for(var C=Z<<1,K=Math.cos(2*Math.PI/C),G=Math.sin(2*Math.PI/C),R=0;R<F;R+=C)for(var L=K,_=G,s=0;s<Z;s++){var r=Q[R+s],Y0=J[R+s],u=Q[R+s+Z],d=J[R+s+Z],a=L*u-_*d;d=L*d+_*u,u=a,Q[R+s]=r+u,J[R+s]=Y0+d,Q[R+s+Z]=r-u,J[R+s+Z]=Y0-d,s!==C&&(a=K*L-G*_,_=K*_+G*L,L=a)}},v.prototype.guessLen13b=function(X,Y){var Q=Math.max(Y,X)|1,J=Q&1,F=0;for(Q=Q/2|0;Q;Q=Q>>>1)F++;return 1<<F+1+J},v.prototype.conjugate=function(X,Y,Q){if(!(Q<=1))for(var J=0;J<Q/2;J++){var F=X[J];X[J]=X[Q-J-1],X[Q-J-1]=F,F=Y[J],Y[J]=-Y[Q-J-1],Y[Q-J-1]=-F}},v.prototype.normalize13b=function(X,Y){for(var Q=0,J=0;J<Y/2;J++){var F=Math.round(X[2*J+1]/Y)*8192+Math.round(X[2*J]/Y)+Q;X[J]=F&67108863,F<67108864?Q=0:Q=F/67108864|0}return X},v.prototype.convert13b=function(X,Y,Q,J){for(var F=0,W=0;W<Y;W++)F=F+(X[W]|0),Q[2*W]=F&8191,F=F>>>13,Q[2*W+1]=F&8191,F=F>>>13;for(W=2*Y;W<J;++W)Q[W]=0;j(F===0),j((F&-8192)===0)},v.prototype.stub=function(X){for(var Y=new Array(X),Q=0;Q<X;Q++)Y[Q]=0;return Y},v.prototype.mulp=function(X,Y,Q){var J=2*this.guessLen13b(X.length,Y.length),F=this.makeRBT(J),W=this.stub(J),Z=new Array(J),C=new Array(J),K=new Array(J),G=new Array(J),R=new Array(J),L=new Array(J),_=Q.words;_.length=J,this.convert13b(X.words,X.length,Z,J),this.convert13b(Y.words,Y.length,G,J),this.transform(Z,W,C,K,J,F),this.transform(G,W,R,L,J,F);for(var s=0;s<J;s++){var r=C[s]*R[s]-K[s]*L[s];K[s]=C[s]*L[s]+K[s]*R[s],C[s]=r}return this.conjugate(C,K,J),this.transform(C,K,_,W,J,F),this.conjugate(_,W,J),this.normalize13b(_,J),Q.negative=X.negative^Y.negative,Q.length=X.length+Y.length,Q.strip()},H.prototype.mul=function(X){var Y=new H(null);return Y.words=new Array(this.length+X.length),this.mulTo(X,Y)},H.prototype.mulf=function(X){var Y=new H(null);return Y.words=new Array(this.length+X.length),x(this,X,Y)},H.prototype.imul=function(X){return this.clone().mulTo(X,this)},H.prototype.imuln=function(X){j(typeof X=="number"),j(X<67108864);for(var Y=0,Q=0;Q<this.length;Q++){var J=(this.words[Q]|0)*X,F=(J&67108863)+(Y&67108863);Y>>=26,Y+=J/67108864|0,Y+=F>>>26,this.words[Q]=F&67108863}return Y!==0&&(this.words[Q]=Y,this.length++),this},H.prototype.muln=function(X){return this.clone().imuln(X)},H.prototype.sqr=function(){return this.mul(this)},H.prototype.isqr=function(){return this.imul(this.clone())},H.prototype.pow=function(X){var Y=U(X);if(Y.length===0)return new H(1);for(var Q=this,J=0;J<Y.length&&Y[J]===0;J++,Q=Q.sqr());if(++J<Y.length)for(var F=Q.sqr();J<Y.length;J++,F=F.sqr())Y[J]!==0&&(Q=Q.mul(F));return Q},H.prototype.iushln=function(X){j(typeof X=="number"&&X>=0);var Y=X%26,Q=(X-Y)/26,J=67108863>>>26-Y<<26-Y,F;if(Y!==0){var W=0;for(F=0;F<this.length;F++){var Z=this.words[F]&J,C=(this.words[F]|0)-Z<<Y;this.words[F]=C|W,W=Z>>>26-Y}W&&(this.words[F]=W,this.length++)}if(Q!==0){for(F=this.length-1;F>=0;F--)this.words[F+Q]=this.words[F];for(F=0;F<Q;F++)this.words[F]=0;this.length+=Q}return this.strip()},H.prototype.ishln=function(X){return j(this.negative===0),this.iushln(X)},H.prototype.iushrn=function(X,Y,Q){j(typeof X=="number"&&X>=0);var J;Y?J=(Y-Y%26)/26:J=0;var F=X%26,W=Math.min((X-F)/26,this.length),Z=67108863^67108863>>>F<<F,C=Q;if(J-=W,J=Math.max(0,J),C){for(var K=0;K<W;K++)C.words[K]=this.words[K];C.length=W}if(W!==0)if(this.length>W)for(this.length-=W,K=0;K<this.length;K++)this.words[K]=this.words[K+W];else this.words[0]=0,this.length=1;var G=0;for(K=this.length-1;K>=0&&(G!==0||K>=J);K--){var R=this.words[K]|0;this.words[K]=G<<26-F|R>>>F,G=R&Z}return C&&G!==0&&(C.words[C.length++]=G),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},H.prototype.ishrn=function(X,Y,Q){return j(this.negative===0),this.iushrn(X,Y,Q)},H.prototype.shln=function(X){return this.clone().ishln(X)},H.prototype.ushln=function(X){return this.clone().iushln(X)},H.prototype.shrn=function(X){return this.clone().ishrn(X)},H.prototype.ushrn=function(X){return this.clone().iushrn(X)},H.prototype.testn=function(X){j(typeof X=="number"&&X>=0);var Y=X%26,Q=(X-Y)/26,J=1<<Y;if(this.length<=Q)return!1;var F=this.words[Q];return!!(F&J)},H.prototype.imaskn=function(X){j(typeof X=="number"&&X>=0);var Y=X%26,Q=(X-Y)/26;if(j(this.negative===0,"imaskn works only with positive numbers"),this.length<=Q)return this;if(Y!==0&&Q++,this.length=Math.min(Q,this.length),Y!==0){var J=67108863^67108863>>>Y<<Y;this.words[this.length-1]&=J}return this.strip()},H.prototype.maskn=function(X){return this.clone().imaskn(X)},H.prototype.iaddn=function(X){return j(typeof X=="number"),j(X<67108864),X<0?this.isubn(-X):this.negative!==0?this.length===1&&(this.words[0]|0)<X?(this.words[0]=X-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(X),this.negative=1,this):this._iaddn(X)},H.prototype._iaddn=function(X){this.words[0]+=X;for(var Y=0;Y<this.length&&this.words[Y]>=67108864;Y++)this.words[Y]-=67108864,Y===this.length-1?this.words[Y+1]=1:this.words[Y+1]++;return this.length=Math.max(this.length,Y+1),this},H.prototype.isubn=function(X){if(j(typeof X=="number"),j(X<67108864),X<0)return this.iaddn(-X);if(this.negative!==0)return this.negative=0,this.iaddn(X),this.negative=1,this;if(this.words[0]-=X,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Y=0;Y<this.length&&this.words[Y]<0;Y++)this.words[Y]+=67108864,this.words[Y+1]-=1;return this.strip()},H.prototype.addn=function(X){return this.clone().iaddn(X)},H.prototype.subn=function(X){return this.clone().isubn(X)},H.prototype.iabs=function(){return this.negative=0,this},H.prototype.abs=function(){return this.clone().iabs()},H.prototype._ishlnsubmul=function(X,Y,Q){var J=X.length+Q,F;this._expand(J);var W,Z=0;for(F=0;F<X.length;F++){W=(this.words[F+Q]|0)+Z;var C=(X.words[F]|0)*Y;W-=C&67108863,Z=(W>>26)-(C/67108864|0),this.words[F+Q]=W&67108863}for(;F<this.length-Q;F++)W=(this.words[F+Q]|0)+Z,Z=W>>26,this.words[F+Q]=W&67108863;if(Z===0)return this.strip();for(j(Z===-1),Z=0,F=0;F<this.length;F++)W=-(this.words[F]|0)+Z,Z=W>>26,this.words[F]=W&67108863;return this.negative=1,this.strip()},H.prototype._wordDiv=function(X,Y){var Q=this.length-X.length,J=this.clone(),F=X,W=F.words[F.length-1]|0,Z=this._countBits(W);Q=26-Z,Q!==0&&(F=F.ushln(Q),J.iushln(Q),W=F.words[F.length-1]|0);var C=J.length-F.length,K;if(Y!=="mod"){K=new H(null),K.length=C+1,K.words=new Array(K.length);for(var G=0;G<K.length;G++)K.words[G]=0}var R=J.clone()._ishlnsubmul(F,1,C);R.negative===0&&(J=R,K&&(K.words[C]=1));for(var L=C-1;L>=0;L--){var _=(J.words[F.length+L]|0)*67108864+(J.words[F.length+L-1]|0);for(_=Math.min(_/W|0,67108863),J._ishlnsubmul(F,_,L);J.negative!==0;)_--,J.negative=0,J._ishlnsubmul(F,1,L),J.isZero()||(J.negative^=1);K&&(K.words[L]=_)}return K&&K.strip(),J.strip(),Y!=="div"&&Q!==0&&J.iushrn(Q),{div:K||null,mod:J}},H.prototype.divmod=function(X,Y,Q){if(j(!X.isZero()),this.isZero())return{div:new H(0),mod:new H(0)};var J,F,W;return this.negative!==0&&X.negative===0?(W=this.neg().divmod(X,Y),Y!=="mod"&&(J=W.div.neg()),Y!=="div"&&(F=W.mod.neg(),Q&&F.negative!==0&&F.iadd(X)),{div:J,mod:F}):this.negative===0&&X.negative!==0?(W=this.divmod(X.neg(),Y),Y!=="mod"&&(J=W.div.neg()),{div:J,mod:W.mod}):(this.negative&X.negative)!==0?(W=this.neg().divmod(X.neg(),Y),Y!=="div"&&(F=W.mod.neg(),Q&&F.negative!==0&&F.isub(X)),{div:W.div,mod:F}):X.length>this.length||this.cmp(X)<0?{div:new H(0),mod:this}:X.length===1?Y==="div"?{div:this.divn(X.words[0]),mod:null}:Y==="mod"?{div:null,mod:new H(this.modn(X.words[0]))}:{div:this.divn(X.words[0]),mod:new H(this.modn(X.words[0]))}:this._wordDiv(X,Y)},H.prototype.div=function(X){return this.divmod(X,"div",!1).div},H.prototype.mod=function(X){return this.divmod(X,"mod",!1).mod},H.prototype.umod=function(X){return this.divmod(X,"mod",!0).mod},H.prototype.divRound=function(X){var Y=this.divmod(X);if(Y.mod.isZero())return Y.div;var Q=Y.div.negative!==0?Y.mod.isub(X):Y.mod,J=X.ushrn(1),F=X.andln(1),W=Q.cmp(J);return W<0||F===1&&W===0?Y.div:Y.div.negative!==0?Y.div.isubn(1):Y.div.iaddn(1)},H.prototype.modn=function(X){j(X<=67108863);for(var Y=67108864%X,Q=0,J=this.length-1;J>=0;J--)Q=(Y*Q+(this.words[J]|0))%X;return Q},H.prototype.idivn=function(X){j(X<=67108863);for(var Y=0,Q=this.length-1;Q>=0;Q--){var J=(this.words[Q]|0)+Y*67108864;this.words[Q]=J/X|0,Y=J%X}return this.strip()},H.prototype.divn=function(X){return this.clone().idivn(X)},H.prototype.egcd=function(X){j(X.negative===0),j(!X.isZero());var Y=this,Q=X.clone();Y.negative!==0?Y=Y.umod(X):Y=Y.clone();for(var J=new H(1),F=new H(0),W=new H(0),Z=new H(1),C=0;Y.isEven()&&Q.isEven();)Y.iushrn(1),Q.iushrn(1),++C;for(var K=Q.clone(),G=Y.clone();!Y.isZero();){for(var R=0,L=1;(Y.words[0]&L)===0&&R<26;++R,L<<=1);if(R>0)for(Y.iushrn(R);R-- >0;)(J.isOdd()||F.isOdd())&&(J.iadd(K),F.isub(G)),J.iushrn(1),F.iushrn(1);for(var _=0,s=1;(Q.words[0]&s)===0&&_<26;++_,s<<=1);if(_>0)for(Q.iushrn(_);_-- >0;)(W.isOdd()||Z.isOdd())&&(W.iadd(K),Z.isub(G)),W.iushrn(1),Z.iushrn(1);Y.cmp(Q)>=0?(Y.isub(Q),J.isub(W),F.isub(Z)):(Q.isub(Y),W.isub(J),Z.isub(F))}return{a:W,b:Z,gcd:Q.iushln(C)}},H.prototype._invmp=function(X){j(X.negative===0),j(!X.isZero());var Y=this,Q=X.clone();Y.negative!==0?Y=Y.umod(X):Y=Y.clone();for(var J=new H(1),F=new H(0),W=Q.clone();Y.cmpn(1)>0&&Q.cmpn(1)>0;){for(var Z=0,C=1;(Y.words[0]&C)===0&&Z<26;++Z,C<<=1);if(Z>0)for(Y.iushrn(Z);Z-- >0;)J.isOdd()&&J.iadd(W),J.iushrn(1);for(var K=0,G=1;(Q.words[0]&G)===0&&K<26;++K,G<<=1);if(K>0)for(Q.iushrn(K);K-- >0;)F.isOdd()&&F.iadd(W),F.iushrn(1);Y.cmp(Q)>=0?(Y.isub(Q),J.isub(F)):(Q.isub(Y),F.isub(J))}var R;return Y.cmpn(1)===0?R=J:R=F,R.cmpn(0)<0&&R.iadd(X),R},H.prototype.gcd=function(X){if(this.isZero())return X.abs();if(X.isZero())return this.abs();var Y=this.clone(),Q=X.clone();Y.negative=0,Q.negative=0;for(var J=0;Y.isEven()&&Q.isEven();J++)Y.iushrn(1),Q.iushrn(1);do{for(;Y.isEven();)Y.iushrn(1);for(;Q.isEven();)Q.iushrn(1);var F=Y.cmp(Q);if(F<0){var W=Y;Y=Q,Q=W}else if(F===0||Q.cmpn(1)===0)break;Y.isub(Q)}while(!0);return Q.iushln(J)},H.prototype.invm=function(X){return this.egcd(X).a.umod(X)},H.prototype.isEven=function(){return(this.words[0]&1)===0},H.prototype.isOdd=function(){return(this.words[0]&1)===1},H.prototype.andln=function(X){return this.words[0]&X},H.prototype.bincn=function(X){j(typeof X=="number");var Y=X%26,Q=(X-Y)/26,J=1<<Y;if(this.length<=Q)return this._expand(Q+1),this.words[Q]|=J,this;for(var F=J,W=Q;F!==0&&W<this.length;W++){var Z=this.words[W]|0;Z+=F,F=Z>>>26,Z&=67108863,this.words[W]=Z}return F!==0&&(this.words[W]=F,this.length++),this},H.prototype.isZero=function(){return this.length===1&&this.words[0]===0},H.prototype.cmpn=function(X){var Y=X<0;if(this.negative!==0&&!Y)return-1;if(this.negative===0&&Y)return 1;this.strip();var Q;if(this.length>1)Q=1;else{Y&&(X=-X),j(X<=67108863,"Number is too big");var J=this.words[0]|0;Q=J===X?0:J<X?-1:1}return this.negative!==0?-Q|0:Q},H.prototype.cmp=function(X){if(this.negative!==0&&X.negative===0)return-1;if(this.negative===0&&X.negative!==0)return 1;var Y=this.ucmp(X);return this.negative!==0?-Y|0:Y},H.prototype.ucmp=function(X){if(this.length>X.length)return 1;if(this.length<X.length)return-1;for(var Y=0,Q=this.length-1;Q>=0;Q--){var J=this.words[Q]|0,F=X.words[Q]|0;if(J!==F){J<F?Y=-1:J>F&&(Y=1);break}}return Y},H.prototype.gtn=function(X){return this.cmpn(X)===1},H.prototype.gt=function(X){return this.cmp(X)===1},H.prototype.gten=function(X){return this.cmpn(X)>=0},H.prototype.gte=function(X){return this.cmp(X)>=0},H.prototype.ltn=function(X){return this.cmpn(X)===-1},H.prototype.lt=function(X){return this.cmp(X)===-1},H.prototype.lten=function(X){return this.cmpn(X)<=0},H.prototype.lte=function(X){return this.cmp(X)<=0},H.prototype.eqn=function(X){return this.cmpn(X)===0},H.prototype.eq=function(X){return this.cmp(X)===0},H.red=function(X){return new f(X)},H.prototype.toRed=function(X){return j(!this.red,"Already a number in reduction context"),j(this.negative===0,"red works only with positives"),X.convertTo(this)._forceRed(X)},H.prototype.fromRed=function(){return j(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},H.prototype._forceRed=function(X){return this.red=X,this},H.prototype.forceRed=function(X){return j(!this.red,"Already a number in reduction context"),this._forceRed(X)},H.prototype.redAdd=function(X){return j(this.red,"redAdd works only with red numbers"),this.red.add(this,X)},H.prototype.redIAdd=function(X){return j(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,X)},H.prototype.redSub=function(X){return j(this.red,"redSub works only with red numbers"),this.red.sub(this,X)},H.prototype.redISub=function(X){return j(this.red,"redISub works only with red numbers"),this.red.isub(this,X)},H.prototype.redShl=function(X){return j(this.red,"redShl works only with red numbers"),this.red.shl(this,X)},H.prototype.redMul=function(X){return j(this.red,"redMul works only with red numbers"),this.red._verify2(this,X),this.red.mul(this,X)},H.prototype.redIMul=function(X){return j(this.red,"redMul works only with red numbers"),this.red._verify2(this,X),this.red.imul(this,X)},H.prototype.redSqr=function(){return j(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},H.prototype.redISqr=function(){return j(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},H.prototype.redSqrt=function(){return j(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},H.prototype.redInvm=function(){return j(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},H.prototype.redNeg=function(){return j(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},H.prototype.redPow=function(X){return j(this.red&&!X.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,X)};var y={k256:null,p224:null,p192:null,p25519:null};function p(X,Y){this.name=X,this.p=new H(Y,16),this.n=this.p.bitLength(),this.k=new H(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}p.prototype._tmp=function(){var X=new H(null);return X.words=new Array(Math.ceil(this.n/13)),X},p.prototype.ireduce=function(X){var Y=X,Q;do this.split(Y,this.tmp),Y=this.imulK(Y),Y=Y.iadd(this.tmp),Q=Y.bitLength();while(Q>this.n);var J=Q<this.n?-1:Y.ucmp(this.p);return J===0?(Y.words[0]=0,Y.length=1):J>0?Y.isub(this.p):Y.strip!==void 0?Y.strip():Y._strip(),Y},p.prototype.split=function(X,Y){X.iushrn(this.n,0,Y)},p.prototype.imulK=function(X){return X.imul(this.k)};function c(){p.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}S(c,p),c.prototype.split=function(X,Y){for(var Q=4194303,J=Math.min(X.length,9),F=0;F<J;F++)Y.words[F]=X.words[F];if(Y.length=J,X.length<=9){X.words[0]=0,X.length=1;return}var W=X.words[9];for(Y.words[Y.length++]=W&Q,F=10;F<X.length;F++){var Z=X.words[F]|0;X.words[F-10]=(Z&Q)<<4|W>>>22,W=Z}W>>>=22,X.words[F-10]=W,W===0&&X.length>10?X.length-=10:X.length-=9},c.prototype.imulK=function(X){X.words[X.length]=0,X.words[X.length+1]=0,X.length+=2;for(var Y=0,Q=0;Q<X.length;Q++){var J=X.words[Q]|0;Y+=J*977,X.words[Q]=Y&67108863,Y=J*64+(Y/67108864|0)}return X.words[X.length-1]===0&&(X.length--,X.words[X.length-1]===0&&X.length--),X};function n(){p.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}S(n,p);function i(){p.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}S(i,p);function Q0(){p.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}S(Q0,p),Q0.prototype.imulK=function(X){for(var Y=0,Q=0;Q<X.length;Q++){var J=(X.words[Q]|0)*19+Y,F=J&67108863;J>>>=26,X.words[Q]=F,Y=J}return Y!==0&&(X.words[X.length++]=Y),X},H._prime=function(X){if(y[X])return y[X];var Y;if(X==="k256")Y=new c;else if(X==="p224")Y=new n;else if(X==="p192")Y=new i;else if(X==="p25519")Y=new Q0;else throw new Error("Unknown prime "+X);return y[X]=Y,Y};function f(X){if(typeof X=="string"){var Y=H._prime(X);this.m=Y.p,this.prime=Y}else j(X.gtn(1),"modulus must be greater than 1"),this.m=X,this.prime=null}f.prototype._verify1=function(X){j(X.negative===0,"red works only with positives"),j(X.red,"red works only with red numbers")},f.prototype._verify2=function(X,Y){j((X.negative|Y.negative)===0,"red works only with positives"),j(X.red&&X.red===Y.red,"red works only with red numbers")},f.prototype.imod=function(X){return this.prime?this.prime.ireduce(X)._forceRed(this):X.umod(this.m)._forceRed(this)},f.prototype.neg=function(X){return X.isZero()?X.clone():this.m.sub(X)._forceRed(this)},f.prototype.add=function(X,Y){this._verify2(X,Y);var Q=X.add(Y);return Q.cmp(this.m)>=0&&Q.isub(this.m),Q._forceRed(this)},f.prototype.iadd=function(X,Y){this._verify2(X,Y);var Q=X.iadd(Y);return Q.cmp(this.m)>=0&&Q.isub(this.m),Q},f.prototype.sub=function(X,Y){this._verify2(X,Y);var Q=X.sub(Y);return Q.cmpn(0)<0&&Q.iadd(this.m),Q._forceRed(this)},f.prototype.isub=function(X,Y){this._verify2(X,Y);var Q=X.isub(Y);return Q.cmpn(0)<0&&Q.iadd(this.m),Q},f.prototype.shl=function(X,Y){return this._verify1(X),this.imod(X.ushln(Y))},f.prototype.imul=function(X,Y){return this._verify2(X,Y),this.imod(X.imul(Y))},f.prototype.mul=function(X,Y){return this._verify2(X,Y),this.imod(X.mul(Y))},f.prototype.isqr=function(X){return this.imul(X,X.clone())},f.prototype.sqr=function(X){return this.mul(X,X)},f.prototype.sqrt=function(X){if(X.isZero())return X.clone();var Y=this.m.andln(3);if(j(Y%2===1),Y===3){var Q=this.m.add(new H(1)).iushrn(2);return this.pow(X,Q)}for(var J=this.m.subn(1),F=0;!J.isZero()&&J.andln(1)===0;)F++,J.iushrn(1);j(!J.isZero());var W=new H(1).toRed(this),Z=W.redNeg(),C=this.m.subn(1).iushrn(1),K=this.m.bitLength();for(K=new H(2*K*K).toRed(this);this.pow(K,C).cmp(Z)!==0;)K.redIAdd(Z);for(var G=this.pow(K,J),R=this.pow(X,J.addn(1).iushrn(1)),L=this.pow(X,J),_=F;L.cmp(W)!==0;){for(var s=L,r=0;s.cmp(W)!==0;r++)s=s.redSqr();j(r<_);var Y0=this.pow(G,new H(1).iushln(_-r-1));R=R.redMul(Y0),G=Y0.redSqr(),L=L.redMul(G),_=r}return R},f.prototype.invm=function(X){var Y=X._invmp(this.m);return Y.negative!==0?(Y.negative=0,this.imod(Y).redNeg()):this.imod(Y)},f.prototype.pow=function(X,Y){if(Y.isZero())return new H(1).toRed(this);if(Y.cmpn(1)===0)return X.clone();var Q=4,J=new Array(1<<Q);J[0]=new H(1).toRed(this),J[1]=X;for(var F=2;F<J.length;F++)J[F]=this.mul(J[F-1],X);var W=J[0],Z=0,C=0,K=Y.bitLength()%26;for(K===0&&(K=26),F=Y.length-1;F>=0;F--){for(var G=Y.words[F],R=K-1;R>=0;R--){var L=G>>R&1;if(W!==J[0]&&(W=this.sqr(W)),L===0&&Z===0){C=0;continue}Z<<=1,Z|=L,C++,!(C!==Q&&(F!==0||R!==0))&&(W=this.mul(W,J[Z]),C=0,Z=0)}K=26}return W},f.prototype.convertTo=function(X){var Y=X.umod(this.m);return Y===X?Y.clone():Y},f.prototype.convertFrom=function(X){var Y=X.clone();return Y.red=null,Y},H.mont=function(X){return new W0(X)};function W0(X){f.call(this,X),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new H(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)}S(W0,f),W0.prototype.convertTo=function(X){return this.imod(X.ushln(this.shift))},W0.prototype.convertFrom=function(X){var Y=this.imod(X.mul(this.rinv));return Y.red=null,Y},W0.prototype.imul=function(X,Y){if(X.isZero()||Y.isZero())return X.words[0]=0,X.length=1,X;var Q=X.imul(Y),J=Q.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),F=Q.isub(J).iushrn(this.shift),W=F;return F.cmp(this.m)>=0?W=F.isub(this.m):F.cmpn(0)<0&&(W=F.iadd(this.m)),W._forceRed(this)},W0.prototype.mul=function(X,Y){if(X.isZero()||Y.isZero())return new H(0)._forceRed(this);var Q=X.mul(Y),J=Q.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),F=Q.isub(J).iushrn(this.shift),W=F;return F.cmp(this.m)>=0?W=F.isub(this.m):F.cmpn(0)<0&&(W=F.iadd(this.m)),W._forceRed(this)},W0.prototype.invm=function(X){var Y=this.imod(X._invmp(this.m).mul(this.r2));return Y._forceRed(this)}})(typeof g>"u"||g,l)}),o7=C0((l,g)=>{(function(E,A){function j(X,Y){if(!X)throw new Error(Y||"Assertion failed")}function S(X,Y){X.super_=Y;var Q=function(){};Q.prototype=Y.prototype,X.prototype=new Q,X.prototype.constructor=X}function H(X,Y,Q){if(H.isBN(X))return X;this.negative=0,this.words=null,this.length=0,this.red=null,X!==null&&((Y==="le"||Y==="be")&&(Q=Y,Y=10),this._init(X||0,Y||10,Q||"be"))}typeof E=="object"?E.exports=H:A.BN=H,H.BN=H,H.wordSize=26;var P;try{typeof window<"u"&&typeof window.Buffer<"u"?P=window.Buffer:P=M5().Buffer}catch{}H.isBN=function(X){return X instanceof H?!0:X!==null&&typeof X=="object"&&X.constructor.wordSize===H.wordSize&&Array.isArray(X.words)},H.max=function(X,Y){return X.cmp(Y)>0?X:Y},H.min=function(X,Y){return X.cmp(Y)<0?X:Y},H.prototype._init=function(X,Y,Q){if(typeof X=="number")return this._initNumber(X,Y,Q);if(typeof X=="object")return this._initArray(X,Y,Q);Y==="hex"&&(Y=16),j(Y===(Y|0)&&Y>=2&&Y<=36),X=X.toString().replace(/\s+/g,"");var J=0;X[0]==="-"&&(J++,this.negative=1),J<X.length&&(Y===16?this._parseHex(X,J,Q):(this._parseBase(X,Y,J),Q==="le"&&this._initArray(this.toArray(),Y,Q)))},H.prototype._initNumber=function(X,Y,Q){X<0&&(this.negative=1,X=-X),X<67108864?(this.words=[X&67108863],this.length=1):X<4503599627370496?(this.words=[X&67108863,X/67108864&67108863],this.length=2):(j(X<9007199254740992),this.words=[X&67108863,X/67108864&67108863,1],this.length=3),Q==="le"&&this._initArray(this.toArray(),Y,Q)},H.prototype._initArray=function(X,Y,Q){if(j(typeof X.length=="number"),X.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(X.length/3),this.words=new Array(this.length);for(var J=0;J<this.length;J++)this.words[J]=0;var F,W,Z=0;if(Q==="be")for(J=X.length-1,F=0;J>=0;J-=3)W=X[J]|X[J-1]<<8|X[J-2]<<16,this.words[F]|=W<<Z&67108863,this.words[F+1]=W>>>26-Z&67108863,Z+=24,Z>=26&&(Z-=26,F++);else if(Q==="le")for(J=0,F=0;J<X.length;J+=3)W=X[J]|X[J+1]<<8|X[J+2]<<16,this.words[F]|=W<<Z&67108863,this.words[F+1]=W>>>26-Z&67108863,Z+=24,Z>=26&&(Z-=26,F++);return this.strip()};function k(X,Y){var Q=X.charCodeAt(Y);return Q>=65&&Q<=70?Q-55:Q>=97&&Q<=102?Q-87:Q-48&15}function z(X,Y,Q){var J=k(X,Q);return Q-1>=Y&&(J|=k(X,Q-1)<<4),J}H.prototype._parseHex=function(X,Y,Q){this.length=Math.ceil((X.length-Y)/6),this.words=new Array(this.length);for(var J=0;J<this.length;J++)this.words[J]=0;var F=0,W=0,Z;if(Q==="be")for(J=X.length-1;J>=Y;J-=2)Z=z(X,Y,J)<<F,this.words[W]|=Z&67108863,F>=18?(F-=18,W+=1,this.words[W]|=Z>>>26):F+=8;else{var C=X.length-Y;for(J=C%2===0?Y+1:Y;J<X.length;J+=2)Z=z(X,Y,J)<<F,this.words[W]|=Z&67108863,F>=18?(F-=18,W+=1,this.words[W]|=Z>>>26):F+=8}this.strip()};function V(X,Y,Q,J){for(var F=0,W=Math.min(X.length,Q),Z=Y;Z<W;Z++){var C=X.charCodeAt(Z)-48;F*=J,C>=49?F+=C-49+10:C>=17?F+=C-17+10:F+=C}return F}H.prototype._parseBase=function(X,Y,Q){this.words=[0],this.length=1;for(var J=0,F=1;F<=67108863;F*=Y)J++;J--,F=F/Y|0;for(var W=X.length-Q,Z=W%J,C=Math.min(W,W-Z)+Q,K=0,G=Q;G<C;G+=J)K=V(X,G,G+J,Y),this.imuln(F),this.words[0]+K<67108864?this.words[0]+=K:this._iaddn(K);if(Z!==0){var R=1;for(K=V(X,G,X.length,Y),G=0;G<Z;G++)R*=Y;this.imuln(R),this.words[0]+K<67108864?this.words[0]+=K:this._iaddn(K)}this.strip()},H.prototype.copy=function(X){X.words=new Array(this.length);for(var Y=0;Y<this.length;Y++)X.words[Y]=this.words[Y];X.length=this.length,X.negative=this.negative,X.red=this.red},H.prototype.clone=function(){var X=new H(null);return this.copy(X),X},H.prototype._expand=function(X){for(;this.length<X;)this.words[this.length++]=0;return this},H.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},H.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},H.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var $=["","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"],T=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],D=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];H.prototype.toString=function(X,Y){X=X||10,Y=Y|0||1;var Q;if(X===16||X==="hex"){Q="";for(var J=0,F=0,W=0;W<this.length;W++){var Z=this.words[W],C=((Z<<J|F)&16777215).toString(16);F=Z>>>24-J&16777215,F!==0||W!==this.length-1?Q=$[6-C.length]+C+Q:Q=C+Q,J+=2,J>=26&&(J-=26,W--)}for(F!==0&&(Q=F.toString(16)+Q);Q.length%Y!==0;)Q="0"+Q;return this.negative!==0&&(Q="-"+Q),Q}if(X===(X|0)&&X>=2&&X<=36){var K=T[X],G=D[X];Q="";var R=this.clone();for(R.negative=0;!R.isZero();){var L=R.modn(G).toString(X);R=R.idivn(G),R.isZero()?Q=L+Q:Q=$[K-L.length]+L+Q}for(this.isZero()&&(Q="0"+Q);Q.length%Y!==0;)Q="0"+Q;return this.negative!==0&&(Q="-"+Q),Q}j(!1,"Base should be between 2 and 36")},H.prototype.toNumber=function(){var X=this.words[0];return this.length===2?X+=this.words[1]*67108864:this.length===3&&this.words[2]===1?X+=4503599627370496+this.words[1]*67108864:this.length>2&&j(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-X:X},H.prototype.toJSON=function(){return this.toString(16)},H.prototype.toBuffer=function(X,Y){return j(typeof P<"u"),this.toArrayLike(P,X,Y)},H.prototype.toArray=function(X,Y){return this.toArrayLike(Array,X,Y)},H.prototype.toArrayLike=function(X,Y,Q){var J=this.byteLength(),F=Q||Math.max(1,J);j(J<=F,"byte array longer than desired length"),j(F>0,"Requested array length <= 0"),this.strip();var W=Y==="le",Z=new X(F),C,K,G=this.clone();if(W){for(K=0;!G.isZero();K++)C=G.andln(255),G.iushrn(8),Z[K]=C;for(;K<F;K++)Z[K]=0}else{for(K=0;K<F-J;K++)Z[K]=0;for(K=0;!G.isZero();K++)C=G.andln(255),G.iushrn(8),Z[F-K-1]=C}return Z},Math.clz32?H.prototype._countBits=function(X){return 32-Math.clz32(X)}:H.prototype._countBits=function(X){var Y=X,Q=0;return Y>=4096&&(Q+=13,Y>>>=13),Y>=64&&(Q+=7,Y>>>=7),Y>=8&&(Q+=4,Y>>>=4),Y>=2&&(Q+=2,Y>>>=2),Q+Y},H.prototype._zeroBits=function(X){if(X===0)return 26;var Y=X,Q=0;return(Y&8191)===0&&(Q+=13,Y>>>=13),(Y&127)===0&&(Q+=7,Y>>>=7),(Y&15)===0&&(Q+=4,Y>>>=4),(Y&3)===0&&(Q+=2,Y>>>=2),(Y&1)===0&&Q++,Q},H.prototype.bitLength=function(){var X=this.words[this.length-1],Y=this._countBits(X);return(this.length-1)*26+Y};function U(X){for(var Y=new Array(X.bitLength()),Q=0;Q<Y.length;Q++){var J=Q/26|0,F=Q%26;Y[Q]=(X.words[J]&1<<F)>>>F}return Y}H.prototype.zeroBits=function(){if(this.isZero())return 0;for(var X=0,Y=0;Y<this.length;Y++){var Q=this._zeroBits(this.words[Y]);if(X+=Q,Q!==26)break}return X},H.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},H.prototype.toTwos=function(X){return this.negative!==0?this.abs().inotn(X).iaddn(1):this.clone()},H.prototype.fromTwos=function(X){return this.testn(X-1)?this.notn(X).iaddn(1).ineg():this.clone()},H.prototype.isNeg=function(){return this.negative!==0},H.prototype.neg=function(){return this.clone().ineg()},H.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},H.prototype.iuor=function(X){for(;this.length<X.length;)this.words[this.length++]=0;for(var Y=0;Y<X.length;Y++)this.words[Y]=this.words[Y]|X.words[Y];return this.strip()},H.prototype.ior=function(X){return j((this.negative|X.negative)===0),this.iuor(X)},H.prototype.or=function(X){return this.length>X.length?this.clone().ior(X):X.clone().ior(this)},H.prototype.uor=function(X){return this.length>X.length?this.clone().iuor(X):X.clone().iuor(this)},H.prototype.iuand=function(X){var Y;this.length>X.length?Y=X:Y=this;for(var Q=0;Q<Y.length;Q++)this.words[Q]=this.words[Q]&X.words[Q];return this.length=Y.length,this.strip()},H.prototype.iand=function(X){return j((this.negative|X.negative)===0),this.iuand(X)},H.prototype.and=function(X){return this.length>X.length?this.clone().iand(X):X.clone().iand(this)},H.prototype.uand=function(X){return this.length>X.length?this.clone().iuand(X):X.clone().iuand(this)},H.prototype.iuxor=function(X){var Y,Q;this.length>X.length?(Y=this,Q=X):(Y=X,Q=this);for(var J=0;J<Q.length;J++)this.words[J]=Y.words[J]^Q.words[J];if(this!==Y)for(;J<Y.length;J++)this.words[J]=Y.words[J];return this.length=Y.length,this.strip()},H.prototype.ixor=function(X){return j((this.negative|X.negative)===0),this.iuxor(X)},H.prototype.xor=function(X){return this.length>X.length?this.clone().ixor(X):X.clone().ixor(this)},H.prototype.uxor=function(X){return this.length>X.length?this.clone().iuxor(X):X.clone().iuxor(this)},H.prototype.inotn=function(X){j(typeof X=="number"&&X>=0);var Y=Math.ceil(X/26)|0,Q=X%26;this._expand(Y),Q>0&&Y--;for(var J=0;J<Y;J++)this.words[J]=~this.words[J]&67108863;return Q>0&&(this.words[J]=~this.words[J]&67108863>>26-Q),this.strip()},H.prototype.notn=function(X){return this.clone().inotn(X)},H.prototype.setn=function(X,Y){j(typeof X=="number"&&X>=0);var Q=X/26|0,J=X%26;return this._expand(Q+1),Y?this.words[Q]=this.words[Q]|1<<J:this.words[Q]=this.words[Q]&~(1<<J),this.strip()},H.prototype.iadd=function(X){var Y;if(this.negative!==0&&X.negative===0)return this.negative=0,Y=this.isub(X),this.negative^=1,this._normSign();if(this.negative===0&&X.negative!==0)return X.negative=0,Y=this.isub(X),X.negative=1,Y._normSign();var Q,J;this.length>X.length?(Q=this,J=X):(Q=X,J=this);for(var F=0,W=0;W<J.length;W++)Y=(Q.words[W]|0)+(J.words[W]|0)+F,this.words[W]=Y&67108863,F=Y>>>26;for(;F!==0&&W<Q.length;W++)Y=(Q.words[W]|0)+F,this.words[W]=Y&67108863,F=Y>>>26;if(this.length=Q.length,F!==0)this.words[this.length]=F,this.length++;else if(Q!==this)for(;W<Q.length;W++)this.words[W]=Q.words[W];return this},H.prototype.add=function(X){var Y;return X.negative!==0&&this.negative===0?(X.negative=0,Y=this.sub(X),X.negative^=1,Y):X.negative===0&&this.negative!==0?(this.negative=0,Y=X.sub(this),this.negative=1,Y):this.length>X.length?this.clone().iadd(X):X.clone().iadd(this)},H.prototype.isub=function(X){if(X.negative!==0){X.negative=0;var Y=this.iadd(X);return X.negative=1,Y._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(X),this.negative=1,this._normSign();var Q=this.cmp(X);if(Q===0)return this.negative=0,this.length=1,this.words[0]=0,this;var J,F;Q>0?(J=this,F=X):(J=X,F=this);for(var W=0,Z=0;Z<F.length;Z++)Y=(J.words[Z]|0)-(F.words[Z]|0)+W,W=Y>>26,this.words[Z]=Y&67108863;for(;W!==0&&Z<J.length;Z++)Y=(J.words[Z]|0)+W,W=Y>>26,this.words[Z]=Y&67108863;if(W===0&&Z<J.length&&J!==this)for(;Z<J.length;Z++)this.words[Z]=J.words[Z];return this.length=Math.max(this.length,Z),J!==this&&(this.negative=1),this.strip()},H.prototype.sub=function(X){return this.clone().isub(X)};function N(X,Y,Q){Q.negative=Y.negative^X.negative;var J=X.length+Y.length|0;Q.length=J,J=J-1|0;var F=X.words[0]|0,W=Y.words[0]|0,Z=F*W,C=Z&67108863,K=Z/67108864|0;Q.words[0]=C;for(var G=1;G<J;G++){for(var R=K>>>26,L=K&67108863,_=Math.min(G,Y.length-1),s=Math.max(0,G-X.length+1);s<=_;s++){var r=G-s|0;F=X.words[r]|0,W=Y.words[s]|0,Z=F*W+L,R+=Z/67108864|0,L=Z&67108863}Q.words[G]=L|0,K=R|0}return K!==0?Q.words[G]=K|0:Q.length--,Q.strip()}var I=function(X,Y,Q){var J=X.words,F=Y.words,W=Q.words,Z=0,C,K,G,R=J[0]|0,L=R&8191,_=R>>>13,s=J[1]|0,r=s&8191,Y0=s>>>13,u=J[2]|0,d=u&8191,a=u>>>13,V0=J[3]|0,X0=V0&8191,F0=V0>>>13,w=J[4]|0,q=w&8191,m=w>>>13,e=J[5]|0,K0=e&8191,t=e>>>13,_0=J[6]|0,H0=_0&8191,G0=_0>>>13,w0=J[7]|0,U0=w0&8191,Z0=w0>>>13,c0=J[8]|0,O=c0&8191,B=c0>>>13,b=J[9]|0,h=b&8191,o=b>>>13,z0=F[0]|0,J0=z0&8191,$0=z0>>>13,b0=F[1]|0,P0=b0&8191,j0=b0>>>13,y0=F[2]|0,D0=y0&8191,N0=y0>>>13,H5=F[3]|0,T0=H5&8191,O0=H5>>>13,l0=F[4]|0,L0=l0&8191,k0=l0>>>13,G5=F[5]|0,I0=G5&8191,q0=G5>>>13,W5=F[6]|0,B0=W5&8191,R0=W5>>>13,Z5=F[7]|0,E0=Z5&8191,S0=Z5>>>13,$5=F[8]|0,x0=$5&8191,A0=$5>>>13,j5=F[9]|0,v0=j5&8191,M0=j5>>>13;Q.negative=X.negative^Y.negative,Q.length=19,C=Math.imul(L,J0),K=Math.imul(L,$0),K=K+Math.imul(_,J0)|0,G=Math.imul(_,$0);var F5=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(F5>>>26)|0,F5&=67108863,C=Math.imul(r,J0),K=Math.imul(r,$0),K=K+Math.imul(Y0,J0)|0,G=Math.imul(Y0,$0),C=C+Math.imul(L,P0)|0,K=K+Math.imul(L,j0)|0,K=K+Math.imul(_,P0)|0,G=G+Math.imul(_,j0)|0;var g0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(g0>>>26)|0,g0&=67108863,C=Math.imul(d,J0),K=Math.imul(d,$0),K=K+Math.imul(a,J0)|0,G=Math.imul(a,$0),C=C+Math.imul(r,P0)|0,K=K+Math.imul(r,j0)|0,K=K+Math.imul(Y0,P0)|0,G=G+Math.imul(Y0,j0)|0,C=C+Math.imul(L,D0)|0,K=K+Math.imul(L,N0)|0,K=K+Math.imul(_,D0)|0,G=G+Math.imul(_,N0)|0;var m0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(m0>>>26)|0,m0&=67108863,C=Math.imul(X0,J0),K=Math.imul(X0,$0),K=K+Math.imul(F0,J0)|0,G=Math.imul(F0,$0),C=C+Math.imul(d,P0)|0,K=K+Math.imul(d,j0)|0,K=K+Math.imul(a,P0)|0,G=G+Math.imul(a,j0)|0,C=C+Math.imul(r,D0)|0,K=K+Math.imul(r,N0)|0,K=K+Math.imul(Y0,D0)|0,G=G+Math.imul(Y0,N0)|0,C=C+Math.imul(L,T0)|0,K=K+Math.imul(L,O0)|0,K=K+Math.imul(_,T0)|0,G=G+Math.imul(_,O0)|0;var h0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(h0>>>26)|0,h0&=67108863,C=Math.imul(q,J0),K=Math.imul(q,$0),K=K+Math.imul(m,J0)|0,G=Math.imul(m,$0),C=C+Math.imul(X0,P0)|0,K=K+Math.imul(X0,j0)|0,K=K+Math.imul(F0,P0)|0,G=G+Math.imul(F0,j0)|0,C=C+Math.imul(d,D0)|0,K=K+Math.imul(d,N0)|0,K=K+Math.imul(a,D0)|0,G=G+Math.imul(a,N0)|0,C=C+Math.imul(r,T0)|0,K=K+Math.imul(r,O0)|0,K=K+Math.imul(Y0,T0)|0,G=G+Math.imul(Y0,O0)|0,C=C+Math.imul(L,L0)|0,K=K+Math.imul(L,k0)|0,K=K+Math.imul(_,L0)|0,G=G+Math.imul(_,k0)|0;var u0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(u0>>>26)|0,u0&=67108863,C=Math.imul(K0,J0),K=Math.imul(K0,$0),K=K+Math.imul(t,J0)|0,G=Math.imul(t,$0),C=C+Math.imul(q,P0)|0,K=K+Math.imul(q,j0)|0,K=K+Math.imul(m,P0)|0,G=G+Math.imul(m,j0)|0,C=C+Math.imul(X0,D0)|0,K=K+Math.imul(X0,N0)|0,K=K+Math.imul(F0,D0)|0,G=G+Math.imul(F0,N0)|0,C=C+Math.imul(d,T0)|0,K=K+Math.imul(d,O0)|0,K=K+Math.imul(a,T0)|0,G=G+Math.imul(a,O0)|0,C=C+Math.imul(r,L0)|0,K=K+Math.imul(r,k0)|0,K=K+Math.imul(Y0,L0)|0,G=G+Math.imul(Y0,k0)|0,C=C+Math.imul(L,I0)|0,K=K+Math.imul(L,q0)|0,K=K+Math.imul(_,I0)|0,G=G+Math.imul(_,q0)|0;var o0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(o0>>>26)|0,o0&=67108863,C=Math.imul(H0,J0),K=Math.imul(H0,$0),K=K+Math.imul(G0,J0)|0,G=Math.imul(G0,$0),C=C+Math.imul(K0,P0)|0,K=K+Math.imul(K0,j0)|0,K=K+Math.imul(t,P0)|0,G=G+Math.imul(t,j0)|0,C=C+Math.imul(q,D0)|0,K=K+Math.imul(q,N0)|0,K=K+Math.imul(m,D0)|0,G=G+Math.imul(m,N0)|0,C=C+Math.imul(X0,T0)|0,K=K+Math.imul(X0,O0)|0,K=K+Math.imul(F0,T0)|0,G=G+Math.imul(F0,O0)|0,C=C+Math.imul(d,L0)|0,K=K+Math.imul(d,k0)|0,K=K+Math.imul(a,L0)|0,G=G+Math.imul(a,k0)|0,C=C+Math.imul(r,I0)|0,K=K+Math.imul(r,q0)|0,K=K+Math.imul(Y0,I0)|0,G=G+Math.imul(Y0,q0)|0,C=C+Math.imul(L,B0)|0,K=K+Math.imul(L,R0)|0,K=K+Math.imul(_,B0)|0,G=G+Math.imul(_,R0)|0;var s0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(s0>>>26)|0,s0&=67108863,C=Math.imul(U0,J0),K=Math.imul(U0,$0),K=K+Math.imul(Z0,J0)|0,G=Math.imul(Z0,$0),C=C+Math.imul(H0,P0)|0,K=K+Math.imul(H0,j0)|0,K=K+Math.imul(G0,P0)|0,G=G+Math.imul(G0,j0)|0,C=C+Math.imul(K0,D0)|0,K=K+Math.imul(K0,N0)|0,K=K+Math.imul(t,D0)|0,G=G+Math.imul(t,N0)|0,C=C+Math.imul(q,T0)|0,K=K+Math.imul(q,O0)|0,K=K+Math.imul(m,T0)|0,G=G+Math.imul(m,O0)|0,C=C+Math.imul(X0,L0)|0,K=K+Math.imul(X0,k0)|0,K=K+Math.imul(F0,L0)|0,G=G+Math.imul(F0,k0)|0,C=C+Math.imul(d,I0)|0,K=K+Math.imul(d,q0)|0,K=K+Math.imul(a,I0)|0,G=G+Math.imul(a,q0)|0,C=C+Math.imul(r,B0)|0,K=K+Math.imul(r,R0)|0,K=K+Math.imul(Y0,B0)|0,G=G+Math.imul(Y0,R0)|0,C=C+Math.imul(L,E0)|0,K=K+Math.imul(L,S0)|0,K=K+Math.imul(_,E0)|0,G=G+Math.imul(_,S0)|0;var a0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(a0>>>26)|0,a0&=67108863,C=Math.imul(O,J0),K=Math.imul(O,$0),K=K+Math.imul(B,J0)|0,G=Math.imul(B,$0),C=C+Math.imul(U0,P0)|0,K=K+Math.imul(U0,j0)|0,K=K+Math.imul(Z0,P0)|0,G=G+Math.imul(Z0,j0)|0,C=C+Math.imul(H0,D0)|0,K=K+Math.imul(H0,N0)|0,K=K+Math.imul(G0,D0)|0,G=G+Math.imul(G0,N0)|0,C=C+Math.imul(K0,T0)|0,K=K+Math.imul(K0,O0)|0,K=K+Math.imul(t,T0)|0,G=G+Math.imul(t,O0)|0,C=C+Math.imul(q,L0)|0,K=K+Math.imul(q,k0)|0,K=K+Math.imul(m,L0)|0,G=G+Math.imul(m,k0)|0,C=C+Math.imul(X0,I0)|0,K=K+Math.imul(X0,q0)|0,K=K+Math.imul(F0,I0)|0,G=G+Math.imul(F0,q0)|0,C=C+Math.imul(d,B0)|0,K=K+Math.imul(d,R0)|0,K=K+Math.imul(a,B0)|0,G=G+Math.imul(a,R0)|0,C=C+Math.imul(r,E0)|0,K=K+Math.imul(r,S0)|0,K=K+Math.imul(Y0,E0)|0,G=G+Math.imul(Y0,S0)|0,C=C+Math.imul(L,x0)|0,K=K+Math.imul(L,A0)|0,K=K+Math.imul(_,x0)|0,G=G+Math.imul(_,A0)|0;var f0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(f0>>>26)|0,f0&=67108863,C=Math.imul(h,J0),K=Math.imul(h,$0),K=K+Math.imul(o,J0)|0,G=Math.imul(o,$0),C=C+Math.imul(O,P0)|0,K=K+Math.imul(O,j0)|0,K=K+Math.imul(B,P0)|0,G=G+Math.imul(B,j0)|0,C=C+Math.imul(U0,D0)|0,K=K+Math.imul(U0,N0)|0,K=K+Math.imul(Z0,D0)|0,G=G+Math.imul(Z0,N0)|0,C=C+Math.imul(H0,T0)|0,K=K+Math.imul(H0,O0)|0,K=K+Math.imul(G0,T0)|0,G=G+Math.imul(G0,O0)|0,C=C+Math.imul(K0,L0)|0,K=K+Math.imul(K0,k0)|0,K=K+Math.imul(t,L0)|0,G=G+Math.imul(t,k0)|0,C=C+Math.imul(q,I0)|0,K=K+Math.imul(q,q0)|0,K=K+Math.imul(m,I0)|0,G=G+Math.imul(m,q0)|0,C=C+Math.imul(X0,B0)|0,K=K+Math.imul(X0,R0)|0,K=K+Math.imul(F0,B0)|0,G=G+Math.imul(F0,R0)|0,C=C+Math.imul(d,E0)|0,K=K+Math.imul(d,S0)|0,K=K+Math.imul(a,E0)|0,G=G+Math.imul(a,S0)|0,C=C+Math.imul(r,x0)|0,K=K+Math.imul(r,A0)|0,K=K+Math.imul(Y0,x0)|0,G=G+Math.imul(Y0,A0)|0,C=C+Math.imul(L,v0)|0,K=K+Math.imul(L,M0)|0,K=K+Math.imul(_,v0)|0,G=G+Math.imul(_,M0)|0;var n0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(n0>>>26)|0,n0&=67108863,C=Math.imul(h,P0),K=Math.imul(h,j0),K=K+Math.imul(o,P0)|0,G=Math.imul(o,j0),C=C+Math.imul(O,D0)|0,K=K+Math.imul(O,N0)|0,K=K+Math.imul(B,D0)|0,G=G+Math.imul(B,N0)|0,C=C+Math.imul(U0,T0)|0,K=K+Math.imul(U0,O0)|0,K=K+Math.imul(Z0,T0)|0,G=G+Math.imul(Z0,O0)|0,C=C+Math.imul(H0,L0)|0,K=K+Math.imul(H0,k0)|0,K=K+Math.imul(G0,L0)|0,G=G+Math.imul(G0,k0)|0,C=C+Math.imul(K0,I0)|0,K=K+Math.imul(K0,q0)|0,K=K+Math.imul(t,I0)|0,G=G+Math.imul(t,q0)|0,C=C+Math.imul(q,B0)|0,K=K+Math.imul(q,R0)|0,K=K+Math.imul(m,B0)|0,G=G+Math.imul(m,R0)|0,C=C+Math.imul(X0,E0)|0,K=K+Math.imul(X0,S0)|0,K=K+Math.imul(F0,E0)|0,G=G+Math.imul(F0,S0)|0,C=C+Math.imul(d,x0)|0,K=K+Math.imul(d,A0)|0,K=K+Math.imul(a,x0)|0,G=G+Math.imul(a,A0)|0,C=C+Math.imul(r,v0)|0,K=K+Math.imul(r,M0)|0,K=K+Math.imul(Y0,v0)|0,G=G+Math.imul(Y0,M0)|0;var r0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(r0>>>26)|0,r0&=67108863,C=Math.imul(h,D0),K=Math.imul(h,N0),K=K+Math.imul(o,D0)|0,G=Math.imul(o,N0),C=C+Math.imul(O,T0)|0,K=K+Math.imul(O,O0)|0,K=K+Math.imul(B,T0)|0,G=G+Math.imul(B,O0)|0,C=C+Math.imul(U0,L0)|0,K=K+Math.imul(U0,k0)|0,K=K+Math.imul(Z0,L0)|0,G=G+Math.imul(Z0,k0)|0,C=C+Math.imul(H0,I0)|0,K=K+Math.imul(H0,q0)|0,K=K+Math.imul(G0,I0)|0,G=G+Math.imul(G0,q0)|0,C=C+Math.imul(K0,B0)|0,K=K+Math.imul(K0,R0)|0,K=K+Math.imul(t,B0)|0,G=G+Math.imul(t,R0)|0,C=C+Math.imul(q,E0)|0,K=K+Math.imul(q,S0)|0,K=K+Math.imul(m,E0)|0,G=G+Math.imul(m,S0)|0,C=C+Math.imul(X0,x0)|0,K=K+Math.imul(X0,A0)|0,K=K+Math.imul(F0,x0)|0,G=G+Math.imul(F0,A0)|0,C=C+Math.imul(d,v0)|0,K=K+Math.imul(d,M0)|0,K=K+Math.imul(a,v0)|0,G=G+Math.imul(a,M0)|0;var i0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(i0>>>26)|0,i0&=67108863,C=Math.imul(h,T0),K=Math.imul(h,O0),K=K+Math.imul(o,T0)|0,G=Math.imul(o,O0),C=C+Math.imul(O,L0)|0,K=K+Math.imul(O,k0)|0,K=K+Math.imul(B,L0)|0,G=G+Math.imul(B,k0)|0,C=C+Math.imul(U0,I0)|0,K=K+Math.imul(U0,q0)|0,K=K+Math.imul(Z0,I0)|0,G=G+Math.imul(Z0,q0)|0,C=C+Math.imul(H0,B0)|0,K=K+Math.imul(H0,R0)|0,K=K+Math.imul(G0,B0)|0,G=G+Math.imul(G0,R0)|0,C=C+Math.imul(K0,E0)|0,K=K+Math.imul(K0,S0)|0,K=K+Math.imul(t,E0)|0,G=G+Math.imul(t,S0)|0,C=C+Math.imul(q,x0)|0,K=K+Math.imul(q,A0)|0,K=K+Math.imul(m,x0)|0,G=G+Math.imul(m,A0)|0,C=C+Math.imul(X0,v0)|0,K=K+Math.imul(X0,M0)|0,K=K+Math.imul(F0,v0)|0,G=G+Math.imul(F0,M0)|0;var t0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(t0>>>26)|0,t0&=67108863,C=Math.imul(h,L0),K=Math.imul(h,k0),K=K+Math.imul(o,L0)|0,G=Math.imul(o,k0),C=C+Math.imul(O,I0)|0,K=K+Math.imul(O,q0)|0,K=K+Math.imul(B,I0)|0,G=G+Math.imul(B,q0)|0,C=C+Math.imul(U0,B0)|0,K=K+Math.imul(U0,R0)|0,K=K+Math.imul(Z0,B0)|0,G=G+Math.imul(Z0,R0)|0,C=C+Math.imul(H0,E0)|0,K=K+Math.imul(H0,S0)|0,K=K+Math.imul(G0,E0)|0,G=G+Math.imul(G0,S0)|0,C=C+Math.imul(K0,x0)|0,K=K+Math.imul(K0,A0)|0,K=K+Math.imul(t,x0)|0,G=G+Math.imul(t,A0)|0,C=C+Math.imul(q,v0)|0,K=K+Math.imul(q,M0)|0,K=K+Math.imul(m,v0)|0,G=G+Math.imul(m,M0)|0;var e0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(e0>>>26)|0,e0&=67108863,C=Math.imul(h,I0),K=Math.imul(h,q0),K=K+Math.imul(o,I0)|0,G=Math.imul(o,q0),C=C+Math.imul(O,B0)|0,K=K+Math.imul(O,R0)|0,K=K+Math.imul(B,B0)|0,G=G+Math.imul(B,R0)|0,C=C+Math.imul(U0,E0)|0,K=K+Math.imul(U0,S0)|0,K=K+Math.imul(Z0,E0)|0,G=G+Math.imul(Z0,S0)|0,C=C+Math.imul(H0,x0)|0,K=K+Math.imul(H0,A0)|0,K=K+Math.imul(G0,x0)|0,G=G+Math.imul(G0,A0)|0,C=C+Math.imul(K0,v0)|0,K=K+Math.imul(K0,M0)|0,K=K+Math.imul(t,v0)|0,G=G+Math.imul(t,M0)|0;var X5=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(X5>>>26)|0,X5&=67108863,C=Math.imul(h,B0),K=Math.imul(h,R0),K=K+Math.imul(o,B0)|0,G=Math.imul(o,R0),C=C+Math.imul(O,E0)|0,K=K+Math.imul(O,S0)|0,K=K+Math.imul(B,E0)|0,G=G+Math.imul(B,S0)|0,C=C+Math.imul(U0,x0)|0,K=K+Math.imul(U0,A0)|0,K=K+Math.imul(Z0,x0)|0,G=G+Math.imul(Z0,A0)|0,C=C+Math.imul(H0,v0)|0,K=K+Math.imul(H0,M0)|0,K=K+Math.imul(G0,v0)|0,G=G+Math.imul(G0,M0)|0;var K5=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(K5>>>26)|0,K5&=67108863,C=Math.imul(h,E0),K=Math.imul(h,S0),K=K+Math.imul(o,E0)|0,G=Math.imul(o,S0),C=C+Math.imul(O,x0)|0,K=K+Math.imul(O,A0)|0,K=K+Math.imul(B,x0)|0,G=G+Math.imul(B,A0)|0,C=C+Math.imul(U0,v0)|0,K=K+Math.imul(U0,M0)|0,K=K+Math.imul(Z0,v0)|0,G=G+Math.imul(Z0,M0)|0;var Y5=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(Y5>>>26)|0,Y5&=67108863,C=Math.imul(h,x0),K=Math.imul(h,A0),K=K+Math.imul(o,x0)|0,G=Math.imul(o,A0),C=C+Math.imul(O,v0)|0,K=K+Math.imul(O,M0)|0,K=K+Math.imul(B,v0)|0,G=G+Math.imul(B,M0)|0;var J5=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(J5>>>26)|0,J5&=67108863,C=Math.imul(h,v0),K=Math.imul(h,M0),K=K+Math.imul(o,v0)|0,G=Math.imul(o,M0);var Q5=(Z+C|0)+((K&8191)<<13)|0;return Z=(G+(K>>>13)|0)+(Q5>>>26)|0,Q5&=67108863,W[0]=F5,W[1]=g0,W[2]=m0,W[3]=h0,W[4]=u0,W[5]=o0,W[6]=s0,W[7]=a0,W[8]=f0,W[9]=n0,W[10]=r0,W[11]=i0,W[12]=t0,W[13]=e0,W[14]=X5,W[15]=K5,W[16]=Y5,W[17]=J5,W[18]=Q5,Z!==0&&(W[19]=Z,Q.length++),Q};Math.imul||(I=N);function M(X,Y,Q){Q.negative=Y.negative^X.negative,Q.length=X.length+Y.length;for(var J=0,F=0,W=0;W<Q.length-1;W++){var Z=F;F=0;for(var C=J&67108863,K=Math.min(W,Y.length-1),G=Math.max(0,W-X.length+1);G<=K;G++){var R=W-G,L=X.words[R]|0,_=Y.words[G]|0,s=L*_,r=s&67108863;Z=Z+(s/67108864|0)|0,r=r+C|0,C=r&67108863,Z=Z+(r>>>26)|0,F+=Z>>>26,Z&=67108863}Q.words[W]=C,J=Z,Z=F}return J!==0?Q.words[W]=J:Q.length--,Q.strip()}function x(X,Y,Q){var J=new v;return J.mulp(X,Y,Q)}H.prototype.mulTo=function(X,Y){var Q,J=this.length+X.length;return this.length===10&&X.length===10?Q=I(this,X,Y):J<63?Q=N(this,X,Y):J<1024?Q=M(this,X,Y):Q=x(this,X,Y),Q};function v(X,Y){this.x=X,this.y=Y}v.prototype.makeRBT=function(X){for(var Y=new Array(X),Q=H.prototype._countBits(X)-1,J=0;J<X;J++)Y[J]=this.revBin(J,Q,X);return Y},v.prototype.revBin=function(X,Y,Q){if(X===0||X===Q-1)return X;for(var J=0,F=0;F<Y;F++)J|=(X&1)<<Y-F-1,X>>=1;return J},v.prototype.permute=function(X,Y,Q,J,F,W){for(var Z=0;Z<W;Z++)J[Z]=Y[X[Z]],F[Z]=Q[X[Z]]},v.prototype.transform=function(X,Y,Q,J,F,W){this.permute(W,X,Y,Q,J,F);for(var Z=1;Z<F;Z<<=1)for(var C=Z<<1,K=Math.cos(2*Math.PI/C),G=Math.sin(2*Math.PI/C),R=0;R<F;R+=C)for(var L=K,_=G,s=0;s<Z;s++){var r=Q[R+s],Y0=J[R+s],u=Q[R+s+Z],d=J[R+s+Z],a=L*u-_*d;d=L*d+_*u,u=a,Q[R+s]=r+u,J[R+s]=Y0+d,Q[R+s+Z]=r-u,J[R+s+Z]=Y0-d,s!==C&&(a=K*L-G*_,_=K*_+G*L,L=a)}},v.prototype.guessLen13b=function(X,Y){var Q=Math.max(Y,X)|1,J=Q&1,F=0;for(Q=Q/2|0;Q;Q=Q>>>1)F++;return 1<<F+1+J},v.prototype.conjugate=function(X,Y,Q){if(!(Q<=1))for(var J=0;J<Q/2;J++){var F=X[J];X[J]=X[Q-J-1],X[Q-J-1]=F,F=Y[J],Y[J]=-Y[Q-J-1],Y[Q-J-1]=-F}},v.prototype.normalize13b=function(X,Y){for(var Q=0,J=0;J<Y/2;J++){var F=Math.round(X[2*J+1]/Y)*8192+Math.round(X[2*J]/Y)+Q;X[J]=F&67108863,F<67108864?Q=0:Q=F/67108864|0}return X},v.prototype.convert13b=function(X,Y,Q,J){for(var F=0,W=0;W<Y;W++)F=F+(X[W]|0),Q[2*W]=F&8191,F=F>>>13,Q[2*W+1]=F&8191,F=F>>>13;for(W=2*Y;W<J;++W)Q[W]=0;j(F===0),j((F&-8192)===0)},v.prototype.stub=function(X){for(var Y=new Array(X),Q=0;Q<X;Q++)Y[Q]=0;return Y},v.prototype.mulp=function(X,Y,Q){var J=2*this.guessLen13b(X.length,Y.length),F=this.makeRBT(J),W=this.stub(J),Z=new Array(J),C=new Array(J),K=new Array(J),G=new Array(J),R=new Array(J),L=new Array(J),_=Q.words;_.length=J,this.convert13b(X.words,X.length,Z,J),this.convert13b(Y.words,Y.length,G,J),this.transform(Z,W,C,K,J,F),this.transform(G,W,R,L,J,F);for(var s=0;s<J;s++){var r=C[s]*R[s]-K[s]*L[s];K[s]=C[s]*L[s]+K[s]*R[s],C[s]=r}return this.conjugate(C,K,J),this.transform(C,K,_,W,J,F),this.conjugate(_,W,J),this.normalize13b(_,J),Q.negative=X.negative^Y.negative,Q.length=X.length+Y.length,Q.strip()},H.prototype.mul=function(X){var Y=new H(null);return Y.words=new Array(this.length+X.length),this.mulTo(X,Y)},H.prototype.mulf=function(X){var Y=new H(null);return Y.words=new Array(this.length+X.length),x(this,X,Y)},H.prototype.imul=function(X){return this.clone().mulTo(X,this)},H.prototype.imuln=function(X){j(typeof X=="number"),j(X<67108864);for(var Y=0,Q=0;Q<this.length;Q++){var J=(this.words[Q]|0)*X,F=(J&67108863)+(Y&67108863);Y>>=26,Y+=J/67108864|0,Y+=F>>>26,this.words[Q]=F&67108863}return Y!==0&&(this.words[Q]=Y,this.length++),this},H.prototype.muln=function(X){return this.clone().imuln(X)},H.prototype.sqr=function(){return this.mul(this)},H.prototype.isqr=function(){return this.imul(this.clone())},H.prototype.pow=function(X){var Y=U(X);if(Y.length===0)return new H(1);for(var Q=this,J=0;J<Y.length&&Y[J]===0;J++,Q=Q.sqr());if(++J<Y.length)for(var F=Q.sqr();J<Y.length;J++,F=F.sqr())Y[J]!==0&&(Q=Q.mul(F));return Q},H.prototype.iushln=function(X){j(typeof X=="number"&&X>=0);var Y=X%26,Q=(X-Y)/26,J=67108863>>>26-Y<<26-Y,F;if(Y!==0){var W=0;for(F=0;F<this.length;F++){var Z=this.words[F]&J,C=(this.words[F]|0)-Z<<Y;this.words[F]=C|W,W=Z>>>26-Y}W&&(this.words[F]=W,this.length++)}if(Q!==0){for(F=this.length-1;F>=0;F--)this.words[F+Q]=this.words[F];for(F=0;F<Q;F++)this.words[F]=0;this.length+=Q}return this.strip()},H.prototype.ishln=function(X){return j(this.negative===0),this.iushln(X)},H.prototype.iushrn=function(X,Y,Q){j(typeof X=="number"&&X>=0);var J;Y?J=(Y-Y%26)/26:J=0;var F=X%26,W=Math.min((X-F)/26,this.length),Z=67108863^67108863>>>F<<F,C=Q;if(J-=W,J=Math.max(0,J),C){for(var K=0;K<W;K++)C.words[K]=this.words[K];C.length=W}if(W!==0)if(this.length>W)for(this.length-=W,K=0;K<this.length;K++)this.words[K]=this.words[K+W];else this.words[0]=0,this.length=1;var G=0;for(K=this.length-1;K>=0&&(G!==0||K>=J);K--){var R=this.words[K]|0;this.words[K]=G<<26-F|R>>>F,G=R&Z}return C&&G!==0&&(C.words[C.length++]=G),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},H.prototype.ishrn=function(X,Y,Q){return j(this.negative===0),this.iushrn(X,Y,Q)},H.prototype.shln=function(X){return this.clone().ishln(X)},H.prototype.ushln=function(X){return this.clone().iushln(X)},H.prototype.shrn=function(X){return this.clone().ishrn(X)},H.prototype.ushrn=function(X){return this.clone().iushrn(X)},H.prototype.testn=function(X){j(typeof X=="number"&&X>=0);var Y=X%26,Q=(X-Y)/26,J=1<<Y;if(this.length<=Q)return!1;var F=this.words[Q];return!!(F&J)},H.prototype.imaskn=function(X){j(typeof X=="number"&&X>=0);var Y=X%26,Q=(X-Y)/26;if(j(this.negative===0,"imaskn works only with positive numbers"),this.length<=Q)return this;if(Y!==0&&Q++,this.length=Math.min(Q,this.length),Y!==0){var J=67108863^67108863>>>Y<<Y;this.words[this.length-1]&=J}return this.strip()},H.prototype.maskn=function(X){return this.clone().imaskn(X)},H.prototype.iaddn=function(X){return j(typeof X=="number"),j(X<67108864),X<0?this.isubn(-X):this.negative!==0?this.length===1&&(this.words[0]|0)<X?(this.words[0]=X-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(X),this.negative=1,this):this._iaddn(X)},H.prototype._iaddn=function(X){this.words[0]+=X;for(var Y=0;Y<this.length&&this.words[Y]>=67108864;Y++)this.words[Y]-=67108864,Y===this.length-1?this.words[Y+1]=1:this.words[Y+1]++;return this.length=Math.max(this.length,Y+1),this},H.prototype.isubn=function(X){if(j(typeof X=="number"),j(X<67108864),X<0)return this.iaddn(-X);if(this.negative!==0)return this.negative=0,this.iaddn(X),this.negative=1,this;if(this.words[0]-=X,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Y=0;Y<this.length&&this.words[Y]<0;Y++)this.words[Y]+=67108864,this.words[Y+1]-=1;return this.strip()},H.prototype.addn=function(X){return this.clone().iaddn(X)},H.prototype.subn=function(X){return this.clone().isubn(X)},H.prototype.iabs=function(){return this.negative=0,this},H.prototype.abs=function(){return this.clone().iabs()},H.prototype._ishlnsubmul=function(X,Y,Q){var J=X.length+Q,F;this._expand(J);var W,Z=0;for(F=0;F<X.length;F++){W=(this.words[F+Q]|0)+Z;var C=(X.words[F]|0)*Y;W-=C&67108863,Z=(W>>26)-(C/67108864|0),this.words[F+Q]=W&67108863}for(;F<this.length-Q;F++)W=(this.words[F+Q]|0)+Z,Z=W>>26,this.words[F+Q]=W&67108863;if(Z===0)return this.strip();for(j(Z===-1),Z=0,F=0;F<this.length;F++)W=-(this.words[F]|0)+Z,Z=W>>26,this.words[F]=W&67108863;return this.negative=1,this.strip()},H.prototype._wordDiv=function(X,Y){var Q=this.length-X.length,J=this.clone(),F=X,W=F.words[F.length-1]|0,Z=this._countBits(W);Q=26-Z,Q!==0&&(F=F.ushln(Q),J.iushln(Q),W=F.words[F.length-1]|0);var C=J.length-F.length,K;if(Y!=="mod"){K=new H(null),K.length=C+1,K.words=new Array(K.length);for(var G=0;G<K.length;G++)K.words[G]=0}var R=J.clone()._ishlnsubmul(F,1,C);R.negative===0&&(J=R,K&&(K.words[C]=1));for(var L=C-1;L>=0;L--){var _=(J.words[F.length+L]|0)*67108864+(J.words[F.length+L-1]|0);for(_=Math.min(_/W|0,67108863),J._ishlnsubmul(F,_,L);J.negative!==0;)_--,J.negative=0,J._ishlnsubmul(F,1,L),J.isZero()||(J.negative^=1);K&&(K.words[L]=_)}return K&&K.strip(),J.strip(),Y!=="div"&&Q!==0&&J.iushrn(Q),{div:K||null,mod:J}},H.prototype.divmod=function(X,Y,Q){if(j(!X.isZero()),this.isZero())return{div:new H(0),mod:new H(0)};var J,F,W;return this.negative!==0&&X.negative===0?(W=this.neg().divmod(X,Y),Y!=="mod"&&(J=W.div.neg()),Y!=="div"&&(F=W.mod.neg(),Q&&F.negative!==0&&F.iadd(X)),{div:J,mod:F}):this.negative===0&&X.negative!==0?(W=this.divmod(X.neg(),Y),Y!=="mod"&&(J=W.div.neg()),{div:J,mod:W.mod}):(this.negative&X.negative)!==0?(W=this.neg().divmod(X.neg(),Y),Y!=="div"&&(F=W.mod.neg(),Q&&F.negative!==0&&F.isub(X)),{div:W.div,mod:F}):X.length>this.length||this.cmp(X)<0?{div:new H(0),mod:this}:X.length===1?Y==="div"?{div:this.divn(X.words[0]),mod:null}:Y==="mod"?{div:null,mod:new H(this.modn(X.words[0]))}:{div:this.divn(X.words[0]),mod:new H(this.modn(X.words[0]))}:this._wordDiv(X,Y)},H.prototype.div=function(X){return this.divmod(X,"div",!1).div},H.prototype.mod=function(X){return this.divmod(X,"mod",!1).mod},H.prototype.umod=function(X){return this.divmod(X,"mod",!0).mod},H.prototype.divRound=function(X){var Y=this.divmod(X);if(Y.mod.isZero())return Y.div;var Q=Y.div.negative!==0?Y.mod.isub(X):Y.mod,J=X.ushrn(1),F=X.andln(1),W=Q.cmp(J);return W<0||F===1&&W===0?Y.div:Y.div.negative!==0?Y.div.isubn(1):Y.div.iaddn(1)},H.prototype.modn=function(X){j(X<=67108863);for(var Y=67108864%X,Q=0,J=this.length-1;J>=0;J--)Q=(Y*Q+(this.words[J]|0))%X;return Q},H.prototype.idivn=function(X){j(X<=67108863);for(var Y=0,Q=this.length-1;Q>=0;Q--){var J=(this.words[Q]|0)+Y*67108864;this.words[Q]=J/X|0,Y=J%X}return this.strip()},H.prototype.divn=function(X){return this.clone().idivn(X)},H.prototype.egcd=function(X){j(X.negative===0),j(!X.isZero());var Y=this,Q=X.clone();Y.negative!==0?Y=Y.umod(X):Y=Y.clone();for(var J=new H(1),F=new H(0),W=new H(0),Z=new H(1),C=0;Y.isEven()&&Q.isEven();)Y.iushrn(1),Q.iushrn(1),++C;for(var K=Q.clone(),G=Y.clone();!Y.isZero();){for(var R=0,L=1;(Y.words[0]&L)===0&&R<26;++R,L<<=1);if(R>0)for(Y.iushrn(R);R-- >0;)(J.isOdd()||F.isOdd())&&(J.iadd(K),F.isub(G)),J.iushrn(1),F.iushrn(1);for(var _=0,s=1;(Q.words[0]&s)===0&&_<26;++_,s<<=1);if(_>0)for(Q.iushrn(_);_-- >0;)(W.isOdd()||Z.isOdd())&&(W.iadd(K),Z.isub(G)),W.iushrn(1),Z.iushrn(1);Y.cmp(Q)>=0?(Y.isub(Q),J.isub(W),F.isub(Z)):(Q.isub(Y),W.isub(J),Z.isub(F))}return{a:W,b:Z,gcd:Q.iushln(C)}},H.prototype._invmp=function(X){j(X.negative===0),j(!X.isZero());var Y=this,Q=X.clone();Y.negative!==0?Y=Y.umod(X):Y=Y.clone();for(var J=new H(1),F=new H(0),W=Q.clone();Y.cmpn(1)>0&&Q.cmpn(1)>0;){for(var Z=0,C=1;(Y.words[0]&C)===0&&Z<26;++Z,C<<=1);if(Z>0)for(Y.iushrn(Z);Z-- >0;)J.isOdd()&&J.iadd(W),J.iushrn(1);for(var K=0,G=1;(Q.words[0]&G)===0&&K<26;++K,G<<=1);if(K>0)for(Q.iushrn(K);K-- >0;)F.isOdd()&&F.iadd(W),F.iushrn(1);Y.cmp(Q)>=0?(Y.isub(Q),J.isub(F)):(Q.isub(Y),F.isub(J))}var R;return Y.cmpn(1)===0?R=J:R=F,R.cmpn(0)<0&&R.iadd(X),R},H.prototype.gcd=function(X){if(this.isZero())return X.abs();if(X.isZero())return this.abs();var Y=this.clone(),Q=X.clone();Y.negative=0,Q.negative=0;for(var J=0;Y.isEven()&&Q.isEven();J++)Y.iushrn(1),Q.iushrn(1);do{for(;Y.isEven();)Y.iushrn(1);for(;Q.isEven();)Q.iushrn(1);var F=Y.cmp(Q);if(F<0){var W=Y;Y=Q,Q=W}else if(F===0||Q.cmpn(1)===0)break;Y.isub(Q)}while(!0);return Q.iushln(J)},H.prototype.invm=function(X){return this.egcd(X).a.umod(X)},H.prototype.isEven=function(){return(this.words[0]&1)===0},H.prototype.isOdd=function(){return(this.words[0]&1)===1},H.prototype.andln=function(X){return this.words[0]&X},H.prototype.bincn=function(X){j(typeof X=="number");var Y=X%26,Q=(X-Y)/26,J=1<<Y;if(this.length<=Q)return this._expand(Q+1),this.words[Q]|=J,this;for(var F=J,W=Q;F!==0&&W<this.length;W++){var Z=this.words[W]|0;Z+=F,F=Z>>>26,Z&=67108863,this.words[W]=Z}return F!==0&&(this.words[W]=F,this.length++),this},H.prototype.isZero=function(){return this.length===1&&this.words[0]===0},H.prototype.cmpn=function(X){var Y=X<0;if(this.negative!==0&&!Y)return-1;if(this.negative===0&&Y)return 1;this.strip();var Q;if(this.length>1)Q=1;else{Y&&(X=-X),j(X<=67108863,"Number is too big");var J=this.words[0]|0;Q=J===X?0:J<X?-1:1}return this.negative!==0?-Q|0:Q},H.prototype.cmp=function(X){if(this.negative!==0&&X.negative===0)return-1;if(this.negative===0&&X.negative!==0)return 1;var Y=this.ucmp(X);return this.negative!==0?-Y|0:Y},H.prototype.ucmp=function(X){if(this.length>X.length)return 1;if(this.length<X.length)return-1;for(var Y=0,Q=this.length-1;Q>=0;Q--){var J=this.words[Q]|0,F=X.words[Q]|0;if(J!==F){J<F?Y=-1:J>F&&(Y=1);break}}return Y},H.prototype.gtn=function(X){return this.cmpn(X)===1},H.prototype.gt=function(X){return this.cmp(X)===1},H.prototype.gten=function(X){return this.cmpn(X)>=0},H.prototype.gte=function(X){return this.cmp(X)>=0},H.prototype.ltn=function(X){return this.cmpn(X)===-1},H.prototype.lt=function(X){return this.cmp(X)===-1},H.prototype.lten=function(X){return this.cmpn(X)<=0},H.prototype.lte=function(X){return this.cmp(X)<=0},H.prototype.eqn=function(X){return this.cmpn(X)===0},H.prototype.eq=function(X){return this.cmp(X)===0},H.red=function(X){return new f(X)},H.prototype.toRed=function(X){return j(!this.red,"Already a number in reduction context"),j(this.negative===0,"red works only with positives"),X.convertTo(this)._forceRed(X)},H.prototype.fromRed=function(){return j(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},H.prototype._forceRed=function(X){return this.red=X,this},H.prototype.forceRed=function(X){return j(!this.red,"Already a number in reduction context"),this._forceRed(X)},H.prototype.redAdd=function(X){return j(this.red,"redAdd works only with red numbers"),this.red.add(this,X)},H.prototype.redIAdd=function(X){return j(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,X)},H.prototype.redSub=function(X){return j(this.red,"redSub works only with red numbers"),this.red.sub(this,X)},H.prototype.redISub=function(X){return j(this.red,"redISub works only with red numbers"),this.red.isub(this,X)},H.prototype.redShl=function(X){return j(this.red,"redShl works only with red numbers"),this.red.shl(this,X)},H.prototype.redMul=function(X){return j(this.red,"redMul works only with red numbers"),this.red._verify2(this,X),this.red.mul(this,X)},H.prototype.redIMul=function(X){return j(this.red,"redMul works only with red numbers"),this.red._verify2(this,X),this.red.imul(this,X)},H.prototype.redSqr=function(){return j(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},H.prototype.redISqr=function(){return j(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},H.prototype.redSqrt=function(){return j(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},H.prototype.redInvm=function(){return j(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},H.prototype.redNeg=function(){return j(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},H.prototype.redPow=function(X){return j(this.red&&!X.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,X)};var y={k256:null,p224:null,p192:null,p25519:null};function p(X,Y){this.name=X,this.p=new H(Y,16),this.n=this.p.bitLength(),this.k=new H(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}p.prototype._tmp=function(){var X=new H(null);return X.words=new Array(Math.ceil(this.n/13)),X},p.prototype.ireduce=function(X){var Y=X,Q;do this.split(Y,this.tmp),Y=this.imulK(Y),Y=Y.iadd(this.tmp),Q=Y.bitLength();while(Q>this.n);var J=Q<this.n?-1:Y.ucmp(this.p);return J===0?(Y.words[0]=0,Y.length=1):J>0?Y.isub(this.p):Y.strip!==void 0?Y.strip():Y._strip(),Y},p.prototype.split=function(X,Y){X.iushrn(this.n,0,Y)},p.prototype.imulK=function(X){return X.imul(this.k)};function c(){p.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}S(c,p),c.prototype.split=function(X,Y){for(var Q=4194303,J=Math.min(X.length,9),F=0;F<J;F++)Y.words[F]=X.words[F];if(Y.length=J,X.length<=9){X.words[0]=0,X.length=1;return}var W=X.words[9];for(Y.words[Y.length++]=W&Q,F=10;F<X.length;F++){var Z=X.words[F]|0;X.words[F-10]=(Z&Q)<<4|W>>>22,W=Z}W>>>=22,X.words[F-10]=W,W===0&&X.length>10?X.length-=10:X.length-=9},c.prototype.imulK=function(X){X.words[X.length]=0,X.words[X.length+1]=0,X.length+=2;for(var Y=0,Q=0;Q<X.length;Q++){var J=X.words[Q]|0;Y+=J*977,X.words[Q]=Y&67108863,Y=J*64+(Y/67108864|0)}return X.words[X.length-1]===0&&(X.length--,X.words[X.length-1]===0&&X.length--),X};function n(){p.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}S(n,p);function i(){p.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}S(i,p);function Q0(){p.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}S(Q0,p),Q0.prototype.imulK=function(X){for(var Y=0,Q=0;Q<X.length;Q++){var J=(X.words[Q]|0)*19+Y,F=J&67108863;J>>>=26,X.words[Q]=F,Y=J}return Y!==0&&(X.words[X.length++]=Y),X},H._prime=function(X){if(y[X])return y[X];var Y;if(X==="k256")Y=new c;else if(X==="p224")Y=new n;else if(X==="p192")Y=new i;else if(X==="p25519")Y=new Q0;else throw new Error("Unknown prime "+X);return y[X]=Y,Y};function f(X){if(typeof X=="string"){var Y=H._prime(X);this.m=Y.p,this.prime=Y}else j(X.gtn(1),"modulus must be greater than 1"),this.m=X,this.prime=null}f.prototype._verify1=function(X){j(X.negative===0,"red works only with positives"),j(X.red,"red works only with red numbers")},f.prototype._verify2=function(X,Y){j((X.negative|Y.negative)===0,"red works only with positives"),j(X.red&&X.red===Y.red,"red works only with red numbers")},f.prototype.imod=function(X){return this.prime?this.prime.ireduce(X)._forceRed(this):X.umod(this.m)._forceRed(this)},f.prototype.neg=function(X){return X.isZero()?X.clone():this.m.sub(X)._forceRed(this)},f.prototype.add=function(X,Y){this._verify2(X,Y);var Q=X.add(Y);return Q.cmp(this.m)>=0&&Q.isub(this.m),Q._forceRed(this)},f.prototype.iadd=function(X,Y){this._verify2(X,Y);var Q=X.iadd(Y);return Q.cmp(this.m)>=0&&Q.isub(this.m),Q},f.prototype.sub=function(X,Y){this._verify2(X,Y);var Q=X.sub(Y);return Q.cmpn(0)<0&&Q.iadd(this.m),Q._forceRed(this)},f.prototype.isub=function(X,Y){this._verify2(X,Y);var Q=X.isub(Y);return Q.cmpn(0)<0&&Q.iadd(this.m),Q},f.prototype.shl=function(X,Y){return this._verify1(X),this.imod(X.ushln(Y))},f.prototype.imul=function(X,Y){return this._verify2(X,Y),this.imod(X.imul(Y))},f.prototype.mul=function(X,Y){return this._verify2(X,Y),this.imod(X.mul(Y))},f.prototype.isqr=function(X){return this.imul(X,X.clone())},f.prototype.sqr=function(X){return this.mul(X,X)},f.prototype.sqrt=function(X){if(X.isZero())return X.clone();var Y=this.m.andln(3);if(j(Y%2===1),Y===3){var Q=this.m.add(new H(1)).iushrn(2);return this.pow(X,Q)}for(var J=this.m.subn(1),F=0;!J.isZero()&&J.andln(1)===0;)F++,J.iushrn(1);j(!J.isZero());var W=new H(1).toRed(this),Z=W.redNeg(),C=this.m.subn(1).iushrn(1),K=this.m.bitLength();for(K=new H(2*K*K).toRed(this);this.pow(K,C).cmp(Z)!==0;)K.redIAdd(Z);for(var G=this.pow(K,J),R=this.pow(X,J.addn(1).iushrn(1)),L=this.pow(X,J),_=F;L.cmp(W)!==0;){for(var s=L,r=0;s.cmp(W)!==0;r++)s=s.redSqr();j(r<_);var Y0=this.pow(G,new H(1).iushln(_-r-1));R=R.redMul(Y0),G=Y0.redSqr(),L=L.redMul(G),_=r}return R},f.prototype.invm=function(X){var Y=X._invmp(this.m);return Y.negative!==0?(Y.negative=0,this.imod(Y).redNeg()):this.imod(Y)},f.prototype.pow=function(X,Y){if(Y.isZero())return new H(1).toRed(this);if(Y.cmpn(1)===0)return X.clone();var Q=4,J=new Array(1<<Q);J[0]=new H(1).toRed(this),J[1]=X;for(var F=2;F<J.length;F++)J[F]=this.mul(J[F-1],X);var W=J[0],Z=0,C=0,K=Y.bitLength()%26;for(K===0&&(K=26),F=Y.length-1;F>=0;F--){for(var G=Y.words[F],R=K-1;R>=0;R--){var L=G>>R&1;if(W!==J[0]&&(W=this.sqr(W)),L===0&&Z===0){C=0;continue}Z<<=1,Z|=L,C++,!(C!==Q&&(F!==0||R!==0))&&(W=this.mul(W,J[Z]),C=0,Z=0)}K=26}return W},f.prototype.convertTo=function(X){var Y=X.umod(this.m);return Y===X?Y.clone():Y},f.prototype.convertFrom=function(X){var Y=X.clone();return Y.red=null,Y},H.mont=function(X){return new W0(X)};function W0(X){f.call(this,X),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new H(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)}S(W0,f),W0.prototype.convertTo=function(X){return this.imod(X.ushln(this.shift))},W0.prototype.convertFrom=function(X){var Y=this.imod(X.mul(this.rinv));return Y.red=null,Y},W0.prototype.imul=function(X,Y){if(X.isZero()||Y.isZero())return X.words[0]=0,X.length=1,X;var Q=X.imul(Y),J=Q.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),F=Q.isub(J).iushrn(this.shift),W=F;return F.cmp(this.m)>=0?W=F.isub(this.m):F.cmpn(0)<0&&(W=F.iadd(this.m)),W._forceRed(this)},W0.prototype.mul=function(X,Y){if(X.isZero()||Y.isZero())return new H(0)._forceRed(this);var Q=X.mul(Y),J=Q.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),F=Q.isub(J).iushrn(this.shift),W=F;return F.cmp(this.m)>=0?W=F.isub(this.m):F.cmpn(0)<0&&(W=F.iadd(this.m)),W._forceRed(this)},W0.prototype.invm=function(X){var Y=this.imod(X._invmp(this.m).mul(this.r2));return Y._forceRed(this)}})(typeof g>"u"||g,l)}),s7=C0(()=>{}),B9=C0((l,g)=>{var E;g.exports=function(S){return E||(E=new A(null)),E.generate(S)};function A(S){this.rand=S}if(g.exports.Rand=A,A.prototype.generate=function(S){return this._rand(S)},A.prototype._rand=function(S){if(this.rand.getBytes)return this.rand.getBytes(S);for(var H=new Uint8Array(S),P=0;P<H.length;P++)H[P]=this.rand.getByte();return H},typeof self=="object")self.crypto&&self.crypto.getRandomValues?A.prototype._rand=function(S){var H=new Uint8Array(S);return self.crypto.getRandomValues(H),H}:self.msCrypto&&self.msCrypto.getRandomValues?A.prototype._rand=function(S){var H=new Uint8Array(S);return self.msCrypto.getRandomValues(H),H}:typeof window=="object"&&(A.prototype._rand=function(){throw new Error("Not implemented yet")});else try{if(j=s7(),typeof j.randomBytes!="function")throw new Error("Not supported");A.prototype._rand=function(S){return j.randomBytes(S)}}catch{}var j}),L6=C0((l,g)=>{var E=o7(),A=B9();function j(S){this.rand=S||new A.Rand}g.exports=j,j.create=function(S){return new j(S)},j.prototype._randbelow=function(S){var H=S.bitLength(),P=Math.ceil(H/8);do var k=new E(this.rand.generate(P));while(k.cmp(S)>=0);return k},j.prototype._randrange=function(S,H){var P=H.sub(S);return S.add(this._randbelow(P))},j.prototype.test=function(S,H,P){var k=S.bitLength(),z=E.mont(S),V=new E(1).toRed(z);H||(H=Math.max(1,k/48|0));for(var $=S.subn(1),T=0;!$.testn(T);T++);for(var D=S.shrn(T),U=$.toRed(z),N=!0;H>0;H--){var I=this._randrange(new E(2),$);P&&P(I);var M=I.toRed(z).redPow(D);if(!(M.cmp(V)===0||M.cmp(U)===0)){for(var x=1;x<T;x++){if(M=M.redSqr(),M.cmp(V)===0)return!1;if(M.cmp(U)===0)break}if(x===T)return!1}}return N},j.prototype.getDivisor=function(S,H){var P=S.bitLength(),k=E.mont(S),z=new E(1).toRed(k);H||(H=Math.max(1,P/48|0));for(var V=S.subn(1),$=0;!V.testn($);$++);for(var T=S.shrn($),D=V.toRed(k);H>0;H--){var U=this._randrange(new E(2),V),N=S.gcd(U);if(N.cmpn(1)!==0)return N;var I=U.toRed(k).redPow(T);if(!(I.cmp(z)===0||I.cmp(D)===0)){for(var M=1;M<$;M++){if(I=I.redSqr(),I.cmp(z)===0)return I.fromRed().subn(1).gcd(S);if(I.cmp(D)===0)break}if(M===$)return I=I.redSqr(),I.fromRed().subn(1).gcd(S)}}return!1}}),k6=C0((l,g)=>{var E=g5();g.exports=c,c.simpleSieve=y,c.fermatTest=p;var A=N6(),j=new A(24),S=L6(),H=new S,P=new A(1),k=new A(2),z=new A(5),V=new A(16),$=new A(8),T=new A(10),D=new A(3),U=new A(7),N=new A(11),I=new A(4),M=new A(12),x=null;function v(){if(x!==null)return x;var n=1048576,i=[];i[0]=2;for(var Q0=1,f=3;f<n;f+=2){for(var W0=Math.ceil(Math.sqrt(f)),X=0;X<Q0&&i[X]<=W0&&f%i[X]!==0;X++);Q0!==X&&i[X]<=W0||(i[Q0++]=f)}return x=i,i}function y(n){for(var i=v(),Q0=0;Q0<i.length;Q0++)if(n.modn(i[Q0])===0)return n.cmpn(i[Q0])===0;return!0}function p(n){var i=A.mont(n);return k.toRed(i).redPow(n.subn(1)).fromRed().cmpn(1)===0}function c(n,i){if(n<16)return i===2||i===5?new A([140,123]):new A([140,39]);i=new A(i);for(var Q0,f;;){for(Q0=new A(E(Math.ceil(n/8)));Q0.bitLength()>n;)Q0.ishrn(1);if(Q0.isEven()&&Q0.iadd(P),Q0.testn(1)||Q0.iadd(k),i.cmp(k)){if(!i.cmp(z))for(;Q0.mod(T).cmp(D);)Q0.iadd(I)}else for(;Q0.mod(j).cmp(N);)Q0.iadd(I);if(f=Q0.shrn(1),y(f)&&y(Q0)&&p(f)&&p(Q0)&&H.test(f)&&H.test(Q0))return Q0}}}),a7=C0((l,g)=>{g.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"}}}),f7=C0((l,g)=>{var E=N6(),A=L6(),j=new A,S=new E(24),H=new E(11),P=new E(10),k=new E(3),z=new E(7),V=k6(),$=g5();g.exports=I;function T(x,v){return v=v||"utf8",Buffer.isBuffer(x)||(x=new Buffer(x,v)),this._pub=new E(x),this}function D(x,v){return v=v||"utf8",Buffer.isBuffer(x)||(x=new Buffer(x,v)),this._priv=new E(x),this}var U={};function N(x,v){var y=v.toString("hex"),p=[y,x.toString(16)].join("_");if(p in U)return U[p];var c=0;if(x.isEven()||!V.simpleSieve||!V.fermatTest(x)||!j.test(x))return c+=1,y==="02"||y==="05"?c+=8:c+=4,U[p]=c,c;j.test(x.shrn(1))||(c+=2);var n;switch(y){case"02":x.mod(S).cmp(H)&&(c+=8);break;case"05":n=x.mod(P),n.cmp(k)&&n.cmp(z)&&(c+=8);break;default:c+=4}return U[p]=c,c}function I(x,v,y){this.setGenerator(v),this.__prime=new E(x),this._prime=E.mont(this.__prime),this._primeLen=x.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,y?(this.setPublicKey=T,this.setPrivateKey=D):this._primeCode=8}Object.defineProperty(I.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=N(this.__prime,this.__gen)),this._primeCode}}),I.prototype.generateKeys=function(){return this._priv||(this._priv=new E($(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},I.prototype.computeSecret=function(x){x=new E(x),x=x.toRed(this._prime);var v=x.redPow(this._priv).fromRed(),y=new Buffer(v.toArray()),p=this.getPrime();if(y.length<p.length){var c=new Buffer(p.length-y.length);c.fill(0),y=Buffer.concat([c,y])}return y},I.prototype.getPublicKey=function(x){return M(this._pub,x)},I.prototype.getPrivateKey=function(x){return M(this._priv,x)},I.prototype.getPrime=function(x){return M(this.__prime,x)},I.prototype.getGenerator=function(x){return M(this._gen,x)},I.prototype.setGenerator=function(x,v){return v=v||"utf8",Buffer.isBuffer(x)||(x=new Buffer(x,v)),this.__gen=x,this._gen=new E(x),this};function M(x,v){var y=new Buffer(x.toArray());return v?y.toString(v):y}}),n7=C0((l)=>{var g=k6(),E=a7(),A=f7();function j(P){var k=new Buffer(E[P].prime,"hex"),z=new Buffer(E[P].gen,"hex");return new A(k,z)}var S={binary:!0,hex:!0,base64:!0};function H(P,k,z,V){return Buffer.isBuffer(k)||S[k]===void 0?H(P,"binary",k,z):(k=k||"binary",V=V||"binary",z=z||new Buffer([2]),Buffer.isBuffer(z)||(z=new Buffer(z,V)),typeof P=="number"?new A(g(P,z),z,!0):(Buffer.isBuffer(P)||(P=new Buffer(P,k)),new A(P,z,!0)))}l.DiffieHellmanGroup=l.createDiffieHellmanGroup=l.getDiffieHellman=j,l.createDiffieHellman=l.DiffieHellman=H}),I6=C0((l,g)=>{g.exports=S5().EventEmitter}),r7=C0((l,g)=>{function E(U,N){var I=Object.keys(U);if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(U);N&&(M=M.filter(function(x){return Object.getOwnPropertyDescriptor(U,x).enumerable})),I.push.apply(I,M)}return I}function A(U){for(var N=1;N<arguments.length;N++){var I=arguments[N]!=null?arguments[N]:{};N%2?E(Object(I),!0).forEach(function(M){j(U,M,I[M])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(I)):E(Object(I)).forEach(function(M){Object.defineProperty(U,M,Object.getOwnPropertyDescriptor(I,M))})}return U}function j(U,N,I){return N in U?Object.defineProperty(U,N,{value:I,enumerable:!0,configurable:!0,writable:!0}):U[N]=I,U}function S(U,N){if(!(U instanceof N))throw new TypeError("Cannot call a class as a function")}function H(U,N){for(var I=0;I<N.length;I++){var M=N[I];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(U,M.key,M)}}function P(U,N,I){return N&&H(U.prototype,N),I&&H(U,I),U}var k=U5(),z=k.Buffer,V=t5(),$=V.inspect,T=$&&$.custom||"inspect";function D(U,N,I){z.prototype.copy.call(U,N,I)}g.exports=function(){function U(){S(this,U),this.head=null,this.tail=null,this.length=0}return P(U,[{key:"push",value:function(N){var I={data:N,next:null};this.length>0?this.tail.next=I:this.head=I,this.tail=I,++this.length}},{key:"unshift",value:function(N){var I={data:N,next:this.head};this.length===0&&(this.tail=I),this.head=I,++this.length}},{key:"shift",value:function(){if(this.length!==0){var N=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,N}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(N){if(this.length===0)return"";for(var I=this.head,M=""+I.data;I=I.next;)M+=N+I.data;return M}},{key:"concat",value:function(N){if(this.length===0)return z.alloc(0);for(var I=z.allocUnsafe(N>>>0),M=this.head,x=0;M;)D(M.data,I,x),x+=M.data.length,M=M.next;return I}},{key:"consume",value:function(N,I){var M;return N<this.head.data.length?(M=this.head.data.slice(0,N),this.head.data=this.head.data.slice(N)):N===this.head.data.length?M=this.shift():M=I?this._getString(N):this._getBuffer(N),M}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(N){var I=this.head,M=1,x=I.data;for(N-=x.length;I=I.next;){var v=I.data,y=N>v.length?v.length:N;if(y===v.length?x+=v:x+=v.slice(0,N),N-=y,N===0){y===v.length?(++M,I.next?this.head=I.next:this.head=this.tail=null):(this.head=I,I.data=v.slice(y));break}++M}return this.length-=M,x}},{key:"_getBuffer",value:function(N){var I=z.allocUnsafe(N),M=this.head,x=1;for(M.data.copy(I),N-=M.data.length;M=M.next;){var v=M.data,y=N>v.length?v.length:N;if(v.copy(I,I.length-N,0,y),N-=y,N===0){y===v.length?(++x,M.next?this.head=M.next:this.head=this.tail=null):(this.head=M,M.data=v.slice(y));break}++x}return this.length-=x,I}},{key:T,value:function(N,I){return $(this,A({},I,{depth:0,customInspect:!1}))}}]),U}()}),q6=C0((l,g)=>{function E(k,z){var V=this,$=this._readableState&&this._readableState.destroyed,T=this._writableState&&this._writableState.destroyed;return $||T?(z?z(k):k&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(H,this,k)):process.nextTick(H,this,k)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(k||null,function(D){!z&&D?V._writableState?V._writableState.errorEmitted?process.nextTick(j,V):(V._writableState.errorEmitted=!0,process.nextTick(A,V,D)):process.nextTick(A,V,D):z?(process.nextTick(j,V),z(D)):process.nextTick(j,V)}),this)}function A(k,z){H(k,z),j(k)}function j(k){k._writableState&&!k._writableState.emitClose||k._readableState&&!k._readableState.emitClose||k.emit("close")}function S(){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 H(k,z){k.emit("error",z)}function P(k,z){var{_readableState:V,_writableState:$}=k;V&&V.autoDestroy||$&&$.autoDestroy?k.destroy(z):k.emit("error",z)}g.exports={destroy:E,undestroy:S,errorOrDestroy:P}}),c5=C0((l,g)=>{function E(z,V){z.prototype=Object.create(V.prototype),z.prototype.constructor=z,z.__proto__=V}var A={};function j(z,V,$){$||($=Error);function T(U,N,I){return typeof V=="string"?V:V(U,N,I)}var D=function(U){E(N,U);function N(I,M,x){return U.call(this,T(I,M,x))||this}return N}($);D.prototype.name=$.name,D.prototype.code=z,A[z]=D}function S(z,V){if(Array.isArray(z)){var $=z.length;return z=z.map(function(T){return String(T)}),$>2?"one of ".concat(V," ").concat(z.slice(0,$-1).join(", "),", or ")+z[$-1]:$===2?"one of ".concat(V," ").concat(z[0]," or ").concat(z[1]):"of ".concat(V," ").concat(z[0])}else return"of ".concat(V," ").concat(String(z))}function H(z,V,$){return z.substr(!$||$<0?0:+$,V.length)===V}function P(z,V,$){return($===void 0||$>z.length)&&($=z.length),z.substring($-V.length,$)===V}function k(z,V,$){return typeof $!="number"&&($=0),$+V.length>z.length?!1:z.indexOf(V,$)!==-1}j("ERR_INVALID_OPT_VALUE",function(z,V){return'The value "'+V+'" is invalid for option "'+z+'"'},TypeError),j("ERR_INVALID_ARG_TYPE",function(z,V,$){var T;typeof V=="string"&&H(V,"not ")?(T="must not be",V=V.replace(/^not /,"")):T="must be";var D;if(P(z," argument"))D="The ".concat(z," ").concat(T," ").concat(S(V,"type"));else{var U=k(z,".")?"property":"argument";D='The "'.concat(z,'" ').concat(U," ").concat(T," ").concat(S(V,"type"))}return D+=". Received type ".concat(typeof $),D},TypeError),j("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),j("ERR_METHOD_NOT_IMPLEMENTED",function(z){return"The "+z+" method is not implemented"}),j("ERR_STREAM_PREMATURE_CLOSE","Premature close"),j("ERR_STREAM_DESTROYED",function(z){return"Cannot call "+z+" after a stream was destroyed"}),j("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),j("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),j("ERR_STREAM_WRITE_AFTER_END","write after end"),j("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),j("ERR_UNKNOWN_ENCODING",function(z){return"Unknown encoding: "+z},TypeError),j("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),g.exports.codes=A}),B6=C0((l,g)=>{var E=c5().codes.ERR_INVALID_OPT_VALUE;function A(S,H,P){return S.highWaterMark!=null?S.highWaterMark:H?S[P]:null}function j(S,H,P,k){var z=A(H,k,P);if(z!=null){if(!(isFinite(z)&&Math.floor(z)===z)||z<0){var V=k?P:"highWaterMark";throw new E(V,z)}return Math.floor(z)}return S.objectMode?16:16384}g.exports={getHighWaterMark:j}}),R6=C0((l,g)=>{g.exports=f;function E(u){var d=this;this.next=null,this.entry=null,this.finish=function(){Y0(d,u)}}var A;f.WritableState=i;var j={deprecate:s9()},S=I6(),H=U5().Buffer,P=global.Uint8Array||function(){};function k(u){return H.from(u)}function z(u){return H.isBuffer(u)||u instanceof P}var V=q6(),$=B6(),T=$.getHighWaterMark,D=c5().codes,U=D.ERR_INVALID_ARG_TYPE,N=D.ERR_METHOD_NOT_IMPLEMENTED,I=D.ERR_MULTIPLE_CALLBACK,M=D.ERR_STREAM_CANNOT_PIPE,x=D.ERR_STREAM_DESTROYED,v=D.ERR_STREAM_NULL_VALUES,y=D.ERR_STREAM_WRITE_AFTER_END,p=D.ERR_UNKNOWN_ENCODING,c=V.errorOrDestroy;p0()(f,S);function n(){}function i(u,d,a){A=A||y5(),u=u||{},typeof a!="boolean"&&(a=d instanceof A),this.objectMode=!!u.objectMode,a&&(this.objectMode=this.objectMode||!!u.writableObjectMode),this.highWaterMark=T(this,u,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var V0=u.decodeStrings===!1;this.decodeStrings=!V0,this.defaultEncoding=u.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(X0){Z(d,X0)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=u.emitClose!==!1,this.autoDestroy=!!u.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new E(this)}i.prototype.getBuffer=function(){for(var u=this.bufferedRequest,d=[];u;)d.push(u),u=u.next;return d},function(){try{Object.defineProperty(i.prototype,"buffer",{get:j.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var Q0;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Q0=Function.prototype[Symbol.hasInstance],Object.defineProperty(f,Symbol.hasInstance,{value:function(u){return Q0.call(this,u)?!0:this!==f?!1:u&&u._writableState instanceof i}})):Q0=function(u){return u instanceof this};function f(u){A=A||y5();var d=this instanceof A;if(!d&&!Q0.call(f,this))return new f(u);this._writableState=new i(u,this,d),this.writable=!0,u&&(typeof u.write=="function"&&(this._write=u.write),typeof u.writev=="function"&&(this._writev=u.writev),typeof u.destroy=="function"&&(this._destroy=u.destroy),typeof u.final=="function"&&(this._final=u.final)),S.call(this)}f.prototype.pipe=function(){c(this,new M)};function W0(u,d){var a=new y;c(u,a),process.nextTick(d,a)}function X(u,d,a,V0){var X0;return a===null?X0=new v:typeof a!="string"&&!d.objectMode&&(X0=new U("chunk",["string","Buffer"],a)),X0?(c(u,X0),process.nextTick(V0,X0),!1):!0}f.prototype.write=function(u,d,a){var V0=this._writableState,X0=!1,F0=!V0.objectMode&&z(u);return F0&&!H.isBuffer(u)&&(u=k(u)),typeof d=="function"&&(a=d,d=null),F0?d="buffer":d||(d=V0.defaultEncoding),typeof a!="function"&&(a=n),V0.ending?W0(this,a):(F0||X(this,V0,u,a))&&(V0.pendingcb++,X0=Q(this,V0,F0,u,d,a)),X0},f.prototype.cork=function(){this._writableState.corked++},f.prototype.uncork=function(){var u=this._writableState;u.corked&&(u.corked--,!u.writing&&!u.corked&&!u.bufferProcessing&&u.bufferedRequest&&G(this,u))},f.prototype.setDefaultEncoding=function(u){if(typeof u=="string"&&(u=u.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((u+"").toLowerCase())>-1))throw new p(u);return this._writableState.defaultEncoding=u,this},Object.defineProperty(f.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Y(u,d,a){return!u.objectMode&&u.decodeStrings!==!1&&typeof d=="string"&&(d=H.from(d,a)),d}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Q(u,d,a,V0,X0,F0){if(!a){var w=Y(d,V0,X0);V0!==w&&(a=!0,X0="buffer",V0=w)}var q=d.objectMode?1:V0.length;d.length+=q;var m=d.length<d.highWaterMark;if(m||(d.needDrain=!0),d.writing||d.corked){var e=d.lastBufferedRequest;d.lastBufferedRequest={chunk:V0,encoding:X0,isBuf:a,callback:F0,next:null},e?e.next=d.lastBufferedRequest:d.bufferedRequest=d.lastBufferedRequest,d.bufferedRequestCount+=1}else J(u,d,!1,q,V0,X0,F0);return m}function J(u,d,a,V0,X0,F0,w){d.writelen=V0,d.writecb=w,d.writing=!0,d.sync=!0,d.destroyed?d.onwrite(new x("write")):a?u._writev(X0,d.onwrite):u._write(X0,F0,d.onwrite),d.sync=!1}function F(u,d,a,V0,X0){--d.pendingcb,a?(process.nextTick(X0,V0),process.nextTick(s,u,d),u._writableState.errorEmitted=!0,c(u,V0)):(X0(V0),u._writableState.errorEmitted=!0,c(u,V0),s(u,d))}function W(u){u.writing=!1,u.writecb=null,u.length-=u.writelen,u.writelen=0}function Z(u,d){var a=u._writableState,V0=a.sync,X0=a.writecb;if(typeof X0!="function")throw new I;if(W(a),d)F(u,a,V0,d,X0);else{var F0=R(a)||u.destroyed;!F0&&!a.corked&&!a.bufferProcessing&&a.bufferedRequest&&G(u,a),V0?process.nextTick(C,u,a,F0,X0):C(u,a,F0,X0)}}function C(u,d,a,V0){a||K(u,d),d.pendingcb--,V0(),s(u,d)}function K(u,d){d.length===0&&d.needDrain&&(d.needDrain=!1,u.emit("drain"))}function G(u,d){d.bufferProcessing=!0;var a=d.bufferedRequest;if(u._writev&&a&&a.next){var V0=d.bufferedRequestCount,X0=new Array(V0),F0=d.corkedRequestsFree;F0.entry=a;for(var w=0,q=!0;a;)X0[w]=a,a.isBuf||(q=!1),a=a.next,w+=1;X0.allBuffers=q,J(u,d,!0,d.length,X0,"",F0.finish),d.pendingcb++,d.lastBufferedRequest=null,F0.next?(d.corkedRequestsFree=F0.next,F0.next=null):d.corkedRequestsFree=new E(d),d.bufferedRequestCount=0}else{for(;a;){var{chunk:m,encoding:e,callback:K0}=a,t=d.objectMode?1:m.length;if(J(u,d,!1,t,m,e,K0),a=a.next,d.bufferedRequestCount--,d.writing)break}a===null&&(d.lastBufferedRequest=null)}d.bufferedRequest=a,d.bufferProcessing=!1}f.prototype._write=function(u,d,a){a(new N("_write()"))},f.prototype._writev=null,f.prototype.end=function(u,d,a){var V0=this._writableState;return typeof u=="function"?(a=u,u=null,d=null):typeof d=="function"&&(a=d,d=null),u!=null&&this.write(u,d),V0.corked&&(V0.corked=1,this.uncork()),V0.ending||r(this,V0,a),this},Object.defineProperty(f.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function R(u){return u.ending&&u.length===0&&u.bufferedRequest===null&&!u.finished&&!u.writing}function L(u,d){u._final(function(a){d.pendingcb--,a&&c(u,a),d.prefinished=!0,u.emit("prefinish"),s(u,d)})}function _(u,d){!d.prefinished&&!d.finalCalled&&(typeof u._final=="function"&&!d.destroyed?(d.pendingcb++,d.finalCalled=!0,process.nextTick(L,u,d)):(d.prefinished=!0,u.emit("prefinish")))}function s(u,d){var a=R(d);if(a&&(_(u,d),d.pendingcb===0&&(d.finished=!0,u.emit("finish"),d.autoDestroy))){var V0=u._readableState;(!V0||V0.autoDestroy&&V0.endEmitted)&&u.destroy()}return a}function r(u,d,a){d.ending=!0,s(u,d),a&&(d.finished?process.nextTick(a):u.once("finish",a)),d.ended=!0,u.writable=!1}function Y0(u,d,a){var V0=u.entry;for(u.entry=null;V0;){var X0=V0.callback;d.pendingcb--,X0(a),V0=V0.next}d.corkedRequestsFree.next=u}Object.defineProperty(f.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(u){!this._writableState||(this._writableState.destroyed=u)}}),f.prototype.destroy=V.destroy,f.prototype._undestroy=V.undestroy,f.prototype._destroy=function(u,d){d(u)}}),y5=C0((l,g)=>{var E=Object.keys||function($){var T=[];for(var D in $)T.push(D);return T};g.exports=k;var A=E6(),j=R6();p0()(k,A);for(S=E(j.prototype),P=0;P<S.length;P++)H=S[P],k.prototype[H]||(k.prototype[H]=j.prototype[H]);var S,H,P;function k($){if(!(this instanceof k))return new k($);A.call(this,$),j.call(this,$),this.allowHalfOpen=!0,$&&($.readable===!1&&(this.readable=!1),$.writable===!1&&(this.writable=!1),$.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",z)))}Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(k.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function z(){this._writableState.ended||process.nextTick(V,this)}function V($){$.end()}Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function($){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=$,this._writableState.destroyed=$)}})}),R9=C0((l,g)=>{var E=c5().codes.ERR_STREAM_PREMATURE_CLOSE;function A(P){var k=!1;return function(){if(!k){k=!0;for(var z=arguments.length,V=new Array(z),$=0;$<z;$++)V[$]=arguments[$];P.apply(this,V)}}}function j(){}function S(P){return P.setHeader&&typeof P.abort=="function"}function H(P,k,z){if(typeof k=="function")return H(P,null,k);k||(k={}),z=A(z||j);var V=k.readable||k.readable!==!1&&P.readable,$=k.writable||k.writable!==!1&&P.writable,T=function(){P.writable||U()},D=P._writableState&&P._writableState.finished,U=function(){$=!1,D=!0,V||z.call(P)},N=P._readableState&&P._readableState.endEmitted,I=function(){V=!1,N=!0,$||z.call(P)},M=function(y){z.call(P,y)},x=function(){var y;if(V&&!N)return(!P._readableState||!P._readableState.ended)&&(y=new E),z.call(P,y);if($&&!D)return(!P._writableState||!P._writableState.ended)&&(y=new E),z.call(P,y)},v=function(){P.req.on("finish",U)};return S(P)?(P.on("complete",U),P.on("abort",x),P.req?v():P.on("request",v)):$&&!P._writableState&&(P.on("end",T),P.on("close",T)),P.on("end",I),P.on("finish",U),k.error!==!1&&P.on("error",M),P.on("close",x),function(){P.removeListener("complete",U),P.removeListener("abort",x),P.removeListener("request",v),P.req&&P.req.removeListener("finish",U),P.removeListener("end",T),P.removeListener("close",T),P.removeListener("finish",U),P.removeListener("end",I),P.removeListener("error",M),P.removeListener("close",x)}}g.exports=H}),i7=C0((l,g)=>{var E;function A(v,y,p){return y in v?Object.defineProperty(v,y,{value:p,enumerable:!0,configurable:!0,writable:!0}):v[y]=p,v}var j=R9(),S=Symbol("lastResolve"),H=Symbol("lastReject"),P=Symbol("error"),k=Symbol("ended"),z=Symbol("lastPromise"),V=Symbol("handlePromise"),$=Symbol("stream");function T(v,y){return{value:v,done:y}}function D(v){var y=v[S];if(y!==null){var p=v[$].read();p!==null&&(v[z]=null,v[S]=null,v[H]=null,y(T(p,!1)))}}function U(v){process.nextTick(D,v)}function N(v,y){return function(p,c){v.then(function(){if(y[k]){p(T(void 0,!0));return}y[V](p,c)},c)}}var I=Object.getPrototypeOf(function(){}),M=Object.setPrototypeOf((E={get stream(){return this[$]},next:function(){var v=this,y=this[P];if(y!==null)return Promise.reject(y);if(this[k])return Promise.resolve(T(void 0,!0));if(this[$].destroyed)return new Promise(function(i,Q0){process.nextTick(function(){v[P]?Q0(v[P]):i(T(void 0,!0))})});var p=this[z],c;if(p)c=new Promise(N(p,this));else{var n=this[$].read();if(n!==null)return Promise.resolve(T(n,!1));c=new Promise(this[V])}return this[z]=c,c}},A(E,Symbol.asyncIterator,function(){return this}),A(E,"return",function(){var v=this;return new Promise(function(y,p){v[$].destroy(null,function(c){if(c){p(c);return}y(T(void 0,!0))})})}),E),I),x=function(v){var y,p=Object.create(M,(y={},A(y,$,{value:v,writable:!0}),A(y,S,{value:null,writable:!0}),A(y,H,{value:null,writable:!0}),A(y,P,{value:null,writable:!0}),A(y,k,{value:v._readableState.endEmitted,writable:!0}),A(y,V,{value:function(c,n){var i=p[$].read();i?(p[z]=null,p[S]=null,p[H]=null,c(T(i,!1))):(p[S]=c,p[H]=n)},writable:!0}),y));return p[z]=null,j(v,function(c){if(c&&c.code!=="ERR_STREAM_PREMATURE_CLOSE"){var n=p[H];n!==null&&(p[z]=null,p[S]=null,p[H]=null,n(c)),p[P]=c;return}var i=p[S];i!==null&&(p[z]=null,p[S]=null,p[H]=null,i(T(void 0,!0))),p[k]=!0}),v.on("readable",U.bind(null,p)),p};g.exports=x}),t7=C0((l,g)=>{g.exports=function(){throw new Error("Readable.from is not available in the browser")}}),E6=C0((l,g)=>{g.exports=X;var E;X.ReadableState=W0;var A=S5().EventEmitter,j=function(w,q){return w.listeners(q).length},S=I6(),H=U5().Buffer,P=global.Uint8Array||function(){};function k(w){return H.from(w)}function z(w){return H.isBuffer(w)||w instanceof P}var V=t5(),$;V&&V.debuglog?$=V.debuglog("stream"):$=function(){};var T=r7(),D=q6(),U=B6(),N=U.getHighWaterMark,I=c5().codes,M=I.ERR_INVALID_ARG_TYPE,x=I.ERR_STREAM_PUSH_AFTER_EOF,v=I.ERR_METHOD_NOT_IMPLEMENTED,y=I.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,p,c,n;p0()(X,S);var i=D.errorOrDestroy,Q0=["error","close","destroy","pause","resume"];function f(w,q,m){if(typeof w.prependListener=="function")return w.prependListener(q,m);!w._events||!w._events[q]?w.on(q,m):Array.isArray(w._events[q])?w._events[q].unshift(m):w._events[q]=[m,w._events[q]]}function W0(w,q,m){E=E||y5(),w=w||{},typeof m!="boolean"&&(m=q instanceof E),this.objectMode=!!w.objectMode,m&&(this.objectMode=this.objectMode||!!w.readableObjectMode),this.highWaterMark=N(this,w,"readableHighWaterMark",m),this.buffer=new T,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=w.emitClose!==!1,this.autoDestroy=!!w.autoDestroy,this.destroyed=!1,this.defaultEncoding=w.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,w.encoding&&(p||(p=(f5(),z5(d5)).StringDecoder),this.decoder=new p(w.encoding),this.encoding=w.encoding)}function X(w){if(E=E||y5(),!(this instanceof X))return new X(w);var q=this instanceof E;this._readableState=new W0(w,this,q),this.readable=!0,w&&(typeof w.read=="function"&&(this._read=w.read),typeof w.destroy=="function"&&(this._destroy=w.destroy)),S.call(this)}Object.defineProperty(X.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(w){!this._readableState||(this._readableState.destroyed=w)}}),X.prototype.destroy=D.destroy,X.prototype._undestroy=D.undestroy,X.prototype._destroy=function(w,q){q(w)},X.prototype.push=function(w,q){var m=this._readableState,e;return m.objectMode?e=!0:typeof w=="string"&&(q=q||m.defaultEncoding,q!==m.encoding&&(w=H.from(w,q),q=""),e=!0),Y(this,w,q,!1,e)},X.prototype.unshift=function(w){return Y(this,w,null,!0,!1)};function Y(w,q,m,e,K0){$("readableAddChunk",q);var t=w._readableState;if(q===null)t.reading=!1,C(w,t);else{var _0;if(K0||(_0=J(t,q)),_0)i(w,_0);else if(t.objectMode||q&&q.length>0)if(typeof q!="string"&&!t.objectMode&&Object.getPrototypeOf(q)!==H.prototype&&(q=k(q)),e)t.endEmitted?i(w,new y):Q(w,t,q,!0);else if(t.ended)i(w,new x);else{if(t.destroyed)return!1;t.reading=!1,t.decoder&&!m?(q=t.decoder.write(q),t.objectMode||q.length!==0?Q(w,t,q,!1):R(w,t)):Q(w,t,q,!1)}else e||(t.reading=!1,R(w,t))}return!t.ended&&(t.length<t.highWaterMark||t.length===0)}function Q(w,q,m,e){q.flowing&&q.length===0&&!q.sync?(q.awaitDrain=0,w.emit("data",m)):(q.length+=q.objectMode?1:m.length,e?q.buffer.unshift(m):q.buffer.push(m),q.needReadable&&K(w)),R(w,q)}function J(w,q){var m;return!z(q)&&typeof q!="string"&&q!==void 0&&!w.objectMode&&(m=new M("chunk",["string","Buffer","Uint8Array"],q)),m}X.prototype.isPaused=function(){return this._readableState.flowing===!1},X.prototype.setEncoding=function(w){p||(p=(f5(),z5(d5)).StringDecoder);var q=new p(w);this._readableState.decoder=q,this._readableState.encoding=this._readableState.decoder.encoding;for(var m=this._readableState.buffer.head,e="";m!==null;)e+=q.write(m.data),m=m.next;return this._readableState.buffer.clear(),e!==""&&this._readableState.buffer.push(e),this._readableState.length=e.length,this};var F=1073741824;function W(w){return w>=F?w=F:(w--,w|=w>>>1,w|=w>>>2,w|=w>>>4,w|=w>>>8,w|=w>>>16,w++),w}function Z(w,q){return w<=0||q.length===0&&q.ended?0:q.objectMode?1:w!==w?q.flowing&&q.length?q.buffer.head.data.length:q.length:(w>q.highWaterMark&&(q.highWaterMark=W(w)),w<=q.length?w:q.ended?q.length:(q.needReadable=!0,0))}X.prototype.read=function(w){$("read",w),w=parseInt(w,10);var q=this._readableState,m=w;if(w!==0&&(q.emittedReadable=!1),w===0&&q.needReadable&&((q.highWaterMark!==0?q.length>=q.highWaterMark:q.length>0)||q.ended))return $("read: emitReadable",q.length,q.ended),q.length===0&&q.ended?V0(this):K(this),null;if(w=Z(w,q),w===0&&q.ended)return q.length===0&&V0(this),null;var e=q.needReadable;$("need readable",e),(q.length===0||q.length-w<q.highWaterMark)&&(e=!0,$("length less than watermark",e)),q.ended||q.reading?(e=!1,$("reading or ended",e)):e&&($("do read"),q.reading=!0,q.sync=!0,q.length===0&&(q.needReadable=!0),this._read(q.highWaterMark),q.sync=!1,q.reading||(w=Z(m,q)));var K0;return w>0?K0=a(w,q):K0=null,K0===null?(q.needReadable=q.length<=q.highWaterMark,w=0):(q.length-=w,q.awaitDrain=0),q.length===0&&(q.ended||(q.needReadable=!0),m!==w&&q.ended&&V0(this)),K0!==null&&this.emit("data",K0),K0};function C(w,q){if($("onEofChunk"),!q.ended){if(q.decoder){var m=q.decoder.end();m&&m.length&&(q.buffer.push(m),q.length+=q.objectMode?1:m.length)}q.ended=!0,q.sync?K(w):(q.needReadable=!1,q.emittedReadable||(q.emittedReadable=!0,G(w)))}}function K(w){var q=w._readableState;$("emitReadable",q.needReadable,q.emittedReadable),q.needReadable=!1,q.emittedReadable||($("emitReadable",q.flowing),q.emittedReadable=!0,process.nextTick(G,w))}function G(w){var q=w._readableState;$("emitReadable_",q.destroyed,q.length,q.ended),!q.destroyed&&(q.length||q.ended)&&(w.emit("readable"),q.emittedReadable=!1),q.needReadable=!q.flowing&&!q.ended&&q.length<=q.highWaterMark,d(w)}function R(w,q){q.readingMore||(q.readingMore=!0,process.nextTick(L,w,q))}function L(w,q){for(;!q.reading&&!q.ended&&(q.length<q.highWaterMark||q.flowing&&q.length===0);){var m=q.length;if($("maybeReadMore read 0"),w.read(0),m===q.length)break}q.readingMore=!1}X.prototype._read=function(w){i(this,new v("_read()"))},X.prototype.pipe=function(w,q){var m=this,e=this._readableState;switch(e.pipesCount){case 0:e.pipes=w;break;case 1:e.pipes=[e.pipes,w];break;default:e.pipes.push(w);break}e.pipesCount+=1,$("pipe count=%d opts=%j",e.pipesCount,q);var K0=(!q||q.end!==!1)&&w!==process.stdout&&w!==process.stderr,t=K0?H0:b;e.endEmitted?process.nextTick(t):m.once("end",t),w.on("unpipe",_0);function _0(h,o){$("onunpipe"),h===m&&o&&o.hasUnpiped===!1&&(o.hasUnpiped=!0,U0())}function H0(){$("onend"),w.end()}var G0=_(m);w.on("drain",G0);var w0=!1;function U0(){$("cleanup"),w.removeListener("close",O),w.removeListener("finish",B),w.removeListener("drain",G0),w.removeListener("error",c0),w.removeListener("unpipe",_0),m.removeListener("end",H0),m.removeListener("end",b),m.removeListener("data",Z0),w0=!0,e.awaitDrain&&(!w._writableState||w._writableState.needDrain)&&G0()}m.on("data",Z0);function Z0(h){$("ondata");var o=w.write(h);$("dest.write",o),o===!1&&((e.pipesCount===1&&e.pipes===w||e.pipesCount>1&&F0(e.pipes,w)!==-1)&&!w0&&($("false write response, pause",e.awaitDrain),e.awaitDrain++),m.pause())}function c0(h){$("onerror",h),b(),w.removeListener("error",c0),j(w,"error")===0&&i(w,h)}f(w,"error",c0);function O(){w.removeListener("finish",B),b()}w.once("close",O);function B(){$("onfinish"),w.removeListener("close",O),b()}w.once("finish",B);function b(){$("unpipe"),m.unpipe(w)}return w.emit("pipe",m),e.flowing||($("pipe resume"),m.resume()),w};function _(w){return function(){var q=w._readableState;$("pipeOnDrain",q.awaitDrain),q.awaitDrain&&q.awaitDrain--,q.awaitDrain===0&&j(w,"data")&&(q.flowing=!0,d(w))}}X.prototype.unpipe=function(w){var q=this._readableState,m={hasUnpiped:!1};if(q.pipesCount===0)return this;if(q.pipesCount===1)return w&&w!==q.pipes?this:(w||(w=q.pipes),q.pipes=null,q.pipesCount=0,q.flowing=!1,w&&w.emit("unpipe",this,m),this);if(!w){var{pipes:e,pipesCount:K0}=q;q.pipes=null,q.pipesCount=0,q.flowing=!1;for(var t=0;t<K0;t++)e[t].emit("unpipe",this,{hasUnpiped:!1});return this}var _0=F0(q.pipes,w);return _0===-1?this:(q.pipes.splice(_0,1),q.pipesCount-=1,q.pipesCount===1&&(q.pipes=q.pipes[0]),w.emit("unpipe",this,m),this)},X.prototype.on=function(w,q){var m=S.prototype.on.call(this,w,q),e=this._readableState;return w==="data"?(e.readableListening=this.listenerCount("readable")>0,e.flowing!==!1&&this.resume()):w==="readable"&&!e.endEmitted&&!e.readableListening&&(e.readableListening=e.needReadable=!0,e.flowing=!1,e.emittedReadable=!1,$("on readable",e.length,e.reading),e.length?K(this):e.reading||process.nextTick(r,this)),m},X.prototype.addListener=X.prototype.on,X.prototype.removeListener=function(w,q){var m=S.prototype.removeListener.call(this,w,q);return w==="readable"&&process.nextTick(s,this),m},X.prototype.removeAllListeners=function(w){var q=S.prototype.removeAllListeners.apply(this,arguments);return(w==="readable"||w===void 0)&&process.nextTick(s,this),q};function s(w){var q=w._readableState;q.readableListening=w.listenerCount("readable")>0,q.resumeScheduled&&!q.paused?q.flowing=!0:w.listenerCount("data")>0&&w.resume()}function r(w){$("readable nexttick read 0"),w.read(0)}X.prototype.resume=function(){var w=this._readableState;return w.flowing||($("resume"),w.flowing=!w.readableListening,Y0(this,w)),w.paused=!1,this};function Y0(w,q){q.resumeScheduled||(q.resumeScheduled=!0,process.nextTick(u,w,q))}function u(w,q){$("resume",q.reading),q.reading||w.read(0),q.resumeScheduled=!1,w.emit("resume"),d(w),q.flowing&&!q.reading&&w.read(0)}X.prototype.pause=function(){return $("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&($("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function d(w){var q=w._readableState;for($("flow",q.flowing);q.flowing&&w.read()!==null;);}X.prototype.wrap=function(w){var q=this,m=this._readableState,e=!1;w.on("end",function(){if($("wrapped end"),m.decoder&&!m.ended){var _0=m.decoder.end();_0&&_0.length&&q.push(_0)}q.push(null)}),w.on("data",function(_0){if($("wrapped data"),m.decoder&&(_0=m.decoder.write(_0)),!(m.objectMode&&_0==null)&&!(!m.objectMode&&(!_0||!_0.length))){var H0=q.push(_0);H0||(e=!0,w.pause())}});for(var K0 in w)this[K0]===void 0&&typeof w[K0]=="function"&&(this[K0]=function(_0){return function(){return w[_0].apply(w,arguments)}}(K0));for(var t=0;t<Q0.length;t++)w.on(Q0[t],this.emit.bind(this,Q0[t]));return this._read=function(_0){$("wrapped _read",_0),e&&(e=!1,w.resume())},this},typeof Symbol=="function"&&(X.prototype[Symbol.asyncIterator]=function(){return c===void 0&&(c=i7()),c(this)}),Object.defineProperty(X.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(X.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(X.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(w){this._readableState&&(this._readableState.flowing=w)}}),X._fromList=a,Object.defineProperty(X.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function a(w,q){if(q.length===0)return null;var m;return q.objectMode?m=q.buffer.shift():!w||w>=q.length?(q.decoder?m=q.buffer.join(""):q.buffer.length===1?m=q.buffer.first():m=q.buffer.concat(q.length),q.buffer.clear()):m=q.buffer.consume(w,q.decoder),m}function V0(w){var q=w._readableState;$("endReadable",q.endEmitted),q.endEmitted||(q.ended=!0,process.nextTick(X0,q,w))}function X0(w,q){if($("endReadableNT",w.endEmitted,w.length),!w.endEmitted&&w.length===0&&(w.endEmitted=!0,q.readable=!1,q.emit("end"),w.autoDestroy)){var m=q._writableState;(!m||m.autoDestroy&&m.finished)&&q.destroy()}}typeof Symbol=="function"&&(X.from=function(w,q){return n===void 0&&(n=t7()),n(X,w,q)});function F0(w,q){for(var m=0,e=w.length;m<e;m++)if(w[m]===q)return m;return-1}}),S6=C0((l,g)=>{g.exports=z;var E=c5().codes,A=E.ERR_METHOD_NOT_IMPLEMENTED,j=E.ERR_MULTIPLE_CALLBACK,S=E.ERR_TRANSFORM_ALREADY_TRANSFORMING,H=E.ERR_TRANSFORM_WITH_LENGTH_0,P=y5();p0()(z,P);function k(T,D){var U=this._transformState;U.transforming=!1;var N=U.writecb;if(N===null)return this.emit("error",new j);U.writechunk=null,U.writecb=null,D!=null&&this.push(D),N(T);var I=this._readableState;I.reading=!1,(I.needReadable||I.length<I.highWaterMark)&&this._read(I.highWaterMark)}function z(T){if(!(this instanceof z))return new z(T);P.call(this,T),this._transformState={afterTransform:k.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",V)}function V(){var T=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(D,U){$(T,D,U)}):$(this,null,null)}z.prototype.push=function(T,D){return this._transformState.needTransform=!1,P.prototype.push.call(this,T,D)},z.prototype._transform=function(T,D,U){U(new A("_transform()"))},z.prototype._write=function(T,D,U){var N=this._transformState;if(N.writecb=U,N.writechunk=T,N.writeencoding=D,!N.transforming){var I=this._readableState;(N.needTransform||I.needReadable||I.length<I.highWaterMark)&&this._read(I.highWaterMark)}},z.prototype._read=function(T){var D=this._transformState;D.writechunk!==null&&!D.transforming?(D.transforming=!0,this._transform(D.writechunk,D.writeencoding,D.afterTransform)):D.needTransform=!0},z.prototype._destroy=function(T,D){P.prototype._destroy.call(this,T,function(U){D(U)})};function $(T,D,U){if(D)return T.emit("error",D);if(U!=null&&T.push(U),T._writableState.length)throw new H;if(T._transformState.transforming)throw new S;return T.push(null)}}),e7=C0((l,g)=>{g.exports=A;var E=S6();p0()(A,E);function A(j){if(!(this instanceof A))return new A(j);E.call(this,j)}A.prototype._transform=function(j,S,H){H(null,j)}}),X8=C0((l,g)=>{var E;function A(U){var N=!1;return function(){N||(N=!0,U.apply(void 0,arguments))}}var j=c5().codes,S=j.ERR_MISSING_ARGS,H=j.ERR_STREAM_DESTROYED;function P(U){if(U)throw U}function k(U){return U.setHeader&&typeof U.abort=="function"}function z(U,N,I,M){M=A(M);var x=!1;U.on("close",function(){x=!0}),E===void 0&&(E=R9()),E(U,{readable:N,writable:I},function(y){if(y)return M(y);x=!0,M()});var v=!1;return function(y){if(!x&&!v){if(v=!0,k(U))return U.abort();if(typeof U.destroy=="function")return U.destroy();M(y||new H("pipe"))}}}function V(U){U()}function $(U,N){return U.pipe(N)}function T(U){return!U.length||typeof U[U.length-1]!="function"?P:U.pop()}function D(){for(var U=arguments.length,N=new Array(U),I=0;I<U;I++)N[I]=arguments[I];var M=T(N);if(Array.isArray(N[0])&&(N=N[0]),N.length<2)throw new S("streams");var x,v=N.map(function(y,p){var c=p<N.length-1,n=p>0;return z(y,c,n,function(i){x||(x=i),i&&v.forEach(V),!c&&(v.forEach(V),M(x))})});return N.reduce($)}g.exports=D}),K8=C0((l,g)=>{l=g.exports=E6(),l.Stream=l,l.Readable=l,l.Writable=R6(),l.Duplex=y5(),l.Transform=S6(),l.PassThrough=e7(),l.finished=R9(),l.pipeline=X8()}),E9=C0((l,g)=>{(function(E,A){function j(J,F){if(!J)throw new Error(F||"Assertion failed")}function S(J,F){J.super_=F;var W=function(){};W.prototype=F.prototype,J.prototype=new W,J.prototype.constructor=J}function H(J,F,W){if(H.isBN(J))return J;this.negative=0,this.words=null,this.length=0,this.red=null,J!==null&&((F==="le"||F==="be")&&(W=F,F=10),this._init(J||0,F||10,W||"be"))}typeof E=="object"?E.exports=H:A.BN=H,H.BN=H,H.wordSize=26;var P;try{typeof window<"u"&&typeof window.Buffer<"u"?P=window.Buffer:P=M5().Buffer}catch{}H.isBN=function(J){return J instanceof H?!0:J!==null&&typeof J=="object"&&J.constructor.wordSize===H.wordSize&&Array.isArray(J.words)},H.max=function(J,F){return J.cmp(F)>0?J:F},H.min=function(J,F){return J.cmp(F)<0?J:F},H.prototype._init=function(J,F,W){if(typeof J=="number")return this._initNumber(J,F,W);if(typeof J=="object")return this._initArray(J,F,W);F==="hex"&&(F=16),j(F===(F|0)&&F>=2&&F<=36),J=J.toString().replace(/\s+/g,"");var Z=0;J[0]==="-"&&(Z++,this.negative=1),Z<J.length&&(F===16?this._parseHex(J,Z,W):(this._parseBase(J,F,Z),W==="le"&&this._initArray(this.toArray(),F,W)))},H.prototype._initNumber=function(J,F,W){J<0&&(this.negative=1,J=-J),J<67108864?(this.words=[J&67108863],this.length=1):J<4503599627370496?(this.words=[J&67108863,J/67108864&67108863],this.length=2):(j(J<9007199254740992),this.words=[J&67108863,J/67108864&67108863,1],this.length=3),W==="le"&&this._initArray(this.toArray(),F,W)},H.prototype._initArray=function(J,F,W){if(j(typeof J.length=="number"),J.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(J.length/3),this.words=new Array(this.length);for(var Z=0;Z<this.length;Z++)this.words[Z]=0;var C,K,G=0;if(W==="be")for(Z=J.length-1,C=0;Z>=0;Z-=3)K=J[Z]|J[Z-1]<<8|J[Z-2]<<16,this.words[C]|=K<<G&67108863,this.words[C+1]=K>>>26-G&67108863,G+=24,G>=26&&(G-=26,C++);else if(W==="le")for(Z=0,C=0;Z<J.length;Z+=3)K=J[Z]|J[Z+1]<<8|J[Z+2]<<16,this.words[C]|=K<<G&67108863,this.words[C+1]=K>>>26-G&67108863,G+=24,G>=26&&(G-=26,C++);return this._strip()};function k(J,F){var W=J.charCodeAt(F);if(W>=48&&W<=57)return W-48;if(W>=65&&W<=70)return W-55;if(W>=97&&W<=102)return W-87;j(!1,"Invalid character in "+J)}function z(J,F,W){var Z=k(J,W);return W-1>=F&&(Z|=k(J,W-1)<<4),Z}H.prototype._parseHex=function(J,F,W){this.length=Math.ceil((J.length-F)/6),this.words=new Array(this.length);for(var Z=0;Z<this.length;Z++)this.words[Z]=0;var C=0,K=0,G;if(W==="be")for(Z=J.length-1;Z>=F;Z-=2)G=z(J,F,Z)<<C,this.words[K]|=G&67108863,C>=18?(C-=18,K+=1,this.words[K]|=G>>>26):C+=8;else{var R=J.length-F;for(Z=R%2===0?F+1:F;Z<J.length;Z+=2)G=z(J,F,Z)<<C,this.words[K]|=G&67108863,C>=18?(C-=18,K+=1,this.words[K]|=G>>>26):C+=8}this._strip()};function V(J,F,W,Z){for(var C=0,K=0,G=Math.min(J.length,W),R=F;R<G;R++){var L=J.charCodeAt(R)-48;C*=Z,L>=49?K=L-49+10:L>=17?K=L-17+10:K=L,j(L>=0&&K<Z,"Invalid character"),C+=K}return C}H.prototype._parseBase=function(J,F,W){this.words=[0],this.length=1;for(var Z=0,C=1;C<=67108863;C*=F)Z++;Z--,C=C/F|0;for(var K=J.length-W,G=K%Z,R=Math.min(K,K-G)+W,L=0,_=W;_<R;_+=Z)L=V(J,_,_+Z,F),this.imuln(C),this.words[0]+L<67108864?this.words[0]+=L:this._iaddn(L);if(G!==0){var s=1;for(L=V(J,_,J.length,F),_=0;_<G;_++)s*=F;this.imuln(s),this.words[0]+L<67108864?this.words[0]+=L:this._iaddn(L)}this._strip()},H.prototype.copy=function(J){J.words=new Array(this.length);for(var F=0;F<this.length;F++)J.words[F]=this.words[F];J.length=this.length,J.negative=this.negative,J.red=this.red};function $(J,F){J.words=F.words,J.length=F.length,J.negative=F.negative,J.red=F.red}if(H.prototype._move=function(J){$(J,this)},H.prototype.clone=function(){var J=new H(null);return this.copy(J),J},H.prototype._expand=function(J){for(;this.length<J;)this.words[this.length++]=0;return this},H.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},H.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{H.prototype[Symbol.for("nodejs.util.inspect.custom")]=T}catch{H.prototype.inspect=T}else H.prototype.inspect=T;function T(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var D=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],U=[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],N=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];H.prototype.toString=function(J,F){J=J||10,F=F|0||1;var W;if(J===16||J==="hex"){W="";for(var Z=0,C=0,K=0;K<this.length;K++){var G=this.words[K],R=((G<<Z|C)&16777215).toString(16);C=G>>>24-Z&16777215,Z+=2,Z>=26&&(Z-=26,K--),C!==0||K!==this.length-1?W=D[6-R.length]+R+W:W=R+W}for(C!==0&&(W=C.toString(16)+W);W.length%F!==0;)W="0"+W;return this.negative!==0&&(W="-"+W),W}if(J===(J|0)&&J>=2&&J<=36){var L=U[J],_=N[J];W="";var s=this.clone();for(s.negative=0;!s.isZero();){var r=s.modrn(_).toString(J);s=s.idivn(_),s.isZero()?W=r+W:W=D[L-r.length]+r+W}for(this.isZero()&&(W="0"+W);W.length%F!==0;)W="0"+W;return this.negative!==0&&(W="-"+W),W}j(!1,"Base should be between 2 and 36")},H.prototype.toNumber=function(){var J=this.words[0];return this.length===2?J+=this.words[1]*67108864:this.length===3&&this.words[2]===1?J+=4503599627370496+this.words[1]*67108864:this.length>2&&j(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-J:J},H.prototype.toJSON=function(){return this.toString(16,2)},P&&(H.prototype.toBuffer=function(J,F){return this.toArrayLike(P,J,F)}),H.prototype.toArray=function(J,F){return this.toArrayLike(Array,J,F)};var I=function(J,F){return J.allocUnsafe?J.allocUnsafe(F):new J(F)};H.prototype.toArrayLike=function(J,F,W){this._strip();var Z=this.byteLength(),C=W||Math.max(1,Z);j(Z<=C,"byte array longer than desired length"),j(C>0,"Requested array length <= 0");var K=I(J,C),G=F==="le"?"LE":"BE";return this["_toArrayLike"+G](K,Z),K},H.prototype._toArrayLikeLE=function(J,F){for(var W=0,Z=0,C=0,K=0;C<this.length;C++){var G=this.words[C]<<K|Z;J[W++]=G&255,W<J.length&&(J[W++]=G>>8&255),W<J.length&&(J[W++]=G>>16&255),K===6?(W<J.length&&(J[W++]=G>>24&255),Z=0,K=0):(Z=G>>>24,K+=2)}if(W<J.length)for(J[W++]=Z;W<J.length;)J[W++]=0},H.prototype._toArrayLikeBE=function(J,F){for(var W=J.length-1,Z=0,C=0,K=0;C<this.length;C++){var G=this.words[C]<<K|Z;J[W--]=G&255,W>=0&&(J[W--]=G>>8&255),W>=0&&(J[W--]=G>>16&255),K===6?(W>=0&&(J[W--]=G>>24&255),Z=0,K=0):(Z=G>>>24,K+=2)}if(W>=0)for(J[W--]=Z;W>=0;)J[W--]=0},Math.clz32?H.prototype._countBits=function(J){return 32-Math.clz32(J)}:H.prototype._countBits=function(J){var F=J,W=0;return F>=4096&&(W+=13,F>>>=13),F>=64&&(W+=7,F>>>=7),F>=8&&(W+=4,F>>>=4),F>=2&&(W+=2,F>>>=2),W+F},H.prototype._zeroBits=function(J){if(J===0)return 26;var F=J,W=0;return(F&8191)===0&&(W+=13,F>>>=13),(F&127)===0&&(W+=7,F>>>=7),(F&15)===0&&(W+=4,F>>>=4),(F&3)===0&&(W+=2,F>>>=2),(F&1)===0&&W++,W},H.prototype.bitLength=function(){var J=this.words[this.length-1],F=this._countBits(J);return(this.length-1)*26+F};function M(J){for(var F=new Array(J.bitLength()),W=0;W<F.length;W++){var Z=W/26|0,C=W%26;F[W]=J.words[Z]>>>C&1}return F}H.prototype.zeroBits=function(){if(this.isZero())return 0;for(var J=0,F=0;F<this.length;F++){var W=this._zeroBits(this.words[F]);if(J+=W,W!==26)break}return J},H.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},H.prototype.toTwos=function(J){return this.negative!==0?this.abs().inotn(J).iaddn(1):this.clone()},H.prototype.fromTwos=function(J){return this.testn(J-1)?this.notn(J).iaddn(1).ineg():this.clone()},H.prototype.isNeg=function(){return this.negative!==0},H.prototype.neg=function(){return this.clone().ineg()},H.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},H.prototype.iuor=function(J){for(;this.length<J.length;)this.words[this.length++]=0;for(var F=0;F<J.length;F++)this.words[F]=this.words[F]|J.words[F];return this._strip()},H.prototype.ior=function(J){return j((this.negative|J.negative)===0),this.iuor(J)},H.prototype.or=function(J){return this.length>J.length?this.clone().ior(J):J.clone().ior(this)},H.prototype.uor=function(J){return this.length>J.length?this.clone().iuor(J):J.clone().iuor(this)},H.prototype.iuand=function(J){var F;this.length>J.length?F=J:F=this;for(var W=0;W<F.length;W++)this.words[W]=this.words[W]&J.words[W];return this.length=F.length,this._strip()},H.prototype.iand=function(J){return j((this.negative|J.negative)===0),this.iuand(J)},H.prototype.and=function(J){return this.length>J.length?this.clone().iand(J):J.clone().iand(this)},H.prototype.uand=function(J){return this.length>J.length?this.clone().iuand(J):J.clone().iuand(this)},H.prototype.iuxor=function(J){var F,W;this.length>J.length?(F=this,W=J):(F=J,W=this);for(var Z=0;Z<W.length;Z++)this.words[Z]=F.words[Z]^W.words[Z];if(this!==F)for(;Z<F.length;Z++)this.words[Z]=F.words[Z];return this.length=F.length,this._strip()},H.prototype.ixor=function(J){return j((this.negative|J.negative)===0),this.iuxor(J)},H.prototype.xor=function(J){return this.length>J.length?this.clone().ixor(J):J.clone().ixor(this)},H.prototype.uxor=function(J){return this.length>J.length?this.clone().iuxor(J):J.clone().iuxor(this)},H.prototype.inotn=function(J){j(typeof J=="number"&&J>=0);var F=Math.ceil(J/26)|0,W=J%26;this._expand(F),W>0&&F--;for(var Z=0;Z<F;Z++)this.words[Z]=~this.words[Z]&67108863;return W>0&&(this.words[Z]=~this.words[Z]&67108863>>26-W),this._strip()},H.prototype.notn=function(J){return this.clone().inotn(J)},H.prototype.setn=function(J,F){j(typeof J=="number"&&J>=0);var W=J/26|0,Z=J%26;return this._expand(W+1),F?this.words[W]=this.words[W]|1<<Z:this.words[W]=this.words[W]&~(1<<Z),this._strip()},H.prototype.iadd=function(J){var F;if(this.negative!==0&&J.negative===0)return this.negative=0,F=this.isub(J),this.negative^=1,this._normSign();if(this.negative===0&&J.negative!==0)return J.negative=0,F=this.isub(J),J.negative=1,F._normSign();var W,Z;this.length>J.length?(W=this,Z=J):(W=J,Z=this);for(var C=0,K=0;K<Z.length;K++)F=(W.words[K]|0)+(Z.words[K]|0)+C,this.words[K]=F&67108863,C=F>>>26;for(;C!==0&&K<W.length;K++)F=(W.words[K]|0)+C,this.words[K]=F&67108863,C=F>>>26;if(this.length=W.length,C!==0)this.words[this.length]=C,this.length++;else if(W!==this)for(;K<W.length;K++)this.words[K]=W.words[K];return this},H.prototype.add=function(J){var F;return J.negative!==0&&this.negative===0?(J.negative=0,F=this.sub(J),J.negative^=1,F):J.negative===0&&this.negative!==0?(this.negative=0,F=J.sub(this),this.negative=1,F):this.length>J.length?this.clone().iadd(J):J.clone().iadd(this)},H.prototype.isub=function(J){if(J.negative!==0){J.negative=0;var F=this.iadd(J);return J.negative=1,F._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(J),this.negative=1,this._normSign();var W=this.cmp(J);if(W===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Z,C;W>0?(Z=this,C=J):(Z=J,C=this);for(var K=0,G=0;G<C.length;G++)F=(Z.words[G]|0)-(C.words[G]|0)+K,K=F>>26,this.words[G]=F&67108863;for(;K!==0&&G<Z.length;G++)F=(Z.words[G]|0)+K,K=F>>26,this.words[G]=F&67108863;if(K===0&&G<Z.length&&Z!==this)for(;G<Z.length;G++)this.words[G]=Z.words[G];return this.length=Math.max(this.length,G),Z!==this&&(this.negative=1),this._strip()},H.prototype.sub=function(J){return this.clone().isub(J)};function x(J,F,W){W.negative=F.negative^J.negative;var Z=J.length+F.length|0;W.length=Z,Z=Z-1|0;var C=J.words[0]|0,K=F.words[0]|0,G=C*K,R=G&67108863,L=G/67108864|0;W.words[0]=R;for(var _=1;_<Z;_++){for(var s=L>>>26,r=L&67108863,Y0=Math.min(_,F.length-1),u=Math.max(0,_-J.length+1);u<=Y0;u++){var d=_-u|0;C=J.words[d]|0,K=F.words[u]|0,G=C*K+r,s+=G/67108864|0,r=G&67108863}W.words[_]=r|0,L=s|0}return L!==0?W.words[_]=L|0:W.length--,W._strip()}var v=function(J,F,W){var Z=J.words,C=F.words,K=W.words,G=0,R,L,_,s=Z[0]|0,r=s&8191,Y0=s>>>13,u=Z[1]|0,d=u&8191,a=u>>>13,V0=Z[2]|0,X0=V0&8191,F0=V0>>>13,w=Z[3]|0,q=w&8191,m=w>>>13,e=Z[4]|0,K0=e&8191,t=e>>>13,_0=Z[5]|0,H0=_0&8191,G0=_0>>>13,w0=Z[6]|0,U0=w0&8191,Z0=w0>>>13,c0=Z[7]|0,O=c0&8191,B=c0>>>13,b=Z[8]|0,h=b&8191,o=b>>>13,z0=Z[9]|0,J0=z0&8191,$0=z0>>>13,b0=C[0]|0,P0=b0&8191,j0=b0>>>13,y0=C[1]|0,D0=y0&8191,N0=y0>>>13,H5=C[2]|0,T0=H5&8191,O0=H5>>>13,l0=C[3]|0,L0=l0&8191,k0=l0>>>13,G5=C[4]|0,I0=G5&8191,q0=G5>>>13,W5=C[5]|0,B0=W5&8191,R0=W5>>>13,Z5=C[6]|0,E0=Z5&8191,S0=Z5>>>13,$5=C[7]|0,x0=$5&8191,A0=$5>>>13,j5=C[8]|0,v0=j5&8191,M0=j5>>>13,F5=C[9]|0,g0=F5&8191,m0=F5>>>13;W.negative=J.negative^F.negative,W.length=19,R=Math.imul(r,P0),L=Math.imul(r,j0),L=L+Math.imul(Y0,P0)|0,_=Math.imul(Y0,j0);var h0=(G+R|0)+((L&8191)<<13)|0;G=(_+(L>>>13)|0)+(h0>>>26)|0,h0&=67108863,R=Math.imul(d,P0),L=Math.imul(d,j0),L=L+Math.imul(a,P0)|0,_=Math.imul(a,j0),R=R+Math.imul(r,D0)|0,L=L+Math.imul(r,N0)|0,L=L+Math.imul(Y0,D0)|0,_=_+Math.imul(Y0,N0)|0;var u0=(G+R|0)+((L&8191)<<13)|0;G=(_+(L>>>13)|0)+(u0>>>26)|0,u0&=67108863,R=Math.imul(X0,P0),L=Math.imul(X0,j0),L=L+Math.imul(F0,P0)|0,_=Math.imul(F0,j0),R=R+Math.imul(d,D0)|0,L=L+Math.imul(d,N0)|0,L=L+Math.imul(a,D0)|0,_=_+Math.imul(a,N0)|0,R=R+Math.imul(r,T0)|0,L=L+Math.imul(r,O0)|0,L=L+Math.imul(Y0,T0)|0,_=_+Math.imul(Y0,O0)|0;var o0=(G+R|0)+((L&8191)<<13)|0;G=(_+(L>>>13)|0)+(o0>>>26)|0,o0&=67108863,R=Math.imul(q,P0),L=Math.imul(q,j0),L=L+Math.imul(m,P0)|0,_=Math.imul(m,j0),R=R+Math.imul(X0,D0)|0,L=L+Math.imul(X0,N0)|0,L=L+Math.imul(F0,D0)|0,_=_+Math.imul(F0,N0)|0,R=R+Math.imul(d,T0)|0,L=L+Math.imul(d,O0)|0,L=L+Math.imul(a,T0)|0,_=_+Math.imul(a,O0)|0,R=R+Math.imul(r,L0)|0,L=L+Math.imul(r,k0)|0,L=L+Math.imul(Y0,L0)|0,_=_+Math.imul(Y0,k0)|0;var s0=(G+R|0)+((L&8191)<<13)|0;G=(_+(L>>>13)|0)+(s0>>>26)|0,s0&=67108863,R=Math.imul(K0,P0),L=Math.imul(K0,j0),L=L+Math.imul(t,P0)|0,_=Math.imul(t,j0),R=R+Math.imul(q,D0)|0,L=L+Math.imul(q,N0)|0,L=L+Math.imul(m,D0)|0,_=_+Math.imul(m,N0)|0,R=R+Math.imul(X0,T0)|0,L=L+Math.imul(X0,O0)|0,L=L+Math.imul(F0,T0)|0,_=_+Math.imul(F0,O0)|0,R=R+Math.imul(d,L0)|0,L=L+Math.imul(d,k0)|0,L=L+Math.imul(a,L0)|0,_=_+Math.imul(a,k0)|0,R=R+Math.imul(r,I0)|0,L=L+Math.imul(r,q0)|0,L=L+Math.imul(Y0,I0)|0,_=_+Math.imul(Y0,q0)|0;var a0=(G+R|0)+((L&8191)<<13)|0;G=(_+(L>>>13)|0)+(a0>>>26)|0,a0&=67108863,R=Math.imul(H0,P0),L=Math.imul(H0,j0),L=L+Math.imul(G0,P0)|0,_=Math.imul(G0,j0),R=R+Math.imul(K0,D0)|0,L=L+Math.imul(K0,N0)|0,L=L+Math.imul(t,D0)|0,_=_+Math.imul(t,N0)|0,R=R+Math.imul(q,T0)|0,L=L+Math.imul(q,O0)|0,L=L+Math.imul(m,T0)|0,_=_+Math.imul(m,O0)|0,R=R+Math.imul(X0,L0)|0,L=L+Math.imul(X0,k0)|0,L=L+Math.imul(F0,L0)|0,_=_+Math.imul(F0,k0)|0,R=R+Math.imul(d,I0)|0,L=L+Math.imul(d,q0)|0,L=L+Math.imul(a,I0)|0,_=_+Math.imul(a,q0)|0,R=R+Math.imul(r,B0)|0,L=L+Math.imul(r,R0)|0,L=L+Math.imul(Y0,B0)|0,_=_+Math.imul(Y0,R0)|0;var f0=(G+R|0)+((L&8191)<<13)|0;G=(_+(L>>>13)|0)+(f0>>>26)|0,f0&=67108863,R=Math.imul(U0,P0),L=Math.imul(U0,j0),L=L+Math.imul(Z0,P0)|0,_=Math.imul(Z0,j0),R=R+Math.imul(H0,D0)|0,L=L+Math.imul(H0,N0)|0,L=L+Math.imul(G0,D0)|0,_=_+Math.imul(G0,N0)|0,R=R+Math.imul(K0,T0)|0,L=L+Math.imul(K0,O0)|0,L=L+Math.imul(t,T0)|0,_=_+Math.imul(t,O0)|0,R=R+Math.imul(q,L0)|0,L=L+Math.imul(q,k0)|0,L=L+Math.imul(m,L0)|0,_=_+Math.imul(m,k0)|0,R=R+Math.imul(X0,I0)|0,L=L+Math.imul(X0,q0)|0,L=L+Math.imul(F0,I0)|0,_=_+Math.imul(F0,q0)|0,R=R+Math.imul(d,B0)|0,L=L+Math.imul(d,R0)|0,L=L+Math.imul(a,B0)|0,_=_+Math.imul(a,R0)|0,R=R+Math.imul(r,E0)|0,L=L+Math.imul(r,S0)|0,L=L+Math.imul(Y0,E0)|0,_=_+Math.imul(Y0,S0)|0;var n0=(G+R|0)+((L&8191)<<13)|0;G=(_+(L>>>13)|0)+(n0>>>26)|0,n0&=67108863,R=Math.imul(O,P0),L=Math.imul(O,j0),L=L+Math.imul(B,P0)|0,_=Math.imul(B,j0),R=R+Math.imul(U0,D0)|0,L=L+Math.imul(U0,N0)|0,L=L+Math.imul(Z0,D0)|0,_=_+Math.imul(Z0,N0)|0,R=R+Math.imul(H0,T0)|0,L=L+Math.imul(H0,O0)|0,L=L+Math.imul(G0,T0)|0,_=_+Math.imul(G0,O0)|0,R=R+Math.imul(K0,L0)|0,L=L+Math.imul(K0,k0)|0,L=L+Math.imul(t,L0)|0,_=_+Math.imul(t,k0)|0,R=R+Math.imul(q,I0)|0,L=L+Math.imul(q,q0)|0,L=L+Math.imul(m,I0)|0,_=_+Math.imul(m,q0)|0,R=R+Math.imul(X0,B0)|0,L=L+Math.imul(X0,R0)|0,L=L+Math.imul(F0,B0)|0,_=_+Math.imul(F0,R0)|0,R=R+Math.imul(d,E0)|0,L=L+Math.imul(d,S0)|0,L=L+Math.imul(a,E0)|0,_=_+Math.imul(a,S0)|0,R=R+Math.imul(r,x0)|0,L=L+Math.imul(r,A0)|0,L=L+Math.imul(Y0,x0)|0,_=_+Math.imul(Y0,A0)|0;var r0=(G+R|0)+((L&8191)<<13)|0;G=(_+(L>>>13)|0)+(r0>>>26)|0,r0&=67108863,R=Math.imul(h,P0),L=Math.imul(h,j0),L=L+Math.imul(o,P0)|0,_=Math.imul(o,j0),R=R+Math.imul(O,D0)|0,L=L+Math.imul(O,N0)|0,L=L+Math.imul(B,D0)|0,_=_+Math.imul(B,N0)|0,R=R+Math.imul(U0,T0)|0,L=L+Math.imul(U0,O0)|0,L=L+Math.imul(Z0,T0)|0,_=_+Math.imul(Z0,O0)|0,R=R+Math.imul(H0,L0)|0,L=L+Math.imul(H0,k0)|0,L=L+Math.imul(G0,L0)|0,_=_+Math.imul(G0,k0)|0,R=R+Math.imul(K0,I0)|0,L=L+Math.imul(K0,q0)|0,L=L+Math.imul(t,I0)|0,_=_+Math.imul(t,q0)|0,R=R+Math.imul(q,B0)|0,L=L+Math.imul(q,R0)|0,L=L+Math.imul(m,B0)|0,_=_+Math.imul(m,R0)|0,R=R+Math.imul(X0,E0)|0,L=L+Math.imul(X0,S0)|0,L=L+Math.imul(F0,E0)|0,_=_+Math.imul(F0,S0)|0,R=R+Math.imul(d,x0)|0,L=L+Math.imul(d,A0)|0,L=L+Math.imul(a,x0)|0,_=_+Math.imul(a,A0)|0,R=R+Math.imul(r,v0)|0,L=L+Math.imul(r,M0)|0,L=L+Math.imul(Y0,v0)|0,_=_+Math.imul(Y0,M0)|0;var i0=(G+R|0)+((L&8191)<<13)|0;G=(_+(L>>>13)|0)+(i0>>>26)|0,i0&=67108863,R=Math.imul(J0,P0),L=Math.imul(J0,j0),L=L+Math.imul($0,P0)|0,_=Math.imul($0,j0),R=R+Math.imul(h,D0)|0,L=L+Math.imul(h,N0)|0,L=L+Math.imul(o,D0)|0,_=_+Math.imul(o,N0)|0,R=R+Math.imul(O,T0)|0,L=L+Math.imul(O,O0)|0,L=L+Math.imul(B,T0)|0,_=_+Math.imul(B,O0)|0,R=R+Math.imul(U0,L0)|0,L=L+Math.imul(U0,k0)|0,L=L+Math.imul(Z0,L0)|0,_=_+Math.imul(Z0,k0)|0,R=R+Math.imul(H0,I0)|0,L=L+Math.imul(H0,q0)|0,L=L+Math.imul(G0,I0)|0,_=_+Math.imul(G0,q0)|0,R=R+Math.imul(K0,B0)|0,L=L+Math.imul(K0,R0)|0,L=L+Math.imul(t,B0)|0,_=_+Math.imul(t,R0)|0,R=R+Math.imul(q,E0)|0,L=L+Math.imul(q,S0)|0,L=L+Math.imul(m,E0)|0,_=_+Math.imul(m,S0)|0,R=R+Math.imul(X0,x0)|0,L=L+Math.imul(X0,A0)|0,L=L+Math.imul(F0,x0)|0,_=_+Math.imul(F0,A0)|0,R=R+Math.imul(d,v0)|0,L=L+Math.imul(d,M0)|0,L=L+Math.imul(a,v0)|0,_=_+Math.imul(a,M0)|0,R=R+Math.imul(r,g0)|0,L=L+Math.imul(r,m0)|0,L=L+Math.imul(Y0,g0)|0,_=_+Math.imul(Y0,m0)|0;var t0=(G+R|0)+((L&8191)<<13)|0;G=(_+(L>>>13)|0)+(t0>>>26)|0,t0&=67108863,R=Math.imul(J0,D0),L=Math.imul(J0,N0),L=L+Math.imul($0,D0)|0,_=Math.imul($0,N0),R=R+Math.imul(h,T0)|0,L=L+Math.imul(h,O0)|0,L=L+Math.imul(o,T0)|0,_=_+Math.imul(o,O0)|0,R=R+Math.imul(O,L0)|0,L=L+Math.imul(O,k0)|0,L=L+Math.imul(B,L0)|0,_=_+Math.imul(B,k0)|0,R=R+Math.imul(U0,I0)|0,L=L+Math.imul(U0,q0)|0,L=L+Math.imul(Z0,I0)|0,_=_+Math.imul(Z0,q0)|0,R=R+Math.imul(H0,B0)|0,L=L+Math.imul(H0,R0)|0,L=L+Math.imul(G0,B0)|0,_=_+Math.imul(G0,R0)|0,R=R+Math.imul(K0,E0)|0,L=L+Math.imul(K0,S0)|0,L=L+Math.imul(t,E0)|0,_=_+Math.imul(t,S0)|0,R=R+Math.imul(q,x0)|0,L=L+Math.imul(q,A0)|0,L=L+Math.imul(m,x0)|0,_=_+Math.imul(m,A0)|0,R=R+Math.imul(X0,v0)|0,L=L+Math.imul(X0,M0)|0,L=L+Math.imul(F0,v0)|0,_=_+Math.imul(F0,M0)|0,R=R+Math.imul(d,g0)|0,L=L+Math.imul(d,m0)|0,L=L+Math.imul(a,g0)|0,_=_+Math.imul(a,m0)|0;var e0=(G+R|0)+((L&8191)<<13)|0;G=(_+(L>>>13)|0)+(e0>>>26)|0,e0&=67108863,R=Math.imul(J0,T0),L=Math.imul(J0,O0),L=L+Math.imul($0,T0)|0,_=Math.imul($0,O0),R=R+Math.imul(h,L0)|0,L=L+Math.imul(h,k0)|0,L=L+Math.imul(o,L0)|0,_=_+Math.imul(o,k0)|0,R=R+Math.imul(O,I0)|0,L=L+Math.imul(O,q0)|0,L=L+Math.imul(B,I0)|0,_=_+Math.imul(B,q0)|0,R=R+Math.imul(U0,B0)|0,L=L+Math.imul(U0,R0)|0,L=L+Math.imul(Z0,B0)|0,_=_+Math.imul(Z0,R0)|0,R=R+Math.imul(H0,E0)|0,L=L+Math.imul(H0,S0)|0,L=L+Math.imul(G0,E0)|0,_=_+Math.imul(G0,S0)|0,R=R+Math.imul(K0,x0)|0,L=L+Math.imul(K0,A0)|0,L=L+Math.imul(t,x0)|0,_=_+Math.imul(t,A0)|0,R=R+Math.imul(q,v0)|0,L=L+Math.imul(q,M0)|0,L=L+Math.imul(m,v0)|0,_=_+Math.imul(m,M0)|0,R=R+Math.imul(X0,g0)|0,L=L+Math.imul(X0,m0)|0,L=L+Math.imul(F0,g0)|0,_=_+Math.imul(F0,m0)|0;var X5=(G+R|0)+((L&8191)<<13)|0;G=(_+(L>>>13)|0)+(X5>>>26)|0,X5&=67108863,R=Math.imul(J0,L0),L=Math.imul(J0,k0),L=L+Math.imul($0,L0)|0,_=Math.imul($0,k0),R=R+Math.imul(h,I0)|0,L=L+Math.imul(h,q0)|0,L=L+Math.imul(o,I0)|0,_=_+Math.imul(o,q0)|0,R=R+Math.imul(O,B0)|0,L=L+Math.imul(O,R0)|0,L=L+Math.imul(B,B0)|0,_=_+Math.imul(B,R0)|0,R=R+Math.imul(U0,E0)|0,L=L+Math.imul(U0,S0)|0,L=L+Math.imul(Z0,E0)|0,_=_+Math.imul(Z0,S0)|0,R=R+Math.imul(H0,x0)|0,L=L+Math.imul(H0,A0)|0,L=L+Math.imul(G0,x0)|0,_=_+Math.imul(G0,A0)|0,R=R+Math.imul(K0,v0)|0,L=L+Math.imul(K0,M0)|0,L=L+Math.imul(t,v0)|0,_=_+Math.imul(t,M0)|0,R=R+Math.imul(q,g0)|0,L=L+Math.imul(q,m0)|0,L=L+Math.imul(m,g0)|0,_=_+Math.imul(m,m0)|0;var K5=(G+R|0)+((L&8191)<<13)|0;G=(_+(L>>>13)|0)+(K5>>>26)|0,K5&=67108863,R=Math.imul(J0,I0),L=Math.imul(J0,q0),L=L+Math.imul($0,I0)|0,_=Math.imul($0,q0),R=R+Math.imul(h,B0)|0,L=L+Math.imul(h,R0)|0,L=L+Math.imul(o,B0)|0,_=_+Math.imul(o,R0)|0,R=R+Math.imul(O,E0)|0,L=L+Math.imul(O,S0)|0,L=L+Math.imul(B,E0)|0,_=_+Math.imul(B,S0)|0,R=R+Math.imul(U0,x0)|0,L=L+Math.imul(U0,A0)|0,L=L+Math.imul(Z0,x0)|0,_=_+Math.imul(Z0,A0)|0,R=R+Math.imul(H0,v0)|0,L=L+Math.imul(H0,M0)|0,L=L+Math.imul(G0,v0)|0,_=_+Math.imul(G0,M0)|0,R=R+Math.imul(K0,g0)|0,L=L+Math.imul(K0,m0)|0,L=L+Math.imul(t,g0)|0,_=_+Math.imul(t,m0)|0;var Y5=(G+R|0)+((L&8191)<<13)|0;G=(_+(L>>>13)|0)+(Y5>>>26)|0,Y5&=67108863,R=Math.imul(J0,B0),L=Math.imul(J0,R0),L=L+Math.imul($0,B0)|0,_=Math.imul($0,R0),R=R+Math.imul(h,E0)|0,L=L+Math.imul(h,S0)|0,L=L+Math.imul(o,E0)|0,_=_+Math.imul(o,S0)|0,R=R+Math.imul(O,x0)|0,L=L+Math.imul(O,A0)|0,L=L+Math.imul(B,x0)|0,_=_+Math.imul(B,A0)|0,R=R+Math.imul(U0,v0)|0,L=L+Math.imul(U0,M0)|0,L=L+Math.imul(Z0,v0)|0,_=_+Math.imul(Z0,M0)|0,R=R+Math.imul(H0,g0)|0,L=L+Math.imul(H0,m0)|0,L=L+Math.imul(G0,g0)|0,_=_+Math.imul(G0,m0)|0;var J5=(G+R|0)+((L&8191)<<13)|0;G=(_+(L>>>13)|0)+(J5>>>26)|0,J5&=67108863,R=Math.imul(J0,E0),L=Math.imul(J0,S0),L=L+Math.imul($0,E0)|0,_=Math.imul($0,S0),R=R+Math.imul(h,x0)|0,L=L+Math.imul(h,A0)|0,L=L+Math.imul(o,x0)|0,_=_+Math.imul(o,A0)|0,R=R+Math.imul(O,v0)|0,L=L+Math.imul(O,M0)|0,L=L+Math.imul(B,v0)|0,_=_+Math.imul(B,M0)|0,R=R+Math.imul(U0,g0)|0,L=L+Math.imul(U0,m0)|0,L=L+Math.imul(Z0,g0)|0,_=_+Math.imul(Z0,m0)|0;var Q5=(G+R|0)+((L&8191)<<13)|0;G=(_+(L>>>13)|0)+(Q5>>>26)|0,Q5&=67108863,R=Math.imul(J0,x0),L=Math.imul(J0,A0),L=L+Math.imul($0,x0)|0,_=Math.imul($0,A0),R=R+Math.imul(h,v0)|0,L=L+Math.imul(h,M0)|0,L=L+Math.imul(o,v0)|0,_=_+Math.imul(o,M0)|0,R=R+Math.imul(O,g0)|0,L=L+Math.imul(O,m0)|0,L=L+Math.imul(B,g0)|0,_=_+Math.imul(B,m0)|0;var F9=(G+R|0)+((L&8191)<<13)|0;G=(_+(L>>>13)|0)+(F9>>>26)|0,F9&=67108863,R=Math.imul(J0,v0),L=Math.imul(J0,M0),L=L+Math.imul($0,v0)|0,_=Math.imul($0,M0),R=R+Math.imul(h,g0)|0,L=L+Math.imul(h,m0)|0,L=L+Math.imul(o,g0)|0,_=_+Math.imul(o,m0)|0;var H9=(G+R|0)+((L&8191)<<13)|0;G=(_+(L>>>13)|0)+(H9>>>26)|0,H9&=67108863,R=Math.imul(J0,g0),L=Math.imul(J0,m0),L=L+Math.imul($0,g0)|0,_=Math.imul($0,m0);var C9=(G+R|0)+((L&8191)<<13)|0;return G=(_+(L>>>13)|0)+(C9>>>26)|0,C9&=67108863,K[0]=h0,K[1]=u0,K[2]=o0,K[3]=s0,K[4]=a0,K[5]=f0,K[6]=n0,K[7]=r0,K[8]=i0,K[9]=t0,K[10]=e0,K[11]=X5,K[12]=K5,K[13]=Y5,K[14]=J5,K[15]=Q5,K[16]=F9,K[17]=H9,K[18]=C9,G!==0&&(K[19]=G,W.length++),W};Math.imul||(v=x);function y(J,F,W){W.negative=F.negative^J.negative,W.length=J.length+F.length;for(var Z=0,C=0,K=0;K<W.length-1;K++){var G=C;C=0;for(var R=Z&67108863,L=Math.min(K,F.length-1),_=Math.max(0,K-J.length+1);_<=L;_++){var s=K-_,r=J.words[s]|0,Y0=F.words[_]|0,u=r*Y0,d=u&67108863;G=G+(u/67108864|0)|0,d=d+R|0,R=d&67108863,G=G+(d>>>26)|0,C+=G>>>26,G&=67108863}W.words[K]=R,Z=G,G=C}return Z!==0?W.words[K]=Z:W.length--,W._strip()}function p(J,F,W){return y(J,F,W)}H.prototype.mulTo=function(J,F){var W,Z=this.length+J.length;return this.length===10&&J.length===10?W=v(this,J,F):Z<63?W=x(this,J,F):Z<1024?W=y(this,J,F):W=p(this,J,F),W};function c(J,F){this.x=J,this.y=F}c.prototype.makeRBT=function(J){for(var F=new Array(J),W=H.prototype._countBits(J)-1,Z=0;Z<J;Z++)F[Z]=this.revBin(Z,W,J);return F},c.prototype.revBin=function(J,F,W){if(J===0||J===W-1)return J;for(var Z=0,C=0;C<F;C++)Z|=(J&1)<<F-C-1,J>>=1;return Z},c.prototype.permute=function(J,F,W,Z,C,K){for(var G=0;G<K;G++)Z[G]=F[J[G]],C[G]=W[J[G]]},c.prototype.transform=function(J,F,W,Z,C,K){this.permute(K,J,F,W,Z,C);for(var G=1;G<C;G<<=1)for(var R=G<<1,L=Math.cos(2*Math.PI/R),_=Math.sin(2*Math.PI/R),s=0;s<C;s+=R)for(var r=L,Y0=_,u=0;u<G;u++){var d=W[s+u],a=Z[s+u],V0=W[s+u+G],X0=Z[s+u+G],F0=r*V0-Y0*X0;X0=r*X0+Y0*V0,V0=F0,W[s+u]=d+V0,Z[s+u]=a+X0,W[s+u+G]=d-V0,Z[s+u+G]=a-X0,u!==R&&(F0=L*r-_*Y0,Y0=L*Y0+_*r,r=F0)}},c.prototype.guessLen13b=function(J,F){var W=Math.max(F,J)|1,Z=W&1,C=0;for(W=W/2|0;W;W=W>>>1)C++;return 1<<C+1+Z},c.prototype.conjugate=function(J,F,W){if(!(W<=1))for(var Z=0;Z<W/2;Z++){var C=J[Z];J[Z]=J[W-Z-1],J[W-Z-1]=C,C=F[Z],F[Z]=-F[W-Z-1],F[W-Z-1]=-C}},c.prototype.normalize13b=function(J,F){for(var W=0,Z=0;Z<F/2;Z++){var C=Math.round(J[2*Z+1]/F)*8192+Math.round(J[2*Z]/F)+W;J[Z]=C&67108863,C<67108864?W=0:W=C/67108864|0}return J},c.prototype.convert13b=function(J,F,W,Z){for(var C=0,K=0;K<F;K++)C=C+(J[K]|0),W[2*K]=C&8191,C=C>>>13,W[2*K+1]=C&8191,C=C>>>13;for(K=2*F;K<Z;++K)W[K]=0;j(C===0),j((C&-8192)===0)},c.prototype.stub=function(J){for(var F=new Array(J),W=0;W<J;W++)F[W]=0;return F},c.prototype.mulp=function(J,F,W){var Z=2*this.guessLen13b(J.length,F.length),C=this.makeRBT(Z),K=this.stub(Z),G=new Array(Z),R=new Array(Z),L=new Array(Z),_=new Array(Z),s=new Array(Z),r=new Array(Z),Y0=W.words;Y0.length=Z,this.convert13b(J.words,J.length,G,Z),this.convert13b(F.words,F.length,_,Z),this.transform(G,K,R,L,Z,C),this.transform(_,K,s,r,Z,C);for(var u=0;u<Z;u++){var d=R[u]*s[u]-L[u]*r[u];L[u]=R[u]*r[u]+L[u]*s[u],R[u]=d}return this.conjugate(R,L,Z),this.transform(R,L,Y0,K,Z,C),this.conjugate(Y0,K,Z),this.normalize13b(Y0,Z),W.negative=J.negative^F.negative,W.length=J.length+F.length,W._strip()},H.prototype.mul=function(J){var F=new H(null);return F.words=new Array(this.length+J.length),this.mulTo(J,F)},H.prototype.mulf=function(J){var F=new H(null);return F.words=new Array(this.length+J.length),p(this,J,F)},H.prototype.imul=function(J){return this.clone().mulTo(J,this)},H.prototype.imuln=function(J){var F=J<0;F&&(J=-J),j(typeof J=="number"),j(J<67108864);for(var W=0,Z=0;Z<this.length;Z++){var C=(this.words[Z]|0)*J,K=(C&67108863)+(W&67108863);W>>=26,W+=C/67108864|0,W+=K>>>26,this.words[Z]=K&67108863}return W!==0&&(this.words[Z]=W,this.length++),F?this.ineg():this},H.prototype.muln=function(J){return this.clone().imuln(J)},H.prototype.sqr=function(){return this.mul(this)},H.prototype.isqr=function(){return this.imul(this.clone())},H.prototype.pow=function(J){var F=M(J);if(F.length===0)return new H(1);for(var W=this,Z=0;Z<F.length&&F[Z]===0;Z++,W=W.sqr());if(++Z<F.length)for(var C=W.sqr();Z<F.length;Z++,C=C.sqr())F[Z]!==0&&(W=W.mul(C));return W},H.prototype.iushln=function(J){j(typeof J=="number"&&J>=0);var F=J%26,W=(J-F)/26,Z=67108863>>>26-F<<26-F,C;if(F!==0){var K=0;for(C=0;C<this.length;C++){var G=this.words[C]&Z,R=(this.words[C]|0)-G<<F;this.words[C]=R|K,K=G>>>26-F}K&&(this.words[C]=K,this.length++)}if(W!==0){for(C=this.length-1;C>=0;C--)this.words[C+W]=this.words[C];for(C=0;C<W;C++)this.words[C]=0;this.length+=W}return this._strip()},H.prototype.ishln=function(J){return j(this.negative===0),this.iushln(J)},H.prototype.iushrn=function(J,F,W){j(typeof J=="number"&&J>=0);var Z;F?Z=(F-F%26)/26:Z=0;var C=J%26,K=Math.min((J-C)/26,this.length),G=67108863^67108863>>>C<<C,R=W;if(Z-=K,Z=Math.max(0,Z),R){for(var L=0;L<K;L++)R.words[L]=this.words[L];R.length=K}if(K!==0)if(this.length>K)for(this.length-=K,L=0;L<this.length;L++)this.words[L]=this.words[L+K];else this.words[0]=0,this.length=1;var _=0;for(L=this.length-1;L>=0&&(_!==0||L>=Z);L--){var s=this.words[L]|0;this.words[L]=_<<26-C|s>>>C,_=s&G}return R&&_!==0&&(R.words[R.length++]=_),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},H.prototype.ishrn=function(J,F,W){return j(this.negative===0),this.iushrn(J,F,W)},H.prototype.shln=function(J){return this.clone().ishln(J)},H.prototype.ushln=function(J){return this.clone().iushln(J)},H.prototype.shrn=function(J){return this.clone().ishrn(J)},H.prototype.ushrn=function(J){return this.clone().iushrn(J)},H.prototype.testn=function(J){j(typeof J=="number"&&J>=0);var F=J%26,W=(J-F)/26,Z=1<<F;if(this.length<=W)return!1;var C=this.words[W];return!!(C&Z)},H.prototype.imaskn=function(J){j(typeof J=="number"&&J>=0);var F=J%26,W=(J-F)/26;if(j(this.negative===0,"imaskn works only with positive numbers"),this.length<=W)return this;if(F!==0&&W++,this.length=Math.min(W,this.length),F!==0){var Z=67108863^67108863>>>F<<F;this.words[this.length-1]&=Z}return this._strip()},H.prototype.maskn=function(J){return this.clone().imaskn(J)},H.prototype.iaddn=function(J){return j(typeof J=="number"),j(J<67108864),J<0?this.isubn(-J):this.negative!==0?this.length===1&&(this.words[0]|0)<=J?(this.words[0]=J-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(J),this.negative=1,this):this._iaddn(J)},H.prototype._iaddn=function(J){this.words[0]+=J;for(var F=0;F<this.length&&this.words[F]>=67108864;F++)this.words[F]-=67108864,F===this.length-1?this.words[F+1]=1:this.words[F+1]++;return this.length=Math.max(this.length,F+1),this},H.prototype.isubn=function(J){if(j(typeof J=="number"),j(J<67108864),J<0)return this.iaddn(-J);if(this.negative!==0)return this.negative=0,this.iaddn(J),this.negative=1,this;if(this.words[0]-=J,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var F=0;F<this.length&&this.words[F]<0;F++)this.words[F]+=67108864,this.words[F+1]-=1;return this._strip()},H.prototype.addn=function(J){return this.clone().iaddn(J)},H.prototype.subn=function(J){return this.clone().isubn(J)},H.prototype.iabs=function(){return this.negative=0,this},H.prototype.abs=function(){return this.clone().iabs()},H.prototype._ishlnsubmul=function(J,F,W){var Z=J.length+W,C;this._expand(Z);var K,G=0;for(C=0;C<J.length;C++){K=(this.words[C+W]|0)+G;var R=(J.words[C]|0)*F;K-=R&67108863,G=(K>>26)-(R/67108864|0),this.words[C+W]=K&67108863}for(;C<this.length-W;C++)K=(this.words[C+W]|0)+G,G=K>>26,this.words[C+W]=K&67108863;if(G===0)return this._strip();for(j(G===-1),G=0,C=0;C<this.length;C++)K=-(this.words[C]|0)+G,G=K>>26,this.words[C]=K&67108863;return this.negative=1,this._strip()},H.prototype._wordDiv=function(J,F){var W=this.length-J.length,Z=this.clone(),C=J,K=C.words[C.length-1]|0,G=this._countBits(K);W=26-G,W!==0&&(C=C.ushln(W),Z.iushln(W),K=C.words[C.length-1]|0);var R=Z.length-C.length,L;if(F!=="mod"){L=new H(null),L.length=R+1,L.words=new Array(L.length);for(var _=0;_<L.length;_++)L.words[_]=0}var s=Z.clone()._ishlnsubmul(C,1,R);s.negative===0&&(Z=s,L&&(L.words[R]=1));for(var r=R-1;r>=0;r--){var Y0=(Z.words[C.length+r]|0)*67108864+(Z.words[C.length+r-1]|0);for(Y0=Math.min(Y0/K|0,67108863),Z._ishlnsubmul(C,Y0,r);Z.negative!==0;)Y0--,Z.negative=0,Z._ishlnsubmul(C,1,r),Z.isZero()||(Z.negative^=1);L&&(L.words[r]=Y0)}return L&&L._strip(),Z._strip(),F!=="div"&&W!==0&&Z.iushrn(W),{div:L||null,mod:Z}},H.prototype.divmod=function(J,F,W){if(j(!J.isZero()),this.isZero())return{div:new H(0),mod:new H(0)};var Z,C,K;return this.negative!==0&&J.negative===0?(K=this.neg().divmod(J,F),F!=="mod"&&(Z=K.div.neg()),F!=="div"&&(C=K.mod.neg(),W&&C.negative!==0&&C.iadd(J)),{div:Z,mod:C}):this.negative===0&&J.negative!==0?(K=this.divmod(J.neg(),F),F!=="mod"&&(Z=K.div.neg()),{div:Z,mod:K.mod}):(this.negative&J.negative)!==0?(K=this.neg().divmod(J.neg(),F),F!=="div"&&(C=K.mod.neg(),W&&C.negative!==0&&C.isub(J)),{div:K.div,mod:C}):J.length>this.length||this.cmp(J)<0?{div:new H(0),mod:this}:J.length===1?F==="div"?{div:this.divn(J.words[0]),mod:null}:F==="mod"?{div:null,mod:new H(this.modrn(J.words[0]))}:{div:this.divn(J.words[0]),mod:new H(this.modrn(J.words[0]))}:this._wordDiv(J,F)},H.prototype.div=function(J){return this.divmod(J,"div",!1).div},H.prototype.mod=function(J){return this.divmod(J,"mod",!1).mod},H.prototype.umod=function(J){return this.divmod(J,"mod",!0).mod},H.prototype.divRound=function(J){var F=this.divmod(J);if(F.mod.isZero())return F.div;var W=F.div.negative!==0?F.mod.isub(J):F.mod,Z=J.ushrn(1),C=J.andln(1),K=W.cmp(Z);return K<0||C===1&&K===0?F.div:F.div.negative!==0?F.div.isubn(1):F.div.iaddn(1)},H.prototype.modrn=function(J){var F=J<0;F&&(J=-J),j(J<=67108863);for(var W=67108864%J,Z=0,C=this.length-1;C>=0;C--)Z=(W*Z+(this.words[C]|0))%J;return F?-Z:Z},H.prototype.modn=function(J){return this.modrn(J)},H.prototype.idivn=function(J){var F=J<0;F&&(J=-J),j(J<=67108863);for(var W=0,Z=this.length-1;Z>=0;Z--){var C=(this.words[Z]|0)+W*67108864;this.words[Z]=C/J|0,W=C%J}return this._strip(),F?this.ineg():this},H.prototype.divn=function(J){return this.clone().idivn(J)},H.prototype.egcd=function(J){j(J.negative===0),j(!J.isZero());var F=this,W=J.clone();F.negative!==0?F=F.umod(J):F=F.clone();for(var Z=new H(1),C=new H(0),K=new H(0),G=new H(1),R=0;F.isEven()&&W.isEven();)F.iushrn(1),W.iushrn(1),++R;for(var L=W.clone(),_=F.clone();!F.isZero();){for(var s=0,r=1;(F.words[0]&r)===0&&s<26;++s,r<<=1);if(s>0)for(F.iushrn(s);s-- >0;)(Z.isOdd()||C.isOdd())&&(Z.iadd(L),C.isub(_)),Z.iushrn(1),C.iushrn(1);for(var Y0=0,u=1;(W.words[0]&u)===0&&Y0<26;++Y0,u<<=1);if(Y0>0)for(W.iushrn(Y0);Y0-- >0;)(K.isOdd()||G.isOdd())&&(K.iadd(L),G.isub(_)),K.iushrn(1),G.iushrn(1);F.cmp(W)>=0?(F.isub(W),Z.isub(K),C.isub(G)):(W.isub(F),K.isub(Z),G.isub(C))}return{a:K,b:G,gcd:W.iushln(R)}},H.prototype._invmp=function(J){j(J.negative===0),j(!J.isZero());var F=this,W=J.clone();F.negative!==0?F=F.umod(J):F=F.clone();for(var Z=new H(1),C=new H(0),K=W.clone();F.cmpn(1)>0&&W.cmpn(1)>0;){for(var G=0,R=1;(F.words[0]&R)===0&&G<26;++G,R<<=1);if(G>0)for(F.iushrn(G);G-- >0;)Z.isOdd()&&Z.iadd(K),Z.iushrn(1);for(var L=0,_=1;(W.words[0]&_)===0&&L<26;++L,_<<=1);if(L>0)for(W.iushrn(L);L-- >0;)C.isOdd()&&C.iadd(K),C.iushrn(1);F.cmp(W)>=0?(F.isub(W),Z.isub(C)):(W.isub(F),C.isub(Z))}var s;return F.cmpn(1)===0?s=Z:s=C,s.cmpn(0)<0&&s.iadd(J),s},H.prototype.gcd=function(J){if(this.isZero())return J.abs();if(J.isZero())return this.abs();var F=this.clone(),W=J.clone();F.negative=0,W.negative=0;for(var Z=0;F.isEven()&&W.isEven();Z++)F.iushrn(1),W.iushrn(1);do{for(;F.isEven();)F.iushrn(1);for(;W.isEven();)W.iushrn(1);var C=F.cmp(W);if(C<0){var K=F;F=W,W=K}else if(C===0||W.cmpn(1)===0)break;F.isub(W)}while(!0);return W.iushln(Z)},H.prototype.invm=function(J){return this.egcd(J).a.umod(J)},H.prototype.isEven=function(){return(this.words[0]&1)===0},H.prototype.isOdd=function(){return(this.words[0]&1)===1},H.prototype.andln=function(J){return this.words[0]&J},H.prototype.bincn=function(J){j(typeof J=="number");var F=J%26,W=(J-F)/26,Z=1<<F;if(this.length<=W)return this._expand(W+1),this.words[W]|=Z,this;for(var C=Z,K=W;C!==0&&K<this.length;K++){var G=this.words[K]|0;G+=C,C=G>>>26,G&=67108863,this.words[K]=G}return C!==0&&(this.words[K]=C,this.length++),this},H.prototype.isZero=function(){return this.length===1&&this.words[0]===0},H.prototype.cmpn=function(J){var F=J<0;if(this.negative!==0&&!F)return-1;if(this.negative===0&&F)return 1;this._strip();var W;if(this.length>1)W=1;else{F&&(J=-J),j(J<=67108863,"Number is too big");var Z=this.words[0]|0;W=Z===J?0:Z<J?-1:1}return this.negative!==0?-W|0:W},H.prototype.cmp=function(J){if(this.negative!==0&&J.negative===0)return-1;if(this.negative===0&&J.negative!==0)return 1;var F=this.ucmp(J);return this.negative!==0?-F|0:F},H.prototype.ucmp=function(J){if(this.length>J.length)return 1;if(this.length<J.length)return-1;for(var F=0,W=this.length-1;W>=0;W--){var Z=this.words[W]|0,C=J.words[W]|0;if(Z!==C){Z<C?F=-1:Z>C&&(F=1);break}}return F},H.prototype.gtn=function(J){return this.cmpn(J)===1},H.prototype.gt=function(J){return this.cmp(J)===1},H.prototype.gten=function(J){return this.cmpn(J)>=0},H.prototype.gte=function(J){return this.cmp(J)>=0},H.prototype.ltn=function(J){return this.cmpn(J)===-1},H.prototype.lt=function(J){return this.cmp(J)===-1},H.prototype.lten=function(J){return this.cmpn(J)<=0},H.prototype.lte=function(J){return this.cmp(J)<=0},H.prototype.eqn=function(J){return this.cmpn(J)===0},H.prototype.eq=function(J){return this.cmp(J)===0},H.red=function(J){return new Y(J)},H.prototype.toRed=function(J){return j(!this.red,"Already a number in reduction context"),j(this.negative===0,"red works only with positives"),J.convertTo(this)._forceRed(J)},H.prototype.fromRed=function(){return j(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},H.prototype._forceRed=function(J){return this.red=J,this},H.prototype.forceRed=function(J){return j(!this.red,"Already a number in reduction context"),this._forceRed(J)},H.prototype.redAdd=function(J){return j(this.red,"redAdd works only with red numbers"),this.red.add(this,J)},H.prototype.redIAdd=function(J){return j(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,J)},H.prototype.redSub=function(J){return j(this.red,"redSub works only with red numbers"),this.red.sub(this,J)},H.prototype.redISub=function(J){return j(this.red,"redISub works only with red numbers"),this.red.isub(this,J)},H.prototype.redShl=function(J){return j(this.red,"redShl works only with red numbers"),this.red.shl(this,J)},H.prototype.redMul=function(J){return j(this.red,"redMul works only with red numbers"),this.red._verify2(this,J),this.red.mul(this,J)},H.prototype.redIMul=function(J){return j(this.red,"redMul works only with red numbers"),this.red._verify2(this,J),this.red.imul(this,J)},H.prototype.redSqr=function(){return j(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},H.prototype.redISqr=function(){return j(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},H.prototype.redSqrt=function(){return j(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},H.prototype.redInvm=function(){return j(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},H.prototype.redNeg=function(){return j(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},H.prototype.redPow=function(J){return j(this.red&&!J.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,J)};var n={k256:null,p224:null,p192:null,p25519:null};function i(J,F){this.name=J,this.p=new H(F,16),this.n=this.p.bitLength(),this.k=new H(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}i.prototype._tmp=function(){var J=new H(null);return J.words=new Array(Math.ceil(this.n/13)),J},i.prototype.ireduce=function(J){var F=J,W;do this.split(F,this.tmp),F=this.imulK(F),F=F.iadd(this.tmp),W=F.bitLength();while(W>this.n);var Z=W<this.n?-1:F.ucmp(this.p);return Z===0?(F.words[0]=0,F.length=1):Z>0?F.isub(this.p):F.strip!==void 0?F.strip():F._strip(),F},i.prototype.split=function(J,F){J.iushrn(this.n,0,F)},i.prototype.imulK=function(J){return J.imul(this.k)};function Q0(){i.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}S(Q0,i),Q0.prototype.split=function(J,F){for(var W=4194303,Z=Math.min(J.length,9),C=0;C<Z;C++)F.words[C]=J.words[C];if(F.length=Z,J.length<=9){J.words[0]=0,J.length=1;return}var K=J.words[9];for(F.words[F.length++]=K&W,C=10;C<J.length;C++){var G=J.words[C]|0;J.words[C-10]=(G&W)<<4|K>>>22,K=G}K>>>=22,J.words[C-10]=K,K===0&&J.length>10?J.length-=10:J.length-=9},Q0.prototype.imulK=function(J){J.words[J.length]=0,J.words[J.length+1]=0,J.length+=2;for(var F=0,W=0;W<J.length;W++){var Z=J.words[W]|0;F+=Z*977,J.words[W]=F&67108863,F=Z*64+(F/67108864|0)}return J.words[J.length-1]===0&&(J.length--,J.words[J.length-1]===0&&J.length--),J};function f(){i.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}S(f,i);function W0(){i.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}S(W0,i);function X(){i.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}S(X,i),X.prototype.imulK=function(J){for(var F=0,W=0;W<J.length;W++){var Z=(J.words[W]|0)*19+F,C=Z&67108863;Z>>>=26,J.words[W]=C,F=Z}return F!==0&&(J.words[J.length++]=F),J},H._prime=function(J){if(n[J])return n[J];var F;if(J==="k256")F=new Q0;else if(J==="p224")F=new f;else if(J==="p192")F=new W0;else if(J==="p25519")F=new X;else throw new Error("Unknown prime "+J);return n[J]=F,F};function Y(J){if(typeof J=="string"){var F=H._prime(J);this.m=F.p,this.prime=F}else j(J.gtn(1),"modulus must be greater than 1"),this.m=J,this.prime=null}Y.prototype._verify1=function(J){j(J.negative===0,"red works only with positives"),j(J.red,"red works only with red numbers")},Y.prototype._verify2=function(J,F){j((J.negative|F.negative)===0,"red works only with positives"),j(J.red&&J.red===F.red,"red works only with red numbers")},Y.prototype.imod=function(J){return this.prime?this.prime.ireduce(J)._forceRed(this):($(J,J.umod(this.m)._forceRed(this)),J)},Y.prototype.neg=function(J){return J.isZero()?J.clone():this.m.sub(J)._forceRed(this)},Y.prototype.add=function(J,F){this._verify2(J,F);var W=J.add(F);return W.cmp(this.m)>=0&&W.isub(this.m),W._forceRed(this)},Y.prototype.iadd=function(J,F){this._verify2(J,F);var W=J.iadd(F);return W.cmp(this.m)>=0&&W.isub(this.m),W},Y.prototype.sub=function(J,F){this._verify2(J,F);var W=J.sub(F);return W.cmpn(0)<0&&W.iadd(this.m),W._forceRed(this)},Y.prototype.isub=function(J,F){this._verify2(J,F);var W=J.isub(F);return W.cmpn(0)<0&&W.iadd(this.m),W},Y.prototype.shl=function(J,F){return this._verify1(J),this.imod(J.ushln(F))},Y.prototype.imul=function(J,F){return this._verify2(J,F),this.imod(J.imul(F))},Y.prototype.mul=function(J,F){return this._verify2(J,F),this.imod(J.mul(F))},Y.prototype.isqr=function(J){return this.imul(J,J.clone())},Y.prototype.sqr=function(J){return this.mul(J,J)},Y.prototype.sqrt=function(J){if(J.isZero())return J.clone();var F=this.m.andln(3);if(j(F%2===1),F===3){var W=this.m.add(new H(1)).iushrn(2);return this.pow(J,W)}for(var Z=this.m.subn(1),C=0;!Z.isZero()&&Z.andln(1)===0;)C++,Z.iushrn(1);j(!Z.isZero());var K=new H(1).toRed(this),G=K.redNeg(),R=this.m.subn(1).iushrn(1),L=this.m.bitLength();for(L=new H(2*L*L).toRed(this);this.pow(L,R).cmp(G)!==0;)L.redIAdd(G);for(var _=this.pow(L,Z),s=this.pow(J,Z.addn(1).iushrn(1)),r=this.pow(J,Z),Y0=C;r.cmp(K)!==0;){for(var u=r,d=0;u.cmp(K)!==0;d++)u=u.redSqr();j(d<Y0);var a=this.pow(_,new H(1).iushln(Y0-d-1));s=s.redMul(a),_=a.redSqr(),r=r.redMul(_),Y0=d}return s},Y.prototype.invm=function(J){var F=J._invmp(this.m);return F.negative!==0?(F.negative=0,this.imod(F).redNeg()):this.imod(F)},Y.prototype.pow=function(J,F){if(F.isZero())return new H(1).toRed(this);if(F.cmpn(1)===0)return J.clone();var W=4,Z=new Array(1<<W);Z[0]=new H(1).toRed(this),Z[1]=J;for(var C=2;C<Z.length;C++)Z[C]=this.mul(Z[C-1],J);var K=Z[0],G=0,R=0,L=F.bitLength()%26;for(L===0&&(L=26),C=F.length-1;C>=0;C--){for(var _=F.words[C],s=L-1;s>=0;s--){var r=_>>s&1;if(K!==Z[0]&&(K=this.sqr(K)),r===0&&G===0){R=0;continue}G<<=1,G|=r,R++,!(R!==W&&(C!==0||s!==0))&&(K=this.mul(K,Z[G]),R=0,G=0)}L=26}return K},Y.prototype.convertTo=function(J){var F=J.umod(this.m);return F===J?F.clone():F},Y.prototype.convertFrom=function(J){var F=J.clone();return F.red=null,F},H.mont=function(J){return new Q(J)};function Q(J){Y.call(this,J),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new H(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)}S(Q,Y),Q.prototype.convertTo=function(J){return this.imod(J.ushln(this.shift))},Q.prototype.convertFrom=function(J){var F=this.imod(J.mul(this.rinv));return F.red=null,F},Q.prototype.imul=function(J,F){if(J.isZero()||F.isZero())return J.words[0]=0,J.length=1,J;var W=J.imul(F),Z=W.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=W.isub(Z).iushrn(this.shift),K=C;return C.cmp(this.m)>=0?K=C.isub(this.m):C.cmpn(0)<0&&(K=C.iadd(this.m)),K._forceRed(this)},Q.prototype.mul=function(J,F){if(J.isZero()||F.isZero())return new H(0)._forceRed(this);var W=J.mul(F),Z=W.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=W.isub(Z).iushrn(this.shift),K=C;return C.cmp(this.m)>=0?K=C.isub(this.m):C.cmpn(0)<0&&(K=C.iadd(this.m)),K._forceRed(this)},Q.prototype.invm=function(J){var F=this.imod(J._invmp(this.m).mul(this.r2));return F._forceRed(this)}})(typeof g>"u"||g,l)}),S9=C0((l,g)=>{var E=E9(),A=g5();function j(P){var k=S(P),z=k.toRed(E.mont(P.modulus)).redPow(new E(P.publicExponent)).fromRed();return{blinder:z,unblinder:k.invm(P.modulus)}}function S(P){var k=P.modulus.byteLength(),z;do z=new E(A(k));while(z.cmp(P.modulus)>=0||!z.umod(P.prime1)||!z.umod(P.prime2));return z}function H(P,k){var z=j(k),V=k.modulus.byteLength(),$=new E(P).mul(z.blinder).umod(k.modulus),T=$.toRed(E.mont(k.prime1)),D=$.toRed(E.mont(k.prime2)),U=k.coefficient,N=k.prime1,I=k.prime2,M=T.redPow(k.exponent1).fromRed(),x=D.redPow(k.exponent2).fromRed(),v=M.isub(x).imul(U).umod(N).imul(I);return x.iadd(v).imul(z.unblinder).umod(k.modulus).toArrayLike(Buffer,"be",V)}H.getr=S,g.exports=H}),Y8=C0((l,g)=>{g.exports={name:"elliptic",version:"6.5.4",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny <fedor@indutny.com>",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}}),I5=C0((l,g)=>{(function(E,A){function j(X,Y){if(!X)throw new Error(Y||"Assertion failed")}function S(X,Y){X.super_=Y;var Q=function(){};Q.prototype=Y.prototype,X.prototype=new Q,X.prototype.constructor=X}function H(X,Y,Q){if(H.isBN(X))return X;this.negative=0,this.words=null,this.length=0,this.red=null,X!==null&&((Y==="le"||Y==="be")&&(Q=Y,Y=10),this._init(X||0,Y||10,Q||"be"))}typeof E=="object"?E.exports=H:A.BN=H,H.BN=H,H.wordSize=26;var P;try{typeof window<"u"&&typeof window.Buffer<"u"?P=window.Buffer:P=M5().Buffer}catch{}H.isBN=function(X){return X instanceof H?!0:X!==null&&typeof X=="object"&&X.constructor.wordSize===H.wordSize&&Array.isArray(X.words)},H.max=function(X,Y){return X.cmp(Y)>0?X:Y},H.min=function(X,Y){return X.cmp(Y)<0?X:Y},H.prototype._init=function(X,Y,Q){if(typeof X=="number")return this._initNumber(X,Y,Q);if(typeof X=="object")return this._initArray(X,Y,Q);Y==="hex"&&(Y=16),j(Y===(Y|0)&&Y>=2&&Y<=36),X=X.toString().replace(/\s+/g,"");var J=0;X[0]==="-"&&(J++,this.negative=1),J<X.length&&(Y===16?this._parseHex(X,J,Q):(this._parseBase(X,Y,J),Q==="le"&&this._initArray(this.toArray(),Y,Q)))},H.prototype._initNumber=function(X,Y,Q){X<0&&(this.negative=1,X=-X),X<67108864?(this.words=[X&67108863],this.length=1):X<4503599627370496?(this.words=[X&67108863,X/67108864&67108863],this.length=2):(j(X<9007199254740992),this.words=[X&67108863,X/67108864&67108863,1],this.length=3),Q==="le"&&this._initArray(this.toArray(),Y,Q)},H.prototype._initArray=function(X,Y,Q){if(j(typeof X.length=="number"),X.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(X.length/3),this.words=new Array(this.length);for(var J=0;J<this.length;J++)this.words[J]=0;var F,W,Z=0;if(Q==="be")for(J=X.length-1,F=0;J>=0;J-=3)W=X[J]|X[J-1]<<8|X[J-2]<<16,this.words[F]|=W<<Z&67108863,this.words[F+1]=W>>>26-Z&67108863,Z+=24,Z>=26&&(Z-=26,F++);else if(Q==="le")for(J=0,F=0;J<X.length;J+=3)W=X[J]|X[J+1]<<8|X[J+2]<<16,this.words[F]|=W<<Z&67108863,this.words[F+1]=W>>>26-Z&67108863,Z+=24,Z>=26&&(Z-=26,F++);return this.strip()};function k(X,Y){var Q=X.charCodeAt(Y);return Q>=65&&Q<=70?Q-55:Q>=97&&Q<=102?Q-87:Q-48&15}function z(X,Y,Q){var J=k(X,Q);return Q-1>=Y&&(J|=k(X,Q-1)<<4),J}H.prototype._parseHex=function(X,Y,Q){this.length=Math.ceil((X.length-Y)/6),this.words=new Array(this.length);for(var J=0;J<this.length;J++)this.words[J]=0;var F=0,W=0,Z;if(Q==="be")for(J=X.length-1;J>=Y;J-=2)Z=z(X,Y,J)<<F,this.words[W]|=Z&67108863,F>=18?(F-=18,W+=1,this.words[W]|=Z>>>26):F+=8;else{var C=X.length-Y;for(J=C%2===0?Y+1:Y;J<X.length;J+=2)Z=z(X,Y,J)<<F,this.words[W]|=Z&67108863,F>=18?(F-=18,W+=1,this.words[W]|=Z>>>26):F+=8}this.strip()};function V(X,Y,Q,J){for(var F=0,W=Math.min(X.length,Q),Z=Y;Z<W;Z++){var C=X.charCodeAt(Z)-48;F*=J,C>=49?F+=C-49+10:C>=17?F+=C-17+10:F+=C}return F}H.prototype._parseBase=function(X,Y,Q){this.words=[0],this.length=1;for(var J=0,F=1;F<=67108863;F*=Y)J++;J--,F=F/Y|0;for(var W=X.length-Q,Z=W%J,C=Math.min(W,W-Z)+Q,K=0,G=Q;G<C;G+=J)K=V(X,G,G+J,Y),this.imuln(F),this.words[0]+K<67108864?this.words[0]+=K:this._iaddn(K);if(Z!==0){var R=1;for(K=V(X,G,X.length,Y),G=0;G<Z;G++)R*=Y;this.imuln(R),this.words[0]+K<67108864?this.words[0]+=K:this._iaddn(K)}this.strip()},H.prototype.copy=function(X){X.words=new Array(this.length);for(var Y=0;Y<this.length;Y++)X.words[Y]=this.words[Y];X.length=this.length,X.negative=this.negative,X.red=this.red},H.prototype.clone=function(){var X=new H(null);return this.copy(X),X},H.prototype._expand=function(X){for(;this.length<X;)this.words[this.length++]=0;return this},H.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},H.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},H.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var $=["","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"],T=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],D=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];H.prototype.toString=function(X,Y){X=X||10,Y=Y|0||1;var Q;if(X===16||X==="hex"){Q="";for(var J=0,F=0,W=0;W<this.length;W++){var Z=this.words[W],C=((Z<<J|F)&16777215).toString(16);F=Z>>>24-J&16777215,F!==0||W!==this.length-1?Q=$[6-C.length]+C+Q:Q=C+Q,J+=2,J>=26&&(J-=26,W--)}for(F!==0&&(Q=F.toString(16)+Q);Q.length%Y!==0;)Q="0"+Q;return this.negative!==0&&(Q="-"+Q),Q}if(X===(X|0)&&X>=2&&X<=36){var K=T[X],G=D[X];Q="";var R=this.clone();for(R.negative=0;!R.isZero();){var L=R.modn(G).toString(X);R=R.idivn(G),R.isZero()?Q=L+Q:Q=$[K-L.length]+L+Q}for(this.isZero()&&(Q="0"+Q);Q.length%Y!==0;)Q="0"+Q;return this.negative!==0&&(Q="-"+Q),Q}j(!1,"Base should be between 2 and 36")},H.prototype.toNumber=function(){var X=this.words[0];return this.length===2?X+=this.words[1]*67108864:this.length===3&&this.words[2]===1?X+=4503599627370496+this.words[1]*67108864:this.length>2&&j(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-X:X},H.prototype.toJSON=function(){return this.toString(16)},H.prototype.toBuffer=function(X,Y){return j(typeof P<"u"),this.toArrayLike(P,X,Y)},H.prototype.toArray=function(X,Y){return this.toArrayLike(Array,X,Y)},H.prototype.toArrayLike=function(X,Y,Q){var J=this.byteLength(),F=Q||Math.max(1,J);j(J<=F,"byte array longer than desired length"),j(F>0,"Requested array length <= 0"),this.strip();var W=Y==="le",Z=new X(F),C,K,G=this.clone();if(W){for(K=0;!G.isZero();K++)C=G.andln(255),G.iushrn(8),Z[K]=C;for(;K<F;K++)Z[K]=0}else{for(K=0;K<F-J;K++)Z[K]=0;for(K=0;!G.isZero();K++)C=G.andln(255),G.iushrn(8),Z[F-K-1]=C}return Z},Math.clz32?H.prototype._countBits=function(X){return 32-Math.clz32(X)}:H.prototype._countBits=function(X){var Y=X,Q=0;return Y>=4096&&(Q+=13,Y>>>=13),Y>=64&&(Q+=7,Y>>>=7),Y>=8&&(Q+=4,Y>>>=4),Y>=2&&(Q+=2,Y>>>=2),Q+Y},H.prototype._zeroBits=function(X){if(X===0)return 26;var Y=X,Q=0;return(Y&8191)===0&&(Q+=13,Y>>>=13),(Y&127)===0&&(Q+=7,Y>>>=7),(Y&15)===0&&(Q+=4,Y>>>=4),(Y&3)===0&&(Q+=2,Y>>>=2),(Y&1)===0&&Q++,Q},H.prototype.bitLength=function(){var X=this.words[this.length-1],Y=this._countBits(X);return(this.length-1)*26+Y};function U(X){for(var Y=new Array(X.bitLength()),Q=0;Q<Y.length;Q++){var J=Q/26|0,F=Q%26;Y[Q]=(X.words[J]&1<<F)>>>F}return Y}H.prototype.zeroBits=function(){if(this.isZero())return 0;for(var X=0,Y=0;Y<this.length;Y++){var Q=this._zeroBits(this.words[Y]);if(X+=Q,Q!==26)break}return X},H.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},H.prototype.toTwos=function(X){return this.negative!==0?this.abs().inotn(X).iaddn(1):this.clone()},H.prototype.fromTwos=function(X){return this.testn(X-1)?this.notn(X).iaddn(1).ineg():this.clone()},H.prototype.isNeg=function(){return this.negative!==0},H.prototype.neg=function(){return this.clone().ineg()},H.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},H.prototype.iuor=function(X){for(;this.length<X.length;)this.words[this.length++]=0;for(var Y=0;Y<X.length;Y++)this.words[Y]=this.words[Y]|X.words[Y];return this.strip()},H.prototype.ior=function(X){return j((this.negative|X.negative)===0),this.iuor(X)},H.prototype.or=function(X){return this.length>X.length?this.clone().ior(X):X.clone().ior(this)},H.prototype.uor=function(X){return this.length>X.length?this.clone().iuor(X):X.clone().iuor(this)},H.prototype.iuand=function(X){var Y;this.length>X.length?Y=X:Y=this;for(var Q=0;Q<Y.length;Q++)this.words[Q]=this.words[Q]&X.words[Q];return this.length=Y.length,this.strip()},H.prototype.iand=function(X){return j((this.negative|X.negative)===0),this.iuand(X)},H.prototype.and=function(X){return this.length>X.length?this.clone().iand(X):X.clone().iand(this)},H.prototype.uand=function(X){return this.length>X.length?this.clone().iuand(X):X.clone().iuand(this)},H.prototype.iuxor=function(X){var Y,Q;this.length>X.length?(Y=this,Q=X):(Y=X,Q=this);for(var J=0;J<Q.length;J++)this.words[J]=Y.words[J]^Q.words[J];if(this!==Y)for(;J<Y.length;J++)this.words[J]=Y.words[J];return this.length=Y.length,this.strip()},H.prototype.ixor=function(X){return j((this.negative|X.negative)===0),this.iuxor(X)},H.prototype.xor=function(X){return this.length>X.length?this.clone().ixor(X):X.clone().ixor(this)},H.prototype.uxor=function(X){return this.length>X.length?this.clone().iuxor(X):X.clone().iuxor(this)},H.prototype.inotn=function(X){j(typeof X=="number"&&X>=0);var Y=Math.ceil(X/26)|0,Q=X%26;this._expand(Y),Q>0&&Y--;for(var J=0;J<Y;J++)this.words[J]=~this.words[J]&67108863;return Q>0&&(this.words[J]=~this.words[J]&67108863>>26-Q),this.strip()},H.prototype.notn=function(X){return this.clone().inotn(X)},H.prototype.setn=function(X,Y){j(typeof X=="number"&&X>=0);var Q=X/26|0,J=X%26;return this._expand(Q+1),Y?this.words[Q]=this.words[Q]|1<<J:this.words[Q]=this.words[Q]&~(1<<J),this.strip()},H.prototype.iadd=function(X){var Y;if(this.negative!==0&&X.negative===0)return this.negative=0,Y=this.isub(X),this.negative^=1,this._normSign();if(this.negative===0&&X.negative!==0)return X.negative=0,Y=this.isub(X),X.negative=1,Y._normSign();var Q,J;this.length>X.length?(Q=this,J=X):(Q=X,J=this);for(var F=0,W=0;W<J.length;W++)Y=(Q.words[W]|0)+(J.words[W]|0)+F,this.words[W]=Y&67108863,F=Y>>>26;for(;F!==0&&W<Q.length;W++)Y=(Q.words[W]|0)+F,this.words[W]=Y&67108863,F=Y>>>26;if(this.length=Q.length,F!==0)this.words[this.length]=F,this.length++;else if(Q!==this)for(;W<Q.length;W++)this.words[W]=Q.words[W];return this},H.prototype.add=function(X){var Y;return X.negative!==0&&this.negative===0?(X.negative=0,Y=this.sub(X),X.negative^=1,Y):X.negative===0&&this.negative!==0?(this.negative=0,Y=X.sub(this),this.negative=1,Y):this.length>X.length?this.clone().iadd(X):X.clone().iadd(this)},H.prototype.isub=function(X){if(X.negative!==0){X.negative=0;var Y=this.iadd(X);return X.negative=1,Y._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(X),this.negative=1,this._normSign();var Q=this.cmp(X);if(Q===0)return this.negative=0,this.length=1,this.words[0]=0,this;var J,F;Q>0?(J=this,F=X):(J=X,F=this);for(var W=0,Z=0;Z<F.length;Z++)Y=(J.words[Z]|0)-(F.words[Z]|0)+W,W=Y>>26,this.words[Z]=Y&67108863;for(;W!==0&&Z<J.length;Z++)Y=(J.words[Z]|0)+W,W=Y>>26,this.words[Z]=Y&67108863;if(W===0&&Z<J.length&&J!==this)for(;Z<J.length;Z++)this.words[Z]=J.words[Z];return this.length=Math.max(this.length,Z),J!==this&&(this.negative=1),this.strip()},H.prototype.sub=function(X){return this.clone().isub(X)};function N(X,Y,Q){Q.negative=Y.negative^X.negative;var J=X.length+Y.length|0;Q.length=J,J=J-1|0;var F=X.words[0]|0,W=Y.words[0]|0,Z=F*W,C=Z&67108863,K=Z/67108864|0;Q.words[0]=C;for(var G=1;G<J;G++){for(var R=K>>>26,L=K&67108863,_=Math.min(G,Y.length-1),s=Math.max(0,G-X.length+1);s<=_;s++){var r=G-s|0;F=X.words[r]|0,W=Y.words[s]|0,Z=F*W+L,R+=Z/67108864|0,L=Z&67108863}Q.words[G]=L|0,K=R|0}return K!==0?Q.words[G]=K|0:Q.length--,Q.strip()}var I=function(X,Y,Q){var J=X.words,F=Y.words,W=Q.words,Z=0,C,K,G,R=J[0]|0,L=R&8191,_=R>>>13,s=J[1]|0,r=s&8191,Y0=s>>>13,u=J[2]|0,d=u&8191,a=u>>>13,V0=J[3]|0,X0=V0&8191,F0=V0>>>13,w=J[4]|0,q=w&8191,m=w>>>13,e=J[5]|0,K0=e&8191,t=e>>>13,_0=J[6]|0,H0=_0&8191,G0=_0>>>13,w0=J[7]|0,U0=w0&8191,Z0=w0>>>13,c0=J[8]|0,O=c0&8191,B=c0>>>13,b=J[9]|0,h=b&8191,o=b>>>13,z0=F[0]|0,J0=z0&8191,$0=z0>>>13,b0=F[1]|0,P0=b0&8191,j0=b0>>>13,y0=F[2]|0,D0=y0&8191,N0=y0>>>13,H5=F[3]|0,T0=H5&8191,O0=H5>>>13,l0=F[4]|0,L0=l0&8191,k0=l0>>>13,G5=F[5]|0,I0=G5&8191,q0=G5>>>13,W5=F[6]|0,B0=W5&8191,R0=W5>>>13,Z5=F[7]|0,E0=Z5&8191,S0=Z5>>>13,$5=F[8]|0,x0=$5&8191,A0=$5>>>13,j5=F[9]|0,v0=j5&8191,M0=j5>>>13;Q.negative=X.negative^Y.negative,Q.length=19,C=Math.imul(L,J0),K=Math.imul(L,$0),K=K+Math.imul(_,J0)|0,G=Math.imul(_,$0);var F5=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(F5>>>26)|0,F5&=67108863,C=Math.imul(r,J0),K=Math.imul(r,$0),K=K+Math.imul(Y0,J0)|0,G=Math.imul(Y0,$0),C=C+Math.imul(L,P0)|0,K=K+Math.imul(L,j0)|0,K=K+Math.imul(_,P0)|0,G=G+Math.imul(_,j0)|0;var g0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(g0>>>26)|0,g0&=67108863,C=Math.imul(d,J0),K=Math.imul(d,$0),K=K+Math.imul(a,J0)|0,G=Math.imul(a,$0),C=C+Math.imul(r,P0)|0,K=K+Math.imul(r,j0)|0,K=K+Math.imul(Y0,P0)|0,G=G+Math.imul(Y0,j0)|0,C=C+Math.imul(L,D0)|0,K=K+Math.imul(L,N0)|0,K=K+Math.imul(_,D0)|0,G=G+Math.imul(_,N0)|0;var m0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(m0>>>26)|0,m0&=67108863,C=Math.imul(X0,J0),K=Math.imul(X0,$0),K=K+Math.imul(F0,J0)|0,G=Math.imul(F0,$0),C=C+Math.imul(d,P0)|0,K=K+Math.imul(d,j0)|0,K=K+Math.imul(a,P0)|0,G=G+Math.imul(a,j0)|0,C=C+Math.imul(r,D0)|0,K=K+Math.imul(r,N0)|0,K=K+Math.imul(Y0,D0)|0,G=G+Math.imul(Y0,N0)|0,C=C+Math.imul(L,T0)|0,K=K+Math.imul(L,O0)|0,K=K+Math.imul(_,T0)|0,G=G+Math.imul(_,O0)|0;var h0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(h0>>>26)|0,h0&=67108863,C=Math.imul(q,J0),K=Math.imul(q,$0),K=K+Math.imul(m,J0)|0,G=Math.imul(m,$0),C=C+Math.imul(X0,P0)|0,K=K+Math.imul(X0,j0)|0,K=K+Math.imul(F0,P0)|0,G=G+Math.imul(F0,j0)|0,C=C+Math.imul(d,D0)|0,K=K+Math.imul(d,N0)|0,K=K+Math.imul(a,D0)|0,G=G+Math.imul(a,N0)|0,C=C+Math.imul(r,T0)|0,K=K+Math.imul(r,O0)|0,K=K+Math.imul(Y0,T0)|0,G=G+Math.imul(Y0,O0)|0,C=C+Math.imul(L,L0)|0,K=K+Math.imul(L,k0)|0,K=K+Math.imul(_,L0)|0,G=G+Math.imul(_,k0)|0;var u0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(u0>>>26)|0,u0&=67108863,C=Math.imul(K0,J0),K=Math.imul(K0,$0),K=K+Math.imul(t,J0)|0,G=Math.imul(t,$0),C=C+Math.imul(q,P0)|0,K=K+Math.imul(q,j0)|0,K=K+Math.imul(m,P0)|0,G=G+Math.imul(m,j0)|0,C=C+Math.imul(X0,D0)|0,K=K+Math.imul(X0,N0)|0,K=K+Math.imul(F0,D0)|0,G=G+Math.imul(F0,N0)|0,C=C+Math.imul(d,T0)|0,K=K+Math.imul(d,O0)|0,K=K+Math.imul(a,T0)|0,G=G+Math.imul(a,O0)|0,C=C+Math.imul(r,L0)|0,K=K+Math.imul(r,k0)|0,K=K+Math.imul(Y0,L0)|0,G=G+Math.imul(Y0,k0)|0,C=C+Math.imul(L,I0)|0,K=K+Math.imul(L,q0)|0,K=K+Math.imul(_,I0)|0,G=G+Math.imul(_,q0)|0;var o0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(o0>>>26)|0,o0&=67108863,C=Math.imul(H0,J0),K=Math.imul(H0,$0),K=K+Math.imul(G0,J0)|0,G=Math.imul(G0,$0),C=C+Math.imul(K0,P0)|0,K=K+Math.imul(K0,j0)|0,K=K+Math.imul(t,P0)|0,G=G+Math.imul(t,j0)|0,C=C+Math.imul(q,D0)|0,K=K+Math.imul(q,N0)|0,K=K+Math.imul(m,D0)|0,G=G+Math.imul(m,N0)|0,C=C+Math.imul(X0,T0)|0,K=K+Math.imul(X0,O0)|0,K=K+Math.imul(F0,T0)|0,G=G+Math.imul(F0,O0)|0,C=C+Math.imul(d,L0)|0,K=K+Math.imul(d,k0)|0,K=K+Math.imul(a,L0)|0,G=G+Math.imul(a,k0)|0,C=C+Math.imul(r,I0)|0,K=K+Math.imul(r,q0)|0,K=K+Math.imul(Y0,I0)|0,G=G+Math.imul(Y0,q0)|0,C=C+Math.imul(L,B0)|0,K=K+Math.imul(L,R0)|0,K=K+Math.imul(_,B0)|0,G=G+Math.imul(_,R0)|0;var s0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(s0>>>26)|0,s0&=67108863,C=Math.imul(U0,J0),K=Math.imul(U0,$0),K=K+Math.imul(Z0,J0)|0,G=Math.imul(Z0,$0),C=C+Math.imul(H0,P0)|0,K=K+Math.imul(H0,j0)|0,K=K+Math.imul(G0,P0)|0,G=G+Math.imul(G0,j0)|0,C=C+Math.imul(K0,D0)|0,K=K+Math.imul(K0,N0)|0,K=K+Math.imul(t,D0)|0,G=G+Math.imul(t,N0)|0,C=C+Math.imul(q,T0)|0,K=K+Math.imul(q,O0)|0,K=K+Math.imul(m,T0)|0,G=G+Math.imul(m,O0)|0,C=C+Math.imul(X0,L0)|0,K=K+Math.imul(X0,k0)|0,K=K+Math.imul(F0,L0)|0,G=G+Math.imul(F0,k0)|0,C=C+Math.imul(d,I0)|0,K=K+Math.imul(d,q0)|0,K=K+Math.imul(a,I0)|0,G=G+Math.imul(a,q0)|0,C=C+Math.imul(r,B0)|0,K=K+Math.imul(r,R0)|0,K=K+Math.imul(Y0,B0)|0,G=G+Math.imul(Y0,R0)|0,C=C+Math.imul(L,E0)|0,K=K+Math.imul(L,S0)|0,K=K+Math.imul(_,E0)|0,G=G+Math.imul(_,S0)|0;var a0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(a0>>>26)|0,a0&=67108863,C=Math.imul(O,J0),K=Math.imul(O,$0),K=K+Math.imul(B,J0)|0,G=Math.imul(B,$0),C=C+Math.imul(U0,P0)|0,K=K+Math.imul(U0,j0)|0,K=K+Math.imul(Z0,P0)|0,G=G+Math.imul(Z0,j0)|0,C=C+Math.imul(H0,D0)|0,K=K+Math.imul(H0,N0)|0,K=K+Math.imul(G0,D0)|0,G=G+Math.imul(G0,N0)|0,C=C+Math.imul(K0,T0)|0,K=K+Math.imul(K0,O0)|0,K=K+Math.imul(t,T0)|0,G=G+Math.imul(t,O0)|0,C=C+Math.imul(q,L0)|0,K=K+Math.imul(q,k0)|0,K=K+Math.imul(m,L0)|0,G=G+Math.imul(m,k0)|0,C=C+Math.imul(X0,I0)|0,K=K+Math.imul(X0,q0)|0,K=K+Math.imul(F0,I0)|0,G=G+Math.imul(F0,q0)|0,C=C+Math.imul(d,B0)|0,K=K+Math.imul(d,R0)|0,K=K+Math.imul(a,B0)|0,G=G+Math.imul(a,R0)|0,C=C+Math.imul(r,E0)|0,K=K+Math.imul(r,S0)|0,K=K+Math.imul(Y0,E0)|0,G=G+Math.imul(Y0,S0)|0,C=C+Math.imul(L,x0)|0,K=K+Math.imul(L,A0)|0,K=K+Math.imul(_,x0)|0,G=G+Math.imul(_,A0)|0;var f0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(f0>>>26)|0,f0&=67108863,C=Math.imul(h,J0),K=Math.imul(h,$0),K=K+Math.imul(o,J0)|0,G=Math.imul(o,$0),C=C+Math.imul(O,P0)|0,K=K+Math.imul(O,j0)|0,K=K+Math.imul(B,P0)|0,G=G+Math.imul(B,j0)|0,C=C+Math.imul(U0,D0)|0,K=K+Math.imul(U0,N0)|0,K=K+Math.imul(Z0,D0)|0,G=G+Math.imul(Z0,N0)|0,C=C+Math.imul(H0,T0)|0,K=K+Math.imul(H0,O0)|0,K=K+Math.imul(G0,T0)|0,G=G+Math.imul(G0,O0)|0,C=C+Math.imul(K0,L0)|0,K=K+Math.imul(K0,k0)|0,K=K+Math.imul(t,L0)|0,G=G+Math.imul(t,k0)|0,C=C+Math.imul(q,I0)|0,K=K+Math.imul(q,q0)|0,K=K+Math.imul(m,I0)|0,G=G+Math.imul(m,q0)|0,C=C+Math.imul(X0,B0)|0,K=K+Math.imul(X0,R0)|0,K=K+Math.imul(F0,B0)|0,G=G+Math.imul(F0,R0)|0,C=C+Math.imul(d,E0)|0,K=K+Math.imul(d,S0)|0,K=K+Math.imul(a,E0)|0,G=G+Math.imul(a,S0)|0,C=C+Math.imul(r,x0)|0,K=K+Math.imul(r,A0)|0,K=K+Math.imul(Y0,x0)|0,G=G+Math.imul(Y0,A0)|0,C=C+Math.imul(L,v0)|0,K=K+Math.imul(L,M0)|0,K=K+Math.imul(_,v0)|0,G=G+Math.imul(_,M0)|0;var n0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(n0>>>26)|0,n0&=67108863,C=Math.imul(h,P0),K=Math.imul(h,j0),K=K+Math.imul(o,P0)|0,G=Math.imul(o,j0),C=C+Math.imul(O,D0)|0,K=K+Math.imul(O,N0)|0,K=K+Math.imul(B,D0)|0,G=G+Math.imul(B,N0)|0,C=C+Math.imul(U0,T0)|0,K=K+Math.imul(U0,O0)|0,K=K+Math.imul(Z0,T0)|0,G=G+Math.imul(Z0,O0)|0,C=C+Math.imul(H0,L0)|0,K=K+Math.imul(H0,k0)|0,K=K+Math.imul(G0,L0)|0,G=G+Math.imul(G0,k0)|0,C=C+Math.imul(K0,I0)|0,K=K+Math.imul(K0,q0)|0,K=K+Math.imul(t,I0)|0,G=G+Math.imul(t,q0)|0,C=C+Math.imul(q,B0)|0,K=K+Math.imul(q,R0)|0,K=K+Math.imul(m,B0)|0,G=G+Math.imul(m,R0)|0,C=C+Math.imul(X0,E0)|0,K=K+Math.imul(X0,S0)|0,K=K+Math.imul(F0,E0)|0,G=G+Math.imul(F0,S0)|0,C=C+Math.imul(d,x0)|0,K=K+Math.imul(d,A0)|0,K=K+Math.imul(a,x0)|0,G=G+Math.imul(a,A0)|0,C=C+Math.imul(r,v0)|0,K=K+Math.imul(r,M0)|0,K=K+Math.imul(Y0,v0)|0,G=G+Math.imul(Y0,M0)|0;var r0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(r0>>>26)|0,r0&=67108863,C=Math.imul(h,D0),K=Math.imul(h,N0),K=K+Math.imul(o,D0)|0,G=Math.imul(o,N0),C=C+Math.imul(O,T0)|0,K=K+Math.imul(O,O0)|0,K=K+Math.imul(B,T0)|0,G=G+Math.imul(B,O0)|0,C=C+Math.imul(U0,L0)|0,K=K+Math.imul(U0,k0)|0,K=K+Math.imul(Z0,L0)|0,G=G+Math.imul(Z0,k0)|0,C=C+Math.imul(H0,I0)|0,K=K+Math.imul(H0,q0)|0,K=K+Math.imul(G0,I0)|0,G=G+Math.imul(G0,q0)|0,C=C+Math.imul(K0,B0)|0,K=K+Math.imul(K0,R0)|0,K=K+Math.imul(t,B0)|0,G=G+Math.imul(t,R0)|0,C=C+Math.imul(q,E0)|0,K=K+Math.imul(q,S0)|0,K=K+Math.imul(m,E0)|0,G=G+Math.imul(m,S0)|0,C=C+Math.imul(X0,x0)|0,K=K+Math.imul(X0,A0)|0,K=K+Math.imul(F0,x0)|0,G=G+Math.imul(F0,A0)|0,C=C+Math.imul(d,v0)|0,K=K+Math.imul(d,M0)|0,K=K+Math.imul(a,v0)|0,G=G+Math.imul(a,M0)|0;var i0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(i0>>>26)|0,i0&=67108863,C=Math.imul(h,T0),K=Math.imul(h,O0),K=K+Math.imul(o,T0)|0,G=Math.imul(o,O0),C=C+Math.imul(O,L0)|0,K=K+Math.imul(O,k0)|0,K=K+Math.imul(B,L0)|0,G=G+Math.imul(B,k0)|0,C=C+Math.imul(U0,I0)|0,K=K+Math.imul(U0,q0)|0,K=K+Math.imul(Z0,I0)|0,G=G+Math.imul(Z0,q0)|0,C=C+Math.imul(H0,B0)|0,K=K+Math.imul(H0,R0)|0,K=K+Math.imul(G0,B0)|0,G=G+Math.imul(G0,R0)|0,C=C+Math.imul(K0,E0)|0,K=K+Math.imul(K0,S0)|0,K=K+Math.imul(t,E0)|0,G=G+Math.imul(t,S0)|0,C=C+Math.imul(q,x0)|0,K=K+Math.imul(q,A0)|0,K=K+Math.imul(m,x0)|0,G=G+Math.imul(m,A0)|0,C=C+Math.imul(X0,v0)|0,K=K+Math.imul(X0,M0)|0,K=K+Math.imul(F0,v0)|0,G=G+Math.imul(F0,M0)|0;var t0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(t0>>>26)|0,t0&=67108863,C=Math.imul(h,L0),K=Math.imul(h,k0),K=K+Math.imul(o,L0)|0,G=Math.imul(o,k0),C=C+Math.imul(O,I0)|0,K=K+Math.imul(O,q0)|0,K=K+Math.imul(B,I0)|0,G=G+Math.imul(B,q0)|0,C=C+Math.imul(U0,B0)|0,K=K+Math.imul(U0,R0)|0,K=K+Math.imul(Z0,B0)|0,G=G+Math.imul(Z0,R0)|0,C=C+Math.imul(H0,E0)|0,K=K+Math.imul(H0,S0)|0,K=K+Math.imul(G0,E0)|0,G=G+Math.imul(G0,S0)|0,C=C+Math.imul(K0,x0)|0,K=K+Math.imul(K0,A0)|0,K=K+Math.imul(t,x0)|0,G=G+Math.imul(t,A0)|0,C=C+Math.imul(q,v0)|0,K=K+Math.imul(q,M0)|0,K=K+Math.imul(m,v0)|0,G=G+Math.imul(m,M0)|0;var e0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(e0>>>26)|0,e0&=67108863,C=Math.imul(h,I0),K=Math.imul(h,q0),K=K+Math.imul(o,I0)|0,G=Math.imul(o,q0),C=C+Math.imul(O,B0)|0,K=K+Math.imul(O,R0)|0,K=K+Math.imul(B,B0)|0,G=G+Math.imul(B,R0)|0,C=C+Math.imul(U0,E0)|0,K=K+Math.imul(U0,S0)|0,K=K+Math.imul(Z0,E0)|0,G=G+Math.imul(Z0,S0)|0,C=C+Math.imul(H0,x0)|0,K=K+Math.imul(H0,A0)|0,K=K+Math.imul(G0,x0)|0,G=G+Math.imul(G0,A0)|0,C=C+Math.imul(K0,v0)|0,K=K+Math.imul(K0,M0)|0,K=K+Math.imul(t,v0)|0,G=G+Math.imul(t,M0)|0;var X5=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(X5>>>26)|0,X5&=67108863,C=Math.imul(h,B0),K=Math.imul(h,R0),K=K+Math.imul(o,B0)|0,G=Math.imul(o,R0),C=C+Math.imul(O,E0)|0,K=K+Math.imul(O,S0)|0,K=K+Math.imul(B,E0)|0,G=G+Math.imul(B,S0)|0,C=C+Math.imul(U0,x0)|0,K=K+Math.imul(U0,A0)|0,K=K+Math.imul(Z0,x0)|0,G=G+Math.imul(Z0,A0)|0,C=C+Math.imul(H0,v0)|0,K=K+Math.imul(H0,M0)|0,K=K+Math.imul(G0,v0)|0,G=G+Math.imul(G0,M0)|0;var K5=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(K5>>>26)|0,K5&=67108863,C=Math.imul(h,E0),K=Math.imul(h,S0),K=K+Math.imul(o,E0)|0,G=Math.imul(o,S0),C=C+Math.imul(O,x0)|0,K=K+Math.imul(O,A0)|0,K=K+Math.imul(B,x0)|0,G=G+Math.imul(B,A0)|0,C=C+Math.imul(U0,v0)|0,K=K+Math.imul(U0,M0)|0,K=K+Math.imul(Z0,v0)|0,G=G+Math.imul(Z0,M0)|0;var Y5=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(Y5>>>26)|0,Y5&=67108863,C=Math.imul(h,x0),K=Math.imul(h,A0),K=K+Math.imul(o,x0)|0,G=Math.imul(o,A0),C=C+Math.imul(O,v0)|0,K=K+Math.imul(O,M0)|0,K=K+Math.imul(B,v0)|0,G=G+Math.imul(B,M0)|0;var J5=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(J5>>>26)|0,J5&=67108863,C=Math.imul(h,v0),K=Math.imul(h,M0),K=K+Math.imul(o,v0)|0,G=Math.imul(o,M0);var Q5=(Z+C|0)+((K&8191)<<13)|0;return Z=(G+(K>>>13)|0)+(Q5>>>26)|0,Q5&=67108863,W[0]=F5,W[1]=g0,W[2]=m0,W[3]=h0,W[4]=u0,W[5]=o0,W[6]=s0,W[7]=a0,W[8]=f0,W[9]=n0,W[10]=r0,W[11]=i0,W[12]=t0,W[13]=e0,W[14]=X5,W[15]=K5,W[16]=Y5,W[17]=J5,W[18]=Q5,Z!==0&&(W[19]=Z,Q.length++),Q};Math.imul||(I=N);function M(X,Y,Q){Q.negative=Y.negative^X.negative,Q.length=X.length+Y.length;for(var J=0,F=0,W=0;W<Q.length-1;W++){var Z=F;F=0;for(var C=J&67108863,K=Math.min(W,Y.length-1),G=Math.max(0,W-X.length+1);G<=K;G++){var R=W-G,L=X.words[R]|0,_=Y.words[G]|0,s=L*_,r=s&67108863;Z=Z+(s/67108864|0)|0,r=r+C|0,C=r&67108863,Z=Z+(r>>>26)|0,F+=Z>>>26,Z&=67108863}Q.words[W]=C,J=Z,Z=F}return J!==0?Q.words[W]=J:Q.length--,Q.strip()}function x(X,Y,Q){var J=new v;return J.mulp(X,Y,Q)}H.prototype.mulTo=function(X,Y){var Q,J=this.length+X.length;return this.length===10&&X.length===10?Q=I(this,X,Y):J<63?Q=N(this,X,Y):J<1024?Q=M(this,X,Y):Q=x(this,X,Y),Q};function v(X,Y){this.x=X,this.y=Y}v.prototype.makeRBT=function(X){for(var Y=new Array(X),Q=H.prototype._countBits(X)-1,J=0;J<X;J++)Y[J]=this.revBin(J,Q,X);return Y},v.prototype.revBin=function(X,Y,Q){if(X===0||X===Q-1)return X;for(var J=0,F=0;F<Y;F++)J|=(X&1)<<Y-F-1,X>>=1;return J},v.prototype.permute=function(X,Y,Q,J,F,W){for(var Z=0;Z<W;Z++)J[Z]=Y[X[Z]],F[Z]=Q[X[Z]]},v.prototype.transform=function(X,Y,Q,J,F,W){this.permute(W,X,Y,Q,J,F);for(var Z=1;Z<F;Z<<=1)for(var C=Z<<1,K=Math.cos(2*Math.PI/C),G=Math.sin(2*Math.PI/C),R=0;R<F;R+=C)for(var L=K,_=G,s=0;s<Z;s++){var r=Q[R+s],Y0=J[R+s],u=Q[R+s+Z],d=J[R+s+Z],a=L*u-_*d;d=L*d+_*u,u=a,Q[R+s]=r+u,J[R+s]=Y0+d,Q[R+s+Z]=r-u,J[R+s+Z]=Y0-d,s!==C&&(a=K*L-G*_,_=K*_+G*L,L=a)}},v.prototype.guessLen13b=function(X,Y){var Q=Math.max(Y,X)|1,J=Q&1,F=0;for(Q=Q/2|0;Q;Q=Q>>>1)F++;return 1<<F+1+J},v.prototype.conjugate=function(X,Y,Q){if(!(Q<=1))for(var J=0;J<Q/2;J++){var F=X[J];X[J]=X[Q-J-1],X[Q-J-1]=F,F=Y[J],Y[J]=-Y[Q-J-1],Y[Q-J-1]=-F}},v.prototype.normalize13b=function(X,Y){for(var Q=0,J=0;J<Y/2;J++){var F=Math.round(X[2*J+1]/Y)*8192+Math.round(X[2*J]/Y)+Q;X[J]=F&67108863,F<67108864?Q=0:Q=F/67108864|0}return X},v.prototype.convert13b=function(X,Y,Q,J){for(var F=0,W=0;W<Y;W++)F=F+(X[W]|0),Q[2*W]=F&8191,F=F>>>13,Q[2*W+1]=F&8191,F=F>>>13;for(W=2*Y;W<J;++W)Q[W]=0;j(F===0),j((F&-8192)===0)},v.prototype.stub=function(X){for(var Y=new Array(X),Q=0;Q<X;Q++)Y[Q]=0;return Y},v.prototype.mulp=function(X,Y,Q){var J=2*this.guessLen13b(X.length,Y.length),F=this.makeRBT(J),W=this.stub(J),Z=new Array(J),C=new Array(J),K=new Array(J),G=new Array(J),R=new Array(J),L=new Array(J),_=Q.words;_.length=J,this.convert13b(X.words,X.length,Z,J),this.convert13b(Y.words,Y.length,G,J),this.transform(Z,W,C,K,J,F),this.transform(G,W,R,L,J,F);for(var s=0;s<J;s++){var r=C[s]*R[s]-K[s]*L[s];K[s]=C[s]*L[s]+K[s]*R[s],C[s]=r}return this.conjugate(C,K,J),this.transform(C,K,_,W,J,F),this.conjugate(_,W,J),this.normalize13b(_,J),Q.negative=X.negative^Y.negative,Q.length=X.length+Y.length,Q.strip()},H.prototype.mul=function(X){var Y=new H(null);return Y.words=new Array(this.length+X.length),this.mulTo(X,Y)},H.prototype.mulf=function(X){var Y=new H(null);return Y.words=new Array(this.length+X.length),x(this,X,Y)},H.prototype.imul=function(X){return this.clone().mulTo(X,this)},H.prototype.imuln=function(X){j(typeof X=="number"),j(X<67108864);for(var Y=0,Q=0;Q<this.length;Q++){var J=(this.words[Q]|0)*X,F=(J&67108863)+(Y&67108863);Y>>=26,Y+=J/67108864|0,Y+=F>>>26,this.words[Q]=F&67108863}return Y!==0&&(this.words[Q]=Y,this.length++),this},H.prototype.muln=function(X){return this.clone().imuln(X)},H.prototype.sqr=function(){return this.mul(this)},H.prototype.isqr=function(){return this.imul(this.clone())},H.prototype.pow=function(X){var Y=U(X);if(Y.length===0)return new H(1);for(var Q=this,J=0;J<Y.length&&Y[J]===0;J++,Q=Q.sqr());if(++J<Y.length)for(var F=Q.sqr();J<Y.length;J++,F=F.sqr())Y[J]!==0&&(Q=Q.mul(F));return Q},H.prototype.iushln=function(X){j(typeof X=="number"&&X>=0);var Y=X%26,Q=(X-Y)/26,J=67108863>>>26-Y<<26-Y,F;if(Y!==0){var W=0;for(F=0;F<this.length;F++){var Z=this.words[F]&J,C=(this.words[F]|0)-Z<<Y;this.words[F]=C|W,W=Z>>>26-Y}W&&(this.words[F]=W,this.length++)}if(Q!==0){for(F=this.length-1;F>=0;F--)this.words[F+Q]=this.words[F];for(F=0;F<Q;F++)this.words[F]=0;this.length+=Q}return this.strip()},H.prototype.ishln=function(X){return j(this.negative===0),this.iushln(X)},H.prototype.iushrn=function(X,Y,Q){j(typeof X=="number"&&X>=0);var J;Y?J=(Y-Y%26)/26:J=0;var F=X%26,W=Math.min((X-F)/26,this.length),Z=67108863^67108863>>>F<<F,C=Q;if(J-=W,J=Math.max(0,J),C){for(var K=0;K<W;K++)C.words[K]=this.words[K];C.length=W}if(W!==0)if(this.length>W)for(this.length-=W,K=0;K<this.length;K++)this.words[K]=this.words[K+W];else this.words[0]=0,this.length=1;var G=0;for(K=this.length-1;K>=0&&(G!==0||K>=J);K--){var R=this.words[K]|0;this.words[K]=G<<26-F|R>>>F,G=R&Z}return C&&G!==0&&(C.words[C.length++]=G),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},H.prototype.ishrn=function(X,Y,Q){return j(this.negative===0),this.iushrn(X,Y,Q)},H.prototype.shln=function(X){return this.clone().ishln(X)},H.prototype.ushln=function(X){return this.clone().iushln(X)},H.prototype.shrn=function(X){return this.clone().ishrn(X)},H.prototype.ushrn=function(X){return this.clone().iushrn(X)},H.prototype.testn=function(X){j(typeof X=="number"&&X>=0);var Y=X%26,Q=(X-Y)/26,J=1<<Y;if(this.length<=Q)return!1;var F=this.words[Q];return!!(F&J)},H.prototype.imaskn=function(X){j(typeof X=="number"&&X>=0);var Y=X%26,Q=(X-Y)/26;if(j(this.negative===0,"imaskn works only with positive numbers"),this.length<=Q)return this;if(Y!==0&&Q++,this.length=Math.min(Q,this.length),Y!==0){var J=67108863^67108863>>>Y<<Y;this.words[this.length-1]&=J}return this.strip()},H.prototype.maskn=function(X){return this.clone().imaskn(X)},H.prototype.iaddn=function(X){return j(typeof X=="number"),j(X<67108864),X<0?this.isubn(-X):this.negative!==0?this.length===1&&(this.words[0]|0)<X?(this.words[0]=X-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(X),this.negative=1,this):this._iaddn(X)},H.prototype._iaddn=function(X){this.words[0]+=X;for(var Y=0;Y<this.length&&this.words[Y]>=67108864;Y++)this.words[Y]-=67108864,Y===this.length-1?this.words[Y+1]=1:this.words[Y+1]++;return this.length=Math.max(this.length,Y+1),this},H.prototype.isubn=function(X){if(j(typeof X=="number"),j(X<67108864),X<0)return this.iaddn(-X);if(this.negative!==0)return this.negative=0,this.iaddn(X),this.negative=1,this;if(this.words[0]-=X,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Y=0;Y<this.length&&this.words[Y]<0;Y++)this.words[Y]+=67108864,this.words[Y+1]-=1;return this.strip()},H.prototype.addn=function(X){return this.clone().iaddn(X)},H.prototype.subn=function(X){return this.clone().isubn(X)},H.prototype.iabs=function(){return this.negative=0,this},H.prototype.abs=function(){return this.clone().iabs()},H.prototype._ishlnsubmul=function(X,Y,Q){var J=X.length+Q,F;this._expand(J);var W,Z=0;for(F=0;F<X.length;F++){W=(this.words[F+Q]|0)+Z;var C=(X.words[F]|0)*Y;W-=C&67108863,Z=(W>>26)-(C/67108864|0),this.words[F+Q]=W&67108863}for(;F<this.length-Q;F++)W=(this.words[F+Q]|0)+Z,Z=W>>26,this.words[F+Q]=W&67108863;if(Z===0)return this.strip();for(j(Z===-1),Z=0,F=0;F<this.length;F++)W=-(this.words[F]|0)+Z,Z=W>>26,this.words[F]=W&67108863;return this.negative=1,this.strip()},H.prototype._wordDiv=function(X,Y){var Q=this.length-X.length,J=this.clone(),F=X,W=F.words[F.length-1]|0,Z=this._countBits(W);Q=26-Z,Q!==0&&(F=F.ushln(Q),J.iushln(Q),W=F.words[F.length-1]|0);var C=J.length-F.length,K;if(Y!=="mod"){K=new H(null),K.length=C+1,K.words=new Array(K.length);for(var G=0;G<K.length;G++)K.words[G]=0}var R=J.clone()._ishlnsubmul(F,1,C);R.negative===0&&(J=R,K&&(K.words[C]=1));for(var L=C-1;L>=0;L--){var _=(J.words[F.length+L]|0)*67108864+(J.words[F.length+L-1]|0);for(_=Math.min(_/W|0,67108863),J._ishlnsubmul(F,_,L);J.negative!==0;)_--,J.negative=0,J._ishlnsubmul(F,1,L),J.isZero()||(J.negative^=1);K&&(K.words[L]=_)}return K&&K.strip(),J.strip(),Y!=="div"&&Q!==0&&J.iushrn(Q),{div:K||null,mod:J}},H.prototype.divmod=function(X,Y,Q){if(j(!X.isZero()),this.isZero())return{div:new H(0),mod:new H(0)};var J,F,W;return this.negative!==0&&X.negative===0?(W=this.neg().divmod(X,Y),Y!=="mod"&&(J=W.div.neg()),Y!=="div"&&(F=W.mod.neg(),Q&&F.negative!==0&&F.iadd(X)),{div:J,mod:F}):this.negative===0&&X.negative!==0?(W=this.divmod(X.neg(),Y),Y!=="mod"&&(J=W.div.neg()),{div:J,mod:W.mod}):(this.negative&X.negative)!==0?(W=this.neg().divmod(X.neg(),Y),Y!=="div"&&(F=W.mod.neg(),Q&&F.negative!==0&&F.isub(X)),{div:W.div,mod:F}):X.length>this.length||this.cmp(X)<0?{div:new H(0),mod:this}:X.length===1?Y==="div"?{div:this.divn(X.words[0]),mod:null}:Y==="mod"?{div:null,mod:new H(this.modn(X.words[0]))}:{div:this.divn(X.words[0]),mod:new H(this.modn(X.words[0]))}:this._wordDiv(X,Y)},H.prototype.div=function(X){return this.divmod(X,"div",!1).div},H.prototype.mod=function(X){return this.divmod(X,"mod",!1).mod},H.prototype.umod=function(X){return this.divmod(X,"mod",!0).mod},H.prototype.divRound=function(X){var Y=this.divmod(X);if(Y.mod.isZero())return Y.div;var Q=Y.div.negative!==0?Y.mod.isub(X):Y.mod,J=X.ushrn(1),F=X.andln(1),W=Q.cmp(J);return W<0||F===1&&W===0?Y.div:Y.div.negative!==0?Y.div.isubn(1):Y.div.iaddn(1)},H.prototype.modn=function(X){j(X<=67108863);for(var Y=67108864%X,Q=0,J=this.length-1;J>=0;J--)Q=(Y*Q+(this.words[J]|0))%X;return Q},H.prototype.idivn=function(X){j(X<=67108863);for(var Y=0,Q=this.length-1;Q>=0;Q--){var J=(this.words[Q]|0)+Y*67108864;this.words[Q]=J/X|0,Y=J%X}return this.strip()},H.prototype.divn=function(X){return this.clone().idivn(X)},H.prototype.egcd=function(X){j(X.negative===0),j(!X.isZero());var Y=this,Q=X.clone();Y.negative!==0?Y=Y.umod(X):Y=Y.clone();for(var J=new H(1),F=new H(0),W=new H(0),Z=new H(1),C=0;Y.isEven()&&Q.isEven();)Y.iushrn(1),Q.iushrn(1),++C;for(var K=Q.clone(),G=Y.clone();!Y.isZero();){for(var R=0,L=1;(Y.words[0]&L)===0&&R<26;++R,L<<=1);if(R>0)for(Y.iushrn(R);R-- >0;)(J.isOdd()||F.isOdd())&&(J.iadd(K),F.isub(G)),J.iushrn(1),F.iushrn(1);for(var _=0,s=1;(Q.words[0]&s)===0&&_<26;++_,s<<=1);if(_>0)for(Q.iushrn(_);_-- >0;)(W.isOdd()||Z.isOdd())&&(W.iadd(K),Z.isub(G)),W.iushrn(1),Z.iushrn(1);Y.cmp(Q)>=0?(Y.isub(Q),J.isub(W),F.isub(Z)):(Q.isub(Y),W.isub(J),Z.isub(F))}return{a:W,b:Z,gcd:Q.iushln(C)}},H.prototype._invmp=function(X){j(X.negative===0),j(!X.isZero());var Y=this,Q=X.clone();Y.negative!==0?Y=Y.umod(X):Y=Y.clone();for(var J=new H(1),F=new H(0),W=Q.clone();Y.cmpn(1)>0&&Q.cmpn(1)>0;){for(var Z=0,C=1;(Y.words[0]&C)===0&&Z<26;++Z,C<<=1);if(Z>0)for(Y.iushrn(Z);Z-- >0;)J.isOdd()&&J.iadd(W),J.iushrn(1);for(var K=0,G=1;(Q.words[0]&G)===0&&K<26;++K,G<<=1);if(K>0)for(Q.iushrn(K);K-- >0;)F.isOdd()&&F.iadd(W),F.iushrn(1);Y.cmp(Q)>=0?(Y.isub(Q),J.isub(F)):(Q.isub(Y),F.isub(J))}var R;return Y.cmpn(1)===0?R=J:R=F,R.cmpn(0)<0&&R.iadd(X),R},H.prototype.gcd=function(X){if(this.isZero())return X.abs();if(X.isZero())return this.abs();var Y=this.clone(),Q=X.clone();Y.negative=0,Q.negative=0;for(var J=0;Y.isEven()&&Q.isEven();J++)Y.iushrn(1),Q.iushrn(1);do{for(;Y.isEven();)Y.iushrn(1);for(;Q.isEven();)Q.iushrn(1);var F=Y.cmp(Q);if(F<0){var W=Y;Y=Q,Q=W}else if(F===0||Q.cmpn(1)===0)break;Y.isub(Q)}while(!0);return Q.iushln(J)},H.prototype.invm=function(X){return this.egcd(X).a.umod(X)},H.prototype.isEven=function(){return(this.words[0]&1)===0},H.prototype.isOdd=function(){return(this.words[0]&1)===1},H.prototype.andln=function(X){return this.words[0]&X},H.prototype.bincn=function(X){j(typeof X=="number");var Y=X%26,Q=(X-Y)/26,J=1<<Y;if(this.length<=Q)return this._expand(Q+1),this.words[Q]|=J,this;for(var F=J,W=Q;F!==0&&W<this.length;W++){var Z=this.words[W]|0;Z+=F,F=Z>>>26,Z&=67108863,this.words[W]=Z}return F!==0&&(this.words[W]=F,this.length++),this},H.prototype.isZero=function(){return this.length===1&&this.words[0]===0},H.prototype.cmpn=function(X){var Y=X<0;if(this.negative!==0&&!Y)return-1;if(this.negative===0&&Y)return 1;this.strip();var Q;if(this.length>1)Q=1;else{Y&&(X=-X),j(X<=67108863,"Number is too big");var J=this.words[0]|0;Q=J===X?0:J<X?-1:1}return this.negative!==0?-Q|0:Q},H.prototype.cmp=function(X){if(this.negative!==0&&X.negative===0)return-1;if(this.negative===0&&X.negative!==0)return 1;var Y=this.ucmp(X);return this.negative!==0?-Y|0:Y},H.prototype.ucmp=function(X){if(this.length>X.length)return 1;if(this.length<X.length)return-1;for(var Y=0,Q=this.length-1;Q>=0;Q--){var J=this.words[Q]|0,F=X.words[Q]|0;if(J!==F){J<F?Y=-1:J>F&&(Y=1);break}}return Y},H.prototype.gtn=function(X){return this.cmpn(X)===1},H.prototype.gt=function(X){return this.cmp(X)===1},H.prototype.gten=function(X){return this.cmpn(X)>=0},H.prototype.gte=function(X){return this.cmp(X)>=0},H.prototype.ltn=function(X){return this.cmpn(X)===-1},H.prototype.lt=function(X){return this.cmp(X)===-1},H.prototype.lten=function(X){return this.cmpn(X)<=0},H.prototype.lte=function(X){return this.cmp(X)<=0},H.prototype.eqn=function(X){return this.cmpn(X)===0},H.prototype.eq=function(X){return this.cmp(X)===0},H.red=function(X){return new f(X)},H.prototype.toRed=function(X){return j(!this.red,"Already a number in reduction context"),j(this.negative===0,"red works only with positives"),X.convertTo(this)._forceRed(X)},H.prototype.fromRed=function(){return j(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},H.prototype._forceRed=function(X){return this.red=X,this},H.prototype.forceRed=function(X){return j(!this.red,"Already a number in reduction context"),this._forceRed(X)},H.prototype.redAdd=function(X){return j(this.red,"redAdd works only with red numbers"),this.red.add(this,X)},H.prototype.redIAdd=function(X){return j(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,X)},H.prototype.redSub=function(X){return j(this.red,"redSub works only with red numbers"),this.red.sub(this,X)},H.prototype.redISub=function(X){return j(this.red,"redISub works only with red numbers"),this.red.isub(this,X)},H.prototype.redShl=function(X){return j(this.red,"redShl works only with red numbers"),this.red.shl(this,X)},H.prototype.redMul=function(X){return j(this.red,"redMul works only with red numbers"),this.red._verify2(this,X),this.red.mul(this,X)},H.prototype.redIMul=function(X){return j(this.red,"redMul works only with red numbers"),this.red._verify2(this,X),this.red.imul(this,X)},H.prototype.redSqr=function(){return j(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},H.prototype.redISqr=function(){return j(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},H.prototype.redSqrt=function(){return j(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},H.prototype.redInvm=function(){return j(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},H.prototype.redNeg=function(){return j(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},H.prototype.redPow=function(X){return j(this.red&&!X.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,X)};var y={k256:null,p224:null,p192:null,p25519:null};function p(X,Y){this.name=X,this.p=new H(Y,16),this.n=this.p.bitLength(),this.k=new H(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}p.prototype._tmp=function(){var X=new H(null);return X.words=new Array(Math.ceil(this.n/13)),X},p.prototype.ireduce=function(X){var Y=X,Q;do this.split(Y,this.tmp),Y=this.imulK(Y),Y=Y.iadd(this.tmp),Q=Y.bitLength();while(Q>this.n);var J=Q<this.n?-1:Y.ucmp(this.p);return J===0?(Y.words[0]=0,Y.length=1):J>0?Y.isub(this.p):Y.strip!==void 0?Y.strip():Y._strip(),Y},p.prototype.split=function(X,Y){X.iushrn(this.n,0,Y)},p.prototype.imulK=function(X){return X.imul(this.k)};function c(){p.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}S(c,p),c.prototype.split=function(X,Y){for(var Q=4194303,J=Math.min(X.length,9),F=0;F<J;F++)Y.words[F]=X.words[F];if(Y.length=J,X.length<=9){X.words[0]=0,X.length=1;return}var W=X.words[9];for(Y.words[Y.length++]=W&Q,F=10;F<X.length;F++){var Z=X.words[F]|0;X.words[F-10]=(Z&Q)<<4|W>>>22,W=Z}W>>>=22,X.words[F-10]=W,W===0&&X.length>10?X.length-=10:X.length-=9},c.prototype.imulK=function(X){X.words[X.length]=0,X.words[X.length+1]=0,X.length+=2;for(var Y=0,Q=0;Q<X.length;Q++){var J=X.words[Q]|0;Y+=J*977,X.words[Q]=Y&67108863,Y=J*64+(Y/67108864|0)}return X.words[X.length-1]===0&&(X.length--,X.words[X.length-1]===0&&X.length--),X};function n(){p.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}S(n,p);function i(){p.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}S(i,p);function Q0(){p.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}S(Q0,p),Q0.prototype.imulK=function(X){for(var Y=0,Q=0;Q<X.length;Q++){var J=(X.words[Q]|0)*19+Y,F=J&67108863;J>>>=26,X.words[Q]=F,Y=J}return Y!==0&&(X.words[X.length++]=Y),X},H._prime=function(X){if(y[X])return y[X];var Y;if(X==="k256")Y=new c;else if(X==="p224")Y=new n;else if(X==="p192")Y=new i;else if(X==="p25519")Y=new Q0;else throw new Error("Unknown prime "+X);return y[X]=Y,Y};function f(X){if(typeof X=="string"){var Y=H._prime(X);this.m=Y.p,this.prime=Y}else j(X.gtn(1),"modulus must be greater than 1"),this.m=X,this.prime=null}f.prototype._verify1=function(X){j(X.negative===0,"red works only with positives"),j(X.red,"red works only with red numbers")},f.prototype._verify2=function(X,Y){j((X.negative|Y.negative)===0,"red works only with positives"),j(X.red&&X.red===Y.red,"red works only with red numbers")},f.prototype.imod=function(X){return this.prime?this.prime.ireduce(X)._forceRed(this):X.umod(this.m)._forceRed(this)},f.prototype.neg=function(X){return X.isZero()?X.clone():this.m.sub(X)._forceRed(this)},f.prototype.add=function(X,Y){this._verify2(X,Y);var Q=X.add(Y);return Q.cmp(this.m)>=0&&Q.isub(this.m),Q._forceRed(this)},f.prototype.iadd=function(X,Y){this._verify2(X,Y);var Q=X.iadd(Y);return Q.cmp(this.m)>=0&&Q.isub(this.m),Q},f.prototype.sub=function(X,Y){this._verify2(X,Y);var Q=X.sub(Y);return Q.cmpn(0)<0&&Q.iadd(this.m),Q._forceRed(this)},f.prototype.isub=function(X,Y){this._verify2(X,Y);var Q=X.isub(Y);return Q.cmpn(0)<0&&Q.iadd(this.m),Q},f.prototype.shl=function(X,Y){return this._verify1(X),this.imod(X.ushln(Y))},f.prototype.imul=function(X,Y){return this._verify2(X,Y),this.imod(X.imul(Y))},f.prototype.mul=function(X,Y){return this._verify2(X,Y),this.imod(X.mul(Y))},f.prototype.isqr=function(X){return this.imul(X,X.clone())},f.prototype.sqr=function(X){return this.mul(X,X)},f.prototype.sqrt=function(X){if(X.isZero())return X.clone();var Y=this.m.andln(3);if(j(Y%2===1),Y===3){var Q=this.m.add(new H(1)).iushrn(2);return this.pow(X,Q)}for(var J=this.m.subn(1),F=0;!J.isZero()&&J.andln(1)===0;)F++,J.iushrn(1);j(!J.isZero());var W=new H(1).toRed(this),Z=W.redNeg(),C=this.m.subn(1).iushrn(1),K=this.m.bitLength();for(K=new H(2*K*K).toRed(this);this.pow(K,C).cmp(Z)!==0;)K.redIAdd(Z);for(var G=this.pow(K,J),R=this.pow(X,J.addn(1).iushrn(1)),L=this.pow(X,J),_=F;L.cmp(W)!==0;){for(var s=L,r=0;s.cmp(W)!==0;r++)s=s.redSqr();j(r<_);var Y0=this.pow(G,new H(1).iushln(_-r-1));R=R.redMul(Y0),G=Y0.redSqr(),L=L.redMul(G),_=r}return R},f.prototype.invm=function(X){var Y=X._invmp(this.m);return Y.negative!==0?(Y.negative=0,this.imod(Y).redNeg()):this.imod(Y)},f.prototype.pow=function(X,Y){if(Y.isZero())return new H(1).toRed(this);if(Y.cmpn(1)===0)return X.clone();var Q=4,J=new Array(1<<Q);J[0]=new H(1).toRed(this),J[1]=X;for(var F=2;F<J.length;F++)J[F]=this.mul(J[F-1],X);var W=J[0],Z=0,C=0,K=Y.bitLength()%26;for(K===0&&(K=26),F=Y.length-1;F>=0;F--){for(var G=Y.words[F],R=K-1;R>=0;R--){var L=G>>R&1;if(W!==J[0]&&(W=this.sqr(W)),L===0&&Z===0){C=0;continue}Z<<=1,Z|=L,C++,!(C!==Q&&(F!==0||R!==0))&&(W=this.mul(W,J[Z]),C=0,Z=0)}K=26}return W},f.prototype.convertTo=function(X){var Y=X.umod(this.m);return Y===X?Y.clone():Y},f.prototype.convertFrom=function(X){var Y=X.clone();return Y.red=null,Y},H.mont=function(X){return new W0(X)};function W0(X){f.call(this,X),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new H(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)}S(W0,f),W0.prototype.convertTo=function(X){return this.imod(X.ushln(this.shift))},W0.prototype.convertFrom=function(X){var Y=this.imod(X.mul(this.rinv));return Y.red=null,Y},W0.prototype.imul=function(X,Y){if(X.isZero()||Y.isZero())return X.words[0]=0,X.length=1,X;var Q=X.imul(Y),J=Q.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),F=Q.isub(J).iushrn(this.shift),W=F;return F.cmp(this.m)>=0?W=F.isub(this.m):F.cmpn(0)<0&&(W=F.iadd(this.m)),W._forceRed(this)},W0.prototype.mul=function(X,Y){if(X.isZero()||Y.isZero())return new H(0)._forceRed(this);var Q=X.mul(Y),J=Q.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),F=Q.isub(J).iushrn(this.shift),W=F;return F.cmp(this.m)>=0?W=F.isub(this.m):F.cmpn(0)<0&&(W=F.iadd(this.m)),W._forceRed(this)},W0.prototype.invm=function(X){var Y=this.imod(X._invmp(this.m).mul(this.r2));return Y._forceRed(this)}})(typeof g>"u"||g,l)}),x6=C0((l)=>{var g=l;function E(S,H){if(Array.isArray(S))return S.slice();if(!S)return[];var P=[];if(typeof S!="string"){for(var k=0;k<S.length;k++)P[k]=S[k]|0;return P}if(H==="hex"){S=S.replace(/[^a-z0-9]+/ig,""),S.length%2!==0&&(S="0"+S);for(var k=0;k<S.length;k+=2)P.push(parseInt(S[k]+S[k+1],16))}else for(var k=0;k<S.length;k++){var z=S.charCodeAt(k),V=z>>8,$=z&255;V?P.push(V,$):P.push($)}return P}g.toArray=E;function A(S){return S.length===1?"0"+S:S}g.zero2=A;function j(S){for(var H="",P=0;P<S.length;P++)H+=A(S[P].toString(16));return H}g.toHex=j,g.encode=function(S,H){return H==="hex"?j(S):S}}),T5=C0((l)=>{var g=l,E=I5(),A=O5(),j=x6();g.assert=A,g.toArray=j.toArray,g.zero2=j.zero2,g.toHex=j.toHex,g.encode=j.encode;function S(V,$,T){var D=new Array(Math.max(V.bitLength(),T)+1);D.fill(0);for(var U=1<<$+1,N=V.clone(),I=0;I<D.length;I++){var M,x=N.andln(U-1);N.isOdd()?(x>(U>>1)-1?M=(U>>1)-x:M=x,N.isubn(M)):M=0,D[I]=M,N.iushrn(1)}return D}g.getNAF=S;function H(V,$){var T=[[],[]];V=V.clone(),$=$.clone();for(var D=0,U=0,N;V.cmpn(-D)>0||$.cmpn(-U)>0;){var I=V.andln(3)+D&3,M=$.andln(3)+U&3;I===3&&(I=-1),M===3&&(M=-1);var x;(I&1)===0?x=0:(N=V.andln(7)+D&7,(N===3||N===5)&&M===2?x=-I:x=I),T[0].push(x);var v;(M&1)===0?v=0:(N=$.andln(7)+U&7,(N===3||N===5)&&I===2?v=-M:v=M),T[1].push(v),2*D===x+1&&(D=1-D),2*U===v+1&&(U=1-U),V.iushrn(1),$.iushrn(1)}return T}g.getJSF=H;function P(V,$,T){var D="_"+$;V.prototype[$]=function(){return this[D]!==void 0?this[D]:this[D]=T.call(this)}}g.cachedProperty=P;function k(V){return typeof V=="string"?g.toArray(V,"hex"):V}g.parseBytes=k;function z(V){return new E(V,"hex","le")}g.intFromLE=z}),J9=C0((l,g)=>{var E=I5(),A=T5(),j=A.getNAF,S=A.getJSF,H=A.assert;function P(z,V){this.type=z,this.p=new E(V.p,16),this.red=V.prime?E.red(V.prime):E.mont(this.p),this.zero=new E(0).toRed(this.red),this.one=new E(1).toRed(this.red),this.two=new E(2).toRed(this.red),this.n=V.n&&new E(V.n,16),this.g=V.g&&this.pointFromJSON(V.g,V.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var $=this.n&&this.p.div(this.n);!$||$.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}g.exports=P,P.prototype.point=function(){throw new Error("Not implemented")},P.prototype.validate=function(){throw new Error("Not implemented")},P.prototype._fixedNafMul=function(z,V){H(z.precomputed);var $=z._getDoubles(),T=j(V,1,this._bitLength),D=(1<<$.step+1)-($.step%2===0?2:1);D/=3;var U=[],N,I;for(N=0;N<T.length;N+=$.step){I=0;for(var M=N+$.step-1;M>=N;M--)I=(I<<1)+T[M];U.push(I)}for(var x=this.jpoint(null,null,null),v=this.jpoint(null,null,null),y=D;y>0;y--){for(N=0;N<U.length;N++)I=U[N],I===y?v=v.mixedAdd($.points[N]):I===-y&&(v=v.mixedAdd($.points[N].neg()));x=x.add(v)}return x.toP()},P.prototype._wnafMul=function(z,V){var $=4,T=z._getNAFPoints($);$=T.wnd;for(var D=T.points,U=j(V,$,this._bitLength),N=this.jpoint(null,null,null),I=U.length-1;I>=0;I--){for(var M=0;I>=0&&U[I]===0;I--)M++;if(I>=0&&M++,N=N.dblp(M),I<0)break;var x=U[I];H(x!==0),z.type==="affine"?x>0?N=N.mixedAdd(D[x-1>>1]):N=N.mixedAdd(D[-x-1>>1].neg()):x>0?N=N.add(D[x-1>>1]):N=N.add(D[-x-1>>1].neg())}return z.type==="affine"?N.toP():N},P.prototype._wnafMulAdd=function(z,V,$,T,D){var U=this._wnafT1,N=this._wnafT2,I=this._wnafT3,M=0,x,v,y;for(x=0;x<T;x++){y=V[x];var p=y._getNAFPoints(z);U[x]=p.wnd,N[x]=p.points}for(x=T-1;x>=1;x-=2){var c=x-1,n=x;if(U[c]!==1||U[n]!==1){I[c]=j($[c],U[c],this._bitLength),I[n]=j($[n],U[n],this._bitLength),M=Math.max(I[c].length,M),M=Math.max(I[n].length,M);continue}var i=[V[c],null,null,V[n]];V[c].y.cmp(V[n].y)===0?(i[1]=V[c].add(V[n]),i[2]=V[c].toJ().mixedAdd(V[n].neg())):V[c].y.cmp(V[n].y.redNeg())===0?(i[1]=V[c].toJ().mixedAdd(V[n]),i[2]=V[c].add(V[n].neg())):(i[1]=V[c].toJ().mixedAdd(V[n]),i[2]=V[c].toJ().mixedAdd(V[n].neg()));var Q0=[-3,-1,-5,-7,0,7,5,1,3],f=S($[c],$[n]);for(M=Math.max(f[0].length,M),I[c]=new Array(M),I[n]=new Array(M),v=0;v<M;v++){var W0=f[0][v]|0,X=f[1][v]|0;I[c][v]=Q0[(W0+1)*3+(X+1)],I[n][v]=0,N[c]=i}}var Y=this.jpoint(null,null,null),Q=this._wnafT4;for(x=M;x>=0;x--){for(var J=0;x>=0;){var F=!0;for(v=0;v<T;v++)Q[v]=I[v][x]|0,Q[v]!==0&&(F=!1);if(!F)break;J++,x--}if(x>=0&&J++,Y=Y.dblp(J),x<0)break;for(v=0;v<T;v++){var W=Q[v];W!==0&&(W>0?y=N[v][W-1>>1]:W<0&&(y=N[v][-W-1>>1].neg()),y.type==="affine"?Y=Y.mixedAdd(y):Y=Y.add(y))}}for(x=0;x<T;x++)N[x]=null;return D?Y:Y.toP()};function k(z,V){this.curve=z,this.type=V,this.precomputed=null}P.BasePoint=k,k.prototype.eq=function(){throw new Error("Not implemented")},k.prototype.validate=function(){return this.curve.validate(this)},P.prototype.decodePoint=function(z,V){z=A.toArray(z,V);var $=this.p.byteLength();if((z[0]===4||z[0]===6||z[0]===7)&&z.length-1===2*$){z[0]===6?H(z[z.length-1]%2===0):z[0]===7&&H(z[z.length-1]%2===1);var T=this.point(z.slice(1,1+$),z.slice(1+$,1+2*$));return T}else if((z[0]===2||z[0]===3)&&z.length-1===$)return this.pointFromX(z.slice(1,1+$),z[0]===3);throw new Error("Unknown point format")},k.prototype.encodeCompressed=function(z){return this.encode(z,!0)},k.prototype._encode=function(z){var V=this.curve.p.byteLength(),$=this.getX().toArray("be",V);return z?[this.getY().isEven()?2:3].concat($):[4].concat($,this.getY().toArray("be",V))},k.prototype.encode=function(z,V){return A.encode(this._encode(V),z)},k.prototype.precompute=function(z){if(this.precomputed)return this;var V={doubles:null,naf:null,beta:null};return V.naf=this._getNAFPoints(8),V.doubles=this._getDoubles(4,z),V.beta=this._getBeta(),this.precomputed=V,this},k.prototype._hasDoubles=function(z){if(!this.precomputed)return!1;var V=this.precomputed.doubles;return V?V.points.length>=Math.ceil((z.bitLength()+1)/V.step):!1},k.prototype._getDoubles=function(z,V){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var $=[this],T=this,D=0;D<V;D+=z){for(var U=0;U<z;U++)T=T.dbl();$.push(T)}return{step:z,points:$}},k.prototype._getNAFPoints=function(z){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var V=[this],$=(1<<z)-1,T=$===1?null:this.dbl(),D=1;D<$;D++)V[D]=V[D-1].add(T);return{wnd:z,points:V}},k.prototype._getBeta=function(){return null},k.prototype.dblp=function(z){for(var V=this,$=0;$<z;$++)V=V.dbl();return V}}),J8=C0((l,g)=>{var E=T5(),A=I5(),j=p0(),S=J9(),H=E.assert;function P(V){S.call(this,"short",V),this.a=new A(V.a,16).toRed(this.red),this.b=new A(V.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(V),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}j(P,S),g.exports=P,P.prototype._getEndomorphism=function(V){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var $,T;if(V.beta)$=new A(V.beta,16).toRed(this.red);else{var D=this._getEndoRoots(this.p);$=D[0].cmp(D[1])<0?D[0]:D[1],$=$.toRed(this.red)}if(V.lambda)T=new A(V.lambda,16);else{var U=this._getEndoRoots(this.n);this.g.mul(U[0]).x.cmp(this.g.x.redMul($))===0?T=U[0]:(T=U[1],H(this.g.mul(T).x.cmp(this.g.x.redMul($))===0))}var N;return V.basis?N=V.basis.map(function(I){return{a:new A(I.a,16),b:new A(I.b,16)}}):N=this._getEndoBasis(T),{beta:$,lambda:T,basis:N}}},P.prototype._getEndoRoots=function(V){var $=V===this.p?this.red:A.mont(V),T=new A(2).toRed($).redInvm(),D=T.redNeg(),U=new A(3).toRed($).redNeg().redSqrt().redMul(T),N=D.redAdd(U).fromRed(),I=D.redSub(U).fromRed();return[N,I]},P.prototype._getEndoBasis=function(V){for(var $=this.n.ushrn(Math.floor(this.n.bitLength()/2)),T=V,D=this.n.clone(),U=new A(1),N=new A(0),I=new A(0),M=new A(1),x,v,y,p,c,n,i,Q0=0,f,W0;T.cmpn(0)!==0;){var X=D.div(T);f=D.sub(X.mul(T)),W0=I.sub(X.mul(U));var Y=M.sub(X.mul(N));if(!y&&f.cmp($)<0)x=i.neg(),v=U,y=f.neg(),p=W0;else if(y&&++Q0===2)break;i=f,D=T,T=f,I=U,U=W0,M=N,N=Y}c=f.neg(),n=W0;var Q=y.sqr().add(p.sqr()),J=c.sqr().add(n.sqr());return J.cmp(Q)>=0&&(c=x,n=v),y.negative&&(y=y.neg(),p=p.neg()),c.negative&&(c=c.neg(),n=n.neg()),[{a:y,b:p},{a:c,b:n}]},P.prototype._endoSplit=function(V){var $=this.endo.basis,T=$[0],D=$[1],U=D.b.mul(V).divRound(this.n),N=T.b.neg().mul(V).divRound(this.n),I=U.mul(T.a),M=N.mul(D.a),x=U.mul(T.b),v=N.mul(D.b),y=V.sub(I).sub(M),p=x.add(v).neg();return{k1:y,k2:p}},P.prototype.pointFromX=function(V,$){V=new A(V,16),V.red||(V=V.toRed(this.red));var T=V.redSqr().redMul(V).redIAdd(V.redMul(this.a)).redIAdd(this.b),D=T.redSqrt();if(D.redSqr().redSub(T).cmp(this.zero)!==0)throw new Error("invalid point");var U=D.fromRed().isOdd();return($&&!U||!$&&U)&&(D=D.redNeg()),this.point(V,D)},P.prototype.validate=function(V){if(V.inf)return!0;var{x:$,y:T}=V,D=this.a.redMul($),U=$.redSqr().redMul($).redIAdd(D).redIAdd(this.b);return T.redSqr().redISub(U).cmpn(0)===0},P.prototype._endoWnafMulAdd=function(V,$,T){for(var D=this._endoWnafT1,U=this._endoWnafT2,N=0;N<V.length;N++){var I=this._endoSplit($[N]),M=V[N],x=M._getBeta();I.k1.negative&&(I.k1.ineg(),M=M.neg(!0)),I.k2.negative&&(I.k2.ineg(),x=x.neg(!0)),D[N*2]=M,D[N*2+1]=x,U[N*2]=I.k1,U[N*2+1]=I.k2}for(var v=this._wnafMulAdd(1,D,U,N*2,T),y=0;y<N*2;y++)D[y]=null,U[y]=null;return v};function k(V,$,T,D){S.BasePoint.call(this,V,"affine"),$===null&&T===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new A($,16),this.y=new A(T,16),D&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}j(k,S.BasePoint),P.prototype.point=function(V,$,T){return new k(this,V,$,T)},P.prototype.pointFromJSON=function(V,$){return k.fromJSON(this,V,$)},k.prototype._getBeta=function(){if(this.curve.endo){var V=this.precomputed;if(V&&V.beta)return V.beta;var $=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(V){var T=this.curve,D=function(U){return T.point(U.x.redMul(T.endo.beta),U.y)};V.beta=$,$.precomputed={beta:null,naf:V.naf&&{wnd:V.naf.wnd,points:V.naf.points.map(D)},doubles:V.doubles&&{step:V.doubles.step,points:V.doubles.points.map(D)}}}return $}},k.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},k.fromJSON=function(V,$,T){typeof $=="string"&&($=JSON.parse($));var D=V.point($[0],$[1],T);if(!$[2])return D;function U(I){return V.point(I[0],I[1],T)}var N=$[2];return D.precomputed={beta:null,doubles:N.doubles&&{step:N.doubles.step,points:[D].concat(N.doubles.points.map(U))},naf:N.naf&&{wnd:N.naf.wnd,points:[D].concat(N.naf.points.map(U))}},D},k.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},k.prototype.isInfinity=function(){return this.inf},k.prototype.add=function(V){if(this.inf)return V;if(V.inf)return this;if(this.eq(V))return this.dbl();if(this.neg().eq(V))return this.curve.point(null,null);if(this.x.cmp(V.x)===0)return this.curve.point(null,null);var $=this.y.redSub(V.y);$.cmpn(0)!==0&&($=$.redMul(this.x.redSub(V.x).redInvm()));var T=$.redSqr().redISub(this.x).redISub(V.x),D=$.redMul(this.x.redSub(T)).redISub(this.y);return this.curve.point(T,D)},k.prototype.dbl=function(){if(this.inf)return this;var V=this.y.redAdd(this.y);if(V.cmpn(0)===0)return this.curve.point(null,null);var $=this.curve.a,T=this.x.redSqr(),D=V.redInvm(),U=T.redAdd(T).redIAdd(T).redIAdd($).redMul(D),N=U.redSqr().redISub(this.x.redAdd(this.x)),I=U.redMul(this.x.redSub(N)).redISub(this.y);return this.curve.point(N,I)},k.prototype.getX=function(){return this.x.fromRed()},k.prototype.getY=function(){return this.y.fromRed()},k.prototype.mul=function(V){return V=new A(V,16),this.isInfinity()?this:this._hasDoubles(V)?this.curve._fixedNafMul(this,V):this.curve.endo?this.curve._endoWnafMulAdd([this],[V]):this.curve._wnafMul(this,V)},k.prototype.mulAdd=function(V,$,T){var D=[this,$],U=[V,T];return this.curve.endo?this.curve._endoWnafMulAdd(D,U):this.curve._wnafMulAdd(1,D,U,2)},k.prototype.jmulAdd=function(V,$,T){var D=[this,$],U=[V,T];return this.curve.endo?this.curve._endoWnafMulAdd(D,U,!0):this.curve._wnafMulAdd(1,D,U,2,!0)},k.prototype.eq=function(V){return this===V||this.inf===V.inf&&(this.inf||this.x.cmp(V.x)===0&&this.y.cmp(V.y)===0)},k.prototype.neg=function(V){if(this.inf)return this;var $=this.curve.point(this.x,this.y.redNeg());if(V&&this.precomputed){var T=this.precomputed,D=function(U){return U.neg()};$.precomputed={naf:T.naf&&{wnd:T.naf.wnd,points:T.naf.points.map(D)},doubles:T.doubles&&{step:T.doubles.step,points:T.doubles.points.map(D)}}}return $},k.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var V=this.curve.jpoint(this.x,this.y,this.curve.one);return V};function z(V,$,T,D){S.BasePoint.call(this,V,"jacobian"),$===null&&T===null&&D===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new A(0)):(this.x=new A($,16),this.y=new A(T,16),this.z=new A(D,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}j(z,S.BasePoint),P.prototype.jpoint=function(V,$,T){return new z(this,V,$,T)},z.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var V=this.z.redInvm(),$=V.redSqr(),T=this.x.redMul($),D=this.y.redMul($).redMul(V);return this.curve.point(T,D)},z.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},z.prototype.add=function(V){if(this.isInfinity())return V;if(V.isInfinity())return this;var $=V.z.redSqr(),T=this.z.redSqr(),D=this.x.redMul($),U=V.x.redMul(T),N=this.y.redMul($.redMul(V.z)),I=V.y.redMul(T.redMul(this.z)),M=D.redSub(U),x=N.redSub(I);if(M.cmpn(0)===0)return x.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var v=M.redSqr(),y=v.redMul(M),p=D.redMul(v),c=x.redSqr().redIAdd(y).redISub(p).redISub(p),n=x.redMul(p.redISub(c)).redISub(N.redMul(y)),i=this.z.redMul(V.z).redMul(M);return this.curve.jpoint(c,n,i)},z.prototype.mixedAdd=function(V){if(this.isInfinity())return V.toJ();if(V.isInfinity())return this;var $=this.z.redSqr(),T=this.x,D=V.x.redMul($),U=this.y,N=V.y.redMul($).redMul(this.z),I=T.redSub(D),M=U.redSub(N);if(I.cmpn(0)===0)return M.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var x=I.redSqr(),v=x.redMul(I),y=T.redMul(x),p=M.redSqr().redIAdd(v).redISub(y).redISub(y),c=M.redMul(y.redISub(p)).redISub(U.redMul(v)),n=this.z.redMul(I);return this.curve.jpoint(p,c,n)},z.prototype.dblp=function(V){if(V===0)return this;if(this.isInfinity())return this;if(!V)return this.dbl();var $;if(this.curve.zeroA||this.curve.threeA){var T=this;for($=0;$<V;$++)T=T.dbl();return T}var D=this.curve.a,U=this.curve.tinv,N=this.x,I=this.y,M=this.z,x=M.redSqr().redSqr(),v=I.redAdd(I);for($=0;$<V;$++){var y=N.redSqr(),p=v.redSqr(),c=p.redSqr(),n=y.redAdd(y).redIAdd(y).redIAdd(D.redMul(x)),i=N.redMul(p),Q0=n.redSqr().redISub(i.redAdd(i)),f=i.redISub(Q0),W0=n.redMul(f);W0=W0.redIAdd(W0).redISub(c);var X=v.redMul(M);$+1<V&&(x=x.redMul(c)),N=Q0,M=X,v=W0}return this.curve.jpoint(N,v.redMul(U),M)},z.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},z.prototype._zeroDbl=function(){var V,$,T;if(this.zOne){var D=this.x.redSqr(),U=this.y.redSqr(),N=U.redSqr(),I=this.x.redAdd(U).redSqr().redISub(D).redISub(N);I=I.redIAdd(I);var M=D.redAdd(D).redIAdd(D),x=M.redSqr().redISub(I).redISub(I),v=N.redIAdd(N);v=v.redIAdd(v),v=v.redIAdd(v),V=x,$=M.redMul(I.redISub(x)).redISub(v),T=this.y.redAdd(this.y)}else{var y=this.x.redSqr(),p=this.y.redSqr(),c=p.redSqr(),n=this.x.redAdd(p).redSqr().redISub(y).redISub(c);n=n.redIAdd(n);var i=y.redAdd(y).redIAdd(y),Q0=i.redSqr(),f=c.redIAdd(c);f=f.redIAdd(f),f=f.redIAdd(f),V=Q0.redISub(n).redISub(n),$=i.redMul(n.redISub(V)).redISub(f),T=this.y.redMul(this.z),T=T.redIAdd(T)}return this.curve.jpoint(V,$,T)},z.prototype._threeDbl=function(){var V,$,T;if(this.zOne){var D=this.x.redSqr(),U=this.y.redSqr(),N=U.redSqr(),I=this.x.redAdd(U).redSqr().redISub(D).redISub(N);I=I.redIAdd(I);var M=D.redAdd(D).redIAdd(D).redIAdd(this.curve.a),x=M.redSqr().redISub(I).redISub(I);V=x;var v=N.redIAdd(N);v=v.redIAdd(v),v=v.redIAdd(v),$=M.redMul(I.redISub(x)).redISub(v),T=this.y.redAdd(this.y)}else{var y=this.z.redSqr(),p=this.y.redSqr(),c=this.x.redMul(p),n=this.x.redSub(y).redMul(this.x.redAdd(y));n=n.redAdd(n).redIAdd(n);var i=c.redIAdd(c);i=i.redIAdd(i);var Q0=i.redAdd(i);V=n.redSqr().redISub(Q0),T=this.y.redAdd(this.z).redSqr().redISub(p).redISub(y);var f=p.redSqr();f=f.redIAdd(f),f=f.redIAdd(f),f=f.redIAdd(f),$=n.redMul(i.redISub(V)).redISub(f)}return this.curve.jpoint(V,$,T)},z.prototype._dbl=function(){var V=this.curve.a,$=this.x,T=this.y,D=this.z,U=D.redSqr().redSqr(),N=$.redSqr(),I=T.redSqr(),M=N.redAdd(N).redIAdd(N).redIAdd(V.redMul(U)),x=$.redAdd($);x=x.redIAdd(x);var v=x.redMul(I),y=M.redSqr().redISub(v.redAdd(v)),p=v.redISub(y),c=I.redSqr();c=c.redIAdd(c),c=c.redIAdd(c),c=c.redIAdd(c);var n=M.redMul(p).redISub(c),i=T.redAdd(T).redMul(D);return this.curve.jpoint(y,n,i)},z.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var V=this.x.redSqr(),$=this.y.redSqr(),T=this.z.redSqr(),D=$.redSqr(),U=V.redAdd(V).redIAdd(V),N=U.redSqr(),I=this.x.redAdd($).redSqr().redISub(V).redISub(D);I=I.redIAdd(I),I=I.redAdd(I).redIAdd(I),I=I.redISub(N);var M=I.redSqr(),x=D.redIAdd(D);x=x.redIAdd(x),x=x.redIAdd(x),x=x.redIAdd(x);var v=U.redIAdd(I).redSqr().redISub(N).redISub(M).redISub(x),y=$.redMul(v);y=y.redIAdd(y),y=y.redIAdd(y);var p=this.x.redMul(M).redISub(y);p=p.redIAdd(p),p=p.redIAdd(p);var c=this.y.redMul(v.redMul(x.redISub(v)).redISub(I.redMul(M)));c=c.redIAdd(c),c=c.redIAdd(c),c=c.redIAdd(c);var n=this.z.redAdd(I).redSqr().redISub(T).redISub(M);return this.curve.jpoint(p,c,n)},z.prototype.mul=function(V,$){return V=new A(V,$),this.curve._wnafMul(this,V)},z.prototype.eq=function(V){if(V.type==="affine")return this.eq(V.toJ());if(this===V)return!0;var $=this.z.redSqr(),T=V.z.redSqr();if(this.x.redMul(T).redISub(V.x.redMul($)).cmpn(0)!==0)return!1;var D=$.redMul(this.z),U=T.redMul(V.z);return this.y.redMul(U).redISub(V.y.redMul(D)).cmpn(0)===0},z.prototype.eqXToP=function(V){var $=this.z.redSqr(),T=V.toRed(this.curve.red).redMul($);if(this.x.cmp(T)===0)return!0;for(var D=V.clone(),U=this.curve.redN.redMul($);;){if(D.iadd(this.curve.n),D.cmp(this.curve.p)>=0)return!1;if(T.redIAdd(U),this.x.cmp(T)===0)return!0}},z.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},z.prototype.isInfinity=function(){return this.z.cmpn(0)===0}}),Q8=C0((l,g)=>{var E=I5(),A=p0(),j=J9(),S=T5();function H(k){j.call(this,"mont",k),this.a=new E(k.a,16).toRed(this.red),this.b=new E(k.b,16).toRed(this.red),this.i4=new E(4).toRed(this.red).redInvm(),this.two=new E(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}A(H,j),g.exports=H,H.prototype.validate=function(k){var z=k.normalize().x,V=z.redSqr(),$=V.redMul(z).redAdd(V.redMul(this.a)).redAdd(z),T=$.redSqrt();return T.redSqr().cmp($)===0};function P(k,z,V){j.BasePoint.call(this,k,"projective"),z===null&&V===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new E(z,16),this.z=new E(V,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}A(P,j.BasePoint),H.prototype.decodePoint=function(k,z){return this.point(S.toArray(k,z),1)},H.prototype.point=function(k,z){return new P(this,k,z)},H.prototype.pointFromJSON=function(k){return P.fromJSON(this,k)},P.prototype.precompute=function(){},P.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},P.fromJSON=function(k,z){return new P(k,z[0],z[1]||k.one)},P.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},P.prototype.isInfinity=function(){return this.z.cmpn(0)===0},P.prototype.dbl=function(){var k=this.x.redAdd(this.z),z=k.redSqr(),V=this.x.redSub(this.z),$=V.redSqr(),T=z.redSub($),D=z.redMul($),U=T.redMul($.redAdd(this.curve.a24.redMul(T)));return this.curve.point(D,U)},P.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},P.prototype.diffAdd=function(k,z){var V=this.x.redAdd(this.z),$=this.x.redSub(this.z),T=k.x.redAdd(k.z),D=k.x.redSub(k.z),U=D.redMul(V),N=T.redMul($),I=z.z.redMul(U.redAdd(N).redSqr()),M=z.x.redMul(U.redISub(N).redSqr());return this.curve.point(I,M)},P.prototype.mul=function(k){for(var z=k.clone(),V=this,$=this.curve.point(null,null),T=this,D=[];z.cmpn(0)!==0;z.iushrn(1))D.push(z.andln(1));for(var U=D.length-1;U>=0;U--)D[U]===0?(V=V.diffAdd($,T),$=$.dbl()):($=V.diffAdd($,T),V=V.dbl());return $},P.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},P.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},P.prototype.eq=function(k){return this.getX().cmp(k.getX())===0},P.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},P.prototype.getX=function(){return this.normalize(),this.x.fromRed()}}),F8=C0((l,g)=>{var E=T5(),A=I5(),j=p0(),S=J9(),H=E.assert;function P(z){this.twisted=(z.a|0)!==1,this.mOneA=this.twisted&&(z.a|0)===-1,this.extended=this.mOneA,S.call(this,"edwards",z),this.a=new A(z.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new A(z.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new A(z.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),H(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(z.c|0)===1}j(P,S),g.exports=P,P.prototype._mulA=function(z){return this.mOneA?z.redNeg():this.a.redMul(z)},P.prototype._mulC=function(z){return this.oneC?z:this.c.redMul(z)},P.prototype.jpoint=function(z,V,$,T){return this.point(z,V,$,T)},P.prototype.pointFromX=function(z,V){z=new A(z,16),z.red||(z=z.toRed(this.red));var $=z.redSqr(),T=this.c2.redSub(this.a.redMul($)),D=this.one.redSub(this.c2.redMul(this.d).redMul($)),U=T.redMul(D.redInvm()),N=U.redSqrt();if(N.redSqr().redSub(U).cmp(this.zero)!==0)throw new Error("invalid point");var I=N.fromRed().isOdd();return(V&&!I||!V&&I)&&(N=N.redNeg()),this.point(z,N)},P.prototype.pointFromY=function(z,V){z=new A(z,16),z.red||(z=z.toRed(this.red));var $=z.redSqr(),T=$.redSub(this.c2),D=$.redMul(this.d).redMul(this.c2).redSub(this.a),U=T.redMul(D.redInvm());if(U.cmp(this.zero)===0){if(V)throw new Error("invalid point");return this.point(this.zero,z)}var N=U.redSqrt();if(N.redSqr().redSub(U).cmp(this.zero)!==0)throw new Error("invalid point");return N.fromRed().isOdd()!==V&&(N=N.redNeg()),this.point(N,z)},P.prototype.validate=function(z){if(z.isInfinity())return!0;z.normalize();var V=z.x.redSqr(),$=z.y.redSqr(),T=V.redMul(this.a).redAdd($),D=this.c2.redMul(this.one.redAdd(this.d.redMul(V).redMul($)));return T.cmp(D)===0};function k(z,V,$,T,D){S.BasePoint.call(this,z,"projective"),V===null&&$===null&&T===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new A(V,16),this.y=new A($,16),this.z=T?new A(T,16):this.curve.one,this.t=D&&new A(D,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}j(k,S.BasePoint),P.prototype.pointFromJSON=function(z){return k.fromJSON(this,z)},P.prototype.point=function(z,V,$,T){return new k(this,z,V,$,T)},k.fromJSON=function(z,V){return new k(z,V[0],V[1],V[2])},k.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},k.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},k.prototype._extDbl=function(){var z=this.x.redSqr(),V=this.y.redSqr(),$=this.z.redSqr();$=$.redIAdd($);var T=this.curve._mulA(z),D=this.x.redAdd(this.y).redSqr().redISub(z).redISub(V),U=T.redAdd(V),N=U.redSub($),I=T.redSub(V),M=D.redMul(N),x=U.redMul(I),v=D.redMul(I),y=N.redMul(U);return this.curve.point(M,x,y,v)},k.prototype._projDbl=function(){var z=this.x.redAdd(this.y).redSqr(),V=this.x.redSqr(),$=this.y.redSqr(),T,D,U,N,I,M;if(this.curve.twisted){N=this.curve._mulA(V);var x=N.redAdd($);this.zOne?(T=z.redSub(V).redSub($).redMul(x.redSub(this.curve.two)),D=x.redMul(N.redSub($)),U=x.redSqr().redSub(x).redSub(x)):(I=this.z.redSqr(),M=x.redSub(I).redISub(I),T=z.redSub(V).redISub($).redMul(M),D=x.redMul(N.redSub($)),U=x.redMul(M))}else N=V.redAdd($),I=this.curve._mulC(this.z).redSqr(),M=N.redSub(I).redSub(I),T=this.curve._mulC(z.redISub(N)).redMul(M),D=this.curve._mulC(N).redMul(V.redISub($)),U=N.redMul(M);return this.curve.point(T,D,U)},k.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},k.prototype._extAdd=function(z){var V=this.y.redSub(this.x).redMul(z.y.redSub(z.x)),$=this.y.redAdd(this.x).redMul(z.y.redAdd(z.x)),T=this.t.redMul(this.curve.dd).redMul(z.t),D=this.z.redMul(z.z.redAdd(z.z)),U=$.redSub(V),N=D.redSub(T),I=D.redAdd(T),M=$.redAdd(V),x=U.redMul(N),v=I.redMul(M),y=U.redMul(M),p=N.redMul(I);return this.curve.point(x,v,p,y)},k.prototype._projAdd=function(z){var V=this.z.redMul(z.z),$=V.redSqr(),T=this.x.redMul(z.x),D=this.y.redMul(z.y),U=this.curve.d.redMul(T).redMul(D),N=$.redSub(U),I=$.redAdd(U),M=this.x.redAdd(this.y).redMul(z.x.redAdd(z.y)).redISub(T).redISub(D),x=V.redMul(N).redMul(M),v,y;return this.curve.twisted?(v=V.redMul(I).redMul(D.redSub(this.curve._mulA(T))),y=N.redMul(I)):(v=V.redMul(I).redMul(D.redSub(T)),y=this.curve._mulC(N).redMul(I)),this.curve.point(x,v,y)},k.prototype.add=function(z){return this.isInfinity()?z:z.isInfinity()?this:this.curve.extended?this._extAdd(z):this._projAdd(z)},k.prototype.mul=function(z){return this._hasDoubles(z)?this.curve._fixedNafMul(this,z):this.curve._wnafMul(this,z)},k.prototype.mulAdd=function(z,V,$){return this.curve._wnafMulAdd(1,[this,V],[z,$],2,!1)},k.prototype.jmulAdd=function(z,V,$){return this.curve._wnafMulAdd(1,[this,V],[z,$],2,!0)},k.prototype.normalize=function(){if(this.zOne)return this;var z=this.z.redInvm();return this.x=this.x.redMul(z),this.y=this.y.redMul(z),this.t&&(this.t=this.t.redMul(z)),this.z=this.curve.one,this.zOne=!0,this},k.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},k.prototype.getX=function(){return this.normalize(),this.x.fromRed()},k.prototype.getY=function(){return this.normalize(),this.y.fromRed()},k.prototype.eq=function(z){return this===z||this.getX().cmp(z.getX())===0&&this.getY().cmp(z.getY())===0},k.prototype.eqXToP=function(z){var V=z.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(V)===0)return!0;for(var $=z.clone(),T=this.curve.redN.redMul(this.z);;){if($.iadd(this.curve.n),$.cmp(this.curve.p)>=0)return!1;if(V.redIAdd(T),this.x.cmp(V)===0)return!0}},k.prototype.toP=k.prototype.normalize,k.prototype.mixedAdd=k.prototype.add}),A6=C0((l)=>{var g=l;g.base=J9(),g.short=J8(),g.mont=Q8(),g.edwards=F8()}),D5=C0((l)=>{var g=O5(),E=p0();l.inherits=E;function A(Y,Q){return(Y.charCodeAt(Q)&64512)!==55296||Q<0||Q+1>=Y.length?!1:(Y.charCodeAt(Q+1)&64512)===56320}function j(Y,Q){if(Array.isArray(Y))return Y.slice();if(!Y)return[];var J=[];if(typeof Y=="string")if(Q){if(Q==="hex")for(Y=Y.replace(/[^a-z0-9]+/ig,""),Y.length%2!==0&&(Y="0"+Y),W=0;W<Y.length;W+=2)J.push(parseInt(Y[W]+Y[W+1],16))}else for(var F=0,W=0;W<Y.length;W++){var Z=Y.charCodeAt(W);Z<128?J[F++]=Z:Z<2048?(J[F++]=Z>>6|192,J[F++]=Z&63|128):A(Y,W)?(Z=65536+((Z&1023)<<10)+(Y.charCodeAt(++W)&1023),J[F++]=Z>>18|240,J[F++]=Z>>12&63|128,J[F++]=Z>>6&63|128,J[F++]=Z&63|128):(J[F++]=Z>>12|224,J[F++]=Z>>6&63|128,J[F++]=Z&63|128)}else for(W=0;W<Y.length;W++)J[W]=Y[W]|0;return J}l.toArray=j;function S(Y){for(var Q="",J=0;J<Y.length;J++)Q+=k(Y[J].toString(16));return Q}l.toHex=S;function H(Y){var Q=Y>>>24|Y>>>8&65280|Y<<8&16711680|(Y&255)<<24;return Q>>>0}l.htonl=H;function P(Y,Q){for(var J="",F=0;F<Y.length;F++){var W=Y[F];Q==="little"&&(W=H(W)),J+=z(W.toString(16))}return J}l.toHex32=P;function k(Y){return Y.length===1?"0"+Y:Y}l.zero2=k;function z(Y){return Y.length===7?"0"+Y:Y.length===6?"00"+Y:Y.length===5?"000"+Y:Y.length===4?"0000"+Y:Y.length===3?"00000"+Y:Y.length===2?"000000"+Y:Y.length===1?"0000000"+Y:Y}l.zero8=z;function V(Y,Q,J,F){var W=J-Q;g(W%4===0);for(var Z=new Array(W/4),C=0,K=Q;C<Z.length;C++,K+=4){var G;F==="big"?G=Y[K]<<24|Y[K+1]<<16|Y[K+2]<<8|Y[K+3]:G=Y[K+3]<<24|Y[K+2]<<16|Y[K+1]<<8|Y[K],Z[C]=G>>>0}return Z}l.join32=V;function $(Y,Q){for(var J=new Array(Y.length*4),F=0,W=0;F<Y.length;F++,W+=4){var Z=Y[F];Q==="big"?(J[W]=Z>>>24,J[W+1]=Z>>>16&255,J[W+2]=Z>>>8&255,J[W+3]=Z&255):(J[W+3]=Z>>>24,J[W+2]=Z>>>16&255,J[W+1]=Z>>>8&255,J[W]=Z&255)}return J}l.split32=$;function T(Y,Q){return Y>>>Q|Y<<32-Q}l.rotr32=T;function D(Y,Q){return Y<<Q|Y>>>32-Q}l.rotl32=D;function U(Y,Q){return Y+Q>>>0}l.sum32=U;function N(Y,Q,J){return Y+Q+J>>>0}l.sum32_3=N;function I(Y,Q,J,F){return Y+Q+J+F>>>0}l.sum32_4=I;function M(Y,Q,J,F,W){return Y+Q+J+F+W>>>0}l.sum32_5=M;function x(Y,Q,J,F){var W=Y[Q],Z=Y[Q+1],C=F+Z>>>0,K=(C<F?1:0)+J+W;Y[Q]=K>>>0,Y[Q+1]=C}l.sum64=x;function v(Y,Q,J,F){var W=Q+F>>>0,Z=(W<Q?1:0)+Y+J;return Z>>>0}l.sum64_hi=v;function y(Y,Q,J,F){var W=Q+F;return W>>>0}l.sum64_lo=y;function p(Y,Q,J,F,W,Z,C,K){var G=0,R=Q;R=R+F>>>0,G+=R<Q?1:0,R=R+Z>>>0,G+=R<Z?1:0,R=R+K>>>0,G+=R<K?1:0;var L=Y+J+W+C+G;return L>>>0}l.sum64_4_hi=p;function c(Y,Q,J,F,W,Z,C,K){var G=Q+F+Z+K;return G>>>0}l.sum64_4_lo=c;function n(Y,Q,J,F,W,Z,C,K,G,R){var L=0,_=Q;_=_+F>>>0,L+=_<Q?1:0,_=_+Z>>>0,L+=_<Z?1:0,_=_+K>>>0,L+=_<K?1:0,_=_+R>>>0,L+=_<R?1:0;var s=Y+J+W+C+G+L;return s>>>0}l.sum64_5_hi=n;function i(Y,Q,J,F,W,Z,C,K,G,R){var L=Q+F+Z+K+R;return L>>>0}l.sum64_5_lo=i;function Q0(Y,Q,J){var F=Q<<32-J|Y>>>J;return F>>>0}l.rotr64_hi=Q0;function f(Y,Q,J){var F=Y<<32-J|Q>>>J;return F>>>0}l.rotr64_lo=f;function W0(Y,Q,J){return Y>>>J}l.shr64_hi=W0;function X(Y,Q,J){var F=Y<<32-J|Q>>>J;return F>>>0}l.shr64_lo=X}),s5=C0((l)=>{var g=D5(),E=O5();function A(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}l.BlockHash=A,A.prototype.update=function(j,S){if(j=g.toArray(j,S),this.pending?this.pending=this.pending.concat(j):this.pending=j,this.pendingTotal+=j.length,this.pending.length>=this._delta8){j=this.pending;var H=j.length%this._delta8;this.pending=j.slice(j.length-H,j.length),this.pending.length===0&&(this.pending=null),j=g.join32(j,0,j.length-H,this.endian);for(var P=0;P<j.length;P+=this._delta32)this._update(j,P,P+this._delta32)}return this},A.prototype.digest=function(j){return this.update(this._pad()),E(this.pending===null),this._digest(j)},A.prototype._pad=function(){var j=this.pendingTotal,S=this._delta8,H=S-(j+this.padLength)%S,P=new Array(H+this.padLength);P[0]=128;for(var k=1;k<H;k++)P[k]=0;if(j<<=3,this.endian==="big"){for(var z=8;z<this.padLength;z++)P[k++]=0;P[k++]=0,P[k++]=0,P[k++]=0,P[k++]=0,P[k++]=j>>>24&255,P[k++]=j>>>16&255,P[k++]=j>>>8&255,P[k++]=j&255}else for(P[k++]=j&255,P[k++]=j>>>8&255,P[k++]=j>>>16&255,P[k++]=j>>>24&255,P[k++]=0,P[k++]=0,P[k++]=0,P[k++]=0,z=8;z<this.padLength;z++)P[k++]=0;return P}}),v6=C0((l)=>{var g=D5(),E=g.rotr32;function A($,T,D,U){if($===0)return j(T,D,U);if($===1||$===3)return H(T,D,U);if($===2)return S(T,D,U)}l.ft_1=A;function j($,T,D){return $&T^~$&D}l.ch32=j;function S($,T,D){return $&T^$&D^T&D}l.maj32=S;function H($,T,D){return $^T^D}l.p32=H;function P($){return E($,2)^E($,13)^E($,22)}l.s0_256=P;function k($){return E($,6)^E($,11)^E($,25)}l.s1_256=k;function z($){return E($,7)^E($,18)^$>>>3}l.g0_256=z;function V($){return E($,17)^E($,19)^$>>>10}l.g1_256=V}),H8=C0((l,g)=>{var E=D5(),A=s5(),j=v6(),S=E.rotl32,H=E.sum32,P=E.sum32_5,k=j.ft_1,z=A.BlockHash,V=[1518500249,1859775393,2400959708,3395469782];function $(){if(!(this instanceof $))return new $;z.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}E.inherits($,z),g.exports=$,$.blockSize=512,$.outSize=160,$.hmacStrength=80,$.padLength=64,$.prototype._update=function(T,D){for(var U=this.W,N=0;N<16;N++)U[N]=T[D+N];for(;N<U.length;N++)U[N]=S(U[N-3]^U[N-8]^U[N-14]^U[N-16],1);var I=this.h[0],M=this.h[1],x=this.h[2],v=this.h[3],y=this.h[4];for(N=0;N<U.length;N++){var p=~~(N/20),c=P(S(I,5),k(p,M,x,v),y,U[N],V[p]);y=v,v=x,x=S(M,30),M=I,I=c}this.h[0]=H(this.h[0],I),this.h[1]=H(this.h[1],M),this.h[2]=H(this.h[2],x),this.h[3]=H(this.h[3],v),this.h[4]=H(this.h[4],y)},$.prototype._digest=function(T){return T==="hex"?E.toHex32(this.h,"big"):E.split32(this.h,"big")}}),M6=C0((l,g)=>{var E=D5(),A=s5(),j=v6(),S=O5(),H=E.sum32,P=E.sum32_4,k=E.sum32_5,z=j.ch32,V=j.maj32,$=j.s0_256,T=j.s1_256,D=j.g0_256,U=j.g1_256,N=A.BlockHash,I=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function M(){if(!(this instanceof M))return new M;N.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=I,this.W=new Array(64)}E.inherits(M,N),g.exports=M,M.blockSize=512,M.outSize=256,M.hmacStrength=192,M.padLength=64,M.prototype._update=function(x,v){for(var y=this.W,p=0;p<16;p++)y[p]=x[v+p];for(;p<y.length;p++)y[p]=P(U(y[p-2]),y[p-7],D(y[p-15]),y[p-16]);var c=this.h[0],n=this.h[1],i=this.h[2],Q0=this.h[3],f=this.h[4],W0=this.h[5],X=this.h[6],Y=this.h[7];for(S(this.k.length===y.length),p=0;p<y.length;p++){var Q=k(Y,T(f),z(f,W0,X),this.k[p],y[p]),J=H($(c),V(c,n,i));Y=X,X=W0,W0=f,f=H(Q0,Q),Q0=i,i=n,n=c,c=H(Q,J)}this.h[0]=H(this.h[0],c),this.h[1]=H(this.h[1],n),this.h[2]=H(this.h[2],i),this.h[3]=H(this.h[3],Q0),this.h[4]=H(this.h[4],f),this.h[5]=H(this.h[5],W0),this.h[6]=H(this.h[6],X),this.h[7]=H(this.h[7],Y)},M.prototype._digest=function(x){return x==="hex"?E.toHex32(this.h,"big"):E.split32(this.h,"big")}}),C8=C0((l,g)=>{var E=D5(),A=M6();function j(){if(!(this instanceof j))return new j;A.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}E.inherits(j,A),g.exports=j,j.blockSize=512,j.outSize=224,j.hmacStrength=192,j.padLength=64,j.prototype._digest=function(S){return S==="hex"?E.toHex32(this.h.slice(0,7),"big"):E.split32(this.h.slice(0,7),"big")}}),_6=C0((l,g)=>{var E=D5(),A=s5(),j=O5(),S=E.rotr64_hi,H=E.rotr64_lo,P=E.shr64_hi,k=E.shr64_lo,z=E.sum64,V=E.sum64_hi,$=E.sum64_lo,T=E.sum64_4_hi,D=E.sum64_4_lo,U=E.sum64_5_hi,N=E.sum64_5_lo,I=A.BlockHash,M=[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];function x(){if(!(this instanceof x))return new x;I.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=M,this.W=new Array(160)}E.inherits(x,I),g.exports=x,x.blockSize=1024,x.outSize=512,x.hmacStrength=192,x.padLength=128,x.prototype._prepareBlock=function(J,F){for(var W=this.W,Z=0;Z<32;Z++)W[Z]=J[F+Z];for(;Z<W.length;Z+=2){var C=Y(W[Z-4],W[Z-3]),K=Q(W[Z-4],W[Z-3]),G=W[Z-14],R=W[Z-13],L=W0(W[Z-30],W[Z-29]),_=X(W[Z-30],W[Z-29]),s=W[Z-32],r=W[Z-31];W[Z]=T(C,K,G,R,L,_,s,r),W[Z+1]=D(C,K,G,R,L,_,s,r)}},x.prototype._update=function(J,F){this._prepareBlock(J,F);var W=this.W,Z=this.h[0],C=this.h[1],K=this.h[2],G=this.h[3],R=this.h[4],L=this.h[5],_=this.h[6],s=this.h[7],r=this.h[8],Y0=this.h[9],u=this.h[10],d=this.h[11],a=this.h[12],V0=this.h[13],X0=this.h[14],F0=this.h[15];j(this.k.length===W.length);for(var w=0;w<W.length;w+=2){var q=X0,m=F0,e=Q0(r,Y0),K0=f(r,Y0),t=v(r,Y0,u,d,a,V0),_0=y(r,Y0,u,d,a,V0),H0=this.k[w],G0=this.k[w+1],w0=W[w],U0=W[w+1],Z0=U(q,m,e,K0,t,_0,H0,G0,w0,U0),c0=N(q,m,e,K0,t,_0,H0,G0,w0,U0);q=n(Z,C),m=i(Z,C),e=p(Z,C,K,G,R,L),K0=c(Z,C,K,G,R,L);var O=V(q,m,e,K0),B=$(q,m,e,K0);X0=a,F0=V0,a=u,V0=d,u=r,d=Y0,r=V(_,s,Z0,c0),Y0=$(s,s,Z0,c0),_=R,s=L,R=K,L=G,K=Z,G=C,Z=V(Z0,c0,O,B),C=$(Z0,c0,O,B)}z(this.h,0,Z,C),z(this.h,2,K,G),z(this.h,4,R,L),z(this.h,6,_,s),z(this.h,8,r,Y0),z(this.h,10,u,d),z(this.h,12,a,V0),z(this.h,14,X0,F0)},x.prototype._digest=function(J){return J==="hex"?E.toHex32(this.h,"big"):E.split32(this.h,"big")};function v(J,F,W,Z,C){var K=J&W^~J&C;return K<0&&(K+=4294967296),K}function y(J,F,W,Z,C,K){var G=F&Z^~F&K;return G<0&&(G+=4294967296),G}function p(J,F,W,Z,C){var K=J&W^J&C^W&C;return K<0&&(K+=4294967296),K}function c(J,F,W,Z,C,K){var G=F&Z^F&K^Z&K;return G<0&&(G+=4294967296),G}function n(J,F){var W=S(J,F,28),Z=S(F,J,2),C=S(F,J,7),K=W^Z^C;return K<0&&(K+=4294967296),K}function i(J,F){var W=H(J,F,28),Z=H(F,J,2),C=H(F,J,7),K=W^Z^C;return K<0&&(K+=4294967296),K}function Q0(J,F){var W=S(J,F,14),Z=S(J,F,18),C=S(F,J,9),K=W^Z^C;return K<0&&(K+=4294967296),K}function f(J,F){var W=H(J,F,14),Z=H(J,F,18),C=H(F,J,9),K=W^Z^C;return K<0&&(K+=4294967296),K}function W0(J,F){var W=S(J,F,1),Z=S(J,F,8),C=P(J,F,7),K=W^Z^C;return K<0&&(K+=4294967296),K}function X(J,F){var W=H(J,F,1),Z=H(J,F,8),C=k(J,F,7),K=W^Z^C;return K<0&&(K+=4294967296),K}function Y(J,F){var W=S(J,F,19),Z=S(F,J,29),C=P(J,F,6),K=W^Z^C;return K<0&&(K+=4294967296),K}function Q(J,F){var W=H(J,F,19),Z=H(F,J,29),C=k(J,F,6),K=W^Z^C;return K<0&&(K+=4294967296),K}}),G8=C0((l,g)=>{var E=D5(),A=_6();function j(){if(!(this instanceof j))return new j;A.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}E.inherits(j,A),g.exports=j,j.blockSize=1024,j.outSize=384,j.hmacStrength=192,j.padLength=128,j.prototype._digest=function(S){return S==="hex"?E.toHex32(this.h.slice(0,12),"big"):E.split32(this.h.slice(0,12),"big")}}),W8=C0((l)=>{l.sha1=H8(),l.sha224=C8(),l.sha256=M6(),l.sha384=G8(),l.sha512=_6()}),Z8=C0((l)=>{var g=D5(),E=s5(),A=g.rotl32,j=g.sum32,S=g.sum32_3,H=g.sum32_4,P=E.BlockHash;function k(){if(!(this instanceof k))return new k;P.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}g.inherits(k,P),l.ripemd160=k,k.blockSize=512,k.outSize=160,k.hmacStrength=192,k.padLength=64,k.prototype._update=function(I,M){for(var x=this.h[0],v=this.h[1],y=this.h[2],p=this.h[3],c=this.h[4],n=x,i=v,Q0=y,f=p,W0=c,X=0;X<80;X++){var Y=j(A(H(x,z(X,v,y,p),I[T[X]+M],V(X)),U[X]),c);x=c,c=p,p=A(y,10),y=v,v=Y,Y=j(A(H(n,z(79-X,i,Q0,f),I[D[X]+M],$(X)),N[X]),W0),n=W0,W0=f,f=A(Q0,10),Q0=i,i=Y}Y=S(this.h[1],y,f),this.h[1]=S(this.h[2],p,W0),this.h[2]=S(this.h[3],c,n),this.h[3]=S(this.h[4],x,i),this.h[4]=S(this.h[0],v,Q0),this.h[0]=Y},k.prototype._digest=function(I){return I==="hex"?g.toHex32(this.h,"little"):g.split32(this.h,"little")};function z(I,M,x,v){return I<=15?M^x^v:I<=31?M&x|~M&v:I<=47?(M|~x)^v:I<=63?M&v|x&~v:M^(x|~v)}function V(I){return I<=15?0:I<=31?1518500249:I<=47?1859775393:I<=63?2400959708:2840853838}function $(I){return I<=15?1352829926:I<=31?1548603684:I<=47?1836072691:I<=63?2053994217:0}var T=[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],D=[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],U=[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]}),$8=C0((l,g)=>{var E=D5(),A=O5();function j(S,H,P){if(!(this instanceof j))return new j(S,H,P);this.Hash=S,this.blockSize=S.blockSize/8,this.outSize=S.outSize/8,this.inner=null,this.outer=null,this._init(E.toArray(H,P))}g.exports=j,j.prototype._init=function(S){S.length>this.blockSize&&(S=new this.Hash().update(S).digest()),A(S.length<=this.blockSize);for(var H=S.length;H<this.blockSize;H++)S.push(0);for(H=0;H<S.length;H++)S[H]^=54;for(this.inner=new this.Hash().update(S),H=0;H<S.length;H++)S[H]^=106;this.outer=new this.Hash().update(S)},j.prototype.update=function(S,H){return this.inner.update(S,H),this},j.prototype.digest=function(S){return this.outer.update(this.inner.digest()),this.outer.digest(S)}}),x9=C0((l)=>{var g=l;g.utils=D5(),g.common=s5(),g.sha=W8(),g.ripemd=Z8(),g.hmac=$8(),g.sha1=g.sha.sha1,g.sha256=g.sha.sha256,g.sha224=g.sha.sha224,g.sha384=g.sha.sha384,g.sha512=g.sha.sha512,g.ripemd160=g.ripemd.ripemd160}),j8=C0((l,g)=>{g.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}}),A9=C0((l)=>{var g=l,E=x9(),A=A6(),j=T5(),S=j.assert;function H(z){z.type==="short"?this.curve=new A.short(z):z.type==="edwards"?this.curve=new A.edwards(z):this.curve=new A.mont(z),this.g=this.curve.g,this.n=this.curve.n,this.hash=z.hash,S(this.g.validate(),"Invalid curve"),S(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}g.PresetCurve=H;function P(z,V){Object.defineProperty(g,z,{configurable:!0,enumerable:!0,get:function(){var $=new H(V);return Object.defineProperty(g,z,{configurable:!0,enumerable:!0,value:$}),$}})}P("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:E.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),P("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:E.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),P("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:E.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),P("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:E.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),P("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:E.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),P("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:E.sha256,gRed:!1,g:["9"]}),P("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:E.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var k;try{k=j8()}catch{k=void 0}P("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:E.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",k]})}),P8=C0((l,g)=>{var E=x9(),A=x6(),j=O5();function S(H){if(!(this instanceof S))return new S(H);this.hash=H.hash,this.predResist=!!H.predResist,this.outLen=this.hash.outSize,this.minEntropy=H.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var P=A.toArray(H.entropy,H.entropyEnc||"hex"),k=A.toArray(H.nonce,H.nonceEnc||"hex"),z=A.toArray(H.pers,H.persEnc||"hex");j(P.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(P,k,z)}g.exports=S,S.prototype._init=function(H,P,k){var z=H.concat(P).concat(k);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var V=0;V<this.V.length;V++)this.K[V]=0,this.V[V]=1;this._update(z),this._reseed=1,this.reseedInterval=281474976710656},S.prototype._hmac=function(){return new E.hmac(this.hash,this.K)},S.prototype._update=function(H){var P=this._hmac().update(this.V).update([0]);H&&(P=P.update(H)),this.K=P.digest(),this.V=this._hmac().update(this.V).digest(),H&&(this.K=this._hmac().update(this.V).update([1]).update(H).digest(),this.V=this._hmac().update(this.V).digest())},S.prototype.reseed=function(H,P,k,z){typeof P!="string"&&(z=k,k=P,P=null),H=A.toArray(H,P),k=A.toArray(k,z),j(H.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(H.concat(k||[])),this._reseed=1},S.prototype.generate=function(H,P,k,z){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof P!="string"&&(z=k,k=P,P=null),k&&(k=A.toArray(k,z||"hex"),this._update(k));for(var V=[];V.length<H;)this.V=this._hmac().update(this.V).digest(),V=V.concat(this.V);var $=V.slice(0,H);return this._update(k),this._reseed++,A.encode($,P)}}),U8=C0((l,g)=>{var E=I5(),A=T5(),j=A.assert;function S(H,P){this.ec=H,this.priv=null,this.pub=null,P.priv&&this._importPrivate(P.priv,P.privEnc),P.pub&&this._importPublic(P.pub,P.pubEnc)}g.exports=S,S.fromPublic=function(H,P,k){return P instanceof S?P:new S(H,{pub:P,pubEnc:k})},S.fromPrivate=function(H,P,k){return P instanceof S?P:new S(H,{priv:P,privEnc:k})},S.prototype.validate=function(){var H=this.getPublic();return H.isInfinity()?{result:!1,reason:"Invalid public key"}:H.validate()?H.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},S.prototype.getPublic=function(H,P){return typeof H=="string"&&(P=H,H=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),P?this.pub.encode(P,H):this.pub},S.prototype.getPrivate=function(H){return H==="hex"?this.priv.toString(16,2):this.priv},S.prototype._importPrivate=function(H,P){this.priv=new E(H,P||16),this.priv=this.priv.umod(this.ec.curve.n)},S.prototype._importPublic=function(H,P){if(H.x||H.y){this.ec.curve.type==="mont"?j(H.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&j(H.x&&H.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(H.x,H.y);return}this.pub=this.ec.curve.decodePoint(H,P)},S.prototype.derive=function(H){return H.validate()||j(H.validate(),"public point not validated"),H.mul(this.priv).getX()},S.prototype.sign=function(H,P,k){return this.ec.sign(H,this,P,k)},S.prototype.verify=function(H,P){return this.ec.verify(H,P,this)},S.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}}),V8=C0((l,g)=>{var E=I5(),A=T5(),j=A.assert;function S(V,$){if(V instanceof S)return V;this._importDER(V,$)||(j(V.r&&V.s,"Signature without r or s"),this.r=new E(V.r,16),this.s=new E(V.s,16),V.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=V.recoveryParam)}g.exports=S;function H(){this.place=0}function P(V,$){var T=V[$.place++];if(!(T&128))return T;var D=T&15;if(D===0||D>4)return!1;for(var U=0,N=0,I=$.place;N<D;N++,I++)U<<=8,U|=V[I],U>>>=0;return U<=127?!1:($.place=I,U)}function k(V){for(var $=0,T=V.length-1;!V[$]&&!(V[$+1]&128)&&$<T;)$++;return $===0?V:V.slice($)}S.prototype._importDER=function(V,$){V=A.toArray(V,$);var T=new H;if(V[T.place++]!==48)return!1;var D=P(V,T);if(D===!1||D+T.place!==V.length||V[T.place++]!==2)return!1;var U=P(V,T);if(U===!1)return!1;var N=V.slice(T.place,U+T.place);if(T.place+=U,V[T.place++]!==2)return!1;var I=P(V,T);if(I===!1||V.length!==I+T.place)return!1;var M=V.slice(T.place,I+T.place);if(N[0]===0)if(N[1]&128)N=N.slice(1);else return!1;if(M[0]===0)if(M[1]&128)M=M.slice(1);else return!1;return this.r=new E(N),this.s=new E(M),this.recoveryParam=null,!0};function z(V,$){if($<128){V.push($);return}var T=1+(Math.log($)/Math.LN2>>>3);for(V.push(T|128);--T;)V.push($>>>(T<<3)&255);V.push($)}S.prototype.toDER=function(V){var $=this.r.toArray(),T=this.s.toArray();for($[0]&128&&($=[0].concat($)),T[0]&128&&(T=[0].concat(T)),$=k($),T=k(T);!T[0]&&!(T[1]&128);)T=T.slice(1);var D=[2];z(D,$.length),D=D.concat($),D.push(2),z(D,T.length);var U=D.concat(T),N=[48];return z(N,U.length),N=N.concat(U),A.encode(N,V)}}),z8=C0((l,g)=>{var E=I5(),A=P8(),j=T5(),S=A9(),H=B9(),P=j.assert,k=U8(),z=V8();function V($){if(!(this instanceof V))return new V($);typeof $=="string"&&(P(Object.prototype.hasOwnProperty.call(S,$),"Unknown curve "+$),$=S[$]),$ instanceof S.PresetCurve&&($={curve:$}),this.curve=$.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=$.curve.g,this.g.precompute($.curve.n.bitLength()+1),this.hash=$.hash||$.curve.hash}g.exports=V,V.prototype.keyPair=function($){return new k(this,$)},V.prototype.keyFromPrivate=function($,T){return k.fromPrivate(this,$,T)},V.prototype.keyFromPublic=function($,T){return k.fromPublic(this,$,T)},V.prototype.genKeyPair=function($){$||($={});for(var T=new A({hash:this.hash,pers:$.pers,persEnc:$.persEnc||"utf8",entropy:$.entropy||H(this.hash.hmacStrength),entropyEnc:$.entropy&&$.entropyEnc||"utf8",nonce:this.n.toArray()}),D=this.n.byteLength(),U=this.n.sub(new E(2));;){var N=new E(T.generate(D));if(!(N.cmp(U)>0))return N.iaddn(1),this.keyFromPrivate(N)}},V.prototype._truncateToN=function($,T){var D=$.byteLength()*8-this.n.bitLength();return D>0&&($=$.ushrn(D)),!T&&$.cmp(this.n)>=0?$.sub(this.n):$},V.prototype.sign=function($,T,D,U){typeof D=="object"&&(U=D,D=null),U||(U={}),T=this.keyFromPrivate(T,D),$=this._truncateToN(new E($,16));for(var N=this.n.byteLength(),I=T.getPrivate().toArray("be",N),M=$.toArray("be",N),x=new A({hash:this.hash,entropy:I,nonce:M,pers:U.pers,persEnc:U.persEnc||"utf8"}),v=this.n.sub(new E(1)),y=0;;y++){var p=U.k?U.k(y):new E(x.generate(this.n.byteLength()));if(p=this._truncateToN(p,!0),!(p.cmpn(1)<=0||p.cmp(v)>=0)){var c=this.g.mul(p);if(!c.isInfinity()){var n=c.getX(),i=n.umod(this.n);if(i.cmpn(0)!==0){var Q0=p.invm(this.n).mul(i.mul(T.getPrivate()).iadd($));if(Q0=Q0.umod(this.n),Q0.cmpn(0)!==0){var f=(c.getY().isOdd()?1:0)|(n.cmp(i)!==0?2:0);return U.canonical&&Q0.cmp(this.nh)>0&&(Q0=this.n.sub(Q0),f^=1),new z({r:i,s:Q0,recoveryParam:f})}}}}}},V.prototype.verify=function($,T,D,U){$=this._truncateToN(new E($,16)),D=this.keyFromPublic(D,U),T=new z(T,"hex");var{r:N,s:I}=T;if(N.cmpn(1)<0||N.cmp(this.n)>=0||I.cmpn(1)<0||I.cmp(this.n)>=0)return!1;var M=I.invm(this.n),x=M.mul($).umod(this.n),v=M.mul(N).umod(this.n),y;return this.curve._maxwellTrick?(y=this.g.jmulAdd(x,D.getPublic(),v),y.isInfinity()?!1:y.eqXToP(N)):(y=this.g.mulAdd(x,D.getPublic(),v),y.isInfinity()?!1:y.getX().umod(this.n).cmp(N)===0)},V.prototype.recoverPubKey=function($,T,D,U){P((3&D)===D,"The recovery param is more than two bits"),T=new z(T,U);var N=this.n,I=new E($),M=T.r,x=T.s,v=D&1,y=D>>1;if(M.cmp(this.curve.p.umod(this.curve.n))>=0&&y)throw new Error("Unable to find sencond key candinate");y?M=this.curve.pointFromX(M.add(this.curve.n),v):M=this.curve.pointFromX(M,v);var p=T.r.invm(N),c=N.sub(I).mul(p).umod(N),n=x.mul(p).umod(N);return this.g.mulAdd(c,M,n)},V.prototype.getKeyRecoveryParam=function($,T,D,U){if(T=new z(T,U),T.recoveryParam!==null)return T.recoveryParam;for(var N=0;N<4;N++){var I;try{I=this.recoverPubKey($,T,N)}catch{continue}if(I.eq(D))return N}throw new Error("Unable to find valid recovery factor")}}),O8=C0((l,g)=>{var E=T5(),A=E.assert,j=E.parseBytes,S=E.cachedProperty;function H(P,k){this.eddsa=P,this._secret=j(k.secret),P.isPoint(k.pub)?this._pub=k.pub:this._pubBytes=j(k.pub)}H.fromPublic=function(P,k){return k instanceof H?k:new H(P,{pub:k})},H.fromSecret=function(P,k){return k instanceof H?k:new H(P,{secret:k})},H.prototype.secret=function(){return this._secret},S(H,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),S(H,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),S(H,"privBytes",function(){var P=this.eddsa,k=this.hash(),z=P.encodingLength-1,V=k.slice(0,P.encodingLength);return V[0]&=248,V[z]&=127,V[z]|=64,V}),S(H,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),S(H,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),S(H,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),H.prototype.sign=function(P){return A(this._secret,"KeyPair can only verify"),this.eddsa.sign(P,this)},H.prototype.verify=function(P,k){return this.eddsa.verify(P,k,this)},H.prototype.getSecret=function(P){return A(this._secret,"KeyPair is public only"),E.encode(this.secret(),P)},H.prototype.getPublic=function(P){return E.encode(this.pubBytes(),P)},g.exports=H}),T8=C0((l,g)=>{var E=I5(),A=T5(),j=A.assert,S=A.cachedProperty,H=A.parseBytes;function P(k,z){this.eddsa=k,typeof z!="object"&&(z=H(z)),Array.isArray(z)&&(z={R:z.slice(0,k.encodingLength),S:z.slice(k.encodingLength)}),j(z.R&&z.S,"Signature without R or S"),k.isPoint(z.R)&&(this._R=z.R),z.S instanceof E&&(this._S=z.S),this._Rencoded=Array.isArray(z.R)?z.R:z.Rencoded,this._Sencoded=Array.isArray(z.S)?z.S:z.Sencoded}S(P,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),S(P,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),S(P,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),S(P,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),P.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},P.prototype.toHex=function(){return A.encode(this.toBytes(),"hex").toUpperCase()},g.exports=P}),D8=C0((l,g)=>{var E=x9(),A=A9(),j=T5(),S=j.assert,H=j.parseBytes,P=O8(),k=T8();function z(V){if(S(V==="ed25519","only tested with ed25519 so far"),!(this instanceof z))return new z(V);V=A[V].curve,this.curve=V,this.g=V.g,this.g.precompute(V.n.bitLength()+1),this.pointClass=V.point().constructor,this.encodingLength=Math.ceil(V.n.bitLength()/8),this.hash=E.sha512}g.exports=z,z.prototype.sign=function(V,$){V=H(V);var T=this.keyFromSecret($),D=this.hashInt(T.messagePrefix(),V),U=this.g.mul(D),N=this.encodePoint(U),I=this.hashInt(N,T.pubBytes(),V).mul(T.priv()),M=D.add(I).umod(this.curve.n);return this.makeSignature({R:U,S:M,Rencoded:N})},z.prototype.verify=function(V,$,T){V=H(V),$=this.makeSignature($);var D=this.keyFromPublic(T),U=this.hashInt($.Rencoded(),D.pubBytes(),V),N=this.g.mul($.S()),I=$.R().add(D.pub().mul(U));return I.eq(N)},z.prototype.hashInt=function(){for(var V=this.hash(),$=0;$<arguments.length;$++)V.update(arguments[$]);return j.intFromLE(V.digest()).umod(this.curve.n)},z.prototype.keyFromPublic=function(V){return P.fromPublic(this,V)},z.prototype.keyFromSecret=function(V){return P.fromSecret(this,V)},z.prototype.makeSignature=function(V){return V instanceof k?V:new k(this,V)},z.prototype.encodePoint=function(V){var $=V.getY().toArray("le",this.encodingLength);return $[this.encodingLength-1]|=V.getX().isOdd()?128:0,$},z.prototype.decodePoint=function(V){V=j.parseBytes(V);var $=V.length-1,T=V.slice(0,$).concat(V[$]&-129),D=(V[$]&128)!==0,U=j.intFromLE(T);return this.curve.pointFromY(U,D)},z.prototype.encodeInt=function(V){return V.toArray("le",this.encodingLength)},z.prototype.decodeInt=function(V){return j.intFromLE(V)},z.prototype.isPoint=function(V){return V instanceof this.pointClass}}),v9=C0((l)=>{var g=l;g.version=Y8().version,g.utils=T5(),g.rand=B9(),g.curve=A6(),g.curves=A9(),g.ec=z8(),g.eddsa=D8()}),w6=C0((l,g)=>{(function(E,A){function j(X,Y){if(!X)throw new Error(Y||"Assertion failed")}function S(X,Y){X.super_=Y;var Q=function(){};Q.prototype=Y.prototype,X.prototype=new Q,X.prototype.constructor=X}function H(X,Y,Q){if(H.isBN(X))return X;this.negative=0,this.words=null,this.length=0,this.red=null,X!==null&&((Y==="le"||Y==="be")&&(Q=Y,Y=10),this._init(X||0,Y||10,Q||"be"))}typeof E=="object"?E.exports=H:A.BN=H,H.BN=H,H.wordSize=26;var P;try{typeof window<"u"&&typeof window.Buffer<"u"?P=window.Buffer:P=M5().Buffer}catch{}H.isBN=function(X){return X instanceof H?!0:X!==null&&typeof X=="object"&&X.constructor.wordSize===H.wordSize&&Array.isArray(X.words)},H.max=function(X,Y){return X.cmp(Y)>0?X:Y},H.min=function(X,Y){return X.cmp(Y)<0?X:Y},H.prototype._init=function(X,Y,Q){if(typeof X=="number")return this._initNumber(X,Y,Q);if(typeof X=="object")return this._initArray(X,Y,Q);Y==="hex"&&(Y=16),j(Y===(Y|0)&&Y>=2&&Y<=36),X=X.toString().replace(/\s+/g,"");var J=0;X[0]==="-"&&(J++,this.negative=1),J<X.length&&(Y===16?this._parseHex(X,J,Q):(this._parseBase(X,Y,J),Q==="le"&&this._initArray(this.toArray(),Y,Q)))},H.prototype._initNumber=function(X,Y,Q){X<0&&(this.negative=1,X=-X),X<67108864?(this.words=[X&67108863],this.length=1):X<4503599627370496?(this.words=[X&67108863,X/67108864&67108863],this.length=2):(j(X<9007199254740992),this.words=[X&67108863,X/67108864&67108863,1],this.length=3),Q==="le"&&this._initArray(this.toArray(),Y,Q)},H.prototype._initArray=function(X,Y,Q){if(j(typeof X.length=="number"),X.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(X.length/3),this.words=new Array(this.length);for(var J=0;J<this.length;J++)this.words[J]=0;var F,W,Z=0;if(Q==="be")for(J=X.length-1,F=0;J>=0;J-=3)W=X[J]|X[J-1]<<8|X[J-2]<<16,this.words[F]|=W<<Z&67108863,this.words[F+1]=W>>>26-Z&67108863,Z+=24,Z>=26&&(Z-=26,F++);else if(Q==="le")for(J=0,F=0;J<X.length;J+=3)W=X[J]|X[J+1]<<8|X[J+2]<<16,this.words[F]|=W<<Z&67108863,this.words[F+1]=W>>>26-Z&67108863,Z+=24,Z>=26&&(Z-=26,F++);return this.strip()};function k(X,Y){var Q=X.charCodeAt(Y);return Q>=65&&Q<=70?Q-55:Q>=97&&Q<=102?Q-87:Q-48&15}function z(X,Y,Q){var J=k(X,Q);return Q-1>=Y&&(J|=k(X,Q-1)<<4),J}H.prototype._parseHex=function(X,Y,Q){this.length=Math.ceil((X.length-Y)/6),this.words=new Array(this.length);for(var J=0;J<this.length;J++)this.words[J]=0;var F=0,W=0,Z;if(Q==="be")for(J=X.length-1;J>=Y;J-=2)Z=z(X,Y,J)<<F,this.words[W]|=Z&67108863,F>=18?(F-=18,W+=1,this.words[W]|=Z>>>26):F+=8;else{var C=X.length-Y;for(J=C%2===0?Y+1:Y;J<X.length;J+=2)Z=z(X,Y,J)<<F,this.words[W]|=Z&67108863,F>=18?(F-=18,W+=1,this.words[W]|=Z>>>26):F+=8}this.strip()};function V(X,Y,Q,J){for(var F=0,W=Math.min(X.length,Q),Z=Y;Z<W;Z++){var C=X.charCodeAt(Z)-48;F*=J,C>=49?F+=C-49+10:C>=17?F+=C-17+10:F+=C}return F}H.prototype._parseBase=function(X,Y,Q){this.words=[0],this.length=1;for(var J=0,F=1;F<=67108863;F*=Y)J++;J--,F=F/Y|0;for(var W=X.length-Q,Z=W%J,C=Math.min(W,W-Z)+Q,K=0,G=Q;G<C;G+=J)K=V(X,G,G+J,Y),this.imuln(F),this.words[0]+K<67108864?this.words[0]+=K:this._iaddn(K);if(Z!==0){var R=1;for(K=V(X,G,X.length,Y),G=0;G<Z;G++)R*=Y;this.imuln(R),this.words[0]+K<67108864?this.words[0]+=K:this._iaddn(K)}this.strip()},H.prototype.copy=function(X){X.words=new Array(this.length);for(var Y=0;Y<this.length;Y++)X.words[Y]=this.words[Y];X.length=this.length,X.negative=this.negative,X.red=this.red},H.prototype.clone=function(){var X=new H(null);return this.copy(X),X},H.prototype._expand=function(X){for(;this.length<X;)this.words[this.length++]=0;return this},H.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},H.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},H.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var $=["","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"],T=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],D=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];H.prototype.toString=function(X,Y){X=X||10,Y=Y|0||1;var Q;if(X===16||X==="hex"){Q="";for(var J=0,F=0,W=0;W<this.length;W++){var Z=this.words[W],C=((Z<<J|F)&16777215).toString(16);F=Z>>>24-J&16777215,F!==0||W!==this.length-1?Q=$[6-C.length]+C+Q:Q=C+Q,J+=2,J>=26&&(J-=26,W--)}for(F!==0&&(Q=F.toString(16)+Q);Q.length%Y!==0;)Q="0"+Q;return this.negative!==0&&(Q="-"+Q),Q}if(X===(X|0)&&X>=2&&X<=36){var K=T[X],G=D[X];Q="";var R=this.clone();for(R.negative=0;!R.isZero();){var L=R.modn(G).toString(X);R=R.idivn(G),R.isZero()?Q=L+Q:Q=$[K-L.length]+L+Q}for(this.isZero()&&(Q="0"+Q);Q.length%Y!==0;)Q="0"+Q;return this.negative!==0&&(Q="-"+Q),Q}j(!1,"Base should be between 2 and 36")},H.prototype.toNumber=function(){var X=this.words[0];return this.length===2?X+=this.words[1]*67108864:this.length===3&&this.words[2]===1?X+=4503599627370496+this.words[1]*67108864:this.length>2&&j(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-X:X},H.prototype.toJSON=function(){return this.toString(16)},H.prototype.toBuffer=function(X,Y){return j(typeof P<"u"),this.toArrayLike(P,X,Y)},H.prototype.toArray=function(X,Y){return this.toArrayLike(Array,X,Y)},H.prototype.toArrayLike=function(X,Y,Q){var J=this.byteLength(),F=Q||Math.max(1,J);j(J<=F,"byte array longer than desired length"),j(F>0,"Requested array length <= 0"),this.strip();var W=Y==="le",Z=new X(F),C,K,G=this.clone();if(W){for(K=0;!G.isZero();K++)C=G.andln(255),G.iushrn(8),Z[K]=C;for(;K<F;K++)Z[K]=0}else{for(K=0;K<F-J;K++)Z[K]=0;for(K=0;!G.isZero();K++)C=G.andln(255),G.iushrn(8),Z[F-K-1]=C}return Z},Math.clz32?H.prototype._countBits=function(X){return 32-Math.clz32(X)}:H.prototype._countBits=function(X){var Y=X,Q=0;return Y>=4096&&(Q+=13,Y>>>=13),Y>=64&&(Q+=7,Y>>>=7),Y>=8&&(Q+=4,Y>>>=4),Y>=2&&(Q+=2,Y>>>=2),Q+Y},H.prototype._zeroBits=function(X){if(X===0)return 26;var Y=X,Q=0;return(Y&8191)===0&&(Q+=13,Y>>>=13),(Y&127)===0&&(Q+=7,Y>>>=7),(Y&15)===0&&(Q+=4,Y>>>=4),(Y&3)===0&&(Q+=2,Y>>>=2),(Y&1)===0&&Q++,Q},H.prototype.bitLength=function(){var X=this.words[this.length-1],Y=this._countBits(X);return(this.length-1)*26+Y};function U(X){for(var Y=new Array(X.bitLength()),Q=0;Q<Y.length;Q++){var J=Q/26|0,F=Q%26;Y[Q]=(X.words[J]&1<<F)>>>F}return Y}H.prototype.zeroBits=function(){if(this.isZero())return 0;for(var X=0,Y=0;Y<this.length;Y++){var Q=this._zeroBits(this.words[Y]);if(X+=Q,Q!==26)break}return X},H.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},H.prototype.toTwos=function(X){return this.negative!==0?this.abs().inotn(X).iaddn(1):this.clone()},H.prototype.fromTwos=function(X){return this.testn(X-1)?this.notn(X).iaddn(1).ineg():this.clone()},H.prototype.isNeg=function(){return this.negative!==0},H.prototype.neg=function(){return this.clone().ineg()},H.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},H.prototype.iuor=function(X){for(;this.length<X.length;)this.words[this.length++]=0;for(var Y=0;Y<X.length;Y++)this.words[Y]=this.words[Y]|X.words[Y];return this.strip()},H.prototype.ior=function(X){return j((this.negative|X.negative)===0),this.iuor(X)},H.prototype.or=function(X){return this.length>X.length?this.clone().ior(X):X.clone().ior(this)},H.prototype.uor=function(X){return this.length>X.length?this.clone().iuor(X):X.clone().iuor(this)},H.prototype.iuand=function(X){var Y;this.length>X.length?Y=X:Y=this;for(var Q=0;Q<Y.length;Q++)this.words[Q]=this.words[Q]&X.words[Q];return this.length=Y.length,this.strip()},H.prototype.iand=function(X){return j((this.negative|X.negative)===0),this.iuand(X)},H.prototype.and=function(X){return this.length>X.length?this.clone().iand(X):X.clone().iand(this)},H.prototype.uand=function(X){return this.length>X.length?this.clone().iuand(X):X.clone().iuand(this)},H.prototype.iuxor=function(X){var Y,Q;this.length>X.length?(Y=this,Q=X):(Y=X,Q=this);for(var J=0;J<Q.length;J++)this.words[J]=Y.words[J]^Q.words[J];if(this!==Y)for(;J<Y.length;J++)this.words[J]=Y.words[J];return this.length=Y.length,this.strip()},H.prototype.ixor=function(X){return j((this.negative|X.negative)===0),this.iuxor(X)},H.prototype.xor=function(X){return this.length>X.length?this.clone().ixor(X):X.clone().ixor(this)},H.prototype.uxor=function(X){return this.length>X.length?this.clone().iuxor(X):X.clone().iuxor(this)},H.prototype.inotn=function(X){j(typeof X=="number"&&X>=0);var Y=Math.ceil(X/26)|0,Q=X%26;this._expand(Y),Q>0&&Y--;for(var J=0;J<Y;J++)this.words[J]=~this.words[J]&67108863;return Q>0&&(this.words[J]=~this.words[J]&67108863>>26-Q),this.strip()},H.prototype.notn=function(X){return this.clone().inotn(X)},H.prototype.setn=function(X,Y){j(typeof X=="number"&&X>=0);var Q=X/26|0,J=X%26;return this._expand(Q+1),Y?this.words[Q]=this.words[Q]|1<<J:this.words[Q]=this.words[Q]&~(1<<J),this.strip()},H.prototype.iadd=function(X){var Y;if(this.negative!==0&&X.negative===0)return this.negative=0,Y=this.isub(X),this.negative^=1,this._normSign();if(this.negative===0&&X.negative!==0)return X.negative=0,Y=this.isub(X),X.negative=1,Y._normSign();var Q,J;this.length>X.length?(Q=this,J=X):(Q=X,J=this);for(var F=0,W=0;W<J.length;W++)Y=(Q.words[W]|0)+(J.words[W]|0)+F,this.words[W]=Y&67108863,F=Y>>>26;for(;F!==0&&W<Q.length;W++)Y=(Q.words[W]|0)+F,this.words[W]=Y&67108863,F=Y>>>26;if(this.length=Q.length,F!==0)this.words[this.length]=F,this.length++;else if(Q!==this)for(;W<Q.length;W++)this.words[W]=Q.words[W];return this},H.prototype.add=function(X){var Y;return X.negative!==0&&this.negative===0?(X.negative=0,Y=this.sub(X),X.negative^=1,Y):X.negative===0&&this.negative!==0?(this.negative=0,Y=X.sub(this),this.negative=1,Y):this.length>X.length?this.clone().iadd(X):X.clone().iadd(this)},H.prototype.isub=function(X){if(X.negative!==0){X.negative=0;var Y=this.iadd(X);return X.negative=1,Y._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(X),this.negative=1,this._normSign();var Q=this.cmp(X);if(Q===0)return this.negative=0,this.length=1,this.words[0]=0,this;var J,F;Q>0?(J=this,F=X):(J=X,F=this);for(var W=0,Z=0;Z<F.length;Z++)Y=(J.words[Z]|0)-(F.words[Z]|0)+W,W=Y>>26,this.words[Z]=Y&67108863;for(;W!==0&&Z<J.length;Z++)Y=(J.words[Z]|0)+W,W=Y>>26,this.words[Z]=Y&67108863;if(W===0&&Z<J.length&&J!==this)for(;Z<J.length;Z++)this.words[Z]=J.words[Z];return this.length=Math.max(this.length,Z),J!==this&&(this.negative=1),this.strip()},H.prototype.sub=function(X){return this.clone().isub(X)};function N(X,Y,Q){Q.negative=Y.negative^X.negative;var J=X.length+Y.length|0;Q.length=J,J=J-1|0;var F=X.words[0]|0,W=Y.words[0]|0,Z=F*W,C=Z&67108863,K=Z/67108864|0;Q.words[0]=C;for(var G=1;G<J;G++){for(var R=K>>>26,L=K&67108863,_=Math.min(G,Y.length-1),s=Math.max(0,G-X.length+1);s<=_;s++){var r=G-s|0;F=X.words[r]|0,W=Y.words[s]|0,Z=F*W+L,R+=Z/67108864|0,L=Z&67108863}Q.words[G]=L|0,K=R|0}return K!==0?Q.words[G]=K|0:Q.length--,Q.strip()}var I=function(X,Y,Q){var J=X.words,F=Y.words,W=Q.words,Z=0,C,K,G,R=J[0]|0,L=R&8191,_=R>>>13,s=J[1]|0,r=s&8191,Y0=s>>>13,u=J[2]|0,d=u&8191,a=u>>>13,V0=J[3]|0,X0=V0&8191,F0=V0>>>13,w=J[4]|0,q=w&8191,m=w>>>13,e=J[5]|0,K0=e&8191,t=e>>>13,_0=J[6]|0,H0=_0&8191,G0=_0>>>13,w0=J[7]|0,U0=w0&8191,Z0=w0>>>13,c0=J[8]|0,O=c0&8191,B=c0>>>13,b=J[9]|0,h=b&8191,o=b>>>13,z0=F[0]|0,J0=z0&8191,$0=z0>>>13,b0=F[1]|0,P0=b0&8191,j0=b0>>>13,y0=F[2]|0,D0=y0&8191,N0=y0>>>13,H5=F[3]|0,T0=H5&8191,O0=H5>>>13,l0=F[4]|0,L0=l0&8191,k0=l0>>>13,G5=F[5]|0,I0=G5&8191,q0=G5>>>13,W5=F[6]|0,B0=W5&8191,R0=W5>>>13,Z5=F[7]|0,E0=Z5&8191,S0=Z5>>>13,$5=F[8]|0,x0=$5&8191,A0=$5>>>13,j5=F[9]|0,v0=j5&8191,M0=j5>>>13;Q.negative=X.negative^Y.negative,Q.length=19,C=Math.imul(L,J0),K=Math.imul(L,$0),K=K+Math.imul(_,J0)|0,G=Math.imul(_,$0);var F5=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(F5>>>26)|0,F5&=67108863,C=Math.imul(r,J0),K=Math.imul(r,$0),K=K+Math.imul(Y0,J0)|0,G=Math.imul(Y0,$0),C=C+Math.imul(L,P0)|0,K=K+Math.imul(L,j0)|0,K=K+Math.imul(_,P0)|0,G=G+Math.imul(_,j0)|0;var g0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(g0>>>26)|0,g0&=67108863,C=Math.imul(d,J0),K=Math.imul(d,$0),K=K+Math.imul(a,J0)|0,G=Math.imul(a,$0),C=C+Math.imul(r,P0)|0,K=K+Math.imul(r,j0)|0,K=K+Math.imul(Y0,P0)|0,G=G+Math.imul(Y0,j0)|0,C=C+Math.imul(L,D0)|0,K=K+Math.imul(L,N0)|0,K=K+Math.imul(_,D0)|0,G=G+Math.imul(_,N0)|0;var m0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(m0>>>26)|0,m0&=67108863,C=Math.imul(X0,J0),K=Math.imul(X0,$0),K=K+Math.imul(F0,J0)|0,G=Math.imul(F0,$0),C=C+Math.imul(d,P0)|0,K=K+Math.imul(d,j0)|0,K=K+Math.imul(a,P0)|0,G=G+Math.imul(a,j0)|0,C=C+Math.imul(r,D0)|0,K=K+Math.imul(r,N0)|0,K=K+Math.imul(Y0,D0)|0,G=G+Math.imul(Y0,N0)|0,C=C+Math.imul(L,T0)|0,K=K+Math.imul(L,O0)|0,K=K+Math.imul(_,T0)|0,G=G+Math.imul(_,O0)|0;var h0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(h0>>>26)|0,h0&=67108863,C=Math.imul(q,J0),K=Math.imul(q,$0),K=K+Math.imul(m,J0)|0,G=Math.imul(m,$0),C=C+Math.imul(X0,P0)|0,K=K+Math.imul(X0,j0)|0,K=K+Math.imul(F0,P0)|0,G=G+Math.imul(F0,j0)|0,C=C+Math.imul(d,D0)|0,K=K+Math.imul(d,N0)|0,K=K+Math.imul(a,D0)|0,G=G+Math.imul(a,N0)|0,C=C+Math.imul(r,T0)|0,K=K+Math.imul(r,O0)|0,K=K+Math.imul(Y0,T0)|0,G=G+Math.imul(Y0,O0)|0,C=C+Math.imul(L,L0)|0,K=K+Math.imul(L,k0)|0,K=K+Math.imul(_,L0)|0,G=G+Math.imul(_,k0)|0;var u0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(u0>>>26)|0,u0&=67108863,C=Math.imul(K0,J0),K=Math.imul(K0,$0),K=K+Math.imul(t,J0)|0,G=Math.imul(t,$0),C=C+Math.imul(q,P0)|0,K=K+Math.imul(q,j0)|0,K=K+Math.imul(m,P0)|0,G=G+Math.imul(m,j0)|0,C=C+Math.imul(X0,D0)|0,K=K+Math.imul(X0,N0)|0,K=K+Math.imul(F0,D0)|0,G=G+Math.imul(F0,N0)|0,C=C+Math.imul(d,T0)|0,K=K+Math.imul(d,O0)|0,K=K+Math.imul(a,T0)|0,G=G+Math.imul(a,O0)|0,C=C+Math.imul(r,L0)|0,K=K+Math.imul(r,k0)|0,K=K+Math.imul(Y0,L0)|0,G=G+Math.imul(Y0,k0)|0,C=C+Math.imul(L,I0)|0,K=K+Math.imul(L,q0)|0,K=K+Math.imul(_,I0)|0,G=G+Math.imul(_,q0)|0;var o0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(o0>>>26)|0,o0&=67108863,C=Math.imul(H0,J0),K=Math.imul(H0,$0),K=K+Math.imul(G0,J0)|0,G=Math.imul(G0,$0),C=C+Math.imul(K0,P0)|0,K=K+Math.imul(K0,j0)|0,K=K+Math.imul(t,P0)|0,G=G+Math.imul(t,j0)|0,C=C+Math.imul(q,D0)|0,K=K+Math.imul(q,N0)|0,K=K+Math.imul(m,D0)|0,G=G+Math.imul(m,N0)|0,C=C+Math.imul(X0,T0)|0,K=K+Math.imul(X0,O0)|0,K=K+Math.imul(F0,T0)|0,G=G+Math.imul(F0,O0)|0,C=C+Math.imul(d,L0)|0,K=K+Math.imul(d,k0)|0,K=K+Math.imul(a,L0)|0,G=G+Math.imul(a,k0)|0,C=C+Math.imul(r,I0)|0,K=K+Math.imul(r,q0)|0,K=K+Math.imul(Y0,I0)|0,G=G+Math.imul(Y0,q0)|0,C=C+Math.imul(L,B0)|0,K=K+Math.imul(L,R0)|0,K=K+Math.imul(_,B0)|0,G=G+Math.imul(_,R0)|0;var s0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(s0>>>26)|0,s0&=67108863,C=Math.imul(U0,J0),K=Math.imul(U0,$0),K=K+Math.imul(Z0,J0)|0,G=Math.imul(Z0,$0),C=C+Math.imul(H0,P0)|0,K=K+Math.imul(H0,j0)|0,K=K+Math.imul(G0,P0)|0,G=G+Math.imul(G0,j0)|0,C=C+Math.imul(K0,D0)|0,K=K+Math.imul(K0,N0)|0,K=K+Math.imul(t,D0)|0,G=G+Math.imul(t,N0)|0,C=C+Math.imul(q,T0)|0,K=K+Math.imul(q,O0)|0,K=K+Math.imul(m,T0)|0,G=G+Math.imul(m,O0)|0,C=C+Math.imul(X0,L0)|0,K=K+Math.imul(X0,k0)|0,K=K+Math.imul(F0,L0)|0,G=G+Math.imul(F0,k0)|0,C=C+Math.imul(d,I0)|0,K=K+Math.imul(d,q0)|0,K=K+Math.imul(a,I0)|0,G=G+Math.imul(a,q0)|0,C=C+Math.imul(r,B0)|0,K=K+Math.imul(r,R0)|0,K=K+Math.imul(Y0,B0)|0,G=G+Math.imul(Y0,R0)|0,C=C+Math.imul(L,E0)|0,K=K+Math.imul(L,S0)|0,K=K+Math.imul(_,E0)|0,G=G+Math.imul(_,S0)|0;var a0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(a0>>>26)|0,a0&=67108863,C=Math.imul(O,J0),K=Math.imul(O,$0),K=K+Math.imul(B,J0)|0,G=Math.imul(B,$0),C=C+Math.imul(U0,P0)|0,K=K+Math.imul(U0,j0)|0,K=K+Math.imul(Z0,P0)|0,G=G+Math.imul(Z0,j0)|0,C=C+Math.imul(H0,D0)|0,K=K+Math.imul(H0,N0)|0,K=K+Math.imul(G0,D0)|0,G=G+Math.imul(G0,N0)|0,C=C+Math.imul(K0,T0)|0,K=K+Math.imul(K0,O0)|0,K=K+Math.imul(t,T0)|0,G=G+Math.imul(t,O0)|0,C=C+Math.imul(q,L0)|0,K=K+Math.imul(q,k0)|0,K=K+Math.imul(m,L0)|0,G=G+Math.imul(m,k0)|0,C=C+Math.imul(X0,I0)|0,K=K+Math.imul(X0,q0)|0,K=K+Math.imul(F0,I0)|0,G=G+Math.imul(F0,q0)|0,C=C+Math.imul(d,B0)|0,K=K+Math.imul(d,R0)|0,K=K+Math.imul(a,B0)|0,G=G+Math.imul(a,R0)|0,C=C+Math.imul(r,E0)|0,K=K+Math.imul(r,S0)|0,K=K+Math.imul(Y0,E0)|0,G=G+Math.imul(Y0,S0)|0,C=C+Math.imul(L,x0)|0,K=K+Math.imul(L,A0)|0,K=K+Math.imul(_,x0)|0,G=G+Math.imul(_,A0)|0;var f0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(f0>>>26)|0,f0&=67108863,C=Math.imul(h,J0),K=Math.imul(h,$0),K=K+Math.imul(o,J0)|0,G=Math.imul(o,$0),C=C+Math.imul(O,P0)|0,K=K+Math.imul(O,j0)|0,K=K+Math.imul(B,P0)|0,G=G+Math.imul(B,j0)|0,C=C+Math.imul(U0,D0)|0,K=K+Math.imul(U0,N0)|0,K=K+Math.imul(Z0,D0)|0,G=G+Math.imul(Z0,N0)|0,C=C+Math.imul(H0,T0)|0,K=K+Math.imul(H0,O0)|0,K=K+Math.imul(G0,T0)|0,G=G+Math.imul(G0,O0)|0,C=C+Math.imul(K0,L0)|0,K=K+Math.imul(K0,k0)|0,K=K+Math.imul(t,L0)|0,G=G+Math.imul(t,k0)|0,C=C+Math.imul(q,I0)|0,K=K+Math.imul(q,q0)|0,K=K+Math.imul(m,I0)|0,G=G+Math.imul(m,q0)|0,C=C+Math.imul(X0,B0)|0,K=K+Math.imul(X0,R0)|0,K=K+Math.imul(F0,B0)|0,G=G+Math.imul(F0,R0)|0,C=C+Math.imul(d,E0)|0,K=K+Math.imul(d,S0)|0,K=K+Math.imul(a,E0)|0,G=G+Math.imul(a,S0)|0,C=C+Math.imul(r,x0)|0,K=K+Math.imul(r,A0)|0,K=K+Math.imul(Y0,x0)|0,G=G+Math.imul(Y0,A0)|0,C=C+Math.imul(L,v0)|0,K=K+Math.imul(L,M0)|0,K=K+Math.imul(_,v0)|0,G=G+Math.imul(_,M0)|0;var n0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(n0>>>26)|0,n0&=67108863,C=Math.imul(h,P0),K=Math.imul(h,j0),K=K+Math.imul(o,P0)|0,G=Math.imul(o,j0),C=C+Math.imul(O,D0)|0,K=K+Math.imul(O,N0)|0,K=K+Math.imul(B,D0)|0,G=G+Math.imul(B,N0)|0,C=C+Math.imul(U0,T0)|0,K=K+Math.imul(U0,O0)|0,K=K+Math.imul(Z0,T0)|0,G=G+Math.imul(Z0,O0)|0,C=C+Math.imul(H0,L0)|0,K=K+Math.imul(H0,k0)|0,K=K+Math.imul(G0,L0)|0,G=G+Math.imul(G0,k0)|0,C=C+Math.imul(K0,I0)|0,K=K+Math.imul(K0,q0)|0,K=K+Math.imul(t,I0)|0,G=G+Math.imul(t,q0)|0,C=C+Math.imul(q,B0)|0,K=K+Math.imul(q,R0)|0,K=K+Math.imul(m,B0)|0,G=G+Math.imul(m,R0)|0,C=C+Math.imul(X0,E0)|0,K=K+Math.imul(X0,S0)|0,K=K+Math.imul(F0,E0)|0,G=G+Math.imul(F0,S0)|0,C=C+Math.imul(d,x0)|0,K=K+Math.imul(d,A0)|0,K=K+Math.imul(a,x0)|0,G=G+Math.imul(a,A0)|0,C=C+Math.imul(r,v0)|0,K=K+Math.imul(r,M0)|0,K=K+Math.imul(Y0,v0)|0,G=G+Math.imul(Y0,M0)|0;var r0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(r0>>>26)|0,r0&=67108863,C=Math.imul(h,D0),K=Math.imul(h,N0),K=K+Math.imul(o,D0)|0,G=Math.imul(o,N0),C=C+Math.imul(O,T0)|0,K=K+Math.imul(O,O0)|0,K=K+Math.imul(B,T0)|0,G=G+Math.imul(B,O0)|0,C=C+Math.imul(U0,L0)|0,K=K+Math.imul(U0,k0)|0,K=K+Math.imul(Z0,L0)|0,G=G+Math.imul(Z0,k0)|0,C=C+Math.imul(H0,I0)|0,K=K+Math.imul(H0,q0)|0,K=K+Math.imul(G0,I0)|0,G=G+Math.imul(G0,q0)|0,C=C+Math.imul(K0,B0)|0,K=K+Math.imul(K0,R0)|0,K=K+Math.imul(t,B0)|0,G=G+Math.imul(t,R0)|0,C=C+Math.imul(q,E0)|0,K=K+Math.imul(q,S0)|0,K=K+Math.imul(m,E0)|0,G=G+Math.imul(m,S0)|0,C=C+Math.imul(X0,x0)|0,K=K+Math.imul(X0,A0)|0,K=K+Math.imul(F0,x0)|0,G=G+Math.imul(F0,A0)|0,C=C+Math.imul(d,v0)|0,K=K+Math.imul(d,M0)|0,K=K+Math.imul(a,v0)|0,G=G+Math.imul(a,M0)|0;var i0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(i0>>>26)|0,i0&=67108863,C=Math.imul(h,T0),K=Math.imul(h,O0),K=K+Math.imul(o,T0)|0,G=Math.imul(o,O0),C=C+Math.imul(O,L0)|0,K=K+Math.imul(O,k0)|0,K=K+Math.imul(B,L0)|0,G=G+Math.imul(B,k0)|0,C=C+Math.imul(U0,I0)|0,K=K+Math.imul(U0,q0)|0,K=K+Math.imul(Z0,I0)|0,G=G+Math.imul(Z0,q0)|0,C=C+Math.imul(H0,B0)|0,K=K+Math.imul(H0,R0)|0,K=K+Math.imul(G0,B0)|0,G=G+Math.imul(G0,R0)|0,C=C+Math.imul(K0,E0)|0,K=K+Math.imul(K0,S0)|0,K=K+Math.imul(t,E0)|0,G=G+Math.imul(t,S0)|0,C=C+Math.imul(q,x0)|0,K=K+Math.imul(q,A0)|0,K=K+Math.imul(m,x0)|0,G=G+Math.imul(m,A0)|0,C=C+Math.imul(X0,v0)|0,K=K+Math.imul(X0,M0)|0,K=K+Math.imul(F0,v0)|0,G=G+Math.imul(F0,M0)|0;var t0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(t0>>>26)|0,t0&=67108863,C=Math.imul(h,L0),K=Math.imul(h,k0),K=K+Math.imul(o,L0)|0,G=Math.imul(o,k0),C=C+Math.imul(O,I0)|0,K=K+Math.imul(O,q0)|0,K=K+Math.imul(B,I0)|0,G=G+Math.imul(B,q0)|0,C=C+Math.imul(U0,B0)|0,K=K+Math.imul(U0,R0)|0,K=K+Math.imul(Z0,B0)|0,G=G+Math.imul(Z0,R0)|0,C=C+Math.imul(H0,E0)|0,K=K+Math.imul(H0,S0)|0,K=K+Math.imul(G0,E0)|0,G=G+Math.imul(G0,S0)|0,C=C+Math.imul(K0,x0)|0,K=K+Math.imul(K0,A0)|0,K=K+Math.imul(t,x0)|0,G=G+Math.imul(t,A0)|0,C=C+Math.imul(q,v0)|0,K=K+Math.imul(q,M0)|0,K=K+Math.imul(m,v0)|0,G=G+Math.imul(m,M0)|0;var e0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(e0>>>26)|0,e0&=67108863,C=Math.imul(h,I0),K=Math.imul(h,q0),K=K+Math.imul(o,I0)|0,G=Math.imul(o,q0),C=C+Math.imul(O,B0)|0,K=K+Math.imul(O,R0)|0,K=K+Math.imul(B,B0)|0,G=G+Math.imul(B,R0)|0,C=C+Math.imul(U0,E0)|0,K=K+Math.imul(U0,S0)|0,K=K+Math.imul(Z0,E0)|0,G=G+Math.imul(Z0,S0)|0,C=C+Math.imul(H0,x0)|0,K=K+Math.imul(H0,A0)|0,K=K+Math.imul(G0,x0)|0,G=G+Math.imul(G0,A0)|0,C=C+Math.imul(K0,v0)|0,K=K+Math.imul(K0,M0)|0,K=K+Math.imul(t,v0)|0,G=G+Math.imul(t,M0)|0;var X5=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(X5>>>26)|0,X5&=67108863,C=Math.imul(h,B0),K=Math.imul(h,R0),K=K+Math.imul(o,B0)|0,G=Math.imul(o,R0),C=C+Math.imul(O,E0)|0,K=K+Math.imul(O,S0)|0,K=K+Math.imul(B,E0)|0,G=G+Math.imul(B,S0)|0,C=C+Math.imul(U0,x0)|0,K=K+Math.imul(U0,A0)|0,K=K+Math.imul(Z0,x0)|0,G=G+Math.imul(Z0,A0)|0,C=C+Math.imul(H0,v0)|0,K=K+Math.imul(H0,M0)|0,K=K+Math.imul(G0,v0)|0,G=G+Math.imul(G0,M0)|0;var K5=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(K5>>>26)|0,K5&=67108863,C=Math.imul(h,E0),K=Math.imul(h,S0),K=K+Math.imul(o,E0)|0,G=Math.imul(o,S0),C=C+Math.imul(O,x0)|0,K=K+Math.imul(O,A0)|0,K=K+Math.imul(B,x0)|0,G=G+Math.imul(B,A0)|0,C=C+Math.imul(U0,v0)|0,K=K+Math.imul(U0,M0)|0,K=K+Math.imul(Z0,v0)|0,G=G+Math.imul(Z0,M0)|0;var Y5=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(Y5>>>26)|0,Y5&=67108863,C=Math.imul(h,x0),K=Math.imul(h,A0),K=K+Math.imul(o,x0)|0,G=Math.imul(o,A0),C=C+Math.imul(O,v0)|0,K=K+Math.imul(O,M0)|0,K=K+Math.imul(B,v0)|0,G=G+Math.imul(B,M0)|0;var J5=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(J5>>>26)|0,J5&=67108863,C=Math.imul(h,v0),K=Math.imul(h,M0),K=K+Math.imul(o,v0)|0,G=Math.imul(o,M0);var Q5=(Z+C|0)+((K&8191)<<13)|0;return Z=(G+(K>>>13)|0)+(Q5>>>26)|0,Q5&=67108863,W[0]=F5,W[1]=g0,W[2]=m0,W[3]=h0,W[4]=u0,W[5]=o0,W[6]=s0,W[7]=a0,W[8]=f0,W[9]=n0,W[10]=r0,W[11]=i0,W[12]=t0,W[13]=e0,W[14]=X5,W[15]=K5,W[16]=Y5,W[17]=J5,W[18]=Q5,Z!==0&&(W[19]=Z,Q.length++),Q};Math.imul||(I=N);function M(X,Y,Q){Q.negative=Y.negative^X.negative,Q.length=X.length+Y.length;for(var J=0,F=0,W=0;W<Q.length-1;W++){var Z=F;F=0;for(var C=J&67108863,K=Math.min(W,Y.length-1),G=Math.max(0,W-X.length+1);G<=K;G++){var R=W-G,L=X.words[R]|0,_=Y.words[G]|0,s=L*_,r=s&67108863;Z=Z+(s/67108864|0)|0,r=r+C|0,C=r&67108863,Z=Z+(r>>>26)|0,F+=Z>>>26,Z&=67108863}Q.words[W]=C,J=Z,Z=F}return J!==0?Q.words[W]=J:Q.length--,Q.strip()}function x(X,Y,Q){var J=new v;return J.mulp(X,Y,Q)}H.prototype.mulTo=function(X,Y){var Q,J=this.length+X.length;return this.length===10&&X.length===10?Q=I(this,X,Y):J<63?Q=N(this,X,Y):J<1024?Q=M(this,X,Y):Q=x(this,X,Y),Q};function v(X,Y){this.x=X,this.y=Y}v.prototype.makeRBT=function(X){for(var Y=new Array(X),Q=H.prototype._countBits(X)-1,J=0;J<X;J++)Y[J]=this.revBin(J,Q,X);return Y},v.prototype.revBin=function(X,Y,Q){if(X===0||X===Q-1)return X;for(var J=0,F=0;F<Y;F++)J|=(X&1)<<Y-F-1,X>>=1;return J},v.prototype.permute=function(X,Y,Q,J,F,W){for(var Z=0;Z<W;Z++)J[Z]=Y[X[Z]],F[Z]=Q[X[Z]]},v.prototype.transform=function(X,Y,Q,J,F,W){this.permute(W,X,Y,Q,J,F);for(var Z=1;Z<F;Z<<=1)for(var C=Z<<1,K=Math.cos(2*Math.PI/C),G=Math.sin(2*Math.PI/C),R=0;R<F;R+=C)for(var L=K,_=G,s=0;s<Z;s++){var r=Q[R+s],Y0=J[R+s],u=Q[R+s+Z],d=J[R+s+Z],a=L*u-_*d;d=L*d+_*u,u=a,Q[R+s]=r+u,J[R+s]=Y0+d,Q[R+s+Z]=r-u,J[R+s+Z]=Y0-d,s!==C&&(a=K*L-G*_,_=K*_+G*L,L=a)}},v.prototype.guessLen13b=function(X,Y){var Q=Math.max(Y,X)|1,J=Q&1,F=0;for(Q=Q/2|0;Q;Q=Q>>>1)F++;return 1<<F+1+J},v.prototype.conjugate=function(X,Y,Q){if(!(Q<=1))for(var J=0;J<Q/2;J++){var F=X[J];X[J]=X[Q-J-1],X[Q-J-1]=F,F=Y[J],Y[J]=-Y[Q-J-1],Y[Q-J-1]=-F}},v.prototype.normalize13b=function(X,Y){for(var Q=0,J=0;J<Y/2;J++){var F=Math.round(X[2*J+1]/Y)*8192+Math.round(X[2*J]/Y)+Q;X[J]=F&67108863,F<67108864?Q=0:Q=F/67108864|0}return X},v.prototype.convert13b=function(X,Y,Q,J){for(var F=0,W=0;W<Y;W++)F=F+(X[W]|0),Q[2*W]=F&8191,F=F>>>13,Q[2*W+1]=F&8191,F=F>>>13;for(W=2*Y;W<J;++W)Q[W]=0;j(F===0),j((F&-8192)===0)},v.prototype.stub=function(X){for(var Y=new Array(X),Q=0;Q<X;Q++)Y[Q]=0;return Y},v.prototype.mulp=function(X,Y,Q){var J=2*this.guessLen13b(X.length,Y.length),F=this.makeRBT(J),W=this.stub(J),Z=new Array(J),C=new Array(J),K=new Array(J),G=new Array(J),R=new Array(J),L=new Array(J),_=Q.words;_.length=J,this.convert13b(X.words,X.length,Z,J),this.convert13b(Y.words,Y.length,G,J),this.transform(Z,W,C,K,J,F),this.transform(G,W,R,L,J,F);for(var s=0;s<J;s++){var r=C[s]*R[s]-K[s]*L[s];K[s]=C[s]*L[s]+K[s]*R[s],C[s]=r}return this.conjugate(C,K,J),this.transform(C,K,_,W,J,F),this.conjugate(_,W,J),this.normalize13b(_,J),Q.negative=X.negative^Y.negative,Q.length=X.length+Y.length,Q.strip()},H.prototype.mul=function(X){var Y=new H(null);return Y.words=new Array(this.length+X.length),this.mulTo(X,Y)},H.prototype.mulf=function(X){var Y=new H(null);return Y.words=new Array(this.length+X.length),x(this,X,Y)},H.prototype.imul=function(X){return this.clone().mulTo(X,this)},H.prototype.imuln=function(X){j(typeof X=="number"),j(X<67108864);for(var Y=0,Q=0;Q<this.length;Q++){var J=(this.words[Q]|0)*X,F=(J&67108863)+(Y&67108863);Y>>=26,Y+=J/67108864|0,Y+=F>>>26,this.words[Q]=F&67108863}return Y!==0&&(this.words[Q]=Y,this.length++),this},H.prototype.muln=function(X){return this.clone().imuln(X)},H.prototype.sqr=function(){return this.mul(this)},H.prototype.isqr=function(){return this.imul(this.clone())},H.prototype.pow=function(X){var Y=U(X);if(Y.length===0)return new H(1);for(var Q=this,J=0;J<Y.length&&Y[J]===0;J++,Q=Q.sqr());if(++J<Y.length)for(var F=Q.sqr();J<Y.length;J++,F=F.sqr())Y[J]!==0&&(Q=Q.mul(F));return Q},H.prototype.iushln=function(X){j(typeof X=="number"&&X>=0);var Y=X%26,Q=(X-Y)/26,J=67108863>>>26-Y<<26-Y,F;if(Y!==0){var W=0;for(F=0;F<this.length;F++){var Z=this.words[F]&J,C=(this.words[F]|0)-Z<<Y;this.words[F]=C|W,W=Z>>>26-Y}W&&(this.words[F]=W,this.length++)}if(Q!==0){for(F=this.length-1;F>=0;F--)this.words[F+Q]=this.words[F];for(F=0;F<Q;F++)this.words[F]=0;this.length+=Q}return this.strip()},H.prototype.ishln=function(X){return j(this.negative===0),this.iushln(X)},H.prototype.iushrn=function(X,Y,Q){j(typeof X=="number"&&X>=0);var J;Y?J=(Y-Y%26)/26:J=0;var F=X%26,W=Math.min((X-F)/26,this.length),Z=67108863^67108863>>>F<<F,C=Q;if(J-=W,J=Math.max(0,J),C){for(var K=0;K<W;K++)C.words[K]=this.words[K];C.length=W}if(W!==0)if(this.length>W)for(this.length-=W,K=0;K<this.length;K++)this.words[K]=this.words[K+W];else this.words[0]=0,this.length=1;var G=0;for(K=this.length-1;K>=0&&(G!==0||K>=J);K--){var R=this.words[K]|0;this.words[K]=G<<26-F|R>>>F,G=R&Z}return C&&G!==0&&(C.words[C.length++]=G),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},H.prototype.ishrn=function(X,Y,Q){return j(this.negative===0),this.iushrn(X,Y,Q)},H.prototype.shln=function(X){return this.clone().ishln(X)},H.prototype.ushln=function(X){return this.clone().iushln(X)},H.prototype.shrn=function(X){return this.clone().ishrn(X)},H.prototype.ushrn=function(X){return this.clone().iushrn(X)},H.prototype.testn=function(X){j(typeof X=="number"&&X>=0);var Y=X%26,Q=(X-Y)/26,J=1<<Y;if(this.length<=Q)return!1;var F=this.words[Q];return!!(F&J)},H.prototype.imaskn=function(X){j(typeof X=="number"&&X>=0);var Y=X%26,Q=(X-Y)/26;if(j(this.negative===0,"imaskn works only with positive numbers"),this.length<=Q)return this;if(Y!==0&&Q++,this.length=Math.min(Q,this.length),Y!==0){var J=67108863^67108863>>>Y<<Y;this.words[this.length-1]&=J}return this.strip()},H.prototype.maskn=function(X){return this.clone().imaskn(X)},H.prototype.iaddn=function(X){return j(typeof X=="number"),j(X<67108864),X<0?this.isubn(-X):this.negative!==0?this.length===1&&(this.words[0]|0)<X?(this.words[0]=X-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(X),this.negative=1,this):this._iaddn(X)},H.prototype._iaddn=function(X){this.words[0]+=X;for(var Y=0;Y<this.length&&this.words[Y]>=67108864;Y++)this.words[Y]-=67108864,Y===this.length-1?this.words[Y+1]=1:this.words[Y+1]++;return this.length=Math.max(this.length,Y+1),this},H.prototype.isubn=function(X){if(j(typeof X=="number"),j(X<67108864),X<0)return this.iaddn(-X);if(this.negative!==0)return this.negative=0,this.iaddn(X),this.negative=1,this;if(this.words[0]-=X,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Y=0;Y<this.length&&this.words[Y]<0;Y++)this.words[Y]+=67108864,this.words[Y+1]-=1;return this.strip()},H.prototype.addn=function(X){return this.clone().iaddn(X)},H.prototype.subn=function(X){return this.clone().isubn(X)},H.prototype.iabs=function(){return this.negative=0,this},H.prototype.abs=function(){return this.clone().iabs()},H.prototype._ishlnsubmul=function(X,Y,Q){var J=X.length+Q,F;this._expand(J);var W,Z=0;for(F=0;F<X.length;F++){W=(this.words[F+Q]|0)+Z;var C=(X.words[F]|0)*Y;W-=C&67108863,Z=(W>>26)-(C/67108864|0),this.words[F+Q]=W&67108863}for(;F<this.length-Q;F++)W=(this.words[F+Q]|0)+Z,Z=W>>26,this.words[F+Q]=W&67108863;if(Z===0)return this.strip();for(j(Z===-1),Z=0,F=0;F<this.length;F++)W=-(this.words[F]|0)+Z,Z=W>>26,this.words[F]=W&67108863;return this.negative=1,this.strip()},H.prototype._wordDiv=function(X,Y){var Q=this.length-X.length,J=this.clone(),F=X,W=F.words[F.length-1]|0,Z=this._countBits(W);Q=26-Z,Q!==0&&(F=F.ushln(Q),J.iushln(Q),W=F.words[F.length-1]|0);var C=J.length-F.length,K;if(Y!=="mod"){K=new H(null),K.length=C+1,K.words=new Array(K.length);for(var G=0;G<K.length;G++)K.words[G]=0}var R=J.clone()._ishlnsubmul(F,1,C);R.negative===0&&(J=R,K&&(K.words[C]=1));for(var L=C-1;L>=0;L--){var _=(J.words[F.length+L]|0)*67108864+(J.words[F.length+L-1]|0);for(_=Math.min(_/W|0,67108863),J._ishlnsubmul(F,_,L);J.negative!==0;)_--,J.negative=0,J._ishlnsubmul(F,1,L),J.isZero()||(J.negative^=1);K&&(K.words[L]=_)}return K&&K.strip(),J.strip(),Y!=="div"&&Q!==0&&J.iushrn(Q),{div:K||null,mod:J}},H.prototype.divmod=function(X,Y,Q){if(j(!X.isZero()),this.isZero())return{div:new H(0),mod:new H(0)};var J,F,W;return this.negative!==0&&X.negative===0?(W=this.neg().divmod(X,Y),Y!=="mod"&&(J=W.div.neg()),Y!=="div"&&(F=W.mod.neg(),Q&&F.negative!==0&&F.iadd(X)),{div:J,mod:F}):this.negative===0&&X.negative!==0?(W=this.divmod(X.neg(),Y),Y!=="mod"&&(J=W.div.neg()),{div:J,mod:W.mod}):(this.negative&X.negative)!==0?(W=this.neg().divmod(X.neg(),Y),Y!=="div"&&(F=W.mod.neg(),Q&&F.negative!==0&&F.isub(X)),{div:W.div,mod:F}):X.length>this.length||this.cmp(X)<0?{div:new H(0),mod:this}:X.length===1?Y==="div"?{div:this.divn(X.words[0]),mod:null}:Y==="mod"?{div:null,mod:new H(this.modn(X.words[0]))}:{div:this.divn(X.words[0]),mod:new H(this.modn(X.words[0]))}:this._wordDiv(X,Y)},H.prototype.div=function(X){return this.divmod(X,"div",!1).div},H.prototype.mod=function(X){return this.divmod(X,"mod",!1).mod},H.prototype.umod=function(X){return this.divmod(X,"mod",!0).mod},H.prototype.divRound=function(X){var Y=this.divmod(X);if(Y.mod.isZero())return Y.div;var Q=Y.div.negative!==0?Y.mod.isub(X):Y.mod,J=X.ushrn(1),F=X.andln(1),W=Q.cmp(J);return W<0||F===1&&W===0?Y.div:Y.div.negative!==0?Y.div.isubn(1):Y.div.iaddn(1)},H.prototype.modn=function(X){j(X<=67108863);for(var Y=67108864%X,Q=0,J=this.length-1;J>=0;J--)Q=(Y*Q+(this.words[J]|0))%X;return Q},H.prototype.idivn=function(X){j(X<=67108863);for(var Y=0,Q=this.length-1;Q>=0;Q--){var J=(this.words[Q]|0)+Y*67108864;this.words[Q]=J/X|0,Y=J%X}return this.strip()},H.prototype.divn=function(X){return this.clone().idivn(X)},H.prototype.egcd=function(X){j(X.negative===0),j(!X.isZero());var Y=this,Q=X.clone();Y.negative!==0?Y=Y.umod(X):Y=Y.clone();for(var J=new H(1),F=new H(0),W=new H(0),Z=new H(1),C=0;Y.isEven()&&Q.isEven();)Y.iushrn(1),Q.iushrn(1),++C;for(var K=Q.clone(),G=Y.clone();!Y.isZero();){for(var R=0,L=1;(Y.words[0]&L)===0&&R<26;++R,L<<=1);if(R>0)for(Y.iushrn(R);R-- >0;)(J.isOdd()||F.isOdd())&&(J.iadd(K),F.isub(G)),J.iushrn(1),F.iushrn(1);for(var _=0,s=1;(Q.words[0]&s)===0&&_<26;++_,s<<=1);if(_>0)for(Q.iushrn(_);_-- >0;)(W.isOdd()||Z.isOdd())&&(W.iadd(K),Z.isub(G)),W.iushrn(1),Z.iushrn(1);Y.cmp(Q)>=0?(Y.isub(Q),J.isub(W),F.isub(Z)):(Q.isub(Y),W.isub(J),Z.isub(F))}return{a:W,b:Z,gcd:Q.iushln(C)}},H.prototype._invmp=function(X){j(X.negative===0),j(!X.isZero());var Y=this,Q=X.clone();Y.negative!==0?Y=Y.umod(X):Y=Y.clone();for(var J=new H(1),F=new H(0),W=Q.clone();Y.cmpn(1)>0&&Q.cmpn(1)>0;){for(var Z=0,C=1;(Y.words[0]&C)===0&&Z<26;++Z,C<<=1);if(Z>0)for(Y.iushrn(Z);Z-- >0;)J.isOdd()&&J.iadd(W),J.iushrn(1);for(var K=0,G=1;(Q.words[0]&G)===0&&K<26;++K,G<<=1);if(K>0)for(Q.iushrn(K);K-- >0;)F.isOdd()&&F.iadd(W),F.iushrn(1);Y.cmp(Q)>=0?(Y.isub(Q),J.isub(F)):(Q.isub(Y),F.isub(J))}var R;return Y.cmpn(1)===0?R=J:R=F,R.cmpn(0)<0&&R.iadd(X),R},H.prototype.gcd=function(X){if(this.isZero())return X.abs();if(X.isZero())return this.abs();var Y=this.clone(),Q=X.clone();Y.negative=0,Q.negative=0;for(var J=0;Y.isEven()&&Q.isEven();J++)Y.iushrn(1),Q.iushrn(1);do{for(;Y.isEven();)Y.iushrn(1);for(;Q.isEven();)Q.iushrn(1);var F=Y.cmp(Q);if(F<0){var W=Y;Y=Q,Q=W}else if(F===0||Q.cmpn(1)===0)break;Y.isub(Q)}while(!0);return Q.iushln(J)},H.prototype.invm=function(X){return this.egcd(X).a.umod(X)},H.prototype.isEven=function(){return(this.words[0]&1)===0},H.prototype.isOdd=function(){return(this.words[0]&1)===1},H.prototype.andln=function(X){return this.words[0]&X},H.prototype.bincn=function(X){j(typeof X=="number");var Y=X%26,Q=(X-Y)/26,J=1<<Y;if(this.length<=Q)return this._expand(Q+1),this.words[Q]|=J,this;for(var F=J,W=Q;F!==0&&W<this.length;W++){var Z=this.words[W]|0;Z+=F,F=Z>>>26,Z&=67108863,this.words[W]=Z}return F!==0&&(this.words[W]=F,this.length++),this},H.prototype.isZero=function(){return this.length===1&&this.words[0]===0},H.prototype.cmpn=function(X){var Y=X<0;if(this.negative!==0&&!Y)return-1;if(this.negative===0&&Y)return 1;this.strip();var Q;if(this.length>1)Q=1;else{Y&&(X=-X),j(X<=67108863,"Number is too big");var J=this.words[0]|0;Q=J===X?0:J<X?-1:1}return this.negative!==0?-Q|0:Q},H.prototype.cmp=function(X){if(this.negative!==0&&X.negative===0)return-1;if(this.negative===0&&X.negative!==0)return 1;var Y=this.ucmp(X);return this.negative!==0?-Y|0:Y},H.prototype.ucmp=function(X){if(this.length>X.length)return 1;if(this.length<X.length)return-1;for(var Y=0,Q=this.length-1;Q>=0;Q--){var J=this.words[Q]|0,F=X.words[Q]|0;if(J!==F){J<F?Y=-1:J>F&&(Y=1);break}}return Y},H.prototype.gtn=function(X){return this.cmpn(X)===1},H.prototype.gt=function(X){return this.cmp(X)===1},H.prototype.gten=function(X){return this.cmpn(X)>=0},H.prototype.gte=function(X){return this.cmp(X)>=0},H.prototype.ltn=function(X){return this.cmpn(X)===-1},H.prototype.lt=function(X){return this.cmp(X)===-1},H.prototype.lten=function(X){return this.cmpn(X)<=0},H.prototype.lte=function(X){return this.cmp(X)<=0},H.prototype.eqn=function(X){return this.cmpn(X)===0},H.prototype.eq=function(X){return this.cmp(X)===0},H.red=function(X){return new f(X)},H.prototype.toRed=function(X){return j(!this.red,"Already a number in reduction context"),j(this.negative===0,"red works only with positives"),X.convertTo(this)._forceRed(X)},H.prototype.fromRed=function(){return j(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},H.prototype._forceRed=function(X){return this.red=X,this},H.prototype.forceRed=function(X){return j(!this.red,"Already a number in reduction context"),this._forceRed(X)},H.prototype.redAdd=function(X){return j(this.red,"redAdd works only with red numbers"),this.red.add(this,X)},H.prototype.redIAdd=function(X){return j(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,X)},H.prototype.redSub=function(X){return j(this.red,"redSub works only with red numbers"),this.red.sub(this,X)},H.prototype.redISub=function(X){return j(this.red,"redISub works only with red numbers"),this.red.isub(this,X)},H.prototype.redShl=function(X){return j(this.red,"redShl works only with red numbers"),this.red.shl(this,X)},H.prototype.redMul=function(X){return j(this.red,"redMul works only with red numbers"),this.red._verify2(this,X),this.red.mul(this,X)},H.prototype.redIMul=function(X){return j(this.red,"redMul works only with red numbers"),this.red._verify2(this,X),this.red.imul(this,X)},H.prototype.redSqr=function(){return j(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},H.prototype.redISqr=function(){return j(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},H.prototype.redSqrt=function(){return j(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},H.prototype.redInvm=function(){return j(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},H.prototype.redNeg=function(){return j(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},H.prototype.redPow=function(X){return j(this.red&&!X.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,X)};var y={k256:null,p224:null,p192:null,p25519:null};function p(X,Y){this.name=X,this.p=new H(Y,16),this.n=this.p.bitLength(),this.k=new H(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}p.prototype._tmp=function(){var X=new H(null);return X.words=new Array(Math.ceil(this.n/13)),X},p.prototype.ireduce=function(X){var Y=X,Q;do this.split(Y,this.tmp),Y=this.imulK(Y),Y=Y.iadd(this.tmp),Q=Y.bitLength();while(Q>this.n);var J=Q<this.n?-1:Y.ucmp(this.p);return J===0?(Y.words[0]=0,Y.length=1):J>0?Y.isub(this.p):Y.strip!==void 0?Y.strip():Y._strip(),Y},p.prototype.split=function(X,Y){X.iushrn(this.n,0,Y)},p.prototype.imulK=function(X){return X.imul(this.k)};function c(){p.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}S(c,p),c.prototype.split=function(X,Y){for(var Q=4194303,J=Math.min(X.length,9),F=0;F<J;F++)Y.words[F]=X.words[F];if(Y.length=J,X.length<=9){X.words[0]=0,X.length=1;return}var W=X.words[9];for(Y.words[Y.length++]=W&Q,F=10;F<X.length;F++){var Z=X.words[F]|0;X.words[F-10]=(Z&Q)<<4|W>>>22,W=Z}W>>>=22,X.words[F-10]=W,W===0&&X.length>10?X.length-=10:X.length-=9},c.prototype.imulK=function(X){X.words[X.length]=0,X.words[X.length+1]=0,X.length+=2;for(var Y=0,Q=0;Q<X.length;Q++){var J=X.words[Q]|0;Y+=J*977,X.words[Q]=Y&67108863,Y=J*64+(Y/67108864|0)}return X.words[X.length-1]===0&&(X.length--,X.words[X.length-1]===0&&X.length--),X};function n(){p.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}S(n,p);function i(){p.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}S(i,p);function Q0(){p.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}S(Q0,p),Q0.prototype.imulK=function(X){for(var Y=0,Q=0;Q<X.length;Q++){var J=(X.words[Q]|0)*19+Y,F=J&67108863;J>>>=26,X.words[Q]=F,Y=J}return Y!==0&&(X.words[X.length++]=Y),X},H._prime=function(X){if(y[X])return y[X];var Y;if(X==="k256")Y=new c;else if(X==="p224")Y=new n;else if(X==="p192")Y=new i;else if(X==="p25519")Y=new Q0;else throw new Error("Unknown prime "+X);return y[X]=Y,Y};function f(X){if(typeof X=="string"){var Y=H._prime(X);this.m=Y.p,this.prime=Y}else j(X.gtn(1),"modulus must be greater than 1"),this.m=X,this.prime=null}f.prototype._verify1=function(X){j(X.negative===0,"red works only with positives"),j(X.red,"red works only with red numbers")},f.prototype._verify2=function(X,Y){j((X.negative|Y.negative)===0,"red works only with positives"),j(X.red&&X.red===Y.red,"red works only with red numbers")},f.prototype.imod=function(X){return this.prime?this.prime.ireduce(X)._forceRed(this):X.umod(this.m)._forceRed(this)},f.prototype.neg=function(X){return X.isZero()?X.clone():this.m.sub(X)._forceRed(this)},f.prototype.add=function(X,Y){this._verify2(X,Y);var Q=X.add(Y);return Q.cmp(this.m)>=0&&Q.isub(this.m),Q._forceRed(this)},f.prototype.iadd=function(X,Y){this._verify2(X,Y);var Q=X.iadd(Y);return Q.cmp(this.m)>=0&&Q.isub(this.m),Q},f.prototype.sub=function(X,Y){this._verify2(X,Y);var Q=X.sub(Y);return Q.cmpn(0)<0&&Q.iadd(this.m),Q._forceRed(this)},f.prototype.isub=function(X,Y){this._verify2(X,Y);var Q=X.isub(Y);return Q.cmpn(0)<0&&Q.iadd(this.m),Q},f.prototype.shl=function(X,Y){return this._verify1(X),this.imod(X.ushln(Y))},f.prototype.imul=function(X,Y){return this._verify2(X,Y),this.imod(X.imul(Y))},f.prototype.mul=function(X,Y){return this._verify2(X,Y),this.imod(X.mul(Y))},f.prototype.isqr=function(X){return this.imul(X,X.clone())},f.prototype.sqr=function(X){return this.mul(X,X)},f.prototype.sqrt=function(X){if(X.isZero())return X.clone();var Y=this.m.andln(3);if(j(Y%2===1),Y===3){var Q=this.m.add(new H(1)).iushrn(2);return this.pow(X,Q)}for(var J=this.m.subn(1),F=0;!J.isZero()&&J.andln(1)===0;)F++,J.iushrn(1);j(!J.isZero());var W=new H(1).toRed(this),Z=W.redNeg(),C=this.m.subn(1).iushrn(1),K=this.m.bitLength();for(K=new H(2*K*K).toRed(this);this.pow(K,C).cmp(Z)!==0;)K.redIAdd(Z);for(var G=this.pow(K,J),R=this.pow(X,J.addn(1).iushrn(1)),L=this.pow(X,J),_=F;L.cmp(W)!==0;){for(var s=L,r=0;s.cmp(W)!==0;r++)s=s.redSqr();j(r<_);var Y0=this.pow(G,new H(1).iushln(_-r-1));R=R.redMul(Y0),G=Y0.redSqr(),L=L.redMul(G),_=r}return R},f.prototype.invm=function(X){var Y=X._invmp(this.m);return Y.negative!==0?(Y.negative=0,this.imod(Y).redNeg()):this.imod(Y)},f.prototype.pow=function(X,Y){if(Y.isZero())return new H(1).toRed(this);if(Y.cmpn(1)===0)return X.clone();var Q=4,J=new Array(1<<Q);J[0]=new H(1).toRed(this),J[1]=X;for(var F=2;F<J.length;F++)J[F]=this.mul(J[F-1],X);var W=J[0],Z=0,C=0,K=Y.bitLength()%26;for(K===0&&(K=26),F=Y.length-1;F>=0;F--){for(var G=Y.words[F],R=K-1;R>=0;R--){var L=G>>R&1;if(W!==J[0]&&(W=this.sqr(W)),L===0&&Z===0){C=0;continue}Z<<=1,Z|=L,C++,!(C!==Q&&(F!==0||R!==0))&&(W=this.mul(W,J[Z]),C=0,Z=0)}K=26}return W},f.prototype.convertTo=function(X){var Y=X.umod(this.m);return Y===X?Y.clone():Y},f.prototype.convertFrom=function(X){var Y=X.clone();return Y.red=null,Y},H.mont=function(X){return new W0(X)};function W0(X){f.call(this,X),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new H(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)}S(W0,f),W0.prototype.convertTo=function(X){return this.imod(X.ushln(this.shift))},W0.prototype.convertFrom=function(X){var Y=this.imod(X.mul(this.rinv));return Y.red=null,Y},W0.prototype.imul=function(X,Y){if(X.isZero()||Y.isZero())return X.words[0]=0,X.length=1,X;var Q=X.imul(Y),J=Q.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),F=Q.isub(J).iushrn(this.shift),W=F;return F.cmp(this.m)>=0?W=F.isub(this.m):F.cmpn(0)<0&&(W=F.iadd(this.m)),W._forceRed(this)},W0.prototype.mul=function(X,Y){if(X.isZero()||Y.isZero())return new H(0)._forceRed(this);var Q=X.mul(Y),J=Q.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),F=Q.isub(J).iushrn(this.shift),W=F;return F.cmp(this.m)>=0?W=F.isub(this.m):F.cmpn(0)<0&&(W=F.iadd(this.m)),W._forceRed(this)},W0.prototype.invm=function(X){var Y=this.imod(X._invmp(this.m).mul(this.r2));return Y._forceRed(this)}})(typeof g>"u"||g,l)}),M9=C0((l,g)=>{var E=U5(),A=E.Buffer,j={},S;for(S in E)!E.hasOwnProperty(S)||S==="SlowBuffer"||S==="Buffer"||(j[S]=E[S]);var H=j.Buffer={};for(S in A)!A.hasOwnProperty(S)||S==="allocUnsafe"||S==="allocUnsafeSlow"||(H[S]=A[S]);if(j.Buffer.prototype=A.prototype,(!H.from||H.from===Uint8Array.from)&&(H.from=function(P,k,z){if(typeof P=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof P);if(P&&typeof P.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof P);return A(P,k,z)}),H.alloc||(H.alloc=function(P,k,z){if(typeof P!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof P);if(P<0||P>=2147483648)throw new RangeError('The value "'+P+'" is invalid for option "size"');var V=A(P);return!k||k.length===0?V.fill(0):typeof z=="string"?V.fill(k,z):V.fill(k),V}),!j.kStringMaxLength)try{j.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch{}j.constants||(j.constants={MAX_LENGTH:j.kMaxLength},j.kStringMaxLength&&(j.constants.MAX_STRING_LENGTH=j.kStringMaxLength)),g.exports=j}),_9=C0((l)=>{var g=p0();function E(j){this._reporterState={obj:null,path:[],options:j||{},errors:[]}}l.Reporter=E,E.prototype.isError=function(j){return j instanceof A},E.prototype.save=function(){let j=this._reporterState;return{obj:j.obj,pathLen:j.path.length}},E.prototype.restore=function(j){let S=this._reporterState;S.obj=j.obj,S.path=S.path.slice(0,j.pathLen)},E.prototype.enterKey=function(j){return this._reporterState.path.push(j)},E.prototype.exitKey=function(j){let S=this._reporterState;S.path=S.path.slice(0,j-1)},E.prototype.leaveKey=function(j,S,H){let P=this._reporterState;this.exitKey(j),P.obj!==null&&(P.obj[S]=H)},E.prototype.path=function(){return this._reporterState.path.join("/")},E.prototype.enterObject=function(){let j=this._reporterState,S=j.obj;return j.obj={},S},E.prototype.leaveObject=function(j){let S=this._reporterState,H=S.obj;return S.obj=j,H},E.prototype.error=function(j){let S,H=this._reporterState,P=j instanceof A;if(P?S=j:S=new A(H.path.map(function(k){return"["+JSON.stringify(k)+"]"}).join(""),j.message||j,j.stack),!H.options.partial)throw S;return P||H.errors.push(S),S},E.prototype.wrapResult=function(j){let S=this._reporterState;return S.options.partial?{result:this.isError(j)?null:j,errors:S.errors}:j};function A(j,S){this.path=j,this.rethrow(S)}g(A,Error),A.prototype.rethrow=function(j){if(this.message=j+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,A),!this.stack)try{throw new Error(this.message)}catch(S){this.stack=S.stack}return this}}),l5=C0((l)=>{var g=p0(),E=_9().Reporter,A=M9().Buffer;function j(H,P){if(E.call(this,P),!A.isBuffer(H)){this.error("Input not Buffer");return}this.base=H,this.offset=0,this.length=H.length}g(j,E),l.DecoderBuffer=j,j.isDecoderBuffer=function(H){return H instanceof j?!0:typeof H=="object"&&A.isBuffer(H.base)&&H.constructor.name==="DecoderBuffer"&&typeof H.offset=="number"&&typeof H.length=="number"&&typeof H.save=="function"&&typeof H.restore=="function"&&typeof H.isEmpty=="function"&&typeof H.readUInt8=="function"&&typeof H.skip=="function"&&typeof H.raw=="function"},j.prototype.save=function(){return{offset:this.offset,reporter:E.prototype.save.call(this)}},j.prototype.restore=function(H){let P=new j(this.base);return P.offset=H.offset,P.length=this.offset,this.offset=H.offset,E.prototype.restore.call(this,H.reporter),P},j.prototype.isEmpty=function(){return this.offset===this.length},j.prototype.readUInt8=function(H){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(H||"DecoderBuffer overrun")},j.prototype.skip=function(H,P){if(!(this.offset+H<=this.length))return this.error(P||"DecoderBuffer overrun");let k=new j(this.base);return k._reporterState=this._reporterState,k.offset=this.offset,k.length=this.offset+H,this.offset+=H,k},j.prototype.raw=function(H){return this.base.slice(H?H.offset:this.offset,this.length)};function S(H,P){if(Array.isArray(H))this.length=0,this.value=H.map(function(k){return S.isEncoderBuffer(k)||(k=new S(k,P)),this.length+=k.length,k},this);else if(typeof H=="number"){if(!(0<=H&&H<=255))return P.error("non-byte EncoderBuffer value");this.value=H,this.length=1}else if(typeof H=="string")this.value=H,this.length=A.byteLength(H);else if(A.isBuffer(H))this.value=H,this.length=H.length;else return P.error("Unsupported type: "+typeof H)}l.EncoderBuffer=S,S.isEncoderBuffer=function(H){return H instanceof S?!0:typeof H=="object"&&H.constructor.name==="EncoderBuffer"&&typeof H.length=="number"&&typeof H.join=="function"},S.prototype.join=function(H,P){return H||(H=A.alloc(this.length)),P||(P=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(k){k.join(H,P),P+=k.length}):(typeof this.value=="number"?H[P]=this.value:typeof this.value=="string"?H.write(this.value,P):A.isBuffer(this.value)&&this.value.copy(H,P),P+=this.length)),H}}),w9=C0((l,g)=>{var E=_9().Reporter,A=l5().EncoderBuffer,j=l5().DecoderBuffer,S=O5(),H=["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"],P=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(H),k=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function z($,T,D){let U={};this._baseState=U,U.name=D,U.enc=$,U.parent=T||null,U.children=null,U.tag=null,U.args=null,U.reverseArgs=null,U.choice=null,U.optional=!1,U.any=!1,U.obj=!1,U.use=null,U.useDecoder=null,U.key=null,U.default=null,U.explicit=null,U.implicit=null,U.contains=null,U.parent||(U.children=[],this._wrap())}g.exports=z;var V=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];z.prototype.clone=function(){let $=this._baseState,T={};V.forEach(function(U){T[U]=$[U]});let D=new this.constructor(T.parent);return D._baseState=T,D},z.prototype._wrap=function(){let $=this._baseState;P.forEach(function(T){this[T]=function(){let D=new this.constructor(this);return $.children.push(D),D[T].apply(D,arguments)}},this)},z.prototype._init=function($){let T=this._baseState;S(T.parent===null),$.call(this),T.children=T.children.filter(function(D){return D._baseState.parent===this},this),S.equal(T.children.length,1,"Root node can have only one child")},z.prototype._useArgs=function($){let T=this._baseState,D=$.filter(function(U){return U instanceof this.constructor},this);$=$.filter(function(U){return!(U instanceof this.constructor)},this),D.length!==0&&(S(T.children===null),T.children=D,D.forEach(function(U){U._baseState.parent=this},this)),$.length!==0&&(S(T.args===null),T.args=$,T.reverseArgs=$.map(function(U){if(typeof U!="object"||U.constructor!==Object)return U;let N={};return Object.keys(U).forEach(function(I){I==(I|0)&&(I|=0);let M=U[I];N[M]=I}),N}))},k.forEach(function($){z.prototype[$]=function(){let T=this._baseState;throw new Error($+" not implemented for encoding: "+T.enc)}}),H.forEach(function($){z.prototype[$]=function(){let T=this._baseState,D=Array.prototype.slice.call(arguments);return S(T.tag===null),T.tag=$,this._useArgs(D),this}}),z.prototype.use=function($){S($);let T=this._baseState;return S(T.use===null),T.use=$,this},z.prototype.optional=function(){let $=this._baseState;return $.optional=!0,this},z.prototype.def=function($){let T=this._baseState;return S(T.default===null),T.default=$,T.optional=!0,this},z.prototype.explicit=function($){let T=this._baseState;return S(T.explicit===null&&T.implicit===null),T.explicit=$,this},z.prototype.implicit=function($){let T=this._baseState;return S(T.explicit===null&&T.implicit===null),T.implicit=$,this},z.prototype.obj=function(){let $=this._baseState,T=Array.prototype.slice.call(arguments);return $.obj=!0,T.length!==0&&this._useArgs(T),this},z.prototype.key=function($){let T=this._baseState;return S(T.key===null),T.key=$,this},z.prototype.any=function(){let $=this._baseState;return $.any=!0,this},z.prototype.choice=function($){let T=this._baseState;return S(T.choice===null),T.choice=$,this._useArgs(Object.keys($).map(function(D){return $[D]})),this},z.prototype.contains=function($){let T=this._baseState;return S(T.use===null),T.contains=$,this},z.prototype._decode=function($,T){let D=this._baseState;if(D.parent===null)return $.wrapResult(D.children[0]._decode($,T));let U=D.default,N=!0,I=null;if(D.key!==null&&(I=$.enterKey(D.key)),D.optional){let x=null;if(D.explicit!==null?x=D.explicit:D.implicit!==null?x=D.implicit:D.tag!==null&&(x=D.tag),x===null&&!D.any){let v=$.save();try{D.choice===null?this._decodeGeneric(D.tag,$,T):this._decodeChoice($,T),N=!0}catch{N=!1}$.restore(v)}else if(N=this._peekTag($,x,D.any),$.isError(N))return N}let M;if(D.obj&&N&&(M=$.enterObject()),N){if(D.explicit!==null){let v=this._decodeTag($,D.explicit);if($.isError(v))return v;$=v}let x=$.offset;if(D.use===null&&D.choice===null){let v;D.any&&(v=$.save());let y=this._decodeTag($,D.implicit!==null?D.implicit:D.tag,D.any);if($.isError(y))return y;D.any?U=$.raw(v):$=y}if(T&&T.track&&D.tag!==null&&T.track($.path(),x,$.length,"tagged"),T&&T.track&&D.tag!==null&&T.track($.path(),$.offset,$.length,"content"),D.any||(D.choice===null?U=this._decodeGeneric(D.tag,$,T):U=this._decodeChoice($,T)),$.isError(U))return U;if(!D.any&&D.choice===null&&D.children!==null&&D.children.forEach(function(v){v._decode($,T)}),D.contains&&(D.tag==="octstr"||D.tag==="bitstr")){let v=new j(U);U=this._getUse(D.contains,$._reporterState.obj)._decode(v,T)}}return D.obj&&N&&(U=$.leaveObject(M)),D.key!==null&&(U!==null||N===!0)?$.leaveKey(I,D.key,U):I!==null&&$.exitKey(I),U},z.prototype._decodeGeneric=function($,T,D){let U=this._baseState;return $==="seq"||$==="set"?null:$==="seqof"||$==="setof"?this._decodeList(T,$,U.args[0],D):/str$/.test($)?this._decodeStr(T,$,D):$==="objid"&&U.args?this._decodeObjid(T,U.args[0],U.args[1],D):$==="objid"?this._decodeObjid(T,null,null,D):$==="gentime"||$==="utctime"?this._decodeTime(T,$,D):$==="null_"?this._decodeNull(T,D):$==="bool"?this._decodeBool(T,D):$==="objDesc"?this._decodeStr(T,$,D):$==="int"||$==="enum"?this._decodeInt(T,U.args&&U.args[0],D):U.use!==null?this._getUse(U.use,T._reporterState.obj)._decode(T,D):T.error("unknown tag: "+$)},z.prototype._getUse=function($,T){let D=this._baseState;return D.useDecoder=this._use($,T),S(D.useDecoder._baseState.parent===null),D.useDecoder=D.useDecoder._baseState.children[0],D.implicit!==D.useDecoder._baseState.implicit&&(D.useDecoder=D.useDecoder.clone(),D.useDecoder._baseState.implicit=D.implicit),D.useDecoder},z.prototype._decodeChoice=function($,T){let D=this._baseState,U=null,N=!1;return Object.keys(D.choice).some(function(I){let M=$.save(),x=D.choice[I];try{let v=x._decode($,T);if($.isError(v))return!1;U={type:I,value:v},N=!0}catch{return $.restore(M),!1}return!0},this),N?U:$.error("Choice not matched")},z.prototype._createEncoderBuffer=function($){return new A($,this.reporter)},z.prototype._encode=function($,T,D){let U=this._baseState;if(U.default!==null&&U.default===$)return;let N=this._encodeValue($,T,D);if(N!==void 0&&!this._skipDefault(N,T,D))return N},z.prototype._encodeValue=function($,T,D){let U=this._baseState;if(U.parent===null)return U.children[0]._encode($,T||new E);let N=null;if(this.reporter=T,U.optional&&$===void 0)if(U.default!==null)$=U.default;else return;let I=null,M=!1;if(U.any)N=this._createEncoderBuffer($);else if(U.choice)N=this._encodeChoice($,T);else if(U.contains)I=this._getUse(U.contains,D)._encode($,T),M=!0;else if(U.children)I=U.children.map(function(x){if(x._baseState.tag==="null_")return x._encode(null,T,$);if(x._baseState.key===null)return T.error("Child should have a key");let v=T.enterKey(x._baseState.key);if(typeof $!="object")return T.error("Child expected, but input is not object");let y=x._encode($[x._baseState.key],T,$);return T.leaveKey(v),y},this).filter(function(x){return x}),I=this._createEncoderBuffer(I);else if(U.tag==="seqof"||U.tag==="setof"){if(!(U.args&&U.args.length===1))return T.error("Too many args for : "+U.tag);if(!Array.isArray($))return T.error("seqof/setof, but data is not Array");let x=this.clone();x._baseState.implicit=null,I=this._createEncoderBuffer($.map(function(v){let y=this._baseState;return this._getUse(y.args[0],$)._encode(v,T)},x))}else U.use!==null?N=this._getUse(U.use,D)._encode($,T):(I=this._encodePrimitive(U.tag,$),M=!0);if(!U.any&&U.choice===null){let x=U.implicit!==null?U.implicit:U.tag,v=U.implicit===null?"universal":"context";x===null?U.use===null&&T.error("Tag could be omitted only for .use()"):U.use===null&&(N=this._encodeComposite(x,M,v,I))}return U.explicit!==null&&(N=this._encodeComposite(U.explicit,!1,"context",N)),N},z.prototype._encodeChoice=function($,T){let D=this._baseState,U=D.choice[$.type];return U||S(!1,$.type+" not found in "+JSON.stringify(Object.keys(D.choice))),U._encode($.value,T)},z.prototype._encodePrimitive=function($,T){let D=this._baseState;if(/str$/.test($))return this._encodeStr(T,$);if($==="objid"&&D.args)return this._encodeObjid(T,D.reverseArgs[0],D.args[1]);if($==="objid")return this._encodeObjid(T,null,null);if($==="gentime"||$==="utctime")return this._encodeTime(T,$);if($==="null_")return this._encodeNull();if($==="int"||$==="enum")return this._encodeInt(T,D.args&&D.reverseArgs[0]);if($==="bool")return this._encodeBool(T);if($==="objDesc")return this._encodeStr(T,$);throw new Error("Unsupported tag: "+$)},z.prototype._isNumstr=function($){return/^[0-9 ]*$/.test($)},z.prototype._isPrintstr=function($){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test($)}}),y9=C0((l)=>{function g(E){let A={};return Object.keys(E).forEach(function(j){(j|0)==j&&(j=j|0);let S=E[j];A[S]=j}),A}l.tagClass={0:"universal",1:"application",2:"context",3:"private"},l.tagClassByName=g(l.tagClass),l.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"},l.tagByName=g(l.tag)}),y6=C0((l,g)=>{var E=p0(),A=M9().Buffer,j=w9(),S=y9();function H(V){this.enc="der",this.name=V.name,this.entity=V,this.tree=new P,this.tree._init(V.body)}g.exports=H,H.prototype.encode=function(V,$){return this.tree._encode(V,$).join()};function P(V){j.call(this,"der",V)}E(P,j),P.prototype._encodeComposite=function(V,$,T,D){let U=z(V,$,T,this.reporter);if(D.length<128){let M=A.alloc(2);return M[0]=U,M[1]=D.length,this._createEncoderBuffer([M,D])}let N=1;for(let M=D.length;M>=256;M>>=8)N++;let I=A.alloc(2+N);I[0]=U,I[1]=128|N;for(let M=1+N,x=D.length;x>0;M--,x>>=8)I[M]=x&255;return this._createEncoderBuffer([I,D])},P.prototype._encodeStr=function(V,$){if($==="bitstr")return this._createEncoderBuffer([V.unused|0,V.data]);if($==="bmpstr"){let T=A.alloc(V.length*2);for(let D=0;D<V.length;D++)T.writeUInt16BE(V.charCodeAt(D),D*2);return this._createEncoderBuffer(T)}else return $==="numstr"?this._isNumstr(V)?this._createEncoderBuffer(V):this.reporter.error("Encoding of string type: numstr supports only digits and space"):$==="printstr"?this._isPrintstr(V)?this._createEncoderBuffer(V):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($)?this._createEncoderBuffer(V):$==="objDesc"?this._createEncoderBuffer(V):this.reporter.error("Encoding of string type: "+$+" unsupported")},P.prototype._encodeObjid=function(V,$,T){if(typeof V=="string"){if(!$)return this.reporter.error("string objid given, but no values map found");if(!$.hasOwnProperty(V))return this.reporter.error("objid not found in values map");V=$[V].split(/[\s.]+/g);for(let I=0;I<V.length;I++)V[I]|=0}else if(Array.isArray(V)){V=V.slice();for(let I=0;I<V.length;I++)V[I]|=0}if(!Array.isArray(V))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(V));if(!T){if(V[1]>=40)return this.reporter.error("Second objid identifier OOB");V.splice(0,2,V[0]*40+V[1])}let D=0;for(let I=0;I<V.length;I++){let M=V[I];for(D++;M>=128;M>>=7)D++}let U=A.alloc(D),N=U.length-1;for(let I=V.length-1;I>=0;I--){let M=V[I];for(U[N--]=M&127;(M>>=7)>0;)U[N--]=128|M&127}return this._createEncoderBuffer(U)};function k(V){return V<10?"0"+V:V}P.prototype._encodeTime=function(V,$){let T,D=new Date(V);return $==="gentime"?T=[k(D.getUTCFullYear()),k(D.getUTCMonth()+1),k(D.getUTCDate()),k(D.getUTCHours()),k(D.getUTCMinutes()),k(D.getUTCSeconds()),"Z"].join(""):$==="utctime"?T=[k(D.getUTCFullYear()%100),k(D.getUTCMonth()+1),k(D.getUTCDate()),k(D.getUTCHours()),k(D.getUTCMinutes()),k(D.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+$+" time is not supported yet"),this._encodeStr(T,"octstr")},P.prototype._encodeNull=function(){return this._createEncoderBuffer("")},P.prototype._encodeInt=function(V,$){if(typeof V=="string"){if(!$)return this.reporter.error("String int or enum given, but no values map");if(!$.hasOwnProperty(V))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(V));V=$[V]}if(typeof V!="number"&&!A.isBuffer(V)){let U=V.toArray();!V.sign&&U[0]&128&&U.unshift(0),V=A.from(U)}if(A.isBuffer(V)){let U=V.length;V.length===0&&U++;let N=A.alloc(U);return V.copy(N),V.length===0&&(N[0]=0),this._createEncoderBuffer(N)}if(V<128)return this._createEncoderBuffer(V);if(V<256)return this._createEncoderBuffer([0,V]);let T=1;for(let U=V;U>=256;U>>=8)T++;let D=new Array(T);for(let U=D.length-1;U>=0;U--)D[U]=V&255,V>>=8;return D[0]&128&&D.unshift(0),this._createEncoderBuffer(A.from(D))},P.prototype._encodeBool=function(V){return this._createEncoderBuffer(V?255:0)},P.prototype._use=function(V,$){return typeof V=="function"&&(V=V($)),V._getEncoder("der").tree},P.prototype._skipDefault=function(V,$,T){let D=this._baseState,U;if(D.default===null)return!1;let N=V.join();if(D.defaultBuffer===void 0&&(D.defaultBuffer=this._encodeValue(D.default,$,T).join()),N.length!==D.defaultBuffer.length)return!1;for(U=0;U<N.length;U++)if(N[U]!==D.defaultBuffer[U])return!1;return!0};function z(V,$,T,D){let U;if(V==="seqof"?V="seq":V==="setof"&&(V="set"),S.tagByName.hasOwnProperty(V))U=S.tagByName[V];else if(typeof V=="number"&&(V|0)===V)U=V;else return D.error("Unknown tag: "+V);return U>=31?D.error("Multi-octet tag encoding unsupported"):($||(U|=32),U|=S.tagClassByName[T||"universal"]<<6,U)}}),N8=C0((l,g)=>{var E=p0(),A=y6();function j(S){A.call(this,S),this.enc="pem"}E(j,A),g.exports=j,j.prototype.encode=function(S,H){let P=A.prototype.encode.call(this,S).toString("base64"),k=["-----BEGIN "+H.label+"-----"];for(let z=0;z<P.length;z+=64)k.push(P.slice(z,z+64));return k.push("-----END "+H.label+"-----"),k.join(`
4
4
  `)}}),g6=C0((l)=>{var g=l;g.der=y6(),g.pem=N8()}),m6=C0((l,g)=>{var E=p0(),A=w6(),j=l5().DecoderBuffer,S=w9(),H=y9();function P($){this.enc="der",this.name=$.name,this.entity=$,this.tree=new k,this.tree._init($.body)}g.exports=P,P.prototype.decode=function($,T){return j.isDecoderBuffer($)||($=new j($,T)),this.tree._decode($,T)};function k($){S.call(this,"der",$)}E(k,S),k.prototype._peekTag=function($,T,D){if($.isEmpty())return!1;let U=$.save(),N=z($,'Failed to peek tag: "'+T+'"');return $.isError(N)?N:($.restore(U),N.tag===T||N.tagStr===T||N.tagStr+"of"===T||D)},k.prototype._decodeTag=function($,T,D){let U=z($,'Failed to decode tag of "'+T+'"');if($.isError(U))return U;let N=V($,U.primitive,'Failed to get length of "'+T+'"');if($.isError(N))return N;if(!D&&U.tag!==T&&U.tagStr!==T&&U.tagStr+"of"!==T)return $.error('Failed to match tag: "'+T+'"');if(U.primitive||N!==null)return $.skip(N,'Failed to match body of: "'+T+'"');let I=$.save(),M=this._skipUntilEnd($,'Failed to skip indefinite length body: "'+this.tag+'"');return $.isError(M)?M:(N=$.offset-I.offset,$.restore(I),$.skip(N,'Failed to match body of: "'+T+'"'))},k.prototype._skipUntilEnd=function($,T){for(;;){let D=z($,T);if($.isError(D))return D;let U=V($,D.primitive,T);if($.isError(U))return U;let N;if(D.primitive||U!==null?N=$.skip(U):N=this._skipUntilEnd($,T),$.isError(N))return N;if(D.tagStr==="end")break}},k.prototype._decodeList=function($,T,D,U){let N=[];for(;!$.isEmpty();){let I=this._peekTag($,"end");if($.isError(I))return I;let M=D.decode($,"der",U);if($.isError(M)&&I)break;N.push(M)}return N},k.prototype._decodeStr=function($,T){if(T==="bitstr"){let D=$.readUInt8();return $.isError(D)?D:{unused:D,data:$.raw()}}else if(T==="bmpstr"){let D=$.raw();if(D.length%2===1)return $.error("Decoding of string type: bmpstr length mismatch");let U="";for(let N=0;N<D.length/2;N++)U+=String.fromCharCode(D.readUInt16BE(N*2));return U}else if(T==="numstr"){let D=$.raw().toString("ascii");return this._isNumstr(D)?D:$.error("Decoding of string type: numstr unsupported characters")}else{if(T==="octstr")return $.raw();if(T==="objDesc")return $.raw();if(T==="printstr"){let D=$.raw().toString("ascii");return this._isPrintstr(D)?D:$.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(T)?$.raw().toString():$.error("Decoding of string type: "+T+" unsupported")}},k.prototype._decodeObjid=function($,T,D){let U,N=[],I=0,M=0;for(;!$.isEmpty();)M=$.readUInt8(),I<<=7,I|=M&127,(M&128)===0&&(N.push(I),I=0);M&128&&N.push(I);let x=N[0]/40|0,v=N[0]%40;if(D?U=N:U=[x,v].concat(N.slice(1)),T){let y=T[U.join(" ")];y===void 0&&(y=T[U.join(".")]),y!==void 0&&(U=y)}return U},k.prototype._decodeTime=function($,T){let D=$.raw().toString(),U,N,I,M,x,v;if(T==="gentime")U=D.slice(0,4)|0,N=D.slice(4,6)|0,I=D.slice(6,8)|0,M=D.slice(8,10)|0,x=D.slice(10,12)|0,v=D.slice(12,14)|0;else if(T==="utctime")U=D.slice(0,2)|0,N=D.slice(2,4)|0,I=D.slice(4,6)|0,M=D.slice(6,8)|0,x=D.slice(8,10)|0,v=D.slice(10,12)|0,U<70?U=2000+U:U=1900+U;else return $.error("Decoding "+T+" time is not supported yet");return Date.UTC(U,N-1,I,M,x,v,0)},k.prototype._decodeNull=function(){return null},k.prototype._decodeBool=function($){let T=$.readUInt8();return $.isError(T)?T:T!==0},k.prototype._decodeInt=function($,T){let D=$.raw(),U=new A(D);return T&&(U=T[U.toString(10)]||U),U},k.prototype._use=function($,T){return typeof $=="function"&&($=$(T)),$._getDecoder("der").tree};function z($,T){let D=$.readUInt8(T);if($.isError(D))return D;let U=H.tagClass[D>>6],N=(D&32)===0;if((D&31)===31){let M=D;for(D=0;(M&128)===128;){if(M=$.readUInt8(T),$.isError(M))return M;D<<=7,D|=M&127}}else D&=31;let I=H.tag[D];return{cls:U,primitive:N,tag:D,tagStr:I}}function V($,T,D){let U=$.readUInt8(D);if($.isError(U))return U;if(!T&&U===128)return null;if((U&128)===0)return U;let N=U&127;if(N>4)return $.error("length octect is too long");U=0;for(let I=0;I<N;I++){U<<=8;let M=$.readUInt8(D);if($.isError(M))return M;U|=M}return U}}),L8=C0((l,g)=>{var E=p0(),A=M9().Buffer,j=m6();function S(H){j.call(this,H),this.enc="pem"}E(S,j),g.exports=S,S.prototype.decode=function(H,P){let k=H.toString().split(/[\r\n]+/g),z=P.label.toUpperCase(),V=/^-----(BEGIN|END) ([^-]+)-----$/,$=-1,T=-1;for(let N=0;N<k.length;N++){let I=k[N].match(V);if(I!==null&&I[2]===z)if($===-1){if(I[1]!=="BEGIN")break;$=N}else{if(I[1]!=="END")break;T=N;break}}if($===-1||T===-1)throw new Error("PEM section not found for: "+z);let D=k.slice($+1,T).join("");D.replace(/[^a-z0-9+/=]+/gi,"");let U=A.from(D,"base64");return j.prototype.decode.call(this,U,P)}}),p6=C0((l)=>{var g=l;g.der=m6(),g.pem=L8()}),k8=C0((l)=>{var g=g6(),E=p6(),A=p0(),j=l;j.define=function(H,P){return new S(H,P)};function S(H,P){this.name=H,this.body=P,this.decoders={},this.encoders={}}S.prototype._createNamed=function(H){let P=this.name;function k(z){this._initNamed(z,P)}return A(k,H),k.prototype._initNamed=function(z,V){H.call(this,z,V)},new k(this)},S.prototype._getDecoder=function(H){return H=H||"der",this.decoders.hasOwnProperty(H)||(this.decoders[H]=this._createNamed(E[H])),this.decoders[H]},S.prototype.decode=function(H,P,k){return this._getDecoder(P).decode(H,k)},S.prototype._getEncoder=function(H){return H=H||"der",this.encoders.hasOwnProperty(H)||(this.encoders[H]=this._createNamed(g[H])),this.encoders[H]},S.prototype.encode=function(H,P,k){return this._getEncoder(P).encode(H,k)}}),I8=C0((l)=>{var g=l;g.Reporter=_9().Reporter,g.DecoderBuffer=l5().DecoderBuffer,g.EncoderBuffer=l5().EncoderBuffer,g.Node=w9()}),q8=C0((l)=>{var g=l;g._reverse=function(E){let A={};return Object.keys(E).forEach(function(j){(j|0)==j&&(j=j|0);let S=E[j];A[S]=j}),A},g.der=y9()}),b6=C0((l)=>{var g=l;g.bignum=w6(),g.define=k8().define,g.base=I8(),g.constants=q8(),g.decoders=p6(),g.encoders=g6()}),B8=C0((l,g)=>{var E=b6(),A=E.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),j=E.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),S=E.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),H=E.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(S),this.key("subjectPublicKey").bitstr())}),P=E.define("RelativeDistinguishedName",function(){this.setof(j)}),k=E.define("RDNSequence",function(){this.seqof(P)}),z=E.define("Name",function(){this.choice({rdnSequence:this.use(k)})}),V=E.define("Validity",function(){this.seq().obj(this.key("notBefore").use(A),this.key("notAfter").use(A))}),$=E.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),T=E.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(S),this.key("issuer").use(z),this.key("validity").use(V),this.key("subject").use(z),this.key("subjectPublicKeyInfo").use(H),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof($).optional())}),D=E.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(T),this.key("signatureAlgorithm").use(S),this.key("signatureValue").bitstr())});g.exports=D}),R8=C0((l)=>{var g=b6();l.certificate=B8();var E=g.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())});l.RSAPrivateKey=E;var A=g.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});l.RSAPublicKey=A;var j=g.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(S),this.key("subjectPublicKey").bitstr())});l.PublicKey=j;var S=g.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())}),H=g.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(S),this.key("subjectPrivateKey").octstr())});l.PrivateKey=H;var P=g.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())});l.EncryptedPrivateKey=P;var k=g.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())});l.DSAPrivateKey=k,l.DSAparam=g.define("DSAparam",function(){this.int()});var z=g.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(V),this.key("publicKey").optional().explicit(1).bitstr())});l.ECPrivateKey=z;var V=g.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});l.signature=g.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})}),E8=C0((l,g)=>{g.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"}}),S8=C0((l,g)=>{var E=/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,A=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,j=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,S=Y9(),H=q9(),P=d0().Buffer;g.exports=function(k,z){var V=k.toString(),$=V.match(E),T;if($){var D="aes"+$[1],U=P.from($[2],"hex"),N=P.from($[3].replace(/[\r\n]/g,""),"base64"),I=S(z,U.slice(0,8),parseInt($[1],10)).key,M=[],x=H.createDecipheriv(D,I,U);M.push(x.update(N)),M.push(x.final()),T=P.concat(M)}else{var v=V.match(j);T=P.from(v[2].replace(/[\r\n]/g,""),"base64")}var y=V.match(A)[1];return{tag:y,data:T}}}),Q9=C0((l,g)=>{var E=R8(),A=E8(),j=S8(),S=q9(),H=P6(),P=d0().Buffer;g.exports=k;function k(V){var $;typeof V=="object"&&!P.isBuffer(V)&&($=V.passphrase,V=V.key),typeof V=="string"&&(V=P.from(V));var T=j(V,$),D=T.tag,U=T.data,N,I;switch(D){case"CERTIFICATE":I=E.certificate.decode(U,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(I||(I=E.PublicKey.decode(U,"der")),N=I.algorithm.algorithm.join("."),N){case"1.2.840.113549.1.1.1":return E.RSAPublicKey.decode(I.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return I.subjectPrivateKey=I.subjectPublicKey,{type:"ec",data:I};case"1.2.840.10040.4.1":return I.algorithm.params.pub_key=E.DSAparam.decode(I.subjectPublicKey.data,"der"),{type:"dsa",data:I.algorithm.params};default:throw new Error("unknown key id "+N)}case"ENCRYPTED PRIVATE KEY":U=E.EncryptedPrivateKey.decode(U,"der"),U=z(U,$);case"PRIVATE KEY":switch(I=E.PrivateKey.decode(U,"der"),N=I.algorithm.algorithm.join("."),N){case"1.2.840.113549.1.1.1":return E.RSAPrivateKey.decode(I.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:I.algorithm.curve,privateKey:E.ECPrivateKey.decode(I.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return I.algorithm.params.priv_key=E.DSAparam.decode(I.subjectPrivateKey,"der"),{type:"dsa",params:I.algorithm.params};default:throw new Error("unknown key id "+N)}case"RSA PUBLIC KEY":return E.RSAPublicKey.decode(U,"der");case"RSA PRIVATE KEY":return E.RSAPrivateKey.decode(U,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:E.DSAPrivateKey.decode(U,"der")};case"EC PRIVATE KEY":return U=E.ECPrivateKey.decode(U,"der"),{curve:U.parameters.value,privateKey:U.privateKey};default:throw new Error("unknown key type "+D)}}k.signature=E.signature;function z(V,$){var T=V.algorithm.decrypt.kde.kdeparams.salt,D=parseInt(V.algorithm.decrypt.kde.kdeparams.iters.toString(),10),U=A[V.algorithm.decrypt.cipher.algo.join(".")],N=V.algorithm.decrypt.cipher.iv,I=V.subjectPrivateKey,M=parseInt(U.split("-")[1],10)/8,x=H.pbkdf2Sync($,T,D,M,"sha1"),v=S.createDecipheriv(U,x,N),y=[];return y.push(v.update(I)),y.push(v.final()),P.concat(y)}}),c6=C0((l,g)=>{g.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}}),x8=C0((l,g)=>{var E=d0().Buffer,A=C6(),j=S9(),S=v9().ec,H=E9(),P=Q9(),k=c6();function z(x,v,y,p,c){var n=P(v);if(n.curve){if(p!=="ecdsa"&&p!=="ecdsa/rsa")throw new Error("wrong private key type");return V(x,n)}else if(n.type==="dsa"){if(p!=="dsa")throw new Error("wrong private key type");return $(x,n,y)}else if(p!=="rsa"&&p!=="ecdsa/rsa")throw new Error("wrong private key type");x=E.concat([c,x]);for(var i=n.modulus.byteLength(),Q0=[0,1];x.length+Q0.length+1<i;)Q0.push(255);Q0.push(0);for(var f=-1;++f<x.length;)Q0.push(x[f]);var W0=j(Q0,n);return W0}function V(x,v){var y=k[v.curve.join(".")];if(!y)throw new Error("unknown curve "+v.curve.join("."));var p=new S(y),c=p.keyFromPrivate(v.privateKey),n=c.sign(x);return E.from(n.toDER())}function $(x,v,y){for(var p=v.params.priv_key,c=v.params.p,n=v.params.q,i=v.params.g,Q0=new H(0),f,W0=U(x,n).mod(n),X=!1,Y=D(p,n,x,y);X===!1;)f=I(n,Y,y),Q0=M(i,f,c,n),X=f.invm(n).imul(W0.add(p.mul(Q0))).mod(n),X.cmpn(0)===0&&(X=!1,Q0=new H(0));return T(Q0,X)}function T(x,v){x=x.toArray(),v=v.toArray(),x[0]&128&&(x=[0].concat(x)),v[0]&128&&(v=[0].concat(v));var y=x.length+v.length+4,p=[48,y,2,x.length];return p=p.concat(x,[2,v.length],v),E.from(p)}function D(x,v,y,p){if(x=E.from(x.toArray()),x.length<v.byteLength()){var c=E.alloc(v.byteLength()-x.length);x=E.concat([c,x])}var n=y.length,i=N(y,v),Q0=E.alloc(n);Q0.fill(1);var f=E.alloc(n);return f=A(p,f).update(Q0).update(E.from([0])).update(x).update(i).digest(),Q0=A(p,f).update(Q0).digest(),f=A(p,f).update(Q0).update(E.from([1])).update(x).update(i).digest(),Q0=A(p,f).update(Q0).digest(),{k:f,v:Q0}}function U(x,v){var y=new H(x),p=(x.length<<3)-v.bitLength();return p>0&&y.ishrn(p),y}function N(x,v){x=U(x,v),x=x.mod(v);var y=E.from(x.toArray());if(y.length<v.byteLength()){var p=E.alloc(v.byteLength()-y.length);y=E.concat([p,y])}return y}function I(x,v,y){var p,c;do{for(p=E.alloc(0);p.length*8<x.bitLength();)v.v=A(y,v.k).update(v.v).digest(),p=E.concat([p,v.v]);c=U(p,x),v.k=A(y,v.k).update(v.v).update(E.from([0])).digest(),v.v=A(y,v.k).update(v.v).digest()}while(c.cmp(x)!==-1);return c}function M(x,v,y,p){return x.toRed(H.mont(y)).redPow(v).fromRed().mod(p)}g.exports=z,g.exports.getKey=D,g.exports.makeKey=I}),A8=C0((l,g)=>{var E=d0().Buffer,A=E9(),j=v9().ec,S=Q9(),H=c6();function P($,T,D,U,N){var I=S(D);if(I.type==="ec"){if(U!=="ecdsa"&&U!=="ecdsa/rsa")throw new Error("wrong public key type");return k($,T,I)}else if(I.type==="dsa"){if(U!=="dsa")throw new Error("wrong public key type");return z($,T,I)}else if(U!=="rsa"&&U!=="ecdsa/rsa")throw new Error("wrong public key type");T=E.concat([N,T]);for(var M=I.modulus.byteLength(),x=[1],v=0;T.length+x.length+2<M;)x.push(255),v++;x.push(0);for(var y=-1;++y<T.length;)x.push(T[y]);x=E.from(x);var p=A.mont(I.modulus);$=new A($).toRed(p),$=$.redPow(new A(I.publicExponent)),$=E.from($.fromRed().toArray());var c=v<8?1:0;for(M=Math.min($.length,x.length),$.length!==x.length&&(c=1),y=-1;++y<M;)c|=$[y]^x[y];return c===0}function k($,T,D){var U=H[D.data.algorithm.curve.join(".")];if(!U)throw new Error("unknown curve "+D.data.algorithm.curve.join("."));var N=new j(U),I=D.data.subjectPrivateKey.data;return N.verify(T,$,I)}function z($,T,D){var U=D.data.p,N=D.data.q,I=D.data.g,M=D.data.pub_key,x=S.signature.decode($,"der"),v=x.s,y=x.r;V(v,N),V(y,N);var p=A.mont(U),c=v.invm(N),n=I.toRed(p).redPow(new A(T).mul(c).mod(N)).fromRed().mul(M.toRed(p).redPow(y.mul(c).mod(N)).fromRed()).mod(U).mod(N);return n.cmp(y)===0}function V($,T){if($.cmpn(0)<=0)throw new Error("invalid sig");if($.cmp(T)>=T)throw new Error("invalid sig")}g.exports=P}),v8=C0((l,g)=>{var E=d0().Buffer,A=u5(),j=K8(),S=p0(),H=x8(),P=A8(),k=G6();Object.keys(k).forEach(function(D){k[D].id=E.from(k[D].id,"hex"),k[D.toLowerCase()]=k[D]});function z(D){j.Writable.call(this);var U=k[D];if(!U)throw new Error("Unknown message digest");this._hashType=U.hash,this._hash=A(U.hash),this._tag=U.id,this._signType=U.sign}S(z,j.Writable),z.prototype._write=function(D,U,N){this._hash.update(D),N()},z.prototype.update=function(D,U){return typeof D=="string"&&(D=E.from(D,U)),this._hash.update(D),this},z.prototype.sign=function(D,U){this.end();var N=this._hash.digest(),I=H(N,D,this._hashType,this._signType,this._tag);return U?I.toString(U):I};function V(D){j.Writable.call(this);var U=k[D];if(!U)throw new Error("Unknown message digest");this._hash=A(U.hash),this._tag=U.id,this._signType=U.sign}S(V,j.Writable),V.prototype._write=function(D,U,N){this._hash.update(D),N()},V.prototype.update=function(D,U){return typeof D=="string"&&(D=E.from(D,U)),this._hash.update(D),this},V.prototype.verify=function(D,U,N){typeof U=="string"&&(U=E.from(U,N)),this.end();var I=this._hash.digest();return P(U,I,D,this._signType,this._tag)};function $(D){return new z(D)}function T(D){return new V(D)}g.exports={Sign:$,Verify:T,createSign:$,createVerify:T}}),M8=C0((l,g)=>{(function(E,A){function j(X,Y){if(!X)throw new Error(Y||"Assertion failed")}function S(X,Y){X.super_=Y;var Q=function(){};Q.prototype=Y.prototype,X.prototype=new Q,X.prototype.constructor=X}function H(X,Y,Q){if(H.isBN(X))return X;this.negative=0,this.words=null,this.length=0,this.red=null,X!==null&&((Y==="le"||Y==="be")&&(Q=Y,Y=10),this._init(X||0,Y||10,Q||"be"))}typeof E=="object"?E.exports=H:A.BN=H,H.BN=H,H.wordSize=26;var P;try{typeof window<"u"&&typeof window.Buffer<"u"?P=window.Buffer:P=M5().Buffer}catch{}H.isBN=function(X){return X instanceof H?!0:X!==null&&typeof X=="object"&&X.constructor.wordSize===H.wordSize&&Array.isArray(X.words)},H.max=function(X,Y){return X.cmp(Y)>0?X:Y},H.min=function(X,Y){return X.cmp(Y)<0?X:Y},H.prototype._init=function(X,Y,Q){if(typeof X=="number")return this._initNumber(X,Y,Q);if(typeof X=="object")return this._initArray(X,Y,Q);Y==="hex"&&(Y=16),j(Y===(Y|0)&&Y>=2&&Y<=36),X=X.toString().replace(/\s+/g,"");var J=0;X[0]==="-"&&(J++,this.negative=1),J<X.length&&(Y===16?this._parseHex(X,J,Q):(this._parseBase(X,Y,J),Q==="le"&&this._initArray(this.toArray(),Y,Q)))},H.prototype._initNumber=function(X,Y,Q){X<0&&(this.negative=1,X=-X),X<67108864?(this.words=[X&67108863],this.length=1):X<4503599627370496?(this.words=[X&67108863,X/67108864&67108863],this.length=2):(j(X<9007199254740992),this.words=[X&67108863,X/67108864&67108863,1],this.length=3),Q==="le"&&this._initArray(this.toArray(),Y,Q)},H.prototype._initArray=function(X,Y,Q){if(j(typeof X.length=="number"),X.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(X.length/3),this.words=new Array(this.length);for(var J=0;J<this.length;J++)this.words[J]=0;var F,W,Z=0;if(Q==="be")for(J=X.length-1,F=0;J>=0;J-=3)W=X[J]|X[J-1]<<8|X[J-2]<<16,this.words[F]|=W<<Z&67108863,this.words[F+1]=W>>>26-Z&67108863,Z+=24,Z>=26&&(Z-=26,F++);else if(Q==="le")for(J=0,F=0;J<X.length;J+=3)W=X[J]|X[J+1]<<8|X[J+2]<<16,this.words[F]|=W<<Z&67108863,this.words[F+1]=W>>>26-Z&67108863,Z+=24,Z>=26&&(Z-=26,F++);return this.strip()};function k(X,Y){var Q=X.charCodeAt(Y);return Q>=65&&Q<=70?Q-55:Q>=97&&Q<=102?Q-87:Q-48&15}function z(X,Y,Q){var J=k(X,Q);return Q-1>=Y&&(J|=k(X,Q-1)<<4),J}H.prototype._parseHex=function(X,Y,Q){this.length=Math.ceil((X.length-Y)/6),this.words=new Array(this.length);for(var J=0;J<this.length;J++)this.words[J]=0;var F=0,W=0,Z;if(Q==="be")for(J=X.length-1;J>=Y;J-=2)Z=z(X,Y,J)<<F,this.words[W]|=Z&67108863,F>=18?(F-=18,W+=1,this.words[W]|=Z>>>26):F+=8;else{var C=X.length-Y;for(J=C%2===0?Y+1:Y;J<X.length;J+=2)Z=z(X,Y,J)<<F,this.words[W]|=Z&67108863,F>=18?(F-=18,W+=1,this.words[W]|=Z>>>26):F+=8}this.strip()};function V(X,Y,Q,J){for(var F=0,W=Math.min(X.length,Q),Z=Y;Z<W;Z++){var C=X.charCodeAt(Z)-48;F*=J,C>=49?F+=C-49+10:C>=17?F+=C-17+10:F+=C}return F}H.prototype._parseBase=function(X,Y,Q){this.words=[0],this.length=1;for(var J=0,F=1;F<=67108863;F*=Y)J++;J--,F=F/Y|0;for(var W=X.length-Q,Z=W%J,C=Math.min(W,W-Z)+Q,K=0,G=Q;G<C;G+=J)K=V(X,G,G+J,Y),this.imuln(F),this.words[0]+K<67108864?this.words[0]+=K:this._iaddn(K);if(Z!==0){var R=1;for(K=V(X,G,X.length,Y),G=0;G<Z;G++)R*=Y;this.imuln(R),this.words[0]+K<67108864?this.words[0]+=K:this._iaddn(K)}this.strip()},H.prototype.copy=function(X){X.words=new Array(this.length);for(var Y=0;Y<this.length;Y++)X.words[Y]=this.words[Y];X.length=this.length,X.negative=this.negative,X.red=this.red},H.prototype.clone=function(){var X=new H(null);return this.copy(X),X},H.prototype._expand=function(X){for(;this.length<X;)this.words[this.length++]=0;return this},H.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},H.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},H.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var $=["","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"],T=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],D=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];H.prototype.toString=function(X,Y){X=X||10,Y=Y|0||1;var Q;if(X===16||X==="hex"){Q="";for(var J=0,F=0,W=0;W<this.length;W++){var Z=this.words[W],C=((Z<<J|F)&16777215).toString(16);F=Z>>>24-J&16777215,F!==0||W!==this.length-1?Q=$[6-C.length]+C+Q:Q=C+Q,J+=2,J>=26&&(J-=26,W--)}for(F!==0&&(Q=F.toString(16)+Q);Q.length%Y!==0;)Q="0"+Q;return this.negative!==0&&(Q="-"+Q),Q}if(X===(X|0)&&X>=2&&X<=36){var K=T[X],G=D[X];Q="";var R=this.clone();for(R.negative=0;!R.isZero();){var L=R.modn(G).toString(X);R=R.idivn(G),R.isZero()?Q=L+Q:Q=$[K-L.length]+L+Q}for(this.isZero()&&(Q="0"+Q);Q.length%Y!==0;)Q="0"+Q;return this.negative!==0&&(Q="-"+Q),Q}j(!1,"Base should be between 2 and 36")},H.prototype.toNumber=function(){var X=this.words[0];return this.length===2?X+=this.words[1]*67108864:this.length===3&&this.words[2]===1?X+=4503599627370496+this.words[1]*67108864:this.length>2&&j(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-X:X},H.prototype.toJSON=function(){return this.toString(16)},H.prototype.toBuffer=function(X,Y){return j(typeof P<"u"),this.toArrayLike(P,X,Y)},H.prototype.toArray=function(X,Y){return this.toArrayLike(Array,X,Y)},H.prototype.toArrayLike=function(X,Y,Q){var J=this.byteLength(),F=Q||Math.max(1,J);j(J<=F,"byte array longer than desired length"),j(F>0,"Requested array length <= 0"),this.strip();var W=Y==="le",Z=new X(F),C,K,G=this.clone();if(W){for(K=0;!G.isZero();K++)C=G.andln(255),G.iushrn(8),Z[K]=C;for(;K<F;K++)Z[K]=0}else{for(K=0;K<F-J;K++)Z[K]=0;for(K=0;!G.isZero();K++)C=G.andln(255),G.iushrn(8),Z[F-K-1]=C}return Z},Math.clz32?H.prototype._countBits=function(X){return 32-Math.clz32(X)}:H.prototype._countBits=function(X){var Y=X,Q=0;return Y>=4096&&(Q+=13,Y>>>=13),Y>=64&&(Q+=7,Y>>>=7),Y>=8&&(Q+=4,Y>>>=4),Y>=2&&(Q+=2,Y>>>=2),Q+Y},H.prototype._zeroBits=function(X){if(X===0)return 26;var Y=X,Q=0;return(Y&8191)===0&&(Q+=13,Y>>>=13),(Y&127)===0&&(Q+=7,Y>>>=7),(Y&15)===0&&(Q+=4,Y>>>=4),(Y&3)===0&&(Q+=2,Y>>>=2),(Y&1)===0&&Q++,Q},H.prototype.bitLength=function(){var X=this.words[this.length-1],Y=this._countBits(X);return(this.length-1)*26+Y};function U(X){for(var Y=new Array(X.bitLength()),Q=0;Q<Y.length;Q++){var J=Q/26|0,F=Q%26;Y[Q]=(X.words[J]&1<<F)>>>F}return Y}H.prototype.zeroBits=function(){if(this.isZero())return 0;for(var X=0,Y=0;Y<this.length;Y++){var Q=this._zeroBits(this.words[Y]);if(X+=Q,Q!==26)break}return X},H.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},H.prototype.toTwos=function(X){return this.negative!==0?this.abs().inotn(X).iaddn(1):this.clone()},H.prototype.fromTwos=function(X){return this.testn(X-1)?this.notn(X).iaddn(1).ineg():this.clone()},H.prototype.isNeg=function(){return this.negative!==0},H.prototype.neg=function(){return this.clone().ineg()},H.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},H.prototype.iuor=function(X){for(;this.length<X.length;)this.words[this.length++]=0;for(var Y=0;Y<X.length;Y++)this.words[Y]=this.words[Y]|X.words[Y];return this.strip()},H.prototype.ior=function(X){return j((this.negative|X.negative)===0),this.iuor(X)},H.prototype.or=function(X){return this.length>X.length?this.clone().ior(X):X.clone().ior(this)},H.prototype.uor=function(X){return this.length>X.length?this.clone().iuor(X):X.clone().iuor(this)},H.prototype.iuand=function(X){var Y;this.length>X.length?Y=X:Y=this;for(var Q=0;Q<Y.length;Q++)this.words[Q]=this.words[Q]&X.words[Q];return this.length=Y.length,this.strip()},H.prototype.iand=function(X){return j((this.negative|X.negative)===0),this.iuand(X)},H.prototype.and=function(X){return this.length>X.length?this.clone().iand(X):X.clone().iand(this)},H.prototype.uand=function(X){return this.length>X.length?this.clone().iuand(X):X.clone().iuand(this)},H.prototype.iuxor=function(X){var Y,Q;this.length>X.length?(Y=this,Q=X):(Y=X,Q=this);for(var J=0;J<Q.length;J++)this.words[J]=Y.words[J]^Q.words[J];if(this!==Y)for(;J<Y.length;J++)this.words[J]=Y.words[J];return this.length=Y.length,this.strip()},H.prototype.ixor=function(X){return j((this.negative|X.negative)===0),this.iuxor(X)},H.prototype.xor=function(X){return this.length>X.length?this.clone().ixor(X):X.clone().ixor(this)},H.prototype.uxor=function(X){return this.length>X.length?this.clone().iuxor(X):X.clone().iuxor(this)},H.prototype.inotn=function(X){j(typeof X=="number"&&X>=0);var Y=Math.ceil(X/26)|0,Q=X%26;this._expand(Y),Q>0&&Y--;for(var J=0;J<Y;J++)this.words[J]=~this.words[J]&67108863;return Q>0&&(this.words[J]=~this.words[J]&67108863>>26-Q),this.strip()},H.prototype.notn=function(X){return this.clone().inotn(X)},H.prototype.setn=function(X,Y){j(typeof X=="number"&&X>=0);var Q=X/26|0,J=X%26;return this._expand(Q+1),Y?this.words[Q]=this.words[Q]|1<<J:this.words[Q]=this.words[Q]&~(1<<J),this.strip()},H.prototype.iadd=function(X){var Y;if(this.negative!==0&&X.negative===0)return this.negative=0,Y=this.isub(X),this.negative^=1,this._normSign();if(this.negative===0&&X.negative!==0)return X.negative=0,Y=this.isub(X),X.negative=1,Y._normSign();var Q,J;this.length>X.length?(Q=this,J=X):(Q=X,J=this);for(var F=0,W=0;W<J.length;W++)Y=(Q.words[W]|0)+(J.words[W]|0)+F,this.words[W]=Y&67108863,F=Y>>>26;for(;F!==0&&W<Q.length;W++)Y=(Q.words[W]|0)+F,this.words[W]=Y&67108863,F=Y>>>26;if(this.length=Q.length,F!==0)this.words[this.length]=F,this.length++;else if(Q!==this)for(;W<Q.length;W++)this.words[W]=Q.words[W];return this},H.prototype.add=function(X){var Y;return X.negative!==0&&this.negative===0?(X.negative=0,Y=this.sub(X),X.negative^=1,Y):X.negative===0&&this.negative!==0?(this.negative=0,Y=X.sub(this),this.negative=1,Y):this.length>X.length?this.clone().iadd(X):X.clone().iadd(this)},H.prototype.isub=function(X){if(X.negative!==0){X.negative=0;var Y=this.iadd(X);return X.negative=1,Y._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(X),this.negative=1,this._normSign();var Q=this.cmp(X);if(Q===0)return this.negative=0,this.length=1,this.words[0]=0,this;var J,F;Q>0?(J=this,F=X):(J=X,F=this);for(var W=0,Z=0;Z<F.length;Z++)Y=(J.words[Z]|0)-(F.words[Z]|0)+W,W=Y>>26,this.words[Z]=Y&67108863;for(;W!==0&&Z<J.length;Z++)Y=(J.words[Z]|0)+W,W=Y>>26,this.words[Z]=Y&67108863;if(W===0&&Z<J.length&&J!==this)for(;Z<J.length;Z++)this.words[Z]=J.words[Z];return this.length=Math.max(this.length,Z),J!==this&&(this.negative=1),this.strip()},H.prototype.sub=function(X){return this.clone().isub(X)};function N(X,Y,Q){Q.negative=Y.negative^X.negative;var J=X.length+Y.length|0;Q.length=J,J=J-1|0;var F=X.words[0]|0,W=Y.words[0]|0,Z=F*W,C=Z&67108863,K=Z/67108864|0;Q.words[0]=C;for(var G=1;G<J;G++){for(var R=K>>>26,L=K&67108863,_=Math.min(G,Y.length-1),s=Math.max(0,G-X.length+1);s<=_;s++){var r=G-s|0;F=X.words[r]|0,W=Y.words[s]|0,Z=F*W+L,R+=Z/67108864|0,L=Z&67108863}Q.words[G]=L|0,K=R|0}return K!==0?Q.words[G]=K|0:Q.length--,Q.strip()}var I=function(X,Y,Q){var J=X.words,F=Y.words,W=Q.words,Z=0,C,K,G,R=J[0]|0,L=R&8191,_=R>>>13,s=J[1]|0,r=s&8191,Y0=s>>>13,u=J[2]|0,d=u&8191,a=u>>>13,V0=J[3]|0,X0=V0&8191,F0=V0>>>13,w=J[4]|0,q=w&8191,m=w>>>13,e=J[5]|0,K0=e&8191,t=e>>>13,_0=J[6]|0,H0=_0&8191,G0=_0>>>13,w0=J[7]|0,U0=w0&8191,Z0=w0>>>13,c0=J[8]|0,O=c0&8191,B=c0>>>13,b=J[9]|0,h=b&8191,o=b>>>13,z0=F[0]|0,J0=z0&8191,$0=z0>>>13,b0=F[1]|0,P0=b0&8191,j0=b0>>>13,y0=F[2]|0,D0=y0&8191,N0=y0>>>13,H5=F[3]|0,T0=H5&8191,O0=H5>>>13,l0=F[4]|0,L0=l0&8191,k0=l0>>>13,G5=F[5]|0,I0=G5&8191,q0=G5>>>13,W5=F[6]|0,B0=W5&8191,R0=W5>>>13,Z5=F[7]|0,E0=Z5&8191,S0=Z5>>>13,$5=F[8]|0,x0=$5&8191,A0=$5>>>13,j5=F[9]|0,v0=j5&8191,M0=j5>>>13;Q.negative=X.negative^Y.negative,Q.length=19,C=Math.imul(L,J0),K=Math.imul(L,$0),K=K+Math.imul(_,J0)|0,G=Math.imul(_,$0);var F5=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(F5>>>26)|0,F5&=67108863,C=Math.imul(r,J0),K=Math.imul(r,$0),K=K+Math.imul(Y0,J0)|0,G=Math.imul(Y0,$0),C=C+Math.imul(L,P0)|0,K=K+Math.imul(L,j0)|0,K=K+Math.imul(_,P0)|0,G=G+Math.imul(_,j0)|0;var g0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(g0>>>26)|0,g0&=67108863,C=Math.imul(d,J0),K=Math.imul(d,$0),K=K+Math.imul(a,J0)|0,G=Math.imul(a,$0),C=C+Math.imul(r,P0)|0,K=K+Math.imul(r,j0)|0,K=K+Math.imul(Y0,P0)|0,G=G+Math.imul(Y0,j0)|0,C=C+Math.imul(L,D0)|0,K=K+Math.imul(L,N0)|0,K=K+Math.imul(_,D0)|0,G=G+Math.imul(_,N0)|0;var m0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(m0>>>26)|0,m0&=67108863,C=Math.imul(X0,J0),K=Math.imul(X0,$0),K=K+Math.imul(F0,J0)|0,G=Math.imul(F0,$0),C=C+Math.imul(d,P0)|0,K=K+Math.imul(d,j0)|0,K=K+Math.imul(a,P0)|0,G=G+Math.imul(a,j0)|0,C=C+Math.imul(r,D0)|0,K=K+Math.imul(r,N0)|0,K=K+Math.imul(Y0,D0)|0,G=G+Math.imul(Y0,N0)|0,C=C+Math.imul(L,T0)|0,K=K+Math.imul(L,O0)|0,K=K+Math.imul(_,T0)|0,G=G+Math.imul(_,O0)|0;var h0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(h0>>>26)|0,h0&=67108863,C=Math.imul(q,J0),K=Math.imul(q,$0),K=K+Math.imul(m,J0)|0,G=Math.imul(m,$0),C=C+Math.imul(X0,P0)|0,K=K+Math.imul(X0,j0)|0,K=K+Math.imul(F0,P0)|0,G=G+Math.imul(F0,j0)|0,C=C+Math.imul(d,D0)|0,K=K+Math.imul(d,N0)|0,K=K+Math.imul(a,D0)|0,G=G+Math.imul(a,N0)|0,C=C+Math.imul(r,T0)|0,K=K+Math.imul(r,O0)|0,K=K+Math.imul(Y0,T0)|0,G=G+Math.imul(Y0,O0)|0,C=C+Math.imul(L,L0)|0,K=K+Math.imul(L,k0)|0,K=K+Math.imul(_,L0)|0,G=G+Math.imul(_,k0)|0;var u0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(u0>>>26)|0,u0&=67108863,C=Math.imul(K0,J0),K=Math.imul(K0,$0),K=K+Math.imul(t,J0)|0,G=Math.imul(t,$0),C=C+Math.imul(q,P0)|0,K=K+Math.imul(q,j0)|0,K=K+Math.imul(m,P0)|0,G=G+Math.imul(m,j0)|0,C=C+Math.imul(X0,D0)|0,K=K+Math.imul(X0,N0)|0,K=K+Math.imul(F0,D0)|0,G=G+Math.imul(F0,N0)|0,C=C+Math.imul(d,T0)|0,K=K+Math.imul(d,O0)|0,K=K+Math.imul(a,T0)|0,G=G+Math.imul(a,O0)|0,C=C+Math.imul(r,L0)|0,K=K+Math.imul(r,k0)|0,K=K+Math.imul(Y0,L0)|0,G=G+Math.imul(Y0,k0)|0,C=C+Math.imul(L,I0)|0,K=K+Math.imul(L,q0)|0,K=K+Math.imul(_,I0)|0,G=G+Math.imul(_,q0)|0;var o0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(o0>>>26)|0,o0&=67108863,C=Math.imul(H0,J0),K=Math.imul(H0,$0),K=K+Math.imul(G0,J0)|0,G=Math.imul(G0,$0),C=C+Math.imul(K0,P0)|0,K=K+Math.imul(K0,j0)|0,K=K+Math.imul(t,P0)|0,G=G+Math.imul(t,j0)|0,C=C+Math.imul(q,D0)|0,K=K+Math.imul(q,N0)|0,K=K+Math.imul(m,D0)|0,G=G+Math.imul(m,N0)|0,C=C+Math.imul(X0,T0)|0,K=K+Math.imul(X0,O0)|0,K=K+Math.imul(F0,T0)|0,G=G+Math.imul(F0,O0)|0,C=C+Math.imul(d,L0)|0,K=K+Math.imul(d,k0)|0,K=K+Math.imul(a,L0)|0,G=G+Math.imul(a,k0)|0,C=C+Math.imul(r,I0)|0,K=K+Math.imul(r,q0)|0,K=K+Math.imul(Y0,I0)|0,G=G+Math.imul(Y0,q0)|0,C=C+Math.imul(L,B0)|0,K=K+Math.imul(L,R0)|0,K=K+Math.imul(_,B0)|0,G=G+Math.imul(_,R0)|0;var s0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(s0>>>26)|0,s0&=67108863,C=Math.imul(U0,J0),K=Math.imul(U0,$0),K=K+Math.imul(Z0,J0)|0,G=Math.imul(Z0,$0),C=C+Math.imul(H0,P0)|0,K=K+Math.imul(H0,j0)|0,K=K+Math.imul(G0,P0)|0,G=G+Math.imul(G0,j0)|0,C=C+Math.imul(K0,D0)|0,K=K+Math.imul(K0,N0)|0,K=K+Math.imul(t,D0)|0,G=G+Math.imul(t,N0)|0,C=C+Math.imul(q,T0)|0,K=K+Math.imul(q,O0)|0,K=K+Math.imul(m,T0)|0,G=G+Math.imul(m,O0)|0,C=C+Math.imul(X0,L0)|0,K=K+Math.imul(X0,k0)|0,K=K+Math.imul(F0,L0)|0,G=G+Math.imul(F0,k0)|0,C=C+Math.imul(d,I0)|0,K=K+Math.imul(d,q0)|0,K=K+Math.imul(a,I0)|0,G=G+Math.imul(a,q0)|0,C=C+Math.imul(r,B0)|0,K=K+Math.imul(r,R0)|0,K=K+Math.imul(Y0,B0)|0,G=G+Math.imul(Y0,R0)|0,C=C+Math.imul(L,E0)|0,K=K+Math.imul(L,S0)|0,K=K+Math.imul(_,E0)|0,G=G+Math.imul(_,S0)|0;var a0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(a0>>>26)|0,a0&=67108863,C=Math.imul(O,J0),K=Math.imul(O,$0),K=K+Math.imul(B,J0)|0,G=Math.imul(B,$0),C=C+Math.imul(U0,P0)|0,K=K+Math.imul(U0,j0)|0,K=K+Math.imul(Z0,P0)|0,G=G+Math.imul(Z0,j0)|0,C=C+Math.imul(H0,D0)|0,K=K+Math.imul(H0,N0)|0,K=K+Math.imul(G0,D0)|0,G=G+Math.imul(G0,N0)|0,C=C+Math.imul(K0,T0)|0,K=K+Math.imul(K0,O0)|0,K=K+Math.imul(t,T0)|0,G=G+Math.imul(t,O0)|0,C=C+Math.imul(q,L0)|0,K=K+Math.imul(q,k0)|0,K=K+Math.imul(m,L0)|0,G=G+Math.imul(m,k0)|0,C=C+Math.imul(X0,I0)|0,K=K+Math.imul(X0,q0)|0,K=K+Math.imul(F0,I0)|0,G=G+Math.imul(F0,q0)|0,C=C+Math.imul(d,B0)|0,K=K+Math.imul(d,R0)|0,K=K+Math.imul(a,B0)|0,G=G+Math.imul(a,R0)|0,C=C+Math.imul(r,E0)|0,K=K+Math.imul(r,S0)|0,K=K+Math.imul(Y0,E0)|0,G=G+Math.imul(Y0,S0)|0,C=C+Math.imul(L,x0)|0,K=K+Math.imul(L,A0)|0,K=K+Math.imul(_,x0)|0,G=G+Math.imul(_,A0)|0;var f0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(f0>>>26)|0,f0&=67108863,C=Math.imul(h,J0),K=Math.imul(h,$0),K=K+Math.imul(o,J0)|0,G=Math.imul(o,$0),C=C+Math.imul(O,P0)|0,K=K+Math.imul(O,j0)|0,K=K+Math.imul(B,P0)|0,G=G+Math.imul(B,j0)|0,C=C+Math.imul(U0,D0)|0,K=K+Math.imul(U0,N0)|0,K=K+Math.imul(Z0,D0)|0,G=G+Math.imul(Z0,N0)|0,C=C+Math.imul(H0,T0)|0,K=K+Math.imul(H0,O0)|0,K=K+Math.imul(G0,T0)|0,G=G+Math.imul(G0,O0)|0,C=C+Math.imul(K0,L0)|0,K=K+Math.imul(K0,k0)|0,K=K+Math.imul(t,L0)|0,G=G+Math.imul(t,k0)|0,C=C+Math.imul(q,I0)|0,K=K+Math.imul(q,q0)|0,K=K+Math.imul(m,I0)|0,G=G+Math.imul(m,q0)|0,C=C+Math.imul(X0,B0)|0,K=K+Math.imul(X0,R0)|0,K=K+Math.imul(F0,B0)|0,G=G+Math.imul(F0,R0)|0,C=C+Math.imul(d,E0)|0,K=K+Math.imul(d,S0)|0,K=K+Math.imul(a,E0)|0,G=G+Math.imul(a,S0)|0,C=C+Math.imul(r,x0)|0,K=K+Math.imul(r,A0)|0,K=K+Math.imul(Y0,x0)|0,G=G+Math.imul(Y0,A0)|0,C=C+Math.imul(L,v0)|0,K=K+Math.imul(L,M0)|0,K=K+Math.imul(_,v0)|0,G=G+Math.imul(_,M0)|0;var n0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(n0>>>26)|0,n0&=67108863,C=Math.imul(h,P0),K=Math.imul(h,j0),K=K+Math.imul(o,P0)|0,G=Math.imul(o,j0),C=C+Math.imul(O,D0)|0,K=K+Math.imul(O,N0)|0,K=K+Math.imul(B,D0)|0,G=G+Math.imul(B,N0)|0,C=C+Math.imul(U0,T0)|0,K=K+Math.imul(U0,O0)|0,K=K+Math.imul(Z0,T0)|0,G=G+Math.imul(Z0,O0)|0,C=C+Math.imul(H0,L0)|0,K=K+Math.imul(H0,k0)|0,K=K+Math.imul(G0,L0)|0,G=G+Math.imul(G0,k0)|0,C=C+Math.imul(K0,I0)|0,K=K+Math.imul(K0,q0)|0,K=K+Math.imul(t,I0)|0,G=G+Math.imul(t,q0)|0,C=C+Math.imul(q,B0)|0,K=K+Math.imul(q,R0)|0,K=K+Math.imul(m,B0)|0,G=G+Math.imul(m,R0)|0,C=C+Math.imul(X0,E0)|0,K=K+Math.imul(X0,S0)|0,K=K+Math.imul(F0,E0)|0,G=G+Math.imul(F0,S0)|0,C=C+Math.imul(d,x0)|0,K=K+Math.imul(d,A0)|0,K=K+Math.imul(a,x0)|0,G=G+Math.imul(a,A0)|0,C=C+Math.imul(r,v0)|0,K=K+Math.imul(r,M0)|0,K=K+Math.imul(Y0,v0)|0,G=G+Math.imul(Y0,M0)|0;var r0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(r0>>>26)|0,r0&=67108863,C=Math.imul(h,D0),K=Math.imul(h,N0),K=K+Math.imul(o,D0)|0,G=Math.imul(o,N0),C=C+Math.imul(O,T0)|0,K=K+Math.imul(O,O0)|0,K=K+Math.imul(B,T0)|0,G=G+Math.imul(B,O0)|0,C=C+Math.imul(U0,L0)|0,K=K+Math.imul(U0,k0)|0,K=K+Math.imul(Z0,L0)|0,G=G+Math.imul(Z0,k0)|0,C=C+Math.imul(H0,I0)|0,K=K+Math.imul(H0,q0)|0,K=K+Math.imul(G0,I0)|0,G=G+Math.imul(G0,q0)|0,C=C+Math.imul(K0,B0)|0,K=K+Math.imul(K0,R0)|0,K=K+Math.imul(t,B0)|0,G=G+Math.imul(t,R0)|0,C=C+Math.imul(q,E0)|0,K=K+Math.imul(q,S0)|0,K=K+Math.imul(m,E0)|0,G=G+Math.imul(m,S0)|0,C=C+Math.imul(X0,x0)|0,K=K+Math.imul(X0,A0)|0,K=K+Math.imul(F0,x0)|0,G=G+Math.imul(F0,A0)|0,C=C+Math.imul(d,v0)|0,K=K+Math.imul(d,M0)|0,K=K+Math.imul(a,v0)|0,G=G+Math.imul(a,M0)|0;var i0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(i0>>>26)|0,i0&=67108863,C=Math.imul(h,T0),K=Math.imul(h,O0),K=K+Math.imul(o,T0)|0,G=Math.imul(o,O0),C=C+Math.imul(O,L0)|0,K=K+Math.imul(O,k0)|0,K=K+Math.imul(B,L0)|0,G=G+Math.imul(B,k0)|0,C=C+Math.imul(U0,I0)|0,K=K+Math.imul(U0,q0)|0,K=K+Math.imul(Z0,I0)|0,G=G+Math.imul(Z0,q0)|0,C=C+Math.imul(H0,B0)|0,K=K+Math.imul(H0,R0)|0,K=K+Math.imul(G0,B0)|0,G=G+Math.imul(G0,R0)|0,C=C+Math.imul(K0,E0)|0,K=K+Math.imul(K0,S0)|0,K=K+Math.imul(t,E0)|0,G=G+Math.imul(t,S0)|0,C=C+Math.imul(q,x0)|0,K=K+Math.imul(q,A0)|0,K=K+Math.imul(m,x0)|0,G=G+Math.imul(m,A0)|0,C=C+Math.imul(X0,v0)|0,K=K+Math.imul(X0,M0)|0,K=K+Math.imul(F0,v0)|0,G=G+Math.imul(F0,M0)|0;var t0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(t0>>>26)|0,t0&=67108863,C=Math.imul(h,L0),K=Math.imul(h,k0),K=K+Math.imul(o,L0)|0,G=Math.imul(o,k0),C=C+Math.imul(O,I0)|0,K=K+Math.imul(O,q0)|0,K=K+Math.imul(B,I0)|0,G=G+Math.imul(B,q0)|0,C=C+Math.imul(U0,B0)|0,K=K+Math.imul(U0,R0)|0,K=K+Math.imul(Z0,B0)|0,G=G+Math.imul(Z0,R0)|0,C=C+Math.imul(H0,E0)|0,K=K+Math.imul(H0,S0)|0,K=K+Math.imul(G0,E0)|0,G=G+Math.imul(G0,S0)|0,C=C+Math.imul(K0,x0)|0,K=K+Math.imul(K0,A0)|0,K=K+Math.imul(t,x0)|0,G=G+Math.imul(t,A0)|0,C=C+Math.imul(q,v0)|0,K=K+Math.imul(q,M0)|0,K=K+Math.imul(m,v0)|0,G=G+Math.imul(m,M0)|0;var e0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(e0>>>26)|0,e0&=67108863,C=Math.imul(h,I0),K=Math.imul(h,q0),K=K+Math.imul(o,I0)|0,G=Math.imul(o,q0),C=C+Math.imul(O,B0)|0,K=K+Math.imul(O,R0)|0,K=K+Math.imul(B,B0)|0,G=G+Math.imul(B,R0)|0,C=C+Math.imul(U0,E0)|0,K=K+Math.imul(U0,S0)|0,K=K+Math.imul(Z0,E0)|0,G=G+Math.imul(Z0,S0)|0,C=C+Math.imul(H0,x0)|0,K=K+Math.imul(H0,A0)|0,K=K+Math.imul(G0,x0)|0,G=G+Math.imul(G0,A0)|0,C=C+Math.imul(K0,v0)|0,K=K+Math.imul(K0,M0)|0,K=K+Math.imul(t,v0)|0,G=G+Math.imul(t,M0)|0;var X5=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(X5>>>26)|0,X5&=67108863,C=Math.imul(h,B0),K=Math.imul(h,R0),K=K+Math.imul(o,B0)|0,G=Math.imul(o,R0),C=C+Math.imul(O,E0)|0,K=K+Math.imul(O,S0)|0,K=K+Math.imul(B,E0)|0,G=G+Math.imul(B,S0)|0,C=C+Math.imul(U0,x0)|0,K=K+Math.imul(U0,A0)|0,K=K+Math.imul(Z0,x0)|0,G=G+Math.imul(Z0,A0)|0,C=C+Math.imul(H0,v0)|0,K=K+Math.imul(H0,M0)|0,K=K+Math.imul(G0,v0)|0,G=G+Math.imul(G0,M0)|0;var K5=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(K5>>>26)|0,K5&=67108863,C=Math.imul(h,E0),K=Math.imul(h,S0),K=K+Math.imul(o,E0)|0,G=Math.imul(o,S0),C=C+Math.imul(O,x0)|0,K=K+Math.imul(O,A0)|0,K=K+Math.imul(B,x0)|0,G=G+Math.imul(B,A0)|0,C=C+Math.imul(U0,v0)|0,K=K+Math.imul(U0,M0)|0,K=K+Math.imul(Z0,v0)|0,G=G+Math.imul(Z0,M0)|0;var Y5=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(Y5>>>26)|0,Y5&=67108863,C=Math.imul(h,x0),K=Math.imul(h,A0),K=K+Math.imul(o,x0)|0,G=Math.imul(o,A0),C=C+Math.imul(O,v0)|0,K=K+Math.imul(O,M0)|0,K=K+Math.imul(B,v0)|0,G=G+Math.imul(B,M0)|0;var J5=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(J5>>>26)|0,J5&=67108863,C=Math.imul(h,v0),K=Math.imul(h,M0),K=K+Math.imul(o,v0)|0,G=Math.imul(o,M0);var Q5=(Z+C|0)+((K&8191)<<13)|0;return Z=(G+(K>>>13)|0)+(Q5>>>26)|0,Q5&=67108863,W[0]=F5,W[1]=g0,W[2]=m0,W[3]=h0,W[4]=u0,W[5]=o0,W[6]=s0,W[7]=a0,W[8]=f0,W[9]=n0,W[10]=r0,W[11]=i0,W[12]=t0,W[13]=e0,W[14]=X5,W[15]=K5,W[16]=Y5,W[17]=J5,W[18]=Q5,Z!==0&&(W[19]=Z,Q.length++),Q};Math.imul||(I=N);function M(X,Y,Q){Q.negative=Y.negative^X.negative,Q.length=X.length+Y.length;for(var J=0,F=0,W=0;W<Q.length-1;W++){var Z=F;F=0;for(var C=J&67108863,K=Math.min(W,Y.length-1),G=Math.max(0,W-X.length+1);G<=K;G++){var R=W-G,L=X.words[R]|0,_=Y.words[G]|0,s=L*_,r=s&67108863;Z=Z+(s/67108864|0)|0,r=r+C|0,C=r&67108863,Z=Z+(r>>>26)|0,F+=Z>>>26,Z&=67108863}Q.words[W]=C,J=Z,Z=F}return J!==0?Q.words[W]=J:Q.length--,Q.strip()}function x(X,Y,Q){var J=new v;return J.mulp(X,Y,Q)}H.prototype.mulTo=function(X,Y){var Q,J=this.length+X.length;return this.length===10&&X.length===10?Q=I(this,X,Y):J<63?Q=N(this,X,Y):J<1024?Q=M(this,X,Y):Q=x(this,X,Y),Q};function v(X,Y){this.x=X,this.y=Y}v.prototype.makeRBT=function(X){for(var Y=new Array(X),Q=H.prototype._countBits(X)-1,J=0;J<X;J++)Y[J]=this.revBin(J,Q,X);return Y},v.prototype.revBin=function(X,Y,Q){if(X===0||X===Q-1)return X;for(var J=0,F=0;F<Y;F++)J|=(X&1)<<Y-F-1,X>>=1;return J},v.prototype.permute=function(X,Y,Q,J,F,W){for(var Z=0;Z<W;Z++)J[Z]=Y[X[Z]],F[Z]=Q[X[Z]]},v.prototype.transform=function(X,Y,Q,J,F,W){this.permute(W,X,Y,Q,J,F);for(var Z=1;Z<F;Z<<=1)for(var C=Z<<1,K=Math.cos(2*Math.PI/C),G=Math.sin(2*Math.PI/C),R=0;R<F;R+=C)for(var L=K,_=G,s=0;s<Z;s++){var r=Q[R+s],Y0=J[R+s],u=Q[R+s+Z],d=J[R+s+Z],a=L*u-_*d;d=L*d+_*u,u=a,Q[R+s]=r+u,J[R+s]=Y0+d,Q[R+s+Z]=r-u,J[R+s+Z]=Y0-d,s!==C&&(a=K*L-G*_,_=K*_+G*L,L=a)}},v.prototype.guessLen13b=function(X,Y){var Q=Math.max(Y,X)|1,J=Q&1,F=0;for(Q=Q/2|0;Q;Q=Q>>>1)F++;return 1<<F+1+J},v.prototype.conjugate=function(X,Y,Q){if(!(Q<=1))for(var J=0;J<Q/2;J++){var F=X[J];X[J]=X[Q-J-1],X[Q-J-1]=F,F=Y[J],Y[J]=-Y[Q-J-1],Y[Q-J-1]=-F}},v.prototype.normalize13b=function(X,Y){for(var Q=0,J=0;J<Y/2;J++){var F=Math.round(X[2*J+1]/Y)*8192+Math.round(X[2*J]/Y)+Q;X[J]=F&67108863,F<67108864?Q=0:Q=F/67108864|0}return X},v.prototype.convert13b=function(X,Y,Q,J){for(var F=0,W=0;W<Y;W++)F=F+(X[W]|0),Q[2*W]=F&8191,F=F>>>13,Q[2*W+1]=F&8191,F=F>>>13;for(W=2*Y;W<J;++W)Q[W]=0;j(F===0),j((F&-8192)===0)},v.prototype.stub=function(X){for(var Y=new Array(X),Q=0;Q<X;Q++)Y[Q]=0;return Y},v.prototype.mulp=function(X,Y,Q){var J=2*this.guessLen13b(X.length,Y.length),F=this.makeRBT(J),W=this.stub(J),Z=new Array(J),C=new Array(J),K=new Array(J),G=new Array(J),R=new Array(J),L=new Array(J),_=Q.words;_.length=J,this.convert13b(X.words,X.length,Z,J),this.convert13b(Y.words,Y.length,G,J),this.transform(Z,W,C,K,J,F),this.transform(G,W,R,L,J,F);for(var s=0;s<J;s++){var r=C[s]*R[s]-K[s]*L[s];K[s]=C[s]*L[s]+K[s]*R[s],C[s]=r}return this.conjugate(C,K,J),this.transform(C,K,_,W,J,F),this.conjugate(_,W,J),this.normalize13b(_,J),Q.negative=X.negative^Y.negative,Q.length=X.length+Y.length,Q.strip()},H.prototype.mul=function(X){var Y=new H(null);return Y.words=new Array(this.length+X.length),this.mulTo(X,Y)},H.prototype.mulf=function(X){var Y=new H(null);return Y.words=new Array(this.length+X.length),x(this,X,Y)},H.prototype.imul=function(X){return this.clone().mulTo(X,this)},H.prototype.imuln=function(X){j(typeof X=="number"),j(X<67108864);for(var Y=0,Q=0;Q<this.length;Q++){var J=(this.words[Q]|0)*X,F=(J&67108863)+(Y&67108863);Y>>=26,Y+=J/67108864|0,Y+=F>>>26,this.words[Q]=F&67108863}return Y!==0&&(this.words[Q]=Y,this.length++),this},H.prototype.muln=function(X){return this.clone().imuln(X)},H.prototype.sqr=function(){return this.mul(this)},H.prototype.isqr=function(){return this.imul(this.clone())},H.prototype.pow=function(X){var Y=U(X);if(Y.length===0)return new H(1);for(var Q=this,J=0;J<Y.length&&Y[J]===0;J++,Q=Q.sqr());if(++J<Y.length)for(var F=Q.sqr();J<Y.length;J++,F=F.sqr())Y[J]!==0&&(Q=Q.mul(F));return Q},H.prototype.iushln=function(X){j(typeof X=="number"&&X>=0);var Y=X%26,Q=(X-Y)/26,J=67108863>>>26-Y<<26-Y,F;if(Y!==0){var W=0;for(F=0;F<this.length;F++){var Z=this.words[F]&J,C=(this.words[F]|0)-Z<<Y;this.words[F]=C|W,W=Z>>>26-Y}W&&(this.words[F]=W,this.length++)}if(Q!==0){for(F=this.length-1;F>=0;F--)this.words[F+Q]=this.words[F];for(F=0;F<Q;F++)this.words[F]=0;this.length+=Q}return this.strip()},H.prototype.ishln=function(X){return j(this.negative===0),this.iushln(X)},H.prototype.iushrn=function(X,Y,Q){j(typeof X=="number"&&X>=0);var J;Y?J=(Y-Y%26)/26:J=0;var F=X%26,W=Math.min((X-F)/26,this.length),Z=67108863^67108863>>>F<<F,C=Q;if(J-=W,J=Math.max(0,J),C){for(var K=0;K<W;K++)C.words[K]=this.words[K];C.length=W}if(W!==0)if(this.length>W)for(this.length-=W,K=0;K<this.length;K++)this.words[K]=this.words[K+W];else this.words[0]=0,this.length=1;var G=0;for(K=this.length-1;K>=0&&(G!==0||K>=J);K--){var R=this.words[K]|0;this.words[K]=G<<26-F|R>>>F,G=R&Z}return C&&G!==0&&(C.words[C.length++]=G),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},H.prototype.ishrn=function(X,Y,Q){return j(this.negative===0),this.iushrn(X,Y,Q)},H.prototype.shln=function(X){return this.clone().ishln(X)},H.prototype.ushln=function(X){return this.clone().iushln(X)},H.prototype.shrn=function(X){return this.clone().ishrn(X)},H.prototype.ushrn=function(X){return this.clone().iushrn(X)},H.prototype.testn=function(X){j(typeof X=="number"&&X>=0);var Y=X%26,Q=(X-Y)/26,J=1<<Y;if(this.length<=Q)return!1;var F=this.words[Q];return!!(F&J)},H.prototype.imaskn=function(X){j(typeof X=="number"&&X>=0);var Y=X%26,Q=(X-Y)/26;if(j(this.negative===0,"imaskn works only with positive numbers"),this.length<=Q)return this;if(Y!==0&&Q++,this.length=Math.min(Q,this.length),Y!==0){var J=67108863^67108863>>>Y<<Y;this.words[this.length-1]&=J}return this.strip()},H.prototype.maskn=function(X){return this.clone().imaskn(X)},H.prototype.iaddn=function(X){return j(typeof X=="number"),j(X<67108864),X<0?this.isubn(-X):this.negative!==0?this.length===1&&(this.words[0]|0)<X?(this.words[0]=X-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(X),this.negative=1,this):this._iaddn(X)},H.prototype._iaddn=function(X){this.words[0]+=X;for(var Y=0;Y<this.length&&this.words[Y]>=67108864;Y++)this.words[Y]-=67108864,Y===this.length-1?this.words[Y+1]=1:this.words[Y+1]++;return this.length=Math.max(this.length,Y+1),this},H.prototype.isubn=function(X){if(j(typeof X=="number"),j(X<67108864),X<0)return this.iaddn(-X);if(this.negative!==0)return this.negative=0,this.iaddn(X),this.negative=1,this;if(this.words[0]-=X,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Y=0;Y<this.length&&this.words[Y]<0;Y++)this.words[Y]+=67108864,this.words[Y+1]-=1;return this.strip()},H.prototype.addn=function(X){return this.clone().iaddn(X)},H.prototype.subn=function(X){return this.clone().isubn(X)},H.prototype.iabs=function(){return this.negative=0,this},H.prototype.abs=function(){return this.clone().iabs()},H.prototype._ishlnsubmul=function(X,Y,Q){var J=X.length+Q,F;this._expand(J);var W,Z=0;for(F=0;F<X.length;F++){W=(this.words[F+Q]|0)+Z;var C=(X.words[F]|0)*Y;W-=C&67108863,Z=(W>>26)-(C/67108864|0),this.words[F+Q]=W&67108863}for(;F<this.length-Q;F++)W=(this.words[F+Q]|0)+Z,Z=W>>26,this.words[F+Q]=W&67108863;if(Z===0)return this.strip();for(j(Z===-1),Z=0,F=0;F<this.length;F++)W=-(this.words[F]|0)+Z,Z=W>>26,this.words[F]=W&67108863;return this.negative=1,this.strip()},H.prototype._wordDiv=function(X,Y){var Q=this.length-X.length,J=this.clone(),F=X,W=F.words[F.length-1]|0,Z=this._countBits(W);Q=26-Z,Q!==0&&(F=F.ushln(Q),J.iushln(Q),W=F.words[F.length-1]|0);var C=J.length-F.length,K;if(Y!=="mod"){K=new H(null),K.length=C+1,K.words=new Array(K.length);for(var G=0;G<K.length;G++)K.words[G]=0}var R=J.clone()._ishlnsubmul(F,1,C);R.negative===0&&(J=R,K&&(K.words[C]=1));for(var L=C-1;L>=0;L--){var _=(J.words[F.length+L]|0)*67108864+(J.words[F.length+L-1]|0);for(_=Math.min(_/W|0,67108863),J._ishlnsubmul(F,_,L);J.negative!==0;)_--,J.negative=0,J._ishlnsubmul(F,1,L),J.isZero()||(J.negative^=1);K&&(K.words[L]=_)}return K&&K.strip(),J.strip(),Y!=="div"&&Q!==0&&J.iushrn(Q),{div:K||null,mod:J}},H.prototype.divmod=function(X,Y,Q){if(j(!X.isZero()),this.isZero())return{div:new H(0),mod:new H(0)};var J,F,W;return this.negative!==0&&X.negative===0?(W=this.neg().divmod(X,Y),Y!=="mod"&&(J=W.div.neg()),Y!=="div"&&(F=W.mod.neg(),Q&&F.negative!==0&&F.iadd(X)),{div:J,mod:F}):this.negative===0&&X.negative!==0?(W=this.divmod(X.neg(),Y),Y!=="mod"&&(J=W.div.neg()),{div:J,mod:W.mod}):(this.negative&X.negative)!==0?(W=this.neg().divmod(X.neg(),Y),Y!=="div"&&(F=W.mod.neg(),Q&&F.negative!==0&&F.isub(X)),{div:W.div,mod:F}):X.length>this.length||this.cmp(X)<0?{div:new H(0),mod:this}:X.length===1?Y==="div"?{div:this.divn(X.words[0]),mod:null}:Y==="mod"?{div:null,mod:new H(this.modn(X.words[0]))}:{div:this.divn(X.words[0]),mod:new H(this.modn(X.words[0]))}:this._wordDiv(X,Y)},H.prototype.div=function(X){return this.divmod(X,"div",!1).div},H.prototype.mod=function(X){return this.divmod(X,"mod",!1).mod},H.prototype.umod=function(X){return this.divmod(X,"mod",!0).mod},H.prototype.divRound=function(X){var Y=this.divmod(X);if(Y.mod.isZero())return Y.div;var Q=Y.div.negative!==0?Y.mod.isub(X):Y.mod,J=X.ushrn(1),F=X.andln(1),W=Q.cmp(J);return W<0||F===1&&W===0?Y.div:Y.div.negative!==0?Y.div.isubn(1):Y.div.iaddn(1)},H.prototype.modn=function(X){j(X<=67108863);for(var Y=67108864%X,Q=0,J=this.length-1;J>=0;J--)Q=(Y*Q+(this.words[J]|0))%X;return Q},H.prototype.idivn=function(X){j(X<=67108863);for(var Y=0,Q=this.length-1;Q>=0;Q--){var J=(this.words[Q]|0)+Y*67108864;this.words[Q]=J/X|0,Y=J%X}return this.strip()},H.prototype.divn=function(X){return this.clone().idivn(X)},H.prototype.egcd=function(X){j(X.negative===0),j(!X.isZero());var Y=this,Q=X.clone();Y.negative!==0?Y=Y.umod(X):Y=Y.clone();for(var J=new H(1),F=new H(0),W=new H(0),Z=new H(1),C=0;Y.isEven()&&Q.isEven();)Y.iushrn(1),Q.iushrn(1),++C;for(var K=Q.clone(),G=Y.clone();!Y.isZero();){for(var R=0,L=1;(Y.words[0]&L)===0&&R<26;++R,L<<=1);if(R>0)for(Y.iushrn(R);R-- >0;)(J.isOdd()||F.isOdd())&&(J.iadd(K),F.isub(G)),J.iushrn(1),F.iushrn(1);for(var _=0,s=1;(Q.words[0]&s)===0&&_<26;++_,s<<=1);if(_>0)for(Q.iushrn(_);_-- >0;)(W.isOdd()||Z.isOdd())&&(W.iadd(K),Z.isub(G)),W.iushrn(1),Z.iushrn(1);Y.cmp(Q)>=0?(Y.isub(Q),J.isub(W),F.isub(Z)):(Q.isub(Y),W.isub(J),Z.isub(F))}return{a:W,b:Z,gcd:Q.iushln(C)}},H.prototype._invmp=function(X){j(X.negative===0),j(!X.isZero());var Y=this,Q=X.clone();Y.negative!==0?Y=Y.umod(X):Y=Y.clone();for(var J=new H(1),F=new H(0),W=Q.clone();Y.cmpn(1)>0&&Q.cmpn(1)>0;){for(var Z=0,C=1;(Y.words[0]&C)===0&&Z<26;++Z,C<<=1);if(Z>0)for(Y.iushrn(Z);Z-- >0;)J.isOdd()&&J.iadd(W),J.iushrn(1);for(var K=0,G=1;(Q.words[0]&G)===0&&K<26;++K,G<<=1);if(K>0)for(Q.iushrn(K);K-- >0;)F.isOdd()&&F.iadd(W),F.iushrn(1);Y.cmp(Q)>=0?(Y.isub(Q),J.isub(F)):(Q.isub(Y),F.isub(J))}var R;return Y.cmpn(1)===0?R=J:R=F,R.cmpn(0)<0&&R.iadd(X),R},H.prototype.gcd=function(X){if(this.isZero())return X.abs();if(X.isZero())return this.abs();var Y=this.clone(),Q=X.clone();Y.negative=0,Q.negative=0;for(var J=0;Y.isEven()&&Q.isEven();J++)Y.iushrn(1),Q.iushrn(1);do{for(;Y.isEven();)Y.iushrn(1);for(;Q.isEven();)Q.iushrn(1);var F=Y.cmp(Q);if(F<0){var W=Y;Y=Q,Q=W}else if(F===0||Q.cmpn(1)===0)break;Y.isub(Q)}while(!0);return Q.iushln(J)},H.prototype.invm=function(X){return this.egcd(X).a.umod(X)},H.prototype.isEven=function(){return(this.words[0]&1)===0},H.prototype.isOdd=function(){return(this.words[0]&1)===1},H.prototype.andln=function(X){return this.words[0]&X},H.prototype.bincn=function(X){j(typeof X=="number");var Y=X%26,Q=(X-Y)/26,J=1<<Y;if(this.length<=Q)return this._expand(Q+1),this.words[Q]|=J,this;for(var F=J,W=Q;F!==0&&W<this.length;W++){var Z=this.words[W]|0;Z+=F,F=Z>>>26,Z&=67108863,this.words[W]=Z}return F!==0&&(this.words[W]=F,this.length++),this},H.prototype.isZero=function(){return this.length===1&&this.words[0]===0},H.prototype.cmpn=function(X){var Y=X<0;if(this.negative!==0&&!Y)return-1;if(this.negative===0&&Y)return 1;this.strip();var Q;if(this.length>1)Q=1;else{Y&&(X=-X),j(X<=67108863,"Number is too big");var J=this.words[0]|0;Q=J===X?0:J<X?-1:1}return this.negative!==0?-Q|0:Q},H.prototype.cmp=function(X){if(this.negative!==0&&X.negative===0)return-1;if(this.negative===0&&X.negative!==0)return 1;var Y=this.ucmp(X);return this.negative!==0?-Y|0:Y},H.prototype.ucmp=function(X){if(this.length>X.length)return 1;if(this.length<X.length)return-1;for(var Y=0,Q=this.length-1;Q>=0;Q--){var J=this.words[Q]|0,F=X.words[Q]|0;if(J!==F){J<F?Y=-1:J>F&&(Y=1);break}}return Y},H.prototype.gtn=function(X){return this.cmpn(X)===1},H.prototype.gt=function(X){return this.cmp(X)===1},H.prototype.gten=function(X){return this.cmpn(X)>=0},H.prototype.gte=function(X){return this.cmp(X)>=0},H.prototype.ltn=function(X){return this.cmpn(X)===-1},H.prototype.lt=function(X){return this.cmp(X)===-1},H.prototype.lten=function(X){return this.cmpn(X)<=0},H.prototype.lte=function(X){return this.cmp(X)<=0},H.prototype.eqn=function(X){return this.cmpn(X)===0},H.prototype.eq=function(X){return this.cmp(X)===0},H.red=function(X){return new f(X)},H.prototype.toRed=function(X){return j(!this.red,"Already a number in reduction context"),j(this.negative===0,"red works only with positives"),X.convertTo(this)._forceRed(X)},H.prototype.fromRed=function(){return j(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},H.prototype._forceRed=function(X){return this.red=X,this},H.prototype.forceRed=function(X){return j(!this.red,"Already a number in reduction context"),this._forceRed(X)},H.prototype.redAdd=function(X){return j(this.red,"redAdd works only with red numbers"),this.red.add(this,X)},H.prototype.redIAdd=function(X){return j(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,X)},H.prototype.redSub=function(X){return j(this.red,"redSub works only with red numbers"),this.red.sub(this,X)},H.prototype.redISub=function(X){return j(this.red,"redISub works only with red numbers"),this.red.isub(this,X)},H.prototype.redShl=function(X){return j(this.red,"redShl works only with red numbers"),this.red.shl(this,X)},H.prototype.redMul=function(X){return j(this.red,"redMul works only with red numbers"),this.red._verify2(this,X),this.red.mul(this,X)},H.prototype.redIMul=function(X){return j(this.red,"redMul works only with red numbers"),this.red._verify2(this,X),this.red.imul(this,X)},H.prototype.redSqr=function(){return j(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},H.prototype.redISqr=function(){return j(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},H.prototype.redSqrt=function(){return j(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},H.prototype.redInvm=function(){return j(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},H.prototype.redNeg=function(){return j(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},H.prototype.redPow=function(X){return j(this.red&&!X.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,X)};var y={k256:null,p224:null,p192:null,p25519:null};function p(X,Y){this.name=X,this.p=new H(Y,16),this.n=this.p.bitLength(),this.k=new H(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}p.prototype._tmp=function(){var X=new H(null);return X.words=new Array(Math.ceil(this.n/13)),X},p.prototype.ireduce=function(X){var Y=X,Q;do this.split(Y,this.tmp),Y=this.imulK(Y),Y=Y.iadd(this.tmp),Q=Y.bitLength();while(Q>this.n);var J=Q<this.n?-1:Y.ucmp(this.p);return J===0?(Y.words[0]=0,Y.length=1):J>0?Y.isub(this.p):Y.strip!==void 0?Y.strip():Y._strip(),Y},p.prototype.split=function(X,Y){X.iushrn(this.n,0,Y)},p.prototype.imulK=function(X){return X.imul(this.k)};function c(){p.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}S(c,p),c.prototype.split=function(X,Y){for(var Q=4194303,J=Math.min(X.length,9),F=0;F<J;F++)Y.words[F]=X.words[F];if(Y.length=J,X.length<=9){X.words[0]=0,X.length=1;return}var W=X.words[9];for(Y.words[Y.length++]=W&Q,F=10;F<X.length;F++){var Z=X.words[F]|0;X.words[F-10]=(Z&Q)<<4|W>>>22,W=Z}W>>>=22,X.words[F-10]=W,W===0&&X.length>10?X.length-=10:X.length-=9},c.prototype.imulK=function(X){X.words[X.length]=0,X.words[X.length+1]=0,X.length+=2;for(var Y=0,Q=0;Q<X.length;Q++){var J=X.words[Q]|0;Y+=J*977,X.words[Q]=Y&67108863,Y=J*64+(Y/67108864|0)}return X.words[X.length-1]===0&&(X.length--,X.words[X.length-1]===0&&X.length--),X};function n(){p.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}S(n,p);function i(){p.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}S(i,p);function Q0(){p.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}S(Q0,p),Q0.prototype.imulK=function(X){for(var Y=0,Q=0;Q<X.length;Q++){var J=(X.words[Q]|0)*19+Y,F=J&67108863;J>>>=26,X.words[Q]=F,Y=J}return Y!==0&&(X.words[X.length++]=Y),X},H._prime=function(X){if(y[X])return y[X];var Y;if(X==="k256")Y=new c;else if(X==="p224")Y=new n;else if(X==="p192")Y=new i;else if(X==="p25519")Y=new Q0;else throw new Error("Unknown prime "+X);return y[X]=Y,Y};function f(X){if(typeof X=="string"){var Y=H._prime(X);this.m=Y.p,this.prime=Y}else j(X.gtn(1),"modulus must be greater than 1"),this.m=X,this.prime=null}f.prototype._verify1=function(X){j(X.negative===0,"red works only with positives"),j(X.red,"red works only with red numbers")},f.prototype._verify2=function(X,Y){j((X.negative|Y.negative)===0,"red works only with positives"),j(X.red&&X.red===Y.red,"red works only with red numbers")},f.prototype.imod=function(X){return this.prime?this.prime.ireduce(X)._forceRed(this):X.umod(this.m)._forceRed(this)},f.prototype.neg=function(X){return X.isZero()?X.clone():this.m.sub(X)._forceRed(this)},f.prototype.add=function(X,Y){this._verify2(X,Y);var Q=X.add(Y);return Q.cmp(this.m)>=0&&Q.isub(this.m),Q._forceRed(this)},f.prototype.iadd=function(X,Y){this._verify2(X,Y);var Q=X.iadd(Y);return Q.cmp(this.m)>=0&&Q.isub(this.m),Q},f.prototype.sub=function(X,Y){this._verify2(X,Y);var Q=X.sub(Y);return Q.cmpn(0)<0&&Q.iadd(this.m),Q._forceRed(this)},f.prototype.isub=function(X,Y){this._verify2(X,Y);var Q=X.isub(Y);return Q.cmpn(0)<0&&Q.iadd(this.m),Q},f.prototype.shl=function(X,Y){return this._verify1(X),this.imod(X.ushln(Y))},f.prototype.imul=function(X,Y){return this._verify2(X,Y),this.imod(X.imul(Y))},f.prototype.mul=function(X,Y){return this._verify2(X,Y),this.imod(X.mul(Y))},f.prototype.isqr=function(X){return this.imul(X,X.clone())},f.prototype.sqr=function(X){return this.mul(X,X)},f.prototype.sqrt=function(X){if(X.isZero())return X.clone();var Y=this.m.andln(3);if(j(Y%2===1),Y===3){var Q=this.m.add(new H(1)).iushrn(2);return this.pow(X,Q)}for(var J=this.m.subn(1),F=0;!J.isZero()&&J.andln(1)===0;)F++,J.iushrn(1);j(!J.isZero());var W=new H(1).toRed(this),Z=W.redNeg(),C=this.m.subn(1).iushrn(1),K=this.m.bitLength();for(K=new H(2*K*K).toRed(this);this.pow(K,C).cmp(Z)!==0;)K.redIAdd(Z);for(var G=this.pow(K,J),R=this.pow(X,J.addn(1).iushrn(1)),L=this.pow(X,J),_=F;L.cmp(W)!==0;){for(var s=L,r=0;s.cmp(W)!==0;r++)s=s.redSqr();j(r<_);var Y0=this.pow(G,new H(1).iushln(_-r-1));R=R.redMul(Y0),G=Y0.redSqr(),L=L.redMul(G),_=r}return R},f.prototype.invm=function(X){var Y=X._invmp(this.m);return Y.negative!==0?(Y.negative=0,this.imod(Y).redNeg()):this.imod(Y)},f.prototype.pow=function(X,Y){if(Y.isZero())return new H(1).toRed(this);if(Y.cmpn(1)===0)return X.clone();var Q=4,J=new Array(1<<Q);J[0]=new H(1).toRed(this),J[1]=X;for(var F=2;F<J.length;F++)J[F]=this.mul(J[F-1],X);var W=J[0],Z=0,C=0,K=Y.bitLength()%26;for(K===0&&(K=26),F=Y.length-1;F>=0;F--){for(var G=Y.words[F],R=K-1;R>=0;R--){var L=G>>R&1;if(W!==J[0]&&(W=this.sqr(W)),L===0&&Z===0){C=0;continue}Z<<=1,Z|=L,C++,!(C!==Q&&(F!==0||R!==0))&&(W=this.mul(W,J[Z]),C=0,Z=0)}K=26}return W},f.prototype.convertTo=function(X){var Y=X.umod(this.m);return Y===X?Y.clone():Y},f.prototype.convertFrom=function(X){var Y=X.clone();return Y.red=null,Y},H.mont=function(X){return new W0(X)};function W0(X){f.call(this,X),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new H(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)}S(W0,f),W0.prototype.convertTo=function(X){return this.imod(X.ushln(this.shift))},W0.prototype.convertFrom=function(X){var Y=this.imod(X.mul(this.rinv));return Y.red=null,Y},W0.prototype.imul=function(X,Y){if(X.isZero()||Y.isZero())return X.words[0]=0,X.length=1,X;var Q=X.imul(Y),J=Q.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),F=Q.isub(J).iushrn(this.shift),W=F;return F.cmp(this.m)>=0?W=F.isub(this.m):F.cmpn(0)<0&&(W=F.iadd(this.m)),W._forceRed(this)},W0.prototype.mul=function(X,Y){if(X.isZero()||Y.isZero())return new H(0)._forceRed(this);var Q=X.mul(Y),J=Q.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),F=Q.isub(J).iushrn(this.shift),W=F;return F.cmp(this.m)>=0?W=F.isub(this.m):F.cmpn(0)<0&&(W=F.iadd(this.m)),W._forceRed(this)},W0.prototype.invm=function(X){var Y=this.imod(X._invmp(this.m).mul(this.r2));return Y._forceRed(this)}})(typeof g>"u"||g,l)}),_8=C0((l,g)=>{var E=v9(),A=M8();g.exports=function(P){return new S(P)};var j={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};j.p224=j.secp224r1,j.p256=j.secp256r1=j.prime256v1,j.p192=j.secp192r1=j.prime192v1,j.p384=j.secp384r1,j.p521=j.secp521r1;function S(P){this.curveType=j[P],this.curveType||(this.curveType={name:P}),this.curve=new E.ec(this.curveType.name),this.keys=void 0}S.prototype.generateKeys=function(P,k){return this.keys=this.curve.genKeyPair(),this.getPublicKey(P,k)},S.prototype.computeSecret=function(P,k,z){k=k||"utf8",Buffer.isBuffer(P)||(P=new Buffer(P,k));var V=this.curve.keyFromPublic(P).getPublic(),$=V.mul(this.keys.getPrivate()).getX();return H($,z,this.curveType.byteLength)},S.prototype.getPublicKey=function(P,k){var z=this.keys.getPublic(k==="compressed",!0);return k==="hybrid"&&(z[z.length-1]%2?z[0]=7:z[0]=6),H(z,P)},S.prototype.getPrivateKey=function(P){return H(this.keys.getPrivate(),P)},S.prototype.setPublicKey=function(P,k){return k=k||"utf8",Buffer.isBuffer(P)||(P=new Buffer(P,k)),this.keys._importPublic(P),this},S.prototype.setPrivateKey=function(P,k){k=k||"utf8",Buffer.isBuffer(P)||(P=new Buffer(P,k));var z=new A(P);return z=z.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(z),this};function H(P,k,z){Array.isArray(P)||(P=P.toArray());var V=new Buffer(P);if(z&&V.length<z){var $=new Buffer(z-V.length);$.fill(0),V=Buffer.concat([$,V])}return k?V.toString(k):V}}),d6=C0((l,g)=>{var E=u5(),A=d0().Buffer;g.exports=function(S,H){for(var P=A.alloc(0),k=0,z;P.length<H;)z=j(k++),P=A.concat([P,E("sha1").update(S).update(z).digest()]);return P.slice(0,H)};function j(S){var H=A.allocUnsafe(4);return H.writeUInt32BE(S,0),H}}),l6=C0((l,g)=>{g.exports=function(E,A){for(var j=E.length,S=-1;++S<j;)E[S]^=A[S];return E}}),g9=C0((l,g)=>{(function(E,A){function j(X,Y){if(!X)throw new Error(Y||"Assertion failed")}function S(X,Y){X.super_=Y;var Q=function(){};Q.prototype=Y.prototype,X.prototype=new Q,X.prototype.constructor=X}function H(X,Y,Q){if(H.isBN(X))return X;this.negative=0,this.words=null,this.length=0,this.red=null,X!==null&&((Y==="le"||Y==="be")&&(Q=Y,Y=10),this._init(X||0,Y||10,Q||"be"))}typeof E=="object"?E.exports=H:A.BN=H,H.BN=H,H.wordSize=26;var P;try{typeof window<"u"&&typeof window.Buffer<"u"?P=window.Buffer:P=M5().Buffer}catch{}H.isBN=function(X){return X instanceof H?!0:X!==null&&typeof X=="object"&&X.constructor.wordSize===H.wordSize&&Array.isArray(X.words)},H.max=function(X,Y){return X.cmp(Y)>0?X:Y},H.min=function(X,Y){return X.cmp(Y)<0?X:Y},H.prototype._init=function(X,Y,Q){if(typeof X=="number")return this._initNumber(X,Y,Q);if(typeof X=="object")return this._initArray(X,Y,Q);Y==="hex"&&(Y=16),j(Y===(Y|0)&&Y>=2&&Y<=36),X=X.toString().replace(/\s+/g,"");var J=0;X[0]==="-"&&(J++,this.negative=1),J<X.length&&(Y===16?this._parseHex(X,J,Q):(this._parseBase(X,Y,J),Q==="le"&&this._initArray(this.toArray(),Y,Q)))},H.prototype._initNumber=function(X,Y,Q){X<0&&(this.negative=1,X=-X),X<67108864?(this.words=[X&67108863],this.length=1):X<4503599627370496?(this.words=[X&67108863,X/67108864&67108863],this.length=2):(j(X<9007199254740992),this.words=[X&67108863,X/67108864&67108863,1],this.length=3),Q==="le"&&this._initArray(this.toArray(),Y,Q)},H.prototype._initArray=function(X,Y,Q){if(j(typeof X.length=="number"),X.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(X.length/3),this.words=new Array(this.length);for(var J=0;J<this.length;J++)this.words[J]=0;var F,W,Z=0;if(Q==="be")for(J=X.length-1,F=0;J>=0;J-=3)W=X[J]|X[J-1]<<8|X[J-2]<<16,this.words[F]|=W<<Z&67108863,this.words[F+1]=W>>>26-Z&67108863,Z+=24,Z>=26&&(Z-=26,F++);else if(Q==="le")for(J=0,F=0;J<X.length;J+=3)W=X[J]|X[J+1]<<8|X[J+2]<<16,this.words[F]|=W<<Z&67108863,this.words[F+1]=W>>>26-Z&67108863,Z+=24,Z>=26&&(Z-=26,F++);return this.strip()};function k(X,Y){var Q=X.charCodeAt(Y);return Q>=65&&Q<=70?Q-55:Q>=97&&Q<=102?Q-87:Q-48&15}function z(X,Y,Q){var J=k(X,Q);return Q-1>=Y&&(J|=k(X,Q-1)<<4),J}H.prototype._parseHex=function(X,Y,Q){this.length=Math.ceil((X.length-Y)/6),this.words=new Array(this.length);for(var J=0;J<this.length;J++)this.words[J]=0;var F=0,W=0,Z;if(Q==="be")for(J=X.length-1;J>=Y;J-=2)Z=z(X,Y,J)<<F,this.words[W]|=Z&67108863,F>=18?(F-=18,W+=1,this.words[W]|=Z>>>26):F+=8;else{var C=X.length-Y;for(J=C%2===0?Y+1:Y;J<X.length;J+=2)Z=z(X,Y,J)<<F,this.words[W]|=Z&67108863,F>=18?(F-=18,W+=1,this.words[W]|=Z>>>26):F+=8}this.strip()};function V(X,Y,Q,J){for(var F=0,W=Math.min(X.length,Q),Z=Y;Z<W;Z++){var C=X.charCodeAt(Z)-48;F*=J,C>=49?F+=C-49+10:C>=17?F+=C-17+10:F+=C}return F}H.prototype._parseBase=function(X,Y,Q){this.words=[0],this.length=1;for(var J=0,F=1;F<=67108863;F*=Y)J++;J--,F=F/Y|0;for(var W=X.length-Q,Z=W%J,C=Math.min(W,W-Z)+Q,K=0,G=Q;G<C;G+=J)K=V(X,G,G+J,Y),this.imuln(F),this.words[0]+K<67108864?this.words[0]+=K:this._iaddn(K);if(Z!==0){var R=1;for(K=V(X,G,X.length,Y),G=0;G<Z;G++)R*=Y;this.imuln(R),this.words[0]+K<67108864?this.words[0]+=K:this._iaddn(K)}this.strip()},H.prototype.copy=function(X){X.words=new Array(this.length);for(var Y=0;Y<this.length;Y++)X.words[Y]=this.words[Y];X.length=this.length,X.negative=this.negative,X.red=this.red},H.prototype.clone=function(){var X=new H(null);return this.copy(X),X},H.prototype._expand=function(X){for(;this.length<X;)this.words[this.length++]=0;return this},H.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},H.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},H.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var $=["","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"],T=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],D=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];H.prototype.toString=function(X,Y){X=X||10,Y=Y|0||1;var Q;if(X===16||X==="hex"){Q="";for(var J=0,F=0,W=0;W<this.length;W++){var Z=this.words[W],C=((Z<<J|F)&16777215).toString(16);F=Z>>>24-J&16777215,F!==0||W!==this.length-1?Q=$[6-C.length]+C+Q:Q=C+Q,J+=2,J>=26&&(J-=26,W--)}for(F!==0&&(Q=F.toString(16)+Q);Q.length%Y!==0;)Q="0"+Q;return this.negative!==0&&(Q="-"+Q),Q}if(X===(X|0)&&X>=2&&X<=36){var K=T[X],G=D[X];Q="";var R=this.clone();for(R.negative=0;!R.isZero();){var L=R.modn(G).toString(X);R=R.idivn(G),R.isZero()?Q=L+Q:Q=$[K-L.length]+L+Q}for(this.isZero()&&(Q="0"+Q);Q.length%Y!==0;)Q="0"+Q;return this.negative!==0&&(Q="-"+Q),Q}j(!1,"Base should be between 2 and 36")},H.prototype.toNumber=function(){var X=this.words[0];return this.length===2?X+=this.words[1]*67108864:this.length===3&&this.words[2]===1?X+=4503599627370496+this.words[1]*67108864:this.length>2&&j(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-X:X},H.prototype.toJSON=function(){return this.toString(16)},H.prototype.toBuffer=function(X,Y){return j(typeof P<"u"),this.toArrayLike(P,X,Y)},H.prototype.toArray=function(X,Y){return this.toArrayLike(Array,X,Y)},H.prototype.toArrayLike=function(X,Y,Q){var J=this.byteLength(),F=Q||Math.max(1,J);j(J<=F,"byte array longer than desired length"),j(F>0,"Requested array length <= 0"),this.strip();var W=Y==="le",Z=new X(F),C,K,G=this.clone();if(W){for(K=0;!G.isZero();K++)C=G.andln(255),G.iushrn(8),Z[K]=C;for(;K<F;K++)Z[K]=0}else{for(K=0;K<F-J;K++)Z[K]=0;for(K=0;!G.isZero();K++)C=G.andln(255),G.iushrn(8),Z[F-K-1]=C}return Z},Math.clz32?H.prototype._countBits=function(X){return 32-Math.clz32(X)}:H.prototype._countBits=function(X){var Y=X,Q=0;return Y>=4096&&(Q+=13,Y>>>=13),Y>=64&&(Q+=7,Y>>>=7),Y>=8&&(Q+=4,Y>>>=4),Y>=2&&(Q+=2,Y>>>=2),Q+Y},H.prototype._zeroBits=function(X){if(X===0)return 26;var Y=X,Q=0;return(Y&8191)===0&&(Q+=13,Y>>>=13),(Y&127)===0&&(Q+=7,Y>>>=7),(Y&15)===0&&(Q+=4,Y>>>=4),(Y&3)===0&&(Q+=2,Y>>>=2),(Y&1)===0&&Q++,Q},H.prototype.bitLength=function(){var X=this.words[this.length-1],Y=this._countBits(X);return(this.length-1)*26+Y};function U(X){for(var Y=new Array(X.bitLength()),Q=0;Q<Y.length;Q++){var J=Q/26|0,F=Q%26;Y[Q]=(X.words[J]&1<<F)>>>F}return Y}H.prototype.zeroBits=function(){if(this.isZero())return 0;for(var X=0,Y=0;Y<this.length;Y++){var Q=this._zeroBits(this.words[Y]);if(X+=Q,Q!==26)break}return X},H.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},H.prototype.toTwos=function(X){return this.negative!==0?this.abs().inotn(X).iaddn(1):this.clone()},H.prototype.fromTwos=function(X){return this.testn(X-1)?this.notn(X).iaddn(1).ineg():this.clone()},H.prototype.isNeg=function(){return this.negative!==0},H.prototype.neg=function(){return this.clone().ineg()},H.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},H.prototype.iuor=function(X){for(;this.length<X.length;)this.words[this.length++]=0;for(var Y=0;Y<X.length;Y++)this.words[Y]=this.words[Y]|X.words[Y];return this.strip()},H.prototype.ior=function(X){return j((this.negative|X.negative)===0),this.iuor(X)},H.prototype.or=function(X){return this.length>X.length?this.clone().ior(X):X.clone().ior(this)},H.prototype.uor=function(X){return this.length>X.length?this.clone().iuor(X):X.clone().iuor(this)},H.prototype.iuand=function(X){var Y;this.length>X.length?Y=X:Y=this;for(var Q=0;Q<Y.length;Q++)this.words[Q]=this.words[Q]&X.words[Q];return this.length=Y.length,this.strip()},H.prototype.iand=function(X){return j((this.negative|X.negative)===0),this.iuand(X)},H.prototype.and=function(X){return this.length>X.length?this.clone().iand(X):X.clone().iand(this)},H.prototype.uand=function(X){return this.length>X.length?this.clone().iuand(X):X.clone().iuand(this)},H.prototype.iuxor=function(X){var Y,Q;this.length>X.length?(Y=this,Q=X):(Y=X,Q=this);for(var J=0;J<Q.length;J++)this.words[J]=Y.words[J]^Q.words[J];if(this!==Y)for(;J<Y.length;J++)this.words[J]=Y.words[J];return this.length=Y.length,this.strip()},H.prototype.ixor=function(X){return j((this.negative|X.negative)===0),this.iuxor(X)},H.prototype.xor=function(X){return this.length>X.length?this.clone().ixor(X):X.clone().ixor(this)},H.prototype.uxor=function(X){return this.length>X.length?this.clone().iuxor(X):X.clone().iuxor(this)},H.prototype.inotn=function(X){j(typeof X=="number"&&X>=0);var Y=Math.ceil(X/26)|0,Q=X%26;this._expand(Y),Q>0&&Y--;for(var J=0;J<Y;J++)this.words[J]=~this.words[J]&67108863;return Q>0&&(this.words[J]=~this.words[J]&67108863>>26-Q),this.strip()},H.prototype.notn=function(X){return this.clone().inotn(X)},H.prototype.setn=function(X,Y){j(typeof X=="number"&&X>=0);var Q=X/26|0,J=X%26;return this._expand(Q+1),Y?this.words[Q]=this.words[Q]|1<<J:this.words[Q]=this.words[Q]&~(1<<J),this.strip()},H.prototype.iadd=function(X){var Y;if(this.negative!==0&&X.negative===0)return this.negative=0,Y=this.isub(X),this.negative^=1,this._normSign();if(this.negative===0&&X.negative!==0)return X.negative=0,Y=this.isub(X),X.negative=1,Y._normSign();var Q,J;this.length>X.length?(Q=this,J=X):(Q=X,J=this);for(var F=0,W=0;W<J.length;W++)Y=(Q.words[W]|0)+(J.words[W]|0)+F,this.words[W]=Y&67108863,F=Y>>>26;for(;F!==0&&W<Q.length;W++)Y=(Q.words[W]|0)+F,this.words[W]=Y&67108863,F=Y>>>26;if(this.length=Q.length,F!==0)this.words[this.length]=F,this.length++;else if(Q!==this)for(;W<Q.length;W++)this.words[W]=Q.words[W];return this},H.prototype.add=function(X){var Y;return X.negative!==0&&this.negative===0?(X.negative=0,Y=this.sub(X),X.negative^=1,Y):X.negative===0&&this.negative!==0?(this.negative=0,Y=X.sub(this),this.negative=1,Y):this.length>X.length?this.clone().iadd(X):X.clone().iadd(this)},H.prototype.isub=function(X){if(X.negative!==0){X.negative=0;var Y=this.iadd(X);return X.negative=1,Y._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(X),this.negative=1,this._normSign();var Q=this.cmp(X);if(Q===0)return this.negative=0,this.length=1,this.words[0]=0,this;var J,F;Q>0?(J=this,F=X):(J=X,F=this);for(var W=0,Z=0;Z<F.length;Z++)Y=(J.words[Z]|0)-(F.words[Z]|0)+W,W=Y>>26,this.words[Z]=Y&67108863;for(;W!==0&&Z<J.length;Z++)Y=(J.words[Z]|0)+W,W=Y>>26,this.words[Z]=Y&67108863;if(W===0&&Z<J.length&&J!==this)for(;Z<J.length;Z++)this.words[Z]=J.words[Z];return this.length=Math.max(this.length,Z),J!==this&&(this.negative=1),this.strip()},H.prototype.sub=function(X){return this.clone().isub(X)};function N(X,Y,Q){Q.negative=Y.negative^X.negative;var J=X.length+Y.length|0;Q.length=J,J=J-1|0;var F=X.words[0]|0,W=Y.words[0]|0,Z=F*W,C=Z&67108863,K=Z/67108864|0;Q.words[0]=C;for(var G=1;G<J;G++){for(var R=K>>>26,L=K&67108863,_=Math.min(G,Y.length-1),s=Math.max(0,G-X.length+1);s<=_;s++){var r=G-s|0;F=X.words[r]|0,W=Y.words[s]|0,Z=F*W+L,R+=Z/67108864|0,L=Z&67108863}Q.words[G]=L|0,K=R|0}return K!==0?Q.words[G]=K|0:Q.length--,Q.strip()}var I=function(X,Y,Q){var J=X.words,F=Y.words,W=Q.words,Z=0,C,K,G,R=J[0]|0,L=R&8191,_=R>>>13,s=J[1]|0,r=s&8191,Y0=s>>>13,u=J[2]|0,d=u&8191,a=u>>>13,V0=J[3]|0,X0=V0&8191,F0=V0>>>13,w=J[4]|0,q=w&8191,m=w>>>13,e=J[5]|0,K0=e&8191,t=e>>>13,_0=J[6]|0,H0=_0&8191,G0=_0>>>13,w0=J[7]|0,U0=w0&8191,Z0=w0>>>13,c0=J[8]|0,O=c0&8191,B=c0>>>13,b=J[9]|0,h=b&8191,o=b>>>13,z0=F[0]|0,J0=z0&8191,$0=z0>>>13,b0=F[1]|0,P0=b0&8191,j0=b0>>>13,y0=F[2]|0,D0=y0&8191,N0=y0>>>13,H5=F[3]|0,T0=H5&8191,O0=H5>>>13,l0=F[4]|0,L0=l0&8191,k0=l0>>>13,G5=F[5]|0,I0=G5&8191,q0=G5>>>13,W5=F[6]|0,B0=W5&8191,R0=W5>>>13,Z5=F[7]|0,E0=Z5&8191,S0=Z5>>>13,$5=F[8]|0,x0=$5&8191,A0=$5>>>13,j5=F[9]|0,v0=j5&8191,M0=j5>>>13;Q.negative=X.negative^Y.negative,Q.length=19,C=Math.imul(L,J0),K=Math.imul(L,$0),K=K+Math.imul(_,J0)|0,G=Math.imul(_,$0);var F5=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(F5>>>26)|0,F5&=67108863,C=Math.imul(r,J0),K=Math.imul(r,$0),K=K+Math.imul(Y0,J0)|0,G=Math.imul(Y0,$0),C=C+Math.imul(L,P0)|0,K=K+Math.imul(L,j0)|0,K=K+Math.imul(_,P0)|0,G=G+Math.imul(_,j0)|0;var g0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(g0>>>26)|0,g0&=67108863,C=Math.imul(d,J0),K=Math.imul(d,$0),K=K+Math.imul(a,J0)|0,G=Math.imul(a,$0),C=C+Math.imul(r,P0)|0,K=K+Math.imul(r,j0)|0,K=K+Math.imul(Y0,P0)|0,G=G+Math.imul(Y0,j0)|0,C=C+Math.imul(L,D0)|0,K=K+Math.imul(L,N0)|0,K=K+Math.imul(_,D0)|0,G=G+Math.imul(_,N0)|0;var m0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(m0>>>26)|0,m0&=67108863,C=Math.imul(X0,J0),K=Math.imul(X0,$0),K=K+Math.imul(F0,J0)|0,G=Math.imul(F0,$0),C=C+Math.imul(d,P0)|0,K=K+Math.imul(d,j0)|0,K=K+Math.imul(a,P0)|0,G=G+Math.imul(a,j0)|0,C=C+Math.imul(r,D0)|0,K=K+Math.imul(r,N0)|0,K=K+Math.imul(Y0,D0)|0,G=G+Math.imul(Y0,N0)|0,C=C+Math.imul(L,T0)|0,K=K+Math.imul(L,O0)|0,K=K+Math.imul(_,T0)|0,G=G+Math.imul(_,O0)|0;var h0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(h0>>>26)|0,h0&=67108863,C=Math.imul(q,J0),K=Math.imul(q,$0),K=K+Math.imul(m,J0)|0,G=Math.imul(m,$0),C=C+Math.imul(X0,P0)|0,K=K+Math.imul(X0,j0)|0,K=K+Math.imul(F0,P0)|0,G=G+Math.imul(F0,j0)|0,C=C+Math.imul(d,D0)|0,K=K+Math.imul(d,N0)|0,K=K+Math.imul(a,D0)|0,G=G+Math.imul(a,N0)|0,C=C+Math.imul(r,T0)|0,K=K+Math.imul(r,O0)|0,K=K+Math.imul(Y0,T0)|0,G=G+Math.imul(Y0,O0)|0,C=C+Math.imul(L,L0)|0,K=K+Math.imul(L,k0)|0,K=K+Math.imul(_,L0)|0,G=G+Math.imul(_,k0)|0;var u0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(u0>>>26)|0,u0&=67108863,C=Math.imul(K0,J0),K=Math.imul(K0,$0),K=K+Math.imul(t,J0)|0,G=Math.imul(t,$0),C=C+Math.imul(q,P0)|0,K=K+Math.imul(q,j0)|0,K=K+Math.imul(m,P0)|0,G=G+Math.imul(m,j0)|0,C=C+Math.imul(X0,D0)|0,K=K+Math.imul(X0,N0)|0,K=K+Math.imul(F0,D0)|0,G=G+Math.imul(F0,N0)|0,C=C+Math.imul(d,T0)|0,K=K+Math.imul(d,O0)|0,K=K+Math.imul(a,T0)|0,G=G+Math.imul(a,O0)|0,C=C+Math.imul(r,L0)|0,K=K+Math.imul(r,k0)|0,K=K+Math.imul(Y0,L0)|0,G=G+Math.imul(Y0,k0)|0,C=C+Math.imul(L,I0)|0,K=K+Math.imul(L,q0)|0,K=K+Math.imul(_,I0)|0,G=G+Math.imul(_,q0)|0;var o0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(o0>>>26)|0,o0&=67108863,C=Math.imul(H0,J0),K=Math.imul(H0,$0),K=K+Math.imul(G0,J0)|0,G=Math.imul(G0,$0),C=C+Math.imul(K0,P0)|0,K=K+Math.imul(K0,j0)|0,K=K+Math.imul(t,P0)|0,G=G+Math.imul(t,j0)|0,C=C+Math.imul(q,D0)|0,K=K+Math.imul(q,N0)|0,K=K+Math.imul(m,D0)|0,G=G+Math.imul(m,N0)|0,C=C+Math.imul(X0,T0)|0,K=K+Math.imul(X0,O0)|0,K=K+Math.imul(F0,T0)|0,G=G+Math.imul(F0,O0)|0,C=C+Math.imul(d,L0)|0,K=K+Math.imul(d,k0)|0,K=K+Math.imul(a,L0)|0,G=G+Math.imul(a,k0)|0,C=C+Math.imul(r,I0)|0,K=K+Math.imul(r,q0)|0,K=K+Math.imul(Y0,I0)|0,G=G+Math.imul(Y0,q0)|0,C=C+Math.imul(L,B0)|0,K=K+Math.imul(L,R0)|0,K=K+Math.imul(_,B0)|0,G=G+Math.imul(_,R0)|0;var s0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(s0>>>26)|0,s0&=67108863,C=Math.imul(U0,J0),K=Math.imul(U0,$0),K=K+Math.imul(Z0,J0)|0,G=Math.imul(Z0,$0),C=C+Math.imul(H0,P0)|0,K=K+Math.imul(H0,j0)|0,K=K+Math.imul(G0,P0)|0,G=G+Math.imul(G0,j0)|0,C=C+Math.imul(K0,D0)|0,K=K+Math.imul(K0,N0)|0,K=K+Math.imul(t,D0)|0,G=G+Math.imul(t,N0)|0,C=C+Math.imul(q,T0)|0,K=K+Math.imul(q,O0)|0,K=K+Math.imul(m,T0)|0,G=G+Math.imul(m,O0)|0,C=C+Math.imul(X0,L0)|0,K=K+Math.imul(X0,k0)|0,K=K+Math.imul(F0,L0)|0,G=G+Math.imul(F0,k0)|0,C=C+Math.imul(d,I0)|0,K=K+Math.imul(d,q0)|0,K=K+Math.imul(a,I0)|0,G=G+Math.imul(a,q0)|0,C=C+Math.imul(r,B0)|0,K=K+Math.imul(r,R0)|0,K=K+Math.imul(Y0,B0)|0,G=G+Math.imul(Y0,R0)|0,C=C+Math.imul(L,E0)|0,K=K+Math.imul(L,S0)|0,K=K+Math.imul(_,E0)|0,G=G+Math.imul(_,S0)|0;var a0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(a0>>>26)|0,a0&=67108863,C=Math.imul(O,J0),K=Math.imul(O,$0),K=K+Math.imul(B,J0)|0,G=Math.imul(B,$0),C=C+Math.imul(U0,P0)|0,K=K+Math.imul(U0,j0)|0,K=K+Math.imul(Z0,P0)|0,G=G+Math.imul(Z0,j0)|0,C=C+Math.imul(H0,D0)|0,K=K+Math.imul(H0,N0)|0,K=K+Math.imul(G0,D0)|0,G=G+Math.imul(G0,N0)|0,C=C+Math.imul(K0,T0)|0,K=K+Math.imul(K0,O0)|0,K=K+Math.imul(t,T0)|0,G=G+Math.imul(t,O0)|0,C=C+Math.imul(q,L0)|0,K=K+Math.imul(q,k0)|0,K=K+Math.imul(m,L0)|0,G=G+Math.imul(m,k0)|0,C=C+Math.imul(X0,I0)|0,K=K+Math.imul(X0,q0)|0,K=K+Math.imul(F0,I0)|0,G=G+Math.imul(F0,q0)|0,C=C+Math.imul(d,B0)|0,K=K+Math.imul(d,R0)|0,K=K+Math.imul(a,B0)|0,G=G+Math.imul(a,R0)|0,C=C+Math.imul(r,E0)|0,K=K+Math.imul(r,S0)|0,K=K+Math.imul(Y0,E0)|0,G=G+Math.imul(Y0,S0)|0,C=C+Math.imul(L,x0)|0,K=K+Math.imul(L,A0)|0,K=K+Math.imul(_,x0)|0,G=G+Math.imul(_,A0)|0;var f0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(f0>>>26)|0,f0&=67108863,C=Math.imul(h,J0),K=Math.imul(h,$0),K=K+Math.imul(o,J0)|0,G=Math.imul(o,$0),C=C+Math.imul(O,P0)|0,K=K+Math.imul(O,j0)|0,K=K+Math.imul(B,P0)|0,G=G+Math.imul(B,j0)|0,C=C+Math.imul(U0,D0)|0,K=K+Math.imul(U0,N0)|0,K=K+Math.imul(Z0,D0)|0,G=G+Math.imul(Z0,N0)|0,C=C+Math.imul(H0,T0)|0,K=K+Math.imul(H0,O0)|0,K=K+Math.imul(G0,T0)|0,G=G+Math.imul(G0,O0)|0,C=C+Math.imul(K0,L0)|0,K=K+Math.imul(K0,k0)|0,K=K+Math.imul(t,L0)|0,G=G+Math.imul(t,k0)|0,C=C+Math.imul(q,I0)|0,K=K+Math.imul(q,q0)|0,K=K+Math.imul(m,I0)|0,G=G+Math.imul(m,q0)|0,C=C+Math.imul(X0,B0)|0,K=K+Math.imul(X0,R0)|0,K=K+Math.imul(F0,B0)|0,G=G+Math.imul(F0,R0)|0,C=C+Math.imul(d,E0)|0,K=K+Math.imul(d,S0)|0,K=K+Math.imul(a,E0)|0,G=G+Math.imul(a,S0)|0,C=C+Math.imul(r,x0)|0,K=K+Math.imul(r,A0)|0,K=K+Math.imul(Y0,x0)|0,G=G+Math.imul(Y0,A0)|0,C=C+Math.imul(L,v0)|0,K=K+Math.imul(L,M0)|0,K=K+Math.imul(_,v0)|0,G=G+Math.imul(_,M0)|0;var n0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(n0>>>26)|0,n0&=67108863,C=Math.imul(h,P0),K=Math.imul(h,j0),K=K+Math.imul(o,P0)|0,G=Math.imul(o,j0),C=C+Math.imul(O,D0)|0,K=K+Math.imul(O,N0)|0,K=K+Math.imul(B,D0)|0,G=G+Math.imul(B,N0)|0,C=C+Math.imul(U0,T0)|0,K=K+Math.imul(U0,O0)|0,K=K+Math.imul(Z0,T0)|0,G=G+Math.imul(Z0,O0)|0,C=C+Math.imul(H0,L0)|0,K=K+Math.imul(H0,k0)|0,K=K+Math.imul(G0,L0)|0,G=G+Math.imul(G0,k0)|0,C=C+Math.imul(K0,I0)|0,K=K+Math.imul(K0,q0)|0,K=K+Math.imul(t,I0)|0,G=G+Math.imul(t,q0)|0,C=C+Math.imul(q,B0)|0,K=K+Math.imul(q,R0)|0,K=K+Math.imul(m,B0)|0,G=G+Math.imul(m,R0)|0,C=C+Math.imul(X0,E0)|0,K=K+Math.imul(X0,S0)|0,K=K+Math.imul(F0,E0)|0,G=G+Math.imul(F0,S0)|0,C=C+Math.imul(d,x0)|0,K=K+Math.imul(d,A0)|0,K=K+Math.imul(a,x0)|0,G=G+Math.imul(a,A0)|0,C=C+Math.imul(r,v0)|0,K=K+Math.imul(r,M0)|0,K=K+Math.imul(Y0,v0)|0,G=G+Math.imul(Y0,M0)|0;var r0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(r0>>>26)|0,r0&=67108863,C=Math.imul(h,D0),K=Math.imul(h,N0),K=K+Math.imul(o,D0)|0,G=Math.imul(o,N0),C=C+Math.imul(O,T0)|0,K=K+Math.imul(O,O0)|0,K=K+Math.imul(B,T0)|0,G=G+Math.imul(B,O0)|0,C=C+Math.imul(U0,L0)|0,K=K+Math.imul(U0,k0)|0,K=K+Math.imul(Z0,L0)|0,G=G+Math.imul(Z0,k0)|0,C=C+Math.imul(H0,I0)|0,K=K+Math.imul(H0,q0)|0,K=K+Math.imul(G0,I0)|0,G=G+Math.imul(G0,q0)|0,C=C+Math.imul(K0,B0)|0,K=K+Math.imul(K0,R0)|0,K=K+Math.imul(t,B0)|0,G=G+Math.imul(t,R0)|0,C=C+Math.imul(q,E0)|0,K=K+Math.imul(q,S0)|0,K=K+Math.imul(m,E0)|0,G=G+Math.imul(m,S0)|0,C=C+Math.imul(X0,x0)|0,K=K+Math.imul(X0,A0)|0,K=K+Math.imul(F0,x0)|0,G=G+Math.imul(F0,A0)|0,C=C+Math.imul(d,v0)|0,K=K+Math.imul(d,M0)|0,K=K+Math.imul(a,v0)|0,G=G+Math.imul(a,M0)|0;var i0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(i0>>>26)|0,i0&=67108863,C=Math.imul(h,T0),K=Math.imul(h,O0),K=K+Math.imul(o,T0)|0,G=Math.imul(o,O0),C=C+Math.imul(O,L0)|0,K=K+Math.imul(O,k0)|0,K=K+Math.imul(B,L0)|0,G=G+Math.imul(B,k0)|0,C=C+Math.imul(U0,I0)|0,K=K+Math.imul(U0,q0)|0,K=K+Math.imul(Z0,I0)|0,G=G+Math.imul(Z0,q0)|0,C=C+Math.imul(H0,B0)|0,K=K+Math.imul(H0,R0)|0,K=K+Math.imul(G0,B0)|0,G=G+Math.imul(G0,R0)|0,C=C+Math.imul(K0,E0)|0,K=K+Math.imul(K0,S0)|0,K=K+Math.imul(t,E0)|0,G=G+Math.imul(t,S0)|0,C=C+Math.imul(q,x0)|0,K=K+Math.imul(q,A0)|0,K=K+Math.imul(m,x0)|0,G=G+Math.imul(m,A0)|0,C=C+Math.imul(X0,v0)|0,K=K+Math.imul(X0,M0)|0,K=K+Math.imul(F0,v0)|0,G=G+Math.imul(F0,M0)|0;var t0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(t0>>>26)|0,t0&=67108863,C=Math.imul(h,L0),K=Math.imul(h,k0),K=K+Math.imul(o,L0)|0,G=Math.imul(o,k0),C=C+Math.imul(O,I0)|0,K=K+Math.imul(O,q0)|0,K=K+Math.imul(B,I0)|0,G=G+Math.imul(B,q0)|0,C=C+Math.imul(U0,B0)|0,K=K+Math.imul(U0,R0)|0,K=K+Math.imul(Z0,B0)|0,G=G+Math.imul(Z0,R0)|0,C=C+Math.imul(H0,E0)|0,K=K+Math.imul(H0,S0)|0,K=K+Math.imul(G0,E0)|0,G=G+Math.imul(G0,S0)|0,C=C+Math.imul(K0,x0)|0,K=K+Math.imul(K0,A0)|0,K=K+Math.imul(t,x0)|0,G=G+Math.imul(t,A0)|0,C=C+Math.imul(q,v0)|0,K=K+Math.imul(q,M0)|0,K=K+Math.imul(m,v0)|0,G=G+Math.imul(m,M0)|0;var e0=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(e0>>>26)|0,e0&=67108863,C=Math.imul(h,I0),K=Math.imul(h,q0),K=K+Math.imul(o,I0)|0,G=Math.imul(o,q0),C=C+Math.imul(O,B0)|0,K=K+Math.imul(O,R0)|0,K=K+Math.imul(B,B0)|0,G=G+Math.imul(B,R0)|0,C=C+Math.imul(U0,E0)|0,K=K+Math.imul(U0,S0)|0,K=K+Math.imul(Z0,E0)|0,G=G+Math.imul(Z0,S0)|0,C=C+Math.imul(H0,x0)|0,K=K+Math.imul(H0,A0)|0,K=K+Math.imul(G0,x0)|0,G=G+Math.imul(G0,A0)|0,C=C+Math.imul(K0,v0)|0,K=K+Math.imul(K0,M0)|0,K=K+Math.imul(t,v0)|0,G=G+Math.imul(t,M0)|0;var X5=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(X5>>>26)|0,X5&=67108863,C=Math.imul(h,B0),K=Math.imul(h,R0),K=K+Math.imul(o,B0)|0,G=Math.imul(o,R0),C=C+Math.imul(O,E0)|0,K=K+Math.imul(O,S0)|0,K=K+Math.imul(B,E0)|0,G=G+Math.imul(B,S0)|0,C=C+Math.imul(U0,x0)|0,K=K+Math.imul(U0,A0)|0,K=K+Math.imul(Z0,x0)|0,G=G+Math.imul(Z0,A0)|0,C=C+Math.imul(H0,v0)|0,K=K+Math.imul(H0,M0)|0,K=K+Math.imul(G0,v0)|0,G=G+Math.imul(G0,M0)|0;var K5=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(K5>>>26)|0,K5&=67108863,C=Math.imul(h,E0),K=Math.imul(h,S0),K=K+Math.imul(o,E0)|0,G=Math.imul(o,S0),C=C+Math.imul(O,x0)|0,K=K+Math.imul(O,A0)|0,K=K+Math.imul(B,x0)|0,G=G+Math.imul(B,A0)|0,C=C+Math.imul(U0,v0)|0,K=K+Math.imul(U0,M0)|0,K=K+Math.imul(Z0,v0)|0,G=G+Math.imul(Z0,M0)|0;var Y5=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(Y5>>>26)|0,Y5&=67108863,C=Math.imul(h,x0),K=Math.imul(h,A0),K=K+Math.imul(o,x0)|0,G=Math.imul(o,A0),C=C+Math.imul(O,v0)|0,K=K+Math.imul(O,M0)|0,K=K+Math.imul(B,v0)|0,G=G+Math.imul(B,M0)|0;var J5=(Z+C|0)+((K&8191)<<13)|0;Z=(G+(K>>>13)|0)+(J5>>>26)|0,J5&=67108863,C=Math.imul(h,v0),K=Math.imul(h,M0),K=K+Math.imul(o,v0)|0,G=Math.imul(o,M0);var Q5=(Z+C|0)+((K&8191)<<13)|0;return Z=(G+(K>>>13)|0)+(Q5>>>26)|0,Q5&=67108863,W[0]=F5,W[1]=g0,W[2]=m0,W[3]=h0,W[4]=u0,W[5]=o0,W[6]=s0,W[7]=a0,W[8]=f0,W[9]=n0,W[10]=r0,W[11]=i0,W[12]=t0,W[13]=e0,W[14]=X5,W[15]=K5,W[16]=Y5,W[17]=J5,W[18]=Q5,Z!==0&&(W[19]=Z,Q.length++),Q};Math.imul||(I=N);function M(X,Y,Q){Q.negative=Y.negative^X.negative,Q.length=X.length+Y.length;for(var J=0,F=0,W=0;W<Q.length-1;W++){var Z=F;F=0;for(var C=J&67108863,K=Math.min(W,Y.length-1),G=Math.max(0,W-X.length+1);G<=K;G++){var R=W-G,L=X.words[R]|0,_=Y.words[G]|0,s=L*_,r=s&67108863;Z=Z+(s/67108864|0)|0,r=r+C|0,C=r&67108863,Z=Z+(r>>>26)|0,F+=Z>>>26,Z&=67108863}Q.words[W]=C,J=Z,Z=F}return J!==0?Q.words[W]=J:Q.length--,Q.strip()}function x(X,Y,Q){var J=new v;return J.mulp(X,Y,Q)}H.prototype.mulTo=function(X,Y){var Q,J=this.length+X.length;return this.length===10&&X.length===10?Q=I(this,X,Y):J<63?Q=N(this,X,Y):J<1024?Q=M(this,X,Y):Q=x(this,X,Y),Q};function v(X,Y){this.x=X,this.y=Y}v.prototype.makeRBT=function(X){for(var Y=new Array(X),Q=H.prototype._countBits(X)-1,J=0;J<X;J++)Y[J]=this.revBin(J,Q,X);return Y},v.prototype.revBin=function(X,Y,Q){if(X===0||X===Q-1)return X;for(var J=0,F=0;F<Y;F++)J|=(X&1)<<Y-F-1,X>>=1;return J},v.prototype.permute=function(X,Y,Q,J,F,W){for(var Z=0;Z<W;Z++)J[Z]=Y[X[Z]],F[Z]=Q[X[Z]]},v.prototype.transform=function(X,Y,Q,J,F,W){this.permute(W,X,Y,Q,J,F);for(var Z=1;Z<F;Z<<=1)for(var C=Z<<1,K=Math.cos(2*Math.PI/C),G=Math.sin(2*Math.PI/C),R=0;R<F;R+=C)for(var L=K,_=G,s=0;s<Z;s++){var r=Q[R+s],Y0=J[R+s],u=Q[R+s+Z],d=J[R+s+Z],a=L*u-_*d;d=L*d+_*u,u=a,Q[R+s]=r+u,J[R+s]=Y0+d,Q[R+s+Z]=r-u,J[R+s+Z]=Y0-d,s!==C&&(a=K*L-G*_,_=K*_+G*L,L=a)}},v.prototype.guessLen13b=function(X,Y){var Q=Math.max(Y,X)|1,J=Q&1,F=0;for(Q=Q/2|0;Q;Q=Q>>>1)F++;return 1<<F+1+J},v.prototype.conjugate=function(X,Y,Q){if(!(Q<=1))for(var J=0;J<Q/2;J++){var F=X[J];X[J]=X[Q-J-1],X[Q-J-1]=F,F=Y[J],Y[J]=-Y[Q-J-1],Y[Q-J-1]=-F}},v.prototype.normalize13b=function(X,Y){for(var Q=0,J=0;J<Y/2;J++){var F=Math.round(X[2*J+1]/Y)*8192+Math.round(X[2*J]/Y)+Q;X[J]=F&67108863,F<67108864?Q=0:Q=F/67108864|0}return X},v.prototype.convert13b=function(X,Y,Q,J){for(var F=0,W=0;W<Y;W++)F=F+(X[W]|0),Q[2*W]=F&8191,F=F>>>13,Q[2*W+1]=F&8191,F=F>>>13;for(W=2*Y;W<J;++W)Q[W]=0;j(F===0),j((F&-8192)===0)},v.prototype.stub=function(X){for(var Y=new Array(X),Q=0;Q<X;Q++)Y[Q]=0;return Y},v.prototype.mulp=function(X,Y,Q){var J=2*this.guessLen13b(X.length,Y.length),F=this.makeRBT(J),W=this.stub(J),Z=new Array(J),C=new Array(J),K=new Array(J),G=new Array(J),R=new Array(J),L=new Array(J),_=Q.words;_.length=J,this.convert13b(X.words,X.length,Z,J),this.convert13b(Y.words,Y.length,G,J),this.transform(Z,W,C,K,J,F),this.transform(G,W,R,L,J,F);for(var s=0;s<J;s++){var r=C[s]*R[s]-K[s]*L[s];K[s]=C[s]*L[s]+K[s]*R[s],C[s]=r}return this.conjugate(C,K,J),this.transform(C,K,_,W,J,F),this.conjugate(_,W,J),this.normalize13b(_,J),Q.negative=X.negative^Y.negative,Q.length=X.length+Y.length,Q.strip()},H.prototype.mul=function(X){var Y=new H(null);return Y.words=new Array(this.length+X.length),this.mulTo(X,Y)},H.prototype.mulf=function(X){var Y=new H(null);return Y.words=new Array(this.length+X.length),x(this,X,Y)},H.prototype.imul=function(X){return this.clone().mulTo(X,this)},H.prototype.imuln=function(X){j(typeof X=="number"),j(X<67108864);for(var Y=0,Q=0;Q<this.length;Q++){var J=(this.words[Q]|0)*X,F=(J&67108863)+(Y&67108863);Y>>=26,Y+=J/67108864|0,Y+=F>>>26,this.words[Q]=F&67108863}return Y!==0&&(this.words[Q]=Y,this.length++),this},H.prototype.muln=function(X){return this.clone().imuln(X)},H.prototype.sqr=function(){return this.mul(this)},H.prototype.isqr=function(){return this.imul(this.clone())},H.prototype.pow=function(X){var Y=U(X);if(Y.length===0)return new H(1);for(var Q=this,J=0;J<Y.length&&Y[J]===0;J++,Q=Q.sqr());if(++J<Y.length)for(var F=Q.sqr();J<Y.length;J++,F=F.sqr())Y[J]!==0&&(Q=Q.mul(F));return Q},H.prototype.iushln=function(X){j(typeof X=="number"&&X>=0);var Y=X%26,Q=(X-Y)/26,J=67108863>>>26-Y<<26-Y,F;if(Y!==0){var W=0;for(F=0;F<this.length;F++){var Z=this.words[F]&J,C=(this.words[F]|0)-Z<<Y;this.words[F]=C|W,W=Z>>>26-Y}W&&(this.words[F]=W,this.length++)}if(Q!==0){for(F=this.length-1;F>=0;F--)this.words[F+Q]=this.words[F];for(F=0;F<Q;F++)this.words[F]=0;this.length+=Q}return this.strip()},H.prototype.ishln=function(X){return j(this.negative===0),this.iushln(X)},H.prototype.iushrn=function(X,Y,Q){j(typeof X=="number"&&X>=0);var J;Y?J=(Y-Y%26)/26:J=0;var F=X%26,W=Math.min((X-F)/26,this.length),Z=67108863^67108863>>>F<<F,C=Q;if(J-=W,J=Math.max(0,J),C){for(var K=0;K<W;K++)C.words[K]=this.words[K];C.length=W}if(W!==0)if(this.length>W)for(this.length-=W,K=0;K<this.length;K++)this.words[K]=this.words[K+W];else this.words[0]=0,this.length=1;var G=0;for(K=this.length-1;K>=0&&(G!==0||K>=J);K--){var R=this.words[K]|0;this.words[K]=G<<26-F|R>>>F,G=R&Z}return C&&G!==0&&(C.words[C.length++]=G),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},H.prototype.ishrn=function(X,Y,Q){return j(this.negative===0),this.iushrn(X,Y,Q)},H.prototype.shln=function(X){return this.clone().ishln(X)},H.prototype.ushln=function(X){return this.clone().iushln(X)},H.prototype.shrn=function(X){return this.clone().ishrn(X)},H.prototype.ushrn=function(X){return this.clone().iushrn(X)},H.prototype.testn=function(X){j(typeof X=="number"&&X>=0);var Y=X%26,Q=(X-Y)/26,J=1<<Y;if(this.length<=Q)return!1;var F=this.words[Q];return!!(F&J)},H.prototype.imaskn=function(X){j(typeof X=="number"&&X>=0);var Y=X%26,Q=(X-Y)/26;if(j(this.negative===0,"imaskn works only with positive numbers"),this.length<=Q)return this;if(Y!==0&&Q++,this.length=Math.min(Q,this.length),Y!==0){var J=67108863^67108863>>>Y<<Y;this.words[this.length-1]&=J}return this.strip()},H.prototype.maskn=function(X){return this.clone().imaskn(X)},H.prototype.iaddn=function(X){return j(typeof X=="number"),j(X<67108864),X<0?this.isubn(-X):this.negative!==0?this.length===1&&(this.words[0]|0)<X?(this.words[0]=X-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(X),this.negative=1,this):this._iaddn(X)},H.prototype._iaddn=function(X){this.words[0]+=X;for(var Y=0;Y<this.length&&this.words[Y]>=67108864;Y++)this.words[Y]-=67108864,Y===this.length-1?this.words[Y+1]=1:this.words[Y+1]++;return this.length=Math.max(this.length,Y+1),this},H.prototype.isubn=function(X){if(j(typeof X=="number"),j(X<67108864),X<0)return this.iaddn(-X);if(this.negative!==0)return this.negative=0,this.iaddn(X),this.negative=1,this;if(this.words[0]-=X,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Y=0;Y<this.length&&this.words[Y]<0;Y++)this.words[Y]+=67108864,this.words[Y+1]-=1;return this.strip()},H.prototype.addn=function(X){return this.clone().iaddn(X)},H.prototype.subn=function(X){return this.clone().isubn(X)},H.prototype.iabs=function(){return this.negative=0,this},H.prototype.abs=function(){return this.clone().iabs()},H.prototype._ishlnsubmul=function(X,Y,Q){var J=X.length+Q,F;this._expand(J);var W,Z=0;for(F=0;F<X.length;F++){W=(this.words[F+Q]|0)+Z;var C=(X.words[F]|0)*Y;W-=C&67108863,Z=(W>>26)-(C/67108864|0),this.words[F+Q]=W&67108863}for(;F<this.length-Q;F++)W=(this.words[F+Q]|0)+Z,Z=W>>26,this.words[F+Q]=W&67108863;if(Z===0)return this.strip();for(j(Z===-1),Z=0,F=0;F<this.length;F++)W=-(this.words[F]|0)+Z,Z=W>>26,this.words[F]=W&67108863;return this.negative=1,this.strip()},H.prototype._wordDiv=function(X,Y){var Q=this.length-X.length,J=this.clone(),F=X,W=F.words[F.length-1]|0,Z=this._countBits(W);Q=26-Z,Q!==0&&(F=F.ushln(Q),J.iushln(Q),W=F.words[F.length-1]|0);var C=J.length-F.length,K;if(Y!=="mod"){K=new H(null),K.length=C+1,K.words=new Array(K.length);for(var G=0;G<K.length;G++)K.words[G]=0}var R=J.clone()._ishlnsubmul(F,1,C);R.negative===0&&(J=R,K&&(K.words[C]=1));for(var L=C-1;L>=0;L--){var _=(J.words[F.length+L]|0)*67108864+(J.words[F.length+L-1]|0);for(_=Math.min(_/W|0,67108863),J._ishlnsubmul(F,_,L);J.negative!==0;)_--,J.negative=0,J._ishlnsubmul(F,1,L),J.isZero()||(J.negative^=1);K&&(K.words[L]=_)}return K&&K.strip(),J.strip(),Y!=="div"&&Q!==0&&J.iushrn(Q),{div:K||null,mod:J}},H.prototype.divmod=function(X,Y,Q){if(j(!X.isZero()),this.isZero())return{div:new H(0),mod:new H(0)};var J,F,W;return this.negative!==0&&X.negative===0?(W=this.neg().divmod(X,Y),Y!=="mod"&&(J=W.div.neg()),Y!=="div"&&(F=W.mod.neg(),Q&&F.negative!==0&&F.iadd(X)),{div:J,mod:F}):this.negative===0&&X.negative!==0?(W=this.divmod(X.neg(),Y),Y!=="mod"&&(J=W.div.neg()),{div:J,mod:W.mod}):(this.negative&X.negative)!==0?(W=this.neg().divmod(X.neg(),Y),Y!=="div"&&(F=W.mod.neg(),Q&&F.negative!==0&&F.isub(X)),{div:W.div,mod:F}):X.length>this.length||this.cmp(X)<0?{div:new H(0),mod:this}:X.length===1?Y==="div"?{div:this.divn(X.words[0]),mod:null}:Y==="mod"?{div:null,mod:new H(this.modn(X.words[0]))}:{div:this.divn(X.words[0]),mod:new H(this.modn(X.words[0]))}:this._wordDiv(X,Y)},H.prototype.div=function(X){return this.divmod(X,"div",!1).div},H.prototype.mod=function(X){return this.divmod(X,"mod",!1).mod},H.prototype.umod=function(X){return this.divmod(X,"mod",!0).mod},H.prototype.divRound=function(X){var Y=this.divmod(X);if(Y.mod.isZero())return Y.div;var Q=Y.div.negative!==0?Y.mod.isub(X):Y.mod,J=X.ushrn(1),F=X.andln(1),W=Q.cmp(J);return W<0||F===1&&W===0?Y.div:Y.div.negative!==0?Y.div.isubn(1):Y.div.iaddn(1)},H.prototype.modn=function(X){j(X<=67108863);for(var Y=67108864%X,Q=0,J=this.length-1;J>=0;J--)Q=(Y*Q+(this.words[J]|0))%X;return Q},H.prototype.idivn=function(X){j(X<=67108863);for(var Y=0,Q=this.length-1;Q>=0;Q--){var J=(this.words[Q]|0)+Y*67108864;this.words[Q]=J/X|0,Y=J%X}return this.strip()},H.prototype.divn=function(X){return this.clone().idivn(X)},H.prototype.egcd=function(X){j(X.negative===0),j(!X.isZero());var Y=this,Q=X.clone();Y.negative!==0?Y=Y.umod(X):Y=Y.clone();for(var J=new H(1),F=new H(0),W=new H(0),Z=new H(1),C=0;Y.isEven()&&Q.isEven();)Y.iushrn(1),Q.iushrn(1),++C;for(var K=Q.clone(),G=Y.clone();!Y.isZero();){for(var R=0,L=1;(Y.words[0]&L)===0&&R<26;++R,L<<=1);if(R>0)for(Y.iushrn(R);R-- >0;)(J.isOdd()||F.isOdd())&&(J.iadd(K),F.isub(G)),J.iushrn(1),F.iushrn(1);for(var _=0,s=1;(Q.words[0]&s)===0&&_<26;++_,s<<=1);if(_>0)for(Q.iushrn(_);_-- >0;)(W.isOdd()||Z.isOdd())&&(W.iadd(K),Z.isub(G)),W.iushrn(1),Z.iushrn(1);Y.cmp(Q)>=0?(Y.isub(Q),J.isub(W),F.isub(Z)):(Q.isub(Y),W.isub(J),Z.isub(F))}return{a:W,b:Z,gcd:Q.iushln(C)}},H.prototype._invmp=function(X){j(X.negative===0),j(!X.isZero());var Y=this,Q=X.clone();Y.negative!==0?Y=Y.umod(X):Y=Y.clone();for(var J=new H(1),F=new H(0),W=Q.clone();Y.cmpn(1)>0&&Q.cmpn(1)>0;){for(var Z=0,C=1;(Y.words[0]&C)===0&&Z<26;++Z,C<<=1);if(Z>0)for(Y.iushrn(Z);Z-- >0;)J.isOdd()&&J.iadd(W),J.iushrn(1);for(var K=0,G=1;(Q.words[0]&G)===0&&K<26;++K,G<<=1);if(K>0)for(Q.iushrn(K);K-- >0;)F.isOdd()&&F.iadd(W),F.iushrn(1);Y.cmp(Q)>=0?(Y.isub(Q),J.isub(F)):(Q.isub(Y),F.isub(J))}var R;return Y.cmpn(1)===0?R=J:R=F,R.cmpn(0)<0&&R.iadd(X),R},H.prototype.gcd=function(X){if(this.isZero())return X.abs();if(X.isZero())return this.abs();var Y=this.clone(),Q=X.clone();Y.negative=0,Q.negative=0;for(var J=0;Y.isEven()&&Q.isEven();J++)Y.iushrn(1),Q.iushrn(1);do{for(;Y.isEven();)Y.iushrn(1);for(;Q.isEven();)Q.iushrn(1);var F=Y.cmp(Q);if(F<0){var W=Y;Y=Q,Q=W}else if(F===0||Q.cmpn(1)===0)break;Y.isub(Q)}while(!0);return Q.iushln(J)},H.prototype.invm=function(X){return this.egcd(X).a.umod(X)},H.prototype.isEven=function(){return(this.words[0]&1)===0},H.prototype.isOdd=function(){return(this.words[0]&1)===1},H.prototype.andln=function(X){return this.words[0]&X},H.prototype.bincn=function(X){j(typeof X=="number");var Y=X%26,Q=(X-Y)/26,J=1<<Y;if(this.length<=Q)return this._expand(Q+1),this.words[Q]|=J,this;for(var F=J,W=Q;F!==0&&W<this.length;W++){var Z=this.words[W]|0;Z+=F,F=Z>>>26,Z&=67108863,this.words[W]=Z}return F!==0&&(this.words[W]=F,this.length++),this},H.prototype.isZero=function(){return this.length===1&&this.words[0]===0},H.prototype.cmpn=function(X){var Y=X<0;if(this.negative!==0&&!Y)return-1;if(this.negative===0&&Y)return 1;this.strip();var Q;if(this.length>1)Q=1;else{Y&&(X=-X),j(X<=67108863,"Number is too big");var J=this.words[0]|0;Q=J===X?0:J<X?-1:1}return this.negative!==0?-Q|0:Q},H.prototype.cmp=function(X){if(this.negative!==0&&X.negative===0)return-1;if(this.negative===0&&X.negative!==0)return 1;var Y=this.ucmp(X);return this.negative!==0?-Y|0:Y},H.prototype.ucmp=function(X){if(this.length>X.length)return 1;if(this.length<X.length)return-1;for(var Y=0,Q=this.length-1;Q>=0;Q--){var J=this.words[Q]|0,F=X.words[Q]|0;if(J!==F){J<F?Y=-1:J>F&&(Y=1);break}}return Y},H.prototype.gtn=function(X){return this.cmpn(X)===1},H.prototype.gt=function(X){return this.cmp(X)===1},H.prototype.gten=function(X){return this.cmpn(X)>=0},H.prototype.gte=function(X){return this.cmp(X)>=0},H.prototype.ltn=function(X){return this.cmpn(X)===-1},H.prototype.lt=function(X){return this.cmp(X)===-1},H.prototype.lten=function(X){return this.cmpn(X)<=0},H.prototype.lte=function(X){return this.cmp(X)<=0},H.prototype.eqn=function(X){return this.cmpn(X)===0},H.prototype.eq=function(X){return this.cmp(X)===0},H.red=function(X){return new f(X)},H.prototype.toRed=function(X){return j(!this.red,"Already a number in reduction context"),j(this.negative===0,"red works only with positives"),X.convertTo(this)._forceRed(X)},H.prototype.fromRed=function(){return j(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},H.prototype._forceRed=function(X){return this.red=X,this},H.prototype.forceRed=function(X){return j(!this.red,"Already a number in reduction context"),this._forceRed(X)},H.prototype.redAdd=function(X){return j(this.red,"redAdd works only with red numbers"),this.red.add(this,X)},H.prototype.redIAdd=function(X){return j(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,X)},H.prototype.redSub=function(X){return j(this.red,"redSub works only with red numbers"),this.red.sub(this,X)},H.prototype.redISub=function(X){return j(this.red,"redISub works only with red numbers"),this.red.isub(this,X)},H.prototype.redShl=function(X){return j(this.red,"redShl works only with red numbers"),this.red.shl(this,X)},H.prototype.redMul=function(X){return j(this.red,"redMul works only with red numbers"),this.red._verify2(this,X),this.red.mul(this,X)},H.prototype.redIMul=function(X){return j(this.red,"redMul works only with red numbers"),this.red._verify2(this,X),this.red.imul(this,X)},H.prototype.redSqr=function(){return j(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},H.prototype.redISqr=function(){return j(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},H.prototype.redSqrt=function(){return j(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},H.prototype.redInvm=function(){return j(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},H.prototype.redNeg=function(){return j(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},H.prototype.redPow=function(X){return j(this.red&&!X.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,X)};var y={k256:null,p224:null,p192:null,p25519:null};function p(X,Y){this.name=X,this.p=new H(Y,16),this.n=this.p.bitLength(),this.k=new H(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}p.prototype._tmp=function(){var X=new H(null);return X.words=new Array(Math.ceil(this.n/13)),X},p.prototype.ireduce=function(X){var Y=X,Q;do this.split(Y,this.tmp),Y=this.imulK(Y),Y=Y.iadd(this.tmp),Q=Y.bitLength();while(Q>this.n);var J=Q<this.n?-1:Y.ucmp(this.p);return J===0?(Y.words[0]=0,Y.length=1):J>0?Y.isub(this.p):Y.strip!==void 0?Y.strip():Y._strip(),Y},p.prototype.split=function(X,Y){X.iushrn(this.n,0,Y)},p.prototype.imulK=function(X){return X.imul(this.k)};function c(){p.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}S(c,p),c.prototype.split=function(X,Y){for(var Q=4194303,J=Math.min(X.length,9),F=0;F<J;F++)Y.words[F]=X.words[F];if(Y.length=J,X.length<=9){X.words[0]=0,X.length=1;return}var W=X.words[9];for(Y.words[Y.length++]=W&Q,F=10;F<X.length;F++){var Z=X.words[F]|0;X.words[F-10]=(Z&Q)<<4|W>>>22,W=Z}W>>>=22,X.words[F-10]=W,W===0&&X.length>10?X.length-=10:X.length-=9},c.prototype.imulK=function(X){X.words[X.length]=0,X.words[X.length+1]=0,X.length+=2;for(var Y=0,Q=0;Q<X.length;Q++){var J=X.words[Q]|0;Y+=J*977,X.words[Q]=Y&67108863,Y=J*64+(Y/67108864|0)}return X.words[X.length-1]===0&&(X.length--,X.words[X.length-1]===0&&X.length--),X};function n(){p.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}S(n,p);function i(){p.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}S(i,p);function Q0(){p.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}S(Q0,p),Q0.prototype.imulK=function(X){for(var Y=0,Q=0;Q<X.length;Q++){var J=(X.words[Q]|0)*19+Y,F=J&67108863;J>>>=26,X.words[Q]=F,Y=J}return Y!==0&&(X.words[X.length++]=Y),X},H._prime=function(X){if(y[X])return y[X];var Y;if(X==="k256")Y=new c;else if(X==="p224")Y=new n;else if(X==="p192")Y=new i;else if(X==="p25519")Y=new Q0;else throw new Error("Unknown prime "+X);return y[X]=Y,Y};function f(X){if(typeof X=="string"){var Y=H._prime(X);this.m=Y.p,this.prime=Y}else j(X.gtn(1),"modulus must be greater than 1"),this.m=X,this.prime=null}f.prototype._verify1=function(X){j(X.negative===0,"red works only with positives"),j(X.red,"red works only with red numbers")},f.prototype._verify2=function(X,Y){j((X.negative|Y.negative)===0,"red works only with positives"),j(X.red&&X.red===Y.red,"red works only with red numbers")},f.prototype.imod=function(X){return this.prime?this.prime.ireduce(X)._forceRed(this):X.umod(this.m)._forceRed(this)},f.prototype.neg=function(X){return X.isZero()?X.clone():this.m.sub(X)._forceRed(this)},f.prototype.add=function(X,Y){this._verify2(X,Y);var Q=X.add(Y);return Q.cmp(this.m)>=0&&Q.isub(this.m),Q._forceRed(this)},f.prototype.iadd=function(X,Y){this._verify2(X,Y);var Q=X.iadd(Y);return Q.cmp(this.m)>=0&&Q.isub(this.m),Q},f.prototype.sub=function(X,Y){this._verify2(X,Y);var Q=X.sub(Y);return Q.cmpn(0)<0&&Q.iadd(this.m),Q._forceRed(this)},f.prototype.isub=function(X,Y){this._verify2(X,Y);var Q=X.isub(Y);return Q.cmpn(0)<0&&Q.iadd(this.m),Q},f.prototype.shl=function(X,Y){return this._verify1(X),this.imod(X.ushln(Y))},f.prototype.imul=function(X,Y){return this._verify2(X,Y),this.imod(X.imul(Y))},f.prototype.mul=function(X,Y){return this._verify2(X,Y),this.imod(X.mul(Y))},f.prototype.isqr=function(X){return this.imul(X,X.clone())},f.prototype.sqr=function(X){return this.mul(X,X)},f.prototype.sqrt=function(X){if(X.isZero())return X.clone();var Y=this.m.andln(3);if(j(Y%2===1),Y===3){var Q=this.m.add(new H(1)).iushrn(2);return this.pow(X,Q)}for(var J=this.m.subn(1),F=0;!J.isZero()&&J.andln(1)===0;)F++,J.iushrn(1);j(!J.isZero());var W=new H(1).toRed(this),Z=W.redNeg(),C=this.m.subn(1).iushrn(1),K=this.m.bitLength();for(K=new H(2*K*K).toRed(this);this.pow(K,C).cmp(Z)!==0;)K.redIAdd(Z);for(var G=this.pow(K,J),R=this.pow(X,J.addn(1).iushrn(1)),L=this.pow(X,J),_=F;L.cmp(W)!==0;){for(var s=L,r=0;s.cmp(W)!==0;r++)s=s.redSqr();j(r<_);var Y0=this.pow(G,new H(1).iushln(_-r-1));R=R.redMul(Y0),G=Y0.redSqr(),L=L.redMul(G),_=r}return R},f.prototype.invm=function(X){var Y=X._invmp(this.m);return Y.negative!==0?(Y.negative=0,this.imod(Y).redNeg()):this.imod(Y)},f.prototype.pow=function(X,Y){if(Y.isZero())return new H(1).toRed(this);if(Y.cmpn(1)===0)return X.clone();var Q=4,J=new Array(1<<Q);J[0]=new H(1).toRed(this),J[1]=X;for(var F=2;F<J.length;F++)J[F]=this.mul(J[F-1],X);var W=J[0],Z=0,C=0,K=Y.bitLength()%26;for(K===0&&(K=26),F=Y.length-1;F>=0;F--){for(var G=Y.words[F],R=K-1;R>=0;R--){var L=G>>R&1;if(W!==J[0]&&(W=this.sqr(W)),L===0&&Z===0){C=0;continue}Z<<=1,Z|=L,C++,!(C!==Q&&(F!==0||R!==0))&&(W=this.mul(W,J[Z]),C=0,Z=0)}K=26}return W},f.prototype.convertTo=function(X){var Y=X.umod(this.m);return Y===X?Y.clone():Y},f.prototype.convertFrom=function(X){var Y=X.clone();return Y.red=null,Y},H.mont=function(X){return new W0(X)};function W0(X){f.call(this,X),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new H(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)}S(W0,f),W0.prototype.convertTo=function(X){return this.imod(X.ushln(this.shift))},W0.prototype.convertFrom=function(X){var Y=this.imod(X.mul(this.rinv));return Y.red=null,Y},W0.prototype.imul=function(X,Y){if(X.isZero()||Y.isZero())return X.words[0]=0,X.length=1,X;var Q=X.imul(Y),J=Q.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),F=Q.isub(J).iushrn(this.shift),W=F;return F.cmp(this.m)>=0?W=F.isub(this.m):F.cmpn(0)<0&&(W=F.iadd(this.m)),W._forceRed(this)},W0.prototype.mul=function(X,Y){if(X.isZero()||Y.isZero())return new H(0)._forceRed(this);var Q=X.mul(Y),J=Q.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),F=Q.isub(J).iushrn(this.shift),W=F;return F.cmp(this.m)>=0?W=F.isub(this.m):F.cmpn(0)<0&&(W=F.iadd(this.m)),W._forceRed(this)},W0.prototype.invm=function(X){var Y=this.imod(X._invmp(this.m).mul(this.r2));return Y._forceRed(this)}})(typeof g>"u"||g,l)}),h6=C0((l,g)=>{var E=g9(),A=d0().Buffer;function j(S,H){return A.from(S.toRed(E.mont(H.modulus)).redPow(new E(H.publicExponent)).fromRed().toArray())}g.exports=j}),w8=C0((l,g)=>{var E=Q9(),A=g5(),j=u5(),S=d6(),H=l6(),P=g9(),k=h6(),z=S9(),V=d0().Buffer;g.exports=function(U,N,I){var M;U.padding?M=U.padding:I?M=1:M=4;var x=E(U),v;if(M===4)v=$(x,N);else if(M===1)v=T(x,N,I);else if(M===3){if(v=new P(N),v.cmp(x.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return I?z(v,x):k(v,x)};function $(U,N){var I=U.modulus.byteLength(),M=N.length,x=j("sha1").update(V.alloc(0)).digest(),v=x.length,y=2*v;if(M>I-y-2)throw new Error("message too long");var p=V.alloc(I-M-y-2),c=I-v-1,n=A(v),i=H(V.concat([x,p,V.alloc(1,1),N],c),S(n,c)),Q0=H(n,S(i,v));return new P(V.concat([V.alloc(1),Q0,i],I))}function T(U,N,I){var M=N.length,x=U.modulus.byteLength();if(M>x-11)throw new Error("message too long");var v;return I?v=V.alloc(x-M-3,255):v=D(x-M-3),new P(V.concat([V.from([0,I?1:2]),v,V.alloc(1),N],x))}function D(U){for(var N=V.allocUnsafe(U),I=0,M=A(U*2),x=0,v;I<U;)x===M.length&&(M=A(U*2),x=0),v=M[x++],v&&(N[I++]=v);return N}}),y8=C0((l,g)=>{var E=Q9(),A=d6(),j=l6(),S=g9(),H=S9(),P=u5(),k=h6(),z=d0().Buffer;g.exports=function(D,U,N){var I;D.padding?I=D.padding:N?I=1:I=4;var M=E(D),x=M.modulus.byteLength();if(U.length>x||new S(U).cmp(M.modulus)>=0)throw new Error("decryption error");var v;N?v=k(new S(U),M):v=H(U,M);var y=z.alloc(x-v.length);if(v=z.concat([y,v],x),I===4)return V(M,v);if(I===1)return $(M,v,N);if(I===3)return v;throw new Error("unknown padding")};function V(D,U){var N=D.modulus.byteLength(),I=P("sha1").update(z.alloc(0)).digest(),M=I.length;if(U[0]!==0)throw new Error("decryption error");var x=U.slice(1,M+1),v=U.slice(M+1),y=j(x,A(v,M)),p=j(v,A(y,N-M-1));if(T(I,p.slice(0,M)))throw new Error("decryption error");for(var c=M;p[c]===0;)c++;if(p[c++]!==1)throw new Error("decryption error");return p.slice(c)}function $(D,U,N){for(var I=U.slice(0,2),M=2,x=0;U[M++]!==0;)if(M>=U.length){x++;break}var v=U.slice(2,M-1);if((I.toString("hex")!=="0002"&&!N||I.toString("hex")!=="0001"&&N)&&x++,v.length<8&&x++,x)throw new Error("decryption error");return U.slice(M)}function T(D,U){D=z.from(D),U=z.from(U);var N=0,I=D.length;D.length!==U.length&&(N++,I=Math.min(D.length,U.length));for(var M=-1;++M<I;)N+=D[M]^U[M];return N}}),g8=C0((l)=>{l.publicEncrypt=w8(),l.privateDecrypt=y8(),l.privateEncrypt=function(g,E){return l.publicEncrypt(g,E,!0)},l.publicDecrypt=function(g,E){return l.privateDecrypt(g,E,!0)}}),m8=C0((l)=>{function g(){throw new Error(`secure random number generation not supported by this browser
5
5
  use chrome, FireFox or Internet Explorer 11`)}var E=d0(),A=g5(),j=E.Buffer,S=E.kMaxLength,H=global.crypto||global.msCrypto,P=Math.pow(2,32)-1;function k(D,U){if(typeof D!="number"||D!==D)throw new TypeError("offset must be a number");if(D>P||D<0)throw new TypeError("offset must be a uint32");if(D>S||D>U)throw new RangeError("offset out of range")}function z(D,U,N){if(typeof D!="number"||D!==D)throw new TypeError("size must be a number");if(D>P||D<0)throw new TypeError("size must be a uint32");if(D+U>N||D>S)throw new RangeError("buffer too small")}H&&H.getRandomValues?(l.randomFill=V,l.randomFillSync=T):(l.randomFill=g,l.randomFillSync=g);function V(D,U,N,I){if(!j.isBuffer(D)&&!(D instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof U=="function")I=U,U=0,N=D.length;else if(typeof N=="function")I=N,N=D.length-U;else if(typeof I!="function")throw new TypeError('"cb" argument must be a function');return k(U,D.length),z(N,U,D.length),$(D,U,N,I)}function $(D,U,N,I){var M=D.buffer,x=new Uint8Array(M,U,N);if(H.getRandomValues(x),I){process.nextTick(function(){I(null,D)});return}return D;var v}function T(D,U,N){if(typeof U>"u"&&(U=0),!j.isBuffer(D)&&!(D instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return k(U,D.length),N===void 0&&(N=D.length-U),z(N,U,D.length),$(D,U,N)}}),u6=C0((l)=>{l.randomBytes=l.rng=l.pseudoRandomBytes=l.prng=g5(),l.createHash=l.Hash=u5(),l.createHmac=l.Hmac=C6();var g=S7(),E=Object.keys(g),A=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(E);l.getHashes=function(){return A};var j=P6();l.pbkdf2=j.pbkdf2,l.pbkdf2Sync=j.pbkdf2Sync;var S=u7();l.Cipher=S.Cipher,l.createCipher=S.createCipher,l.Cipheriv=S.Cipheriv,l.createCipheriv=S.createCipheriv,l.Decipher=S.Decipher,l.createDecipher=S.createDecipher,l.Decipheriv=S.Decipheriv,l.createDecipheriv=S.createDecipheriv,l.getCiphers=S.getCiphers,l.listCiphers=S.listCiphers;var H=n7();l.DiffieHellmanGroup=H.DiffieHellmanGroup,l.createDiffieHellmanGroup=H.createDiffieHellmanGroup,l.getDiffieHellman=H.getDiffieHellman,l.createDiffieHellman=H.createDiffieHellman,l.DiffieHellman=H.DiffieHellman;var P=v8();l.createSign=P.createSign,l.Sign=P.Sign,l.createVerify=P.createVerify,l.Verify=P.Verify,l.createECDH=_8();var k=g8();l.publicEncrypt=k.publicEncrypt,l.privateEncrypt=k.privateEncrypt,l.publicDecrypt=k.publicDecrypt,l.privateDecrypt=k.privateDecrypt;var z=m8();l.randomFill=z.randomFill,l.randomFillSync=z.randomFillSync,l.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(`
@@ -10,4 +10,4 @@ use chrome, FireFox or Internet Explorer 11`)}var E=d0(),A=g5(),j=E.Buffer,S=E.k
10
10
  * @license MIT
11
11
  *//*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *//*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */import{generateMnemonic as c8,validateMnemonic as d8}from"@scure/bip39";import{wordlist as r6}from"@scure/bip39/wordlists/english";import{blake2bFinal as l8,blake2bInit as h8,blake2bUpdate as u8}from"blakejs";var i6=(l)=>{let g=l;if(!(g instanceof Buffer))g=Buffer.from(g,"hex");let E=h8(32);return u8(E,g),Array.from(l8(E)).map((A)=>A<16?`0${A.toString(16)}`:A.toString(16)).join("")},t6=(l,g,E,A,j)=>new Promise((S,H)=>{_5.pbkdf2(l,g,E,A,j,(P,k)=>{if(P)H(P);else S(k)})}),j4=async(l,g)=>{let E=_5.randomBytes(32),A=_5.randomBytes(16),j={c:262144,prf:"hmac-sha256",dklen:32,salt:E.toString("hex")},S="aes-128-ctr",H=await t6(Buffer.from(g),E,j.c,j.dklen,"sha256"),P=_5.createCipheriv("aes-128-ctr",H.subarray(0,16),A),k=Buffer.concat([P.update(Buffer.from(l,"utf8")),P.final()]);return{meta:"xchain-keystore",version:1,crypto:{cipher:"aes-128-ctr",cipherparams:{iv:A.toString("hex")},ciphertext:k.toString("hex"),kdf:"pbkdf2",kdfparams:j,mac:i6(Buffer.concat([H.subarray(16,32),Buffer.from(k)]))}}},P4=(l=12)=>{return c8(r6,l===12?128:256)},U4=(l)=>{return d8(l,r6)},V4=async(l,g)=>{switch(l.version){case 1:{let E=l.crypto.kdfparams,A=await t6(Buffer.from(g),Buffer.from(E.salt,"hex"),E.c,E.dklen,"sha256"),j=Buffer.from(l.crypto.ciphertext,"hex");if(i6(Buffer.concat([A.subarray(16,32),j]))!==l.crypto.mac)throw new Error("Invalid password");let H=_5.createDecipheriv(l.crypto.cipher,A.subarray(0,16),Buffer.from(l.crypto.cipherparams.iv,"hex"));return Buffer.concat([H.update(j),H.final()]).toString("utf8")}default:throw new Error("Unsupported keystore version")}};import{Chain as C5,NetworkDerivationPath as o8,WalletOption as s8,derivationPathToString as a8,ensureEVMApiKeys as f8,getRPCUrl as e6,setRequestClientConfig as n8,updatedLastIndex as r8}from"@swapkit/helpers";var i8=async({api:l,rpcUrl:g,chain:E,phrase:A,ethplorerApiKey:j,covalentApiKey:S,blockchairApiKey:H,derivationPath:P,stagenet:k})=>{switch(E){case C5.Arbitrum:case C5.Avalanche:case C5.Base:case C5.BinanceSmartChain:case C5.Ethereum:case C5.Optimism:case C5.Polygon:{let{HDNodeWallet:z,getProvider:V,getToolboxByChain:$}=await import("@swapkit/toolbox-evm"),T=f8({chain:E,covalentApiKey:S,ethplorerApiKey:j}),D=V(E,g),U=z.fromPhrase(A).connect(D),N={...T,api:l,provider:D,signer:U};return{address:U.address,walletMethods:$(E)(N)}}case C5.BitcoinCash:{let D=function({builder:N,utxos:I}){return I.forEach((M,x)=>{N.sign(x,$,void 0,65,M.witnessUtxo.value)}),N.build()},{BCHToolbox:z}=await import("@swapkit/toolbox-utxo"),V=z({rpcUrl:g,apiKey:H,apiClient:l}),$=await V.createKeysForPath({phrase:A,derivationPath:P}),T=V.getAddressFromKeys($),U={...V,transfer:(N)=>V.transfer({...N,from:T,signTransaction:D})};return{address:T,walletMethods:U}}case C5.Bitcoin:case C5.Dash:case C5.Dogecoin:case C5.Litecoin:{let{getToolboxByChain:z}=await import("@swapkit/toolbox-utxo"),V=z(E)({rpcUrl:g,apiKey:H,apiClient:l}),$=V.createKeysForPath({phrase:A,derivationPath:P}),T=V.getAddressFromKeys($);return{address:T,walletMethods:{...V,transfer:(D)=>V.transfer({...D,from:T,signTransaction:(U)=>U.signAllInputs($)})}}}case C5.Cosmos:case C5.Kujira:{let{getToolboxByChain:z}=await import("@swapkit/toolbox-cosmos"),V=z(E)({server:l,stagenet:k}),$=await V.getAddressFromMnemonic(A),T=await V.getSigner(A);return{address:$,walletMethods:{...V,transfer:(U)=>V.transfer({...U,signer:T})}}}case C5.Maya:case C5.THORChain:{let{getToolboxByChain:z}=await import("@swapkit/toolbox-cosmos"),V=z(E)({server:l,stagenet:k}),$=await V.getSigner(A),T=await V.getAddressFromMnemonic(A);return{address:T,walletMethods:{...V,deposit:({assetValue:D,memo:U})=>V.deposit({assetValue:D,memo:U,from:T,signer:$}),transfer:(D)=>V.transfer({...D,from:T,signer:$}),signMessage:async(D)=>{let U=await V.createPrivateKeyFromPhrase(A);return V.signWithPrivateKey({privateKey:U,message:D})}}}}case C5.Polkadot:case C5.Chainflip:{let{Network:z,getToolboxByChain:V,createKeyring:$}=await import("@swapkit/toolbox-substrate"),T=await $(A,z[E].prefix),D=await V(E,{signer:T,providerUrl:E===C5.Polkadot?e6(C5.Polkadot):e6(C5.Chainflip)});return{address:T.address,walletMethods:D}}case C5.Solana:{let{SOLToolbox:z}=await import("@swapkit/toolbox-solana"),V=z({rpcUrl:g}),$=V.createKeysForPath({phrase:A,derivationPath:P});return{address:V.getAddressFromKeys($),walletMethods:{...V,transfer:(T)=>V.transfer({...T,fromKeypair:$})}}}default:throw new Error(`Unsupported chain ${E}`)}};function t8({addChain:l,apis:g,rpcUrls:E,config:{thorswapApiKey:A,covalentApiKey:j,ethplorerApiKey:S,blockchairApiKey:H,stagenet:P}}){return async function k(z,V,$){n8({apiKey:A});let T=z.map(async(D)=>{let U=typeof $==="number"?$:0,N=$&&typeof $==="object"?$[D]:void 0,[I,M,x,v,y]=o8[D],p=N||r8(D===C5.Solana?[I,M,x,v]:[I,M,x,v,y],U),c=a8(p),{address:n,walletMethods:i}=await i8({derivationPath:c,chain:D,api:g[D],rpcUrl:E[D],covalentApiKey:j,ethplorerApiKey:S,phrase:V,blockchairApiKey:H,stagenet:P});l({...i,chain:D,address:n,balance:[],walletType:s8.KEYSTORE})});return await Promise.all(T),!0}}var e8={connectKeystore:t8};export{U4 as validatePhrase,e8 as keystoreWallet,P4 as generatePhrase,j4 as encryptToKeyStore,V4 as decryptFromKeystore};
12
12
 
13
- //# debugId=143425A99C99D93864756E2164756E21
13
+ //# debugId=E46F77076AD0F7D664756E2164756E21