pyrepl-web 0.1.9 → 0.1.12

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.
@@ -0,0 +1,16 @@
1
+ import{b as h0,c as iY,d as $X,e as KX,f as GJ}from"./chunk-cmrefyz7.js";var FU={};$X(FU,{transcode:()=>qY,resolveObjectURL:()=>MY,kStringMaxLength:()=>zZ,kMaxLength:()=>rU,isUtf8:()=>SY,isAscii:()=>RY,default:()=>PY,constants:()=>rQ,btoa:()=>nQ,atob:()=>mQ,INSPECT_MAX_BYTES:()=>DZ,File:()=>sQ,Buffer:()=>$0,Blob:()=>tQ});function uQ(I){var O=I.length;if(O%4>0)throw Error("Invalid string. Length must be a multiple of 4");var F=I.indexOf("=");if(F===-1)F=O;var T=F===O?0:4-F%4;return[F,T]}function bQ(I,O){return(I+O)*3/4-O}function lQ(I){var O,F=uQ(I),T=F[0],H=F[1],E=new Uint8Array(bQ(T,H)),V=0,P=H>0?T-4:T,q;for(q=0;q<P;q+=4)O=PU[I.charCodeAt(q)]<<18|PU[I.charCodeAt(q+1)]<<12|PU[I.charCodeAt(q+2)]<<6|PU[I.charCodeAt(q+3)],E[V++]=O>>16&255,E[V++]=O>>8&255,E[V++]=O&255;if(H===2)O=PU[I.charCodeAt(q)]<<2|PU[I.charCodeAt(q+1)]>>4,E[V++]=O&255;if(H===1)O=PU[I.charCodeAt(q)]<<10|PU[I.charCodeAt(q+1)]<<4|PU[I.charCodeAt(q+2)]>>2,E[V++]=O>>8&255,E[V++]=O&255;return E}function dQ(I){return jU[I>>18&63]+jU[I>>12&63]+jU[I>>6&63]+jU[I&63]}function oQ(I,O,F){var T,H=[];for(var E=O;E<F;E+=3)T=(I[E]<<16&16711680)+(I[E+1]<<8&65280)+(I[E+2]&255),H.push(dQ(T));return H.join("")}function WZ(I){var O,F=I.length,T=F%3,H=[],E=16383;for(var V=0,P=F-T;V<P;V+=E)H.push(oQ(I,V,V+E>P?P:V+E));if(T===1)O=I[F-1],H.push(jU[O>>2]+jU[O<<4&63]+"==");else if(T===2)O=(I[F-2]<<8)+I[F-1],H.push(jU[O>>10]+jU[O>>4&63]+jU[O<<2&63]+"=");return H.join("")}function OX(I,O,F,T,H){var E,V,P=H*8-T-1,q=(1<<P)-1,L=q>>1,z=-7,C=F?H-1:0,D=F?-1:1,S=I[O+C];C+=D,E=S&(1<<-z)-1,S>>=-z,z+=P;for(;z>0;E=E*256+I[O+C],C+=D,z-=8);V=E&(1<<-z)-1,E>>=-z,z+=T;for(;z>0;V=V*256+I[O+C],C+=D,z-=8);if(E===0)E=1-L;else if(E===q)return V?NaN:(S?-1:1)*(1/0);else V=V+Math.pow(2,T),E=E-L;return(S?-1:1)*V*Math.pow(2,E-T)}function TZ(I,O,F,T,H,E){var V,P,q,L=E*8-H-1,z=(1<<L)-1,C=z>>1,D=H===23?Math.pow(2,-24)-Math.pow(2,-77):0,S=T?0:E-1,R=T?1:-1,v=O<0||O===0&&1/O<0?1:0;if(O=Math.abs(O),isNaN(O)||O===1/0)P=isNaN(O)?1:0,V=z;else{if(V=Math.floor(Math.log(O)/Math.LN2),O*(q=Math.pow(2,-V))<1)V--,q*=2;if(V+C>=1)O+=D/q;else O+=D*Math.pow(2,1-C);if(O*q>=2)V++,q/=2;if(V+C>=z)P=0,V=z;else if(V+C>=1)P=(O*q-1)*Math.pow(2,H),V=V+C;else P=O*Math.pow(2,C-1)*Math.pow(2,H),V=0}for(;H>=8;I[F+S]=P&255,S+=R,P/=256,H-=8);V=V<<H|P,L+=H;for(;L>0;I[F+S]=V&255,S+=R,V/=256,L-=8);I[F+S-R]|=v*128}function BU(I){if(I>rU)throw RangeError('The value "'+I+'" is invalid for option "size"');let O=new Uint8Array(I);return Object.setPrototypeOf(O,$0.prototype),O}function wX(I,O,F){return class extends F{constructor(){super();Object.defineProperty(this,"message",{value:O.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${I}]`,this.stack,delete this.name}get code(){return I}set code(T){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:T,writable:!0})}toString(){return`${this.name} [${I}]: ${this.message}`}}}function $0(I,O,F){if(typeof I==="number"){if(typeof O==="string")throw TypeError('The "string" argument must be of type string. Received type number');return yX(I)}return LZ(I,O,F)}function LZ(I,O,F){if(typeof I==="string")return UY(I,O);if(ArrayBuffer.isView(I))return XY(I);if(I==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I);if(vU(I,ArrayBuffer)||I&&vU(I.buffer,ArrayBuffer))return NX(I,O,F);if(typeof SharedArrayBuffer<"u"&&(vU(I,SharedArrayBuffer)||I&&vU(I.buffer,SharedArrayBuffer)))return NX(I,O,F);if(typeof I==="number")throw TypeError('The "value" argument must not be of type number. Received type number');let T=I.valueOf&&I.valueOf();if(T!=null&&T!==I)return $0.from(T,O,F);let H=ZY(I);if(H)return H;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof I[Symbol.toPrimitive]==="function")return $0.from(I[Symbol.toPrimitive]("string"),O,F);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I)}function EZ(I){if(typeof I!=="number")throw TypeError('"size" argument must be of type number');else if(I<0)throw RangeError('The value "'+I+'" is invalid for option "size"')}function iQ(I,O,F){if(EZ(I),I<=0)return BU(I);if(O!==void 0)return typeof F==="string"?BU(I).fill(O,F):BU(I).fill(O);return BU(I)}function yX(I){return EZ(I),BU(I<0?0:fX(I)|0)}function UY(I,O){if(typeof O!=="string"||O==="")O="utf8";if(!$0.isEncoding(O))throw TypeError("Unknown encoding: "+O);let F=MZ(I,O)|0,T=BU(F),H=T.write(I,O);if(H!==F)T=T.slice(0,H);return T}function xX(I){let O=I.length<0?0:fX(I.length)|0,F=BU(O);for(let T=0;T<O;T+=1)F[T]=I[T]&255;return F}function XY(I){if(vU(I,Uint8Array)){let O=new Uint8Array(I);return NX(O.buffer,O.byteOffset,O.byteLength)}return xX(I)}function NX(I,O,F){if(O<0||I.byteLength<O)throw RangeError('"offset" is outside of buffer bounds');if(I.byteLength<O+(F||0))throw RangeError('"length" is outside of buffer bounds');let T;if(O===void 0&&F===void 0)T=new Uint8Array(I);else if(F===void 0)T=new Uint8Array(I,O);else T=new Uint8Array(I,O,F);return Object.setPrototypeOf(T,$0.prototype),T}function ZY(I){if($0.isBuffer(I)){let O=fX(I.length)|0,F=BU(O);if(F.length===0)return F;return I.copy(F,0,0,O),F}if(I.length!==void 0){if(typeof I.length!=="number"||Number.isNaN(I.length))return BU(0);return xX(I)}if(I.type==="Buffer"&&Array.isArray(I.data))return xX(I.data)}function fX(I){if(I>=rU)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+rU.toString(16)+" bytes");return I|0}function MZ(I,O){if($0.isBuffer(I))return I.length;if(ArrayBuffer.isView(I)||vU(I,ArrayBuffer))return I.byteLength;if(typeof I!=="string")throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof I);let F=I.length,T=arguments.length>2&&arguments[2]===!0;if(!T&&F===0)return 0;let H=!1;for(;;)switch(O){case"ascii":case"latin1":case"binary":return F;case"utf8":case"utf-8":return gX(I).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F*2;case"hex":return F>>>1;case"base64":return BZ(I).length;default:if(H)return T?-1:gX(I).length;O=(""+O).toLowerCase(),H=!0}}function QY(I,O,F){let T=!1;if(O===void 0||O<0)O=0;if(O>this.length)return"";if(F===void 0||F>this.length)F=this.length;if(F<=0)return"";if(F>>>=0,O>>>=0,F<=O)return"";if(!I)I="utf8";while(!0)switch(I){case"hex":return FY(this,O,F);case"utf8":case"utf-8":return RZ(this,O,F);case"ascii":return OY(this,O,F);case"latin1":case"binary":return WY(this,O,F);case"base64":return $Y(this,O,F);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return HY(this,O,F);default:if(T)throw TypeError("Unknown encoding: "+I);I=(I+"").toLowerCase(),T=!0}}function hU(I,O,F){let T=I[O];I[O]=I[F],I[F]=T}function SZ(I,O,F,T,H){if(I.length===0)return-1;if(typeof F==="string")T=F,F=0;else if(F>2147483647)F=2147483647;else if(F<-2147483648)F=-2147483648;if(F=+F,Number.isNaN(F))F=H?0:I.length-1;if(F<0)F=I.length+F;if(F>=I.length)if(H)return-1;else F=I.length-1;else if(F<0)if(H)F=0;else return-1;if(typeof O==="string")O=$0.from(O,T);if($0.isBuffer(O)){if(O.length===0)return-1;return HZ(I,O,F,T,H)}else if(typeof O==="number"){if(O=O&255,typeof Uint8Array.prototype.indexOf==="function")if(H)return Uint8Array.prototype.indexOf.call(I,O,F);else return Uint8Array.prototype.lastIndexOf.call(I,O,F);return HZ(I,[O],F,T,H)}throw TypeError("val must be string, number or Buffer")}function HZ(I,O,F,T,H){let E=1,V=I.length,P=O.length;if(T!==void 0){if(T=String(T).toLowerCase(),T==="ucs2"||T==="ucs-2"||T==="utf16le"||T==="utf-16le"){if(I.length<2||O.length<2)return-1;E=2,V/=2,P/=2,F/=2}}function q(z,C){if(E===1)return z[C];else return z.readUInt16BE(C*E)}let L;if(H){let z=-1;for(L=F;L<V;L++)if(q(I,L)===q(O,z===-1?0:L-z)){if(z===-1)z=L;if(L-z+1===P)return z*E}else{if(z!==-1)L-=L-z;z=-1}}else{if(F+P>V)F=V-P;for(L=F;L>=0;L--){let z=!0;for(let C=0;C<P;C++)if(q(I,L+C)!==q(O,C)){z=!1;break}if(z)return L}}return-1}function YY(I,O,F,T){F=Number(F)||0;let H=I.length-F;if(!T)T=H;else if(T=Number(T),T>H)T=H;let E=O.length;if(T>E/2)T=E/2;let V;for(V=0;V<T;++V){let P=parseInt(O.substr(V*2,2),16);if(Number.isNaN(P))return V;I[F+V]=P}return V}function JY(I,O,F,T){return WX(gX(O,I.length-F),I,F,T)}function VY(I,O,F,T){return WX(DY(O),I,F,T)}function GY(I,O,F,T){return WX(BZ(O),I,F,T)}function IY(I,O,F,T){return WX(zY(O,I.length-F),I,F,T)}function $Y(I,O,F){if(O===0&&F===I.length)return WZ(I);else return WZ(I.slice(O,F))}function RZ(I,O,F){F=Math.min(I.length,F);let T=[],H=O;while(H<F){let E=I[H],V=null,P=E>239?4:E>223?3:E>191?2:1;if(H+P<=F){let q,L,z,C;switch(P){case 1:if(E<128)V=E;break;case 2:if(q=I[H+1],(q&192)===128){if(C=(E&31)<<6|q&63,C>127)V=C}break;case 3:if(q=I[H+1],L=I[H+2],(q&192)===128&&(L&192)===128){if(C=(E&15)<<12|(q&63)<<6|L&63,C>2047&&(C<55296||C>57343))V=C}break;case 4:if(q=I[H+1],L=I[H+2],z=I[H+3],(q&192)===128&&(L&192)===128&&(z&192)===128){if(C=(E&15)<<18|(q&63)<<12|(L&63)<<6|z&63,C>65535&&C<1114112)V=C}}}if(V===null)V=65533,P=1;else if(V>65535)V-=65536,T.push(V>>>10&1023|55296),V=56320|V&1023;T.push(V),H+=P}return KY(T)}function KY(I){let O=I.length;if(O<=CZ)return String.fromCharCode.apply(String,I);let F="",T=0;while(T<O)F+=String.fromCharCode.apply(String,I.slice(T,T+=CZ));return F}function OY(I,O,F){let T="";F=Math.min(I.length,F);for(let H=O;H<F;++H)T+=String.fromCharCode(I[H]&127);return T}function WY(I,O,F){let T="";F=Math.min(I.length,F);for(let H=O;H<F;++H)T+=String.fromCharCode(I[H]);return T}function FY(I,O,F){let T=I.length;if(!O||O<0)O=0;if(!F||F<0||F>T)F=T;let H="";for(let E=O;E<F;++E)H+=LY[I[E]];return H}function HY(I,O,F){let T=I.slice(O,F),H="";for(let E=0;E<T.length-1;E+=2)H+=String.fromCharCode(T[E]+T[E+1]*256);return H}function WU(I,O,F){if(I%1!==0||I<0)throw RangeError("offset is not uint");if(I+O>F)throw RangeError("Trying to access beyond buffer length")}function EU(I,O,F,T,H,E){if(!$0.isBuffer(I))throw TypeError('"buffer" argument must be a Buffer instance');if(O>H||O<E)throw RangeError('"value" argument is out of bounds');if(F+T>I.length)throw RangeError("Index out of range")}function qZ(I,O,F,T,H){_Z(O,T,H,I,F,7);let E=Number(O&BigInt(4294967295));I[F++]=E,E=E>>8,I[F++]=E,E=E>>8,I[F++]=E,E=E>>8,I[F++]=E;let V=Number(O>>BigInt(32)&BigInt(4294967295));return I[F++]=V,V=V>>8,I[F++]=V,V=V>>8,I[F++]=V,V=V>>8,I[F++]=V,F}function PZ(I,O,F,T,H){_Z(O,T,H,I,F,7);let E=Number(O&BigInt(4294967295));I[F+7]=E,E=E>>8,I[F+6]=E,E=E>>8,I[F+5]=E,E=E>>8,I[F+4]=E;let V=Number(O>>BigInt(32)&BigInt(4294967295));return I[F+3]=V,V=V>>8,I[F+2]=V,V=V>>8,I[F+1]=V,V=V>>8,I[F]=V,F+8}function kZ(I,O,F,T,H,E){if(F+T>I.length)throw RangeError("Index out of range");if(F<0)throw RangeError("Index out of range")}function jZ(I,O,F,T,H){if(O=+O,F=F>>>0,!H)kZ(I,O,F,4,340282346638528860000000000000000000000,-340282346638528860000000000000000000000);return TZ(I,O,F,T,23,4),F+4}function vZ(I,O,F,T,H){if(O=+O,F=F>>>0,!H)kZ(I,O,F,8,179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,-179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000);return TZ(I,O,F,T,52,8),F+8}function AZ(I){let O="",F=I.length,T=I[0]==="-"?1:0;for(;F>=T+4;F-=3)O=`_${I.slice(F-3,F)}${O}`;return`${I.slice(0,F)}${O}`}function CY(I,O,F){if(oU(O,"offset"),I[O]===void 0||I[O+F]===void 0)aU(O,I.length-(F+1))}function _Z(I,O,F,T,H,E){if(I>F||I<O){let V=typeof O==="bigint"?"n":"",P;if(E>3)if(O===0||O===BigInt(0))P=`>= 0${V} and < 2${V} ** ${(E+1)*8}${V}`;else P=`>= -(2${V} ** ${(E+1)*8-1}${V}) and < 2 ** ${(E+1)*8-1}${V}`;else P=`>= ${O}${V} and <= ${F}${V}`;throw new BX("value",P,I)}CY(T,H,E)}function oU(I,O){if(typeof I!=="number")throw new eQ(O,"number",I)}function aU(I,O,F){if(Math.floor(I)!==I)throw oU(I,F),new BX(F||"offset","an integer",I);if(O<0)throw new aQ;throw new BX(F||"offset",`>= ${F?1:0} and <= ${O}`,I)}function TY(I){if(I=I.split("=")[0],I=I.trim().replace(AY,""),I.length<2)return"";while(I.length%4!==0)I=I+"=";return I}function gX(I,O){O=O||1/0;let F,T=I.length,H=null,E=[];for(let V=0;V<T;++V){if(F=I.charCodeAt(V),F>55295&&F<57344){if(!H){if(F>56319){if((O-=3)>-1)E.push(239,191,189);continue}else if(V+1===T){if((O-=3)>-1)E.push(239,191,189);continue}H=F;continue}if(F<56320){if((O-=3)>-1)E.push(239,191,189);H=F;continue}F=(H-55296<<10|F-56320)+65536}else if(H){if((O-=3)>-1)E.push(239,191,189)}if(H=null,F<128){if((O-=1)<0)break;E.push(F)}else if(F<2048){if((O-=2)<0)break;E.push(F>>6|192,F&63|128)}else if(F<65536){if((O-=3)<0)break;E.push(F>>12|224,F>>6&63|128,F&63|128)}else if(F<1114112){if((O-=4)<0)break;E.push(F>>18|240,F>>12&63|128,F>>6&63|128,F&63|128)}else throw Error("Invalid code point")}return E}function DY(I){let O=[];for(let F=0;F<I.length;++F)O.push(I.charCodeAt(F)&255);return O}function zY(I,O){let F,T,H,E=[];for(let V=0;V<I.length;++V){if((O-=2)<0)break;F=I.charCodeAt(V),T=F>>8,H=F%256,E.push(H),E.push(T)}return E}function BZ(I){return lQ(TY(I))}function WX(I,O,F,T){let H;for(H=0;H<T;++H){if(H+F>=O.length||H>=I.length)break;O[H+F]=I[H]}return H}function vU(I,O){return I instanceof O||I!=null&&I.constructor!=null&&I.constructor.name!=null&&I.constructor.name===O.name}function wU(I){return typeof BigInt>"u"?EY:I}function EY(){throw Error("BigInt not supported")}function cX(I){return()=>{throw Error(I+" is not implemented for node:buffer browser polyfill")}}var jU,PU,_X="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",pU,OZ,FZ,DZ=50,rU=2147483647,zZ=536870888,nQ,mQ,sQ,tQ,rQ,aQ,eQ,BX,CZ=4096,AY,LY,MY,SY,RY=(I)=>{for(let O of I)if(O.charCodeAt(0)>127)return!1;return!0},qY,PY;var HU=KX(()=>{jU=[],PU=[];for(pU=0,OZ=_X.length;pU<OZ;++pU)jU[pU]=_X[pU],PU[_X.charCodeAt(pU)]=pU;PU[45]=62;PU[95]=63;FZ=typeof Symbol==="function"&&typeof Symbol.for==="function"?Symbol.for("nodejs.util.inspect.custom"):null,nQ=globalThis.btoa,mQ=globalThis.atob,sQ=globalThis.File,tQ=globalThis.Blob,rQ={MAX_LENGTH:rU,MAX_STRING_LENGTH:zZ};aQ=wX("ERR_BUFFER_OUT_OF_BOUNDS",function(I){if(I)return`${I} is outside of buffer bounds`;return"Attempt to access memory outside buffer bounds"},RangeError),eQ=wX("ERR_INVALID_ARG_TYPE",function(I,O){return`The "${I}" argument must be of type number. Received type ${typeof O}`},TypeError),BX=wX("ERR_OUT_OF_RANGE",function(I,O,F){let T=`The value of "${I}" is out of range.`,H=F;if(Number.isInteger(F)&&Math.abs(F)>4294967296)H=AZ(String(F));else if(typeof F==="bigint"){if(H=String(F),F>BigInt(2)**BigInt(32)||F<-(BigInt(2)**BigInt(32)))H=AZ(H);H+="n"}return T+=` It must be ${O}. Received ${H}`,T},RangeError);Object.defineProperty($0.prototype,"parent",{enumerable:!0,get:function(){if(!$0.isBuffer(this))return;return this.buffer}});Object.defineProperty($0.prototype,"offset",{enumerable:!0,get:function(){if(!$0.isBuffer(this))return;return this.byteOffset}});$0.poolSize=8192;$0.from=function(I,O,F){return LZ(I,O,F)};Object.setPrototypeOf($0.prototype,Uint8Array.prototype);Object.setPrototypeOf($0,Uint8Array);$0.alloc=function(I,O,F){return iQ(I,O,F)};$0.allocUnsafe=function(I){return yX(I)};$0.allocUnsafeSlow=function(I){return yX(I)};$0.isBuffer=function(I){return I!=null&&I._isBuffer===!0&&I!==$0.prototype};$0.compare=function(I,O){if(vU(I,Uint8Array))I=$0.from(I,I.offset,I.byteLength);if(vU(O,Uint8Array))O=$0.from(O,O.offset,O.byteLength);if(!$0.isBuffer(I)||!$0.isBuffer(O))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(I===O)return 0;let F=I.length,T=O.length;for(let H=0,E=Math.min(F,T);H<E;++H)if(I[H]!==O[H]){F=I[H],T=O[H];break}if(F<T)return-1;if(T<F)return 1;return 0};$0.isEncoding=function(I){switch(String(I).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}};$0.concat=function(I,O){if(!Array.isArray(I))throw TypeError('"list" argument must be an Array of Buffers');if(I.length===0)return $0.alloc(0);let F;if(O===void 0){O=0;for(F=0;F<I.length;++F)O+=I[F].length}let T=$0.allocUnsafe(O),H=0;for(F=0;F<I.length;++F){let E=I[F];if(vU(E,Uint8Array))if(H+E.length>T.length){if(!$0.isBuffer(E))E=$0.from(E);E.copy(T,H)}else Uint8Array.prototype.set.call(T,E,H);else if(!$0.isBuffer(E))throw TypeError('"list" argument must be an Array of Buffers');else E.copy(T,H);H+=E.length}return T};$0.byteLength=MZ;$0.prototype._isBuffer=!0;$0.prototype.swap16=function(){let I=this.length;if(I%2!==0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let O=0;O<I;O+=2)hU(this,O,O+1);return this};$0.prototype.swap32=function(){let I=this.length;if(I%4!==0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let O=0;O<I;O+=4)hU(this,O,O+3),hU(this,O+1,O+2);return this};$0.prototype.swap64=function(){let I=this.length;if(I%8!==0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let O=0;O<I;O+=8)hU(this,O,O+7),hU(this,O+1,O+6),hU(this,O+2,O+5),hU(this,O+3,O+4);return this};$0.prototype.toString=function(){let I=this.length;if(I===0)return"";if(arguments.length===0)return RZ(this,0,I);return QY.apply(this,arguments)};$0.prototype.toLocaleString=$0.prototype.toString;$0.prototype.equals=function(I){if(!$0.isBuffer(I))throw TypeError("Argument must be a Buffer");if(this===I)return!0;return $0.compare(this,I)===0};$0.prototype.inspect=function(){let I="",O=DZ;if(I=this.toString("hex",0,O).replace(/(.{2})/g,"$1 ").trim(),this.length>O)I+=" ... ";return"<Buffer "+I+">"};if(FZ)$0.prototype[FZ]=$0.prototype.inspect;$0.prototype.compare=function(I,O,F,T,H){if(vU(I,Uint8Array))I=$0.from(I,I.offset,I.byteLength);if(!$0.isBuffer(I))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof I);if(O===void 0)O=0;if(F===void 0)F=I?I.length:0;if(T===void 0)T=0;if(H===void 0)H=this.length;if(O<0||F>I.length||T<0||H>this.length)throw RangeError("out of range index");if(T>=H&&O>=F)return 0;if(T>=H)return-1;if(O>=F)return 1;if(O>>>=0,F>>>=0,T>>>=0,H>>>=0,this===I)return 0;let E=H-T,V=F-O,P=Math.min(E,V),q=this.slice(T,H),L=I.slice(O,F);for(let z=0;z<P;++z)if(q[z]!==L[z]){E=q[z],V=L[z];break}if(E<V)return-1;if(V<E)return 1;return 0};$0.prototype.includes=function(I,O,F){return this.indexOf(I,O,F)!==-1};$0.prototype.indexOf=function(I,O,F){return SZ(this,I,O,F,!0)};$0.prototype.lastIndexOf=function(I,O,F){return SZ(this,I,O,F,!1)};$0.prototype.write=function(I,O,F,T){if(O===void 0)T="utf8",F=this.length,O=0;else if(F===void 0&&typeof O==="string")T=O,F=this.length,O=0;else if(isFinite(O))if(O=O>>>0,isFinite(F)){if(F=F>>>0,T===void 0)T="utf8"}else T=F,F=void 0;else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let H=this.length-O;if(F===void 0||F>H)F=H;if(I.length>0&&(F<0||O<0)||O>this.length)throw RangeError("Attempt to write outside buffer bounds");if(!T)T="utf8";let E=!1;for(;;)switch(T){case"hex":return YY(this,I,O,F);case"utf8":case"utf-8":return JY(this,I,O,F);case"ascii":case"latin1":case"binary":return VY(this,I,O,F);case"base64":return GY(this,I,O,F);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return IY(this,I,O,F);default:if(E)throw TypeError("Unknown encoding: "+T);T=(""+T).toLowerCase(),E=!0}};$0.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};$0.prototype.slice=function(I,O){let F=this.length;if(I=~~I,O=O===void 0?F:~~O,I<0){if(I+=F,I<0)I=0}else if(I>F)I=F;if(O<0){if(O+=F,O<0)O=0}else if(O>F)O=F;if(O<I)O=I;let T=this.subarray(I,O);return Object.setPrototypeOf(T,$0.prototype),T};$0.prototype.readUintLE=$0.prototype.readUIntLE=function(I,O,F){if(I=I>>>0,O=O>>>0,!F)WU(I,O,this.length);let T=this[I],H=1,E=0;while(++E<O&&(H*=256))T+=this[I+E]*H;return T};$0.prototype.readUintBE=$0.prototype.readUIntBE=function(I,O,F){if(I=I>>>0,O=O>>>0,!F)WU(I,O,this.length);let T=this[I+--O],H=1;while(O>0&&(H*=256))T+=this[I+--O]*H;return T};$0.prototype.readUint8=$0.prototype.readUInt8=function(I,O){if(I=I>>>0,!O)WU(I,1,this.length);return this[I]};$0.prototype.readUint16LE=$0.prototype.readUInt16LE=function(I,O){if(I=I>>>0,!O)WU(I,2,this.length);return this[I]|this[I+1]<<8};$0.prototype.readUint16BE=$0.prototype.readUInt16BE=function(I,O){if(I=I>>>0,!O)WU(I,2,this.length);return this[I]<<8|this[I+1]};$0.prototype.readUint32LE=$0.prototype.readUInt32LE=function(I,O){if(I=I>>>0,!O)WU(I,4,this.length);return(this[I]|this[I+1]<<8|this[I+2]<<16)+this[I+3]*16777216};$0.prototype.readUint32BE=$0.prototype.readUInt32BE=function(I,O){if(I=I>>>0,!O)WU(I,4,this.length);return this[I]*16777216+(this[I+1]<<16|this[I+2]<<8|this[I+3])};$0.prototype.readBigUInt64LE=wU(function(I){I=I>>>0,oU(I,"offset");let O=this[I],F=this[I+7];if(O===void 0||F===void 0)aU(I,this.length-8);let T=O+this[++I]*256+this[++I]*65536+this[++I]*16777216,H=this[++I]+this[++I]*256+this[++I]*65536+F*16777216;return BigInt(T)+(BigInt(H)<<BigInt(32))});$0.prototype.readBigUInt64BE=wU(function(I){I=I>>>0,oU(I,"offset");let O=this[I],F=this[I+7];if(O===void 0||F===void 0)aU(I,this.length-8);let T=O*16777216+this[++I]*65536+this[++I]*256+this[++I],H=this[++I]*16777216+this[++I]*65536+this[++I]*256+F;return(BigInt(T)<<BigInt(32))+BigInt(H)});$0.prototype.readIntLE=function(I,O,F){if(I=I>>>0,O=O>>>0,!F)WU(I,O,this.length);let T=this[I],H=1,E=0;while(++E<O&&(H*=256))T+=this[I+E]*H;if(H*=128,T>=H)T-=Math.pow(2,8*O);return T};$0.prototype.readIntBE=function(I,O,F){if(I=I>>>0,O=O>>>0,!F)WU(I,O,this.length);let T=O,H=1,E=this[I+--T];while(T>0&&(H*=256))E+=this[I+--T]*H;if(H*=128,E>=H)E-=Math.pow(2,8*O);return E};$0.prototype.readInt8=function(I,O){if(I=I>>>0,!O)WU(I,1,this.length);if(!(this[I]&128))return this[I];return(255-this[I]+1)*-1};$0.prototype.readInt16LE=function(I,O){if(I=I>>>0,!O)WU(I,2,this.length);let F=this[I]|this[I+1]<<8;return F&32768?F|4294901760:F};$0.prototype.readInt16BE=function(I,O){if(I=I>>>0,!O)WU(I,2,this.length);let F=this[I+1]|this[I]<<8;return F&32768?F|4294901760:F};$0.prototype.readInt32LE=function(I,O){if(I=I>>>0,!O)WU(I,4,this.length);return this[I]|this[I+1]<<8|this[I+2]<<16|this[I+3]<<24};$0.prototype.readInt32BE=function(I,O){if(I=I>>>0,!O)WU(I,4,this.length);return this[I]<<24|this[I+1]<<16|this[I+2]<<8|this[I+3]};$0.prototype.readBigInt64LE=wU(function(I){I=I>>>0,oU(I,"offset");let O=this[I],F=this[I+7];if(O===void 0||F===void 0)aU(I,this.length-8);let T=this[I+4]+this[I+5]*256+this[I+6]*65536+(F<<24);return(BigInt(T)<<BigInt(32))+BigInt(O+this[++I]*256+this[++I]*65536+this[++I]*16777216)});$0.prototype.readBigInt64BE=wU(function(I){I=I>>>0,oU(I,"offset");let O=this[I],F=this[I+7];if(O===void 0||F===void 0)aU(I,this.length-8);let T=(O<<24)+this[++I]*65536+this[++I]*256+this[++I];return(BigInt(T)<<BigInt(32))+BigInt(this[++I]*16777216+this[++I]*65536+this[++I]*256+F)});$0.prototype.readFloatLE=function(I,O){if(I=I>>>0,!O)WU(I,4,this.length);return OX(this,I,!0,23,4)};$0.prototype.readFloatBE=function(I,O){if(I=I>>>0,!O)WU(I,4,this.length);return OX(this,I,!1,23,4)};$0.prototype.readDoubleLE=function(I,O){if(I=I>>>0,!O)WU(I,8,this.length);return OX(this,I,!0,52,8)};$0.prototype.readDoubleBE=function(I,O){if(I=I>>>0,!O)WU(I,8,this.length);return OX(this,I,!1,52,8)};$0.prototype.writeUintLE=$0.prototype.writeUIntLE=function(I,O,F,T){if(I=+I,O=O>>>0,F=F>>>0,!T){let V=Math.pow(2,8*F)-1;EU(this,I,O,F,V,0)}let H=1,E=0;this[O]=I&255;while(++E<F&&(H*=256))this[O+E]=I/H&255;return O+F};$0.prototype.writeUintBE=$0.prototype.writeUIntBE=function(I,O,F,T){if(I=+I,O=O>>>0,F=F>>>0,!T){let V=Math.pow(2,8*F)-1;EU(this,I,O,F,V,0)}let H=F-1,E=1;this[O+H]=I&255;while(--H>=0&&(E*=256))this[O+H]=I/E&255;return O+F};$0.prototype.writeUint8=$0.prototype.writeUInt8=function(I,O,F){if(I=+I,O=O>>>0,!F)EU(this,I,O,1,255,0);return this[O]=I&255,O+1};$0.prototype.writeUint16LE=$0.prototype.writeUInt16LE=function(I,O,F){if(I=+I,O=O>>>0,!F)EU(this,I,O,2,65535,0);return this[O]=I&255,this[O+1]=I>>>8,O+2};$0.prototype.writeUint16BE=$0.prototype.writeUInt16BE=function(I,O,F){if(I=+I,O=O>>>0,!F)EU(this,I,O,2,65535,0);return this[O]=I>>>8,this[O+1]=I&255,O+2};$0.prototype.writeUint32LE=$0.prototype.writeUInt32LE=function(I,O,F){if(I=+I,O=O>>>0,!F)EU(this,I,O,4,4294967295,0);return this[O+3]=I>>>24,this[O+2]=I>>>16,this[O+1]=I>>>8,this[O]=I&255,O+4};$0.prototype.writeUint32BE=$0.prototype.writeUInt32BE=function(I,O,F){if(I=+I,O=O>>>0,!F)EU(this,I,O,4,4294967295,0);return this[O]=I>>>24,this[O+1]=I>>>16,this[O+2]=I>>>8,this[O+3]=I&255,O+4};$0.prototype.writeBigUInt64LE=wU(function(I,O=0){return qZ(this,I,O,BigInt(0),BigInt("0xffffffffffffffff"))});$0.prototype.writeBigUInt64BE=wU(function(I,O=0){return PZ(this,I,O,BigInt(0),BigInt("0xffffffffffffffff"))});$0.prototype.writeIntLE=function(I,O,F,T){if(I=+I,O=O>>>0,!T){let P=Math.pow(2,8*F-1);EU(this,I,O,F,P-1,-P)}let H=0,E=1,V=0;this[O]=I&255;while(++H<F&&(E*=256)){if(I<0&&V===0&&this[O+H-1]!==0)V=1;this[O+H]=(I/E>>0)-V&255}return O+F};$0.prototype.writeIntBE=function(I,O,F,T){if(I=+I,O=O>>>0,!T){let P=Math.pow(2,8*F-1);EU(this,I,O,F,P-1,-P)}let H=F-1,E=1,V=0;this[O+H]=I&255;while(--H>=0&&(E*=256)){if(I<0&&V===0&&this[O+H+1]!==0)V=1;this[O+H]=(I/E>>0)-V&255}return O+F};$0.prototype.writeInt8=function(I,O,F){if(I=+I,O=O>>>0,!F)EU(this,I,O,1,127,-128);if(I<0)I=255+I+1;return this[O]=I&255,O+1};$0.prototype.writeInt16LE=function(I,O,F){if(I=+I,O=O>>>0,!F)EU(this,I,O,2,32767,-32768);return this[O]=I&255,this[O+1]=I>>>8,O+2};$0.prototype.writeInt16BE=function(I,O,F){if(I=+I,O=O>>>0,!F)EU(this,I,O,2,32767,-32768);return this[O]=I>>>8,this[O+1]=I&255,O+2};$0.prototype.writeInt32LE=function(I,O,F){if(I=+I,O=O>>>0,!F)EU(this,I,O,4,2147483647,-2147483648);return this[O]=I&255,this[O+1]=I>>>8,this[O+2]=I>>>16,this[O+3]=I>>>24,O+4};$0.prototype.writeInt32BE=function(I,O,F){if(I=+I,O=O>>>0,!F)EU(this,I,O,4,2147483647,-2147483648);if(I<0)I=4294967295+I+1;return this[O]=I>>>24,this[O+1]=I>>>16,this[O+2]=I>>>8,this[O+3]=I&255,O+4};$0.prototype.writeBigInt64LE=wU(function(I,O=0){return qZ(this,I,O,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});$0.prototype.writeBigInt64BE=wU(function(I,O=0){return PZ(this,I,O,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});$0.prototype.writeFloatLE=function(I,O,F){return jZ(this,I,O,!0,F)};$0.prototype.writeFloatBE=function(I,O,F){return jZ(this,I,O,!1,F)};$0.prototype.writeDoubleLE=function(I,O,F){return vZ(this,I,O,!0,F)};$0.prototype.writeDoubleBE=function(I,O,F){return vZ(this,I,O,!1,F)};$0.prototype.copy=function(I,O,F,T){if(!$0.isBuffer(I))throw TypeError("argument should be a Buffer");if(!F)F=0;if(!T&&T!==0)T=this.length;if(O>=I.length)O=I.length;if(!O)O=0;if(T>0&&T<F)T=F;if(T===F)return 0;if(I.length===0||this.length===0)return 0;if(O<0)throw RangeError("targetStart out of bounds");if(F<0||F>=this.length)throw RangeError("Index out of range");if(T<0)throw RangeError("sourceEnd out of bounds");if(T>this.length)T=this.length;if(I.length-O<T-F)T=I.length-O+F;let H=T-F;if(this===I&&typeof Uint8Array.prototype.copyWithin==="function")this.copyWithin(O,F,T);else Uint8Array.prototype.set.call(I,this.subarray(F,T),O);return H};$0.prototype.fill=function(I,O,F,T){if(typeof I==="string"){if(typeof O==="string")T=O,O=0,F=this.length;else if(typeof F==="string")T=F,F=this.length;if(T!==void 0&&typeof T!=="string")throw TypeError("encoding must be a string");if(typeof T==="string"&&!$0.isEncoding(T))throw TypeError("Unknown encoding: "+T);if(I.length===1){let E=I.charCodeAt(0);if(T==="utf8"&&E<128||T==="latin1")I=E}}else if(typeof I==="number")I=I&255;else if(typeof I==="boolean")I=Number(I);if(O<0||this.length<O||this.length<F)throw RangeError("Out of range index");if(F<=O)return this;if(O=O>>>0,F=F===void 0?this.length:F>>>0,!I)I=0;let H;if(typeof I==="number")for(H=O;H<F;++H)this[H]=I;else{let E=$0.isBuffer(I)?I:$0.from(I,T),V=E.length;if(V===0)throw TypeError('The value "'+I+'" is invalid for argument "value"');for(H=0;H<F-O;++H)this[H+O]=E[H%V]}return this};AY=/[^+/0-9A-Za-z-_]/g;LY=function(){let I=Array(256);for(let O=0;O<16;++O){let F=O*16;for(let T=0;T<16;++T)I[F+T]="0123456789abcdef"[O]+"0123456789abcdef"[T]}return I}();MY=cX("resolveObjectURL"),SY=cX("isUtf8"),qY=cX("transcode"),PY=$0});var uZ={};$X(uZ,{types:()=>yY,promisify:()=>fZ,log:()=>gZ,isUndefined:()=>nU,isSymbol:()=>cY,isString:()=>DX,isRegExp:()=>FX,isPrimitive:()=>pY,isObject:()=>mU,isNumber:()=>NZ,isNullOrUndefined:()=>fY,isNull:()=>TX,isFunction:()=>CX,isError:()=>HX,isDate:()=>bX,isBuffer:()=>hY,isBoolean:()=>dX,isArray:()=>xZ,inspect:()=>uU,inherits:()=>wZ,format:()=>lX,deprecate:()=>jY,default:()=>lY,debuglog:()=>vY,callbackifyOnRejected:()=>mX,callbackify:()=>cZ,_extend:()=>nX,TextEncoder:()=>pZ,TextDecoder:()=>hZ});function lX(I,...O){if(!DX(I)){var F=[I];for(var T=0;T<O.length;T++)F.push(uU(O[T]));return F.join(" ")}var T=0,H=O.length,E=String(I).replace(kY,function(P){if(P==="%%")return"%";if(T>=H)return P;switch(P){case"%s":return String(O[T++]);case"%d":return Number(O[T++]);case"%j":try{return JSON.stringify(O[T++])}catch(q){return"[Circular]"}default:return P}});for(var V=O[T];T<H;V=O[++T])if(TX(V)||!mU(V))E+=" "+V;else E+=" "+uU(V);return E}function jY(I,O){if(typeof process>"u"||process?.noDeprecation===!0)return I;var F=!1;function T(...H){if(!F){if(process.throwDeprecation)throw Error(O);else if(process.traceDeprecation)console.trace(O);else console.error(O);F=!0}return I.apply(this,...H)}return T}function _Y(I,O){var F=uU.styles[O];if(F)return"\x1B["+uU.colors[F][0]+"m"+I+"\x1B["+uU.colors[F][1]+"m";else return I}function BY(I,O){return I}function xY(I){var O={};return I.forEach(function(F,T){O[F]=!0}),O}function AX(I,O,F){if(I.customInspect&&O&&CX(O.inspect)&&O.inspect!==uU&&!(O.constructor&&O.constructor.prototype===O)){var T=O.inspect(F,I);if(!DX(T))T=AX(I,T,F);return T}var H=NY(I,O);if(H)return H;var E=Object.keys(O),V=xY(E);if(I.showHidden)E=Object.getOwnPropertyNames(O);if(HX(O)&&(E.indexOf("message")>=0||E.indexOf("description")>=0))return pX(O);if(E.length===0){if(CX(O)){var P=O.name?": "+O.name:"";return I.stylize("[Function"+P+"]","special")}if(FX(O))return I.stylize(RegExp.prototype.toString.call(O),"regexp");if(bX(O))return I.stylize(Date.prototype.toString.call(O),"date");if(HX(O))return pX(O)}var q="",L=!1,z=["{","}"];if(xZ(O))L=!0,z=["[","]"];if(CX(O)){var C=O.name?": "+O.name:"";q=" [Function"+C+"]"}if(FX(O))q=" "+RegExp.prototype.toString.call(O);if(bX(O))q=" "+Date.prototype.toUTCString.call(O);if(HX(O))q=" "+pX(O);if(E.length===0&&(!L||O.length==0))return z[0]+q+z[1];if(F<0)if(FX(O))return I.stylize(RegExp.prototype.toString.call(O),"regexp");else return I.stylize("[Object]","special");I.seen.push(O);var D;if(L)D=gY(I,O,F,V,E);else D=E.map(function(S){return uX(I,O,F,V,S,L)});return I.seen.pop(),wY(D,q,z)}function NY(I,O){if(nU(O))return I.stylize("undefined","undefined");if(DX(O)){var F="'"+JSON.stringify(O).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return I.stylize(F,"string")}if(NZ(O))return I.stylize(""+O,"number");if(dX(O))return I.stylize(""+O,"boolean");if(TX(O))return I.stylize("null","null")}function pX(I){return"["+Error.prototype.toString.call(I)+"]"}function gY(I,O,F,T,H){var E=[];for(var V=0,P=O.length;V<P;++V)if(yZ(O,String(V)))E.push(uX(I,O,F,T,String(V),!0));else E.push("");return H.forEach(function(q){if(!q.match(/^\d+$/))E.push(uX(I,O,F,T,q,!0))}),E}function uX(I,O,F,T,H,E){var V,P,q;if(q=Object.getOwnPropertyDescriptor(O,H)||{value:O[H]},q.get)if(q.set)P=I.stylize("[Getter/Setter]","special");else P=I.stylize("[Getter]","special");else if(q.set)P=I.stylize("[Setter]","special");if(!yZ(T,H))V="["+H+"]";if(!P)if(I.seen.indexOf(q.value)<0){if(TX(F))P=AX(I,q.value,null);else P=AX(I,q.value,F-1);if(P.indexOf(`
2
+ `)>-1)if(E)P=P.split(`
3
+ `).map(function(L){return" "+L}).join(`
4
+ `).slice(2);else P=`
5
+ `+P.split(`
6
+ `).map(function(L){return" "+L}).join(`
7
+ `)}else P=I.stylize("[Circular]","special");if(nU(V)){if(E&&H.match(/^\d+$/))return P;if(V=JSON.stringify(""+H),V.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/))V=V.slice(1,-1),V=I.stylize(V,"name");else V=V.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),V=I.stylize(V,"string")}return V+": "+P}function wY(I,O,F){var T=0,H=I.reduce(function(E,V){if(T++,V.indexOf(`
8
+ `)>=0)T++;return E+V.replace(/\u001b\[\d\d?m/g,"").length+1},0);if(H>60)return F[0]+(O===""?"":O+`
9
+ `)+" "+I.join(`,
10
+ `)+" "+F[1];return F[0]+O+" "+I.join(", ")+" "+F[1]}function xZ(I){return Array.isArray(I)}function dX(I){return typeof I==="boolean"}function TX(I){return I===null}function fY(I){return I==null}function NZ(I){return typeof I==="number"}function DX(I){return typeof I==="string"}function cY(I){return typeof I==="symbol"}function nU(I){return I===void 0}function FX(I){return mU(I)&&oX(I)==="[object RegExp]"}function mU(I){return typeof I==="object"&&I!==null}function bX(I){return mU(I)&&oX(I)==="[object Date]"}function HX(I){return mU(I)&&(oX(I)==="[object Error]"||I instanceof Error)}function CX(I){return typeof I==="function"}function pY(I){return I===null||typeof I==="boolean"||typeof I==="number"||typeof I==="string"||typeof I==="symbol"||typeof I>"u"}function hY(I){return I instanceof Buffer}function oX(I){return Object.prototype.toString.call(I)}function hX(I){return I<10?"0"+I.toString(10):I.toString(10)}function bY(){var I=new Date,O=[hX(I.getHours()),hX(I.getMinutes()),hX(I.getSeconds())].join(":");return[I.getDate(),uY[I.getMonth()],O].join(" ")}function gZ(...I){console.log("%s - %s",bY(),lX.apply(null,I))}function wZ(I,O){if(O)I.super_=O,I.prototype=Object.create(O.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}})}function nX(I,O){if(!O||!mU(O))return I;var F=Object.keys(O),T=F.length;while(T--)I[F[T]]=O[F[T]];return I}function yZ(I,O){return Object.prototype.hasOwnProperty.call(I,O)}function mX(I,O){if(!I){var F=Error("Promise was rejected with a falsy value");F.reason=I,I=F}return O(I)}function cZ(I){if(typeof I!=="function")throw TypeError('The "original" argument must be of type Function');function O(...F){var T=F.pop();if(typeof T!=="function")throw TypeError("The last argument must be of type Function");var H=this,E=function(...V){return T.apply(H,...V)};I.apply(this,F).then(function(V){process.nextTick(E.bind(null,null,V))},function(V){process.nextTick(mX.bind(null,V,E))})}return Object.setPrototypeOf(O,Object.getPrototypeOf(I)),Object.defineProperties(O,Object.getOwnPropertyDescriptors(I)),O}var kY,vY,uU,yY=()=>{},uY,fZ,pZ,hZ,lY;var bZ=KX(()=>{kY=/%[sdj%]/g;vY=((I={},O={},F)=>((F=typeof process<"u"&&!1)&&(F=F.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase()),O=new RegExp("^"+F+"$","i"),(T)=>{if(T=T.toUpperCase(),!I[T])if(O.test(T))I[T]=function(...H){console.error("%s: %s",T,pid,lX.apply(null,...H))};else I[T]=function(){};return I[T]}))(),uU=((I)=>(I.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},I.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},I.custom=Symbol.for("nodejs.util.inspect.custom"),I))(function(I,O,...F){var T={seen:[],stylize:BY};if(F.length>=1)T.depth=F[0];if(F.length>=2)T.colors=F[1];if(dX(O))T.showHidden=O;else if(O)nX(T,O);if(nU(T.showHidden))T.showHidden=!1;if(nU(T.depth))T.depth=2;if(nU(T.colors))T.colors=!1;if(T.colors)T.stylize=_Y;return AX(T,I,T.depth)});uY=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];fZ=((I)=>(I.custom=Symbol.for("nodejs.util.promisify.custom"),I))(function(I){if(typeof I!=="function")throw TypeError('The "original" argument must be of type Function');if(kCustomPromisifiedSymbol&&I[kCustomPromisifiedSymbol]){var O=I[kCustomPromisifiedSymbol];if(typeof O!=="function")throw TypeError('The "nodejs.util.promisify.custom" argument must be of type Function');return Object.defineProperty(O,kCustomPromisifiedSymbol,{value:O,enumerable:!1,writable:!1,configurable:!0}),O}function O(...F){var T,H,E=new Promise(function(V,P){T=V,H=P});F.push(function(V,P){if(V)H(V);else T(P)});try{I.apply(this,F)}catch(V){H(V)}return E}if(Object.setPrototypeOf(O,Object.getPrototypeOf(I)),kCustomPromisifiedSymbol)Object.defineProperty(O,kCustomPromisifiedSymbol,{value:O,enumerable:!1,writable:!1,configurable:!0});return Object.defineProperties(O,Object.getOwnPropertyDescriptors(I))});({TextEncoder:pZ,TextDecoder:hZ}=globalThis),lY={TextEncoder:pZ,TextDecoder:hZ,promisify:fZ,log:gZ,inherits:wZ,_extend:nX,callbackifyOnRejected:mX,callbackify:cZ}});var iU={};$X(iU,{setMaxListeners:()=>iZ,once:()=>aZ,listenerCount:()=>UQ,init:()=>yU,getMaxListeners:()=>ZQ,getEventListeners:()=>eZ,default:()=>eY,captureRejectionSymbol:()=>mZ,addAbortListener:()=>QQ,EventEmitter:()=>yU});function sZ(I,O){var{_events:F}=I;if(O[0]??=Error("Unhandled error."),!F)throw O[0];var T=F[nZ];if(T)for(var H of dZ.call(T))H.apply(I,O);var E=F.error;if(!E)throw O[0];for(var H of dZ.call(E))H.apply(I,O);return!0}function nY(I,O,F,T){O.then(void 0,function(H){queueMicrotask(()=>mY(I,H,F,T))})}function mY(I,O,F,T){if(typeof I[lZ]==="function")I[lZ](O,F,...T);else try{I[bU]=!1,I.emit("error",O)}finally{I[bU]=!0}}function tZ(I,O,F){F.warned=!0;let T=Error(`Possible EventEmitter memory leak detected. ${F.length} ${String(O)} listeners added to [${I.constructor.name}]. Use emitter.setMaxListeners() to increase limit`);T.name="MaxListenersExceededWarning",T.emitter=I,T.type=O,T.count=F.length,console.warn(T)}function rZ(I,O,...F){this.removeListener(I,O),O.apply(this,F)}function aZ(I,O,F){var T=F?.signal;if(XQ(T,"options.signal"),T?.aborted)throw new sX(void 0,{cause:T?.reason});let{resolve:H,reject:E,promise:V}=$newPromiseCapability(Promise),P=(z)=>{if(I.removeListener(O,q),T!=null)zX(T,"abort",L);E(z)},q=(...z)=>{if(typeof I.removeListener==="function")I.removeListener("error",P);if(T!=null)zX(T,"abort",L);H(z)};if(oZ(I,O,q,{once:!0}),O!=="error"&&typeof I.once==="function")I.once("error",P);function L(){zX(I,O,q),zX(I,"error",P),E(new sX(void 0,{cause:T?.reason}))}if(T!=null)oZ(T,"abort",L,{once:!0});return V}function eZ(I,O){return I.listeners(O)}function iZ(I,...O){rX(I,"setMaxListeners",0);var F;if(O&&(F=O.length))for(let T=0;T<F;T++)O[T].setMaxListeners(I);else lU=I}function UQ(I,O){return I.listenerCount(O)}function zX(I,O,F,T){if(typeof I.removeListener==="function")I.removeListener(O,F);else I.removeEventListener(O,F,T)}function oZ(I,O,F,T){if(typeof I.on==="function")if(T.once)I.once(O,F);else I.on(O,F);else I.addEventListener(O,F,T)}function sU(I,O,F){let T=TypeError(`The "${I}" argument must be of type ${O}. Received ${F}`);return T.code="ERR_INVALID_ARG_TYPE",T}function rY(I,O,F){let T=RangeError(`The "${I}" argument is out of range. It must be ${O}. Received ${F}`);return T.code="ERR_OUT_OF_RANGE",T}function XQ(I,O){if(I!==void 0&&(I===null||typeof I!=="object"||!("aborted"in I)))throw sU(O,"AbortSignal",I)}function rX(I,O,F,T){if(typeof I!=="number")throw sU(O,"number",I);if(F!=null&&I<F||T!=null&&I>T||(F!=null||T!=null)&&Number.isNaN(I))throw rY(O,`${F!=null?`>= ${F}`:""}${F!=null&&T!=null?" && ":""}${T!=null?`<= ${T}`:""}`,I)}function eU(I){if(typeof I!=="function")throw TypeError("The listener must be a function")}function aY(I,O){if(typeof I!=="boolean")throw sU(O,"boolean",I)}function ZQ(I){return I?._maxListeners??lU}function QQ(I,O){if(I===void 0)throw sU("signal","AbortSignal",I);if(XQ(I,"signal"),typeof O!=="function")throw sU("listener","function",O);let F;if(I.aborted)queueMicrotask(()=>O());else I.addEventListener("abort",O,{__proto__:null,once:!0}),F=()=>{I.removeEventListener("abort",O)};return{__proto__:null,[Symbol.dispose](){F?.()}}}var tX,bU,nZ,dY,oY,lZ,mZ,dZ,lU=10,yU=function(I){if(this._events===void 0||this._events===this.__proto__._events)this._events={__proto__:null},this._eventsCount=0;if(this._maxListeners??=void 0,this[bU]=I?.captureRejections?Boolean(I?.captureRejections):d0[bU])this.emit=tY},d0,sY=function(I,...O){if(I==="error")return sZ(this,O);var{_events:F}=this;if(F===void 0)return!1;var T=F[I];if(T===void 0)return!1;let H=T.length>1?T.slice():T;for(let E=0,{length:V}=H;E<V;E++){let P=H[E];switch(O.length){case 0:P.call(this);break;case 1:P.call(this,O[0]);break;case 2:P.call(this,O[0],O[1]);break;case 3:P.call(this,O[0],O[1],O[2]);break;default:P.apply(this,O);break}}return!0},tY=function(I,...O){if(I==="error")return sZ(this,O);var{_events:F}=this;if(F===void 0)return!1;var T=F[I];if(T===void 0)return!1;let H=T.length>1?T.slice():T;for(let E=0,{length:V}=H;E<V;E++){let P=H[E],q;switch(O.length){case 0:q=P.call(this);break;case 1:q=P.call(this,O[0]);break;case 2:q=P.call(this,O[0],O[1]);break;case 3:q=P.call(this,O[0],O[1],O[2]);break;default:q=P.apply(this,O);break}if(q!==void 0&&typeof q?.then==="function"&&q.then===Promise.prototype.then)nY(this,q,I,O)}return!0},sX,eY;var UX=KX(()=>{tX=Symbol.for,bU=Symbol("kCapture"),nZ=tX("events.errorMonitor"),dY=Symbol("events.maxEventTargetListeners"),oY=Symbol("events.maxEventTargetListenersWarned"),lZ=tX("nodejs.rejection"),mZ=tX("nodejs.rejection"),dZ=Array.prototype.slice,d0=yU.prototype={};d0._events=void 0;d0._eventsCount=0;d0._maxListeners=void 0;d0.setMaxListeners=function(I){return rX(I,"setMaxListeners",0),this._maxListeners=I,this};d0.constructor=yU;d0.getMaxListeners=function(){return this?._maxListeners??lU};d0.emit=sY;d0.addListener=function(I,O){eU(O);var F=this._events;if(!F)F=this._events={__proto__:null},this._eventsCount=0;else if(F.newListener)this.emit("newListener",I,O.listener??O);var T=F[I];if(!T)F[I]=[O],this._eventsCount++;else{T.push(O);var H=this._maxListeners??lU;if(H>0&&T.length>H&&!T.warned)tZ(this,I,T)}return this};d0.on=d0.addListener;d0.prependListener=function(I,O){eU(O);var F=this._events;if(!F)F=this._events={__proto__:null},this._eventsCount=0;else if(F.newListener)this.emit("newListener",I,O.listener??O);var T=F[I];if(!T)F[I]=[O],this._eventsCount++;else{T.unshift(O);var H=this._maxListeners??lU;if(H>0&&T.length>H&&!T.warned)tZ(this,I,T)}return this};d0.once=function(I,O){eU(O);let F=rZ.bind(this,I,O);return F.listener=O,this.addListener(I,F),this};d0.prependOnceListener=function(I,O){eU(O);let F=rZ.bind(this,I,O);return F.listener=O,this.prependListener(I,F),this};d0.removeListener=function(I,O){eU(O);var{_events:F}=this;if(!F)return this;var T=F[I];if(!T)return this;var H=T.length;let E=-1;for(let V=H-1;V>=0;V--)if(T[V]===O||T[V].listener===O){E=V;break}if(E<0)return this;if(E===0)T.shift();else T.splice(E,1);if(T.length===0)delete F[I],this._eventsCount--;return this};d0.off=d0.removeListener;d0.removeAllListeners=function(I){var{_events:O}=this;if(I&&O){if(O[I])delete O[I],this._eventsCount--}else this._events={__proto__:null};return this};d0.listeners=function(I){var{_events:O}=this;if(!O)return[];var F=O[I];if(!F)return[];return F.map((T)=>T.listener??T)};d0.rawListeners=function(I){var{_events:O}=this;if(!O)return[];var F=O[I];if(!F)return[];return F.slice()};d0.listenerCount=function(I){var{_events:O}=this;if(!O)return 0;return O[I]?.length??0};d0.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};d0[bU]=!1;sX=class sX extends Error{constructor(I="The operation was aborted",O=void 0){if(O!==void 0&&typeof O!=="object")throw sU("options","Object",O);super(I,O);this.code="ABORT_ERR",this.name="AbortError"}};Object.defineProperties(yU,{captureRejections:{get(){return d0[bU]},set(I){aY(I,"EventEmitter.captureRejections"),d0[bU]=I},enumerable:!0},defaultMaxListeners:{enumerable:!0,get:()=>{return lU},set:(I)=>{rX(I,"defaultMaxListeners",0),lU=I}},kMaxEventTargetListeners:{value:dY,enumerable:!1,configurable:!1,writable:!1},kMaxEventTargetListenersWarned:{value:oY,enumerable:!1,configurable:!1,writable:!1}});Object.assign(yU,{once:aZ,getEventListeners:eZ,getMaxListeners:ZQ,setMaxListeners:iZ,EventEmitter:yU,usingDomains:!1,captureRejectionSymbol:mZ,errorMonitor:nZ,addAbortListener:QQ,init:yU,listenerCount:UQ});eY=yU});var UZ=iY((fG,OQ)=>{var u0=(I,O)=>()=>(O||I((O={exports:{}}).exports,O),O.exports),o0=u0((I,O)=>{class F extends Error{constructor(T){if(!Array.isArray(T))throw TypeError(`Expected input to be an Array, got ${typeof T}`);let H="";for(let E=0;E<T.length;E++)H+=` ${T[E].stack}
11
+ `;super(H);this.name="AggregateError",this.errors=T}}O.exports={AggregateError:F,ArrayIsArray(T){return Array.isArray(T)},ArrayPrototypeIncludes(T,H){return T.includes(H)},ArrayPrototypeIndexOf(T,H){return T.indexOf(H)},ArrayPrototypeJoin(T,H){return T.join(H)},ArrayPrototypeMap(T,H){return T.map(H)},ArrayPrototypePop(T,H){return T.pop(H)},ArrayPrototypePush(T,H){return T.push(H)},ArrayPrototypeSlice(T,H,E){return T.slice(H,E)},Error,FunctionPrototypeCall(T,H,...E){return T.call(H,...E)},FunctionPrototypeSymbolHasInstance(T,H){return Function.prototype[Symbol.hasInstance].call(T,H)},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(T,H){return Object.defineProperties(T,H)},ObjectDefineProperty(T,H,E){return Object.defineProperty(T,H,E)},ObjectGetOwnPropertyDescriptor(T,H){return Object.getOwnPropertyDescriptor(T,H)},ObjectKeys(T){return Object.keys(T)},ObjectSetPrototypeOf(T,H){return Object.setPrototypeOf(T,H)},Promise,PromisePrototypeCatch(T,H){return T.catch(H)},PromisePrototypeThen(T,H,E){return T.then(H,E)},PromiseReject(T){return Promise.reject(T)},PromiseResolve(T){return Promise.resolve(T)},ReflectApply:Reflect.apply,RegExpPrototypeTest(T,H){return T.test(H)},SafeSet:Set,String,StringPrototypeSlice(T,H,E){return T.slice(H,E)},StringPrototypeToLowerCase(T){return T.toLowerCase()},StringPrototypeToUpperCase(T){return T.toUpperCase()},StringPrototypeTrim(T){return T.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(T,H,E){return T.set(H,E)},Boolean,Uint8Array}}),YQ=u0((I,O)=>{O.exports={format(F,...T){return F.replace(/%([sdifj])/g,function(...[H,E]){let V=T.shift();if(E==="f")return V.toFixed(6);else if(E==="j")return JSON.stringify(V);else if(E==="s"&&typeof V==="object")return`${V.constructor!==Object?V.constructor.name:""} {}`.trim();else return V.toString()})},inspect(F){switch(typeof F){case"string":if(F.includes("'")){if(!F.includes('"'))return`"${F}"`;else if(!F.includes("`")&&!F.includes("${"))return`\`${F}\``}return`'${F}'`;case"number":if(isNaN(F))return"NaN";else if(Object.is(F,-0))return String(F);return F;case"bigint":return`${String(F)}n`;case"boolean":case"undefined":return String(F);case"object":return"{}"}}}}),zU=u0((I,O)=>{var{format:F,inspect:T}=YQ(),{AggregateError:H}=o0(),E=globalThis.AggregateError||H,V=Symbol("kIsNodeError"),P=["string","function","number","object","Function","Object","boolean","bigint","symbol"],q=/^([A-Z][a-z0-9]*)+$/,L={};function z(B,_){if(!B)throw new L.ERR_INTERNAL_ASSERTION(_)}function C(B){let _="",x=B.length,w=B[0]==="-"?1:0;for(;x>=w+4;x-=3)_=`_${B.slice(x-3,x)}${_}`;return`${B.slice(0,x)}${_}`}function D(B,_,x){if(typeof _==="function")return z(_.length<=x.length,`Code: ${B}; The provided arguments length (${x.length}) does not match the required ones (${_.length}).`),_(...x);let w=(_.match(/%[dfijoOs]/g)||[]).length;if(z(w===x.length,`Code: ${B}; The provided arguments length (${x.length}) does not match the required ones (${w}).`),x.length===0)return _;return F(_,...x)}function S(B,_,x){if(!x)x=Error;class w extends x{constructor(...y){super(D(B,_,y))}toString(){return`${this.name} [${B}]: ${this.message}`}}Object.defineProperties(w.prototype,{name:{value:x.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${B}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),w.prototype.code=B,w.prototype[V]=!0,L[B]=w}function R(B){let _="__node_internal_"+B.name;return Object.defineProperty(B,"name",{value:_}),B}function v(B,_){if(B&&_&&B!==_){if(Array.isArray(_.errors))return _.errors.push(B),_;let x=new E([_,B],_.message);return x.code=_.code,x}return B||_}class k extends Error{constructor(B="The operation was aborted",_=void 0){if(_!==void 0&&typeof _!=="object")throw new L.ERR_INVALID_ARG_TYPE("options","Object",_);super(B,_);this.code="ABORT_ERR",this.name="AbortError"}}S("ERR_ASSERTION","%s",Error),S("ERR_INVALID_ARG_TYPE",(B,_,x)=>{if(z(typeof B==="string","'name' must be a string"),!Array.isArray(_))_=[_];let w="The ";if(B.endsWith(" argument"))w+=`${B} `;else w+=`"${B}" ${B.includes(".")?"property":"argument"} `;w+="must be ";let y=[],d=[],J0=[];for(let V0 of _)if(z(typeof V0==="string","All expected entries have to be of type string"),P.includes(V0))y.push(V0.toLowerCase());else if(q.test(V0))d.push(V0);else z(V0!=="object",'The value "object" should be written as "Object"'),J0.push(V0);if(d.length>0){let V0=y.indexOf("object");if(V0!==-1)y.splice(y,V0,1),d.push("Object")}if(y.length>0){switch(y.length){case 1:w+=`of type ${y[0]}`;break;case 2:w+=`one of type ${y[0]} or ${y[1]}`;break;default:{let V0=y.pop();w+=`one of type ${y.join(", ")}, or ${V0}`}}if(d.length>0||J0.length>0)w+=" or "}if(d.length>0){switch(d.length){case 1:w+=`an instance of ${d[0]}`;break;case 2:w+=`an instance of ${d[0]} or ${d[1]}`;break;default:{let V0=d.pop();w+=`an instance of ${d.join(", ")}, or ${V0}`}}if(J0.length>0)w+=" or "}switch(J0.length){case 0:break;case 1:if(J0[0].toLowerCase()!==J0[0])w+="an ";w+=`${J0[0]}`;break;case 2:w+=`one of ${J0[0]} or ${J0[1]}`;break;default:{let V0=J0.pop();w+=`one of ${J0.join(", ")}, or ${V0}`}}if(x==null)w+=`. Received ${x}`;else if(typeof x==="function"&&x.name)w+=`. Received function ${x.name}`;else if(typeof x==="object"){var I0;if((I0=x.constructor)!==null&&I0!==void 0&&I0.name)w+=`. Received an instance of ${x.constructor.name}`;else{let V0=T(x,{depth:-1});w+=`. Received ${V0}`}}else{let V0=T(x,{colors:!1});if(V0.length>25)V0=`${V0.slice(0,25)}...`;w+=`. Received type ${typeof x} (${V0})`}return w},TypeError),S("ERR_INVALID_ARG_VALUE",(B,_,x="is invalid")=>{let w=T(_);if(w.length>128)w=w.slice(0,128)+"...";return`The ${B.includes(".")?"property":"argument"} '${B}' ${x}. Received ${w}`},TypeError),S("ERR_INVALID_RETURN_VALUE",(B,_,x)=>{var w;let y=x!==null&&x!==void 0&&(w=x.constructor)!==null&&w!==void 0&&w.name?`instance of ${x.constructor.name}`:`type ${typeof x}`;return`Expected ${B} to be returned from the "${_}" function but got ${y}.`},TypeError),S("ERR_MISSING_ARGS",(...B)=>{z(B.length>0,"At least one arg needs to be specified");let _,x=B.length;switch(B=(Array.isArray(B)?B:[B]).map((w)=>`"${w}"`).join(" or "),x){case 1:_+=`The ${B[0]} argument`;break;case 2:_+=`The ${B[0]} and ${B[1]} arguments`;break;default:{let w=B.pop();_+=`The ${B.join(", ")}, and ${w} arguments`}break}return`${_} must be specified`},TypeError),S("ERR_OUT_OF_RANGE",(B,_,x)=>{z(_,'Missing "range" argument');let w;if(Number.isInteger(x)&&Math.abs(x)>4294967296)w=C(String(x));else if(typeof x==="bigint"){w=String(x);let y=BigInt(2)**BigInt(32);if(x>y||x<-y)w=C(w);w+="n"}else w=T(x);return`The value of "${B}" is out of range. It must be ${_}. Received ${w}`},RangeError),S("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),S("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),S("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),S("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),S("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),S("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),S("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),S("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),S("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),S("ERR_STREAM_WRITE_AFTER_END","write after end",Error),S("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),O.exports={AbortError:k,aggregateTwoErrors:R(v),hideStackFrames:R,codes:L}}),UJ=u0((I,O)=>{Object.defineProperty(I,"__esModule",{value:!0});var F=new WeakMap,T=new WeakMap;function H(u){let X0=F.get(u);return console.assert(X0!=null,"'this' is expected an Event object, but got",u),X0}function E(u){if(u.passiveListener!=null){if(typeof console<"u"&&typeof console.error==="function")console.error("Unable to preventDefault inside passive event listener invocation.",u.passiveListener);return}if(!u.event.cancelable)return;if(u.canceled=!0,typeof u.event.preventDefault==="function")u.event.preventDefault()}function V(u,X0){F.set(this,{eventTarget:u,event:X0,eventPhase:2,currentTarget:u,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:X0.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});let U=Object.keys(X0);for(let Q=0;Q<U.length;++Q){let J=U[Q];if(!(J in this))Object.defineProperty(this,J,P(J))}}if(V.prototype={get type(){return H(this).event.type},get target(){return H(this).eventTarget},get currentTarget(){return H(this).currentTarget},composedPath(){let u=H(this).currentTarget;if(u==null)return[];return[u]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return H(this).eventPhase},stopPropagation(){let u=H(this);if(u.stopped=!0,typeof u.event.stopPropagation==="function")u.event.stopPropagation()},stopImmediatePropagation(){let u=H(this);if(u.stopped=!0,u.immediateStopped=!0,typeof u.event.stopImmediatePropagation==="function")u.event.stopImmediatePropagation()},get bubbles(){return Boolean(H(this).event.bubbles)},get cancelable(){return Boolean(H(this).event.cancelable)},preventDefault(){E(H(this))},get defaultPrevented(){return H(this).canceled},get composed(){return Boolean(H(this).event.composed)},get timeStamp(){return H(this).timeStamp},get srcElement(){return H(this).eventTarget},get cancelBubble(){return H(this).stopped},set cancelBubble(u){if(!u)return;let X0=H(this);if(X0.stopped=!0,typeof X0.event.cancelBubble==="boolean")X0.event.cancelBubble=!0},get returnValue(){return!H(this).canceled},set returnValue(u){if(!u)E(H(this))},initEvent(){}},Object.defineProperty(V.prototype,"constructor",{value:V,configurable:!0,writable:!0}),typeof window<"u"&&typeof window.Event<"u")Object.setPrototypeOf(V.prototype,window.Event.prototype),T.set(window.Event.prototype,V);function P(u){return{get(){return H(this).event[u]},set(X0){H(this).event[u]=X0},configurable:!0,enumerable:!0}}function q(u){return{value(){let X0=H(this).event;return X0[u].apply(X0,arguments)},configurable:!0,enumerable:!0}}function L(u,X0){let U=Object.keys(X0);if(U.length===0)return u;function Q(J,Z){u.call(this,J,Z)}Q.prototype=Object.create(u.prototype,{constructor:{value:Q,configurable:!0,writable:!0}});for(let J=0;J<U.length;++J){let Z=U[J];if(!(Z in u.prototype)){let Y=typeof Object.getOwnPropertyDescriptor(X0,Z).value==="function";Object.defineProperty(Q.prototype,Z,Y?q(Z):P(Z))}}return Q}function z(u){if(u==null||u===Object.prototype)return V;let X0=T.get(u);if(X0==null)X0=L(z(Object.getPrototypeOf(u)),u),T.set(u,X0);return X0}function C(u,X0){return new(z(Object.getPrototypeOf(X0)))(u,X0)}function D(u){return H(u).immediateStopped}function S(u,X0){H(u).eventPhase=X0}function R(u,X0){H(u).currentTarget=X0}function v(u,X0){H(u).passiveListener=X0}var k=new WeakMap,B=1,_=2,x=3;function w(u){return u!==null&&typeof u==="object"}function y(u){let X0=k.get(u);if(X0==null)throw TypeError("'this' is expected an EventTarget object, but got another value.");return X0}function d(u){return{get(){let X0=y(this).get(u);while(X0!=null){if(X0.listenerType===x)return X0.listener;X0=X0.next}return null},set(X0){if(typeof X0!=="function"&&!w(X0))X0=null;let U=y(this),Q=null,J=U.get(u);while(J!=null){if(J.listenerType===x)if(Q!==null)Q.next=J.next;else if(J.next!==null)U.set(u,J.next);else U.delete(u);else Q=J;J=J.next}if(X0!==null){let Z={listener:X0,listenerType:x,passive:!1,once:!1,next:null};if(Q===null)U.set(u,Z);else Q.next=Z}},configurable:!0,enumerable:!0}}function J0(u,X0){Object.defineProperty(u,`on${X0}`,d(X0))}function I0(u){function X0(){V0.call(this)}X0.prototype=Object.create(V0.prototype,{constructor:{value:X0,configurable:!0,writable:!0}});for(let U=0;U<u.length;++U)J0(X0.prototype,u[U]);return X0}function V0(){if(this instanceof V0){k.set(this,new Map);return}if(arguments.length===1&&Array.isArray(arguments[0]))return I0(arguments[0]);if(arguments.length>0){let u=Array(arguments.length);for(let X0=0;X0<arguments.length;++X0)u[X0]=arguments[X0];return I0(u)}throw TypeError("Cannot call a class as a function")}if(V0.prototype={addEventListener(u,X0,U){if(X0==null)return;if(typeof X0!=="function"&&!w(X0))throw TypeError("'listener' should be a function or an object.");let Q=y(this),J=w(U),Z=(J?Boolean(U.capture):Boolean(U))?B:_,Y={listener:X0,listenerType:Z,passive:J&&Boolean(U.passive),once:J&&Boolean(U.once),next:null},K=Q.get(u);if(K===void 0){Q.set(u,Y);return}let W=null;while(K!=null){if(K.listener===X0&&K.listenerType===Z)return;W=K,K=K.next}W.next=Y},removeEventListener(u,X0,U){if(X0==null)return;let Q=y(this),J=(w(U)?Boolean(U.capture):Boolean(U))?B:_,Z=null,Y=Q.get(u);while(Y!=null){if(Y.listener===X0&&Y.listenerType===J){if(Z!==null)Z.next=Y.next;else if(Y.next!==null)Q.set(u,Y.next);else Q.delete(u);return}Z=Y,Y=Y.next}},dispatchEvent(u){if(u==null||typeof u.type!=="string")throw TypeError('"event.type" should be a string.');let X0=y(this),U=u.type,Q=X0.get(U);if(Q==null)return!0;let J=C(this,u),Z=null;while(Q!=null){if(Q.once)if(Z!==null)Z.next=Q.next;else if(Q.next!==null)X0.set(U,Q.next);else X0.delete(U);else Z=Q;if(v(J,Q.passive?Q.listener:null),typeof Q.listener==="function")try{Q.listener.call(this,J)}catch(Y){if(typeof console<"u"&&typeof console.error==="function")console.error(Y)}else if(Q.listenerType!==x&&typeof Q.listener.handleEvent==="function")Q.listener.handleEvent(J);if(D(J))break;Q=Q.next}return v(J,null),S(J,0),R(J,null),!J.defaultPrevented}},Object.defineProperty(V0.prototype,"constructor",{value:V0,configurable:!0,writable:!0}),typeof window<"u"&&typeof window.EventTarget<"u")Object.setPrototypeOf(V0.prototype,window.EventTarget.prototype);I.defineEventAttribute=J0,I.EventTarget=V0,I.default=V0,O.exports=V0,O.exports.EventTarget=O.exports.default=V0,O.exports.defineEventAttribute=J0}),XX=u0((I,O)=>{Object.defineProperty(I,"__esModule",{value:!0});var F=UJ();class T extends F.EventTarget{constructor(){super();throw TypeError("AbortSignal cannot be constructed directly")}get aborted(){let z=V.get(this);if(typeof z!=="boolean")throw TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`);return z}}F.defineEventAttribute(T.prototype,"abort");function H(){let z=Object.create(T.prototype);return F.EventTarget.call(z),V.set(z,!1),z}function E(z){if(V.get(z)!==!1)return;V.set(z,!0),z.dispatchEvent({type:"abort"})}var V=new WeakMap;if(Object.defineProperties(T.prototype,{aborted:{enumerable:!0}}),typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol")Object.defineProperty(T.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});class P{constructor(){q.set(this,H())}get signal(){return L(this)}abort(){E(L(this))}}var q=new WeakMap;function L(z){let C=q.get(z);if(C==null)throw TypeError(`Expected 'this' to be an 'AbortController' object, but got ${z===null?"null":typeof z}`);return C}if(Object.defineProperties(P.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}}),typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol")Object.defineProperty(P.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"});I.AbortController=P,I.AbortSignal=T,I.default=P,O.exports=P,O.exports.AbortController=O.exports.default=P,O.exports.AbortSignal=T}),MU=u0((I,O)=>{var F=(HU(),h0(FU)),{format:T,inspect:H}=YQ(),{codes:{ERR_INVALID_ARG_TYPE:E}}=zU(),{kResistStopPropagation:V,AggregateError:P,SymbolDispose:q}=o0(),L=globalThis.AbortSignal||XX().AbortSignal,z=globalThis.AbortController||XX().AbortController,C=Object.getPrototypeOf(async function(){}).constructor,D=globalThis.Blob||F.Blob,S=typeof D<"u"?function(k){return k instanceof D}:function(k){return!1},R=(k,B)=>{if(k!==void 0&&(k===null||typeof k!=="object"||!("aborted"in k)))throw new E(B,"AbortSignal",k)},v=(k,B)=>{if(typeof k!=="function")throw new E(B,"Function",k)};O.exports={AggregateError:P,kEmptyObject:Object.freeze({}),once(k){let B=!1;return function(..._){if(B)return;B=!0,k.apply(this,_)}},createDeferredPromise:function(){let k,B;return{promise:new Promise((_,x)=>{k=_,B=x}),resolve:k,reject:B}},promisify(k){return new Promise((B,_)=>{k((x,...w)=>{if(x)return _(x);return B(...w)})})},debuglog(){return function(){}},format:T,inspect:H,types:{isAsyncFunction(k){return k instanceof C},isArrayBufferView(k){return ArrayBuffer.isView(k)}},isBlob:S,deprecate(k,B){return k},addAbortListener:(UX(),h0(iU)).addAbortListener||function(k,B){if(k===void 0)throw new E("signal","AbortSignal",k);R(k,"signal"),v(B,"listener");let _;if(k.aborted)queueMicrotask(()=>B());else k.addEventListener("abort",B,{__proto__:null,once:!0,[V]:!0}),_=()=>{k.removeEventListener("abort",B)};return{__proto__:null,[q](){var x;(x=_)===null||x===void 0||x()}}},AbortSignalAny:L.any||function(k){if(k.length===1)return k[0];let B=new z,_=()=>B.abort();return k.forEach((x)=>{R(x,"signals"),x.addEventListener("abort",_,{once:!0})}),B.signal.addEventListener("abort",()=>{k.forEach((x)=>x.removeEventListener("abort",_))},{once:!0}),B.signal}},O.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),ZX=u0((I,O)=>{var{ArrayIsArray:F,ArrayPrototypeIncludes:T,ArrayPrototypeJoin:H,ArrayPrototypeMap:E,NumberIsInteger:V,NumberIsNaN:P,NumberMAX_SAFE_INTEGER:q,NumberMIN_SAFE_INTEGER:L,NumberParseInt:z,ObjectPrototypeHasOwnProperty:C,RegExpPrototypeExec:D,String:S,StringPrototypeToUpperCase:R,StringPrototypeTrim:v}=o0(),{hideStackFrames:k,codes:{ERR_SOCKET_BAD_PORT:B,ERR_INVALID_ARG_TYPE:_,ERR_INVALID_ARG_VALUE:x,ERR_OUT_OF_RANGE:w,ERR_UNKNOWN_SIGNAL:y}}=zU(),{normalizeEncoding:d}=MU(),{isAsyncFunction:J0,isArrayBufferView:I0}=MU().types,V0={};function u(c){return c===(c|0)}function X0(c){return c===c>>>0}var U=/^[0-7]+$/,Q="must be a 32-bit unsigned integer or an octal string";function J(c,o,N0){if(typeof c>"u")c=N0;if(typeof c==="string"){if(D(U,c)===null)throw new x(o,c,Q);c=z(c,8)}return K(c,o),c}var Z=k((c,o,N0=L,s=q)=>{if(typeof c!=="number")throw new _(o,"number",c);if(!V(c))throw new w(o,"an integer",c);if(c<N0||c>s)throw new w(o,`>= ${N0} && <= ${s}`,c)}),Y=k((c,o,N0=-2147483648,s=2147483647)=>{if(typeof c!=="number")throw new _(o,"number",c);if(!V(c))throw new w(o,"an integer",c);if(c<N0||c>s)throw new w(o,`>= ${N0} && <= ${s}`,c)}),K=k((c,o,N0=!1)=>{if(typeof c!=="number")throw new _(o,"number",c);if(!V(c))throw new w(o,"an integer",c);let s=N0?1:0,Z0=4294967295;if(c<s||c>Z0)throw new w(o,`>= ${s} && <= ${Z0}`,c)});function W(c,o){if(typeof c!=="string")throw new _(o,"string",c)}function G(c,o,N0=void 0,s){if(typeof c!=="number")throw new _(o,"number",c);if(N0!=null&&c<N0||s!=null&&c>s||(N0!=null||s!=null)&&P(c))throw new w(o,`${N0!=null?`>= ${N0}`:""}${N0!=null&&s!=null?" && ":""}${s!=null?`<= ${s}`:""}`,c)}var X=k((c,o,N0)=>{if(!T(N0,c)){let s="must be one of: "+H(E(N0,(Z0)=>typeof Z0==="string"?`'${Z0}'`:S(Z0)),", ");throw new x(o,c,s)}});function $(c,o){if(typeof c!=="boolean")throw new _(o,"boolean",c)}function M(c,o,N0){return c==null||!C(c,o)?N0:c[o]}var A=k((c,o,N0=null)=>{let s=M(N0,"allowArray",!1),Z0=M(N0,"allowFunction",!1);if(!M(N0,"nullable",!1)&&c===null||!s&&F(c)||typeof c!=="object"&&(!Z0||typeof c!=="function"))throw new _(o,"Object",c)}),j=k((c,o)=>{if(c!=null&&typeof c!=="object"&&typeof c!=="function")throw new _(o,"a dictionary",c)}),g=k((c,o,N0=0)=>{if(!F(c))throw new _(o,"Array",c);if(c.length<N0){let s=`must be longer than ${N0}`;throw new x(o,c,s)}});function p(c,o){g(c,o);for(let N0=0;N0<c.length;N0++)W(c[N0],`${o}[${N0}]`)}function n(c,o){g(c,o);for(let N0=0;N0<c.length;N0++)$(c[N0],`${o}[${N0}]`)}function K0(c,o){g(c,o);for(let N0=0;N0<c.length;N0++){let s=c[N0],Z0=`${o}[${N0}]`;if(s==null)throw new _(Z0,"AbortSignal",s);i(s,Z0)}}function r(c,o="signal"){if(W(c,o),V0[c]===void 0){if(V0[R(c)]!==void 0)throw new y(c+" (signals must use all capital letters)");throw new y(c)}}var l=k((c,o="buffer")=>{if(!I0(c))throw new _(o,["Buffer","TypedArray","DataView"],c)});function Q0(c,o){let N0=d(o),s=c.length;if(N0==="hex"&&s%2!==0)throw new x("encoding",o,`is invalid for data of length ${s}`)}function m(c,o="Port",N0=!0){if(typeof c!=="number"&&typeof c!=="string"||typeof c==="string"&&v(c).length===0||+c!==+c>>>0||c>65535||c===0&&!N0)throw new B(o,c,N0);return c|0}var i=k((c,o)=>{if(c!==void 0&&(c===null||typeof c!=="object"||!("aborted"in c)))throw new _(o,"AbortSignal",c)}),g0=k((c,o)=>{if(typeof c!=="function")throw new _(o,"Function",c)}),f=k((c,o)=>{if(typeof c!=="function"||J0(c))throw new _(o,"Function",c)}),h=k((c,o)=>{if(c!==void 0)throw new _(o,"undefined",c)});function Y0(c,o,N0){if(!T(N0,c))throw new _(o,`('${H(N0,"|")}')`,c)}var t=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function e(c,o){if(typeof c>"u"||!D(t,c))throw new x(o,c,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function L0(c){if(typeof c==="string")return e(c,"hints"),c;else if(F(c)){let o=c.length,N0="";if(o===0)return N0;for(let s=0;s<o;s++){let Z0=c[s];if(e(Z0,"hints"),N0+=Z0,s!==o-1)N0+=", "}return N0}throw new x("hints",c,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}O.exports={isInt32:u,isUint32:X0,parseFileMode:J,validateArray:g,validateStringArray:p,validateBooleanArray:n,validateAbortSignalArray:K0,validateBoolean:$,validateBuffer:l,validateDictionary:j,validateEncoding:Q0,validateFunction:g0,validateInt32:Y,validateInteger:Z,validateNumber:G,validateObject:A,validateOneOf:X,validatePlainFunction:f,validatePort:m,validateSignalName:r,validateString:W,validateUint32:K,validateUndefined:h,validateUnion:Y0,validateAbortSignal:i,validateLinkHeaderValue:L0}}),dU=u0((I,O)=>{O.exports=globalThis.process}),NU=u0((I,O)=>{var{SymbolAsyncIterator:F,SymbolIterator:T,SymbolFor:H}=o0(),E=H("nodejs.stream.destroyed"),V=H("nodejs.stream.errored"),P=H("nodejs.stream.readable"),q=H("nodejs.stream.writable"),L=H("nodejs.stream.disturbed"),z=H("nodejs.webstream.isClosedPromise"),C=H("nodejs.webstream.controllerErrorFunction");function D(M,A=!1){var j;return!!(M&&typeof M.pipe==="function"&&typeof M.on==="function"&&(!A||typeof M.pause==="function"&&typeof M.resume==="function")&&(!M._writableState||((j=M._readableState)===null||j===void 0?void 0:j.readable)!==!1)&&(!M._writableState||M._readableState))}function S(M){var A;return!!(M&&typeof M.write==="function"&&typeof M.on==="function"&&(!M._readableState||((A=M._writableState)===null||A===void 0?void 0:A.writable)!==!1))}function R(M){return!!(M&&typeof M.pipe==="function"&&M._readableState&&typeof M.on==="function"&&typeof M.write==="function")}function v(M){return M&&(M._readableState||M._writableState||typeof M.write==="function"&&typeof M.on==="function"||typeof M.pipe==="function"&&typeof M.on==="function")}function k(M){return!!(M&&!v(M)&&typeof M.pipeThrough==="function"&&typeof M.getReader==="function"&&typeof M.cancel==="function")}function B(M){return!!(M&&!v(M)&&typeof M.getWriter==="function"&&typeof M.abort==="function")}function _(M){return!!(M&&!v(M)&&typeof M.readable==="object"&&typeof M.writable==="object")}function x(M){return k(M)||B(M)||_(M)}function w(M,A){if(M==null)return!1;if(A===!0)return typeof M[F]==="function";if(A===!1)return typeof M[T]==="function";return typeof M[F]==="function"||typeof M[T]==="function"}function y(M){if(!v(M))return null;let{_writableState:A,_readableState:j}=M,g=A||j;return!!(M.destroyed||M[E]||g!==null&&g!==void 0&&g.destroyed)}function d(M){if(!S(M))return null;if(M.writableEnded===!0)return!0;let A=M._writableState;if(A!==null&&A!==void 0&&A.errored)return!1;if(typeof(A===null||A===void 0?void 0:A.ended)!=="boolean")return null;return A.ended}function J0(M,A){if(!S(M))return null;if(M.writableFinished===!0)return!0;let j=M._writableState;if(j!==null&&j!==void 0&&j.errored)return!1;if(typeof(j===null||j===void 0?void 0:j.finished)!=="boolean")return null;return!!(j.finished||A===!1&&j.ended===!0&&j.length===0)}function I0(M){if(!D(M))return null;if(M.readableEnded===!0)return!0;let A=M._readableState;if(!A||A.errored)return!1;if(typeof(A===null||A===void 0?void 0:A.ended)!=="boolean")return null;return A.ended}function V0(M,A){if(!D(M))return null;let j=M._readableState;if(j!==null&&j!==void 0&&j.errored)return!1;if(typeof(j===null||j===void 0?void 0:j.endEmitted)!=="boolean")return null;return!!(j.endEmitted||A===!1&&j.ended===!0&&j.length===0)}function u(M){if(M&&M[P]!=null)return M[P];if(typeof(M===null||M===void 0?void 0:M.readable)!=="boolean")return null;if(y(M))return!1;return D(M)&&M.readable&&!V0(M)}function X0(M){if(M&&M[q]!=null)return M[q];if(typeof(M===null||M===void 0?void 0:M.writable)!=="boolean")return null;if(y(M))return!1;return S(M)&&M.writable&&!d(M)}function U(M,A){if(!v(M))return null;if(y(M))return!0;if((A===null||A===void 0?void 0:A.readable)!==!1&&u(M))return!1;if((A===null||A===void 0?void 0:A.writable)!==!1&&X0(M))return!1;return!0}function Q(M){var A,j;if(!v(M))return null;if(M.writableErrored)return M.writableErrored;return(A=(j=M._writableState)===null||j===void 0?void 0:j.errored)!==null&&A!==void 0?A:null}function J(M){var A,j;if(!v(M))return null;if(M.readableErrored)return M.readableErrored;return(A=(j=M._readableState)===null||j===void 0?void 0:j.errored)!==null&&A!==void 0?A:null}function Z(M){if(!v(M))return null;if(typeof M.closed==="boolean")return M.closed;let{_writableState:A,_readableState:j}=M;if(typeof(A===null||A===void 0?void 0:A.closed)==="boolean"||typeof(j===null||j===void 0?void 0:j.closed)==="boolean")return(A===null||A===void 0?void 0:A.closed)||(j===null||j===void 0?void 0:j.closed);if(typeof M._closed==="boolean"&&Y(M))return M._closed;return null}function Y(M){return typeof M._closed==="boolean"&&typeof M._defaultKeepAlive==="boolean"&&typeof M._removedConnection==="boolean"&&typeof M._removedContLen==="boolean"}function K(M){return typeof M._sent100==="boolean"&&Y(M)}function W(M){var A;return typeof M._consuming==="boolean"&&typeof M._dumped==="boolean"&&((A=M.req)===null||A===void 0?void 0:A.upgradeOrConnect)===void 0}function G(M){if(!v(M))return null;let{_writableState:A,_readableState:j}=M,g=A||j;return!g&&K(M)||!!(g&&g.autoDestroy&&g.emitClose&&g.closed===!1)}function X(M){var A;return!!(M&&((A=M[L])!==null&&A!==void 0?A:M.readableDidRead||M.readableAborted))}function $(M){var A,j,g,p,n,K0,r,l,Q0,m;return!!(M&&((A=(j=(g=(p=(n=(K0=M[V])!==null&&K0!==void 0?K0:M.readableErrored)!==null&&n!==void 0?n:M.writableErrored)!==null&&p!==void 0?p:(r=M._readableState)===null||r===void 0?void 0:r.errorEmitted)!==null&&g!==void 0?g:(l=M._writableState)===null||l===void 0?void 0:l.errorEmitted)!==null&&j!==void 0?j:(Q0=M._readableState)===null||Q0===void 0?void 0:Q0.errored)!==null&&A!==void 0?A:(m=M._writableState)===null||m===void 0?void 0:m.errored))}O.exports={isDestroyed:y,kIsDestroyed:E,isDisturbed:X,kIsDisturbed:L,isErrored:$,kIsErrored:V,isReadable:u,kIsReadable:P,kIsClosedPromise:z,kControllerErrorFunction:C,kIsWritable:q,isClosed:Z,isDuplexNodeStream:R,isFinished:U,isIterable:w,isReadableNodeStream:D,isReadableStream:k,isReadableEnded:I0,isReadableFinished:V0,isReadableErrored:J,isNodeStream:v,isWebStream:x,isWritable:X0,isWritableNodeStream:S,isWritableStream:B,isWritableEnded:d,isWritableFinished:J0,isWritableErrored:Q,isServerRequest:W,isServerResponse:K,willEmitClose:G,isTransformStream:_}}),fU=u0((I,O)=>{var F=dU(),{AbortError:T,codes:H}=zU(),{ERR_INVALID_ARG_TYPE:E,ERR_STREAM_PREMATURE_CLOSE:V}=H,{kEmptyObject:P,once:q}=MU(),{validateAbortSignal:L,validateFunction:z,validateObject:C,validateBoolean:D}=ZX(),{Promise:S,PromisePrototypeThen:R,SymbolDispose:v}=o0(),{isClosed:k,isReadable:B,isReadableNodeStream:_,isReadableStream:x,isReadableFinished:w,isReadableErrored:y,isWritable:d,isWritableNodeStream:J0,isWritableStream:I0,isWritableFinished:V0,isWritableErrored:u,isNodeStream:X0,willEmitClose:U,kIsClosedPromise:Q}=NU(),J;function Z(X){return X.setHeader&&typeof X.abort==="function"}var Y=()=>{};function K(X,$,M){var A,j;if(arguments.length===2)M=$,$=P;else if($==null)$=P;else C($,"options");if(z(M,"callback"),L($.signal,"options.signal"),M=q(M),x(X)||I0(X))return W(X,$,M);if(!X0(X))throw new E("stream",["ReadableStream","WritableStream","Stream"],X);let g=(A=$.readable)!==null&&A!==void 0?A:_(X),p=(j=$.writable)!==null&&j!==void 0?j:J0(X),n=X._writableState,K0=X._readableState,r=()=>{if(!X.writable)m()},l=U(X)&&_(X)===g&&J0(X)===p,Q0=V0(X,!1),m=()=>{if(Q0=!0,X.destroyed)l=!1;if(l&&(!X.readable||g))return;if(!g||i)M.call(X)},i=w(X,!1),g0=()=>{if(i=!0,X.destroyed)l=!1;if(l&&(!X.writable||p))return;if(!p||Q0)M.call(X)},f=(c)=>{M.call(X,c)},h=k(X),Y0=()=>{h=!0;let c=u(X)||y(X);if(c&&typeof c!=="boolean")return M.call(X,c);if(g&&!i&&_(X,!0)){if(!w(X,!1))return M.call(X,new V)}if(p&&!Q0){if(!V0(X,!1))return M.call(X,new V)}M.call(X)},t=()=>{h=!0;let c=u(X)||y(X);if(c&&typeof c!=="boolean")return M.call(X,c);M.call(X)},e=()=>{X.req.on("finish",m)};if(Z(X)){if(X.on("complete",m),!l)X.on("abort",Y0);if(X.req)e();else X.on("request",e)}else if(p&&!n)X.on("end",r),X.on("close",r);if(!l&&typeof X.aborted==="boolean")X.on("aborted",Y0);if(X.on("end",g0),X.on("finish",m),$.error!==!1)X.on("error",f);if(X.on("close",Y0),h)F.nextTick(Y0);else if(n!==null&&n!==void 0&&n.errorEmitted||K0!==null&&K0!==void 0&&K0.errorEmitted){if(!l)F.nextTick(t)}else if(!g&&(!l||B(X))&&(Q0||d(X)===!1))F.nextTick(t);else if(!p&&(!l||d(X))&&(i||B(X)===!1))F.nextTick(t);else if(K0&&X.req&&X.aborted)F.nextTick(t);let L0=()=>{if(M=Y,X.removeListener("aborted",Y0),X.removeListener("complete",m),X.removeListener("abort",Y0),X.removeListener("request",e),X.req)X.req.removeListener("finish",m);X.removeListener("end",r),X.removeListener("close",r),X.removeListener("finish",m),X.removeListener("end",g0),X.removeListener("error",f),X.removeListener("close",Y0)};if($.signal&&!h){let c=()=>{let o=M;L0(),o.call(X,new T(void 0,{cause:$.signal.reason}))};if($.signal.aborted)F.nextTick(c);else{J=J||MU().addAbortListener;let o=J($.signal,c),N0=M;M=q((...s)=>{o[v](),N0.apply(X,s)})}}return L0}function W(X,$,M){let A=!1,j=Y;if($.signal)if(j=()=>{A=!0,M.call(X,new T(void 0,{cause:$.signal.reason}))},$.signal.aborted)F.nextTick(j);else{J=J||MU().addAbortListener;let p=J($.signal,j),n=M;M=q((...K0)=>{p[v](),n.apply(X,K0)})}let g=(...p)=>{if(!A)F.nextTick(()=>M.apply(X,p))};return R(X[Q].promise,g,g),Y}function G(X,$){var M;let A=!1;if($===null)$=P;if((M=$)!==null&&M!==void 0&&M.cleanup)D($.cleanup,"cleanup"),A=$.cleanup;return new S((j,g)=>{let p=K(X,$,(n)=>{if(A)p();if(n)g(n);else j()})})}O.exports=K,O.exports.finished=G}),tU=u0((I,O)=>{var F=dU(),{aggregateTwoErrors:T,codes:{ERR_MULTIPLE_CALLBACK:H},AbortError:E}=zU(),{Symbol:V}=o0(),{kIsDestroyed:P,isDestroyed:q,isFinished:L,isServerRequest:z}=NU(),C=V("kDestroy"),D=V("kConstruct");function S(U,Q,J){if(U){if(U.stack,Q&&!Q.errored)Q.errored=U;if(J&&!J.errored)J.errored=U}}function R(U,Q){let J=this._readableState,Z=this._writableState,Y=Z||J;if(Z!==null&&Z!==void 0&&Z.destroyed||J!==null&&J!==void 0&&J.destroyed){if(typeof Q==="function")Q();return this}if(S(U,Z,J),Z)Z.destroyed=!0;if(J)J.destroyed=!0;if(!Y.constructed)this.once(C,function(K){v(this,T(K,U),Q)});else v(this,U,Q);return this}function v(U,Q,J){let Z=!1;function Y(K){if(Z)return;Z=!0;let{_readableState:W,_writableState:G}=U;if(S(K,G,W),G)G.closed=!0;if(W)W.closed=!0;if(typeof J==="function")J(K);if(K)F.nextTick(k,U,K);else F.nextTick(B,U)}try{U._destroy(Q||null,Y)}catch(K){Y(K)}}function k(U,Q){_(U,Q),B(U)}function B(U){let{_readableState:Q,_writableState:J}=U;if(J)J.closeEmitted=!0;if(Q)Q.closeEmitted=!0;if(J!==null&&J!==void 0&&J.emitClose||Q!==null&&Q!==void 0&&Q.emitClose)U.emit("close")}function _(U,Q){let{_readableState:J,_writableState:Z}=U;if(Z!==null&&Z!==void 0&&Z.errorEmitted||J!==null&&J!==void 0&&J.errorEmitted)return;if(Z)Z.errorEmitted=!0;if(J)J.errorEmitted=!0;U.emit("error",Q)}function x(){let U=this._readableState,Q=this._writableState;if(U)U.constructed=!0,U.closed=!1,U.closeEmitted=!1,U.destroyed=!1,U.errored=null,U.errorEmitted=!1,U.reading=!1,U.ended=U.readable===!1,U.endEmitted=U.readable===!1;if(Q)Q.constructed=!0,Q.destroyed=!1,Q.closed=!1,Q.closeEmitted=!1,Q.errored=null,Q.errorEmitted=!1,Q.finalCalled=!1,Q.prefinished=!1,Q.ended=Q.writable===!1,Q.ending=Q.writable===!1,Q.finished=Q.writable===!1}function w(U,Q,J){let{_readableState:Z,_writableState:Y}=U;if(Y!==null&&Y!==void 0&&Y.destroyed||Z!==null&&Z!==void 0&&Z.destroyed)return this;if(Z!==null&&Z!==void 0&&Z.autoDestroy||Y!==null&&Y!==void 0&&Y.autoDestroy)U.destroy(Q);else if(Q){if(Q.stack,Y&&!Y.errored)Y.errored=Q;if(Z&&!Z.errored)Z.errored=Q;if(J)F.nextTick(_,U,Q);else _(U,Q)}}function y(U,Q){if(typeof U._construct!=="function")return;let{_readableState:J,_writableState:Z}=U;if(J)J.constructed=!1;if(Z)Z.constructed=!1;if(U.once(D,Q),U.listenerCount(D)>1)return;F.nextTick(d,U)}function d(U){let Q=!1;function J(Z){if(Q){w(U,Z!==null&&Z!==void 0?Z:new H);return}Q=!0;let{_readableState:Y,_writableState:K}=U,W=K||Y;if(Y)Y.constructed=!0;if(K)K.constructed=!0;if(W.destroyed)U.emit(C,Z);else if(Z)w(U,Z,!0);else F.nextTick(J0,U)}try{U._construct((Z)=>{F.nextTick(J,Z)})}catch(Z){F.nextTick(J,Z)}}function J0(U){U.emit(D)}function I0(U){return(U===null||U===void 0?void 0:U.setHeader)&&typeof U.abort==="function"}function V0(U){U.emit("close")}function u(U,Q){U.emit("error",Q),F.nextTick(V0,U)}function X0(U,Q){if(!U||q(U))return;if(!Q&&!L(U))Q=new E;if(z(U))U.socket=null,U.destroy(Q);else if(I0(U))U.abort();else if(I0(U.req))U.req.abort();else if(typeof U.destroy==="function")U.destroy(Q);else if(typeof U.close==="function")U.close();else if(Q)F.nextTick(u,U,Q);else F.nextTick(V0,U);if(!U.destroyed)U[P]=!0}O.exports={construct:y,destroyer:X0,destroy:R,undestroy:x,errorOrDestroy:w}}),aX=u0((I,O)=>{var{ArrayIsArray:F,ObjectSetPrototypeOf:T}=o0(),{EventEmitter:H}=(UX(),h0(iU));function E(P){H.call(this,P)}T(E.prototype,H.prototype),T(E,H),E.prototype.pipe=function(P,q){let L=this;function z(B){if(P.writable&&P.write(B)===!1&&L.pause)L.pause()}L.on("data",z);function C(){if(L.readable&&L.resume)L.resume()}if(P.on("drain",C),!P._isStdio&&(!q||q.end!==!1))L.on("end",S),L.on("close",R);let D=!1;function S(){if(D)return;D=!0,P.end()}function R(){if(D)return;if(D=!0,typeof P.destroy==="function")P.destroy()}function v(B){if(k(),H.listenerCount(this,"error")===0)this.emit("error",B)}V(L,"error",v),V(P,"error",v);function k(){L.removeListener("data",z),P.removeListener("drain",C),L.removeListener("end",S),L.removeListener("close",R),L.removeListener("error",v),P.removeListener("error",v),L.removeListener("end",k),L.removeListener("close",k),P.removeListener("close",k)}return L.on("end",k),L.on("close",k),P.on("close",k),P.emit("pipe",L),P};function V(P,q,L){if(typeof P.prependListener==="function")return P.prependListener(q,L);if(!P._events||!P._events[q])P.on(q,L);else if(F(P._events[q]))P._events[q].unshift(L);else P._events[q]=[L,P._events[q]]}O.exports={Stream:E,prependListener:V}}),LX=u0((I,O)=>{var{SymbolDispose:F}=o0(),{AbortError:T,codes:H}=zU(),{isNodeStream:E,isWebStream:V,kControllerErrorFunction:P}=NU(),q=fU(),{ERR_INVALID_ARG_TYPE:L}=H,z,C=(D,S)=>{if(typeof D!=="object"||!("aborted"in D))throw new L(S,"AbortSignal",D)};O.exports.addAbortSignal=function(D,S){if(C(D,"signal"),!E(S)&&!V(S))throw new L("stream",["ReadableStream","WritableStream","Stream"],S);return O.exports.addAbortSignalNoValidate(D,S)},O.exports.addAbortSignalNoValidate=function(D,S){if(typeof D!=="object"||!("aborted"in D))return S;let R=E(S)?()=>{S.destroy(new T(void 0,{cause:D.reason}))}:()=>{S[P](new T(void 0,{cause:D.reason}))};if(D.aborted)R();else{z=z||MU().addAbortListener;let v=z(D,R);q(S,v[F])}return S}}),XJ=u0((I,O)=>{var{StringPrototypeSlice:F,SymbolIterator:T,TypedArrayPrototypeSet:H,Uint8Array:E}=o0(),{Buffer:V}=(HU(),h0(FU)),{inspect:P}=MU();O.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(q){let L={data:q,next:null};if(this.length>0)this.tail.next=L;else this.head=L;this.tail=L,++this.length}unshift(q){let L={data:q,next:this.head};if(this.length===0)this.tail=L;this.head=L,++this.length}shift(){if(this.length===0)return;let q=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,q}clear(){this.head=this.tail=null,this.length=0}join(q){if(this.length===0)return"";let L=this.head,z=""+L.data;while((L=L.next)!==null)z+=q+L.data;return z}concat(q){if(this.length===0)return V.alloc(0);let L=V.allocUnsafe(q>>>0),z=this.head,C=0;while(z)H(L,z.data,C),C+=z.data.length,z=z.next;return L}consume(q,L){let z=this.head.data;if(q<z.length){let C=z.slice(0,q);return this.head.data=z.slice(q),C}if(q===z.length)return this.shift();return L?this._getString(q):this._getBuffer(q)}first(){return this.head.data}*[T](){for(let q=this.head;q;q=q.next)yield q.data}_getString(q){let L="",z=this.head,C=0;do{let D=z.data;if(q>D.length)L+=D,q-=D.length;else{if(q===D.length)if(L+=D,++C,z.next)this.head=z.next;else this.head=this.tail=null;else L+=F(D,0,q),this.head=z,z.data=F(D,q);break}++C}while((z=z.next)!==null);return this.length-=C,L}_getBuffer(q){let L=V.allocUnsafe(q),z=q,C=this.head,D=0;do{let S=C.data;if(q>S.length)H(L,S,z-q),q-=S.length;else{if(q===S.length)if(H(L,S,z-q),++D,C.next)this.head=C.next;else this.head=this.tail=null;else H(L,new E(S.buffer,S.byteOffset,q),z-q),this.head=C,C.data=S.slice(q);break}++D}while((C=C.next)!==null);return this.length-=D,L}[Symbol.for("nodejs.util.inspect.custom")](q,L){return P(this,{...L,depth:0,customInspect:!1})}}}),EX=u0((I,O)=>{var{MathFloor:F,NumberIsInteger:T}=o0(),{validateInteger:H}=ZX(),{ERR_INVALID_ARG_VALUE:E}=zU().codes,V=16384,P=16;function q(D,S,R){return D.highWaterMark!=null?D.highWaterMark:S?D[R]:null}function L(D){return D?P:V}function z(D,S){if(H(S,"value",0),D)P=S;else V=S}function C(D,S,R,v){let k=q(S,v,R);if(k!=null){if(!T(k)||k<0){let B=v?`options.${R}`:"options.highWaterMark";throw new E(B,k)}return F(k)}return L(D.objectMode)}O.exports={getHighWaterMark:C,getDefaultHighWaterMark:L,setDefaultHighWaterMark:z}}),ZJ=u0((I,O)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var F=(HU(),h0(FU)),T=F.Buffer;function H(V,P){for(var q in V)P[q]=V[q]}if(T.from&&T.alloc&&T.allocUnsafe&&T.allocUnsafeSlow)O.exports=F;else H(F,I),I.Buffer=E;function E(V,P,q){return T(V,P,q)}E.prototype=Object.create(T.prototype),H(T,E),E.from=function(V,P,q){if(typeof V==="number")throw TypeError("Argument must not be a number");return T(V,P,q)},E.alloc=function(V,P,q){if(typeof V!=="number")throw TypeError("Argument must be a number");var L=T(V);if(P!==void 0)if(typeof q==="string")L.fill(P,q);else L.fill(P);else L.fill(0);return L},E.allocUnsafe=function(V){if(typeof V!=="number")throw TypeError("Argument must be a number");return T(V)},E.allocUnsafeSlow=function(V){if(typeof V!=="number")throw TypeError("Argument must be a number");return F.SlowBuffer(V)}}),QJ=u0((I)=>{var O=ZJ().Buffer,F=O.isEncoding||function(_){switch(_=""+_,_&&_.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 T(_){if(!_)return"utf8";var x;while(!0)switch(_){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 _;default:if(x)return;_=(""+_).toLowerCase(),x=!0}}function H(_){var x=T(_);if(typeof x!=="string"&&(O.isEncoding===F||!F(_)))throw Error("Unknown encoding: "+_);return x||_}I.StringDecoder=E;function E(_){this.encoding=H(_);var x;switch(this.encoding){case"utf16le":this.text=D,this.end=S,x=4;break;case"utf8":this.fillLast=L,x=4;break;case"base64":this.text=R,this.end=v,x=3;break;default:this.write=k,this.end=B;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=O.allocUnsafe(x)}E.prototype.write=function(_){if(_.length===0)return"";var x,w;if(this.lastNeed){if(x=this.fillLast(_),x===void 0)return"";w=this.lastNeed,this.lastNeed=0}else w=0;if(w<_.length)return x?x+this.text(_,w):this.text(_,w);return x||""},E.prototype.end=C,E.prototype.text=z,E.prototype.fillLast=function(_){if(this.lastNeed<=_.length)return _.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);_.copy(this.lastChar,this.lastTotal-this.lastNeed,0,_.length),this.lastNeed-=_.length};function V(_){if(_<=127)return 0;else if(_>>5===6)return 2;else if(_>>4===14)return 3;else if(_>>3===30)return 4;return _>>6===2?-1:-2}function P(_,x,w){var y=x.length-1;if(y<w)return 0;var d=V(x[y]);if(d>=0){if(d>0)_.lastNeed=d-1;return d}if(--y<w||d===-2)return 0;if(d=V(x[y]),d>=0){if(d>0)_.lastNeed=d-2;return d}if(--y<w||d===-2)return 0;if(d=V(x[y]),d>=0){if(d>0)if(d===2)d=0;else _.lastNeed=d-3;return d}return 0}function q(_,x,w){if((x[0]&192)!==128)return _.lastNeed=0,"�";if(_.lastNeed>1&&x.length>1){if((x[1]&192)!==128)return _.lastNeed=1,"�";if(_.lastNeed>2&&x.length>2){if((x[2]&192)!==128)return _.lastNeed=2,"�"}}}function L(_){var x=this.lastTotal-this.lastNeed,w=q(this,_,x);if(w!==void 0)return w;if(this.lastNeed<=_.length)return _.copy(this.lastChar,x,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);_.copy(this.lastChar,x,0,_.length),this.lastNeed-=_.length}function z(_,x){var w=P(this,_,x);if(!this.lastNeed)return _.toString("utf8",x);this.lastTotal=w;var y=_.length-(w-this.lastNeed);return _.copy(this.lastChar,0,y),_.toString("utf8",x,y)}function C(_){var x=_&&_.length?this.write(_):"";if(this.lastNeed)return x+"�";return x}function D(_,x){if((_.length-x)%2===0){var w=_.toString("utf16le",x);if(w){var y=w.charCodeAt(w.length-1);if(y>=55296&&y<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=_[_.length-2],this.lastChar[1]=_[_.length-1],w.slice(0,-1)}return w}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=_[_.length-1],_.toString("utf16le",x,_.length-1)}function S(_){var x=_&&_.length?this.write(_):"";if(this.lastNeed){var w=this.lastTotal-this.lastNeed;return x+this.lastChar.toString("utf16le",0,w)}return x}function R(_,x){var w=(_.length-x)%3;if(w===0)return _.toString("base64",x);if(this.lastNeed=3-w,this.lastTotal=3,w===1)this.lastChar[0]=_[_.length-1];else this.lastChar[0]=_[_.length-2],this.lastChar[1]=_[_.length-1];return _.toString("base64",x,_.length-w)}function v(_){var x=_&&_.length?this.write(_):"";if(this.lastNeed)return x+this.lastChar.toString("base64",0,3-this.lastNeed);return x}function k(_){return _.toString(this.encoding)}function B(_){return _&&_.length?this.write(_):""}}),JQ=u0((I,O)=>{var F=dU(),{PromisePrototypeThen:T,SymbolAsyncIterator:H,SymbolIterator:E}=o0(),{Buffer:V}=(HU(),h0(FU)),{ERR_INVALID_ARG_TYPE:P,ERR_STREAM_NULL_VALUES:q}=zU().codes;function L(z,C,D){let S;if(typeof C==="string"||C instanceof V)return new z({objectMode:!0,...D,read(){this.push(C),this.push(null)}});let R;if(C&&C[H])R=!0,S=C[H]();else if(C&&C[E])R=!1,S=C[E]();else throw new P("iterable",["Iterable"],C);let v=new z({objectMode:!0,highWaterMark:1,...D}),k=!1;v._read=function(){if(!k)k=!0,_()},v._destroy=function(x,w){T(B(x),()=>F.nextTick(w,x),(y)=>F.nextTick(w,y||x))};async function B(x){let w=x!==void 0&&x!==null,y=typeof S.throw==="function";if(w&&y){let{value:d,done:J0}=await S.throw(x);if(await d,J0)return}if(typeof S.return==="function"){let{value:d}=await S.return();await d}}async function _(){for(;;){try{let{value:x,done:w}=R?await S.next():S.next();if(w)v.push(null);else{let y=x&&typeof x.then==="function"?await x:x;if(y===null)throw k=!1,new q;else if(v.push(y))continue;else k=!1}}catch(x){v.destroy(x)}break}}return v}O.exports=L}),MX=u0((I,O)=>{var F=dU(),{ArrayPrototypeIndexOf:T,NumberIsInteger:H,NumberIsNaN:E,NumberParseInt:V,ObjectDefineProperties:P,ObjectKeys:q,ObjectSetPrototypeOf:L,Promise:z,SafeSet:C,SymbolAsyncDispose:D,SymbolAsyncIterator:S,Symbol:R}=o0();O.exports=s,s.ReadableState=N0;var{EventEmitter:v}=(UX(),h0(iU)),{Stream:k,prependListener:B}=aX(),{Buffer:_}=(HU(),h0(FU)),{addAbortSignal:x}=LX(),w=fU(),y=MU().debuglog("stream",(N)=>{y=N}),d=XJ(),J0=tU(),{getHighWaterMark:I0,getDefaultHighWaterMark:V0}=EX(),{aggregateTwoErrors:u,codes:{ERR_INVALID_ARG_TYPE:X0,ERR_METHOD_NOT_IMPLEMENTED:U,ERR_OUT_OF_RANGE:Q,ERR_STREAM_PUSH_AFTER_EOF:J,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:Z},AbortError:Y}=zU(),{validateObject:K}=ZX(),W=R("kPaused"),{StringDecoder:G}=QJ(),X=JQ();L(s.prototype,k.prototype),L(s,k);var $=()=>{},{errorOrDestroy:M}=J0,A=1,j=2,g=4,p=8,n=16,K0=32,r=64,l=128,Q0=256,m=512,i=1024,g0=2048,f=4096,h=8192,Y0=16384,t=32768,e=65536,L0=131072,c=262144;function o(N){return{enumerable:!1,get(){return(this.state&N)!==0},set(b){if(b)this.state|=N;else this.state&=~N}}}P(N0.prototype,{objectMode:o(A),ended:o(j),endEmitted:o(g),reading:o(p),constructed:o(n),sync:o(K0),needReadable:o(r),emittedReadable:o(l),readableListening:o(Q0),resumeScheduled:o(m),errorEmitted:o(i),emitClose:o(g0),autoDestroy:o(f),destroyed:o(h),closed:o(Y0),closeEmitted:o(t),multiAwaitDrain:o(e),readingMore:o(L0),dataEmitted:o(c)});function N0(N,b,a){if(typeof a!=="boolean")a=b instanceof xU();if(this.state=g0|f|n|K0,N&&N.objectMode)this.state|=A;if(a&&N&&N.readableObjectMode)this.state|=A;if(this.highWaterMark=N?I0(this,N,"readableHighWaterMark",a):V0(!1),this.buffer=new d,this.length=0,this.pipes=[],this.flowing=null,this[W]=null,N&&N.emitClose===!1)this.state&=~g0;if(N&&N.autoDestroy===!1)this.state&=~f;if(this.errored=null,this.defaultEncoding=N&&N.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,N&&N.encoding)this.decoder=new G(N.encoding),this.encoding=N.encoding}function s(N){if(!(this instanceof s))return new s(N);let b=this instanceof xU();if(this._readableState=new N0(N,this,b),N){if(typeof N.read==="function")this._read=N.read;if(typeof N.destroy==="function")this._destroy=N.destroy;if(typeof N.construct==="function")this._construct=N.construct;if(N.signal&&!b)x(N.signal,this)}k.call(this,N),J0.construct(this,()=>{if(this._readableState.needReadable)D0(this,this._readableState)})}s.prototype.destroy=J0.destroy,s.prototype._undestroy=J0.undestroy,s.prototype._destroy=function(N,b){b(N)},s.prototype[v.captureRejectionSymbol]=function(N){this.destroy(N)},s.prototype[D]=function(){let N;if(!this.destroyed)N=this.readableEnded?null:new Y,this.destroy(N);return new z((b,a)=>w(this,(U0)=>U0&&U0!==N?a(U0):b(null)))},s.prototype.push=function(N,b){return Z0(this,N,b,!1)},s.prototype.unshift=function(N,b){return Z0(this,N,b,!0)};function Z0(N,b,a,U0){y("readableAddChunk",b);let w0=N._readableState,W0;if((w0.state&A)===0){if(typeof b==="string"){if(a=a||w0.defaultEncoding,w0.encoding!==a)if(U0&&w0.encoding)b=_.from(b,a).toString(w0.encoding);else b=_.from(b,a),a=""}else if(b instanceof _)a="";else if(k._isUint8Array(b))b=k._uint8ArrayToBuffer(b),a="";else if(b!=null)W0=new X0("chunk",["string","Buffer","Uint8Array"],b)}if(W0)M(N,W0);else if(b===null)w0.state&=~p,O0(N,w0);else if((w0.state&A)!==0||b&&b.length>0)if(U0)if((w0.state&g)!==0)M(N,new Z);else if(w0.destroyed||w0.errored)return!1;else y0(N,w0,b,!0);else if(w0.ended)M(N,new J);else if(w0.destroyed||w0.errored)return!1;else if(w0.state&=~p,w0.decoder&&!a)if(b=w0.decoder.write(b),w0.objectMode||b.length!==0)y0(N,w0,b,!1);else D0(N,w0);else y0(N,w0,b,!1);else if(!U0)w0.state&=~p,D0(N,w0);return!w0.ended&&(w0.length<w0.highWaterMark||w0.length===0)}function y0(N,b,a,U0){if(b.flowing&&b.length===0&&!b.sync&&N.listenerCount("data")>0){if((b.state&e)!==0)b.awaitDrainWriters.clear();else b.awaitDrainWriters=null;b.dataEmitted=!0,N.emit("data",a)}else{if(b.length+=b.objectMode?1:a.length,U0)b.buffer.unshift(a);else b.buffer.push(a);if((b.state&r)!==0)C0(N)}D0(N,b)}s.prototype.isPaused=function(){let N=this._readableState;return N[W]===!0||N.flowing===!1},s.prototype.setEncoding=function(N){let b=new G(N);this._readableState.decoder=b,this._readableState.encoding=this._readableState.decoder.encoding;let a=this._readableState.buffer,U0="";for(let w0 of a)U0+=b.write(w0);if(a.clear(),U0!=="")a.push(U0);return this._readableState.length=U0.length,this};var F0=1073741824;function H0(N){if(N>F0)throw new Q("size","<= 1GiB",N);else N--,N|=N>>>1,N|=N>>>2,N|=N>>>4,N|=N>>>8,N|=N>>>16,N++;return N}function n0(N,b){if(N<=0||b.length===0&&b.ended)return 0;if((b.state&A)!==0)return 1;if(E(N)){if(b.flowing&&b.length)return b.buffer.first().length;return b.length}if(N<=b.length)return N;return b.ended?b.length:0}s.prototype.read=function(N){if(y("read",N),N===void 0)N=NaN;else if(!H(N))N=V(N,10);let b=this._readableState,a=N;if(N>b.highWaterMark)b.highWaterMark=H0(N);if(N!==0)b.state&=~l;if(N===0&&b.needReadable&&((b.highWaterMark!==0?b.length>=b.highWaterMark:b.length>0)||b.ended)){if(y("read: emitReadable",b.length,b.ended),b.length===0&&b.ended)KU(this);else C0(this);return null}if(N=n0(N,b),N===0&&b.ended){if(b.length===0)KU(this);return null}let U0=(b.state&r)!==0;if(y("need readable",U0),b.length===0||b.length-N<b.highWaterMark)U0=!0,y("length less than watermark",U0);if(b.ended||b.reading||b.destroyed||b.errored||!b.constructed)U0=!1,y("reading, ended or constructing",U0);else if(U0){if(y("do read"),b.state|=p|K0,b.length===0)b.state|=r;try{this._read(b.highWaterMark)}catch(W0){M(this,W0)}if(b.state&=~K0,!b.reading)N=n0(a,b)}let w0;if(N>0)w0=S0(N,b);else w0=null;if(w0===null)b.needReadable=b.length<=b.highWaterMark,N=0;else if(b.length-=N,b.multiAwaitDrain)b.awaitDrainWriters.clear();else b.awaitDrainWriters=null;if(b.length===0){if(!b.ended)b.needReadable=!0;if(a!==N&&b.ended)KU(this)}if(w0!==null&&!b.errorEmitted&&!b.closeEmitted)b.dataEmitted=!0,this.emit("data",w0);return w0};function O0(N,b){if(y("onEofChunk"),b.ended)return;if(b.decoder){let a=b.decoder.end();if(a&&a.length)b.buffer.push(a),b.length+=b.objectMode?1:a.length}if(b.ended=!0,b.sync)C0(N);else b.needReadable=!1,b.emittedReadable=!0,t0(N)}function C0(N){let b=N._readableState;if(y("emitReadable",b.needReadable,b.emittedReadable),b.needReadable=!1,!b.emittedReadable)y("emitReadable",b.flowing),b.emittedReadable=!0,F.nextTick(t0,N)}function t0(N){let b=N._readableState;if(y("emitReadable_",b.destroyed,b.length,b.ended),!b.destroyed&&!b.errored&&(b.length||b.ended))N.emit("readable"),b.emittedReadable=!1;b.needReadable=!b.flowing&&!b.ended&&b.length<=b.highWaterMark,M0(N)}function D0(N,b){if(!b.readingMore&&b.constructed)b.readingMore=!0,F.nextTick(T0,N,b)}function T0(N,b){while(!b.reading&&!b.ended&&(b.length<b.highWaterMark||b.flowing&&b.length===0)){let a=b.length;if(y("maybeReadMore read 0"),N.read(0),a===b.length)break}b.readingMore=!1}s.prototype._read=function(N){throw new U("_read()")},s.prototype.pipe=function(N,b){let a=this,U0=this._readableState;if(U0.pipes.length===1){if(!U0.multiAwaitDrain)U0.multiAwaitDrain=!0,U0.awaitDrainWriters=new C(U0.awaitDrainWriters?[U0.awaitDrainWriters]:[])}U0.pipes.push(N),y("pipe count=%d opts=%j",U0.pipes.length,b);let w0=(!b||b.end!==!1)&&N!==F.stdout&&N!==F.stderr?A0:f0;if(U0.endEmitted)F.nextTick(w0);else a.once("end",w0);N.on("unpipe",W0);function W0(l0,b0){if(y("onunpipe"),l0===a){if(b0&&b0.hasUnpiped===!1)b0.hasUnpiped=!0,x0()}}function A0(){y("onend"),N.end()}let m0,q0=!1;function x0(){if(y("cleanup"),N.removeListener("close",s0),N.removeListener("finish",c0),m0)N.removeListener("drain",m0);if(N.removeListener("error",z0),N.removeListener("unpipe",W0),a.removeListener("end",A0),a.removeListener("end",f0),a.removeListener("data",P0),q0=!0,m0&&U0.awaitDrainWriters&&(!N._writableState||N._writableState.needDrain))m0()}function AU(){if(!q0){if(U0.pipes.length===1&&U0.pipes[0]===N)y("false write response, pause",0),U0.awaitDrainWriters=N,U0.multiAwaitDrain=!1;else if(U0.pipes.length>1&&U0.pipes.includes(N))y("false write response, pause",U0.awaitDrainWriters.size),U0.awaitDrainWriters.add(N);a.pause()}if(!m0)m0=TU(a,N),N.on("drain",m0)}a.on("data",P0);function P0(l0){y("ondata");let b0=N.write(l0);if(y("dest.write",b0),b0===!1)AU()}function z0(l0){if(y("onerror",l0),f0(),N.removeListener("error",z0),N.listenerCount("error")===0){let b0=N._writableState||N._readableState;if(b0&&!b0.errorEmitted)M(N,l0);else N.emit("error",l0)}}B(N,"error",z0);function s0(){N.removeListener("finish",c0),f0()}N.once("close",s0);function c0(){y("onfinish"),N.removeListener("close",s0),f0()}N.once("finish",c0);function f0(){y("unpipe"),a.unpipe(N)}if(N.emit("pipe",a),N.writableNeedDrain===!0)AU();else if(!U0.flowing)y("pipe resume"),a.resume();return N};function TU(N,b){return function(){let a=N._readableState;if(a.awaitDrainWriters===b)y("pipeOnDrain",1),a.awaitDrainWriters=null;else if(a.multiAwaitDrain)y("pipeOnDrain",a.awaitDrainWriters.size),a.awaitDrainWriters.delete(b);if((!a.awaitDrainWriters||a.awaitDrainWriters.size===0)&&N.listenerCount("data"))N.resume()}}s.prototype.unpipe=function(N){let b=this._readableState,a={hasUnpiped:!1};if(b.pipes.length===0)return this;if(!N){let w0=b.pipes;b.pipes=[],this.pause();for(let W0=0;W0<w0.length;W0++)w0[W0].emit("unpipe",this,{hasUnpiped:!1});return this}let U0=T(b.pipes,N);if(U0===-1)return this;if(b.pipes.splice(U0,1),b.pipes.length===0)this.pause();return N.emit("unpipe",this,a),this},s.prototype.on=function(N,b){let a=k.prototype.on.call(this,N,b),U0=this._readableState;if(N==="data"){if(U0.readableListening=this.listenerCount("readable")>0,U0.flowing!==!1)this.resume()}else if(N==="readable"){if(!U0.endEmitted&&!U0.readableListening){if(U0.readableListening=U0.needReadable=!0,U0.flowing=!1,U0.emittedReadable=!1,y("on readable",U0.length,U0.reading),U0.length)C0(this);else if(!U0.reading)F.nextTick(k0,this)}}return a},s.prototype.addListener=s.prototype.on,s.prototype.removeListener=function(N,b){let a=k.prototype.removeListener.call(this,N,b);if(N==="readable")F.nextTick(E0,this);return a},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(N){let b=k.prototype.removeAllListeners.apply(this,arguments);if(N==="readable"||N===void 0)F.nextTick(E0,this);return b};function E0(N){let b=N._readableState;if(b.readableListening=N.listenerCount("readable")>0,b.resumeScheduled&&b[W]===!1)b.flowing=!0;else if(N.listenerCount("data")>0)N.resume();else if(!b.readableListening)b.flowing=null}function k0(N){y("readable nexttick read 0"),N.read(0)}s.prototype.resume=function(){let N=this._readableState;if(!N.flowing)y("resume"),N.flowing=!N.readableListening,DU(this,N);return N[W]=!1,this};function DU(N,b){if(!b.resumeScheduled)b.resumeScheduled=!0,F.nextTick(j0,N,b)}function j0(N,b){if(y("resume",b.reading),!b.reading)N.read(0);if(b.resumeScheduled=!1,N.emit("resume"),M0(N),b.flowing&&!b.reading)N.read(0)}s.prototype.pause=function(){if(y("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1)y("pause"),this._readableState.flowing=!1,this.emit("pause");return this._readableState[W]=!0,this};function M0(N){let b=N._readableState;y("flow",b.flowing);while(b.flowing&&N.read()!==null);}s.prototype.wrap=function(N){let b=!1;N.on("data",(U0)=>{if(!this.push(U0)&&N.pause)b=!0,N.pause()}),N.on("end",()=>{this.push(null)}),N.on("error",(U0)=>{M(this,U0)}),N.on("close",()=>{this.destroy()}),N.on("destroy",()=>{this.destroy()}),this._read=()=>{if(b&&N.resume)b=!1,N.resume()};let a=q(N);for(let U0=1;U0<a.length;U0++){let w0=a[U0];if(this[w0]===void 0&&typeof N[w0]==="function")this[w0]=N[w0].bind(N)}return this},s.prototype[S]=function(){return CU(this)},s.prototype.iterator=function(N){if(N!==void 0)K(N,"options");return CU(this,N)};function CU(N,b){if(typeof N.read!=="function")N=s.wrap(N,{objectMode:!0});let a=v0(N,b);return a.stream=N,a}async function*v0(N,b){let a=$;function U0(A0){if(this===N)a(),a=$;else a=A0}N.on("readable",U0);let w0,W0=w(N,{writable:!1},(A0)=>{w0=A0?u(w0,A0):null,a(),a=$});try{while(!0){let A0=N.destroyed?null:N.read();if(A0!==null)yield A0;else if(w0)throw w0;else if(w0===null)return;else await new z(U0)}}catch(A0){throw w0=u(w0,A0),w0}finally{if((w0||(b===null||b===void 0?void 0:b.destroyOnReturn)!==!1)&&(w0===void 0||N._readableState.autoDestroy))J0.destroyer(N,null);else N.off("readable",U0),W0()}}P(s.prototype,{readable:{__proto__:null,get(){let N=this._readableState;return!!N&&N.readable!==!1&&!N.destroyed&&!N.errorEmitted&&!N.endEmitted},set(N){if(this._readableState)this._readableState.readable=!!N}},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(N){if(this._readableState)this._readableState.flowing=N}},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(N){if(!this._readableState)return;this._readableState.destroyed=N}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),P(N0.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[W]!==!1},set(N){this[W]=!!N}}}),s._fromList=S0;function S0(N,b){if(b.length===0)return null;let a;if(b.objectMode)a=b.buffer.shift();else if(!N||N>=b.length){if(b.decoder)a=b.buffer.join("");else if(b.buffer.length===1)a=b.buffer.first();else a=b.buffer.concat(b.length);b.buffer.clear()}else a=b.buffer.consume(N,b.decoder);return a}function KU(N){let b=N._readableState;if(y("endReadable",b.endEmitted),!b.endEmitted)b.ended=!0,F.nextTick(_0,b,N)}function _0(N,b){if(y("endReadableNT",N.endEmitted,N.length),!N.errored&&!N.closeEmitted&&!N.endEmitted&&N.length===0){if(N.endEmitted=!0,b.emit("end"),b.writable&&b.allowHalfOpen===!1)F.nextTick(B0,b);else if(N.autoDestroy){let a=b._writableState;if(!a||a.autoDestroy&&(a.finished||a.writable===!1))b.destroy()}}}function B0(N){if(N.writable&&!N.writableEnded&&!N.destroyed)N.end()}s.from=function(N,b){return X(s,N,b)};var OU;function R0(){if(OU===void 0)OU={};return OU}s.fromWeb=function(N,b){return R0().newStreamReadableFromReadableStream(N,b)},s.toWeb=function(N,b){return R0().newReadableStreamFromStreamReadable(N,b)},s.wrap=function(N,b){var a,U0;return new s({objectMode:(a=(U0=N.readableObjectMode)!==null&&U0!==void 0?U0:N.objectMode)!==null&&a!==void 0?a:!0,...b,destroy(w0,W0){J0.destroyer(N,w0),W0(w0)}}).wrap(N)}}),eX=u0((I,O)=>{var F=dU(),{ArrayPrototypeSlice:T,Error:H,FunctionPrototypeSymbolHasInstance:E,ObjectDefineProperty:V,ObjectDefineProperties:P,ObjectSetPrototypeOf:q,StringPrototypeToLowerCase:L,Symbol:z,SymbolHasInstance:C}=o0();O.exports=K,K.WritableState=Z;var{EventEmitter:D}=(UX(),h0(iU)),S=aX().Stream,{Buffer:R}=(HU(),h0(FU)),v=tU(),{addAbortSignal:k}=LX(),{getHighWaterMark:B,getDefaultHighWaterMark:_}=EX(),{ERR_INVALID_ARG_TYPE:x,ERR_METHOD_NOT_IMPLEMENTED:w,ERR_MULTIPLE_CALLBACK:y,ERR_STREAM_CANNOT_PIPE:d,ERR_STREAM_DESTROYED:J0,ERR_STREAM_ALREADY_FINISHED:I0,ERR_STREAM_NULL_VALUES:V0,ERR_STREAM_WRITE_AFTER_END:u,ERR_UNKNOWN_ENCODING:X0}=zU().codes,{errorOrDestroy:U}=v;q(K.prototype,S.prototype),q(K,S);function Q(){}var J=z("kOnFinished");function Z(f,h,Y0){if(typeof Y0!=="boolean")Y0=h instanceof xU();if(this.objectMode=!!(f&&f.objectMode),Y0)this.objectMode=this.objectMode||!!(f&&f.writableObjectMode);this.highWaterMark=f?B(this,f,"writableHighWaterMark",Y0):_(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let t=!!(f&&f.decodeStrings===!1);this.decodeStrings=!t,this.defaultEncoding=f&&f.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=M.bind(void 0,h),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,Y(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!f||f.emitClose!==!1,this.autoDestroy=!f||f.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[J]=[]}function Y(f){f.buffered=[],f.bufferedIndex=0,f.allBuffers=!0,f.allNoop=!0}Z.prototype.getBuffer=function(){return T(this.buffered,this.bufferedIndex)},V(Z.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function K(f){let h=this instanceof xU();if(!h&&!E(K,this))return new K(f);if(this._writableState=new Z(f,this,h),f){if(typeof f.write==="function")this._write=f.write;if(typeof f.writev==="function")this._writev=f.writev;if(typeof f.destroy==="function")this._destroy=f.destroy;if(typeof f.final==="function")this._final=f.final;if(typeof f.construct==="function")this._construct=f.construct;if(f.signal)k(f.signal,this)}S.call(this,f),v.construct(this,()=>{let Y0=this._writableState;if(!Y0.writing)p(this,Y0);l(this,Y0)})}V(K,C,{__proto__:null,value:function(f){if(E(this,f))return!0;if(this!==K)return!1;return f&&f._writableState instanceof Z}}),K.prototype.pipe=function(){U(this,new d)};function W(f,h,Y0,t){let e=f._writableState;if(typeof Y0==="function")t=Y0,Y0=e.defaultEncoding;else{if(!Y0)Y0=e.defaultEncoding;else if(Y0!=="buffer"&&!R.isEncoding(Y0))throw new X0(Y0);if(typeof t!=="function")t=Q}if(h===null)throw new V0;else if(!e.objectMode)if(typeof h==="string"){if(e.decodeStrings!==!1)h=R.from(h,Y0),Y0="buffer"}else if(h instanceof R)Y0="buffer";else if(S._isUint8Array(h))h=S._uint8ArrayToBuffer(h),Y0="buffer";else throw new x("chunk",["string","Buffer","Uint8Array"],h);let L0;if(e.ending)L0=new u;else if(e.destroyed)L0=new J0("write");if(L0)return F.nextTick(t,L0),U(f,L0,!0),L0;return e.pendingcb++,G(f,e,h,Y0,t)}K.prototype.write=function(f,h,Y0){return W(this,f,h,Y0)===!0},K.prototype.cork=function(){this._writableState.corked++},K.prototype.uncork=function(){let f=this._writableState;if(f.corked){if(f.corked--,!f.writing)p(this,f)}},K.prototype.setDefaultEncoding=function(f){if(typeof f==="string")f=L(f);if(!R.isEncoding(f))throw new X0(f);return this._writableState.defaultEncoding=f,this};function G(f,h,Y0,t,e){let L0=h.objectMode?1:Y0.length;h.length+=L0;let c=h.length<h.highWaterMark;if(!c)h.needDrain=!0;if(h.writing||h.corked||h.errored||!h.constructed){if(h.buffered.push({chunk:Y0,encoding:t,callback:e}),h.allBuffers&&t!=="buffer")h.allBuffers=!1;if(h.allNoop&&e!==Q)h.allNoop=!1}else h.writelen=L0,h.writecb=e,h.writing=!0,h.sync=!0,f._write(Y0,t,h.onwrite),h.sync=!1;return c&&!h.errored&&!h.destroyed}function X(f,h,Y0,t,e,L0,c){if(h.writelen=t,h.writecb=c,h.writing=!0,h.sync=!0,h.destroyed)h.onwrite(new J0("write"));else if(Y0)f._writev(e,h.onwrite);else f._write(e,L0,h.onwrite);h.sync=!1}function $(f,h,Y0,t){--h.pendingcb,t(Y0),g(h),U(f,Y0)}function M(f,h){let Y0=f._writableState,t=Y0.sync,e=Y0.writecb;if(typeof e!=="function"){U(f,new y);return}if(Y0.writing=!1,Y0.writecb=null,Y0.length-=Y0.writelen,Y0.writelen=0,h){if(h.stack,!Y0.errored)Y0.errored=h;if(f._readableState&&!f._readableState.errored)f._readableState.errored=h;if(t)F.nextTick($,f,Y0,h,e);else $(f,Y0,h,e)}else{if(Y0.buffered.length>Y0.bufferedIndex)p(f,Y0);if(t)if(Y0.afterWriteTickInfo!==null&&Y0.afterWriteTickInfo.cb===e)Y0.afterWriteTickInfo.count++;else Y0.afterWriteTickInfo={count:1,cb:e,stream:f,state:Y0},F.nextTick(A,Y0.afterWriteTickInfo);else j(f,Y0,1,e)}}function A({stream:f,state:h,count:Y0,cb:t}){return h.afterWriteTickInfo=null,j(f,h,Y0,t)}function j(f,h,Y0,t){if(!h.ending&&!f.destroyed&&h.length===0&&h.needDrain)h.needDrain=!1,f.emit("drain");while(Y0-- >0)h.pendingcb--,t();if(h.destroyed)g(h);l(f,h)}function g(f){if(f.writing)return;for(let e=f.bufferedIndex;e<f.buffered.length;++e){var h;let{chunk:L0,callback:c}=f.buffered[e],o=f.objectMode?1:L0.length;f.length-=o,c((h=f.errored)!==null&&h!==void 0?h:new J0("write"))}let Y0=f[J].splice(0);for(let e=0;e<Y0.length;e++){var t;Y0[e]((t=f.errored)!==null&&t!==void 0?t:new J0("end"))}Y(f)}function p(f,h){if(h.corked||h.bufferProcessing||h.destroyed||!h.constructed)return;let{buffered:Y0,bufferedIndex:t,objectMode:e}=h,L0=Y0.length-t;if(!L0)return;let c=t;if(h.bufferProcessing=!0,L0>1&&f._writev){h.pendingcb-=L0-1;let o=h.allNoop?Q:(s)=>{for(let Z0=c;Z0<Y0.length;++Z0)Y0[Z0].callback(s)},N0=h.allNoop&&c===0?Y0:T(Y0,c);N0.allBuffers=h.allBuffers,X(f,h,!0,h.length,N0,"",o),Y(h)}else{do{let{chunk:o,encoding:N0,callback:s}=Y0[c];Y0[c++]=null;let Z0=e?1:o.length;X(f,h,!1,Z0,o,N0,s)}while(c<Y0.length&&!h.writing);if(c===Y0.length)Y(h);else if(c>256)Y0.splice(0,c),h.bufferedIndex=0;else h.bufferedIndex=c}h.bufferProcessing=!1}K.prototype._write=function(f,h,Y0){if(this._writev)this._writev([{chunk:f,encoding:h}],Y0);else throw new w("_write()")},K.prototype._writev=null,K.prototype.end=function(f,h,Y0){let t=this._writableState;if(typeof f==="function")Y0=f,f=null,h=null;else if(typeof h==="function")Y0=h,h=null;let e;if(f!==null&&f!==void 0){let L0=W(this,f,h);if(L0 instanceof H)e=L0}if(t.corked)t.corked=1,this.uncork();if(e);else if(!t.errored&&!t.ending)t.ending=!0,l(this,t,!0),t.ended=!0;else if(t.finished)e=new I0("end");else if(t.destroyed)e=new J0("end");if(typeof Y0==="function")if(e||t.finished)F.nextTick(Y0,e);else t[J].push(Y0);return this};function n(f){return f.ending&&!f.destroyed&&f.constructed&&f.length===0&&!f.errored&&f.buffered.length===0&&!f.finished&&!f.writing&&!f.errorEmitted&&!f.closeEmitted}function K0(f,h){let Y0=!1;function t(e){if(Y0){U(f,e!==null&&e!==void 0?e:y());return}if(Y0=!0,h.pendingcb--,e){let L0=h[J].splice(0);for(let c=0;c<L0.length;c++)L0[c](e);U(f,e,h.sync)}else if(n(h))h.prefinished=!0,f.emit("prefinish"),h.pendingcb++,F.nextTick(Q0,f,h)}h.sync=!0,h.pendingcb++;try{f._final(t)}catch(e){t(e)}h.sync=!1}function r(f,h){if(!h.prefinished&&!h.finalCalled)if(typeof f._final==="function"&&!h.destroyed)h.finalCalled=!0,K0(f,h);else h.prefinished=!0,f.emit("prefinish")}function l(f,h,Y0){if(n(h)){if(r(f,h),h.pendingcb===0){if(Y0)h.pendingcb++,F.nextTick((t,e)=>{if(n(e))Q0(t,e);else e.pendingcb--},f,h);else if(n(h))h.pendingcb++,Q0(f,h)}}}function Q0(f,h){h.pendingcb--,h.finished=!0;let Y0=h[J].splice(0);for(let t=0;t<Y0.length;t++)Y0[t]();if(f.emit("finish"),h.autoDestroy){let t=f._readableState;if(!t||t.autoDestroy&&(t.endEmitted||t.readable===!1))f.destroy()}}P(K.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(f){if(this._writableState)this._writableState.destroyed=f}},writable:{__proto__:null,get(){let f=this._writableState;return!!f&&f.writable!==!1&&!f.destroyed&&!f.errored&&!f.ending&&!f.ended},set(f){if(this._writableState)this._writableState.writable=!!f}},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 f=this._writableState;if(!f)return!1;return!f.destroyed&&!f.ending&&f.needDrain}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});var m=v.destroy;K.prototype.destroy=function(f,h){let Y0=this._writableState;if(!Y0.destroyed&&(Y0.bufferedIndex<Y0.buffered.length||Y0[J].length))F.nextTick(g,Y0);return m.call(this,f,h),this},K.prototype._undestroy=v.undestroy,K.prototype._destroy=function(f,h){h(f)},K.prototype[D.captureRejectionSymbol]=function(f){this.destroy(f)};var i;function g0(){if(i===void 0)i={};return i}K.fromWeb=function(f,h){return g0().newStreamWritableFromWritableStream(f,h)},K.toWeb=function(f){return g0().newWritableStreamFromStreamWritable(f)}}),YJ=u0((I,O)=>{var F=dU(),T=(HU(),h0(FU)),{isReadable:H,isWritable:E,isIterable:V,isNodeStream:P,isReadableNodeStream:q,isWritableNodeStream:L,isDuplexNodeStream:z,isReadableStream:C,isWritableStream:D}=NU(),S=fU(),{AbortError:R,codes:{ERR_INVALID_ARG_TYPE:v,ERR_INVALID_RETURN_VALUE:k}}=zU(),{destroyer:B}=tU(),_=xU(),x=MX(),w=eX(),{createDeferredPromise:y}=MU(),d=JQ(),J0=globalThis.Blob||T.Blob,I0=typeof J0<"u"?function(J){return J instanceof J0}:function(J){return!1},V0=globalThis.AbortController||XX().AbortController,{FunctionPrototypeCall:u}=o0();class X0 extends _{constructor(J){super(J);if((J===null||J===void 0?void 0:J.readable)===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if((J===null||J===void 0?void 0:J.writable)===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}}O.exports=function J(Z,Y){if(z(Z))return Z;if(q(Z))return Q({readable:Z});if(L(Z))return Q({writable:Z});if(P(Z))return Q({writable:!1,readable:!1});if(C(Z))return Q({readable:x.fromWeb(Z)});if(D(Z))return Q({writable:w.fromWeb(Z)});if(typeof Z==="function"){let{value:W,write:G,final:X,destroy:$}=U(Z);if(V(W))return d(X0,W,{objectMode:!0,write:G,final:X,destroy:$});let M=W===null||W===void 0?void 0:W.then;if(typeof M==="function"){let A,j=u(M,W,(g)=>{if(g!=null)throw new k("nully","body",g)},(g)=>{B(A,g)});return A=new X0({objectMode:!0,readable:!1,write:G,final(g){X(async()=>{try{await j,F.nextTick(g,null)}catch(p){F.nextTick(g,p)}})},destroy:$})}throw new k("Iterable, AsyncIterable or AsyncFunction",Y,W)}if(I0(Z))return J(Z.arrayBuffer());if(V(Z))return d(X0,Z,{objectMode:!0,writable:!1});if(C(Z===null||Z===void 0?void 0:Z.readable)&&D(Z===null||Z===void 0?void 0:Z.writable))return X0.fromWeb(Z);if(typeof(Z===null||Z===void 0?void 0:Z.writable)==="object"||typeof(Z===null||Z===void 0?void 0:Z.readable)==="object"){let W=Z!==null&&Z!==void 0&&Z.readable?q(Z===null||Z===void 0?void 0:Z.readable)?Z===null||Z===void 0?void 0:Z.readable:J(Z.readable):void 0,G=Z!==null&&Z!==void 0&&Z.writable?L(Z===null||Z===void 0?void 0:Z.writable)?Z===null||Z===void 0?void 0:Z.writable:J(Z.writable):void 0;return Q({readable:W,writable:G})}let K=Z===null||Z===void 0?void 0:Z.then;if(typeof K==="function"){let W;return u(K,Z,(G)=>{if(G!=null)W.push(G);W.push(null)},(G)=>{B(W,G)}),W=new X0({objectMode:!0,writable:!1,read(){}})}throw new v(Y,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],Z)};function U(J){let{promise:Z,resolve:Y}=y(),K=new V0,W=K.signal;return{value:J(async function*(){while(!0){let G=Z;Z=null;let{chunk:X,done:$,cb:M}=await G;if(F.nextTick(M),$)return;if(W.aborted)throw new R(void 0,{cause:W.reason});({promise:Z,resolve:Y}=y()),yield X}}(),{signal:W}),write(G,X,$){let M=Y;Y=null,M({chunk:G,done:!1,cb:$})},final(G){let X=Y;Y=null,X({done:!0,cb:G})},destroy(G,X){K.abort(),X(G)}}}function Q(J){let Z=J.readable&&typeof J.readable.read!=="function"?x.wrap(J.readable):J.readable,Y=J.writable,K=!!H(Z),W=!!E(Y),G,X,$,M,A;function j(g){let p=M;if(M=null,p)p(g);else if(g)A.destroy(g)}if(A=new X0({readableObjectMode:!!(Z!==null&&Z!==void 0&&Z.readableObjectMode),writableObjectMode:!!(Y!==null&&Y!==void 0&&Y.writableObjectMode),readable:K,writable:W}),W)S(Y,(g)=>{if(W=!1,g)B(Z,g);j(g)}),A._write=function(g,p,n){if(Y.write(g,p))n();else G=n},A._final=function(g){Y.end(),X=g},Y.on("drain",function(){if(G){let g=G;G=null,g()}}),Y.on("finish",function(){if(X){let g=X;X=null,g()}});if(K)S(Z,(g)=>{if(K=!1,g)B(Z,g);j(g)}),Z.on("readable",function(){if($){let g=$;$=null,g()}}),Z.on("end",function(){A.push(null)}),A._read=function(){while(!0){let g=Z.read();if(g===null){$=A._read;return}if(!A.push(g))return}};return A._destroy=function(g,p){if(!g&&M!==null)g=new R;if($=null,G=null,X=null,M===null)p(g);else M=p,B(Y,g),B(Z,g)},A}}),xU=u0((I,O)=>{var{ObjectDefineProperties:F,ObjectGetOwnPropertyDescriptor:T,ObjectKeys:H,ObjectSetPrototypeOf:E}=o0();O.exports=q;var V=MX(),P=eX();E(q.prototype,V.prototype),E(q,V);{let D=H(P.prototype);for(let S=0;S<D.length;S++){let R=D[S];if(!q.prototype[R])q.prototype[R]=P.prototype[R]}}function q(D){if(!(this instanceof q))return new q(D);if(V.call(this,D),P.call(this,D),D){if(this.allowHalfOpen=D.allowHalfOpen!==!1,D.readable===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if(D.writable===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}else this.allowHalfOpen=!0}F(q.prototype,{writable:{__proto__:null,...T(P.prototype,"writable")},writableHighWaterMark:{__proto__:null,...T(P.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...T(P.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...T(P.prototype,"writableBuffer")},writableLength:{__proto__:null,...T(P.prototype,"writableLength")},writableFinished:{__proto__:null,...T(P.prototype,"writableFinished")},writableCorked:{__proto__:null,...T(P.prototype,"writableCorked")},writableEnded:{__proto__:null,...T(P.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...T(P.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){if(this._readableState===void 0||this._writableState===void 0)return!1;return this._readableState.destroyed&&this._writableState.destroyed},set(D){if(this._readableState&&this._writableState)this._readableState.destroyed=D,this._writableState.destroyed=D}}});var L;function z(){if(L===void 0)L={};return L}q.fromWeb=function(D,S){return z().newStreamDuplexFromReadableWritablePair(D,S)},q.toWeb=function(D){return z().newReadableWritablePairFromDuplex(D)};var C;q.from=function(D){if(!C)C=YJ();return C(D,"body")}}),VQ=u0((I,O)=>{var{ObjectSetPrototypeOf:F,Symbol:T}=o0();O.exports=q;var{ERR_METHOD_NOT_IMPLEMENTED:H}=zU().codes,E=xU(),{getHighWaterMark:V}=EX();F(q.prototype,E.prototype),F(q,E);var P=T("kCallback");function q(C){if(!(this instanceof q))return new q(C);let D=C?V(this,C,"readableHighWaterMark",!0):null;if(D===0)C={...C,highWaterMark:null,readableHighWaterMark:D,writableHighWaterMark:C.writableHighWaterMark||0};if(E.call(this,C),this._readableState.sync=!1,this[P]=null,C){if(typeof C.transform==="function")this._transform=C.transform;if(typeof C.flush==="function")this._flush=C.flush}this.on("prefinish",z)}function L(C){if(typeof this._flush==="function"&&!this.destroyed)this._flush((D,S)=>{if(D){if(C)C(D);else this.destroy(D);return}if(S!=null)this.push(S);if(this.push(null),C)C()});else if(this.push(null),C)C()}function z(){if(this._final!==L)L.call(this)}q.prototype._final=L,q.prototype._transform=function(C,D,S){throw new H("_transform()")},q.prototype._write=function(C,D,S){let R=this._readableState,v=this._writableState,k=R.length;this._transform(C,D,(B,_)=>{if(B){S(B);return}if(_!=null)this.push(_);if(v.ended||k===R.length||R.length<R.highWaterMark)S();else this[P]=S})},q.prototype._read=function(){if(this[P]){let C=this[P];this[P]=null,C()}}}),GQ=u0((I,O)=>{var{ObjectSetPrototypeOf:F}=o0();O.exports=H;var T=VQ();F(H.prototype,T.prototype),F(H,T);function H(E){if(!(this instanceof H))return new H(E);T.call(this,E)}H.prototype._transform=function(E,V,P){P(null,E)}}),iX=u0((I,O)=>{var F=dU(),{ArrayIsArray:T,Promise:H,SymbolAsyncIterator:E,SymbolDispose:V}=o0(),P=fU(),{once:q}=MU(),L=tU(),z=xU(),{aggregateTwoErrors:C,codes:{ERR_INVALID_ARG_TYPE:D,ERR_INVALID_RETURN_VALUE:S,ERR_MISSING_ARGS:R,ERR_STREAM_DESTROYED:v,ERR_STREAM_PREMATURE_CLOSE:k},AbortError:B}=zU(),{validateFunction:_,validateAbortSignal:x}=ZX(),{isIterable:w,isReadable:y,isReadableNodeStream:d,isNodeStream:J0,isTransformStream:I0,isWebStream:V0,isReadableStream:u,isReadableFinished:X0}=NU(),U=globalThis.AbortController||XX().AbortController,Q,J,Z;function Y(g,p,n){let K0=!1;g.on("close",()=>{K0=!0});let r=P(g,{readable:p,writable:n},(l)=>{K0=!l});return{destroy:(l)=>{if(K0)return;K0=!0,L.destroyer(g,l||new v("pipe"))},cleanup:r}}function K(g){return _(g[g.length-1],"streams[stream.length - 1]"),g.pop()}function W(g){if(w(g))return g;else if(d(g))return G(g);throw new D("val",["Readable","Iterable","AsyncIterable"],g)}async function*G(g){if(!J)J=MX();yield*J.prototype[E].call(g)}async function X(g,p,n,{end:K0}){let r,l=null,Q0=(g0)=>{if(g0)r=g0;if(l){let f=l;l=null,f()}},m=()=>new H((g0,f)=>{if(r)f(r);else l=()=>{if(r)f(r);else g0()}});p.on("drain",Q0);let i=P(p,{readable:!1},Q0);try{if(p.writableNeedDrain)await m();for await(let g0 of g)if(!p.write(g0))await m();if(K0)p.end(),await m();n()}catch(g0){n(r!==g0?C(r,g0):g0)}finally{i(),p.off("drain",Q0)}}async function $(g,p,n,{end:K0}){if(I0(p))p=p.writable;let r=p.getWriter();try{for await(let l of g)await r.ready,r.write(l).catch(()=>{});if(await r.ready,K0)await r.close();n()}catch(l){try{await r.abort(l),n(l)}catch(Q0){n(Q0)}}}function M(...g){return A(g,q(K(g)))}function A(g,p,n){if(g.length===1&&T(g[0]))g=g[0];if(g.length<2)throw new R("streams");let K0=new U,r=K0.signal,l=n===null||n===void 0?void 0:n.signal,Q0=[];x(l,"options.signal");function m(){e(new B)}Z=Z||MU().addAbortListener;let i;if(l)i=Z(l,m);let g0,f,h=[],Y0=0;function t(s){e(s,--Y0===0)}function e(s,Z0){var y0;if(s&&(!g0||g0.code==="ERR_STREAM_PREMATURE_CLOSE"))g0=s;if(!g0&&!Z0)return;while(h.length)h.shift()(g0);if((y0=i)===null||y0===void 0||y0[V](),K0.abort(),Z0){if(!g0)Q0.forEach((F0)=>F0());F.nextTick(p,g0,f)}}let L0;for(let s=0;s<g.length;s++){let Z0=g[s],y0=s<g.length-1,F0=s>0,H0=y0||(n===null||n===void 0?void 0:n.end)!==!1,n0=s===g.length-1;if(J0(Z0)){let O0=function(C0){if(C0&&C0.name!=="AbortError"&&C0.code!=="ERR_STREAM_PREMATURE_CLOSE")t(C0)};var c=O0;if(H0){let{destroy:C0,cleanup:t0}=Y(Z0,y0,F0);if(h.push(C0),y(Z0)&&n0)Q0.push(t0)}if(Z0.on("error",O0),y(Z0)&&n0)Q0.push(()=>{Z0.removeListener("error",O0)})}if(s===0)if(typeof Z0==="function"){if(L0=Z0({signal:r}),!w(L0))throw new S("Iterable, AsyncIterable or Stream","source",L0)}else if(w(Z0)||d(Z0)||I0(Z0))L0=Z0;else L0=z.from(Z0);else if(typeof Z0==="function"){if(I0(L0)){var o;L0=W((o=L0)===null||o===void 0?void 0:o.readable)}else L0=W(L0);if(L0=Z0(L0,{signal:r}),y0){if(!w(L0,!0))throw new S("AsyncIterable",`transform[${s-1}]`,L0)}else{var N0;if(!Q)Q=GQ();let O0=new Q({objectMode:!0}),C0=(N0=L0)===null||N0===void 0?void 0:N0.then;if(typeof C0==="function")Y0++,C0.call(L0,(T0)=>{if(f=T0,T0!=null)O0.write(T0);if(H0)O0.end();F.nextTick(t)},(T0)=>{O0.destroy(T0),F.nextTick(t,T0)});else if(w(L0,!0))Y0++,X(L0,O0,t,{end:H0});else if(u(L0)||I0(L0)){let T0=L0.readable||L0;Y0++,X(T0,O0,t,{end:H0})}else throw new S("AsyncIterable or Promise","destination",L0);L0=O0;let{destroy:t0,cleanup:D0}=Y(L0,!1,!0);if(h.push(t0),n0)Q0.push(D0)}}else if(J0(Z0)){if(d(L0)){Y0+=2;let O0=j(L0,Z0,t,{end:H0});if(y(Z0)&&n0)Q0.push(O0)}else if(I0(L0)||u(L0)){let O0=L0.readable||L0;Y0++,X(O0,Z0,t,{end:H0})}else if(w(L0))Y0++,X(L0,Z0,t,{end:H0});else throw new D("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],L0);L0=Z0}else if(V0(Z0)){if(d(L0))Y0++,$(W(L0),Z0,t,{end:H0});else if(u(L0)||w(L0))Y0++,$(L0,Z0,t,{end:H0});else if(I0(L0))Y0++,$(L0.readable,Z0,t,{end:H0});else throw new D("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],L0);L0=Z0}else L0=z.from(Z0)}if(r!==null&&r!==void 0&&r.aborted||l!==null&&l!==void 0&&l.aborted)F.nextTick(m);return L0}function j(g,p,n,{end:K0}){let r=!1;if(p.on("close",()=>{if(!r)n(new k)}),g.pipe(p,{end:!1}),K0){let Q0=function(){r=!0,p.end()};var l=Q0;if(X0(g))F.nextTick(Q0);else g.once("end",Q0)}else n();return P(g,{readable:!0,writable:!1},(Q0)=>{let m=g._readableState;if(Q0&&Q0.code==="ERR_STREAM_PREMATURE_CLOSE"&&m&&m.ended&&!m.errored&&!m.errorEmitted)g.once("end",n).once("error",n);else n(Q0)}),P(p,{readable:!1,writable:!0},n)}O.exports={pipelineImpl:A,pipeline:M}}),IQ=u0((I,O)=>{var{pipeline:F}=iX(),T=xU(),{destroyer:H}=tU(),{isNodeStream:E,isReadable:V,isWritable:P,isWebStream:q,isTransformStream:L,isWritableStream:z,isReadableStream:C}=NU(),{AbortError:D,codes:{ERR_INVALID_ARG_VALUE:S,ERR_MISSING_ARGS:R}}=zU(),v=fU();O.exports=function(...k){if(k.length===0)throw new R("streams");if(k.length===1)return T.from(k[0]);let B=[...k];if(typeof k[0]==="function")k[0]=T.from(k[0]);if(typeof k[k.length-1]==="function"){let U=k.length-1;k[U]=T.from(k[U])}for(let U=0;U<k.length;++U){if(!E(k[U])&&!q(k[U]))continue;if(U<k.length-1&&!(V(k[U])||C(k[U])||L(k[U])))throw new S(`streams[${U}]`,B[U],"must be readable");if(U>0&&!(P(k[U])||z(k[U])||L(k[U])))throw new S(`streams[${U}]`,B[U],"must be writable")}let _,x,w,y,d;function J0(U){let Q=y;if(y=null,Q)Q(U);else if(U)d.destroy(U);else if(!X0&&!u)d.destroy()}let I0=k[0],V0=F(k,J0),u=!!(P(I0)||z(I0)||L(I0)),X0=!!(V(V0)||C(V0)||L(V0));if(d=new T({writableObjectMode:!!(I0!==null&&I0!==void 0&&I0.writableObjectMode),readableObjectMode:!!(V0!==null&&V0!==void 0&&V0.readableObjectMode),writable:u,readable:X0}),u){if(E(I0))d._write=function(Q,J,Z){if(I0.write(Q,J))Z();else _=Z},d._final=function(Q){I0.end(),x=Q},I0.on("drain",function(){if(_){let Q=_;_=null,Q()}});else if(q(I0)){let Q=(L(I0)?I0.writable:I0).getWriter();d._write=async function(J,Z,Y){try{await Q.ready,Q.write(J).catch(()=>{}),Y()}catch(K){Y(K)}},d._final=async function(J){try{await Q.ready,Q.close().catch(()=>{}),x=J}catch(Z){J(Z)}}}let U=L(V0)?V0.readable:V0;v(U,()=>{if(x){let Q=x;x=null,Q()}})}if(X0){if(E(V0))V0.on("readable",function(){if(w){let U=w;w=null,U()}}),V0.on("end",function(){d.push(null)}),d._read=function(){while(!0){let U=V0.read();if(U===null){w=d._read;return}if(!d.push(U))return}};else if(q(V0)){let U=(L(V0)?V0.readable:V0).getReader();d._read=async function(){while(!0)try{let{value:Q,done:J}=await U.read();if(!d.push(Q))return;if(J){d.push(null);return}}catch{return}}}}return d._destroy=function(U,Q){if(!U&&y!==null)U=new D;if(w=null,_=null,x=null,y===null)Q(U);else if(y=Q,E(V0))H(V0,U)},d}}),JJ=u0((I,O)=>{var F=globalThis.AbortController||XX().AbortController,{codes:{ERR_INVALID_ARG_VALUE:T,ERR_INVALID_ARG_TYPE:H,ERR_MISSING_ARGS:E,ERR_OUT_OF_RANGE:V},AbortError:P}=zU(),{validateAbortSignal:q,validateInteger:L,validateObject:z}=ZX(),C=o0().Symbol("kWeak"),D=o0().Symbol("kResistStopPropagation"),{finished:S}=fU(),R=IQ(),{addAbortSignalNoValidate:v}=LX(),{isWritable:k,isNodeStream:B}=NU(),{deprecate:_}=MU(),{ArrayPrototypePush:x,Boolean:w,MathFloor:y,Number:d,NumberIsNaN:J0,Promise:I0,PromiseReject:V0,PromiseResolve:u,PromisePrototypeThen:X0,Symbol:U}=o0(),Q=U("kEmpty"),J=U("kEof");function Z(l,Q0){if(Q0!=null)z(Q0,"options");if((Q0===null||Q0===void 0?void 0:Q0.signal)!=null)q(Q0.signal,"options.signal");if(B(l)&&!k(l))throw new T("stream",l,"must be writable");let m=R(this,l);if(Q0!==null&&Q0!==void 0&&Q0.signal)v(Q0.signal,m);return m}function Y(l,Q0){if(typeof l!=="function")throw new H("fn",["Function","AsyncFunction"],l);if(Q0!=null)z(Q0,"options");if((Q0===null||Q0===void 0?void 0:Q0.signal)!=null)q(Q0.signal,"options.signal");let m=1;if((Q0===null||Q0===void 0?void 0:Q0.concurrency)!=null)m=y(Q0.concurrency);let i=m-1;if((Q0===null||Q0===void 0?void 0:Q0.highWaterMark)!=null)i=y(Q0.highWaterMark);return L(m,"options.concurrency",1),L(i,"options.highWaterMark",0),i+=m,async function*(){let g0=MU().AbortSignalAny([Q0===null||Q0===void 0?void 0:Q0.signal].filter(w)),f=this,h=[],Y0={signal:g0},t,e,L0=!1,c=0;function o(){L0=!0,N0()}function N0(){c-=1,s()}function s(){if(e&&!L0&&c<m&&h.length<i)e(),e=null}async function Z0(){try{for await(let y0 of f){if(L0)return;if(g0.aborted)throw new P;try{if(y0=l(y0,Y0),y0===Q)continue;y0=u(y0)}catch(F0){y0=V0(F0)}if(c+=1,X0(y0,N0,o),h.push(y0),t)t(),t=null;if(!L0&&(h.length>=i||c>=m))await new I0((F0)=>{e=F0})}h.push(J)}catch(y0){let F0=V0(y0);X0(F0,N0,o),h.push(F0)}finally{if(L0=!0,t)t(),t=null}}Z0();try{while(!0){while(h.length>0){let y0=await h[0];if(y0===J)return;if(g0.aborted)throw new P;if(y0!==Q)yield y0;h.shift(),s()}await new I0((y0)=>{t=y0})}}finally{if(L0=!0,e)e(),e=null}}.call(this)}function K(l=void 0){if(l!=null)z(l,"options");if((l===null||l===void 0?void 0:l.signal)!=null)q(l.signal,"options.signal");return async function*(){let Q0=0;for await(let i of this){var m;if(l!==null&&l!==void 0&&(m=l.signal)!==null&&m!==void 0&&m.aborted)throw new P({cause:l.signal.reason});yield[Q0++,i]}}.call(this)}async function W(l,Q0=void 0){for await(let m of M.call(this,l,Q0))return!0;return!1}async function G(l,Q0=void 0){if(typeof l!=="function")throw new H("fn",["Function","AsyncFunction"],l);return!await W.call(this,async(...m)=>{return!await l(...m)},Q0)}async function X(l,Q0){for await(let m of M.call(this,l,Q0))return m;return}async function $(l,Q0){if(typeof l!=="function")throw new H("fn",["Function","AsyncFunction"],l);async function m(i,g0){return await l(i,g0),Q}for await(let i of Y.call(this,m,Q0));}function M(l,Q0){if(typeof l!=="function")throw new H("fn",["Function","AsyncFunction"],l);async function m(i,g0){if(await l(i,g0))return i;return Q}return Y.call(this,m,Q0)}class A extends E{constructor(){super("reduce");this.message="Reduce of an empty stream requires an initial value"}}async function j(l,Q0,m){var i;if(typeof l!=="function")throw new H("reducer",["Function","AsyncFunction"],l);if(m!=null)z(m,"options");if((m===null||m===void 0?void 0:m.signal)!=null)q(m.signal,"options.signal");let g0=arguments.length>1;if(m!==null&&m!==void 0&&(i=m.signal)!==null&&i!==void 0&&i.aborted){let e=new P(void 0,{cause:m.signal.reason});throw this.once("error",()=>{}),await S(this.destroy(e)),e}let f=new F,h=f.signal;if(m!==null&&m!==void 0&&m.signal){let e={once:!0,[C]:this,[D]:!0};m.signal.addEventListener("abort",()=>f.abort(),e)}let Y0=!1;try{for await(let e of this){var t;if(Y0=!0,m!==null&&m!==void 0&&(t=m.signal)!==null&&t!==void 0&&t.aborted)throw new P;if(!g0)Q0=e,g0=!0;else Q0=await l(Q0,e,{signal:h})}if(!Y0&&!g0)throw new A}finally{f.abort()}return Q0}async function g(l){if(l!=null)z(l,"options");if((l===null||l===void 0?void 0:l.signal)!=null)q(l.signal,"options.signal");let Q0=[];for await(let i of this){var m;if(l!==null&&l!==void 0&&(m=l.signal)!==null&&m!==void 0&&m.aborted)throw new P(void 0,{cause:l.signal.reason});x(Q0,i)}return Q0}function p(l,Q0){let m=Y.call(this,l,Q0);return async function*(){for await(let i of m)yield*i}.call(this)}function n(l){if(l=d(l),J0(l))return 0;if(l<0)throw new V("number",">= 0",l);return l}function K0(l,Q0=void 0){if(Q0!=null)z(Q0,"options");if((Q0===null||Q0===void 0?void 0:Q0.signal)!=null)q(Q0.signal,"options.signal");return l=n(l),async function*(){var m;if(Q0!==null&&Q0!==void 0&&(m=Q0.signal)!==null&&m!==void 0&&m.aborted)throw new P;for await(let g0 of this){var i;if(Q0!==null&&Q0!==void 0&&(i=Q0.signal)!==null&&i!==void 0&&i.aborted)throw new P;if(l--<=0)yield g0}}.call(this)}function r(l,Q0=void 0){if(Q0!=null)z(Q0,"options");if((Q0===null||Q0===void 0?void 0:Q0.signal)!=null)q(Q0.signal,"options.signal");return l=n(l),async function*(){var m;if(Q0!==null&&Q0!==void 0&&(m=Q0.signal)!==null&&m!==void 0&&m.aborted)throw new P;for await(let g0 of this){var i;if(Q0!==null&&Q0!==void 0&&(i=Q0.signal)!==null&&i!==void 0&&i.aborted)throw new P;if(l-- >0)yield g0;if(l<=0)return}}.call(this)}O.exports.streamReturningOperators={asIndexedPairs:_(K,"readable.asIndexedPairs will be removed in a future version."),drop:K0,filter:M,flatMap:p,map:Y,take:r,compose:Z},O.exports.promiseReturningOperators={every:G,forEach:$,reduce:j,toArray:g,some:W,find:X}}),$Q=u0((I,O)=>{var{ArrayPrototypePop:F,Promise:T}=o0(),{isIterable:H,isNodeStream:E,isWebStream:V}=NU(),{pipelineImpl:P}=iX(),{finished:q}=fU();KQ();function L(...z){return new T((C,D)=>{let S,R,v=z[z.length-1];if(v&&typeof v==="object"&&!E(v)&&!H(v)&&!V(v)){let k=F(z);S=k.signal,R=k.end}P(z,(k,B)=>{if(k)D(k);else C(B)},{signal:S,end:R})})}O.exports={finished:q,pipeline:L}}),KQ=u0((I,O)=>{var{Buffer:F}=(HU(),h0(FU)),{ObjectDefineProperty:T,ObjectKeys:H,ReflectApply:E}=o0(),{promisify:{custom:V}}=MU(),{streamReturningOperators:P,promiseReturningOperators:q}=JJ(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:L}}=zU(),z=IQ(),{setDefaultHighWaterMark:C,getDefaultHighWaterMark:D}=EX(),{pipeline:S}=iX(),{destroyer:R}=tU(),v=fU(),k=$Q(),B=NU(),_=O.exports=aX().Stream;_.isDestroyed=B.isDestroyed,_.isDisturbed=B.isDisturbed,_.isErrored=B.isErrored,_.isReadable=B.isReadable,_.isWritable=B.isWritable,_.Readable=MX();for(let w of H(P)){let y=function(...J0){if(new.target)throw L();return _.Readable.from(E(d,this,J0))},d=P[w];T(y,"name",{__proto__:null,value:d.name}),T(y,"length",{__proto__:null,value:d.length}),T(_.Readable.prototype,w,{__proto__:null,value:y,enumerable:!1,configurable:!0,writable:!0})}for(let w of H(q)){let y=function(...J0){if(new.target)throw L();return E(d,this,J0)},d=q[w];T(y,"name",{__proto__:null,value:d.name}),T(y,"length",{__proto__:null,value:d.length}),T(_.Readable.prototype,w,{__proto__:null,value:y,enumerable:!1,configurable:!0,writable:!0})}_.Writable=eX(),_.Duplex=xU(),_.Transform=VQ(),_.PassThrough=GQ(),_.pipeline=S;var{addAbortSignal:x}=LX();_.addAbortSignal=x,_.finished=v,_.destroy=R,_.compose=z,_.setDefaultHighWaterMark=C,_.getDefaultHighWaterMark=D,T(_,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return k}}),T(S,V,{__proto__:null,enumerable:!0,get(){return k.pipeline}}),T(v,V,{__proto__:null,enumerable:!0,get(){return k.finished}}),_.Stream=_,_._isUint8Array=function(w){return w instanceof Uint8Array},_._uint8ArrayToBuffer=function(w){return F.from(w.buffer,w.byteOffset,w.byteLength)}}),VJ=u0((I,O)=>{var F=UZ();{let T=KQ(),H=$Q(),E=T.Readable.destroy;O.exports=T.Readable,O.exports._uint8ArrayToBuffer=T._uint8ArrayToBuffer,O.exports._isUint8Array=T._isUint8Array,O.exports.isDisturbed=T.isDisturbed,O.exports.isErrored=T.isErrored,O.exports.isReadable=T.isReadable,O.exports.Readable=T.Readable,O.exports.Writable=T.Writable,O.exports.Duplex=T.Duplex,O.exports.Transform=T.Transform,O.exports.PassThrough=T.PassThrough,O.exports.addAbortSignal=T.addAbortSignal,O.exports.finished=T.finished,O.exports.destroy=T.destroy,O.exports.destroy=E,O.exports.pipeline=T.pipeline,O.exports.compose=T.compose,Object.defineProperty(T,"promises",{configurable:!0,enumerable:!0,get(){return H}}),O.exports.Stream=T.Stream}O.exports.default=O.exports});OQ.exports=VJ()});var RU={};$X(RU,{webcrypto:()=>gG,rng:()=>nV,randomUUID:()=>BG,randomFillSync:()=>PG,randomFill:()=>qG,randomBytes:()=>mV,publicEncrypt:()=>EG,publicDecrypt:()=>SG,pseudoRandomBytes:()=>oV,prng:()=>dV,privateEncrypt:()=>MG,privateDecrypt:()=>RG,pbkdf2Sync:()=>UG,pbkdf2:()=>iV,listCiphers:()=>KG,getRandomValues:()=>_G,getHashes:()=>eV,getDiffieHellman:()=>FG,getCurves:()=>NG,getCiphers:()=>$G,default:()=>wG,createVerify:()=>DG,createSign:()=>AG,createHmac:()=>aV,createHash:()=>tV,createECDH:()=>LG,createDiffieHellmanGroup:()=>WG,createDiffieHellman:()=>HG,createDecipheriv:()=>IG,createDecipher:()=>VG,createCredentials:()=>kG,createCipheriv:()=>YG,createCipher:()=>ZG,constants:()=>jG,Verify:()=>zG,Sign:()=>TG,Hmac:()=>rV,Hash:()=>sV,DiffieHellmanGroup:()=>OG,DiffieHellman:()=>CG,Decipheriv:()=>GG,Decipher:()=>JG,DEFAULT_ENCODING:()=>vG,Cipheriv:()=>QG,Cipher:()=>XG});function NG(){return xG}var IJ,$J,WQ,KJ,OJ,WJ=(I,O,F)=>{F=I!=null?IJ($J(I)):{};let T=O||!I||!I.__esModule?WQ(F,"default",{value:I,enumerable:!0}):F;for(let H of KJ(I))if(!OJ.call(T,H))WQ(T,H,{get:()=>I[H],enumerable:!0});return T},G0=(I,O)=>()=>(O||I((O={exports:{}}).exports,O),O.exports),SX,RX,HQ,FJ,ZZ,QZ,LU,HJ,YX,CQ,CJ,AJ,TJ,DJ,AQ,zJ,LJ,EJ,MJ,SJ,RJ,qJ,PJ,kJ,jJ,JX,qX,TQ,vJ,DQ,zQ,_J,VX,YZ,JZ,BJ,LQ,VZ,xJ,EQ,NJ,MQ,SQ,gJ,wJ,yJ,fJ,cJ,pJ,hJ,uJ,bJ,lJ,dJ,oJ,nJ,mJ,GZ,RQ,sJ,qQ,tJ,rJ,aJ,eJ,gU,cU,PQ,kU,kQ,PX,iJ,SU,UV,XV,ZV,jQ,_U,GX,vQ,QV,_Q,YV,BQ,JV,VV,GV,IV,IZ,$V,$Z,KV,OV,WV,FV,HV,CV,AV,TV,DV,zV,LV,EV,MV,SV,FQ,RV,QX,qV,xQ,NQ,PV,kV,gQ,jV,vV,IX,_V,BV,xV,NV,gV,wV,wQ,yV,yQ,fQ,cQ,KZ,pQ,fV,hQ,cV,pV,XZ,hV,uV,bV,lV,p0,dV,oV,nV,mV,sV,tV,rV,aV,eV,iV,UG,XG,ZG,QG,YG,JG,VG,GG,IG,$G,KG,OG,WG,FG,HG,CG,AG,TG,DG,zG,LG,EG,MG,SG,RG,qG,PG,kG,jG,vG="buffer",_G=(I)=>{return crypto.getRandomValues(I)},BG=()=>{return crypto.randomUUID()},xG,gG,wG;var qU=KX(()=>{IJ=Object.create,{getPrototypeOf:$J,defineProperty:WQ,getOwnPropertyNames:KJ}=Object,OJ=Object.prototype.hasOwnProperty,SX=G0((I,O)=>{O.exports=(qU(),h0(RU)).randomBytes}),RX=G0((I,O)=>{O.exports=(qU(),h0(RU)).createHash}),HQ=G0((I,O)=>{O.exports=(qU(),h0(RU)).createHmac}),FJ=G0((I,O)=>{O.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"}}}),ZZ=G0((I,O)=>{var F=isFinite,T=Math.pow(2,30)-1;O.exports=function(H,E){if(typeof H!=="number")throw TypeError("Iterations not a number");if(H<0||!F(H))throw TypeError("Bad iterations");if(typeof E!=="number")throw TypeError("Key length not a number");if(E<0||E>T||E!==E)throw TypeError("Bad key length")}}),QZ=G0((I,O)=>{var F;if(globalThis.process&&globalThis.process.browser)F="utf-8";else if(globalThis.process&&globalThis.process.version)T=parseInt(process.version.split(".")[0].slice(1),10),F=T>=6?"utf-8":"binary";else F="utf-8";var T;O.exports=F}),LU=G0((I,O)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var F=(HU(),h0(FU)),T=F.Buffer;function H(V,P){for(var q in V)P[q]=V[q]}if(T.from&&T.alloc&&T.allocUnsafe&&T.allocUnsafeSlow)O.exports=F;else H(F,I),I.Buffer=E;function E(V,P,q){return T(V,P,q)}E.prototype=Object.create(T.prototype),H(T,E),E.from=function(V,P,q){if(typeof V==="number")throw TypeError("Argument must not be a number");return T(V,P,q)},E.alloc=function(V,P,q){if(typeof V!=="number")throw TypeError("Argument must be a number");var L=T(V);if(P!==void 0)if(typeof q==="string")L.fill(P,q);else L.fill(P);else L.fill(0);return L},E.allocUnsafe=function(V){if(typeof V!=="number")throw TypeError("Argument must be a number");return T(V)},E.allocUnsafeSlow=function(V){if(typeof V!=="number")throw TypeError("Argument must be a number");return F.SlowBuffer(V)}}),HJ=G0((I,O)=>{var F={}.toString;O.exports=Array.isArray||function(T){return F.call(T)=="[object Array]"}}),YX=G0((I,O)=>{O.exports=TypeError}),CQ=G0((I,O)=>{O.exports=Object}),CJ=G0((I,O)=>{O.exports=Error}),AJ=G0((I,O)=>{O.exports=EvalError}),TJ=G0((I,O)=>{O.exports=RangeError}),DJ=G0((I,O)=>{O.exports=ReferenceError}),AQ=G0((I,O)=>{O.exports=SyntaxError}),zJ=G0((I,O)=>{O.exports=URIError}),LJ=G0((I,O)=>{O.exports=Math.abs}),EJ=G0((I,O)=>{O.exports=Math.floor}),MJ=G0((I,O)=>{O.exports=Math.max}),SJ=G0((I,O)=>{O.exports=Math.min}),RJ=G0((I,O)=>{O.exports=Math.pow}),qJ=G0((I,O)=>{O.exports=Math.round}),PJ=G0((I,O)=>{O.exports=Number.isNaN||function(F){return F!==F}}),kJ=G0((I,O)=>{var F=PJ();O.exports=function(T){if(F(T)||T===0)return T;return T<0?-1:1}}),jJ=G0((I,O)=>{O.exports=Object.getOwnPropertyDescriptor}),JX=G0((I,O)=>{var F=jJ();if(F)try{F([],"length")}catch(T){F=null}O.exports=F}),qX=G0((I,O)=>{var F=Object.defineProperty||!1;if(F)try{F({},"a",{value:1})}catch(T){F=!1}O.exports=F}),TQ=G0((I,O)=>{O.exports=function(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function")return!1;if(typeof Symbol.iterator==="symbol")return!0;var F={},T=Symbol("test"),H=Object(T);if(typeof T==="string")return!1;if(Object.prototype.toString.call(T)!=="[object Symbol]")return!1;if(Object.prototype.toString.call(H)!=="[object Symbol]")return!1;var E=42;F[T]=E;for(var V in F)return!1;if(typeof Object.keys==="function"&&Object.keys(F).length!==0)return!1;if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(F).length!==0)return!1;var P=Object.getOwnPropertySymbols(F);if(P.length!==1||P[0]!==T)return!1;if(!Object.prototype.propertyIsEnumerable.call(F,T))return!1;if(typeof Object.getOwnPropertyDescriptor==="function"){var q=Object.getOwnPropertyDescriptor(F,T);if(q.value!==E||q.enumerable!==!0)return!1}return!0}}),vJ=G0((I,O)=>{var F=typeof Symbol<"u"&&Symbol,T=TQ();O.exports=function(){if(typeof F!=="function")return!1;if(typeof Symbol!=="function")return!1;if(typeof F("foo")!=="symbol")return!1;if(typeof Symbol("bar")!=="symbol")return!1;return T()}}),DQ=G0((I,O)=>{O.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}),zQ=G0((I,O)=>{var F=CQ();O.exports=F.getPrototypeOf||null}),_J=G0((I,O)=>{var F="Function.prototype.bind called on incompatible ",T=Object.prototype.toString,H=Math.max,E="[object Function]",V=function(L,z){var C=[];for(var D=0;D<L.length;D+=1)C[D]=L[D];for(var S=0;S<z.length;S+=1)C[S+L.length]=z[S];return C},P=function(L,z){var C=[];for(var D=z||0,S=0;D<L.length;D+=1,S+=1)C[S]=L[D];return C},q=function(L,z){var C="";for(var D=0;D<L.length;D+=1)if(C+=L[D],D+1<L.length)C+=z;return C};O.exports=function(L){var z=this;if(typeof z!=="function"||T.apply(z)!==E)throw TypeError(F+z);var C=P(arguments,1),D,S=function(){if(this instanceof D){var _=z.apply(this,V(C,arguments));if(Object(_)===_)return _;return this}return z.apply(L,V(C,arguments))},R=H(0,z.length-C.length),v=[];for(var k=0;k<R;k++)v[k]="$"+k;if(D=Function("binder","return function ("+q(v,",")+"){ return binder.apply(this,arguments); }")(S),z.prototype){var B=function(){};B.prototype=z.prototype,D.prototype=new B,B.prototype=null}return D}}),VX=G0((I,O)=>{var F=_J();O.exports=Function.prototype.bind||F}),YZ=G0((I,O)=>{O.exports=Function.prototype.call}),JZ=G0((I,O)=>{O.exports=Function.prototype.apply}),BJ=G0((I,O)=>{O.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply}),LQ=G0((I,O)=>{var F=VX(),T=JZ(),H=YZ(),E=BJ();O.exports=E||F.call(H,T)}),VZ=G0((I,O)=>{var F=VX(),T=YX(),H=YZ(),E=LQ();O.exports=function(V){if(V.length<1||typeof V[0]!=="function")throw new T("a function is required");return E(F,H,V)}}),xJ=G0((I,O)=>{var F=VZ(),T=JX(),H;try{H=[].__proto__===Array.prototype}catch(q){if(!q||typeof q!=="object"||!("code"in q)||q.code!=="ERR_PROTO_ACCESS")throw q}var E=!!H&&T&&T(Object.prototype,"__proto__"),V=Object,P=V.getPrototypeOf;O.exports=E&&typeof E.get==="function"?F([E.get]):typeof P==="function"?function(q){return P(q==null?q:V(q))}:!1}),EQ=G0((I,O)=>{var F=DQ(),T=zQ(),H=xJ();O.exports=F?function(E){return F(E)}:T?function(E){if(!E||typeof E!=="object"&&typeof E!=="function")throw TypeError("getProto: not an object");return T(E)}:H?function(E){return H(E)}:null}),NJ=G0((I,O)=>{var F=Function.prototype.call,T=Object.prototype.hasOwnProperty,H=VX();O.exports=H.call(F,T)}),MQ=G0((I,O)=>{var F,T=CQ(),H=CJ(),E=AJ(),V=TJ(),P=DJ(),q=AQ(),L=YX(),z=zJ(),C=LJ(),D=EJ(),S=MJ(),R=SJ(),v=RJ(),k=qJ(),B=kJ(),_=Function,x=function(Q0){try{return _('"use strict"; return ('+Q0+").constructor;")()}catch(m){}},w=JX(),y=qX(),d=function(){throw new L},J0=w?function(){try{return arguments.callee,d}catch(Q0){try{return w(arguments,"callee").get}catch(m){return d}}}():d,I0=vJ()(),V0=EQ(),u=zQ(),X0=DQ(),U=JZ(),Q=YZ(),J={},Z=typeof Uint8Array>"u"||!V0?F:V0(Uint8Array),Y={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?F:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?F:ArrayBuffer,"%ArrayIteratorPrototype%":I0&&V0?V0([][Symbol.iterator]()):F,"%AsyncFromSyncIteratorPrototype%":F,"%AsyncFunction%":J,"%AsyncGenerator%":J,"%AsyncGeneratorFunction%":J,"%AsyncIteratorPrototype%":J,"%Atomics%":typeof Atomics>"u"?F:Atomics,"%BigInt%":typeof BigInt>"u"?F:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?F:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?F:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?F:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":H,"%eval%":eval,"%EvalError%":E,"%Float16Array%":typeof Float16Array>"u"?F:Float16Array,"%Float32Array%":typeof Float32Array>"u"?F:Float32Array,"%Float64Array%":typeof Float64Array>"u"?F:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?F:FinalizationRegistry,"%Function%":_,"%GeneratorFunction%":J,"%Int8Array%":typeof Int8Array>"u"?F:Int8Array,"%Int16Array%":typeof Int16Array>"u"?F:Int16Array,"%Int32Array%":typeof Int32Array>"u"?F:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":I0&&V0?V0(V0([][Symbol.iterator]())):F,"%JSON%":typeof JSON==="object"?JSON:F,"%Map%":typeof Map>"u"?F:Map,"%MapIteratorPrototype%":typeof Map>"u"||!I0||!V0?F:V0(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":T,"%Object.getOwnPropertyDescriptor%":w,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?F:Promise,"%Proxy%":typeof Proxy>"u"?F:Proxy,"%RangeError%":V,"%ReferenceError%":P,"%Reflect%":typeof Reflect>"u"?F:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?F:Set,"%SetIteratorPrototype%":typeof Set>"u"||!I0||!V0?F:V0(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?F:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":I0&&V0?V0(""[Symbol.iterator]()):F,"%Symbol%":I0?Symbol:F,"%SyntaxError%":q,"%ThrowTypeError%":J0,"%TypedArray%":Z,"%TypeError%":L,"%Uint8Array%":typeof Uint8Array>"u"?F:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?F:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?F:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?F:Uint32Array,"%URIError%":z,"%WeakMap%":typeof WeakMap>"u"?F:WeakMap,"%WeakRef%":typeof WeakRef>"u"?F:WeakRef,"%WeakSet%":typeof WeakSet>"u"?F:WeakSet,"%Function.prototype.call%":Q,"%Function.prototype.apply%":U,"%Object.defineProperty%":y,"%Object.getPrototypeOf%":u,"%Math.abs%":C,"%Math.floor%":D,"%Math.max%":S,"%Math.min%":R,"%Math.pow%":v,"%Math.round%":k,"%Math.sign%":B,"%Reflect.getPrototypeOf%":X0};if(V0)try{null.error}catch(Q0){K=V0(V0(Q0)),Y["%Error.prototype%"]=K}var K,W=function Q0(m){var i;if(m==="%AsyncFunction%")i=x("async function () {}");else if(m==="%GeneratorFunction%")i=x("function* () {}");else if(m==="%AsyncGeneratorFunction%")i=x("async function* () {}");else if(m==="%AsyncGenerator%"){var g0=Q0("%AsyncGeneratorFunction%");if(g0)i=g0.prototype}else if(m==="%AsyncIteratorPrototype%"){var f=Q0("%AsyncGenerator%");if(f&&V0)i=V0(f.prototype)}return Y[m]=i,i},G={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},X=VX(),$=NJ(),M=X.call(Q,Array.prototype.concat),A=X.call(U,Array.prototype.splice),j=X.call(Q,String.prototype.replace),g=X.call(Q,String.prototype.slice),p=X.call(Q,RegExp.prototype.exec),n=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,K0=/\\(\\)?/g,r=function(Q0){var m=g(Q0,0,1),i=g(Q0,-1);if(m==="%"&&i!=="%")throw new q("invalid intrinsic syntax, expected closing `%`");else if(i==="%"&&m!=="%")throw new q("invalid intrinsic syntax, expected opening `%`");var g0=[];return j(Q0,n,function(f,h,Y0,t){g0[g0.length]=Y0?j(t,K0,"$1"):h||f}),g0},l=function(Q0,m){var i=Q0,g0;if($(G,i))g0=G[i],i="%"+g0[0]+"%";if($(Y,i)){var f=Y[i];if(f===J)f=W(i);if(typeof f>"u"&&!m)throw new L("intrinsic "+Q0+" exists, but is not available. Please file an issue!");return{alias:g0,name:i,value:f}}throw new q("intrinsic "+Q0+" does not exist!")};O.exports=function(Q0,m){if(typeof Q0!=="string"||Q0.length===0)throw new L("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof m!=="boolean")throw new L('"allowMissing" argument must be a boolean');if(p(/^%?[^%]*%?$/,Q0)===null)throw new q("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=r(Q0),g0=i.length>0?i[0]:"",f=l("%"+g0+"%",m),h=f.name,Y0=f.value,t=!1,e=f.alias;if(e)g0=e[0],A(i,M([0,1],e));for(var L0=1,c=!0;L0<i.length;L0+=1){var o=i[L0],N0=g(o,0,1),s=g(o,-1);if((N0==='"'||N0==="'"||N0==="`"||(s==='"'||s==="'"||s==="`"))&&N0!==s)throw new q("property names with quotes must have matching quotes");if(o==="constructor"||!c)t=!0;if(g0+="."+o,h="%"+g0+"%",$(Y,h))Y0=Y[h];else if(Y0!=null){if(!(o in Y0)){if(!m)throw new L("base intrinsic for "+Q0+" exists, but the property is not available.");return}if(w&&L0+1>=i.length){var Z0=w(Y0,o);if(c=!!Z0,c&&"get"in Z0&&!("originalValue"in Z0.get))Y0=Z0.get;else Y0=Y0[o]}else c=$(Y0,o),Y0=Y0[o];if(c&&!t)Y[h]=Y0}}return Y0}}),SQ=G0((I,O)=>{var F=MQ(),T=VZ(),H=T([F("%String.prototype.indexOf%")]);O.exports=function(E,V){var P=F(E,!!V);if(typeof P==="function"&&H(E,".prototype.")>-1)return T([P]);return P}}),gJ=G0((I,O)=>{var F=Function.prototype.toString,T=typeof Reflect==="object"&&Reflect!==null&&Reflect.apply,H,E;if(typeof T==="function"&&typeof Object.defineProperty==="function")try{H=Object.defineProperty({},"length",{get:function(){throw E}}),E={},T(function(){throw 42},null,H)}catch(w){if(w!==E)T=null}else T=null;var V=/^\s*class\b/,P=function(w){try{var y=F.call(w);return V.test(y)}catch(d){return!1}},q=function(w){try{if(P(w))return!1;return F.call(w),!0}catch(y){return!1}},L=Object.prototype.toString,z="[object Object]",C="[object Function]",D="[object GeneratorFunction]",S="[object HTMLAllCollection]",R="[object HTML document.all class]",v="[object HTMLCollection]",k=typeof Symbol==="function"&&!!Symbol.toStringTag,B=!(0 in[,]),_=function(){return!1};if(typeof document==="object"){if(x=document.all,L.call(x)===L.call(document.all))_=function(w){if((B||!w)&&(typeof w>"u"||typeof w==="object"))try{var y=L.call(w);return(y===S||y===R||y===v||y===z)&&w("")==null}catch(d){}return!1}}var x;O.exports=T?function(w){if(_(w))return!0;if(!w)return!1;if(typeof w!=="function"&&typeof w!=="object")return!1;try{T(w,null,H)}catch(y){if(y!==E)return!1}return!P(w)&&q(w)}:function(w){if(_(w))return!0;if(!w)return!1;if(typeof w!=="function"&&typeof w!=="object")return!1;if(k)return q(w);if(P(w))return!1;var y=L.call(w);if(y!==C&&y!==D&&!/^\[object HTML/.test(y))return!1;return q(w)}}),wJ=G0((I,O)=>{var F=gJ(),T=Object.prototype.toString,H=Object.prototype.hasOwnProperty,E=function(L,z,C){for(var D=0,S=L.length;D<S;D++)if(H.call(L,D))if(C==null)z(L[D],D,L);else z.call(C,L[D],D,L)},V=function(L,z,C){for(var D=0,S=L.length;D<S;D++)if(C==null)z(L.charAt(D),D,L);else z.call(C,L.charAt(D),D,L)},P=function(L,z,C){for(var D in L)if(H.call(L,D))if(C==null)z(L[D],D,L);else z.call(C,L[D],D,L)};function q(L){return T.call(L)==="[object Array]"}O.exports=function(L,z,C){if(!F(z))throw TypeError("iterator must be a function");var D;if(arguments.length>=3)D=C;if(q(L))E(L,z,D);else if(typeof L==="string")V(L,z,D);else P(L,z,D)}}),yJ=G0((I,O)=>{O.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]}),fJ=G0((I,O)=>{var F=yJ(),T=typeof globalThis>"u"?globalThis:globalThis;O.exports=function(){var H=[];for(var E=0;E<F.length;E++)if(typeof T[F[E]]==="function")H[H.length]=F[E];return H}}),cJ=G0((I,O)=>{var F=qX(),T=AQ(),H=YX(),E=JX();O.exports=function(V,P,q){if(!V||typeof V!=="object"&&typeof V!=="function")throw new H("`obj` must be an object or a function`");if(typeof P!=="string"&&typeof P!=="symbol")throw new H("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!=="boolean"&&arguments[3]!==null)throw new H("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!=="boolean"&&arguments[4]!==null)throw new H("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!=="boolean"&&arguments[5]!==null)throw new H("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!=="boolean")throw new H("`loose`, if provided, must be a boolean");var L=arguments.length>3?arguments[3]:null,z=arguments.length>4?arguments[4]:null,C=arguments.length>5?arguments[5]:null,D=arguments.length>6?arguments[6]:!1,S=!!E&&E(V,P);if(F)F(V,P,{configurable:C===null&&S?S.configurable:!C,enumerable:L===null&&S?S.enumerable:!L,value:q,writable:z===null&&S?S.writable:!z});else if(D||!L&&!z&&!C)V[P]=q;else throw new T("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}}),pJ=G0((I,O)=>{var F=qX(),T=function(){return!!F};T.hasArrayLengthDefineBug=function(){if(!F)return null;try{return F([],"length",{value:1}).length!==1}catch(H){return!0}},O.exports=T}),hJ=G0((I,O)=>{var F=MQ(),T=cJ(),H=pJ()(),E=JX(),V=YX(),P=F("%Math.floor%");O.exports=function(q,L){if(typeof q!=="function")throw new V("`fn` is not a function");if(typeof L!=="number"||L<0||L>4294967295||P(L)!==L)throw new V("`length` must be a positive 32-bit integer");var z=arguments.length>2&&!!arguments[2],C=!0,D=!0;if("length"in q&&E){var S=E(q,"length");if(S&&!S.configurable)C=!1;if(S&&!S.writable)D=!1}if(C||D||!z)if(H)T(q,"length",L,!0,!0);else T(q,"length",L);return q}}),uJ=G0((I,O)=>{var F=VX(),T=JZ(),H=LQ();O.exports=function(){return H(F,T,arguments)}}),bJ=G0((I,O)=>{var F=hJ(),T=qX(),H=VZ(),E=uJ();if(O.exports=function(V){var P=H(arguments),q=V.length-(arguments.length-1);return F(P,1+(q>0?q:0),!0)},T)T(O.exports,"apply",{value:E});else O.exports.apply=E}),lJ=G0((I,O)=>{var F=TQ();O.exports=function(){return F()&&!!Symbol.toStringTag}}),dJ=G0((I,O)=>{var F=wJ(),T=fJ(),H=bJ(),E=SQ(),V=JX(),P=EQ(),q=E("Object.prototype.toString"),L=lJ()(),z=typeof globalThis>"u"?globalThis:globalThis,C=T(),D=E("String.prototype.slice"),S=E("Array.prototype.indexOf",!0)||function(B,_){for(var x=0;x<B.length;x+=1)if(B[x]===_)return x;return-1},R={__proto__:null};if(L&&V&&P)F(C,function(B){var _=new z[B];if(Symbol.toStringTag in _&&P){var x=P(_),w=V(x,Symbol.toStringTag);if(!w&&x){var y=P(x);w=V(y,Symbol.toStringTag)}R["$"+B]=H(w.get)}});else F(C,function(B){var _=new z[B],x=_.slice||_.set;if(x)R["$"+B]=H(x)});var v=function(B){var _=!1;return F(R,function(x,w){if(!_)try{if("$"+x(B)===w)_=D(w,1)}catch(y){}}),_},k=function(B){var _=!1;return F(R,function(x,w){if(!_)try{x(B),_=D(w,1)}catch(y){}}),_};O.exports=function(B){if(!B||typeof B!=="object")return!1;if(!L){var _=D(q(B),8,-1);if(S(C,_)>-1)return _;if(_!=="Object")return!1;return k(B)}if(!V)return null;return v(B)}}),oJ=G0((I,O)=>{var F=dJ();O.exports=function(T){return!!F(T)}}),nJ=G0((I,O)=>{var F=YX(),T=SQ(),H=T("TypedArray.prototype.buffer",!0),E=oJ();O.exports=H||function(V){if(!E(V))throw new F("Not a Typed Array");return V.buffer}}),mJ=G0((I,O)=>{var F=LU().Buffer,T=HJ(),H=nJ(),E=ArrayBuffer.isView||function(L){try{return H(L),!0}catch(z){return!1}},V=typeof Uint8Array<"u",P=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",q=P&&(F.prototype instanceof Uint8Array||F.TYPED_ARRAY_SUPPORT);O.exports=function(L,z){if(F.isBuffer(L)){if(L.constructor&&!("isBuffer"in L))return F.from(L);return L}if(typeof L==="string")return F.from(L,z);if(P&&E(L)){if(L.byteLength===0)return F.alloc(0);if(q){var C=F.from(L.buffer,L.byteOffset,L.byteLength);if(C.byteLength===L.byteLength)return C}var D=L instanceof Uint8Array?L:new Uint8Array(L.buffer,L.byteOffset,L.byteLength),S=F.from(D);if(S.length===L.byteLength)return S}if(V&&L instanceof Uint8Array)return F.from(L);var R=T(L);if(R)for(var v=0;v<L.length;v+=1){var k=L[v];if(typeof k!=="number"||k<0||k>255||~~k!==k)throw RangeError("Array items must be numbers in the range 0-255.")}if(R||F.isBuffer(L)&&L.constructor&&typeof L.constructor.isBuffer==="function"&&L.constructor.isBuffer(L))return F.from(L);throw TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}}),GZ=G0((I,O)=>{var F=LU().Buffer,T=mJ(),H=typeof Uint8Array<"u",E=H&&typeof ArrayBuffer<"u",V=E&&ArrayBuffer.isView;O.exports=function(P,q,L){if(typeof P==="string"||F.isBuffer(P)||H&&P instanceof Uint8Array||V&&V(P))return T(P,q);throw TypeError(L+" must be a string, a Buffer, a Uint8Array, or a DataView")}}),RQ=G0((I,O)=>{var F={__proto__:null,md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,"sha512-256":32,rmd160:20,ripemd160:20},T={__proto__:null,"sha-1":"sha1","sha-224":"sha224","sha-256":"sha256","sha-384":"sha384","sha-512":"sha512","ripemd-160":"ripemd160"},H=HQ(),E=LU().Buffer,V=ZZ(),P=QZ(),q=GZ();function L(z,C,D,S,R){V(D,S),z=q(z,P,"Password"),C=q(C,P,"Salt");var v=(R||"sha1").toLowerCase(),k=T[v]||v,B=F[k];if(typeof B!=="number"||!B)throw TypeError("Digest algorithm not supported: "+R);var _=E.allocUnsafe(S),x=E.allocUnsafe(C.length+4);C.copy(x,0,0,C.length);var w=0,y=B,d=Math.ceil(S/y);for(var J0=1;J0<=d;J0++){x.writeUInt32BE(J0,C.length);var I0=H(k,z).update(x).digest(),V0=I0;for(var u=1;u<D;u++){V0=H(k,z).update(V0).digest();for(var X0=0;X0<y;X0++)I0[X0]^=V0[X0]}I0.copy(_,w),w+=y}return _}O.exports=L}),sJ=G0((I,O)=>{var F=LU().Buffer,T=ZZ(),H=QZ(),E=RQ(),V=GZ(),P,q=globalThis.crypto&&globalThis.crypto.subtle,L={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"},z=[],C;function D(){if(C)return C;if(globalThis.process&&globalThis.process.nextTick)C=globalThis.process.nextTick;else if(globalThis.queueMicrotask)C=globalThis.queueMicrotask;else if(globalThis.setImmediate)C=globalThis.setImmediate;else C=globalThis.setTimeout;return C}function S(k,B,_,x,w){return q.importKey("raw",k,{name:"PBKDF2"},!1,["deriveBits"]).then(function(y){return q.deriveBits({name:"PBKDF2",salt:B,iterations:_,hash:{name:w}},y,x<<3)}).then(function(y){return F.from(y)})}function R(k){if(globalThis.process&&!globalThis.process.browser)return Promise.resolve(!1);if(!q||!q.importKey||!q.deriveBits)return Promise.resolve(!1);if(z[k]!==void 0)return z[k];P=P||F.alloc(8);var B=S(P,P,10,128,k).then(function(){return!0},function(){return!1});return z[k]=B,B}function v(k,B){k.then(function(_){D()(function(){B(null,_)})},function(_){D()(function(){B(_)})})}O.exports=function(k,B,_,x,w,y){if(typeof w==="function")y=w,w=void 0;if(T(_,x),k=V(k,H,"Password"),B=V(B,H,"Salt"),typeof y!=="function")throw Error("No callback provided to pbkdf2");w=w||"sha1";var d=L[w.toLowerCase()];if(!d||typeof globalThis.Promise!=="function"){D()(function(){var J0;try{J0=E(k,B,_,x,w)}catch(I0){y(I0);return}y(null,J0)});return}v(R(d).then(function(J0){if(J0)return S(k,B,_,x,d);return E(k,B,_,x,w)}),y)}}),qQ=G0((I)=>{var O=(qU(),h0(RU)),F=ZZ(),T=QZ(),H=GZ();function E(P,q,L,z,C,D){if(F(L,z),P=H(P,T,"Password"),q=H(q,T,"Salt"),typeof C==="function")D=C,C="sha1";if(typeof D!=="function")throw Error("No callback provided to pbkdf2");return O.pbkdf2(P,q,L,z,C,D)}function V(P,q,L,z,C){return F(L,z),P=H(P,T,"Password"),q=H(q,T,"Salt"),C=C||"sha1",O.pbkdf2Sync(P,q,L,z,C)}if(!O.pbkdf2Sync||O.pbkdf2Sync.toString().indexOf("keylen, digest")===-1)I.pbkdf2Sync=RQ(),I.pbkdf2=sJ();else I.pbkdf2Sync=V,I.pbkdf2=E}),tJ=G0((I)=>{var O=(qU(),h0(RU));I.createCipher=I.Cipher=O.createCipher,I.createCipheriv=I.Cipheriv=O.createCipheriv,I.createDecipher=I.Decipher=O.createDecipher,I.createDecipheriv=I.Decipheriv=O.createDecipheriv,I.listCiphers=I.getCiphers=O.getCiphers}),rJ=G0((I)=>{var O=(qU(),h0(RU));I.DiffieHellmanGroup=O.DiffieHellmanGroup,I.createDiffieHellmanGroup=O.createDiffieHellmanGroup,I.getDiffieHellman=O.getDiffieHellman,I.createDiffieHellman=O.createDiffieHellman,I.DiffieHellman=O.DiffieHellman}),aJ=G0((I)=>{var O=(qU(),h0(RU));I.createSign=O.createSign,I.Sign=O.Sign,I.createVerify=O.createVerify,I.Verify=O.Verify}),eJ=G0((I,O)=>{O.exports={name:"elliptic",version:"6.6.1",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"}}}),gU=G0((I,O)=>{(function(F,T){function H(U,Q){if(!U)throw Error(Q||"Assertion failed")}function E(U,Q){U.super_=Q;var J=function(){};J.prototype=Q.prototype,U.prototype=new J,U.prototype.constructor=U}function V(U,Q,J){if(V.isBN(U))return U;if(this.negative=0,this.words=null,this.length=0,this.red=null,U!==null){if(Q==="le"||Q==="be")J=Q,Q=10;this._init(U||0,Q||10,J||"be")}}if(typeof F==="object")F.exports=V;else T.BN=V;V.BN=V,V.wordSize=26;var P;try{if(typeof window<"u"&&typeof window.Buffer<"u")P=window.Buffer;else P=(HU(),h0(FU)).Buffer}catch(U){}V.isBN=function(U){if(U instanceof V)return!0;return U!==null&&typeof U==="object"&&U.constructor.wordSize===V.wordSize&&Array.isArray(U.words)},V.max=function(U,Q){if(U.cmp(Q)>0)return U;return Q},V.min=function(U,Q){if(U.cmp(Q)<0)return U;return Q},V.prototype._init=function(U,Q,J){if(typeof U==="number")return this._initNumber(U,Q,J);if(typeof U==="object")return this._initArray(U,Q,J);if(Q==="hex")Q=16;H(Q===(Q|0)&&Q>=2&&Q<=36),U=U.toString().replace(/\s+/g,"");var Z=0;if(U[0]==="-")Z++,this.negative=1;if(Z<U.length){if(Q===16)this._parseHex(U,Z,J);else if(this._parseBase(U,Q,Z),J==="le")this._initArray(this.toArray(),Q,J)}},V.prototype._initNumber=function(U,Q,J){if(U<0)this.negative=1,U=-U;if(U<67108864)this.words=[U&67108863],this.length=1;else if(U<4503599627370496)this.words=[U&67108863,U/67108864&67108863],this.length=2;else H(U<9007199254740992),this.words=[U&67108863,U/67108864&67108863,1],this.length=3;if(J!=="le")return;this._initArray(this.toArray(),Q,J)},V.prototype._initArray=function(U,Q,J){if(H(typeof U.length==="number"),U.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(U.length/3),this.words=Array(this.length);for(var Z=0;Z<this.length;Z++)this.words[Z]=0;var Y,K,W=0;if(J==="be"){for(Z=U.length-1,Y=0;Z>=0;Z-=3)if(K=U[Z]|U[Z-1]<<8|U[Z-2]<<16,this.words[Y]|=K<<W&67108863,this.words[Y+1]=K>>>26-W&67108863,W+=24,W>=26)W-=26,Y++}else if(J==="le"){for(Z=0,Y=0;Z<U.length;Z+=3)if(K=U[Z]|U[Z+1]<<8|U[Z+2]<<16,this.words[Y]|=K<<W&67108863,this.words[Y+1]=K>>>26-W&67108863,W+=24,W>=26)W-=26,Y++}return this.strip()};function q(U,Q){var J=U.charCodeAt(Q);if(J>=65&&J<=70)return J-55;else if(J>=97&&J<=102)return J-87;else return J-48&15}function L(U,Q,J){var Z=q(U,J);if(J-1>=Q)Z|=q(U,J-1)<<4;return Z}V.prototype._parseHex=function(U,Q,J){this.length=Math.ceil((U.length-Q)/6),this.words=Array(this.length);for(var Z=0;Z<this.length;Z++)this.words[Z]=0;var Y=0,K=0,W;if(J==="be")for(Z=U.length-1;Z>=Q;Z-=2)if(W=L(U,Q,Z)<<Y,this.words[K]|=W&67108863,Y>=18)Y-=18,K+=1,this.words[K]|=W>>>26;else Y+=8;else{var G=U.length-Q;for(Z=G%2===0?Q+1:Q;Z<U.length;Z+=2)if(W=L(U,Q,Z)<<Y,this.words[K]|=W&67108863,Y>=18)Y-=18,K+=1,this.words[K]|=W>>>26;else Y+=8}this.strip()};function z(U,Q,J,Z){var Y=0,K=Math.min(U.length,J);for(var W=Q;W<K;W++){var G=U.charCodeAt(W)-48;if(Y*=Z,G>=49)Y+=G-49+10;else if(G>=17)Y+=G-17+10;else Y+=G}return Y}V.prototype._parseBase=function(U,Q,J){this.words=[0],this.length=1;for(var Z=0,Y=1;Y<=67108863;Y*=Q)Z++;Z--,Y=Y/Q|0;var K=U.length-J,W=K%Z,G=Math.min(K,K-W)+J,X=0;for(var $=J;$<G;$+=Z)if(X=z(U,$,$+Z,Q),this.imuln(Y),this.words[0]+X<67108864)this.words[0]+=X;else this._iaddn(X);if(W!==0){var M=1;X=z(U,$,U.length,Q);for($=0;$<W;$++)M*=Q;if(this.imuln(M),this.words[0]+X<67108864)this.words[0]+=X;else this._iaddn(X)}this.strip()},V.prototype.copy=function(U){U.words=Array(this.length);for(var Q=0;Q<this.length;Q++)U.words[Q]=this.words[Q];U.length=this.length,U.negative=this.negative,U.red=this.red},V.prototype.clone=function(){var U=new V(null);return this.copy(U),U},V.prototype._expand=function(U){while(this.length<U)this.words[this.length++]=0;return this},V.prototype.strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},V.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},V.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var C=["","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"],D=[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],S=[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];if(V.prototype.toString=function(U,Q){U=U||10,Q=Q|0||1;var J;if(U===16||U==="hex"){J="";var Z=0,Y=0;for(var K=0;K<this.length;K++){var W=this.words[K],G=((W<<Z|Y)&16777215).toString(16);if(Y=W>>>24-Z&16777215,Z+=2,Z>=26)Z-=26,K--;if(Y!==0||K!==this.length-1)J=C[6-G.length]+G+J;else J=G+J}if(Y!==0)J=Y.toString(16)+J;while(J.length%Q!==0)J="0"+J;if(this.negative!==0)J="-"+J;return J}if(U===(U|0)&&U>=2&&U<=36){var X=D[U],$=S[U];J="";var M=this.clone();M.negative=0;while(!M.isZero()){var A=M.modn($).toString(U);if(M=M.idivn($),!M.isZero())J=C[X-A.length]+A+J;else J=A+J}if(this.isZero())J="0"+J;while(J.length%Q!==0)J="0"+J;if(this.negative!==0)J="-"+J;return J}H(!1,"Base should be between 2 and 36")},V.prototype.toNumber=function(){var U=this.words[0];if(this.length===2)U+=this.words[1]*67108864;else if(this.length===3&&this.words[2]===1)U+=4503599627370496+this.words[1]*67108864;else if(this.length>2)H(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-U:U},V.prototype.toJSON=function(){return this.toString(16)},V.prototype.toBuffer=function(U,Q){return H(typeof P<"u"),this.toArrayLike(P,U,Q)},V.prototype.toArray=function(U,Q){return this.toArrayLike(Array,U,Q)},V.prototype.toArrayLike=function(U,Q,J){var Z=this.byteLength(),Y=J||Math.max(1,Z);H(Z<=Y,"byte array longer than desired length"),H(Y>0,"Requested array length <= 0"),this.strip();var K=Q==="le",W=new U(Y),G,X,$=this.clone();if(!K){for(X=0;X<Y-Z;X++)W[X]=0;for(X=0;!$.isZero();X++)G=$.andln(255),$.iushrn(8),W[Y-X-1]=G}else{for(X=0;!$.isZero();X++)G=$.andln(255),$.iushrn(8),W[X]=G;for(;X<Y;X++)W[X]=0}return W},Math.clz32)V.prototype._countBits=function(U){return 32-Math.clz32(U)};else V.prototype._countBits=function(U){var Q=U,J=0;if(Q>=4096)J+=13,Q>>>=13;if(Q>=64)J+=7,Q>>>=7;if(Q>=8)J+=4,Q>>>=4;if(Q>=2)J+=2,Q>>>=2;return J+Q};V.prototype._zeroBits=function(U){if(U===0)return 26;var Q=U,J=0;if((Q&8191)===0)J+=13,Q>>>=13;if((Q&127)===0)J+=7,Q>>>=7;if((Q&15)===0)J+=4,Q>>>=4;if((Q&3)===0)J+=2,Q>>>=2;if((Q&1)===0)J++;return J},V.prototype.bitLength=function(){var U=this.words[this.length-1],Q=this._countBits(U);return(this.length-1)*26+Q};function R(U){var Q=Array(U.bitLength());for(var J=0;J<Q.length;J++){var Z=J/26|0,Y=J%26;Q[J]=(U.words[Z]&1<<Y)>>>Y}return Q}V.prototype.zeroBits=function(){if(this.isZero())return 0;var U=0;for(var Q=0;Q<this.length;Q++){var J=this._zeroBits(this.words[Q]);if(U+=J,J!==26)break}return U},V.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},V.prototype.toTwos=function(U){if(this.negative!==0)return this.abs().inotn(U).iaddn(1);return this.clone()},V.prototype.fromTwos=function(U){if(this.testn(U-1))return this.notn(U).iaddn(1).ineg();return this.clone()},V.prototype.isNeg=function(){return this.negative!==0},V.prototype.neg=function(){return this.clone().ineg()},V.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},V.prototype.iuor=function(U){while(this.length<U.length)this.words[this.length++]=0;for(var Q=0;Q<U.length;Q++)this.words[Q]=this.words[Q]|U.words[Q];return this.strip()},V.prototype.ior=function(U){return H((this.negative|U.negative)===0),this.iuor(U)},V.prototype.or=function(U){if(this.length>U.length)return this.clone().ior(U);return U.clone().ior(this)},V.prototype.uor=function(U){if(this.length>U.length)return this.clone().iuor(U);return U.clone().iuor(this)},V.prototype.iuand=function(U){var Q;if(this.length>U.length)Q=U;else Q=this;for(var J=0;J<Q.length;J++)this.words[J]=this.words[J]&U.words[J];return this.length=Q.length,this.strip()},V.prototype.iand=function(U){return H((this.negative|U.negative)===0),this.iuand(U)},V.prototype.and=function(U){if(this.length>U.length)return this.clone().iand(U);return U.clone().iand(this)},V.prototype.uand=function(U){if(this.length>U.length)return this.clone().iuand(U);return U.clone().iuand(this)},V.prototype.iuxor=function(U){var Q,J;if(this.length>U.length)Q=this,J=U;else Q=U,J=this;for(var Z=0;Z<J.length;Z++)this.words[Z]=Q.words[Z]^J.words[Z];if(this!==Q)for(;Z<Q.length;Z++)this.words[Z]=Q.words[Z];return this.length=Q.length,this.strip()},V.prototype.ixor=function(U){return H((this.negative|U.negative)===0),this.iuxor(U)},V.prototype.xor=function(U){if(this.length>U.length)return this.clone().ixor(U);return U.clone().ixor(this)},V.prototype.uxor=function(U){if(this.length>U.length)return this.clone().iuxor(U);return U.clone().iuxor(this)},V.prototype.inotn=function(U){H(typeof U==="number"&&U>=0);var Q=Math.ceil(U/26)|0,J=U%26;if(this._expand(Q),J>0)Q--;for(var Z=0;Z<Q;Z++)this.words[Z]=~this.words[Z]&67108863;if(J>0)this.words[Z]=~this.words[Z]&67108863>>26-J;return this.strip()},V.prototype.notn=function(U){return this.clone().inotn(U)},V.prototype.setn=function(U,Q){H(typeof U==="number"&&U>=0);var J=U/26|0,Z=U%26;if(this._expand(J+1),Q)this.words[J]=this.words[J]|1<<Z;else this.words[J]=this.words[J]&~(1<<Z);return this.strip()},V.prototype.iadd=function(U){var Q;if(this.negative!==0&&U.negative===0)return this.negative=0,Q=this.isub(U),this.negative^=1,this._normSign();else if(this.negative===0&&U.negative!==0)return U.negative=0,Q=this.isub(U),U.negative=1,Q._normSign();var J,Z;if(this.length>U.length)J=this,Z=U;else J=U,Z=this;var Y=0;for(var K=0;K<Z.length;K++)Q=(J.words[K]|0)+(Z.words[K]|0)+Y,this.words[K]=Q&67108863,Y=Q>>>26;for(;Y!==0&&K<J.length;K++)Q=(J.words[K]|0)+Y,this.words[K]=Q&67108863,Y=Q>>>26;if(this.length=J.length,Y!==0)this.words[this.length]=Y,this.length++;else if(J!==this)for(;K<J.length;K++)this.words[K]=J.words[K];return this},V.prototype.add=function(U){var Q;if(U.negative!==0&&this.negative===0)return U.negative=0,Q=this.sub(U),U.negative^=1,Q;else if(U.negative===0&&this.negative!==0)return this.negative=0,Q=U.sub(this),this.negative=1,Q;if(this.length>U.length)return this.clone().iadd(U);return U.clone().iadd(this)},V.prototype.isub=function(U){if(U.negative!==0){U.negative=0;var Q=this.iadd(U);return U.negative=1,Q._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(U),this.negative=1,this._normSign();var J=this.cmp(U);if(J===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Z,Y;if(J>0)Z=this,Y=U;else Z=U,Y=this;var K=0;for(var W=0;W<Y.length;W++)Q=(Z.words[W]|0)-(Y.words[W]|0)+K,K=Q>>26,this.words[W]=Q&67108863;for(;K!==0&&W<Z.length;W++)Q=(Z.words[W]|0)+K,K=Q>>26,this.words[W]=Q&67108863;if(K===0&&W<Z.length&&Z!==this)for(;W<Z.length;W++)this.words[W]=Z.words[W];if(this.length=Math.max(this.length,W),Z!==this)this.negative=1;return this.strip()},V.prototype.sub=function(U){return this.clone().isub(U)};function v(U,Q,J){J.negative=Q.negative^U.negative;var Z=U.length+Q.length|0;J.length=Z,Z=Z-1|0;var Y=U.words[0]|0,K=Q.words[0]|0,W=Y*K,G=W&67108863,X=W/67108864|0;J.words[0]=G;for(var $=1;$<Z;$++){var M=X>>>26,A=X&67108863,j=Math.min($,Q.length-1);for(var g=Math.max(0,$-U.length+1);g<=j;g++){var p=$-g|0;Y=U.words[p]|0,K=Q.words[g]|0,W=Y*K+A,M+=W/67108864|0,A=W&67108863}J.words[$]=A|0,X=M|0}if(X!==0)J.words[$]=X|0;else J.length--;return J.strip()}var k=function(U,Q,J){var Z=U.words,Y=Q.words,K=J.words,W=0,G,X,$,M=Z[0]|0,A=M&8191,j=M>>>13,g=Z[1]|0,p=g&8191,n=g>>>13,K0=Z[2]|0,r=K0&8191,l=K0>>>13,Q0=Z[3]|0,m=Q0&8191,i=Q0>>>13,g0=Z[4]|0,f=g0&8191,h=g0>>>13,Y0=Z[5]|0,t=Y0&8191,e=Y0>>>13,L0=Z[6]|0,c=L0&8191,o=L0>>>13,N0=Z[7]|0,s=N0&8191,Z0=N0>>>13,y0=Z[8]|0,F0=y0&8191,H0=y0>>>13,n0=Z[9]|0,O0=n0&8191,C0=n0>>>13,t0=Y[0]|0,D0=t0&8191,T0=t0>>>13,TU=Y[1]|0,E0=TU&8191,k0=TU>>>13,DU=Y[2]|0,j0=DU&8191,M0=DU>>>13,CU=Y[3]|0,v0=CU&8191,S0=CU>>>13,KU=Y[4]|0,_0=KU&8191,B0=KU>>>13,OU=Y[5]|0,R0=OU&8191,N=OU>>>13,b=Y[6]|0,a=b&8191,U0=b>>>13,w0=Y[7]|0,W0=w0&8191,A0=w0>>>13,m0=Y[8]|0,q0=m0&8191,x0=m0>>>13,AU=Y[9]|0,P0=AU&8191,z0=AU>>>13;J.negative=U.negative^Q.negative,J.length=19,G=Math.imul(A,D0),X=Math.imul(A,T0),X=X+Math.imul(j,D0)|0,$=Math.imul(j,T0);var s0=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(s0>>>26)|0,s0&=67108863,G=Math.imul(p,D0),X=Math.imul(p,T0),X=X+Math.imul(n,D0)|0,$=Math.imul(n,T0),G=G+Math.imul(A,E0)|0,X=X+Math.imul(A,k0)|0,X=X+Math.imul(j,E0)|0,$=$+Math.imul(j,k0)|0;var c0=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(c0>>>26)|0,c0&=67108863,G=Math.imul(r,D0),X=Math.imul(r,T0),X=X+Math.imul(l,D0)|0,$=Math.imul(l,T0),G=G+Math.imul(p,E0)|0,X=X+Math.imul(p,k0)|0,X=X+Math.imul(n,E0)|0,$=$+Math.imul(n,k0)|0,G=G+Math.imul(A,j0)|0,X=X+Math.imul(A,M0)|0,X=X+Math.imul(j,j0)|0,$=$+Math.imul(j,M0)|0;var f0=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(f0>>>26)|0,f0&=67108863,G=Math.imul(m,D0),X=Math.imul(m,T0),X=X+Math.imul(i,D0)|0,$=Math.imul(i,T0),G=G+Math.imul(r,E0)|0,X=X+Math.imul(r,k0)|0,X=X+Math.imul(l,E0)|0,$=$+Math.imul(l,k0)|0,G=G+Math.imul(p,j0)|0,X=X+Math.imul(p,M0)|0,X=X+Math.imul(n,j0)|0,$=$+Math.imul(n,M0)|0,G=G+Math.imul(A,v0)|0,X=X+Math.imul(A,S0)|0,X=X+Math.imul(j,v0)|0,$=$+Math.imul(j,S0)|0;var l0=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(l0>>>26)|0,l0&=67108863,G=Math.imul(f,D0),X=Math.imul(f,T0),X=X+Math.imul(h,D0)|0,$=Math.imul(h,T0),G=G+Math.imul(m,E0)|0,X=X+Math.imul(m,k0)|0,X=X+Math.imul(i,E0)|0,$=$+Math.imul(i,k0)|0,G=G+Math.imul(r,j0)|0,X=X+Math.imul(r,M0)|0,X=X+Math.imul(l,j0)|0,$=$+Math.imul(l,M0)|0,G=G+Math.imul(p,v0)|0,X=X+Math.imul(p,S0)|0,X=X+Math.imul(n,v0)|0,$=$+Math.imul(n,S0)|0,G=G+Math.imul(A,_0)|0,X=X+Math.imul(A,B0)|0,X=X+Math.imul(j,_0)|0,$=$+Math.imul(j,B0)|0;var b0=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(b0>>>26)|0,b0&=67108863,G=Math.imul(t,D0),X=Math.imul(t,T0),X=X+Math.imul(e,D0)|0,$=Math.imul(e,T0),G=G+Math.imul(f,E0)|0,X=X+Math.imul(f,k0)|0,X=X+Math.imul(h,E0)|0,$=$+Math.imul(h,k0)|0,G=G+Math.imul(m,j0)|0,X=X+Math.imul(m,M0)|0,X=X+Math.imul(i,j0)|0,$=$+Math.imul(i,M0)|0,G=G+Math.imul(r,v0)|0,X=X+Math.imul(r,S0)|0,X=X+Math.imul(l,v0)|0,$=$+Math.imul(l,S0)|0,G=G+Math.imul(p,_0)|0,X=X+Math.imul(p,B0)|0,X=X+Math.imul(n,_0)|0,$=$+Math.imul(n,B0)|0,G=G+Math.imul(A,R0)|0,X=X+Math.imul(A,N)|0,X=X+Math.imul(j,R0)|0,$=$+Math.imul(j,N)|0;var r0=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(r0>>>26)|0,r0&=67108863,G=Math.imul(c,D0),X=Math.imul(c,T0),X=X+Math.imul(o,D0)|0,$=Math.imul(o,T0),G=G+Math.imul(t,E0)|0,X=X+Math.imul(t,k0)|0,X=X+Math.imul(e,E0)|0,$=$+Math.imul(e,k0)|0,G=G+Math.imul(f,j0)|0,X=X+Math.imul(f,M0)|0,X=X+Math.imul(h,j0)|0,$=$+Math.imul(h,M0)|0,G=G+Math.imul(m,v0)|0,X=X+Math.imul(m,S0)|0,X=X+Math.imul(i,v0)|0,$=$+Math.imul(i,S0)|0,G=G+Math.imul(r,_0)|0,X=X+Math.imul(r,B0)|0,X=X+Math.imul(l,_0)|0,$=$+Math.imul(l,B0)|0,G=G+Math.imul(p,R0)|0,X=X+Math.imul(p,N)|0,X=X+Math.imul(n,R0)|0,$=$+Math.imul(n,N)|0,G=G+Math.imul(A,a)|0,X=X+Math.imul(A,U0)|0,X=X+Math.imul(j,a)|0,$=$+Math.imul(j,U0)|0;var a0=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(a0>>>26)|0,a0&=67108863,G=Math.imul(s,D0),X=Math.imul(s,T0),X=X+Math.imul(Z0,D0)|0,$=Math.imul(Z0,T0),G=G+Math.imul(c,E0)|0,X=X+Math.imul(c,k0)|0,X=X+Math.imul(o,E0)|0,$=$+Math.imul(o,k0)|0,G=G+Math.imul(t,j0)|0,X=X+Math.imul(t,M0)|0,X=X+Math.imul(e,j0)|0,$=$+Math.imul(e,M0)|0,G=G+Math.imul(f,v0)|0,X=X+Math.imul(f,S0)|0,X=X+Math.imul(h,v0)|0,$=$+Math.imul(h,S0)|0,G=G+Math.imul(m,_0)|0,X=X+Math.imul(m,B0)|0,X=X+Math.imul(i,_0)|0,$=$+Math.imul(i,B0)|0,G=G+Math.imul(r,R0)|0,X=X+Math.imul(r,N)|0,X=X+Math.imul(l,R0)|0,$=$+Math.imul(l,N)|0,G=G+Math.imul(p,a)|0,X=X+Math.imul(p,U0)|0,X=X+Math.imul(n,a)|0,$=$+Math.imul(n,U0)|0,G=G+Math.imul(A,W0)|0,X=X+Math.imul(A,A0)|0,X=X+Math.imul(j,W0)|0,$=$+Math.imul(j,A0)|0;var e0=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(e0>>>26)|0,e0&=67108863,G=Math.imul(F0,D0),X=Math.imul(F0,T0),X=X+Math.imul(H0,D0)|0,$=Math.imul(H0,T0),G=G+Math.imul(s,E0)|0,X=X+Math.imul(s,k0)|0,X=X+Math.imul(Z0,E0)|0,$=$+Math.imul(Z0,k0)|0,G=G+Math.imul(c,j0)|0,X=X+Math.imul(c,M0)|0,X=X+Math.imul(o,j0)|0,$=$+Math.imul(o,M0)|0,G=G+Math.imul(t,v0)|0,X=X+Math.imul(t,S0)|0,X=X+Math.imul(e,v0)|0,$=$+Math.imul(e,S0)|0,G=G+Math.imul(f,_0)|0,X=X+Math.imul(f,B0)|0,X=X+Math.imul(h,_0)|0,$=$+Math.imul(h,B0)|0,G=G+Math.imul(m,R0)|0,X=X+Math.imul(m,N)|0,X=X+Math.imul(i,R0)|0,$=$+Math.imul(i,N)|0,G=G+Math.imul(r,a)|0,X=X+Math.imul(r,U0)|0,X=X+Math.imul(l,a)|0,$=$+Math.imul(l,U0)|0,G=G+Math.imul(p,W0)|0,X=X+Math.imul(p,A0)|0,X=X+Math.imul(n,W0)|0,$=$+Math.imul(n,A0)|0,G=G+Math.imul(A,q0)|0,X=X+Math.imul(A,x0)|0,X=X+Math.imul(j,q0)|0,$=$+Math.imul(j,x0)|0;var i0=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(i0>>>26)|0,i0&=67108863,G=Math.imul(O0,D0),X=Math.imul(O0,T0),X=X+Math.imul(C0,D0)|0,$=Math.imul(C0,T0),G=G+Math.imul(F0,E0)|0,X=X+Math.imul(F0,k0)|0,X=X+Math.imul(H0,E0)|0,$=$+Math.imul(H0,k0)|0,G=G+Math.imul(s,j0)|0,X=X+Math.imul(s,M0)|0,X=X+Math.imul(Z0,j0)|0,$=$+Math.imul(Z0,M0)|0,G=G+Math.imul(c,v0)|0,X=X+Math.imul(c,S0)|0,X=X+Math.imul(o,v0)|0,$=$+Math.imul(o,S0)|0,G=G+Math.imul(t,_0)|0,X=X+Math.imul(t,B0)|0,X=X+Math.imul(e,_0)|0,$=$+Math.imul(e,B0)|0,G=G+Math.imul(f,R0)|0,X=X+Math.imul(f,N)|0,X=X+Math.imul(h,R0)|0,$=$+Math.imul(h,N)|0,G=G+Math.imul(m,a)|0,X=X+Math.imul(m,U0)|0,X=X+Math.imul(i,a)|0,$=$+Math.imul(i,U0)|0,G=G+Math.imul(r,W0)|0,X=X+Math.imul(r,A0)|0,X=X+Math.imul(l,W0)|0,$=$+Math.imul(l,A0)|0,G=G+Math.imul(p,q0)|0,X=X+Math.imul(p,x0)|0,X=X+Math.imul(n,q0)|0,$=$+Math.imul(n,x0)|0,G=G+Math.imul(A,P0)|0,X=X+Math.imul(A,z0)|0,X=X+Math.imul(j,P0)|0,$=$+Math.imul(j,z0)|0;var UU=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(UU>>>26)|0,UU&=67108863,G=Math.imul(O0,E0),X=Math.imul(O0,k0),X=X+Math.imul(C0,E0)|0,$=Math.imul(C0,k0),G=G+Math.imul(F0,j0)|0,X=X+Math.imul(F0,M0)|0,X=X+Math.imul(H0,j0)|0,$=$+Math.imul(H0,M0)|0,G=G+Math.imul(s,v0)|0,X=X+Math.imul(s,S0)|0,X=X+Math.imul(Z0,v0)|0,$=$+Math.imul(Z0,S0)|0,G=G+Math.imul(c,_0)|0,X=X+Math.imul(c,B0)|0,X=X+Math.imul(o,_0)|0,$=$+Math.imul(o,B0)|0,G=G+Math.imul(t,R0)|0,X=X+Math.imul(t,N)|0,X=X+Math.imul(e,R0)|0,$=$+Math.imul(e,N)|0,G=G+Math.imul(f,a)|0,X=X+Math.imul(f,U0)|0,X=X+Math.imul(h,a)|0,$=$+Math.imul(h,U0)|0,G=G+Math.imul(m,W0)|0,X=X+Math.imul(m,A0)|0,X=X+Math.imul(i,W0)|0,$=$+Math.imul(i,A0)|0,G=G+Math.imul(r,q0)|0,X=X+Math.imul(r,x0)|0,X=X+Math.imul(l,q0)|0,$=$+Math.imul(l,x0)|0,G=G+Math.imul(p,P0)|0,X=X+Math.imul(p,z0)|0,X=X+Math.imul(n,P0)|0,$=$+Math.imul(n,z0)|0;var XU=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(XU>>>26)|0,XU&=67108863,G=Math.imul(O0,j0),X=Math.imul(O0,M0),X=X+Math.imul(C0,j0)|0,$=Math.imul(C0,M0),G=G+Math.imul(F0,v0)|0,X=X+Math.imul(F0,S0)|0,X=X+Math.imul(H0,v0)|0,$=$+Math.imul(H0,S0)|0,G=G+Math.imul(s,_0)|0,X=X+Math.imul(s,B0)|0,X=X+Math.imul(Z0,_0)|0,$=$+Math.imul(Z0,B0)|0,G=G+Math.imul(c,R0)|0,X=X+Math.imul(c,N)|0,X=X+Math.imul(o,R0)|0,$=$+Math.imul(o,N)|0,G=G+Math.imul(t,a)|0,X=X+Math.imul(t,U0)|0,X=X+Math.imul(e,a)|0,$=$+Math.imul(e,U0)|0,G=G+Math.imul(f,W0)|0,X=X+Math.imul(f,A0)|0,X=X+Math.imul(h,W0)|0,$=$+Math.imul(h,A0)|0,G=G+Math.imul(m,q0)|0,X=X+Math.imul(m,x0)|0,X=X+Math.imul(i,q0)|0,$=$+Math.imul(i,x0)|0,G=G+Math.imul(r,P0)|0,X=X+Math.imul(r,z0)|0,X=X+Math.imul(l,P0)|0,$=$+Math.imul(l,z0)|0;var ZU=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(ZU>>>26)|0,ZU&=67108863,G=Math.imul(O0,v0),X=Math.imul(O0,S0),X=X+Math.imul(C0,v0)|0,$=Math.imul(C0,S0),G=G+Math.imul(F0,_0)|0,X=X+Math.imul(F0,B0)|0,X=X+Math.imul(H0,_0)|0,$=$+Math.imul(H0,B0)|0,G=G+Math.imul(s,R0)|0,X=X+Math.imul(s,N)|0,X=X+Math.imul(Z0,R0)|0,$=$+Math.imul(Z0,N)|0,G=G+Math.imul(c,a)|0,X=X+Math.imul(c,U0)|0,X=X+Math.imul(o,a)|0,$=$+Math.imul(o,U0)|0,G=G+Math.imul(t,W0)|0,X=X+Math.imul(t,A0)|0,X=X+Math.imul(e,W0)|0,$=$+Math.imul(e,A0)|0,G=G+Math.imul(f,q0)|0,X=X+Math.imul(f,x0)|0,X=X+Math.imul(h,q0)|0,$=$+Math.imul(h,x0)|0,G=G+Math.imul(m,P0)|0,X=X+Math.imul(m,z0)|0,X=X+Math.imul(i,P0)|0,$=$+Math.imul(i,z0)|0;var QU=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(QU>>>26)|0,QU&=67108863,G=Math.imul(O0,_0),X=Math.imul(O0,B0),X=X+Math.imul(C0,_0)|0,$=Math.imul(C0,B0),G=G+Math.imul(F0,R0)|0,X=X+Math.imul(F0,N)|0,X=X+Math.imul(H0,R0)|0,$=$+Math.imul(H0,N)|0,G=G+Math.imul(s,a)|0,X=X+Math.imul(s,U0)|0,X=X+Math.imul(Z0,a)|0,$=$+Math.imul(Z0,U0)|0,G=G+Math.imul(c,W0)|0,X=X+Math.imul(c,A0)|0,X=X+Math.imul(o,W0)|0,$=$+Math.imul(o,A0)|0,G=G+Math.imul(t,q0)|0,X=X+Math.imul(t,x0)|0,X=X+Math.imul(e,q0)|0,$=$+Math.imul(e,x0)|0,G=G+Math.imul(f,P0)|0,X=X+Math.imul(f,z0)|0,X=X+Math.imul(h,P0)|0,$=$+Math.imul(h,z0)|0;var YU=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(YU>>>26)|0,YU&=67108863,G=Math.imul(O0,R0),X=Math.imul(O0,N),X=X+Math.imul(C0,R0)|0,$=Math.imul(C0,N),G=G+Math.imul(F0,a)|0,X=X+Math.imul(F0,U0)|0,X=X+Math.imul(H0,a)|0,$=$+Math.imul(H0,U0)|0,G=G+Math.imul(s,W0)|0,X=X+Math.imul(s,A0)|0,X=X+Math.imul(Z0,W0)|0,$=$+Math.imul(Z0,A0)|0,G=G+Math.imul(c,q0)|0,X=X+Math.imul(c,x0)|0,X=X+Math.imul(o,q0)|0,$=$+Math.imul(o,x0)|0,G=G+Math.imul(t,P0)|0,X=X+Math.imul(t,z0)|0,X=X+Math.imul(e,P0)|0,$=$+Math.imul(e,z0)|0;var JU=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(JU>>>26)|0,JU&=67108863,G=Math.imul(O0,a),X=Math.imul(O0,U0),X=X+Math.imul(C0,a)|0,$=Math.imul(C0,U0),G=G+Math.imul(F0,W0)|0,X=X+Math.imul(F0,A0)|0,X=X+Math.imul(H0,W0)|0,$=$+Math.imul(H0,A0)|0,G=G+Math.imul(s,q0)|0,X=X+Math.imul(s,x0)|0,X=X+Math.imul(Z0,q0)|0,$=$+Math.imul(Z0,x0)|0,G=G+Math.imul(c,P0)|0,X=X+Math.imul(c,z0)|0,X=X+Math.imul(o,P0)|0,$=$+Math.imul(o,z0)|0;var VU=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(VU>>>26)|0,VU&=67108863,G=Math.imul(O0,W0),X=Math.imul(O0,A0),X=X+Math.imul(C0,W0)|0,$=Math.imul(C0,A0),G=G+Math.imul(F0,q0)|0,X=X+Math.imul(F0,x0)|0,X=X+Math.imul(H0,q0)|0,$=$+Math.imul(H0,x0)|0,G=G+Math.imul(s,P0)|0,X=X+Math.imul(s,z0)|0,X=X+Math.imul(Z0,P0)|0,$=$+Math.imul(Z0,z0)|0;var GU=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(GU>>>26)|0,GU&=67108863,G=Math.imul(O0,q0),X=Math.imul(O0,x0),X=X+Math.imul(C0,q0)|0,$=Math.imul(C0,x0),G=G+Math.imul(F0,P0)|0,X=X+Math.imul(F0,z0)|0,X=X+Math.imul(H0,P0)|0,$=$+Math.imul(H0,z0)|0;var IU=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(IU>>>26)|0,IU&=67108863,G=Math.imul(O0,P0),X=Math.imul(O0,z0),X=X+Math.imul(C0,P0)|0,$=Math.imul(C0,z0);var $U=(W+G|0)+((X&8191)<<13)|0;if(W=($+(X>>>13)|0)+($U>>>26)|0,$U&=67108863,K[0]=s0,K[1]=c0,K[2]=f0,K[3]=l0,K[4]=b0,K[5]=r0,K[6]=a0,K[7]=e0,K[8]=i0,K[9]=UU,K[10]=XU,K[11]=ZU,K[12]=QU,K[13]=YU,K[14]=JU,K[15]=VU,K[16]=GU,K[17]=IU,K[18]=$U,W!==0)K[19]=W,J.length++;return J};if(!Math.imul)k=v;function B(U,Q,J){J.negative=Q.negative^U.negative,J.length=U.length+Q.length;var Z=0,Y=0;for(var K=0;K<J.length-1;K++){var W=Y;Y=0;var G=Z&67108863,X=Math.min(K,Q.length-1);for(var $=Math.max(0,K-U.length+1);$<=X;$++){var M=K-$,A=U.words[M]|0,j=Q.words[$]|0,g=A*j,p=g&67108863;W=W+(g/67108864|0)|0,p=p+G|0,G=p&67108863,W=W+(p>>>26)|0,Y+=W>>>26,W&=67108863}J.words[K]=G,Z=W,W=Y}if(Z!==0)J.words[K]=Z;else J.length--;return J.strip()}function _(U,Q,J){var Z=new x;return Z.mulp(U,Q,J)}V.prototype.mulTo=function(U,Q){var J,Z=this.length+U.length;if(this.length===10&&U.length===10)J=k(this,U,Q);else if(Z<63)J=v(this,U,Q);else if(Z<1024)J=B(this,U,Q);else J=_(this,U,Q);return J};function x(U,Q){this.x=U,this.y=Q}x.prototype.makeRBT=function(U){var Q=Array(U),J=V.prototype._countBits(U)-1;for(var Z=0;Z<U;Z++)Q[Z]=this.revBin(Z,J,U);return Q},x.prototype.revBin=function(U,Q,J){if(U===0||U===J-1)return U;var Z=0;for(var Y=0;Y<Q;Y++)Z|=(U&1)<<Q-Y-1,U>>=1;return Z},x.prototype.permute=function(U,Q,J,Z,Y,K){for(var W=0;W<K;W++)Z[W]=Q[U[W]],Y[W]=J[U[W]]},x.prototype.transform=function(U,Q,J,Z,Y,K){this.permute(K,U,Q,J,Z,Y);for(var W=1;W<Y;W<<=1){var G=W<<1,X=Math.cos(2*Math.PI/G),$=Math.sin(2*Math.PI/G);for(var M=0;M<Y;M+=G){var A=X,j=$;for(var g=0;g<W;g++){var p=J[M+g],n=Z[M+g],K0=J[M+g+W],r=Z[M+g+W],l=A*K0-j*r;if(r=A*r+j*K0,K0=l,J[M+g]=p+K0,Z[M+g]=n+r,J[M+g+W]=p-K0,Z[M+g+W]=n-r,g!==G)l=X*A-$*j,j=X*j+$*A,A=l}}}},x.prototype.guessLen13b=function(U,Q){var J=Math.max(Q,U)|1,Z=J&1,Y=0;for(J=J/2|0;J;J=J>>>1)Y++;return 1<<Y+1+Z},x.prototype.conjugate=function(U,Q,J){if(J<=1)return;for(var Z=0;Z<J/2;Z++){var Y=U[Z];U[Z]=U[J-Z-1],U[J-Z-1]=Y,Y=Q[Z],Q[Z]=-Q[J-Z-1],Q[J-Z-1]=-Y}},x.prototype.normalize13b=function(U,Q){var J=0;for(var Z=0;Z<Q/2;Z++){var Y=Math.round(U[2*Z+1]/Q)*8192+Math.round(U[2*Z]/Q)+J;if(U[Z]=Y&67108863,Y<67108864)J=0;else J=Y/67108864|0}return U},x.prototype.convert13b=function(U,Q,J,Z){var Y=0;for(var K=0;K<Q;K++)Y=Y+(U[K]|0),J[2*K]=Y&8191,Y=Y>>>13,J[2*K+1]=Y&8191,Y=Y>>>13;for(K=2*Q;K<Z;++K)J[K]=0;H(Y===0),H((Y&-8192)===0)},x.prototype.stub=function(U){var Q=Array(U);for(var J=0;J<U;J++)Q[J]=0;return Q},x.prototype.mulp=function(U,Q,J){var Z=2*this.guessLen13b(U.length,Q.length),Y=this.makeRBT(Z),K=this.stub(Z),W=Array(Z),G=Array(Z),X=Array(Z),$=Array(Z),M=Array(Z),A=Array(Z),j=J.words;j.length=Z,this.convert13b(U.words,U.length,W,Z),this.convert13b(Q.words,Q.length,$,Z),this.transform(W,K,G,X,Z,Y),this.transform($,K,M,A,Z,Y);for(var g=0;g<Z;g++){var p=G[g]*M[g]-X[g]*A[g];X[g]=G[g]*A[g]+X[g]*M[g],G[g]=p}return this.conjugate(G,X,Z),this.transform(G,X,j,K,Z,Y),this.conjugate(j,K,Z),this.normalize13b(j,Z),J.negative=U.negative^Q.negative,J.length=U.length+Q.length,J.strip()},V.prototype.mul=function(U){var Q=new V(null);return Q.words=Array(this.length+U.length),this.mulTo(U,Q)},V.prototype.mulf=function(U){var Q=new V(null);return Q.words=Array(this.length+U.length),_(this,U,Q)},V.prototype.imul=function(U){return this.clone().mulTo(U,this)},V.prototype.imuln=function(U){H(typeof U==="number"),H(U<67108864);var Q=0;for(var J=0;J<this.length;J++){var Z=(this.words[J]|0)*U,Y=(Z&67108863)+(Q&67108863);Q>>=26,Q+=Z/67108864|0,Q+=Y>>>26,this.words[J]=Y&67108863}if(Q!==0)this.words[J]=Q,this.length++;return this.length=U===0?1:this.length,this},V.prototype.muln=function(U){return this.clone().imuln(U)},V.prototype.sqr=function(){return this.mul(this)},V.prototype.isqr=function(){return this.imul(this.clone())},V.prototype.pow=function(U){var Q=R(U);if(Q.length===0)return new V(1);var J=this;for(var Z=0;Z<Q.length;Z++,J=J.sqr())if(Q[Z]!==0)break;if(++Z<Q.length)for(var Y=J.sqr();Z<Q.length;Z++,Y=Y.sqr()){if(Q[Z]===0)continue;J=J.mul(Y)}return J},V.prototype.iushln=function(U){H(typeof U==="number"&&U>=0);var Q=U%26,J=(U-Q)/26,Z=67108863>>>26-Q<<26-Q,Y;if(Q!==0){var K=0;for(Y=0;Y<this.length;Y++){var W=this.words[Y]&Z,G=(this.words[Y]|0)-W<<Q;this.words[Y]=G|K,K=W>>>26-Q}if(K)this.words[Y]=K,this.length++}if(J!==0){for(Y=this.length-1;Y>=0;Y--)this.words[Y+J]=this.words[Y];for(Y=0;Y<J;Y++)this.words[Y]=0;this.length+=J}return this.strip()},V.prototype.ishln=function(U){return H(this.negative===0),this.iushln(U)},V.prototype.iushrn=function(U,Q,J){H(typeof U==="number"&&U>=0);var Z;if(Q)Z=(Q-Q%26)/26;else Z=0;var Y=U%26,K=Math.min((U-Y)/26,this.length),W=67108863^67108863>>>Y<<Y,G=J;if(Z-=K,Z=Math.max(0,Z),G){for(var X=0;X<K;X++)G.words[X]=this.words[X];G.length=K}if(K===0);else if(this.length>K){this.length-=K;for(X=0;X<this.length;X++)this.words[X]=this.words[X+K]}else this.words[0]=0,this.length=1;var $=0;for(X=this.length-1;X>=0&&($!==0||X>=Z);X--){var M=this.words[X]|0;this.words[X]=$<<26-Y|M>>>Y,$=M&W}if(G&&$!==0)G.words[G.length++]=$;if(this.length===0)this.words[0]=0,this.length=1;return this.strip()},V.prototype.ishrn=function(U,Q,J){return H(this.negative===0),this.iushrn(U,Q,J)},V.prototype.shln=function(U){return this.clone().ishln(U)},V.prototype.ushln=function(U){return this.clone().iushln(U)},V.prototype.shrn=function(U){return this.clone().ishrn(U)},V.prototype.ushrn=function(U){return this.clone().iushrn(U)},V.prototype.testn=function(U){H(typeof U==="number"&&U>=0);var Q=U%26,J=(U-Q)/26,Z=1<<Q;if(this.length<=J)return!1;var Y=this.words[J];return!!(Y&Z)},V.prototype.imaskn=function(U){H(typeof U==="number"&&U>=0);var Q=U%26,J=(U-Q)/26;if(H(this.negative===0,"imaskn works only with positive numbers"),this.length<=J)return this;if(Q!==0)J++;if(this.length=Math.min(J,this.length),Q!==0){var Z=67108863^67108863>>>Q<<Q;this.words[this.length-1]&=Z}return this.strip()},V.prototype.maskn=function(U){return this.clone().imaskn(U)},V.prototype.iaddn=function(U){if(H(typeof U==="number"),H(U<67108864),U<0)return this.isubn(-U);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<U)return this.words[0]=U-(this.words[0]|0),this.negative=0,this;return this.negative=0,this.isubn(U),this.negative=1,this}return this._iaddn(U)},V.prototype._iaddn=function(U){this.words[0]+=U;for(var Q=0;Q<this.length&&this.words[Q]>=67108864;Q++)if(this.words[Q]-=67108864,Q===this.length-1)this.words[Q+1]=1;else this.words[Q+1]++;return this.length=Math.max(this.length,Q+1),this},V.prototype.isubn=function(U){if(H(typeof U==="number"),H(U<67108864),U<0)return this.iaddn(-U);if(this.negative!==0)return this.negative=0,this.iaddn(U),this.negative=1,this;if(this.words[0]-=U,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Q=0;Q<this.length&&this.words[Q]<0;Q++)this.words[Q]+=67108864,this.words[Q+1]-=1;return this.strip()},V.prototype.addn=function(U){return this.clone().iaddn(U)},V.prototype.subn=function(U){return this.clone().isubn(U)},V.prototype.iabs=function(){return this.negative=0,this},V.prototype.abs=function(){return this.clone().iabs()},V.prototype._ishlnsubmul=function(U,Q,J){var Z=U.length+J,Y;this._expand(Z);var K,W=0;for(Y=0;Y<U.length;Y++){K=(this.words[Y+J]|0)+W;var G=(U.words[Y]|0)*Q;K-=G&67108863,W=(K>>26)-(G/67108864|0),this.words[Y+J]=K&67108863}for(;Y<this.length-J;Y++)K=(this.words[Y+J]|0)+W,W=K>>26,this.words[Y+J]=K&67108863;if(W===0)return this.strip();H(W===-1),W=0;for(Y=0;Y<this.length;Y++)K=-(this.words[Y]|0)+W,W=K>>26,this.words[Y]=K&67108863;return this.negative=1,this.strip()},V.prototype._wordDiv=function(U,Q){var J=this.length-U.length,Z=this.clone(),Y=U,K=Y.words[Y.length-1]|0,W=this._countBits(K);if(J=26-W,J!==0)Y=Y.ushln(J),Z.iushln(J),K=Y.words[Y.length-1]|0;var G=Z.length-Y.length,X;if(Q!=="mod"){X=new V(null),X.length=G+1,X.words=Array(X.length);for(var $=0;$<X.length;$++)X.words[$]=0}var M=Z.clone()._ishlnsubmul(Y,1,G);if(M.negative===0){if(Z=M,X)X.words[G]=1}for(var A=G-1;A>=0;A--){var j=(Z.words[Y.length+A]|0)*67108864+(Z.words[Y.length+A-1]|0);j=Math.min(j/K|0,67108863),Z._ishlnsubmul(Y,j,A);while(Z.negative!==0)if(j--,Z.negative=0,Z._ishlnsubmul(Y,1,A),!Z.isZero())Z.negative^=1;if(X)X.words[A]=j}if(X)X.strip();if(Z.strip(),Q!=="div"&&J!==0)Z.iushrn(J);return{div:X||null,mod:Z}},V.prototype.divmod=function(U,Q,J){if(H(!U.isZero()),this.isZero())return{div:new V(0),mod:new V(0)};var Z,Y,K;if(this.negative!==0&&U.negative===0){if(K=this.neg().divmod(U,Q),Q!=="mod")Z=K.div.neg();if(Q!=="div"){if(Y=K.mod.neg(),J&&Y.negative!==0)Y.iadd(U)}return{div:Z,mod:Y}}if(this.negative===0&&U.negative!==0){if(K=this.divmod(U.neg(),Q),Q!=="mod")Z=K.div.neg();return{div:Z,mod:K.mod}}if((this.negative&U.negative)!==0){if(K=this.neg().divmod(U.neg(),Q),Q!=="div"){if(Y=K.mod.neg(),J&&Y.negative!==0)Y.isub(U)}return{div:K.div,mod:Y}}if(U.length>this.length||this.cmp(U)<0)return{div:new V(0),mod:this};if(U.length===1){if(Q==="div")return{div:this.divn(U.words[0]),mod:null};if(Q==="mod")return{div:null,mod:new V(this.modn(U.words[0]))};return{div:this.divn(U.words[0]),mod:new V(this.modn(U.words[0]))}}return this._wordDiv(U,Q)},V.prototype.div=function(U){return this.divmod(U,"div",!1).div},V.prototype.mod=function(U){return this.divmod(U,"mod",!1).mod},V.prototype.umod=function(U){return this.divmod(U,"mod",!0).mod},V.prototype.divRound=function(U){var Q=this.divmod(U);if(Q.mod.isZero())return Q.div;var J=Q.div.negative!==0?Q.mod.isub(U):Q.mod,Z=U.ushrn(1),Y=U.andln(1),K=J.cmp(Z);if(K<0||Y===1&&K===0)return Q.div;return Q.div.negative!==0?Q.div.isubn(1):Q.div.iaddn(1)},V.prototype.modn=function(U){H(U<=67108863);var Q=67108864%U,J=0;for(var Z=this.length-1;Z>=0;Z--)J=(Q*J+(this.words[Z]|0))%U;return J},V.prototype.idivn=function(U){H(U<=67108863);var Q=0;for(var J=this.length-1;J>=0;J--){var Z=(this.words[J]|0)+Q*67108864;this.words[J]=Z/U|0,Q=Z%U}return this.strip()},V.prototype.divn=function(U){return this.clone().idivn(U)},V.prototype.egcd=function(U){H(U.negative===0),H(!U.isZero());var Q=this,J=U.clone();if(Q.negative!==0)Q=Q.umod(U);else Q=Q.clone();var Z=new V(1),Y=new V(0),K=new V(0),W=new V(1),G=0;while(Q.isEven()&&J.isEven())Q.iushrn(1),J.iushrn(1),++G;var X=J.clone(),$=Q.clone();while(!Q.isZero()){for(var M=0,A=1;(Q.words[0]&A)===0&&M<26;++M,A<<=1);if(M>0){Q.iushrn(M);while(M-- >0){if(Z.isOdd()||Y.isOdd())Z.iadd(X),Y.isub($);Z.iushrn(1),Y.iushrn(1)}}for(var j=0,g=1;(J.words[0]&g)===0&&j<26;++j,g<<=1);if(j>0){J.iushrn(j);while(j-- >0){if(K.isOdd()||W.isOdd())K.iadd(X),W.isub($);K.iushrn(1),W.iushrn(1)}}if(Q.cmp(J)>=0)Q.isub(J),Z.isub(K),Y.isub(W);else J.isub(Q),K.isub(Z),W.isub(Y)}return{a:K,b:W,gcd:J.iushln(G)}},V.prototype._invmp=function(U){H(U.negative===0),H(!U.isZero());var Q=this,J=U.clone();if(Q.negative!==0)Q=Q.umod(U);else Q=Q.clone();var Z=new V(1),Y=new V(0),K=J.clone();while(Q.cmpn(1)>0&&J.cmpn(1)>0){for(var W=0,G=1;(Q.words[0]&G)===0&&W<26;++W,G<<=1);if(W>0){Q.iushrn(W);while(W-- >0){if(Z.isOdd())Z.iadd(K);Z.iushrn(1)}}for(var X=0,$=1;(J.words[0]&$)===0&&X<26;++X,$<<=1);if(X>0){J.iushrn(X);while(X-- >0){if(Y.isOdd())Y.iadd(K);Y.iushrn(1)}}if(Q.cmp(J)>=0)Q.isub(J),Z.isub(Y);else J.isub(Q),Y.isub(Z)}var M;if(Q.cmpn(1)===0)M=Z;else M=Y;if(M.cmpn(0)<0)M.iadd(U);return M},V.prototype.gcd=function(U){if(this.isZero())return U.abs();if(U.isZero())return this.abs();var Q=this.clone(),J=U.clone();Q.negative=0,J.negative=0;for(var Z=0;Q.isEven()&&J.isEven();Z++)Q.iushrn(1),J.iushrn(1);do{while(Q.isEven())Q.iushrn(1);while(J.isEven())J.iushrn(1);var Y=Q.cmp(J);if(Y<0){var K=Q;Q=J,J=K}else if(Y===0||J.cmpn(1)===0)break;Q.isub(J)}while(!0);return J.iushln(Z)},V.prototype.invm=function(U){return this.egcd(U).a.umod(U)},V.prototype.isEven=function(){return(this.words[0]&1)===0},V.prototype.isOdd=function(){return(this.words[0]&1)===1},V.prototype.andln=function(U){return this.words[0]&U},V.prototype.bincn=function(U){H(typeof U==="number");var Q=U%26,J=(U-Q)/26,Z=1<<Q;if(this.length<=J)return this._expand(J+1),this.words[J]|=Z,this;var Y=Z;for(var K=J;Y!==0&&K<this.length;K++){var W=this.words[K]|0;W+=Y,Y=W>>>26,W&=67108863,this.words[K]=W}if(Y!==0)this.words[K]=Y,this.length++;return this},V.prototype.isZero=function(){return this.length===1&&this.words[0]===0},V.prototype.cmpn=function(U){var Q=U<0;if(this.negative!==0&&!Q)return-1;if(this.negative===0&&Q)return 1;this.strip();var J;if(this.length>1)J=1;else{if(Q)U=-U;H(U<=67108863,"Number is too big");var Z=this.words[0]|0;J=Z===U?0:Z<U?-1:1}if(this.negative!==0)return-J|0;return J},V.prototype.cmp=function(U){if(this.negative!==0&&U.negative===0)return-1;if(this.negative===0&&U.negative!==0)return 1;var Q=this.ucmp(U);if(this.negative!==0)return-Q|0;return Q},V.prototype.ucmp=function(U){if(this.length>U.length)return 1;if(this.length<U.length)return-1;var Q=0;for(var J=this.length-1;J>=0;J--){var Z=this.words[J]|0,Y=U.words[J]|0;if(Z===Y)continue;if(Z<Y)Q=-1;else if(Z>Y)Q=1;break}return Q},V.prototype.gtn=function(U){return this.cmpn(U)===1},V.prototype.gt=function(U){return this.cmp(U)===1},V.prototype.gten=function(U){return this.cmpn(U)>=0},V.prototype.gte=function(U){return this.cmp(U)>=0},V.prototype.ltn=function(U){return this.cmpn(U)===-1},V.prototype.lt=function(U){return this.cmp(U)===-1},V.prototype.lten=function(U){return this.cmpn(U)<=0},V.prototype.lte=function(U){return this.cmp(U)<=0},V.prototype.eqn=function(U){return this.cmpn(U)===0},V.prototype.eq=function(U){return this.cmp(U)===0},V.red=function(U){return new u(U)},V.prototype.toRed=function(U){return H(!this.red,"Already a number in reduction context"),H(this.negative===0,"red works only with positives"),U.convertTo(this)._forceRed(U)},V.prototype.fromRed=function(){return H(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},V.prototype._forceRed=function(U){return this.red=U,this},V.prototype.forceRed=function(U){return H(!this.red,"Already a number in reduction context"),this._forceRed(U)},V.prototype.redAdd=function(U){return H(this.red,"redAdd works only with red numbers"),this.red.add(this,U)},V.prototype.redIAdd=function(U){return H(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,U)},V.prototype.redSub=function(U){return H(this.red,"redSub works only with red numbers"),this.red.sub(this,U)},V.prototype.redISub=function(U){return H(this.red,"redISub works only with red numbers"),this.red.isub(this,U)},V.prototype.redShl=function(U){return H(this.red,"redShl works only with red numbers"),this.red.shl(this,U)},V.prototype.redMul=function(U){return H(this.red,"redMul works only with red numbers"),this.red._verify2(this,U),this.red.mul(this,U)},V.prototype.redIMul=function(U){return H(this.red,"redMul works only with red numbers"),this.red._verify2(this,U),this.red.imul(this,U)},V.prototype.redSqr=function(){return H(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},V.prototype.redISqr=function(){return H(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},V.prototype.redSqrt=function(){return H(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},V.prototype.redInvm=function(){return H(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},V.prototype.redNeg=function(){return H(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},V.prototype.redPow=function(U){return H(this.red&&!U.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,U)};var w={k256:null,p224:null,p192:null,p25519:null};function y(U,Q){this.name=U,this.p=new V(Q,16),this.n=this.p.bitLength(),this.k=new V(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}y.prototype._tmp=function(){var U=new V(null);return U.words=Array(Math.ceil(this.n/13)),U},y.prototype.ireduce=function(U){var Q=U,J;do this.split(Q,this.tmp),Q=this.imulK(Q),Q=Q.iadd(this.tmp),J=Q.bitLength();while(J>this.n);var Z=J<this.n?-1:Q.ucmp(this.p);if(Z===0)Q.words[0]=0,Q.length=1;else if(Z>0)Q.isub(this.p);else if(Q.strip!==void 0)Q.strip();else Q._strip();return Q},y.prototype.split=function(U,Q){U.iushrn(this.n,0,Q)},y.prototype.imulK=function(U){return U.imul(this.k)};function d(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}E(d,y),d.prototype.split=function(U,Q){var J=4194303,Z=Math.min(U.length,9);for(var Y=0;Y<Z;Y++)Q.words[Y]=U.words[Y];if(Q.length=Z,U.length<=9){U.words[0]=0,U.length=1;return}var K=U.words[9];Q.words[Q.length++]=K&J;for(Y=10;Y<U.length;Y++){var W=U.words[Y]|0;U.words[Y-10]=(W&J)<<4|K>>>22,K=W}if(K>>>=22,U.words[Y-10]=K,K===0&&U.length>10)U.length-=10;else U.length-=9},d.prototype.imulK=function(U){U.words[U.length]=0,U.words[U.length+1]=0,U.length+=2;var Q=0;for(var J=0;J<U.length;J++){var Z=U.words[J]|0;Q+=Z*977,U.words[J]=Q&67108863,Q=Z*64+(Q/67108864|0)}if(U.words[U.length-1]===0){if(U.length--,U.words[U.length-1]===0)U.length--}return U};function J0(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}E(J0,y);function I0(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}E(I0,y);function V0(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}E(V0,y),V0.prototype.imulK=function(U){var Q=0;for(var J=0;J<U.length;J++){var Z=(U.words[J]|0)*19+Q,Y=Z&67108863;Z>>>=26,U.words[J]=Y,Q=Z}if(Q!==0)U.words[U.length++]=Q;return U},V._prime=function(U){if(w[U])return w[U];var Q;if(U==="k256")Q=new d;else if(U==="p224")Q=new J0;else if(U==="p192")Q=new I0;else if(U==="p25519")Q=new V0;else throw Error("Unknown prime "+U);return w[U]=Q,Q};function u(U){if(typeof U==="string"){var Q=V._prime(U);this.m=Q.p,this.prime=Q}else H(U.gtn(1),"modulus must be greater than 1"),this.m=U,this.prime=null}u.prototype._verify1=function(U){H(U.negative===0,"red works only with positives"),H(U.red,"red works only with red numbers")},u.prototype._verify2=function(U,Q){H((U.negative|Q.negative)===0,"red works only with positives"),H(U.red&&U.red===Q.red,"red works only with red numbers")},u.prototype.imod=function(U){if(this.prime)return this.prime.ireduce(U)._forceRed(this);return U.umod(this.m)._forceRed(this)},u.prototype.neg=function(U){if(U.isZero())return U.clone();return this.m.sub(U)._forceRed(this)},u.prototype.add=function(U,Q){this._verify2(U,Q);var J=U.add(Q);if(J.cmp(this.m)>=0)J.isub(this.m);return J._forceRed(this)},u.prototype.iadd=function(U,Q){this._verify2(U,Q);var J=U.iadd(Q);if(J.cmp(this.m)>=0)J.isub(this.m);return J},u.prototype.sub=function(U,Q){this._verify2(U,Q);var J=U.sub(Q);if(J.cmpn(0)<0)J.iadd(this.m);return J._forceRed(this)},u.prototype.isub=function(U,Q){this._verify2(U,Q);var J=U.isub(Q);if(J.cmpn(0)<0)J.iadd(this.m);return J},u.prototype.shl=function(U,Q){return this._verify1(U),this.imod(U.ushln(Q))},u.prototype.imul=function(U,Q){return this._verify2(U,Q),this.imod(U.imul(Q))},u.prototype.mul=function(U,Q){return this._verify2(U,Q),this.imod(U.mul(Q))},u.prototype.isqr=function(U){return this.imul(U,U.clone())},u.prototype.sqr=function(U){return this.mul(U,U)},u.prototype.sqrt=function(U){if(U.isZero())return U.clone();var Q=this.m.andln(3);if(H(Q%2===1),Q===3){var J=this.m.add(new V(1)).iushrn(2);return this.pow(U,J)}var Z=this.m.subn(1),Y=0;while(!Z.isZero()&&Z.andln(1)===0)Y++,Z.iushrn(1);H(!Z.isZero());var K=new V(1).toRed(this),W=K.redNeg(),G=this.m.subn(1).iushrn(1),X=this.m.bitLength();X=new V(2*X*X).toRed(this);while(this.pow(X,G).cmp(W)!==0)X.redIAdd(W);var $=this.pow(X,Z),M=this.pow(U,Z.addn(1).iushrn(1)),A=this.pow(U,Z),j=Y;while(A.cmp(K)!==0){var g=A;for(var p=0;g.cmp(K)!==0;p++)g=g.redSqr();H(p<j);var n=this.pow($,new V(1).iushln(j-p-1));M=M.redMul(n),$=n.redSqr(),A=A.redMul($),j=p}return M},u.prototype.invm=function(U){var Q=U._invmp(this.m);if(Q.negative!==0)return Q.negative=0,this.imod(Q).redNeg();else return this.imod(Q)},u.prototype.pow=function(U,Q){if(Q.isZero())return new V(1).toRed(this);if(Q.cmpn(1)===0)return U.clone();var J=4,Z=Array(1<<J);Z[0]=new V(1).toRed(this),Z[1]=U;for(var Y=2;Y<Z.length;Y++)Z[Y]=this.mul(Z[Y-1],U);var K=Z[0],W=0,G=0,X=Q.bitLength()%26;if(X===0)X=26;for(Y=Q.length-1;Y>=0;Y--){var $=Q.words[Y];for(var M=X-1;M>=0;M--){var A=$>>M&1;if(K!==Z[0])K=this.sqr(K);if(A===0&&W===0){G=0;continue}if(W<<=1,W|=A,G++,G!==J&&(Y!==0||M!==0))continue;K=this.mul(K,Z[W]),G=0,W=0}X=26}return K},u.prototype.convertTo=function(U){var Q=U.umod(this.m);return Q===U?Q.clone():Q},u.prototype.convertFrom=function(U){var Q=U.clone();return Q.red=null,Q},V.mont=function(U){return new X0(U)};function X0(U){if(u.call(this,U),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new V(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)}E(X0,u),X0.prototype.convertTo=function(U){return this.imod(U.ushln(this.shift))},X0.prototype.convertFrom=function(U){var Q=this.imod(U.mul(this.rinv));return Q.red=null,Q},X0.prototype.imul=function(U,Q){if(U.isZero()||Q.isZero())return U.words[0]=0,U.length=1,U;var J=U.imul(Q),Z=J.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Y=J.isub(Z).iushrn(this.shift),K=Y;if(Y.cmp(this.m)>=0)K=Y.isub(this.m);else if(Y.cmpn(0)<0)K=Y.iadd(this.m);return K._forceRed(this)},X0.prototype.mul=function(U,Q){if(U.isZero()||Q.isZero())return new V(0)._forceRed(this);var J=U.mul(Q),Z=J.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Y=J.isub(Z).iushrn(this.shift),K=Y;if(Y.cmp(this.m)>=0)K=Y.isub(this.m);else if(Y.cmpn(0)<0)K=Y.iadd(this.m);return K._forceRed(this)},X0.prototype.invm=function(U){var Q=this.imod(U._invmp(this.m).mul(this.r2));return Q._forceRed(this)}})(typeof O>"u"||O,I)}),cU=G0((I,O)=>{O.exports=F;function F(T,H){if(!T)throw Error(H||"Assertion failed")}F.equal=function(T,H,E){if(T!=H)throw Error(E||"Assertion failed: "+T+" != "+H)}}),PQ=G0((I)=>{var O=I;function F(E,V){if(Array.isArray(E))return E.slice();if(!E)return[];var P=[];if(typeof E!=="string"){for(var q=0;q<E.length;q++)P[q]=E[q]|0;return P}if(V==="hex"){if(E=E.replace(/[^a-z0-9]+/ig,""),E.length%2!==0)E="0"+E;for(var q=0;q<E.length;q+=2)P.push(parseInt(E[q]+E[q+1],16))}else for(var q=0;q<E.length;q++){var L=E.charCodeAt(q),z=L>>8,C=L&255;if(z)P.push(z,C);else P.push(C)}return P}O.toArray=F;function T(E){if(E.length===1)return"0"+E;else return E}O.zero2=T;function H(E){var V="";for(var P=0;P<E.length;P++)V+=T(E[P].toString(16));return V}O.toHex=H,O.encode=function(E,V){if(V==="hex")return H(E);else return E}}),kU=G0((I)=>{var O=I,F=gU(),T=cU(),H=PQ();O.assert=T,O.toArray=H.toArray,O.zero2=H.zero2,O.toHex=H.toHex,O.encode=H.encode;function E(z,C,D){var S=Array(Math.max(z.bitLength(),D)+1),R;for(R=0;R<S.length;R+=1)S[R]=0;var v=1<<C+1,k=z.clone();for(R=0;R<S.length;R++){var B,_=k.andln(v-1);if(k.isOdd()){if(_>(v>>1)-1)B=(v>>1)-_;else B=_;k.isubn(B)}else B=0;S[R]=B,k.iushrn(1)}return S}O.getNAF=E;function V(z,C){var D=[[],[]];z=z.clone(),C=C.clone();var S=0,R=0,v;while(z.cmpn(-S)>0||C.cmpn(-R)>0){var k=z.andln(3)+S&3,B=C.andln(3)+R&3;if(k===3)k=-1;if(B===3)B=-1;var _;if((k&1)===0)_=0;else if(v=z.andln(7)+S&7,(v===3||v===5)&&B===2)_=-k;else _=k;D[0].push(_);var x;if((B&1)===0)x=0;else if(v=C.andln(7)+R&7,(v===3||v===5)&&k===2)x=-B;else x=B;if(D[1].push(x),2*S===_+1)S=1-S;if(2*R===x+1)R=1-R;z.iushrn(1),C.iushrn(1)}return D}O.getJSF=V;function P(z,C,D){var S="_"+C;z.prototype[C]=function(){return this[S]!==void 0?this[S]:this[S]=D.call(this)}}O.cachedProperty=P;function q(z){return typeof z==="string"?O.toArray(z,"hex"):z}O.parseBytes=q;function L(z){return new F(z,"hex","le")}O.intFromLE=L}),kQ=G0((I,O)=>{var F;O.exports=function(E){if(!F)F=new T(null);return F.generate(E)};function T(E){this.rand=E}if(O.exports.Rand=T,T.prototype.generate=function(E){return this._rand(E)},T.prototype._rand=function(E){if(this.rand.getBytes)return this.rand.getBytes(E);var V=new Uint8Array(E);for(var P=0;P<V.length;P++)V[P]=this.rand.getByte();return V},typeof self==="object"){if(self.crypto&&self.crypto.getRandomValues)T.prototype._rand=function(E){var V=new Uint8Array(E);return self.crypto.getRandomValues(V),V};else if(self.msCrypto&&self.msCrypto.getRandomValues)T.prototype._rand=function(E){var V=new Uint8Array(E);return self.msCrypto.getRandomValues(V),V};else if(typeof window==="object")T.prototype._rand=function(){throw Error("Not implemented yet")}}else try{if(H=(qU(),h0(RU)),typeof H.randomBytes!=="function")throw Error("Not supported");T.prototype._rand=function(E){return H.randomBytes(E)}}catch(E){}var H}),PX=G0((I,O)=>{var F=gU(),T=kU(),H=T.getNAF,E=T.getJSF,V=T.assert;function P(L,z){this.type=L,this.p=new F(z.p,16),this.red=z.prime?F.red(z.prime):F.mont(this.p),this.zero=new F(0).toRed(this.red),this.one=new F(1).toRed(this.red),this.two=new F(2).toRed(this.red),this.n=z.n&&new F(z.n,16),this.g=z.g&&this.pointFromJSON(z.g,z.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var C=this.n&&this.p.div(this.n);if(!C||C.cmpn(100)>0)this.redN=null;else this._maxwellTrick=!0,this.redN=this.n.toRed(this.red)}O.exports=P,P.prototype.point=function(){throw Error("Not implemented")},P.prototype.validate=function(){throw Error("Not implemented")},P.prototype._fixedNafMul=function(L,z){V(L.precomputed);var C=L._getDoubles(),D=H(z,1,this._bitLength),S=(1<<C.step+1)-(C.step%2===0?2:1);S/=3;var R=[],v,k;for(v=0;v<D.length;v+=C.step){k=0;for(var B=v+C.step-1;B>=v;B--)k=(k<<1)+D[B];R.push(k)}var _=this.jpoint(null,null,null),x=this.jpoint(null,null,null);for(var w=S;w>0;w--){for(v=0;v<R.length;v++)if(k=R[v],k===w)x=x.mixedAdd(C.points[v]);else if(k===-w)x=x.mixedAdd(C.points[v].neg());_=_.add(x)}return _.toP()},P.prototype._wnafMul=function(L,z){var C=4,D=L._getNAFPoints(C);C=D.wnd;var S=D.points,R=H(z,C,this._bitLength),v=this.jpoint(null,null,null);for(var k=R.length-1;k>=0;k--){for(var B=0;k>=0&&R[k]===0;k--)B++;if(k>=0)B++;if(v=v.dblp(B),k<0)break;var _=R[k];if(V(_!==0),L.type==="affine")if(_>0)v=v.mixedAdd(S[_-1>>1]);else v=v.mixedAdd(S[-_-1>>1].neg());else if(_>0)v=v.add(S[_-1>>1]);else v=v.add(S[-_-1>>1].neg())}return L.type==="affine"?v.toP():v},P.prototype._wnafMulAdd=function(L,z,C,D,S){var R=this._wnafT1,v=this._wnafT2,k=this._wnafT3,B=0,_,x,w;for(_=0;_<D;_++){w=z[_];var y=w._getNAFPoints(L);R[_]=y.wnd,v[_]=y.points}for(_=D-1;_>=1;_-=2){var d=_-1,J0=_;if(R[d]!==1||R[J0]!==1){k[d]=H(C[d],R[d],this._bitLength),k[J0]=H(C[J0],R[J0],this._bitLength),B=Math.max(k[d].length,B),B=Math.max(k[J0].length,B);continue}var I0=[z[d],null,null,z[J0]];if(z[d].y.cmp(z[J0].y)===0)I0[1]=z[d].add(z[J0]),I0[2]=z[d].toJ().mixedAdd(z[J0].neg());else if(z[d].y.cmp(z[J0].y.redNeg())===0)I0[1]=z[d].toJ().mixedAdd(z[J0]),I0[2]=z[d].add(z[J0].neg());else I0[1]=z[d].toJ().mixedAdd(z[J0]),I0[2]=z[d].toJ().mixedAdd(z[J0].neg());var V0=[-3,-1,-5,-7,0,7,5,1,3],u=E(C[d],C[J0]);B=Math.max(u[0].length,B),k[d]=Array(B),k[J0]=Array(B);for(x=0;x<B;x++){var X0=u[0][x]|0,U=u[1][x]|0;k[d][x]=V0[(X0+1)*3+(U+1)],k[J0][x]=0,v[d]=I0}}var Q=this.jpoint(null,null,null),J=this._wnafT4;for(_=B;_>=0;_--){var Z=0;while(_>=0){var Y=!0;for(x=0;x<D;x++)if(J[x]=k[x][_]|0,J[x]!==0)Y=!1;if(!Y)break;Z++,_--}if(_>=0)Z++;if(Q=Q.dblp(Z),_<0)break;for(x=0;x<D;x++){var K=J[x];if(K===0)continue;else if(K>0)w=v[x][K-1>>1];else if(K<0)w=v[x][-K-1>>1].neg();if(w.type==="affine")Q=Q.mixedAdd(w);else Q=Q.add(w)}}for(_=0;_<D;_++)v[_]=null;if(S)return Q;else return Q.toP()};function q(L,z){this.curve=L,this.type=z,this.precomputed=null}P.BasePoint=q,q.prototype.eq=function(){throw Error("Not implemented")},q.prototype.validate=function(){return this.curve.validate(this)},P.prototype.decodePoint=function(L,z){L=T.toArray(L,z);var C=this.p.byteLength();if((L[0]===4||L[0]===6||L[0]===7)&&L.length-1===2*C){if(L[0]===6)V(L[L.length-1]%2===0);else if(L[0]===7)V(L[L.length-1]%2===1);var D=this.point(L.slice(1,1+C),L.slice(1+C,1+2*C));return D}else if((L[0]===2||L[0]===3)&&L.length-1===C)return this.pointFromX(L.slice(1,1+C),L[0]===3);throw Error("Unknown point format")},q.prototype.encodeCompressed=function(L){return this.encode(L,!0)},q.prototype._encode=function(L){var z=this.curve.p.byteLength(),C=this.getX().toArray("be",z);if(L)return[this.getY().isEven()?2:3].concat(C);return[4].concat(C,this.getY().toArray("be",z))},q.prototype.encode=function(L,z){return T.encode(this._encode(z),L)},q.prototype.precompute=function(L){if(this.precomputed)return this;var z={doubles:null,naf:null,beta:null};return z.naf=this._getNAFPoints(8),z.doubles=this._getDoubles(4,L),z.beta=this._getBeta(),this.precomputed=z,this},q.prototype._hasDoubles=function(L){if(!this.precomputed)return!1;var z=this.precomputed.doubles;if(!z)return!1;return z.points.length>=Math.ceil((L.bitLength()+1)/z.step)},q.prototype._getDoubles=function(L,z){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;var C=[this],D=this;for(var S=0;S<z;S+=L){for(var R=0;R<L;R++)D=D.dbl();C.push(D)}return{step:L,points:C}},q.prototype._getNAFPoints=function(L){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;var z=[this],C=(1<<L)-1,D=C===1?null:this.dbl();for(var S=1;S<C;S++)z[S]=z[S-1].add(D);return{wnd:L,points:z}},q.prototype._getBeta=function(){return null},q.prototype.dblp=function(L){var z=this;for(var C=0;C<L;C++)z=z.dbl();return z}}),iJ=G0((I,O)=>{if(typeof Object.create==="function")O.exports=function(F,T){if(T)F.super_=T,F.prototype=Object.create(T.prototype,{constructor:{value:F,enumerable:!1,writable:!0,configurable:!0}})};else O.exports=function(F,T){if(T){F.super_=T;var H=function(){};H.prototype=T.prototype,F.prototype=new H,F.prototype.constructor=F}}}),SU=G0((I,O)=>{try{if(F=(bZ(),h0(uZ)),typeof F.inherits!=="function")throw"";O.exports=F.inherits}catch(T){O.exports=iJ()}var F}),UV=G0((I,O)=>{var F=kU(),T=gU(),H=SU(),E=PX(),V=F.assert;function P(z){E.call(this,"short",z),this.a=new T(z.a,16).toRed(this.red),this.b=new T(z.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(z),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}H(P,E),O.exports=P,P.prototype._getEndomorphism=function(z){if(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)return;var C,D;if(z.beta)C=new T(z.beta,16).toRed(this.red);else{var S=this._getEndoRoots(this.p);C=S[0].cmp(S[1])<0?S[0]:S[1],C=C.toRed(this.red)}if(z.lambda)D=new T(z.lambda,16);else{var R=this._getEndoRoots(this.n);if(this.g.mul(R[0]).x.cmp(this.g.x.redMul(C))===0)D=R[0];else D=R[1],V(this.g.mul(D).x.cmp(this.g.x.redMul(C))===0)}var v;if(z.basis)v=z.basis.map(function(k){return{a:new T(k.a,16),b:new T(k.b,16)}});else v=this._getEndoBasis(D);return{beta:C,lambda:D,basis:v}},P.prototype._getEndoRoots=function(z){var C=z===this.p?this.red:T.mont(z),D=new T(2).toRed(C).redInvm(),S=D.redNeg(),R=new T(3).toRed(C).redNeg().redSqrt().redMul(D),v=S.redAdd(R).fromRed(),k=S.redSub(R).fromRed();return[v,k]},P.prototype._getEndoBasis=function(z){var C=this.n.ushrn(Math.floor(this.n.bitLength()/2)),D=z,S=this.n.clone(),R=new T(1),v=new T(0),k=new T(0),B=new T(1),_,x,w,y,d,J0,I0,V0=0,u,X0;while(D.cmpn(0)!==0){var U=S.div(D);u=S.sub(U.mul(D)),X0=k.sub(U.mul(R));var Q=B.sub(U.mul(v));if(!w&&u.cmp(C)<0)_=I0.neg(),x=R,w=u.neg(),y=X0;else if(w&&++V0===2)break;I0=u,S=D,D=u,k=R,R=X0,B=v,v=Q}d=u.neg(),J0=X0;var J=w.sqr().add(y.sqr()),Z=d.sqr().add(J0.sqr());if(Z.cmp(J)>=0)d=_,J0=x;if(w.negative)w=w.neg(),y=y.neg();if(d.negative)d=d.neg(),J0=J0.neg();return[{a:w,b:y},{a:d,b:J0}]},P.prototype._endoSplit=function(z){var C=this.endo.basis,D=C[0],S=C[1],R=S.b.mul(z).divRound(this.n),v=D.b.neg().mul(z).divRound(this.n),k=R.mul(D.a),B=v.mul(S.a),_=R.mul(D.b),x=v.mul(S.b),w=z.sub(k).sub(B),y=_.add(x).neg();return{k1:w,k2:y}},P.prototype.pointFromX=function(z,C){if(z=new T(z,16),!z.red)z=z.toRed(this.red);var D=z.redSqr().redMul(z).redIAdd(z.redMul(this.a)).redIAdd(this.b),S=D.redSqrt();if(S.redSqr().redSub(D).cmp(this.zero)!==0)throw Error("invalid point");var R=S.fromRed().isOdd();if(C&&!R||!C&&R)S=S.redNeg();return this.point(z,S)},P.prototype.validate=function(z){if(z.inf)return!0;var{x:C,y:D}=z,S=this.a.redMul(C),R=C.redSqr().redMul(C).redIAdd(S).redIAdd(this.b);return D.redSqr().redISub(R).cmpn(0)===0},P.prototype._endoWnafMulAdd=function(z,C,D){var S=this._endoWnafT1,R=this._endoWnafT2;for(var v=0;v<z.length;v++){var k=this._endoSplit(C[v]),B=z[v],_=B._getBeta();if(k.k1.negative)k.k1.ineg(),B=B.neg(!0);if(k.k2.negative)k.k2.ineg(),_=_.neg(!0);S[v*2]=B,S[v*2+1]=_,R[v*2]=k.k1,R[v*2+1]=k.k2}var x=this._wnafMulAdd(1,S,R,v*2,D);for(var w=0;w<v*2;w++)S[w]=null,R[w]=null;return x};function q(z,C,D,S){if(E.BasePoint.call(this,z,"affine"),C===null&&D===null)this.x=null,this.y=null,this.inf=!0;else{if(this.x=new T(C,16),this.y=new T(D,16),S)this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red);if(!this.x.red)this.x=this.x.toRed(this.curve.red);if(!this.y.red)this.y=this.y.toRed(this.curve.red);this.inf=!1}}H(q,E.BasePoint),P.prototype.point=function(z,C,D){return new q(this,z,C,D)},P.prototype.pointFromJSON=function(z,C){return q.fromJSON(this,z,C)},q.prototype._getBeta=function(){if(!this.curve.endo)return;var z=this.precomputed;if(z&&z.beta)return z.beta;var C=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(z){var D=this.curve,S=function(R){return D.point(R.x.redMul(D.endo.beta),R.y)};z.beta=C,C.precomputed={beta:null,naf:z.naf&&{wnd:z.naf.wnd,points:z.naf.points.map(S)},doubles:z.doubles&&{step:z.doubles.step,points:z.doubles.points.map(S)}}}return C},q.prototype.toJSON=function(){if(!this.precomputed)return[this.x,this.y];return[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)}}]},q.fromJSON=function(z,C,D){if(typeof C==="string")C=JSON.parse(C);var S=z.point(C[0],C[1],D);if(!C[2])return S;function R(k){return z.point(k[0],k[1],D)}var v=C[2];return S.precomputed={beta:null,doubles:v.doubles&&{step:v.doubles.step,points:[S].concat(v.doubles.points.map(R))},naf:v.naf&&{wnd:v.naf.wnd,points:[S].concat(v.naf.points.map(R))}},S},q.prototype.inspect=function(){if(this.isInfinity())return"<EC Point Infinity>";return"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},q.prototype.isInfinity=function(){return this.inf},q.prototype.add=function(z){if(this.inf)return z;if(z.inf)return this;if(this.eq(z))return this.dbl();if(this.neg().eq(z))return this.curve.point(null,null);if(this.x.cmp(z.x)===0)return this.curve.point(null,null);var C=this.y.redSub(z.y);if(C.cmpn(0)!==0)C=C.redMul(this.x.redSub(z.x).redInvm());var D=C.redSqr().redISub(this.x).redISub(z.x),S=C.redMul(this.x.redSub(D)).redISub(this.y);return this.curve.point(D,S)},q.prototype.dbl=function(){if(this.inf)return this;var z=this.y.redAdd(this.y);if(z.cmpn(0)===0)return this.curve.point(null,null);var C=this.curve.a,D=this.x.redSqr(),S=z.redInvm(),R=D.redAdd(D).redIAdd(D).redIAdd(C).redMul(S),v=R.redSqr().redISub(this.x.redAdd(this.x)),k=R.redMul(this.x.redSub(v)).redISub(this.y);return this.curve.point(v,k)},q.prototype.getX=function(){return this.x.fromRed()},q.prototype.getY=function(){return this.y.fromRed()},q.prototype.mul=function(z){if(z=new T(z,16),this.isInfinity())return this;else if(this._hasDoubles(z))return this.curve._fixedNafMul(this,z);else if(this.curve.endo)return this.curve._endoWnafMulAdd([this],[z]);else return this.curve._wnafMul(this,z)},q.prototype.mulAdd=function(z,C,D){var S=[this,C],R=[z,D];if(this.curve.endo)return this.curve._endoWnafMulAdd(S,R);else return this.curve._wnafMulAdd(1,S,R,2)},q.prototype.jmulAdd=function(z,C,D){var S=[this,C],R=[z,D];if(this.curve.endo)return this.curve._endoWnafMulAdd(S,R,!0);else return this.curve._wnafMulAdd(1,S,R,2,!0)},q.prototype.eq=function(z){return this===z||this.inf===z.inf&&(this.inf||this.x.cmp(z.x)===0&&this.y.cmp(z.y)===0)},q.prototype.neg=function(z){if(this.inf)return this;var C=this.curve.point(this.x,this.y.redNeg());if(z&&this.precomputed){var D=this.precomputed,S=function(R){return R.neg()};C.precomputed={naf:D.naf&&{wnd:D.naf.wnd,points:D.naf.points.map(S)},doubles:D.doubles&&{step:D.doubles.step,points:D.doubles.points.map(S)}}}return C},q.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var z=this.curve.jpoint(this.x,this.y,this.curve.one);return z};function L(z,C,D,S){if(E.BasePoint.call(this,z,"jacobian"),C===null&&D===null&&S===null)this.x=this.curve.one,this.y=this.curve.one,this.z=new T(0);else this.x=new T(C,16),this.y=new T(D,16),this.z=new T(S,16);if(!this.x.red)this.x=this.x.toRed(this.curve.red);if(!this.y.red)this.y=this.y.toRed(this.curve.red);if(!this.z.red)this.z=this.z.toRed(this.curve.red);this.zOne=this.z===this.curve.one}H(L,E.BasePoint),P.prototype.jpoint=function(z,C,D){return new L(this,z,C,D)},L.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var z=this.z.redInvm(),C=z.redSqr(),D=this.x.redMul(C),S=this.y.redMul(C).redMul(z);return this.curve.point(D,S)},L.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},L.prototype.add=function(z){if(this.isInfinity())return z;if(z.isInfinity())return this;var C=z.z.redSqr(),D=this.z.redSqr(),S=this.x.redMul(C),R=z.x.redMul(D),v=this.y.redMul(C.redMul(z.z)),k=z.y.redMul(D.redMul(this.z)),B=S.redSub(R),_=v.redSub(k);if(B.cmpn(0)===0)if(_.cmpn(0)!==0)return this.curve.jpoint(null,null,null);else return this.dbl();var x=B.redSqr(),w=x.redMul(B),y=S.redMul(x),d=_.redSqr().redIAdd(w).redISub(y).redISub(y),J0=_.redMul(y.redISub(d)).redISub(v.redMul(w)),I0=this.z.redMul(z.z).redMul(B);return this.curve.jpoint(d,J0,I0)},L.prototype.mixedAdd=function(z){if(this.isInfinity())return z.toJ();if(z.isInfinity())return this;var C=this.z.redSqr(),D=this.x,S=z.x.redMul(C),R=this.y,v=z.y.redMul(C).redMul(this.z),k=D.redSub(S),B=R.redSub(v);if(k.cmpn(0)===0)if(B.cmpn(0)!==0)return this.curve.jpoint(null,null,null);else return this.dbl();var _=k.redSqr(),x=_.redMul(k),w=D.redMul(_),y=B.redSqr().redIAdd(x).redISub(w).redISub(w),d=B.redMul(w.redISub(y)).redISub(R.redMul(x)),J0=this.z.redMul(k);return this.curve.jpoint(y,d,J0)},L.prototype.dblp=function(z){if(z===0)return this;if(this.isInfinity())return this;if(!z)return this.dbl();var C;if(this.curve.zeroA||this.curve.threeA){var D=this;for(C=0;C<z;C++)D=D.dbl();return D}var S=this.curve.a,R=this.curve.tinv,v=this.x,k=this.y,B=this.z,_=B.redSqr().redSqr(),x=k.redAdd(k);for(C=0;C<z;C++){var w=v.redSqr(),y=x.redSqr(),d=y.redSqr(),J0=w.redAdd(w).redIAdd(w).redIAdd(S.redMul(_)),I0=v.redMul(y),V0=J0.redSqr().redISub(I0.redAdd(I0)),u=I0.redISub(V0),X0=J0.redMul(u);X0=X0.redIAdd(X0).redISub(d);var U=x.redMul(B);if(C+1<z)_=_.redMul(d);v=V0,B=U,x=X0}return this.curve.jpoint(v,x.redMul(R),B)},L.prototype.dbl=function(){if(this.isInfinity())return this;if(this.curve.zeroA)return this._zeroDbl();else if(this.curve.threeA)return this._threeDbl();else return this._dbl()},L.prototype._zeroDbl=function(){var z,C,D;if(this.zOne){var S=this.x.redSqr(),R=this.y.redSqr(),v=R.redSqr(),k=this.x.redAdd(R).redSqr().redISub(S).redISub(v);k=k.redIAdd(k);var B=S.redAdd(S).redIAdd(S),_=B.redSqr().redISub(k).redISub(k),x=v.redIAdd(v);x=x.redIAdd(x),x=x.redIAdd(x),z=_,C=B.redMul(k.redISub(_)).redISub(x),D=this.y.redAdd(this.y)}else{var w=this.x.redSqr(),y=this.y.redSqr(),d=y.redSqr(),J0=this.x.redAdd(y).redSqr().redISub(w).redISub(d);J0=J0.redIAdd(J0);var I0=w.redAdd(w).redIAdd(w),V0=I0.redSqr(),u=d.redIAdd(d);u=u.redIAdd(u),u=u.redIAdd(u),z=V0.redISub(J0).redISub(J0),C=I0.redMul(J0.redISub(z)).redISub(u),D=this.y.redMul(this.z),D=D.redIAdd(D)}return this.curve.jpoint(z,C,D)},L.prototype._threeDbl=function(){var z,C,D;if(this.zOne){var S=this.x.redSqr(),R=this.y.redSqr(),v=R.redSqr(),k=this.x.redAdd(R).redSqr().redISub(S).redISub(v);k=k.redIAdd(k);var B=S.redAdd(S).redIAdd(S).redIAdd(this.curve.a),_=B.redSqr().redISub(k).redISub(k);z=_;var x=v.redIAdd(v);x=x.redIAdd(x),x=x.redIAdd(x),C=B.redMul(k.redISub(_)).redISub(x),D=this.y.redAdd(this.y)}else{var w=this.z.redSqr(),y=this.y.redSqr(),d=this.x.redMul(y),J0=this.x.redSub(w).redMul(this.x.redAdd(w));J0=J0.redAdd(J0).redIAdd(J0);var I0=d.redIAdd(d);I0=I0.redIAdd(I0);var V0=I0.redAdd(I0);z=J0.redSqr().redISub(V0),D=this.y.redAdd(this.z).redSqr().redISub(y).redISub(w);var u=y.redSqr();u=u.redIAdd(u),u=u.redIAdd(u),u=u.redIAdd(u),C=J0.redMul(I0.redISub(z)).redISub(u)}return this.curve.jpoint(z,C,D)},L.prototype._dbl=function(){var z=this.curve.a,C=this.x,D=this.y,S=this.z,R=S.redSqr().redSqr(),v=C.redSqr(),k=D.redSqr(),B=v.redAdd(v).redIAdd(v).redIAdd(z.redMul(R)),_=C.redAdd(C);_=_.redIAdd(_);var x=_.redMul(k),w=B.redSqr().redISub(x.redAdd(x)),y=x.redISub(w),d=k.redSqr();d=d.redIAdd(d),d=d.redIAdd(d),d=d.redIAdd(d);var J0=B.redMul(y).redISub(d),I0=D.redAdd(D).redMul(S);return this.curve.jpoint(w,J0,I0)},L.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var z=this.x.redSqr(),C=this.y.redSqr(),D=this.z.redSqr(),S=C.redSqr(),R=z.redAdd(z).redIAdd(z),v=R.redSqr(),k=this.x.redAdd(C).redSqr().redISub(z).redISub(S);k=k.redIAdd(k),k=k.redAdd(k).redIAdd(k),k=k.redISub(v);var B=k.redSqr(),_=S.redIAdd(S);_=_.redIAdd(_),_=_.redIAdd(_),_=_.redIAdd(_);var x=R.redIAdd(k).redSqr().redISub(v).redISub(B).redISub(_),w=C.redMul(x);w=w.redIAdd(w),w=w.redIAdd(w);var y=this.x.redMul(B).redISub(w);y=y.redIAdd(y),y=y.redIAdd(y);var d=this.y.redMul(x.redMul(_.redISub(x)).redISub(k.redMul(B)));d=d.redIAdd(d),d=d.redIAdd(d),d=d.redIAdd(d);var J0=this.z.redAdd(k).redSqr().redISub(D).redISub(B);return this.curve.jpoint(y,d,J0)},L.prototype.mul=function(z,C){return z=new T(z,C),this.curve._wnafMul(this,z)},L.prototype.eq=function(z){if(z.type==="affine")return this.eq(z.toJ());if(this===z)return!0;var C=this.z.redSqr(),D=z.z.redSqr();if(this.x.redMul(D).redISub(z.x.redMul(C)).cmpn(0)!==0)return!1;var S=C.redMul(this.z),R=D.redMul(z.z);return this.y.redMul(R).redISub(z.y.redMul(S)).cmpn(0)===0},L.prototype.eqXToP=function(z){var C=this.z.redSqr(),D=z.toRed(this.curve.red).redMul(C);if(this.x.cmp(D)===0)return!0;var S=z.clone(),R=this.curve.redN.redMul(C);for(;;){if(S.iadd(this.curve.n),S.cmp(this.curve.p)>=0)return!1;if(D.redIAdd(R),this.x.cmp(D)===0)return!0}},L.prototype.inspect=function(){if(this.isInfinity())return"<EC JPoint Infinity>";return"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},L.prototype.isInfinity=function(){return this.z.cmpn(0)===0}}),XV=G0((I,O)=>{var F=gU(),T=SU(),H=PX(),E=kU();function V(q){H.call(this,"mont",q),this.a=new F(q.a,16).toRed(this.red),this.b=new F(q.b,16).toRed(this.red),this.i4=new F(4).toRed(this.red).redInvm(),this.two=new F(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}T(V,H),O.exports=V,V.prototype.validate=function(q){var L=q.normalize().x,z=L.redSqr(),C=z.redMul(L).redAdd(z.redMul(this.a)).redAdd(L),D=C.redSqrt();return D.redSqr().cmp(C)===0};function P(q,L,z){if(H.BasePoint.call(this,q,"projective"),L===null&&z===null)this.x=this.curve.one,this.z=this.curve.zero;else{if(this.x=new F(L,16),this.z=new F(z,16),!this.x.red)this.x=this.x.toRed(this.curve.red);if(!this.z.red)this.z=this.z.toRed(this.curve.red)}}T(P,H.BasePoint),V.prototype.decodePoint=function(q,L){return this.point(E.toArray(q,L),1)},V.prototype.point=function(q,L){return new P(this,q,L)},V.prototype.pointFromJSON=function(q){return P.fromJSON(this,q)},P.prototype.precompute=function(){},P.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},P.fromJSON=function(q,L){return new P(q,L[0],L[1]||q.one)},P.prototype.inspect=function(){if(this.isInfinity())return"<EC Point Infinity>";return"<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 q=this.x.redAdd(this.z),L=q.redSqr(),z=this.x.redSub(this.z),C=z.redSqr(),D=L.redSub(C),S=L.redMul(C),R=D.redMul(C.redAdd(this.curve.a24.redMul(D)));return this.curve.point(S,R)},P.prototype.add=function(){throw Error("Not supported on Montgomery curve")},P.prototype.diffAdd=function(q,L){var z=this.x.redAdd(this.z),C=this.x.redSub(this.z),D=q.x.redAdd(q.z),S=q.x.redSub(q.z),R=S.redMul(z),v=D.redMul(C),k=L.z.redMul(R.redAdd(v).redSqr()),B=L.x.redMul(R.redISub(v).redSqr());return this.curve.point(k,B)},P.prototype.mul=function(q){var L=q.clone(),z=this,C=this.curve.point(null,null),D=this;for(var S=[];L.cmpn(0)!==0;L.iushrn(1))S.push(L.andln(1));for(var R=S.length-1;R>=0;R--)if(S[R]===0)z=z.diffAdd(C,D),C=C.dbl();else C=z.diffAdd(C,D),z=z.dbl();return C},P.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},P.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},P.prototype.eq=function(q){return this.getX().cmp(q.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()}}),ZV=G0((I,O)=>{var F=kU(),T=gU(),H=SU(),E=PX(),V=F.assert;function P(L){this.twisted=(L.a|0)!==1,this.mOneA=this.twisted&&(L.a|0)===-1,this.extended=this.mOneA,E.call(this,"edwards",L),this.a=new T(L.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new T(L.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new T(L.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),V(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(L.c|0)===1}H(P,E),O.exports=P,P.prototype._mulA=function(L){if(this.mOneA)return L.redNeg();else return this.a.redMul(L)},P.prototype._mulC=function(L){if(this.oneC)return L;else return this.c.redMul(L)},P.prototype.jpoint=function(L,z,C,D){return this.point(L,z,C,D)},P.prototype.pointFromX=function(L,z){if(L=new T(L,16),!L.red)L=L.toRed(this.red);var C=L.redSqr(),D=this.c2.redSub(this.a.redMul(C)),S=this.one.redSub(this.c2.redMul(this.d).redMul(C)),R=D.redMul(S.redInvm()),v=R.redSqrt();if(v.redSqr().redSub(R).cmp(this.zero)!==0)throw Error("invalid point");var k=v.fromRed().isOdd();if(z&&!k||!z&&k)v=v.redNeg();return this.point(L,v)},P.prototype.pointFromY=function(L,z){if(L=new T(L,16),!L.red)L=L.toRed(this.red);var C=L.redSqr(),D=C.redSub(this.c2),S=C.redMul(this.d).redMul(this.c2).redSub(this.a),R=D.redMul(S.redInvm());if(R.cmp(this.zero)===0)if(z)throw Error("invalid point");else return this.point(this.zero,L);var v=R.redSqrt();if(v.redSqr().redSub(R).cmp(this.zero)!==0)throw Error("invalid point");if(v.fromRed().isOdd()!==z)v=v.redNeg();return this.point(v,L)},P.prototype.validate=function(L){if(L.isInfinity())return!0;L.normalize();var z=L.x.redSqr(),C=L.y.redSqr(),D=z.redMul(this.a).redAdd(C),S=this.c2.redMul(this.one.redAdd(this.d.redMul(z).redMul(C)));return D.cmp(S)===0};function q(L,z,C,D,S){if(E.BasePoint.call(this,L,"projective"),z===null&&C===null&&D===null)this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0;else{if(this.x=new T(z,16),this.y=new T(C,16),this.z=D?new T(D,16):this.curve.one,this.t=S&&new T(S,16),!this.x.red)this.x=this.x.toRed(this.curve.red);if(!this.y.red)this.y=this.y.toRed(this.curve.red);if(!this.z.red)this.z=this.z.toRed(this.curve.red);if(this.t&&!this.t.red)this.t=this.t.toRed(this.curve.red);if(this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t){if(this.t=this.x.redMul(this.y),!this.zOne)this.t=this.t.redMul(this.z.redInvm())}}}H(q,E.BasePoint),P.prototype.pointFromJSON=function(L){return q.fromJSON(this,L)},P.prototype.point=function(L,z,C,D){return new q(this,L,z,C,D)},q.fromJSON=function(L,z){return new q(L,z[0],z[1],z[2])},q.prototype.inspect=function(){if(this.isInfinity())return"<EC Point Infinity>";return"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},q.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},q.prototype._extDbl=function(){var L=this.x.redSqr(),z=this.y.redSqr(),C=this.z.redSqr();C=C.redIAdd(C);var D=this.curve._mulA(L),S=this.x.redAdd(this.y).redSqr().redISub(L).redISub(z),R=D.redAdd(z),v=R.redSub(C),k=D.redSub(z),B=S.redMul(v),_=R.redMul(k),x=S.redMul(k),w=v.redMul(R);return this.curve.point(B,_,w,x)},q.prototype._projDbl=function(){var L=this.x.redAdd(this.y).redSqr(),z=this.x.redSqr(),C=this.y.redSqr(),D,S,R,v,k,B;if(this.curve.twisted){v=this.curve._mulA(z);var _=v.redAdd(C);if(this.zOne)D=L.redSub(z).redSub(C).redMul(_.redSub(this.curve.two)),S=_.redMul(v.redSub(C)),R=_.redSqr().redSub(_).redSub(_);else k=this.z.redSqr(),B=_.redSub(k).redISub(k),D=L.redSub(z).redISub(C).redMul(B),S=_.redMul(v.redSub(C)),R=_.redMul(B)}else v=z.redAdd(C),k=this.curve._mulC(this.z).redSqr(),B=v.redSub(k).redSub(k),D=this.curve._mulC(L.redISub(v)).redMul(B),S=this.curve._mulC(v).redMul(z.redISub(C)),R=v.redMul(B);return this.curve.point(D,S,R)},q.prototype.dbl=function(){if(this.isInfinity())return this;if(this.curve.extended)return this._extDbl();else return this._projDbl()},q.prototype._extAdd=function(L){var z=this.y.redSub(this.x).redMul(L.y.redSub(L.x)),C=this.y.redAdd(this.x).redMul(L.y.redAdd(L.x)),D=this.t.redMul(this.curve.dd).redMul(L.t),S=this.z.redMul(L.z.redAdd(L.z)),R=C.redSub(z),v=S.redSub(D),k=S.redAdd(D),B=C.redAdd(z),_=R.redMul(v),x=k.redMul(B),w=R.redMul(B),y=v.redMul(k);return this.curve.point(_,x,y,w)},q.prototype._projAdd=function(L){var z=this.z.redMul(L.z),C=z.redSqr(),D=this.x.redMul(L.x),S=this.y.redMul(L.y),R=this.curve.d.redMul(D).redMul(S),v=C.redSub(R),k=C.redAdd(R),B=this.x.redAdd(this.y).redMul(L.x.redAdd(L.y)).redISub(D).redISub(S),_=z.redMul(v).redMul(B),x,w;if(this.curve.twisted)x=z.redMul(k).redMul(S.redSub(this.curve._mulA(D))),w=v.redMul(k);else x=z.redMul(k).redMul(S.redSub(D)),w=this.curve._mulC(v).redMul(k);return this.curve.point(_,x,w)},q.prototype.add=function(L){if(this.isInfinity())return L;if(L.isInfinity())return this;if(this.curve.extended)return this._extAdd(L);else return this._projAdd(L)},q.prototype.mul=function(L){if(this._hasDoubles(L))return this.curve._fixedNafMul(this,L);else return this.curve._wnafMul(this,L)},q.prototype.mulAdd=function(L,z,C){return this.curve._wnafMulAdd(1,[this,z],[L,C],2,!1)},q.prototype.jmulAdd=function(L,z,C){return this.curve._wnafMulAdd(1,[this,z],[L,C],2,!0)},q.prototype.normalize=function(){if(this.zOne)return this;var L=this.z.redInvm();if(this.x=this.x.redMul(L),this.y=this.y.redMul(L),this.t)this.t=this.t.redMul(L);return this.z=this.curve.one,this.zOne=!0,this},q.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},q.prototype.getX=function(){return this.normalize(),this.x.fromRed()},q.prototype.getY=function(){return this.normalize(),this.y.fromRed()},q.prototype.eq=function(L){return this===L||this.getX().cmp(L.getX())===0&&this.getY().cmp(L.getY())===0},q.prototype.eqXToP=function(L){var z=L.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(z)===0)return!0;var C=L.clone(),D=this.curve.redN.redMul(this.z);for(;;){if(C.iadd(this.curve.n),C.cmp(this.curve.p)>=0)return!1;if(z.redIAdd(D),this.x.cmp(z)===0)return!0}},q.prototype.toP=q.prototype.normalize,q.prototype.mixedAdd=q.prototype.add}),jQ=G0((I)=>{var O=I;O.base=PX(),O.short=UV(),O.mont=XV(),O.edwards=ZV()}),_U=G0((I)=>{var O=cU(),F=SU();I.inherits=F;function T(Q,J){if((Q.charCodeAt(J)&64512)!==55296)return!1;if(J<0||J+1>=Q.length)return!1;return(Q.charCodeAt(J+1)&64512)===56320}function H(Q,J){if(Array.isArray(Q))return Q.slice();if(!Q)return[];var Z=[];if(typeof Q==="string"){if(!J){var Y=0;for(var K=0;K<Q.length;K++){var W=Q.charCodeAt(K);if(W<128)Z[Y++]=W;else if(W<2048)Z[Y++]=W>>6|192,Z[Y++]=W&63|128;else if(T(Q,K))W=65536+((W&1023)<<10)+(Q.charCodeAt(++K)&1023),Z[Y++]=W>>18|240,Z[Y++]=W>>12&63|128,Z[Y++]=W>>6&63|128,Z[Y++]=W&63|128;else Z[Y++]=W>>12|224,Z[Y++]=W>>6&63|128,Z[Y++]=W&63|128}}else if(J==="hex"){if(Q=Q.replace(/[^a-z0-9]+/ig,""),Q.length%2!==0)Q="0"+Q;for(K=0;K<Q.length;K+=2)Z.push(parseInt(Q[K]+Q[K+1],16))}}else for(K=0;K<Q.length;K++)Z[K]=Q[K]|0;return Z}I.toArray=H;function E(Q){var J="";for(var Z=0;Z<Q.length;Z++)J+=q(Q[Z].toString(16));return J}I.toHex=E;function V(Q){var J=Q>>>24|Q>>>8&65280|Q<<8&16711680|(Q&255)<<24;return J>>>0}I.htonl=V;function P(Q,J){var Z="";for(var Y=0;Y<Q.length;Y++){var K=Q[Y];if(J==="little")K=V(K);Z+=L(K.toString(16))}return Z}I.toHex32=P;function q(Q){if(Q.length===1)return"0"+Q;else return Q}I.zero2=q;function L(Q){if(Q.length===7)return"0"+Q;else if(Q.length===6)return"00"+Q;else if(Q.length===5)return"000"+Q;else if(Q.length===4)return"0000"+Q;else if(Q.length===3)return"00000"+Q;else if(Q.length===2)return"000000"+Q;else if(Q.length===1)return"0000000"+Q;else return Q}I.zero8=L;function z(Q,J,Z,Y){var K=Z-J;O(K%4===0);var W=Array(K/4);for(var G=0,X=J;G<W.length;G++,X+=4){var $;if(Y==="big")$=Q[X]<<24|Q[X+1]<<16|Q[X+2]<<8|Q[X+3];else $=Q[X+3]<<24|Q[X+2]<<16|Q[X+1]<<8|Q[X];W[G]=$>>>0}return W}I.join32=z;function C(Q,J){var Z=Array(Q.length*4);for(var Y=0,K=0;Y<Q.length;Y++,K+=4){var W=Q[Y];if(J==="big")Z[K]=W>>>24,Z[K+1]=W>>>16&255,Z[K+2]=W>>>8&255,Z[K+3]=W&255;else Z[K+3]=W>>>24,Z[K+2]=W>>>16&255,Z[K+1]=W>>>8&255,Z[K]=W&255}return Z}I.split32=C;function D(Q,J){return Q>>>J|Q<<32-J}I.rotr32=D;function S(Q,J){return Q<<J|Q>>>32-J}I.rotl32=S;function R(Q,J){return Q+J>>>0}I.sum32=R;function v(Q,J,Z){return Q+J+Z>>>0}I.sum32_3=v;function k(Q,J,Z,Y){return Q+J+Z+Y>>>0}I.sum32_4=k;function B(Q,J,Z,Y,K){return Q+J+Z+Y+K>>>0}I.sum32_5=B;function _(Q,J,Z,Y){var K=Q[J],W=Q[J+1],G=Y+W>>>0,X=(G<Y?1:0)+Z+K;Q[J]=X>>>0,Q[J+1]=G}I.sum64=_;function x(Q,J,Z,Y){var K=J+Y>>>0,W=(K<J?1:0)+Q+Z;return W>>>0}I.sum64_hi=x;function w(Q,J,Z,Y){var K=J+Y;return K>>>0}I.sum64_lo=w;function y(Q,J,Z,Y,K,W,G,X){var $=0,M=J;M=M+Y>>>0,$+=M<J?1:0,M=M+W>>>0,$+=M<W?1:0,M=M+X>>>0,$+=M<X?1:0;var A=Q+Z+K+G+$;return A>>>0}I.sum64_4_hi=y;function d(Q,J,Z,Y,K,W,G,X){var $=J+Y+W+X;return $>>>0}I.sum64_4_lo=d;function J0(Q,J,Z,Y,K,W,G,X,$,M){var A=0,j=J;j=j+Y>>>0,A+=j<J?1:0,j=j+W>>>0,A+=j<W?1:0,j=j+X>>>0,A+=j<X?1:0,j=j+M>>>0,A+=j<M?1:0;var g=Q+Z+K+G+$+A;return g>>>0}I.sum64_5_hi=J0;function I0(Q,J,Z,Y,K,W,G,X,$,M){var A=J+Y+W+X+M;return A>>>0}I.sum64_5_lo=I0;function V0(Q,J,Z){var Y=J<<32-Z|Q>>>Z;return Y>>>0}I.rotr64_hi=V0;function u(Q,J,Z){var Y=Q<<32-Z|J>>>Z;return Y>>>0}I.rotr64_lo=u;function X0(Q,J,Z){return Q>>>Z}I.shr64_hi=X0;function U(Q,J,Z){var Y=Q<<32-Z|J>>>Z;return Y>>>0}I.shr64_lo=U}),GX=G0((I)=>{var O=_U(),F=cU();function T(){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}I.BlockHash=T,T.prototype.update=function(H,E){if(H=O.toArray(H,E),!this.pending)this.pending=H;else this.pending=this.pending.concat(H);if(this.pendingTotal+=H.length,this.pending.length>=this._delta8){H=this.pending;var V=H.length%this._delta8;if(this.pending=H.slice(H.length-V,H.length),this.pending.length===0)this.pending=null;H=O.join32(H,0,H.length-V,this.endian);for(var P=0;P<H.length;P+=this._delta32)this._update(H,P,P+this._delta32)}return this},T.prototype.digest=function(H){return this.update(this._pad()),F(this.pending===null),this._digest(H)},T.prototype._pad=function(){var H=this.pendingTotal,E=this._delta8,V=E-(H+this.padLength)%E,P=Array(V+this.padLength);P[0]=128;for(var q=1;q<V;q++)P[q]=0;if(H<<=3,this.endian==="big"){for(var L=8;L<this.padLength;L++)P[q++]=0;P[q++]=0,P[q++]=0,P[q++]=0,P[q++]=0,P[q++]=H>>>24&255,P[q++]=H>>>16&255,P[q++]=H>>>8&255,P[q++]=H&255}else{P[q++]=H&255,P[q++]=H>>>8&255,P[q++]=H>>>16&255,P[q++]=H>>>24&255,P[q++]=0,P[q++]=0,P[q++]=0,P[q++]=0;for(L=8;L<this.padLength;L++)P[q++]=0}return P}}),vQ=G0((I)=>{var O=_U(),F=O.rotr32;function T(C,D,S,R){if(C===0)return H(D,S,R);if(C===1||C===3)return V(D,S,R);if(C===2)return E(D,S,R)}I.ft_1=T;function H(C,D,S){return C&D^~C&S}I.ch32=H;function E(C,D,S){return C&D^C&S^D&S}I.maj32=E;function V(C,D,S){return C^D^S}I.p32=V;function P(C){return F(C,2)^F(C,13)^F(C,22)}I.s0_256=P;function q(C){return F(C,6)^F(C,11)^F(C,25)}I.s1_256=q;function L(C){return F(C,7)^F(C,18)^C>>>3}I.g0_256=L;function z(C){return F(C,17)^F(C,19)^C>>>10}I.g1_256=z}),QV=G0((I,O)=>{var F=_U(),T=GX(),H=vQ(),E=F.rotl32,V=F.sum32,P=F.sum32_5,q=H.ft_1,L=T.BlockHash,z=[1518500249,1859775393,2400959708,3395469782];function C(){if(!(this instanceof C))return new C;L.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=Array(80)}F.inherits(C,L),O.exports=C,C.blockSize=512,C.outSize=160,C.hmacStrength=80,C.padLength=64,C.prototype._update=function(D,S){var R=this.W;for(var v=0;v<16;v++)R[v]=D[S+v];for(;v<R.length;v++)R[v]=E(R[v-3]^R[v-8]^R[v-14]^R[v-16],1);var k=this.h[0],B=this.h[1],_=this.h[2],x=this.h[3],w=this.h[4];for(v=0;v<R.length;v++){var y=~~(v/20),d=P(E(k,5),q(y,B,_,x),w,R[v],z[y]);w=x,x=_,_=E(B,30),B=k,k=d}this.h[0]=V(this.h[0],k),this.h[1]=V(this.h[1],B),this.h[2]=V(this.h[2],_),this.h[3]=V(this.h[3],x),this.h[4]=V(this.h[4],w)},C.prototype._digest=function(D){if(D==="hex")return F.toHex32(this.h,"big");else return F.split32(this.h,"big")}}),_Q=G0((I,O)=>{var F=_U(),T=GX(),H=vQ(),E=cU(),V=F.sum32,P=F.sum32_4,q=F.sum32_5,L=H.ch32,z=H.maj32,C=H.s0_256,D=H.s1_256,S=H.g0_256,R=H.g1_256,v=T.BlockHash,k=[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 B(){if(!(this instanceof B))return new B;v.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=k,this.W=Array(64)}F.inherits(B,v),O.exports=B,B.blockSize=512,B.outSize=256,B.hmacStrength=192,B.padLength=64,B.prototype._update=function(_,x){var w=this.W;for(var y=0;y<16;y++)w[y]=_[x+y];for(;y<w.length;y++)w[y]=P(R(w[y-2]),w[y-7],S(w[y-15]),w[y-16]);var d=this.h[0],J0=this.h[1],I0=this.h[2],V0=this.h[3],u=this.h[4],X0=this.h[5],U=this.h[6],Q=this.h[7];E(this.k.length===w.length);for(y=0;y<w.length;y++){var J=q(Q,D(u),L(u,X0,U),this.k[y],w[y]),Z=V(C(d),z(d,J0,I0));Q=U,U=X0,X0=u,u=V(V0,J),V0=I0,I0=J0,J0=d,d=V(J,Z)}this.h[0]=V(this.h[0],d),this.h[1]=V(this.h[1],J0),this.h[2]=V(this.h[2],I0),this.h[3]=V(this.h[3],V0),this.h[4]=V(this.h[4],u),this.h[5]=V(this.h[5],X0),this.h[6]=V(this.h[6],U),this.h[7]=V(this.h[7],Q)},B.prototype._digest=function(_){if(_==="hex")return F.toHex32(this.h,"big");else return F.split32(this.h,"big")}}),YV=G0((I,O)=>{var F=_U(),T=_Q();function H(){if(!(this instanceof H))return new H;T.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}F.inherits(H,T),O.exports=H,H.blockSize=512,H.outSize=224,H.hmacStrength=192,H.padLength=64,H.prototype._digest=function(E){if(E==="hex")return F.toHex32(this.h.slice(0,7),"big");else return F.split32(this.h.slice(0,7),"big")}}),BQ=G0((I,O)=>{var F=_U(),T=GX(),H=cU(),E=F.rotr64_hi,V=F.rotr64_lo,P=F.shr64_hi,q=F.shr64_lo,L=F.sum64,z=F.sum64_hi,C=F.sum64_lo,D=F.sum64_4_hi,S=F.sum64_4_lo,R=F.sum64_5_hi,v=F.sum64_5_lo,k=T.BlockHash,B=[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 _(){if(!(this instanceof _))return new _;k.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=B,this.W=Array(160)}F.inherits(_,k),O.exports=_,_.blockSize=1024,_.outSize=512,_.hmacStrength=192,_.padLength=128,_.prototype._prepareBlock=function(Z,Y){var K=this.W;for(var W=0;W<32;W++)K[W]=Z[Y+W];for(;W<K.length;W+=2){var G=Q(K[W-4],K[W-3]),X=J(K[W-4],K[W-3]),$=K[W-14],M=K[W-13],A=X0(K[W-30],K[W-29]),j=U(K[W-30],K[W-29]),g=K[W-32],p=K[W-31];K[W]=D(G,X,$,M,A,j,g,p),K[W+1]=S(G,X,$,M,A,j,g,p)}},_.prototype._update=function(Z,Y){this._prepareBlock(Z,Y);var K=this.W,W=this.h[0],G=this.h[1],X=this.h[2],$=this.h[3],M=this.h[4],A=this.h[5],j=this.h[6],g=this.h[7],p=this.h[8],n=this.h[9],K0=this.h[10],r=this.h[11],l=this.h[12],Q0=this.h[13],m=this.h[14],i=this.h[15];H(this.k.length===K.length);for(var g0=0;g0<K.length;g0+=2){var f=m,h=i,Y0=V0(p,n),t=u(p,n),e=x(p,n,K0,r,l,Q0),L0=w(p,n,K0,r,l,Q0),c=this.k[g0],o=this.k[g0+1],N0=K[g0],s=K[g0+1],Z0=R(f,h,Y0,t,e,L0,c,o,N0,s),y0=v(f,h,Y0,t,e,L0,c,o,N0,s);f=J0(W,G),h=I0(W,G),Y0=y(W,G,X,$,M,A),t=d(W,G,X,$,M,A);var F0=z(f,h,Y0,t),H0=C(f,h,Y0,t);m=l,i=Q0,l=K0,Q0=r,K0=p,r=n,p=z(j,g,Z0,y0),n=C(g,g,Z0,y0),j=M,g=A,M=X,A=$,X=W,$=G,W=z(Z0,y0,F0,H0),G=C(Z0,y0,F0,H0)}L(this.h,0,W,G),L(this.h,2,X,$),L(this.h,4,M,A),L(this.h,6,j,g),L(this.h,8,p,n),L(this.h,10,K0,r),L(this.h,12,l,Q0),L(this.h,14,m,i)},_.prototype._digest=function(Z){if(Z==="hex")return F.toHex32(this.h,"big");else return F.split32(this.h,"big")};function x(Z,Y,K,W,G){var X=Z&K^~Z&G;if(X<0)X+=4294967296;return X}function w(Z,Y,K,W,G,X){var $=Y&W^~Y&X;if($<0)$+=4294967296;return $}function y(Z,Y,K,W,G){var X=Z&K^Z&G^K&G;if(X<0)X+=4294967296;return X}function d(Z,Y,K,W,G,X){var $=Y&W^Y&X^W&X;if($<0)$+=4294967296;return $}function J0(Z,Y){var K=E(Z,Y,28),W=E(Y,Z,2),G=E(Y,Z,7),X=K^W^G;if(X<0)X+=4294967296;return X}function I0(Z,Y){var K=V(Z,Y,28),W=V(Y,Z,2),G=V(Y,Z,7),X=K^W^G;if(X<0)X+=4294967296;return X}function V0(Z,Y){var K=E(Z,Y,14),W=E(Z,Y,18),G=E(Y,Z,9),X=K^W^G;if(X<0)X+=4294967296;return X}function u(Z,Y){var K=V(Z,Y,14),W=V(Z,Y,18),G=V(Y,Z,9),X=K^W^G;if(X<0)X+=4294967296;return X}function X0(Z,Y){var K=E(Z,Y,1),W=E(Z,Y,8),G=P(Z,Y,7),X=K^W^G;if(X<0)X+=4294967296;return X}function U(Z,Y){var K=V(Z,Y,1),W=V(Z,Y,8),G=q(Z,Y,7),X=K^W^G;if(X<0)X+=4294967296;return X}function Q(Z,Y){var K=E(Z,Y,19),W=E(Y,Z,29),G=P(Z,Y,6),X=K^W^G;if(X<0)X+=4294967296;return X}function J(Z,Y){var K=V(Z,Y,19),W=V(Y,Z,29),G=q(Z,Y,6),X=K^W^G;if(X<0)X+=4294967296;return X}}),JV=G0((I,O)=>{var F=_U(),T=BQ();function H(){if(!(this instanceof H))return new H;T.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}F.inherits(H,T),O.exports=H,H.blockSize=1024,H.outSize=384,H.hmacStrength=192,H.padLength=128,H.prototype._digest=function(E){if(E==="hex")return F.toHex32(this.h.slice(0,12),"big");else return F.split32(this.h.slice(0,12),"big")}}),VV=G0((I)=>{I.sha1=QV(),I.sha224=YV(),I.sha256=_Q(),I.sha384=JV(),I.sha512=BQ()}),GV=G0((I)=>{var O=_U(),F=GX(),T=O.rotl32,H=O.sum32,E=O.sum32_3,V=O.sum32_4,P=F.BlockHash;function q(){if(!(this instanceof q))return new q;P.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}O.inherits(q,P),I.ripemd160=q,q.blockSize=512,q.outSize=160,q.hmacStrength=192,q.padLength=64,q.prototype._update=function(k,B){var _=this.h[0],x=this.h[1],w=this.h[2],y=this.h[3],d=this.h[4],J0=_,I0=x,V0=w,u=y,X0=d;for(var U=0;U<80;U++){var Q=H(T(V(_,L(U,x,w,y),k[D[U]+B],z(U)),R[U]),d);_=d,d=y,y=T(w,10),w=x,x=Q,Q=H(T(V(J0,L(79-U,I0,V0,u),k[S[U]+B],C(U)),v[U]),X0),J0=X0,X0=u,u=T(V0,10),V0=I0,I0=Q}Q=E(this.h[1],w,u),this.h[1]=E(this.h[2],y,X0),this.h[2]=E(this.h[3],d,J0),this.h[3]=E(this.h[4],_,I0),this.h[4]=E(this.h[0],x,V0),this.h[0]=Q},q.prototype._digest=function(k){if(k==="hex")return O.toHex32(this.h,"little");else return O.split32(this.h,"little")};function L(k,B,_,x){if(k<=15)return B^_^x;else if(k<=31)return B&_|~B&x;else if(k<=47)return(B|~_)^x;else if(k<=63)return B&x|_&~x;else return B^(_|~x)}function z(k){if(k<=15)return 0;else if(k<=31)return 1518500249;else if(k<=47)return 1859775393;else if(k<=63)return 2400959708;else return 2840853838}function C(k){if(k<=15)return 1352829926;else if(k<=31)return 1548603684;else if(k<=47)return 1836072691;else if(k<=63)return 2053994217;else return 0}var D=[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],S=[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],R=[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],v=[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]}),IV=G0((I,O)=>{var F=_U(),T=cU();function H(E,V,P){if(!(this instanceof H))return new H(E,V,P);this.Hash=E,this.blockSize=E.blockSize/8,this.outSize=E.outSize/8,this.inner=null,this.outer=null,this._init(F.toArray(V,P))}O.exports=H,H.prototype._init=function(E){if(E.length>this.blockSize)E=new this.Hash().update(E).digest();T(E.length<=this.blockSize);for(var V=E.length;V<this.blockSize;V++)E.push(0);for(V=0;V<E.length;V++)E[V]^=54;this.inner=new this.Hash().update(E);for(V=0;V<E.length;V++)E[V]^=106;this.outer=new this.Hash().update(E)},H.prototype.update=function(E,V){return this.inner.update(E,V),this},H.prototype.digest=function(E){return this.outer.update(this.inner.digest()),this.outer.digest(E)}}),IZ=G0((I)=>{var O=I;O.utils=_U(),O.common=GX(),O.sha=VV(),O.ripemd=GV(),O.hmac=IV(),O.sha1=O.sha.sha1,O.sha256=O.sha.sha256,O.sha224=O.sha.sha224,O.sha384=O.sha.sha384,O.sha512=O.sha.sha512,O.ripemd160=O.ripemd.ripemd160}),$V=G0((I,O)=>{O.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"]]}}}),$Z=G0((I)=>{var O=I,F=IZ(),T=jQ(),H=kU(),E=H.assert;function V(L){if(L.type==="short")this.curve=new T.short(L);else if(L.type==="edwards")this.curve=new T.edwards(L);else this.curve=new T.mont(L);this.g=this.curve.g,this.n=this.curve.n,this.hash=L.hash,E(this.g.validate(),"Invalid curve"),E(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}O.PresetCurve=V;function P(L,z){Object.defineProperty(O,L,{configurable:!0,enumerable:!0,get:function(){var C=new V(z);return Object.defineProperty(O,L,{configurable:!0,enumerable:!0,value:C}),C}})}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:F.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:F.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:F.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:F.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:F.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:F.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:F.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var q;try{q=$V()}catch(L){q=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:F.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",q]})}),KV=G0((I,O)=>{var F=IZ(),T=PQ(),H=cU();function E(V){if(!(this instanceof E))return new E(V);this.hash=V.hash,this.predResist=!!V.predResist,this.outLen=this.hash.outSize,this.minEntropy=V.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var P=T.toArray(V.entropy,V.entropyEnc||"hex"),q=T.toArray(V.nonce,V.nonceEnc||"hex"),L=T.toArray(V.pers,V.persEnc||"hex");H(P.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(P,q,L)}O.exports=E,E.prototype._init=function(V,P,q){var L=V.concat(P).concat(q);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var z=0;z<this.V.length;z++)this.K[z]=0,this.V[z]=1;this._update(L),this._reseed=1,this.reseedInterval=281474976710656},E.prototype._hmac=function(){return new F.hmac(this.hash,this.K)},E.prototype._update=function(V){var P=this._hmac().update(this.V).update([0]);if(V)P=P.update(V);if(this.K=P.digest(),this.V=this._hmac().update(this.V).digest(),!V)return;this.K=this._hmac().update(this.V).update([1]).update(V).digest(),this.V=this._hmac().update(this.V).digest()},E.prototype.reseed=function(V,P,q,L){if(typeof P!=="string")L=q,q=P,P=null;V=T.toArray(V,P),q=T.toArray(q,L),H(V.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(V.concat(q||[])),this._reseed=1},E.prototype.generate=function(V,P,q,L){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");if(typeof P!=="string")L=q,q=P,P=null;if(q)q=T.toArray(q,L||"hex"),this._update(q);var z=[];while(z.length<V)this.V=this._hmac().update(this.V).digest(),z=z.concat(this.V);var C=z.slice(0,V);return this._update(q),this._reseed++,T.encode(C,P)}}),OV=G0((I,O)=>{var F=gU(),T=kU(),H=T.assert;function E(V,P){if(this.ec=V,this.priv=null,this.pub=null,P.priv)this._importPrivate(P.priv,P.privEnc);if(P.pub)this._importPublic(P.pub,P.pubEnc)}O.exports=E,E.fromPublic=function(V,P,q){if(P instanceof E)return P;return new E(V,{pub:P,pubEnc:q})},E.fromPrivate=function(V,P,q){if(P instanceof E)return P;return new E(V,{priv:P,privEnc:q})},E.prototype.validate=function(){var V=this.getPublic();if(V.isInfinity())return{result:!1,reason:"Invalid public key"};if(!V.validate())return{result:!1,reason:"Public key is not a point"};if(!V.mul(this.ec.curve.n).isInfinity())return{result:!1,reason:"Public key * N != O"};return{result:!0,reason:null}},E.prototype.getPublic=function(V,P){if(typeof V==="string")P=V,V=null;if(!this.pub)this.pub=this.ec.g.mul(this.priv);if(!P)return this.pub;return this.pub.encode(P,V)},E.prototype.getPrivate=function(V){if(V==="hex")return this.priv.toString(16,2);else return this.priv},E.prototype._importPrivate=function(V,P){this.priv=new F(V,P||16),this.priv=this.priv.umod(this.ec.curve.n)},E.prototype._importPublic=function(V,P){if(V.x||V.y){if(this.ec.curve.type==="mont")H(V.x,"Need x coordinate");else if(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")H(V.x&&V.y,"Need both x and y coordinate");this.pub=this.ec.curve.point(V.x,V.y);return}this.pub=this.ec.curve.decodePoint(V,P)},E.prototype.derive=function(V){if(!V.validate())H(V.validate(),"public point not validated");return V.mul(this.priv).getX()},E.prototype.sign=function(V,P,q){return this.ec.sign(V,this,P,q)},E.prototype.verify=function(V,P,q){return this.ec.verify(V,P,this,void 0,q)},E.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}}),WV=G0((I,O)=>{var F=gU(),T=kU(),H=T.assert;function E(z,C){if(z instanceof E)return z;if(this._importDER(z,C))return;if(H(z.r&&z.s,"Signature without r or s"),this.r=new F(z.r,16),this.s=new F(z.s,16),z.recoveryParam===void 0)this.recoveryParam=null;else this.recoveryParam=z.recoveryParam}O.exports=E;function V(){this.place=0}function P(z,C){var D=z[C.place++];if(!(D&128))return D;var S=D&15;if(S===0||S>4)return!1;if(z[C.place]===0)return!1;var R=0;for(var v=0,k=C.place;v<S;v++,k++)R<<=8,R|=z[k],R>>>=0;if(R<=127)return!1;return C.place=k,R}function q(z){var C=0,D=z.length-1;while(!z[C]&&!(z[C+1]&128)&&C<D)C++;if(C===0)return z;return z.slice(C)}E.prototype._importDER=function(z,C){z=T.toArray(z,C);var D=new V;if(z[D.place++]!==48)return!1;var S=P(z,D);if(S===!1)return!1;if(S+D.place!==z.length)return!1;if(z[D.place++]!==2)return!1;var R=P(z,D);if(R===!1)return!1;if((z[D.place]&128)!==0)return!1;var v=z.slice(D.place,R+D.place);if(D.place+=R,z[D.place++]!==2)return!1;var k=P(z,D);if(k===!1)return!1;if(z.length!==k+D.place)return!1;if((z[D.place]&128)!==0)return!1;var B=z.slice(D.place,k+D.place);if(v[0]===0)if(v[1]&128)v=v.slice(1);else return!1;if(B[0]===0)if(B[1]&128)B=B.slice(1);else return!1;return this.r=new F(v),this.s=new F(B),this.recoveryParam=null,!0};function L(z,C){if(C<128){z.push(C);return}var D=1+(Math.log(C)/Math.LN2>>>3);z.push(D|128);while(--D)z.push(C>>>(D<<3)&255);z.push(C)}E.prototype.toDER=function(z){var C=this.r.toArray(),D=this.s.toArray();if(C[0]&128)C=[0].concat(C);if(D[0]&128)D=[0].concat(D);C=q(C),D=q(D);while(!D[0]&&!(D[1]&128))D=D.slice(1);var S=[2];L(S,C.length),S=S.concat(C),S.push(2),L(S,D.length);var R=S.concat(D),v=[48];return L(v,R.length),v=v.concat(R),T.encode(v,z)}}),FV=G0((I,O)=>{var F=gU(),T=KV(),H=kU(),E=$Z(),V=kQ(),P=H.assert,q=OV(),L=WV();function z(C){if(!(this instanceof z))return new z(C);if(typeof C==="string")P(Object.prototype.hasOwnProperty.call(E,C),"Unknown curve "+C),C=E[C];if(C instanceof E.PresetCurve)C={curve:C};this.curve=C.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=C.curve.g,this.g.precompute(C.curve.n.bitLength()+1),this.hash=C.hash||C.curve.hash}O.exports=z,z.prototype.keyPair=function(C){return new q(this,C)},z.prototype.keyFromPrivate=function(C,D){return q.fromPrivate(this,C,D)},z.prototype.keyFromPublic=function(C,D){return q.fromPublic(this,C,D)},z.prototype.genKeyPair=function(C){if(!C)C={};var D=new T({hash:this.hash,pers:C.pers,persEnc:C.persEnc||"utf8",entropy:C.entropy||V(this.hash.hmacStrength),entropyEnc:C.entropy&&C.entropyEnc||"utf8",nonce:this.n.toArray()}),S=this.n.byteLength(),R=this.n.sub(new F(2));for(;;){var v=new F(D.generate(S));if(v.cmp(R)>0)continue;return v.iaddn(1),this.keyFromPrivate(v)}},z.prototype._truncateToN=function(C,D,S){var R;if(F.isBN(C)||typeof C==="number")C=new F(C,16),R=C.byteLength();else if(typeof C==="object")R=C.length,C=new F(C,16);else{var v=C.toString();R=v.length+1>>>1,C=new F(v,16)}if(typeof S!=="number")S=R*8;var k=S-this.n.bitLength();if(k>0)C=C.ushrn(k);if(!D&&C.cmp(this.n)>=0)return C.sub(this.n);else return C},z.prototype.sign=function(C,D,S,R){if(typeof S==="object")R=S,S=null;if(!R)R={};if(typeof C!=="string"&&typeof C!=="number"&&!F.isBN(C)){P(typeof C==="object"&&C&&typeof C.length==="number","Expected message to be an array-like, a hex string, or a BN instance"),P(C.length>>>0===C.length);for(var v=0;v<C.length;v++)P((C[v]&255)===C[v])}D=this.keyFromPrivate(D,S),C=this._truncateToN(C,!1,R.msgBitLength),P(!C.isNeg(),"Can not sign a negative message");var k=this.n.byteLength(),B=D.getPrivate().toArray("be",k),_=C.toArray("be",k);P(new F(_).eq(C),"Can not sign message");var x=new T({hash:this.hash,entropy:B,nonce:_,pers:R.pers,persEnc:R.persEnc||"utf8"}),w=this.n.sub(new F(1));for(var y=0;;y++){var d=R.k?R.k(y):new F(x.generate(this.n.byteLength()));if(d=this._truncateToN(d,!0),d.cmpn(1)<=0||d.cmp(w)>=0)continue;var J0=this.g.mul(d);if(J0.isInfinity())continue;var I0=J0.getX(),V0=I0.umod(this.n);if(V0.cmpn(0)===0)continue;var u=d.invm(this.n).mul(V0.mul(D.getPrivate()).iadd(C));if(u=u.umod(this.n),u.cmpn(0)===0)continue;var X0=(J0.getY().isOdd()?1:0)|(I0.cmp(V0)!==0?2:0);if(R.canonical&&u.cmp(this.nh)>0)u=this.n.sub(u),X0^=1;return new L({r:V0,s:u,recoveryParam:X0})}},z.prototype.verify=function(C,D,S,R,v){if(!v)v={};C=this._truncateToN(C,!1,v.msgBitLength),S=this.keyFromPublic(S,R),D=new L(D,"hex");var{r:k,s:B}=D;if(k.cmpn(1)<0||k.cmp(this.n)>=0)return!1;if(B.cmpn(1)<0||B.cmp(this.n)>=0)return!1;var _=B.invm(this.n),x=_.mul(C).umod(this.n),w=_.mul(k).umod(this.n),y;if(!this.curve._maxwellTrick){if(y=this.g.mulAdd(x,S.getPublic(),w),y.isInfinity())return!1;return y.getX().umod(this.n).cmp(k)===0}if(y=this.g.jmulAdd(x,S.getPublic(),w),y.isInfinity())return!1;return y.eqXToP(k)},z.prototype.recoverPubKey=function(C,D,S,R){P((3&S)===S,"The recovery param is more than two bits"),D=new L(D,R);var v=this.n,k=new F(C),B=D.r,_=D.s,x=S&1,w=S>>1;if(B.cmp(this.curve.p.umod(this.curve.n))>=0&&w)throw Error("Unable to find sencond key candinate");if(w)B=this.curve.pointFromX(B.add(this.curve.n),x);else B=this.curve.pointFromX(B,x);var y=D.r.invm(v),d=v.sub(k).mul(y).umod(v),J0=_.mul(y).umod(v);return this.g.mulAdd(d,B,J0)},z.prototype.getKeyRecoveryParam=function(C,D,S,R){if(D=new L(D,R),D.recoveryParam!==null)return D.recoveryParam;for(var v=0;v<4;v++){var k;try{k=this.recoverPubKey(C,D,v)}catch(B){continue}if(k.eq(S))return v}throw Error("Unable to find valid recovery factor")}}),HV=G0((I,O)=>{var F=kU(),T=F.assert,H=F.parseBytes,E=F.cachedProperty;function V(P,q){if(this.eddsa=P,this._secret=H(q.secret),P.isPoint(q.pub))this._pub=q.pub;else this._pubBytes=H(q.pub)}V.fromPublic=function(P,q){if(q instanceof V)return q;return new V(P,{pub:q})},V.fromSecret=function(P,q){if(q instanceof V)return q;return new V(P,{secret:q})},V.prototype.secret=function(){return this._secret},E(V,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),E(V,"pub",function(){if(this._pubBytes)return this.eddsa.decodePoint(this._pubBytes);return this.eddsa.g.mul(this.priv())}),E(V,"privBytes",function(){var P=this.eddsa,q=this.hash(),L=P.encodingLength-1,z=q.slice(0,P.encodingLength);return z[0]&=248,z[L]&=127,z[L]|=64,z}),E(V,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),E(V,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),E(V,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),V.prototype.sign=function(P){return T(this._secret,"KeyPair can only verify"),this.eddsa.sign(P,this)},V.prototype.verify=function(P,q){return this.eddsa.verify(P,q,this)},V.prototype.getSecret=function(P){return T(this._secret,"KeyPair is public only"),F.encode(this.secret(),P)},V.prototype.getPublic=function(P){return F.encode(this.pubBytes(),P)},O.exports=V}),CV=G0((I,O)=>{var F=gU(),T=kU(),H=T.assert,E=T.cachedProperty,V=T.parseBytes;function P(q,L){if(this.eddsa=q,typeof L!=="object")L=V(L);if(Array.isArray(L))H(L.length===q.encodingLength*2,"Signature has invalid size"),L={R:L.slice(0,q.encodingLength),S:L.slice(q.encodingLength)};if(H(L.R&&L.S,"Signature without R or S"),q.isPoint(L.R))this._R=L.R;if(L.S instanceof F)this._S=L.S;this._Rencoded=Array.isArray(L.R)?L.R:L.Rencoded,this._Sencoded=Array.isArray(L.S)?L.S:L.Sencoded}E(P,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),E(P,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),E(P,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),E(P,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),P.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},P.prototype.toHex=function(){return T.encode(this.toBytes(),"hex").toUpperCase()},O.exports=P}),AV=G0((I,O)=>{var F=IZ(),T=$Z(),H=kU(),E=H.assert,V=H.parseBytes,P=HV(),q=CV();function L(z){if(E(z==="ed25519","only tested with ed25519 so far"),!(this instanceof L))return new L(z);z=T[z].curve,this.curve=z,this.g=z.g,this.g.precompute(z.n.bitLength()+1),this.pointClass=z.point().constructor,this.encodingLength=Math.ceil(z.n.bitLength()/8),this.hash=F.sha512}O.exports=L,L.prototype.sign=function(z,C){z=V(z);var D=this.keyFromSecret(C),S=this.hashInt(D.messagePrefix(),z),R=this.g.mul(S),v=this.encodePoint(R),k=this.hashInt(v,D.pubBytes(),z).mul(D.priv()),B=S.add(k).umod(this.curve.n);return this.makeSignature({R,S:B,Rencoded:v})},L.prototype.verify=function(z,C,D){if(z=V(z),C=this.makeSignature(C),C.S().gte(C.eddsa.curve.n)||C.S().isNeg())return!1;var S=this.keyFromPublic(D),R=this.hashInt(C.Rencoded(),S.pubBytes(),z),v=this.g.mul(C.S()),k=C.R().add(S.pub().mul(R));return k.eq(v)},L.prototype.hashInt=function(){var z=this.hash();for(var C=0;C<arguments.length;C++)z.update(arguments[C]);return H.intFromLE(z.digest()).umod(this.curve.n)},L.prototype.keyFromPublic=function(z){return P.fromPublic(this,z)},L.prototype.keyFromSecret=function(z){return P.fromSecret(this,z)},L.prototype.makeSignature=function(z){if(z instanceof q)return z;return new q(this,z)},L.prototype.encodePoint=function(z){var C=z.getY().toArray("le",this.encodingLength);return C[this.encodingLength-1]|=z.getX().isOdd()?128:0,C},L.prototype.decodePoint=function(z){z=H.parseBytes(z);var C=z.length-1,D=z.slice(0,C).concat(z[C]&-129),S=(z[C]&128)!==0,R=H.intFromLE(D);return this.curve.pointFromY(R,S)},L.prototype.encodeInt=function(z){return z.toArray("le",this.encodingLength)},L.prototype.decodeInt=function(z){return H.intFromLE(z)},L.prototype.isPoint=function(z){return z instanceof this.pointClass}}),TV=G0((I)=>{var O=I;O.version=eJ().version,O.utils=kU(),O.rand=kQ(),O.curve=jQ(),O.curves=$Z(),O.ec=FV(),O.eddsa=AV()}),DV=G0((I,O)=>{(function(F,T){function H(U,Q){if(!U)throw Error(Q||"Assertion failed")}function E(U,Q){U.super_=Q;var J=function(){};J.prototype=Q.prototype,U.prototype=new J,U.prototype.constructor=U}function V(U,Q,J){if(V.isBN(U))return U;if(this.negative=0,this.words=null,this.length=0,this.red=null,U!==null){if(Q==="le"||Q==="be")J=Q,Q=10;this._init(U||0,Q||10,J||"be")}}if(typeof F==="object")F.exports=V;else T.BN=V;V.BN=V,V.wordSize=26;var P;try{if(typeof window<"u"&&typeof window.Buffer<"u")P=window.Buffer;else P=(HU(),h0(FU)).Buffer}catch(U){}V.isBN=function(U){if(U instanceof V)return!0;return U!==null&&typeof U==="object"&&U.constructor.wordSize===V.wordSize&&Array.isArray(U.words)},V.max=function(U,Q){if(U.cmp(Q)>0)return U;return Q},V.min=function(U,Q){if(U.cmp(Q)<0)return U;return Q},V.prototype._init=function(U,Q,J){if(typeof U==="number")return this._initNumber(U,Q,J);if(typeof U==="object")return this._initArray(U,Q,J);if(Q==="hex")Q=16;H(Q===(Q|0)&&Q>=2&&Q<=36),U=U.toString().replace(/\s+/g,"");var Z=0;if(U[0]==="-")Z++,this.negative=1;if(Z<U.length){if(Q===16)this._parseHex(U,Z,J);else if(this._parseBase(U,Q,Z),J==="le")this._initArray(this.toArray(),Q,J)}},V.prototype._initNumber=function(U,Q,J){if(U<0)this.negative=1,U=-U;if(U<67108864)this.words=[U&67108863],this.length=1;else if(U<4503599627370496)this.words=[U&67108863,U/67108864&67108863],this.length=2;else H(U<9007199254740992),this.words=[U&67108863,U/67108864&67108863,1],this.length=3;if(J!=="le")return;this._initArray(this.toArray(),Q,J)},V.prototype._initArray=function(U,Q,J){if(H(typeof U.length==="number"),U.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(U.length/3),this.words=Array(this.length);for(var Z=0;Z<this.length;Z++)this.words[Z]=0;var Y,K,W=0;if(J==="be"){for(Z=U.length-1,Y=0;Z>=0;Z-=3)if(K=U[Z]|U[Z-1]<<8|U[Z-2]<<16,this.words[Y]|=K<<W&67108863,this.words[Y+1]=K>>>26-W&67108863,W+=24,W>=26)W-=26,Y++}else if(J==="le"){for(Z=0,Y=0;Z<U.length;Z+=3)if(K=U[Z]|U[Z+1]<<8|U[Z+2]<<16,this.words[Y]|=K<<W&67108863,this.words[Y+1]=K>>>26-W&67108863,W+=24,W>=26)W-=26,Y++}return this.strip()};function q(U,Q){var J=U.charCodeAt(Q);if(J>=65&&J<=70)return J-55;else if(J>=97&&J<=102)return J-87;else return J-48&15}function L(U,Q,J){var Z=q(U,J);if(J-1>=Q)Z|=q(U,J-1)<<4;return Z}V.prototype._parseHex=function(U,Q,J){this.length=Math.ceil((U.length-Q)/6),this.words=Array(this.length);for(var Z=0;Z<this.length;Z++)this.words[Z]=0;var Y=0,K=0,W;if(J==="be")for(Z=U.length-1;Z>=Q;Z-=2)if(W=L(U,Q,Z)<<Y,this.words[K]|=W&67108863,Y>=18)Y-=18,K+=1,this.words[K]|=W>>>26;else Y+=8;else{var G=U.length-Q;for(Z=G%2===0?Q+1:Q;Z<U.length;Z+=2)if(W=L(U,Q,Z)<<Y,this.words[K]|=W&67108863,Y>=18)Y-=18,K+=1,this.words[K]|=W>>>26;else Y+=8}this.strip()};function z(U,Q,J,Z){var Y=0,K=Math.min(U.length,J);for(var W=Q;W<K;W++){var G=U.charCodeAt(W)-48;if(Y*=Z,G>=49)Y+=G-49+10;else if(G>=17)Y+=G-17+10;else Y+=G}return Y}V.prototype._parseBase=function(U,Q,J){this.words=[0],this.length=1;for(var Z=0,Y=1;Y<=67108863;Y*=Q)Z++;Z--,Y=Y/Q|0;var K=U.length-J,W=K%Z,G=Math.min(K,K-W)+J,X=0;for(var $=J;$<G;$+=Z)if(X=z(U,$,$+Z,Q),this.imuln(Y),this.words[0]+X<67108864)this.words[0]+=X;else this._iaddn(X);if(W!==0){var M=1;X=z(U,$,U.length,Q);for($=0;$<W;$++)M*=Q;if(this.imuln(M),this.words[0]+X<67108864)this.words[0]+=X;else this._iaddn(X)}this.strip()},V.prototype.copy=function(U){U.words=Array(this.length);for(var Q=0;Q<this.length;Q++)U.words[Q]=this.words[Q];U.length=this.length,U.negative=this.negative,U.red=this.red},V.prototype.clone=function(){var U=new V(null);return this.copy(U),U},V.prototype._expand=function(U){while(this.length<U)this.words[this.length++]=0;return this},V.prototype.strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},V.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},V.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var C=["","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"],D=[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],S=[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];if(V.prototype.toString=function(U,Q){U=U||10,Q=Q|0||1;var J;if(U===16||U==="hex"){J="";var Z=0,Y=0;for(var K=0;K<this.length;K++){var W=this.words[K],G=((W<<Z|Y)&16777215).toString(16);if(Y=W>>>24-Z&16777215,Z+=2,Z>=26)Z-=26,K--;if(Y!==0||K!==this.length-1)J=C[6-G.length]+G+J;else J=G+J}if(Y!==0)J=Y.toString(16)+J;while(J.length%Q!==0)J="0"+J;if(this.negative!==0)J="-"+J;return J}if(U===(U|0)&&U>=2&&U<=36){var X=D[U],$=S[U];J="";var M=this.clone();M.negative=0;while(!M.isZero()){var A=M.modn($).toString(U);if(M=M.idivn($),!M.isZero())J=C[X-A.length]+A+J;else J=A+J}if(this.isZero())J="0"+J;while(J.length%Q!==0)J="0"+J;if(this.negative!==0)J="-"+J;return J}H(!1,"Base should be between 2 and 36")},V.prototype.toNumber=function(){var U=this.words[0];if(this.length===2)U+=this.words[1]*67108864;else if(this.length===3&&this.words[2]===1)U+=4503599627370496+this.words[1]*67108864;else if(this.length>2)H(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-U:U},V.prototype.toJSON=function(){return this.toString(16)},V.prototype.toBuffer=function(U,Q){return H(typeof P<"u"),this.toArrayLike(P,U,Q)},V.prototype.toArray=function(U,Q){return this.toArrayLike(Array,U,Q)},V.prototype.toArrayLike=function(U,Q,J){var Z=this.byteLength(),Y=J||Math.max(1,Z);H(Z<=Y,"byte array longer than desired length"),H(Y>0,"Requested array length <= 0"),this.strip();var K=Q==="le",W=new U(Y),G,X,$=this.clone();if(!K){for(X=0;X<Y-Z;X++)W[X]=0;for(X=0;!$.isZero();X++)G=$.andln(255),$.iushrn(8),W[Y-X-1]=G}else{for(X=0;!$.isZero();X++)G=$.andln(255),$.iushrn(8),W[X]=G;for(;X<Y;X++)W[X]=0}return W},Math.clz32)V.prototype._countBits=function(U){return 32-Math.clz32(U)};else V.prototype._countBits=function(U){var Q=U,J=0;if(Q>=4096)J+=13,Q>>>=13;if(Q>=64)J+=7,Q>>>=7;if(Q>=8)J+=4,Q>>>=4;if(Q>=2)J+=2,Q>>>=2;return J+Q};V.prototype._zeroBits=function(U){if(U===0)return 26;var Q=U,J=0;if((Q&8191)===0)J+=13,Q>>>=13;if((Q&127)===0)J+=7,Q>>>=7;if((Q&15)===0)J+=4,Q>>>=4;if((Q&3)===0)J+=2,Q>>>=2;if((Q&1)===0)J++;return J},V.prototype.bitLength=function(){var U=this.words[this.length-1],Q=this._countBits(U);return(this.length-1)*26+Q};function R(U){var Q=Array(U.bitLength());for(var J=0;J<Q.length;J++){var Z=J/26|0,Y=J%26;Q[J]=(U.words[Z]&1<<Y)>>>Y}return Q}V.prototype.zeroBits=function(){if(this.isZero())return 0;var U=0;for(var Q=0;Q<this.length;Q++){var J=this._zeroBits(this.words[Q]);if(U+=J,J!==26)break}return U},V.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},V.prototype.toTwos=function(U){if(this.negative!==0)return this.abs().inotn(U).iaddn(1);return this.clone()},V.prototype.fromTwos=function(U){if(this.testn(U-1))return this.notn(U).iaddn(1).ineg();return this.clone()},V.prototype.isNeg=function(){return this.negative!==0},V.prototype.neg=function(){return this.clone().ineg()},V.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},V.prototype.iuor=function(U){while(this.length<U.length)this.words[this.length++]=0;for(var Q=0;Q<U.length;Q++)this.words[Q]=this.words[Q]|U.words[Q];return this.strip()},V.prototype.ior=function(U){return H((this.negative|U.negative)===0),this.iuor(U)},V.prototype.or=function(U){if(this.length>U.length)return this.clone().ior(U);return U.clone().ior(this)},V.prototype.uor=function(U){if(this.length>U.length)return this.clone().iuor(U);return U.clone().iuor(this)},V.prototype.iuand=function(U){var Q;if(this.length>U.length)Q=U;else Q=this;for(var J=0;J<Q.length;J++)this.words[J]=this.words[J]&U.words[J];return this.length=Q.length,this.strip()},V.prototype.iand=function(U){return H((this.negative|U.negative)===0),this.iuand(U)},V.prototype.and=function(U){if(this.length>U.length)return this.clone().iand(U);return U.clone().iand(this)},V.prototype.uand=function(U){if(this.length>U.length)return this.clone().iuand(U);return U.clone().iuand(this)},V.prototype.iuxor=function(U){var Q,J;if(this.length>U.length)Q=this,J=U;else Q=U,J=this;for(var Z=0;Z<J.length;Z++)this.words[Z]=Q.words[Z]^J.words[Z];if(this!==Q)for(;Z<Q.length;Z++)this.words[Z]=Q.words[Z];return this.length=Q.length,this.strip()},V.prototype.ixor=function(U){return H((this.negative|U.negative)===0),this.iuxor(U)},V.prototype.xor=function(U){if(this.length>U.length)return this.clone().ixor(U);return U.clone().ixor(this)},V.prototype.uxor=function(U){if(this.length>U.length)return this.clone().iuxor(U);return U.clone().iuxor(this)},V.prototype.inotn=function(U){H(typeof U==="number"&&U>=0);var Q=Math.ceil(U/26)|0,J=U%26;if(this._expand(Q),J>0)Q--;for(var Z=0;Z<Q;Z++)this.words[Z]=~this.words[Z]&67108863;if(J>0)this.words[Z]=~this.words[Z]&67108863>>26-J;return this.strip()},V.prototype.notn=function(U){return this.clone().inotn(U)},V.prototype.setn=function(U,Q){H(typeof U==="number"&&U>=0);var J=U/26|0,Z=U%26;if(this._expand(J+1),Q)this.words[J]=this.words[J]|1<<Z;else this.words[J]=this.words[J]&~(1<<Z);return this.strip()},V.prototype.iadd=function(U){var Q;if(this.negative!==0&&U.negative===0)return this.negative=0,Q=this.isub(U),this.negative^=1,this._normSign();else if(this.negative===0&&U.negative!==0)return U.negative=0,Q=this.isub(U),U.negative=1,Q._normSign();var J,Z;if(this.length>U.length)J=this,Z=U;else J=U,Z=this;var Y=0;for(var K=0;K<Z.length;K++)Q=(J.words[K]|0)+(Z.words[K]|0)+Y,this.words[K]=Q&67108863,Y=Q>>>26;for(;Y!==0&&K<J.length;K++)Q=(J.words[K]|0)+Y,this.words[K]=Q&67108863,Y=Q>>>26;if(this.length=J.length,Y!==0)this.words[this.length]=Y,this.length++;else if(J!==this)for(;K<J.length;K++)this.words[K]=J.words[K];return this},V.prototype.add=function(U){var Q;if(U.negative!==0&&this.negative===0)return U.negative=0,Q=this.sub(U),U.negative^=1,Q;else if(U.negative===0&&this.negative!==0)return this.negative=0,Q=U.sub(this),this.negative=1,Q;if(this.length>U.length)return this.clone().iadd(U);return U.clone().iadd(this)},V.prototype.isub=function(U){if(U.negative!==0){U.negative=0;var Q=this.iadd(U);return U.negative=1,Q._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(U),this.negative=1,this._normSign();var J=this.cmp(U);if(J===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Z,Y;if(J>0)Z=this,Y=U;else Z=U,Y=this;var K=0;for(var W=0;W<Y.length;W++)Q=(Z.words[W]|0)-(Y.words[W]|0)+K,K=Q>>26,this.words[W]=Q&67108863;for(;K!==0&&W<Z.length;W++)Q=(Z.words[W]|0)+K,K=Q>>26,this.words[W]=Q&67108863;if(K===0&&W<Z.length&&Z!==this)for(;W<Z.length;W++)this.words[W]=Z.words[W];if(this.length=Math.max(this.length,W),Z!==this)this.negative=1;return this.strip()},V.prototype.sub=function(U){return this.clone().isub(U)};function v(U,Q,J){J.negative=Q.negative^U.negative;var Z=U.length+Q.length|0;J.length=Z,Z=Z-1|0;var Y=U.words[0]|0,K=Q.words[0]|0,W=Y*K,G=W&67108863,X=W/67108864|0;J.words[0]=G;for(var $=1;$<Z;$++){var M=X>>>26,A=X&67108863,j=Math.min($,Q.length-1);for(var g=Math.max(0,$-U.length+1);g<=j;g++){var p=$-g|0;Y=U.words[p]|0,K=Q.words[g]|0,W=Y*K+A,M+=W/67108864|0,A=W&67108863}J.words[$]=A|0,X=M|0}if(X!==0)J.words[$]=X|0;else J.length--;return J.strip()}var k=function(U,Q,J){var Z=U.words,Y=Q.words,K=J.words,W=0,G,X,$,M=Z[0]|0,A=M&8191,j=M>>>13,g=Z[1]|0,p=g&8191,n=g>>>13,K0=Z[2]|0,r=K0&8191,l=K0>>>13,Q0=Z[3]|0,m=Q0&8191,i=Q0>>>13,g0=Z[4]|0,f=g0&8191,h=g0>>>13,Y0=Z[5]|0,t=Y0&8191,e=Y0>>>13,L0=Z[6]|0,c=L0&8191,o=L0>>>13,N0=Z[7]|0,s=N0&8191,Z0=N0>>>13,y0=Z[8]|0,F0=y0&8191,H0=y0>>>13,n0=Z[9]|0,O0=n0&8191,C0=n0>>>13,t0=Y[0]|0,D0=t0&8191,T0=t0>>>13,TU=Y[1]|0,E0=TU&8191,k0=TU>>>13,DU=Y[2]|0,j0=DU&8191,M0=DU>>>13,CU=Y[3]|0,v0=CU&8191,S0=CU>>>13,KU=Y[4]|0,_0=KU&8191,B0=KU>>>13,OU=Y[5]|0,R0=OU&8191,N=OU>>>13,b=Y[6]|0,a=b&8191,U0=b>>>13,w0=Y[7]|0,W0=w0&8191,A0=w0>>>13,m0=Y[8]|0,q0=m0&8191,x0=m0>>>13,AU=Y[9]|0,P0=AU&8191,z0=AU>>>13;J.negative=U.negative^Q.negative,J.length=19,G=Math.imul(A,D0),X=Math.imul(A,T0),X=X+Math.imul(j,D0)|0,$=Math.imul(j,T0);var s0=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(s0>>>26)|0,s0&=67108863,G=Math.imul(p,D0),X=Math.imul(p,T0),X=X+Math.imul(n,D0)|0,$=Math.imul(n,T0),G=G+Math.imul(A,E0)|0,X=X+Math.imul(A,k0)|0,X=X+Math.imul(j,E0)|0,$=$+Math.imul(j,k0)|0;var c0=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(c0>>>26)|0,c0&=67108863,G=Math.imul(r,D0),X=Math.imul(r,T0),X=X+Math.imul(l,D0)|0,$=Math.imul(l,T0),G=G+Math.imul(p,E0)|0,X=X+Math.imul(p,k0)|0,X=X+Math.imul(n,E0)|0,$=$+Math.imul(n,k0)|0,G=G+Math.imul(A,j0)|0,X=X+Math.imul(A,M0)|0,X=X+Math.imul(j,j0)|0,$=$+Math.imul(j,M0)|0;var f0=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(f0>>>26)|0,f0&=67108863,G=Math.imul(m,D0),X=Math.imul(m,T0),X=X+Math.imul(i,D0)|0,$=Math.imul(i,T0),G=G+Math.imul(r,E0)|0,X=X+Math.imul(r,k0)|0,X=X+Math.imul(l,E0)|0,$=$+Math.imul(l,k0)|0,G=G+Math.imul(p,j0)|0,X=X+Math.imul(p,M0)|0,X=X+Math.imul(n,j0)|0,$=$+Math.imul(n,M0)|0,G=G+Math.imul(A,v0)|0,X=X+Math.imul(A,S0)|0,X=X+Math.imul(j,v0)|0,$=$+Math.imul(j,S0)|0;var l0=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(l0>>>26)|0,l0&=67108863,G=Math.imul(f,D0),X=Math.imul(f,T0),X=X+Math.imul(h,D0)|0,$=Math.imul(h,T0),G=G+Math.imul(m,E0)|0,X=X+Math.imul(m,k0)|0,X=X+Math.imul(i,E0)|0,$=$+Math.imul(i,k0)|0,G=G+Math.imul(r,j0)|0,X=X+Math.imul(r,M0)|0,X=X+Math.imul(l,j0)|0,$=$+Math.imul(l,M0)|0,G=G+Math.imul(p,v0)|0,X=X+Math.imul(p,S0)|0,X=X+Math.imul(n,v0)|0,$=$+Math.imul(n,S0)|0,G=G+Math.imul(A,_0)|0,X=X+Math.imul(A,B0)|0,X=X+Math.imul(j,_0)|0,$=$+Math.imul(j,B0)|0;var b0=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(b0>>>26)|0,b0&=67108863,G=Math.imul(t,D0),X=Math.imul(t,T0),X=X+Math.imul(e,D0)|0,$=Math.imul(e,T0),G=G+Math.imul(f,E0)|0,X=X+Math.imul(f,k0)|0,X=X+Math.imul(h,E0)|0,$=$+Math.imul(h,k0)|0,G=G+Math.imul(m,j0)|0,X=X+Math.imul(m,M0)|0,X=X+Math.imul(i,j0)|0,$=$+Math.imul(i,M0)|0,G=G+Math.imul(r,v0)|0,X=X+Math.imul(r,S0)|0,X=X+Math.imul(l,v0)|0,$=$+Math.imul(l,S0)|0,G=G+Math.imul(p,_0)|0,X=X+Math.imul(p,B0)|0,X=X+Math.imul(n,_0)|0,$=$+Math.imul(n,B0)|0,G=G+Math.imul(A,R0)|0,X=X+Math.imul(A,N)|0,X=X+Math.imul(j,R0)|0,$=$+Math.imul(j,N)|0;var r0=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(r0>>>26)|0,r0&=67108863,G=Math.imul(c,D0),X=Math.imul(c,T0),X=X+Math.imul(o,D0)|0,$=Math.imul(o,T0),G=G+Math.imul(t,E0)|0,X=X+Math.imul(t,k0)|0,X=X+Math.imul(e,E0)|0,$=$+Math.imul(e,k0)|0,G=G+Math.imul(f,j0)|0,X=X+Math.imul(f,M0)|0,X=X+Math.imul(h,j0)|0,$=$+Math.imul(h,M0)|0,G=G+Math.imul(m,v0)|0,X=X+Math.imul(m,S0)|0,X=X+Math.imul(i,v0)|0,$=$+Math.imul(i,S0)|0,G=G+Math.imul(r,_0)|0,X=X+Math.imul(r,B0)|0,X=X+Math.imul(l,_0)|0,$=$+Math.imul(l,B0)|0,G=G+Math.imul(p,R0)|0,X=X+Math.imul(p,N)|0,X=X+Math.imul(n,R0)|0,$=$+Math.imul(n,N)|0,G=G+Math.imul(A,a)|0,X=X+Math.imul(A,U0)|0,X=X+Math.imul(j,a)|0,$=$+Math.imul(j,U0)|0;var a0=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(a0>>>26)|0,a0&=67108863,G=Math.imul(s,D0),X=Math.imul(s,T0),X=X+Math.imul(Z0,D0)|0,$=Math.imul(Z0,T0),G=G+Math.imul(c,E0)|0,X=X+Math.imul(c,k0)|0,X=X+Math.imul(o,E0)|0,$=$+Math.imul(o,k0)|0,G=G+Math.imul(t,j0)|0,X=X+Math.imul(t,M0)|0,X=X+Math.imul(e,j0)|0,$=$+Math.imul(e,M0)|0,G=G+Math.imul(f,v0)|0,X=X+Math.imul(f,S0)|0,X=X+Math.imul(h,v0)|0,$=$+Math.imul(h,S0)|0,G=G+Math.imul(m,_0)|0,X=X+Math.imul(m,B0)|0,X=X+Math.imul(i,_0)|0,$=$+Math.imul(i,B0)|0,G=G+Math.imul(r,R0)|0,X=X+Math.imul(r,N)|0,X=X+Math.imul(l,R0)|0,$=$+Math.imul(l,N)|0,G=G+Math.imul(p,a)|0,X=X+Math.imul(p,U0)|0,X=X+Math.imul(n,a)|0,$=$+Math.imul(n,U0)|0,G=G+Math.imul(A,W0)|0,X=X+Math.imul(A,A0)|0,X=X+Math.imul(j,W0)|0,$=$+Math.imul(j,A0)|0;var e0=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(e0>>>26)|0,e0&=67108863,G=Math.imul(F0,D0),X=Math.imul(F0,T0),X=X+Math.imul(H0,D0)|0,$=Math.imul(H0,T0),G=G+Math.imul(s,E0)|0,X=X+Math.imul(s,k0)|0,X=X+Math.imul(Z0,E0)|0,$=$+Math.imul(Z0,k0)|0,G=G+Math.imul(c,j0)|0,X=X+Math.imul(c,M0)|0,X=X+Math.imul(o,j0)|0,$=$+Math.imul(o,M0)|0,G=G+Math.imul(t,v0)|0,X=X+Math.imul(t,S0)|0,X=X+Math.imul(e,v0)|0,$=$+Math.imul(e,S0)|0,G=G+Math.imul(f,_0)|0,X=X+Math.imul(f,B0)|0,X=X+Math.imul(h,_0)|0,$=$+Math.imul(h,B0)|0,G=G+Math.imul(m,R0)|0,X=X+Math.imul(m,N)|0,X=X+Math.imul(i,R0)|0,$=$+Math.imul(i,N)|0,G=G+Math.imul(r,a)|0,X=X+Math.imul(r,U0)|0,X=X+Math.imul(l,a)|0,$=$+Math.imul(l,U0)|0,G=G+Math.imul(p,W0)|0,X=X+Math.imul(p,A0)|0,X=X+Math.imul(n,W0)|0,$=$+Math.imul(n,A0)|0,G=G+Math.imul(A,q0)|0,X=X+Math.imul(A,x0)|0,X=X+Math.imul(j,q0)|0,$=$+Math.imul(j,x0)|0;var i0=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(i0>>>26)|0,i0&=67108863,G=Math.imul(O0,D0),X=Math.imul(O0,T0),X=X+Math.imul(C0,D0)|0,$=Math.imul(C0,T0),G=G+Math.imul(F0,E0)|0,X=X+Math.imul(F0,k0)|0,X=X+Math.imul(H0,E0)|0,$=$+Math.imul(H0,k0)|0,G=G+Math.imul(s,j0)|0,X=X+Math.imul(s,M0)|0,X=X+Math.imul(Z0,j0)|0,$=$+Math.imul(Z0,M0)|0,G=G+Math.imul(c,v0)|0,X=X+Math.imul(c,S0)|0,X=X+Math.imul(o,v0)|0,$=$+Math.imul(o,S0)|0,G=G+Math.imul(t,_0)|0,X=X+Math.imul(t,B0)|0,X=X+Math.imul(e,_0)|0,$=$+Math.imul(e,B0)|0,G=G+Math.imul(f,R0)|0,X=X+Math.imul(f,N)|0,X=X+Math.imul(h,R0)|0,$=$+Math.imul(h,N)|0,G=G+Math.imul(m,a)|0,X=X+Math.imul(m,U0)|0,X=X+Math.imul(i,a)|0,$=$+Math.imul(i,U0)|0,G=G+Math.imul(r,W0)|0,X=X+Math.imul(r,A0)|0,X=X+Math.imul(l,W0)|0,$=$+Math.imul(l,A0)|0,G=G+Math.imul(p,q0)|0,X=X+Math.imul(p,x0)|0,X=X+Math.imul(n,q0)|0,$=$+Math.imul(n,x0)|0,G=G+Math.imul(A,P0)|0,X=X+Math.imul(A,z0)|0,X=X+Math.imul(j,P0)|0,$=$+Math.imul(j,z0)|0;var UU=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(UU>>>26)|0,UU&=67108863,G=Math.imul(O0,E0),X=Math.imul(O0,k0),X=X+Math.imul(C0,E0)|0,$=Math.imul(C0,k0),G=G+Math.imul(F0,j0)|0,X=X+Math.imul(F0,M0)|0,X=X+Math.imul(H0,j0)|0,$=$+Math.imul(H0,M0)|0,G=G+Math.imul(s,v0)|0,X=X+Math.imul(s,S0)|0,X=X+Math.imul(Z0,v0)|0,$=$+Math.imul(Z0,S0)|0,G=G+Math.imul(c,_0)|0,X=X+Math.imul(c,B0)|0,X=X+Math.imul(o,_0)|0,$=$+Math.imul(o,B0)|0,G=G+Math.imul(t,R0)|0,X=X+Math.imul(t,N)|0,X=X+Math.imul(e,R0)|0,$=$+Math.imul(e,N)|0,G=G+Math.imul(f,a)|0,X=X+Math.imul(f,U0)|0,X=X+Math.imul(h,a)|0,$=$+Math.imul(h,U0)|0,G=G+Math.imul(m,W0)|0,X=X+Math.imul(m,A0)|0,X=X+Math.imul(i,W0)|0,$=$+Math.imul(i,A0)|0,G=G+Math.imul(r,q0)|0,X=X+Math.imul(r,x0)|0,X=X+Math.imul(l,q0)|0,$=$+Math.imul(l,x0)|0,G=G+Math.imul(p,P0)|0,X=X+Math.imul(p,z0)|0,X=X+Math.imul(n,P0)|0,$=$+Math.imul(n,z0)|0;var XU=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(XU>>>26)|0,XU&=67108863,G=Math.imul(O0,j0),X=Math.imul(O0,M0),X=X+Math.imul(C0,j0)|0,$=Math.imul(C0,M0),G=G+Math.imul(F0,v0)|0,X=X+Math.imul(F0,S0)|0,X=X+Math.imul(H0,v0)|0,$=$+Math.imul(H0,S0)|0,G=G+Math.imul(s,_0)|0,X=X+Math.imul(s,B0)|0,X=X+Math.imul(Z0,_0)|0,$=$+Math.imul(Z0,B0)|0,G=G+Math.imul(c,R0)|0,X=X+Math.imul(c,N)|0,X=X+Math.imul(o,R0)|0,$=$+Math.imul(o,N)|0,G=G+Math.imul(t,a)|0,X=X+Math.imul(t,U0)|0,X=X+Math.imul(e,a)|0,$=$+Math.imul(e,U0)|0,G=G+Math.imul(f,W0)|0,X=X+Math.imul(f,A0)|0,X=X+Math.imul(h,W0)|0,$=$+Math.imul(h,A0)|0,G=G+Math.imul(m,q0)|0,X=X+Math.imul(m,x0)|0,X=X+Math.imul(i,q0)|0,$=$+Math.imul(i,x0)|0,G=G+Math.imul(r,P0)|0,X=X+Math.imul(r,z0)|0,X=X+Math.imul(l,P0)|0,$=$+Math.imul(l,z0)|0;var ZU=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(ZU>>>26)|0,ZU&=67108863,G=Math.imul(O0,v0),X=Math.imul(O0,S0),X=X+Math.imul(C0,v0)|0,$=Math.imul(C0,S0),G=G+Math.imul(F0,_0)|0,X=X+Math.imul(F0,B0)|0,X=X+Math.imul(H0,_0)|0,$=$+Math.imul(H0,B0)|0,G=G+Math.imul(s,R0)|0,X=X+Math.imul(s,N)|0,X=X+Math.imul(Z0,R0)|0,$=$+Math.imul(Z0,N)|0,G=G+Math.imul(c,a)|0,X=X+Math.imul(c,U0)|0,X=X+Math.imul(o,a)|0,$=$+Math.imul(o,U0)|0,G=G+Math.imul(t,W0)|0,X=X+Math.imul(t,A0)|0,X=X+Math.imul(e,W0)|0,$=$+Math.imul(e,A0)|0,G=G+Math.imul(f,q0)|0,X=X+Math.imul(f,x0)|0,X=X+Math.imul(h,q0)|0,$=$+Math.imul(h,x0)|0,G=G+Math.imul(m,P0)|0,X=X+Math.imul(m,z0)|0,X=X+Math.imul(i,P0)|0,$=$+Math.imul(i,z0)|0;var QU=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(QU>>>26)|0,QU&=67108863,G=Math.imul(O0,_0),X=Math.imul(O0,B0),X=X+Math.imul(C0,_0)|0,$=Math.imul(C0,B0),G=G+Math.imul(F0,R0)|0,X=X+Math.imul(F0,N)|0,X=X+Math.imul(H0,R0)|0,$=$+Math.imul(H0,N)|0,G=G+Math.imul(s,a)|0,X=X+Math.imul(s,U0)|0,X=X+Math.imul(Z0,a)|0,$=$+Math.imul(Z0,U0)|0,G=G+Math.imul(c,W0)|0,X=X+Math.imul(c,A0)|0,X=X+Math.imul(o,W0)|0,$=$+Math.imul(o,A0)|0,G=G+Math.imul(t,q0)|0,X=X+Math.imul(t,x0)|0,X=X+Math.imul(e,q0)|0,$=$+Math.imul(e,x0)|0,G=G+Math.imul(f,P0)|0,X=X+Math.imul(f,z0)|0,X=X+Math.imul(h,P0)|0,$=$+Math.imul(h,z0)|0;var YU=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(YU>>>26)|0,YU&=67108863,G=Math.imul(O0,R0),X=Math.imul(O0,N),X=X+Math.imul(C0,R0)|0,$=Math.imul(C0,N),G=G+Math.imul(F0,a)|0,X=X+Math.imul(F0,U0)|0,X=X+Math.imul(H0,a)|0,$=$+Math.imul(H0,U0)|0,G=G+Math.imul(s,W0)|0,X=X+Math.imul(s,A0)|0,X=X+Math.imul(Z0,W0)|0,$=$+Math.imul(Z0,A0)|0,G=G+Math.imul(c,q0)|0,X=X+Math.imul(c,x0)|0,X=X+Math.imul(o,q0)|0,$=$+Math.imul(o,x0)|0,G=G+Math.imul(t,P0)|0,X=X+Math.imul(t,z0)|0,X=X+Math.imul(e,P0)|0,$=$+Math.imul(e,z0)|0;var JU=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(JU>>>26)|0,JU&=67108863,G=Math.imul(O0,a),X=Math.imul(O0,U0),X=X+Math.imul(C0,a)|0,$=Math.imul(C0,U0),G=G+Math.imul(F0,W0)|0,X=X+Math.imul(F0,A0)|0,X=X+Math.imul(H0,W0)|0,$=$+Math.imul(H0,A0)|0,G=G+Math.imul(s,q0)|0,X=X+Math.imul(s,x0)|0,X=X+Math.imul(Z0,q0)|0,$=$+Math.imul(Z0,x0)|0,G=G+Math.imul(c,P0)|0,X=X+Math.imul(c,z0)|0,X=X+Math.imul(o,P0)|0,$=$+Math.imul(o,z0)|0;var VU=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(VU>>>26)|0,VU&=67108863,G=Math.imul(O0,W0),X=Math.imul(O0,A0),X=X+Math.imul(C0,W0)|0,$=Math.imul(C0,A0),G=G+Math.imul(F0,q0)|0,X=X+Math.imul(F0,x0)|0,X=X+Math.imul(H0,q0)|0,$=$+Math.imul(H0,x0)|0,G=G+Math.imul(s,P0)|0,X=X+Math.imul(s,z0)|0,X=X+Math.imul(Z0,P0)|0,$=$+Math.imul(Z0,z0)|0;var GU=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(GU>>>26)|0,GU&=67108863,G=Math.imul(O0,q0),X=Math.imul(O0,x0),X=X+Math.imul(C0,q0)|0,$=Math.imul(C0,x0),G=G+Math.imul(F0,P0)|0,X=X+Math.imul(F0,z0)|0,X=X+Math.imul(H0,P0)|0,$=$+Math.imul(H0,z0)|0;var IU=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(IU>>>26)|0,IU&=67108863,G=Math.imul(O0,P0),X=Math.imul(O0,z0),X=X+Math.imul(C0,P0)|0,$=Math.imul(C0,z0);var $U=(W+G|0)+((X&8191)<<13)|0;if(W=($+(X>>>13)|0)+($U>>>26)|0,$U&=67108863,K[0]=s0,K[1]=c0,K[2]=f0,K[3]=l0,K[4]=b0,K[5]=r0,K[6]=a0,K[7]=e0,K[8]=i0,K[9]=UU,K[10]=XU,K[11]=ZU,K[12]=QU,K[13]=YU,K[14]=JU,K[15]=VU,K[16]=GU,K[17]=IU,K[18]=$U,W!==0)K[19]=W,J.length++;return J};if(!Math.imul)k=v;function B(U,Q,J){J.negative=Q.negative^U.negative,J.length=U.length+Q.length;var Z=0,Y=0;for(var K=0;K<J.length-1;K++){var W=Y;Y=0;var G=Z&67108863,X=Math.min(K,Q.length-1);for(var $=Math.max(0,K-U.length+1);$<=X;$++){var M=K-$,A=U.words[M]|0,j=Q.words[$]|0,g=A*j,p=g&67108863;W=W+(g/67108864|0)|0,p=p+G|0,G=p&67108863,W=W+(p>>>26)|0,Y+=W>>>26,W&=67108863}J.words[K]=G,Z=W,W=Y}if(Z!==0)J.words[K]=Z;else J.length--;return J.strip()}function _(U,Q,J){var Z=new x;return Z.mulp(U,Q,J)}V.prototype.mulTo=function(U,Q){var J,Z=this.length+U.length;if(this.length===10&&U.length===10)J=k(this,U,Q);else if(Z<63)J=v(this,U,Q);else if(Z<1024)J=B(this,U,Q);else J=_(this,U,Q);return J};function x(U,Q){this.x=U,this.y=Q}x.prototype.makeRBT=function(U){var Q=Array(U),J=V.prototype._countBits(U)-1;for(var Z=0;Z<U;Z++)Q[Z]=this.revBin(Z,J,U);return Q},x.prototype.revBin=function(U,Q,J){if(U===0||U===J-1)return U;var Z=0;for(var Y=0;Y<Q;Y++)Z|=(U&1)<<Q-Y-1,U>>=1;return Z},x.prototype.permute=function(U,Q,J,Z,Y,K){for(var W=0;W<K;W++)Z[W]=Q[U[W]],Y[W]=J[U[W]]},x.prototype.transform=function(U,Q,J,Z,Y,K){this.permute(K,U,Q,J,Z,Y);for(var W=1;W<Y;W<<=1){var G=W<<1,X=Math.cos(2*Math.PI/G),$=Math.sin(2*Math.PI/G);for(var M=0;M<Y;M+=G){var A=X,j=$;for(var g=0;g<W;g++){var p=J[M+g],n=Z[M+g],K0=J[M+g+W],r=Z[M+g+W],l=A*K0-j*r;if(r=A*r+j*K0,K0=l,J[M+g]=p+K0,Z[M+g]=n+r,J[M+g+W]=p-K0,Z[M+g+W]=n-r,g!==G)l=X*A-$*j,j=X*j+$*A,A=l}}}},x.prototype.guessLen13b=function(U,Q){var J=Math.max(Q,U)|1,Z=J&1,Y=0;for(J=J/2|0;J;J=J>>>1)Y++;return 1<<Y+1+Z},x.prototype.conjugate=function(U,Q,J){if(J<=1)return;for(var Z=0;Z<J/2;Z++){var Y=U[Z];U[Z]=U[J-Z-1],U[J-Z-1]=Y,Y=Q[Z],Q[Z]=-Q[J-Z-1],Q[J-Z-1]=-Y}},x.prototype.normalize13b=function(U,Q){var J=0;for(var Z=0;Z<Q/2;Z++){var Y=Math.round(U[2*Z+1]/Q)*8192+Math.round(U[2*Z]/Q)+J;if(U[Z]=Y&67108863,Y<67108864)J=0;else J=Y/67108864|0}return U},x.prototype.convert13b=function(U,Q,J,Z){var Y=0;for(var K=0;K<Q;K++)Y=Y+(U[K]|0),J[2*K]=Y&8191,Y=Y>>>13,J[2*K+1]=Y&8191,Y=Y>>>13;for(K=2*Q;K<Z;++K)J[K]=0;H(Y===0),H((Y&-8192)===0)},x.prototype.stub=function(U){var Q=Array(U);for(var J=0;J<U;J++)Q[J]=0;return Q},x.prototype.mulp=function(U,Q,J){var Z=2*this.guessLen13b(U.length,Q.length),Y=this.makeRBT(Z),K=this.stub(Z),W=Array(Z),G=Array(Z),X=Array(Z),$=Array(Z),M=Array(Z),A=Array(Z),j=J.words;j.length=Z,this.convert13b(U.words,U.length,W,Z),this.convert13b(Q.words,Q.length,$,Z),this.transform(W,K,G,X,Z,Y),this.transform($,K,M,A,Z,Y);for(var g=0;g<Z;g++){var p=G[g]*M[g]-X[g]*A[g];X[g]=G[g]*A[g]+X[g]*M[g],G[g]=p}return this.conjugate(G,X,Z),this.transform(G,X,j,K,Z,Y),this.conjugate(j,K,Z),this.normalize13b(j,Z),J.negative=U.negative^Q.negative,J.length=U.length+Q.length,J.strip()},V.prototype.mul=function(U){var Q=new V(null);return Q.words=Array(this.length+U.length),this.mulTo(U,Q)},V.prototype.mulf=function(U){var Q=new V(null);return Q.words=Array(this.length+U.length),_(this,U,Q)},V.prototype.imul=function(U){return this.clone().mulTo(U,this)},V.prototype.imuln=function(U){H(typeof U==="number"),H(U<67108864);var Q=0;for(var J=0;J<this.length;J++){var Z=(this.words[J]|0)*U,Y=(Z&67108863)+(Q&67108863);Q>>=26,Q+=Z/67108864|0,Q+=Y>>>26,this.words[J]=Y&67108863}if(Q!==0)this.words[J]=Q,this.length++;return this.length=U===0?1:this.length,this},V.prototype.muln=function(U){return this.clone().imuln(U)},V.prototype.sqr=function(){return this.mul(this)},V.prototype.isqr=function(){return this.imul(this.clone())},V.prototype.pow=function(U){var Q=R(U);if(Q.length===0)return new V(1);var J=this;for(var Z=0;Z<Q.length;Z++,J=J.sqr())if(Q[Z]!==0)break;if(++Z<Q.length)for(var Y=J.sqr();Z<Q.length;Z++,Y=Y.sqr()){if(Q[Z]===0)continue;J=J.mul(Y)}return J},V.prototype.iushln=function(U){H(typeof U==="number"&&U>=0);var Q=U%26,J=(U-Q)/26,Z=67108863>>>26-Q<<26-Q,Y;if(Q!==0){var K=0;for(Y=0;Y<this.length;Y++){var W=this.words[Y]&Z,G=(this.words[Y]|0)-W<<Q;this.words[Y]=G|K,K=W>>>26-Q}if(K)this.words[Y]=K,this.length++}if(J!==0){for(Y=this.length-1;Y>=0;Y--)this.words[Y+J]=this.words[Y];for(Y=0;Y<J;Y++)this.words[Y]=0;this.length+=J}return this.strip()},V.prototype.ishln=function(U){return H(this.negative===0),this.iushln(U)},V.prototype.iushrn=function(U,Q,J){H(typeof U==="number"&&U>=0);var Z;if(Q)Z=(Q-Q%26)/26;else Z=0;var Y=U%26,K=Math.min((U-Y)/26,this.length),W=67108863^67108863>>>Y<<Y,G=J;if(Z-=K,Z=Math.max(0,Z),G){for(var X=0;X<K;X++)G.words[X]=this.words[X];G.length=K}if(K===0);else if(this.length>K){this.length-=K;for(X=0;X<this.length;X++)this.words[X]=this.words[X+K]}else this.words[0]=0,this.length=1;var $=0;for(X=this.length-1;X>=0&&($!==0||X>=Z);X--){var M=this.words[X]|0;this.words[X]=$<<26-Y|M>>>Y,$=M&W}if(G&&$!==0)G.words[G.length++]=$;if(this.length===0)this.words[0]=0,this.length=1;return this.strip()},V.prototype.ishrn=function(U,Q,J){return H(this.negative===0),this.iushrn(U,Q,J)},V.prototype.shln=function(U){return this.clone().ishln(U)},V.prototype.ushln=function(U){return this.clone().iushln(U)},V.prototype.shrn=function(U){return this.clone().ishrn(U)},V.prototype.ushrn=function(U){return this.clone().iushrn(U)},V.prototype.testn=function(U){H(typeof U==="number"&&U>=0);var Q=U%26,J=(U-Q)/26,Z=1<<Q;if(this.length<=J)return!1;var Y=this.words[J];return!!(Y&Z)},V.prototype.imaskn=function(U){H(typeof U==="number"&&U>=0);var Q=U%26,J=(U-Q)/26;if(H(this.negative===0,"imaskn works only with positive numbers"),this.length<=J)return this;if(Q!==0)J++;if(this.length=Math.min(J,this.length),Q!==0){var Z=67108863^67108863>>>Q<<Q;this.words[this.length-1]&=Z}return this.strip()},V.prototype.maskn=function(U){return this.clone().imaskn(U)},V.prototype.iaddn=function(U){if(H(typeof U==="number"),H(U<67108864),U<0)return this.isubn(-U);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<U)return this.words[0]=U-(this.words[0]|0),this.negative=0,this;return this.negative=0,this.isubn(U),this.negative=1,this}return this._iaddn(U)},V.prototype._iaddn=function(U){this.words[0]+=U;for(var Q=0;Q<this.length&&this.words[Q]>=67108864;Q++)if(this.words[Q]-=67108864,Q===this.length-1)this.words[Q+1]=1;else this.words[Q+1]++;return this.length=Math.max(this.length,Q+1),this},V.prototype.isubn=function(U){if(H(typeof U==="number"),H(U<67108864),U<0)return this.iaddn(-U);if(this.negative!==0)return this.negative=0,this.iaddn(U),this.negative=1,this;if(this.words[0]-=U,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Q=0;Q<this.length&&this.words[Q]<0;Q++)this.words[Q]+=67108864,this.words[Q+1]-=1;return this.strip()},V.prototype.addn=function(U){return this.clone().iaddn(U)},V.prototype.subn=function(U){return this.clone().isubn(U)},V.prototype.iabs=function(){return this.negative=0,this},V.prototype.abs=function(){return this.clone().iabs()},V.prototype._ishlnsubmul=function(U,Q,J){var Z=U.length+J,Y;this._expand(Z);var K,W=0;for(Y=0;Y<U.length;Y++){K=(this.words[Y+J]|0)+W;var G=(U.words[Y]|0)*Q;K-=G&67108863,W=(K>>26)-(G/67108864|0),this.words[Y+J]=K&67108863}for(;Y<this.length-J;Y++)K=(this.words[Y+J]|0)+W,W=K>>26,this.words[Y+J]=K&67108863;if(W===0)return this.strip();H(W===-1),W=0;for(Y=0;Y<this.length;Y++)K=-(this.words[Y]|0)+W,W=K>>26,this.words[Y]=K&67108863;return this.negative=1,this.strip()},V.prototype._wordDiv=function(U,Q){var J=this.length-U.length,Z=this.clone(),Y=U,K=Y.words[Y.length-1]|0,W=this._countBits(K);if(J=26-W,J!==0)Y=Y.ushln(J),Z.iushln(J),K=Y.words[Y.length-1]|0;var G=Z.length-Y.length,X;if(Q!=="mod"){X=new V(null),X.length=G+1,X.words=Array(X.length);for(var $=0;$<X.length;$++)X.words[$]=0}var M=Z.clone()._ishlnsubmul(Y,1,G);if(M.negative===0){if(Z=M,X)X.words[G]=1}for(var A=G-1;A>=0;A--){var j=(Z.words[Y.length+A]|0)*67108864+(Z.words[Y.length+A-1]|0);j=Math.min(j/K|0,67108863),Z._ishlnsubmul(Y,j,A);while(Z.negative!==0)if(j--,Z.negative=0,Z._ishlnsubmul(Y,1,A),!Z.isZero())Z.negative^=1;if(X)X.words[A]=j}if(X)X.strip();if(Z.strip(),Q!=="div"&&J!==0)Z.iushrn(J);return{div:X||null,mod:Z}},V.prototype.divmod=function(U,Q,J){if(H(!U.isZero()),this.isZero())return{div:new V(0),mod:new V(0)};var Z,Y,K;if(this.negative!==0&&U.negative===0){if(K=this.neg().divmod(U,Q),Q!=="mod")Z=K.div.neg();if(Q!=="div"){if(Y=K.mod.neg(),J&&Y.negative!==0)Y.iadd(U)}return{div:Z,mod:Y}}if(this.negative===0&&U.negative!==0){if(K=this.divmod(U.neg(),Q),Q!=="mod")Z=K.div.neg();return{div:Z,mod:K.mod}}if((this.negative&U.negative)!==0){if(K=this.neg().divmod(U.neg(),Q),Q!=="div"){if(Y=K.mod.neg(),J&&Y.negative!==0)Y.isub(U)}return{div:K.div,mod:Y}}if(U.length>this.length||this.cmp(U)<0)return{div:new V(0),mod:this};if(U.length===1){if(Q==="div")return{div:this.divn(U.words[0]),mod:null};if(Q==="mod")return{div:null,mod:new V(this.modn(U.words[0]))};return{div:this.divn(U.words[0]),mod:new V(this.modn(U.words[0]))}}return this._wordDiv(U,Q)},V.prototype.div=function(U){return this.divmod(U,"div",!1).div},V.prototype.mod=function(U){return this.divmod(U,"mod",!1).mod},V.prototype.umod=function(U){return this.divmod(U,"mod",!0).mod},V.prototype.divRound=function(U){var Q=this.divmod(U);if(Q.mod.isZero())return Q.div;var J=Q.div.negative!==0?Q.mod.isub(U):Q.mod,Z=U.ushrn(1),Y=U.andln(1),K=J.cmp(Z);if(K<0||Y===1&&K===0)return Q.div;return Q.div.negative!==0?Q.div.isubn(1):Q.div.iaddn(1)},V.prototype.modn=function(U){H(U<=67108863);var Q=67108864%U,J=0;for(var Z=this.length-1;Z>=0;Z--)J=(Q*J+(this.words[Z]|0))%U;return J},V.prototype.idivn=function(U){H(U<=67108863);var Q=0;for(var J=this.length-1;J>=0;J--){var Z=(this.words[J]|0)+Q*67108864;this.words[J]=Z/U|0,Q=Z%U}return this.strip()},V.prototype.divn=function(U){return this.clone().idivn(U)},V.prototype.egcd=function(U){H(U.negative===0),H(!U.isZero());var Q=this,J=U.clone();if(Q.negative!==0)Q=Q.umod(U);else Q=Q.clone();var Z=new V(1),Y=new V(0),K=new V(0),W=new V(1),G=0;while(Q.isEven()&&J.isEven())Q.iushrn(1),J.iushrn(1),++G;var X=J.clone(),$=Q.clone();while(!Q.isZero()){for(var M=0,A=1;(Q.words[0]&A)===0&&M<26;++M,A<<=1);if(M>0){Q.iushrn(M);while(M-- >0){if(Z.isOdd()||Y.isOdd())Z.iadd(X),Y.isub($);Z.iushrn(1),Y.iushrn(1)}}for(var j=0,g=1;(J.words[0]&g)===0&&j<26;++j,g<<=1);if(j>0){J.iushrn(j);while(j-- >0){if(K.isOdd()||W.isOdd())K.iadd(X),W.isub($);K.iushrn(1),W.iushrn(1)}}if(Q.cmp(J)>=0)Q.isub(J),Z.isub(K),Y.isub(W);else J.isub(Q),K.isub(Z),W.isub(Y)}return{a:K,b:W,gcd:J.iushln(G)}},V.prototype._invmp=function(U){H(U.negative===0),H(!U.isZero());var Q=this,J=U.clone();if(Q.negative!==0)Q=Q.umod(U);else Q=Q.clone();var Z=new V(1),Y=new V(0),K=J.clone();while(Q.cmpn(1)>0&&J.cmpn(1)>0){for(var W=0,G=1;(Q.words[0]&G)===0&&W<26;++W,G<<=1);if(W>0){Q.iushrn(W);while(W-- >0){if(Z.isOdd())Z.iadd(K);Z.iushrn(1)}}for(var X=0,$=1;(J.words[0]&$)===0&&X<26;++X,$<<=1);if(X>0){J.iushrn(X);while(X-- >0){if(Y.isOdd())Y.iadd(K);Y.iushrn(1)}}if(Q.cmp(J)>=0)Q.isub(J),Z.isub(Y);else J.isub(Q),Y.isub(Z)}var M;if(Q.cmpn(1)===0)M=Z;else M=Y;if(M.cmpn(0)<0)M.iadd(U);return M},V.prototype.gcd=function(U){if(this.isZero())return U.abs();if(U.isZero())return this.abs();var Q=this.clone(),J=U.clone();Q.negative=0,J.negative=0;for(var Z=0;Q.isEven()&&J.isEven();Z++)Q.iushrn(1),J.iushrn(1);do{while(Q.isEven())Q.iushrn(1);while(J.isEven())J.iushrn(1);var Y=Q.cmp(J);if(Y<0){var K=Q;Q=J,J=K}else if(Y===0||J.cmpn(1)===0)break;Q.isub(J)}while(!0);return J.iushln(Z)},V.prototype.invm=function(U){return this.egcd(U).a.umod(U)},V.prototype.isEven=function(){return(this.words[0]&1)===0},V.prototype.isOdd=function(){return(this.words[0]&1)===1},V.prototype.andln=function(U){return this.words[0]&U},V.prototype.bincn=function(U){H(typeof U==="number");var Q=U%26,J=(U-Q)/26,Z=1<<Q;if(this.length<=J)return this._expand(J+1),this.words[J]|=Z,this;var Y=Z;for(var K=J;Y!==0&&K<this.length;K++){var W=this.words[K]|0;W+=Y,Y=W>>>26,W&=67108863,this.words[K]=W}if(Y!==0)this.words[K]=Y,this.length++;return this},V.prototype.isZero=function(){return this.length===1&&this.words[0]===0},V.prototype.cmpn=function(U){var Q=U<0;if(this.negative!==0&&!Q)return-1;if(this.negative===0&&Q)return 1;this.strip();var J;if(this.length>1)J=1;else{if(Q)U=-U;H(U<=67108863,"Number is too big");var Z=this.words[0]|0;J=Z===U?0:Z<U?-1:1}if(this.negative!==0)return-J|0;return J},V.prototype.cmp=function(U){if(this.negative!==0&&U.negative===0)return-1;if(this.negative===0&&U.negative!==0)return 1;var Q=this.ucmp(U);if(this.negative!==0)return-Q|0;return Q},V.prototype.ucmp=function(U){if(this.length>U.length)return 1;if(this.length<U.length)return-1;var Q=0;for(var J=this.length-1;J>=0;J--){var Z=this.words[J]|0,Y=U.words[J]|0;if(Z===Y)continue;if(Z<Y)Q=-1;else if(Z>Y)Q=1;break}return Q},V.prototype.gtn=function(U){return this.cmpn(U)===1},V.prototype.gt=function(U){return this.cmp(U)===1},V.prototype.gten=function(U){return this.cmpn(U)>=0},V.prototype.gte=function(U){return this.cmp(U)>=0},V.prototype.ltn=function(U){return this.cmpn(U)===-1},V.prototype.lt=function(U){return this.cmp(U)===-1},V.prototype.lten=function(U){return this.cmpn(U)<=0},V.prototype.lte=function(U){return this.cmp(U)<=0},V.prototype.eqn=function(U){return this.cmpn(U)===0},V.prototype.eq=function(U){return this.cmp(U)===0},V.red=function(U){return new u(U)},V.prototype.toRed=function(U){return H(!this.red,"Already a number in reduction context"),H(this.negative===0,"red works only with positives"),U.convertTo(this)._forceRed(U)},V.prototype.fromRed=function(){return H(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},V.prototype._forceRed=function(U){return this.red=U,this},V.prototype.forceRed=function(U){return H(!this.red,"Already a number in reduction context"),this._forceRed(U)},V.prototype.redAdd=function(U){return H(this.red,"redAdd works only with red numbers"),this.red.add(this,U)},V.prototype.redIAdd=function(U){return H(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,U)},V.prototype.redSub=function(U){return H(this.red,"redSub works only with red numbers"),this.red.sub(this,U)},V.prototype.redISub=function(U){return H(this.red,"redISub works only with red numbers"),this.red.isub(this,U)},V.prototype.redShl=function(U){return H(this.red,"redShl works only with red numbers"),this.red.shl(this,U)},V.prototype.redMul=function(U){return H(this.red,"redMul works only with red numbers"),this.red._verify2(this,U),this.red.mul(this,U)},V.prototype.redIMul=function(U){return H(this.red,"redMul works only with red numbers"),this.red._verify2(this,U),this.red.imul(this,U)},V.prototype.redSqr=function(){return H(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},V.prototype.redISqr=function(){return H(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},V.prototype.redSqrt=function(){return H(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},V.prototype.redInvm=function(){return H(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},V.prototype.redNeg=function(){return H(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},V.prototype.redPow=function(U){return H(this.red&&!U.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,U)};var w={k256:null,p224:null,p192:null,p25519:null};function y(U,Q){this.name=U,this.p=new V(Q,16),this.n=this.p.bitLength(),this.k=new V(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}y.prototype._tmp=function(){var U=new V(null);return U.words=Array(Math.ceil(this.n/13)),U},y.prototype.ireduce=function(U){var Q=U,J;do this.split(Q,this.tmp),Q=this.imulK(Q),Q=Q.iadd(this.tmp),J=Q.bitLength();while(J>this.n);var Z=J<this.n?-1:Q.ucmp(this.p);if(Z===0)Q.words[0]=0,Q.length=1;else if(Z>0)Q.isub(this.p);else if(Q.strip!==void 0)Q.strip();else Q._strip();return Q},y.prototype.split=function(U,Q){U.iushrn(this.n,0,Q)},y.prototype.imulK=function(U){return U.imul(this.k)};function d(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}E(d,y),d.prototype.split=function(U,Q){var J=4194303,Z=Math.min(U.length,9);for(var Y=0;Y<Z;Y++)Q.words[Y]=U.words[Y];if(Q.length=Z,U.length<=9){U.words[0]=0,U.length=1;return}var K=U.words[9];Q.words[Q.length++]=K&J;for(Y=10;Y<U.length;Y++){var W=U.words[Y]|0;U.words[Y-10]=(W&J)<<4|K>>>22,K=W}if(K>>>=22,U.words[Y-10]=K,K===0&&U.length>10)U.length-=10;else U.length-=9},d.prototype.imulK=function(U){U.words[U.length]=0,U.words[U.length+1]=0,U.length+=2;var Q=0;for(var J=0;J<U.length;J++){var Z=U.words[J]|0;Q+=Z*977,U.words[J]=Q&67108863,Q=Z*64+(Q/67108864|0)}if(U.words[U.length-1]===0){if(U.length--,U.words[U.length-1]===0)U.length--}return U};function J0(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}E(J0,y);function I0(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}E(I0,y);function V0(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}E(V0,y),V0.prototype.imulK=function(U){var Q=0;for(var J=0;J<U.length;J++){var Z=(U.words[J]|0)*19+Q,Y=Z&67108863;Z>>>=26,U.words[J]=Y,Q=Z}if(Q!==0)U.words[U.length++]=Q;return U},V._prime=function(U){if(w[U])return w[U];var Q;if(U==="k256")Q=new d;else if(U==="p224")Q=new J0;else if(U==="p192")Q=new I0;else if(U==="p25519")Q=new V0;else throw Error("Unknown prime "+U);return w[U]=Q,Q};function u(U){if(typeof U==="string"){var Q=V._prime(U);this.m=Q.p,this.prime=Q}else H(U.gtn(1),"modulus must be greater than 1"),this.m=U,this.prime=null}u.prototype._verify1=function(U){H(U.negative===0,"red works only with positives"),H(U.red,"red works only with red numbers")},u.prototype._verify2=function(U,Q){H((U.negative|Q.negative)===0,"red works only with positives"),H(U.red&&U.red===Q.red,"red works only with red numbers")},u.prototype.imod=function(U){if(this.prime)return this.prime.ireduce(U)._forceRed(this);return U.umod(this.m)._forceRed(this)},u.prototype.neg=function(U){if(U.isZero())return U.clone();return this.m.sub(U)._forceRed(this)},u.prototype.add=function(U,Q){this._verify2(U,Q);var J=U.add(Q);if(J.cmp(this.m)>=0)J.isub(this.m);return J._forceRed(this)},u.prototype.iadd=function(U,Q){this._verify2(U,Q);var J=U.iadd(Q);if(J.cmp(this.m)>=0)J.isub(this.m);return J},u.prototype.sub=function(U,Q){this._verify2(U,Q);var J=U.sub(Q);if(J.cmpn(0)<0)J.iadd(this.m);return J._forceRed(this)},u.prototype.isub=function(U,Q){this._verify2(U,Q);var J=U.isub(Q);if(J.cmpn(0)<0)J.iadd(this.m);return J},u.prototype.shl=function(U,Q){return this._verify1(U),this.imod(U.ushln(Q))},u.prototype.imul=function(U,Q){return this._verify2(U,Q),this.imod(U.imul(Q))},u.prototype.mul=function(U,Q){return this._verify2(U,Q),this.imod(U.mul(Q))},u.prototype.isqr=function(U){return this.imul(U,U.clone())},u.prototype.sqr=function(U){return this.mul(U,U)},u.prototype.sqrt=function(U){if(U.isZero())return U.clone();var Q=this.m.andln(3);if(H(Q%2===1),Q===3){var J=this.m.add(new V(1)).iushrn(2);return this.pow(U,J)}var Z=this.m.subn(1),Y=0;while(!Z.isZero()&&Z.andln(1)===0)Y++,Z.iushrn(1);H(!Z.isZero());var K=new V(1).toRed(this),W=K.redNeg(),G=this.m.subn(1).iushrn(1),X=this.m.bitLength();X=new V(2*X*X).toRed(this);while(this.pow(X,G).cmp(W)!==0)X.redIAdd(W);var $=this.pow(X,Z),M=this.pow(U,Z.addn(1).iushrn(1)),A=this.pow(U,Z),j=Y;while(A.cmp(K)!==0){var g=A;for(var p=0;g.cmp(K)!==0;p++)g=g.redSqr();H(p<j);var n=this.pow($,new V(1).iushln(j-p-1));M=M.redMul(n),$=n.redSqr(),A=A.redMul($),j=p}return M},u.prototype.invm=function(U){var Q=U._invmp(this.m);if(Q.negative!==0)return Q.negative=0,this.imod(Q).redNeg();else return this.imod(Q)},u.prototype.pow=function(U,Q){if(Q.isZero())return new V(1).toRed(this);if(Q.cmpn(1)===0)return U.clone();var J=4,Z=Array(1<<J);Z[0]=new V(1).toRed(this),Z[1]=U;for(var Y=2;Y<Z.length;Y++)Z[Y]=this.mul(Z[Y-1],U);var K=Z[0],W=0,G=0,X=Q.bitLength()%26;if(X===0)X=26;for(Y=Q.length-1;Y>=0;Y--){var $=Q.words[Y];for(var M=X-1;M>=0;M--){var A=$>>M&1;if(K!==Z[0])K=this.sqr(K);if(A===0&&W===0){G=0;continue}if(W<<=1,W|=A,G++,G!==J&&(Y!==0||M!==0))continue;K=this.mul(K,Z[W]),G=0,W=0}X=26}return K},u.prototype.convertTo=function(U){var Q=U.umod(this.m);return Q===U?Q.clone():Q},u.prototype.convertFrom=function(U){var Q=U.clone();return Q.red=null,Q},V.mont=function(U){return new X0(U)};function X0(U){if(u.call(this,U),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new V(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)}E(X0,u),X0.prototype.convertTo=function(U){return this.imod(U.ushln(this.shift))},X0.prototype.convertFrom=function(U){var Q=this.imod(U.mul(this.rinv));return Q.red=null,Q},X0.prototype.imul=function(U,Q){if(U.isZero()||Q.isZero())return U.words[0]=0,U.length=1,U;var J=U.imul(Q),Z=J.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Y=J.isub(Z).iushrn(this.shift),K=Y;if(Y.cmp(this.m)>=0)K=Y.isub(this.m);else if(Y.cmpn(0)<0)K=Y.iadd(this.m);return K._forceRed(this)},X0.prototype.mul=function(U,Q){if(U.isZero()||Q.isZero())return new V(0)._forceRed(this);var J=U.mul(Q),Z=J.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Y=J.isub(Z).iushrn(this.shift),K=Y;if(Y.cmp(this.m)>=0)K=Y.isub(this.m);else if(Y.cmpn(0)<0)K=Y.iadd(this.m);return K._forceRed(this)},X0.prototype.invm=function(U){var Q=this.imod(U._invmp(this.m).mul(this.r2));return Q._forceRed(this)}})(typeof O>"u"||O,I)}),zV=G0((I,O)=>{var F=TV(),T=DV();O.exports=function(P){return new E(P)};var H={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}};H.p224=H.secp224r1,H.p256=H.secp256r1=H.prime256v1,H.p192=H.secp192r1=H.prime192v1,H.p384=H.secp384r1,H.p521=H.secp521r1;function E(P){if(this.curveType=H[P],!this.curveType)this.curveType={name:P};this.curve=new F.ec(this.curveType.name),this.keys=void 0}E.prototype.generateKeys=function(P,q){return this.keys=this.curve.genKeyPair(),this.getPublicKey(P,q)},E.prototype.computeSecret=function(P,q,L){if(q=q||"utf8",!Buffer.isBuffer(P))P=new Buffer(P,q);var z=this.curve.keyFromPublic(P).getPublic(),C=z.mul(this.keys.getPrivate()).getX();return V(C,L,this.curveType.byteLength)},E.prototype.getPublicKey=function(P,q){var L=this.keys.getPublic(q==="compressed",!0);if(q==="hybrid")if(L[L.length-1]%2)L[0]=7;else L[0]=6;return V(L,P)},E.prototype.getPrivateKey=function(P){return V(this.keys.getPrivate(),P)},E.prototype.setPublicKey=function(P,q){if(q=q||"utf8",!Buffer.isBuffer(P))P=new Buffer(P,q);return this.keys._importPublic(P),this},E.prototype.setPrivateKey=function(P,q){if(q=q||"utf8",!Buffer.isBuffer(P))P=new Buffer(P,q);var L=new T(P);return L=L.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(L),this};function V(P,q,L){if(!Array.isArray(P))P=P.toArray();var z=new Buffer(P);if(L&&z.length<L){var C=new Buffer(L-z.length);C.fill(0),z=Buffer.concat([C,z])}if(!q)return z;else return z.toString(q)}}),LV=G0((I,O)=>{var F=(qU(),h0(RU)).createECDH;O.exports=F||zV()}),EV=G0((I,O)=>{(function(F,T){function H(U,Q){if(!U)throw Error(Q||"Assertion failed")}function E(U,Q){U.super_=Q;var J=function(){};J.prototype=Q.prototype,U.prototype=new J,U.prototype.constructor=U}function V(U,Q,J){if(V.isBN(U))return U;if(this.negative=0,this.words=null,this.length=0,this.red=null,U!==null){if(Q==="le"||Q==="be")J=Q,Q=10;this._init(U||0,Q||10,J||"be")}}if(typeof F==="object")F.exports=V;else T.BN=V;V.BN=V,V.wordSize=26;var P;try{if(typeof window<"u"&&typeof window.Buffer<"u")P=window.Buffer;else P=(HU(),h0(FU)).Buffer}catch(U){}V.isBN=function(U){if(U instanceof V)return!0;return U!==null&&typeof U==="object"&&U.constructor.wordSize===V.wordSize&&Array.isArray(U.words)},V.max=function(U,Q){if(U.cmp(Q)>0)return U;return Q},V.min=function(U,Q){if(U.cmp(Q)<0)return U;return Q},V.prototype._init=function(U,Q,J){if(typeof U==="number")return this._initNumber(U,Q,J);if(typeof U==="object")return this._initArray(U,Q,J);if(Q==="hex")Q=16;H(Q===(Q|0)&&Q>=2&&Q<=36),U=U.toString().replace(/\s+/g,"");var Z=0;if(U[0]==="-")Z++,this.negative=1;if(Z<U.length){if(Q===16)this._parseHex(U,Z,J);else if(this._parseBase(U,Q,Z),J==="le")this._initArray(this.toArray(),Q,J)}},V.prototype._initNumber=function(U,Q,J){if(U<0)this.negative=1,U=-U;if(U<67108864)this.words=[U&67108863],this.length=1;else if(U<4503599627370496)this.words=[U&67108863,U/67108864&67108863],this.length=2;else H(U<9007199254740992),this.words=[U&67108863,U/67108864&67108863,1],this.length=3;if(J!=="le")return;this._initArray(this.toArray(),Q,J)},V.prototype._initArray=function(U,Q,J){if(H(typeof U.length==="number"),U.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(U.length/3),this.words=Array(this.length);for(var Z=0;Z<this.length;Z++)this.words[Z]=0;var Y,K,W=0;if(J==="be"){for(Z=U.length-1,Y=0;Z>=0;Z-=3)if(K=U[Z]|U[Z-1]<<8|U[Z-2]<<16,this.words[Y]|=K<<W&67108863,this.words[Y+1]=K>>>26-W&67108863,W+=24,W>=26)W-=26,Y++}else if(J==="le"){for(Z=0,Y=0;Z<U.length;Z+=3)if(K=U[Z]|U[Z+1]<<8|U[Z+2]<<16,this.words[Y]|=K<<W&67108863,this.words[Y+1]=K>>>26-W&67108863,W+=24,W>=26)W-=26,Y++}return this.strip()};function q(U,Q){var J=U.charCodeAt(Q);if(J>=65&&J<=70)return J-55;else if(J>=97&&J<=102)return J-87;else return J-48&15}function L(U,Q,J){var Z=q(U,J);if(J-1>=Q)Z|=q(U,J-1)<<4;return Z}V.prototype._parseHex=function(U,Q,J){this.length=Math.ceil((U.length-Q)/6),this.words=Array(this.length);for(var Z=0;Z<this.length;Z++)this.words[Z]=0;var Y=0,K=0,W;if(J==="be")for(Z=U.length-1;Z>=Q;Z-=2)if(W=L(U,Q,Z)<<Y,this.words[K]|=W&67108863,Y>=18)Y-=18,K+=1,this.words[K]|=W>>>26;else Y+=8;else{var G=U.length-Q;for(Z=G%2===0?Q+1:Q;Z<U.length;Z+=2)if(W=L(U,Q,Z)<<Y,this.words[K]|=W&67108863,Y>=18)Y-=18,K+=1,this.words[K]|=W>>>26;else Y+=8}this.strip()};function z(U,Q,J,Z){var Y=0,K=Math.min(U.length,J);for(var W=Q;W<K;W++){var G=U.charCodeAt(W)-48;if(Y*=Z,G>=49)Y+=G-49+10;else if(G>=17)Y+=G-17+10;else Y+=G}return Y}V.prototype._parseBase=function(U,Q,J){this.words=[0],this.length=1;for(var Z=0,Y=1;Y<=67108863;Y*=Q)Z++;Z--,Y=Y/Q|0;var K=U.length-J,W=K%Z,G=Math.min(K,K-W)+J,X=0;for(var $=J;$<G;$+=Z)if(X=z(U,$,$+Z,Q),this.imuln(Y),this.words[0]+X<67108864)this.words[0]+=X;else this._iaddn(X);if(W!==0){var M=1;X=z(U,$,U.length,Q);for($=0;$<W;$++)M*=Q;if(this.imuln(M),this.words[0]+X<67108864)this.words[0]+=X;else this._iaddn(X)}this.strip()},V.prototype.copy=function(U){U.words=Array(this.length);for(var Q=0;Q<this.length;Q++)U.words[Q]=this.words[Q];U.length=this.length,U.negative=this.negative,U.red=this.red},V.prototype.clone=function(){var U=new V(null);return this.copy(U),U},V.prototype._expand=function(U){while(this.length<U)this.words[this.length++]=0;return this},V.prototype.strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},V.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},V.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var C=["","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"],D=[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],S=[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];if(V.prototype.toString=function(U,Q){U=U||10,Q=Q|0||1;var J;if(U===16||U==="hex"){J="";var Z=0,Y=0;for(var K=0;K<this.length;K++){var W=this.words[K],G=((W<<Z|Y)&16777215).toString(16);if(Y=W>>>24-Z&16777215,Z+=2,Z>=26)Z-=26,K--;if(Y!==0||K!==this.length-1)J=C[6-G.length]+G+J;else J=G+J}if(Y!==0)J=Y.toString(16)+J;while(J.length%Q!==0)J="0"+J;if(this.negative!==0)J="-"+J;return J}if(U===(U|0)&&U>=2&&U<=36){var X=D[U],$=S[U];J="";var M=this.clone();M.negative=0;while(!M.isZero()){var A=M.modn($).toString(U);if(M=M.idivn($),!M.isZero())J=C[X-A.length]+A+J;else J=A+J}if(this.isZero())J="0"+J;while(J.length%Q!==0)J="0"+J;if(this.negative!==0)J="-"+J;return J}H(!1,"Base should be between 2 and 36")},V.prototype.toNumber=function(){var U=this.words[0];if(this.length===2)U+=this.words[1]*67108864;else if(this.length===3&&this.words[2]===1)U+=4503599627370496+this.words[1]*67108864;else if(this.length>2)H(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-U:U},V.prototype.toJSON=function(){return this.toString(16)},V.prototype.toBuffer=function(U,Q){return H(typeof P<"u"),this.toArrayLike(P,U,Q)},V.prototype.toArray=function(U,Q){return this.toArrayLike(Array,U,Q)},V.prototype.toArrayLike=function(U,Q,J){var Z=this.byteLength(),Y=J||Math.max(1,Z);H(Z<=Y,"byte array longer than desired length"),H(Y>0,"Requested array length <= 0"),this.strip();var K=Q==="le",W=new U(Y),G,X,$=this.clone();if(!K){for(X=0;X<Y-Z;X++)W[X]=0;for(X=0;!$.isZero();X++)G=$.andln(255),$.iushrn(8),W[Y-X-1]=G}else{for(X=0;!$.isZero();X++)G=$.andln(255),$.iushrn(8),W[X]=G;for(;X<Y;X++)W[X]=0}return W},Math.clz32)V.prototype._countBits=function(U){return 32-Math.clz32(U)};else V.prototype._countBits=function(U){var Q=U,J=0;if(Q>=4096)J+=13,Q>>>=13;if(Q>=64)J+=7,Q>>>=7;if(Q>=8)J+=4,Q>>>=4;if(Q>=2)J+=2,Q>>>=2;return J+Q};V.prototype._zeroBits=function(U){if(U===0)return 26;var Q=U,J=0;if((Q&8191)===0)J+=13,Q>>>=13;if((Q&127)===0)J+=7,Q>>>=7;if((Q&15)===0)J+=4,Q>>>=4;if((Q&3)===0)J+=2,Q>>>=2;if((Q&1)===0)J++;return J},V.prototype.bitLength=function(){var U=this.words[this.length-1],Q=this._countBits(U);return(this.length-1)*26+Q};function R(U){var Q=Array(U.bitLength());for(var J=0;J<Q.length;J++){var Z=J/26|0,Y=J%26;Q[J]=(U.words[Z]&1<<Y)>>>Y}return Q}V.prototype.zeroBits=function(){if(this.isZero())return 0;var U=0;for(var Q=0;Q<this.length;Q++){var J=this._zeroBits(this.words[Q]);if(U+=J,J!==26)break}return U},V.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},V.prototype.toTwos=function(U){if(this.negative!==0)return this.abs().inotn(U).iaddn(1);return this.clone()},V.prototype.fromTwos=function(U){if(this.testn(U-1))return this.notn(U).iaddn(1).ineg();return this.clone()},V.prototype.isNeg=function(){return this.negative!==0},V.prototype.neg=function(){return this.clone().ineg()},V.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},V.prototype.iuor=function(U){while(this.length<U.length)this.words[this.length++]=0;for(var Q=0;Q<U.length;Q++)this.words[Q]=this.words[Q]|U.words[Q];return this.strip()},V.prototype.ior=function(U){return H((this.negative|U.negative)===0),this.iuor(U)},V.prototype.or=function(U){if(this.length>U.length)return this.clone().ior(U);return U.clone().ior(this)},V.prototype.uor=function(U){if(this.length>U.length)return this.clone().iuor(U);return U.clone().iuor(this)},V.prototype.iuand=function(U){var Q;if(this.length>U.length)Q=U;else Q=this;for(var J=0;J<Q.length;J++)this.words[J]=this.words[J]&U.words[J];return this.length=Q.length,this.strip()},V.prototype.iand=function(U){return H((this.negative|U.negative)===0),this.iuand(U)},V.prototype.and=function(U){if(this.length>U.length)return this.clone().iand(U);return U.clone().iand(this)},V.prototype.uand=function(U){if(this.length>U.length)return this.clone().iuand(U);return U.clone().iuand(this)},V.prototype.iuxor=function(U){var Q,J;if(this.length>U.length)Q=this,J=U;else Q=U,J=this;for(var Z=0;Z<J.length;Z++)this.words[Z]=Q.words[Z]^J.words[Z];if(this!==Q)for(;Z<Q.length;Z++)this.words[Z]=Q.words[Z];return this.length=Q.length,this.strip()},V.prototype.ixor=function(U){return H((this.negative|U.negative)===0),this.iuxor(U)},V.prototype.xor=function(U){if(this.length>U.length)return this.clone().ixor(U);return U.clone().ixor(this)},V.prototype.uxor=function(U){if(this.length>U.length)return this.clone().iuxor(U);return U.clone().iuxor(this)},V.prototype.inotn=function(U){H(typeof U==="number"&&U>=0);var Q=Math.ceil(U/26)|0,J=U%26;if(this._expand(Q),J>0)Q--;for(var Z=0;Z<Q;Z++)this.words[Z]=~this.words[Z]&67108863;if(J>0)this.words[Z]=~this.words[Z]&67108863>>26-J;return this.strip()},V.prototype.notn=function(U){return this.clone().inotn(U)},V.prototype.setn=function(U,Q){H(typeof U==="number"&&U>=0);var J=U/26|0,Z=U%26;if(this._expand(J+1),Q)this.words[J]=this.words[J]|1<<Z;else this.words[J]=this.words[J]&~(1<<Z);return this.strip()},V.prototype.iadd=function(U){var Q;if(this.negative!==0&&U.negative===0)return this.negative=0,Q=this.isub(U),this.negative^=1,this._normSign();else if(this.negative===0&&U.negative!==0)return U.negative=0,Q=this.isub(U),U.negative=1,Q._normSign();var J,Z;if(this.length>U.length)J=this,Z=U;else J=U,Z=this;var Y=0;for(var K=0;K<Z.length;K++)Q=(J.words[K]|0)+(Z.words[K]|0)+Y,this.words[K]=Q&67108863,Y=Q>>>26;for(;Y!==0&&K<J.length;K++)Q=(J.words[K]|0)+Y,this.words[K]=Q&67108863,Y=Q>>>26;if(this.length=J.length,Y!==0)this.words[this.length]=Y,this.length++;else if(J!==this)for(;K<J.length;K++)this.words[K]=J.words[K];return this},V.prototype.add=function(U){var Q;if(U.negative!==0&&this.negative===0)return U.negative=0,Q=this.sub(U),U.negative^=1,Q;else if(U.negative===0&&this.negative!==0)return this.negative=0,Q=U.sub(this),this.negative=1,Q;if(this.length>U.length)return this.clone().iadd(U);return U.clone().iadd(this)},V.prototype.isub=function(U){if(U.negative!==0){U.negative=0;var Q=this.iadd(U);return U.negative=1,Q._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(U),this.negative=1,this._normSign();var J=this.cmp(U);if(J===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Z,Y;if(J>0)Z=this,Y=U;else Z=U,Y=this;var K=0;for(var W=0;W<Y.length;W++)Q=(Z.words[W]|0)-(Y.words[W]|0)+K,K=Q>>26,this.words[W]=Q&67108863;for(;K!==0&&W<Z.length;W++)Q=(Z.words[W]|0)+K,K=Q>>26,this.words[W]=Q&67108863;if(K===0&&W<Z.length&&Z!==this)for(;W<Z.length;W++)this.words[W]=Z.words[W];if(this.length=Math.max(this.length,W),Z!==this)this.negative=1;return this.strip()},V.prototype.sub=function(U){return this.clone().isub(U)};function v(U,Q,J){J.negative=Q.negative^U.negative;var Z=U.length+Q.length|0;J.length=Z,Z=Z-1|0;var Y=U.words[0]|0,K=Q.words[0]|0,W=Y*K,G=W&67108863,X=W/67108864|0;J.words[0]=G;for(var $=1;$<Z;$++){var M=X>>>26,A=X&67108863,j=Math.min($,Q.length-1);for(var g=Math.max(0,$-U.length+1);g<=j;g++){var p=$-g|0;Y=U.words[p]|0,K=Q.words[g]|0,W=Y*K+A,M+=W/67108864|0,A=W&67108863}J.words[$]=A|0,X=M|0}if(X!==0)J.words[$]=X|0;else J.length--;return J.strip()}var k=function(U,Q,J){var Z=U.words,Y=Q.words,K=J.words,W=0,G,X,$,M=Z[0]|0,A=M&8191,j=M>>>13,g=Z[1]|0,p=g&8191,n=g>>>13,K0=Z[2]|0,r=K0&8191,l=K0>>>13,Q0=Z[3]|0,m=Q0&8191,i=Q0>>>13,g0=Z[4]|0,f=g0&8191,h=g0>>>13,Y0=Z[5]|0,t=Y0&8191,e=Y0>>>13,L0=Z[6]|0,c=L0&8191,o=L0>>>13,N0=Z[7]|0,s=N0&8191,Z0=N0>>>13,y0=Z[8]|0,F0=y0&8191,H0=y0>>>13,n0=Z[9]|0,O0=n0&8191,C0=n0>>>13,t0=Y[0]|0,D0=t0&8191,T0=t0>>>13,TU=Y[1]|0,E0=TU&8191,k0=TU>>>13,DU=Y[2]|0,j0=DU&8191,M0=DU>>>13,CU=Y[3]|0,v0=CU&8191,S0=CU>>>13,KU=Y[4]|0,_0=KU&8191,B0=KU>>>13,OU=Y[5]|0,R0=OU&8191,N=OU>>>13,b=Y[6]|0,a=b&8191,U0=b>>>13,w0=Y[7]|0,W0=w0&8191,A0=w0>>>13,m0=Y[8]|0,q0=m0&8191,x0=m0>>>13,AU=Y[9]|0,P0=AU&8191,z0=AU>>>13;J.negative=U.negative^Q.negative,J.length=19,G=Math.imul(A,D0),X=Math.imul(A,T0),X=X+Math.imul(j,D0)|0,$=Math.imul(j,T0);var s0=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(s0>>>26)|0,s0&=67108863,G=Math.imul(p,D0),X=Math.imul(p,T0),X=X+Math.imul(n,D0)|0,$=Math.imul(n,T0),G=G+Math.imul(A,E0)|0,X=X+Math.imul(A,k0)|0,X=X+Math.imul(j,E0)|0,$=$+Math.imul(j,k0)|0;var c0=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(c0>>>26)|0,c0&=67108863,G=Math.imul(r,D0),X=Math.imul(r,T0),X=X+Math.imul(l,D0)|0,$=Math.imul(l,T0),G=G+Math.imul(p,E0)|0,X=X+Math.imul(p,k0)|0,X=X+Math.imul(n,E0)|0,$=$+Math.imul(n,k0)|0,G=G+Math.imul(A,j0)|0,X=X+Math.imul(A,M0)|0,X=X+Math.imul(j,j0)|0,$=$+Math.imul(j,M0)|0;var f0=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(f0>>>26)|0,f0&=67108863,G=Math.imul(m,D0),X=Math.imul(m,T0),X=X+Math.imul(i,D0)|0,$=Math.imul(i,T0),G=G+Math.imul(r,E0)|0,X=X+Math.imul(r,k0)|0,X=X+Math.imul(l,E0)|0,$=$+Math.imul(l,k0)|0,G=G+Math.imul(p,j0)|0,X=X+Math.imul(p,M0)|0,X=X+Math.imul(n,j0)|0,$=$+Math.imul(n,M0)|0,G=G+Math.imul(A,v0)|0,X=X+Math.imul(A,S0)|0,X=X+Math.imul(j,v0)|0,$=$+Math.imul(j,S0)|0;var l0=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(l0>>>26)|0,l0&=67108863,G=Math.imul(f,D0),X=Math.imul(f,T0),X=X+Math.imul(h,D0)|0,$=Math.imul(h,T0),G=G+Math.imul(m,E0)|0,X=X+Math.imul(m,k0)|0,X=X+Math.imul(i,E0)|0,$=$+Math.imul(i,k0)|0,G=G+Math.imul(r,j0)|0,X=X+Math.imul(r,M0)|0,X=X+Math.imul(l,j0)|0,$=$+Math.imul(l,M0)|0,G=G+Math.imul(p,v0)|0,X=X+Math.imul(p,S0)|0,X=X+Math.imul(n,v0)|0,$=$+Math.imul(n,S0)|0,G=G+Math.imul(A,_0)|0,X=X+Math.imul(A,B0)|0,X=X+Math.imul(j,_0)|0,$=$+Math.imul(j,B0)|0;var b0=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(b0>>>26)|0,b0&=67108863,G=Math.imul(t,D0),X=Math.imul(t,T0),X=X+Math.imul(e,D0)|0,$=Math.imul(e,T0),G=G+Math.imul(f,E0)|0,X=X+Math.imul(f,k0)|0,X=X+Math.imul(h,E0)|0,$=$+Math.imul(h,k0)|0,G=G+Math.imul(m,j0)|0,X=X+Math.imul(m,M0)|0,X=X+Math.imul(i,j0)|0,$=$+Math.imul(i,M0)|0,G=G+Math.imul(r,v0)|0,X=X+Math.imul(r,S0)|0,X=X+Math.imul(l,v0)|0,$=$+Math.imul(l,S0)|0,G=G+Math.imul(p,_0)|0,X=X+Math.imul(p,B0)|0,X=X+Math.imul(n,_0)|0,$=$+Math.imul(n,B0)|0,G=G+Math.imul(A,R0)|0,X=X+Math.imul(A,N)|0,X=X+Math.imul(j,R0)|0,$=$+Math.imul(j,N)|0;var r0=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(r0>>>26)|0,r0&=67108863,G=Math.imul(c,D0),X=Math.imul(c,T0),X=X+Math.imul(o,D0)|0,$=Math.imul(o,T0),G=G+Math.imul(t,E0)|0,X=X+Math.imul(t,k0)|0,X=X+Math.imul(e,E0)|0,$=$+Math.imul(e,k0)|0,G=G+Math.imul(f,j0)|0,X=X+Math.imul(f,M0)|0,X=X+Math.imul(h,j0)|0,$=$+Math.imul(h,M0)|0,G=G+Math.imul(m,v0)|0,X=X+Math.imul(m,S0)|0,X=X+Math.imul(i,v0)|0,$=$+Math.imul(i,S0)|0,G=G+Math.imul(r,_0)|0,X=X+Math.imul(r,B0)|0,X=X+Math.imul(l,_0)|0,$=$+Math.imul(l,B0)|0,G=G+Math.imul(p,R0)|0,X=X+Math.imul(p,N)|0,X=X+Math.imul(n,R0)|0,$=$+Math.imul(n,N)|0,G=G+Math.imul(A,a)|0,X=X+Math.imul(A,U0)|0,X=X+Math.imul(j,a)|0,$=$+Math.imul(j,U0)|0;var a0=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(a0>>>26)|0,a0&=67108863,G=Math.imul(s,D0),X=Math.imul(s,T0),X=X+Math.imul(Z0,D0)|0,$=Math.imul(Z0,T0),G=G+Math.imul(c,E0)|0,X=X+Math.imul(c,k0)|0,X=X+Math.imul(o,E0)|0,$=$+Math.imul(o,k0)|0,G=G+Math.imul(t,j0)|0,X=X+Math.imul(t,M0)|0,X=X+Math.imul(e,j0)|0,$=$+Math.imul(e,M0)|0,G=G+Math.imul(f,v0)|0,X=X+Math.imul(f,S0)|0,X=X+Math.imul(h,v0)|0,$=$+Math.imul(h,S0)|0,G=G+Math.imul(m,_0)|0,X=X+Math.imul(m,B0)|0,X=X+Math.imul(i,_0)|0,$=$+Math.imul(i,B0)|0,G=G+Math.imul(r,R0)|0,X=X+Math.imul(r,N)|0,X=X+Math.imul(l,R0)|0,$=$+Math.imul(l,N)|0,G=G+Math.imul(p,a)|0,X=X+Math.imul(p,U0)|0,X=X+Math.imul(n,a)|0,$=$+Math.imul(n,U0)|0,G=G+Math.imul(A,W0)|0,X=X+Math.imul(A,A0)|0,X=X+Math.imul(j,W0)|0,$=$+Math.imul(j,A0)|0;var e0=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(e0>>>26)|0,e0&=67108863,G=Math.imul(F0,D0),X=Math.imul(F0,T0),X=X+Math.imul(H0,D0)|0,$=Math.imul(H0,T0),G=G+Math.imul(s,E0)|0,X=X+Math.imul(s,k0)|0,X=X+Math.imul(Z0,E0)|0,$=$+Math.imul(Z0,k0)|0,G=G+Math.imul(c,j0)|0,X=X+Math.imul(c,M0)|0,X=X+Math.imul(o,j0)|0,$=$+Math.imul(o,M0)|0,G=G+Math.imul(t,v0)|0,X=X+Math.imul(t,S0)|0,X=X+Math.imul(e,v0)|0,$=$+Math.imul(e,S0)|0,G=G+Math.imul(f,_0)|0,X=X+Math.imul(f,B0)|0,X=X+Math.imul(h,_0)|0,$=$+Math.imul(h,B0)|0,G=G+Math.imul(m,R0)|0,X=X+Math.imul(m,N)|0,X=X+Math.imul(i,R0)|0,$=$+Math.imul(i,N)|0,G=G+Math.imul(r,a)|0,X=X+Math.imul(r,U0)|0,X=X+Math.imul(l,a)|0,$=$+Math.imul(l,U0)|0,G=G+Math.imul(p,W0)|0,X=X+Math.imul(p,A0)|0,X=X+Math.imul(n,W0)|0,$=$+Math.imul(n,A0)|0,G=G+Math.imul(A,q0)|0,X=X+Math.imul(A,x0)|0,X=X+Math.imul(j,q0)|0,$=$+Math.imul(j,x0)|0;var i0=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(i0>>>26)|0,i0&=67108863,G=Math.imul(O0,D0),X=Math.imul(O0,T0),X=X+Math.imul(C0,D0)|0,$=Math.imul(C0,T0),G=G+Math.imul(F0,E0)|0,X=X+Math.imul(F0,k0)|0,X=X+Math.imul(H0,E0)|0,$=$+Math.imul(H0,k0)|0,G=G+Math.imul(s,j0)|0,X=X+Math.imul(s,M0)|0,X=X+Math.imul(Z0,j0)|0,$=$+Math.imul(Z0,M0)|0,G=G+Math.imul(c,v0)|0,X=X+Math.imul(c,S0)|0,X=X+Math.imul(o,v0)|0,$=$+Math.imul(o,S0)|0,G=G+Math.imul(t,_0)|0,X=X+Math.imul(t,B0)|0,X=X+Math.imul(e,_0)|0,$=$+Math.imul(e,B0)|0,G=G+Math.imul(f,R0)|0,X=X+Math.imul(f,N)|0,X=X+Math.imul(h,R0)|0,$=$+Math.imul(h,N)|0,G=G+Math.imul(m,a)|0,X=X+Math.imul(m,U0)|0,X=X+Math.imul(i,a)|0,$=$+Math.imul(i,U0)|0,G=G+Math.imul(r,W0)|0,X=X+Math.imul(r,A0)|0,X=X+Math.imul(l,W0)|0,$=$+Math.imul(l,A0)|0,G=G+Math.imul(p,q0)|0,X=X+Math.imul(p,x0)|0,X=X+Math.imul(n,q0)|0,$=$+Math.imul(n,x0)|0,G=G+Math.imul(A,P0)|0,X=X+Math.imul(A,z0)|0,X=X+Math.imul(j,P0)|0,$=$+Math.imul(j,z0)|0;var UU=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(UU>>>26)|0,UU&=67108863,G=Math.imul(O0,E0),X=Math.imul(O0,k0),X=X+Math.imul(C0,E0)|0,$=Math.imul(C0,k0),G=G+Math.imul(F0,j0)|0,X=X+Math.imul(F0,M0)|0,X=X+Math.imul(H0,j0)|0,$=$+Math.imul(H0,M0)|0,G=G+Math.imul(s,v0)|0,X=X+Math.imul(s,S0)|0,X=X+Math.imul(Z0,v0)|0,$=$+Math.imul(Z0,S0)|0,G=G+Math.imul(c,_0)|0,X=X+Math.imul(c,B0)|0,X=X+Math.imul(o,_0)|0,$=$+Math.imul(o,B0)|0,G=G+Math.imul(t,R0)|0,X=X+Math.imul(t,N)|0,X=X+Math.imul(e,R0)|0,$=$+Math.imul(e,N)|0,G=G+Math.imul(f,a)|0,X=X+Math.imul(f,U0)|0,X=X+Math.imul(h,a)|0,$=$+Math.imul(h,U0)|0,G=G+Math.imul(m,W0)|0,X=X+Math.imul(m,A0)|0,X=X+Math.imul(i,W0)|0,$=$+Math.imul(i,A0)|0,G=G+Math.imul(r,q0)|0,X=X+Math.imul(r,x0)|0,X=X+Math.imul(l,q0)|0,$=$+Math.imul(l,x0)|0,G=G+Math.imul(p,P0)|0,X=X+Math.imul(p,z0)|0,X=X+Math.imul(n,P0)|0,$=$+Math.imul(n,z0)|0;var XU=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(XU>>>26)|0,XU&=67108863,G=Math.imul(O0,j0),X=Math.imul(O0,M0),X=X+Math.imul(C0,j0)|0,$=Math.imul(C0,M0),G=G+Math.imul(F0,v0)|0,X=X+Math.imul(F0,S0)|0,X=X+Math.imul(H0,v0)|0,$=$+Math.imul(H0,S0)|0,G=G+Math.imul(s,_0)|0,X=X+Math.imul(s,B0)|0,X=X+Math.imul(Z0,_0)|0,$=$+Math.imul(Z0,B0)|0,G=G+Math.imul(c,R0)|0,X=X+Math.imul(c,N)|0,X=X+Math.imul(o,R0)|0,$=$+Math.imul(o,N)|0,G=G+Math.imul(t,a)|0,X=X+Math.imul(t,U0)|0,X=X+Math.imul(e,a)|0,$=$+Math.imul(e,U0)|0,G=G+Math.imul(f,W0)|0,X=X+Math.imul(f,A0)|0,X=X+Math.imul(h,W0)|0,$=$+Math.imul(h,A0)|0,G=G+Math.imul(m,q0)|0,X=X+Math.imul(m,x0)|0,X=X+Math.imul(i,q0)|0,$=$+Math.imul(i,x0)|0,G=G+Math.imul(r,P0)|0,X=X+Math.imul(r,z0)|0,X=X+Math.imul(l,P0)|0,$=$+Math.imul(l,z0)|0;var ZU=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(ZU>>>26)|0,ZU&=67108863,G=Math.imul(O0,v0),X=Math.imul(O0,S0),X=X+Math.imul(C0,v0)|0,$=Math.imul(C0,S0),G=G+Math.imul(F0,_0)|0,X=X+Math.imul(F0,B0)|0,X=X+Math.imul(H0,_0)|0,$=$+Math.imul(H0,B0)|0,G=G+Math.imul(s,R0)|0,X=X+Math.imul(s,N)|0,X=X+Math.imul(Z0,R0)|0,$=$+Math.imul(Z0,N)|0,G=G+Math.imul(c,a)|0,X=X+Math.imul(c,U0)|0,X=X+Math.imul(o,a)|0,$=$+Math.imul(o,U0)|0,G=G+Math.imul(t,W0)|0,X=X+Math.imul(t,A0)|0,X=X+Math.imul(e,W0)|0,$=$+Math.imul(e,A0)|0,G=G+Math.imul(f,q0)|0,X=X+Math.imul(f,x0)|0,X=X+Math.imul(h,q0)|0,$=$+Math.imul(h,x0)|0,G=G+Math.imul(m,P0)|0,X=X+Math.imul(m,z0)|0,X=X+Math.imul(i,P0)|0,$=$+Math.imul(i,z0)|0;var QU=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(QU>>>26)|0,QU&=67108863,G=Math.imul(O0,_0),X=Math.imul(O0,B0),X=X+Math.imul(C0,_0)|0,$=Math.imul(C0,B0),G=G+Math.imul(F0,R0)|0,X=X+Math.imul(F0,N)|0,X=X+Math.imul(H0,R0)|0,$=$+Math.imul(H0,N)|0,G=G+Math.imul(s,a)|0,X=X+Math.imul(s,U0)|0,X=X+Math.imul(Z0,a)|0,$=$+Math.imul(Z0,U0)|0,G=G+Math.imul(c,W0)|0,X=X+Math.imul(c,A0)|0,X=X+Math.imul(o,W0)|0,$=$+Math.imul(o,A0)|0,G=G+Math.imul(t,q0)|0,X=X+Math.imul(t,x0)|0,X=X+Math.imul(e,q0)|0,$=$+Math.imul(e,x0)|0,G=G+Math.imul(f,P0)|0,X=X+Math.imul(f,z0)|0,X=X+Math.imul(h,P0)|0,$=$+Math.imul(h,z0)|0;var YU=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(YU>>>26)|0,YU&=67108863,G=Math.imul(O0,R0),X=Math.imul(O0,N),X=X+Math.imul(C0,R0)|0,$=Math.imul(C0,N),G=G+Math.imul(F0,a)|0,X=X+Math.imul(F0,U0)|0,X=X+Math.imul(H0,a)|0,$=$+Math.imul(H0,U0)|0,G=G+Math.imul(s,W0)|0,X=X+Math.imul(s,A0)|0,X=X+Math.imul(Z0,W0)|0,$=$+Math.imul(Z0,A0)|0,G=G+Math.imul(c,q0)|0,X=X+Math.imul(c,x0)|0,X=X+Math.imul(o,q0)|0,$=$+Math.imul(o,x0)|0,G=G+Math.imul(t,P0)|0,X=X+Math.imul(t,z0)|0,X=X+Math.imul(e,P0)|0,$=$+Math.imul(e,z0)|0;var JU=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(JU>>>26)|0,JU&=67108863,G=Math.imul(O0,a),X=Math.imul(O0,U0),X=X+Math.imul(C0,a)|0,$=Math.imul(C0,U0),G=G+Math.imul(F0,W0)|0,X=X+Math.imul(F0,A0)|0,X=X+Math.imul(H0,W0)|0,$=$+Math.imul(H0,A0)|0,G=G+Math.imul(s,q0)|0,X=X+Math.imul(s,x0)|0,X=X+Math.imul(Z0,q0)|0,$=$+Math.imul(Z0,x0)|0,G=G+Math.imul(c,P0)|0,X=X+Math.imul(c,z0)|0,X=X+Math.imul(o,P0)|0,$=$+Math.imul(o,z0)|0;var VU=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(VU>>>26)|0,VU&=67108863,G=Math.imul(O0,W0),X=Math.imul(O0,A0),X=X+Math.imul(C0,W0)|0,$=Math.imul(C0,A0),G=G+Math.imul(F0,q0)|0,X=X+Math.imul(F0,x0)|0,X=X+Math.imul(H0,q0)|0,$=$+Math.imul(H0,x0)|0,G=G+Math.imul(s,P0)|0,X=X+Math.imul(s,z0)|0,X=X+Math.imul(Z0,P0)|0,$=$+Math.imul(Z0,z0)|0;var GU=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(GU>>>26)|0,GU&=67108863,G=Math.imul(O0,q0),X=Math.imul(O0,x0),X=X+Math.imul(C0,q0)|0,$=Math.imul(C0,x0),G=G+Math.imul(F0,P0)|0,X=X+Math.imul(F0,z0)|0,X=X+Math.imul(H0,P0)|0,$=$+Math.imul(H0,z0)|0;var IU=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(IU>>>26)|0,IU&=67108863,G=Math.imul(O0,P0),X=Math.imul(O0,z0),X=X+Math.imul(C0,P0)|0,$=Math.imul(C0,z0);var $U=(W+G|0)+((X&8191)<<13)|0;if(W=($+(X>>>13)|0)+($U>>>26)|0,$U&=67108863,K[0]=s0,K[1]=c0,K[2]=f0,K[3]=l0,K[4]=b0,K[5]=r0,K[6]=a0,K[7]=e0,K[8]=i0,K[9]=UU,K[10]=XU,K[11]=ZU,K[12]=QU,K[13]=YU,K[14]=JU,K[15]=VU,K[16]=GU,K[17]=IU,K[18]=$U,W!==0)K[19]=W,J.length++;return J};if(!Math.imul)k=v;function B(U,Q,J){J.negative=Q.negative^U.negative,J.length=U.length+Q.length;var Z=0,Y=0;for(var K=0;K<J.length-1;K++){var W=Y;Y=0;var G=Z&67108863,X=Math.min(K,Q.length-1);for(var $=Math.max(0,K-U.length+1);$<=X;$++){var M=K-$,A=U.words[M]|0,j=Q.words[$]|0,g=A*j,p=g&67108863;W=W+(g/67108864|0)|0,p=p+G|0,G=p&67108863,W=W+(p>>>26)|0,Y+=W>>>26,W&=67108863}J.words[K]=G,Z=W,W=Y}if(Z!==0)J.words[K]=Z;else J.length--;return J.strip()}function _(U,Q,J){var Z=new x;return Z.mulp(U,Q,J)}V.prototype.mulTo=function(U,Q){var J,Z=this.length+U.length;if(this.length===10&&U.length===10)J=k(this,U,Q);else if(Z<63)J=v(this,U,Q);else if(Z<1024)J=B(this,U,Q);else J=_(this,U,Q);return J};function x(U,Q){this.x=U,this.y=Q}x.prototype.makeRBT=function(U){var Q=Array(U),J=V.prototype._countBits(U)-1;for(var Z=0;Z<U;Z++)Q[Z]=this.revBin(Z,J,U);return Q},x.prototype.revBin=function(U,Q,J){if(U===0||U===J-1)return U;var Z=0;for(var Y=0;Y<Q;Y++)Z|=(U&1)<<Q-Y-1,U>>=1;return Z},x.prototype.permute=function(U,Q,J,Z,Y,K){for(var W=0;W<K;W++)Z[W]=Q[U[W]],Y[W]=J[U[W]]},x.prototype.transform=function(U,Q,J,Z,Y,K){this.permute(K,U,Q,J,Z,Y);for(var W=1;W<Y;W<<=1){var G=W<<1,X=Math.cos(2*Math.PI/G),$=Math.sin(2*Math.PI/G);for(var M=0;M<Y;M+=G){var A=X,j=$;for(var g=0;g<W;g++){var p=J[M+g],n=Z[M+g],K0=J[M+g+W],r=Z[M+g+W],l=A*K0-j*r;if(r=A*r+j*K0,K0=l,J[M+g]=p+K0,Z[M+g]=n+r,J[M+g+W]=p-K0,Z[M+g+W]=n-r,g!==G)l=X*A-$*j,j=X*j+$*A,A=l}}}},x.prototype.guessLen13b=function(U,Q){var J=Math.max(Q,U)|1,Z=J&1,Y=0;for(J=J/2|0;J;J=J>>>1)Y++;return 1<<Y+1+Z},x.prototype.conjugate=function(U,Q,J){if(J<=1)return;for(var Z=0;Z<J/2;Z++){var Y=U[Z];U[Z]=U[J-Z-1],U[J-Z-1]=Y,Y=Q[Z],Q[Z]=-Q[J-Z-1],Q[J-Z-1]=-Y}},x.prototype.normalize13b=function(U,Q){var J=0;for(var Z=0;Z<Q/2;Z++){var Y=Math.round(U[2*Z+1]/Q)*8192+Math.round(U[2*Z]/Q)+J;if(U[Z]=Y&67108863,Y<67108864)J=0;else J=Y/67108864|0}return U},x.prototype.convert13b=function(U,Q,J,Z){var Y=0;for(var K=0;K<Q;K++)Y=Y+(U[K]|0),J[2*K]=Y&8191,Y=Y>>>13,J[2*K+1]=Y&8191,Y=Y>>>13;for(K=2*Q;K<Z;++K)J[K]=0;H(Y===0),H((Y&-8192)===0)},x.prototype.stub=function(U){var Q=Array(U);for(var J=0;J<U;J++)Q[J]=0;return Q},x.prototype.mulp=function(U,Q,J){var Z=2*this.guessLen13b(U.length,Q.length),Y=this.makeRBT(Z),K=this.stub(Z),W=Array(Z),G=Array(Z),X=Array(Z),$=Array(Z),M=Array(Z),A=Array(Z),j=J.words;j.length=Z,this.convert13b(U.words,U.length,W,Z),this.convert13b(Q.words,Q.length,$,Z),this.transform(W,K,G,X,Z,Y),this.transform($,K,M,A,Z,Y);for(var g=0;g<Z;g++){var p=G[g]*M[g]-X[g]*A[g];X[g]=G[g]*A[g]+X[g]*M[g],G[g]=p}return this.conjugate(G,X,Z),this.transform(G,X,j,K,Z,Y),this.conjugate(j,K,Z),this.normalize13b(j,Z),J.negative=U.negative^Q.negative,J.length=U.length+Q.length,J.strip()},V.prototype.mul=function(U){var Q=new V(null);return Q.words=Array(this.length+U.length),this.mulTo(U,Q)},V.prototype.mulf=function(U){var Q=new V(null);return Q.words=Array(this.length+U.length),_(this,U,Q)},V.prototype.imul=function(U){return this.clone().mulTo(U,this)},V.prototype.imuln=function(U){H(typeof U==="number"),H(U<67108864);var Q=0;for(var J=0;J<this.length;J++){var Z=(this.words[J]|0)*U,Y=(Z&67108863)+(Q&67108863);Q>>=26,Q+=Z/67108864|0,Q+=Y>>>26,this.words[J]=Y&67108863}if(Q!==0)this.words[J]=Q,this.length++;return this.length=U===0?1:this.length,this},V.prototype.muln=function(U){return this.clone().imuln(U)},V.prototype.sqr=function(){return this.mul(this)},V.prototype.isqr=function(){return this.imul(this.clone())},V.prototype.pow=function(U){var Q=R(U);if(Q.length===0)return new V(1);var J=this;for(var Z=0;Z<Q.length;Z++,J=J.sqr())if(Q[Z]!==0)break;if(++Z<Q.length)for(var Y=J.sqr();Z<Q.length;Z++,Y=Y.sqr()){if(Q[Z]===0)continue;J=J.mul(Y)}return J},V.prototype.iushln=function(U){H(typeof U==="number"&&U>=0);var Q=U%26,J=(U-Q)/26,Z=67108863>>>26-Q<<26-Q,Y;if(Q!==0){var K=0;for(Y=0;Y<this.length;Y++){var W=this.words[Y]&Z,G=(this.words[Y]|0)-W<<Q;this.words[Y]=G|K,K=W>>>26-Q}if(K)this.words[Y]=K,this.length++}if(J!==0){for(Y=this.length-1;Y>=0;Y--)this.words[Y+J]=this.words[Y];for(Y=0;Y<J;Y++)this.words[Y]=0;this.length+=J}return this.strip()},V.prototype.ishln=function(U){return H(this.negative===0),this.iushln(U)},V.prototype.iushrn=function(U,Q,J){H(typeof U==="number"&&U>=0);var Z;if(Q)Z=(Q-Q%26)/26;else Z=0;var Y=U%26,K=Math.min((U-Y)/26,this.length),W=67108863^67108863>>>Y<<Y,G=J;if(Z-=K,Z=Math.max(0,Z),G){for(var X=0;X<K;X++)G.words[X]=this.words[X];G.length=K}if(K===0);else if(this.length>K){this.length-=K;for(X=0;X<this.length;X++)this.words[X]=this.words[X+K]}else this.words[0]=0,this.length=1;var $=0;for(X=this.length-1;X>=0&&($!==0||X>=Z);X--){var M=this.words[X]|0;this.words[X]=$<<26-Y|M>>>Y,$=M&W}if(G&&$!==0)G.words[G.length++]=$;if(this.length===0)this.words[0]=0,this.length=1;return this.strip()},V.prototype.ishrn=function(U,Q,J){return H(this.negative===0),this.iushrn(U,Q,J)},V.prototype.shln=function(U){return this.clone().ishln(U)},V.prototype.ushln=function(U){return this.clone().iushln(U)},V.prototype.shrn=function(U){return this.clone().ishrn(U)},V.prototype.ushrn=function(U){return this.clone().iushrn(U)},V.prototype.testn=function(U){H(typeof U==="number"&&U>=0);var Q=U%26,J=(U-Q)/26,Z=1<<Q;if(this.length<=J)return!1;var Y=this.words[J];return!!(Y&Z)},V.prototype.imaskn=function(U){H(typeof U==="number"&&U>=0);var Q=U%26,J=(U-Q)/26;if(H(this.negative===0,"imaskn works only with positive numbers"),this.length<=J)return this;if(Q!==0)J++;if(this.length=Math.min(J,this.length),Q!==0){var Z=67108863^67108863>>>Q<<Q;this.words[this.length-1]&=Z}return this.strip()},V.prototype.maskn=function(U){return this.clone().imaskn(U)},V.prototype.iaddn=function(U){if(H(typeof U==="number"),H(U<67108864),U<0)return this.isubn(-U);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<U)return this.words[0]=U-(this.words[0]|0),this.negative=0,this;return this.negative=0,this.isubn(U),this.negative=1,this}return this._iaddn(U)},V.prototype._iaddn=function(U){this.words[0]+=U;for(var Q=0;Q<this.length&&this.words[Q]>=67108864;Q++)if(this.words[Q]-=67108864,Q===this.length-1)this.words[Q+1]=1;else this.words[Q+1]++;return this.length=Math.max(this.length,Q+1),this},V.prototype.isubn=function(U){if(H(typeof U==="number"),H(U<67108864),U<0)return this.iaddn(-U);if(this.negative!==0)return this.negative=0,this.iaddn(U),this.negative=1,this;if(this.words[0]-=U,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Q=0;Q<this.length&&this.words[Q]<0;Q++)this.words[Q]+=67108864,this.words[Q+1]-=1;return this.strip()},V.prototype.addn=function(U){return this.clone().iaddn(U)},V.prototype.subn=function(U){return this.clone().isubn(U)},V.prototype.iabs=function(){return this.negative=0,this},V.prototype.abs=function(){return this.clone().iabs()},V.prototype._ishlnsubmul=function(U,Q,J){var Z=U.length+J,Y;this._expand(Z);var K,W=0;for(Y=0;Y<U.length;Y++){K=(this.words[Y+J]|0)+W;var G=(U.words[Y]|0)*Q;K-=G&67108863,W=(K>>26)-(G/67108864|0),this.words[Y+J]=K&67108863}for(;Y<this.length-J;Y++)K=(this.words[Y+J]|0)+W,W=K>>26,this.words[Y+J]=K&67108863;if(W===0)return this.strip();H(W===-1),W=0;for(Y=0;Y<this.length;Y++)K=-(this.words[Y]|0)+W,W=K>>26,this.words[Y]=K&67108863;return this.negative=1,this.strip()},V.prototype._wordDiv=function(U,Q){var J=this.length-U.length,Z=this.clone(),Y=U,K=Y.words[Y.length-1]|0,W=this._countBits(K);if(J=26-W,J!==0)Y=Y.ushln(J),Z.iushln(J),K=Y.words[Y.length-1]|0;var G=Z.length-Y.length,X;if(Q!=="mod"){X=new V(null),X.length=G+1,X.words=Array(X.length);for(var $=0;$<X.length;$++)X.words[$]=0}var M=Z.clone()._ishlnsubmul(Y,1,G);if(M.negative===0){if(Z=M,X)X.words[G]=1}for(var A=G-1;A>=0;A--){var j=(Z.words[Y.length+A]|0)*67108864+(Z.words[Y.length+A-1]|0);j=Math.min(j/K|0,67108863),Z._ishlnsubmul(Y,j,A);while(Z.negative!==0)if(j--,Z.negative=0,Z._ishlnsubmul(Y,1,A),!Z.isZero())Z.negative^=1;if(X)X.words[A]=j}if(X)X.strip();if(Z.strip(),Q!=="div"&&J!==0)Z.iushrn(J);return{div:X||null,mod:Z}},V.prototype.divmod=function(U,Q,J){if(H(!U.isZero()),this.isZero())return{div:new V(0),mod:new V(0)};var Z,Y,K;if(this.negative!==0&&U.negative===0){if(K=this.neg().divmod(U,Q),Q!=="mod")Z=K.div.neg();if(Q!=="div"){if(Y=K.mod.neg(),J&&Y.negative!==0)Y.iadd(U)}return{div:Z,mod:Y}}if(this.negative===0&&U.negative!==0){if(K=this.divmod(U.neg(),Q),Q!=="mod")Z=K.div.neg();return{div:Z,mod:K.mod}}if((this.negative&U.negative)!==0){if(K=this.neg().divmod(U.neg(),Q),Q!=="div"){if(Y=K.mod.neg(),J&&Y.negative!==0)Y.isub(U)}return{div:K.div,mod:Y}}if(U.length>this.length||this.cmp(U)<0)return{div:new V(0),mod:this};if(U.length===1){if(Q==="div")return{div:this.divn(U.words[0]),mod:null};if(Q==="mod")return{div:null,mod:new V(this.modn(U.words[0]))};return{div:this.divn(U.words[0]),mod:new V(this.modn(U.words[0]))}}return this._wordDiv(U,Q)},V.prototype.div=function(U){return this.divmod(U,"div",!1).div},V.prototype.mod=function(U){return this.divmod(U,"mod",!1).mod},V.prototype.umod=function(U){return this.divmod(U,"mod",!0).mod},V.prototype.divRound=function(U){var Q=this.divmod(U);if(Q.mod.isZero())return Q.div;var J=Q.div.negative!==0?Q.mod.isub(U):Q.mod,Z=U.ushrn(1),Y=U.andln(1),K=J.cmp(Z);if(K<0||Y===1&&K===0)return Q.div;return Q.div.negative!==0?Q.div.isubn(1):Q.div.iaddn(1)},V.prototype.modn=function(U){H(U<=67108863);var Q=67108864%U,J=0;for(var Z=this.length-1;Z>=0;Z--)J=(Q*J+(this.words[Z]|0))%U;return J},V.prototype.idivn=function(U){H(U<=67108863);var Q=0;for(var J=this.length-1;J>=0;J--){var Z=(this.words[J]|0)+Q*67108864;this.words[J]=Z/U|0,Q=Z%U}return this.strip()},V.prototype.divn=function(U){return this.clone().idivn(U)},V.prototype.egcd=function(U){H(U.negative===0),H(!U.isZero());var Q=this,J=U.clone();if(Q.negative!==0)Q=Q.umod(U);else Q=Q.clone();var Z=new V(1),Y=new V(0),K=new V(0),W=new V(1),G=0;while(Q.isEven()&&J.isEven())Q.iushrn(1),J.iushrn(1),++G;var X=J.clone(),$=Q.clone();while(!Q.isZero()){for(var M=0,A=1;(Q.words[0]&A)===0&&M<26;++M,A<<=1);if(M>0){Q.iushrn(M);while(M-- >0){if(Z.isOdd()||Y.isOdd())Z.iadd(X),Y.isub($);Z.iushrn(1),Y.iushrn(1)}}for(var j=0,g=1;(J.words[0]&g)===0&&j<26;++j,g<<=1);if(j>0){J.iushrn(j);while(j-- >0){if(K.isOdd()||W.isOdd())K.iadd(X),W.isub($);K.iushrn(1),W.iushrn(1)}}if(Q.cmp(J)>=0)Q.isub(J),Z.isub(K),Y.isub(W);else J.isub(Q),K.isub(Z),W.isub(Y)}return{a:K,b:W,gcd:J.iushln(G)}},V.prototype._invmp=function(U){H(U.negative===0),H(!U.isZero());var Q=this,J=U.clone();if(Q.negative!==0)Q=Q.umod(U);else Q=Q.clone();var Z=new V(1),Y=new V(0),K=J.clone();while(Q.cmpn(1)>0&&J.cmpn(1)>0){for(var W=0,G=1;(Q.words[0]&G)===0&&W<26;++W,G<<=1);if(W>0){Q.iushrn(W);while(W-- >0){if(Z.isOdd())Z.iadd(K);Z.iushrn(1)}}for(var X=0,$=1;(J.words[0]&$)===0&&X<26;++X,$<<=1);if(X>0){J.iushrn(X);while(X-- >0){if(Y.isOdd())Y.iadd(K);Y.iushrn(1)}}if(Q.cmp(J)>=0)Q.isub(J),Z.isub(Y);else J.isub(Q),Y.isub(Z)}var M;if(Q.cmpn(1)===0)M=Z;else M=Y;if(M.cmpn(0)<0)M.iadd(U);return M},V.prototype.gcd=function(U){if(this.isZero())return U.abs();if(U.isZero())return this.abs();var Q=this.clone(),J=U.clone();Q.negative=0,J.negative=0;for(var Z=0;Q.isEven()&&J.isEven();Z++)Q.iushrn(1),J.iushrn(1);do{while(Q.isEven())Q.iushrn(1);while(J.isEven())J.iushrn(1);var Y=Q.cmp(J);if(Y<0){var K=Q;Q=J,J=K}else if(Y===0||J.cmpn(1)===0)break;Q.isub(J)}while(!0);return J.iushln(Z)},V.prototype.invm=function(U){return this.egcd(U).a.umod(U)},V.prototype.isEven=function(){return(this.words[0]&1)===0},V.prototype.isOdd=function(){return(this.words[0]&1)===1},V.prototype.andln=function(U){return this.words[0]&U},V.prototype.bincn=function(U){H(typeof U==="number");var Q=U%26,J=(U-Q)/26,Z=1<<Q;if(this.length<=J)return this._expand(J+1),this.words[J]|=Z,this;var Y=Z;for(var K=J;Y!==0&&K<this.length;K++){var W=this.words[K]|0;W+=Y,Y=W>>>26,W&=67108863,this.words[K]=W}if(Y!==0)this.words[K]=Y,this.length++;return this},V.prototype.isZero=function(){return this.length===1&&this.words[0]===0},V.prototype.cmpn=function(U){var Q=U<0;if(this.negative!==0&&!Q)return-1;if(this.negative===0&&Q)return 1;this.strip();var J;if(this.length>1)J=1;else{if(Q)U=-U;H(U<=67108863,"Number is too big");var Z=this.words[0]|0;J=Z===U?0:Z<U?-1:1}if(this.negative!==0)return-J|0;return J},V.prototype.cmp=function(U){if(this.negative!==0&&U.negative===0)return-1;if(this.negative===0&&U.negative!==0)return 1;var Q=this.ucmp(U);if(this.negative!==0)return-Q|0;return Q},V.prototype.ucmp=function(U){if(this.length>U.length)return 1;if(this.length<U.length)return-1;var Q=0;for(var J=this.length-1;J>=0;J--){var Z=this.words[J]|0,Y=U.words[J]|0;if(Z===Y)continue;if(Z<Y)Q=-1;else if(Z>Y)Q=1;break}return Q},V.prototype.gtn=function(U){return this.cmpn(U)===1},V.prototype.gt=function(U){return this.cmp(U)===1},V.prototype.gten=function(U){return this.cmpn(U)>=0},V.prototype.gte=function(U){return this.cmp(U)>=0},V.prototype.ltn=function(U){return this.cmpn(U)===-1},V.prototype.lt=function(U){return this.cmp(U)===-1},V.prototype.lten=function(U){return this.cmpn(U)<=0},V.prototype.lte=function(U){return this.cmp(U)<=0},V.prototype.eqn=function(U){return this.cmpn(U)===0},V.prototype.eq=function(U){return this.cmp(U)===0},V.red=function(U){return new u(U)},V.prototype.toRed=function(U){return H(!this.red,"Already a number in reduction context"),H(this.negative===0,"red works only with positives"),U.convertTo(this)._forceRed(U)},V.prototype.fromRed=function(){return H(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},V.prototype._forceRed=function(U){return this.red=U,this},V.prototype.forceRed=function(U){return H(!this.red,"Already a number in reduction context"),this._forceRed(U)},V.prototype.redAdd=function(U){return H(this.red,"redAdd works only with red numbers"),this.red.add(this,U)},V.prototype.redIAdd=function(U){return H(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,U)},V.prototype.redSub=function(U){return H(this.red,"redSub works only with red numbers"),this.red.sub(this,U)},V.prototype.redISub=function(U){return H(this.red,"redISub works only with red numbers"),this.red.isub(this,U)},V.prototype.redShl=function(U){return H(this.red,"redShl works only with red numbers"),this.red.shl(this,U)},V.prototype.redMul=function(U){return H(this.red,"redMul works only with red numbers"),this.red._verify2(this,U),this.red.mul(this,U)},V.prototype.redIMul=function(U){return H(this.red,"redMul works only with red numbers"),this.red._verify2(this,U),this.red.imul(this,U)},V.prototype.redSqr=function(){return H(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},V.prototype.redISqr=function(){return H(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},V.prototype.redSqrt=function(){return H(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},V.prototype.redInvm=function(){return H(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},V.prototype.redNeg=function(){return H(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},V.prototype.redPow=function(U){return H(this.red&&!U.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,U)};var w={k256:null,p224:null,p192:null,p25519:null};function y(U,Q){this.name=U,this.p=new V(Q,16),this.n=this.p.bitLength(),this.k=new V(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}y.prototype._tmp=function(){var U=new V(null);return U.words=Array(Math.ceil(this.n/13)),U},y.prototype.ireduce=function(U){var Q=U,J;do this.split(Q,this.tmp),Q=this.imulK(Q),Q=Q.iadd(this.tmp),J=Q.bitLength();while(J>this.n);var Z=J<this.n?-1:Q.ucmp(this.p);if(Z===0)Q.words[0]=0,Q.length=1;else if(Z>0)Q.isub(this.p);else if(Q.strip!==void 0)Q.strip();else Q._strip();return Q},y.prototype.split=function(U,Q){U.iushrn(this.n,0,Q)},y.prototype.imulK=function(U){return U.imul(this.k)};function d(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}E(d,y),d.prototype.split=function(U,Q){var J=4194303,Z=Math.min(U.length,9);for(var Y=0;Y<Z;Y++)Q.words[Y]=U.words[Y];if(Q.length=Z,U.length<=9){U.words[0]=0,U.length=1;return}var K=U.words[9];Q.words[Q.length++]=K&J;for(Y=10;Y<U.length;Y++){var W=U.words[Y]|0;U.words[Y-10]=(W&J)<<4|K>>>22,K=W}if(K>>>=22,U.words[Y-10]=K,K===0&&U.length>10)U.length-=10;else U.length-=9},d.prototype.imulK=function(U){U.words[U.length]=0,U.words[U.length+1]=0,U.length+=2;var Q=0;for(var J=0;J<U.length;J++){var Z=U.words[J]|0;Q+=Z*977,U.words[J]=Q&67108863,Q=Z*64+(Q/67108864|0)}if(U.words[U.length-1]===0){if(U.length--,U.words[U.length-1]===0)U.length--}return U};function J0(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}E(J0,y);function I0(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}E(I0,y);function V0(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}E(V0,y),V0.prototype.imulK=function(U){var Q=0;for(var J=0;J<U.length;J++){var Z=(U.words[J]|0)*19+Q,Y=Z&67108863;Z>>>=26,U.words[J]=Y,Q=Z}if(Q!==0)U.words[U.length++]=Q;return U},V._prime=function(U){if(w[U])return w[U];var Q;if(U==="k256")Q=new d;else if(U==="p224")Q=new J0;else if(U==="p192")Q=new I0;else if(U==="p25519")Q=new V0;else throw Error("Unknown prime "+U);return w[U]=Q,Q};function u(U){if(typeof U==="string"){var Q=V._prime(U);this.m=Q.p,this.prime=Q}else H(U.gtn(1),"modulus must be greater than 1"),this.m=U,this.prime=null}u.prototype._verify1=function(U){H(U.negative===0,"red works only with positives"),H(U.red,"red works only with red numbers")},u.prototype._verify2=function(U,Q){H((U.negative|Q.negative)===0,"red works only with positives"),H(U.red&&U.red===Q.red,"red works only with red numbers")},u.prototype.imod=function(U){if(this.prime)return this.prime.ireduce(U)._forceRed(this);return U.umod(this.m)._forceRed(this)},u.prototype.neg=function(U){if(U.isZero())return U.clone();return this.m.sub(U)._forceRed(this)},u.prototype.add=function(U,Q){this._verify2(U,Q);var J=U.add(Q);if(J.cmp(this.m)>=0)J.isub(this.m);return J._forceRed(this)},u.prototype.iadd=function(U,Q){this._verify2(U,Q);var J=U.iadd(Q);if(J.cmp(this.m)>=0)J.isub(this.m);return J},u.prototype.sub=function(U,Q){this._verify2(U,Q);var J=U.sub(Q);if(J.cmpn(0)<0)J.iadd(this.m);return J._forceRed(this)},u.prototype.isub=function(U,Q){this._verify2(U,Q);var J=U.isub(Q);if(J.cmpn(0)<0)J.iadd(this.m);return J},u.prototype.shl=function(U,Q){return this._verify1(U),this.imod(U.ushln(Q))},u.prototype.imul=function(U,Q){return this._verify2(U,Q),this.imod(U.imul(Q))},u.prototype.mul=function(U,Q){return this._verify2(U,Q),this.imod(U.mul(Q))},u.prototype.isqr=function(U){return this.imul(U,U.clone())},u.prototype.sqr=function(U){return this.mul(U,U)},u.prototype.sqrt=function(U){if(U.isZero())return U.clone();var Q=this.m.andln(3);if(H(Q%2===1),Q===3){var J=this.m.add(new V(1)).iushrn(2);return this.pow(U,J)}var Z=this.m.subn(1),Y=0;while(!Z.isZero()&&Z.andln(1)===0)Y++,Z.iushrn(1);H(!Z.isZero());var K=new V(1).toRed(this),W=K.redNeg(),G=this.m.subn(1).iushrn(1),X=this.m.bitLength();X=new V(2*X*X).toRed(this);while(this.pow(X,G).cmp(W)!==0)X.redIAdd(W);var $=this.pow(X,Z),M=this.pow(U,Z.addn(1).iushrn(1)),A=this.pow(U,Z),j=Y;while(A.cmp(K)!==0){var g=A;for(var p=0;g.cmp(K)!==0;p++)g=g.redSqr();H(p<j);var n=this.pow($,new V(1).iushln(j-p-1));M=M.redMul(n),$=n.redSqr(),A=A.redMul($),j=p}return M},u.prototype.invm=function(U){var Q=U._invmp(this.m);if(Q.negative!==0)return Q.negative=0,this.imod(Q).redNeg();else return this.imod(Q)},u.prototype.pow=function(U,Q){if(Q.isZero())return new V(1).toRed(this);if(Q.cmpn(1)===0)return U.clone();var J=4,Z=Array(1<<J);Z[0]=new V(1).toRed(this),Z[1]=U;for(var Y=2;Y<Z.length;Y++)Z[Y]=this.mul(Z[Y-1],U);var K=Z[0],W=0,G=0,X=Q.bitLength()%26;if(X===0)X=26;for(Y=Q.length-1;Y>=0;Y--){var $=Q.words[Y];for(var M=X-1;M>=0;M--){var A=$>>M&1;if(K!==Z[0])K=this.sqr(K);if(A===0&&W===0){G=0;continue}if(W<<=1,W|=A,G++,G!==J&&(Y!==0||M!==0))continue;K=this.mul(K,Z[W]),G=0,W=0}X=26}return K},u.prototype.convertTo=function(U){var Q=U.umod(this.m);return Q===U?Q.clone():Q},u.prototype.convertFrom=function(U){var Q=U.clone();return Q.red=null,Q},V.mont=function(U){return new X0(U)};function X0(U){if(u.call(this,U),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new V(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)}E(X0,u),X0.prototype.convertTo=function(U){return this.imod(U.ushln(this.shift))},X0.prototype.convertFrom=function(U){var Q=this.imod(U.mul(this.rinv));return Q.red=null,Q},X0.prototype.imul=function(U,Q){if(U.isZero()||Q.isZero())return U.words[0]=0,U.length=1,U;var J=U.imul(Q),Z=J.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Y=J.isub(Z).iushrn(this.shift),K=Y;if(Y.cmp(this.m)>=0)K=Y.isub(this.m);else if(Y.cmpn(0)<0)K=Y.iadd(this.m);return K._forceRed(this)},X0.prototype.mul=function(U,Q){if(U.isZero()||Q.isZero())return new V(0)._forceRed(this);var J=U.mul(Q),Z=J.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Y=J.isub(Z).iushrn(this.shift),K=Y;if(Y.cmp(this.m)>=0)K=Y.isub(this.m);else if(Y.cmpn(0)<0)K=Y.iadd(this.m);return K._forceRed(this)},X0.prototype.invm=function(U){var Q=this.imod(U._invmp(this.m).mul(this.r2));return Q._forceRed(this)}})(typeof O>"u"||O,I)}),MV=G0((I)=>{var O=IX(),F=SU(),T=I;T.define=function(E,V){return new H(E,V)};function H(E,V){this.name=E,this.body=V,this.decoders={},this.encoders={}}H.prototype._createNamed=function(E){var V;try{V=(()=>{throw new Error("Cannot require module "+"vm");})().runInThisContext("(function "+this.name+`(entity) {
12
+ this._initNamed(entity);
13
+ })`)}catch(P){V=function(q){this._initNamed(q)}}return F(V,E),V.prototype._initNamed=function(P){E.call(this,P)},new V(this)},H.prototype._getDecoder=function(E){if(E=E||"der",!this.decoders.hasOwnProperty(E))this.decoders[E]=this._createNamed(O.decoders[E]);return this.decoders[E]},H.prototype.decode=function(E,V,P){return this._getDecoder(V).decode(E,P)},H.prototype._getEncoder=function(E){if(E=E||"der",!this.encoders.hasOwnProperty(E))this.encoders[E]=this._createNamed(O.encoders[E]);return this.encoders[E]},H.prototype.encode=function(E,V,P){return this._getEncoder(V).encode(E,P)}}),SV=G0((I)=>{var O=SU();function F(H){this._reporterState={obj:null,path:[],options:H||{},errors:[]}}I.Reporter=F,F.prototype.isError=function(H){return H instanceof T},F.prototype.save=function(){var H=this._reporterState;return{obj:H.obj,pathLen:H.path.length}},F.prototype.restore=function(H){var E=this._reporterState;E.obj=H.obj,E.path=E.path.slice(0,H.pathLen)},F.prototype.enterKey=function(H){return this._reporterState.path.push(H)},F.prototype.exitKey=function(H){var E=this._reporterState;E.path=E.path.slice(0,H-1)},F.prototype.leaveKey=function(H,E,V){var P=this._reporterState;if(this.exitKey(H),P.obj!==null)P.obj[E]=V},F.prototype.path=function(){return this._reporterState.path.join("/")},F.prototype.enterObject=function(){var H=this._reporterState,E=H.obj;return H.obj={},E},F.prototype.leaveObject=function(H){var E=this._reporterState,V=E.obj;return E.obj=H,V},F.prototype.error=function(H){var E,V=this._reporterState,P=H instanceof T;if(P)E=H;else E=new T(V.path.map(function(q){return"["+JSON.stringify(q)+"]"}).join(""),H.message||H,H.stack);if(!V.options.partial)throw E;if(!P)V.errors.push(E);return E},F.prototype.wrapResult=function(H){var E=this._reporterState;if(!E.options.partial)return H;return{result:this.isError(H)?null:H,errors:E.errors}};function T(H,E){this.path=H,this.rethrow(E)}O(T,Error),T.prototype.rethrow=function(H){if(this.message=H+" at: "+(this.path||"(shallow)"),Error.captureStackTrace)Error.captureStackTrace(this,T);if(!this.stack)try{throw Error(this.message)}catch(E){this.stack=E.stack}return this}}),FQ=G0((I)=>{var O=SU(),F=QX().Reporter,T=(HU(),h0(FU)).Buffer;function H(V,P){if(F.call(this,P),!T.isBuffer(V)){this.error("Input not Buffer");return}this.base=V,this.offset=0,this.length=V.length}O(H,F),I.DecoderBuffer=H,H.prototype.save=function(){return{offset:this.offset,reporter:F.prototype.save.call(this)}},H.prototype.restore=function(V){var P=new H(this.base);return P.offset=V.offset,P.length=this.offset,this.offset=V.offset,F.prototype.restore.call(this,V.reporter),P},H.prototype.isEmpty=function(){return this.offset===this.length},H.prototype.readUInt8=function(V){if(this.offset+1<=this.length)return this.base.readUInt8(this.offset++,!0);else return this.error(V||"DecoderBuffer overrun")},H.prototype.skip=function(V,P){if(!(this.offset+V<=this.length))return this.error(P||"DecoderBuffer overrun");var q=new H(this.base);return q._reporterState=this._reporterState,q.offset=this.offset,q.length=this.offset+V,this.offset+=V,q},H.prototype.raw=function(V){return this.base.slice(V?V.offset:this.offset,this.length)};function E(V,P){if(Array.isArray(V))this.length=0,this.value=V.map(function(q){if(!(q instanceof E))q=new E(q,P);return this.length+=q.length,q},this);else if(typeof V==="number"){if(!(0<=V&&V<=255))return P.error("non-byte EncoderBuffer value");this.value=V,this.length=1}else if(typeof V==="string")this.value=V,this.length=T.byteLength(V);else if(T.isBuffer(V))this.value=V,this.length=V.length;else return P.error("Unsupported type: "+typeof V)}I.EncoderBuffer=E,E.prototype.join=function(V,P){if(!V)V=new T(this.length);if(!P)P=0;if(this.length===0)return V;if(Array.isArray(this.value))this.value.forEach(function(q){q.join(V,P),P+=q.length});else{if(typeof this.value==="number")V[P]=this.value;else if(typeof this.value==="string")V.write(this.value,P);else if(T.isBuffer(this.value))this.value.copy(V,P);P+=this.length}return V}}),RV=G0((I,O)=>{var F=QX().Reporter,T=QX().EncoderBuffer,H=QX().DecoderBuffer,E=cU(),V=["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(V),q=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function L(C,D){var S={};if(this._baseState=S,S.enc=C,S.parent=D||null,S.children=null,S.tag=null,S.args=null,S.reverseArgs=null,S.choice=null,S.optional=!1,S.any=!1,S.obj=!1,S.use=null,S.useDecoder=null,S.key=null,S.default=null,S.explicit=null,S.implicit=null,S.contains=null,!S.parent)S.children=[],this._wrap()}O.exports=L;var z=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];L.prototype.clone=function(){var C=this._baseState,D={};z.forEach(function(R){D[R]=C[R]});var S=new this.constructor(D.parent);return S._baseState=D,S},L.prototype._wrap=function(){var C=this._baseState;P.forEach(function(D){this[D]=function(){var S=new this.constructor(this);return C.children.push(S),S[D].apply(S,arguments)}},this)},L.prototype._init=function(C){var D=this._baseState;E(D.parent===null),C.call(this),D.children=D.children.filter(function(S){return S._baseState.parent===this},this),E.equal(D.children.length,1,"Root node can have only one child")},L.prototype._useArgs=function(C){var D=this._baseState,S=C.filter(function(R){return R instanceof this.constructor},this);if(C=C.filter(function(R){return!(R instanceof this.constructor)},this),S.length!==0)E(D.children===null),D.children=S,S.forEach(function(R){R._baseState.parent=this},this);if(C.length!==0)E(D.args===null),D.args=C,D.reverseArgs=C.map(function(R){if(typeof R!=="object"||R.constructor!==Object)return R;var v={};return Object.keys(R).forEach(function(k){if(k==(k|0))k|=0;var B=R[k];v[B]=k}),v})},q.forEach(function(C){L.prototype[C]=function(){var D=this._baseState;throw Error(C+" not implemented for encoding: "+D.enc)}}),V.forEach(function(C){L.prototype[C]=function(){var D=this._baseState,S=Array.prototype.slice.call(arguments);return E(D.tag===null),D.tag=C,this._useArgs(S),this}}),L.prototype.use=function(C){E(C);var D=this._baseState;return E(D.use===null),D.use=C,this},L.prototype.optional=function(){var C=this._baseState;return C.optional=!0,this},L.prototype.def=function(C){var D=this._baseState;return E(D.default===null),D.default=C,D.optional=!0,this},L.prototype.explicit=function(C){var D=this._baseState;return E(D.explicit===null&&D.implicit===null),D.explicit=C,this},L.prototype.implicit=function(C){var D=this._baseState;return E(D.explicit===null&&D.implicit===null),D.implicit=C,this},L.prototype.obj=function(){var C=this._baseState,D=Array.prototype.slice.call(arguments);if(C.obj=!0,D.length!==0)this._useArgs(D);return this},L.prototype.key=function(C){var D=this._baseState;return E(D.key===null),D.key=C,this},L.prototype.any=function(){var C=this._baseState;return C.any=!0,this},L.prototype.choice=function(C){var D=this._baseState;return E(D.choice===null),D.choice=C,this._useArgs(Object.keys(C).map(function(S){return C[S]})),this},L.prototype.contains=function(C){var D=this._baseState;return E(D.use===null),D.contains=C,this},L.prototype._decode=function(C,D){var S=this._baseState;if(S.parent===null)return C.wrapResult(S.children[0]._decode(C,D));var R=S.default,v=!0,k=null;if(S.key!==null)k=C.enterKey(S.key);if(S.optional){var B=null;if(S.explicit!==null)B=S.explicit;else if(S.implicit!==null)B=S.implicit;else if(S.tag!==null)B=S.tag;if(B===null&&!S.any){var _=C.save();try{if(S.choice===null)this._decodeGeneric(S.tag,C,D);else this._decodeChoice(C,D);v=!0}catch(I0){v=!1}C.restore(_)}else if(v=this._peekTag(C,B,S.any),C.isError(v))return v}var x;if(S.obj&&v)x=C.enterObject();if(v){if(S.explicit!==null){var w=this._decodeTag(C,S.explicit);if(C.isError(w))return w;C=w}var y=C.offset;if(S.use===null&&S.choice===null){if(S.any)var _=C.save();var d=this._decodeTag(C,S.implicit!==null?S.implicit:S.tag,S.any);if(C.isError(d))return d;if(S.any)R=C.raw(_);else C=d}if(D&&D.track&&S.tag!==null)D.track(C.path(),y,C.length,"tagged");if(D&&D.track&&S.tag!==null)D.track(C.path(),C.offset,C.length,"content");if(S.any)R=R;else if(S.choice===null)R=this._decodeGeneric(S.tag,C,D);else R=this._decodeChoice(C,D);if(C.isError(R))return R;if(!S.any&&S.choice===null&&S.children!==null)S.children.forEach(function(I0){I0._decode(C,D)});if(S.contains&&(S.tag==="octstr"||S.tag==="bitstr")){var J0=new H(R);R=this._getUse(S.contains,C._reporterState.obj)._decode(J0,D)}}if(S.obj&&v)R=C.leaveObject(x);if(S.key!==null&&(R!==null||v===!0))C.leaveKey(k,S.key,R);else if(k!==null)C.exitKey(k);return R},L.prototype._decodeGeneric=function(C,D,S){var R=this._baseState;if(C==="seq"||C==="set")return null;if(C==="seqof"||C==="setof")return this._decodeList(D,C,R.args[0],S);else if(/str$/.test(C))return this._decodeStr(D,C,S);else if(C==="objid"&&R.args)return this._decodeObjid(D,R.args[0],R.args[1],S);else if(C==="objid")return this._decodeObjid(D,null,null,S);else if(C==="gentime"||C==="utctime")return this._decodeTime(D,C,S);else if(C==="null_")return this._decodeNull(D,S);else if(C==="bool")return this._decodeBool(D,S);else if(C==="objDesc")return this._decodeStr(D,C,S);else if(C==="int"||C==="enum")return this._decodeInt(D,R.args&&R.args[0],S);if(R.use!==null)return this._getUse(R.use,D._reporterState.obj)._decode(D,S);else return D.error("unknown tag: "+C)},L.prototype._getUse=function(C,D){var S=this._baseState;if(S.useDecoder=this._use(C,D),E(S.useDecoder._baseState.parent===null),S.useDecoder=S.useDecoder._baseState.children[0],S.implicit!==S.useDecoder._baseState.implicit)S.useDecoder=S.useDecoder.clone(),S.useDecoder._baseState.implicit=S.implicit;return S.useDecoder},L.prototype._decodeChoice=function(C,D){var S=this._baseState,R=null,v=!1;if(Object.keys(S.choice).some(function(k){var B=C.save(),_=S.choice[k];try{var x=_._decode(C,D);if(C.isError(x))return!1;R={type:k,value:x},v=!0}catch(w){return C.restore(B),!1}return!0},this),!v)return C.error("Choice not matched");return R},L.prototype._createEncoderBuffer=function(C){return new T(C,this.reporter)},L.prototype._encode=function(C,D,S){var R=this._baseState;if(R.default!==null&&R.default===C)return;var v=this._encodeValue(C,D,S);if(v===void 0)return;if(this._skipDefault(v,D,S))return;return v},L.prototype._encodeValue=function(C,D,S){var R=this._baseState;if(R.parent===null)return R.children[0]._encode(C,D||new F);var _=null;if(this.reporter=D,R.optional&&C===void 0)if(R.default!==null)C=R.default;else return;var v=null,k=!1;if(R.any)_=this._createEncoderBuffer(C);else if(R.choice)_=this._encodeChoice(C,D);else if(R.contains)v=this._getUse(R.contains,S)._encode(C,D),k=!0;else if(R.children)v=R.children.map(function(y){if(y._baseState.tag==="null_")return y._encode(null,D,C);if(y._baseState.key===null)return D.error("Child should have a key");var d=D.enterKey(y._baseState.key);if(typeof C!=="object")return D.error("Child expected, but input is not object");var J0=y._encode(C[y._baseState.key],D,C);return D.leaveKey(d),J0},this).filter(function(y){return y}),v=this._createEncoderBuffer(v);else if(R.tag==="seqof"||R.tag==="setof"){if(!(R.args&&R.args.length===1))return D.error("Too many args for : "+R.tag);if(!Array.isArray(C))return D.error("seqof/setof, but data is not Array");var B=this.clone();B._baseState.implicit=null,v=this._createEncoderBuffer(C.map(function(y){var d=this._baseState;return this._getUse(d.args[0],C)._encode(y,D)},B))}else if(R.use!==null)_=this._getUse(R.use,S)._encode(C,D);else v=this._encodePrimitive(R.tag,C),k=!0;var _;if(!R.any&&R.choice===null){var x=R.implicit!==null?R.implicit:R.tag,w=R.implicit===null?"universal":"context";if(x===null){if(R.use===null)D.error("Tag could be omitted only for .use()")}else if(R.use===null)_=this._encodeComposite(x,k,w,v)}if(R.explicit!==null)_=this._encodeComposite(R.explicit,!1,"context",_);return _},L.prototype._encodeChoice=function(C,D){var S=this._baseState,R=S.choice[C.type];if(!R)E(!1,C.type+" not found in "+JSON.stringify(Object.keys(S.choice)));return R._encode(C.value,D)},L.prototype._encodePrimitive=function(C,D){var S=this._baseState;if(/str$/.test(C))return this._encodeStr(D,C);else if(C==="objid"&&S.args)return this._encodeObjid(D,S.reverseArgs[0],S.args[1]);else if(C==="objid")return this._encodeObjid(D,null,null);else if(C==="gentime"||C==="utctime")return this._encodeTime(D,C);else if(C==="null_")return this._encodeNull();else if(C==="int"||C==="enum")return this._encodeInt(D,S.args&&S.reverseArgs[0]);else if(C==="bool")return this._encodeBool(D);else if(C==="objDesc")return this._encodeStr(D,C);else throw Error("Unsupported tag: "+C)},L.prototype._isNumstr=function(C){return/^[0-9 ]*$/.test(C)},L.prototype._isPrintstr=function(C){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(C)}}),QX=G0((I)=>{var O=I;O.Reporter=SV().Reporter,O.DecoderBuffer=FQ().DecoderBuffer,O.EncoderBuffer=FQ().EncoderBuffer,O.Node=RV()}),qV=G0((I)=>{var O=xQ();I.tagClass={0:"universal",1:"application",2:"context",3:"private"},I.tagClassByName=O._reverse(I.tagClass),I.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"},I.tagByName=O._reverse(I.tag)}),xQ=G0((I)=>{var O=I;O._reverse=function(F){var T={};return Object.keys(F).forEach(function(H){if((H|0)==H)H=H|0;var E=F[H];T[E]=H}),T},O.der=qV()}),NQ=G0((I,O)=>{var F=SU(),T=IX(),H=T.base,E=T.bignum,V=T.constants.der;function P(C){this.enc="der",this.name=C.name,this.entity=C,this.tree=new q,this.tree._init(C.body)}O.exports=P,P.prototype.decode=function(C,D){if(!(C instanceof H.DecoderBuffer))C=new H.DecoderBuffer(C,D);return this.tree._decode(C,D)};function q(C){H.Node.call(this,"der",C)}F(q,H.Node),q.prototype._peekTag=function(C,D,S){if(C.isEmpty())return!1;var R=C.save(),v=L(C,'Failed to peek tag: "'+D+'"');if(C.isError(v))return v;return C.restore(R),v.tag===D||v.tagStr===D||v.tagStr+"of"===D||S},q.prototype._decodeTag=function(C,D,S){var R=L(C,'Failed to decode tag of "'+D+'"');if(C.isError(R))return R;var v=z(C,R.primitive,'Failed to get length of "'+D+'"');if(C.isError(v))return v;if(!S&&R.tag!==D&&R.tagStr!==D&&R.tagStr+"of"!==D)return C.error('Failed to match tag: "'+D+'"');if(R.primitive||v!==null)return C.skip(v,'Failed to match body of: "'+D+'"');var k=C.save(),B=this._skipUntilEnd(C,'Failed to skip indefinite length body: "'+this.tag+'"');if(C.isError(B))return B;return v=C.offset-k.offset,C.restore(k),C.skip(v,'Failed to match body of: "'+D+'"')},q.prototype._skipUntilEnd=function(C,D){while(!0){var S=L(C,D);if(C.isError(S))return S;var R=z(C,S.primitive,D);if(C.isError(R))return R;var v;if(S.primitive||R!==null)v=C.skip(R);else v=this._skipUntilEnd(C,D);if(C.isError(v))return v;if(S.tagStr==="end")break}},q.prototype._decodeList=function(C,D,S,R){var v=[];while(!C.isEmpty()){var k=this._peekTag(C,"end");if(C.isError(k))return k;var B=S.decode(C,"der",R);if(C.isError(B)&&k)break;v.push(B)}return v},q.prototype._decodeStr=function(C,D){if(D==="bitstr"){var S=C.readUInt8();if(C.isError(S))return S;return{unused:S,data:C.raw()}}else if(D==="bmpstr"){var R=C.raw();if(R.length%2===1)return C.error("Decoding of string type: bmpstr length mismatch");var v="";for(var k=0;k<R.length/2;k++)v+=String.fromCharCode(R.readUInt16BE(k*2));return v}else if(D==="numstr"){var B=C.raw().toString("ascii");if(!this._isNumstr(B))return C.error("Decoding of string type: numstr unsupported characters");return B}else if(D==="octstr")return C.raw();else if(D==="objDesc")return C.raw();else if(D==="printstr"){var _=C.raw().toString("ascii");if(!this._isPrintstr(_))return C.error("Decoding of string type: printstr unsupported characters");return _}else if(/str$/.test(D))return C.raw().toString();else return C.error("Decoding of string type: "+D+" unsupported")},q.prototype._decodeObjid=function(C,D,S){var R,v=[],k=0;while(!C.isEmpty()){var B=C.readUInt8();if(k<<=7,k|=B&127,(B&128)===0)v.push(k),k=0}if(B&128)v.push(k);var _=v[0]/40|0,x=v[0]%40;if(S)R=v;else R=[_,x].concat(v.slice(1));if(D){var w=D[R.join(" ")];if(w===void 0)w=D[R.join(".")];if(w!==void 0)R=w}return R},q.prototype._decodeTime=function(C,D){var S=C.raw().toString();if(D==="gentime")var R=S.slice(0,4)|0,v=S.slice(4,6)|0,k=S.slice(6,8)|0,B=S.slice(8,10)|0,_=S.slice(10,12)|0,x=S.slice(12,14)|0;else if(D==="utctime"){var R=S.slice(0,2)|0,v=S.slice(2,4)|0,k=S.slice(4,6)|0,B=S.slice(6,8)|0,_=S.slice(8,10)|0,x=S.slice(10,12)|0;if(R<70)R=2000+R;else R=1900+R}else return C.error("Decoding "+D+" time is not supported yet");return Date.UTC(R,v-1,k,B,_,x,0)},q.prototype._decodeNull=function(C){return null},q.prototype._decodeBool=function(C){var D=C.readUInt8();if(C.isError(D))return D;else return D!==0},q.prototype._decodeInt=function(C,D){var S=C.raw(),R=new E(S);if(D)R=D[R.toString(10)]||R;return R},q.prototype._use=function(C,D){if(typeof C==="function")C=C(D);return C._getDecoder("der").tree};function L(C,D){var S=C.readUInt8(D);if(C.isError(S))return S;var R=V.tagClass[S>>6],v=(S&32)===0;if((S&31)===31){var k=S;S=0;while((k&128)===128){if(k=C.readUInt8(D),C.isError(k))return k;S<<=7,S|=k&127}}else S&=31;var B=V.tag[S];return{cls:R,primitive:v,tag:S,tagStr:B}}function z(C,D,S){var R=C.readUInt8(S);if(C.isError(R))return R;if(!D&&R===128)return null;if((R&128)===0)return R;var v=R&127;if(v>4)return C.error("length octect is too long");R=0;for(var k=0;k<v;k++){R<<=8;var B=C.readUInt8(S);if(C.isError(B))return B;R|=B}return R}}),PV=G0((I,O)=>{var F=SU(),T=(HU(),h0(FU)).Buffer,H=NQ();function E(V){H.call(this,V),this.enc="pem"}F(E,H),O.exports=E,E.prototype.decode=function(V,P){var q=V.toString().split(/[\r\n]+/g),L=P.label.toUpperCase(),z=/^-----(BEGIN|END) ([^-]+)-----$/,C=-1,D=-1;for(var S=0;S<q.length;S++){var R=q[S].match(z);if(R===null)continue;if(R[2]!==L)continue;if(C===-1){if(R[1]!=="BEGIN")break;C=S}else{if(R[1]!=="END")break;D=S;break}}if(C===-1||D===-1)throw Error("PEM section not found for: "+L);var v=q.slice(C+1,D).join("");v.replace(/[^a-z0-9\+\/=]+/gi,"");var k=new T(v,"base64");return H.prototype.decode.call(this,k,P)}}),kV=G0((I)=>{var O=I;O.der=NQ(),O.pem=PV()}),gQ=G0((I,O)=>{var F=SU(),T=(HU(),h0(FU)).Buffer,H=IX(),E=H.base,V=H.constants.der;function P(C){this.enc="der",this.name=C.name,this.entity=C,this.tree=new q,this.tree._init(C.body)}O.exports=P,P.prototype.encode=function(C,D){return this.tree._encode(C,D).join()};function q(C){E.Node.call(this,"der",C)}F(q,E.Node),q.prototype._encodeComposite=function(C,D,S,R){var v=z(C,D,S,this.reporter);if(R.length<128){var _=new T(2);return _[0]=v,_[1]=R.length,this._createEncoderBuffer([_,R])}var k=1;for(var B=R.length;B>=256;B>>=8)k++;var _=new T(2+k);_[0]=v,_[1]=128|k;for(var B=1+k,x=R.length;x>0;B--,x>>=8)_[B]=x&255;return this._createEncoderBuffer([_,R])},q.prototype._encodeStr=function(C,D){if(D==="bitstr")return this._createEncoderBuffer([C.unused|0,C.data]);else if(D==="bmpstr"){var S=new T(C.length*2);for(var R=0;R<C.length;R++)S.writeUInt16BE(C.charCodeAt(R),R*2);return this._createEncoderBuffer(S)}else if(D==="numstr"){if(!this._isNumstr(C))return this.reporter.error("Encoding of string type: numstr supports only digits and space");return this._createEncoderBuffer(C)}else if(D==="printstr"){if(!this._isPrintstr(C))return 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");return this._createEncoderBuffer(C)}else if(/str$/.test(D))return this._createEncoderBuffer(C);else if(D==="objDesc")return this._createEncoderBuffer(C);else return this.reporter.error("Encoding of string type: "+D+" unsupported")},q.prototype._encodeObjid=function(C,D,S){if(typeof C==="string"){if(!D)return this.reporter.error("string objid given, but no values map found");if(!D.hasOwnProperty(C))return this.reporter.error("objid not found in values map");C=D[C].split(/[\s\.]+/g);for(var R=0;R<C.length;R++)C[R]|=0}else if(Array.isArray(C)){C=C.slice();for(var R=0;R<C.length;R++)C[R]|=0}if(!Array.isArray(C))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(C));if(!S){if(C[1]>=40)return this.reporter.error("Second objid identifier OOB");C.splice(0,2,C[0]*40+C[1])}var v=0;for(var R=0;R<C.length;R++){var k=C[R];for(v++;k>=128;k>>=7)v++}var B=new T(v),_=B.length-1;for(var R=C.length-1;R>=0;R--){var k=C[R];B[_--]=k&127;while((k>>=7)>0)B[_--]=128|k&127}return this._createEncoderBuffer(B)};function L(C){if(C<10)return"0"+C;else return C}q.prototype._encodeTime=function(C,D){var S,R=new Date(C);if(D==="gentime")S=[L(R.getFullYear()),L(R.getUTCMonth()+1),L(R.getUTCDate()),L(R.getUTCHours()),L(R.getUTCMinutes()),L(R.getUTCSeconds()),"Z"].join("");else if(D==="utctime")S=[L(R.getFullYear()%100),L(R.getUTCMonth()+1),L(R.getUTCDate()),L(R.getUTCHours()),L(R.getUTCMinutes()),L(R.getUTCSeconds()),"Z"].join("");else this.reporter.error("Encoding "+D+" time is not supported yet");return this._encodeStr(S,"octstr")},q.prototype._encodeNull=function(){return this._createEncoderBuffer("")},q.prototype._encodeInt=function(C,D){if(typeof C==="string"){if(!D)return this.reporter.error("String int or enum given, but no values map");if(!D.hasOwnProperty(C))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(C));C=D[C]}if(typeof C!=="number"&&!T.isBuffer(C)){var S=C.toArray();if(!C.sign&&S[0]&128)S.unshift(0);C=new T(S)}if(T.isBuffer(C)){var R=C.length;if(C.length===0)R++;var k=new T(R);if(C.copy(k),C.length===0)k[0]=0;return this._createEncoderBuffer(k)}if(C<128)return this._createEncoderBuffer(C);if(C<256)return this._createEncoderBuffer([0,C]);var R=1;for(var v=C;v>=256;v>>=8)R++;var k=Array(R);for(var v=k.length-1;v>=0;v--)k[v]=C&255,C>>=8;if(k[0]&128)k.unshift(0);return this._createEncoderBuffer(new T(k))},q.prototype._encodeBool=function(C){return this._createEncoderBuffer(C?255:0)},q.prototype._use=function(C,D){if(typeof C==="function")C=C(D);return C._getEncoder("der").tree},q.prototype._skipDefault=function(C,D,S){var R=this._baseState,v;if(R.default===null)return!1;var k=C.join();if(R.defaultBuffer===void 0)R.defaultBuffer=this._encodeValue(R.default,D,S).join();if(k.length!==R.defaultBuffer.length)return!1;for(v=0;v<k.length;v++)if(k[v]!==R.defaultBuffer[v])return!1;return!0};function z(C,D,S,R){var v;if(C==="seqof")C="seq";else if(C==="setof")C="set";if(V.tagByName.hasOwnProperty(C))v=V.tagByName[C];else if(typeof C==="number"&&(C|0)===C)v=C;else return R.error("Unknown tag: "+C);if(v>=31)return R.error("Multi-octet tag encoding unsupported");if(!D)v|=32;return v|=V.tagClassByName[S||"universal"]<<6,v}}),jV=G0((I,O)=>{var F=SU(),T=gQ();function H(E){T.call(this,E),this.enc="pem"}F(H,T),O.exports=H,H.prototype.encode=function(E,V){var P=T.prototype.encode.call(this,E),q=P.toString("base64"),L=["-----BEGIN "+V.label+"-----"];for(var z=0;z<q.length;z+=64)L.push(q.slice(z,z+64));return L.push("-----END "+V.label+"-----"),L.join(`
14
+ `)}}),vV=G0((I)=>{var O=I;O.der=gQ(),O.pem=jV()}),IX=G0((I)=>{var O=I;O.bignum=EV(),O.define=MV().define,O.base=QX(),O.constants=xQ(),O.decoders=kV(),O.encoders=vV()}),_V=G0((I,O)=>{var F=IX(),T=F.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),H=F.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),E=F.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),V=F.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(E),this.key("subjectPublicKey").bitstr())}),P=F.define("RelativeDistinguishedName",function(){this.setof(H)}),q=F.define("RDNSequence",function(){this.seqof(P)}),L=F.define("Name",function(){this.choice({rdnSequence:this.use(q)})}),z=F.define("Validity",function(){this.seq().obj(this.key("notBefore").use(T),this.key("notAfter").use(T))}),C=F.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),D=F.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(E),this.key("issuer").use(L),this.key("validity").use(z),this.key("subject").use(L),this.key("subjectPublicKeyInfo").use(V),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(C).optional())}),S=F.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(D),this.key("signatureAlgorithm").use(E),this.key("signatureValue").bitstr())});O.exports=S}),BV=G0((I)=>{var O=IX();I.certificate=_V();var F=O.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())});I.RSAPrivateKey=F;var T=O.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});I.RSAPublicKey=T;var H=O.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())}),E=O.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(H),this.key("subjectPublicKey").bitstr())});I.PublicKey=E;var V=O.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(H),this.key("subjectPrivateKey").octstr())});I.PrivateKey=V;var P=O.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())});I.EncryptedPrivateKey=P;var q=O.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())});I.DSAPrivateKey=q,I.DSAparam=O.define("DSAparam",function(){this.int()});var L=O.define("ECParameters",function(){this.choice({namedCurve:this.objid()})}),z=O.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(L),this.key("publicKey").optional().explicit(1).bitstr())});I.ECPrivateKey=z,I.signature=O.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})}),xV=G0((I,O)=>{O.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"}}),NV=G0((I,O)=>{var F=LU().Buffer,T=UZ().Transform,H=SU();function E(L){T.call(this),this._block=F.allocUnsafe(L),this._blockSize=L,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}H(E,T),E.prototype._transform=function(L,z,C){var D=null;try{this.update(L,z)}catch(S){D=S}C(D)},E.prototype._flush=function(L){var z=null;try{this.push(this.digest())}catch(C){z=C}L(z)};var V=typeof Uint8Array<"u",P=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(F.prototype instanceof Uint8Array||F.TYPED_ARRAY_SUPPORT);function q(L,z){if(L instanceof F)return L;if(typeof L==="string")return F.from(L,z);if(P&&ArrayBuffer.isView(L)){if(L.byteLength===0)return F.alloc(0);var C=F.from(L.buffer,L.byteOffset,L.byteLength);if(C.byteLength===L.byteLength)return C}if(V&&L instanceof Uint8Array)return F.from(L);if(F.isBuffer(L)&&L.constructor&&typeof L.constructor.isBuffer==="function"&&L.constructor.isBuffer(L))return F.from(L);throw TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}E.prototype.update=function(L,z){if(this._finalized)throw Error("Digest already called");L=q(L,z);var C=this._block,D=0;while(this._blockOffset+L.length-D>=this._blockSize){for(var S=this._blockOffset;S<this._blockSize;)C[S++]=L[D++];this._update(),this._blockOffset=0}while(D<L.length)C[this._blockOffset++]=L[D++];for(var R=0,v=L.length*8;v>0;++R)if(this._length[R]+=v,v=this._length[R]/4294967296|0,v>0)this._length[R]-=4294967296*v;return this},E.prototype._update=function(){throw Error("_update is not implemented")},E.prototype.digest=function(L){if(this._finalized)throw Error("Digest already called");this._finalized=!0;var z=this._digest();if(L!==void 0)z=z.toString(L);this._block.fill(0),this._blockOffset=0;for(var C=0;C<4;++C)this._length[C]=0;return z},E.prototype._digest=function(){throw Error("_digest is not implemented")},O.exports=E}),gV=G0((I,O)=>{var F=SU(),T=NV(),H=LU().Buffer,E=Array(16);function V(){T.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}F(V,T),V.prototype._update=function(){var D=E;for(var S=0;S<16;++S)D[S]=this._block.readInt32LE(S*4);var R=this._a,v=this._b,k=this._c,B=this._d;R=q(R,v,k,B,D[0],3614090360,7),B=q(B,R,v,k,D[1],3905402710,12),k=q(k,B,R,v,D[2],606105819,17),v=q(v,k,B,R,D[3],3250441966,22),R=q(R,v,k,B,D[4],4118548399,7),B=q(B,R,v,k,D[5],1200080426,12),k=q(k,B,R,v,D[6],2821735955,17),v=q(v,k,B,R,D[7],4249261313,22),R=q(R,v,k,B,D[8],1770035416,7),B=q(B,R,v,k,D[9],2336552879,12),k=q(k,B,R,v,D[10],4294925233,17),v=q(v,k,B,R,D[11],2304563134,22),R=q(R,v,k,B,D[12],1804603682,7),B=q(B,R,v,k,D[13],4254626195,12),k=q(k,B,R,v,D[14],2792965006,17),v=q(v,k,B,R,D[15],1236535329,22),R=L(R,v,k,B,D[1],4129170786,5),B=L(B,R,v,k,D[6],3225465664,9),k=L(k,B,R,v,D[11],643717713,14),v=L(v,k,B,R,D[0],3921069994,20),R=L(R,v,k,B,D[5],3593408605,5),B=L(B,R,v,k,D[10],38016083,9),k=L(k,B,R,v,D[15],3634488961,14),v=L(v,k,B,R,D[4],3889429448,20),R=L(R,v,k,B,D[9],568446438,5),B=L(B,R,v,k,D[14],3275163606,9),k=L(k,B,R,v,D[3],4107603335,14),v=L(v,k,B,R,D[8],1163531501,20),R=L(R,v,k,B,D[13],2850285829,5),B=L(B,R,v,k,D[2],4243563512,9),k=L(k,B,R,v,D[7],1735328473,14),v=L(v,k,B,R,D[12],2368359562,20),R=z(R,v,k,B,D[5],4294588738,4),B=z(B,R,v,k,D[8],2272392833,11),k=z(k,B,R,v,D[11],1839030562,16),v=z(v,k,B,R,D[14],4259657740,23),R=z(R,v,k,B,D[1],2763975236,4),B=z(B,R,v,k,D[4],1272893353,11),k=z(k,B,R,v,D[7],4139469664,16),v=z(v,k,B,R,D[10],3200236656,23),R=z(R,v,k,B,D[13],681279174,4),B=z(B,R,v,k,D[0],3936430074,11),k=z(k,B,R,v,D[3],3572445317,16),v=z(v,k,B,R,D[6],76029189,23),R=z(R,v,k,B,D[9],3654602809,4),B=z(B,R,v,k,D[12],3873151461,11),k=z(k,B,R,v,D[15],530742520,16),v=z(v,k,B,R,D[2],3299628645,23),R=C(R,v,k,B,D[0],4096336452,6),B=C(B,R,v,k,D[7],1126891415,10),k=C(k,B,R,v,D[14],2878612391,15),v=C(v,k,B,R,D[5],4237533241,21),R=C(R,v,k,B,D[12],1700485571,6),B=C(B,R,v,k,D[3],2399980690,10),k=C(k,B,R,v,D[10],4293915773,15),v=C(v,k,B,R,D[1],2240044497,21),R=C(R,v,k,B,D[8],1873313359,6),B=C(B,R,v,k,D[15],4264355552,10),k=C(k,B,R,v,D[6],2734768916,15),v=C(v,k,B,R,D[13],1309151649,21),R=C(R,v,k,B,D[4],4149444226,6),B=C(B,R,v,k,D[11],3174756917,10),k=C(k,B,R,v,D[2],718787259,15),v=C(v,k,B,R,D[9],3951481745,21),this._a=this._a+R|0,this._b=this._b+v|0,this._c=this._c+k|0,this._d=this._d+B|0},V.prototype._digest=function(){if(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 D=H.allocUnsafe(16);return D.writeInt32LE(this._a,0),D.writeInt32LE(this._b,4),D.writeInt32LE(this._c,8),D.writeInt32LE(this._d,12),D};function P(D,S){return D<<S|D>>>32-S}function q(D,S,R,v,k,B,_){return P(D+(S&R|~S&v)+k+B|0,_)+S|0}function L(D,S,R,v,k,B,_){return P(D+(S&v|R&~v)+k+B|0,_)+S|0}function z(D,S,R,v,k,B,_){return P(D+(S^R^v)+k+B|0,_)+S|0}function C(D,S,R,v,k,B,_){return P(D+(R^(S|~v))+k+B|0,_)+S|0}O.exports=V}),wV=G0((I,O)=>{var F=LU().Buffer,T=gV();function H(E,V,P,q){if(!F.isBuffer(E))E=F.from(E,"binary");if(V){if(!F.isBuffer(V))V=F.from(V,"binary");if(V.length!==8)throw RangeError("salt should be Buffer with 8 byte length")}var L=P/8,z=F.alloc(L),C=F.alloc(q||0),D=F.alloc(0);while(L>0||q>0){var S=new T;if(S.update(D),S.update(E),V)S.update(V);D=S.digest();var R=0;if(L>0){var v=z.length-L;R=Math.min(L,D.length),D.copy(z,v,0,R),L-=R}if(R<D.length&&q>0){var k=C.length-q,B=Math.min(q,D.length-R);D.copy(C,k,R,R+B),q-=B}}return D.fill(0),{key:z,iv:C}}O.exports=H}),wQ=G0((I)=>{var O=(qU(),h0(RU));I.createCipher=I.Cipher=O.createCipher,I.createCipheriv=I.Cipheriv=O.createCipheriv,I.createDecipher=I.Decipher=O.createDecipher,I.createDecipheriv=I.Decipheriv=O.createDecipheriv,I.listCiphers=I.getCiphers=O.getCiphers}),yV=G0((I,O)=>{var F=/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,T=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,H=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,E=wV(),V=wQ(),P=LU().Buffer;O.exports=function(q,L){var z=q.toString(),C=z.match(F),D;if(!C){var S=z.match(H);D=P.from(S[2].replace(/[\r\n]/g,""),"base64")}else{var R="aes"+C[1],v=P.from(C[2],"hex"),k=P.from(C[3].replace(/[\r\n]/g,""),"base64"),B=E(L,v.slice(0,8),parseInt(C[1],10)).key,_=[],x=V.createDecipheriv(R,B,v);_.push(x.update(k)),_.push(x.final()),D=P.concat(_)}var w=z.match(T)[1];return{tag:w,data:D}}}),yQ=G0((I,O)=>{var F=BV(),T=xV(),H=yV(),E=wQ(),V=qQ().pbkdf2Sync,P=LU().Buffer;function q(z,C){var D=z.algorithm.decrypt.kde.kdeparams.salt,S=parseInt(z.algorithm.decrypt.kde.kdeparams.iters.toString(),10),R=T[z.algorithm.decrypt.cipher.algo.join(".")],v=z.algorithm.decrypt.cipher.iv,k=z.subjectPrivateKey,B=parseInt(R.split("-")[1],10)/8,_=V(C,D,S,B,"sha1"),x=E.createDecipheriv(R,_,v),w=[];return w.push(x.update(k)),w.push(x.final()),P.concat(w)}function L(z){var C;if(typeof z==="object"&&!P.isBuffer(z))C=z.passphrase,z=z.key;if(typeof z==="string")z=P.from(z);var D=H(z,C),S=D.tag,R=D.data,v,k;switch(S){case"CERTIFICATE":k=F.certificate.decode(R,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":if(!k)k=F.PublicKey.decode(R,"der");switch(v=k.algorithm.algorithm.join("."),v){case"1.2.840.113549.1.1.1":return F.RSAPublicKey.decode(k.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return k.subjectPrivateKey=k.subjectPublicKey,{type:"ec",data:k};case"1.2.840.10040.4.1":return k.algorithm.params.pub_key=F.DSAparam.decode(k.subjectPublicKey.data,"der"),{type:"dsa",data:k.algorithm.params};default:throw Error("unknown key id "+v)}case"ENCRYPTED PRIVATE KEY":R=F.EncryptedPrivateKey.decode(R,"der"),R=q(R,C);case"PRIVATE KEY":switch(k=F.PrivateKey.decode(R,"der"),v=k.algorithm.algorithm.join("."),v){case"1.2.840.113549.1.1.1":return F.RSAPrivateKey.decode(k.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:k.algorithm.curve,privateKey:F.ECPrivateKey.decode(k.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return k.algorithm.params.priv_key=F.DSAparam.decode(k.subjectPrivateKey,"der"),{type:"dsa",params:k.algorithm.params};default:throw Error("unknown key id "+v)}case"RSA PUBLIC KEY":return F.RSAPublicKey.decode(R,"der");case"RSA PRIVATE KEY":return F.RSAPrivateKey.decode(R,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:F.DSAPrivateKey.decode(R,"der")};case"EC PRIVATE KEY":return R=F.ECPrivateKey.decode(R,"der"),{curve:R.parameters.value,privateKey:R.privateKey};default:throw Error("unknown key type "+S)}}L.signature=F.signature,O.exports=L}),fQ=G0((I,O)=>{var F=RX(),T=LU().Buffer;O.exports=function(E,V){var P=T.alloc(0),q=0,L;while(P.length<V)L=H(q++),P=T.concat([P,F("sha1").update(E).update(L).digest()]);return P.slice(0,V)};function H(E){var V=T.allocUnsafe(4);return V.writeUInt32BE(E,0),V}}),cQ=G0((I,O)=>{O.exports=function(F,T){var H=F.length,E=-1;while(++E<H)F[E]^=T[E];return F}}),KZ=G0((I,O)=>{(function(F,T){function H(U,Q){if(!U)throw Error(Q||"Assertion failed")}function E(U,Q){U.super_=Q;var J=function(){};J.prototype=Q.prototype,U.prototype=new J,U.prototype.constructor=U}function V(U,Q,J){if(V.isBN(U))return U;if(this.negative=0,this.words=null,this.length=0,this.red=null,U!==null){if(Q==="le"||Q==="be")J=Q,Q=10;this._init(U||0,Q||10,J||"be")}}if(typeof F==="object")F.exports=V;else T.BN=V;V.BN=V,V.wordSize=26;var P;try{if(typeof window<"u"&&typeof window.Buffer<"u")P=window.Buffer;else P=(HU(),h0(FU)).Buffer}catch(U){}V.isBN=function(U){if(U instanceof V)return!0;return U!==null&&typeof U==="object"&&U.constructor.wordSize===V.wordSize&&Array.isArray(U.words)},V.max=function(U,Q){if(U.cmp(Q)>0)return U;return Q},V.min=function(U,Q){if(U.cmp(Q)<0)return U;return Q},V.prototype._init=function(U,Q,J){if(typeof U==="number")return this._initNumber(U,Q,J);if(typeof U==="object")return this._initArray(U,Q,J);if(Q==="hex")Q=16;H(Q===(Q|0)&&Q>=2&&Q<=36),U=U.toString().replace(/\s+/g,"");var Z=0;if(U[0]==="-")Z++,this.negative=1;if(Z<U.length){if(Q===16)this._parseHex(U,Z,J);else if(this._parseBase(U,Q,Z),J==="le")this._initArray(this.toArray(),Q,J)}},V.prototype._initNumber=function(U,Q,J){if(U<0)this.negative=1,U=-U;if(U<67108864)this.words=[U&67108863],this.length=1;else if(U<4503599627370496)this.words=[U&67108863,U/67108864&67108863],this.length=2;else H(U<9007199254740992),this.words=[U&67108863,U/67108864&67108863,1],this.length=3;if(J!=="le")return;this._initArray(this.toArray(),Q,J)},V.prototype._initArray=function(U,Q,J){if(H(typeof U.length==="number"),U.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(U.length/3),this.words=Array(this.length);for(var Z=0;Z<this.length;Z++)this.words[Z]=0;var Y,K,W=0;if(J==="be"){for(Z=U.length-1,Y=0;Z>=0;Z-=3)if(K=U[Z]|U[Z-1]<<8|U[Z-2]<<16,this.words[Y]|=K<<W&67108863,this.words[Y+1]=K>>>26-W&67108863,W+=24,W>=26)W-=26,Y++}else if(J==="le"){for(Z=0,Y=0;Z<U.length;Z+=3)if(K=U[Z]|U[Z+1]<<8|U[Z+2]<<16,this.words[Y]|=K<<W&67108863,this.words[Y+1]=K>>>26-W&67108863,W+=24,W>=26)W-=26,Y++}return this.strip()};function q(U,Q){var J=U.charCodeAt(Q);if(J>=65&&J<=70)return J-55;else if(J>=97&&J<=102)return J-87;else return J-48&15}function L(U,Q,J){var Z=q(U,J);if(J-1>=Q)Z|=q(U,J-1)<<4;return Z}V.prototype._parseHex=function(U,Q,J){this.length=Math.ceil((U.length-Q)/6),this.words=Array(this.length);for(var Z=0;Z<this.length;Z++)this.words[Z]=0;var Y=0,K=0,W;if(J==="be")for(Z=U.length-1;Z>=Q;Z-=2)if(W=L(U,Q,Z)<<Y,this.words[K]|=W&67108863,Y>=18)Y-=18,K+=1,this.words[K]|=W>>>26;else Y+=8;else{var G=U.length-Q;for(Z=G%2===0?Q+1:Q;Z<U.length;Z+=2)if(W=L(U,Q,Z)<<Y,this.words[K]|=W&67108863,Y>=18)Y-=18,K+=1,this.words[K]|=W>>>26;else Y+=8}this.strip()};function z(U,Q,J,Z){var Y=0,K=Math.min(U.length,J);for(var W=Q;W<K;W++){var G=U.charCodeAt(W)-48;if(Y*=Z,G>=49)Y+=G-49+10;else if(G>=17)Y+=G-17+10;else Y+=G}return Y}V.prototype._parseBase=function(U,Q,J){this.words=[0],this.length=1;for(var Z=0,Y=1;Y<=67108863;Y*=Q)Z++;Z--,Y=Y/Q|0;var K=U.length-J,W=K%Z,G=Math.min(K,K-W)+J,X=0;for(var $=J;$<G;$+=Z)if(X=z(U,$,$+Z,Q),this.imuln(Y),this.words[0]+X<67108864)this.words[0]+=X;else this._iaddn(X);if(W!==0){var M=1;X=z(U,$,U.length,Q);for($=0;$<W;$++)M*=Q;if(this.imuln(M),this.words[0]+X<67108864)this.words[0]+=X;else this._iaddn(X)}this.strip()},V.prototype.copy=function(U){U.words=Array(this.length);for(var Q=0;Q<this.length;Q++)U.words[Q]=this.words[Q];U.length=this.length,U.negative=this.negative,U.red=this.red},V.prototype.clone=function(){var U=new V(null);return this.copy(U),U},V.prototype._expand=function(U){while(this.length<U)this.words[this.length++]=0;return this},V.prototype.strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},V.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},V.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var C=["","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"],D=[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],S=[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];if(V.prototype.toString=function(U,Q){U=U||10,Q=Q|0||1;var J;if(U===16||U==="hex"){J="";var Z=0,Y=0;for(var K=0;K<this.length;K++){var W=this.words[K],G=((W<<Z|Y)&16777215).toString(16);if(Y=W>>>24-Z&16777215,Z+=2,Z>=26)Z-=26,K--;if(Y!==0||K!==this.length-1)J=C[6-G.length]+G+J;else J=G+J}if(Y!==0)J=Y.toString(16)+J;while(J.length%Q!==0)J="0"+J;if(this.negative!==0)J="-"+J;return J}if(U===(U|0)&&U>=2&&U<=36){var X=D[U],$=S[U];J="";var M=this.clone();M.negative=0;while(!M.isZero()){var A=M.modn($).toString(U);if(M=M.idivn($),!M.isZero())J=C[X-A.length]+A+J;else J=A+J}if(this.isZero())J="0"+J;while(J.length%Q!==0)J="0"+J;if(this.negative!==0)J="-"+J;return J}H(!1,"Base should be between 2 and 36")},V.prototype.toNumber=function(){var U=this.words[0];if(this.length===2)U+=this.words[1]*67108864;else if(this.length===3&&this.words[2]===1)U+=4503599627370496+this.words[1]*67108864;else if(this.length>2)H(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-U:U},V.prototype.toJSON=function(){return this.toString(16)},V.prototype.toBuffer=function(U,Q){return H(typeof P<"u"),this.toArrayLike(P,U,Q)},V.prototype.toArray=function(U,Q){return this.toArrayLike(Array,U,Q)},V.prototype.toArrayLike=function(U,Q,J){var Z=this.byteLength(),Y=J||Math.max(1,Z);H(Z<=Y,"byte array longer than desired length"),H(Y>0,"Requested array length <= 0"),this.strip();var K=Q==="le",W=new U(Y),G,X,$=this.clone();if(!K){for(X=0;X<Y-Z;X++)W[X]=0;for(X=0;!$.isZero();X++)G=$.andln(255),$.iushrn(8),W[Y-X-1]=G}else{for(X=0;!$.isZero();X++)G=$.andln(255),$.iushrn(8),W[X]=G;for(;X<Y;X++)W[X]=0}return W},Math.clz32)V.prototype._countBits=function(U){return 32-Math.clz32(U)};else V.prototype._countBits=function(U){var Q=U,J=0;if(Q>=4096)J+=13,Q>>>=13;if(Q>=64)J+=7,Q>>>=7;if(Q>=8)J+=4,Q>>>=4;if(Q>=2)J+=2,Q>>>=2;return J+Q};V.prototype._zeroBits=function(U){if(U===0)return 26;var Q=U,J=0;if((Q&8191)===0)J+=13,Q>>>=13;if((Q&127)===0)J+=7,Q>>>=7;if((Q&15)===0)J+=4,Q>>>=4;if((Q&3)===0)J+=2,Q>>>=2;if((Q&1)===0)J++;return J},V.prototype.bitLength=function(){var U=this.words[this.length-1],Q=this._countBits(U);return(this.length-1)*26+Q};function R(U){var Q=Array(U.bitLength());for(var J=0;J<Q.length;J++){var Z=J/26|0,Y=J%26;Q[J]=(U.words[Z]&1<<Y)>>>Y}return Q}V.prototype.zeroBits=function(){if(this.isZero())return 0;var U=0;for(var Q=0;Q<this.length;Q++){var J=this._zeroBits(this.words[Q]);if(U+=J,J!==26)break}return U},V.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},V.prototype.toTwos=function(U){if(this.negative!==0)return this.abs().inotn(U).iaddn(1);return this.clone()},V.prototype.fromTwos=function(U){if(this.testn(U-1))return this.notn(U).iaddn(1).ineg();return this.clone()},V.prototype.isNeg=function(){return this.negative!==0},V.prototype.neg=function(){return this.clone().ineg()},V.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},V.prototype.iuor=function(U){while(this.length<U.length)this.words[this.length++]=0;for(var Q=0;Q<U.length;Q++)this.words[Q]=this.words[Q]|U.words[Q];return this.strip()},V.prototype.ior=function(U){return H((this.negative|U.negative)===0),this.iuor(U)},V.prototype.or=function(U){if(this.length>U.length)return this.clone().ior(U);return U.clone().ior(this)},V.prototype.uor=function(U){if(this.length>U.length)return this.clone().iuor(U);return U.clone().iuor(this)},V.prototype.iuand=function(U){var Q;if(this.length>U.length)Q=U;else Q=this;for(var J=0;J<Q.length;J++)this.words[J]=this.words[J]&U.words[J];return this.length=Q.length,this.strip()},V.prototype.iand=function(U){return H((this.negative|U.negative)===0),this.iuand(U)},V.prototype.and=function(U){if(this.length>U.length)return this.clone().iand(U);return U.clone().iand(this)},V.prototype.uand=function(U){if(this.length>U.length)return this.clone().iuand(U);return U.clone().iuand(this)},V.prototype.iuxor=function(U){var Q,J;if(this.length>U.length)Q=this,J=U;else Q=U,J=this;for(var Z=0;Z<J.length;Z++)this.words[Z]=Q.words[Z]^J.words[Z];if(this!==Q)for(;Z<Q.length;Z++)this.words[Z]=Q.words[Z];return this.length=Q.length,this.strip()},V.prototype.ixor=function(U){return H((this.negative|U.negative)===0),this.iuxor(U)},V.prototype.xor=function(U){if(this.length>U.length)return this.clone().ixor(U);return U.clone().ixor(this)},V.prototype.uxor=function(U){if(this.length>U.length)return this.clone().iuxor(U);return U.clone().iuxor(this)},V.prototype.inotn=function(U){H(typeof U==="number"&&U>=0);var Q=Math.ceil(U/26)|0,J=U%26;if(this._expand(Q),J>0)Q--;for(var Z=0;Z<Q;Z++)this.words[Z]=~this.words[Z]&67108863;if(J>0)this.words[Z]=~this.words[Z]&67108863>>26-J;return this.strip()},V.prototype.notn=function(U){return this.clone().inotn(U)},V.prototype.setn=function(U,Q){H(typeof U==="number"&&U>=0);var J=U/26|0,Z=U%26;if(this._expand(J+1),Q)this.words[J]=this.words[J]|1<<Z;else this.words[J]=this.words[J]&~(1<<Z);return this.strip()},V.prototype.iadd=function(U){var Q;if(this.negative!==0&&U.negative===0)return this.negative=0,Q=this.isub(U),this.negative^=1,this._normSign();else if(this.negative===0&&U.negative!==0)return U.negative=0,Q=this.isub(U),U.negative=1,Q._normSign();var J,Z;if(this.length>U.length)J=this,Z=U;else J=U,Z=this;var Y=0;for(var K=0;K<Z.length;K++)Q=(J.words[K]|0)+(Z.words[K]|0)+Y,this.words[K]=Q&67108863,Y=Q>>>26;for(;Y!==0&&K<J.length;K++)Q=(J.words[K]|0)+Y,this.words[K]=Q&67108863,Y=Q>>>26;if(this.length=J.length,Y!==0)this.words[this.length]=Y,this.length++;else if(J!==this)for(;K<J.length;K++)this.words[K]=J.words[K];return this},V.prototype.add=function(U){var Q;if(U.negative!==0&&this.negative===0)return U.negative=0,Q=this.sub(U),U.negative^=1,Q;else if(U.negative===0&&this.negative!==0)return this.negative=0,Q=U.sub(this),this.negative=1,Q;if(this.length>U.length)return this.clone().iadd(U);return U.clone().iadd(this)},V.prototype.isub=function(U){if(U.negative!==0){U.negative=0;var Q=this.iadd(U);return U.negative=1,Q._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(U),this.negative=1,this._normSign();var J=this.cmp(U);if(J===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Z,Y;if(J>0)Z=this,Y=U;else Z=U,Y=this;var K=0;for(var W=0;W<Y.length;W++)Q=(Z.words[W]|0)-(Y.words[W]|0)+K,K=Q>>26,this.words[W]=Q&67108863;for(;K!==0&&W<Z.length;W++)Q=(Z.words[W]|0)+K,K=Q>>26,this.words[W]=Q&67108863;if(K===0&&W<Z.length&&Z!==this)for(;W<Z.length;W++)this.words[W]=Z.words[W];if(this.length=Math.max(this.length,W),Z!==this)this.negative=1;return this.strip()},V.prototype.sub=function(U){return this.clone().isub(U)};function v(U,Q,J){J.negative=Q.negative^U.negative;var Z=U.length+Q.length|0;J.length=Z,Z=Z-1|0;var Y=U.words[0]|0,K=Q.words[0]|0,W=Y*K,G=W&67108863,X=W/67108864|0;J.words[0]=G;for(var $=1;$<Z;$++){var M=X>>>26,A=X&67108863,j=Math.min($,Q.length-1);for(var g=Math.max(0,$-U.length+1);g<=j;g++){var p=$-g|0;Y=U.words[p]|0,K=Q.words[g]|0,W=Y*K+A,M+=W/67108864|0,A=W&67108863}J.words[$]=A|0,X=M|0}if(X!==0)J.words[$]=X|0;else J.length--;return J.strip()}var k=function(U,Q,J){var Z=U.words,Y=Q.words,K=J.words,W=0,G,X,$,M=Z[0]|0,A=M&8191,j=M>>>13,g=Z[1]|0,p=g&8191,n=g>>>13,K0=Z[2]|0,r=K0&8191,l=K0>>>13,Q0=Z[3]|0,m=Q0&8191,i=Q0>>>13,g0=Z[4]|0,f=g0&8191,h=g0>>>13,Y0=Z[5]|0,t=Y0&8191,e=Y0>>>13,L0=Z[6]|0,c=L0&8191,o=L0>>>13,N0=Z[7]|0,s=N0&8191,Z0=N0>>>13,y0=Z[8]|0,F0=y0&8191,H0=y0>>>13,n0=Z[9]|0,O0=n0&8191,C0=n0>>>13,t0=Y[0]|0,D0=t0&8191,T0=t0>>>13,TU=Y[1]|0,E0=TU&8191,k0=TU>>>13,DU=Y[2]|0,j0=DU&8191,M0=DU>>>13,CU=Y[3]|0,v0=CU&8191,S0=CU>>>13,KU=Y[4]|0,_0=KU&8191,B0=KU>>>13,OU=Y[5]|0,R0=OU&8191,N=OU>>>13,b=Y[6]|0,a=b&8191,U0=b>>>13,w0=Y[7]|0,W0=w0&8191,A0=w0>>>13,m0=Y[8]|0,q0=m0&8191,x0=m0>>>13,AU=Y[9]|0,P0=AU&8191,z0=AU>>>13;J.negative=U.negative^Q.negative,J.length=19,G=Math.imul(A,D0),X=Math.imul(A,T0),X=X+Math.imul(j,D0)|0,$=Math.imul(j,T0);var s0=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(s0>>>26)|0,s0&=67108863,G=Math.imul(p,D0),X=Math.imul(p,T0),X=X+Math.imul(n,D0)|0,$=Math.imul(n,T0),G=G+Math.imul(A,E0)|0,X=X+Math.imul(A,k0)|0,X=X+Math.imul(j,E0)|0,$=$+Math.imul(j,k0)|0;var c0=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(c0>>>26)|0,c0&=67108863,G=Math.imul(r,D0),X=Math.imul(r,T0),X=X+Math.imul(l,D0)|0,$=Math.imul(l,T0),G=G+Math.imul(p,E0)|0,X=X+Math.imul(p,k0)|0,X=X+Math.imul(n,E0)|0,$=$+Math.imul(n,k0)|0,G=G+Math.imul(A,j0)|0,X=X+Math.imul(A,M0)|0,X=X+Math.imul(j,j0)|0,$=$+Math.imul(j,M0)|0;var f0=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(f0>>>26)|0,f0&=67108863,G=Math.imul(m,D0),X=Math.imul(m,T0),X=X+Math.imul(i,D0)|0,$=Math.imul(i,T0),G=G+Math.imul(r,E0)|0,X=X+Math.imul(r,k0)|0,X=X+Math.imul(l,E0)|0,$=$+Math.imul(l,k0)|0,G=G+Math.imul(p,j0)|0,X=X+Math.imul(p,M0)|0,X=X+Math.imul(n,j0)|0,$=$+Math.imul(n,M0)|0,G=G+Math.imul(A,v0)|0,X=X+Math.imul(A,S0)|0,X=X+Math.imul(j,v0)|0,$=$+Math.imul(j,S0)|0;var l0=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(l0>>>26)|0,l0&=67108863,G=Math.imul(f,D0),X=Math.imul(f,T0),X=X+Math.imul(h,D0)|0,$=Math.imul(h,T0),G=G+Math.imul(m,E0)|0,X=X+Math.imul(m,k0)|0,X=X+Math.imul(i,E0)|0,$=$+Math.imul(i,k0)|0,G=G+Math.imul(r,j0)|0,X=X+Math.imul(r,M0)|0,X=X+Math.imul(l,j0)|0,$=$+Math.imul(l,M0)|0,G=G+Math.imul(p,v0)|0,X=X+Math.imul(p,S0)|0,X=X+Math.imul(n,v0)|0,$=$+Math.imul(n,S0)|0,G=G+Math.imul(A,_0)|0,X=X+Math.imul(A,B0)|0,X=X+Math.imul(j,_0)|0,$=$+Math.imul(j,B0)|0;var b0=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(b0>>>26)|0,b0&=67108863,G=Math.imul(t,D0),X=Math.imul(t,T0),X=X+Math.imul(e,D0)|0,$=Math.imul(e,T0),G=G+Math.imul(f,E0)|0,X=X+Math.imul(f,k0)|0,X=X+Math.imul(h,E0)|0,$=$+Math.imul(h,k0)|0,G=G+Math.imul(m,j0)|0,X=X+Math.imul(m,M0)|0,X=X+Math.imul(i,j0)|0,$=$+Math.imul(i,M0)|0,G=G+Math.imul(r,v0)|0,X=X+Math.imul(r,S0)|0,X=X+Math.imul(l,v0)|0,$=$+Math.imul(l,S0)|0,G=G+Math.imul(p,_0)|0,X=X+Math.imul(p,B0)|0,X=X+Math.imul(n,_0)|0,$=$+Math.imul(n,B0)|0,G=G+Math.imul(A,R0)|0,X=X+Math.imul(A,N)|0,X=X+Math.imul(j,R0)|0,$=$+Math.imul(j,N)|0;var r0=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(r0>>>26)|0,r0&=67108863,G=Math.imul(c,D0),X=Math.imul(c,T0),X=X+Math.imul(o,D0)|0,$=Math.imul(o,T0),G=G+Math.imul(t,E0)|0,X=X+Math.imul(t,k0)|0,X=X+Math.imul(e,E0)|0,$=$+Math.imul(e,k0)|0,G=G+Math.imul(f,j0)|0,X=X+Math.imul(f,M0)|0,X=X+Math.imul(h,j0)|0,$=$+Math.imul(h,M0)|0,G=G+Math.imul(m,v0)|0,X=X+Math.imul(m,S0)|0,X=X+Math.imul(i,v0)|0,$=$+Math.imul(i,S0)|0,G=G+Math.imul(r,_0)|0,X=X+Math.imul(r,B0)|0,X=X+Math.imul(l,_0)|0,$=$+Math.imul(l,B0)|0,G=G+Math.imul(p,R0)|0,X=X+Math.imul(p,N)|0,X=X+Math.imul(n,R0)|0,$=$+Math.imul(n,N)|0,G=G+Math.imul(A,a)|0,X=X+Math.imul(A,U0)|0,X=X+Math.imul(j,a)|0,$=$+Math.imul(j,U0)|0;var a0=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(a0>>>26)|0,a0&=67108863,G=Math.imul(s,D0),X=Math.imul(s,T0),X=X+Math.imul(Z0,D0)|0,$=Math.imul(Z0,T0),G=G+Math.imul(c,E0)|0,X=X+Math.imul(c,k0)|0,X=X+Math.imul(o,E0)|0,$=$+Math.imul(o,k0)|0,G=G+Math.imul(t,j0)|0,X=X+Math.imul(t,M0)|0,X=X+Math.imul(e,j0)|0,$=$+Math.imul(e,M0)|0,G=G+Math.imul(f,v0)|0,X=X+Math.imul(f,S0)|0,X=X+Math.imul(h,v0)|0,$=$+Math.imul(h,S0)|0,G=G+Math.imul(m,_0)|0,X=X+Math.imul(m,B0)|0,X=X+Math.imul(i,_0)|0,$=$+Math.imul(i,B0)|0,G=G+Math.imul(r,R0)|0,X=X+Math.imul(r,N)|0,X=X+Math.imul(l,R0)|0,$=$+Math.imul(l,N)|0,G=G+Math.imul(p,a)|0,X=X+Math.imul(p,U0)|0,X=X+Math.imul(n,a)|0,$=$+Math.imul(n,U0)|0,G=G+Math.imul(A,W0)|0,X=X+Math.imul(A,A0)|0,X=X+Math.imul(j,W0)|0,$=$+Math.imul(j,A0)|0;var e0=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(e0>>>26)|0,e0&=67108863,G=Math.imul(F0,D0),X=Math.imul(F0,T0),X=X+Math.imul(H0,D0)|0,$=Math.imul(H0,T0),G=G+Math.imul(s,E0)|0,X=X+Math.imul(s,k0)|0,X=X+Math.imul(Z0,E0)|0,$=$+Math.imul(Z0,k0)|0,G=G+Math.imul(c,j0)|0,X=X+Math.imul(c,M0)|0,X=X+Math.imul(o,j0)|0,$=$+Math.imul(o,M0)|0,G=G+Math.imul(t,v0)|0,X=X+Math.imul(t,S0)|0,X=X+Math.imul(e,v0)|0,$=$+Math.imul(e,S0)|0,G=G+Math.imul(f,_0)|0,X=X+Math.imul(f,B0)|0,X=X+Math.imul(h,_0)|0,$=$+Math.imul(h,B0)|0,G=G+Math.imul(m,R0)|0,X=X+Math.imul(m,N)|0,X=X+Math.imul(i,R0)|0,$=$+Math.imul(i,N)|0,G=G+Math.imul(r,a)|0,X=X+Math.imul(r,U0)|0,X=X+Math.imul(l,a)|0,$=$+Math.imul(l,U0)|0,G=G+Math.imul(p,W0)|0,X=X+Math.imul(p,A0)|0,X=X+Math.imul(n,W0)|0,$=$+Math.imul(n,A0)|0,G=G+Math.imul(A,q0)|0,X=X+Math.imul(A,x0)|0,X=X+Math.imul(j,q0)|0,$=$+Math.imul(j,x0)|0;var i0=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(i0>>>26)|0,i0&=67108863,G=Math.imul(O0,D0),X=Math.imul(O0,T0),X=X+Math.imul(C0,D0)|0,$=Math.imul(C0,T0),G=G+Math.imul(F0,E0)|0,X=X+Math.imul(F0,k0)|0,X=X+Math.imul(H0,E0)|0,$=$+Math.imul(H0,k0)|0,G=G+Math.imul(s,j0)|0,X=X+Math.imul(s,M0)|0,X=X+Math.imul(Z0,j0)|0,$=$+Math.imul(Z0,M0)|0,G=G+Math.imul(c,v0)|0,X=X+Math.imul(c,S0)|0,X=X+Math.imul(o,v0)|0,$=$+Math.imul(o,S0)|0,G=G+Math.imul(t,_0)|0,X=X+Math.imul(t,B0)|0,X=X+Math.imul(e,_0)|0,$=$+Math.imul(e,B0)|0,G=G+Math.imul(f,R0)|0,X=X+Math.imul(f,N)|0,X=X+Math.imul(h,R0)|0,$=$+Math.imul(h,N)|0,G=G+Math.imul(m,a)|0,X=X+Math.imul(m,U0)|0,X=X+Math.imul(i,a)|0,$=$+Math.imul(i,U0)|0,G=G+Math.imul(r,W0)|0,X=X+Math.imul(r,A0)|0,X=X+Math.imul(l,W0)|0,$=$+Math.imul(l,A0)|0,G=G+Math.imul(p,q0)|0,X=X+Math.imul(p,x0)|0,X=X+Math.imul(n,q0)|0,$=$+Math.imul(n,x0)|0,G=G+Math.imul(A,P0)|0,X=X+Math.imul(A,z0)|0,X=X+Math.imul(j,P0)|0,$=$+Math.imul(j,z0)|0;var UU=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(UU>>>26)|0,UU&=67108863,G=Math.imul(O0,E0),X=Math.imul(O0,k0),X=X+Math.imul(C0,E0)|0,$=Math.imul(C0,k0),G=G+Math.imul(F0,j0)|0,X=X+Math.imul(F0,M0)|0,X=X+Math.imul(H0,j0)|0,$=$+Math.imul(H0,M0)|0,G=G+Math.imul(s,v0)|0,X=X+Math.imul(s,S0)|0,X=X+Math.imul(Z0,v0)|0,$=$+Math.imul(Z0,S0)|0,G=G+Math.imul(c,_0)|0,X=X+Math.imul(c,B0)|0,X=X+Math.imul(o,_0)|0,$=$+Math.imul(o,B0)|0,G=G+Math.imul(t,R0)|0,X=X+Math.imul(t,N)|0,X=X+Math.imul(e,R0)|0,$=$+Math.imul(e,N)|0,G=G+Math.imul(f,a)|0,X=X+Math.imul(f,U0)|0,X=X+Math.imul(h,a)|0,$=$+Math.imul(h,U0)|0,G=G+Math.imul(m,W0)|0,X=X+Math.imul(m,A0)|0,X=X+Math.imul(i,W0)|0,$=$+Math.imul(i,A0)|0,G=G+Math.imul(r,q0)|0,X=X+Math.imul(r,x0)|0,X=X+Math.imul(l,q0)|0,$=$+Math.imul(l,x0)|0,G=G+Math.imul(p,P0)|0,X=X+Math.imul(p,z0)|0,X=X+Math.imul(n,P0)|0,$=$+Math.imul(n,z0)|0;var XU=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(XU>>>26)|0,XU&=67108863,G=Math.imul(O0,j0),X=Math.imul(O0,M0),X=X+Math.imul(C0,j0)|0,$=Math.imul(C0,M0),G=G+Math.imul(F0,v0)|0,X=X+Math.imul(F0,S0)|0,X=X+Math.imul(H0,v0)|0,$=$+Math.imul(H0,S0)|0,G=G+Math.imul(s,_0)|0,X=X+Math.imul(s,B0)|0,X=X+Math.imul(Z0,_0)|0,$=$+Math.imul(Z0,B0)|0,G=G+Math.imul(c,R0)|0,X=X+Math.imul(c,N)|0,X=X+Math.imul(o,R0)|0,$=$+Math.imul(o,N)|0,G=G+Math.imul(t,a)|0,X=X+Math.imul(t,U0)|0,X=X+Math.imul(e,a)|0,$=$+Math.imul(e,U0)|0,G=G+Math.imul(f,W0)|0,X=X+Math.imul(f,A0)|0,X=X+Math.imul(h,W0)|0,$=$+Math.imul(h,A0)|0,G=G+Math.imul(m,q0)|0,X=X+Math.imul(m,x0)|0,X=X+Math.imul(i,q0)|0,$=$+Math.imul(i,x0)|0,G=G+Math.imul(r,P0)|0,X=X+Math.imul(r,z0)|0,X=X+Math.imul(l,P0)|0,$=$+Math.imul(l,z0)|0;var ZU=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(ZU>>>26)|0,ZU&=67108863,G=Math.imul(O0,v0),X=Math.imul(O0,S0),X=X+Math.imul(C0,v0)|0,$=Math.imul(C0,S0),G=G+Math.imul(F0,_0)|0,X=X+Math.imul(F0,B0)|0,X=X+Math.imul(H0,_0)|0,$=$+Math.imul(H0,B0)|0,G=G+Math.imul(s,R0)|0,X=X+Math.imul(s,N)|0,X=X+Math.imul(Z0,R0)|0,$=$+Math.imul(Z0,N)|0,G=G+Math.imul(c,a)|0,X=X+Math.imul(c,U0)|0,X=X+Math.imul(o,a)|0,$=$+Math.imul(o,U0)|0,G=G+Math.imul(t,W0)|0,X=X+Math.imul(t,A0)|0,X=X+Math.imul(e,W0)|0,$=$+Math.imul(e,A0)|0,G=G+Math.imul(f,q0)|0,X=X+Math.imul(f,x0)|0,X=X+Math.imul(h,q0)|0,$=$+Math.imul(h,x0)|0,G=G+Math.imul(m,P0)|0,X=X+Math.imul(m,z0)|0,X=X+Math.imul(i,P0)|0,$=$+Math.imul(i,z0)|0;var QU=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(QU>>>26)|0,QU&=67108863,G=Math.imul(O0,_0),X=Math.imul(O0,B0),X=X+Math.imul(C0,_0)|0,$=Math.imul(C0,B0),G=G+Math.imul(F0,R0)|0,X=X+Math.imul(F0,N)|0,X=X+Math.imul(H0,R0)|0,$=$+Math.imul(H0,N)|0,G=G+Math.imul(s,a)|0,X=X+Math.imul(s,U0)|0,X=X+Math.imul(Z0,a)|0,$=$+Math.imul(Z0,U0)|0,G=G+Math.imul(c,W0)|0,X=X+Math.imul(c,A0)|0,X=X+Math.imul(o,W0)|0,$=$+Math.imul(o,A0)|0,G=G+Math.imul(t,q0)|0,X=X+Math.imul(t,x0)|0,X=X+Math.imul(e,q0)|0,$=$+Math.imul(e,x0)|0,G=G+Math.imul(f,P0)|0,X=X+Math.imul(f,z0)|0,X=X+Math.imul(h,P0)|0,$=$+Math.imul(h,z0)|0;var YU=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(YU>>>26)|0,YU&=67108863,G=Math.imul(O0,R0),X=Math.imul(O0,N),X=X+Math.imul(C0,R0)|0,$=Math.imul(C0,N),G=G+Math.imul(F0,a)|0,X=X+Math.imul(F0,U0)|0,X=X+Math.imul(H0,a)|0,$=$+Math.imul(H0,U0)|0,G=G+Math.imul(s,W0)|0,X=X+Math.imul(s,A0)|0,X=X+Math.imul(Z0,W0)|0,$=$+Math.imul(Z0,A0)|0,G=G+Math.imul(c,q0)|0,X=X+Math.imul(c,x0)|0,X=X+Math.imul(o,q0)|0,$=$+Math.imul(o,x0)|0,G=G+Math.imul(t,P0)|0,X=X+Math.imul(t,z0)|0,X=X+Math.imul(e,P0)|0,$=$+Math.imul(e,z0)|0;var JU=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(JU>>>26)|0,JU&=67108863,G=Math.imul(O0,a),X=Math.imul(O0,U0),X=X+Math.imul(C0,a)|0,$=Math.imul(C0,U0),G=G+Math.imul(F0,W0)|0,X=X+Math.imul(F0,A0)|0,X=X+Math.imul(H0,W0)|0,$=$+Math.imul(H0,A0)|0,G=G+Math.imul(s,q0)|0,X=X+Math.imul(s,x0)|0,X=X+Math.imul(Z0,q0)|0,$=$+Math.imul(Z0,x0)|0,G=G+Math.imul(c,P0)|0,X=X+Math.imul(c,z0)|0,X=X+Math.imul(o,P0)|0,$=$+Math.imul(o,z0)|0;var VU=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(VU>>>26)|0,VU&=67108863,G=Math.imul(O0,W0),X=Math.imul(O0,A0),X=X+Math.imul(C0,W0)|0,$=Math.imul(C0,A0),G=G+Math.imul(F0,q0)|0,X=X+Math.imul(F0,x0)|0,X=X+Math.imul(H0,q0)|0,$=$+Math.imul(H0,x0)|0,G=G+Math.imul(s,P0)|0,X=X+Math.imul(s,z0)|0,X=X+Math.imul(Z0,P0)|0,$=$+Math.imul(Z0,z0)|0;var GU=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(GU>>>26)|0,GU&=67108863,G=Math.imul(O0,q0),X=Math.imul(O0,x0),X=X+Math.imul(C0,q0)|0,$=Math.imul(C0,x0),G=G+Math.imul(F0,P0)|0,X=X+Math.imul(F0,z0)|0,X=X+Math.imul(H0,P0)|0,$=$+Math.imul(H0,z0)|0;var IU=(W+G|0)+((X&8191)<<13)|0;W=($+(X>>>13)|0)+(IU>>>26)|0,IU&=67108863,G=Math.imul(O0,P0),X=Math.imul(O0,z0),X=X+Math.imul(C0,P0)|0,$=Math.imul(C0,z0);var $U=(W+G|0)+((X&8191)<<13)|0;if(W=($+(X>>>13)|0)+($U>>>26)|0,$U&=67108863,K[0]=s0,K[1]=c0,K[2]=f0,K[3]=l0,K[4]=b0,K[5]=r0,K[6]=a0,K[7]=e0,K[8]=i0,K[9]=UU,K[10]=XU,K[11]=ZU,K[12]=QU,K[13]=YU,K[14]=JU,K[15]=VU,K[16]=GU,K[17]=IU,K[18]=$U,W!==0)K[19]=W,J.length++;return J};if(!Math.imul)k=v;function B(U,Q,J){J.negative=Q.negative^U.negative,J.length=U.length+Q.length;var Z=0,Y=0;for(var K=0;K<J.length-1;K++){var W=Y;Y=0;var G=Z&67108863,X=Math.min(K,Q.length-1);for(var $=Math.max(0,K-U.length+1);$<=X;$++){var M=K-$,A=U.words[M]|0,j=Q.words[$]|0,g=A*j,p=g&67108863;W=W+(g/67108864|0)|0,p=p+G|0,G=p&67108863,W=W+(p>>>26)|0,Y+=W>>>26,W&=67108863}J.words[K]=G,Z=W,W=Y}if(Z!==0)J.words[K]=Z;else J.length--;return J.strip()}function _(U,Q,J){var Z=new x;return Z.mulp(U,Q,J)}V.prototype.mulTo=function(U,Q){var J,Z=this.length+U.length;if(this.length===10&&U.length===10)J=k(this,U,Q);else if(Z<63)J=v(this,U,Q);else if(Z<1024)J=B(this,U,Q);else J=_(this,U,Q);return J};function x(U,Q){this.x=U,this.y=Q}x.prototype.makeRBT=function(U){var Q=Array(U),J=V.prototype._countBits(U)-1;for(var Z=0;Z<U;Z++)Q[Z]=this.revBin(Z,J,U);return Q},x.prototype.revBin=function(U,Q,J){if(U===0||U===J-1)return U;var Z=0;for(var Y=0;Y<Q;Y++)Z|=(U&1)<<Q-Y-1,U>>=1;return Z},x.prototype.permute=function(U,Q,J,Z,Y,K){for(var W=0;W<K;W++)Z[W]=Q[U[W]],Y[W]=J[U[W]]},x.prototype.transform=function(U,Q,J,Z,Y,K){this.permute(K,U,Q,J,Z,Y);for(var W=1;W<Y;W<<=1){var G=W<<1,X=Math.cos(2*Math.PI/G),$=Math.sin(2*Math.PI/G);for(var M=0;M<Y;M+=G){var A=X,j=$;for(var g=0;g<W;g++){var p=J[M+g],n=Z[M+g],K0=J[M+g+W],r=Z[M+g+W],l=A*K0-j*r;if(r=A*r+j*K0,K0=l,J[M+g]=p+K0,Z[M+g]=n+r,J[M+g+W]=p-K0,Z[M+g+W]=n-r,g!==G)l=X*A-$*j,j=X*j+$*A,A=l}}}},x.prototype.guessLen13b=function(U,Q){var J=Math.max(Q,U)|1,Z=J&1,Y=0;for(J=J/2|0;J;J=J>>>1)Y++;return 1<<Y+1+Z},x.prototype.conjugate=function(U,Q,J){if(J<=1)return;for(var Z=0;Z<J/2;Z++){var Y=U[Z];U[Z]=U[J-Z-1],U[J-Z-1]=Y,Y=Q[Z],Q[Z]=-Q[J-Z-1],Q[J-Z-1]=-Y}},x.prototype.normalize13b=function(U,Q){var J=0;for(var Z=0;Z<Q/2;Z++){var Y=Math.round(U[2*Z+1]/Q)*8192+Math.round(U[2*Z]/Q)+J;if(U[Z]=Y&67108863,Y<67108864)J=0;else J=Y/67108864|0}return U},x.prototype.convert13b=function(U,Q,J,Z){var Y=0;for(var K=0;K<Q;K++)Y=Y+(U[K]|0),J[2*K]=Y&8191,Y=Y>>>13,J[2*K+1]=Y&8191,Y=Y>>>13;for(K=2*Q;K<Z;++K)J[K]=0;H(Y===0),H((Y&-8192)===0)},x.prototype.stub=function(U){var Q=Array(U);for(var J=0;J<U;J++)Q[J]=0;return Q},x.prototype.mulp=function(U,Q,J){var Z=2*this.guessLen13b(U.length,Q.length),Y=this.makeRBT(Z),K=this.stub(Z),W=Array(Z),G=Array(Z),X=Array(Z),$=Array(Z),M=Array(Z),A=Array(Z),j=J.words;j.length=Z,this.convert13b(U.words,U.length,W,Z),this.convert13b(Q.words,Q.length,$,Z),this.transform(W,K,G,X,Z,Y),this.transform($,K,M,A,Z,Y);for(var g=0;g<Z;g++){var p=G[g]*M[g]-X[g]*A[g];X[g]=G[g]*A[g]+X[g]*M[g],G[g]=p}return this.conjugate(G,X,Z),this.transform(G,X,j,K,Z,Y),this.conjugate(j,K,Z),this.normalize13b(j,Z),J.negative=U.negative^Q.negative,J.length=U.length+Q.length,J.strip()},V.prototype.mul=function(U){var Q=new V(null);return Q.words=Array(this.length+U.length),this.mulTo(U,Q)},V.prototype.mulf=function(U){var Q=new V(null);return Q.words=Array(this.length+U.length),_(this,U,Q)},V.prototype.imul=function(U){return this.clone().mulTo(U,this)},V.prototype.imuln=function(U){H(typeof U==="number"),H(U<67108864);var Q=0;for(var J=0;J<this.length;J++){var Z=(this.words[J]|0)*U,Y=(Z&67108863)+(Q&67108863);Q>>=26,Q+=Z/67108864|0,Q+=Y>>>26,this.words[J]=Y&67108863}if(Q!==0)this.words[J]=Q,this.length++;return this.length=U===0?1:this.length,this},V.prototype.muln=function(U){return this.clone().imuln(U)},V.prototype.sqr=function(){return this.mul(this)},V.prototype.isqr=function(){return this.imul(this.clone())},V.prototype.pow=function(U){var Q=R(U);if(Q.length===0)return new V(1);var J=this;for(var Z=0;Z<Q.length;Z++,J=J.sqr())if(Q[Z]!==0)break;if(++Z<Q.length)for(var Y=J.sqr();Z<Q.length;Z++,Y=Y.sqr()){if(Q[Z]===0)continue;J=J.mul(Y)}return J},V.prototype.iushln=function(U){H(typeof U==="number"&&U>=0);var Q=U%26,J=(U-Q)/26,Z=67108863>>>26-Q<<26-Q,Y;if(Q!==0){var K=0;for(Y=0;Y<this.length;Y++){var W=this.words[Y]&Z,G=(this.words[Y]|0)-W<<Q;this.words[Y]=G|K,K=W>>>26-Q}if(K)this.words[Y]=K,this.length++}if(J!==0){for(Y=this.length-1;Y>=0;Y--)this.words[Y+J]=this.words[Y];for(Y=0;Y<J;Y++)this.words[Y]=0;this.length+=J}return this.strip()},V.prototype.ishln=function(U){return H(this.negative===0),this.iushln(U)},V.prototype.iushrn=function(U,Q,J){H(typeof U==="number"&&U>=0);var Z;if(Q)Z=(Q-Q%26)/26;else Z=0;var Y=U%26,K=Math.min((U-Y)/26,this.length),W=67108863^67108863>>>Y<<Y,G=J;if(Z-=K,Z=Math.max(0,Z),G){for(var X=0;X<K;X++)G.words[X]=this.words[X];G.length=K}if(K===0);else if(this.length>K){this.length-=K;for(X=0;X<this.length;X++)this.words[X]=this.words[X+K]}else this.words[0]=0,this.length=1;var $=0;for(X=this.length-1;X>=0&&($!==0||X>=Z);X--){var M=this.words[X]|0;this.words[X]=$<<26-Y|M>>>Y,$=M&W}if(G&&$!==0)G.words[G.length++]=$;if(this.length===0)this.words[0]=0,this.length=1;return this.strip()},V.prototype.ishrn=function(U,Q,J){return H(this.negative===0),this.iushrn(U,Q,J)},V.prototype.shln=function(U){return this.clone().ishln(U)},V.prototype.ushln=function(U){return this.clone().iushln(U)},V.prototype.shrn=function(U){return this.clone().ishrn(U)},V.prototype.ushrn=function(U){return this.clone().iushrn(U)},V.prototype.testn=function(U){H(typeof U==="number"&&U>=0);var Q=U%26,J=(U-Q)/26,Z=1<<Q;if(this.length<=J)return!1;var Y=this.words[J];return!!(Y&Z)},V.prototype.imaskn=function(U){H(typeof U==="number"&&U>=0);var Q=U%26,J=(U-Q)/26;if(H(this.negative===0,"imaskn works only with positive numbers"),this.length<=J)return this;if(Q!==0)J++;if(this.length=Math.min(J,this.length),Q!==0){var Z=67108863^67108863>>>Q<<Q;this.words[this.length-1]&=Z}return this.strip()},V.prototype.maskn=function(U){return this.clone().imaskn(U)},V.prototype.iaddn=function(U){if(H(typeof U==="number"),H(U<67108864),U<0)return this.isubn(-U);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<U)return this.words[0]=U-(this.words[0]|0),this.negative=0,this;return this.negative=0,this.isubn(U),this.negative=1,this}return this._iaddn(U)},V.prototype._iaddn=function(U){this.words[0]+=U;for(var Q=0;Q<this.length&&this.words[Q]>=67108864;Q++)if(this.words[Q]-=67108864,Q===this.length-1)this.words[Q+1]=1;else this.words[Q+1]++;return this.length=Math.max(this.length,Q+1),this},V.prototype.isubn=function(U){if(H(typeof U==="number"),H(U<67108864),U<0)return this.iaddn(-U);if(this.negative!==0)return this.negative=0,this.iaddn(U),this.negative=1,this;if(this.words[0]-=U,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Q=0;Q<this.length&&this.words[Q]<0;Q++)this.words[Q]+=67108864,this.words[Q+1]-=1;return this.strip()},V.prototype.addn=function(U){return this.clone().iaddn(U)},V.prototype.subn=function(U){return this.clone().isubn(U)},V.prototype.iabs=function(){return this.negative=0,this},V.prototype.abs=function(){return this.clone().iabs()},V.prototype._ishlnsubmul=function(U,Q,J){var Z=U.length+J,Y;this._expand(Z);var K,W=0;for(Y=0;Y<U.length;Y++){K=(this.words[Y+J]|0)+W;var G=(U.words[Y]|0)*Q;K-=G&67108863,W=(K>>26)-(G/67108864|0),this.words[Y+J]=K&67108863}for(;Y<this.length-J;Y++)K=(this.words[Y+J]|0)+W,W=K>>26,this.words[Y+J]=K&67108863;if(W===0)return this.strip();H(W===-1),W=0;for(Y=0;Y<this.length;Y++)K=-(this.words[Y]|0)+W,W=K>>26,this.words[Y]=K&67108863;return this.negative=1,this.strip()},V.prototype._wordDiv=function(U,Q){var J=this.length-U.length,Z=this.clone(),Y=U,K=Y.words[Y.length-1]|0,W=this._countBits(K);if(J=26-W,J!==0)Y=Y.ushln(J),Z.iushln(J),K=Y.words[Y.length-1]|0;var G=Z.length-Y.length,X;if(Q!=="mod"){X=new V(null),X.length=G+1,X.words=Array(X.length);for(var $=0;$<X.length;$++)X.words[$]=0}var M=Z.clone()._ishlnsubmul(Y,1,G);if(M.negative===0){if(Z=M,X)X.words[G]=1}for(var A=G-1;A>=0;A--){var j=(Z.words[Y.length+A]|0)*67108864+(Z.words[Y.length+A-1]|0);j=Math.min(j/K|0,67108863),Z._ishlnsubmul(Y,j,A);while(Z.negative!==0)if(j--,Z.negative=0,Z._ishlnsubmul(Y,1,A),!Z.isZero())Z.negative^=1;if(X)X.words[A]=j}if(X)X.strip();if(Z.strip(),Q!=="div"&&J!==0)Z.iushrn(J);return{div:X||null,mod:Z}},V.prototype.divmod=function(U,Q,J){if(H(!U.isZero()),this.isZero())return{div:new V(0),mod:new V(0)};var Z,Y,K;if(this.negative!==0&&U.negative===0){if(K=this.neg().divmod(U,Q),Q!=="mod")Z=K.div.neg();if(Q!=="div"){if(Y=K.mod.neg(),J&&Y.negative!==0)Y.iadd(U)}return{div:Z,mod:Y}}if(this.negative===0&&U.negative!==0){if(K=this.divmod(U.neg(),Q),Q!=="mod")Z=K.div.neg();return{div:Z,mod:K.mod}}if((this.negative&U.negative)!==0){if(K=this.neg().divmod(U.neg(),Q),Q!=="div"){if(Y=K.mod.neg(),J&&Y.negative!==0)Y.isub(U)}return{div:K.div,mod:Y}}if(U.length>this.length||this.cmp(U)<0)return{div:new V(0),mod:this};if(U.length===1){if(Q==="div")return{div:this.divn(U.words[0]),mod:null};if(Q==="mod")return{div:null,mod:new V(this.modn(U.words[0]))};return{div:this.divn(U.words[0]),mod:new V(this.modn(U.words[0]))}}return this._wordDiv(U,Q)},V.prototype.div=function(U){return this.divmod(U,"div",!1).div},V.prototype.mod=function(U){return this.divmod(U,"mod",!1).mod},V.prototype.umod=function(U){return this.divmod(U,"mod",!0).mod},V.prototype.divRound=function(U){var Q=this.divmod(U);if(Q.mod.isZero())return Q.div;var J=Q.div.negative!==0?Q.mod.isub(U):Q.mod,Z=U.ushrn(1),Y=U.andln(1),K=J.cmp(Z);if(K<0||Y===1&&K===0)return Q.div;return Q.div.negative!==0?Q.div.isubn(1):Q.div.iaddn(1)},V.prototype.modn=function(U){H(U<=67108863);var Q=67108864%U,J=0;for(var Z=this.length-1;Z>=0;Z--)J=(Q*J+(this.words[Z]|0))%U;return J},V.prototype.idivn=function(U){H(U<=67108863);var Q=0;for(var J=this.length-1;J>=0;J--){var Z=(this.words[J]|0)+Q*67108864;this.words[J]=Z/U|0,Q=Z%U}return this.strip()},V.prototype.divn=function(U){return this.clone().idivn(U)},V.prototype.egcd=function(U){H(U.negative===0),H(!U.isZero());var Q=this,J=U.clone();if(Q.negative!==0)Q=Q.umod(U);else Q=Q.clone();var Z=new V(1),Y=new V(0),K=new V(0),W=new V(1),G=0;while(Q.isEven()&&J.isEven())Q.iushrn(1),J.iushrn(1),++G;var X=J.clone(),$=Q.clone();while(!Q.isZero()){for(var M=0,A=1;(Q.words[0]&A)===0&&M<26;++M,A<<=1);if(M>0){Q.iushrn(M);while(M-- >0){if(Z.isOdd()||Y.isOdd())Z.iadd(X),Y.isub($);Z.iushrn(1),Y.iushrn(1)}}for(var j=0,g=1;(J.words[0]&g)===0&&j<26;++j,g<<=1);if(j>0){J.iushrn(j);while(j-- >0){if(K.isOdd()||W.isOdd())K.iadd(X),W.isub($);K.iushrn(1),W.iushrn(1)}}if(Q.cmp(J)>=0)Q.isub(J),Z.isub(K),Y.isub(W);else J.isub(Q),K.isub(Z),W.isub(Y)}return{a:K,b:W,gcd:J.iushln(G)}},V.prototype._invmp=function(U){H(U.negative===0),H(!U.isZero());var Q=this,J=U.clone();if(Q.negative!==0)Q=Q.umod(U);else Q=Q.clone();var Z=new V(1),Y=new V(0),K=J.clone();while(Q.cmpn(1)>0&&J.cmpn(1)>0){for(var W=0,G=1;(Q.words[0]&G)===0&&W<26;++W,G<<=1);if(W>0){Q.iushrn(W);while(W-- >0){if(Z.isOdd())Z.iadd(K);Z.iushrn(1)}}for(var X=0,$=1;(J.words[0]&$)===0&&X<26;++X,$<<=1);if(X>0){J.iushrn(X);while(X-- >0){if(Y.isOdd())Y.iadd(K);Y.iushrn(1)}}if(Q.cmp(J)>=0)Q.isub(J),Z.isub(Y);else J.isub(Q),Y.isub(Z)}var M;if(Q.cmpn(1)===0)M=Z;else M=Y;if(M.cmpn(0)<0)M.iadd(U);return M},V.prototype.gcd=function(U){if(this.isZero())return U.abs();if(U.isZero())return this.abs();var Q=this.clone(),J=U.clone();Q.negative=0,J.negative=0;for(var Z=0;Q.isEven()&&J.isEven();Z++)Q.iushrn(1),J.iushrn(1);do{while(Q.isEven())Q.iushrn(1);while(J.isEven())J.iushrn(1);var Y=Q.cmp(J);if(Y<0){var K=Q;Q=J,J=K}else if(Y===0||J.cmpn(1)===0)break;Q.isub(J)}while(!0);return J.iushln(Z)},V.prototype.invm=function(U){return this.egcd(U).a.umod(U)},V.prototype.isEven=function(){return(this.words[0]&1)===0},V.prototype.isOdd=function(){return(this.words[0]&1)===1},V.prototype.andln=function(U){return this.words[0]&U},V.prototype.bincn=function(U){H(typeof U==="number");var Q=U%26,J=(U-Q)/26,Z=1<<Q;if(this.length<=J)return this._expand(J+1),this.words[J]|=Z,this;var Y=Z;for(var K=J;Y!==0&&K<this.length;K++){var W=this.words[K]|0;W+=Y,Y=W>>>26,W&=67108863,this.words[K]=W}if(Y!==0)this.words[K]=Y,this.length++;return this},V.prototype.isZero=function(){return this.length===1&&this.words[0]===0},V.prototype.cmpn=function(U){var Q=U<0;if(this.negative!==0&&!Q)return-1;if(this.negative===0&&Q)return 1;this.strip();var J;if(this.length>1)J=1;else{if(Q)U=-U;H(U<=67108863,"Number is too big");var Z=this.words[0]|0;J=Z===U?0:Z<U?-1:1}if(this.negative!==0)return-J|0;return J},V.prototype.cmp=function(U){if(this.negative!==0&&U.negative===0)return-1;if(this.negative===0&&U.negative!==0)return 1;var Q=this.ucmp(U);if(this.negative!==0)return-Q|0;return Q},V.prototype.ucmp=function(U){if(this.length>U.length)return 1;if(this.length<U.length)return-1;var Q=0;for(var J=this.length-1;J>=0;J--){var Z=this.words[J]|0,Y=U.words[J]|0;if(Z===Y)continue;if(Z<Y)Q=-1;else if(Z>Y)Q=1;break}return Q},V.prototype.gtn=function(U){return this.cmpn(U)===1},V.prototype.gt=function(U){return this.cmp(U)===1},V.prototype.gten=function(U){return this.cmpn(U)>=0},V.prototype.gte=function(U){return this.cmp(U)>=0},V.prototype.ltn=function(U){return this.cmpn(U)===-1},V.prototype.lt=function(U){return this.cmp(U)===-1},V.prototype.lten=function(U){return this.cmpn(U)<=0},V.prototype.lte=function(U){return this.cmp(U)<=0},V.prototype.eqn=function(U){return this.cmpn(U)===0},V.prototype.eq=function(U){return this.cmp(U)===0},V.red=function(U){return new u(U)},V.prototype.toRed=function(U){return H(!this.red,"Already a number in reduction context"),H(this.negative===0,"red works only with positives"),U.convertTo(this)._forceRed(U)},V.prototype.fromRed=function(){return H(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},V.prototype._forceRed=function(U){return this.red=U,this},V.prototype.forceRed=function(U){return H(!this.red,"Already a number in reduction context"),this._forceRed(U)},V.prototype.redAdd=function(U){return H(this.red,"redAdd works only with red numbers"),this.red.add(this,U)},V.prototype.redIAdd=function(U){return H(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,U)},V.prototype.redSub=function(U){return H(this.red,"redSub works only with red numbers"),this.red.sub(this,U)},V.prototype.redISub=function(U){return H(this.red,"redISub works only with red numbers"),this.red.isub(this,U)},V.prototype.redShl=function(U){return H(this.red,"redShl works only with red numbers"),this.red.shl(this,U)},V.prototype.redMul=function(U){return H(this.red,"redMul works only with red numbers"),this.red._verify2(this,U),this.red.mul(this,U)},V.prototype.redIMul=function(U){return H(this.red,"redMul works only with red numbers"),this.red._verify2(this,U),this.red.imul(this,U)},V.prototype.redSqr=function(){return H(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},V.prototype.redISqr=function(){return H(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},V.prototype.redSqrt=function(){return H(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},V.prototype.redInvm=function(){return H(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},V.prototype.redNeg=function(){return H(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},V.prototype.redPow=function(U){return H(this.red&&!U.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,U)};var w={k256:null,p224:null,p192:null,p25519:null};function y(U,Q){this.name=U,this.p=new V(Q,16),this.n=this.p.bitLength(),this.k=new V(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}y.prototype._tmp=function(){var U=new V(null);return U.words=Array(Math.ceil(this.n/13)),U},y.prototype.ireduce=function(U){var Q=U,J;do this.split(Q,this.tmp),Q=this.imulK(Q),Q=Q.iadd(this.tmp),J=Q.bitLength();while(J>this.n);var Z=J<this.n?-1:Q.ucmp(this.p);if(Z===0)Q.words[0]=0,Q.length=1;else if(Z>0)Q.isub(this.p);else if(Q.strip!==void 0)Q.strip();else Q._strip();return Q},y.prototype.split=function(U,Q){U.iushrn(this.n,0,Q)},y.prototype.imulK=function(U){return U.imul(this.k)};function d(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}E(d,y),d.prototype.split=function(U,Q){var J=4194303,Z=Math.min(U.length,9);for(var Y=0;Y<Z;Y++)Q.words[Y]=U.words[Y];if(Q.length=Z,U.length<=9){U.words[0]=0,U.length=1;return}var K=U.words[9];Q.words[Q.length++]=K&J;for(Y=10;Y<U.length;Y++){var W=U.words[Y]|0;U.words[Y-10]=(W&J)<<4|K>>>22,K=W}if(K>>>=22,U.words[Y-10]=K,K===0&&U.length>10)U.length-=10;else U.length-=9},d.prototype.imulK=function(U){U.words[U.length]=0,U.words[U.length+1]=0,U.length+=2;var Q=0;for(var J=0;J<U.length;J++){var Z=U.words[J]|0;Q+=Z*977,U.words[J]=Q&67108863,Q=Z*64+(Q/67108864|0)}if(U.words[U.length-1]===0){if(U.length--,U.words[U.length-1]===0)U.length--}return U};function J0(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}E(J0,y);function I0(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}E(I0,y);function V0(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}E(V0,y),V0.prototype.imulK=function(U){var Q=0;for(var J=0;J<U.length;J++){var Z=(U.words[J]|0)*19+Q,Y=Z&67108863;Z>>>=26,U.words[J]=Y,Q=Z}if(Q!==0)U.words[U.length++]=Q;return U},V._prime=function(U){if(w[U])return w[U];var Q;if(U==="k256")Q=new d;else if(U==="p224")Q=new J0;else if(U==="p192")Q=new I0;else if(U==="p25519")Q=new V0;else throw Error("Unknown prime "+U);return w[U]=Q,Q};function u(U){if(typeof U==="string"){var Q=V._prime(U);this.m=Q.p,this.prime=Q}else H(U.gtn(1),"modulus must be greater than 1"),this.m=U,this.prime=null}u.prototype._verify1=function(U){H(U.negative===0,"red works only with positives"),H(U.red,"red works only with red numbers")},u.prototype._verify2=function(U,Q){H((U.negative|Q.negative)===0,"red works only with positives"),H(U.red&&U.red===Q.red,"red works only with red numbers")},u.prototype.imod=function(U){if(this.prime)return this.prime.ireduce(U)._forceRed(this);return U.umod(this.m)._forceRed(this)},u.prototype.neg=function(U){if(U.isZero())return U.clone();return this.m.sub(U)._forceRed(this)},u.prototype.add=function(U,Q){this._verify2(U,Q);var J=U.add(Q);if(J.cmp(this.m)>=0)J.isub(this.m);return J._forceRed(this)},u.prototype.iadd=function(U,Q){this._verify2(U,Q);var J=U.iadd(Q);if(J.cmp(this.m)>=0)J.isub(this.m);return J},u.prototype.sub=function(U,Q){this._verify2(U,Q);var J=U.sub(Q);if(J.cmpn(0)<0)J.iadd(this.m);return J._forceRed(this)},u.prototype.isub=function(U,Q){this._verify2(U,Q);var J=U.isub(Q);if(J.cmpn(0)<0)J.iadd(this.m);return J},u.prototype.shl=function(U,Q){return this._verify1(U),this.imod(U.ushln(Q))},u.prototype.imul=function(U,Q){return this._verify2(U,Q),this.imod(U.imul(Q))},u.prototype.mul=function(U,Q){return this._verify2(U,Q),this.imod(U.mul(Q))},u.prototype.isqr=function(U){return this.imul(U,U.clone())},u.prototype.sqr=function(U){return this.mul(U,U)},u.prototype.sqrt=function(U){if(U.isZero())return U.clone();var Q=this.m.andln(3);if(H(Q%2===1),Q===3){var J=this.m.add(new V(1)).iushrn(2);return this.pow(U,J)}var Z=this.m.subn(1),Y=0;while(!Z.isZero()&&Z.andln(1)===0)Y++,Z.iushrn(1);H(!Z.isZero());var K=new V(1).toRed(this),W=K.redNeg(),G=this.m.subn(1).iushrn(1),X=this.m.bitLength();X=new V(2*X*X).toRed(this);while(this.pow(X,G).cmp(W)!==0)X.redIAdd(W);var $=this.pow(X,Z),M=this.pow(U,Z.addn(1).iushrn(1)),A=this.pow(U,Z),j=Y;while(A.cmp(K)!==0){var g=A;for(var p=0;g.cmp(K)!==0;p++)g=g.redSqr();H(p<j);var n=this.pow($,new V(1).iushln(j-p-1));M=M.redMul(n),$=n.redSqr(),A=A.redMul($),j=p}return M},u.prototype.invm=function(U){var Q=U._invmp(this.m);if(Q.negative!==0)return Q.negative=0,this.imod(Q).redNeg();else return this.imod(Q)},u.prototype.pow=function(U,Q){if(Q.isZero())return new V(1).toRed(this);if(Q.cmpn(1)===0)return U.clone();var J=4,Z=Array(1<<J);Z[0]=new V(1).toRed(this),Z[1]=U;for(var Y=2;Y<Z.length;Y++)Z[Y]=this.mul(Z[Y-1],U);var K=Z[0],W=0,G=0,X=Q.bitLength()%26;if(X===0)X=26;for(Y=Q.length-1;Y>=0;Y--){var $=Q.words[Y];for(var M=X-1;M>=0;M--){var A=$>>M&1;if(K!==Z[0])K=this.sqr(K);if(A===0&&W===0){G=0;continue}if(W<<=1,W|=A,G++,G!==J&&(Y!==0||M!==0))continue;K=this.mul(K,Z[W]),G=0,W=0}X=26}return K},u.prototype.convertTo=function(U){var Q=U.umod(this.m);return Q===U?Q.clone():Q},u.prototype.convertFrom=function(U){var Q=U.clone();return Q.red=null,Q},V.mont=function(U){return new X0(U)};function X0(U){if(u.call(this,U),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new V(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)}E(X0,u),X0.prototype.convertTo=function(U){return this.imod(U.ushln(this.shift))},X0.prototype.convertFrom=function(U){var Q=this.imod(U.mul(this.rinv));return Q.red=null,Q},X0.prototype.imul=function(U,Q){if(U.isZero()||Q.isZero())return U.words[0]=0,U.length=1,U;var J=U.imul(Q),Z=J.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Y=J.isub(Z).iushrn(this.shift),K=Y;if(Y.cmp(this.m)>=0)K=Y.isub(this.m);else if(Y.cmpn(0)<0)K=Y.iadd(this.m);return K._forceRed(this)},X0.prototype.mul=function(U,Q){if(U.isZero()||Q.isZero())return new V(0)._forceRed(this);var J=U.mul(Q),Z=J.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Y=J.isub(Z).iushrn(this.shift),K=Y;if(Y.cmp(this.m)>=0)K=Y.isub(this.m);else if(Y.cmpn(0)<0)K=Y.iadd(this.m);return K._forceRed(this)},X0.prototype.invm=function(U){var Q=this.imod(U._invmp(this.m).mul(this.r2));return Q._forceRed(this)}})(typeof O>"u"||O,I)}),pQ=G0((I,O)=>{var F=KZ(),T=LU().Buffer;function H(E,V){return T.from(E.toRed(F.mont(V.modulus)).redPow(new F(V.publicExponent)).fromRed().toArray())}O.exports=H}),fV=G0((I,O)=>{(function(F,T){function H(Z,Y){if(!Z)throw Error(Y||"Assertion failed")}function E(Z,Y){Z.super_=Y;var K=function(){};K.prototype=Y.prototype,Z.prototype=new K,Z.prototype.constructor=Z}function V(Z,Y,K){if(V.isBN(Z))return Z;if(this.negative=0,this.words=null,this.length=0,this.red=null,Z!==null){if(Y==="le"||Y==="be")K=Y,Y=10;this._init(Z||0,Y||10,K||"be")}}if(typeof F==="object")F.exports=V;else T.BN=V;V.BN=V,V.wordSize=26;var P;try{if(typeof window<"u"&&typeof window.Buffer<"u")P=window.Buffer;else P=(HU(),h0(FU)).Buffer}catch(Z){}V.isBN=function(Z){if(Z instanceof V)return!0;return Z!==null&&typeof Z==="object"&&Z.constructor.wordSize===V.wordSize&&Array.isArray(Z.words)},V.max=function(Z,Y){if(Z.cmp(Y)>0)return Z;return Y},V.min=function(Z,Y){if(Z.cmp(Y)<0)return Z;return Y},V.prototype._init=function(Z,Y,K){if(typeof Z==="number")return this._initNumber(Z,Y,K);if(typeof Z==="object")return this._initArray(Z,Y,K);if(Y==="hex")Y=16;H(Y===(Y|0)&&Y>=2&&Y<=36),Z=Z.toString().replace(/\s+/g,"");var W=0;if(Z[0]==="-")W++,this.negative=1;if(W<Z.length){if(Y===16)this._parseHex(Z,W,K);else if(this._parseBase(Z,Y,W),K==="le")this._initArray(this.toArray(),Y,K)}},V.prototype._initNumber=function(Z,Y,K){if(Z<0)this.negative=1,Z=-Z;if(Z<67108864)this.words=[Z&67108863],this.length=1;else if(Z<4503599627370496)this.words=[Z&67108863,Z/67108864&67108863],this.length=2;else H(Z<9007199254740992),this.words=[Z&67108863,Z/67108864&67108863,1],this.length=3;if(K!=="le")return;this._initArray(this.toArray(),Y,K)},V.prototype._initArray=function(Z,Y,K){if(H(typeof Z.length==="number"),Z.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(Z.length/3),this.words=Array(this.length);for(var W=0;W<this.length;W++)this.words[W]=0;var G,X,$=0;if(K==="be"){for(W=Z.length-1,G=0;W>=0;W-=3)if(X=Z[W]|Z[W-1]<<8|Z[W-2]<<16,this.words[G]|=X<<$&67108863,this.words[G+1]=X>>>26-$&67108863,$+=24,$>=26)$-=26,G++}else if(K==="le"){for(W=0,G=0;W<Z.length;W+=3)if(X=Z[W]|Z[W+1]<<8|Z[W+2]<<16,this.words[G]|=X<<$&67108863,this.words[G+1]=X>>>26-$&67108863,$+=24,$>=26)$-=26,G++}return this._strip()};function q(Z,Y){var K=Z.charCodeAt(Y);if(K>=48&&K<=57)return K-48;else if(K>=65&&K<=70)return K-55;else if(K>=97&&K<=102)return K-87;else H(!1,"Invalid character in "+Z)}function L(Z,Y,K){var W=q(Z,K);if(K-1>=Y)W|=q(Z,K-1)<<4;return W}V.prototype._parseHex=function(Z,Y,K){this.length=Math.ceil((Z.length-Y)/6),this.words=Array(this.length);for(var W=0;W<this.length;W++)this.words[W]=0;var G=0,X=0,$;if(K==="be")for(W=Z.length-1;W>=Y;W-=2)if($=L(Z,Y,W)<<G,this.words[X]|=$&67108863,G>=18)G-=18,X+=1,this.words[X]|=$>>>26;else G+=8;else{var M=Z.length-Y;for(W=M%2===0?Y+1:Y;W<Z.length;W+=2)if($=L(Z,Y,W)<<G,this.words[X]|=$&67108863,G>=18)G-=18,X+=1,this.words[X]|=$>>>26;else G+=8}this._strip()};function z(Z,Y,K,W){var G=0,X=0,$=Math.min(Z.length,K);for(var M=Y;M<$;M++){var A=Z.charCodeAt(M)-48;if(G*=W,A>=49)X=A-49+10;else if(A>=17)X=A-17+10;else X=A;H(A>=0&&X<W,"Invalid character"),G+=X}return G}V.prototype._parseBase=function(Z,Y,K){this.words=[0],this.length=1;for(var W=0,G=1;G<=67108863;G*=Y)W++;W--,G=G/Y|0;var X=Z.length-K,$=X%W,M=Math.min(X,X-$)+K,A=0;for(var j=K;j<M;j+=W)if(A=z(Z,j,j+W,Y),this.imuln(G),this.words[0]+A<67108864)this.words[0]+=A;else this._iaddn(A);if($!==0){var g=1;A=z(Z,j,Z.length,Y);for(j=0;j<$;j++)g*=Y;if(this.imuln(g),this.words[0]+A<67108864)this.words[0]+=A;else this._iaddn(A)}this._strip()},V.prototype.copy=function(Z){Z.words=Array(this.length);for(var Y=0;Y<this.length;Y++)Z.words[Y]=this.words[Y];Z.length=this.length,Z.negative=this.negative,Z.red=this.red};function C(Z,Y){Z.words=Y.words,Z.length=Y.length,Z.negative=Y.negative,Z.red=Y.red}if(V.prototype._move=function(Z){C(Z,this)},V.prototype.clone=function(){var Z=new V(null);return this.copy(Z),Z},V.prototype._expand=function(Z){while(this.length<Z)this.words[this.length++]=0;return this},V.prototype._strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},V.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},typeof Symbol<"u"&&typeof Symbol.for==="function")try{V.prototype[Symbol.for("nodejs.util.inspect.custom")]=D}catch(Z){V.prototype.inspect=D}else V.prototype.inspect=D;function D(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var S=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],R=[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],v=[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];if(V.prototype.toString=function(Z,Y){Z=Z||10,Y=Y|0||1;var K;if(Z===16||Z==="hex"){K="";var W=0,G=0;for(var X=0;X<this.length;X++){var $=this.words[X],M=(($<<W|G)&16777215).toString(16);if(G=$>>>24-W&16777215,W+=2,W>=26)W-=26,X--;if(G!==0||X!==this.length-1)K=S[6-M.length]+M+K;else K=M+K}if(G!==0)K=G.toString(16)+K;while(K.length%Y!==0)K="0"+K;if(this.negative!==0)K="-"+K;return K}if(Z===(Z|0)&&Z>=2&&Z<=36){var A=R[Z],j=v[Z];K="";var g=this.clone();g.negative=0;while(!g.isZero()){var p=g.modrn(j).toString(Z);if(g=g.idivn(j),!g.isZero())K=S[A-p.length]+p+K;else K=p+K}if(this.isZero())K="0"+K;while(K.length%Y!==0)K="0"+K;if(this.negative!==0)K="-"+K;return K}H(!1,"Base should be between 2 and 36")},V.prototype.toNumber=function(){var Z=this.words[0];if(this.length===2)Z+=this.words[1]*67108864;else if(this.length===3&&this.words[2]===1)Z+=4503599627370496+this.words[1]*67108864;else if(this.length>2)H(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-Z:Z},V.prototype.toJSON=function(){return this.toString(16,2)},P)V.prototype.toBuffer=function(Z,Y){return this.toArrayLike(P,Z,Y)};V.prototype.toArray=function(Z,Y){return this.toArrayLike(Array,Z,Y)};var k=function(Z,Y){if(Z.allocUnsafe)return Z.allocUnsafe(Y);return new Z(Y)};if(V.prototype.toArrayLike=function(Z,Y,K){this._strip();var W=this.byteLength(),G=K||Math.max(1,W);H(W<=G,"byte array longer than desired length"),H(G>0,"Requested array length <= 0");var X=k(Z,G),$=Y==="le"?"LE":"BE";return this["_toArrayLike"+$](X,W),X},V.prototype._toArrayLikeLE=function(Z,Y){var K=0,W=0;for(var G=0,X=0;G<this.length;G++){var $=this.words[G]<<X|W;if(Z[K++]=$&255,K<Z.length)Z[K++]=$>>8&255;if(K<Z.length)Z[K++]=$>>16&255;if(X===6){if(K<Z.length)Z[K++]=$>>24&255;W=0,X=0}else W=$>>>24,X+=2}if(K<Z.length){Z[K++]=W;while(K<Z.length)Z[K++]=0}},V.prototype._toArrayLikeBE=function(Z,Y){var K=Z.length-1,W=0;for(var G=0,X=0;G<this.length;G++){var $=this.words[G]<<X|W;if(Z[K--]=$&255,K>=0)Z[K--]=$>>8&255;if(K>=0)Z[K--]=$>>16&255;if(X===6){if(K>=0)Z[K--]=$>>24&255;W=0,X=0}else W=$>>>24,X+=2}if(K>=0){Z[K--]=W;while(K>=0)Z[K--]=0}},Math.clz32)V.prototype._countBits=function(Z){return 32-Math.clz32(Z)};else V.prototype._countBits=function(Z){var Y=Z,K=0;if(Y>=4096)K+=13,Y>>>=13;if(Y>=64)K+=7,Y>>>=7;if(Y>=8)K+=4,Y>>>=4;if(Y>=2)K+=2,Y>>>=2;return K+Y};V.prototype._zeroBits=function(Z){if(Z===0)return 26;var Y=Z,K=0;if((Y&8191)===0)K+=13,Y>>>=13;if((Y&127)===0)K+=7,Y>>>=7;if((Y&15)===0)K+=4,Y>>>=4;if((Y&3)===0)K+=2,Y>>>=2;if((Y&1)===0)K++;return K},V.prototype.bitLength=function(){var Z=this.words[this.length-1],Y=this._countBits(Z);return(this.length-1)*26+Y};function B(Z){var Y=Array(Z.bitLength());for(var K=0;K<Y.length;K++){var W=K/26|0,G=K%26;Y[K]=Z.words[W]>>>G&1}return Y}V.prototype.zeroBits=function(){if(this.isZero())return 0;var Z=0;for(var Y=0;Y<this.length;Y++){var K=this._zeroBits(this.words[Y]);if(Z+=K,K!==26)break}return Z},V.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},V.prototype.toTwos=function(Z){if(this.negative!==0)return this.abs().inotn(Z).iaddn(1);return this.clone()},V.prototype.fromTwos=function(Z){if(this.testn(Z-1))return this.notn(Z).iaddn(1).ineg();return this.clone()},V.prototype.isNeg=function(){return this.negative!==0},V.prototype.neg=function(){return this.clone().ineg()},V.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},V.prototype.iuor=function(Z){while(this.length<Z.length)this.words[this.length++]=0;for(var Y=0;Y<Z.length;Y++)this.words[Y]=this.words[Y]|Z.words[Y];return this._strip()},V.prototype.ior=function(Z){return H((this.negative|Z.negative)===0),this.iuor(Z)},V.prototype.or=function(Z){if(this.length>Z.length)return this.clone().ior(Z);return Z.clone().ior(this)},V.prototype.uor=function(Z){if(this.length>Z.length)return this.clone().iuor(Z);return Z.clone().iuor(this)},V.prototype.iuand=function(Z){var Y;if(this.length>Z.length)Y=Z;else Y=this;for(var K=0;K<Y.length;K++)this.words[K]=this.words[K]&Z.words[K];return this.length=Y.length,this._strip()},V.prototype.iand=function(Z){return H((this.negative|Z.negative)===0),this.iuand(Z)},V.prototype.and=function(Z){if(this.length>Z.length)return this.clone().iand(Z);return Z.clone().iand(this)},V.prototype.uand=function(Z){if(this.length>Z.length)return this.clone().iuand(Z);return Z.clone().iuand(this)},V.prototype.iuxor=function(Z){var Y,K;if(this.length>Z.length)Y=this,K=Z;else Y=Z,K=this;for(var W=0;W<K.length;W++)this.words[W]=Y.words[W]^K.words[W];if(this!==Y)for(;W<Y.length;W++)this.words[W]=Y.words[W];return this.length=Y.length,this._strip()},V.prototype.ixor=function(Z){return H((this.negative|Z.negative)===0),this.iuxor(Z)},V.prototype.xor=function(Z){if(this.length>Z.length)return this.clone().ixor(Z);return Z.clone().ixor(this)},V.prototype.uxor=function(Z){if(this.length>Z.length)return this.clone().iuxor(Z);return Z.clone().iuxor(this)},V.prototype.inotn=function(Z){H(typeof Z==="number"&&Z>=0);var Y=Math.ceil(Z/26)|0,K=Z%26;if(this._expand(Y),K>0)Y--;for(var W=0;W<Y;W++)this.words[W]=~this.words[W]&67108863;if(K>0)this.words[W]=~this.words[W]&67108863>>26-K;return this._strip()},V.prototype.notn=function(Z){return this.clone().inotn(Z)},V.prototype.setn=function(Z,Y){H(typeof Z==="number"&&Z>=0);var K=Z/26|0,W=Z%26;if(this._expand(K+1),Y)this.words[K]=this.words[K]|1<<W;else this.words[K]=this.words[K]&~(1<<W);return this._strip()},V.prototype.iadd=function(Z){var Y;if(this.negative!==0&&Z.negative===0)return this.negative=0,Y=this.isub(Z),this.negative^=1,this._normSign();else if(this.negative===0&&Z.negative!==0)return Z.negative=0,Y=this.isub(Z),Z.negative=1,Y._normSign();var K,W;if(this.length>Z.length)K=this,W=Z;else K=Z,W=this;var G=0;for(var X=0;X<W.length;X++)Y=(K.words[X]|0)+(W.words[X]|0)+G,this.words[X]=Y&67108863,G=Y>>>26;for(;G!==0&&X<K.length;X++)Y=(K.words[X]|0)+G,this.words[X]=Y&67108863,G=Y>>>26;if(this.length=K.length,G!==0)this.words[this.length]=G,this.length++;else if(K!==this)for(;X<K.length;X++)this.words[X]=K.words[X];return this},V.prototype.add=function(Z){var Y;if(Z.negative!==0&&this.negative===0)return Z.negative=0,Y=this.sub(Z),Z.negative^=1,Y;else if(Z.negative===0&&this.negative!==0)return this.negative=0,Y=Z.sub(this),this.negative=1,Y;if(this.length>Z.length)return this.clone().iadd(Z);return Z.clone().iadd(this)},V.prototype.isub=function(Z){if(Z.negative!==0){Z.negative=0;var Y=this.iadd(Z);return Z.negative=1,Y._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(Z),this.negative=1,this._normSign();var K=this.cmp(Z);if(K===0)return this.negative=0,this.length=1,this.words[0]=0,this;var W,G;if(K>0)W=this,G=Z;else W=Z,G=this;var X=0;for(var $=0;$<G.length;$++)Y=(W.words[$]|0)-(G.words[$]|0)+X,X=Y>>26,this.words[$]=Y&67108863;for(;X!==0&&$<W.length;$++)Y=(W.words[$]|0)+X,X=Y>>26,this.words[$]=Y&67108863;if(X===0&&$<W.length&&W!==this)for(;$<W.length;$++)this.words[$]=W.words[$];if(this.length=Math.max(this.length,$),W!==this)this.negative=1;return this._strip()},V.prototype.sub=function(Z){return this.clone().isub(Z)};function _(Z,Y,K){K.negative=Y.negative^Z.negative;var W=Z.length+Y.length|0;K.length=W,W=W-1|0;var G=Z.words[0]|0,X=Y.words[0]|0,$=G*X,M=$&67108863,A=$/67108864|0;K.words[0]=M;for(var j=1;j<W;j++){var g=A>>>26,p=A&67108863,n=Math.min(j,Y.length-1);for(var K0=Math.max(0,j-Z.length+1);K0<=n;K0++){var r=j-K0|0;G=Z.words[r]|0,X=Y.words[K0]|0,$=G*X+p,g+=$/67108864|0,p=$&67108863}K.words[j]=p|0,A=g|0}if(A!==0)K.words[j]=A|0;else K.length--;return K._strip()}var x=function(Z,Y,K){var W=Z.words,G=Y.words,X=K.words,$=0,M,A,j,g=W[0]|0,p=g&8191,n=g>>>13,K0=W[1]|0,r=K0&8191,l=K0>>>13,Q0=W[2]|0,m=Q0&8191,i=Q0>>>13,g0=W[3]|0,f=g0&8191,h=g0>>>13,Y0=W[4]|0,t=Y0&8191,e=Y0>>>13,L0=W[5]|0,c=L0&8191,o=L0>>>13,N0=W[6]|0,s=N0&8191,Z0=N0>>>13,y0=W[7]|0,F0=y0&8191,H0=y0>>>13,n0=W[8]|0,O0=n0&8191,C0=n0>>>13,t0=W[9]|0,D0=t0&8191,T0=t0>>>13,TU=G[0]|0,E0=TU&8191,k0=TU>>>13,DU=G[1]|0,j0=DU&8191,M0=DU>>>13,CU=G[2]|0,v0=CU&8191,S0=CU>>>13,KU=G[3]|0,_0=KU&8191,B0=KU>>>13,OU=G[4]|0,R0=OU&8191,N=OU>>>13,b=G[5]|0,a=b&8191,U0=b>>>13,w0=G[6]|0,W0=w0&8191,A0=w0>>>13,m0=G[7]|0,q0=m0&8191,x0=m0>>>13,AU=G[8]|0,P0=AU&8191,z0=AU>>>13,s0=G[9]|0,c0=s0&8191,f0=s0>>>13;K.negative=Z.negative^Y.negative,K.length=19,M=Math.imul(p,E0),A=Math.imul(p,k0),A=A+Math.imul(n,E0)|0,j=Math.imul(n,k0);var l0=($+M|0)+((A&8191)<<13)|0;$=(j+(A>>>13)|0)+(l0>>>26)|0,l0&=67108863,M=Math.imul(r,E0),A=Math.imul(r,k0),A=A+Math.imul(l,E0)|0,j=Math.imul(l,k0),M=M+Math.imul(p,j0)|0,A=A+Math.imul(p,M0)|0,A=A+Math.imul(n,j0)|0,j=j+Math.imul(n,M0)|0;var b0=($+M|0)+((A&8191)<<13)|0;$=(j+(A>>>13)|0)+(b0>>>26)|0,b0&=67108863,M=Math.imul(m,E0),A=Math.imul(m,k0),A=A+Math.imul(i,E0)|0,j=Math.imul(i,k0),M=M+Math.imul(r,j0)|0,A=A+Math.imul(r,M0)|0,A=A+Math.imul(l,j0)|0,j=j+Math.imul(l,M0)|0,M=M+Math.imul(p,v0)|0,A=A+Math.imul(p,S0)|0,A=A+Math.imul(n,v0)|0,j=j+Math.imul(n,S0)|0;var r0=($+M|0)+((A&8191)<<13)|0;$=(j+(A>>>13)|0)+(r0>>>26)|0,r0&=67108863,M=Math.imul(f,E0),A=Math.imul(f,k0),A=A+Math.imul(h,E0)|0,j=Math.imul(h,k0),M=M+Math.imul(m,j0)|0,A=A+Math.imul(m,M0)|0,A=A+Math.imul(i,j0)|0,j=j+Math.imul(i,M0)|0,M=M+Math.imul(r,v0)|0,A=A+Math.imul(r,S0)|0,A=A+Math.imul(l,v0)|0,j=j+Math.imul(l,S0)|0,M=M+Math.imul(p,_0)|0,A=A+Math.imul(p,B0)|0,A=A+Math.imul(n,_0)|0,j=j+Math.imul(n,B0)|0;var a0=($+M|0)+((A&8191)<<13)|0;$=(j+(A>>>13)|0)+(a0>>>26)|0,a0&=67108863,M=Math.imul(t,E0),A=Math.imul(t,k0),A=A+Math.imul(e,E0)|0,j=Math.imul(e,k0),M=M+Math.imul(f,j0)|0,A=A+Math.imul(f,M0)|0,A=A+Math.imul(h,j0)|0,j=j+Math.imul(h,M0)|0,M=M+Math.imul(m,v0)|0,A=A+Math.imul(m,S0)|0,A=A+Math.imul(i,v0)|0,j=j+Math.imul(i,S0)|0,M=M+Math.imul(r,_0)|0,A=A+Math.imul(r,B0)|0,A=A+Math.imul(l,_0)|0,j=j+Math.imul(l,B0)|0,M=M+Math.imul(p,R0)|0,A=A+Math.imul(p,N)|0,A=A+Math.imul(n,R0)|0,j=j+Math.imul(n,N)|0;var e0=($+M|0)+((A&8191)<<13)|0;$=(j+(A>>>13)|0)+(e0>>>26)|0,e0&=67108863,M=Math.imul(c,E0),A=Math.imul(c,k0),A=A+Math.imul(o,E0)|0,j=Math.imul(o,k0),M=M+Math.imul(t,j0)|0,A=A+Math.imul(t,M0)|0,A=A+Math.imul(e,j0)|0,j=j+Math.imul(e,M0)|0,M=M+Math.imul(f,v0)|0,A=A+Math.imul(f,S0)|0,A=A+Math.imul(h,v0)|0,j=j+Math.imul(h,S0)|0,M=M+Math.imul(m,_0)|0,A=A+Math.imul(m,B0)|0,A=A+Math.imul(i,_0)|0,j=j+Math.imul(i,B0)|0,M=M+Math.imul(r,R0)|0,A=A+Math.imul(r,N)|0,A=A+Math.imul(l,R0)|0,j=j+Math.imul(l,N)|0,M=M+Math.imul(p,a)|0,A=A+Math.imul(p,U0)|0,A=A+Math.imul(n,a)|0,j=j+Math.imul(n,U0)|0;var i0=($+M|0)+((A&8191)<<13)|0;$=(j+(A>>>13)|0)+(i0>>>26)|0,i0&=67108863,M=Math.imul(s,E0),A=Math.imul(s,k0),A=A+Math.imul(Z0,E0)|0,j=Math.imul(Z0,k0),M=M+Math.imul(c,j0)|0,A=A+Math.imul(c,M0)|0,A=A+Math.imul(o,j0)|0,j=j+Math.imul(o,M0)|0,M=M+Math.imul(t,v0)|0,A=A+Math.imul(t,S0)|0,A=A+Math.imul(e,v0)|0,j=j+Math.imul(e,S0)|0,M=M+Math.imul(f,_0)|0,A=A+Math.imul(f,B0)|0,A=A+Math.imul(h,_0)|0,j=j+Math.imul(h,B0)|0,M=M+Math.imul(m,R0)|0,A=A+Math.imul(m,N)|0,A=A+Math.imul(i,R0)|0,j=j+Math.imul(i,N)|0,M=M+Math.imul(r,a)|0,A=A+Math.imul(r,U0)|0,A=A+Math.imul(l,a)|0,j=j+Math.imul(l,U0)|0,M=M+Math.imul(p,W0)|0,A=A+Math.imul(p,A0)|0,A=A+Math.imul(n,W0)|0,j=j+Math.imul(n,A0)|0;var UU=($+M|0)+((A&8191)<<13)|0;$=(j+(A>>>13)|0)+(UU>>>26)|0,UU&=67108863,M=Math.imul(F0,E0),A=Math.imul(F0,k0),A=A+Math.imul(H0,E0)|0,j=Math.imul(H0,k0),M=M+Math.imul(s,j0)|0,A=A+Math.imul(s,M0)|0,A=A+Math.imul(Z0,j0)|0,j=j+Math.imul(Z0,M0)|0,M=M+Math.imul(c,v0)|0,A=A+Math.imul(c,S0)|0,A=A+Math.imul(o,v0)|0,j=j+Math.imul(o,S0)|0,M=M+Math.imul(t,_0)|0,A=A+Math.imul(t,B0)|0,A=A+Math.imul(e,_0)|0,j=j+Math.imul(e,B0)|0,M=M+Math.imul(f,R0)|0,A=A+Math.imul(f,N)|0,A=A+Math.imul(h,R0)|0,j=j+Math.imul(h,N)|0,M=M+Math.imul(m,a)|0,A=A+Math.imul(m,U0)|0,A=A+Math.imul(i,a)|0,j=j+Math.imul(i,U0)|0,M=M+Math.imul(r,W0)|0,A=A+Math.imul(r,A0)|0,A=A+Math.imul(l,W0)|0,j=j+Math.imul(l,A0)|0,M=M+Math.imul(p,q0)|0,A=A+Math.imul(p,x0)|0,A=A+Math.imul(n,q0)|0,j=j+Math.imul(n,x0)|0;var XU=($+M|0)+((A&8191)<<13)|0;$=(j+(A>>>13)|0)+(XU>>>26)|0,XU&=67108863,M=Math.imul(O0,E0),A=Math.imul(O0,k0),A=A+Math.imul(C0,E0)|0,j=Math.imul(C0,k0),M=M+Math.imul(F0,j0)|0,A=A+Math.imul(F0,M0)|0,A=A+Math.imul(H0,j0)|0,j=j+Math.imul(H0,M0)|0,M=M+Math.imul(s,v0)|0,A=A+Math.imul(s,S0)|0,A=A+Math.imul(Z0,v0)|0,j=j+Math.imul(Z0,S0)|0,M=M+Math.imul(c,_0)|0,A=A+Math.imul(c,B0)|0,A=A+Math.imul(o,_0)|0,j=j+Math.imul(o,B0)|0,M=M+Math.imul(t,R0)|0,A=A+Math.imul(t,N)|0,A=A+Math.imul(e,R0)|0,j=j+Math.imul(e,N)|0,M=M+Math.imul(f,a)|0,A=A+Math.imul(f,U0)|0,A=A+Math.imul(h,a)|0,j=j+Math.imul(h,U0)|0,M=M+Math.imul(m,W0)|0,A=A+Math.imul(m,A0)|0,A=A+Math.imul(i,W0)|0,j=j+Math.imul(i,A0)|0,M=M+Math.imul(r,q0)|0,A=A+Math.imul(r,x0)|0,A=A+Math.imul(l,q0)|0,j=j+Math.imul(l,x0)|0,M=M+Math.imul(p,P0)|0,A=A+Math.imul(p,z0)|0,A=A+Math.imul(n,P0)|0,j=j+Math.imul(n,z0)|0;var ZU=($+M|0)+((A&8191)<<13)|0;$=(j+(A>>>13)|0)+(ZU>>>26)|0,ZU&=67108863,M=Math.imul(D0,E0),A=Math.imul(D0,k0),A=A+Math.imul(T0,E0)|0,j=Math.imul(T0,k0),M=M+Math.imul(O0,j0)|0,A=A+Math.imul(O0,M0)|0,A=A+Math.imul(C0,j0)|0,j=j+Math.imul(C0,M0)|0,M=M+Math.imul(F0,v0)|0,A=A+Math.imul(F0,S0)|0,A=A+Math.imul(H0,v0)|0,j=j+Math.imul(H0,S0)|0,M=M+Math.imul(s,_0)|0,A=A+Math.imul(s,B0)|0,A=A+Math.imul(Z0,_0)|0,j=j+Math.imul(Z0,B0)|0,M=M+Math.imul(c,R0)|0,A=A+Math.imul(c,N)|0,A=A+Math.imul(o,R0)|0,j=j+Math.imul(o,N)|0,M=M+Math.imul(t,a)|0,A=A+Math.imul(t,U0)|0,A=A+Math.imul(e,a)|0,j=j+Math.imul(e,U0)|0,M=M+Math.imul(f,W0)|0,A=A+Math.imul(f,A0)|0,A=A+Math.imul(h,W0)|0,j=j+Math.imul(h,A0)|0,M=M+Math.imul(m,q0)|0,A=A+Math.imul(m,x0)|0,A=A+Math.imul(i,q0)|0,j=j+Math.imul(i,x0)|0,M=M+Math.imul(r,P0)|0,A=A+Math.imul(r,z0)|0,A=A+Math.imul(l,P0)|0,j=j+Math.imul(l,z0)|0,M=M+Math.imul(p,c0)|0,A=A+Math.imul(p,f0)|0,A=A+Math.imul(n,c0)|0,j=j+Math.imul(n,f0)|0;var QU=($+M|0)+((A&8191)<<13)|0;$=(j+(A>>>13)|0)+(QU>>>26)|0,QU&=67108863,M=Math.imul(D0,j0),A=Math.imul(D0,M0),A=A+Math.imul(T0,j0)|0,j=Math.imul(T0,M0),M=M+Math.imul(O0,v0)|0,A=A+Math.imul(O0,S0)|0,A=A+Math.imul(C0,v0)|0,j=j+Math.imul(C0,S0)|0,M=M+Math.imul(F0,_0)|0,A=A+Math.imul(F0,B0)|0,A=A+Math.imul(H0,_0)|0,j=j+Math.imul(H0,B0)|0,M=M+Math.imul(s,R0)|0,A=A+Math.imul(s,N)|0,A=A+Math.imul(Z0,R0)|0,j=j+Math.imul(Z0,N)|0,M=M+Math.imul(c,a)|0,A=A+Math.imul(c,U0)|0,A=A+Math.imul(o,a)|0,j=j+Math.imul(o,U0)|0,M=M+Math.imul(t,W0)|0,A=A+Math.imul(t,A0)|0,A=A+Math.imul(e,W0)|0,j=j+Math.imul(e,A0)|0,M=M+Math.imul(f,q0)|0,A=A+Math.imul(f,x0)|0,A=A+Math.imul(h,q0)|0,j=j+Math.imul(h,x0)|0,M=M+Math.imul(m,P0)|0,A=A+Math.imul(m,z0)|0,A=A+Math.imul(i,P0)|0,j=j+Math.imul(i,z0)|0,M=M+Math.imul(r,c0)|0,A=A+Math.imul(r,f0)|0,A=A+Math.imul(l,c0)|0,j=j+Math.imul(l,f0)|0;var YU=($+M|0)+((A&8191)<<13)|0;$=(j+(A>>>13)|0)+(YU>>>26)|0,YU&=67108863,M=Math.imul(D0,v0),A=Math.imul(D0,S0),A=A+Math.imul(T0,v0)|0,j=Math.imul(T0,S0),M=M+Math.imul(O0,_0)|0,A=A+Math.imul(O0,B0)|0,A=A+Math.imul(C0,_0)|0,j=j+Math.imul(C0,B0)|0,M=M+Math.imul(F0,R0)|0,A=A+Math.imul(F0,N)|0,A=A+Math.imul(H0,R0)|0,j=j+Math.imul(H0,N)|0,M=M+Math.imul(s,a)|0,A=A+Math.imul(s,U0)|0,A=A+Math.imul(Z0,a)|0,j=j+Math.imul(Z0,U0)|0,M=M+Math.imul(c,W0)|0,A=A+Math.imul(c,A0)|0,A=A+Math.imul(o,W0)|0,j=j+Math.imul(o,A0)|0,M=M+Math.imul(t,q0)|0,A=A+Math.imul(t,x0)|0,A=A+Math.imul(e,q0)|0,j=j+Math.imul(e,x0)|0,M=M+Math.imul(f,P0)|0,A=A+Math.imul(f,z0)|0,A=A+Math.imul(h,P0)|0,j=j+Math.imul(h,z0)|0,M=M+Math.imul(m,c0)|0,A=A+Math.imul(m,f0)|0,A=A+Math.imul(i,c0)|0,j=j+Math.imul(i,f0)|0;var JU=($+M|0)+((A&8191)<<13)|0;$=(j+(A>>>13)|0)+(JU>>>26)|0,JU&=67108863,M=Math.imul(D0,_0),A=Math.imul(D0,B0),A=A+Math.imul(T0,_0)|0,j=Math.imul(T0,B0),M=M+Math.imul(O0,R0)|0,A=A+Math.imul(O0,N)|0,A=A+Math.imul(C0,R0)|0,j=j+Math.imul(C0,N)|0,M=M+Math.imul(F0,a)|0,A=A+Math.imul(F0,U0)|0,A=A+Math.imul(H0,a)|0,j=j+Math.imul(H0,U0)|0,M=M+Math.imul(s,W0)|0,A=A+Math.imul(s,A0)|0,A=A+Math.imul(Z0,W0)|0,j=j+Math.imul(Z0,A0)|0,M=M+Math.imul(c,q0)|0,A=A+Math.imul(c,x0)|0,A=A+Math.imul(o,q0)|0,j=j+Math.imul(o,x0)|0,M=M+Math.imul(t,P0)|0,A=A+Math.imul(t,z0)|0,A=A+Math.imul(e,P0)|0,j=j+Math.imul(e,z0)|0,M=M+Math.imul(f,c0)|0,A=A+Math.imul(f,f0)|0,A=A+Math.imul(h,c0)|0,j=j+Math.imul(h,f0)|0;var VU=($+M|0)+((A&8191)<<13)|0;$=(j+(A>>>13)|0)+(VU>>>26)|0,VU&=67108863,M=Math.imul(D0,R0),A=Math.imul(D0,N),A=A+Math.imul(T0,R0)|0,j=Math.imul(T0,N),M=M+Math.imul(O0,a)|0,A=A+Math.imul(O0,U0)|0,A=A+Math.imul(C0,a)|0,j=j+Math.imul(C0,U0)|0,M=M+Math.imul(F0,W0)|0,A=A+Math.imul(F0,A0)|0,A=A+Math.imul(H0,W0)|0,j=j+Math.imul(H0,A0)|0,M=M+Math.imul(s,q0)|0,A=A+Math.imul(s,x0)|0,A=A+Math.imul(Z0,q0)|0,j=j+Math.imul(Z0,x0)|0,M=M+Math.imul(c,P0)|0,A=A+Math.imul(c,z0)|0,A=A+Math.imul(o,P0)|0,j=j+Math.imul(o,z0)|0,M=M+Math.imul(t,c0)|0,A=A+Math.imul(t,f0)|0,A=A+Math.imul(e,c0)|0,j=j+Math.imul(e,f0)|0;var GU=($+M|0)+((A&8191)<<13)|0;$=(j+(A>>>13)|0)+(GU>>>26)|0,GU&=67108863,M=Math.imul(D0,a),A=Math.imul(D0,U0),A=A+Math.imul(T0,a)|0,j=Math.imul(T0,U0),M=M+Math.imul(O0,W0)|0,A=A+Math.imul(O0,A0)|0,A=A+Math.imul(C0,W0)|0,j=j+Math.imul(C0,A0)|0,M=M+Math.imul(F0,q0)|0,A=A+Math.imul(F0,x0)|0,A=A+Math.imul(H0,q0)|0,j=j+Math.imul(H0,x0)|0,M=M+Math.imul(s,P0)|0,A=A+Math.imul(s,z0)|0,A=A+Math.imul(Z0,P0)|0,j=j+Math.imul(Z0,z0)|0,M=M+Math.imul(c,c0)|0,A=A+Math.imul(c,f0)|0,A=A+Math.imul(o,c0)|0,j=j+Math.imul(o,f0)|0;var IU=($+M|0)+((A&8191)<<13)|0;$=(j+(A>>>13)|0)+(IU>>>26)|0,IU&=67108863,M=Math.imul(D0,W0),A=Math.imul(D0,A0),A=A+Math.imul(T0,W0)|0,j=Math.imul(T0,A0),M=M+Math.imul(O0,q0)|0,A=A+Math.imul(O0,x0)|0,A=A+Math.imul(C0,q0)|0,j=j+Math.imul(C0,x0)|0,M=M+Math.imul(F0,P0)|0,A=A+Math.imul(F0,z0)|0,A=A+Math.imul(H0,P0)|0,j=j+Math.imul(H0,z0)|0,M=M+Math.imul(s,c0)|0,A=A+Math.imul(s,f0)|0,A=A+Math.imul(Z0,c0)|0,j=j+Math.imul(Z0,f0)|0;var $U=($+M|0)+((A&8191)<<13)|0;$=(j+(A>>>13)|0)+($U>>>26)|0,$U&=67108863,M=Math.imul(D0,q0),A=Math.imul(D0,x0),A=A+Math.imul(T0,q0)|0,j=Math.imul(T0,x0),M=M+Math.imul(O0,P0)|0,A=A+Math.imul(O0,z0)|0,A=A+Math.imul(C0,P0)|0,j=j+Math.imul(C0,z0)|0,M=M+Math.imul(F0,c0)|0,A=A+Math.imul(F0,f0)|0,A=A+Math.imul(H0,c0)|0,j=j+Math.imul(H0,f0)|0;var kX=($+M|0)+((A&8191)<<13)|0;$=(j+(A>>>13)|0)+(kX>>>26)|0,kX&=67108863,M=Math.imul(D0,P0),A=Math.imul(D0,z0),A=A+Math.imul(T0,P0)|0,j=Math.imul(T0,z0),M=M+Math.imul(O0,c0)|0,A=A+Math.imul(O0,f0)|0,A=A+Math.imul(C0,c0)|0,j=j+Math.imul(C0,f0)|0;var jX=($+M|0)+((A&8191)<<13)|0;$=(j+(A>>>13)|0)+(jX>>>26)|0,jX&=67108863,M=Math.imul(D0,c0),A=Math.imul(D0,f0),A=A+Math.imul(T0,c0)|0,j=Math.imul(T0,f0);var vX=($+M|0)+((A&8191)<<13)|0;if($=(j+(A>>>13)|0)+(vX>>>26)|0,vX&=67108863,X[0]=l0,X[1]=b0,X[2]=r0,X[3]=a0,X[4]=e0,X[5]=i0,X[6]=UU,X[7]=XU,X[8]=ZU,X[9]=QU,X[10]=YU,X[11]=JU,X[12]=VU,X[13]=GU,X[14]=IU,X[15]=$U,X[16]=kX,X[17]=jX,X[18]=vX,$!==0)X[19]=$,K.length++;return K};if(!Math.imul)x=_;function w(Z,Y,K){K.negative=Y.negative^Z.negative,K.length=Z.length+Y.length;var W=0,G=0;for(var X=0;X<K.length-1;X++){var $=G;G=0;var M=W&67108863,A=Math.min(X,Y.length-1);for(var j=Math.max(0,X-Z.length+1);j<=A;j++){var g=X-j,p=Z.words[g]|0,n=Y.words[j]|0,K0=p*n,r=K0&67108863;$=$+(K0/67108864|0)|0,r=r+M|0,M=r&67108863,$=$+(r>>>26)|0,G+=$>>>26,$&=67108863}K.words[X]=M,W=$,$=G}if(W!==0)K.words[X]=W;else K.length--;return K._strip()}function y(Z,Y,K){return w(Z,Y,K)}V.prototype.mulTo=function(Z,Y){var K,W=this.length+Z.length;if(this.length===10&&Z.length===10)K=x(this,Z,Y);else if(W<63)K=_(this,Z,Y);else if(W<1024)K=w(this,Z,Y);else K=y(this,Z,Y);return K};function d(Z,Y){this.x=Z,this.y=Y}d.prototype.makeRBT=function(Z){var Y=Array(Z),K=V.prototype._countBits(Z)-1;for(var W=0;W<Z;W++)Y[W]=this.revBin(W,K,Z);return Y},d.prototype.revBin=function(Z,Y,K){if(Z===0||Z===K-1)return Z;var W=0;for(var G=0;G<Y;G++)W|=(Z&1)<<Y-G-1,Z>>=1;return W},d.prototype.permute=function(Z,Y,K,W,G,X){for(var $=0;$<X;$++)W[$]=Y[Z[$]],G[$]=K[Z[$]]},d.prototype.transform=function(Z,Y,K,W,G,X){this.permute(X,Z,Y,K,W,G);for(var $=1;$<G;$<<=1){var M=$<<1,A=Math.cos(2*Math.PI/M),j=Math.sin(2*Math.PI/M);for(var g=0;g<G;g+=M){var p=A,n=j;for(var K0=0;K0<$;K0++){var r=K[g+K0],l=W[g+K0],Q0=K[g+K0+$],m=W[g+K0+$],i=p*Q0-n*m;if(m=p*m+n*Q0,Q0=i,K[g+K0]=r+Q0,W[g+K0]=l+m,K[g+K0+$]=r-Q0,W[g+K0+$]=l-m,K0!==M)i=A*p-j*n,n=A*n+j*p,p=i}}}},d.prototype.guessLen13b=function(Z,Y){var K=Math.max(Y,Z)|1,W=K&1,G=0;for(K=K/2|0;K;K=K>>>1)G++;return 1<<G+1+W},d.prototype.conjugate=function(Z,Y,K){if(K<=1)return;for(var W=0;W<K/2;W++){var G=Z[W];Z[W]=Z[K-W-1],Z[K-W-1]=G,G=Y[W],Y[W]=-Y[K-W-1],Y[K-W-1]=-G}},d.prototype.normalize13b=function(Z,Y){var K=0;for(var W=0;W<Y/2;W++){var G=Math.round(Z[2*W+1]/Y)*8192+Math.round(Z[2*W]/Y)+K;if(Z[W]=G&67108863,G<67108864)K=0;else K=G/67108864|0}return Z},d.prototype.convert13b=function(Z,Y,K,W){var G=0;for(var X=0;X<Y;X++)G=G+(Z[X]|0),K[2*X]=G&8191,G=G>>>13,K[2*X+1]=G&8191,G=G>>>13;for(X=2*Y;X<W;++X)K[X]=0;H(G===0),H((G&-8192)===0)},d.prototype.stub=function(Z){var Y=Array(Z);for(var K=0;K<Z;K++)Y[K]=0;return Y},d.prototype.mulp=function(Z,Y,K){var W=2*this.guessLen13b(Z.length,Y.length),G=this.makeRBT(W),X=this.stub(W),$=Array(W),M=Array(W),A=Array(W),j=Array(W),g=Array(W),p=Array(W),n=K.words;n.length=W,this.convert13b(Z.words,Z.length,$,W),this.convert13b(Y.words,Y.length,j,W),this.transform($,X,M,A,W,G),this.transform(j,X,g,p,W,G);for(var K0=0;K0<W;K0++){var r=M[K0]*g[K0]-A[K0]*p[K0];A[K0]=M[K0]*p[K0]+A[K0]*g[K0],M[K0]=r}return this.conjugate(M,A,W),this.transform(M,A,n,X,W,G),this.conjugate(n,X,W),this.normalize13b(n,W),K.negative=Z.negative^Y.negative,K.length=Z.length+Y.length,K._strip()},V.prototype.mul=function(Z){var Y=new V(null);return Y.words=Array(this.length+Z.length),this.mulTo(Z,Y)},V.prototype.mulf=function(Z){var Y=new V(null);return Y.words=Array(this.length+Z.length),y(this,Z,Y)},V.prototype.imul=function(Z){return this.clone().mulTo(Z,this)},V.prototype.imuln=function(Z){var Y=Z<0;if(Y)Z=-Z;H(typeof Z==="number"),H(Z<67108864);var K=0;for(var W=0;W<this.length;W++){var G=(this.words[W]|0)*Z,X=(G&67108863)+(K&67108863);K>>=26,K+=G/67108864|0,K+=X>>>26,this.words[W]=X&67108863}if(K!==0)this.words[W]=K,this.length++;return this.length=Z===0?1:this.length,Y?this.ineg():this},V.prototype.muln=function(Z){return this.clone().imuln(Z)},V.prototype.sqr=function(){return this.mul(this)},V.prototype.isqr=function(){return this.imul(this.clone())},V.prototype.pow=function(Z){var Y=B(Z);if(Y.length===0)return new V(1);var K=this;for(var W=0;W<Y.length;W++,K=K.sqr())if(Y[W]!==0)break;if(++W<Y.length)for(var G=K.sqr();W<Y.length;W++,G=G.sqr()){if(Y[W]===0)continue;K=K.mul(G)}return K},V.prototype.iushln=function(Z){H(typeof Z==="number"&&Z>=0);var Y=Z%26,K=(Z-Y)/26,W=67108863>>>26-Y<<26-Y,G;if(Y!==0){var X=0;for(G=0;G<this.length;G++){var $=this.words[G]&W,M=(this.words[G]|0)-$<<Y;this.words[G]=M|X,X=$>>>26-Y}if(X)this.words[G]=X,this.length++}if(K!==0){for(G=this.length-1;G>=0;G--)this.words[G+K]=this.words[G];for(G=0;G<K;G++)this.words[G]=0;this.length+=K}return this._strip()},V.prototype.ishln=function(Z){return H(this.negative===0),this.iushln(Z)},V.prototype.iushrn=function(Z,Y,K){H(typeof Z==="number"&&Z>=0);var W;if(Y)W=(Y-Y%26)/26;else W=0;var G=Z%26,X=Math.min((Z-G)/26,this.length),$=67108863^67108863>>>G<<G,M=K;if(W-=X,W=Math.max(0,W),M){for(var A=0;A<X;A++)M.words[A]=this.words[A];M.length=X}if(X===0);else if(this.length>X){this.length-=X;for(A=0;A<this.length;A++)this.words[A]=this.words[A+X]}else this.words[0]=0,this.length=1;var j=0;for(A=this.length-1;A>=0&&(j!==0||A>=W);A--){var g=this.words[A]|0;this.words[A]=j<<26-G|g>>>G,j=g&$}if(M&&j!==0)M.words[M.length++]=j;if(this.length===0)this.words[0]=0,this.length=1;return this._strip()},V.prototype.ishrn=function(Z,Y,K){return H(this.negative===0),this.iushrn(Z,Y,K)},V.prototype.shln=function(Z){return this.clone().ishln(Z)},V.prototype.ushln=function(Z){return this.clone().iushln(Z)},V.prototype.shrn=function(Z){return this.clone().ishrn(Z)},V.prototype.ushrn=function(Z){return this.clone().iushrn(Z)},V.prototype.testn=function(Z){H(typeof Z==="number"&&Z>=0);var Y=Z%26,K=(Z-Y)/26,W=1<<Y;if(this.length<=K)return!1;var G=this.words[K];return!!(G&W)},V.prototype.imaskn=function(Z){H(typeof Z==="number"&&Z>=0);var Y=Z%26,K=(Z-Y)/26;if(H(this.negative===0,"imaskn works only with positive numbers"),this.length<=K)return this;if(Y!==0)K++;if(this.length=Math.min(K,this.length),Y!==0){var W=67108863^67108863>>>Y<<Y;this.words[this.length-1]&=W}return this._strip()},V.prototype.maskn=function(Z){return this.clone().imaskn(Z)},V.prototype.iaddn=function(Z){if(H(typeof Z==="number"),H(Z<67108864),Z<0)return this.isubn(-Z);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<=Z)return this.words[0]=Z-(this.words[0]|0),this.negative=0,this;return this.negative=0,this.isubn(Z),this.negative=1,this}return this._iaddn(Z)},V.prototype._iaddn=function(Z){this.words[0]+=Z;for(var Y=0;Y<this.length&&this.words[Y]>=67108864;Y++)if(this.words[Y]-=67108864,Y===this.length-1)this.words[Y+1]=1;else this.words[Y+1]++;return this.length=Math.max(this.length,Y+1),this},V.prototype.isubn=function(Z){if(H(typeof Z==="number"),H(Z<67108864),Z<0)return this.iaddn(-Z);if(this.negative!==0)return this.negative=0,this.iaddn(Z),this.negative=1,this;if(this.words[0]-=Z,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()},V.prototype.addn=function(Z){return this.clone().iaddn(Z)},V.prototype.subn=function(Z){return this.clone().isubn(Z)},V.prototype.iabs=function(){return this.negative=0,this},V.prototype.abs=function(){return this.clone().iabs()},V.prototype._ishlnsubmul=function(Z,Y,K){var W=Z.length+K,G;this._expand(W);var X,$=0;for(G=0;G<Z.length;G++){X=(this.words[G+K]|0)+$;var M=(Z.words[G]|0)*Y;X-=M&67108863,$=(X>>26)-(M/67108864|0),this.words[G+K]=X&67108863}for(;G<this.length-K;G++)X=(this.words[G+K]|0)+$,$=X>>26,this.words[G+K]=X&67108863;if($===0)return this._strip();H($===-1),$=0;for(G=0;G<this.length;G++)X=-(this.words[G]|0)+$,$=X>>26,this.words[G]=X&67108863;return this.negative=1,this._strip()},V.prototype._wordDiv=function(Z,Y){var K=this.length-Z.length,W=this.clone(),G=Z,X=G.words[G.length-1]|0,$=this._countBits(X);if(K=26-$,K!==0)G=G.ushln(K),W.iushln(K),X=G.words[G.length-1]|0;var M=W.length-G.length,A;if(Y!=="mod"){A=new V(null),A.length=M+1,A.words=Array(A.length);for(var j=0;j<A.length;j++)A.words[j]=0}var g=W.clone()._ishlnsubmul(G,1,M);if(g.negative===0){if(W=g,A)A.words[M]=1}for(var p=M-1;p>=0;p--){var n=(W.words[G.length+p]|0)*67108864+(W.words[G.length+p-1]|0);n=Math.min(n/X|0,67108863),W._ishlnsubmul(G,n,p);while(W.negative!==0)if(n--,W.negative=0,W._ishlnsubmul(G,1,p),!W.isZero())W.negative^=1;if(A)A.words[p]=n}if(A)A._strip();if(W._strip(),Y!=="div"&&K!==0)W.iushrn(K);return{div:A||null,mod:W}},V.prototype.divmod=function(Z,Y,K){if(H(!Z.isZero()),this.isZero())return{div:new V(0),mod:new V(0)};var W,G,X;if(this.negative!==0&&Z.negative===0){if(X=this.neg().divmod(Z,Y),Y!=="mod")W=X.div.neg();if(Y!=="div"){if(G=X.mod.neg(),K&&G.negative!==0)G.iadd(Z)}return{div:W,mod:G}}if(this.negative===0&&Z.negative!==0){if(X=this.divmod(Z.neg(),Y),Y!=="mod")W=X.div.neg();return{div:W,mod:X.mod}}if((this.negative&Z.negative)!==0){if(X=this.neg().divmod(Z.neg(),Y),Y!=="div"){if(G=X.mod.neg(),K&&G.negative!==0)G.isub(Z)}return{div:X.div,mod:G}}if(Z.length>this.length||this.cmp(Z)<0)return{div:new V(0),mod:this};if(Z.length===1){if(Y==="div")return{div:this.divn(Z.words[0]),mod:null};if(Y==="mod")return{div:null,mod:new V(this.modrn(Z.words[0]))};return{div:this.divn(Z.words[0]),mod:new V(this.modrn(Z.words[0]))}}return this._wordDiv(Z,Y)},V.prototype.div=function(Z){return this.divmod(Z,"div",!1).div},V.prototype.mod=function(Z){return this.divmod(Z,"mod",!1).mod},V.prototype.umod=function(Z){return this.divmod(Z,"mod",!0).mod},V.prototype.divRound=function(Z){var Y=this.divmod(Z);if(Y.mod.isZero())return Y.div;var K=Y.div.negative!==0?Y.mod.isub(Z):Y.mod,W=Z.ushrn(1),G=Z.andln(1),X=K.cmp(W);if(X<0||G===1&&X===0)return Y.div;return Y.div.negative!==0?Y.div.isubn(1):Y.div.iaddn(1)},V.prototype.modrn=function(Z){var Y=Z<0;if(Y)Z=-Z;H(Z<=67108863);var K=67108864%Z,W=0;for(var G=this.length-1;G>=0;G--)W=(K*W+(this.words[G]|0))%Z;return Y?-W:W},V.prototype.modn=function(Z){return this.modrn(Z)},V.prototype.idivn=function(Z){var Y=Z<0;if(Y)Z=-Z;H(Z<=67108863);var K=0;for(var W=this.length-1;W>=0;W--){var G=(this.words[W]|0)+K*67108864;this.words[W]=G/Z|0,K=G%Z}return this._strip(),Y?this.ineg():this},V.prototype.divn=function(Z){return this.clone().idivn(Z)},V.prototype.egcd=function(Z){H(Z.negative===0),H(!Z.isZero());var Y=this,K=Z.clone();if(Y.negative!==0)Y=Y.umod(Z);else Y=Y.clone();var W=new V(1),G=new V(0),X=new V(0),$=new V(1),M=0;while(Y.isEven()&&K.isEven())Y.iushrn(1),K.iushrn(1),++M;var A=K.clone(),j=Y.clone();while(!Y.isZero()){for(var g=0,p=1;(Y.words[0]&p)===0&&g<26;++g,p<<=1);if(g>0){Y.iushrn(g);while(g-- >0){if(W.isOdd()||G.isOdd())W.iadd(A),G.isub(j);W.iushrn(1),G.iushrn(1)}}for(var n=0,K0=1;(K.words[0]&K0)===0&&n<26;++n,K0<<=1);if(n>0){K.iushrn(n);while(n-- >0){if(X.isOdd()||$.isOdd())X.iadd(A),$.isub(j);X.iushrn(1),$.iushrn(1)}}if(Y.cmp(K)>=0)Y.isub(K),W.isub(X),G.isub($);else K.isub(Y),X.isub(W),$.isub(G)}return{a:X,b:$,gcd:K.iushln(M)}},V.prototype._invmp=function(Z){H(Z.negative===0),H(!Z.isZero());var Y=this,K=Z.clone();if(Y.negative!==0)Y=Y.umod(Z);else Y=Y.clone();var W=new V(1),G=new V(0),X=K.clone();while(Y.cmpn(1)>0&&K.cmpn(1)>0){for(var $=0,M=1;(Y.words[0]&M)===0&&$<26;++$,M<<=1);if($>0){Y.iushrn($);while($-- >0){if(W.isOdd())W.iadd(X);W.iushrn(1)}}for(var A=0,j=1;(K.words[0]&j)===0&&A<26;++A,j<<=1);if(A>0){K.iushrn(A);while(A-- >0){if(G.isOdd())G.iadd(X);G.iushrn(1)}}if(Y.cmp(K)>=0)Y.isub(K),W.isub(G);else K.isub(Y),G.isub(W)}var g;if(Y.cmpn(1)===0)g=W;else g=G;if(g.cmpn(0)<0)g.iadd(Z);return g},V.prototype.gcd=function(Z){if(this.isZero())return Z.abs();if(Z.isZero())return this.abs();var Y=this.clone(),K=Z.clone();Y.negative=0,K.negative=0;for(var W=0;Y.isEven()&&K.isEven();W++)Y.iushrn(1),K.iushrn(1);do{while(Y.isEven())Y.iushrn(1);while(K.isEven())K.iushrn(1);var G=Y.cmp(K);if(G<0){var X=Y;Y=K,K=X}else if(G===0||K.cmpn(1)===0)break;Y.isub(K)}while(!0);return K.iushln(W)},V.prototype.invm=function(Z){return this.egcd(Z).a.umod(Z)},V.prototype.isEven=function(){return(this.words[0]&1)===0},V.prototype.isOdd=function(){return(this.words[0]&1)===1},V.prototype.andln=function(Z){return this.words[0]&Z},V.prototype.bincn=function(Z){H(typeof Z==="number");var Y=Z%26,K=(Z-Y)/26,W=1<<Y;if(this.length<=K)return this._expand(K+1),this.words[K]|=W,this;var G=W;for(var X=K;G!==0&&X<this.length;X++){var $=this.words[X]|0;$+=G,G=$>>>26,$&=67108863,this.words[X]=$}if(G!==0)this.words[X]=G,this.length++;return this},V.prototype.isZero=function(){return this.length===1&&this.words[0]===0},V.prototype.cmpn=function(Z){var Y=Z<0;if(this.negative!==0&&!Y)return-1;if(this.negative===0&&Y)return 1;this._strip();var K;if(this.length>1)K=1;else{if(Y)Z=-Z;H(Z<=67108863,"Number is too big");var W=this.words[0]|0;K=W===Z?0:W<Z?-1:1}if(this.negative!==0)return-K|0;return K},V.prototype.cmp=function(Z){if(this.negative!==0&&Z.negative===0)return-1;if(this.negative===0&&Z.negative!==0)return 1;var Y=this.ucmp(Z);if(this.negative!==0)return-Y|0;return Y},V.prototype.ucmp=function(Z){if(this.length>Z.length)return 1;if(this.length<Z.length)return-1;var Y=0;for(var K=this.length-1;K>=0;K--){var W=this.words[K]|0,G=Z.words[K]|0;if(W===G)continue;if(W<G)Y=-1;else if(W>G)Y=1;break}return Y},V.prototype.gtn=function(Z){return this.cmpn(Z)===1},V.prototype.gt=function(Z){return this.cmp(Z)===1},V.prototype.gten=function(Z){return this.cmpn(Z)>=0},V.prototype.gte=function(Z){return this.cmp(Z)>=0},V.prototype.ltn=function(Z){return this.cmpn(Z)===-1},V.prototype.lt=function(Z){return this.cmp(Z)===-1},V.prototype.lten=function(Z){return this.cmpn(Z)<=0},V.prototype.lte=function(Z){return this.cmp(Z)<=0},V.prototype.eqn=function(Z){return this.cmpn(Z)===0},V.prototype.eq=function(Z){return this.cmp(Z)===0},V.red=function(Z){return new Q(Z)},V.prototype.toRed=function(Z){return H(!this.red,"Already a number in reduction context"),H(this.negative===0,"red works only with positives"),Z.convertTo(this)._forceRed(Z)},V.prototype.fromRed=function(){return H(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},V.prototype._forceRed=function(Z){return this.red=Z,this},V.prototype.forceRed=function(Z){return H(!this.red,"Already a number in reduction context"),this._forceRed(Z)},V.prototype.redAdd=function(Z){return H(this.red,"redAdd works only with red numbers"),this.red.add(this,Z)},V.prototype.redIAdd=function(Z){return H(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,Z)},V.prototype.redSub=function(Z){return H(this.red,"redSub works only with red numbers"),this.red.sub(this,Z)},V.prototype.redISub=function(Z){return H(this.red,"redISub works only with red numbers"),this.red.isub(this,Z)},V.prototype.redShl=function(Z){return H(this.red,"redShl works only with red numbers"),this.red.shl(this,Z)},V.prototype.redMul=function(Z){return H(this.red,"redMul works only with red numbers"),this.red._verify2(this,Z),this.red.mul(this,Z)},V.prototype.redIMul=function(Z){return H(this.red,"redMul works only with red numbers"),this.red._verify2(this,Z),this.red.imul(this,Z)},V.prototype.redSqr=function(){return H(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},V.prototype.redISqr=function(){return H(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},V.prototype.redSqrt=function(){return H(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},V.prototype.redInvm=function(){return H(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},V.prototype.redNeg=function(){return H(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},V.prototype.redPow=function(Z){return H(this.red&&!Z.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,Z)};var J0={k256:null,p224:null,p192:null,p25519:null};function I0(Z,Y){this.name=Z,this.p=new V(Y,16),this.n=this.p.bitLength(),this.k=new V(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}I0.prototype._tmp=function(){var Z=new V(null);return Z.words=Array(Math.ceil(this.n/13)),Z},I0.prototype.ireduce=function(Z){var Y=Z,K;do this.split(Y,this.tmp),Y=this.imulK(Y),Y=Y.iadd(this.tmp),K=Y.bitLength();while(K>this.n);var W=K<this.n?-1:Y.ucmp(this.p);if(W===0)Y.words[0]=0,Y.length=1;else if(W>0)Y.isub(this.p);else if(Y.strip!==void 0)Y.strip();else Y._strip();return Y},I0.prototype.split=function(Z,Y){Z.iushrn(this.n,0,Y)},I0.prototype.imulK=function(Z){return Z.imul(this.k)};function V0(){I0.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}E(V0,I0),V0.prototype.split=function(Z,Y){var K=4194303,W=Math.min(Z.length,9);for(var G=0;G<W;G++)Y.words[G]=Z.words[G];if(Y.length=W,Z.length<=9){Z.words[0]=0,Z.length=1;return}var X=Z.words[9];Y.words[Y.length++]=X&K;for(G=10;G<Z.length;G++){var $=Z.words[G]|0;Z.words[G-10]=($&K)<<4|X>>>22,X=$}if(X>>>=22,Z.words[G-10]=X,X===0&&Z.length>10)Z.length-=10;else Z.length-=9},V0.prototype.imulK=function(Z){Z.words[Z.length]=0,Z.words[Z.length+1]=0,Z.length+=2;var Y=0;for(var K=0;K<Z.length;K++){var W=Z.words[K]|0;Y+=W*977,Z.words[K]=Y&67108863,Y=W*64+(Y/67108864|0)}if(Z.words[Z.length-1]===0){if(Z.length--,Z.words[Z.length-1]===0)Z.length--}return Z};function u(){I0.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}E(u,I0);function X0(){I0.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}E(X0,I0);function U(){I0.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}E(U,I0),U.prototype.imulK=function(Z){var Y=0;for(var K=0;K<Z.length;K++){var W=(Z.words[K]|0)*19+Y,G=W&67108863;W>>>=26,Z.words[K]=G,Y=W}if(Y!==0)Z.words[Z.length++]=Y;return Z},V._prime=function(Z){if(J0[Z])return J0[Z];var Y;if(Z==="k256")Y=new V0;else if(Z==="p224")Y=new u;else if(Z==="p192")Y=new X0;else if(Z==="p25519")Y=new U;else throw Error("Unknown prime "+Z);return J0[Z]=Y,Y};function Q(Z){if(typeof Z==="string"){var Y=V._prime(Z);this.m=Y.p,this.prime=Y}else H(Z.gtn(1),"modulus must be greater than 1"),this.m=Z,this.prime=null}Q.prototype._verify1=function(Z){H(Z.negative===0,"red works only with positives"),H(Z.red,"red works only with red numbers")},Q.prototype._verify2=function(Z,Y){H((Z.negative|Y.negative)===0,"red works only with positives"),H(Z.red&&Z.red===Y.red,"red works only with red numbers")},Q.prototype.imod=function(Z){if(this.prime)return this.prime.ireduce(Z)._forceRed(this);return C(Z,Z.umod(this.m)._forceRed(this)),Z},Q.prototype.neg=function(Z){if(Z.isZero())return Z.clone();return this.m.sub(Z)._forceRed(this)},Q.prototype.add=function(Z,Y){this._verify2(Z,Y);var K=Z.add(Y);if(K.cmp(this.m)>=0)K.isub(this.m);return K._forceRed(this)},Q.prototype.iadd=function(Z,Y){this._verify2(Z,Y);var K=Z.iadd(Y);if(K.cmp(this.m)>=0)K.isub(this.m);return K},Q.prototype.sub=function(Z,Y){this._verify2(Z,Y);var K=Z.sub(Y);if(K.cmpn(0)<0)K.iadd(this.m);return K._forceRed(this)},Q.prototype.isub=function(Z,Y){this._verify2(Z,Y);var K=Z.isub(Y);if(K.cmpn(0)<0)K.iadd(this.m);return K},Q.prototype.shl=function(Z,Y){return this._verify1(Z),this.imod(Z.ushln(Y))},Q.prototype.imul=function(Z,Y){return this._verify2(Z,Y),this.imod(Z.imul(Y))},Q.prototype.mul=function(Z,Y){return this._verify2(Z,Y),this.imod(Z.mul(Y))},Q.prototype.isqr=function(Z){return this.imul(Z,Z.clone())},Q.prototype.sqr=function(Z){return this.mul(Z,Z)},Q.prototype.sqrt=function(Z){if(Z.isZero())return Z.clone();var Y=this.m.andln(3);if(H(Y%2===1),Y===3){var K=this.m.add(new V(1)).iushrn(2);return this.pow(Z,K)}var W=this.m.subn(1),G=0;while(!W.isZero()&&W.andln(1)===0)G++,W.iushrn(1);H(!W.isZero());var X=new V(1).toRed(this),$=X.redNeg(),M=this.m.subn(1).iushrn(1),A=this.m.bitLength();A=new V(2*A*A).toRed(this);while(this.pow(A,M).cmp($)!==0)A.redIAdd($);var j=this.pow(A,W),g=this.pow(Z,W.addn(1).iushrn(1)),p=this.pow(Z,W),n=G;while(p.cmp(X)!==0){var K0=p;for(var r=0;K0.cmp(X)!==0;r++)K0=K0.redSqr();H(r<n);var l=this.pow(j,new V(1).iushln(n-r-1));g=g.redMul(l),j=l.redSqr(),p=p.redMul(j),n=r}return g},Q.prototype.invm=function(Z){var Y=Z._invmp(this.m);if(Y.negative!==0)return Y.negative=0,this.imod(Y).redNeg();else return this.imod(Y)},Q.prototype.pow=function(Z,Y){if(Y.isZero())return new V(1).toRed(this);if(Y.cmpn(1)===0)return Z.clone();var K=4,W=Array(1<<K);W[0]=new V(1).toRed(this),W[1]=Z;for(var G=2;G<W.length;G++)W[G]=this.mul(W[G-1],Z);var X=W[0],$=0,M=0,A=Y.bitLength()%26;if(A===0)A=26;for(G=Y.length-1;G>=0;G--){var j=Y.words[G];for(var g=A-1;g>=0;g--){var p=j>>g&1;if(X!==W[0])X=this.sqr(X);if(p===0&&$===0){M=0;continue}if($<<=1,$|=p,M++,M!==K&&(G!==0||g!==0))continue;X=this.mul(X,W[$]),M=0,$=0}A=26}return X},Q.prototype.convertTo=function(Z){var Y=Z.umod(this.m);return Y===Z?Y.clone():Y},Q.prototype.convertFrom=function(Z){var Y=Z.clone();return Y.red=null,Y},V.mont=function(Z){return new J(Z)};function J(Z){if(Q.call(this,Z),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new V(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)}E(J,Q),J.prototype.convertTo=function(Z){return this.imod(Z.ushln(this.shift))},J.prototype.convertFrom=function(Z){var Y=this.imod(Z.mul(this.rinv));return Y.red=null,Y},J.prototype.imul=function(Z,Y){if(Z.isZero()||Y.isZero())return Z.words[0]=0,Z.length=1,Z;var K=Z.imul(Y),W=K.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),G=K.isub(W).iushrn(this.shift),X=G;if(G.cmp(this.m)>=0)X=G.isub(this.m);else if(G.cmpn(0)<0)X=G.iadd(this.m);return X._forceRed(this)},J.prototype.mul=function(Z,Y){if(Z.isZero()||Y.isZero())return new V(0)._forceRed(this);var K=Z.mul(Y),W=K.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),G=K.isub(W).iushrn(this.shift),X=G;if(G.cmp(this.m)>=0)X=G.isub(this.m);else if(G.cmpn(0)<0)X=G.iadd(this.m);return X._forceRed(this)},J.prototype.invm=function(Z){var Y=this.imod(Z._invmp(this.m).mul(this.r2));return Y._forceRed(this)}})(typeof O>"u"||O,I)}),hQ=G0((I,O)=>{var F=fV(),T=SX(),H=LU().Buffer;function E(q){var L=q.modulus.byteLength(),z;do z=new F(T(L));while(z.cmp(q.modulus)>=0||!z.umod(q.prime1)||!z.umod(q.prime2));return z}function V(q){var L=E(q),z=L.toRed(F.mont(q.modulus)).redPow(new F(q.publicExponent)).fromRed();return{blinder:z,unblinder:L.invm(q.modulus)}}function P(q,L){var z=V(L),C=L.modulus.byteLength(),D=new F(q).mul(z.blinder).umod(L.modulus),S=D.toRed(F.mont(L.prime1)),R=D.toRed(F.mont(L.prime2)),v=L.coefficient,k=L.prime1,B=L.prime2,_=S.redPow(L.exponent1).fromRed(),x=R.redPow(L.exponent2).fromRed(),w=_.isub(x).imul(v).umod(k).imul(B);return x.iadd(w).imul(z.unblinder).umod(L.modulus).toArrayLike(H,"be",C)}P.getr=E,O.exports=P}),cV=G0((I,O)=>{var F=yQ(),T=SX(),H=RX(),E=fQ(),V=cQ(),P=KZ(),q=pQ(),L=hQ(),z=LU().Buffer;O.exports=function(R,v,k){var B;if(R.padding)B=R.padding;else if(k)B=1;else B=4;var _=F(R),x;if(B===4)x=C(_,v);else if(B===1)x=D(_,v,k);else if(B===3){if(x=new P(v),x.cmp(_.modulus)>=0)throw Error("data too long for modulus")}else throw Error("unknown padding");if(k)return L(x,_);else return q(x,_)};function C(R,v){var k=R.modulus.byteLength(),B=v.length,_=H("sha1").update(z.alloc(0)).digest(),x=_.length,w=2*x;if(B>k-w-2)throw Error("message too long");var y=z.alloc(k-B-w-2),d=k-x-1,J0=T(x),I0=V(z.concat([_,y,z.alloc(1,1),v],d),E(J0,d)),V0=V(J0,E(I0,x));return new P(z.concat([z.alloc(1),V0,I0],k))}function D(R,v,k){var B=v.length,_=R.modulus.byteLength();if(B>_-11)throw Error("message too long");var x;if(k)x=z.alloc(_-B-3,255);else x=S(_-B-3);return new P(z.concat([z.from([0,k?1:2]),x,z.alloc(1),v],_))}function S(R){var v=z.allocUnsafe(R),k=0,B=T(R*2),_=0,x;while(k<R){if(_===B.length)B=T(R*2),_=0;if(x=B[_++],x)v[k++]=x}return v}}),pV=G0((I,O)=>{var F=yQ(),T=fQ(),H=cQ(),E=KZ(),V=hQ(),P=RX(),q=pQ(),L=LU().Buffer;O.exports=function(S,R,v){var k;if(S.padding)k=S.padding;else if(v)k=1;else k=4;var B=F(S),_=B.modulus.byteLength();if(R.length>_||new E(R).cmp(B.modulus)>=0)throw Error("decryption error");var x;if(v)x=q(new E(R),B);else x=V(R,B);var w=L.alloc(_-x.length);if(x=L.concat([w,x],_),k===4)return z(B,x);else if(k===1)return C(B,x,v);else if(k===3)return x;else throw Error("unknown padding")};function z(S,R){var v=S.modulus.byteLength(),k=P("sha1").update(L.alloc(0)).digest(),B=k.length;if(R[0]!==0)throw Error("decryption error");var _=R.slice(1,B+1),x=R.slice(B+1),w=H(_,T(x,B)),y=H(x,T(w,v-B-1));if(D(k,y.slice(0,B)))throw Error("decryption error");var d=B;while(y[d]===0)d++;if(y[d++]!==1)throw Error("decryption error");return y.slice(d)}function C(S,R,v){var k=R.slice(0,2),B=2,_=0;while(R[B++]!==0)if(B>=R.length){_++;break}var x=R.slice(2,B-1);if(k.toString("hex")!=="0002"&&!v||k.toString("hex")!=="0001"&&v)_++;if(x.length<8)_++;if(_)throw Error("decryption error");return R.slice(B)}function D(S,R){S=L.from(S),R=L.from(R);var v=0,k=S.length;if(S.length!==R.length)v++,k=Math.min(S.length,R.length);var B=-1;while(++B<k)v+=S[B]^R[B];return v}}),XZ=G0((I)=>{I.publicEncrypt=cV(),I.privateDecrypt=pV(),I.privateEncrypt=function(O,F){return I.publicEncrypt(O,F,!0)},I.publicDecrypt=function(O,F){return I.privateDecrypt(O,F,!0)}}),hV=G0((I)=>{var O=(qU(),h0(RU));if(typeof O.publicEncrypt!=="function")O=XZ();if(I.publicEncrypt=O.publicEncrypt,I.privateDecrypt=O.privateDecrypt,typeof O.privateEncrypt!=="function")I.privateEncrypt=XZ().privateEncrypt;else I.privateEncrypt=O.privateEncrypt;if(typeof O.publicDecrypt!=="function")I.publicDecrypt=XZ().publicDecrypt;else I.publicDecrypt=O.publicDecrypt}),uV=G0((I)=>{var O=LU(),F=SX(),T=O.Buffer,H=O.kMaxLength,E=globalThis.crypto||globalThis.msCrypto,V=Math.pow(2,32)-1;function P(D,S){if(typeof D!=="number"||D!==D)throw TypeError("offset must be a number");if(D>V||D<0)throw TypeError("offset must be a uint32");if(D>H||D>S)throw RangeError("offset out of range")}function q(D,S,R){if(typeof D!=="number"||D!==D)throw TypeError("size must be a number");if(D>V||D<0)throw TypeError("size must be a uint32");if(D+S>R||D>H)throw RangeError("buffer too small")}E&&E.getRandomValues,I.randomFill=L,I.randomFillSync=C;function L(D,S,R,v){if(!T.isBuffer(D)&&!(D instanceof globalThis.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof S==="function")v=S,S=0,R=D.length;else if(typeof R==="function")v=R,R=D.length-S;else if(typeof v!=="function")throw TypeError('"cb" argument must be a function');return P(S,D.length),q(R,S,D.length),z(D,S,R,v)}function z(D,S,R,v){if(!1)var k,B;if(v){F(R,function(x,w){if(x)return v(x);w.copy(D,S),v(null,D)});return}var _=F(R);return _.copy(D,S),D}function C(D,S,R){if(typeof S>"u")S=0;if(!T.isBuffer(D)&&!(D instanceof globalThis.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');if(P(S,D.length),R===void 0)R=D.length-S;return q(R,S,D.length),z(D,S,R)}}),bV=G0((I,O)=>{var F=(qU(),h0(RU));if(typeof F.randomFill==="function"&&typeof F.randomFillSync==="function")I.randomFill=F.randomFill,I.randomFillSync=F.randomFillSync;else O.exports=uV()}),lV=G0((I)=>{I.randomBytes=I.rng=I.pseudoRandomBytes=I.prng=SX(),I.createHash=I.Hash=RX(),I.createHmac=I.Hmac=HQ();var O=FJ(),F=Object.keys(O),T=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(F);I.getHashes=function(){return T};var H=qQ();I.pbkdf2=H.pbkdf2,I.pbkdf2Sync=H.pbkdf2Sync;var E=tJ();I.Cipher=E.Cipher,I.createCipher=E.createCipher,I.Cipheriv=E.Cipheriv,I.createCipheriv=E.createCipheriv,I.Decipher=E.Decipher,I.createDecipher=E.createDecipher,I.Decipheriv=E.Decipheriv,I.createDecipheriv=E.createDecipheriv,I.getCiphers=E.getCiphers,I.listCiphers=E.listCiphers;var V=rJ();I.DiffieHellmanGroup=V.DiffieHellmanGroup,I.createDiffieHellmanGroup=V.createDiffieHellmanGroup,I.getDiffieHellman=V.getDiffieHellman,I.createDiffieHellman=V.createDiffieHellman,I.DiffieHellman=V.DiffieHellman;var P=aJ();I.createSign=P.createSign,I.Sign=P.Sign,I.createVerify=P.createVerify,I.Verify=P.Verify,I.createECDH=LV();var q=hV();I.publicEncrypt=q.publicEncrypt,I.privateEncrypt=q.privateEncrypt,I.publicDecrypt=q.publicDecrypt,I.privateDecrypt=q.privateDecrypt;var L=bV();I.randomFill=L.randomFill,I.randomFillSync=L.randomFillSync,I.createCredentials=function(){throw Error(`sorry, createCredentials is not implemented yet
15
+ we accept pull requests
16
+ https://github.com/browserify/crypto-browserify`)},I.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}}),p0=WJ(lV(),1),dV=p0.prng,oV=p0.pseudoRandomBytes,nV=p0.rng,mV=p0.randomBytes,sV=p0.Hash,tV=p0.createHash,rV=p0.Hmac,aV=p0.createHmac,eV=p0.getHashes,iV=p0.pbkdf2,UG=p0.pbkdf2Sync,XG=p0.Cipher,ZG=p0.createCipher,QG=p0.Cipheriv,YG=p0.createCipheriv,JG=p0.Decipher,VG=p0.createDecipher,GG=p0.Decipheriv,IG=p0.createDecipheriv,$G=p0.getCiphers,KG=p0.listCiphers,OG=p0.DiffieHellmanGroup,WG=p0.createDiffieHellmanGroup,FG=p0.getDiffieHellman,HG=p0.createDiffieHellman,CG=p0.DiffieHellman,AG=p0.createSign,TG=p0.Sign,DG=p0.createVerify,zG=p0.Verify,LG=p0.createECDH,EG=p0.publicEncrypt,MG=p0.privateEncrypt,SG=p0.publicDecrypt,RG=p0.privateDecrypt,qG=p0.randomFill,PG=p0.randomFillSync,kG=p0.createCredentials,jG=p0.constants,xG=["p192","p224","p256","p384","p521","curve25519","ed25519","secp256k1","secp224r1","prime256v1","prime192v1","ed25519","secp384r1","secp521r1"];gG=crypto,wG=crypto});qU();export{gG as webcrypto,nV as rng,BG as randomUUID,PG as randomFillSync,qG as randomFill,mV as randomBytes,EG as publicEncrypt,SG as publicDecrypt,oV as pseudoRandomBytes,dV as prng,MG as privateEncrypt,RG as privateDecrypt,UG as pbkdf2Sync,iV as pbkdf2,KG as listCiphers,_G as getRandomValues,eV as getHashes,FG as getDiffieHellman,NG as getCurves,$G as getCiphers,wG as default,DG as createVerify,AG as createSign,aV as createHmac,tV as createHash,LG as createECDH,WG as createDiffieHellmanGroup,HG as createDiffieHellman,IG as createDecipheriv,VG as createDecipher,kG as createCredentials,YG as createCipheriv,ZG as createCipher,jG as constants,zG as Verify,TG as Sign,rV as Hmac,sV as Hash,OG as DiffieHellmanGroup,CG as DiffieHellman,GG as Decipheriv,JG as Decipher,vG as DEFAULT_ENCODING,QG as Cipheriv,XG as Cipher};