import{StringDecoder as BQ} from"node:string_decoder";import*as P0 from"node:buffer";import*as R0 from"node:stream";var PZ=function(){return RZ};var xQ=Object.defineProperty;var J=Object.getOwnPropertyNames;var yQ=536870888,G0=globalThis.Buffer,qQ=globalThis.crypto,wQ=qQ;var pQ=(t0,m0)=>function(){return m0||(0,t0[J(t0)[0]])((m0={exports:{}}).exports,m0),m0.exports},fQ=(t0,m0)=>{for(var a0 in m0)xQ(t0,a0,{get:m0[a0],enumerable:!0})};var cQ=pQ({"node_modules/safe-buffer/index.js"(t0,m0){var a0=P0,e0=a0.Buffer;function r0($$,Q$){for(var $ in $$)Q$[$]=$$[$]}e0.from&&e0.alloc&&e0.allocUnsafe&&e0.allocUnsafeSlow?m0.exports=a0:(r0(a0,t0),t0.Buffer=i0);function i0($$,Q$,$){return e0($$,Q$,$)}i0.prototype=Object.create(e0.prototype),r0(e0,i0),i0.from=function($$,Q$,$){if(typeof $$=="number")throw new TypeError("Argument must not be a number");return e0($$,Q$,$)},i0.alloc=function($$,Q$,$){if(typeof $$!="number")throw new TypeError("Argument must be a number");var N=e0($$);return Q$!==void 0?typeof $=="string"?N.fill(Q$,$):N.fill(Q$):N.fill(0),N},i0.allocUnsafe=function($$){if(typeof $$!="number")throw new TypeError("Argument must be a number");return e0($$)},i0.allocUnsafeSlow=function($$){if(typeof $$!="number")throw new TypeError("Argument must be a number");return a0.SlowBuffer($$)}}}),hQ=pQ({"node_modules/randombytes/browser.js"(t0,m0){var a0=65536,e0=4294967295;function r0(){throw new Error(`Secure random number generation is not supported by this browser. Use Chrome, Firefox or Internet Explorer 11`)}var i0=cQ().Buffer,$$=wQ;$$&&$$.getRandomValues?m0.exports=Q$:m0.exports=r0;function Q$($,N){if($>e0)throw new RangeError("requested too many random bytes");var Y$=i0.allocUnsafe($);if($>0)if($>a0)for(var O0=0;O0<$;O0+=a0)$$.getRandomValues(Y$.slice(O0,O0+a0));else $$.getRandomValues(Y$);return typeof N=="function"?process.nextTick(function(){N(null,Y$)}):Y$}}}),dQ=pQ({"node_modules/inherits/inherits_browser.js"(t0,m0){typeof Object.create=="function"?m0.exports=function(a0,e0){e0&&(a0.super_=e0,a0.prototype=Object.create(e0.prototype,{constructor:{value:a0,enumerable:!1,writable:!0,configurable:!0}}))}:m0.exports=function(a0,e0){if(e0){a0.super_=e0;var r0=function(){};r0.prototype=e0.prototype,a0.prototype=new r0,a0.prototype.constructor=a0}}}}),F=pQ({"node_modules/hash-base/index.js"(t0,m0){var a0=cQ().Buffer,e0=dQ();function r0($$,Q$){if(!a0.isBuffer($$)&&typeof $$!="string")throw new TypeError(Q$+" must be a string or a buffer")}function i0($$){R0.Transform.call(this),this._block=a0.allocUnsafe($$),this._blockSize=$$,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}e0(i0,R0.Transform),i0.prototype._transform=function($$,Q$,$){var N=null;try{this.update($$,Q$)}catch(Y$){N=Y$}$(N)},i0.prototype._flush=function($$){var Q$=null;try{this.push(this.digest())}catch($){Q$=$}$$(Q$)},i0.prototype.update=function($$,Q$){if(r0($$,"Data"),this._finalized)throw new Error("Digest already called");a0.isBuffer($$)||($$=a0.from($$,Q$));for(var $=this._block,N=0;this._blockOffset+$$.length-N>=this._blockSize;){for(var Y$=this._blockOffset;Y$0;++O0)this._length[O0]+=Z$,Z$=this._length[O0]/4294967296|0,Z$>0&&(this._length[O0]-=4294967296*Z$);return this},i0.prototype._update=function(){throw new Error("_update is not implemented")},i0.prototype.digest=function($$){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var Q$=this._digest();$$!==void 0&&(Q$=Q$.toString($$)),this._block.fill(0),this._blockOffset=0;for(var $=0;$<4;++$)this._length[$]=0;return Q$},i0.prototype._digest=function(){throw new Error("_digest is not implemented")},m0.exports=i0}}),_=pQ({"node_modules/md5.js/index.js"(t0,m0){var a0=dQ(),e0=F(),r0=cQ().Buffer,i0=new Array(16);function $$(){e0.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}a0($$,e0),$$.prototype._update=function(){for(var Z$=i0,G$=0;G$<16;++G$)Z$[G$]=this._block.readInt32LE(G$*4);var V$=this._a,U$=this._b,X$=this._c,K$=this._d;V$=$(V$,U$,X$,K$,Z$[0],3614090360,7),K$=$(K$,V$,U$,X$,Z$[1],3905402710,12),X$=$(X$,K$,V$,U$,Z$[2],606105819,17),U$=$(U$,X$,K$,V$,Z$[3],3250441966,22),V$=$(V$,U$,X$,K$,Z$[4],4118548399,7),K$=$(K$,V$,U$,X$,Z$[5],1200080426,12),X$=$(X$,K$,V$,U$,Z$[6],2821735955,17),U$=$(U$,X$,K$,V$,Z$[7],4249261313,22),V$=$(V$,U$,X$,K$,Z$[8],1770035416,7),K$=$(K$,V$,U$,X$,Z$[9],2336552879,12),X$=$(X$,K$,V$,U$,Z$[10],4294925233,17),U$=$(U$,X$,K$,V$,Z$[11],2304563134,22),V$=$(V$,U$,X$,K$,Z$[12],1804603682,7),K$=$(K$,V$,U$,X$,Z$[13],4254626195,12),X$=$(X$,K$,V$,U$,Z$[14],2792965006,17),U$=$(U$,X$,K$,V$,Z$[15],1236535329,22),V$=N(V$,U$,X$,K$,Z$[1],4129170786,5),K$=N(K$,V$,U$,X$,Z$[6],3225465664,9),X$=N(X$,K$,V$,U$,Z$[11],643717713,14),U$=N(U$,X$,K$,V$,Z$[0],3921069994,20),V$=N(V$,U$,X$,K$,Z$[5],3593408605,5),K$=N(K$,V$,U$,X$,Z$[10],38016083,9),X$=N(X$,K$,V$,U$,Z$[15],3634488961,14),U$=N(U$,X$,K$,V$,Z$[4],3889429448,20),V$=N(V$,U$,X$,K$,Z$[9],568446438,5),K$=N(K$,V$,U$,X$,Z$[14],3275163606,9),X$=N(X$,K$,V$,U$,Z$[3],4107603335,14),U$=N(U$,X$,K$,V$,Z$[8],1163531501,20),V$=N(V$,U$,X$,K$,Z$[13],2850285829,5),K$=N(K$,V$,U$,X$,Z$[2],4243563512,9),X$=N(X$,K$,V$,U$,Z$[7],1735328473,14),U$=N(U$,X$,K$,V$,Z$[12],2368359562,20),V$=Y$(V$,U$,X$,K$,Z$[5],4294588738,4),K$=Y$(K$,V$,U$,X$,Z$[8],2272392833,11),X$=Y$(X$,K$,V$,U$,Z$[11],1839030562,16),U$=Y$(U$,X$,K$,V$,Z$[14],4259657740,23),V$=Y$(V$,U$,X$,K$,Z$[1],2763975236,4),K$=Y$(K$,V$,U$,X$,Z$[4],1272893353,11),X$=Y$(X$,K$,V$,U$,Z$[7],4139469664,16),U$=Y$(U$,X$,K$,V$,Z$[10],3200236656,23),V$=Y$(V$,U$,X$,K$,Z$[13],681279174,4),K$=Y$(K$,V$,U$,X$,Z$[0],3936430074,11),X$=Y$(X$,K$,V$,U$,Z$[3],3572445317,16),U$=Y$(U$,X$,K$,V$,Z$[6],76029189,23),V$=Y$(V$,U$,X$,K$,Z$[9],3654602809,4),K$=Y$(K$,V$,U$,X$,Z$[12],3873151461,11),X$=Y$(X$,K$,V$,U$,Z$[15],530742520,16),U$=Y$(U$,X$,K$,V$,Z$[2],3299628645,23),V$=O0(V$,U$,X$,K$,Z$[0],4096336452,6),K$=O0(K$,V$,U$,X$,Z$[7],1126891415,10),X$=O0(X$,K$,V$,U$,Z$[14],2878612391,15),U$=O0(U$,X$,K$,V$,Z$[5],4237533241,21),V$=O0(V$,U$,X$,K$,Z$[12],1700485571,6),K$=O0(K$,V$,U$,X$,Z$[3],2399980690,10),X$=O0(X$,K$,V$,U$,Z$[10],4293915773,15),U$=O0(U$,X$,K$,V$,Z$[1],2240044497,21),V$=O0(V$,U$,X$,K$,Z$[8],1873313359,6),K$=O0(K$,V$,U$,X$,Z$[15],4264355552,10),X$=O0(X$,K$,V$,U$,Z$[6],2734768916,15),U$=O0(U$,X$,K$,V$,Z$[13],1309151649,21),V$=O0(V$,U$,X$,K$,Z$[4],4149444226,6),K$=O0(K$,V$,U$,X$,Z$[11],3174756917,10),X$=O0(X$,K$,V$,U$,Z$[2],718787259,15),U$=O0(U$,X$,K$,V$,Z$[9],3951481745,21),this._a=this._a+V$|0,this._b=this._b+U$|0,this._c=this._c+X$|0,this._d=this._d+K$|0},$$.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var Z$=r0.allocUnsafe(16);return Z$.writeInt32LE(this._a,0),Z$.writeInt32LE(this._b,4),Z$.writeInt32LE(this._c,8),Z$.writeInt32LE(this._d,12),Z$};function Q$(Z$,G$){return Z$<>>32-G$}function $(Z$,G$,V$,U$,X$,K$,I$){return Q$(Z$+(G$&V$|~G$&U$)+X$+K$|0,I$)+G$|0}function N(Z$,G$,V$,U$,X$,K$,I$){return Q$(Z$+(G$&U$|V$&~U$)+X$+K$|0,I$)+G$|0}function Y$(Z$,G$,V$,U$,X$,K$,I$){return Q$(Z$+(G$^V$^U$)+X$+K$|0,I$)+G$|0}function O0(Z$,G$,V$,U$,X$,K$,I$){return Q$(Z$+(V$^(G$|~U$))+X$+K$|0,I$)+G$|0}m0.exports=$$}}),V0=pQ({"node_modules/ripemd160/index.js"(t0,m0){var a0=G0,e0=dQ(),r0=F(),i0=new Array(16),$$=[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],Q$=[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],$=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],N=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],Y$=[0,1518500249,1859775393,2400959708,2840853838],O0=[1352829926,1548603684,1836072691,2053994217,0];function Z$(){r0.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}e0(Z$,r0),Z$.prototype._update=function(){for(var Q=i0,x=0;x<16;++x)Q[x]=this._block.readInt32LE(x*4);for(var O$=this._a|0,J0=this._b|0,J$=this._c|0,F$=this._d|0,A$=this._e|0,H$=this._a|0,W$=this._b|0,E$=this._c|0,T$=this._d|0,Y=this._e|0,f=0;f<80;f+=1){var D$,F0;f<16?(D$=V$(O$,J0,J$,F$,A$,Q[$$[f]],Y$[0],$[f]),F0=I$(H$,W$,E$,T$,Y,Q[Q$[f]],O0[0],N[f])):f<32?(D$=U$(O$,J0,J$,F$,A$,Q[$$[f]],Y$[1],$[f]),F0=K$(H$,W$,E$,T$,Y,Q[Q$[f]],O0[1],N[f])):f<48?(D$=X$(O$,J0,J$,F$,A$,Q[$$[f]],Y$[2],$[f]),F0=X$(H$,W$,E$,T$,Y,Q[Q$[f]],O0[2],N[f])):f<64?(D$=K$(O$,J0,J$,F$,A$,Q[$$[f]],Y$[3],$[f]),F0=U$(H$,W$,E$,T$,Y,Q[Q$[f]],O0[3],N[f])):(D$=I$(O$,J0,J$,F$,A$,Q[$$[f]],Y$[4],$[f]),F0=V$(H$,W$,E$,T$,Y,Q[Q$[f]],O0[4],N[f])),O$=A$,A$=F$,F$=G$(J$,10),J$=J0,J0=D$,H$=Y,Y=T$,T$=G$(E$,10),E$=W$,W$=F0}var C$=this._b+J$+T$|0;this._b=this._c+F$+Y|0,this._c=this._d+A$+H$|0,this._d=this._e+O$+W$|0,this._e=this._a+J0+E$|0,this._a=C$},Z$.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var Q=a0.alloc?a0.alloc(20):new a0(20);return Q.writeInt32LE(this._a,0),Q.writeInt32LE(this._b,4),Q.writeInt32LE(this._c,8),Q.writeInt32LE(this._d,12),Q.writeInt32LE(this._e,16),Q};function G$(Q,x){return Q<>>32-x}function V$(Q,x,O$,J0,J$,F$,A$,H$){return G$(Q+(x^O$^J0)+F$+A$|0,H$)+J$|0}function U$(Q,x,O$,J0,J$,F$,A$,H$){return G$(Q+(x&O$|~x&J0)+F$+A$|0,H$)+J$|0}function X$(Q,x,O$,J0,J$,F$,A$,H$){return G$(Q+((x|~O$)^J0)+F$+A$|0,H$)+J$|0}function K$(Q,x,O$,J0,J$,F$,A$,H$){return G$(Q+(x&J0|O$&~J0)+F$+A$|0,H$)+J$|0}function I$(Q,x,O$,J0,J$,F$,A$,H$){return G$(Q+(x^(O$|~J0))+F$+A$|0,H$)+J$|0}m0.exports=Z$}}),z0=pQ({"node_modules/sha.js/hash.js"(t0,m0){var a0=cQ().Buffer;function e0(r0,i0){this._block=a0.alloc(r0),this._finalSize=i0,this._blockSize=r0,this._len=0}e0.prototype.update=function(r0,i0){typeof r0=="string"&&(i0=i0||"utf8",r0=a0.from(r0,i0));for(var $$=this._block,Q$=this._blockSize,$=r0.length,N=this._len,Y$=0;Y$<$;){for(var O0=N%Q$,Z$=Math.min($-Y$,Q$-O0),G$=0;G$=this._finalSize&&(this._update(this._block),this._block.fill(0));var $$=this._len*8;if($$<=4294967295)this._block.writeUInt32BE($$,this._blockSize-4);else{var Q$=($$&4294967295)>>>0,$=($$-Q$)/4294967296;this._block.writeUInt32BE($,this._blockSize-8),this._block.writeUInt32BE(Q$,this._blockSize-4)}this._update(this._block);var N=this._hash();return r0?N.toString(r0):N},e0.prototype._update=function(){throw new Error("_update must be implemented by subclass")},m0.exports=e0}}),bQ=pQ({"node_modules/sha.js/sha.js"(t0,m0){var a0=dQ(),e0=z0(),r0=cQ().Buffer,i0=[1518500249,1859775393,-1894007588,-899497514],$$=new Array(80);function Q$(){this.init(),this._w=$$,e0.call(this,64,56)}a0(Q$,e0),Q$.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function $(O0){return O0<<5|O0>>>27}function N(O0){return O0<<30|O0>>>2}function Y$(O0,Z$,G$,V$){return O0===0?Z$&G$|~Z$&V$:O0===2?Z$&G$|Z$&V$|G$&V$:Z$^G$^V$}Q$.prototype._update=function(O0){for(var Z$=this._w,G$=this._a|0,V$=this._b|0,U$=this._c|0,X$=this._d|0,K$=this._e|0,I$=0;I$<16;++I$)Z$[I$]=O0.readInt32BE(I$*4);for(;I$<80;++I$)Z$[I$]=Z$[I$-3]^Z$[I$-8]^Z$[I$-14]^Z$[I$-16];for(var Q=0;Q<80;++Q){var x=~~(Q/20),O$=$(G$)+Y$(x,V$,U$,X$)+K$+Z$[Q]+i0[x]|0;K$=X$,X$=U$,U$=N(V$),V$=G$,G$=O$}this._a=G$+this._a|0,this._b=V$+this._b|0,this._c=U$+this._c|0,this._d=X$+this._d|0,this._e=K$+this._e|0},Q$.prototype._hash=function(){var O0=r0.allocUnsafe(20);return O0.writeInt32BE(this._a|0,0),O0.writeInt32BE(this._b|0,4),O0.writeInt32BE(this._c|0,8),O0.writeInt32BE(this._d|0,12),O0.writeInt32BE(this._e|0,16),O0},m0.exports=Q$}}),lQ=pQ({"node_modules/sha.js/sha1.js"(t0,m0){var a0=dQ(),e0=z0(),r0=cQ().Buffer,i0=[1518500249,1859775393,-1894007588,-899497514],$$=new Array(80);function Q$(){this.init(),this._w=$$,e0.call(this,64,56)}a0(Q$,e0),Q$.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function $(Z$){return Z$<<1|Z$>>>31}function N(Z$){return Z$<<5|Z$>>>27}function Y$(Z$){return Z$<<30|Z$>>>2}function O0(Z$,G$,V$,U$){return Z$===0?G$&V$|~G$&U$:Z$===2?G$&V$|G$&U$|V$&U$:G$^V$^U$}Q$.prototype._update=function(Z$){for(var G$=this._w,V$=this._a|0,U$=this._b|0,X$=this._c|0,K$=this._d|0,I$=this._e|0,Q=0;Q<16;++Q)G$[Q]=Z$.readInt32BE(Q*4);for(;Q<80;++Q)G$[Q]=$(G$[Q-3]^G$[Q-8]^G$[Q-14]^G$[Q-16]);for(var x=0;x<80;++x){var O$=~~(x/20),J0=N(V$)+O0(O$,U$,X$,K$)+I$+G$[x]+i0[O$]|0;I$=K$,K$=X$,X$=Y$(U$),U$=V$,V$=J0}this._a=V$+this._a|0,this._b=U$+this._b|0,this._c=X$+this._c|0,this._d=K$+this._d|0,this._e=I$+this._e|0},Q$.prototype._hash=function(){var Z$=r0.allocUnsafe(20);return Z$.writeInt32BE(this._a|0,0),Z$.writeInt32BE(this._b|0,4),Z$.writeInt32BE(this._c|0,8),Z$.writeInt32BE(this._d|0,12),Z$.writeInt32BE(this._e|0,16),Z$},m0.exports=Q$}}),oQ=pQ({"node_modules/sha.js/sha256.js"(t0,m0){var a0=dQ(),e0=z0(),r0=cQ().Buffer,i0=[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],$$=new Array(64);function Q$(){this.init(),this._w=$$,e0.call(this,64,56)}a0(Q$,e0),Q$.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function $(V$,U$,X$){return X$^V$&(U$^X$)}function N(V$,U$,X$){return V$&U$|X$&(V$|U$)}function Y$(V$){return(V$>>>2|V$<<30)^(V$>>>13|V$<<19)^(V$>>>22|V$<<10)}function O0(V$){return(V$>>>6|V$<<26)^(V$>>>11|V$<<21)^(V$>>>25|V$<<7)}function Z$(V$){return(V$>>>7|V$<<25)^(V$>>>18|V$<<14)^V$>>>3}function G$(V$){return(V$>>>17|V$<<15)^(V$>>>19|V$<<13)^V$>>>10}Q$.prototype._update=function(V$){for(var U$=this._w,X$=this._a|0,K$=this._b|0,I$=this._c|0,Q=this._d|0,x=this._e|0,O$=this._f|0,J0=this._g|0,J$=this._h|0,F$=0;F$<16;++F$)U$[F$]=V$.readInt32BE(F$*4);for(;F$<64;++F$)U$[F$]=G$(U$[F$-2])+U$[F$-7]+Z$(U$[F$-15])+U$[F$-16]|0;for(var A$=0;A$<64;++A$){var H$=J$+O0(x)+$(x,O$,J0)+i0[A$]+U$[A$]|0,W$=Y$(X$)+N(X$,K$,I$)|0;J$=J0,J0=O$,O$=x,x=Q+H$|0,Q=I$,I$=K$,K$=X$,X$=H$+W$|0}this._a=X$+this._a|0,this._b=K$+this._b|0,this._c=I$+this._c|0,this._d=Q+this._d|0,this._e=x+this._e|0,this._f=O$+this._f|0,this._g=J0+this._g|0,this._h=J$+this._h|0},Q$.prototype._hash=function(){var V$=r0.allocUnsafe(32);return V$.writeInt32BE(this._a,0),V$.writeInt32BE(this._b,4),V$.writeInt32BE(this._c,8),V$.writeInt32BE(this._d,12),V$.writeInt32BE(this._e,16),V$.writeInt32BE(this._f,20),V$.writeInt32BE(this._g,24),V$.writeInt32BE(this._h,28),V$},m0.exports=Q$}}),uQ=pQ({"node_modules/sha.js/sha224.js"(t0,m0){var a0=dQ(),e0=oQ(),r0=z0(),i0=cQ().Buffer,$$=new Array(64);function Q$(){this.init(),this._w=$$,r0.call(this,64,56)}a0(Q$,e0),Q$.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},Q$.prototype._hash=function(){var $=i0.allocUnsafe(28);return $.writeInt32BE(this._a,0),$.writeInt32BE(this._b,4),$.writeInt32BE(this._c,8),$.writeInt32BE(this._d,12),$.writeInt32BE(this._e,16),$.writeInt32BE(this._f,20),$.writeInt32BE(this._g,24),$},m0.exports=Q$}}),nQ=pQ({"node_modules/sha.js/sha512.js"(t0,m0){var a0=dQ(),e0=z0(),r0=cQ().Buffer,i0=[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],$$=new Array(160);function Q$(){this.init(),this._w=$$,e0.call(this,128,112)}a0(Q$,e0),Q$.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function $(K$,I$,Q){return Q^K$&(I$^Q)}function N(K$,I$,Q){return K$&I$|Q&(K$|I$)}function Y$(K$,I$){return(K$>>>28|I$<<4)^(I$>>>2|K$<<30)^(I$>>>7|K$<<25)}function O0(K$,I$){return(K$>>>14|I$<<18)^(K$>>>18|I$<<14)^(I$>>>9|K$<<23)}function Z$(K$,I$){return(K$>>>1|I$<<31)^(K$>>>8|I$<<24)^K$>>>7}function G$(K$,I$){return(K$>>>1|I$<<31)^(K$>>>8|I$<<24)^(K$>>>7|I$<<25)}function V$(K$,I$){return(K$>>>19|I$<<13)^(I$>>>29|K$<<3)^K$>>>6}function U$(K$,I$){return(K$>>>19|I$<<13)^(I$>>>29|K$<<3)^(K$>>>6|I$<<26)}function X$(K$,I$){return K$>>>0>>0?1:0}Q$.prototype._update=function(K$){for(var I$=this._w,Q=this._ah|0,x=this._bh|0,O$=this._ch|0,J0=this._dh|0,J$=this._eh|0,F$=this._fh|0,A$=this._gh|0,H$=this._hh|0,W$=this._al|0,E$=this._bl|0,T$=this._cl|0,Y=this._dl|0,f=this._el|0,D$=this._fl|0,F0=this._gl|0,C$=this._hl|0,L$=0;L$<32;L$+=2)I$[L$]=K$.readInt32BE(L$*4),I$[L$+1]=K$.readInt32BE(L$*4+4);for(;L$<160;L$+=2){var R$=I$[L$-30],P$=I$[L$-30+1],z$=Z$(R$,P$),M$=G$(P$,R$);R$=I$[L$-4],P$=I$[L$-4+1];var S$=V$(R$,P$),Z=U$(P$,R$),c=I$[L$-14],v$=I$[L$-14+1],A0=I$[L$-32],q$=I$[L$-32+1],j$=M$+v$|0,k$=z$+c+X$(j$,M$)|0;j$=j$+Z|0,k$=k$+S$+X$(j$,Z)|0,j$=j$+q$|0,k$=k$+A0+X$(j$,q$)|0,I$[L$]=k$,I$[L$+1]=j$}for(var g$=0;g$<160;g$+=2){k$=I$[g$],j$=I$[g$+1];var _$=N(Q,x,O$),N$=N(W$,E$,T$),x$=Y$(Q,W$),G=Y$(W$,Q),B=O0(J$,f),B$=O0(f,J$),H0=i0[g$],y$=i0[g$+1],w$=$(J$,F$,A$),p$=$(f,D$,F0),f$=C$+B$|0,c$=H$+B+X$(f$,C$)|0;f$=f$+p$|0,c$=c$+w$+X$(f$,p$)|0,f$=f$+y$|0,c$=c$+H0+X$(f$,y$)|0,f$=f$+j$|0,c$=c$+k$+X$(f$,j$)|0;var h$=G+N$|0,d$=x$+_$+X$(h$,G)|0;H$=A$,C$=F0,A$=F$,F0=D$,F$=J$,D$=f,f=Y+f$|0,J$=J0+c$+X$(f,Y)|0,J0=O$,Y=T$,O$=x,T$=E$,x=Q,E$=W$,W$=f$+h$|0,Q=c$+d$+X$(W$,f$)|0}this._al=this._al+W$|0,this._bl=this._bl+E$|0,this._cl=this._cl+T$|0,this._dl=this._dl+Y|0,this._el=this._el+f|0,this._fl=this._fl+D$|0,this._gl=this._gl+F0|0,this._hl=this._hl+C$|0,this._ah=this._ah+Q+X$(this._al,W$)|0,this._bh=this._bh+x+X$(this._bl,E$)|0,this._ch=this._ch+O$+X$(this._cl,T$)|0,this._dh=this._dh+J0+X$(this._dl,Y)|0,this._eh=this._eh+J$+X$(this._el,f)|0,this._fh=this._fh+F$+X$(this._fl,D$)|0,this._gh=this._gh+A$+X$(this._gl,F0)|0,this._hh=this._hh+H$+X$(this._hl,C$)|0},Q$.prototype._hash=function(){var K$=r0.allocUnsafe(64);function I$(Q,x,O$){K$.writeInt32BE(Q,O$),K$.writeInt32BE(x,O$+4)}return I$(this._ah,this._al,0),I$(this._bh,this._bl,8),I$(this._ch,this._cl,16),I$(this._dh,this._dl,24),I$(this._eh,this._el,32),I$(this._fh,this._fl,40),I$(this._gh,this._gl,48),I$(this._hh,this._hl,56),K$},m0.exports=Q$}}),sQ=pQ({"node_modules/sha.js/sha384.js"(t0,m0){var a0=dQ(),e0=nQ(),r0=z0(),i0=cQ().Buffer,$$=new Array(160);function Q$(){this.init(),this._w=$$,r0.call(this,128,112)}a0(Q$,e0),Q$.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},Q$.prototype._hash=function(){var $=i0.allocUnsafe(48);function N(Y$,O0,Z$){$.writeInt32BE(Y$,Z$),$.writeInt32BE(O0,Z$+4)}return N(this._ah,this._al,0),N(this._bh,this._bl,8),N(this._ch,this._cl,16),N(this._dh,this._dl,24),N(this._eh,this._el,32),N(this._fh,this._fl,40),$},m0.exports=Q$}}),tQ=pQ({"node_modules/sha.js/index.js"(a0,m0){var a0=m0.exports=function(e0){e0=e0.toLowerCase();var r0=a0[e0];if(!r0)throw new Error(e0+" is not supported (we accept pull requests)");return new r0};a0.sha=bQ(),a0.sha1=lQ(),a0.sha224=uQ(),a0.sha256=oQ(),a0.sha384=sQ(),a0.sha512=nQ()}}),A=pQ({"node_modules/cipher-base/index.js"(t0,m0){var a0=cQ().Buffer,e0=dQ();function r0(i0){R0.Transform.call(this),this.hashMode=typeof i0=="string",this.hashMode?this[i0]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}e0(r0,R0.Transform),r0.prototype.update=function(i0,$$,Q$){typeof i0=="string"&&(i0=a0.from(i0,$$));var $=this._update(i0);return this.hashMode?this:(Q$&&($=this._toString($,Q$)),$)},r0.prototype.setAutoPadding=function(){},r0.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},r0.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},r0.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},r0.prototype._transform=function(i0,$$,Q$){var $;try{this.hashMode?this._update(i0):this.push(this._update(i0))}catch(N){$=N}finally{Q$($)}},r0.prototype._flush=function(i0){var $$;try{this.push(this.__final())}catch(Q$){$$=Q$}i0($$)},r0.prototype._finalOrDigest=function(i0){var $$=this.__final()||a0.alloc(0);return i0&&($$=this._toString($$,i0,!0)),$$},r0.prototype._toString=function(i0,$$,Q$){if(this._decoder||(this._decoder=new BQ($$),this._encoding=$$),this._encoding!==$$)throw new Error("can't switch encodings");var $=this._decoder.write(i0);return Q$&&($+=this._decoder.end()),$},m0.exports=r0}}),w=pQ({"node_modules/create-hash/browser.js"(t0,m0){const a0=function i0($$,Q$){this._options=Q$,this._hasher=new AZ($$,Q$),this._finalized=!1};a0.prototype=Object.create(R0.Transform.prototype),a0.prototype.update=function i0($$,Q$){return this._checkFinalized(),this._hasher.update($$,Q$),this},a0.prototype.digest=function i0($$,Q$){return this._checkFinalized(),this._finalized=!0,this._hasher.digest($$,Q$)},a0.prototype._checkFinalized=function i0(){if(this._finalized){var $$=new Error("Digest already called");throw $$.code="ERR_CRYPTO_HASH_FINALIZED",$$}},a0.prototype.copy=function i0(){const $$=Object.create(a0.prototype);return $$._options=this._options,$$._hasher=this._hasher.copy(),$$._finalized=this._finalized,$$};const e0={__proto__:R0.Transform.prototype,...a0.prototype,_transform(i0,$$,Q$){this.update(i0,$$),Q$&&Q$()},_flush(i0){this.push(this.digest()),i0()}},r0=["_events","_eventsCount","_final","_maxListeners","_maxListeners","_read","_undestroy","_writableState","_write","_writev","addListener","asIndexedPairs","closed","compose","constructor","cork","destroy","destroyed","drop","emit","end","errored","eventNames","every","filter","find","flatMap","forEach","getMaxListeners","hasOwnProperty","isPaused","isPrototypeOf","iterator","listenerCount","listeners","map","off","on","once","pause","pipe","prependListener","prependOnceListener","propertyIsEnumerable","push","rawListeners","read","readable","readableAborted","readableBuffer","readableDidRead","readableEncoding","readableEnded","readableFlowing","readableHighWaterMark","readableLength","readableObjectMode","reduce","removeAllListeners","removeListener","resume","setDefaultEncoding","setEncoding","setMaxListeners","some","take","toArray","toLocaleString","toString","uncork","unpipe","unshift","valueOf","wrap","writable","writableBuffer","writableCorked","writableEnded","writableFinished","writableHighWaterMark","writableLength","writableNeedDrain","writableObjectMode","write"];for(let i0 of r0)Object.defineProperty(a0.prototype,i0,{get(){return Object.setPrototypeOf(this,e0),R0.Transform.call(this,this._options),this[i0]},enumerable:!1,configurable:!0});m0.exports=function i0($$){return new a0($$)},m0.exports.createHash=m0.exports,m0.exports.Hash=a0}}),mQ=pQ({"node_modules/create-hmac/legacy.js"(t0,m0){var a0=dQ(),e0=cQ().Buffer,r0=A(),i0=e0.alloc(128),$$=64;function Q$($,N){r0.call(this,"digest"),typeof N=="string"&&(N=e0.from(N)),this._alg=$,this._key=N,N.length>$$?N=$(N):N.length<$$&&(N=e0.concat([N,i0],$$));for(var Y$=this._ipad=e0.allocUnsafe($$),O0=this._opad=e0.allocUnsafe($$),Z$=0;Z$<$$;Z$++)Y$[Z$]=N[Z$]^54,O0[Z$]=N[Z$]^92;this._hash=[Y$]}a0(Q$,r0),Q$.prototype._update=function($){this._hash.push($)},Q$.prototype._final=function(){var $=this._alg(e0.concat(this._hash));return this._alg(e0.concat([this._opad,$]))},m0.exports=Q$}}),M0=pQ({"node_modules/create-hash/md5.js"(t0,m0){var a0=_();m0.exports=function(e0){return new a0().update(e0).digest()}}}),aQ=pQ({"node_modules/create-hmac/browser.js"(t0,m0){var a0=dQ(),e0=mQ(),r0=A(),i0=cQ().Buffer,$$=M0(),Q$=V0(),$=tQ(),N=i0.alloc(128);function Y$(O0,Z$){r0.call(this,"digest"),typeof Z$=="string"&&(Z$=i0.from(Z$));var G$=O0==="sha512"||O0==="sha384"?128:64;if(this._alg=O0,this._key=Z$,Z$.length>G$){var V$=O0==="rmd160"?new Q$:$(O0);Z$=V$.update(Z$).digest()}else Z$.lengtha0||r0!==r0)throw new TypeError("Bad key length")}}}),$Y=pQ({"node_modules/pbkdf2/lib/default-encoding.js"(t0,m0){var a0;global.process&&global.process.browser?a0="utf-8":global.process&&global.process.version?(e0=parseInt(process.version.split(".")[0].slice(1),10),a0=e0>=6?"utf-8":"binary"):a0="utf-8";var e0;m0.exports=a0}}),QY=pQ({"node_modules/pbkdf2/lib/to-buffer.js"(t0,m0){var a0=cQ().Buffer;m0.exports=function(e0,r0,i0){if(a0.isBuffer(e0))return e0;if(typeof e0=="string")return a0.from(e0,r0);if(ArrayBuffer.isView(e0))return a0.from(e0.buffer);throw new TypeError(i0+" must be a string, a Buffer, a typed array or a DataView")}}}),YY=pQ({"node_modules/pbkdf2/lib/sync-browser.js"(t0,m0){var a0=M0(),e0=V0(),r0=tQ(),i0=cQ().Buffer,$$=iQ(),Q$=$Y(),$=QY(),N=i0.alloc(128),Y$={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function O0(V$,U$,X$){var K$=Z$(V$),I$=V$==="sha512"||V$==="sha384"?128:64;U$.length>I$?U$=K$(U$):U$.length>>0},t0.writeUInt32BE=function(r0,i0,$$){r0[0+$$]=i0>>>24,r0[1+$$]=i0>>>16&255,r0[2+$$]=i0>>>8&255,r0[3+$$]=i0&255},t0.ip=function(r0,i0,$$,Q$){for(var $=0,N=0,Y$=6;Y$>=0;Y$-=2){for(var O0=0;O0<=24;O0+=8)$<<=1,$|=i0>>>O0+Y$&1;for(var O0=0;O0<=24;O0+=8)$<<=1,$|=r0>>>O0+Y$&1}for(var Y$=6;Y$>=0;Y$-=2){for(var O0=1;O0<=25;O0+=8)N<<=1,N|=i0>>>O0+Y$&1;for(var O0=1;O0<=25;O0+=8)N<<=1,N|=r0>>>O0+Y$&1}$$[Q$+0]=$>>>0,$$[Q$+1]=N>>>0},t0.rip=function(r0,i0,$$,Q$){for(var $=0,N=0,Y$=0;Y$<4;Y$++)for(var O0=24;O0>=0;O0-=8)$<<=1,$|=i0>>>O0+Y$&1,$<<=1,$|=r0>>>O0+Y$&1;for(var Y$=4;Y$<8;Y$++)for(var O0=24;O0>=0;O0-=8)N<<=1,N|=i0>>>O0+Y$&1,N<<=1,N|=r0>>>O0+Y$&1;$$[Q$+0]=$>>>0,$$[Q$+1]=N>>>0},t0.pc1=function(r0,i0,$$,Q$){for(var $=0,N=0,Y$=7;Y$>=5;Y$--){for(var O0=0;O0<=24;O0+=8)$<<=1,$|=i0>>O0+Y$&1;for(var O0=0;O0<=24;O0+=8)$<<=1,$|=r0>>O0+Y$&1}for(var O0=0;O0<=24;O0+=8)$<<=1,$|=i0>>O0+Y$&1;for(var Y$=1;Y$<=3;Y$++){for(var O0=0;O0<=24;O0+=8)N<<=1,N|=i0>>O0+Y$&1;for(var O0=0;O0<=24;O0+=8)N<<=1,N|=r0>>O0+Y$&1}for(var O0=0;O0<=24;O0+=8)N<<=1,N|=r0>>O0+Y$&1;$$[Q$+0]=$>>>0,$$[Q$+1]=N>>>0},t0.r28shl=function(r0,i0){return r0<>>28-i0};var m0=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];t0.pc2=function(r0,i0,$$,Q$){for(var $=0,N=0,Y$=m0.length>>>1,O0=0;O0>>m0[O0]&1;for(var O0=Y$;O0>>m0[O0]&1;$$[Q$+0]=$>>>0,$$[Q$+1]=N>>>0},t0.expand=function(r0,i0,$$){var Q$=0,$=0;Q$=(r0&1)<<5|r0>>>27;for(var N=23;N>=15;N-=4)Q$<<=6,Q$|=r0>>>N&63;for(var N=11;N>=3;N-=4)$|=r0>>>N&63,$<<=6;$|=(r0&31)<<1|r0>>>31,i0[$$+0]=Q$>>>0,i0[$$+1]=$>>>0};var a0=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t0.substitute=function(r0,i0){for(var $$=0,Q$=0;Q$<4;Q$++){var $=r0>>>18-Q$*6&63,N=a0[Q$*64+$];$$<<=4,$$|=N}for(var Q$=0;Q$<4;Q$++){var $=i0>>>18-Q$*6&63,N=a0[256+Q$*64+$];$$<<=4,$$|=N}return $$>>>0};var e0=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t0.permute=function(r0){for(var i0=0,$$=0;$$>>e0[$$]&1;return i0>>>0},t0.padSplit=function(r0,i0,$$){for(var Q$=r0.toString(2);Q$.length0;Q$--)i0+=this._buffer(r0,i0),$$+=this._flushBuffer($,$$);return i0+=this._buffer(r0,i0),$},e0.prototype.final=function(r0){var i0;r0&&(i0=this.update(r0));var $$;return this.type==="encrypt"?$$=this._finalEncrypt():$$=this._finalDecrypt(),i0?i0.concat($$):$$},e0.prototype._pad=function(r0,i0){if(i0===0)return!1;for(;i0>>1];O0=r0.r28shl(O0,V$),Z$=r0.r28shl(Z$,V$),r0.pc2(O0,Z$,N.keys,G$)}},Q$.prototype._update=function(N,Y$,O0,Z$){var G$=this._desState,V$=r0.readUInt32BE(N,Y$),U$=r0.readUInt32BE(N,Y$+4);r0.ip(V$,U$,G$.tmp,0),V$=G$.tmp[0],U$=G$.tmp[1],this.type==="encrypt"?this._encrypt(G$,V$,U$,G$.tmp,0):this._decrypt(G$,V$,U$,G$.tmp,0),V$=G$.tmp[0],U$=G$.tmp[1],r0.writeUInt32BE(O0,V$,Z$),r0.writeUInt32BE(O0,U$,Z$+4)},Q$.prototype._pad=function(N,Y$){for(var O0=N.length-Y$,Z$=Y$;Z$>>0,V$=O$}r0.rip(U$,V$,Z$,G$)},Q$.prototype._decrypt=function(N,Y$,O0,Z$,G$){for(var V$=O0,U$=Y$,X$=N.keys.length-2;X$>=0;X$-=2){var K$=N.keys[X$],I$=N.keys[X$+1];r0.expand(V$,N.tmp,0),K$^=N.tmp[0],I$^=N.tmp[1];var Q=r0.substitute(K$,I$),x=r0.permute(Q),O$=V$;V$=(U$^x)>>>0,U$=O$}r0.rip(V$,U$,Z$,G$)}}}),VY=pQ({"node_modules/des.js/lib/des/cbc.js"(t0){var m0=v0(),a0=dQ(),e0={};function r0($$){m0.equal($$.length,8,"Invalid IV length"),this.iv=new Array(8);for(var Q$=0;Q$>$%8,r0._prev=e0(r0._prev,$$?O0:Z$);return Y$}function e0(r0,i0){var $$=r0.length,Q$=-1,$=m0.allocUnsafe(r0.length);for(r0=m0.concat([r0,m0.from([i0])]);++Q$<$$;)$[Q$]=r0[Q$]<<1|r0[Q$+1]>>7;return $}t0.encrypt=function(r0,i0,$$){for(var Q$=i0.length,$=m0.allocUnsafe(Q$),N=-1;++N>>24]^U$[Q>>>16&255]^X$[x>>>8&255]^K$[O$&255]^Y$[H$++],J$=V$[Q>>>24]^U$[x>>>16&255]^X$[O$>>>8&255]^K$[I$&255]^Y$[H$++],F$=V$[x>>>24]^U$[O$>>>16&255]^X$[I$>>>8&255]^K$[Q&255]^Y$[H$++],A$=V$[O$>>>24]^U$[I$>>>16&255]^X$[Q>>>8&255]^K$[x&255]^Y$[H$++],I$=J0,Q=J$,x=F$,O$=A$;return J0=(Z$[I$>>>24]<<24|Z$[Q>>>16&255]<<16|Z$[x>>>8&255]<<8|Z$[O$&255])^Y$[H$++],J$=(Z$[Q>>>24]<<24|Z$[x>>>16&255]<<16|Z$[O$>>>8&255]<<8|Z$[I$&255])^Y$[H$++],F$=(Z$[x>>>24]<<24|Z$[O$>>>16&255]<<16|Z$[I$>>>8&255]<<8|Z$[Q&255])^Y$[H$++],A$=(Z$[O$>>>24]<<24|Z$[I$>>>16&255]<<16|Z$[Q>>>8&255]<<8|Z$[x&255])^Y$[H$++],J0=J0>>>0,J$=J$>>>0,F$=F$>>>0,A$=A$>>>0,[J0,J$,F$,A$]}var $$=[0,1,2,4,8,16,32,64,128,27,54],Q$=function(){for(var N=new Array(256),Y$=0;Y$<256;Y$++)Y$<128?N[Y$]=Y$<<1:N[Y$]=Y$<<1^283;for(var O0=[],Z$=[],G$=[[],[],[],[]],V$=[[],[],[],[]],U$=0,X$=0,K$=0;K$<256;++K$){var I$=X$^X$<<1^X$<<2^X$<<3^X$<<4;I$=I$>>>8^I$&255^99,O0[U$]=I$,Z$[I$]=U$;var Q=N[U$],x=N[Q],O$=N[x],J0=N[I$]*257^I$*16843008;G$[0][U$]=J0<<24|J0>>>8,G$[1][U$]=J0<<16|J0>>>16,G$[2][U$]=J0<<8|J0>>>24,G$[3][U$]=J0,J0=O$*16843009^x*65537^Q*257^U$*16843008,V$[0][I$]=J0<<24|J0>>>8,V$[1][I$]=J0<<16|J0>>>16,V$[2][I$]=J0<<8|J0>>>24,V$[3][I$]=J0,U$===0?U$=X$=1:(U$=Q^N[N[N[O$^Q]]],X$^=N[N[X$]])}return{SBOX:O0,INV_SBOX:Z$,SUB_MIX:G$,INV_SUB_MIX:V$}}();function $(N){this._key=e0(N),this._reset()}$.blockSize=16,$.keySize=32,$.prototype.blockSize=$.blockSize,$.prototype.keySize=$.keySize,$.prototype._reset=function(){for(var N=this._key,Y$=N.length,O0=Y$+6,Z$=(O0+1)*4,G$=[],V$=0;V$>>24,U$=Q$.SBOX[U$>>>24]<<24|Q$.SBOX[U$>>>16&255]<<16|Q$.SBOX[U$>>>8&255]<<8|Q$.SBOX[U$&255],U$^=$$[V$/Y$|0]<<24):Y$>6&&V$%Y$===4&&(U$=Q$.SBOX[U$>>>24]<<24|Q$.SBOX[U$>>>16&255]<<16|Q$.SBOX[U$>>>8&255]<<8|Q$.SBOX[U$&255]),G$[V$]=G$[V$-Y$]^U$}for(var X$=[],K$=0;K$>>24]]^Q$.INV_SUB_MIX[1][Q$.SBOX[Q>>>16&255]]^Q$.INV_SUB_MIX[2][Q$.SBOX[Q>>>8&255]]^Q$.INV_SUB_MIX[3][Q$.SBOX[Q&255]]}this._nRounds=O0,this._keySchedule=G$,this._invKeySchedule=X$},$.prototype.encryptBlockRaw=function(N){return N=e0(N),i0(N,this._keySchedule,Q$.SUB_MIX,Q$.SBOX,this._nRounds)},$.prototype.encryptBlock=function(N){var Y$=this.encryptBlockRaw(N),O0=a0.allocUnsafe(16);return O0.writeUInt32BE(Y$[0],0),O0.writeUInt32BE(Y$[1],4),O0.writeUInt32BE(Y$[2],8),O0.writeUInt32BE(Y$[3],12),O0},$.prototype.decryptBlock=function(N){N=e0(N);var Y$=N[1];N[1]=N[3],N[3]=Y$;var O0=i0(N,this._invKeySchedule,Q$.INV_SUB_MIX,Q$.INV_SBOX,this._nRounds),Z$=a0.allocUnsafe(16);return Z$.writeUInt32BE(O0[0],0),Z$.writeUInt32BE(O0[3],4),Z$.writeUInt32BE(O0[2],8),Z$.writeUInt32BE(O0[1],12),Z$},$.prototype.scrub=function(){r0(this._keySchedule),r0(this._invKeySchedule),r0(this._key)},m0.exports.AES=$}}),EY=pQ({"node_modules/browserify-aes/ghash.js"(t0,m0){var a0=cQ().Buffer,e0=a0.alloc(16,0);function r0(Q$){return[Q$.readUInt32BE(0),Q$.readUInt32BE(4),Q$.readUInt32BE(8),Q$.readUInt32BE(12)]}function i0(Q$){var $=a0.allocUnsafe(16);return $.writeUInt32BE(Q$[0]>>>0,0),$.writeUInt32BE(Q$[1]>>>0,4),$.writeUInt32BE(Q$[2]>>>0,8),$.writeUInt32BE(Q$[3]>>>0,12),$}function $$(Q$){this.h=Q$,this.state=a0.alloc(16,0),this.cache=a0.allocUnsafe(0)}$$.prototype.ghash=function(Q$){for(var $=-1;++$0;N--)Q$[N]=Q$[N]>>>1|(Q$[N-1]&1)<<31;Q$[0]=Q$[0]>>>1,O0&&(Q$[0]=Q$[0]^225<<24)}this.state=i0($)},$$.prototype.update=function(Q$){this.cache=a0.concat([this.cache,Q$]);for(var $;this.cache.length>=16;)$=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash($)},$$.prototype.final=function(Q$,$){return this.cache.length&&this.ghash(a0.concat([this.cache,e0],16)),this.ghash(i0([0,Q$,0,$])),this.state},m0.exports=$$}}),E=pQ({"node_modules/browserify-aes/authCipher.js"(t0,m0){var a0=WY(),e0=cQ().Buffer,r0=A(),i0=dQ(),$$=EY(),Q$=W(),$=FY();function N(Z$,G$){var V$=0;Z$.length!==G$.length&&V$++;for(var U$=Math.min(Z$.length,G$.length),X$=0;X$0||$>0;){var G$=new e0;G$.update(Z$),G$.update(i0),$$&&G$.update($$),Z$=G$.digest();var V$=0;if(N>0){var U$=Y$.length-N;V$=Math.min(N,Z$.length),Z$.copy(Y$,U$,0,V$),N-=V$}if(V$0){var X$=O0.length-$,K$=Math.min($,Z$.length-V$);Z$.copy(O0,X$,V$,V$+K$),$-=K$}}return Z$.fill(0),{key:Y$,iv:O0}}m0.exports=r0}}),g0=pQ({"node_modules/browserify-aes/encrypter.js"(t0){var m0=HY(),a0=E(),e0=cQ().Buffer,r0=s(),i0=A(),$$=WY(),Q$=k0(),$=dQ();function N(V$,U$,X$){i0.call(this),this._cache=new O0,this._cipher=new $$.AES(U$),this._prev=e0.from(X$),this._mode=V$,this._autopadding=!0}$(N,i0),N.prototype._update=function(V$){this._cache.add(V$);for(var U$,X$,K$=[];U$=this._cache.get();)X$=this._mode.encrypt(this,U$),K$.push(X$);return e0.concat(K$)};var Y$=e0.alloc(16,16);N.prototype._final=function(){var V$=this._cache.flush();if(this._autopadding)return V$=this._mode.encrypt(this,V$),this._cipher.scrub(),V$;if(!V$.equals(Y$))throw this._cipher.scrub(),new Error("data not multiple of block length")},N.prototype.setAutoPadding=function(V$){return this._autopadding=!!V$,this};function O0(){this.cache=e0.allocUnsafe(0)}O0.prototype.add=function(V$){this.cache=e0.concat([this.cache,V$])},O0.prototype.get=function(){if(this.cache.length>15){var V$=this.cache.slice(0,16);return this.cache=this.cache.slice(16),V$}return null},O0.prototype.flush=function(){for(var V$=16-this.cache.length,U$=e0.allocUnsafe(V$),X$=-1;++X$16)return U$=this.cache.slice(0,16),this.cache=this.cache.slice(16),U$}else if(this.cache.length>=16)return U$=this.cache.slice(0,16),this.cache=this.cache.slice(16),U$;return null},Y$.prototype.flush=function(){if(this.cache.length)return this.cache};function O0(V$){var U$=V$[15];if(U$<1||U$>16)throw new Error("unable to decrypt data");for(var X$=-1;++X$0?E$:T$},$$.min=function(E$,T$){return E$.cmp(T$)<0?E$:T$},$$.prototype._init=function(E$,T$,Y){if(typeof E$=="number")return this._initNumber(E$,T$,Y);if(typeof E$=="object")return this._initArray(E$,T$,Y);T$==="hex"&&(T$=16),r0(T$===(T$|0)&&T$>=2&&T$<=36),E$=E$.toString().replace(/\s+/g,"");var f=0;E$[0]==="-"&&(f++,this.negative=1),f=0;f-=3)F0=E$[f]|E$[f-1]<<8|E$[f-2]<<16,this.words[D$]|=F0<>>26-C$&67108863,C$+=24,C$>=26&&(C$-=26,D$++);else if(Y==="le")for(f=0,D$=0;f>>26-C$&67108863,C$+=24,C$>=26&&(C$-=26,D$++);return this.strip()};function $(E$,T$){var Y=E$.charCodeAt(T$);return Y>=65&&Y<=70?Y-55:Y>=97&&Y<=102?Y-87:Y-48&15}function N(E$,T$,Y){var f=$(E$,Y);return Y-1>=T$&&(f|=$(E$,Y-1)<<4),f}$$.prototype._parseHex=function(E$,T$,Y){this.length=Math.ceil((E$.length-T$)/6),this.words=new Array(this.length);for(var f=0;f=T$;f-=2)C$=N(E$,T$,f)<=18?(D$-=18,F0+=1,this.words[F0]|=C$>>>26):D$+=8;else{var L$=E$.length-T$;for(f=L$%2===0?T$+1:T$;f=18?(D$-=18,F0+=1,this.words[F0]|=C$>>>26):D$+=8}this.strip()};function Y$(E$,T$,Y,f){for(var D$=0,F0=Math.min(E$.length,Y),C$=T$;C$=49?D$+=L$-49+10:L$>=17?D$+=L$-17+10:D$+=L$}return D$}$$.prototype._parseBase=function(E$,T$,Y){this.words=[0],this.length=1;for(var f=0,D$=1;D$<=67108863;D$*=T$)f++;f--,D$=D$/T$|0;for(var F0=E$.length-Y,C$=F0%f,L$=Math.min(F0,F0-C$)+Y,R$=0,P$=Y;P$1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},$$.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},$$.prototype.inspect=function(){return(this.red?""};var O0=["","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"],Z$=[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],G$=[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];$$.prototype.toString=function(E$,T$){E$=E$||10,T$=T$|0||1;var Y;if(E$===16||E$==="hex"){Y="";for(var f=0,D$=0,F0=0;F0>>24-f&16777215,D$!==0||F0!==this.length-1?Y=O0[6-L$.length]+L$+Y:Y=L$+Y,f+=2,f>=26&&(f-=26,F0--)}for(D$!==0&&(Y=D$.toString(16)+Y);Y.length%T$!==0;)Y="0"+Y;return this.negative!==0&&(Y="-"+Y),Y}if(E$===(E$|0)&&E$>=2&&E$<=36){var R$=Z$[E$],P$=G$[E$];Y="";var z$=this.clone();for(z$.negative=0;!z$.isZero();){var M$=z$.modn(P$).toString(E$);z$=z$.idivn(P$),z$.isZero()?Y=M$+Y:Y=O0[R$-M$.length]+M$+Y}for(this.isZero()&&(Y="0"+Y);Y.length%T$!==0;)Y="0"+Y;return this.negative!==0&&(Y="-"+Y),Y}r0(!1,"Base should be between 2 and 36")},$$.prototype.toNumber=function(){var E$=this.words[0];return this.length===2?E$+=this.words[1]*67108864:this.length===3&&this.words[2]===1?E$+=4503599627370496+this.words[1]*67108864:this.length>2&&r0(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-E$:E$},$$.prototype.toJSON=function(){return this.toString(16)},$$.prototype.toBuffer=function(E$,T$){return r0(typeof Q$<"u"),this.toArrayLike(Q$,E$,T$)},$$.prototype.toArray=function(E$,T$){return this.toArrayLike(Array,E$,T$)},$$.prototype.toArrayLike=function(E$,T$,Y){var f=this.byteLength(),D$=Y||Math.max(1,f);r0(f<=D$,"byte array longer than desired length"),r0(D$>0,"Requested array length <= 0"),this.strip();var F0=T$==="le",C$=new E$(D$),L$,R$,P$=this.clone();if(F0){for(R$=0;!P$.isZero();R$++)L$=P$.andln(255),P$.iushrn(8),C$[R$]=L$;for(;R$=4096&&(Y+=13,T$>>>=13),T$>=64&&(Y+=7,T$>>>=7),T$>=8&&(Y+=4,T$>>>=4),T$>=2&&(Y+=2,T$>>>=2),Y+T$},$$.prototype._zeroBits=function(E$){if(E$===0)return 26;var T$=E$,Y=0;return(T$&8191)===0&&(Y+=13,T$>>>=13),(T$&127)===0&&(Y+=7,T$>>>=7),(T$&15)===0&&(Y+=4,T$>>>=4),(T$&3)===0&&(Y+=2,T$>>>=2),(T$&1)===0&&Y++,Y},$$.prototype.bitLength=function(){var E$=this.words[this.length-1],T$=this._countBits(E$);return(this.length-1)*26+T$};function V$(E$){for(var T$=new Array(E$.bitLength()),Y=0;Y>>D$}return T$}$$.prototype.zeroBits=function(){if(this.isZero())return 0;for(var E$=0,T$=0;T$E$.length?this.clone().ior(E$):E$.clone().ior(this)},$$.prototype.uor=function(E$){return this.length>E$.length?this.clone().iuor(E$):E$.clone().iuor(this)},$$.prototype.iuand=function(E$){var T$;this.length>E$.length?T$=E$:T$=this;for(var Y=0;YE$.length?this.clone().iand(E$):E$.clone().iand(this)},$$.prototype.uand=function(E$){return this.length>E$.length?this.clone().iuand(E$):E$.clone().iuand(this)},$$.prototype.iuxor=function(E$){var T$,Y;this.length>E$.length?(T$=this,Y=E$):(T$=E$,Y=this);for(var f=0;fE$.length?this.clone().ixor(E$):E$.clone().ixor(this)},$$.prototype.uxor=function(E$){return this.length>E$.length?this.clone().iuxor(E$):E$.clone().iuxor(this)},$$.prototype.inotn=function(E$){r0(typeof E$=="number"&&E$>=0);var T$=Math.ceil(E$/26)|0,Y=E$%26;this._expand(T$),Y>0&&T$--;for(var f=0;f0&&(this.words[f]=~this.words[f]&67108863>>26-Y),this.strip()},$$.prototype.notn=function(E$){return this.clone().inotn(E$)},$$.prototype.setn=function(E$,T$){r0(typeof E$=="number"&&E$>=0);var Y=E$/26|0,f=E$%26;return this._expand(Y+1),T$?this.words[Y]=this.words[Y]|1<E$.length?(Y=this,f=E$):(Y=E$,f=this);for(var D$=0,F0=0;F0>>26;for(;D$!==0&&F0>>26;if(this.length=Y.length,D$!==0)this.words[this.length]=D$,this.length++;else if(Y!==this)for(;F0E$.length?this.clone().iadd(E$):E$.clone().iadd(this)},$$.prototype.isub=function(E$){if(E$.negative!==0){E$.negative=0;var T$=this.iadd(E$);return E$.negative=1,T$._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(E$),this.negative=1,this._normSign();var Y=this.cmp(E$);if(Y===0)return this.negative=0,this.length=1,this.words[0]=0,this;var f,D$;Y>0?(f=this,D$=E$):(f=E$,D$=this);for(var F0=0,C$=0;C$>26,this.words[C$]=T$&67108863;for(;F0!==0&&C$>26,this.words[C$]=T$&67108863;if(F0===0&&C$>>26,M$=R$&67108863,S$=Math.min(P$,T$.length-1),Z=Math.max(0,P$-E$.length+1);Z<=S$;Z++){var c=P$-Z|0;D$=E$.words[c]|0,F0=T$.words[Z]|0,C$=D$*F0+M$,z$+=C$/67108864|0,M$=C$&67108863}Y.words[P$]=M$|0,R$=z$|0}return R$!==0?Y.words[P$]=R$|0:Y.length--,Y.strip()}var X$=function(E$,T$,Y){var f=E$.words,D$=T$.words,F0=Y.words,C$=0,L$,R$,P$,z$=f[0]|0,M$=z$&8191,S$=z$>>>13,Z=f[1]|0,c=Z&8191,v$=Z>>>13,A0=f[2]|0,q$=A0&8191,j$=A0>>>13,k$=f[3]|0,g$=k$&8191,_$=k$>>>13,N$=f[4]|0,x$=N$&8191,G=N$>>>13,B=f[5]|0,B$=B&8191,H0=B>>>13,y$=f[6]|0,w$=y$&8191,p$=y$>>>13,f$=f[7]|0,c$=f$&8191,h$=f$>>>13,d$=f[8]|0,V=d$&8191,h=d$>>>13,W0=f[9]|0,E0=W0&8191,b$=W0>>>13,l$=D$[0]|0,o$=l$&8191,u$=l$>>>13,n$=D$[1]|0,s$=n$&8191,t$=n$>>>13,U=D$[2]|0,d=U&8191,m$=U>>>13,T0=D$[3]|0,a$=T0&8191,e$=T0>>>13,r$=D$[4]|0,i$=r$&8191,$Q=r$>>>13,QQ=D$[5]|0,YQ=QQ&8191,X=QQ>>>13,b=D$[6]|0,ZQ=b&8191,D0=b>>>13,GQ=D$[7]|0,VQ=GQ&8191,UQ=GQ>>>13,XQ=D$[8]|0,KQ=XQ&8191,IQ=XQ>>>13,OQ=D$[9]|0,K=OQ&8191,l=OQ>>>13;Y.negative=E$.negative^T$.negative,Y.length=19,L$=Math.imul(M$,o$),R$=Math.imul(M$,u$),R$=R$+Math.imul(S$,o$)|0,P$=Math.imul(S$,u$);var JQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(JQ>>>26)|0,JQ&=67108863,L$=Math.imul(c,o$),R$=Math.imul(c,u$),R$=R$+Math.imul(v$,o$)|0,P$=Math.imul(v$,u$),L$=L$+Math.imul(M$,s$)|0,R$=R$+Math.imul(M$,t$)|0,R$=R$+Math.imul(S$,s$)|0,P$=P$+Math.imul(S$,t$)|0;var C0=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(C0>>>26)|0,C0&=67108863,L$=Math.imul(q$,o$),R$=Math.imul(q$,u$),R$=R$+Math.imul(j$,o$)|0,P$=Math.imul(j$,u$),L$=L$+Math.imul(c,s$)|0,R$=R$+Math.imul(c,t$)|0,R$=R$+Math.imul(v$,s$)|0,P$=P$+Math.imul(v$,t$)|0,L$=L$+Math.imul(M$,d)|0,R$=R$+Math.imul(M$,m$)|0,R$=R$+Math.imul(S$,d)|0,P$=P$+Math.imul(S$,m$)|0;var FQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(FQ>>>26)|0,FQ&=67108863,L$=Math.imul(g$,o$),R$=Math.imul(g$,u$),R$=R$+Math.imul(_$,o$)|0,P$=Math.imul(_$,u$),L$=L$+Math.imul(q$,s$)|0,R$=R$+Math.imul(q$,t$)|0,R$=R$+Math.imul(j$,s$)|0,P$=P$+Math.imul(j$,t$)|0,L$=L$+Math.imul(c,d)|0,R$=R$+Math.imul(c,m$)|0,R$=R$+Math.imul(v$,d)|0,P$=P$+Math.imul(v$,m$)|0,L$=L$+Math.imul(M$,a$)|0,R$=R$+Math.imul(M$,e$)|0,R$=R$+Math.imul(S$,a$)|0,P$=P$+Math.imul(S$,e$)|0;var AQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(AQ>>>26)|0,AQ&=67108863,L$=Math.imul(x$,o$),R$=Math.imul(x$,u$),R$=R$+Math.imul(G,o$)|0,P$=Math.imul(G,u$),L$=L$+Math.imul(g$,s$)|0,R$=R$+Math.imul(g$,t$)|0,R$=R$+Math.imul(_$,s$)|0,P$=P$+Math.imul(_$,t$)|0,L$=L$+Math.imul(q$,d)|0,R$=R$+Math.imul(q$,m$)|0,R$=R$+Math.imul(j$,d)|0,P$=P$+Math.imul(j$,m$)|0,L$=L$+Math.imul(c,a$)|0,R$=R$+Math.imul(c,e$)|0,R$=R$+Math.imul(v$,a$)|0,P$=P$+Math.imul(v$,e$)|0,L$=L$+Math.imul(M$,i$)|0,R$=R$+Math.imul(M$,$Q)|0,R$=R$+Math.imul(S$,i$)|0,P$=P$+Math.imul(S$,$Q)|0;var HQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(HQ>>>26)|0,HQ&=67108863,L$=Math.imul(B$,o$),R$=Math.imul(B$,u$),R$=R$+Math.imul(H0,o$)|0,P$=Math.imul(H0,u$),L$=L$+Math.imul(x$,s$)|0,R$=R$+Math.imul(x$,t$)|0,R$=R$+Math.imul(G,s$)|0,P$=P$+Math.imul(G,t$)|0,L$=L$+Math.imul(g$,d)|0,R$=R$+Math.imul(g$,m$)|0,R$=R$+Math.imul(_$,d)|0,P$=P$+Math.imul(_$,m$)|0,L$=L$+Math.imul(q$,a$)|0,R$=R$+Math.imul(q$,e$)|0,R$=R$+Math.imul(j$,a$)|0,P$=P$+Math.imul(j$,e$)|0,L$=L$+Math.imul(c,i$)|0,R$=R$+Math.imul(c,$Q)|0,R$=R$+Math.imul(v$,i$)|0,P$=P$+Math.imul(v$,$Q)|0,L$=L$+Math.imul(M$,YQ)|0,R$=R$+Math.imul(M$,X)|0,R$=R$+Math.imul(S$,YQ)|0,P$=P$+Math.imul(S$,X)|0;var WQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(WQ>>>26)|0,WQ&=67108863,L$=Math.imul(w$,o$),R$=Math.imul(w$,u$),R$=R$+Math.imul(p$,o$)|0,P$=Math.imul(p$,u$),L$=L$+Math.imul(B$,s$)|0,R$=R$+Math.imul(B$,t$)|0,R$=R$+Math.imul(H0,s$)|0,P$=P$+Math.imul(H0,t$)|0,L$=L$+Math.imul(x$,d)|0,R$=R$+Math.imul(x$,m$)|0,R$=R$+Math.imul(G,d)|0,P$=P$+Math.imul(G,m$)|0,L$=L$+Math.imul(g$,a$)|0,R$=R$+Math.imul(g$,e$)|0,R$=R$+Math.imul(_$,a$)|0,P$=P$+Math.imul(_$,e$)|0,L$=L$+Math.imul(q$,i$)|0,R$=R$+Math.imul(q$,$Q)|0,R$=R$+Math.imul(j$,i$)|0,P$=P$+Math.imul(j$,$Q)|0,L$=L$+Math.imul(c,YQ)|0,R$=R$+Math.imul(c,X)|0,R$=R$+Math.imul(v$,YQ)|0,P$=P$+Math.imul(v$,X)|0,L$=L$+Math.imul(M$,ZQ)|0,R$=R$+Math.imul(M$,D0)|0,R$=R$+Math.imul(S$,ZQ)|0,P$=P$+Math.imul(S$,D0)|0;var EQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(EQ>>>26)|0,EQ&=67108863,L$=Math.imul(c$,o$),R$=Math.imul(c$,u$),R$=R$+Math.imul(h$,o$)|0,P$=Math.imul(h$,u$),L$=L$+Math.imul(w$,s$)|0,R$=R$+Math.imul(w$,t$)|0,R$=R$+Math.imul(p$,s$)|0,P$=P$+Math.imul(p$,t$)|0,L$=L$+Math.imul(B$,d)|0,R$=R$+Math.imul(B$,m$)|0,R$=R$+Math.imul(H0,d)|0,P$=P$+Math.imul(H0,m$)|0,L$=L$+Math.imul(x$,a$)|0,R$=R$+Math.imul(x$,e$)|0,R$=R$+Math.imul(G,a$)|0,P$=P$+Math.imul(G,e$)|0,L$=L$+Math.imul(g$,i$)|0,R$=R$+Math.imul(g$,$Q)|0,R$=R$+Math.imul(_$,i$)|0,P$=P$+Math.imul(_$,$Q)|0,L$=L$+Math.imul(q$,YQ)|0,R$=R$+Math.imul(q$,X)|0,R$=R$+Math.imul(j$,YQ)|0,P$=P$+Math.imul(j$,X)|0,L$=L$+Math.imul(c,ZQ)|0,R$=R$+Math.imul(c,D0)|0,R$=R$+Math.imul(v$,ZQ)|0,P$=P$+Math.imul(v$,D0)|0,L$=L$+Math.imul(M$,VQ)|0,R$=R$+Math.imul(M$,UQ)|0,R$=R$+Math.imul(S$,VQ)|0,P$=P$+Math.imul(S$,UQ)|0;var TQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(TQ>>>26)|0,TQ&=67108863,L$=Math.imul(V,o$),R$=Math.imul(V,u$),R$=R$+Math.imul(h,o$)|0,P$=Math.imul(h,u$),L$=L$+Math.imul(c$,s$)|0,R$=R$+Math.imul(c$,t$)|0,R$=R$+Math.imul(h$,s$)|0,P$=P$+Math.imul(h$,t$)|0,L$=L$+Math.imul(w$,d)|0,R$=R$+Math.imul(w$,m$)|0,R$=R$+Math.imul(p$,d)|0,P$=P$+Math.imul(p$,m$)|0,L$=L$+Math.imul(B$,a$)|0,R$=R$+Math.imul(B$,e$)|0,R$=R$+Math.imul(H0,a$)|0,P$=P$+Math.imul(H0,e$)|0,L$=L$+Math.imul(x$,i$)|0,R$=R$+Math.imul(x$,$Q)|0,R$=R$+Math.imul(G,i$)|0,P$=P$+Math.imul(G,$Q)|0,L$=L$+Math.imul(g$,YQ)|0,R$=R$+Math.imul(g$,X)|0,R$=R$+Math.imul(_$,YQ)|0,P$=P$+Math.imul(_$,X)|0,L$=L$+Math.imul(q$,ZQ)|0,R$=R$+Math.imul(q$,D0)|0,R$=R$+Math.imul(j$,ZQ)|0,P$=P$+Math.imul(j$,D0)|0,L$=L$+Math.imul(c,VQ)|0,R$=R$+Math.imul(c,UQ)|0,R$=R$+Math.imul(v$,VQ)|0,P$=P$+Math.imul(v$,UQ)|0,L$=L$+Math.imul(M$,KQ)|0,R$=R$+Math.imul(M$,IQ)|0,R$=R$+Math.imul(S$,KQ)|0,P$=P$+Math.imul(S$,IQ)|0;var DQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(DQ>>>26)|0,DQ&=67108863,L$=Math.imul(E0,o$),R$=Math.imul(E0,u$),R$=R$+Math.imul(b$,o$)|0,P$=Math.imul(b$,u$),L$=L$+Math.imul(V,s$)|0,R$=R$+Math.imul(V,t$)|0,R$=R$+Math.imul(h,s$)|0,P$=P$+Math.imul(h,t$)|0,L$=L$+Math.imul(c$,d)|0,R$=R$+Math.imul(c$,m$)|0,R$=R$+Math.imul(h$,d)|0,P$=P$+Math.imul(h$,m$)|0,L$=L$+Math.imul(w$,a$)|0,R$=R$+Math.imul(w$,e$)|0,R$=R$+Math.imul(p$,a$)|0,P$=P$+Math.imul(p$,e$)|0,L$=L$+Math.imul(B$,i$)|0,R$=R$+Math.imul(B$,$Q)|0,R$=R$+Math.imul(H0,i$)|0,P$=P$+Math.imul(H0,$Q)|0,L$=L$+Math.imul(x$,YQ)|0,R$=R$+Math.imul(x$,X)|0,R$=R$+Math.imul(G,YQ)|0,P$=P$+Math.imul(G,X)|0,L$=L$+Math.imul(g$,ZQ)|0,R$=R$+Math.imul(g$,D0)|0,R$=R$+Math.imul(_$,ZQ)|0,P$=P$+Math.imul(_$,D0)|0,L$=L$+Math.imul(q$,VQ)|0,R$=R$+Math.imul(q$,UQ)|0,R$=R$+Math.imul(j$,VQ)|0,P$=P$+Math.imul(j$,UQ)|0,L$=L$+Math.imul(c,KQ)|0,R$=R$+Math.imul(c,IQ)|0,R$=R$+Math.imul(v$,KQ)|0,P$=P$+Math.imul(v$,IQ)|0,L$=L$+Math.imul(M$,K)|0,R$=R$+Math.imul(M$,l)|0,R$=R$+Math.imul(S$,K)|0,P$=P$+Math.imul(S$,l)|0;var I=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(I>>>26)|0,I&=67108863,L$=Math.imul(E0,s$),R$=Math.imul(E0,t$),R$=R$+Math.imul(b$,s$)|0,P$=Math.imul(b$,t$),L$=L$+Math.imul(V,d)|0,R$=R$+Math.imul(V,m$)|0,R$=R$+Math.imul(h,d)|0,P$=P$+Math.imul(h,m$)|0,L$=L$+Math.imul(c$,a$)|0,R$=R$+Math.imul(c$,e$)|0,R$=R$+Math.imul(h$,a$)|0,P$=P$+Math.imul(h$,e$)|0,L$=L$+Math.imul(w$,i$)|0,R$=R$+Math.imul(w$,$Q)|0,R$=R$+Math.imul(p$,i$)|0,P$=P$+Math.imul(p$,$Q)|0,L$=L$+Math.imul(B$,YQ)|0,R$=R$+Math.imul(B$,X)|0,R$=R$+Math.imul(H0,YQ)|0,P$=P$+Math.imul(H0,X)|0,L$=L$+Math.imul(x$,ZQ)|0,R$=R$+Math.imul(x$,D0)|0,R$=R$+Math.imul(G,ZQ)|0,P$=P$+Math.imul(G,D0)|0,L$=L$+Math.imul(g$,VQ)|0,R$=R$+Math.imul(g$,UQ)|0,R$=R$+Math.imul(_$,VQ)|0,P$=P$+Math.imul(_$,UQ)|0,L$=L$+Math.imul(q$,KQ)|0,R$=R$+Math.imul(q$,IQ)|0,R$=R$+Math.imul(j$,KQ)|0,P$=P$+Math.imul(j$,IQ)|0,L$=L$+Math.imul(c,K)|0,R$=R$+Math.imul(c,l)|0,R$=R$+Math.imul(v$,K)|0,P$=P$+Math.imul(v$,l)|0;var o=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(o>>>26)|0,o&=67108863,L$=Math.imul(E0,d),R$=Math.imul(E0,m$),R$=R$+Math.imul(b$,d)|0,P$=Math.imul(b$,m$),L$=L$+Math.imul(V,a$)|0,R$=R$+Math.imul(V,e$)|0,R$=R$+Math.imul(h,a$)|0,P$=P$+Math.imul(h,e$)|0,L$=L$+Math.imul(c$,i$)|0,R$=R$+Math.imul(c$,$Q)|0,R$=R$+Math.imul(h$,i$)|0,P$=P$+Math.imul(h$,$Q)|0,L$=L$+Math.imul(w$,YQ)|0,R$=R$+Math.imul(w$,X)|0,R$=R$+Math.imul(p$,YQ)|0,P$=P$+Math.imul(p$,X)|0,L$=L$+Math.imul(B$,ZQ)|0,R$=R$+Math.imul(B$,D0)|0,R$=R$+Math.imul(H0,ZQ)|0,P$=P$+Math.imul(H0,D0)|0,L$=L$+Math.imul(x$,VQ)|0,R$=R$+Math.imul(x$,UQ)|0,R$=R$+Math.imul(G,VQ)|0,P$=P$+Math.imul(G,UQ)|0,L$=L$+Math.imul(g$,KQ)|0,R$=R$+Math.imul(g$,IQ)|0,R$=R$+Math.imul(_$,KQ)|0,P$=P$+Math.imul(_$,IQ)|0,L$=L$+Math.imul(q$,K)|0,R$=R$+Math.imul(q$,l)|0,R$=R$+Math.imul(j$,K)|0,P$=P$+Math.imul(j$,l)|0;var CQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(CQ>>>26)|0,CQ&=67108863,L$=Math.imul(E0,a$),R$=Math.imul(E0,e$),R$=R$+Math.imul(b$,a$)|0,P$=Math.imul(b$,e$),L$=L$+Math.imul(V,i$)|0,R$=R$+Math.imul(V,$Q)|0,R$=R$+Math.imul(h,i$)|0,P$=P$+Math.imul(h,$Q)|0,L$=L$+Math.imul(c$,YQ)|0,R$=R$+Math.imul(c$,X)|0,R$=R$+Math.imul(h$,YQ)|0,P$=P$+Math.imul(h$,X)|0,L$=L$+Math.imul(w$,ZQ)|0,R$=R$+Math.imul(w$,D0)|0,R$=R$+Math.imul(p$,ZQ)|0,P$=P$+Math.imul(p$,D0)|0,L$=L$+Math.imul(B$,VQ)|0,R$=R$+Math.imul(B$,UQ)|0,R$=R$+Math.imul(H0,VQ)|0,P$=P$+Math.imul(H0,UQ)|0,L$=L$+Math.imul(x$,KQ)|0,R$=R$+Math.imul(x$,IQ)|0,R$=R$+Math.imul(G,KQ)|0,P$=P$+Math.imul(G,IQ)|0,L$=L$+Math.imul(g$,K)|0,R$=R$+Math.imul(g$,l)|0,R$=R$+Math.imul(_$,K)|0,P$=P$+Math.imul(_$,l)|0;var L0=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(L0>>>26)|0,L0&=67108863,L$=Math.imul(E0,i$),R$=Math.imul(E0,$Q),R$=R$+Math.imul(b$,i$)|0,P$=Math.imul(b$,$Q),L$=L$+Math.imul(V,YQ)|0,R$=R$+Math.imul(V,X)|0,R$=R$+Math.imul(h,YQ)|0,P$=P$+Math.imul(h,X)|0,L$=L$+Math.imul(c$,ZQ)|0,R$=R$+Math.imul(c$,D0)|0,R$=R$+Math.imul(h$,ZQ)|0,P$=P$+Math.imul(h$,D0)|0,L$=L$+Math.imul(w$,VQ)|0,R$=R$+Math.imul(w$,UQ)|0,R$=R$+Math.imul(p$,VQ)|0,P$=P$+Math.imul(p$,UQ)|0,L$=L$+Math.imul(B$,KQ)|0,R$=R$+Math.imul(B$,IQ)|0,R$=R$+Math.imul(H0,KQ)|0,P$=P$+Math.imul(H0,IQ)|0,L$=L$+Math.imul(x$,K)|0,R$=R$+Math.imul(x$,l)|0,R$=R$+Math.imul(G,K)|0,P$=P$+Math.imul(G,l)|0;var LQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(LQ>>>26)|0,LQ&=67108863,L$=Math.imul(E0,YQ),R$=Math.imul(E0,X),R$=R$+Math.imul(b$,YQ)|0,P$=Math.imul(b$,X),L$=L$+Math.imul(V,ZQ)|0,R$=R$+Math.imul(V,D0)|0,R$=R$+Math.imul(h,ZQ)|0,P$=P$+Math.imul(h,D0)|0,L$=L$+Math.imul(c$,VQ)|0,R$=R$+Math.imul(c$,UQ)|0,R$=R$+Math.imul(h$,VQ)|0,P$=P$+Math.imul(h$,UQ)|0,L$=L$+Math.imul(w$,KQ)|0,R$=R$+Math.imul(w$,IQ)|0,R$=R$+Math.imul(p$,KQ)|0,P$=P$+Math.imul(p$,IQ)|0,L$=L$+Math.imul(B$,K)|0,R$=R$+Math.imul(B$,l)|0,R$=R$+Math.imul(H0,K)|0,P$=P$+Math.imul(H0,l)|0;var RQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(RQ>>>26)|0,RQ&=67108863,L$=Math.imul(E0,ZQ),R$=Math.imul(E0,D0),R$=R$+Math.imul(b$,ZQ)|0,P$=Math.imul(b$,D0),L$=L$+Math.imul(V,VQ)|0,R$=R$+Math.imul(V,UQ)|0,R$=R$+Math.imul(h,VQ)|0,P$=P$+Math.imul(h,UQ)|0,L$=L$+Math.imul(c$,KQ)|0,R$=R$+Math.imul(c$,IQ)|0,R$=R$+Math.imul(h$,KQ)|0,P$=P$+Math.imul(h$,IQ)|0,L$=L$+Math.imul(w$,K)|0,R$=R$+Math.imul(w$,l)|0,R$=R$+Math.imul(p$,K)|0,P$=P$+Math.imul(p$,l)|0;var PQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(PQ>>>26)|0,PQ&=67108863,L$=Math.imul(E0,VQ),R$=Math.imul(E0,UQ),R$=R$+Math.imul(b$,VQ)|0,P$=Math.imul(b$,UQ),L$=L$+Math.imul(V,KQ)|0,R$=R$+Math.imul(V,IQ)|0,R$=R$+Math.imul(h,KQ)|0,P$=P$+Math.imul(h,IQ)|0,L$=L$+Math.imul(c$,K)|0,R$=R$+Math.imul(c$,l)|0,R$=R$+Math.imul(h$,K)|0,P$=P$+Math.imul(h$,l)|0;var zQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(zQ>>>26)|0,zQ&=67108863,L$=Math.imul(E0,KQ),R$=Math.imul(E0,IQ),R$=R$+Math.imul(b$,KQ)|0,P$=Math.imul(b$,IQ),L$=L$+Math.imul(V,K)|0,R$=R$+Math.imul(V,l)|0,R$=R$+Math.imul(h,K)|0,P$=P$+Math.imul(h,l)|0;var MQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(MQ>>>26)|0,MQ&=67108863,L$=Math.imul(E0,K),R$=Math.imul(E0,l),R$=R$+Math.imul(b$,K)|0,P$=Math.imul(b$,l);var SQ=(C$+L$|0)+((R$&8191)<<13)|0;return C$=(P$+(R$>>>13)|0)+(SQ>>>26)|0,SQ&=67108863,F0[0]=JQ,F0[1]=C0,F0[2]=FQ,F0[3]=AQ,F0[4]=HQ,F0[5]=WQ,F0[6]=EQ,F0[7]=TQ,F0[8]=DQ,F0[9]=I,F0[10]=o,F0[11]=CQ,F0[12]=L0,F0[13]=LQ,F0[14]=RQ,F0[15]=PQ,F0[16]=zQ,F0[17]=MQ,F0[18]=SQ,C$!==0&&(F0[19]=C$,Y.length++),Y};Math.imul||(X$=U$);function K$(E$,T$,Y){Y.negative=T$.negative^E$.negative,Y.length=E$.length+T$.length;for(var f=0,D$=0,F0=0;F0>>26)|0,D$+=C$>>>26,C$&=67108863}Y.words[F0]=L$,f=C$,C$=D$}return f!==0?Y.words[F0]=f:Y.length--,Y.strip()}function I$(E$,T$,Y){var f=new Q;return f.mulp(E$,T$,Y)}$$.prototype.mulTo=function(E$,T$){var Y,f=this.length+E$.length;return this.length===10&&E$.length===10?Y=X$(this,E$,T$):f<63?Y=U$(this,E$,T$):f<1024?Y=K$(this,E$,T$):Y=I$(this,E$,T$),Y};function Q(E$,T$){this.x=E$,this.y=T$}Q.prototype.makeRBT=function(E$){for(var T$=new Array(E$),Y=$$.prototype._countBits(E$)-1,f=0;f>=1;return f},Q.prototype.permute=function(E$,T$,Y,f,D$,F0){for(var C$=0;C$>>1)D$++;return 1<>>13,Y[2*F0+1]=D$&8191,D$=D$>>>13;for(F0=2*T$;F0>=26,T$+=f/67108864|0,T$+=D$>>>26,this.words[Y]=D$&67108863}return T$!==0&&(this.words[Y]=T$,this.length++),this},$$.prototype.muln=function(E$){return this.clone().imuln(E$)},$$.prototype.sqr=function(){return this.mul(this)},$$.prototype.isqr=function(){return this.imul(this.clone())},$$.prototype.pow=function(E$){var T$=V$(E$);if(T$.length===0)return new $$(1);for(var Y=this,f=0;f=0);var T$=E$%26,Y=(E$-T$)/26,f=67108863>>>26-T$<<26-T$,D$;if(T$!==0){var F0=0;for(D$=0;D$>>26-T$}F0&&(this.words[D$]=F0,this.length++)}if(Y!==0){for(D$=this.length-1;D$>=0;D$--)this.words[D$+Y]=this.words[D$];for(D$=0;D$=0);var f;T$?f=(T$-T$%26)/26:f=0;var D$=E$%26,F0=Math.min((E$-D$)/26,this.length),C$=67108863^67108863>>>D$<F0)for(this.length-=F0,R$=0;R$=0&&(P$!==0||R$>=f);R$--){var z$=this.words[R$]|0;this.words[R$]=P$<<26-D$|z$>>>D$,P$=z$&C$}return L$&&P$!==0&&(L$.words[L$.length++]=P$),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},$$.prototype.ishrn=function(E$,T$,Y){return r0(this.negative===0),this.iushrn(E$,T$,Y)},$$.prototype.shln=function(E$){return this.clone().ishln(E$)},$$.prototype.ushln=function(E$){return this.clone().iushln(E$)},$$.prototype.shrn=function(E$){return this.clone().ishrn(E$)},$$.prototype.ushrn=function(E$){return this.clone().iushrn(E$)},$$.prototype.testn=function(E$){r0(typeof E$=="number"&&E$>=0);var T$=E$%26,Y=(E$-T$)/26,f=1<=0);var T$=E$%26,Y=(E$-T$)/26;if(r0(this.negative===0,"imaskn works only with positive numbers"),this.length<=Y)return this;if(T$!==0&&Y++,this.length=Math.min(Y,this.length),T$!==0){var f=67108863^67108863>>>T$<=67108864;T$++)this.words[T$]-=67108864,T$===this.length-1?this.words[T$+1]=1:this.words[T$+1]++;return this.length=Math.max(this.length,T$+1),this},$$.prototype.isubn=function(E$){if(r0(typeof E$=="number"),r0(E$<67108864),E$<0)return this.iaddn(-E$);if(this.negative!==0)return this.negative=0,this.iaddn(E$),this.negative=1,this;if(this.words[0]-=E$,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var T$=0;T$>26)-(L$/67108864|0),this.words[D$+Y]=F0&67108863}for(;D$>26,this.words[D$+Y]=F0&67108863;if(C$===0)return this.strip();for(r0(C$===-1),C$=0,D$=0;D$>26,this.words[D$]=F0&67108863;return this.negative=1,this.strip()},$$.prototype._wordDiv=function(E$,T$){var Y=this.length-E$.length,f=this.clone(),D$=E$,F0=D$.words[D$.length-1]|0,C$=this._countBits(F0);Y=26-C$,Y!==0&&(D$=D$.ushln(Y),f.iushln(Y),F0=D$.words[D$.length-1]|0);var L$=f.length-D$.length,R$;if(T$!=="mod"){R$=new $$(null),R$.length=L$+1,R$.words=new Array(R$.length);for(var P$=0;P$=0;M$--){var S$=(f.words[D$.length+M$]|0)*67108864+(f.words[D$.length+M$-1]|0);for(S$=Math.min(S$/F0|0,67108863),f._ishlnsubmul(D$,S$,M$);f.negative!==0;)S$--,f.negative=0,f._ishlnsubmul(D$,1,M$),f.isZero()||(f.negative^=1);R$&&(R$.words[M$]=S$)}return R$&&R$.strip(),f.strip(),T$!=="div"&&Y!==0&&f.iushrn(Y),{div:R$||null,mod:f}},$$.prototype.divmod=function(E$,T$,Y){if(r0(!E$.isZero()),this.isZero())return{div:new $$(0),mod:new $$(0)};var f,D$,F0;return this.negative!==0&&E$.negative===0?(F0=this.neg().divmod(E$,T$),T$!=="mod"&&(f=F0.div.neg()),T$!=="div"&&(D$=F0.mod.neg(),Y&&D$.negative!==0&&D$.iadd(E$)),{div:f,mod:D$}):this.negative===0&&E$.negative!==0?(F0=this.divmod(E$.neg(),T$),T$!=="mod"&&(f=F0.div.neg()),{div:f,mod:F0.mod}):(this.negative&E$.negative)!==0?(F0=this.neg().divmod(E$.neg(),T$),T$!=="div"&&(D$=F0.mod.neg(),Y&&D$.negative!==0&&D$.isub(E$)),{div:F0.div,mod:D$}):E$.length>this.length||this.cmp(E$)<0?{div:new $$(0),mod:this}:E$.length===1?T$==="div"?{div:this.divn(E$.words[0]),mod:null}:T$==="mod"?{div:null,mod:new $$(this.modn(E$.words[0]))}:{div:this.divn(E$.words[0]),mod:new $$(this.modn(E$.words[0]))}:this._wordDiv(E$,T$)},$$.prototype.div=function(E$){return this.divmod(E$,"div",!1).div},$$.prototype.mod=function(E$){return this.divmod(E$,"mod",!1).mod},$$.prototype.umod=function(E$){return this.divmod(E$,"mod",!0).mod},$$.prototype.divRound=function(E$){var T$=this.divmod(E$);if(T$.mod.isZero())return T$.div;var Y=T$.div.negative!==0?T$.mod.isub(E$):T$.mod,f=E$.ushrn(1),D$=E$.andln(1),F0=Y.cmp(f);return F0<0||D$===1&&F0===0?T$.div:T$.div.negative!==0?T$.div.isubn(1):T$.div.iaddn(1)},$$.prototype.modn=function(E$){r0(E$<=67108863);for(var T$=(1<<26)%E$,Y=0,f=this.length-1;f>=0;f--)Y=(T$*Y+(this.words[f]|0))%E$;return Y},$$.prototype.idivn=function(E$){r0(E$<=67108863);for(var T$=0,Y=this.length-1;Y>=0;Y--){var f=(this.words[Y]|0)+T$*67108864;this.words[Y]=f/E$|0,T$=f%E$}return this.strip()},$$.prototype.divn=function(E$){return this.clone().idivn(E$)},$$.prototype.egcd=function(E$){r0(E$.negative===0),r0(!E$.isZero());var T$=this,Y=E$.clone();T$.negative!==0?T$=T$.umod(E$):T$=T$.clone();for(var f=new $$(1),D$=new $$(0),F0=new $$(0),C$=new $$(1),L$=0;T$.isEven()&&Y.isEven();)T$.iushrn(1),Y.iushrn(1),++L$;for(var R$=Y.clone(),P$=T$.clone();!T$.isZero();){for(var z$=0,M$=1;(T$.words[0]&M$)===0&&z$<26;++z$,M$<<=1);if(z$>0)for(T$.iushrn(z$);z$-- >0;)(f.isOdd()||D$.isOdd())&&(f.iadd(R$),D$.isub(P$)),f.iushrn(1),D$.iushrn(1);for(var S$=0,Z=1;(Y.words[0]&Z)===0&&S$<26;++S$,Z<<=1);if(S$>0)for(Y.iushrn(S$);S$-- >0;)(F0.isOdd()||C$.isOdd())&&(F0.iadd(R$),C$.isub(P$)),F0.iushrn(1),C$.iushrn(1);T$.cmp(Y)>=0?(T$.isub(Y),f.isub(F0),D$.isub(C$)):(Y.isub(T$),F0.isub(f),C$.isub(D$))}return{a:F0,b:C$,gcd:Y.iushln(L$)}},$$.prototype._invmp=function(E$){r0(E$.negative===0),r0(!E$.isZero());var T$=this,Y=E$.clone();T$.negative!==0?T$=T$.umod(E$):T$=T$.clone();for(var f=new $$(1),D$=new $$(0),F0=Y.clone();T$.cmpn(1)>0&&Y.cmpn(1)>0;){for(var C$=0,L$=1;(T$.words[0]&L$)===0&&C$<26;++C$,L$<<=1);if(C$>0)for(T$.iushrn(C$);C$-- >0;)f.isOdd()&&f.iadd(F0),f.iushrn(1);for(var R$=0,P$=1;(Y.words[0]&P$)===0&&R$<26;++R$,P$<<=1);if(R$>0)for(Y.iushrn(R$);R$-- >0;)D$.isOdd()&&D$.iadd(F0),D$.iushrn(1);T$.cmp(Y)>=0?(T$.isub(Y),f.isub(D$)):(Y.isub(T$),D$.isub(f))}var z$;return T$.cmpn(1)===0?z$=f:z$=D$,z$.cmpn(0)<0&&z$.iadd(E$),z$},$$.prototype.gcd=function(E$){if(this.isZero())return E$.abs();if(E$.isZero())return this.abs();var T$=this.clone(),Y=E$.clone();T$.negative=0,Y.negative=0;for(var f=0;T$.isEven()&&Y.isEven();f++)T$.iushrn(1),Y.iushrn(1);do{for(;T$.isEven();)T$.iushrn(1);for(;Y.isEven();)Y.iushrn(1);var D$=T$.cmp(Y);if(D$<0){var F0=T$;T$=Y,Y=F0}else if(D$===0||Y.cmpn(1)===0)break;T$.isub(Y)}while(!0);return Y.iushln(f)},$$.prototype.invm=function(E$){return this.egcd(E$).a.umod(E$)},$$.prototype.isEven=function(){return(this.words[0]&1)===0},$$.prototype.isOdd=function(){return(this.words[0]&1)===1},$$.prototype.andln=function(E$){return this.words[0]&E$},$$.prototype.bincn=function(E$){r0(typeof E$=="number");var T$=E$%26,Y=(E$-T$)/26,f=1<>>26,C$&=67108863,this.words[F0]=C$}return D$!==0&&(this.words[F0]=D$,this.length++),this},$$.prototype.isZero=function(){return this.length===1&&this.words[0]===0},$$.prototype.cmpn=function(E$){var T$=E$<0;if(this.negative!==0&&!T$)return-1;if(this.negative===0&&T$)return 1;this.strip();var Y;if(this.length>1)Y=1;else{T$&&(E$=-E$),r0(E$<=67108863,"Number is too big");var f=this.words[0]|0;Y=f===E$?0:fE$.length)return 1;if(this.length=0;Y--){var f=this.words[Y]|0,D$=E$.words[Y]|0;if(f!==D$){fD$&&(T$=1);break}}return T$},$$.prototype.gtn=function(E$){return this.cmpn(E$)===1},$$.prototype.gt=function(E$){return this.cmp(E$)===1},$$.prototype.gten=function(E$){return this.cmpn(E$)>=0},$$.prototype.gte=function(E$){return this.cmp(E$)>=0},$$.prototype.ltn=function(E$){return this.cmpn(E$)===-1},$$.prototype.lt=function(E$){return this.cmp(E$)===-1},$$.prototype.lten=function(E$){return this.cmpn(E$)<=0},$$.prototype.lte=function(E$){return this.cmp(E$)<=0},$$.prototype.eqn=function(E$){return this.cmpn(E$)===0},$$.prototype.eq=function(E$){return this.cmp(E$)===0},$$.red=function(E$){return new H$(E$)},$$.prototype.toRed=function(E$){return r0(!this.red,"Already a number in reduction context"),r0(this.negative===0,"red works only with positives"),E$.convertTo(this)._forceRed(E$)},$$.prototype.fromRed=function(){return r0(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},$$.prototype._forceRed=function(E$){return this.red=E$,this},$$.prototype.forceRed=function(E$){return r0(!this.red,"Already a number in reduction context"),this._forceRed(E$)},$$.prototype.redAdd=function(E$){return r0(this.red,"redAdd works only with red numbers"),this.red.add(this,E$)},$$.prototype.redIAdd=function(E$){return r0(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,E$)},$$.prototype.redSub=function(E$){return r0(this.red,"redSub works only with red numbers"),this.red.sub(this,E$)},$$.prototype.redISub=function(E$){return r0(this.red,"redISub works only with red numbers"),this.red.isub(this,E$)},$$.prototype.redShl=function(E$){return r0(this.red,"redShl works only with red numbers"),this.red.shl(this,E$)},$$.prototype.redMul=function(E$){return r0(this.red,"redMul works only with red numbers"),this.red._verify2(this,E$),this.red.mul(this,E$)},$$.prototype.redIMul=function(E$){return r0(this.red,"redMul works only with red numbers"),this.red._verify2(this,E$),this.red.imul(this,E$)},$$.prototype.redSqr=function(){return r0(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},$$.prototype.redISqr=function(){return r0(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},$$.prototype.redSqrt=function(){return r0(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},$$.prototype.redInvm=function(){return r0(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},$$.prototype.redNeg=function(){return r0(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},$$.prototype.redPow=function(E$){return r0(this.red&&!E$.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,E$)};var x={k256:null,p224:null,p192:null,p25519:null};function O$(E$,T$){this.name=E$,this.p=new $$(T$,16),this.n=this.p.bitLength(),this.k=new $$(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}O$.prototype._tmp=function(){var E$=new $$(null);return E$.words=new Array(Math.ceil(this.n/13)),E$},O$.prototype.ireduce=function(E$){var T$=E$,Y;do this.split(T$,this.tmp),T$=this.imulK(T$),T$=T$.iadd(this.tmp),Y=T$.bitLength();while(Y>this.n);var f=Y0?T$.isub(this.p):T$.strip!==void 0?T$.strip():T$._strip(),T$},O$.prototype.split=function(E$,T$){E$.iushrn(this.n,0,T$)},O$.prototype.imulK=function(E$){return E$.imul(this.k)};function J0(){O$.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i0(J0,O$),J0.prototype.split=function(E$,T$){for(var Y=4194303,f=Math.min(E$.length,9),D$=0;D$>>22,F0=C$}F0>>>=22,E$.words[D$-10]=F0,F0===0&&E$.length>10?E$.length-=10:E$.length-=9},J0.prototype.imulK=function(E$){E$.words[E$.length]=0,E$.words[E$.length+1]=0,E$.length+=2;for(var T$=0,Y=0;Y>>=26,E$.words[Y]=D$,T$=f}return T$!==0&&(E$.words[E$.length++]=T$),E$},$$._prime=function(E$){if(x[E$])return x[E$];var T$;if(E$==="k256")T$=new J0;else if(E$==="p224")T$=new J$;else if(E$==="p192")T$=new F$;else if(E$==="p25519")T$=new A$;else throw new Error("Unknown prime "+E$);return x[E$]=T$,T$};function H$(E$){if(typeof E$=="string"){var T$=$$._prime(E$);this.m=T$.p,this.prime=T$}else r0(E$.gtn(1),"modulus must be greater than 1"),this.m=E$,this.prime=null}H$.prototype._verify1=function(E$){r0(E$.negative===0,"red works only with positives"),r0(E$.red,"red works only with red numbers")},H$.prototype._verify2=function(E$,T$){r0((E$.negative|T$.negative)===0,"red works only with positives"),r0(E$.red&&E$.red===T$.red,"red works only with red numbers")},H$.prototype.imod=function(E$){return this.prime?this.prime.ireduce(E$)._forceRed(this):E$.umod(this.m)._forceRed(this)},H$.prototype.neg=function(E$){return E$.isZero()?E$.clone():this.m.sub(E$)._forceRed(this)},H$.prototype.add=function(E$,T$){this._verify2(E$,T$);var Y=E$.add(T$);return Y.cmp(this.m)>=0&&Y.isub(this.m),Y._forceRed(this)},H$.prototype.iadd=function(E$,T$){this._verify2(E$,T$);var Y=E$.iadd(T$);return Y.cmp(this.m)>=0&&Y.isub(this.m),Y},H$.prototype.sub=function(E$,T$){this._verify2(E$,T$);var Y=E$.sub(T$);return Y.cmpn(0)<0&&Y.iadd(this.m),Y._forceRed(this)},H$.prototype.isub=function(E$,T$){this._verify2(E$,T$);var Y=E$.isub(T$);return Y.cmpn(0)<0&&Y.iadd(this.m),Y},H$.prototype.shl=function(E$,T$){return this._verify1(E$),this.imod(E$.ushln(T$))},H$.prototype.imul=function(E$,T$){return this._verify2(E$,T$),this.imod(E$.imul(T$))},H$.prototype.mul=function(E$,T$){return this._verify2(E$,T$),this.imod(E$.mul(T$))},H$.prototype.isqr=function(E$){return this.imul(E$,E$.clone())},H$.prototype.sqr=function(E$){return this.mul(E$,E$)},H$.prototype.sqrt=function(E$){if(E$.isZero())return E$.clone();var T$=this.m.andln(3);if(r0(T$%2===1),T$===3){var Y=this.m.add(new $$(1)).iushrn(2);return this.pow(E$,Y)}for(var f=this.m.subn(1),D$=0;!f.isZero()&&f.andln(1)===0;)D$++,f.iushrn(1);r0(!f.isZero());var F0=new $$(1).toRed(this),C$=F0.redNeg(),L$=this.m.subn(1).iushrn(1),R$=this.m.bitLength();for(R$=new $$(2*R$*R$).toRed(this);this.pow(R$,L$).cmp(C$)!==0;)R$.redIAdd(C$);for(var P$=this.pow(R$,f),z$=this.pow(E$,f.addn(1).iushrn(1)),M$=this.pow(E$,f),S$=D$;M$.cmp(F0)!==0;){for(var Z=M$,c=0;Z.cmp(F0)!==0;c++)Z=Z.redSqr();r0(c=0;D$--){for(var P$=T$.words[D$],z$=R$-1;z$>=0;z$--){var M$=P$>>z$&1;if(F0!==f[0]&&(F0=this.sqr(F0)),M$===0&&C$===0){L$=0;continue}C$<<=1,C$|=M$,L$++,!(L$!==Y&&(D$!==0||z$!==0))&&(F0=this.mul(F0,f[C$]),L$=0,C$=0)}R$=26}return F0},H$.prototype.convertTo=function(E$){var T$=E$.umod(this.m);return T$===E$?T$.clone():T$},H$.prototype.convertFrom=function(E$){var T$=E$.clone();return T$.red=null,T$},$$.mont=function(E$){return new W$(E$)};function W$(E$){H$.call(this,E$),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new $$(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)}i0(W$,H$),W$.prototype.convertTo=function(E$){return this.imod(E$.ushln(this.shift))},W$.prototype.convertFrom=function(E$){var T$=this.imod(E$.mul(this.rinv));return T$.red=null,T$},W$.prototype.imul=function(E$,T$){if(E$.isZero()||T$.isZero())return E$.words[0]=0,E$.length=1,E$;var Y=E$.imul(T$),f=Y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),D$=Y.isub(f).iushrn(this.shift),F0=D$;return D$.cmp(this.m)>=0?F0=D$.isub(this.m):D$.cmpn(0)<0&&(F0=D$.iadd(this.m)),F0._forceRed(this)},W$.prototype.mul=function(E$,T$){if(E$.isZero()||T$.isZero())return new $$(0)._forceRed(this);var Y=E$.mul(T$),f=Y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),D$=Y.isub(f).iushrn(this.shift),F0=D$;return D$.cmp(this.m)>=0?F0=D$.isub(this.m):D$.cmpn(0)<0&&(F0=D$.iadd(this.m)),F0._forceRed(this)},W$.prototype.invm=function(E$){var T$=this.imod(E$._invmp(this.m).mul(this.r2));return T$._forceRed(this)}})(typeof m0>"u"||m0,t0)}}),PY=pQ({"node_modules/miller-rabin/node_modules/bn.js/lib/bn.js"(t0,m0){(function(a0,e0){function r0(E$,T$){if(!E$)throw new Error(T$||"Assertion failed")}function i0(E$,T$){E$.super_=T$;var Y=function(){};Y.prototype=T$.prototype,E$.prototype=new Y,E$.prototype.constructor=E$}function $$(E$,T$,Y){if($$.isBN(E$))return E$;this.negative=0,this.words=null,this.length=0,this.red=null,E$!==null&&((T$==="le"||T$==="be")&&(Y=T$,T$=10),this._init(E$||0,T$||10,Y||"be"))}typeof a0=="object"?a0.exports=$$:e0.BN=$$,$$.BN=$$,$$.wordSize=26;var Q$=G0;$$.isBN=function(E$){return E$ instanceof $$?!0:E$!==null&&typeof E$=="object"&&E$.constructor.wordSize===$$.wordSize&&Array.isArray(E$.words)},$$.max=function(E$,T$){return E$.cmp(T$)>0?E$:T$},$$.min=function(E$,T$){return E$.cmp(T$)<0?E$:T$},$$.prototype._init=function(E$,T$,Y){if(typeof E$=="number")return this._initNumber(E$,T$,Y);if(typeof E$=="object")return this._initArray(E$,T$,Y);T$==="hex"&&(T$=16),r0(T$===(T$|0)&&T$>=2&&T$<=36),E$=E$.toString().replace(/\s+/g,"");var f=0;E$[0]==="-"&&(f++,this.negative=1),f=0;f-=3)F0=E$[f]|E$[f-1]<<8|E$[f-2]<<16,this.words[D$]|=F0<>>26-C$&67108863,C$+=24,C$>=26&&(C$-=26,D$++);else if(Y==="le")for(f=0,D$=0;f>>26-C$&67108863,C$+=24,C$>=26&&(C$-=26,D$++);return this.strip()};function $(E$,T$){var Y=E$.charCodeAt(T$);return Y>=65&&Y<=70?Y-55:Y>=97&&Y<=102?Y-87:Y-48&15}function N(E$,T$,Y){var f=$(E$,Y);return Y-1>=T$&&(f|=$(E$,Y-1)<<4),f}$$.prototype._parseHex=function(E$,T$,Y){this.length=Math.ceil((E$.length-T$)/6),this.words=new Array(this.length);for(var f=0;f=T$;f-=2)C$=N(E$,T$,f)<=18?(D$-=18,F0+=1,this.words[F0]|=C$>>>26):D$+=8;else{var L$=E$.length-T$;for(f=L$%2===0?T$+1:T$;f=18?(D$-=18,F0+=1,this.words[F0]|=C$>>>26):D$+=8}this.strip()};function Y$(E$,T$,Y,f){for(var D$=0,F0=Math.min(E$.length,Y),C$=T$;C$=49?D$+=L$-49+10:L$>=17?D$+=L$-17+10:D$+=L$}return D$}$$.prototype._parseBase=function(E$,T$,Y){this.words=[0],this.length=1;for(var f=0,D$=1;D$<=67108863;D$*=T$)f++;f--,D$=D$/T$|0;for(var F0=E$.length-Y,C$=F0%f,L$=Math.min(F0,F0-C$)+Y,R$=0,P$=Y;P$1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},$$.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},$$.prototype.inspect=function(){return(this.red?""};var O0=["","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"],Z$=[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],G$=[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];$$.prototype.toString=function(E$,T$){E$=E$||10,T$=T$|0||1;var Y;if(E$===16||E$==="hex"){Y="";for(var f=0,D$=0,F0=0;F0>>24-f&16777215,D$!==0||F0!==this.length-1?Y=O0[6-L$.length]+L$+Y:Y=L$+Y,f+=2,f>=26&&(f-=26,F0--)}for(D$!==0&&(Y=D$.toString(16)+Y);Y.length%T$!==0;)Y="0"+Y;return this.negative!==0&&(Y="-"+Y),Y}if(E$===(E$|0)&&E$>=2&&E$<=36){var R$=Z$[E$],P$=G$[E$];Y="";var z$=this.clone();for(z$.negative=0;!z$.isZero();){var M$=z$.modn(P$).toString(E$);z$=z$.idivn(P$),z$.isZero()?Y=M$+Y:Y=O0[R$-M$.length]+M$+Y}for(this.isZero()&&(Y="0"+Y);Y.length%T$!==0;)Y="0"+Y;return this.negative!==0&&(Y="-"+Y),Y}r0(!1,"Base should be between 2 and 36")},$$.prototype.toNumber=function(){var E$=this.words[0];return this.length===2?E$+=this.words[1]*67108864:this.length===3&&this.words[2]===1?E$+=4503599627370496+this.words[1]*67108864:this.length>2&&r0(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-E$:E$},$$.prototype.toJSON=function(){return this.toString(16)},$$.prototype.toBuffer=function(E$,T$){return r0(typeof Q$<"u"),this.toArrayLike(Q$,E$,T$)},$$.prototype.toArray=function(E$,T$){return this.toArrayLike(Array,E$,T$)},$$.prototype.toArrayLike=function(E$,T$,Y){var f=this.byteLength(),D$=Y||Math.max(1,f);r0(f<=D$,"byte array longer than desired length"),r0(D$>0,"Requested array length <= 0"),this.strip();var F0=T$==="le",C$=new E$(D$),L$,R$,P$=this.clone();if(F0){for(R$=0;!P$.isZero();R$++)L$=P$.andln(255),P$.iushrn(8),C$[R$]=L$;for(;R$=4096&&(Y+=13,T$>>>=13),T$>=64&&(Y+=7,T$>>>=7),T$>=8&&(Y+=4,T$>>>=4),T$>=2&&(Y+=2,T$>>>=2),Y+T$},$$.prototype._zeroBits=function(E$){if(E$===0)return 26;var T$=E$,Y=0;return(T$&8191)===0&&(Y+=13,T$>>>=13),(T$&127)===0&&(Y+=7,T$>>>=7),(T$&15)===0&&(Y+=4,T$>>>=4),(T$&3)===0&&(Y+=2,T$>>>=2),(T$&1)===0&&Y++,Y},$$.prototype.bitLength=function(){var E$=this.words[this.length-1],T$=this._countBits(E$);return(this.length-1)*26+T$};function V$(E$){for(var T$=new Array(E$.bitLength()),Y=0;Y>>D$}return T$}$$.prototype.zeroBits=function(){if(this.isZero())return 0;for(var E$=0,T$=0;T$E$.length?this.clone().ior(E$):E$.clone().ior(this)},$$.prototype.uor=function(E$){return this.length>E$.length?this.clone().iuor(E$):E$.clone().iuor(this)},$$.prototype.iuand=function(E$){var T$;this.length>E$.length?T$=E$:T$=this;for(var Y=0;YE$.length?this.clone().iand(E$):E$.clone().iand(this)},$$.prototype.uand=function(E$){return this.length>E$.length?this.clone().iuand(E$):E$.clone().iuand(this)},$$.prototype.iuxor=function(E$){var T$,Y;this.length>E$.length?(T$=this,Y=E$):(T$=E$,Y=this);for(var f=0;fE$.length?this.clone().ixor(E$):E$.clone().ixor(this)},$$.prototype.uxor=function(E$){return this.length>E$.length?this.clone().iuxor(E$):E$.clone().iuxor(this)},$$.prototype.inotn=function(E$){r0(typeof E$=="number"&&E$>=0);var T$=Math.ceil(E$/26)|0,Y=E$%26;this._expand(T$),Y>0&&T$--;for(var f=0;f0&&(this.words[f]=~this.words[f]&67108863>>26-Y),this.strip()},$$.prototype.notn=function(E$){return this.clone().inotn(E$)},$$.prototype.setn=function(E$,T$){r0(typeof E$=="number"&&E$>=0);var Y=E$/26|0,f=E$%26;return this._expand(Y+1),T$?this.words[Y]=this.words[Y]|1<E$.length?(Y=this,f=E$):(Y=E$,f=this);for(var D$=0,F0=0;F0>>26;for(;D$!==0&&F0>>26;if(this.length=Y.length,D$!==0)this.words[this.length]=D$,this.length++;else if(Y!==this)for(;F0E$.length?this.clone().iadd(E$):E$.clone().iadd(this)},$$.prototype.isub=function(E$){if(E$.negative!==0){E$.negative=0;var T$=this.iadd(E$);return E$.negative=1,T$._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(E$),this.negative=1,this._normSign();var Y=this.cmp(E$);if(Y===0)return this.negative=0,this.length=1,this.words[0]=0,this;var f,D$;Y>0?(f=this,D$=E$):(f=E$,D$=this);for(var F0=0,C$=0;C$>26,this.words[C$]=T$&67108863;for(;F0!==0&&C$>26,this.words[C$]=T$&67108863;if(F0===0&&C$>>26,M$=R$&67108863,S$=Math.min(P$,T$.length-1),Z=Math.max(0,P$-E$.length+1);Z<=S$;Z++){var c=P$-Z|0;D$=E$.words[c]|0,F0=T$.words[Z]|0,C$=D$*F0+M$,z$+=C$/67108864|0,M$=C$&67108863}Y.words[P$]=M$|0,R$=z$|0}return R$!==0?Y.words[P$]=R$|0:Y.length--,Y.strip()}var X$=function(E$,T$,Y){var f=E$.words,D$=T$.words,F0=Y.words,C$=0,L$,R$,P$,z$=f[0]|0,M$=z$&8191,S$=z$>>>13,Z=f[1]|0,c=Z&8191,v$=Z>>>13,A0=f[2]|0,q$=A0&8191,j$=A0>>>13,k$=f[3]|0,g$=k$&8191,_$=k$>>>13,N$=f[4]|0,x$=N$&8191,G=N$>>>13,B=f[5]|0,B$=B&8191,H0=B>>>13,y$=f[6]|0,w$=y$&8191,p$=y$>>>13,f$=f[7]|0,c$=f$&8191,h$=f$>>>13,d$=f[8]|0,V=d$&8191,h=d$>>>13,W0=f[9]|0,E0=W0&8191,b$=W0>>>13,l$=D$[0]|0,o$=l$&8191,u$=l$>>>13,n$=D$[1]|0,s$=n$&8191,t$=n$>>>13,U=D$[2]|0,d=U&8191,m$=U>>>13,T0=D$[3]|0,a$=T0&8191,e$=T0>>>13,r$=D$[4]|0,i$=r$&8191,$Q=r$>>>13,QQ=D$[5]|0,YQ=QQ&8191,X=QQ>>>13,b=D$[6]|0,ZQ=b&8191,D0=b>>>13,GQ=D$[7]|0,VQ=GQ&8191,UQ=GQ>>>13,XQ=D$[8]|0,KQ=XQ&8191,IQ=XQ>>>13,OQ=D$[9]|0,K=OQ&8191,l=OQ>>>13;Y.negative=E$.negative^T$.negative,Y.length=19,L$=Math.imul(M$,o$),R$=Math.imul(M$,u$),R$=R$+Math.imul(S$,o$)|0,P$=Math.imul(S$,u$);var JQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(JQ>>>26)|0,JQ&=67108863,L$=Math.imul(c,o$),R$=Math.imul(c,u$),R$=R$+Math.imul(v$,o$)|0,P$=Math.imul(v$,u$),L$=L$+Math.imul(M$,s$)|0,R$=R$+Math.imul(M$,t$)|0,R$=R$+Math.imul(S$,s$)|0,P$=P$+Math.imul(S$,t$)|0;var C0=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(C0>>>26)|0,C0&=67108863,L$=Math.imul(q$,o$),R$=Math.imul(q$,u$),R$=R$+Math.imul(j$,o$)|0,P$=Math.imul(j$,u$),L$=L$+Math.imul(c,s$)|0,R$=R$+Math.imul(c,t$)|0,R$=R$+Math.imul(v$,s$)|0,P$=P$+Math.imul(v$,t$)|0,L$=L$+Math.imul(M$,d)|0,R$=R$+Math.imul(M$,m$)|0,R$=R$+Math.imul(S$,d)|0,P$=P$+Math.imul(S$,m$)|0;var FQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(FQ>>>26)|0,FQ&=67108863,L$=Math.imul(g$,o$),R$=Math.imul(g$,u$),R$=R$+Math.imul(_$,o$)|0,P$=Math.imul(_$,u$),L$=L$+Math.imul(q$,s$)|0,R$=R$+Math.imul(q$,t$)|0,R$=R$+Math.imul(j$,s$)|0,P$=P$+Math.imul(j$,t$)|0,L$=L$+Math.imul(c,d)|0,R$=R$+Math.imul(c,m$)|0,R$=R$+Math.imul(v$,d)|0,P$=P$+Math.imul(v$,m$)|0,L$=L$+Math.imul(M$,a$)|0,R$=R$+Math.imul(M$,e$)|0,R$=R$+Math.imul(S$,a$)|0,P$=P$+Math.imul(S$,e$)|0;var AQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(AQ>>>26)|0,AQ&=67108863,L$=Math.imul(x$,o$),R$=Math.imul(x$,u$),R$=R$+Math.imul(G,o$)|0,P$=Math.imul(G,u$),L$=L$+Math.imul(g$,s$)|0,R$=R$+Math.imul(g$,t$)|0,R$=R$+Math.imul(_$,s$)|0,P$=P$+Math.imul(_$,t$)|0,L$=L$+Math.imul(q$,d)|0,R$=R$+Math.imul(q$,m$)|0,R$=R$+Math.imul(j$,d)|0,P$=P$+Math.imul(j$,m$)|0,L$=L$+Math.imul(c,a$)|0,R$=R$+Math.imul(c,e$)|0,R$=R$+Math.imul(v$,a$)|0,P$=P$+Math.imul(v$,e$)|0,L$=L$+Math.imul(M$,i$)|0,R$=R$+Math.imul(M$,$Q)|0,R$=R$+Math.imul(S$,i$)|0,P$=P$+Math.imul(S$,$Q)|0;var HQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(HQ>>>26)|0,HQ&=67108863,L$=Math.imul(B$,o$),R$=Math.imul(B$,u$),R$=R$+Math.imul(H0,o$)|0,P$=Math.imul(H0,u$),L$=L$+Math.imul(x$,s$)|0,R$=R$+Math.imul(x$,t$)|0,R$=R$+Math.imul(G,s$)|0,P$=P$+Math.imul(G,t$)|0,L$=L$+Math.imul(g$,d)|0,R$=R$+Math.imul(g$,m$)|0,R$=R$+Math.imul(_$,d)|0,P$=P$+Math.imul(_$,m$)|0,L$=L$+Math.imul(q$,a$)|0,R$=R$+Math.imul(q$,e$)|0,R$=R$+Math.imul(j$,a$)|0,P$=P$+Math.imul(j$,e$)|0,L$=L$+Math.imul(c,i$)|0,R$=R$+Math.imul(c,$Q)|0,R$=R$+Math.imul(v$,i$)|0,P$=P$+Math.imul(v$,$Q)|0,L$=L$+Math.imul(M$,YQ)|0,R$=R$+Math.imul(M$,X)|0,R$=R$+Math.imul(S$,YQ)|0,P$=P$+Math.imul(S$,X)|0;var WQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(WQ>>>26)|0,WQ&=67108863,L$=Math.imul(w$,o$),R$=Math.imul(w$,u$),R$=R$+Math.imul(p$,o$)|0,P$=Math.imul(p$,u$),L$=L$+Math.imul(B$,s$)|0,R$=R$+Math.imul(B$,t$)|0,R$=R$+Math.imul(H0,s$)|0,P$=P$+Math.imul(H0,t$)|0,L$=L$+Math.imul(x$,d)|0,R$=R$+Math.imul(x$,m$)|0,R$=R$+Math.imul(G,d)|0,P$=P$+Math.imul(G,m$)|0,L$=L$+Math.imul(g$,a$)|0,R$=R$+Math.imul(g$,e$)|0,R$=R$+Math.imul(_$,a$)|0,P$=P$+Math.imul(_$,e$)|0,L$=L$+Math.imul(q$,i$)|0,R$=R$+Math.imul(q$,$Q)|0,R$=R$+Math.imul(j$,i$)|0,P$=P$+Math.imul(j$,$Q)|0,L$=L$+Math.imul(c,YQ)|0,R$=R$+Math.imul(c,X)|0,R$=R$+Math.imul(v$,YQ)|0,P$=P$+Math.imul(v$,X)|0,L$=L$+Math.imul(M$,ZQ)|0,R$=R$+Math.imul(M$,D0)|0,R$=R$+Math.imul(S$,ZQ)|0,P$=P$+Math.imul(S$,D0)|0;var EQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(EQ>>>26)|0,EQ&=67108863,L$=Math.imul(c$,o$),R$=Math.imul(c$,u$),R$=R$+Math.imul(h$,o$)|0,P$=Math.imul(h$,u$),L$=L$+Math.imul(w$,s$)|0,R$=R$+Math.imul(w$,t$)|0,R$=R$+Math.imul(p$,s$)|0,P$=P$+Math.imul(p$,t$)|0,L$=L$+Math.imul(B$,d)|0,R$=R$+Math.imul(B$,m$)|0,R$=R$+Math.imul(H0,d)|0,P$=P$+Math.imul(H0,m$)|0,L$=L$+Math.imul(x$,a$)|0,R$=R$+Math.imul(x$,e$)|0,R$=R$+Math.imul(G,a$)|0,P$=P$+Math.imul(G,e$)|0,L$=L$+Math.imul(g$,i$)|0,R$=R$+Math.imul(g$,$Q)|0,R$=R$+Math.imul(_$,i$)|0,P$=P$+Math.imul(_$,$Q)|0,L$=L$+Math.imul(q$,YQ)|0,R$=R$+Math.imul(q$,X)|0,R$=R$+Math.imul(j$,YQ)|0,P$=P$+Math.imul(j$,X)|0,L$=L$+Math.imul(c,ZQ)|0,R$=R$+Math.imul(c,D0)|0,R$=R$+Math.imul(v$,ZQ)|0,P$=P$+Math.imul(v$,D0)|0,L$=L$+Math.imul(M$,VQ)|0,R$=R$+Math.imul(M$,UQ)|0,R$=R$+Math.imul(S$,VQ)|0,P$=P$+Math.imul(S$,UQ)|0;var TQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(TQ>>>26)|0,TQ&=67108863,L$=Math.imul(V,o$),R$=Math.imul(V,u$),R$=R$+Math.imul(h,o$)|0,P$=Math.imul(h,u$),L$=L$+Math.imul(c$,s$)|0,R$=R$+Math.imul(c$,t$)|0,R$=R$+Math.imul(h$,s$)|0,P$=P$+Math.imul(h$,t$)|0,L$=L$+Math.imul(w$,d)|0,R$=R$+Math.imul(w$,m$)|0,R$=R$+Math.imul(p$,d)|0,P$=P$+Math.imul(p$,m$)|0,L$=L$+Math.imul(B$,a$)|0,R$=R$+Math.imul(B$,e$)|0,R$=R$+Math.imul(H0,a$)|0,P$=P$+Math.imul(H0,e$)|0,L$=L$+Math.imul(x$,i$)|0,R$=R$+Math.imul(x$,$Q)|0,R$=R$+Math.imul(G,i$)|0,P$=P$+Math.imul(G,$Q)|0,L$=L$+Math.imul(g$,YQ)|0,R$=R$+Math.imul(g$,X)|0,R$=R$+Math.imul(_$,YQ)|0,P$=P$+Math.imul(_$,X)|0,L$=L$+Math.imul(q$,ZQ)|0,R$=R$+Math.imul(q$,D0)|0,R$=R$+Math.imul(j$,ZQ)|0,P$=P$+Math.imul(j$,D0)|0,L$=L$+Math.imul(c,VQ)|0,R$=R$+Math.imul(c,UQ)|0,R$=R$+Math.imul(v$,VQ)|0,P$=P$+Math.imul(v$,UQ)|0,L$=L$+Math.imul(M$,KQ)|0,R$=R$+Math.imul(M$,IQ)|0,R$=R$+Math.imul(S$,KQ)|0,P$=P$+Math.imul(S$,IQ)|0;var DQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(DQ>>>26)|0,DQ&=67108863,L$=Math.imul(E0,o$),R$=Math.imul(E0,u$),R$=R$+Math.imul(b$,o$)|0,P$=Math.imul(b$,u$),L$=L$+Math.imul(V,s$)|0,R$=R$+Math.imul(V,t$)|0,R$=R$+Math.imul(h,s$)|0,P$=P$+Math.imul(h,t$)|0,L$=L$+Math.imul(c$,d)|0,R$=R$+Math.imul(c$,m$)|0,R$=R$+Math.imul(h$,d)|0,P$=P$+Math.imul(h$,m$)|0,L$=L$+Math.imul(w$,a$)|0,R$=R$+Math.imul(w$,e$)|0,R$=R$+Math.imul(p$,a$)|0,P$=P$+Math.imul(p$,e$)|0,L$=L$+Math.imul(B$,i$)|0,R$=R$+Math.imul(B$,$Q)|0,R$=R$+Math.imul(H0,i$)|0,P$=P$+Math.imul(H0,$Q)|0,L$=L$+Math.imul(x$,YQ)|0,R$=R$+Math.imul(x$,X)|0,R$=R$+Math.imul(G,YQ)|0,P$=P$+Math.imul(G,X)|0,L$=L$+Math.imul(g$,ZQ)|0,R$=R$+Math.imul(g$,D0)|0,R$=R$+Math.imul(_$,ZQ)|0,P$=P$+Math.imul(_$,D0)|0,L$=L$+Math.imul(q$,VQ)|0,R$=R$+Math.imul(q$,UQ)|0,R$=R$+Math.imul(j$,VQ)|0,P$=P$+Math.imul(j$,UQ)|0,L$=L$+Math.imul(c,KQ)|0,R$=R$+Math.imul(c,IQ)|0,R$=R$+Math.imul(v$,KQ)|0,P$=P$+Math.imul(v$,IQ)|0,L$=L$+Math.imul(M$,K)|0,R$=R$+Math.imul(M$,l)|0,R$=R$+Math.imul(S$,K)|0,P$=P$+Math.imul(S$,l)|0;var I=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(I>>>26)|0,I&=67108863,L$=Math.imul(E0,s$),R$=Math.imul(E0,t$),R$=R$+Math.imul(b$,s$)|0,P$=Math.imul(b$,t$),L$=L$+Math.imul(V,d)|0,R$=R$+Math.imul(V,m$)|0,R$=R$+Math.imul(h,d)|0,P$=P$+Math.imul(h,m$)|0,L$=L$+Math.imul(c$,a$)|0,R$=R$+Math.imul(c$,e$)|0,R$=R$+Math.imul(h$,a$)|0,P$=P$+Math.imul(h$,e$)|0,L$=L$+Math.imul(w$,i$)|0,R$=R$+Math.imul(w$,$Q)|0,R$=R$+Math.imul(p$,i$)|0,P$=P$+Math.imul(p$,$Q)|0,L$=L$+Math.imul(B$,YQ)|0,R$=R$+Math.imul(B$,X)|0,R$=R$+Math.imul(H0,YQ)|0,P$=P$+Math.imul(H0,X)|0,L$=L$+Math.imul(x$,ZQ)|0,R$=R$+Math.imul(x$,D0)|0,R$=R$+Math.imul(G,ZQ)|0,P$=P$+Math.imul(G,D0)|0,L$=L$+Math.imul(g$,VQ)|0,R$=R$+Math.imul(g$,UQ)|0,R$=R$+Math.imul(_$,VQ)|0,P$=P$+Math.imul(_$,UQ)|0,L$=L$+Math.imul(q$,KQ)|0,R$=R$+Math.imul(q$,IQ)|0,R$=R$+Math.imul(j$,KQ)|0,P$=P$+Math.imul(j$,IQ)|0,L$=L$+Math.imul(c,K)|0,R$=R$+Math.imul(c,l)|0,R$=R$+Math.imul(v$,K)|0,P$=P$+Math.imul(v$,l)|0;var o=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(o>>>26)|0,o&=67108863,L$=Math.imul(E0,d),R$=Math.imul(E0,m$),R$=R$+Math.imul(b$,d)|0,P$=Math.imul(b$,m$),L$=L$+Math.imul(V,a$)|0,R$=R$+Math.imul(V,e$)|0,R$=R$+Math.imul(h,a$)|0,P$=P$+Math.imul(h,e$)|0,L$=L$+Math.imul(c$,i$)|0,R$=R$+Math.imul(c$,$Q)|0,R$=R$+Math.imul(h$,i$)|0,P$=P$+Math.imul(h$,$Q)|0,L$=L$+Math.imul(w$,YQ)|0,R$=R$+Math.imul(w$,X)|0,R$=R$+Math.imul(p$,YQ)|0,P$=P$+Math.imul(p$,X)|0,L$=L$+Math.imul(B$,ZQ)|0,R$=R$+Math.imul(B$,D0)|0,R$=R$+Math.imul(H0,ZQ)|0,P$=P$+Math.imul(H0,D0)|0,L$=L$+Math.imul(x$,VQ)|0,R$=R$+Math.imul(x$,UQ)|0,R$=R$+Math.imul(G,VQ)|0,P$=P$+Math.imul(G,UQ)|0,L$=L$+Math.imul(g$,KQ)|0,R$=R$+Math.imul(g$,IQ)|0,R$=R$+Math.imul(_$,KQ)|0,P$=P$+Math.imul(_$,IQ)|0,L$=L$+Math.imul(q$,K)|0,R$=R$+Math.imul(q$,l)|0,R$=R$+Math.imul(j$,K)|0,P$=P$+Math.imul(j$,l)|0;var CQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(CQ>>>26)|0,CQ&=67108863,L$=Math.imul(E0,a$),R$=Math.imul(E0,e$),R$=R$+Math.imul(b$,a$)|0,P$=Math.imul(b$,e$),L$=L$+Math.imul(V,i$)|0,R$=R$+Math.imul(V,$Q)|0,R$=R$+Math.imul(h,i$)|0,P$=P$+Math.imul(h,$Q)|0,L$=L$+Math.imul(c$,YQ)|0,R$=R$+Math.imul(c$,X)|0,R$=R$+Math.imul(h$,YQ)|0,P$=P$+Math.imul(h$,X)|0,L$=L$+Math.imul(w$,ZQ)|0,R$=R$+Math.imul(w$,D0)|0,R$=R$+Math.imul(p$,ZQ)|0,P$=P$+Math.imul(p$,D0)|0,L$=L$+Math.imul(B$,VQ)|0,R$=R$+Math.imul(B$,UQ)|0,R$=R$+Math.imul(H0,VQ)|0,P$=P$+Math.imul(H0,UQ)|0,L$=L$+Math.imul(x$,KQ)|0,R$=R$+Math.imul(x$,IQ)|0,R$=R$+Math.imul(G,KQ)|0,P$=P$+Math.imul(G,IQ)|0,L$=L$+Math.imul(g$,K)|0,R$=R$+Math.imul(g$,l)|0,R$=R$+Math.imul(_$,K)|0,P$=P$+Math.imul(_$,l)|0;var L0=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(L0>>>26)|0,L0&=67108863,L$=Math.imul(E0,i$),R$=Math.imul(E0,$Q),R$=R$+Math.imul(b$,i$)|0,P$=Math.imul(b$,$Q),L$=L$+Math.imul(V,YQ)|0,R$=R$+Math.imul(V,X)|0,R$=R$+Math.imul(h,YQ)|0,P$=P$+Math.imul(h,X)|0,L$=L$+Math.imul(c$,ZQ)|0,R$=R$+Math.imul(c$,D0)|0,R$=R$+Math.imul(h$,ZQ)|0,P$=P$+Math.imul(h$,D0)|0,L$=L$+Math.imul(w$,VQ)|0,R$=R$+Math.imul(w$,UQ)|0,R$=R$+Math.imul(p$,VQ)|0,P$=P$+Math.imul(p$,UQ)|0,L$=L$+Math.imul(B$,KQ)|0,R$=R$+Math.imul(B$,IQ)|0,R$=R$+Math.imul(H0,KQ)|0,P$=P$+Math.imul(H0,IQ)|0,L$=L$+Math.imul(x$,K)|0,R$=R$+Math.imul(x$,l)|0,R$=R$+Math.imul(G,K)|0,P$=P$+Math.imul(G,l)|0;var LQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(LQ>>>26)|0,LQ&=67108863,L$=Math.imul(E0,YQ),R$=Math.imul(E0,X),R$=R$+Math.imul(b$,YQ)|0,P$=Math.imul(b$,X),L$=L$+Math.imul(V,ZQ)|0,R$=R$+Math.imul(V,D0)|0,R$=R$+Math.imul(h,ZQ)|0,P$=P$+Math.imul(h,D0)|0,L$=L$+Math.imul(c$,VQ)|0,R$=R$+Math.imul(c$,UQ)|0,R$=R$+Math.imul(h$,VQ)|0,P$=P$+Math.imul(h$,UQ)|0,L$=L$+Math.imul(w$,KQ)|0,R$=R$+Math.imul(w$,IQ)|0,R$=R$+Math.imul(p$,KQ)|0,P$=P$+Math.imul(p$,IQ)|0,L$=L$+Math.imul(B$,K)|0,R$=R$+Math.imul(B$,l)|0,R$=R$+Math.imul(H0,K)|0,P$=P$+Math.imul(H0,l)|0;var RQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(RQ>>>26)|0,RQ&=67108863,L$=Math.imul(E0,ZQ),R$=Math.imul(E0,D0),R$=R$+Math.imul(b$,ZQ)|0,P$=Math.imul(b$,D0),L$=L$+Math.imul(V,VQ)|0,R$=R$+Math.imul(V,UQ)|0,R$=R$+Math.imul(h,VQ)|0,P$=P$+Math.imul(h,UQ)|0,L$=L$+Math.imul(c$,KQ)|0,R$=R$+Math.imul(c$,IQ)|0,R$=R$+Math.imul(h$,KQ)|0,P$=P$+Math.imul(h$,IQ)|0,L$=L$+Math.imul(w$,K)|0,R$=R$+Math.imul(w$,l)|0,R$=R$+Math.imul(p$,K)|0,P$=P$+Math.imul(p$,l)|0;var PQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(PQ>>>26)|0,PQ&=67108863,L$=Math.imul(E0,VQ),R$=Math.imul(E0,UQ),R$=R$+Math.imul(b$,VQ)|0,P$=Math.imul(b$,UQ),L$=L$+Math.imul(V,KQ)|0,R$=R$+Math.imul(V,IQ)|0,R$=R$+Math.imul(h,KQ)|0,P$=P$+Math.imul(h,IQ)|0,L$=L$+Math.imul(c$,K)|0,R$=R$+Math.imul(c$,l)|0,R$=R$+Math.imul(h$,K)|0,P$=P$+Math.imul(h$,l)|0;var zQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(zQ>>>26)|0,zQ&=67108863,L$=Math.imul(E0,KQ),R$=Math.imul(E0,IQ),R$=R$+Math.imul(b$,KQ)|0,P$=Math.imul(b$,IQ),L$=L$+Math.imul(V,K)|0,R$=R$+Math.imul(V,l)|0,R$=R$+Math.imul(h,K)|0,P$=P$+Math.imul(h,l)|0;var MQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(MQ>>>26)|0,MQ&=67108863,L$=Math.imul(E0,K),R$=Math.imul(E0,l),R$=R$+Math.imul(b$,K)|0,P$=Math.imul(b$,l);var SQ=(C$+L$|0)+((R$&8191)<<13)|0;return C$=(P$+(R$>>>13)|0)+(SQ>>>26)|0,SQ&=67108863,F0[0]=JQ,F0[1]=C0,F0[2]=FQ,F0[3]=AQ,F0[4]=HQ,F0[5]=WQ,F0[6]=EQ,F0[7]=TQ,F0[8]=DQ,F0[9]=I,F0[10]=o,F0[11]=CQ,F0[12]=L0,F0[13]=LQ,F0[14]=RQ,F0[15]=PQ,F0[16]=zQ,F0[17]=MQ,F0[18]=SQ,C$!==0&&(F0[19]=C$,Y.length++),Y};Math.imul||(X$=U$);function K$(E$,T$,Y){Y.negative=T$.negative^E$.negative,Y.length=E$.length+T$.length;for(var f=0,D$=0,F0=0;F0>>26)|0,D$+=C$>>>26,C$&=67108863}Y.words[F0]=L$,f=C$,C$=D$}return f!==0?Y.words[F0]=f:Y.length--,Y.strip()}function I$(E$,T$,Y){var f=new Q;return f.mulp(E$,T$,Y)}$$.prototype.mulTo=function(E$,T$){var Y,f=this.length+E$.length;return this.length===10&&E$.length===10?Y=X$(this,E$,T$):f<63?Y=U$(this,E$,T$):f<1024?Y=K$(this,E$,T$):Y=I$(this,E$,T$),Y};function Q(E$,T$){this.x=E$,this.y=T$}Q.prototype.makeRBT=function(E$){for(var T$=new Array(E$),Y=$$.prototype._countBits(E$)-1,f=0;f>=1;return f},Q.prototype.permute=function(E$,T$,Y,f,D$,F0){for(var C$=0;C$>>1)D$++;return 1<>>13,Y[2*F0+1]=D$&8191,D$=D$>>>13;for(F0=2*T$;F0>=26,T$+=f/67108864|0,T$+=D$>>>26,this.words[Y]=D$&67108863}return T$!==0&&(this.words[Y]=T$,this.length++),this},$$.prototype.muln=function(E$){return this.clone().imuln(E$)},$$.prototype.sqr=function(){return this.mul(this)},$$.prototype.isqr=function(){return this.imul(this.clone())},$$.prototype.pow=function(E$){var T$=V$(E$);if(T$.length===0)return new $$(1);for(var Y=this,f=0;f=0);var T$=E$%26,Y=(E$-T$)/26,f=67108863>>>26-T$<<26-T$,D$;if(T$!==0){var F0=0;for(D$=0;D$>>26-T$}F0&&(this.words[D$]=F0,this.length++)}if(Y!==0){for(D$=this.length-1;D$>=0;D$--)this.words[D$+Y]=this.words[D$];for(D$=0;D$=0);var f;T$?f=(T$-T$%26)/26:f=0;var D$=E$%26,F0=Math.min((E$-D$)/26,this.length),C$=67108863^67108863>>>D$<F0)for(this.length-=F0,R$=0;R$=0&&(P$!==0||R$>=f);R$--){var z$=this.words[R$]|0;this.words[R$]=P$<<26-D$|z$>>>D$,P$=z$&C$}return L$&&P$!==0&&(L$.words[L$.length++]=P$),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},$$.prototype.ishrn=function(E$,T$,Y){return r0(this.negative===0),this.iushrn(E$,T$,Y)},$$.prototype.shln=function(E$){return this.clone().ishln(E$)},$$.prototype.ushln=function(E$){return this.clone().iushln(E$)},$$.prototype.shrn=function(E$){return this.clone().ishrn(E$)},$$.prototype.ushrn=function(E$){return this.clone().iushrn(E$)},$$.prototype.testn=function(E$){r0(typeof E$=="number"&&E$>=0);var T$=E$%26,Y=(E$-T$)/26,f=1<=0);var T$=E$%26,Y=(E$-T$)/26;if(r0(this.negative===0,"imaskn works only with positive numbers"),this.length<=Y)return this;if(T$!==0&&Y++,this.length=Math.min(Y,this.length),T$!==0){var f=67108863^67108863>>>T$<=67108864;T$++)this.words[T$]-=67108864,T$===this.length-1?this.words[T$+1]=1:this.words[T$+1]++;return this.length=Math.max(this.length,T$+1),this},$$.prototype.isubn=function(E$){if(r0(typeof E$=="number"),r0(E$<67108864),E$<0)return this.iaddn(-E$);if(this.negative!==0)return this.negative=0,this.iaddn(E$),this.negative=1,this;if(this.words[0]-=E$,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var T$=0;T$>26)-(L$/67108864|0),this.words[D$+Y]=F0&67108863}for(;D$>26,this.words[D$+Y]=F0&67108863;if(C$===0)return this.strip();for(r0(C$===-1),C$=0,D$=0;D$>26,this.words[D$]=F0&67108863;return this.negative=1,this.strip()},$$.prototype._wordDiv=function(E$,T$){var Y=this.length-E$.length,f=this.clone(),D$=E$,F0=D$.words[D$.length-1]|0,C$=this._countBits(F0);Y=26-C$,Y!==0&&(D$=D$.ushln(Y),f.iushln(Y),F0=D$.words[D$.length-1]|0);var L$=f.length-D$.length,R$;if(T$!=="mod"){R$=new $$(null),R$.length=L$+1,R$.words=new Array(R$.length);for(var P$=0;P$=0;M$--){var S$=(f.words[D$.length+M$]|0)*67108864+(f.words[D$.length+M$-1]|0);for(S$=Math.min(S$/F0|0,67108863),f._ishlnsubmul(D$,S$,M$);f.negative!==0;)S$--,f.negative=0,f._ishlnsubmul(D$,1,M$),f.isZero()||(f.negative^=1);R$&&(R$.words[M$]=S$)}return R$&&R$.strip(),f.strip(),T$!=="div"&&Y!==0&&f.iushrn(Y),{div:R$||null,mod:f}},$$.prototype.divmod=function(E$,T$,Y){if(r0(!E$.isZero()),this.isZero())return{div:new $$(0),mod:new $$(0)};var f,D$,F0;return this.negative!==0&&E$.negative===0?(F0=this.neg().divmod(E$,T$),T$!=="mod"&&(f=F0.div.neg()),T$!=="div"&&(D$=F0.mod.neg(),Y&&D$.negative!==0&&D$.iadd(E$)),{div:f,mod:D$}):this.negative===0&&E$.negative!==0?(F0=this.divmod(E$.neg(),T$),T$!=="mod"&&(f=F0.div.neg()),{div:f,mod:F0.mod}):(this.negative&E$.negative)!==0?(F0=this.neg().divmod(E$.neg(),T$),T$!=="div"&&(D$=F0.mod.neg(),Y&&D$.negative!==0&&D$.isub(E$)),{div:F0.div,mod:D$}):E$.length>this.length||this.cmp(E$)<0?{div:new $$(0),mod:this}:E$.length===1?T$==="div"?{div:this.divn(E$.words[0]),mod:null}:T$==="mod"?{div:null,mod:new $$(this.modn(E$.words[0]))}:{div:this.divn(E$.words[0]),mod:new $$(this.modn(E$.words[0]))}:this._wordDiv(E$,T$)},$$.prototype.div=function(E$){return this.divmod(E$,"div",!1).div},$$.prototype.mod=function(E$){return this.divmod(E$,"mod",!1).mod},$$.prototype.umod=function(E$){return this.divmod(E$,"mod",!0).mod},$$.prototype.divRound=function(E$){var T$=this.divmod(E$);if(T$.mod.isZero())return T$.div;var Y=T$.div.negative!==0?T$.mod.isub(E$):T$.mod,f=E$.ushrn(1),D$=E$.andln(1),F0=Y.cmp(f);return F0<0||D$===1&&F0===0?T$.div:T$.div.negative!==0?T$.div.isubn(1):T$.div.iaddn(1)},$$.prototype.modn=function(E$){r0(E$<=67108863);for(var T$=(1<<26)%E$,Y=0,f=this.length-1;f>=0;f--)Y=(T$*Y+(this.words[f]|0))%E$;return Y},$$.prototype.idivn=function(E$){r0(E$<=67108863);for(var T$=0,Y=this.length-1;Y>=0;Y--){var f=(this.words[Y]|0)+T$*67108864;this.words[Y]=f/E$|0,T$=f%E$}return this.strip()},$$.prototype.divn=function(E$){return this.clone().idivn(E$)},$$.prototype.egcd=function(E$){r0(E$.negative===0),r0(!E$.isZero());var T$=this,Y=E$.clone();T$.negative!==0?T$=T$.umod(E$):T$=T$.clone();for(var f=new $$(1),D$=new $$(0),F0=new $$(0),C$=new $$(1),L$=0;T$.isEven()&&Y.isEven();)T$.iushrn(1),Y.iushrn(1),++L$;for(var R$=Y.clone(),P$=T$.clone();!T$.isZero();){for(var z$=0,M$=1;(T$.words[0]&M$)===0&&z$<26;++z$,M$<<=1);if(z$>0)for(T$.iushrn(z$);z$-- >0;)(f.isOdd()||D$.isOdd())&&(f.iadd(R$),D$.isub(P$)),f.iushrn(1),D$.iushrn(1);for(var S$=0,Z=1;(Y.words[0]&Z)===0&&S$<26;++S$,Z<<=1);if(S$>0)for(Y.iushrn(S$);S$-- >0;)(F0.isOdd()||C$.isOdd())&&(F0.iadd(R$),C$.isub(P$)),F0.iushrn(1),C$.iushrn(1);T$.cmp(Y)>=0?(T$.isub(Y),f.isub(F0),D$.isub(C$)):(Y.isub(T$),F0.isub(f),C$.isub(D$))}return{a:F0,b:C$,gcd:Y.iushln(L$)}},$$.prototype._invmp=function(E$){r0(E$.negative===0),r0(!E$.isZero());var T$=this,Y=E$.clone();T$.negative!==0?T$=T$.umod(E$):T$=T$.clone();for(var f=new $$(1),D$=new $$(0),F0=Y.clone();T$.cmpn(1)>0&&Y.cmpn(1)>0;){for(var C$=0,L$=1;(T$.words[0]&L$)===0&&C$<26;++C$,L$<<=1);if(C$>0)for(T$.iushrn(C$);C$-- >0;)f.isOdd()&&f.iadd(F0),f.iushrn(1);for(var R$=0,P$=1;(Y.words[0]&P$)===0&&R$<26;++R$,P$<<=1);if(R$>0)for(Y.iushrn(R$);R$-- >0;)D$.isOdd()&&D$.iadd(F0),D$.iushrn(1);T$.cmp(Y)>=0?(T$.isub(Y),f.isub(D$)):(Y.isub(T$),D$.isub(f))}var z$;return T$.cmpn(1)===0?z$=f:z$=D$,z$.cmpn(0)<0&&z$.iadd(E$),z$},$$.prototype.gcd=function(E$){if(this.isZero())return E$.abs();if(E$.isZero())return this.abs();var T$=this.clone(),Y=E$.clone();T$.negative=0,Y.negative=0;for(var f=0;T$.isEven()&&Y.isEven();f++)T$.iushrn(1),Y.iushrn(1);do{for(;T$.isEven();)T$.iushrn(1);for(;Y.isEven();)Y.iushrn(1);var D$=T$.cmp(Y);if(D$<0){var F0=T$;T$=Y,Y=F0}else if(D$===0||Y.cmpn(1)===0)break;T$.isub(Y)}while(!0);return Y.iushln(f)},$$.prototype.invm=function(E$){return this.egcd(E$).a.umod(E$)},$$.prototype.isEven=function(){return(this.words[0]&1)===0},$$.prototype.isOdd=function(){return(this.words[0]&1)===1},$$.prototype.andln=function(E$){return this.words[0]&E$},$$.prototype.bincn=function(E$){r0(typeof E$=="number");var T$=E$%26,Y=(E$-T$)/26,f=1<>>26,C$&=67108863,this.words[F0]=C$}return D$!==0&&(this.words[F0]=D$,this.length++),this},$$.prototype.isZero=function(){return this.length===1&&this.words[0]===0},$$.prototype.cmpn=function(E$){var T$=E$<0;if(this.negative!==0&&!T$)return-1;if(this.negative===0&&T$)return 1;this.strip();var Y;if(this.length>1)Y=1;else{T$&&(E$=-E$),r0(E$<=67108863,"Number is too big");var f=this.words[0]|0;Y=f===E$?0:fE$.length)return 1;if(this.length=0;Y--){var f=this.words[Y]|0,D$=E$.words[Y]|0;if(f!==D$){fD$&&(T$=1);break}}return T$},$$.prototype.gtn=function(E$){return this.cmpn(E$)===1},$$.prototype.gt=function(E$){return this.cmp(E$)===1},$$.prototype.gten=function(E$){return this.cmpn(E$)>=0},$$.prototype.gte=function(E$){return this.cmp(E$)>=0},$$.prototype.ltn=function(E$){return this.cmpn(E$)===-1},$$.prototype.lt=function(E$){return this.cmp(E$)===-1},$$.prototype.lten=function(E$){return this.cmpn(E$)<=0},$$.prototype.lte=function(E$){return this.cmp(E$)<=0},$$.prototype.eqn=function(E$){return this.cmpn(E$)===0},$$.prototype.eq=function(E$){return this.cmp(E$)===0},$$.red=function(E$){return new H$(E$)},$$.prototype.toRed=function(E$){return r0(!this.red,"Already a number in reduction context"),r0(this.negative===0,"red works only with positives"),E$.convertTo(this)._forceRed(E$)},$$.prototype.fromRed=function(){return r0(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},$$.prototype._forceRed=function(E$){return this.red=E$,this},$$.prototype.forceRed=function(E$){return r0(!this.red,"Already a number in reduction context"),this._forceRed(E$)},$$.prototype.redAdd=function(E$){return r0(this.red,"redAdd works only with red numbers"),this.red.add(this,E$)},$$.prototype.redIAdd=function(E$){return r0(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,E$)},$$.prototype.redSub=function(E$){return r0(this.red,"redSub works only with red numbers"),this.red.sub(this,E$)},$$.prototype.redISub=function(E$){return r0(this.red,"redISub works only with red numbers"),this.red.isub(this,E$)},$$.prototype.redShl=function(E$){return r0(this.red,"redShl works only with red numbers"),this.red.shl(this,E$)},$$.prototype.redMul=function(E$){return r0(this.red,"redMul works only with red numbers"),this.red._verify2(this,E$),this.red.mul(this,E$)},$$.prototype.redIMul=function(E$){return r0(this.red,"redMul works only with red numbers"),this.red._verify2(this,E$),this.red.imul(this,E$)},$$.prototype.redSqr=function(){return r0(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},$$.prototype.redISqr=function(){return r0(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},$$.prototype.redSqrt=function(){return r0(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},$$.prototype.redInvm=function(){return r0(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},$$.prototype.redNeg=function(){return r0(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},$$.prototype.redPow=function(E$){return r0(this.red&&!E$.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,E$)};var x={k256:null,p224:null,p192:null,p25519:null};function O$(E$,T$){this.name=E$,this.p=new $$(T$,16),this.n=this.p.bitLength(),this.k=new $$(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}O$.prototype._tmp=function(){var E$=new $$(null);return E$.words=new Array(Math.ceil(this.n/13)),E$},O$.prototype.ireduce=function(E$){var T$=E$,Y;do this.split(T$,this.tmp),T$=this.imulK(T$),T$=T$.iadd(this.tmp),Y=T$.bitLength();while(Y>this.n);var f=Y0?T$.isub(this.p):T$.strip!==void 0?T$.strip():T$._strip(),T$},O$.prototype.split=function(E$,T$){E$.iushrn(this.n,0,T$)},O$.prototype.imulK=function(E$){return E$.imul(this.k)};function J0(){O$.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i0(J0,O$),J0.prototype.split=function(E$,T$){for(var Y=4194303,f=Math.min(E$.length,9),D$=0;D$>>22,F0=C$}F0>>>=22,E$.words[D$-10]=F0,F0===0&&E$.length>10?E$.length-=10:E$.length-=9},J0.prototype.imulK=function(E$){E$.words[E$.length]=0,E$.words[E$.length+1]=0,E$.length+=2;for(var T$=0,Y=0;Y>>=26,E$.words[Y]=D$,T$=f}return T$!==0&&(E$.words[E$.length++]=T$),E$},$$._prime=function(E$){if(x[E$])return x[E$];var T$;if(E$==="k256")T$=new J0;else if(E$==="p224")T$=new J$;else if(E$==="p192")T$=new F$;else if(E$==="p25519")T$=new A$;else throw new Error("Unknown prime "+E$);return x[E$]=T$,T$};function H$(E$){if(typeof E$=="string"){var T$=$$._prime(E$);this.m=T$.p,this.prime=T$}else r0(E$.gtn(1),"modulus must be greater than 1"),this.m=E$,this.prime=null}H$.prototype._verify1=function(E$){r0(E$.negative===0,"red works only with positives"),r0(E$.red,"red works only with red numbers")},H$.prototype._verify2=function(E$,T$){r0((E$.negative|T$.negative)===0,"red works only with positives"),r0(E$.red&&E$.red===T$.red,"red works only with red numbers")},H$.prototype.imod=function(E$){return this.prime?this.prime.ireduce(E$)._forceRed(this):E$.umod(this.m)._forceRed(this)},H$.prototype.neg=function(E$){return E$.isZero()?E$.clone():this.m.sub(E$)._forceRed(this)},H$.prototype.add=function(E$,T$){this._verify2(E$,T$);var Y=E$.add(T$);return Y.cmp(this.m)>=0&&Y.isub(this.m),Y._forceRed(this)},H$.prototype.iadd=function(E$,T$){this._verify2(E$,T$);var Y=E$.iadd(T$);return Y.cmp(this.m)>=0&&Y.isub(this.m),Y},H$.prototype.sub=function(E$,T$){this._verify2(E$,T$);var Y=E$.sub(T$);return Y.cmpn(0)<0&&Y.iadd(this.m),Y._forceRed(this)},H$.prototype.isub=function(E$,T$){this._verify2(E$,T$);var Y=E$.isub(T$);return Y.cmpn(0)<0&&Y.iadd(this.m),Y},H$.prototype.shl=function(E$,T$){return this._verify1(E$),this.imod(E$.ushln(T$))},H$.prototype.imul=function(E$,T$){return this._verify2(E$,T$),this.imod(E$.imul(T$))},H$.prototype.mul=function(E$,T$){return this._verify2(E$,T$),this.imod(E$.mul(T$))},H$.prototype.isqr=function(E$){return this.imul(E$,E$.clone())},H$.prototype.sqr=function(E$){return this.mul(E$,E$)},H$.prototype.sqrt=function(E$){if(E$.isZero())return E$.clone();var T$=this.m.andln(3);if(r0(T$%2===1),T$===3){var Y=this.m.add(new $$(1)).iushrn(2);return this.pow(E$,Y)}for(var f=this.m.subn(1),D$=0;!f.isZero()&&f.andln(1)===0;)D$++,f.iushrn(1);r0(!f.isZero());var F0=new $$(1).toRed(this),C$=F0.redNeg(),L$=this.m.subn(1).iushrn(1),R$=this.m.bitLength();for(R$=new $$(2*R$*R$).toRed(this);this.pow(R$,L$).cmp(C$)!==0;)R$.redIAdd(C$);for(var P$=this.pow(R$,f),z$=this.pow(E$,f.addn(1).iushrn(1)),M$=this.pow(E$,f),S$=D$;M$.cmp(F0)!==0;){for(var Z=M$,c=0;Z.cmp(F0)!==0;c++)Z=Z.redSqr();r0(c=0;D$--){for(var P$=T$.words[D$],z$=R$-1;z$>=0;z$--){var M$=P$>>z$&1;if(F0!==f[0]&&(F0=this.sqr(F0)),M$===0&&C$===0){L$=0;continue}C$<<=1,C$|=M$,L$++,!(L$!==Y&&(D$!==0||z$!==0))&&(F0=this.mul(F0,f[C$]),L$=0,C$=0)}R$=26}return F0},H$.prototype.convertTo=function(E$){var T$=E$.umod(this.m);return T$===E$?T$.clone():T$},H$.prototype.convertFrom=function(E$){var T$=E$.clone();return T$.red=null,T$},$$.mont=function(E$){return new W$(E$)};function W$(E$){H$.call(this,E$),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new $$(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)}i0(W$,H$),W$.prototype.convertTo=function(E$){return this.imod(E$.ushln(this.shift))},W$.prototype.convertFrom=function(E$){var T$=this.imod(E$.mul(this.rinv));return T$.red=null,T$},W$.prototype.imul=function(E$,T$){if(E$.isZero()||T$.isZero())return E$.words[0]=0,E$.length=1,E$;var Y=E$.imul(T$),f=Y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),D$=Y.isub(f).iushrn(this.shift),F0=D$;return D$.cmp(this.m)>=0?F0=D$.isub(this.m):D$.cmpn(0)<0&&(F0=D$.iadd(this.m)),F0._forceRed(this)},W$.prototype.mul=function(E$,T$){if(E$.isZero()||T$.isZero())return new $$(0)._forceRed(this);var Y=E$.mul(T$),f=Y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),D$=Y.isub(f).iushrn(this.shift),F0=D$;return D$.cmp(this.m)>=0?F0=D$.isub(this.m):D$.cmpn(0)<0&&(F0=D$.iadd(this.m)),F0._forceRed(this)},W$.prototype.invm=function(E$){var T$=this.imod(E$._invmp(this.m).mul(this.r2));return T$._forceRed(this)}})(typeof m0>"u"||m0,t0)}}),zY=pQ({"(disabled):node_modules/crypto-browserify/index.js"(){}}),T=pQ({"node_modules/brorand/index.js"(t0,m0){var a0;m0.exports=function(r0){return a0||(a0=new e0(null)),a0.generate(r0)};function e0(r0){this.rand=r0}m0.exports.Rand=e0,e0.prototype.generate=function(r0){return this._rand(r0)},e0.prototype._rand=function(r0){var i0=new G0(r0);return qQ.getRandomValues(i0),i0}}}),t=pQ({"node_modules/miller-rabin/lib/mr.js"(t0,m0){var a0=PY(),e0=T();function r0(i0){this.rand=i0||new e0.Rand}m0.exports=r0,r0.create=function(i0){return new r0(i0)},r0.prototype._randbelow=function(i0){var $$=i0.bitLength(),Q$=Math.ceil($$/8);do var $=new a0(this.rand.generate(Q$));while($.cmp(i0)>=0);return $},r0.prototype._randrange=function(i0,$$){var Q$=$$.sub(i0);return i0.add(this._randbelow(Q$))},r0.prototype.test=function(i0,$$,Q$){var $=i0.bitLength(),N=a0.mont(i0),Y$=new a0(1).toRed(N);$$||($$=Math.max(1,$/48|0));for(var O0=i0.subn(1),Z$=0;!O0.testn(Z$);Z$++);for(var G$=i0.shrn(Z$),V$=O0.toRed(N),U$=!0;$$>0;$$--){var X$=this._randrange(new a0(2),O0);Q$&&Q$(X$);var K$=X$.toRed(N).redPow(G$);if(!(K$.cmp(Y$)===0||K$.cmp(V$)===0)){for(var I$=1;I$0;$$--){var V$=this._randrange(new a0(2),Y$),U$=i0.gcd(V$);if(U$.cmpn(1)!==0)return U$;var X$=V$.toRed($).redPow(Z$);if(!(X$.cmp(N)===0||X$.cmp(G$)===0)){for(var K$=1;K$J$;)A$.ishrn(1);if(A$.isEven()&&A$.iadd(Q$),A$.testn(1)||A$.iadd($),F$.cmp($)){if(!F$.cmp(N))for(;A$.mod(Z$).cmp(G$);)A$.iadd(X$)}else for(;A$.mod(r0).cmp(U$);)A$.iadd(X$);if(H$=A$.shrn(1),x(H$)&&x(A$)&&O$(H$)&&O$(A$)&&$$.test(H$)&&$$.test(A$))return A$}}}}),N0=pQ({"node_modules/diffie-hellman/lib/primes.json"(t0,m0){m0.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}}}),MY=pQ({"node_modules/diffie-hellman/lib/dh.js"(t0,m0){var a0=RY(),e0=t(),r0=new e0,i0=new a0(24),$$=new a0(11),Q$=new a0(10),$=new a0(3),N=new a0(7),Y$=_0(),O0=hQ();m0.exports=X$;function Z$(I$,Q){return Q=Q||"utf8",G0.isBuffer(I$)||(I$=new G0(I$,Q)),this._pub=new a0(I$),this}function G$(I$,Q){return Q=Q||"utf8",G0.isBuffer(I$)||(I$=new G0(I$,Q)),this._priv=new a0(I$),this}var V$={};function U$(I$,Q){var x=Q.toString("hex"),O$=[x,I$.toString(16)].join("_");if(O$ in V$)return V$[O$];var J0=0;if(I$.isEven()||!Y$.simpleSieve||!Y$.fermatTest(I$)||!r0.test(I$))return J0+=1,x==="02"||x==="05"?J0+=8:J0+=4,V$[O$]=J0,J0;r0.test(I$.shrn(1))||(J0+=2);var J$;switch(x){case"02":I$.mod(i0).cmp($$)&&(J0+=8);break;case"05":J$=I$.mod(Q$),J$.cmp($)&&J$.cmp(N)&&(J0+=8);break;default:J0+=4}return V$[O$]=J0,J0}function X$(I$,Q,x){this.setGenerator(Q),this.__prime=new a0(I$),this._prime=a0.mont(this.__prime),this._primeLen=I$.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,x?(this.setPublicKey=Z$,this.setPrivateKey=G$):this._primeCode=8}Object.defineProperty(X$.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=U$(this.__prime,this.__gen)),this._primeCode}}),X$.prototype.generateKeys=function(){return this._priv||(this._priv=new a0(O0(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},X$.prototype.computeSecret=function(I$){I$=new a0(I$),I$=I$.toRed(this._prime);var Q=I$.redPow(this._priv).fromRed(),x=new G0(Q.toArray()),O$=this.getPrime();if(x.length0?f:D$},$$.min=function(f,D$){return f.cmp(D$)<0?f:D$},$$.prototype._init=function(f,D$,F0){if(typeof f=="number")return this._initNumber(f,D$,F0);if(typeof f=="object")return this._initArray(f,D$,F0);D$==="hex"&&(D$=16),r0(D$===(D$|0)&&D$>=2&&D$<=36),f=f.toString().replace(/\s+/g,"");var C$=0;f[0]==="-"&&(C$++,this.negative=1),C$=0;C$-=3)R$=f[C$]|f[C$-1]<<8|f[C$-2]<<16,this.words[L$]|=R$<>>26-P$&67108863,P$+=24,P$>=26&&(P$-=26,L$++);else if(F0==="le")for(C$=0,L$=0;C$>>26-P$&67108863,P$+=24,P$>=26&&(P$-=26,L$++);return this._strip()};function $(f,D$){var F0=f.charCodeAt(D$);if(F0>=48&&F0<=57)return F0-48;if(F0>=65&&F0<=70)return F0-55;if(F0>=97&&F0<=102)return F0-87;r0(!1,"Invalid character in "+f)}function N(f,D$,F0){var C$=$(f,F0);return F0-1>=D$&&(C$|=$(f,F0-1)<<4),C$}$$.prototype._parseHex=function(f,D$,F0){this.length=Math.ceil((f.length-D$)/6),this.words=new Array(this.length);for(var C$=0;C$=D$;C$-=2)P$=N(f,D$,C$)<=18?(L$-=18,R$+=1,this.words[R$]|=P$>>>26):L$+=8;else{var z$=f.length-D$;for(C$=z$%2===0?D$+1:D$;C$=18?(L$-=18,R$+=1,this.words[R$]|=P$>>>26):L$+=8}this._strip()};function Y$(f,D$,F0,C$){for(var L$=0,R$=0,P$=Math.min(f.length,F0),z$=D$;z$=49?R$=M$-49+10:M$>=17?R$=M$-17+10:R$=M$,r0(M$>=0&&R$1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},$$.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{$$.prototype[Symbol.for("nodejs.util.inspect.custom")]=Z$}catch{$$.prototype.inspect=Z$}else $$.prototype.inspect=Z$;function Z$(){return(this.red?""}var G$=["","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"],V$=[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],U$=[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];$$.prototype.toString=function(f,D$){f=f||10,D$=D$|0||1;var F0;if(f===16||f==="hex"){F0="";for(var C$=0,L$=0,R$=0;R$>>24-C$&16777215,C$+=2,C$>=26&&(C$-=26,R$--),L$!==0||R$!==this.length-1?F0=G$[6-z$.length]+z$+F0:F0=z$+F0}for(L$!==0&&(F0=L$.toString(16)+F0);F0.length%D$!==0;)F0="0"+F0;return this.negative!==0&&(F0="-"+F0),F0}if(f===(f|0)&&f>=2&&f<=36){var M$=V$[f],S$=U$[f];F0="";var Z=this.clone();for(Z.negative=0;!Z.isZero();){var c=Z.modrn(S$).toString(f);Z=Z.idivn(S$),Z.isZero()?F0=c+F0:F0=G$[M$-c.length]+c+F0}for(this.isZero()&&(F0="0"+F0);F0.length%D$!==0;)F0="0"+F0;return this.negative!==0&&(F0="-"+F0),F0}r0(!1,"Base should be between 2 and 36")},$$.prototype.toNumber=function(){var f=this.words[0];return this.length===2?f+=this.words[1]*67108864:this.length===3&&this.words[2]===1?f+=4503599627370496+this.words[1]*67108864:this.length>2&&r0(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-f:f},$$.prototype.toJSON=function(){return this.toString(16,2)},Q$&&($$.prototype.toBuffer=function(f,D$){return this.toArrayLike(Q$,f,D$)}),$$.prototype.toArray=function(f,D$){return this.toArrayLike(Array,f,D$)};var X$=function(f,D$){return f.allocUnsafe?f.allocUnsafe(D$):new f(D$)};$$.prototype.toArrayLike=function(f,D$,F0){this._strip();var C$=this.byteLength(),L$=F0||Math.max(1,C$);r0(C$<=L$,"byte array longer than desired length"),r0(L$>0,"Requested array length <= 0");var R$=X$(f,L$),P$=D$==="le"?"LE":"BE";return this["_toArrayLike"+P$](R$,C$),R$},$$.prototype._toArrayLikeLE=function(f,D$){for(var F0=0,C$=0,L$=0,R$=0;L$>8&255),F0>16&255),R$===6?(F0>24&255),C$=0,R$=0):(C$=P$>>>24,R$+=2)}if(F0=0&&(f[F0--]=P$>>8&255),F0>=0&&(f[F0--]=P$>>16&255),R$===6?(F0>=0&&(f[F0--]=P$>>24&255),C$=0,R$=0):(C$=P$>>>24,R$+=2)}if(F0>=0)for(f[F0--]=C$;F0>=0;)f[F0--]=0},Math.clz32?$$.prototype._countBits=function(f){return 32-Math.clz32(f)}:$$.prototype._countBits=function(f){var D$=f,F0=0;return D$>=4096&&(F0+=13,D$>>>=13),D$>=64&&(F0+=7,D$>>>=7),D$>=8&&(F0+=4,D$>>>=4),D$>=2&&(F0+=2,D$>>>=2),F0+D$},$$.prototype._zeroBits=function(f){if(f===0)return 26;var D$=f,F0=0;return(D$&8191)===0&&(F0+=13,D$>>>=13),(D$&127)===0&&(F0+=7,D$>>>=7),(D$&15)===0&&(F0+=4,D$>>>=4),(D$&3)===0&&(F0+=2,D$>>>=2),(D$&1)===0&&F0++,F0},$$.prototype.bitLength=function(){var f=this.words[this.length-1],D$=this._countBits(f);return(this.length-1)*26+D$};function K$(f){for(var D$=new Array(f.bitLength()),F0=0;F0>>L$&1}return D$}$$.prototype.zeroBits=function(){if(this.isZero())return 0;for(var f=0,D$=0;D$f.length?this.clone().ior(f):f.clone().ior(this)},$$.prototype.uor=function(f){return this.length>f.length?this.clone().iuor(f):f.clone().iuor(this)},$$.prototype.iuand=function(f){var D$;this.length>f.length?D$=f:D$=this;for(var F0=0;F0f.length?this.clone().iand(f):f.clone().iand(this)},$$.prototype.uand=function(f){return this.length>f.length?this.clone().iuand(f):f.clone().iuand(this)},$$.prototype.iuxor=function(f){var D$,F0;this.length>f.length?(D$=this,F0=f):(D$=f,F0=this);for(var C$=0;C$f.length?this.clone().ixor(f):f.clone().ixor(this)},$$.prototype.uxor=function(f){return this.length>f.length?this.clone().iuxor(f):f.clone().iuxor(this)},$$.prototype.inotn=function(f){r0(typeof f=="number"&&f>=0);var D$=Math.ceil(f/26)|0,F0=f%26;this._expand(D$),F0>0&&D$--;for(var C$=0;C$0&&(this.words[C$]=~this.words[C$]&67108863>>26-F0),this._strip()},$$.prototype.notn=function(f){return this.clone().inotn(f)},$$.prototype.setn=function(f,D$){r0(typeof f=="number"&&f>=0);var F0=f/26|0,C$=f%26;return this._expand(F0+1),D$?this.words[F0]=this.words[F0]|1<f.length?(F0=this,C$=f):(F0=f,C$=this);for(var L$=0,R$=0;R$>>26;for(;L$!==0&&R$>>26;if(this.length=F0.length,L$!==0)this.words[this.length]=L$,this.length++;else if(F0!==this)for(;R$f.length?this.clone().iadd(f):f.clone().iadd(this)},$$.prototype.isub=function(f){if(f.negative!==0){f.negative=0;var D$=this.iadd(f);return f.negative=1,D$._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(f),this.negative=1,this._normSign();var F0=this.cmp(f);if(F0===0)return this.negative=0,this.length=1,this.words[0]=0,this;var C$,L$;F0>0?(C$=this,L$=f):(C$=f,L$=this);for(var R$=0,P$=0;P$>26,this.words[P$]=D$&67108863;for(;R$!==0&&P$>26,this.words[P$]=D$&67108863;if(R$===0&&P$>>26,c=M$&67108863,v$=Math.min(S$,D$.length-1),A0=Math.max(0,S$-f.length+1);A0<=v$;A0++){var q$=S$-A0|0;L$=f.words[q$]|0,R$=D$.words[A0]|0,P$=L$*R$+c,Z+=P$/67108864|0,c=P$&67108863}F0.words[S$]=c|0,M$=Z|0}return M$!==0?F0.words[S$]=M$|0:F0.length--,F0._strip()}var Q=function(f,D$,F0){var C$=f.words,L$=D$.words,R$=F0.words,P$=0,z$,M$,S$,Z=C$[0]|0,c=Z&8191,v$=Z>>>13,A0=C$[1]|0,q$=A0&8191,j$=A0>>>13,k$=C$[2]|0,g$=k$&8191,_$=k$>>>13,N$=C$[3]|0,x$=N$&8191,G=N$>>>13,B=C$[4]|0,B$=B&8191,H0=B>>>13,y$=C$[5]|0,w$=y$&8191,p$=y$>>>13,f$=C$[6]|0,c$=f$&8191,h$=f$>>>13,d$=C$[7]|0,V=d$&8191,h=d$>>>13,W0=C$[8]|0,E0=W0&8191,b$=W0>>>13,l$=C$[9]|0,o$=l$&8191,u$=l$>>>13,n$=L$[0]|0,s$=n$&8191,t$=n$>>>13,U=L$[1]|0,d=U&8191,m$=U>>>13,T0=L$[2]|0,a$=T0&8191,e$=T0>>>13,r$=L$[3]|0,i$=r$&8191,$Q=r$>>>13,QQ=L$[4]|0,YQ=QQ&8191,X=QQ>>>13,b=L$[5]|0,ZQ=b&8191,D0=b>>>13,GQ=L$[6]|0,VQ=GQ&8191,UQ=GQ>>>13,XQ=L$[7]|0,KQ=XQ&8191,IQ=XQ>>>13,OQ=L$[8]|0,K=OQ&8191,l=OQ>>>13,JQ=L$[9]|0,C0=JQ&8191,FQ=JQ>>>13;F0.negative=f.negative^D$.negative,F0.length=19,z$=Math.imul(c,s$),M$=Math.imul(c,t$),M$=M$+Math.imul(v$,s$)|0,S$=Math.imul(v$,t$);var AQ=(P$+z$|0)+((M$&8191)<<13)|0;P$=(S$+(M$>>>13)|0)+(AQ>>>26)|0,AQ&=67108863,z$=Math.imul(q$,s$),M$=Math.imul(q$,t$),M$=M$+Math.imul(j$,s$)|0,S$=Math.imul(j$,t$),z$=z$+Math.imul(c,d)|0,M$=M$+Math.imul(c,m$)|0,M$=M$+Math.imul(v$,d)|0,S$=S$+Math.imul(v$,m$)|0;var HQ=(P$+z$|0)+((M$&8191)<<13)|0;P$=(S$+(M$>>>13)|0)+(HQ>>>26)|0,HQ&=67108863,z$=Math.imul(g$,s$),M$=Math.imul(g$,t$),M$=M$+Math.imul(_$,s$)|0,S$=Math.imul(_$,t$),z$=z$+Math.imul(q$,d)|0,M$=M$+Math.imul(q$,m$)|0,M$=M$+Math.imul(j$,d)|0,S$=S$+Math.imul(j$,m$)|0,z$=z$+Math.imul(c,a$)|0,M$=M$+Math.imul(c,e$)|0,M$=M$+Math.imul(v$,a$)|0,S$=S$+Math.imul(v$,e$)|0;var WQ=(P$+z$|0)+((M$&8191)<<13)|0;P$=(S$+(M$>>>13)|0)+(WQ>>>26)|0,WQ&=67108863,z$=Math.imul(x$,s$),M$=Math.imul(x$,t$),M$=M$+Math.imul(G,s$)|0,S$=Math.imul(G,t$),z$=z$+Math.imul(g$,d)|0,M$=M$+Math.imul(g$,m$)|0,M$=M$+Math.imul(_$,d)|0,S$=S$+Math.imul(_$,m$)|0,z$=z$+Math.imul(q$,a$)|0,M$=M$+Math.imul(q$,e$)|0,M$=M$+Math.imul(j$,a$)|0,S$=S$+Math.imul(j$,e$)|0,z$=z$+Math.imul(c,i$)|0,M$=M$+Math.imul(c,$Q)|0,M$=M$+Math.imul(v$,i$)|0,S$=S$+Math.imul(v$,$Q)|0;var EQ=(P$+z$|0)+((M$&8191)<<13)|0;P$=(S$+(M$>>>13)|0)+(EQ>>>26)|0,EQ&=67108863,z$=Math.imul(B$,s$),M$=Math.imul(B$,t$),M$=M$+Math.imul(H0,s$)|0,S$=Math.imul(H0,t$),z$=z$+Math.imul(x$,d)|0,M$=M$+Math.imul(x$,m$)|0,M$=M$+Math.imul(G,d)|0,S$=S$+Math.imul(G,m$)|0,z$=z$+Math.imul(g$,a$)|0,M$=M$+Math.imul(g$,e$)|0,M$=M$+Math.imul(_$,a$)|0,S$=S$+Math.imul(_$,e$)|0,z$=z$+Math.imul(q$,i$)|0,M$=M$+Math.imul(q$,$Q)|0,M$=M$+Math.imul(j$,i$)|0,S$=S$+Math.imul(j$,$Q)|0,z$=z$+Math.imul(c,YQ)|0,M$=M$+Math.imul(c,X)|0,M$=M$+Math.imul(v$,YQ)|0,S$=S$+Math.imul(v$,X)|0;var TQ=(P$+z$|0)+((M$&8191)<<13)|0;P$=(S$+(M$>>>13)|0)+(TQ>>>26)|0,TQ&=67108863,z$=Math.imul(w$,s$),M$=Math.imul(w$,t$),M$=M$+Math.imul(p$,s$)|0,S$=Math.imul(p$,t$),z$=z$+Math.imul(B$,d)|0,M$=M$+Math.imul(B$,m$)|0,M$=M$+Math.imul(H0,d)|0,S$=S$+Math.imul(H0,m$)|0,z$=z$+Math.imul(x$,a$)|0,M$=M$+Math.imul(x$,e$)|0,M$=M$+Math.imul(G,a$)|0,S$=S$+Math.imul(G,e$)|0,z$=z$+Math.imul(g$,i$)|0,M$=M$+Math.imul(g$,$Q)|0,M$=M$+Math.imul(_$,i$)|0,S$=S$+Math.imul(_$,$Q)|0,z$=z$+Math.imul(q$,YQ)|0,M$=M$+Math.imul(q$,X)|0,M$=M$+Math.imul(j$,YQ)|0,S$=S$+Math.imul(j$,X)|0,z$=z$+Math.imul(c,ZQ)|0,M$=M$+Math.imul(c,D0)|0,M$=M$+Math.imul(v$,ZQ)|0,S$=S$+Math.imul(v$,D0)|0;var DQ=(P$+z$|0)+((M$&8191)<<13)|0;P$=(S$+(M$>>>13)|0)+(DQ>>>26)|0,DQ&=67108863,z$=Math.imul(c$,s$),M$=Math.imul(c$,t$),M$=M$+Math.imul(h$,s$)|0,S$=Math.imul(h$,t$),z$=z$+Math.imul(w$,d)|0,M$=M$+Math.imul(w$,m$)|0,M$=M$+Math.imul(p$,d)|0,S$=S$+Math.imul(p$,m$)|0,z$=z$+Math.imul(B$,a$)|0,M$=M$+Math.imul(B$,e$)|0,M$=M$+Math.imul(H0,a$)|0,S$=S$+Math.imul(H0,e$)|0,z$=z$+Math.imul(x$,i$)|0,M$=M$+Math.imul(x$,$Q)|0,M$=M$+Math.imul(G,i$)|0,S$=S$+Math.imul(G,$Q)|0,z$=z$+Math.imul(g$,YQ)|0,M$=M$+Math.imul(g$,X)|0,M$=M$+Math.imul(_$,YQ)|0,S$=S$+Math.imul(_$,X)|0,z$=z$+Math.imul(q$,ZQ)|0,M$=M$+Math.imul(q$,D0)|0,M$=M$+Math.imul(j$,ZQ)|0,S$=S$+Math.imul(j$,D0)|0,z$=z$+Math.imul(c,VQ)|0,M$=M$+Math.imul(c,UQ)|0,M$=M$+Math.imul(v$,VQ)|0,S$=S$+Math.imul(v$,UQ)|0;var I=(P$+z$|0)+((M$&8191)<<13)|0;P$=(S$+(M$>>>13)|0)+(I>>>26)|0,I&=67108863,z$=Math.imul(V,s$),M$=Math.imul(V,t$),M$=M$+Math.imul(h,s$)|0,S$=Math.imul(h,t$),z$=z$+Math.imul(c$,d)|0,M$=M$+Math.imul(c$,m$)|0,M$=M$+Math.imul(h$,d)|0,S$=S$+Math.imul(h$,m$)|0,z$=z$+Math.imul(w$,a$)|0,M$=M$+Math.imul(w$,e$)|0,M$=M$+Math.imul(p$,a$)|0,S$=S$+Math.imul(p$,e$)|0,z$=z$+Math.imul(B$,i$)|0,M$=M$+Math.imul(B$,$Q)|0,M$=M$+Math.imul(H0,i$)|0,S$=S$+Math.imul(H0,$Q)|0,z$=z$+Math.imul(x$,YQ)|0,M$=M$+Math.imul(x$,X)|0,M$=M$+Math.imul(G,YQ)|0,S$=S$+Math.imul(G,X)|0,z$=z$+Math.imul(g$,ZQ)|0,M$=M$+Math.imul(g$,D0)|0,M$=M$+Math.imul(_$,ZQ)|0,S$=S$+Math.imul(_$,D0)|0,z$=z$+Math.imul(q$,VQ)|0,M$=M$+Math.imul(q$,UQ)|0,M$=M$+Math.imul(j$,VQ)|0,S$=S$+Math.imul(j$,UQ)|0,z$=z$+Math.imul(c,KQ)|0,M$=M$+Math.imul(c,IQ)|0,M$=M$+Math.imul(v$,KQ)|0,S$=S$+Math.imul(v$,IQ)|0;var o=(P$+z$|0)+((M$&8191)<<13)|0;P$=(S$+(M$>>>13)|0)+(o>>>26)|0,o&=67108863,z$=Math.imul(E0,s$),M$=Math.imul(E0,t$),M$=M$+Math.imul(b$,s$)|0,S$=Math.imul(b$,t$),z$=z$+Math.imul(V,d)|0,M$=M$+Math.imul(V,m$)|0,M$=M$+Math.imul(h,d)|0,S$=S$+Math.imul(h,m$)|0,z$=z$+Math.imul(c$,a$)|0,M$=M$+Math.imul(c$,e$)|0,M$=M$+Math.imul(h$,a$)|0,S$=S$+Math.imul(h$,e$)|0,z$=z$+Math.imul(w$,i$)|0,M$=M$+Math.imul(w$,$Q)|0,M$=M$+Math.imul(p$,i$)|0,S$=S$+Math.imul(p$,$Q)|0,z$=z$+Math.imul(B$,YQ)|0,M$=M$+Math.imul(B$,X)|0,M$=M$+Math.imul(H0,YQ)|0,S$=S$+Math.imul(H0,X)|0,z$=z$+Math.imul(x$,ZQ)|0,M$=M$+Math.imul(x$,D0)|0,M$=M$+Math.imul(G,ZQ)|0,S$=S$+Math.imul(G,D0)|0,z$=z$+Math.imul(g$,VQ)|0,M$=M$+Math.imul(g$,UQ)|0,M$=M$+Math.imul(_$,VQ)|0,S$=S$+Math.imul(_$,UQ)|0,z$=z$+Math.imul(q$,KQ)|0,M$=M$+Math.imul(q$,IQ)|0,M$=M$+Math.imul(j$,KQ)|0,S$=S$+Math.imul(j$,IQ)|0,z$=z$+Math.imul(c,K)|0,M$=M$+Math.imul(c,l)|0,M$=M$+Math.imul(v$,K)|0,S$=S$+Math.imul(v$,l)|0;var CQ=(P$+z$|0)+((M$&8191)<<13)|0;P$=(S$+(M$>>>13)|0)+(CQ>>>26)|0,CQ&=67108863,z$=Math.imul(o$,s$),M$=Math.imul(o$,t$),M$=M$+Math.imul(u$,s$)|0,S$=Math.imul(u$,t$),z$=z$+Math.imul(E0,d)|0,M$=M$+Math.imul(E0,m$)|0,M$=M$+Math.imul(b$,d)|0,S$=S$+Math.imul(b$,m$)|0,z$=z$+Math.imul(V,a$)|0,M$=M$+Math.imul(V,e$)|0,M$=M$+Math.imul(h,a$)|0,S$=S$+Math.imul(h,e$)|0,z$=z$+Math.imul(c$,i$)|0,M$=M$+Math.imul(c$,$Q)|0,M$=M$+Math.imul(h$,i$)|0,S$=S$+Math.imul(h$,$Q)|0,z$=z$+Math.imul(w$,YQ)|0,M$=M$+Math.imul(w$,X)|0,M$=M$+Math.imul(p$,YQ)|0,S$=S$+Math.imul(p$,X)|0,z$=z$+Math.imul(B$,ZQ)|0,M$=M$+Math.imul(B$,D0)|0,M$=M$+Math.imul(H0,ZQ)|0,S$=S$+Math.imul(H0,D0)|0,z$=z$+Math.imul(x$,VQ)|0,M$=M$+Math.imul(x$,UQ)|0,M$=M$+Math.imul(G,VQ)|0,S$=S$+Math.imul(G,UQ)|0,z$=z$+Math.imul(g$,KQ)|0,M$=M$+Math.imul(g$,IQ)|0,M$=M$+Math.imul(_$,KQ)|0,S$=S$+Math.imul(_$,IQ)|0,z$=z$+Math.imul(q$,K)|0,M$=M$+Math.imul(q$,l)|0,M$=M$+Math.imul(j$,K)|0,S$=S$+Math.imul(j$,l)|0,z$=z$+Math.imul(c,C0)|0,M$=M$+Math.imul(c,FQ)|0,M$=M$+Math.imul(v$,C0)|0,S$=S$+Math.imul(v$,FQ)|0;var L0=(P$+z$|0)+((M$&8191)<<13)|0;P$=(S$+(M$>>>13)|0)+(L0>>>26)|0,L0&=67108863,z$=Math.imul(o$,d),M$=Math.imul(o$,m$),M$=M$+Math.imul(u$,d)|0,S$=Math.imul(u$,m$),z$=z$+Math.imul(E0,a$)|0,M$=M$+Math.imul(E0,e$)|0,M$=M$+Math.imul(b$,a$)|0,S$=S$+Math.imul(b$,e$)|0,z$=z$+Math.imul(V,i$)|0,M$=M$+Math.imul(V,$Q)|0,M$=M$+Math.imul(h,i$)|0,S$=S$+Math.imul(h,$Q)|0,z$=z$+Math.imul(c$,YQ)|0,M$=M$+Math.imul(c$,X)|0,M$=M$+Math.imul(h$,YQ)|0,S$=S$+Math.imul(h$,X)|0,z$=z$+Math.imul(w$,ZQ)|0,M$=M$+Math.imul(w$,D0)|0,M$=M$+Math.imul(p$,ZQ)|0,S$=S$+Math.imul(p$,D0)|0,z$=z$+Math.imul(B$,VQ)|0,M$=M$+Math.imul(B$,UQ)|0,M$=M$+Math.imul(H0,VQ)|0,S$=S$+Math.imul(H0,UQ)|0,z$=z$+Math.imul(x$,KQ)|0,M$=M$+Math.imul(x$,IQ)|0,M$=M$+Math.imul(G,KQ)|0,S$=S$+Math.imul(G,IQ)|0,z$=z$+Math.imul(g$,K)|0,M$=M$+Math.imul(g$,l)|0,M$=M$+Math.imul(_$,K)|0,S$=S$+Math.imul(_$,l)|0,z$=z$+Math.imul(q$,C0)|0,M$=M$+Math.imul(q$,FQ)|0,M$=M$+Math.imul(j$,C0)|0,S$=S$+Math.imul(j$,FQ)|0;var LQ=(P$+z$|0)+((M$&8191)<<13)|0;P$=(S$+(M$>>>13)|0)+(LQ>>>26)|0,LQ&=67108863,z$=Math.imul(o$,a$),M$=Math.imul(o$,e$),M$=M$+Math.imul(u$,a$)|0,S$=Math.imul(u$,e$),z$=z$+Math.imul(E0,i$)|0,M$=M$+Math.imul(E0,$Q)|0,M$=M$+Math.imul(b$,i$)|0,S$=S$+Math.imul(b$,$Q)|0,z$=z$+Math.imul(V,YQ)|0,M$=M$+Math.imul(V,X)|0,M$=M$+Math.imul(h,YQ)|0,S$=S$+Math.imul(h,X)|0,z$=z$+Math.imul(c$,ZQ)|0,M$=M$+Math.imul(c$,D0)|0,M$=M$+Math.imul(h$,ZQ)|0,S$=S$+Math.imul(h$,D0)|0,z$=z$+Math.imul(w$,VQ)|0,M$=M$+Math.imul(w$,UQ)|0,M$=M$+Math.imul(p$,VQ)|0,S$=S$+Math.imul(p$,UQ)|0,z$=z$+Math.imul(B$,KQ)|0,M$=M$+Math.imul(B$,IQ)|0,M$=M$+Math.imul(H0,KQ)|0,S$=S$+Math.imul(H0,IQ)|0,z$=z$+Math.imul(x$,K)|0,M$=M$+Math.imul(x$,l)|0,M$=M$+Math.imul(G,K)|0,S$=S$+Math.imul(G,l)|0,z$=z$+Math.imul(g$,C0)|0,M$=M$+Math.imul(g$,FQ)|0,M$=M$+Math.imul(_$,C0)|0,S$=S$+Math.imul(_$,FQ)|0;var RQ=(P$+z$|0)+((M$&8191)<<13)|0;P$=(S$+(M$>>>13)|0)+(RQ>>>26)|0,RQ&=67108863,z$=Math.imul(o$,i$),M$=Math.imul(o$,$Q),M$=M$+Math.imul(u$,i$)|0,S$=Math.imul(u$,$Q),z$=z$+Math.imul(E0,YQ)|0,M$=M$+Math.imul(E0,X)|0,M$=M$+Math.imul(b$,YQ)|0,S$=S$+Math.imul(b$,X)|0,z$=z$+Math.imul(V,ZQ)|0,M$=M$+Math.imul(V,D0)|0,M$=M$+Math.imul(h,ZQ)|0,S$=S$+Math.imul(h,D0)|0,z$=z$+Math.imul(c$,VQ)|0,M$=M$+Math.imul(c$,UQ)|0,M$=M$+Math.imul(h$,VQ)|0,S$=S$+Math.imul(h$,UQ)|0,z$=z$+Math.imul(w$,KQ)|0,M$=M$+Math.imul(w$,IQ)|0,M$=M$+Math.imul(p$,KQ)|0,S$=S$+Math.imul(p$,IQ)|0,z$=z$+Math.imul(B$,K)|0,M$=M$+Math.imul(B$,l)|0,M$=M$+Math.imul(H0,K)|0,S$=S$+Math.imul(H0,l)|0,z$=z$+Math.imul(x$,C0)|0,M$=M$+Math.imul(x$,FQ)|0,M$=M$+Math.imul(G,C0)|0,S$=S$+Math.imul(G,FQ)|0;var PQ=(P$+z$|0)+((M$&8191)<<13)|0;P$=(S$+(M$>>>13)|0)+(PQ>>>26)|0,PQ&=67108863,z$=Math.imul(o$,YQ),M$=Math.imul(o$,X),M$=M$+Math.imul(u$,YQ)|0,S$=Math.imul(u$,X),z$=z$+Math.imul(E0,ZQ)|0,M$=M$+Math.imul(E0,D0)|0,M$=M$+Math.imul(b$,ZQ)|0,S$=S$+Math.imul(b$,D0)|0,z$=z$+Math.imul(V,VQ)|0,M$=M$+Math.imul(V,UQ)|0,M$=M$+Math.imul(h,VQ)|0,S$=S$+Math.imul(h,UQ)|0,z$=z$+Math.imul(c$,KQ)|0,M$=M$+Math.imul(c$,IQ)|0,M$=M$+Math.imul(h$,KQ)|0,S$=S$+Math.imul(h$,IQ)|0,z$=z$+Math.imul(w$,K)|0,M$=M$+Math.imul(w$,l)|0,M$=M$+Math.imul(p$,K)|0,S$=S$+Math.imul(p$,l)|0,z$=z$+Math.imul(B$,C0)|0,M$=M$+Math.imul(B$,FQ)|0,M$=M$+Math.imul(H0,C0)|0,S$=S$+Math.imul(H0,FQ)|0;var zQ=(P$+z$|0)+((M$&8191)<<13)|0;P$=(S$+(M$>>>13)|0)+(zQ>>>26)|0,zQ&=67108863,z$=Math.imul(o$,ZQ),M$=Math.imul(o$,D0),M$=M$+Math.imul(u$,ZQ)|0,S$=Math.imul(u$,D0),z$=z$+Math.imul(E0,VQ)|0,M$=M$+Math.imul(E0,UQ)|0,M$=M$+Math.imul(b$,VQ)|0,S$=S$+Math.imul(b$,UQ)|0,z$=z$+Math.imul(V,KQ)|0,M$=M$+Math.imul(V,IQ)|0,M$=M$+Math.imul(h,KQ)|0,S$=S$+Math.imul(h,IQ)|0,z$=z$+Math.imul(c$,K)|0,M$=M$+Math.imul(c$,l)|0,M$=M$+Math.imul(h$,K)|0,S$=S$+Math.imul(h$,l)|0,z$=z$+Math.imul(w$,C0)|0,M$=M$+Math.imul(w$,FQ)|0,M$=M$+Math.imul(p$,C0)|0,S$=S$+Math.imul(p$,FQ)|0;var MQ=(P$+z$|0)+((M$&8191)<<13)|0;P$=(S$+(M$>>>13)|0)+(MQ>>>26)|0,MQ&=67108863,z$=Math.imul(o$,VQ),M$=Math.imul(o$,UQ),M$=M$+Math.imul(u$,VQ)|0,S$=Math.imul(u$,UQ),z$=z$+Math.imul(E0,KQ)|0,M$=M$+Math.imul(E0,IQ)|0,M$=M$+Math.imul(b$,KQ)|0,S$=S$+Math.imul(b$,IQ)|0,z$=z$+Math.imul(V,K)|0,M$=M$+Math.imul(V,l)|0,M$=M$+Math.imul(h,K)|0,S$=S$+Math.imul(h,l)|0,z$=z$+Math.imul(c$,C0)|0,M$=M$+Math.imul(c$,FQ)|0,M$=M$+Math.imul(h$,C0)|0,S$=S$+Math.imul(h$,FQ)|0;var SQ=(P$+z$|0)+((M$&8191)<<13)|0;P$=(S$+(M$>>>13)|0)+(SQ>>>26)|0,SQ&=67108863,z$=Math.imul(o$,KQ),M$=Math.imul(o$,IQ),M$=M$+Math.imul(u$,KQ)|0,S$=Math.imul(u$,IQ),z$=z$+Math.imul(E0,K)|0,M$=M$+Math.imul(E0,l)|0,M$=M$+Math.imul(b$,K)|0,S$=S$+Math.imul(b$,l)|0,z$=z$+Math.imul(V,C0)|0,M$=M$+Math.imul(V,FQ)|0,M$=M$+Math.imul(h,C0)|0,S$=S$+Math.imul(h,FQ)|0;var vQ=(P$+z$|0)+((M$&8191)<<13)|0;P$=(S$+(M$>>>13)|0)+(vQ>>>26)|0,vQ&=67108863,z$=Math.imul(o$,K),M$=Math.imul(o$,l),M$=M$+Math.imul(u$,K)|0,S$=Math.imul(u$,l),z$=z$+Math.imul(E0,C0)|0,M$=M$+Math.imul(E0,FQ)|0,M$=M$+Math.imul(b$,C0)|0,S$=S$+Math.imul(b$,FQ)|0;var O=(P$+z$|0)+((M$&8191)<<13)|0;P$=(S$+(M$>>>13)|0)+(O>>>26)|0,O&=67108863,z$=Math.imul(o$,C0),M$=Math.imul(o$,FQ),M$=M$+Math.imul(u$,C0)|0,S$=Math.imul(u$,FQ);var g=(P$+z$|0)+((M$&8191)<<13)|0;return P$=(S$+(M$>>>13)|0)+(g>>>26)|0,g&=67108863,R$[0]=AQ,R$[1]=HQ,R$[2]=WQ,R$[3]=EQ,R$[4]=TQ,R$[5]=DQ,R$[6]=I,R$[7]=o,R$[8]=CQ,R$[9]=L0,R$[10]=LQ,R$[11]=RQ,R$[12]=PQ,R$[13]=zQ,R$[14]=MQ,R$[15]=SQ,R$[16]=vQ,R$[17]=O,R$[18]=g,P$!==0&&(R$[19]=P$,F0.length++),F0};Math.imul||(Q=I$);function x(f,D$,F0){F0.negative=D$.negative^f.negative,F0.length=f.length+D$.length;for(var C$=0,L$=0,R$=0;R$>>26)|0,L$+=P$>>>26,P$&=67108863}F0.words[R$]=z$,C$=P$,P$=L$}return C$!==0?F0.words[R$]=C$:F0.length--,F0._strip()}function O$(f,D$,F0){return x(f,D$,F0)}$$.prototype.mulTo=function(f,D$){var F0,C$=this.length+f.length;return this.length===10&&f.length===10?F0=Q(this,f,D$):C$<63?F0=I$(this,f,D$):C$<1024?F0=x(this,f,D$):F0=O$(this,f,D$),F0};function J0(f,D$){this.x=f,this.y=D$}J0.prototype.makeRBT=function(f){for(var D$=new Array(f),F0=$$.prototype._countBits(f)-1,C$=0;C$>=1;return C$},J0.prototype.permute=function(f,D$,F0,C$,L$,R$){for(var P$=0;P$>>1)L$++;return 1<>>13,F0[2*R$+1]=L$&8191,L$=L$>>>13;for(R$=2*D$;R$>=26,F0+=L$/67108864|0,F0+=R$>>>26,this.words[C$]=R$&67108863}return F0!==0&&(this.words[C$]=F0,this.length++),D$?this.ineg():this},$$.prototype.muln=function(f){return this.clone().imuln(f)},$$.prototype.sqr=function(){return this.mul(this)},$$.prototype.isqr=function(){return this.imul(this.clone())},$$.prototype.pow=function(f){var D$=K$(f);if(D$.length===0)return new $$(1);for(var F0=this,C$=0;C$=0);var D$=f%26,F0=(f-D$)/26,C$=67108863>>>26-D$<<26-D$,L$;if(D$!==0){var R$=0;for(L$=0;L$>>26-D$}R$&&(this.words[L$]=R$,this.length++)}if(F0!==0){for(L$=this.length-1;L$>=0;L$--)this.words[L$+F0]=this.words[L$];for(L$=0;L$=0);var C$;D$?C$=(D$-D$%26)/26:C$=0;var L$=f%26,R$=Math.min((f-L$)/26,this.length),P$=67108863^67108863>>>L$<R$)for(this.length-=R$,M$=0;M$=0&&(S$!==0||M$>=C$);M$--){var Z=this.words[M$]|0;this.words[M$]=S$<<26-L$|Z>>>L$,S$=Z&P$}return z$&&S$!==0&&(z$.words[z$.length++]=S$),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},$$.prototype.ishrn=function(f,D$,F0){return r0(this.negative===0),this.iushrn(f,D$,F0)},$$.prototype.shln=function(f){return this.clone().ishln(f)},$$.prototype.ushln=function(f){return this.clone().iushln(f)},$$.prototype.shrn=function(f){return this.clone().ishrn(f)},$$.prototype.ushrn=function(f){return this.clone().iushrn(f)},$$.prototype.testn=function(f){r0(typeof f=="number"&&f>=0);var D$=f%26,F0=(f-D$)/26,C$=1<=0);var D$=f%26,F0=(f-D$)/26;if(r0(this.negative===0,"imaskn works only with positive numbers"),this.length<=F0)return this;if(D$!==0&&F0++,this.length=Math.min(F0,this.length),D$!==0){var C$=67108863^67108863>>>D$<=67108864;D$++)this.words[D$]-=67108864,D$===this.length-1?this.words[D$+1]=1:this.words[D$+1]++;return this.length=Math.max(this.length,D$+1),this},$$.prototype.isubn=function(f){if(r0(typeof f=="number"),r0(f<67108864),f<0)return this.iaddn(-f);if(this.negative!==0)return this.negative=0,this.iaddn(f),this.negative=1,this;if(this.words[0]-=f,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var D$=0;D$>26)-(z$/67108864|0),this.words[L$+F0]=R$&67108863}for(;L$>26,this.words[L$+F0]=R$&67108863;if(P$===0)return this._strip();for(r0(P$===-1),P$=0,L$=0;L$>26,this.words[L$]=R$&67108863;return this.negative=1,this._strip()},$$.prototype._wordDiv=function(f,D$){var F0=this.length-f.length,C$=this.clone(),L$=f,R$=L$.words[L$.length-1]|0,P$=this._countBits(R$);F0=26-P$,F0!==0&&(L$=L$.ushln(F0),C$.iushln(F0),R$=L$.words[L$.length-1]|0);var z$=C$.length-L$.length,M$;if(D$!=="mod"){M$=new $$(null),M$.length=z$+1,M$.words=new Array(M$.length);for(var S$=0;S$=0;c--){var v$=(C$.words[L$.length+c]|0)*67108864+(C$.words[L$.length+c-1]|0);for(v$=Math.min(v$/R$|0,67108863),C$._ishlnsubmul(L$,v$,c);C$.negative!==0;)v$--,C$.negative=0,C$._ishlnsubmul(L$,1,c),C$.isZero()||(C$.negative^=1);M$&&(M$.words[c]=v$)}return M$&&M$._strip(),C$._strip(),D$!=="div"&&F0!==0&&C$.iushrn(F0),{div:M$||null,mod:C$}},$$.prototype.divmod=function(f,D$,F0){if(r0(!f.isZero()),this.isZero())return{div:new $$(0),mod:new $$(0)};var C$,L$,R$;return this.negative!==0&&f.negative===0?(R$=this.neg().divmod(f,D$),D$!=="mod"&&(C$=R$.div.neg()),D$!=="div"&&(L$=R$.mod.neg(),F0&&L$.negative!==0&&L$.iadd(f)),{div:C$,mod:L$}):this.negative===0&&f.negative!==0?(R$=this.divmod(f.neg(),D$),D$!=="mod"&&(C$=R$.div.neg()),{div:C$,mod:R$.mod}):(this.negative&f.negative)!==0?(R$=this.neg().divmod(f.neg(),D$),D$!=="div"&&(L$=R$.mod.neg(),F0&&L$.negative!==0&&L$.isub(f)),{div:R$.div,mod:L$}):f.length>this.length||this.cmp(f)<0?{div:new $$(0),mod:this}:f.length===1?D$==="div"?{div:this.divn(f.words[0]),mod:null}:D$==="mod"?{div:null,mod:new $$(this.modrn(f.words[0]))}:{div:this.divn(f.words[0]),mod:new $$(this.modrn(f.words[0]))}:this._wordDiv(f,D$)},$$.prototype.div=function(f){return this.divmod(f,"div",!1).div},$$.prototype.mod=function(f){return this.divmod(f,"mod",!1).mod},$$.prototype.umod=function(f){return this.divmod(f,"mod",!0).mod},$$.prototype.divRound=function(f){var D$=this.divmod(f);if(D$.mod.isZero())return D$.div;var F0=D$.div.negative!==0?D$.mod.isub(f):D$.mod,C$=f.ushrn(1),L$=f.andln(1),R$=F0.cmp(C$);return R$<0||L$===1&&R$===0?D$.div:D$.div.negative!==0?D$.div.isubn(1):D$.div.iaddn(1)},$$.prototype.modrn=function(f){var D$=f<0;D$&&(f=-f),r0(f<=67108863);for(var F0=(1<<26)%f,C$=0,L$=this.length-1;L$>=0;L$--)C$=(F0*C$+(this.words[L$]|0))%f;return D$?-C$:C$},$$.prototype.modn=function(f){return this.modrn(f)},$$.prototype.idivn=function(f){var D$=f<0;D$&&(f=-f),r0(f<=67108863);for(var F0=0,C$=this.length-1;C$>=0;C$--){var L$=(this.words[C$]|0)+F0*67108864;this.words[C$]=L$/f|0,F0=L$%f}return this._strip(),D$?this.ineg():this},$$.prototype.divn=function(f){return this.clone().idivn(f)},$$.prototype.egcd=function(f){r0(f.negative===0),r0(!f.isZero());var D$=this,F0=f.clone();D$.negative!==0?D$=D$.umod(f):D$=D$.clone();for(var C$=new $$(1),L$=new $$(0),R$=new $$(0),P$=new $$(1),z$=0;D$.isEven()&&F0.isEven();)D$.iushrn(1),F0.iushrn(1),++z$;for(var M$=F0.clone(),S$=D$.clone();!D$.isZero();){for(var Z=0,c=1;(D$.words[0]&c)===0&&Z<26;++Z,c<<=1);if(Z>0)for(D$.iushrn(Z);Z-- >0;)(C$.isOdd()||L$.isOdd())&&(C$.iadd(M$),L$.isub(S$)),C$.iushrn(1),L$.iushrn(1);for(var v$=0,A0=1;(F0.words[0]&A0)===0&&v$<26;++v$,A0<<=1);if(v$>0)for(F0.iushrn(v$);v$-- >0;)(R$.isOdd()||P$.isOdd())&&(R$.iadd(M$),P$.isub(S$)),R$.iushrn(1),P$.iushrn(1);D$.cmp(F0)>=0?(D$.isub(F0),C$.isub(R$),L$.isub(P$)):(F0.isub(D$),R$.isub(C$),P$.isub(L$))}return{a:R$,b:P$,gcd:F0.iushln(z$)}},$$.prototype._invmp=function(f){r0(f.negative===0),r0(!f.isZero());var D$=this,F0=f.clone();D$.negative!==0?D$=D$.umod(f):D$=D$.clone();for(var C$=new $$(1),L$=new $$(0),R$=F0.clone();D$.cmpn(1)>0&&F0.cmpn(1)>0;){for(var P$=0,z$=1;(D$.words[0]&z$)===0&&P$<26;++P$,z$<<=1);if(P$>0)for(D$.iushrn(P$);P$-- >0;)C$.isOdd()&&C$.iadd(R$),C$.iushrn(1);for(var M$=0,S$=1;(F0.words[0]&S$)===0&&M$<26;++M$,S$<<=1);if(M$>0)for(F0.iushrn(M$);M$-- >0;)L$.isOdd()&&L$.iadd(R$),L$.iushrn(1);D$.cmp(F0)>=0?(D$.isub(F0),C$.isub(L$)):(F0.isub(D$),L$.isub(C$))}var Z;return D$.cmpn(1)===0?Z=C$:Z=L$,Z.cmpn(0)<0&&Z.iadd(f),Z},$$.prototype.gcd=function(f){if(this.isZero())return f.abs();if(f.isZero())return this.abs();var D$=this.clone(),F0=f.clone();D$.negative=0,F0.negative=0;for(var C$=0;D$.isEven()&&F0.isEven();C$++)D$.iushrn(1),F0.iushrn(1);do{for(;D$.isEven();)D$.iushrn(1);for(;F0.isEven();)F0.iushrn(1);var L$=D$.cmp(F0);if(L$<0){var R$=D$;D$=F0,F0=R$}else if(L$===0||F0.cmpn(1)===0)break;D$.isub(F0)}while(!0);return F0.iushln(C$)},$$.prototype.invm=function(f){return this.egcd(f).a.umod(f)},$$.prototype.isEven=function(){return(this.words[0]&1)===0},$$.prototype.isOdd=function(){return(this.words[0]&1)===1},$$.prototype.andln=function(f){return this.words[0]&f},$$.prototype.bincn=function(f){r0(typeof f=="number");var D$=f%26,F0=(f-D$)/26,C$=1<>>26,P$&=67108863,this.words[R$]=P$}return L$!==0&&(this.words[R$]=L$,this.length++),this},$$.prototype.isZero=function(){return this.length===1&&this.words[0]===0},$$.prototype.cmpn=function(f){var D$=f<0;if(this.negative!==0&&!D$)return-1;if(this.negative===0&&D$)return 1;this._strip();var F0;if(this.length>1)F0=1;else{D$&&(f=-f),r0(f<=67108863,"Number is too big");var C$=this.words[0]|0;F0=C$===f?0:C$f.length)return 1;if(this.length=0;F0--){var C$=this.words[F0]|0,L$=f.words[F0]|0;if(C$!==L$){C$L$&&(D$=1);break}}return D$},$$.prototype.gtn=function(f){return this.cmpn(f)===1},$$.prototype.gt=function(f){return this.cmp(f)===1},$$.prototype.gten=function(f){return this.cmpn(f)>=0},$$.prototype.gte=function(f){return this.cmp(f)>=0},$$.prototype.ltn=function(f){return this.cmpn(f)===-1},$$.prototype.lt=function(f){return this.cmp(f)===-1},$$.prototype.lten=function(f){return this.cmpn(f)<=0},$$.prototype.lte=function(f){return this.cmp(f)<=0},$$.prototype.eqn=function(f){return this.cmpn(f)===0},$$.prototype.eq=function(f){return this.cmp(f)===0},$$.red=function(f){return new T$(f)},$$.prototype.toRed=function(f){return r0(!this.red,"Already a number in reduction context"),r0(this.negative===0,"red works only with positives"),f.convertTo(this)._forceRed(f)},$$.prototype.fromRed=function(){return r0(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},$$.prototype._forceRed=function(f){return this.red=f,this},$$.prototype.forceRed=function(f){return r0(!this.red,"Already a number in reduction context"),this._forceRed(f)},$$.prototype.redAdd=function(f){return r0(this.red,"redAdd works only with red numbers"),this.red.add(this,f)},$$.prototype.redIAdd=function(f){return r0(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,f)},$$.prototype.redSub=function(f){return r0(this.red,"redSub works only with red numbers"),this.red.sub(this,f)},$$.prototype.redISub=function(f){return r0(this.red,"redISub works only with red numbers"),this.red.isub(this,f)},$$.prototype.redShl=function(f){return r0(this.red,"redShl works only with red numbers"),this.red.shl(this,f)},$$.prototype.redMul=function(f){return r0(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.mul(this,f)},$$.prototype.redIMul=function(f){return r0(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.imul(this,f)},$$.prototype.redSqr=function(){return r0(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},$$.prototype.redISqr=function(){return r0(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},$$.prototype.redSqrt=function(){return r0(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},$$.prototype.redInvm=function(){return r0(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},$$.prototype.redNeg=function(){return r0(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},$$.prototype.redPow=function(f){return r0(this.red&&!f.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,f)};var J$={k256:null,p224:null,p192:null,p25519:null};function F$(f,D$){this.name=f,this.p=new $$(D$,16),this.n=this.p.bitLength(),this.k=new $$(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}F$.prototype._tmp=function(){var f=new $$(null);return f.words=new Array(Math.ceil(this.n/13)),f},F$.prototype.ireduce=function(f){var D$=f,F0;do this.split(D$,this.tmp),D$=this.imulK(D$),D$=D$.iadd(this.tmp),F0=D$.bitLength();while(F0>this.n);var C$=F00?D$.isub(this.p):D$.strip!==void 0?D$.strip():D$._strip(),D$},F$.prototype.split=function(f,D$){f.iushrn(this.n,0,D$)},F$.prototype.imulK=function(f){return f.imul(this.k)};function A$(){F$.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i0(A$,F$),A$.prototype.split=function(f,D$){for(var F0=4194303,C$=Math.min(f.length,9),L$=0;L$>>22,R$=P$}R$>>>=22,f.words[L$-10]=R$,R$===0&&f.length>10?f.length-=10:f.length-=9},A$.prototype.imulK=function(f){f.words[f.length]=0,f.words[f.length+1]=0,f.length+=2;for(var D$=0,F0=0;F0>>=26,f.words[F0]=L$,D$=C$}return D$!==0&&(f.words[f.length++]=D$),f},$$._prime=function(f){if(J$[f])return J$[f];var D$;if(f==="k256")D$=new A$;else if(f==="p224")D$=new H$;else if(f==="p192")D$=new W$;else if(f==="p25519")D$=new E$;else throw new Error("Unknown prime "+f);return J$[f]=D$,D$};function T$(f){if(typeof f=="string"){var D$=$$._prime(f);this.m=D$.p,this.prime=D$}else r0(f.gtn(1),"modulus must be greater than 1"),this.m=f,this.prime=null}T$.prototype._verify1=function(f){r0(f.negative===0,"red works only with positives"),r0(f.red,"red works only with red numbers")},T$.prototype._verify2=function(f,D$){r0((f.negative|D$.negative)===0,"red works only with positives"),r0(f.red&&f.red===D$.red,"red works only with red numbers")},T$.prototype.imod=function(f){return this.prime?this.prime.ireduce(f)._forceRed(this):(O0(f,f.umod(this.m)._forceRed(this)),f)},T$.prototype.neg=function(f){return f.isZero()?f.clone():this.m.sub(f)._forceRed(this)},T$.prototype.add=function(f,D$){this._verify2(f,D$);var F0=f.add(D$);return F0.cmp(this.m)>=0&&F0.isub(this.m),F0._forceRed(this)},T$.prototype.iadd=function(f,D$){this._verify2(f,D$);var F0=f.iadd(D$);return F0.cmp(this.m)>=0&&F0.isub(this.m),F0},T$.prototype.sub=function(f,D$){this._verify2(f,D$);var F0=f.sub(D$);return F0.cmpn(0)<0&&F0.iadd(this.m),F0._forceRed(this)},T$.prototype.isub=function(f,D$){this._verify2(f,D$);var F0=f.isub(D$);return F0.cmpn(0)<0&&F0.iadd(this.m),F0},T$.prototype.shl=function(f,D$){return this._verify1(f),this.imod(f.ushln(D$))},T$.prototype.imul=function(f,D$){return this._verify2(f,D$),this.imod(f.imul(D$))},T$.prototype.mul=function(f,D$){return this._verify2(f,D$),this.imod(f.mul(D$))},T$.prototype.isqr=function(f){return this.imul(f,f.clone())},T$.prototype.sqr=function(f){return this.mul(f,f)},T$.prototype.sqrt=function(f){if(f.isZero())return f.clone();var D$=this.m.andln(3);if(r0(D$%2===1),D$===3){var F0=this.m.add(new $$(1)).iushrn(2);return this.pow(f,F0)}for(var C$=this.m.subn(1),L$=0;!C$.isZero()&&C$.andln(1)===0;)L$++,C$.iushrn(1);r0(!C$.isZero());var R$=new $$(1).toRed(this),P$=R$.redNeg(),z$=this.m.subn(1).iushrn(1),M$=this.m.bitLength();for(M$=new $$(2*M$*M$).toRed(this);this.pow(M$,z$).cmp(P$)!==0;)M$.redIAdd(P$);for(var S$=this.pow(M$,C$),Z=this.pow(f,C$.addn(1).iushrn(1)),c=this.pow(f,C$),v$=L$;c.cmp(R$)!==0;){for(var A0=c,q$=0;A0.cmp(R$)!==0;q$++)A0=A0.redSqr();r0(q$=0;L$--){for(var S$=D$.words[L$],Z=M$-1;Z>=0;Z--){var c=S$>>Z&1;if(R$!==C$[0]&&(R$=this.sqr(R$)),c===0&&P$===0){z$=0;continue}P$<<=1,P$|=c,z$++,!(z$!==F0&&(L$!==0||Z!==0))&&(R$=this.mul(R$,C$[P$]),z$=0,P$=0)}M$=26}return R$},T$.prototype.convertTo=function(f){var D$=f.umod(this.m);return D$===f?D$.clone():D$},T$.prototype.convertFrom=function(f){var D$=f.clone();return D$.red=null,D$},$$.mont=function(f){return new Y(f)};function Y(f){T$.call(this,f),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new $$(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)}i0(Y,T$),Y.prototype.convertTo=function(f){return this.imod(f.ushln(this.shift))},Y.prototype.convertFrom=function(f){var D$=this.imod(f.mul(this.rinv));return D$.red=null,D$},Y.prototype.imul=function(f,D$){if(f.isZero()||D$.isZero())return f.words[0]=0,f.length=1,f;var F0=f.imul(D$),C$=F0.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),L$=F0.isub(C$).iushrn(this.shift),R$=L$;return L$.cmp(this.m)>=0?R$=L$.isub(this.m):L$.cmpn(0)<0&&(R$=L$.iadd(this.m)),R$._forceRed(this)},Y.prototype.mul=function(f,D$){if(f.isZero()||D$.isZero())return new $$(0)._forceRed(this);var F0=f.mul(D$),C$=F0.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),L$=F0.isub(C$).iushrn(this.shift),R$=L$;return L$.cmp(this.m)>=0?R$=L$.isub(this.m):L$.cmpn(0)<0&&(R$=L$.iadd(this.m)),R$._forceRed(this)},Y.prototype.invm=function(f){var D$=this.imod(f._invmp(this.m).mul(this.r2));return D$._forceRed(this)}})(typeof m0>"u"||m0,t0)}}),qY=pQ({"node_modules/browserify-rsa/index.js"(t0,m0){var a0=vY(),e0=hQ();function r0(Q$){var $=i0(Q$),N=$.toRed(a0.mont(Q$.modulus)).redPow(new a0(Q$.publicExponent)).fromRed();return{blinder:N,unblinder:$.invm(Q$.modulus)}}function i0(Q$){var $=Q$.modulus.byteLength(),N;do N=new a0(e0($));while(N.cmp(Q$.modulus)>=0||!N.umod(Q$.prime1)||!N.umod(Q$.prime2));return N}function $$(Q$,$){var N=r0($),Y$=$.modulus.byteLength(),O0=new a0(Q$).mul(N.blinder).umod($.modulus),Z$=O0.toRed(a0.mont($.prime1)),G$=O0.toRed(a0.mont($.prime2)),V$=$.coefficient,U$=$.prime1,X$=$.prime2,K$=Z$.redPow($.exponent1).fromRed(),I$=G$.redPow($.exponent2).fromRed(),Q=K$.isub(I$).imul(V$).umod(U$).imul(X$);return I$.iadd(Q).imul(N.unblinder).umod($.modulus).toArrayLike(G0,"be",Y$)}$$.getr=i0,m0.exports=$$}}),jY=pQ({"node_modules/elliptic/package.json"(t0,m0){m0.exports={name:"elliptic",version:"6.5.4",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny ",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"}}}}),kY=pQ({"node_modules/elliptic/node_modules/bn.js/lib/bn.js"(t0,m0){(function(a0,e0){function r0(E$,T$){if(!E$)throw new Error(T$||"Assertion failed")}function i0(E$,T$){E$.super_=T$;var Y=function(){};Y.prototype=T$.prototype,E$.prototype=new Y,E$.prototype.constructor=E$}function $$(E$,T$,Y){if($$.isBN(E$))return E$;this.negative=0,this.words=null,this.length=0,this.red=null,E$!==null&&((T$==="le"||T$==="be")&&(Y=T$,T$=10),this._init(E$||0,T$||10,Y||"be"))}typeof a0=="object"?a0.exports=$$:e0.BN=$$,$$.BN=$$,$$.wordSize=26;var Q$=G0;$$.isBN=function(E$){return E$ instanceof $$?!0:E$!==null&&typeof E$=="object"&&E$.constructor.wordSize===$$.wordSize&&Array.isArray(E$.words)},$$.max=function(E$,T$){return E$.cmp(T$)>0?E$:T$},$$.min=function(E$,T$){return E$.cmp(T$)<0?E$:T$},$$.prototype._init=function(E$,T$,Y){if(typeof E$=="number")return this._initNumber(E$,T$,Y);if(typeof E$=="object")return this._initArray(E$,T$,Y);T$==="hex"&&(T$=16),r0(T$===(T$|0)&&T$>=2&&T$<=36),E$=E$.toString().replace(/\s+/g,"");var f=0;E$[0]==="-"&&(f++,this.negative=1),f=0;f-=3)F0=E$[f]|E$[f-1]<<8|E$[f-2]<<16,this.words[D$]|=F0<>>26-C$&67108863,C$+=24,C$>=26&&(C$-=26,D$++);else if(Y==="le")for(f=0,D$=0;f>>26-C$&67108863,C$+=24,C$>=26&&(C$-=26,D$++);return this.strip()};function $(E$,T$){var Y=E$.charCodeAt(T$);return Y>=65&&Y<=70?Y-55:Y>=97&&Y<=102?Y-87:Y-48&15}function N(E$,T$,Y){var f=$(E$,Y);return Y-1>=T$&&(f|=$(E$,Y-1)<<4),f}$$.prototype._parseHex=function(E$,T$,Y){this.length=Math.ceil((E$.length-T$)/6),this.words=new Array(this.length);for(var f=0;f=T$;f-=2)C$=N(E$,T$,f)<=18?(D$-=18,F0+=1,this.words[F0]|=C$>>>26):D$+=8;else{var L$=E$.length-T$;for(f=L$%2===0?T$+1:T$;f=18?(D$-=18,F0+=1,this.words[F0]|=C$>>>26):D$+=8}this.strip()};function Y$(E$,T$,Y,f){for(var D$=0,F0=Math.min(E$.length,Y),C$=T$;C$=49?D$+=L$-49+10:L$>=17?D$+=L$-17+10:D$+=L$}return D$}$$.prototype._parseBase=function(E$,T$,Y){this.words=[0],this.length=1;for(var f=0,D$=1;D$<=67108863;D$*=T$)f++;f--,D$=D$/T$|0;for(var F0=E$.length-Y,C$=F0%f,L$=Math.min(F0,F0-C$)+Y,R$=0,P$=Y;P$1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},$$.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},$$.prototype.inspect=function(){return(this.red?""};var O0=["","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"],Z$=[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],G$=[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];$$.prototype.toString=function(E$,T$){E$=E$||10,T$=T$|0||1;var Y;if(E$===16||E$==="hex"){Y="";for(var f=0,D$=0,F0=0;F0>>24-f&16777215,D$!==0||F0!==this.length-1?Y=O0[6-L$.length]+L$+Y:Y=L$+Y,f+=2,f>=26&&(f-=26,F0--)}for(D$!==0&&(Y=D$.toString(16)+Y);Y.length%T$!==0;)Y="0"+Y;return this.negative!==0&&(Y="-"+Y),Y}if(E$===(E$|0)&&E$>=2&&E$<=36){var R$=Z$[E$],P$=G$[E$];Y="";var z$=this.clone();for(z$.negative=0;!z$.isZero();){var M$=z$.modn(P$).toString(E$);z$=z$.idivn(P$),z$.isZero()?Y=M$+Y:Y=O0[R$-M$.length]+M$+Y}for(this.isZero()&&(Y="0"+Y);Y.length%T$!==0;)Y="0"+Y;return this.negative!==0&&(Y="-"+Y),Y}r0(!1,"Base should be between 2 and 36")},$$.prototype.toNumber=function(){var E$=this.words[0];return this.length===2?E$+=this.words[1]*67108864:this.length===3&&this.words[2]===1?E$+=4503599627370496+this.words[1]*67108864:this.length>2&&r0(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-E$:E$},$$.prototype.toJSON=function(){return this.toString(16)},$$.prototype.toBuffer=function(E$,T$){return r0(typeof Q$<"u"),this.toArrayLike(Q$,E$,T$)},$$.prototype.toArray=function(E$,T$){return this.toArrayLike(Array,E$,T$)},$$.prototype.toArrayLike=function(E$,T$,Y){var f=this.byteLength(),D$=Y||Math.max(1,f);r0(f<=D$,"byte array longer than desired length"),r0(D$>0,"Requested array length <= 0"),this.strip();var F0=T$==="le",C$=new E$(D$),L$,R$,P$=this.clone();if(F0){for(R$=0;!P$.isZero();R$++)L$=P$.andln(255),P$.iushrn(8),C$[R$]=L$;for(;R$=4096&&(Y+=13,T$>>>=13),T$>=64&&(Y+=7,T$>>>=7),T$>=8&&(Y+=4,T$>>>=4),T$>=2&&(Y+=2,T$>>>=2),Y+T$},$$.prototype._zeroBits=function(E$){if(E$===0)return 26;var T$=E$,Y=0;return(T$&8191)===0&&(Y+=13,T$>>>=13),(T$&127)===0&&(Y+=7,T$>>>=7),(T$&15)===0&&(Y+=4,T$>>>=4),(T$&3)===0&&(Y+=2,T$>>>=2),(T$&1)===0&&Y++,Y},$$.prototype.bitLength=function(){var E$=this.words[this.length-1],T$=this._countBits(E$);return(this.length-1)*26+T$};function V$(E$){for(var T$=new Array(E$.bitLength()),Y=0;Y>>D$}return T$}$$.prototype.zeroBits=function(){if(this.isZero())return 0;for(var E$=0,T$=0;T$E$.length?this.clone().ior(E$):E$.clone().ior(this)},$$.prototype.uor=function(E$){return this.length>E$.length?this.clone().iuor(E$):E$.clone().iuor(this)},$$.prototype.iuand=function(E$){var T$;this.length>E$.length?T$=E$:T$=this;for(var Y=0;YE$.length?this.clone().iand(E$):E$.clone().iand(this)},$$.prototype.uand=function(E$){return this.length>E$.length?this.clone().iuand(E$):E$.clone().iuand(this)},$$.prototype.iuxor=function(E$){var T$,Y;this.length>E$.length?(T$=this,Y=E$):(T$=E$,Y=this);for(var f=0;fE$.length?this.clone().ixor(E$):E$.clone().ixor(this)},$$.prototype.uxor=function(E$){return this.length>E$.length?this.clone().iuxor(E$):E$.clone().iuxor(this)},$$.prototype.inotn=function(E$){r0(typeof E$=="number"&&E$>=0);var T$=Math.ceil(E$/26)|0,Y=E$%26;this._expand(T$),Y>0&&T$--;for(var f=0;f0&&(this.words[f]=~this.words[f]&67108863>>26-Y),this.strip()},$$.prototype.notn=function(E$){return this.clone().inotn(E$)},$$.prototype.setn=function(E$,T$){r0(typeof E$=="number"&&E$>=0);var Y=E$/26|0,f=E$%26;return this._expand(Y+1),T$?this.words[Y]=this.words[Y]|1<E$.length?(Y=this,f=E$):(Y=E$,f=this);for(var D$=0,F0=0;F0>>26;for(;D$!==0&&F0>>26;if(this.length=Y.length,D$!==0)this.words[this.length]=D$,this.length++;else if(Y!==this)for(;F0E$.length?this.clone().iadd(E$):E$.clone().iadd(this)},$$.prototype.isub=function(E$){if(E$.negative!==0){E$.negative=0;var T$=this.iadd(E$);return E$.negative=1,T$._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(E$),this.negative=1,this._normSign();var Y=this.cmp(E$);if(Y===0)return this.negative=0,this.length=1,this.words[0]=0,this;var f,D$;Y>0?(f=this,D$=E$):(f=E$,D$=this);for(var F0=0,C$=0;C$>26,this.words[C$]=T$&67108863;for(;F0!==0&&C$>26,this.words[C$]=T$&67108863;if(F0===0&&C$>>26,M$=R$&67108863,S$=Math.min(P$,T$.length-1),Z=Math.max(0,P$-E$.length+1);Z<=S$;Z++){var c=P$-Z|0;D$=E$.words[c]|0,F0=T$.words[Z]|0,C$=D$*F0+M$,z$+=C$/67108864|0,M$=C$&67108863}Y.words[P$]=M$|0,R$=z$|0}return R$!==0?Y.words[P$]=R$|0:Y.length--,Y.strip()}var X$=function(E$,T$,Y){var f=E$.words,D$=T$.words,F0=Y.words,C$=0,L$,R$,P$,z$=f[0]|0,M$=z$&8191,S$=z$>>>13,Z=f[1]|0,c=Z&8191,v$=Z>>>13,A0=f[2]|0,q$=A0&8191,j$=A0>>>13,k$=f[3]|0,g$=k$&8191,_$=k$>>>13,N$=f[4]|0,x$=N$&8191,G=N$>>>13,B=f[5]|0,B$=B&8191,H0=B>>>13,y$=f[6]|0,w$=y$&8191,p$=y$>>>13,f$=f[7]|0,c$=f$&8191,h$=f$>>>13,d$=f[8]|0,V=d$&8191,h=d$>>>13,W0=f[9]|0,E0=W0&8191,b$=W0>>>13,l$=D$[0]|0,o$=l$&8191,u$=l$>>>13,n$=D$[1]|0,s$=n$&8191,t$=n$>>>13,U=D$[2]|0,d=U&8191,m$=U>>>13,T0=D$[3]|0,a$=T0&8191,e$=T0>>>13,r$=D$[4]|0,i$=r$&8191,$Q=r$>>>13,QQ=D$[5]|0,YQ=QQ&8191,X=QQ>>>13,b=D$[6]|0,ZQ=b&8191,D0=b>>>13,GQ=D$[7]|0,VQ=GQ&8191,UQ=GQ>>>13,XQ=D$[8]|0,KQ=XQ&8191,IQ=XQ>>>13,OQ=D$[9]|0,K=OQ&8191,l=OQ>>>13;Y.negative=E$.negative^T$.negative,Y.length=19,L$=Math.imul(M$,o$),R$=Math.imul(M$,u$),R$=R$+Math.imul(S$,o$)|0,P$=Math.imul(S$,u$);var JQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(JQ>>>26)|0,JQ&=67108863,L$=Math.imul(c,o$),R$=Math.imul(c,u$),R$=R$+Math.imul(v$,o$)|0,P$=Math.imul(v$,u$),L$=L$+Math.imul(M$,s$)|0,R$=R$+Math.imul(M$,t$)|0,R$=R$+Math.imul(S$,s$)|0,P$=P$+Math.imul(S$,t$)|0;var C0=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(C0>>>26)|0,C0&=67108863,L$=Math.imul(q$,o$),R$=Math.imul(q$,u$),R$=R$+Math.imul(j$,o$)|0,P$=Math.imul(j$,u$),L$=L$+Math.imul(c,s$)|0,R$=R$+Math.imul(c,t$)|0,R$=R$+Math.imul(v$,s$)|0,P$=P$+Math.imul(v$,t$)|0,L$=L$+Math.imul(M$,d)|0,R$=R$+Math.imul(M$,m$)|0,R$=R$+Math.imul(S$,d)|0,P$=P$+Math.imul(S$,m$)|0;var FQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(FQ>>>26)|0,FQ&=67108863,L$=Math.imul(g$,o$),R$=Math.imul(g$,u$),R$=R$+Math.imul(_$,o$)|0,P$=Math.imul(_$,u$),L$=L$+Math.imul(q$,s$)|0,R$=R$+Math.imul(q$,t$)|0,R$=R$+Math.imul(j$,s$)|0,P$=P$+Math.imul(j$,t$)|0,L$=L$+Math.imul(c,d)|0,R$=R$+Math.imul(c,m$)|0,R$=R$+Math.imul(v$,d)|0,P$=P$+Math.imul(v$,m$)|0,L$=L$+Math.imul(M$,a$)|0,R$=R$+Math.imul(M$,e$)|0,R$=R$+Math.imul(S$,a$)|0,P$=P$+Math.imul(S$,e$)|0;var AQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(AQ>>>26)|0,AQ&=67108863,L$=Math.imul(x$,o$),R$=Math.imul(x$,u$),R$=R$+Math.imul(G,o$)|0,P$=Math.imul(G,u$),L$=L$+Math.imul(g$,s$)|0,R$=R$+Math.imul(g$,t$)|0,R$=R$+Math.imul(_$,s$)|0,P$=P$+Math.imul(_$,t$)|0,L$=L$+Math.imul(q$,d)|0,R$=R$+Math.imul(q$,m$)|0,R$=R$+Math.imul(j$,d)|0,P$=P$+Math.imul(j$,m$)|0,L$=L$+Math.imul(c,a$)|0,R$=R$+Math.imul(c,e$)|0,R$=R$+Math.imul(v$,a$)|0,P$=P$+Math.imul(v$,e$)|0,L$=L$+Math.imul(M$,i$)|0,R$=R$+Math.imul(M$,$Q)|0,R$=R$+Math.imul(S$,i$)|0,P$=P$+Math.imul(S$,$Q)|0;var HQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(HQ>>>26)|0,HQ&=67108863,L$=Math.imul(B$,o$),R$=Math.imul(B$,u$),R$=R$+Math.imul(H0,o$)|0,P$=Math.imul(H0,u$),L$=L$+Math.imul(x$,s$)|0,R$=R$+Math.imul(x$,t$)|0,R$=R$+Math.imul(G,s$)|0,P$=P$+Math.imul(G,t$)|0,L$=L$+Math.imul(g$,d)|0,R$=R$+Math.imul(g$,m$)|0,R$=R$+Math.imul(_$,d)|0,P$=P$+Math.imul(_$,m$)|0,L$=L$+Math.imul(q$,a$)|0,R$=R$+Math.imul(q$,e$)|0,R$=R$+Math.imul(j$,a$)|0,P$=P$+Math.imul(j$,e$)|0,L$=L$+Math.imul(c,i$)|0,R$=R$+Math.imul(c,$Q)|0,R$=R$+Math.imul(v$,i$)|0,P$=P$+Math.imul(v$,$Q)|0,L$=L$+Math.imul(M$,YQ)|0,R$=R$+Math.imul(M$,X)|0,R$=R$+Math.imul(S$,YQ)|0,P$=P$+Math.imul(S$,X)|0;var WQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(WQ>>>26)|0,WQ&=67108863,L$=Math.imul(w$,o$),R$=Math.imul(w$,u$),R$=R$+Math.imul(p$,o$)|0,P$=Math.imul(p$,u$),L$=L$+Math.imul(B$,s$)|0,R$=R$+Math.imul(B$,t$)|0,R$=R$+Math.imul(H0,s$)|0,P$=P$+Math.imul(H0,t$)|0,L$=L$+Math.imul(x$,d)|0,R$=R$+Math.imul(x$,m$)|0,R$=R$+Math.imul(G,d)|0,P$=P$+Math.imul(G,m$)|0,L$=L$+Math.imul(g$,a$)|0,R$=R$+Math.imul(g$,e$)|0,R$=R$+Math.imul(_$,a$)|0,P$=P$+Math.imul(_$,e$)|0,L$=L$+Math.imul(q$,i$)|0,R$=R$+Math.imul(q$,$Q)|0,R$=R$+Math.imul(j$,i$)|0,P$=P$+Math.imul(j$,$Q)|0,L$=L$+Math.imul(c,YQ)|0,R$=R$+Math.imul(c,X)|0,R$=R$+Math.imul(v$,YQ)|0,P$=P$+Math.imul(v$,X)|0,L$=L$+Math.imul(M$,ZQ)|0,R$=R$+Math.imul(M$,D0)|0,R$=R$+Math.imul(S$,ZQ)|0,P$=P$+Math.imul(S$,D0)|0;var EQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(EQ>>>26)|0,EQ&=67108863,L$=Math.imul(c$,o$),R$=Math.imul(c$,u$),R$=R$+Math.imul(h$,o$)|0,P$=Math.imul(h$,u$),L$=L$+Math.imul(w$,s$)|0,R$=R$+Math.imul(w$,t$)|0,R$=R$+Math.imul(p$,s$)|0,P$=P$+Math.imul(p$,t$)|0,L$=L$+Math.imul(B$,d)|0,R$=R$+Math.imul(B$,m$)|0,R$=R$+Math.imul(H0,d)|0,P$=P$+Math.imul(H0,m$)|0,L$=L$+Math.imul(x$,a$)|0,R$=R$+Math.imul(x$,e$)|0,R$=R$+Math.imul(G,a$)|0,P$=P$+Math.imul(G,e$)|0,L$=L$+Math.imul(g$,i$)|0,R$=R$+Math.imul(g$,$Q)|0,R$=R$+Math.imul(_$,i$)|0,P$=P$+Math.imul(_$,$Q)|0,L$=L$+Math.imul(q$,YQ)|0,R$=R$+Math.imul(q$,X)|0,R$=R$+Math.imul(j$,YQ)|0,P$=P$+Math.imul(j$,X)|0,L$=L$+Math.imul(c,ZQ)|0,R$=R$+Math.imul(c,D0)|0,R$=R$+Math.imul(v$,ZQ)|0,P$=P$+Math.imul(v$,D0)|0,L$=L$+Math.imul(M$,VQ)|0,R$=R$+Math.imul(M$,UQ)|0,R$=R$+Math.imul(S$,VQ)|0,P$=P$+Math.imul(S$,UQ)|0;var TQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(TQ>>>26)|0,TQ&=67108863,L$=Math.imul(V,o$),R$=Math.imul(V,u$),R$=R$+Math.imul(h,o$)|0,P$=Math.imul(h,u$),L$=L$+Math.imul(c$,s$)|0,R$=R$+Math.imul(c$,t$)|0,R$=R$+Math.imul(h$,s$)|0,P$=P$+Math.imul(h$,t$)|0,L$=L$+Math.imul(w$,d)|0,R$=R$+Math.imul(w$,m$)|0,R$=R$+Math.imul(p$,d)|0,P$=P$+Math.imul(p$,m$)|0,L$=L$+Math.imul(B$,a$)|0,R$=R$+Math.imul(B$,e$)|0,R$=R$+Math.imul(H0,a$)|0,P$=P$+Math.imul(H0,e$)|0,L$=L$+Math.imul(x$,i$)|0,R$=R$+Math.imul(x$,$Q)|0,R$=R$+Math.imul(G,i$)|0,P$=P$+Math.imul(G,$Q)|0,L$=L$+Math.imul(g$,YQ)|0,R$=R$+Math.imul(g$,X)|0,R$=R$+Math.imul(_$,YQ)|0,P$=P$+Math.imul(_$,X)|0,L$=L$+Math.imul(q$,ZQ)|0,R$=R$+Math.imul(q$,D0)|0,R$=R$+Math.imul(j$,ZQ)|0,P$=P$+Math.imul(j$,D0)|0,L$=L$+Math.imul(c,VQ)|0,R$=R$+Math.imul(c,UQ)|0,R$=R$+Math.imul(v$,VQ)|0,P$=P$+Math.imul(v$,UQ)|0,L$=L$+Math.imul(M$,KQ)|0,R$=R$+Math.imul(M$,IQ)|0,R$=R$+Math.imul(S$,KQ)|0,P$=P$+Math.imul(S$,IQ)|0;var DQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(DQ>>>26)|0,DQ&=67108863,L$=Math.imul(E0,o$),R$=Math.imul(E0,u$),R$=R$+Math.imul(b$,o$)|0,P$=Math.imul(b$,u$),L$=L$+Math.imul(V,s$)|0,R$=R$+Math.imul(V,t$)|0,R$=R$+Math.imul(h,s$)|0,P$=P$+Math.imul(h,t$)|0,L$=L$+Math.imul(c$,d)|0,R$=R$+Math.imul(c$,m$)|0,R$=R$+Math.imul(h$,d)|0,P$=P$+Math.imul(h$,m$)|0,L$=L$+Math.imul(w$,a$)|0,R$=R$+Math.imul(w$,e$)|0,R$=R$+Math.imul(p$,a$)|0,P$=P$+Math.imul(p$,e$)|0,L$=L$+Math.imul(B$,i$)|0,R$=R$+Math.imul(B$,$Q)|0,R$=R$+Math.imul(H0,i$)|0,P$=P$+Math.imul(H0,$Q)|0,L$=L$+Math.imul(x$,YQ)|0,R$=R$+Math.imul(x$,X)|0,R$=R$+Math.imul(G,YQ)|0,P$=P$+Math.imul(G,X)|0,L$=L$+Math.imul(g$,ZQ)|0,R$=R$+Math.imul(g$,D0)|0,R$=R$+Math.imul(_$,ZQ)|0,P$=P$+Math.imul(_$,D0)|0,L$=L$+Math.imul(q$,VQ)|0,R$=R$+Math.imul(q$,UQ)|0,R$=R$+Math.imul(j$,VQ)|0,P$=P$+Math.imul(j$,UQ)|0,L$=L$+Math.imul(c,KQ)|0,R$=R$+Math.imul(c,IQ)|0,R$=R$+Math.imul(v$,KQ)|0,P$=P$+Math.imul(v$,IQ)|0,L$=L$+Math.imul(M$,K)|0,R$=R$+Math.imul(M$,l)|0,R$=R$+Math.imul(S$,K)|0,P$=P$+Math.imul(S$,l)|0;var I=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(I>>>26)|0,I&=67108863,L$=Math.imul(E0,s$),R$=Math.imul(E0,t$),R$=R$+Math.imul(b$,s$)|0,P$=Math.imul(b$,t$),L$=L$+Math.imul(V,d)|0,R$=R$+Math.imul(V,m$)|0,R$=R$+Math.imul(h,d)|0,P$=P$+Math.imul(h,m$)|0,L$=L$+Math.imul(c$,a$)|0,R$=R$+Math.imul(c$,e$)|0,R$=R$+Math.imul(h$,a$)|0,P$=P$+Math.imul(h$,e$)|0,L$=L$+Math.imul(w$,i$)|0,R$=R$+Math.imul(w$,$Q)|0,R$=R$+Math.imul(p$,i$)|0,P$=P$+Math.imul(p$,$Q)|0,L$=L$+Math.imul(B$,YQ)|0,R$=R$+Math.imul(B$,X)|0,R$=R$+Math.imul(H0,YQ)|0,P$=P$+Math.imul(H0,X)|0,L$=L$+Math.imul(x$,ZQ)|0,R$=R$+Math.imul(x$,D0)|0,R$=R$+Math.imul(G,ZQ)|0,P$=P$+Math.imul(G,D0)|0,L$=L$+Math.imul(g$,VQ)|0,R$=R$+Math.imul(g$,UQ)|0,R$=R$+Math.imul(_$,VQ)|0,P$=P$+Math.imul(_$,UQ)|0,L$=L$+Math.imul(q$,KQ)|0,R$=R$+Math.imul(q$,IQ)|0,R$=R$+Math.imul(j$,KQ)|0,P$=P$+Math.imul(j$,IQ)|0,L$=L$+Math.imul(c,K)|0,R$=R$+Math.imul(c,l)|0,R$=R$+Math.imul(v$,K)|0,P$=P$+Math.imul(v$,l)|0;var o=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(o>>>26)|0,o&=67108863,L$=Math.imul(E0,d),R$=Math.imul(E0,m$),R$=R$+Math.imul(b$,d)|0,P$=Math.imul(b$,m$),L$=L$+Math.imul(V,a$)|0,R$=R$+Math.imul(V,e$)|0,R$=R$+Math.imul(h,a$)|0,P$=P$+Math.imul(h,e$)|0,L$=L$+Math.imul(c$,i$)|0,R$=R$+Math.imul(c$,$Q)|0,R$=R$+Math.imul(h$,i$)|0,P$=P$+Math.imul(h$,$Q)|0,L$=L$+Math.imul(w$,YQ)|0,R$=R$+Math.imul(w$,X)|0,R$=R$+Math.imul(p$,YQ)|0,P$=P$+Math.imul(p$,X)|0,L$=L$+Math.imul(B$,ZQ)|0,R$=R$+Math.imul(B$,D0)|0,R$=R$+Math.imul(H0,ZQ)|0,P$=P$+Math.imul(H0,D0)|0,L$=L$+Math.imul(x$,VQ)|0,R$=R$+Math.imul(x$,UQ)|0,R$=R$+Math.imul(G,VQ)|0,P$=P$+Math.imul(G,UQ)|0,L$=L$+Math.imul(g$,KQ)|0,R$=R$+Math.imul(g$,IQ)|0,R$=R$+Math.imul(_$,KQ)|0,P$=P$+Math.imul(_$,IQ)|0,L$=L$+Math.imul(q$,K)|0,R$=R$+Math.imul(q$,l)|0,R$=R$+Math.imul(j$,K)|0,P$=P$+Math.imul(j$,l)|0;var CQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(CQ>>>26)|0,CQ&=67108863,L$=Math.imul(E0,a$),R$=Math.imul(E0,e$),R$=R$+Math.imul(b$,a$)|0,P$=Math.imul(b$,e$),L$=L$+Math.imul(V,i$)|0,R$=R$+Math.imul(V,$Q)|0,R$=R$+Math.imul(h,i$)|0,P$=P$+Math.imul(h,$Q)|0,L$=L$+Math.imul(c$,YQ)|0,R$=R$+Math.imul(c$,X)|0,R$=R$+Math.imul(h$,YQ)|0,P$=P$+Math.imul(h$,X)|0,L$=L$+Math.imul(w$,ZQ)|0,R$=R$+Math.imul(w$,D0)|0,R$=R$+Math.imul(p$,ZQ)|0,P$=P$+Math.imul(p$,D0)|0,L$=L$+Math.imul(B$,VQ)|0,R$=R$+Math.imul(B$,UQ)|0,R$=R$+Math.imul(H0,VQ)|0,P$=P$+Math.imul(H0,UQ)|0,L$=L$+Math.imul(x$,KQ)|0,R$=R$+Math.imul(x$,IQ)|0,R$=R$+Math.imul(G,KQ)|0,P$=P$+Math.imul(G,IQ)|0,L$=L$+Math.imul(g$,K)|0,R$=R$+Math.imul(g$,l)|0,R$=R$+Math.imul(_$,K)|0,P$=P$+Math.imul(_$,l)|0;var L0=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(L0>>>26)|0,L0&=67108863,L$=Math.imul(E0,i$),R$=Math.imul(E0,$Q),R$=R$+Math.imul(b$,i$)|0,P$=Math.imul(b$,$Q),L$=L$+Math.imul(V,YQ)|0,R$=R$+Math.imul(V,X)|0,R$=R$+Math.imul(h,YQ)|0,P$=P$+Math.imul(h,X)|0,L$=L$+Math.imul(c$,ZQ)|0,R$=R$+Math.imul(c$,D0)|0,R$=R$+Math.imul(h$,ZQ)|0,P$=P$+Math.imul(h$,D0)|0,L$=L$+Math.imul(w$,VQ)|0,R$=R$+Math.imul(w$,UQ)|0,R$=R$+Math.imul(p$,VQ)|0,P$=P$+Math.imul(p$,UQ)|0,L$=L$+Math.imul(B$,KQ)|0,R$=R$+Math.imul(B$,IQ)|0,R$=R$+Math.imul(H0,KQ)|0,P$=P$+Math.imul(H0,IQ)|0,L$=L$+Math.imul(x$,K)|0,R$=R$+Math.imul(x$,l)|0,R$=R$+Math.imul(G,K)|0,P$=P$+Math.imul(G,l)|0;var LQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(LQ>>>26)|0,LQ&=67108863,L$=Math.imul(E0,YQ),R$=Math.imul(E0,X),R$=R$+Math.imul(b$,YQ)|0,P$=Math.imul(b$,X),L$=L$+Math.imul(V,ZQ)|0,R$=R$+Math.imul(V,D0)|0,R$=R$+Math.imul(h,ZQ)|0,P$=P$+Math.imul(h,D0)|0,L$=L$+Math.imul(c$,VQ)|0,R$=R$+Math.imul(c$,UQ)|0,R$=R$+Math.imul(h$,VQ)|0,P$=P$+Math.imul(h$,UQ)|0,L$=L$+Math.imul(w$,KQ)|0,R$=R$+Math.imul(w$,IQ)|0,R$=R$+Math.imul(p$,KQ)|0,P$=P$+Math.imul(p$,IQ)|0,L$=L$+Math.imul(B$,K)|0,R$=R$+Math.imul(B$,l)|0,R$=R$+Math.imul(H0,K)|0,P$=P$+Math.imul(H0,l)|0;var RQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(RQ>>>26)|0,RQ&=67108863,L$=Math.imul(E0,ZQ),R$=Math.imul(E0,D0),R$=R$+Math.imul(b$,ZQ)|0,P$=Math.imul(b$,D0),L$=L$+Math.imul(V,VQ)|0,R$=R$+Math.imul(V,UQ)|0,R$=R$+Math.imul(h,VQ)|0,P$=P$+Math.imul(h,UQ)|0,L$=L$+Math.imul(c$,KQ)|0,R$=R$+Math.imul(c$,IQ)|0,R$=R$+Math.imul(h$,KQ)|0,P$=P$+Math.imul(h$,IQ)|0,L$=L$+Math.imul(w$,K)|0,R$=R$+Math.imul(w$,l)|0,R$=R$+Math.imul(p$,K)|0,P$=P$+Math.imul(p$,l)|0;var PQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(PQ>>>26)|0,PQ&=67108863,L$=Math.imul(E0,VQ),R$=Math.imul(E0,UQ),R$=R$+Math.imul(b$,VQ)|0,P$=Math.imul(b$,UQ),L$=L$+Math.imul(V,KQ)|0,R$=R$+Math.imul(V,IQ)|0,R$=R$+Math.imul(h,KQ)|0,P$=P$+Math.imul(h,IQ)|0,L$=L$+Math.imul(c$,K)|0,R$=R$+Math.imul(c$,l)|0,R$=R$+Math.imul(h$,K)|0,P$=P$+Math.imul(h$,l)|0;var zQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(zQ>>>26)|0,zQ&=67108863,L$=Math.imul(E0,KQ),R$=Math.imul(E0,IQ),R$=R$+Math.imul(b$,KQ)|0,P$=Math.imul(b$,IQ),L$=L$+Math.imul(V,K)|0,R$=R$+Math.imul(V,l)|0,R$=R$+Math.imul(h,K)|0,P$=P$+Math.imul(h,l)|0;var MQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(MQ>>>26)|0,MQ&=67108863,L$=Math.imul(E0,K),R$=Math.imul(E0,l),R$=R$+Math.imul(b$,K)|0,P$=Math.imul(b$,l);var SQ=(C$+L$|0)+((R$&8191)<<13)|0;return C$=(P$+(R$>>>13)|0)+(SQ>>>26)|0,SQ&=67108863,F0[0]=JQ,F0[1]=C0,F0[2]=FQ,F0[3]=AQ,F0[4]=HQ,F0[5]=WQ,F0[6]=EQ,F0[7]=TQ,F0[8]=DQ,F0[9]=I,F0[10]=o,F0[11]=CQ,F0[12]=L0,F0[13]=LQ,F0[14]=RQ,F0[15]=PQ,F0[16]=zQ,F0[17]=MQ,F0[18]=SQ,C$!==0&&(F0[19]=C$,Y.length++),Y};Math.imul||(X$=U$);function K$(E$,T$,Y){Y.negative=T$.negative^E$.negative,Y.length=E$.length+T$.length;for(var f=0,D$=0,F0=0;F0>>26)|0,D$+=C$>>>26,C$&=67108863}Y.words[F0]=L$,f=C$,C$=D$}return f!==0?Y.words[F0]=f:Y.length--,Y.strip()}function I$(E$,T$,Y){var f=new Q;return f.mulp(E$,T$,Y)}$$.prototype.mulTo=function(E$,T$){var Y,f=this.length+E$.length;return this.length===10&&E$.length===10?Y=X$(this,E$,T$):f<63?Y=U$(this,E$,T$):f<1024?Y=K$(this,E$,T$):Y=I$(this,E$,T$),Y};function Q(E$,T$){this.x=E$,this.y=T$}Q.prototype.makeRBT=function(E$){for(var T$=new Array(E$),Y=$$.prototype._countBits(E$)-1,f=0;f>=1;return f},Q.prototype.permute=function(E$,T$,Y,f,D$,F0){for(var C$=0;C$>>1)D$++;return 1<>>13,Y[2*F0+1]=D$&8191,D$=D$>>>13;for(F0=2*T$;F0>=26,T$+=f/67108864|0,T$+=D$>>>26,this.words[Y]=D$&67108863}return T$!==0&&(this.words[Y]=T$,this.length++),this},$$.prototype.muln=function(E$){return this.clone().imuln(E$)},$$.prototype.sqr=function(){return this.mul(this)},$$.prototype.isqr=function(){return this.imul(this.clone())},$$.prototype.pow=function(E$){var T$=V$(E$);if(T$.length===0)return new $$(1);for(var Y=this,f=0;f=0);var T$=E$%26,Y=(E$-T$)/26,f=67108863>>>26-T$<<26-T$,D$;if(T$!==0){var F0=0;for(D$=0;D$>>26-T$}F0&&(this.words[D$]=F0,this.length++)}if(Y!==0){for(D$=this.length-1;D$>=0;D$--)this.words[D$+Y]=this.words[D$];for(D$=0;D$=0);var f;T$?f=(T$-T$%26)/26:f=0;var D$=E$%26,F0=Math.min((E$-D$)/26,this.length),C$=67108863^67108863>>>D$<F0)for(this.length-=F0,R$=0;R$=0&&(P$!==0||R$>=f);R$--){var z$=this.words[R$]|0;this.words[R$]=P$<<26-D$|z$>>>D$,P$=z$&C$}return L$&&P$!==0&&(L$.words[L$.length++]=P$),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},$$.prototype.ishrn=function(E$,T$,Y){return r0(this.negative===0),this.iushrn(E$,T$,Y)},$$.prototype.shln=function(E$){return this.clone().ishln(E$)},$$.prototype.ushln=function(E$){return this.clone().iushln(E$)},$$.prototype.shrn=function(E$){return this.clone().ishrn(E$)},$$.prototype.ushrn=function(E$){return this.clone().iushrn(E$)},$$.prototype.testn=function(E$){r0(typeof E$=="number"&&E$>=0);var T$=E$%26,Y=(E$-T$)/26,f=1<=0);var T$=E$%26,Y=(E$-T$)/26;if(r0(this.negative===0,"imaskn works only with positive numbers"),this.length<=Y)return this;if(T$!==0&&Y++,this.length=Math.min(Y,this.length),T$!==0){var f=67108863^67108863>>>T$<=67108864;T$++)this.words[T$]-=67108864,T$===this.length-1?this.words[T$+1]=1:this.words[T$+1]++;return this.length=Math.max(this.length,T$+1),this},$$.prototype.isubn=function(E$){if(r0(typeof E$=="number"),r0(E$<67108864),E$<0)return this.iaddn(-E$);if(this.negative!==0)return this.negative=0,this.iaddn(E$),this.negative=1,this;if(this.words[0]-=E$,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var T$=0;T$>26)-(L$/67108864|0),this.words[D$+Y]=F0&67108863}for(;D$>26,this.words[D$+Y]=F0&67108863;if(C$===0)return this.strip();for(r0(C$===-1),C$=0,D$=0;D$>26,this.words[D$]=F0&67108863;return this.negative=1,this.strip()},$$.prototype._wordDiv=function(E$,T$){var Y=this.length-E$.length,f=this.clone(),D$=E$,F0=D$.words[D$.length-1]|0,C$=this._countBits(F0);Y=26-C$,Y!==0&&(D$=D$.ushln(Y),f.iushln(Y),F0=D$.words[D$.length-1]|0);var L$=f.length-D$.length,R$;if(T$!=="mod"){R$=new $$(null),R$.length=L$+1,R$.words=new Array(R$.length);for(var P$=0;P$=0;M$--){var S$=(f.words[D$.length+M$]|0)*67108864+(f.words[D$.length+M$-1]|0);for(S$=Math.min(S$/F0|0,67108863),f._ishlnsubmul(D$,S$,M$);f.negative!==0;)S$--,f.negative=0,f._ishlnsubmul(D$,1,M$),f.isZero()||(f.negative^=1);R$&&(R$.words[M$]=S$)}return R$&&R$.strip(),f.strip(),T$!=="div"&&Y!==0&&f.iushrn(Y),{div:R$||null,mod:f}},$$.prototype.divmod=function(E$,T$,Y){if(r0(!E$.isZero()),this.isZero())return{div:new $$(0),mod:new $$(0)};var f,D$,F0;return this.negative!==0&&E$.negative===0?(F0=this.neg().divmod(E$,T$),T$!=="mod"&&(f=F0.div.neg()),T$!=="div"&&(D$=F0.mod.neg(),Y&&D$.negative!==0&&D$.iadd(E$)),{div:f,mod:D$}):this.negative===0&&E$.negative!==0?(F0=this.divmod(E$.neg(),T$),T$!=="mod"&&(f=F0.div.neg()),{div:f,mod:F0.mod}):(this.negative&E$.negative)!==0?(F0=this.neg().divmod(E$.neg(),T$),T$!=="div"&&(D$=F0.mod.neg(),Y&&D$.negative!==0&&D$.isub(E$)),{div:F0.div,mod:D$}):E$.length>this.length||this.cmp(E$)<0?{div:new $$(0),mod:this}:E$.length===1?T$==="div"?{div:this.divn(E$.words[0]),mod:null}:T$==="mod"?{div:null,mod:new $$(this.modn(E$.words[0]))}:{div:this.divn(E$.words[0]),mod:new $$(this.modn(E$.words[0]))}:this._wordDiv(E$,T$)},$$.prototype.div=function(E$){return this.divmod(E$,"div",!1).div},$$.prototype.mod=function(E$){return this.divmod(E$,"mod",!1).mod},$$.prototype.umod=function(E$){return this.divmod(E$,"mod",!0).mod},$$.prototype.divRound=function(E$){var T$=this.divmod(E$);if(T$.mod.isZero())return T$.div;var Y=T$.div.negative!==0?T$.mod.isub(E$):T$.mod,f=E$.ushrn(1),D$=E$.andln(1),F0=Y.cmp(f);return F0<0||D$===1&&F0===0?T$.div:T$.div.negative!==0?T$.div.isubn(1):T$.div.iaddn(1)},$$.prototype.modn=function(E$){r0(E$<=67108863);for(var T$=(1<<26)%E$,Y=0,f=this.length-1;f>=0;f--)Y=(T$*Y+(this.words[f]|0))%E$;return Y},$$.prototype.idivn=function(E$){r0(E$<=67108863);for(var T$=0,Y=this.length-1;Y>=0;Y--){var f=(this.words[Y]|0)+T$*67108864;this.words[Y]=f/E$|0,T$=f%E$}return this.strip()},$$.prototype.divn=function(E$){return this.clone().idivn(E$)},$$.prototype.egcd=function(E$){r0(E$.negative===0),r0(!E$.isZero());var T$=this,Y=E$.clone();T$.negative!==0?T$=T$.umod(E$):T$=T$.clone();for(var f=new $$(1),D$=new $$(0),F0=new $$(0),C$=new $$(1),L$=0;T$.isEven()&&Y.isEven();)T$.iushrn(1),Y.iushrn(1),++L$;for(var R$=Y.clone(),P$=T$.clone();!T$.isZero();){for(var z$=0,M$=1;(T$.words[0]&M$)===0&&z$<26;++z$,M$<<=1);if(z$>0)for(T$.iushrn(z$);z$-- >0;)(f.isOdd()||D$.isOdd())&&(f.iadd(R$),D$.isub(P$)),f.iushrn(1),D$.iushrn(1);for(var S$=0,Z=1;(Y.words[0]&Z)===0&&S$<26;++S$,Z<<=1);if(S$>0)for(Y.iushrn(S$);S$-- >0;)(F0.isOdd()||C$.isOdd())&&(F0.iadd(R$),C$.isub(P$)),F0.iushrn(1),C$.iushrn(1);T$.cmp(Y)>=0?(T$.isub(Y),f.isub(F0),D$.isub(C$)):(Y.isub(T$),F0.isub(f),C$.isub(D$))}return{a:F0,b:C$,gcd:Y.iushln(L$)}},$$.prototype._invmp=function(E$){r0(E$.negative===0),r0(!E$.isZero());var T$=this,Y=E$.clone();T$.negative!==0?T$=T$.umod(E$):T$=T$.clone();for(var f=new $$(1),D$=new $$(0),F0=Y.clone();T$.cmpn(1)>0&&Y.cmpn(1)>0;){for(var C$=0,L$=1;(T$.words[0]&L$)===0&&C$<26;++C$,L$<<=1);if(C$>0)for(T$.iushrn(C$);C$-- >0;)f.isOdd()&&f.iadd(F0),f.iushrn(1);for(var R$=0,P$=1;(Y.words[0]&P$)===0&&R$<26;++R$,P$<<=1);if(R$>0)for(Y.iushrn(R$);R$-- >0;)D$.isOdd()&&D$.iadd(F0),D$.iushrn(1);T$.cmp(Y)>=0?(T$.isub(Y),f.isub(D$)):(Y.isub(T$),D$.isub(f))}var z$;return T$.cmpn(1)===0?z$=f:z$=D$,z$.cmpn(0)<0&&z$.iadd(E$),z$},$$.prototype.gcd=function(E$){if(this.isZero())return E$.abs();if(E$.isZero())return this.abs();var T$=this.clone(),Y=E$.clone();T$.negative=0,Y.negative=0;for(var f=0;T$.isEven()&&Y.isEven();f++)T$.iushrn(1),Y.iushrn(1);do{for(;T$.isEven();)T$.iushrn(1);for(;Y.isEven();)Y.iushrn(1);var D$=T$.cmp(Y);if(D$<0){var F0=T$;T$=Y,Y=F0}else if(D$===0||Y.cmpn(1)===0)break;T$.isub(Y)}while(!0);return Y.iushln(f)},$$.prototype.invm=function(E$){return this.egcd(E$).a.umod(E$)},$$.prototype.isEven=function(){return(this.words[0]&1)===0},$$.prototype.isOdd=function(){return(this.words[0]&1)===1},$$.prototype.andln=function(E$){return this.words[0]&E$},$$.prototype.bincn=function(E$){r0(typeof E$=="number");var T$=E$%26,Y=(E$-T$)/26,f=1<>>26,C$&=67108863,this.words[F0]=C$}return D$!==0&&(this.words[F0]=D$,this.length++),this},$$.prototype.isZero=function(){return this.length===1&&this.words[0]===0},$$.prototype.cmpn=function(E$){var T$=E$<0;if(this.negative!==0&&!T$)return-1;if(this.negative===0&&T$)return 1;this.strip();var Y;if(this.length>1)Y=1;else{T$&&(E$=-E$),r0(E$<=67108863,"Number is too big");var f=this.words[0]|0;Y=f===E$?0:fE$.length)return 1;if(this.length=0;Y--){var f=this.words[Y]|0,D$=E$.words[Y]|0;if(f!==D$){fD$&&(T$=1);break}}return T$},$$.prototype.gtn=function(E$){return this.cmpn(E$)===1},$$.prototype.gt=function(E$){return this.cmp(E$)===1},$$.prototype.gten=function(E$){return this.cmpn(E$)>=0},$$.prototype.gte=function(E$){return this.cmp(E$)>=0},$$.prototype.ltn=function(E$){return this.cmpn(E$)===-1},$$.prototype.lt=function(E$){return this.cmp(E$)===-1},$$.prototype.lten=function(E$){return this.cmpn(E$)<=0},$$.prototype.lte=function(E$){return this.cmp(E$)<=0},$$.prototype.eqn=function(E$){return this.cmpn(E$)===0},$$.prototype.eq=function(E$){return this.cmp(E$)===0},$$.red=function(E$){return new H$(E$)},$$.prototype.toRed=function(E$){return r0(!this.red,"Already a number in reduction context"),r0(this.negative===0,"red works only with positives"),E$.convertTo(this)._forceRed(E$)},$$.prototype.fromRed=function(){return r0(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},$$.prototype._forceRed=function(E$){return this.red=E$,this},$$.prototype.forceRed=function(E$){return r0(!this.red,"Already a number in reduction context"),this._forceRed(E$)},$$.prototype.redAdd=function(E$){return r0(this.red,"redAdd works only with red numbers"),this.red.add(this,E$)},$$.prototype.redIAdd=function(E$){return r0(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,E$)},$$.prototype.redSub=function(E$){return r0(this.red,"redSub works only with red numbers"),this.red.sub(this,E$)},$$.prototype.redISub=function(E$){return r0(this.red,"redISub works only with red numbers"),this.red.isub(this,E$)},$$.prototype.redShl=function(E$){return r0(this.red,"redShl works only with red numbers"),this.red.shl(this,E$)},$$.prototype.redMul=function(E$){return r0(this.red,"redMul works only with red numbers"),this.red._verify2(this,E$),this.red.mul(this,E$)},$$.prototype.redIMul=function(E$){return r0(this.red,"redMul works only with red numbers"),this.red._verify2(this,E$),this.red.imul(this,E$)},$$.prototype.redSqr=function(){return r0(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},$$.prototype.redISqr=function(){return r0(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},$$.prototype.redSqrt=function(){return r0(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},$$.prototype.redInvm=function(){return r0(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},$$.prototype.redNeg=function(){return r0(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},$$.prototype.redPow=function(E$){return r0(this.red&&!E$.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,E$)};var x={k256:null,p224:null,p192:null,p25519:null};function O$(E$,T$){this.name=E$,this.p=new $$(T$,16),this.n=this.p.bitLength(),this.k=new $$(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}O$.prototype._tmp=function(){var E$=new $$(null);return E$.words=new Array(Math.ceil(this.n/13)),E$},O$.prototype.ireduce=function(E$){var T$=E$,Y;do this.split(T$,this.tmp),T$=this.imulK(T$),T$=T$.iadd(this.tmp),Y=T$.bitLength();while(Y>this.n);var f=Y0?T$.isub(this.p):T$.strip!==void 0?T$.strip():T$._strip(),T$},O$.prototype.split=function(E$,T$){E$.iushrn(this.n,0,T$)},O$.prototype.imulK=function(E$){return E$.imul(this.k)};function J0(){O$.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i0(J0,O$),J0.prototype.split=function(E$,T$){for(var Y=4194303,f=Math.min(E$.length,9),D$=0;D$>>22,F0=C$}F0>>>=22,E$.words[D$-10]=F0,F0===0&&E$.length>10?E$.length-=10:E$.length-=9},J0.prototype.imulK=function(E$){E$.words[E$.length]=0,E$.words[E$.length+1]=0,E$.length+=2;for(var T$=0,Y=0;Y>>=26,E$.words[Y]=D$,T$=f}return T$!==0&&(E$.words[E$.length++]=T$),E$},$$._prime=function(E$){if(x[E$])return x[E$];var T$;if(E$==="k256")T$=new J0;else if(E$==="p224")T$=new J$;else if(E$==="p192")T$=new F$;else if(E$==="p25519")T$=new A$;else throw new Error("Unknown prime "+E$);return x[E$]=T$,T$};function H$(E$){if(typeof E$=="string"){var T$=$$._prime(E$);this.m=T$.p,this.prime=T$}else r0(E$.gtn(1),"modulus must be greater than 1"),this.m=E$,this.prime=null}H$.prototype._verify1=function(E$){r0(E$.negative===0,"red works only with positives"),r0(E$.red,"red works only with red numbers")},H$.prototype._verify2=function(E$,T$){r0((E$.negative|T$.negative)===0,"red works only with positives"),r0(E$.red&&E$.red===T$.red,"red works only with red numbers")},H$.prototype.imod=function(E$){return this.prime?this.prime.ireduce(E$)._forceRed(this):E$.umod(this.m)._forceRed(this)},H$.prototype.neg=function(E$){return E$.isZero()?E$.clone():this.m.sub(E$)._forceRed(this)},H$.prototype.add=function(E$,T$){this._verify2(E$,T$);var Y=E$.add(T$);return Y.cmp(this.m)>=0&&Y.isub(this.m),Y._forceRed(this)},H$.prototype.iadd=function(E$,T$){this._verify2(E$,T$);var Y=E$.iadd(T$);return Y.cmp(this.m)>=0&&Y.isub(this.m),Y},H$.prototype.sub=function(E$,T$){this._verify2(E$,T$);var Y=E$.sub(T$);return Y.cmpn(0)<0&&Y.iadd(this.m),Y._forceRed(this)},H$.prototype.isub=function(E$,T$){this._verify2(E$,T$);var Y=E$.isub(T$);return Y.cmpn(0)<0&&Y.iadd(this.m),Y},H$.prototype.shl=function(E$,T$){return this._verify1(E$),this.imod(E$.ushln(T$))},H$.prototype.imul=function(E$,T$){return this._verify2(E$,T$),this.imod(E$.imul(T$))},H$.prototype.mul=function(E$,T$){return this._verify2(E$,T$),this.imod(E$.mul(T$))},H$.prototype.isqr=function(E$){return this.imul(E$,E$.clone())},H$.prototype.sqr=function(E$){return this.mul(E$,E$)},H$.prototype.sqrt=function(E$){if(E$.isZero())return E$.clone();var T$=this.m.andln(3);if(r0(T$%2===1),T$===3){var Y=this.m.add(new $$(1)).iushrn(2);return this.pow(E$,Y)}for(var f=this.m.subn(1),D$=0;!f.isZero()&&f.andln(1)===0;)D$++,f.iushrn(1);r0(!f.isZero());var F0=new $$(1).toRed(this),C$=F0.redNeg(),L$=this.m.subn(1).iushrn(1),R$=this.m.bitLength();for(R$=new $$(2*R$*R$).toRed(this);this.pow(R$,L$).cmp(C$)!==0;)R$.redIAdd(C$);for(var P$=this.pow(R$,f),z$=this.pow(E$,f.addn(1).iushrn(1)),M$=this.pow(E$,f),S$=D$;M$.cmp(F0)!==0;){for(var Z=M$,c=0;Z.cmp(F0)!==0;c++)Z=Z.redSqr();r0(c=0;D$--){for(var P$=T$.words[D$],z$=R$-1;z$>=0;z$--){var M$=P$>>z$&1;if(F0!==f[0]&&(F0=this.sqr(F0)),M$===0&&C$===0){L$=0;continue}C$<<=1,C$|=M$,L$++,!(L$!==Y&&(D$!==0||z$!==0))&&(F0=this.mul(F0,f[C$]),L$=0,C$=0)}R$=26}return F0},H$.prototype.convertTo=function(E$){var T$=E$.umod(this.m);return T$===E$?T$.clone():T$},H$.prototype.convertFrom=function(E$){var T$=E$.clone();return T$.red=null,T$},$$.mont=function(E$){return new W$(E$)};function W$(E$){H$.call(this,E$),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new $$(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)}i0(W$,H$),W$.prototype.convertTo=function(E$){return this.imod(E$.ushln(this.shift))},W$.prototype.convertFrom=function(E$){var T$=this.imod(E$.mul(this.rinv));return T$.red=null,T$},W$.prototype.imul=function(E$,T$){if(E$.isZero()||T$.isZero())return E$.words[0]=0,E$.length=1,E$;var Y=E$.imul(T$),f=Y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),D$=Y.isub(f).iushrn(this.shift),F0=D$;return D$.cmp(this.m)>=0?F0=D$.isub(this.m):D$.cmpn(0)<0&&(F0=D$.iadd(this.m)),F0._forceRed(this)},W$.prototype.mul=function(E$,T$){if(E$.isZero()||T$.isZero())return new $$(0)._forceRed(this);var Y=E$.mul(T$),f=Y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),D$=Y.isub(f).iushrn(this.shift),F0=D$;return D$.cmp(this.m)>=0?F0=D$.isub(this.m):D$.cmpn(0)<0&&(F0=D$.iadd(this.m)),F0._forceRed(this)},W$.prototype.invm=function(E$){var T$=this.imod(E$._invmp(this.m).mul(this.r2));return T$._forceRed(this)}})(typeof m0>"u"||m0,t0)}}),gY=pQ({"node_modules/minimalistic-crypto-utils/lib/utils.js"(t0){var m0=t0;function a0(i0,$$){if(Array.isArray(i0))return i0.slice();if(!i0)return[];var Q$=[];if(typeof i0!="string"){for(var $=0;$>8,O0=N&255;Y$?Q$.push(Y$,O0):Q$.push(O0)}return Q$}m0.toArray=a0;function e0(i0){return i0.length===1?"0"+i0:i0}m0.zero2=e0;function r0(i0){for(var $$="",Q$=0;Q$(V$>>1)-1?K$=(V$>>1)-I$:K$=I$,U$.isubn(K$)):K$=0,G$[X$]=K$,U$.iushrn(1)}return G$}m0.getNAF=i0;function $$(Y$,O0){var Z$=[[],[]];Y$=Y$.clone(),O0=O0.clone();for(var G$=0,V$=0,U$;Y$.cmpn(-G$)>0||O0.cmpn(-V$)>0;){var X$=Y$.andln(3)+G$&3,K$=O0.andln(3)+V$&3;X$===3&&(X$=-1),K$===3&&(K$=-1);var I$;(X$&1)===0?I$=0:(U$=Y$.andln(7)+G$&7,(U$===3||U$===5)&&K$===2?I$=-X$:I$=X$),Z$[0].push(I$);var Q;(K$&1)===0?Q=0:(U$=O0.andln(7)+V$&7,(U$===3||U$===5)&&X$===2?Q=-K$:Q=K$),Z$[1].push(Q),2*G$===I$+1&&(G$=1-G$),2*V$===Q+1&&(V$=1-V$),Y$.iushrn(1),O0.iushrn(1)}return Z$}m0.getJSF=$$;function Q$(Y$,O0,Z$){var G$="_"+O0;Y$.prototype[O0]=function(){return this[G$]!==void 0?this[G$]:this[G$]=Z$.call(this)}}m0.cachedProperty=Q$;function $(Y$){return typeof Y$=="string"?m0.toArray(Y$,"hex"):Y$}m0.parseBytes=$;function N(Y$){return new a0(Y$,"hex","le")}m0.intFromLE=N}}),m=pQ({"node_modules/elliptic/lib/elliptic/curve/base.js"(t0,m0){var a0=kY(),e0=D(),r0=e0.getNAF,i0=e0.getJSF,$$=e0.assert;function Q$(N,Y$){this.type=N,this.p=new a0(Y$.p,16),this.red=Y$.prime?a0.red(Y$.prime):a0.mont(this.p),this.zero=new a0(0).toRed(this.red),this.one=new a0(1).toRed(this.red),this.two=new a0(2).toRed(this.red),this.n=Y$.n&&new a0(Y$.n,16),this.g=Y$.g&&this.pointFromJSON(Y$.g,Y$.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var O0=this.n&&this.p.div(this.n);!O0||O0.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}m0.exports=Q$,Q$.prototype.point=function(){throw new Error("Not implemented")},Q$.prototype.validate=function(){throw new Error("Not implemented")},Q$.prototype._fixedNafMul=function(N,Y$){$$(N.precomputed);var O0=N._getDoubles(),Z$=r0(Y$,1,this._bitLength),G$=(1<=U$;K$--)X$=(X$<<1)+Z$[K$];V$.push(X$)}for(var I$=this.jpoint(null,null,null),Q=this.jpoint(null,null,null),x=G$;x>0;x--){for(U$=0;U$=0;X$--){for(var K$=0;X$>=0&&V$[X$]===0;X$--)K$++;if(X$>=0&&K$++,U$=U$.dblp(K$),X$<0)break;var I$=V$[X$];$$(I$!==0),N.type==="affine"?I$>0?U$=U$.mixedAdd(G$[I$-1>>1]):U$=U$.mixedAdd(G$[-I$-1>>1].neg()):I$>0?U$=U$.add(G$[I$-1>>1]):U$=U$.add(G$[-I$-1>>1].neg())}return N.type==="affine"?U$.toP():U$},Q$.prototype._wnafMulAdd=function(N,Y$,O0,Z$,G$){var V$=this._wnafT1,U$=this._wnafT2,X$=this._wnafT3,K$=0,I$,Q,x;for(I$=0;I$=1;I$-=2){var J0=I$-1,J$=I$;if(V$[J0]!==1||V$[J$]!==1){X$[J0]=r0(O0[J0],V$[J0],this._bitLength),X$[J$]=r0(O0[J$],V$[J$],this._bitLength),K$=Math.max(X$[J0].length,K$),K$=Math.max(X$[J$].length,K$);continue}var F$=[Y$[J0],null,null,Y$[J$]];Y$[J0].y.cmp(Y$[J$].y)===0?(F$[1]=Y$[J0].add(Y$[J$]),F$[2]=Y$[J0].toJ().mixedAdd(Y$[J$].neg())):Y$[J0].y.cmp(Y$[J$].y.redNeg())===0?(F$[1]=Y$[J0].toJ().mixedAdd(Y$[J$]),F$[2]=Y$[J0].add(Y$[J$].neg())):(F$[1]=Y$[J0].toJ().mixedAdd(Y$[J$]),F$[2]=Y$[J0].toJ().mixedAdd(Y$[J$].neg()));var A$=[-3,-1,-5,-7,0,7,5,1,3],H$=i0(O0[J0],O0[J$]);for(K$=Math.max(H$[0].length,K$),X$[J0]=new Array(K$),X$[J$]=new Array(K$),Q=0;Q=0;I$--){for(var f=0;I$>=0;){var D$=!0;for(Q=0;Q=0&&f++,T$=T$.dblp(f),I$<0)break;for(Q=0;Q0?x=U$[Q][F0-1>>1]:F0<0&&(x=U$[Q][-F0-1>>1].neg()),x.type==="affine"?T$=T$.mixedAdd(x):T$=T$.add(x))}}for(I$=0;I$=Math.ceil((N.bitLength()+1)/Y$.step):!1},$.prototype._getDoubles=function(N,Y$){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var O0=[this],Z$=this,G$=0;G$=0&&(J0=I$,J$=Q),x.negative&&(x=x.neg(),O$=O$.neg()),J0.negative&&(J0=J0.neg(),J$=J$.neg()),[{a:x,b:O$},{a:J0,b:J$}]},Q$.prototype._endoSplit=function(Y$){var O0=this.endo.basis,Z$=O0[0],G$=O0[1],V$=G$.b.mul(Y$).divRound(this.n),U$=Z$.b.neg().mul(Y$).divRound(this.n),X$=V$.mul(Z$.a),K$=U$.mul(G$.a),I$=V$.mul(Z$.b),Q=U$.mul(G$.b),x=Y$.sub(X$).sub(K$),O$=I$.add(Q).neg();return{k1:x,k2:O$}},Q$.prototype.pointFromX=function(Y$,O0){Y$=new e0(Y$,16),Y$.red||(Y$=Y$.toRed(this.red));var Z$=Y$.redSqr().redMul(Y$).redIAdd(Y$.redMul(this.a)).redIAdd(this.b),G$=Z$.redSqrt();if(G$.redSqr().redSub(Z$).cmp(this.zero)!==0)throw new Error("invalid point");var V$=G$.fromRed().isOdd();return(O0&&!V$||!O0&&V$)&&(G$=G$.redNeg()),this.point(Y$,G$)},Q$.prototype.validate=function(Y$){if(Y$.inf)return!0;var{x:O0,y:Z$}=Y$,G$=this.a.redMul(O0),V$=O0.redSqr().redMul(O0).redIAdd(G$).redIAdd(this.b);return Z$.redSqr().redISub(V$).cmpn(0)===0},Q$.prototype._endoWnafMulAdd=function(Y$,O0,Z$){for(var G$=this._endoWnafT1,V$=this._endoWnafT2,U$=0;U$":""},$.prototype.isInfinity=function(){return this.inf},$.prototype.add=function(Y$){if(this.inf)return Y$;if(Y$.inf)return this;if(this.eq(Y$))return this.dbl();if(this.neg().eq(Y$))return this.curve.point(null,null);if(this.x.cmp(Y$.x)===0)return this.curve.point(null,null);var O0=this.y.redSub(Y$.y);O0.cmpn(0)!==0&&(O0=O0.redMul(this.x.redSub(Y$.x).redInvm()));var Z$=O0.redSqr().redISub(this.x).redISub(Y$.x),G$=O0.redMul(this.x.redSub(Z$)).redISub(this.y);return this.curve.point(Z$,G$)},$.prototype.dbl=function(){if(this.inf)return this;var Y$=this.y.redAdd(this.y);if(Y$.cmpn(0)===0)return this.curve.point(null,null);var O0=this.curve.a,Z$=this.x.redSqr(),G$=Y$.redInvm(),V$=Z$.redAdd(Z$).redIAdd(Z$).redIAdd(O0).redMul(G$),U$=V$.redSqr().redISub(this.x.redAdd(this.x)),X$=V$.redMul(this.x.redSub(U$)).redISub(this.y);return this.curve.point(U$,X$)},$.prototype.getX=function(){return this.x.fromRed()},$.prototype.getY=function(){return this.y.fromRed()},$.prototype.mul=function(Y$){return Y$=new e0(Y$,16),this.isInfinity()?this:this._hasDoubles(Y$)?this.curve._fixedNafMul(this,Y$):this.curve.endo?this.curve._endoWnafMulAdd([this],[Y$]):this.curve._wnafMul(this,Y$)},$.prototype.mulAdd=function(Y$,O0,Z$){var G$=[this,O0],V$=[Y$,Z$];return this.curve.endo?this.curve._endoWnafMulAdd(G$,V$):this.curve._wnafMulAdd(1,G$,V$,2)},$.prototype.jmulAdd=function(Y$,O0,Z$){var G$=[this,O0],V$=[Y$,Z$];return this.curve.endo?this.curve._endoWnafMulAdd(G$,V$,!0):this.curve._wnafMulAdd(1,G$,V$,2,!0)},$.prototype.eq=function(Y$){return this===Y$||this.inf===Y$.inf&&(this.inf||this.x.cmp(Y$.x)===0&&this.y.cmp(Y$.y)===0)},$.prototype.neg=function(Y$){if(this.inf)return this;var O0=this.curve.point(this.x,this.y.redNeg());if(Y$&&this.precomputed){var Z$=this.precomputed,G$=function(V$){return V$.neg()};O0.precomputed={naf:Z$.naf&&{wnd:Z$.naf.wnd,points:Z$.naf.points.map(G$)},doubles:Z$.doubles&&{step:Z$.doubles.step,points:Z$.doubles.points.map(G$)}}}return O0},$.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var Y$=this.curve.jpoint(this.x,this.y,this.curve.one);return Y$};function N(Y$,O0,Z$,G$){i0.BasePoint.call(this,Y$,"jacobian"),O0===null&&Z$===null&&G$===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new e0(0)):(this.x=new e0(O0,16),this.y=new e0(Z$,16),this.z=new e0(G$,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}r0(N,i0.BasePoint),Q$.prototype.jpoint=function(Y$,O0,Z$){return new N(this,Y$,O0,Z$)},N.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var Y$=this.z.redInvm(),O0=Y$.redSqr(),Z$=this.x.redMul(O0),G$=this.y.redMul(O0).redMul(Y$);return this.curve.point(Z$,G$)},N.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},N.prototype.add=function(Y$){if(this.isInfinity())return Y$;if(Y$.isInfinity())return this;var O0=Y$.z.redSqr(),Z$=this.z.redSqr(),G$=this.x.redMul(O0),V$=Y$.x.redMul(Z$),U$=this.y.redMul(O0.redMul(Y$.z)),X$=Y$.y.redMul(Z$.redMul(this.z)),K$=G$.redSub(V$),I$=U$.redSub(X$);if(K$.cmpn(0)===0)return I$.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var Q=K$.redSqr(),x=Q.redMul(K$),O$=G$.redMul(Q),J0=I$.redSqr().redIAdd(x).redISub(O$).redISub(O$),J$=I$.redMul(O$.redISub(J0)).redISub(U$.redMul(x)),F$=this.z.redMul(Y$.z).redMul(K$);return this.curve.jpoint(J0,J$,F$)},N.prototype.mixedAdd=function(Y$){if(this.isInfinity())return Y$.toJ();if(Y$.isInfinity())return this;var O0=this.z.redSqr(),Z$=this.x,G$=Y$.x.redMul(O0),V$=this.y,U$=Y$.y.redMul(O0).redMul(this.z),X$=Z$.redSub(G$),K$=V$.redSub(U$);if(X$.cmpn(0)===0)return K$.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var I$=X$.redSqr(),Q=I$.redMul(X$),x=Z$.redMul(I$),O$=K$.redSqr().redIAdd(Q).redISub(x).redISub(x),J0=K$.redMul(x.redISub(O$)).redISub(V$.redMul(Q)),J$=this.z.redMul(X$);return this.curve.jpoint(O$,J0,J$)},N.prototype.dblp=function(Y$){if(Y$===0)return this;if(this.isInfinity())return this;if(!Y$)return this.dbl();var O0;if(this.curve.zeroA||this.curve.threeA){var Z$=this;for(O0=0;O0=0)return!1;if(Z$.redIAdd(V$),this.x.cmp(Z$)===0)return!0}},N.prototype.inspect=function(){return this.isInfinity()?"":""},N.prototype.isInfinity=function(){return this.z.cmpn(0)===0}}}),B0=pQ({"node_modules/elliptic/lib/elliptic/curve/mont.js"(t0,m0){var a0=kY(),e0=dQ(),r0=m(),i0=D();function $$($){r0.call(this,"mont",$),this.a=new a0($.a,16).toRed(this.red),this.b=new a0($.b,16).toRed(this.red),this.i4=new a0(4).toRed(this.red).redInvm(),this.two=new a0(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}e0($$,r0),m0.exports=$$,$$.prototype.validate=function($){var N=$.normalize().x,Y$=N.redSqr(),O0=Y$.redMul(N).redAdd(Y$.redMul(this.a)).redAdd(N),Z$=O0.redSqrt();return Z$.redSqr().cmp(O0)===0};function Q$($,N,Y$){r0.BasePoint.call(this,$,"projective"),N===null&&Y$===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new a0(N,16),this.z=new a0(Y$,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}e0(Q$,r0.BasePoint),$$.prototype.decodePoint=function($,N){return this.point(i0.toArray($,N),1)},$$.prototype.point=function($,N){return new Q$(this,$,N)},$$.prototype.pointFromJSON=function($){return Q$.fromJSON(this,$)},Q$.prototype.precompute=function(){},Q$.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},Q$.fromJSON=function($,N){return new Q$($,N[0],N[1]||$.one)},Q$.prototype.inspect=function(){return this.isInfinity()?"":""},Q$.prototype.isInfinity=function(){return this.z.cmpn(0)===0},Q$.prototype.dbl=function(){var $=this.x.redAdd(this.z),N=$.redSqr(),Y$=this.x.redSub(this.z),O0=Y$.redSqr(),Z$=N.redSub(O0),G$=N.redMul(O0),V$=Z$.redMul(O0.redAdd(this.curve.a24.redMul(Z$)));return this.curve.point(G$,V$)},Q$.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},Q$.prototype.diffAdd=function($,N){var Y$=this.x.redAdd(this.z),O0=this.x.redSub(this.z),Z$=$.x.redAdd($.z),G$=$.x.redSub($.z),V$=G$.redMul(Y$),U$=Z$.redMul(O0),X$=N.z.redMul(V$.redAdd(U$).redSqr()),K$=N.x.redMul(V$.redISub(U$).redSqr());return this.curve.point(X$,K$)},Q$.prototype.mul=function($){for(var N=$.clone(),Y$=this,O0=this.curve.point(null,null),Z$=this,G$=[];N.cmpn(0)!==0;N.iushrn(1))G$.push(N.andln(1));for(var V$=G$.length-1;V$>=0;V$--)G$[V$]===0?(Y$=Y$.diffAdd(O0,Z$),O0=O0.dbl()):(O0=Y$.diffAdd(O0,Z$),Y$=Y$.dbl());return O0},Q$.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},Q$.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},Q$.prototype.eq=function($){return this.getX().cmp($.getX())===0},Q$.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},Q$.prototype.getX=function(){return this.normalize(),this.x.fromRed()}}}),_Y=pQ({"node_modules/elliptic/lib/elliptic/curve/edwards.js"(t0,m0){var a0=D(),e0=kY(),r0=dQ(),i0=m(),$$=a0.assert;function Q$(N){this.twisted=(N.a|0)!==1,this.mOneA=this.twisted&&(N.a|0)===-1,this.extended=this.mOneA,i0.call(this,"edwards",N),this.a=new e0(N.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new e0(N.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new e0(N.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),$$(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(N.c|0)===1}r0(Q$,i0),m0.exports=Q$,Q$.prototype._mulA=function(N){return this.mOneA?N.redNeg():this.a.redMul(N)},Q$.prototype._mulC=function(N){return this.oneC?N:this.c.redMul(N)},Q$.prototype.jpoint=function(N,Y$,O0,Z$){return this.point(N,Y$,O0,Z$)},Q$.prototype.pointFromX=function(N,Y$){N=new e0(N,16),N.red||(N=N.toRed(this.red));var O0=N.redSqr(),Z$=this.c2.redSub(this.a.redMul(O0)),G$=this.one.redSub(this.c2.redMul(this.d).redMul(O0)),V$=Z$.redMul(G$.redInvm()),U$=V$.redSqrt();if(U$.redSqr().redSub(V$).cmp(this.zero)!==0)throw new Error("invalid point");var X$=U$.fromRed().isOdd();return(Y$&&!X$||!Y$&&X$)&&(U$=U$.redNeg()),this.point(N,U$)},Q$.prototype.pointFromY=function(N,Y$){N=new e0(N,16),N.red||(N=N.toRed(this.red));var O0=N.redSqr(),Z$=O0.redSub(this.c2),G$=O0.redMul(this.d).redMul(this.c2).redSub(this.a),V$=Z$.redMul(G$.redInvm());if(V$.cmp(this.zero)===0){if(Y$)throw new Error("invalid point");return this.point(this.zero,N)}var U$=V$.redSqrt();if(U$.redSqr().redSub(V$).cmp(this.zero)!==0)throw new Error("invalid point");return U$.fromRed().isOdd()!==Y$&&(U$=U$.redNeg()),this.point(U$,N)},Q$.prototype.validate=function(N){if(N.isInfinity())return!0;N.normalize();var Y$=N.x.redSqr(),O0=N.y.redSqr(),Z$=Y$.redMul(this.a).redAdd(O0),G$=this.c2.redMul(this.one.redAdd(this.d.redMul(Y$).redMul(O0)));return Z$.cmp(G$)===0};function $(N,Y$,O0,Z$,G$){i0.BasePoint.call(this,N,"projective"),Y$===null&&O0===null&&Z$===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new e0(Y$,16),this.y=new e0(O0,16),this.z=Z$?new e0(Z$,16):this.curve.one,this.t=G$&&new e0(G$,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}r0($,i0.BasePoint),Q$.prototype.pointFromJSON=function(N){return $.fromJSON(this,N)},Q$.prototype.point=function(N,Y$,O0,Z$){return new $(this,N,Y$,O0,Z$)},$.fromJSON=function(N,Y$){return new $(N,Y$[0],Y$[1],Y$[2])},$.prototype.inspect=function(){return this.isInfinity()?"":""},$.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},$.prototype._extDbl=function(){var N=this.x.redSqr(),Y$=this.y.redSqr(),O0=this.z.redSqr();O0=O0.redIAdd(O0);var Z$=this.curve._mulA(N),G$=this.x.redAdd(this.y).redSqr().redISub(N).redISub(Y$),V$=Z$.redAdd(Y$),U$=V$.redSub(O0),X$=Z$.redSub(Y$),K$=G$.redMul(U$),I$=V$.redMul(X$),Q=G$.redMul(X$),x=U$.redMul(V$);return this.curve.point(K$,I$,x,Q)},$.prototype._projDbl=function(){var N=this.x.redAdd(this.y).redSqr(),Y$=this.x.redSqr(),O0=this.y.redSqr(),Z$,G$,V$,U$,X$,K$;if(this.curve.twisted){U$=this.curve._mulA(Y$);var I$=U$.redAdd(O0);this.zOne?(Z$=N.redSub(Y$).redSub(O0).redMul(I$.redSub(this.curve.two)),G$=I$.redMul(U$.redSub(O0)),V$=I$.redSqr().redSub(I$).redSub(I$)):(X$=this.z.redSqr(),K$=I$.redSub(X$).redISub(X$),Z$=N.redSub(Y$).redISub(O0).redMul(K$),G$=I$.redMul(U$.redSub(O0)),V$=I$.redMul(K$))}else U$=Y$.redAdd(O0),X$=this.curve._mulC(this.z).redSqr(),K$=U$.redSub(X$).redSub(X$),Z$=this.curve._mulC(N.redISub(U$)).redMul(K$),G$=this.curve._mulC(U$).redMul(Y$.redISub(O0)),V$=U$.redMul(K$);return this.curve.point(Z$,G$,V$)},$.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},$.prototype._extAdd=function(N){var Y$=this.y.redSub(this.x).redMul(N.y.redSub(N.x)),O0=this.y.redAdd(this.x).redMul(N.y.redAdd(N.x)),Z$=this.t.redMul(this.curve.dd).redMul(N.t),G$=this.z.redMul(N.z.redAdd(N.z)),V$=O0.redSub(Y$),U$=G$.redSub(Z$),X$=G$.redAdd(Z$),K$=O0.redAdd(Y$),I$=V$.redMul(U$),Q=X$.redMul(K$),x=V$.redMul(K$),O$=U$.redMul(X$);return this.curve.point(I$,Q,O$,x)},$.prototype._projAdd=function(N){var Y$=this.z.redMul(N.z),O0=Y$.redSqr(),Z$=this.x.redMul(N.x),G$=this.y.redMul(N.y),V$=this.curve.d.redMul(Z$).redMul(G$),U$=O0.redSub(V$),X$=O0.redAdd(V$),K$=this.x.redAdd(this.y).redMul(N.x.redAdd(N.y)).redISub(Z$).redISub(G$),I$=Y$.redMul(U$).redMul(K$),Q,x;return this.curve.twisted?(Q=Y$.redMul(X$).redMul(G$.redSub(this.curve._mulA(Z$))),x=U$.redMul(X$)):(Q=Y$.redMul(X$).redMul(G$.redSub(Z$)),x=this.curve._mulC(U$).redMul(X$)),this.curve.point(I$,Q,x)},$.prototype.add=function(N){return this.isInfinity()?N:N.isInfinity()?this:this.curve.extended?this._extAdd(N):this._projAdd(N)},$.prototype.mul=function(N){return this._hasDoubles(N)?this.curve._fixedNafMul(this,N):this.curve._wnafMul(this,N)},$.prototype.mulAdd=function(N,Y$,O0){return this.curve._wnafMulAdd(1,[this,Y$],[N,O0],2,!1)},$.prototype.jmulAdd=function(N,Y$,O0){return this.curve._wnafMulAdd(1,[this,Y$],[N,O0],2,!0)},$.prototype.normalize=function(){if(this.zOne)return this;var N=this.z.redInvm();return this.x=this.x.redMul(N),this.y=this.y.redMul(N),this.t&&(this.t=this.t.redMul(N)),this.z=this.curve.one,this.zOne=!0,this},$.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},$.prototype.getX=function(){return this.normalize(),this.x.fromRed()},$.prototype.getY=function(){return this.normalize(),this.y.fromRed()},$.prototype.eq=function(N){return this===N||this.getX().cmp(N.getX())===0&&this.getY().cmp(N.getY())===0},$.prototype.eqXToP=function(N){var Y$=N.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(Y$)===0)return!0;for(var O0=N.clone(),Z$=this.curve.redN.redMul(this.z);;){if(O0.iadd(this.curve.n),O0.cmp(this.curve.p)>=0)return!1;if(Y$.redIAdd(Z$),this.x.cmp(Y$)===0)return!0}},$.prototype.toP=$.prototype.normalize,$.prototype.mixedAdd=$.prototype.add}}),NY=pQ({"node_modules/elliptic/lib/elliptic/curve/index.js"(t0){var m0=t0;m0.base=m(),m0.short=x0(),m0.mont=B0(),m0.edwards=_Y()}}),xY=pQ({"node_modules/hash.js/lib/hash/utils.js"(t0){var m0=v0(),a0=dQ();t0.inherits=a0;function e0(T$,Y){return(T$.charCodeAt(Y)&64512)!==55296||Y<0||Y+1>=T$.length?!1:(T$.charCodeAt(Y+1)&64512)===56320}function r0(T$,Y){if(Array.isArray(T$))return T$.slice();if(!T$)return[];var f=[];if(typeof T$=="string")if(Y){if(Y==="hex")for(T$=T$.replace(/[^a-z0-9]+/gi,""),T$.length%2!==0&&(T$="0"+T$),F0=0;F0>6|192,f[D$++]=C$&63|128):e0(T$,F0)?(C$=65536+((C$&1023)<<10)+(T$.charCodeAt(++F0)&1023),f[D$++]=C$>>18|240,f[D$++]=C$>>12&63|128,f[D$++]=C$>>6&63|128,f[D$++]=C$&63|128):(f[D$++]=C$>>12|224,f[D$++]=C$>>6&63|128,f[D$++]=C$&63|128)}else for(F0=0;F0>>24|T$>>>8&65280|T$<<8&16711680|(T$&255)<<24;return Y>>>0}t0.htonl=$$;function Q$(T$,Y){for(var f="",D$=0;D$>>0}return C$}t0.join32=Y$;function O0(T$,Y){for(var f=new Array(T$.length*4),D$=0,F0=0;D$>>24,f[F0+1]=C$>>>16&255,f[F0+2]=C$>>>8&255,f[F0+3]=C$&255):(f[F0+3]=C$>>>24,f[F0+2]=C$>>>16&255,f[F0+1]=C$>>>8&255,f[F0]=C$&255)}return f}t0.split32=O0;function Z$(T$,Y){return T$>>>Y|T$<<32-Y}t0.rotr32=Z$;function G$(T$,Y){return T$<>>32-Y}t0.rotl32=G$;function V$(T$,Y){return T$+Y>>>0}t0.sum32=V$;function U$(T$,Y,f){return T$+Y+f>>>0}t0.sum32_3=U$;function X$(T$,Y,f,D$){return T$+Y+f+D$>>>0}t0.sum32_4=X$;function K$(T$,Y,f,D$,F0){return T$+Y+f+D$+F0>>>0}t0.sum32_5=K$;function I$(T$,Y,f,D$){var F0=T$[Y],C$=T$[Y+1],L$=D$+C$>>>0,R$=(L$>>0,T$[Y+1]=L$}t0.sum64=I$;function Q(T$,Y,f,D$){var F0=Y+D$>>>0,C$=(F0>>0}t0.sum64_hi=Q;function x(T$,Y,f,D$){var F0=Y+D$;return F0>>>0}t0.sum64_lo=x;function O$(T$,Y,f,D$,F0,C$,L$,R$){var P$=0,z$=Y;z$=z$+D$>>>0,P$+=z$>>0,P$+=z$>>0,P$+=z$>>0}t0.sum64_4_hi=O$;function J0(T$,Y,f,D$,F0,C$,L$,R$){var P$=Y+D$+C$+R$;return P$>>>0}t0.sum64_4_lo=J0;function J$(T$,Y,f,D$,F0,C$,L$,R$,P$,z$){var M$=0,S$=Y;S$=S$+D$>>>0,M$+=S$>>0,M$+=S$>>0,M$+=S$>>0,M$+=S$>>0}t0.sum64_5_hi=J$;function F$(T$,Y,f,D$,F0,C$,L$,R$,P$,z$){var M$=Y+D$+C$+R$+z$;return M$>>>0}t0.sum64_5_lo=F$;function A$(T$,Y,f){var D$=Y<<32-f|T$>>>f;return D$>>>0}t0.rotr64_hi=A$;function H$(T$,Y,f){var D$=T$<<32-f|Y>>>f;return D$>>>0}t0.rotr64_lo=H$;function W$(T$,Y,f){return T$>>>f}t0.shr64_hi=W$;function E$(T$,Y,f){var D$=T$<<32-f|Y>>>f;return D$>>>0}t0.shr64_lo=E$}}),BY=pQ({"node_modules/hash.js/lib/hash/common.js"(t0){var m0=xY(),a0=v0();function e0(){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}t0.BlockHash=e0,e0.prototype.update=function(r0,i0){if(r0=m0.toArray(r0,i0),this.pending?this.pending=this.pending.concat(r0):this.pending=r0,this.pendingTotal+=r0.length,this.pending.length>=this._delta8){r0=this.pending;var $$=r0.length%this._delta8;this.pending=r0.slice(r0.length-$$,r0.length),this.pending.length===0&&(this.pending=null),r0=m0.join32(r0,0,r0.length-$$,this.endian);for(var Q$=0;Q$>>24&255,Q$[$++]=r0>>>16&255,Q$[$++]=r0>>>8&255,Q$[$++]=r0&255}else for(Q$[$++]=r0&255,Q$[$++]=r0>>>8&255,Q$[$++]=r0>>>16&255,Q$[$++]=r0>>>24&255,Q$[$++]=0,Q$[$++]=0,Q$[$++]=0,Q$[$++]=0,N=8;N>>3}t0.g0_256=N;function Y$(O0){return a0(O0,17)^a0(O0,19)^O0>>>10}t0.g1_256=Y$}}),wY=pQ({"node_modules/hash.js/lib/hash/sha/1.js"(t0,m0){var a0=xY(),e0=BY(),r0=yY(),i0=a0.rotl32,$$=a0.sum32,Q$=a0.sum32_5,$=r0.ft_1,N=e0.BlockHash,Y$=[1518500249,1859775393,2400959708,3395469782];function O0(){if(!(this instanceof O0))return new O0;N.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}a0.inherits(O0,N),m0.exports=O0,O0.blockSize=512,O0.outSize=160,O0.hmacStrength=80,O0.padLength=64,O0.prototype._update=function(Z$,G$){for(var V$=this.W,U$=0;U$<16;U$++)V$[U$]=Z$[G$+U$];for(;U$this.blockSize&&(i0=new this.Hash().update(i0).digest()),e0(i0.length<=this.blockSize);for(var $$=i0.length;$$=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(Q$,$,N)}m0.exports=i0,i0.prototype._init=function($$,Q$,$){var N=$$.concat(Q$).concat($);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var Y$=0;Y$=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update($$.concat($||[])),this._reseed=1},i0.prototype.generate=function($$,Q$,$,N){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof Q$!="string"&&(N=$,$=Q$,Q$=null),$&&($=e0.toArray($,N||"hex"),this._update($));for(var Y$=[];Y$.length<$$;)this.V=this._hmac().update(this.V).digest(),Y$=Y$.concat(this.V);var O0=Y$.slice(0,$$);return this._update($),this._reseed++,e0.encode(O0,Q$)}}}),oY=pQ({"node_modules/elliptic/lib/elliptic/ec/key.js"(t0,m0){var a0=kY(),e0=D(),r0=e0.assert;function i0($$,Q$){this.ec=$$,this.priv=null,this.pub=null,Q$.priv&&this._importPrivate(Q$.priv,Q$.privEnc),Q$.pub&&this._importPublic(Q$.pub,Q$.pubEnc)}m0.exports=i0,i0.fromPublic=function($$,Q$,$){return Q$ instanceof i0?Q$:new i0($$,{pub:Q$,pubEnc:$})},i0.fromPrivate=function($$,Q$,$){return Q$ instanceof i0?Q$:new i0($$,{priv:Q$,privEnc:$})},i0.prototype.validate=function(){var $$=this.getPublic();return $$.isInfinity()?{result:!1,reason:"Invalid public key"}:$$.validate()?$$.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},i0.prototype.getPublic=function($$,Q$){return typeof $$=="string"&&(Q$=$$,$$=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),Q$?this.pub.encode(Q$,$$):this.pub},i0.prototype.getPrivate=function($$){return $$==="hex"?this.priv.toString(16,2):this.priv},i0.prototype._importPrivate=function($$,Q$){this.priv=new a0($$,Q$||16),this.priv=this.priv.umod(this.ec.curve.n)},i0.prototype._importPublic=function($$,Q$){if($$.x||$$.y){this.ec.curve.type==="mont"?r0($$.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&r0($$.x&&$$.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point($$.x,$$.y);return}this.pub=this.ec.curve.decodePoint($$,Q$)},i0.prototype.derive=function($$){return $$.validate()||r0($$.validate(),"public point not validated"),$$.mul(this.priv).getX()},i0.prototype.sign=function($$,Q$,$){return this.ec.sign($$,this,Q$,$)},i0.prototype.verify=function($$,Q$){return this.ec.verify($$,Q$,this)},i0.prototype.inspect=function(){return""}}}),L=pQ({"node_modules/elliptic/lib/elliptic/ec/signature.js"(t0,m0){var a0=kY(),e0=D(),r0=e0.assert;function i0(Y$,O0){if(Y$ instanceof i0)return Y$;this._importDER(Y$,O0)||(r0(Y$.r&&Y$.s,"Signature without r or s"),this.r=new a0(Y$.r,16),this.s=new a0(Y$.s,16),Y$.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=Y$.recoveryParam)}m0.exports=i0;function $$(){this.place=0}function Q$(Y$,O0){var Z$=Y$[O0.place++];if(!(Z$&128))return Z$;var G$=Z$&15;if(G$===0||G$>4)return!1;for(var V$=0,U$=0,X$=O0.place;U$>>=0;return V$<=127?!1:(O0.place=X$,V$)}function $(Y$){for(var O0=0,Z$=Y$.length-1;!Y$[O0]&&!(Y$[O0+1]&128)&&O0>>3);for(Y$.push(Z$|128);--Z$;)Y$.push(O0>>>(Z$<<3)&255);Y$.push(O0)}i0.prototype.toDER=function(Y$){var O0=this.r.toArray(),Z$=this.s.toArray();for(O0[0]&128&&(O0=[0].concat(O0)),Z$[0]&128&&(Z$=[0].concat(Z$)),O0=$(O0),Z$=$(Z$);!Z$[0]&&!(Z$[1]&128);)Z$=Z$.slice(1);var G$=[2];N(G$,O0.length),G$=G$.concat(O0),G$.push(2),N(G$,Z$.length);var V$=G$.concat(Z$),U$=[48];return N(U$,V$.length),U$=U$.concat(V$),e0.encode(U$,Y$)}}}),e=pQ({"node_modules/elliptic/lib/elliptic/ec/index.js"(t0,m0){var a0=kY(),e0=lY(),r0=D(),i0=bY(),$$=T(),Q$=r0.assert,$=oY(),N=L();function Y$(O0){if(!(this instanceof Y$))return new Y$(O0);typeof O0=="string"&&(Q$(Object.prototype.hasOwnProperty.call(i0,O0),"Unknown curve "+O0),O0=i0[O0]),O0 instanceof i0.PresetCurve&&(O0={curve:O0}),this.curve=O0.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=O0.curve.g,this.g.precompute(O0.curve.n.bitLength()+1),this.hash=O0.hash||O0.curve.hash}m0.exports=Y$,Y$.prototype.keyPair=function(O0){return new $(this,O0)},Y$.prototype.keyFromPrivate=function(O0,Z$){return $.fromPrivate(this,O0,Z$)},Y$.prototype.keyFromPublic=function(O0,Z$){return $.fromPublic(this,O0,Z$)},Y$.prototype.genKeyPair=function(O0){O0||(O0={});for(var Z$=new e0({hash:this.hash,pers:O0.pers,persEnc:O0.persEnc||"utf8",entropy:O0.entropy||$$(this.hash.hmacStrength),entropyEnc:O0.entropy&&O0.entropyEnc||"utf8",nonce:this.n.toArray()}),G$=this.n.byteLength(),V$=this.n.sub(new a0(2));;){var U$=new a0(Z$.generate(G$));if(!(U$.cmp(V$)>0))return U$.iaddn(1),this.keyFromPrivate(U$)}},Y$.prototype._truncateToN=function(O0,Z$){var G$=O0.byteLength()*8-this.n.bitLength();return G$>0&&(O0=O0.ushrn(G$)),!Z$&&O0.cmp(this.n)>=0?O0.sub(this.n):O0},Y$.prototype.sign=function(O0,Z$,G$,V$){typeof G$=="object"&&(V$=G$,G$=null),V$||(V$={}),Z$=this.keyFromPrivate(Z$,G$),O0=this._truncateToN(new a0(O0,16));for(var U$=this.n.byteLength(),X$=Z$.getPrivate().toArray("be",U$),K$=O0.toArray("be",U$),I$=new e0({hash:this.hash,entropy:X$,nonce:K$,pers:V$.pers,persEnc:V$.persEnc||"utf8"}),Q=this.n.sub(new a0(1)),x=0;;x++){var O$=V$.k?V$.k(x):new a0(I$.generate(this.n.byteLength()));if(O$=this._truncateToN(O$,!0),!(O$.cmpn(1)<=0||O$.cmp(Q)>=0)){var J0=this.g.mul(O$);if(!J0.isInfinity()){var J$=J0.getX(),F$=J$.umod(this.n);if(F$.cmpn(0)!==0){var A$=O$.invm(this.n).mul(F$.mul(Z$.getPrivate()).iadd(O0));if(A$=A$.umod(this.n),A$.cmpn(0)!==0){var H$=(J0.getY().isOdd()?1:0)|(J$.cmp(F$)!==0?2:0);return V$.canonical&&A$.cmp(this.nh)>0&&(A$=this.n.sub(A$),H$^=1),new N({r:F$,s:A$,recoveryParam:H$})}}}}}},Y$.prototype.verify=function(O0,Z$,G$,V$){O0=this._truncateToN(new a0(O0,16)),G$=this.keyFromPublic(G$,V$),Z$=new N(Z$,"hex");var{r:U$,s:X$}=Z$;if(U$.cmpn(1)<0||U$.cmp(this.n)>=0||X$.cmpn(1)<0||X$.cmp(this.n)>=0)return!1;var K$=X$.invm(this.n),I$=K$.mul(O0).umod(this.n),Q=K$.mul(U$).umod(this.n),x;return this.curve._maxwellTrick?(x=this.g.jmulAdd(I$,G$.getPublic(),Q),x.isInfinity()?!1:x.eqXToP(U$)):(x=this.g.mulAdd(I$,G$.getPublic(),Q),x.isInfinity()?!1:x.getX().umod(this.n).cmp(U$)===0)},Y$.prototype.recoverPubKey=function(O0,Z$,G$,V$){Q$((3&G$)===G$,"The recovery param is more than two bits"),Z$=new N(Z$,V$);var U$=this.n,X$=new a0(O0),K$=Z$.r,I$=Z$.s,Q=G$&1,x=G$>>1;if(K$.cmp(this.curve.p.umod(this.curve.n))>=0&&x)throw new Error("Unable to find sencond key candinate");x?K$=this.curve.pointFromX(K$.add(this.curve.n),Q):K$=this.curve.pointFromX(K$,Q);var O$=Z$.r.invm(U$),J0=U$.sub(X$).mul(O$).umod(U$),J$=I$.mul(O$).umod(U$);return this.g.mulAdd(J0,K$,J$)},Y$.prototype.getKeyRecoveryParam=function(O0,Z$,G$,V$){if(Z$=new N(Z$,V$),Z$.recoveryParam!==null)return Z$.recoveryParam;for(var U$=0;U$<4;U$++){var X$;try{X$=this.recoverPubKey(O0,Z$,U$)}catch{continue}if(X$.eq(G$))return U$}throw new Error("Unable to find valid recovery factor")}}}),p0=pQ({"node_modules/elliptic/lib/elliptic/eddsa/key.js"(t0,m0){var a0=D(),e0=a0.assert,r0=a0.parseBytes,i0=a0.cachedProperty;function $$(Q$,$){this.eddsa=Q$,this._secret=r0($.secret),Q$.isPoint($.pub)?this._pub=$.pub:this._pubBytes=r0($.pub)}$$.fromPublic=function(Q$,$){return $ instanceof $$?$:new $$(Q$,{pub:$})},$$.fromSecret=function(Q$,$){return $ instanceof $$?$:new $$(Q$,{secret:$})},$$.prototype.secret=function(){return this._secret},i0($$,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),i0($$,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),i0($$,"privBytes",function(){var Q$=this.eddsa,$=this.hash(),N=Q$.encodingLength-1,Y$=$.slice(0,Q$.encodingLength);return Y$[0]&=248,Y$[N]&=127,Y$[N]|=64,Y$}),i0($$,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),i0($$,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),i0($$,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),$$.prototype.sign=function(Q$){return e0(this._secret,"KeyPair can only verify"),this.eddsa.sign(Q$,this)},$$.prototype.verify=function(Q$,$){return this.eddsa.verify(Q$,$,this)},$$.prototype.getSecret=function(Q$){return e0(this._secret,"KeyPair is public only"),a0.encode(this.secret(),Q$)},$$.prototype.getPublic=function(Q$){return a0.encode(this.pubBytes(),Q$)},m0.exports=$$}}),f0=pQ({"node_modules/elliptic/lib/elliptic/eddsa/signature.js"(t0,m0){var a0=kY(),e0=D(),r0=e0.assert,i0=e0.cachedProperty,$$=e0.parseBytes;function Q$($,N){this.eddsa=$,typeof N!="object"&&(N=$$(N)),Array.isArray(N)&&(N={R:N.slice(0,$.encodingLength),S:N.slice($.encodingLength)}),r0(N.R&&N.S,"Signature without R or S"),$.isPoint(N.R)&&(this._R=N.R),N.S instanceof a0&&(this._S=N.S),this._Rencoded=Array.isArray(N.R)?N.R:N.Rencoded,this._Sencoded=Array.isArray(N.S)?N.S:N.Sencoded}i0(Q$,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),i0(Q$,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),i0(Q$,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),i0(Q$,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),Q$.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},Q$.prototype.toHex=function(){return e0.encode(this.toBytes(),"hex").toUpperCase()},m0.exports=Q$}}),uY=pQ({"node_modules/elliptic/lib/elliptic/eddsa/index.js"(t0,m0){var a0=hY(),e0=bY(),r0=D(),i0=r0.assert,$$=r0.parseBytes,Q$=p0(),$=f0();function N(Y$){if(i0(Y$==="ed25519","only tested with ed25519 so far"),!(this instanceof N))return new N(Y$);Y$=e0[Y$].curve,this.curve=Y$,this.g=Y$.g,this.g.precompute(Y$.n.bitLength()+1),this.pointClass=Y$.point().constructor,this.encodingLength=Math.ceil(Y$.n.bitLength()/8),this.hash=a0.sha512}m0.exports=N,N.prototype.sign=function(Y$,O0){Y$=$$(Y$);var Z$=this.keyFromSecret(O0),G$=this.hashInt(Z$.messagePrefix(),Y$),V$=this.g.mul(G$),U$=this.encodePoint(V$),X$=this.hashInt(U$,Z$.pubBytes(),Y$).mul(Z$.priv()),K$=G$.add(X$).umod(this.curve.n);return this.makeSignature({R:V$,S:K$,Rencoded:U$})},N.prototype.verify=function(Y$,O0,Z$){Y$=$$(Y$),O0=this.makeSignature(O0);var G$=this.keyFromPublic(Z$),V$=this.hashInt(O0.Rencoded(),G$.pubBytes(),Y$),U$=this.g.mul(O0.S()),X$=O0.R().add(G$.pub().mul(V$));return X$.eq(U$)},N.prototype.hashInt=function(){for(var Y$=this.hash(),O0=0;O00?E$:T$},$$.min=function(E$,T$){return E$.cmp(T$)<0?E$:T$},$$.prototype._init=function(E$,T$,Y){if(typeof E$=="number")return this._initNumber(E$,T$,Y);if(typeof E$=="object")return this._initArray(E$,T$,Y);T$==="hex"&&(T$=16),r0(T$===(T$|0)&&T$>=2&&T$<=36),E$=E$.toString().replace(/\s+/g,"");var f=0;E$[0]==="-"&&(f++,this.negative=1),f=0;f-=3)F0=E$[f]|E$[f-1]<<8|E$[f-2]<<16,this.words[D$]|=F0<>>26-C$&67108863,C$+=24,C$>=26&&(C$-=26,D$++);else if(Y==="le")for(f=0,D$=0;f>>26-C$&67108863,C$+=24,C$>=26&&(C$-=26,D$++);return this.strip()};function $(E$,T$){var Y=E$.charCodeAt(T$);return Y>=65&&Y<=70?Y-55:Y>=97&&Y<=102?Y-87:Y-48&15}function N(E$,T$,Y){var f=$(E$,Y);return Y-1>=T$&&(f|=$(E$,Y-1)<<4),f}$$.prototype._parseHex=function(E$,T$,Y){this.length=Math.ceil((E$.length-T$)/6),this.words=new Array(this.length);for(var f=0;f=T$;f-=2)C$=N(E$,T$,f)<=18?(D$-=18,F0+=1,this.words[F0]|=C$>>>26):D$+=8;else{var L$=E$.length-T$;for(f=L$%2===0?T$+1:T$;f=18?(D$-=18,F0+=1,this.words[F0]|=C$>>>26):D$+=8}this.strip()};function Y$(E$,T$,Y,f){for(var D$=0,F0=Math.min(E$.length,Y),C$=T$;C$=49?D$+=L$-49+10:L$>=17?D$+=L$-17+10:D$+=L$}return D$}$$.prototype._parseBase=function(E$,T$,Y){this.words=[0],this.length=1;for(var f=0,D$=1;D$<=67108863;D$*=T$)f++;f--,D$=D$/T$|0;for(var F0=E$.length-Y,C$=F0%f,L$=Math.min(F0,F0-C$)+Y,R$=0,P$=Y;P$1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},$$.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},$$.prototype.inspect=function(){return(this.red?""};var O0=["","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"],Z$=[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],G$=[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];$$.prototype.toString=function(E$,T$){E$=E$||10,T$=T$|0||1;var Y;if(E$===16||E$==="hex"){Y="";for(var f=0,D$=0,F0=0;F0>>24-f&16777215,D$!==0||F0!==this.length-1?Y=O0[6-L$.length]+L$+Y:Y=L$+Y,f+=2,f>=26&&(f-=26,F0--)}for(D$!==0&&(Y=D$.toString(16)+Y);Y.length%T$!==0;)Y="0"+Y;return this.negative!==0&&(Y="-"+Y),Y}if(E$===(E$|0)&&E$>=2&&E$<=36){var R$=Z$[E$],P$=G$[E$];Y="";var z$=this.clone();for(z$.negative=0;!z$.isZero();){var M$=z$.modn(P$).toString(E$);z$=z$.idivn(P$),z$.isZero()?Y=M$+Y:Y=O0[R$-M$.length]+M$+Y}for(this.isZero()&&(Y="0"+Y);Y.length%T$!==0;)Y="0"+Y;return this.negative!==0&&(Y="-"+Y),Y}r0(!1,"Base should be between 2 and 36")},$$.prototype.toNumber=function(){var E$=this.words[0];return this.length===2?E$+=this.words[1]*67108864:this.length===3&&this.words[2]===1?E$+=4503599627370496+this.words[1]*67108864:this.length>2&&r0(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-E$:E$},$$.prototype.toJSON=function(){return this.toString(16)},$$.prototype.toBuffer=function(E$,T$){return r0(typeof Q$<"u"),this.toArrayLike(Q$,E$,T$)},$$.prototype.toArray=function(E$,T$){return this.toArrayLike(Array,E$,T$)},$$.prototype.toArrayLike=function(E$,T$,Y){var f=this.byteLength(),D$=Y||Math.max(1,f);r0(f<=D$,"byte array longer than desired length"),r0(D$>0,"Requested array length <= 0"),this.strip();var F0=T$==="le",C$=new E$(D$),L$,R$,P$=this.clone();if(F0){for(R$=0;!P$.isZero();R$++)L$=P$.andln(255),P$.iushrn(8),C$[R$]=L$;for(;R$=4096&&(Y+=13,T$>>>=13),T$>=64&&(Y+=7,T$>>>=7),T$>=8&&(Y+=4,T$>>>=4),T$>=2&&(Y+=2,T$>>>=2),Y+T$},$$.prototype._zeroBits=function(E$){if(E$===0)return 26;var T$=E$,Y=0;return(T$&8191)===0&&(Y+=13,T$>>>=13),(T$&127)===0&&(Y+=7,T$>>>=7),(T$&15)===0&&(Y+=4,T$>>>=4),(T$&3)===0&&(Y+=2,T$>>>=2),(T$&1)===0&&Y++,Y},$$.prototype.bitLength=function(){var E$=this.words[this.length-1],T$=this._countBits(E$);return(this.length-1)*26+T$};function V$(E$){for(var T$=new Array(E$.bitLength()),Y=0;Y>>D$}return T$}$$.prototype.zeroBits=function(){if(this.isZero())return 0;for(var E$=0,T$=0;T$E$.length?this.clone().ior(E$):E$.clone().ior(this)},$$.prototype.uor=function(E$){return this.length>E$.length?this.clone().iuor(E$):E$.clone().iuor(this)},$$.prototype.iuand=function(E$){var T$;this.length>E$.length?T$=E$:T$=this;for(var Y=0;YE$.length?this.clone().iand(E$):E$.clone().iand(this)},$$.prototype.uand=function(E$){return this.length>E$.length?this.clone().iuand(E$):E$.clone().iuand(this)},$$.prototype.iuxor=function(E$){var T$,Y;this.length>E$.length?(T$=this,Y=E$):(T$=E$,Y=this);for(var f=0;fE$.length?this.clone().ixor(E$):E$.clone().ixor(this)},$$.prototype.uxor=function(E$){return this.length>E$.length?this.clone().iuxor(E$):E$.clone().iuxor(this)},$$.prototype.inotn=function(E$){r0(typeof E$=="number"&&E$>=0);var T$=Math.ceil(E$/26)|0,Y=E$%26;this._expand(T$),Y>0&&T$--;for(var f=0;f0&&(this.words[f]=~this.words[f]&67108863>>26-Y),this.strip()},$$.prototype.notn=function(E$){return this.clone().inotn(E$)},$$.prototype.setn=function(E$,T$){r0(typeof E$=="number"&&E$>=0);var Y=E$/26|0,f=E$%26;return this._expand(Y+1),T$?this.words[Y]=this.words[Y]|1<E$.length?(Y=this,f=E$):(Y=E$,f=this);for(var D$=0,F0=0;F0>>26;for(;D$!==0&&F0>>26;if(this.length=Y.length,D$!==0)this.words[this.length]=D$,this.length++;else if(Y!==this)for(;F0E$.length?this.clone().iadd(E$):E$.clone().iadd(this)},$$.prototype.isub=function(E$){if(E$.negative!==0){E$.negative=0;var T$=this.iadd(E$);return E$.negative=1,T$._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(E$),this.negative=1,this._normSign();var Y=this.cmp(E$);if(Y===0)return this.negative=0,this.length=1,this.words[0]=0,this;var f,D$;Y>0?(f=this,D$=E$):(f=E$,D$=this);for(var F0=0,C$=0;C$>26,this.words[C$]=T$&67108863;for(;F0!==0&&C$>26,this.words[C$]=T$&67108863;if(F0===0&&C$>>26,M$=R$&67108863,S$=Math.min(P$,T$.length-1),Z=Math.max(0,P$-E$.length+1);Z<=S$;Z++){var c=P$-Z|0;D$=E$.words[c]|0,F0=T$.words[Z]|0,C$=D$*F0+M$,z$+=C$/67108864|0,M$=C$&67108863}Y.words[P$]=M$|0,R$=z$|0}return R$!==0?Y.words[P$]=R$|0:Y.length--,Y.strip()}var X$=function(E$,T$,Y){var f=E$.words,D$=T$.words,F0=Y.words,C$=0,L$,R$,P$,z$=f[0]|0,M$=z$&8191,S$=z$>>>13,Z=f[1]|0,c=Z&8191,v$=Z>>>13,A0=f[2]|0,q$=A0&8191,j$=A0>>>13,k$=f[3]|0,g$=k$&8191,_$=k$>>>13,N$=f[4]|0,x$=N$&8191,G=N$>>>13,B=f[5]|0,B$=B&8191,H0=B>>>13,y$=f[6]|0,w$=y$&8191,p$=y$>>>13,f$=f[7]|0,c$=f$&8191,h$=f$>>>13,d$=f[8]|0,V=d$&8191,h=d$>>>13,W0=f[9]|0,E0=W0&8191,b$=W0>>>13,l$=D$[0]|0,o$=l$&8191,u$=l$>>>13,n$=D$[1]|0,s$=n$&8191,t$=n$>>>13,U=D$[2]|0,d=U&8191,m$=U>>>13,T0=D$[3]|0,a$=T0&8191,e$=T0>>>13,r$=D$[4]|0,i$=r$&8191,$Q=r$>>>13,QQ=D$[5]|0,YQ=QQ&8191,X=QQ>>>13,b=D$[6]|0,ZQ=b&8191,D0=b>>>13,GQ=D$[7]|0,VQ=GQ&8191,UQ=GQ>>>13,XQ=D$[8]|0,KQ=XQ&8191,IQ=XQ>>>13,OQ=D$[9]|0,K=OQ&8191,l=OQ>>>13;Y.negative=E$.negative^T$.negative,Y.length=19,L$=Math.imul(M$,o$),R$=Math.imul(M$,u$),R$=R$+Math.imul(S$,o$)|0,P$=Math.imul(S$,u$);var JQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(JQ>>>26)|0,JQ&=67108863,L$=Math.imul(c,o$),R$=Math.imul(c,u$),R$=R$+Math.imul(v$,o$)|0,P$=Math.imul(v$,u$),L$=L$+Math.imul(M$,s$)|0,R$=R$+Math.imul(M$,t$)|0,R$=R$+Math.imul(S$,s$)|0,P$=P$+Math.imul(S$,t$)|0;var C0=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(C0>>>26)|0,C0&=67108863,L$=Math.imul(q$,o$),R$=Math.imul(q$,u$),R$=R$+Math.imul(j$,o$)|0,P$=Math.imul(j$,u$),L$=L$+Math.imul(c,s$)|0,R$=R$+Math.imul(c,t$)|0,R$=R$+Math.imul(v$,s$)|0,P$=P$+Math.imul(v$,t$)|0,L$=L$+Math.imul(M$,d)|0,R$=R$+Math.imul(M$,m$)|0,R$=R$+Math.imul(S$,d)|0,P$=P$+Math.imul(S$,m$)|0;var FQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(FQ>>>26)|0,FQ&=67108863,L$=Math.imul(g$,o$),R$=Math.imul(g$,u$),R$=R$+Math.imul(_$,o$)|0,P$=Math.imul(_$,u$),L$=L$+Math.imul(q$,s$)|0,R$=R$+Math.imul(q$,t$)|0,R$=R$+Math.imul(j$,s$)|0,P$=P$+Math.imul(j$,t$)|0,L$=L$+Math.imul(c,d)|0,R$=R$+Math.imul(c,m$)|0,R$=R$+Math.imul(v$,d)|0,P$=P$+Math.imul(v$,m$)|0,L$=L$+Math.imul(M$,a$)|0,R$=R$+Math.imul(M$,e$)|0,R$=R$+Math.imul(S$,a$)|0,P$=P$+Math.imul(S$,e$)|0;var AQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(AQ>>>26)|0,AQ&=67108863,L$=Math.imul(x$,o$),R$=Math.imul(x$,u$),R$=R$+Math.imul(G,o$)|0,P$=Math.imul(G,u$),L$=L$+Math.imul(g$,s$)|0,R$=R$+Math.imul(g$,t$)|0,R$=R$+Math.imul(_$,s$)|0,P$=P$+Math.imul(_$,t$)|0,L$=L$+Math.imul(q$,d)|0,R$=R$+Math.imul(q$,m$)|0,R$=R$+Math.imul(j$,d)|0,P$=P$+Math.imul(j$,m$)|0,L$=L$+Math.imul(c,a$)|0,R$=R$+Math.imul(c,e$)|0,R$=R$+Math.imul(v$,a$)|0,P$=P$+Math.imul(v$,e$)|0,L$=L$+Math.imul(M$,i$)|0,R$=R$+Math.imul(M$,$Q)|0,R$=R$+Math.imul(S$,i$)|0,P$=P$+Math.imul(S$,$Q)|0;var HQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(HQ>>>26)|0,HQ&=67108863,L$=Math.imul(B$,o$),R$=Math.imul(B$,u$),R$=R$+Math.imul(H0,o$)|0,P$=Math.imul(H0,u$),L$=L$+Math.imul(x$,s$)|0,R$=R$+Math.imul(x$,t$)|0,R$=R$+Math.imul(G,s$)|0,P$=P$+Math.imul(G,t$)|0,L$=L$+Math.imul(g$,d)|0,R$=R$+Math.imul(g$,m$)|0,R$=R$+Math.imul(_$,d)|0,P$=P$+Math.imul(_$,m$)|0,L$=L$+Math.imul(q$,a$)|0,R$=R$+Math.imul(q$,e$)|0,R$=R$+Math.imul(j$,a$)|0,P$=P$+Math.imul(j$,e$)|0,L$=L$+Math.imul(c,i$)|0,R$=R$+Math.imul(c,$Q)|0,R$=R$+Math.imul(v$,i$)|0,P$=P$+Math.imul(v$,$Q)|0,L$=L$+Math.imul(M$,YQ)|0,R$=R$+Math.imul(M$,X)|0,R$=R$+Math.imul(S$,YQ)|0,P$=P$+Math.imul(S$,X)|0;var WQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(WQ>>>26)|0,WQ&=67108863,L$=Math.imul(w$,o$),R$=Math.imul(w$,u$),R$=R$+Math.imul(p$,o$)|0,P$=Math.imul(p$,u$),L$=L$+Math.imul(B$,s$)|0,R$=R$+Math.imul(B$,t$)|0,R$=R$+Math.imul(H0,s$)|0,P$=P$+Math.imul(H0,t$)|0,L$=L$+Math.imul(x$,d)|0,R$=R$+Math.imul(x$,m$)|0,R$=R$+Math.imul(G,d)|0,P$=P$+Math.imul(G,m$)|0,L$=L$+Math.imul(g$,a$)|0,R$=R$+Math.imul(g$,e$)|0,R$=R$+Math.imul(_$,a$)|0,P$=P$+Math.imul(_$,e$)|0,L$=L$+Math.imul(q$,i$)|0,R$=R$+Math.imul(q$,$Q)|0,R$=R$+Math.imul(j$,i$)|0,P$=P$+Math.imul(j$,$Q)|0,L$=L$+Math.imul(c,YQ)|0,R$=R$+Math.imul(c,X)|0,R$=R$+Math.imul(v$,YQ)|0,P$=P$+Math.imul(v$,X)|0,L$=L$+Math.imul(M$,ZQ)|0,R$=R$+Math.imul(M$,D0)|0,R$=R$+Math.imul(S$,ZQ)|0,P$=P$+Math.imul(S$,D0)|0;var EQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(EQ>>>26)|0,EQ&=67108863,L$=Math.imul(c$,o$),R$=Math.imul(c$,u$),R$=R$+Math.imul(h$,o$)|0,P$=Math.imul(h$,u$),L$=L$+Math.imul(w$,s$)|0,R$=R$+Math.imul(w$,t$)|0,R$=R$+Math.imul(p$,s$)|0,P$=P$+Math.imul(p$,t$)|0,L$=L$+Math.imul(B$,d)|0,R$=R$+Math.imul(B$,m$)|0,R$=R$+Math.imul(H0,d)|0,P$=P$+Math.imul(H0,m$)|0,L$=L$+Math.imul(x$,a$)|0,R$=R$+Math.imul(x$,e$)|0,R$=R$+Math.imul(G,a$)|0,P$=P$+Math.imul(G,e$)|0,L$=L$+Math.imul(g$,i$)|0,R$=R$+Math.imul(g$,$Q)|0,R$=R$+Math.imul(_$,i$)|0,P$=P$+Math.imul(_$,$Q)|0,L$=L$+Math.imul(q$,YQ)|0,R$=R$+Math.imul(q$,X)|0,R$=R$+Math.imul(j$,YQ)|0,P$=P$+Math.imul(j$,X)|0,L$=L$+Math.imul(c,ZQ)|0,R$=R$+Math.imul(c,D0)|0,R$=R$+Math.imul(v$,ZQ)|0,P$=P$+Math.imul(v$,D0)|0,L$=L$+Math.imul(M$,VQ)|0,R$=R$+Math.imul(M$,UQ)|0,R$=R$+Math.imul(S$,VQ)|0,P$=P$+Math.imul(S$,UQ)|0;var TQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(TQ>>>26)|0,TQ&=67108863,L$=Math.imul(V,o$),R$=Math.imul(V,u$),R$=R$+Math.imul(h,o$)|0,P$=Math.imul(h,u$),L$=L$+Math.imul(c$,s$)|0,R$=R$+Math.imul(c$,t$)|0,R$=R$+Math.imul(h$,s$)|0,P$=P$+Math.imul(h$,t$)|0,L$=L$+Math.imul(w$,d)|0,R$=R$+Math.imul(w$,m$)|0,R$=R$+Math.imul(p$,d)|0,P$=P$+Math.imul(p$,m$)|0,L$=L$+Math.imul(B$,a$)|0,R$=R$+Math.imul(B$,e$)|0,R$=R$+Math.imul(H0,a$)|0,P$=P$+Math.imul(H0,e$)|0,L$=L$+Math.imul(x$,i$)|0,R$=R$+Math.imul(x$,$Q)|0,R$=R$+Math.imul(G,i$)|0,P$=P$+Math.imul(G,$Q)|0,L$=L$+Math.imul(g$,YQ)|0,R$=R$+Math.imul(g$,X)|0,R$=R$+Math.imul(_$,YQ)|0,P$=P$+Math.imul(_$,X)|0,L$=L$+Math.imul(q$,ZQ)|0,R$=R$+Math.imul(q$,D0)|0,R$=R$+Math.imul(j$,ZQ)|0,P$=P$+Math.imul(j$,D0)|0,L$=L$+Math.imul(c,VQ)|0,R$=R$+Math.imul(c,UQ)|0,R$=R$+Math.imul(v$,VQ)|0,P$=P$+Math.imul(v$,UQ)|0,L$=L$+Math.imul(M$,KQ)|0,R$=R$+Math.imul(M$,IQ)|0,R$=R$+Math.imul(S$,KQ)|0,P$=P$+Math.imul(S$,IQ)|0;var DQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(DQ>>>26)|0,DQ&=67108863,L$=Math.imul(E0,o$),R$=Math.imul(E0,u$),R$=R$+Math.imul(b$,o$)|0,P$=Math.imul(b$,u$),L$=L$+Math.imul(V,s$)|0,R$=R$+Math.imul(V,t$)|0,R$=R$+Math.imul(h,s$)|0,P$=P$+Math.imul(h,t$)|0,L$=L$+Math.imul(c$,d)|0,R$=R$+Math.imul(c$,m$)|0,R$=R$+Math.imul(h$,d)|0,P$=P$+Math.imul(h$,m$)|0,L$=L$+Math.imul(w$,a$)|0,R$=R$+Math.imul(w$,e$)|0,R$=R$+Math.imul(p$,a$)|0,P$=P$+Math.imul(p$,e$)|0,L$=L$+Math.imul(B$,i$)|0,R$=R$+Math.imul(B$,$Q)|0,R$=R$+Math.imul(H0,i$)|0,P$=P$+Math.imul(H0,$Q)|0,L$=L$+Math.imul(x$,YQ)|0,R$=R$+Math.imul(x$,X)|0,R$=R$+Math.imul(G,YQ)|0,P$=P$+Math.imul(G,X)|0,L$=L$+Math.imul(g$,ZQ)|0,R$=R$+Math.imul(g$,D0)|0,R$=R$+Math.imul(_$,ZQ)|0,P$=P$+Math.imul(_$,D0)|0,L$=L$+Math.imul(q$,VQ)|0,R$=R$+Math.imul(q$,UQ)|0,R$=R$+Math.imul(j$,VQ)|0,P$=P$+Math.imul(j$,UQ)|0,L$=L$+Math.imul(c,KQ)|0,R$=R$+Math.imul(c,IQ)|0,R$=R$+Math.imul(v$,KQ)|0,P$=P$+Math.imul(v$,IQ)|0,L$=L$+Math.imul(M$,K)|0,R$=R$+Math.imul(M$,l)|0,R$=R$+Math.imul(S$,K)|0,P$=P$+Math.imul(S$,l)|0;var I=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(I>>>26)|0,I&=67108863,L$=Math.imul(E0,s$),R$=Math.imul(E0,t$),R$=R$+Math.imul(b$,s$)|0,P$=Math.imul(b$,t$),L$=L$+Math.imul(V,d)|0,R$=R$+Math.imul(V,m$)|0,R$=R$+Math.imul(h,d)|0,P$=P$+Math.imul(h,m$)|0,L$=L$+Math.imul(c$,a$)|0,R$=R$+Math.imul(c$,e$)|0,R$=R$+Math.imul(h$,a$)|0,P$=P$+Math.imul(h$,e$)|0,L$=L$+Math.imul(w$,i$)|0,R$=R$+Math.imul(w$,$Q)|0,R$=R$+Math.imul(p$,i$)|0,P$=P$+Math.imul(p$,$Q)|0,L$=L$+Math.imul(B$,YQ)|0,R$=R$+Math.imul(B$,X)|0,R$=R$+Math.imul(H0,YQ)|0,P$=P$+Math.imul(H0,X)|0,L$=L$+Math.imul(x$,ZQ)|0,R$=R$+Math.imul(x$,D0)|0,R$=R$+Math.imul(G,ZQ)|0,P$=P$+Math.imul(G,D0)|0,L$=L$+Math.imul(g$,VQ)|0,R$=R$+Math.imul(g$,UQ)|0,R$=R$+Math.imul(_$,VQ)|0,P$=P$+Math.imul(_$,UQ)|0,L$=L$+Math.imul(q$,KQ)|0,R$=R$+Math.imul(q$,IQ)|0,R$=R$+Math.imul(j$,KQ)|0,P$=P$+Math.imul(j$,IQ)|0,L$=L$+Math.imul(c,K)|0,R$=R$+Math.imul(c,l)|0,R$=R$+Math.imul(v$,K)|0,P$=P$+Math.imul(v$,l)|0;var o=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(o>>>26)|0,o&=67108863,L$=Math.imul(E0,d),R$=Math.imul(E0,m$),R$=R$+Math.imul(b$,d)|0,P$=Math.imul(b$,m$),L$=L$+Math.imul(V,a$)|0,R$=R$+Math.imul(V,e$)|0,R$=R$+Math.imul(h,a$)|0,P$=P$+Math.imul(h,e$)|0,L$=L$+Math.imul(c$,i$)|0,R$=R$+Math.imul(c$,$Q)|0,R$=R$+Math.imul(h$,i$)|0,P$=P$+Math.imul(h$,$Q)|0,L$=L$+Math.imul(w$,YQ)|0,R$=R$+Math.imul(w$,X)|0,R$=R$+Math.imul(p$,YQ)|0,P$=P$+Math.imul(p$,X)|0,L$=L$+Math.imul(B$,ZQ)|0,R$=R$+Math.imul(B$,D0)|0,R$=R$+Math.imul(H0,ZQ)|0,P$=P$+Math.imul(H0,D0)|0,L$=L$+Math.imul(x$,VQ)|0,R$=R$+Math.imul(x$,UQ)|0,R$=R$+Math.imul(G,VQ)|0,P$=P$+Math.imul(G,UQ)|0,L$=L$+Math.imul(g$,KQ)|0,R$=R$+Math.imul(g$,IQ)|0,R$=R$+Math.imul(_$,KQ)|0,P$=P$+Math.imul(_$,IQ)|0,L$=L$+Math.imul(q$,K)|0,R$=R$+Math.imul(q$,l)|0,R$=R$+Math.imul(j$,K)|0,P$=P$+Math.imul(j$,l)|0;var CQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(CQ>>>26)|0,CQ&=67108863,L$=Math.imul(E0,a$),R$=Math.imul(E0,e$),R$=R$+Math.imul(b$,a$)|0,P$=Math.imul(b$,e$),L$=L$+Math.imul(V,i$)|0,R$=R$+Math.imul(V,$Q)|0,R$=R$+Math.imul(h,i$)|0,P$=P$+Math.imul(h,$Q)|0,L$=L$+Math.imul(c$,YQ)|0,R$=R$+Math.imul(c$,X)|0,R$=R$+Math.imul(h$,YQ)|0,P$=P$+Math.imul(h$,X)|0,L$=L$+Math.imul(w$,ZQ)|0,R$=R$+Math.imul(w$,D0)|0,R$=R$+Math.imul(p$,ZQ)|0,P$=P$+Math.imul(p$,D0)|0,L$=L$+Math.imul(B$,VQ)|0,R$=R$+Math.imul(B$,UQ)|0,R$=R$+Math.imul(H0,VQ)|0,P$=P$+Math.imul(H0,UQ)|0,L$=L$+Math.imul(x$,KQ)|0,R$=R$+Math.imul(x$,IQ)|0,R$=R$+Math.imul(G,KQ)|0,P$=P$+Math.imul(G,IQ)|0,L$=L$+Math.imul(g$,K)|0,R$=R$+Math.imul(g$,l)|0,R$=R$+Math.imul(_$,K)|0,P$=P$+Math.imul(_$,l)|0;var L0=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(L0>>>26)|0,L0&=67108863,L$=Math.imul(E0,i$),R$=Math.imul(E0,$Q),R$=R$+Math.imul(b$,i$)|0,P$=Math.imul(b$,$Q),L$=L$+Math.imul(V,YQ)|0,R$=R$+Math.imul(V,X)|0,R$=R$+Math.imul(h,YQ)|0,P$=P$+Math.imul(h,X)|0,L$=L$+Math.imul(c$,ZQ)|0,R$=R$+Math.imul(c$,D0)|0,R$=R$+Math.imul(h$,ZQ)|0,P$=P$+Math.imul(h$,D0)|0,L$=L$+Math.imul(w$,VQ)|0,R$=R$+Math.imul(w$,UQ)|0,R$=R$+Math.imul(p$,VQ)|0,P$=P$+Math.imul(p$,UQ)|0,L$=L$+Math.imul(B$,KQ)|0,R$=R$+Math.imul(B$,IQ)|0,R$=R$+Math.imul(H0,KQ)|0,P$=P$+Math.imul(H0,IQ)|0,L$=L$+Math.imul(x$,K)|0,R$=R$+Math.imul(x$,l)|0,R$=R$+Math.imul(G,K)|0,P$=P$+Math.imul(G,l)|0;var LQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(LQ>>>26)|0,LQ&=67108863,L$=Math.imul(E0,YQ),R$=Math.imul(E0,X),R$=R$+Math.imul(b$,YQ)|0,P$=Math.imul(b$,X),L$=L$+Math.imul(V,ZQ)|0,R$=R$+Math.imul(V,D0)|0,R$=R$+Math.imul(h,ZQ)|0,P$=P$+Math.imul(h,D0)|0,L$=L$+Math.imul(c$,VQ)|0,R$=R$+Math.imul(c$,UQ)|0,R$=R$+Math.imul(h$,VQ)|0,P$=P$+Math.imul(h$,UQ)|0,L$=L$+Math.imul(w$,KQ)|0,R$=R$+Math.imul(w$,IQ)|0,R$=R$+Math.imul(p$,KQ)|0,P$=P$+Math.imul(p$,IQ)|0,L$=L$+Math.imul(B$,K)|0,R$=R$+Math.imul(B$,l)|0,R$=R$+Math.imul(H0,K)|0,P$=P$+Math.imul(H0,l)|0;var RQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(RQ>>>26)|0,RQ&=67108863,L$=Math.imul(E0,ZQ),R$=Math.imul(E0,D0),R$=R$+Math.imul(b$,ZQ)|0,P$=Math.imul(b$,D0),L$=L$+Math.imul(V,VQ)|0,R$=R$+Math.imul(V,UQ)|0,R$=R$+Math.imul(h,VQ)|0,P$=P$+Math.imul(h,UQ)|0,L$=L$+Math.imul(c$,KQ)|0,R$=R$+Math.imul(c$,IQ)|0,R$=R$+Math.imul(h$,KQ)|0,P$=P$+Math.imul(h$,IQ)|0,L$=L$+Math.imul(w$,K)|0,R$=R$+Math.imul(w$,l)|0,R$=R$+Math.imul(p$,K)|0,P$=P$+Math.imul(p$,l)|0;var PQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(PQ>>>26)|0,PQ&=67108863,L$=Math.imul(E0,VQ),R$=Math.imul(E0,UQ),R$=R$+Math.imul(b$,VQ)|0,P$=Math.imul(b$,UQ),L$=L$+Math.imul(V,KQ)|0,R$=R$+Math.imul(V,IQ)|0,R$=R$+Math.imul(h,KQ)|0,P$=P$+Math.imul(h,IQ)|0,L$=L$+Math.imul(c$,K)|0,R$=R$+Math.imul(c$,l)|0,R$=R$+Math.imul(h$,K)|0,P$=P$+Math.imul(h$,l)|0;var zQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(zQ>>>26)|0,zQ&=67108863,L$=Math.imul(E0,KQ),R$=Math.imul(E0,IQ),R$=R$+Math.imul(b$,KQ)|0,P$=Math.imul(b$,IQ),L$=L$+Math.imul(V,K)|0,R$=R$+Math.imul(V,l)|0,R$=R$+Math.imul(h,K)|0,P$=P$+Math.imul(h,l)|0;var MQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(MQ>>>26)|0,MQ&=67108863,L$=Math.imul(E0,K),R$=Math.imul(E0,l),R$=R$+Math.imul(b$,K)|0,P$=Math.imul(b$,l);var SQ=(C$+L$|0)+((R$&8191)<<13)|0;return C$=(P$+(R$>>>13)|0)+(SQ>>>26)|0,SQ&=67108863,F0[0]=JQ,F0[1]=C0,F0[2]=FQ,F0[3]=AQ,F0[4]=HQ,F0[5]=WQ,F0[6]=EQ,F0[7]=TQ,F0[8]=DQ,F0[9]=I,F0[10]=o,F0[11]=CQ,F0[12]=L0,F0[13]=LQ,F0[14]=RQ,F0[15]=PQ,F0[16]=zQ,F0[17]=MQ,F0[18]=SQ,C$!==0&&(F0[19]=C$,Y.length++),Y};Math.imul||(X$=U$);function K$(E$,T$,Y){Y.negative=T$.negative^E$.negative,Y.length=E$.length+T$.length;for(var f=0,D$=0,F0=0;F0>>26)|0,D$+=C$>>>26,C$&=67108863}Y.words[F0]=L$,f=C$,C$=D$}return f!==0?Y.words[F0]=f:Y.length--,Y.strip()}function I$(E$,T$,Y){var f=new Q;return f.mulp(E$,T$,Y)}$$.prototype.mulTo=function(E$,T$){var Y,f=this.length+E$.length;return this.length===10&&E$.length===10?Y=X$(this,E$,T$):f<63?Y=U$(this,E$,T$):f<1024?Y=K$(this,E$,T$):Y=I$(this,E$,T$),Y};function Q(E$,T$){this.x=E$,this.y=T$}Q.prototype.makeRBT=function(E$){for(var T$=new Array(E$),Y=$$.prototype._countBits(E$)-1,f=0;f>=1;return f},Q.prototype.permute=function(E$,T$,Y,f,D$,F0){for(var C$=0;C$>>1)D$++;return 1<>>13,Y[2*F0+1]=D$&8191,D$=D$>>>13;for(F0=2*T$;F0>=26,T$+=f/67108864|0,T$+=D$>>>26,this.words[Y]=D$&67108863}return T$!==0&&(this.words[Y]=T$,this.length++),this},$$.prototype.muln=function(E$){return this.clone().imuln(E$)},$$.prototype.sqr=function(){return this.mul(this)},$$.prototype.isqr=function(){return this.imul(this.clone())},$$.prototype.pow=function(E$){var T$=V$(E$);if(T$.length===0)return new $$(1);for(var Y=this,f=0;f=0);var T$=E$%26,Y=(E$-T$)/26,f=67108863>>>26-T$<<26-T$,D$;if(T$!==0){var F0=0;for(D$=0;D$>>26-T$}F0&&(this.words[D$]=F0,this.length++)}if(Y!==0){for(D$=this.length-1;D$>=0;D$--)this.words[D$+Y]=this.words[D$];for(D$=0;D$=0);var f;T$?f=(T$-T$%26)/26:f=0;var D$=E$%26,F0=Math.min((E$-D$)/26,this.length),C$=67108863^67108863>>>D$<F0)for(this.length-=F0,R$=0;R$=0&&(P$!==0||R$>=f);R$--){var z$=this.words[R$]|0;this.words[R$]=P$<<26-D$|z$>>>D$,P$=z$&C$}return L$&&P$!==0&&(L$.words[L$.length++]=P$),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},$$.prototype.ishrn=function(E$,T$,Y){return r0(this.negative===0),this.iushrn(E$,T$,Y)},$$.prototype.shln=function(E$){return this.clone().ishln(E$)},$$.prototype.ushln=function(E$){return this.clone().iushln(E$)},$$.prototype.shrn=function(E$){return this.clone().ishrn(E$)},$$.prototype.ushrn=function(E$){return this.clone().iushrn(E$)},$$.prototype.testn=function(E$){r0(typeof E$=="number"&&E$>=0);var T$=E$%26,Y=(E$-T$)/26,f=1<=0);var T$=E$%26,Y=(E$-T$)/26;if(r0(this.negative===0,"imaskn works only with positive numbers"),this.length<=Y)return this;if(T$!==0&&Y++,this.length=Math.min(Y,this.length),T$!==0){var f=67108863^67108863>>>T$<=67108864;T$++)this.words[T$]-=67108864,T$===this.length-1?this.words[T$+1]=1:this.words[T$+1]++;return this.length=Math.max(this.length,T$+1),this},$$.prototype.isubn=function(E$){if(r0(typeof E$=="number"),r0(E$<67108864),E$<0)return this.iaddn(-E$);if(this.negative!==0)return this.negative=0,this.iaddn(E$),this.negative=1,this;if(this.words[0]-=E$,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var T$=0;T$>26)-(L$/67108864|0),this.words[D$+Y]=F0&67108863}for(;D$>26,this.words[D$+Y]=F0&67108863;if(C$===0)return this.strip();for(r0(C$===-1),C$=0,D$=0;D$>26,this.words[D$]=F0&67108863;return this.negative=1,this.strip()},$$.prototype._wordDiv=function(E$,T$){var Y=this.length-E$.length,f=this.clone(),D$=E$,F0=D$.words[D$.length-1]|0,C$=this._countBits(F0);Y=26-C$,Y!==0&&(D$=D$.ushln(Y),f.iushln(Y),F0=D$.words[D$.length-1]|0);var L$=f.length-D$.length,R$;if(T$!=="mod"){R$=new $$(null),R$.length=L$+1,R$.words=new Array(R$.length);for(var P$=0;P$=0;M$--){var S$=(f.words[D$.length+M$]|0)*67108864+(f.words[D$.length+M$-1]|0);for(S$=Math.min(S$/F0|0,67108863),f._ishlnsubmul(D$,S$,M$);f.negative!==0;)S$--,f.negative=0,f._ishlnsubmul(D$,1,M$),f.isZero()||(f.negative^=1);R$&&(R$.words[M$]=S$)}return R$&&R$.strip(),f.strip(),T$!=="div"&&Y!==0&&f.iushrn(Y),{div:R$||null,mod:f}},$$.prototype.divmod=function(E$,T$,Y){if(r0(!E$.isZero()),this.isZero())return{div:new $$(0),mod:new $$(0)};var f,D$,F0;return this.negative!==0&&E$.negative===0?(F0=this.neg().divmod(E$,T$),T$!=="mod"&&(f=F0.div.neg()),T$!=="div"&&(D$=F0.mod.neg(),Y&&D$.negative!==0&&D$.iadd(E$)),{div:f,mod:D$}):this.negative===0&&E$.negative!==0?(F0=this.divmod(E$.neg(),T$),T$!=="mod"&&(f=F0.div.neg()),{div:f,mod:F0.mod}):(this.negative&E$.negative)!==0?(F0=this.neg().divmod(E$.neg(),T$),T$!=="div"&&(D$=F0.mod.neg(),Y&&D$.negative!==0&&D$.isub(E$)),{div:F0.div,mod:D$}):E$.length>this.length||this.cmp(E$)<0?{div:new $$(0),mod:this}:E$.length===1?T$==="div"?{div:this.divn(E$.words[0]),mod:null}:T$==="mod"?{div:null,mod:new $$(this.modn(E$.words[0]))}:{div:this.divn(E$.words[0]),mod:new $$(this.modn(E$.words[0]))}:this._wordDiv(E$,T$)},$$.prototype.div=function(E$){return this.divmod(E$,"div",!1).div},$$.prototype.mod=function(E$){return this.divmod(E$,"mod",!1).mod},$$.prototype.umod=function(E$){return this.divmod(E$,"mod",!0).mod},$$.prototype.divRound=function(E$){var T$=this.divmod(E$);if(T$.mod.isZero())return T$.div;var Y=T$.div.negative!==0?T$.mod.isub(E$):T$.mod,f=E$.ushrn(1),D$=E$.andln(1),F0=Y.cmp(f);return F0<0||D$===1&&F0===0?T$.div:T$.div.negative!==0?T$.div.isubn(1):T$.div.iaddn(1)},$$.prototype.modn=function(E$){r0(E$<=67108863);for(var T$=(1<<26)%E$,Y=0,f=this.length-1;f>=0;f--)Y=(T$*Y+(this.words[f]|0))%E$;return Y},$$.prototype.idivn=function(E$){r0(E$<=67108863);for(var T$=0,Y=this.length-1;Y>=0;Y--){var f=(this.words[Y]|0)+T$*67108864;this.words[Y]=f/E$|0,T$=f%E$}return this.strip()},$$.prototype.divn=function(E$){return this.clone().idivn(E$)},$$.prototype.egcd=function(E$){r0(E$.negative===0),r0(!E$.isZero());var T$=this,Y=E$.clone();T$.negative!==0?T$=T$.umod(E$):T$=T$.clone();for(var f=new $$(1),D$=new $$(0),F0=new $$(0),C$=new $$(1),L$=0;T$.isEven()&&Y.isEven();)T$.iushrn(1),Y.iushrn(1),++L$;for(var R$=Y.clone(),P$=T$.clone();!T$.isZero();){for(var z$=0,M$=1;(T$.words[0]&M$)===0&&z$<26;++z$,M$<<=1);if(z$>0)for(T$.iushrn(z$);z$-- >0;)(f.isOdd()||D$.isOdd())&&(f.iadd(R$),D$.isub(P$)),f.iushrn(1),D$.iushrn(1);for(var S$=0,Z=1;(Y.words[0]&Z)===0&&S$<26;++S$,Z<<=1);if(S$>0)for(Y.iushrn(S$);S$-- >0;)(F0.isOdd()||C$.isOdd())&&(F0.iadd(R$),C$.isub(P$)),F0.iushrn(1),C$.iushrn(1);T$.cmp(Y)>=0?(T$.isub(Y),f.isub(F0),D$.isub(C$)):(Y.isub(T$),F0.isub(f),C$.isub(D$))}return{a:F0,b:C$,gcd:Y.iushln(L$)}},$$.prototype._invmp=function(E$){r0(E$.negative===0),r0(!E$.isZero());var T$=this,Y=E$.clone();T$.negative!==0?T$=T$.umod(E$):T$=T$.clone();for(var f=new $$(1),D$=new $$(0),F0=Y.clone();T$.cmpn(1)>0&&Y.cmpn(1)>0;){for(var C$=0,L$=1;(T$.words[0]&L$)===0&&C$<26;++C$,L$<<=1);if(C$>0)for(T$.iushrn(C$);C$-- >0;)f.isOdd()&&f.iadd(F0),f.iushrn(1);for(var R$=0,P$=1;(Y.words[0]&P$)===0&&R$<26;++R$,P$<<=1);if(R$>0)for(Y.iushrn(R$);R$-- >0;)D$.isOdd()&&D$.iadd(F0),D$.iushrn(1);T$.cmp(Y)>=0?(T$.isub(Y),f.isub(D$)):(Y.isub(T$),D$.isub(f))}var z$;return T$.cmpn(1)===0?z$=f:z$=D$,z$.cmpn(0)<0&&z$.iadd(E$),z$},$$.prototype.gcd=function(E$){if(this.isZero())return E$.abs();if(E$.isZero())return this.abs();var T$=this.clone(),Y=E$.clone();T$.negative=0,Y.negative=0;for(var f=0;T$.isEven()&&Y.isEven();f++)T$.iushrn(1),Y.iushrn(1);do{for(;T$.isEven();)T$.iushrn(1);for(;Y.isEven();)Y.iushrn(1);var D$=T$.cmp(Y);if(D$<0){var F0=T$;T$=Y,Y=F0}else if(D$===0||Y.cmpn(1)===0)break;T$.isub(Y)}while(!0);return Y.iushln(f)},$$.prototype.invm=function(E$){return this.egcd(E$).a.umod(E$)},$$.prototype.isEven=function(){return(this.words[0]&1)===0},$$.prototype.isOdd=function(){return(this.words[0]&1)===1},$$.prototype.andln=function(E$){return this.words[0]&E$},$$.prototype.bincn=function(E$){r0(typeof E$=="number");var T$=E$%26,Y=(E$-T$)/26,f=1<>>26,C$&=67108863,this.words[F0]=C$}return D$!==0&&(this.words[F0]=D$,this.length++),this},$$.prototype.isZero=function(){return this.length===1&&this.words[0]===0},$$.prototype.cmpn=function(E$){var T$=E$<0;if(this.negative!==0&&!T$)return-1;if(this.negative===0&&T$)return 1;this.strip();var Y;if(this.length>1)Y=1;else{T$&&(E$=-E$),r0(E$<=67108863,"Number is too big");var f=this.words[0]|0;Y=f===E$?0:fE$.length)return 1;if(this.length=0;Y--){var f=this.words[Y]|0,D$=E$.words[Y]|0;if(f!==D$){fD$&&(T$=1);break}}return T$},$$.prototype.gtn=function(E$){return this.cmpn(E$)===1},$$.prototype.gt=function(E$){return this.cmp(E$)===1},$$.prototype.gten=function(E$){return this.cmpn(E$)>=0},$$.prototype.gte=function(E$){return this.cmp(E$)>=0},$$.prototype.ltn=function(E$){return this.cmpn(E$)===-1},$$.prototype.lt=function(E$){return this.cmp(E$)===-1},$$.prototype.lten=function(E$){return this.cmpn(E$)<=0},$$.prototype.lte=function(E$){return this.cmp(E$)<=0},$$.prototype.eqn=function(E$){return this.cmpn(E$)===0},$$.prototype.eq=function(E$){return this.cmp(E$)===0},$$.red=function(E$){return new H$(E$)},$$.prototype.toRed=function(E$){return r0(!this.red,"Already a number in reduction context"),r0(this.negative===0,"red works only with positives"),E$.convertTo(this)._forceRed(E$)},$$.prototype.fromRed=function(){return r0(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},$$.prototype._forceRed=function(E$){return this.red=E$,this},$$.prototype.forceRed=function(E$){return r0(!this.red,"Already a number in reduction context"),this._forceRed(E$)},$$.prototype.redAdd=function(E$){return r0(this.red,"redAdd works only with red numbers"),this.red.add(this,E$)},$$.prototype.redIAdd=function(E$){return r0(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,E$)},$$.prototype.redSub=function(E$){return r0(this.red,"redSub works only with red numbers"),this.red.sub(this,E$)},$$.prototype.redISub=function(E$){return r0(this.red,"redISub works only with red numbers"),this.red.isub(this,E$)},$$.prototype.redShl=function(E$){return r0(this.red,"redShl works only with red numbers"),this.red.shl(this,E$)},$$.prototype.redMul=function(E$){return r0(this.red,"redMul works only with red numbers"),this.red._verify2(this,E$),this.red.mul(this,E$)},$$.prototype.redIMul=function(E$){return r0(this.red,"redMul works only with red numbers"),this.red._verify2(this,E$),this.red.imul(this,E$)},$$.prototype.redSqr=function(){return r0(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},$$.prototype.redISqr=function(){return r0(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},$$.prototype.redSqrt=function(){return r0(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},$$.prototype.redInvm=function(){return r0(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},$$.prototype.redNeg=function(){return r0(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},$$.prototype.redPow=function(E$){return r0(this.red&&!E$.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,E$)};var x={k256:null,p224:null,p192:null,p25519:null};function O$(E$,T$){this.name=E$,this.p=new $$(T$,16),this.n=this.p.bitLength(),this.k=new $$(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}O$.prototype._tmp=function(){var E$=new $$(null);return E$.words=new Array(Math.ceil(this.n/13)),E$},O$.prototype.ireduce=function(E$){var T$=E$,Y;do this.split(T$,this.tmp),T$=this.imulK(T$),T$=T$.iadd(this.tmp),Y=T$.bitLength();while(Y>this.n);var f=Y0?T$.isub(this.p):T$.strip!==void 0?T$.strip():T$._strip(),T$},O$.prototype.split=function(E$,T$){E$.iushrn(this.n,0,T$)},O$.prototype.imulK=function(E$){return E$.imul(this.k)};function J0(){O$.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i0(J0,O$),J0.prototype.split=function(E$,T$){for(var Y=4194303,f=Math.min(E$.length,9),D$=0;D$>>22,F0=C$}F0>>>=22,E$.words[D$-10]=F0,F0===0&&E$.length>10?E$.length-=10:E$.length-=9},J0.prototype.imulK=function(E$){E$.words[E$.length]=0,E$.words[E$.length+1]=0,E$.length+=2;for(var T$=0,Y=0;Y>>=26,E$.words[Y]=D$,T$=f}return T$!==0&&(E$.words[E$.length++]=T$),E$},$$._prime=function(E$){if(x[E$])return x[E$];var T$;if(E$==="k256")T$=new J0;else if(E$==="p224")T$=new J$;else if(E$==="p192")T$=new F$;else if(E$==="p25519")T$=new A$;else throw new Error("Unknown prime "+E$);return x[E$]=T$,T$};function H$(E$){if(typeof E$=="string"){var T$=$$._prime(E$);this.m=T$.p,this.prime=T$}else r0(E$.gtn(1),"modulus must be greater than 1"),this.m=E$,this.prime=null}H$.prototype._verify1=function(E$){r0(E$.negative===0,"red works only with positives"),r0(E$.red,"red works only with red numbers")},H$.prototype._verify2=function(E$,T$){r0((E$.negative|T$.negative)===0,"red works only with positives"),r0(E$.red&&E$.red===T$.red,"red works only with red numbers")},H$.prototype.imod=function(E$){return this.prime?this.prime.ireduce(E$)._forceRed(this):E$.umod(this.m)._forceRed(this)},H$.prototype.neg=function(E$){return E$.isZero()?E$.clone():this.m.sub(E$)._forceRed(this)},H$.prototype.add=function(E$,T$){this._verify2(E$,T$);var Y=E$.add(T$);return Y.cmp(this.m)>=0&&Y.isub(this.m),Y._forceRed(this)},H$.prototype.iadd=function(E$,T$){this._verify2(E$,T$);var Y=E$.iadd(T$);return Y.cmp(this.m)>=0&&Y.isub(this.m),Y},H$.prototype.sub=function(E$,T$){this._verify2(E$,T$);var Y=E$.sub(T$);return Y.cmpn(0)<0&&Y.iadd(this.m),Y._forceRed(this)},H$.prototype.isub=function(E$,T$){this._verify2(E$,T$);var Y=E$.isub(T$);return Y.cmpn(0)<0&&Y.iadd(this.m),Y},H$.prototype.shl=function(E$,T$){return this._verify1(E$),this.imod(E$.ushln(T$))},H$.prototype.imul=function(E$,T$){return this._verify2(E$,T$),this.imod(E$.imul(T$))},H$.prototype.mul=function(E$,T$){return this._verify2(E$,T$),this.imod(E$.mul(T$))},H$.prototype.isqr=function(E$){return this.imul(E$,E$.clone())},H$.prototype.sqr=function(E$){return this.mul(E$,E$)},H$.prototype.sqrt=function(E$){if(E$.isZero())return E$.clone();var T$=this.m.andln(3);if(r0(T$%2===1),T$===3){var Y=this.m.add(new $$(1)).iushrn(2);return this.pow(E$,Y)}for(var f=this.m.subn(1),D$=0;!f.isZero()&&f.andln(1)===0;)D$++,f.iushrn(1);r0(!f.isZero());var F0=new $$(1).toRed(this),C$=F0.redNeg(),L$=this.m.subn(1).iushrn(1),R$=this.m.bitLength();for(R$=new $$(2*R$*R$).toRed(this);this.pow(R$,L$).cmp(C$)!==0;)R$.redIAdd(C$);for(var P$=this.pow(R$,f),z$=this.pow(E$,f.addn(1).iushrn(1)),M$=this.pow(E$,f),S$=D$;M$.cmp(F0)!==0;){for(var Z=M$,c=0;Z.cmp(F0)!==0;c++)Z=Z.redSqr();r0(c=0;D$--){for(var P$=T$.words[D$],z$=R$-1;z$>=0;z$--){var M$=P$>>z$&1;if(F0!==f[0]&&(F0=this.sqr(F0)),M$===0&&C$===0){L$=0;continue}C$<<=1,C$|=M$,L$++,!(L$!==Y&&(D$!==0||z$!==0))&&(F0=this.mul(F0,f[C$]),L$=0,C$=0)}R$=26}return F0},H$.prototype.convertTo=function(E$){var T$=E$.umod(this.m);return T$===E$?T$.clone():T$},H$.prototype.convertFrom=function(E$){var T$=E$.clone();return T$.red=null,T$},$$.mont=function(E$){return new W$(E$)};function W$(E$){H$.call(this,E$),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new $$(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)}i0(W$,H$),W$.prototype.convertTo=function(E$){return this.imod(E$.ushln(this.shift))},W$.prototype.convertFrom=function(E$){var T$=this.imod(E$.mul(this.rinv));return T$.red=null,T$},W$.prototype.imul=function(E$,T$){if(E$.isZero()||T$.isZero())return E$.words[0]=0,E$.length=1,E$;var Y=E$.imul(T$),f=Y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),D$=Y.isub(f).iushrn(this.shift),F0=D$;return D$.cmp(this.m)>=0?F0=D$.isub(this.m):D$.cmpn(0)<0&&(F0=D$.iadd(this.m)),F0._forceRed(this)},W$.prototype.mul=function(E$,T$){if(E$.isZero()||T$.isZero())return new $$(0)._forceRed(this);var Y=E$.mul(T$),f=Y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),D$=Y.isub(f).iushrn(this.shift),F0=D$;return D$.cmp(this.m)>=0?F0=D$.isub(this.m):D$.cmpn(0)<0&&(F0=D$.iadd(this.m)),F0._forceRed(this)},W$.prototype.invm=function(E$){var T$=this.imod(E$._invmp(this.m).mul(this.r2));return T$._forceRed(this)}})(typeof m0>"u"||m0,t0)}}),tY=pQ({"node_modules/safer-buffer/safer.js"(t0,m0){var a0=P0,e0=G0,r0={},i0;for(i0 in a0)!a0.hasOwnProperty(i0)||i0==="SlowBuffer"||i0==="Buffer"||(r0[i0]=a0[i0]);var $$=r0.Buffer={};for(i0 in e0)!e0.hasOwnProperty(i0)||i0==="allocUnsafe"||i0==="allocUnsafeSlow"||($$[i0]=e0[i0]);if(r0.Buffer.prototype=e0.prototype,(!$$.from||$$.from===Uint8Array.from)&&($$.from=function(Q$,$,N){if(typeof Q$=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof Q$);if(Q$&&typeof Q$.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Q$);return e0(Q$,$,N)}),$$.alloc||($$.alloc=function(Q$,$,N){if(typeof Q$!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof Q$);if(Q$<0||Q$>=2*(1<<30))throw new RangeError('The value "'+Q$+'" is invalid for option "size"');var Y$=e0(Q$);return!$||$.length===0?Y$.fill(0):typeof N=="string"?Y$.fill($,N):Y$.fill($),Y$}),!r0.kStringMaxLength)try{r0.kStringMaxLength=yQ}catch{}r0.constants||(r0.constants={MAX_LENGTH:r0.kMaxLength},r0.kStringMaxLength&&(r0.constants.MAX_STRING_LENGTH=r0.kStringMaxLength)),m0.exports=r0}}),mY=pQ({"node_modules/asn1.js/lib/asn1/base/reporter.js"(t0){var m0=dQ();function a0(r0){this._reporterState={obj:null,path:[],options:r0||{},errors:[]}}t0.Reporter=a0,a0.prototype.isError=function(r0){return r0 instanceof e0},a0.prototype.save=function(){let r0=this._reporterState;return{obj:r0.obj,pathLen:r0.path.length}},a0.prototype.restore=function(r0){let i0=this._reporterState;i0.obj=r0.obj,i0.path=i0.path.slice(0,r0.pathLen)},a0.prototype.enterKey=function(r0){return this._reporterState.path.push(r0)},a0.prototype.exitKey=function(r0){let i0=this._reporterState;i0.path=i0.path.slice(0,r0-1)},a0.prototype.leaveKey=function(r0,i0,$$){let Q$=this._reporterState;this.exitKey(r0),Q$.obj!==null&&(Q$.obj[i0]=$$)},a0.prototype.path=function(){return this._reporterState.path.join("/")},a0.prototype.enterObject=function(){let r0=this._reporterState,i0=r0.obj;return r0.obj={},i0},a0.prototype.leaveObject=function(r0){let i0=this._reporterState,$$=i0.obj;return i0.obj=r0,$$},a0.prototype.error=function(r0){let i0,$$=this._reporterState,Q$=r0 instanceof e0;if(Q$?i0=r0:i0=new e0($$.path.map(function($){return"["+JSON.stringify($)+"]"}).join(""),r0.message||r0,r0.stack),!$$.options.partial)throw i0;return Q$||$$.errors.push(i0),i0},a0.prototype.wrapResult=function(r0){let i0=this._reporterState;return i0.options.partial?{result:this.isError(r0)?null:r0,errors:i0.errors}:r0};function e0(r0,i0){this.path=r0,this.rethrow(i0)}m0(e0,Error),e0.prototype.rethrow=function(r0){if(this.message=r0+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,e0),!this.stack)try{throw new Error(this.message)}catch(i0){this.stack=i0.stack}return this}}}),kQ=pQ({"node_modules/asn1.js/lib/asn1/base/buffer.js"(t0){var m0=dQ(),a0=mY().Reporter,e0=tY().Buffer;function r0($$,Q$){if(a0.call(this,Q$),!e0.isBuffer($$)){this.error("Input not Buffer");return}this.base=$$,this.offset=0,this.length=$$.length}m0(r0,a0),t0.DecoderBuffer=r0,r0.isDecoderBuffer=function($$){return $$ instanceof r0?!0:typeof $$=="object"&&e0.isBuffer($$.base)&&$$.constructor.name==="DecoderBuffer"&&typeof $$.offset=="number"&&typeof $$.length=="number"&&typeof $$.save=="function"&&typeof $$.restore=="function"&&typeof $$.isEmpty=="function"&&typeof $$.readUInt8=="function"&&typeof $$.skip=="function"&&typeof $$.raw=="function"},r0.prototype.save=function(){return{offset:this.offset,reporter:a0.prototype.save.call(this)}},r0.prototype.restore=function($$){let Q$=new r0(this.base);return Q$.offset=$$.offset,Q$.length=this.offset,this.offset=$$.offset,a0.prototype.restore.call(this,$$.reporter),Q$},r0.prototype.isEmpty=function(){return this.offset===this.length},r0.prototype.readUInt8=function($$){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error($$||"DecoderBuffer overrun")},r0.prototype.skip=function($$,Q$){if(!(this.offset+$$<=this.length))return this.error(Q$||"DecoderBuffer overrun");let $=new r0(this.base);return $._reporterState=this._reporterState,$.offset=this.offset,$.length=this.offset+$$,this.offset+=$$,$},r0.prototype.raw=function($$){return this.base.slice($$?$$.offset:this.offset,this.length)};function i0($$,Q$){if(Array.isArray($$))this.length=0,this.value=$$.map(function($){return i0.isEncoderBuffer($)||($=new i0($,Q$)),this.length+=$.length,$},this);else if(typeof $$=="number"){if(!(0<=$$&&$$<=255))return Q$.error("non-byte EncoderBuffer value");this.value=$$,this.length=1}else if(typeof $$=="string")this.value=$$,this.length=e0.byteLength($$);else if(e0.isBuffer($$))this.value=$$,this.length=$$.length;else return Q$.error("Unsupported type: "+typeof $$)}t0.EncoderBuffer=i0,i0.isEncoderBuffer=function($$){return $$ instanceof i0?!0:typeof $$=="object"&&$$.constructor.name==="EncoderBuffer"&&typeof $$.length=="number"&&typeof $$.join=="function"},i0.prototype.join=function($$,Q$){return $$||($$=e0.alloc(this.length)),Q$||(Q$=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function($){$.join($$,Q$),Q$+=$.length}):(typeof this.value=="number"?$$[Q$]=this.value:typeof this.value=="string"?$$.write(this.value,Q$):e0.isBuffer(this.value)&&this.value.copy($$,Q$),Q$+=this.length)),$$}}}),aY=pQ({"node_modules/asn1.js/lib/asn1/base/node.js"(t0,m0){var a0=mY().Reporter,e0=kQ().EncoderBuffer,r0=kQ().DecoderBuffer,i0=v0(),$$=["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"],Q$=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat($$),$=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function N(O0,Z$,G$){let V$={};this._baseState=V$,V$.name=G$,V$.enc=O0,V$.parent=Z$||null,V$.children=null,V$.tag=null,V$.args=null,V$.reverseArgs=null,V$.choice=null,V$.optional=!1,V$.any=!1,V$.obj=!1,V$.use=null,V$.useDecoder=null,V$.key=null,V$.default=null,V$.explicit=null,V$.implicit=null,V$.contains=null,V$.parent||(V$.children=[],this._wrap())}m0.exports=N;var Y$=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];N.prototype.clone=function(){let O0=this._baseState,Z$={};Y$.forEach(function(V$){Z$[V$]=O0[V$]});let G$=new this.constructor(Z$.parent);return G$._baseState=Z$,G$},N.prototype._wrap=function(){let O0=this._baseState;Q$.forEach(function(Z$){this[Z$]=function(){let G$=new this.constructor(this);return O0.children.push(G$),G$[Z$].apply(G$,arguments)}},this)},N.prototype._init=function(O0){let Z$=this._baseState;i0(Z$.parent===null),O0.call(this),Z$.children=Z$.children.filter(function(G$){return G$._baseState.parent===this},this),i0.equal(Z$.children.length,1,"Root node can have only one child")},N.prototype._useArgs=function(O0){let Z$=this._baseState,G$=O0.filter(function(V$){return V$ instanceof this.constructor},this);O0=O0.filter(function(V$){return!(V$ instanceof this.constructor)},this),G$.length!==0&&(i0(Z$.children===null),Z$.children=G$,G$.forEach(function(V$){V$._baseState.parent=this},this)),O0.length!==0&&(i0(Z$.args===null),Z$.args=O0,Z$.reverseArgs=O0.map(function(V$){if(typeof V$!="object"||V$.constructor!==Object)return V$;let U$={};return Object.keys(V$).forEach(function(X$){X$==(X$|0)&&(X$|=0);let K$=V$[X$];U$[K$]=X$}),U$}))},$.forEach(function(O0){N.prototype[O0]=function(){let Z$=this._baseState;throw new Error(O0+" not implemented for encoding: "+Z$.enc)}}),$$.forEach(function(O0){N.prototype[O0]=function(){let Z$=this._baseState,G$=Array.prototype.slice.call(arguments);return i0(Z$.tag===null),Z$.tag=O0,this._useArgs(G$),this}}),N.prototype.use=function(O0){i0(O0);let Z$=this._baseState;return i0(Z$.use===null),Z$.use=O0,this},N.prototype.optional=function(){let O0=this._baseState;return O0.optional=!0,this},N.prototype.def=function(O0){let Z$=this._baseState;return i0(Z$.default===null),Z$.default=O0,Z$.optional=!0,this},N.prototype.explicit=function(O0){let Z$=this._baseState;return i0(Z$.explicit===null&&Z$.implicit===null),Z$.explicit=O0,this},N.prototype.implicit=function(O0){let Z$=this._baseState;return i0(Z$.explicit===null&&Z$.implicit===null),Z$.implicit=O0,this},N.prototype.obj=function(){let O0=this._baseState,Z$=Array.prototype.slice.call(arguments);return O0.obj=!0,Z$.length!==0&&this._useArgs(Z$),this},N.prototype.key=function(O0){let Z$=this._baseState;return i0(Z$.key===null),Z$.key=O0,this},N.prototype.any=function(){let O0=this._baseState;return O0.any=!0,this},N.prototype.choice=function(O0){let Z$=this._baseState;return i0(Z$.choice===null),Z$.choice=O0,this._useArgs(Object.keys(O0).map(function(G$){return O0[G$]})),this},N.prototype.contains=function(O0){let Z$=this._baseState;return i0(Z$.use===null),Z$.contains=O0,this},N.prototype._decode=function(O0,Z$){let G$=this._baseState;if(G$.parent===null)return O0.wrapResult(G$.children[0]._decode(O0,Z$));let V$=G$.default,U$=!0,X$=null;if(G$.key!==null&&(X$=O0.enterKey(G$.key)),G$.optional){let I$=null;if(G$.explicit!==null?I$=G$.explicit:G$.implicit!==null?I$=G$.implicit:G$.tag!==null&&(I$=G$.tag),I$===null&&!G$.any){let Q=O0.save();try{G$.choice===null?this._decodeGeneric(G$.tag,O0,Z$):this._decodeChoice(O0,Z$),U$=!0}catch{U$=!1}O0.restore(Q)}else if(U$=this._peekTag(O0,I$,G$.any),O0.isError(U$))return U$}let K$;if(G$.obj&&U$&&(K$=O0.enterObject()),U$){if(G$.explicit!==null){let Q=this._decodeTag(O0,G$.explicit);if(O0.isError(Q))return Q;O0=Q}let I$=O0.offset;if(G$.use===null&&G$.choice===null){let Q;G$.any&&(Q=O0.save());let x=this._decodeTag(O0,G$.implicit!==null?G$.implicit:G$.tag,G$.any);if(O0.isError(x))return x;G$.any?V$=O0.raw(Q):O0=x}if(Z$&&Z$.track&&G$.tag!==null&&Z$.track(O0.path(),I$,O0.length,"tagged"),Z$&&Z$.track&&G$.tag!==null&&Z$.track(O0.path(),O0.offset,O0.length,"content"),G$.any||(G$.choice===null?V$=this._decodeGeneric(G$.tag,O0,Z$):V$=this._decodeChoice(O0,Z$)),O0.isError(V$))return V$;if(!G$.any&&G$.choice===null&&G$.children!==null&&G$.children.forEach(function(Q){Q._decode(O0,Z$)}),G$.contains&&(G$.tag==="octstr"||G$.tag==="bitstr")){let Q=new r0(V$);V$=this._getUse(G$.contains,O0._reporterState.obj)._decode(Q,Z$)}}return G$.obj&&U$&&(V$=O0.leaveObject(K$)),G$.key!==null&&(V$!==null||U$===!0)?O0.leaveKey(X$,G$.key,V$):X$!==null&&O0.exitKey(X$),V$},N.prototype._decodeGeneric=function(O0,Z$,G$){let V$=this._baseState;return O0==="seq"||O0==="set"?null:O0==="seqof"||O0==="setof"?this._decodeList(Z$,O0,V$.args[0],G$):/str$/.test(O0)?this._decodeStr(Z$,O0,G$):O0==="objid"&&V$.args?this._decodeObjid(Z$,V$.args[0],V$.args[1],G$):O0==="objid"?this._decodeObjid(Z$,null,null,G$):O0==="gentime"||O0==="utctime"?this._decodeTime(Z$,O0,G$):O0==="null_"?this._decodeNull(Z$,G$):O0==="bool"?this._decodeBool(Z$,G$):O0==="objDesc"?this._decodeStr(Z$,O0,G$):O0==="int"||O0==="enum"?this._decodeInt(Z$,V$.args&&V$.args[0],G$):V$.use!==null?this._getUse(V$.use,Z$._reporterState.obj)._decode(Z$,G$):Z$.error("unknown tag: "+O0)},N.prototype._getUse=function(O0,Z$){let G$=this._baseState;return G$.useDecoder=this._use(O0,Z$),i0(G$.useDecoder._baseState.parent===null),G$.useDecoder=G$.useDecoder._baseState.children[0],G$.implicit!==G$.useDecoder._baseState.implicit&&(G$.useDecoder=G$.useDecoder.clone(),G$.useDecoder._baseState.implicit=G$.implicit),G$.useDecoder},N.prototype._decodeChoice=function(O0,Z$){let G$=this._baseState,V$=null,U$=!1;return Object.keys(G$.choice).some(function(X$){let K$=O0.save(),I$=G$.choice[X$];try{let Q=I$._decode(O0,Z$);if(O0.isError(Q))return!1;V$={type:X$,value:Q},U$=!0}catch{return O0.restore(K$),!1}return!0},this),U$?V$:O0.error("Choice not matched")},N.prototype._createEncoderBuffer=function(O0){return new e0(O0,this.reporter)},N.prototype._encode=function(O0,Z$,G$){let V$=this._baseState;if(V$.default!==null&&V$.default===O0)return;let U$=this._encodeValue(O0,Z$,G$);if(U$!==void 0&&!this._skipDefault(U$,Z$,G$))return U$},N.prototype._encodeValue=function(O0,Z$,G$){let V$=this._baseState;if(V$.parent===null)return V$.children[0]._encode(O0,Z$||new a0);let U$=null;if(this.reporter=Z$,V$.optional&&O0===void 0)if(V$.default!==null)O0=V$.default;else return;let X$=null,K$=!1;if(V$.any)U$=this._createEncoderBuffer(O0);else if(V$.choice)U$=this._encodeChoice(O0,Z$);else if(V$.contains)X$=this._getUse(V$.contains,G$)._encode(O0,Z$),K$=!0;else if(V$.children)X$=V$.children.map(function(I$){if(I$._baseState.tag==="null_")return I$._encode(null,Z$,O0);if(I$._baseState.key===null)return Z$.error("Child should have a key");let Q=Z$.enterKey(I$._baseState.key);if(typeof O0!="object")return Z$.error("Child expected, but input is not object");let x=I$._encode(O0[I$._baseState.key],Z$,O0);return Z$.leaveKey(Q),x},this).filter(function(I$){return I$}),X$=this._createEncoderBuffer(X$);else if(V$.tag==="seqof"||V$.tag==="setof"){if(!(V$.args&&V$.args.length===1))return Z$.error("Too many args for : "+V$.tag);if(!Array.isArray(O0))return Z$.error("seqof/setof, but data is not Array");let I$=this.clone();I$._baseState.implicit=null,X$=this._createEncoderBuffer(O0.map(function(Q){let x=this._baseState;return this._getUse(x.args[0],O0)._encode(Q,Z$)},I$))}else V$.use!==null?U$=this._getUse(V$.use,G$)._encode(O0,Z$):(X$=this._encodePrimitive(V$.tag,O0),K$=!0);if(!V$.any&&V$.choice===null){let I$=V$.implicit!==null?V$.implicit:V$.tag,Q=V$.implicit===null?"universal":"context";I$===null?V$.use===null&&Z$.error("Tag could be omitted only for .use()"):V$.use===null&&(U$=this._encodeComposite(I$,K$,Q,X$))}return V$.explicit!==null&&(U$=this._encodeComposite(V$.explicit,!1,"context",U$)),U$},N.prototype._encodeChoice=function(O0,Z$){let G$=this._baseState,V$=G$.choice[O0.type];return V$||i0(!1,O0.type+" not found in "+JSON.stringify(Object.keys(G$.choice))),V$._encode(O0.value,Z$)},N.prototype._encodePrimitive=function(O0,Z$){let G$=this._baseState;if(/str$/.test(O0))return this._encodeStr(Z$,O0);if(O0==="objid"&&G$.args)return this._encodeObjid(Z$,G$.reverseArgs[0],G$.args[1]);if(O0==="objid")return this._encodeObjid(Z$,null,null);if(O0==="gentime"||O0==="utctime")return this._encodeTime(Z$,O0);if(O0==="null_")return this._encodeNull();if(O0==="int"||O0==="enum")return this._encodeInt(Z$,G$.args&&G$.reverseArgs[0]);if(O0==="bool")return this._encodeBool(Z$);if(O0==="objDesc")return this._encodeStr(Z$,O0);throw new Error("Unsupported tag: "+O0)},N.prototype._isNumstr=function(O0){return/^[0-9 ]*$/.test(O0)},N.prototype._isPrintstr=function(O0){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(O0)}}}),eY=pQ({"node_modules/asn1.js/lib/asn1/constants/der.js"(t0){function m0(a0){let e0={};return Object.keys(a0).forEach(function(r0){(r0|0)==r0&&(r0=r0|0);let i0=a0[r0];e0[i0]=r0}),e0}t0.tagClass={0:"universal",1:"application",2:"context",3:"private"},t0.tagClassByName=m0(t0.tagClass),t0.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"},t0.tagByName=m0(t0.tag)}}),R=pQ({"node_modules/asn1.js/lib/asn1/encoders/der.js"(t0,m0){var a0=dQ(),e0=tY().Buffer,r0=aY(),i0=eY();function $$(Y$){this.enc="der",this.name=Y$.name,this.entity=Y$,this.tree=new Q$,this.tree._init(Y$.body)}m0.exports=$$,$$.prototype.encode=function(Y$,O0){return this.tree._encode(Y$,O0).join()};function Q$(Y$){r0.call(this,"der",Y$)}a0(Q$,r0),Q$.prototype._encodeComposite=function(Y$,O0,Z$,G$){let V$=N(Y$,O0,Z$,this.reporter);if(G$.length<128){let K$=e0.alloc(2);return K$[0]=V$,K$[1]=G$.length,this._createEncoderBuffer([K$,G$])}let U$=1;for(let K$=G$.length;K$>=256;K$>>=8)U$++;let X$=e0.alloc(2+U$);X$[0]=V$,X$[1]=128|U$;for(let K$=1+U$,I$=G$.length;I$>0;K$--,I$>>=8)X$[K$]=I$&255;return this._createEncoderBuffer([X$,G$])},Q$.prototype._encodeStr=function(Y$,O0){if(O0==="bitstr")return this._createEncoderBuffer([Y$.unused|0,Y$.data]);if(O0==="bmpstr"){let Z$=e0.alloc(Y$.length*2);for(let G$=0;G$=40)return this.reporter.error("Second objid identifier OOB");Y$.splice(0,2,Y$[0]*40+Y$[1])}let G$=0;for(let X$=0;X$=128;K$>>=7)G$++}let V$=e0.alloc(G$),U$=V$.length-1;for(let X$=Y$.length-1;X$>=0;X$--){let K$=Y$[X$];for(V$[U$--]=K$&127;(K$>>=7)>0;)V$[U$--]=128|K$&127}return this._createEncoderBuffer(V$)};function $(Y$){return Y$<10?"0"+Y$:Y$}Q$.prototype._encodeTime=function(Y$,O0){let Z$,G$=new Date(Y$);return O0==="gentime"?Z$=[$(G$.getUTCFullYear()),$(G$.getUTCMonth()+1),$(G$.getUTCDate()),$(G$.getUTCHours()),$(G$.getUTCMinutes()),$(G$.getUTCSeconds()),"Z"].join(""):O0==="utctime"?Z$=[$(G$.getUTCFullYear()%100),$(G$.getUTCMonth()+1),$(G$.getUTCDate()),$(G$.getUTCHours()),$(G$.getUTCMinutes()),$(G$.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+O0+" time is not supported yet"),this._encodeStr(Z$,"octstr")},Q$.prototype._encodeNull=function(){return this._createEncoderBuffer("")},Q$.prototype._encodeInt=function(Y$,O0){if(typeof Y$=="string"){if(!O0)return this.reporter.error("String int or enum given, but no values map");if(!O0.hasOwnProperty(Y$))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(Y$));Y$=O0[Y$]}if(typeof Y$!="number"&&!e0.isBuffer(Y$)){let V$=Y$.toArray();!Y$.sign&&V$[0]&128&&V$.unshift(0),Y$=e0.from(V$)}if(e0.isBuffer(Y$)){let V$=Y$.length;Y$.length===0&&V$++;let U$=e0.alloc(V$);return Y$.copy(U$),Y$.length===0&&(U$[0]=0),this._createEncoderBuffer(U$)}if(Y$<128)return this._createEncoderBuffer(Y$);if(Y$<256)return this._createEncoderBuffer([0,Y$]);let Z$=1;for(let V$=Y$;V$>=256;V$>>=8)Z$++;let G$=new Array(Z$);for(let V$=G$.length-1;V$>=0;V$--)G$[V$]=Y$&255,Y$>>=8;return G$[0]&128&&G$.unshift(0),this._createEncoderBuffer(e0.from(G$))},Q$.prototype._encodeBool=function(Y$){return this._createEncoderBuffer(Y$?255:0)},Q$.prototype._use=function(Y$,O0){return typeof Y$=="function"&&(Y$=Y$(O0)),Y$._getEncoder("der").tree},Q$.prototype._skipDefault=function(Y$,O0,Z$){let G$=this._baseState,V$;if(G$.default===null)return!1;let U$=Y$.join();if(G$.defaultBuffer===void 0&&(G$.defaultBuffer=this._encodeValue(G$.default,O0,Z$).join()),U$.length!==G$.defaultBuffer.length)return!1;for(V$=0;V$=31?G$.error("Multi-octet tag encoding unsupported"):(O0||(V$|=32),V$|=i0.tagClassByName[Z$||"universal"]<<6,V$)}}}),r=pQ({"node_modules/asn1.js/lib/asn1/encoders/pem.js"(t0,m0){var a0=dQ(),e0=R();function r0(i0){e0.call(this,i0),this.enc="pem"}a0(r0,e0),m0.exports=r0,r0.prototype.encode=function(i0,$$){let Q$=e0.prototype.encode.call(this,i0).toString("base64"),$=["-----BEGIN "+$$.label+"-----"];for(let N=0;N>6],U$=(G$&32)===0;if((G$&31)===31){let K$=G$;for(G$=0;(K$&128)===128;){if(K$=O0.readUInt8(Z$),O0.isError(K$))return K$;G$<<=7,G$|=K$&127}}else G$&=31;let X$=$$.tag[G$];return{cls:V$,primitive:U$,tag:G$,tagStr:X$}}function Y$(O0,Z$,G$){let V$=O0.readUInt8(G$);if(O0.isError(V$))return V$;if(!Z$&&V$===128)return null;if((V$&128)===0)return V$;let U$=V$&127;if(U$>4)return O0.error("length octect is too long");V$=0;for(let X$=0;X$0&&x.ishrn(O$),x}function U$(I$,Q){I$=V$(I$,Q),I$=I$.mod(Q);var x=a0.from(I$.toArray());if(x.length=Z$)throw new Error("invalid sig")}m0.exports=Q$}}),IZ=pQ({"node_modules/browserify-sign/browser/index.js"(t0,m0){var a0=cQ().Buffer,e0=w(),r0=dQ(),i0=XZ(),$$=KZ(),Q$=eQ();Object.keys(Q$).forEach(function(Z$){Q$[Z$].id=a0.from(Q$[Z$].id,"hex"),Q$[Z$.toLowerCase()]=Q$[Z$]});function $(Z$){R0.Writable.call(this);var G$=Q$[Z$];if(!G$)throw new Error("Unknown message digest");this._hashType=G$.hash,this._hash=e0(G$.hash),this._tag=G$.id,this._signType=G$.sign}r0($,R0.Writable),$.prototype._write=function(Z$,G$,V$){this._hash.update(Z$),V$()},$.prototype.update=function(Z$,G$){return typeof Z$=="string"&&(Z$=a0.from(Z$,G$)),this._hash.update(Z$),this},$.prototype.sign=function(Z$,G$){this.end();var V$=this._hash.digest(),U$=i0(V$,Z$,this._hashType,this._signType,this._tag);return G$?U$.toString(G$):U$};function N(Z$){R0.Writable.call(this);var G$=Q$[Z$];if(!G$)throw new Error("Unknown message digest");this._hash=e0(G$.hash),this._tag=G$.id,this._signType=G$.sign}r0(N,R0.Writable),N.prototype._write=function(Z$,G$,V$){this._hash.update(Z$),V$()},N.prototype.update=function(Z$,G$){return typeof Z$=="string"&&(Z$=a0.from(Z$,G$)),this._hash.update(Z$),this},N.prototype.verify=function(Z$,G$,V$){typeof G$=="string"&&(G$=a0.from(G$,V$)),this.end();var U$=this._hash.digest();return $$(G$,U$,Z$,this._signType,this._tag)};function Y$(Z$){return new $(Z$)}function O0(Z$){return new N(Z$)}m0.exports={Sign:Y$,Verify:O0,createSign:Y$,createVerify:O0}}}),OZ=pQ({"node_modules/create-ecdh/node_modules/bn.js/lib/bn.js"(t0,m0){(function(a0,e0){function r0(E$,T$){if(!E$)throw new Error(T$||"Assertion failed")}function i0(E$,T$){E$.super_=T$;var Y=function(){};Y.prototype=T$.prototype,E$.prototype=new Y,E$.prototype.constructor=E$}function $$(E$,T$,Y){if($$.isBN(E$))return E$;this.negative=0,this.words=null,this.length=0,this.red=null,E$!==null&&((T$==="le"||T$==="be")&&(Y=T$,T$=10),this._init(E$||0,T$||10,Y||"be"))}typeof a0=="object"?a0.exports=$$:e0.BN=$$,$$.BN=$$,$$.wordSize=26;var Q$=G0;$$.isBN=function(E$){return E$ instanceof $$?!0:E$!==null&&typeof E$=="object"&&E$.constructor.wordSize===$$.wordSize&&Array.isArray(E$.words)},$$.max=function(E$,T$){return E$.cmp(T$)>0?E$:T$},$$.min=function(E$,T$){return E$.cmp(T$)<0?E$:T$},$$.prototype._init=function(E$,T$,Y){if(typeof E$=="number")return this._initNumber(E$,T$,Y);if(typeof E$=="object")return this._initArray(E$,T$,Y);T$==="hex"&&(T$=16),r0(T$===(T$|0)&&T$>=2&&T$<=36),E$=E$.toString().replace(/\s+/g,"");var f=0;E$[0]==="-"&&(f++,this.negative=1),f=0;f-=3)F0=E$[f]|E$[f-1]<<8|E$[f-2]<<16,this.words[D$]|=F0<>>26-C$&67108863,C$+=24,C$>=26&&(C$-=26,D$++);else if(Y==="le")for(f=0,D$=0;f>>26-C$&67108863,C$+=24,C$>=26&&(C$-=26,D$++);return this.strip()};function $(E$,T$){var Y=E$.charCodeAt(T$);return Y>=65&&Y<=70?Y-55:Y>=97&&Y<=102?Y-87:Y-48&15}function N(E$,T$,Y){var f=$(E$,Y);return Y-1>=T$&&(f|=$(E$,Y-1)<<4),f}$$.prototype._parseHex=function(E$,T$,Y){this.length=Math.ceil((E$.length-T$)/6),this.words=new Array(this.length);for(var f=0;f=T$;f-=2)C$=N(E$,T$,f)<=18?(D$-=18,F0+=1,this.words[F0]|=C$>>>26):D$+=8;else{var L$=E$.length-T$;for(f=L$%2===0?T$+1:T$;f=18?(D$-=18,F0+=1,this.words[F0]|=C$>>>26):D$+=8}this.strip()};function Y$(E$,T$,Y,f){for(var D$=0,F0=Math.min(E$.length,Y),C$=T$;C$=49?D$+=L$-49+10:L$>=17?D$+=L$-17+10:D$+=L$}return D$}$$.prototype._parseBase=function(E$,T$,Y){this.words=[0],this.length=1;for(var f=0,D$=1;D$<=67108863;D$*=T$)f++;f--,D$=D$/T$|0;for(var F0=E$.length-Y,C$=F0%f,L$=Math.min(F0,F0-C$)+Y,R$=0,P$=Y;P$1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},$$.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},$$.prototype.inspect=function(){return(this.red?""};var O0=["","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"],Z$=[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],G$=[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];$$.prototype.toString=function(E$,T$){E$=E$||10,T$=T$|0||1;var Y;if(E$===16||E$==="hex"){Y="";for(var f=0,D$=0,F0=0;F0>>24-f&16777215,D$!==0||F0!==this.length-1?Y=O0[6-L$.length]+L$+Y:Y=L$+Y,f+=2,f>=26&&(f-=26,F0--)}for(D$!==0&&(Y=D$.toString(16)+Y);Y.length%T$!==0;)Y="0"+Y;return this.negative!==0&&(Y="-"+Y),Y}if(E$===(E$|0)&&E$>=2&&E$<=36){var R$=Z$[E$],P$=G$[E$];Y="";var z$=this.clone();for(z$.negative=0;!z$.isZero();){var M$=z$.modn(P$).toString(E$);z$=z$.idivn(P$),z$.isZero()?Y=M$+Y:Y=O0[R$-M$.length]+M$+Y}for(this.isZero()&&(Y="0"+Y);Y.length%T$!==0;)Y="0"+Y;return this.negative!==0&&(Y="-"+Y),Y}r0(!1,"Base should be between 2 and 36")},$$.prototype.toNumber=function(){var E$=this.words[0];return this.length===2?E$+=this.words[1]*67108864:this.length===3&&this.words[2]===1?E$+=4503599627370496+this.words[1]*67108864:this.length>2&&r0(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-E$:E$},$$.prototype.toJSON=function(){return this.toString(16)},$$.prototype.toBuffer=function(E$,T$){return r0(typeof Q$<"u"),this.toArrayLike(Q$,E$,T$)},$$.prototype.toArray=function(E$,T$){return this.toArrayLike(Array,E$,T$)},$$.prototype.toArrayLike=function(E$,T$,Y){var f=this.byteLength(),D$=Y||Math.max(1,f);r0(f<=D$,"byte array longer than desired length"),r0(D$>0,"Requested array length <= 0"),this.strip();var F0=T$==="le",C$=new E$(D$),L$,R$,P$=this.clone();if(F0){for(R$=0;!P$.isZero();R$++)L$=P$.andln(255),P$.iushrn(8),C$[R$]=L$;for(;R$=4096&&(Y+=13,T$>>>=13),T$>=64&&(Y+=7,T$>>>=7),T$>=8&&(Y+=4,T$>>>=4),T$>=2&&(Y+=2,T$>>>=2),Y+T$},$$.prototype._zeroBits=function(E$){if(E$===0)return 26;var T$=E$,Y=0;return(T$&8191)===0&&(Y+=13,T$>>>=13),(T$&127)===0&&(Y+=7,T$>>>=7),(T$&15)===0&&(Y+=4,T$>>>=4),(T$&3)===0&&(Y+=2,T$>>>=2),(T$&1)===0&&Y++,Y},$$.prototype.bitLength=function(){var E$=this.words[this.length-1],T$=this._countBits(E$);return(this.length-1)*26+T$};function V$(E$){for(var T$=new Array(E$.bitLength()),Y=0;Y>>D$}return T$}$$.prototype.zeroBits=function(){if(this.isZero())return 0;for(var E$=0,T$=0;T$E$.length?this.clone().ior(E$):E$.clone().ior(this)},$$.prototype.uor=function(E$){return this.length>E$.length?this.clone().iuor(E$):E$.clone().iuor(this)},$$.prototype.iuand=function(E$){var T$;this.length>E$.length?T$=E$:T$=this;for(var Y=0;YE$.length?this.clone().iand(E$):E$.clone().iand(this)},$$.prototype.uand=function(E$){return this.length>E$.length?this.clone().iuand(E$):E$.clone().iuand(this)},$$.prototype.iuxor=function(E$){var T$,Y;this.length>E$.length?(T$=this,Y=E$):(T$=E$,Y=this);for(var f=0;fE$.length?this.clone().ixor(E$):E$.clone().ixor(this)},$$.prototype.uxor=function(E$){return this.length>E$.length?this.clone().iuxor(E$):E$.clone().iuxor(this)},$$.prototype.inotn=function(E$){r0(typeof E$=="number"&&E$>=0);var T$=Math.ceil(E$/26)|0,Y=E$%26;this._expand(T$),Y>0&&T$--;for(var f=0;f0&&(this.words[f]=~this.words[f]&67108863>>26-Y),this.strip()},$$.prototype.notn=function(E$){return this.clone().inotn(E$)},$$.prototype.setn=function(E$,T$){r0(typeof E$=="number"&&E$>=0);var Y=E$/26|0,f=E$%26;return this._expand(Y+1),T$?this.words[Y]=this.words[Y]|1<E$.length?(Y=this,f=E$):(Y=E$,f=this);for(var D$=0,F0=0;F0>>26;for(;D$!==0&&F0>>26;if(this.length=Y.length,D$!==0)this.words[this.length]=D$,this.length++;else if(Y!==this)for(;F0E$.length?this.clone().iadd(E$):E$.clone().iadd(this)},$$.prototype.isub=function(E$){if(E$.negative!==0){E$.negative=0;var T$=this.iadd(E$);return E$.negative=1,T$._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(E$),this.negative=1,this._normSign();var Y=this.cmp(E$);if(Y===0)return this.negative=0,this.length=1,this.words[0]=0,this;var f,D$;Y>0?(f=this,D$=E$):(f=E$,D$=this);for(var F0=0,C$=0;C$>26,this.words[C$]=T$&67108863;for(;F0!==0&&C$>26,this.words[C$]=T$&67108863;if(F0===0&&C$>>26,M$=R$&67108863,S$=Math.min(P$,T$.length-1),Z=Math.max(0,P$-E$.length+1);Z<=S$;Z++){var c=P$-Z|0;D$=E$.words[c]|0,F0=T$.words[Z]|0,C$=D$*F0+M$,z$+=C$/67108864|0,M$=C$&67108863}Y.words[P$]=M$|0,R$=z$|0}return R$!==0?Y.words[P$]=R$|0:Y.length--,Y.strip()}var X$=function(E$,T$,Y){var f=E$.words,D$=T$.words,F0=Y.words,C$=0,L$,R$,P$,z$=f[0]|0,M$=z$&8191,S$=z$>>>13,Z=f[1]|0,c=Z&8191,v$=Z>>>13,A0=f[2]|0,q$=A0&8191,j$=A0>>>13,k$=f[3]|0,g$=k$&8191,_$=k$>>>13,N$=f[4]|0,x$=N$&8191,G=N$>>>13,B=f[5]|0,B$=B&8191,H0=B>>>13,y$=f[6]|0,w$=y$&8191,p$=y$>>>13,f$=f[7]|0,c$=f$&8191,h$=f$>>>13,d$=f[8]|0,V=d$&8191,h=d$>>>13,W0=f[9]|0,E0=W0&8191,b$=W0>>>13,l$=D$[0]|0,o$=l$&8191,u$=l$>>>13,n$=D$[1]|0,s$=n$&8191,t$=n$>>>13,U=D$[2]|0,d=U&8191,m$=U>>>13,T0=D$[3]|0,a$=T0&8191,e$=T0>>>13,r$=D$[4]|0,i$=r$&8191,$Q=r$>>>13,QQ=D$[5]|0,YQ=QQ&8191,X=QQ>>>13,b=D$[6]|0,ZQ=b&8191,D0=b>>>13,GQ=D$[7]|0,VQ=GQ&8191,UQ=GQ>>>13,XQ=D$[8]|0,KQ=XQ&8191,IQ=XQ>>>13,OQ=D$[9]|0,K=OQ&8191,l=OQ>>>13;Y.negative=E$.negative^T$.negative,Y.length=19,L$=Math.imul(M$,o$),R$=Math.imul(M$,u$),R$=R$+Math.imul(S$,o$)|0,P$=Math.imul(S$,u$);var JQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(JQ>>>26)|0,JQ&=67108863,L$=Math.imul(c,o$),R$=Math.imul(c,u$),R$=R$+Math.imul(v$,o$)|0,P$=Math.imul(v$,u$),L$=L$+Math.imul(M$,s$)|0,R$=R$+Math.imul(M$,t$)|0,R$=R$+Math.imul(S$,s$)|0,P$=P$+Math.imul(S$,t$)|0;var C0=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(C0>>>26)|0,C0&=67108863,L$=Math.imul(q$,o$),R$=Math.imul(q$,u$),R$=R$+Math.imul(j$,o$)|0,P$=Math.imul(j$,u$),L$=L$+Math.imul(c,s$)|0,R$=R$+Math.imul(c,t$)|0,R$=R$+Math.imul(v$,s$)|0,P$=P$+Math.imul(v$,t$)|0,L$=L$+Math.imul(M$,d)|0,R$=R$+Math.imul(M$,m$)|0,R$=R$+Math.imul(S$,d)|0,P$=P$+Math.imul(S$,m$)|0;var FQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(FQ>>>26)|0,FQ&=67108863,L$=Math.imul(g$,o$),R$=Math.imul(g$,u$),R$=R$+Math.imul(_$,o$)|0,P$=Math.imul(_$,u$),L$=L$+Math.imul(q$,s$)|0,R$=R$+Math.imul(q$,t$)|0,R$=R$+Math.imul(j$,s$)|0,P$=P$+Math.imul(j$,t$)|0,L$=L$+Math.imul(c,d)|0,R$=R$+Math.imul(c,m$)|0,R$=R$+Math.imul(v$,d)|0,P$=P$+Math.imul(v$,m$)|0,L$=L$+Math.imul(M$,a$)|0,R$=R$+Math.imul(M$,e$)|0,R$=R$+Math.imul(S$,a$)|0,P$=P$+Math.imul(S$,e$)|0;var AQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(AQ>>>26)|0,AQ&=67108863,L$=Math.imul(x$,o$),R$=Math.imul(x$,u$),R$=R$+Math.imul(G,o$)|0,P$=Math.imul(G,u$),L$=L$+Math.imul(g$,s$)|0,R$=R$+Math.imul(g$,t$)|0,R$=R$+Math.imul(_$,s$)|0,P$=P$+Math.imul(_$,t$)|0,L$=L$+Math.imul(q$,d)|0,R$=R$+Math.imul(q$,m$)|0,R$=R$+Math.imul(j$,d)|0,P$=P$+Math.imul(j$,m$)|0,L$=L$+Math.imul(c,a$)|0,R$=R$+Math.imul(c,e$)|0,R$=R$+Math.imul(v$,a$)|0,P$=P$+Math.imul(v$,e$)|0,L$=L$+Math.imul(M$,i$)|0,R$=R$+Math.imul(M$,$Q)|0,R$=R$+Math.imul(S$,i$)|0,P$=P$+Math.imul(S$,$Q)|0;var HQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(HQ>>>26)|0,HQ&=67108863,L$=Math.imul(B$,o$),R$=Math.imul(B$,u$),R$=R$+Math.imul(H0,o$)|0,P$=Math.imul(H0,u$),L$=L$+Math.imul(x$,s$)|0,R$=R$+Math.imul(x$,t$)|0,R$=R$+Math.imul(G,s$)|0,P$=P$+Math.imul(G,t$)|0,L$=L$+Math.imul(g$,d)|0,R$=R$+Math.imul(g$,m$)|0,R$=R$+Math.imul(_$,d)|0,P$=P$+Math.imul(_$,m$)|0,L$=L$+Math.imul(q$,a$)|0,R$=R$+Math.imul(q$,e$)|0,R$=R$+Math.imul(j$,a$)|0,P$=P$+Math.imul(j$,e$)|0,L$=L$+Math.imul(c,i$)|0,R$=R$+Math.imul(c,$Q)|0,R$=R$+Math.imul(v$,i$)|0,P$=P$+Math.imul(v$,$Q)|0,L$=L$+Math.imul(M$,YQ)|0,R$=R$+Math.imul(M$,X)|0,R$=R$+Math.imul(S$,YQ)|0,P$=P$+Math.imul(S$,X)|0;var WQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(WQ>>>26)|0,WQ&=67108863,L$=Math.imul(w$,o$),R$=Math.imul(w$,u$),R$=R$+Math.imul(p$,o$)|0,P$=Math.imul(p$,u$),L$=L$+Math.imul(B$,s$)|0,R$=R$+Math.imul(B$,t$)|0,R$=R$+Math.imul(H0,s$)|0,P$=P$+Math.imul(H0,t$)|0,L$=L$+Math.imul(x$,d)|0,R$=R$+Math.imul(x$,m$)|0,R$=R$+Math.imul(G,d)|0,P$=P$+Math.imul(G,m$)|0,L$=L$+Math.imul(g$,a$)|0,R$=R$+Math.imul(g$,e$)|0,R$=R$+Math.imul(_$,a$)|0,P$=P$+Math.imul(_$,e$)|0,L$=L$+Math.imul(q$,i$)|0,R$=R$+Math.imul(q$,$Q)|0,R$=R$+Math.imul(j$,i$)|0,P$=P$+Math.imul(j$,$Q)|0,L$=L$+Math.imul(c,YQ)|0,R$=R$+Math.imul(c,X)|0,R$=R$+Math.imul(v$,YQ)|0,P$=P$+Math.imul(v$,X)|0,L$=L$+Math.imul(M$,ZQ)|0,R$=R$+Math.imul(M$,D0)|0,R$=R$+Math.imul(S$,ZQ)|0,P$=P$+Math.imul(S$,D0)|0;var EQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(EQ>>>26)|0,EQ&=67108863,L$=Math.imul(c$,o$),R$=Math.imul(c$,u$),R$=R$+Math.imul(h$,o$)|0,P$=Math.imul(h$,u$),L$=L$+Math.imul(w$,s$)|0,R$=R$+Math.imul(w$,t$)|0,R$=R$+Math.imul(p$,s$)|0,P$=P$+Math.imul(p$,t$)|0,L$=L$+Math.imul(B$,d)|0,R$=R$+Math.imul(B$,m$)|0,R$=R$+Math.imul(H0,d)|0,P$=P$+Math.imul(H0,m$)|0,L$=L$+Math.imul(x$,a$)|0,R$=R$+Math.imul(x$,e$)|0,R$=R$+Math.imul(G,a$)|0,P$=P$+Math.imul(G,e$)|0,L$=L$+Math.imul(g$,i$)|0,R$=R$+Math.imul(g$,$Q)|0,R$=R$+Math.imul(_$,i$)|0,P$=P$+Math.imul(_$,$Q)|0,L$=L$+Math.imul(q$,YQ)|0,R$=R$+Math.imul(q$,X)|0,R$=R$+Math.imul(j$,YQ)|0,P$=P$+Math.imul(j$,X)|0,L$=L$+Math.imul(c,ZQ)|0,R$=R$+Math.imul(c,D0)|0,R$=R$+Math.imul(v$,ZQ)|0,P$=P$+Math.imul(v$,D0)|0,L$=L$+Math.imul(M$,VQ)|0,R$=R$+Math.imul(M$,UQ)|0,R$=R$+Math.imul(S$,VQ)|0,P$=P$+Math.imul(S$,UQ)|0;var TQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(TQ>>>26)|0,TQ&=67108863,L$=Math.imul(V,o$),R$=Math.imul(V,u$),R$=R$+Math.imul(h,o$)|0,P$=Math.imul(h,u$),L$=L$+Math.imul(c$,s$)|0,R$=R$+Math.imul(c$,t$)|0,R$=R$+Math.imul(h$,s$)|0,P$=P$+Math.imul(h$,t$)|0,L$=L$+Math.imul(w$,d)|0,R$=R$+Math.imul(w$,m$)|0,R$=R$+Math.imul(p$,d)|0,P$=P$+Math.imul(p$,m$)|0,L$=L$+Math.imul(B$,a$)|0,R$=R$+Math.imul(B$,e$)|0,R$=R$+Math.imul(H0,a$)|0,P$=P$+Math.imul(H0,e$)|0,L$=L$+Math.imul(x$,i$)|0,R$=R$+Math.imul(x$,$Q)|0,R$=R$+Math.imul(G,i$)|0,P$=P$+Math.imul(G,$Q)|0,L$=L$+Math.imul(g$,YQ)|0,R$=R$+Math.imul(g$,X)|0,R$=R$+Math.imul(_$,YQ)|0,P$=P$+Math.imul(_$,X)|0,L$=L$+Math.imul(q$,ZQ)|0,R$=R$+Math.imul(q$,D0)|0,R$=R$+Math.imul(j$,ZQ)|0,P$=P$+Math.imul(j$,D0)|0,L$=L$+Math.imul(c,VQ)|0,R$=R$+Math.imul(c,UQ)|0,R$=R$+Math.imul(v$,VQ)|0,P$=P$+Math.imul(v$,UQ)|0,L$=L$+Math.imul(M$,KQ)|0,R$=R$+Math.imul(M$,IQ)|0,R$=R$+Math.imul(S$,KQ)|0,P$=P$+Math.imul(S$,IQ)|0;var DQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(DQ>>>26)|0,DQ&=67108863,L$=Math.imul(E0,o$),R$=Math.imul(E0,u$),R$=R$+Math.imul(b$,o$)|0,P$=Math.imul(b$,u$),L$=L$+Math.imul(V,s$)|0,R$=R$+Math.imul(V,t$)|0,R$=R$+Math.imul(h,s$)|0,P$=P$+Math.imul(h,t$)|0,L$=L$+Math.imul(c$,d)|0,R$=R$+Math.imul(c$,m$)|0,R$=R$+Math.imul(h$,d)|0,P$=P$+Math.imul(h$,m$)|0,L$=L$+Math.imul(w$,a$)|0,R$=R$+Math.imul(w$,e$)|0,R$=R$+Math.imul(p$,a$)|0,P$=P$+Math.imul(p$,e$)|0,L$=L$+Math.imul(B$,i$)|0,R$=R$+Math.imul(B$,$Q)|0,R$=R$+Math.imul(H0,i$)|0,P$=P$+Math.imul(H0,$Q)|0,L$=L$+Math.imul(x$,YQ)|0,R$=R$+Math.imul(x$,X)|0,R$=R$+Math.imul(G,YQ)|0,P$=P$+Math.imul(G,X)|0,L$=L$+Math.imul(g$,ZQ)|0,R$=R$+Math.imul(g$,D0)|0,R$=R$+Math.imul(_$,ZQ)|0,P$=P$+Math.imul(_$,D0)|0,L$=L$+Math.imul(q$,VQ)|0,R$=R$+Math.imul(q$,UQ)|0,R$=R$+Math.imul(j$,VQ)|0,P$=P$+Math.imul(j$,UQ)|0,L$=L$+Math.imul(c,KQ)|0,R$=R$+Math.imul(c,IQ)|0,R$=R$+Math.imul(v$,KQ)|0,P$=P$+Math.imul(v$,IQ)|0,L$=L$+Math.imul(M$,K)|0,R$=R$+Math.imul(M$,l)|0,R$=R$+Math.imul(S$,K)|0,P$=P$+Math.imul(S$,l)|0;var I=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(I>>>26)|0,I&=67108863,L$=Math.imul(E0,s$),R$=Math.imul(E0,t$),R$=R$+Math.imul(b$,s$)|0,P$=Math.imul(b$,t$),L$=L$+Math.imul(V,d)|0,R$=R$+Math.imul(V,m$)|0,R$=R$+Math.imul(h,d)|0,P$=P$+Math.imul(h,m$)|0,L$=L$+Math.imul(c$,a$)|0,R$=R$+Math.imul(c$,e$)|0,R$=R$+Math.imul(h$,a$)|0,P$=P$+Math.imul(h$,e$)|0,L$=L$+Math.imul(w$,i$)|0,R$=R$+Math.imul(w$,$Q)|0,R$=R$+Math.imul(p$,i$)|0,P$=P$+Math.imul(p$,$Q)|0,L$=L$+Math.imul(B$,YQ)|0,R$=R$+Math.imul(B$,X)|0,R$=R$+Math.imul(H0,YQ)|0,P$=P$+Math.imul(H0,X)|0,L$=L$+Math.imul(x$,ZQ)|0,R$=R$+Math.imul(x$,D0)|0,R$=R$+Math.imul(G,ZQ)|0,P$=P$+Math.imul(G,D0)|0,L$=L$+Math.imul(g$,VQ)|0,R$=R$+Math.imul(g$,UQ)|0,R$=R$+Math.imul(_$,VQ)|0,P$=P$+Math.imul(_$,UQ)|0,L$=L$+Math.imul(q$,KQ)|0,R$=R$+Math.imul(q$,IQ)|0,R$=R$+Math.imul(j$,KQ)|0,P$=P$+Math.imul(j$,IQ)|0,L$=L$+Math.imul(c,K)|0,R$=R$+Math.imul(c,l)|0,R$=R$+Math.imul(v$,K)|0,P$=P$+Math.imul(v$,l)|0;var o=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(o>>>26)|0,o&=67108863,L$=Math.imul(E0,d),R$=Math.imul(E0,m$),R$=R$+Math.imul(b$,d)|0,P$=Math.imul(b$,m$),L$=L$+Math.imul(V,a$)|0,R$=R$+Math.imul(V,e$)|0,R$=R$+Math.imul(h,a$)|0,P$=P$+Math.imul(h,e$)|0,L$=L$+Math.imul(c$,i$)|0,R$=R$+Math.imul(c$,$Q)|0,R$=R$+Math.imul(h$,i$)|0,P$=P$+Math.imul(h$,$Q)|0,L$=L$+Math.imul(w$,YQ)|0,R$=R$+Math.imul(w$,X)|0,R$=R$+Math.imul(p$,YQ)|0,P$=P$+Math.imul(p$,X)|0,L$=L$+Math.imul(B$,ZQ)|0,R$=R$+Math.imul(B$,D0)|0,R$=R$+Math.imul(H0,ZQ)|0,P$=P$+Math.imul(H0,D0)|0,L$=L$+Math.imul(x$,VQ)|0,R$=R$+Math.imul(x$,UQ)|0,R$=R$+Math.imul(G,VQ)|0,P$=P$+Math.imul(G,UQ)|0,L$=L$+Math.imul(g$,KQ)|0,R$=R$+Math.imul(g$,IQ)|0,R$=R$+Math.imul(_$,KQ)|0,P$=P$+Math.imul(_$,IQ)|0,L$=L$+Math.imul(q$,K)|0,R$=R$+Math.imul(q$,l)|0,R$=R$+Math.imul(j$,K)|0,P$=P$+Math.imul(j$,l)|0;var CQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(CQ>>>26)|0,CQ&=67108863,L$=Math.imul(E0,a$),R$=Math.imul(E0,e$),R$=R$+Math.imul(b$,a$)|0,P$=Math.imul(b$,e$),L$=L$+Math.imul(V,i$)|0,R$=R$+Math.imul(V,$Q)|0,R$=R$+Math.imul(h,i$)|0,P$=P$+Math.imul(h,$Q)|0,L$=L$+Math.imul(c$,YQ)|0,R$=R$+Math.imul(c$,X)|0,R$=R$+Math.imul(h$,YQ)|0,P$=P$+Math.imul(h$,X)|0,L$=L$+Math.imul(w$,ZQ)|0,R$=R$+Math.imul(w$,D0)|0,R$=R$+Math.imul(p$,ZQ)|0,P$=P$+Math.imul(p$,D0)|0,L$=L$+Math.imul(B$,VQ)|0,R$=R$+Math.imul(B$,UQ)|0,R$=R$+Math.imul(H0,VQ)|0,P$=P$+Math.imul(H0,UQ)|0,L$=L$+Math.imul(x$,KQ)|0,R$=R$+Math.imul(x$,IQ)|0,R$=R$+Math.imul(G,KQ)|0,P$=P$+Math.imul(G,IQ)|0,L$=L$+Math.imul(g$,K)|0,R$=R$+Math.imul(g$,l)|0,R$=R$+Math.imul(_$,K)|0,P$=P$+Math.imul(_$,l)|0;var L0=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(L0>>>26)|0,L0&=67108863,L$=Math.imul(E0,i$),R$=Math.imul(E0,$Q),R$=R$+Math.imul(b$,i$)|0,P$=Math.imul(b$,$Q),L$=L$+Math.imul(V,YQ)|0,R$=R$+Math.imul(V,X)|0,R$=R$+Math.imul(h,YQ)|0,P$=P$+Math.imul(h,X)|0,L$=L$+Math.imul(c$,ZQ)|0,R$=R$+Math.imul(c$,D0)|0,R$=R$+Math.imul(h$,ZQ)|0,P$=P$+Math.imul(h$,D0)|0,L$=L$+Math.imul(w$,VQ)|0,R$=R$+Math.imul(w$,UQ)|0,R$=R$+Math.imul(p$,VQ)|0,P$=P$+Math.imul(p$,UQ)|0,L$=L$+Math.imul(B$,KQ)|0,R$=R$+Math.imul(B$,IQ)|0,R$=R$+Math.imul(H0,KQ)|0,P$=P$+Math.imul(H0,IQ)|0,L$=L$+Math.imul(x$,K)|0,R$=R$+Math.imul(x$,l)|0,R$=R$+Math.imul(G,K)|0,P$=P$+Math.imul(G,l)|0;var LQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(LQ>>>26)|0,LQ&=67108863,L$=Math.imul(E0,YQ),R$=Math.imul(E0,X),R$=R$+Math.imul(b$,YQ)|0,P$=Math.imul(b$,X),L$=L$+Math.imul(V,ZQ)|0,R$=R$+Math.imul(V,D0)|0,R$=R$+Math.imul(h,ZQ)|0,P$=P$+Math.imul(h,D0)|0,L$=L$+Math.imul(c$,VQ)|0,R$=R$+Math.imul(c$,UQ)|0,R$=R$+Math.imul(h$,VQ)|0,P$=P$+Math.imul(h$,UQ)|0,L$=L$+Math.imul(w$,KQ)|0,R$=R$+Math.imul(w$,IQ)|0,R$=R$+Math.imul(p$,KQ)|0,P$=P$+Math.imul(p$,IQ)|0,L$=L$+Math.imul(B$,K)|0,R$=R$+Math.imul(B$,l)|0,R$=R$+Math.imul(H0,K)|0,P$=P$+Math.imul(H0,l)|0;var RQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(RQ>>>26)|0,RQ&=67108863,L$=Math.imul(E0,ZQ),R$=Math.imul(E0,D0),R$=R$+Math.imul(b$,ZQ)|0,P$=Math.imul(b$,D0),L$=L$+Math.imul(V,VQ)|0,R$=R$+Math.imul(V,UQ)|0,R$=R$+Math.imul(h,VQ)|0,P$=P$+Math.imul(h,UQ)|0,L$=L$+Math.imul(c$,KQ)|0,R$=R$+Math.imul(c$,IQ)|0,R$=R$+Math.imul(h$,KQ)|0,P$=P$+Math.imul(h$,IQ)|0,L$=L$+Math.imul(w$,K)|0,R$=R$+Math.imul(w$,l)|0,R$=R$+Math.imul(p$,K)|0,P$=P$+Math.imul(p$,l)|0;var PQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(PQ>>>26)|0,PQ&=67108863,L$=Math.imul(E0,VQ),R$=Math.imul(E0,UQ),R$=R$+Math.imul(b$,VQ)|0,P$=Math.imul(b$,UQ),L$=L$+Math.imul(V,KQ)|0,R$=R$+Math.imul(V,IQ)|0,R$=R$+Math.imul(h,KQ)|0,P$=P$+Math.imul(h,IQ)|0,L$=L$+Math.imul(c$,K)|0,R$=R$+Math.imul(c$,l)|0,R$=R$+Math.imul(h$,K)|0,P$=P$+Math.imul(h$,l)|0;var zQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(zQ>>>26)|0,zQ&=67108863,L$=Math.imul(E0,KQ),R$=Math.imul(E0,IQ),R$=R$+Math.imul(b$,KQ)|0,P$=Math.imul(b$,IQ),L$=L$+Math.imul(V,K)|0,R$=R$+Math.imul(V,l)|0,R$=R$+Math.imul(h,K)|0,P$=P$+Math.imul(h,l)|0;var MQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(MQ>>>26)|0,MQ&=67108863,L$=Math.imul(E0,K),R$=Math.imul(E0,l),R$=R$+Math.imul(b$,K)|0,P$=Math.imul(b$,l);var SQ=(C$+L$|0)+((R$&8191)<<13)|0;return C$=(P$+(R$>>>13)|0)+(SQ>>>26)|0,SQ&=67108863,F0[0]=JQ,F0[1]=C0,F0[2]=FQ,F0[3]=AQ,F0[4]=HQ,F0[5]=WQ,F0[6]=EQ,F0[7]=TQ,F0[8]=DQ,F0[9]=I,F0[10]=o,F0[11]=CQ,F0[12]=L0,F0[13]=LQ,F0[14]=RQ,F0[15]=PQ,F0[16]=zQ,F0[17]=MQ,F0[18]=SQ,C$!==0&&(F0[19]=C$,Y.length++),Y};Math.imul||(X$=U$);function K$(E$,T$,Y){Y.negative=T$.negative^E$.negative,Y.length=E$.length+T$.length;for(var f=0,D$=0,F0=0;F0>>26)|0,D$+=C$>>>26,C$&=67108863}Y.words[F0]=L$,f=C$,C$=D$}return f!==0?Y.words[F0]=f:Y.length--,Y.strip()}function I$(E$,T$,Y){var f=new Q;return f.mulp(E$,T$,Y)}$$.prototype.mulTo=function(E$,T$){var Y,f=this.length+E$.length;return this.length===10&&E$.length===10?Y=X$(this,E$,T$):f<63?Y=U$(this,E$,T$):f<1024?Y=K$(this,E$,T$):Y=I$(this,E$,T$),Y};function Q(E$,T$){this.x=E$,this.y=T$}Q.prototype.makeRBT=function(E$){for(var T$=new Array(E$),Y=$$.prototype._countBits(E$)-1,f=0;f>=1;return f},Q.prototype.permute=function(E$,T$,Y,f,D$,F0){for(var C$=0;C$>>1)D$++;return 1<>>13,Y[2*F0+1]=D$&8191,D$=D$>>>13;for(F0=2*T$;F0>=26,T$+=f/67108864|0,T$+=D$>>>26,this.words[Y]=D$&67108863}return T$!==0&&(this.words[Y]=T$,this.length++),this},$$.prototype.muln=function(E$){return this.clone().imuln(E$)},$$.prototype.sqr=function(){return this.mul(this)},$$.prototype.isqr=function(){return this.imul(this.clone())},$$.prototype.pow=function(E$){var T$=V$(E$);if(T$.length===0)return new $$(1);for(var Y=this,f=0;f=0);var T$=E$%26,Y=(E$-T$)/26,f=67108863>>>26-T$<<26-T$,D$;if(T$!==0){var F0=0;for(D$=0;D$>>26-T$}F0&&(this.words[D$]=F0,this.length++)}if(Y!==0){for(D$=this.length-1;D$>=0;D$--)this.words[D$+Y]=this.words[D$];for(D$=0;D$=0);var f;T$?f=(T$-T$%26)/26:f=0;var D$=E$%26,F0=Math.min((E$-D$)/26,this.length),C$=67108863^67108863>>>D$<F0)for(this.length-=F0,R$=0;R$=0&&(P$!==0||R$>=f);R$--){var z$=this.words[R$]|0;this.words[R$]=P$<<26-D$|z$>>>D$,P$=z$&C$}return L$&&P$!==0&&(L$.words[L$.length++]=P$),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},$$.prototype.ishrn=function(E$,T$,Y){return r0(this.negative===0),this.iushrn(E$,T$,Y)},$$.prototype.shln=function(E$){return this.clone().ishln(E$)},$$.prototype.ushln=function(E$){return this.clone().iushln(E$)},$$.prototype.shrn=function(E$){return this.clone().ishrn(E$)},$$.prototype.ushrn=function(E$){return this.clone().iushrn(E$)},$$.prototype.testn=function(E$){r0(typeof E$=="number"&&E$>=0);var T$=E$%26,Y=(E$-T$)/26,f=1<=0);var T$=E$%26,Y=(E$-T$)/26;if(r0(this.negative===0,"imaskn works only with positive numbers"),this.length<=Y)return this;if(T$!==0&&Y++,this.length=Math.min(Y,this.length),T$!==0){var f=67108863^67108863>>>T$<=67108864;T$++)this.words[T$]-=67108864,T$===this.length-1?this.words[T$+1]=1:this.words[T$+1]++;return this.length=Math.max(this.length,T$+1),this},$$.prototype.isubn=function(E$){if(r0(typeof E$=="number"),r0(E$<67108864),E$<0)return this.iaddn(-E$);if(this.negative!==0)return this.negative=0,this.iaddn(E$),this.negative=1,this;if(this.words[0]-=E$,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var T$=0;T$>26)-(L$/67108864|0),this.words[D$+Y]=F0&67108863}for(;D$>26,this.words[D$+Y]=F0&67108863;if(C$===0)return this.strip();for(r0(C$===-1),C$=0,D$=0;D$>26,this.words[D$]=F0&67108863;return this.negative=1,this.strip()},$$.prototype._wordDiv=function(E$,T$){var Y=this.length-E$.length,f=this.clone(),D$=E$,F0=D$.words[D$.length-1]|0,C$=this._countBits(F0);Y=26-C$,Y!==0&&(D$=D$.ushln(Y),f.iushln(Y),F0=D$.words[D$.length-1]|0);var L$=f.length-D$.length,R$;if(T$!=="mod"){R$=new $$(null),R$.length=L$+1,R$.words=new Array(R$.length);for(var P$=0;P$=0;M$--){var S$=(f.words[D$.length+M$]|0)*67108864+(f.words[D$.length+M$-1]|0);for(S$=Math.min(S$/F0|0,67108863),f._ishlnsubmul(D$,S$,M$);f.negative!==0;)S$--,f.negative=0,f._ishlnsubmul(D$,1,M$),f.isZero()||(f.negative^=1);R$&&(R$.words[M$]=S$)}return R$&&R$.strip(),f.strip(),T$!=="div"&&Y!==0&&f.iushrn(Y),{div:R$||null,mod:f}},$$.prototype.divmod=function(E$,T$,Y){if(r0(!E$.isZero()),this.isZero())return{div:new $$(0),mod:new $$(0)};var f,D$,F0;return this.negative!==0&&E$.negative===0?(F0=this.neg().divmod(E$,T$),T$!=="mod"&&(f=F0.div.neg()),T$!=="div"&&(D$=F0.mod.neg(),Y&&D$.negative!==0&&D$.iadd(E$)),{div:f,mod:D$}):this.negative===0&&E$.negative!==0?(F0=this.divmod(E$.neg(),T$),T$!=="mod"&&(f=F0.div.neg()),{div:f,mod:F0.mod}):(this.negative&E$.negative)!==0?(F0=this.neg().divmod(E$.neg(),T$),T$!=="div"&&(D$=F0.mod.neg(),Y&&D$.negative!==0&&D$.isub(E$)),{div:F0.div,mod:D$}):E$.length>this.length||this.cmp(E$)<0?{div:new $$(0),mod:this}:E$.length===1?T$==="div"?{div:this.divn(E$.words[0]),mod:null}:T$==="mod"?{div:null,mod:new $$(this.modn(E$.words[0]))}:{div:this.divn(E$.words[0]),mod:new $$(this.modn(E$.words[0]))}:this._wordDiv(E$,T$)},$$.prototype.div=function(E$){return this.divmod(E$,"div",!1).div},$$.prototype.mod=function(E$){return this.divmod(E$,"mod",!1).mod},$$.prototype.umod=function(E$){return this.divmod(E$,"mod",!0).mod},$$.prototype.divRound=function(E$){var T$=this.divmod(E$);if(T$.mod.isZero())return T$.div;var Y=T$.div.negative!==0?T$.mod.isub(E$):T$.mod,f=E$.ushrn(1),D$=E$.andln(1),F0=Y.cmp(f);return F0<0||D$===1&&F0===0?T$.div:T$.div.negative!==0?T$.div.isubn(1):T$.div.iaddn(1)},$$.prototype.modn=function(E$){r0(E$<=67108863);for(var T$=(1<<26)%E$,Y=0,f=this.length-1;f>=0;f--)Y=(T$*Y+(this.words[f]|0))%E$;return Y},$$.prototype.idivn=function(E$){r0(E$<=67108863);for(var T$=0,Y=this.length-1;Y>=0;Y--){var f=(this.words[Y]|0)+T$*67108864;this.words[Y]=f/E$|0,T$=f%E$}return this.strip()},$$.prototype.divn=function(E$){return this.clone().idivn(E$)},$$.prototype.egcd=function(E$){r0(E$.negative===0),r0(!E$.isZero());var T$=this,Y=E$.clone();T$.negative!==0?T$=T$.umod(E$):T$=T$.clone();for(var f=new $$(1),D$=new $$(0),F0=new $$(0),C$=new $$(1),L$=0;T$.isEven()&&Y.isEven();)T$.iushrn(1),Y.iushrn(1),++L$;for(var R$=Y.clone(),P$=T$.clone();!T$.isZero();){for(var z$=0,M$=1;(T$.words[0]&M$)===0&&z$<26;++z$,M$<<=1);if(z$>0)for(T$.iushrn(z$);z$-- >0;)(f.isOdd()||D$.isOdd())&&(f.iadd(R$),D$.isub(P$)),f.iushrn(1),D$.iushrn(1);for(var S$=0,Z=1;(Y.words[0]&Z)===0&&S$<26;++S$,Z<<=1);if(S$>0)for(Y.iushrn(S$);S$-- >0;)(F0.isOdd()||C$.isOdd())&&(F0.iadd(R$),C$.isub(P$)),F0.iushrn(1),C$.iushrn(1);T$.cmp(Y)>=0?(T$.isub(Y),f.isub(F0),D$.isub(C$)):(Y.isub(T$),F0.isub(f),C$.isub(D$))}return{a:F0,b:C$,gcd:Y.iushln(L$)}},$$.prototype._invmp=function(E$){r0(E$.negative===0),r0(!E$.isZero());var T$=this,Y=E$.clone();T$.negative!==0?T$=T$.umod(E$):T$=T$.clone();for(var f=new $$(1),D$=new $$(0),F0=Y.clone();T$.cmpn(1)>0&&Y.cmpn(1)>0;){for(var C$=0,L$=1;(T$.words[0]&L$)===0&&C$<26;++C$,L$<<=1);if(C$>0)for(T$.iushrn(C$);C$-- >0;)f.isOdd()&&f.iadd(F0),f.iushrn(1);for(var R$=0,P$=1;(Y.words[0]&P$)===0&&R$<26;++R$,P$<<=1);if(R$>0)for(Y.iushrn(R$);R$-- >0;)D$.isOdd()&&D$.iadd(F0),D$.iushrn(1);T$.cmp(Y)>=0?(T$.isub(Y),f.isub(D$)):(Y.isub(T$),D$.isub(f))}var z$;return T$.cmpn(1)===0?z$=f:z$=D$,z$.cmpn(0)<0&&z$.iadd(E$),z$},$$.prototype.gcd=function(E$){if(this.isZero())return E$.abs();if(E$.isZero())return this.abs();var T$=this.clone(),Y=E$.clone();T$.negative=0,Y.negative=0;for(var f=0;T$.isEven()&&Y.isEven();f++)T$.iushrn(1),Y.iushrn(1);do{for(;T$.isEven();)T$.iushrn(1);for(;Y.isEven();)Y.iushrn(1);var D$=T$.cmp(Y);if(D$<0){var F0=T$;T$=Y,Y=F0}else if(D$===0||Y.cmpn(1)===0)break;T$.isub(Y)}while(!0);return Y.iushln(f)},$$.prototype.invm=function(E$){return this.egcd(E$).a.umod(E$)},$$.prototype.isEven=function(){return(this.words[0]&1)===0},$$.prototype.isOdd=function(){return(this.words[0]&1)===1},$$.prototype.andln=function(E$){return this.words[0]&E$},$$.prototype.bincn=function(E$){r0(typeof E$=="number");var T$=E$%26,Y=(E$-T$)/26,f=1<>>26,C$&=67108863,this.words[F0]=C$}return D$!==0&&(this.words[F0]=D$,this.length++),this},$$.prototype.isZero=function(){return this.length===1&&this.words[0]===0},$$.prototype.cmpn=function(E$){var T$=E$<0;if(this.negative!==0&&!T$)return-1;if(this.negative===0&&T$)return 1;this.strip();var Y;if(this.length>1)Y=1;else{T$&&(E$=-E$),r0(E$<=67108863,"Number is too big");var f=this.words[0]|0;Y=f===E$?0:fE$.length)return 1;if(this.length=0;Y--){var f=this.words[Y]|0,D$=E$.words[Y]|0;if(f!==D$){fD$&&(T$=1);break}}return T$},$$.prototype.gtn=function(E$){return this.cmpn(E$)===1},$$.prototype.gt=function(E$){return this.cmp(E$)===1},$$.prototype.gten=function(E$){return this.cmpn(E$)>=0},$$.prototype.gte=function(E$){return this.cmp(E$)>=0},$$.prototype.ltn=function(E$){return this.cmpn(E$)===-1},$$.prototype.lt=function(E$){return this.cmp(E$)===-1},$$.prototype.lten=function(E$){return this.cmpn(E$)<=0},$$.prototype.lte=function(E$){return this.cmp(E$)<=0},$$.prototype.eqn=function(E$){return this.cmpn(E$)===0},$$.prototype.eq=function(E$){return this.cmp(E$)===0},$$.red=function(E$){return new H$(E$)},$$.prototype.toRed=function(E$){return r0(!this.red,"Already a number in reduction context"),r0(this.negative===0,"red works only with positives"),E$.convertTo(this)._forceRed(E$)},$$.prototype.fromRed=function(){return r0(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},$$.prototype._forceRed=function(E$){return this.red=E$,this},$$.prototype.forceRed=function(E$){return r0(!this.red,"Already a number in reduction context"),this._forceRed(E$)},$$.prototype.redAdd=function(E$){return r0(this.red,"redAdd works only with red numbers"),this.red.add(this,E$)},$$.prototype.redIAdd=function(E$){return r0(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,E$)},$$.prototype.redSub=function(E$){return r0(this.red,"redSub works only with red numbers"),this.red.sub(this,E$)},$$.prototype.redISub=function(E$){return r0(this.red,"redISub works only with red numbers"),this.red.isub(this,E$)},$$.prototype.redShl=function(E$){return r0(this.red,"redShl works only with red numbers"),this.red.shl(this,E$)},$$.prototype.redMul=function(E$){return r0(this.red,"redMul works only with red numbers"),this.red._verify2(this,E$),this.red.mul(this,E$)},$$.prototype.redIMul=function(E$){return r0(this.red,"redMul works only with red numbers"),this.red._verify2(this,E$),this.red.imul(this,E$)},$$.prototype.redSqr=function(){return r0(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},$$.prototype.redISqr=function(){return r0(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},$$.prototype.redSqrt=function(){return r0(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},$$.prototype.redInvm=function(){return r0(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},$$.prototype.redNeg=function(){return r0(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},$$.prototype.redPow=function(E$){return r0(this.red&&!E$.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,E$)};var x={k256:null,p224:null,p192:null,p25519:null};function O$(E$,T$){this.name=E$,this.p=new $$(T$,16),this.n=this.p.bitLength(),this.k=new $$(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}O$.prototype._tmp=function(){var E$=new $$(null);return E$.words=new Array(Math.ceil(this.n/13)),E$},O$.prototype.ireduce=function(E$){var T$=E$,Y;do this.split(T$,this.tmp),T$=this.imulK(T$),T$=T$.iadd(this.tmp),Y=T$.bitLength();while(Y>this.n);var f=Y0?T$.isub(this.p):T$.strip!==void 0?T$.strip():T$._strip(),T$},O$.prototype.split=function(E$,T$){E$.iushrn(this.n,0,T$)},O$.prototype.imulK=function(E$){return E$.imul(this.k)};function J0(){O$.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i0(J0,O$),J0.prototype.split=function(E$,T$){for(var Y=4194303,f=Math.min(E$.length,9),D$=0;D$>>22,F0=C$}F0>>>=22,E$.words[D$-10]=F0,F0===0&&E$.length>10?E$.length-=10:E$.length-=9},J0.prototype.imulK=function(E$){E$.words[E$.length]=0,E$.words[E$.length+1]=0,E$.length+=2;for(var T$=0,Y=0;Y>>=26,E$.words[Y]=D$,T$=f}return T$!==0&&(E$.words[E$.length++]=T$),E$},$$._prime=function(E$){if(x[E$])return x[E$];var T$;if(E$==="k256")T$=new J0;else if(E$==="p224")T$=new J$;else if(E$==="p192")T$=new F$;else if(E$==="p25519")T$=new A$;else throw new Error("Unknown prime "+E$);return x[E$]=T$,T$};function H$(E$){if(typeof E$=="string"){var T$=$$._prime(E$);this.m=T$.p,this.prime=T$}else r0(E$.gtn(1),"modulus must be greater than 1"),this.m=E$,this.prime=null}H$.prototype._verify1=function(E$){r0(E$.negative===0,"red works only with positives"),r0(E$.red,"red works only with red numbers")},H$.prototype._verify2=function(E$,T$){r0((E$.negative|T$.negative)===0,"red works only with positives"),r0(E$.red&&E$.red===T$.red,"red works only with red numbers")},H$.prototype.imod=function(E$){return this.prime?this.prime.ireduce(E$)._forceRed(this):E$.umod(this.m)._forceRed(this)},H$.prototype.neg=function(E$){return E$.isZero()?E$.clone():this.m.sub(E$)._forceRed(this)},H$.prototype.add=function(E$,T$){this._verify2(E$,T$);var Y=E$.add(T$);return Y.cmp(this.m)>=0&&Y.isub(this.m),Y._forceRed(this)},H$.prototype.iadd=function(E$,T$){this._verify2(E$,T$);var Y=E$.iadd(T$);return Y.cmp(this.m)>=0&&Y.isub(this.m),Y},H$.prototype.sub=function(E$,T$){this._verify2(E$,T$);var Y=E$.sub(T$);return Y.cmpn(0)<0&&Y.iadd(this.m),Y._forceRed(this)},H$.prototype.isub=function(E$,T$){this._verify2(E$,T$);var Y=E$.isub(T$);return Y.cmpn(0)<0&&Y.iadd(this.m),Y},H$.prototype.shl=function(E$,T$){return this._verify1(E$),this.imod(E$.ushln(T$))},H$.prototype.imul=function(E$,T$){return this._verify2(E$,T$),this.imod(E$.imul(T$))},H$.prototype.mul=function(E$,T$){return this._verify2(E$,T$),this.imod(E$.mul(T$))},H$.prototype.isqr=function(E$){return this.imul(E$,E$.clone())},H$.prototype.sqr=function(E$){return this.mul(E$,E$)},H$.prototype.sqrt=function(E$){if(E$.isZero())return E$.clone();var T$=this.m.andln(3);if(r0(T$%2===1),T$===3){var Y=this.m.add(new $$(1)).iushrn(2);return this.pow(E$,Y)}for(var f=this.m.subn(1),D$=0;!f.isZero()&&f.andln(1)===0;)D$++,f.iushrn(1);r0(!f.isZero());var F0=new $$(1).toRed(this),C$=F0.redNeg(),L$=this.m.subn(1).iushrn(1),R$=this.m.bitLength();for(R$=new $$(2*R$*R$).toRed(this);this.pow(R$,L$).cmp(C$)!==0;)R$.redIAdd(C$);for(var P$=this.pow(R$,f),z$=this.pow(E$,f.addn(1).iushrn(1)),M$=this.pow(E$,f),S$=D$;M$.cmp(F0)!==0;){for(var Z=M$,c=0;Z.cmp(F0)!==0;c++)Z=Z.redSqr();r0(c=0;D$--){for(var P$=T$.words[D$],z$=R$-1;z$>=0;z$--){var M$=P$>>z$&1;if(F0!==f[0]&&(F0=this.sqr(F0)),M$===0&&C$===0){L$=0;continue}C$<<=1,C$|=M$,L$++,!(L$!==Y&&(D$!==0||z$!==0))&&(F0=this.mul(F0,f[C$]),L$=0,C$=0)}R$=26}return F0},H$.prototype.convertTo=function(E$){var T$=E$.umod(this.m);return T$===E$?T$.clone():T$},H$.prototype.convertFrom=function(E$){var T$=E$.clone();return T$.red=null,T$},$$.mont=function(E$){return new W$(E$)};function W$(E$){H$.call(this,E$),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new $$(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)}i0(W$,H$),W$.prototype.convertTo=function(E$){return this.imod(E$.ushln(this.shift))},W$.prototype.convertFrom=function(E$){var T$=this.imod(E$.mul(this.rinv));return T$.red=null,T$},W$.prototype.imul=function(E$,T$){if(E$.isZero()||T$.isZero())return E$.words[0]=0,E$.length=1,E$;var Y=E$.imul(T$),f=Y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),D$=Y.isub(f).iushrn(this.shift),F0=D$;return D$.cmp(this.m)>=0?F0=D$.isub(this.m):D$.cmpn(0)<0&&(F0=D$.iadd(this.m)),F0._forceRed(this)},W$.prototype.mul=function(E$,T$){if(E$.isZero()||T$.isZero())return new $$(0)._forceRed(this);var Y=E$.mul(T$),f=Y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),D$=Y.isub(f).iushrn(this.shift),F0=D$;return D$.cmp(this.m)>=0?F0=D$.isub(this.m):D$.cmpn(0)<0&&(F0=D$.iadd(this.m)),F0._forceRed(this)},W$.prototype.invm=function(E$){var T$=this.imod(E$._invmp(this.m).mul(this.r2));return T$._forceRed(this)}})(typeof m0>"u"||m0,t0)}}),JZ=pQ({"node_modules/create-ecdh/browser.js"(t0,m0){var a0=nY(),e0=OZ();m0.exports=function(Q$){return new i0(Q$)};var r0={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}};r0.p224=r0.secp224r1,r0.p256=r0.secp256r1=r0.prime256v1,r0.p192=r0.secp192r1=r0.prime192v1,r0.p384=r0.secp384r1,r0.p521=r0.secp521r1;function i0(Q$){this.curveType=r0[Q$],this.curveType||(this.curveType={name:Q$}),this.curve=new a0.ec(this.curveType.name),this.keys=void 0}i0.prototype.generateKeys=function(Q$,$){return this.keys=this.curve.genKeyPair(),this.getPublicKey(Q$,$)},i0.prototype.computeSecret=function(Q$,$,N){$=$||"utf8",G0.isBuffer(Q$)||(Q$=new G0(Q$,$));var Y$=this.curve.keyFromPublic(Q$).getPublic(),O0=Y$.mul(this.keys.getPrivate()).getX();return $$(O0,N,this.curveType.byteLength)},i0.prototype.getPublicKey=function(Q$,$){var N=this.keys.getPublic($==="compressed",!0);return $==="hybrid"&&(N[N.length-1]%2?N[0]=7:N[0]=6),$$(N,Q$)},i0.prototype.getPrivateKey=function(Q$){return $$(this.keys.getPrivate(),Q$)},i0.prototype.setPublicKey=function(Q$,$){return $=$||"utf8",G0.isBuffer(Q$)||(Q$=new G0(Q$,$)),this.keys._importPublic(Q$),this},i0.prototype.setPrivateKey=function(Q$,$){$=$||"utf8",G0.isBuffer(Q$)||(Q$=new G0(Q$,$));var N=new e0(Q$);return N=N.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(N),this};function $$(Q$,$,N){Array.isArray(Q$)||(Q$=Q$.toArray());var Y$=new G0(Q$);if(N&&Y$.length0?E$:T$},$$.min=function(E$,T$){return E$.cmp(T$)<0?E$:T$},$$.prototype._init=function(E$,T$,Y){if(typeof E$=="number")return this._initNumber(E$,T$,Y);if(typeof E$=="object")return this._initArray(E$,T$,Y);T$==="hex"&&(T$=16),r0(T$===(T$|0)&&T$>=2&&T$<=36),E$=E$.toString().replace(/\s+/g,"");var f=0;E$[0]==="-"&&(f++,this.negative=1),f=0;f-=3)F0=E$[f]|E$[f-1]<<8|E$[f-2]<<16,this.words[D$]|=F0<>>26-C$&67108863,C$+=24,C$>=26&&(C$-=26,D$++);else if(Y==="le")for(f=0,D$=0;f>>26-C$&67108863,C$+=24,C$>=26&&(C$-=26,D$++);return this.strip()};function $(E$,T$){var Y=E$.charCodeAt(T$);return Y>=65&&Y<=70?Y-55:Y>=97&&Y<=102?Y-87:Y-48&15}function N(E$,T$,Y){var f=$(E$,Y);return Y-1>=T$&&(f|=$(E$,Y-1)<<4),f}$$.prototype._parseHex=function(E$,T$,Y){this.length=Math.ceil((E$.length-T$)/6),this.words=new Array(this.length);for(var f=0;f=T$;f-=2)C$=N(E$,T$,f)<=18?(D$-=18,F0+=1,this.words[F0]|=C$>>>26):D$+=8;else{var L$=E$.length-T$;for(f=L$%2===0?T$+1:T$;f=18?(D$-=18,F0+=1,this.words[F0]|=C$>>>26):D$+=8}this.strip()};function Y$(E$,T$,Y,f){for(var D$=0,F0=Math.min(E$.length,Y),C$=T$;C$=49?D$+=L$-49+10:L$>=17?D$+=L$-17+10:D$+=L$}return D$}$$.prototype._parseBase=function(E$,T$,Y){this.words=[0],this.length=1;for(var f=0,D$=1;D$<=67108863;D$*=T$)f++;f--,D$=D$/T$|0;for(var F0=E$.length-Y,C$=F0%f,L$=Math.min(F0,F0-C$)+Y,R$=0,P$=Y;P$1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},$$.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},$$.prototype.inspect=function(){return(this.red?""};var O0=["","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"],Z$=[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],G$=[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];$$.prototype.toString=function(E$,T$){E$=E$||10,T$=T$|0||1;var Y;if(E$===16||E$==="hex"){Y="";for(var f=0,D$=0,F0=0;F0>>24-f&16777215,D$!==0||F0!==this.length-1?Y=O0[6-L$.length]+L$+Y:Y=L$+Y,f+=2,f>=26&&(f-=26,F0--)}for(D$!==0&&(Y=D$.toString(16)+Y);Y.length%T$!==0;)Y="0"+Y;return this.negative!==0&&(Y="-"+Y),Y}if(E$===(E$|0)&&E$>=2&&E$<=36){var R$=Z$[E$],P$=G$[E$];Y="";var z$=this.clone();for(z$.negative=0;!z$.isZero();){var M$=z$.modn(P$).toString(E$);z$=z$.idivn(P$),z$.isZero()?Y=M$+Y:Y=O0[R$-M$.length]+M$+Y}for(this.isZero()&&(Y="0"+Y);Y.length%T$!==0;)Y="0"+Y;return this.negative!==0&&(Y="-"+Y),Y}r0(!1,"Base should be between 2 and 36")},$$.prototype.toNumber=function(){var E$=this.words[0];return this.length===2?E$+=this.words[1]*67108864:this.length===3&&this.words[2]===1?E$+=4503599627370496+this.words[1]*67108864:this.length>2&&r0(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-E$:E$},$$.prototype.toJSON=function(){return this.toString(16)},$$.prototype.toBuffer=function(E$,T$){return r0(typeof Q$<"u"),this.toArrayLike(Q$,E$,T$)},$$.prototype.toArray=function(E$,T$){return this.toArrayLike(Array,E$,T$)},$$.prototype.toArrayLike=function(E$,T$,Y){var f=this.byteLength(),D$=Y||Math.max(1,f);r0(f<=D$,"byte array longer than desired length"),r0(D$>0,"Requested array length <= 0"),this.strip();var F0=T$==="le",C$=new E$(D$),L$,R$,P$=this.clone();if(F0){for(R$=0;!P$.isZero();R$++)L$=P$.andln(255),P$.iushrn(8),C$[R$]=L$;for(;R$=4096&&(Y+=13,T$>>>=13),T$>=64&&(Y+=7,T$>>>=7),T$>=8&&(Y+=4,T$>>>=4),T$>=2&&(Y+=2,T$>>>=2),Y+T$},$$.prototype._zeroBits=function(E$){if(E$===0)return 26;var T$=E$,Y=0;return(T$&8191)===0&&(Y+=13,T$>>>=13),(T$&127)===0&&(Y+=7,T$>>>=7),(T$&15)===0&&(Y+=4,T$>>>=4),(T$&3)===0&&(Y+=2,T$>>>=2),(T$&1)===0&&Y++,Y},$$.prototype.bitLength=function(){var E$=this.words[this.length-1],T$=this._countBits(E$);return(this.length-1)*26+T$};function V$(E$){for(var T$=new Array(E$.bitLength()),Y=0;Y>>D$}return T$}$$.prototype.zeroBits=function(){if(this.isZero())return 0;for(var E$=0,T$=0;T$E$.length?this.clone().ior(E$):E$.clone().ior(this)},$$.prototype.uor=function(E$){return this.length>E$.length?this.clone().iuor(E$):E$.clone().iuor(this)},$$.prototype.iuand=function(E$){var T$;this.length>E$.length?T$=E$:T$=this;for(var Y=0;YE$.length?this.clone().iand(E$):E$.clone().iand(this)},$$.prototype.uand=function(E$){return this.length>E$.length?this.clone().iuand(E$):E$.clone().iuand(this)},$$.prototype.iuxor=function(E$){var T$,Y;this.length>E$.length?(T$=this,Y=E$):(T$=E$,Y=this);for(var f=0;fE$.length?this.clone().ixor(E$):E$.clone().ixor(this)},$$.prototype.uxor=function(E$){return this.length>E$.length?this.clone().iuxor(E$):E$.clone().iuxor(this)},$$.prototype.inotn=function(E$){r0(typeof E$=="number"&&E$>=0);var T$=Math.ceil(E$/26)|0,Y=E$%26;this._expand(T$),Y>0&&T$--;for(var f=0;f0&&(this.words[f]=~this.words[f]&67108863>>26-Y),this.strip()},$$.prototype.notn=function(E$){return this.clone().inotn(E$)},$$.prototype.setn=function(E$,T$){r0(typeof E$=="number"&&E$>=0);var Y=E$/26|0,f=E$%26;return this._expand(Y+1),T$?this.words[Y]=this.words[Y]|1<E$.length?(Y=this,f=E$):(Y=E$,f=this);for(var D$=0,F0=0;F0>>26;for(;D$!==0&&F0>>26;if(this.length=Y.length,D$!==0)this.words[this.length]=D$,this.length++;else if(Y!==this)for(;F0E$.length?this.clone().iadd(E$):E$.clone().iadd(this)},$$.prototype.isub=function(E$){if(E$.negative!==0){E$.negative=0;var T$=this.iadd(E$);return E$.negative=1,T$._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(E$),this.negative=1,this._normSign();var Y=this.cmp(E$);if(Y===0)return this.negative=0,this.length=1,this.words[0]=0,this;var f,D$;Y>0?(f=this,D$=E$):(f=E$,D$=this);for(var F0=0,C$=0;C$>26,this.words[C$]=T$&67108863;for(;F0!==0&&C$>26,this.words[C$]=T$&67108863;if(F0===0&&C$>>26,M$=R$&67108863,S$=Math.min(P$,T$.length-1),Z=Math.max(0,P$-E$.length+1);Z<=S$;Z++){var c=P$-Z|0;D$=E$.words[c]|0,F0=T$.words[Z]|0,C$=D$*F0+M$,z$+=C$/67108864|0,M$=C$&67108863}Y.words[P$]=M$|0,R$=z$|0}return R$!==0?Y.words[P$]=R$|0:Y.length--,Y.strip()}var X$=function(E$,T$,Y){var f=E$.words,D$=T$.words,F0=Y.words,C$=0,L$,R$,P$,z$=f[0]|0,M$=z$&8191,S$=z$>>>13,Z=f[1]|0,c=Z&8191,v$=Z>>>13,A0=f[2]|0,q$=A0&8191,j$=A0>>>13,k$=f[3]|0,g$=k$&8191,_$=k$>>>13,N$=f[4]|0,x$=N$&8191,G=N$>>>13,B=f[5]|0,B$=B&8191,H0=B>>>13,y$=f[6]|0,w$=y$&8191,p$=y$>>>13,f$=f[7]|0,c$=f$&8191,h$=f$>>>13,d$=f[8]|0,V=d$&8191,h=d$>>>13,W0=f[9]|0,E0=W0&8191,b$=W0>>>13,l$=D$[0]|0,o$=l$&8191,u$=l$>>>13,n$=D$[1]|0,s$=n$&8191,t$=n$>>>13,U=D$[2]|0,d=U&8191,m$=U>>>13,T0=D$[3]|0,a$=T0&8191,e$=T0>>>13,r$=D$[4]|0,i$=r$&8191,$Q=r$>>>13,QQ=D$[5]|0,YQ=QQ&8191,X=QQ>>>13,b=D$[6]|0,ZQ=b&8191,D0=b>>>13,GQ=D$[7]|0,VQ=GQ&8191,UQ=GQ>>>13,XQ=D$[8]|0,KQ=XQ&8191,IQ=XQ>>>13,OQ=D$[9]|0,K=OQ&8191,l=OQ>>>13;Y.negative=E$.negative^T$.negative,Y.length=19,L$=Math.imul(M$,o$),R$=Math.imul(M$,u$),R$=R$+Math.imul(S$,o$)|0,P$=Math.imul(S$,u$);var JQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(JQ>>>26)|0,JQ&=67108863,L$=Math.imul(c,o$),R$=Math.imul(c,u$),R$=R$+Math.imul(v$,o$)|0,P$=Math.imul(v$,u$),L$=L$+Math.imul(M$,s$)|0,R$=R$+Math.imul(M$,t$)|0,R$=R$+Math.imul(S$,s$)|0,P$=P$+Math.imul(S$,t$)|0;var C0=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(C0>>>26)|0,C0&=67108863,L$=Math.imul(q$,o$),R$=Math.imul(q$,u$),R$=R$+Math.imul(j$,o$)|0,P$=Math.imul(j$,u$),L$=L$+Math.imul(c,s$)|0,R$=R$+Math.imul(c,t$)|0,R$=R$+Math.imul(v$,s$)|0,P$=P$+Math.imul(v$,t$)|0,L$=L$+Math.imul(M$,d)|0,R$=R$+Math.imul(M$,m$)|0,R$=R$+Math.imul(S$,d)|0,P$=P$+Math.imul(S$,m$)|0;var FQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(FQ>>>26)|0,FQ&=67108863,L$=Math.imul(g$,o$),R$=Math.imul(g$,u$),R$=R$+Math.imul(_$,o$)|0,P$=Math.imul(_$,u$),L$=L$+Math.imul(q$,s$)|0,R$=R$+Math.imul(q$,t$)|0,R$=R$+Math.imul(j$,s$)|0,P$=P$+Math.imul(j$,t$)|0,L$=L$+Math.imul(c,d)|0,R$=R$+Math.imul(c,m$)|0,R$=R$+Math.imul(v$,d)|0,P$=P$+Math.imul(v$,m$)|0,L$=L$+Math.imul(M$,a$)|0,R$=R$+Math.imul(M$,e$)|0,R$=R$+Math.imul(S$,a$)|0,P$=P$+Math.imul(S$,e$)|0;var AQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(AQ>>>26)|0,AQ&=67108863,L$=Math.imul(x$,o$),R$=Math.imul(x$,u$),R$=R$+Math.imul(G,o$)|0,P$=Math.imul(G,u$),L$=L$+Math.imul(g$,s$)|0,R$=R$+Math.imul(g$,t$)|0,R$=R$+Math.imul(_$,s$)|0,P$=P$+Math.imul(_$,t$)|0,L$=L$+Math.imul(q$,d)|0,R$=R$+Math.imul(q$,m$)|0,R$=R$+Math.imul(j$,d)|0,P$=P$+Math.imul(j$,m$)|0,L$=L$+Math.imul(c,a$)|0,R$=R$+Math.imul(c,e$)|0,R$=R$+Math.imul(v$,a$)|0,P$=P$+Math.imul(v$,e$)|0,L$=L$+Math.imul(M$,i$)|0,R$=R$+Math.imul(M$,$Q)|0,R$=R$+Math.imul(S$,i$)|0,P$=P$+Math.imul(S$,$Q)|0;var HQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(HQ>>>26)|0,HQ&=67108863,L$=Math.imul(B$,o$),R$=Math.imul(B$,u$),R$=R$+Math.imul(H0,o$)|0,P$=Math.imul(H0,u$),L$=L$+Math.imul(x$,s$)|0,R$=R$+Math.imul(x$,t$)|0,R$=R$+Math.imul(G,s$)|0,P$=P$+Math.imul(G,t$)|0,L$=L$+Math.imul(g$,d)|0,R$=R$+Math.imul(g$,m$)|0,R$=R$+Math.imul(_$,d)|0,P$=P$+Math.imul(_$,m$)|0,L$=L$+Math.imul(q$,a$)|0,R$=R$+Math.imul(q$,e$)|0,R$=R$+Math.imul(j$,a$)|0,P$=P$+Math.imul(j$,e$)|0,L$=L$+Math.imul(c,i$)|0,R$=R$+Math.imul(c,$Q)|0,R$=R$+Math.imul(v$,i$)|0,P$=P$+Math.imul(v$,$Q)|0,L$=L$+Math.imul(M$,YQ)|0,R$=R$+Math.imul(M$,X)|0,R$=R$+Math.imul(S$,YQ)|0,P$=P$+Math.imul(S$,X)|0;var WQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(WQ>>>26)|0,WQ&=67108863,L$=Math.imul(w$,o$),R$=Math.imul(w$,u$),R$=R$+Math.imul(p$,o$)|0,P$=Math.imul(p$,u$),L$=L$+Math.imul(B$,s$)|0,R$=R$+Math.imul(B$,t$)|0,R$=R$+Math.imul(H0,s$)|0,P$=P$+Math.imul(H0,t$)|0,L$=L$+Math.imul(x$,d)|0,R$=R$+Math.imul(x$,m$)|0,R$=R$+Math.imul(G,d)|0,P$=P$+Math.imul(G,m$)|0,L$=L$+Math.imul(g$,a$)|0,R$=R$+Math.imul(g$,e$)|0,R$=R$+Math.imul(_$,a$)|0,P$=P$+Math.imul(_$,e$)|0,L$=L$+Math.imul(q$,i$)|0,R$=R$+Math.imul(q$,$Q)|0,R$=R$+Math.imul(j$,i$)|0,P$=P$+Math.imul(j$,$Q)|0,L$=L$+Math.imul(c,YQ)|0,R$=R$+Math.imul(c,X)|0,R$=R$+Math.imul(v$,YQ)|0,P$=P$+Math.imul(v$,X)|0,L$=L$+Math.imul(M$,ZQ)|0,R$=R$+Math.imul(M$,D0)|0,R$=R$+Math.imul(S$,ZQ)|0,P$=P$+Math.imul(S$,D0)|0;var EQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(EQ>>>26)|0,EQ&=67108863,L$=Math.imul(c$,o$),R$=Math.imul(c$,u$),R$=R$+Math.imul(h$,o$)|0,P$=Math.imul(h$,u$),L$=L$+Math.imul(w$,s$)|0,R$=R$+Math.imul(w$,t$)|0,R$=R$+Math.imul(p$,s$)|0,P$=P$+Math.imul(p$,t$)|0,L$=L$+Math.imul(B$,d)|0,R$=R$+Math.imul(B$,m$)|0,R$=R$+Math.imul(H0,d)|0,P$=P$+Math.imul(H0,m$)|0,L$=L$+Math.imul(x$,a$)|0,R$=R$+Math.imul(x$,e$)|0,R$=R$+Math.imul(G,a$)|0,P$=P$+Math.imul(G,e$)|0,L$=L$+Math.imul(g$,i$)|0,R$=R$+Math.imul(g$,$Q)|0,R$=R$+Math.imul(_$,i$)|0,P$=P$+Math.imul(_$,$Q)|0,L$=L$+Math.imul(q$,YQ)|0,R$=R$+Math.imul(q$,X)|0,R$=R$+Math.imul(j$,YQ)|0,P$=P$+Math.imul(j$,X)|0,L$=L$+Math.imul(c,ZQ)|0,R$=R$+Math.imul(c,D0)|0,R$=R$+Math.imul(v$,ZQ)|0,P$=P$+Math.imul(v$,D0)|0,L$=L$+Math.imul(M$,VQ)|0,R$=R$+Math.imul(M$,UQ)|0,R$=R$+Math.imul(S$,VQ)|0,P$=P$+Math.imul(S$,UQ)|0;var TQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(TQ>>>26)|0,TQ&=67108863,L$=Math.imul(V,o$),R$=Math.imul(V,u$),R$=R$+Math.imul(h,o$)|0,P$=Math.imul(h,u$),L$=L$+Math.imul(c$,s$)|0,R$=R$+Math.imul(c$,t$)|0,R$=R$+Math.imul(h$,s$)|0,P$=P$+Math.imul(h$,t$)|0,L$=L$+Math.imul(w$,d)|0,R$=R$+Math.imul(w$,m$)|0,R$=R$+Math.imul(p$,d)|0,P$=P$+Math.imul(p$,m$)|0,L$=L$+Math.imul(B$,a$)|0,R$=R$+Math.imul(B$,e$)|0,R$=R$+Math.imul(H0,a$)|0,P$=P$+Math.imul(H0,e$)|0,L$=L$+Math.imul(x$,i$)|0,R$=R$+Math.imul(x$,$Q)|0,R$=R$+Math.imul(G,i$)|0,P$=P$+Math.imul(G,$Q)|0,L$=L$+Math.imul(g$,YQ)|0,R$=R$+Math.imul(g$,X)|0,R$=R$+Math.imul(_$,YQ)|0,P$=P$+Math.imul(_$,X)|0,L$=L$+Math.imul(q$,ZQ)|0,R$=R$+Math.imul(q$,D0)|0,R$=R$+Math.imul(j$,ZQ)|0,P$=P$+Math.imul(j$,D0)|0,L$=L$+Math.imul(c,VQ)|0,R$=R$+Math.imul(c,UQ)|0,R$=R$+Math.imul(v$,VQ)|0,P$=P$+Math.imul(v$,UQ)|0,L$=L$+Math.imul(M$,KQ)|0,R$=R$+Math.imul(M$,IQ)|0,R$=R$+Math.imul(S$,KQ)|0,P$=P$+Math.imul(S$,IQ)|0;var DQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(DQ>>>26)|0,DQ&=67108863,L$=Math.imul(E0,o$),R$=Math.imul(E0,u$),R$=R$+Math.imul(b$,o$)|0,P$=Math.imul(b$,u$),L$=L$+Math.imul(V,s$)|0,R$=R$+Math.imul(V,t$)|0,R$=R$+Math.imul(h,s$)|0,P$=P$+Math.imul(h,t$)|0,L$=L$+Math.imul(c$,d)|0,R$=R$+Math.imul(c$,m$)|0,R$=R$+Math.imul(h$,d)|0,P$=P$+Math.imul(h$,m$)|0,L$=L$+Math.imul(w$,a$)|0,R$=R$+Math.imul(w$,e$)|0,R$=R$+Math.imul(p$,a$)|0,P$=P$+Math.imul(p$,e$)|0,L$=L$+Math.imul(B$,i$)|0,R$=R$+Math.imul(B$,$Q)|0,R$=R$+Math.imul(H0,i$)|0,P$=P$+Math.imul(H0,$Q)|0,L$=L$+Math.imul(x$,YQ)|0,R$=R$+Math.imul(x$,X)|0,R$=R$+Math.imul(G,YQ)|0,P$=P$+Math.imul(G,X)|0,L$=L$+Math.imul(g$,ZQ)|0,R$=R$+Math.imul(g$,D0)|0,R$=R$+Math.imul(_$,ZQ)|0,P$=P$+Math.imul(_$,D0)|0,L$=L$+Math.imul(q$,VQ)|0,R$=R$+Math.imul(q$,UQ)|0,R$=R$+Math.imul(j$,VQ)|0,P$=P$+Math.imul(j$,UQ)|0,L$=L$+Math.imul(c,KQ)|0,R$=R$+Math.imul(c,IQ)|0,R$=R$+Math.imul(v$,KQ)|0,P$=P$+Math.imul(v$,IQ)|0,L$=L$+Math.imul(M$,K)|0,R$=R$+Math.imul(M$,l)|0,R$=R$+Math.imul(S$,K)|0,P$=P$+Math.imul(S$,l)|0;var I=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(I>>>26)|0,I&=67108863,L$=Math.imul(E0,s$),R$=Math.imul(E0,t$),R$=R$+Math.imul(b$,s$)|0,P$=Math.imul(b$,t$),L$=L$+Math.imul(V,d)|0,R$=R$+Math.imul(V,m$)|0,R$=R$+Math.imul(h,d)|0,P$=P$+Math.imul(h,m$)|0,L$=L$+Math.imul(c$,a$)|0,R$=R$+Math.imul(c$,e$)|0,R$=R$+Math.imul(h$,a$)|0,P$=P$+Math.imul(h$,e$)|0,L$=L$+Math.imul(w$,i$)|0,R$=R$+Math.imul(w$,$Q)|0,R$=R$+Math.imul(p$,i$)|0,P$=P$+Math.imul(p$,$Q)|0,L$=L$+Math.imul(B$,YQ)|0,R$=R$+Math.imul(B$,X)|0,R$=R$+Math.imul(H0,YQ)|0,P$=P$+Math.imul(H0,X)|0,L$=L$+Math.imul(x$,ZQ)|0,R$=R$+Math.imul(x$,D0)|0,R$=R$+Math.imul(G,ZQ)|0,P$=P$+Math.imul(G,D0)|0,L$=L$+Math.imul(g$,VQ)|0,R$=R$+Math.imul(g$,UQ)|0,R$=R$+Math.imul(_$,VQ)|0,P$=P$+Math.imul(_$,UQ)|0,L$=L$+Math.imul(q$,KQ)|0,R$=R$+Math.imul(q$,IQ)|0,R$=R$+Math.imul(j$,KQ)|0,P$=P$+Math.imul(j$,IQ)|0,L$=L$+Math.imul(c,K)|0,R$=R$+Math.imul(c,l)|0,R$=R$+Math.imul(v$,K)|0,P$=P$+Math.imul(v$,l)|0;var o=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(o>>>26)|0,o&=67108863,L$=Math.imul(E0,d),R$=Math.imul(E0,m$),R$=R$+Math.imul(b$,d)|0,P$=Math.imul(b$,m$),L$=L$+Math.imul(V,a$)|0,R$=R$+Math.imul(V,e$)|0,R$=R$+Math.imul(h,a$)|0,P$=P$+Math.imul(h,e$)|0,L$=L$+Math.imul(c$,i$)|0,R$=R$+Math.imul(c$,$Q)|0,R$=R$+Math.imul(h$,i$)|0,P$=P$+Math.imul(h$,$Q)|0,L$=L$+Math.imul(w$,YQ)|0,R$=R$+Math.imul(w$,X)|0,R$=R$+Math.imul(p$,YQ)|0,P$=P$+Math.imul(p$,X)|0,L$=L$+Math.imul(B$,ZQ)|0,R$=R$+Math.imul(B$,D0)|0,R$=R$+Math.imul(H0,ZQ)|0,P$=P$+Math.imul(H0,D0)|0,L$=L$+Math.imul(x$,VQ)|0,R$=R$+Math.imul(x$,UQ)|0,R$=R$+Math.imul(G,VQ)|0,P$=P$+Math.imul(G,UQ)|0,L$=L$+Math.imul(g$,KQ)|0,R$=R$+Math.imul(g$,IQ)|0,R$=R$+Math.imul(_$,KQ)|0,P$=P$+Math.imul(_$,IQ)|0,L$=L$+Math.imul(q$,K)|0,R$=R$+Math.imul(q$,l)|0,R$=R$+Math.imul(j$,K)|0,P$=P$+Math.imul(j$,l)|0;var CQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(CQ>>>26)|0,CQ&=67108863,L$=Math.imul(E0,a$),R$=Math.imul(E0,e$),R$=R$+Math.imul(b$,a$)|0,P$=Math.imul(b$,e$),L$=L$+Math.imul(V,i$)|0,R$=R$+Math.imul(V,$Q)|0,R$=R$+Math.imul(h,i$)|0,P$=P$+Math.imul(h,$Q)|0,L$=L$+Math.imul(c$,YQ)|0,R$=R$+Math.imul(c$,X)|0,R$=R$+Math.imul(h$,YQ)|0,P$=P$+Math.imul(h$,X)|0,L$=L$+Math.imul(w$,ZQ)|0,R$=R$+Math.imul(w$,D0)|0,R$=R$+Math.imul(p$,ZQ)|0,P$=P$+Math.imul(p$,D0)|0,L$=L$+Math.imul(B$,VQ)|0,R$=R$+Math.imul(B$,UQ)|0,R$=R$+Math.imul(H0,VQ)|0,P$=P$+Math.imul(H0,UQ)|0,L$=L$+Math.imul(x$,KQ)|0,R$=R$+Math.imul(x$,IQ)|0,R$=R$+Math.imul(G,KQ)|0,P$=P$+Math.imul(G,IQ)|0,L$=L$+Math.imul(g$,K)|0,R$=R$+Math.imul(g$,l)|0,R$=R$+Math.imul(_$,K)|0,P$=P$+Math.imul(_$,l)|0;var L0=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(L0>>>26)|0,L0&=67108863,L$=Math.imul(E0,i$),R$=Math.imul(E0,$Q),R$=R$+Math.imul(b$,i$)|0,P$=Math.imul(b$,$Q),L$=L$+Math.imul(V,YQ)|0,R$=R$+Math.imul(V,X)|0,R$=R$+Math.imul(h,YQ)|0,P$=P$+Math.imul(h,X)|0,L$=L$+Math.imul(c$,ZQ)|0,R$=R$+Math.imul(c$,D0)|0,R$=R$+Math.imul(h$,ZQ)|0,P$=P$+Math.imul(h$,D0)|0,L$=L$+Math.imul(w$,VQ)|0,R$=R$+Math.imul(w$,UQ)|0,R$=R$+Math.imul(p$,VQ)|0,P$=P$+Math.imul(p$,UQ)|0,L$=L$+Math.imul(B$,KQ)|0,R$=R$+Math.imul(B$,IQ)|0,R$=R$+Math.imul(H0,KQ)|0,P$=P$+Math.imul(H0,IQ)|0,L$=L$+Math.imul(x$,K)|0,R$=R$+Math.imul(x$,l)|0,R$=R$+Math.imul(G,K)|0,P$=P$+Math.imul(G,l)|0;var LQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(LQ>>>26)|0,LQ&=67108863,L$=Math.imul(E0,YQ),R$=Math.imul(E0,X),R$=R$+Math.imul(b$,YQ)|0,P$=Math.imul(b$,X),L$=L$+Math.imul(V,ZQ)|0,R$=R$+Math.imul(V,D0)|0,R$=R$+Math.imul(h,ZQ)|0,P$=P$+Math.imul(h,D0)|0,L$=L$+Math.imul(c$,VQ)|0,R$=R$+Math.imul(c$,UQ)|0,R$=R$+Math.imul(h$,VQ)|0,P$=P$+Math.imul(h$,UQ)|0,L$=L$+Math.imul(w$,KQ)|0,R$=R$+Math.imul(w$,IQ)|0,R$=R$+Math.imul(p$,KQ)|0,P$=P$+Math.imul(p$,IQ)|0,L$=L$+Math.imul(B$,K)|0,R$=R$+Math.imul(B$,l)|0,R$=R$+Math.imul(H0,K)|0,P$=P$+Math.imul(H0,l)|0;var RQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(RQ>>>26)|0,RQ&=67108863,L$=Math.imul(E0,ZQ),R$=Math.imul(E0,D0),R$=R$+Math.imul(b$,ZQ)|0,P$=Math.imul(b$,D0),L$=L$+Math.imul(V,VQ)|0,R$=R$+Math.imul(V,UQ)|0,R$=R$+Math.imul(h,VQ)|0,P$=P$+Math.imul(h,UQ)|0,L$=L$+Math.imul(c$,KQ)|0,R$=R$+Math.imul(c$,IQ)|0,R$=R$+Math.imul(h$,KQ)|0,P$=P$+Math.imul(h$,IQ)|0,L$=L$+Math.imul(w$,K)|0,R$=R$+Math.imul(w$,l)|0,R$=R$+Math.imul(p$,K)|0,P$=P$+Math.imul(p$,l)|0;var PQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(PQ>>>26)|0,PQ&=67108863,L$=Math.imul(E0,VQ),R$=Math.imul(E0,UQ),R$=R$+Math.imul(b$,VQ)|0,P$=Math.imul(b$,UQ),L$=L$+Math.imul(V,KQ)|0,R$=R$+Math.imul(V,IQ)|0,R$=R$+Math.imul(h,KQ)|0,P$=P$+Math.imul(h,IQ)|0,L$=L$+Math.imul(c$,K)|0,R$=R$+Math.imul(c$,l)|0,R$=R$+Math.imul(h$,K)|0,P$=P$+Math.imul(h$,l)|0;var zQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(zQ>>>26)|0,zQ&=67108863,L$=Math.imul(E0,KQ),R$=Math.imul(E0,IQ),R$=R$+Math.imul(b$,KQ)|0,P$=Math.imul(b$,IQ),L$=L$+Math.imul(V,K)|0,R$=R$+Math.imul(V,l)|0,R$=R$+Math.imul(h,K)|0,P$=P$+Math.imul(h,l)|0;var MQ=(C$+L$|0)+((R$&8191)<<13)|0;C$=(P$+(R$>>>13)|0)+(MQ>>>26)|0,MQ&=67108863,L$=Math.imul(E0,K),R$=Math.imul(E0,l),R$=R$+Math.imul(b$,K)|0,P$=Math.imul(b$,l);var SQ=(C$+L$|0)+((R$&8191)<<13)|0;return C$=(P$+(R$>>>13)|0)+(SQ>>>26)|0,SQ&=67108863,F0[0]=JQ,F0[1]=C0,F0[2]=FQ,F0[3]=AQ,F0[4]=HQ,F0[5]=WQ,F0[6]=EQ,F0[7]=TQ,F0[8]=DQ,F0[9]=I,F0[10]=o,F0[11]=CQ,F0[12]=L0,F0[13]=LQ,F0[14]=RQ,F0[15]=PQ,F0[16]=zQ,F0[17]=MQ,F0[18]=SQ,C$!==0&&(F0[19]=C$,Y.length++),Y};Math.imul||(X$=U$);function K$(E$,T$,Y){Y.negative=T$.negative^E$.negative,Y.length=E$.length+T$.length;for(var f=0,D$=0,F0=0;F0>>26)|0,D$+=C$>>>26,C$&=67108863}Y.words[F0]=L$,f=C$,C$=D$}return f!==0?Y.words[F0]=f:Y.length--,Y.strip()}function I$(E$,T$,Y){var f=new Q;return f.mulp(E$,T$,Y)}$$.prototype.mulTo=function(E$,T$){var Y,f=this.length+E$.length;return this.length===10&&E$.length===10?Y=X$(this,E$,T$):f<63?Y=U$(this,E$,T$):f<1024?Y=K$(this,E$,T$):Y=I$(this,E$,T$),Y};function Q(E$,T$){this.x=E$,this.y=T$}Q.prototype.makeRBT=function(E$){for(var T$=new Array(E$),Y=$$.prototype._countBits(E$)-1,f=0;f>=1;return f},Q.prototype.permute=function(E$,T$,Y,f,D$,F0){for(var C$=0;C$>>1)D$++;return 1<>>13,Y[2*F0+1]=D$&8191,D$=D$>>>13;for(F0=2*T$;F0>=26,T$+=f/67108864|0,T$+=D$>>>26,this.words[Y]=D$&67108863}return T$!==0&&(this.words[Y]=T$,this.length++),this},$$.prototype.muln=function(E$){return this.clone().imuln(E$)},$$.prototype.sqr=function(){return this.mul(this)},$$.prototype.isqr=function(){return this.imul(this.clone())},$$.prototype.pow=function(E$){var T$=V$(E$);if(T$.length===0)return new $$(1);for(var Y=this,f=0;f=0);var T$=E$%26,Y=(E$-T$)/26,f=67108863>>>26-T$<<26-T$,D$;if(T$!==0){var F0=0;for(D$=0;D$>>26-T$}F0&&(this.words[D$]=F0,this.length++)}if(Y!==0){for(D$=this.length-1;D$>=0;D$--)this.words[D$+Y]=this.words[D$];for(D$=0;D$=0);var f;T$?f=(T$-T$%26)/26:f=0;var D$=E$%26,F0=Math.min((E$-D$)/26,this.length),C$=67108863^67108863>>>D$<F0)for(this.length-=F0,R$=0;R$=0&&(P$!==0||R$>=f);R$--){var z$=this.words[R$]|0;this.words[R$]=P$<<26-D$|z$>>>D$,P$=z$&C$}return L$&&P$!==0&&(L$.words[L$.length++]=P$),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},$$.prototype.ishrn=function(E$,T$,Y){return r0(this.negative===0),this.iushrn(E$,T$,Y)},$$.prototype.shln=function(E$){return this.clone().ishln(E$)},$$.prototype.ushln=function(E$){return this.clone().iushln(E$)},$$.prototype.shrn=function(E$){return this.clone().ishrn(E$)},$$.prototype.ushrn=function(E$){return this.clone().iushrn(E$)},$$.prototype.testn=function(E$){r0(typeof E$=="number"&&E$>=0);var T$=E$%26,Y=(E$-T$)/26,f=1<=0);var T$=E$%26,Y=(E$-T$)/26;if(r0(this.negative===0,"imaskn works only with positive numbers"),this.length<=Y)return this;if(T$!==0&&Y++,this.length=Math.min(Y,this.length),T$!==0){var f=67108863^67108863>>>T$<=67108864;T$++)this.words[T$]-=67108864,T$===this.length-1?this.words[T$+1]=1:this.words[T$+1]++;return this.length=Math.max(this.length,T$+1),this},$$.prototype.isubn=function(E$){if(r0(typeof E$=="number"),r0(E$<67108864),E$<0)return this.iaddn(-E$);if(this.negative!==0)return this.negative=0,this.iaddn(E$),this.negative=1,this;if(this.words[0]-=E$,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var T$=0;T$>26)-(L$/67108864|0),this.words[D$+Y]=F0&67108863}for(;D$>26,this.words[D$+Y]=F0&67108863;if(C$===0)return this.strip();for(r0(C$===-1),C$=0,D$=0;D$>26,this.words[D$]=F0&67108863;return this.negative=1,this.strip()},$$.prototype._wordDiv=function(E$,T$){var Y=this.length-E$.length,f=this.clone(),D$=E$,F0=D$.words[D$.length-1]|0,C$=this._countBits(F0);Y=26-C$,Y!==0&&(D$=D$.ushln(Y),f.iushln(Y),F0=D$.words[D$.length-1]|0);var L$=f.length-D$.length,R$;if(T$!=="mod"){R$=new $$(null),R$.length=L$+1,R$.words=new Array(R$.length);for(var P$=0;P$=0;M$--){var S$=(f.words[D$.length+M$]|0)*67108864+(f.words[D$.length+M$-1]|0);for(S$=Math.min(S$/F0|0,67108863),f._ishlnsubmul(D$,S$,M$);f.negative!==0;)S$--,f.negative=0,f._ishlnsubmul(D$,1,M$),f.isZero()||(f.negative^=1);R$&&(R$.words[M$]=S$)}return R$&&R$.strip(),f.strip(),T$!=="div"&&Y!==0&&f.iushrn(Y),{div:R$||null,mod:f}},$$.prototype.divmod=function(E$,T$,Y){if(r0(!E$.isZero()),this.isZero())return{div:new $$(0),mod:new $$(0)};var f,D$,F0;return this.negative!==0&&E$.negative===0?(F0=this.neg().divmod(E$,T$),T$!=="mod"&&(f=F0.div.neg()),T$!=="div"&&(D$=F0.mod.neg(),Y&&D$.negative!==0&&D$.iadd(E$)),{div:f,mod:D$}):this.negative===0&&E$.negative!==0?(F0=this.divmod(E$.neg(),T$),T$!=="mod"&&(f=F0.div.neg()),{div:f,mod:F0.mod}):(this.negative&E$.negative)!==0?(F0=this.neg().divmod(E$.neg(),T$),T$!=="div"&&(D$=F0.mod.neg(),Y&&D$.negative!==0&&D$.isub(E$)),{div:F0.div,mod:D$}):E$.length>this.length||this.cmp(E$)<0?{div:new $$(0),mod:this}:E$.length===1?T$==="div"?{div:this.divn(E$.words[0]),mod:null}:T$==="mod"?{div:null,mod:new $$(this.modn(E$.words[0]))}:{div:this.divn(E$.words[0]),mod:new $$(this.modn(E$.words[0]))}:this._wordDiv(E$,T$)},$$.prototype.div=function(E$){return this.divmod(E$,"div",!1).div},$$.prototype.mod=function(E$){return this.divmod(E$,"mod",!1).mod},$$.prototype.umod=function(E$){return this.divmod(E$,"mod",!0).mod},$$.prototype.divRound=function(E$){var T$=this.divmod(E$);if(T$.mod.isZero())return T$.div;var Y=T$.div.negative!==0?T$.mod.isub(E$):T$.mod,f=E$.ushrn(1),D$=E$.andln(1),F0=Y.cmp(f);return F0<0||D$===1&&F0===0?T$.div:T$.div.negative!==0?T$.div.isubn(1):T$.div.iaddn(1)},$$.prototype.modn=function(E$){r0(E$<=67108863);for(var T$=(1<<26)%E$,Y=0,f=this.length-1;f>=0;f--)Y=(T$*Y+(this.words[f]|0))%E$;return Y},$$.prototype.idivn=function(E$){r0(E$<=67108863);for(var T$=0,Y=this.length-1;Y>=0;Y--){var f=(this.words[Y]|0)+T$*67108864;this.words[Y]=f/E$|0,T$=f%E$}return this.strip()},$$.prototype.divn=function(E$){return this.clone().idivn(E$)},$$.prototype.egcd=function(E$){r0(E$.negative===0),r0(!E$.isZero());var T$=this,Y=E$.clone();T$.negative!==0?T$=T$.umod(E$):T$=T$.clone();for(var f=new $$(1),D$=new $$(0),F0=new $$(0),C$=new $$(1),L$=0;T$.isEven()&&Y.isEven();)T$.iushrn(1),Y.iushrn(1),++L$;for(var R$=Y.clone(),P$=T$.clone();!T$.isZero();){for(var z$=0,M$=1;(T$.words[0]&M$)===0&&z$<26;++z$,M$<<=1);if(z$>0)for(T$.iushrn(z$);z$-- >0;)(f.isOdd()||D$.isOdd())&&(f.iadd(R$),D$.isub(P$)),f.iushrn(1),D$.iushrn(1);for(var S$=0,Z=1;(Y.words[0]&Z)===0&&S$<26;++S$,Z<<=1);if(S$>0)for(Y.iushrn(S$);S$-- >0;)(F0.isOdd()||C$.isOdd())&&(F0.iadd(R$),C$.isub(P$)),F0.iushrn(1),C$.iushrn(1);T$.cmp(Y)>=0?(T$.isub(Y),f.isub(F0),D$.isub(C$)):(Y.isub(T$),F0.isub(f),C$.isub(D$))}return{a:F0,b:C$,gcd:Y.iushln(L$)}},$$.prototype._invmp=function(E$){r0(E$.negative===0),r0(!E$.isZero());var T$=this,Y=E$.clone();T$.negative!==0?T$=T$.umod(E$):T$=T$.clone();for(var f=new $$(1),D$=new $$(0),F0=Y.clone();T$.cmpn(1)>0&&Y.cmpn(1)>0;){for(var C$=0,L$=1;(T$.words[0]&L$)===0&&C$<26;++C$,L$<<=1);if(C$>0)for(T$.iushrn(C$);C$-- >0;)f.isOdd()&&f.iadd(F0),f.iushrn(1);for(var R$=0,P$=1;(Y.words[0]&P$)===0&&R$<26;++R$,P$<<=1);if(R$>0)for(Y.iushrn(R$);R$-- >0;)D$.isOdd()&&D$.iadd(F0),D$.iushrn(1);T$.cmp(Y)>=0?(T$.isub(Y),f.isub(D$)):(Y.isub(T$),D$.isub(f))}var z$;return T$.cmpn(1)===0?z$=f:z$=D$,z$.cmpn(0)<0&&z$.iadd(E$),z$},$$.prototype.gcd=function(E$){if(this.isZero())return E$.abs();if(E$.isZero())return this.abs();var T$=this.clone(),Y=E$.clone();T$.negative=0,Y.negative=0;for(var f=0;T$.isEven()&&Y.isEven();f++)T$.iushrn(1),Y.iushrn(1);do{for(;T$.isEven();)T$.iushrn(1);for(;Y.isEven();)Y.iushrn(1);var D$=T$.cmp(Y);if(D$<0){var F0=T$;T$=Y,Y=F0}else if(D$===0||Y.cmpn(1)===0)break;T$.isub(Y)}while(!0);return Y.iushln(f)},$$.prototype.invm=function(E$){return this.egcd(E$).a.umod(E$)},$$.prototype.isEven=function(){return(this.words[0]&1)===0},$$.prototype.isOdd=function(){return(this.words[0]&1)===1},$$.prototype.andln=function(E$){return this.words[0]&E$},$$.prototype.bincn=function(E$){r0(typeof E$=="number");var T$=E$%26,Y=(E$-T$)/26,f=1<>>26,C$&=67108863,this.words[F0]=C$}return D$!==0&&(this.words[F0]=D$,this.length++),this},$$.prototype.isZero=function(){return this.length===1&&this.words[0]===0},$$.prototype.cmpn=function(E$){var T$=E$<0;if(this.negative!==0&&!T$)return-1;if(this.negative===0&&T$)return 1;this.strip();var Y;if(this.length>1)Y=1;else{T$&&(E$=-E$),r0(E$<=67108863,"Number is too big");var f=this.words[0]|0;Y=f===E$?0:fE$.length)return 1;if(this.length=0;Y--){var f=this.words[Y]|0,D$=E$.words[Y]|0;if(f!==D$){fD$&&(T$=1);break}}return T$},$$.prototype.gtn=function(E$){return this.cmpn(E$)===1},$$.prototype.gt=function(E$){return this.cmp(E$)===1},$$.prototype.gten=function(E$){return this.cmpn(E$)>=0},$$.prototype.gte=function(E$){return this.cmp(E$)>=0},$$.prototype.ltn=function(E$){return this.cmpn(E$)===-1},$$.prototype.lt=function(E$){return this.cmp(E$)===-1},$$.prototype.lten=function(E$){return this.cmpn(E$)<=0},$$.prototype.lte=function(E$){return this.cmp(E$)<=0},$$.prototype.eqn=function(E$){return this.cmpn(E$)===0},$$.prototype.eq=function(E$){return this.cmp(E$)===0},$$.red=function(E$){return new H$(E$)},$$.prototype.toRed=function(E$){return r0(!this.red,"Already a number in reduction context"),r0(this.negative===0,"red works only with positives"),E$.convertTo(this)._forceRed(E$)},$$.prototype.fromRed=function(){return r0(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},$$.prototype._forceRed=function(E$){return this.red=E$,this},$$.prototype.forceRed=function(E$){return r0(!this.red,"Already a number in reduction context"),this._forceRed(E$)},$$.prototype.redAdd=function(E$){return r0(this.red,"redAdd works only with red numbers"),this.red.add(this,E$)},$$.prototype.redIAdd=function(E$){return r0(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,E$)},$$.prototype.redSub=function(E$){return r0(this.red,"redSub works only with red numbers"),this.red.sub(this,E$)},$$.prototype.redISub=function(E$){return r0(this.red,"redISub works only with red numbers"),this.red.isub(this,E$)},$$.prototype.redShl=function(E$){return r0(this.red,"redShl works only with red numbers"),this.red.shl(this,E$)},$$.prototype.redMul=function(E$){return r0(this.red,"redMul works only with red numbers"),this.red._verify2(this,E$),this.red.mul(this,E$)},$$.prototype.redIMul=function(E$){return r0(this.red,"redMul works only with red numbers"),this.red._verify2(this,E$),this.red.imul(this,E$)},$$.prototype.redSqr=function(){return r0(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},$$.prototype.redISqr=function(){return r0(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},$$.prototype.redSqrt=function(){return r0(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},$$.prototype.redInvm=function(){return r0(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},$$.prototype.redNeg=function(){return r0(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},$$.prototype.redPow=function(E$){return r0(this.red&&!E$.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,E$)};var x={k256:null,p224:null,p192:null,p25519:null};function O$(E$,T$){this.name=E$,this.p=new $$(T$,16),this.n=this.p.bitLength(),this.k=new $$(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}O$.prototype._tmp=function(){var E$=new $$(null);return E$.words=new Array(Math.ceil(this.n/13)),E$},O$.prototype.ireduce=function(E$){var T$=E$,Y;do this.split(T$,this.tmp),T$=this.imulK(T$),T$=T$.iadd(this.tmp),Y=T$.bitLength();while(Y>this.n);var f=Y0?T$.isub(this.p):T$.strip!==void 0?T$.strip():T$._strip(),T$},O$.prototype.split=function(E$,T$){E$.iushrn(this.n,0,T$)},O$.prototype.imulK=function(E$){return E$.imul(this.k)};function J0(){O$.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i0(J0,O$),J0.prototype.split=function(E$,T$){for(var Y=4194303,f=Math.min(E$.length,9),D$=0;D$>>22,F0=C$}F0>>>=22,E$.words[D$-10]=F0,F0===0&&E$.length>10?E$.length-=10:E$.length-=9},J0.prototype.imulK=function(E$){E$.words[E$.length]=0,E$.words[E$.length+1]=0,E$.length+=2;for(var T$=0,Y=0;Y>>=26,E$.words[Y]=D$,T$=f}return T$!==0&&(E$.words[E$.length++]=T$),E$},$$._prime=function(E$){if(x[E$])return x[E$];var T$;if(E$==="k256")T$=new J0;else if(E$==="p224")T$=new J$;else if(E$==="p192")T$=new F$;else if(E$==="p25519")T$=new A$;else throw new Error("Unknown prime "+E$);return x[E$]=T$,T$};function H$(E$){if(typeof E$=="string"){var T$=$$._prime(E$);this.m=T$.p,this.prime=T$}else r0(E$.gtn(1),"modulus must be greater than 1"),this.m=E$,this.prime=null}H$.prototype._verify1=function(E$){r0(E$.negative===0,"red works only with positives"),r0(E$.red,"red works only with red numbers")},H$.prototype._verify2=function(E$,T$){r0((E$.negative|T$.negative)===0,"red works only with positives"),r0(E$.red&&E$.red===T$.red,"red works only with red numbers")},H$.prototype.imod=function(E$){return this.prime?this.prime.ireduce(E$)._forceRed(this):E$.umod(this.m)._forceRed(this)},H$.prototype.neg=function(E$){return E$.isZero()?E$.clone():this.m.sub(E$)._forceRed(this)},H$.prototype.add=function(E$,T$){this._verify2(E$,T$);var Y=E$.add(T$);return Y.cmp(this.m)>=0&&Y.isub(this.m),Y._forceRed(this)},H$.prototype.iadd=function(E$,T$){this._verify2(E$,T$);var Y=E$.iadd(T$);return Y.cmp(this.m)>=0&&Y.isub(this.m),Y},H$.prototype.sub=function(E$,T$){this._verify2(E$,T$);var Y=E$.sub(T$);return Y.cmpn(0)<0&&Y.iadd(this.m),Y._forceRed(this)},H$.prototype.isub=function(E$,T$){this._verify2(E$,T$);var Y=E$.isub(T$);return Y.cmpn(0)<0&&Y.iadd(this.m),Y},H$.prototype.shl=function(E$,T$){return this._verify1(E$),this.imod(E$.ushln(T$))},H$.prototype.imul=function(E$,T$){return this._verify2(E$,T$),this.imod(E$.imul(T$))},H$.prototype.mul=function(E$,T$){return this._verify2(E$,T$),this.imod(E$.mul(T$))},H$.prototype.isqr=function(E$){return this.imul(E$,E$.clone())},H$.prototype.sqr=function(E$){return this.mul(E$,E$)},H$.prototype.sqrt=function(E$){if(E$.isZero())return E$.clone();var T$=this.m.andln(3);if(r0(T$%2===1),T$===3){var Y=this.m.add(new $$(1)).iushrn(2);return this.pow(E$,Y)}for(var f=this.m.subn(1),D$=0;!f.isZero()&&f.andln(1)===0;)D$++,f.iushrn(1);r0(!f.isZero());var F0=new $$(1).toRed(this),C$=F0.redNeg(),L$=this.m.subn(1).iushrn(1),R$=this.m.bitLength();for(R$=new $$(2*R$*R$).toRed(this);this.pow(R$,L$).cmp(C$)!==0;)R$.redIAdd(C$);for(var P$=this.pow(R$,f),z$=this.pow(E$,f.addn(1).iushrn(1)),M$=this.pow(E$,f),S$=D$;M$.cmp(F0)!==0;){for(var Z=M$,c=0;Z.cmp(F0)!==0;c++)Z=Z.redSqr();r0(c=0;D$--){for(var P$=T$.words[D$],z$=R$-1;z$>=0;z$--){var M$=P$>>z$&1;if(F0!==f[0]&&(F0=this.sqr(F0)),M$===0&&C$===0){L$=0;continue}C$<<=1,C$|=M$,L$++,!(L$!==Y&&(D$!==0||z$!==0))&&(F0=this.mul(F0,f[C$]),L$=0,C$=0)}R$=26}return F0},H$.prototype.convertTo=function(E$){var T$=E$.umod(this.m);return T$===E$?T$.clone():T$},H$.prototype.convertFrom=function(E$){var T$=E$.clone();return T$.red=null,T$},$$.mont=function(E$){return new W$(E$)};function W$(E$){H$.call(this,E$),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new $$(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)}i0(W$,H$),W$.prototype.convertTo=function(E$){return this.imod(E$.ushln(this.shift))},W$.prototype.convertFrom=function(E$){var T$=this.imod(E$.mul(this.rinv));return T$.red=null,T$},W$.prototype.imul=function(E$,T$){if(E$.isZero()||T$.isZero())return E$.words[0]=0,E$.length=1,E$;var Y=E$.imul(T$),f=Y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),D$=Y.isub(f).iushrn(this.shift),F0=D$;return D$.cmp(this.m)>=0?F0=D$.isub(this.m):D$.cmpn(0)<0&&(F0=D$.iadd(this.m)),F0._forceRed(this)},W$.prototype.mul=function(E$,T$){if(E$.isZero()||T$.isZero())return new $$(0)._forceRed(this);var Y=E$.mul(T$),f=Y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),D$=Y.isub(f).iushrn(this.shift),F0=D$;return D$.cmp(this.m)>=0?F0=D$.isub(this.m):D$.cmpn(0)<0&&(F0=D$.iadd(this.m)),F0._forceRed(this)},W$.prototype.invm=function(E$){var T$=this.imod(E$._invmp(this.m).mul(this.r2));return T$._forceRed(this)}})(typeof m0>"u"||m0,t0)}}),{CryptoHasher:AZ}=globalThis.Bun,b0=pQ({"node_modules/public-encrypt/withPublic.js"(t0,m0){var a0=$0(),e0=cQ().Buffer;function r0(i0,$$){return e0.from(i0.toRed(a0.mont($$.modulus)).redPow(new a0($$.publicExponent)).fromRed().toArray())}m0.exports=r0}}),HZ=pQ({"node_modules/public-encrypt/publicEncrypt.js"(t0,m0){var a0=d0(),e0=hQ(),r0=w(),i0=FZ(),$$=z(),Q$=$0(),$=b0(),N=qY(),Y$=cQ().Buffer;m0.exports=function(V$,U$,X$){var K$;V$.padding?K$=V$.padding:X$?K$=1:K$=4;var I$=a0(V$),Q;if(K$===4)Q=O0(I$,U$);else if(K$===1)Q=Z$(I$,U$,X$);else if(K$===3){if(Q=new Q$(U$),Q.cmp(I$.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return X$?N(Q,I$):$(Q,I$)};function O0(V$,U$){var X$=V$.modulus.byteLength(),K$=U$.length,I$=r0("sha1").update(Y$.alloc(0)).digest(),Q=I$.length,x=2*Q;if(K$>X$-x-2)throw new Error("message too long");var O$=Y$.alloc(X$-K$-x-2),J0=X$-Q-1,J$=e0(Q),F$=$$(Y$.concat([I$,O$,Y$.alloc(1,1),U$],J0),i0(J$,J0)),A$=$$(J$,i0(F$,Q));return new Q$(Y$.concat([Y$.alloc(1),A$,F$],X$))}function Z$(V$,U$,X$){var K$=U$.length,I$=V$.modulus.byteLength();if(K$>I$-11)throw new Error("message too long");var Q;return X$?Q=Y$.alloc(I$-K$-3,255):Q=G$(I$-K$-3),new Q$(Y$.concat([Y$.from([0,X$?1:2]),Q,Y$.alloc(1),U$],I$))}function G$(V$){for(var U$=Y$.allocUnsafe(V$),X$=0,K$=e0(V$*2),I$=0,Q;X$I$||new i0(V$).cmp(K$.modulus)>=0)throw new Error("decryption error");var Q;U$?Q=$(new i0(V$),K$):Q=$$(V$,K$);var x=N.alloc(I$-Q.length);if(Q=N.concat([x,Q],I$),X$===4)return Y$(K$,Q);if(X$===1)return O0(K$,Q,U$);if(X$===3)return Q;throw new Error("unknown padding")};function Y$(G$,V$){var U$=G$.modulus.byteLength(),X$=Q$("sha1").update(N.alloc(0)).digest(),K$=X$.length;if(V$[0]!==0)throw new Error("decryption error");var I$=V$.slice(1,K$+1),Q=V$.slice(K$+1),x=r0(I$,e0(Q,K$)),O$=r0(Q,e0(x,U$-K$-1));if(Z$(X$,O$.slice(0,K$)))throw new Error("decryption error");for(var J0=K$;O$[J0]===0;)J0++;if(O$[J0++]!==1)throw new Error("decryption error");return O$.slice(J0)}function O0(G$,V$,U$){for(var X$=V$.slice(0,2),K$=2,I$=0;V$[K$++]!==0;)if(K$>=V$.length){I$++;break}var Q=V$.slice(2,K$-1);if((X$.toString("hex")!=="0002"&&!U$||X$.toString("hex")!=="0001"&&U$)&&I$++,Q.length<8&&I$++,I$)throw new Error("decryption error");return V$.slice(K$)}function Z$(G$,V$){G$=N.from(G$),V$=N.from(V$);var U$=0,X$=G$.length;G$.length!==V$.length&&(U$++,X$=Math.min(G$.length,V$.length));for(var K$=-1;++K$i0||O0<0)throw new TypeError("offset must be a uint32");if(O0>r0||O0>Z$)throw new RangeError("offset out of range")}function Q$(O0,Z$,G$){if(typeof O0!="number"||O0!==O0)throw new TypeError("size must be a number");if(O0>i0||O0<0)throw new TypeError("size must be a uint32");if(O0+Z$>G$||O0>r0)throw new RangeError("buffer too small")}t0.randomFill=$,t0.randomFillSync=Y$;function $(O0,Z$,G$,V$){if(!e0.isBuffer(O0)&&!(O0 instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof Z$=="function")V$=Z$,Z$=0,G$=O0.length;else if(typeof G$=="function")V$=G$,G$=O0.length-Z$;else if(typeof V$!="function")throw new TypeError('"cb" argument must be a function');return $$(Z$,O0.length),Q$(G$,Z$,O0.length),N(O0,Z$,G$,V$)}function N(O0,Z$,G$,V$){if(V$){a0(G$,function(X$,K$){if(X$)return V$(X$);K$.copy(O0,Z$),V$(null,O0)});return}var U$=a0(G$);return U$.copy(O0,Z$),O0}function Y$(O0,Z$,G$){if(typeof Z$>"u"&&(Z$=0),!e0.isBuffer(O0)&&!(O0 instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return $$(Z$,O0.length),G$===void 0&&(G$=O0.length-Z$),Q$(G$,Z$,O0.length),N(O0,Z$,G$)}}}),DZ=pQ({"node_modules/crypto-browserify/index.js"(t0){t0.randomBytes=t0.rng=t0.pseudoRandomBytes=t0.prng=hQ(),t0.createHash=w(),t0.Hash=t0.createHash.Hash,t0.createHmac=t0.Hmac=aQ();var m0=rQ(),a0=Object.keys(m0),e0=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(a0);t0.getHashes=function(){return e0};var r0=u();t0.pbkdf2=r0.pbkdf2,t0.pbkdf2Sync=r0.pbkdf2Sync;var i0=LY();t0.Cipher=i0.Cipher,t0.createCipher=i0.createCipher,t0.Cipheriv=i0.Cipheriv,t0.createCipheriv=i0.createCipheriv,t0.Decipher=i0.Decipher,t0.createDecipher=i0.createDecipher,t0.Decipheriv=i0.Decipheriv,t0.createDecipheriv=i0.createDecipheriv,t0.getCiphers=i0.getCiphers,t0.listCiphers=i0.listCiphers;var $$=SY();t0.DiffieHellmanGroup=$$.DiffieHellmanGroup,t0.createDiffieHellmanGroup=$$.createDiffieHellmanGroup,t0.getDiffieHellman=$$.getDiffieHellman,t0.createDiffieHellman=$$.createDiffieHellman,t0.DiffieHellman=$$.DiffieHellman;var Q$=IZ();t0.createSign=Q$.createSign,t0.Sign=Q$.Sign,t0.createVerify=Q$.createVerify,t0.Verify=Q$.Verify,t0.createECDH=JZ();var $=EZ();t0.publicEncrypt=$.publicEncrypt,t0.privateEncrypt=$.privateEncrypt,t0.publicDecrypt=$.publicDecrypt,t0.privateDecrypt=$.privateDecrypt,t0.getRandomValues=(Y$)=>qQ.getRandomValues(Y$);var N=TZ();t0.randomFill=N.randomFill,t0.randomFillSync=N.randomFillSync,t0.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(` `))},t0.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}}}),CZ={...DZ(),[Symbol.for("CommonJS")]:0},gQ="buffer",LZ=(t0)=>qQ.getRandomValues(t0),M=()=>qQ.randomUUID(),p=(...t0)=>qQ.randomInt(...t0),_Q="timingSafeEqual"in qQ?(t0,m0)=>{let{byteLength:a0}=t0,{byteLength:e0}=m0;if(typeof a0!="number"||typeof e0!="number")throw new TypeError("Input must be an array buffer view");if(a0!==e0)throw new RangeError("Input buffers must have the same length");return qQ.timingSafeEqual(t0,m0)}:void 0,U0="scryptSync"in qQ?(t0,m0,a0,e0)=>{let r0=qQ.scryptSync(t0,m0,a0,e0);return gQ!=="buffer"?new G0(r0).toString(gQ):new G0(r0)}:void 0,X0="scryptSync"in qQ?function(t0,m0,a0,e0,r0){if(typeof e0=="function"&&(r0=e0,e0=void 0),typeof r0!="function"){var i0=new TypeError("callback must be a function");throw i0.code="ERR_INVALID_CALLBACK",i0}try{let $$=qQ.scryptSync(t0,m0,a0,e0);process.nextTick(r0,null,gQ!=="buffer"?new G0($$).toString(gQ):new G0($$))}catch($$){throw $$}}:void 0;_Q&&(Object.defineProperty(_Q,"name",{value:"::bunternal::"}),Object.defineProperty(X0,"name",{value:"::bunternal::"}),Object.defineProperty(U0,"name",{value:"::bunternal::"}));var RZ=["p192","p224","p256","p384","p521","curve25519","ed25519","secp256k1","secp224r1","prime256v1","prime192v1","ed25519","secp384r1","secp521r1"],NQ=qQ;fQ(CZ,{DEFAULT_ENCODING:()=>gQ,getRandomValues:()=>LZ,randomUUID:()=>M,randomInt:()=>p,getCurves:()=>PZ,scrypt:()=>X0,scryptSync:()=>U0,timingSafeEqual:()=>_Q,webcrypto:()=>NQ,subtle:()=>NQ.subtle});var{randomBytes:zZ,rng:MZ,pseudoRandomBytes:SZ,prng:vZ,Hash:qZ,createHash:S,createHmac:k,Hmac:s0,getHashes:l0,pbkdf2:jZ,pbkdf2Sync:kZ,Cipher:gZ,createCipher:_Z,Cipheriv:NZ,createCipheriv:xZ,Decipher:BZ,createDecipher:v,Decipheriv:Q0,createDecipheriv:o0,getCiphers:u0,listCiphers:yZ,DiffieHellmanGroup:wZ,createDiffieHellmanGroup:pZ,getDiffieHellman:fZ,createDiffieHellman:cZ,DiffieHellman:hZ,createSign:dZ,Sign:q,createVerify:Y0,Verify:K0,createECDH:n0,publicEncrypt:bZ,privateEncrypt:lZ,publicDecrypt:oZ,privateDecrypt:uZ,randomFill:nZ,randomFillSync:sZ,createCredentials:tZ,constants:j}=CZ;var I0=CZ;/*! safe-buffer. MIT License. Feross Aboukhadijeh */export{NQ as webcrypto,_Q as timingSafeEqual,U0 as scryptSync,X0 as scrypt,MZ as rng,M as randomUUID,p as randomInt,sZ as randomFillSync,nZ as randomFill,zZ as randomBytes,bZ as publicEncrypt,oZ as publicDecrypt,SZ as pseudoRandomBytes,vZ as prng,lZ as privateEncrypt,uZ as privateDecrypt,kZ as pbkdf2Sync,jZ as pbkdf2,yZ as listCiphers,LZ as getRandomValues,l0 as getHashes,fZ as getDiffieHellman,PZ as getCurves,u0 as getCiphers,I0 as default,Y0 as createVerify,dZ as createSign,k as createHmac,S as createHash,n0 as createECDH,pZ as createDiffieHellmanGroup,cZ as createDiffieHellman,o0 as createDecipheriv,v as createDecipher,tZ as createCredentials,xZ as createCipheriv,_Z as createCipher,j as constants,K0 as Verify,q as Sign,s0 as Hmac,qZ as Hash,wZ as DiffieHellmanGroup,hZ as DiffieHellman,Q0 as Decipheriv,BZ as Decipher,gQ as DEFAULT_ENCODING,NZ as Cipheriv,gZ as Cipher};