zigap-utils 0.0.496 → 0.0.497

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -27,7 +27,7 @@ Check the top-level render call using <`+L+">.")}return z}}function c0(m,z){{if(
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,de,Ae,ye,Ae),Ie[Ae+de]=!0}}return m===r?Oe(ve):gt(ve),ve}}function C(m,z,L){return l(m,z,L,!0)}function w(m,z,L){return l(m,z,L,!1)}var s=w,D=C;Zt.Fragment=r,Zt.jsx=s,Zt.jsxs=D}()),Zt}process.env.NODE_ENV==="production"?Di.exports=ba():Di.exports=pa();var pr=Di.exports,ya=Object.defineProperty,yr=Object.getOwnPropertySymbols,lf=Object.prototype.hasOwnProperty,xf=Object.prototype.propertyIsEnumerable,on=(i,e,t)=>e in i?ya(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,cn=(i,e)=>{for(var t in e||(e={}))lf.call(e,t)&&on(i,t,e[t]);if(yr)for(var t of yr(e))xf.call(e,t)&&on(i,t,e[t]);return i},ga=(i,e)=>{var t={};for(var r in i)lf.call(i,r)&&e.indexOf(r)<0&&(t[r]=i[r]);if(i!=null&&yr)for(var r of yr(i))e.indexOf(r)<0&&xf.call(i,r)&&(t[r]=i[r]);return t};/**
30
+ <%s key={someKey} {...props} />`,de,Ae,ye,Ae),Ie[Ae+de]=!0}}return m===r?Oe(ve):gt(ve),ve}}function C(m,z,L){return l(m,z,L,!0)}function w(m,z,L){return l(m,z,L,!1)}var s=w,D=C;Zt.Fragment=r,Zt.jsx=s,Zt.jsxs=D}()),Zt}process.env.NODE_ENV==="production"?Di.exports=ba():Di.exports=pa();var yr=Di.exports,ya=Object.defineProperty,gr=Object.getOwnPropertySymbols,lf=Object.prototype.hasOwnProperty,xf=Object.prototype.propertyIsEnumerable,on=(i,e,t)=>e in i?ya(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,cn=(i,e)=>{for(var t in e||(e={}))lf.call(e,t)&&on(i,t,e[t]);if(gr)for(var t of gr(e))xf.call(e,t)&&on(i,t,e[t]);return i},ga=(i,e)=>{var t={};for(var r in i)lf.call(i,r)&&e.indexOf(r)<0&&(t[r]=i[r]);if(i!=null&&gr)for(var r of gr(i))e.indexOf(r)<0&&xf.call(i,r)&&(t[r]=i[r]);return t};/**
31
31
  * @license QR Code generator library (TypeScript)
32
32
  * Copyright (c) Project Nayuki.
33
33
  * SPDX-License-Identifier: MIT
@@ -35,7 +35,7 @@ React keys must be passed directly to JSX without using spread:
35
35
  * @license qrcode.react
36
36
  * Copyright (c) Paul O'Shannessy
37
37
  * SPDX-License-Identifier: ISC
38
- */var ma={L:rr.QrCode.Ecc.LOW,M:rr.QrCode.Ecc.MEDIUM,Q:rr.QrCode.Ecc.QUARTILE,H:rr.QrCode.Ecc.HIGH},_a=128,Aa="L",Ea="#FFFFFF",wa="#000000",Ba=!1,vf=4,Ca=.1;function Ma(i,e=0){const t=[];return i.forEach(function(r,a){let n=null;r.forEach(function(y,x){if(!y&&n!==null){t.push(`M${n+e} ${a+e}h${x-n}v1H${n+e}z`),n=null;return}if(x===r.length-1){if(!y)return;n===null?t.push(`M${x+e},${a+e} h1v1H${x+e}z`):t.push(`M${n+e},${a+e} h${x+1-n}v1H${n+e}z`);return}y&&n===null&&(n=x)})}),t.join("")}function Sa(i,e){return i.slice().map((t,r)=>r<e.y||r>=e.y+e.h?t:t.map((a,n)=>n<e.x||n>=e.x+e.w?a:!1))}function Da(i,e,t,r){if(r==null)return null;const a=t?vf:0,n=i.length+a*2,y=Math.floor(e*Ca),x=n/e,u=(r.width||y)*x,c=(r.height||y)*x,d=r.x==null?i.length/2-u/2:r.x*x,v=r.y==null?i.length/2-c/2:r.y*x;let b=null;if(r.excavate){let M=Math.floor(d),B=Math.floor(v),R=Math.ceil(u+d-M),k=Math.ceil(c+v-B);b={x:M,y:B,w:R,h:k}}return{x:d,y:v,h:c,w:u,excavation:b}}var Fa=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}();function bf(i){const e=i,{value:t,size:r=_a,level:a=Aa,bgColor:n=Ea,fgColor:y=wa,includeMargin:x=Ba,style:u,imageSettings:c}=e,d=ga(e,["value","size","level","bgColor","fgColor","includeMargin","style","imageSettings"]),v=c==null?void 0:c.src,b=O0.useRef(null),M=O0.useRef(null),[B,R]=O0.useState(!1);O0.useEffect(()=>{if(b.current!=null){const F=b.current,P=F.getContext("2d");if(!P)return;let O=rr.QrCode.encodeText(t,ma[a]).getModules();const H=x?vf:0,U=O.length+H*2,K=Da(O,r,x,c),X=M.current,Q=K!=null&&X!==null&&X.complete&&X.naturalHeight!==0&&X.naturalWidth!==0;Q&&K.excavation!=null&&(O=Sa(O,K.excavation));const $=window.devicePixelRatio||1;F.height=F.width=r*$;const _=r/U*$;P.scale(_,_),P.fillStyle=n,P.fillRect(0,0,U,U),P.fillStyle=y,Fa?P.fill(new Path2D(Ma(O,H))):O.forEach(function(f,h){f.forEach(function(p,g){p&&P.fillRect(g+H,h+H,1,1)})}),Q&&P.drawImage(X,K.x+H,K.y+H,K.w,K.h)}}),O0.useEffect(()=>{R(!1)},[v]);const k=cn({height:r,width:r},u);let q=null;return v!=null&&(q=tr.default.createElement("img",{src:v,key:v,style:{display:"none"},onLoad:()=>{R(!0)},ref:M})),tr.default.createElement(tr.default.Fragment,null,tr.default.createElement("canvas",cn({style:k,height:r,width:r,ref:b},d)),q)}var pf={exports:{}};function yf(i){throw new Error('Could not dynamically require "'+i+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var zr={exports:{}};const Ra={},ka=Object.freeze(Object.defineProperty({__proto__:null,default:Ra},Symbol.toStringTag,{value:"Module"})),Er=hf(ka);var dn;function We(){return dn||(dn=1,function(i,e){(function(t,r){i.exports=r()})(ke,function(){var t=t||function(r,a){var n;if(typeof window<"u"&&window.crypto&&(n=window.crypto),typeof self<"u"&&self.crypto&&(n=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(n=globalThis.crypto),!n&&typeof window<"u"&&window.msCrypto&&(n=window.msCrypto),!n&&typeof ke<"u"&&ke.crypto&&(n=ke.crypto),!n&&typeof yf=="function")try{n=Er}catch{}var y=function(){if(n){if(typeof n.getRandomValues=="function")try{return n.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof n.randomBytes=="function")try{return n.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},x=Object.create||function(){function F(){}return function(P){var O;return F.prototype=P,O=new F,F.prototype=null,O}}(),u={},c=u.lib={},d=c.Base=function(){return{extend:function(F){var P=x(this);return F&&P.mixIn(F),(!P.hasOwnProperty("init")||this.init===P.init)&&(P.init=function(){P.$super.init.apply(this,arguments)}),P.init.prototype=P,P.$super=this,P},create:function(){var F=this.extend();return F.init.apply(F,arguments),F},init:function(){},mixIn:function(F){for(var P in F)F.hasOwnProperty(P)&&(this[P]=F[P]);F.hasOwnProperty("toString")&&(this.toString=F.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),v=c.WordArray=d.extend({init:function(F,P){F=this.words=F||[],P!=a?this.sigBytes=P:this.sigBytes=F.length*4},toString:function(F){return(F||M).stringify(this)},concat:function(F){var P=this.words,O=F.words,H=this.sigBytes,U=F.sigBytes;if(this.clamp(),H%4)for(var K=0;K<U;K++){var X=O[K>>>2]>>>24-K%4*8&255;P[H+K>>>2]|=X<<24-(H+K)%4*8}else for(var Q=0;Q<U;Q+=4)P[H+Q>>>2]=O[Q>>>2];return this.sigBytes+=U,this},clamp:function(){var F=this.words,P=this.sigBytes;F[P>>>2]&=4294967295<<32-P%4*8,F.length=r.ceil(P/4)},clone:function(){var F=d.clone.call(this);return F.words=this.words.slice(0),F},random:function(F){for(var P=[],O=0;O<F;O+=4)P.push(y());return new v.init(P,F)}}),b=u.enc={},M=b.Hex={stringify:function(F){for(var P=F.words,O=F.sigBytes,H=[],U=0;U<O;U++){var K=P[U>>>2]>>>24-U%4*8&255;H.push((K>>>4).toString(16)),H.push((K&15).toString(16))}return H.join("")},parse:function(F){for(var P=F.length,O=[],H=0;H<P;H+=2)O[H>>>3]|=parseInt(F.substr(H,2),16)<<24-H%8*4;return new v.init(O,P/2)}},B=b.Latin1={stringify:function(F){for(var P=F.words,O=F.sigBytes,H=[],U=0;U<O;U++){var K=P[U>>>2]>>>24-U%4*8&255;H.push(String.fromCharCode(K))}return H.join("")},parse:function(F){for(var P=F.length,O=[],H=0;H<P;H++)O[H>>>2]|=(F.charCodeAt(H)&255)<<24-H%4*8;return new v.init(O,P)}},R=b.Utf8={stringify:function(F){try{return decodeURIComponent(escape(B.stringify(F)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(F){return B.parse(unescape(encodeURIComponent(F)))}},k=c.BufferedBlockAlgorithm=d.extend({reset:function(){this._data=new v.init,this._nDataBytes=0},_append:function(F){typeof F=="string"&&(F=R.parse(F)),this._data.concat(F),this._nDataBytes+=F.sigBytes},_process:function(F){var P,O=this._data,H=O.words,U=O.sigBytes,K=this.blockSize,X=K*4,Q=U/X;F?Q=r.ceil(Q):Q=r.max((Q|0)-this._minBufferSize,0);var $=Q*K,_=r.min($*4,U);if($){for(var f=0;f<$;f+=K)this._doProcessBlock(H,f);P=H.splice(0,$),O.sigBytes-=_}return new v.init(P,_)},clone:function(){var F=d.clone.call(this);return F._data=this._data.clone(),F},_minBufferSize:0});c.Hasher=k.extend({cfg:d.extend(),init:function(F){this.cfg=this.cfg.extend(F),this.reset()},reset:function(){k.reset.call(this),this._doReset()},update:function(F){return this._append(F),this._process(),this},finalize:function(F){F&&this._append(F);var P=this._doFinalize();return P},blockSize:16,_createHelper:function(F){return function(P,O){return new F.init(O).finalize(P)}},_createHmacHelper:function(F){return function(P,O){return new q.HMAC.init(F,O).finalize(P)}}});var q=u.algo={};return u}(Math);return t})}(zr)),zr.exports}var Nr={exports:{}},hn;function wr(){return hn||(hn=1,function(i,e){(function(t,r){i.exports=r(We())})(ke,function(t){return function(r){var a=t,n=a.lib,y=n.Base,x=n.WordArray,u=a.x64={};u.Word=y.extend({init:function(c,d){this.high=c,this.low=d}}),u.WordArray=y.extend({init:function(c,d){c=this.words=c||[],d!=r?this.sigBytes=d:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,d=c.length,v=[],b=0;b<d;b++){var M=c[b];v.push(M.high),v.push(M.low)}return x.create(v,this.sigBytes)},clone:function(){for(var c=y.clone.call(this),d=c.words=this.words.slice(0),v=d.length,b=0;b<v;b++)d[b]=d[b].clone();return c}})}(),t})}(Nr)),Nr.exports}var qr={exports:{}},un;function Pa(){return un||(un=1,function(i,e){(function(t,r){i.exports=r(We())})(ke,function(t){return function(){if(typeof ArrayBuffer=="function"){var r=t,a=r.lib,n=a.WordArray,y=n.init,x=n.init=function(u){if(u instanceof ArrayBuffer&&(u=new Uint8Array(u)),(u instanceof Int8Array||typeof Uint8ClampedArray<"u"&&u instanceof Uint8ClampedArray||u instanceof Int16Array||u instanceof Uint16Array||u instanceof Int32Array||u instanceof Uint32Array||u instanceof Float32Array||u instanceof Float64Array)&&(u=new Uint8Array(u.buffer,u.byteOffset,u.byteLength)),u instanceof Uint8Array){for(var c=u.byteLength,d=[],v=0;v<c;v++)d[v>>>2]|=u[v]<<24-v%4*8;y.call(this,d,c)}else y.apply(this,arguments)};x.prototype=n}}(),t.lib.WordArray})}(qr)),qr.exports}var Lr={exports:{}},ln;function Ia(){return ln||(ln=1,function(i,e){(function(t,r){i.exports=r(We())})(ke,function(t){return function(){var r=t,a=r.lib,n=a.WordArray,y=r.enc;y.Utf16=y.Utf16BE={stringify:function(u){for(var c=u.words,d=u.sigBytes,v=[],b=0;b<d;b+=2){var M=c[b>>>2]>>>16-b%4*8&65535;v.push(String.fromCharCode(M))}return v.join("")},parse:function(u){for(var c=u.length,d=[],v=0;v<c;v++)d[v>>>1]|=u.charCodeAt(v)<<16-v%2*16;return n.create(d,c*2)}},y.Utf16LE={stringify:function(u){for(var c=u.words,d=u.sigBytes,v=[],b=0;b<d;b+=2){var M=x(c[b>>>2]>>>16-b%4*8&65535);v.push(String.fromCharCode(M))}return v.join("")},parse:function(u){for(var c=u.length,d=[],v=0;v<c;v++)d[v>>>1]|=x(u.charCodeAt(v)<<16-v%2*16);return n.create(d,c*2)}};function x(u){return u<<8&4278255360|u>>>8&16711935}}(),t.enc.Utf16})}(Lr)),Lr.exports}var $r={exports:{}},xn;function kt(){return xn||(xn=1,function(i,e){(function(t,r){i.exports=r(We())})(ke,function(t){return function(){var r=t,a=r.lib,n=a.WordArray,y=r.enc;y.Base64={stringify:function(u){var c=u.words,d=u.sigBytes,v=this._map;u.clamp();for(var b=[],M=0;M<d;M+=3)for(var B=c[M>>>2]>>>24-M%4*8&255,R=c[M+1>>>2]>>>24-(M+1)%4*8&255,k=c[M+2>>>2]>>>24-(M+2)%4*8&255,q=B<<16|R<<8|k,F=0;F<4&&M+F*.75<d;F++)b.push(v.charAt(q>>>6*(3-F)&63));var P=v.charAt(64);if(P)for(;b.length%4;)b.push(P);return b.join("")},parse:function(u){var c=u.length,d=this._map,v=this._reverseMap;if(!v){v=this._reverseMap=[];for(var b=0;b<d.length;b++)v[d.charCodeAt(b)]=b}var M=d.charAt(64);if(M){var B=u.indexOf(M);B!==-1&&(c=B)}return x(u,c,v)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function x(u,c,d){for(var v=[],b=0,M=0;M<c;M++)if(M%4){var B=d[u.charCodeAt(M-1)]<<M%4*2,R=d[u.charCodeAt(M)]>>>6-M%4*2,k=B|R;v[b>>>2]|=k<<24-b%4*8,b++}return n.create(v,b)}}(),t.enc.Base64})}($r)),$r.exports}var Hr={exports:{}},vn;function Ta(){return vn||(vn=1,function(i,e){(function(t,r){i.exports=r(We())})(ke,function(t){return function(){var r=t,a=r.lib,n=a.WordArray,y=r.enc;y.Base64url={stringify:function(u,c){c===void 0&&(c=!0);var d=u.words,v=u.sigBytes,b=c?this._safe_map:this._map;u.clamp();for(var M=[],B=0;B<v;B+=3)for(var R=d[B>>>2]>>>24-B%4*8&255,k=d[B+1>>>2]>>>24-(B+1)%4*8&255,q=d[B+2>>>2]>>>24-(B+2)%4*8&255,F=R<<16|k<<8|q,P=0;P<4&&B+P*.75<v;P++)M.push(b.charAt(F>>>6*(3-P)&63));var O=b.charAt(64);if(O)for(;M.length%4;)M.push(O);return M.join("")},parse:function(u,c){c===void 0&&(c=!0);var d=u.length,v=c?this._safe_map:this._map,b=this._reverseMap;if(!b){b=this._reverseMap=[];for(var M=0;M<v.length;M++)b[v.charCodeAt(M)]=M}var B=v.charAt(64);if(B){var R=u.indexOf(B);R!==-1&&(d=R)}return x(u,d,b)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function x(u,c,d){for(var v=[],b=0,M=0;M<c;M++)if(M%4){var B=d[u.charCodeAt(M-1)]<<M%4*2,R=d[u.charCodeAt(M)]>>>6-M%4*2,k=B|R;v[b>>>2]|=k<<24-b%4*8,b++}return n.create(v,b)}}(),t.enc.Base64url})}(Hr)),Hr.exports}var Ur={exports:{}},bn;function Pt(){return bn||(bn=1,function(i,e){(function(t,r){i.exports=r(We())})(ke,function(t){return function(r){var a=t,n=a.lib,y=n.WordArray,x=n.Hasher,u=a.algo,c=[];(function(){for(var R=0;R<64;R++)c[R]=r.abs(r.sin(R+1))*4294967296|0})();var d=u.MD5=x.extend({_doReset:function(){this._hash=new y.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(R,k){for(var q=0;q<16;q++){var F=k+q,P=R[F];R[F]=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360}var O=this._hash.words,H=R[k+0],U=R[k+1],K=R[k+2],X=R[k+3],Q=R[k+4],$=R[k+5],_=R[k+6],f=R[k+7],h=R[k+8],p=R[k+9],g=R[k+10],E=R[k+11],I=R[k+12],T=R[k+13],S=R[k+14],o=R[k+15],A=O[0],Y=O[1],j=O[2],W=O[3];A=v(A,Y,j,W,H,7,c[0]),W=v(W,A,Y,j,U,12,c[1]),j=v(j,W,A,Y,K,17,c[2]),Y=v(Y,j,W,A,X,22,c[3]),A=v(A,Y,j,W,Q,7,c[4]),W=v(W,A,Y,j,$,12,c[5]),j=v(j,W,A,Y,_,17,c[6]),Y=v(Y,j,W,A,f,22,c[7]),A=v(A,Y,j,W,h,7,c[8]),W=v(W,A,Y,j,p,12,c[9]),j=v(j,W,A,Y,g,17,c[10]),Y=v(Y,j,W,A,E,22,c[11]),A=v(A,Y,j,W,I,7,c[12]),W=v(W,A,Y,j,T,12,c[13]),j=v(j,W,A,Y,S,17,c[14]),Y=v(Y,j,W,A,o,22,c[15]),A=b(A,Y,j,W,U,5,c[16]),W=b(W,A,Y,j,_,9,c[17]),j=b(j,W,A,Y,E,14,c[18]),Y=b(Y,j,W,A,H,20,c[19]),A=b(A,Y,j,W,$,5,c[20]),W=b(W,A,Y,j,g,9,c[21]),j=b(j,W,A,Y,o,14,c[22]),Y=b(Y,j,W,A,Q,20,c[23]),A=b(A,Y,j,W,p,5,c[24]),W=b(W,A,Y,j,S,9,c[25]),j=b(j,W,A,Y,X,14,c[26]),Y=b(Y,j,W,A,h,20,c[27]),A=b(A,Y,j,W,T,5,c[28]),W=b(W,A,Y,j,K,9,c[29]),j=b(j,W,A,Y,f,14,c[30]),Y=b(Y,j,W,A,I,20,c[31]),A=M(A,Y,j,W,$,4,c[32]),W=M(W,A,Y,j,h,11,c[33]),j=M(j,W,A,Y,E,16,c[34]),Y=M(Y,j,W,A,S,23,c[35]),A=M(A,Y,j,W,U,4,c[36]),W=M(W,A,Y,j,Q,11,c[37]),j=M(j,W,A,Y,f,16,c[38]),Y=M(Y,j,W,A,g,23,c[39]),A=M(A,Y,j,W,T,4,c[40]),W=M(W,A,Y,j,H,11,c[41]),j=M(j,W,A,Y,X,16,c[42]),Y=M(Y,j,W,A,_,23,c[43]),A=M(A,Y,j,W,p,4,c[44]),W=M(W,A,Y,j,I,11,c[45]),j=M(j,W,A,Y,o,16,c[46]),Y=M(Y,j,W,A,K,23,c[47]),A=B(A,Y,j,W,H,6,c[48]),W=B(W,A,Y,j,f,10,c[49]),j=B(j,W,A,Y,S,15,c[50]),Y=B(Y,j,W,A,$,21,c[51]),A=B(A,Y,j,W,I,6,c[52]),W=B(W,A,Y,j,X,10,c[53]),j=B(j,W,A,Y,g,15,c[54]),Y=B(Y,j,W,A,U,21,c[55]),A=B(A,Y,j,W,h,6,c[56]),W=B(W,A,Y,j,o,10,c[57]),j=B(j,W,A,Y,_,15,c[58]),Y=B(Y,j,W,A,T,21,c[59]),A=B(A,Y,j,W,Q,6,c[60]),W=B(W,A,Y,j,E,10,c[61]),j=B(j,W,A,Y,K,15,c[62]),Y=B(Y,j,W,A,p,21,c[63]),O[0]=O[0]+A|0,O[1]=O[1]+Y|0,O[2]=O[2]+j|0,O[3]=O[3]+W|0},_doFinalize:function(){var R=this._data,k=R.words,q=this._nDataBytes*8,F=R.sigBytes*8;k[F>>>5]|=128<<24-F%32;var P=r.floor(q/4294967296),O=q;k[(F+64>>>9<<4)+15]=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360,k[(F+64>>>9<<4)+14]=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,R.sigBytes=(k.length+1)*4,this._process();for(var H=this._hash,U=H.words,K=0;K<4;K++){var X=U[K];U[K]=(X<<8|X>>>24)&16711935|(X<<24|X>>>8)&4278255360}return H},clone:function(){var R=x.clone.call(this);return R._hash=this._hash.clone(),R}});function v(R,k,q,F,P,O,H){var U=R+(k&q|~k&F)+P+H;return(U<<O|U>>>32-O)+k}function b(R,k,q,F,P,O,H){var U=R+(k&F|q&~F)+P+H;return(U<<O|U>>>32-O)+k}function M(R,k,q,F,P,O,H){var U=R+(k^q^F)+P+H;return(U<<O|U>>>32-O)+k}function B(R,k,q,F,P,O,H){var U=R+(q^(k|~F))+P+H;return(U<<O|U>>>32-O)+k}a.MD5=x._createHelper(d),a.HmacMD5=x._createHmacHelper(d)}(Math),t.MD5})}(Ur)),Ur.exports}var Wr={exports:{}},pn;function gf(){return pn||(pn=1,function(i,e){(function(t,r){i.exports=r(We())})(ke,function(t){return function(){var r=t,a=r.lib,n=a.WordArray,y=a.Hasher,x=r.algo,u=[],c=x.SHA1=y.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(d,v){for(var b=this._hash.words,M=b[0],B=b[1],R=b[2],k=b[3],q=b[4],F=0;F<80;F++){if(F<16)u[F]=d[v+F]|0;else{var P=u[F-3]^u[F-8]^u[F-14]^u[F-16];u[F]=P<<1|P>>>31}var O=(M<<5|M>>>27)+q+u[F];F<20?O+=(B&R|~B&k)+1518500249:F<40?O+=(B^R^k)+1859775393:F<60?O+=(B&R|B&k|R&k)-1894007588:O+=(B^R^k)-899497514,q=k,k=R,R=B<<30|B>>>2,B=M,M=O}b[0]=b[0]+M|0,b[1]=b[1]+B|0,b[2]=b[2]+R|0,b[3]=b[3]+k|0,b[4]=b[4]+q|0},_doFinalize:function(){var d=this._data,v=d.words,b=this._nDataBytes*8,M=d.sigBytes*8;return v[M>>>5]|=128<<24-M%32,v[(M+64>>>9<<4)+14]=Math.floor(b/4294967296),v[(M+64>>>9<<4)+15]=b,d.sigBytes=v.length*4,this._process(),this._hash},clone:function(){var d=y.clone.call(this);return d._hash=this._hash.clone(),d}});r.SHA1=y._createHelper(c),r.HmacSHA1=y._createHmacHelper(c)}(),t.SHA1})}(Wr)),Wr.exports}var Yr={exports:{}},yn;function Hi(){return yn||(yn=1,function(i,e){(function(t,r){i.exports=r(We())})(ke,function(t){return function(r){var a=t,n=a.lib,y=n.WordArray,x=n.Hasher,u=a.algo,c=[],d=[];(function(){function M(q){for(var F=r.sqrt(q),P=2;P<=F;P++)if(!(q%P))return!1;return!0}function B(q){return(q-(q|0))*4294967296|0}for(var R=2,k=0;k<64;)M(R)&&(k<8&&(c[k]=B(r.pow(R,1/2))),d[k]=B(r.pow(R,1/3)),k++),R++})();var v=[],b=u.SHA256=x.extend({_doReset:function(){this._hash=new y.init(c.slice(0))},_doProcessBlock:function(M,B){for(var R=this._hash.words,k=R[0],q=R[1],F=R[2],P=R[3],O=R[4],H=R[5],U=R[6],K=R[7],X=0;X<64;X++){if(X<16)v[X]=M[B+X]|0;else{var Q=v[X-15],$=(Q<<25|Q>>>7)^(Q<<14|Q>>>18)^Q>>>3,_=v[X-2],f=(_<<15|_>>>17)^(_<<13|_>>>19)^_>>>10;v[X]=$+v[X-7]+f+v[X-16]}var h=O&H^~O&U,p=k&q^k&F^q&F,g=(k<<30|k>>>2)^(k<<19|k>>>13)^(k<<10|k>>>22),E=(O<<26|O>>>6)^(O<<21|O>>>11)^(O<<7|O>>>25),I=K+E+h+d[X]+v[X],T=g+p;K=U,U=H,H=O,O=P+I|0,P=F,F=q,q=k,k=I+T|0}R[0]=R[0]+k|0,R[1]=R[1]+q|0,R[2]=R[2]+F|0,R[3]=R[3]+P|0,R[4]=R[4]+O|0,R[5]=R[5]+H|0,R[6]=R[6]+U|0,R[7]=R[7]+K|0},_doFinalize:function(){var M=this._data,B=M.words,R=this._nDataBytes*8,k=M.sigBytes*8;return B[k>>>5]|=128<<24-k%32,B[(k+64>>>9<<4)+14]=r.floor(R/4294967296),B[(k+64>>>9<<4)+15]=R,M.sigBytes=B.length*4,this._process(),this._hash},clone:function(){var M=x.clone.call(this);return M._hash=this._hash.clone(),M}});a.SHA256=x._createHelper(b),a.HmacSHA256=x._createHmacHelper(b)}(Math),t.SHA256})}(Yr)),Yr.exports}var jr={exports:{}},gn;function Oa(){return gn||(gn=1,function(i,e){(function(t,r,a){i.exports=r(We(),Hi())})(ke,function(t){return function(){var r=t,a=r.lib,n=a.WordArray,y=r.algo,x=y.SHA256,u=y.SHA224=x.extend({_doReset:function(){this._hash=new n.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=x._doFinalize.call(this);return c.sigBytes-=4,c}});r.SHA224=x._createHelper(u),r.HmacSHA224=x._createHmacHelper(u)}(),t.SHA224})}(jr)),jr.exports}var Kr={exports:{}},mn;function mf(){return mn||(mn=1,function(i,e){(function(t,r,a){i.exports=r(We(),wr())})(ke,function(t){return function(){var r=t,a=r.lib,n=a.Hasher,y=r.x64,x=y.Word,u=y.WordArray,c=r.algo;function d(){return x.create.apply(x,arguments)}var v=[d(1116352408,3609767458),d(1899447441,602891725),d(3049323471,3964484399),d(3921009573,2173295548),d(961987163,4081628472),d(1508970993,3053834265),d(2453635748,2937671579),d(2870763221,3664609560),d(3624381080,2734883394),d(310598401,1164996542),d(607225278,1323610764),d(1426881987,3590304994),d(1925078388,4068182383),d(2162078206,991336113),d(2614888103,633803317),d(3248222580,3479774868),d(3835390401,2666613458),d(4022224774,944711139),d(264347078,2341262773),d(604807628,2007800933),d(770255983,1495990901),d(1249150122,1856431235),d(1555081692,3175218132),d(1996064986,2198950837),d(2554220882,3999719339),d(2821834349,766784016),d(2952996808,2566594879),d(3210313671,3203337956),d(3336571891,1034457026),d(3584528711,2466948901),d(113926993,3758326383),d(338241895,168717936),d(666307205,1188179964),d(773529912,1546045734),d(1294757372,1522805485),d(1396182291,2643833823),d(1695183700,2343527390),d(1986661051,1014477480),d(2177026350,1206759142),d(2456956037,344077627),d(2730485921,1290863460),d(2820302411,3158454273),d(3259730800,3505952657),d(3345764771,106217008),d(3516065817,3606008344),d(3600352804,1432725776),d(4094571909,1467031594),d(275423344,851169720),d(430227734,3100823752),d(506948616,1363258195),d(659060556,3750685593),d(883997877,3785050280),d(958139571,3318307427),d(1322822218,3812723403),d(1537002063,2003034995),d(1747873779,3602036899),d(1955562222,1575990012),d(2024104815,1125592928),d(2227730452,2716904306),d(2361852424,442776044),d(2428436474,593698344),d(2756734187,3733110249),d(3204031479,2999351573),d(3329325298,3815920427),d(3391569614,3928383900),d(3515267271,566280711),d(3940187606,3454069534),d(4118630271,4000239992),d(116418474,1914138554),d(174292421,2731055270),d(289380356,3203993006),d(460393269,320620315),d(685471733,587496836),d(852142971,1086792851),d(1017036298,365543100),d(1126000580,2618297676),d(1288033470,3409855158),d(1501505948,4234509866),d(1607167915,987167468),d(1816402316,1246189591)],b=[];(function(){for(var B=0;B<80;B++)b[B]=d()})();var M=c.SHA512=n.extend({_doReset:function(){this._hash=new u.init([new x.init(1779033703,4089235720),new x.init(3144134277,2227873595),new x.init(1013904242,4271175723),new x.init(2773480762,1595750129),new x.init(1359893119,2917565137),new x.init(2600822924,725511199),new x.init(528734635,4215389547),new x.init(1541459225,327033209)])},_doProcessBlock:function(B,R){for(var k=this._hash.words,q=k[0],F=k[1],P=k[2],O=k[3],H=k[4],U=k[5],K=k[6],X=k[7],Q=q.high,$=q.low,_=F.high,f=F.low,h=P.high,p=P.low,g=O.high,E=O.low,I=H.high,T=H.low,S=U.high,o=U.low,A=K.high,Y=K.low,j=X.high,W=X.low,J=Q,se=$,Ee=_,ge=f,Ce=h,we=p,_0=g,Pe=E,Me=I,A0=T,Ge=S,Ye=o,Y0=A,Qe=Y,Ne=j,N0=W,qe=0;qe<80;qe++){var Fe,D0,Je=b[qe];if(qe<16)D0=Je.high=B[R+qe*2]|0,Fe=Je.low=B[R+qe*2+1]|0;else{var i0=b[qe-15],F0=i0.high,Le=i0.low,u0=(F0>>>1|Le<<31)^(F0>>>8|Le<<24)^F0>>>7,J0=(Le>>>1|F0<<31)^(Le>>>8|F0<<24)^(Le>>>7|F0<<25),l0=b[qe-2],He=l0.high,L0=l0.low,a0=(He>>>19|L0<<13)^(He<<3|L0>>>29)^He>>>6,r0=(L0>>>19|He<<13)^(L0<<3|He>>>29)^(L0>>>6|He<<26),$0=b[qe-7],n0=$0.high,s0=$0.low,j0=b[qe-16],e0=j0.high,f0=j0.low;Fe=J0+s0,D0=u0+n0+(Fe>>>0<J0>>>0?1:0),Fe=Fe+r0,D0=D0+a0+(Fe>>>0<r0>>>0?1:0),Fe=Fe+f0,D0=D0+e0+(Fe>>>0<f0>>>0?1:0),Je.high=D0,Je.low=Fe}var H0=Me&Ge^~Me&Y0,o0=A0&Ye^~A0&Qe,x0=J&Ee^J&Ce^Ee&Ce,R0=se&ge^se&we^ge&we,t0=(J>>>28|se<<4)^(J<<30|se>>>2)^(J<<25|se>>>7),Ve=(se>>>28|J<<4)^(se<<30|J>>>2)^(se<<25|J>>>7),it=(Me>>>14|A0<<18)^(Me>>>18|A0<<14)^(Me<<23|A0>>>9),c0=(A0>>>14|Me<<18)^(A0>>>18|Me<<14)^(A0<<23|Me>>>9),d0=v[qe],gt=d0.high,Oe=d0.low,Ie=N0+c0,l=Ne+it+(Ie>>>0<N0>>>0?1:0),Ie=Ie+o0,l=l+H0+(Ie>>>0<o0>>>0?1:0),Ie=Ie+Oe,l=l+gt+(Ie>>>0<Oe>>>0?1:0),Ie=Ie+Fe,l=l+D0+(Ie>>>0<Fe>>>0?1:0),C=Ve+R0,w=t0+x0+(C>>>0<Ve>>>0?1:0);Ne=Y0,N0=Qe,Y0=Ge,Qe=Ye,Ge=Me,Ye=A0,A0=Pe+Ie|0,Me=_0+l+(A0>>>0<Pe>>>0?1:0)|0,_0=Ce,Pe=we,Ce=Ee,we=ge,Ee=J,ge=se,se=Ie+C|0,J=l+w+(se>>>0<Ie>>>0?1:0)|0}$=q.low=$+se,q.high=Q+J+($>>>0<se>>>0?1:0),f=F.low=f+ge,F.high=_+Ee+(f>>>0<ge>>>0?1:0),p=P.low=p+we,P.high=h+Ce+(p>>>0<we>>>0?1:0),E=O.low=E+Pe,O.high=g+_0+(E>>>0<Pe>>>0?1:0),T=H.low=T+A0,H.high=I+Me+(T>>>0<A0>>>0?1:0),o=U.low=o+Ye,U.high=S+Ge+(o>>>0<Ye>>>0?1:0),Y=K.low=Y+Qe,K.high=A+Y0+(Y>>>0<Qe>>>0?1:0),W=X.low=W+N0,X.high=j+Ne+(W>>>0<N0>>>0?1:0)},_doFinalize:function(){var B=this._data,R=B.words,k=this._nDataBytes*8,q=B.sigBytes*8;R[q>>>5]|=128<<24-q%32,R[(q+128>>>10<<5)+30]=Math.floor(k/4294967296),R[(q+128>>>10<<5)+31]=k,B.sigBytes=R.length*4,this._process();var F=this._hash.toX32();return F},clone:function(){var B=n.clone.call(this);return B._hash=this._hash.clone(),B},blockSize:1024/32});r.SHA512=n._createHelper(M),r.HmacSHA512=n._createHmacHelper(M)}(),t.SHA512})}(Kr)),Kr.exports}var Vr={exports:{}},_n;function za(){return _n||(_n=1,function(i,e){(function(t,r,a){i.exports=r(We(),wr(),mf())})(ke,function(t){return function(){var r=t,a=r.x64,n=a.Word,y=a.WordArray,x=r.algo,u=x.SHA512,c=x.SHA384=u.extend({_doReset:function(){this._hash=new y.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var d=u._doFinalize.call(this);return d.sigBytes-=16,d}});r.SHA384=u._createHelper(c),r.HmacSHA384=u._createHmacHelper(c)}(),t.SHA384})}(Vr)),Vr.exports}var Xr={exports:{}},An;function Na(){return An||(An=1,function(i,e){(function(t,r,a){i.exports=r(We(),wr())})(ke,function(t){return function(r){var a=t,n=a.lib,y=n.WordArray,x=n.Hasher,u=a.x64,c=u.Word,d=a.algo,v=[],b=[],M=[];(function(){for(var k=1,q=0,F=0;F<24;F++){v[k+5*q]=(F+1)*(F+2)/2%64;var P=q%5,O=(2*k+3*q)%5;k=P,q=O}for(var k=0;k<5;k++)for(var q=0;q<5;q++)b[k+5*q]=q+(2*k+3*q)%5*5;for(var H=1,U=0;U<24;U++){for(var K=0,X=0,Q=0;Q<7;Q++){if(H&1){var $=(1<<Q)-1;$<32?X^=1<<$:K^=1<<$-32}H&128?H=H<<1^113:H<<=1}M[U]=c.create(K,X)}})();var B=[];(function(){for(var k=0;k<25;k++)B[k]=c.create()})();var R=d.SHA3=x.extend({cfg:x.cfg.extend({outputLength:512}),_doReset:function(){for(var k=this._state=[],q=0;q<25;q++)k[q]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(k,q){for(var F=this._state,P=this.blockSize/2,O=0;O<P;O++){var H=k[q+2*O],U=k[q+2*O+1];H=(H<<8|H>>>24)&16711935|(H<<24|H>>>8)&4278255360,U=(U<<8|U>>>24)&16711935|(U<<24|U>>>8)&4278255360;var K=F[O];K.high^=U,K.low^=H}for(var X=0;X<24;X++){for(var Q=0;Q<5;Q++){for(var $=0,_=0,f=0;f<5;f++){var K=F[Q+5*f];$^=K.high,_^=K.low}var h=B[Q];h.high=$,h.low=_}for(var Q=0;Q<5;Q++)for(var p=B[(Q+4)%5],g=B[(Q+1)%5],E=g.high,I=g.low,$=p.high^(E<<1|I>>>31),_=p.low^(I<<1|E>>>31),f=0;f<5;f++){var K=F[Q+5*f];K.high^=$,K.low^=_}for(var T=1;T<25;T++){var $,_,K=F[T],S=K.high,o=K.low,A=v[T];A<32?($=S<<A|o>>>32-A,_=o<<A|S>>>32-A):($=o<<A-32|S>>>64-A,_=S<<A-32|o>>>64-A);var Y=B[b[T]];Y.high=$,Y.low=_}var j=B[0],W=F[0];j.high=W.high,j.low=W.low;for(var Q=0;Q<5;Q++)for(var f=0;f<5;f++){var T=Q+5*f,K=F[T],J=B[T],se=B[(Q+1)%5+5*f],Ee=B[(Q+2)%5+5*f];K.high=J.high^~se.high&Ee.high,K.low=J.low^~se.low&Ee.low}var K=F[0],ge=M[X];K.high^=ge.high,K.low^=ge.low}},_doFinalize:function(){var k=this._data,q=k.words;this._nDataBytes*8;var F=k.sigBytes*8,P=this.blockSize*32;q[F>>>5]|=1<<24-F%32,q[(r.ceil((F+1)/P)*P>>>5)-1]|=128,k.sigBytes=q.length*4,this._process();for(var O=this._state,H=this.cfg.outputLength/8,U=H/8,K=[],X=0;X<U;X++){var Q=O[X],$=Q.high,_=Q.low;$=($<<8|$>>>24)&16711935|($<<24|$>>>8)&4278255360,_=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,K.push(_),K.push($)}return new y.init(K,H)},clone:function(){for(var k=x.clone.call(this),q=k._state=this._state.slice(0),F=0;F<25;F++)q[F]=q[F].clone();return k}});a.SHA3=x._createHelper(R),a.HmacSHA3=x._createHmacHelper(R)}(Math),t.SHA3})}(Xr)),Xr.exports}var Zr={exports:{}},En;function qa(){return En||(En=1,function(i,e){(function(t,r){i.exports=r(We())})(ke,function(t){/** @preserve
38
+ */var ma={L:rr.QrCode.Ecc.LOW,M:rr.QrCode.Ecc.MEDIUM,Q:rr.QrCode.Ecc.QUARTILE,H:rr.QrCode.Ecc.HIGH},_a=128,Aa="L",Ea="#FFFFFF",wa="#000000",Ba=!1,vf=4,Ca=.1;function Ma(i,e=0){const t=[];return i.forEach(function(r,a){let n=null;r.forEach(function(y,x){if(!y&&n!==null){t.push(`M${n+e} ${a+e}h${x-n}v1H${n+e}z`),n=null;return}if(x===r.length-1){if(!y)return;n===null?t.push(`M${x+e},${a+e} h1v1H${x+e}z`):t.push(`M${n+e},${a+e} h${x+1-n}v1H${n+e}z`);return}y&&n===null&&(n=x)})}),t.join("")}function Sa(i,e){return i.slice().map((t,r)=>r<e.y||r>=e.y+e.h?t:t.map((a,n)=>n<e.x||n>=e.x+e.w?a:!1))}function Da(i,e,t,r){if(r==null)return null;const a=t?vf:0,n=i.length+a*2,y=Math.floor(e*Ca),x=n/e,u=(r.width||y)*x,c=(r.height||y)*x,d=r.x==null?i.length/2-u/2:r.x*x,v=r.y==null?i.length/2-c/2:r.y*x;let b=null;if(r.excavate){let M=Math.floor(d),B=Math.floor(v),R=Math.ceil(u+d-M),k=Math.ceil(c+v-B);b={x:M,y:B,w:R,h:k}}return{x:d,y:v,h:c,w:u,excavation:b}}var Fa=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}();function bf(i){const e=i,{value:t,size:r=_a,level:a=Aa,bgColor:n=Ea,fgColor:y=wa,includeMargin:x=Ba,style:u,imageSettings:c}=e,d=ga(e,["value","size","level","bgColor","fgColor","includeMargin","style","imageSettings"]),v=c==null?void 0:c.src,b=O0.useRef(null),M=O0.useRef(null),[B,R]=O0.useState(!1);O0.useEffect(()=>{if(b.current!=null){const F=b.current,P=F.getContext("2d");if(!P)return;let O=rr.QrCode.encodeText(t,ma[a]).getModules();const H=x?vf:0,U=O.length+H*2,K=Da(O,r,x,c),X=M.current,Q=K!=null&&X!==null&&X.complete&&X.naturalHeight!==0&&X.naturalWidth!==0;Q&&K.excavation!=null&&(O=Sa(O,K.excavation));const $=window.devicePixelRatio||1;F.height=F.width=r*$;const _=r/U*$;P.scale(_,_),P.fillStyle=n,P.fillRect(0,0,U,U),P.fillStyle=y,Fa?P.fill(new Path2D(Ma(O,H))):O.forEach(function(f,h){f.forEach(function(p,g){p&&P.fillRect(g+H,h+H,1,1)})}),Q&&P.drawImage(X,K.x+H,K.y+H,K.w,K.h)}}),O0.useEffect(()=>{R(!1)},[v]);const k=cn({height:r,width:r},u);let q=null;return v!=null&&(q=tr.default.createElement("img",{src:v,key:v,style:{display:"none"},onLoad:()=>{R(!0)},ref:M})),tr.default.createElement(tr.default.Fragment,null,tr.default.createElement("canvas",cn({style:k,height:r,width:r,ref:b},d)),q)}var pf={exports:{}};function yf(i){throw new Error('Could not dynamically require "'+i+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Nr={exports:{}};const Ra={},ka=Object.freeze(Object.defineProperty({__proto__:null,default:Ra},Symbol.toStringTag,{value:"Module"})),wr=hf(ka);var dn;function We(){return dn||(dn=1,function(i,e){(function(t,r){i.exports=r()})(ke,function(){var t=t||function(r,a){var n;if(typeof window<"u"&&window.crypto&&(n=window.crypto),typeof self<"u"&&self.crypto&&(n=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(n=globalThis.crypto),!n&&typeof window<"u"&&window.msCrypto&&(n=window.msCrypto),!n&&typeof ke<"u"&&ke.crypto&&(n=ke.crypto),!n&&typeof yf=="function")try{n=wr}catch{}var y=function(){if(n){if(typeof n.getRandomValues=="function")try{return n.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof n.randomBytes=="function")try{return n.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},x=Object.create||function(){function F(){}return function(P){var O;return F.prototype=P,O=new F,F.prototype=null,O}}(),u={},c=u.lib={},d=c.Base=function(){return{extend:function(F){var P=x(this);return F&&P.mixIn(F),(!P.hasOwnProperty("init")||this.init===P.init)&&(P.init=function(){P.$super.init.apply(this,arguments)}),P.init.prototype=P,P.$super=this,P},create:function(){var F=this.extend();return F.init.apply(F,arguments),F},init:function(){},mixIn:function(F){for(var P in F)F.hasOwnProperty(P)&&(this[P]=F[P]);F.hasOwnProperty("toString")&&(this.toString=F.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),v=c.WordArray=d.extend({init:function(F,P){F=this.words=F||[],P!=a?this.sigBytes=P:this.sigBytes=F.length*4},toString:function(F){return(F||M).stringify(this)},concat:function(F){var P=this.words,O=F.words,H=this.sigBytes,U=F.sigBytes;if(this.clamp(),H%4)for(var K=0;K<U;K++){var X=O[K>>>2]>>>24-K%4*8&255;P[H+K>>>2]|=X<<24-(H+K)%4*8}else for(var Q=0;Q<U;Q+=4)P[H+Q>>>2]=O[Q>>>2];return this.sigBytes+=U,this},clamp:function(){var F=this.words,P=this.sigBytes;F[P>>>2]&=4294967295<<32-P%4*8,F.length=r.ceil(P/4)},clone:function(){var F=d.clone.call(this);return F.words=this.words.slice(0),F},random:function(F){for(var P=[],O=0;O<F;O+=4)P.push(y());return new v.init(P,F)}}),b=u.enc={},M=b.Hex={stringify:function(F){for(var P=F.words,O=F.sigBytes,H=[],U=0;U<O;U++){var K=P[U>>>2]>>>24-U%4*8&255;H.push((K>>>4).toString(16)),H.push((K&15).toString(16))}return H.join("")},parse:function(F){for(var P=F.length,O=[],H=0;H<P;H+=2)O[H>>>3]|=parseInt(F.substr(H,2),16)<<24-H%8*4;return new v.init(O,P/2)}},B=b.Latin1={stringify:function(F){for(var P=F.words,O=F.sigBytes,H=[],U=0;U<O;U++){var K=P[U>>>2]>>>24-U%4*8&255;H.push(String.fromCharCode(K))}return H.join("")},parse:function(F){for(var P=F.length,O=[],H=0;H<P;H++)O[H>>>2]|=(F.charCodeAt(H)&255)<<24-H%4*8;return new v.init(O,P)}},R=b.Utf8={stringify:function(F){try{return decodeURIComponent(escape(B.stringify(F)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(F){return B.parse(unescape(encodeURIComponent(F)))}},k=c.BufferedBlockAlgorithm=d.extend({reset:function(){this._data=new v.init,this._nDataBytes=0},_append:function(F){typeof F=="string"&&(F=R.parse(F)),this._data.concat(F),this._nDataBytes+=F.sigBytes},_process:function(F){var P,O=this._data,H=O.words,U=O.sigBytes,K=this.blockSize,X=K*4,Q=U/X;F?Q=r.ceil(Q):Q=r.max((Q|0)-this._minBufferSize,0);var $=Q*K,_=r.min($*4,U);if($){for(var f=0;f<$;f+=K)this._doProcessBlock(H,f);P=H.splice(0,$),O.sigBytes-=_}return new v.init(P,_)},clone:function(){var F=d.clone.call(this);return F._data=this._data.clone(),F},_minBufferSize:0});c.Hasher=k.extend({cfg:d.extend(),init:function(F){this.cfg=this.cfg.extend(F),this.reset()},reset:function(){k.reset.call(this),this._doReset()},update:function(F){return this._append(F),this._process(),this},finalize:function(F){F&&this._append(F);var P=this._doFinalize();return P},blockSize:16,_createHelper:function(F){return function(P,O){return new F.init(O).finalize(P)}},_createHmacHelper:function(F){return function(P,O){return new q.HMAC.init(F,O).finalize(P)}}});var q=u.algo={};return u}(Math);return t})}(Nr)),Nr.exports}var qr={exports:{}},hn;function Br(){return hn||(hn=1,function(i,e){(function(t,r){i.exports=r(We())})(ke,function(t){return function(r){var a=t,n=a.lib,y=n.Base,x=n.WordArray,u=a.x64={};u.Word=y.extend({init:function(c,d){this.high=c,this.low=d}}),u.WordArray=y.extend({init:function(c,d){c=this.words=c||[],d!=r?this.sigBytes=d:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,d=c.length,v=[],b=0;b<d;b++){var M=c[b];v.push(M.high),v.push(M.low)}return x.create(v,this.sigBytes)},clone:function(){for(var c=y.clone.call(this),d=c.words=this.words.slice(0),v=d.length,b=0;b<v;b++)d[b]=d[b].clone();return c}})}(),t})}(qr)),qr.exports}var Lr={exports:{}},un;function Pa(){return un||(un=1,function(i,e){(function(t,r){i.exports=r(We())})(ke,function(t){return function(){if(typeof ArrayBuffer=="function"){var r=t,a=r.lib,n=a.WordArray,y=n.init,x=n.init=function(u){if(u instanceof ArrayBuffer&&(u=new Uint8Array(u)),(u instanceof Int8Array||typeof Uint8ClampedArray<"u"&&u instanceof Uint8ClampedArray||u instanceof Int16Array||u instanceof Uint16Array||u instanceof Int32Array||u instanceof Uint32Array||u instanceof Float32Array||u instanceof Float64Array)&&(u=new Uint8Array(u.buffer,u.byteOffset,u.byteLength)),u instanceof Uint8Array){for(var c=u.byteLength,d=[],v=0;v<c;v++)d[v>>>2]|=u[v]<<24-v%4*8;y.call(this,d,c)}else y.apply(this,arguments)};x.prototype=n}}(),t.lib.WordArray})}(Lr)),Lr.exports}var $r={exports:{}},ln;function Ia(){return ln||(ln=1,function(i,e){(function(t,r){i.exports=r(We())})(ke,function(t){return function(){var r=t,a=r.lib,n=a.WordArray,y=r.enc;y.Utf16=y.Utf16BE={stringify:function(u){for(var c=u.words,d=u.sigBytes,v=[],b=0;b<d;b+=2){var M=c[b>>>2]>>>16-b%4*8&65535;v.push(String.fromCharCode(M))}return v.join("")},parse:function(u){for(var c=u.length,d=[],v=0;v<c;v++)d[v>>>1]|=u.charCodeAt(v)<<16-v%2*16;return n.create(d,c*2)}},y.Utf16LE={stringify:function(u){for(var c=u.words,d=u.sigBytes,v=[],b=0;b<d;b+=2){var M=x(c[b>>>2]>>>16-b%4*8&65535);v.push(String.fromCharCode(M))}return v.join("")},parse:function(u){for(var c=u.length,d=[],v=0;v<c;v++)d[v>>>1]|=x(u.charCodeAt(v)<<16-v%2*16);return n.create(d,c*2)}};function x(u){return u<<8&4278255360|u>>>8&16711935}}(),t.enc.Utf16})}($r)),$r.exports}var Hr={exports:{}},xn;function kt(){return xn||(xn=1,function(i,e){(function(t,r){i.exports=r(We())})(ke,function(t){return function(){var r=t,a=r.lib,n=a.WordArray,y=r.enc;y.Base64={stringify:function(u){var c=u.words,d=u.sigBytes,v=this._map;u.clamp();for(var b=[],M=0;M<d;M+=3)for(var B=c[M>>>2]>>>24-M%4*8&255,R=c[M+1>>>2]>>>24-(M+1)%4*8&255,k=c[M+2>>>2]>>>24-(M+2)%4*8&255,q=B<<16|R<<8|k,F=0;F<4&&M+F*.75<d;F++)b.push(v.charAt(q>>>6*(3-F)&63));var P=v.charAt(64);if(P)for(;b.length%4;)b.push(P);return b.join("")},parse:function(u){var c=u.length,d=this._map,v=this._reverseMap;if(!v){v=this._reverseMap=[];for(var b=0;b<d.length;b++)v[d.charCodeAt(b)]=b}var M=d.charAt(64);if(M){var B=u.indexOf(M);B!==-1&&(c=B)}return x(u,c,v)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function x(u,c,d){for(var v=[],b=0,M=0;M<c;M++)if(M%4){var B=d[u.charCodeAt(M-1)]<<M%4*2,R=d[u.charCodeAt(M)]>>>6-M%4*2,k=B|R;v[b>>>2]|=k<<24-b%4*8,b++}return n.create(v,b)}}(),t.enc.Base64})}(Hr)),Hr.exports}var Ur={exports:{}},vn;function Ta(){return vn||(vn=1,function(i,e){(function(t,r){i.exports=r(We())})(ke,function(t){return function(){var r=t,a=r.lib,n=a.WordArray,y=r.enc;y.Base64url={stringify:function(u,c){c===void 0&&(c=!0);var d=u.words,v=u.sigBytes,b=c?this._safe_map:this._map;u.clamp();for(var M=[],B=0;B<v;B+=3)for(var R=d[B>>>2]>>>24-B%4*8&255,k=d[B+1>>>2]>>>24-(B+1)%4*8&255,q=d[B+2>>>2]>>>24-(B+2)%4*8&255,F=R<<16|k<<8|q,P=0;P<4&&B+P*.75<v;P++)M.push(b.charAt(F>>>6*(3-P)&63));var O=b.charAt(64);if(O)for(;M.length%4;)M.push(O);return M.join("")},parse:function(u,c){c===void 0&&(c=!0);var d=u.length,v=c?this._safe_map:this._map,b=this._reverseMap;if(!b){b=this._reverseMap=[];for(var M=0;M<v.length;M++)b[v.charCodeAt(M)]=M}var B=v.charAt(64);if(B){var R=u.indexOf(B);R!==-1&&(d=R)}return x(u,d,b)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function x(u,c,d){for(var v=[],b=0,M=0;M<c;M++)if(M%4){var B=d[u.charCodeAt(M-1)]<<M%4*2,R=d[u.charCodeAt(M)]>>>6-M%4*2,k=B|R;v[b>>>2]|=k<<24-b%4*8,b++}return n.create(v,b)}}(),t.enc.Base64url})}(Ur)),Ur.exports}var Wr={exports:{}},bn;function Pt(){return bn||(bn=1,function(i,e){(function(t,r){i.exports=r(We())})(ke,function(t){return function(r){var a=t,n=a.lib,y=n.WordArray,x=n.Hasher,u=a.algo,c=[];(function(){for(var R=0;R<64;R++)c[R]=r.abs(r.sin(R+1))*4294967296|0})();var d=u.MD5=x.extend({_doReset:function(){this._hash=new y.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(R,k){for(var q=0;q<16;q++){var F=k+q,P=R[F];R[F]=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360}var O=this._hash.words,H=R[k+0],U=R[k+1],K=R[k+2],X=R[k+3],Q=R[k+4],$=R[k+5],_=R[k+6],f=R[k+7],h=R[k+8],p=R[k+9],g=R[k+10],E=R[k+11],I=R[k+12],T=R[k+13],S=R[k+14],o=R[k+15],A=O[0],Y=O[1],j=O[2],W=O[3];A=v(A,Y,j,W,H,7,c[0]),W=v(W,A,Y,j,U,12,c[1]),j=v(j,W,A,Y,K,17,c[2]),Y=v(Y,j,W,A,X,22,c[3]),A=v(A,Y,j,W,Q,7,c[4]),W=v(W,A,Y,j,$,12,c[5]),j=v(j,W,A,Y,_,17,c[6]),Y=v(Y,j,W,A,f,22,c[7]),A=v(A,Y,j,W,h,7,c[8]),W=v(W,A,Y,j,p,12,c[9]),j=v(j,W,A,Y,g,17,c[10]),Y=v(Y,j,W,A,E,22,c[11]),A=v(A,Y,j,W,I,7,c[12]),W=v(W,A,Y,j,T,12,c[13]),j=v(j,W,A,Y,S,17,c[14]),Y=v(Y,j,W,A,o,22,c[15]),A=b(A,Y,j,W,U,5,c[16]),W=b(W,A,Y,j,_,9,c[17]),j=b(j,W,A,Y,E,14,c[18]),Y=b(Y,j,W,A,H,20,c[19]),A=b(A,Y,j,W,$,5,c[20]),W=b(W,A,Y,j,g,9,c[21]),j=b(j,W,A,Y,o,14,c[22]),Y=b(Y,j,W,A,Q,20,c[23]),A=b(A,Y,j,W,p,5,c[24]),W=b(W,A,Y,j,S,9,c[25]),j=b(j,W,A,Y,X,14,c[26]),Y=b(Y,j,W,A,h,20,c[27]),A=b(A,Y,j,W,T,5,c[28]),W=b(W,A,Y,j,K,9,c[29]),j=b(j,W,A,Y,f,14,c[30]),Y=b(Y,j,W,A,I,20,c[31]),A=M(A,Y,j,W,$,4,c[32]),W=M(W,A,Y,j,h,11,c[33]),j=M(j,W,A,Y,E,16,c[34]),Y=M(Y,j,W,A,S,23,c[35]),A=M(A,Y,j,W,U,4,c[36]),W=M(W,A,Y,j,Q,11,c[37]),j=M(j,W,A,Y,f,16,c[38]),Y=M(Y,j,W,A,g,23,c[39]),A=M(A,Y,j,W,T,4,c[40]),W=M(W,A,Y,j,H,11,c[41]),j=M(j,W,A,Y,X,16,c[42]),Y=M(Y,j,W,A,_,23,c[43]),A=M(A,Y,j,W,p,4,c[44]),W=M(W,A,Y,j,I,11,c[45]),j=M(j,W,A,Y,o,16,c[46]),Y=M(Y,j,W,A,K,23,c[47]),A=B(A,Y,j,W,H,6,c[48]),W=B(W,A,Y,j,f,10,c[49]),j=B(j,W,A,Y,S,15,c[50]),Y=B(Y,j,W,A,$,21,c[51]),A=B(A,Y,j,W,I,6,c[52]),W=B(W,A,Y,j,X,10,c[53]),j=B(j,W,A,Y,g,15,c[54]),Y=B(Y,j,W,A,U,21,c[55]),A=B(A,Y,j,W,h,6,c[56]),W=B(W,A,Y,j,o,10,c[57]),j=B(j,W,A,Y,_,15,c[58]),Y=B(Y,j,W,A,T,21,c[59]),A=B(A,Y,j,W,Q,6,c[60]),W=B(W,A,Y,j,E,10,c[61]),j=B(j,W,A,Y,K,15,c[62]),Y=B(Y,j,W,A,p,21,c[63]),O[0]=O[0]+A|0,O[1]=O[1]+Y|0,O[2]=O[2]+j|0,O[3]=O[3]+W|0},_doFinalize:function(){var R=this._data,k=R.words,q=this._nDataBytes*8,F=R.sigBytes*8;k[F>>>5]|=128<<24-F%32;var P=r.floor(q/4294967296),O=q;k[(F+64>>>9<<4)+15]=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360,k[(F+64>>>9<<4)+14]=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,R.sigBytes=(k.length+1)*4,this._process();for(var H=this._hash,U=H.words,K=0;K<4;K++){var X=U[K];U[K]=(X<<8|X>>>24)&16711935|(X<<24|X>>>8)&4278255360}return H},clone:function(){var R=x.clone.call(this);return R._hash=this._hash.clone(),R}});function v(R,k,q,F,P,O,H){var U=R+(k&q|~k&F)+P+H;return(U<<O|U>>>32-O)+k}function b(R,k,q,F,P,O,H){var U=R+(k&F|q&~F)+P+H;return(U<<O|U>>>32-O)+k}function M(R,k,q,F,P,O,H){var U=R+(k^q^F)+P+H;return(U<<O|U>>>32-O)+k}function B(R,k,q,F,P,O,H){var U=R+(q^(k|~F))+P+H;return(U<<O|U>>>32-O)+k}a.MD5=x._createHelper(d),a.HmacMD5=x._createHmacHelper(d)}(Math),t.MD5})}(Wr)),Wr.exports}var Yr={exports:{}},pn;function gf(){return pn||(pn=1,function(i,e){(function(t,r){i.exports=r(We())})(ke,function(t){return function(){var r=t,a=r.lib,n=a.WordArray,y=a.Hasher,x=r.algo,u=[],c=x.SHA1=y.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(d,v){for(var b=this._hash.words,M=b[0],B=b[1],R=b[2],k=b[3],q=b[4],F=0;F<80;F++){if(F<16)u[F]=d[v+F]|0;else{var P=u[F-3]^u[F-8]^u[F-14]^u[F-16];u[F]=P<<1|P>>>31}var O=(M<<5|M>>>27)+q+u[F];F<20?O+=(B&R|~B&k)+1518500249:F<40?O+=(B^R^k)+1859775393:F<60?O+=(B&R|B&k|R&k)-1894007588:O+=(B^R^k)-899497514,q=k,k=R,R=B<<30|B>>>2,B=M,M=O}b[0]=b[0]+M|0,b[1]=b[1]+B|0,b[2]=b[2]+R|0,b[3]=b[3]+k|0,b[4]=b[4]+q|0},_doFinalize:function(){var d=this._data,v=d.words,b=this._nDataBytes*8,M=d.sigBytes*8;return v[M>>>5]|=128<<24-M%32,v[(M+64>>>9<<4)+14]=Math.floor(b/4294967296),v[(M+64>>>9<<4)+15]=b,d.sigBytes=v.length*4,this._process(),this._hash},clone:function(){var d=y.clone.call(this);return d._hash=this._hash.clone(),d}});r.SHA1=y._createHelper(c),r.HmacSHA1=y._createHmacHelper(c)}(),t.SHA1})}(Yr)),Yr.exports}var jr={exports:{}},yn;function Hi(){return yn||(yn=1,function(i,e){(function(t,r){i.exports=r(We())})(ke,function(t){return function(r){var a=t,n=a.lib,y=n.WordArray,x=n.Hasher,u=a.algo,c=[],d=[];(function(){function M(q){for(var F=r.sqrt(q),P=2;P<=F;P++)if(!(q%P))return!1;return!0}function B(q){return(q-(q|0))*4294967296|0}for(var R=2,k=0;k<64;)M(R)&&(k<8&&(c[k]=B(r.pow(R,1/2))),d[k]=B(r.pow(R,1/3)),k++),R++})();var v=[],b=u.SHA256=x.extend({_doReset:function(){this._hash=new y.init(c.slice(0))},_doProcessBlock:function(M,B){for(var R=this._hash.words,k=R[0],q=R[1],F=R[2],P=R[3],O=R[4],H=R[5],U=R[6],K=R[7],X=0;X<64;X++){if(X<16)v[X]=M[B+X]|0;else{var Q=v[X-15],$=(Q<<25|Q>>>7)^(Q<<14|Q>>>18)^Q>>>3,_=v[X-2],f=(_<<15|_>>>17)^(_<<13|_>>>19)^_>>>10;v[X]=$+v[X-7]+f+v[X-16]}var h=O&H^~O&U,p=k&q^k&F^q&F,g=(k<<30|k>>>2)^(k<<19|k>>>13)^(k<<10|k>>>22),E=(O<<26|O>>>6)^(O<<21|O>>>11)^(O<<7|O>>>25),I=K+E+h+d[X]+v[X],T=g+p;K=U,U=H,H=O,O=P+I|0,P=F,F=q,q=k,k=I+T|0}R[0]=R[0]+k|0,R[1]=R[1]+q|0,R[2]=R[2]+F|0,R[3]=R[3]+P|0,R[4]=R[4]+O|0,R[5]=R[5]+H|0,R[6]=R[6]+U|0,R[7]=R[7]+K|0},_doFinalize:function(){var M=this._data,B=M.words,R=this._nDataBytes*8,k=M.sigBytes*8;return B[k>>>5]|=128<<24-k%32,B[(k+64>>>9<<4)+14]=r.floor(R/4294967296),B[(k+64>>>9<<4)+15]=R,M.sigBytes=B.length*4,this._process(),this._hash},clone:function(){var M=x.clone.call(this);return M._hash=this._hash.clone(),M}});a.SHA256=x._createHelper(b),a.HmacSHA256=x._createHmacHelper(b)}(Math),t.SHA256})}(jr)),jr.exports}var Kr={exports:{}},gn;function Oa(){return gn||(gn=1,function(i,e){(function(t,r,a){i.exports=r(We(),Hi())})(ke,function(t){return function(){var r=t,a=r.lib,n=a.WordArray,y=r.algo,x=y.SHA256,u=y.SHA224=x.extend({_doReset:function(){this._hash=new n.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=x._doFinalize.call(this);return c.sigBytes-=4,c}});r.SHA224=x._createHelper(u),r.HmacSHA224=x._createHmacHelper(u)}(),t.SHA224})}(Kr)),Kr.exports}var Vr={exports:{}},mn;function mf(){return mn||(mn=1,function(i,e){(function(t,r,a){i.exports=r(We(),Br())})(ke,function(t){return function(){var r=t,a=r.lib,n=a.Hasher,y=r.x64,x=y.Word,u=y.WordArray,c=r.algo;function d(){return x.create.apply(x,arguments)}var v=[d(1116352408,3609767458),d(1899447441,602891725),d(3049323471,3964484399),d(3921009573,2173295548),d(961987163,4081628472),d(1508970993,3053834265),d(2453635748,2937671579),d(2870763221,3664609560),d(3624381080,2734883394),d(310598401,1164996542),d(607225278,1323610764),d(1426881987,3590304994),d(1925078388,4068182383),d(2162078206,991336113),d(2614888103,633803317),d(3248222580,3479774868),d(3835390401,2666613458),d(4022224774,944711139),d(264347078,2341262773),d(604807628,2007800933),d(770255983,1495990901),d(1249150122,1856431235),d(1555081692,3175218132),d(1996064986,2198950837),d(2554220882,3999719339),d(2821834349,766784016),d(2952996808,2566594879),d(3210313671,3203337956),d(3336571891,1034457026),d(3584528711,2466948901),d(113926993,3758326383),d(338241895,168717936),d(666307205,1188179964),d(773529912,1546045734),d(1294757372,1522805485),d(1396182291,2643833823),d(1695183700,2343527390),d(1986661051,1014477480),d(2177026350,1206759142),d(2456956037,344077627),d(2730485921,1290863460),d(2820302411,3158454273),d(3259730800,3505952657),d(3345764771,106217008),d(3516065817,3606008344),d(3600352804,1432725776),d(4094571909,1467031594),d(275423344,851169720),d(430227734,3100823752),d(506948616,1363258195),d(659060556,3750685593),d(883997877,3785050280),d(958139571,3318307427),d(1322822218,3812723403),d(1537002063,2003034995),d(1747873779,3602036899),d(1955562222,1575990012),d(2024104815,1125592928),d(2227730452,2716904306),d(2361852424,442776044),d(2428436474,593698344),d(2756734187,3733110249),d(3204031479,2999351573),d(3329325298,3815920427),d(3391569614,3928383900),d(3515267271,566280711),d(3940187606,3454069534),d(4118630271,4000239992),d(116418474,1914138554),d(174292421,2731055270),d(289380356,3203993006),d(460393269,320620315),d(685471733,587496836),d(852142971,1086792851),d(1017036298,365543100),d(1126000580,2618297676),d(1288033470,3409855158),d(1501505948,4234509866),d(1607167915,987167468),d(1816402316,1246189591)],b=[];(function(){for(var B=0;B<80;B++)b[B]=d()})();var M=c.SHA512=n.extend({_doReset:function(){this._hash=new u.init([new x.init(1779033703,4089235720),new x.init(3144134277,2227873595),new x.init(1013904242,4271175723),new x.init(2773480762,1595750129),new x.init(1359893119,2917565137),new x.init(2600822924,725511199),new x.init(528734635,4215389547),new x.init(1541459225,327033209)])},_doProcessBlock:function(B,R){for(var k=this._hash.words,q=k[0],F=k[1],P=k[2],O=k[3],H=k[4],U=k[5],K=k[6],X=k[7],Q=q.high,$=q.low,_=F.high,f=F.low,h=P.high,p=P.low,g=O.high,E=O.low,I=H.high,T=H.low,S=U.high,o=U.low,A=K.high,Y=K.low,j=X.high,W=X.low,J=Q,se=$,Ee=_,ge=f,Ce=h,we=p,_0=g,Pe=E,Me=I,A0=T,Ge=S,Ye=o,Y0=A,Qe=Y,Ne=j,N0=W,qe=0;qe<80;qe++){var Fe,D0,Je=b[qe];if(qe<16)D0=Je.high=B[R+qe*2]|0,Fe=Je.low=B[R+qe*2+1]|0;else{var i0=b[qe-15],F0=i0.high,Le=i0.low,u0=(F0>>>1|Le<<31)^(F0>>>8|Le<<24)^F0>>>7,J0=(Le>>>1|F0<<31)^(Le>>>8|F0<<24)^(Le>>>7|F0<<25),l0=b[qe-2],He=l0.high,L0=l0.low,a0=(He>>>19|L0<<13)^(He<<3|L0>>>29)^He>>>6,r0=(L0>>>19|He<<13)^(L0<<3|He>>>29)^(L0>>>6|He<<26),$0=b[qe-7],n0=$0.high,s0=$0.low,j0=b[qe-16],e0=j0.high,f0=j0.low;Fe=J0+s0,D0=u0+n0+(Fe>>>0<J0>>>0?1:0),Fe=Fe+r0,D0=D0+a0+(Fe>>>0<r0>>>0?1:0),Fe=Fe+f0,D0=D0+e0+(Fe>>>0<f0>>>0?1:0),Je.high=D0,Je.low=Fe}var H0=Me&Ge^~Me&Y0,o0=A0&Ye^~A0&Qe,x0=J&Ee^J&Ce^Ee&Ce,R0=se&ge^se&we^ge&we,t0=(J>>>28|se<<4)^(J<<30|se>>>2)^(J<<25|se>>>7),Ve=(se>>>28|J<<4)^(se<<30|J>>>2)^(se<<25|J>>>7),it=(Me>>>14|A0<<18)^(Me>>>18|A0<<14)^(Me<<23|A0>>>9),c0=(A0>>>14|Me<<18)^(A0>>>18|Me<<14)^(A0<<23|Me>>>9),d0=v[qe],gt=d0.high,Oe=d0.low,Ie=N0+c0,l=Ne+it+(Ie>>>0<N0>>>0?1:0),Ie=Ie+o0,l=l+H0+(Ie>>>0<o0>>>0?1:0),Ie=Ie+Oe,l=l+gt+(Ie>>>0<Oe>>>0?1:0),Ie=Ie+Fe,l=l+D0+(Ie>>>0<Fe>>>0?1:0),C=Ve+R0,w=t0+x0+(C>>>0<Ve>>>0?1:0);Ne=Y0,N0=Qe,Y0=Ge,Qe=Ye,Ge=Me,Ye=A0,A0=Pe+Ie|0,Me=_0+l+(A0>>>0<Pe>>>0?1:0)|0,_0=Ce,Pe=we,Ce=Ee,we=ge,Ee=J,ge=se,se=Ie+C|0,J=l+w+(se>>>0<Ie>>>0?1:0)|0}$=q.low=$+se,q.high=Q+J+($>>>0<se>>>0?1:0),f=F.low=f+ge,F.high=_+Ee+(f>>>0<ge>>>0?1:0),p=P.low=p+we,P.high=h+Ce+(p>>>0<we>>>0?1:0),E=O.low=E+Pe,O.high=g+_0+(E>>>0<Pe>>>0?1:0),T=H.low=T+A0,H.high=I+Me+(T>>>0<A0>>>0?1:0),o=U.low=o+Ye,U.high=S+Ge+(o>>>0<Ye>>>0?1:0),Y=K.low=Y+Qe,K.high=A+Y0+(Y>>>0<Qe>>>0?1:0),W=X.low=W+N0,X.high=j+Ne+(W>>>0<N0>>>0?1:0)},_doFinalize:function(){var B=this._data,R=B.words,k=this._nDataBytes*8,q=B.sigBytes*8;R[q>>>5]|=128<<24-q%32,R[(q+128>>>10<<5)+30]=Math.floor(k/4294967296),R[(q+128>>>10<<5)+31]=k,B.sigBytes=R.length*4,this._process();var F=this._hash.toX32();return F},clone:function(){var B=n.clone.call(this);return B._hash=this._hash.clone(),B},blockSize:1024/32});r.SHA512=n._createHelper(M),r.HmacSHA512=n._createHmacHelper(M)}(),t.SHA512})}(Vr)),Vr.exports}var Xr={exports:{}},_n;function za(){return _n||(_n=1,function(i,e){(function(t,r,a){i.exports=r(We(),Br(),mf())})(ke,function(t){return function(){var r=t,a=r.x64,n=a.Word,y=a.WordArray,x=r.algo,u=x.SHA512,c=x.SHA384=u.extend({_doReset:function(){this._hash=new y.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var d=u._doFinalize.call(this);return d.sigBytes-=16,d}});r.SHA384=u._createHelper(c),r.HmacSHA384=u._createHmacHelper(c)}(),t.SHA384})}(Xr)),Xr.exports}var Zr={exports:{}},An;function Na(){return An||(An=1,function(i,e){(function(t,r,a){i.exports=r(We(),Br())})(ke,function(t){return function(r){var a=t,n=a.lib,y=n.WordArray,x=n.Hasher,u=a.x64,c=u.Word,d=a.algo,v=[],b=[],M=[];(function(){for(var k=1,q=0,F=0;F<24;F++){v[k+5*q]=(F+1)*(F+2)/2%64;var P=q%5,O=(2*k+3*q)%5;k=P,q=O}for(var k=0;k<5;k++)for(var q=0;q<5;q++)b[k+5*q]=q+(2*k+3*q)%5*5;for(var H=1,U=0;U<24;U++){for(var K=0,X=0,Q=0;Q<7;Q++){if(H&1){var $=(1<<Q)-1;$<32?X^=1<<$:K^=1<<$-32}H&128?H=H<<1^113:H<<=1}M[U]=c.create(K,X)}})();var B=[];(function(){for(var k=0;k<25;k++)B[k]=c.create()})();var R=d.SHA3=x.extend({cfg:x.cfg.extend({outputLength:512}),_doReset:function(){for(var k=this._state=[],q=0;q<25;q++)k[q]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(k,q){for(var F=this._state,P=this.blockSize/2,O=0;O<P;O++){var H=k[q+2*O],U=k[q+2*O+1];H=(H<<8|H>>>24)&16711935|(H<<24|H>>>8)&4278255360,U=(U<<8|U>>>24)&16711935|(U<<24|U>>>8)&4278255360;var K=F[O];K.high^=U,K.low^=H}for(var X=0;X<24;X++){for(var Q=0;Q<5;Q++){for(var $=0,_=0,f=0;f<5;f++){var K=F[Q+5*f];$^=K.high,_^=K.low}var h=B[Q];h.high=$,h.low=_}for(var Q=0;Q<5;Q++)for(var p=B[(Q+4)%5],g=B[(Q+1)%5],E=g.high,I=g.low,$=p.high^(E<<1|I>>>31),_=p.low^(I<<1|E>>>31),f=0;f<5;f++){var K=F[Q+5*f];K.high^=$,K.low^=_}for(var T=1;T<25;T++){var $,_,K=F[T],S=K.high,o=K.low,A=v[T];A<32?($=S<<A|o>>>32-A,_=o<<A|S>>>32-A):($=o<<A-32|S>>>64-A,_=S<<A-32|o>>>64-A);var Y=B[b[T]];Y.high=$,Y.low=_}var j=B[0],W=F[0];j.high=W.high,j.low=W.low;for(var Q=0;Q<5;Q++)for(var f=0;f<5;f++){var T=Q+5*f,K=F[T],J=B[T],se=B[(Q+1)%5+5*f],Ee=B[(Q+2)%5+5*f];K.high=J.high^~se.high&Ee.high,K.low=J.low^~se.low&Ee.low}var K=F[0],ge=M[X];K.high^=ge.high,K.low^=ge.low}},_doFinalize:function(){var k=this._data,q=k.words;this._nDataBytes*8;var F=k.sigBytes*8,P=this.blockSize*32;q[F>>>5]|=1<<24-F%32,q[(r.ceil((F+1)/P)*P>>>5)-1]|=128,k.sigBytes=q.length*4,this._process();for(var O=this._state,H=this.cfg.outputLength/8,U=H/8,K=[],X=0;X<U;X++){var Q=O[X],$=Q.high,_=Q.low;$=($<<8|$>>>24)&16711935|($<<24|$>>>8)&4278255360,_=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,K.push(_),K.push($)}return new y.init(K,H)},clone:function(){for(var k=x.clone.call(this),q=k._state=this._state.slice(0),F=0;F<25;F++)q[F]=q[F].clone();return k}});a.SHA3=x._createHelper(R),a.HmacSHA3=x._createHmacHelper(R)}(Math),t.SHA3})}(Zr)),Zr.exports}var Gr={exports:{}},En;function qa(){return En||(En=1,function(i,e){(function(t,r){i.exports=r(We())})(ke,function(t){/** @preserve
39
39
  (c) 2012 by Cédric Mesnil. All rights reserved.
40
40
 
41
41
  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
@@ -44,12 +44,12 @@ React keys must be passed directly to JSX without using spread:
44
44
  - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
45
45
 
46
46
  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
47
- */return function(r){var a=t,n=a.lib,y=n.WordArray,x=n.Hasher,u=a.algo,c=y.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),d=y.create([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]),v=y.create([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]),b=y.create([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]),M=y.create([0,1518500249,1859775393,2400959708,2840853838]),B=y.create([1352829926,1548603684,1836072691,2053994217,0]),R=u.RIPEMD160=x.extend({_doReset:function(){this._hash=y.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(U,K){for(var X=0;X<16;X++){var Q=K+X,$=U[Q];U[Q]=($<<8|$>>>24)&16711935|($<<24|$>>>8)&4278255360}var _=this._hash.words,f=M.words,h=B.words,p=c.words,g=d.words,E=v.words,I=b.words,T,S,o,A,Y,j,W,J,se,Ee;j=T=_[0],W=S=_[1],J=o=_[2],se=A=_[3],Ee=Y=_[4];for(var ge,X=0;X<80;X+=1)ge=T+U[K+p[X]]|0,X<16?ge+=k(S,o,A)+f[0]:X<32?ge+=q(S,o,A)+f[1]:X<48?ge+=F(S,o,A)+f[2]:X<64?ge+=P(S,o,A)+f[3]:ge+=O(S,o,A)+f[4],ge=ge|0,ge=H(ge,E[X]),ge=ge+Y|0,T=Y,Y=A,A=H(o,10),o=S,S=ge,ge=j+U[K+g[X]]|0,X<16?ge+=O(W,J,se)+h[0]:X<32?ge+=P(W,J,se)+h[1]:X<48?ge+=F(W,J,se)+h[2]:X<64?ge+=q(W,J,se)+h[3]:ge+=k(W,J,se)+h[4],ge=ge|0,ge=H(ge,I[X]),ge=ge+Ee|0,j=Ee,Ee=se,se=H(J,10),J=W,W=ge;ge=_[1]+o+se|0,_[1]=_[2]+A+Ee|0,_[2]=_[3]+Y+j|0,_[3]=_[4]+T+W|0,_[4]=_[0]+S+J|0,_[0]=ge},_doFinalize:function(){var U=this._data,K=U.words,X=this._nDataBytes*8,Q=U.sigBytes*8;K[Q>>>5]|=128<<24-Q%32,K[(Q+64>>>9<<4)+14]=(X<<8|X>>>24)&16711935|(X<<24|X>>>8)&4278255360,U.sigBytes=(K.length+1)*4,this._process();for(var $=this._hash,_=$.words,f=0;f<5;f++){var h=_[f];_[f]=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360}return $},clone:function(){var U=x.clone.call(this);return U._hash=this._hash.clone(),U}});function k(U,K,X){return U^K^X}function q(U,K,X){return U&K|~U&X}function F(U,K,X){return(U|~K)^X}function P(U,K,X){return U&X|K&~X}function O(U,K,X){return U^(K|~X)}function H(U,K){return U<<K|U>>>32-K}a.RIPEMD160=x._createHelper(R),a.HmacRIPEMD160=x._createHmacHelper(R)}(),t.RIPEMD160})}(Zr)),Zr.exports}var Gr={exports:{}},wn;function Ui(){return wn||(wn=1,function(i,e){(function(t,r){i.exports=r(We())})(ke,function(t){(function(){var r=t,a=r.lib,n=a.Base,y=r.enc,x=y.Utf8,u=r.algo;u.HMAC=n.extend({init:function(c,d){c=this._hasher=new c.init,typeof d=="string"&&(d=x.parse(d));var v=c.blockSize,b=v*4;d.sigBytes>b&&(d=c.finalize(d)),d.clamp();for(var M=this._oKey=d.clone(),B=this._iKey=d.clone(),R=M.words,k=B.words,q=0;q<v;q++)R[q]^=1549556828,k[q]^=909522486;M.sigBytes=B.sigBytes=b,this.reset()},reset:function(){var c=this._hasher;c.reset(),c.update(this._iKey)},update:function(c){return this._hasher.update(c),this},finalize:function(c){var d=this._hasher,v=d.finalize(c);d.reset();var b=d.finalize(this._oKey.clone().concat(v));return b}})})()})}(Gr)),Gr.exports}var Qr={exports:{}},Bn;function La(){return Bn||(Bn=1,function(i,e){(function(t,r,a){i.exports=r(We(),Hi(),Ui())})(ke,function(t){return function(){var r=t,a=r.lib,n=a.Base,y=a.WordArray,x=r.algo,u=x.SHA256,c=x.HMAC,d=x.PBKDF2=n.extend({cfg:n.extend({keySize:128/32,hasher:u,iterations:25e4}),init:function(v){this.cfg=this.cfg.extend(v)},compute:function(v,b){for(var M=this.cfg,B=c.create(M.hasher,v),R=y.create(),k=y.create([1]),q=R.words,F=k.words,P=M.keySize,O=M.iterations;q.length<P;){var H=B.update(b).finalize(k);B.reset();for(var U=H.words,K=U.length,X=H,Q=1;Q<O;Q++){X=B.finalize(X),B.reset();for(var $=X.words,_=0;_<K;_++)U[_]^=$[_]}R.concat(H),F[0]++}return R.sigBytes=P*4,R}});r.PBKDF2=function(v,b,M){return d.create(M).compute(v,b)}}(),t.PBKDF2})}(Qr)),Qr.exports}var Jr={exports:{}},Cn;function Et(){return Cn||(Cn=1,function(i,e){(function(t,r,a){i.exports=r(We(),gf(),Ui())})(ke,function(t){return function(){var r=t,a=r.lib,n=a.Base,y=a.WordArray,x=r.algo,u=x.MD5,c=x.EvpKDF=n.extend({cfg:n.extend({keySize:128/32,hasher:u,iterations:1}),init:function(d){this.cfg=this.cfg.extend(d)},compute:function(d,v){for(var b,M=this.cfg,B=M.hasher.create(),R=y.create(),k=R.words,q=M.keySize,F=M.iterations;k.length<q;){b&&B.update(b),b=B.update(d).finalize(v),B.reset();for(var P=1;P<F;P++)b=B.finalize(b),B.reset();R.concat(b)}return R.sigBytes=q*4,R}});r.EvpKDF=function(d,v,b){return c.create(b).compute(d,v)}}(),t.EvpKDF})}(Jr)),Jr.exports}var ei={exports:{}},Mn;function M0(){return Mn||(Mn=1,function(i,e){(function(t,r,a){i.exports=r(We(),Et())})(ke,function(t){t.lib.Cipher||function(r){var a=t,n=a.lib,y=n.Base,x=n.WordArray,u=n.BufferedBlockAlgorithm,c=a.enc;c.Utf8;var d=c.Base64,v=a.algo,b=v.EvpKDF,M=n.Cipher=u.extend({cfg:y.extend(),createEncryptor:function($,_){return this.create(this._ENC_XFORM_MODE,$,_)},createDecryptor:function($,_){return this.create(this._DEC_XFORM_MODE,$,_)},init:function($,_,f){this.cfg=this.cfg.extend(f),this._xformMode=$,this._key=_,this.reset()},reset:function(){u.reset.call(this),this._doReset()},process:function($){return this._append($),this._process()},finalize:function($){$&&this._append($);var _=this._doFinalize();return _},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function $(_){return typeof _=="string"?Q:U}return function(_){return{encrypt:function(f,h,p){return $(h).encrypt(_,f,h,p)},decrypt:function(f,h,p){return $(h).decrypt(_,f,h,p)}}}}()});n.StreamCipher=M.extend({_doFinalize:function(){var $=this._process(!0);return $},blockSize:1});var B=a.mode={},R=n.BlockCipherMode=y.extend({createEncryptor:function($,_){return this.Encryptor.create($,_)},createDecryptor:function($,_){return this.Decryptor.create($,_)},init:function($,_){this._cipher=$,this._iv=_}}),k=B.CBC=function(){var $=R.extend();$.Encryptor=$.extend({processBlock:function(f,h){var p=this._cipher,g=p.blockSize;_.call(this,f,h,g),p.encryptBlock(f,h),this._prevBlock=f.slice(h,h+g)}}),$.Decryptor=$.extend({processBlock:function(f,h){var p=this._cipher,g=p.blockSize,E=f.slice(h,h+g);p.decryptBlock(f,h),_.call(this,f,h,g),this._prevBlock=E}});function _(f,h,p){var g,E=this._iv;E?(g=E,this._iv=r):g=this._prevBlock;for(var I=0;I<p;I++)f[h+I]^=g[I]}return $}(),q=a.pad={},F=q.Pkcs7={pad:function($,_){for(var f=_*4,h=f-$.sigBytes%f,p=h<<24|h<<16|h<<8|h,g=[],E=0;E<h;E+=4)g.push(p);var I=x.create(g,h);$.concat(I)},unpad:function($){var _=$.words[$.sigBytes-1>>>2]&255;$.sigBytes-=_}};n.BlockCipher=M.extend({cfg:M.cfg.extend({mode:k,padding:F}),reset:function(){var $;M.reset.call(this);var _=this.cfg,f=_.iv,h=_.mode;this._xformMode==this._ENC_XFORM_MODE?$=h.createEncryptor:($=h.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==$?this._mode.init(this,f&&f.words):(this._mode=$.call(h,this,f&&f.words),this._mode.__creator=$)},_doProcessBlock:function($,_){this._mode.processBlock($,_)},_doFinalize:function(){var $,_=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(_.pad(this._data,this.blockSize),$=this._process(!0)):($=this._process(!0),_.unpad($)),$},blockSize:128/32});var P=n.CipherParams=y.extend({init:function($){this.mixIn($)},toString:function($){return($||this.formatter).stringify(this)}}),O=a.format={},H=O.OpenSSL={stringify:function($){var _,f=$.ciphertext,h=$.salt;return h?_=x.create([1398893684,1701076831]).concat(h).concat(f):_=f,_.toString(d)},parse:function($){var _,f=d.parse($),h=f.words;return h[0]==1398893684&&h[1]==1701076831&&(_=x.create(h.slice(2,4)),h.splice(0,4),f.sigBytes-=16),P.create({ciphertext:f,salt:_})}},U=n.SerializableCipher=y.extend({cfg:y.extend({format:H}),encrypt:function($,_,f,h){h=this.cfg.extend(h);var p=$.createEncryptor(f,h),g=p.finalize(_),E=p.cfg;return P.create({ciphertext:g,key:f,iv:E.iv,algorithm:$,mode:E.mode,padding:E.padding,blockSize:$.blockSize,formatter:h.format})},decrypt:function($,_,f,h){h=this.cfg.extend(h),_=this._parse(_,h.format);var p=$.createDecryptor(f,h).finalize(_.ciphertext);return p},_parse:function($,_){return typeof $=="string"?_.parse($,this):$}}),K=a.kdf={},X=K.OpenSSL={execute:function($,_,f,h,p){if(h||(h=x.random(64/8)),p)var g=b.create({keySize:_+f,hasher:p}).compute($,h);else var g=b.create({keySize:_+f}).compute($,h);var E=x.create(g.words.slice(_),f*4);return g.sigBytes=_*4,P.create({key:g,iv:E,salt:h})}},Q=n.PasswordBasedCipher=U.extend({cfg:U.cfg.extend({kdf:X}),encrypt:function($,_,f,h){h=this.cfg.extend(h);var p=h.kdf.execute(f,$.keySize,$.ivSize,h.salt,h.hasher);h.iv=p.iv;var g=U.encrypt.call(this,$,_,p.key,h);return g.mixIn(p),g},decrypt:function($,_,f,h){h=this.cfg.extend(h),_=this._parse(_,h.format);var p=h.kdf.execute(f,$.keySize,$.ivSize,_.salt,h.hasher);h.iv=p.iv;var g=U.decrypt.call(this,$,_,p.key,h);return g}})}()})}(ei)),ei.exports}var ti={exports:{}},Sn;function $a(){return Sn||(Sn=1,function(i,e){(function(t,r,a){i.exports=r(We(),M0())})(ke,function(t){return t.mode.CFB=function(){var r=t.lib.BlockCipherMode.extend();r.Encryptor=r.extend({processBlock:function(n,y){var x=this._cipher,u=x.blockSize;a.call(this,n,y,u,x),this._prevBlock=n.slice(y,y+u)}}),r.Decryptor=r.extend({processBlock:function(n,y){var x=this._cipher,u=x.blockSize,c=n.slice(y,y+u);a.call(this,n,y,u,x),this._prevBlock=c}});function a(n,y,x,u){var c,d=this._iv;d?(c=d.slice(0),this._iv=void 0):c=this._prevBlock,u.encryptBlock(c,0);for(var v=0;v<x;v++)n[y+v]^=c[v]}return r}(),t.mode.CFB})}(ti)),ti.exports}var ri={exports:{}},Dn;function Ha(){return Dn||(Dn=1,function(i,e){(function(t,r,a){i.exports=r(We(),M0())})(ke,function(t){return t.mode.CTR=function(){var r=t.lib.BlockCipherMode.extend(),a=r.Encryptor=r.extend({processBlock:function(n,y){var x=this._cipher,u=x.blockSize,c=this._iv,d=this._counter;c&&(d=this._counter=c.slice(0),this._iv=void 0);var v=d.slice(0);x.encryptBlock(v,0),d[u-1]=d[u-1]+1|0;for(var b=0;b<u;b++)n[y+b]^=v[b]}});return r.Decryptor=a,r}(),t.mode.CTR})}(ri)),ri.exports}var ii={exports:{}},Fn;function Ua(){return Fn||(Fn=1,function(i,e){(function(t,r,a){i.exports=r(We(),M0())})(ke,function(t){/** @preserve
47
+ */return function(r){var a=t,n=a.lib,y=n.WordArray,x=n.Hasher,u=a.algo,c=y.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),d=y.create([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]),v=y.create([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]),b=y.create([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]),M=y.create([0,1518500249,1859775393,2400959708,2840853838]),B=y.create([1352829926,1548603684,1836072691,2053994217,0]),R=u.RIPEMD160=x.extend({_doReset:function(){this._hash=y.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(U,K){for(var X=0;X<16;X++){var Q=K+X,$=U[Q];U[Q]=($<<8|$>>>24)&16711935|($<<24|$>>>8)&4278255360}var _=this._hash.words,f=M.words,h=B.words,p=c.words,g=d.words,E=v.words,I=b.words,T,S,o,A,Y,j,W,J,se,Ee;j=T=_[0],W=S=_[1],J=o=_[2],se=A=_[3],Ee=Y=_[4];for(var ge,X=0;X<80;X+=1)ge=T+U[K+p[X]]|0,X<16?ge+=k(S,o,A)+f[0]:X<32?ge+=q(S,o,A)+f[1]:X<48?ge+=F(S,o,A)+f[2]:X<64?ge+=P(S,o,A)+f[3]:ge+=O(S,o,A)+f[4],ge=ge|0,ge=H(ge,E[X]),ge=ge+Y|0,T=Y,Y=A,A=H(o,10),o=S,S=ge,ge=j+U[K+g[X]]|0,X<16?ge+=O(W,J,se)+h[0]:X<32?ge+=P(W,J,se)+h[1]:X<48?ge+=F(W,J,se)+h[2]:X<64?ge+=q(W,J,se)+h[3]:ge+=k(W,J,se)+h[4],ge=ge|0,ge=H(ge,I[X]),ge=ge+Ee|0,j=Ee,Ee=se,se=H(J,10),J=W,W=ge;ge=_[1]+o+se|0,_[1]=_[2]+A+Ee|0,_[2]=_[3]+Y+j|0,_[3]=_[4]+T+W|0,_[4]=_[0]+S+J|0,_[0]=ge},_doFinalize:function(){var U=this._data,K=U.words,X=this._nDataBytes*8,Q=U.sigBytes*8;K[Q>>>5]|=128<<24-Q%32,K[(Q+64>>>9<<4)+14]=(X<<8|X>>>24)&16711935|(X<<24|X>>>8)&4278255360,U.sigBytes=(K.length+1)*4,this._process();for(var $=this._hash,_=$.words,f=0;f<5;f++){var h=_[f];_[f]=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360}return $},clone:function(){var U=x.clone.call(this);return U._hash=this._hash.clone(),U}});function k(U,K,X){return U^K^X}function q(U,K,X){return U&K|~U&X}function F(U,K,X){return(U|~K)^X}function P(U,K,X){return U&X|K&~X}function O(U,K,X){return U^(K|~X)}function H(U,K){return U<<K|U>>>32-K}a.RIPEMD160=x._createHelper(R),a.HmacRIPEMD160=x._createHmacHelper(R)}(),t.RIPEMD160})}(Gr)),Gr.exports}var Qr={exports:{}},wn;function Ui(){return wn||(wn=1,function(i,e){(function(t,r){i.exports=r(We())})(ke,function(t){(function(){var r=t,a=r.lib,n=a.Base,y=r.enc,x=y.Utf8,u=r.algo;u.HMAC=n.extend({init:function(c,d){c=this._hasher=new c.init,typeof d=="string"&&(d=x.parse(d));var v=c.blockSize,b=v*4;d.sigBytes>b&&(d=c.finalize(d)),d.clamp();for(var M=this._oKey=d.clone(),B=this._iKey=d.clone(),R=M.words,k=B.words,q=0;q<v;q++)R[q]^=1549556828,k[q]^=909522486;M.sigBytes=B.sigBytes=b,this.reset()},reset:function(){var c=this._hasher;c.reset(),c.update(this._iKey)},update:function(c){return this._hasher.update(c),this},finalize:function(c){var d=this._hasher,v=d.finalize(c);d.reset();var b=d.finalize(this._oKey.clone().concat(v));return b}})})()})}(Qr)),Qr.exports}var Jr={exports:{}},Bn;function La(){return Bn||(Bn=1,function(i,e){(function(t,r,a){i.exports=r(We(),Hi(),Ui())})(ke,function(t){return function(){var r=t,a=r.lib,n=a.Base,y=a.WordArray,x=r.algo,u=x.SHA256,c=x.HMAC,d=x.PBKDF2=n.extend({cfg:n.extend({keySize:128/32,hasher:u,iterations:25e4}),init:function(v){this.cfg=this.cfg.extend(v)},compute:function(v,b){for(var M=this.cfg,B=c.create(M.hasher,v),R=y.create(),k=y.create([1]),q=R.words,F=k.words,P=M.keySize,O=M.iterations;q.length<P;){var H=B.update(b).finalize(k);B.reset();for(var U=H.words,K=U.length,X=H,Q=1;Q<O;Q++){X=B.finalize(X),B.reset();for(var $=X.words,_=0;_<K;_++)U[_]^=$[_]}R.concat(H),F[0]++}return R.sigBytes=P*4,R}});r.PBKDF2=function(v,b,M){return d.create(M).compute(v,b)}}(),t.PBKDF2})}(Jr)),Jr.exports}var ei={exports:{}},Cn;function Et(){return Cn||(Cn=1,function(i,e){(function(t,r,a){i.exports=r(We(),gf(),Ui())})(ke,function(t){return function(){var r=t,a=r.lib,n=a.Base,y=a.WordArray,x=r.algo,u=x.MD5,c=x.EvpKDF=n.extend({cfg:n.extend({keySize:128/32,hasher:u,iterations:1}),init:function(d){this.cfg=this.cfg.extend(d)},compute:function(d,v){for(var b,M=this.cfg,B=M.hasher.create(),R=y.create(),k=R.words,q=M.keySize,F=M.iterations;k.length<q;){b&&B.update(b),b=B.update(d).finalize(v),B.reset();for(var P=1;P<F;P++)b=B.finalize(b),B.reset();R.concat(b)}return R.sigBytes=q*4,R}});r.EvpKDF=function(d,v,b){return c.create(b).compute(d,v)}}(),t.EvpKDF})}(ei)),ei.exports}var ti={exports:{}},Mn;function M0(){return Mn||(Mn=1,function(i,e){(function(t,r,a){i.exports=r(We(),Et())})(ke,function(t){t.lib.Cipher||function(r){var a=t,n=a.lib,y=n.Base,x=n.WordArray,u=n.BufferedBlockAlgorithm,c=a.enc;c.Utf8;var d=c.Base64,v=a.algo,b=v.EvpKDF,M=n.Cipher=u.extend({cfg:y.extend(),createEncryptor:function($,_){return this.create(this._ENC_XFORM_MODE,$,_)},createDecryptor:function($,_){return this.create(this._DEC_XFORM_MODE,$,_)},init:function($,_,f){this.cfg=this.cfg.extend(f),this._xformMode=$,this._key=_,this.reset()},reset:function(){u.reset.call(this),this._doReset()},process:function($){return this._append($),this._process()},finalize:function($){$&&this._append($);var _=this._doFinalize();return _},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function $(_){return typeof _=="string"?Q:U}return function(_){return{encrypt:function(f,h,p){return $(h).encrypt(_,f,h,p)},decrypt:function(f,h,p){return $(h).decrypt(_,f,h,p)}}}}()});n.StreamCipher=M.extend({_doFinalize:function(){var $=this._process(!0);return $},blockSize:1});var B=a.mode={},R=n.BlockCipherMode=y.extend({createEncryptor:function($,_){return this.Encryptor.create($,_)},createDecryptor:function($,_){return this.Decryptor.create($,_)},init:function($,_){this._cipher=$,this._iv=_}}),k=B.CBC=function(){var $=R.extend();$.Encryptor=$.extend({processBlock:function(f,h){var p=this._cipher,g=p.blockSize;_.call(this,f,h,g),p.encryptBlock(f,h),this._prevBlock=f.slice(h,h+g)}}),$.Decryptor=$.extend({processBlock:function(f,h){var p=this._cipher,g=p.blockSize,E=f.slice(h,h+g);p.decryptBlock(f,h),_.call(this,f,h,g),this._prevBlock=E}});function _(f,h,p){var g,E=this._iv;E?(g=E,this._iv=r):g=this._prevBlock;for(var I=0;I<p;I++)f[h+I]^=g[I]}return $}(),q=a.pad={},F=q.Pkcs7={pad:function($,_){for(var f=_*4,h=f-$.sigBytes%f,p=h<<24|h<<16|h<<8|h,g=[],E=0;E<h;E+=4)g.push(p);var I=x.create(g,h);$.concat(I)},unpad:function($){var _=$.words[$.sigBytes-1>>>2]&255;$.sigBytes-=_}};n.BlockCipher=M.extend({cfg:M.cfg.extend({mode:k,padding:F}),reset:function(){var $;M.reset.call(this);var _=this.cfg,f=_.iv,h=_.mode;this._xformMode==this._ENC_XFORM_MODE?$=h.createEncryptor:($=h.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==$?this._mode.init(this,f&&f.words):(this._mode=$.call(h,this,f&&f.words),this._mode.__creator=$)},_doProcessBlock:function($,_){this._mode.processBlock($,_)},_doFinalize:function(){var $,_=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(_.pad(this._data,this.blockSize),$=this._process(!0)):($=this._process(!0),_.unpad($)),$},blockSize:128/32});var P=n.CipherParams=y.extend({init:function($){this.mixIn($)},toString:function($){return($||this.formatter).stringify(this)}}),O=a.format={},H=O.OpenSSL={stringify:function($){var _,f=$.ciphertext,h=$.salt;return h?_=x.create([1398893684,1701076831]).concat(h).concat(f):_=f,_.toString(d)},parse:function($){var _,f=d.parse($),h=f.words;return h[0]==1398893684&&h[1]==1701076831&&(_=x.create(h.slice(2,4)),h.splice(0,4),f.sigBytes-=16),P.create({ciphertext:f,salt:_})}},U=n.SerializableCipher=y.extend({cfg:y.extend({format:H}),encrypt:function($,_,f,h){h=this.cfg.extend(h);var p=$.createEncryptor(f,h),g=p.finalize(_),E=p.cfg;return P.create({ciphertext:g,key:f,iv:E.iv,algorithm:$,mode:E.mode,padding:E.padding,blockSize:$.blockSize,formatter:h.format})},decrypt:function($,_,f,h){h=this.cfg.extend(h),_=this._parse(_,h.format);var p=$.createDecryptor(f,h).finalize(_.ciphertext);return p},_parse:function($,_){return typeof $=="string"?_.parse($,this):$}}),K=a.kdf={},X=K.OpenSSL={execute:function($,_,f,h,p){if(h||(h=x.random(64/8)),p)var g=b.create({keySize:_+f,hasher:p}).compute($,h);else var g=b.create({keySize:_+f}).compute($,h);var E=x.create(g.words.slice(_),f*4);return g.sigBytes=_*4,P.create({key:g,iv:E,salt:h})}},Q=n.PasswordBasedCipher=U.extend({cfg:U.cfg.extend({kdf:X}),encrypt:function($,_,f,h){h=this.cfg.extend(h);var p=h.kdf.execute(f,$.keySize,$.ivSize,h.salt,h.hasher);h.iv=p.iv;var g=U.encrypt.call(this,$,_,p.key,h);return g.mixIn(p),g},decrypt:function($,_,f,h){h=this.cfg.extend(h),_=this._parse(_,h.format);var p=h.kdf.execute(f,$.keySize,$.ivSize,_.salt,h.hasher);h.iv=p.iv;var g=U.decrypt.call(this,$,_,p.key,h);return g}})}()})}(ti)),ti.exports}var ri={exports:{}},Sn;function $a(){return Sn||(Sn=1,function(i,e){(function(t,r,a){i.exports=r(We(),M0())})(ke,function(t){return t.mode.CFB=function(){var r=t.lib.BlockCipherMode.extend();r.Encryptor=r.extend({processBlock:function(n,y){var x=this._cipher,u=x.blockSize;a.call(this,n,y,u,x),this._prevBlock=n.slice(y,y+u)}}),r.Decryptor=r.extend({processBlock:function(n,y){var x=this._cipher,u=x.blockSize,c=n.slice(y,y+u);a.call(this,n,y,u,x),this._prevBlock=c}});function a(n,y,x,u){var c,d=this._iv;d?(c=d.slice(0),this._iv=void 0):c=this._prevBlock,u.encryptBlock(c,0);for(var v=0;v<x;v++)n[y+v]^=c[v]}return r}(),t.mode.CFB})}(ri)),ri.exports}var ii={exports:{}},Dn;function Ha(){return Dn||(Dn=1,function(i,e){(function(t,r,a){i.exports=r(We(),M0())})(ke,function(t){return t.mode.CTR=function(){var r=t.lib.BlockCipherMode.extend(),a=r.Encryptor=r.extend({processBlock:function(n,y){var x=this._cipher,u=x.blockSize,c=this._iv,d=this._counter;c&&(d=this._counter=c.slice(0),this._iv=void 0);var v=d.slice(0);x.encryptBlock(v,0),d[u-1]=d[u-1]+1|0;for(var b=0;b<u;b++)n[y+b]^=v[b]}});return r.Decryptor=a,r}(),t.mode.CTR})}(ii)),ii.exports}var ni={exports:{}},Fn;function Ua(){return Fn||(Fn=1,function(i,e){(function(t,r,a){i.exports=r(We(),M0())})(ke,function(t){/** @preserve
48
48
  * Counter block mode compatible with Dr Brian Gladman fileenc.c
49
49
  * derived from CryptoJS.mode.CTR
50
50
  * Jan Hruby jhruby.web@gmail.com
51
- */return t.mode.CTRGladman=function(){var r=t.lib.BlockCipherMode.extend();function a(x){if((x>>24&255)===255){var u=x>>16&255,c=x>>8&255,d=x&255;u===255?(u=0,c===255?(c=0,d===255?d=0:++d):++c):++u,x=0,x+=u<<16,x+=c<<8,x+=d}else x+=1<<24;return x}function n(x){return(x[0]=a(x[0]))===0&&(x[1]=a(x[1])),x}var y=r.Encryptor=r.extend({processBlock:function(x,u){var c=this._cipher,d=c.blockSize,v=this._iv,b=this._counter;v&&(b=this._counter=v.slice(0),this._iv=void 0),n(b);var M=b.slice(0);c.encryptBlock(M,0);for(var B=0;B<d;B++)x[u+B]^=M[B]}});return r.Decryptor=y,r}(),t.mode.CTRGladman})}(ii)),ii.exports}var ni={exports:{}},Rn;function Wa(){return Rn||(Rn=1,function(i,e){(function(t,r,a){i.exports=r(We(),M0())})(ke,function(t){return t.mode.OFB=function(){var r=t.lib.BlockCipherMode.extend(),a=r.Encryptor=r.extend({processBlock:function(n,y){var x=this._cipher,u=x.blockSize,c=this._iv,d=this._keystream;c&&(d=this._keystream=c.slice(0),this._iv=void 0),x.encryptBlock(d,0);for(var v=0;v<u;v++)n[y+v]^=d[v]}});return r.Decryptor=a,r}(),t.mode.OFB})}(ni)),ni.exports}var fi={exports:{}},kn;function Ya(){return kn||(kn=1,function(i,e){(function(t,r,a){i.exports=r(We(),M0())})(ke,function(t){return t.mode.ECB=function(){var r=t.lib.BlockCipherMode.extend();return r.Encryptor=r.extend({processBlock:function(a,n){this._cipher.encryptBlock(a,n)}}),r.Decryptor=r.extend({processBlock:function(a,n){this._cipher.decryptBlock(a,n)}}),r}(),t.mode.ECB})}(fi)),fi.exports}var ai={exports:{}},Pn;function ja(){return Pn||(Pn=1,function(i,e){(function(t,r,a){i.exports=r(We(),M0())})(ke,function(t){return t.pad.AnsiX923={pad:function(r,a){var n=r.sigBytes,y=a*4,x=y-n%y,u=n+x-1;r.clamp(),r.words[u>>>2]|=x<<24-u%4*8,r.sigBytes+=x},unpad:function(r){var a=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=a}},t.pad.Ansix923})}(ai)),ai.exports}var si={exports:{}},In;function Ka(){return In||(In=1,function(i,e){(function(t,r,a){i.exports=r(We(),M0())})(ke,function(t){return t.pad.Iso10126={pad:function(r,a){var n=a*4,y=n-r.sigBytes%n;r.concat(t.lib.WordArray.random(y-1)).concat(t.lib.WordArray.create([y<<24],1))},unpad:function(r){var a=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=a}},t.pad.Iso10126})}(si)),si.exports}var oi={exports:{}},Tn;function Va(){return Tn||(Tn=1,function(i,e){(function(t,r,a){i.exports=r(We(),M0())})(ke,function(t){return t.pad.Iso97971={pad:function(r,a){r.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(r,a)},unpad:function(r){t.pad.ZeroPadding.unpad(r),r.sigBytes--}},t.pad.Iso97971})}(oi)),oi.exports}var ci={exports:{}},On;function Xa(){return On||(On=1,function(i,e){(function(t,r,a){i.exports=r(We(),M0())})(ke,function(t){return t.pad.ZeroPadding={pad:function(r,a){var n=a*4;r.clamp(),r.sigBytes+=n-(r.sigBytes%n||n)},unpad:function(r){for(var a=r.words,n=r.sigBytes-1,n=r.sigBytes-1;n>=0;n--)if(a[n>>>2]>>>24-n%4*8&255){r.sigBytes=n+1;break}}},t.pad.ZeroPadding})}(ci)),ci.exports}var di={exports:{}},zn;function Za(){return zn||(zn=1,function(i,e){(function(t,r,a){i.exports=r(We(),M0())})(ke,function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding})}(di)),di.exports}var hi={exports:{}},Nn;function Ga(){return Nn||(Nn=1,function(i,e){(function(t,r,a){i.exports=r(We(),M0())})(ke,function(t){return function(r){var a=t,n=a.lib,y=n.CipherParams,x=a.enc,u=x.Hex,c=a.format;c.Hex={stringify:function(d){return d.ciphertext.toString(u)},parse:function(d){var v=u.parse(d);return y.create({ciphertext:v})}}}(),t.format.Hex})}(hi)),hi.exports}var ui={exports:{}},qn;function Qa(){return qn||(qn=1,function(i,e){(function(t,r,a){i.exports=r(We(),kt(),Pt(),Et(),M0())})(ke,function(t){return function(){var r=t,a=r.lib,n=a.BlockCipher,y=r.algo,x=[],u=[],c=[],d=[],v=[],b=[],M=[],B=[],R=[],k=[];(function(){for(var P=[],O=0;O<256;O++)O<128?P[O]=O<<1:P[O]=O<<1^283;for(var H=0,U=0,O=0;O<256;O++){var K=U^U<<1^U<<2^U<<3^U<<4;K=K>>>8^K&255^99,x[H]=K,u[K]=H;var X=P[H],Q=P[X],$=P[Q],_=P[K]*257^K*16843008;c[H]=_<<24|_>>>8,d[H]=_<<16|_>>>16,v[H]=_<<8|_>>>24,b[H]=_;var _=$*16843009^Q*65537^X*257^H*16843008;M[K]=_<<24|_>>>8,B[K]=_<<16|_>>>16,R[K]=_<<8|_>>>24,k[K]=_,H?(H=X^P[P[P[$^X]]],U^=P[P[U]]):H=U=1}})();var q=[0,1,2,4,8,16,32,64,128,27,54],F=y.AES=n.extend({_doReset:function(){var P;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var O=this._keyPriorReset=this._key,H=O.words,U=O.sigBytes/4,K=this._nRounds=U+6,X=(K+1)*4,Q=this._keySchedule=[],$=0;$<X;$++)$<U?Q[$]=H[$]:(P=Q[$-1],$%U?U>6&&$%U==4&&(P=x[P>>>24]<<24|x[P>>>16&255]<<16|x[P>>>8&255]<<8|x[P&255]):(P=P<<8|P>>>24,P=x[P>>>24]<<24|x[P>>>16&255]<<16|x[P>>>8&255]<<8|x[P&255],P^=q[$/U|0]<<24),Q[$]=Q[$-U]^P);for(var _=this._invKeySchedule=[],f=0;f<X;f++){var $=X-f;if(f%4)var P=Q[$];else var P=Q[$-4];f<4||$<=4?_[f]=P:_[f]=M[x[P>>>24]]^B[x[P>>>16&255]]^R[x[P>>>8&255]]^k[x[P&255]]}}},encryptBlock:function(P,O){this._doCryptBlock(P,O,this._keySchedule,c,d,v,b,x)},decryptBlock:function(P,O){var H=P[O+1];P[O+1]=P[O+3],P[O+3]=H,this._doCryptBlock(P,O,this._invKeySchedule,M,B,R,k,u);var H=P[O+1];P[O+1]=P[O+3],P[O+3]=H},_doCryptBlock:function(P,O,H,U,K,X,Q,$){for(var _=this._nRounds,f=P[O]^H[0],h=P[O+1]^H[1],p=P[O+2]^H[2],g=P[O+3]^H[3],E=4,I=1;I<_;I++){var T=U[f>>>24]^K[h>>>16&255]^X[p>>>8&255]^Q[g&255]^H[E++],S=U[h>>>24]^K[p>>>16&255]^X[g>>>8&255]^Q[f&255]^H[E++],o=U[p>>>24]^K[g>>>16&255]^X[f>>>8&255]^Q[h&255]^H[E++],A=U[g>>>24]^K[f>>>16&255]^X[h>>>8&255]^Q[p&255]^H[E++];f=T,h=S,p=o,g=A}var T=($[f>>>24]<<24|$[h>>>16&255]<<16|$[p>>>8&255]<<8|$[g&255])^H[E++],S=($[h>>>24]<<24|$[p>>>16&255]<<16|$[g>>>8&255]<<8|$[f&255])^H[E++],o=($[p>>>24]<<24|$[g>>>16&255]<<16|$[f>>>8&255]<<8|$[h&255])^H[E++],A=($[g>>>24]<<24|$[f>>>16&255]<<16|$[h>>>8&255]<<8|$[p&255])^H[E++];P[O]=T,P[O+1]=S,P[O+2]=o,P[O+3]=A},keySize:256/32});r.AES=n._createHelper(F)}(),t.AES})}(ui)),ui.exports}var li={exports:{}},Ln;function Ja(){return Ln||(Ln=1,function(i,e){(function(t,r,a){i.exports=r(We(),kt(),Pt(),Et(),M0())})(ke,function(t){return function(){var r=t,a=r.lib,n=a.WordArray,y=a.BlockCipher,x=r.algo,u=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],c=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],d=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],v=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],b=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],M=x.DES=y.extend({_doReset:function(){for(var q=this._key,F=q.words,P=[],O=0;O<56;O++){var H=u[O]-1;P[O]=F[H>>>5]>>>31-H%32&1}for(var U=this._subKeys=[],K=0;K<16;K++){for(var X=U[K]=[],Q=d[K],O=0;O<24;O++)X[O/6|0]|=P[(c[O]-1+Q)%28]<<31-O%6,X[4+(O/6|0)]|=P[28+(c[O+24]-1+Q)%28]<<31-O%6;X[0]=X[0]<<1|X[0]>>>31;for(var O=1;O<7;O++)X[O]=X[O]>>>(O-1)*4+3;X[7]=X[7]<<5|X[7]>>>27}for(var $=this._invSubKeys=[],O=0;O<16;O++)$[O]=U[15-O]},encryptBlock:function(q,F){this._doCryptBlock(q,F,this._subKeys)},decryptBlock:function(q,F){this._doCryptBlock(q,F,this._invSubKeys)},_doCryptBlock:function(q,F,P){this._lBlock=q[F],this._rBlock=q[F+1],B.call(this,4,252645135),B.call(this,16,65535),R.call(this,2,858993459),R.call(this,8,16711935),B.call(this,1,1431655765);for(var O=0;O<16;O++){for(var H=P[O],U=this._lBlock,K=this._rBlock,X=0,Q=0;Q<8;Q++)X|=v[Q][((K^H[Q])&b[Q])>>>0];this._lBlock=K,this._rBlock=U^X}var $=this._lBlock;this._lBlock=this._rBlock,this._rBlock=$,B.call(this,1,1431655765),R.call(this,8,16711935),R.call(this,2,858993459),B.call(this,16,65535),B.call(this,4,252645135),q[F]=this._lBlock,q[F+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function B(q,F){var P=(this._lBlock>>>q^this._rBlock)&F;this._rBlock^=P,this._lBlock^=P<<q}function R(q,F){var P=(this._rBlock>>>q^this._lBlock)&F;this._lBlock^=P,this._rBlock^=P<<q}r.DES=y._createHelper(M);var k=x.TripleDES=y.extend({_doReset:function(){var q=this._key,F=q.words;if(F.length!==2&&F.length!==4&&F.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var P=F.slice(0,2),O=F.length<4?F.slice(0,2):F.slice(2,4),H=F.length<6?F.slice(0,2):F.slice(4,6);this._des1=M.createEncryptor(n.create(P)),this._des2=M.createEncryptor(n.create(O)),this._des3=M.createEncryptor(n.create(H))},encryptBlock:function(q,F){this._des1.encryptBlock(q,F),this._des2.decryptBlock(q,F),this._des3.encryptBlock(q,F)},decryptBlock:function(q,F){this._des3.decryptBlock(q,F),this._des2.encryptBlock(q,F),this._des1.decryptBlock(q,F)},keySize:192/32,ivSize:64/32,blockSize:64/32});r.TripleDES=y._createHelper(k)}(),t.TripleDES})}(li)),li.exports}var xi={exports:{}},$n;function es(){return $n||($n=1,function(i,e){(function(t,r,a){i.exports=r(We(),kt(),Pt(),Et(),M0())})(ke,function(t){return function(){var r=t,a=r.lib,n=a.StreamCipher,y=r.algo,x=y.RC4=n.extend({_doReset:function(){for(var d=this._key,v=d.words,b=d.sigBytes,M=this._S=[],B=0;B<256;B++)M[B]=B;for(var B=0,R=0;B<256;B++){var k=B%b,q=v[k>>>2]>>>24-k%4*8&255;R=(R+M[B]+q)%256;var F=M[B];M[B]=M[R],M[R]=F}this._i=this._j=0},_doProcessBlock:function(d,v){d[v]^=u.call(this)},keySize:256/32,ivSize:0});function u(){for(var d=this._S,v=this._i,b=this._j,M=0,B=0;B<4;B++){v=(v+1)%256,b=(b+d[v])%256;var R=d[v];d[v]=d[b],d[b]=R,M|=d[(d[v]+d[b])%256]<<24-B*8}return this._i=v,this._j=b,M}r.RC4=n._createHelper(x);var c=y.RC4Drop=x.extend({cfg:x.cfg.extend({drop:192}),_doReset:function(){x._doReset.call(this);for(var d=this.cfg.drop;d>0;d--)u.call(this)}});r.RC4Drop=n._createHelper(c)}(),t.RC4})}(xi)),xi.exports}var vi={exports:{}},Hn;function ts(){return Hn||(Hn=1,function(i,e){(function(t,r,a){i.exports=r(We(),kt(),Pt(),Et(),M0())})(ke,function(t){return function(){var r=t,a=r.lib,n=a.StreamCipher,y=r.algo,x=[],u=[],c=[],d=y.Rabbit=n.extend({_doReset:function(){for(var b=this._key.words,M=this.cfg.iv,B=0;B<4;B++)b[B]=(b[B]<<8|b[B]>>>24)&16711935|(b[B]<<24|b[B]>>>8)&4278255360;var R=this._X=[b[0],b[3]<<16|b[2]>>>16,b[1],b[0]<<16|b[3]>>>16,b[2],b[1]<<16|b[0]>>>16,b[3],b[2]<<16|b[1]>>>16],k=this._C=[b[2]<<16|b[2]>>>16,b[0]&4294901760|b[1]&65535,b[3]<<16|b[3]>>>16,b[1]&4294901760|b[2]&65535,b[0]<<16|b[0]>>>16,b[2]&4294901760|b[3]&65535,b[1]<<16|b[1]>>>16,b[3]&4294901760|b[0]&65535];this._b=0;for(var B=0;B<4;B++)v.call(this);for(var B=0;B<8;B++)k[B]^=R[B+4&7];if(M){var q=M.words,F=q[0],P=q[1],O=(F<<8|F>>>24)&16711935|(F<<24|F>>>8)&4278255360,H=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360,U=O>>>16|H&4294901760,K=H<<16|O&65535;k[0]^=O,k[1]^=U,k[2]^=H,k[3]^=K,k[4]^=O,k[5]^=U,k[6]^=H,k[7]^=K;for(var B=0;B<4;B++)v.call(this)}},_doProcessBlock:function(b,M){var B=this._X;v.call(this),x[0]=B[0]^B[5]>>>16^B[3]<<16,x[1]=B[2]^B[7]>>>16^B[5]<<16,x[2]=B[4]^B[1]>>>16^B[7]<<16,x[3]=B[6]^B[3]>>>16^B[1]<<16;for(var R=0;R<4;R++)x[R]=(x[R]<<8|x[R]>>>24)&16711935|(x[R]<<24|x[R]>>>8)&4278255360,b[M+R]^=x[R]},blockSize:128/32,ivSize:64/32});function v(){for(var b=this._X,M=this._C,B=0;B<8;B++)u[B]=M[B];M[0]=M[0]+1295307597+this._b|0,M[1]=M[1]+3545052371+(M[0]>>>0<u[0]>>>0?1:0)|0,M[2]=M[2]+886263092+(M[1]>>>0<u[1]>>>0?1:0)|0,M[3]=M[3]+1295307597+(M[2]>>>0<u[2]>>>0?1:0)|0,M[4]=M[4]+3545052371+(M[3]>>>0<u[3]>>>0?1:0)|0,M[5]=M[5]+886263092+(M[4]>>>0<u[4]>>>0?1:0)|0,M[6]=M[6]+1295307597+(M[5]>>>0<u[5]>>>0?1:0)|0,M[7]=M[7]+3545052371+(M[6]>>>0<u[6]>>>0?1:0)|0,this._b=M[7]>>>0<u[7]>>>0?1:0;for(var B=0;B<8;B++){var R=b[B]+M[B],k=R&65535,q=R>>>16,F=((k*k>>>17)+k*q>>>15)+q*q,P=((R&4294901760)*R|0)+((R&65535)*R|0);c[B]=F^P}b[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,b[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,b[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,b[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,b[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,b[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,b[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,b[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}r.Rabbit=n._createHelper(d)}(),t.Rabbit})}(vi)),vi.exports}var bi={exports:{}},Un;function rs(){return Un||(Un=1,function(i,e){(function(t,r,a){i.exports=r(We(),kt(),Pt(),Et(),M0())})(ke,function(t){return function(){var r=t,a=r.lib,n=a.StreamCipher,y=r.algo,x=[],u=[],c=[],d=y.RabbitLegacy=n.extend({_doReset:function(){var b=this._key.words,M=this.cfg.iv,B=this._X=[b[0],b[3]<<16|b[2]>>>16,b[1],b[0]<<16|b[3]>>>16,b[2],b[1]<<16|b[0]>>>16,b[3],b[2]<<16|b[1]>>>16],R=this._C=[b[2]<<16|b[2]>>>16,b[0]&4294901760|b[1]&65535,b[3]<<16|b[3]>>>16,b[1]&4294901760|b[2]&65535,b[0]<<16|b[0]>>>16,b[2]&4294901760|b[3]&65535,b[1]<<16|b[1]>>>16,b[3]&4294901760|b[0]&65535];this._b=0;for(var k=0;k<4;k++)v.call(this);for(var k=0;k<8;k++)R[k]^=B[k+4&7];if(M){var q=M.words,F=q[0],P=q[1],O=(F<<8|F>>>24)&16711935|(F<<24|F>>>8)&4278255360,H=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360,U=O>>>16|H&4294901760,K=H<<16|O&65535;R[0]^=O,R[1]^=U,R[2]^=H,R[3]^=K,R[4]^=O,R[5]^=U,R[6]^=H,R[7]^=K;for(var k=0;k<4;k++)v.call(this)}},_doProcessBlock:function(b,M){var B=this._X;v.call(this),x[0]=B[0]^B[5]>>>16^B[3]<<16,x[1]=B[2]^B[7]>>>16^B[5]<<16,x[2]=B[4]^B[1]>>>16^B[7]<<16,x[3]=B[6]^B[3]>>>16^B[1]<<16;for(var R=0;R<4;R++)x[R]=(x[R]<<8|x[R]>>>24)&16711935|(x[R]<<24|x[R]>>>8)&4278255360,b[M+R]^=x[R]},blockSize:128/32,ivSize:64/32});function v(){for(var b=this._X,M=this._C,B=0;B<8;B++)u[B]=M[B];M[0]=M[0]+1295307597+this._b|0,M[1]=M[1]+3545052371+(M[0]>>>0<u[0]>>>0?1:0)|0,M[2]=M[2]+886263092+(M[1]>>>0<u[1]>>>0?1:0)|0,M[3]=M[3]+1295307597+(M[2]>>>0<u[2]>>>0?1:0)|0,M[4]=M[4]+3545052371+(M[3]>>>0<u[3]>>>0?1:0)|0,M[5]=M[5]+886263092+(M[4]>>>0<u[4]>>>0?1:0)|0,M[6]=M[6]+1295307597+(M[5]>>>0<u[5]>>>0?1:0)|0,M[7]=M[7]+3545052371+(M[6]>>>0<u[6]>>>0?1:0)|0,this._b=M[7]>>>0<u[7]>>>0?1:0;for(var B=0;B<8;B++){var R=b[B]+M[B],k=R&65535,q=R>>>16,F=((k*k>>>17)+k*q>>>15)+q*q,P=((R&4294901760)*R|0)+((R&65535)*R|0);c[B]=F^P}b[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,b[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,b[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,b[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,b[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,b[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,b[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,b[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}r.RabbitLegacy=n._createHelper(d)}(),t.RabbitLegacy})}(bi)),bi.exports}var pi={exports:{}},Wn;function is(){return Wn||(Wn=1,function(i,e){(function(t,r,a){i.exports=r(We(),kt(),Pt(),Et(),M0())})(ke,function(t){return function(){var r=t,a=r.lib,n=a.BlockCipher,y=r.algo;const x=16,u=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],c=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var d={pbox:[],sbox:[]};function v(k,q){let F=q>>24&255,P=q>>16&255,O=q>>8&255,H=q&255,U=k.sbox[0][F]+k.sbox[1][P];return U=U^k.sbox[2][O],U=U+k.sbox[3][H],U}function b(k,q,F){let P=q,O=F,H;for(let U=0;U<x;++U)P=P^k.pbox[U],O=v(k,P)^O,H=P,P=O,O=H;return H=P,P=O,O=H,O=O^k.pbox[x],P=P^k.pbox[x+1],{left:P,right:O}}function M(k,q,F){let P=q,O=F,H;for(let U=x+1;U>1;--U)P=P^k.pbox[U],O=v(k,P)^O,H=P,P=O,O=H;return H=P,P=O,O=H,O=O^k.pbox[1],P=P^k.pbox[0],{left:P,right:O}}function B(k,q,F){for(let K=0;K<4;K++){k.sbox[K]=[];for(let X=0;X<256;X++)k.sbox[K][X]=c[K][X]}let P=0;for(let K=0;K<x+2;K++)k.pbox[K]=u[K]^q[P],P++,P>=F&&(P=0);let O=0,H=0,U=0;for(let K=0;K<x+2;K+=2)U=b(k,O,H),O=U.left,H=U.right,k.pbox[K]=O,k.pbox[K+1]=H;for(let K=0;K<4;K++)for(let X=0;X<256;X+=2)U=b(k,O,H),O=U.left,H=U.right,k.sbox[K][X]=O,k.sbox[K][X+1]=H;return!0}var R=y.Blowfish=n.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var k=this._keyPriorReset=this._key,q=k.words,F=k.sigBytes/4;B(d,q,F)}},encryptBlock:function(k,q){var F=b(d,k[q],k[q+1]);k[q]=F.left,k[q+1]=F.right},decryptBlock:function(k,q){var F=M(d,k[q],k[q+1]);k[q]=F.left,k[q+1]=F.right},blockSize:64/32,keySize:128/32,ivSize:64/32});r.Blowfish=n._createHelper(R)}(),t.Blowfish})}(pi)),pi.exports}(function(i,e){(function(t,r,a){i.exports=r(We(),wr(),Pa(),Ia(),kt(),Ta(),Pt(),gf(),Hi(),Oa(),mf(),za(),Na(),qa(),Ui(),La(),Et(),M0(),$a(),Ha(),Ua(),Wa(),Ya(),ja(),Ka(),Va(),Xa(),Za(),Ga(),Qa(),Ja(),es(),ts(),rs(),is())})(ke,function(t){return t})})(pf);var ns=pf.exports;const K0=$i(ns);var _f={};const fs="elliptic",as="6.5.5",ss="EC cryptography",os="lib/elliptic.js",cs=["lib"],ds={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/"},hs={type:"git",url:"git@github.com:indutny/elliptic"},us=["EC","Elliptic","curve","Cryptography"],ls="Fedor Indutny <fedor@indutny.com>",xs="MIT",vs={url:"https://github.com/indutny/elliptic/issues"},bs="https://github.com/indutny/elliptic",ps={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"},ys={"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"},gs={name:fs,version:as,description:ss,main:os,files:cs,scripts:ds,repository:hs,keywords:us,author:ls,license:xs,bugs:vs,homepage:bs,devDependencies:ps,dependencies:ys};var V0={},Wi={exports:{}};Wi.exports;(function(i){(function(e,t){function r(_,f){if(!_)throw new Error(f||"Assertion failed")}function a(_,f){_.super_=f;var h=function(){};h.prototype=f.prototype,_.prototype=new h,_.prototype.constructor=_}function n(_,f,h){if(n.isBN(_))return _;this.negative=0,this.words=null,this.length=0,this.red=null,_!==null&&((f==="le"||f==="be")&&(h=f,f=10),this._init(_||0,f||10,h||"be"))}typeof e=="object"?e.exports=n:t.BN=n,n.BN=n,n.wordSize=26;var y;try{typeof window<"u"&&typeof window.Buffer<"u"?y=window.Buffer:y=Er.Buffer}catch{}n.isBN=function(f){return f instanceof n?!0:f!==null&&typeof f=="object"&&f.constructor.wordSize===n.wordSize&&Array.isArray(f.words)},n.max=function(f,h){return f.cmp(h)>0?f:h},n.min=function(f,h){return f.cmp(h)<0?f:h},n.prototype._init=function(f,h,p){if(typeof f=="number")return this._initNumber(f,h,p);if(typeof f=="object")return this._initArray(f,h,p);h==="hex"&&(h=16),r(h===(h|0)&&h>=2&&h<=36),f=f.toString().replace(/\s+/g,"");var g=0;f[0]==="-"&&(g++,this.negative=1),g<f.length&&(h===16?this._parseHex(f,g,p):(this._parseBase(f,h,g),p==="le"&&this._initArray(this.toArray(),h,p)))},n.prototype._initNumber=function(f,h,p){f<0&&(this.negative=1,f=-f),f<67108864?(this.words=[f&67108863],this.length=1):f<4503599627370496?(this.words=[f&67108863,f/67108864&67108863],this.length=2):(r(f<9007199254740992),this.words=[f&67108863,f/67108864&67108863,1],this.length=3),p==="le"&&this._initArray(this.toArray(),h,p)},n.prototype._initArray=function(f,h,p){if(r(typeof f.length=="number"),f.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(f.length/3),this.words=new Array(this.length);for(var g=0;g<this.length;g++)this.words[g]=0;var E,I,T=0;if(p==="be")for(g=f.length-1,E=0;g>=0;g-=3)I=f[g]|f[g-1]<<8|f[g-2]<<16,this.words[E]|=I<<T&67108863,this.words[E+1]=I>>>26-T&67108863,T+=24,T>=26&&(T-=26,E++);else if(p==="le")for(g=0,E=0;g<f.length;g+=3)I=f[g]|f[g+1]<<8|f[g+2]<<16,this.words[E]|=I<<T&67108863,this.words[E+1]=I>>>26-T&67108863,T+=24,T>=26&&(T-=26,E++);return this.strip()};function x(_,f){var h=_.charCodeAt(f);return h>=65&&h<=70?h-55:h>=97&&h<=102?h-87:h-48&15}function u(_,f,h){var p=x(_,h);return h-1>=f&&(p|=x(_,h-1)<<4),p}n.prototype._parseHex=function(f,h,p){this.length=Math.ceil((f.length-h)/6),this.words=new Array(this.length);for(var g=0;g<this.length;g++)this.words[g]=0;var E=0,I=0,T;if(p==="be")for(g=f.length-1;g>=h;g-=2)T=u(f,h,g)<<E,this.words[I]|=T&67108863,E>=18?(E-=18,I+=1,this.words[I]|=T>>>26):E+=8;else{var S=f.length-h;for(g=S%2===0?h+1:h;g<f.length;g+=2)T=u(f,h,g)<<E,this.words[I]|=T&67108863,E>=18?(E-=18,I+=1,this.words[I]|=T>>>26):E+=8}this.strip()};function c(_,f,h,p){for(var g=0,E=Math.min(_.length,h),I=f;I<E;I++){var T=_.charCodeAt(I)-48;g*=p,T>=49?g+=T-49+10:T>=17?g+=T-17+10:g+=T}return g}n.prototype._parseBase=function(f,h,p){this.words=[0],this.length=1;for(var g=0,E=1;E<=67108863;E*=h)g++;g--,E=E/h|0;for(var I=f.length-p,T=I%g,S=Math.min(I,I-T)+p,o=0,A=p;A<S;A+=g)o=c(f,A,A+g,h),this.imuln(E),this.words[0]+o<67108864?this.words[0]+=o:this._iaddn(o);if(T!==0){var Y=1;for(o=c(f,A,f.length,h),A=0;A<T;A++)Y*=h;this.imuln(Y),this.words[0]+o<67108864?this.words[0]+=o:this._iaddn(o)}this.strip()},n.prototype.copy=function(f){f.words=new Array(this.length);for(var h=0;h<this.length;h++)f.words[h]=this.words[h];f.length=this.length,f.negative=this.negative,f.red=this.red},n.prototype.clone=function(){var f=new n(null);return this.copy(f),f},n.prototype._expand=function(f){for(;this.length<f;)this.words[this.length++]=0;return this},n.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},n.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},n.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],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],b=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(f,h){f=f||10,h=h|0||1;var p;if(f===16||f==="hex"){p="";for(var g=0,E=0,I=0;I<this.length;I++){var T=this.words[I],S=((T<<g|E)&16777215).toString(16);E=T>>>24-g&16777215,E!==0||I!==this.length-1?p=d[6-S.length]+S+p:p=S+p,g+=2,g>=26&&(g-=26,I--)}for(E!==0&&(p=E.toString(16)+p);p.length%h!==0;)p="0"+p;return this.negative!==0&&(p="-"+p),p}if(f===(f|0)&&f>=2&&f<=36){var o=v[f],A=b[f];p="";var Y=this.clone();for(Y.negative=0;!Y.isZero();){var j=Y.modn(A).toString(f);Y=Y.idivn(A),Y.isZero()?p=j+p:p=d[o-j.length]+j+p}for(this.isZero()&&(p="0"+p);p.length%h!==0;)p="0"+p;return this.negative!==0&&(p="-"+p),p}r(!1,"Base should be between 2 and 36")},n.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&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-f:f},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(f,h){return r(typeof y<"u"),this.toArrayLike(y,f,h)},n.prototype.toArray=function(f,h){return this.toArrayLike(Array,f,h)},n.prototype.toArrayLike=function(f,h,p){var g=this.byteLength(),E=p||Math.max(1,g);r(g<=E,"byte array longer than desired length"),r(E>0,"Requested array length <= 0"),this.strip();var I=h==="le",T=new f(E),S,o,A=this.clone();if(I){for(o=0;!A.isZero();o++)S=A.andln(255),A.iushrn(8),T[o]=S;for(;o<E;o++)T[o]=0}else{for(o=0;o<E-g;o++)T[o]=0;for(o=0;!A.isZero();o++)S=A.andln(255),A.iushrn(8),T[E-o-1]=S}return T},Math.clz32?n.prototype._countBits=function(f){return 32-Math.clz32(f)}:n.prototype._countBits=function(f){var h=f,p=0;return h>=4096&&(p+=13,h>>>=13),h>=64&&(p+=7,h>>>=7),h>=8&&(p+=4,h>>>=4),h>=2&&(p+=2,h>>>=2),p+h},n.prototype._zeroBits=function(f){if(f===0)return 26;var h=f,p=0;return h&8191||(p+=13,h>>>=13),h&127||(p+=7,h>>>=7),h&15||(p+=4,h>>>=4),h&3||(p+=2,h>>>=2),h&1||p++,p},n.prototype.bitLength=function(){var f=this.words[this.length-1],h=this._countBits(f);return(this.length-1)*26+h};function M(_){for(var f=new Array(_.bitLength()),h=0;h<f.length;h++){var p=h/26|0,g=h%26;f[h]=(_.words[p]&1<<g)>>>g}return f}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var f=0,h=0;h<this.length;h++){var p=this._zeroBits(this.words[h]);if(f+=p,p!==26)break}return f},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(f){return this.negative!==0?this.abs().inotn(f).iaddn(1):this.clone()},n.prototype.fromTwos=function(f){return this.testn(f-1)?this.notn(f).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return this.negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.prototype.iuor=function(f){for(;this.length<f.length;)this.words[this.length++]=0;for(var h=0;h<f.length;h++)this.words[h]=this.words[h]|f.words[h];return this.strip()},n.prototype.ior=function(f){return r((this.negative|f.negative)===0),this.iuor(f)},n.prototype.or=function(f){return this.length>f.length?this.clone().ior(f):f.clone().ior(this)},n.prototype.uor=function(f){return this.length>f.length?this.clone().iuor(f):f.clone().iuor(this)},n.prototype.iuand=function(f){var h;this.length>f.length?h=f:h=this;for(var p=0;p<h.length;p++)this.words[p]=this.words[p]&f.words[p];return this.length=h.length,this.strip()},n.prototype.iand=function(f){return r((this.negative|f.negative)===0),this.iuand(f)},n.prototype.and=function(f){return this.length>f.length?this.clone().iand(f):f.clone().iand(this)},n.prototype.uand=function(f){return this.length>f.length?this.clone().iuand(f):f.clone().iuand(this)},n.prototype.iuxor=function(f){var h,p;this.length>f.length?(h=this,p=f):(h=f,p=this);for(var g=0;g<p.length;g++)this.words[g]=h.words[g]^p.words[g];if(this!==h)for(;g<h.length;g++)this.words[g]=h.words[g];return this.length=h.length,this.strip()},n.prototype.ixor=function(f){return r((this.negative|f.negative)===0),this.iuxor(f)},n.prototype.xor=function(f){return this.length>f.length?this.clone().ixor(f):f.clone().ixor(this)},n.prototype.uxor=function(f){return this.length>f.length?this.clone().iuxor(f):f.clone().iuxor(this)},n.prototype.inotn=function(f){r(typeof f=="number"&&f>=0);var h=Math.ceil(f/26)|0,p=f%26;this._expand(h),p>0&&h--;for(var g=0;g<h;g++)this.words[g]=~this.words[g]&67108863;return p>0&&(this.words[g]=~this.words[g]&67108863>>26-p),this.strip()},n.prototype.notn=function(f){return this.clone().inotn(f)},n.prototype.setn=function(f,h){r(typeof f=="number"&&f>=0);var p=f/26|0,g=f%26;return this._expand(p+1),h?this.words[p]=this.words[p]|1<<g:this.words[p]=this.words[p]&~(1<<g),this.strip()},n.prototype.iadd=function(f){var h;if(this.negative!==0&&f.negative===0)return this.negative=0,h=this.isub(f),this.negative^=1,this._normSign();if(this.negative===0&&f.negative!==0)return f.negative=0,h=this.isub(f),f.negative=1,h._normSign();var p,g;this.length>f.length?(p=this,g=f):(p=f,g=this);for(var E=0,I=0;I<g.length;I++)h=(p.words[I]|0)+(g.words[I]|0)+E,this.words[I]=h&67108863,E=h>>>26;for(;E!==0&&I<p.length;I++)h=(p.words[I]|0)+E,this.words[I]=h&67108863,E=h>>>26;if(this.length=p.length,E!==0)this.words[this.length]=E,this.length++;else if(p!==this)for(;I<p.length;I++)this.words[I]=p.words[I];return this},n.prototype.add=function(f){var h;return f.negative!==0&&this.negative===0?(f.negative=0,h=this.sub(f),f.negative^=1,h):f.negative===0&&this.negative!==0?(this.negative=0,h=f.sub(this),this.negative=1,h):this.length>f.length?this.clone().iadd(f):f.clone().iadd(this)},n.prototype.isub=function(f){if(f.negative!==0){f.negative=0;var h=this.iadd(f);return f.negative=1,h._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(f),this.negative=1,this._normSign();var p=this.cmp(f);if(p===0)return this.negative=0,this.length=1,this.words[0]=0,this;var g,E;p>0?(g=this,E=f):(g=f,E=this);for(var I=0,T=0;T<E.length;T++)h=(g.words[T]|0)-(E.words[T]|0)+I,I=h>>26,this.words[T]=h&67108863;for(;I!==0&&T<g.length;T++)h=(g.words[T]|0)+I,I=h>>26,this.words[T]=h&67108863;if(I===0&&T<g.length&&g!==this)for(;T<g.length;T++)this.words[T]=g.words[T];return this.length=Math.max(this.length,T),g!==this&&(this.negative=1),this.strip()},n.prototype.sub=function(f){return this.clone().isub(f)};function B(_,f,h){h.negative=f.negative^_.negative;var p=_.length+f.length|0;h.length=p,p=p-1|0;var g=_.words[0]|0,E=f.words[0]|0,I=g*E,T=I&67108863,S=I/67108864|0;h.words[0]=T;for(var o=1;o<p;o++){for(var A=S>>>26,Y=S&67108863,j=Math.min(o,f.length-1),W=Math.max(0,o-_.length+1);W<=j;W++){var J=o-W|0;g=_.words[J]|0,E=f.words[W]|0,I=g*E+Y,A+=I/67108864|0,Y=I&67108863}h.words[o]=Y|0,S=A|0}return S!==0?h.words[o]=S|0:h.length--,h.strip()}var R=function(f,h,p){var g=f.words,E=h.words,I=p.words,T=0,S,o,A,Y=g[0]|0,j=Y&8191,W=Y>>>13,J=g[1]|0,se=J&8191,Ee=J>>>13,ge=g[2]|0,Ce=ge&8191,we=ge>>>13,_0=g[3]|0,Pe=_0&8191,Me=_0>>>13,A0=g[4]|0,Ge=A0&8191,Ye=A0>>>13,Y0=g[5]|0,Qe=Y0&8191,Ne=Y0>>>13,N0=g[6]|0,qe=N0&8191,Fe=N0>>>13,D0=g[7]|0,Je=D0&8191,i0=D0>>>13,F0=g[8]|0,Le=F0&8191,u0=F0>>>13,J0=g[9]|0,l0=J0&8191,He=J0>>>13,L0=E[0]|0,a0=L0&8191,r0=L0>>>13,$0=E[1]|0,n0=$0&8191,s0=$0>>>13,j0=E[2]|0,e0=j0&8191,f0=j0>>>13,H0=E[3]|0,o0=H0&8191,x0=H0>>>13,R0=E[4]|0,t0=R0&8191,Ve=R0>>>13,it=E[5]|0,c0=it&8191,d0=it>>>13,gt=E[6]|0,Oe=gt&8191,Ie=gt>>>13,l=E[7]|0,C=l&8191,w=l>>>13,s=E[8]|0,D=s&8191,m=s>>>13,z=E[9]|0,L=z&8191,V=z>>>13;p.negative=f.negative^h.negative,p.length=19,S=Math.imul(j,a0),o=Math.imul(j,r0),o=o+Math.imul(W,a0)|0,A=Math.imul(W,r0);var fe=(T+S|0)+((o&8191)<<13)|0;T=(A+(o>>>13)|0)+(fe>>>26)|0,fe&=67108863,S=Math.imul(se,a0),o=Math.imul(se,r0),o=o+Math.imul(Ee,a0)|0,A=Math.imul(Ee,r0),S=S+Math.imul(j,n0)|0,o=o+Math.imul(j,s0)|0,o=o+Math.imul(W,n0)|0,A=A+Math.imul(W,s0)|0;var ie=(T+S|0)+((o&8191)<<13)|0;T=(A+(o>>>13)|0)+(ie>>>26)|0,ie&=67108863,S=Math.imul(Ce,a0),o=Math.imul(Ce,r0),o=o+Math.imul(we,a0)|0,A=Math.imul(we,r0),S=S+Math.imul(se,n0)|0,o=o+Math.imul(se,s0)|0,o=o+Math.imul(Ee,n0)|0,A=A+Math.imul(Ee,s0)|0,S=S+Math.imul(j,e0)|0,o=o+Math.imul(j,f0)|0,o=o+Math.imul(W,e0)|0,A=A+Math.imul(W,f0)|0;var he=(T+S|0)+((o&8191)<<13)|0;T=(A+(o>>>13)|0)+(he>>>26)|0,he&=67108863,S=Math.imul(Pe,a0),o=Math.imul(Pe,r0),o=o+Math.imul(Me,a0)|0,A=Math.imul(Me,r0),S=S+Math.imul(Ce,n0)|0,o=o+Math.imul(Ce,s0)|0,o=o+Math.imul(we,n0)|0,A=A+Math.imul(we,s0)|0,S=S+Math.imul(se,e0)|0,o=o+Math.imul(se,f0)|0,o=o+Math.imul(Ee,e0)|0,A=A+Math.imul(Ee,f0)|0,S=S+Math.imul(j,o0)|0,o=o+Math.imul(j,x0)|0,o=o+Math.imul(W,o0)|0,A=A+Math.imul(W,x0)|0;var re=(T+S|0)+((o&8191)<<13)|0;T=(A+(o>>>13)|0)+(re>>>26)|0,re&=67108863,S=Math.imul(Ge,a0),o=Math.imul(Ge,r0),o=o+Math.imul(Ye,a0)|0,A=Math.imul(Ye,r0),S=S+Math.imul(Pe,n0)|0,o=o+Math.imul(Pe,s0)|0,o=o+Math.imul(Me,n0)|0,A=A+Math.imul(Me,s0)|0,S=S+Math.imul(Ce,e0)|0,o=o+Math.imul(Ce,f0)|0,o=o+Math.imul(we,e0)|0,A=A+Math.imul(we,f0)|0,S=S+Math.imul(se,o0)|0,o=o+Math.imul(se,x0)|0,o=o+Math.imul(Ee,o0)|0,A=A+Math.imul(Ee,x0)|0,S=S+Math.imul(j,t0)|0,o=o+Math.imul(j,Ve)|0,o=o+Math.imul(W,t0)|0,A=A+Math.imul(W,Ve)|0;var xe=(T+S|0)+((o&8191)<<13)|0;T=(A+(o>>>13)|0)+(xe>>>26)|0,xe&=67108863,S=Math.imul(Qe,a0),o=Math.imul(Qe,r0),o=o+Math.imul(Ne,a0)|0,A=Math.imul(Ne,r0),S=S+Math.imul(Ge,n0)|0,o=o+Math.imul(Ge,s0)|0,o=o+Math.imul(Ye,n0)|0,A=A+Math.imul(Ye,s0)|0,S=S+Math.imul(Pe,e0)|0,o=o+Math.imul(Pe,f0)|0,o=o+Math.imul(Me,e0)|0,A=A+Math.imul(Me,f0)|0,S=S+Math.imul(Ce,o0)|0,o=o+Math.imul(Ce,x0)|0,o=o+Math.imul(we,o0)|0,A=A+Math.imul(we,x0)|0,S=S+Math.imul(se,t0)|0,o=o+Math.imul(se,Ve)|0,o=o+Math.imul(Ee,t0)|0,A=A+Math.imul(Ee,Ve)|0,S=S+Math.imul(j,c0)|0,o=o+Math.imul(j,d0)|0,o=o+Math.imul(W,c0)|0,A=A+Math.imul(W,d0)|0;var ue=(T+S|0)+((o&8191)<<13)|0;T=(A+(o>>>13)|0)+(ue>>>26)|0,ue&=67108863,S=Math.imul(qe,a0),o=Math.imul(qe,r0),o=o+Math.imul(Fe,a0)|0,A=Math.imul(Fe,r0),S=S+Math.imul(Qe,n0)|0,o=o+Math.imul(Qe,s0)|0,o=o+Math.imul(Ne,n0)|0,A=A+Math.imul(Ne,s0)|0,S=S+Math.imul(Ge,e0)|0,o=o+Math.imul(Ge,f0)|0,o=o+Math.imul(Ye,e0)|0,A=A+Math.imul(Ye,f0)|0,S=S+Math.imul(Pe,o0)|0,o=o+Math.imul(Pe,x0)|0,o=o+Math.imul(Me,o0)|0,A=A+Math.imul(Me,x0)|0,S=S+Math.imul(Ce,t0)|0,o=o+Math.imul(Ce,Ve)|0,o=o+Math.imul(we,t0)|0,A=A+Math.imul(we,Ve)|0,S=S+Math.imul(se,c0)|0,o=o+Math.imul(se,d0)|0,o=o+Math.imul(Ee,c0)|0,A=A+Math.imul(Ee,d0)|0,S=S+Math.imul(j,Oe)|0,o=o+Math.imul(j,Ie)|0,o=o+Math.imul(W,Oe)|0,A=A+Math.imul(W,Ie)|0;var ve=(T+S|0)+((o&8191)<<13)|0;T=(A+(o>>>13)|0)+(ve>>>26)|0,ve&=67108863,S=Math.imul(Je,a0),o=Math.imul(Je,r0),o=o+Math.imul(i0,a0)|0,A=Math.imul(i0,r0),S=S+Math.imul(qe,n0)|0,o=o+Math.imul(qe,s0)|0,o=o+Math.imul(Fe,n0)|0,A=A+Math.imul(Fe,s0)|0,S=S+Math.imul(Qe,e0)|0,o=o+Math.imul(Qe,f0)|0,o=o+Math.imul(Ne,e0)|0,A=A+Math.imul(Ne,f0)|0,S=S+Math.imul(Ge,o0)|0,o=o+Math.imul(Ge,x0)|0,o=o+Math.imul(Ye,o0)|0,A=A+Math.imul(Ye,x0)|0,S=S+Math.imul(Pe,t0)|0,o=o+Math.imul(Pe,Ve)|0,o=o+Math.imul(Me,t0)|0,A=A+Math.imul(Me,Ve)|0,S=S+Math.imul(Ce,c0)|0,o=o+Math.imul(Ce,d0)|0,o=o+Math.imul(we,c0)|0,A=A+Math.imul(we,d0)|0,S=S+Math.imul(se,Oe)|0,o=o+Math.imul(se,Ie)|0,o=o+Math.imul(Ee,Oe)|0,A=A+Math.imul(Ee,Ie)|0,S=S+Math.imul(j,C)|0,o=o+Math.imul(j,w)|0,o=o+Math.imul(W,C)|0,A=A+Math.imul(W,w)|0;var me=(T+S|0)+((o&8191)<<13)|0;T=(A+(o>>>13)|0)+(me>>>26)|0,me&=67108863,S=Math.imul(Le,a0),o=Math.imul(Le,r0),o=o+Math.imul(u0,a0)|0,A=Math.imul(u0,r0),S=S+Math.imul(Je,n0)|0,o=o+Math.imul(Je,s0)|0,o=o+Math.imul(i0,n0)|0,A=A+Math.imul(i0,s0)|0,S=S+Math.imul(qe,e0)|0,o=o+Math.imul(qe,f0)|0,o=o+Math.imul(Fe,e0)|0,A=A+Math.imul(Fe,f0)|0,S=S+Math.imul(Qe,o0)|0,o=o+Math.imul(Qe,x0)|0,o=o+Math.imul(Ne,o0)|0,A=A+Math.imul(Ne,x0)|0,S=S+Math.imul(Ge,t0)|0,o=o+Math.imul(Ge,Ve)|0,o=o+Math.imul(Ye,t0)|0,A=A+Math.imul(Ye,Ve)|0,S=S+Math.imul(Pe,c0)|0,o=o+Math.imul(Pe,d0)|0,o=o+Math.imul(Me,c0)|0,A=A+Math.imul(Me,d0)|0,S=S+Math.imul(Ce,Oe)|0,o=o+Math.imul(Ce,Ie)|0,o=o+Math.imul(we,Oe)|0,A=A+Math.imul(we,Ie)|0,S=S+Math.imul(se,C)|0,o=o+Math.imul(se,w)|0,o=o+Math.imul(Ee,C)|0,A=A+Math.imul(Ee,w)|0,S=S+Math.imul(j,D)|0,o=o+Math.imul(j,m)|0,o=o+Math.imul(W,D)|0,A=A+Math.imul(W,m)|0;var _e=(T+S|0)+((o&8191)<<13)|0;T=(A+(o>>>13)|0)+(_e>>>26)|0,_e&=67108863,S=Math.imul(l0,a0),o=Math.imul(l0,r0),o=o+Math.imul(He,a0)|0,A=Math.imul(He,r0),S=S+Math.imul(Le,n0)|0,o=o+Math.imul(Le,s0)|0,o=o+Math.imul(u0,n0)|0,A=A+Math.imul(u0,s0)|0,S=S+Math.imul(Je,e0)|0,o=o+Math.imul(Je,f0)|0,o=o+Math.imul(i0,e0)|0,A=A+Math.imul(i0,f0)|0,S=S+Math.imul(qe,o0)|0,o=o+Math.imul(qe,x0)|0,o=o+Math.imul(Fe,o0)|0,A=A+Math.imul(Fe,x0)|0,S=S+Math.imul(Qe,t0)|0,o=o+Math.imul(Qe,Ve)|0,o=o+Math.imul(Ne,t0)|0,A=A+Math.imul(Ne,Ve)|0,S=S+Math.imul(Ge,c0)|0,o=o+Math.imul(Ge,d0)|0,o=o+Math.imul(Ye,c0)|0,A=A+Math.imul(Ye,d0)|0,S=S+Math.imul(Pe,Oe)|0,o=o+Math.imul(Pe,Ie)|0,o=o+Math.imul(Me,Oe)|0,A=A+Math.imul(Me,Ie)|0,S=S+Math.imul(Ce,C)|0,o=o+Math.imul(Ce,w)|0,o=o+Math.imul(we,C)|0,A=A+Math.imul(we,w)|0,S=S+Math.imul(se,D)|0,o=o+Math.imul(se,m)|0,o=o+Math.imul(Ee,D)|0,A=A+Math.imul(Ee,m)|0,S=S+Math.imul(j,L)|0,o=o+Math.imul(j,V)|0,o=o+Math.imul(W,L)|0,A=A+Math.imul(W,V)|0;var Ae=(T+S|0)+((o&8191)<<13)|0;T=(A+(o>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,S=Math.imul(l0,n0),o=Math.imul(l0,s0),o=o+Math.imul(He,n0)|0,A=Math.imul(He,s0),S=S+Math.imul(Le,e0)|0,o=o+Math.imul(Le,f0)|0,o=o+Math.imul(u0,e0)|0,A=A+Math.imul(u0,f0)|0,S=S+Math.imul(Je,o0)|0,o=o+Math.imul(Je,x0)|0,o=o+Math.imul(i0,o0)|0,A=A+Math.imul(i0,x0)|0,S=S+Math.imul(qe,t0)|0,o=o+Math.imul(qe,Ve)|0,o=o+Math.imul(Fe,t0)|0,A=A+Math.imul(Fe,Ve)|0,S=S+Math.imul(Qe,c0)|0,o=o+Math.imul(Qe,d0)|0,o=o+Math.imul(Ne,c0)|0,A=A+Math.imul(Ne,d0)|0,S=S+Math.imul(Ge,Oe)|0,o=o+Math.imul(Ge,Ie)|0,o=o+Math.imul(Ye,Oe)|0,A=A+Math.imul(Ye,Ie)|0,S=S+Math.imul(Pe,C)|0,o=o+Math.imul(Pe,w)|0,o=o+Math.imul(Me,C)|0,A=A+Math.imul(Me,w)|0,S=S+Math.imul(Ce,D)|0,o=o+Math.imul(Ce,m)|0,o=o+Math.imul(we,D)|0,A=A+Math.imul(we,m)|0,S=S+Math.imul(se,L)|0,o=o+Math.imul(se,V)|0,o=o+Math.imul(Ee,L)|0,A=A+Math.imul(Ee,V)|0;var pe=(T+S|0)+((o&8191)<<13)|0;T=(A+(o>>>13)|0)+(pe>>>26)|0,pe&=67108863,S=Math.imul(l0,e0),o=Math.imul(l0,f0),o=o+Math.imul(He,e0)|0,A=Math.imul(He,f0),S=S+Math.imul(Le,o0)|0,o=o+Math.imul(Le,x0)|0,o=o+Math.imul(u0,o0)|0,A=A+Math.imul(u0,x0)|0,S=S+Math.imul(Je,t0)|0,o=o+Math.imul(Je,Ve)|0,o=o+Math.imul(i0,t0)|0,A=A+Math.imul(i0,Ve)|0,S=S+Math.imul(qe,c0)|0,o=o+Math.imul(qe,d0)|0,o=o+Math.imul(Fe,c0)|0,A=A+Math.imul(Fe,d0)|0,S=S+Math.imul(Qe,Oe)|0,o=o+Math.imul(Qe,Ie)|0,o=o+Math.imul(Ne,Oe)|0,A=A+Math.imul(Ne,Ie)|0,S=S+Math.imul(Ge,C)|0,o=o+Math.imul(Ge,w)|0,o=o+Math.imul(Ye,C)|0,A=A+Math.imul(Ye,w)|0,S=S+Math.imul(Pe,D)|0,o=o+Math.imul(Pe,m)|0,o=o+Math.imul(Me,D)|0,A=A+Math.imul(Me,m)|0,S=S+Math.imul(Ce,L)|0,o=o+Math.imul(Ce,V)|0,o=o+Math.imul(we,L)|0,A=A+Math.imul(we,V)|0;var de=(T+S|0)+((o&8191)<<13)|0;T=(A+(o>>>13)|0)+(de>>>26)|0,de&=67108863,S=Math.imul(l0,o0),o=Math.imul(l0,x0),o=o+Math.imul(He,o0)|0,A=Math.imul(He,x0),S=S+Math.imul(Le,t0)|0,o=o+Math.imul(Le,Ve)|0,o=o+Math.imul(u0,t0)|0,A=A+Math.imul(u0,Ve)|0,S=S+Math.imul(Je,c0)|0,o=o+Math.imul(Je,d0)|0,o=o+Math.imul(i0,c0)|0,A=A+Math.imul(i0,d0)|0,S=S+Math.imul(qe,Oe)|0,o=o+Math.imul(qe,Ie)|0,o=o+Math.imul(Fe,Oe)|0,A=A+Math.imul(Fe,Ie)|0,S=S+Math.imul(Qe,C)|0,o=o+Math.imul(Qe,w)|0,o=o+Math.imul(Ne,C)|0,A=A+Math.imul(Ne,w)|0,S=S+Math.imul(Ge,D)|0,o=o+Math.imul(Ge,m)|0,o=o+Math.imul(Ye,D)|0,A=A+Math.imul(Ye,m)|0,S=S+Math.imul(Pe,L)|0,o=o+Math.imul(Pe,V)|0,o=o+Math.imul(Me,L)|0,A=A+Math.imul(Me,V)|0;var ye=(T+S|0)+((o&8191)<<13)|0;T=(A+(o>>>13)|0)+(ye>>>26)|0,ye&=67108863,S=Math.imul(l0,t0),o=Math.imul(l0,Ve),o=o+Math.imul(He,t0)|0,A=Math.imul(He,Ve),S=S+Math.imul(Le,c0)|0,o=o+Math.imul(Le,d0)|0,o=o+Math.imul(u0,c0)|0,A=A+Math.imul(u0,d0)|0,S=S+Math.imul(Je,Oe)|0,o=o+Math.imul(Je,Ie)|0,o=o+Math.imul(i0,Oe)|0,A=A+Math.imul(i0,Ie)|0,S=S+Math.imul(qe,C)|0,o=o+Math.imul(qe,w)|0,o=o+Math.imul(Fe,C)|0,A=A+Math.imul(Fe,w)|0,S=S+Math.imul(Qe,D)|0,o=o+Math.imul(Qe,m)|0,o=o+Math.imul(Ne,D)|0,A=A+Math.imul(Ne,m)|0,S=S+Math.imul(Ge,L)|0,o=o+Math.imul(Ge,V)|0,o=o+Math.imul(Ye,L)|0,A=A+Math.imul(Ye,V)|0;var ce=(T+S|0)+((o&8191)<<13)|0;T=(A+(o>>>13)|0)+(ce>>>26)|0,ce&=67108863,S=Math.imul(l0,c0),o=Math.imul(l0,d0),o=o+Math.imul(He,c0)|0,A=Math.imul(He,d0),S=S+Math.imul(Le,Oe)|0,o=o+Math.imul(Le,Ie)|0,o=o+Math.imul(u0,Oe)|0,A=A+Math.imul(u0,Ie)|0,S=S+Math.imul(Je,C)|0,o=o+Math.imul(Je,w)|0,o=o+Math.imul(i0,C)|0,A=A+Math.imul(i0,w)|0,S=S+Math.imul(qe,D)|0,o=o+Math.imul(qe,m)|0,o=o+Math.imul(Fe,D)|0,A=A+Math.imul(Fe,m)|0,S=S+Math.imul(Qe,L)|0,o=o+Math.imul(Qe,V)|0,o=o+Math.imul(Ne,L)|0,A=A+Math.imul(Ne,V)|0;var le=(T+S|0)+((o&8191)<<13)|0;T=(A+(o>>>13)|0)+(le>>>26)|0,le&=67108863,S=Math.imul(l0,Oe),o=Math.imul(l0,Ie),o=o+Math.imul(He,Oe)|0,A=Math.imul(He,Ie),S=S+Math.imul(Le,C)|0,o=o+Math.imul(Le,w)|0,o=o+Math.imul(u0,C)|0,A=A+Math.imul(u0,w)|0,S=S+Math.imul(Je,D)|0,o=o+Math.imul(Je,m)|0,o=o+Math.imul(i0,D)|0,A=A+Math.imul(i0,m)|0,S=S+Math.imul(qe,L)|0,o=o+Math.imul(qe,V)|0,o=o+Math.imul(Fe,L)|0,A=A+Math.imul(Fe,V)|0;var be=(T+S|0)+((o&8191)<<13)|0;T=(A+(o>>>13)|0)+(be>>>26)|0,be&=67108863,S=Math.imul(l0,C),o=Math.imul(l0,w),o=o+Math.imul(He,C)|0,A=Math.imul(He,w),S=S+Math.imul(Le,D)|0,o=o+Math.imul(Le,m)|0,o=o+Math.imul(u0,D)|0,A=A+Math.imul(u0,m)|0,S=S+Math.imul(Je,L)|0,o=o+Math.imul(Je,V)|0,o=o+Math.imul(i0,L)|0,A=A+Math.imul(i0,V)|0;var oe=(T+S|0)+((o&8191)<<13)|0;T=(A+(o>>>13)|0)+(oe>>>26)|0,oe&=67108863,S=Math.imul(l0,D),o=Math.imul(l0,m),o=o+Math.imul(He,D)|0,A=Math.imul(He,m),S=S+Math.imul(Le,L)|0,o=o+Math.imul(Le,V)|0,o=o+Math.imul(u0,L)|0,A=A+Math.imul(u0,V)|0;var Z=(T+S|0)+((o&8191)<<13)|0;T=(A+(o>>>13)|0)+(Z>>>26)|0,Z&=67108863,S=Math.imul(l0,L),o=Math.imul(l0,V),o=o+Math.imul(He,L)|0,A=Math.imul(He,V);var G=(T+S|0)+((o&8191)<<13)|0;return T=(A+(o>>>13)|0)+(G>>>26)|0,G&=67108863,I[0]=fe,I[1]=ie,I[2]=he,I[3]=re,I[4]=xe,I[5]=ue,I[6]=ve,I[7]=me,I[8]=_e,I[9]=Ae,I[10]=pe,I[11]=de,I[12]=ye,I[13]=ce,I[14]=le,I[15]=be,I[16]=oe,I[17]=Z,I[18]=G,T!==0&&(I[19]=T,p.length++),p};Math.imul||(R=B);function k(_,f,h){h.negative=f.negative^_.negative,h.length=_.length+f.length;for(var p=0,g=0,E=0;E<h.length-1;E++){var I=g;g=0;for(var T=p&67108863,S=Math.min(E,f.length-1),o=Math.max(0,E-_.length+1);o<=S;o++){var A=E-o,Y=_.words[A]|0,j=f.words[o]|0,W=Y*j,J=W&67108863;I=I+(W/67108864|0)|0,J=J+T|0,T=J&67108863,I=I+(J>>>26)|0,g+=I>>>26,I&=67108863}h.words[E]=T,p=I,I=g}return p!==0?h.words[E]=p:h.length--,h.strip()}function q(_,f,h){var p=new F;return p.mulp(_,f,h)}n.prototype.mulTo=function(f,h){var p,g=this.length+f.length;return this.length===10&&f.length===10?p=R(this,f,h):g<63?p=B(this,f,h):g<1024?p=k(this,f,h):p=q(this,f,h),p};function F(_,f){this.x=_,this.y=f}F.prototype.makeRBT=function(f){for(var h=new Array(f),p=n.prototype._countBits(f)-1,g=0;g<f;g++)h[g]=this.revBin(g,p,f);return h},F.prototype.revBin=function(f,h,p){if(f===0||f===p-1)return f;for(var g=0,E=0;E<h;E++)g|=(f&1)<<h-E-1,f>>=1;return g},F.prototype.permute=function(f,h,p,g,E,I){for(var T=0;T<I;T++)g[T]=h[f[T]],E[T]=p[f[T]]},F.prototype.transform=function(f,h,p,g,E,I){this.permute(I,f,h,p,g,E);for(var T=1;T<E;T<<=1)for(var S=T<<1,o=Math.cos(2*Math.PI/S),A=Math.sin(2*Math.PI/S),Y=0;Y<E;Y+=S)for(var j=o,W=A,J=0;J<T;J++){var se=p[Y+J],Ee=g[Y+J],ge=p[Y+J+T],Ce=g[Y+J+T],we=j*ge-W*Ce;Ce=j*Ce+W*ge,ge=we,p[Y+J]=se+ge,g[Y+J]=Ee+Ce,p[Y+J+T]=se-ge,g[Y+J+T]=Ee-Ce,J!==S&&(we=o*j-A*W,W=o*W+A*j,j=we)}},F.prototype.guessLen13b=function(f,h){var p=Math.max(h,f)|1,g=p&1,E=0;for(p=p/2|0;p;p=p>>>1)E++;return 1<<E+1+g},F.prototype.conjugate=function(f,h,p){if(!(p<=1))for(var g=0;g<p/2;g++){var E=f[g];f[g]=f[p-g-1],f[p-g-1]=E,E=h[g],h[g]=-h[p-g-1],h[p-g-1]=-E}},F.prototype.normalize13b=function(f,h){for(var p=0,g=0;g<h/2;g++){var E=Math.round(f[2*g+1]/h)*8192+Math.round(f[2*g]/h)+p;f[g]=E&67108863,E<67108864?p=0:p=E/67108864|0}return f},F.prototype.convert13b=function(f,h,p,g){for(var E=0,I=0;I<h;I++)E=E+(f[I]|0),p[2*I]=E&8191,E=E>>>13,p[2*I+1]=E&8191,E=E>>>13;for(I=2*h;I<g;++I)p[I]=0;r(E===0),r((E&-8192)===0)},F.prototype.stub=function(f){for(var h=new Array(f),p=0;p<f;p++)h[p]=0;return h},F.prototype.mulp=function(f,h,p){var g=2*this.guessLen13b(f.length,h.length),E=this.makeRBT(g),I=this.stub(g),T=new Array(g),S=new Array(g),o=new Array(g),A=new Array(g),Y=new Array(g),j=new Array(g),W=p.words;W.length=g,this.convert13b(f.words,f.length,T,g),this.convert13b(h.words,h.length,A,g),this.transform(T,I,S,o,g,E),this.transform(A,I,Y,j,g,E);for(var J=0;J<g;J++){var se=S[J]*Y[J]-o[J]*j[J];o[J]=S[J]*j[J]+o[J]*Y[J],S[J]=se}return this.conjugate(S,o,g),this.transform(S,o,W,I,g,E),this.conjugate(W,I,g),this.normalize13b(W,g),p.negative=f.negative^h.negative,p.length=f.length+h.length,p.strip()},n.prototype.mul=function(f){var h=new n(null);return h.words=new Array(this.length+f.length),this.mulTo(f,h)},n.prototype.mulf=function(f){var h=new n(null);return h.words=new Array(this.length+f.length),q(this,f,h)},n.prototype.imul=function(f){return this.clone().mulTo(f,this)},n.prototype.imuln=function(f){r(typeof f=="number"),r(f<67108864);for(var h=0,p=0;p<this.length;p++){var g=(this.words[p]|0)*f,E=(g&67108863)+(h&67108863);h>>=26,h+=g/67108864|0,h+=E>>>26,this.words[p]=E&67108863}return h!==0&&(this.words[p]=h,this.length++),this},n.prototype.muln=function(f){return this.clone().imuln(f)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(f){var h=M(f);if(h.length===0)return new n(1);for(var p=this,g=0;g<h.length&&h[g]===0;g++,p=p.sqr());if(++g<h.length)for(var E=p.sqr();g<h.length;g++,E=E.sqr())h[g]!==0&&(p=p.mul(E));return p},n.prototype.iushln=function(f){r(typeof f=="number"&&f>=0);var h=f%26,p=(f-h)/26,g=67108863>>>26-h<<26-h,E;if(h!==0){var I=0;for(E=0;E<this.length;E++){var T=this.words[E]&g,S=(this.words[E]|0)-T<<h;this.words[E]=S|I,I=T>>>26-h}I&&(this.words[E]=I,this.length++)}if(p!==0){for(E=this.length-1;E>=0;E--)this.words[E+p]=this.words[E];for(E=0;E<p;E++)this.words[E]=0;this.length+=p}return this.strip()},n.prototype.ishln=function(f){return r(this.negative===0),this.iushln(f)},n.prototype.iushrn=function(f,h,p){r(typeof f=="number"&&f>=0);var g;h?g=(h-h%26)/26:g=0;var E=f%26,I=Math.min((f-E)/26,this.length),T=67108863^67108863>>>E<<E,S=p;if(g-=I,g=Math.max(0,g),S){for(var o=0;o<I;o++)S.words[o]=this.words[o];S.length=I}if(I!==0)if(this.length>I)for(this.length-=I,o=0;o<this.length;o++)this.words[o]=this.words[o+I];else this.words[0]=0,this.length=1;var A=0;for(o=this.length-1;o>=0&&(A!==0||o>=g);o--){var Y=this.words[o]|0;this.words[o]=A<<26-E|Y>>>E,A=Y&T}return S&&A!==0&&(S.words[S.length++]=A),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.ishrn=function(f,h,p){return r(this.negative===0),this.iushrn(f,h,p)},n.prototype.shln=function(f){return this.clone().ishln(f)},n.prototype.ushln=function(f){return this.clone().iushln(f)},n.prototype.shrn=function(f){return this.clone().ishrn(f)},n.prototype.ushrn=function(f){return this.clone().iushrn(f)},n.prototype.testn=function(f){r(typeof f=="number"&&f>=0);var h=f%26,p=(f-h)/26,g=1<<h;if(this.length<=p)return!1;var E=this.words[p];return!!(E&g)},n.prototype.imaskn=function(f){r(typeof f=="number"&&f>=0);var h=f%26,p=(f-h)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=p)return this;if(h!==0&&p++,this.length=Math.min(p,this.length),h!==0){var g=67108863^67108863>>>h<<h;this.words[this.length-1]&=g}return this.strip()},n.prototype.maskn=function(f){return this.clone().imaskn(f)},n.prototype.iaddn=function(f){return r(typeof f=="number"),r(f<67108864),f<0?this.isubn(-f):this.negative!==0?this.length===1&&(this.words[0]|0)<f?(this.words[0]=f-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(f),this.negative=1,this):this._iaddn(f)},n.prototype._iaddn=function(f){this.words[0]+=f;for(var h=0;h<this.length&&this.words[h]>=67108864;h++)this.words[h]-=67108864,h===this.length-1?this.words[h+1]=1:this.words[h+1]++;return this.length=Math.max(this.length,h+1),this},n.prototype.isubn=function(f){if(r(typeof f=="number"),r(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 h=0;h<this.length&&this.words[h]<0;h++)this.words[h]+=67108864,this.words[h+1]-=1;return this.strip()},n.prototype.addn=function(f){return this.clone().iaddn(f)},n.prototype.subn=function(f){return this.clone().isubn(f)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(f,h,p){var g=f.length+p,E;this._expand(g);var I,T=0;for(E=0;E<f.length;E++){I=(this.words[E+p]|0)+T;var S=(f.words[E]|0)*h;I-=S&67108863,T=(I>>26)-(S/67108864|0),this.words[E+p]=I&67108863}for(;E<this.length-p;E++)I=(this.words[E+p]|0)+T,T=I>>26,this.words[E+p]=I&67108863;if(T===0)return this.strip();for(r(T===-1),T=0,E=0;E<this.length;E++)I=-(this.words[E]|0)+T,T=I>>26,this.words[E]=I&67108863;return this.negative=1,this.strip()},n.prototype._wordDiv=function(f,h){var p=this.length-f.length,g=this.clone(),E=f,I=E.words[E.length-1]|0,T=this._countBits(I);p=26-T,p!==0&&(E=E.ushln(p),g.iushln(p),I=E.words[E.length-1]|0);var S=g.length-E.length,o;if(h!=="mod"){o=new n(null),o.length=S+1,o.words=new Array(o.length);for(var A=0;A<o.length;A++)o.words[A]=0}var Y=g.clone()._ishlnsubmul(E,1,S);Y.negative===0&&(g=Y,o&&(o.words[S]=1));for(var j=S-1;j>=0;j--){var W=(g.words[E.length+j]|0)*67108864+(g.words[E.length+j-1]|0);for(W=Math.min(W/I|0,67108863),g._ishlnsubmul(E,W,j);g.negative!==0;)W--,g.negative=0,g._ishlnsubmul(E,1,j),g.isZero()||(g.negative^=1);o&&(o.words[j]=W)}return o&&o.strip(),g.strip(),h!=="div"&&p!==0&&g.iushrn(p),{div:o||null,mod:g}},n.prototype.divmod=function(f,h,p){if(r(!f.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var g,E,I;return this.negative!==0&&f.negative===0?(I=this.neg().divmod(f,h),h!=="mod"&&(g=I.div.neg()),h!=="div"&&(E=I.mod.neg(),p&&E.negative!==0&&E.iadd(f)),{div:g,mod:E}):this.negative===0&&f.negative!==0?(I=this.divmod(f.neg(),h),h!=="mod"&&(g=I.div.neg()),{div:g,mod:I.mod}):this.negative&f.negative?(I=this.neg().divmod(f.neg(),h),h!=="div"&&(E=I.mod.neg(),p&&E.negative!==0&&E.isub(f)),{div:I.div,mod:E}):f.length>this.length||this.cmp(f)<0?{div:new n(0),mod:this}:f.length===1?h==="div"?{div:this.divn(f.words[0]),mod:null}:h==="mod"?{div:null,mod:new n(this.modn(f.words[0]))}:{div:this.divn(f.words[0]),mod:new n(this.modn(f.words[0]))}:this._wordDiv(f,h)},n.prototype.div=function(f){return this.divmod(f,"div",!1).div},n.prototype.mod=function(f){return this.divmod(f,"mod",!1).mod},n.prototype.umod=function(f){return this.divmod(f,"mod",!0).mod},n.prototype.divRound=function(f){var h=this.divmod(f);if(h.mod.isZero())return h.div;var p=h.div.negative!==0?h.mod.isub(f):h.mod,g=f.ushrn(1),E=f.andln(1),I=p.cmp(g);return I<0||E===1&&I===0?h.div:h.div.negative!==0?h.div.isubn(1):h.div.iaddn(1)},n.prototype.modn=function(f){r(f<=67108863);for(var h=(1<<26)%f,p=0,g=this.length-1;g>=0;g--)p=(h*p+(this.words[g]|0))%f;return p},n.prototype.idivn=function(f){r(f<=67108863);for(var h=0,p=this.length-1;p>=0;p--){var g=(this.words[p]|0)+h*67108864;this.words[p]=g/f|0,h=g%f}return this.strip()},n.prototype.divn=function(f){return this.clone().idivn(f)},n.prototype.egcd=function(f){r(f.negative===0),r(!f.isZero());var h=this,p=f.clone();h.negative!==0?h=h.umod(f):h=h.clone();for(var g=new n(1),E=new n(0),I=new n(0),T=new n(1),S=0;h.isEven()&&p.isEven();)h.iushrn(1),p.iushrn(1),++S;for(var o=p.clone(),A=h.clone();!h.isZero();){for(var Y=0,j=1;!(h.words[0]&j)&&Y<26;++Y,j<<=1);if(Y>0)for(h.iushrn(Y);Y-- >0;)(g.isOdd()||E.isOdd())&&(g.iadd(o),E.isub(A)),g.iushrn(1),E.iushrn(1);for(var W=0,J=1;!(p.words[0]&J)&&W<26;++W,J<<=1);if(W>0)for(p.iushrn(W);W-- >0;)(I.isOdd()||T.isOdd())&&(I.iadd(o),T.isub(A)),I.iushrn(1),T.iushrn(1);h.cmp(p)>=0?(h.isub(p),g.isub(I),E.isub(T)):(p.isub(h),I.isub(g),T.isub(E))}return{a:I,b:T,gcd:p.iushln(S)}},n.prototype._invmp=function(f){r(f.negative===0),r(!f.isZero());var h=this,p=f.clone();h.negative!==0?h=h.umod(f):h=h.clone();for(var g=new n(1),E=new n(0),I=p.clone();h.cmpn(1)>0&&p.cmpn(1)>0;){for(var T=0,S=1;!(h.words[0]&S)&&T<26;++T,S<<=1);if(T>0)for(h.iushrn(T);T-- >0;)g.isOdd()&&g.iadd(I),g.iushrn(1);for(var o=0,A=1;!(p.words[0]&A)&&o<26;++o,A<<=1);if(o>0)for(p.iushrn(o);o-- >0;)E.isOdd()&&E.iadd(I),E.iushrn(1);h.cmp(p)>=0?(h.isub(p),g.isub(E)):(p.isub(h),E.isub(g))}var Y;return h.cmpn(1)===0?Y=g:Y=E,Y.cmpn(0)<0&&Y.iadd(f),Y},n.prototype.gcd=function(f){if(this.isZero())return f.abs();if(f.isZero())return this.abs();var h=this.clone(),p=f.clone();h.negative=0,p.negative=0;for(var g=0;h.isEven()&&p.isEven();g++)h.iushrn(1),p.iushrn(1);do{for(;h.isEven();)h.iushrn(1);for(;p.isEven();)p.iushrn(1);var E=h.cmp(p);if(E<0){var I=h;h=p,p=I}else if(E===0||p.cmpn(1)===0)break;h.isub(p)}while(!0);return p.iushln(g)},n.prototype.invm=function(f){return this.egcd(f).a.umod(f)},n.prototype.isEven=function(){return(this.words[0]&1)===0},n.prototype.isOdd=function(){return(this.words[0]&1)===1},n.prototype.andln=function(f){return this.words[0]&f},n.prototype.bincn=function(f){r(typeof f=="number");var h=f%26,p=(f-h)/26,g=1<<h;if(this.length<=p)return this._expand(p+1),this.words[p]|=g,this;for(var E=g,I=p;E!==0&&I<this.length;I++){var T=this.words[I]|0;T+=E,E=T>>>26,T&=67108863,this.words[I]=T}return E!==0&&(this.words[I]=E,this.length++),this},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.prototype.cmpn=function(f){var h=f<0;if(this.negative!==0&&!h)return-1;if(this.negative===0&&h)return 1;this.strip();var p;if(this.length>1)p=1;else{h&&(f=-f),r(f<=67108863,"Number is too big");var g=this.words[0]|0;p=g===f?0:g<f?-1:1}return this.negative!==0?-p|0:p},n.prototype.cmp=function(f){if(this.negative!==0&&f.negative===0)return-1;if(this.negative===0&&f.negative!==0)return 1;var h=this.ucmp(f);return this.negative!==0?-h|0:h},n.prototype.ucmp=function(f){if(this.length>f.length)return 1;if(this.length<f.length)return-1;for(var h=0,p=this.length-1;p>=0;p--){var g=this.words[p]|0,E=f.words[p]|0;if(g!==E){g<E?h=-1:g>E&&(h=1);break}}return h},n.prototype.gtn=function(f){return this.cmpn(f)===1},n.prototype.gt=function(f){return this.cmp(f)===1},n.prototype.gten=function(f){return this.cmpn(f)>=0},n.prototype.gte=function(f){return this.cmp(f)>=0},n.prototype.ltn=function(f){return this.cmpn(f)===-1},n.prototype.lt=function(f){return this.cmp(f)===-1},n.prototype.lten=function(f){return this.cmpn(f)<=0},n.prototype.lte=function(f){return this.cmp(f)<=0},n.prototype.eqn=function(f){return this.cmpn(f)===0},n.prototype.eq=function(f){return this.cmp(f)===0},n.red=function(f){return new Q(f)},n.prototype.toRed=function(f){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),f.convertTo(this)._forceRed(f)},n.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(f){return this.red=f,this},n.prototype.forceRed=function(f){return r(!this.red,"Already a number in reduction context"),this._forceRed(f)},n.prototype.redAdd=function(f){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,f)},n.prototype.redIAdd=function(f){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,f)},n.prototype.redSub=function(f){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,f)},n.prototype.redISub=function(f){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,f)},n.prototype.redShl=function(f){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,f)},n.prototype.redMul=function(f){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.mul(this,f)},n.prototype.redIMul=function(f){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.imul(this,f)},n.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(f){return r(this.red&&!f.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,f)};var P={k256:null,p224:null,p192:null,p25519:null};function O(_,f){this.name=_,this.p=new n(f,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}O.prototype._tmp=function(){var f=new n(null);return f.words=new Array(Math.ceil(this.n/13)),f},O.prototype.ireduce=function(f){var h=f,p;do this.split(h,this.tmp),h=this.imulK(h),h=h.iadd(this.tmp),p=h.bitLength();while(p>this.n);var g=p<this.n?-1:h.ucmp(this.p);return g===0?(h.words[0]=0,h.length=1):g>0?h.isub(this.p):h.strip!==void 0?h.strip():h._strip(),h},O.prototype.split=function(f,h){f.iushrn(this.n,0,h)},O.prototype.imulK=function(f){return f.imul(this.k)};function H(){O.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}a(H,O),H.prototype.split=function(f,h){for(var p=4194303,g=Math.min(f.length,9),E=0;E<g;E++)h.words[E]=f.words[E];if(h.length=g,f.length<=9){f.words[0]=0,f.length=1;return}var I=f.words[9];for(h.words[h.length++]=I&p,E=10;E<f.length;E++){var T=f.words[E]|0;f.words[E-10]=(T&p)<<4|I>>>22,I=T}I>>>=22,f.words[E-10]=I,I===0&&f.length>10?f.length-=10:f.length-=9},H.prototype.imulK=function(f){f.words[f.length]=0,f.words[f.length+1]=0,f.length+=2;for(var h=0,p=0;p<f.length;p++){var g=f.words[p]|0;h+=g*977,f.words[p]=h&67108863,h=g*64+(h/67108864|0)}return f.words[f.length-1]===0&&(f.length--,f.words[f.length-1]===0&&f.length--),f};function U(){O.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}a(U,O);function K(){O.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}a(K,O);function X(){O.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}a(X,O),X.prototype.imulK=function(f){for(var h=0,p=0;p<f.length;p++){var g=(f.words[p]|0)*19+h,E=g&67108863;g>>>=26,f.words[p]=E,h=g}return h!==0&&(f.words[f.length++]=h),f},n._prime=function(f){if(P[f])return P[f];var h;if(f==="k256")h=new H;else if(f==="p224")h=new U;else if(f==="p192")h=new K;else if(f==="p25519")h=new X;else throw new Error("Unknown prime "+f);return P[f]=h,h};function Q(_){if(typeof _=="string"){var f=n._prime(_);this.m=f.p,this.prime=f}else r(_.gtn(1),"modulus must be greater than 1"),this.m=_,this.prime=null}Q.prototype._verify1=function(f){r(f.negative===0,"red works only with positives"),r(f.red,"red works only with red numbers")},Q.prototype._verify2=function(f,h){r((f.negative|h.negative)===0,"red works only with positives"),r(f.red&&f.red===h.red,"red works only with red numbers")},Q.prototype.imod=function(f){return this.prime?this.prime.ireduce(f)._forceRed(this):f.umod(this.m)._forceRed(this)},Q.prototype.neg=function(f){return f.isZero()?f.clone():this.m.sub(f)._forceRed(this)},Q.prototype.add=function(f,h){this._verify2(f,h);var p=f.add(h);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},Q.prototype.iadd=function(f,h){this._verify2(f,h);var p=f.iadd(h);return p.cmp(this.m)>=0&&p.isub(this.m),p},Q.prototype.sub=function(f,h){this._verify2(f,h);var p=f.sub(h);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},Q.prototype.isub=function(f,h){this._verify2(f,h);var p=f.isub(h);return p.cmpn(0)<0&&p.iadd(this.m),p},Q.prototype.shl=function(f,h){return this._verify1(f),this.imod(f.ushln(h))},Q.prototype.imul=function(f,h){return this._verify2(f,h),this.imod(f.imul(h))},Q.prototype.mul=function(f,h){return this._verify2(f,h),this.imod(f.mul(h))},Q.prototype.isqr=function(f){return this.imul(f,f.clone())},Q.prototype.sqr=function(f){return this.mul(f,f)},Q.prototype.sqrt=function(f){if(f.isZero())return f.clone();var h=this.m.andln(3);if(r(h%2===1),h===3){var p=this.m.add(new n(1)).iushrn(2);return this.pow(f,p)}for(var g=this.m.subn(1),E=0;!g.isZero()&&g.andln(1)===0;)E++,g.iushrn(1);r(!g.isZero());var I=new n(1).toRed(this),T=I.redNeg(),S=this.m.subn(1).iushrn(1),o=this.m.bitLength();for(o=new n(2*o*o).toRed(this);this.pow(o,S).cmp(T)!==0;)o.redIAdd(T);for(var A=this.pow(o,g),Y=this.pow(f,g.addn(1).iushrn(1)),j=this.pow(f,g),W=E;j.cmp(I)!==0;){for(var J=j,se=0;J.cmp(I)!==0;se++)J=J.redSqr();r(se<W);var Ee=this.pow(A,new n(1).iushln(W-se-1));Y=Y.redMul(Ee),A=Ee.redSqr(),j=j.redMul(A),W=se}return Y},Q.prototype.invm=function(f){var h=f._invmp(this.m);return h.negative!==0?(h.negative=0,this.imod(h).redNeg()):this.imod(h)},Q.prototype.pow=function(f,h){if(h.isZero())return new n(1).toRed(this);if(h.cmpn(1)===0)return f.clone();var p=4,g=new Array(1<<p);g[0]=new n(1).toRed(this),g[1]=f;for(var E=2;E<g.length;E++)g[E]=this.mul(g[E-1],f);var I=g[0],T=0,S=0,o=h.bitLength()%26;for(o===0&&(o=26),E=h.length-1;E>=0;E--){for(var A=h.words[E],Y=o-1;Y>=0;Y--){var j=A>>Y&1;if(I!==g[0]&&(I=this.sqr(I)),j===0&&T===0){S=0;continue}T<<=1,T|=j,S++,!(S!==p&&(E!==0||Y!==0))&&(I=this.mul(I,g[T]),S=0,T=0)}o=26}return I},Q.prototype.convertTo=function(f){var h=f.umod(this.m);return h===f?h.clone():h},Q.prototype.convertFrom=function(f){var h=f.clone();return h.red=null,h},n.mont=function(f){return new $(f)};function $(_){Q.call(this,_),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new n(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}a($,Q),$.prototype.convertTo=function(f){return this.imod(f.ushln(this.shift))},$.prototype.convertFrom=function(f){var h=this.imod(f.mul(this.rinv));return h.red=null,h},$.prototype.imul=function(f,h){if(f.isZero()||h.isZero())return f.words[0]=0,f.length=1,f;var p=f.imul(h),g=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),E=p.isub(g).iushrn(this.shift),I=E;return E.cmp(this.m)>=0?I=E.isub(this.m):E.cmpn(0)<0&&(I=E.iadd(this.m)),I._forceRed(this)},$.prototype.mul=function(f,h){if(f.isZero()||h.isZero())return new n(0)._forceRed(this);var p=f.mul(h),g=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),E=p.isub(g).iushrn(this.shift),I=E;return E.cmp(this.m)>=0?I=E.isub(this.m):E.cmpn(0)<0&&(I=E.iadd(this.m)),I._forceRed(this)},$.prototype.invm=function(f){var h=this.imod(f._invmp(this.m).mul(this.r2));return h._forceRed(this)}})(i,ke)})(Wi);var yt=Wi.exports,It=Af;function Af(i,e){if(!i)throw new Error(e||"Assertion failed")}Af.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)};var Yi={};(function(i){var e=i;function t(n,y){if(Array.isArray(n))return n.slice();if(!n)return[];var x=[];if(typeof n!="string"){for(var u=0;u<n.length;u++)x[u]=n[u]|0;return x}if(y==="hex"){n=n.replace(/[^a-z0-9]+/ig,""),n.length%2!==0&&(n="0"+n);for(var u=0;u<n.length;u+=2)x.push(parseInt(n[u]+n[u+1],16))}else for(var u=0;u<n.length;u++){var c=n.charCodeAt(u),d=c>>8,v=c&255;d?x.push(d,v):x.push(v)}return x}e.toArray=t;function r(n){return n.length===1?"0"+n:n}e.zero2=r;function a(n){for(var y="",x=0;x<n.length;x++)y+=r(n[x].toString(16));return y}e.toHex=a,e.encode=function(y,x){return x==="hex"?a(y):y}})(Yi);(function(i){var e=i,t=yt,r=It,a=Yi;e.assert=r,e.toArray=a.toArray,e.zero2=a.zero2,e.toHex=a.toHex,e.encode=a.encode;function n(d,v,b){var M=new Array(Math.max(d.bitLength(),b)+1),B;for(B=0;B<M.length;B+=1)M[B]=0;var R=1<<v+1,k=d.clone();for(B=0;B<M.length;B++){var q,F=k.andln(R-1);k.isOdd()?(F>(R>>1)-1?q=(R>>1)-F:q=F,k.isubn(q)):q=0,M[B]=q,k.iushrn(1)}return M}e.getNAF=n;function y(d,v){var b=[[],[]];d=d.clone(),v=v.clone();for(var M=0,B=0,R;d.cmpn(-M)>0||v.cmpn(-B)>0;){var k=d.andln(3)+M&3,q=v.andln(3)+B&3;k===3&&(k=-1),q===3&&(q=-1);var F;k&1?(R=d.andln(7)+M&7,(R===3||R===5)&&q===2?F=-k:F=k):F=0,b[0].push(F);var P;q&1?(R=v.andln(7)+B&7,(R===3||R===5)&&k===2?P=-q:P=q):P=0,b[1].push(P),2*M===F+1&&(M=1-M),2*B===P+1&&(B=1-B),d.iushrn(1),v.iushrn(1)}return b}e.getJSF=y;function x(d,v,b){var M="_"+v;d.prototype[v]=function(){return this[M]!==void 0?this[M]:this[M]=b.call(this)}}e.cachedProperty=x;function u(d){return typeof d=="string"?e.toArray(d,"hex"):d}e.parseBytes=u;function c(d){return new t(d,"hex","le")}e.intFromLE=c})(V0);var ji={exports:{}},yi;ji.exports=function(e){return yi||(yi=new _t(null)),yi.generate(e)};function _t(i){this.rand=i}ji.exports.Rand=_t;_t.prototype.generate=function(e){return this._rand(e)};_t.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r<t.length;r++)t[r]=this.rand.getByte();return t};if(typeof self=="object")self.crypto&&self.crypto.getRandomValues?_t.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?_t.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:typeof window=="object"&&(_t.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var Yn=Er;if(typeof Yn.randomBytes!="function")throw new Error("Not supported");_t.prototype._rand=function(e){return Yn.randomBytes(e)}}catch{}var Ef=ji.exports,Ki={},Ct=yt,fr=V0,gr=fr.getNAF,ms=fr.getJSF,mr=fr.assert;function wt(i,e){this.type=i,this.p=new Ct(e.p,16),this.red=e.prime?Ct.red(e.prime):Ct.mont(this.p),this.zero=new Ct(0).toRed(this.red),this.one=new Ct(1).toRed(this.red),this.two=new Ct(2).toRed(this.red),this.n=e.n&&new Ct(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.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 t=this.n&&this.p.div(this.n);!t||t.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var Br=wt;wt.prototype.point=function(){throw new Error("Not implemented")};wt.prototype.validate=function(){throw new Error("Not implemented")};wt.prototype._fixedNafMul=function(e,t){mr(e.precomputed);var r=e._getDoubles(),a=gr(t,1,this._bitLength),n=(1<<r.step+1)-(r.step%2===0?2:1);n/=3;var y=[],x,u;for(x=0;x<a.length;x+=r.step){u=0;for(var c=x+r.step-1;c>=x;c--)u=(u<<1)+a[c];y.push(u)}for(var d=this.jpoint(null,null,null),v=this.jpoint(null,null,null),b=n;b>0;b--){for(x=0;x<y.length;x++)u=y[x],u===b?v=v.mixedAdd(r.points[x]):u===-b&&(v=v.mixedAdd(r.points[x].neg()));d=d.add(v)}return d.toP()};wt.prototype._wnafMul=function(e,t){var r=4,a=e._getNAFPoints(r);r=a.wnd;for(var n=a.points,y=gr(t,r,this._bitLength),x=this.jpoint(null,null,null),u=y.length-1;u>=0;u--){for(var c=0;u>=0&&y[u]===0;u--)c++;if(u>=0&&c++,x=x.dblp(c),u<0)break;var d=y[u];mr(d!==0),e.type==="affine"?d>0?x=x.mixedAdd(n[d-1>>1]):x=x.mixedAdd(n[-d-1>>1].neg()):d>0?x=x.add(n[d-1>>1]):x=x.add(n[-d-1>>1].neg())}return e.type==="affine"?x.toP():x};wt.prototype._wnafMulAdd=function(e,t,r,a,n){var y=this._wnafT1,x=this._wnafT2,u=this._wnafT3,c=0,d,v,b;for(d=0;d<a;d++){b=t[d];var M=b._getNAFPoints(e);y[d]=M.wnd,x[d]=M.points}for(d=a-1;d>=1;d-=2){var B=d-1,R=d;if(y[B]!==1||y[R]!==1){u[B]=gr(r[B],y[B],this._bitLength),u[R]=gr(r[R],y[R],this._bitLength),c=Math.max(u[B].length,c),c=Math.max(u[R].length,c);continue}var k=[t[B],null,null,t[R]];t[B].y.cmp(t[R].y)===0?(k[1]=t[B].add(t[R]),k[2]=t[B].toJ().mixedAdd(t[R].neg())):t[B].y.cmp(t[R].y.redNeg())===0?(k[1]=t[B].toJ().mixedAdd(t[R]),k[2]=t[B].add(t[R].neg())):(k[1]=t[B].toJ().mixedAdd(t[R]),k[2]=t[B].toJ().mixedAdd(t[R].neg()));var q=[-3,-1,-5,-7,0,7,5,1,3],F=ms(r[B],r[R]);for(c=Math.max(F[0].length,c),u[B]=new Array(c),u[R]=new Array(c),v=0;v<c;v++){var P=F[0][v]|0,O=F[1][v]|0;u[B][v]=q[(P+1)*3+(O+1)],u[R][v]=0,x[B]=k}}var H=this.jpoint(null,null,null),U=this._wnafT4;for(d=c;d>=0;d--){for(var K=0;d>=0;){var X=!0;for(v=0;v<a;v++)U[v]=u[v][d]|0,U[v]!==0&&(X=!1);if(!X)break;K++,d--}if(d>=0&&K++,H=H.dblp(K),d<0)break;for(v=0;v<a;v++){var Q=U[v];Q!==0&&(Q>0?b=x[v][Q-1>>1]:Q<0&&(b=x[v][-Q-1>>1].neg()),b.type==="affine"?H=H.mixedAdd(b):H=H.add(b))}}for(d=0;d<a;d++)x[d]=null;return n?H:H.toP()};function G0(i,e){this.curve=i,this.type=e,this.precomputed=null}wt.BasePoint=G0;G0.prototype.eq=function(){throw new Error("Not implemented")};G0.prototype.validate=function(){return this.curve.validate(this)};wt.prototype.decodePoint=function(e,t){e=fr.toArray(e,t);var r=this.p.byteLength();if((e[0]===4||e[0]===6||e[0]===7)&&e.length-1===2*r){e[0]===6?mr(e[e.length-1]%2===0):e[0]===7&&mr(e[e.length-1]%2===1);var a=this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));return a}else if((e[0]===2||e[0]===3)&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),e[0]===3);throw new Error("Unknown point format")};G0.prototype.encodeCompressed=function(e){return this.encode(e,!0)};G0.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))};G0.prototype.encode=function(e,t){return fr.encode(this._encode(t),e)};G0.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this};G0.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return t?t.points.length>=Math.ceil((e.bitLength()+1)/t.step):!1};G0.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],a=this,n=0;n<t;n+=e){for(var y=0;y<e;y++)a=a.dbl();r.push(a)}return{step:e,points:r}};G0.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,a=r===1?null:this.dbl(),n=1;n<r;n++)t[n]=t[n-1].add(a);return{wnd:e,points:t}};G0.prototype._getBeta=function(){return null};G0.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t};var Fi={exports:{}};typeof Object.create=="function"?Fi.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Fi.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}};var Cr=Fi.exports,_s=V0,g0=yt,Vi=Cr,Ht=Br,As=_s.assert;function Q0(i){Ht.call(this,"short",i),this.a=new g0(i.a,16).toRed(this.red),this.b=new g0(i.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(i),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}Vi(Q0,Ht);var Es=Q0;Q0.prototype._getEndomorphism=function(e){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var t,r;if(e.beta)t=new g0(e.beta,16).toRed(this.red);else{var a=this._getEndoRoots(this.p);t=a[0].cmp(a[1])<0?a[0]:a[1],t=t.toRed(this.red)}if(e.lambda)r=new g0(e.lambda,16);else{var n=this._getEndoRoots(this.n);this.g.mul(n[0]).x.cmp(this.g.x.redMul(t))===0?r=n[0]:(r=n[1],As(this.g.mul(r).x.cmp(this.g.x.redMul(t))===0))}var y;return e.basis?y=e.basis.map(function(x){return{a:new g0(x.a,16),b:new g0(x.b,16)}}):y=this._getEndoBasis(r),{beta:t,lambda:r,basis:y}}};Q0.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:g0.mont(e),r=new g0(2).toRed(t).redInvm(),a=r.redNeg(),n=new g0(3).toRed(t).redNeg().redSqrt().redMul(r),y=a.redAdd(n).fromRed(),x=a.redSub(n).fromRed();return[y,x]};Q0.prototype._getEndoBasis=function(e){for(var t=this.n.ushrn(Math.floor(this.n.bitLength()/2)),r=e,a=this.n.clone(),n=new g0(1),y=new g0(0),x=new g0(0),u=new g0(1),c,d,v,b,M,B,R,k=0,q,F;r.cmpn(0)!==0;){var P=a.div(r);q=a.sub(P.mul(r)),F=x.sub(P.mul(n));var O=u.sub(P.mul(y));if(!v&&q.cmp(t)<0)c=R.neg(),d=n,v=q.neg(),b=F;else if(v&&++k===2)break;R=q,a=r,r=q,x=n,n=F,u=y,y=O}M=q.neg(),B=F;var H=v.sqr().add(b.sqr()),U=M.sqr().add(B.sqr());return U.cmp(H)>=0&&(M=c,B=d),v.negative&&(v=v.neg(),b=b.neg()),M.negative&&(M=M.neg(),B=B.neg()),[{a:v,b},{a:M,b:B}]};Q0.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],a=t[1],n=a.b.mul(e).divRound(this.n),y=r.b.neg().mul(e).divRound(this.n),x=n.mul(r.a),u=y.mul(a.a),c=n.mul(r.b),d=y.mul(a.b),v=e.sub(x).sub(u),b=c.add(d).neg();return{k1:v,k2:b}};Q0.prototype.pointFromX=function(e,t){e=new g0(e,16),e.red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),a=r.redSqrt();if(a.redSqr().redSub(r).cmp(this.zero)!==0)throw new Error("invalid point");var n=a.fromRed().isOdd();return(t&&!n||!t&&n)&&(a=a.redNeg()),this.point(e,a)};Q0.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,a=this.a.redMul(t),n=t.redSqr().redMul(t).redIAdd(a).redIAdd(this.b);return r.redSqr().redISub(n).cmpn(0)===0};Q0.prototype._endoWnafMulAdd=function(e,t,r){for(var a=this._endoWnafT1,n=this._endoWnafT2,y=0;y<e.length;y++){var x=this._endoSplit(t[y]),u=e[y],c=u._getBeta();x.k1.negative&&(x.k1.ineg(),u=u.neg(!0)),x.k2.negative&&(x.k2.ineg(),c=c.neg(!0)),a[y*2]=u,a[y*2+1]=c,n[y*2]=x.k1,n[y*2+1]=x.k2}for(var d=this._wnafMulAdd(1,a,n,y*2,r),v=0;v<y*2;v++)a[v]=null,n[v]=null;return d};function S0(i,e,t,r){Ht.BasePoint.call(this,i,"affine"),e===null&&t===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new g0(e,16),this.y=new g0(t,16),r&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}Vi(S0,Ht.BasePoint);Q0.prototype.point=function(e,t,r){return new S0(this,e,t,r)};Q0.prototype.pointFromJSON=function(e,t){return S0.fromJSON(this,e,t)};S0.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,a=function(n){return r.point(n.x.redMul(r.endo.beta),n.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(a)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(a)}}}return t}};S0.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]};S0.fromJSON=function(e,t,r){typeof t=="string"&&(t=JSON.parse(t));var a=e.point(t[0],t[1],r);if(!t[2])return a;function n(x){return e.point(x[0],x[1],r)}var y=t[2];return a.precomputed={beta:null,doubles:y.doubles&&{step:y.doubles.step,points:[a].concat(y.doubles.points.map(n))},naf:y.naf&&{wnd:y.naf.wnd,points:[a].concat(y.naf.points.map(n))}},a};S0.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"};S0.prototype.isInfinity=function(){return this.inf};S0.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(this.x.cmp(e.x)===0)return this.curve.point(null,null);var t=this.y.redSub(e.y);t.cmpn(0)!==0&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),a=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,a)};S0.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(e.cmpn(0)===0)return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),a=e.redInvm(),n=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(a),y=n.redSqr().redISub(this.x.redAdd(this.x)),x=n.redMul(this.x.redSub(y)).redISub(this.y);return this.curve.point(y,x)};S0.prototype.getX=function(){return this.x.fromRed()};S0.prototype.getY=function(){return this.y.fromRed()};S0.prototype.mul=function(e){return e=new g0(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)};S0.prototype.mulAdd=function(e,t,r){var a=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(a,n):this.curve._wnafMulAdd(1,a,n,2)};S0.prototype.jmulAdd=function(e,t,r){var a=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(a,n,!0):this.curve._wnafMulAdd(1,a,n,2,!0)};S0.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||this.x.cmp(e.x)===0&&this.y.cmp(e.y)===0)};S0.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,a=function(n){return n.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(a)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(a)}}}return t};S0.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var e=this.curve.jpoint(this.x,this.y,this.curve.one);return e};function k0(i,e,t,r){Ht.BasePoint.call(this,i,"jacobian"),e===null&&t===null&&r===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new g0(0)):(this.x=new g0(e,16),this.y=new g0(t,16),this.z=new g0(r,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}Vi(k0,Ht.BasePoint);Q0.prototype.jpoint=function(e,t,r){return new k0(this,e,t,r)};k0.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),a=this.y.redMul(t).redMul(e);return this.curve.point(r,a)};k0.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};k0.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),a=this.x.redMul(t),n=e.x.redMul(r),y=this.y.redMul(t.redMul(e.z)),x=e.y.redMul(r.redMul(this.z)),u=a.redSub(n),c=y.redSub(x);if(u.cmpn(0)===0)return c.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var d=u.redSqr(),v=d.redMul(u),b=a.redMul(d),M=c.redSqr().redIAdd(v).redISub(b).redISub(b),B=c.redMul(b.redISub(M)).redISub(y.redMul(v)),R=this.z.redMul(e.z).redMul(u);return this.curve.jpoint(M,B,R)};k0.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,a=e.x.redMul(t),n=this.y,y=e.y.redMul(t).redMul(this.z),x=r.redSub(a),u=n.redSub(y);if(x.cmpn(0)===0)return u.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var c=x.redSqr(),d=c.redMul(x),v=r.redMul(c),b=u.redSqr().redIAdd(d).redISub(v).redISub(v),M=u.redMul(v.redISub(b)).redISub(n.redMul(d)),B=this.z.redMul(x);return this.curve.jpoint(b,M,B)};k0.prototype.dblp=function(e){if(e===0)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var r=this;for(t=0;t<e;t++)r=r.dbl();return r}var a=this.curve.a,n=this.curve.tinv,y=this.x,x=this.y,u=this.z,c=u.redSqr().redSqr(),d=x.redAdd(x);for(t=0;t<e;t++){var v=y.redSqr(),b=d.redSqr(),M=b.redSqr(),B=v.redAdd(v).redIAdd(v).redIAdd(a.redMul(c)),R=y.redMul(b),k=B.redSqr().redISub(R.redAdd(R)),q=R.redISub(k),F=B.redMul(q);F=F.redIAdd(F).redISub(M);var P=d.redMul(u);t+1<e&&(c=c.redMul(M)),y=k,u=P,d=F}return this.curve.jpoint(y,d.redMul(n),u)};k0.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()};k0.prototype._zeroDbl=function(){var e,t,r;if(this.zOne){var a=this.x.redSqr(),n=this.y.redSqr(),y=n.redSqr(),x=this.x.redAdd(n).redSqr().redISub(a).redISub(y);x=x.redIAdd(x);var u=a.redAdd(a).redIAdd(a),c=u.redSqr().redISub(x).redISub(x),d=y.redIAdd(y);d=d.redIAdd(d),d=d.redIAdd(d),e=c,t=u.redMul(x.redISub(c)).redISub(d),r=this.y.redAdd(this.y)}else{var v=this.x.redSqr(),b=this.y.redSqr(),M=b.redSqr(),B=this.x.redAdd(b).redSqr().redISub(v).redISub(M);B=B.redIAdd(B);var R=v.redAdd(v).redIAdd(v),k=R.redSqr(),q=M.redIAdd(M);q=q.redIAdd(q),q=q.redIAdd(q),e=k.redISub(B).redISub(B),t=R.redMul(B.redISub(e)).redISub(q),r=this.y.redMul(this.z),r=r.redIAdd(r)}return this.curve.jpoint(e,t,r)};k0.prototype._threeDbl=function(){var e,t,r;if(this.zOne){var a=this.x.redSqr(),n=this.y.redSqr(),y=n.redSqr(),x=this.x.redAdd(n).redSqr().redISub(a).redISub(y);x=x.redIAdd(x);var u=a.redAdd(a).redIAdd(a).redIAdd(this.curve.a),c=u.redSqr().redISub(x).redISub(x);e=c;var d=y.redIAdd(y);d=d.redIAdd(d),d=d.redIAdd(d),t=u.redMul(x.redISub(c)).redISub(d),r=this.y.redAdd(this.y)}else{var v=this.z.redSqr(),b=this.y.redSqr(),M=this.x.redMul(b),B=this.x.redSub(v).redMul(this.x.redAdd(v));B=B.redAdd(B).redIAdd(B);var R=M.redIAdd(M);R=R.redIAdd(R);var k=R.redAdd(R);e=B.redSqr().redISub(k),r=this.y.redAdd(this.z).redSqr().redISub(b).redISub(v);var q=b.redSqr();q=q.redIAdd(q),q=q.redIAdd(q),q=q.redIAdd(q),t=B.redMul(R.redISub(e)).redISub(q)}return this.curve.jpoint(e,t,r)};k0.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,a=this.z,n=a.redSqr().redSqr(),y=t.redSqr(),x=r.redSqr(),u=y.redAdd(y).redIAdd(y).redIAdd(e.redMul(n)),c=t.redAdd(t);c=c.redIAdd(c);var d=c.redMul(x),v=u.redSqr().redISub(d.redAdd(d)),b=d.redISub(v),M=x.redSqr();M=M.redIAdd(M),M=M.redIAdd(M),M=M.redIAdd(M);var B=u.redMul(b).redISub(M),R=r.redAdd(r).redMul(a);return this.curve.jpoint(v,B,R)};k0.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),a=t.redSqr(),n=e.redAdd(e).redIAdd(e),y=n.redSqr(),x=this.x.redAdd(t).redSqr().redISub(e).redISub(a);x=x.redIAdd(x),x=x.redAdd(x).redIAdd(x),x=x.redISub(y);var u=x.redSqr(),c=a.redIAdd(a);c=c.redIAdd(c),c=c.redIAdd(c),c=c.redIAdd(c);var d=n.redIAdd(x).redSqr().redISub(y).redISub(u).redISub(c),v=t.redMul(d);v=v.redIAdd(v),v=v.redIAdd(v);var b=this.x.redMul(u).redISub(v);b=b.redIAdd(b),b=b.redIAdd(b);var M=this.y.redMul(d.redMul(c.redISub(d)).redISub(x.redMul(u)));M=M.redIAdd(M),M=M.redIAdd(M),M=M.redIAdd(M);var B=this.z.redAdd(x).redSqr().redISub(r).redISub(u);return this.curve.jpoint(b,M,B)};k0.prototype.mul=function(e,t){return e=new g0(e,t),this.curve._wnafMul(this,e)};k0.prototype.eq=function(e){if(e.type==="affine")return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0)!==0)return!1;var a=t.redMul(this.z),n=r.redMul(e.z);return this.y.redMul(n).redISub(e.y.redMul(a)).cmpn(0)===0};k0.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(this.x.cmp(r)===0)return!0;for(var a=e.clone(),n=this.curve.redN.redMul(t);;){if(a.iadd(this.curve.n),a.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(n),this.x.cmp(r)===0)return!0}};k0.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"};k0.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var zt=yt,wf=Cr,Mr=Br,ws=V0;function Ut(i){Mr.call(this,"mont",i),this.a=new zt(i.a,16).toRed(this.red),this.b=new zt(i.b,16).toRed(this.red),this.i4=new zt(4).toRed(this.red).redInvm(),this.two=new zt(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}wf(Ut,Mr);var Bs=Ut;Ut.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),a=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t),n=a.redSqrt();return n.redSqr().cmp(a)===0};function C0(i,e,t){Mr.BasePoint.call(this,i,"projective"),e===null&&t===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new zt(e,16),this.z=new zt(t,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}wf(C0,Mr.BasePoint);Ut.prototype.decodePoint=function(e,t){return this.point(ws.toArray(e,t),1)};Ut.prototype.point=function(e,t){return new C0(this,e,t)};Ut.prototype.pointFromJSON=function(e){return C0.fromJSON(this,e)};C0.prototype.precompute=function(){};C0.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};C0.fromJSON=function(e,t){return new C0(e,t[0],t[1]||e.one)};C0.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"};C0.prototype.isInfinity=function(){return this.z.cmpn(0)===0};C0.prototype.dbl=function(){var e=this.x.redAdd(this.z),t=e.redSqr(),r=this.x.redSub(this.z),a=r.redSqr(),n=t.redSub(a),y=t.redMul(a),x=n.redMul(a.redAdd(this.curve.a24.redMul(n)));return this.curve.point(y,x)};C0.prototype.add=function(){throw new Error("Not supported on Montgomery curve")};C0.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),a=this.x.redSub(this.z),n=e.x.redAdd(e.z),y=e.x.redSub(e.z),x=y.redMul(r),u=n.redMul(a),c=t.z.redMul(x.redAdd(u).redSqr()),d=t.x.redMul(x.redISub(u).redSqr());return this.curve.point(c,d)};C0.prototype.mul=function(e){for(var t=e.clone(),r=this,a=this.curve.point(null,null),n=this,y=[];t.cmpn(0)!==0;t.iushrn(1))y.push(t.andln(1));for(var x=y.length-1;x>=0;x--)y[x]===0?(r=r.diffAdd(a,n),a=a.dbl()):(a=r.diffAdd(a,n),r=r.dbl());return a};C0.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")};C0.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")};C0.prototype.eq=function(e){return this.getX().cmp(e.getX())===0};C0.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};C0.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var Cs=V0,xt=yt,Bf=Cr,Sr=Br,Ms=Cs.assert;function ut(i){this.twisted=(i.a|0)!==1,this.mOneA=this.twisted&&(i.a|0)===-1,this.extended=this.mOneA,Sr.call(this,"edwards",i),this.a=new xt(i.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new xt(i.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new xt(i.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),Ms(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(i.c|0)===1}Bf(ut,Sr);var Ss=ut;ut.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)};ut.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)};ut.prototype.jpoint=function(e,t,r,a){return this.point(e,t,r,a)};ut.prototype.pointFromX=function(e,t){e=new xt(e,16),e.red||(e=e.toRed(this.red));var r=e.redSqr(),a=this.c2.redSub(this.a.redMul(r)),n=this.one.redSub(this.c2.redMul(this.d).redMul(r)),y=a.redMul(n.redInvm()),x=y.redSqrt();if(x.redSqr().redSub(y).cmp(this.zero)!==0)throw new Error("invalid point");var u=x.fromRed().isOdd();return(t&&!u||!t&&u)&&(x=x.redNeg()),this.point(e,x)};ut.prototype.pointFromY=function(e,t){e=new xt(e,16),e.red||(e=e.toRed(this.red));var r=e.redSqr(),a=r.redSub(this.c2),n=r.redMul(this.d).redMul(this.c2).redSub(this.a),y=a.redMul(n.redInvm());if(y.cmp(this.zero)===0){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var x=y.redSqrt();if(x.redSqr().redSub(y).cmp(this.zero)!==0)throw new Error("invalid point");return x.fromRed().isOdd()!==t&&(x=x.redNeg()),this.point(x,e)};ut.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),a=t.redMul(this.a).redAdd(r),n=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return a.cmp(n)===0};function v0(i,e,t,r,a){Sr.BasePoint.call(this,i,"projective"),e===null&&t===null&&r===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 xt(e,16),this.y=new xt(t,16),this.z=r?new xt(r,16):this.curve.one,this.t=a&&new xt(a,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()))))}Bf(v0,Sr.BasePoint);ut.prototype.pointFromJSON=function(e){return v0.fromJSON(this,e)};ut.prototype.point=function(e,t,r,a){return new v0(this,e,t,r,a)};v0.fromJSON=function(e,t){return new v0(e,t[0],t[1],t[2])};v0.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"};v0.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};v0.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var a=this.curve._mulA(e),n=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),y=a.redAdd(t),x=y.redSub(r),u=a.redSub(t),c=n.redMul(x),d=y.redMul(u),v=n.redMul(u),b=x.redMul(y);return this.curve.point(c,d,b,v)};v0.prototype._projDbl=function(){var e=this.x.redAdd(this.y).redSqr(),t=this.x.redSqr(),r=this.y.redSqr(),a,n,y,x,u,c;if(this.curve.twisted){x=this.curve._mulA(t);var d=x.redAdd(r);this.zOne?(a=e.redSub(t).redSub(r).redMul(d.redSub(this.curve.two)),n=d.redMul(x.redSub(r)),y=d.redSqr().redSub(d).redSub(d)):(u=this.z.redSqr(),c=d.redSub(u).redISub(u),a=e.redSub(t).redISub(r).redMul(c),n=d.redMul(x.redSub(r)),y=d.redMul(c))}else x=t.redAdd(r),u=this.curve._mulC(this.z).redSqr(),c=x.redSub(u).redSub(u),a=this.curve._mulC(e.redISub(x)).redMul(c),n=this.curve._mulC(x).redMul(t.redISub(r)),y=x.redMul(c);return this.curve.point(a,n,y)};v0.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};v0.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),a=this.t.redMul(this.curve.dd).redMul(e.t),n=this.z.redMul(e.z.redAdd(e.z)),y=r.redSub(t),x=n.redSub(a),u=n.redAdd(a),c=r.redAdd(t),d=y.redMul(x),v=u.redMul(c),b=y.redMul(c),M=x.redMul(u);return this.curve.point(d,v,M,b)};v0.prototype._projAdd=function(e){var t=this.z.redMul(e.z),r=t.redSqr(),a=this.x.redMul(e.x),n=this.y.redMul(e.y),y=this.curve.d.redMul(a).redMul(n),x=r.redSub(y),u=r.redAdd(y),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(a).redISub(n),d=t.redMul(x).redMul(c),v,b;return this.curve.twisted?(v=t.redMul(u).redMul(n.redSub(this.curve._mulA(a))),b=x.redMul(u)):(v=t.redMul(u).redMul(n.redSub(a)),b=this.curve._mulC(x).redMul(u)),this.curve.point(d,v,b)};v0.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)};v0.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)};v0.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)};v0.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)};v0.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this};v0.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};v0.prototype.getX=function(){return this.normalize(),this.x.fromRed()};v0.prototype.getY=function(){return this.normalize(),this.y.fromRed()};v0.prototype.eq=function(e){return this===e||this.getX().cmp(e.getX())===0&&this.getY().cmp(e.getY())===0};v0.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(t)===0)return!0;for(var r=e.clone(),a=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(a),this.x.cmp(t)===0)return!0}};v0.prototype.toP=v0.prototype.normalize;v0.prototype.mixedAdd=v0.prototype.add;(function(i){var e=i;e.base=Br,e.short=Es,e.mont=Bs,e.edwards=Ss})(Ki);var Dr={},Fr={},$e={},Ds=It,Fs=Cr;$e.inherits=Fs;function Rs(i,e){return(i.charCodeAt(e)&64512)!==55296||e<0||e+1>=i.length?!1:(i.charCodeAt(e+1)&64512)===56320}function ks(i,e){if(Array.isArray(i))return i.slice();if(!i)return[];var t=[];if(typeof i=="string")if(e){if(e==="hex")for(i=i.replace(/[^a-z0-9]+/ig,""),i.length%2!==0&&(i="0"+i),a=0;a<i.length;a+=2)t.push(parseInt(i[a]+i[a+1],16))}else for(var r=0,a=0;a<i.length;a++){var n=i.charCodeAt(a);n<128?t[r++]=n:n<2048?(t[r++]=n>>6|192,t[r++]=n&63|128):Rs(i,a)?(n=65536+((n&1023)<<10)+(i.charCodeAt(++a)&1023),t[r++]=n>>18|240,t[r++]=n>>12&63|128,t[r++]=n>>6&63|128,t[r++]=n&63|128):(t[r++]=n>>12|224,t[r++]=n>>6&63|128,t[r++]=n&63|128)}else for(a=0;a<i.length;a++)t[a]=i[a]|0;return t}$e.toArray=ks;function Ps(i){for(var e="",t=0;t<i.length;t++)e+=Mf(i[t].toString(16));return e}$e.toHex=Ps;function Cf(i){var e=i>>>24|i>>>8&65280|i<<8&16711680|(i&255)<<24;return e>>>0}$e.htonl=Cf;function Is(i,e){for(var t="",r=0;r<i.length;r++){var a=i[r];e==="little"&&(a=Cf(a)),t+=Sf(a.toString(16))}return t}$e.toHex32=Is;function Mf(i){return i.length===1?"0"+i:i}$e.zero2=Mf;function Sf(i){return i.length===7?"0"+i:i.length===6?"00"+i:i.length===5?"000"+i:i.length===4?"0000"+i:i.length===3?"00000"+i:i.length===2?"000000"+i:i.length===1?"0000000"+i:i}$e.zero8=Sf;function Ts(i,e,t,r){var a=t-e;Ds(a%4===0);for(var n=new Array(a/4),y=0,x=e;y<n.length;y++,x+=4){var u;r==="big"?u=i[x]<<24|i[x+1]<<16|i[x+2]<<8|i[x+3]:u=i[x+3]<<24|i[x+2]<<16|i[x+1]<<8|i[x],n[y]=u>>>0}return n}$e.join32=Ts;function Os(i,e){for(var t=new Array(i.length*4),r=0,a=0;r<i.length;r++,a+=4){var n=i[r];e==="big"?(t[a]=n>>>24,t[a+1]=n>>>16&255,t[a+2]=n>>>8&255,t[a+3]=n&255):(t[a+3]=n>>>24,t[a+2]=n>>>16&255,t[a+1]=n>>>8&255,t[a]=n&255)}return t}$e.split32=Os;function zs(i,e){return i>>>e|i<<32-e}$e.rotr32=zs;function Ns(i,e){return i<<e|i>>>32-e}$e.rotl32=Ns;function qs(i,e){return i+e>>>0}$e.sum32=qs;function Ls(i,e,t){return i+e+t>>>0}$e.sum32_3=Ls;function $s(i,e,t,r){return i+e+t+r>>>0}$e.sum32_4=$s;function Hs(i,e,t,r,a){return i+e+t+r+a>>>0}$e.sum32_5=Hs;function Us(i,e,t,r){var a=i[e],n=i[e+1],y=r+n>>>0,x=(y<r?1:0)+t+a;i[e]=x>>>0,i[e+1]=y}$e.sum64=Us;function Ws(i,e,t,r){var a=e+r>>>0,n=(a<e?1:0)+i+t;return n>>>0}$e.sum64_hi=Ws;function Ys(i,e,t,r){var a=e+r;return a>>>0}$e.sum64_lo=Ys;function js(i,e,t,r,a,n,y,x){var u=0,c=e;c=c+r>>>0,u+=c<e?1:0,c=c+n>>>0,u+=c<n?1:0,c=c+x>>>0,u+=c<x?1:0;var d=i+t+a+y+u;return d>>>0}$e.sum64_4_hi=js;function Ks(i,e,t,r,a,n,y,x){var u=e+r+n+x;return u>>>0}$e.sum64_4_lo=Ks;function Vs(i,e,t,r,a,n,y,x,u,c){var d=0,v=e;v=v+r>>>0,d+=v<e?1:0,v=v+n>>>0,d+=v<n?1:0,v=v+x>>>0,d+=v<x?1:0,v=v+c>>>0,d+=v<c?1:0;var b=i+t+a+y+u+d;return b>>>0}$e.sum64_5_hi=Vs;function Xs(i,e,t,r,a,n,y,x,u,c){var d=e+r+n+x+c;return d>>>0}$e.sum64_5_lo=Xs;function Zs(i,e,t){var r=e<<32-t|i>>>t;return r>>>0}$e.rotr64_hi=Zs;function Gs(i,e,t){var r=i<<32-t|e>>>t;return r>>>0}$e.rotr64_lo=Gs;function Qs(i,e,t){return i>>>t}$e.shr64_hi=Qs;function Js(i,e,t){var r=i<<32-t|e>>>t;return r>>>0}$e.shr64_lo=Js;var Wt={},jn=$e,eo=It;function Rr(){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}Wt.BlockHash=Rr;Rr.prototype.update=function(e,t){if(e=jn.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){e=this.pending;var r=e.length%this._delta8;this.pending=e.slice(e.length-r,e.length),this.pending.length===0&&(this.pending=null),e=jn.join32(e,0,e.length-r,this.endian);for(var a=0;a<e.length;a+=this._delta32)this._update(e,a,a+this._delta32)}return this};Rr.prototype.digest=function(e){return this.update(this._pad()),eo(this.pending===null),this._digest(e)};Rr.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,a=new Array(r+this.padLength);a[0]=128;for(var n=1;n<r;n++)a[n]=0;if(e<<=3,this.endian==="big"){for(var y=8;y<this.padLength;y++)a[n++]=0;a[n++]=0,a[n++]=0,a[n++]=0,a[n++]=0,a[n++]=e>>>24&255,a[n++]=e>>>16&255,a[n++]=e>>>8&255,a[n++]=e&255}else for(a[n++]=e&255,a[n++]=e>>>8&255,a[n++]=e>>>16&255,a[n++]=e>>>24&255,a[n++]=0,a[n++]=0,a[n++]=0,a[n++]=0,y=8;y<this.padLength;y++)a[n++]=0;return a};var Yt={},lt={},to=$e,nt=to.rotr32;function ro(i,e,t,r){if(i===0)return Df(e,t,r);if(i===1||i===3)return Rf(e,t,r);if(i===2)return Ff(e,t,r)}lt.ft_1=ro;function Df(i,e,t){return i&e^~i&t}lt.ch32=Df;function Ff(i,e,t){return i&e^i&t^e&t}lt.maj32=Ff;function Rf(i,e,t){return i^e^t}lt.p32=Rf;function io(i){return nt(i,2)^nt(i,13)^nt(i,22)}lt.s0_256=io;function no(i){return nt(i,6)^nt(i,11)^nt(i,25)}lt.s1_256=no;function fo(i){return nt(i,7)^nt(i,18)^i>>>3}lt.g0_256=fo;function ao(i){return nt(i,17)^nt(i,19)^i>>>10}lt.g1_256=ao;var Nt=$e,so=Wt,oo=lt,gi=Nt.rotl32,Gt=Nt.sum32,co=Nt.sum32_5,ho=oo.ft_1,kf=so.BlockHash,uo=[1518500249,1859775393,2400959708,3395469782];function ot(){if(!(this instanceof ot))return new ot;kf.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}Nt.inherits(ot,kf);var lo=ot;ot.blockSize=512;ot.outSize=160;ot.hmacStrength=80;ot.padLength=64;ot.prototype._update=function(e,t){for(var r=this.W,a=0;a<16;a++)r[a]=e[t+a];for(;a<r.length;a++)r[a]=gi(r[a-3]^r[a-8]^r[a-14]^r[a-16],1);var n=this.h[0],y=this.h[1],x=this.h[2],u=this.h[3],c=this.h[4];for(a=0;a<r.length;a++){var d=~~(a/20),v=co(gi(n,5),ho(d,y,x,u),c,r[a],uo[d]);c=u,u=x,x=gi(y,30),y=n,n=v}this.h[0]=Gt(this.h[0],n),this.h[1]=Gt(this.h[1],y),this.h[2]=Gt(this.h[2],x),this.h[3]=Gt(this.h[3],u),this.h[4]=Gt(this.h[4],c)};ot.prototype._digest=function(e){return e==="hex"?Nt.toHex32(this.h,"big"):Nt.split32(this.h,"big")};var qt=$e,xo=Wt,jt=lt,vo=It,et=qt.sum32,bo=qt.sum32_4,po=qt.sum32_5,yo=jt.ch32,go=jt.maj32,mo=jt.s0_256,_o=jt.s1_256,Ao=jt.g0_256,Eo=jt.g1_256,Pf=xo.BlockHash,wo=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function ct(){if(!(this instanceof ct))return new ct;Pf.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=wo,this.W=new Array(64)}qt.inherits(ct,Pf);var If=ct;ct.blockSize=512;ct.outSize=256;ct.hmacStrength=192;ct.padLength=64;ct.prototype._update=function(e,t){for(var r=this.W,a=0;a<16;a++)r[a]=e[t+a];for(;a<r.length;a++)r[a]=bo(Eo(r[a-2]),r[a-7],Ao(r[a-15]),r[a-16]);var n=this.h[0],y=this.h[1],x=this.h[2],u=this.h[3],c=this.h[4],d=this.h[5],v=this.h[6],b=this.h[7];for(vo(this.k.length===r.length),a=0;a<r.length;a++){var M=po(b,_o(c),yo(c,d,v),this.k[a],r[a]),B=et(mo(n),go(n,y,x));b=v,v=d,d=c,c=et(u,M),u=x,x=y,y=n,n=et(M,B)}this.h[0]=et(this.h[0],n),this.h[1]=et(this.h[1],y),this.h[2]=et(this.h[2],x),this.h[3]=et(this.h[3],u),this.h[4]=et(this.h[4],c),this.h[5]=et(this.h[5],d),this.h[6]=et(this.h[6],v),this.h[7]=et(this.h[7],b)};ct.prototype._digest=function(e){return e==="hex"?qt.toHex32(this.h,"big"):qt.split32(this.h,"big")};var Ri=$e,Tf=If;function bt(){if(!(this instanceof bt))return new bt;Tf.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}Ri.inherits(bt,Tf);var Bo=bt;bt.blockSize=512;bt.outSize=224;bt.hmacStrength=192;bt.padLength=64;bt.prototype._digest=function(e){return e==="hex"?Ri.toHex32(this.h.slice(0,7),"big"):Ri.split32(this.h.slice(0,7),"big")};var U0=$e,Co=Wt,Mo=It,ft=U0.rotr64_hi,at=U0.rotr64_lo,Of=U0.shr64_hi,zf=U0.shr64_lo,mt=U0.sum64,mi=U0.sum64_hi,_i=U0.sum64_lo,So=U0.sum64_4_hi,Do=U0.sum64_4_lo,Fo=U0.sum64_5_hi,Ro=U0.sum64_5_lo,Nf=Co.BlockHash,ko=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function rt(){if(!(this instanceof rt))return new rt;Nf.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=ko,this.W=new Array(160)}U0.inherits(rt,Nf);var qf=rt;rt.blockSize=1024;rt.outSize=512;rt.hmacStrength=192;rt.padLength=128;rt.prototype._prepareBlock=function(e,t){for(var r=this.W,a=0;a<32;a++)r[a]=e[t+a];for(;a<r.length;a+=2){var n=Uo(r[a-4],r[a-3]),y=Wo(r[a-4],r[a-3]),x=r[a-14],u=r[a-13],c=$o(r[a-30],r[a-29]),d=Ho(r[a-30],r[a-29]),v=r[a-32],b=r[a-31];r[a]=So(n,y,x,u,c,d,v,b),r[a+1]=Do(n,y,x,u,c,d,v,b)}};rt.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,a=this.h[0],n=this.h[1],y=this.h[2],x=this.h[3],u=this.h[4],c=this.h[5],d=this.h[6],v=this.h[7],b=this.h[8],M=this.h[9],B=this.h[10],R=this.h[11],k=this.h[12],q=this.h[13],F=this.h[14],P=this.h[15];Mo(this.k.length===r.length);for(var O=0;O<r.length;O+=2){var H=F,U=P,K=qo(b,M),X=Lo(b,M),Q=Po(b,M,B,R,k),$=Io(b,M,B,R,k,q),_=this.k[O],f=this.k[O+1],h=r[O],p=r[O+1],g=Fo(H,U,K,X,Q,$,_,f,h,p),E=Ro(H,U,K,X,Q,$,_,f,h,p);H=zo(a,n),U=No(a,n),K=To(a,n,y,x,u),X=Oo(a,n,y,x,u,c);var I=mi(H,U,K,X),T=_i(H,U,K,X);F=k,P=q,k=B,q=R,B=b,R=M,b=mi(d,v,g,E),M=_i(v,v,g,E),d=u,v=c,u=y,c=x,y=a,x=n,a=mi(g,E,I,T),n=_i(g,E,I,T)}mt(this.h,0,a,n),mt(this.h,2,y,x),mt(this.h,4,u,c),mt(this.h,6,d,v),mt(this.h,8,b,M),mt(this.h,10,B,R),mt(this.h,12,k,q),mt(this.h,14,F,P)};rt.prototype._digest=function(e){return e==="hex"?U0.toHex32(this.h,"big"):U0.split32(this.h,"big")};function Po(i,e,t,r,a){var n=i&t^~i&a;return n<0&&(n+=4294967296),n}function Io(i,e,t,r,a,n){var y=e&r^~e&n;return y<0&&(y+=4294967296),y}function To(i,e,t,r,a){var n=i&t^i&a^t&a;return n<0&&(n+=4294967296),n}function Oo(i,e,t,r,a,n){var y=e&r^e&n^r&n;return y<0&&(y+=4294967296),y}function zo(i,e){var t=ft(i,e,28),r=ft(e,i,2),a=ft(e,i,7),n=t^r^a;return n<0&&(n+=4294967296),n}function No(i,e){var t=at(i,e,28),r=at(e,i,2),a=at(e,i,7),n=t^r^a;return n<0&&(n+=4294967296),n}function qo(i,e){var t=ft(i,e,14),r=ft(i,e,18),a=ft(e,i,9),n=t^r^a;return n<0&&(n+=4294967296),n}function Lo(i,e){var t=at(i,e,14),r=at(i,e,18),a=at(e,i,9),n=t^r^a;return n<0&&(n+=4294967296),n}function $o(i,e){var t=ft(i,e,1),r=ft(i,e,8),a=Of(i,e,7),n=t^r^a;return n<0&&(n+=4294967296),n}function Ho(i,e){var t=at(i,e,1),r=at(i,e,8),a=zf(i,e,7),n=t^r^a;return n<0&&(n+=4294967296),n}function Uo(i,e){var t=ft(i,e,19),r=ft(e,i,29),a=Of(i,e,6),n=t^r^a;return n<0&&(n+=4294967296),n}function Wo(i,e){var t=at(i,e,19),r=at(e,i,29),a=zf(i,e,6),n=t^r^a;return n<0&&(n+=4294967296),n}var ki=$e,Lf=qf;function pt(){if(!(this instanceof pt))return new pt;Lf.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}ki.inherits(pt,Lf);var Yo=pt;pt.blockSize=1024;pt.outSize=384;pt.hmacStrength=192;pt.padLength=128;pt.prototype._digest=function(e){return e==="hex"?ki.toHex32(this.h.slice(0,12),"big"):ki.split32(this.h.slice(0,12),"big")};Yt.sha1=lo;Yt.sha224=Bo;Yt.sha256=If;Yt.sha384=Yo;Yt.sha512=qf;var $f={},Rt=$e,jo=Wt,sr=Rt.rotl32,Kn=Rt.sum32,Qt=Rt.sum32_3,Vn=Rt.sum32_4,Hf=jo.BlockHash;function dt(){if(!(this instanceof dt))return new dt;Hf.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}Rt.inherits(dt,Hf);$f.ripemd160=dt;dt.blockSize=512;dt.outSize=160;dt.hmacStrength=192;dt.padLength=64;dt.prototype._update=function(e,t){for(var r=this.h[0],a=this.h[1],n=this.h[2],y=this.h[3],x=this.h[4],u=r,c=a,d=n,v=y,b=x,M=0;M<80;M++){var B=Kn(sr(Vn(r,Xn(M,a,n,y),e[Xo[M]+t],Ko(M)),Go[M]),x);r=x,x=y,y=sr(n,10),n=a,a=B,B=Kn(sr(Vn(u,Xn(79-M,c,d,v),e[Zo[M]+t],Vo(M)),Qo[M]),b),u=b,b=v,v=sr(d,10),d=c,c=B}B=Qt(this.h[1],n,v),this.h[1]=Qt(this.h[2],y,b),this.h[2]=Qt(this.h[3],x,u),this.h[3]=Qt(this.h[4],r,c),this.h[4]=Qt(this.h[0],a,d),this.h[0]=B};dt.prototype._digest=function(e){return e==="hex"?Rt.toHex32(this.h,"little"):Rt.split32(this.h,"little")};function Xn(i,e,t,r){return i<=15?e^t^r:i<=31?e&t|~e&r:i<=47?(e|~t)^r:i<=63?e&r|t&~r:e^(t|~r)}function Ko(i){return i<=15?0:i<=31?1518500249:i<=47?1859775393:i<=63?2400959708:2840853838}function Vo(i){return i<=15?1352829926:i<=31?1548603684:i<=47?1836072691:i<=63?2053994217:0}var Xo=[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],Zo=[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],Go=[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],Qo=[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],Jo=$e,ec=It;function Lt(i,e,t){if(!(this instanceof Lt))return new Lt(i,e,t);this.Hash=i,this.blockSize=i.blockSize/8,this.outSize=i.outSize/8,this.inner=null,this.outer=null,this._init(Jo.toArray(e,t))}var tc=Lt;Lt.prototype._init=function(e){e.length>this.blockSize&&(e=new this.Hash().update(e).digest()),ec(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=new this.Hash().update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=new this.Hash().update(e)};Lt.prototype.update=function(e,t){return this.inner.update(e,t),this};Lt.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)};(function(i){var e=i;e.utils=$e,e.common=Wt,e.sha=Yt,e.ripemd=$f,e.hmac=tc,e.sha1=e.sha.sha1,e.sha256=e.sha.sha256,e.sha224=e.sha.sha224,e.sha384=e.sha.sha384,e.sha512=e.sha.sha512,e.ripemd160=e.ripemd.ripemd160})(Fr);var Ai,Zn;function rc(){return Zn||(Zn=1,Ai={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}),Ai}(function(i){var e=i,t=Fr,r=Ki,a=V0,n=a.assert;function y(c){c.type==="short"?this.curve=new r.short(c):c.type==="edwards"?this.curve=new r.edwards(c):this.curve=new r.mont(c),this.g=this.curve.g,this.n=this.curve.n,this.hash=c.hash,n(this.g.validate(),"Invalid curve"),n(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}e.PresetCurve=y;function x(c,d){Object.defineProperty(e,c,{configurable:!0,enumerable:!0,get:function(){var v=new y(d);return Object.defineProperty(e,c,{configurable:!0,enumerable:!0,value:v}),v}})}x("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:t.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),x("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:t.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),x("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:t.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),x("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:t.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),x("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:t.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),x("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:t.sha256,gRed:!1,g:["9"]}),x("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:t.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var u;try{u=rc()}catch{u=void 0}x("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:t.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",u]})})(Dr);var ic=Fr,St=Yi,Uf=It;function At(i){if(!(this instanceof At))return new At(i);this.hash=i.hash,this.predResist=!!i.predResist,this.outLen=this.hash.outSize,this.minEntropy=i.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=St.toArray(i.entropy,i.entropyEnc||"hex"),t=St.toArray(i.nonce,i.nonceEnc||"hex"),r=St.toArray(i.pers,i.persEnc||"hex");Uf(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,t,r)}var nc=At;At.prototype._init=function(e,t,r){var a=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var n=0;n<this.V.length;n++)this.K[n]=0,this.V[n]=1;this._update(a),this._reseed=1,this.reseedInterval=281474976710656};At.prototype._hmac=function(){return new ic.hmac(this.hash,this.K)};At.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())};At.prototype.reseed=function(e,t,r,a){typeof t!="string"&&(a=r,r=t,t=null),e=St.toArray(e,t),r=St.toArray(r,a),Uf(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1};At.prototype.generate=function(e,t,r,a){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof t!="string"&&(a=r,r=t,t=null),r&&(r=St.toArray(r,a||"hex"),this._update(r));for(var n=[];n.length<e;)this.V=this._hmac().update(this.V).digest(),n=n.concat(this.V);var y=n.slice(0,e);return this._update(r),this._reseed++,St.encode(y,t)};var fc=yt,ac=V0,Pi=ac.assert;function z0(i,e){this.ec=i,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}var sc=z0;z0.fromPublic=function(e,t,r){return t instanceof z0?t:new z0(e,{pub:t,pubEnc:r})};z0.fromPrivate=function(e,t,r){return t instanceof z0?t:new z0(e,{priv:t,privEnc:r})};z0.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}};z0.prototype.getPublic=function(e,t){return typeof e=="string"&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub};z0.prototype.getPrivate=function(e){return e==="hex"?this.priv.toString(16,2):this.priv};z0.prototype._importPrivate=function(e,t){this.priv=new fc(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)};z0.prototype._importPublic=function(e,t){if(e.x||e.y){this.ec.curve.type==="mont"?Pi(e.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&Pi(e.x&&e.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,t)};z0.prototype.derive=function(e){return e.validate()||Pi(e.validate(),"public point not validated"),e.mul(this.priv).getX()};z0.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)};z0.prototype.verify=function(e,t){return this.ec.verify(e,t,this)};z0.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var _r=yt,Xi=V0,oc=Xi.assert;function kr(i,e){if(i instanceof kr)return i;this._importDER(i,e)||(oc(i.r&&i.s,"Signature without r or s"),this.r=new _r(i.r,16),this.s=new _r(i.s,16),i.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=i.recoveryParam)}var cc=kr;function dc(){this.place=0}function Ei(i,e){var t=i[e.place++];if(!(t&128))return t;var r=t&15;if(r===0||r>4)return!1;for(var a=0,n=0,y=e.place;n<r;n++,y++)a<<=8,a|=i[y],a>>>=0;return a<=127?!1:(e.place=y,a)}function Gn(i){for(var e=0,t=i.length-1;!i[e]&&!(i[e+1]&128)&&e<t;)e++;return e===0?i:i.slice(e)}kr.prototype._importDER=function(e,t){e=Xi.toArray(e,t);var r=new dc;if(e[r.place++]!==48)return!1;var a=Ei(e,r);if(a===!1||a+r.place!==e.length||e[r.place++]!==2)return!1;var n=Ei(e,r);if(n===!1)return!1;var y=e.slice(r.place,n+r.place);if(r.place+=n,e[r.place++]!==2)return!1;var x=Ei(e,r);if(x===!1||e.length!==x+r.place)return!1;var u=e.slice(r.place,x+r.place);if(y[0]===0)if(y[1]&128)y=y.slice(1);else return!1;if(u[0]===0)if(u[1]&128)u=u.slice(1);else return!1;return this.r=new _r(y),this.s=new _r(u),this.recoveryParam=null,!0};function wi(i,e){if(e<128){i.push(e);return}var t=1+(Math.log(e)/Math.LN2>>>3);for(i.push(t|128);--t;)i.push(e>>>(t<<3)&255);i.push(e)}kr.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(t[0]&128&&(t=[0].concat(t)),r[0]&128&&(r=[0].concat(r)),t=Gn(t),r=Gn(r);!r[0]&&!(r[1]&128);)r=r.slice(1);var a=[2];wi(a,t.length),a=a.concat(t),a.push(2),wi(a,r.length);var n=a.concat(r),y=[48];return wi(y,n.length),y=y.concat(n),Xi.encode(y,e)};var Dt=yt,Wf=nc,hc=V0,Bi=Dr,uc=Ef,Yf=hc.assert,Zi=sc,Pr=cc;function Z0(i){if(!(this instanceof Z0))return new Z0(i);typeof i=="string"&&(Yf(Object.prototype.hasOwnProperty.call(Bi,i),"Unknown curve "+i),i=Bi[i]),i instanceof Bi.PresetCurve&&(i={curve:i}),this.curve=i.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=i.curve.g,this.g.precompute(i.curve.n.bitLength()+1),this.hash=i.hash||i.curve.hash}var lc=Z0;Z0.prototype.keyPair=function(e){return new Zi(this,e)};Z0.prototype.keyFromPrivate=function(e,t){return Zi.fromPrivate(this,e,t)};Z0.prototype.keyFromPublic=function(e,t){return Zi.fromPublic(this,e,t)};Z0.prototype.genKeyPair=function(e){e||(e={});for(var t=new Wf({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||uc(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),a=this.n.sub(new Dt(2));;){var n=new Dt(t.generate(r));if(!(n.cmp(a)>0))return n.iaddn(1),this.keyFromPrivate(n)}};Z0.prototype._truncateToN=function(e,t){var r=e.byteLength()*8-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e};Z0.prototype.sign=function(e,t,r,a){typeof r=="object"&&(a=r,r=null),a||(a={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new Dt(e,16));for(var n=this.n.byteLength(),y=t.getPrivate().toArray("be",n),x=e.toArray("be",n),u=new Wf({hash:this.hash,entropy:y,nonce:x,pers:a.pers,persEnc:a.persEnc||"utf8"}),c=this.n.sub(new Dt(1)),d=0;;d++){var v=a.k?a.k(d):new Dt(u.generate(this.n.byteLength()));if(v=this._truncateToN(v,!0),!(v.cmpn(1)<=0||v.cmp(c)>=0)){var b=this.g.mul(v);if(!b.isInfinity()){var M=b.getX(),B=M.umod(this.n);if(B.cmpn(0)!==0){var R=v.invm(this.n).mul(B.mul(t.getPrivate()).iadd(e));if(R=R.umod(this.n),R.cmpn(0)!==0){var k=(b.getY().isOdd()?1:0)|(M.cmp(B)!==0?2:0);return a.canonical&&R.cmp(this.nh)>0&&(R=this.n.sub(R),k^=1),new Pr({r:B,s:R,recoveryParam:k})}}}}}};Z0.prototype.verify=function(e,t,r,a){e=this._truncateToN(new Dt(e,16)),r=this.keyFromPublic(r,a),t=new Pr(t,"hex");var n=t.r,y=t.s;if(n.cmpn(1)<0||n.cmp(this.n)>=0||y.cmpn(1)<0||y.cmp(this.n)>=0)return!1;var x=y.invm(this.n),u=x.mul(e).umod(this.n),c=x.mul(n).umod(this.n),d;return this.curve._maxwellTrick?(d=this.g.jmulAdd(u,r.getPublic(),c),d.isInfinity()?!1:d.eqXToP(n)):(d=this.g.mulAdd(u,r.getPublic(),c),d.isInfinity()?!1:d.getX().umod(this.n).cmp(n)===0)};Z0.prototype.recoverPubKey=function(i,e,t,r){Yf((3&t)===t,"The recovery param is more than two bits"),e=new Pr(e,r);var a=this.n,n=new Dt(i),y=e.r,x=e.s,u=t&1,c=t>>1;if(y.cmp(this.curve.p.umod(this.curve.n))>=0&&c)throw new Error("Unable to find sencond key candinate");c?y=this.curve.pointFromX(y.add(this.curve.n),u):y=this.curve.pointFromX(y,u);var d=e.r.invm(a),v=a.sub(n).mul(d).umod(a),b=x.mul(d).umod(a);return this.g.mulAdd(v,y,b)};Z0.prototype.getKeyRecoveryParam=function(i,e,t,r){if(e=new Pr(e,r),e.recoveryParam!==null)return e.recoveryParam;for(var a=0;a<4;a++){var n;try{n=this.recoverPubKey(i,e,a)}catch{continue}if(n.eq(t))return a}throw new Error("Unable to find valid recovery factor")};var ar=V0,jf=ar.assert,Qn=ar.parseBytes,Kt=ar.cachedProperty;function B0(i,e){this.eddsa=i,this._secret=Qn(e.secret),i.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=Qn(e.pub)}B0.fromPublic=function(e,t){return t instanceof B0?t:new B0(e,{pub:t})};B0.fromSecret=function(e,t){return t instanceof B0?t:new B0(e,{secret:t})};B0.prototype.secret=function(){return this._secret};Kt(B0,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())});Kt(B0,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});Kt(B0,"privBytes",function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,a=t.slice(0,e.encodingLength);return a[0]&=248,a[r]&=127,a[r]|=64,a});Kt(B0,"priv",function(){return this.eddsa.decodeInt(this.privBytes())});Kt(B0,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()});Kt(B0,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)});B0.prototype.sign=function(e){return jf(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)};B0.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)};B0.prototype.getSecret=function(e){return jf(this._secret,"KeyPair is public only"),ar.encode(this.secret(),e)};B0.prototype.getPublic=function(e){return ar.encode(this.pubBytes(),e)};var xc=B0,vc=yt,Ir=V0,bc=Ir.assert,Tr=Ir.cachedProperty,pc=Ir.parseBytes;function Tt(i,e){this.eddsa=i,typeof e!="object"&&(e=pc(e)),Array.isArray(e)&&(e={R:e.slice(0,i.encodingLength),S:e.slice(i.encodingLength)}),bc(e.R&&e.S,"Signature without R or S"),i.isPoint(e.R)&&(this._R=e.R),e.S instanceof vc&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}Tr(Tt,"S",function(){return this.eddsa.decodeInt(this.Sencoded())});Tr(Tt,"R",function(){return this.eddsa.decodePoint(this.Rencoded())});Tr(Tt,"Rencoded",function(){return this.eddsa.encodePoint(this.R())});Tr(Tt,"Sencoded",function(){return this.eddsa.encodeInt(this.S())});Tt.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};Tt.prototype.toHex=function(){return Ir.encode(this.toBytes(),"hex").toUpperCase()};var yc=Tt,gc=Fr,mc=Dr,$t=V0,_c=$t.assert,Kf=$t.parseBytes,Vf=xc,Jn=yc;function W0(i){if(_c(i==="ed25519","only tested with ed25519 so far"),!(this instanceof W0))return new W0(i);i=mc[i].curve,this.curve=i,this.g=i.g,this.g.precompute(i.n.bitLength()+1),this.pointClass=i.point().constructor,this.encodingLength=Math.ceil(i.n.bitLength()/8),this.hash=gc.sha512}var Ac=W0;W0.prototype.sign=function(e,t){e=Kf(e);var r=this.keyFromSecret(t),a=this.hashInt(r.messagePrefix(),e),n=this.g.mul(a),y=this.encodePoint(n),x=this.hashInt(y,r.pubBytes(),e).mul(r.priv()),u=a.add(x).umod(this.curve.n);return this.makeSignature({R:n,S:u,Rencoded:y})};W0.prototype.verify=function(e,t,r){e=Kf(e),t=this.makeSignature(t);var a=this.keyFromPublic(r),n=this.hashInt(t.Rencoded(),a.pubBytes(),e),y=this.g.mul(t.S()),x=t.R().add(a.pub().mul(n));return x.eq(y)};W0.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return $t.intFromLE(e.digest()).umod(this.curve.n)};W0.prototype.keyFromPublic=function(e){return Vf.fromPublic(this,e)};W0.prototype.keyFromSecret=function(e){return Vf.fromSecret(this,e)};W0.prototype.makeSignature=function(e){return e instanceof Jn?e:new Jn(this,e)};W0.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t};W0.prototype.decodePoint=function(e){e=$t.parseBytes(e);var t=e.length-1,r=e.slice(0,t).concat(e[t]&-129),a=(e[t]&128)!==0,n=$t.intFromLE(r);return this.curve.pointFromY(n,a)};W0.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)};W0.prototype.decodeInt=function(e){return $t.intFromLE(e)};W0.prototype.isPoint=function(e){return e instanceof this.pointClass};(function(i){var e=i;e.version=gs.version,e.utils=V0,e.rand=Ef,e.curve=Ki,e.curves=Dr,e.ec=lc,e.eddsa=Ac})(_f);var Xf={exports:{}};(function(i){(function(e){var t=function(l){var C,w=new Float64Array(16);if(l)for(C=0;C<l.length;C++)w[C]=l[C];return w},r=function(){throw new Error("no PRNG")},a=new Uint8Array(16),n=new Uint8Array(32);n[0]=9;var y=t(),x=t([1]),u=t([56129,1]),c=t([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),d=t([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),v=t([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),b=t([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),M=t([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function B(l,C,w,s){l[C]=w>>24&255,l[C+1]=w>>16&255,l[C+2]=w>>8&255,l[C+3]=w&255,l[C+4]=s>>24&255,l[C+5]=s>>16&255,l[C+6]=s>>8&255,l[C+7]=s&255}function R(l,C,w,s,D){var m,z=0;for(m=0;m<D;m++)z|=l[C+m]^w[s+m];return(1&z-1>>>8)-1}function k(l,C,w,s){return R(l,C,w,s,16)}function q(l,C,w,s){return R(l,C,w,s,32)}function F(l,C,w,s){for(var D=s[0]&255|(s[1]&255)<<8|(s[2]&255)<<16|(s[3]&255)<<24,m=w[0]&255|(w[1]&255)<<8|(w[2]&255)<<16|(w[3]&255)<<24,z=w[4]&255|(w[5]&255)<<8|(w[6]&255)<<16|(w[7]&255)<<24,L=w[8]&255|(w[9]&255)<<8|(w[10]&255)<<16|(w[11]&255)<<24,V=w[12]&255|(w[13]&255)<<8|(w[14]&255)<<16|(w[15]&255)<<24,fe=s[4]&255|(s[5]&255)<<8|(s[6]&255)<<16|(s[7]&255)<<24,ie=C[0]&255|(C[1]&255)<<8|(C[2]&255)<<16|(C[3]&255)<<24,he=C[4]&255|(C[5]&255)<<8|(C[6]&255)<<16|(C[7]&255)<<24,re=C[8]&255|(C[9]&255)<<8|(C[10]&255)<<16|(C[11]&255)<<24,xe=C[12]&255|(C[13]&255)<<8|(C[14]&255)<<16|(C[15]&255)<<24,ue=s[8]&255|(s[9]&255)<<8|(s[10]&255)<<16|(s[11]&255)<<24,ve=w[16]&255|(w[17]&255)<<8|(w[18]&255)<<16|(w[19]&255)<<24,me=w[20]&255|(w[21]&255)<<8|(w[22]&255)<<16|(w[23]&255)<<24,_e=w[24]&255|(w[25]&255)<<8|(w[26]&255)<<16|(w[27]&255)<<24,Ae=w[28]&255|(w[29]&255)<<8|(w[30]&255)<<16|(w[31]&255)<<24,pe=s[12]&255|(s[13]&255)<<8|(s[14]&255)<<16|(s[15]&255)<<24,de=D,ye=m,ce=z,le=L,be=V,oe=fe,Z=ie,G=he,ne=re,ee=xe,te=ue,ae=ve,Be=me,Se=_e,Re=Ae,De=pe,N,ze=0;ze<20;ze+=2)N=de+Be|0,be^=N<<7|N>>>25,N=be+de|0,ne^=N<<9|N>>>23,N=ne+be|0,Be^=N<<13|N>>>19,N=Be+ne|0,de^=N<<18|N>>>14,N=oe+ye|0,ee^=N<<7|N>>>25,N=ee+oe|0,Se^=N<<9|N>>>23,N=Se+ee|0,ye^=N<<13|N>>>19,N=ye+Se|0,oe^=N<<18|N>>>14,N=te+Z|0,Re^=N<<7|N>>>25,N=Re+te|0,ce^=N<<9|N>>>23,N=ce+Re|0,Z^=N<<13|N>>>19,N=Z+ce|0,te^=N<<18|N>>>14,N=De+ae|0,le^=N<<7|N>>>25,N=le+De|0,G^=N<<9|N>>>23,N=G+le|0,ae^=N<<13|N>>>19,N=ae+G|0,De^=N<<18|N>>>14,N=de+le|0,ye^=N<<7|N>>>25,N=ye+de|0,ce^=N<<9|N>>>23,N=ce+ye|0,le^=N<<13|N>>>19,N=le+ce|0,de^=N<<18|N>>>14,N=oe+be|0,Z^=N<<7|N>>>25,N=Z+oe|0,G^=N<<9|N>>>23,N=G+Z|0,be^=N<<13|N>>>19,N=be+G|0,oe^=N<<18|N>>>14,N=te+ee|0,ae^=N<<7|N>>>25,N=ae+te|0,ne^=N<<9|N>>>23,N=ne+ae|0,ee^=N<<13|N>>>19,N=ee+ne|0,te^=N<<18|N>>>14,N=De+Re|0,Be^=N<<7|N>>>25,N=Be+De|0,Se^=N<<9|N>>>23,N=Se+Be|0,Re^=N<<13|N>>>19,N=Re+Se|0,De^=N<<18|N>>>14;de=de+D|0,ye=ye+m|0,ce=ce+z|0,le=le+L|0,be=be+V|0,oe=oe+fe|0,Z=Z+ie|0,G=G+he|0,ne=ne+re|0,ee=ee+xe|0,te=te+ue|0,ae=ae+ve|0,Be=Be+me|0,Se=Se+_e|0,Re=Re+Ae|0,De=De+pe|0,l[0]=de>>>0&255,l[1]=de>>>8&255,l[2]=de>>>16&255,l[3]=de>>>24&255,l[4]=ye>>>0&255,l[5]=ye>>>8&255,l[6]=ye>>>16&255,l[7]=ye>>>24&255,l[8]=ce>>>0&255,l[9]=ce>>>8&255,l[10]=ce>>>16&255,l[11]=ce>>>24&255,l[12]=le>>>0&255,l[13]=le>>>8&255,l[14]=le>>>16&255,l[15]=le>>>24&255,l[16]=be>>>0&255,l[17]=be>>>8&255,l[18]=be>>>16&255,l[19]=be>>>24&255,l[20]=oe>>>0&255,l[21]=oe>>>8&255,l[22]=oe>>>16&255,l[23]=oe>>>24&255,l[24]=Z>>>0&255,l[25]=Z>>>8&255,l[26]=Z>>>16&255,l[27]=Z>>>24&255,l[28]=G>>>0&255,l[29]=G>>>8&255,l[30]=G>>>16&255,l[31]=G>>>24&255,l[32]=ne>>>0&255,l[33]=ne>>>8&255,l[34]=ne>>>16&255,l[35]=ne>>>24&255,l[36]=ee>>>0&255,l[37]=ee>>>8&255,l[38]=ee>>>16&255,l[39]=ee>>>24&255,l[40]=te>>>0&255,l[41]=te>>>8&255,l[42]=te>>>16&255,l[43]=te>>>24&255,l[44]=ae>>>0&255,l[45]=ae>>>8&255,l[46]=ae>>>16&255,l[47]=ae>>>24&255,l[48]=Be>>>0&255,l[49]=Be>>>8&255,l[50]=Be>>>16&255,l[51]=Be>>>24&255,l[52]=Se>>>0&255,l[53]=Se>>>8&255,l[54]=Se>>>16&255,l[55]=Se>>>24&255,l[56]=Re>>>0&255,l[57]=Re>>>8&255,l[58]=Re>>>16&255,l[59]=Re>>>24&255,l[60]=De>>>0&255,l[61]=De>>>8&255,l[62]=De>>>16&255,l[63]=De>>>24&255}function P(l,C,w,s){for(var D=s[0]&255|(s[1]&255)<<8|(s[2]&255)<<16|(s[3]&255)<<24,m=w[0]&255|(w[1]&255)<<8|(w[2]&255)<<16|(w[3]&255)<<24,z=w[4]&255|(w[5]&255)<<8|(w[6]&255)<<16|(w[7]&255)<<24,L=w[8]&255|(w[9]&255)<<8|(w[10]&255)<<16|(w[11]&255)<<24,V=w[12]&255|(w[13]&255)<<8|(w[14]&255)<<16|(w[15]&255)<<24,fe=s[4]&255|(s[5]&255)<<8|(s[6]&255)<<16|(s[7]&255)<<24,ie=C[0]&255|(C[1]&255)<<8|(C[2]&255)<<16|(C[3]&255)<<24,he=C[4]&255|(C[5]&255)<<8|(C[6]&255)<<16|(C[7]&255)<<24,re=C[8]&255|(C[9]&255)<<8|(C[10]&255)<<16|(C[11]&255)<<24,xe=C[12]&255|(C[13]&255)<<8|(C[14]&255)<<16|(C[15]&255)<<24,ue=s[8]&255|(s[9]&255)<<8|(s[10]&255)<<16|(s[11]&255)<<24,ve=w[16]&255|(w[17]&255)<<8|(w[18]&255)<<16|(w[19]&255)<<24,me=w[20]&255|(w[21]&255)<<8|(w[22]&255)<<16|(w[23]&255)<<24,_e=w[24]&255|(w[25]&255)<<8|(w[26]&255)<<16|(w[27]&255)<<24,Ae=w[28]&255|(w[29]&255)<<8|(w[30]&255)<<16|(w[31]&255)<<24,pe=s[12]&255|(s[13]&255)<<8|(s[14]&255)<<16|(s[15]&255)<<24,de=D,ye=m,ce=z,le=L,be=V,oe=fe,Z=ie,G=he,ne=re,ee=xe,te=ue,ae=ve,Be=me,Se=_e,Re=Ae,De=pe,N,ze=0;ze<20;ze+=2)N=de+Be|0,be^=N<<7|N>>>25,N=be+de|0,ne^=N<<9|N>>>23,N=ne+be|0,Be^=N<<13|N>>>19,N=Be+ne|0,de^=N<<18|N>>>14,N=oe+ye|0,ee^=N<<7|N>>>25,N=ee+oe|0,Se^=N<<9|N>>>23,N=Se+ee|0,ye^=N<<13|N>>>19,N=ye+Se|0,oe^=N<<18|N>>>14,N=te+Z|0,Re^=N<<7|N>>>25,N=Re+te|0,ce^=N<<9|N>>>23,N=ce+Re|0,Z^=N<<13|N>>>19,N=Z+ce|0,te^=N<<18|N>>>14,N=De+ae|0,le^=N<<7|N>>>25,N=le+De|0,G^=N<<9|N>>>23,N=G+le|0,ae^=N<<13|N>>>19,N=ae+G|0,De^=N<<18|N>>>14,N=de+le|0,ye^=N<<7|N>>>25,N=ye+de|0,ce^=N<<9|N>>>23,N=ce+ye|0,le^=N<<13|N>>>19,N=le+ce|0,de^=N<<18|N>>>14,N=oe+be|0,Z^=N<<7|N>>>25,N=Z+oe|0,G^=N<<9|N>>>23,N=G+Z|0,be^=N<<13|N>>>19,N=be+G|0,oe^=N<<18|N>>>14,N=te+ee|0,ae^=N<<7|N>>>25,N=ae+te|0,ne^=N<<9|N>>>23,N=ne+ae|0,ee^=N<<13|N>>>19,N=ee+ne|0,te^=N<<18|N>>>14,N=De+Re|0,Be^=N<<7|N>>>25,N=Be+De|0,Se^=N<<9|N>>>23,N=Se+Be|0,Re^=N<<13|N>>>19,N=Re+Se|0,De^=N<<18|N>>>14;l[0]=de>>>0&255,l[1]=de>>>8&255,l[2]=de>>>16&255,l[3]=de>>>24&255,l[4]=oe>>>0&255,l[5]=oe>>>8&255,l[6]=oe>>>16&255,l[7]=oe>>>24&255,l[8]=te>>>0&255,l[9]=te>>>8&255,l[10]=te>>>16&255,l[11]=te>>>24&255,l[12]=De>>>0&255,l[13]=De>>>8&255,l[14]=De>>>16&255,l[15]=De>>>24&255,l[16]=Z>>>0&255,l[17]=Z>>>8&255,l[18]=Z>>>16&255,l[19]=Z>>>24&255,l[20]=G>>>0&255,l[21]=G>>>8&255,l[22]=G>>>16&255,l[23]=G>>>24&255,l[24]=ne>>>0&255,l[25]=ne>>>8&255,l[26]=ne>>>16&255,l[27]=ne>>>24&255,l[28]=ee>>>0&255,l[29]=ee>>>8&255,l[30]=ee>>>16&255,l[31]=ee>>>24&255}function O(l,C,w,s){F(l,C,w,s)}function H(l,C,w,s){P(l,C,w,s)}var U=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function K(l,C,w,s,D,m,z){var L=new Uint8Array(16),V=new Uint8Array(64),fe,ie;for(ie=0;ie<16;ie++)L[ie]=0;for(ie=0;ie<8;ie++)L[ie]=m[ie];for(;D>=64;){for(O(V,L,z,U),ie=0;ie<64;ie++)l[C+ie]=w[s+ie]^V[ie];for(fe=1,ie=8;ie<16;ie++)fe=fe+(L[ie]&255)|0,L[ie]=fe&255,fe>>>=8;D-=64,C+=64,s+=64}if(D>0)for(O(V,L,z,U),ie=0;ie<D;ie++)l[C+ie]=w[s+ie]^V[ie];return 0}function X(l,C,w,s,D){var m=new Uint8Array(16),z=new Uint8Array(64),L,V;for(V=0;V<16;V++)m[V]=0;for(V=0;V<8;V++)m[V]=s[V];for(;w>=64;){for(O(z,m,D,U),V=0;V<64;V++)l[C+V]=z[V];for(L=1,V=8;V<16;V++)L=L+(m[V]&255)|0,m[V]=L&255,L>>>=8;w-=64,C+=64}if(w>0)for(O(z,m,D,U),V=0;V<w;V++)l[C+V]=z[V];return 0}function Q(l,C,w,s,D){var m=new Uint8Array(32);H(m,s,D,U);for(var z=new Uint8Array(8),L=0;L<8;L++)z[L]=s[L+16];return X(l,C,w,z,m)}function $(l,C,w,s,D,m,z){var L=new Uint8Array(32);H(L,m,z,U);for(var V=new Uint8Array(8),fe=0;fe<8;fe++)V[fe]=m[fe+16];return K(l,C,w,s,D,V,L)}var _=function(l){this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0;var C,w,s,D,m,z,L,V;C=l[0]&255|(l[1]&255)<<8,this.r[0]=C&8191,w=l[2]&255|(l[3]&255)<<8,this.r[1]=(C>>>13|w<<3)&8191,s=l[4]&255|(l[5]&255)<<8,this.r[2]=(w>>>10|s<<6)&7939,D=l[6]&255|(l[7]&255)<<8,this.r[3]=(s>>>7|D<<9)&8191,m=l[8]&255|(l[9]&255)<<8,this.r[4]=(D>>>4|m<<12)&255,this.r[5]=m>>>1&8190,z=l[10]&255|(l[11]&255)<<8,this.r[6]=(m>>>14|z<<2)&8191,L=l[12]&255|(l[13]&255)<<8,this.r[7]=(z>>>11|L<<5)&8065,V=l[14]&255|(l[15]&255)<<8,this.r[8]=(L>>>8|V<<8)&8191,this.r[9]=V>>>5&127,this.pad[0]=l[16]&255|(l[17]&255)<<8,this.pad[1]=l[18]&255|(l[19]&255)<<8,this.pad[2]=l[20]&255|(l[21]&255)<<8,this.pad[3]=l[22]&255|(l[23]&255)<<8,this.pad[4]=l[24]&255|(l[25]&255)<<8,this.pad[5]=l[26]&255|(l[27]&255)<<8,this.pad[6]=l[28]&255|(l[29]&255)<<8,this.pad[7]=l[30]&255|(l[31]&255)<<8};_.prototype.blocks=function(l,C,w){for(var s=this.fin?0:2048,D,m,z,L,V,fe,ie,he,re,xe,ue,ve,me,_e,Ae,pe,de,ye,ce,le=this.h[0],be=this.h[1],oe=this.h[2],Z=this.h[3],G=this.h[4],ne=this.h[5],ee=this.h[6],te=this.h[7],ae=this.h[8],Be=this.h[9],Se=this.r[0],Re=this.r[1],De=this.r[2],N=this.r[3],ze=this.r[4],Xe=this.r[5],Ze=this.r[6],Te=this.r[7],je=this.r[8],Ke=this.r[9];w>=16;)D=l[C+0]&255|(l[C+1]&255)<<8,le+=D&8191,m=l[C+2]&255|(l[C+3]&255)<<8,be+=(D>>>13|m<<3)&8191,z=l[C+4]&255|(l[C+5]&255)<<8,oe+=(m>>>10|z<<6)&8191,L=l[C+6]&255|(l[C+7]&255)<<8,Z+=(z>>>7|L<<9)&8191,V=l[C+8]&255|(l[C+9]&255)<<8,G+=(L>>>4|V<<12)&8191,ne+=V>>>1&8191,fe=l[C+10]&255|(l[C+11]&255)<<8,ee+=(V>>>14|fe<<2)&8191,ie=l[C+12]&255|(l[C+13]&255)<<8,te+=(fe>>>11|ie<<5)&8191,he=l[C+14]&255|(l[C+15]&255)<<8,ae+=(ie>>>8|he<<8)&8191,Be+=he>>>5|s,re=0,xe=re,xe+=le*Se,xe+=be*(5*Ke),xe+=oe*(5*je),xe+=Z*(5*Te),xe+=G*(5*Ze),re=xe>>>13,xe&=8191,xe+=ne*(5*Xe),xe+=ee*(5*ze),xe+=te*(5*N),xe+=ae*(5*De),xe+=Be*(5*Re),re+=xe>>>13,xe&=8191,ue=re,ue+=le*Re,ue+=be*Se,ue+=oe*(5*Ke),ue+=Z*(5*je),ue+=G*(5*Te),re=ue>>>13,ue&=8191,ue+=ne*(5*Ze),ue+=ee*(5*Xe),ue+=te*(5*ze),ue+=ae*(5*N),ue+=Be*(5*De),re+=ue>>>13,ue&=8191,ve=re,ve+=le*De,ve+=be*Re,ve+=oe*Se,ve+=Z*(5*Ke),ve+=G*(5*je),re=ve>>>13,ve&=8191,ve+=ne*(5*Te),ve+=ee*(5*Ze),ve+=te*(5*Xe),ve+=ae*(5*ze),ve+=Be*(5*N),re+=ve>>>13,ve&=8191,me=re,me+=le*N,me+=be*De,me+=oe*Re,me+=Z*Se,me+=G*(5*Ke),re=me>>>13,me&=8191,me+=ne*(5*je),me+=ee*(5*Te),me+=te*(5*Ze),me+=ae*(5*Xe),me+=Be*(5*ze),re+=me>>>13,me&=8191,_e=re,_e+=le*ze,_e+=be*N,_e+=oe*De,_e+=Z*Re,_e+=G*Se,re=_e>>>13,_e&=8191,_e+=ne*(5*Ke),_e+=ee*(5*je),_e+=te*(5*Te),_e+=ae*(5*Ze),_e+=Be*(5*Xe),re+=_e>>>13,_e&=8191,Ae=re,Ae+=le*Xe,Ae+=be*ze,Ae+=oe*N,Ae+=Z*De,Ae+=G*Re,re=Ae>>>13,Ae&=8191,Ae+=ne*Se,Ae+=ee*(5*Ke),Ae+=te*(5*je),Ae+=ae*(5*Te),Ae+=Be*(5*Ze),re+=Ae>>>13,Ae&=8191,pe=re,pe+=le*Ze,pe+=be*Xe,pe+=oe*ze,pe+=Z*N,pe+=G*De,re=pe>>>13,pe&=8191,pe+=ne*Re,pe+=ee*Se,pe+=te*(5*Ke),pe+=ae*(5*je),pe+=Be*(5*Te),re+=pe>>>13,pe&=8191,de=re,de+=le*Te,de+=be*Ze,de+=oe*Xe,de+=Z*ze,de+=G*N,re=de>>>13,de&=8191,de+=ne*De,de+=ee*Re,de+=te*Se,de+=ae*(5*Ke),de+=Be*(5*je),re+=de>>>13,de&=8191,ye=re,ye+=le*je,ye+=be*Te,ye+=oe*Ze,ye+=Z*Xe,ye+=G*ze,re=ye>>>13,ye&=8191,ye+=ne*N,ye+=ee*De,ye+=te*Re,ye+=ae*Se,ye+=Be*(5*Ke),re+=ye>>>13,ye&=8191,ce=re,ce+=le*Ke,ce+=be*je,ce+=oe*Te,ce+=Z*Ze,ce+=G*Xe,re=ce>>>13,ce&=8191,ce+=ne*ze,ce+=ee*N,ce+=te*De,ce+=ae*Re,ce+=Be*Se,re+=ce>>>13,ce&=8191,re=(re<<2)+re|0,re=re+xe|0,xe=re&8191,re=re>>>13,ue+=re,le=xe,be=ue,oe=ve,Z=me,G=_e,ne=Ae,ee=pe,te=de,ae=ye,Be=ce,C+=16,w-=16;this.h[0]=le,this.h[1]=be,this.h[2]=oe,this.h[3]=Z,this.h[4]=G,this.h[5]=ne,this.h[6]=ee,this.h[7]=te,this.h[8]=ae,this.h[9]=Be},_.prototype.finish=function(l,C){var w=new Uint16Array(10),s,D,m,z;if(this.leftover){for(z=this.leftover,this.buffer[z++]=1;z<16;z++)this.buffer[z]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(s=this.h[1]>>>13,this.h[1]&=8191,z=2;z<10;z++)this.h[z]+=s,s=this.h[z]>>>13,this.h[z]&=8191;for(this.h[0]+=s*5,s=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=s,s=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=s,w[0]=this.h[0]+5,s=w[0]>>>13,w[0]&=8191,z=1;z<10;z++)w[z]=this.h[z]+s,s=w[z]>>>13,w[z]&=8191;for(w[9]-=8192,D=(s^1)-1,z=0;z<10;z++)w[z]&=D;for(D=~D,z=0;z<10;z++)this.h[z]=this.h[z]&D|w[z];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,m=this.h[0]+this.pad[0],this.h[0]=m&65535,z=1;z<8;z++)m=(this.h[z]+this.pad[z]|0)+(m>>>16)|0,this.h[z]=m&65535;l[C+0]=this.h[0]>>>0&255,l[C+1]=this.h[0]>>>8&255,l[C+2]=this.h[1]>>>0&255,l[C+3]=this.h[1]>>>8&255,l[C+4]=this.h[2]>>>0&255,l[C+5]=this.h[2]>>>8&255,l[C+6]=this.h[3]>>>0&255,l[C+7]=this.h[3]>>>8&255,l[C+8]=this.h[4]>>>0&255,l[C+9]=this.h[4]>>>8&255,l[C+10]=this.h[5]>>>0&255,l[C+11]=this.h[5]>>>8&255,l[C+12]=this.h[6]>>>0&255,l[C+13]=this.h[6]>>>8&255,l[C+14]=this.h[7]>>>0&255,l[C+15]=this.h[7]>>>8&255},_.prototype.update=function(l,C,w){var s,D;if(this.leftover){for(D=16-this.leftover,D>w&&(D=w),s=0;s<D;s++)this.buffer[this.leftover+s]=l[C+s];if(w-=D,C+=D,this.leftover+=D,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(w>=16&&(D=w-w%16,this.blocks(l,C,D),C+=D,w-=D),w){for(s=0;s<w;s++)this.buffer[this.leftover+s]=l[C+s];this.leftover+=w}};function f(l,C,w,s,D,m){var z=new _(m);return z.update(w,s,D),z.finish(l,C),0}function h(l,C,w,s,D,m){var z=new Uint8Array(16);return f(z,0,w,s,D,m),k(l,C,z,0)}function p(l,C,w,s,D){var m;if(w<32)return-1;for($(l,0,C,0,w,s,D),f(l,16,l,32,w-32,l),m=0;m<16;m++)l[m]=0;return 0}function g(l,C,w,s,D){var m,z=new Uint8Array(32);if(w<32||(Q(z,0,32,s,D),h(C,16,C,32,w-32,z)!==0))return-1;for($(l,0,C,0,w,s,D),m=0;m<32;m++)l[m]=0;return 0}function E(l,C){var w;for(w=0;w<16;w++)l[w]=C[w]|0}function I(l){var C,w,s=1;for(C=0;C<16;C++)w=l[C]+s+65535,s=Math.floor(w/65536),l[C]=w-s*65536;l[0]+=s-1+37*(s-1)}function T(l,C,w){for(var s,D=~(w-1),m=0;m<16;m++)s=D&(l[m]^C[m]),l[m]^=s,C[m]^=s}function S(l,C){var w,s,D,m=t(),z=t();for(w=0;w<16;w++)z[w]=C[w];for(I(z),I(z),I(z),s=0;s<2;s++){for(m[0]=z[0]-65517,w=1;w<15;w++)m[w]=z[w]-65535-(m[w-1]>>16&1),m[w-1]&=65535;m[15]=z[15]-32767-(m[14]>>16&1),D=m[15]>>16&1,m[14]&=65535,T(z,m,1-D)}for(w=0;w<16;w++)l[2*w]=z[w]&255,l[2*w+1]=z[w]>>8}function o(l,C){var w=new Uint8Array(32),s=new Uint8Array(32);return S(w,l),S(s,C),q(w,0,s,0)}function A(l){var C=new Uint8Array(32);return S(C,l),C[0]&1}function Y(l,C){var w;for(w=0;w<16;w++)l[w]=C[2*w]+(C[2*w+1]<<8);l[15]&=32767}function j(l,C,w){for(var s=0;s<16;s++)l[s]=C[s]+w[s]}function W(l,C,w){for(var s=0;s<16;s++)l[s]=C[s]-w[s]}function J(l,C,w){var s,D,m=0,z=0,L=0,V=0,fe=0,ie=0,he=0,re=0,xe=0,ue=0,ve=0,me=0,_e=0,Ae=0,pe=0,de=0,ye=0,ce=0,le=0,be=0,oe=0,Z=0,G=0,ne=0,ee=0,te=0,ae=0,Be=0,Se=0,Re=0,De=0,N=w[0],ze=w[1],Xe=w[2],Ze=w[3],Te=w[4],je=w[5],Ke=w[6],m0=w[7],h0=w[8],b0=w[9],p0=w[10],y0=w[11],w0=w[12],P0=w[13],I0=w[14],T0=w[15];s=C[0],m+=s*N,z+=s*ze,L+=s*Xe,V+=s*Ze,fe+=s*Te,ie+=s*je,he+=s*Ke,re+=s*m0,xe+=s*h0,ue+=s*b0,ve+=s*p0,me+=s*y0,_e+=s*w0,Ae+=s*P0,pe+=s*I0,de+=s*T0,s=C[1],z+=s*N,L+=s*ze,V+=s*Xe,fe+=s*Ze,ie+=s*Te,he+=s*je,re+=s*Ke,xe+=s*m0,ue+=s*h0,ve+=s*b0,me+=s*p0,_e+=s*y0,Ae+=s*w0,pe+=s*P0,de+=s*I0,ye+=s*T0,s=C[2],L+=s*N,V+=s*ze,fe+=s*Xe,ie+=s*Ze,he+=s*Te,re+=s*je,xe+=s*Ke,ue+=s*m0,ve+=s*h0,me+=s*b0,_e+=s*p0,Ae+=s*y0,pe+=s*w0,de+=s*P0,ye+=s*I0,ce+=s*T0,s=C[3],V+=s*N,fe+=s*ze,ie+=s*Xe,he+=s*Ze,re+=s*Te,xe+=s*je,ue+=s*Ke,ve+=s*m0,me+=s*h0,_e+=s*b0,Ae+=s*p0,pe+=s*y0,de+=s*w0,ye+=s*P0,ce+=s*I0,le+=s*T0,s=C[4],fe+=s*N,ie+=s*ze,he+=s*Xe,re+=s*Ze,xe+=s*Te,ue+=s*je,ve+=s*Ke,me+=s*m0,_e+=s*h0,Ae+=s*b0,pe+=s*p0,de+=s*y0,ye+=s*w0,ce+=s*P0,le+=s*I0,be+=s*T0,s=C[5],ie+=s*N,he+=s*ze,re+=s*Xe,xe+=s*Ze,ue+=s*Te,ve+=s*je,me+=s*Ke,_e+=s*m0,Ae+=s*h0,pe+=s*b0,de+=s*p0,ye+=s*y0,ce+=s*w0,le+=s*P0,be+=s*I0,oe+=s*T0,s=C[6],he+=s*N,re+=s*ze,xe+=s*Xe,ue+=s*Ze,ve+=s*Te,me+=s*je,_e+=s*Ke,Ae+=s*m0,pe+=s*h0,de+=s*b0,ye+=s*p0,ce+=s*y0,le+=s*w0,be+=s*P0,oe+=s*I0,Z+=s*T0,s=C[7],re+=s*N,xe+=s*ze,ue+=s*Xe,ve+=s*Ze,me+=s*Te,_e+=s*je,Ae+=s*Ke,pe+=s*m0,de+=s*h0,ye+=s*b0,ce+=s*p0,le+=s*y0,be+=s*w0,oe+=s*P0,Z+=s*I0,G+=s*T0,s=C[8],xe+=s*N,ue+=s*ze,ve+=s*Xe,me+=s*Ze,_e+=s*Te,Ae+=s*je,pe+=s*Ke,de+=s*m0,ye+=s*h0,ce+=s*b0,le+=s*p0,be+=s*y0,oe+=s*w0,Z+=s*P0,G+=s*I0,ne+=s*T0,s=C[9],ue+=s*N,ve+=s*ze,me+=s*Xe,_e+=s*Ze,Ae+=s*Te,pe+=s*je,de+=s*Ke,ye+=s*m0,ce+=s*h0,le+=s*b0,be+=s*p0,oe+=s*y0,Z+=s*w0,G+=s*P0,ne+=s*I0,ee+=s*T0,s=C[10],ve+=s*N,me+=s*ze,_e+=s*Xe,Ae+=s*Ze,pe+=s*Te,de+=s*je,ye+=s*Ke,ce+=s*m0,le+=s*h0,be+=s*b0,oe+=s*p0,Z+=s*y0,G+=s*w0,ne+=s*P0,ee+=s*I0,te+=s*T0,s=C[11],me+=s*N,_e+=s*ze,Ae+=s*Xe,pe+=s*Ze,de+=s*Te,ye+=s*je,ce+=s*Ke,le+=s*m0,be+=s*h0,oe+=s*b0,Z+=s*p0,G+=s*y0,ne+=s*w0,ee+=s*P0,te+=s*I0,ae+=s*T0,s=C[12],_e+=s*N,Ae+=s*ze,pe+=s*Xe,de+=s*Ze,ye+=s*Te,ce+=s*je,le+=s*Ke,be+=s*m0,oe+=s*h0,Z+=s*b0,G+=s*p0,ne+=s*y0,ee+=s*w0,te+=s*P0,ae+=s*I0,Be+=s*T0,s=C[13],Ae+=s*N,pe+=s*ze,de+=s*Xe,ye+=s*Ze,ce+=s*Te,le+=s*je,be+=s*Ke,oe+=s*m0,Z+=s*h0,G+=s*b0,ne+=s*p0,ee+=s*y0,te+=s*w0,ae+=s*P0,Be+=s*I0,Se+=s*T0,s=C[14],pe+=s*N,de+=s*ze,ye+=s*Xe,ce+=s*Ze,le+=s*Te,be+=s*je,oe+=s*Ke,Z+=s*m0,G+=s*h0,ne+=s*b0,ee+=s*p0,te+=s*y0,ae+=s*w0,Be+=s*P0,Se+=s*I0,Re+=s*T0,s=C[15],de+=s*N,ye+=s*ze,ce+=s*Xe,le+=s*Ze,be+=s*Te,oe+=s*je,Z+=s*Ke,G+=s*m0,ne+=s*h0,ee+=s*b0,te+=s*p0,ae+=s*y0,Be+=s*w0,Se+=s*P0,Re+=s*I0,De+=s*T0,m+=38*ye,z+=38*ce,L+=38*le,V+=38*be,fe+=38*oe,ie+=38*Z,he+=38*G,re+=38*ne,xe+=38*ee,ue+=38*te,ve+=38*ae,me+=38*Be,_e+=38*Se,Ae+=38*Re,pe+=38*De,D=1,s=m+D+65535,D=Math.floor(s/65536),m=s-D*65536,s=z+D+65535,D=Math.floor(s/65536),z=s-D*65536,s=L+D+65535,D=Math.floor(s/65536),L=s-D*65536,s=V+D+65535,D=Math.floor(s/65536),V=s-D*65536,s=fe+D+65535,D=Math.floor(s/65536),fe=s-D*65536,s=ie+D+65535,D=Math.floor(s/65536),ie=s-D*65536,s=he+D+65535,D=Math.floor(s/65536),he=s-D*65536,s=re+D+65535,D=Math.floor(s/65536),re=s-D*65536,s=xe+D+65535,D=Math.floor(s/65536),xe=s-D*65536,s=ue+D+65535,D=Math.floor(s/65536),ue=s-D*65536,s=ve+D+65535,D=Math.floor(s/65536),ve=s-D*65536,s=me+D+65535,D=Math.floor(s/65536),me=s-D*65536,s=_e+D+65535,D=Math.floor(s/65536),_e=s-D*65536,s=Ae+D+65535,D=Math.floor(s/65536),Ae=s-D*65536,s=pe+D+65535,D=Math.floor(s/65536),pe=s-D*65536,s=de+D+65535,D=Math.floor(s/65536),de=s-D*65536,m+=D-1+37*(D-1),D=1,s=m+D+65535,D=Math.floor(s/65536),m=s-D*65536,s=z+D+65535,D=Math.floor(s/65536),z=s-D*65536,s=L+D+65535,D=Math.floor(s/65536),L=s-D*65536,s=V+D+65535,D=Math.floor(s/65536),V=s-D*65536,s=fe+D+65535,D=Math.floor(s/65536),fe=s-D*65536,s=ie+D+65535,D=Math.floor(s/65536),ie=s-D*65536,s=he+D+65535,D=Math.floor(s/65536),he=s-D*65536,s=re+D+65535,D=Math.floor(s/65536),re=s-D*65536,s=xe+D+65535,D=Math.floor(s/65536),xe=s-D*65536,s=ue+D+65535,D=Math.floor(s/65536),ue=s-D*65536,s=ve+D+65535,D=Math.floor(s/65536),ve=s-D*65536,s=me+D+65535,D=Math.floor(s/65536),me=s-D*65536,s=_e+D+65535,D=Math.floor(s/65536),_e=s-D*65536,s=Ae+D+65535,D=Math.floor(s/65536),Ae=s-D*65536,s=pe+D+65535,D=Math.floor(s/65536),pe=s-D*65536,s=de+D+65535,D=Math.floor(s/65536),de=s-D*65536,m+=D-1+37*(D-1),l[0]=m,l[1]=z,l[2]=L,l[3]=V,l[4]=fe,l[5]=ie,l[6]=he,l[7]=re,l[8]=xe,l[9]=ue,l[10]=ve,l[11]=me,l[12]=_e,l[13]=Ae,l[14]=pe,l[15]=de}function se(l,C){J(l,C,C)}function Ee(l,C){var w=t(),s;for(s=0;s<16;s++)w[s]=C[s];for(s=253;s>=0;s--)se(w,w),s!==2&&s!==4&&J(w,w,C);for(s=0;s<16;s++)l[s]=w[s]}function ge(l,C){var w=t(),s;for(s=0;s<16;s++)w[s]=C[s];for(s=250;s>=0;s--)se(w,w),s!==1&&J(w,w,C);for(s=0;s<16;s++)l[s]=w[s]}function Ce(l,C,w){var s=new Uint8Array(32),D=new Float64Array(80),m,z,L=t(),V=t(),fe=t(),ie=t(),he=t(),re=t();for(z=0;z<31;z++)s[z]=C[z];for(s[31]=C[31]&127|64,s[0]&=248,Y(D,w),z=0;z<16;z++)V[z]=D[z],ie[z]=L[z]=fe[z]=0;for(L[0]=ie[0]=1,z=254;z>=0;--z)m=s[z>>>3]>>>(z&7)&1,T(L,V,m),T(fe,ie,m),j(he,L,fe),W(L,L,fe),j(fe,V,ie),W(V,V,ie),se(ie,he),se(re,L),J(L,fe,L),J(fe,V,he),j(he,L,fe),W(L,L,fe),se(V,L),W(fe,ie,re),J(L,fe,u),j(L,L,ie),J(fe,fe,L),J(L,ie,re),J(ie,V,D),se(V,he),T(L,V,m),T(fe,ie,m);for(z=0;z<16;z++)D[z+16]=L[z],D[z+32]=fe[z],D[z+48]=V[z],D[z+64]=ie[z];var xe=D.subarray(32),ue=D.subarray(16);return Ee(xe,xe),J(ue,ue,xe),S(l,ue),0}function we(l,C){return Ce(l,C,n)}function _0(l,C){return r(C,32),we(l,C)}function Pe(l,C,w){var s=new Uint8Array(32);return Ce(s,w,C),H(l,a,s,U)}var Me=p,A0=g;function Ge(l,C,w,s,D,m){var z=new Uint8Array(32);return Pe(z,D,m),Me(l,C,w,s,z)}function Ye(l,C,w,s,D,m){var z=new Uint8Array(32);return Pe(z,D,m),A0(l,C,w,s,z)}var Y0=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Qe(l,C,w,s){for(var D=new Int32Array(16),m=new Int32Array(16),z,L,V,fe,ie,he,re,xe,ue,ve,me,_e,Ae,pe,de,ye,ce,le,be,oe,Z,G,ne,ee,te,ae,Be=l[0],Se=l[1],Re=l[2],De=l[3],N=l[4],ze=l[5],Xe=l[6],Ze=l[7],Te=C[0],je=C[1],Ke=C[2],m0=C[3],h0=C[4],b0=C[5],p0=C[6],y0=C[7],w0=0;s>=128;){for(be=0;be<16;be++)oe=8*be+w0,D[be]=w[oe+0]<<24|w[oe+1]<<16|w[oe+2]<<8|w[oe+3],m[be]=w[oe+4]<<24|w[oe+5]<<16|w[oe+6]<<8|w[oe+7];for(be=0;be<80;be++)if(z=Be,L=Se,V=Re,fe=De,ie=N,he=ze,re=Xe,xe=Ze,ue=Te,ve=je,me=Ke,_e=m0,Ae=h0,pe=b0,de=p0,ye=y0,Z=Ze,G=y0,ne=G&65535,ee=G>>>16,te=Z&65535,ae=Z>>>16,Z=(N>>>14|h0<<18)^(N>>>18|h0<<14)^(h0>>>9|N<<23),G=(h0>>>14|N<<18)^(h0>>>18|N<<14)^(N>>>9|h0<<23),ne+=G&65535,ee+=G>>>16,te+=Z&65535,ae+=Z>>>16,Z=N&ze^~N&Xe,G=h0&b0^~h0&p0,ne+=G&65535,ee+=G>>>16,te+=Z&65535,ae+=Z>>>16,Z=Y0[be*2],G=Y0[be*2+1],ne+=G&65535,ee+=G>>>16,te+=Z&65535,ae+=Z>>>16,Z=D[be%16],G=m[be%16],ne+=G&65535,ee+=G>>>16,te+=Z&65535,ae+=Z>>>16,ee+=ne>>>16,te+=ee>>>16,ae+=te>>>16,ce=te&65535|ae<<16,le=ne&65535|ee<<16,Z=ce,G=le,ne=G&65535,ee=G>>>16,te=Z&65535,ae=Z>>>16,Z=(Be>>>28|Te<<4)^(Te>>>2|Be<<30)^(Te>>>7|Be<<25),G=(Te>>>28|Be<<4)^(Be>>>2|Te<<30)^(Be>>>7|Te<<25),ne+=G&65535,ee+=G>>>16,te+=Z&65535,ae+=Z>>>16,Z=Be&Se^Be&Re^Se&Re,G=Te&je^Te&Ke^je&Ke,ne+=G&65535,ee+=G>>>16,te+=Z&65535,ae+=Z>>>16,ee+=ne>>>16,te+=ee>>>16,ae+=te>>>16,xe=te&65535|ae<<16,ye=ne&65535|ee<<16,Z=fe,G=_e,ne=G&65535,ee=G>>>16,te=Z&65535,ae=Z>>>16,Z=ce,G=le,ne+=G&65535,ee+=G>>>16,te+=Z&65535,ae+=Z>>>16,ee+=ne>>>16,te+=ee>>>16,ae+=te>>>16,fe=te&65535|ae<<16,_e=ne&65535|ee<<16,Se=z,Re=L,De=V,N=fe,ze=ie,Xe=he,Ze=re,Be=xe,je=ue,Ke=ve,m0=me,h0=_e,b0=Ae,p0=pe,y0=de,Te=ye,be%16===15)for(oe=0;oe<16;oe++)Z=D[oe],G=m[oe],ne=G&65535,ee=G>>>16,te=Z&65535,ae=Z>>>16,Z=D[(oe+9)%16],G=m[(oe+9)%16],ne+=G&65535,ee+=G>>>16,te+=Z&65535,ae+=Z>>>16,ce=D[(oe+1)%16],le=m[(oe+1)%16],Z=(ce>>>1|le<<31)^(ce>>>8|le<<24)^ce>>>7,G=(le>>>1|ce<<31)^(le>>>8|ce<<24)^(le>>>7|ce<<25),ne+=G&65535,ee+=G>>>16,te+=Z&65535,ae+=Z>>>16,ce=D[(oe+14)%16],le=m[(oe+14)%16],Z=(ce>>>19|le<<13)^(le>>>29|ce<<3)^ce>>>6,G=(le>>>19|ce<<13)^(ce>>>29|le<<3)^(le>>>6|ce<<26),ne+=G&65535,ee+=G>>>16,te+=Z&65535,ae+=Z>>>16,ee+=ne>>>16,te+=ee>>>16,ae+=te>>>16,D[oe]=te&65535|ae<<16,m[oe]=ne&65535|ee<<16;Z=Be,G=Te,ne=G&65535,ee=G>>>16,te=Z&65535,ae=Z>>>16,Z=l[0],G=C[0],ne+=G&65535,ee+=G>>>16,te+=Z&65535,ae+=Z>>>16,ee+=ne>>>16,te+=ee>>>16,ae+=te>>>16,l[0]=Be=te&65535|ae<<16,C[0]=Te=ne&65535|ee<<16,Z=Se,G=je,ne=G&65535,ee=G>>>16,te=Z&65535,ae=Z>>>16,Z=l[1],G=C[1],ne+=G&65535,ee+=G>>>16,te+=Z&65535,ae+=Z>>>16,ee+=ne>>>16,te+=ee>>>16,ae+=te>>>16,l[1]=Se=te&65535|ae<<16,C[1]=je=ne&65535|ee<<16,Z=Re,G=Ke,ne=G&65535,ee=G>>>16,te=Z&65535,ae=Z>>>16,Z=l[2],G=C[2],ne+=G&65535,ee+=G>>>16,te+=Z&65535,ae+=Z>>>16,ee+=ne>>>16,te+=ee>>>16,ae+=te>>>16,l[2]=Re=te&65535|ae<<16,C[2]=Ke=ne&65535|ee<<16,Z=De,G=m0,ne=G&65535,ee=G>>>16,te=Z&65535,ae=Z>>>16,Z=l[3],G=C[3],ne+=G&65535,ee+=G>>>16,te+=Z&65535,ae+=Z>>>16,ee+=ne>>>16,te+=ee>>>16,ae+=te>>>16,l[3]=De=te&65535|ae<<16,C[3]=m0=ne&65535|ee<<16,Z=N,G=h0,ne=G&65535,ee=G>>>16,te=Z&65535,ae=Z>>>16,Z=l[4],G=C[4],ne+=G&65535,ee+=G>>>16,te+=Z&65535,ae+=Z>>>16,ee+=ne>>>16,te+=ee>>>16,ae+=te>>>16,l[4]=N=te&65535|ae<<16,C[4]=h0=ne&65535|ee<<16,Z=ze,G=b0,ne=G&65535,ee=G>>>16,te=Z&65535,ae=Z>>>16,Z=l[5],G=C[5],ne+=G&65535,ee+=G>>>16,te+=Z&65535,ae+=Z>>>16,ee+=ne>>>16,te+=ee>>>16,ae+=te>>>16,l[5]=ze=te&65535|ae<<16,C[5]=b0=ne&65535|ee<<16,Z=Xe,G=p0,ne=G&65535,ee=G>>>16,te=Z&65535,ae=Z>>>16,Z=l[6],G=C[6],ne+=G&65535,ee+=G>>>16,te+=Z&65535,ae+=Z>>>16,ee+=ne>>>16,te+=ee>>>16,ae+=te>>>16,l[6]=Xe=te&65535|ae<<16,C[6]=p0=ne&65535|ee<<16,Z=Ze,G=y0,ne=G&65535,ee=G>>>16,te=Z&65535,ae=Z>>>16,Z=l[7],G=C[7],ne+=G&65535,ee+=G>>>16,te+=Z&65535,ae+=Z>>>16,ee+=ne>>>16,te+=ee>>>16,ae+=te>>>16,l[7]=Ze=te&65535|ae<<16,C[7]=y0=ne&65535|ee<<16,w0+=128,s-=128}return s}function Ne(l,C,w){var s=new Int32Array(8),D=new Int32Array(8),m=new Uint8Array(256),z,L=w;for(s[0]=1779033703,s[1]=3144134277,s[2]=1013904242,s[3]=2773480762,s[4]=1359893119,s[5]=2600822924,s[6]=528734635,s[7]=1541459225,D[0]=4089235720,D[1]=2227873595,D[2]=4271175723,D[3]=1595750129,D[4]=2917565137,D[5]=725511199,D[6]=4215389547,D[7]=327033209,Qe(s,D,C,w),w%=128,z=0;z<w;z++)m[z]=C[L-w+z];for(m[w]=128,w=256-128*(w<112?1:0),m[w-9]=0,B(m,w-8,L/536870912|0,L<<3),Qe(s,D,m,w),z=0;z<8;z++)B(l,8*z,s[z],D[z]);return 0}function N0(l,C){var w=t(),s=t(),D=t(),m=t(),z=t(),L=t(),V=t(),fe=t(),ie=t();W(w,l[1],l[0]),W(ie,C[1],C[0]),J(w,w,ie),j(s,l[0],l[1]),j(ie,C[0],C[1]),J(s,s,ie),J(D,l[3],C[3]),J(D,D,d),J(m,l[2],C[2]),j(m,m,m),W(z,s,w),W(L,m,D),j(V,m,D),j(fe,s,w),J(l[0],z,L),J(l[1],fe,V),J(l[2],V,L),J(l[3],z,fe)}function qe(l,C,w){var s;for(s=0;s<4;s++)T(l[s],C[s],w)}function Fe(l,C){var w=t(),s=t(),D=t();Ee(D,C[2]),J(w,C[0],D),J(s,C[1],D),S(l,s),l[31]^=A(w)<<7}function D0(l,C,w){var s,D;for(E(l[0],y),E(l[1],x),E(l[2],x),E(l[3],y),D=255;D>=0;--D)s=w[D/8|0]>>(D&7)&1,qe(l,C,s),N0(C,l),N0(l,l),qe(l,C,s)}function Je(l,C){var w=[t(),t(),t(),t()];E(w[0],v),E(w[1],b),E(w[2],x),J(w[3],v,b),D0(l,w,C)}function i0(l,C,w){var s=new Uint8Array(64),D=[t(),t(),t(),t()],m;for(w||r(C,32),Ne(s,C,32),s[0]&=248,s[31]&=127,s[31]|=64,Je(D,s),Fe(l,D),m=0;m<32;m++)C[m+32]=l[m];return 0}var F0=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function Le(l,C){var w,s,D,m;for(s=63;s>=32;--s){for(w=0,D=s-32,m=s-12;D<m;++D)C[D]+=w-16*C[s]*F0[D-(s-32)],w=Math.floor((C[D]+128)/256),C[D]-=w*256;C[D]+=w,C[s]=0}for(w=0,D=0;D<32;D++)C[D]+=w-(C[31]>>4)*F0[D],w=C[D]>>8,C[D]&=255;for(D=0;D<32;D++)C[D]-=w*F0[D];for(s=0;s<32;s++)C[s+1]+=C[s]>>8,l[s]=C[s]&255}function u0(l){var C=new Float64Array(64),w;for(w=0;w<64;w++)C[w]=l[w];for(w=0;w<64;w++)l[w]=0;Le(l,C)}function J0(l,C,w,s){var D=new Uint8Array(64),m=new Uint8Array(64),z=new Uint8Array(64),L,V,fe=new Float64Array(64),ie=[t(),t(),t(),t()];Ne(D,s,32),D[0]&=248,D[31]&=127,D[31]|=64;var he=w+64;for(L=0;L<w;L++)l[64+L]=C[L];for(L=0;L<32;L++)l[32+L]=D[32+L];for(Ne(z,l.subarray(32),w+32),u0(z),Je(ie,z),Fe(l,ie),L=32;L<64;L++)l[L]=s[L];for(Ne(m,l,w+64),u0(m),L=0;L<64;L++)fe[L]=0;for(L=0;L<32;L++)fe[L]=z[L];for(L=0;L<32;L++)for(V=0;V<32;V++)fe[L+V]+=m[L]*D[V];return Le(l.subarray(32),fe),he}function l0(l,C){var w=t(),s=t(),D=t(),m=t(),z=t(),L=t(),V=t();return E(l[2],x),Y(l[1],C),se(D,l[1]),J(m,D,c),W(D,D,l[2]),j(m,l[2],m),se(z,m),se(L,z),J(V,L,z),J(w,V,D),J(w,w,m),ge(w,w),J(w,w,D),J(w,w,m),J(w,w,m),J(l[0],w,m),se(s,l[0]),J(s,s,m),o(s,D)&&J(l[0],l[0],M),se(s,l[0]),J(s,s,m),o(s,D)?-1:(A(l[0])===C[31]>>7&&W(l[0],y,l[0]),J(l[3],l[0],l[1]),0)}function He(l,C,w,s){var D,m=new Uint8Array(32),z=new Uint8Array(64),L=[t(),t(),t(),t()],V=[t(),t(),t(),t()];if(w<64||l0(V,s))return-1;for(D=0;D<w;D++)l[D]=C[D];for(D=0;D<32;D++)l[D+32]=s[D];if(Ne(z,l,w),u0(z),D0(L,V,z),Je(V,C.subarray(32)),N0(L,V),Fe(m,L),w-=64,q(C,0,m,0)){for(D=0;D<w;D++)l[D]=0;return-1}for(D=0;D<w;D++)l[D]=C[D+64];return w}var L0=32,a0=24,r0=32,$0=16,n0=32,s0=32,j0=32,e0=32,f0=32,H0=a0,o0=r0,x0=$0,R0=64,t0=32,Ve=64,it=32,c0=64;e.lowlevel={crypto_core_hsalsa20:H,crypto_stream_xor:$,crypto_stream:Q,crypto_stream_salsa20_xor:K,crypto_stream_salsa20:X,crypto_onetimeauth:f,crypto_onetimeauth_verify:h,crypto_verify_16:k,crypto_verify_32:q,crypto_secretbox:p,crypto_secretbox_open:g,crypto_scalarmult:Ce,crypto_scalarmult_base:we,crypto_box_beforenm:Pe,crypto_box_afternm:Me,crypto_box:Ge,crypto_box_open:Ye,crypto_box_keypair:_0,crypto_hash:Ne,crypto_sign:J0,crypto_sign_keypair:i0,crypto_sign_open:He,crypto_secretbox_KEYBYTES:L0,crypto_secretbox_NONCEBYTES:a0,crypto_secretbox_ZEROBYTES:r0,crypto_secretbox_BOXZEROBYTES:$0,crypto_scalarmult_BYTES:n0,crypto_scalarmult_SCALARBYTES:s0,crypto_box_PUBLICKEYBYTES:j0,crypto_box_SECRETKEYBYTES:e0,crypto_box_BEFORENMBYTES:f0,crypto_box_NONCEBYTES:H0,crypto_box_ZEROBYTES:o0,crypto_box_BOXZEROBYTES:x0,crypto_sign_BYTES:R0,crypto_sign_PUBLICKEYBYTES:t0,crypto_sign_SECRETKEYBYTES:Ve,crypto_sign_SEEDBYTES:it,crypto_hash_BYTES:c0,gf:t,D:c,L:F0,pack25519:S,unpack25519:Y,M:J,A:j,S:se,Z:W,pow2523:ge,add:N0,set25519:E,modL:Le,scalarmult:D0,scalarbase:Je};function d0(l,C){if(l.length!==L0)throw new Error("bad key size");if(C.length!==a0)throw new Error("bad nonce size")}function gt(l,C){if(l.length!==j0)throw new Error("bad public key size");if(C.length!==e0)throw new Error("bad secret key size")}function Oe(){for(var l=0;l<arguments.length;l++)if(!(arguments[l]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function Ie(l){for(var C=0;C<l.length;C++)l[C]=0}e.randomBytes=function(l){var C=new Uint8Array(l);return r(C,l),C},e.secretbox=function(l,C,w){Oe(l,C,w),d0(w,C);for(var s=new Uint8Array(r0+l.length),D=new Uint8Array(s.length),m=0;m<l.length;m++)s[m+r0]=l[m];return p(D,s,s.length,C,w),D.subarray($0)},e.secretbox.open=function(l,C,w){Oe(l,C,w),d0(w,C);for(var s=new Uint8Array($0+l.length),D=new Uint8Array(s.length),m=0;m<l.length;m++)s[m+$0]=l[m];return s.length<32||g(D,s,s.length,C,w)!==0?null:D.subarray(r0)},e.secretbox.keyLength=L0,e.secretbox.nonceLength=a0,e.secretbox.overheadLength=$0,e.scalarMult=function(l,C){if(Oe(l,C),l.length!==s0)throw new Error("bad n size");if(C.length!==n0)throw new Error("bad p size");var w=new Uint8Array(n0);return Ce(w,l,C),w},e.scalarMult.base=function(l){if(Oe(l),l.length!==s0)throw new Error("bad n size");var C=new Uint8Array(n0);return we(C,l),C},e.scalarMult.scalarLength=s0,e.scalarMult.groupElementLength=n0,e.box=function(l,C,w,s){var D=e.box.before(w,s);return e.secretbox(l,C,D)},e.box.before=function(l,C){Oe(l,C),gt(l,C);var w=new Uint8Array(f0);return Pe(w,l,C),w},e.box.after=e.secretbox,e.box.open=function(l,C,w,s){var D=e.box.before(w,s);return e.secretbox.open(l,C,D)},e.box.open.after=e.secretbox.open,e.box.keyPair=function(){var l=new Uint8Array(j0),C=new Uint8Array(e0);return _0(l,C),{publicKey:l,secretKey:C}},e.box.keyPair.fromSecretKey=function(l){if(Oe(l),l.length!==e0)throw new Error("bad secret key size");var C=new Uint8Array(j0);return we(C,l),{publicKey:C,secretKey:new Uint8Array(l)}},e.box.publicKeyLength=j0,e.box.secretKeyLength=e0,e.box.sharedKeyLength=f0,e.box.nonceLength=H0,e.box.overheadLength=e.secretbox.overheadLength,e.sign=function(l,C){if(Oe(l,C),C.length!==Ve)throw new Error("bad secret key size");var w=new Uint8Array(R0+l.length);return J0(w,l,l.length,C),w},e.sign.open=function(l,C){if(Oe(l,C),C.length!==t0)throw new Error("bad public key size");var w=new Uint8Array(l.length),s=He(w,l,l.length,C);if(s<0)return null;for(var D=new Uint8Array(s),m=0;m<D.length;m++)D[m]=w[m];return D},e.sign.detached=function(l,C){for(var w=e.sign(l,C),s=new Uint8Array(R0),D=0;D<s.length;D++)s[D]=w[D];return s},e.sign.detached.verify=function(l,C,w){if(Oe(l,C,w),C.length!==R0)throw new Error("bad signature size");if(w.length!==t0)throw new Error("bad public key size");var s=new Uint8Array(R0+l.length),D=new Uint8Array(R0+l.length),m;for(m=0;m<R0;m++)s[m]=C[m];for(m=0;m<l.length;m++)s[m+R0]=l[m];return He(D,s,s.length,w)>=0},e.sign.keyPair=function(){var l=new Uint8Array(t0),C=new Uint8Array(Ve);return i0(l,C),{publicKey:l,secretKey:C}},e.sign.keyPair.fromSecretKey=function(l){if(Oe(l),l.length!==Ve)throw new Error("bad secret key size");for(var C=new Uint8Array(t0),w=0;w<C.length;w++)C[w]=l[32+w];return{publicKey:C,secretKey:new Uint8Array(l)}},e.sign.keyPair.fromSeed=function(l){if(Oe(l),l.length!==it)throw new Error("bad seed size");for(var C=new Uint8Array(t0),w=new Uint8Array(Ve),s=0;s<32;s++)w[s]=l[s];return i0(C,w,!0),{publicKey:C,secretKey:w}},e.sign.publicKeyLength=t0,e.sign.secretKeyLength=Ve,e.sign.seedLength=it,e.sign.signatureLength=R0,e.hash=function(l){Oe(l);var C=new Uint8Array(c0);return Ne(C,l,l.length),C},e.hash.hashLength=c0,e.verify=function(l,C){return Oe(l,C),l.length===0||C.length===0||l.length!==C.length?!1:R(l,0,C,0,l.length)===0},e.setPRNG=function(l){r=l},function(){var l=typeof self<"u"?self.crypto||self.msCrypto:null;if(l&&l.getRandomValues){var C=65536;e.setPRNG(function(w,s){var D,m=new Uint8Array(s);for(D=0;D<s;D+=C)l.getRandomValues(m.subarray(D,D+Math.min(s-D,C)));for(D=0;D<s;D++)w[D]=m[D];Ie(m)})}else typeof yf<"u"&&(l=Er,l&&l.randomBytes&&e.setPRNG(function(w,s){var D,m=l.randomBytes(s);for(D=0;D<s;D++)w[D]=m[D];Ie(m)}))}()})(i.exports?i.exports:self.nacl=self.nacl||{})})(Xf);var Ec=Xf.exports;const Jt=$i(Ec);class wc{string(e){let t;return typeof e=="object"&&e!==null?t=JSON.stringify(e):t=String(e),this.stringToUnicode(t.replace(/\//g,"\\/"))}stringToByte(e){const t=new Uint8Array(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}stringToUnicode(e){return e?Array.prototype.map.call(e,t=>{const r=t.charCodeAt(0).toString(16);return r.length>2?"\\u"+r:t}).join(""):""}byteToHex(e){return e?Array.prototype.map.call(e,t=>("0"+(t&255).toString(16)).slice(-2)).join("").toLowerCase():""}hexToByte(e){if(!e)return new Uint8Array;const t=[];for(let r=0,a=e.length;r<a;r+=2)t.push(parseInt(e.slice(r,r+2),16));return new Uint8Array(t)}isHex(e){return typeof e!="string"?!1:/^[0-9a-fA-F]+$/.test(e)&&e.length%2===0}}const q0=new wc;class Bc{string(e){return q0.string(e)}crypto(e,t){return K0[e](t).toString(K0.enc.Hex)}hash(e){return this.crypto("SHA256",this.string(e))}shortHash(e){return this.crypto("RIPEMD160",this.hash(e))}checksum(e){return this.hash(this.hash(e)).slice(0,4)}idHash(e){const t=this.shortHash(e);return t+this.checksum(t)}isHex(e){return q0.isHex(e)}}const ir=new Bc;class Cc{constructor(){Bt(this,"KEY_SIZE");Bt(this,"SIGNATURE_SIZE");this.KEY_SIZE=64,this.SIGNATURE_SIZE=128}keyPair(){const e=Jt.sign.keyPair();return{private_key:q0.byteToHex(e.secretKey).slice(0,this.KEY_SIZE),public_key:q0.byteToHex(e.publicKey),address:this.address(q0.byteToHex(e.publicKey))}}privateKey(){return q0.byteToHex(Jt.sign.keyPair().secretKey).slice(0,this.KEY_SIZE)}publicKey(e){return q0.byteToHex(Jt.sign.keyPair.fromSeed(q0.hexToByte(e)).publicKey)}address(e){return ir.idHash(e)}signature(e,t){return q0.byteToHex(Jt.sign.detached(q0.stringToByte(ir.string(e)),q0.hexToByte(t+this.publicKey(t))))}signatureValidity(e,t,r){return r.length===this.SIGNATURE_SIZE&&ir.isHex(r)===!0&&Jt.sign.detached.verify(q0.stringToByte(ir.string(e)),q0.hexToByte(r),q0.hexToByte(t))}}const Ar=new Cc;class Mc{constructor(){Bt(this,"ec");this.ec=new _f.ec("secp256k1")}xphereSign(e,t){return Ar.signature(e,t)}xphereVerify(e,t,r){return Ar.signatureValidity(e,t,r)}generateKeys(){const e=this.ec.genKeyPair(),t=e.getPrivate("hex"),r=e.getPublic("hex");return{privateKey:t,publicKey:r}}sign(e,t){return this.ec.keyFromPrivate(t,"hex").sign(e)}verify(e,t,r){return this.ec.keyFromPublic(r,"hex").verify(e,t)}encrypt(e,t){return K0.AES.encrypt(e,t).toString()}decrypt(e,t){return K0.AES.decrypt(e,t).toString(K0.enc.Utf8)}generateNonce(e){return K0.lib.WordArray.random(e).toString(K0.enc.Hex)}}const Gi=new Mc,ht=Object.create(null);ht.open="0";ht.close="1";ht.ping="2";ht.pong="3";ht.message="4";ht.upgrade="5";ht.noop="6";const ur=Object.create(null);Object.keys(ht).forEach(i=>{ur[ht[i]]=i});const Ii={type:"error",data:"parser error"},Zf=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Gf=typeof ArrayBuffer=="function",Qf=i=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(i):i&&i.buffer instanceof ArrayBuffer,Qi=({type:i,data:e},t,r)=>Zf&&e instanceof Blob?t?r(e):ef(e,r):Gf&&(e instanceof ArrayBuffer||Qf(e))?t?r(e):ef(new Blob([e]),r):r(ht[i]+(e||"")),ef=(i,e)=>{const t=new FileReader;return t.onload=function(){const r=t.result.split(",")[1];e("b"+(r||""))},t.readAsDataURL(i)};function tf(i){return i instanceof Uint8Array?i:i instanceof ArrayBuffer?new Uint8Array(i):new Uint8Array(i.buffer,i.byteOffset,i.byteLength)}let Ci;function Sc(i,e){if(Zf&&i.data instanceof Blob)return i.data.arrayBuffer().then(tf).then(e);if(Gf&&(i.data instanceof ArrayBuffer||Qf(i.data)))return e(tf(i.data));Qi(i,!1,t=>{Ci||(Ci=new TextEncoder),e(Ci.encode(t))})}const rf="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",nr=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let i=0;i<rf.length;i++)nr[rf.charCodeAt(i)]=i;const Dc=i=>{let e=i.length*.75,t=i.length,r,a=0,n,y,x,u;i[i.length-1]==="="&&(e--,i[i.length-2]==="="&&e--);const c=new ArrayBuffer(e),d=new Uint8Array(c);for(r=0;r<t;r+=4)n=nr[i.charCodeAt(r)],y=nr[i.charCodeAt(r+1)],x=nr[i.charCodeAt(r+2)],u=nr[i.charCodeAt(r+3)],d[a++]=n<<2|y>>4,d[a++]=(y&15)<<4|x>>2,d[a++]=(x&3)<<6|u&63;return c},Fc=typeof ArrayBuffer=="function",Ji=(i,e)=>{if(typeof i!="string")return{type:"message",data:Jf(i,e)};const t=i.charAt(0);return t==="b"?{type:"message",data:Rc(i.substring(1),e)}:ur[t]?i.length>1?{type:ur[t],data:i.substring(1)}:{type:ur[t]}:Ii},Rc=(i,e)=>{if(Fc){const t=Dc(i);return Jf(t,e)}else return{base64:!0,data:i}},Jf=(i,e)=>{switch(e){case"blob":return i instanceof Blob?i:new Blob([i]);case"arraybuffer":default:return i instanceof ArrayBuffer?i:i.buffer}},ea="",kc=(i,e)=>{const t=i.length,r=new Array(t);let a=0;i.forEach((n,y)=>{Qi(n,!1,x=>{r[y]=x,++a===t&&e(r.join(ea))})})},Pc=(i,e)=>{const t=i.split(ea),r=[];for(let a=0;a<t.length;a++){const n=Ji(t[a],e);if(r.push(n),n.type==="error")break}return r};function Ic(){return new TransformStream({transform(i,e){Sc(i,t=>{const r=t.length;let a;if(r<126)a=new Uint8Array(1),new DataView(a.buffer).setUint8(0,r);else if(r<65536){a=new Uint8Array(3);const n=new DataView(a.buffer);n.setUint8(0,126),n.setUint16(1,r)}else{a=new Uint8Array(9);const n=new DataView(a.buffer);n.setUint8(0,127),n.setBigUint64(1,BigInt(r))}i.data&&typeof i.data!="string"&&(a[0]|=128),e.enqueue(a),e.enqueue(t)})}})}let Mi;function or(i){return i.reduce((e,t)=>e+t.length,0)}function cr(i,e){if(i[0].length===e)return i.shift();const t=new Uint8Array(e);let r=0;for(let a=0;a<e;a++)t[a]=i[0][r++],r===i[0].length&&(i.shift(),r=0);return i.length&&r<i[0].length&&(i[0]=i[0].slice(r)),t}function Tc(i,e){Mi||(Mi=new TextDecoder);const t=[];let r=0,a=-1,n=!1;return new TransformStream({transform(y,x){for(t.push(y);;){if(r===0){if(or(t)<1)break;const u=cr(t,1);n=(u[0]&128)===128,a=u[0]&127,a<126?r=3:a===126?r=1:r=2}else if(r===1){if(or(t)<2)break;const u=cr(t,2);a=new DataView(u.buffer,u.byteOffset,u.length).getUint16(0),r=3}else if(r===2){if(or(t)<8)break;const u=cr(t,8),c=new DataView(u.buffer,u.byteOffset,u.length),d=c.getUint32(0);if(d>Math.pow(2,21)-1){x.enqueue(Ii);break}a=d*Math.pow(2,32)+c.getUint32(4),r=3}else{if(or(t)<a)break;const u=cr(t,a);x.enqueue(Ji(n?u:Mi.decode(u),e)),r=0}if(a===0||a>i){x.enqueue(Ii);break}}}})}const ta=4;function E0(i){if(i)return Oc(i)}function Oc(i){for(var e in E0.prototype)i[e]=E0.prototype[e];return i}E0.prototype.on=E0.prototype.addEventListener=function(i,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+i]=this._callbacks["$"+i]||[]).push(e),this};E0.prototype.once=function(i,e){function t(){this.off(i,t),e.apply(this,arguments)}return t.fn=e,this.on(i,t),this};E0.prototype.off=E0.prototype.removeListener=E0.prototype.removeAllListeners=E0.prototype.removeEventListener=function(i,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var t=this._callbacks["$"+i];if(!t)return this;if(arguments.length==1)return delete this._callbacks["$"+i],this;for(var r,a=0;a<t.length;a++)if(r=t[a],r===e||r.fn===e){t.splice(a,1);break}return t.length===0&&delete this._callbacks["$"+i],this};E0.prototype.emit=function(i){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),t=this._callbacks["$"+i],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(t){t=t.slice(0);for(var r=0,a=t.length;r<a;++r)t[r].apply(this,e)}return this};E0.prototype.emitReserved=E0.prototype.emit;E0.prototype.listeners=function(i){return this._callbacks=this._callbacks||{},this._callbacks["$"+i]||[]};E0.prototype.hasListeners=function(i){return!!this.listeners(i).length};const X0=typeof self<"u"?self:typeof window<"u"?window:Function("return this")();function ra(i,...e){return e.reduce((t,r)=>(i.hasOwnProperty(r)&&(t[r]=i[r]),t),{})}const zc=X0.setTimeout,Nc=X0.clearTimeout;function Or(i,e){e.useNativeTimers?(i.setTimeoutFn=zc.bind(X0),i.clearTimeoutFn=Nc.bind(X0)):(i.setTimeoutFn=X0.setTimeout.bind(X0),i.clearTimeoutFn=X0.clearTimeout.bind(X0))}const qc=1.33;function Lc(i){return typeof i=="string"?$c(i):Math.ceil((i.byteLength||i.size)*qc)}function $c(i){let e=0,t=0;for(let r=0,a=i.length;r<a;r++)e=i.charCodeAt(r),e<128?t+=1:e<2048?t+=2:e<55296||e>=57344?t+=3:(r++,t+=4);return t}function Hc(i){let e="";for(let t in i)i.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(i[t]));return e}function Uc(i){let e={},t=i.split("&");for(let r=0,a=t.length;r<a;r++){let n=t[r].split("=");e[decodeURIComponent(n[0])]=decodeURIComponent(n[1])}return e}class Wc extends Error{constructor(e,t,r){super(e),this.description=t,this.context=r,this.type="TransportError"}}class en extends E0{constructor(e){super(),this.writable=!1,Or(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,t,r){return super.emitReserved("error",new Wc(e,t,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=Ji(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){const t=Hc(e);return t.length?"?"+t:""}}const ia="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),Ti=64,Yc={};let nf=0,dr=0,ff;function af(i){let e="";do e=ia[i%Ti]+e,i=Math.floor(i/Ti);while(i>0);return e}function na(){const i=af(+new Date);return i!==ff?(nf=0,ff=i):i+"."+af(nf++)}for(;dr<Ti;dr++)Yc[ia[dr]]=dr;let fa=!1;try{fa=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const jc=fa;function aa(i){const e=i.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||jc))return new XMLHttpRequest}catch{}if(!e)try{return new X0[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function Kc(){}const Vc=function(){return new aa({xdomain:!1}).responseType!=null}();class Xc extends en{constructor(e){if(super(e),this.polling=!1,typeof location<"u"){const r=location.protocol==="https:";let a=location.port;a||(a=r?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||a!==e.port}const t=e&&e.forceBase64;this.supportsBinary=Vc&&!t,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||t()})),this.writable||(r++,this.once("drain",function(){--r||t()}))}else t()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const t=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};Pc(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,kc(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=na()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new st(this.uri(),e)}doWrite(e,t){const r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",(a,n)=>{this.onError("xhr post error",a,n)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,r)=>{this.onError("xhr poll error",t,r)}),this.pollXhr=e}}class st extends E0{constructor(e,t){super(),Or(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.data=t.data!==void 0?t.data:null,this.create()}create(){var e;const t=ra(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd;const r=this.xhr=new aa(t);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let a in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(a)&&r.setRequestHeader(a,this.opts.extraHeaders[a])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(e=this.opts.cookieJar)===null||e===void 0||e.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var a;r.readyState===3&&((a=this.opts.cookieJar)===null||a===void 0||a.parseCookies(r)),r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},r.send(this.data)}catch(a){this.setTimeoutFn(()=>{this.onError(a)},0);return}typeof document<"u"&&(this.index=st.requestsCount++,st.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=Kc,e)try{this.xhr.abort()}catch{}typeof document<"u"&&delete st.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}st.requestsCount=0;st.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",sf);else if(typeof addEventListener=="function"){const i="onpagehide"in X0?"pagehide":"unload";addEventListener(i,sf,!1)}}function sf(){for(let i in st.requests)st.requests.hasOwnProperty(i)&&st.requests[i].abort()}const tn=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0),hr=X0.WebSocket||X0.MozWebSocket,of=!0,Zc="arraybuffer",cf=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Gc extends en{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,r=cf?{}:ra(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=of&&!cf?t?new hr(e,t):new hr(e):new hr(e,t,r)}catch(a){return this.emitReserved("error",a)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const r=e[t],a=t===e.length-1;Qi(r,this.supportsBinary,n=>{const y={};try{of&&this.ws.send(n)}catch{}a&&tn(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=na()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!hr}}class Qc extends en{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(e=>{const t=Tc(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(t).getReader(),a=Ic();a.readable.pipeTo(e.writable),this.writer=a.writable.getWriter();const n=()=>{r.read().then(({done:x,value:u})=>{x||(this.onPacket(u),n())}).catch(x=>{})};n();const y={type:"open"};this.query.sid&&(y.data=`{"sid":"${this.query.sid}"}`),this.writer.write(y).then(()=>this.onOpen())})}))}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const r=e[t],a=t===e.length-1;this.writer.write(r).then(()=>{a&&tn(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this.transport)===null||e===void 0||e.close()}}const Jc={websocket:Gc,webtransport:Qc,polling:Xc},ed=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,td=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Oi(i){if(i.length>2e3)throw"URI too long";const e=i,t=i.indexOf("["),r=i.indexOf("]");t!=-1&&r!=-1&&(i=i.substring(0,t)+i.substring(t,r).replace(/:/g,";")+i.substring(r,i.length));let a=ed.exec(i||""),n={},y=14;for(;y--;)n[td[y]]=a[y]||"";return t!=-1&&r!=-1&&(n.source=e,n.host=n.host.substring(1,n.host.length-1).replace(/;/g,":"),n.authority=n.authority.replace("[","").replace("]","").replace(/;/g,":"),n.ipv6uri=!0),n.pathNames=rd(n,n.path),n.queryKey=id(n,n.query),n}function rd(i,e){const t=/\/{2,9}/g,r=e.replace(t,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&r.splice(0,1),e.slice(-1)=="/"&&r.splice(r.length-1,1),r}function id(i,e){const t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,a,n){a&&(t[a]=n)}),t}let sa=class Ot extends E0{constructor(e,t={}){super(),this.binaryType=Zc,this.writeBuffer=[],e&&typeof e=="object"&&(t=e,e=null),e?(e=Oi(e),t.hostname=e.host,t.secure=e.protocol==="https"||e.protocol==="wss",t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=Oi(t.host).host),Or(this,t),this.secure=t.secure!=null?t.secure:typeof location<"u"&&location.protocol==="https:",t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=t.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Uc(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=ta,t.transport=e,this.id&&(t.sid=this.id);const r=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new Jc[e](r)}open(){let e;if(this.opts.rememberUpgrade&&Ot.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)e="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch{this.transports.shift(),this.open();return}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",t=>this.onClose("transport close",t))}probe(e){let t=this.createTransport(e),r=!1;Ot.priorWebsocketSuccess=!1;const a=()=>{r||(t.send([{type:"ping",data:"probe"}]),t.once("packet",v=>{if(!r)if(v.type==="pong"&&v.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;Ot.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(d(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const b=new Error("probe error");b.transport=t.name,this.emitReserved("upgradeError",b)}}))};function n(){r||(r=!0,d(),t.close(),t=null)}const y=v=>{const b=new Error("probe error: "+v);b.transport=t.name,n(),this.emitReserved("upgradeError",b)};function x(){y("transport closed")}function u(){y("socket closed")}function c(v){t&&v.name!==t.name&&n()}const d=()=>{t.removeListener("open",a),t.removeListener("error",y),t.removeListener("close",x),this.off("close",u),this.off("upgrading",c)};t.once("open",a),t.once("error",y),t.once("close",x),this.once("close",u),this.once("upgrading",c),this.upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{r||t.open()},200):t.open()}onOpen(){if(this.readyState="open",Ot.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let e=0;const t=this.upgrades.length;for(;e<t;e++)this.probe(this.upgrades[e])}}onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),this.resetPingTimeout(),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let r=0;r<this.writeBuffer.length;r++){const a=this.writeBuffer[r].data;if(a&&(t+=Lc(a)),r>0&&t>this.maxPayload)return this.writeBuffer.slice(0,r);t+=2}return this.writeBuffer}write(e,t,r){return this.sendPacket("message",e,t,r),this}send(e,t,r){return this.sendPacket("message",e,t,r),this}sendPacket(e,t,r,a){if(typeof t=="function"&&(a=t,t=void 0),typeof r=="function"&&(a=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const n={type:e,data:t,options:r};this.emitReserved("packetCreate",n),this.writeBuffer.push(n),a&&this.once("flush",a),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},r=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():e()}):this.upgrading?r():e()),this}onError(e){Ot.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let r=0;const a=e.length;for(;r<a;r++)~this.transports.indexOf(e[r])&&t.push(e[r]);return t}};sa.protocol=ta;function nd(i,e="",t){let r=i;t=t||typeof location<"u"&&location,i==null&&(i=t.protocol+"//"+t.host),typeof i=="string"&&(i.charAt(0)==="/"&&(i.charAt(1)==="/"?i=t.protocol+i:i=t.host+i),/^(https?|wss?):\/\//.test(i)||(typeof t<"u"?i=t.protocol+"//"+i:i="https://"+i),r=Oi(i)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const n=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+n+":"+r.port+e,r.href=r.protocol+"://"+n+(t&&t.port===r.port?"":":"+r.port),r}const fd=typeof ArrayBuffer=="function",ad=i=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(i):i.buffer instanceof ArrayBuffer,oa=Object.prototype.toString,sd=typeof Blob=="function"||typeof Blob<"u"&&oa.call(Blob)==="[object BlobConstructor]",od=typeof File=="function"||typeof File<"u"&&oa.call(File)==="[object FileConstructor]";function rn(i){return fd&&(i instanceof ArrayBuffer||ad(i))||sd&&i instanceof Blob||od&&i instanceof File}function lr(i,e){if(!i||typeof i!="object")return!1;if(Array.isArray(i)){for(let t=0,r=i.length;t<r;t++)if(lr(i[t]))return!0;return!1}if(rn(i))return!0;if(i.toJSON&&typeof i.toJSON=="function"&&arguments.length===1)return lr(i.toJSON(),!0);for(const t in i)if(Object.prototype.hasOwnProperty.call(i,t)&&lr(i[t]))return!0;return!1}function cd(i){const e=[],t=i.data,r=i;return r.data=zi(t,e),r.attachments=e.length,{packet:r,buffers:e}}function zi(i,e){if(!i)return i;if(rn(i)){const t={_placeholder:!0,num:e.length};return e.push(i),t}else if(Array.isArray(i)){const t=new Array(i.length);for(let r=0;r<i.length;r++)t[r]=zi(i[r],e);return t}else if(typeof i=="object"&&!(i instanceof Date)){const t={};for(const r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=zi(i[r],e));return t}return i}function dd(i,e){return i.data=Ni(i.data,e),delete i.attachments,i}function Ni(i,e){if(!i)return i;if(i&&i._placeholder===!0){if(typeof i.num=="number"&&i.num>=0&&i.num<e.length)return e[i.num];throw new Error("illegal attachments")}else if(Array.isArray(i))for(let t=0;t<i.length;t++)i[t]=Ni(i[t],e);else if(typeof i=="object")for(const t in i)Object.prototype.hasOwnProperty.call(i,t)&&(i[t]=Ni(i[t],e));return i}const hd=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],ud=5;var Ue;(function(i){i[i.CONNECT=0]="CONNECT",i[i.DISCONNECT=1]="DISCONNECT",i[i.EVENT=2]="EVENT",i[i.ACK=3]="ACK",i[i.CONNECT_ERROR=4]="CONNECT_ERROR",i[i.BINARY_EVENT=5]="BINARY_EVENT",i[i.BINARY_ACK=6]="BINARY_ACK"})(Ue||(Ue={}));class ld{constructor(e){this.replacer=e}encode(e){return(e.type===Ue.EVENT||e.type===Ue.ACK)&&lr(e)?this.encodeAsBinary({type:e.type===Ue.EVENT?Ue.BINARY_EVENT:Ue.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===Ue.BINARY_EVENT||e.type===Ue.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(t+=e.nsp+","),e.id!=null&&(t+=e.id),e.data!=null&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){const t=cd(e),r=this.encodeAsString(t.packet),a=t.buffers;return a.unshift(r),a}}function df(i){return Object.prototype.toString.call(i)==="[object Object]"}class nn extends E0{constructor(e){super(),this.reviver=e}add(e){let t;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);const r=t.type===Ue.BINARY_EVENT;r||t.type===Ue.BINARY_ACK?(t.type=r?Ue.EVENT:Ue.ACK,this.reconstructor=new xd(t),t.attachments===0&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else if(rn(e)||e.base64)if(this.reconstructor)t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let t=0;const r={type:Number(e.charAt(0))};if(Ue[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===Ue.BINARY_EVENT||r.type===Ue.BINARY_ACK){const n=t+1;for(;e.charAt(++t)!=="-"&&t!=e.length;);const y=e.substring(n,t);if(y!=Number(y)||e.charAt(t)!=="-")throw new Error("Illegal attachments");r.attachments=Number(y)}if(e.charAt(t+1)==="/"){const n=t+1;for(;++t&&!(e.charAt(t)===","||t===e.length););r.nsp=e.substring(n,t)}else r.nsp="/";const a=e.charAt(t+1);if(a!==""&&Number(a)==a){const n=t+1;for(;++t;){const y=e.charAt(t);if(y==null||Number(y)!=y){--t;break}if(t===e.length)break}r.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){const n=this.tryParse(e.substr(t));if(nn.isPayloadValid(r.type,n))r.data=n;else throw new Error("invalid payload")}return r}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,t){switch(e){case Ue.CONNECT:return df(t);case Ue.DISCONNECT:return t===void 0;case Ue.CONNECT_ERROR:return typeof t=="string"||df(t);case Ue.EVENT:case Ue.BINARY_EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&hd.indexOf(t[0])===-1);case Ue.ACK:case Ue.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class xd{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const t=dd(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const vd=Object.freeze(Object.defineProperty({__proto__:null,Decoder:nn,Encoder:ld,get PacketType(){return Ue},protocol:ud},Symbol.toStringTag,{value:"Module"}));function tt(i,e,t){return i.on(e,t),function(){i.off(e,t)}}const bd=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class ca extends E0{constructor(e,t,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[tt(e,"open",this.onopen.bind(this)),tt(e,"packet",this.onpacket.bind(this)),tt(e,"error",this.onerror.bind(this)),tt(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){if(bd.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;const r={type:Ue.EVENT,data:t};if(r.options={},r.options.compress=this.flags.compress!==!1,typeof t[t.length-1]=="function"){const y=this.ids++,x=t.pop();this._registerAckCallback(y,x),r.id=y}const a=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!a||!this.connected)||(this.connected?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}_registerAckCallback(e,t){var r;const a=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(a===void 0){this.acks[e]=t;return}const n=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let x=0;x<this.sendBuffer.length;x++)this.sendBuffer[x].id===e&&this.sendBuffer.splice(x,1);t.call(this,new Error("operation has timed out"))},a),y=(...x)=>{this.io.clearTimeoutFn(n),t.apply(this,x)};y.withError=!0,this.acks[e]=y}emitWithAck(e,...t){return new Promise((r,a)=>{const n=(y,x)=>y?a(y):r(x);n.withError=!0,t.push(n),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]=="function"&&(t=e.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((a,...n)=>r!==this._queue[0]?void 0:(a!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(a)):(this._queue.shift(),t&&t(null,...n)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:Ue.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(r=>String(r.id)===e)){const r=this.acks[e];delete this.acks[e],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case Ue.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Ue.EVENT:case Ue.BINARY_EVENT:this.onevent(e);break;case Ue.ACK:case Ue.BINARY_ACK:this.onack(e);break;case Ue.DISCONNECT:this.ondisconnect();break;case Ue.CONNECT_ERROR:this.destroy();const r=new Error(e.data.message);r.data=e.data.data,this.emitReserved("connect_error",r);break}}onevent(e){const t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const r of t)r.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let r=!1;return function(...a){r||(r=!0,t.packet({type:Ue.ACK,id:e,data:a}))}}onack(e){const t=this.acks[e.id];typeof t=="function"&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ue.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let r=0;r<t.length;r++)if(e===t[r])return t.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let r=0;r<t.length;r++)if(e===t[r])return t.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const r of t)r.apply(this,e.data)}}}function Vt(i){i=i||{},this.ms=i.min||100,this.max=i.max||1e4,this.factor=i.factor||2,this.jitter=i.jitter>0&&i.jitter<=1?i.jitter:0,this.attempts=0}Vt.prototype.duration=function(){var i=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),t=Math.floor(e*this.jitter*i);i=Math.floor(e*10)&1?i+t:i-t}return Math.min(i,this.max)|0};Vt.prototype.reset=function(){this.attempts=0};Vt.prototype.setMin=function(i){this.ms=i};Vt.prototype.setMax=function(i){this.max=i};Vt.prototype.setJitter=function(i){this.jitter=i};class qi extends E0{constructor(e,t){var r;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,Or(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor((r=t.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Vt({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;const a=t.parser||vd;this.encoder=new a.Encoder,this.decoder=new a.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)===null||t===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new sa(this.uri,this.opts);const t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const a=tt(t,"open",function(){r.onopen(),e&&e()}),n=x=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",x),e?e(x):this.maybeReconnectOnOpen()},y=tt(t,"error",n);if(this._timeout!==!1){const x=this._timeout,u=this.setTimeoutFn(()=>{a(),n(new Error("timeout")),t.close()},x);this.opts.autoUnref&&u.unref(),this.subs.push(()=>{this.clearTimeoutFn(u)})}return this.subs.push(a),this.subs.push(y),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(tt(e,"ping",this.onping.bind(this)),tt(e,"data",this.ondata.bind(this)),tt(e,"error",this.onerror.bind(this)),tt(e,"close",this.onclose.bind(this)),tt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){tn(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new ca(this,e,t),this.nsps[e]=r),r}_destroy(e){const t=Object.keys(this.nsps);for(const r of t)if(this.nsps[r].active)return;this._close()}_packet(e){const t=this.encoder.encode(e);for(let r=0;r<t.length;r++)this.engine.write(t[r],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(a=>{a?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",a)):e.onreconnect()}))},t);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const er={};function xr(i,e){typeof i=="object"&&(e=i,i=void 0),e=e||{};const t=nd(i,e.path||"/socket.io"),r=t.source,a=t.id,n=t.path,y=er[a]&&n in er[a].nsps,x=e.forceNew||e["force new connection"]||e.multiplex===!1||y;let u;return x?u=new qi(r,e):(er[a]||(er[a]=new qi(r,e)),u=er[a]),t.query&&!e.query&&(e.query=t.queryKey),u.socket(t.path,e)}Object.assign(xr,{Manager:qi,Socket:ca,io:xr,connect:xr});const pd="https://ws.zigap.io",Mt=class Mt{constructor(){Bt(this,"socket");this.socket=xr(pd)}static getInstance(){return Mt.instance||(Mt.instance=new Mt),Mt.instance}};Bt(Mt,"instance");let Li=Mt;class yd{constructor(){Bt(this,"socketInstance");this.socketInstance=Li.getInstance()}joinRoom(e){this.socketInstance.socket.emit("joinRoom",e)}leaveRoom(e){this.socketInstance.socket.emit("leaveRoom",e),this.socketInstance.socket.disconnect()}confirmMessage(e,t){return this.socketInstance.socket.emit("confirmMessage",e,t)}onMessageReceived(e,t){e==="accountInfo"?this.socketInstance.socket.on("accountInfo",r=>{t(r)}):e==="requestMessage"?this.socketInstance.socket.on("requestMessage",r=>{t(r)}):e==="addressProvide"&&this.socketInstance.socket.on("addressProvide",r=>{t(r)})}offMessageReceived(e){e==="accountInfo"?this.socketInstance.socket.off("accountInfo"):e==="requestMessage"?this.socketInstance.socket.off("requestMessage"):e==="addressProvide"&&this.socketInstance.socket.off("addressProvide")}}const vt=new yd;class gd{isAccountCryptoType(e){return typeof e=="object"&&e!==null&&typeof e.signature=="string"&&typeof e.publicKey=="string"&&typeof e.address=="string"&&typeof e.network=="string"&&typeof e.nickName=="string"&&typeof e.etc=="string"}getAccountCrypto(){return new Promise((e,t)=>{vt.onMessageReceived("accountInfo",r=>{this.isAccountCryptoType(r)?e(r):t(new Error("Invalid account crypto"))})})}reciveRequest(){return new Promise((e,t)=>{vt.onMessageReceived("requestMessage",r=>{r.message==="Request Message"?e(!0):t(new Error("Request message is different"))})})}sendMessage(e,t){return new Promise((r,a)=>{vt.confirmMessage(e,t).connected?r():a(new Error("Send failed"))})}async qrLogin(e,t,r){try{if(await this.reciveRequest()){t=`${t}
51
+ */return t.mode.CTRGladman=function(){var r=t.lib.BlockCipherMode.extend();function a(x){if((x>>24&255)===255){var u=x>>16&255,c=x>>8&255,d=x&255;u===255?(u=0,c===255?(c=0,d===255?d=0:++d):++c):++u,x=0,x+=u<<16,x+=c<<8,x+=d}else x+=1<<24;return x}function n(x){return(x[0]=a(x[0]))===0&&(x[1]=a(x[1])),x}var y=r.Encryptor=r.extend({processBlock:function(x,u){var c=this._cipher,d=c.blockSize,v=this._iv,b=this._counter;v&&(b=this._counter=v.slice(0),this._iv=void 0),n(b);var M=b.slice(0);c.encryptBlock(M,0);for(var B=0;B<d;B++)x[u+B]^=M[B]}});return r.Decryptor=y,r}(),t.mode.CTRGladman})}(ni)),ni.exports}var fi={exports:{}},Rn;function Wa(){return Rn||(Rn=1,function(i,e){(function(t,r,a){i.exports=r(We(),M0())})(ke,function(t){return t.mode.OFB=function(){var r=t.lib.BlockCipherMode.extend(),a=r.Encryptor=r.extend({processBlock:function(n,y){var x=this._cipher,u=x.blockSize,c=this._iv,d=this._keystream;c&&(d=this._keystream=c.slice(0),this._iv=void 0),x.encryptBlock(d,0);for(var v=0;v<u;v++)n[y+v]^=d[v]}});return r.Decryptor=a,r}(),t.mode.OFB})}(fi)),fi.exports}var ai={exports:{}},kn;function Ya(){return kn||(kn=1,function(i,e){(function(t,r,a){i.exports=r(We(),M0())})(ke,function(t){return t.mode.ECB=function(){var r=t.lib.BlockCipherMode.extend();return r.Encryptor=r.extend({processBlock:function(a,n){this._cipher.encryptBlock(a,n)}}),r.Decryptor=r.extend({processBlock:function(a,n){this._cipher.decryptBlock(a,n)}}),r}(),t.mode.ECB})}(ai)),ai.exports}var si={exports:{}},Pn;function ja(){return Pn||(Pn=1,function(i,e){(function(t,r,a){i.exports=r(We(),M0())})(ke,function(t){return t.pad.AnsiX923={pad:function(r,a){var n=r.sigBytes,y=a*4,x=y-n%y,u=n+x-1;r.clamp(),r.words[u>>>2]|=x<<24-u%4*8,r.sigBytes+=x},unpad:function(r){var a=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=a}},t.pad.Ansix923})}(si)),si.exports}var oi={exports:{}},In;function Ka(){return In||(In=1,function(i,e){(function(t,r,a){i.exports=r(We(),M0())})(ke,function(t){return t.pad.Iso10126={pad:function(r,a){var n=a*4,y=n-r.sigBytes%n;r.concat(t.lib.WordArray.random(y-1)).concat(t.lib.WordArray.create([y<<24],1))},unpad:function(r){var a=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=a}},t.pad.Iso10126})}(oi)),oi.exports}var ci={exports:{}},Tn;function Va(){return Tn||(Tn=1,function(i,e){(function(t,r,a){i.exports=r(We(),M0())})(ke,function(t){return t.pad.Iso97971={pad:function(r,a){r.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(r,a)},unpad:function(r){t.pad.ZeroPadding.unpad(r),r.sigBytes--}},t.pad.Iso97971})}(ci)),ci.exports}var di={exports:{}},On;function Xa(){return On||(On=1,function(i,e){(function(t,r,a){i.exports=r(We(),M0())})(ke,function(t){return t.pad.ZeroPadding={pad:function(r,a){var n=a*4;r.clamp(),r.sigBytes+=n-(r.sigBytes%n||n)},unpad:function(r){for(var a=r.words,n=r.sigBytes-1,n=r.sigBytes-1;n>=0;n--)if(a[n>>>2]>>>24-n%4*8&255){r.sigBytes=n+1;break}}},t.pad.ZeroPadding})}(di)),di.exports}var hi={exports:{}},zn;function Za(){return zn||(zn=1,function(i,e){(function(t,r,a){i.exports=r(We(),M0())})(ke,function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding})}(hi)),hi.exports}var ui={exports:{}},Nn;function Ga(){return Nn||(Nn=1,function(i,e){(function(t,r,a){i.exports=r(We(),M0())})(ke,function(t){return function(r){var a=t,n=a.lib,y=n.CipherParams,x=a.enc,u=x.Hex,c=a.format;c.Hex={stringify:function(d){return d.ciphertext.toString(u)},parse:function(d){var v=u.parse(d);return y.create({ciphertext:v})}}}(),t.format.Hex})}(ui)),ui.exports}var li={exports:{}},qn;function Qa(){return qn||(qn=1,function(i,e){(function(t,r,a){i.exports=r(We(),kt(),Pt(),Et(),M0())})(ke,function(t){return function(){var r=t,a=r.lib,n=a.BlockCipher,y=r.algo,x=[],u=[],c=[],d=[],v=[],b=[],M=[],B=[],R=[],k=[];(function(){for(var P=[],O=0;O<256;O++)O<128?P[O]=O<<1:P[O]=O<<1^283;for(var H=0,U=0,O=0;O<256;O++){var K=U^U<<1^U<<2^U<<3^U<<4;K=K>>>8^K&255^99,x[H]=K,u[K]=H;var X=P[H],Q=P[X],$=P[Q],_=P[K]*257^K*16843008;c[H]=_<<24|_>>>8,d[H]=_<<16|_>>>16,v[H]=_<<8|_>>>24,b[H]=_;var _=$*16843009^Q*65537^X*257^H*16843008;M[K]=_<<24|_>>>8,B[K]=_<<16|_>>>16,R[K]=_<<8|_>>>24,k[K]=_,H?(H=X^P[P[P[$^X]]],U^=P[P[U]]):H=U=1}})();var q=[0,1,2,4,8,16,32,64,128,27,54],F=y.AES=n.extend({_doReset:function(){var P;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var O=this._keyPriorReset=this._key,H=O.words,U=O.sigBytes/4,K=this._nRounds=U+6,X=(K+1)*4,Q=this._keySchedule=[],$=0;$<X;$++)$<U?Q[$]=H[$]:(P=Q[$-1],$%U?U>6&&$%U==4&&(P=x[P>>>24]<<24|x[P>>>16&255]<<16|x[P>>>8&255]<<8|x[P&255]):(P=P<<8|P>>>24,P=x[P>>>24]<<24|x[P>>>16&255]<<16|x[P>>>8&255]<<8|x[P&255],P^=q[$/U|0]<<24),Q[$]=Q[$-U]^P);for(var _=this._invKeySchedule=[],f=0;f<X;f++){var $=X-f;if(f%4)var P=Q[$];else var P=Q[$-4];f<4||$<=4?_[f]=P:_[f]=M[x[P>>>24]]^B[x[P>>>16&255]]^R[x[P>>>8&255]]^k[x[P&255]]}}},encryptBlock:function(P,O){this._doCryptBlock(P,O,this._keySchedule,c,d,v,b,x)},decryptBlock:function(P,O){var H=P[O+1];P[O+1]=P[O+3],P[O+3]=H,this._doCryptBlock(P,O,this._invKeySchedule,M,B,R,k,u);var H=P[O+1];P[O+1]=P[O+3],P[O+3]=H},_doCryptBlock:function(P,O,H,U,K,X,Q,$){for(var _=this._nRounds,f=P[O]^H[0],h=P[O+1]^H[1],p=P[O+2]^H[2],g=P[O+3]^H[3],E=4,I=1;I<_;I++){var T=U[f>>>24]^K[h>>>16&255]^X[p>>>8&255]^Q[g&255]^H[E++],S=U[h>>>24]^K[p>>>16&255]^X[g>>>8&255]^Q[f&255]^H[E++],o=U[p>>>24]^K[g>>>16&255]^X[f>>>8&255]^Q[h&255]^H[E++],A=U[g>>>24]^K[f>>>16&255]^X[h>>>8&255]^Q[p&255]^H[E++];f=T,h=S,p=o,g=A}var T=($[f>>>24]<<24|$[h>>>16&255]<<16|$[p>>>8&255]<<8|$[g&255])^H[E++],S=($[h>>>24]<<24|$[p>>>16&255]<<16|$[g>>>8&255]<<8|$[f&255])^H[E++],o=($[p>>>24]<<24|$[g>>>16&255]<<16|$[f>>>8&255]<<8|$[h&255])^H[E++],A=($[g>>>24]<<24|$[f>>>16&255]<<16|$[h>>>8&255]<<8|$[p&255])^H[E++];P[O]=T,P[O+1]=S,P[O+2]=o,P[O+3]=A},keySize:256/32});r.AES=n._createHelper(F)}(),t.AES})}(li)),li.exports}var xi={exports:{}},Ln;function Ja(){return Ln||(Ln=1,function(i,e){(function(t,r,a){i.exports=r(We(),kt(),Pt(),Et(),M0())})(ke,function(t){return function(){var r=t,a=r.lib,n=a.WordArray,y=a.BlockCipher,x=r.algo,u=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],c=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],d=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],v=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],b=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],M=x.DES=y.extend({_doReset:function(){for(var q=this._key,F=q.words,P=[],O=0;O<56;O++){var H=u[O]-1;P[O]=F[H>>>5]>>>31-H%32&1}for(var U=this._subKeys=[],K=0;K<16;K++){for(var X=U[K]=[],Q=d[K],O=0;O<24;O++)X[O/6|0]|=P[(c[O]-1+Q)%28]<<31-O%6,X[4+(O/6|0)]|=P[28+(c[O+24]-1+Q)%28]<<31-O%6;X[0]=X[0]<<1|X[0]>>>31;for(var O=1;O<7;O++)X[O]=X[O]>>>(O-1)*4+3;X[7]=X[7]<<5|X[7]>>>27}for(var $=this._invSubKeys=[],O=0;O<16;O++)$[O]=U[15-O]},encryptBlock:function(q,F){this._doCryptBlock(q,F,this._subKeys)},decryptBlock:function(q,F){this._doCryptBlock(q,F,this._invSubKeys)},_doCryptBlock:function(q,F,P){this._lBlock=q[F],this._rBlock=q[F+1],B.call(this,4,252645135),B.call(this,16,65535),R.call(this,2,858993459),R.call(this,8,16711935),B.call(this,1,1431655765);for(var O=0;O<16;O++){for(var H=P[O],U=this._lBlock,K=this._rBlock,X=0,Q=0;Q<8;Q++)X|=v[Q][((K^H[Q])&b[Q])>>>0];this._lBlock=K,this._rBlock=U^X}var $=this._lBlock;this._lBlock=this._rBlock,this._rBlock=$,B.call(this,1,1431655765),R.call(this,8,16711935),R.call(this,2,858993459),B.call(this,16,65535),B.call(this,4,252645135),q[F]=this._lBlock,q[F+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function B(q,F){var P=(this._lBlock>>>q^this._rBlock)&F;this._rBlock^=P,this._lBlock^=P<<q}function R(q,F){var P=(this._rBlock>>>q^this._lBlock)&F;this._lBlock^=P,this._rBlock^=P<<q}r.DES=y._createHelper(M);var k=x.TripleDES=y.extend({_doReset:function(){var q=this._key,F=q.words;if(F.length!==2&&F.length!==4&&F.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var P=F.slice(0,2),O=F.length<4?F.slice(0,2):F.slice(2,4),H=F.length<6?F.slice(0,2):F.slice(4,6);this._des1=M.createEncryptor(n.create(P)),this._des2=M.createEncryptor(n.create(O)),this._des3=M.createEncryptor(n.create(H))},encryptBlock:function(q,F){this._des1.encryptBlock(q,F),this._des2.decryptBlock(q,F),this._des3.encryptBlock(q,F)},decryptBlock:function(q,F){this._des3.decryptBlock(q,F),this._des2.encryptBlock(q,F),this._des1.decryptBlock(q,F)},keySize:192/32,ivSize:64/32,blockSize:64/32});r.TripleDES=y._createHelper(k)}(),t.TripleDES})}(xi)),xi.exports}var vi={exports:{}},$n;function es(){return $n||($n=1,function(i,e){(function(t,r,a){i.exports=r(We(),kt(),Pt(),Et(),M0())})(ke,function(t){return function(){var r=t,a=r.lib,n=a.StreamCipher,y=r.algo,x=y.RC4=n.extend({_doReset:function(){for(var d=this._key,v=d.words,b=d.sigBytes,M=this._S=[],B=0;B<256;B++)M[B]=B;for(var B=0,R=0;B<256;B++){var k=B%b,q=v[k>>>2]>>>24-k%4*8&255;R=(R+M[B]+q)%256;var F=M[B];M[B]=M[R],M[R]=F}this._i=this._j=0},_doProcessBlock:function(d,v){d[v]^=u.call(this)},keySize:256/32,ivSize:0});function u(){for(var d=this._S,v=this._i,b=this._j,M=0,B=0;B<4;B++){v=(v+1)%256,b=(b+d[v])%256;var R=d[v];d[v]=d[b],d[b]=R,M|=d[(d[v]+d[b])%256]<<24-B*8}return this._i=v,this._j=b,M}r.RC4=n._createHelper(x);var c=y.RC4Drop=x.extend({cfg:x.cfg.extend({drop:192}),_doReset:function(){x._doReset.call(this);for(var d=this.cfg.drop;d>0;d--)u.call(this)}});r.RC4Drop=n._createHelper(c)}(),t.RC4})}(vi)),vi.exports}var bi={exports:{}},Hn;function ts(){return Hn||(Hn=1,function(i,e){(function(t,r,a){i.exports=r(We(),kt(),Pt(),Et(),M0())})(ke,function(t){return function(){var r=t,a=r.lib,n=a.StreamCipher,y=r.algo,x=[],u=[],c=[],d=y.Rabbit=n.extend({_doReset:function(){for(var b=this._key.words,M=this.cfg.iv,B=0;B<4;B++)b[B]=(b[B]<<8|b[B]>>>24)&16711935|(b[B]<<24|b[B]>>>8)&4278255360;var R=this._X=[b[0],b[3]<<16|b[2]>>>16,b[1],b[0]<<16|b[3]>>>16,b[2],b[1]<<16|b[0]>>>16,b[3],b[2]<<16|b[1]>>>16],k=this._C=[b[2]<<16|b[2]>>>16,b[0]&4294901760|b[1]&65535,b[3]<<16|b[3]>>>16,b[1]&4294901760|b[2]&65535,b[0]<<16|b[0]>>>16,b[2]&4294901760|b[3]&65535,b[1]<<16|b[1]>>>16,b[3]&4294901760|b[0]&65535];this._b=0;for(var B=0;B<4;B++)v.call(this);for(var B=0;B<8;B++)k[B]^=R[B+4&7];if(M){var q=M.words,F=q[0],P=q[1],O=(F<<8|F>>>24)&16711935|(F<<24|F>>>8)&4278255360,H=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360,U=O>>>16|H&4294901760,K=H<<16|O&65535;k[0]^=O,k[1]^=U,k[2]^=H,k[3]^=K,k[4]^=O,k[5]^=U,k[6]^=H,k[7]^=K;for(var B=0;B<4;B++)v.call(this)}},_doProcessBlock:function(b,M){var B=this._X;v.call(this),x[0]=B[0]^B[5]>>>16^B[3]<<16,x[1]=B[2]^B[7]>>>16^B[5]<<16,x[2]=B[4]^B[1]>>>16^B[7]<<16,x[3]=B[6]^B[3]>>>16^B[1]<<16;for(var R=0;R<4;R++)x[R]=(x[R]<<8|x[R]>>>24)&16711935|(x[R]<<24|x[R]>>>8)&4278255360,b[M+R]^=x[R]},blockSize:128/32,ivSize:64/32});function v(){for(var b=this._X,M=this._C,B=0;B<8;B++)u[B]=M[B];M[0]=M[0]+1295307597+this._b|0,M[1]=M[1]+3545052371+(M[0]>>>0<u[0]>>>0?1:0)|0,M[2]=M[2]+886263092+(M[1]>>>0<u[1]>>>0?1:0)|0,M[3]=M[3]+1295307597+(M[2]>>>0<u[2]>>>0?1:0)|0,M[4]=M[4]+3545052371+(M[3]>>>0<u[3]>>>0?1:0)|0,M[5]=M[5]+886263092+(M[4]>>>0<u[4]>>>0?1:0)|0,M[6]=M[6]+1295307597+(M[5]>>>0<u[5]>>>0?1:0)|0,M[7]=M[7]+3545052371+(M[6]>>>0<u[6]>>>0?1:0)|0,this._b=M[7]>>>0<u[7]>>>0?1:0;for(var B=0;B<8;B++){var R=b[B]+M[B],k=R&65535,q=R>>>16,F=((k*k>>>17)+k*q>>>15)+q*q,P=((R&4294901760)*R|0)+((R&65535)*R|0);c[B]=F^P}b[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,b[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,b[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,b[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,b[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,b[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,b[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,b[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}r.Rabbit=n._createHelper(d)}(),t.Rabbit})}(bi)),bi.exports}var pi={exports:{}},Un;function rs(){return Un||(Un=1,function(i,e){(function(t,r,a){i.exports=r(We(),kt(),Pt(),Et(),M0())})(ke,function(t){return function(){var r=t,a=r.lib,n=a.StreamCipher,y=r.algo,x=[],u=[],c=[],d=y.RabbitLegacy=n.extend({_doReset:function(){var b=this._key.words,M=this.cfg.iv,B=this._X=[b[0],b[3]<<16|b[2]>>>16,b[1],b[0]<<16|b[3]>>>16,b[2],b[1]<<16|b[0]>>>16,b[3],b[2]<<16|b[1]>>>16],R=this._C=[b[2]<<16|b[2]>>>16,b[0]&4294901760|b[1]&65535,b[3]<<16|b[3]>>>16,b[1]&4294901760|b[2]&65535,b[0]<<16|b[0]>>>16,b[2]&4294901760|b[3]&65535,b[1]<<16|b[1]>>>16,b[3]&4294901760|b[0]&65535];this._b=0;for(var k=0;k<4;k++)v.call(this);for(var k=0;k<8;k++)R[k]^=B[k+4&7];if(M){var q=M.words,F=q[0],P=q[1],O=(F<<8|F>>>24)&16711935|(F<<24|F>>>8)&4278255360,H=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360,U=O>>>16|H&4294901760,K=H<<16|O&65535;R[0]^=O,R[1]^=U,R[2]^=H,R[3]^=K,R[4]^=O,R[5]^=U,R[6]^=H,R[7]^=K;for(var k=0;k<4;k++)v.call(this)}},_doProcessBlock:function(b,M){var B=this._X;v.call(this),x[0]=B[0]^B[5]>>>16^B[3]<<16,x[1]=B[2]^B[7]>>>16^B[5]<<16,x[2]=B[4]^B[1]>>>16^B[7]<<16,x[3]=B[6]^B[3]>>>16^B[1]<<16;for(var R=0;R<4;R++)x[R]=(x[R]<<8|x[R]>>>24)&16711935|(x[R]<<24|x[R]>>>8)&4278255360,b[M+R]^=x[R]},blockSize:128/32,ivSize:64/32});function v(){for(var b=this._X,M=this._C,B=0;B<8;B++)u[B]=M[B];M[0]=M[0]+1295307597+this._b|0,M[1]=M[1]+3545052371+(M[0]>>>0<u[0]>>>0?1:0)|0,M[2]=M[2]+886263092+(M[1]>>>0<u[1]>>>0?1:0)|0,M[3]=M[3]+1295307597+(M[2]>>>0<u[2]>>>0?1:0)|0,M[4]=M[4]+3545052371+(M[3]>>>0<u[3]>>>0?1:0)|0,M[5]=M[5]+886263092+(M[4]>>>0<u[4]>>>0?1:0)|0,M[6]=M[6]+1295307597+(M[5]>>>0<u[5]>>>0?1:0)|0,M[7]=M[7]+3545052371+(M[6]>>>0<u[6]>>>0?1:0)|0,this._b=M[7]>>>0<u[7]>>>0?1:0;for(var B=0;B<8;B++){var R=b[B]+M[B],k=R&65535,q=R>>>16,F=((k*k>>>17)+k*q>>>15)+q*q,P=((R&4294901760)*R|0)+((R&65535)*R|0);c[B]=F^P}b[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,b[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,b[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,b[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,b[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,b[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,b[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,b[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}r.RabbitLegacy=n._createHelper(d)}(),t.RabbitLegacy})}(pi)),pi.exports}var yi={exports:{}},Wn;function is(){return Wn||(Wn=1,function(i,e){(function(t,r,a){i.exports=r(We(),kt(),Pt(),Et(),M0())})(ke,function(t){return function(){var r=t,a=r.lib,n=a.BlockCipher,y=r.algo;const x=16,u=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],c=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var d={pbox:[],sbox:[]};function v(k,q){let F=q>>24&255,P=q>>16&255,O=q>>8&255,H=q&255,U=k.sbox[0][F]+k.sbox[1][P];return U=U^k.sbox[2][O],U=U+k.sbox[3][H],U}function b(k,q,F){let P=q,O=F,H;for(let U=0;U<x;++U)P=P^k.pbox[U],O=v(k,P)^O,H=P,P=O,O=H;return H=P,P=O,O=H,O=O^k.pbox[x],P=P^k.pbox[x+1],{left:P,right:O}}function M(k,q,F){let P=q,O=F,H;for(let U=x+1;U>1;--U)P=P^k.pbox[U],O=v(k,P)^O,H=P,P=O,O=H;return H=P,P=O,O=H,O=O^k.pbox[1],P=P^k.pbox[0],{left:P,right:O}}function B(k,q,F){for(let K=0;K<4;K++){k.sbox[K]=[];for(let X=0;X<256;X++)k.sbox[K][X]=c[K][X]}let P=0;for(let K=0;K<x+2;K++)k.pbox[K]=u[K]^q[P],P++,P>=F&&(P=0);let O=0,H=0,U=0;for(let K=0;K<x+2;K+=2)U=b(k,O,H),O=U.left,H=U.right,k.pbox[K]=O,k.pbox[K+1]=H;for(let K=0;K<4;K++)for(let X=0;X<256;X+=2)U=b(k,O,H),O=U.left,H=U.right,k.sbox[K][X]=O,k.sbox[K][X+1]=H;return!0}var R=y.Blowfish=n.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var k=this._keyPriorReset=this._key,q=k.words,F=k.sigBytes/4;B(d,q,F)}},encryptBlock:function(k,q){var F=b(d,k[q],k[q+1]);k[q]=F.left,k[q+1]=F.right},decryptBlock:function(k,q){var F=M(d,k[q],k[q+1]);k[q]=F.left,k[q+1]=F.right},blockSize:64/32,keySize:128/32,ivSize:64/32});r.Blowfish=n._createHelper(R)}(),t.Blowfish})}(yi)),yi.exports}(function(i,e){(function(t,r,a){i.exports=r(We(),Br(),Pa(),Ia(),kt(),Ta(),Pt(),gf(),Hi(),Oa(),mf(),za(),Na(),qa(),Ui(),La(),Et(),M0(),$a(),Ha(),Ua(),Wa(),Ya(),ja(),Ka(),Va(),Xa(),Za(),Ga(),Qa(),Ja(),es(),ts(),rs(),is())})(ke,function(t){return t})})(pf);var ns=pf.exports;const K0=$i(ns);var _f={};const fs="elliptic",as="6.5.5",ss="EC cryptography",os="lib/elliptic.js",cs=["lib"],ds={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/"},hs={type:"git",url:"git@github.com:indutny/elliptic"},us=["EC","Elliptic","curve","Cryptography"],ls="Fedor Indutny <fedor@indutny.com>",xs="MIT",vs={url:"https://github.com/indutny/elliptic/issues"},bs="https://github.com/indutny/elliptic",ps={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"},ys={"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"},gs={name:fs,version:as,description:ss,main:os,files:cs,scripts:ds,repository:hs,keywords:us,author:ls,license:xs,bugs:vs,homepage:bs,devDependencies:ps,dependencies:ys};var V0={},Wi={exports:{}};Wi.exports;(function(i){(function(e,t){function r(_,f){if(!_)throw new Error(f||"Assertion failed")}function a(_,f){_.super_=f;var h=function(){};h.prototype=f.prototype,_.prototype=new h,_.prototype.constructor=_}function n(_,f,h){if(n.isBN(_))return _;this.negative=0,this.words=null,this.length=0,this.red=null,_!==null&&((f==="le"||f==="be")&&(h=f,f=10),this._init(_||0,f||10,h||"be"))}typeof e=="object"?e.exports=n:t.BN=n,n.BN=n,n.wordSize=26;var y;try{typeof window<"u"&&typeof window.Buffer<"u"?y=window.Buffer:y=wr.Buffer}catch{}n.isBN=function(f){return f instanceof n?!0:f!==null&&typeof f=="object"&&f.constructor.wordSize===n.wordSize&&Array.isArray(f.words)},n.max=function(f,h){return f.cmp(h)>0?f:h},n.min=function(f,h){return f.cmp(h)<0?f:h},n.prototype._init=function(f,h,p){if(typeof f=="number")return this._initNumber(f,h,p);if(typeof f=="object")return this._initArray(f,h,p);h==="hex"&&(h=16),r(h===(h|0)&&h>=2&&h<=36),f=f.toString().replace(/\s+/g,"");var g=0;f[0]==="-"&&(g++,this.negative=1),g<f.length&&(h===16?this._parseHex(f,g,p):(this._parseBase(f,h,g),p==="le"&&this._initArray(this.toArray(),h,p)))},n.prototype._initNumber=function(f,h,p){f<0&&(this.negative=1,f=-f),f<67108864?(this.words=[f&67108863],this.length=1):f<4503599627370496?(this.words=[f&67108863,f/67108864&67108863],this.length=2):(r(f<9007199254740992),this.words=[f&67108863,f/67108864&67108863,1],this.length=3),p==="le"&&this._initArray(this.toArray(),h,p)},n.prototype._initArray=function(f,h,p){if(r(typeof f.length=="number"),f.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(f.length/3),this.words=new Array(this.length);for(var g=0;g<this.length;g++)this.words[g]=0;var E,I,T=0;if(p==="be")for(g=f.length-1,E=0;g>=0;g-=3)I=f[g]|f[g-1]<<8|f[g-2]<<16,this.words[E]|=I<<T&67108863,this.words[E+1]=I>>>26-T&67108863,T+=24,T>=26&&(T-=26,E++);else if(p==="le")for(g=0,E=0;g<f.length;g+=3)I=f[g]|f[g+1]<<8|f[g+2]<<16,this.words[E]|=I<<T&67108863,this.words[E+1]=I>>>26-T&67108863,T+=24,T>=26&&(T-=26,E++);return this.strip()};function x(_,f){var h=_.charCodeAt(f);return h>=65&&h<=70?h-55:h>=97&&h<=102?h-87:h-48&15}function u(_,f,h){var p=x(_,h);return h-1>=f&&(p|=x(_,h-1)<<4),p}n.prototype._parseHex=function(f,h,p){this.length=Math.ceil((f.length-h)/6),this.words=new Array(this.length);for(var g=0;g<this.length;g++)this.words[g]=0;var E=0,I=0,T;if(p==="be")for(g=f.length-1;g>=h;g-=2)T=u(f,h,g)<<E,this.words[I]|=T&67108863,E>=18?(E-=18,I+=1,this.words[I]|=T>>>26):E+=8;else{var S=f.length-h;for(g=S%2===0?h+1:h;g<f.length;g+=2)T=u(f,h,g)<<E,this.words[I]|=T&67108863,E>=18?(E-=18,I+=1,this.words[I]|=T>>>26):E+=8}this.strip()};function c(_,f,h,p){for(var g=0,E=Math.min(_.length,h),I=f;I<E;I++){var T=_.charCodeAt(I)-48;g*=p,T>=49?g+=T-49+10:T>=17?g+=T-17+10:g+=T}return g}n.prototype._parseBase=function(f,h,p){this.words=[0],this.length=1;for(var g=0,E=1;E<=67108863;E*=h)g++;g--,E=E/h|0;for(var I=f.length-p,T=I%g,S=Math.min(I,I-T)+p,o=0,A=p;A<S;A+=g)o=c(f,A,A+g,h),this.imuln(E),this.words[0]+o<67108864?this.words[0]+=o:this._iaddn(o);if(T!==0){var Y=1;for(o=c(f,A,f.length,h),A=0;A<T;A++)Y*=h;this.imuln(Y),this.words[0]+o<67108864?this.words[0]+=o:this._iaddn(o)}this.strip()},n.prototype.copy=function(f){f.words=new Array(this.length);for(var h=0;h<this.length;h++)f.words[h]=this.words[h];f.length=this.length,f.negative=this.negative,f.red=this.red},n.prototype.clone=function(){var f=new n(null);return this.copy(f),f},n.prototype._expand=function(f){for(;this.length<f;)this.words[this.length++]=0;return this},n.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},n.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},n.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],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],b=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(f,h){f=f||10,h=h|0||1;var p;if(f===16||f==="hex"){p="";for(var g=0,E=0,I=0;I<this.length;I++){var T=this.words[I],S=((T<<g|E)&16777215).toString(16);E=T>>>24-g&16777215,E!==0||I!==this.length-1?p=d[6-S.length]+S+p:p=S+p,g+=2,g>=26&&(g-=26,I--)}for(E!==0&&(p=E.toString(16)+p);p.length%h!==0;)p="0"+p;return this.negative!==0&&(p="-"+p),p}if(f===(f|0)&&f>=2&&f<=36){var o=v[f],A=b[f];p="";var Y=this.clone();for(Y.negative=0;!Y.isZero();){var j=Y.modn(A).toString(f);Y=Y.idivn(A),Y.isZero()?p=j+p:p=d[o-j.length]+j+p}for(this.isZero()&&(p="0"+p);p.length%h!==0;)p="0"+p;return this.negative!==0&&(p="-"+p),p}r(!1,"Base should be between 2 and 36")},n.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&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-f:f},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(f,h){return r(typeof y<"u"),this.toArrayLike(y,f,h)},n.prototype.toArray=function(f,h){return this.toArrayLike(Array,f,h)},n.prototype.toArrayLike=function(f,h,p){var g=this.byteLength(),E=p||Math.max(1,g);r(g<=E,"byte array longer than desired length"),r(E>0,"Requested array length <= 0"),this.strip();var I=h==="le",T=new f(E),S,o,A=this.clone();if(I){for(o=0;!A.isZero();o++)S=A.andln(255),A.iushrn(8),T[o]=S;for(;o<E;o++)T[o]=0}else{for(o=0;o<E-g;o++)T[o]=0;for(o=0;!A.isZero();o++)S=A.andln(255),A.iushrn(8),T[E-o-1]=S}return T},Math.clz32?n.prototype._countBits=function(f){return 32-Math.clz32(f)}:n.prototype._countBits=function(f){var h=f,p=0;return h>=4096&&(p+=13,h>>>=13),h>=64&&(p+=7,h>>>=7),h>=8&&(p+=4,h>>>=4),h>=2&&(p+=2,h>>>=2),p+h},n.prototype._zeroBits=function(f){if(f===0)return 26;var h=f,p=0;return h&8191||(p+=13,h>>>=13),h&127||(p+=7,h>>>=7),h&15||(p+=4,h>>>=4),h&3||(p+=2,h>>>=2),h&1||p++,p},n.prototype.bitLength=function(){var f=this.words[this.length-1],h=this._countBits(f);return(this.length-1)*26+h};function M(_){for(var f=new Array(_.bitLength()),h=0;h<f.length;h++){var p=h/26|0,g=h%26;f[h]=(_.words[p]&1<<g)>>>g}return f}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var f=0,h=0;h<this.length;h++){var p=this._zeroBits(this.words[h]);if(f+=p,p!==26)break}return f},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(f){return this.negative!==0?this.abs().inotn(f).iaddn(1):this.clone()},n.prototype.fromTwos=function(f){return this.testn(f-1)?this.notn(f).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return this.negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.prototype.iuor=function(f){for(;this.length<f.length;)this.words[this.length++]=0;for(var h=0;h<f.length;h++)this.words[h]=this.words[h]|f.words[h];return this.strip()},n.prototype.ior=function(f){return r((this.negative|f.negative)===0),this.iuor(f)},n.prototype.or=function(f){return this.length>f.length?this.clone().ior(f):f.clone().ior(this)},n.prototype.uor=function(f){return this.length>f.length?this.clone().iuor(f):f.clone().iuor(this)},n.prototype.iuand=function(f){var h;this.length>f.length?h=f:h=this;for(var p=0;p<h.length;p++)this.words[p]=this.words[p]&f.words[p];return this.length=h.length,this.strip()},n.prototype.iand=function(f){return r((this.negative|f.negative)===0),this.iuand(f)},n.prototype.and=function(f){return this.length>f.length?this.clone().iand(f):f.clone().iand(this)},n.prototype.uand=function(f){return this.length>f.length?this.clone().iuand(f):f.clone().iuand(this)},n.prototype.iuxor=function(f){var h,p;this.length>f.length?(h=this,p=f):(h=f,p=this);for(var g=0;g<p.length;g++)this.words[g]=h.words[g]^p.words[g];if(this!==h)for(;g<h.length;g++)this.words[g]=h.words[g];return this.length=h.length,this.strip()},n.prototype.ixor=function(f){return r((this.negative|f.negative)===0),this.iuxor(f)},n.prototype.xor=function(f){return this.length>f.length?this.clone().ixor(f):f.clone().ixor(this)},n.prototype.uxor=function(f){return this.length>f.length?this.clone().iuxor(f):f.clone().iuxor(this)},n.prototype.inotn=function(f){r(typeof f=="number"&&f>=0);var h=Math.ceil(f/26)|0,p=f%26;this._expand(h),p>0&&h--;for(var g=0;g<h;g++)this.words[g]=~this.words[g]&67108863;return p>0&&(this.words[g]=~this.words[g]&67108863>>26-p),this.strip()},n.prototype.notn=function(f){return this.clone().inotn(f)},n.prototype.setn=function(f,h){r(typeof f=="number"&&f>=0);var p=f/26|0,g=f%26;return this._expand(p+1),h?this.words[p]=this.words[p]|1<<g:this.words[p]=this.words[p]&~(1<<g),this.strip()},n.prototype.iadd=function(f){var h;if(this.negative!==0&&f.negative===0)return this.negative=0,h=this.isub(f),this.negative^=1,this._normSign();if(this.negative===0&&f.negative!==0)return f.negative=0,h=this.isub(f),f.negative=1,h._normSign();var p,g;this.length>f.length?(p=this,g=f):(p=f,g=this);for(var E=0,I=0;I<g.length;I++)h=(p.words[I]|0)+(g.words[I]|0)+E,this.words[I]=h&67108863,E=h>>>26;for(;E!==0&&I<p.length;I++)h=(p.words[I]|0)+E,this.words[I]=h&67108863,E=h>>>26;if(this.length=p.length,E!==0)this.words[this.length]=E,this.length++;else if(p!==this)for(;I<p.length;I++)this.words[I]=p.words[I];return this},n.prototype.add=function(f){var h;return f.negative!==0&&this.negative===0?(f.negative=0,h=this.sub(f),f.negative^=1,h):f.negative===0&&this.negative!==0?(this.negative=0,h=f.sub(this),this.negative=1,h):this.length>f.length?this.clone().iadd(f):f.clone().iadd(this)},n.prototype.isub=function(f){if(f.negative!==0){f.negative=0;var h=this.iadd(f);return f.negative=1,h._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(f),this.negative=1,this._normSign();var p=this.cmp(f);if(p===0)return this.negative=0,this.length=1,this.words[0]=0,this;var g,E;p>0?(g=this,E=f):(g=f,E=this);for(var I=0,T=0;T<E.length;T++)h=(g.words[T]|0)-(E.words[T]|0)+I,I=h>>26,this.words[T]=h&67108863;for(;I!==0&&T<g.length;T++)h=(g.words[T]|0)+I,I=h>>26,this.words[T]=h&67108863;if(I===0&&T<g.length&&g!==this)for(;T<g.length;T++)this.words[T]=g.words[T];return this.length=Math.max(this.length,T),g!==this&&(this.negative=1),this.strip()},n.prototype.sub=function(f){return this.clone().isub(f)};function B(_,f,h){h.negative=f.negative^_.negative;var p=_.length+f.length|0;h.length=p,p=p-1|0;var g=_.words[0]|0,E=f.words[0]|0,I=g*E,T=I&67108863,S=I/67108864|0;h.words[0]=T;for(var o=1;o<p;o++){for(var A=S>>>26,Y=S&67108863,j=Math.min(o,f.length-1),W=Math.max(0,o-_.length+1);W<=j;W++){var J=o-W|0;g=_.words[J]|0,E=f.words[W]|0,I=g*E+Y,A+=I/67108864|0,Y=I&67108863}h.words[o]=Y|0,S=A|0}return S!==0?h.words[o]=S|0:h.length--,h.strip()}var R=function(f,h,p){var g=f.words,E=h.words,I=p.words,T=0,S,o,A,Y=g[0]|0,j=Y&8191,W=Y>>>13,J=g[1]|0,se=J&8191,Ee=J>>>13,ge=g[2]|0,Ce=ge&8191,we=ge>>>13,_0=g[3]|0,Pe=_0&8191,Me=_0>>>13,A0=g[4]|0,Ge=A0&8191,Ye=A0>>>13,Y0=g[5]|0,Qe=Y0&8191,Ne=Y0>>>13,N0=g[6]|0,qe=N0&8191,Fe=N0>>>13,D0=g[7]|0,Je=D0&8191,i0=D0>>>13,F0=g[8]|0,Le=F0&8191,u0=F0>>>13,J0=g[9]|0,l0=J0&8191,He=J0>>>13,L0=E[0]|0,a0=L0&8191,r0=L0>>>13,$0=E[1]|0,n0=$0&8191,s0=$0>>>13,j0=E[2]|0,e0=j0&8191,f0=j0>>>13,H0=E[3]|0,o0=H0&8191,x0=H0>>>13,R0=E[4]|0,t0=R0&8191,Ve=R0>>>13,it=E[5]|0,c0=it&8191,d0=it>>>13,gt=E[6]|0,Oe=gt&8191,Ie=gt>>>13,l=E[7]|0,C=l&8191,w=l>>>13,s=E[8]|0,D=s&8191,m=s>>>13,z=E[9]|0,L=z&8191,V=z>>>13;p.negative=f.negative^h.negative,p.length=19,S=Math.imul(j,a0),o=Math.imul(j,r0),o=o+Math.imul(W,a0)|0,A=Math.imul(W,r0);var fe=(T+S|0)+((o&8191)<<13)|0;T=(A+(o>>>13)|0)+(fe>>>26)|0,fe&=67108863,S=Math.imul(se,a0),o=Math.imul(se,r0),o=o+Math.imul(Ee,a0)|0,A=Math.imul(Ee,r0),S=S+Math.imul(j,n0)|0,o=o+Math.imul(j,s0)|0,o=o+Math.imul(W,n0)|0,A=A+Math.imul(W,s0)|0;var ie=(T+S|0)+((o&8191)<<13)|0;T=(A+(o>>>13)|0)+(ie>>>26)|0,ie&=67108863,S=Math.imul(Ce,a0),o=Math.imul(Ce,r0),o=o+Math.imul(we,a0)|0,A=Math.imul(we,r0),S=S+Math.imul(se,n0)|0,o=o+Math.imul(se,s0)|0,o=o+Math.imul(Ee,n0)|0,A=A+Math.imul(Ee,s0)|0,S=S+Math.imul(j,e0)|0,o=o+Math.imul(j,f0)|0,o=o+Math.imul(W,e0)|0,A=A+Math.imul(W,f0)|0;var he=(T+S|0)+((o&8191)<<13)|0;T=(A+(o>>>13)|0)+(he>>>26)|0,he&=67108863,S=Math.imul(Pe,a0),o=Math.imul(Pe,r0),o=o+Math.imul(Me,a0)|0,A=Math.imul(Me,r0),S=S+Math.imul(Ce,n0)|0,o=o+Math.imul(Ce,s0)|0,o=o+Math.imul(we,n0)|0,A=A+Math.imul(we,s0)|0,S=S+Math.imul(se,e0)|0,o=o+Math.imul(se,f0)|0,o=o+Math.imul(Ee,e0)|0,A=A+Math.imul(Ee,f0)|0,S=S+Math.imul(j,o0)|0,o=o+Math.imul(j,x0)|0,o=o+Math.imul(W,o0)|0,A=A+Math.imul(W,x0)|0;var re=(T+S|0)+((o&8191)<<13)|0;T=(A+(o>>>13)|0)+(re>>>26)|0,re&=67108863,S=Math.imul(Ge,a0),o=Math.imul(Ge,r0),o=o+Math.imul(Ye,a0)|0,A=Math.imul(Ye,r0),S=S+Math.imul(Pe,n0)|0,o=o+Math.imul(Pe,s0)|0,o=o+Math.imul(Me,n0)|0,A=A+Math.imul(Me,s0)|0,S=S+Math.imul(Ce,e0)|0,o=o+Math.imul(Ce,f0)|0,o=o+Math.imul(we,e0)|0,A=A+Math.imul(we,f0)|0,S=S+Math.imul(se,o0)|0,o=o+Math.imul(se,x0)|0,o=o+Math.imul(Ee,o0)|0,A=A+Math.imul(Ee,x0)|0,S=S+Math.imul(j,t0)|0,o=o+Math.imul(j,Ve)|0,o=o+Math.imul(W,t0)|0,A=A+Math.imul(W,Ve)|0;var xe=(T+S|0)+((o&8191)<<13)|0;T=(A+(o>>>13)|0)+(xe>>>26)|0,xe&=67108863,S=Math.imul(Qe,a0),o=Math.imul(Qe,r0),o=o+Math.imul(Ne,a0)|0,A=Math.imul(Ne,r0),S=S+Math.imul(Ge,n0)|0,o=o+Math.imul(Ge,s0)|0,o=o+Math.imul(Ye,n0)|0,A=A+Math.imul(Ye,s0)|0,S=S+Math.imul(Pe,e0)|0,o=o+Math.imul(Pe,f0)|0,o=o+Math.imul(Me,e0)|0,A=A+Math.imul(Me,f0)|0,S=S+Math.imul(Ce,o0)|0,o=o+Math.imul(Ce,x0)|0,o=o+Math.imul(we,o0)|0,A=A+Math.imul(we,x0)|0,S=S+Math.imul(se,t0)|0,o=o+Math.imul(se,Ve)|0,o=o+Math.imul(Ee,t0)|0,A=A+Math.imul(Ee,Ve)|0,S=S+Math.imul(j,c0)|0,o=o+Math.imul(j,d0)|0,o=o+Math.imul(W,c0)|0,A=A+Math.imul(W,d0)|0;var ue=(T+S|0)+((o&8191)<<13)|0;T=(A+(o>>>13)|0)+(ue>>>26)|0,ue&=67108863,S=Math.imul(qe,a0),o=Math.imul(qe,r0),o=o+Math.imul(Fe,a0)|0,A=Math.imul(Fe,r0),S=S+Math.imul(Qe,n0)|0,o=o+Math.imul(Qe,s0)|0,o=o+Math.imul(Ne,n0)|0,A=A+Math.imul(Ne,s0)|0,S=S+Math.imul(Ge,e0)|0,o=o+Math.imul(Ge,f0)|0,o=o+Math.imul(Ye,e0)|0,A=A+Math.imul(Ye,f0)|0,S=S+Math.imul(Pe,o0)|0,o=o+Math.imul(Pe,x0)|0,o=o+Math.imul(Me,o0)|0,A=A+Math.imul(Me,x0)|0,S=S+Math.imul(Ce,t0)|0,o=o+Math.imul(Ce,Ve)|0,o=o+Math.imul(we,t0)|0,A=A+Math.imul(we,Ve)|0,S=S+Math.imul(se,c0)|0,o=o+Math.imul(se,d0)|0,o=o+Math.imul(Ee,c0)|0,A=A+Math.imul(Ee,d0)|0,S=S+Math.imul(j,Oe)|0,o=o+Math.imul(j,Ie)|0,o=o+Math.imul(W,Oe)|0,A=A+Math.imul(W,Ie)|0;var ve=(T+S|0)+((o&8191)<<13)|0;T=(A+(o>>>13)|0)+(ve>>>26)|0,ve&=67108863,S=Math.imul(Je,a0),o=Math.imul(Je,r0),o=o+Math.imul(i0,a0)|0,A=Math.imul(i0,r0),S=S+Math.imul(qe,n0)|0,o=o+Math.imul(qe,s0)|0,o=o+Math.imul(Fe,n0)|0,A=A+Math.imul(Fe,s0)|0,S=S+Math.imul(Qe,e0)|0,o=o+Math.imul(Qe,f0)|0,o=o+Math.imul(Ne,e0)|0,A=A+Math.imul(Ne,f0)|0,S=S+Math.imul(Ge,o0)|0,o=o+Math.imul(Ge,x0)|0,o=o+Math.imul(Ye,o0)|0,A=A+Math.imul(Ye,x0)|0,S=S+Math.imul(Pe,t0)|0,o=o+Math.imul(Pe,Ve)|0,o=o+Math.imul(Me,t0)|0,A=A+Math.imul(Me,Ve)|0,S=S+Math.imul(Ce,c0)|0,o=o+Math.imul(Ce,d0)|0,o=o+Math.imul(we,c0)|0,A=A+Math.imul(we,d0)|0,S=S+Math.imul(se,Oe)|0,o=o+Math.imul(se,Ie)|0,o=o+Math.imul(Ee,Oe)|0,A=A+Math.imul(Ee,Ie)|0,S=S+Math.imul(j,C)|0,o=o+Math.imul(j,w)|0,o=o+Math.imul(W,C)|0,A=A+Math.imul(W,w)|0;var me=(T+S|0)+((o&8191)<<13)|0;T=(A+(o>>>13)|0)+(me>>>26)|0,me&=67108863,S=Math.imul(Le,a0),o=Math.imul(Le,r0),o=o+Math.imul(u0,a0)|0,A=Math.imul(u0,r0),S=S+Math.imul(Je,n0)|0,o=o+Math.imul(Je,s0)|0,o=o+Math.imul(i0,n0)|0,A=A+Math.imul(i0,s0)|0,S=S+Math.imul(qe,e0)|0,o=o+Math.imul(qe,f0)|0,o=o+Math.imul(Fe,e0)|0,A=A+Math.imul(Fe,f0)|0,S=S+Math.imul(Qe,o0)|0,o=o+Math.imul(Qe,x0)|0,o=o+Math.imul(Ne,o0)|0,A=A+Math.imul(Ne,x0)|0,S=S+Math.imul(Ge,t0)|0,o=o+Math.imul(Ge,Ve)|0,o=o+Math.imul(Ye,t0)|0,A=A+Math.imul(Ye,Ve)|0,S=S+Math.imul(Pe,c0)|0,o=o+Math.imul(Pe,d0)|0,o=o+Math.imul(Me,c0)|0,A=A+Math.imul(Me,d0)|0,S=S+Math.imul(Ce,Oe)|0,o=o+Math.imul(Ce,Ie)|0,o=o+Math.imul(we,Oe)|0,A=A+Math.imul(we,Ie)|0,S=S+Math.imul(se,C)|0,o=o+Math.imul(se,w)|0,o=o+Math.imul(Ee,C)|0,A=A+Math.imul(Ee,w)|0,S=S+Math.imul(j,D)|0,o=o+Math.imul(j,m)|0,o=o+Math.imul(W,D)|0,A=A+Math.imul(W,m)|0;var _e=(T+S|0)+((o&8191)<<13)|0;T=(A+(o>>>13)|0)+(_e>>>26)|0,_e&=67108863,S=Math.imul(l0,a0),o=Math.imul(l0,r0),o=o+Math.imul(He,a0)|0,A=Math.imul(He,r0),S=S+Math.imul(Le,n0)|0,o=o+Math.imul(Le,s0)|0,o=o+Math.imul(u0,n0)|0,A=A+Math.imul(u0,s0)|0,S=S+Math.imul(Je,e0)|0,o=o+Math.imul(Je,f0)|0,o=o+Math.imul(i0,e0)|0,A=A+Math.imul(i0,f0)|0,S=S+Math.imul(qe,o0)|0,o=o+Math.imul(qe,x0)|0,o=o+Math.imul(Fe,o0)|0,A=A+Math.imul(Fe,x0)|0,S=S+Math.imul(Qe,t0)|0,o=o+Math.imul(Qe,Ve)|0,o=o+Math.imul(Ne,t0)|0,A=A+Math.imul(Ne,Ve)|0,S=S+Math.imul(Ge,c0)|0,o=o+Math.imul(Ge,d0)|0,o=o+Math.imul(Ye,c0)|0,A=A+Math.imul(Ye,d0)|0,S=S+Math.imul(Pe,Oe)|0,o=o+Math.imul(Pe,Ie)|0,o=o+Math.imul(Me,Oe)|0,A=A+Math.imul(Me,Ie)|0,S=S+Math.imul(Ce,C)|0,o=o+Math.imul(Ce,w)|0,o=o+Math.imul(we,C)|0,A=A+Math.imul(we,w)|0,S=S+Math.imul(se,D)|0,o=o+Math.imul(se,m)|0,o=o+Math.imul(Ee,D)|0,A=A+Math.imul(Ee,m)|0,S=S+Math.imul(j,L)|0,o=o+Math.imul(j,V)|0,o=o+Math.imul(W,L)|0,A=A+Math.imul(W,V)|0;var Ae=(T+S|0)+((o&8191)<<13)|0;T=(A+(o>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,S=Math.imul(l0,n0),o=Math.imul(l0,s0),o=o+Math.imul(He,n0)|0,A=Math.imul(He,s0),S=S+Math.imul(Le,e0)|0,o=o+Math.imul(Le,f0)|0,o=o+Math.imul(u0,e0)|0,A=A+Math.imul(u0,f0)|0,S=S+Math.imul(Je,o0)|0,o=o+Math.imul(Je,x0)|0,o=o+Math.imul(i0,o0)|0,A=A+Math.imul(i0,x0)|0,S=S+Math.imul(qe,t0)|0,o=o+Math.imul(qe,Ve)|0,o=o+Math.imul(Fe,t0)|0,A=A+Math.imul(Fe,Ve)|0,S=S+Math.imul(Qe,c0)|0,o=o+Math.imul(Qe,d0)|0,o=o+Math.imul(Ne,c0)|0,A=A+Math.imul(Ne,d0)|0,S=S+Math.imul(Ge,Oe)|0,o=o+Math.imul(Ge,Ie)|0,o=o+Math.imul(Ye,Oe)|0,A=A+Math.imul(Ye,Ie)|0,S=S+Math.imul(Pe,C)|0,o=o+Math.imul(Pe,w)|0,o=o+Math.imul(Me,C)|0,A=A+Math.imul(Me,w)|0,S=S+Math.imul(Ce,D)|0,o=o+Math.imul(Ce,m)|0,o=o+Math.imul(we,D)|0,A=A+Math.imul(we,m)|0,S=S+Math.imul(se,L)|0,o=o+Math.imul(se,V)|0,o=o+Math.imul(Ee,L)|0,A=A+Math.imul(Ee,V)|0;var pe=(T+S|0)+((o&8191)<<13)|0;T=(A+(o>>>13)|0)+(pe>>>26)|0,pe&=67108863,S=Math.imul(l0,e0),o=Math.imul(l0,f0),o=o+Math.imul(He,e0)|0,A=Math.imul(He,f0),S=S+Math.imul(Le,o0)|0,o=o+Math.imul(Le,x0)|0,o=o+Math.imul(u0,o0)|0,A=A+Math.imul(u0,x0)|0,S=S+Math.imul(Je,t0)|0,o=o+Math.imul(Je,Ve)|0,o=o+Math.imul(i0,t0)|0,A=A+Math.imul(i0,Ve)|0,S=S+Math.imul(qe,c0)|0,o=o+Math.imul(qe,d0)|0,o=o+Math.imul(Fe,c0)|0,A=A+Math.imul(Fe,d0)|0,S=S+Math.imul(Qe,Oe)|0,o=o+Math.imul(Qe,Ie)|0,o=o+Math.imul(Ne,Oe)|0,A=A+Math.imul(Ne,Ie)|0,S=S+Math.imul(Ge,C)|0,o=o+Math.imul(Ge,w)|0,o=o+Math.imul(Ye,C)|0,A=A+Math.imul(Ye,w)|0,S=S+Math.imul(Pe,D)|0,o=o+Math.imul(Pe,m)|0,o=o+Math.imul(Me,D)|0,A=A+Math.imul(Me,m)|0,S=S+Math.imul(Ce,L)|0,o=o+Math.imul(Ce,V)|0,o=o+Math.imul(we,L)|0,A=A+Math.imul(we,V)|0;var de=(T+S|0)+((o&8191)<<13)|0;T=(A+(o>>>13)|0)+(de>>>26)|0,de&=67108863,S=Math.imul(l0,o0),o=Math.imul(l0,x0),o=o+Math.imul(He,o0)|0,A=Math.imul(He,x0),S=S+Math.imul(Le,t0)|0,o=o+Math.imul(Le,Ve)|0,o=o+Math.imul(u0,t0)|0,A=A+Math.imul(u0,Ve)|0,S=S+Math.imul(Je,c0)|0,o=o+Math.imul(Je,d0)|0,o=o+Math.imul(i0,c0)|0,A=A+Math.imul(i0,d0)|0,S=S+Math.imul(qe,Oe)|0,o=o+Math.imul(qe,Ie)|0,o=o+Math.imul(Fe,Oe)|0,A=A+Math.imul(Fe,Ie)|0,S=S+Math.imul(Qe,C)|0,o=o+Math.imul(Qe,w)|0,o=o+Math.imul(Ne,C)|0,A=A+Math.imul(Ne,w)|0,S=S+Math.imul(Ge,D)|0,o=o+Math.imul(Ge,m)|0,o=o+Math.imul(Ye,D)|0,A=A+Math.imul(Ye,m)|0,S=S+Math.imul(Pe,L)|0,o=o+Math.imul(Pe,V)|0,o=o+Math.imul(Me,L)|0,A=A+Math.imul(Me,V)|0;var ye=(T+S|0)+((o&8191)<<13)|0;T=(A+(o>>>13)|0)+(ye>>>26)|0,ye&=67108863,S=Math.imul(l0,t0),o=Math.imul(l0,Ve),o=o+Math.imul(He,t0)|0,A=Math.imul(He,Ve),S=S+Math.imul(Le,c0)|0,o=o+Math.imul(Le,d0)|0,o=o+Math.imul(u0,c0)|0,A=A+Math.imul(u0,d0)|0,S=S+Math.imul(Je,Oe)|0,o=o+Math.imul(Je,Ie)|0,o=o+Math.imul(i0,Oe)|0,A=A+Math.imul(i0,Ie)|0,S=S+Math.imul(qe,C)|0,o=o+Math.imul(qe,w)|0,o=o+Math.imul(Fe,C)|0,A=A+Math.imul(Fe,w)|0,S=S+Math.imul(Qe,D)|0,o=o+Math.imul(Qe,m)|0,o=o+Math.imul(Ne,D)|0,A=A+Math.imul(Ne,m)|0,S=S+Math.imul(Ge,L)|0,o=o+Math.imul(Ge,V)|0,o=o+Math.imul(Ye,L)|0,A=A+Math.imul(Ye,V)|0;var ce=(T+S|0)+((o&8191)<<13)|0;T=(A+(o>>>13)|0)+(ce>>>26)|0,ce&=67108863,S=Math.imul(l0,c0),o=Math.imul(l0,d0),o=o+Math.imul(He,c0)|0,A=Math.imul(He,d0),S=S+Math.imul(Le,Oe)|0,o=o+Math.imul(Le,Ie)|0,o=o+Math.imul(u0,Oe)|0,A=A+Math.imul(u0,Ie)|0,S=S+Math.imul(Je,C)|0,o=o+Math.imul(Je,w)|0,o=o+Math.imul(i0,C)|0,A=A+Math.imul(i0,w)|0,S=S+Math.imul(qe,D)|0,o=o+Math.imul(qe,m)|0,o=o+Math.imul(Fe,D)|0,A=A+Math.imul(Fe,m)|0,S=S+Math.imul(Qe,L)|0,o=o+Math.imul(Qe,V)|0,o=o+Math.imul(Ne,L)|0,A=A+Math.imul(Ne,V)|0;var le=(T+S|0)+((o&8191)<<13)|0;T=(A+(o>>>13)|0)+(le>>>26)|0,le&=67108863,S=Math.imul(l0,Oe),o=Math.imul(l0,Ie),o=o+Math.imul(He,Oe)|0,A=Math.imul(He,Ie),S=S+Math.imul(Le,C)|0,o=o+Math.imul(Le,w)|0,o=o+Math.imul(u0,C)|0,A=A+Math.imul(u0,w)|0,S=S+Math.imul(Je,D)|0,o=o+Math.imul(Je,m)|0,o=o+Math.imul(i0,D)|0,A=A+Math.imul(i0,m)|0,S=S+Math.imul(qe,L)|0,o=o+Math.imul(qe,V)|0,o=o+Math.imul(Fe,L)|0,A=A+Math.imul(Fe,V)|0;var be=(T+S|0)+((o&8191)<<13)|0;T=(A+(o>>>13)|0)+(be>>>26)|0,be&=67108863,S=Math.imul(l0,C),o=Math.imul(l0,w),o=o+Math.imul(He,C)|0,A=Math.imul(He,w),S=S+Math.imul(Le,D)|0,o=o+Math.imul(Le,m)|0,o=o+Math.imul(u0,D)|0,A=A+Math.imul(u0,m)|0,S=S+Math.imul(Je,L)|0,o=o+Math.imul(Je,V)|0,o=o+Math.imul(i0,L)|0,A=A+Math.imul(i0,V)|0;var oe=(T+S|0)+((o&8191)<<13)|0;T=(A+(o>>>13)|0)+(oe>>>26)|0,oe&=67108863,S=Math.imul(l0,D),o=Math.imul(l0,m),o=o+Math.imul(He,D)|0,A=Math.imul(He,m),S=S+Math.imul(Le,L)|0,o=o+Math.imul(Le,V)|0,o=o+Math.imul(u0,L)|0,A=A+Math.imul(u0,V)|0;var Z=(T+S|0)+((o&8191)<<13)|0;T=(A+(o>>>13)|0)+(Z>>>26)|0,Z&=67108863,S=Math.imul(l0,L),o=Math.imul(l0,V),o=o+Math.imul(He,L)|0,A=Math.imul(He,V);var G=(T+S|0)+((o&8191)<<13)|0;return T=(A+(o>>>13)|0)+(G>>>26)|0,G&=67108863,I[0]=fe,I[1]=ie,I[2]=he,I[3]=re,I[4]=xe,I[5]=ue,I[6]=ve,I[7]=me,I[8]=_e,I[9]=Ae,I[10]=pe,I[11]=de,I[12]=ye,I[13]=ce,I[14]=le,I[15]=be,I[16]=oe,I[17]=Z,I[18]=G,T!==0&&(I[19]=T,p.length++),p};Math.imul||(R=B);function k(_,f,h){h.negative=f.negative^_.negative,h.length=_.length+f.length;for(var p=0,g=0,E=0;E<h.length-1;E++){var I=g;g=0;for(var T=p&67108863,S=Math.min(E,f.length-1),o=Math.max(0,E-_.length+1);o<=S;o++){var A=E-o,Y=_.words[A]|0,j=f.words[o]|0,W=Y*j,J=W&67108863;I=I+(W/67108864|0)|0,J=J+T|0,T=J&67108863,I=I+(J>>>26)|0,g+=I>>>26,I&=67108863}h.words[E]=T,p=I,I=g}return p!==0?h.words[E]=p:h.length--,h.strip()}function q(_,f,h){var p=new F;return p.mulp(_,f,h)}n.prototype.mulTo=function(f,h){var p,g=this.length+f.length;return this.length===10&&f.length===10?p=R(this,f,h):g<63?p=B(this,f,h):g<1024?p=k(this,f,h):p=q(this,f,h),p};function F(_,f){this.x=_,this.y=f}F.prototype.makeRBT=function(f){for(var h=new Array(f),p=n.prototype._countBits(f)-1,g=0;g<f;g++)h[g]=this.revBin(g,p,f);return h},F.prototype.revBin=function(f,h,p){if(f===0||f===p-1)return f;for(var g=0,E=0;E<h;E++)g|=(f&1)<<h-E-1,f>>=1;return g},F.prototype.permute=function(f,h,p,g,E,I){for(var T=0;T<I;T++)g[T]=h[f[T]],E[T]=p[f[T]]},F.prototype.transform=function(f,h,p,g,E,I){this.permute(I,f,h,p,g,E);for(var T=1;T<E;T<<=1)for(var S=T<<1,o=Math.cos(2*Math.PI/S),A=Math.sin(2*Math.PI/S),Y=0;Y<E;Y+=S)for(var j=o,W=A,J=0;J<T;J++){var se=p[Y+J],Ee=g[Y+J],ge=p[Y+J+T],Ce=g[Y+J+T],we=j*ge-W*Ce;Ce=j*Ce+W*ge,ge=we,p[Y+J]=se+ge,g[Y+J]=Ee+Ce,p[Y+J+T]=se-ge,g[Y+J+T]=Ee-Ce,J!==S&&(we=o*j-A*W,W=o*W+A*j,j=we)}},F.prototype.guessLen13b=function(f,h){var p=Math.max(h,f)|1,g=p&1,E=0;for(p=p/2|0;p;p=p>>>1)E++;return 1<<E+1+g},F.prototype.conjugate=function(f,h,p){if(!(p<=1))for(var g=0;g<p/2;g++){var E=f[g];f[g]=f[p-g-1],f[p-g-1]=E,E=h[g],h[g]=-h[p-g-1],h[p-g-1]=-E}},F.prototype.normalize13b=function(f,h){for(var p=0,g=0;g<h/2;g++){var E=Math.round(f[2*g+1]/h)*8192+Math.round(f[2*g]/h)+p;f[g]=E&67108863,E<67108864?p=0:p=E/67108864|0}return f},F.prototype.convert13b=function(f,h,p,g){for(var E=0,I=0;I<h;I++)E=E+(f[I]|0),p[2*I]=E&8191,E=E>>>13,p[2*I+1]=E&8191,E=E>>>13;for(I=2*h;I<g;++I)p[I]=0;r(E===0),r((E&-8192)===0)},F.prototype.stub=function(f){for(var h=new Array(f),p=0;p<f;p++)h[p]=0;return h},F.prototype.mulp=function(f,h,p){var g=2*this.guessLen13b(f.length,h.length),E=this.makeRBT(g),I=this.stub(g),T=new Array(g),S=new Array(g),o=new Array(g),A=new Array(g),Y=new Array(g),j=new Array(g),W=p.words;W.length=g,this.convert13b(f.words,f.length,T,g),this.convert13b(h.words,h.length,A,g),this.transform(T,I,S,o,g,E),this.transform(A,I,Y,j,g,E);for(var J=0;J<g;J++){var se=S[J]*Y[J]-o[J]*j[J];o[J]=S[J]*j[J]+o[J]*Y[J],S[J]=se}return this.conjugate(S,o,g),this.transform(S,o,W,I,g,E),this.conjugate(W,I,g),this.normalize13b(W,g),p.negative=f.negative^h.negative,p.length=f.length+h.length,p.strip()},n.prototype.mul=function(f){var h=new n(null);return h.words=new Array(this.length+f.length),this.mulTo(f,h)},n.prototype.mulf=function(f){var h=new n(null);return h.words=new Array(this.length+f.length),q(this,f,h)},n.prototype.imul=function(f){return this.clone().mulTo(f,this)},n.prototype.imuln=function(f){r(typeof f=="number"),r(f<67108864);for(var h=0,p=0;p<this.length;p++){var g=(this.words[p]|0)*f,E=(g&67108863)+(h&67108863);h>>=26,h+=g/67108864|0,h+=E>>>26,this.words[p]=E&67108863}return h!==0&&(this.words[p]=h,this.length++),this},n.prototype.muln=function(f){return this.clone().imuln(f)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(f){var h=M(f);if(h.length===0)return new n(1);for(var p=this,g=0;g<h.length&&h[g]===0;g++,p=p.sqr());if(++g<h.length)for(var E=p.sqr();g<h.length;g++,E=E.sqr())h[g]!==0&&(p=p.mul(E));return p},n.prototype.iushln=function(f){r(typeof f=="number"&&f>=0);var h=f%26,p=(f-h)/26,g=67108863>>>26-h<<26-h,E;if(h!==0){var I=0;for(E=0;E<this.length;E++){var T=this.words[E]&g,S=(this.words[E]|0)-T<<h;this.words[E]=S|I,I=T>>>26-h}I&&(this.words[E]=I,this.length++)}if(p!==0){for(E=this.length-1;E>=0;E--)this.words[E+p]=this.words[E];for(E=0;E<p;E++)this.words[E]=0;this.length+=p}return this.strip()},n.prototype.ishln=function(f){return r(this.negative===0),this.iushln(f)},n.prototype.iushrn=function(f,h,p){r(typeof f=="number"&&f>=0);var g;h?g=(h-h%26)/26:g=0;var E=f%26,I=Math.min((f-E)/26,this.length),T=67108863^67108863>>>E<<E,S=p;if(g-=I,g=Math.max(0,g),S){for(var o=0;o<I;o++)S.words[o]=this.words[o];S.length=I}if(I!==0)if(this.length>I)for(this.length-=I,o=0;o<this.length;o++)this.words[o]=this.words[o+I];else this.words[0]=0,this.length=1;var A=0;for(o=this.length-1;o>=0&&(A!==0||o>=g);o--){var Y=this.words[o]|0;this.words[o]=A<<26-E|Y>>>E,A=Y&T}return S&&A!==0&&(S.words[S.length++]=A),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.ishrn=function(f,h,p){return r(this.negative===0),this.iushrn(f,h,p)},n.prototype.shln=function(f){return this.clone().ishln(f)},n.prototype.ushln=function(f){return this.clone().iushln(f)},n.prototype.shrn=function(f){return this.clone().ishrn(f)},n.prototype.ushrn=function(f){return this.clone().iushrn(f)},n.prototype.testn=function(f){r(typeof f=="number"&&f>=0);var h=f%26,p=(f-h)/26,g=1<<h;if(this.length<=p)return!1;var E=this.words[p];return!!(E&g)},n.prototype.imaskn=function(f){r(typeof f=="number"&&f>=0);var h=f%26,p=(f-h)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=p)return this;if(h!==0&&p++,this.length=Math.min(p,this.length),h!==0){var g=67108863^67108863>>>h<<h;this.words[this.length-1]&=g}return this.strip()},n.prototype.maskn=function(f){return this.clone().imaskn(f)},n.prototype.iaddn=function(f){return r(typeof f=="number"),r(f<67108864),f<0?this.isubn(-f):this.negative!==0?this.length===1&&(this.words[0]|0)<f?(this.words[0]=f-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(f),this.negative=1,this):this._iaddn(f)},n.prototype._iaddn=function(f){this.words[0]+=f;for(var h=0;h<this.length&&this.words[h]>=67108864;h++)this.words[h]-=67108864,h===this.length-1?this.words[h+1]=1:this.words[h+1]++;return this.length=Math.max(this.length,h+1),this},n.prototype.isubn=function(f){if(r(typeof f=="number"),r(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 h=0;h<this.length&&this.words[h]<0;h++)this.words[h]+=67108864,this.words[h+1]-=1;return this.strip()},n.prototype.addn=function(f){return this.clone().iaddn(f)},n.prototype.subn=function(f){return this.clone().isubn(f)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(f,h,p){var g=f.length+p,E;this._expand(g);var I,T=0;for(E=0;E<f.length;E++){I=(this.words[E+p]|0)+T;var S=(f.words[E]|0)*h;I-=S&67108863,T=(I>>26)-(S/67108864|0),this.words[E+p]=I&67108863}for(;E<this.length-p;E++)I=(this.words[E+p]|0)+T,T=I>>26,this.words[E+p]=I&67108863;if(T===0)return this.strip();for(r(T===-1),T=0,E=0;E<this.length;E++)I=-(this.words[E]|0)+T,T=I>>26,this.words[E]=I&67108863;return this.negative=1,this.strip()},n.prototype._wordDiv=function(f,h){var p=this.length-f.length,g=this.clone(),E=f,I=E.words[E.length-1]|0,T=this._countBits(I);p=26-T,p!==0&&(E=E.ushln(p),g.iushln(p),I=E.words[E.length-1]|0);var S=g.length-E.length,o;if(h!=="mod"){o=new n(null),o.length=S+1,o.words=new Array(o.length);for(var A=0;A<o.length;A++)o.words[A]=0}var Y=g.clone()._ishlnsubmul(E,1,S);Y.negative===0&&(g=Y,o&&(o.words[S]=1));for(var j=S-1;j>=0;j--){var W=(g.words[E.length+j]|0)*67108864+(g.words[E.length+j-1]|0);for(W=Math.min(W/I|0,67108863),g._ishlnsubmul(E,W,j);g.negative!==0;)W--,g.negative=0,g._ishlnsubmul(E,1,j),g.isZero()||(g.negative^=1);o&&(o.words[j]=W)}return o&&o.strip(),g.strip(),h!=="div"&&p!==0&&g.iushrn(p),{div:o||null,mod:g}},n.prototype.divmod=function(f,h,p){if(r(!f.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var g,E,I;return this.negative!==0&&f.negative===0?(I=this.neg().divmod(f,h),h!=="mod"&&(g=I.div.neg()),h!=="div"&&(E=I.mod.neg(),p&&E.negative!==0&&E.iadd(f)),{div:g,mod:E}):this.negative===0&&f.negative!==0?(I=this.divmod(f.neg(),h),h!=="mod"&&(g=I.div.neg()),{div:g,mod:I.mod}):this.negative&f.negative?(I=this.neg().divmod(f.neg(),h),h!=="div"&&(E=I.mod.neg(),p&&E.negative!==0&&E.isub(f)),{div:I.div,mod:E}):f.length>this.length||this.cmp(f)<0?{div:new n(0),mod:this}:f.length===1?h==="div"?{div:this.divn(f.words[0]),mod:null}:h==="mod"?{div:null,mod:new n(this.modn(f.words[0]))}:{div:this.divn(f.words[0]),mod:new n(this.modn(f.words[0]))}:this._wordDiv(f,h)},n.prototype.div=function(f){return this.divmod(f,"div",!1).div},n.prototype.mod=function(f){return this.divmod(f,"mod",!1).mod},n.prototype.umod=function(f){return this.divmod(f,"mod",!0).mod},n.prototype.divRound=function(f){var h=this.divmod(f);if(h.mod.isZero())return h.div;var p=h.div.negative!==0?h.mod.isub(f):h.mod,g=f.ushrn(1),E=f.andln(1),I=p.cmp(g);return I<0||E===1&&I===0?h.div:h.div.negative!==0?h.div.isubn(1):h.div.iaddn(1)},n.prototype.modn=function(f){r(f<=67108863);for(var h=(1<<26)%f,p=0,g=this.length-1;g>=0;g--)p=(h*p+(this.words[g]|0))%f;return p},n.prototype.idivn=function(f){r(f<=67108863);for(var h=0,p=this.length-1;p>=0;p--){var g=(this.words[p]|0)+h*67108864;this.words[p]=g/f|0,h=g%f}return this.strip()},n.prototype.divn=function(f){return this.clone().idivn(f)},n.prototype.egcd=function(f){r(f.negative===0),r(!f.isZero());var h=this,p=f.clone();h.negative!==0?h=h.umod(f):h=h.clone();for(var g=new n(1),E=new n(0),I=new n(0),T=new n(1),S=0;h.isEven()&&p.isEven();)h.iushrn(1),p.iushrn(1),++S;for(var o=p.clone(),A=h.clone();!h.isZero();){for(var Y=0,j=1;!(h.words[0]&j)&&Y<26;++Y,j<<=1);if(Y>0)for(h.iushrn(Y);Y-- >0;)(g.isOdd()||E.isOdd())&&(g.iadd(o),E.isub(A)),g.iushrn(1),E.iushrn(1);for(var W=0,J=1;!(p.words[0]&J)&&W<26;++W,J<<=1);if(W>0)for(p.iushrn(W);W-- >0;)(I.isOdd()||T.isOdd())&&(I.iadd(o),T.isub(A)),I.iushrn(1),T.iushrn(1);h.cmp(p)>=0?(h.isub(p),g.isub(I),E.isub(T)):(p.isub(h),I.isub(g),T.isub(E))}return{a:I,b:T,gcd:p.iushln(S)}},n.prototype._invmp=function(f){r(f.negative===0),r(!f.isZero());var h=this,p=f.clone();h.negative!==0?h=h.umod(f):h=h.clone();for(var g=new n(1),E=new n(0),I=p.clone();h.cmpn(1)>0&&p.cmpn(1)>0;){for(var T=0,S=1;!(h.words[0]&S)&&T<26;++T,S<<=1);if(T>0)for(h.iushrn(T);T-- >0;)g.isOdd()&&g.iadd(I),g.iushrn(1);for(var o=0,A=1;!(p.words[0]&A)&&o<26;++o,A<<=1);if(o>0)for(p.iushrn(o);o-- >0;)E.isOdd()&&E.iadd(I),E.iushrn(1);h.cmp(p)>=0?(h.isub(p),g.isub(E)):(p.isub(h),E.isub(g))}var Y;return h.cmpn(1)===0?Y=g:Y=E,Y.cmpn(0)<0&&Y.iadd(f),Y},n.prototype.gcd=function(f){if(this.isZero())return f.abs();if(f.isZero())return this.abs();var h=this.clone(),p=f.clone();h.negative=0,p.negative=0;for(var g=0;h.isEven()&&p.isEven();g++)h.iushrn(1),p.iushrn(1);do{for(;h.isEven();)h.iushrn(1);for(;p.isEven();)p.iushrn(1);var E=h.cmp(p);if(E<0){var I=h;h=p,p=I}else if(E===0||p.cmpn(1)===0)break;h.isub(p)}while(!0);return p.iushln(g)},n.prototype.invm=function(f){return this.egcd(f).a.umod(f)},n.prototype.isEven=function(){return(this.words[0]&1)===0},n.prototype.isOdd=function(){return(this.words[0]&1)===1},n.prototype.andln=function(f){return this.words[0]&f},n.prototype.bincn=function(f){r(typeof f=="number");var h=f%26,p=(f-h)/26,g=1<<h;if(this.length<=p)return this._expand(p+1),this.words[p]|=g,this;for(var E=g,I=p;E!==0&&I<this.length;I++){var T=this.words[I]|0;T+=E,E=T>>>26,T&=67108863,this.words[I]=T}return E!==0&&(this.words[I]=E,this.length++),this},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.prototype.cmpn=function(f){var h=f<0;if(this.negative!==0&&!h)return-1;if(this.negative===0&&h)return 1;this.strip();var p;if(this.length>1)p=1;else{h&&(f=-f),r(f<=67108863,"Number is too big");var g=this.words[0]|0;p=g===f?0:g<f?-1:1}return this.negative!==0?-p|0:p},n.prototype.cmp=function(f){if(this.negative!==0&&f.negative===0)return-1;if(this.negative===0&&f.negative!==0)return 1;var h=this.ucmp(f);return this.negative!==0?-h|0:h},n.prototype.ucmp=function(f){if(this.length>f.length)return 1;if(this.length<f.length)return-1;for(var h=0,p=this.length-1;p>=0;p--){var g=this.words[p]|0,E=f.words[p]|0;if(g!==E){g<E?h=-1:g>E&&(h=1);break}}return h},n.prototype.gtn=function(f){return this.cmpn(f)===1},n.prototype.gt=function(f){return this.cmp(f)===1},n.prototype.gten=function(f){return this.cmpn(f)>=0},n.prototype.gte=function(f){return this.cmp(f)>=0},n.prototype.ltn=function(f){return this.cmpn(f)===-1},n.prototype.lt=function(f){return this.cmp(f)===-1},n.prototype.lten=function(f){return this.cmpn(f)<=0},n.prototype.lte=function(f){return this.cmp(f)<=0},n.prototype.eqn=function(f){return this.cmpn(f)===0},n.prototype.eq=function(f){return this.cmp(f)===0},n.red=function(f){return new Q(f)},n.prototype.toRed=function(f){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),f.convertTo(this)._forceRed(f)},n.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(f){return this.red=f,this},n.prototype.forceRed=function(f){return r(!this.red,"Already a number in reduction context"),this._forceRed(f)},n.prototype.redAdd=function(f){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,f)},n.prototype.redIAdd=function(f){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,f)},n.prototype.redSub=function(f){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,f)},n.prototype.redISub=function(f){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,f)},n.prototype.redShl=function(f){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,f)},n.prototype.redMul=function(f){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.mul(this,f)},n.prototype.redIMul=function(f){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.imul(this,f)},n.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(f){return r(this.red&&!f.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,f)};var P={k256:null,p224:null,p192:null,p25519:null};function O(_,f){this.name=_,this.p=new n(f,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}O.prototype._tmp=function(){var f=new n(null);return f.words=new Array(Math.ceil(this.n/13)),f},O.prototype.ireduce=function(f){var h=f,p;do this.split(h,this.tmp),h=this.imulK(h),h=h.iadd(this.tmp),p=h.bitLength();while(p>this.n);var g=p<this.n?-1:h.ucmp(this.p);return g===0?(h.words[0]=0,h.length=1):g>0?h.isub(this.p):h.strip!==void 0?h.strip():h._strip(),h},O.prototype.split=function(f,h){f.iushrn(this.n,0,h)},O.prototype.imulK=function(f){return f.imul(this.k)};function H(){O.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}a(H,O),H.prototype.split=function(f,h){for(var p=4194303,g=Math.min(f.length,9),E=0;E<g;E++)h.words[E]=f.words[E];if(h.length=g,f.length<=9){f.words[0]=0,f.length=1;return}var I=f.words[9];for(h.words[h.length++]=I&p,E=10;E<f.length;E++){var T=f.words[E]|0;f.words[E-10]=(T&p)<<4|I>>>22,I=T}I>>>=22,f.words[E-10]=I,I===0&&f.length>10?f.length-=10:f.length-=9},H.prototype.imulK=function(f){f.words[f.length]=0,f.words[f.length+1]=0,f.length+=2;for(var h=0,p=0;p<f.length;p++){var g=f.words[p]|0;h+=g*977,f.words[p]=h&67108863,h=g*64+(h/67108864|0)}return f.words[f.length-1]===0&&(f.length--,f.words[f.length-1]===0&&f.length--),f};function U(){O.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}a(U,O);function K(){O.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}a(K,O);function X(){O.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}a(X,O),X.prototype.imulK=function(f){for(var h=0,p=0;p<f.length;p++){var g=(f.words[p]|0)*19+h,E=g&67108863;g>>>=26,f.words[p]=E,h=g}return h!==0&&(f.words[f.length++]=h),f},n._prime=function(f){if(P[f])return P[f];var h;if(f==="k256")h=new H;else if(f==="p224")h=new U;else if(f==="p192")h=new K;else if(f==="p25519")h=new X;else throw new Error("Unknown prime "+f);return P[f]=h,h};function Q(_){if(typeof _=="string"){var f=n._prime(_);this.m=f.p,this.prime=f}else r(_.gtn(1),"modulus must be greater than 1"),this.m=_,this.prime=null}Q.prototype._verify1=function(f){r(f.negative===0,"red works only with positives"),r(f.red,"red works only with red numbers")},Q.prototype._verify2=function(f,h){r((f.negative|h.negative)===0,"red works only with positives"),r(f.red&&f.red===h.red,"red works only with red numbers")},Q.prototype.imod=function(f){return this.prime?this.prime.ireduce(f)._forceRed(this):f.umod(this.m)._forceRed(this)},Q.prototype.neg=function(f){return f.isZero()?f.clone():this.m.sub(f)._forceRed(this)},Q.prototype.add=function(f,h){this._verify2(f,h);var p=f.add(h);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},Q.prototype.iadd=function(f,h){this._verify2(f,h);var p=f.iadd(h);return p.cmp(this.m)>=0&&p.isub(this.m),p},Q.prototype.sub=function(f,h){this._verify2(f,h);var p=f.sub(h);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},Q.prototype.isub=function(f,h){this._verify2(f,h);var p=f.isub(h);return p.cmpn(0)<0&&p.iadd(this.m),p},Q.prototype.shl=function(f,h){return this._verify1(f),this.imod(f.ushln(h))},Q.prototype.imul=function(f,h){return this._verify2(f,h),this.imod(f.imul(h))},Q.prototype.mul=function(f,h){return this._verify2(f,h),this.imod(f.mul(h))},Q.prototype.isqr=function(f){return this.imul(f,f.clone())},Q.prototype.sqr=function(f){return this.mul(f,f)},Q.prototype.sqrt=function(f){if(f.isZero())return f.clone();var h=this.m.andln(3);if(r(h%2===1),h===3){var p=this.m.add(new n(1)).iushrn(2);return this.pow(f,p)}for(var g=this.m.subn(1),E=0;!g.isZero()&&g.andln(1)===0;)E++,g.iushrn(1);r(!g.isZero());var I=new n(1).toRed(this),T=I.redNeg(),S=this.m.subn(1).iushrn(1),o=this.m.bitLength();for(o=new n(2*o*o).toRed(this);this.pow(o,S).cmp(T)!==0;)o.redIAdd(T);for(var A=this.pow(o,g),Y=this.pow(f,g.addn(1).iushrn(1)),j=this.pow(f,g),W=E;j.cmp(I)!==0;){for(var J=j,se=0;J.cmp(I)!==0;se++)J=J.redSqr();r(se<W);var Ee=this.pow(A,new n(1).iushln(W-se-1));Y=Y.redMul(Ee),A=Ee.redSqr(),j=j.redMul(A),W=se}return Y},Q.prototype.invm=function(f){var h=f._invmp(this.m);return h.negative!==0?(h.negative=0,this.imod(h).redNeg()):this.imod(h)},Q.prototype.pow=function(f,h){if(h.isZero())return new n(1).toRed(this);if(h.cmpn(1)===0)return f.clone();var p=4,g=new Array(1<<p);g[0]=new n(1).toRed(this),g[1]=f;for(var E=2;E<g.length;E++)g[E]=this.mul(g[E-1],f);var I=g[0],T=0,S=0,o=h.bitLength()%26;for(o===0&&(o=26),E=h.length-1;E>=0;E--){for(var A=h.words[E],Y=o-1;Y>=0;Y--){var j=A>>Y&1;if(I!==g[0]&&(I=this.sqr(I)),j===0&&T===0){S=0;continue}T<<=1,T|=j,S++,!(S!==p&&(E!==0||Y!==0))&&(I=this.mul(I,g[T]),S=0,T=0)}o=26}return I},Q.prototype.convertTo=function(f){var h=f.umod(this.m);return h===f?h.clone():h},Q.prototype.convertFrom=function(f){var h=f.clone();return h.red=null,h},n.mont=function(f){return new $(f)};function $(_){Q.call(this,_),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new n(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}a($,Q),$.prototype.convertTo=function(f){return this.imod(f.ushln(this.shift))},$.prototype.convertFrom=function(f){var h=this.imod(f.mul(this.rinv));return h.red=null,h},$.prototype.imul=function(f,h){if(f.isZero()||h.isZero())return f.words[0]=0,f.length=1,f;var p=f.imul(h),g=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),E=p.isub(g).iushrn(this.shift),I=E;return E.cmp(this.m)>=0?I=E.isub(this.m):E.cmpn(0)<0&&(I=E.iadd(this.m)),I._forceRed(this)},$.prototype.mul=function(f,h){if(f.isZero()||h.isZero())return new n(0)._forceRed(this);var p=f.mul(h),g=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),E=p.isub(g).iushrn(this.shift),I=E;return E.cmp(this.m)>=0?I=E.isub(this.m):E.cmpn(0)<0&&(I=E.iadd(this.m)),I._forceRed(this)},$.prototype.invm=function(f){var h=this.imod(f._invmp(this.m).mul(this.r2));return h._forceRed(this)}})(i,ke)})(Wi);var yt=Wi.exports,It=Af;function Af(i,e){if(!i)throw new Error(e||"Assertion failed")}Af.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)};var Yi={};(function(i){var e=i;function t(n,y){if(Array.isArray(n))return n.slice();if(!n)return[];var x=[];if(typeof n!="string"){for(var u=0;u<n.length;u++)x[u]=n[u]|0;return x}if(y==="hex"){n=n.replace(/[^a-z0-9]+/ig,""),n.length%2!==0&&(n="0"+n);for(var u=0;u<n.length;u+=2)x.push(parseInt(n[u]+n[u+1],16))}else for(var u=0;u<n.length;u++){var c=n.charCodeAt(u),d=c>>8,v=c&255;d?x.push(d,v):x.push(v)}return x}e.toArray=t;function r(n){return n.length===1?"0"+n:n}e.zero2=r;function a(n){for(var y="",x=0;x<n.length;x++)y+=r(n[x].toString(16));return y}e.toHex=a,e.encode=function(y,x){return x==="hex"?a(y):y}})(Yi);(function(i){var e=i,t=yt,r=It,a=Yi;e.assert=r,e.toArray=a.toArray,e.zero2=a.zero2,e.toHex=a.toHex,e.encode=a.encode;function n(d,v,b){var M=new Array(Math.max(d.bitLength(),b)+1),B;for(B=0;B<M.length;B+=1)M[B]=0;var R=1<<v+1,k=d.clone();for(B=0;B<M.length;B++){var q,F=k.andln(R-1);k.isOdd()?(F>(R>>1)-1?q=(R>>1)-F:q=F,k.isubn(q)):q=0,M[B]=q,k.iushrn(1)}return M}e.getNAF=n;function y(d,v){var b=[[],[]];d=d.clone(),v=v.clone();for(var M=0,B=0,R;d.cmpn(-M)>0||v.cmpn(-B)>0;){var k=d.andln(3)+M&3,q=v.andln(3)+B&3;k===3&&(k=-1),q===3&&(q=-1);var F;k&1?(R=d.andln(7)+M&7,(R===3||R===5)&&q===2?F=-k:F=k):F=0,b[0].push(F);var P;q&1?(R=v.andln(7)+B&7,(R===3||R===5)&&k===2?P=-q:P=q):P=0,b[1].push(P),2*M===F+1&&(M=1-M),2*B===P+1&&(B=1-B),d.iushrn(1),v.iushrn(1)}return b}e.getJSF=y;function x(d,v,b){var M="_"+v;d.prototype[v]=function(){return this[M]!==void 0?this[M]:this[M]=b.call(this)}}e.cachedProperty=x;function u(d){return typeof d=="string"?e.toArray(d,"hex"):d}e.parseBytes=u;function c(d){return new t(d,"hex","le")}e.intFromLE=c})(V0);var ji={exports:{}},gi;ji.exports=function(e){return gi||(gi=new _t(null)),gi.generate(e)};function _t(i){this.rand=i}ji.exports.Rand=_t;_t.prototype.generate=function(e){return this._rand(e)};_t.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r<t.length;r++)t[r]=this.rand.getByte();return t};if(typeof self=="object")self.crypto&&self.crypto.getRandomValues?_t.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?_t.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:typeof window=="object"&&(_t.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var Yn=wr;if(typeof Yn.randomBytes!="function")throw new Error("Not supported");_t.prototype._rand=function(e){return Yn.randomBytes(e)}}catch{}var Ef=ji.exports,Ki={},Ct=yt,fr=V0,mr=fr.getNAF,ms=fr.getJSF,_r=fr.assert;function wt(i,e){this.type=i,this.p=new Ct(e.p,16),this.red=e.prime?Ct.red(e.prime):Ct.mont(this.p),this.zero=new Ct(0).toRed(this.red),this.one=new Ct(1).toRed(this.red),this.two=new Ct(2).toRed(this.red),this.n=e.n&&new Ct(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.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 t=this.n&&this.p.div(this.n);!t||t.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var Cr=wt;wt.prototype.point=function(){throw new Error("Not implemented")};wt.prototype.validate=function(){throw new Error("Not implemented")};wt.prototype._fixedNafMul=function(e,t){_r(e.precomputed);var r=e._getDoubles(),a=mr(t,1,this._bitLength),n=(1<<r.step+1)-(r.step%2===0?2:1);n/=3;var y=[],x,u;for(x=0;x<a.length;x+=r.step){u=0;for(var c=x+r.step-1;c>=x;c--)u=(u<<1)+a[c];y.push(u)}for(var d=this.jpoint(null,null,null),v=this.jpoint(null,null,null),b=n;b>0;b--){for(x=0;x<y.length;x++)u=y[x],u===b?v=v.mixedAdd(r.points[x]):u===-b&&(v=v.mixedAdd(r.points[x].neg()));d=d.add(v)}return d.toP()};wt.prototype._wnafMul=function(e,t){var r=4,a=e._getNAFPoints(r);r=a.wnd;for(var n=a.points,y=mr(t,r,this._bitLength),x=this.jpoint(null,null,null),u=y.length-1;u>=0;u--){for(var c=0;u>=0&&y[u]===0;u--)c++;if(u>=0&&c++,x=x.dblp(c),u<0)break;var d=y[u];_r(d!==0),e.type==="affine"?d>0?x=x.mixedAdd(n[d-1>>1]):x=x.mixedAdd(n[-d-1>>1].neg()):d>0?x=x.add(n[d-1>>1]):x=x.add(n[-d-1>>1].neg())}return e.type==="affine"?x.toP():x};wt.prototype._wnafMulAdd=function(e,t,r,a,n){var y=this._wnafT1,x=this._wnafT2,u=this._wnafT3,c=0,d,v,b;for(d=0;d<a;d++){b=t[d];var M=b._getNAFPoints(e);y[d]=M.wnd,x[d]=M.points}for(d=a-1;d>=1;d-=2){var B=d-1,R=d;if(y[B]!==1||y[R]!==1){u[B]=mr(r[B],y[B],this._bitLength),u[R]=mr(r[R],y[R],this._bitLength),c=Math.max(u[B].length,c),c=Math.max(u[R].length,c);continue}var k=[t[B],null,null,t[R]];t[B].y.cmp(t[R].y)===0?(k[1]=t[B].add(t[R]),k[2]=t[B].toJ().mixedAdd(t[R].neg())):t[B].y.cmp(t[R].y.redNeg())===0?(k[1]=t[B].toJ().mixedAdd(t[R]),k[2]=t[B].add(t[R].neg())):(k[1]=t[B].toJ().mixedAdd(t[R]),k[2]=t[B].toJ().mixedAdd(t[R].neg()));var q=[-3,-1,-5,-7,0,7,5,1,3],F=ms(r[B],r[R]);for(c=Math.max(F[0].length,c),u[B]=new Array(c),u[R]=new Array(c),v=0;v<c;v++){var P=F[0][v]|0,O=F[1][v]|0;u[B][v]=q[(P+1)*3+(O+1)],u[R][v]=0,x[B]=k}}var H=this.jpoint(null,null,null),U=this._wnafT4;for(d=c;d>=0;d--){for(var K=0;d>=0;){var X=!0;for(v=0;v<a;v++)U[v]=u[v][d]|0,U[v]!==0&&(X=!1);if(!X)break;K++,d--}if(d>=0&&K++,H=H.dblp(K),d<0)break;for(v=0;v<a;v++){var Q=U[v];Q!==0&&(Q>0?b=x[v][Q-1>>1]:Q<0&&(b=x[v][-Q-1>>1].neg()),b.type==="affine"?H=H.mixedAdd(b):H=H.add(b))}}for(d=0;d<a;d++)x[d]=null;return n?H:H.toP()};function G0(i,e){this.curve=i,this.type=e,this.precomputed=null}wt.BasePoint=G0;G0.prototype.eq=function(){throw new Error("Not implemented")};G0.prototype.validate=function(){return this.curve.validate(this)};wt.prototype.decodePoint=function(e,t){e=fr.toArray(e,t);var r=this.p.byteLength();if((e[0]===4||e[0]===6||e[0]===7)&&e.length-1===2*r){e[0]===6?_r(e[e.length-1]%2===0):e[0]===7&&_r(e[e.length-1]%2===1);var a=this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));return a}else if((e[0]===2||e[0]===3)&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),e[0]===3);throw new Error("Unknown point format")};G0.prototype.encodeCompressed=function(e){return this.encode(e,!0)};G0.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))};G0.prototype.encode=function(e,t){return fr.encode(this._encode(t),e)};G0.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this};G0.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return t?t.points.length>=Math.ceil((e.bitLength()+1)/t.step):!1};G0.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],a=this,n=0;n<t;n+=e){for(var y=0;y<e;y++)a=a.dbl();r.push(a)}return{step:e,points:r}};G0.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,a=r===1?null:this.dbl(),n=1;n<r;n++)t[n]=t[n-1].add(a);return{wnd:e,points:t}};G0.prototype._getBeta=function(){return null};G0.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t};var Fi={exports:{}};typeof Object.create=="function"?Fi.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Fi.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}};var Mr=Fi.exports,_s=V0,g0=yt,Vi=Mr,Ht=Cr,As=_s.assert;function Q0(i){Ht.call(this,"short",i),this.a=new g0(i.a,16).toRed(this.red),this.b=new g0(i.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(i),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}Vi(Q0,Ht);var Es=Q0;Q0.prototype._getEndomorphism=function(e){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var t,r;if(e.beta)t=new g0(e.beta,16).toRed(this.red);else{var a=this._getEndoRoots(this.p);t=a[0].cmp(a[1])<0?a[0]:a[1],t=t.toRed(this.red)}if(e.lambda)r=new g0(e.lambda,16);else{var n=this._getEndoRoots(this.n);this.g.mul(n[0]).x.cmp(this.g.x.redMul(t))===0?r=n[0]:(r=n[1],As(this.g.mul(r).x.cmp(this.g.x.redMul(t))===0))}var y;return e.basis?y=e.basis.map(function(x){return{a:new g0(x.a,16),b:new g0(x.b,16)}}):y=this._getEndoBasis(r),{beta:t,lambda:r,basis:y}}};Q0.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:g0.mont(e),r=new g0(2).toRed(t).redInvm(),a=r.redNeg(),n=new g0(3).toRed(t).redNeg().redSqrt().redMul(r),y=a.redAdd(n).fromRed(),x=a.redSub(n).fromRed();return[y,x]};Q0.prototype._getEndoBasis=function(e){for(var t=this.n.ushrn(Math.floor(this.n.bitLength()/2)),r=e,a=this.n.clone(),n=new g0(1),y=new g0(0),x=new g0(0),u=new g0(1),c,d,v,b,M,B,R,k=0,q,F;r.cmpn(0)!==0;){var P=a.div(r);q=a.sub(P.mul(r)),F=x.sub(P.mul(n));var O=u.sub(P.mul(y));if(!v&&q.cmp(t)<0)c=R.neg(),d=n,v=q.neg(),b=F;else if(v&&++k===2)break;R=q,a=r,r=q,x=n,n=F,u=y,y=O}M=q.neg(),B=F;var H=v.sqr().add(b.sqr()),U=M.sqr().add(B.sqr());return U.cmp(H)>=0&&(M=c,B=d),v.negative&&(v=v.neg(),b=b.neg()),M.negative&&(M=M.neg(),B=B.neg()),[{a:v,b},{a:M,b:B}]};Q0.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],a=t[1],n=a.b.mul(e).divRound(this.n),y=r.b.neg().mul(e).divRound(this.n),x=n.mul(r.a),u=y.mul(a.a),c=n.mul(r.b),d=y.mul(a.b),v=e.sub(x).sub(u),b=c.add(d).neg();return{k1:v,k2:b}};Q0.prototype.pointFromX=function(e,t){e=new g0(e,16),e.red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),a=r.redSqrt();if(a.redSqr().redSub(r).cmp(this.zero)!==0)throw new Error("invalid point");var n=a.fromRed().isOdd();return(t&&!n||!t&&n)&&(a=a.redNeg()),this.point(e,a)};Q0.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,a=this.a.redMul(t),n=t.redSqr().redMul(t).redIAdd(a).redIAdd(this.b);return r.redSqr().redISub(n).cmpn(0)===0};Q0.prototype._endoWnafMulAdd=function(e,t,r){for(var a=this._endoWnafT1,n=this._endoWnafT2,y=0;y<e.length;y++){var x=this._endoSplit(t[y]),u=e[y],c=u._getBeta();x.k1.negative&&(x.k1.ineg(),u=u.neg(!0)),x.k2.negative&&(x.k2.ineg(),c=c.neg(!0)),a[y*2]=u,a[y*2+1]=c,n[y*2]=x.k1,n[y*2+1]=x.k2}for(var d=this._wnafMulAdd(1,a,n,y*2,r),v=0;v<y*2;v++)a[v]=null,n[v]=null;return d};function S0(i,e,t,r){Ht.BasePoint.call(this,i,"affine"),e===null&&t===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new g0(e,16),this.y=new g0(t,16),r&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}Vi(S0,Ht.BasePoint);Q0.prototype.point=function(e,t,r){return new S0(this,e,t,r)};Q0.prototype.pointFromJSON=function(e,t){return S0.fromJSON(this,e,t)};S0.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,a=function(n){return r.point(n.x.redMul(r.endo.beta),n.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(a)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(a)}}}return t}};S0.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]};S0.fromJSON=function(e,t,r){typeof t=="string"&&(t=JSON.parse(t));var a=e.point(t[0],t[1],r);if(!t[2])return a;function n(x){return e.point(x[0],x[1],r)}var y=t[2];return a.precomputed={beta:null,doubles:y.doubles&&{step:y.doubles.step,points:[a].concat(y.doubles.points.map(n))},naf:y.naf&&{wnd:y.naf.wnd,points:[a].concat(y.naf.points.map(n))}},a};S0.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"};S0.prototype.isInfinity=function(){return this.inf};S0.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(this.x.cmp(e.x)===0)return this.curve.point(null,null);var t=this.y.redSub(e.y);t.cmpn(0)!==0&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),a=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,a)};S0.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(e.cmpn(0)===0)return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),a=e.redInvm(),n=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(a),y=n.redSqr().redISub(this.x.redAdd(this.x)),x=n.redMul(this.x.redSub(y)).redISub(this.y);return this.curve.point(y,x)};S0.prototype.getX=function(){return this.x.fromRed()};S0.prototype.getY=function(){return this.y.fromRed()};S0.prototype.mul=function(e){return e=new g0(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)};S0.prototype.mulAdd=function(e,t,r){var a=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(a,n):this.curve._wnafMulAdd(1,a,n,2)};S0.prototype.jmulAdd=function(e,t,r){var a=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(a,n,!0):this.curve._wnafMulAdd(1,a,n,2,!0)};S0.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||this.x.cmp(e.x)===0&&this.y.cmp(e.y)===0)};S0.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,a=function(n){return n.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(a)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(a)}}}return t};S0.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var e=this.curve.jpoint(this.x,this.y,this.curve.one);return e};function k0(i,e,t,r){Ht.BasePoint.call(this,i,"jacobian"),e===null&&t===null&&r===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new g0(0)):(this.x=new g0(e,16),this.y=new g0(t,16),this.z=new g0(r,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}Vi(k0,Ht.BasePoint);Q0.prototype.jpoint=function(e,t,r){return new k0(this,e,t,r)};k0.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),a=this.y.redMul(t).redMul(e);return this.curve.point(r,a)};k0.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};k0.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),a=this.x.redMul(t),n=e.x.redMul(r),y=this.y.redMul(t.redMul(e.z)),x=e.y.redMul(r.redMul(this.z)),u=a.redSub(n),c=y.redSub(x);if(u.cmpn(0)===0)return c.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var d=u.redSqr(),v=d.redMul(u),b=a.redMul(d),M=c.redSqr().redIAdd(v).redISub(b).redISub(b),B=c.redMul(b.redISub(M)).redISub(y.redMul(v)),R=this.z.redMul(e.z).redMul(u);return this.curve.jpoint(M,B,R)};k0.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,a=e.x.redMul(t),n=this.y,y=e.y.redMul(t).redMul(this.z),x=r.redSub(a),u=n.redSub(y);if(x.cmpn(0)===0)return u.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var c=x.redSqr(),d=c.redMul(x),v=r.redMul(c),b=u.redSqr().redIAdd(d).redISub(v).redISub(v),M=u.redMul(v.redISub(b)).redISub(n.redMul(d)),B=this.z.redMul(x);return this.curve.jpoint(b,M,B)};k0.prototype.dblp=function(e){if(e===0)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var r=this;for(t=0;t<e;t++)r=r.dbl();return r}var a=this.curve.a,n=this.curve.tinv,y=this.x,x=this.y,u=this.z,c=u.redSqr().redSqr(),d=x.redAdd(x);for(t=0;t<e;t++){var v=y.redSqr(),b=d.redSqr(),M=b.redSqr(),B=v.redAdd(v).redIAdd(v).redIAdd(a.redMul(c)),R=y.redMul(b),k=B.redSqr().redISub(R.redAdd(R)),q=R.redISub(k),F=B.redMul(q);F=F.redIAdd(F).redISub(M);var P=d.redMul(u);t+1<e&&(c=c.redMul(M)),y=k,u=P,d=F}return this.curve.jpoint(y,d.redMul(n),u)};k0.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()};k0.prototype._zeroDbl=function(){var e,t,r;if(this.zOne){var a=this.x.redSqr(),n=this.y.redSqr(),y=n.redSqr(),x=this.x.redAdd(n).redSqr().redISub(a).redISub(y);x=x.redIAdd(x);var u=a.redAdd(a).redIAdd(a),c=u.redSqr().redISub(x).redISub(x),d=y.redIAdd(y);d=d.redIAdd(d),d=d.redIAdd(d),e=c,t=u.redMul(x.redISub(c)).redISub(d),r=this.y.redAdd(this.y)}else{var v=this.x.redSqr(),b=this.y.redSqr(),M=b.redSqr(),B=this.x.redAdd(b).redSqr().redISub(v).redISub(M);B=B.redIAdd(B);var R=v.redAdd(v).redIAdd(v),k=R.redSqr(),q=M.redIAdd(M);q=q.redIAdd(q),q=q.redIAdd(q),e=k.redISub(B).redISub(B),t=R.redMul(B.redISub(e)).redISub(q),r=this.y.redMul(this.z),r=r.redIAdd(r)}return this.curve.jpoint(e,t,r)};k0.prototype._threeDbl=function(){var e,t,r;if(this.zOne){var a=this.x.redSqr(),n=this.y.redSqr(),y=n.redSqr(),x=this.x.redAdd(n).redSqr().redISub(a).redISub(y);x=x.redIAdd(x);var u=a.redAdd(a).redIAdd(a).redIAdd(this.curve.a),c=u.redSqr().redISub(x).redISub(x);e=c;var d=y.redIAdd(y);d=d.redIAdd(d),d=d.redIAdd(d),t=u.redMul(x.redISub(c)).redISub(d),r=this.y.redAdd(this.y)}else{var v=this.z.redSqr(),b=this.y.redSqr(),M=this.x.redMul(b),B=this.x.redSub(v).redMul(this.x.redAdd(v));B=B.redAdd(B).redIAdd(B);var R=M.redIAdd(M);R=R.redIAdd(R);var k=R.redAdd(R);e=B.redSqr().redISub(k),r=this.y.redAdd(this.z).redSqr().redISub(b).redISub(v);var q=b.redSqr();q=q.redIAdd(q),q=q.redIAdd(q),q=q.redIAdd(q),t=B.redMul(R.redISub(e)).redISub(q)}return this.curve.jpoint(e,t,r)};k0.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,a=this.z,n=a.redSqr().redSqr(),y=t.redSqr(),x=r.redSqr(),u=y.redAdd(y).redIAdd(y).redIAdd(e.redMul(n)),c=t.redAdd(t);c=c.redIAdd(c);var d=c.redMul(x),v=u.redSqr().redISub(d.redAdd(d)),b=d.redISub(v),M=x.redSqr();M=M.redIAdd(M),M=M.redIAdd(M),M=M.redIAdd(M);var B=u.redMul(b).redISub(M),R=r.redAdd(r).redMul(a);return this.curve.jpoint(v,B,R)};k0.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),a=t.redSqr(),n=e.redAdd(e).redIAdd(e),y=n.redSqr(),x=this.x.redAdd(t).redSqr().redISub(e).redISub(a);x=x.redIAdd(x),x=x.redAdd(x).redIAdd(x),x=x.redISub(y);var u=x.redSqr(),c=a.redIAdd(a);c=c.redIAdd(c),c=c.redIAdd(c),c=c.redIAdd(c);var d=n.redIAdd(x).redSqr().redISub(y).redISub(u).redISub(c),v=t.redMul(d);v=v.redIAdd(v),v=v.redIAdd(v);var b=this.x.redMul(u).redISub(v);b=b.redIAdd(b),b=b.redIAdd(b);var M=this.y.redMul(d.redMul(c.redISub(d)).redISub(x.redMul(u)));M=M.redIAdd(M),M=M.redIAdd(M),M=M.redIAdd(M);var B=this.z.redAdd(x).redSqr().redISub(r).redISub(u);return this.curve.jpoint(b,M,B)};k0.prototype.mul=function(e,t){return e=new g0(e,t),this.curve._wnafMul(this,e)};k0.prototype.eq=function(e){if(e.type==="affine")return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0)!==0)return!1;var a=t.redMul(this.z),n=r.redMul(e.z);return this.y.redMul(n).redISub(e.y.redMul(a)).cmpn(0)===0};k0.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(this.x.cmp(r)===0)return!0;for(var a=e.clone(),n=this.curve.redN.redMul(t);;){if(a.iadd(this.curve.n),a.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(n),this.x.cmp(r)===0)return!0}};k0.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"};k0.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var zt=yt,wf=Mr,Sr=Cr,ws=V0;function Ut(i){Sr.call(this,"mont",i),this.a=new zt(i.a,16).toRed(this.red),this.b=new zt(i.b,16).toRed(this.red),this.i4=new zt(4).toRed(this.red).redInvm(),this.two=new zt(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}wf(Ut,Sr);var Bs=Ut;Ut.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),a=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t),n=a.redSqrt();return n.redSqr().cmp(a)===0};function C0(i,e,t){Sr.BasePoint.call(this,i,"projective"),e===null&&t===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new zt(e,16),this.z=new zt(t,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}wf(C0,Sr.BasePoint);Ut.prototype.decodePoint=function(e,t){return this.point(ws.toArray(e,t),1)};Ut.prototype.point=function(e,t){return new C0(this,e,t)};Ut.prototype.pointFromJSON=function(e){return C0.fromJSON(this,e)};C0.prototype.precompute=function(){};C0.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};C0.fromJSON=function(e,t){return new C0(e,t[0],t[1]||e.one)};C0.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"};C0.prototype.isInfinity=function(){return this.z.cmpn(0)===0};C0.prototype.dbl=function(){var e=this.x.redAdd(this.z),t=e.redSqr(),r=this.x.redSub(this.z),a=r.redSqr(),n=t.redSub(a),y=t.redMul(a),x=n.redMul(a.redAdd(this.curve.a24.redMul(n)));return this.curve.point(y,x)};C0.prototype.add=function(){throw new Error("Not supported on Montgomery curve")};C0.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),a=this.x.redSub(this.z),n=e.x.redAdd(e.z),y=e.x.redSub(e.z),x=y.redMul(r),u=n.redMul(a),c=t.z.redMul(x.redAdd(u).redSqr()),d=t.x.redMul(x.redISub(u).redSqr());return this.curve.point(c,d)};C0.prototype.mul=function(e){for(var t=e.clone(),r=this,a=this.curve.point(null,null),n=this,y=[];t.cmpn(0)!==0;t.iushrn(1))y.push(t.andln(1));for(var x=y.length-1;x>=0;x--)y[x]===0?(r=r.diffAdd(a,n),a=a.dbl()):(a=r.diffAdd(a,n),r=r.dbl());return a};C0.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")};C0.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")};C0.prototype.eq=function(e){return this.getX().cmp(e.getX())===0};C0.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};C0.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var Cs=V0,xt=yt,Bf=Mr,Dr=Cr,Ms=Cs.assert;function ut(i){this.twisted=(i.a|0)!==1,this.mOneA=this.twisted&&(i.a|0)===-1,this.extended=this.mOneA,Dr.call(this,"edwards",i),this.a=new xt(i.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new xt(i.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new xt(i.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),Ms(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(i.c|0)===1}Bf(ut,Dr);var Ss=ut;ut.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)};ut.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)};ut.prototype.jpoint=function(e,t,r,a){return this.point(e,t,r,a)};ut.prototype.pointFromX=function(e,t){e=new xt(e,16),e.red||(e=e.toRed(this.red));var r=e.redSqr(),a=this.c2.redSub(this.a.redMul(r)),n=this.one.redSub(this.c2.redMul(this.d).redMul(r)),y=a.redMul(n.redInvm()),x=y.redSqrt();if(x.redSqr().redSub(y).cmp(this.zero)!==0)throw new Error("invalid point");var u=x.fromRed().isOdd();return(t&&!u||!t&&u)&&(x=x.redNeg()),this.point(e,x)};ut.prototype.pointFromY=function(e,t){e=new xt(e,16),e.red||(e=e.toRed(this.red));var r=e.redSqr(),a=r.redSub(this.c2),n=r.redMul(this.d).redMul(this.c2).redSub(this.a),y=a.redMul(n.redInvm());if(y.cmp(this.zero)===0){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var x=y.redSqrt();if(x.redSqr().redSub(y).cmp(this.zero)!==0)throw new Error("invalid point");return x.fromRed().isOdd()!==t&&(x=x.redNeg()),this.point(x,e)};ut.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),a=t.redMul(this.a).redAdd(r),n=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return a.cmp(n)===0};function v0(i,e,t,r,a){Dr.BasePoint.call(this,i,"projective"),e===null&&t===null&&r===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 xt(e,16),this.y=new xt(t,16),this.z=r?new xt(r,16):this.curve.one,this.t=a&&new xt(a,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()))))}Bf(v0,Dr.BasePoint);ut.prototype.pointFromJSON=function(e){return v0.fromJSON(this,e)};ut.prototype.point=function(e,t,r,a){return new v0(this,e,t,r,a)};v0.fromJSON=function(e,t){return new v0(e,t[0],t[1],t[2])};v0.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"};v0.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};v0.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var a=this.curve._mulA(e),n=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),y=a.redAdd(t),x=y.redSub(r),u=a.redSub(t),c=n.redMul(x),d=y.redMul(u),v=n.redMul(u),b=x.redMul(y);return this.curve.point(c,d,b,v)};v0.prototype._projDbl=function(){var e=this.x.redAdd(this.y).redSqr(),t=this.x.redSqr(),r=this.y.redSqr(),a,n,y,x,u,c;if(this.curve.twisted){x=this.curve._mulA(t);var d=x.redAdd(r);this.zOne?(a=e.redSub(t).redSub(r).redMul(d.redSub(this.curve.two)),n=d.redMul(x.redSub(r)),y=d.redSqr().redSub(d).redSub(d)):(u=this.z.redSqr(),c=d.redSub(u).redISub(u),a=e.redSub(t).redISub(r).redMul(c),n=d.redMul(x.redSub(r)),y=d.redMul(c))}else x=t.redAdd(r),u=this.curve._mulC(this.z).redSqr(),c=x.redSub(u).redSub(u),a=this.curve._mulC(e.redISub(x)).redMul(c),n=this.curve._mulC(x).redMul(t.redISub(r)),y=x.redMul(c);return this.curve.point(a,n,y)};v0.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};v0.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),a=this.t.redMul(this.curve.dd).redMul(e.t),n=this.z.redMul(e.z.redAdd(e.z)),y=r.redSub(t),x=n.redSub(a),u=n.redAdd(a),c=r.redAdd(t),d=y.redMul(x),v=u.redMul(c),b=y.redMul(c),M=x.redMul(u);return this.curve.point(d,v,M,b)};v0.prototype._projAdd=function(e){var t=this.z.redMul(e.z),r=t.redSqr(),a=this.x.redMul(e.x),n=this.y.redMul(e.y),y=this.curve.d.redMul(a).redMul(n),x=r.redSub(y),u=r.redAdd(y),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(a).redISub(n),d=t.redMul(x).redMul(c),v,b;return this.curve.twisted?(v=t.redMul(u).redMul(n.redSub(this.curve._mulA(a))),b=x.redMul(u)):(v=t.redMul(u).redMul(n.redSub(a)),b=this.curve._mulC(x).redMul(u)),this.curve.point(d,v,b)};v0.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)};v0.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)};v0.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)};v0.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)};v0.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this};v0.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};v0.prototype.getX=function(){return this.normalize(),this.x.fromRed()};v0.prototype.getY=function(){return this.normalize(),this.y.fromRed()};v0.prototype.eq=function(e){return this===e||this.getX().cmp(e.getX())===0&&this.getY().cmp(e.getY())===0};v0.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(t)===0)return!0;for(var r=e.clone(),a=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(a),this.x.cmp(t)===0)return!0}};v0.prototype.toP=v0.prototype.normalize;v0.prototype.mixedAdd=v0.prototype.add;(function(i){var e=i;e.base=Cr,e.short=Es,e.mont=Bs,e.edwards=Ss})(Ki);var Fr={},Rr={},$e={},Ds=It,Fs=Mr;$e.inherits=Fs;function Rs(i,e){return(i.charCodeAt(e)&64512)!==55296||e<0||e+1>=i.length?!1:(i.charCodeAt(e+1)&64512)===56320}function ks(i,e){if(Array.isArray(i))return i.slice();if(!i)return[];var t=[];if(typeof i=="string")if(e){if(e==="hex")for(i=i.replace(/[^a-z0-9]+/ig,""),i.length%2!==0&&(i="0"+i),a=0;a<i.length;a+=2)t.push(parseInt(i[a]+i[a+1],16))}else for(var r=0,a=0;a<i.length;a++){var n=i.charCodeAt(a);n<128?t[r++]=n:n<2048?(t[r++]=n>>6|192,t[r++]=n&63|128):Rs(i,a)?(n=65536+((n&1023)<<10)+(i.charCodeAt(++a)&1023),t[r++]=n>>18|240,t[r++]=n>>12&63|128,t[r++]=n>>6&63|128,t[r++]=n&63|128):(t[r++]=n>>12|224,t[r++]=n>>6&63|128,t[r++]=n&63|128)}else for(a=0;a<i.length;a++)t[a]=i[a]|0;return t}$e.toArray=ks;function Ps(i){for(var e="",t=0;t<i.length;t++)e+=Mf(i[t].toString(16));return e}$e.toHex=Ps;function Cf(i){var e=i>>>24|i>>>8&65280|i<<8&16711680|(i&255)<<24;return e>>>0}$e.htonl=Cf;function Is(i,e){for(var t="",r=0;r<i.length;r++){var a=i[r];e==="little"&&(a=Cf(a)),t+=Sf(a.toString(16))}return t}$e.toHex32=Is;function Mf(i){return i.length===1?"0"+i:i}$e.zero2=Mf;function Sf(i){return i.length===7?"0"+i:i.length===6?"00"+i:i.length===5?"000"+i:i.length===4?"0000"+i:i.length===3?"00000"+i:i.length===2?"000000"+i:i.length===1?"0000000"+i:i}$e.zero8=Sf;function Ts(i,e,t,r){var a=t-e;Ds(a%4===0);for(var n=new Array(a/4),y=0,x=e;y<n.length;y++,x+=4){var u;r==="big"?u=i[x]<<24|i[x+1]<<16|i[x+2]<<8|i[x+3]:u=i[x+3]<<24|i[x+2]<<16|i[x+1]<<8|i[x],n[y]=u>>>0}return n}$e.join32=Ts;function Os(i,e){for(var t=new Array(i.length*4),r=0,a=0;r<i.length;r++,a+=4){var n=i[r];e==="big"?(t[a]=n>>>24,t[a+1]=n>>>16&255,t[a+2]=n>>>8&255,t[a+3]=n&255):(t[a+3]=n>>>24,t[a+2]=n>>>16&255,t[a+1]=n>>>8&255,t[a]=n&255)}return t}$e.split32=Os;function zs(i,e){return i>>>e|i<<32-e}$e.rotr32=zs;function Ns(i,e){return i<<e|i>>>32-e}$e.rotl32=Ns;function qs(i,e){return i+e>>>0}$e.sum32=qs;function Ls(i,e,t){return i+e+t>>>0}$e.sum32_3=Ls;function $s(i,e,t,r){return i+e+t+r>>>0}$e.sum32_4=$s;function Hs(i,e,t,r,a){return i+e+t+r+a>>>0}$e.sum32_5=Hs;function Us(i,e,t,r){var a=i[e],n=i[e+1],y=r+n>>>0,x=(y<r?1:0)+t+a;i[e]=x>>>0,i[e+1]=y}$e.sum64=Us;function Ws(i,e,t,r){var a=e+r>>>0,n=(a<e?1:0)+i+t;return n>>>0}$e.sum64_hi=Ws;function Ys(i,e,t,r){var a=e+r;return a>>>0}$e.sum64_lo=Ys;function js(i,e,t,r,a,n,y,x){var u=0,c=e;c=c+r>>>0,u+=c<e?1:0,c=c+n>>>0,u+=c<n?1:0,c=c+x>>>0,u+=c<x?1:0;var d=i+t+a+y+u;return d>>>0}$e.sum64_4_hi=js;function Ks(i,e,t,r,a,n,y,x){var u=e+r+n+x;return u>>>0}$e.sum64_4_lo=Ks;function Vs(i,e,t,r,a,n,y,x,u,c){var d=0,v=e;v=v+r>>>0,d+=v<e?1:0,v=v+n>>>0,d+=v<n?1:0,v=v+x>>>0,d+=v<x?1:0,v=v+c>>>0,d+=v<c?1:0;var b=i+t+a+y+u+d;return b>>>0}$e.sum64_5_hi=Vs;function Xs(i,e,t,r,a,n,y,x,u,c){var d=e+r+n+x+c;return d>>>0}$e.sum64_5_lo=Xs;function Zs(i,e,t){var r=e<<32-t|i>>>t;return r>>>0}$e.rotr64_hi=Zs;function Gs(i,e,t){var r=i<<32-t|e>>>t;return r>>>0}$e.rotr64_lo=Gs;function Qs(i,e,t){return i>>>t}$e.shr64_hi=Qs;function Js(i,e,t){var r=i<<32-t|e>>>t;return r>>>0}$e.shr64_lo=Js;var Wt={},jn=$e,eo=It;function kr(){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}Wt.BlockHash=kr;kr.prototype.update=function(e,t){if(e=jn.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){e=this.pending;var r=e.length%this._delta8;this.pending=e.slice(e.length-r,e.length),this.pending.length===0&&(this.pending=null),e=jn.join32(e,0,e.length-r,this.endian);for(var a=0;a<e.length;a+=this._delta32)this._update(e,a,a+this._delta32)}return this};kr.prototype.digest=function(e){return this.update(this._pad()),eo(this.pending===null),this._digest(e)};kr.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,a=new Array(r+this.padLength);a[0]=128;for(var n=1;n<r;n++)a[n]=0;if(e<<=3,this.endian==="big"){for(var y=8;y<this.padLength;y++)a[n++]=0;a[n++]=0,a[n++]=0,a[n++]=0,a[n++]=0,a[n++]=e>>>24&255,a[n++]=e>>>16&255,a[n++]=e>>>8&255,a[n++]=e&255}else for(a[n++]=e&255,a[n++]=e>>>8&255,a[n++]=e>>>16&255,a[n++]=e>>>24&255,a[n++]=0,a[n++]=0,a[n++]=0,a[n++]=0,y=8;y<this.padLength;y++)a[n++]=0;return a};var Yt={},lt={},to=$e,nt=to.rotr32;function ro(i,e,t,r){if(i===0)return Df(e,t,r);if(i===1||i===3)return Rf(e,t,r);if(i===2)return Ff(e,t,r)}lt.ft_1=ro;function Df(i,e,t){return i&e^~i&t}lt.ch32=Df;function Ff(i,e,t){return i&e^i&t^e&t}lt.maj32=Ff;function Rf(i,e,t){return i^e^t}lt.p32=Rf;function io(i){return nt(i,2)^nt(i,13)^nt(i,22)}lt.s0_256=io;function no(i){return nt(i,6)^nt(i,11)^nt(i,25)}lt.s1_256=no;function fo(i){return nt(i,7)^nt(i,18)^i>>>3}lt.g0_256=fo;function ao(i){return nt(i,17)^nt(i,19)^i>>>10}lt.g1_256=ao;var Nt=$e,so=Wt,oo=lt,mi=Nt.rotl32,Gt=Nt.sum32,co=Nt.sum32_5,ho=oo.ft_1,kf=so.BlockHash,uo=[1518500249,1859775393,2400959708,3395469782];function ot(){if(!(this instanceof ot))return new ot;kf.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}Nt.inherits(ot,kf);var lo=ot;ot.blockSize=512;ot.outSize=160;ot.hmacStrength=80;ot.padLength=64;ot.prototype._update=function(e,t){for(var r=this.W,a=0;a<16;a++)r[a]=e[t+a];for(;a<r.length;a++)r[a]=mi(r[a-3]^r[a-8]^r[a-14]^r[a-16],1);var n=this.h[0],y=this.h[1],x=this.h[2],u=this.h[3],c=this.h[4];for(a=0;a<r.length;a++){var d=~~(a/20),v=co(mi(n,5),ho(d,y,x,u),c,r[a],uo[d]);c=u,u=x,x=mi(y,30),y=n,n=v}this.h[0]=Gt(this.h[0],n),this.h[1]=Gt(this.h[1],y),this.h[2]=Gt(this.h[2],x),this.h[3]=Gt(this.h[3],u),this.h[4]=Gt(this.h[4],c)};ot.prototype._digest=function(e){return e==="hex"?Nt.toHex32(this.h,"big"):Nt.split32(this.h,"big")};var qt=$e,xo=Wt,jt=lt,vo=It,et=qt.sum32,bo=qt.sum32_4,po=qt.sum32_5,yo=jt.ch32,go=jt.maj32,mo=jt.s0_256,_o=jt.s1_256,Ao=jt.g0_256,Eo=jt.g1_256,Pf=xo.BlockHash,wo=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function ct(){if(!(this instanceof ct))return new ct;Pf.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=wo,this.W=new Array(64)}qt.inherits(ct,Pf);var If=ct;ct.blockSize=512;ct.outSize=256;ct.hmacStrength=192;ct.padLength=64;ct.prototype._update=function(e,t){for(var r=this.W,a=0;a<16;a++)r[a]=e[t+a];for(;a<r.length;a++)r[a]=bo(Eo(r[a-2]),r[a-7],Ao(r[a-15]),r[a-16]);var n=this.h[0],y=this.h[1],x=this.h[2],u=this.h[3],c=this.h[4],d=this.h[5],v=this.h[6],b=this.h[7];for(vo(this.k.length===r.length),a=0;a<r.length;a++){var M=po(b,_o(c),yo(c,d,v),this.k[a],r[a]),B=et(mo(n),go(n,y,x));b=v,v=d,d=c,c=et(u,M),u=x,x=y,y=n,n=et(M,B)}this.h[0]=et(this.h[0],n),this.h[1]=et(this.h[1],y),this.h[2]=et(this.h[2],x),this.h[3]=et(this.h[3],u),this.h[4]=et(this.h[4],c),this.h[5]=et(this.h[5],d),this.h[6]=et(this.h[6],v),this.h[7]=et(this.h[7],b)};ct.prototype._digest=function(e){return e==="hex"?qt.toHex32(this.h,"big"):qt.split32(this.h,"big")};var Ri=$e,Tf=If;function bt(){if(!(this instanceof bt))return new bt;Tf.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}Ri.inherits(bt,Tf);var Bo=bt;bt.blockSize=512;bt.outSize=224;bt.hmacStrength=192;bt.padLength=64;bt.prototype._digest=function(e){return e==="hex"?Ri.toHex32(this.h.slice(0,7),"big"):Ri.split32(this.h.slice(0,7),"big")};var U0=$e,Co=Wt,Mo=It,ft=U0.rotr64_hi,at=U0.rotr64_lo,Of=U0.shr64_hi,zf=U0.shr64_lo,mt=U0.sum64,_i=U0.sum64_hi,Ai=U0.sum64_lo,So=U0.sum64_4_hi,Do=U0.sum64_4_lo,Fo=U0.sum64_5_hi,Ro=U0.sum64_5_lo,Nf=Co.BlockHash,ko=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function rt(){if(!(this instanceof rt))return new rt;Nf.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=ko,this.W=new Array(160)}U0.inherits(rt,Nf);var qf=rt;rt.blockSize=1024;rt.outSize=512;rt.hmacStrength=192;rt.padLength=128;rt.prototype._prepareBlock=function(e,t){for(var r=this.W,a=0;a<32;a++)r[a]=e[t+a];for(;a<r.length;a+=2){var n=Uo(r[a-4],r[a-3]),y=Wo(r[a-4],r[a-3]),x=r[a-14],u=r[a-13],c=$o(r[a-30],r[a-29]),d=Ho(r[a-30],r[a-29]),v=r[a-32],b=r[a-31];r[a]=So(n,y,x,u,c,d,v,b),r[a+1]=Do(n,y,x,u,c,d,v,b)}};rt.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,a=this.h[0],n=this.h[1],y=this.h[2],x=this.h[3],u=this.h[4],c=this.h[5],d=this.h[6],v=this.h[7],b=this.h[8],M=this.h[9],B=this.h[10],R=this.h[11],k=this.h[12],q=this.h[13],F=this.h[14],P=this.h[15];Mo(this.k.length===r.length);for(var O=0;O<r.length;O+=2){var H=F,U=P,K=qo(b,M),X=Lo(b,M),Q=Po(b,M,B,R,k),$=Io(b,M,B,R,k,q),_=this.k[O],f=this.k[O+1],h=r[O],p=r[O+1],g=Fo(H,U,K,X,Q,$,_,f,h,p),E=Ro(H,U,K,X,Q,$,_,f,h,p);H=zo(a,n),U=No(a,n),K=To(a,n,y,x,u),X=Oo(a,n,y,x,u,c);var I=_i(H,U,K,X),T=Ai(H,U,K,X);F=k,P=q,k=B,q=R,B=b,R=M,b=_i(d,v,g,E),M=Ai(v,v,g,E),d=u,v=c,u=y,c=x,y=a,x=n,a=_i(g,E,I,T),n=Ai(g,E,I,T)}mt(this.h,0,a,n),mt(this.h,2,y,x),mt(this.h,4,u,c),mt(this.h,6,d,v),mt(this.h,8,b,M),mt(this.h,10,B,R),mt(this.h,12,k,q),mt(this.h,14,F,P)};rt.prototype._digest=function(e){return e==="hex"?U0.toHex32(this.h,"big"):U0.split32(this.h,"big")};function Po(i,e,t,r,a){var n=i&t^~i&a;return n<0&&(n+=4294967296),n}function Io(i,e,t,r,a,n){var y=e&r^~e&n;return y<0&&(y+=4294967296),y}function To(i,e,t,r,a){var n=i&t^i&a^t&a;return n<0&&(n+=4294967296),n}function Oo(i,e,t,r,a,n){var y=e&r^e&n^r&n;return y<0&&(y+=4294967296),y}function zo(i,e){var t=ft(i,e,28),r=ft(e,i,2),a=ft(e,i,7),n=t^r^a;return n<0&&(n+=4294967296),n}function No(i,e){var t=at(i,e,28),r=at(e,i,2),a=at(e,i,7),n=t^r^a;return n<0&&(n+=4294967296),n}function qo(i,e){var t=ft(i,e,14),r=ft(i,e,18),a=ft(e,i,9),n=t^r^a;return n<0&&(n+=4294967296),n}function Lo(i,e){var t=at(i,e,14),r=at(i,e,18),a=at(e,i,9),n=t^r^a;return n<0&&(n+=4294967296),n}function $o(i,e){var t=ft(i,e,1),r=ft(i,e,8),a=Of(i,e,7),n=t^r^a;return n<0&&(n+=4294967296),n}function Ho(i,e){var t=at(i,e,1),r=at(i,e,8),a=zf(i,e,7),n=t^r^a;return n<0&&(n+=4294967296),n}function Uo(i,e){var t=ft(i,e,19),r=ft(e,i,29),a=Of(i,e,6),n=t^r^a;return n<0&&(n+=4294967296),n}function Wo(i,e){var t=at(i,e,19),r=at(e,i,29),a=zf(i,e,6),n=t^r^a;return n<0&&(n+=4294967296),n}var ki=$e,Lf=qf;function pt(){if(!(this instanceof pt))return new pt;Lf.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}ki.inherits(pt,Lf);var Yo=pt;pt.blockSize=1024;pt.outSize=384;pt.hmacStrength=192;pt.padLength=128;pt.prototype._digest=function(e){return e==="hex"?ki.toHex32(this.h.slice(0,12),"big"):ki.split32(this.h.slice(0,12),"big")};Yt.sha1=lo;Yt.sha224=Bo;Yt.sha256=If;Yt.sha384=Yo;Yt.sha512=qf;var $f={},Rt=$e,jo=Wt,sr=Rt.rotl32,Kn=Rt.sum32,Qt=Rt.sum32_3,Vn=Rt.sum32_4,Hf=jo.BlockHash;function dt(){if(!(this instanceof dt))return new dt;Hf.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}Rt.inherits(dt,Hf);$f.ripemd160=dt;dt.blockSize=512;dt.outSize=160;dt.hmacStrength=192;dt.padLength=64;dt.prototype._update=function(e,t){for(var r=this.h[0],a=this.h[1],n=this.h[2],y=this.h[3],x=this.h[4],u=r,c=a,d=n,v=y,b=x,M=0;M<80;M++){var B=Kn(sr(Vn(r,Xn(M,a,n,y),e[Xo[M]+t],Ko(M)),Go[M]),x);r=x,x=y,y=sr(n,10),n=a,a=B,B=Kn(sr(Vn(u,Xn(79-M,c,d,v),e[Zo[M]+t],Vo(M)),Qo[M]),b),u=b,b=v,v=sr(d,10),d=c,c=B}B=Qt(this.h[1],n,v),this.h[1]=Qt(this.h[2],y,b),this.h[2]=Qt(this.h[3],x,u),this.h[3]=Qt(this.h[4],r,c),this.h[4]=Qt(this.h[0],a,d),this.h[0]=B};dt.prototype._digest=function(e){return e==="hex"?Rt.toHex32(this.h,"little"):Rt.split32(this.h,"little")};function Xn(i,e,t,r){return i<=15?e^t^r:i<=31?e&t|~e&r:i<=47?(e|~t)^r:i<=63?e&r|t&~r:e^(t|~r)}function Ko(i){return i<=15?0:i<=31?1518500249:i<=47?1859775393:i<=63?2400959708:2840853838}function Vo(i){return i<=15?1352829926:i<=31?1548603684:i<=47?1836072691:i<=63?2053994217:0}var Xo=[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],Zo=[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],Go=[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],Qo=[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],Jo=$e,ec=It;function Lt(i,e,t){if(!(this instanceof Lt))return new Lt(i,e,t);this.Hash=i,this.blockSize=i.blockSize/8,this.outSize=i.outSize/8,this.inner=null,this.outer=null,this._init(Jo.toArray(e,t))}var tc=Lt;Lt.prototype._init=function(e){e.length>this.blockSize&&(e=new this.Hash().update(e).digest()),ec(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=new this.Hash().update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=new this.Hash().update(e)};Lt.prototype.update=function(e,t){return this.inner.update(e,t),this};Lt.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)};(function(i){var e=i;e.utils=$e,e.common=Wt,e.sha=Yt,e.ripemd=$f,e.hmac=tc,e.sha1=e.sha.sha1,e.sha256=e.sha.sha256,e.sha224=e.sha.sha224,e.sha384=e.sha.sha384,e.sha512=e.sha.sha512,e.ripemd160=e.ripemd.ripemd160})(Rr);var Ei,Zn;function rc(){return Zn||(Zn=1,Ei={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}),Ei}(function(i){var e=i,t=Rr,r=Ki,a=V0,n=a.assert;function y(c){c.type==="short"?this.curve=new r.short(c):c.type==="edwards"?this.curve=new r.edwards(c):this.curve=new r.mont(c),this.g=this.curve.g,this.n=this.curve.n,this.hash=c.hash,n(this.g.validate(),"Invalid curve"),n(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}e.PresetCurve=y;function x(c,d){Object.defineProperty(e,c,{configurable:!0,enumerable:!0,get:function(){var v=new y(d);return Object.defineProperty(e,c,{configurable:!0,enumerable:!0,value:v}),v}})}x("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:t.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),x("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:t.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),x("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:t.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),x("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:t.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),x("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:t.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),x("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:t.sha256,gRed:!1,g:["9"]}),x("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:t.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var u;try{u=rc()}catch{u=void 0}x("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:t.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",u]})})(Fr);var ic=Rr,St=Yi,Uf=It;function At(i){if(!(this instanceof At))return new At(i);this.hash=i.hash,this.predResist=!!i.predResist,this.outLen=this.hash.outSize,this.minEntropy=i.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=St.toArray(i.entropy,i.entropyEnc||"hex"),t=St.toArray(i.nonce,i.nonceEnc||"hex"),r=St.toArray(i.pers,i.persEnc||"hex");Uf(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,t,r)}var nc=At;At.prototype._init=function(e,t,r){var a=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var n=0;n<this.V.length;n++)this.K[n]=0,this.V[n]=1;this._update(a),this._reseed=1,this.reseedInterval=281474976710656};At.prototype._hmac=function(){return new ic.hmac(this.hash,this.K)};At.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())};At.prototype.reseed=function(e,t,r,a){typeof t!="string"&&(a=r,r=t,t=null),e=St.toArray(e,t),r=St.toArray(r,a),Uf(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1};At.prototype.generate=function(e,t,r,a){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof t!="string"&&(a=r,r=t,t=null),r&&(r=St.toArray(r,a||"hex"),this._update(r));for(var n=[];n.length<e;)this.V=this._hmac().update(this.V).digest(),n=n.concat(this.V);var y=n.slice(0,e);return this._update(r),this._reseed++,St.encode(y,t)};var fc=yt,ac=V0,Pi=ac.assert;function z0(i,e){this.ec=i,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}var sc=z0;z0.fromPublic=function(e,t,r){return t instanceof z0?t:new z0(e,{pub:t,pubEnc:r})};z0.fromPrivate=function(e,t,r){return t instanceof z0?t:new z0(e,{priv:t,privEnc:r})};z0.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}};z0.prototype.getPublic=function(e,t){return typeof e=="string"&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub};z0.prototype.getPrivate=function(e){return e==="hex"?this.priv.toString(16,2):this.priv};z0.prototype._importPrivate=function(e,t){this.priv=new fc(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)};z0.prototype._importPublic=function(e,t){if(e.x||e.y){this.ec.curve.type==="mont"?Pi(e.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&Pi(e.x&&e.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,t)};z0.prototype.derive=function(e){return e.validate()||Pi(e.validate(),"public point not validated"),e.mul(this.priv).getX()};z0.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)};z0.prototype.verify=function(e,t){return this.ec.verify(e,t,this)};z0.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var Ar=yt,Xi=V0,oc=Xi.assert;function Pr(i,e){if(i instanceof Pr)return i;this._importDER(i,e)||(oc(i.r&&i.s,"Signature without r or s"),this.r=new Ar(i.r,16),this.s=new Ar(i.s,16),i.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=i.recoveryParam)}var cc=Pr;function dc(){this.place=0}function wi(i,e){var t=i[e.place++];if(!(t&128))return t;var r=t&15;if(r===0||r>4)return!1;for(var a=0,n=0,y=e.place;n<r;n++,y++)a<<=8,a|=i[y],a>>>=0;return a<=127?!1:(e.place=y,a)}function Gn(i){for(var e=0,t=i.length-1;!i[e]&&!(i[e+1]&128)&&e<t;)e++;return e===0?i:i.slice(e)}Pr.prototype._importDER=function(e,t){e=Xi.toArray(e,t);var r=new dc;if(e[r.place++]!==48)return!1;var a=wi(e,r);if(a===!1||a+r.place!==e.length||e[r.place++]!==2)return!1;var n=wi(e,r);if(n===!1)return!1;var y=e.slice(r.place,n+r.place);if(r.place+=n,e[r.place++]!==2)return!1;var x=wi(e,r);if(x===!1||e.length!==x+r.place)return!1;var u=e.slice(r.place,x+r.place);if(y[0]===0)if(y[1]&128)y=y.slice(1);else return!1;if(u[0]===0)if(u[1]&128)u=u.slice(1);else return!1;return this.r=new Ar(y),this.s=new Ar(u),this.recoveryParam=null,!0};function Bi(i,e){if(e<128){i.push(e);return}var t=1+(Math.log(e)/Math.LN2>>>3);for(i.push(t|128);--t;)i.push(e>>>(t<<3)&255);i.push(e)}Pr.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(t[0]&128&&(t=[0].concat(t)),r[0]&128&&(r=[0].concat(r)),t=Gn(t),r=Gn(r);!r[0]&&!(r[1]&128);)r=r.slice(1);var a=[2];Bi(a,t.length),a=a.concat(t),a.push(2),Bi(a,r.length);var n=a.concat(r),y=[48];return Bi(y,n.length),y=y.concat(n),Xi.encode(y,e)};var Dt=yt,Wf=nc,hc=V0,Ci=Fr,uc=Ef,Yf=hc.assert,Zi=sc,Ir=cc;function Z0(i){if(!(this instanceof Z0))return new Z0(i);typeof i=="string"&&(Yf(Object.prototype.hasOwnProperty.call(Ci,i),"Unknown curve "+i),i=Ci[i]),i instanceof Ci.PresetCurve&&(i={curve:i}),this.curve=i.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=i.curve.g,this.g.precompute(i.curve.n.bitLength()+1),this.hash=i.hash||i.curve.hash}var lc=Z0;Z0.prototype.keyPair=function(e){return new Zi(this,e)};Z0.prototype.keyFromPrivate=function(e,t){return Zi.fromPrivate(this,e,t)};Z0.prototype.keyFromPublic=function(e,t){return Zi.fromPublic(this,e,t)};Z0.prototype.genKeyPair=function(e){e||(e={});for(var t=new Wf({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||uc(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),a=this.n.sub(new Dt(2));;){var n=new Dt(t.generate(r));if(!(n.cmp(a)>0))return n.iaddn(1),this.keyFromPrivate(n)}};Z0.prototype._truncateToN=function(e,t){var r=e.byteLength()*8-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e};Z0.prototype.sign=function(e,t,r,a){typeof r=="object"&&(a=r,r=null),a||(a={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new Dt(e,16));for(var n=this.n.byteLength(),y=t.getPrivate().toArray("be",n),x=e.toArray("be",n),u=new Wf({hash:this.hash,entropy:y,nonce:x,pers:a.pers,persEnc:a.persEnc||"utf8"}),c=this.n.sub(new Dt(1)),d=0;;d++){var v=a.k?a.k(d):new Dt(u.generate(this.n.byteLength()));if(v=this._truncateToN(v,!0),!(v.cmpn(1)<=0||v.cmp(c)>=0)){var b=this.g.mul(v);if(!b.isInfinity()){var M=b.getX(),B=M.umod(this.n);if(B.cmpn(0)!==0){var R=v.invm(this.n).mul(B.mul(t.getPrivate()).iadd(e));if(R=R.umod(this.n),R.cmpn(0)!==0){var k=(b.getY().isOdd()?1:0)|(M.cmp(B)!==0?2:0);return a.canonical&&R.cmp(this.nh)>0&&(R=this.n.sub(R),k^=1),new Ir({r:B,s:R,recoveryParam:k})}}}}}};Z0.prototype.verify=function(e,t,r,a){e=this._truncateToN(new Dt(e,16)),r=this.keyFromPublic(r,a),t=new Ir(t,"hex");var n=t.r,y=t.s;if(n.cmpn(1)<0||n.cmp(this.n)>=0||y.cmpn(1)<0||y.cmp(this.n)>=0)return!1;var x=y.invm(this.n),u=x.mul(e).umod(this.n),c=x.mul(n).umod(this.n),d;return this.curve._maxwellTrick?(d=this.g.jmulAdd(u,r.getPublic(),c),d.isInfinity()?!1:d.eqXToP(n)):(d=this.g.mulAdd(u,r.getPublic(),c),d.isInfinity()?!1:d.getX().umod(this.n).cmp(n)===0)};Z0.prototype.recoverPubKey=function(i,e,t,r){Yf((3&t)===t,"The recovery param is more than two bits"),e=new Ir(e,r);var a=this.n,n=new Dt(i),y=e.r,x=e.s,u=t&1,c=t>>1;if(y.cmp(this.curve.p.umod(this.curve.n))>=0&&c)throw new Error("Unable to find sencond key candinate");c?y=this.curve.pointFromX(y.add(this.curve.n),u):y=this.curve.pointFromX(y,u);var d=e.r.invm(a),v=a.sub(n).mul(d).umod(a),b=x.mul(d).umod(a);return this.g.mulAdd(v,y,b)};Z0.prototype.getKeyRecoveryParam=function(i,e,t,r){if(e=new Ir(e,r),e.recoveryParam!==null)return e.recoveryParam;for(var a=0;a<4;a++){var n;try{n=this.recoverPubKey(i,e,a)}catch{continue}if(n.eq(t))return a}throw new Error("Unable to find valid recovery factor")};var ar=V0,jf=ar.assert,Qn=ar.parseBytes,Kt=ar.cachedProperty;function B0(i,e){this.eddsa=i,this._secret=Qn(e.secret),i.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=Qn(e.pub)}B0.fromPublic=function(e,t){return t instanceof B0?t:new B0(e,{pub:t})};B0.fromSecret=function(e,t){return t instanceof B0?t:new B0(e,{secret:t})};B0.prototype.secret=function(){return this._secret};Kt(B0,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())});Kt(B0,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});Kt(B0,"privBytes",function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,a=t.slice(0,e.encodingLength);return a[0]&=248,a[r]&=127,a[r]|=64,a});Kt(B0,"priv",function(){return this.eddsa.decodeInt(this.privBytes())});Kt(B0,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()});Kt(B0,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)});B0.prototype.sign=function(e){return jf(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)};B0.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)};B0.prototype.getSecret=function(e){return jf(this._secret,"KeyPair is public only"),ar.encode(this.secret(),e)};B0.prototype.getPublic=function(e){return ar.encode(this.pubBytes(),e)};var xc=B0,vc=yt,Tr=V0,bc=Tr.assert,Or=Tr.cachedProperty,pc=Tr.parseBytes;function Tt(i,e){this.eddsa=i,typeof e!="object"&&(e=pc(e)),Array.isArray(e)&&(e={R:e.slice(0,i.encodingLength),S:e.slice(i.encodingLength)}),bc(e.R&&e.S,"Signature without R or S"),i.isPoint(e.R)&&(this._R=e.R),e.S instanceof vc&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}Or(Tt,"S",function(){return this.eddsa.decodeInt(this.Sencoded())});Or(Tt,"R",function(){return this.eddsa.decodePoint(this.Rencoded())});Or(Tt,"Rencoded",function(){return this.eddsa.encodePoint(this.R())});Or(Tt,"Sencoded",function(){return this.eddsa.encodeInt(this.S())});Tt.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};Tt.prototype.toHex=function(){return Tr.encode(this.toBytes(),"hex").toUpperCase()};var yc=Tt,gc=Rr,mc=Fr,$t=V0,_c=$t.assert,Kf=$t.parseBytes,Vf=xc,Jn=yc;function W0(i){if(_c(i==="ed25519","only tested with ed25519 so far"),!(this instanceof W0))return new W0(i);i=mc[i].curve,this.curve=i,this.g=i.g,this.g.precompute(i.n.bitLength()+1),this.pointClass=i.point().constructor,this.encodingLength=Math.ceil(i.n.bitLength()/8),this.hash=gc.sha512}var Ac=W0;W0.prototype.sign=function(e,t){e=Kf(e);var r=this.keyFromSecret(t),a=this.hashInt(r.messagePrefix(),e),n=this.g.mul(a),y=this.encodePoint(n),x=this.hashInt(y,r.pubBytes(),e).mul(r.priv()),u=a.add(x).umod(this.curve.n);return this.makeSignature({R:n,S:u,Rencoded:y})};W0.prototype.verify=function(e,t,r){e=Kf(e),t=this.makeSignature(t);var a=this.keyFromPublic(r),n=this.hashInt(t.Rencoded(),a.pubBytes(),e),y=this.g.mul(t.S()),x=t.R().add(a.pub().mul(n));return x.eq(y)};W0.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return $t.intFromLE(e.digest()).umod(this.curve.n)};W0.prototype.keyFromPublic=function(e){return Vf.fromPublic(this,e)};W0.prototype.keyFromSecret=function(e){return Vf.fromSecret(this,e)};W0.prototype.makeSignature=function(e){return e instanceof Jn?e:new Jn(this,e)};W0.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t};W0.prototype.decodePoint=function(e){e=$t.parseBytes(e);var t=e.length-1,r=e.slice(0,t).concat(e[t]&-129),a=(e[t]&128)!==0,n=$t.intFromLE(r);return this.curve.pointFromY(n,a)};W0.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)};W0.prototype.decodeInt=function(e){return $t.intFromLE(e)};W0.prototype.isPoint=function(e){return e instanceof this.pointClass};(function(i){var e=i;e.version=gs.version,e.utils=V0,e.rand=Ef,e.curve=Ki,e.curves=Fr,e.ec=lc,e.eddsa=Ac})(_f);var Xf={exports:{}};(function(i){(function(e){var t=function(l){var C,w=new Float64Array(16);if(l)for(C=0;C<l.length;C++)w[C]=l[C];return w},r=function(){throw new Error("no PRNG")},a=new Uint8Array(16),n=new Uint8Array(32);n[0]=9;var y=t(),x=t([1]),u=t([56129,1]),c=t([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),d=t([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),v=t([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),b=t([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),M=t([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function B(l,C,w,s){l[C]=w>>24&255,l[C+1]=w>>16&255,l[C+2]=w>>8&255,l[C+3]=w&255,l[C+4]=s>>24&255,l[C+5]=s>>16&255,l[C+6]=s>>8&255,l[C+7]=s&255}function R(l,C,w,s,D){var m,z=0;for(m=0;m<D;m++)z|=l[C+m]^w[s+m];return(1&z-1>>>8)-1}function k(l,C,w,s){return R(l,C,w,s,16)}function q(l,C,w,s){return R(l,C,w,s,32)}function F(l,C,w,s){for(var D=s[0]&255|(s[1]&255)<<8|(s[2]&255)<<16|(s[3]&255)<<24,m=w[0]&255|(w[1]&255)<<8|(w[2]&255)<<16|(w[3]&255)<<24,z=w[4]&255|(w[5]&255)<<8|(w[6]&255)<<16|(w[7]&255)<<24,L=w[8]&255|(w[9]&255)<<8|(w[10]&255)<<16|(w[11]&255)<<24,V=w[12]&255|(w[13]&255)<<8|(w[14]&255)<<16|(w[15]&255)<<24,fe=s[4]&255|(s[5]&255)<<8|(s[6]&255)<<16|(s[7]&255)<<24,ie=C[0]&255|(C[1]&255)<<8|(C[2]&255)<<16|(C[3]&255)<<24,he=C[4]&255|(C[5]&255)<<8|(C[6]&255)<<16|(C[7]&255)<<24,re=C[8]&255|(C[9]&255)<<8|(C[10]&255)<<16|(C[11]&255)<<24,xe=C[12]&255|(C[13]&255)<<8|(C[14]&255)<<16|(C[15]&255)<<24,ue=s[8]&255|(s[9]&255)<<8|(s[10]&255)<<16|(s[11]&255)<<24,ve=w[16]&255|(w[17]&255)<<8|(w[18]&255)<<16|(w[19]&255)<<24,me=w[20]&255|(w[21]&255)<<8|(w[22]&255)<<16|(w[23]&255)<<24,_e=w[24]&255|(w[25]&255)<<8|(w[26]&255)<<16|(w[27]&255)<<24,Ae=w[28]&255|(w[29]&255)<<8|(w[30]&255)<<16|(w[31]&255)<<24,pe=s[12]&255|(s[13]&255)<<8|(s[14]&255)<<16|(s[15]&255)<<24,de=D,ye=m,ce=z,le=L,be=V,oe=fe,Z=ie,G=he,ne=re,ee=xe,te=ue,ae=ve,Be=me,Se=_e,Re=Ae,De=pe,N,ze=0;ze<20;ze+=2)N=de+Be|0,be^=N<<7|N>>>25,N=be+de|0,ne^=N<<9|N>>>23,N=ne+be|0,Be^=N<<13|N>>>19,N=Be+ne|0,de^=N<<18|N>>>14,N=oe+ye|0,ee^=N<<7|N>>>25,N=ee+oe|0,Se^=N<<9|N>>>23,N=Se+ee|0,ye^=N<<13|N>>>19,N=ye+Se|0,oe^=N<<18|N>>>14,N=te+Z|0,Re^=N<<7|N>>>25,N=Re+te|0,ce^=N<<9|N>>>23,N=ce+Re|0,Z^=N<<13|N>>>19,N=Z+ce|0,te^=N<<18|N>>>14,N=De+ae|0,le^=N<<7|N>>>25,N=le+De|0,G^=N<<9|N>>>23,N=G+le|0,ae^=N<<13|N>>>19,N=ae+G|0,De^=N<<18|N>>>14,N=de+le|0,ye^=N<<7|N>>>25,N=ye+de|0,ce^=N<<9|N>>>23,N=ce+ye|0,le^=N<<13|N>>>19,N=le+ce|0,de^=N<<18|N>>>14,N=oe+be|0,Z^=N<<7|N>>>25,N=Z+oe|0,G^=N<<9|N>>>23,N=G+Z|0,be^=N<<13|N>>>19,N=be+G|0,oe^=N<<18|N>>>14,N=te+ee|0,ae^=N<<7|N>>>25,N=ae+te|0,ne^=N<<9|N>>>23,N=ne+ae|0,ee^=N<<13|N>>>19,N=ee+ne|0,te^=N<<18|N>>>14,N=De+Re|0,Be^=N<<7|N>>>25,N=Be+De|0,Se^=N<<9|N>>>23,N=Se+Be|0,Re^=N<<13|N>>>19,N=Re+Se|0,De^=N<<18|N>>>14;de=de+D|0,ye=ye+m|0,ce=ce+z|0,le=le+L|0,be=be+V|0,oe=oe+fe|0,Z=Z+ie|0,G=G+he|0,ne=ne+re|0,ee=ee+xe|0,te=te+ue|0,ae=ae+ve|0,Be=Be+me|0,Se=Se+_e|0,Re=Re+Ae|0,De=De+pe|0,l[0]=de>>>0&255,l[1]=de>>>8&255,l[2]=de>>>16&255,l[3]=de>>>24&255,l[4]=ye>>>0&255,l[5]=ye>>>8&255,l[6]=ye>>>16&255,l[7]=ye>>>24&255,l[8]=ce>>>0&255,l[9]=ce>>>8&255,l[10]=ce>>>16&255,l[11]=ce>>>24&255,l[12]=le>>>0&255,l[13]=le>>>8&255,l[14]=le>>>16&255,l[15]=le>>>24&255,l[16]=be>>>0&255,l[17]=be>>>8&255,l[18]=be>>>16&255,l[19]=be>>>24&255,l[20]=oe>>>0&255,l[21]=oe>>>8&255,l[22]=oe>>>16&255,l[23]=oe>>>24&255,l[24]=Z>>>0&255,l[25]=Z>>>8&255,l[26]=Z>>>16&255,l[27]=Z>>>24&255,l[28]=G>>>0&255,l[29]=G>>>8&255,l[30]=G>>>16&255,l[31]=G>>>24&255,l[32]=ne>>>0&255,l[33]=ne>>>8&255,l[34]=ne>>>16&255,l[35]=ne>>>24&255,l[36]=ee>>>0&255,l[37]=ee>>>8&255,l[38]=ee>>>16&255,l[39]=ee>>>24&255,l[40]=te>>>0&255,l[41]=te>>>8&255,l[42]=te>>>16&255,l[43]=te>>>24&255,l[44]=ae>>>0&255,l[45]=ae>>>8&255,l[46]=ae>>>16&255,l[47]=ae>>>24&255,l[48]=Be>>>0&255,l[49]=Be>>>8&255,l[50]=Be>>>16&255,l[51]=Be>>>24&255,l[52]=Se>>>0&255,l[53]=Se>>>8&255,l[54]=Se>>>16&255,l[55]=Se>>>24&255,l[56]=Re>>>0&255,l[57]=Re>>>8&255,l[58]=Re>>>16&255,l[59]=Re>>>24&255,l[60]=De>>>0&255,l[61]=De>>>8&255,l[62]=De>>>16&255,l[63]=De>>>24&255}function P(l,C,w,s){for(var D=s[0]&255|(s[1]&255)<<8|(s[2]&255)<<16|(s[3]&255)<<24,m=w[0]&255|(w[1]&255)<<8|(w[2]&255)<<16|(w[3]&255)<<24,z=w[4]&255|(w[5]&255)<<8|(w[6]&255)<<16|(w[7]&255)<<24,L=w[8]&255|(w[9]&255)<<8|(w[10]&255)<<16|(w[11]&255)<<24,V=w[12]&255|(w[13]&255)<<8|(w[14]&255)<<16|(w[15]&255)<<24,fe=s[4]&255|(s[5]&255)<<8|(s[6]&255)<<16|(s[7]&255)<<24,ie=C[0]&255|(C[1]&255)<<8|(C[2]&255)<<16|(C[3]&255)<<24,he=C[4]&255|(C[5]&255)<<8|(C[6]&255)<<16|(C[7]&255)<<24,re=C[8]&255|(C[9]&255)<<8|(C[10]&255)<<16|(C[11]&255)<<24,xe=C[12]&255|(C[13]&255)<<8|(C[14]&255)<<16|(C[15]&255)<<24,ue=s[8]&255|(s[9]&255)<<8|(s[10]&255)<<16|(s[11]&255)<<24,ve=w[16]&255|(w[17]&255)<<8|(w[18]&255)<<16|(w[19]&255)<<24,me=w[20]&255|(w[21]&255)<<8|(w[22]&255)<<16|(w[23]&255)<<24,_e=w[24]&255|(w[25]&255)<<8|(w[26]&255)<<16|(w[27]&255)<<24,Ae=w[28]&255|(w[29]&255)<<8|(w[30]&255)<<16|(w[31]&255)<<24,pe=s[12]&255|(s[13]&255)<<8|(s[14]&255)<<16|(s[15]&255)<<24,de=D,ye=m,ce=z,le=L,be=V,oe=fe,Z=ie,G=he,ne=re,ee=xe,te=ue,ae=ve,Be=me,Se=_e,Re=Ae,De=pe,N,ze=0;ze<20;ze+=2)N=de+Be|0,be^=N<<7|N>>>25,N=be+de|0,ne^=N<<9|N>>>23,N=ne+be|0,Be^=N<<13|N>>>19,N=Be+ne|0,de^=N<<18|N>>>14,N=oe+ye|0,ee^=N<<7|N>>>25,N=ee+oe|0,Se^=N<<9|N>>>23,N=Se+ee|0,ye^=N<<13|N>>>19,N=ye+Se|0,oe^=N<<18|N>>>14,N=te+Z|0,Re^=N<<7|N>>>25,N=Re+te|0,ce^=N<<9|N>>>23,N=ce+Re|0,Z^=N<<13|N>>>19,N=Z+ce|0,te^=N<<18|N>>>14,N=De+ae|0,le^=N<<7|N>>>25,N=le+De|0,G^=N<<9|N>>>23,N=G+le|0,ae^=N<<13|N>>>19,N=ae+G|0,De^=N<<18|N>>>14,N=de+le|0,ye^=N<<7|N>>>25,N=ye+de|0,ce^=N<<9|N>>>23,N=ce+ye|0,le^=N<<13|N>>>19,N=le+ce|0,de^=N<<18|N>>>14,N=oe+be|0,Z^=N<<7|N>>>25,N=Z+oe|0,G^=N<<9|N>>>23,N=G+Z|0,be^=N<<13|N>>>19,N=be+G|0,oe^=N<<18|N>>>14,N=te+ee|0,ae^=N<<7|N>>>25,N=ae+te|0,ne^=N<<9|N>>>23,N=ne+ae|0,ee^=N<<13|N>>>19,N=ee+ne|0,te^=N<<18|N>>>14,N=De+Re|0,Be^=N<<7|N>>>25,N=Be+De|0,Se^=N<<9|N>>>23,N=Se+Be|0,Re^=N<<13|N>>>19,N=Re+Se|0,De^=N<<18|N>>>14;l[0]=de>>>0&255,l[1]=de>>>8&255,l[2]=de>>>16&255,l[3]=de>>>24&255,l[4]=oe>>>0&255,l[5]=oe>>>8&255,l[6]=oe>>>16&255,l[7]=oe>>>24&255,l[8]=te>>>0&255,l[9]=te>>>8&255,l[10]=te>>>16&255,l[11]=te>>>24&255,l[12]=De>>>0&255,l[13]=De>>>8&255,l[14]=De>>>16&255,l[15]=De>>>24&255,l[16]=Z>>>0&255,l[17]=Z>>>8&255,l[18]=Z>>>16&255,l[19]=Z>>>24&255,l[20]=G>>>0&255,l[21]=G>>>8&255,l[22]=G>>>16&255,l[23]=G>>>24&255,l[24]=ne>>>0&255,l[25]=ne>>>8&255,l[26]=ne>>>16&255,l[27]=ne>>>24&255,l[28]=ee>>>0&255,l[29]=ee>>>8&255,l[30]=ee>>>16&255,l[31]=ee>>>24&255}function O(l,C,w,s){F(l,C,w,s)}function H(l,C,w,s){P(l,C,w,s)}var U=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function K(l,C,w,s,D,m,z){var L=new Uint8Array(16),V=new Uint8Array(64),fe,ie;for(ie=0;ie<16;ie++)L[ie]=0;for(ie=0;ie<8;ie++)L[ie]=m[ie];for(;D>=64;){for(O(V,L,z,U),ie=0;ie<64;ie++)l[C+ie]=w[s+ie]^V[ie];for(fe=1,ie=8;ie<16;ie++)fe=fe+(L[ie]&255)|0,L[ie]=fe&255,fe>>>=8;D-=64,C+=64,s+=64}if(D>0)for(O(V,L,z,U),ie=0;ie<D;ie++)l[C+ie]=w[s+ie]^V[ie];return 0}function X(l,C,w,s,D){var m=new Uint8Array(16),z=new Uint8Array(64),L,V;for(V=0;V<16;V++)m[V]=0;for(V=0;V<8;V++)m[V]=s[V];for(;w>=64;){for(O(z,m,D,U),V=0;V<64;V++)l[C+V]=z[V];for(L=1,V=8;V<16;V++)L=L+(m[V]&255)|0,m[V]=L&255,L>>>=8;w-=64,C+=64}if(w>0)for(O(z,m,D,U),V=0;V<w;V++)l[C+V]=z[V];return 0}function Q(l,C,w,s,D){var m=new Uint8Array(32);H(m,s,D,U);for(var z=new Uint8Array(8),L=0;L<8;L++)z[L]=s[L+16];return X(l,C,w,z,m)}function $(l,C,w,s,D,m,z){var L=new Uint8Array(32);H(L,m,z,U);for(var V=new Uint8Array(8),fe=0;fe<8;fe++)V[fe]=m[fe+16];return K(l,C,w,s,D,V,L)}var _=function(l){this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0;var C,w,s,D,m,z,L,V;C=l[0]&255|(l[1]&255)<<8,this.r[0]=C&8191,w=l[2]&255|(l[3]&255)<<8,this.r[1]=(C>>>13|w<<3)&8191,s=l[4]&255|(l[5]&255)<<8,this.r[2]=(w>>>10|s<<6)&7939,D=l[6]&255|(l[7]&255)<<8,this.r[3]=(s>>>7|D<<9)&8191,m=l[8]&255|(l[9]&255)<<8,this.r[4]=(D>>>4|m<<12)&255,this.r[5]=m>>>1&8190,z=l[10]&255|(l[11]&255)<<8,this.r[6]=(m>>>14|z<<2)&8191,L=l[12]&255|(l[13]&255)<<8,this.r[7]=(z>>>11|L<<5)&8065,V=l[14]&255|(l[15]&255)<<8,this.r[8]=(L>>>8|V<<8)&8191,this.r[9]=V>>>5&127,this.pad[0]=l[16]&255|(l[17]&255)<<8,this.pad[1]=l[18]&255|(l[19]&255)<<8,this.pad[2]=l[20]&255|(l[21]&255)<<8,this.pad[3]=l[22]&255|(l[23]&255)<<8,this.pad[4]=l[24]&255|(l[25]&255)<<8,this.pad[5]=l[26]&255|(l[27]&255)<<8,this.pad[6]=l[28]&255|(l[29]&255)<<8,this.pad[7]=l[30]&255|(l[31]&255)<<8};_.prototype.blocks=function(l,C,w){for(var s=this.fin?0:2048,D,m,z,L,V,fe,ie,he,re,xe,ue,ve,me,_e,Ae,pe,de,ye,ce,le=this.h[0],be=this.h[1],oe=this.h[2],Z=this.h[3],G=this.h[4],ne=this.h[5],ee=this.h[6],te=this.h[7],ae=this.h[8],Be=this.h[9],Se=this.r[0],Re=this.r[1],De=this.r[2],N=this.r[3],ze=this.r[4],Xe=this.r[5],Ze=this.r[6],Te=this.r[7],je=this.r[8],Ke=this.r[9];w>=16;)D=l[C+0]&255|(l[C+1]&255)<<8,le+=D&8191,m=l[C+2]&255|(l[C+3]&255)<<8,be+=(D>>>13|m<<3)&8191,z=l[C+4]&255|(l[C+5]&255)<<8,oe+=(m>>>10|z<<6)&8191,L=l[C+6]&255|(l[C+7]&255)<<8,Z+=(z>>>7|L<<9)&8191,V=l[C+8]&255|(l[C+9]&255)<<8,G+=(L>>>4|V<<12)&8191,ne+=V>>>1&8191,fe=l[C+10]&255|(l[C+11]&255)<<8,ee+=(V>>>14|fe<<2)&8191,ie=l[C+12]&255|(l[C+13]&255)<<8,te+=(fe>>>11|ie<<5)&8191,he=l[C+14]&255|(l[C+15]&255)<<8,ae+=(ie>>>8|he<<8)&8191,Be+=he>>>5|s,re=0,xe=re,xe+=le*Se,xe+=be*(5*Ke),xe+=oe*(5*je),xe+=Z*(5*Te),xe+=G*(5*Ze),re=xe>>>13,xe&=8191,xe+=ne*(5*Xe),xe+=ee*(5*ze),xe+=te*(5*N),xe+=ae*(5*De),xe+=Be*(5*Re),re+=xe>>>13,xe&=8191,ue=re,ue+=le*Re,ue+=be*Se,ue+=oe*(5*Ke),ue+=Z*(5*je),ue+=G*(5*Te),re=ue>>>13,ue&=8191,ue+=ne*(5*Ze),ue+=ee*(5*Xe),ue+=te*(5*ze),ue+=ae*(5*N),ue+=Be*(5*De),re+=ue>>>13,ue&=8191,ve=re,ve+=le*De,ve+=be*Re,ve+=oe*Se,ve+=Z*(5*Ke),ve+=G*(5*je),re=ve>>>13,ve&=8191,ve+=ne*(5*Te),ve+=ee*(5*Ze),ve+=te*(5*Xe),ve+=ae*(5*ze),ve+=Be*(5*N),re+=ve>>>13,ve&=8191,me=re,me+=le*N,me+=be*De,me+=oe*Re,me+=Z*Se,me+=G*(5*Ke),re=me>>>13,me&=8191,me+=ne*(5*je),me+=ee*(5*Te),me+=te*(5*Ze),me+=ae*(5*Xe),me+=Be*(5*ze),re+=me>>>13,me&=8191,_e=re,_e+=le*ze,_e+=be*N,_e+=oe*De,_e+=Z*Re,_e+=G*Se,re=_e>>>13,_e&=8191,_e+=ne*(5*Ke),_e+=ee*(5*je),_e+=te*(5*Te),_e+=ae*(5*Ze),_e+=Be*(5*Xe),re+=_e>>>13,_e&=8191,Ae=re,Ae+=le*Xe,Ae+=be*ze,Ae+=oe*N,Ae+=Z*De,Ae+=G*Re,re=Ae>>>13,Ae&=8191,Ae+=ne*Se,Ae+=ee*(5*Ke),Ae+=te*(5*je),Ae+=ae*(5*Te),Ae+=Be*(5*Ze),re+=Ae>>>13,Ae&=8191,pe=re,pe+=le*Ze,pe+=be*Xe,pe+=oe*ze,pe+=Z*N,pe+=G*De,re=pe>>>13,pe&=8191,pe+=ne*Re,pe+=ee*Se,pe+=te*(5*Ke),pe+=ae*(5*je),pe+=Be*(5*Te),re+=pe>>>13,pe&=8191,de=re,de+=le*Te,de+=be*Ze,de+=oe*Xe,de+=Z*ze,de+=G*N,re=de>>>13,de&=8191,de+=ne*De,de+=ee*Re,de+=te*Se,de+=ae*(5*Ke),de+=Be*(5*je),re+=de>>>13,de&=8191,ye=re,ye+=le*je,ye+=be*Te,ye+=oe*Ze,ye+=Z*Xe,ye+=G*ze,re=ye>>>13,ye&=8191,ye+=ne*N,ye+=ee*De,ye+=te*Re,ye+=ae*Se,ye+=Be*(5*Ke),re+=ye>>>13,ye&=8191,ce=re,ce+=le*Ke,ce+=be*je,ce+=oe*Te,ce+=Z*Ze,ce+=G*Xe,re=ce>>>13,ce&=8191,ce+=ne*ze,ce+=ee*N,ce+=te*De,ce+=ae*Re,ce+=Be*Se,re+=ce>>>13,ce&=8191,re=(re<<2)+re|0,re=re+xe|0,xe=re&8191,re=re>>>13,ue+=re,le=xe,be=ue,oe=ve,Z=me,G=_e,ne=Ae,ee=pe,te=de,ae=ye,Be=ce,C+=16,w-=16;this.h[0]=le,this.h[1]=be,this.h[2]=oe,this.h[3]=Z,this.h[4]=G,this.h[5]=ne,this.h[6]=ee,this.h[7]=te,this.h[8]=ae,this.h[9]=Be},_.prototype.finish=function(l,C){var w=new Uint16Array(10),s,D,m,z;if(this.leftover){for(z=this.leftover,this.buffer[z++]=1;z<16;z++)this.buffer[z]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(s=this.h[1]>>>13,this.h[1]&=8191,z=2;z<10;z++)this.h[z]+=s,s=this.h[z]>>>13,this.h[z]&=8191;for(this.h[0]+=s*5,s=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=s,s=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=s,w[0]=this.h[0]+5,s=w[0]>>>13,w[0]&=8191,z=1;z<10;z++)w[z]=this.h[z]+s,s=w[z]>>>13,w[z]&=8191;for(w[9]-=8192,D=(s^1)-1,z=0;z<10;z++)w[z]&=D;for(D=~D,z=0;z<10;z++)this.h[z]=this.h[z]&D|w[z];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,m=this.h[0]+this.pad[0],this.h[0]=m&65535,z=1;z<8;z++)m=(this.h[z]+this.pad[z]|0)+(m>>>16)|0,this.h[z]=m&65535;l[C+0]=this.h[0]>>>0&255,l[C+1]=this.h[0]>>>8&255,l[C+2]=this.h[1]>>>0&255,l[C+3]=this.h[1]>>>8&255,l[C+4]=this.h[2]>>>0&255,l[C+5]=this.h[2]>>>8&255,l[C+6]=this.h[3]>>>0&255,l[C+7]=this.h[3]>>>8&255,l[C+8]=this.h[4]>>>0&255,l[C+9]=this.h[4]>>>8&255,l[C+10]=this.h[5]>>>0&255,l[C+11]=this.h[5]>>>8&255,l[C+12]=this.h[6]>>>0&255,l[C+13]=this.h[6]>>>8&255,l[C+14]=this.h[7]>>>0&255,l[C+15]=this.h[7]>>>8&255},_.prototype.update=function(l,C,w){var s,D;if(this.leftover){for(D=16-this.leftover,D>w&&(D=w),s=0;s<D;s++)this.buffer[this.leftover+s]=l[C+s];if(w-=D,C+=D,this.leftover+=D,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(w>=16&&(D=w-w%16,this.blocks(l,C,D),C+=D,w-=D),w){for(s=0;s<w;s++)this.buffer[this.leftover+s]=l[C+s];this.leftover+=w}};function f(l,C,w,s,D,m){var z=new _(m);return z.update(w,s,D),z.finish(l,C),0}function h(l,C,w,s,D,m){var z=new Uint8Array(16);return f(z,0,w,s,D,m),k(l,C,z,0)}function p(l,C,w,s,D){var m;if(w<32)return-1;for($(l,0,C,0,w,s,D),f(l,16,l,32,w-32,l),m=0;m<16;m++)l[m]=0;return 0}function g(l,C,w,s,D){var m,z=new Uint8Array(32);if(w<32||(Q(z,0,32,s,D),h(C,16,C,32,w-32,z)!==0))return-1;for($(l,0,C,0,w,s,D),m=0;m<32;m++)l[m]=0;return 0}function E(l,C){var w;for(w=0;w<16;w++)l[w]=C[w]|0}function I(l){var C,w,s=1;for(C=0;C<16;C++)w=l[C]+s+65535,s=Math.floor(w/65536),l[C]=w-s*65536;l[0]+=s-1+37*(s-1)}function T(l,C,w){for(var s,D=~(w-1),m=0;m<16;m++)s=D&(l[m]^C[m]),l[m]^=s,C[m]^=s}function S(l,C){var w,s,D,m=t(),z=t();for(w=0;w<16;w++)z[w]=C[w];for(I(z),I(z),I(z),s=0;s<2;s++){for(m[0]=z[0]-65517,w=1;w<15;w++)m[w]=z[w]-65535-(m[w-1]>>16&1),m[w-1]&=65535;m[15]=z[15]-32767-(m[14]>>16&1),D=m[15]>>16&1,m[14]&=65535,T(z,m,1-D)}for(w=0;w<16;w++)l[2*w]=z[w]&255,l[2*w+1]=z[w]>>8}function o(l,C){var w=new Uint8Array(32),s=new Uint8Array(32);return S(w,l),S(s,C),q(w,0,s,0)}function A(l){var C=new Uint8Array(32);return S(C,l),C[0]&1}function Y(l,C){var w;for(w=0;w<16;w++)l[w]=C[2*w]+(C[2*w+1]<<8);l[15]&=32767}function j(l,C,w){for(var s=0;s<16;s++)l[s]=C[s]+w[s]}function W(l,C,w){for(var s=0;s<16;s++)l[s]=C[s]-w[s]}function J(l,C,w){var s,D,m=0,z=0,L=0,V=0,fe=0,ie=0,he=0,re=0,xe=0,ue=0,ve=0,me=0,_e=0,Ae=0,pe=0,de=0,ye=0,ce=0,le=0,be=0,oe=0,Z=0,G=0,ne=0,ee=0,te=0,ae=0,Be=0,Se=0,Re=0,De=0,N=w[0],ze=w[1],Xe=w[2],Ze=w[3],Te=w[4],je=w[5],Ke=w[6],m0=w[7],h0=w[8],b0=w[9],p0=w[10],y0=w[11],w0=w[12],P0=w[13],I0=w[14],T0=w[15];s=C[0],m+=s*N,z+=s*ze,L+=s*Xe,V+=s*Ze,fe+=s*Te,ie+=s*je,he+=s*Ke,re+=s*m0,xe+=s*h0,ue+=s*b0,ve+=s*p0,me+=s*y0,_e+=s*w0,Ae+=s*P0,pe+=s*I0,de+=s*T0,s=C[1],z+=s*N,L+=s*ze,V+=s*Xe,fe+=s*Ze,ie+=s*Te,he+=s*je,re+=s*Ke,xe+=s*m0,ue+=s*h0,ve+=s*b0,me+=s*p0,_e+=s*y0,Ae+=s*w0,pe+=s*P0,de+=s*I0,ye+=s*T0,s=C[2],L+=s*N,V+=s*ze,fe+=s*Xe,ie+=s*Ze,he+=s*Te,re+=s*je,xe+=s*Ke,ue+=s*m0,ve+=s*h0,me+=s*b0,_e+=s*p0,Ae+=s*y0,pe+=s*w0,de+=s*P0,ye+=s*I0,ce+=s*T0,s=C[3],V+=s*N,fe+=s*ze,ie+=s*Xe,he+=s*Ze,re+=s*Te,xe+=s*je,ue+=s*Ke,ve+=s*m0,me+=s*h0,_e+=s*b0,Ae+=s*p0,pe+=s*y0,de+=s*w0,ye+=s*P0,ce+=s*I0,le+=s*T0,s=C[4],fe+=s*N,ie+=s*ze,he+=s*Xe,re+=s*Ze,xe+=s*Te,ue+=s*je,ve+=s*Ke,me+=s*m0,_e+=s*h0,Ae+=s*b0,pe+=s*p0,de+=s*y0,ye+=s*w0,ce+=s*P0,le+=s*I0,be+=s*T0,s=C[5],ie+=s*N,he+=s*ze,re+=s*Xe,xe+=s*Ze,ue+=s*Te,ve+=s*je,me+=s*Ke,_e+=s*m0,Ae+=s*h0,pe+=s*b0,de+=s*p0,ye+=s*y0,ce+=s*w0,le+=s*P0,be+=s*I0,oe+=s*T0,s=C[6],he+=s*N,re+=s*ze,xe+=s*Xe,ue+=s*Ze,ve+=s*Te,me+=s*je,_e+=s*Ke,Ae+=s*m0,pe+=s*h0,de+=s*b0,ye+=s*p0,ce+=s*y0,le+=s*w0,be+=s*P0,oe+=s*I0,Z+=s*T0,s=C[7],re+=s*N,xe+=s*ze,ue+=s*Xe,ve+=s*Ze,me+=s*Te,_e+=s*je,Ae+=s*Ke,pe+=s*m0,de+=s*h0,ye+=s*b0,ce+=s*p0,le+=s*y0,be+=s*w0,oe+=s*P0,Z+=s*I0,G+=s*T0,s=C[8],xe+=s*N,ue+=s*ze,ve+=s*Xe,me+=s*Ze,_e+=s*Te,Ae+=s*je,pe+=s*Ke,de+=s*m0,ye+=s*h0,ce+=s*b0,le+=s*p0,be+=s*y0,oe+=s*w0,Z+=s*P0,G+=s*I0,ne+=s*T0,s=C[9],ue+=s*N,ve+=s*ze,me+=s*Xe,_e+=s*Ze,Ae+=s*Te,pe+=s*je,de+=s*Ke,ye+=s*m0,ce+=s*h0,le+=s*b0,be+=s*p0,oe+=s*y0,Z+=s*w0,G+=s*P0,ne+=s*I0,ee+=s*T0,s=C[10],ve+=s*N,me+=s*ze,_e+=s*Xe,Ae+=s*Ze,pe+=s*Te,de+=s*je,ye+=s*Ke,ce+=s*m0,le+=s*h0,be+=s*b0,oe+=s*p0,Z+=s*y0,G+=s*w0,ne+=s*P0,ee+=s*I0,te+=s*T0,s=C[11],me+=s*N,_e+=s*ze,Ae+=s*Xe,pe+=s*Ze,de+=s*Te,ye+=s*je,ce+=s*Ke,le+=s*m0,be+=s*h0,oe+=s*b0,Z+=s*p0,G+=s*y0,ne+=s*w0,ee+=s*P0,te+=s*I0,ae+=s*T0,s=C[12],_e+=s*N,Ae+=s*ze,pe+=s*Xe,de+=s*Ze,ye+=s*Te,ce+=s*je,le+=s*Ke,be+=s*m0,oe+=s*h0,Z+=s*b0,G+=s*p0,ne+=s*y0,ee+=s*w0,te+=s*P0,ae+=s*I0,Be+=s*T0,s=C[13],Ae+=s*N,pe+=s*ze,de+=s*Xe,ye+=s*Ze,ce+=s*Te,le+=s*je,be+=s*Ke,oe+=s*m0,Z+=s*h0,G+=s*b0,ne+=s*p0,ee+=s*y0,te+=s*w0,ae+=s*P0,Be+=s*I0,Se+=s*T0,s=C[14],pe+=s*N,de+=s*ze,ye+=s*Xe,ce+=s*Ze,le+=s*Te,be+=s*je,oe+=s*Ke,Z+=s*m0,G+=s*h0,ne+=s*b0,ee+=s*p0,te+=s*y0,ae+=s*w0,Be+=s*P0,Se+=s*I0,Re+=s*T0,s=C[15],de+=s*N,ye+=s*ze,ce+=s*Xe,le+=s*Ze,be+=s*Te,oe+=s*je,Z+=s*Ke,G+=s*m0,ne+=s*h0,ee+=s*b0,te+=s*p0,ae+=s*y0,Be+=s*w0,Se+=s*P0,Re+=s*I0,De+=s*T0,m+=38*ye,z+=38*ce,L+=38*le,V+=38*be,fe+=38*oe,ie+=38*Z,he+=38*G,re+=38*ne,xe+=38*ee,ue+=38*te,ve+=38*ae,me+=38*Be,_e+=38*Se,Ae+=38*Re,pe+=38*De,D=1,s=m+D+65535,D=Math.floor(s/65536),m=s-D*65536,s=z+D+65535,D=Math.floor(s/65536),z=s-D*65536,s=L+D+65535,D=Math.floor(s/65536),L=s-D*65536,s=V+D+65535,D=Math.floor(s/65536),V=s-D*65536,s=fe+D+65535,D=Math.floor(s/65536),fe=s-D*65536,s=ie+D+65535,D=Math.floor(s/65536),ie=s-D*65536,s=he+D+65535,D=Math.floor(s/65536),he=s-D*65536,s=re+D+65535,D=Math.floor(s/65536),re=s-D*65536,s=xe+D+65535,D=Math.floor(s/65536),xe=s-D*65536,s=ue+D+65535,D=Math.floor(s/65536),ue=s-D*65536,s=ve+D+65535,D=Math.floor(s/65536),ve=s-D*65536,s=me+D+65535,D=Math.floor(s/65536),me=s-D*65536,s=_e+D+65535,D=Math.floor(s/65536),_e=s-D*65536,s=Ae+D+65535,D=Math.floor(s/65536),Ae=s-D*65536,s=pe+D+65535,D=Math.floor(s/65536),pe=s-D*65536,s=de+D+65535,D=Math.floor(s/65536),de=s-D*65536,m+=D-1+37*(D-1),D=1,s=m+D+65535,D=Math.floor(s/65536),m=s-D*65536,s=z+D+65535,D=Math.floor(s/65536),z=s-D*65536,s=L+D+65535,D=Math.floor(s/65536),L=s-D*65536,s=V+D+65535,D=Math.floor(s/65536),V=s-D*65536,s=fe+D+65535,D=Math.floor(s/65536),fe=s-D*65536,s=ie+D+65535,D=Math.floor(s/65536),ie=s-D*65536,s=he+D+65535,D=Math.floor(s/65536),he=s-D*65536,s=re+D+65535,D=Math.floor(s/65536),re=s-D*65536,s=xe+D+65535,D=Math.floor(s/65536),xe=s-D*65536,s=ue+D+65535,D=Math.floor(s/65536),ue=s-D*65536,s=ve+D+65535,D=Math.floor(s/65536),ve=s-D*65536,s=me+D+65535,D=Math.floor(s/65536),me=s-D*65536,s=_e+D+65535,D=Math.floor(s/65536),_e=s-D*65536,s=Ae+D+65535,D=Math.floor(s/65536),Ae=s-D*65536,s=pe+D+65535,D=Math.floor(s/65536),pe=s-D*65536,s=de+D+65535,D=Math.floor(s/65536),de=s-D*65536,m+=D-1+37*(D-1),l[0]=m,l[1]=z,l[2]=L,l[3]=V,l[4]=fe,l[5]=ie,l[6]=he,l[7]=re,l[8]=xe,l[9]=ue,l[10]=ve,l[11]=me,l[12]=_e,l[13]=Ae,l[14]=pe,l[15]=de}function se(l,C){J(l,C,C)}function Ee(l,C){var w=t(),s;for(s=0;s<16;s++)w[s]=C[s];for(s=253;s>=0;s--)se(w,w),s!==2&&s!==4&&J(w,w,C);for(s=0;s<16;s++)l[s]=w[s]}function ge(l,C){var w=t(),s;for(s=0;s<16;s++)w[s]=C[s];for(s=250;s>=0;s--)se(w,w),s!==1&&J(w,w,C);for(s=0;s<16;s++)l[s]=w[s]}function Ce(l,C,w){var s=new Uint8Array(32),D=new Float64Array(80),m,z,L=t(),V=t(),fe=t(),ie=t(),he=t(),re=t();for(z=0;z<31;z++)s[z]=C[z];for(s[31]=C[31]&127|64,s[0]&=248,Y(D,w),z=0;z<16;z++)V[z]=D[z],ie[z]=L[z]=fe[z]=0;for(L[0]=ie[0]=1,z=254;z>=0;--z)m=s[z>>>3]>>>(z&7)&1,T(L,V,m),T(fe,ie,m),j(he,L,fe),W(L,L,fe),j(fe,V,ie),W(V,V,ie),se(ie,he),se(re,L),J(L,fe,L),J(fe,V,he),j(he,L,fe),W(L,L,fe),se(V,L),W(fe,ie,re),J(L,fe,u),j(L,L,ie),J(fe,fe,L),J(L,ie,re),J(ie,V,D),se(V,he),T(L,V,m),T(fe,ie,m);for(z=0;z<16;z++)D[z+16]=L[z],D[z+32]=fe[z],D[z+48]=V[z],D[z+64]=ie[z];var xe=D.subarray(32),ue=D.subarray(16);return Ee(xe,xe),J(ue,ue,xe),S(l,ue),0}function we(l,C){return Ce(l,C,n)}function _0(l,C){return r(C,32),we(l,C)}function Pe(l,C,w){var s=new Uint8Array(32);return Ce(s,w,C),H(l,a,s,U)}var Me=p,A0=g;function Ge(l,C,w,s,D,m){var z=new Uint8Array(32);return Pe(z,D,m),Me(l,C,w,s,z)}function Ye(l,C,w,s,D,m){var z=new Uint8Array(32);return Pe(z,D,m),A0(l,C,w,s,z)}var Y0=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Qe(l,C,w,s){for(var D=new Int32Array(16),m=new Int32Array(16),z,L,V,fe,ie,he,re,xe,ue,ve,me,_e,Ae,pe,de,ye,ce,le,be,oe,Z,G,ne,ee,te,ae,Be=l[0],Se=l[1],Re=l[2],De=l[3],N=l[4],ze=l[5],Xe=l[6],Ze=l[7],Te=C[0],je=C[1],Ke=C[2],m0=C[3],h0=C[4],b0=C[5],p0=C[6],y0=C[7],w0=0;s>=128;){for(be=0;be<16;be++)oe=8*be+w0,D[be]=w[oe+0]<<24|w[oe+1]<<16|w[oe+2]<<8|w[oe+3],m[be]=w[oe+4]<<24|w[oe+5]<<16|w[oe+6]<<8|w[oe+7];for(be=0;be<80;be++)if(z=Be,L=Se,V=Re,fe=De,ie=N,he=ze,re=Xe,xe=Ze,ue=Te,ve=je,me=Ke,_e=m0,Ae=h0,pe=b0,de=p0,ye=y0,Z=Ze,G=y0,ne=G&65535,ee=G>>>16,te=Z&65535,ae=Z>>>16,Z=(N>>>14|h0<<18)^(N>>>18|h0<<14)^(h0>>>9|N<<23),G=(h0>>>14|N<<18)^(h0>>>18|N<<14)^(N>>>9|h0<<23),ne+=G&65535,ee+=G>>>16,te+=Z&65535,ae+=Z>>>16,Z=N&ze^~N&Xe,G=h0&b0^~h0&p0,ne+=G&65535,ee+=G>>>16,te+=Z&65535,ae+=Z>>>16,Z=Y0[be*2],G=Y0[be*2+1],ne+=G&65535,ee+=G>>>16,te+=Z&65535,ae+=Z>>>16,Z=D[be%16],G=m[be%16],ne+=G&65535,ee+=G>>>16,te+=Z&65535,ae+=Z>>>16,ee+=ne>>>16,te+=ee>>>16,ae+=te>>>16,ce=te&65535|ae<<16,le=ne&65535|ee<<16,Z=ce,G=le,ne=G&65535,ee=G>>>16,te=Z&65535,ae=Z>>>16,Z=(Be>>>28|Te<<4)^(Te>>>2|Be<<30)^(Te>>>7|Be<<25),G=(Te>>>28|Be<<4)^(Be>>>2|Te<<30)^(Be>>>7|Te<<25),ne+=G&65535,ee+=G>>>16,te+=Z&65535,ae+=Z>>>16,Z=Be&Se^Be&Re^Se&Re,G=Te&je^Te&Ke^je&Ke,ne+=G&65535,ee+=G>>>16,te+=Z&65535,ae+=Z>>>16,ee+=ne>>>16,te+=ee>>>16,ae+=te>>>16,xe=te&65535|ae<<16,ye=ne&65535|ee<<16,Z=fe,G=_e,ne=G&65535,ee=G>>>16,te=Z&65535,ae=Z>>>16,Z=ce,G=le,ne+=G&65535,ee+=G>>>16,te+=Z&65535,ae+=Z>>>16,ee+=ne>>>16,te+=ee>>>16,ae+=te>>>16,fe=te&65535|ae<<16,_e=ne&65535|ee<<16,Se=z,Re=L,De=V,N=fe,ze=ie,Xe=he,Ze=re,Be=xe,je=ue,Ke=ve,m0=me,h0=_e,b0=Ae,p0=pe,y0=de,Te=ye,be%16===15)for(oe=0;oe<16;oe++)Z=D[oe],G=m[oe],ne=G&65535,ee=G>>>16,te=Z&65535,ae=Z>>>16,Z=D[(oe+9)%16],G=m[(oe+9)%16],ne+=G&65535,ee+=G>>>16,te+=Z&65535,ae+=Z>>>16,ce=D[(oe+1)%16],le=m[(oe+1)%16],Z=(ce>>>1|le<<31)^(ce>>>8|le<<24)^ce>>>7,G=(le>>>1|ce<<31)^(le>>>8|ce<<24)^(le>>>7|ce<<25),ne+=G&65535,ee+=G>>>16,te+=Z&65535,ae+=Z>>>16,ce=D[(oe+14)%16],le=m[(oe+14)%16],Z=(ce>>>19|le<<13)^(le>>>29|ce<<3)^ce>>>6,G=(le>>>19|ce<<13)^(ce>>>29|le<<3)^(le>>>6|ce<<26),ne+=G&65535,ee+=G>>>16,te+=Z&65535,ae+=Z>>>16,ee+=ne>>>16,te+=ee>>>16,ae+=te>>>16,D[oe]=te&65535|ae<<16,m[oe]=ne&65535|ee<<16;Z=Be,G=Te,ne=G&65535,ee=G>>>16,te=Z&65535,ae=Z>>>16,Z=l[0],G=C[0],ne+=G&65535,ee+=G>>>16,te+=Z&65535,ae+=Z>>>16,ee+=ne>>>16,te+=ee>>>16,ae+=te>>>16,l[0]=Be=te&65535|ae<<16,C[0]=Te=ne&65535|ee<<16,Z=Se,G=je,ne=G&65535,ee=G>>>16,te=Z&65535,ae=Z>>>16,Z=l[1],G=C[1],ne+=G&65535,ee+=G>>>16,te+=Z&65535,ae+=Z>>>16,ee+=ne>>>16,te+=ee>>>16,ae+=te>>>16,l[1]=Se=te&65535|ae<<16,C[1]=je=ne&65535|ee<<16,Z=Re,G=Ke,ne=G&65535,ee=G>>>16,te=Z&65535,ae=Z>>>16,Z=l[2],G=C[2],ne+=G&65535,ee+=G>>>16,te+=Z&65535,ae+=Z>>>16,ee+=ne>>>16,te+=ee>>>16,ae+=te>>>16,l[2]=Re=te&65535|ae<<16,C[2]=Ke=ne&65535|ee<<16,Z=De,G=m0,ne=G&65535,ee=G>>>16,te=Z&65535,ae=Z>>>16,Z=l[3],G=C[3],ne+=G&65535,ee+=G>>>16,te+=Z&65535,ae+=Z>>>16,ee+=ne>>>16,te+=ee>>>16,ae+=te>>>16,l[3]=De=te&65535|ae<<16,C[3]=m0=ne&65535|ee<<16,Z=N,G=h0,ne=G&65535,ee=G>>>16,te=Z&65535,ae=Z>>>16,Z=l[4],G=C[4],ne+=G&65535,ee+=G>>>16,te+=Z&65535,ae+=Z>>>16,ee+=ne>>>16,te+=ee>>>16,ae+=te>>>16,l[4]=N=te&65535|ae<<16,C[4]=h0=ne&65535|ee<<16,Z=ze,G=b0,ne=G&65535,ee=G>>>16,te=Z&65535,ae=Z>>>16,Z=l[5],G=C[5],ne+=G&65535,ee+=G>>>16,te+=Z&65535,ae+=Z>>>16,ee+=ne>>>16,te+=ee>>>16,ae+=te>>>16,l[5]=ze=te&65535|ae<<16,C[5]=b0=ne&65535|ee<<16,Z=Xe,G=p0,ne=G&65535,ee=G>>>16,te=Z&65535,ae=Z>>>16,Z=l[6],G=C[6],ne+=G&65535,ee+=G>>>16,te+=Z&65535,ae+=Z>>>16,ee+=ne>>>16,te+=ee>>>16,ae+=te>>>16,l[6]=Xe=te&65535|ae<<16,C[6]=p0=ne&65535|ee<<16,Z=Ze,G=y0,ne=G&65535,ee=G>>>16,te=Z&65535,ae=Z>>>16,Z=l[7],G=C[7],ne+=G&65535,ee+=G>>>16,te+=Z&65535,ae+=Z>>>16,ee+=ne>>>16,te+=ee>>>16,ae+=te>>>16,l[7]=Ze=te&65535|ae<<16,C[7]=y0=ne&65535|ee<<16,w0+=128,s-=128}return s}function Ne(l,C,w){var s=new Int32Array(8),D=new Int32Array(8),m=new Uint8Array(256),z,L=w;for(s[0]=1779033703,s[1]=3144134277,s[2]=1013904242,s[3]=2773480762,s[4]=1359893119,s[5]=2600822924,s[6]=528734635,s[7]=1541459225,D[0]=4089235720,D[1]=2227873595,D[2]=4271175723,D[3]=1595750129,D[4]=2917565137,D[5]=725511199,D[6]=4215389547,D[7]=327033209,Qe(s,D,C,w),w%=128,z=0;z<w;z++)m[z]=C[L-w+z];for(m[w]=128,w=256-128*(w<112?1:0),m[w-9]=0,B(m,w-8,L/536870912|0,L<<3),Qe(s,D,m,w),z=0;z<8;z++)B(l,8*z,s[z],D[z]);return 0}function N0(l,C){var w=t(),s=t(),D=t(),m=t(),z=t(),L=t(),V=t(),fe=t(),ie=t();W(w,l[1],l[0]),W(ie,C[1],C[0]),J(w,w,ie),j(s,l[0],l[1]),j(ie,C[0],C[1]),J(s,s,ie),J(D,l[3],C[3]),J(D,D,d),J(m,l[2],C[2]),j(m,m,m),W(z,s,w),W(L,m,D),j(V,m,D),j(fe,s,w),J(l[0],z,L),J(l[1],fe,V),J(l[2],V,L),J(l[3],z,fe)}function qe(l,C,w){var s;for(s=0;s<4;s++)T(l[s],C[s],w)}function Fe(l,C){var w=t(),s=t(),D=t();Ee(D,C[2]),J(w,C[0],D),J(s,C[1],D),S(l,s),l[31]^=A(w)<<7}function D0(l,C,w){var s,D;for(E(l[0],y),E(l[1],x),E(l[2],x),E(l[3],y),D=255;D>=0;--D)s=w[D/8|0]>>(D&7)&1,qe(l,C,s),N0(C,l),N0(l,l),qe(l,C,s)}function Je(l,C){var w=[t(),t(),t(),t()];E(w[0],v),E(w[1],b),E(w[2],x),J(w[3],v,b),D0(l,w,C)}function i0(l,C,w){var s=new Uint8Array(64),D=[t(),t(),t(),t()],m;for(w||r(C,32),Ne(s,C,32),s[0]&=248,s[31]&=127,s[31]|=64,Je(D,s),Fe(l,D),m=0;m<32;m++)C[m+32]=l[m];return 0}var F0=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function Le(l,C){var w,s,D,m;for(s=63;s>=32;--s){for(w=0,D=s-32,m=s-12;D<m;++D)C[D]+=w-16*C[s]*F0[D-(s-32)],w=Math.floor((C[D]+128)/256),C[D]-=w*256;C[D]+=w,C[s]=0}for(w=0,D=0;D<32;D++)C[D]+=w-(C[31]>>4)*F0[D],w=C[D]>>8,C[D]&=255;for(D=0;D<32;D++)C[D]-=w*F0[D];for(s=0;s<32;s++)C[s+1]+=C[s]>>8,l[s]=C[s]&255}function u0(l){var C=new Float64Array(64),w;for(w=0;w<64;w++)C[w]=l[w];for(w=0;w<64;w++)l[w]=0;Le(l,C)}function J0(l,C,w,s){var D=new Uint8Array(64),m=new Uint8Array(64),z=new Uint8Array(64),L,V,fe=new Float64Array(64),ie=[t(),t(),t(),t()];Ne(D,s,32),D[0]&=248,D[31]&=127,D[31]|=64;var he=w+64;for(L=0;L<w;L++)l[64+L]=C[L];for(L=0;L<32;L++)l[32+L]=D[32+L];for(Ne(z,l.subarray(32),w+32),u0(z),Je(ie,z),Fe(l,ie),L=32;L<64;L++)l[L]=s[L];for(Ne(m,l,w+64),u0(m),L=0;L<64;L++)fe[L]=0;for(L=0;L<32;L++)fe[L]=z[L];for(L=0;L<32;L++)for(V=0;V<32;V++)fe[L+V]+=m[L]*D[V];return Le(l.subarray(32),fe),he}function l0(l,C){var w=t(),s=t(),D=t(),m=t(),z=t(),L=t(),V=t();return E(l[2],x),Y(l[1],C),se(D,l[1]),J(m,D,c),W(D,D,l[2]),j(m,l[2],m),se(z,m),se(L,z),J(V,L,z),J(w,V,D),J(w,w,m),ge(w,w),J(w,w,D),J(w,w,m),J(w,w,m),J(l[0],w,m),se(s,l[0]),J(s,s,m),o(s,D)&&J(l[0],l[0],M),se(s,l[0]),J(s,s,m),o(s,D)?-1:(A(l[0])===C[31]>>7&&W(l[0],y,l[0]),J(l[3],l[0],l[1]),0)}function He(l,C,w,s){var D,m=new Uint8Array(32),z=new Uint8Array(64),L=[t(),t(),t(),t()],V=[t(),t(),t(),t()];if(w<64||l0(V,s))return-1;for(D=0;D<w;D++)l[D]=C[D];for(D=0;D<32;D++)l[D+32]=s[D];if(Ne(z,l,w),u0(z),D0(L,V,z),Je(V,C.subarray(32)),N0(L,V),Fe(m,L),w-=64,q(C,0,m,0)){for(D=0;D<w;D++)l[D]=0;return-1}for(D=0;D<w;D++)l[D]=C[D+64];return w}var L0=32,a0=24,r0=32,$0=16,n0=32,s0=32,j0=32,e0=32,f0=32,H0=a0,o0=r0,x0=$0,R0=64,t0=32,Ve=64,it=32,c0=64;e.lowlevel={crypto_core_hsalsa20:H,crypto_stream_xor:$,crypto_stream:Q,crypto_stream_salsa20_xor:K,crypto_stream_salsa20:X,crypto_onetimeauth:f,crypto_onetimeauth_verify:h,crypto_verify_16:k,crypto_verify_32:q,crypto_secretbox:p,crypto_secretbox_open:g,crypto_scalarmult:Ce,crypto_scalarmult_base:we,crypto_box_beforenm:Pe,crypto_box_afternm:Me,crypto_box:Ge,crypto_box_open:Ye,crypto_box_keypair:_0,crypto_hash:Ne,crypto_sign:J0,crypto_sign_keypair:i0,crypto_sign_open:He,crypto_secretbox_KEYBYTES:L0,crypto_secretbox_NONCEBYTES:a0,crypto_secretbox_ZEROBYTES:r0,crypto_secretbox_BOXZEROBYTES:$0,crypto_scalarmult_BYTES:n0,crypto_scalarmult_SCALARBYTES:s0,crypto_box_PUBLICKEYBYTES:j0,crypto_box_SECRETKEYBYTES:e0,crypto_box_BEFORENMBYTES:f0,crypto_box_NONCEBYTES:H0,crypto_box_ZEROBYTES:o0,crypto_box_BOXZEROBYTES:x0,crypto_sign_BYTES:R0,crypto_sign_PUBLICKEYBYTES:t0,crypto_sign_SECRETKEYBYTES:Ve,crypto_sign_SEEDBYTES:it,crypto_hash_BYTES:c0,gf:t,D:c,L:F0,pack25519:S,unpack25519:Y,M:J,A:j,S:se,Z:W,pow2523:ge,add:N0,set25519:E,modL:Le,scalarmult:D0,scalarbase:Je};function d0(l,C){if(l.length!==L0)throw new Error("bad key size");if(C.length!==a0)throw new Error("bad nonce size")}function gt(l,C){if(l.length!==j0)throw new Error("bad public key size");if(C.length!==e0)throw new Error("bad secret key size")}function Oe(){for(var l=0;l<arguments.length;l++)if(!(arguments[l]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function Ie(l){for(var C=0;C<l.length;C++)l[C]=0}e.randomBytes=function(l){var C=new Uint8Array(l);return r(C,l),C},e.secretbox=function(l,C,w){Oe(l,C,w),d0(w,C);for(var s=new Uint8Array(r0+l.length),D=new Uint8Array(s.length),m=0;m<l.length;m++)s[m+r0]=l[m];return p(D,s,s.length,C,w),D.subarray($0)},e.secretbox.open=function(l,C,w){Oe(l,C,w),d0(w,C);for(var s=new Uint8Array($0+l.length),D=new Uint8Array(s.length),m=0;m<l.length;m++)s[m+$0]=l[m];return s.length<32||g(D,s,s.length,C,w)!==0?null:D.subarray(r0)},e.secretbox.keyLength=L0,e.secretbox.nonceLength=a0,e.secretbox.overheadLength=$0,e.scalarMult=function(l,C){if(Oe(l,C),l.length!==s0)throw new Error("bad n size");if(C.length!==n0)throw new Error("bad p size");var w=new Uint8Array(n0);return Ce(w,l,C),w},e.scalarMult.base=function(l){if(Oe(l),l.length!==s0)throw new Error("bad n size");var C=new Uint8Array(n0);return we(C,l),C},e.scalarMult.scalarLength=s0,e.scalarMult.groupElementLength=n0,e.box=function(l,C,w,s){var D=e.box.before(w,s);return e.secretbox(l,C,D)},e.box.before=function(l,C){Oe(l,C),gt(l,C);var w=new Uint8Array(f0);return Pe(w,l,C),w},e.box.after=e.secretbox,e.box.open=function(l,C,w,s){var D=e.box.before(w,s);return e.secretbox.open(l,C,D)},e.box.open.after=e.secretbox.open,e.box.keyPair=function(){var l=new Uint8Array(j0),C=new Uint8Array(e0);return _0(l,C),{publicKey:l,secretKey:C}},e.box.keyPair.fromSecretKey=function(l){if(Oe(l),l.length!==e0)throw new Error("bad secret key size");var C=new Uint8Array(j0);return we(C,l),{publicKey:C,secretKey:new Uint8Array(l)}},e.box.publicKeyLength=j0,e.box.secretKeyLength=e0,e.box.sharedKeyLength=f0,e.box.nonceLength=H0,e.box.overheadLength=e.secretbox.overheadLength,e.sign=function(l,C){if(Oe(l,C),C.length!==Ve)throw new Error("bad secret key size");var w=new Uint8Array(R0+l.length);return J0(w,l,l.length,C),w},e.sign.open=function(l,C){if(Oe(l,C),C.length!==t0)throw new Error("bad public key size");var w=new Uint8Array(l.length),s=He(w,l,l.length,C);if(s<0)return null;for(var D=new Uint8Array(s),m=0;m<D.length;m++)D[m]=w[m];return D},e.sign.detached=function(l,C){for(var w=e.sign(l,C),s=new Uint8Array(R0),D=0;D<s.length;D++)s[D]=w[D];return s},e.sign.detached.verify=function(l,C,w){if(Oe(l,C,w),C.length!==R0)throw new Error("bad signature size");if(w.length!==t0)throw new Error("bad public key size");var s=new Uint8Array(R0+l.length),D=new Uint8Array(R0+l.length),m;for(m=0;m<R0;m++)s[m]=C[m];for(m=0;m<l.length;m++)s[m+R0]=l[m];return He(D,s,s.length,w)>=0},e.sign.keyPair=function(){var l=new Uint8Array(t0),C=new Uint8Array(Ve);return i0(l,C),{publicKey:l,secretKey:C}},e.sign.keyPair.fromSecretKey=function(l){if(Oe(l),l.length!==Ve)throw new Error("bad secret key size");for(var C=new Uint8Array(t0),w=0;w<C.length;w++)C[w]=l[32+w];return{publicKey:C,secretKey:new Uint8Array(l)}},e.sign.keyPair.fromSeed=function(l){if(Oe(l),l.length!==it)throw new Error("bad seed size");for(var C=new Uint8Array(t0),w=new Uint8Array(Ve),s=0;s<32;s++)w[s]=l[s];return i0(C,w,!0),{publicKey:C,secretKey:w}},e.sign.publicKeyLength=t0,e.sign.secretKeyLength=Ve,e.sign.seedLength=it,e.sign.signatureLength=R0,e.hash=function(l){Oe(l);var C=new Uint8Array(c0);return Ne(C,l,l.length),C},e.hash.hashLength=c0,e.verify=function(l,C){return Oe(l,C),l.length===0||C.length===0||l.length!==C.length?!1:R(l,0,C,0,l.length)===0},e.setPRNG=function(l){r=l},function(){var l=typeof self<"u"?self.crypto||self.msCrypto:null;if(l&&l.getRandomValues){var C=65536;e.setPRNG(function(w,s){var D,m=new Uint8Array(s);for(D=0;D<s;D+=C)l.getRandomValues(m.subarray(D,D+Math.min(s-D,C)));for(D=0;D<s;D++)w[D]=m[D];Ie(m)})}else typeof yf<"u"&&(l=wr,l&&l.randomBytes&&e.setPRNG(function(w,s){var D,m=l.randomBytes(s);for(D=0;D<s;D++)w[D]=m[D];Ie(m)}))}()})(i.exports?i.exports:self.nacl=self.nacl||{})})(Xf);var Ec=Xf.exports;const Jt=$i(Ec);class wc{string(e){let t;return typeof e=="object"&&e!==null?t=JSON.stringify(e):t=String(e),this.stringToUnicode(t.replace(/\//g,"\\/"))}stringToByte(e){const t=new Uint8Array(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}stringToUnicode(e){return e?Array.prototype.map.call(e,t=>{const r=t.charCodeAt(0).toString(16);return r.length>2?"\\u"+r:t}).join(""):""}byteToHex(e){return e?Array.prototype.map.call(e,t=>("0"+(t&255).toString(16)).slice(-2)).join("").toLowerCase():""}hexToByte(e){if(!e)return new Uint8Array;const t=[];for(let r=0,a=e.length;r<a;r+=2)t.push(parseInt(e.slice(r,r+2),16));return new Uint8Array(t)}isHex(e){return typeof e!="string"?!1:/^[0-9a-fA-F]+$/.test(e)&&e.length%2===0}}const q0=new wc;class Bc{string(e){return q0.string(e)}crypto(e,t){return K0[e](t).toString(K0.enc.Hex)}hash(e){return this.crypto("SHA256",this.string(e))}shortHash(e){return this.crypto("RIPEMD160",this.hash(e))}checksum(e){return this.hash(this.hash(e)).slice(0,4)}idHash(e){const t=this.shortHash(e);return t+this.checksum(t)}isHex(e){return q0.isHex(e)}}const ir=new Bc;class Cc{constructor(){Bt(this,"KEY_SIZE");Bt(this,"SIGNATURE_SIZE");this.KEY_SIZE=64,this.SIGNATURE_SIZE=128}keyPair(){const e=Jt.sign.keyPair();return{private_key:q0.byteToHex(e.secretKey).slice(0,this.KEY_SIZE),public_key:q0.byteToHex(e.publicKey),address:this.address(q0.byteToHex(e.publicKey))}}privateKey(){return q0.byteToHex(Jt.sign.keyPair().secretKey).slice(0,this.KEY_SIZE)}publicKey(e){return q0.byteToHex(Jt.sign.keyPair.fromSeed(q0.hexToByte(e)).publicKey)}address(e){return ir.idHash(e)}signature(e,t){return q0.byteToHex(Jt.sign.detached(q0.stringToByte(ir.string(e)),q0.hexToByte(t+this.publicKey(t))))}signatureValidity(e,t,r){return r.length===this.SIGNATURE_SIZE&&ir.isHex(r)===!0&&Jt.sign.detached.verify(q0.stringToByte(ir.string(e)),q0.hexToByte(r),q0.hexToByte(t))}}const Er=new Cc;class Mc{constructor(){Bt(this,"ec");this.ec=new _f.ec("secp256k1")}xphereSign(e,t){return Er.signature(e,t)}xphereVerify(e,t,r){return Er.signatureValidity(e,t,r)}generateKeys(){const e=this.ec.genKeyPair(),t=e.getPrivate("hex"),r=e.getPublic("hex");return{privateKey:t,publicKey:r}}sign(e,t){return this.ec.keyFromPrivate(t,"hex").sign(e)}verify(e,t,r){return this.ec.keyFromPublic(r,"hex").verify(e,t)}encrypt(e,t){return K0.AES.encrypt(e,t).toString()}decrypt(e,t){return K0.AES.decrypt(e,t).toString(K0.enc.Utf8)}generateNonce(e){return K0.lib.WordArray.random(e).toString(K0.enc.Hex)}}const Gi=new Mc,ht=Object.create(null);ht.open="0";ht.close="1";ht.ping="2";ht.pong="3";ht.message="4";ht.upgrade="5";ht.noop="6";const ur=Object.create(null);Object.keys(ht).forEach(i=>{ur[ht[i]]=i});const Ii={type:"error",data:"parser error"},Zf=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Gf=typeof ArrayBuffer=="function",Qf=i=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(i):i&&i.buffer instanceof ArrayBuffer,Qi=({type:i,data:e},t,r)=>Zf&&e instanceof Blob?t?r(e):ef(e,r):Gf&&(e instanceof ArrayBuffer||Qf(e))?t?r(e):ef(new Blob([e]),r):r(ht[i]+(e||"")),ef=(i,e)=>{const t=new FileReader;return t.onload=function(){const r=t.result.split(",")[1];e("b"+(r||""))},t.readAsDataURL(i)};function tf(i){return i instanceof Uint8Array?i:i instanceof ArrayBuffer?new Uint8Array(i):new Uint8Array(i.buffer,i.byteOffset,i.byteLength)}let Mi;function Sc(i,e){if(Zf&&i.data instanceof Blob)return i.data.arrayBuffer().then(tf).then(e);if(Gf&&(i.data instanceof ArrayBuffer||Qf(i.data)))return e(tf(i.data));Qi(i,!1,t=>{Mi||(Mi=new TextEncoder),e(Mi.encode(t))})}const rf="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",nr=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let i=0;i<rf.length;i++)nr[rf.charCodeAt(i)]=i;const Dc=i=>{let e=i.length*.75,t=i.length,r,a=0,n,y,x,u;i[i.length-1]==="="&&(e--,i[i.length-2]==="="&&e--);const c=new ArrayBuffer(e),d=new Uint8Array(c);for(r=0;r<t;r+=4)n=nr[i.charCodeAt(r)],y=nr[i.charCodeAt(r+1)],x=nr[i.charCodeAt(r+2)],u=nr[i.charCodeAt(r+3)],d[a++]=n<<2|y>>4,d[a++]=(y&15)<<4|x>>2,d[a++]=(x&3)<<6|u&63;return c},Fc=typeof ArrayBuffer=="function",Ji=(i,e)=>{if(typeof i!="string")return{type:"message",data:Jf(i,e)};const t=i.charAt(0);return t==="b"?{type:"message",data:Rc(i.substring(1),e)}:ur[t]?i.length>1?{type:ur[t],data:i.substring(1)}:{type:ur[t]}:Ii},Rc=(i,e)=>{if(Fc){const t=Dc(i);return Jf(t,e)}else return{base64:!0,data:i}},Jf=(i,e)=>{switch(e){case"blob":return i instanceof Blob?i:new Blob([i]);case"arraybuffer":default:return i instanceof ArrayBuffer?i:i.buffer}},ea="",kc=(i,e)=>{const t=i.length,r=new Array(t);let a=0;i.forEach((n,y)=>{Qi(n,!1,x=>{r[y]=x,++a===t&&e(r.join(ea))})})},Pc=(i,e)=>{const t=i.split(ea),r=[];for(let a=0;a<t.length;a++){const n=Ji(t[a],e);if(r.push(n),n.type==="error")break}return r};function Ic(){return new TransformStream({transform(i,e){Sc(i,t=>{const r=t.length;let a;if(r<126)a=new Uint8Array(1),new DataView(a.buffer).setUint8(0,r);else if(r<65536){a=new Uint8Array(3);const n=new DataView(a.buffer);n.setUint8(0,126),n.setUint16(1,r)}else{a=new Uint8Array(9);const n=new DataView(a.buffer);n.setUint8(0,127),n.setBigUint64(1,BigInt(r))}i.data&&typeof i.data!="string"&&(a[0]|=128),e.enqueue(a),e.enqueue(t)})}})}let Si;function or(i){return i.reduce((e,t)=>e+t.length,0)}function cr(i,e){if(i[0].length===e)return i.shift();const t=new Uint8Array(e);let r=0;for(let a=0;a<e;a++)t[a]=i[0][r++],r===i[0].length&&(i.shift(),r=0);return i.length&&r<i[0].length&&(i[0]=i[0].slice(r)),t}function Tc(i,e){Si||(Si=new TextDecoder);const t=[];let r=0,a=-1,n=!1;return new TransformStream({transform(y,x){for(t.push(y);;){if(r===0){if(or(t)<1)break;const u=cr(t,1);n=(u[0]&128)===128,a=u[0]&127,a<126?r=3:a===126?r=1:r=2}else if(r===1){if(or(t)<2)break;const u=cr(t,2);a=new DataView(u.buffer,u.byteOffset,u.length).getUint16(0),r=3}else if(r===2){if(or(t)<8)break;const u=cr(t,8),c=new DataView(u.buffer,u.byteOffset,u.length),d=c.getUint32(0);if(d>Math.pow(2,21)-1){x.enqueue(Ii);break}a=d*Math.pow(2,32)+c.getUint32(4),r=3}else{if(or(t)<a)break;const u=cr(t,a);x.enqueue(Ji(n?u:Si.decode(u),e)),r=0}if(a===0||a>i){x.enqueue(Ii);break}}}})}const ta=4;function E0(i){if(i)return Oc(i)}function Oc(i){for(var e in E0.prototype)i[e]=E0.prototype[e];return i}E0.prototype.on=E0.prototype.addEventListener=function(i,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+i]=this._callbacks["$"+i]||[]).push(e),this};E0.prototype.once=function(i,e){function t(){this.off(i,t),e.apply(this,arguments)}return t.fn=e,this.on(i,t),this};E0.prototype.off=E0.prototype.removeListener=E0.prototype.removeAllListeners=E0.prototype.removeEventListener=function(i,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var t=this._callbacks["$"+i];if(!t)return this;if(arguments.length==1)return delete this._callbacks["$"+i],this;for(var r,a=0;a<t.length;a++)if(r=t[a],r===e||r.fn===e){t.splice(a,1);break}return t.length===0&&delete this._callbacks["$"+i],this};E0.prototype.emit=function(i){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),t=this._callbacks["$"+i],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(t){t=t.slice(0);for(var r=0,a=t.length;r<a;++r)t[r].apply(this,e)}return this};E0.prototype.emitReserved=E0.prototype.emit;E0.prototype.listeners=function(i){return this._callbacks=this._callbacks||{},this._callbacks["$"+i]||[]};E0.prototype.hasListeners=function(i){return!!this.listeners(i).length};const X0=typeof self<"u"?self:typeof window<"u"?window:Function("return this")();function ra(i,...e){return e.reduce((t,r)=>(i.hasOwnProperty(r)&&(t[r]=i[r]),t),{})}const zc=X0.setTimeout,Nc=X0.clearTimeout;function zr(i,e){e.useNativeTimers?(i.setTimeoutFn=zc.bind(X0),i.clearTimeoutFn=Nc.bind(X0)):(i.setTimeoutFn=X0.setTimeout.bind(X0),i.clearTimeoutFn=X0.clearTimeout.bind(X0))}const qc=1.33;function Lc(i){return typeof i=="string"?$c(i):Math.ceil((i.byteLength||i.size)*qc)}function $c(i){let e=0,t=0;for(let r=0,a=i.length;r<a;r++)e=i.charCodeAt(r),e<128?t+=1:e<2048?t+=2:e<55296||e>=57344?t+=3:(r++,t+=4);return t}function Hc(i){let e="";for(let t in i)i.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(i[t]));return e}function Uc(i){let e={},t=i.split("&");for(let r=0,a=t.length;r<a;r++){let n=t[r].split("=");e[decodeURIComponent(n[0])]=decodeURIComponent(n[1])}return e}class Wc extends Error{constructor(e,t,r){super(e),this.description=t,this.context=r,this.type="TransportError"}}class en extends E0{constructor(e){super(),this.writable=!1,zr(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,t,r){return super.emitReserved("error",new Wc(e,t,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=Ji(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){const t=Hc(e);return t.length?"?"+t:""}}const ia="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),Ti=64,Yc={};let nf=0,dr=0,ff;function af(i){let e="";do e=ia[i%Ti]+e,i=Math.floor(i/Ti);while(i>0);return e}function na(){const i=af(+new Date);return i!==ff?(nf=0,ff=i):i+"."+af(nf++)}for(;dr<Ti;dr++)Yc[ia[dr]]=dr;let fa=!1;try{fa=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const jc=fa;function aa(i){const e=i.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||jc))return new XMLHttpRequest}catch{}if(!e)try{return new X0[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function Kc(){}const Vc=function(){return new aa({xdomain:!1}).responseType!=null}();class Xc extends en{constructor(e){if(super(e),this.polling=!1,typeof location<"u"){const r=location.protocol==="https:";let a=location.port;a||(a=r?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||a!==e.port}const t=e&&e.forceBase64;this.supportsBinary=Vc&&!t,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||t()})),this.writable||(r++,this.once("drain",function(){--r||t()}))}else t()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const t=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};Pc(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,kc(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=na()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new st(this.uri(),e)}doWrite(e,t){const r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",(a,n)=>{this.onError("xhr post error",a,n)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,r)=>{this.onError("xhr poll error",t,r)}),this.pollXhr=e}}class st extends E0{constructor(e,t){super(),zr(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.data=t.data!==void 0?t.data:null,this.create()}create(){var e;const t=ra(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd;const r=this.xhr=new aa(t);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let a in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(a)&&r.setRequestHeader(a,this.opts.extraHeaders[a])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(e=this.opts.cookieJar)===null||e===void 0||e.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var a;r.readyState===3&&((a=this.opts.cookieJar)===null||a===void 0||a.parseCookies(r)),r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},r.send(this.data)}catch(a){this.setTimeoutFn(()=>{this.onError(a)},0);return}typeof document<"u"&&(this.index=st.requestsCount++,st.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=Kc,e)try{this.xhr.abort()}catch{}typeof document<"u"&&delete st.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}st.requestsCount=0;st.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",sf);else if(typeof addEventListener=="function"){const i="onpagehide"in X0?"pagehide":"unload";addEventListener(i,sf,!1)}}function sf(){for(let i in st.requests)st.requests.hasOwnProperty(i)&&st.requests[i].abort()}const tn=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0),hr=X0.WebSocket||X0.MozWebSocket,of=!0,Zc="arraybuffer",cf=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Gc extends en{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,r=cf?{}:ra(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=of&&!cf?t?new hr(e,t):new hr(e):new hr(e,t,r)}catch(a){return this.emitReserved("error",a)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const r=e[t],a=t===e.length-1;Qi(r,this.supportsBinary,n=>{const y={};try{of&&this.ws.send(n)}catch{}a&&tn(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=na()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!hr}}class Qc extends en{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(e=>{const t=Tc(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(t).getReader(),a=Ic();a.readable.pipeTo(e.writable),this.writer=a.writable.getWriter();const n=()=>{r.read().then(({done:x,value:u})=>{x||(this.onPacket(u),n())}).catch(x=>{})};n();const y={type:"open"};this.query.sid&&(y.data=`{"sid":"${this.query.sid}"}`),this.writer.write(y).then(()=>this.onOpen())})}))}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const r=e[t],a=t===e.length-1;this.writer.write(r).then(()=>{a&&tn(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this.transport)===null||e===void 0||e.close()}}const Jc={websocket:Gc,webtransport:Qc,polling:Xc},ed=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,td=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Oi(i){if(i.length>2e3)throw"URI too long";const e=i,t=i.indexOf("["),r=i.indexOf("]");t!=-1&&r!=-1&&(i=i.substring(0,t)+i.substring(t,r).replace(/:/g,";")+i.substring(r,i.length));let a=ed.exec(i||""),n={},y=14;for(;y--;)n[td[y]]=a[y]||"";return t!=-1&&r!=-1&&(n.source=e,n.host=n.host.substring(1,n.host.length-1).replace(/;/g,":"),n.authority=n.authority.replace("[","").replace("]","").replace(/;/g,":"),n.ipv6uri=!0),n.pathNames=rd(n,n.path),n.queryKey=id(n,n.query),n}function rd(i,e){const t=/\/{2,9}/g,r=e.replace(t,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&r.splice(0,1),e.slice(-1)=="/"&&r.splice(r.length-1,1),r}function id(i,e){const t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,a,n){a&&(t[a]=n)}),t}let sa=class Ot extends E0{constructor(e,t={}){super(),this.binaryType=Zc,this.writeBuffer=[],e&&typeof e=="object"&&(t=e,e=null),e?(e=Oi(e),t.hostname=e.host,t.secure=e.protocol==="https"||e.protocol==="wss",t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=Oi(t.host).host),zr(this,t),this.secure=t.secure!=null?t.secure:typeof location<"u"&&location.protocol==="https:",t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=t.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Uc(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=ta,t.transport=e,this.id&&(t.sid=this.id);const r=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new Jc[e](r)}open(){let e;if(this.opts.rememberUpgrade&&Ot.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)e="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch{this.transports.shift(),this.open();return}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",t=>this.onClose("transport close",t))}probe(e){let t=this.createTransport(e),r=!1;Ot.priorWebsocketSuccess=!1;const a=()=>{r||(t.send([{type:"ping",data:"probe"}]),t.once("packet",v=>{if(!r)if(v.type==="pong"&&v.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;Ot.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(d(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const b=new Error("probe error");b.transport=t.name,this.emitReserved("upgradeError",b)}}))};function n(){r||(r=!0,d(),t.close(),t=null)}const y=v=>{const b=new Error("probe error: "+v);b.transport=t.name,n(),this.emitReserved("upgradeError",b)};function x(){y("transport closed")}function u(){y("socket closed")}function c(v){t&&v.name!==t.name&&n()}const d=()=>{t.removeListener("open",a),t.removeListener("error",y),t.removeListener("close",x),this.off("close",u),this.off("upgrading",c)};t.once("open",a),t.once("error",y),t.once("close",x),this.once("close",u),this.once("upgrading",c),this.upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{r||t.open()},200):t.open()}onOpen(){if(this.readyState="open",Ot.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let e=0;const t=this.upgrades.length;for(;e<t;e++)this.probe(this.upgrades[e])}}onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),this.resetPingTimeout(),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let r=0;r<this.writeBuffer.length;r++){const a=this.writeBuffer[r].data;if(a&&(t+=Lc(a)),r>0&&t>this.maxPayload)return this.writeBuffer.slice(0,r);t+=2}return this.writeBuffer}write(e,t,r){return this.sendPacket("message",e,t,r),this}send(e,t,r){return this.sendPacket("message",e,t,r),this}sendPacket(e,t,r,a){if(typeof t=="function"&&(a=t,t=void 0),typeof r=="function"&&(a=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const n={type:e,data:t,options:r};this.emitReserved("packetCreate",n),this.writeBuffer.push(n),a&&this.once("flush",a),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},r=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():e()}):this.upgrading?r():e()),this}onError(e){Ot.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let r=0;const a=e.length;for(;r<a;r++)~this.transports.indexOf(e[r])&&t.push(e[r]);return t}};sa.protocol=ta;function nd(i,e="",t){let r=i;t=t||typeof location<"u"&&location,i==null&&(i=t.protocol+"//"+t.host),typeof i=="string"&&(i.charAt(0)==="/"&&(i.charAt(1)==="/"?i=t.protocol+i:i=t.host+i),/^(https?|wss?):\/\//.test(i)||(typeof t<"u"?i=t.protocol+"//"+i:i="https://"+i),r=Oi(i)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const n=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+n+":"+r.port+e,r.href=r.protocol+"://"+n+(t&&t.port===r.port?"":":"+r.port),r}const fd=typeof ArrayBuffer=="function",ad=i=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(i):i.buffer instanceof ArrayBuffer,oa=Object.prototype.toString,sd=typeof Blob=="function"||typeof Blob<"u"&&oa.call(Blob)==="[object BlobConstructor]",od=typeof File=="function"||typeof File<"u"&&oa.call(File)==="[object FileConstructor]";function rn(i){return fd&&(i instanceof ArrayBuffer||ad(i))||sd&&i instanceof Blob||od&&i instanceof File}function lr(i,e){if(!i||typeof i!="object")return!1;if(Array.isArray(i)){for(let t=0,r=i.length;t<r;t++)if(lr(i[t]))return!0;return!1}if(rn(i))return!0;if(i.toJSON&&typeof i.toJSON=="function"&&arguments.length===1)return lr(i.toJSON(),!0);for(const t in i)if(Object.prototype.hasOwnProperty.call(i,t)&&lr(i[t]))return!0;return!1}function cd(i){const e=[],t=i.data,r=i;return r.data=zi(t,e),r.attachments=e.length,{packet:r,buffers:e}}function zi(i,e){if(!i)return i;if(rn(i)){const t={_placeholder:!0,num:e.length};return e.push(i),t}else if(Array.isArray(i)){const t=new Array(i.length);for(let r=0;r<i.length;r++)t[r]=zi(i[r],e);return t}else if(typeof i=="object"&&!(i instanceof Date)){const t={};for(const r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=zi(i[r],e));return t}return i}function dd(i,e){return i.data=Ni(i.data,e),delete i.attachments,i}function Ni(i,e){if(!i)return i;if(i&&i._placeholder===!0){if(typeof i.num=="number"&&i.num>=0&&i.num<e.length)return e[i.num];throw new Error("illegal attachments")}else if(Array.isArray(i))for(let t=0;t<i.length;t++)i[t]=Ni(i[t],e);else if(typeof i=="object")for(const t in i)Object.prototype.hasOwnProperty.call(i,t)&&(i[t]=Ni(i[t],e));return i}const hd=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],ud=5;var Ue;(function(i){i[i.CONNECT=0]="CONNECT",i[i.DISCONNECT=1]="DISCONNECT",i[i.EVENT=2]="EVENT",i[i.ACK=3]="ACK",i[i.CONNECT_ERROR=4]="CONNECT_ERROR",i[i.BINARY_EVENT=5]="BINARY_EVENT",i[i.BINARY_ACK=6]="BINARY_ACK"})(Ue||(Ue={}));class ld{constructor(e){this.replacer=e}encode(e){return(e.type===Ue.EVENT||e.type===Ue.ACK)&&lr(e)?this.encodeAsBinary({type:e.type===Ue.EVENT?Ue.BINARY_EVENT:Ue.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===Ue.BINARY_EVENT||e.type===Ue.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(t+=e.nsp+","),e.id!=null&&(t+=e.id),e.data!=null&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){const t=cd(e),r=this.encodeAsString(t.packet),a=t.buffers;return a.unshift(r),a}}function df(i){return Object.prototype.toString.call(i)==="[object Object]"}class nn extends E0{constructor(e){super(),this.reviver=e}add(e){let t;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);const r=t.type===Ue.BINARY_EVENT;r||t.type===Ue.BINARY_ACK?(t.type=r?Ue.EVENT:Ue.ACK,this.reconstructor=new xd(t),t.attachments===0&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else if(rn(e)||e.base64)if(this.reconstructor)t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let t=0;const r={type:Number(e.charAt(0))};if(Ue[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===Ue.BINARY_EVENT||r.type===Ue.BINARY_ACK){const n=t+1;for(;e.charAt(++t)!=="-"&&t!=e.length;);const y=e.substring(n,t);if(y!=Number(y)||e.charAt(t)!=="-")throw new Error("Illegal attachments");r.attachments=Number(y)}if(e.charAt(t+1)==="/"){const n=t+1;for(;++t&&!(e.charAt(t)===","||t===e.length););r.nsp=e.substring(n,t)}else r.nsp="/";const a=e.charAt(t+1);if(a!==""&&Number(a)==a){const n=t+1;for(;++t;){const y=e.charAt(t);if(y==null||Number(y)!=y){--t;break}if(t===e.length)break}r.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){const n=this.tryParse(e.substr(t));if(nn.isPayloadValid(r.type,n))r.data=n;else throw new Error("invalid payload")}return r}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,t){switch(e){case Ue.CONNECT:return df(t);case Ue.DISCONNECT:return t===void 0;case Ue.CONNECT_ERROR:return typeof t=="string"||df(t);case Ue.EVENT:case Ue.BINARY_EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&hd.indexOf(t[0])===-1);case Ue.ACK:case Ue.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class xd{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const t=dd(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const vd=Object.freeze(Object.defineProperty({__proto__:null,Decoder:nn,Encoder:ld,get PacketType(){return Ue},protocol:ud},Symbol.toStringTag,{value:"Module"}));function tt(i,e,t){return i.on(e,t),function(){i.off(e,t)}}const bd=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class ca extends E0{constructor(e,t,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[tt(e,"open",this.onopen.bind(this)),tt(e,"packet",this.onpacket.bind(this)),tt(e,"error",this.onerror.bind(this)),tt(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){if(bd.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;const r={type:Ue.EVENT,data:t};if(r.options={},r.options.compress=this.flags.compress!==!1,typeof t[t.length-1]=="function"){const y=this.ids++,x=t.pop();this._registerAckCallback(y,x),r.id=y}const a=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!a||!this.connected)||(this.connected?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}_registerAckCallback(e,t){var r;const a=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(a===void 0){this.acks[e]=t;return}const n=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let x=0;x<this.sendBuffer.length;x++)this.sendBuffer[x].id===e&&this.sendBuffer.splice(x,1);t.call(this,new Error("operation has timed out"))},a),y=(...x)=>{this.io.clearTimeoutFn(n),t.apply(this,x)};y.withError=!0,this.acks[e]=y}emitWithAck(e,...t){return new Promise((r,a)=>{const n=(y,x)=>y?a(y):r(x);n.withError=!0,t.push(n),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]=="function"&&(t=e.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((a,...n)=>r!==this._queue[0]?void 0:(a!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(a)):(this._queue.shift(),t&&t(null,...n)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:Ue.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(r=>String(r.id)===e)){const r=this.acks[e];delete this.acks[e],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case Ue.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Ue.EVENT:case Ue.BINARY_EVENT:this.onevent(e);break;case Ue.ACK:case Ue.BINARY_ACK:this.onack(e);break;case Ue.DISCONNECT:this.ondisconnect();break;case Ue.CONNECT_ERROR:this.destroy();const r=new Error(e.data.message);r.data=e.data.data,this.emitReserved("connect_error",r);break}}onevent(e){const t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const r of t)r.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let r=!1;return function(...a){r||(r=!0,t.packet({type:Ue.ACK,id:e,data:a}))}}onack(e){const t=this.acks[e.id];typeof t=="function"&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ue.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let r=0;r<t.length;r++)if(e===t[r])return t.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let r=0;r<t.length;r++)if(e===t[r])return t.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const r of t)r.apply(this,e.data)}}}function Vt(i){i=i||{},this.ms=i.min||100,this.max=i.max||1e4,this.factor=i.factor||2,this.jitter=i.jitter>0&&i.jitter<=1?i.jitter:0,this.attempts=0}Vt.prototype.duration=function(){var i=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),t=Math.floor(e*this.jitter*i);i=Math.floor(e*10)&1?i+t:i-t}return Math.min(i,this.max)|0};Vt.prototype.reset=function(){this.attempts=0};Vt.prototype.setMin=function(i){this.ms=i};Vt.prototype.setMax=function(i){this.max=i};Vt.prototype.setJitter=function(i){this.jitter=i};class qi extends E0{constructor(e,t){var r;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,zr(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor((r=t.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Vt({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;const a=t.parser||vd;this.encoder=new a.Encoder,this.decoder=new a.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)===null||t===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new sa(this.uri,this.opts);const t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const a=tt(t,"open",function(){r.onopen(),e&&e()}),n=x=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",x),e?e(x):this.maybeReconnectOnOpen()},y=tt(t,"error",n);if(this._timeout!==!1){const x=this._timeout,u=this.setTimeoutFn(()=>{a(),n(new Error("timeout")),t.close()},x);this.opts.autoUnref&&u.unref(),this.subs.push(()=>{this.clearTimeoutFn(u)})}return this.subs.push(a),this.subs.push(y),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(tt(e,"ping",this.onping.bind(this)),tt(e,"data",this.ondata.bind(this)),tt(e,"error",this.onerror.bind(this)),tt(e,"close",this.onclose.bind(this)),tt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){tn(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new ca(this,e,t),this.nsps[e]=r),r}_destroy(e){const t=Object.keys(this.nsps);for(const r of t)if(this.nsps[r].active)return;this._close()}_packet(e){const t=this.encoder.encode(e);for(let r=0;r<t.length;r++)this.engine.write(t[r],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(a=>{a?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",a)):e.onreconnect()}))},t);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const er={};function xr(i,e){typeof i=="object"&&(e=i,i=void 0),e=e||{};const t=nd(i,e.path||"/socket.io"),r=t.source,a=t.id,n=t.path,y=er[a]&&n in er[a].nsps,x=e.forceNew||e["force new connection"]||e.multiplex===!1||y;let u;return x?u=new qi(r,e):(er[a]||(er[a]=new qi(r,e)),u=er[a]),t.query&&!e.query&&(e.query=t.queryKey),u.socket(t.path,e)}Object.assign(xr,{Manager:qi,Socket:ca,io:xr,connect:xr});const pd="https://ws.zigap.io",Mt=class Mt{constructor(){Bt(this,"socket");this.socket=xr(pd)}static getInstance(){return Mt.instance||(Mt.instance=new Mt),Mt.instance}};Bt(Mt,"instance");let Li=Mt;class yd{constructor(){Bt(this,"socketInstance");this.socketInstance=Li.getInstance()}joinRoom(e){this.socketInstance.socket.emit("joinRoom",e)}leaveRoom(e){this.socketInstance.socket.emit("leaveRoom",e),this.socketInstance.socket.disconnect()}confirmMessage(e,t){return this.socketInstance.socket.emit("confirmMessage",e,t)}onMessageReceived(e,t){e==="accountInfo"?this.socketInstance.socket.on("accountInfo",r=>{t(r)}):e==="requestMessage"?this.socketInstance.socket.on("requestMessage",r=>{t(r)}):e==="addressProvide"&&this.socketInstance.socket.on("addressProvide",r=>{t(r)})}offMessageReceived(e){e==="accountInfo"?this.socketInstance.socket.off("accountInfo"):e==="requestMessage"?this.socketInstance.socket.off("requestMessage"):e==="addressProvide"&&this.socketInstance.socket.off("addressProvide")}}const vt=new yd;class gd{isAccountCryptoType(e){return typeof e=="object"&&e!==null&&typeof e.signature=="string"&&typeof e.publicKey=="string"&&typeof e.address=="string"&&typeof e.network=="string"&&typeof e.nickName=="string"&&typeof e.etc=="string"}getAccountCrypto(){return new Promise((e,t)=>{vt.onMessageReceived("accountInfo",r=>{this.isAccountCryptoType(r)?e(r):t(new Error("Invalid account crypto"))})})}reciveRequest(){return new Promise((e,t)=>{vt.onMessageReceived("requestMessage",r=>{r.message==="Request Message"?e(!0):t(new Error("Request message is different"))})})}sendMessage(e,t){return new Promise((r,a)=>{vt.confirmMessage(e,t).connected?r():a(new Error("Send failed"))})}async qrLogin(e,t,r){try{if(await this.reciveRequest()){t=`${t}
52
52
 
53
- Nonce: ${r}`,await this.sendMessage(e,t);const{publicKey:n,signature:y,address:x,network:u,nickName:c}=await this.getAccountCrypto();if(!Gi.xphereVerify(t,n,y))throw new Error("Verification failed");return{address:x,network:u,signature:y,publicKey:n,nickName:c}}else throw new Error("Verification failed")}catch(a){return Promise.reject(a)}finally{vt.leaveRoom(e)}}}const md=new gd;class _d{generateQrCode(e,t,r,a){const n=K0.lib.WordArray.random(16).toString(K0.enc.Hex);let y="";return e==="login"?y=`https://zigap.io/qrCode/scan?type=login&roomId=${n}&dapp=${t}&url=${r}&network=${a}`:e==="send"?y=`zigap://send?roomId=${n}&dapp=${t}`:e==="provide"&&(y=`zigap://provide?roomId=${n}&dapp=${t}`),vt.joinRoom(n),{qrCode:y,roomId:n}}}const fn=new _d;var da={exports:{}};(function(i,e){(function(t,r){i.exports=r()})(ke,function(){var t=1e3,r=6e4,a=36e5,n="millisecond",y="second",x="minute",u="hour",c="day",d="week",v="month",b="quarter",M="year",B="date",R="Invalid Date",k=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,q=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,F={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(p){var g=["th","st","nd","rd"],E=p%100;return"["+p+(g[(E-20)%10]||g[E]||g[0])+"]"}},P=function(p,g,E){var I=String(p);return!I||I.length>=g?p:""+Array(g+1-I.length).join(E)+p},O={s:P,z:function(p){var g=-p.utcOffset(),E=Math.abs(g),I=Math.floor(E/60),T=E%60;return(g<=0?"+":"-")+P(I,2,"0")+":"+P(T,2,"0")},m:function p(g,E){if(g.date()<E.date())return-p(E,g);var I=12*(E.year()-g.year())+(E.month()-g.month()),T=g.clone().add(I,v),S=E-T<0,o=g.clone().add(I+(S?-1:1),v);return+(-(I+(E-T)/(S?T-o:o-T))||0)},a:function(p){return p<0?Math.ceil(p)||0:Math.floor(p)},p:function(p){return{M:v,y:M,w:d,d:c,D:B,h:u,m:x,s:y,ms:n,Q:b}[p]||String(p||"").toLowerCase().replace(/s$/,"")},u:function(p){return p===void 0}},H="en",U={};U[H]=F;var K="$isDayjsObject",X=function(p){return p instanceof f||!(!p||!p[K])},Q=function p(g,E,I){var T;if(!g)return H;if(typeof g=="string"){var S=g.toLowerCase();U[S]&&(T=S),E&&(U[S]=E,T=S);var o=g.split("-");if(!T&&o.length>1)return p(o[0])}else{var A=g.name;U[A]=g,T=A}return!I&&T&&(H=T),T||!I&&H},$=function(p,g){if(X(p))return p.clone();var E=typeof g=="object"?g:{};return E.date=p,E.args=arguments,new f(E)},_=O;_.l=Q,_.i=X,_.w=function(p,g){return $(p,{locale:g.$L,utc:g.$u,x:g.$x,$offset:g.$offset})};var f=function(){function p(E){this.$L=Q(E.locale,null,!0),this.parse(E),this.$x=this.$x||E.x||{},this[K]=!0}var g=p.prototype;return g.parse=function(E){this.$d=function(I){var T=I.date,S=I.utc;if(T===null)return new Date(NaN);if(_.u(T))return new Date;if(T instanceof Date)return new Date(T);if(typeof T=="string"&&!/Z$/i.test(T)){var o=T.match(k);if(o){var A=o[2]-1||0,Y=(o[7]||"0").substring(0,3);return S?new Date(Date.UTC(o[1],A,o[3]||1,o[4]||0,o[5]||0,o[6]||0,Y)):new Date(o[1],A,o[3]||1,o[4]||0,o[5]||0,o[6]||0,Y)}}return new Date(T)}(E),this.init()},g.init=function(){var E=this.$d;this.$y=E.getFullYear(),this.$M=E.getMonth(),this.$D=E.getDate(),this.$W=E.getDay(),this.$H=E.getHours(),this.$m=E.getMinutes(),this.$s=E.getSeconds(),this.$ms=E.getMilliseconds()},g.$utils=function(){return _},g.isValid=function(){return this.$d.toString()!==R},g.isSame=function(E,I){var T=$(E);return this.startOf(I)<=T&&T<=this.endOf(I)},g.isAfter=function(E,I){return $(E)<this.startOf(I)},g.isBefore=function(E,I){return this.endOf(I)<$(E)},g.$g=function(E,I,T){return _.u(E)?this[I]:this.set(T,E)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(E,I){var T=this,S=!!_.u(I)||I,o=_.p(E),A=function(Ce,we){var _0=_.w(T.$u?Date.UTC(T.$y,we,Ce):new Date(T.$y,we,Ce),T);return S?_0:_0.endOf(c)},Y=function(Ce,we){return _.w(T.toDate()[Ce].apply(T.toDate("s"),(S?[0,0,0,0]:[23,59,59,999]).slice(we)),T)},j=this.$W,W=this.$M,J=this.$D,se="set"+(this.$u?"UTC":"");switch(o){case M:return S?A(1,0):A(31,11);case v:return S?A(1,W):A(0,W+1);case d:var Ee=this.$locale().weekStart||0,ge=(j<Ee?j+7:j)-Ee;return A(S?J-ge:J+(6-ge),W);case c:case B:return Y(se+"Hours",0);case u:return Y(se+"Minutes",1);case x:return Y(se+"Seconds",2);case y:return Y(se+"Milliseconds",3);default:return this.clone()}},g.endOf=function(E){return this.startOf(E,!1)},g.$set=function(E,I){var T,S=_.p(E),o="set"+(this.$u?"UTC":""),A=(T={},T[c]=o+"Date",T[B]=o+"Date",T[v]=o+"Month",T[M]=o+"FullYear",T[u]=o+"Hours",T[x]=o+"Minutes",T[y]=o+"Seconds",T[n]=o+"Milliseconds",T)[S],Y=S===c?this.$D+(I-this.$W):I;if(S===v||S===M){var j=this.clone().set(B,1);j.$d[A](Y),j.init(),this.$d=j.set(B,Math.min(this.$D,j.daysInMonth())).$d}else A&&this.$d[A](Y);return this.init(),this},g.set=function(E,I){return this.clone().$set(E,I)},g.get=function(E){return this[_.p(E)]()},g.add=function(E,I){var T,S=this;E=Number(E);var o=_.p(I),A=function(W){var J=$(S);return _.w(J.date(J.date()+Math.round(W*E)),S)};if(o===v)return this.set(v,this.$M+E);if(o===M)return this.set(M,this.$y+E);if(o===c)return A(1);if(o===d)return A(7);var Y=(T={},T[x]=r,T[u]=a,T[y]=t,T)[o]||1,j=this.$d.getTime()+E*Y;return _.w(j,this)},g.subtract=function(E,I){return this.add(-1*E,I)},g.format=function(E){var I=this,T=this.$locale();if(!this.isValid())return T.invalidDate||R;var S=E||"YYYY-MM-DDTHH:mm:ssZ",o=_.z(this),A=this.$H,Y=this.$m,j=this.$M,W=T.weekdays,J=T.months,se=T.meridiem,Ee=function(we,_0,Pe,Me){return we&&(we[_0]||we(I,S))||Pe[_0].slice(0,Me)},ge=function(we){return _.s(A%12||12,we,"0")},Ce=se||function(we,_0,Pe){var Me=we<12?"AM":"PM";return Pe?Me.toLowerCase():Me};return S.replace(q,function(we,_0){return _0||function(Pe){switch(Pe){case"YY":return String(I.$y).slice(-2);case"YYYY":return _.s(I.$y,4,"0");case"M":return j+1;case"MM":return _.s(j+1,2,"0");case"MMM":return Ee(T.monthsShort,j,J,3);case"MMMM":return Ee(J,j);case"D":return I.$D;case"DD":return _.s(I.$D,2,"0");case"d":return String(I.$W);case"dd":return Ee(T.weekdaysMin,I.$W,W,2);case"ddd":return Ee(T.weekdaysShort,I.$W,W,3);case"dddd":return W[I.$W];case"H":return String(A);case"HH":return _.s(A,2,"0");case"h":return ge(1);case"hh":return ge(2);case"a":return Ce(A,Y,!0);case"A":return Ce(A,Y,!1);case"m":return String(Y);case"mm":return _.s(Y,2,"0");case"s":return String(I.$s);case"ss":return _.s(I.$s,2,"0");case"SSS":return _.s(I.$ms,3,"0");case"Z":return o}return null}(we)||o.replace(":","")})},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(E,I,T){var S,o=this,A=_.p(I),Y=$(E),j=(Y.utcOffset()-this.utcOffset())*r,W=this-Y,J=function(){return _.m(o,Y)};switch(A){case M:S=J()/12;break;case v:S=J();break;case b:S=J()/3;break;case d:S=(W-j)/6048e5;break;case c:S=(W-j)/864e5;break;case u:S=W/a;break;case x:S=W/r;break;case y:S=W/t;break;default:S=W}return T?S:_.a(S)},g.daysInMonth=function(){return this.endOf(v).$D},g.$locale=function(){return U[this.$L]},g.locale=function(E,I){if(!E)return this.$L;var T=this.clone(),S=Q(E,I,!0);return S&&(T.$L=S),T},g.clone=function(){return _.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},p}(),h=f.prototype;return $.prototype=h,[["$ms",n],["$s",y],["$m",x],["$H",u],["$W",c],["$M",v],["$y",M],["$D",B]].forEach(function(p){h[p[1]]=function(g){return this.$g(g,p[0],p[1])}}),$.extend=function(p,g){return p.$i||(p(g,f,$),p.$i=!0),$},$.locale=Q,$.isDayjs=X,$.unix=function(p){return $(1e3*p)},$.en=U[H],$.Ls=U,$.p={},$})})(da);var Ad=da.exports;const vr=$i(Ad),br="userInfo",Si="YYYY-MM-DD HH:mm:ss",Ed=()=>{const[i,e]=O0.useState(void 0),[t,r]=O0.useState(void 0);O0.useEffect(()=>{const n=localStorage.getItem(br);if(n){const y=JSON.parse(n);e(y)}},[]),O0.useEffect(()=>{if(i&&i.expire.type!=="NONE"){const{type:n,seconds:y}=i.expire,x=vr().add(y,"seconds").format(Si),u=vr(i.issuedDateTime).add(y,"seconds").format(Si),c=n==="EXTEND"?x:u;r(c),vr().format(Si)>c&&(localStorage.removeItem(br),window.location.reload())}},[i]);const a=()=>{localStorage.removeItem(br),e(void 0)};return{userInfo:{address:(i==null?void 0:i.address)??void 0,network:(i==null?void 0:i.network)??void 0,nickName:(i==null?void 0:i.nickName)??void 0,token:(i==null?void 0:i.token)??void 0,issuedDateTime:(i==null?void 0:i.issuedDateTime)??void 0,expireDateTime:t},logout:a}},ha="data:image/svg+xml,%3csvg%20width='167'%20height='166'%20viewBox='0%200%20167%20166'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M116.052%20115.296H166.355H166.36V0H51.0675V50.3042H0.759995V165.6H116.052V115.296ZM90.3366%2065.3428L40.21%20115.296H40.4307L40.2551%20115.471H101.014V150.561H15.7981V65.3428H90.3366ZM76.7327%20100.257H151.317V15.0386H66.1006V50.1536L109.424%2050.3042H126.684L126.624%2050.364L126.669%2050.3642L113.846%2063.1431L76.7327%20100.257Z'%20fill='url(%23paint0_linear_2322_66)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_2322_66'%20x1='167.74'%20y1='-2.07'%20x2='-3.37985'%20y2='172.5'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%231349F8'/%3e%3cstop%20offset='1'%20stop-color='%235C13F8'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";class wd{base64url(e){return K0.enc.Base64.stringify(K0.enc.Utf8.parse(e)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}createToken(e,t){const r={type:"token",alg:"XPSIG"},a=this.base64url(JSON.stringify(r)),n=this.base64url(JSON.stringify(e));return`${a}.${n}.${t}`}verifyToken(e){const[t,r,a]=e.split("."),n=JSON.parse(K0.enc.Utf8.stringify(K0.enc.Base64.parse(r)));if(Gi.xphereVerify(n.message,n.publicKey,a))return n;throw new Error("Invalid token")}getAddress(e){return Ar.address(e)}}const Bd=new wd,ua={Enc:ir,Sign:Ar,Util:q0,Validation:Bd},Cd=({availableNetworks:i,dapp:e,url:t,sigMessage:r,onReceive:a,validSeconds:n,isShowLogo:y=!1,logoSize:x=30,expire:u,...c})=>{const[d,v]=O0.useState(!0),b=Gi.generateNonce(16),{qrCode:M,roomId:B}=fn.generateQrCode("login",e,t,i);return O0.useEffect(()=>{const R=setTimeout(()=>{vt.leaveRoom(B),v(!1)},n*1e3);return()=>clearTimeout(R)},[B,n]),O0.useEffect(()=>{(async()=>{try{console.log("roomId",B);const k=await md.qrLogin(B,r,b),q=`${r}
53
+ Nonce: ${r}`,await this.sendMessage(e,t);const{publicKey:n,signature:y,address:x,network:u,nickName:c}=await this.getAccountCrypto();if(!Gi.xphereVerify(t,n,y))throw new Error("Verification failed");return{address:x,network:u,signature:y,publicKey:n,nickName:c}}else throw new Error("Verification failed")}catch(a){return Promise.reject(a)}finally{vt.leaveRoom(e)}}}const md=new gd;class _d{generateQrCode(e,t,r,a){const n=K0.lib.WordArray.random(16).toString(K0.enc.Hex);let y="";return e==="login"?y=`https://zigap.io/qrCode/scan?type=login&roomId=${n}&dapp=${t}&url=${r}&network=${a}`:e==="send"?y=`zigap://send?roomId=${n}&dapp=${t}`:e==="provide"&&(y=`zigap://provide?roomId=${n}&dapp=${t}`),vt.joinRoom(n),{qrCode:y,roomId:n}}}const fn=new _d;var da={exports:{}};(function(i,e){(function(t,r){i.exports=r()})(ke,function(){var t=1e3,r=6e4,a=36e5,n="millisecond",y="second",x="minute",u="hour",c="day",d="week",v="month",b="quarter",M="year",B="date",R="Invalid Date",k=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,q=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,F={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(p){var g=["th","st","nd","rd"],E=p%100;return"["+p+(g[(E-20)%10]||g[E]||g[0])+"]"}},P=function(p,g,E){var I=String(p);return!I||I.length>=g?p:""+Array(g+1-I.length).join(E)+p},O={s:P,z:function(p){var g=-p.utcOffset(),E=Math.abs(g),I=Math.floor(E/60),T=E%60;return(g<=0?"+":"-")+P(I,2,"0")+":"+P(T,2,"0")},m:function p(g,E){if(g.date()<E.date())return-p(E,g);var I=12*(E.year()-g.year())+(E.month()-g.month()),T=g.clone().add(I,v),S=E-T<0,o=g.clone().add(I+(S?-1:1),v);return+(-(I+(E-T)/(S?T-o:o-T))||0)},a:function(p){return p<0?Math.ceil(p)||0:Math.floor(p)},p:function(p){return{M:v,y:M,w:d,d:c,D:B,h:u,m:x,s:y,ms:n,Q:b}[p]||String(p||"").toLowerCase().replace(/s$/,"")},u:function(p){return p===void 0}},H="en",U={};U[H]=F;var K="$isDayjsObject",X=function(p){return p instanceof f||!(!p||!p[K])},Q=function p(g,E,I){var T;if(!g)return H;if(typeof g=="string"){var S=g.toLowerCase();U[S]&&(T=S),E&&(U[S]=E,T=S);var o=g.split("-");if(!T&&o.length>1)return p(o[0])}else{var A=g.name;U[A]=g,T=A}return!I&&T&&(H=T),T||!I&&H},$=function(p,g){if(X(p))return p.clone();var E=typeof g=="object"?g:{};return E.date=p,E.args=arguments,new f(E)},_=O;_.l=Q,_.i=X,_.w=function(p,g){return $(p,{locale:g.$L,utc:g.$u,x:g.$x,$offset:g.$offset})};var f=function(){function p(E){this.$L=Q(E.locale,null,!0),this.parse(E),this.$x=this.$x||E.x||{},this[K]=!0}var g=p.prototype;return g.parse=function(E){this.$d=function(I){var T=I.date,S=I.utc;if(T===null)return new Date(NaN);if(_.u(T))return new Date;if(T instanceof Date)return new Date(T);if(typeof T=="string"&&!/Z$/i.test(T)){var o=T.match(k);if(o){var A=o[2]-1||0,Y=(o[7]||"0").substring(0,3);return S?new Date(Date.UTC(o[1],A,o[3]||1,o[4]||0,o[5]||0,o[6]||0,Y)):new Date(o[1],A,o[3]||1,o[4]||0,o[5]||0,o[6]||0,Y)}}return new Date(T)}(E),this.init()},g.init=function(){var E=this.$d;this.$y=E.getFullYear(),this.$M=E.getMonth(),this.$D=E.getDate(),this.$W=E.getDay(),this.$H=E.getHours(),this.$m=E.getMinutes(),this.$s=E.getSeconds(),this.$ms=E.getMilliseconds()},g.$utils=function(){return _},g.isValid=function(){return this.$d.toString()!==R},g.isSame=function(E,I){var T=$(E);return this.startOf(I)<=T&&T<=this.endOf(I)},g.isAfter=function(E,I){return $(E)<this.startOf(I)},g.isBefore=function(E,I){return this.endOf(I)<$(E)},g.$g=function(E,I,T){return _.u(E)?this[I]:this.set(T,E)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(E,I){var T=this,S=!!_.u(I)||I,o=_.p(E),A=function(Ce,we){var _0=_.w(T.$u?Date.UTC(T.$y,we,Ce):new Date(T.$y,we,Ce),T);return S?_0:_0.endOf(c)},Y=function(Ce,we){return _.w(T.toDate()[Ce].apply(T.toDate("s"),(S?[0,0,0,0]:[23,59,59,999]).slice(we)),T)},j=this.$W,W=this.$M,J=this.$D,se="set"+(this.$u?"UTC":"");switch(o){case M:return S?A(1,0):A(31,11);case v:return S?A(1,W):A(0,W+1);case d:var Ee=this.$locale().weekStart||0,ge=(j<Ee?j+7:j)-Ee;return A(S?J-ge:J+(6-ge),W);case c:case B:return Y(se+"Hours",0);case u:return Y(se+"Minutes",1);case x:return Y(se+"Seconds",2);case y:return Y(se+"Milliseconds",3);default:return this.clone()}},g.endOf=function(E){return this.startOf(E,!1)},g.$set=function(E,I){var T,S=_.p(E),o="set"+(this.$u?"UTC":""),A=(T={},T[c]=o+"Date",T[B]=o+"Date",T[v]=o+"Month",T[M]=o+"FullYear",T[u]=o+"Hours",T[x]=o+"Minutes",T[y]=o+"Seconds",T[n]=o+"Milliseconds",T)[S],Y=S===c?this.$D+(I-this.$W):I;if(S===v||S===M){var j=this.clone().set(B,1);j.$d[A](Y),j.init(),this.$d=j.set(B,Math.min(this.$D,j.daysInMonth())).$d}else A&&this.$d[A](Y);return this.init(),this},g.set=function(E,I){return this.clone().$set(E,I)},g.get=function(E){return this[_.p(E)]()},g.add=function(E,I){var T,S=this;E=Number(E);var o=_.p(I),A=function(W){var J=$(S);return _.w(J.date(J.date()+Math.round(W*E)),S)};if(o===v)return this.set(v,this.$M+E);if(o===M)return this.set(M,this.$y+E);if(o===c)return A(1);if(o===d)return A(7);var Y=(T={},T[x]=r,T[u]=a,T[y]=t,T)[o]||1,j=this.$d.getTime()+E*Y;return _.w(j,this)},g.subtract=function(E,I){return this.add(-1*E,I)},g.format=function(E){var I=this,T=this.$locale();if(!this.isValid())return T.invalidDate||R;var S=E||"YYYY-MM-DDTHH:mm:ssZ",o=_.z(this),A=this.$H,Y=this.$m,j=this.$M,W=T.weekdays,J=T.months,se=T.meridiem,Ee=function(we,_0,Pe,Me){return we&&(we[_0]||we(I,S))||Pe[_0].slice(0,Me)},ge=function(we){return _.s(A%12||12,we,"0")},Ce=se||function(we,_0,Pe){var Me=we<12?"AM":"PM";return Pe?Me.toLowerCase():Me};return S.replace(q,function(we,_0){return _0||function(Pe){switch(Pe){case"YY":return String(I.$y).slice(-2);case"YYYY":return _.s(I.$y,4,"0");case"M":return j+1;case"MM":return _.s(j+1,2,"0");case"MMM":return Ee(T.monthsShort,j,J,3);case"MMMM":return Ee(J,j);case"D":return I.$D;case"DD":return _.s(I.$D,2,"0");case"d":return String(I.$W);case"dd":return Ee(T.weekdaysMin,I.$W,W,2);case"ddd":return Ee(T.weekdaysShort,I.$W,W,3);case"dddd":return W[I.$W];case"H":return String(A);case"HH":return _.s(A,2,"0");case"h":return ge(1);case"hh":return ge(2);case"a":return Ce(A,Y,!0);case"A":return Ce(A,Y,!1);case"m":return String(Y);case"mm":return _.s(Y,2,"0");case"s":return String(I.$s);case"ss":return _.s(I.$s,2,"0");case"SSS":return _.s(I.$ms,3,"0");case"Z":return o}return null}(we)||o.replace(":","")})},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(E,I,T){var S,o=this,A=_.p(I),Y=$(E),j=(Y.utcOffset()-this.utcOffset())*r,W=this-Y,J=function(){return _.m(o,Y)};switch(A){case M:S=J()/12;break;case v:S=J();break;case b:S=J()/3;break;case d:S=(W-j)/6048e5;break;case c:S=(W-j)/864e5;break;case u:S=W/a;break;case x:S=W/r;break;case y:S=W/t;break;default:S=W}return T?S:_.a(S)},g.daysInMonth=function(){return this.endOf(v).$D},g.$locale=function(){return U[this.$L]},g.locale=function(E,I){if(!E)return this.$L;var T=this.clone(),S=Q(E,I,!0);return S&&(T.$L=S),T},g.clone=function(){return _.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},p}(),h=f.prototype;return $.prototype=h,[["$ms",n],["$s",y],["$m",x],["$H",u],["$W",c],["$M",v],["$y",M],["$D",B]].forEach(function(p){h[p[1]]=function(g){return this.$g(g,p[0],p[1])}}),$.extend=function(p,g){return p.$i||(p(g,f,$),p.$i=!0),$},$.locale=Q,$.isDayjs=X,$.unix=function(p){return $(1e3*p)},$.en=U[H],$.Ls=U,$.p={},$})})(da);var Ad=da.exports;const vr=$i(Ad),br="userInfo",pr="YYYY-MM-DD HH:mm:ss",Ed=()=>{const[i,e]=O0.useState(void 0),[t,r]=O0.useState(void 0);O0.useEffect(()=>{const n=localStorage.getItem(br);if(n){const y=JSON.parse(n);e(y)}},[]),O0.useEffect(()=>{if(i&&i.expire.type!=="NONE"){const{type:n,seconds:y}=i.expire,x=vr().add(y,"seconds").format(pr),u=vr(i.issuedDateTime).add(y,"seconds").format(pr),c=n==="EXTEND"?x:u;r(c),vr().format(pr)>c&&(localStorage.removeItem(br),window.location.reload())}},[i]);const a=()=>{localStorage.removeItem(br),e(void 0)};return{userInfo:{address:(i==null?void 0:i.address)??void 0,network:(i==null?void 0:i.network)??void 0,nickName:(i==null?void 0:i.nickName)??void 0,token:(i==null?void 0:i.token)??void 0,issuedDateTime:(i==null?void 0:i.issuedDateTime)??void 0,expireDateTime:t},logout:a}},ha="data:image/svg+xml,%3csvg%20width='167'%20height='166'%20viewBox='0%200%20167%20166'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M116.052%20115.296H166.355H166.36V0H51.0675V50.3042H0.759995V165.6H116.052V115.296ZM90.3366%2065.3428L40.21%20115.296H40.4307L40.2551%20115.471H101.014V150.561H15.7981V65.3428H90.3366ZM76.7327%20100.257H151.317V15.0386H66.1006V50.1536L109.424%2050.3042H126.684L126.624%2050.364L126.669%2050.3642L113.846%2063.1431L76.7327%20100.257Z'%20fill='url(%23paint0_linear_2322_66)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_2322_66'%20x1='167.74'%20y1='-2.07'%20x2='-3.37985'%20y2='172.5'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%231349F8'/%3e%3cstop%20offset='1'%20stop-color='%235C13F8'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";class wd{base64url(e){return K0.enc.Base64.stringify(K0.enc.Utf8.parse(e)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}createToken(e,t){const r={type:"token",alg:"XPSIG"},a=this.base64url(JSON.stringify(r)),n=this.base64url(JSON.stringify(e));return`${a}.${n}.${t}`}verifyToken(e){const[t,r,a]=e.split("."),n=JSON.parse(K0.enc.Utf8.stringify(K0.enc.Base64.parse(r)));if(Gi.xphereVerify(n.message,n.publicKey,a))return n;throw new Error("Invalid token")}getAddress(e){return Er.address(e)}}const Bd=new wd,ua={Enc:ir,Sign:Er,Util:q0,Validation:Bd},Cd=({availableNetworks:i,dapp:e,url:t,sigMessage:r,onReceive:a,validSeconds:n,isShowLogo:y=!1,logoSize:x=30,expire:u,...c})=>{const[d,v]=O0.useState(!0),b=Gi.generateNonce(16),{qrCode:M,roomId:B}=fn.generateQrCode("login",e,t,i);return O0.useEffect(()=>{const R=setTimeout(()=>{vt.leaveRoom(B),v(!1)},n*1e3);return()=>clearTimeout(R)},[B,n]),O0.useEffect(()=>{(async()=>{try{console.log("roomId",B);const k=await md.qrLogin(B,r,b),q=`${r}
54
54
 
55
- Nonce: ${b}`,F=u.type,P=u.seconds,O={publicKey:k.publicKey,message:q},H={address:k.address,network:k.network,nickName:k.nickName,token:ua.Validation.createToken(O,k.signature),issuedDateTime:vr().format("YYYY-MM-DD HH:MM:ss"),expire:F==="NONE"?{type:F}:{type:F,seconds:P}};a({isSuccess:!0}),localStorage.setItem(br,JSON.stringify(H))}catch{a({isSuccess:!1})}})()},[a,r]),d?pr.jsx(bf,{value:M,...y&&{imageSettings:{src:ha,width:x,height:x,excavate:!1}},...c}):pr.jsx("div",{children:"QR loading error"})};class Md{isAccountType(e){return typeof e=="object"&&e!==null&&typeof e.address=="string"&&typeof e.network=="string"&&typeof e.nickName=="string"}getAccount(){return new Promise((e,t)=>{vt.onMessageReceived("addressProvide",r=>{this.isAccountType(r)?e(r):t(new Error("Invalid address"))})})}async qrAddressProvide(e){try{return await this.getAccount()}catch(t){return Promise.reject(t)}finally{vt.leaveRoom(e)}}}const Sd=new Md,Dd=({availableNetworks:i,dapp:e,url:t,validSeconds:r,onReceive:a,isShowLogo:n=!1,logoSize:y=30,...x})=>{const[u,c]=O0.useState(!0),{qrCode:d,roomId:v}=fn.generateQrCode("provide",e,t,i);return O0.useEffect(()=>{const b=setTimeout(()=>{vt.leaveRoom(v),c(!1)},r*60*1e3);return()=>clearTimeout(b)},[v,r]),O0.useEffect(()=>{(async()=>{try{console.log("roomId22",v);const M=await Sd.qrAddressProvide(v),B={isSuccess:!0,address:M.address,network:M.network,nickName:M.nickName};a({isSuccess:!0})}catch{a({isSuccess:!1})}})()},[]),u?pr.jsx(bf,{value:d,...n&&{imageSettings:{src:ha,width:y,height:y,excavate:!1}},...x}):pr.jsx("div",{children:"QR loading error"})},Fd={Qr:fn};exports.AddressProvideQR=Dd;exports.LoginQR=Cd;exports.Xphere=ua;exports.Zigap=Fd;exports.useZigap=Ed;
55
+ Nonce: ${b}`,F=u.type,P=u.seconds,O={publicKey:k.publicKey,message:q},H={address:k.address,network:k.network,nickName:k.nickName,token:ua.Validation.createToken(O,k.signature),issuedDateTime:vr().format(pr),expire:F==="NONE"?{type:F}:{type:F,seconds:P}};a({isSuccess:!0}),localStorage.setItem(br,JSON.stringify(H))}catch{a({isSuccess:!1})}})()},[a,r]),d?yr.jsx(bf,{value:M,...y&&{imageSettings:{src:ha,width:x,height:x,excavate:!1}},...c}):yr.jsx("div",{children:"QR loading error"})};class Md{isAccountType(e){return typeof e=="object"&&e!==null&&typeof e.address=="string"&&typeof e.network=="string"&&typeof e.nickName=="string"}getAccount(){return new Promise((e,t)=>{vt.onMessageReceived("addressProvide",r=>{this.isAccountType(r)?e(r):t(new Error("Invalid address"))})})}async qrAddressProvide(e){try{return await this.getAccount()}catch(t){return Promise.reject(t)}finally{vt.leaveRoom(e)}}}const Sd=new Md,Dd=({availableNetworks:i,dapp:e,url:t,validSeconds:r,onReceive:a,isShowLogo:n=!1,logoSize:y=30,...x})=>{const[u,c]=O0.useState(!0),{qrCode:d,roomId:v}=fn.generateQrCode("provide",e,t,i);return O0.useEffect(()=>{const b=setTimeout(()=>{vt.leaveRoom(v),c(!1)},r*60*1e3);return()=>clearTimeout(b)},[v,r]),O0.useEffect(()=>{(async()=>{try{console.log("roomId22",v);const M=await Sd.qrAddressProvide(v),B={isSuccess:!0,address:M.address,network:M.network,nickName:M.nickName};a({isSuccess:!0})}catch{a({isSuccess:!1})}})()},[]),u?yr.jsx(bf,{value:d,...n&&{imageSettings:{src:ha,width:y,height:y,excavate:!1}},...x}):yr.jsx("div",{children:"QR loading error"})},Fd={Qr:fn};exports.AddressProvideQR=Dd;exports.LoginQR=Cd;exports.Xphere=ua;exports.Zigap=Fd;exports.useZigap=Ed;