14 lines
298 KiB
JavaScript
14 lines
298 KiB
JavaScript
import{a as H,t as Nn,u as Tn,v as _i,w as Si,x as On}from"./chunk-DUYWEMAT.js";import{a as wi,c as T1,d as Jf,e as Te}from"./chunk-WMCBVXPA.js";import{b as kn,c as B,d as Dn,g as zn,n as process,o as g,p as A,q as x}from"./chunk-QTLWQ5AJ.js";var pt=B((Q3,Ai)=>{"use strict";g();x();var Mi=65536,O1=4294967295;function L1(){throw new Error(`Secure random number generation is not supported by this browser.
|
|
Use Chrome, Firefox or Internet Explorer 11`)}var j1=Te().Buffer,Vf=globalThis.crypto||globalThis.msCrypto;Vf&&Vf.getRandomValues?Ai.exports=F1:Ai.exports=L1;function F1(r,e){if(r>O1)throw new RangeError("requested too many random bytes");var t=j1.allocUnsafe(r);if(r>0)if(r>Mi)for(var f=0;f<r;f+=Mi)Vf.getRandomValues(t.slice(f,f+Mi));else Vf.getRandomValues(t);return typeof e=="function"?process.nextTick(function(){e(null,t)}):t}});var Ln={};Dn(Ln,{StringDecoder:()=>Wf});function U1(r){if(r&&!K1(r))throw new Error("Unknown encoding: "+r)}function Wf(r){switch(this.encoding=(r||"utf8").toLowerCase().replace(/[-_]/,""),U1(r),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=X1;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=J1;break;default:this.write=H1;return}this.charBuffer=new wi(6),this.charReceived=0,this.charLength=0}function H1(r){return r.toString(this.encoding)}function X1(r){this.charReceived=r.length%2,this.charLength=this.charReceived?2:0}function J1(r){this.charReceived=r.length%3,this.charLength=this.charReceived?3:0}var K1,jn=kn(()=>{g();x();T1();K1=wi.isEncoding||function(r){switch(r&&r.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};Wf.prototype.write=function(r){for(var e="";this.charLength;){var t=r.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:r.length;if(r.copy(this.charBuffer,this.charReceived,0,t),this.charReceived+=t,this.charReceived<this.charLength)return"";r=r.slice(t,r.length),e=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var a=e.charCodeAt(e.length-1);if(a>=55296&&a<=56319){this.charLength+=this.surrogateSize,e="";continue}if(this.charReceived=this.charLength=0,r.length===0)return e;break}this.detectIncompleteChar(r);var f=r.length;this.charLength&&(r.copy(this.charBuffer,0,r.length-this.charReceived,f),f-=this.charReceived),e+=r.toString(this.encoding,0,f);var f=e.length-1,a=e.charCodeAt(f);if(a>=55296&&a<=56319){var i=this.surrogateSize;return this.charLength+=i,this.charReceived+=i,this.charBuffer.copy(this.charBuffer,i,0,i),r.copy(this.charBuffer,0,0,i),e.substring(0,f)}return e};Wf.prototype.detectIncompleteChar=function(r){for(var e=r.length>=3?3:r.length;e>0;e--){var t=r[r.length-e];if(e==1&&t>>5==6){this.charLength=2;break}if(e<=2&&t>>4==14){this.charLength=3;break}if(e<=3&&t>>3==30){this.charLength=4;break}}this.charReceived=e};Wf.prototype.end=function(r){var e="";if(r&&r.length&&(e=this.write(r)),this.charReceived){var t=this.charReceived,f=this.charBuffer,a=this.encoding;e+=f.slice(0,t).toString(a)}return e}});var Fn=B((i8,Gf)=>{g();x();var yt=(jn(),zn(Ln));if(yt&&yt.default){Gf.exports=yt.default;for(let r in yt)Gf.exports[r]=yt[r]}else yt&&(Gf.exports=yt)});var Xr=B((c8,Hn)=>{g();x();var Kn=Te().Buffer,Un=Nn().Transform,V1=Fn().StringDecoder,W1=H();function wr(r){Un.call(this),this.hashMode=typeof r=="string",this.hashMode?this[r]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}W1(wr,Un);wr.prototype.update=function(r,e,t){typeof r=="string"&&(r=Kn.from(r,e));var f=this._update(r);return this.hashMode?this:(t&&(f=this._toString(f,t)),f)};wr.prototype.setAutoPadding=function(){};wr.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")};wr.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")};wr.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")};wr.prototype._transform=function(r,e,t){var f;try{this.hashMode?this._update(r):this.push(this._update(r))}catch(a){f=a}finally{t(f)}};wr.prototype._flush=function(r){var e;try{this.push(this.__final())}catch(t){e=t}r(e)};wr.prototype._finalOrDigest=function(r){var e=this.__final()||Kn.alloc(0);return r&&(e=this._toString(e,r,!0)),e};wr.prototype._toString=function(r,e,t){if(this._decoder||(this._decoder=new V1(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");var f=this._decoder.write(r);return t&&(f+=this._decoder.end()),f};Hn.exports=wr});var Kt=B((h8,Jn)=>{"use strict";g();x();var G1=H(),Y1=Tn(),Z1=_i(),$1=Si(),Xn=Xr();function Yf(r){Xn.call(this,"digest"),this._hash=r}G1(Yf,Xn);Yf.prototype._update=function(r){this._hash.update(r)};Yf.prototype._final=function(){return this._hash.digest()};Jn.exports=function(e){return e=e.toLowerCase(),e==="md5"?new Y1:e==="rmd160"||e==="ripemd160"?new Z1:new Yf($1(e))}});var Gn=B((l8,Wn)=>{"use strict";g();x();var Q1=H(),mt=Te().Buffer,Vn=Xr(),eu=mt.alloc(128),Ut=64;function Zf(r,e){Vn.call(this,"digest"),typeof e=="string"&&(e=mt.from(e)),this._alg=r,this._key=e,e.length>Ut?e=r(e):e.length<Ut&&(e=mt.concat([e,eu],Ut));for(var t=this._ipad=mt.allocUnsafe(Ut),f=this._opad=mt.allocUnsafe(Ut),a=0;a<Ut;a++)t[a]=e[a]^54,f[a]=e[a]^92;this._hash=[t]}Q1(Zf,Vn);Zf.prototype._update=function(r){this._hash.push(r)};Zf.prototype._final=function(){var r=this._alg(mt.concat(this._hash));return this._alg(mt.concat([this._opad,r]))};Wn.exports=Zf});var Ei=B((y8,Zn)=>{"use strict";g();x();var ru=H(),tu=Gn(),Yn=Xr(),wf=Te().Buffer,fu=On(),qi=_i(),Ii=Si(),au=wf.alloc(128);function _f(r,e){Yn.call(this,"digest"),typeof e=="string"&&(e=wf.from(e));var t=r==="sha512"||r==="sha384"?128:64;if(this._alg=r,this._key=e,e.length>t){var f=r==="rmd160"?new qi:Ii(r);e=f.update(e).digest()}else e.length<t&&(e=wf.concat([e,au],t));for(var a=this._ipad=wf.allocUnsafe(t),i=this._opad=wf.allocUnsafe(t),d=0;d<t;d++)a[d]=e[d]^54,i[d]=e[d]^92;this._hash=r==="rmd160"?new qi:Ii(r),this._hash.update(a)}ru(_f,Yn);_f.prototype._update=function(r){this._hash.update(r)};_f.prototype._final=function(){var r=this._hash.digest(),e=this._alg==="rmd160"?new qi:Ii(this._alg);return e.update(this._opad).update(r).digest()};Zn.exports=function(e,t){return e=e.toLowerCase(),e==="rmd160"||e==="ripemd160"?new _f("rmd160",t):e==="md5"?new tu(fu,t):new _f(e,t)}});var Bi=B((x8,iu)=>{iu.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}});var Qn=B((w8,$n)=>{g();x();$n.exports=Bi()});var Pi=B((M8,e0)=>{g();x();var du=Math.pow(2,30)-1;e0.exports=function(r,e){if(typeof r!="number")throw new TypeError("Iterations not a number");if(r<0)throw new TypeError("Bad iterations");if(typeof e!="number")throw new TypeError("Key length not a number");if(e<0||e>du||e!==e)throw new TypeError("Bad key length")}});var Ri=B((I8,t0)=>{g();x();var $f;process.browser?$f="utf-8":process.version?(r0=parseInt(process.version.split(".")[0].slice(1),10),$f=r0>=6?"utf-8":"binary"):$f="utf-8";var r0;t0.exports=$f});var ki=B((P8,f0)=>{g();x();var Ci=Te().Buffer;f0.exports=function(r,e,t){if(Ci.isBuffer(r))return r;if(typeof r=="string")return Ci.from(r,e);if(ArrayBuffer.isView(r))return Ci.from(r.buffer);throw new TypeError(t+" must be a string, a Buffer, a typed array or a DataView")}});var Di=B((k8,n0)=>{g();x();var nu=On(),cu=_i(),su=Si(),gt=Te().Buffer,ou=Pi(),a0=Ri(),i0=ki(),hu=gt.alloc(128),Qf={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function d0(r,e,t){var f=uu(r),a=r==="sha512"||r==="sha384"?128:64;e.length>a?e=f(e):e.length<a&&(e=gt.concat([e,hu],a));for(var i=gt.allocUnsafe(a+Qf[r]),d=gt.allocUnsafe(a+Qf[r]),c=0;c<a;c++)i[c]=e[c]^54,d[c]=e[c]^92;var o=gt.allocUnsafe(a+t+4);i.copy(o,0,0,a),this.ipad1=o,this.ipad2=i,this.opad=d,this.alg=r,this.blocksize=a,this.hash=f,this.size=Qf[r]}d0.prototype.run=function(r,e){r.copy(e,this.blocksize);var t=this.hash(e);return t.copy(this.opad,this.blocksize),this.hash(this.opad)};function uu(r){function e(f){return su(r).update(f).digest()}function t(f){return new cu().update(f).digest()}return r==="rmd160"||r==="ripemd160"?t:r==="md5"?nu:e}function bu(r,e,t,f,a){ou(t,f),r=i0(r,a0,"Password"),e=i0(e,a0,"Salt"),a=a||"sha1";var i=new d0(a,r,e.length),d=gt.allocUnsafe(f),c=gt.allocUnsafe(e.length+4);e.copy(c,0,0,e.length);for(var o=0,l=Qf[a],b=Math.ceil(f/l),p=1;p<=b;p++){c.writeUInt32BE(p,e.length);for(var S=i.run(c,i.ipad1),q=S,E=1;E<t;E++){q=i.run(q,i.ipad2);for(var P=0;P<l;P++)S[P]^=q[P]}S.copy(d,o),o+=l}return d}n0.exports=bu});var l0=B((N8,b0)=>{g();x();var h0=Te().Buffer,lu=Pi(),c0=Ri(),s0=Di(),o0=ki(),ea,Sf=globalThis.crypto&&globalThis.crypto.subtle,vu={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},zi=[];function pu(r){if(globalThis.process&&!globalThis.process.browser||!Sf||!Sf.importKey||!Sf.deriveBits)return Promise.resolve(!1);if(zi[r]!==void 0)return zi[r];ea=ea||h0.alloc(8);var e=u0(ea,ea,10,128,r).then(function(){return!0}).catch(function(){return!1});return zi[r]=e,e}function u0(r,e,t,f,a){return Sf.importKey("raw",r,{name:"PBKDF2"},!1,["deriveBits"]).then(function(i){return Sf.deriveBits({name:"PBKDF2",salt:e,iterations:t,hash:{name:a}},i,f<<3)}).then(function(i){return h0.from(i)})}function yu(r,e){r.then(function(t){process.nextTick(function(){e(null,t)})},function(t){process.nextTick(function(){e(t)})})}b0.exports=function(r,e,t,f,a,i){typeof a=="function"&&(i=a,a=void 0),a=a||"sha1";var d=vu[a.toLowerCase()];if(!d||typeof globalThis.Promise!="function")return process.nextTick(function(){var c;try{c=s0(r,e,t,f,a)}catch(o){return i(o)}i(null,c)});if(lu(t,f),r=o0(r,c0,"Password"),e=o0(e,c0,"Salt"),typeof i!="function")throw new Error("No callback provided to pbkdf2");yu(pu(d).then(function(c){return c?u0(r,e,t,f,d):s0(r,e,t,f,a)}),i)}});var Ti=B(Ni=>{g();x();Ni.pbkdf2=l0();Ni.pbkdf2Sync=Di()});var Mf=B((K8,v0)=>{g();x();var xt=Te().Buffer,mu=Tn();function gu(r,e,t,f){if(xt.isBuffer(r)||(r=xt.from(r,"binary")),e&&(xt.isBuffer(e)||(e=xt.from(e,"binary")),e.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=t/8,i=xt.alloc(a),d=xt.alloc(f||0),c=xt.alloc(0);a>0||f>0;){var o=new mu;o.update(c),o.update(r),e&&o.update(e),c=o.digest();var l=0;if(a>0){var b=i.length-a;l=Math.min(a,c.length),c.copy(i,b,0,l),a-=l}if(l<c.length&&f>0){var p=d.length-f,S=Math.min(f,c.length-l);c.copy(d,p,l,l+S),f-=S}}return c.fill(0),{key:i,iv:d}}v0.exports=gu});var p0=B(Oi=>{g();x();Oi.encrypt=function(r,e){return r._cipher.encryptBlock(e)};Oi.decrypt=function(r,e){return r._cipher.decryptBlock(e)}});var Ht=B((W8,y0)=>{g();x();y0.exports=function(e,t){for(var f=Math.min(e.length,t.length),a=new A.Buffer(f),i=0;i<f;++i)a[i]=e[i]^t[i];return a}});var g0=B(Li=>{g();x();var m0=Ht();Li.encrypt=function(r,e){var t=m0(e,r._prev);return r._prev=r._cipher.encryptBlock(t),r._prev};Li.decrypt=function(r,e){var t=r._prev;r._prev=e;var f=r._cipher.decryptBlock(e);return m0(f,t)}});var _0=B(w0=>{g();x();var Af=Te().Buffer,xu=Ht();function x0(r,e,t){var f=e.length,a=xu(e,r._cache);return r._cache=r._cache.slice(f),r._prev=Af.concat([r._prev,t?e:a]),a}w0.encrypt=function(r,e,t){for(var f=Af.allocUnsafe(0),a;e.length;)if(r._cache.length===0&&(r._cache=r._cipher.encryptBlock(r._prev),r._prev=Af.allocUnsafe(0)),r._cache.length<=e.length)a=r._cache.length,f=Af.concat([f,x0(r,e.slice(0,a),t)]),e=e.slice(a);else{f=Af.concat([f,x0(r,e,t)]);break}return f}});var M0=B(S0=>{g();x();var ji=Te().Buffer;function wu(r,e,t){var f=r._cipher.encryptBlock(r._prev),a=f[0]^e;return r._prev=ji.concat([r._prev.slice(1),ji.from([t?e:a])]),a}S0.encrypt=function(r,e,t){for(var f=e.length,a=ji.allocUnsafe(f),i=-1;++i<f;)a[i]=wu(r,e[i],t);return a}});var q0=B(A0=>{g();x();var ra=Te().Buffer;function _u(r,e,t){for(var f,a=-1,i=8,d=0,c,o;++a<i;)f=r._cipher.encryptBlock(r._prev),c=e&1<<7-a?128:0,o=f[0]^c,d+=(o&128)>>a%8,r._prev=Su(r._prev,t?c:o);return d}function Su(r,e){var t=r.length,f=-1,a=ra.allocUnsafe(r.length);for(r=ra.concat([r,ra.from([e])]);++f<t;)a[f]=r[f]<<1|r[f+1]>>7;return a}A0.encrypt=function(r,e,t){for(var f=e.length,a=ra.allocUnsafe(f),i=-1;++i<f;)a[i]=_u(r,e[i],t);return a}});var E0=B(I0=>{g();x();var Mu=Ht();function Au(r){return r._prev=r._cipher.encryptBlock(r._prev),r._prev}I0.encrypt=function(r,e){for(;r._cache.length<e.length;)r._cache=A.Buffer.concat([r._cache,Au(r)]);var t=r._cache.slice(0,e.length);return r._cache=r._cache.slice(e.length),Mu(e,t)}});var Fi=B((ul,B0)=>{g();x();function qu(r){for(var e=r.length,t;e--;)if(t=r.readUInt8(e),t===255)r.writeUInt8(0,e);else{t++,r.writeUInt8(t,e);break}}B0.exports=qu});var Ui=B(R0=>{g();x();var Iu=Ht(),P0=Te().Buffer,Eu=Fi();function Bu(r){var e=r._cipher.encryptBlockRaw(r._prev);return Eu(r._prev),e}var Ki=16;R0.encrypt=function(r,e){var t=Math.ceil(e.length/Ki),f=r._cache.length;r._cache=P0.concat([r._cache,P0.allocUnsafe(t*Ki)]);for(var a=0;a<t;a++){var i=Bu(r),d=f+a*Ki;r._cache.writeUInt32BE(i[0],d+0),r._cache.writeUInt32BE(i[1],d+4),r._cache.writeUInt32BE(i[2],d+8),r._cache.writeUInt32BE(i[3],d+12)}var c=r._cache.slice(0,e.length);return r._cache=r._cache.slice(e.length),Iu(e,c)}});var Hi=B((ml,Pu)=>{Pu.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}});var fa=B((gl,C0)=>{g();x();var Ru={ECB:p0(),CBC:g0(),CFB:_0(),CFB8:M0(),CFB1:q0(),OFB:E0(),CTR:Ui(),GCM:Ui()},ta=Hi();for(Xi in ta)ta[Xi].module=Ru[ta[Xi].mode];var Xi;C0.exports=ta});var qf=B((_l,D0)=>{g();x();var aa=Te().Buffer;function Vi(r){aa.isBuffer(r)||(r=aa.from(r));for(var e=r.length/4|0,t=new Array(e),f=0;f<e;f++)t[f]=r.readUInt32BE(f*4);return t}function Ji(r){for(var e=0;e<r.length;r++)r[e]=0}function k0(r,e,t,f,a){for(var i=t[0],d=t[1],c=t[2],o=t[3],l=r[0]^e[0],b=r[1]^e[1],p=r[2]^e[2],S=r[3]^e[3],q,E,P,C,R=4,N=1;N<a;N++)q=i[l>>>24]^d[b>>>16&255]^c[p>>>8&255]^o[S&255]^e[R++],E=i[b>>>24]^d[p>>>16&255]^c[S>>>8&255]^o[l&255]^e[R++],P=i[p>>>24]^d[S>>>16&255]^c[l>>>8&255]^o[b&255]^e[R++],C=i[S>>>24]^d[l>>>16&255]^c[b>>>8&255]^o[p&255]^e[R++],l=q,b=E,p=P,S=C;return q=(f[l>>>24]<<24|f[b>>>16&255]<<16|f[p>>>8&255]<<8|f[S&255])^e[R++],E=(f[b>>>24]<<24|f[p>>>16&255]<<16|f[S>>>8&255]<<8|f[l&255])^e[R++],P=(f[p>>>24]<<24|f[S>>>16&255]<<16|f[l>>>8&255]<<8|f[b&255])^e[R++],C=(f[S>>>24]<<24|f[l>>>16&255]<<16|f[b>>>8&255]<<8|f[p&255])^e[R++],q=q>>>0,E=E>>>0,P=P>>>0,C=C>>>0,[q,E,P,C]}var Cu=[0,1,2,4,8,16,32,64,128,27,54],ze=function(){for(var r=new Array(256),e=0;e<256;e++)e<128?r[e]=e<<1:r[e]=e<<1^283;for(var t=[],f=[],a=[[],[],[],[]],i=[[],[],[],[]],d=0,c=0,o=0;o<256;++o){var l=c^c<<1^c<<2^c<<3^c<<4;l=l>>>8^l&255^99,t[d]=l,f[l]=d;var b=r[d],p=r[b],S=r[p],q=r[l]*257^l*16843008;a[0][d]=q<<24|q>>>8,a[1][d]=q<<16|q>>>16,a[2][d]=q<<8|q>>>24,a[3][d]=q,q=S*16843009^p*65537^b*257^d*16843008,i[0][l]=q<<24|q>>>8,i[1][l]=q<<16|q>>>16,i[2][l]=q<<8|q>>>24,i[3][l]=q,d===0?d=c=1:(d=b^r[r[r[S^b]]],c^=r[r[c]])}return{SBOX:t,INV_SBOX:f,SUB_MIX:a,INV_SUB_MIX:i}}();function sr(r){this._key=Vi(r),this._reset()}sr.blockSize=4*4;sr.keySize=256/8;sr.prototype.blockSize=sr.blockSize;sr.prototype.keySize=sr.keySize;sr.prototype._reset=function(){for(var r=this._key,e=r.length,t=e+6,f=(t+1)*4,a=[],i=0;i<e;i++)a[i]=r[i];for(i=e;i<f;i++){var d=a[i-1];i%e===0?(d=d<<8|d>>>24,d=ze.SBOX[d>>>24]<<24|ze.SBOX[d>>>16&255]<<16|ze.SBOX[d>>>8&255]<<8|ze.SBOX[d&255],d^=Cu[i/e|0]<<24):e>6&&i%e===4&&(d=ze.SBOX[d>>>24]<<24|ze.SBOX[d>>>16&255]<<16|ze.SBOX[d>>>8&255]<<8|ze.SBOX[d&255]),a[i]=a[i-e]^d}for(var c=[],o=0;o<f;o++){var l=f-o,b=a[l-(o%4?0:4)];o<4||l<=4?c[o]=b:c[o]=ze.INV_SUB_MIX[0][ze.SBOX[b>>>24]]^ze.INV_SUB_MIX[1][ze.SBOX[b>>>16&255]]^ze.INV_SUB_MIX[2][ze.SBOX[b>>>8&255]]^ze.INV_SUB_MIX[3][ze.SBOX[b&255]]}this._nRounds=t,this._keySchedule=a,this._invKeySchedule=c};sr.prototype.encryptBlockRaw=function(r){return r=Vi(r),k0(r,this._keySchedule,ze.SUB_MIX,ze.SBOX,this._nRounds)};sr.prototype.encryptBlock=function(r){var e=this.encryptBlockRaw(r),t=aa.allocUnsafe(16);return t.writeUInt32BE(e[0],0),t.writeUInt32BE(e[1],4),t.writeUInt32BE(e[2],8),t.writeUInt32BE(e[3],12),t};sr.prototype.decryptBlock=function(r){r=Vi(r);var e=r[1];r[1]=r[3],r[3]=e;var t=k0(r,this._invKeySchedule,ze.INV_SUB_MIX,ze.INV_SBOX,this._nRounds),f=aa.allocUnsafe(16);return f.writeUInt32BE(t[0],0),f.writeUInt32BE(t[3],4),f.writeUInt32BE(t[2],8),f.writeUInt32BE(t[1],12),f};sr.prototype.scrub=function(){Ji(this._keySchedule),Ji(this._invKeySchedule),Ji(this._key)};D0.exports.AES=sr});var T0=B((Al,N0)=>{g();x();var Xt=Te().Buffer,ku=Xt.alloc(16,0);function Du(r){return[r.readUInt32BE(0),r.readUInt32BE(4),r.readUInt32BE(8),r.readUInt32BE(12)]}function z0(r){var e=Xt.allocUnsafe(16);return e.writeUInt32BE(r[0]>>>0,0),e.writeUInt32BE(r[1]>>>0,4),e.writeUInt32BE(r[2]>>>0,8),e.writeUInt32BE(r[3]>>>0,12),e}function If(r){this.h=r,this.state=Xt.alloc(16,0),this.cache=Xt.allocUnsafe(0)}If.prototype.ghash=function(r){for(var e=-1;++e<r.length;)this.state[e]^=r[e];this._multiply()};If.prototype._multiply=function(){for(var r=Du(this.h),e=[0,0,0,0],t,f,a,i=-1;++i<128;){for(f=(this.state[~~(i/8)]&1<<7-i%8)!==0,f&&(e[0]^=r[0],e[1]^=r[1],e[2]^=r[2],e[3]^=r[3]),a=(r[3]&1)!==0,t=3;t>0;t--)r[t]=r[t]>>>1|(r[t-1]&1)<<31;r[0]=r[0]>>>1,a&&(r[0]=r[0]^225<<24)}this.state=z0(e)};If.prototype.update=function(r){this.cache=Xt.concat([this.cache,r]);for(var e;this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)};If.prototype.final=function(r,e){return this.cache.length&&this.ghash(Xt.concat([this.cache,ku],16)),this.ghash(z0([0,r,0,e])),this.state};N0.exports=If});var Wi=B((El,j0)=>{g();x();var zu=qf(),Qe=Te().Buffer,O0=Xr(),Nu=H(),L0=T0(),Tu=Ht(),Ou=Fi();function Lu(r,e){var t=0;r.length!==e.length&&t++;for(var f=Math.min(r.length,e.length),a=0;a<f;++a)t+=r[a]^e[a];return t}function ju(r,e,t){if(e.length===12)return r._finID=Qe.concat([e,Qe.from([0,0,0,1])]),Qe.concat([e,Qe.from([0,0,0,2])]);var f=new L0(t),a=e.length,i=a%16;f.update(e),i&&(i=16-i,f.update(Qe.alloc(i,0))),f.update(Qe.alloc(8,0));var d=a*8,c=Qe.alloc(8);c.writeUIntBE(d,0,8),f.update(c),r._finID=f.state;var o=Qe.from(r._finID);return Ou(o),o}function wt(r,e,t,f){O0.call(this);var a=Qe.alloc(4,0);this._cipher=new zu.AES(e);var i=this._cipher.encryptBlock(a);this._ghash=new L0(i),t=ju(this,t,i),this._prev=Qe.from(t),this._cache=Qe.allocUnsafe(0),this._secCache=Qe.allocUnsafe(0),this._decrypt=f,this._alen=0,this._len=0,this._mode=r,this._authTag=null,this._called=!1}Nu(wt,O0);wt.prototype._update=function(r){if(!this._called&&this._alen){var e=16-this._alen%16;e<16&&(e=Qe.alloc(e,0),this._ghash.update(e))}this._called=!0;var t=this._mode.encrypt(this,r);return this._decrypt?this._ghash.update(r):this._ghash.update(t),this._len+=r.length,t};wt.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var r=Tu(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&Lu(r,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=r,this._cipher.scrub()};wt.prototype.getAuthTag=function(){if(this._decrypt||!Qe.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag};wt.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e};wt.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length};j0.exports=wt});var Yi=B((Rl,K0)=>{g();x();var Fu=qf(),Gi=Te().Buffer,F0=Xr(),Ku=H();function ia(r,e,t,f){F0.call(this),this._cipher=new Fu.AES(e),this._prev=Gi.from(t),this._cache=Gi.allocUnsafe(0),this._secCache=Gi.allocUnsafe(0),this._decrypt=f,this._mode=r}Ku(ia,F0);ia.prototype._update=function(r){return this._mode.encrypt(this,r,this._decrypt)};ia.prototype._final=function(){this._cipher.scrub()};K0.exports=ia});var J0=B(Zi=>{g();x();var U0=fa(),Uu=Wi(),Jr=Te().Buffer,Hu=Yi(),H0=Xr(),Xu=qf(),Ju=Mf(),Vu=H();function Ef(r,e,t){H0.call(this),this._cache=new da,this._cipher=new Xu.AES(e),this._prev=Jr.from(t),this._mode=r,this._autopadding=!0}Vu(Ef,H0);Ef.prototype._update=function(r){this._cache.add(r);for(var e,t,f=[];e=this._cache.get();)t=this._mode.encrypt(this,e),f.push(t);return Jr.concat(f)};var Wu=Jr.alloc(16,16);Ef.prototype._final=function(){var r=this._cache.flush();if(this._autopadding)return r=this._mode.encrypt(this,r),this._cipher.scrub(),r;if(!r.equals(Wu))throw this._cipher.scrub(),new Error("data not multiple of block length")};Ef.prototype.setAutoPadding=function(r){return this._autopadding=!!r,this};function da(){this.cache=Jr.allocUnsafe(0)}da.prototype.add=function(r){this.cache=Jr.concat([this.cache,r])};da.prototype.get=function(){if(this.cache.length>15){var r=this.cache.slice(0,16);return this.cache=this.cache.slice(16),r}return null};da.prototype.flush=function(){for(var r=16-this.cache.length,e=Jr.allocUnsafe(r),t=-1;++t<r;)e.writeUInt8(r,t);return Jr.concat([this.cache,e])};function X0(r,e,t){var f=U0[r.toLowerCase()];if(!f)throw new TypeError("invalid suite type");if(typeof e=="string"&&(e=Jr.from(e)),e.length!==f.key/8)throw new TypeError("invalid key length "+e.length);if(typeof t=="string"&&(t=Jr.from(t)),f.mode!=="GCM"&&t.length!==f.iv)throw new TypeError("invalid iv length "+t.length);return f.type==="stream"?new Hu(f.module,e,t):f.type==="auth"?new Uu(f.module,e,t):new Ef(f.module,e,t)}function Gu(r,e){var t=U0[r.toLowerCase()];if(!t)throw new TypeError("invalid suite type");var f=Ju(e,!1,t.key,t.iv);return X0(r,f.key,f.iv)}Zi.createCipheriv=X0;Zi.createCipher=Gu});var Y0=B($i=>{g();x();var Yu=Wi(),Jt=Te().Buffer,V0=fa(),Zu=Yi(),W0=Xr(),$u=qf(),Qu=Mf(),e2=H();function Bf(r,e,t){W0.call(this),this._cache=new na,this._last=void 0,this._cipher=new $u.AES(e),this._prev=Jt.from(t),this._mode=r,this._autopadding=!0}e2(Bf,W0);Bf.prototype._update=function(r){this._cache.add(r);for(var e,t,f=[];e=this._cache.get(this._autopadding);)t=this._mode.decrypt(this,e),f.push(t);return Jt.concat(f)};Bf.prototype._final=function(){var r=this._cache.flush();if(this._autopadding)return r2(this._mode.decrypt(this,r));if(r)throw new Error("data not multiple of block length")};Bf.prototype.setAutoPadding=function(r){return this._autopadding=!!r,this};function na(){this.cache=Jt.allocUnsafe(0)}na.prototype.add=function(r){this.cache=Jt.concat([this.cache,r])};na.prototype.get=function(r){var e;if(r){if(this.cache.length>16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null};na.prototype.flush=function(){if(this.cache.length)return this.cache};function r2(r){var e=r[15];if(e<1||e>16)throw new Error("unable to decrypt data");for(var t=-1;++t<e;)if(r[t+(16-e)]!==e)throw new Error("unable to decrypt data");if(e!==16)return r.slice(0,16-e)}function G0(r,e,t){var f=V0[r.toLowerCase()];if(!f)throw new TypeError("invalid suite type");if(typeof t=="string"&&(t=Jt.from(t)),f.mode!=="GCM"&&t.length!==f.iv)throw new TypeError("invalid iv length "+t.length);if(typeof e=="string"&&(e=Jt.from(e)),e.length!==f.key/8)throw new TypeError("invalid key length "+e.length);return f.type==="stream"?new Zu(f.module,e,t,!0):f.type==="auth"?new Yu(f.module,e,t,!0):new Bf(f.module,e,t)}function t2(r,e){var t=V0[r.toLowerCase()];if(!t)throw new TypeError("invalid suite type");var f=Qu(e,!1,t.key,t.iv);return G0(r,f.key,f.iv)}$i.createDecipher=t2;$i.createDecipheriv=G0});var ca=B(_r=>{g();x();var Z0=J0(),$0=Y0(),f2=Hi();function a2(){return Object.keys(f2)}_r.createCipher=_r.Cipher=Z0.createCipher;_r.createCipheriv=_r.Cipheriv=Z0.createCipheriv;_r.createDecipher=_r.Decipher=$0.createDecipher;_r.createDecipheriv=_r.Decipheriv=$0.createDecipheriv;_r.listCiphers=_r.getCiphers=a2});var rc=B(or=>{"use strict";g();x();or.readUInt32BE=function(e,t){var f=e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t];return f>>>0};or.writeUInt32BE=function(e,t,f){e[0+f]=t>>>24,e[1+f]=t>>>16&255,e[2+f]=t>>>8&255,e[3+f]=t&255};or.ip=function(e,t,f,a){for(var i=0,d=0,c=6;c>=0;c-=2){for(var o=0;o<=24;o+=8)i<<=1,i|=t>>>o+c&1;for(var o=0;o<=24;o+=8)i<<=1,i|=e>>>o+c&1}for(var c=6;c>=0;c-=2){for(var o=1;o<=25;o+=8)d<<=1,d|=t>>>o+c&1;for(var o=1;o<=25;o+=8)d<<=1,d|=e>>>o+c&1}f[a+0]=i>>>0,f[a+1]=d>>>0};or.rip=function(e,t,f,a){for(var i=0,d=0,c=0;c<4;c++)for(var o=24;o>=0;o-=8)i<<=1,i|=t>>>o+c&1,i<<=1,i|=e>>>o+c&1;for(var c=4;c<8;c++)for(var o=24;o>=0;o-=8)d<<=1,d|=t>>>o+c&1,d<<=1,d|=e>>>o+c&1;f[a+0]=i>>>0,f[a+1]=d>>>0};or.pc1=function(e,t,f,a){for(var i=0,d=0,c=7;c>=5;c--){for(var o=0;o<=24;o+=8)i<<=1,i|=t>>o+c&1;for(var o=0;o<=24;o+=8)i<<=1,i|=e>>o+c&1}for(var o=0;o<=24;o+=8)i<<=1,i|=t>>o+c&1;for(var c=1;c<=3;c++){for(var o=0;o<=24;o+=8)d<<=1,d|=t>>o+c&1;for(var o=0;o<=24;o+=8)d<<=1,d|=e>>o+c&1}for(var o=0;o<=24;o+=8)d<<=1,d|=e>>o+c&1;f[a+0]=i>>>0,f[a+1]=d>>>0};or.r28shl=function(e,t){return e<<t&268435455|e>>>28-t};var sa=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];or.pc2=function(e,t,f,a){for(var i=0,d=0,c=sa.length>>>1,o=0;o<c;o++)i<<=1,i|=e>>>sa[o]&1;for(var o=c;o<sa.length;o++)d<<=1,d|=t>>>sa[o]&1;f[a+0]=i>>>0,f[a+1]=d>>>0};or.expand=function(e,t,f){var a=0,i=0;a=(e&1)<<5|e>>>27;for(var d=23;d>=15;d-=4)a<<=6,a|=e>>>d&63;for(var d=11;d>=3;d-=4)i|=e>>>d&63,i<<=6;i|=(e&31)<<1|e>>>31,t[f+0]=a>>>0,t[f+1]=i>>>0};var Q0=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];or.substitute=function(e,t){for(var f=0,a=0;a<4;a++){var i=e>>>18-a*6&63,d=Q0[a*64+i];f<<=4,f|=d}for(var a=0;a<4;a++){var i=t>>>18-a*6&63,d=Q0[4*64+a*64+i];f<<=4,f|=d}return f>>>0};var ec=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];or.permute=function(e){for(var t=0,f=0;f<ec.length;f++)t<<=1,t|=e>>>ec[f]&1;return t>>>0};or.padSplit=function(e,t,f){for(var a=e.toString(2);a.length<t;)a="0"+a;for(var i=[],d=0;d<t;d+=f)i.push(a.slice(d,d+f));return i.join(" ")}});var er=B((Jl,fc)=>{g();x();fc.exports=tc;function tc(r,e){if(!r)throw new Error(e||"Assertion failed")}tc.equal=function(e,t,f){if(e!=t)throw new Error(f||"Assertion failed: "+e+" != "+t)}});var ic=B((Gl,ac)=>{"use strict";g();x();var i2=er();function hr(r){this.options=r,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}ac.exports=hr;hr.prototype._init=function(){};hr.prototype.update=function(e){return e.length===0?[]:this.type==="decrypt"?this._updateDecrypt(e):this._updateEncrypt(e)};hr.prototype._buffer=function(e,t){for(var f=Math.min(this.buffer.length-this.bufferOff,e.length-t),a=0;a<f;a++)this.buffer[this.bufferOff+a]=e[t+a];return this.bufferOff+=f,f};hr.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize};hr.prototype._updateEncrypt=function(e){var t=0,f=0,a=(this.bufferOff+e.length)/this.blockSize|0,i=new Array(a*this.blockSize);this.bufferOff!==0&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(f+=this._flushBuffer(i,f)));for(var d=e.length-(e.length-t)%this.blockSize;t<d;t+=this.blockSize)this._update(e,t,i,f),f+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return i};hr.prototype._updateDecrypt=function(e){for(var t=0,f=0,a=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,i=new Array(a*this.blockSize);a>0;a--)t+=this._buffer(e,t),f+=this._flushBuffer(i,f);return t+=this._buffer(e,t),i};hr.prototype.final=function(e){var t;e&&(t=this.update(e));var f;return this.type==="encrypt"?f=this._finalEncrypt():f=this._finalDecrypt(),t?t.concat(f):f};hr.prototype._pad=function(e,t){if(t===0)return!1;for(;t<e.length;)e[t++]=0;return!0};hr.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e};hr.prototype._unpad=function(e){return e};hr.prototype._finalDecrypt=function(){i2.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}});var oc=B(($l,sc)=>{"use strict";g();x();var dc=er(),d2=H(),nc=oa(),Oe=nc.utils,cc=nc.Cipher;function n2(){this.tmp=new Array(2),this.keys=null}function Dr(r){cc.call(this,r);var e=new n2;this._desState=e,this.deriveKeys(e,r.key)}d2(Dr,cc);sc.exports=Dr;Dr.create=function(e){return new Dr(e)};var c2=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];Dr.prototype.deriveKeys=function(e,t){e.keys=new Array(16*2),dc.equal(t.length,this.blockSize,"Invalid key length");var f=Oe.readUInt32BE(t,0),a=Oe.readUInt32BE(t,4);Oe.pc1(f,a,e.tmp,0),f=e.tmp[0],a=e.tmp[1];for(var i=0;i<e.keys.length;i+=2){var d=c2[i>>>1];f=Oe.r28shl(f,d),a=Oe.r28shl(a,d),Oe.pc2(f,a,e.keys,i)}};Dr.prototype._update=function(e,t,f,a){var i=this._desState,d=Oe.readUInt32BE(e,t),c=Oe.readUInt32BE(e,t+4);Oe.ip(d,c,i.tmp,0),d=i.tmp[0],c=i.tmp[1],this.type==="encrypt"?this._encrypt(i,d,c,i.tmp,0):this._decrypt(i,d,c,i.tmp,0),d=i.tmp[0],c=i.tmp[1],Oe.writeUInt32BE(f,d,a),Oe.writeUInt32BE(f,c,a+4)};Dr.prototype._pad=function(e,t){for(var f=e.length-t,a=t;a<e.length;a++)e[a]=f;return!0};Dr.prototype._unpad=function(e){for(var t=e[e.length-1],f=e.length-t;f<e.length;f++)dc.equal(e[f],t);return e.slice(0,e.length-t)};Dr.prototype._encrypt=function(e,t,f,a,i){for(var d=t,c=f,o=0;o<e.keys.length;o+=2){var l=e.keys[o],b=e.keys[o+1];Oe.expand(c,e.tmp,0),l^=e.tmp[0],b^=e.tmp[1];var p=Oe.substitute(l,b),S=Oe.permute(p),q=c;c=(d^S)>>>0,d=q}Oe.rip(c,d,a,i)};Dr.prototype._decrypt=function(e,t,f,a,i){for(var d=f,c=t,o=e.keys.length-2;o>=0;o-=2){var l=e.keys[o],b=e.keys[o+1];Oe.expand(d,e.tmp,0),l^=e.tmp[0],b^=e.tmp[1];var p=Oe.substitute(l,b),S=Oe.permute(p),q=d;d=(c^S)>>>0,c=q}Oe.rip(d,c,a,i)}});var uc=B(hc=>{"use strict";g();x();var s2=er(),o2=H(),ha={};function h2(r){s2.equal(r.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e<this.iv.length;e++)this.iv[e]=r[e]}function u2(r){function e(i){r.call(this,i),this._cbcInit()}o2(e,r);for(var t=Object.keys(ha),f=0;f<t.length;f++){var a=t[f];e.prototype[a]=ha[a]}return e.create=function(d){return new e(d)},e}hc.instantiate=u2;ha._cbcInit=function(){var e=new h2(this.options.iv);this._cbcState=e};ha._update=function(e,t,f,a){var i=this._cbcState,d=this.constructor.super_.prototype,c=i.iv;if(this.type==="encrypt"){for(var o=0;o<this.blockSize;o++)c[o]^=e[t+o];d._update.call(this,c,0,f,a);for(var o=0;o<this.blockSize;o++)c[o]=f[a+o]}else{d._update.call(this,e,t,f,a);for(var o=0;o<this.blockSize;o++)f[a+o]^=c[o];for(var o=0;o<this.blockSize;o++)c[o]=e[t+o]}}});var pc=B((a5,vc)=>{"use strict";g();x();var b2=er(),l2=H(),bc=oa(),lc=bc.Cipher,at=bc.DES;function v2(r,e){b2.equal(e.length,24,"Invalid key length");var t=e.slice(0,8),f=e.slice(8,16),a=e.slice(16,24);r==="encrypt"?this.ciphers=[at.create({type:"encrypt",key:t}),at.create({type:"decrypt",key:f}),at.create({type:"encrypt",key:a})]:this.ciphers=[at.create({type:"decrypt",key:a}),at.create({type:"encrypt",key:f}),at.create({type:"decrypt",key:t})]}function _t(r){lc.call(this,r);var e=new v2(this.type,this.options.key);this._edeState=e}l2(_t,lc);vc.exports=_t;_t.create=function(e){return new _t(e)};_t.prototype._update=function(e,t,f,a){var i=this._edeState;i.ciphers[0]._update(e,t,f,a),i.ciphers[1]._update(f,a,f,a),i.ciphers[2]._update(f,a,f,a)};_t.prototype._pad=at.prototype._pad;_t.prototype._unpad=at.prototype._unpad});var oa=B(Vt=>{"use strict";g();x();Vt.utils=rc();Vt.Cipher=ic();Vt.DES=oc();Vt.CBC=uc();Vt.EDE=pc()});var gc=B((o5,mc)=>{g();x();var yc=Xr(),Vr=oa(),p2=H(),Pf={"des-ede3-cbc":Vr.CBC.instantiate(Vr.EDE),"des-ede3":Vr.EDE,"des-ede-cbc":Vr.CBC.instantiate(Vr.EDE),"des-ede":Vr.EDE,"des-cbc":Vr.CBC.instantiate(Vr.DES),"des-ecb":Vr.DES};Pf.des=Pf["des-cbc"];Pf.des3=Pf["des-ede3-cbc"];mc.exports=ua;p2(ua,yc);function ua(r){yc.call(this);var e=r.mode.toLowerCase(),t=Pf[e],f;r.decrypt?f="decrypt":f="encrypt";var a=r.key;(e==="des-ede"||e==="des-ede-cbc")&&(a=A.Buffer.concat([a,a.slice(0,8)]));var i=r.iv;this._des=t.create({key:a,iv:i,type:f})}ua.prototype._update=function(r){return new A.Buffer(this._des.update(r))};ua.prototype._final=function(){return new A.Buffer(this._des.final())}});var xc=B(Wr=>{g();x();Wr["des-ecb"]={key:8,iv:0};Wr["des-cbc"]=Wr.des={key:8,iv:8};Wr["des-ede3-cbc"]=Wr.des3={key:24,iv:8};Wr["des-ede3"]={key:24,iv:0};Wr["des-ede-cbc"]={key:16,iv:8};Wr["des-ede"]={key:16,iv:0}});var Ac=B(Sr=>{g();x();var wc=Mf(),Qi=ca(),_c=gc(),Gr=xc(),it=fa();function y2(r,e){var t,f;if(r=r.toLowerCase(),it[r])t=it[r].key,f=it[r].iv;else if(Gr[r])t=Gr[r].key*8,f=Gr[r].iv;else throw new TypeError("invalid suite type");var a=wc(e,!1,t,f);return Sc(r,a.key,a.iv)}function m2(r,e){var t,f;if(r=r.toLowerCase(),it[r])t=it[r].key,f=it[r].iv;else if(Gr[r])t=Gr[r].key*8,f=Gr[r].iv;else throw new TypeError("invalid suite type");var a=wc(e,!1,t,f);return Mc(r,a.key,a.iv)}function Sc(r,e,t){if(r=r.toLowerCase(),it[r])return Qi.createCipheriv(r,e,t);if(Gr[r])return new _c({key:e,iv:t,mode:r});throw new TypeError("invalid suite type")}function Mc(r,e,t){if(r=r.toLowerCase(),it[r])return Qi.createDecipheriv(r,e,t);if(Gr[r])return new _c({key:e,iv:t,mode:r,decrypt:!0});throw new TypeError("invalid suite type")}Sr.createCipher=Sr.Cipher=y2;Sr.createCipheriv=Sr.Cipheriv=Sc;Sr.createDecipher=Sr.Decipher=m2;Sr.createDecipheriv=Sr.Decipheriv=Mc;function g2(){return Object.keys(Gr).concat(Qi.getCiphers())}Sr.listCiphers=Sr.getCiphers=g2});var K=B((qc,ed)=>{g();x();(function(r,e){"use strict";function t(_,n){if(!_)throw new Error(n||"Assertion failed")}function f(_,n){_.super_=n;var h=function(){};h.prototype=n.prototype,_.prototype=new h,_.prototype.constructor=_}function a(_,n,h){if(a.isBN(_))return _;this.negative=0,this.words=null,this.length=0,this.red=null,_!==null&&((n==="le"||n==="be")&&(h=n,n=10),this._init(_||0,n||10,h||"be"))}typeof r=="object"?r.exports=a:e.BN=a,a.BN=a,a.wordSize=26;var i;try{i=Jf().Buffer}catch{}a.isBN=function(n){return n instanceof a?!0:n!==null&&typeof n=="object"&&n.constructor.wordSize===a.wordSize&&Array.isArray(n.words)},a.max=function(n,h){return n.cmp(h)>0?n:h},a.min=function(n,h){return n.cmp(h)<0?n:h},a.prototype._init=function(n,h,u){if(typeof n=="number")return this._initNumber(n,h,u);if(typeof n=="object")return this._initArray(n,h,u);h==="hex"&&(h=16),t(h===(h|0)&&h>=2&&h<=36),n=n.toString().replace(/\s+/g,"");var v=0;n[0]==="-"&&v++,h===16?this._parseHex(n,v):this._parseBase(n,h,v),n[0]==="-"&&(this.negative=1),this.strip(),u==="le"&&this._initArray(this.toArray(),h,u)},a.prototype._initNumber=function(n,h,u){n<0&&(this.negative=1,n=-n),n<67108864?(this.words=[n&67108863],this.length=1):n<4503599627370496?(this.words=[n&67108863,n/67108864&67108863],this.length=2):(t(n<9007199254740992),this.words=[n&67108863,n/67108864&67108863,1],this.length=3),u==="le"&&this._initArray(this.toArray(),h,u)},a.prototype._initArray=function(n,h,u){if(t(typeof n.length=="number"),n.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(n.length/3),this.words=new Array(this.length);for(var v=0;v<this.length;v++)this.words[v]=0;var w,M,I=0;if(u==="be")for(v=n.length-1,w=0;v>=0;v-=3)M=n[v]|n[v-1]<<8|n[v-2]<<16,this.words[w]|=M<<I&67108863,this.words[w+1]=M>>>26-I&67108863,I+=24,I>=26&&(I-=26,w++);else if(u==="le")for(v=0,w=0;v<n.length;v+=3)M=n[v]|n[v+1]<<8|n[v+2]<<16,this.words[w]|=M<<I&67108863,this.words[w+1]=M>>>26-I&67108863,I+=24,I>=26&&(I-=26,w++);return this.strip()};function d(_,n,h){for(var u=0,v=Math.min(_.length,h),w=n;w<v;w++){var M=_.charCodeAt(w)-48;u<<=4,M>=49&&M<=54?u|=M-49+10:M>=17&&M<=22?u|=M-17+10:u|=M&15}return u}a.prototype._parseHex=function(n,h){this.length=Math.ceil((n.length-h)/6),this.words=new Array(this.length);for(var u=0;u<this.length;u++)this.words[u]=0;var v,w,M=0;for(u=n.length-6,v=0;u>=h;u-=6)w=d(n,u,u+6),this.words[v]|=w<<M&67108863,this.words[v+1]|=w>>>26-M&4194303,M+=24,M>=26&&(M-=26,v++);u+6!==h&&(w=d(n,h,u+6),this.words[v]|=w<<M&67108863,this.words[v+1]|=w>>>26-M&4194303),this.strip()};function c(_,n,h,u){for(var v=0,w=Math.min(_.length,h),M=n;M<w;M++){var I=_.charCodeAt(M)-48;v*=u,I>=49?v+=I-49+10:I>=17?v+=I-17+10:v+=I}return v}a.prototype._parseBase=function(n,h,u){this.words=[0],this.length=1;for(var v=0,w=1;w<=67108863;w*=h)v++;v--,w=w/h|0;for(var M=n.length-u,I=M%v,y=Math.min(M,M-I)+u,s=0,m=u;m<y;m+=v)s=c(n,m,m+v,h),this.imuln(w),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s);if(I!==0){var k=1;for(s=c(n,m,n.length,h),m=0;m<I;m++)k*=h;this.imuln(k),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s)}},a.prototype.copy=function(n){n.words=new Array(this.length);for(var h=0;h<this.length;h++)n.words[h]=this.words[h];n.length=this.length,n.negative=this.negative,n.red=this.red},a.prototype.clone=function(){var n=new a(null);return this.copy(n),n},a.prototype._expand=function(n){for(;this.length<n;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var o=["","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"],l=[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];a.prototype.toString=function(n,h){n=n||10,h=h|0||1;var u;if(n===16||n==="hex"){u="";for(var v=0,w=0,M=0;M<this.length;M++){var I=this.words[M],y=((I<<v|w)&16777215).toString(16);w=I>>>24-v&16777215,w!==0||M!==this.length-1?u=o[6-y.length]+y+u:u=y+u,v+=2,v>=26&&(v-=26,M--)}for(w!==0&&(u=w.toString(16)+u);u.length%h!==0;)u="0"+u;return this.negative!==0&&(u="-"+u),u}if(n===(n|0)&&n>=2&&n<=36){var s=l[n],m=b[n];u="";var k=this.clone();for(k.negative=0;!k.isZero();){var D=k.modn(m).toString(n);k=k.idivn(m),k.isZero()?u=D+u:u=o[s-D.length]+D+u}for(this.isZero()&&(u="0"+u);u.length%h!==0;)u="0"+u;return this.negative!==0&&(u="-"+u),u}t(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var n=this.words[0];return this.length===2?n+=this.words[1]*67108864:this.length===3&&this.words[2]===1?n+=4503599627370496+this.words[1]*67108864:this.length>2&&t(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-n:n},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(n,h){return t(typeof i<"u"),this.toArrayLike(i,n,h)},a.prototype.toArray=function(n,h){return this.toArrayLike(Array,n,h)},a.prototype.toArrayLike=function(n,h,u){var v=this.byteLength(),w=u||Math.max(1,v);t(v<=w,"byte array longer than desired length"),t(w>0,"Requested array length <= 0"),this.strip();var M=h==="le",I=new n(w),y,s,m=this.clone();if(M){for(s=0;!m.isZero();s++)y=m.andln(255),m.iushrn(8),I[s]=y;for(;s<w;s++)I[s]=0}else{for(s=0;s<w-v;s++)I[s]=0;for(s=0;!m.isZero();s++)y=m.andln(255),m.iushrn(8),I[w-s-1]=y}return I},Math.clz32?a.prototype._countBits=function(n){return 32-Math.clz32(n)}:a.prototype._countBits=function(n){var h=n,u=0;return h>=4096&&(u+=13,h>>>=13),h>=64&&(u+=7,h>>>=7),h>=8&&(u+=4,h>>>=4),h>=2&&(u+=2,h>>>=2),u+h},a.prototype._zeroBits=function(n){if(n===0)return 26;var h=n,u=0;return(h&8191)===0&&(u+=13,h>>>=13),(h&127)===0&&(u+=7,h>>>=7),(h&15)===0&&(u+=4,h>>>=4),(h&3)===0&&(u+=2,h>>>=2),(h&1)===0&&u++,u},a.prototype.bitLength=function(){var n=this.words[this.length-1],h=this._countBits(n);return(this.length-1)*26+h};function p(_){for(var n=new Array(_.bitLength()),h=0;h<n.length;h++){var u=h/26|0,v=h%26;n[h]=(_.words[u]&1<<v)>>>v}return n}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var n=0,h=0;h<this.length;h++){var u=this._zeroBits(this.words[h]);if(n+=u,u!==26)break}return n},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(n){return this.negative!==0?this.abs().inotn(n).iaddn(1):this.clone()},a.prototype.fromTwos=function(n){return this.testn(n-1)?this.notn(n).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return this.negative!==0},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(n){for(;this.length<n.length;)this.words[this.length++]=0;for(var h=0;h<n.length;h++)this.words[h]=this.words[h]|n.words[h];return this.strip()},a.prototype.ior=function(n){return t((this.negative|n.negative)===0),this.iuor(n)},a.prototype.or=function(n){return this.length>n.length?this.clone().ior(n):n.clone().ior(this)},a.prototype.uor=function(n){return this.length>n.length?this.clone().iuor(n):n.clone().iuor(this)},a.prototype.iuand=function(n){var h;this.length>n.length?h=n:h=this;for(var u=0;u<h.length;u++)this.words[u]=this.words[u]&n.words[u];return this.length=h.length,this.strip()},a.prototype.iand=function(n){return t((this.negative|n.negative)===0),this.iuand(n)},a.prototype.and=function(n){return this.length>n.length?this.clone().iand(n):n.clone().iand(this)},a.prototype.uand=function(n){return this.length>n.length?this.clone().iuand(n):n.clone().iuand(this)},a.prototype.iuxor=function(n){var h,u;this.length>n.length?(h=this,u=n):(h=n,u=this);for(var v=0;v<u.length;v++)this.words[v]=h.words[v]^u.words[v];if(this!==h)for(;v<h.length;v++)this.words[v]=h.words[v];return this.length=h.length,this.strip()},a.prototype.ixor=function(n){return t((this.negative|n.negative)===0),this.iuxor(n)},a.prototype.xor=function(n){return this.length>n.length?this.clone().ixor(n):n.clone().ixor(this)},a.prototype.uxor=function(n){return this.length>n.length?this.clone().iuxor(n):n.clone().iuxor(this)},a.prototype.inotn=function(n){t(typeof n=="number"&&n>=0);var h=Math.ceil(n/26)|0,u=n%26;this._expand(h),u>0&&h--;for(var v=0;v<h;v++)this.words[v]=~this.words[v]&67108863;return u>0&&(this.words[v]=~this.words[v]&67108863>>26-u),this.strip()},a.prototype.notn=function(n){return this.clone().inotn(n)},a.prototype.setn=function(n,h){t(typeof n=="number"&&n>=0);var u=n/26|0,v=n%26;return this._expand(u+1),h?this.words[u]=this.words[u]|1<<v:this.words[u]=this.words[u]&~(1<<v),this.strip()},a.prototype.iadd=function(n){var h;if(this.negative!==0&&n.negative===0)return this.negative=0,h=this.isub(n),this.negative^=1,this._normSign();if(this.negative===0&&n.negative!==0)return n.negative=0,h=this.isub(n),n.negative=1,h._normSign();var u,v;this.length>n.length?(u=this,v=n):(u=n,v=this);for(var w=0,M=0;M<v.length;M++)h=(u.words[M]|0)+(v.words[M]|0)+w,this.words[M]=h&67108863,w=h>>>26;for(;w!==0&&M<u.length;M++)h=(u.words[M]|0)+w,this.words[M]=h&67108863,w=h>>>26;if(this.length=u.length,w!==0)this.words[this.length]=w,this.length++;else if(u!==this)for(;M<u.length;M++)this.words[M]=u.words[M];return this},a.prototype.add=function(n){var h;return n.negative!==0&&this.negative===0?(n.negative=0,h=this.sub(n),n.negative^=1,h):n.negative===0&&this.negative!==0?(this.negative=0,h=n.sub(this),this.negative=1,h):this.length>n.length?this.clone().iadd(n):n.clone().iadd(this)},a.prototype.isub=function(n){if(n.negative!==0){n.negative=0;var h=this.iadd(n);return n.negative=1,h._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(n),this.negative=1,this._normSign();var u=this.cmp(n);if(u===0)return this.negative=0,this.length=1,this.words[0]=0,this;var v,w;u>0?(v=this,w=n):(v=n,w=this);for(var M=0,I=0;I<w.length;I++)h=(v.words[I]|0)-(w.words[I]|0)+M,M=h>>26,this.words[I]=h&67108863;for(;M!==0&&I<v.length;I++)h=(v.words[I]|0)+M,M=h>>26,this.words[I]=h&67108863;if(M===0&&I<v.length&&v!==this)for(;I<v.length;I++)this.words[I]=v.words[I];return this.length=Math.max(this.length,I),v!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(n){return this.clone().isub(n)};function S(_,n,h){h.negative=n.negative^_.negative;var u=_.length+n.length|0;h.length=u,u=u-1|0;var v=_.words[0]|0,w=n.words[0]|0,M=v*w,I=M&67108863,y=M/67108864|0;h.words[0]=I;for(var s=1;s<u;s++){for(var m=y>>>26,k=y&67108863,D=Math.min(s,n.length-1),z=Math.max(0,s-_.length+1);z<=D;z++){var T=s-z|0;v=_.words[T]|0,w=n.words[z]|0,M=v*w+k,m+=M/67108864|0,k=M&67108863}h.words[s]=k|0,y=m|0}return y!==0?h.words[s]=y|0:h.length--,h.strip()}var q=function(n,h,u){var v=n.words,w=h.words,M=u.words,I=0,y,s,m,k=v[0]|0,D=k&8191,z=k>>>13,T=v[1]|0,F=T&8191,J=T>>>13,ft=v[2]|0,V=ft&8191,Z=ft>>>13,pn=v[3]|0,re=pn&8191,te=pn>>>13,yn=v[4]|0,fe=yn&8191,ae=yn>>>13,mn=v[5]|0,ie=mn&8191,de=mn>>>13,gn=v[6]|0,ne=gn&8191,ce=gn>>>13,xn=v[7]|0,se=xn&8191,oe=xn>>>13,wn=v[8]|0,he=wn&8191,ue=wn>>>13,_n=v[9]|0,be=_n&8191,le=_n>>>13,Sn=w[0]|0,ve=Sn&8191,pe=Sn>>>13,Mn=w[1]|0,ye=Mn&8191,me=Mn>>>13,An=w[2]|0,ge=An&8191,xe=An>>>13,qn=w[3]|0,we=qn&8191,_e=qn>>>13,In=w[4]|0,Se=In&8191,Me=In>>>13,En=w[5]|0,Ae=En&8191,qe=En>>>13,Bn=w[6]|0,Ie=Bn&8191,Ee=Bn>>>13,Pn=w[7]|0,Be=Pn&8191,Pe=Pn>>>13,Rn=w[8]|0,Re=Rn&8191,Ce=Rn>>>13,Cn=w[9]|0,ke=Cn&8191,De=Cn>>>13;u.negative=n.negative^h.negative,u.length=19,y=Math.imul(D,ve),s=Math.imul(D,pe),s=s+Math.imul(z,ve)|0,m=Math.imul(z,pe);var ti=(I+y|0)+((s&8191)<<13)|0;I=(m+(s>>>13)|0)+(ti>>>26)|0,ti&=67108863,y=Math.imul(F,ve),s=Math.imul(F,pe),s=s+Math.imul(J,ve)|0,m=Math.imul(J,pe),y=y+Math.imul(D,ye)|0,s=s+Math.imul(D,me)|0,s=s+Math.imul(z,ye)|0,m=m+Math.imul(z,me)|0;var fi=(I+y|0)+((s&8191)<<13)|0;I=(m+(s>>>13)|0)+(fi>>>26)|0,fi&=67108863,y=Math.imul(V,ve),s=Math.imul(V,pe),s=s+Math.imul(Z,ve)|0,m=Math.imul(Z,pe),y=y+Math.imul(F,ye)|0,s=s+Math.imul(F,me)|0,s=s+Math.imul(J,ye)|0,m=m+Math.imul(J,me)|0,y=y+Math.imul(D,ge)|0,s=s+Math.imul(D,xe)|0,s=s+Math.imul(z,ge)|0,m=m+Math.imul(z,xe)|0;var ai=(I+y|0)+((s&8191)<<13)|0;I=(m+(s>>>13)|0)+(ai>>>26)|0,ai&=67108863,y=Math.imul(re,ve),s=Math.imul(re,pe),s=s+Math.imul(te,ve)|0,m=Math.imul(te,pe),y=y+Math.imul(V,ye)|0,s=s+Math.imul(V,me)|0,s=s+Math.imul(Z,ye)|0,m=m+Math.imul(Z,me)|0,y=y+Math.imul(F,ge)|0,s=s+Math.imul(F,xe)|0,s=s+Math.imul(J,ge)|0,m=m+Math.imul(J,xe)|0,y=y+Math.imul(D,we)|0,s=s+Math.imul(D,_e)|0,s=s+Math.imul(z,we)|0,m=m+Math.imul(z,_e)|0;var ii=(I+y|0)+((s&8191)<<13)|0;I=(m+(s>>>13)|0)+(ii>>>26)|0,ii&=67108863,y=Math.imul(fe,ve),s=Math.imul(fe,pe),s=s+Math.imul(ae,ve)|0,m=Math.imul(ae,pe),y=y+Math.imul(re,ye)|0,s=s+Math.imul(re,me)|0,s=s+Math.imul(te,ye)|0,m=m+Math.imul(te,me)|0,y=y+Math.imul(V,ge)|0,s=s+Math.imul(V,xe)|0,s=s+Math.imul(Z,ge)|0,m=m+Math.imul(Z,xe)|0,y=y+Math.imul(F,we)|0,s=s+Math.imul(F,_e)|0,s=s+Math.imul(J,we)|0,m=m+Math.imul(J,_e)|0,y=y+Math.imul(D,Se)|0,s=s+Math.imul(D,Me)|0,s=s+Math.imul(z,Se)|0,m=m+Math.imul(z,Me)|0;var di=(I+y|0)+((s&8191)<<13)|0;I=(m+(s>>>13)|0)+(di>>>26)|0,di&=67108863,y=Math.imul(ie,ve),s=Math.imul(ie,pe),s=s+Math.imul(de,ve)|0,m=Math.imul(de,pe),y=y+Math.imul(fe,ye)|0,s=s+Math.imul(fe,me)|0,s=s+Math.imul(ae,ye)|0,m=m+Math.imul(ae,me)|0,y=y+Math.imul(re,ge)|0,s=s+Math.imul(re,xe)|0,s=s+Math.imul(te,ge)|0,m=m+Math.imul(te,xe)|0,y=y+Math.imul(V,we)|0,s=s+Math.imul(V,_e)|0,s=s+Math.imul(Z,we)|0,m=m+Math.imul(Z,_e)|0,y=y+Math.imul(F,Se)|0,s=s+Math.imul(F,Me)|0,s=s+Math.imul(J,Se)|0,m=m+Math.imul(J,Me)|0,y=y+Math.imul(D,Ae)|0,s=s+Math.imul(D,qe)|0,s=s+Math.imul(z,Ae)|0,m=m+Math.imul(z,qe)|0;var ni=(I+y|0)+((s&8191)<<13)|0;I=(m+(s>>>13)|0)+(ni>>>26)|0,ni&=67108863,y=Math.imul(ne,ve),s=Math.imul(ne,pe),s=s+Math.imul(ce,ve)|0,m=Math.imul(ce,pe),y=y+Math.imul(ie,ye)|0,s=s+Math.imul(ie,me)|0,s=s+Math.imul(de,ye)|0,m=m+Math.imul(de,me)|0,y=y+Math.imul(fe,ge)|0,s=s+Math.imul(fe,xe)|0,s=s+Math.imul(ae,ge)|0,m=m+Math.imul(ae,xe)|0,y=y+Math.imul(re,we)|0,s=s+Math.imul(re,_e)|0,s=s+Math.imul(te,we)|0,m=m+Math.imul(te,_e)|0,y=y+Math.imul(V,Se)|0,s=s+Math.imul(V,Me)|0,s=s+Math.imul(Z,Se)|0,m=m+Math.imul(Z,Me)|0,y=y+Math.imul(F,Ae)|0,s=s+Math.imul(F,qe)|0,s=s+Math.imul(J,Ae)|0,m=m+Math.imul(J,qe)|0,y=y+Math.imul(D,Ie)|0,s=s+Math.imul(D,Ee)|0,s=s+Math.imul(z,Ie)|0,m=m+Math.imul(z,Ee)|0;var ci=(I+y|0)+((s&8191)<<13)|0;I=(m+(s>>>13)|0)+(ci>>>26)|0,ci&=67108863,y=Math.imul(se,ve),s=Math.imul(se,pe),s=s+Math.imul(oe,ve)|0,m=Math.imul(oe,pe),y=y+Math.imul(ne,ye)|0,s=s+Math.imul(ne,me)|0,s=s+Math.imul(ce,ye)|0,m=m+Math.imul(ce,me)|0,y=y+Math.imul(ie,ge)|0,s=s+Math.imul(ie,xe)|0,s=s+Math.imul(de,ge)|0,m=m+Math.imul(de,xe)|0,y=y+Math.imul(fe,we)|0,s=s+Math.imul(fe,_e)|0,s=s+Math.imul(ae,we)|0,m=m+Math.imul(ae,_e)|0,y=y+Math.imul(re,Se)|0,s=s+Math.imul(re,Me)|0,s=s+Math.imul(te,Se)|0,m=m+Math.imul(te,Me)|0,y=y+Math.imul(V,Ae)|0,s=s+Math.imul(V,qe)|0,s=s+Math.imul(Z,Ae)|0,m=m+Math.imul(Z,qe)|0,y=y+Math.imul(F,Ie)|0,s=s+Math.imul(F,Ee)|0,s=s+Math.imul(J,Ie)|0,m=m+Math.imul(J,Ee)|0,y=y+Math.imul(D,Be)|0,s=s+Math.imul(D,Pe)|0,s=s+Math.imul(z,Be)|0,m=m+Math.imul(z,Pe)|0;var si=(I+y|0)+((s&8191)<<13)|0;I=(m+(s>>>13)|0)+(si>>>26)|0,si&=67108863,y=Math.imul(he,ve),s=Math.imul(he,pe),s=s+Math.imul(ue,ve)|0,m=Math.imul(ue,pe),y=y+Math.imul(se,ye)|0,s=s+Math.imul(se,me)|0,s=s+Math.imul(oe,ye)|0,m=m+Math.imul(oe,me)|0,y=y+Math.imul(ne,ge)|0,s=s+Math.imul(ne,xe)|0,s=s+Math.imul(ce,ge)|0,m=m+Math.imul(ce,xe)|0,y=y+Math.imul(ie,we)|0,s=s+Math.imul(ie,_e)|0,s=s+Math.imul(de,we)|0,m=m+Math.imul(de,_e)|0,y=y+Math.imul(fe,Se)|0,s=s+Math.imul(fe,Me)|0,s=s+Math.imul(ae,Se)|0,m=m+Math.imul(ae,Me)|0,y=y+Math.imul(re,Ae)|0,s=s+Math.imul(re,qe)|0,s=s+Math.imul(te,Ae)|0,m=m+Math.imul(te,qe)|0,y=y+Math.imul(V,Ie)|0,s=s+Math.imul(V,Ee)|0,s=s+Math.imul(Z,Ie)|0,m=m+Math.imul(Z,Ee)|0,y=y+Math.imul(F,Be)|0,s=s+Math.imul(F,Pe)|0,s=s+Math.imul(J,Be)|0,m=m+Math.imul(J,Pe)|0,y=y+Math.imul(D,Re)|0,s=s+Math.imul(D,Ce)|0,s=s+Math.imul(z,Re)|0,m=m+Math.imul(z,Ce)|0;var oi=(I+y|0)+((s&8191)<<13)|0;I=(m+(s>>>13)|0)+(oi>>>26)|0,oi&=67108863,y=Math.imul(be,ve),s=Math.imul(be,pe),s=s+Math.imul(le,ve)|0,m=Math.imul(le,pe),y=y+Math.imul(he,ye)|0,s=s+Math.imul(he,me)|0,s=s+Math.imul(ue,ye)|0,m=m+Math.imul(ue,me)|0,y=y+Math.imul(se,ge)|0,s=s+Math.imul(se,xe)|0,s=s+Math.imul(oe,ge)|0,m=m+Math.imul(oe,xe)|0,y=y+Math.imul(ne,we)|0,s=s+Math.imul(ne,_e)|0,s=s+Math.imul(ce,we)|0,m=m+Math.imul(ce,_e)|0,y=y+Math.imul(ie,Se)|0,s=s+Math.imul(ie,Me)|0,s=s+Math.imul(de,Se)|0,m=m+Math.imul(de,Me)|0,y=y+Math.imul(fe,Ae)|0,s=s+Math.imul(fe,qe)|0,s=s+Math.imul(ae,Ae)|0,m=m+Math.imul(ae,qe)|0,y=y+Math.imul(re,Ie)|0,s=s+Math.imul(re,Ee)|0,s=s+Math.imul(te,Ie)|0,m=m+Math.imul(te,Ee)|0,y=y+Math.imul(V,Be)|0,s=s+Math.imul(V,Pe)|0,s=s+Math.imul(Z,Be)|0,m=m+Math.imul(Z,Pe)|0,y=y+Math.imul(F,Re)|0,s=s+Math.imul(F,Ce)|0,s=s+Math.imul(J,Re)|0,m=m+Math.imul(J,Ce)|0,y=y+Math.imul(D,ke)|0,s=s+Math.imul(D,De)|0,s=s+Math.imul(z,ke)|0,m=m+Math.imul(z,De)|0;var hi=(I+y|0)+((s&8191)<<13)|0;I=(m+(s>>>13)|0)+(hi>>>26)|0,hi&=67108863,y=Math.imul(be,ye),s=Math.imul(be,me),s=s+Math.imul(le,ye)|0,m=Math.imul(le,me),y=y+Math.imul(he,ge)|0,s=s+Math.imul(he,xe)|0,s=s+Math.imul(ue,ge)|0,m=m+Math.imul(ue,xe)|0,y=y+Math.imul(se,we)|0,s=s+Math.imul(se,_e)|0,s=s+Math.imul(oe,we)|0,m=m+Math.imul(oe,_e)|0,y=y+Math.imul(ne,Se)|0,s=s+Math.imul(ne,Me)|0,s=s+Math.imul(ce,Se)|0,m=m+Math.imul(ce,Me)|0,y=y+Math.imul(ie,Ae)|0,s=s+Math.imul(ie,qe)|0,s=s+Math.imul(de,Ae)|0,m=m+Math.imul(de,qe)|0,y=y+Math.imul(fe,Ie)|0,s=s+Math.imul(fe,Ee)|0,s=s+Math.imul(ae,Ie)|0,m=m+Math.imul(ae,Ee)|0,y=y+Math.imul(re,Be)|0,s=s+Math.imul(re,Pe)|0,s=s+Math.imul(te,Be)|0,m=m+Math.imul(te,Pe)|0,y=y+Math.imul(V,Re)|0,s=s+Math.imul(V,Ce)|0,s=s+Math.imul(Z,Re)|0,m=m+Math.imul(Z,Ce)|0,y=y+Math.imul(F,ke)|0,s=s+Math.imul(F,De)|0,s=s+Math.imul(J,ke)|0,m=m+Math.imul(J,De)|0;var ui=(I+y|0)+((s&8191)<<13)|0;I=(m+(s>>>13)|0)+(ui>>>26)|0,ui&=67108863,y=Math.imul(be,ge),s=Math.imul(be,xe),s=s+Math.imul(le,ge)|0,m=Math.imul(le,xe),y=y+Math.imul(he,we)|0,s=s+Math.imul(he,_e)|0,s=s+Math.imul(ue,we)|0,m=m+Math.imul(ue,_e)|0,y=y+Math.imul(se,Se)|0,s=s+Math.imul(se,Me)|0,s=s+Math.imul(oe,Se)|0,m=m+Math.imul(oe,Me)|0,y=y+Math.imul(ne,Ae)|0,s=s+Math.imul(ne,qe)|0,s=s+Math.imul(ce,Ae)|0,m=m+Math.imul(ce,qe)|0,y=y+Math.imul(ie,Ie)|0,s=s+Math.imul(ie,Ee)|0,s=s+Math.imul(de,Ie)|0,m=m+Math.imul(de,Ee)|0,y=y+Math.imul(fe,Be)|0,s=s+Math.imul(fe,Pe)|0,s=s+Math.imul(ae,Be)|0,m=m+Math.imul(ae,Pe)|0,y=y+Math.imul(re,Re)|0,s=s+Math.imul(re,Ce)|0,s=s+Math.imul(te,Re)|0,m=m+Math.imul(te,Ce)|0,y=y+Math.imul(V,ke)|0,s=s+Math.imul(V,De)|0,s=s+Math.imul(Z,ke)|0,m=m+Math.imul(Z,De)|0;var bi=(I+y|0)+((s&8191)<<13)|0;I=(m+(s>>>13)|0)+(bi>>>26)|0,bi&=67108863,y=Math.imul(be,we),s=Math.imul(be,_e),s=s+Math.imul(le,we)|0,m=Math.imul(le,_e),y=y+Math.imul(he,Se)|0,s=s+Math.imul(he,Me)|0,s=s+Math.imul(ue,Se)|0,m=m+Math.imul(ue,Me)|0,y=y+Math.imul(se,Ae)|0,s=s+Math.imul(se,qe)|0,s=s+Math.imul(oe,Ae)|0,m=m+Math.imul(oe,qe)|0,y=y+Math.imul(ne,Ie)|0,s=s+Math.imul(ne,Ee)|0,s=s+Math.imul(ce,Ie)|0,m=m+Math.imul(ce,Ee)|0,y=y+Math.imul(ie,Be)|0,s=s+Math.imul(ie,Pe)|0,s=s+Math.imul(de,Be)|0,m=m+Math.imul(de,Pe)|0,y=y+Math.imul(fe,Re)|0,s=s+Math.imul(fe,Ce)|0,s=s+Math.imul(ae,Re)|0,m=m+Math.imul(ae,Ce)|0,y=y+Math.imul(re,ke)|0,s=s+Math.imul(re,De)|0,s=s+Math.imul(te,ke)|0,m=m+Math.imul(te,De)|0;var li=(I+y|0)+((s&8191)<<13)|0;I=(m+(s>>>13)|0)+(li>>>26)|0,li&=67108863,y=Math.imul(be,Se),s=Math.imul(be,Me),s=s+Math.imul(le,Se)|0,m=Math.imul(le,Me),y=y+Math.imul(he,Ae)|0,s=s+Math.imul(he,qe)|0,s=s+Math.imul(ue,Ae)|0,m=m+Math.imul(ue,qe)|0,y=y+Math.imul(se,Ie)|0,s=s+Math.imul(se,Ee)|0,s=s+Math.imul(oe,Ie)|0,m=m+Math.imul(oe,Ee)|0,y=y+Math.imul(ne,Be)|0,s=s+Math.imul(ne,Pe)|0,s=s+Math.imul(ce,Be)|0,m=m+Math.imul(ce,Pe)|0,y=y+Math.imul(ie,Re)|0,s=s+Math.imul(ie,Ce)|0,s=s+Math.imul(de,Re)|0,m=m+Math.imul(de,Ce)|0,y=y+Math.imul(fe,ke)|0,s=s+Math.imul(fe,De)|0,s=s+Math.imul(ae,ke)|0,m=m+Math.imul(ae,De)|0;var vi=(I+y|0)+((s&8191)<<13)|0;I=(m+(s>>>13)|0)+(vi>>>26)|0,vi&=67108863,y=Math.imul(be,Ae),s=Math.imul(be,qe),s=s+Math.imul(le,Ae)|0,m=Math.imul(le,qe),y=y+Math.imul(he,Ie)|0,s=s+Math.imul(he,Ee)|0,s=s+Math.imul(ue,Ie)|0,m=m+Math.imul(ue,Ee)|0,y=y+Math.imul(se,Be)|0,s=s+Math.imul(se,Pe)|0,s=s+Math.imul(oe,Be)|0,m=m+Math.imul(oe,Pe)|0,y=y+Math.imul(ne,Re)|0,s=s+Math.imul(ne,Ce)|0,s=s+Math.imul(ce,Re)|0,m=m+Math.imul(ce,Ce)|0,y=y+Math.imul(ie,ke)|0,s=s+Math.imul(ie,De)|0,s=s+Math.imul(de,ke)|0,m=m+Math.imul(de,De)|0;var pi=(I+y|0)+((s&8191)<<13)|0;I=(m+(s>>>13)|0)+(pi>>>26)|0,pi&=67108863,y=Math.imul(be,Ie),s=Math.imul(be,Ee),s=s+Math.imul(le,Ie)|0,m=Math.imul(le,Ee),y=y+Math.imul(he,Be)|0,s=s+Math.imul(he,Pe)|0,s=s+Math.imul(ue,Be)|0,m=m+Math.imul(ue,Pe)|0,y=y+Math.imul(se,Re)|0,s=s+Math.imul(se,Ce)|0,s=s+Math.imul(oe,Re)|0,m=m+Math.imul(oe,Ce)|0,y=y+Math.imul(ne,ke)|0,s=s+Math.imul(ne,De)|0,s=s+Math.imul(ce,ke)|0,m=m+Math.imul(ce,De)|0;var yi=(I+y|0)+((s&8191)<<13)|0;I=(m+(s>>>13)|0)+(yi>>>26)|0,yi&=67108863,y=Math.imul(be,Be),s=Math.imul(be,Pe),s=s+Math.imul(le,Be)|0,m=Math.imul(le,Pe),y=y+Math.imul(he,Re)|0,s=s+Math.imul(he,Ce)|0,s=s+Math.imul(ue,Re)|0,m=m+Math.imul(ue,Ce)|0,y=y+Math.imul(se,ke)|0,s=s+Math.imul(se,De)|0,s=s+Math.imul(oe,ke)|0,m=m+Math.imul(oe,De)|0;var mi=(I+y|0)+((s&8191)<<13)|0;I=(m+(s>>>13)|0)+(mi>>>26)|0,mi&=67108863,y=Math.imul(be,Re),s=Math.imul(be,Ce),s=s+Math.imul(le,Re)|0,m=Math.imul(le,Ce),y=y+Math.imul(he,ke)|0,s=s+Math.imul(he,De)|0,s=s+Math.imul(ue,ke)|0,m=m+Math.imul(ue,De)|0;var gi=(I+y|0)+((s&8191)<<13)|0;I=(m+(s>>>13)|0)+(gi>>>26)|0,gi&=67108863,y=Math.imul(be,ke),s=Math.imul(be,De),s=s+Math.imul(le,ke)|0,m=Math.imul(le,De);var xi=(I+y|0)+((s&8191)<<13)|0;return I=(m+(s>>>13)|0)+(xi>>>26)|0,xi&=67108863,M[0]=ti,M[1]=fi,M[2]=ai,M[3]=ii,M[4]=di,M[5]=ni,M[6]=ci,M[7]=si,M[8]=oi,M[9]=hi,M[10]=ui,M[11]=bi,M[12]=li,M[13]=vi,M[14]=pi,M[15]=yi,M[16]=mi,M[17]=gi,M[18]=xi,I!==0&&(M[19]=I,u.length++),u};Math.imul||(q=S);function E(_,n,h){h.negative=n.negative^_.negative,h.length=_.length+n.length;for(var u=0,v=0,w=0;w<h.length-1;w++){var M=v;v=0;for(var I=u&67108863,y=Math.min(w,n.length-1),s=Math.max(0,w-_.length+1);s<=y;s++){var m=w-s,k=_.words[m]|0,D=n.words[s]|0,z=k*D,T=z&67108863;M=M+(z/67108864|0)|0,T=T+I|0,I=T&67108863,M=M+(T>>>26)|0,v+=M>>>26,M&=67108863}h.words[w]=I,u=M,M=v}return u!==0?h.words[w]=u:h.length--,h.strip()}function P(_,n,h){var u=new C;return u.mulp(_,n,h)}a.prototype.mulTo=function(n,h){var u,v=this.length+n.length;return this.length===10&&n.length===10?u=q(this,n,h):v<63?u=S(this,n,h):v<1024?u=E(this,n,h):u=P(this,n,h),u};function C(_,n){this.x=_,this.y=n}C.prototype.makeRBT=function(n){for(var h=new Array(n),u=a.prototype._countBits(n)-1,v=0;v<n;v++)h[v]=this.revBin(v,u,n);return h},C.prototype.revBin=function(n,h,u){if(n===0||n===u-1)return n;for(var v=0,w=0;w<h;w++)v|=(n&1)<<h-w-1,n>>=1;return v},C.prototype.permute=function(n,h,u,v,w,M){for(var I=0;I<M;I++)v[I]=h[n[I]],w[I]=u[n[I]]},C.prototype.transform=function(n,h,u,v,w,M){this.permute(M,n,h,u,v,w);for(var I=1;I<w;I<<=1)for(var y=I<<1,s=Math.cos(2*Math.PI/y),m=Math.sin(2*Math.PI/y),k=0;k<w;k+=y)for(var D=s,z=m,T=0;T<I;T++){var F=u[k+T],J=v[k+T],ft=u[k+T+I],V=v[k+T+I],Z=D*ft-z*V;V=D*V+z*ft,ft=Z,u[k+T]=F+ft,v[k+T]=J+V,u[k+T+I]=F-ft,v[k+T+I]=J-V,T!==y&&(Z=s*D-m*z,z=s*z+m*D,D=Z)}},C.prototype.guessLen13b=function(n,h){var u=Math.max(h,n)|1,v=u&1,w=0;for(u=u/2|0;u;u=u>>>1)w++;return 1<<w+1+v},C.prototype.conjugate=function(n,h,u){if(!(u<=1))for(var v=0;v<u/2;v++){var w=n[v];n[v]=n[u-v-1],n[u-v-1]=w,w=h[v],h[v]=-h[u-v-1],h[u-v-1]=-w}},C.prototype.normalize13b=function(n,h){for(var u=0,v=0;v<h/2;v++){var w=Math.round(n[2*v+1]/h)*8192+Math.round(n[2*v]/h)+u;n[v]=w&67108863,w<67108864?u=0:u=w/67108864|0}return n},C.prototype.convert13b=function(n,h,u,v){for(var w=0,M=0;M<h;M++)w=w+(n[M]|0),u[2*M]=w&8191,w=w>>>13,u[2*M+1]=w&8191,w=w>>>13;for(M=2*h;M<v;++M)u[M]=0;t(w===0),t((w&-8192)===0)},C.prototype.stub=function(n){for(var h=new Array(n),u=0;u<n;u++)h[u]=0;return h},C.prototype.mulp=function(n,h,u){var v=2*this.guessLen13b(n.length,h.length),w=this.makeRBT(v),M=this.stub(v),I=new Array(v),y=new Array(v),s=new Array(v),m=new Array(v),k=new Array(v),D=new Array(v),z=u.words;z.length=v,this.convert13b(n.words,n.length,I,v),this.convert13b(h.words,h.length,m,v),this.transform(I,M,y,s,v,w),this.transform(m,M,k,D,v,w);for(var T=0;T<v;T++){var F=y[T]*k[T]-s[T]*D[T];s[T]=y[T]*D[T]+s[T]*k[T],y[T]=F}return this.conjugate(y,s,v),this.transform(y,s,z,M,v,w),this.conjugate(z,M,v),this.normalize13b(z,v),u.negative=n.negative^h.negative,u.length=n.length+h.length,u.strip()},a.prototype.mul=function(n){var h=new a(null);return h.words=new Array(this.length+n.length),this.mulTo(n,h)},a.prototype.mulf=function(n){var h=new a(null);return h.words=new Array(this.length+n.length),P(this,n,h)},a.prototype.imul=function(n){return this.clone().mulTo(n,this)},a.prototype.imuln=function(n){t(typeof n=="number"),t(n<67108864);for(var h=0,u=0;u<this.length;u++){var v=(this.words[u]|0)*n,w=(v&67108863)+(h&67108863);h>>=26,h+=v/67108864|0,h+=w>>>26,this.words[u]=w&67108863}return h!==0&&(this.words[u]=h,this.length++),this},a.prototype.muln=function(n){return this.clone().imuln(n)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(n){var h=p(n);if(h.length===0)return new a(1);for(var u=this,v=0;v<h.length&&h[v]===0;v++,u=u.sqr());if(++v<h.length)for(var w=u.sqr();v<h.length;v++,w=w.sqr())h[v]!==0&&(u=u.mul(w));return u},a.prototype.iushln=function(n){t(typeof n=="number"&&n>=0);var h=n%26,u=(n-h)/26,v=67108863>>>26-h<<26-h,w;if(h!==0){var M=0;for(w=0;w<this.length;w++){var I=this.words[w]&v,y=(this.words[w]|0)-I<<h;this.words[w]=y|M,M=I>>>26-h}M&&(this.words[w]=M,this.length++)}if(u!==0){for(w=this.length-1;w>=0;w--)this.words[w+u]=this.words[w];for(w=0;w<u;w++)this.words[w]=0;this.length+=u}return this.strip()},a.prototype.ishln=function(n){return t(this.negative===0),this.iushln(n)},a.prototype.iushrn=function(n,h,u){t(typeof n=="number"&&n>=0);var v;h?v=(h-h%26)/26:v=0;var w=n%26,M=Math.min((n-w)/26,this.length),I=67108863^67108863>>>w<<w,y=u;if(v-=M,v=Math.max(0,v),y){for(var s=0;s<M;s++)y.words[s]=this.words[s];y.length=M}if(M!==0)if(this.length>M)for(this.length-=M,s=0;s<this.length;s++)this.words[s]=this.words[s+M];else this.words[0]=0,this.length=1;var m=0;for(s=this.length-1;s>=0&&(m!==0||s>=v);s--){var k=this.words[s]|0;this.words[s]=m<<26-w|k>>>w,m=k&I}return y&&m!==0&&(y.words[y.length++]=m),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(n,h,u){return t(this.negative===0),this.iushrn(n,h,u)},a.prototype.shln=function(n){return this.clone().ishln(n)},a.prototype.ushln=function(n){return this.clone().iushln(n)},a.prototype.shrn=function(n){return this.clone().ishrn(n)},a.prototype.ushrn=function(n){return this.clone().iushrn(n)},a.prototype.testn=function(n){t(typeof n=="number"&&n>=0);var h=n%26,u=(n-h)/26,v=1<<h;if(this.length<=u)return!1;var w=this.words[u];return!!(w&v)},a.prototype.imaskn=function(n){t(typeof n=="number"&&n>=0);var h=n%26,u=(n-h)/26;if(t(this.negative===0,"imaskn works only with positive numbers"),this.length<=u)return this;if(h!==0&&u++,this.length=Math.min(u,this.length),h!==0){var v=67108863^67108863>>>h<<h;this.words[this.length-1]&=v}return this.strip()},a.prototype.maskn=function(n){return this.clone().imaskn(n)},a.prototype.iaddn=function(n){return t(typeof n=="number"),t(n<67108864),n<0?this.isubn(-n):this.negative!==0?this.length===1&&(this.words[0]|0)<n?(this.words[0]=n-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(n),this.negative=1,this):this._iaddn(n)},a.prototype._iaddn=function(n){this.words[0]+=n;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},a.prototype.isubn=function(n){if(t(typeof n=="number"),t(n<67108864),n<0)return this.iaddn(-n);if(this.negative!==0)return this.negative=0,this.iaddn(n),this.negative=1,this;if(this.words[0]-=n,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()},a.prototype.addn=function(n){return this.clone().iaddn(n)},a.prototype.subn=function(n){return this.clone().isubn(n)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(n,h,u){var v=n.length+u,w;this._expand(v);var M,I=0;for(w=0;w<n.length;w++){M=(this.words[w+u]|0)+I;var y=(n.words[w]|0)*h;M-=y&67108863,I=(M>>26)-(y/67108864|0),this.words[w+u]=M&67108863}for(;w<this.length-u;w++)M=(this.words[w+u]|0)+I,I=M>>26,this.words[w+u]=M&67108863;if(I===0)return this.strip();for(t(I===-1),I=0,w=0;w<this.length;w++)M=-(this.words[w]|0)+I,I=M>>26,this.words[w]=M&67108863;return this.negative=1,this.strip()},a.prototype._wordDiv=function(n,h){var u=this.length-n.length,v=this.clone(),w=n,M=w.words[w.length-1]|0,I=this._countBits(M);u=26-I,u!==0&&(w=w.ushln(u),v.iushln(u),M=w.words[w.length-1]|0);var y=v.length-w.length,s;if(h!=="mod"){s=new a(null),s.length=y+1,s.words=new Array(s.length);for(var m=0;m<s.length;m++)s.words[m]=0}var k=v.clone()._ishlnsubmul(w,1,y);k.negative===0&&(v=k,s&&(s.words[y]=1));for(var D=y-1;D>=0;D--){var z=(v.words[w.length+D]|0)*67108864+(v.words[w.length+D-1]|0);for(z=Math.min(z/M|0,67108863),v._ishlnsubmul(w,z,D);v.negative!==0;)z--,v.negative=0,v._ishlnsubmul(w,1,D),v.isZero()||(v.negative^=1);s&&(s.words[D]=z)}return s&&s.strip(),v.strip(),h!=="div"&&u!==0&&v.iushrn(u),{div:s||null,mod:v}},a.prototype.divmod=function(n,h,u){if(t(!n.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var v,w,M;return this.negative!==0&&n.negative===0?(M=this.neg().divmod(n,h),h!=="mod"&&(v=M.div.neg()),h!=="div"&&(w=M.mod.neg(),u&&w.negative!==0&&w.iadd(n)),{div:v,mod:w}):this.negative===0&&n.negative!==0?(M=this.divmod(n.neg(),h),h!=="mod"&&(v=M.div.neg()),{div:v,mod:M.mod}):(this.negative&n.negative)!==0?(M=this.neg().divmod(n.neg(),h),h!=="div"&&(w=M.mod.neg(),u&&w.negative!==0&&w.isub(n)),{div:M.div,mod:w}):n.length>this.length||this.cmp(n)<0?{div:new a(0),mod:this}:n.length===1?h==="div"?{div:this.divn(n.words[0]),mod:null}:h==="mod"?{div:null,mod:new a(this.modn(n.words[0]))}:{div:this.divn(n.words[0]),mod:new a(this.modn(n.words[0]))}:this._wordDiv(n,h)},a.prototype.div=function(n){return this.divmod(n,"div",!1).div},a.prototype.mod=function(n){return this.divmod(n,"mod",!1).mod},a.prototype.umod=function(n){return this.divmod(n,"mod",!0).mod},a.prototype.divRound=function(n){var h=this.divmod(n);if(h.mod.isZero())return h.div;var u=h.div.negative!==0?h.mod.isub(n):h.mod,v=n.ushrn(1),w=n.andln(1),M=u.cmp(v);return M<0||w===1&&M===0?h.div:h.div.negative!==0?h.div.isubn(1):h.div.iaddn(1)},a.prototype.modn=function(n){t(n<=67108863);for(var h=(1<<26)%n,u=0,v=this.length-1;v>=0;v--)u=(h*u+(this.words[v]|0))%n;return u},a.prototype.idivn=function(n){t(n<=67108863);for(var h=0,u=this.length-1;u>=0;u--){var v=(this.words[u]|0)+h*67108864;this.words[u]=v/n|0,h=v%n}return this.strip()},a.prototype.divn=function(n){return this.clone().idivn(n)},a.prototype.egcd=function(n){t(n.negative===0),t(!n.isZero());var h=this,u=n.clone();h.negative!==0?h=h.umod(n):h=h.clone();for(var v=new a(1),w=new a(0),M=new a(0),I=new a(1),y=0;h.isEven()&&u.isEven();)h.iushrn(1),u.iushrn(1),++y;for(var s=u.clone(),m=h.clone();!h.isZero();){for(var k=0,D=1;(h.words[0]&D)===0&&k<26;++k,D<<=1);if(k>0)for(h.iushrn(k);k-- >0;)(v.isOdd()||w.isOdd())&&(v.iadd(s),w.isub(m)),v.iushrn(1),w.iushrn(1);for(var z=0,T=1;(u.words[0]&T)===0&&z<26;++z,T<<=1);if(z>0)for(u.iushrn(z);z-- >0;)(M.isOdd()||I.isOdd())&&(M.iadd(s),I.isub(m)),M.iushrn(1),I.iushrn(1);h.cmp(u)>=0?(h.isub(u),v.isub(M),w.isub(I)):(u.isub(h),M.isub(v),I.isub(w))}return{a:M,b:I,gcd:u.iushln(y)}},a.prototype._invmp=function(n){t(n.negative===0),t(!n.isZero());var h=this,u=n.clone();h.negative!==0?h=h.umod(n):h=h.clone();for(var v=new a(1),w=new a(0),M=u.clone();h.cmpn(1)>0&&u.cmpn(1)>0;){for(var I=0,y=1;(h.words[0]&y)===0&&I<26;++I,y<<=1);if(I>0)for(h.iushrn(I);I-- >0;)v.isOdd()&&v.iadd(M),v.iushrn(1);for(var s=0,m=1;(u.words[0]&m)===0&&s<26;++s,m<<=1);if(s>0)for(u.iushrn(s);s-- >0;)w.isOdd()&&w.iadd(M),w.iushrn(1);h.cmp(u)>=0?(h.isub(u),v.isub(w)):(u.isub(h),w.isub(v))}var k;return h.cmpn(1)===0?k=v:k=w,k.cmpn(0)<0&&k.iadd(n),k},a.prototype.gcd=function(n){if(this.isZero())return n.abs();if(n.isZero())return this.abs();var h=this.clone(),u=n.clone();h.negative=0,u.negative=0;for(var v=0;h.isEven()&&u.isEven();v++)h.iushrn(1),u.iushrn(1);do{for(;h.isEven();)h.iushrn(1);for(;u.isEven();)u.iushrn(1);var w=h.cmp(u);if(w<0){var M=h;h=u,u=M}else if(w===0||u.cmpn(1)===0)break;h.isub(u)}while(!0);return u.iushln(v)},a.prototype.invm=function(n){return this.egcd(n).a.umod(n)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(n){return this.words[0]&n},a.prototype.bincn=function(n){t(typeof n=="number");var h=n%26,u=(n-h)/26,v=1<<h;if(this.length<=u)return this._expand(u+1),this.words[u]|=v,this;for(var w=v,M=u;w!==0&&M<this.length;M++){var I=this.words[M]|0;I+=w,w=I>>>26,I&=67108863,this.words[M]=I}return w!==0&&(this.words[M]=w,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(n){var h=n<0;if(this.negative!==0&&!h)return-1;if(this.negative===0&&h)return 1;this.strip();var u;if(this.length>1)u=1;else{h&&(n=-n),t(n<=67108863,"Number is too big");var v=this.words[0]|0;u=v===n?0:v<n?-1:1}return this.negative!==0?-u|0:u},a.prototype.cmp=function(n){if(this.negative!==0&&n.negative===0)return-1;if(this.negative===0&&n.negative!==0)return 1;var h=this.ucmp(n);return this.negative!==0?-h|0:h},a.prototype.ucmp=function(n){if(this.length>n.length)return 1;if(this.length<n.length)return-1;for(var h=0,u=this.length-1;u>=0;u--){var v=this.words[u]|0,w=n.words[u]|0;if(v!==w){v<w?h=-1:v>w&&(h=1);break}}return h},a.prototype.gtn=function(n){return this.cmpn(n)===1},a.prototype.gt=function(n){return this.cmp(n)===1},a.prototype.gten=function(n){return this.cmpn(n)>=0},a.prototype.gte=function(n){return this.cmp(n)>=0},a.prototype.ltn=function(n){return this.cmpn(n)===-1},a.prototype.lt=function(n){return this.cmp(n)===-1},a.prototype.lten=function(n){return this.cmpn(n)<=0},a.prototype.lte=function(n){return this.cmp(n)<=0},a.prototype.eqn=function(n){return this.cmpn(n)===0},a.prototype.eq=function(n){return this.cmp(n)===0},a.red=function(n){return new L(n)},a.prototype.toRed=function(n){return t(!this.red,"Already a number in reduction context"),t(this.negative===0,"red works only with positives"),n.convertTo(this)._forceRed(n)},a.prototype.fromRed=function(){return t(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(n){return this.red=n,this},a.prototype.forceRed=function(n){return t(!this.red,"Already a number in reduction context"),this._forceRed(n)},a.prototype.redAdd=function(n){return t(this.red,"redAdd works only with red numbers"),this.red.add(this,n)},a.prototype.redIAdd=function(n){return t(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,n)},a.prototype.redSub=function(n){return t(this.red,"redSub works only with red numbers"),this.red.sub(this,n)},a.prototype.redISub=function(n){return t(this.red,"redISub works only with red numbers"),this.red.isub(this,n)},a.prototype.redShl=function(n){return t(this.red,"redShl works only with red numbers"),this.red.shl(this,n)},a.prototype.redMul=function(n){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.mul(this,n)},a.prototype.redIMul=function(n){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.imul(this,n)},a.prototype.redSqr=function(){return t(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return t(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return t(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return t(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return t(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(n){return t(this.red&&!n.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,n)};var R={k256:null,p224:null,p192:null,p25519:null};function N(_,n){this.name=_,this.p=new a(n,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}N.prototype._tmp=function(){var n=new a(null);return n.words=new Array(Math.ceil(this.n/13)),n},N.prototype.ireduce=function(n){var h=n,u;do this.split(h,this.tmp),h=this.imulK(h),h=h.iadd(this.tmp),u=h.bitLength();while(u>this.n);var v=u<this.n?-1:h.ucmp(this.p);return v===0?(h.words[0]=0,h.length=1):v>0?h.isub(this.p):h.strip!==void 0?h.strip():h._strip(),h},N.prototype.split=function(n,h){n.iushrn(this.n,0,h)},N.prototype.imulK=function(n){return n.imul(this.k)};function Y(){N.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}f(Y,N),Y.prototype.split=function(n,h){for(var u=4194303,v=Math.min(n.length,9),w=0;w<v;w++)h.words[w]=n.words[w];if(h.length=v,n.length<=9){n.words[0]=0,n.length=1;return}var M=n.words[9];for(h.words[h.length++]=M&u,w=10;w<n.length;w++){var I=n.words[w]|0;n.words[w-10]=(I&u)<<4|M>>>22,M=I}M>>>=22,n.words[w-10]=M,M===0&&n.length>10?n.length-=10:n.length-=9},Y.prototype.imulK=function(n){n.words[n.length]=0,n.words[n.length+1]=0,n.length+=2;for(var h=0,u=0;u<n.length;u++){var v=n.words[u]|0;h+=v*977,n.words[u]=h&67108863,h=v*64+(h/67108864|0)}return n.words[n.length-1]===0&&(n.length--,n.words[n.length-1]===0&&n.length--),n};function Xe(){N.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}f(Xe,N);function j(){N.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}f(j,N);function ee(){N.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}f(ee,N),ee.prototype.imulK=function(n){for(var h=0,u=0;u<n.length;u++){var v=(n.words[u]|0)*19+h,w=v&67108863;v>>>=26,n.words[u]=w,h=v}return h!==0&&(n.words[n.length++]=h),n},a._prime=function(n){if(R[n])return R[n];var h;if(n==="k256")h=new Y;else if(n==="p224")h=new Xe;else if(n==="p192")h=new j;else if(n==="p25519")h=new ee;else throw new Error("Unknown prime "+n);return R[n]=h,h};function L(_){if(typeof _=="string"){var n=a._prime(_);this.m=n.p,this.prime=n}else t(_.gtn(1),"modulus must be greater than 1"),this.m=_,this.prime=null}L.prototype._verify1=function(n){t(n.negative===0,"red works only with positives"),t(n.red,"red works only with red numbers")},L.prototype._verify2=function(n,h){t((n.negative|h.negative)===0,"red works only with positives"),t(n.red&&n.red===h.red,"red works only with red numbers")},L.prototype.imod=function(n){return this.prime?this.prime.ireduce(n)._forceRed(this):n.umod(this.m)._forceRed(this)},L.prototype.neg=function(n){return n.isZero()?n.clone():this.m.sub(n)._forceRed(this)},L.prototype.add=function(n,h){this._verify2(n,h);var u=n.add(h);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},L.prototype.iadd=function(n,h){this._verify2(n,h);var u=n.iadd(h);return u.cmp(this.m)>=0&&u.isub(this.m),u},L.prototype.sub=function(n,h){this._verify2(n,h);var u=n.sub(h);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},L.prototype.isub=function(n,h){this._verify2(n,h);var u=n.isub(h);return u.cmpn(0)<0&&u.iadd(this.m),u},L.prototype.shl=function(n,h){return this._verify1(n),this.imod(n.ushln(h))},L.prototype.imul=function(n,h){return this._verify2(n,h),this.imod(n.imul(h))},L.prototype.mul=function(n,h){return this._verify2(n,h),this.imod(n.mul(h))},L.prototype.isqr=function(n){return this.imul(n,n.clone())},L.prototype.sqr=function(n){return this.mul(n,n)},L.prototype.sqrt=function(n){if(n.isZero())return n.clone();var h=this.m.andln(3);if(t(h%2===1),h===3){var u=this.m.add(new a(1)).iushrn(2);return this.pow(n,u)}for(var v=this.m.subn(1),w=0;!v.isZero()&&v.andln(1)===0;)w++,v.iushrn(1);t(!v.isZero());var M=new a(1).toRed(this),I=M.redNeg(),y=this.m.subn(1).iushrn(1),s=this.m.bitLength();for(s=new a(2*s*s).toRed(this);this.pow(s,y).cmp(I)!==0;)s.redIAdd(I);for(var m=this.pow(s,v),k=this.pow(n,v.addn(1).iushrn(1)),D=this.pow(n,v),z=w;D.cmp(M)!==0;){for(var T=D,F=0;T.cmp(M)!==0;F++)T=T.redSqr();t(F<z);var J=this.pow(m,new a(1).iushln(z-F-1));k=k.redMul(J),m=J.redSqr(),D=D.redMul(m),z=F}return k},L.prototype.invm=function(n){var h=n._invmp(this.m);return h.negative!==0?(h.negative=0,this.imod(h).redNeg()):this.imod(h)},L.prototype.pow=function(n,h){if(h.isZero())return new a(1).toRed(this);if(h.cmpn(1)===0)return n.clone();var u=4,v=new Array(1<<u);v[0]=new a(1).toRed(this),v[1]=n;for(var w=2;w<v.length;w++)v[w]=this.mul(v[w-1],n);var M=v[0],I=0,y=0,s=h.bitLength()%26;for(s===0&&(s=26),w=h.length-1;w>=0;w--){for(var m=h.words[w],k=s-1;k>=0;k--){var D=m>>k&1;if(M!==v[0]&&(M=this.sqr(M)),D===0&&I===0){y=0;continue}I<<=1,I|=D,y++,!(y!==u&&(w!==0||k!==0))&&(M=this.mul(M,v[I]),y=0,I=0)}s=26}return M},L.prototype.convertTo=function(n){var h=n.umod(this.m);return h===n?h.clone():h},L.prototype.convertFrom=function(n){var h=n.clone();return h.red=null,h},a.mont=function(n){return new Ne(n)};function Ne(_){L.call(this,_),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(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)}f(Ne,L),Ne.prototype.convertTo=function(n){return this.imod(n.ushln(this.shift))},Ne.prototype.convertFrom=function(n){var h=this.imod(n.mul(this.rinv));return h.red=null,h},Ne.prototype.imul=function(n,h){if(n.isZero()||h.isZero())return n.words[0]=0,n.length=1,n;var u=n.imul(h),v=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),w=u.isub(v).iushrn(this.shift),M=w;return w.cmp(this.m)>=0?M=w.isub(this.m):w.cmpn(0)<0&&(M=w.iadd(this.m)),M._forceRed(this)},Ne.prototype.mul=function(n,h){if(n.isZero()||h.isZero())return new a(0)._forceRed(this);var u=n.mul(h),v=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),w=u.isub(v).iushrn(this.shift),M=w;return w.cmp(this.m)>=0?M=w.isub(this.m):w.cmpn(0)<0&&(M=w.iadd(this.m)),M._forceRed(this)},Ne.prototype.invm=function(n){var h=this.imod(n._invmp(this.m).mul(this.r2));return h._forceRed(this)}})(typeof ed>"u"||ed,qc)});var Wt=B((w5,fd)=>{g();x();var rd;fd.exports=function(e){return rd||(rd=new dt(null)),rd.generate(e)};function dt(r){this.rand=r}fd.exports.Rand=dt;dt.prototype.generate=function(e){return this._rand(e)};dt.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),f=0;f<t.length;f++)t[f]=this.rand.getByte();return t};if(typeof self=="object")self.crypto&&self.crypto.getRandomValues?dt.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?dt.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:typeof window=="object"&&(dt.prototype._rand=function(){throw new Error("Not implemented yet")});else try{if(td=Ic(),typeof td.randomBytes!="function")throw new Error("Not supported");dt.prototype._rand=function(e){return td.randomBytes(e)}}catch{}var td});var ad=B((M5,Ec)=>{g();x();var St=K(),x2=Wt();function Mt(r){this.rand=r||new x2.Rand}Ec.exports=Mt;Mt.create=function(e){return new Mt(e)};Mt.prototype._randbelow=function(e){var t=e.bitLength(),f=Math.ceil(t/8);do var a=new St(this.rand.generate(f));while(a.cmp(e)>=0);return a};Mt.prototype._randrange=function(e,t){var f=t.sub(e);return e.add(this._randbelow(f))};Mt.prototype.test=function(e,t,f){var a=e.bitLength(),i=St.mont(e),d=new St(1).toRed(i);t||(t=Math.max(1,a/48|0));for(var c=e.subn(1),o=0;!c.testn(o);o++);for(var l=e.shrn(o),b=c.toRed(i),p=!0;t>0;t--){var S=this._randrange(new St(2),c);f&&f(S);var q=S.toRed(i).redPow(l);if(!(q.cmp(d)===0||q.cmp(b)===0)){for(var E=1;E<o;E++){if(q=q.redSqr(),q.cmp(d)===0)return!1;if(q.cmp(b)===0)break}if(E===o)return!1}}return p};Mt.prototype.getDivisor=function(e,t){var f=e.bitLength(),a=St.mont(e),i=new St(1).toRed(a);t||(t=Math.max(1,f/48|0));for(var d=e.subn(1),c=0;!d.testn(c);c++);for(var o=e.shrn(c),l=d.toRed(a);t>0;t--){var b=this._randrange(new St(2),d),p=e.gcd(b);if(p.cmpn(1)!==0)return p;var S=b.toRed(a).redPow(o);if(!(S.cmp(i)===0||S.cmp(l)===0)){for(var q=1;q<c;q++){if(S=S.redSqr(),S.cmp(i)===0)return S.fromRed().subn(1).gcd(e);if(S.cmp(l)===0)break}if(q===c)return S=S.redSqr(),S.fromRed().subn(1).gcd(e)}}return!1}});var od=B((R5,Rc)=>{g();x();var w2=pt();Rc.exports=sd;sd.simpleSieve=nd;sd.fermatTest=cd;var Je=K(),_2=new Je(24),S2=ad(),Bc=new S2,M2=new Je(1),dd=new Je(2),A2=new Je(5),I5=new Je(16),E5=new Je(8),q2=new Je(10),I2=new Je(3),B5=new Je(7),E2=new Je(11),Pc=new Je(4),P5=new Je(12),id=null;function B2(){if(id!==null)return id;var r=1048576,e=[];e[0]=2;for(var t=1,f=3;f<r;f+=2){for(var a=Math.ceil(Math.sqrt(f)),i=0;i<t&&e[i]<=a&&f%e[i]!==0;i++);t!==i&&e[i]<=a||(e[t++]=f)}return id=e,e}function nd(r){for(var e=B2(),t=0;t<e.length;t++)if(r.modn(e[t])===0)return r.cmpn(e[t])===0;return!0}function cd(r){var e=Je.mont(r);return dd.toRed(e).redPow(r.subn(1)).fromRed().cmpn(1)===0}function sd(r,e){if(r<16)return e===2||e===5?new Je([140,123]):new Je([140,39]);e=new Je(e);for(var t,f;;){for(t=new Je(w2(Math.ceil(r/8)));t.bitLength()>r;)t.ishrn(1);if(t.isEven()&&t.iadd(M2),t.testn(1)||t.iadd(dd),e.cmp(dd)){if(!e.cmp(A2))for(;t.mod(q2).cmp(I2);)t.iadd(Pc)}else for(;t.mod(_2).cmp(E2);)t.iadd(Pc);if(f=t.shrn(1),nd(f)&&nd(t)&&cd(f)&&cd(t)&&Bc.test(f)&&Bc.test(t))return t}}});var Cc=B((D5,P2)=>{P2.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}});var Nc=B((z5,zc)=>{g();x();var ur=K(),R2=ad(),kc=new R2,C2=new ur(24),k2=new ur(11),D2=new ur(10),z2=new ur(3),N2=new ur(7),Dc=od(),T2=pt();zc.exports=Yr;function O2(r,e){return e=e||"utf8",A.Buffer.isBuffer(r)||(r=new A.Buffer(r,e)),this._pub=new ur(r),this}function L2(r,e){return e=e||"utf8",A.Buffer.isBuffer(r)||(r=new A.Buffer(r,e)),this._priv=new ur(r),this}var ba={};function j2(r,e){var t=e.toString("hex"),f=[t,r.toString(16)].join("_");if(f in ba)return ba[f];var a=0;if(r.isEven()||!Dc.simpleSieve||!Dc.fermatTest(r)||!kc.test(r))return a+=1,t==="02"||t==="05"?a+=8:a+=4,ba[f]=a,a;kc.test(r.shrn(1))||(a+=2);var i;switch(t){case"02":r.mod(C2).cmp(k2)&&(a+=8);break;case"05":i=r.mod(D2),i.cmp(z2)&&i.cmp(N2)&&(a+=8);break;default:a+=4}return ba[f]=a,a}function Yr(r,e,t){this.setGenerator(e),this.__prime=new ur(r),this._prime=ur.mont(this.__prime),this._primeLen=r.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,t?(this.setPublicKey=O2,this.setPrivateKey=L2):this._primeCode=8}Object.defineProperty(Yr.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=j2(this.__prime,this.__gen)),this._primeCode}});Yr.prototype.generateKeys=function(){return this._priv||(this._priv=new ur(T2(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()};Yr.prototype.computeSecret=function(r){r=new ur(r),r=r.toRed(this._prime);var e=r.redPow(this._priv).fromRed(),t=new A.Buffer(e.toArray()),f=this.getPrime();if(t.length<f.length){var a=new A.Buffer(f.length-t.length);a.fill(0),t=A.Buffer.concat([a,t])}return t};Yr.prototype.getPublicKey=function(e){return la(this._pub,e)};Yr.prototype.getPrivateKey=function(e){return la(this._priv,e)};Yr.prototype.getPrime=function(r){return la(this.__prime,r)};Yr.prototype.getGenerator=function(r){return la(this._gen,r)};Yr.prototype.setGenerator=function(r,e){return e=e||"utf8",A.Buffer.isBuffer(r)||(r=new A.Buffer(r,e)),this.__gen=r,this._gen=new ur(r),this};function la(r,e){var t=new A.Buffer(r.toArray());return e?t.toString(e):t}});var Lc=B(Gt=>{g();x();var F2=od(),Tc=Cc(),hd=Nc();function K2(r){var e=new A.Buffer(Tc[r].prime,"hex"),t=new A.Buffer(Tc[r].gen,"hex");return new hd(e,t)}var U2={binary:!0,hex:!0,base64:!0};function Oc(r,e,t,f){return A.Buffer.isBuffer(e)||U2[e]===void 0?Oc(r,"binary",e,t):(e=e||"binary",f=f||"binary",t=t||new A.Buffer([2]),A.Buffer.isBuffer(t)||(t=new A.Buffer(t,f)),typeof r=="number"?new hd(F2(r,t),t,!0):(A.Buffer.isBuffer(r)||(r=new A.Buffer(r,e)),new hd(r,t,!0)))}Gt.DiffieHellmanGroup=Gt.createDiffieHellmanGroup=Gt.getDiffieHellman=K2;Gt.createDiffieHellman=Gt.DiffieHellman=Oc});var va=B((F5,Uc)=>{g();x();var nt=K(),jc=pt();Uc.exports=Fc;function H2(r){var e=Kc(r),t=e.toRed(nt.mont(r.modulus)).redPow(new nt(r.publicExponent)).fromRed();return{blinder:t,unblinder:e.invm(r.modulus)}}function Fc(r,e){var t=H2(e),f=e.modulus.byteLength(),a=nt.mont(e.modulus),i=new nt(r).mul(t.blinder).umod(e.modulus),d=i.toRed(nt.mont(e.prime1)),c=i.toRed(nt.mont(e.prime2)),o=e.coefficient,l=e.prime1,b=e.prime2,p=d.redPow(e.exponent1),S=c.redPow(e.exponent2);p=p.fromRed(),S=S.fromRed();var q=p.isub(S).imul(o).umod(l);return q.imul(b),S.iadd(q),new A.Buffer(S.imul(t.unblinder).umod(e.modulus).toArray(!1,f))}Fc.getr=Kc;function Kc(r){for(var e=r.modulus.byteLength(),t=new nt(jc(e));t.cmp(r.modulus)>=0||!t.umod(r.prime1)||!t.umod(r.prime2);)t=new nt(jc(e));return t}});var Hc=B((H5,X2)=>{X2.exports={name:"elliptic",version:"6.5.4",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny <fedor@indutny.com>",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}});var ya=B(Vc=>{"use strict";g();x();var pa=Vc;function J2(r,e){if(Array.isArray(r))return r.slice();if(!r)return[];var t=[];if(typeof r!="string"){for(var f=0;f<r.length;f++)t[f]=r[f]|0;return t}if(e==="hex"){r=r.replace(/[^a-z0-9]+/ig,""),r.length%2!==0&&(r="0"+r);for(var f=0;f<r.length;f+=2)t.push(parseInt(r[f]+r[f+1],16))}else for(var f=0;f<r.length;f++){var a=r.charCodeAt(f),i=a>>8,d=a&255;i?t.push(i,d):t.push(d)}return t}pa.toArray=J2;function Xc(r){return r.length===1?"0"+r:r}pa.zero2=Xc;function Jc(r){for(var e="",t=0;t<r.length;t++)e+=Xc(r[t].toString(16));return e}pa.toHex=Jc;pa.encode=function(e,t){return t==="hex"?Jc(e):e}});var ir=B(Wc=>{"use strict";g();x();var Mr=Wc,V2=K(),W2=er(),ma=ya();Mr.assert=W2;Mr.toArray=ma.toArray;Mr.zero2=ma.zero2;Mr.toHex=ma.toHex;Mr.encode=ma.encode;function G2(r,e,t){var f=new Array(Math.max(r.bitLength(),t)+1);f.fill(0);for(var a=1<<e+1,i=r.clone(),d=0;d<f.length;d++){var c,o=i.andln(a-1);i.isOdd()?(o>(a>>1)-1?c=(a>>1)-o:c=o,i.isubn(c)):c=0,f[d]=c,i.iushrn(1)}return f}Mr.getNAF=G2;function Y2(r,e){var t=[[],[]];r=r.clone(),e=e.clone();for(var f=0,a=0,i;r.cmpn(-f)>0||e.cmpn(-a)>0;){var d=r.andln(3)+f&3,c=e.andln(3)+a&3;d===3&&(d=-1),c===3&&(c=-1);var o;(d&1)===0?o=0:(i=r.andln(7)+f&7,(i===3||i===5)&&c===2?o=-d:o=d),t[0].push(o);var l;(c&1)===0?l=0:(i=e.andln(7)+a&7,(i===3||i===5)&&d===2?l=-c:l=c),t[1].push(l),2*f===o+1&&(f=1-f),2*a===l+1&&(a=1-a),r.iushrn(1),e.iushrn(1)}return t}Mr.getJSF=Y2;function Z2(r,e,t){var f="_"+e;r.prototype[e]=function(){return this[f]!==void 0?this[f]:this[f]=t.call(this)}}Mr.cachedProperty=Z2;function $2(r){return typeof r=="string"?Mr.toArray(r,"hex"):r}Mr.parseBytes=$2;function Q2(r){return new V2(r,"hex","le")}Mr.intFromLE=Q2});var Cf=B((Z5,Gc)=>{"use strict";g();x();var At=K(),Rf=ir(),ga=Rf.getNAF,eb=Rf.getJSF,xa=Rf.assert;function ct(r,e){this.type=r,this.p=new At(e.p,16),this.red=e.prime?At.red(e.prime):At.mont(this.p),this.zero=new At(0).toRed(this.red),this.one=new At(1).toRed(this.red),this.two=new At(2).toRed(this.red),this.n=e.n&&new At(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))}Gc.exports=ct;ct.prototype.point=function(){throw new Error("Not implemented")};ct.prototype.validate=function(){throw new Error("Not implemented")};ct.prototype._fixedNafMul=function(e,t){xa(e.precomputed);var f=e._getDoubles(),a=ga(t,1,this._bitLength),i=(1<<f.step+1)-(f.step%2===0?2:1);i/=3;var d=[],c,o;for(c=0;c<a.length;c+=f.step){o=0;for(var l=c+f.step-1;l>=c;l--)o=(o<<1)+a[l];d.push(o)}for(var b=this.jpoint(null,null,null),p=this.jpoint(null,null,null),S=i;S>0;S--){for(c=0;c<d.length;c++)o=d[c],o===S?p=p.mixedAdd(f.points[c]):o===-S&&(p=p.mixedAdd(f.points[c].neg()));b=b.add(p)}return b.toP()};ct.prototype._wnafMul=function(e,t){var f=4,a=e._getNAFPoints(f);f=a.wnd;for(var i=a.points,d=ga(t,f,this._bitLength),c=this.jpoint(null,null,null),o=d.length-1;o>=0;o--){for(var l=0;o>=0&&d[o]===0;o--)l++;if(o>=0&&l++,c=c.dblp(l),o<0)break;var b=d[o];xa(b!==0),e.type==="affine"?b>0?c=c.mixedAdd(i[b-1>>1]):c=c.mixedAdd(i[-b-1>>1].neg()):b>0?c=c.add(i[b-1>>1]):c=c.add(i[-b-1>>1].neg())}return e.type==="affine"?c.toP():c};ct.prototype._wnafMulAdd=function(e,t,f,a,i){var d=this._wnafT1,c=this._wnafT2,o=this._wnafT3,l=0,b,p,S;for(b=0;b<a;b++){S=t[b];var q=S._getNAFPoints(e);d[b]=q.wnd,c[b]=q.points}for(b=a-1;b>=1;b-=2){var E=b-1,P=b;if(d[E]!==1||d[P]!==1){o[E]=ga(f[E],d[E],this._bitLength),o[P]=ga(f[P],d[P],this._bitLength),l=Math.max(o[E].length,l),l=Math.max(o[P].length,l);continue}var C=[t[E],null,null,t[P]];t[E].y.cmp(t[P].y)===0?(C[1]=t[E].add(t[P]),C[2]=t[E].toJ().mixedAdd(t[P].neg())):t[E].y.cmp(t[P].y.redNeg())===0?(C[1]=t[E].toJ().mixedAdd(t[P]),C[2]=t[E].add(t[P].neg())):(C[1]=t[E].toJ().mixedAdd(t[P]),C[2]=t[E].toJ().mixedAdd(t[P].neg()));var R=[-3,-1,-5,-7,0,7,5,1,3],N=eb(f[E],f[P]);for(l=Math.max(N[0].length,l),o[E]=new Array(l),o[P]=new Array(l),p=0;p<l;p++){var Y=N[0][p]|0,Xe=N[1][p]|0;o[E][p]=R[(Y+1)*3+(Xe+1)],o[P][p]=0,c[E]=C}}var j=this.jpoint(null,null,null),ee=this._wnafT4;for(b=l;b>=0;b--){for(var L=0;b>=0;){var Ne=!0;for(p=0;p<a;p++)ee[p]=o[p][b]|0,ee[p]!==0&&(Ne=!1);if(!Ne)break;L++,b--}if(b>=0&&L++,j=j.dblp(L),b<0)break;for(p=0;p<a;p++){var _=ee[p];_!==0&&(_>0?S=c[p][_-1>>1]:_<0&&(S=c[p][-_-1>>1].neg()),S.type==="affine"?j=j.mixedAdd(S):j=j.add(S))}}for(b=0;b<a;b++)c[b]=null;return i?j:j.toP()};function br(r,e){this.curve=r,this.type=e,this.precomputed=null}ct.BasePoint=br;br.prototype.eq=function(){throw new Error("Not implemented")};br.prototype.validate=function(){return this.curve.validate(this)};ct.prototype.decodePoint=function(e,t){e=Rf.toArray(e,t);var f=this.p.byteLength();if((e[0]===4||e[0]===6||e[0]===7)&&e.length-1===2*f){e[0]===6?xa(e[e.length-1]%2===0):e[0]===7&&xa(e[e.length-1]%2===1);var a=this.point(e.slice(1,1+f),e.slice(1+f,1+2*f));return a}else if((e[0]===2||e[0]===3)&&e.length-1===f)return this.pointFromX(e.slice(1,1+f),e[0]===3);throw new Error("Unknown point format")};br.prototype.encodeCompressed=function(e){return this.encode(e,!0)};br.prototype._encode=function(e){var t=this.curve.p.byteLength(),f=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(f):[4].concat(f,this.getY().toArray("be",t))};br.prototype.encode=function(e,t){return Rf.encode(this._encode(t),e)};br.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};br.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};br.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var f=[this],a=this,i=0;i<t;i+=e){for(var d=0;d<e;d++)a=a.dbl();f.push(a)}return{step:e,points:f}};br.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],f=(1<<e)-1,a=f===1?null:this.dbl(),i=1;i<f;i++)t[i]=t[i-1].add(a);return{wnd:e,points:t}};br.prototype._getBeta=function(){return null};br.prototype.dblp=function(e){for(var t=this,f=0;f<e;f++)t=t.dbl();return t}});var Zc=B((e9,Yc)=>{"use strict";g();x();var rb=ir(),$=K(),ud=H(),Yt=Cf(),tb=rb.assert;function lr(r){Yt.call(this,"short",r),this.a=new $(r.a,16).toRed(this.red),this.b=new $(r.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(r),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}ud(lr,Yt);Yc.exports=lr;lr.prototype._getEndomorphism=function(e){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var t,f;if(e.beta)t=new $(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)f=new $(e.lambda,16);else{var i=this._getEndoRoots(this.n);this.g.mul(i[0]).x.cmp(this.g.x.redMul(t))===0?f=i[0]:(f=i[1],tb(this.g.mul(f).x.cmp(this.g.x.redMul(t))===0))}var d;return e.basis?d=e.basis.map(function(c){return{a:new $(c.a,16),b:new $(c.b,16)}}):d=this._getEndoBasis(f),{beta:t,lambda:f,basis:d}}};lr.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:$.mont(e),f=new $(2).toRed(t).redInvm(),a=f.redNeg(),i=new $(3).toRed(t).redNeg().redSqrt().redMul(f),d=a.redAdd(i).fromRed(),c=a.redSub(i).fromRed();return[d,c]};lr.prototype._getEndoBasis=function(e){for(var t=this.n.ushrn(Math.floor(this.n.bitLength()/2)),f=e,a=this.n.clone(),i=new $(1),d=new $(0),c=new $(0),o=new $(1),l,b,p,S,q,E,P,C=0,R,N;f.cmpn(0)!==0;){var Y=a.div(f);R=a.sub(Y.mul(f)),N=c.sub(Y.mul(i));var Xe=o.sub(Y.mul(d));if(!p&&R.cmp(t)<0)l=P.neg(),b=i,p=R.neg(),S=N;else if(p&&++C===2)break;P=R,a=f,f=R,c=i,i=N,o=d,d=Xe}q=R.neg(),E=N;var j=p.sqr().add(S.sqr()),ee=q.sqr().add(E.sqr());return ee.cmp(j)>=0&&(q=l,E=b),p.negative&&(p=p.neg(),S=S.neg()),q.negative&&(q=q.neg(),E=E.neg()),[{a:p,b:S},{a:q,b:E}]};lr.prototype._endoSplit=function(e){var t=this.endo.basis,f=t[0],a=t[1],i=a.b.mul(e).divRound(this.n),d=f.b.neg().mul(e).divRound(this.n),c=i.mul(f.a),o=d.mul(a.a),l=i.mul(f.b),b=d.mul(a.b),p=e.sub(c).sub(o),S=l.add(b).neg();return{k1:p,k2:S}};lr.prototype.pointFromX=function(e,t){e=new $(e,16),e.red||(e=e.toRed(this.red));var f=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),a=f.redSqrt();if(a.redSqr().redSub(f).cmp(this.zero)!==0)throw new Error("invalid point");var i=a.fromRed().isOdd();return(t&&!i||!t&&i)&&(a=a.redNeg()),this.point(e,a)};lr.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,f=e.y,a=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(a).redIAdd(this.b);return f.redSqr().redISub(i).cmpn(0)===0};lr.prototype._endoWnafMulAdd=function(e,t,f){for(var a=this._endoWnafT1,i=this._endoWnafT2,d=0;d<e.length;d++){var c=this._endoSplit(t[d]),o=e[d],l=o._getBeta();c.k1.negative&&(c.k1.ineg(),o=o.neg(!0)),c.k2.negative&&(c.k2.ineg(),l=l.neg(!0)),a[d*2]=o,a[d*2+1]=l,i[d*2]=c.k1,i[d*2+1]=c.k2}for(var b=this._wnafMulAdd(1,a,i,d*2,f),p=0;p<d*2;p++)a[p]=null,i[p]=null;return b};function Le(r,e,t,f){Yt.BasePoint.call(this,r,"affine"),e===null&&t===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new $(e,16),this.y=new $(t,16),f&&(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)}ud(Le,Yt.BasePoint);lr.prototype.point=function(e,t,f){return new Le(this,e,t,f)};lr.prototype.pointFromJSON=function(e,t){return Le.fromJSON(this,e,t)};Le.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 f=this.curve,a=function(i){return f.point(i.x.redMul(f.endo.beta),i.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}};Le.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]};Le.fromJSON=function(e,t,f){typeof t=="string"&&(t=JSON.parse(t));var a=e.point(t[0],t[1],f);if(!t[2])return a;function i(c){return e.point(c[0],c[1],f)}var d=t[2];return a.precomputed={beta:null,doubles:d.doubles&&{step:d.doubles.step,points:[a].concat(d.doubles.points.map(i))},naf:d.naf&&{wnd:d.naf.wnd,points:[a].concat(d.naf.points.map(i))}},a};Le.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)+">"};Le.prototype.isInfinity=function(){return this.inf};Le.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 f=t.redSqr().redISub(this.x).redISub(e.x),a=t.redMul(this.x.redSub(f)).redISub(this.y);return this.curve.point(f,a)};Le.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,f=this.x.redSqr(),a=e.redInvm(),i=f.redAdd(f).redIAdd(f).redIAdd(t).redMul(a),d=i.redSqr().redISub(this.x.redAdd(this.x)),c=i.redMul(this.x.redSub(d)).redISub(this.y);return this.curve.point(d,c)};Le.prototype.getX=function(){return this.x.fromRed()};Le.prototype.getY=function(){return this.y.fromRed()};Le.prototype.mul=function(e){return e=new $(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)};Le.prototype.mulAdd=function(e,t,f){var a=[this,t],i=[e,f];return this.curve.endo?this.curve._endoWnafMulAdd(a,i):this.curve._wnafMulAdd(1,a,i,2)};Le.prototype.jmulAdd=function(e,t,f){var a=[this,t],i=[e,f];return this.curve.endo?this.curve._endoWnafMulAdd(a,i,!0):this.curve._wnafMulAdd(1,a,i,2,!0)};Le.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)};Le.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var f=this.precomputed,a=function(i){return i.neg()};t.precomputed={naf:f.naf&&{wnd:f.naf.wnd,points:f.naf.points.map(a)},doubles:f.doubles&&{step:f.doubles.step,points:f.doubles.points.map(a)}}}return t};Le.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 Ve(r,e,t,f){Yt.BasePoint.call(this,r,"jacobian"),e===null&&t===null&&f===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new $(0)):(this.x=new $(e,16),this.y=new $(t,16),this.z=new $(f,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}ud(Ve,Yt.BasePoint);lr.prototype.jpoint=function(e,t,f){return new Ve(this,e,t,f)};Ve.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),f=this.x.redMul(t),a=this.y.redMul(t).redMul(e);return this.curve.point(f,a)};Ve.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};Ve.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),f=this.z.redSqr(),a=this.x.redMul(t),i=e.x.redMul(f),d=this.y.redMul(t.redMul(e.z)),c=e.y.redMul(f.redMul(this.z)),o=a.redSub(i),l=d.redSub(c);if(o.cmpn(0)===0)return l.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var b=o.redSqr(),p=b.redMul(o),S=a.redMul(b),q=l.redSqr().redIAdd(p).redISub(S).redISub(S),E=l.redMul(S.redISub(q)).redISub(d.redMul(p)),P=this.z.redMul(e.z).redMul(o);return this.curve.jpoint(q,E,P)};Ve.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),f=this.x,a=e.x.redMul(t),i=this.y,d=e.y.redMul(t).redMul(this.z),c=f.redSub(a),o=i.redSub(d);if(c.cmpn(0)===0)return o.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var l=c.redSqr(),b=l.redMul(c),p=f.redMul(l),S=o.redSqr().redIAdd(b).redISub(p).redISub(p),q=o.redMul(p.redISub(S)).redISub(i.redMul(b)),E=this.z.redMul(c);return this.curve.jpoint(S,q,E)};Ve.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 f=this;for(t=0;t<e;t++)f=f.dbl();return f}var a=this.curve.a,i=this.curve.tinv,d=this.x,c=this.y,o=this.z,l=o.redSqr().redSqr(),b=c.redAdd(c);for(t=0;t<e;t++){var p=d.redSqr(),S=b.redSqr(),q=S.redSqr(),E=p.redAdd(p).redIAdd(p).redIAdd(a.redMul(l)),P=d.redMul(S),C=E.redSqr().redISub(P.redAdd(P)),R=P.redISub(C),N=E.redMul(R);N=N.redIAdd(N).redISub(q);var Y=b.redMul(o);t+1<e&&(l=l.redMul(q)),d=C,o=Y,b=N}return this.curve.jpoint(d,b.redMul(i),o)};Ve.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()};Ve.prototype._zeroDbl=function(){var e,t,f;if(this.zOne){var a=this.x.redSqr(),i=this.y.redSqr(),d=i.redSqr(),c=this.x.redAdd(i).redSqr().redISub(a).redISub(d);c=c.redIAdd(c);var o=a.redAdd(a).redIAdd(a),l=o.redSqr().redISub(c).redISub(c),b=d.redIAdd(d);b=b.redIAdd(b),b=b.redIAdd(b),e=l,t=o.redMul(c.redISub(l)).redISub(b),f=this.y.redAdd(this.y)}else{var p=this.x.redSqr(),S=this.y.redSqr(),q=S.redSqr(),E=this.x.redAdd(S).redSqr().redISub(p).redISub(q);E=E.redIAdd(E);var P=p.redAdd(p).redIAdd(p),C=P.redSqr(),R=q.redIAdd(q);R=R.redIAdd(R),R=R.redIAdd(R),e=C.redISub(E).redISub(E),t=P.redMul(E.redISub(e)).redISub(R),f=this.y.redMul(this.z),f=f.redIAdd(f)}return this.curve.jpoint(e,t,f)};Ve.prototype._threeDbl=function(){var e,t,f;if(this.zOne){var a=this.x.redSqr(),i=this.y.redSqr(),d=i.redSqr(),c=this.x.redAdd(i).redSqr().redISub(a).redISub(d);c=c.redIAdd(c);var o=a.redAdd(a).redIAdd(a).redIAdd(this.curve.a),l=o.redSqr().redISub(c).redISub(c);e=l;var b=d.redIAdd(d);b=b.redIAdd(b),b=b.redIAdd(b),t=o.redMul(c.redISub(l)).redISub(b),f=this.y.redAdd(this.y)}else{var p=this.z.redSqr(),S=this.y.redSqr(),q=this.x.redMul(S),E=this.x.redSub(p).redMul(this.x.redAdd(p));E=E.redAdd(E).redIAdd(E);var P=q.redIAdd(q);P=P.redIAdd(P);var C=P.redAdd(P);e=E.redSqr().redISub(C),f=this.y.redAdd(this.z).redSqr().redISub(S).redISub(p);var R=S.redSqr();R=R.redIAdd(R),R=R.redIAdd(R),R=R.redIAdd(R),t=E.redMul(P.redISub(e)).redISub(R)}return this.curve.jpoint(e,t,f)};Ve.prototype._dbl=function(){var e=this.curve.a,t=this.x,f=this.y,a=this.z,i=a.redSqr().redSqr(),d=t.redSqr(),c=f.redSqr(),o=d.redAdd(d).redIAdd(d).redIAdd(e.redMul(i)),l=t.redAdd(t);l=l.redIAdd(l);var b=l.redMul(c),p=o.redSqr().redISub(b.redAdd(b)),S=b.redISub(p),q=c.redSqr();q=q.redIAdd(q),q=q.redIAdd(q),q=q.redIAdd(q);var E=o.redMul(S).redISub(q),P=f.redAdd(f).redMul(a);return this.curve.jpoint(p,E,P)};Ve.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),f=this.z.redSqr(),a=t.redSqr(),i=e.redAdd(e).redIAdd(e),d=i.redSqr(),c=this.x.redAdd(t).redSqr().redISub(e).redISub(a);c=c.redIAdd(c),c=c.redAdd(c).redIAdd(c),c=c.redISub(d);var o=c.redSqr(),l=a.redIAdd(a);l=l.redIAdd(l),l=l.redIAdd(l),l=l.redIAdd(l);var b=i.redIAdd(c).redSqr().redISub(d).redISub(o).redISub(l),p=t.redMul(b);p=p.redIAdd(p),p=p.redIAdd(p);var S=this.x.redMul(o).redISub(p);S=S.redIAdd(S),S=S.redIAdd(S);var q=this.y.redMul(b.redMul(l.redISub(b)).redISub(c.redMul(o)));q=q.redIAdd(q),q=q.redIAdd(q),q=q.redIAdd(q);var E=this.z.redAdd(c).redSqr().redISub(f).redISub(o);return this.curve.jpoint(S,q,E)};Ve.prototype.mul=function(e,t){return e=new $(e,t),this.curve._wnafMul(this,e)};Ve.prototype.eq=function(e){if(e.type==="affine")return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),f=e.z.redSqr();if(this.x.redMul(f).redISub(e.x.redMul(t)).cmpn(0)!==0)return!1;var a=t.redMul(this.z),i=f.redMul(e.z);return this.y.redMul(i).redISub(e.y.redMul(a)).cmpn(0)===0};Ve.prototype.eqXToP=function(e){var t=this.z.redSqr(),f=e.toRed(this.curve.red).redMul(t);if(this.x.cmp(f)===0)return!0;for(var a=e.clone(),i=this.curve.redN.redMul(t);;){if(a.iadd(this.curve.n),a.cmp(this.curve.p)>=0)return!1;if(f.redIAdd(i),this.x.cmp(f)===0)return!0}};Ve.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)+">"};Ve.prototype.isInfinity=function(){return this.z.cmpn(0)===0}});var es=B((f9,Qc)=>{"use strict";g();x();var Zt=K(),$c=H(),wa=Cf(),fb=ir();function $t(r){wa.call(this,"mont",r),this.a=new Zt(r.a,16).toRed(this.red),this.b=new Zt(r.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))}$c($t,wa);Qc.exports=$t;$t.prototype.validate=function(e){var t=e.normalize().x,f=t.redSqr(),a=f.redMul(t).redAdd(f.redMul(this.a)).redAdd(t),i=a.redSqrt();return i.redSqr().cmp(a)===0};function je(r,e,t){wa.BasePoint.call(this,r,"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)))}$c(je,wa.BasePoint);$t.prototype.decodePoint=function(e,t){return this.point(fb.toArray(e,t),1)};$t.prototype.point=function(e,t){return new je(this,e,t)};$t.prototype.pointFromJSON=function(e){return je.fromJSON(this,e)};je.prototype.precompute=function(){};je.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};je.fromJSON=function(e,t){return new je(e,t[0],t[1]||e.one)};je.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)+">"};je.prototype.isInfinity=function(){return this.z.cmpn(0)===0};je.prototype.dbl=function(){var e=this.x.redAdd(this.z),t=e.redSqr(),f=this.x.redSub(this.z),a=f.redSqr(),i=t.redSub(a),d=t.redMul(a),c=i.redMul(a.redAdd(this.curve.a24.redMul(i)));return this.curve.point(d,c)};je.prototype.add=function(){throw new Error("Not supported on Montgomery curve")};je.prototype.diffAdd=function(e,t){var f=this.x.redAdd(this.z),a=this.x.redSub(this.z),i=e.x.redAdd(e.z),d=e.x.redSub(e.z),c=d.redMul(f),o=i.redMul(a),l=t.z.redMul(c.redAdd(o).redSqr()),b=t.x.redMul(c.redISub(o).redSqr());return this.curve.point(l,b)};je.prototype.mul=function(e){for(var t=e.clone(),f=this,a=this.curve.point(null,null),i=this,d=[];t.cmpn(0)!==0;t.iushrn(1))d.push(t.andln(1));for(var c=d.length-1;c>=0;c--)d[c]===0?(f=f.diffAdd(a,i),a=a.dbl()):(a=f.diffAdd(a,i),f=f.dbl());return a};je.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")};je.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")};je.prototype.eq=function(e){return this.getX().cmp(e.getX())===0};je.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};je.prototype.getX=function(){return this.normalize(),this.x.fromRed()}});var fs=B((d9,ts)=>{"use strict";g();x();var ab=ir(),Zr=K(),rs=H(),_a=Cf(),ib=ab.assert;function zr(r){this.twisted=(r.a|0)!==1,this.mOneA=this.twisted&&(r.a|0)===-1,this.extended=this.mOneA,_a.call(this,"edwards",r),this.a=new Zr(r.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new Zr(r.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new Zr(r.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),ib(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(r.c|0)===1}rs(zr,_a);ts.exports=zr;zr.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)};zr.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)};zr.prototype.jpoint=function(e,t,f,a){return this.point(e,t,f,a)};zr.prototype.pointFromX=function(e,t){e=new Zr(e,16),e.red||(e=e.toRed(this.red));var f=e.redSqr(),a=this.c2.redSub(this.a.redMul(f)),i=this.one.redSub(this.c2.redMul(this.d).redMul(f)),d=a.redMul(i.redInvm()),c=d.redSqrt();if(c.redSqr().redSub(d).cmp(this.zero)!==0)throw new Error("invalid point");var o=c.fromRed().isOdd();return(t&&!o||!t&&o)&&(c=c.redNeg()),this.point(e,c)};zr.prototype.pointFromY=function(e,t){e=new Zr(e,16),e.red||(e=e.toRed(this.red));var f=e.redSqr(),a=f.redSub(this.c2),i=f.redMul(this.d).redMul(this.c2).redSub(this.a),d=a.redMul(i.redInvm());if(d.cmp(this.zero)===0){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var c=d.redSqrt();if(c.redSqr().redSub(d).cmp(this.zero)!==0)throw new Error("invalid point");return c.fromRed().isOdd()!==t&&(c=c.redNeg()),this.point(c,e)};zr.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),f=e.y.redSqr(),a=t.redMul(this.a).redAdd(f),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(f)));return a.cmp(i)===0};function W(r,e,t,f,a){_a.BasePoint.call(this,r,"projective"),e===null&&t===null&&f===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 Zr(e,16),this.y=new Zr(t,16),this.z=f?new Zr(f,16):this.curve.one,this.t=a&&new Zr(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()))))}rs(W,_a.BasePoint);zr.prototype.pointFromJSON=function(e){return W.fromJSON(this,e)};zr.prototype.point=function(e,t,f,a){return new W(this,e,t,f,a)};W.fromJSON=function(e,t){return new W(e,t[0],t[1],t[2])};W.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)+">"};W.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};W.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),f=this.z.redSqr();f=f.redIAdd(f);var a=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),d=a.redAdd(t),c=d.redSub(f),o=a.redSub(t),l=i.redMul(c),b=d.redMul(o),p=i.redMul(o),S=c.redMul(d);return this.curve.point(l,b,S,p)};W.prototype._projDbl=function(){var e=this.x.redAdd(this.y).redSqr(),t=this.x.redSqr(),f=this.y.redSqr(),a,i,d,c,o,l;if(this.curve.twisted){c=this.curve._mulA(t);var b=c.redAdd(f);this.zOne?(a=e.redSub(t).redSub(f).redMul(b.redSub(this.curve.two)),i=b.redMul(c.redSub(f)),d=b.redSqr().redSub(b).redSub(b)):(o=this.z.redSqr(),l=b.redSub(o).redISub(o),a=e.redSub(t).redISub(f).redMul(l),i=b.redMul(c.redSub(f)),d=b.redMul(l))}else c=t.redAdd(f),o=this.curve._mulC(this.z).redSqr(),l=c.redSub(o).redSub(o),a=this.curve._mulC(e.redISub(c)).redMul(l),i=this.curve._mulC(c).redMul(t.redISub(f)),d=c.redMul(l);return this.curve.point(a,i,d)};W.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};W.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),f=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),a=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),d=f.redSub(t),c=i.redSub(a),o=i.redAdd(a),l=f.redAdd(t),b=d.redMul(c),p=o.redMul(l),S=d.redMul(l),q=c.redMul(o);return this.curve.point(b,p,q,S)};W.prototype._projAdd=function(e){var t=this.z.redMul(e.z),f=t.redSqr(),a=this.x.redMul(e.x),i=this.y.redMul(e.y),d=this.curve.d.redMul(a).redMul(i),c=f.redSub(d),o=f.redAdd(d),l=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(a).redISub(i),b=t.redMul(c).redMul(l),p,S;return this.curve.twisted?(p=t.redMul(o).redMul(i.redSub(this.curve._mulA(a))),S=c.redMul(o)):(p=t.redMul(o).redMul(i.redSub(a)),S=this.curve._mulC(c).redMul(o)),this.curve.point(b,p,S)};W.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)};W.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)};W.prototype.mulAdd=function(e,t,f){return this.curve._wnafMulAdd(1,[this,t],[e,f],2,!1)};W.prototype.jmulAdd=function(e,t,f){return this.curve._wnafMulAdd(1,[this,t],[e,f],2,!0)};W.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};W.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};W.prototype.getX=function(){return this.normalize(),this.x.fromRed()};W.prototype.getY=function(){return this.normalize(),this.y.fromRed()};W.prototype.eq=function(e){return this===e||this.getX().cmp(e.getX())===0&&this.getY().cmp(e.getY())===0};W.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(t)===0)return!0;for(var f=e.clone(),a=this.curve.redN.redMul(this.z);;){if(f.iadd(this.curve.n),f.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(a),this.x.cmp(t)===0)return!0}};W.prototype.toP=W.prototype.normalize;W.prototype.mixedAdd=W.prototype.add});var bd=B(as=>{"use strict";g();x();var Sa=as;Sa.base=Cf();Sa.short=Zc();Sa.mont=es();Sa.edwards=fs()});var Ar=B(X=>{"use strict";g();x();var db=er(),nb=H();X.inherits=nb;function cb(r,e){return(r.charCodeAt(e)&64512)!==55296||e<0||e+1>=r.length?!1:(r.charCodeAt(e+1)&64512)===56320}function sb(r,e){if(Array.isArray(r))return r.slice();if(!r)return[];var t=[];if(typeof r=="string")if(e){if(e==="hex")for(r=r.replace(/[^a-z0-9]+/ig,""),r.length%2!==0&&(r="0"+r),a=0;a<r.length;a+=2)t.push(parseInt(r[a]+r[a+1],16))}else for(var f=0,a=0;a<r.length;a++){var i=r.charCodeAt(a);i<128?t[f++]=i:i<2048?(t[f++]=i>>6|192,t[f++]=i&63|128):cb(r,a)?(i=65536+((i&1023)<<10)+(r.charCodeAt(++a)&1023),t[f++]=i>>18|240,t[f++]=i>>12&63|128,t[f++]=i>>6&63|128,t[f++]=i&63|128):(t[f++]=i>>12|224,t[f++]=i>>6&63|128,t[f++]=i&63|128)}else for(a=0;a<r.length;a++)t[a]=r[a]|0;return t}X.toArray=sb;function ob(r){for(var e="",t=0;t<r.length;t++)e+=ds(r[t].toString(16));return e}X.toHex=ob;function is(r){var e=r>>>24|r>>>8&65280|r<<8&16711680|(r&255)<<24;return e>>>0}X.htonl=is;function hb(r,e){for(var t="",f=0;f<r.length;f++){var a=r[f];e==="little"&&(a=is(a)),t+=ns(a.toString(16))}return t}X.toHex32=hb;function ds(r){return r.length===1?"0"+r:r}X.zero2=ds;function ns(r){return r.length===7?"0"+r:r.length===6?"00"+r:r.length===5?"000"+r:r.length===4?"0000"+r:r.length===3?"00000"+r:r.length===2?"000000"+r:r.length===1?"0000000"+r:r}X.zero8=ns;function ub(r,e,t,f){var a=t-e;db(a%4===0);for(var i=new Array(a/4),d=0,c=e;d<i.length;d++,c+=4){var o;f==="big"?o=r[c]<<24|r[c+1]<<16|r[c+2]<<8|r[c+3]:o=r[c+3]<<24|r[c+2]<<16|r[c+1]<<8|r[c],i[d]=o>>>0}return i}X.join32=ub;function bb(r,e){for(var t=new Array(r.length*4),f=0,a=0;f<r.length;f++,a+=4){var i=r[f];e==="big"?(t[a]=i>>>24,t[a+1]=i>>>16&255,t[a+2]=i>>>8&255,t[a+3]=i&255):(t[a+3]=i>>>24,t[a+2]=i>>>16&255,t[a+1]=i>>>8&255,t[a]=i&255)}return t}X.split32=bb;function lb(r,e){return r>>>e|r<<32-e}X.rotr32=lb;function vb(r,e){return r<<e|r>>>32-e}X.rotl32=vb;function pb(r,e){return r+e>>>0}X.sum32=pb;function yb(r,e,t){return r+e+t>>>0}X.sum32_3=yb;function mb(r,e,t,f){return r+e+t+f>>>0}X.sum32_4=mb;function gb(r,e,t,f,a){return r+e+t+f+a>>>0}X.sum32_5=gb;function xb(r,e,t,f){var a=r[e],i=r[e+1],d=f+i>>>0,c=(d<f?1:0)+t+a;r[e]=c>>>0,r[e+1]=d}X.sum64=xb;function wb(r,e,t,f){var a=e+f>>>0,i=(a<e?1:0)+r+t;return i>>>0}X.sum64_hi=wb;function _b(r,e,t,f){var a=e+f;return a>>>0}X.sum64_lo=_b;function Sb(r,e,t,f,a,i,d,c){var o=0,l=e;l=l+f>>>0,o+=l<e?1:0,l=l+i>>>0,o+=l<i?1:0,l=l+c>>>0,o+=l<c?1:0;var b=r+t+a+d+o;return b>>>0}X.sum64_4_hi=Sb;function Mb(r,e,t,f,a,i,d,c){var o=e+f+i+c;return o>>>0}X.sum64_4_lo=Mb;function Ab(r,e,t,f,a,i,d,c,o,l){var b=0,p=e;p=p+f>>>0,b+=p<e?1:0,p=p+i>>>0,b+=p<i?1:0,p=p+c>>>0,b+=p<c?1:0,p=p+l>>>0,b+=p<l?1:0;var S=r+t+a+d+o+b;return S>>>0}X.sum64_5_hi=Ab;function qb(r,e,t,f,a,i,d,c,o,l){var b=e+f+i+c+l;return b>>>0}X.sum64_5_lo=qb;function Ib(r,e,t){var f=e<<32-t|r>>>t;return f>>>0}X.rotr64_hi=Ib;function Eb(r,e,t){var f=r<<32-t|e>>>t;return f>>>0}X.rotr64_lo=Eb;function Bb(r,e,t){return r>>>t}X.shr64_hi=Bb;function Pb(r,e,t){var f=r<<32-t|e>>>t;return f>>>0}X.shr64_lo=Pb});var Qt=B(ss=>{"use strict";g();x();var cs=Ar(),Rb=er();function Ma(){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}ss.BlockHash=Ma;Ma.prototype.update=function(e,t){if(e=cs.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 f=e.length%this._delta8;this.pending=e.slice(e.length-f,e.length),this.pending.length===0&&(this.pending=null),e=cs.join32(e,0,e.length-f,this.endian);for(var a=0;a<e.length;a+=this._delta32)this._update(e,a,a+this._delta32)}return this};Ma.prototype.digest=function(e){return this.update(this._pad()),Rb(this.pending===null),this._digest(e)};Ma.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,f=t-(e+this.padLength)%t,a=new Array(f+this.padLength);a[0]=128;for(var i=1;i<f;i++)a[i]=0;if(e<<=3,this.endian==="big"){for(var d=8;d<this.padLength;d++)a[i++]=0;a[i++]=0,a[i++]=0,a[i++]=0,a[i++]=0,a[i++]=e>>>24&255,a[i++]=e>>>16&255,a[i++]=e>>>8&255,a[i++]=e&255}else for(a[i++]=e&255,a[i++]=e>>>8&255,a[i++]=e>>>16&255,a[i++]=e>>>24&255,a[i++]=0,a[i++]=0,a[i++]=0,a[i++]=0,d=8;d<this.padLength;d++)a[i++]=0;return a}});var ld=B($r=>{"use strict";g();x();var Cb=Ar(),Nr=Cb.rotr32;function kb(r,e,t,f){if(r===0)return os(e,t,f);if(r===1||r===3)return us(e,t,f);if(r===2)return hs(e,t,f)}$r.ft_1=kb;function os(r,e,t){return r&e^~r&t}$r.ch32=os;function hs(r,e,t){return r&e^r&t^e&t}$r.maj32=hs;function us(r,e,t){return r^e^t}$r.p32=us;function Db(r){return Nr(r,2)^Nr(r,13)^Nr(r,22)}$r.s0_256=Db;function zb(r){return Nr(r,6)^Nr(r,11)^Nr(r,25)}$r.s1_256=zb;function Nb(r){return Nr(r,7)^Nr(r,18)^r>>>3}$r.g0_256=Nb;function Tb(r){return Nr(r,17)^Nr(r,19)^r>>>10}$r.g1_256=Tb});var vs=B((w9,ls)=>{"use strict";g();x();var ef=Ar(),Ob=Qt(),Lb=ld(),vd=ef.rotl32,kf=ef.sum32,jb=ef.sum32_5,Fb=Lb.ft_1,bs=Ob.BlockHash,Kb=[1518500249,1859775393,2400959708,3395469782];function Tr(){if(!(this instanceof Tr))return new Tr;bs.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}ef.inherits(Tr,bs);ls.exports=Tr;Tr.blockSize=512;Tr.outSize=160;Tr.hmacStrength=80;Tr.padLength=64;Tr.prototype._update=function(e,t){for(var f=this.W,a=0;a<16;a++)f[a]=e[t+a];for(;a<f.length;a++)f[a]=vd(f[a-3]^f[a-8]^f[a-14]^f[a-16],1);var i=this.h[0],d=this.h[1],c=this.h[2],o=this.h[3],l=this.h[4];for(a=0;a<f.length;a++){var b=~~(a/20),p=jb(vd(i,5),Fb(b,d,c,o),l,f[a],Kb[b]);l=o,o=c,c=vd(d,30),d=i,i=p}this.h[0]=kf(this.h[0],i),this.h[1]=kf(this.h[1],d),this.h[2]=kf(this.h[2],c),this.h[3]=kf(this.h[3],o),this.h[4]=kf(this.h[4],l)};Tr.prototype._digest=function(e){return e==="hex"?ef.toHex32(this.h,"big"):ef.split32(this.h,"big")}});var pd=B((M9,ys)=>{"use strict";g();x();var rf=Ar(),Ub=Qt(),tf=ld(),Hb=er(),qr=rf.sum32,Xb=rf.sum32_4,Jb=rf.sum32_5,Vb=tf.ch32,Wb=tf.maj32,Gb=tf.s0_256,Yb=tf.s1_256,Zb=tf.g0_256,$b=tf.g1_256,ps=Ub.BlockHash,Qb=[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 Or(){if(!(this instanceof Or))return new Or;ps.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=Qb,this.W=new Array(64)}rf.inherits(Or,ps);ys.exports=Or;Or.blockSize=512;Or.outSize=256;Or.hmacStrength=192;Or.padLength=64;Or.prototype._update=function(e,t){for(var f=this.W,a=0;a<16;a++)f[a]=e[t+a];for(;a<f.length;a++)f[a]=Xb($b(f[a-2]),f[a-7],Zb(f[a-15]),f[a-16]);var i=this.h[0],d=this.h[1],c=this.h[2],o=this.h[3],l=this.h[4],b=this.h[5],p=this.h[6],S=this.h[7];for(Hb(this.k.length===f.length),a=0;a<f.length;a++){var q=Jb(S,Yb(l),Vb(l,b,p),this.k[a],f[a]),E=qr(Gb(i),Wb(i,d,c));S=p,p=b,b=l,l=qr(o,q),o=c,c=d,d=i,i=qr(q,E)}this.h[0]=qr(this.h[0],i),this.h[1]=qr(this.h[1],d),this.h[2]=qr(this.h[2],c),this.h[3]=qr(this.h[3],o),this.h[4]=qr(this.h[4],l),this.h[5]=qr(this.h[5],b),this.h[6]=qr(this.h[6],p),this.h[7]=qr(this.h[7],S)};Or.prototype._digest=function(e){return e==="hex"?rf.toHex32(this.h,"big"):rf.split32(this.h,"big")}});var xs=B((I9,gs)=>{"use strict";g();x();var yd=Ar(),ms=pd();function Qr(){if(!(this instanceof Qr))return new Qr;ms.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}yd.inherits(Qr,ms);gs.exports=Qr;Qr.blockSize=512;Qr.outSize=224;Qr.hmacStrength=192;Qr.padLength=64;Qr.prototype._digest=function(e){return e==="hex"?yd.toHex32(this.h.slice(0,7),"big"):yd.split32(this.h.slice(0,7),"big")}});var xd=B((P9,Ms)=>{"use strict";g();x();var rr=Ar(),e6=Qt(),r6=er(),Lr=rr.rotr64_hi,jr=rr.rotr64_lo,ws=rr.shr64_hi,_s=rr.shr64_lo,st=rr.sum64,md=rr.sum64_hi,gd=rr.sum64_lo,t6=rr.sum64_4_hi,f6=rr.sum64_4_lo,a6=rr.sum64_5_hi,i6=rr.sum64_5_lo,Ss=e6.BlockHash,d6=[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 Ir(){if(!(this instanceof Ir))return new Ir;Ss.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=d6,this.W=new Array(160)}rr.inherits(Ir,Ss);Ms.exports=Ir;Ir.blockSize=1024;Ir.outSize=512;Ir.hmacStrength=192;Ir.padLength=128;Ir.prototype._prepareBlock=function(e,t){for(var f=this.W,a=0;a<32;a++)f[a]=e[t+a];for(;a<f.length;a+=2){var i=y6(f[a-4],f[a-3]),d=m6(f[a-4],f[a-3]),c=f[a-14],o=f[a-13],l=v6(f[a-30],f[a-29]),b=p6(f[a-30],f[a-29]),p=f[a-32],S=f[a-31];f[a]=t6(i,d,c,o,l,b,p,S),f[a+1]=f6(i,d,c,o,l,b,p,S)}};Ir.prototype._update=function(e,t){this._prepareBlock(e,t);var f=this.W,a=this.h[0],i=this.h[1],d=this.h[2],c=this.h[3],o=this.h[4],l=this.h[5],b=this.h[6],p=this.h[7],S=this.h[8],q=this.h[9],E=this.h[10],P=this.h[11],C=this.h[12],R=this.h[13],N=this.h[14],Y=this.h[15];r6(this.k.length===f.length);for(var Xe=0;Xe<f.length;Xe+=2){var j=N,ee=Y,L=b6(S,q),Ne=l6(S,q),_=n6(S,q,E,P,C,R),n=c6(S,q,E,P,C,R),h=this.k[Xe],u=this.k[Xe+1],v=f[Xe],w=f[Xe+1],M=a6(j,ee,L,Ne,_,n,h,u,v,w),I=i6(j,ee,L,Ne,_,n,h,u,v,w);j=h6(a,i),ee=u6(a,i),L=s6(a,i,d,c,o,l),Ne=o6(a,i,d,c,o,l);var y=md(j,ee,L,Ne),s=gd(j,ee,L,Ne);N=C,Y=R,C=E,R=P,E=S,P=q,S=md(b,p,M,I),q=gd(p,p,M,I),b=o,p=l,o=d,l=c,d=a,c=i,a=md(M,I,y,s),i=gd(M,I,y,s)}st(this.h,0,a,i),st(this.h,2,d,c),st(this.h,4,o,l),st(this.h,6,b,p),st(this.h,8,S,q),st(this.h,10,E,P),st(this.h,12,C,R),st(this.h,14,N,Y)};Ir.prototype._digest=function(e){return e==="hex"?rr.toHex32(this.h,"big"):rr.split32(this.h,"big")};function n6(r,e,t,f,a){var i=r&t^~r&a;return i<0&&(i+=4294967296),i}function c6(r,e,t,f,a,i){var d=e&f^~e&i;return d<0&&(d+=4294967296),d}function s6(r,e,t,f,a){var i=r&t^r&a^t&a;return i<0&&(i+=4294967296),i}function o6(r,e,t,f,a,i){var d=e&f^e&i^f&i;return d<0&&(d+=4294967296),d}function h6(r,e){var t=Lr(r,e,28),f=Lr(e,r,2),a=Lr(e,r,7),i=t^f^a;return i<0&&(i+=4294967296),i}function u6(r,e){var t=jr(r,e,28),f=jr(e,r,2),a=jr(e,r,7),i=t^f^a;return i<0&&(i+=4294967296),i}function b6(r,e){var t=Lr(r,e,14),f=Lr(r,e,18),a=Lr(e,r,9),i=t^f^a;return i<0&&(i+=4294967296),i}function l6(r,e){var t=jr(r,e,14),f=jr(r,e,18),a=jr(e,r,9),i=t^f^a;return i<0&&(i+=4294967296),i}function v6(r,e){var t=Lr(r,e,1),f=Lr(r,e,8),a=ws(r,e,7),i=t^f^a;return i<0&&(i+=4294967296),i}function p6(r,e){var t=jr(r,e,1),f=jr(r,e,8),a=_s(r,e,7),i=t^f^a;return i<0&&(i+=4294967296),i}function y6(r,e){var t=Lr(r,e,19),f=Lr(e,r,29),a=ws(r,e,6),i=t^f^a;return i<0&&(i+=4294967296),i}function m6(r,e){var t=jr(r,e,19),f=jr(e,r,29),a=_s(r,e,6),i=t^f^a;return i<0&&(i+=4294967296),i}});var Is=B((k9,qs)=>{"use strict";g();x();var wd=Ar(),As=xd();function et(){if(!(this instanceof et))return new et;As.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}wd.inherits(et,As);qs.exports=et;et.blockSize=1024;et.outSize=384;et.hmacStrength=192;et.padLength=128;et.prototype._digest=function(e){return e==="hex"?wd.toHex32(this.h.slice(0,12),"big"):wd.split32(this.h.slice(0,12),"big")}});var Es=B(ff=>{"use strict";g();x();ff.sha1=vs();ff.sha224=xs();ff.sha256=pd();ff.sha384=Is();ff.sha512=xd()});var Ds=B(ks=>{"use strict";g();x();var qt=Ar(),g6=Qt(),Aa=qt.rotl32,Bs=qt.sum32,Df=qt.sum32_3,Ps=qt.sum32_4,Cs=g6.BlockHash;function Fr(){if(!(this instanceof Fr))return new Fr;Cs.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}qt.inherits(Fr,Cs);ks.ripemd160=Fr;Fr.blockSize=512;Fr.outSize=160;Fr.hmacStrength=192;Fr.padLength=64;Fr.prototype._update=function(e,t){for(var f=this.h[0],a=this.h[1],i=this.h[2],d=this.h[3],c=this.h[4],o=f,l=a,b=i,p=d,S=c,q=0;q<80;q++){var E=Bs(Aa(Ps(f,Rs(q,a,i,d),e[_6[q]+t],x6(q)),M6[q]),c);f=c,c=d,d=Aa(i,10),i=a,a=E,E=Bs(Aa(Ps(o,Rs(79-q,l,b,p),e[S6[q]+t],w6(q)),A6[q]),S),o=S,S=p,p=Aa(b,10),b=l,l=E}E=Df(this.h[1],i,p),this.h[1]=Df(this.h[2],d,S),this.h[2]=Df(this.h[3],c,o),this.h[3]=Df(this.h[4],f,l),this.h[4]=Df(this.h[0],a,b),this.h[0]=E};Fr.prototype._digest=function(e){return e==="hex"?qt.toHex32(this.h,"little"):qt.split32(this.h,"little")};function Rs(r,e,t,f){return r<=15?e^t^f:r<=31?e&t|~e&f:r<=47?(e|~t)^f:r<=63?e&f|t&~f:e^(t|~f)}function x6(r){return r<=15?0:r<=31?1518500249:r<=47?1859775393:r<=63?2400959708:2840853838}function w6(r){return r<=15?1352829926:r<=31?1548603684:r<=47?1836072691:r<=63?2053994217:0}var _6=[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],S6=[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],M6=[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],A6=[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]});var Ns=B((K9,zs)=>{"use strict";g();x();var q6=Ar(),I6=er();function af(r,e,t){if(!(this instanceof af))return new af(r,e,t);this.Hash=r,this.blockSize=r.blockSize/8,this.outSize=r.outSize/8,this.inner=null,this.outer=null,this._init(q6.toArray(e,t))}zs.exports=af;af.prototype._init=function(e){e.length>this.blockSize&&(e=new this.Hash().update(e).digest()),I6(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)};af.prototype.update=function(e,t){return this.inner.update(e,t),this};af.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}});var df=B(Ts=>{g();x();var We=Ts;We.utils=Ar();We.common=Qt();We.sha=Es();We.ripemd=Ds();We.hmac=Ns();We.sha1=We.sha.sha1;We.sha256=We.sha.sha256;We.sha224=We.sha.sha224;We.sha384=We.sha.sha384;We.sha512=We.sha.sha512;We.ripemd160=We.ripemd.ripemd160});var Ls=B((W9,Os)=>{g();x();Os.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}});var qa=B(Ks=>{"use strict";g();x();var Sd=Ks,ot=df(),_d=bd(),E6=ir(),js=E6.assert;function Fs(r){r.type==="short"?this.curve=new _d.short(r):r.type==="edwards"?this.curve=new _d.edwards(r):this.curve=new _d.mont(r),this.g=this.curve.g,this.n=this.curve.n,this.hash=r.hash,js(this.g.validate(),"Invalid curve"),js(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}Sd.PresetCurve=Fs;function ht(r,e){Object.defineProperty(Sd,r,{configurable:!0,enumerable:!0,get:function(){var t=new Fs(e);return Object.defineProperty(Sd,r,{configurable:!0,enumerable:!0,value:t}),t}})}ht("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:ot.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]});ht("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:ot.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]});ht("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:ot.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]});ht("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:ot.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"]});ht("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:ot.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"]});ht("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:ot.sha256,gRed:!1,g:["9"]});ht("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:ot.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var Md;try{Md=Ls()}catch{Md=void 0}ht("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:ot.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",Md]})});var Ad=B((e7,Hs)=>{"use strict";g();x();var B6=df(),It=ya(),Us=er();function ut(r){if(!(this instanceof ut))return new ut(r);this.hash=r.hash,this.predResist=!!r.predResist,this.outLen=this.hash.outSize,this.minEntropy=r.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=It.toArray(r.entropy,r.entropyEnc||"hex"),t=It.toArray(r.nonce,r.nonceEnc||"hex"),f=It.toArray(r.pers,r.persEnc||"hex");Us(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,t,f)}Hs.exports=ut;ut.prototype._init=function(e,t,f){var a=e.concat(t).concat(f);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(a),this._reseed=1,this.reseedInterval=281474976710656};ut.prototype._hmac=function(){return new B6.hmac(this.hash,this.K)};ut.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())};ut.prototype.reseed=function(e,t,f,a){typeof t!="string"&&(a=f,f=t,t=null),e=It.toArray(e,t),f=It.toArray(f,a),Us(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(f||[])),this._reseed=1};ut.prototype.generate=function(e,t,f,a){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof t!="string"&&(a=f,f=t,t=null),f&&(f=It.toArray(f,a||"hex"),this._update(f));for(var i=[];i.length<e;)this.V=this._hmac().update(this.V).digest(),i=i.concat(this.V);var d=i.slice(0,e);return this._update(f),this._reseed++,It.encode(d,t)}});var Js=B((f7,Xs)=>{"use strict";g();x();var P6=K(),R6=ir(),qd=R6.assert;function Ye(r,e){this.ec=r,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}Xs.exports=Ye;Ye.fromPublic=function(e,t,f){return t instanceof Ye?t:new Ye(e,{pub:t,pubEnc:f})};Ye.fromPrivate=function(e,t,f){return t instanceof Ye?t:new Ye(e,{priv:t,privEnc:f})};Ye.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"}};Ye.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};Ye.prototype.getPrivate=function(e){return e==="hex"?this.priv.toString(16,2):this.priv};Ye.prototype._importPrivate=function(e,t){this.priv=new P6(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)};Ye.prototype._importPublic=function(e,t){if(e.x||e.y){this.ec.curve.type==="mont"?qd(e.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&qd(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)};Ye.prototype.derive=function(e){return e.validate()||qd(e.validate(),"public point not validated"),e.mul(this.priv).getX()};Ye.prototype.sign=function(e,t,f){return this.ec.sign(e,this,t,f)};Ye.prototype.verify=function(e,t){return this.ec.verify(e,t,this)};Ye.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}});var Gs=B((d7,Ws)=>{"use strict";g();x();var Ia=K(),Bd=ir(),C6=Bd.assert;function Ea(r,e){if(r instanceof Ea)return r;this._importDER(r,e)||(C6(r.r&&r.s,"Signature without r or s"),this.r=new Ia(r.r,16),this.s=new Ia(r.s,16),r.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=r.recoveryParam)}Ws.exports=Ea;function k6(){this.place=0}function Id(r,e){var t=r[e.place++];if(!(t&128))return t;var f=t&15;if(f===0||f>4)return!1;for(var a=0,i=0,d=e.place;i<f;i++,d++)a<<=8,a|=r[d],a>>>=0;return a<=127?!1:(e.place=d,a)}function Vs(r){for(var e=0,t=r.length-1;!r[e]&&!(r[e+1]&128)&&e<t;)e++;return e===0?r:r.slice(e)}Ea.prototype._importDER=function(e,t){e=Bd.toArray(e,t);var f=new k6;if(e[f.place++]!==48)return!1;var a=Id(e,f);if(a===!1||a+f.place!==e.length||e[f.place++]!==2)return!1;var i=Id(e,f);if(i===!1)return!1;var d=e.slice(f.place,i+f.place);if(f.place+=i,e[f.place++]!==2)return!1;var c=Id(e,f);if(c===!1||e.length!==c+f.place)return!1;var o=e.slice(f.place,c+f.place);if(d[0]===0)if(d[1]&128)d=d.slice(1);else return!1;if(o[0]===0)if(o[1]&128)o=o.slice(1);else return!1;return this.r=new Ia(d),this.s=new Ia(o),this.recoveryParam=null,!0};function Ed(r,e){if(e<128){r.push(e);return}var t=1+(Math.log(e)/Math.LN2>>>3);for(r.push(t|128);--t;)r.push(e>>>(t<<3)&255);r.push(e)}Ea.prototype.toDER=function(e){var t=this.r.toArray(),f=this.s.toArray();for(t[0]&128&&(t=[0].concat(t)),f[0]&128&&(f=[0].concat(f)),t=Vs(t),f=Vs(f);!f[0]&&!(f[1]&128);)f=f.slice(1);var a=[2];Ed(a,t.length),a=a.concat(t),a.push(2),Ed(a,f.length);var i=a.concat(f),d=[48];return Ed(d,i.length),d=d.concat(i),Bd.encode(d,e)}});var Qs=B((s7,$s)=>{"use strict";g();x();var Et=K(),Ys=Ad(),D6=ir(),Pd=qa(),z6=Wt(),Zs=D6.assert,Rd=Js(),Ba=Gs();function vr(r){if(!(this instanceof vr))return new vr(r);typeof r=="string"&&(Zs(Object.prototype.hasOwnProperty.call(Pd,r),"Unknown curve "+r),r=Pd[r]),r instanceof Pd.PresetCurve&&(r={curve:r}),this.curve=r.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=r.curve.g,this.g.precompute(r.curve.n.bitLength()+1),this.hash=r.hash||r.curve.hash}$s.exports=vr;vr.prototype.keyPair=function(e){return new Rd(this,e)};vr.prototype.keyFromPrivate=function(e,t){return Rd.fromPrivate(this,e,t)};vr.prototype.keyFromPublic=function(e,t){return Rd.fromPublic(this,e,t)};vr.prototype.genKeyPair=function(e){e||(e={});for(var t=new Ys({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||z6(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),f=this.n.byteLength(),a=this.n.sub(new Et(2));;){var i=new Et(t.generate(f));if(!(i.cmp(a)>0))return i.iaddn(1),this.keyFromPrivate(i)}};vr.prototype._truncateToN=function(e,t){var f=e.byteLength()*8-this.n.bitLength();return f>0&&(e=e.ushrn(f)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e};vr.prototype.sign=function(e,t,f,a){typeof f=="object"&&(a=f,f=null),a||(a={}),t=this.keyFromPrivate(t,f),e=this._truncateToN(new Et(e,16));for(var i=this.n.byteLength(),d=t.getPrivate().toArray("be",i),c=e.toArray("be",i),o=new Ys({hash:this.hash,entropy:d,nonce:c,pers:a.pers,persEnc:a.persEnc||"utf8"}),l=this.n.sub(new Et(1)),b=0;;b++){var p=a.k?a.k(b):new Et(o.generate(this.n.byteLength()));if(p=this._truncateToN(p,!0),!(p.cmpn(1)<=0||p.cmp(l)>=0)){var S=this.g.mul(p);if(!S.isInfinity()){var q=S.getX(),E=q.umod(this.n);if(E.cmpn(0)!==0){var P=p.invm(this.n).mul(E.mul(t.getPrivate()).iadd(e));if(P=P.umod(this.n),P.cmpn(0)!==0){var C=(S.getY().isOdd()?1:0)|(q.cmp(E)!==0?2:0);return a.canonical&&P.cmp(this.nh)>0&&(P=this.n.sub(P),C^=1),new Ba({r:E,s:P,recoveryParam:C})}}}}}};vr.prototype.verify=function(e,t,f,a){e=this._truncateToN(new Et(e,16)),f=this.keyFromPublic(f,a),t=new Ba(t,"hex");var i=t.r,d=t.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0||d.cmpn(1)<0||d.cmp(this.n)>=0)return!1;var c=d.invm(this.n),o=c.mul(e).umod(this.n),l=c.mul(i).umod(this.n),b;return this.curve._maxwellTrick?(b=this.g.jmulAdd(o,f.getPublic(),l),b.isInfinity()?!1:b.eqXToP(i)):(b=this.g.mulAdd(o,f.getPublic(),l),b.isInfinity()?!1:b.getX().umod(this.n).cmp(i)===0)};vr.prototype.recoverPubKey=function(r,e,t,f){Zs((3&t)===t,"The recovery param is more than two bits"),e=new Ba(e,f);var a=this.n,i=new Et(r),d=e.r,c=e.s,o=t&1,l=t>>1;if(d.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw new Error("Unable to find sencond key candinate");l?d=this.curve.pointFromX(d.add(this.curve.n),o):d=this.curve.pointFromX(d,o);var b=e.r.invm(a),p=a.sub(i).mul(b).umod(a),S=c.mul(b).umod(a);return this.g.mulAdd(p,d,S)};vr.prototype.getKeyRecoveryParam=function(r,e,t,f){if(e=new Ba(e,f),e.recoveryParam!==null)return e.recoveryParam;for(var a=0;a<4;a++){var i;try{i=this.recoverPubKey(r,e,a)}catch{continue}if(i.eq(t))return a}throw new Error("Unable to find valid recovery factor")}});var fo=B((u7,to)=>{"use strict";g();x();var zf=ir(),ro=zf.assert,eo=zf.parseBytes,nf=zf.cachedProperty;function Fe(r,e){this.eddsa=r,this._secret=eo(e.secret),r.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=eo(e.pub)}Fe.fromPublic=function(e,t){return t instanceof Fe?t:new Fe(e,{pub:t})};Fe.fromSecret=function(e,t){return t instanceof Fe?t:new Fe(e,{secret:t})};Fe.prototype.secret=function(){return this._secret};nf(Fe,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())});nf(Fe,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});nf(Fe,"privBytes",function(){var e=this.eddsa,t=this.hash(),f=e.encodingLength-1,a=t.slice(0,e.encodingLength);return a[0]&=248,a[f]&=127,a[f]|=64,a});nf(Fe,"priv",function(){return this.eddsa.decodeInt(this.privBytes())});nf(Fe,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()});nf(Fe,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)});Fe.prototype.sign=function(e){return ro(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)};Fe.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)};Fe.prototype.getSecret=function(e){return ro(this._secret,"KeyPair is public only"),zf.encode(this.secret(),e)};Fe.prototype.getPublic=function(e){return zf.encode(this.pubBytes(),e)};to.exports=Fe});var io=B((v7,ao)=>{"use strict";g();x();var N6=K(),Pa=ir(),T6=Pa.assert,Ra=Pa.cachedProperty,O6=Pa.parseBytes;function Bt(r,e){this.eddsa=r,typeof e!="object"&&(e=O6(e)),Array.isArray(e)&&(e={R:e.slice(0,r.encodingLength),S:e.slice(r.encodingLength)}),T6(e.R&&e.S,"Signature without R or S"),r.isPoint(e.R)&&(this._R=e.R),e.S instanceof N6&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}Ra(Bt,"S",function(){return this.eddsa.decodeInt(this.Sencoded())});Ra(Bt,"R",function(){return this.eddsa.decodePoint(this.Rencoded())});Ra(Bt,"Rencoded",function(){return this.eddsa.encodePoint(this.R())});Ra(Bt,"Sencoded",function(){return this.eddsa.encodeInt(this.S())});Bt.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};Bt.prototype.toHex=function(){return Pa.encode(this.toBytes(),"hex").toUpperCase()};ao.exports=Bt});var ho=B((m7,oo)=>{"use strict";g();x();var L6=df(),j6=qa(),cf=ir(),F6=cf.assert,co=cf.parseBytes,so=fo(),no=io();function tr(r){if(F6(r==="ed25519","only tested with ed25519 so far"),!(this instanceof tr))return new tr(r);r=j6[r].curve,this.curve=r,this.g=r.g,this.g.precompute(r.n.bitLength()+1),this.pointClass=r.point().constructor,this.encodingLength=Math.ceil(r.n.bitLength()/8),this.hash=L6.sha512}oo.exports=tr;tr.prototype.sign=function(e,t){e=co(e);var f=this.keyFromSecret(t),a=this.hashInt(f.messagePrefix(),e),i=this.g.mul(a),d=this.encodePoint(i),c=this.hashInt(d,f.pubBytes(),e).mul(f.priv()),o=a.add(c).umod(this.curve.n);return this.makeSignature({R:i,S:o,Rencoded:d})};tr.prototype.verify=function(e,t,f){e=co(e),t=this.makeSignature(t);var a=this.keyFromPublic(f),i=this.hashInt(t.Rencoded(),a.pubBytes(),e),d=this.g.mul(t.S()),c=t.R().add(a.pub().mul(i));return c.eq(d)};tr.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return cf.intFromLE(e.digest()).umod(this.curve.n)};tr.prototype.keyFromPublic=function(e){return so.fromPublic(this,e)};tr.prototype.keyFromSecret=function(e){return so.fromSecret(this,e)};tr.prototype.makeSignature=function(e){return e instanceof no?e:new no(this,e)};tr.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t};tr.prototype.decodePoint=function(e){e=cf.parseBytes(e);var t=e.length-1,f=e.slice(0,t).concat(e[t]&-129),a=(e[t]&128)!==0,i=cf.intFromLE(f);return this.curve.pointFromY(i,a)};tr.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)};tr.prototype.decodeInt=function(e){return cf.intFromLE(e)};tr.prototype.isPoint=function(e){return e instanceof this.pointClass}});var Cd=B(uo=>{"use strict";g();x();var Pt=uo;Pt.version=Hc().version;Pt.utils=ir();Pt.rand=Wt();Pt.curve=bd();Pt.curves=qa();Pt.ec=Qs();Pt.eddsa=ho()});var mo={};Dn(mo,{Script:()=>Er,createContext:()=>Dd,createScript:()=>lo,default:()=>X6,isContext:()=>zd,runInContext:()=>vo,runInNewContext:()=>yo,runInThisContext:()=>po});function of(r){if(Object.keys)return Object.keys(r);var e=[];for(var t in r)e.push(t);return e}function sf(r,e){if(r.forEach)return r.forEach(e);for(var t=0;t<r.length;t++)e(r[t],t,r)}function K6(r,e,t){typeof kd!="function"&&(kd=U6),kd(r,e,t)}function U6(){try{return Object.defineProperty({},"_",{}),function(r,e,t){Object.defineProperty(r,e,{writable:!0,enumerable:!1,configurable:!0,value:t})}}catch{return function(e,t,f){e[t]=f}}}function Ca(){}function Er(r){if(!(this instanceof Er))return new Er(r);this.code=r}function H6(r,e){var t=of(globalThis);t.push("with (this.__ctx__){return eval(this.__code__)}");var f=Function.apply(null,t);return f.apply({__code__:r,__ctx__:e})}function lo(r){return new Er(r)}function Dd(r){if(zd(r))return r;var e=new Ca;return typeof r=="object"&&sf(of(r),function(t){e[t]=r[t]}),e}function vo(r,e,t){var f=new Er(r,t);return f.runInContext(e,t)}function po(r,e){var t=new Er(r,e);return t.runInThisContext(e)}function zd(r){return r instanceof Ca}function yo(r,e,t){var f=new Er(r,t);return f.runInNewContext(e,t)}function V6(r,e){if(J6)return r.indexOf(e);for(var t=0;t<r.length;++t)if(r[t]===e)return t;return-1}var kd,bo,X6,J6,go=kn(()=>{g();x();bo=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];Ca.prototype={};Er.prototype.runInContext=function(r){if(!(r instanceof Ca))throw new TypeError("needs a 'context' argument.");if(globalThis.document){var e=globalThis.document.createElement("iframe");e.style||(e.style={}),e.style.display="none",globalThis.document.body.appendChild(e);var t=e.contentWindow,f=t.eval,a=t.execScript;!f&&a&&(a.call(t,"null"),f=t.eval),sf(of(r),function(c){t[c]=r[c]}),sf(bo,function(c){r[c]&&(t[c]=r[c])});var i=of(t),d=f.call(t,this.code);return sf(of(t),function(c){(c in r||V6(i,c)===-1)&&(r[c]=t[c])}),sf(bo,function(c){c in r||K6(r,c,t[c])}),globalThis.document.body.removeChild(e),d}return H6(this.code,r)};Er.prototype.runInThisContext=function(){var r=new Function("code","return eval(code);");return r.call(globalThis,this.code)};Er.prototype.runInNewContext=function(r){var e=Dd(r),t=this.runInContext(e);return r&&sf(of(e),function(f){r[f]=e[f]}),t};X6={runInContext:vo,isContext:zd,createContext:Dd,createScript:lo,Script:Er,runInThisContext:po,runInNewContext:yo},J6=[].indexOf});var xo=B((q7,ka)=>{g();x();var Rt=(go(),zn(mo));if(Rt&&Rt.default){ka.exports=Rt.default;for(let r in Rt)ka.exports[r]=Rt[r]}else Rt&&(ka.exports=Rt)});var So=B(_o=>{g();x();var wo=uf(),W6=H(),G6=_o;G6.define=function(e,t){return new hf(e,t)};function hf(r,e){this.name=r,this.body=e,this.decoders={},this.encoders={}}hf.prototype._createNamed=function(e){var t;try{t=xo().runInThisContext("(function "+this.name+`(entity) {
|
|
this._initNamed(entity);
|
|
})`)}catch{t=function(a){this._initNamed(a)}}return W6(t,e),t.prototype._initNamed=function(a){e.call(this,a)},new t(this)};hf.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(wo.decoders[e])),this.decoders[e]};hf.prototype.decode=function(e,t,f){return this._getDecoder(t).decode(e,f)};hf.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(wo.encoders[e])),this.encoders[e]};hf.prototype.encode=function(e,t,f){return this._getEncoder(t).encode(e,f)}});var Ao=B(Mo=>{g();x();var Y6=H();function pr(r){this._reporterState={obj:null,path:[],options:r||{},errors:[]}}Mo.Reporter=pr;pr.prototype.isError=function(e){return e instanceof bf};pr.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}};pr.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)};pr.prototype.enterKey=function(e){return this._reporterState.path.push(e)};pr.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)};pr.prototype.leaveKey=function(e,t,f){var a=this._reporterState;this.exitKey(e),a.obj!==null&&(a.obj[t]=f)};pr.prototype.path=function(){return this._reporterState.path.join("/")};pr.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t};pr.prototype.leaveObject=function(e){var t=this._reporterState,f=t.obj;return t.obj=e,f};pr.prototype.error=function(e){var t,f=this._reporterState,a=e instanceof bf;if(a?t=e:t=new bf(f.path.map(function(i){return"["+JSON.stringify(i)+"]"}).join(""),e.message||e,e.stack),!f.options.partial)throw t;return a||f.errors.push(t),t};pr.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e};function bf(r,e){this.path=r,this.rethrow(e)}Y6(bf,Error);bf.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,bf),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}});var Td=B(Nd=>{g();x();var Z6=H(),za=lf().Reporter,Nf=Jf().Buffer;function Kr(r,e){if(za.call(this,e),!Nf.isBuffer(r)){this.error("Input not Buffer");return}this.base=r,this.offset=0,this.length=r.length}Z6(Kr,za);Nd.DecoderBuffer=Kr;Kr.prototype.save=function(){return{offset:this.offset,reporter:za.prototype.save.call(this)}};Kr.prototype.restore=function(e){var t=new Kr(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,za.prototype.restore.call(this,e.reporter),t};Kr.prototype.isEmpty=function(){return this.offset===this.length};Kr.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")};Kr.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var f=new Kr(this.base);return f._reporterState=this._reporterState,f.offset=this.offset,f.length=this.offset+e,this.offset+=e,f};Kr.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)};function Da(r,e){if(Array.isArray(r))this.length=0,this.value=r.map(function(t){return t instanceof Da||(t=new Da(t,e)),this.length+=t.length,t},this);else if(typeof r=="number"){if(!(0<=r&&r<=255))return e.error("non-byte EncoderBuffer value");this.value=r,this.length=1}else if(typeof r=="string")this.value=r,this.length=Nf.byteLength(r);else if(Nf.isBuffer(r))this.value=r,this.length=r.length;else return e.error("Unsupported type: "+typeof r)}Nd.EncoderBuffer=Da;Da.prototype.join=function(e,t){return e||(e=new Nf(this.length)),t||(t=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(f){f.join(e,t),t+=f.length}):(typeof this.value=="number"?e[t]=this.value:typeof this.value=="string"?e.write(this.value,t):Nf.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}});var Eo=B((O7,Io)=>{g();x();var $6=lf().Reporter,Q6=lf().EncoderBuffer,e4=lf().DecoderBuffer,$e=er(),qo=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],r4=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(qo),t4=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function U(r,e){var t={};this._baseState=t,t.enc=r,t.parent=e||null,t.children=null,t.tag=null,t.args=null,t.reverseArgs=null,t.choice=null,t.optional=!1,t.any=!1,t.obj=!1,t.use=null,t.useDecoder=null,t.key=null,t.default=null,t.explicit=null,t.implicit=null,t.contains=null,t.parent||(t.children=[],this._wrap())}Io.exports=U;var f4=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];U.prototype.clone=function(){var e=this._baseState,t={};f4.forEach(function(a){t[a]=e[a]});var f=new this.constructor(t.parent);return f._baseState=t,f};U.prototype._wrap=function(){var e=this._baseState;r4.forEach(function(t){this[t]=function(){var a=new this.constructor(this);return e.children.push(a),a[t].apply(a,arguments)}},this)};U.prototype._init=function(e){var t=this._baseState;$e(t.parent===null),e.call(this),t.children=t.children.filter(function(f){return f._baseState.parent===this},this),$e.equal(t.children.length,1,"Root node can have only one child")};U.prototype._useArgs=function(e){var t=this._baseState,f=e.filter(function(a){return a instanceof this.constructor},this);e=e.filter(function(a){return!(a instanceof this.constructor)},this),f.length!==0&&($e(t.children===null),t.children=f,f.forEach(function(a){a._baseState.parent=this},this)),e.length!==0&&($e(t.args===null),t.args=e,t.reverseArgs=e.map(function(a){if(typeof a!="object"||a.constructor!==Object)return a;var i={};return Object.keys(a).forEach(function(d){d==(d|0)&&(d|=0);var c=a[d];i[c]=d}),i}))};t4.forEach(function(r){U.prototype[r]=function(){var t=this._baseState;throw new Error(r+" not implemented for encoding: "+t.enc)}});qo.forEach(function(r){U.prototype[r]=function(){var t=this._baseState,f=Array.prototype.slice.call(arguments);return $e(t.tag===null),t.tag=r,this._useArgs(f),this}});U.prototype.use=function(e){$e(e);var t=this._baseState;return $e(t.use===null),t.use=e,this};U.prototype.optional=function(){var e=this._baseState;return e.optional=!0,this};U.prototype.def=function(e){var t=this._baseState;return $e(t.default===null),t.default=e,t.optional=!0,this};U.prototype.explicit=function(e){var t=this._baseState;return $e(t.explicit===null&&t.implicit===null),t.explicit=e,this};U.prototype.implicit=function(e){var t=this._baseState;return $e(t.explicit===null&&t.implicit===null),t.implicit=e,this};U.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,t.length!==0&&this._useArgs(t),this};U.prototype.key=function(e){var t=this._baseState;return $e(t.key===null),t.key=e,this};U.prototype.any=function(){var e=this._baseState;return e.any=!0,this};U.prototype.choice=function(e){var t=this._baseState;return $e(t.choice===null),t.choice=e,this._useArgs(Object.keys(e).map(function(f){return e[f]})),this};U.prototype.contains=function(e){var t=this._baseState;return $e(t.use===null),t.contains=e,this};U.prototype._decode=function(e,t){var f=this._baseState;if(f.parent===null)return e.wrapResult(f.children[0]._decode(e,t));var a=f.default,i=!0,d=null;if(f.key!==null&&(d=e.enterKey(f.key)),f.optional){var c=null;if(f.explicit!==null?c=f.explicit:f.implicit!==null?c=f.implicit:f.tag!==null&&(c=f.tag),c===null&&!f.any){var o=e.save();try{f.choice===null?this._decodeGeneric(f.tag,e,t):this._decodeChoice(e,t),i=!0}catch{i=!1}e.restore(o)}else if(i=this._peekTag(e,c,f.any),e.isError(i))return i}var l;if(f.obj&&i&&(l=e.enterObject()),i){if(f.explicit!==null){var b=this._decodeTag(e,f.explicit);if(e.isError(b))return b;e=b}var p=e.offset;if(f.use===null&&f.choice===null){if(f.any)var o=e.save();var S=this._decodeTag(e,f.implicit!==null?f.implicit:f.tag,f.any);if(e.isError(S))return S;f.any?a=e.raw(o):e=S}if(t&&t.track&&f.tag!==null&&t.track(e.path(),p,e.length,"tagged"),t&&t.track&&f.tag!==null&&t.track(e.path(),e.offset,e.length,"content"),f.any?a=a:f.choice===null?a=this._decodeGeneric(f.tag,e,t):a=this._decodeChoice(e,t),e.isError(a))return a;if(!f.any&&f.choice===null&&f.children!==null&&f.children.forEach(function(P){P._decode(e,t)}),f.contains&&(f.tag==="octstr"||f.tag==="bitstr")){var q=new e4(a);a=this._getUse(f.contains,e._reporterState.obj)._decode(q,t)}}return f.obj&&i&&(a=e.leaveObject(l)),f.key!==null&&(a!==null||i===!0)?e.leaveKey(d,f.key,a):d!==null&&e.exitKey(d),a};U.prototype._decodeGeneric=function(e,t,f){var a=this._baseState;return e==="seq"||e==="set"?null:e==="seqof"||e==="setof"?this._decodeList(t,e,a.args[0],f):/str$/.test(e)?this._decodeStr(t,e,f):e==="objid"&&a.args?this._decodeObjid(t,a.args[0],a.args[1],f):e==="objid"?this._decodeObjid(t,null,null,f):e==="gentime"||e==="utctime"?this._decodeTime(t,e,f):e==="null_"?this._decodeNull(t,f):e==="bool"?this._decodeBool(t,f):e==="objDesc"?this._decodeStr(t,e,f):e==="int"||e==="enum"?this._decodeInt(t,a.args&&a.args[0],f):a.use!==null?this._getUse(a.use,t._reporterState.obj)._decode(t,f):t.error("unknown tag: "+e)};U.prototype._getUse=function(e,t){var f=this._baseState;return f.useDecoder=this._use(e,t),$e(f.useDecoder._baseState.parent===null),f.useDecoder=f.useDecoder._baseState.children[0],f.implicit!==f.useDecoder._baseState.implicit&&(f.useDecoder=f.useDecoder.clone(),f.useDecoder._baseState.implicit=f.implicit),f.useDecoder};U.prototype._decodeChoice=function(e,t){var f=this._baseState,a=null,i=!1;return Object.keys(f.choice).some(function(d){var c=e.save(),o=f.choice[d];try{var l=o._decode(e,t);if(e.isError(l))return!1;a={type:d,value:l},i=!0}catch{return e.restore(c),!1}return!0},this),i?a:e.error("Choice not matched")};U.prototype._createEncoderBuffer=function(e){return new Q6(e,this.reporter)};U.prototype._encode=function(e,t,f){var a=this._baseState;if(!(a.default!==null&&a.default===e)){var i=this._encodeValue(e,t,f);if(i!==void 0&&!this._skipDefault(i,t,f))return i}};U.prototype._encodeValue=function(e,t,f){var a=this._baseState;if(a.parent===null)return a.children[0]._encode(e,t||new $6);var o=null;if(this.reporter=t,a.optional&&e===void 0)if(a.default!==null)e=a.default;else return;var i=null,d=!1;if(a.any)o=this._createEncoderBuffer(e);else if(a.choice)o=this._encodeChoice(e,t);else if(a.contains)i=this._getUse(a.contains,f)._encode(e,t),d=!0;else if(a.children)i=a.children.map(function(p){if(p._baseState.tag==="null_")return p._encode(null,t,e);if(p._baseState.key===null)return t.error("Child should have a key");var S=t.enterKey(p._baseState.key);if(typeof e!="object")return t.error("Child expected, but input is not object");var q=p._encode(e[p._baseState.key],t,e);return t.leaveKey(S),q},this).filter(function(p){return p}),i=this._createEncoderBuffer(i);else if(a.tag==="seqof"||a.tag==="setof"){if(!(a.args&&a.args.length===1))return t.error("Too many args for : "+a.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var c=this.clone();c._baseState.implicit=null,i=this._createEncoderBuffer(e.map(function(p){var S=this._baseState;return this._getUse(S.args[0],e)._encode(p,t)},c))}else a.use!==null?o=this._getUse(a.use,f)._encode(e,t):(i=this._encodePrimitive(a.tag,e),d=!0);var o;if(!a.any&&a.choice===null){var l=a.implicit!==null?a.implicit:a.tag,b=a.implicit===null?"universal":"context";l===null?a.use===null&&t.error("Tag could be omitted only for .use()"):a.use===null&&(o=this._encodeComposite(l,d,b,i))}return a.explicit!==null&&(o=this._encodeComposite(a.explicit,!1,"context",o)),o};U.prototype._encodeChoice=function(e,t){var f=this._baseState,a=f.choice[e.type];return a||$e(!1,e.type+" not found in "+JSON.stringify(Object.keys(f.choice))),a._encode(e.value,t)};U.prototype._encodePrimitive=function(e,t){var f=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if(e==="objid"&&f.args)return this._encodeObjid(t,f.reverseArgs[0],f.args[1]);if(e==="objid")return this._encodeObjid(t,null,null);if(e==="gentime"||e==="utctime")return this._encodeTime(t,e);if(e==="null_")return this._encodeNull();if(e==="int"||e==="enum")return this._encodeInt(t,f.args&&f.reverseArgs[0]);if(e==="bool")return this._encodeBool(t);if(e==="objDesc")return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)};U.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)};U.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}});var lf=B(Bo=>{g();x();var Na=Bo;Na.Reporter=Ao().Reporter;Na.DecoderBuffer=Td().DecoderBuffer;Na.EncoderBuffer=Td().EncoderBuffer;Na.Node=Eo()});var Ro=B(Ct=>{g();x();var Po=Od();Ct.tagClass={0:"universal",1:"application",2:"context",3:"private"};Ct.tagClassByName=Po._reverse(Ct.tagClass);Ct.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"};Ct.tagByName=Po._reverse(Ct.tag)});var Od=B(ko=>{g();x();var Co=ko;Co._reverse=function(e){var t={};return Object.keys(e).forEach(function(f){(f|0)==f&&(f=f|0);var a=e[f];t[a]=f}),t};Co.der=Ro()});var Fd=B((Y7,To)=>{g();x();var a4=H(),Ld=uf(),Ta=Ld.base,i4=Ld.bignum,Do=Ld.constants.der;function zo(r){this.enc="der",this.name=r.name,this.entity=r,this.tree=new dr,this.tree._init(r.body)}To.exports=zo;zo.prototype.decode=function(e,t){return e instanceof Ta.DecoderBuffer||(e=new Ta.DecoderBuffer(e,t)),this.tree._decode(e,t)};function dr(r){Ta.Node.call(this,"der",r)}a4(dr,Ta.Node);dr.prototype._peekTag=function(e,t,f){if(e.isEmpty())return!1;var a=e.save(),i=jd(e,'Failed to peek tag: "'+t+'"');return e.isError(i)?i:(e.restore(a),i.tag===t||i.tagStr===t||i.tagStr+"of"===t||f)};dr.prototype._decodeTag=function(e,t,f){var a=jd(e,'Failed to decode tag of "'+t+'"');if(e.isError(a))return a;var i=No(e,a.primitive,'Failed to get length of "'+t+'"');if(e.isError(i))return i;if(!f&&a.tag!==t&&a.tagStr!==t&&a.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(a.primitive||i!==null)return e.skip(i,'Failed to match body of: "'+t+'"');var d=e.save(),c=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(c)?c:(i=e.offset-d.offset,e.restore(d),e.skip(i,'Failed to match body of: "'+t+'"'))};dr.prototype._skipUntilEnd=function(e,t){for(;;){var f=jd(e,t);if(e.isError(f))return f;var a=No(e,f.primitive,t);if(e.isError(a))return a;var i;if(f.primitive||a!==null?i=e.skip(a):i=this._skipUntilEnd(e,t),e.isError(i))return i;if(f.tagStr==="end")break}};dr.prototype._decodeList=function(e,t,f,a){for(var i=[];!e.isEmpty();){var d=this._peekTag(e,"end");if(e.isError(d))return d;var c=f.decode(e,"der",a);if(e.isError(c)&&d)break;i.push(c)}return i};dr.prototype._decodeStr=function(e,t){if(t==="bitstr"){var f=e.readUInt8();return e.isError(f)?f:{unused:f,data:e.raw()}}else if(t==="bmpstr"){var a=e.raw();if(a.length%2===1)return e.error("Decoding of string type: bmpstr length mismatch");for(var i="",d=0;d<a.length/2;d++)i+=String.fromCharCode(a.readUInt16BE(d*2));return i}else if(t==="numstr"){var c=e.raw().toString("ascii");return this._isNumstr(c)?c:e.error("Decoding of string type: numstr unsupported characters")}else{if(t==="octstr")return e.raw();if(t==="objDesc")return e.raw();if(t==="printstr"){var o=e.raw().toString("ascii");return this._isPrintstr(o)?o:e.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported")}};dr.prototype._decodeObjid=function(e,t,f){for(var a,i=[],d=0;!e.isEmpty();){var c=e.readUInt8();d<<=7,d|=c&127,(c&128)===0&&(i.push(d),d=0)}c&128&&i.push(d);var o=i[0]/40|0,l=i[0]%40;if(f?a=i:a=[o,l].concat(i.slice(1)),t){var b=t[a.join(" ")];b===void 0&&(b=t[a.join(".")]),b!==void 0&&(a=b)}return a};dr.prototype._decodeTime=function(e,t){var f=e.raw().toString();if(t==="gentime")var a=f.slice(0,4)|0,i=f.slice(4,6)|0,d=f.slice(6,8)|0,c=f.slice(8,10)|0,o=f.slice(10,12)|0,l=f.slice(12,14)|0;else if(t==="utctime"){var a=f.slice(0,2)|0,i=f.slice(2,4)|0,d=f.slice(4,6)|0,c=f.slice(6,8)|0,o=f.slice(8,10)|0,l=f.slice(10,12)|0;a<70?a=2e3+a:a=1900+a}else return e.error("Decoding "+t+" time is not supported yet");return Date.UTC(a,i-1,d,c,o,l,0)};dr.prototype._decodeNull=function(e){return null};dr.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:t!==0};dr.prototype._decodeInt=function(e,t){var f=e.raw(),a=new i4(f);return t&&(a=t[a.toString(10)]||a),a};dr.prototype._use=function(e,t){return typeof e=="function"&&(e=e(t)),e._getDecoder("der").tree};function jd(r,e){var t=r.readUInt8(e);if(r.isError(t))return t;var f=Do.tagClass[t>>6],a=(t&32)===0;if((t&31)===31){var i=t;for(t=0;(i&128)===128;){if(i=r.readUInt8(e),r.isError(i))return i;t<<=7,t|=i&127}}else t&=31;var d=Do.tag[t];return{cls:f,primitive:a,tag:t,tagStr:d}}function No(r,e,t){var f=r.readUInt8(t);if(r.isError(f))return f;if(!e&&f===128)return null;if((f&128)===0)return f;var a=f&127;if(a>4)return r.error("length octect is too long");f=0;for(var i=0;i<a;i++){f<<=8;var d=r.readUInt8(t);if(r.isError(d))return d;f|=d}return f}});var Lo=B((Q7,Oo)=>{g();x();var d4=H(),n4=Jf().Buffer,Kd=Fd();function Ud(r){Kd.call(this,r),this.enc="pem"}d4(Ud,Kd);Oo.exports=Ud;Ud.prototype.decode=function(e,t){for(var f=e.toString().split(/[\r\n]+/g),a=t.label.toUpperCase(),i=/^-----(BEGIN|END) ([^-]+)-----$/,d=-1,c=-1,o=0;o<f.length;o++){var l=f[o].match(i);if(l!==null&&l[2]===a)if(d===-1){if(l[1]!=="BEGIN")break;d=o}else{if(l[1]!=="END")break;c=o;break}}if(d===-1||c===-1)throw new Error("PEM section not found for: "+a);var b=f.slice(d+1,c).join("");b.replace(/[^a-z0-9\+\/=]+/gi,"");var p=new n4(b,"base64");return Kd.prototype.decode.call(this,p,t)}});var Ko=B(Fo=>{g();x();var jo=Fo;jo.der=Fd();jo.pem=Lo()});var Xd=B((iv,Jo)=>{g();x();var c4=H(),rt=Jf().Buffer,Uo=uf(),Ho=Uo.base,Hd=Uo.constants.der;function Xo(r){this.enc="der",this.name=r.name,this.entity=r,this.tree=new Br,this.tree._init(r.body)}Jo.exports=Xo;Xo.prototype.encode=function(e,t){return this.tree._encode(e,t).join()};function Br(r){Ho.Node.call(this,"der",r)}c4(Br,Ho.Node);Br.prototype._encodeComposite=function(e,t,f,a){var i=s4(e,t,f,this.reporter);if(a.length<128){var o=new rt(2);return o[0]=i,o[1]=a.length,this._createEncoderBuffer([o,a])}for(var d=1,c=a.length;c>=256;c>>=8)d++;var o=new rt(1+1+d);o[0]=i,o[1]=128|d;for(var c=1+d,l=a.length;l>0;c--,l>>=8)o[c]=l&255;return this._createEncoderBuffer([o,a])};Br.prototype._encodeStr=function(e,t){if(t==="bitstr")return this._createEncoderBuffer([e.unused|0,e.data]);if(t==="bmpstr"){for(var f=new rt(e.length*2),a=0;a<e.length;a++)f.writeUInt16BE(e.charCodeAt(a),a*2);return this._createEncoderBuffer(f)}else return t==="numstr"?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):t==="printstr"?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)?this._createEncoderBuffer(e):t==="objDesc"?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported")};Br.prototype._encodeObjid=function(e,t,f){if(typeof e=="string"){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s\.]+/g);for(var a=0;a<e.length;a++)e[a]|=0}else if(Array.isArray(e)){e=e.slice();for(var a=0;a<e.length;a++)e[a]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!f){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,e[0]*40+e[1])}for(var i=0,a=0;a<e.length;a++){var d=e[a];for(i++;d>=128;d>>=7)i++}for(var c=new rt(i),o=c.length-1,a=e.length-1;a>=0;a--){var d=e[a];for(c[o--]=d&127;(d>>=7)>0;)c[o--]=128|d&127}return this._createEncoderBuffer(c)};function yr(r){return r<10?"0"+r:r}Br.prototype._encodeTime=function(e,t){var f,a=new Date(e);return t==="gentime"?f=[yr(a.getFullYear()),yr(a.getUTCMonth()+1),yr(a.getUTCDate()),yr(a.getUTCHours()),yr(a.getUTCMinutes()),yr(a.getUTCSeconds()),"Z"].join(""):t==="utctime"?f=[yr(a.getFullYear()%100),yr(a.getUTCMonth()+1),yr(a.getUTCDate()),yr(a.getUTCHours()),yr(a.getUTCMinutes()),yr(a.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(f,"octstr")};Br.prototype._encodeNull=function(){return this._createEncoderBuffer("")};Br.prototype._encodeInt=function(e,t){if(typeof e=="string"){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if(typeof e!="number"&&!rt.isBuffer(e)){var f=e.toArray();!e.sign&&f[0]&128&&f.unshift(0),e=new rt(f)}if(rt.isBuffer(e)){var a=e.length;e.length===0&&a++;var d=new rt(a);return e.copy(d),e.length===0&&(d[0]=0),this._createEncoderBuffer(d)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);for(var a=1,i=e;i>=256;i>>=8)a++;for(var d=new Array(a),i=d.length-1;i>=0;i--)d[i]=e&255,e>>=8;return d[0]&128&&d.unshift(0),this._createEncoderBuffer(new rt(d))};Br.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)};Br.prototype._use=function(e,t){return typeof e=="function"&&(e=e(t)),e._getEncoder("der").tree};Br.prototype._skipDefault=function(e,t,f){var a=this._baseState,i;if(a.default===null)return!1;var d=e.join();if(a.defaultBuffer===void 0&&(a.defaultBuffer=this._encodeValue(a.default,t,f).join()),d.length!==a.defaultBuffer.length)return!1;for(i=0;i<d.length;i++)if(d[i]!==a.defaultBuffer[i])return!1;return!0};function s4(r,e,t,f){var a;if(r==="seqof"?r="seq":r==="setof"&&(r="set"),Hd.tagByName.hasOwnProperty(r))a=Hd.tagByName[r];else if(typeof r=="number"&&(r|0)===r)a=r;else return f.error("Unknown tag: "+r);return a>=31?f.error("Multi-octet tag encoding unsupported"):(e||(a|=32),a|=Hd.tagClassByName[t||"universal"]<<6,a)}});var Wo=B((cv,Vo)=>{g();x();var o4=H(),Jd=Xd();function Vd(r){Jd.call(this,r),this.enc="pem"}o4(Vd,Jd);Vo.exports=Vd;Vd.prototype.encode=function(e,t){for(var f=Jd.prototype.encode.call(this,e),a=f.toString("base64"),i=["-----BEGIN "+t.label+"-----"],d=0;d<a.length;d+=64)i.push(a.slice(d,d+64));return i.push("-----END "+t.label+"-----"),i.join(`
|
|
`)}});var Zo=B(Yo=>{g();x();var Go=Yo;Go.der=Xd();Go.pem=Wo()});var uf=B($o=>{g();x();var vf=$o;vf.bignum=K();vf.define=So().define;vf.base=lf();vf.constants=Od();vf.decoders=Ko();vf.encoders=Zo()});var th=B((yv,rh)=>{"use strict";g();x();var Pr=uf(),Qo=Pr.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),h4=Pr.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),Wd=Pr.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional())}),u4=Pr.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(Wd),this.key("subjectPublicKey").bitstr())}),b4=Pr.define("RelativeDistinguishedName",function(){this.setof(h4)}),l4=Pr.define("RDNSequence",function(){this.seqof(b4)}),eh=Pr.define("Name",function(){this.choice({rdnSequence:this.use(l4)})}),v4=Pr.define("Validity",function(){this.seq().obj(this.key("notBefore").use(Qo),this.key("notAfter").use(Qo))}),p4=Pr.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),y4=Pr.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int(),this.key("serialNumber").int(),this.key("signature").use(Wd),this.key("issuer").use(eh),this.key("validity").use(v4),this.key("subject").use(eh),this.key("subjectPublicKeyInfo").use(u4),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(p4).optional())}),m4=Pr.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(y4),this.key("signatureAlgorithm").use(Wd),this.key("signatureValue").bitstr())});rh.exports=m4});var ah=B(Cr=>{"use strict";g();x();var Rr=uf();Cr.certificate=th();var g4=Rr.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});Cr.RSAPrivateKey=g4;var x4=Rr.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});Cr.RSAPublicKey=x4;var w4=Rr.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(fh),this.key("subjectPublicKey").bitstr())});Cr.PublicKey=w4;var fh=Rr.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),_4=Rr.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(fh),this.key("subjectPrivateKey").octstr())});Cr.PrivateKey=_4;var S4=Rr.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});Cr.EncryptedPrivateKey=S4;var M4=Rr.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});Cr.DSAPrivateKey=M4;Cr.DSAparam=Rr.define("DSAparam",function(){this.int()});var A4=Rr.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(q4),this.key("publicKey").optional().explicit(1).bitstr())});Cr.ECPrivateKey=A4;var q4=Rr.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});Cr.signature=Rr.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})});var ih=B((Sv,I4)=>{I4.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}});var nh=B((Mv,dh)=>{g();x();var E4=/Proc-Type: 4,ENCRYPTED\n\r?DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)\n\r?\n\r?([0-9A-z\n\r\+\/\=]+)\n\r?/m,B4=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----\n/m,P4=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----\n\r?([0-9A-z\n\r\+\/\=]+)\n\r?-----END \1-----$/m,R4=Mf(),C4=ca();dh.exports=function(r,e){var t=r.toString(),f=t.match(E4),a;if(f){var d="aes"+f[1],c=new A.Buffer(f[2],"hex"),o=new A.Buffer(f[3].replace(/\r?\n/g,""),"base64"),l=R4(e,c.slice(0,8),parseInt(f[1],10)).key,b=[],p=C4.createDecipheriv(d,l,c);b.push(p.update(o)),b.push(p.final()),a=A.Buffer.concat(b)}else{var i=t.match(P4);a=new A.Buffer(i[2].replace(/\r?\n/g,""),"base64")}var S=t.match(B4)[1];return{tag:S,data:a}}});var Tf=B((Iv,sh)=>{g();x();var fr=ah(),k4=ih(),D4=nh(),z4=ca(),N4=Ti();sh.exports=ch;function ch(r){var e;typeof r=="object"&&!A.Buffer.isBuffer(r)&&(e=r.passphrase,r=r.key),typeof r=="string"&&(r=new A.Buffer(r));var t=D4(r,e),f=t.tag,a=t.data,i,d;switch(f){case"CERTIFICATE":d=fr.certificate.decode(a,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(d||(d=fr.PublicKey.decode(a,"der")),i=d.algorithm.algorithm.join("."),i){case"1.2.840.113549.1.1.1":return fr.RSAPublicKey.decode(d.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return d.subjectPrivateKey=d.subjectPublicKey,{type:"ec",data:d};case"1.2.840.10040.4.1":return d.algorithm.params.pub_key=fr.DSAparam.decode(d.subjectPublicKey.data,"der"),{type:"dsa",data:d.algorithm.params};default:throw new Error("unknown key id "+i)}throw new Error("unknown key type "+f);case"ENCRYPTED PRIVATE KEY":a=fr.EncryptedPrivateKey.decode(a,"der"),a=T4(a,e);case"PRIVATE KEY":switch(d=fr.PrivateKey.decode(a,"der"),i=d.algorithm.algorithm.join("."),i){case"1.2.840.113549.1.1.1":return fr.RSAPrivateKey.decode(d.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:d.algorithm.curve,privateKey:fr.ECPrivateKey.decode(d.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return d.algorithm.params.priv_key=fr.DSAparam.decode(d.subjectPrivateKey,"der"),{type:"dsa",params:d.algorithm.params};default:throw new Error("unknown key id "+i)}throw new Error("unknown key type "+f);case"RSA PUBLIC KEY":return fr.RSAPublicKey.decode(a,"der");case"RSA PRIVATE KEY":return fr.RSAPrivateKey.decode(a,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:fr.DSAPrivateKey.decode(a,"der")};case"EC PRIVATE KEY":return a=fr.ECPrivateKey.decode(a,"der"),{curve:a.parameters.value,privateKey:a.privateKey};default:throw new Error("unknown key type "+f)}}ch.signature=fr.signature;function T4(r,e){var t=r.algorithm.decrypt.kde.kdeparams.salt,f=parseInt(r.algorithm.decrypt.kde.kdeparams.iters.toString(),10),a=k4[r.algorithm.decrypt.cipher.algo.join(".")],i=r.algorithm.decrypt.cipher.iv,d=r.subjectPrivateKey,c=parseInt(a.split("-")[1],10)/8,o=N4.pbkdf2Sync(e,t,f,c),l=z4.createDecipheriv(a,o,i),b=[];return b.push(l.update(d)),b.push(l.final()),A.Buffer.concat(b)}});var Gd=B((Pv,O4)=>{O4.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}});var uh=B((Rv,La)=>{g();x();var kt=Ei(),L4=va(),j4=Cd().ec,Oa=K(),F4=Tf(),K4=Gd();function U4(r,e,t,f,a){var i=F4(e);if(i.curve){if(f!=="ecdsa"&&f!=="ecdsa/rsa")throw new Error("wrong private key type");return H4(r,i)}else if(i.type==="dsa"){if(f!=="dsa")throw new Error("wrong private key type");return X4(r,i,t)}else if(f!=="rsa"&&f!=="ecdsa/rsa")throw new Error("wrong private key type");r=A.Buffer.concat([a,r]);for(var d=i.modulus.byteLength(),c=[0,1];r.length+c.length+1<d;)c.push(255);c.push(0);for(var o=-1;++o<r.length;)c.push(r[o]);var l=L4(c,i);return l}function H4(r,e){var t=K4[e.curve.join(".")];if(!t)throw new Error("unknown curve "+e.curve.join("."));var f=new j4(t),a=f.keyFromPrivate(e.privateKey),i=a.sign(r);return new A.Buffer(i.toDER())}function X4(r,e,t){for(var f=e.params.priv_key,a=e.params.p,i=e.params.q,d=e.params.g,c=new Oa(0),o,l=Yd(r,i).mod(i),b=!1,p=oh(f,i,r,t);b===!1;)o=hh(i,p,t),c=W4(d,o,a,i),b=o.invm(i).imul(l.add(f.mul(c))).mod(i),b.cmpn(0)===0&&(b=!1,c=new Oa(0));return J4(c,b)}function J4(r,e){r=r.toArray(),e=e.toArray(),r[0]&128&&(r=[0].concat(r)),e[0]&128&&(e=[0].concat(e));var t=r.length+e.length+4,f=[48,t,2,r.length];return f=f.concat(r,[2,e.length],e),new A.Buffer(f)}function oh(r,e,t,f){if(r=new A.Buffer(r.toArray()),r.length<e.byteLength()){var a=new A.Buffer(e.byteLength()-r.length);a.fill(0),r=A.Buffer.concat([a,r])}var i=t.length,d=V4(t,e),c=new A.Buffer(i);c.fill(1);var o=new A.Buffer(i);return o.fill(0),o=kt(f,o).update(c).update(new A.Buffer([0])).update(r).update(d).digest(),c=kt(f,o).update(c).digest(),o=kt(f,o).update(c).update(new A.Buffer([1])).update(r).update(d).digest(),c=kt(f,o).update(c).digest(),{k:o,v:c}}function Yd(r,e){var t=new Oa(r),f=(r.length<<3)-e.bitLength();return f>0&&t.ishrn(f),t}function V4(r,e){r=Yd(r,e),r=r.mod(e);var t=new A.Buffer(r.toArray());if(t.length<e.byteLength()){var f=new A.Buffer(e.byteLength()-t.length);f.fill(0),t=A.Buffer.concat([f,t])}return t}function hh(r,e,t){var f,a;do{for(f=new A.Buffer(0);f.length*8<r.bitLength();)e.v=kt(t,e.k).update(e.v).digest(),f=A.Buffer.concat([f,e.v]);a=Yd(f,r),e.k=kt(t,e.k).update(e.v).update(new A.Buffer([0])).digest(),e.v=kt(t,e.k).update(e.v).digest()}while(a.cmp(r)!==-1);return a}function W4(r,e,t,f){return r.toRed(Oa.mont(t)).redPow(e).fromRed().mod(f)}La.exports=U4;La.exports.getKey=oh;La.exports.makeKey=hh});var ph=B((Dv,vh)=>{g();x();var Of=K(),G4=Cd().ec,lh=Tf(),Y4=Gd();function Z4(r,e,t,f,a){var i=lh(t);if(i.type==="ec"){if(f!=="ecdsa"&&f!=="ecdsa/rsa")throw new Error("wrong public key type");return $4(r,e,i)}else if(i.type==="dsa"){if(f!=="dsa")throw new Error("wrong public key type");return Q4(r,e,i)}else if(f!=="rsa"&&f!=="ecdsa/rsa")throw new Error("wrong public key type");e=A.Buffer.concat([a,e]);for(var d=i.modulus.byteLength(),c=[1],o=0;e.length+c.length+2<d;)c.push(255),o++;c.push(0);for(var l=-1;++l<e.length;)c.push(e[l]);c=new A.Buffer(c);var b=Of.mont(i.modulus);r=new Of(r).toRed(b),r=r.redPow(new Of(i.publicExponent)),r=new A.Buffer(r.fromRed().toArray());var p=o<8?1:0;for(d=Math.min(r.length,c.length),r.length!==c.length&&(p=1),l=-1;++l<d;)p|=r[l]^c[l];return p===0}function $4(r,e,t){var f=Y4[t.data.algorithm.curve.join(".")];if(!f)throw new Error("unknown curve "+t.data.algorithm.curve.join("."));var a=new G4(f),i=t.data.subjectPrivateKey.data;return a.verify(e,r,i)}function Q4(r,e,t){var f=t.data.p,a=t.data.q,i=t.data.g,d=t.data.pub_key,c=lh.signature.decode(r,"der"),o=c.s,l=c.r;bh(o,a),bh(l,a);var b=Of.mont(f),p=o.invm(a),S=i.toRed(b).redPow(new Of(e).mul(p).mod(a)).fromRed().mul(d.toRed(b).redPow(l.mul(p).mod(a)).fromRed()).mod(f).mod(a);return S.cmp(l)===0}function bh(r,e){if(r.cmpn(0)<=0)throw new Error("invalid sig");if(r.cmp(e)>=e)throw new Error("invalid sig")}vh.exports=Z4});var _h=B((Tv,wh)=>{g();x();var gh=Kt(),ja=Nn(),xh=H(),e3=uh(),r3=ph(),Dt=Bi();Object.keys(Dt).forEach(function(r){Dt[r].id=new A.Buffer(Dt[r].id,"hex"),Dt[r.toLowerCase()]=Dt[r]});function Lf(r){ja.Writable.call(this);var e=Dt[r];if(!e)throw new Error("Unknown message digest");this._hashType=e.hash,this._hash=gh(e.hash),this._tag=e.id,this._signType=e.sign}xh(Lf,ja.Writable);Lf.prototype._write=function(e,t,f){this._hash.update(e),f()};Lf.prototype.update=function(e,t){return typeof e=="string"&&(e=new A.Buffer(e,t)),this._hash.update(e),this};Lf.prototype.sign=function(e,t){this.end();var f=this._hash.digest(),a=e3(f,e,this._hashType,this._signType,this._tag);return t?a.toString(t):a};function jf(r){ja.Writable.call(this);var e=Dt[r];if(!e)throw new Error("Unknown message digest");this._hash=gh(e.hash),this._tag=e.id,this._signType=e.sign}xh(jf,ja.Writable);jf.prototype._write=function(e,t,f){this._hash.update(e),f()};jf.prototype.update=function(e,t){return typeof e=="string"&&(e=new A.Buffer(e,t)),this._hash.update(e),this};jf.prototype.verify=function(e,t,f){typeof t=="string"&&(t=new A.Buffer(t,f)),this.end();var a=this._hash.digest();return r3(t,a,e,this._signType,this._tag)};function yh(r){return new Lf(r)}function mh(r){return new jf(r)}wh.exports={Sign:yh,Verify:mh,createSign:yh,createVerify:mh}});var Sh=B((jv,t3)=>{t3.exports={name:"elliptic",version:"6.5.4",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny <fedor@indutny.com>",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}});var nr=B(Mh=>{"use strict";g();x();var kr=Mh,f3=K(),a3=er(),Fa=ya();kr.assert=a3;kr.toArray=Fa.toArray;kr.zero2=Fa.zero2;kr.toHex=Fa.toHex;kr.encode=Fa.encode;function i3(r,e,t){var f=new Array(Math.max(r.bitLength(),t)+1);f.fill(0);for(var a=1<<e+1,i=r.clone(),d=0;d<f.length;d++){var c,o=i.andln(a-1);i.isOdd()?(o>(a>>1)-1?c=(a>>1)-o:c=o,i.isubn(c)):c=0,f[d]=c,i.iushrn(1)}return f}kr.getNAF=i3;function d3(r,e){var t=[[],[]];r=r.clone(),e=e.clone();for(var f=0,a=0,i;r.cmpn(-f)>0||e.cmpn(-a)>0;){var d=r.andln(3)+f&3,c=e.andln(3)+a&3;d===3&&(d=-1),c===3&&(c=-1);var o;(d&1)===0?o=0:(i=r.andln(7)+f&7,(i===3||i===5)&&c===2?o=-d:o=d),t[0].push(o);var l;(c&1)===0?l=0:(i=e.andln(7)+a&7,(i===3||i===5)&&d===2?l=-c:l=c),t[1].push(l),2*f===o+1&&(f=1-f),2*a===l+1&&(a=1-a),r.iushrn(1),e.iushrn(1)}return t}kr.getJSF=d3;function n3(r,e,t){var f="_"+e;r.prototype[e]=function(){return this[f]!==void 0?this[f]:this[f]=t.call(this)}}kr.cachedProperty=n3;function c3(r){return typeof r=="string"?kr.toArray(r,"hex"):r}kr.parseBytes=c3;function s3(r){return new f3(r,"hex","le")}kr.intFromLE=s3});var Kf=B((Hv,Ah)=>{"use strict";g();x();var zt=K(),Ff=nr(),Ka=Ff.getNAF,o3=Ff.getJSF,Ua=Ff.assert;function bt(r,e){this.type=r,this.p=new zt(e.p,16),this.red=e.prime?zt.red(e.prime):zt.mont(this.p),this.zero=new zt(0).toRed(this.red),this.one=new zt(1).toRed(this.red),this.two=new zt(2).toRed(this.red),this.n=e.n&&new zt(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))}Ah.exports=bt;bt.prototype.point=function(){throw new Error("Not implemented")};bt.prototype.validate=function(){throw new Error("Not implemented")};bt.prototype._fixedNafMul=function(e,t){Ua(e.precomputed);var f=e._getDoubles(),a=Ka(t,1,this._bitLength),i=(1<<f.step+1)-(f.step%2===0?2:1);i/=3;var d=[],c,o;for(c=0;c<a.length;c+=f.step){o=0;for(var l=c+f.step-1;l>=c;l--)o=(o<<1)+a[l];d.push(o)}for(var b=this.jpoint(null,null,null),p=this.jpoint(null,null,null),S=i;S>0;S--){for(c=0;c<d.length;c++)o=d[c],o===S?p=p.mixedAdd(f.points[c]):o===-S&&(p=p.mixedAdd(f.points[c].neg()));b=b.add(p)}return b.toP()};bt.prototype._wnafMul=function(e,t){var f=4,a=e._getNAFPoints(f);f=a.wnd;for(var i=a.points,d=Ka(t,f,this._bitLength),c=this.jpoint(null,null,null),o=d.length-1;o>=0;o--){for(var l=0;o>=0&&d[o]===0;o--)l++;if(o>=0&&l++,c=c.dblp(l),o<0)break;var b=d[o];Ua(b!==0),e.type==="affine"?b>0?c=c.mixedAdd(i[b-1>>1]):c=c.mixedAdd(i[-b-1>>1].neg()):b>0?c=c.add(i[b-1>>1]):c=c.add(i[-b-1>>1].neg())}return e.type==="affine"?c.toP():c};bt.prototype._wnafMulAdd=function(e,t,f,a,i){var d=this._wnafT1,c=this._wnafT2,o=this._wnafT3,l=0,b,p,S;for(b=0;b<a;b++){S=t[b];var q=S._getNAFPoints(e);d[b]=q.wnd,c[b]=q.points}for(b=a-1;b>=1;b-=2){var E=b-1,P=b;if(d[E]!==1||d[P]!==1){o[E]=Ka(f[E],d[E],this._bitLength),o[P]=Ka(f[P],d[P],this._bitLength),l=Math.max(o[E].length,l),l=Math.max(o[P].length,l);continue}var C=[t[E],null,null,t[P]];t[E].y.cmp(t[P].y)===0?(C[1]=t[E].add(t[P]),C[2]=t[E].toJ().mixedAdd(t[P].neg())):t[E].y.cmp(t[P].y.redNeg())===0?(C[1]=t[E].toJ().mixedAdd(t[P]),C[2]=t[E].add(t[P].neg())):(C[1]=t[E].toJ().mixedAdd(t[P]),C[2]=t[E].toJ().mixedAdd(t[P].neg()));var R=[-3,-1,-5,-7,0,7,5,1,3],N=o3(f[E],f[P]);for(l=Math.max(N[0].length,l),o[E]=new Array(l),o[P]=new Array(l),p=0;p<l;p++){var Y=N[0][p]|0,Xe=N[1][p]|0;o[E][p]=R[(Y+1)*3+(Xe+1)],o[P][p]=0,c[E]=C}}var j=this.jpoint(null,null,null),ee=this._wnafT4;for(b=l;b>=0;b--){for(var L=0;b>=0;){var Ne=!0;for(p=0;p<a;p++)ee[p]=o[p][b]|0,ee[p]!==0&&(Ne=!1);if(!Ne)break;L++,b--}if(b>=0&&L++,j=j.dblp(L),b<0)break;for(p=0;p<a;p++){var _=ee[p];_!==0&&(_>0?S=c[p][_-1>>1]:_<0&&(S=c[p][-_-1>>1].neg()),S.type==="affine"?j=j.mixedAdd(S):j=j.add(S))}}for(b=0;b<a;b++)c[b]=null;return i?j:j.toP()};function mr(r,e){this.curve=r,this.type=e,this.precomputed=null}bt.BasePoint=mr;mr.prototype.eq=function(){throw new Error("Not implemented")};mr.prototype.validate=function(){return this.curve.validate(this)};bt.prototype.decodePoint=function(e,t){e=Ff.toArray(e,t);var f=this.p.byteLength();if((e[0]===4||e[0]===6||e[0]===7)&&e.length-1===2*f){e[0]===6?Ua(e[e.length-1]%2===0):e[0]===7&&Ua(e[e.length-1]%2===1);var a=this.point(e.slice(1,1+f),e.slice(1+f,1+2*f));return a}else if((e[0]===2||e[0]===3)&&e.length-1===f)return this.pointFromX(e.slice(1,1+f),e[0]===3);throw new Error("Unknown point format")};mr.prototype.encodeCompressed=function(e){return this.encode(e,!0)};mr.prototype._encode=function(e){var t=this.curve.p.byteLength(),f=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(f):[4].concat(f,this.getY().toArray("be",t))};mr.prototype.encode=function(e,t){return Ff.encode(this._encode(t),e)};mr.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};mr.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};mr.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var f=[this],a=this,i=0;i<t;i+=e){for(var d=0;d<e;d++)a=a.dbl();f.push(a)}return{step:e,points:f}};mr.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],f=(1<<e)-1,a=f===1?null:this.dbl(),i=1;i<f;i++)t[i]=t[i-1].add(a);return{wnd:e,points:t}};mr.prototype._getBeta=function(){return null};mr.prototype.dblp=function(e){for(var t=this,f=0;f<e;f++)t=t.dbl();return t}});var Ih=B((Vv,qh)=>{"use strict";g();x();var h3=nr(),Q=K(),Zd=H(),pf=Kf(),u3=h3.assert;function gr(r){pf.call(this,"short",r),this.a=new Q(r.a,16).toRed(this.red),this.b=new Q(r.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(r),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}Zd(gr,pf);qh.exports=gr;gr.prototype._getEndomorphism=function(e){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var t,f;if(e.beta)t=new Q(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)f=new Q(e.lambda,16);else{var i=this._getEndoRoots(this.n);this.g.mul(i[0]).x.cmp(this.g.x.redMul(t))===0?f=i[0]:(f=i[1],u3(this.g.mul(f).x.cmp(this.g.x.redMul(t))===0))}var d;return e.basis?d=e.basis.map(function(c){return{a:new Q(c.a,16),b:new Q(c.b,16)}}):d=this._getEndoBasis(f),{beta:t,lambda:f,basis:d}}};gr.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:Q.mont(e),f=new Q(2).toRed(t).redInvm(),a=f.redNeg(),i=new Q(3).toRed(t).redNeg().redSqrt().redMul(f),d=a.redAdd(i).fromRed(),c=a.redSub(i).fromRed();return[d,c]};gr.prototype._getEndoBasis=function(e){for(var t=this.n.ushrn(Math.floor(this.n.bitLength()/2)),f=e,a=this.n.clone(),i=new Q(1),d=new Q(0),c=new Q(0),o=new Q(1),l,b,p,S,q,E,P,C=0,R,N;f.cmpn(0)!==0;){var Y=a.div(f);R=a.sub(Y.mul(f)),N=c.sub(Y.mul(i));var Xe=o.sub(Y.mul(d));if(!p&&R.cmp(t)<0)l=P.neg(),b=i,p=R.neg(),S=N;else if(p&&++C===2)break;P=R,a=f,f=R,c=i,i=N,o=d,d=Xe}q=R.neg(),E=N;var j=p.sqr().add(S.sqr()),ee=q.sqr().add(E.sqr());return ee.cmp(j)>=0&&(q=l,E=b),p.negative&&(p=p.neg(),S=S.neg()),q.negative&&(q=q.neg(),E=E.neg()),[{a:p,b:S},{a:q,b:E}]};gr.prototype._endoSplit=function(e){var t=this.endo.basis,f=t[0],a=t[1],i=a.b.mul(e).divRound(this.n),d=f.b.neg().mul(e).divRound(this.n),c=i.mul(f.a),o=d.mul(a.a),l=i.mul(f.b),b=d.mul(a.b),p=e.sub(c).sub(o),S=l.add(b).neg();return{k1:p,k2:S}};gr.prototype.pointFromX=function(e,t){e=new Q(e,16),e.red||(e=e.toRed(this.red));var f=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),a=f.redSqrt();if(a.redSqr().redSub(f).cmp(this.zero)!==0)throw new Error("invalid point");var i=a.fromRed().isOdd();return(t&&!i||!t&&i)&&(a=a.redNeg()),this.point(e,a)};gr.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,f=e.y,a=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(a).redIAdd(this.b);return f.redSqr().redISub(i).cmpn(0)===0};gr.prototype._endoWnafMulAdd=function(e,t,f){for(var a=this._endoWnafT1,i=this._endoWnafT2,d=0;d<e.length;d++){var c=this._endoSplit(t[d]),o=e[d],l=o._getBeta();c.k1.negative&&(c.k1.ineg(),o=o.neg(!0)),c.k2.negative&&(c.k2.ineg(),l=l.neg(!0)),a[d*2]=o,a[d*2+1]=l,i[d*2]=c.k1,i[d*2+1]=c.k2}for(var b=this._wnafMulAdd(1,a,i,d*2,f),p=0;p<d*2;p++)a[p]=null,i[p]=null;return b};function Ke(r,e,t,f){pf.BasePoint.call(this,r,"affine"),e===null&&t===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new Q(e,16),this.y=new Q(t,16),f&&(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)}Zd(Ke,pf.BasePoint);gr.prototype.point=function(e,t,f){return new Ke(this,e,t,f)};gr.prototype.pointFromJSON=function(e,t){return Ke.fromJSON(this,e,t)};Ke.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 f=this.curve,a=function(i){return f.point(i.x.redMul(f.endo.beta),i.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}};Ke.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]};Ke.fromJSON=function(e,t,f){typeof t=="string"&&(t=JSON.parse(t));var a=e.point(t[0],t[1],f);if(!t[2])return a;function i(c){return e.point(c[0],c[1],f)}var d=t[2];return a.precomputed={beta:null,doubles:d.doubles&&{step:d.doubles.step,points:[a].concat(d.doubles.points.map(i))},naf:d.naf&&{wnd:d.naf.wnd,points:[a].concat(d.naf.points.map(i))}},a};Ke.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)+">"};Ke.prototype.isInfinity=function(){return this.inf};Ke.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 f=t.redSqr().redISub(this.x).redISub(e.x),a=t.redMul(this.x.redSub(f)).redISub(this.y);return this.curve.point(f,a)};Ke.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,f=this.x.redSqr(),a=e.redInvm(),i=f.redAdd(f).redIAdd(f).redIAdd(t).redMul(a),d=i.redSqr().redISub(this.x.redAdd(this.x)),c=i.redMul(this.x.redSub(d)).redISub(this.y);return this.curve.point(d,c)};Ke.prototype.getX=function(){return this.x.fromRed()};Ke.prototype.getY=function(){return this.y.fromRed()};Ke.prototype.mul=function(e){return e=new Q(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)};Ke.prototype.mulAdd=function(e,t,f){var a=[this,t],i=[e,f];return this.curve.endo?this.curve._endoWnafMulAdd(a,i):this.curve._wnafMulAdd(1,a,i,2)};Ke.prototype.jmulAdd=function(e,t,f){var a=[this,t],i=[e,f];return this.curve.endo?this.curve._endoWnafMulAdd(a,i,!0):this.curve._wnafMulAdd(1,a,i,2,!0)};Ke.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)};Ke.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var f=this.precomputed,a=function(i){return i.neg()};t.precomputed={naf:f.naf&&{wnd:f.naf.wnd,points:f.naf.points.map(a)},doubles:f.doubles&&{step:f.doubles.step,points:f.doubles.points.map(a)}}}return t};Ke.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 Ge(r,e,t,f){pf.BasePoint.call(this,r,"jacobian"),e===null&&t===null&&f===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new Q(0)):(this.x=new Q(e,16),this.y=new Q(t,16),this.z=new Q(f,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}Zd(Ge,pf.BasePoint);gr.prototype.jpoint=function(e,t,f){return new Ge(this,e,t,f)};Ge.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),f=this.x.redMul(t),a=this.y.redMul(t).redMul(e);return this.curve.point(f,a)};Ge.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};Ge.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),f=this.z.redSqr(),a=this.x.redMul(t),i=e.x.redMul(f),d=this.y.redMul(t.redMul(e.z)),c=e.y.redMul(f.redMul(this.z)),o=a.redSub(i),l=d.redSub(c);if(o.cmpn(0)===0)return l.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var b=o.redSqr(),p=b.redMul(o),S=a.redMul(b),q=l.redSqr().redIAdd(p).redISub(S).redISub(S),E=l.redMul(S.redISub(q)).redISub(d.redMul(p)),P=this.z.redMul(e.z).redMul(o);return this.curve.jpoint(q,E,P)};Ge.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),f=this.x,a=e.x.redMul(t),i=this.y,d=e.y.redMul(t).redMul(this.z),c=f.redSub(a),o=i.redSub(d);if(c.cmpn(0)===0)return o.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var l=c.redSqr(),b=l.redMul(c),p=f.redMul(l),S=o.redSqr().redIAdd(b).redISub(p).redISub(p),q=o.redMul(p.redISub(S)).redISub(i.redMul(b)),E=this.z.redMul(c);return this.curve.jpoint(S,q,E)};Ge.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 f=this;for(t=0;t<e;t++)f=f.dbl();return f}var a=this.curve.a,i=this.curve.tinv,d=this.x,c=this.y,o=this.z,l=o.redSqr().redSqr(),b=c.redAdd(c);for(t=0;t<e;t++){var p=d.redSqr(),S=b.redSqr(),q=S.redSqr(),E=p.redAdd(p).redIAdd(p).redIAdd(a.redMul(l)),P=d.redMul(S),C=E.redSqr().redISub(P.redAdd(P)),R=P.redISub(C),N=E.redMul(R);N=N.redIAdd(N).redISub(q);var Y=b.redMul(o);t+1<e&&(l=l.redMul(q)),d=C,o=Y,b=N}return this.curve.jpoint(d,b.redMul(i),o)};Ge.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()};Ge.prototype._zeroDbl=function(){var e,t,f;if(this.zOne){var a=this.x.redSqr(),i=this.y.redSqr(),d=i.redSqr(),c=this.x.redAdd(i).redSqr().redISub(a).redISub(d);c=c.redIAdd(c);var o=a.redAdd(a).redIAdd(a),l=o.redSqr().redISub(c).redISub(c),b=d.redIAdd(d);b=b.redIAdd(b),b=b.redIAdd(b),e=l,t=o.redMul(c.redISub(l)).redISub(b),f=this.y.redAdd(this.y)}else{var p=this.x.redSqr(),S=this.y.redSqr(),q=S.redSqr(),E=this.x.redAdd(S).redSqr().redISub(p).redISub(q);E=E.redIAdd(E);var P=p.redAdd(p).redIAdd(p),C=P.redSqr(),R=q.redIAdd(q);R=R.redIAdd(R),R=R.redIAdd(R),e=C.redISub(E).redISub(E),t=P.redMul(E.redISub(e)).redISub(R),f=this.y.redMul(this.z),f=f.redIAdd(f)}return this.curve.jpoint(e,t,f)};Ge.prototype._threeDbl=function(){var e,t,f;if(this.zOne){var a=this.x.redSqr(),i=this.y.redSqr(),d=i.redSqr(),c=this.x.redAdd(i).redSqr().redISub(a).redISub(d);c=c.redIAdd(c);var o=a.redAdd(a).redIAdd(a).redIAdd(this.curve.a),l=o.redSqr().redISub(c).redISub(c);e=l;var b=d.redIAdd(d);b=b.redIAdd(b),b=b.redIAdd(b),t=o.redMul(c.redISub(l)).redISub(b),f=this.y.redAdd(this.y)}else{var p=this.z.redSqr(),S=this.y.redSqr(),q=this.x.redMul(S),E=this.x.redSub(p).redMul(this.x.redAdd(p));E=E.redAdd(E).redIAdd(E);var P=q.redIAdd(q);P=P.redIAdd(P);var C=P.redAdd(P);e=E.redSqr().redISub(C),f=this.y.redAdd(this.z).redSqr().redISub(S).redISub(p);var R=S.redSqr();R=R.redIAdd(R),R=R.redIAdd(R),R=R.redIAdd(R),t=E.redMul(P.redISub(e)).redISub(R)}return this.curve.jpoint(e,t,f)};Ge.prototype._dbl=function(){var e=this.curve.a,t=this.x,f=this.y,a=this.z,i=a.redSqr().redSqr(),d=t.redSqr(),c=f.redSqr(),o=d.redAdd(d).redIAdd(d).redIAdd(e.redMul(i)),l=t.redAdd(t);l=l.redIAdd(l);var b=l.redMul(c),p=o.redSqr().redISub(b.redAdd(b)),S=b.redISub(p),q=c.redSqr();q=q.redIAdd(q),q=q.redIAdd(q),q=q.redIAdd(q);var E=o.redMul(S).redISub(q),P=f.redAdd(f).redMul(a);return this.curve.jpoint(p,E,P)};Ge.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),f=this.z.redSqr(),a=t.redSqr(),i=e.redAdd(e).redIAdd(e),d=i.redSqr(),c=this.x.redAdd(t).redSqr().redISub(e).redISub(a);c=c.redIAdd(c),c=c.redAdd(c).redIAdd(c),c=c.redISub(d);var o=c.redSqr(),l=a.redIAdd(a);l=l.redIAdd(l),l=l.redIAdd(l),l=l.redIAdd(l);var b=i.redIAdd(c).redSqr().redISub(d).redISub(o).redISub(l),p=t.redMul(b);p=p.redIAdd(p),p=p.redIAdd(p);var S=this.x.redMul(o).redISub(p);S=S.redIAdd(S),S=S.redIAdd(S);var q=this.y.redMul(b.redMul(l.redISub(b)).redISub(c.redMul(o)));q=q.redIAdd(q),q=q.redIAdd(q),q=q.redIAdd(q);var E=this.z.redAdd(c).redSqr().redISub(f).redISub(o);return this.curve.jpoint(S,q,E)};Ge.prototype.mul=function(e,t){return e=new Q(e,t),this.curve._wnafMul(this,e)};Ge.prototype.eq=function(e){if(e.type==="affine")return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),f=e.z.redSqr();if(this.x.redMul(f).redISub(e.x.redMul(t)).cmpn(0)!==0)return!1;var a=t.redMul(this.z),i=f.redMul(e.z);return this.y.redMul(i).redISub(e.y.redMul(a)).cmpn(0)===0};Ge.prototype.eqXToP=function(e){var t=this.z.redSqr(),f=e.toRed(this.curve.red).redMul(t);if(this.x.cmp(f)===0)return!0;for(var a=e.clone(),i=this.curve.redN.redMul(t);;){if(a.iadd(this.curve.n),a.cmp(this.curve.p)>=0)return!1;if(f.redIAdd(i),this.x.cmp(f)===0)return!0}};Ge.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)+">"};Ge.prototype.isInfinity=function(){return this.z.cmpn(0)===0}});var Ph=B((Yv,Bh)=>{"use strict";g();x();var yf=K(),Eh=H(),Ha=Kf(),b3=nr();function mf(r){Ha.call(this,"mont",r),this.a=new yf(r.a,16).toRed(this.red),this.b=new yf(r.b,16).toRed(this.red),this.i4=new yf(4).toRed(this.red).redInvm(),this.two=new yf(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}Eh(mf,Ha);Bh.exports=mf;mf.prototype.validate=function(e){var t=e.normalize().x,f=t.redSqr(),a=f.redMul(t).redAdd(f.redMul(this.a)).redAdd(t),i=a.redSqrt();return i.redSqr().cmp(a)===0};function Ue(r,e,t){Ha.BasePoint.call(this,r,"projective"),e===null&&t===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new yf(e,16),this.z=new yf(t,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}Eh(Ue,Ha.BasePoint);mf.prototype.decodePoint=function(e,t){return this.point(b3.toArray(e,t),1)};mf.prototype.point=function(e,t){return new Ue(this,e,t)};mf.prototype.pointFromJSON=function(e){return Ue.fromJSON(this,e)};Ue.prototype.precompute=function(){};Ue.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};Ue.fromJSON=function(e,t){return new Ue(e,t[0],t[1]||e.one)};Ue.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)+">"};Ue.prototype.isInfinity=function(){return this.z.cmpn(0)===0};Ue.prototype.dbl=function(){var e=this.x.redAdd(this.z),t=e.redSqr(),f=this.x.redSub(this.z),a=f.redSqr(),i=t.redSub(a),d=t.redMul(a),c=i.redMul(a.redAdd(this.curve.a24.redMul(i)));return this.curve.point(d,c)};Ue.prototype.add=function(){throw new Error("Not supported on Montgomery curve")};Ue.prototype.diffAdd=function(e,t){var f=this.x.redAdd(this.z),a=this.x.redSub(this.z),i=e.x.redAdd(e.z),d=e.x.redSub(e.z),c=d.redMul(f),o=i.redMul(a),l=t.z.redMul(c.redAdd(o).redSqr()),b=t.x.redMul(c.redISub(o).redSqr());return this.curve.point(l,b)};Ue.prototype.mul=function(e){for(var t=e.clone(),f=this,a=this.curve.point(null,null),i=this,d=[];t.cmpn(0)!==0;t.iushrn(1))d.push(t.andln(1));for(var c=d.length-1;c>=0;c--)d[c]===0?(f=f.diffAdd(a,i),a=a.dbl()):(a=f.diffAdd(a,i),f=f.dbl());return a};Ue.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")};Ue.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")};Ue.prototype.eq=function(e){return this.getX().cmp(e.getX())===0};Ue.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};Ue.prototype.getX=function(){return this.normalize(),this.x.fromRed()}});var kh=B((Qv,Ch)=>{"use strict";g();x();var l3=nr(),tt=K(),Rh=H(),Xa=Kf(),v3=l3.assert;function Ur(r){this.twisted=(r.a|0)!==1,this.mOneA=this.twisted&&(r.a|0)===-1,this.extended=this.mOneA,Xa.call(this,"edwards",r),this.a=new tt(r.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new tt(r.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new tt(r.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),v3(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(r.c|0)===1}Rh(Ur,Xa);Ch.exports=Ur;Ur.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)};Ur.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)};Ur.prototype.jpoint=function(e,t,f,a){return this.point(e,t,f,a)};Ur.prototype.pointFromX=function(e,t){e=new tt(e,16),e.red||(e=e.toRed(this.red));var f=e.redSqr(),a=this.c2.redSub(this.a.redMul(f)),i=this.one.redSub(this.c2.redMul(this.d).redMul(f)),d=a.redMul(i.redInvm()),c=d.redSqrt();if(c.redSqr().redSub(d).cmp(this.zero)!==0)throw new Error("invalid point");var o=c.fromRed().isOdd();return(t&&!o||!t&&o)&&(c=c.redNeg()),this.point(e,c)};Ur.prototype.pointFromY=function(e,t){e=new tt(e,16),e.red||(e=e.toRed(this.red));var f=e.redSqr(),a=f.redSub(this.c2),i=f.redMul(this.d).redMul(this.c2).redSub(this.a),d=a.redMul(i.redInvm());if(d.cmp(this.zero)===0){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var c=d.redSqrt();if(c.redSqr().redSub(d).cmp(this.zero)!==0)throw new Error("invalid point");return c.fromRed().isOdd()!==t&&(c=c.redNeg()),this.point(c,e)};Ur.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),f=e.y.redSqr(),a=t.redMul(this.a).redAdd(f),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(f)));return a.cmp(i)===0};function G(r,e,t,f,a){Xa.BasePoint.call(this,r,"projective"),e===null&&t===null&&f===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 tt(e,16),this.y=new tt(t,16),this.z=f?new tt(f,16):this.curve.one,this.t=a&&new tt(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()))))}Rh(G,Xa.BasePoint);Ur.prototype.pointFromJSON=function(e){return G.fromJSON(this,e)};Ur.prototype.point=function(e,t,f,a){return new G(this,e,t,f,a)};G.fromJSON=function(e,t){return new G(e,t[0],t[1],t[2])};G.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)+">"};G.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};G.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),f=this.z.redSqr();f=f.redIAdd(f);var a=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),d=a.redAdd(t),c=d.redSub(f),o=a.redSub(t),l=i.redMul(c),b=d.redMul(o),p=i.redMul(o),S=c.redMul(d);return this.curve.point(l,b,S,p)};G.prototype._projDbl=function(){var e=this.x.redAdd(this.y).redSqr(),t=this.x.redSqr(),f=this.y.redSqr(),a,i,d,c,o,l;if(this.curve.twisted){c=this.curve._mulA(t);var b=c.redAdd(f);this.zOne?(a=e.redSub(t).redSub(f).redMul(b.redSub(this.curve.two)),i=b.redMul(c.redSub(f)),d=b.redSqr().redSub(b).redSub(b)):(o=this.z.redSqr(),l=b.redSub(o).redISub(o),a=e.redSub(t).redISub(f).redMul(l),i=b.redMul(c.redSub(f)),d=b.redMul(l))}else c=t.redAdd(f),o=this.curve._mulC(this.z).redSqr(),l=c.redSub(o).redSub(o),a=this.curve._mulC(e.redISub(c)).redMul(l),i=this.curve._mulC(c).redMul(t.redISub(f)),d=c.redMul(l);return this.curve.point(a,i,d)};G.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};G.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),f=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),a=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),d=f.redSub(t),c=i.redSub(a),o=i.redAdd(a),l=f.redAdd(t),b=d.redMul(c),p=o.redMul(l),S=d.redMul(l),q=c.redMul(o);return this.curve.point(b,p,q,S)};G.prototype._projAdd=function(e){var t=this.z.redMul(e.z),f=t.redSqr(),a=this.x.redMul(e.x),i=this.y.redMul(e.y),d=this.curve.d.redMul(a).redMul(i),c=f.redSub(d),o=f.redAdd(d),l=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(a).redISub(i),b=t.redMul(c).redMul(l),p,S;return this.curve.twisted?(p=t.redMul(o).redMul(i.redSub(this.curve._mulA(a))),S=c.redMul(o)):(p=t.redMul(o).redMul(i.redSub(a)),S=this.curve._mulC(c).redMul(o)),this.curve.point(b,p,S)};G.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)};G.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)};G.prototype.mulAdd=function(e,t,f){return this.curve._wnafMulAdd(1,[this,t],[e,f],2,!1)};G.prototype.jmulAdd=function(e,t,f){return this.curve._wnafMulAdd(1,[this,t],[e,f],2,!0)};G.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};G.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};G.prototype.getX=function(){return this.normalize(),this.x.fromRed()};G.prototype.getY=function(){return this.normalize(),this.y.fromRed()};G.prototype.eq=function(e){return this===e||this.getX().cmp(e.getX())===0&&this.getY().cmp(e.getY())===0};G.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(t)===0)return!0;for(var f=e.clone(),a=this.curve.redN.redMul(this.z);;){if(f.iadd(this.curve.n),f.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(a),this.x.cmp(t)===0)return!0}};G.prototype.toP=G.prototype.normalize;G.prototype.mixedAdd=G.prototype.add});var $d=B(Dh=>{"use strict";g();x();var Ja=Dh;Ja.base=Kf();Ja.short=Ih();Ja.mont=Ph();Ja.edwards=kh()});var Nh=B((ip,zh)=>{g();x();zh.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}});var Va=B(Lh=>{"use strict";g();x();var en=Lh,lt=df(),Qd=$d(),p3=nr(),Th=p3.assert;function Oh(r){r.type==="short"?this.curve=new Qd.short(r):r.type==="edwards"?this.curve=new Qd.edwards(r):this.curve=new Qd.mont(r),this.g=this.curve.g,this.n=this.curve.n,this.hash=r.hash,Th(this.g.validate(),"Invalid curve"),Th(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}en.PresetCurve=Oh;function vt(r,e){Object.defineProperty(en,r,{configurable:!0,enumerable:!0,get:function(){var t=new Oh(e);return Object.defineProperty(en,r,{configurable:!0,enumerable:!0,value:t}),t}})}vt("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:lt.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]});vt("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:lt.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]});vt("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:lt.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]});vt("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:lt.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"]});vt("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:lt.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"]});vt("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:lt.sha256,gRed:!1,g:["9"]});vt("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:lt.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var rn;try{rn=Nh()}catch{rn=void 0}vt("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:lt.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",rn]})});var Fh=B((hp,jh)=>{"use strict";g();x();var y3=K(),m3=nr(),tn=m3.assert;function Ze(r,e){this.ec=r,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}jh.exports=Ze;Ze.fromPublic=function(e,t,f){return t instanceof Ze?t:new Ze(e,{pub:t,pubEnc:f})};Ze.fromPrivate=function(e,t,f){return t instanceof Ze?t:new Ze(e,{priv:t,privEnc:f})};Ze.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"}};Ze.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};Ze.prototype.getPrivate=function(e){return e==="hex"?this.priv.toString(16,2):this.priv};Ze.prototype._importPrivate=function(e,t){this.priv=new y3(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)};Ze.prototype._importPublic=function(e,t){if(e.x||e.y){this.ec.curve.type==="mont"?tn(e.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&tn(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)};Ze.prototype.derive=function(e){return e.validate()||tn(e.validate(),"public point not validated"),e.mul(this.priv).getX()};Ze.prototype.sign=function(e,t,f){return this.ec.sign(e,this,t,f)};Ze.prototype.verify=function(e,t){return this.ec.verify(e,t,this)};Ze.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}});var Hh=B((lp,Uh)=>{"use strict";g();x();var Wa=K(),dn=nr(),g3=dn.assert;function Ga(r,e){if(r instanceof Ga)return r;this._importDER(r,e)||(g3(r.r&&r.s,"Signature without r or s"),this.r=new Wa(r.r,16),this.s=new Wa(r.s,16),r.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=r.recoveryParam)}Uh.exports=Ga;function x3(){this.place=0}function fn(r,e){var t=r[e.place++];if(!(t&128))return t;var f=t&15;if(f===0||f>4)return!1;for(var a=0,i=0,d=e.place;i<f;i++,d++)a<<=8,a|=r[d],a>>>=0;return a<=127?!1:(e.place=d,a)}function Kh(r){for(var e=0,t=r.length-1;!r[e]&&!(r[e+1]&128)&&e<t;)e++;return e===0?r:r.slice(e)}Ga.prototype._importDER=function(e,t){e=dn.toArray(e,t);var f=new x3;if(e[f.place++]!==48)return!1;var a=fn(e,f);if(a===!1||a+f.place!==e.length||e[f.place++]!==2)return!1;var i=fn(e,f);if(i===!1)return!1;var d=e.slice(f.place,i+f.place);if(f.place+=i,e[f.place++]!==2)return!1;var c=fn(e,f);if(c===!1||e.length!==c+f.place)return!1;var o=e.slice(f.place,c+f.place);if(d[0]===0)if(d[1]&128)d=d.slice(1);else return!1;if(o[0]===0)if(o[1]&128)o=o.slice(1);else return!1;return this.r=new Wa(d),this.s=new Wa(o),this.recoveryParam=null,!0};function an(r,e){if(e<128){r.push(e);return}var t=1+(Math.log(e)/Math.LN2>>>3);for(r.push(t|128);--t;)r.push(e>>>(t<<3)&255);r.push(e)}Ga.prototype.toDER=function(e){var t=this.r.toArray(),f=this.s.toArray();for(t[0]&128&&(t=[0].concat(t)),f[0]&128&&(f=[0].concat(f)),t=Kh(t),f=Kh(f);!f[0]&&!(f[1]&128);)f=f.slice(1);var a=[2];an(a,t.length),a=a.concat(t),a.push(2),an(a,f.length);var i=a.concat(f),d=[48];return an(d,i.length),d=d.concat(i),dn.encode(d,e)}});var Wh=B((yp,Vh)=>{"use strict";g();x();var Nt=K(),Xh=Ad(),w3=nr(),nn=Va(),_3=Wt(),Jh=w3.assert,cn=Fh(),Ya=Hh();function xr(r){if(!(this instanceof xr))return new xr(r);typeof r=="string"&&(Jh(Object.prototype.hasOwnProperty.call(nn,r),"Unknown curve "+r),r=nn[r]),r instanceof nn.PresetCurve&&(r={curve:r}),this.curve=r.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=r.curve.g,this.g.precompute(r.curve.n.bitLength()+1),this.hash=r.hash||r.curve.hash}Vh.exports=xr;xr.prototype.keyPair=function(e){return new cn(this,e)};xr.prototype.keyFromPrivate=function(e,t){return cn.fromPrivate(this,e,t)};xr.prototype.keyFromPublic=function(e,t){return cn.fromPublic(this,e,t)};xr.prototype.genKeyPair=function(e){e||(e={});for(var t=new Xh({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||_3(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),f=this.n.byteLength(),a=this.n.sub(new Nt(2));;){var i=new Nt(t.generate(f));if(!(i.cmp(a)>0))return i.iaddn(1),this.keyFromPrivate(i)}};xr.prototype._truncateToN=function(e,t){var f=e.byteLength()*8-this.n.bitLength();return f>0&&(e=e.ushrn(f)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e};xr.prototype.sign=function(e,t,f,a){typeof f=="object"&&(a=f,f=null),a||(a={}),t=this.keyFromPrivate(t,f),e=this._truncateToN(new Nt(e,16));for(var i=this.n.byteLength(),d=t.getPrivate().toArray("be",i),c=e.toArray("be",i),o=new Xh({hash:this.hash,entropy:d,nonce:c,pers:a.pers,persEnc:a.persEnc||"utf8"}),l=this.n.sub(new Nt(1)),b=0;;b++){var p=a.k?a.k(b):new Nt(o.generate(this.n.byteLength()));if(p=this._truncateToN(p,!0),!(p.cmpn(1)<=0||p.cmp(l)>=0)){var S=this.g.mul(p);if(!S.isInfinity()){var q=S.getX(),E=q.umod(this.n);if(E.cmpn(0)!==0){var P=p.invm(this.n).mul(E.mul(t.getPrivate()).iadd(e));if(P=P.umod(this.n),P.cmpn(0)!==0){var C=(S.getY().isOdd()?1:0)|(q.cmp(E)!==0?2:0);return a.canonical&&P.cmp(this.nh)>0&&(P=this.n.sub(P),C^=1),new Ya({r:E,s:P,recoveryParam:C})}}}}}};xr.prototype.verify=function(e,t,f,a){e=this._truncateToN(new Nt(e,16)),f=this.keyFromPublic(f,a),t=new Ya(t,"hex");var i=t.r,d=t.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0||d.cmpn(1)<0||d.cmp(this.n)>=0)return!1;var c=d.invm(this.n),o=c.mul(e).umod(this.n),l=c.mul(i).umod(this.n),b;return this.curve._maxwellTrick?(b=this.g.jmulAdd(o,f.getPublic(),l),b.isInfinity()?!1:b.eqXToP(i)):(b=this.g.mulAdd(o,f.getPublic(),l),b.isInfinity()?!1:b.getX().umod(this.n).cmp(i)===0)};xr.prototype.recoverPubKey=function(r,e,t,f){Jh((3&t)===t,"The recovery param is more than two bits"),e=new Ya(e,f);var a=this.n,i=new Nt(r),d=e.r,c=e.s,o=t&1,l=t>>1;if(d.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw new Error("Unable to find sencond key candinate");l?d=this.curve.pointFromX(d.add(this.curve.n),o):d=this.curve.pointFromX(d,o);var b=e.r.invm(a),p=a.sub(i).mul(b).umod(a),S=c.mul(b).umod(a);return this.g.mulAdd(p,d,S)};xr.prototype.getKeyRecoveryParam=function(r,e,t,f){if(e=new Ya(e,f),e.recoveryParam!==null)return e.recoveryParam;for(var a=0;a<4;a++){var i;try{i=this.recoverPubKey(r,e,a)}catch{continue}if(i.eq(t))return a}throw new Error("Unable to find valid recovery factor")}});var $h=B((xp,Zh)=>{"use strict";g();x();var Uf=nr(),Yh=Uf.assert,Gh=Uf.parseBytes,gf=Uf.cachedProperty;function He(r,e){this.eddsa=r,this._secret=Gh(e.secret),r.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=Gh(e.pub)}He.fromPublic=function(e,t){return t instanceof He?t:new He(e,{pub:t})};He.fromSecret=function(e,t){return t instanceof He?t:new He(e,{secret:t})};He.prototype.secret=function(){return this._secret};gf(He,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())});gf(He,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});gf(He,"privBytes",function(){var e=this.eddsa,t=this.hash(),f=e.encodingLength-1,a=t.slice(0,e.encodingLength);return a[0]&=248,a[f]&=127,a[f]|=64,a});gf(He,"priv",function(){return this.eddsa.decodeInt(this.privBytes())});gf(He,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()});gf(He,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)});He.prototype.sign=function(e){return Yh(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)};He.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)};He.prototype.getSecret=function(e){return Yh(this._secret,"KeyPair is public only"),Uf.encode(this.secret(),e)};He.prototype.getPublic=function(e){return Uf.encode(this.pubBytes(),e)};Zh.exports=He});var e1=B((Sp,Qh)=>{"use strict";g();x();var S3=K(),Za=nr(),M3=Za.assert,$a=Za.cachedProperty,A3=Za.parseBytes;function Tt(r,e){this.eddsa=r,typeof e!="object"&&(e=A3(e)),Array.isArray(e)&&(e={R:e.slice(0,r.encodingLength),S:e.slice(r.encodingLength)}),M3(e.R&&e.S,"Signature without R or S"),r.isPoint(e.R)&&(this._R=e.R),e.S instanceof S3&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}$a(Tt,"S",function(){return this.eddsa.decodeInt(this.Sencoded())});$a(Tt,"R",function(){return this.eddsa.decodePoint(this.Rencoded())});$a(Tt,"Rencoded",function(){return this.eddsa.encodePoint(this.R())});$a(Tt,"Sencoded",function(){return this.eddsa.encodeInt(this.S())});Tt.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};Tt.prototype.toHex=function(){return Za.encode(this.toBytes(),"hex").toUpperCase()};Qh.exports=Tt});var i1=B((qp,a1)=>{"use strict";g();x();var q3=df(),I3=Va(),xf=nr(),E3=xf.assert,t1=xf.parseBytes,f1=$h(),r1=e1();function ar(r){if(E3(r==="ed25519","only tested with ed25519 so far"),!(this instanceof ar))return new ar(r);r=I3[r].curve,this.curve=r,this.g=r.g,this.g.precompute(r.n.bitLength()+1),this.pointClass=r.point().constructor,this.encodingLength=Math.ceil(r.n.bitLength()/8),this.hash=q3.sha512}a1.exports=ar;ar.prototype.sign=function(e,t){e=t1(e);var f=this.keyFromSecret(t),a=this.hashInt(f.messagePrefix(),e),i=this.g.mul(a),d=this.encodePoint(i),c=this.hashInt(d,f.pubBytes(),e).mul(f.priv()),o=a.add(c).umod(this.curve.n);return this.makeSignature({R:i,S:o,Rencoded:d})};ar.prototype.verify=function(e,t,f){e=t1(e),t=this.makeSignature(t);var a=this.keyFromPublic(f),i=this.hashInt(t.Rencoded(),a.pubBytes(),e),d=this.g.mul(t.S()),c=t.R().add(a.pub().mul(i));return c.eq(d)};ar.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return xf.intFromLE(e.digest()).umod(this.curve.n)};ar.prototype.keyFromPublic=function(e){return f1.fromPublic(this,e)};ar.prototype.keyFromSecret=function(e){return f1.fromSecret(this,e)};ar.prototype.makeSignature=function(e){return e instanceof r1?e:new r1(this,e)};ar.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t};ar.prototype.decodePoint=function(e){e=xf.parseBytes(e);var t=e.length-1,f=e.slice(0,t).concat(e[t]&-129),a=(e[t]&128)!==0,i=xf.intFromLE(f);return this.curve.pointFromY(i,a)};ar.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)};ar.prototype.decodeInt=function(e){return xf.intFromLE(e)};ar.prototype.isPoint=function(e){return e instanceof this.pointClass}});var n1=B(d1=>{"use strict";g();x();var Ot=d1;Ot.version=Sh().version;Ot.utils=nr();Ot.rand=Wt();Ot.curve=$d();Ot.curves=Va();Ot.ec=Wh();Ot.eddsa=i1()});var s1=B((Cp,c1)=>{g();x();var B3=n1(),P3=K();c1.exports=function(e){return new Lt(e)};var cr={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};cr.p224=cr.secp224r1;cr.p256=cr.secp256r1=cr.prime256v1;cr.p192=cr.secp192r1=cr.prime192v1;cr.p384=cr.secp384r1;cr.p521=cr.secp521r1;function Lt(r){this.curveType=cr[r],this.curveType||(this.curveType={name:r}),this.curve=new B3.ec(this.curveType.name),this.keys=void 0}Lt.prototype.generateKeys=function(r,e){return this.keys=this.curve.genKeyPair(),this.getPublicKey(r,e)};Lt.prototype.computeSecret=function(r,e,t){e=e||"utf8",A.Buffer.isBuffer(r)||(r=new A.Buffer(r,e));var f=this.curve.keyFromPublic(r).getPublic(),a=f.mul(this.keys.getPrivate()).getX();return sn(a,t,this.curveType.byteLength)};Lt.prototype.getPublicKey=function(r,e){var t=this.keys.getPublic(e==="compressed",!0);return e==="hybrid"&&(t[t.length-1]%2?t[0]=7:t[0]=6),sn(t,r)};Lt.prototype.getPrivateKey=function(r){return sn(this.keys.getPrivate(),r)};Lt.prototype.setPublicKey=function(r,e){return e=e||"utf8",A.Buffer.isBuffer(r)||(r=new A.Buffer(r,e)),this.keys._importPublic(r),this};Lt.prototype.setPrivateKey=function(r,e){e=e||"utf8",A.Buffer.isBuffer(r)||(r=new A.Buffer(r,e));var t=new P3(r);return t=t.toString(16),this.keys._importPrivate(t),this};function sn(r,e,t){Array.isArray(r)||(r=r.toArray());var f=new A.Buffer(r);if(t&&f.length<t){var a=new A.Buffer(t-f.length);a.fill(0),f=A.Buffer.concat([a,f])}return e?f.toString(e):f}});var on=B((zp,o1)=>{g();x();var R3=Kt();o1.exports=function(r,e){for(var t=new A.Buffer(""),f=0,a;t.length<e;)a=C3(f++),t=A.Buffer.concat([t,R3("sha1").update(r).update(a).digest()]);return t.slice(0,e)};function C3(r){var e=new A.Buffer(4);return e.writeUInt32BE(r,0),e}});var hn=B((Op,h1)=>{g();x();h1.exports=function(e,t){for(var f=e.length,a=-1;++a<f;)e[a]^=t[a];return e}});var un=B((Fp,b1)=>{g();x();var u1=K();function k3(r,e){return new A.Buffer(r.toRed(u1.mont(e.modulus)).redPow(new u1(e.publicExponent)).fromRed().toArray())}b1.exports=k3});var y1=B((Hp,p1)=>{g();x();var D3=Tf(),bn=pt(),z3=Kt(),l1=on(),v1=hn(),ln=K(),N3=un(),T3=va();p1.exports=function(e,t,f){var a;e.padding?a=e.padding:f?a=1:a=4;var i=D3(e),d;if(a===4)d=O3(i,t);else if(a===1)d=L3(i,t,f);else if(a===3){if(d=new ln(t),d.cmp(i.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return f?T3(d,i):N3(d,i)};function O3(r,e){var t=r.modulus.byteLength(),f=e.length,a=z3("sha1").update(new A.Buffer("")).digest(),i=a.length,d=2*i;if(f>t-d-2)throw new Error("message too long");var c=new A.Buffer(t-f-d-2);c.fill(0);var o=t-i-1,l=bn(i),b=v1(A.Buffer.concat([a,c,new A.Buffer([1]),e],o),l1(l,o)),p=v1(l,l1(b,i));return new ln(A.Buffer.concat([new A.Buffer([0]),p,b],t))}function L3(r,e,t){var f=e.length,a=r.modulus.byteLength();if(f>a-11)throw new Error("message too long");var i;return t?(i=new A.Buffer(a-f-3),i.fill(255)):i=j3(a-f-3),new ln(A.Buffer.concat([new A.Buffer([0,t?1:2]),i,new A.Buffer([0]),e],a))}function j3(r,e){for(var t=new A.Buffer(r),f=0,a=bn(r*2),i=0,d;f<r;)i===a.length&&(a=bn(r*2),i=0),d=a[i++],d&&(t[f++]=d);return t}});var _1=B((Vp,w1)=>{g();x();var F3=Tf(),m1=on(),g1=hn(),x1=K(),K3=va(),U3=Kt(),H3=un();w1.exports=function(e,t,f){var a;e.padding?a=e.padding:f?a=1:a=4;var i=F3(e),d=i.modulus.byteLength();if(t.length>d||new x1(t).cmp(i.modulus)>=0)throw new Error("decryption error");var c;f?c=H3(new x1(t),i):c=K3(t,i);var o=new A.Buffer(d-c.length);if(o.fill(0),c=A.Buffer.concat([o,c],d),a===4)return X3(i,c);if(a===1)return J3(i,c,f);if(a===3)return c;throw new Error("unknown padding")};function X3(r,e){var t=r.modulus,f=r.modulus.byteLength(),a=e.length,i=U3("sha1").update(new A.Buffer("")).digest(),d=i.length,c=2*d;if(e[0]!==0)throw new Error("decryption error");var o=e.slice(1,d+1),l=e.slice(d+1),b=g1(o,m1(l,d)),p=g1(l,m1(b,f-d-1));if(V3(i,p.slice(0,d)))throw new Error("decryption error");for(var S=d;p[S]===0;)S++;if(p[S++]!==1)throw new Error("decryption error");return p.slice(S)}function J3(r,e,t){for(var f=e.slice(0,2),a=2,i=0;e[a++]!==0;)if(a>=e.length){i++;break}var d=e.slice(2,a-1),c=e.slice(a-1,a);if((f.toString("hex")!=="0002"&&!t||f.toString("hex")!=="0001"&&t)&&i++,d.length<8&&i++,i)throw new Error("decryption error");return e.slice(a)}function V3(r,e){r=new A.Buffer(r),e=new A.Buffer(e);var t=0,f=r.length;r.length!==e.length&&(t++,f=Math.min(r.length,e.length));for(var a=-1;++a<f;)t+=r[a]^e[a];return t}});var S1=B(jt=>{g();x();jt.publicEncrypt=y1();jt.privateDecrypt=_1();jt.privateEncrypt=function(e,t){return jt.publicEncrypt(e,t,!0)};jt.publicDecrypt=function(e,t){return jt.privateDecrypt(e,t,!0)}});var k1=B(Hf=>{"use strict";g();x();function M1(){throw new Error(`secure random number generation not supported by this browser
|
|
use chrome, FireFox or Internet Explorer 11`)}var q1=Te(),A1=pt(),I1=q1.Buffer,E1=q1.kMaxLength,vn=globalThis.crypto||globalThis.msCrypto,B1=Math.pow(2,32)-1;function P1(r,e){if(typeof r!="number"||r!==r)throw new TypeError("offset must be a number");if(r>B1||r<0)throw new TypeError("offset must be a uint32");if(r>E1||r>e)throw new RangeError("offset out of range")}function R1(r,e,t){if(typeof r!="number"||r!==r)throw new TypeError("size must be a number");if(r>B1||r<0)throw new TypeError("size must be a uint32");if(r+e>t||r>E1)throw new RangeError("buffer too small")}vn&&vn.getRandomValues||!process.browser?(Hf.randomFill=W3,Hf.randomFillSync=G3):(Hf.randomFill=M1,Hf.randomFillSync=M1);function W3(r,e,t,f){if(!I1.isBuffer(r)&&!(r instanceof globalThis.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof e=="function")f=e,e=0,t=r.length;else if(typeof t=="function")f=t,t=r.length-e;else if(typeof f!="function")throw new TypeError('"cb" argument must be a function');return P1(e,r.length),R1(t,e,r.length),C1(r,e,t,f)}function C1(r,e,t,f){if(process.browser){var a=r.buffer,i=new Uint8Array(a,e,t);if(vn.getRandomValues(i),f){process.nextTick(function(){f(null,r)});return}return r}if(f){A1(t,function(c,o){if(c)return f(c);o.copy(r,e),f(null,r)});return}var d=A1(t);return d.copy(r,e),r}function G3(r,e,t){if(typeof e>"u"&&(e=0),!I1.isBuffer(r)&&!(r instanceof globalThis.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return P1(e,r.length),t===void 0&&(t=r.length-e),R1(t,e,r.length),C1(r,e,t)}});var N1=B(O=>{"use strict";g();x();O.randomBytes=O.rng=O.pseudoRandomBytes=O.prng=pt();O.createHash=O.Hash=Kt();O.createHmac=O.Hmac=Ei();var Y3=Qn(),Z3=Object.keys(Y3),$3=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(Z3);O.getHashes=function(){return $3};var D1=Ti();O.pbkdf2=D1.pbkdf2;O.pbkdf2Sync=D1.pbkdf2Sync;var Hr=Ac();O.Cipher=Hr.Cipher;O.createCipher=Hr.createCipher;O.Cipheriv=Hr.Cipheriv;O.createCipheriv=Hr.createCipheriv;O.Decipher=Hr.Decipher;O.createDecipher=Hr.createDecipher;O.Decipheriv=Hr.Decipheriv;O.createDecipheriv=Hr.createDecipheriv;O.getCiphers=Hr.getCiphers;O.listCiphers=Hr.listCiphers;var Xf=Lc();O.DiffieHellmanGroup=Xf.DiffieHellmanGroup;O.createDiffieHellmanGroup=Xf.createDiffieHellmanGroup;O.getDiffieHellman=Xf.getDiffieHellman;O.createDiffieHellman=Xf.createDiffieHellman;O.DiffieHellman=Xf.DiffieHellman;var Qa=_h();O.createSign=Qa.createSign;O.Sign=Qa.Sign;O.createVerify=Qa.createVerify;O.Verify=Qa.Verify;O.createECDH=s1();var ei=S1();O.publicEncrypt=ei.publicEncrypt;O.privateEncrypt=ei.privateEncrypt;O.publicDecrypt=ei.publicDecrypt;O.privateDecrypt=ei.privateDecrypt;var z1=k1();O.randomFill=z1.randomFill;O.randomFillSync=z1.randomFillSync;O.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(`
|
|
`))};O.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}});var Ic=B((iy,ri)=>{g();x();var Ft=N1();if(Ft&&Ft.default){ri.exports=Ft.default;for(let r in Ft)ri.exports[r]=Ft[r]}else Ft&&(ri.exports=Ft)});export{pt as a,Kt as b,Ei as c,Ti as d,er as e,K as f,Wt as g,ya as h,pd as i,Ds as j,df as k,Ad as l,Ic as m};
|
|
|
|
window.inOKXExtension = true;
|
|
window.inMiniApp = false;
|
|
window.ASSETS_BUILD_TYPE = "publish";
|
|
|
|
//# sourceMappingURL=chunk-IAFVNOEB.js.map
|