@matchain/matchid-sdk-react 0.1.53-alpha.0 → 0.1.53-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/icon/index.d.mts +1 -1
- package/dist/assets/icon/index.d.ts +1 -1
- package/dist/{chunk-YQHI5BIZ.mjs → chunk-4A2YPGO3.mjs} +2 -2
- package/dist/{chunk-HLUFAIFV.mjs → chunk-MX7N57AH.mjs} +1 -1
- package/dist/{chunk-HLUFAIFV.mjs.map → chunk-MX7N57AH.mjs.map} +1 -1
- package/dist/{chunk-LRJDS2OK.mjs → chunk-W5A6WY7Y.mjs} +229 -416
- package/dist/chunk-W5A6WY7Y.mjs.map +1 -0
- package/dist/components/index.d.mts +3 -3
- package/dist/components/index.d.ts +3 -3
- package/dist/components/index.js +223 -395
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +2 -4
- package/dist/hooks/api/index.d.mts +2 -2
- package/dist/hooks/api/index.d.ts +2 -2
- package/dist/hooks/api/index.js +75 -122
- package/dist/hooks/api/index.js.map +1 -1
- package/dist/hooks/api/index.mjs +3 -3
- package/dist/hooks/index.d.mts +2 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.js +253 -313
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +2 -2
- package/dist/{index-CO1j3Cxc.d.ts → index-B8cUP7cH.d.ts} +2 -2
- package/dist/{index-C29kl7io.d.mts → index-BCGJczpk.d.mts} +1 -1
- package/dist/{index-Bsfb3Ysq.d.mts → index-BS-NO8Y2.d.ts} +3 -3
- package/dist/{index-C7InzeOC.d.ts → index-Bil_db2f.d.mts} +3 -3
- package/dist/{index-BlYHNOxm.d.ts → index-BsL6zo6a.d.ts} +1 -1
- package/dist/{index-CteYYAoN.d.mts → index-CZqdmQu1.d.mts} +1 -1
- package/dist/{index-Ce5JlNJv.d.ts → index-DNJuiNdz.d.mts} +4 -11
- package/dist/{index-0EM3dXJ4.d.mts → index-Df-WlkXq.d.ts} +4 -11
- package/dist/{index-BNNgBoTN.d.ts → index-IwwXQ_QV.d.ts} +1 -1
- package/dist/{index-BoIDCH41.d.ts → index-K5vXmiRX.d.ts} +1 -1
- package/dist/{index-CGx_yc95.d.mts → index-iWHaT8HV.d.mts} +1 -1
- package/dist/{index-CqO8nMTh.d.mts → index-yy3VTdFU.d.mts} +2 -2
- package/dist/index.css +18 -6
- package/dist/index.d.mts +7 -8
- package/dist/index.d.ts +7 -8
- package/dist/index.js +389 -538
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -9
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/{types-Cv5UhCIP.d.mts → types-CZbR7ERa.d.mts} +1 -2
- package/dist/{types-Cv5UhCIP.d.ts → types-CZbR7ERa.d.ts} +1 -2
- package/dist/ui/index.d.mts +3 -3
- package/dist/ui/index.d.ts +3 -3
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/index.mjs +1 -1
- package/example/dist/assets/{TransportWebHID-BwG9Tbw2.js → TransportWebHID-BEu7tC0r.js} +1 -1
- package/example/dist/assets/{bignumber-FiRdtNkj.js → bignumber-iG7K-qxw.js} +1 -1
- package/example/dist/assets/{ccip-CJyR03AW.js → ccip-a6wQ1Vcb.js} +1 -1
- package/example/dist/assets/{draggabilly-1Sl0icBA.js → draggabilly-CRYR_S0q.js} +1 -1
- package/example/dist/assets/{index-RIWy1Hg7.js → index--dp9m9Ep.js} +1 -1
- package/example/dist/assets/{index-DATAk5xI.js → index-BDTHolFv.js} +1 -1
- package/example/dist/assets/{index-CcgesoWE.js → index-BZl59qLb.js} +20 -20
- package/example/dist/assets/{index-DxxLiL3_.js → index-BmMbYNHO.js} +3 -3
- package/example/dist/assets/{index-D8N4Z5B5.js → index-C7cxVRDF.js} +71 -71
- package/example/dist/assets/{index-BAfSBdWW.js → index-CJk171Yb.js} +1 -1
- package/example/dist/assets/{index-DN1wW-Mo.js → index-CQiBesAa.js} +1 -1
- package/example/dist/assets/{index-D5RU9xxK.js → index-D62loNA9.js} +1 -1
- package/example/dist/assets/{index-CYk2C9XJ.js → index-DqyX3FG6.js} +1 -1
- package/example/dist/assets/{solanaEmbed.esm-CNS-QKE2.js → solanaEmbed.esm-Djn-u4Vn.js} +1 -1
- package/example/dist/index.html +1 -1
- package/example/package.json +2 -1
- package/example/src/App.tsx +18 -5
- package/example/src/store/useLocalStore.ts +9 -0
- package/package.json +1 -5
- package/dist/chunk-LRJDS2OK.mjs.map +0 -1
- /package/dist/{chunk-YQHI5BIZ.mjs.map → chunk-4A2YPGO3.mjs.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as kf,c as $r,g as Ma,a as n2,i as s2,d as o2,e as $f,f as a2,h as li,j as c2,k as B0,P as f2,T as h2,b as ac}from"./index-D8N4Z5B5.js";import{i as Ia}from"./inherits_browser-BlmhoU4v.js";var F0={};const u2="elliptic",l2="6.6.1",d2="EC cryptography",p2="lib/elliptic.js",g2=["lib"],b2={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/"},v2={type:"git",url:"git@github.com:indutny/elliptic"},m2=["EC","Elliptic","curve","Cryptography"],y2="Fedor Indutny <fedor@indutny.com>",w2="MIT",_2={url:"https://github.com/indutny/elliptic/issues"},E2="https://github.com/indutny/elliptic",A2={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"},x2={"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"},S2={name:u2,version:l2,description:d2,main:p2,files:g2,scripts:b2,repository:v2,keywords:m2,author:y2,license:w2,bugs:_2,homepage:E2,devDependencies:A2,dependencies:x2};var br={},qf={exports:{}};qf.exports;(function(t){(function(e,r){function i(U,b){if(!U)throw new Error(b||"Assertion failed")}function n(U,b){U.super_=b;var c=function(){};c.prototype=b.prototype,U.prototype=new c,U.prototype.constructor=U}function s(U,b,c){if(s.isBN(U))return U;this.negative=0,this.words=null,this.length=0,this.red=null,U!==null&&((b==="le"||b==="be")&&(c=b,b=10),this._init(U||0,b||10,c||"be"))}typeof e=="object"?e.exports=s:r.BN=s,s.BN=s,s.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=kf.Buffer}catch{}s.isBN=function(b){return b instanceof s?!0:b!==null&&typeof b=="object"&&b.constructor.wordSize===s.wordSize&&Array.isArray(b.words)},s.max=function(b,c){return b.cmp(c)>0?b:c},s.min=function(b,c){return b.cmp(c)<0?b:c},s.prototype._init=function(b,c,u){if(typeof b=="number")return this._initNumber(b,c,u);if(typeof b=="object")return this._initArray(b,c,u);c==="hex"&&(c=16),i(c===(c|0)&&c>=2&&c<=36),b=b.toString().replace(/\s+/g,"");var g=0;b[0]==="-"&&(g++,this.negative=1),g<b.length&&(c===16?this._parseHex(b,g,u):(this._parseBase(b,c,g),u==="le"&&this._initArray(this.toArray(),c,u)))},s.prototype._initNumber=function(b,c,u){b<0&&(this.negative=1,b=-b),b<67108864?(this.words=[b&67108863],this.length=1):b<4503599627370496?(this.words=[b&67108863,b/67108864&67108863],this.length=2):(i(b<9007199254740992),this.words=[b&67108863,b/67108864&67108863,1],this.length=3),u==="le"&&this._initArray(this.toArray(),c,u)},s.prototype._initArray=function(b,c,u){if(i(typeof b.length=="number"),b.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(b.length/3),this.words=new Array(this.length);for(var g=0;g<this.length;g++)this.words[g]=0;var w,S,C=0;if(u==="be")for(g=b.length-1,w=0;g>=0;g-=3)S=b[g]|b[g-1]<<8|b[g-2]<<16,this.words[w]|=S<<C&67108863,this.words[w+1]=S>>>26-C&67108863,C+=24,C>=26&&(C-=26,w++);else if(u==="le")for(g=0,w=0;g<b.length;g+=3)S=b[g]|b[g+1]<<8|b[g+2]<<16,this.words[w]|=S<<C&67108863,this.words[w+1]=S>>>26-C&67108863,C+=24,C>=26&&(C-=26,w++);return this.strip()};function a(U,b){var c=U.charCodeAt(b);return c>=65&&c<=70?c-55:c>=97&&c<=102?c-87:c-48&15}function h(U,b,c){var u=a(U,c);return c-1>=b&&(u|=a(U,c-1)<<4),u}s.prototype._parseHex=function(b,c,u){this.length=Math.ceil((b.length-c)/6),this.words=new Array(this.length);for(var g=0;g<this.length;g++)this.words[g]=0;var w=0,S=0,C;if(u==="be")for(g=b.length-1;g>=c;g-=2)C=h(b,c,g)<<w,this.words[S]|=C&67108863,w>=18?(w-=18,S+=1,this.words[S]|=C>>>26):w+=8;else{var _=b.length-c;for(g=_%2===0?c+1:c;g<b.length;g+=2)C=h(b,c,g)<<w,this.words[S]|=C&67108863,w>=18?(w-=18,S+=1,this.words[S]|=C>>>26):w+=8}this.strip()};function f(U,b,c,u){for(var g=0,w=Math.min(U.length,c),S=b;S<w;S++){var C=U.charCodeAt(S)-48;g*=u,C>=49?g+=C-49+10:C>=17?g+=C-17+10:g+=C}return g}s.prototype._parseBase=function(b,c,u){this.words=[0],this.length=1;for(var g=0,w=1;w<=67108863;w*=c)g++;g--,w=w/c|0;for(var S=b.length-u,C=S%g,_=Math.min(S,S-C)+u,l=0,d=u;d<_;d+=g)l=f(b,d,d+g,c),this.imuln(w),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(C!==0){var N=1;for(l=f(b,d,b.length,c),d=0;d<C;d++)N*=c;this.imuln(N),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}this.strip()},s.prototype.copy=function(b){b.words=new Array(this.length);for(var c=0;c<this.length;c++)b.words[c]=this.words[c];b.length=this.length,b.negative=this.negative,b.red=this.red},s.prototype.clone=function(){var b=new s(null);return this.copy(b),b},s.prototype._expand=function(b){for(;this.length<b;)this.words[this.length++]=0;return this},s.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},s.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var p=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],v=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],x=[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];s.prototype.toString=function(b,c){b=b||10,c=c|0||1;var u;if(b===16||b==="hex"){u="";for(var g=0,w=0,S=0;S<this.length;S++){var C=this.words[S],_=((C<<g|w)&16777215).toString(16);w=C>>>24-g&16777215,g+=2,g>=26&&(g-=26,S--),w!==0||S!==this.length-1?u=p[6-_.length]+_+u:u=_+u}for(w!==0&&(u=w.toString(16)+u);u.length%c!==0;)u="0"+u;return this.negative!==0&&(u="-"+u),u}if(b===(b|0)&&b>=2&&b<=36){var l=v[b],d=x[b];u="";var N=this.clone();for(N.negative=0;!N.isZero();){var Y=N.modn(d).toString(b);N=N.idivn(d),N.isZero()?u=Y+u:u=p[l-Y.length]+Y+u}for(this.isZero()&&(u="0"+u);u.length%c!==0;)u="0"+u;return this.negative!==0&&(u="-"+u),u}i(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var b=this.words[0];return this.length===2?b+=this.words[1]*67108864:this.length===3&&this.words[2]===1?b+=4503599627370496+this.words[1]*67108864:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-b:b},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(b,c){return i(typeof o<"u"),this.toArrayLike(o,b,c)},s.prototype.toArray=function(b,c){return this.toArrayLike(Array,b,c)},s.prototype.toArrayLike=function(b,c,u){var g=this.byteLength(),w=u||Math.max(1,g);i(g<=w,"byte array longer than desired length"),i(w>0,"Requested array length <= 0"),this.strip();var S=c==="le",C=new b(w),_,l,d=this.clone();if(S){for(l=0;!d.isZero();l++)_=d.andln(255),d.iushrn(8),C[l]=_;for(;l<w;l++)C[l]=0}else{for(l=0;l<w-g;l++)C[l]=0;for(l=0;!d.isZero();l++)_=d.andln(255),d.iushrn(8),C[w-l-1]=_}return C},Math.clz32?s.prototype._countBits=function(b){return 32-Math.clz32(b)}:s.prototype._countBits=function(b){var c=b,u=0;return c>=4096&&(u+=13,c>>>=13),c>=64&&(u+=7,c>>>=7),c>=8&&(u+=4,c>>>=4),c>=2&&(u+=2,c>>>=2),u+c},s.prototype._zeroBits=function(b){if(b===0)return 26;var c=b,u=0;return c&8191||(u+=13,c>>>=13),c&127||(u+=7,c>>>=7),c&15||(u+=4,c>>>=4),c&3||(u+=2,c>>>=2),c&1||u++,u},s.prototype.bitLength=function(){var b=this.words[this.length-1],c=this._countBits(b);return(this.length-1)*26+c};function E(U){for(var b=new Array(U.bitLength()),c=0;c<b.length;c++){var u=c/26|0,g=c%26;b[c]=(U.words[u]&1<<g)>>>g}return b}s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var b=0,c=0;c<this.length;c++){var u=this._zeroBits(this.words[c]);if(b+=u,u!==26)break}return b},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(b){return this.negative!==0?this.abs().inotn(b).iaddn(1):this.clone()},s.prototype.fromTwos=function(b){return this.testn(b-1)?this.notn(b).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return this.negative!==0},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(b){for(;this.length<b.length;)this.words[this.length++]=0;for(var c=0;c<b.length;c++)this.words[c]=this.words[c]|b.words[c];return this.strip()},s.prototype.ior=function(b){return i((this.negative|b.negative)===0),this.iuor(b)},s.prototype.or=function(b){return this.length>b.length?this.clone().ior(b):b.clone().ior(this)},s.prototype.uor=function(b){return this.length>b.length?this.clone().iuor(b):b.clone().iuor(this)},s.prototype.iuand=function(b){var c;this.length>b.length?c=b:c=this;for(var u=0;u<c.length;u++)this.words[u]=this.words[u]&b.words[u];return this.length=c.length,this.strip()},s.prototype.iand=function(b){return i((this.negative|b.negative)===0),this.iuand(b)},s.prototype.and=function(b){return this.length>b.length?this.clone().iand(b):b.clone().iand(this)},s.prototype.uand=function(b){return this.length>b.length?this.clone().iuand(b):b.clone().iuand(this)},s.prototype.iuxor=function(b){var c,u;this.length>b.length?(c=this,u=b):(c=b,u=this);for(var g=0;g<u.length;g++)this.words[g]=c.words[g]^u.words[g];if(this!==c)for(;g<c.length;g++)this.words[g]=c.words[g];return this.length=c.length,this.strip()},s.prototype.ixor=function(b){return i((this.negative|b.negative)===0),this.iuxor(b)},s.prototype.xor=function(b){return this.length>b.length?this.clone().ixor(b):b.clone().ixor(this)},s.prototype.uxor=function(b){return this.length>b.length?this.clone().iuxor(b):b.clone().iuxor(this)},s.prototype.inotn=function(b){i(typeof b=="number"&&b>=0);var c=Math.ceil(b/26)|0,u=b%26;this._expand(c),u>0&&c--;for(var g=0;g<c;g++)this.words[g]=~this.words[g]&67108863;return u>0&&(this.words[g]=~this.words[g]&67108863>>26-u),this.strip()},s.prototype.notn=function(b){return this.clone().inotn(b)},s.prototype.setn=function(b,c){i(typeof b=="number"&&b>=0);var u=b/26|0,g=b%26;return this._expand(u+1),c?this.words[u]=this.words[u]|1<<g:this.words[u]=this.words[u]&~(1<<g),this.strip()},s.prototype.iadd=function(b){var c;if(this.negative!==0&&b.negative===0)return this.negative=0,c=this.isub(b),this.negative^=1,this._normSign();if(this.negative===0&&b.negative!==0)return b.negative=0,c=this.isub(b),b.negative=1,c._normSign();var u,g;this.length>b.length?(u=this,g=b):(u=b,g=this);for(var w=0,S=0;S<g.length;S++)c=(u.words[S]|0)+(g.words[S]|0)+w,this.words[S]=c&67108863,w=c>>>26;for(;w!==0&&S<u.length;S++)c=(u.words[S]|0)+w,this.words[S]=c&67108863,w=c>>>26;if(this.length=u.length,w!==0)this.words[this.length]=w,this.length++;else if(u!==this)for(;S<u.length;S++)this.words[S]=u.words[S];return this},s.prototype.add=function(b){var c;return b.negative!==0&&this.negative===0?(b.negative=0,c=this.sub(b),b.negative^=1,c):b.negative===0&&this.negative!==0?(this.negative=0,c=b.sub(this),this.negative=1,c):this.length>b.length?this.clone().iadd(b):b.clone().iadd(this)},s.prototype.isub=function(b){if(b.negative!==0){b.negative=0;var c=this.iadd(b);return b.negative=1,c._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(b),this.negative=1,this._normSign();var u=this.cmp(b);if(u===0)return this.negative=0,this.length=1,this.words[0]=0,this;var g,w;u>0?(g=this,w=b):(g=b,w=this);for(var S=0,C=0;C<w.length;C++)c=(g.words[C]|0)-(w.words[C]|0)+S,S=c>>26,this.words[C]=c&67108863;for(;S!==0&&C<g.length;C++)c=(g.words[C]|0)+S,S=c>>26,this.words[C]=c&67108863;if(S===0&&C<g.length&&g!==this)for(;C<g.length;C++)this.words[C]=g.words[C];return this.length=Math.max(this.length,C),g!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(b){return this.clone().isub(b)};function D(U,b,c){c.negative=b.negative^U.negative;var u=U.length+b.length|0;c.length=u,u=u-1|0;var g=U.words[0]|0,w=b.words[0]|0,S=g*w,C=S&67108863,_=S/67108864|0;c.words[0]=C;for(var l=1;l<u;l++){for(var d=_>>>26,N=_&67108863,Y=Math.min(l,b.length-1),te=Math.max(0,l-U.length+1);te<=Y;te++){var I=l-te|0;g=U.words[I]|0,w=b.words[te]|0,S=g*w+N,d+=S/67108864|0,N=S&67108863}c.words[l]=N|0,_=d|0}return _!==0?c.words[l]=_|0:c.length--,c.strip()}var B=function(b,c,u){var g=b.words,w=c.words,S=u.words,C=0,_,l,d,N=g[0]|0,Y=N&8191,te=N>>>13,I=g[1]|0,J=I&8191,k=I>>>13,H=g[2]|0,V=H&8191,m=H>>>13,z=g[3]|0,ee=z&8191,ie=z>>>13,se=g[4]|0,de=se&8191,O=se>>>13,A=g[5]|0,M=A&8191,$=A>>>13,G=g[6]|0,re=G&8191,X=G>>>13,ce=g[7]|0,fe=ce&8191,oe=ce>>>13,le=g[8]|0,he=le&8191,ue=le>>>13,we=g[9]|0,me=we&8191,ge=we>>>13,De=w[0]|0,Ne=De&8191,ve=De>>>13,Ce=w[1]|0,Ye=Ce&8191,Te=Ce>>>13,Qe=w[2]|0,Ve=Qe&8191,Re=Qe>>>13,it=w[3]|0,nt=it&8191,_e=it>>>13,Pe=w[4]|0,Fe=Pe&8191,Ee=Pe>>>13,Le=w[5]|0,Be=Le&8191,Se=Le>>>13,$e=w[6]|0,qe=$e&8191,Me=$e>>>13,ze=w[7]|0,Ue=ze&8191,Ae=ze>>>13,Oe=w[8]|0,Ke=Oe&8191,Ie=Oe>>>13,st=w[9]|0,ot=st&8191,ke=st>>>13;u.negative=b.negative^c.negative,u.length=19,_=Math.imul(Y,Ne),l=Math.imul(Y,ve),l=l+Math.imul(te,Ne)|0,d=Math.imul(te,ve);var Je=(C+_|0)+((l&8191)<<13)|0;C=(d+(l>>>13)|0)+(Je>>>26)|0,Je&=67108863,_=Math.imul(J,Ne),l=Math.imul(J,ve),l=l+Math.imul(k,Ne)|0,d=Math.imul(k,ve),_=_+Math.imul(Y,Ye)|0,l=l+Math.imul(Y,Te)|0,l=l+Math.imul(te,Ye)|0,d=d+Math.imul(te,Te)|0;var Qt=(C+_|0)+((l&8191)<<13)|0;C=(d+(l>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,_=Math.imul(V,Ne),l=Math.imul(V,ve),l=l+Math.imul(m,Ne)|0,d=Math.imul(m,ve),_=_+Math.imul(J,Ye)|0,l=l+Math.imul(J,Te)|0,l=l+Math.imul(k,Ye)|0,d=d+Math.imul(k,Te)|0,_=_+Math.imul(Y,Ve)|0,l=l+Math.imul(Y,Re)|0,l=l+Math.imul(te,Ve)|0,d=d+Math.imul(te,Re)|0;var Xt=(C+_|0)+((l&8191)<<13)|0;C=(d+(l>>>13)|0)+(Xt>>>26)|0,Xt&=67108863,_=Math.imul(ee,Ne),l=Math.imul(ee,ve),l=l+Math.imul(ie,Ne)|0,d=Math.imul(ie,ve),_=_+Math.imul(V,Ye)|0,l=l+Math.imul(V,Te)|0,l=l+Math.imul(m,Ye)|0,d=d+Math.imul(m,Te)|0,_=_+Math.imul(J,Ve)|0,l=l+Math.imul(J,Re)|0,l=l+Math.imul(k,Ve)|0,d=d+Math.imul(k,Re)|0,_=_+Math.imul(Y,nt)|0,l=l+Math.imul(Y,_e)|0,l=l+Math.imul(te,nt)|0,d=d+Math.imul(te,_e)|0;var Zt=(C+_|0)+((l&8191)<<13)|0;C=(d+(l>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,_=Math.imul(de,Ne),l=Math.imul(de,ve),l=l+Math.imul(O,Ne)|0,d=Math.imul(O,ve),_=_+Math.imul(ee,Ye)|0,l=l+Math.imul(ee,Te)|0,l=l+Math.imul(ie,Ye)|0,d=d+Math.imul(ie,Te)|0,_=_+Math.imul(V,Ve)|0,l=l+Math.imul(V,Re)|0,l=l+Math.imul(m,Ve)|0,d=d+Math.imul(m,Re)|0,_=_+Math.imul(J,nt)|0,l=l+Math.imul(J,_e)|0,l=l+Math.imul(k,nt)|0,d=d+Math.imul(k,_e)|0,_=_+Math.imul(Y,Fe)|0,l=l+Math.imul(Y,Ee)|0,l=l+Math.imul(te,Fe)|0,d=d+Math.imul(te,Ee)|0;var er=(C+_|0)+((l&8191)<<13)|0;C=(d+(l>>>13)|0)+(er>>>26)|0,er&=67108863,_=Math.imul(M,Ne),l=Math.imul(M,ve),l=l+Math.imul($,Ne)|0,d=Math.imul($,ve),_=_+Math.imul(de,Ye)|0,l=l+Math.imul(de,Te)|0,l=l+Math.imul(O,Ye)|0,d=d+Math.imul(O,Te)|0,_=_+Math.imul(ee,Ve)|0,l=l+Math.imul(ee,Re)|0,l=l+Math.imul(ie,Ve)|0,d=d+Math.imul(ie,Re)|0,_=_+Math.imul(V,nt)|0,l=l+Math.imul(V,_e)|0,l=l+Math.imul(m,nt)|0,d=d+Math.imul(m,_e)|0,_=_+Math.imul(J,Fe)|0,l=l+Math.imul(J,Ee)|0,l=l+Math.imul(k,Fe)|0,d=d+Math.imul(k,Ee)|0,_=_+Math.imul(Y,Be)|0,l=l+Math.imul(Y,Se)|0,l=l+Math.imul(te,Be)|0,d=d+Math.imul(te,Se)|0;var tr=(C+_|0)+((l&8191)<<13)|0;C=(d+(l>>>13)|0)+(tr>>>26)|0,tr&=67108863,_=Math.imul(re,Ne),l=Math.imul(re,ve),l=l+Math.imul(X,Ne)|0,d=Math.imul(X,ve),_=_+Math.imul(M,Ye)|0,l=l+Math.imul(M,Te)|0,l=l+Math.imul($,Ye)|0,d=d+Math.imul($,Te)|0,_=_+Math.imul(de,Ve)|0,l=l+Math.imul(de,Re)|0,l=l+Math.imul(O,Ve)|0,d=d+Math.imul(O,Re)|0,_=_+Math.imul(ee,nt)|0,l=l+Math.imul(ee,_e)|0,l=l+Math.imul(ie,nt)|0,d=d+Math.imul(ie,_e)|0,_=_+Math.imul(V,Fe)|0,l=l+Math.imul(V,Ee)|0,l=l+Math.imul(m,Fe)|0,d=d+Math.imul(m,Ee)|0,_=_+Math.imul(J,Be)|0,l=l+Math.imul(J,Se)|0,l=l+Math.imul(k,Be)|0,d=d+Math.imul(k,Se)|0,_=_+Math.imul(Y,qe)|0,l=l+Math.imul(Y,Me)|0,l=l+Math.imul(te,qe)|0,d=d+Math.imul(te,Me)|0;var Et=(C+_|0)+((l&8191)<<13)|0;C=(d+(l>>>13)|0)+(Et>>>26)|0,Et&=67108863,_=Math.imul(fe,Ne),l=Math.imul(fe,ve),l=l+Math.imul(oe,Ne)|0,d=Math.imul(oe,ve),_=_+Math.imul(re,Ye)|0,l=l+Math.imul(re,Te)|0,l=l+Math.imul(X,Ye)|0,d=d+Math.imul(X,Te)|0,_=_+Math.imul(M,Ve)|0,l=l+Math.imul(M,Re)|0,l=l+Math.imul($,Ve)|0,d=d+Math.imul($,Re)|0,_=_+Math.imul(de,nt)|0,l=l+Math.imul(de,_e)|0,l=l+Math.imul(O,nt)|0,d=d+Math.imul(O,_e)|0,_=_+Math.imul(ee,Fe)|0,l=l+Math.imul(ee,Ee)|0,l=l+Math.imul(ie,Fe)|0,d=d+Math.imul(ie,Ee)|0,_=_+Math.imul(V,Be)|0,l=l+Math.imul(V,Se)|0,l=l+Math.imul(m,Be)|0,d=d+Math.imul(m,Se)|0,_=_+Math.imul(J,qe)|0,l=l+Math.imul(J,Me)|0,l=l+Math.imul(k,qe)|0,d=d+Math.imul(k,Me)|0,_=_+Math.imul(Y,Ue)|0,l=l+Math.imul(Y,Ae)|0,l=l+Math.imul(te,Ue)|0,d=d+Math.imul(te,Ae)|0;var vi=(C+_|0)+((l&8191)<<13)|0;C=(d+(l>>>13)|0)+(vi>>>26)|0,vi&=67108863,_=Math.imul(he,Ne),l=Math.imul(he,ve),l=l+Math.imul(ue,Ne)|0,d=Math.imul(ue,ve),_=_+Math.imul(fe,Ye)|0,l=l+Math.imul(fe,Te)|0,l=l+Math.imul(oe,Ye)|0,d=d+Math.imul(oe,Te)|0,_=_+Math.imul(re,Ve)|0,l=l+Math.imul(re,Re)|0,l=l+Math.imul(X,Ve)|0,d=d+Math.imul(X,Re)|0,_=_+Math.imul(M,nt)|0,l=l+Math.imul(M,_e)|0,l=l+Math.imul($,nt)|0,d=d+Math.imul($,_e)|0,_=_+Math.imul(de,Fe)|0,l=l+Math.imul(de,Ee)|0,l=l+Math.imul(O,Fe)|0,d=d+Math.imul(O,Ee)|0,_=_+Math.imul(ee,Be)|0,l=l+Math.imul(ee,Se)|0,l=l+Math.imul(ie,Be)|0,d=d+Math.imul(ie,Se)|0,_=_+Math.imul(V,qe)|0,l=l+Math.imul(V,Me)|0,l=l+Math.imul(m,qe)|0,d=d+Math.imul(m,Me)|0,_=_+Math.imul(J,Ue)|0,l=l+Math.imul(J,Ae)|0,l=l+Math.imul(k,Ue)|0,d=d+Math.imul(k,Ae)|0,_=_+Math.imul(Y,Ke)|0,l=l+Math.imul(Y,Ie)|0,l=l+Math.imul(te,Ke)|0,d=d+Math.imul(te,Ie)|0;var mi=(C+_|0)+((l&8191)<<13)|0;C=(d+(l>>>13)|0)+(mi>>>26)|0,mi&=67108863,_=Math.imul(me,Ne),l=Math.imul(me,ve),l=l+Math.imul(ge,Ne)|0,d=Math.imul(ge,ve),_=_+Math.imul(he,Ye)|0,l=l+Math.imul(he,Te)|0,l=l+Math.imul(ue,Ye)|0,d=d+Math.imul(ue,Te)|0,_=_+Math.imul(fe,Ve)|0,l=l+Math.imul(fe,Re)|0,l=l+Math.imul(oe,Ve)|0,d=d+Math.imul(oe,Re)|0,_=_+Math.imul(re,nt)|0,l=l+Math.imul(re,_e)|0,l=l+Math.imul(X,nt)|0,d=d+Math.imul(X,_e)|0,_=_+Math.imul(M,Fe)|0,l=l+Math.imul(M,Ee)|0,l=l+Math.imul($,Fe)|0,d=d+Math.imul($,Ee)|0,_=_+Math.imul(de,Be)|0,l=l+Math.imul(de,Se)|0,l=l+Math.imul(O,Be)|0,d=d+Math.imul(O,Se)|0,_=_+Math.imul(ee,qe)|0,l=l+Math.imul(ee,Me)|0,l=l+Math.imul(ie,qe)|0,d=d+Math.imul(ie,Me)|0,_=_+Math.imul(V,Ue)|0,l=l+Math.imul(V,Ae)|0,l=l+Math.imul(m,Ue)|0,d=d+Math.imul(m,Ae)|0,_=_+Math.imul(J,Ke)|0,l=l+Math.imul(J,Ie)|0,l=l+Math.imul(k,Ke)|0,d=d+Math.imul(k,Ie)|0,_=_+Math.imul(Y,ot)|0,l=l+Math.imul(Y,ke)|0,l=l+Math.imul(te,ot)|0,d=d+Math.imul(te,ke)|0;var yi=(C+_|0)+((l&8191)<<13)|0;C=(d+(l>>>13)|0)+(yi>>>26)|0,yi&=67108863,_=Math.imul(me,Ye),l=Math.imul(me,Te),l=l+Math.imul(ge,Ye)|0,d=Math.imul(ge,Te),_=_+Math.imul(he,Ve)|0,l=l+Math.imul(he,Re)|0,l=l+Math.imul(ue,Ve)|0,d=d+Math.imul(ue,Re)|0,_=_+Math.imul(fe,nt)|0,l=l+Math.imul(fe,_e)|0,l=l+Math.imul(oe,nt)|0,d=d+Math.imul(oe,_e)|0,_=_+Math.imul(re,Fe)|0,l=l+Math.imul(re,Ee)|0,l=l+Math.imul(X,Fe)|0,d=d+Math.imul(X,Ee)|0,_=_+Math.imul(M,Be)|0,l=l+Math.imul(M,Se)|0,l=l+Math.imul($,Be)|0,d=d+Math.imul($,Se)|0,_=_+Math.imul(de,qe)|0,l=l+Math.imul(de,Me)|0,l=l+Math.imul(O,qe)|0,d=d+Math.imul(O,Me)|0,_=_+Math.imul(ee,Ue)|0,l=l+Math.imul(ee,Ae)|0,l=l+Math.imul(ie,Ue)|0,d=d+Math.imul(ie,Ae)|0,_=_+Math.imul(V,Ke)|0,l=l+Math.imul(V,Ie)|0,l=l+Math.imul(m,Ke)|0,d=d+Math.imul(m,Ie)|0,_=_+Math.imul(J,ot)|0,l=l+Math.imul(J,ke)|0,l=l+Math.imul(k,ot)|0,d=d+Math.imul(k,ke)|0;var wi=(C+_|0)+((l&8191)<<13)|0;C=(d+(l>>>13)|0)+(wi>>>26)|0,wi&=67108863,_=Math.imul(me,Ve),l=Math.imul(me,Re),l=l+Math.imul(ge,Ve)|0,d=Math.imul(ge,Re),_=_+Math.imul(he,nt)|0,l=l+Math.imul(he,_e)|0,l=l+Math.imul(ue,nt)|0,d=d+Math.imul(ue,_e)|0,_=_+Math.imul(fe,Fe)|0,l=l+Math.imul(fe,Ee)|0,l=l+Math.imul(oe,Fe)|0,d=d+Math.imul(oe,Ee)|0,_=_+Math.imul(re,Be)|0,l=l+Math.imul(re,Se)|0,l=l+Math.imul(X,Be)|0,d=d+Math.imul(X,Se)|0,_=_+Math.imul(M,qe)|0,l=l+Math.imul(M,Me)|0,l=l+Math.imul($,qe)|0,d=d+Math.imul($,Me)|0,_=_+Math.imul(de,Ue)|0,l=l+Math.imul(de,Ae)|0,l=l+Math.imul(O,Ue)|0,d=d+Math.imul(O,Ae)|0,_=_+Math.imul(ee,Ke)|0,l=l+Math.imul(ee,Ie)|0,l=l+Math.imul(ie,Ke)|0,d=d+Math.imul(ie,Ie)|0,_=_+Math.imul(V,ot)|0,l=l+Math.imul(V,ke)|0,l=l+Math.imul(m,ot)|0,d=d+Math.imul(m,ke)|0;var _i=(C+_|0)+((l&8191)<<13)|0;C=(d+(l>>>13)|0)+(_i>>>26)|0,_i&=67108863,_=Math.imul(me,nt),l=Math.imul(me,_e),l=l+Math.imul(ge,nt)|0,d=Math.imul(ge,_e),_=_+Math.imul(he,Fe)|0,l=l+Math.imul(he,Ee)|0,l=l+Math.imul(ue,Fe)|0,d=d+Math.imul(ue,Ee)|0,_=_+Math.imul(fe,Be)|0,l=l+Math.imul(fe,Se)|0,l=l+Math.imul(oe,Be)|0,d=d+Math.imul(oe,Se)|0,_=_+Math.imul(re,qe)|0,l=l+Math.imul(re,Me)|0,l=l+Math.imul(X,qe)|0,d=d+Math.imul(X,Me)|0,_=_+Math.imul(M,Ue)|0,l=l+Math.imul(M,Ae)|0,l=l+Math.imul($,Ue)|0,d=d+Math.imul($,Ae)|0,_=_+Math.imul(de,Ke)|0,l=l+Math.imul(de,Ie)|0,l=l+Math.imul(O,Ke)|0,d=d+Math.imul(O,Ie)|0,_=_+Math.imul(ee,ot)|0,l=l+Math.imul(ee,ke)|0,l=l+Math.imul(ie,ot)|0,d=d+Math.imul(ie,ke)|0;var yr=(C+_|0)+((l&8191)<<13)|0;C=(d+(l>>>13)|0)+(yr>>>26)|0,yr&=67108863,_=Math.imul(me,Fe),l=Math.imul(me,Ee),l=l+Math.imul(ge,Fe)|0,d=Math.imul(ge,Ee),_=_+Math.imul(he,Be)|0,l=l+Math.imul(he,Se)|0,l=l+Math.imul(ue,Be)|0,d=d+Math.imul(ue,Se)|0,_=_+Math.imul(fe,qe)|0,l=l+Math.imul(fe,Me)|0,l=l+Math.imul(oe,qe)|0,d=d+Math.imul(oe,Me)|0,_=_+Math.imul(re,Ue)|0,l=l+Math.imul(re,Ae)|0,l=l+Math.imul(X,Ue)|0,d=d+Math.imul(X,Ae)|0,_=_+Math.imul(M,Ke)|0,l=l+Math.imul(M,Ie)|0,l=l+Math.imul($,Ke)|0,d=d+Math.imul($,Ie)|0,_=_+Math.imul(de,ot)|0,l=l+Math.imul(de,ke)|0,l=l+Math.imul(O,ot)|0,d=d+Math.imul(O,ke)|0;var Ei=(C+_|0)+((l&8191)<<13)|0;C=(d+(l>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,_=Math.imul(me,Be),l=Math.imul(me,Se),l=l+Math.imul(ge,Be)|0,d=Math.imul(ge,Se),_=_+Math.imul(he,qe)|0,l=l+Math.imul(he,Me)|0,l=l+Math.imul(ue,qe)|0,d=d+Math.imul(ue,Me)|0,_=_+Math.imul(fe,Ue)|0,l=l+Math.imul(fe,Ae)|0,l=l+Math.imul(oe,Ue)|0,d=d+Math.imul(oe,Ae)|0,_=_+Math.imul(re,Ke)|0,l=l+Math.imul(re,Ie)|0,l=l+Math.imul(X,Ke)|0,d=d+Math.imul(X,Ie)|0,_=_+Math.imul(M,ot)|0,l=l+Math.imul(M,ke)|0,l=l+Math.imul($,ot)|0,d=d+Math.imul($,ke)|0;var Ai=(C+_|0)+((l&8191)<<13)|0;C=(d+(l>>>13)|0)+(Ai>>>26)|0,Ai&=67108863,_=Math.imul(me,qe),l=Math.imul(me,Me),l=l+Math.imul(ge,qe)|0,d=Math.imul(ge,Me),_=_+Math.imul(he,Ue)|0,l=l+Math.imul(he,Ae)|0,l=l+Math.imul(ue,Ue)|0,d=d+Math.imul(ue,Ae)|0,_=_+Math.imul(fe,Ke)|0,l=l+Math.imul(fe,Ie)|0,l=l+Math.imul(oe,Ke)|0,d=d+Math.imul(oe,Ie)|0,_=_+Math.imul(re,ot)|0,l=l+Math.imul(re,ke)|0,l=l+Math.imul(X,ot)|0,d=d+Math.imul(X,ke)|0;var $t=(C+_|0)+((l&8191)<<13)|0;C=(d+(l>>>13)|0)+($t>>>26)|0,$t&=67108863,_=Math.imul(me,Ue),l=Math.imul(me,Ae),l=l+Math.imul(ge,Ue)|0,d=Math.imul(ge,Ae),_=_+Math.imul(he,Ke)|0,l=l+Math.imul(he,Ie)|0,l=l+Math.imul(ue,Ke)|0,d=d+Math.imul(ue,Ie)|0,_=_+Math.imul(fe,ot)|0,l=l+Math.imul(fe,ke)|0,l=l+Math.imul(oe,ot)|0,d=d+Math.imul(oe,ke)|0;var xi=(C+_|0)+((l&8191)<<13)|0;C=(d+(l>>>13)|0)+(xi>>>26)|0,xi&=67108863,_=Math.imul(me,Ke),l=Math.imul(me,Ie),l=l+Math.imul(ge,Ke)|0,d=Math.imul(ge,Ie),_=_+Math.imul(he,ot)|0,l=l+Math.imul(he,ke)|0,l=l+Math.imul(ue,ot)|0,d=d+Math.imul(ue,ke)|0;var Si=(C+_|0)+((l&8191)<<13)|0;C=(d+(l>>>13)|0)+(Si>>>26)|0,Si&=67108863,_=Math.imul(me,ot),l=Math.imul(me,ke),l=l+Math.imul(ge,ot)|0,d=Math.imul(ge,ke);var Mi=(C+_|0)+((l&8191)<<13)|0;return C=(d+(l>>>13)|0)+(Mi>>>26)|0,Mi&=67108863,S[0]=Je,S[1]=Qt,S[2]=Xt,S[3]=Zt,S[4]=er,S[5]=tr,S[6]=Et,S[7]=vi,S[8]=mi,S[9]=yi,S[10]=wi,S[11]=_i,S[12]=yr,S[13]=Ei,S[14]=Ai,S[15]=$t,S[16]=xi,S[17]=Si,S[18]=Mi,C!==0&&(S[19]=C,u.length++),u};Math.imul||(B=D);function F(U,b,c){c.negative=b.negative^U.negative,c.length=U.length+b.length;for(var u=0,g=0,w=0;w<c.length-1;w++){var S=g;g=0;for(var C=u&67108863,_=Math.min(w,b.length-1),l=Math.max(0,w-U.length+1);l<=_;l++){var d=w-l,N=U.words[d]|0,Y=b.words[l]|0,te=N*Y,I=te&67108863;S=S+(te/67108864|0)|0,I=I+C|0,C=I&67108863,S=S+(I>>>26)|0,g+=S>>>26,S&=67108863}c.words[w]=C,u=S,S=g}return u!==0?c.words[w]=u:c.length--,c.strip()}function j(U,b,c){var u=new R;return u.mulp(U,b,c)}s.prototype.mulTo=function(b,c){var u,g=this.length+b.length;return this.length===10&&b.length===10?u=B(this,b,c):g<63?u=D(this,b,c):g<1024?u=F(this,b,c):u=j(this,b,c),u};function R(U,b){this.x=U,this.y=b}R.prototype.makeRBT=function(b){for(var c=new Array(b),u=s.prototype._countBits(b)-1,g=0;g<b;g++)c[g]=this.revBin(g,u,b);return c},R.prototype.revBin=function(b,c,u){if(b===0||b===u-1)return b;for(var g=0,w=0;w<c;w++)g|=(b&1)<<c-w-1,b>>=1;return g},R.prototype.permute=function(b,c,u,g,w,S){for(var C=0;C<S;C++)g[C]=c[b[C]],w[C]=u[b[C]]},R.prototype.transform=function(b,c,u,g,w,S){this.permute(S,b,c,u,g,w);for(var C=1;C<w;C<<=1)for(var _=C<<1,l=Math.cos(2*Math.PI/_),d=Math.sin(2*Math.PI/_),N=0;N<w;N+=_)for(var Y=l,te=d,I=0;I<C;I++){var J=u[N+I],k=g[N+I],H=u[N+I+C],V=g[N+I+C],m=Y*H-te*V;V=Y*V+te*H,H=m,u[N+I]=J+H,g[N+I]=k+V,u[N+I+C]=J-H,g[N+I+C]=k-V,I!==_&&(m=l*Y-d*te,te=l*te+d*Y,Y=m)}},R.prototype.guessLen13b=function(b,c){var u=Math.max(c,b)|1,g=u&1,w=0;for(u=u/2|0;u;u=u>>>1)w++;return 1<<w+1+g},R.prototype.conjugate=function(b,c,u){if(!(u<=1))for(var g=0;g<u/2;g++){var w=b[g];b[g]=b[u-g-1],b[u-g-1]=w,w=c[g],c[g]=-c[u-g-1],c[u-g-1]=-w}},R.prototype.normalize13b=function(b,c){for(var u=0,g=0;g<c/2;g++){var w=Math.round(b[2*g+1]/c)*8192+Math.round(b[2*g]/c)+u;b[g]=w&67108863,w<67108864?u=0:u=w/67108864|0}return b},R.prototype.convert13b=function(b,c,u,g){for(var w=0,S=0;S<c;S++)w=w+(b[S]|0),u[2*S]=w&8191,w=w>>>13,u[2*S+1]=w&8191,w=w>>>13;for(S=2*c;S<g;++S)u[S]=0;i(w===0),i((w&-8192)===0)},R.prototype.stub=function(b){for(var c=new Array(b),u=0;u<b;u++)c[u]=0;return c},R.prototype.mulp=function(b,c,u){var g=2*this.guessLen13b(b.length,c.length),w=this.makeRBT(g),S=this.stub(g),C=new Array(g),_=new Array(g),l=new Array(g),d=new Array(g),N=new Array(g),Y=new Array(g),te=u.words;te.length=g,this.convert13b(b.words,b.length,C,g),this.convert13b(c.words,c.length,d,g),this.transform(C,S,_,l,g,w),this.transform(d,S,N,Y,g,w);for(var I=0;I<g;I++){var J=_[I]*N[I]-l[I]*Y[I];l[I]=_[I]*Y[I]+l[I]*N[I],_[I]=J}return this.conjugate(_,l,g),this.transform(_,l,te,S,g,w),this.conjugate(te,S,g),this.normalize13b(te,g),u.negative=b.negative^c.negative,u.length=b.length+c.length,u.strip()},s.prototype.mul=function(b){var c=new s(null);return c.words=new Array(this.length+b.length),this.mulTo(b,c)},s.prototype.mulf=function(b){var c=new s(null);return c.words=new Array(this.length+b.length),j(this,b,c)},s.prototype.imul=function(b){return this.clone().mulTo(b,this)},s.prototype.imuln=function(b){i(typeof b=="number"),i(b<67108864);for(var c=0,u=0;u<this.length;u++){var g=(this.words[u]|0)*b,w=(g&67108863)+(c&67108863);c>>=26,c+=g/67108864|0,c+=w>>>26,this.words[u]=w&67108863}return c!==0&&(this.words[u]=c,this.length++),this},s.prototype.muln=function(b){return this.clone().imuln(b)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(b){var c=E(b);if(c.length===0)return new s(1);for(var u=this,g=0;g<c.length&&c[g]===0;g++,u=u.sqr());if(++g<c.length)for(var w=u.sqr();g<c.length;g++,w=w.sqr())c[g]!==0&&(u=u.mul(w));return u},s.prototype.iushln=function(b){i(typeof b=="number"&&b>=0);var c=b%26,u=(b-c)/26,g=67108863>>>26-c<<26-c,w;if(c!==0){var S=0;for(w=0;w<this.length;w++){var C=this.words[w]&g,_=(this.words[w]|0)-C<<c;this.words[w]=_|S,S=C>>>26-c}S&&(this.words[w]=S,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()},s.prototype.ishln=function(b){return i(this.negative===0),this.iushln(b)},s.prototype.iushrn=function(b,c,u){i(typeof b=="number"&&b>=0);var g;c?g=(c-c%26)/26:g=0;var w=b%26,S=Math.min((b-w)/26,this.length),C=67108863^67108863>>>w<<w,_=u;if(g-=S,g=Math.max(0,g),_){for(var l=0;l<S;l++)_.words[l]=this.words[l];_.length=S}if(S!==0)if(this.length>S)for(this.length-=S,l=0;l<this.length;l++)this.words[l]=this.words[l+S];else this.words[0]=0,this.length=1;var d=0;for(l=this.length-1;l>=0&&(d!==0||l>=g);l--){var N=this.words[l]|0;this.words[l]=d<<26-w|N>>>w,d=N&C}return _&&d!==0&&(_.words[_.length++]=d),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(b,c,u){return i(this.negative===0),this.iushrn(b,c,u)},s.prototype.shln=function(b){return this.clone().ishln(b)},s.prototype.ushln=function(b){return this.clone().iushln(b)},s.prototype.shrn=function(b){return this.clone().ishrn(b)},s.prototype.ushrn=function(b){return this.clone().iushrn(b)},s.prototype.testn=function(b){i(typeof b=="number"&&b>=0);var c=b%26,u=(b-c)/26,g=1<<c;if(this.length<=u)return!1;var w=this.words[u];return!!(w&g)},s.prototype.imaskn=function(b){i(typeof b=="number"&&b>=0);var c=b%26,u=(b-c)/26;if(i(this.negative===0,"imaskn works only with positive numbers"),this.length<=u)return this;if(c!==0&&u++,this.length=Math.min(u,this.length),c!==0){var g=67108863^67108863>>>c<<c;this.words[this.length-1]&=g}return this.strip()},s.prototype.maskn=function(b){return this.clone().imaskn(b)},s.prototype.iaddn=function(b){return i(typeof b=="number"),i(b<67108864),b<0?this.isubn(-b):this.negative!==0?this.length===1&&(this.words[0]|0)<b?(this.words[0]=b-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(b),this.negative=1,this):this._iaddn(b)},s.prototype._iaddn=function(b){this.words[0]+=b;for(var c=0;c<this.length&&this.words[c]>=67108864;c++)this.words[c]-=67108864,c===this.length-1?this.words[c+1]=1:this.words[c+1]++;return this.length=Math.max(this.length,c+1),this},s.prototype.isubn=function(b){if(i(typeof b=="number"),i(b<67108864),b<0)return this.iaddn(-b);if(this.negative!==0)return this.negative=0,this.iaddn(b),this.negative=1,this;if(this.words[0]-=b,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var c=0;c<this.length&&this.words[c]<0;c++)this.words[c]+=67108864,this.words[c+1]-=1;return this.strip()},s.prototype.addn=function(b){return this.clone().iaddn(b)},s.prototype.subn=function(b){return this.clone().isubn(b)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(b,c,u){var g=b.length+u,w;this._expand(g);var S,C=0;for(w=0;w<b.length;w++){S=(this.words[w+u]|0)+C;var _=(b.words[w]|0)*c;S-=_&67108863,C=(S>>26)-(_/67108864|0),this.words[w+u]=S&67108863}for(;w<this.length-u;w++)S=(this.words[w+u]|0)+C,C=S>>26,this.words[w+u]=S&67108863;if(C===0)return this.strip();for(i(C===-1),C=0,w=0;w<this.length;w++)S=-(this.words[w]|0)+C,C=S>>26,this.words[w]=S&67108863;return this.negative=1,this.strip()},s.prototype._wordDiv=function(b,c){var u=this.length-b.length,g=this.clone(),w=b,S=w.words[w.length-1]|0,C=this._countBits(S);u=26-C,u!==0&&(w=w.ushln(u),g.iushln(u),S=w.words[w.length-1]|0);var _=g.length-w.length,l;if(c!=="mod"){l=new s(null),l.length=_+1,l.words=new Array(l.length);for(var d=0;d<l.length;d++)l.words[d]=0}var N=g.clone()._ishlnsubmul(w,1,_);N.negative===0&&(g=N,l&&(l.words[_]=1));for(var Y=_-1;Y>=0;Y--){var te=(g.words[w.length+Y]|0)*67108864+(g.words[w.length+Y-1]|0);for(te=Math.min(te/S|0,67108863),g._ishlnsubmul(w,te,Y);g.negative!==0;)te--,g.negative=0,g._ishlnsubmul(w,1,Y),g.isZero()||(g.negative^=1);l&&(l.words[Y]=te)}return l&&l.strip(),g.strip(),c!=="div"&&u!==0&&g.iushrn(u),{div:l||null,mod:g}},s.prototype.divmod=function(b,c,u){if(i(!b.isZero()),this.isZero())return{div:new s(0),mod:new s(0)};var g,w,S;return this.negative!==0&&b.negative===0?(S=this.neg().divmod(b,c),c!=="mod"&&(g=S.div.neg()),c!=="div"&&(w=S.mod.neg(),u&&w.negative!==0&&w.iadd(b)),{div:g,mod:w}):this.negative===0&&b.negative!==0?(S=this.divmod(b.neg(),c),c!=="mod"&&(g=S.div.neg()),{div:g,mod:S.mod}):this.negative&b.negative?(S=this.neg().divmod(b.neg(),c),c!=="div"&&(w=S.mod.neg(),u&&w.negative!==0&&w.isub(b)),{div:S.div,mod:w}):b.length>this.length||this.cmp(b)<0?{div:new s(0),mod:this}:b.length===1?c==="div"?{div:this.divn(b.words[0]),mod:null}:c==="mod"?{div:null,mod:new s(this.modn(b.words[0]))}:{div:this.divn(b.words[0]),mod:new s(this.modn(b.words[0]))}:this._wordDiv(b,c)},s.prototype.div=function(b){return this.divmod(b,"div",!1).div},s.prototype.mod=function(b){return this.divmod(b,"mod",!1).mod},s.prototype.umod=function(b){return this.divmod(b,"mod",!0).mod},s.prototype.divRound=function(b){var c=this.divmod(b);if(c.mod.isZero())return c.div;var u=c.div.negative!==0?c.mod.isub(b):c.mod,g=b.ushrn(1),w=b.andln(1),S=u.cmp(g);return S<0||w===1&&S===0?c.div:c.div.negative!==0?c.div.isubn(1):c.div.iaddn(1)},s.prototype.modn=function(b){i(b<=67108863);for(var c=(1<<26)%b,u=0,g=this.length-1;g>=0;g--)u=(c*u+(this.words[g]|0))%b;return u},s.prototype.idivn=function(b){i(b<=67108863);for(var c=0,u=this.length-1;u>=0;u--){var g=(this.words[u]|0)+c*67108864;this.words[u]=g/b|0,c=g%b}return this.strip()},s.prototype.divn=function(b){return this.clone().idivn(b)},s.prototype.egcd=function(b){i(b.negative===0),i(!b.isZero());var c=this,u=b.clone();c.negative!==0?c=c.umod(b):c=c.clone();for(var g=new s(1),w=new s(0),S=new s(0),C=new s(1),_=0;c.isEven()&&u.isEven();)c.iushrn(1),u.iushrn(1),++_;for(var l=u.clone(),d=c.clone();!c.isZero();){for(var N=0,Y=1;!(c.words[0]&Y)&&N<26;++N,Y<<=1);if(N>0)for(c.iushrn(N);N-- >0;)(g.isOdd()||w.isOdd())&&(g.iadd(l),w.isub(d)),g.iushrn(1),w.iushrn(1);for(var te=0,I=1;!(u.words[0]&I)&&te<26;++te,I<<=1);if(te>0)for(u.iushrn(te);te-- >0;)(S.isOdd()||C.isOdd())&&(S.iadd(l),C.isub(d)),S.iushrn(1),C.iushrn(1);c.cmp(u)>=0?(c.isub(u),g.isub(S),w.isub(C)):(u.isub(c),S.isub(g),C.isub(w))}return{a:S,b:C,gcd:u.iushln(_)}},s.prototype._invmp=function(b){i(b.negative===0),i(!b.isZero());var c=this,u=b.clone();c.negative!==0?c=c.umod(b):c=c.clone();for(var g=new s(1),w=new s(0),S=u.clone();c.cmpn(1)>0&&u.cmpn(1)>0;){for(var C=0,_=1;!(c.words[0]&_)&&C<26;++C,_<<=1);if(C>0)for(c.iushrn(C);C-- >0;)g.isOdd()&&g.iadd(S),g.iushrn(1);for(var l=0,d=1;!(u.words[0]&d)&&l<26;++l,d<<=1);if(l>0)for(u.iushrn(l);l-- >0;)w.isOdd()&&w.iadd(S),w.iushrn(1);c.cmp(u)>=0?(c.isub(u),g.isub(w)):(u.isub(c),w.isub(g))}var N;return c.cmpn(1)===0?N=g:N=w,N.cmpn(0)<0&&N.iadd(b),N},s.prototype.gcd=function(b){if(this.isZero())return b.abs();if(b.isZero())return this.abs();var c=this.clone(),u=b.clone();c.negative=0,u.negative=0;for(var g=0;c.isEven()&&u.isEven();g++)c.iushrn(1),u.iushrn(1);do{for(;c.isEven();)c.iushrn(1);for(;u.isEven();)u.iushrn(1);var w=c.cmp(u);if(w<0){var S=c;c=u,u=S}else if(w===0||u.cmpn(1)===0)break;c.isub(u)}while(!0);return u.iushln(g)},s.prototype.invm=function(b){return this.egcd(b).a.umod(b)},s.prototype.isEven=function(){return(this.words[0]&1)===0},s.prototype.isOdd=function(){return(this.words[0]&1)===1},s.prototype.andln=function(b){return this.words[0]&b},s.prototype.bincn=function(b){i(typeof b=="number");var c=b%26,u=(b-c)/26,g=1<<c;if(this.length<=u)return this._expand(u+1),this.words[u]|=g,this;for(var w=g,S=u;w!==0&&S<this.length;S++){var C=this.words[S]|0;C+=w,w=C>>>26,C&=67108863,this.words[S]=C}return w!==0&&(this.words[S]=w,this.length++),this},s.prototype.isZero=function(){return this.length===1&&this.words[0]===0},s.prototype.cmpn=function(b){var c=b<0;if(this.negative!==0&&!c)return-1;if(this.negative===0&&c)return 1;this.strip();var u;if(this.length>1)u=1;else{c&&(b=-b),i(b<=67108863,"Number is too big");var g=this.words[0]|0;u=g===b?0:g<b?-1:1}return this.negative!==0?-u|0:u},s.prototype.cmp=function(b){if(this.negative!==0&&b.negative===0)return-1;if(this.negative===0&&b.negative!==0)return 1;var c=this.ucmp(b);return this.negative!==0?-c|0:c},s.prototype.ucmp=function(b){if(this.length>b.length)return 1;if(this.length<b.length)return-1;for(var c=0,u=this.length-1;u>=0;u--){var g=this.words[u]|0,w=b.words[u]|0;if(g!==w){g<w?c=-1:g>w&&(c=1);break}}return c},s.prototype.gtn=function(b){return this.cmpn(b)===1},s.prototype.gt=function(b){return this.cmp(b)===1},s.prototype.gten=function(b){return this.cmpn(b)>=0},s.prototype.gte=function(b){return this.cmp(b)>=0},s.prototype.ltn=function(b){return this.cmpn(b)===-1},s.prototype.lt=function(b){return this.cmp(b)===-1},s.prototype.lten=function(b){return this.cmpn(b)<=0},s.prototype.lte=function(b){return this.cmp(b)<=0},s.prototype.eqn=function(b){return this.cmpn(b)===0},s.prototype.eq=function(b){return this.cmp(b)===0},s.red=function(b){return new Z(b)},s.prototype.toRed=function(b){return i(!this.red,"Already a number in reduction context"),i(this.negative===0,"red works only with positives"),b.convertTo(this)._forceRed(b)},s.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(b){return this.red=b,this},s.prototype.forceRed=function(b){return i(!this.red,"Already a number in reduction context"),this._forceRed(b)},s.prototype.redAdd=function(b){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,b)},s.prototype.redIAdd=function(b){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,b)},s.prototype.redSub=function(b){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,b)},s.prototype.redISub=function(b){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,b)},s.prototype.redShl=function(b){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,b)},s.prototype.redMul=function(b){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,b),this.red.mul(this,b)},s.prototype.redIMul=function(b){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,b),this.red.imul(this,b)},s.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(b){return i(this.red&&!b.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,b)};var K={k256:null,p224:null,p192:null,p25519:null};function T(U,b){this.name=U,this.p=new s(b,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}T.prototype._tmp=function(){var b=new s(null);return b.words=new Array(Math.ceil(this.n/13)),b},T.prototype.ireduce=function(b){var c=b,u;do this.split(c,this.tmp),c=this.imulK(c),c=c.iadd(this.tmp),u=c.bitLength();while(u>this.n);var g=u<this.n?-1:c.ucmp(this.p);return g===0?(c.words[0]=0,c.length=1):g>0?c.isub(this.p):c.strip!==void 0?c.strip():c._strip(),c},T.prototype.split=function(b,c){b.iushrn(this.n,0,c)},T.prototype.imulK=function(b){return b.imul(this.k)};function L(){T.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(L,T),L.prototype.split=function(b,c){for(var u=4194303,g=Math.min(b.length,9),w=0;w<g;w++)c.words[w]=b.words[w];if(c.length=g,b.length<=9){b.words[0]=0,b.length=1;return}var S=b.words[9];for(c.words[c.length++]=S&u,w=10;w<b.length;w++){var C=b.words[w]|0;b.words[w-10]=(C&u)<<4|S>>>22,S=C}S>>>=22,b.words[w-10]=S,S===0&&b.length>10?b.length-=10:b.length-=9},L.prototype.imulK=function(b){b.words[b.length]=0,b.words[b.length+1]=0,b.length+=2;for(var c=0,u=0;u<b.length;u++){var g=b.words[u]|0;c+=g*977,b.words[u]=c&67108863,c=g*64+(c/67108864|0)}return b.words[b.length-1]===0&&(b.length--,b.words[b.length-1]===0&&b.length--),b};function q(){T.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}n(q,T);function y(){T.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}n(y,T);function P(){T.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}n(P,T),P.prototype.imulK=function(b){for(var c=0,u=0;u<b.length;u++){var g=(b.words[u]|0)*19+c,w=g&67108863;g>>>=26,b.words[u]=w,c=g}return c!==0&&(b.words[b.length++]=c),b},s._prime=function(b){if(K[b])return K[b];var c;if(b==="k256")c=new L;else if(b==="p224")c=new q;else if(b==="p192")c=new y;else if(b==="p25519")c=new P;else throw new Error("Unknown prime "+b);return K[b]=c,c};function Z(U){if(typeof U=="string"){var b=s._prime(U);this.m=b.p,this.prime=b}else i(U.gtn(1),"modulus must be greater than 1"),this.m=U,this.prime=null}Z.prototype._verify1=function(b){i(b.negative===0,"red works only with positives"),i(b.red,"red works only with red numbers")},Z.prototype._verify2=function(b,c){i((b.negative|c.negative)===0,"red works only with positives"),i(b.red&&b.red===c.red,"red works only with red numbers")},Z.prototype.imod=function(b){return this.prime?this.prime.ireduce(b)._forceRed(this):b.umod(this.m)._forceRed(this)},Z.prototype.neg=function(b){return b.isZero()?b.clone():this.m.sub(b)._forceRed(this)},Z.prototype.add=function(b,c){this._verify2(b,c);var u=b.add(c);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},Z.prototype.iadd=function(b,c){this._verify2(b,c);var u=b.iadd(c);return u.cmp(this.m)>=0&&u.isub(this.m),u},Z.prototype.sub=function(b,c){this._verify2(b,c);var u=b.sub(c);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},Z.prototype.isub=function(b,c){this._verify2(b,c);var u=b.isub(c);return u.cmpn(0)<0&&u.iadd(this.m),u},Z.prototype.shl=function(b,c){return this._verify1(b),this.imod(b.ushln(c))},Z.prototype.imul=function(b,c){return this._verify2(b,c),this.imod(b.imul(c))},Z.prototype.mul=function(b,c){return this._verify2(b,c),this.imod(b.mul(c))},Z.prototype.isqr=function(b){return this.imul(b,b.clone())},Z.prototype.sqr=function(b){return this.mul(b,b)},Z.prototype.sqrt=function(b){if(b.isZero())return b.clone();var c=this.m.andln(3);if(i(c%2===1),c===3){var u=this.m.add(new s(1)).iushrn(2);return this.pow(b,u)}for(var g=this.m.subn(1),w=0;!g.isZero()&&g.andln(1)===0;)w++,g.iushrn(1);i(!g.isZero());var S=new s(1).toRed(this),C=S.redNeg(),_=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new s(2*l*l).toRed(this);this.pow(l,_).cmp(C)!==0;)l.redIAdd(C);for(var d=this.pow(l,g),N=this.pow(b,g.addn(1).iushrn(1)),Y=this.pow(b,g),te=w;Y.cmp(S)!==0;){for(var I=Y,J=0;I.cmp(S)!==0;J++)I=I.redSqr();i(J<te);var k=this.pow(d,new s(1).iushln(te-J-1));N=N.redMul(k),d=k.redSqr(),Y=Y.redMul(d),te=J}return N},Z.prototype.invm=function(b){var c=b._invmp(this.m);return c.negative!==0?(c.negative=0,this.imod(c).redNeg()):this.imod(c)},Z.prototype.pow=function(b,c){if(c.isZero())return new s(1).toRed(this);if(c.cmpn(1)===0)return b.clone();var u=4,g=new Array(1<<u);g[0]=new s(1).toRed(this),g[1]=b;for(var w=2;w<g.length;w++)g[w]=this.mul(g[w-1],b);var S=g[0],C=0,_=0,l=c.bitLength()%26;for(l===0&&(l=26),w=c.length-1;w>=0;w--){for(var d=c.words[w],N=l-1;N>=0;N--){var Y=d>>N&1;if(S!==g[0]&&(S=this.sqr(S)),Y===0&&C===0){_=0;continue}C<<=1,C|=Y,_++,!(_!==u&&(w!==0||N!==0))&&(S=this.mul(S,g[C]),_=0,C=0)}l=26}return S},Z.prototype.convertTo=function(b){var c=b.umod(this.m);return c===b?c.clone():c},Z.prototype.convertFrom=function(b){var c=b.clone();return c.red=null,c},s.mont=function(b){return new ne(b)};function ne(U){Z.call(this,U),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new s(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)}n(ne,Z),ne.prototype.convertTo=function(b){return this.imod(b.ushln(this.shift))},ne.prototype.convertFrom=function(b){var c=this.imod(b.mul(this.rinv));return c.red=null,c},ne.prototype.imul=function(b,c){if(b.isZero()||c.isZero())return b.words[0]=0,b.length=1,b;var u=b.imul(c),g=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),w=u.isub(g).iushrn(this.shift),S=w;return w.cmp(this.m)>=0?S=w.isub(this.m):w.cmpn(0)<0&&(S=w.iadd(this.m)),S._forceRed(this)},ne.prototype.mul=function(b,c){if(b.isZero()||c.isZero())return new s(0)._forceRed(this);var u=b.mul(c),g=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),w=u.isub(g).iushrn(this.shift),S=w;return w.cmp(this.m)>=0?S=w.isub(this.m):w.cmpn(0)<0&&(S=w.iadd(this.m)),S._forceRed(this)},ne.prototype.invm=function(b){var c=this.imod(b._invmp(this.m).mul(this.r2));return c._forceRed(this)}})(t,$r)})(qf);var zi=qf.exports,Nn=L0;function L0(t,e){if(!t)throw new Error(e||"Assertion failed")}L0.equal=function(e,r,i){if(e!=r)throw new Error(i||"Assertion failed: "+e+" != "+r)};var zf={};(function(t){var e=t;function r(s,o){if(Array.isArray(s))return s.slice();if(!s)return[];var a=[];if(typeof s!="string"){for(var h=0;h<s.length;h++)a[h]=s[h]|0;return a}if(o==="hex"){s=s.replace(/[^a-z0-9]+/ig,""),s.length%2!==0&&(s="0"+s);for(var h=0;h<s.length;h+=2)a.push(parseInt(s[h]+s[h+1],16))}else for(var h=0;h<s.length;h++){var f=s.charCodeAt(h),p=f>>8,v=f&255;p?a.push(p,v):a.push(v)}return a}e.toArray=r;function i(s){return s.length===1?"0"+s:s}e.zero2=i;function n(s){for(var o="",a=0;a<s.length;a++)o+=i(s[a].toString(16));return o}e.toHex=n,e.encode=function(o,a){return a==="hex"?n(o):o}})(zf);(function(t){var e=t,r=zi,i=Nn,n=zf;e.assert=i,e.toArray=n.toArray,e.zero2=n.zero2,e.toHex=n.toHex,e.encode=n.encode;function s(p,v,x){var E=new Array(Math.max(p.bitLength(),x)+1),D;for(D=0;D<E.length;D+=1)E[D]=0;var B=1<<v+1,F=p.clone();for(D=0;D<E.length;D++){var j,R=F.andln(B-1);F.isOdd()?(R>(B>>1)-1?j=(B>>1)-R:j=R,F.isubn(j)):j=0,E[D]=j,F.iushrn(1)}return E}e.getNAF=s;function o(p,v){var x=[[],[]];p=p.clone(),v=v.clone();for(var E=0,D=0,B;p.cmpn(-E)>0||v.cmpn(-D)>0;){var F=p.andln(3)+E&3,j=v.andln(3)+D&3;F===3&&(F=-1),j===3&&(j=-1);var R;F&1?(B=p.andln(7)+E&7,(B===3||B===5)&&j===2?R=-F:R=F):R=0,x[0].push(R);var K;j&1?(B=v.andln(7)+D&7,(B===3||B===5)&&F===2?K=-j:K=j):K=0,x[1].push(K),2*E===R+1&&(E=1-E),2*D===K+1&&(D=1-D),p.iushrn(1),v.iushrn(1)}return x}e.getJSF=o;function a(p,v,x){var E="_"+v;p.prototype[v]=function(){return this[E]!==void 0?this[E]:this[E]=x.call(this)}}e.cachedProperty=a;function h(p){return typeof p=="string"?e.toArray(p,"hex"):p}e.parseBytes=h;function f(p){return new r(p,"hex","le")}e.intFromLE=f})(br);var Kf={exports:{}},cc;Kf.exports=function(e){return cc||(cc=new Zi(null)),cc.generate(e)};function Zi(t){this.rand=t}Kf.exports.Rand=Zi;Zi.prototype.generate=function(e){return this._rand(e)};Zi.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var r=new Uint8Array(e),i=0;i<r.length;i++)r[i]=this.rand.getByte();return r};if(typeof self=="object")self.crypto&&self.crypto.getRandomValues?Zi.prototype._rand=function(e){var r=new Uint8Array(e);return self.crypto.getRandomValues(r),r}:self.msCrypto&&self.msCrypto.getRandomValues?Zi.prototype._rand=function(e){var r=new Uint8Array(e);return self.msCrypto.getRandomValues(r),r}:typeof window=="object"&&(Zi.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var Gh=kf;if(typeof Gh.randomBytes!="function")throw new Error("Not supported");Zi.prototype._rand=function(e){return Gh.randomBytes(e)}}catch{}var U0=Kf.exports,jf={},ln=zi,lo=br,ia=lo.getNAF,M2=lo.getJSF,na=lo.assert;function sn(t,e){this.type=t,this.p=new ln(e.p,16),this.red=e.prime?ln.red(e.prime):ln.mont(this.p),this.zero=new ln(0).toRed(this.red),this.one=new ln(1).toRed(this.red),this.two=new ln(2).toRed(this.red),this.n=e.n&&new ln(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 r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var Da=sn;sn.prototype.point=function(){throw new Error("Not implemented")};sn.prototype.validate=function(){throw new Error("Not implemented")};sn.prototype._fixedNafMul=function(e,r){na(e.precomputed);var i=e._getDoubles(),n=ia(r,1,this._bitLength),s=(1<<i.step+1)-(i.step%2===0?2:1);s/=3;var o=[],a,h;for(a=0;a<n.length;a+=i.step){h=0;for(var f=a+i.step-1;f>=a;f--)h=(h<<1)+n[f];o.push(h)}for(var p=this.jpoint(null,null,null),v=this.jpoint(null,null,null),x=s;x>0;x--){for(a=0;a<o.length;a++)h=o[a],h===x?v=v.mixedAdd(i.points[a]):h===-x&&(v=v.mixedAdd(i.points[a].neg()));p=p.add(v)}return p.toP()};sn.prototype._wnafMul=function(e,r){var i=4,n=e._getNAFPoints(i);i=n.wnd;for(var s=n.points,o=ia(r,i,this._bitLength),a=this.jpoint(null,null,null),h=o.length-1;h>=0;h--){for(var f=0;h>=0&&o[h]===0;h--)f++;if(h>=0&&f++,a=a.dblp(f),h<0)break;var p=o[h];na(p!==0),e.type==="affine"?p>0?a=a.mixedAdd(s[p-1>>1]):a=a.mixedAdd(s[-p-1>>1].neg()):p>0?a=a.add(s[p-1>>1]):a=a.add(s[-p-1>>1].neg())}return e.type==="affine"?a.toP():a};sn.prototype._wnafMulAdd=function(e,r,i,n,s){var o=this._wnafT1,a=this._wnafT2,h=this._wnafT3,f=0,p,v,x;for(p=0;p<n;p++){x=r[p];var E=x._getNAFPoints(e);o[p]=E.wnd,a[p]=E.points}for(p=n-1;p>=1;p-=2){var D=p-1,B=p;if(o[D]!==1||o[B]!==1){h[D]=ia(i[D],o[D],this._bitLength),h[B]=ia(i[B],o[B],this._bitLength),f=Math.max(h[D].length,f),f=Math.max(h[B].length,f);continue}var F=[r[D],null,null,r[B]];r[D].y.cmp(r[B].y)===0?(F[1]=r[D].add(r[B]),F[2]=r[D].toJ().mixedAdd(r[B].neg())):r[D].y.cmp(r[B].y.redNeg())===0?(F[1]=r[D].toJ().mixedAdd(r[B]),F[2]=r[D].add(r[B].neg())):(F[1]=r[D].toJ().mixedAdd(r[B]),F[2]=r[D].toJ().mixedAdd(r[B].neg()));var j=[-3,-1,-5,-7,0,7,5,1,3],R=M2(i[D],i[B]);for(f=Math.max(R[0].length,f),h[D]=new Array(f),h[B]=new Array(f),v=0;v<f;v++){var K=R[0][v]|0,T=R[1][v]|0;h[D][v]=j[(K+1)*3+(T+1)],h[B][v]=0,a[D]=F}}var L=this.jpoint(null,null,null),q=this._wnafT4;for(p=f;p>=0;p--){for(var y=0;p>=0;){var P=!0;for(v=0;v<n;v++)q[v]=h[v][p]|0,q[v]!==0&&(P=!1);if(!P)break;y++,p--}if(p>=0&&y++,L=L.dblp(y),p<0)break;for(v=0;v<n;v++){var Z=q[v];Z!==0&&(Z>0?x=a[v][Z-1>>1]:Z<0&&(x=a[v][-Z-1>>1].neg()),x.type==="affine"?L=L.mixedAdd(x):L=L.add(x))}}for(p=0;p<n;p++)a[p]=null;return s?L:L.toP()};function Nr(t,e){this.curve=t,this.type=e,this.precomputed=null}sn.BasePoint=Nr;Nr.prototype.eq=function(){throw new Error("Not implemented")};Nr.prototype.validate=function(){return this.curve.validate(this)};sn.prototype.decodePoint=function(e,r){e=lo.toArray(e,r);var i=this.p.byteLength();if((e[0]===4||e[0]===6||e[0]===7)&&e.length-1===2*i){e[0]===6?na(e[e.length-1]%2===0):e[0]===7&&na(e[e.length-1]%2===1);var n=this.point(e.slice(1,1+i),e.slice(1+i,1+2*i));return n}else if((e[0]===2||e[0]===3)&&e.length-1===i)return this.pointFromX(e.slice(1,1+i),e[0]===3);throw new Error("Unknown point format")};Nr.prototype.encodeCompressed=function(e){return this.encode(e,!0)};Nr.prototype._encode=function(e){var r=this.curve.p.byteLength(),i=this.getX().toArray("be",r);return e?[this.getY().isEven()?2:3].concat(i):[4].concat(i,this.getY().toArray("be",r))};Nr.prototype.encode=function(e,r){return lo.encode(this._encode(r),e)};Nr.prototype.precompute=function(e){if(this.precomputed)return this;var r={doubles:null,naf:null,beta:null};return r.naf=this._getNAFPoints(8),r.doubles=this._getDoubles(4,e),r.beta=this._getBeta(),this.precomputed=r,this};Nr.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var r=this.precomputed.doubles;return r?r.points.length>=Math.ceil((e.bitLength()+1)/r.step):!1};Nr.prototype._getDoubles=function(e,r){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var i=[this],n=this,s=0;s<r;s+=e){for(var o=0;o<e;o++)n=n.dbl();i.push(n)}return{step:e,points:i}};Nr.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var r=[this],i=(1<<e)-1,n=i===1?null:this.dbl(),s=1;s<i;s++)r[s]=r[s-1].add(n);return{wnd:e,points:r}};Nr.prototype._getBeta=function(){return null};Nr.prototype.dblp=function(e){for(var r=this,i=0;i<e;i++)r=r.dbl();return r};var I2=br,yt=zi,Hf=Ia,ls=Da,D2=I2.assert;function Tr(t){ls.call(this,"short",t),this.a=new yt(t.a,16).toRed(this.red),this.b=new yt(t.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(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}Hf(Tr,ls);var C2=Tr;Tr.prototype._getEndomorphism=function(e){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var r,i;if(e.beta)r=new yt(e.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);r=n[0].cmp(n[1])<0?n[0]:n[1],r=r.toRed(this.red)}if(e.lambda)i=new yt(e.lambda,16);else{var s=this._getEndoRoots(this.n);this.g.mul(s[0]).x.cmp(this.g.x.redMul(r))===0?i=s[0]:(i=s[1],D2(this.g.mul(i).x.cmp(this.g.x.redMul(r))===0))}var o;return e.basis?o=e.basis.map(function(a){return{a:new yt(a.a,16),b:new yt(a.b,16)}}):o=this._getEndoBasis(i),{beta:r,lambda:i,basis:o}}};Tr.prototype._getEndoRoots=function(e){var r=e===this.p?this.red:yt.mont(e),i=new yt(2).toRed(r).redInvm(),n=i.redNeg(),s=new yt(3).toRed(r).redNeg().redSqrt().redMul(i),o=n.redAdd(s).fromRed(),a=n.redSub(s).fromRed();return[o,a]};Tr.prototype._getEndoBasis=function(e){for(var r=this.n.ushrn(Math.floor(this.n.bitLength()/2)),i=e,n=this.n.clone(),s=new yt(1),o=new yt(0),a=new yt(0),h=new yt(1),f,p,v,x,E,D,B,F=0,j,R;i.cmpn(0)!==0;){var K=n.div(i);j=n.sub(K.mul(i)),R=a.sub(K.mul(s));var T=h.sub(K.mul(o));if(!v&&j.cmp(r)<0)f=B.neg(),p=s,v=j.neg(),x=R;else if(v&&++F===2)break;B=j,n=i,i=j,a=s,s=R,h=o,o=T}E=j.neg(),D=R;var L=v.sqr().add(x.sqr()),q=E.sqr().add(D.sqr());return q.cmp(L)>=0&&(E=f,D=p),v.negative&&(v=v.neg(),x=x.neg()),E.negative&&(E=E.neg(),D=D.neg()),[{a:v,b:x},{a:E,b:D}]};Tr.prototype._endoSplit=function(e){var r=this.endo.basis,i=r[0],n=r[1],s=n.b.mul(e).divRound(this.n),o=i.b.neg().mul(e).divRound(this.n),a=s.mul(i.a),h=o.mul(n.a),f=s.mul(i.b),p=o.mul(n.b),v=e.sub(a).sub(h),x=f.add(p).neg();return{k1:v,k2:x}};Tr.prototype.pointFromX=function(e,r){e=new yt(e,16),e.red||(e=e.toRed(this.red));var i=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=i.redSqrt();if(n.redSqr().redSub(i).cmp(this.zero)!==0)throw new Error("invalid point");var s=n.fromRed().isOdd();return(r&&!s||!r&&s)&&(n=n.redNeg()),this.point(e,n)};Tr.prototype.validate=function(e){if(e.inf)return!0;var r=e.x,i=e.y,n=this.a.redMul(r),s=r.redSqr().redMul(r).redIAdd(n).redIAdd(this.b);return i.redSqr().redISub(s).cmpn(0)===0};Tr.prototype._endoWnafMulAdd=function(e,r,i){for(var n=this._endoWnafT1,s=this._endoWnafT2,o=0;o<e.length;o++){var a=this._endoSplit(r[o]),h=e[o],f=h._getBeta();a.k1.negative&&(a.k1.ineg(),h=h.neg(!0)),a.k2.negative&&(a.k2.ineg(),f=f.neg(!0)),n[o*2]=h,n[o*2+1]=f,s[o*2]=a.k1,s[o*2+1]=a.k2}for(var p=this._wnafMulAdd(1,n,s,o*2,i),v=0;v<o*2;v++)n[v]=null,s[v]=null;return p};function Ot(t,e,r,i){ls.BasePoint.call(this,t,"affine"),e===null&&r===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new yt(e,16),this.y=new yt(r,16),i&&(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)}Hf(Ot,ls.BasePoint);Tr.prototype.point=function(e,r,i){return new Ot(this,e,r,i)};Tr.prototype.pointFromJSON=function(e,r){return Ot.fromJSON(this,e,r)};Ot.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var r=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var i=this.curve,n=function(s){return i.point(s.x.redMul(i.endo.beta),s.y)};e.beta=r,r.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return r}};Ot.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]};Ot.fromJSON=function(e,r,i){typeof r=="string"&&(r=JSON.parse(r));var n=e.point(r[0],r[1],i);if(!r[2])return n;function s(a){return e.point(a[0],a[1],i)}var o=r[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(s))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(s))}},n};Ot.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)+">"};Ot.prototype.isInfinity=function(){return this.inf};Ot.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 r=this.y.redSub(e.y);r.cmpn(0)!==0&&(r=r.redMul(this.x.redSub(e.x).redInvm()));var i=r.redSqr().redISub(this.x).redISub(e.x),n=r.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,n)};Ot.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 r=this.curve.a,i=this.x.redSqr(),n=e.redInvm(),s=i.redAdd(i).redIAdd(i).redIAdd(r).redMul(n),o=s.redSqr().redISub(this.x.redAdd(this.x)),a=s.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)};Ot.prototype.getX=function(){return this.x.fromRed()};Ot.prototype.getY=function(){return this.y.fromRed()};Ot.prototype.mul=function(e){return e=new yt(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)};Ot.prototype.mulAdd=function(e,r,i){var n=[this,r],s=[e,i];return this.curve.endo?this.curve._endoWnafMulAdd(n,s):this.curve._wnafMulAdd(1,n,s,2)};Ot.prototype.jmulAdd=function(e,r,i){var n=[this,r],s=[e,i];return this.curve.endo?this.curve._endoWnafMulAdd(n,s,!0):this.curve._wnafMulAdd(1,n,s,2,!0)};Ot.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)};Ot.prototype.neg=function(e){if(this.inf)return this;var r=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var i=this.precomputed,n=function(s){return s.neg()};r.precomputed={naf:i.naf&&{wnd:i.naf.wnd,points:i.naf.points.map(n)},doubles:i.doubles&&{step:i.doubles.step,points:i.doubles.points.map(n)}}}return r};Ot.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 Lt(t,e,r,i){ls.BasePoint.call(this,t,"jacobian"),e===null&&r===null&&i===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new yt(0)):(this.x=new yt(e,16),this.y=new yt(r,16),this.z=new yt(i,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}Hf(Lt,ls.BasePoint);Tr.prototype.jpoint=function(e,r,i){return new Lt(this,e,r,i)};Lt.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),r=e.redSqr(),i=this.x.redMul(r),n=this.y.redMul(r).redMul(e);return this.curve.point(i,n)};Lt.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};Lt.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var r=e.z.redSqr(),i=this.z.redSqr(),n=this.x.redMul(r),s=e.x.redMul(i),o=this.y.redMul(r.redMul(e.z)),a=e.y.redMul(i.redMul(this.z)),h=n.redSub(s),f=o.redSub(a);if(h.cmpn(0)===0)return f.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var p=h.redSqr(),v=p.redMul(h),x=n.redMul(p),E=f.redSqr().redIAdd(v).redISub(x).redISub(x),D=f.redMul(x.redISub(E)).redISub(o.redMul(v)),B=this.z.redMul(e.z).redMul(h);return this.curve.jpoint(E,D,B)};Lt.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var r=this.z.redSqr(),i=this.x,n=e.x.redMul(r),s=this.y,o=e.y.redMul(r).redMul(this.z),a=i.redSub(n),h=s.redSub(o);if(a.cmpn(0)===0)return h.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var f=a.redSqr(),p=f.redMul(a),v=i.redMul(f),x=h.redSqr().redIAdd(p).redISub(v).redISub(v),E=h.redMul(v.redISub(x)).redISub(s.redMul(p)),D=this.z.redMul(a);return this.curve.jpoint(x,E,D)};Lt.prototype.dblp=function(e){if(e===0)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var r;if(this.curve.zeroA||this.curve.threeA){var i=this;for(r=0;r<e;r++)i=i.dbl();return i}var n=this.curve.a,s=this.curve.tinv,o=this.x,a=this.y,h=this.z,f=h.redSqr().redSqr(),p=a.redAdd(a);for(r=0;r<e;r++){var v=o.redSqr(),x=p.redSqr(),E=x.redSqr(),D=v.redAdd(v).redIAdd(v).redIAdd(n.redMul(f)),B=o.redMul(x),F=D.redSqr().redISub(B.redAdd(B)),j=B.redISub(F),R=D.redMul(j);R=R.redIAdd(R).redISub(E);var K=p.redMul(h);r+1<e&&(f=f.redMul(E)),o=F,h=K,p=R}return this.curve.jpoint(o,p.redMul(s),h)};Lt.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()};Lt.prototype._zeroDbl=function(){var e,r,i;if(this.zOne){var n=this.x.redSqr(),s=this.y.redSqr(),o=s.redSqr(),a=this.x.redAdd(s).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var h=n.redAdd(n).redIAdd(n),f=h.redSqr().redISub(a).redISub(a),p=o.redIAdd(o);p=p.redIAdd(p),p=p.redIAdd(p),e=f,r=h.redMul(a.redISub(f)).redISub(p),i=this.y.redAdd(this.y)}else{var v=this.x.redSqr(),x=this.y.redSqr(),E=x.redSqr(),D=this.x.redAdd(x).redSqr().redISub(v).redISub(E);D=D.redIAdd(D);var B=v.redAdd(v).redIAdd(v),F=B.redSqr(),j=E.redIAdd(E);j=j.redIAdd(j),j=j.redIAdd(j),e=F.redISub(D).redISub(D),r=B.redMul(D.redISub(e)).redISub(j),i=this.y.redMul(this.z),i=i.redIAdd(i)}return this.curve.jpoint(e,r,i)};Lt.prototype._threeDbl=function(){var e,r,i;if(this.zOne){var n=this.x.redSqr(),s=this.y.redSqr(),o=s.redSqr(),a=this.x.redAdd(s).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var h=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),f=h.redSqr().redISub(a).redISub(a);e=f;var p=o.redIAdd(o);p=p.redIAdd(p),p=p.redIAdd(p),r=h.redMul(a.redISub(f)).redISub(p),i=this.y.redAdd(this.y)}else{var v=this.z.redSqr(),x=this.y.redSqr(),E=this.x.redMul(x),D=this.x.redSub(v).redMul(this.x.redAdd(v));D=D.redAdd(D).redIAdd(D);var B=E.redIAdd(E);B=B.redIAdd(B);var F=B.redAdd(B);e=D.redSqr().redISub(F),i=this.y.redAdd(this.z).redSqr().redISub(x).redISub(v);var j=x.redSqr();j=j.redIAdd(j),j=j.redIAdd(j),j=j.redIAdd(j),r=D.redMul(B.redISub(e)).redISub(j)}return this.curve.jpoint(e,r,i)};Lt.prototype._dbl=function(){var e=this.curve.a,r=this.x,i=this.y,n=this.z,s=n.redSqr().redSqr(),o=r.redSqr(),a=i.redSqr(),h=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(s)),f=r.redAdd(r);f=f.redIAdd(f);var p=f.redMul(a),v=h.redSqr().redISub(p.redAdd(p)),x=p.redISub(v),E=a.redSqr();E=E.redIAdd(E),E=E.redIAdd(E),E=E.redIAdd(E);var D=h.redMul(x).redISub(E),B=i.redAdd(i).redMul(n);return this.curve.jpoint(v,D,B)};Lt.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),r=this.y.redSqr(),i=this.z.redSqr(),n=r.redSqr(),s=e.redAdd(e).redIAdd(e),o=s.redSqr(),a=this.x.redAdd(r).redSqr().redISub(e).redISub(n);a=a.redIAdd(a),a=a.redAdd(a).redIAdd(a),a=a.redISub(o);var h=a.redSqr(),f=n.redIAdd(n);f=f.redIAdd(f),f=f.redIAdd(f),f=f.redIAdd(f);var p=s.redIAdd(a).redSqr().redISub(o).redISub(h).redISub(f),v=r.redMul(p);v=v.redIAdd(v),v=v.redIAdd(v);var x=this.x.redMul(h).redISub(v);x=x.redIAdd(x),x=x.redIAdd(x);var E=this.y.redMul(p.redMul(f.redISub(p)).redISub(a.redMul(h)));E=E.redIAdd(E),E=E.redIAdd(E),E=E.redIAdd(E);var D=this.z.redAdd(a).redSqr().redISub(i).redISub(h);return this.curve.jpoint(x,E,D)};Lt.prototype.mul=function(e,r){return e=new yt(e,r),this.curve._wnafMul(this,e)};Lt.prototype.eq=function(e){if(e.type==="affine")return this.eq(e.toJ());if(this===e)return!0;var r=this.z.redSqr(),i=e.z.redSqr();if(this.x.redMul(i).redISub(e.x.redMul(r)).cmpn(0)!==0)return!1;var n=r.redMul(this.z),s=i.redMul(e.z);return this.y.redMul(s).redISub(e.y.redMul(n)).cmpn(0)===0};Lt.prototype.eqXToP=function(e){var r=this.z.redSqr(),i=e.toRed(this.curve.red).redMul(r);if(this.x.cmp(i)===0)return!0;for(var n=e.clone(),s=this.curve.redN.redMul(r);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(i.redIAdd(s),this.x.cmp(i)===0)return!0}};Lt.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)+">"};Lt.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var Wn=zi,k0=Ia,Ca=Da,N2=br;function ds(t){Ca.call(this,"mont",t),this.a=new Wn(t.a,16).toRed(this.red),this.b=new Wn(t.b,16).toRed(this.red),this.i4=new Wn(4).toRed(this.red).redInvm(),this.two=new Wn(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}k0(ds,Ca);var T2=ds;ds.prototype.validate=function(e){var r=e.normalize().x,i=r.redSqr(),n=i.redMul(r).redAdd(i.redMul(this.a)).redAdd(r),s=n.redSqrt();return s.redSqr().cmp(n)===0};function Rt(t,e,r){Ca.BasePoint.call(this,t,"projective"),e===null&&r===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new Wn(e,16),this.z=new Wn(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}k0(Rt,Ca.BasePoint);ds.prototype.decodePoint=function(e,r){return this.point(N2.toArray(e,r),1)};ds.prototype.point=function(e,r){return new Rt(this,e,r)};ds.prototype.pointFromJSON=function(e){return Rt.fromJSON(this,e)};Rt.prototype.precompute=function(){};Rt.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};Rt.fromJSON=function(e,r){return new Rt(e,r[0],r[1]||e.one)};Rt.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)+">"};Rt.prototype.isInfinity=function(){return this.z.cmpn(0)===0};Rt.prototype.dbl=function(){var e=this.x.redAdd(this.z),r=e.redSqr(),i=this.x.redSub(this.z),n=i.redSqr(),s=r.redSub(n),o=r.redMul(n),a=s.redMul(n.redAdd(this.curve.a24.redMul(s)));return this.curve.point(o,a)};Rt.prototype.add=function(){throw new Error("Not supported on Montgomery curve")};Rt.prototype.diffAdd=function(e,r){var i=this.x.redAdd(this.z),n=this.x.redSub(this.z),s=e.x.redAdd(e.z),o=e.x.redSub(e.z),a=o.redMul(i),h=s.redMul(n),f=r.z.redMul(a.redAdd(h).redSqr()),p=r.x.redMul(a.redISub(h).redSqr());return this.curve.point(f,p)};Rt.prototype.mul=function(e){for(var r=e.clone(),i=this,n=this.curve.point(null,null),s=this,o=[];r.cmpn(0)!==0;r.iushrn(1))o.push(r.andln(1));for(var a=o.length-1;a>=0;a--)o[a]===0?(i=i.diffAdd(n,s),n=n.dbl()):(n=i.diffAdd(n,s),i=i.dbl());return n};Rt.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")};Rt.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")};Rt.prototype.eq=function(e){return this.getX().cmp(e.getX())===0};Rt.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};Rt.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var R2=br,Fi=zi,$0=Ia,Na=Da,O2=R2.assert;function di(t){this.twisted=(t.a|0)!==1,this.mOneA=this.twisted&&(t.a|0)===-1,this.extended=this.mOneA,Na.call(this,"edwards",t),this.a=new Fi(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new Fi(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new Fi(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),O2(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(t.c|0)===1}$0(di,Na);var P2=di;di.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)};di.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)};di.prototype.jpoint=function(e,r,i,n){return this.point(e,r,i,n)};di.prototype.pointFromX=function(e,r){e=new Fi(e,16),e.red||(e=e.toRed(this.red));var i=e.redSqr(),n=this.c2.redSub(this.a.redMul(i)),s=this.one.redSub(this.c2.redMul(this.d).redMul(i)),o=n.redMul(s.redInvm()),a=o.redSqrt();if(a.redSqr().redSub(o).cmp(this.zero)!==0)throw new Error("invalid point");var h=a.fromRed().isOdd();return(r&&!h||!r&&h)&&(a=a.redNeg()),this.point(e,a)};di.prototype.pointFromY=function(e,r){e=new Fi(e,16),e.red||(e=e.toRed(this.red));var i=e.redSqr(),n=i.redSub(this.c2),s=i.redMul(this.d).redMul(this.c2).redSub(this.a),o=n.redMul(s.redInvm());if(o.cmp(this.zero)===0){if(r)throw new Error("invalid point");return this.point(this.zero,e)}var a=o.redSqrt();if(a.redSqr().redSub(o).cmp(this.zero)!==0)throw new Error("invalid point");return a.fromRed().isOdd()!==r&&(a=a.redNeg()),this.point(a,e)};di.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var r=e.x.redSqr(),i=e.y.redSqr(),n=r.redMul(this.a).redAdd(i),s=this.c2.redMul(this.one.redAdd(this.d.redMul(r).redMul(i)));return n.cmp(s)===0};function lt(t,e,r,i,n){Na.BasePoint.call(this,t,"projective"),e===null&&r===null&&i===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 Fi(e,16),this.y=new Fi(r,16),this.z=i?new Fi(i,16):this.curve.one,this.t=n&&new Fi(n,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()))))}$0(lt,Na.BasePoint);di.prototype.pointFromJSON=function(e){return lt.fromJSON(this,e)};di.prototype.point=function(e,r,i,n){return new lt(this,e,r,i,n)};lt.fromJSON=function(e,r){return new lt(e,r[0],r[1],r[2])};lt.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)+">"};lt.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};lt.prototype._extDbl=function(){var e=this.x.redSqr(),r=this.y.redSqr(),i=this.z.redSqr();i=i.redIAdd(i);var n=this.curve._mulA(e),s=this.x.redAdd(this.y).redSqr().redISub(e).redISub(r),o=n.redAdd(r),a=o.redSub(i),h=n.redSub(r),f=s.redMul(a),p=o.redMul(h),v=s.redMul(h),x=a.redMul(o);return this.curve.point(f,p,x,v)};lt.prototype._projDbl=function(){var e=this.x.redAdd(this.y).redSqr(),r=this.x.redSqr(),i=this.y.redSqr(),n,s,o,a,h,f;if(this.curve.twisted){a=this.curve._mulA(r);var p=a.redAdd(i);this.zOne?(n=e.redSub(r).redSub(i).redMul(p.redSub(this.curve.two)),s=p.redMul(a.redSub(i)),o=p.redSqr().redSub(p).redSub(p)):(h=this.z.redSqr(),f=p.redSub(h).redISub(h),n=e.redSub(r).redISub(i).redMul(f),s=p.redMul(a.redSub(i)),o=p.redMul(f))}else a=r.redAdd(i),h=this.curve._mulC(this.z).redSqr(),f=a.redSub(h).redSub(h),n=this.curve._mulC(e.redISub(a)).redMul(f),s=this.curve._mulC(a).redMul(r.redISub(i)),o=a.redMul(f);return this.curve.point(n,s,o)};lt.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};lt.prototype._extAdd=function(e){var r=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),i=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),s=this.z.redMul(e.z.redAdd(e.z)),o=i.redSub(r),a=s.redSub(n),h=s.redAdd(n),f=i.redAdd(r),p=o.redMul(a),v=h.redMul(f),x=o.redMul(f),E=a.redMul(h);return this.curve.point(p,v,E,x)};lt.prototype._projAdd=function(e){var r=this.z.redMul(e.z),i=r.redSqr(),n=this.x.redMul(e.x),s=this.y.redMul(e.y),o=this.curve.d.redMul(n).redMul(s),a=i.redSub(o),h=i.redAdd(o),f=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(n).redISub(s),p=r.redMul(a).redMul(f),v,x;return this.curve.twisted?(v=r.redMul(h).redMul(s.redSub(this.curve._mulA(n))),x=a.redMul(h)):(v=r.redMul(h).redMul(s.redSub(n)),x=this.curve._mulC(a).redMul(h)),this.curve.point(p,v,x)};lt.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)};lt.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)};lt.prototype.mulAdd=function(e,r,i){return this.curve._wnafMulAdd(1,[this,r],[e,i],2,!1)};lt.prototype.jmulAdd=function(e,r,i){return this.curve._wnafMulAdd(1,[this,r],[e,i],2,!0)};lt.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};lt.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};lt.prototype.getX=function(){return this.normalize(),this.x.fromRed()};lt.prototype.getY=function(){return this.normalize(),this.y.fromRed()};lt.prototype.eq=function(e){return this===e||this.getX().cmp(e.getX())===0&&this.getY().cmp(e.getY())===0};lt.prototype.eqXToP=function(e){var r=e.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(r)===0)return!0;for(var i=e.clone(),n=this.curve.redN.redMul(this.z);;){if(i.iadd(this.curve.n),i.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(n),this.x.cmp(r)===0)return!0}};lt.prototype.toP=lt.prototype.normalize;lt.prototype.mixedAdd=lt.prototype.add;(function(t){var e=t;e.base=Da,e.short=C2,e.mont=T2,e.edwards=P2})(jf);var Ta={},Ra={},tt={},B2=Nn,F2=Ia;tt.inherits=F2;function L2(t,e){return(t.charCodeAt(e)&64512)!==55296||e<0||e+1>=t.length?!1:(t.charCodeAt(e+1)&64512)===56320}function U2(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if(typeof t=="string")if(e){if(e==="hex")for(t=t.replace(/[^a-z0-9]+/ig,""),t.length%2!==0&&(t="0"+t),n=0;n<t.length;n+=2)r.push(parseInt(t[n]+t[n+1],16))}else for(var i=0,n=0;n<t.length;n++){var s=t.charCodeAt(n);s<128?r[i++]=s:s<2048?(r[i++]=s>>6|192,r[i++]=s&63|128):L2(t,n)?(s=65536+((s&1023)<<10)+(t.charCodeAt(++n)&1023),r[i++]=s>>18|240,r[i++]=s>>12&63|128,r[i++]=s>>6&63|128,r[i++]=s&63|128):(r[i++]=s>>12|224,r[i++]=s>>6&63|128,r[i++]=s&63|128)}else for(n=0;n<t.length;n++)r[n]=t[n]|0;return r}tt.toArray=U2;function k2(t){for(var e="",r=0;r<t.length;r++)e+=z0(t[r].toString(16));return e}tt.toHex=k2;function q0(t){var e=t>>>24|t>>>8&65280|t<<8&16711680|(t&255)<<24;return e>>>0}tt.htonl=q0;function $2(t,e){for(var r="",i=0;i<t.length;i++){var n=t[i];e==="little"&&(n=q0(n)),r+=K0(n.toString(16))}return r}tt.toHex32=$2;function z0(t){return t.length===1?"0"+t:t}tt.zero2=z0;function K0(t){return t.length===7?"0"+t:t.length===6?"00"+t:t.length===5?"000"+t:t.length===4?"0000"+t:t.length===3?"00000"+t:t.length===2?"000000"+t:t.length===1?"0000000"+t:t}tt.zero8=K0;function q2(t,e,r,i){var n=r-e;B2(n%4===0);for(var s=new Array(n/4),o=0,a=e;o<s.length;o++,a+=4){var h;i==="big"?h=t[a]<<24|t[a+1]<<16|t[a+2]<<8|t[a+3]:h=t[a+3]<<24|t[a+2]<<16|t[a+1]<<8|t[a],s[o]=h>>>0}return s}tt.join32=q2;function z2(t,e){for(var r=new Array(t.length*4),i=0,n=0;i<t.length;i++,n+=4){var s=t[i];e==="big"?(r[n]=s>>>24,r[n+1]=s>>>16&255,r[n+2]=s>>>8&255,r[n+3]=s&255):(r[n+3]=s>>>24,r[n+2]=s>>>16&255,r[n+1]=s>>>8&255,r[n]=s&255)}return r}tt.split32=z2;function K2(t,e){return t>>>e|t<<32-e}tt.rotr32=K2;function j2(t,e){return t<<e|t>>>32-e}tt.rotl32=j2;function H2(t,e){return t+e>>>0}tt.sum32=H2;function V2(t,e,r){return t+e+r>>>0}tt.sum32_3=V2;function W2(t,e,r,i){return t+e+r+i>>>0}tt.sum32_4=W2;function G2(t,e,r,i,n){return t+e+r+i+n>>>0}tt.sum32_5=G2;function Y2(t,e,r,i){var n=t[e],s=t[e+1],o=i+s>>>0,a=(o<i?1:0)+r+n;t[e]=a>>>0,t[e+1]=o}tt.sum64=Y2;function J2(t,e,r,i){var n=e+i>>>0,s=(n<e?1:0)+t+r;return s>>>0}tt.sum64_hi=J2;function Q2(t,e,r,i){var n=e+i;return n>>>0}tt.sum64_lo=Q2;function X2(t,e,r,i,n,s,o,a){var h=0,f=e;f=f+i>>>0,h+=f<e?1:0,f=f+s>>>0,h+=f<s?1:0,f=f+a>>>0,h+=f<a?1:0;var p=t+r+n+o+h;return p>>>0}tt.sum64_4_hi=X2;function Z2(t,e,r,i,n,s,o,a){var h=e+i+s+a;return h>>>0}tt.sum64_4_lo=Z2;function eb(t,e,r,i,n,s,o,a,h,f){var p=0,v=e;v=v+i>>>0,p+=v<e?1:0,v=v+s>>>0,p+=v<s?1:0,v=v+a>>>0,p+=v<a?1:0,v=v+f>>>0,p+=v<f?1:0;var x=t+r+n+o+h+p;return x>>>0}tt.sum64_5_hi=eb;function tb(t,e,r,i,n,s,o,a,h,f){var p=e+i+s+a+f;return p>>>0}tt.sum64_5_lo=tb;function rb(t,e,r){var i=e<<32-r|t>>>r;return i>>>0}tt.rotr64_hi=rb;function ib(t,e,r){var i=t<<32-r|e>>>r;return i>>>0}tt.rotr64_lo=ib;function nb(t,e,r){return t>>>r}tt.shr64_hi=nb;function sb(t,e,r){var i=t<<32-r|e>>>r;return i>>>0}tt.shr64_lo=sb;var ps={},Yh=tt,ob=Nn;function Oa(){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}ps.BlockHash=Oa;Oa.prototype.update=function(e,r){if(e=Yh.toArray(e,r),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){e=this.pending;var i=e.length%this._delta8;this.pending=e.slice(e.length-i,e.length),this.pending.length===0&&(this.pending=null),e=Yh.join32(e,0,e.length-i,this.endian);for(var n=0;n<e.length;n+=this._delta32)this._update(e,n,n+this._delta32)}return this};Oa.prototype.digest=function(e){return this.update(this._pad()),ob(this.pending===null),this._digest(e)};Oa.prototype._pad=function(){var e=this.pendingTotal,r=this._delta8,i=r-(e+this.padLength)%r,n=new Array(i+this.padLength);n[0]=128;for(var s=1;s<i;s++)n[s]=0;if(e<<=3,this.endian==="big"){for(var o=8;o<this.padLength;o++)n[s++]=0;n[s++]=0,n[s++]=0,n[s++]=0,n[s++]=0,n[s++]=e>>>24&255,n[s++]=e>>>16&255,n[s++]=e>>>8&255,n[s++]=e&255}else for(n[s++]=e&255,n[s++]=e>>>8&255,n[s++]=e>>>16&255,n[s++]=e>>>24&255,n[s++]=0,n[s++]=0,n[s++]=0,n[s++]=0,o=8;o<this.padLength;o++)n[s++]=0;return n};var gs={},pi={},ab=tt,ei=ab.rotr32;function cb(t,e,r,i){if(t===0)return j0(e,r,i);if(t===1||t===3)return V0(e,r,i);if(t===2)return H0(e,r,i)}pi.ft_1=cb;function j0(t,e,r){return t&e^~t&r}pi.ch32=j0;function H0(t,e,r){return t&e^t&r^e&r}pi.maj32=H0;function V0(t,e,r){return t^e^r}pi.p32=V0;function fb(t){return ei(t,2)^ei(t,13)^ei(t,22)}pi.s0_256=fb;function hb(t){return ei(t,6)^ei(t,11)^ei(t,25)}pi.s1_256=hb;function ub(t){return ei(t,7)^ei(t,18)^t>>>3}pi.g0_256=ub;function lb(t){return ei(t,17)^ei(t,19)^t>>>10}pi.g1_256=lb;var Xn=tt,db=ps,pb=pi,fc=Xn.rotl32,Rs=Xn.sum32,gb=Xn.sum32_5,bb=pb.ft_1,W0=db.BlockHash,vb=[1518500249,1859775393,2400959708,3395469782];function ci(){if(!(this instanceof ci))return new ci;W0.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}Xn.inherits(ci,W0);var mb=ci;ci.blockSize=512;ci.outSize=160;ci.hmacStrength=80;ci.padLength=64;ci.prototype._update=function(e,r){for(var i=this.W,n=0;n<16;n++)i[n]=e[r+n];for(;n<i.length;n++)i[n]=fc(i[n-3]^i[n-8]^i[n-14]^i[n-16],1);var s=this.h[0],o=this.h[1],a=this.h[2],h=this.h[3],f=this.h[4];for(n=0;n<i.length;n++){var p=~~(n/20),v=gb(fc(s,5),bb(p,o,a,h),f,i[n],vb[p]);f=h,h=a,a=fc(o,30),o=s,s=v}this.h[0]=Rs(this.h[0],s),this.h[1]=Rs(this.h[1],o),this.h[2]=Rs(this.h[2],a),this.h[3]=Rs(this.h[3],h),this.h[4]=Rs(this.h[4],f)};ci.prototype._digest=function(e){return e==="hex"?Xn.toHex32(this.h,"big"):Xn.split32(this.h,"big")};var Zn=tt,yb=ps,bs=pi,wb=Nn,Or=Zn.sum32,_b=Zn.sum32_4,Eb=Zn.sum32_5,Ab=bs.ch32,xb=bs.maj32,Sb=bs.s0_256,Mb=bs.s1_256,Ib=bs.g0_256,Db=bs.g1_256,G0=yb.BlockHash,Cb=[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 fi(){if(!(this instanceof fi))return new fi;G0.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=Cb,this.W=new Array(64)}Zn.inherits(fi,G0);var Y0=fi;fi.blockSize=512;fi.outSize=256;fi.hmacStrength=192;fi.padLength=64;fi.prototype._update=function(e,r){for(var i=this.W,n=0;n<16;n++)i[n]=e[r+n];for(;n<i.length;n++)i[n]=_b(Db(i[n-2]),i[n-7],Ib(i[n-15]),i[n-16]);var s=this.h[0],o=this.h[1],a=this.h[2],h=this.h[3],f=this.h[4],p=this.h[5],v=this.h[6],x=this.h[7];for(wb(this.k.length===i.length),n=0;n<i.length;n++){var E=Eb(x,Mb(f),Ab(f,p,v),this.k[n],i[n]),D=Or(Sb(s),xb(s,o,a));x=v,v=p,p=f,f=Or(h,E),h=a,a=o,o=s,s=Or(E,D)}this.h[0]=Or(this.h[0],s),this.h[1]=Or(this.h[1],o),this.h[2]=Or(this.h[2],a),this.h[3]=Or(this.h[3],h),this.h[4]=Or(this.h[4],f),this.h[5]=Or(this.h[5],p),this.h[6]=Or(this.h[6],v),this.h[7]=Or(this.h[7],x)};fi.prototype._digest=function(e){return e==="hex"?Zn.toHex32(this.h,"big"):Zn.split32(this.h,"big")};var Zc=tt,J0=Y0;function $i(){if(!(this instanceof $i))return new $i;J0.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}Zc.inherits($i,J0);var Nb=$i;$i.blockSize=512;$i.outSize=224;$i.hmacStrength=192;$i.padLength=64;$i.prototype._digest=function(e){return e==="hex"?Zc.toHex32(this.h.slice(0,7),"big"):Zc.split32(this.h.slice(0,7),"big")};var cr=tt,Tb=ps,Rb=Nn,ti=cr.rotr64_hi,ri=cr.rotr64_lo,Q0=cr.shr64_hi,X0=cr.shr64_lo,Vi=cr.sum64,hc=cr.sum64_hi,uc=cr.sum64_lo,Ob=cr.sum64_4_hi,Pb=cr.sum64_4_lo,Bb=cr.sum64_5_hi,Fb=cr.sum64_5_lo,Z0=Tb.BlockHash,Lb=[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 jr(){if(!(this instanceof jr))return new jr;Z0.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=Lb,this.W=new Array(160)}cr.inherits(jr,Z0);var ed=jr;jr.blockSize=1024;jr.outSize=512;jr.hmacStrength=192;jr.padLength=128;jr.prototype._prepareBlock=function(e,r){for(var i=this.W,n=0;n<32;n++)i[n]=e[r+n];for(;n<i.length;n+=2){var s=Gb(i[n-4],i[n-3]),o=Yb(i[n-4],i[n-3]),a=i[n-14],h=i[n-13],f=Vb(i[n-30],i[n-29]),p=Wb(i[n-30],i[n-29]),v=i[n-32],x=i[n-31];i[n]=Ob(s,o,a,h,f,p,v,x),i[n+1]=Pb(s,o,a,h,f,p,v,x)}};jr.prototype._update=function(e,r){this._prepareBlock(e,r);var i=this.W,n=this.h[0],s=this.h[1],o=this.h[2],a=this.h[3],h=this.h[4],f=this.h[5],p=this.h[6],v=this.h[7],x=this.h[8],E=this.h[9],D=this.h[10],B=this.h[11],F=this.h[12],j=this.h[13],R=this.h[14],K=this.h[15];Rb(this.k.length===i.length);for(var T=0;T<i.length;T+=2){var L=R,q=K,y=jb(x,E),P=Hb(x,E),Z=Ub(x,E,D,B,F),ne=kb(x,E,D,B,F,j),U=this.k[T],b=this.k[T+1],c=i[T],u=i[T+1],g=Bb(L,q,y,P,Z,ne,U,b,c,u),w=Fb(L,q,y,P,Z,ne,U,b,c,u);L=zb(n,s),q=Kb(n,s),y=$b(n,s,o,a,h),P=qb(n,s,o,a,h,f);var S=hc(L,q,y,P),C=uc(L,q,y,P);R=F,K=j,F=D,j=B,D=x,B=E,x=hc(p,v,g,w),E=uc(v,v,g,w),p=h,v=f,h=o,f=a,o=n,a=s,n=hc(g,w,S,C),s=uc(g,w,S,C)}Vi(this.h,0,n,s),Vi(this.h,2,o,a),Vi(this.h,4,h,f),Vi(this.h,6,p,v),Vi(this.h,8,x,E),Vi(this.h,10,D,B),Vi(this.h,12,F,j),Vi(this.h,14,R,K)};jr.prototype._digest=function(e){return e==="hex"?cr.toHex32(this.h,"big"):cr.split32(this.h,"big")};function Ub(t,e,r,i,n){var s=t&r^~t&n;return s<0&&(s+=4294967296),s}function kb(t,e,r,i,n,s){var o=e&i^~e&s;return o<0&&(o+=4294967296),o}function $b(t,e,r,i,n){var s=t&r^t&n^r&n;return s<0&&(s+=4294967296),s}function qb(t,e,r,i,n,s){var o=e&i^e&s^i&s;return o<0&&(o+=4294967296),o}function zb(t,e){var r=ti(t,e,28),i=ti(e,t,2),n=ti(e,t,7),s=r^i^n;return s<0&&(s+=4294967296),s}function Kb(t,e){var r=ri(t,e,28),i=ri(e,t,2),n=ri(e,t,7),s=r^i^n;return s<0&&(s+=4294967296),s}function jb(t,e){var r=ti(t,e,14),i=ti(t,e,18),n=ti(e,t,9),s=r^i^n;return s<0&&(s+=4294967296),s}function Hb(t,e){var r=ri(t,e,14),i=ri(t,e,18),n=ri(e,t,9),s=r^i^n;return s<0&&(s+=4294967296),s}function Vb(t,e){var r=ti(t,e,1),i=ti(t,e,8),n=Q0(t,e,7),s=r^i^n;return s<0&&(s+=4294967296),s}function Wb(t,e){var r=ri(t,e,1),i=ri(t,e,8),n=X0(t,e,7),s=r^i^n;return s<0&&(s+=4294967296),s}function Gb(t,e){var r=ti(t,e,19),i=ti(e,t,29),n=Q0(t,e,6),s=r^i^n;return s<0&&(s+=4294967296),s}function Yb(t,e){var r=ri(t,e,19),i=ri(e,t,29),n=X0(t,e,6),s=r^i^n;return s<0&&(s+=4294967296),s}var ef=tt,td=ed;function qi(){if(!(this instanceof qi))return new qi;td.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}ef.inherits(qi,td);var Jb=qi;qi.blockSize=1024;qi.outSize=384;qi.hmacStrength=192;qi.padLength=128;qi.prototype._digest=function(e){return e==="hex"?ef.toHex32(this.h.slice(0,12),"big"):ef.split32(this.h.slice(0,12),"big")};gs.sha1=mb;gs.sha224=Nb;gs.sha256=Y0;gs.sha384=Jb;gs.sha512=ed;var rd={},Mn=tt,Qb=ps,Bo=Mn.rotl32,Jh=Mn.sum32,Os=Mn.sum32_3,Qh=Mn.sum32_4,id=Qb.BlockHash;function hi(){if(!(this instanceof hi))return new hi;id.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}Mn.inherits(hi,id);rd.ripemd160=hi;hi.blockSize=512;hi.outSize=160;hi.hmacStrength=192;hi.padLength=64;hi.prototype._update=function(e,r){for(var i=this.h[0],n=this.h[1],s=this.h[2],o=this.h[3],a=this.h[4],h=i,f=n,p=s,v=o,x=a,E=0;E<80;E++){var D=Jh(Bo(Qh(i,Xh(E,n,s,o),e[ev[E]+r],Xb(E)),rv[E]),a);i=a,a=o,o=Bo(s,10),s=n,n=D,D=Jh(Bo(Qh(h,Xh(79-E,f,p,v),e[tv[E]+r],Zb(E)),iv[E]),x),h=x,x=v,v=Bo(p,10),p=f,f=D}D=Os(this.h[1],s,v),this.h[1]=Os(this.h[2],o,x),this.h[2]=Os(this.h[3],a,h),this.h[3]=Os(this.h[4],i,f),this.h[4]=Os(this.h[0],n,p),this.h[0]=D};hi.prototype._digest=function(e){return e==="hex"?Mn.toHex32(this.h,"little"):Mn.split32(this.h,"little")};function Xh(t,e,r,i){return t<=15?e^r^i:t<=31?e&r|~e&i:t<=47?(e|~r)^i:t<=63?e&i|r&~i:e^(r|~i)}function Xb(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function Zb(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}var ev=[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],tv=[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],rv=[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],iv=[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],nv=tt,sv=Nn;function es(t,e,r){if(!(this instanceof es))return new es(t,e,r);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(nv.toArray(e,r))}var ov=es;es.prototype._init=function(e){e.length>this.blockSize&&(e=new this.Hash().update(e).digest()),sv(e.length<=this.blockSize);for(var r=e.length;r<this.blockSize;r++)e.push(0);for(r=0;r<e.length;r++)e[r]^=54;for(this.inner=new this.Hash().update(e),r=0;r<e.length;r++)e[r]^=106;this.outer=new this.Hash().update(e)};es.prototype.update=function(e,r){return this.inner.update(e,r),this};es.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)};(function(t){var e=t;e.utils=tt,e.common=ps,e.sha=gs,e.ripemd=rd,e.hmac=ov,e.sha1=e.sha.sha1,e.sha256=e.sha.sha256,e.sha224=e.sha.sha224,e.sha384=e.sha.sha384,e.sha512=e.sha.sha512,e.ripemd160=e.ripemd.ripemd160})(Ra);var lc,Zh;function av(){return Zh||(Zh=1,lc={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"]]}}),lc}(function(t){var e=t,r=Ra,i=jf,n=br,s=n.assert;function o(f){f.type==="short"?this.curve=new i.short(f):f.type==="edwards"?this.curve=new i.edwards(f):this.curve=new i.mont(f),this.g=this.curve.g,this.n=this.curve.n,this.hash=f.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}e.PresetCurve=o;function a(f,p){Object.defineProperty(e,f,{configurable:!0,enumerable:!0,get:function(){var v=new o(p);return Object.defineProperty(e,f,{configurable:!0,enumerable:!0,value:v}),v}})}a("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:r.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),a("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:r.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),a("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:r.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),a("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:r.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"]}),a("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:r.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"]}),a("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:r.sha256,gRed:!1,g:["9"]}),a("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:r.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var h;try{h=av()}catch{h=void 0}a("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:r.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",h]})})(Ta);var cv=Ra,xn=zf,nd=Nn;function nn(t){if(!(this instanceof nn))return new nn(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=xn.toArray(t.entropy,t.entropyEnc||"hex"),r=xn.toArray(t.nonce,t.nonceEnc||"hex"),i=xn.toArray(t.pers,t.persEnc||"hex");nd(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,i)}var fv=nn;nn.prototype._init=function(e,r,i){var n=e.concat(r).concat(i);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var s=0;s<this.V.length;s++)this.K[s]=0,this.V[s]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656};nn.prototype._hmac=function(){return new cv.hmac(this.hash,this.K)};nn.prototype._update=function(e){var r=this._hmac().update(this.V).update([0]);e&&(r=r.update(e)),this.K=r.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())};nn.prototype.reseed=function(e,r,i,n){typeof r!="string"&&(n=i,i=r,r=null),e=xn.toArray(e,r),i=xn.toArray(i,n),nd(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(i||[])),this._reseed=1};nn.prototype.generate=function(e,r,i,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof r!="string"&&(n=i,i=r,r=null),i&&(i=xn.toArray(i,n||"hex"),this._update(i));for(var s=[];s.length<e;)this.V=this._hmac().update(this.V).digest(),s=s.concat(this.V);var o=s.slice(0,e);return this._update(i),this._reseed++,xn.encode(o,r)};var hv=zi,uv=br,tf=uv.assert;function jt(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}var lv=jt;jt.fromPublic=function(e,r,i){return r instanceof jt?r:new jt(e,{pub:r,pubEnc:i})};jt.fromPrivate=function(e,r,i){return r instanceof jt?r:new jt(e,{priv:r,privEnc:i})};jt.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"}};jt.prototype.getPublic=function(e,r){return typeof e=="string"&&(r=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),r?this.pub.encode(r,e):this.pub};jt.prototype.getPrivate=function(e){return e==="hex"?this.priv.toString(16,2):this.priv};jt.prototype._importPrivate=function(e,r){this.priv=new hv(e,r||16),this.priv=this.priv.umod(this.ec.curve.n)};jt.prototype._importPublic=function(e,r){if(e.x||e.y){this.ec.curve.type==="mont"?tf(e.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&tf(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,r)};jt.prototype.derive=function(e){return e.validate()||tf(e.validate(),"public point not validated"),e.mul(this.priv).getX()};jt.prototype.sign=function(e,r,i){return this.ec.sign(e,this,r,i)};jt.prototype.verify=function(e,r,i){return this.ec.verify(e,r,this,void 0,i)};jt.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var sa=zi,Vf=br,dv=Vf.assert;function Pa(t,e){if(t instanceof Pa)return t;this._importDER(t,e)||(dv(t.r&&t.s,"Signature without r or s"),this.r=new sa(t.r,16),this.s=new sa(t.s,16),t.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}var pv=Pa;function gv(){this.place=0}function dc(t,e){var r=t[e.place++];if(!(r&128))return r;var i=r&15;if(i===0||i>4||t[e.place]===0)return!1;for(var n=0,s=0,o=e.place;s<i;s++,o++)n<<=8,n|=t[o],n>>>=0;return n<=127?!1:(e.place=o,n)}function eu(t){for(var e=0,r=t.length-1;!t[e]&&!(t[e+1]&128)&&e<r;)e++;return e===0?t:t.slice(e)}Pa.prototype._importDER=function(e,r){e=Vf.toArray(e,r);var i=new gv;if(e[i.place++]!==48)return!1;var n=dc(e,i);if(n===!1||n+i.place!==e.length||e[i.place++]!==2)return!1;var s=dc(e,i);if(s===!1||e[i.place]&128)return!1;var o=e.slice(i.place,s+i.place);if(i.place+=s,e[i.place++]!==2)return!1;var a=dc(e,i);if(a===!1||e.length!==a+i.place||e[i.place]&128)return!1;var h=e.slice(i.place,a+i.place);if(o[0]===0)if(o[1]&128)o=o.slice(1);else return!1;if(h[0]===0)if(h[1]&128)h=h.slice(1);else return!1;return this.r=new sa(o),this.s=new sa(h),this.recoveryParam=null,!0};function pc(t,e){if(e<128){t.push(e);return}var r=1+(Math.log(e)/Math.LN2>>>3);for(t.push(r|128);--r;)t.push(e>>>(r<<3)&255);t.push(e)}Pa.prototype.toDER=function(e){var r=this.r.toArray(),i=this.s.toArray();for(r[0]&128&&(r=[0].concat(r)),i[0]&128&&(i=[0].concat(i)),r=eu(r),i=eu(i);!i[0]&&!(i[1]&128);)i=i.slice(1);var n=[2];pc(n,r.length),n=n.concat(r),n.push(2),pc(n,i.length);var s=n.concat(i),o=[48];return pc(o,s.length),o=o.concat(s),Vf.encode(o,e)};var qr=zi,sd=fv,bv=br,gc=Ta,vv=U0,mn=bv.assert,Wf=lv,Ba=pv;function Cr(t){if(!(this instanceof Cr))return new Cr(t);typeof t=="string"&&(mn(Object.prototype.hasOwnProperty.call(gc,t),"Unknown curve "+t),t=gc[t]),t instanceof gc.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}var mv=Cr;Cr.prototype.keyPair=function(e){return new Wf(this,e)};Cr.prototype.keyFromPrivate=function(e,r){return Wf.fromPrivate(this,e,r)};Cr.prototype.keyFromPublic=function(e,r){return Wf.fromPublic(this,e,r)};Cr.prototype.genKeyPair=function(e){e||(e={});for(var r=new sd({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||vv(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),i=this.n.byteLength(),n=this.n.sub(new qr(2));;){var s=new qr(r.generate(i));if(!(s.cmp(n)>0))return s.iaddn(1),this.keyFromPrivate(s)}};Cr.prototype._truncateToN=function(e,r,i){var n;if(qr.isBN(e)||typeof e=="number")e=new qr(e,16),n=e.byteLength();else if(typeof e=="object")n=e.length,e=new qr(e,16);else{var s=e.toString();n=s.length+1>>>1,e=new qr(s,16)}typeof i!="number"&&(i=n*8);var o=i-this.n.bitLength();return o>0&&(e=e.ushrn(o)),!r&&e.cmp(this.n)>=0?e.sub(this.n):e};Cr.prototype.sign=function(e,r,i,n){if(typeof i=="object"&&(n=i,i=null),n||(n={}),typeof e!="string"&&typeof e!="number"&&!qr.isBN(e)){mn(typeof e=="object"&&e&&typeof e.length=="number","Expected message to be an array-like, a hex string, or a BN instance"),mn(e.length>>>0===e.length);for(var s=0;s<e.length;s++)mn((e[s]&255)===e[s])}r=this.keyFromPrivate(r,i),e=this._truncateToN(e,!1,n.msgBitLength),mn(!e.isNeg(),"Can not sign a negative message");var o=this.n.byteLength(),a=r.getPrivate().toArray("be",o),h=e.toArray("be",o);mn(new qr(h).eq(e),"Can not sign message");for(var f=new sd({hash:this.hash,entropy:a,nonce:h,pers:n.pers,persEnc:n.persEnc||"utf8"}),p=this.n.sub(new qr(1)),v=0;;v++){var x=n.k?n.k(v):new qr(f.generate(this.n.byteLength()));if(x=this._truncateToN(x,!0),!(x.cmpn(1)<=0||x.cmp(p)>=0)){var E=this.g.mul(x);if(!E.isInfinity()){var D=E.getX(),B=D.umod(this.n);if(B.cmpn(0)!==0){var F=x.invm(this.n).mul(B.mul(r.getPrivate()).iadd(e));if(F=F.umod(this.n),F.cmpn(0)!==0){var j=(E.getY().isOdd()?1:0)|(D.cmp(B)!==0?2:0);return n.canonical&&F.cmp(this.nh)>0&&(F=this.n.sub(F),j^=1),new Ba({r:B,s:F,recoveryParam:j})}}}}}};Cr.prototype.verify=function(e,r,i,n,s){s||(s={}),e=this._truncateToN(e,!1,s.msgBitLength),i=this.keyFromPublic(i,n),r=new Ba(r,"hex");var o=r.r,a=r.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0||a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var h=a.invm(this.n),f=h.mul(e).umod(this.n),p=h.mul(o).umod(this.n),v;return this.curve._maxwellTrick?(v=this.g.jmulAdd(f,i.getPublic(),p),v.isInfinity()?!1:v.eqXToP(o)):(v=this.g.mulAdd(f,i.getPublic(),p),v.isInfinity()?!1:v.getX().umod(this.n).cmp(o)===0)};Cr.prototype.recoverPubKey=function(t,e,r,i){mn((3&r)===r,"The recovery param is more than two bits"),e=new Ba(e,i);var n=this.n,s=new qr(t),o=e.r,a=e.s,h=r&1,f=r>>1;if(o.cmp(this.curve.p.umod(this.curve.n))>=0&&f)throw new Error("Unable to find sencond key candinate");f?o=this.curve.pointFromX(o.add(this.curve.n),h):o=this.curve.pointFromX(o,h);var p=e.r.invm(n),v=n.sub(s).mul(p).umod(n),x=a.mul(p).umod(n);return this.g.mulAdd(v,o,x)};Cr.prototype.getKeyRecoveryParam=function(t,e,r,i){if(e=new Ba(e,i),e.recoveryParam!==null)return e.recoveryParam;for(var n=0;n<4;n++){var s;try{s=this.recoverPubKey(t,e,n)}catch{continue}if(s.eq(r))return n}throw new Error("Unable to find valid recovery factor")};var po=br,od=po.assert,tu=po.parseBytes,vs=po.cachedProperty;function Nt(t,e){this.eddsa=t,this._secret=tu(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=tu(e.pub)}Nt.fromPublic=function(e,r){return r instanceof Nt?r:new Nt(e,{pub:r})};Nt.fromSecret=function(e,r){return r instanceof Nt?r:new Nt(e,{secret:r})};Nt.prototype.secret=function(){return this._secret};vs(Nt,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())});vs(Nt,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});vs(Nt,"privBytes",function(){var e=this.eddsa,r=this.hash(),i=e.encodingLength-1,n=r.slice(0,e.encodingLength);return n[0]&=248,n[i]&=127,n[i]|=64,n});vs(Nt,"priv",function(){return this.eddsa.decodeInt(this.privBytes())});vs(Nt,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()});vs(Nt,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)});Nt.prototype.sign=function(e){return od(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)};Nt.prototype.verify=function(e,r){return this.eddsa.verify(e,r,this)};Nt.prototype.getSecret=function(e){return od(this._secret,"KeyPair is public only"),po.encode(this.secret(),e)};Nt.prototype.getPublic=function(e){return po.encode(this.pubBytes(),e)};var yv=Nt,wv=zi,Fa=br,ru=Fa.assert,La=Fa.cachedProperty,_v=Fa.parseBytes;function Tn(t,e){this.eddsa=t,typeof e!="object"&&(e=_v(e)),Array.isArray(e)&&(ru(e.length===t.encodingLength*2,"Signature has invalid size"),e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),ru(e.R&&e.S,"Signature without R or S"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof wv&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}La(Tn,"S",function(){return this.eddsa.decodeInt(this.Sencoded())});La(Tn,"R",function(){return this.eddsa.decodePoint(this.Rencoded())});La(Tn,"Rencoded",function(){return this.eddsa.encodePoint(this.R())});La(Tn,"Sencoded",function(){return this.eddsa.encodeInt(this.S())});Tn.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};Tn.prototype.toHex=function(){return Fa.encode(this.toBytes(),"hex").toUpperCase()};var Ev=Tn,Av=Ra,xv=Ta,ts=br,Sv=ts.assert,ad=ts.parseBytes,cd=yv,iu=Ev;function fr(t){if(Sv(t==="ed25519","only tested with ed25519 so far"),!(this instanceof fr))return new fr(t);t=xv[t].curve,this.curve=t,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=Av.sha512}var Mv=fr;fr.prototype.sign=function(e,r){e=ad(e);var i=this.keyFromSecret(r),n=this.hashInt(i.messagePrefix(),e),s=this.g.mul(n),o=this.encodePoint(s),a=this.hashInt(o,i.pubBytes(),e).mul(i.priv()),h=n.add(a).umod(this.curve.n);return this.makeSignature({R:s,S:h,Rencoded:o})};fr.prototype.verify=function(e,r,i){if(e=ad(e),r=this.makeSignature(r),r.S().gte(r.eddsa.curve.n)||r.S().isNeg())return!1;var n=this.keyFromPublic(i),s=this.hashInt(r.Rencoded(),n.pubBytes(),e),o=this.g.mul(r.S()),a=r.R().add(n.pub().mul(s));return a.eq(o)};fr.prototype.hashInt=function(){for(var e=this.hash(),r=0;r<arguments.length;r++)e.update(arguments[r]);return ts.intFromLE(e.digest()).umod(this.curve.n)};fr.prototype.keyFromPublic=function(e){return cd.fromPublic(this,e)};fr.prototype.keyFromSecret=function(e){return cd.fromSecret(this,e)};fr.prototype.makeSignature=function(e){return e instanceof iu?e:new iu(this,e)};fr.prototype.encodePoint=function(e){var r=e.getY().toArray("le",this.encodingLength);return r[this.encodingLength-1]|=e.getX().isOdd()?128:0,r};fr.prototype.decodePoint=function(e){e=ts.parseBytes(e);var r=e.length-1,i=e.slice(0,r).concat(e[r]&-129),n=(e[r]&128)!==0,s=ts.intFromLE(i);return this.curve.pointFromY(s,n)};fr.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)};fr.prototype.decodeInt=function(e){return ts.intFromLE(e)};fr.prototype.isPoint=function(e){return e instanceof this.pointClass};(function(t){var e=t;e.version=S2.version,e.utils=br,e.rand=U0,e.curve=jf,e.curves=Ta,e.ec=mv,e.eddsa=Mv})(F0);var Gf={},ft={};Object.defineProperty(ft,"__esModule",{value:!0});var fd=ft.getLocalStorage=wd=ft.getLocalStorageOrThrow=yd=ft.getCrypto=md=ft.getCryptoOrThrow=vd=ft.getLocation=bd=ft.getLocationOrThrow=gd=ft.getNavigator=pd=ft.getNavigatorOrThrow=dd=ft.getDocument=ld=ft.getDocumentOrThrow=ud=ft.getFromWindowOrThrow=hd=ft.getFromWindow=void 0;function Rn(t){let e;return typeof window<"u"&&typeof window[t]<"u"&&(e=window[t]),e}var hd=ft.getFromWindow=Rn;function ms(t){const e=Rn(t);if(!e)throw new Error(`${t} is not defined in Window`);return e}var ud=ft.getFromWindowOrThrow=ms;function Iv(){return ms("document")}var ld=ft.getDocumentOrThrow=Iv;function Dv(){return Rn("document")}var dd=ft.getDocument=Dv;function Cv(){return ms("navigator")}var pd=ft.getNavigatorOrThrow=Cv;function Nv(){return Rn("navigator")}var gd=ft.getNavigator=Nv;function Tv(){return ms("location")}var bd=ft.getLocationOrThrow=Tv;function Rv(){return Rn("location")}var vd=ft.getLocation=Rv;function Ov(){return ms("crypto")}var md=ft.getCryptoOrThrow=Ov;function Pv(){return Rn("crypto")}var yd=ft.getCrypto=Pv;function Bv(){return ms("localStorage")}var wd=ft.getLocalStorageOrThrow=Bv;function Fv(){return Rn("localStorage")}fd=ft.getLocalStorage=Fv;Object.defineProperty(Gf,"__esModule",{value:!0});var _d=Gf.getWindowMetadata=void 0;const nu=ft;function Lv(){let t,e;try{t=nu.getDocumentOrThrow(),e=nu.getLocationOrThrow()}catch{return null}function r(){const v=t.getElementsByTagName("link"),x=[];for(let E=0;E<v.length;E++){const D=v[E],B=D.getAttribute("rel");if(B&&B.toLowerCase().indexOf("icon")>-1){const F=D.getAttribute("href");if(F)if(F.toLowerCase().indexOf("https:")===-1&&F.toLowerCase().indexOf("http:")===-1&&F.indexOf("//")!==0){let j=e.protocol+"//"+e.host;if(F.indexOf("/")===0)j+=F;else{const R=e.pathname.split("/");R.pop();const K=R.join("/");j+=K+"/"+F}x.push(j)}else if(F.indexOf("//")===0){const j=e.protocol+F;x.push(j)}else x.push(F)}}return x}function i(...v){const x=t.getElementsByTagName("meta");for(let E=0;E<x.length;E++){const D=x[E],B=["itemprop","property","name"].map(F=>D.getAttribute(F)).filter(F=>F?v.includes(F):!1);if(B.length&&B){const F=D.getAttribute("content");if(F)return F}}return""}function n(){let v=i("name","og:site_name","og:title","twitter:title");return v||(v=t.title),v}function s(){return i("description","og:description","twitter:description","keywords")}const o=n(),a=s(),h=e.origin,f=r();return{description:a,url:h,icons:f,name:o}}_d=Gf.getWindowMetadata=Lv;var Uv=function(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;for(var i=Array(t),n=0,e=0;e<r;e++)for(var s=arguments[e],o=0,a=s.length;o<a;o++,n++)i[n]=s[o];return i},kv=function(){function t(e,r,i){this.name=e,this.version=r,this.os=i,this.type="browser"}return t}(),$v=function(){function t(e){this.version=e,this.type="node",this.name="node",this.os=process.platform}return t}(),qv=function(){function t(e,r,i,n){this.name=e,this.version=r,this.os=i,this.bot=n,this.type="bot-device"}return t}(),zv=function(){function t(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return t}(),Kv=function(){function t(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return t}(),jv=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,Hv=/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,su=3,Vv=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FBAV\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["searchbot",jv]],ou=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function Wv(t){return t?au(t):typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new Kv:typeof navigator<"u"?au(navigator.userAgent):Jv()}function Gv(t){return t!==""&&Vv.reduce(function(e,r){var i=r[0],n=r[1];if(e)return e;var s=n.exec(t);return!!s&&[i,s]},!1)}function au(t){var e=Gv(t);if(!e)return null;var r=e[0],i=e[1];if(r==="searchbot")return new zv;var n=i[1]&&i[1].split(/[._]/).slice(0,3);n?n.length<su&&(n=Uv(n,Qv(su-n.length))):n=[];var s=n.join("."),o=Yv(t),a=Hv.exec(t);return a&&a[1]?new qv(r,s,o,a[1]):new kv(r,s,o)}function Yv(t){for(var e=0,r=ou.length;e<r;e++){var i=ou[e],n=i[0],s=i[1],o=s.exec(t);if(o)return n}return null}function Jv(){var t=typeof process<"u"&&process.version;return t?new $v(process.version.slice(1)):null}function Qv(t){for(var e=[],r=0;r<t;r++)e.push("0");return e}function Yf(t){return Wv(t)}function Ua(){const t=Yf();return t&&t.os?t.os:void 0}function Ed(){const t=Ua();return t?t.toLowerCase().includes("android"):!1}function Ad(){const t=Ua();return t?t.toLowerCase().includes("ios")||t.toLowerCase().includes("mac")&&navigator.maxTouchPoints>1:!1}function Xv(){return Ua()?Ed()||Ad():!1}function xd(){const t=Yf();return t&&t.name?t.name.toLowerCase()==="node":!1}function Zv(){return!xd()&&!!Sd()}const em=hd,tm=ud,rm=ld,im=dd,nm=pd,Sd=gd,sm=bd,om=vd,am=md,cm=yd,fm=wd,ka=fd;function hm(){return _d()}function um(t){if(typeof t!="string")throw new Error(`Cannot safe json parse value of type ${typeof t}`);try{return JSON.parse(t)}catch{return t}}function lm(t){return typeof t=="string"?t:JSON.stringify(t)}const Md=um,Id=lm;function Dd(t,e){const r=Id(e),i=ka();i&&i.setItem(t,r)}function dm(t){let e=null,r=null;const i=ka();return i&&(r=i.getItem(t)),e=r&&Md(r),e}function pm(t){const e=ka();e&&e.removeItem(t)}const Cd="WALLETCONNECT_DEEPLINK_CHOICE";function gm(t,e){const r=encodeURIComponent(t);return e.universalLink?`${e.universalLink}/wc?uri=${r}`:e.deepLink?`${e.deepLink}${e.deepLink.endsWith(":")?"//":"/"}wc?uri=${r}`:""}function bm(t){const e=t.href.split("?")[0];Dd(Cd,Object.assign(Object.assign({},t),{href:e}))}function Nd(t,e){return t.filter(r=>r.name.toLowerCase().includes(e.toLowerCase()))[0]}function vm(t,e){let r=t;return e&&(r=e.map(i=>Nd(t,i)).filter(Boolean)),r}const Td="https://registry.walletconnect.com";function mm(){return Td+"/api/v2/wallets"}function ym(){return Td+"/api/v2/dapps"}function Rd(t,e="mobile"){var r;return{name:t.name||"",shortName:t.metadata.shortName||"",color:t.metadata.colors.primary||"",logo:(r=t.image_url.sm)!==null&&r!==void 0?r:"",universalLink:t[e].universal||"",deepLink:t[e].native||""}}function wm(t,e="mobile"){return Object.values(t).filter(r=>!!r[e].universal||!!r[e].native).map(r=>Rd(r,e))}const _m=Object.freeze(Object.defineProperty({__proto__:null,detectEnv:Yf,detectOS:Ua,formatIOSMobile:gm,formatMobileRegistry:wm,formatMobileRegistryEntry:Rd,getClientMeta:hm,getCrypto:cm,getCryptoOrThrow:am,getDappRegistryUrl:ym,getDocument:im,getDocumentOrThrow:rm,getFromWindow:em,getFromWindowOrThrow:tm,getLocal:dm,getLocalStorage:ka,getLocalStorageOrThrow:fm,getLocation:om,getLocationOrThrow:sm,getMobileLinkRegistry:vm,getMobileRegistryEntry:Nd,getNavigator:Sd,getNavigatorOrThrow:nm,getWalletRegistryUrl:mm,isAndroid:Ed,isBrowser:Zv,isIOS:Ad,isMobile:Xv,isNode:xd,mobileLinkChoiceKey:Cd,removeLocal:pm,safeJsonParse:Md,safeJsonStringify:Id,saveMobileLinkInfo:bm,setLocal:Dd},Symbol.toStringTag,{value:"Module"})),Em=Ma(_m);var go={},Am=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},Od={},on={},xm={}.toString,Jf=Array.isArray||function(t){return xm.call(t)=="[object Array]"},Sm=Jf;function Mm(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},t.foo()===42}catch{return!1}}et.TYPED_ARRAY_SUPPORT=Mm();var cu=et.TYPED_ARRAY_SUPPORT?2147483647:1073741823;function et(t,e,r){return!et.TYPED_ARRAY_SUPPORT&&!(this instanceof et)?new et(t,e,r):typeof t=="number"?Pd(this,t):Om(this,t,e,r)}et.TYPED_ARRAY_SUPPORT&&(et.prototype.__proto__=Uint8Array.prototype,et.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&et[Symbol.species]===et&&Object.defineProperty(et,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}));function Qf(t){if(t>=cu)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+cu.toString(16)+" bytes");return t|0}function Im(t){return t!==t}function rs(t,e){var r;return et.TYPED_ARRAY_SUPPORT?(r=new Uint8Array(e),r.__proto__=et.prototype):(r=t,r===null&&(r=new et(e)),r.length=e),r}function Pd(t,e){var r=rs(t,e<0?0:Qf(e)|0);if(!et.TYPED_ARRAY_SUPPORT)for(var i=0;i<e;++i)r[i]=0;return r}function Dm(t,e){var r=Fd(e)|0,i=rs(t,r),n=i.write(e);return n!==r&&(i=i.slice(0,n)),i}function rf(t,e){for(var r=e.length<0?0:Qf(e.length)|0,i=rs(t,r),n=0;n<r;n+=1)i[n]=e[n]&255;return i}function Cm(t,e,r,i){if(r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(i||0))throw new RangeError("'length' is out of bounds");var n;return r===void 0&&i===void 0?n=new Uint8Array(e):i===void 0?n=new Uint8Array(e,r):n=new Uint8Array(e,r,i),et.TYPED_ARRAY_SUPPORT?n.__proto__=et.prototype:n=rf(t,n),n}function Nm(t,e){if(et.isBuffer(e)){var r=Qf(e.length)|0,i=rs(t,r);return i.length===0||e.copy(i,0,0,r),i}if(e){if(typeof ArrayBuffer<"u"&&e.buffer instanceof ArrayBuffer||"length"in e)return typeof e.length!="number"||Im(e.length)?rs(t,0):rf(t,e);if(e.type==="Buffer"&&Array.isArray(e.data))return rf(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function Bd(t,e){e=e||1/0;for(var r,i=t.length,n=null,s=[],o=0;o<i;++o){if(r=t.charCodeAt(o),r>55295&&r<57344){if(!n){if(r>56319){(e-=3)>-1&&s.push(239,191,189);continue}else if(o+1===i){(e-=3)>-1&&s.push(239,191,189);continue}n=r;continue}if(r<56320){(e-=3)>-1&&s.push(239,191,189),n=r;continue}r=(n-55296<<10|r-56320)+65536}else n&&(e-=3)>-1&&s.push(239,191,189);if(n=null,r<128){if((e-=1)<0)break;s.push(r)}else if(r<2048){if((e-=2)<0)break;s.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;s.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return s}function Fd(t){if(et.isBuffer(t))return t.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;typeof t!="string"&&(t=""+t);var e=t.length;return e===0?0:Bd(t).length}function Tm(t,e,r,i){for(var n=0;n<i&&!(n+r>=e.length||n>=t.length);++n)e[n+r]=t[n];return n}function Rm(t,e,r,i){return Tm(Bd(e,t.length-r),t,r,i)}function Om(t,e,r,i){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer?Cm(t,e,r,i):typeof e=="string"?Dm(t,e):Nm(t,e)}et.prototype.write=function(e,r,i){r===void 0?(i=this.length,r=0):i===void 0&&typeof r=="string"?(i=this.length,r=0):isFinite(r)&&(r=r|0,isFinite(i)?i=i|0:i=void 0);var n=this.length-r;if((i===void 0||i>n)&&(i=n),e.length>0&&(i<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");return Rm(this,e,r,i)};et.prototype.slice=function(e,r){var i=this.length;e=~~e,r=r===void 0?i:~~r,e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),r<e&&(r=e);var n;if(et.TYPED_ARRAY_SUPPORT)n=this.subarray(e,r),n.__proto__=et.prototype;else{var s=r-e;n=new et(s,void 0);for(var o=0;o<s;++o)n[o]=this[o+e]}return n};et.prototype.copy=function(e,r,i,n){if(i||(i=0),!n&&n!==0&&(n=this.length),r>=e.length&&(r=e.length),r||(r=0),n>0&&n<i&&(n=i),n===i||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-r<n-i&&(n=e.length-r+i);var s=n-i,o;if(this===e&&i<r&&r<n)for(o=s-1;o>=0;--o)e[o+r]=this[o+i];else if(s<1e3||!et.TYPED_ARRAY_SUPPORT)for(o=0;o<s;++o)e[o+r]=this[o+i];else Uint8Array.prototype.set.call(e,this.subarray(i,i+s),r);return s};et.prototype.fill=function(e,r,i){if(typeof e=="string"){if(typeof r=="string"?(r=0,i=this.length):typeof i=="string"&&(i=this.length),e.length===1){var n=e.charCodeAt(0);n<256&&(e=n)}}else typeof e=="number"&&(e=e&255);if(r<0||this.length<r||this.length<i)throw new RangeError("Out of range index");if(i<=r)return this;r=r>>>0,i=i===void 0?this.length:i>>>0,e||(e=0);var s;if(typeof e=="number")for(s=r;s<i;++s)this[s]=e;else{var o=et.isBuffer(e)?e:new et(e),a=o.length;for(s=0;s<i-r;++s)this[s+r]=o[s%a]}return this};et.concat=function(e,r){if(!Sm(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return rs(null,0);var i;if(r===void 0)for(r=0,i=0;i<e.length;++i)r+=e[i].length;var n=Pd(null,r),s=0;for(i=0;i<e.length;++i){var o=e[i];if(!et.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,s),s+=o.length}return n};et.byteLength=Fd;et.prototype._isBuffer=!0;et.isBuffer=function(e){return!!(e!=null&&e._isBuffer)};on.alloc=function(t){var e=new et(t);return e.fill(0),e};on.from=function(t){return new et(t)};var vr={},Xf,Pm=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];vr.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17};vr.getSymbolTotalCodewords=function(e){return Pm[e]};vr.getBCHDigit=function(t){for(var e=0;t!==0;)e++,t>>>=1;return e};vr.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');Xf=e};vr.isKanjiModeEnabled=function(){return typeof Xf<"u"};vr.toSJIS=function(e){return Xf(e)};var $a={};(function(t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2};function e(r){if(typeof r!="string")throw new Error("Param is not a string");var i=r.toLowerCase();switch(i){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+r)}}t.isValid=function(i){return i&&typeof i.bit<"u"&&i.bit>=0&&i.bit<4},t.from=function(i,n){if(t.isValid(i))return i;try{return e(i)}catch{return n}}})($a);function Ld(){this.buffer=[],this.length=0}Ld.prototype={get:function(t){var e=Math.floor(t/8);return(this.buffer[e]>>>7-t%8&1)===1},put:function(t,e){for(var r=0;r<e;r++)this.putBit((t>>>e-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var Bm=Ld,fu=on;function bo(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=fu.alloc(t*t),this.reservedBit=fu.alloc(t*t)}bo.prototype.set=function(t,e,r,i){var n=t*this.size+e;this.data[n]=r,i&&(this.reservedBit[n]=!0)};bo.prototype.get=function(t,e){return this.data[t*this.size+e]};bo.prototype.xor=function(t,e,r){this.data[t*this.size+e]^=r};bo.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]};var Fm=bo,Ud={};(function(t){var e=vr.getSymbolSize;t.getRowColCoords=function(i){if(i===1)return[];for(var n=Math.floor(i/7)+2,s=e(i),o=s===145?26:Math.ceil((s-13)/(2*n-2))*2,a=[s-7],h=1;h<n-1;h++)a[h]=a[h-1]-o;return a.push(6),a.reverse()},t.getPositions=function(i){for(var n=[],s=t.getRowColCoords(i),o=s.length,a=0;a<o;a++)for(var h=0;h<o;h++)a===0&&h===0||a===0&&h===o-1||a===o-1&&h===0||n.push([s[a],s[h]]);return n}})(Ud);var kd={},Lm=vr.getSymbolSize,hu=7;kd.getPositions=function(e){var r=Lm(e);return[[0,0],[r-hu,0],[0,r-hu]]};var $d={};(function(t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var e={N1:3,N2:3,N3:40,N4:10};t.isValid=function(n){return n!=null&&n!==""&&!isNaN(n)&&n>=0&&n<=7},t.from=function(n){return t.isValid(n)?parseInt(n,10):void 0},t.getPenaltyN1=function(n){for(var s=n.size,o=0,a=0,h=0,f=null,p=null,v=0;v<s;v++){a=h=0,f=p=null;for(var x=0;x<s;x++){var E=n.get(v,x);E===f?a++:(a>=5&&(o+=e.N1+(a-5)),f=E,a=1),E=n.get(x,v),E===p?h++:(h>=5&&(o+=e.N1+(h-5)),p=E,h=1)}a>=5&&(o+=e.N1+(a-5)),h>=5&&(o+=e.N1+(h-5))}return o},t.getPenaltyN2=function(n){for(var s=n.size,o=0,a=0;a<s-1;a++)for(var h=0;h<s-1;h++){var f=n.get(a,h)+n.get(a,h+1)+n.get(a+1,h)+n.get(a+1,h+1);(f===4||f===0)&&o++}return o*e.N2},t.getPenaltyN3=function(n){for(var s=n.size,o=0,a=0,h=0,f=0;f<s;f++){a=h=0;for(var p=0;p<s;p++)a=a<<1&2047|n.get(f,p),p>=10&&(a===1488||a===93)&&o++,h=h<<1&2047|n.get(p,f),p>=10&&(h===1488||h===93)&&o++}return o*e.N3},t.getPenaltyN4=function(n){for(var s=0,o=n.data.length,a=0;a<o;a++)s+=n.data[a];var h=Math.abs(Math.ceil(s*100/o/5)-10);return h*e.N4};function r(i,n,s){switch(i){case t.Patterns.PATTERN000:return(n+s)%2===0;case t.Patterns.PATTERN001:return n%2===0;case t.Patterns.PATTERN010:return s%3===0;case t.Patterns.PATTERN011:return(n+s)%3===0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(s/3))%2===0;case t.Patterns.PATTERN101:return n*s%2+n*s%3===0;case t.Patterns.PATTERN110:return(n*s%2+n*s%3)%2===0;case t.Patterns.PATTERN111:return(n*s%3+(n+s)%2)%2===0;default:throw new Error("bad maskPattern:"+i)}}t.applyMask=function(n,s){for(var o=s.size,a=0;a<o;a++)for(var h=0;h<o;h++)s.isReserved(h,a)||s.xor(h,a,r(n,h,a))},t.getBestMask=function(n,s){for(var o=Object.keys(t.Patterns).length,a=0,h=1/0,f=0;f<o;f++){s(f),t.applyMask(f,n);var p=t.getPenaltyN1(n)+t.getPenaltyN2(n)+t.getPenaltyN3(n)+t.getPenaltyN4(n);t.applyMask(f,n),p<h&&(h=p,a=f)}return a}})($d);var qa={},en=$a,Fo=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],Lo=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];qa.getBlocksCount=function(e,r){switch(r){case en.L:return Fo[(e-1)*4+0];case en.M:return Fo[(e-1)*4+1];case en.Q:return Fo[(e-1)*4+2];case en.H:return Fo[(e-1)*4+3];default:return}};qa.getTotalCodewordsCount=function(e,r){switch(r){case en.L:return Lo[(e-1)*4+0];case en.M:return Lo[(e-1)*4+1];case en.Q:return Lo[(e-1)*4+2];case en.H:return Lo[(e-1)*4+3];default:return}};var qd={},za={},zd=on,Ws=zd.alloc(512),oa=zd.alloc(256);(function(){for(var e=1,r=0;r<255;r++)Ws[r]=e,oa[e]=r,e<<=1,e&256&&(e^=285);for(r=255;r<512;r++)Ws[r]=Ws[r-255]})();za.log=function(e){if(e<1)throw new Error("log("+e+")");return oa[e]};za.exp=function(e){return Ws[e]};za.mul=function(e,r){return e===0||r===0?0:Ws[oa[e]+oa[r]]};(function(t){var e=on,r=za;t.mul=function(n,s){for(var o=e.alloc(n.length+s.length-1),a=0;a<n.length;a++)for(var h=0;h<s.length;h++)o[a+h]^=r.mul(n[a],s[h]);return o},t.mod=function(n,s){for(var o=e.from(n);o.length-s.length>=0;){for(var a=o[0],h=0;h<s.length;h++)o[h]^=r.mul(s[h],a);for(var f=0;f<o.length&&o[f]===0;)f++;o=o.slice(f)}return o},t.generateECPolynomial=function(n){for(var s=e.from([1]),o=0;o<n;o++)s=t.mul(s,[1,r.exp(o)]);return s}})(qd);var Kd={};/*!
|
|
1
|
+
import{r as kf,c as $r,g as Ma,a as n2,i as s2,d as o2,e as $f,f as a2,h as li,j as c2,k as B0,P as f2,T as h2,b as ac}from"./index-C7cxVRDF.js";import{i as Ia}from"./inherits_browser-BlmhoU4v.js";var F0={};const u2="elliptic",l2="6.6.1",d2="EC cryptography",p2="lib/elliptic.js",g2=["lib"],b2={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/"},v2={type:"git",url:"git@github.com:indutny/elliptic"},m2=["EC","Elliptic","curve","Cryptography"],y2="Fedor Indutny <fedor@indutny.com>",w2="MIT",_2={url:"https://github.com/indutny/elliptic/issues"},E2="https://github.com/indutny/elliptic",A2={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"},x2={"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"},S2={name:u2,version:l2,description:d2,main:p2,files:g2,scripts:b2,repository:v2,keywords:m2,author:y2,license:w2,bugs:_2,homepage:E2,devDependencies:A2,dependencies:x2};var br={},qf={exports:{}};qf.exports;(function(t){(function(e,r){function i(U,b){if(!U)throw new Error(b||"Assertion failed")}function n(U,b){U.super_=b;var c=function(){};c.prototype=b.prototype,U.prototype=new c,U.prototype.constructor=U}function s(U,b,c){if(s.isBN(U))return U;this.negative=0,this.words=null,this.length=0,this.red=null,U!==null&&((b==="le"||b==="be")&&(c=b,b=10),this._init(U||0,b||10,c||"be"))}typeof e=="object"?e.exports=s:r.BN=s,s.BN=s,s.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=kf.Buffer}catch{}s.isBN=function(b){return b instanceof s?!0:b!==null&&typeof b=="object"&&b.constructor.wordSize===s.wordSize&&Array.isArray(b.words)},s.max=function(b,c){return b.cmp(c)>0?b:c},s.min=function(b,c){return b.cmp(c)<0?b:c},s.prototype._init=function(b,c,u){if(typeof b=="number")return this._initNumber(b,c,u);if(typeof b=="object")return this._initArray(b,c,u);c==="hex"&&(c=16),i(c===(c|0)&&c>=2&&c<=36),b=b.toString().replace(/\s+/g,"");var g=0;b[0]==="-"&&(g++,this.negative=1),g<b.length&&(c===16?this._parseHex(b,g,u):(this._parseBase(b,c,g),u==="le"&&this._initArray(this.toArray(),c,u)))},s.prototype._initNumber=function(b,c,u){b<0&&(this.negative=1,b=-b),b<67108864?(this.words=[b&67108863],this.length=1):b<4503599627370496?(this.words=[b&67108863,b/67108864&67108863],this.length=2):(i(b<9007199254740992),this.words=[b&67108863,b/67108864&67108863,1],this.length=3),u==="le"&&this._initArray(this.toArray(),c,u)},s.prototype._initArray=function(b,c,u){if(i(typeof b.length=="number"),b.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(b.length/3),this.words=new Array(this.length);for(var g=0;g<this.length;g++)this.words[g]=0;var w,S,C=0;if(u==="be")for(g=b.length-1,w=0;g>=0;g-=3)S=b[g]|b[g-1]<<8|b[g-2]<<16,this.words[w]|=S<<C&67108863,this.words[w+1]=S>>>26-C&67108863,C+=24,C>=26&&(C-=26,w++);else if(u==="le")for(g=0,w=0;g<b.length;g+=3)S=b[g]|b[g+1]<<8|b[g+2]<<16,this.words[w]|=S<<C&67108863,this.words[w+1]=S>>>26-C&67108863,C+=24,C>=26&&(C-=26,w++);return this.strip()};function a(U,b){var c=U.charCodeAt(b);return c>=65&&c<=70?c-55:c>=97&&c<=102?c-87:c-48&15}function h(U,b,c){var u=a(U,c);return c-1>=b&&(u|=a(U,c-1)<<4),u}s.prototype._parseHex=function(b,c,u){this.length=Math.ceil((b.length-c)/6),this.words=new Array(this.length);for(var g=0;g<this.length;g++)this.words[g]=0;var w=0,S=0,C;if(u==="be")for(g=b.length-1;g>=c;g-=2)C=h(b,c,g)<<w,this.words[S]|=C&67108863,w>=18?(w-=18,S+=1,this.words[S]|=C>>>26):w+=8;else{var _=b.length-c;for(g=_%2===0?c+1:c;g<b.length;g+=2)C=h(b,c,g)<<w,this.words[S]|=C&67108863,w>=18?(w-=18,S+=1,this.words[S]|=C>>>26):w+=8}this.strip()};function f(U,b,c,u){for(var g=0,w=Math.min(U.length,c),S=b;S<w;S++){var C=U.charCodeAt(S)-48;g*=u,C>=49?g+=C-49+10:C>=17?g+=C-17+10:g+=C}return g}s.prototype._parseBase=function(b,c,u){this.words=[0],this.length=1;for(var g=0,w=1;w<=67108863;w*=c)g++;g--,w=w/c|0;for(var S=b.length-u,C=S%g,_=Math.min(S,S-C)+u,l=0,d=u;d<_;d+=g)l=f(b,d,d+g,c),this.imuln(w),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(C!==0){var N=1;for(l=f(b,d,b.length,c),d=0;d<C;d++)N*=c;this.imuln(N),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}this.strip()},s.prototype.copy=function(b){b.words=new Array(this.length);for(var c=0;c<this.length;c++)b.words[c]=this.words[c];b.length=this.length,b.negative=this.negative,b.red=this.red},s.prototype.clone=function(){var b=new s(null);return this.copy(b),b},s.prototype._expand=function(b){for(;this.length<b;)this.words[this.length++]=0;return this},s.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},s.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var p=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],v=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],x=[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];s.prototype.toString=function(b,c){b=b||10,c=c|0||1;var u;if(b===16||b==="hex"){u="";for(var g=0,w=0,S=0;S<this.length;S++){var C=this.words[S],_=((C<<g|w)&16777215).toString(16);w=C>>>24-g&16777215,g+=2,g>=26&&(g-=26,S--),w!==0||S!==this.length-1?u=p[6-_.length]+_+u:u=_+u}for(w!==0&&(u=w.toString(16)+u);u.length%c!==0;)u="0"+u;return this.negative!==0&&(u="-"+u),u}if(b===(b|0)&&b>=2&&b<=36){var l=v[b],d=x[b];u="";var N=this.clone();for(N.negative=0;!N.isZero();){var Y=N.modn(d).toString(b);N=N.idivn(d),N.isZero()?u=Y+u:u=p[l-Y.length]+Y+u}for(this.isZero()&&(u="0"+u);u.length%c!==0;)u="0"+u;return this.negative!==0&&(u="-"+u),u}i(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var b=this.words[0];return this.length===2?b+=this.words[1]*67108864:this.length===3&&this.words[2]===1?b+=4503599627370496+this.words[1]*67108864:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-b:b},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(b,c){return i(typeof o<"u"),this.toArrayLike(o,b,c)},s.prototype.toArray=function(b,c){return this.toArrayLike(Array,b,c)},s.prototype.toArrayLike=function(b,c,u){var g=this.byteLength(),w=u||Math.max(1,g);i(g<=w,"byte array longer than desired length"),i(w>0,"Requested array length <= 0"),this.strip();var S=c==="le",C=new b(w),_,l,d=this.clone();if(S){for(l=0;!d.isZero();l++)_=d.andln(255),d.iushrn(8),C[l]=_;for(;l<w;l++)C[l]=0}else{for(l=0;l<w-g;l++)C[l]=0;for(l=0;!d.isZero();l++)_=d.andln(255),d.iushrn(8),C[w-l-1]=_}return C},Math.clz32?s.prototype._countBits=function(b){return 32-Math.clz32(b)}:s.prototype._countBits=function(b){var c=b,u=0;return c>=4096&&(u+=13,c>>>=13),c>=64&&(u+=7,c>>>=7),c>=8&&(u+=4,c>>>=4),c>=2&&(u+=2,c>>>=2),u+c},s.prototype._zeroBits=function(b){if(b===0)return 26;var c=b,u=0;return c&8191||(u+=13,c>>>=13),c&127||(u+=7,c>>>=7),c&15||(u+=4,c>>>=4),c&3||(u+=2,c>>>=2),c&1||u++,u},s.prototype.bitLength=function(){var b=this.words[this.length-1],c=this._countBits(b);return(this.length-1)*26+c};function E(U){for(var b=new Array(U.bitLength()),c=0;c<b.length;c++){var u=c/26|0,g=c%26;b[c]=(U.words[u]&1<<g)>>>g}return b}s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var b=0,c=0;c<this.length;c++){var u=this._zeroBits(this.words[c]);if(b+=u,u!==26)break}return b},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(b){return this.negative!==0?this.abs().inotn(b).iaddn(1):this.clone()},s.prototype.fromTwos=function(b){return this.testn(b-1)?this.notn(b).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return this.negative!==0},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(b){for(;this.length<b.length;)this.words[this.length++]=0;for(var c=0;c<b.length;c++)this.words[c]=this.words[c]|b.words[c];return this.strip()},s.prototype.ior=function(b){return i((this.negative|b.negative)===0),this.iuor(b)},s.prototype.or=function(b){return this.length>b.length?this.clone().ior(b):b.clone().ior(this)},s.prototype.uor=function(b){return this.length>b.length?this.clone().iuor(b):b.clone().iuor(this)},s.prototype.iuand=function(b){var c;this.length>b.length?c=b:c=this;for(var u=0;u<c.length;u++)this.words[u]=this.words[u]&b.words[u];return this.length=c.length,this.strip()},s.prototype.iand=function(b){return i((this.negative|b.negative)===0),this.iuand(b)},s.prototype.and=function(b){return this.length>b.length?this.clone().iand(b):b.clone().iand(this)},s.prototype.uand=function(b){return this.length>b.length?this.clone().iuand(b):b.clone().iuand(this)},s.prototype.iuxor=function(b){var c,u;this.length>b.length?(c=this,u=b):(c=b,u=this);for(var g=0;g<u.length;g++)this.words[g]=c.words[g]^u.words[g];if(this!==c)for(;g<c.length;g++)this.words[g]=c.words[g];return this.length=c.length,this.strip()},s.prototype.ixor=function(b){return i((this.negative|b.negative)===0),this.iuxor(b)},s.prototype.xor=function(b){return this.length>b.length?this.clone().ixor(b):b.clone().ixor(this)},s.prototype.uxor=function(b){return this.length>b.length?this.clone().iuxor(b):b.clone().iuxor(this)},s.prototype.inotn=function(b){i(typeof b=="number"&&b>=0);var c=Math.ceil(b/26)|0,u=b%26;this._expand(c),u>0&&c--;for(var g=0;g<c;g++)this.words[g]=~this.words[g]&67108863;return u>0&&(this.words[g]=~this.words[g]&67108863>>26-u),this.strip()},s.prototype.notn=function(b){return this.clone().inotn(b)},s.prototype.setn=function(b,c){i(typeof b=="number"&&b>=0);var u=b/26|0,g=b%26;return this._expand(u+1),c?this.words[u]=this.words[u]|1<<g:this.words[u]=this.words[u]&~(1<<g),this.strip()},s.prototype.iadd=function(b){var c;if(this.negative!==0&&b.negative===0)return this.negative=0,c=this.isub(b),this.negative^=1,this._normSign();if(this.negative===0&&b.negative!==0)return b.negative=0,c=this.isub(b),b.negative=1,c._normSign();var u,g;this.length>b.length?(u=this,g=b):(u=b,g=this);for(var w=0,S=0;S<g.length;S++)c=(u.words[S]|0)+(g.words[S]|0)+w,this.words[S]=c&67108863,w=c>>>26;for(;w!==0&&S<u.length;S++)c=(u.words[S]|0)+w,this.words[S]=c&67108863,w=c>>>26;if(this.length=u.length,w!==0)this.words[this.length]=w,this.length++;else if(u!==this)for(;S<u.length;S++)this.words[S]=u.words[S];return this},s.prototype.add=function(b){var c;return b.negative!==0&&this.negative===0?(b.negative=0,c=this.sub(b),b.negative^=1,c):b.negative===0&&this.negative!==0?(this.negative=0,c=b.sub(this),this.negative=1,c):this.length>b.length?this.clone().iadd(b):b.clone().iadd(this)},s.prototype.isub=function(b){if(b.negative!==0){b.negative=0;var c=this.iadd(b);return b.negative=1,c._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(b),this.negative=1,this._normSign();var u=this.cmp(b);if(u===0)return this.negative=0,this.length=1,this.words[0]=0,this;var g,w;u>0?(g=this,w=b):(g=b,w=this);for(var S=0,C=0;C<w.length;C++)c=(g.words[C]|0)-(w.words[C]|0)+S,S=c>>26,this.words[C]=c&67108863;for(;S!==0&&C<g.length;C++)c=(g.words[C]|0)+S,S=c>>26,this.words[C]=c&67108863;if(S===0&&C<g.length&&g!==this)for(;C<g.length;C++)this.words[C]=g.words[C];return this.length=Math.max(this.length,C),g!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(b){return this.clone().isub(b)};function D(U,b,c){c.negative=b.negative^U.negative;var u=U.length+b.length|0;c.length=u,u=u-1|0;var g=U.words[0]|0,w=b.words[0]|0,S=g*w,C=S&67108863,_=S/67108864|0;c.words[0]=C;for(var l=1;l<u;l++){for(var d=_>>>26,N=_&67108863,Y=Math.min(l,b.length-1),te=Math.max(0,l-U.length+1);te<=Y;te++){var I=l-te|0;g=U.words[I]|0,w=b.words[te]|0,S=g*w+N,d+=S/67108864|0,N=S&67108863}c.words[l]=N|0,_=d|0}return _!==0?c.words[l]=_|0:c.length--,c.strip()}var B=function(b,c,u){var g=b.words,w=c.words,S=u.words,C=0,_,l,d,N=g[0]|0,Y=N&8191,te=N>>>13,I=g[1]|0,J=I&8191,k=I>>>13,H=g[2]|0,V=H&8191,m=H>>>13,z=g[3]|0,ee=z&8191,ie=z>>>13,se=g[4]|0,de=se&8191,O=se>>>13,A=g[5]|0,M=A&8191,$=A>>>13,G=g[6]|0,re=G&8191,X=G>>>13,ce=g[7]|0,fe=ce&8191,oe=ce>>>13,le=g[8]|0,he=le&8191,ue=le>>>13,we=g[9]|0,me=we&8191,ge=we>>>13,De=w[0]|0,Ne=De&8191,ve=De>>>13,Ce=w[1]|0,Ye=Ce&8191,Te=Ce>>>13,Qe=w[2]|0,Ve=Qe&8191,Re=Qe>>>13,it=w[3]|0,nt=it&8191,_e=it>>>13,Pe=w[4]|0,Fe=Pe&8191,Ee=Pe>>>13,Le=w[5]|0,Be=Le&8191,Se=Le>>>13,$e=w[6]|0,qe=$e&8191,Me=$e>>>13,ze=w[7]|0,Ue=ze&8191,Ae=ze>>>13,Oe=w[8]|0,Ke=Oe&8191,Ie=Oe>>>13,st=w[9]|0,ot=st&8191,ke=st>>>13;u.negative=b.negative^c.negative,u.length=19,_=Math.imul(Y,Ne),l=Math.imul(Y,ve),l=l+Math.imul(te,Ne)|0,d=Math.imul(te,ve);var Je=(C+_|0)+((l&8191)<<13)|0;C=(d+(l>>>13)|0)+(Je>>>26)|0,Je&=67108863,_=Math.imul(J,Ne),l=Math.imul(J,ve),l=l+Math.imul(k,Ne)|0,d=Math.imul(k,ve),_=_+Math.imul(Y,Ye)|0,l=l+Math.imul(Y,Te)|0,l=l+Math.imul(te,Ye)|0,d=d+Math.imul(te,Te)|0;var Qt=(C+_|0)+((l&8191)<<13)|0;C=(d+(l>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,_=Math.imul(V,Ne),l=Math.imul(V,ve),l=l+Math.imul(m,Ne)|0,d=Math.imul(m,ve),_=_+Math.imul(J,Ye)|0,l=l+Math.imul(J,Te)|0,l=l+Math.imul(k,Ye)|0,d=d+Math.imul(k,Te)|0,_=_+Math.imul(Y,Ve)|0,l=l+Math.imul(Y,Re)|0,l=l+Math.imul(te,Ve)|0,d=d+Math.imul(te,Re)|0;var Xt=(C+_|0)+((l&8191)<<13)|0;C=(d+(l>>>13)|0)+(Xt>>>26)|0,Xt&=67108863,_=Math.imul(ee,Ne),l=Math.imul(ee,ve),l=l+Math.imul(ie,Ne)|0,d=Math.imul(ie,ve),_=_+Math.imul(V,Ye)|0,l=l+Math.imul(V,Te)|0,l=l+Math.imul(m,Ye)|0,d=d+Math.imul(m,Te)|0,_=_+Math.imul(J,Ve)|0,l=l+Math.imul(J,Re)|0,l=l+Math.imul(k,Ve)|0,d=d+Math.imul(k,Re)|0,_=_+Math.imul(Y,nt)|0,l=l+Math.imul(Y,_e)|0,l=l+Math.imul(te,nt)|0,d=d+Math.imul(te,_e)|0;var Zt=(C+_|0)+((l&8191)<<13)|0;C=(d+(l>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,_=Math.imul(de,Ne),l=Math.imul(de,ve),l=l+Math.imul(O,Ne)|0,d=Math.imul(O,ve),_=_+Math.imul(ee,Ye)|0,l=l+Math.imul(ee,Te)|0,l=l+Math.imul(ie,Ye)|0,d=d+Math.imul(ie,Te)|0,_=_+Math.imul(V,Ve)|0,l=l+Math.imul(V,Re)|0,l=l+Math.imul(m,Ve)|0,d=d+Math.imul(m,Re)|0,_=_+Math.imul(J,nt)|0,l=l+Math.imul(J,_e)|0,l=l+Math.imul(k,nt)|0,d=d+Math.imul(k,_e)|0,_=_+Math.imul(Y,Fe)|0,l=l+Math.imul(Y,Ee)|0,l=l+Math.imul(te,Fe)|0,d=d+Math.imul(te,Ee)|0;var er=(C+_|0)+((l&8191)<<13)|0;C=(d+(l>>>13)|0)+(er>>>26)|0,er&=67108863,_=Math.imul(M,Ne),l=Math.imul(M,ve),l=l+Math.imul($,Ne)|0,d=Math.imul($,ve),_=_+Math.imul(de,Ye)|0,l=l+Math.imul(de,Te)|0,l=l+Math.imul(O,Ye)|0,d=d+Math.imul(O,Te)|0,_=_+Math.imul(ee,Ve)|0,l=l+Math.imul(ee,Re)|0,l=l+Math.imul(ie,Ve)|0,d=d+Math.imul(ie,Re)|0,_=_+Math.imul(V,nt)|0,l=l+Math.imul(V,_e)|0,l=l+Math.imul(m,nt)|0,d=d+Math.imul(m,_e)|0,_=_+Math.imul(J,Fe)|0,l=l+Math.imul(J,Ee)|0,l=l+Math.imul(k,Fe)|0,d=d+Math.imul(k,Ee)|0,_=_+Math.imul(Y,Be)|0,l=l+Math.imul(Y,Se)|0,l=l+Math.imul(te,Be)|0,d=d+Math.imul(te,Se)|0;var tr=(C+_|0)+((l&8191)<<13)|0;C=(d+(l>>>13)|0)+(tr>>>26)|0,tr&=67108863,_=Math.imul(re,Ne),l=Math.imul(re,ve),l=l+Math.imul(X,Ne)|0,d=Math.imul(X,ve),_=_+Math.imul(M,Ye)|0,l=l+Math.imul(M,Te)|0,l=l+Math.imul($,Ye)|0,d=d+Math.imul($,Te)|0,_=_+Math.imul(de,Ve)|0,l=l+Math.imul(de,Re)|0,l=l+Math.imul(O,Ve)|0,d=d+Math.imul(O,Re)|0,_=_+Math.imul(ee,nt)|0,l=l+Math.imul(ee,_e)|0,l=l+Math.imul(ie,nt)|0,d=d+Math.imul(ie,_e)|0,_=_+Math.imul(V,Fe)|0,l=l+Math.imul(V,Ee)|0,l=l+Math.imul(m,Fe)|0,d=d+Math.imul(m,Ee)|0,_=_+Math.imul(J,Be)|0,l=l+Math.imul(J,Se)|0,l=l+Math.imul(k,Be)|0,d=d+Math.imul(k,Se)|0,_=_+Math.imul(Y,qe)|0,l=l+Math.imul(Y,Me)|0,l=l+Math.imul(te,qe)|0,d=d+Math.imul(te,Me)|0;var Et=(C+_|0)+((l&8191)<<13)|0;C=(d+(l>>>13)|0)+(Et>>>26)|0,Et&=67108863,_=Math.imul(fe,Ne),l=Math.imul(fe,ve),l=l+Math.imul(oe,Ne)|0,d=Math.imul(oe,ve),_=_+Math.imul(re,Ye)|0,l=l+Math.imul(re,Te)|0,l=l+Math.imul(X,Ye)|0,d=d+Math.imul(X,Te)|0,_=_+Math.imul(M,Ve)|0,l=l+Math.imul(M,Re)|0,l=l+Math.imul($,Ve)|0,d=d+Math.imul($,Re)|0,_=_+Math.imul(de,nt)|0,l=l+Math.imul(de,_e)|0,l=l+Math.imul(O,nt)|0,d=d+Math.imul(O,_e)|0,_=_+Math.imul(ee,Fe)|0,l=l+Math.imul(ee,Ee)|0,l=l+Math.imul(ie,Fe)|0,d=d+Math.imul(ie,Ee)|0,_=_+Math.imul(V,Be)|0,l=l+Math.imul(V,Se)|0,l=l+Math.imul(m,Be)|0,d=d+Math.imul(m,Se)|0,_=_+Math.imul(J,qe)|0,l=l+Math.imul(J,Me)|0,l=l+Math.imul(k,qe)|0,d=d+Math.imul(k,Me)|0,_=_+Math.imul(Y,Ue)|0,l=l+Math.imul(Y,Ae)|0,l=l+Math.imul(te,Ue)|0,d=d+Math.imul(te,Ae)|0;var vi=(C+_|0)+((l&8191)<<13)|0;C=(d+(l>>>13)|0)+(vi>>>26)|0,vi&=67108863,_=Math.imul(he,Ne),l=Math.imul(he,ve),l=l+Math.imul(ue,Ne)|0,d=Math.imul(ue,ve),_=_+Math.imul(fe,Ye)|0,l=l+Math.imul(fe,Te)|0,l=l+Math.imul(oe,Ye)|0,d=d+Math.imul(oe,Te)|0,_=_+Math.imul(re,Ve)|0,l=l+Math.imul(re,Re)|0,l=l+Math.imul(X,Ve)|0,d=d+Math.imul(X,Re)|0,_=_+Math.imul(M,nt)|0,l=l+Math.imul(M,_e)|0,l=l+Math.imul($,nt)|0,d=d+Math.imul($,_e)|0,_=_+Math.imul(de,Fe)|0,l=l+Math.imul(de,Ee)|0,l=l+Math.imul(O,Fe)|0,d=d+Math.imul(O,Ee)|0,_=_+Math.imul(ee,Be)|0,l=l+Math.imul(ee,Se)|0,l=l+Math.imul(ie,Be)|0,d=d+Math.imul(ie,Se)|0,_=_+Math.imul(V,qe)|0,l=l+Math.imul(V,Me)|0,l=l+Math.imul(m,qe)|0,d=d+Math.imul(m,Me)|0,_=_+Math.imul(J,Ue)|0,l=l+Math.imul(J,Ae)|0,l=l+Math.imul(k,Ue)|0,d=d+Math.imul(k,Ae)|0,_=_+Math.imul(Y,Ke)|0,l=l+Math.imul(Y,Ie)|0,l=l+Math.imul(te,Ke)|0,d=d+Math.imul(te,Ie)|0;var mi=(C+_|0)+((l&8191)<<13)|0;C=(d+(l>>>13)|0)+(mi>>>26)|0,mi&=67108863,_=Math.imul(me,Ne),l=Math.imul(me,ve),l=l+Math.imul(ge,Ne)|0,d=Math.imul(ge,ve),_=_+Math.imul(he,Ye)|0,l=l+Math.imul(he,Te)|0,l=l+Math.imul(ue,Ye)|0,d=d+Math.imul(ue,Te)|0,_=_+Math.imul(fe,Ve)|0,l=l+Math.imul(fe,Re)|0,l=l+Math.imul(oe,Ve)|0,d=d+Math.imul(oe,Re)|0,_=_+Math.imul(re,nt)|0,l=l+Math.imul(re,_e)|0,l=l+Math.imul(X,nt)|0,d=d+Math.imul(X,_e)|0,_=_+Math.imul(M,Fe)|0,l=l+Math.imul(M,Ee)|0,l=l+Math.imul($,Fe)|0,d=d+Math.imul($,Ee)|0,_=_+Math.imul(de,Be)|0,l=l+Math.imul(de,Se)|0,l=l+Math.imul(O,Be)|0,d=d+Math.imul(O,Se)|0,_=_+Math.imul(ee,qe)|0,l=l+Math.imul(ee,Me)|0,l=l+Math.imul(ie,qe)|0,d=d+Math.imul(ie,Me)|0,_=_+Math.imul(V,Ue)|0,l=l+Math.imul(V,Ae)|0,l=l+Math.imul(m,Ue)|0,d=d+Math.imul(m,Ae)|0,_=_+Math.imul(J,Ke)|0,l=l+Math.imul(J,Ie)|0,l=l+Math.imul(k,Ke)|0,d=d+Math.imul(k,Ie)|0,_=_+Math.imul(Y,ot)|0,l=l+Math.imul(Y,ke)|0,l=l+Math.imul(te,ot)|0,d=d+Math.imul(te,ke)|0;var yi=(C+_|0)+((l&8191)<<13)|0;C=(d+(l>>>13)|0)+(yi>>>26)|0,yi&=67108863,_=Math.imul(me,Ye),l=Math.imul(me,Te),l=l+Math.imul(ge,Ye)|0,d=Math.imul(ge,Te),_=_+Math.imul(he,Ve)|0,l=l+Math.imul(he,Re)|0,l=l+Math.imul(ue,Ve)|0,d=d+Math.imul(ue,Re)|0,_=_+Math.imul(fe,nt)|0,l=l+Math.imul(fe,_e)|0,l=l+Math.imul(oe,nt)|0,d=d+Math.imul(oe,_e)|0,_=_+Math.imul(re,Fe)|0,l=l+Math.imul(re,Ee)|0,l=l+Math.imul(X,Fe)|0,d=d+Math.imul(X,Ee)|0,_=_+Math.imul(M,Be)|0,l=l+Math.imul(M,Se)|0,l=l+Math.imul($,Be)|0,d=d+Math.imul($,Se)|0,_=_+Math.imul(de,qe)|0,l=l+Math.imul(de,Me)|0,l=l+Math.imul(O,qe)|0,d=d+Math.imul(O,Me)|0,_=_+Math.imul(ee,Ue)|0,l=l+Math.imul(ee,Ae)|0,l=l+Math.imul(ie,Ue)|0,d=d+Math.imul(ie,Ae)|0,_=_+Math.imul(V,Ke)|0,l=l+Math.imul(V,Ie)|0,l=l+Math.imul(m,Ke)|0,d=d+Math.imul(m,Ie)|0,_=_+Math.imul(J,ot)|0,l=l+Math.imul(J,ke)|0,l=l+Math.imul(k,ot)|0,d=d+Math.imul(k,ke)|0;var wi=(C+_|0)+((l&8191)<<13)|0;C=(d+(l>>>13)|0)+(wi>>>26)|0,wi&=67108863,_=Math.imul(me,Ve),l=Math.imul(me,Re),l=l+Math.imul(ge,Ve)|0,d=Math.imul(ge,Re),_=_+Math.imul(he,nt)|0,l=l+Math.imul(he,_e)|0,l=l+Math.imul(ue,nt)|0,d=d+Math.imul(ue,_e)|0,_=_+Math.imul(fe,Fe)|0,l=l+Math.imul(fe,Ee)|0,l=l+Math.imul(oe,Fe)|0,d=d+Math.imul(oe,Ee)|0,_=_+Math.imul(re,Be)|0,l=l+Math.imul(re,Se)|0,l=l+Math.imul(X,Be)|0,d=d+Math.imul(X,Se)|0,_=_+Math.imul(M,qe)|0,l=l+Math.imul(M,Me)|0,l=l+Math.imul($,qe)|0,d=d+Math.imul($,Me)|0,_=_+Math.imul(de,Ue)|0,l=l+Math.imul(de,Ae)|0,l=l+Math.imul(O,Ue)|0,d=d+Math.imul(O,Ae)|0,_=_+Math.imul(ee,Ke)|0,l=l+Math.imul(ee,Ie)|0,l=l+Math.imul(ie,Ke)|0,d=d+Math.imul(ie,Ie)|0,_=_+Math.imul(V,ot)|0,l=l+Math.imul(V,ke)|0,l=l+Math.imul(m,ot)|0,d=d+Math.imul(m,ke)|0;var _i=(C+_|0)+((l&8191)<<13)|0;C=(d+(l>>>13)|0)+(_i>>>26)|0,_i&=67108863,_=Math.imul(me,nt),l=Math.imul(me,_e),l=l+Math.imul(ge,nt)|0,d=Math.imul(ge,_e),_=_+Math.imul(he,Fe)|0,l=l+Math.imul(he,Ee)|0,l=l+Math.imul(ue,Fe)|0,d=d+Math.imul(ue,Ee)|0,_=_+Math.imul(fe,Be)|0,l=l+Math.imul(fe,Se)|0,l=l+Math.imul(oe,Be)|0,d=d+Math.imul(oe,Se)|0,_=_+Math.imul(re,qe)|0,l=l+Math.imul(re,Me)|0,l=l+Math.imul(X,qe)|0,d=d+Math.imul(X,Me)|0,_=_+Math.imul(M,Ue)|0,l=l+Math.imul(M,Ae)|0,l=l+Math.imul($,Ue)|0,d=d+Math.imul($,Ae)|0,_=_+Math.imul(de,Ke)|0,l=l+Math.imul(de,Ie)|0,l=l+Math.imul(O,Ke)|0,d=d+Math.imul(O,Ie)|0,_=_+Math.imul(ee,ot)|0,l=l+Math.imul(ee,ke)|0,l=l+Math.imul(ie,ot)|0,d=d+Math.imul(ie,ke)|0;var yr=(C+_|0)+((l&8191)<<13)|0;C=(d+(l>>>13)|0)+(yr>>>26)|0,yr&=67108863,_=Math.imul(me,Fe),l=Math.imul(me,Ee),l=l+Math.imul(ge,Fe)|0,d=Math.imul(ge,Ee),_=_+Math.imul(he,Be)|0,l=l+Math.imul(he,Se)|0,l=l+Math.imul(ue,Be)|0,d=d+Math.imul(ue,Se)|0,_=_+Math.imul(fe,qe)|0,l=l+Math.imul(fe,Me)|0,l=l+Math.imul(oe,qe)|0,d=d+Math.imul(oe,Me)|0,_=_+Math.imul(re,Ue)|0,l=l+Math.imul(re,Ae)|0,l=l+Math.imul(X,Ue)|0,d=d+Math.imul(X,Ae)|0,_=_+Math.imul(M,Ke)|0,l=l+Math.imul(M,Ie)|0,l=l+Math.imul($,Ke)|0,d=d+Math.imul($,Ie)|0,_=_+Math.imul(de,ot)|0,l=l+Math.imul(de,ke)|0,l=l+Math.imul(O,ot)|0,d=d+Math.imul(O,ke)|0;var Ei=(C+_|0)+((l&8191)<<13)|0;C=(d+(l>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,_=Math.imul(me,Be),l=Math.imul(me,Se),l=l+Math.imul(ge,Be)|0,d=Math.imul(ge,Se),_=_+Math.imul(he,qe)|0,l=l+Math.imul(he,Me)|0,l=l+Math.imul(ue,qe)|0,d=d+Math.imul(ue,Me)|0,_=_+Math.imul(fe,Ue)|0,l=l+Math.imul(fe,Ae)|0,l=l+Math.imul(oe,Ue)|0,d=d+Math.imul(oe,Ae)|0,_=_+Math.imul(re,Ke)|0,l=l+Math.imul(re,Ie)|0,l=l+Math.imul(X,Ke)|0,d=d+Math.imul(X,Ie)|0,_=_+Math.imul(M,ot)|0,l=l+Math.imul(M,ke)|0,l=l+Math.imul($,ot)|0,d=d+Math.imul($,ke)|0;var Ai=(C+_|0)+((l&8191)<<13)|0;C=(d+(l>>>13)|0)+(Ai>>>26)|0,Ai&=67108863,_=Math.imul(me,qe),l=Math.imul(me,Me),l=l+Math.imul(ge,qe)|0,d=Math.imul(ge,Me),_=_+Math.imul(he,Ue)|0,l=l+Math.imul(he,Ae)|0,l=l+Math.imul(ue,Ue)|0,d=d+Math.imul(ue,Ae)|0,_=_+Math.imul(fe,Ke)|0,l=l+Math.imul(fe,Ie)|0,l=l+Math.imul(oe,Ke)|0,d=d+Math.imul(oe,Ie)|0,_=_+Math.imul(re,ot)|0,l=l+Math.imul(re,ke)|0,l=l+Math.imul(X,ot)|0,d=d+Math.imul(X,ke)|0;var $t=(C+_|0)+((l&8191)<<13)|0;C=(d+(l>>>13)|0)+($t>>>26)|0,$t&=67108863,_=Math.imul(me,Ue),l=Math.imul(me,Ae),l=l+Math.imul(ge,Ue)|0,d=Math.imul(ge,Ae),_=_+Math.imul(he,Ke)|0,l=l+Math.imul(he,Ie)|0,l=l+Math.imul(ue,Ke)|0,d=d+Math.imul(ue,Ie)|0,_=_+Math.imul(fe,ot)|0,l=l+Math.imul(fe,ke)|0,l=l+Math.imul(oe,ot)|0,d=d+Math.imul(oe,ke)|0;var xi=(C+_|0)+((l&8191)<<13)|0;C=(d+(l>>>13)|0)+(xi>>>26)|0,xi&=67108863,_=Math.imul(me,Ke),l=Math.imul(me,Ie),l=l+Math.imul(ge,Ke)|0,d=Math.imul(ge,Ie),_=_+Math.imul(he,ot)|0,l=l+Math.imul(he,ke)|0,l=l+Math.imul(ue,ot)|0,d=d+Math.imul(ue,ke)|0;var Si=(C+_|0)+((l&8191)<<13)|0;C=(d+(l>>>13)|0)+(Si>>>26)|0,Si&=67108863,_=Math.imul(me,ot),l=Math.imul(me,ke),l=l+Math.imul(ge,ot)|0,d=Math.imul(ge,ke);var Mi=(C+_|0)+((l&8191)<<13)|0;return C=(d+(l>>>13)|0)+(Mi>>>26)|0,Mi&=67108863,S[0]=Je,S[1]=Qt,S[2]=Xt,S[3]=Zt,S[4]=er,S[5]=tr,S[6]=Et,S[7]=vi,S[8]=mi,S[9]=yi,S[10]=wi,S[11]=_i,S[12]=yr,S[13]=Ei,S[14]=Ai,S[15]=$t,S[16]=xi,S[17]=Si,S[18]=Mi,C!==0&&(S[19]=C,u.length++),u};Math.imul||(B=D);function F(U,b,c){c.negative=b.negative^U.negative,c.length=U.length+b.length;for(var u=0,g=0,w=0;w<c.length-1;w++){var S=g;g=0;for(var C=u&67108863,_=Math.min(w,b.length-1),l=Math.max(0,w-U.length+1);l<=_;l++){var d=w-l,N=U.words[d]|0,Y=b.words[l]|0,te=N*Y,I=te&67108863;S=S+(te/67108864|0)|0,I=I+C|0,C=I&67108863,S=S+(I>>>26)|0,g+=S>>>26,S&=67108863}c.words[w]=C,u=S,S=g}return u!==0?c.words[w]=u:c.length--,c.strip()}function j(U,b,c){var u=new R;return u.mulp(U,b,c)}s.prototype.mulTo=function(b,c){var u,g=this.length+b.length;return this.length===10&&b.length===10?u=B(this,b,c):g<63?u=D(this,b,c):g<1024?u=F(this,b,c):u=j(this,b,c),u};function R(U,b){this.x=U,this.y=b}R.prototype.makeRBT=function(b){for(var c=new Array(b),u=s.prototype._countBits(b)-1,g=0;g<b;g++)c[g]=this.revBin(g,u,b);return c},R.prototype.revBin=function(b,c,u){if(b===0||b===u-1)return b;for(var g=0,w=0;w<c;w++)g|=(b&1)<<c-w-1,b>>=1;return g},R.prototype.permute=function(b,c,u,g,w,S){for(var C=0;C<S;C++)g[C]=c[b[C]],w[C]=u[b[C]]},R.prototype.transform=function(b,c,u,g,w,S){this.permute(S,b,c,u,g,w);for(var C=1;C<w;C<<=1)for(var _=C<<1,l=Math.cos(2*Math.PI/_),d=Math.sin(2*Math.PI/_),N=0;N<w;N+=_)for(var Y=l,te=d,I=0;I<C;I++){var J=u[N+I],k=g[N+I],H=u[N+I+C],V=g[N+I+C],m=Y*H-te*V;V=Y*V+te*H,H=m,u[N+I]=J+H,g[N+I]=k+V,u[N+I+C]=J-H,g[N+I+C]=k-V,I!==_&&(m=l*Y-d*te,te=l*te+d*Y,Y=m)}},R.prototype.guessLen13b=function(b,c){var u=Math.max(c,b)|1,g=u&1,w=0;for(u=u/2|0;u;u=u>>>1)w++;return 1<<w+1+g},R.prototype.conjugate=function(b,c,u){if(!(u<=1))for(var g=0;g<u/2;g++){var w=b[g];b[g]=b[u-g-1],b[u-g-1]=w,w=c[g],c[g]=-c[u-g-1],c[u-g-1]=-w}},R.prototype.normalize13b=function(b,c){for(var u=0,g=0;g<c/2;g++){var w=Math.round(b[2*g+1]/c)*8192+Math.round(b[2*g]/c)+u;b[g]=w&67108863,w<67108864?u=0:u=w/67108864|0}return b},R.prototype.convert13b=function(b,c,u,g){for(var w=0,S=0;S<c;S++)w=w+(b[S]|0),u[2*S]=w&8191,w=w>>>13,u[2*S+1]=w&8191,w=w>>>13;for(S=2*c;S<g;++S)u[S]=0;i(w===0),i((w&-8192)===0)},R.prototype.stub=function(b){for(var c=new Array(b),u=0;u<b;u++)c[u]=0;return c},R.prototype.mulp=function(b,c,u){var g=2*this.guessLen13b(b.length,c.length),w=this.makeRBT(g),S=this.stub(g),C=new Array(g),_=new Array(g),l=new Array(g),d=new Array(g),N=new Array(g),Y=new Array(g),te=u.words;te.length=g,this.convert13b(b.words,b.length,C,g),this.convert13b(c.words,c.length,d,g),this.transform(C,S,_,l,g,w),this.transform(d,S,N,Y,g,w);for(var I=0;I<g;I++){var J=_[I]*N[I]-l[I]*Y[I];l[I]=_[I]*Y[I]+l[I]*N[I],_[I]=J}return this.conjugate(_,l,g),this.transform(_,l,te,S,g,w),this.conjugate(te,S,g),this.normalize13b(te,g),u.negative=b.negative^c.negative,u.length=b.length+c.length,u.strip()},s.prototype.mul=function(b){var c=new s(null);return c.words=new Array(this.length+b.length),this.mulTo(b,c)},s.prototype.mulf=function(b){var c=new s(null);return c.words=new Array(this.length+b.length),j(this,b,c)},s.prototype.imul=function(b){return this.clone().mulTo(b,this)},s.prototype.imuln=function(b){i(typeof b=="number"),i(b<67108864);for(var c=0,u=0;u<this.length;u++){var g=(this.words[u]|0)*b,w=(g&67108863)+(c&67108863);c>>=26,c+=g/67108864|0,c+=w>>>26,this.words[u]=w&67108863}return c!==0&&(this.words[u]=c,this.length++),this},s.prototype.muln=function(b){return this.clone().imuln(b)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(b){var c=E(b);if(c.length===0)return new s(1);for(var u=this,g=0;g<c.length&&c[g]===0;g++,u=u.sqr());if(++g<c.length)for(var w=u.sqr();g<c.length;g++,w=w.sqr())c[g]!==0&&(u=u.mul(w));return u},s.prototype.iushln=function(b){i(typeof b=="number"&&b>=0);var c=b%26,u=(b-c)/26,g=67108863>>>26-c<<26-c,w;if(c!==0){var S=0;for(w=0;w<this.length;w++){var C=this.words[w]&g,_=(this.words[w]|0)-C<<c;this.words[w]=_|S,S=C>>>26-c}S&&(this.words[w]=S,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()},s.prototype.ishln=function(b){return i(this.negative===0),this.iushln(b)},s.prototype.iushrn=function(b,c,u){i(typeof b=="number"&&b>=0);var g;c?g=(c-c%26)/26:g=0;var w=b%26,S=Math.min((b-w)/26,this.length),C=67108863^67108863>>>w<<w,_=u;if(g-=S,g=Math.max(0,g),_){for(var l=0;l<S;l++)_.words[l]=this.words[l];_.length=S}if(S!==0)if(this.length>S)for(this.length-=S,l=0;l<this.length;l++)this.words[l]=this.words[l+S];else this.words[0]=0,this.length=1;var d=0;for(l=this.length-1;l>=0&&(d!==0||l>=g);l--){var N=this.words[l]|0;this.words[l]=d<<26-w|N>>>w,d=N&C}return _&&d!==0&&(_.words[_.length++]=d),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(b,c,u){return i(this.negative===0),this.iushrn(b,c,u)},s.prototype.shln=function(b){return this.clone().ishln(b)},s.prototype.ushln=function(b){return this.clone().iushln(b)},s.prototype.shrn=function(b){return this.clone().ishrn(b)},s.prototype.ushrn=function(b){return this.clone().iushrn(b)},s.prototype.testn=function(b){i(typeof b=="number"&&b>=0);var c=b%26,u=(b-c)/26,g=1<<c;if(this.length<=u)return!1;var w=this.words[u];return!!(w&g)},s.prototype.imaskn=function(b){i(typeof b=="number"&&b>=0);var c=b%26,u=(b-c)/26;if(i(this.negative===0,"imaskn works only with positive numbers"),this.length<=u)return this;if(c!==0&&u++,this.length=Math.min(u,this.length),c!==0){var g=67108863^67108863>>>c<<c;this.words[this.length-1]&=g}return this.strip()},s.prototype.maskn=function(b){return this.clone().imaskn(b)},s.prototype.iaddn=function(b){return i(typeof b=="number"),i(b<67108864),b<0?this.isubn(-b):this.negative!==0?this.length===1&&(this.words[0]|0)<b?(this.words[0]=b-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(b),this.negative=1,this):this._iaddn(b)},s.prototype._iaddn=function(b){this.words[0]+=b;for(var c=0;c<this.length&&this.words[c]>=67108864;c++)this.words[c]-=67108864,c===this.length-1?this.words[c+1]=1:this.words[c+1]++;return this.length=Math.max(this.length,c+1),this},s.prototype.isubn=function(b){if(i(typeof b=="number"),i(b<67108864),b<0)return this.iaddn(-b);if(this.negative!==0)return this.negative=0,this.iaddn(b),this.negative=1,this;if(this.words[0]-=b,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var c=0;c<this.length&&this.words[c]<0;c++)this.words[c]+=67108864,this.words[c+1]-=1;return this.strip()},s.prototype.addn=function(b){return this.clone().iaddn(b)},s.prototype.subn=function(b){return this.clone().isubn(b)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(b,c,u){var g=b.length+u,w;this._expand(g);var S,C=0;for(w=0;w<b.length;w++){S=(this.words[w+u]|0)+C;var _=(b.words[w]|0)*c;S-=_&67108863,C=(S>>26)-(_/67108864|0),this.words[w+u]=S&67108863}for(;w<this.length-u;w++)S=(this.words[w+u]|0)+C,C=S>>26,this.words[w+u]=S&67108863;if(C===0)return this.strip();for(i(C===-1),C=0,w=0;w<this.length;w++)S=-(this.words[w]|0)+C,C=S>>26,this.words[w]=S&67108863;return this.negative=1,this.strip()},s.prototype._wordDiv=function(b,c){var u=this.length-b.length,g=this.clone(),w=b,S=w.words[w.length-1]|0,C=this._countBits(S);u=26-C,u!==0&&(w=w.ushln(u),g.iushln(u),S=w.words[w.length-1]|0);var _=g.length-w.length,l;if(c!=="mod"){l=new s(null),l.length=_+1,l.words=new Array(l.length);for(var d=0;d<l.length;d++)l.words[d]=0}var N=g.clone()._ishlnsubmul(w,1,_);N.negative===0&&(g=N,l&&(l.words[_]=1));for(var Y=_-1;Y>=0;Y--){var te=(g.words[w.length+Y]|0)*67108864+(g.words[w.length+Y-1]|0);for(te=Math.min(te/S|0,67108863),g._ishlnsubmul(w,te,Y);g.negative!==0;)te--,g.negative=0,g._ishlnsubmul(w,1,Y),g.isZero()||(g.negative^=1);l&&(l.words[Y]=te)}return l&&l.strip(),g.strip(),c!=="div"&&u!==0&&g.iushrn(u),{div:l||null,mod:g}},s.prototype.divmod=function(b,c,u){if(i(!b.isZero()),this.isZero())return{div:new s(0),mod:new s(0)};var g,w,S;return this.negative!==0&&b.negative===0?(S=this.neg().divmod(b,c),c!=="mod"&&(g=S.div.neg()),c!=="div"&&(w=S.mod.neg(),u&&w.negative!==0&&w.iadd(b)),{div:g,mod:w}):this.negative===0&&b.negative!==0?(S=this.divmod(b.neg(),c),c!=="mod"&&(g=S.div.neg()),{div:g,mod:S.mod}):this.negative&b.negative?(S=this.neg().divmod(b.neg(),c),c!=="div"&&(w=S.mod.neg(),u&&w.negative!==0&&w.isub(b)),{div:S.div,mod:w}):b.length>this.length||this.cmp(b)<0?{div:new s(0),mod:this}:b.length===1?c==="div"?{div:this.divn(b.words[0]),mod:null}:c==="mod"?{div:null,mod:new s(this.modn(b.words[0]))}:{div:this.divn(b.words[0]),mod:new s(this.modn(b.words[0]))}:this._wordDiv(b,c)},s.prototype.div=function(b){return this.divmod(b,"div",!1).div},s.prototype.mod=function(b){return this.divmod(b,"mod",!1).mod},s.prototype.umod=function(b){return this.divmod(b,"mod",!0).mod},s.prototype.divRound=function(b){var c=this.divmod(b);if(c.mod.isZero())return c.div;var u=c.div.negative!==0?c.mod.isub(b):c.mod,g=b.ushrn(1),w=b.andln(1),S=u.cmp(g);return S<0||w===1&&S===0?c.div:c.div.negative!==0?c.div.isubn(1):c.div.iaddn(1)},s.prototype.modn=function(b){i(b<=67108863);for(var c=(1<<26)%b,u=0,g=this.length-1;g>=0;g--)u=(c*u+(this.words[g]|0))%b;return u},s.prototype.idivn=function(b){i(b<=67108863);for(var c=0,u=this.length-1;u>=0;u--){var g=(this.words[u]|0)+c*67108864;this.words[u]=g/b|0,c=g%b}return this.strip()},s.prototype.divn=function(b){return this.clone().idivn(b)},s.prototype.egcd=function(b){i(b.negative===0),i(!b.isZero());var c=this,u=b.clone();c.negative!==0?c=c.umod(b):c=c.clone();for(var g=new s(1),w=new s(0),S=new s(0),C=new s(1),_=0;c.isEven()&&u.isEven();)c.iushrn(1),u.iushrn(1),++_;for(var l=u.clone(),d=c.clone();!c.isZero();){for(var N=0,Y=1;!(c.words[0]&Y)&&N<26;++N,Y<<=1);if(N>0)for(c.iushrn(N);N-- >0;)(g.isOdd()||w.isOdd())&&(g.iadd(l),w.isub(d)),g.iushrn(1),w.iushrn(1);for(var te=0,I=1;!(u.words[0]&I)&&te<26;++te,I<<=1);if(te>0)for(u.iushrn(te);te-- >0;)(S.isOdd()||C.isOdd())&&(S.iadd(l),C.isub(d)),S.iushrn(1),C.iushrn(1);c.cmp(u)>=0?(c.isub(u),g.isub(S),w.isub(C)):(u.isub(c),S.isub(g),C.isub(w))}return{a:S,b:C,gcd:u.iushln(_)}},s.prototype._invmp=function(b){i(b.negative===0),i(!b.isZero());var c=this,u=b.clone();c.negative!==0?c=c.umod(b):c=c.clone();for(var g=new s(1),w=new s(0),S=u.clone();c.cmpn(1)>0&&u.cmpn(1)>0;){for(var C=0,_=1;!(c.words[0]&_)&&C<26;++C,_<<=1);if(C>0)for(c.iushrn(C);C-- >0;)g.isOdd()&&g.iadd(S),g.iushrn(1);for(var l=0,d=1;!(u.words[0]&d)&&l<26;++l,d<<=1);if(l>0)for(u.iushrn(l);l-- >0;)w.isOdd()&&w.iadd(S),w.iushrn(1);c.cmp(u)>=0?(c.isub(u),g.isub(w)):(u.isub(c),w.isub(g))}var N;return c.cmpn(1)===0?N=g:N=w,N.cmpn(0)<0&&N.iadd(b),N},s.prototype.gcd=function(b){if(this.isZero())return b.abs();if(b.isZero())return this.abs();var c=this.clone(),u=b.clone();c.negative=0,u.negative=0;for(var g=0;c.isEven()&&u.isEven();g++)c.iushrn(1),u.iushrn(1);do{for(;c.isEven();)c.iushrn(1);for(;u.isEven();)u.iushrn(1);var w=c.cmp(u);if(w<0){var S=c;c=u,u=S}else if(w===0||u.cmpn(1)===0)break;c.isub(u)}while(!0);return u.iushln(g)},s.prototype.invm=function(b){return this.egcd(b).a.umod(b)},s.prototype.isEven=function(){return(this.words[0]&1)===0},s.prototype.isOdd=function(){return(this.words[0]&1)===1},s.prototype.andln=function(b){return this.words[0]&b},s.prototype.bincn=function(b){i(typeof b=="number");var c=b%26,u=(b-c)/26,g=1<<c;if(this.length<=u)return this._expand(u+1),this.words[u]|=g,this;for(var w=g,S=u;w!==0&&S<this.length;S++){var C=this.words[S]|0;C+=w,w=C>>>26,C&=67108863,this.words[S]=C}return w!==0&&(this.words[S]=w,this.length++),this},s.prototype.isZero=function(){return this.length===1&&this.words[0]===0},s.prototype.cmpn=function(b){var c=b<0;if(this.negative!==0&&!c)return-1;if(this.negative===0&&c)return 1;this.strip();var u;if(this.length>1)u=1;else{c&&(b=-b),i(b<=67108863,"Number is too big");var g=this.words[0]|0;u=g===b?0:g<b?-1:1}return this.negative!==0?-u|0:u},s.prototype.cmp=function(b){if(this.negative!==0&&b.negative===0)return-1;if(this.negative===0&&b.negative!==0)return 1;var c=this.ucmp(b);return this.negative!==0?-c|0:c},s.prototype.ucmp=function(b){if(this.length>b.length)return 1;if(this.length<b.length)return-1;for(var c=0,u=this.length-1;u>=0;u--){var g=this.words[u]|0,w=b.words[u]|0;if(g!==w){g<w?c=-1:g>w&&(c=1);break}}return c},s.prototype.gtn=function(b){return this.cmpn(b)===1},s.prototype.gt=function(b){return this.cmp(b)===1},s.prototype.gten=function(b){return this.cmpn(b)>=0},s.prototype.gte=function(b){return this.cmp(b)>=0},s.prototype.ltn=function(b){return this.cmpn(b)===-1},s.prototype.lt=function(b){return this.cmp(b)===-1},s.prototype.lten=function(b){return this.cmpn(b)<=0},s.prototype.lte=function(b){return this.cmp(b)<=0},s.prototype.eqn=function(b){return this.cmpn(b)===0},s.prototype.eq=function(b){return this.cmp(b)===0},s.red=function(b){return new Z(b)},s.prototype.toRed=function(b){return i(!this.red,"Already a number in reduction context"),i(this.negative===0,"red works only with positives"),b.convertTo(this)._forceRed(b)},s.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(b){return this.red=b,this},s.prototype.forceRed=function(b){return i(!this.red,"Already a number in reduction context"),this._forceRed(b)},s.prototype.redAdd=function(b){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,b)},s.prototype.redIAdd=function(b){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,b)},s.prototype.redSub=function(b){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,b)},s.prototype.redISub=function(b){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,b)},s.prototype.redShl=function(b){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,b)},s.prototype.redMul=function(b){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,b),this.red.mul(this,b)},s.prototype.redIMul=function(b){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,b),this.red.imul(this,b)},s.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(b){return i(this.red&&!b.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,b)};var K={k256:null,p224:null,p192:null,p25519:null};function T(U,b){this.name=U,this.p=new s(b,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}T.prototype._tmp=function(){var b=new s(null);return b.words=new Array(Math.ceil(this.n/13)),b},T.prototype.ireduce=function(b){var c=b,u;do this.split(c,this.tmp),c=this.imulK(c),c=c.iadd(this.tmp),u=c.bitLength();while(u>this.n);var g=u<this.n?-1:c.ucmp(this.p);return g===0?(c.words[0]=0,c.length=1):g>0?c.isub(this.p):c.strip!==void 0?c.strip():c._strip(),c},T.prototype.split=function(b,c){b.iushrn(this.n,0,c)},T.prototype.imulK=function(b){return b.imul(this.k)};function L(){T.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(L,T),L.prototype.split=function(b,c){for(var u=4194303,g=Math.min(b.length,9),w=0;w<g;w++)c.words[w]=b.words[w];if(c.length=g,b.length<=9){b.words[0]=0,b.length=1;return}var S=b.words[9];for(c.words[c.length++]=S&u,w=10;w<b.length;w++){var C=b.words[w]|0;b.words[w-10]=(C&u)<<4|S>>>22,S=C}S>>>=22,b.words[w-10]=S,S===0&&b.length>10?b.length-=10:b.length-=9},L.prototype.imulK=function(b){b.words[b.length]=0,b.words[b.length+1]=0,b.length+=2;for(var c=0,u=0;u<b.length;u++){var g=b.words[u]|0;c+=g*977,b.words[u]=c&67108863,c=g*64+(c/67108864|0)}return b.words[b.length-1]===0&&(b.length--,b.words[b.length-1]===0&&b.length--),b};function q(){T.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}n(q,T);function y(){T.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}n(y,T);function P(){T.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}n(P,T),P.prototype.imulK=function(b){for(var c=0,u=0;u<b.length;u++){var g=(b.words[u]|0)*19+c,w=g&67108863;g>>>=26,b.words[u]=w,c=g}return c!==0&&(b.words[b.length++]=c),b},s._prime=function(b){if(K[b])return K[b];var c;if(b==="k256")c=new L;else if(b==="p224")c=new q;else if(b==="p192")c=new y;else if(b==="p25519")c=new P;else throw new Error("Unknown prime "+b);return K[b]=c,c};function Z(U){if(typeof U=="string"){var b=s._prime(U);this.m=b.p,this.prime=b}else i(U.gtn(1),"modulus must be greater than 1"),this.m=U,this.prime=null}Z.prototype._verify1=function(b){i(b.negative===0,"red works only with positives"),i(b.red,"red works only with red numbers")},Z.prototype._verify2=function(b,c){i((b.negative|c.negative)===0,"red works only with positives"),i(b.red&&b.red===c.red,"red works only with red numbers")},Z.prototype.imod=function(b){return this.prime?this.prime.ireduce(b)._forceRed(this):b.umod(this.m)._forceRed(this)},Z.prototype.neg=function(b){return b.isZero()?b.clone():this.m.sub(b)._forceRed(this)},Z.prototype.add=function(b,c){this._verify2(b,c);var u=b.add(c);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},Z.prototype.iadd=function(b,c){this._verify2(b,c);var u=b.iadd(c);return u.cmp(this.m)>=0&&u.isub(this.m),u},Z.prototype.sub=function(b,c){this._verify2(b,c);var u=b.sub(c);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},Z.prototype.isub=function(b,c){this._verify2(b,c);var u=b.isub(c);return u.cmpn(0)<0&&u.iadd(this.m),u},Z.prototype.shl=function(b,c){return this._verify1(b),this.imod(b.ushln(c))},Z.prototype.imul=function(b,c){return this._verify2(b,c),this.imod(b.imul(c))},Z.prototype.mul=function(b,c){return this._verify2(b,c),this.imod(b.mul(c))},Z.prototype.isqr=function(b){return this.imul(b,b.clone())},Z.prototype.sqr=function(b){return this.mul(b,b)},Z.prototype.sqrt=function(b){if(b.isZero())return b.clone();var c=this.m.andln(3);if(i(c%2===1),c===3){var u=this.m.add(new s(1)).iushrn(2);return this.pow(b,u)}for(var g=this.m.subn(1),w=0;!g.isZero()&&g.andln(1)===0;)w++,g.iushrn(1);i(!g.isZero());var S=new s(1).toRed(this),C=S.redNeg(),_=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new s(2*l*l).toRed(this);this.pow(l,_).cmp(C)!==0;)l.redIAdd(C);for(var d=this.pow(l,g),N=this.pow(b,g.addn(1).iushrn(1)),Y=this.pow(b,g),te=w;Y.cmp(S)!==0;){for(var I=Y,J=0;I.cmp(S)!==0;J++)I=I.redSqr();i(J<te);var k=this.pow(d,new s(1).iushln(te-J-1));N=N.redMul(k),d=k.redSqr(),Y=Y.redMul(d),te=J}return N},Z.prototype.invm=function(b){var c=b._invmp(this.m);return c.negative!==0?(c.negative=0,this.imod(c).redNeg()):this.imod(c)},Z.prototype.pow=function(b,c){if(c.isZero())return new s(1).toRed(this);if(c.cmpn(1)===0)return b.clone();var u=4,g=new Array(1<<u);g[0]=new s(1).toRed(this),g[1]=b;for(var w=2;w<g.length;w++)g[w]=this.mul(g[w-1],b);var S=g[0],C=0,_=0,l=c.bitLength()%26;for(l===0&&(l=26),w=c.length-1;w>=0;w--){for(var d=c.words[w],N=l-1;N>=0;N--){var Y=d>>N&1;if(S!==g[0]&&(S=this.sqr(S)),Y===0&&C===0){_=0;continue}C<<=1,C|=Y,_++,!(_!==u&&(w!==0||N!==0))&&(S=this.mul(S,g[C]),_=0,C=0)}l=26}return S},Z.prototype.convertTo=function(b){var c=b.umod(this.m);return c===b?c.clone():c},Z.prototype.convertFrom=function(b){var c=b.clone();return c.red=null,c},s.mont=function(b){return new ne(b)};function ne(U){Z.call(this,U),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new s(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)}n(ne,Z),ne.prototype.convertTo=function(b){return this.imod(b.ushln(this.shift))},ne.prototype.convertFrom=function(b){var c=this.imod(b.mul(this.rinv));return c.red=null,c},ne.prototype.imul=function(b,c){if(b.isZero()||c.isZero())return b.words[0]=0,b.length=1,b;var u=b.imul(c),g=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),w=u.isub(g).iushrn(this.shift),S=w;return w.cmp(this.m)>=0?S=w.isub(this.m):w.cmpn(0)<0&&(S=w.iadd(this.m)),S._forceRed(this)},ne.prototype.mul=function(b,c){if(b.isZero()||c.isZero())return new s(0)._forceRed(this);var u=b.mul(c),g=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),w=u.isub(g).iushrn(this.shift),S=w;return w.cmp(this.m)>=0?S=w.isub(this.m):w.cmpn(0)<0&&(S=w.iadd(this.m)),S._forceRed(this)},ne.prototype.invm=function(b){var c=this.imod(b._invmp(this.m).mul(this.r2));return c._forceRed(this)}})(t,$r)})(qf);var zi=qf.exports,Nn=L0;function L0(t,e){if(!t)throw new Error(e||"Assertion failed")}L0.equal=function(e,r,i){if(e!=r)throw new Error(i||"Assertion failed: "+e+" != "+r)};var zf={};(function(t){var e=t;function r(s,o){if(Array.isArray(s))return s.slice();if(!s)return[];var a=[];if(typeof s!="string"){for(var h=0;h<s.length;h++)a[h]=s[h]|0;return a}if(o==="hex"){s=s.replace(/[^a-z0-9]+/ig,""),s.length%2!==0&&(s="0"+s);for(var h=0;h<s.length;h+=2)a.push(parseInt(s[h]+s[h+1],16))}else for(var h=0;h<s.length;h++){var f=s.charCodeAt(h),p=f>>8,v=f&255;p?a.push(p,v):a.push(v)}return a}e.toArray=r;function i(s){return s.length===1?"0"+s:s}e.zero2=i;function n(s){for(var o="",a=0;a<s.length;a++)o+=i(s[a].toString(16));return o}e.toHex=n,e.encode=function(o,a){return a==="hex"?n(o):o}})(zf);(function(t){var e=t,r=zi,i=Nn,n=zf;e.assert=i,e.toArray=n.toArray,e.zero2=n.zero2,e.toHex=n.toHex,e.encode=n.encode;function s(p,v,x){var E=new Array(Math.max(p.bitLength(),x)+1),D;for(D=0;D<E.length;D+=1)E[D]=0;var B=1<<v+1,F=p.clone();for(D=0;D<E.length;D++){var j,R=F.andln(B-1);F.isOdd()?(R>(B>>1)-1?j=(B>>1)-R:j=R,F.isubn(j)):j=0,E[D]=j,F.iushrn(1)}return E}e.getNAF=s;function o(p,v){var x=[[],[]];p=p.clone(),v=v.clone();for(var E=0,D=0,B;p.cmpn(-E)>0||v.cmpn(-D)>0;){var F=p.andln(3)+E&3,j=v.andln(3)+D&3;F===3&&(F=-1),j===3&&(j=-1);var R;F&1?(B=p.andln(7)+E&7,(B===3||B===5)&&j===2?R=-F:R=F):R=0,x[0].push(R);var K;j&1?(B=v.andln(7)+D&7,(B===3||B===5)&&F===2?K=-j:K=j):K=0,x[1].push(K),2*E===R+1&&(E=1-E),2*D===K+1&&(D=1-D),p.iushrn(1),v.iushrn(1)}return x}e.getJSF=o;function a(p,v,x){var E="_"+v;p.prototype[v]=function(){return this[E]!==void 0?this[E]:this[E]=x.call(this)}}e.cachedProperty=a;function h(p){return typeof p=="string"?e.toArray(p,"hex"):p}e.parseBytes=h;function f(p){return new r(p,"hex","le")}e.intFromLE=f})(br);var Kf={exports:{}},cc;Kf.exports=function(e){return cc||(cc=new Zi(null)),cc.generate(e)};function Zi(t){this.rand=t}Kf.exports.Rand=Zi;Zi.prototype.generate=function(e){return this._rand(e)};Zi.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var r=new Uint8Array(e),i=0;i<r.length;i++)r[i]=this.rand.getByte();return r};if(typeof self=="object")self.crypto&&self.crypto.getRandomValues?Zi.prototype._rand=function(e){var r=new Uint8Array(e);return self.crypto.getRandomValues(r),r}:self.msCrypto&&self.msCrypto.getRandomValues?Zi.prototype._rand=function(e){var r=new Uint8Array(e);return self.msCrypto.getRandomValues(r),r}:typeof window=="object"&&(Zi.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var Gh=kf;if(typeof Gh.randomBytes!="function")throw new Error("Not supported");Zi.prototype._rand=function(e){return Gh.randomBytes(e)}}catch{}var U0=Kf.exports,jf={},ln=zi,lo=br,ia=lo.getNAF,M2=lo.getJSF,na=lo.assert;function sn(t,e){this.type=t,this.p=new ln(e.p,16),this.red=e.prime?ln.red(e.prime):ln.mont(this.p),this.zero=new ln(0).toRed(this.red),this.one=new ln(1).toRed(this.red),this.two=new ln(2).toRed(this.red),this.n=e.n&&new ln(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 r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var Da=sn;sn.prototype.point=function(){throw new Error("Not implemented")};sn.prototype.validate=function(){throw new Error("Not implemented")};sn.prototype._fixedNafMul=function(e,r){na(e.precomputed);var i=e._getDoubles(),n=ia(r,1,this._bitLength),s=(1<<i.step+1)-(i.step%2===0?2:1);s/=3;var o=[],a,h;for(a=0;a<n.length;a+=i.step){h=0;for(var f=a+i.step-1;f>=a;f--)h=(h<<1)+n[f];o.push(h)}for(var p=this.jpoint(null,null,null),v=this.jpoint(null,null,null),x=s;x>0;x--){for(a=0;a<o.length;a++)h=o[a],h===x?v=v.mixedAdd(i.points[a]):h===-x&&(v=v.mixedAdd(i.points[a].neg()));p=p.add(v)}return p.toP()};sn.prototype._wnafMul=function(e,r){var i=4,n=e._getNAFPoints(i);i=n.wnd;for(var s=n.points,o=ia(r,i,this._bitLength),a=this.jpoint(null,null,null),h=o.length-1;h>=0;h--){for(var f=0;h>=0&&o[h]===0;h--)f++;if(h>=0&&f++,a=a.dblp(f),h<0)break;var p=o[h];na(p!==0),e.type==="affine"?p>0?a=a.mixedAdd(s[p-1>>1]):a=a.mixedAdd(s[-p-1>>1].neg()):p>0?a=a.add(s[p-1>>1]):a=a.add(s[-p-1>>1].neg())}return e.type==="affine"?a.toP():a};sn.prototype._wnafMulAdd=function(e,r,i,n,s){var o=this._wnafT1,a=this._wnafT2,h=this._wnafT3,f=0,p,v,x;for(p=0;p<n;p++){x=r[p];var E=x._getNAFPoints(e);o[p]=E.wnd,a[p]=E.points}for(p=n-1;p>=1;p-=2){var D=p-1,B=p;if(o[D]!==1||o[B]!==1){h[D]=ia(i[D],o[D],this._bitLength),h[B]=ia(i[B],o[B],this._bitLength),f=Math.max(h[D].length,f),f=Math.max(h[B].length,f);continue}var F=[r[D],null,null,r[B]];r[D].y.cmp(r[B].y)===0?(F[1]=r[D].add(r[B]),F[2]=r[D].toJ().mixedAdd(r[B].neg())):r[D].y.cmp(r[B].y.redNeg())===0?(F[1]=r[D].toJ().mixedAdd(r[B]),F[2]=r[D].add(r[B].neg())):(F[1]=r[D].toJ().mixedAdd(r[B]),F[2]=r[D].toJ().mixedAdd(r[B].neg()));var j=[-3,-1,-5,-7,0,7,5,1,3],R=M2(i[D],i[B]);for(f=Math.max(R[0].length,f),h[D]=new Array(f),h[B]=new Array(f),v=0;v<f;v++){var K=R[0][v]|0,T=R[1][v]|0;h[D][v]=j[(K+1)*3+(T+1)],h[B][v]=0,a[D]=F}}var L=this.jpoint(null,null,null),q=this._wnafT4;for(p=f;p>=0;p--){for(var y=0;p>=0;){var P=!0;for(v=0;v<n;v++)q[v]=h[v][p]|0,q[v]!==0&&(P=!1);if(!P)break;y++,p--}if(p>=0&&y++,L=L.dblp(y),p<0)break;for(v=0;v<n;v++){var Z=q[v];Z!==0&&(Z>0?x=a[v][Z-1>>1]:Z<0&&(x=a[v][-Z-1>>1].neg()),x.type==="affine"?L=L.mixedAdd(x):L=L.add(x))}}for(p=0;p<n;p++)a[p]=null;return s?L:L.toP()};function Nr(t,e){this.curve=t,this.type=e,this.precomputed=null}sn.BasePoint=Nr;Nr.prototype.eq=function(){throw new Error("Not implemented")};Nr.prototype.validate=function(){return this.curve.validate(this)};sn.prototype.decodePoint=function(e,r){e=lo.toArray(e,r);var i=this.p.byteLength();if((e[0]===4||e[0]===6||e[0]===7)&&e.length-1===2*i){e[0]===6?na(e[e.length-1]%2===0):e[0]===7&&na(e[e.length-1]%2===1);var n=this.point(e.slice(1,1+i),e.slice(1+i,1+2*i));return n}else if((e[0]===2||e[0]===3)&&e.length-1===i)return this.pointFromX(e.slice(1,1+i),e[0]===3);throw new Error("Unknown point format")};Nr.prototype.encodeCompressed=function(e){return this.encode(e,!0)};Nr.prototype._encode=function(e){var r=this.curve.p.byteLength(),i=this.getX().toArray("be",r);return e?[this.getY().isEven()?2:3].concat(i):[4].concat(i,this.getY().toArray("be",r))};Nr.prototype.encode=function(e,r){return lo.encode(this._encode(r),e)};Nr.prototype.precompute=function(e){if(this.precomputed)return this;var r={doubles:null,naf:null,beta:null};return r.naf=this._getNAFPoints(8),r.doubles=this._getDoubles(4,e),r.beta=this._getBeta(),this.precomputed=r,this};Nr.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var r=this.precomputed.doubles;return r?r.points.length>=Math.ceil((e.bitLength()+1)/r.step):!1};Nr.prototype._getDoubles=function(e,r){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var i=[this],n=this,s=0;s<r;s+=e){for(var o=0;o<e;o++)n=n.dbl();i.push(n)}return{step:e,points:i}};Nr.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var r=[this],i=(1<<e)-1,n=i===1?null:this.dbl(),s=1;s<i;s++)r[s]=r[s-1].add(n);return{wnd:e,points:r}};Nr.prototype._getBeta=function(){return null};Nr.prototype.dblp=function(e){for(var r=this,i=0;i<e;i++)r=r.dbl();return r};var I2=br,yt=zi,Hf=Ia,ls=Da,D2=I2.assert;function Tr(t){ls.call(this,"short",t),this.a=new yt(t.a,16).toRed(this.red),this.b=new yt(t.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(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}Hf(Tr,ls);var C2=Tr;Tr.prototype._getEndomorphism=function(e){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var r,i;if(e.beta)r=new yt(e.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);r=n[0].cmp(n[1])<0?n[0]:n[1],r=r.toRed(this.red)}if(e.lambda)i=new yt(e.lambda,16);else{var s=this._getEndoRoots(this.n);this.g.mul(s[0]).x.cmp(this.g.x.redMul(r))===0?i=s[0]:(i=s[1],D2(this.g.mul(i).x.cmp(this.g.x.redMul(r))===0))}var o;return e.basis?o=e.basis.map(function(a){return{a:new yt(a.a,16),b:new yt(a.b,16)}}):o=this._getEndoBasis(i),{beta:r,lambda:i,basis:o}}};Tr.prototype._getEndoRoots=function(e){var r=e===this.p?this.red:yt.mont(e),i=new yt(2).toRed(r).redInvm(),n=i.redNeg(),s=new yt(3).toRed(r).redNeg().redSqrt().redMul(i),o=n.redAdd(s).fromRed(),a=n.redSub(s).fromRed();return[o,a]};Tr.prototype._getEndoBasis=function(e){for(var r=this.n.ushrn(Math.floor(this.n.bitLength()/2)),i=e,n=this.n.clone(),s=new yt(1),o=new yt(0),a=new yt(0),h=new yt(1),f,p,v,x,E,D,B,F=0,j,R;i.cmpn(0)!==0;){var K=n.div(i);j=n.sub(K.mul(i)),R=a.sub(K.mul(s));var T=h.sub(K.mul(o));if(!v&&j.cmp(r)<0)f=B.neg(),p=s,v=j.neg(),x=R;else if(v&&++F===2)break;B=j,n=i,i=j,a=s,s=R,h=o,o=T}E=j.neg(),D=R;var L=v.sqr().add(x.sqr()),q=E.sqr().add(D.sqr());return q.cmp(L)>=0&&(E=f,D=p),v.negative&&(v=v.neg(),x=x.neg()),E.negative&&(E=E.neg(),D=D.neg()),[{a:v,b:x},{a:E,b:D}]};Tr.prototype._endoSplit=function(e){var r=this.endo.basis,i=r[0],n=r[1],s=n.b.mul(e).divRound(this.n),o=i.b.neg().mul(e).divRound(this.n),a=s.mul(i.a),h=o.mul(n.a),f=s.mul(i.b),p=o.mul(n.b),v=e.sub(a).sub(h),x=f.add(p).neg();return{k1:v,k2:x}};Tr.prototype.pointFromX=function(e,r){e=new yt(e,16),e.red||(e=e.toRed(this.red));var i=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=i.redSqrt();if(n.redSqr().redSub(i).cmp(this.zero)!==0)throw new Error("invalid point");var s=n.fromRed().isOdd();return(r&&!s||!r&&s)&&(n=n.redNeg()),this.point(e,n)};Tr.prototype.validate=function(e){if(e.inf)return!0;var r=e.x,i=e.y,n=this.a.redMul(r),s=r.redSqr().redMul(r).redIAdd(n).redIAdd(this.b);return i.redSqr().redISub(s).cmpn(0)===0};Tr.prototype._endoWnafMulAdd=function(e,r,i){for(var n=this._endoWnafT1,s=this._endoWnafT2,o=0;o<e.length;o++){var a=this._endoSplit(r[o]),h=e[o],f=h._getBeta();a.k1.negative&&(a.k1.ineg(),h=h.neg(!0)),a.k2.negative&&(a.k2.ineg(),f=f.neg(!0)),n[o*2]=h,n[o*2+1]=f,s[o*2]=a.k1,s[o*2+1]=a.k2}for(var p=this._wnafMulAdd(1,n,s,o*2,i),v=0;v<o*2;v++)n[v]=null,s[v]=null;return p};function Ot(t,e,r,i){ls.BasePoint.call(this,t,"affine"),e===null&&r===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new yt(e,16),this.y=new yt(r,16),i&&(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)}Hf(Ot,ls.BasePoint);Tr.prototype.point=function(e,r,i){return new Ot(this,e,r,i)};Tr.prototype.pointFromJSON=function(e,r){return Ot.fromJSON(this,e,r)};Ot.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var r=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var i=this.curve,n=function(s){return i.point(s.x.redMul(i.endo.beta),s.y)};e.beta=r,r.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return r}};Ot.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]};Ot.fromJSON=function(e,r,i){typeof r=="string"&&(r=JSON.parse(r));var n=e.point(r[0],r[1],i);if(!r[2])return n;function s(a){return e.point(a[0],a[1],i)}var o=r[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(s))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(s))}},n};Ot.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)+">"};Ot.prototype.isInfinity=function(){return this.inf};Ot.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 r=this.y.redSub(e.y);r.cmpn(0)!==0&&(r=r.redMul(this.x.redSub(e.x).redInvm()));var i=r.redSqr().redISub(this.x).redISub(e.x),n=r.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,n)};Ot.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 r=this.curve.a,i=this.x.redSqr(),n=e.redInvm(),s=i.redAdd(i).redIAdd(i).redIAdd(r).redMul(n),o=s.redSqr().redISub(this.x.redAdd(this.x)),a=s.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)};Ot.prototype.getX=function(){return this.x.fromRed()};Ot.prototype.getY=function(){return this.y.fromRed()};Ot.prototype.mul=function(e){return e=new yt(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)};Ot.prototype.mulAdd=function(e,r,i){var n=[this,r],s=[e,i];return this.curve.endo?this.curve._endoWnafMulAdd(n,s):this.curve._wnafMulAdd(1,n,s,2)};Ot.prototype.jmulAdd=function(e,r,i){var n=[this,r],s=[e,i];return this.curve.endo?this.curve._endoWnafMulAdd(n,s,!0):this.curve._wnafMulAdd(1,n,s,2,!0)};Ot.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)};Ot.prototype.neg=function(e){if(this.inf)return this;var r=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var i=this.precomputed,n=function(s){return s.neg()};r.precomputed={naf:i.naf&&{wnd:i.naf.wnd,points:i.naf.points.map(n)},doubles:i.doubles&&{step:i.doubles.step,points:i.doubles.points.map(n)}}}return r};Ot.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 Lt(t,e,r,i){ls.BasePoint.call(this,t,"jacobian"),e===null&&r===null&&i===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new yt(0)):(this.x=new yt(e,16),this.y=new yt(r,16),this.z=new yt(i,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}Hf(Lt,ls.BasePoint);Tr.prototype.jpoint=function(e,r,i){return new Lt(this,e,r,i)};Lt.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),r=e.redSqr(),i=this.x.redMul(r),n=this.y.redMul(r).redMul(e);return this.curve.point(i,n)};Lt.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};Lt.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var r=e.z.redSqr(),i=this.z.redSqr(),n=this.x.redMul(r),s=e.x.redMul(i),o=this.y.redMul(r.redMul(e.z)),a=e.y.redMul(i.redMul(this.z)),h=n.redSub(s),f=o.redSub(a);if(h.cmpn(0)===0)return f.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var p=h.redSqr(),v=p.redMul(h),x=n.redMul(p),E=f.redSqr().redIAdd(v).redISub(x).redISub(x),D=f.redMul(x.redISub(E)).redISub(o.redMul(v)),B=this.z.redMul(e.z).redMul(h);return this.curve.jpoint(E,D,B)};Lt.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var r=this.z.redSqr(),i=this.x,n=e.x.redMul(r),s=this.y,o=e.y.redMul(r).redMul(this.z),a=i.redSub(n),h=s.redSub(o);if(a.cmpn(0)===0)return h.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var f=a.redSqr(),p=f.redMul(a),v=i.redMul(f),x=h.redSqr().redIAdd(p).redISub(v).redISub(v),E=h.redMul(v.redISub(x)).redISub(s.redMul(p)),D=this.z.redMul(a);return this.curve.jpoint(x,E,D)};Lt.prototype.dblp=function(e){if(e===0)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var r;if(this.curve.zeroA||this.curve.threeA){var i=this;for(r=0;r<e;r++)i=i.dbl();return i}var n=this.curve.a,s=this.curve.tinv,o=this.x,a=this.y,h=this.z,f=h.redSqr().redSqr(),p=a.redAdd(a);for(r=0;r<e;r++){var v=o.redSqr(),x=p.redSqr(),E=x.redSqr(),D=v.redAdd(v).redIAdd(v).redIAdd(n.redMul(f)),B=o.redMul(x),F=D.redSqr().redISub(B.redAdd(B)),j=B.redISub(F),R=D.redMul(j);R=R.redIAdd(R).redISub(E);var K=p.redMul(h);r+1<e&&(f=f.redMul(E)),o=F,h=K,p=R}return this.curve.jpoint(o,p.redMul(s),h)};Lt.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()};Lt.prototype._zeroDbl=function(){var e,r,i;if(this.zOne){var n=this.x.redSqr(),s=this.y.redSqr(),o=s.redSqr(),a=this.x.redAdd(s).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var h=n.redAdd(n).redIAdd(n),f=h.redSqr().redISub(a).redISub(a),p=o.redIAdd(o);p=p.redIAdd(p),p=p.redIAdd(p),e=f,r=h.redMul(a.redISub(f)).redISub(p),i=this.y.redAdd(this.y)}else{var v=this.x.redSqr(),x=this.y.redSqr(),E=x.redSqr(),D=this.x.redAdd(x).redSqr().redISub(v).redISub(E);D=D.redIAdd(D);var B=v.redAdd(v).redIAdd(v),F=B.redSqr(),j=E.redIAdd(E);j=j.redIAdd(j),j=j.redIAdd(j),e=F.redISub(D).redISub(D),r=B.redMul(D.redISub(e)).redISub(j),i=this.y.redMul(this.z),i=i.redIAdd(i)}return this.curve.jpoint(e,r,i)};Lt.prototype._threeDbl=function(){var e,r,i;if(this.zOne){var n=this.x.redSqr(),s=this.y.redSqr(),o=s.redSqr(),a=this.x.redAdd(s).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var h=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),f=h.redSqr().redISub(a).redISub(a);e=f;var p=o.redIAdd(o);p=p.redIAdd(p),p=p.redIAdd(p),r=h.redMul(a.redISub(f)).redISub(p),i=this.y.redAdd(this.y)}else{var v=this.z.redSqr(),x=this.y.redSqr(),E=this.x.redMul(x),D=this.x.redSub(v).redMul(this.x.redAdd(v));D=D.redAdd(D).redIAdd(D);var B=E.redIAdd(E);B=B.redIAdd(B);var F=B.redAdd(B);e=D.redSqr().redISub(F),i=this.y.redAdd(this.z).redSqr().redISub(x).redISub(v);var j=x.redSqr();j=j.redIAdd(j),j=j.redIAdd(j),j=j.redIAdd(j),r=D.redMul(B.redISub(e)).redISub(j)}return this.curve.jpoint(e,r,i)};Lt.prototype._dbl=function(){var e=this.curve.a,r=this.x,i=this.y,n=this.z,s=n.redSqr().redSqr(),o=r.redSqr(),a=i.redSqr(),h=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(s)),f=r.redAdd(r);f=f.redIAdd(f);var p=f.redMul(a),v=h.redSqr().redISub(p.redAdd(p)),x=p.redISub(v),E=a.redSqr();E=E.redIAdd(E),E=E.redIAdd(E),E=E.redIAdd(E);var D=h.redMul(x).redISub(E),B=i.redAdd(i).redMul(n);return this.curve.jpoint(v,D,B)};Lt.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),r=this.y.redSqr(),i=this.z.redSqr(),n=r.redSqr(),s=e.redAdd(e).redIAdd(e),o=s.redSqr(),a=this.x.redAdd(r).redSqr().redISub(e).redISub(n);a=a.redIAdd(a),a=a.redAdd(a).redIAdd(a),a=a.redISub(o);var h=a.redSqr(),f=n.redIAdd(n);f=f.redIAdd(f),f=f.redIAdd(f),f=f.redIAdd(f);var p=s.redIAdd(a).redSqr().redISub(o).redISub(h).redISub(f),v=r.redMul(p);v=v.redIAdd(v),v=v.redIAdd(v);var x=this.x.redMul(h).redISub(v);x=x.redIAdd(x),x=x.redIAdd(x);var E=this.y.redMul(p.redMul(f.redISub(p)).redISub(a.redMul(h)));E=E.redIAdd(E),E=E.redIAdd(E),E=E.redIAdd(E);var D=this.z.redAdd(a).redSqr().redISub(i).redISub(h);return this.curve.jpoint(x,E,D)};Lt.prototype.mul=function(e,r){return e=new yt(e,r),this.curve._wnafMul(this,e)};Lt.prototype.eq=function(e){if(e.type==="affine")return this.eq(e.toJ());if(this===e)return!0;var r=this.z.redSqr(),i=e.z.redSqr();if(this.x.redMul(i).redISub(e.x.redMul(r)).cmpn(0)!==0)return!1;var n=r.redMul(this.z),s=i.redMul(e.z);return this.y.redMul(s).redISub(e.y.redMul(n)).cmpn(0)===0};Lt.prototype.eqXToP=function(e){var r=this.z.redSqr(),i=e.toRed(this.curve.red).redMul(r);if(this.x.cmp(i)===0)return!0;for(var n=e.clone(),s=this.curve.redN.redMul(r);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(i.redIAdd(s),this.x.cmp(i)===0)return!0}};Lt.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)+">"};Lt.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var Wn=zi,k0=Ia,Ca=Da,N2=br;function ds(t){Ca.call(this,"mont",t),this.a=new Wn(t.a,16).toRed(this.red),this.b=new Wn(t.b,16).toRed(this.red),this.i4=new Wn(4).toRed(this.red).redInvm(),this.two=new Wn(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}k0(ds,Ca);var T2=ds;ds.prototype.validate=function(e){var r=e.normalize().x,i=r.redSqr(),n=i.redMul(r).redAdd(i.redMul(this.a)).redAdd(r),s=n.redSqrt();return s.redSqr().cmp(n)===0};function Rt(t,e,r){Ca.BasePoint.call(this,t,"projective"),e===null&&r===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new Wn(e,16),this.z=new Wn(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}k0(Rt,Ca.BasePoint);ds.prototype.decodePoint=function(e,r){return this.point(N2.toArray(e,r),1)};ds.prototype.point=function(e,r){return new Rt(this,e,r)};ds.prototype.pointFromJSON=function(e){return Rt.fromJSON(this,e)};Rt.prototype.precompute=function(){};Rt.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};Rt.fromJSON=function(e,r){return new Rt(e,r[0],r[1]||e.one)};Rt.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)+">"};Rt.prototype.isInfinity=function(){return this.z.cmpn(0)===0};Rt.prototype.dbl=function(){var e=this.x.redAdd(this.z),r=e.redSqr(),i=this.x.redSub(this.z),n=i.redSqr(),s=r.redSub(n),o=r.redMul(n),a=s.redMul(n.redAdd(this.curve.a24.redMul(s)));return this.curve.point(o,a)};Rt.prototype.add=function(){throw new Error("Not supported on Montgomery curve")};Rt.prototype.diffAdd=function(e,r){var i=this.x.redAdd(this.z),n=this.x.redSub(this.z),s=e.x.redAdd(e.z),o=e.x.redSub(e.z),a=o.redMul(i),h=s.redMul(n),f=r.z.redMul(a.redAdd(h).redSqr()),p=r.x.redMul(a.redISub(h).redSqr());return this.curve.point(f,p)};Rt.prototype.mul=function(e){for(var r=e.clone(),i=this,n=this.curve.point(null,null),s=this,o=[];r.cmpn(0)!==0;r.iushrn(1))o.push(r.andln(1));for(var a=o.length-1;a>=0;a--)o[a]===0?(i=i.diffAdd(n,s),n=n.dbl()):(n=i.diffAdd(n,s),i=i.dbl());return n};Rt.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")};Rt.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")};Rt.prototype.eq=function(e){return this.getX().cmp(e.getX())===0};Rt.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};Rt.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var R2=br,Fi=zi,$0=Ia,Na=Da,O2=R2.assert;function di(t){this.twisted=(t.a|0)!==1,this.mOneA=this.twisted&&(t.a|0)===-1,this.extended=this.mOneA,Na.call(this,"edwards",t),this.a=new Fi(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new Fi(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new Fi(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),O2(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(t.c|0)===1}$0(di,Na);var P2=di;di.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)};di.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)};di.prototype.jpoint=function(e,r,i,n){return this.point(e,r,i,n)};di.prototype.pointFromX=function(e,r){e=new Fi(e,16),e.red||(e=e.toRed(this.red));var i=e.redSqr(),n=this.c2.redSub(this.a.redMul(i)),s=this.one.redSub(this.c2.redMul(this.d).redMul(i)),o=n.redMul(s.redInvm()),a=o.redSqrt();if(a.redSqr().redSub(o).cmp(this.zero)!==0)throw new Error("invalid point");var h=a.fromRed().isOdd();return(r&&!h||!r&&h)&&(a=a.redNeg()),this.point(e,a)};di.prototype.pointFromY=function(e,r){e=new Fi(e,16),e.red||(e=e.toRed(this.red));var i=e.redSqr(),n=i.redSub(this.c2),s=i.redMul(this.d).redMul(this.c2).redSub(this.a),o=n.redMul(s.redInvm());if(o.cmp(this.zero)===0){if(r)throw new Error("invalid point");return this.point(this.zero,e)}var a=o.redSqrt();if(a.redSqr().redSub(o).cmp(this.zero)!==0)throw new Error("invalid point");return a.fromRed().isOdd()!==r&&(a=a.redNeg()),this.point(a,e)};di.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var r=e.x.redSqr(),i=e.y.redSqr(),n=r.redMul(this.a).redAdd(i),s=this.c2.redMul(this.one.redAdd(this.d.redMul(r).redMul(i)));return n.cmp(s)===0};function lt(t,e,r,i,n){Na.BasePoint.call(this,t,"projective"),e===null&&r===null&&i===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 Fi(e,16),this.y=new Fi(r,16),this.z=i?new Fi(i,16):this.curve.one,this.t=n&&new Fi(n,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()))))}$0(lt,Na.BasePoint);di.prototype.pointFromJSON=function(e){return lt.fromJSON(this,e)};di.prototype.point=function(e,r,i,n){return new lt(this,e,r,i,n)};lt.fromJSON=function(e,r){return new lt(e,r[0],r[1],r[2])};lt.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)+">"};lt.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};lt.prototype._extDbl=function(){var e=this.x.redSqr(),r=this.y.redSqr(),i=this.z.redSqr();i=i.redIAdd(i);var n=this.curve._mulA(e),s=this.x.redAdd(this.y).redSqr().redISub(e).redISub(r),o=n.redAdd(r),a=o.redSub(i),h=n.redSub(r),f=s.redMul(a),p=o.redMul(h),v=s.redMul(h),x=a.redMul(o);return this.curve.point(f,p,x,v)};lt.prototype._projDbl=function(){var e=this.x.redAdd(this.y).redSqr(),r=this.x.redSqr(),i=this.y.redSqr(),n,s,o,a,h,f;if(this.curve.twisted){a=this.curve._mulA(r);var p=a.redAdd(i);this.zOne?(n=e.redSub(r).redSub(i).redMul(p.redSub(this.curve.two)),s=p.redMul(a.redSub(i)),o=p.redSqr().redSub(p).redSub(p)):(h=this.z.redSqr(),f=p.redSub(h).redISub(h),n=e.redSub(r).redISub(i).redMul(f),s=p.redMul(a.redSub(i)),o=p.redMul(f))}else a=r.redAdd(i),h=this.curve._mulC(this.z).redSqr(),f=a.redSub(h).redSub(h),n=this.curve._mulC(e.redISub(a)).redMul(f),s=this.curve._mulC(a).redMul(r.redISub(i)),o=a.redMul(f);return this.curve.point(n,s,o)};lt.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};lt.prototype._extAdd=function(e){var r=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),i=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),s=this.z.redMul(e.z.redAdd(e.z)),o=i.redSub(r),a=s.redSub(n),h=s.redAdd(n),f=i.redAdd(r),p=o.redMul(a),v=h.redMul(f),x=o.redMul(f),E=a.redMul(h);return this.curve.point(p,v,E,x)};lt.prototype._projAdd=function(e){var r=this.z.redMul(e.z),i=r.redSqr(),n=this.x.redMul(e.x),s=this.y.redMul(e.y),o=this.curve.d.redMul(n).redMul(s),a=i.redSub(o),h=i.redAdd(o),f=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(n).redISub(s),p=r.redMul(a).redMul(f),v,x;return this.curve.twisted?(v=r.redMul(h).redMul(s.redSub(this.curve._mulA(n))),x=a.redMul(h)):(v=r.redMul(h).redMul(s.redSub(n)),x=this.curve._mulC(a).redMul(h)),this.curve.point(p,v,x)};lt.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)};lt.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)};lt.prototype.mulAdd=function(e,r,i){return this.curve._wnafMulAdd(1,[this,r],[e,i],2,!1)};lt.prototype.jmulAdd=function(e,r,i){return this.curve._wnafMulAdd(1,[this,r],[e,i],2,!0)};lt.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};lt.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};lt.prototype.getX=function(){return this.normalize(),this.x.fromRed()};lt.prototype.getY=function(){return this.normalize(),this.y.fromRed()};lt.prototype.eq=function(e){return this===e||this.getX().cmp(e.getX())===0&&this.getY().cmp(e.getY())===0};lt.prototype.eqXToP=function(e){var r=e.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(r)===0)return!0;for(var i=e.clone(),n=this.curve.redN.redMul(this.z);;){if(i.iadd(this.curve.n),i.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(n),this.x.cmp(r)===0)return!0}};lt.prototype.toP=lt.prototype.normalize;lt.prototype.mixedAdd=lt.prototype.add;(function(t){var e=t;e.base=Da,e.short=C2,e.mont=T2,e.edwards=P2})(jf);var Ta={},Ra={},tt={},B2=Nn,F2=Ia;tt.inherits=F2;function L2(t,e){return(t.charCodeAt(e)&64512)!==55296||e<0||e+1>=t.length?!1:(t.charCodeAt(e+1)&64512)===56320}function U2(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if(typeof t=="string")if(e){if(e==="hex")for(t=t.replace(/[^a-z0-9]+/ig,""),t.length%2!==0&&(t="0"+t),n=0;n<t.length;n+=2)r.push(parseInt(t[n]+t[n+1],16))}else for(var i=0,n=0;n<t.length;n++){var s=t.charCodeAt(n);s<128?r[i++]=s:s<2048?(r[i++]=s>>6|192,r[i++]=s&63|128):L2(t,n)?(s=65536+((s&1023)<<10)+(t.charCodeAt(++n)&1023),r[i++]=s>>18|240,r[i++]=s>>12&63|128,r[i++]=s>>6&63|128,r[i++]=s&63|128):(r[i++]=s>>12|224,r[i++]=s>>6&63|128,r[i++]=s&63|128)}else for(n=0;n<t.length;n++)r[n]=t[n]|0;return r}tt.toArray=U2;function k2(t){for(var e="",r=0;r<t.length;r++)e+=z0(t[r].toString(16));return e}tt.toHex=k2;function q0(t){var e=t>>>24|t>>>8&65280|t<<8&16711680|(t&255)<<24;return e>>>0}tt.htonl=q0;function $2(t,e){for(var r="",i=0;i<t.length;i++){var n=t[i];e==="little"&&(n=q0(n)),r+=K0(n.toString(16))}return r}tt.toHex32=$2;function z0(t){return t.length===1?"0"+t:t}tt.zero2=z0;function K0(t){return t.length===7?"0"+t:t.length===6?"00"+t:t.length===5?"000"+t:t.length===4?"0000"+t:t.length===3?"00000"+t:t.length===2?"000000"+t:t.length===1?"0000000"+t:t}tt.zero8=K0;function q2(t,e,r,i){var n=r-e;B2(n%4===0);for(var s=new Array(n/4),o=0,a=e;o<s.length;o++,a+=4){var h;i==="big"?h=t[a]<<24|t[a+1]<<16|t[a+2]<<8|t[a+3]:h=t[a+3]<<24|t[a+2]<<16|t[a+1]<<8|t[a],s[o]=h>>>0}return s}tt.join32=q2;function z2(t,e){for(var r=new Array(t.length*4),i=0,n=0;i<t.length;i++,n+=4){var s=t[i];e==="big"?(r[n]=s>>>24,r[n+1]=s>>>16&255,r[n+2]=s>>>8&255,r[n+3]=s&255):(r[n+3]=s>>>24,r[n+2]=s>>>16&255,r[n+1]=s>>>8&255,r[n]=s&255)}return r}tt.split32=z2;function K2(t,e){return t>>>e|t<<32-e}tt.rotr32=K2;function j2(t,e){return t<<e|t>>>32-e}tt.rotl32=j2;function H2(t,e){return t+e>>>0}tt.sum32=H2;function V2(t,e,r){return t+e+r>>>0}tt.sum32_3=V2;function W2(t,e,r,i){return t+e+r+i>>>0}tt.sum32_4=W2;function G2(t,e,r,i,n){return t+e+r+i+n>>>0}tt.sum32_5=G2;function Y2(t,e,r,i){var n=t[e],s=t[e+1],o=i+s>>>0,a=(o<i?1:0)+r+n;t[e]=a>>>0,t[e+1]=o}tt.sum64=Y2;function J2(t,e,r,i){var n=e+i>>>0,s=(n<e?1:0)+t+r;return s>>>0}tt.sum64_hi=J2;function Q2(t,e,r,i){var n=e+i;return n>>>0}tt.sum64_lo=Q2;function X2(t,e,r,i,n,s,o,a){var h=0,f=e;f=f+i>>>0,h+=f<e?1:0,f=f+s>>>0,h+=f<s?1:0,f=f+a>>>0,h+=f<a?1:0;var p=t+r+n+o+h;return p>>>0}tt.sum64_4_hi=X2;function Z2(t,e,r,i,n,s,o,a){var h=e+i+s+a;return h>>>0}tt.sum64_4_lo=Z2;function eb(t,e,r,i,n,s,o,a,h,f){var p=0,v=e;v=v+i>>>0,p+=v<e?1:0,v=v+s>>>0,p+=v<s?1:0,v=v+a>>>0,p+=v<a?1:0,v=v+f>>>0,p+=v<f?1:0;var x=t+r+n+o+h+p;return x>>>0}tt.sum64_5_hi=eb;function tb(t,e,r,i,n,s,o,a,h,f){var p=e+i+s+a+f;return p>>>0}tt.sum64_5_lo=tb;function rb(t,e,r){var i=e<<32-r|t>>>r;return i>>>0}tt.rotr64_hi=rb;function ib(t,e,r){var i=t<<32-r|e>>>r;return i>>>0}tt.rotr64_lo=ib;function nb(t,e,r){return t>>>r}tt.shr64_hi=nb;function sb(t,e,r){var i=t<<32-r|e>>>r;return i>>>0}tt.shr64_lo=sb;var ps={},Yh=tt,ob=Nn;function Oa(){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}ps.BlockHash=Oa;Oa.prototype.update=function(e,r){if(e=Yh.toArray(e,r),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){e=this.pending;var i=e.length%this._delta8;this.pending=e.slice(e.length-i,e.length),this.pending.length===0&&(this.pending=null),e=Yh.join32(e,0,e.length-i,this.endian);for(var n=0;n<e.length;n+=this._delta32)this._update(e,n,n+this._delta32)}return this};Oa.prototype.digest=function(e){return this.update(this._pad()),ob(this.pending===null),this._digest(e)};Oa.prototype._pad=function(){var e=this.pendingTotal,r=this._delta8,i=r-(e+this.padLength)%r,n=new Array(i+this.padLength);n[0]=128;for(var s=1;s<i;s++)n[s]=0;if(e<<=3,this.endian==="big"){for(var o=8;o<this.padLength;o++)n[s++]=0;n[s++]=0,n[s++]=0,n[s++]=0,n[s++]=0,n[s++]=e>>>24&255,n[s++]=e>>>16&255,n[s++]=e>>>8&255,n[s++]=e&255}else for(n[s++]=e&255,n[s++]=e>>>8&255,n[s++]=e>>>16&255,n[s++]=e>>>24&255,n[s++]=0,n[s++]=0,n[s++]=0,n[s++]=0,o=8;o<this.padLength;o++)n[s++]=0;return n};var gs={},pi={},ab=tt,ei=ab.rotr32;function cb(t,e,r,i){if(t===0)return j0(e,r,i);if(t===1||t===3)return V0(e,r,i);if(t===2)return H0(e,r,i)}pi.ft_1=cb;function j0(t,e,r){return t&e^~t&r}pi.ch32=j0;function H0(t,e,r){return t&e^t&r^e&r}pi.maj32=H0;function V0(t,e,r){return t^e^r}pi.p32=V0;function fb(t){return ei(t,2)^ei(t,13)^ei(t,22)}pi.s0_256=fb;function hb(t){return ei(t,6)^ei(t,11)^ei(t,25)}pi.s1_256=hb;function ub(t){return ei(t,7)^ei(t,18)^t>>>3}pi.g0_256=ub;function lb(t){return ei(t,17)^ei(t,19)^t>>>10}pi.g1_256=lb;var Xn=tt,db=ps,pb=pi,fc=Xn.rotl32,Rs=Xn.sum32,gb=Xn.sum32_5,bb=pb.ft_1,W0=db.BlockHash,vb=[1518500249,1859775393,2400959708,3395469782];function ci(){if(!(this instanceof ci))return new ci;W0.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}Xn.inherits(ci,W0);var mb=ci;ci.blockSize=512;ci.outSize=160;ci.hmacStrength=80;ci.padLength=64;ci.prototype._update=function(e,r){for(var i=this.W,n=0;n<16;n++)i[n]=e[r+n];for(;n<i.length;n++)i[n]=fc(i[n-3]^i[n-8]^i[n-14]^i[n-16],1);var s=this.h[0],o=this.h[1],a=this.h[2],h=this.h[3],f=this.h[4];for(n=0;n<i.length;n++){var p=~~(n/20),v=gb(fc(s,5),bb(p,o,a,h),f,i[n],vb[p]);f=h,h=a,a=fc(o,30),o=s,s=v}this.h[0]=Rs(this.h[0],s),this.h[1]=Rs(this.h[1],o),this.h[2]=Rs(this.h[2],a),this.h[3]=Rs(this.h[3],h),this.h[4]=Rs(this.h[4],f)};ci.prototype._digest=function(e){return e==="hex"?Xn.toHex32(this.h,"big"):Xn.split32(this.h,"big")};var Zn=tt,yb=ps,bs=pi,wb=Nn,Or=Zn.sum32,_b=Zn.sum32_4,Eb=Zn.sum32_5,Ab=bs.ch32,xb=bs.maj32,Sb=bs.s0_256,Mb=bs.s1_256,Ib=bs.g0_256,Db=bs.g1_256,G0=yb.BlockHash,Cb=[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 fi(){if(!(this instanceof fi))return new fi;G0.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=Cb,this.W=new Array(64)}Zn.inherits(fi,G0);var Y0=fi;fi.blockSize=512;fi.outSize=256;fi.hmacStrength=192;fi.padLength=64;fi.prototype._update=function(e,r){for(var i=this.W,n=0;n<16;n++)i[n]=e[r+n];for(;n<i.length;n++)i[n]=_b(Db(i[n-2]),i[n-7],Ib(i[n-15]),i[n-16]);var s=this.h[0],o=this.h[1],a=this.h[2],h=this.h[3],f=this.h[4],p=this.h[5],v=this.h[6],x=this.h[7];for(wb(this.k.length===i.length),n=0;n<i.length;n++){var E=Eb(x,Mb(f),Ab(f,p,v),this.k[n],i[n]),D=Or(Sb(s),xb(s,o,a));x=v,v=p,p=f,f=Or(h,E),h=a,a=o,o=s,s=Or(E,D)}this.h[0]=Or(this.h[0],s),this.h[1]=Or(this.h[1],o),this.h[2]=Or(this.h[2],a),this.h[3]=Or(this.h[3],h),this.h[4]=Or(this.h[4],f),this.h[5]=Or(this.h[5],p),this.h[6]=Or(this.h[6],v),this.h[7]=Or(this.h[7],x)};fi.prototype._digest=function(e){return e==="hex"?Zn.toHex32(this.h,"big"):Zn.split32(this.h,"big")};var Zc=tt,J0=Y0;function $i(){if(!(this instanceof $i))return new $i;J0.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}Zc.inherits($i,J0);var Nb=$i;$i.blockSize=512;$i.outSize=224;$i.hmacStrength=192;$i.padLength=64;$i.prototype._digest=function(e){return e==="hex"?Zc.toHex32(this.h.slice(0,7),"big"):Zc.split32(this.h.slice(0,7),"big")};var cr=tt,Tb=ps,Rb=Nn,ti=cr.rotr64_hi,ri=cr.rotr64_lo,Q0=cr.shr64_hi,X0=cr.shr64_lo,Vi=cr.sum64,hc=cr.sum64_hi,uc=cr.sum64_lo,Ob=cr.sum64_4_hi,Pb=cr.sum64_4_lo,Bb=cr.sum64_5_hi,Fb=cr.sum64_5_lo,Z0=Tb.BlockHash,Lb=[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 jr(){if(!(this instanceof jr))return new jr;Z0.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=Lb,this.W=new Array(160)}cr.inherits(jr,Z0);var ed=jr;jr.blockSize=1024;jr.outSize=512;jr.hmacStrength=192;jr.padLength=128;jr.prototype._prepareBlock=function(e,r){for(var i=this.W,n=0;n<32;n++)i[n]=e[r+n];for(;n<i.length;n+=2){var s=Gb(i[n-4],i[n-3]),o=Yb(i[n-4],i[n-3]),a=i[n-14],h=i[n-13],f=Vb(i[n-30],i[n-29]),p=Wb(i[n-30],i[n-29]),v=i[n-32],x=i[n-31];i[n]=Ob(s,o,a,h,f,p,v,x),i[n+1]=Pb(s,o,a,h,f,p,v,x)}};jr.prototype._update=function(e,r){this._prepareBlock(e,r);var i=this.W,n=this.h[0],s=this.h[1],o=this.h[2],a=this.h[3],h=this.h[4],f=this.h[5],p=this.h[6],v=this.h[7],x=this.h[8],E=this.h[9],D=this.h[10],B=this.h[11],F=this.h[12],j=this.h[13],R=this.h[14],K=this.h[15];Rb(this.k.length===i.length);for(var T=0;T<i.length;T+=2){var L=R,q=K,y=jb(x,E),P=Hb(x,E),Z=Ub(x,E,D,B,F),ne=kb(x,E,D,B,F,j),U=this.k[T],b=this.k[T+1],c=i[T],u=i[T+1],g=Bb(L,q,y,P,Z,ne,U,b,c,u),w=Fb(L,q,y,P,Z,ne,U,b,c,u);L=zb(n,s),q=Kb(n,s),y=$b(n,s,o,a,h),P=qb(n,s,o,a,h,f);var S=hc(L,q,y,P),C=uc(L,q,y,P);R=F,K=j,F=D,j=B,D=x,B=E,x=hc(p,v,g,w),E=uc(v,v,g,w),p=h,v=f,h=o,f=a,o=n,a=s,n=hc(g,w,S,C),s=uc(g,w,S,C)}Vi(this.h,0,n,s),Vi(this.h,2,o,a),Vi(this.h,4,h,f),Vi(this.h,6,p,v),Vi(this.h,8,x,E),Vi(this.h,10,D,B),Vi(this.h,12,F,j),Vi(this.h,14,R,K)};jr.prototype._digest=function(e){return e==="hex"?cr.toHex32(this.h,"big"):cr.split32(this.h,"big")};function Ub(t,e,r,i,n){var s=t&r^~t&n;return s<0&&(s+=4294967296),s}function kb(t,e,r,i,n,s){var o=e&i^~e&s;return o<0&&(o+=4294967296),o}function $b(t,e,r,i,n){var s=t&r^t&n^r&n;return s<0&&(s+=4294967296),s}function qb(t,e,r,i,n,s){var o=e&i^e&s^i&s;return o<0&&(o+=4294967296),o}function zb(t,e){var r=ti(t,e,28),i=ti(e,t,2),n=ti(e,t,7),s=r^i^n;return s<0&&(s+=4294967296),s}function Kb(t,e){var r=ri(t,e,28),i=ri(e,t,2),n=ri(e,t,7),s=r^i^n;return s<0&&(s+=4294967296),s}function jb(t,e){var r=ti(t,e,14),i=ti(t,e,18),n=ti(e,t,9),s=r^i^n;return s<0&&(s+=4294967296),s}function Hb(t,e){var r=ri(t,e,14),i=ri(t,e,18),n=ri(e,t,9),s=r^i^n;return s<0&&(s+=4294967296),s}function Vb(t,e){var r=ti(t,e,1),i=ti(t,e,8),n=Q0(t,e,7),s=r^i^n;return s<0&&(s+=4294967296),s}function Wb(t,e){var r=ri(t,e,1),i=ri(t,e,8),n=X0(t,e,7),s=r^i^n;return s<0&&(s+=4294967296),s}function Gb(t,e){var r=ti(t,e,19),i=ti(e,t,29),n=Q0(t,e,6),s=r^i^n;return s<0&&(s+=4294967296),s}function Yb(t,e){var r=ri(t,e,19),i=ri(e,t,29),n=X0(t,e,6),s=r^i^n;return s<0&&(s+=4294967296),s}var ef=tt,td=ed;function qi(){if(!(this instanceof qi))return new qi;td.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}ef.inherits(qi,td);var Jb=qi;qi.blockSize=1024;qi.outSize=384;qi.hmacStrength=192;qi.padLength=128;qi.prototype._digest=function(e){return e==="hex"?ef.toHex32(this.h.slice(0,12),"big"):ef.split32(this.h.slice(0,12),"big")};gs.sha1=mb;gs.sha224=Nb;gs.sha256=Y0;gs.sha384=Jb;gs.sha512=ed;var rd={},Mn=tt,Qb=ps,Bo=Mn.rotl32,Jh=Mn.sum32,Os=Mn.sum32_3,Qh=Mn.sum32_4,id=Qb.BlockHash;function hi(){if(!(this instanceof hi))return new hi;id.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}Mn.inherits(hi,id);rd.ripemd160=hi;hi.blockSize=512;hi.outSize=160;hi.hmacStrength=192;hi.padLength=64;hi.prototype._update=function(e,r){for(var i=this.h[0],n=this.h[1],s=this.h[2],o=this.h[3],a=this.h[4],h=i,f=n,p=s,v=o,x=a,E=0;E<80;E++){var D=Jh(Bo(Qh(i,Xh(E,n,s,o),e[ev[E]+r],Xb(E)),rv[E]),a);i=a,a=o,o=Bo(s,10),s=n,n=D,D=Jh(Bo(Qh(h,Xh(79-E,f,p,v),e[tv[E]+r],Zb(E)),iv[E]),x),h=x,x=v,v=Bo(p,10),p=f,f=D}D=Os(this.h[1],s,v),this.h[1]=Os(this.h[2],o,x),this.h[2]=Os(this.h[3],a,h),this.h[3]=Os(this.h[4],i,f),this.h[4]=Os(this.h[0],n,p),this.h[0]=D};hi.prototype._digest=function(e){return e==="hex"?Mn.toHex32(this.h,"little"):Mn.split32(this.h,"little")};function Xh(t,e,r,i){return t<=15?e^r^i:t<=31?e&r|~e&i:t<=47?(e|~r)^i:t<=63?e&i|r&~i:e^(r|~i)}function Xb(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function Zb(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}var ev=[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],tv=[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],rv=[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],iv=[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],nv=tt,sv=Nn;function es(t,e,r){if(!(this instanceof es))return new es(t,e,r);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(nv.toArray(e,r))}var ov=es;es.prototype._init=function(e){e.length>this.blockSize&&(e=new this.Hash().update(e).digest()),sv(e.length<=this.blockSize);for(var r=e.length;r<this.blockSize;r++)e.push(0);for(r=0;r<e.length;r++)e[r]^=54;for(this.inner=new this.Hash().update(e),r=0;r<e.length;r++)e[r]^=106;this.outer=new this.Hash().update(e)};es.prototype.update=function(e,r){return this.inner.update(e,r),this};es.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)};(function(t){var e=t;e.utils=tt,e.common=ps,e.sha=gs,e.ripemd=rd,e.hmac=ov,e.sha1=e.sha.sha1,e.sha256=e.sha.sha256,e.sha224=e.sha.sha224,e.sha384=e.sha.sha384,e.sha512=e.sha.sha512,e.ripemd160=e.ripemd.ripemd160})(Ra);var lc,Zh;function av(){return Zh||(Zh=1,lc={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"]]}}),lc}(function(t){var e=t,r=Ra,i=jf,n=br,s=n.assert;function o(f){f.type==="short"?this.curve=new i.short(f):f.type==="edwards"?this.curve=new i.edwards(f):this.curve=new i.mont(f),this.g=this.curve.g,this.n=this.curve.n,this.hash=f.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}e.PresetCurve=o;function a(f,p){Object.defineProperty(e,f,{configurable:!0,enumerable:!0,get:function(){var v=new o(p);return Object.defineProperty(e,f,{configurable:!0,enumerable:!0,value:v}),v}})}a("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:r.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),a("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:r.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),a("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:r.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),a("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:r.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"]}),a("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:r.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"]}),a("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:r.sha256,gRed:!1,g:["9"]}),a("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:r.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var h;try{h=av()}catch{h=void 0}a("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:r.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",h]})})(Ta);var cv=Ra,xn=zf,nd=Nn;function nn(t){if(!(this instanceof nn))return new nn(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=xn.toArray(t.entropy,t.entropyEnc||"hex"),r=xn.toArray(t.nonce,t.nonceEnc||"hex"),i=xn.toArray(t.pers,t.persEnc||"hex");nd(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,i)}var fv=nn;nn.prototype._init=function(e,r,i){var n=e.concat(r).concat(i);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var s=0;s<this.V.length;s++)this.K[s]=0,this.V[s]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656};nn.prototype._hmac=function(){return new cv.hmac(this.hash,this.K)};nn.prototype._update=function(e){var r=this._hmac().update(this.V).update([0]);e&&(r=r.update(e)),this.K=r.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())};nn.prototype.reseed=function(e,r,i,n){typeof r!="string"&&(n=i,i=r,r=null),e=xn.toArray(e,r),i=xn.toArray(i,n),nd(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(i||[])),this._reseed=1};nn.prototype.generate=function(e,r,i,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof r!="string"&&(n=i,i=r,r=null),i&&(i=xn.toArray(i,n||"hex"),this._update(i));for(var s=[];s.length<e;)this.V=this._hmac().update(this.V).digest(),s=s.concat(this.V);var o=s.slice(0,e);return this._update(i),this._reseed++,xn.encode(o,r)};var hv=zi,uv=br,tf=uv.assert;function jt(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}var lv=jt;jt.fromPublic=function(e,r,i){return r instanceof jt?r:new jt(e,{pub:r,pubEnc:i})};jt.fromPrivate=function(e,r,i){return r instanceof jt?r:new jt(e,{priv:r,privEnc:i})};jt.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"}};jt.prototype.getPublic=function(e,r){return typeof e=="string"&&(r=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),r?this.pub.encode(r,e):this.pub};jt.prototype.getPrivate=function(e){return e==="hex"?this.priv.toString(16,2):this.priv};jt.prototype._importPrivate=function(e,r){this.priv=new hv(e,r||16),this.priv=this.priv.umod(this.ec.curve.n)};jt.prototype._importPublic=function(e,r){if(e.x||e.y){this.ec.curve.type==="mont"?tf(e.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&tf(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,r)};jt.prototype.derive=function(e){return e.validate()||tf(e.validate(),"public point not validated"),e.mul(this.priv).getX()};jt.prototype.sign=function(e,r,i){return this.ec.sign(e,this,r,i)};jt.prototype.verify=function(e,r,i){return this.ec.verify(e,r,this,void 0,i)};jt.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var sa=zi,Vf=br,dv=Vf.assert;function Pa(t,e){if(t instanceof Pa)return t;this._importDER(t,e)||(dv(t.r&&t.s,"Signature without r or s"),this.r=new sa(t.r,16),this.s=new sa(t.s,16),t.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}var pv=Pa;function gv(){this.place=0}function dc(t,e){var r=t[e.place++];if(!(r&128))return r;var i=r&15;if(i===0||i>4||t[e.place]===0)return!1;for(var n=0,s=0,o=e.place;s<i;s++,o++)n<<=8,n|=t[o],n>>>=0;return n<=127?!1:(e.place=o,n)}function eu(t){for(var e=0,r=t.length-1;!t[e]&&!(t[e+1]&128)&&e<r;)e++;return e===0?t:t.slice(e)}Pa.prototype._importDER=function(e,r){e=Vf.toArray(e,r);var i=new gv;if(e[i.place++]!==48)return!1;var n=dc(e,i);if(n===!1||n+i.place!==e.length||e[i.place++]!==2)return!1;var s=dc(e,i);if(s===!1||e[i.place]&128)return!1;var o=e.slice(i.place,s+i.place);if(i.place+=s,e[i.place++]!==2)return!1;var a=dc(e,i);if(a===!1||e.length!==a+i.place||e[i.place]&128)return!1;var h=e.slice(i.place,a+i.place);if(o[0]===0)if(o[1]&128)o=o.slice(1);else return!1;if(h[0]===0)if(h[1]&128)h=h.slice(1);else return!1;return this.r=new sa(o),this.s=new sa(h),this.recoveryParam=null,!0};function pc(t,e){if(e<128){t.push(e);return}var r=1+(Math.log(e)/Math.LN2>>>3);for(t.push(r|128);--r;)t.push(e>>>(r<<3)&255);t.push(e)}Pa.prototype.toDER=function(e){var r=this.r.toArray(),i=this.s.toArray();for(r[0]&128&&(r=[0].concat(r)),i[0]&128&&(i=[0].concat(i)),r=eu(r),i=eu(i);!i[0]&&!(i[1]&128);)i=i.slice(1);var n=[2];pc(n,r.length),n=n.concat(r),n.push(2),pc(n,i.length);var s=n.concat(i),o=[48];return pc(o,s.length),o=o.concat(s),Vf.encode(o,e)};var qr=zi,sd=fv,bv=br,gc=Ta,vv=U0,mn=bv.assert,Wf=lv,Ba=pv;function Cr(t){if(!(this instanceof Cr))return new Cr(t);typeof t=="string"&&(mn(Object.prototype.hasOwnProperty.call(gc,t),"Unknown curve "+t),t=gc[t]),t instanceof gc.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}var mv=Cr;Cr.prototype.keyPair=function(e){return new Wf(this,e)};Cr.prototype.keyFromPrivate=function(e,r){return Wf.fromPrivate(this,e,r)};Cr.prototype.keyFromPublic=function(e,r){return Wf.fromPublic(this,e,r)};Cr.prototype.genKeyPair=function(e){e||(e={});for(var r=new sd({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||vv(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),i=this.n.byteLength(),n=this.n.sub(new qr(2));;){var s=new qr(r.generate(i));if(!(s.cmp(n)>0))return s.iaddn(1),this.keyFromPrivate(s)}};Cr.prototype._truncateToN=function(e,r,i){var n;if(qr.isBN(e)||typeof e=="number")e=new qr(e,16),n=e.byteLength();else if(typeof e=="object")n=e.length,e=new qr(e,16);else{var s=e.toString();n=s.length+1>>>1,e=new qr(s,16)}typeof i!="number"&&(i=n*8);var o=i-this.n.bitLength();return o>0&&(e=e.ushrn(o)),!r&&e.cmp(this.n)>=0?e.sub(this.n):e};Cr.prototype.sign=function(e,r,i,n){if(typeof i=="object"&&(n=i,i=null),n||(n={}),typeof e!="string"&&typeof e!="number"&&!qr.isBN(e)){mn(typeof e=="object"&&e&&typeof e.length=="number","Expected message to be an array-like, a hex string, or a BN instance"),mn(e.length>>>0===e.length);for(var s=0;s<e.length;s++)mn((e[s]&255)===e[s])}r=this.keyFromPrivate(r,i),e=this._truncateToN(e,!1,n.msgBitLength),mn(!e.isNeg(),"Can not sign a negative message");var o=this.n.byteLength(),a=r.getPrivate().toArray("be",o),h=e.toArray("be",o);mn(new qr(h).eq(e),"Can not sign message");for(var f=new sd({hash:this.hash,entropy:a,nonce:h,pers:n.pers,persEnc:n.persEnc||"utf8"}),p=this.n.sub(new qr(1)),v=0;;v++){var x=n.k?n.k(v):new qr(f.generate(this.n.byteLength()));if(x=this._truncateToN(x,!0),!(x.cmpn(1)<=0||x.cmp(p)>=0)){var E=this.g.mul(x);if(!E.isInfinity()){var D=E.getX(),B=D.umod(this.n);if(B.cmpn(0)!==0){var F=x.invm(this.n).mul(B.mul(r.getPrivate()).iadd(e));if(F=F.umod(this.n),F.cmpn(0)!==0){var j=(E.getY().isOdd()?1:0)|(D.cmp(B)!==0?2:0);return n.canonical&&F.cmp(this.nh)>0&&(F=this.n.sub(F),j^=1),new Ba({r:B,s:F,recoveryParam:j})}}}}}};Cr.prototype.verify=function(e,r,i,n,s){s||(s={}),e=this._truncateToN(e,!1,s.msgBitLength),i=this.keyFromPublic(i,n),r=new Ba(r,"hex");var o=r.r,a=r.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0||a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var h=a.invm(this.n),f=h.mul(e).umod(this.n),p=h.mul(o).umod(this.n),v;return this.curve._maxwellTrick?(v=this.g.jmulAdd(f,i.getPublic(),p),v.isInfinity()?!1:v.eqXToP(o)):(v=this.g.mulAdd(f,i.getPublic(),p),v.isInfinity()?!1:v.getX().umod(this.n).cmp(o)===0)};Cr.prototype.recoverPubKey=function(t,e,r,i){mn((3&r)===r,"The recovery param is more than two bits"),e=new Ba(e,i);var n=this.n,s=new qr(t),o=e.r,a=e.s,h=r&1,f=r>>1;if(o.cmp(this.curve.p.umod(this.curve.n))>=0&&f)throw new Error("Unable to find sencond key candinate");f?o=this.curve.pointFromX(o.add(this.curve.n),h):o=this.curve.pointFromX(o,h);var p=e.r.invm(n),v=n.sub(s).mul(p).umod(n),x=a.mul(p).umod(n);return this.g.mulAdd(v,o,x)};Cr.prototype.getKeyRecoveryParam=function(t,e,r,i){if(e=new Ba(e,i),e.recoveryParam!==null)return e.recoveryParam;for(var n=0;n<4;n++){var s;try{s=this.recoverPubKey(t,e,n)}catch{continue}if(s.eq(r))return n}throw new Error("Unable to find valid recovery factor")};var po=br,od=po.assert,tu=po.parseBytes,vs=po.cachedProperty;function Nt(t,e){this.eddsa=t,this._secret=tu(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=tu(e.pub)}Nt.fromPublic=function(e,r){return r instanceof Nt?r:new Nt(e,{pub:r})};Nt.fromSecret=function(e,r){return r instanceof Nt?r:new Nt(e,{secret:r})};Nt.prototype.secret=function(){return this._secret};vs(Nt,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())});vs(Nt,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});vs(Nt,"privBytes",function(){var e=this.eddsa,r=this.hash(),i=e.encodingLength-1,n=r.slice(0,e.encodingLength);return n[0]&=248,n[i]&=127,n[i]|=64,n});vs(Nt,"priv",function(){return this.eddsa.decodeInt(this.privBytes())});vs(Nt,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()});vs(Nt,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)});Nt.prototype.sign=function(e){return od(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)};Nt.prototype.verify=function(e,r){return this.eddsa.verify(e,r,this)};Nt.prototype.getSecret=function(e){return od(this._secret,"KeyPair is public only"),po.encode(this.secret(),e)};Nt.prototype.getPublic=function(e){return po.encode(this.pubBytes(),e)};var yv=Nt,wv=zi,Fa=br,ru=Fa.assert,La=Fa.cachedProperty,_v=Fa.parseBytes;function Tn(t,e){this.eddsa=t,typeof e!="object"&&(e=_v(e)),Array.isArray(e)&&(ru(e.length===t.encodingLength*2,"Signature has invalid size"),e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),ru(e.R&&e.S,"Signature without R or S"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof wv&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}La(Tn,"S",function(){return this.eddsa.decodeInt(this.Sencoded())});La(Tn,"R",function(){return this.eddsa.decodePoint(this.Rencoded())});La(Tn,"Rencoded",function(){return this.eddsa.encodePoint(this.R())});La(Tn,"Sencoded",function(){return this.eddsa.encodeInt(this.S())});Tn.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};Tn.prototype.toHex=function(){return Fa.encode(this.toBytes(),"hex").toUpperCase()};var Ev=Tn,Av=Ra,xv=Ta,ts=br,Sv=ts.assert,ad=ts.parseBytes,cd=yv,iu=Ev;function fr(t){if(Sv(t==="ed25519","only tested with ed25519 so far"),!(this instanceof fr))return new fr(t);t=xv[t].curve,this.curve=t,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=Av.sha512}var Mv=fr;fr.prototype.sign=function(e,r){e=ad(e);var i=this.keyFromSecret(r),n=this.hashInt(i.messagePrefix(),e),s=this.g.mul(n),o=this.encodePoint(s),a=this.hashInt(o,i.pubBytes(),e).mul(i.priv()),h=n.add(a).umod(this.curve.n);return this.makeSignature({R:s,S:h,Rencoded:o})};fr.prototype.verify=function(e,r,i){if(e=ad(e),r=this.makeSignature(r),r.S().gte(r.eddsa.curve.n)||r.S().isNeg())return!1;var n=this.keyFromPublic(i),s=this.hashInt(r.Rencoded(),n.pubBytes(),e),o=this.g.mul(r.S()),a=r.R().add(n.pub().mul(s));return a.eq(o)};fr.prototype.hashInt=function(){for(var e=this.hash(),r=0;r<arguments.length;r++)e.update(arguments[r]);return ts.intFromLE(e.digest()).umod(this.curve.n)};fr.prototype.keyFromPublic=function(e){return cd.fromPublic(this,e)};fr.prototype.keyFromSecret=function(e){return cd.fromSecret(this,e)};fr.prototype.makeSignature=function(e){return e instanceof iu?e:new iu(this,e)};fr.prototype.encodePoint=function(e){var r=e.getY().toArray("le",this.encodingLength);return r[this.encodingLength-1]|=e.getX().isOdd()?128:0,r};fr.prototype.decodePoint=function(e){e=ts.parseBytes(e);var r=e.length-1,i=e.slice(0,r).concat(e[r]&-129),n=(e[r]&128)!==0,s=ts.intFromLE(i);return this.curve.pointFromY(s,n)};fr.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)};fr.prototype.decodeInt=function(e){return ts.intFromLE(e)};fr.prototype.isPoint=function(e){return e instanceof this.pointClass};(function(t){var e=t;e.version=S2.version,e.utils=br,e.rand=U0,e.curve=jf,e.curves=Ta,e.ec=mv,e.eddsa=Mv})(F0);var Gf={},ft={};Object.defineProperty(ft,"__esModule",{value:!0});var fd=ft.getLocalStorage=wd=ft.getLocalStorageOrThrow=yd=ft.getCrypto=md=ft.getCryptoOrThrow=vd=ft.getLocation=bd=ft.getLocationOrThrow=gd=ft.getNavigator=pd=ft.getNavigatorOrThrow=dd=ft.getDocument=ld=ft.getDocumentOrThrow=ud=ft.getFromWindowOrThrow=hd=ft.getFromWindow=void 0;function Rn(t){let e;return typeof window<"u"&&typeof window[t]<"u"&&(e=window[t]),e}var hd=ft.getFromWindow=Rn;function ms(t){const e=Rn(t);if(!e)throw new Error(`${t} is not defined in Window`);return e}var ud=ft.getFromWindowOrThrow=ms;function Iv(){return ms("document")}var ld=ft.getDocumentOrThrow=Iv;function Dv(){return Rn("document")}var dd=ft.getDocument=Dv;function Cv(){return ms("navigator")}var pd=ft.getNavigatorOrThrow=Cv;function Nv(){return Rn("navigator")}var gd=ft.getNavigator=Nv;function Tv(){return ms("location")}var bd=ft.getLocationOrThrow=Tv;function Rv(){return Rn("location")}var vd=ft.getLocation=Rv;function Ov(){return ms("crypto")}var md=ft.getCryptoOrThrow=Ov;function Pv(){return Rn("crypto")}var yd=ft.getCrypto=Pv;function Bv(){return ms("localStorage")}var wd=ft.getLocalStorageOrThrow=Bv;function Fv(){return Rn("localStorage")}fd=ft.getLocalStorage=Fv;Object.defineProperty(Gf,"__esModule",{value:!0});var _d=Gf.getWindowMetadata=void 0;const nu=ft;function Lv(){let t,e;try{t=nu.getDocumentOrThrow(),e=nu.getLocationOrThrow()}catch{return null}function r(){const v=t.getElementsByTagName("link"),x=[];for(let E=0;E<v.length;E++){const D=v[E],B=D.getAttribute("rel");if(B&&B.toLowerCase().indexOf("icon")>-1){const F=D.getAttribute("href");if(F)if(F.toLowerCase().indexOf("https:")===-1&&F.toLowerCase().indexOf("http:")===-1&&F.indexOf("//")!==0){let j=e.protocol+"//"+e.host;if(F.indexOf("/")===0)j+=F;else{const R=e.pathname.split("/");R.pop();const K=R.join("/");j+=K+"/"+F}x.push(j)}else if(F.indexOf("//")===0){const j=e.protocol+F;x.push(j)}else x.push(F)}}return x}function i(...v){const x=t.getElementsByTagName("meta");for(let E=0;E<x.length;E++){const D=x[E],B=["itemprop","property","name"].map(F=>D.getAttribute(F)).filter(F=>F?v.includes(F):!1);if(B.length&&B){const F=D.getAttribute("content");if(F)return F}}return""}function n(){let v=i("name","og:site_name","og:title","twitter:title");return v||(v=t.title),v}function s(){return i("description","og:description","twitter:description","keywords")}const o=n(),a=s(),h=e.origin,f=r();return{description:a,url:h,icons:f,name:o}}_d=Gf.getWindowMetadata=Lv;var Uv=function(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;for(var i=Array(t),n=0,e=0;e<r;e++)for(var s=arguments[e],o=0,a=s.length;o<a;o++,n++)i[n]=s[o];return i},kv=function(){function t(e,r,i){this.name=e,this.version=r,this.os=i,this.type="browser"}return t}(),$v=function(){function t(e){this.version=e,this.type="node",this.name="node",this.os=process.platform}return t}(),qv=function(){function t(e,r,i,n){this.name=e,this.version=r,this.os=i,this.bot=n,this.type="bot-device"}return t}(),zv=function(){function t(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return t}(),Kv=function(){function t(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return t}(),jv=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,Hv=/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,su=3,Vv=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FBAV\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["searchbot",jv]],ou=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function Wv(t){return t?au(t):typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new Kv:typeof navigator<"u"?au(navigator.userAgent):Jv()}function Gv(t){return t!==""&&Vv.reduce(function(e,r){var i=r[0],n=r[1];if(e)return e;var s=n.exec(t);return!!s&&[i,s]},!1)}function au(t){var e=Gv(t);if(!e)return null;var r=e[0],i=e[1];if(r==="searchbot")return new zv;var n=i[1]&&i[1].split(/[._]/).slice(0,3);n?n.length<su&&(n=Uv(n,Qv(su-n.length))):n=[];var s=n.join("."),o=Yv(t),a=Hv.exec(t);return a&&a[1]?new qv(r,s,o,a[1]):new kv(r,s,o)}function Yv(t){for(var e=0,r=ou.length;e<r;e++){var i=ou[e],n=i[0],s=i[1],o=s.exec(t);if(o)return n}return null}function Jv(){var t=typeof process<"u"&&process.version;return t?new $v(process.version.slice(1)):null}function Qv(t){for(var e=[],r=0;r<t;r++)e.push("0");return e}function Yf(t){return Wv(t)}function Ua(){const t=Yf();return t&&t.os?t.os:void 0}function Ed(){const t=Ua();return t?t.toLowerCase().includes("android"):!1}function Ad(){const t=Ua();return t?t.toLowerCase().includes("ios")||t.toLowerCase().includes("mac")&&navigator.maxTouchPoints>1:!1}function Xv(){return Ua()?Ed()||Ad():!1}function xd(){const t=Yf();return t&&t.name?t.name.toLowerCase()==="node":!1}function Zv(){return!xd()&&!!Sd()}const em=hd,tm=ud,rm=ld,im=dd,nm=pd,Sd=gd,sm=bd,om=vd,am=md,cm=yd,fm=wd,ka=fd;function hm(){return _d()}function um(t){if(typeof t!="string")throw new Error(`Cannot safe json parse value of type ${typeof t}`);try{return JSON.parse(t)}catch{return t}}function lm(t){return typeof t=="string"?t:JSON.stringify(t)}const Md=um,Id=lm;function Dd(t,e){const r=Id(e),i=ka();i&&i.setItem(t,r)}function dm(t){let e=null,r=null;const i=ka();return i&&(r=i.getItem(t)),e=r&&Md(r),e}function pm(t){const e=ka();e&&e.removeItem(t)}const Cd="WALLETCONNECT_DEEPLINK_CHOICE";function gm(t,e){const r=encodeURIComponent(t);return e.universalLink?`${e.universalLink}/wc?uri=${r}`:e.deepLink?`${e.deepLink}${e.deepLink.endsWith(":")?"//":"/"}wc?uri=${r}`:""}function bm(t){const e=t.href.split("?")[0];Dd(Cd,Object.assign(Object.assign({},t),{href:e}))}function Nd(t,e){return t.filter(r=>r.name.toLowerCase().includes(e.toLowerCase()))[0]}function vm(t,e){let r=t;return e&&(r=e.map(i=>Nd(t,i)).filter(Boolean)),r}const Td="https://registry.walletconnect.com";function mm(){return Td+"/api/v2/wallets"}function ym(){return Td+"/api/v2/dapps"}function Rd(t,e="mobile"){var r;return{name:t.name||"",shortName:t.metadata.shortName||"",color:t.metadata.colors.primary||"",logo:(r=t.image_url.sm)!==null&&r!==void 0?r:"",universalLink:t[e].universal||"",deepLink:t[e].native||""}}function wm(t,e="mobile"){return Object.values(t).filter(r=>!!r[e].universal||!!r[e].native).map(r=>Rd(r,e))}const _m=Object.freeze(Object.defineProperty({__proto__:null,detectEnv:Yf,detectOS:Ua,formatIOSMobile:gm,formatMobileRegistry:wm,formatMobileRegistryEntry:Rd,getClientMeta:hm,getCrypto:cm,getCryptoOrThrow:am,getDappRegistryUrl:ym,getDocument:im,getDocumentOrThrow:rm,getFromWindow:em,getFromWindowOrThrow:tm,getLocal:dm,getLocalStorage:ka,getLocalStorageOrThrow:fm,getLocation:om,getLocationOrThrow:sm,getMobileLinkRegistry:vm,getMobileRegistryEntry:Nd,getNavigator:Sd,getNavigatorOrThrow:nm,getWalletRegistryUrl:mm,isAndroid:Ed,isBrowser:Zv,isIOS:Ad,isMobile:Xv,isNode:xd,mobileLinkChoiceKey:Cd,removeLocal:pm,safeJsonParse:Md,safeJsonStringify:Id,saveMobileLinkInfo:bm,setLocal:Dd},Symbol.toStringTag,{value:"Module"})),Em=Ma(_m);var go={},Am=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},Od={},on={},xm={}.toString,Jf=Array.isArray||function(t){return xm.call(t)=="[object Array]"},Sm=Jf;function Mm(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},t.foo()===42}catch{return!1}}et.TYPED_ARRAY_SUPPORT=Mm();var cu=et.TYPED_ARRAY_SUPPORT?2147483647:1073741823;function et(t,e,r){return!et.TYPED_ARRAY_SUPPORT&&!(this instanceof et)?new et(t,e,r):typeof t=="number"?Pd(this,t):Om(this,t,e,r)}et.TYPED_ARRAY_SUPPORT&&(et.prototype.__proto__=Uint8Array.prototype,et.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&et[Symbol.species]===et&&Object.defineProperty(et,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}));function Qf(t){if(t>=cu)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+cu.toString(16)+" bytes");return t|0}function Im(t){return t!==t}function rs(t,e){var r;return et.TYPED_ARRAY_SUPPORT?(r=new Uint8Array(e),r.__proto__=et.prototype):(r=t,r===null&&(r=new et(e)),r.length=e),r}function Pd(t,e){var r=rs(t,e<0?0:Qf(e)|0);if(!et.TYPED_ARRAY_SUPPORT)for(var i=0;i<e;++i)r[i]=0;return r}function Dm(t,e){var r=Fd(e)|0,i=rs(t,r),n=i.write(e);return n!==r&&(i=i.slice(0,n)),i}function rf(t,e){for(var r=e.length<0?0:Qf(e.length)|0,i=rs(t,r),n=0;n<r;n+=1)i[n]=e[n]&255;return i}function Cm(t,e,r,i){if(r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(i||0))throw new RangeError("'length' is out of bounds");var n;return r===void 0&&i===void 0?n=new Uint8Array(e):i===void 0?n=new Uint8Array(e,r):n=new Uint8Array(e,r,i),et.TYPED_ARRAY_SUPPORT?n.__proto__=et.prototype:n=rf(t,n),n}function Nm(t,e){if(et.isBuffer(e)){var r=Qf(e.length)|0,i=rs(t,r);return i.length===0||e.copy(i,0,0,r),i}if(e){if(typeof ArrayBuffer<"u"&&e.buffer instanceof ArrayBuffer||"length"in e)return typeof e.length!="number"||Im(e.length)?rs(t,0):rf(t,e);if(e.type==="Buffer"&&Array.isArray(e.data))return rf(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function Bd(t,e){e=e||1/0;for(var r,i=t.length,n=null,s=[],o=0;o<i;++o){if(r=t.charCodeAt(o),r>55295&&r<57344){if(!n){if(r>56319){(e-=3)>-1&&s.push(239,191,189);continue}else if(o+1===i){(e-=3)>-1&&s.push(239,191,189);continue}n=r;continue}if(r<56320){(e-=3)>-1&&s.push(239,191,189),n=r;continue}r=(n-55296<<10|r-56320)+65536}else n&&(e-=3)>-1&&s.push(239,191,189);if(n=null,r<128){if((e-=1)<0)break;s.push(r)}else if(r<2048){if((e-=2)<0)break;s.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;s.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return s}function Fd(t){if(et.isBuffer(t))return t.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;typeof t!="string"&&(t=""+t);var e=t.length;return e===0?0:Bd(t).length}function Tm(t,e,r,i){for(var n=0;n<i&&!(n+r>=e.length||n>=t.length);++n)e[n+r]=t[n];return n}function Rm(t,e,r,i){return Tm(Bd(e,t.length-r),t,r,i)}function Om(t,e,r,i){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer?Cm(t,e,r,i):typeof e=="string"?Dm(t,e):Nm(t,e)}et.prototype.write=function(e,r,i){r===void 0?(i=this.length,r=0):i===void 0&&typeof r=="string"?(i=this.length,r=0):isFinite(r)&&(r=r|0,isFinite(i)?i=i|0:i=void 0);var n=this.length-r;if((i===void 0||i>n)&&(i=n),e.length>0&&(i<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");return Rm(this,e,r,i)};et.prototype.slice=function(e,r){var i=this.length;e=~~e,r=r===void 0?i:~~r,e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),r<e&&(r=e);var n;if(et.TYPED_ARRAY_SUPPORT)n=this.subarray(e,r),n.__proto__=et.prototype;else{var s=r-e;n=new et(s,void 0);for(var o=0;o<s;++o)n[o]=this[o+e]}return n};et.prototype.copy=function(e,r,i,n){if(i||(i=0),!n&&n!==0&&(n=this.length),r>=e.length&&(r=e.length),r||(r=0),n>0&&n<i&&(n=i),n===i||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-r<n-i&&(n=e.length-r+i);var s=n-i,o;if(this===e&&i<r&&r<n)for(o=s-1;o>=0;--o)e[o+r]=this[o+i];else if(s<1e3||!et.TYPED_ARRAY_SUPPORT)for(o=0;o<s;++o)e[o+r]=this[o+i];else Uint8Array.prototype.set.call(e,this.subarray(i,i+s),r);return s};et.prototype.fill=function(e,r,i){if(typeof e=="string"){if(typeof r=="string"?(r=0,i=this.length):typeof i=="string"&&(i=this.length),e.length===1){var n=e.charCodeAt(0);n<256&&(e=n)}}else typeof e=="number"&&(e=e&255);if(r<0||this.length<r||this.length<i)throw new RangeError("Out of range index");if(i<=r)return this;r=r>>>0,i=i===void 0?this.length:i>>>0,e||(e=0);var s;if(typeof e=="number")for(s=r;s<i;++s)this[s]=e;else{var o=et.isBuffer(e)?e:new et(e),a=o.length;for(s=0;s<i-r;++s)this[s+r]=o[s%a]}return this};et.concat=function(e,r){if(!Sm(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return rs(null,0);var i;if(r===void 0)for(r=0,i=0;i<e.length;++i)r+=e[i].length;var n=Pd(null,r),s=0;for(i=0;i<e.length;++i){var o=e[i];if(!et.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,s),s+=o.length}return n};et.byteLength=Fd;et.prototype._isBuffer=!0;et.isBuffer=function(e){return!!(e!=null&&e._isBuffer)};on.alloc=function(t){var e=new et(t);return e.fill(0),e};on.from=function(t){return new et(t)};var vr={},Xf,Pm=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];vr.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17};vr.getSymbolTotalCodewords=function(e){return Pm[e]};vr.getBCHDigit=function(t){for(var e=0;t!==0;)e++,t>>>=1;return e};vr.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');Xf=e};vr.isKanjiModeEnabled=function(){return typeof Xf<"u"};vr.toSJIS=function(e){return Xf(e)};var $a={};(function(t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2};function e(r){if(typeof r!="string")throw new Error("Param is not a string");var i=r.toLowerCase();switch(i){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+r)}}t.isValid=function(i){return i&&typeof i.bit<"u"&&i.bit>=0&&i.bit<4},t.from=function(i,n){if(t.isValid(i))return i;try{return e(i)}catch{return n}}})($a);function Ld(){this.buffer=[],this.length=0}Ld.prototype={get:function(t){var e=Math.floor(t/8);return(this.buffer[e]>>>7-t%8&1)===1},put:function(t,e){for(var r=0;r<e;r++)this.putBit((t>>>e-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var Bm=Ld,fu=on;function bo(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=fu.alloc(t*t),this.reservedBit=fu.alloc(t*t)}bo.prototype.set=function(t,e,r,i){var n=t*this.size+e;this.data[n]=r,i&&(this.reservedBit[n]=!0)};bo.prototype.get=function(t,e){return this.data[t*this.size+e]};bo.prototype.xor=function(t,e,r){this.data[t*this.size+e]^=r};bo.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]};var Fm=bo,Ud={};(function(t){var e=vr.getSymbolSize;t.getRowColCoords=function(i){if(i===1)return[];for(var n=Math.floor(i/7)+2,s=e(i),o=s===145?26:Math.ceil((s-13)/(2*n-2))*2,a=[s-7],h=1;h<n-1;h++)a[h]=a[h-1]-o;return a.push(6),a.reverse()},t.getPositions=function(i){for(var n=[],s=t.getRowColCoords(i),o=s.length,a=0;a<o;a++)for(var h=0;h<o;h++)a===0&&h===0||a===0&&h===o-1||a===o-1&&h===0||n.push([s[a],s[h]]);return n}})(Ud);var kd={},Lm=vr.getSymbolSize,hu=7;kd.getPositions=function(e){var r=Lm(e);return[[0,0],[r-hu,0],[0,r-hu]]};var $d={};(function(t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var e={N1:3,N2:3,N3:40,N4:10};t.isValid=function(n){return n!=null&&n!==""&&!isNaN(n)&&n>=0&&n<=7},t.from=function(n){return t.isValid(n)?parseInt(n,10):void 0},t.getPenaltyN1=function(n){for(var s=n.size,o=0,a=0,h=0,f=null,p=null,v=0;v<s;v++){a=h=0,f=p=null;for(var x=0;x<s;x++){var E=n.get(v,x);E===f?a++:(a>=5&&(o+=e.N1+(a-5)),f=E,a=1),E=n.get(x,v),E===p?h++:(h>=5&&(o+=e.N1+(h-5)),p=E,h=1)}a>=5&&(o+=e.N1+(a-5)),h>=5&&(o+=e.N1+(h-5))}return o},t.getPenaltyN2=function(n){for(var s=n.size,o=0,a=0;a<s-1;a++)for(var h=0;h<s-1;h++){var f=n.get(a,h)+n.get(a,h+1)+n.get(a+1,h)+n.get(a+1,h+1);(f===4||f===0)&&o++}return o*e.N2},t.getPenaltyN3=function(n){for(var s=n.size,o=0,a=0,h=0,f=0;f<s;f++){a=h=0;for(var p=0;p<s;p++)a=a<<1&2047|n.get(f,p),p>=10&&(a===1488||a===93)&&o++,h=h<<1&2047|n.get(p,f),p>=10&&(h===1488||h===93)&&o++}return o*e.N3},t.getPenaltyN4=function(n){for(var s=0,o=n.data.length,a=0;a<o;a++)s+=n.data[a];var h=Math.abs(Math.ceil(s*100/o/5)-10);return h*e.N4};function r(i,n,s){switch(i){case t.Patterns.PATTERN000:return(n+s)%2===0;case t.Patterns.PATTERN001:return n%2===0;case t.Patterns.PATTERN010:return s%3===0;case t.Patterns.PATTERN011:return(n+s)%3===0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(s/3))%2===0;case t.Patterns.PATTERN101:return n*s%2+n*s%3===0;case t.Patterns.PATTERN110:return(n*s%2+n*s%3)%2===0;case t.Patterns.PATTERN111:return(n*s%3+(n+s)%2)%2===0;default:throw new Error("bad maskPattern:"+i)}}t.applyMask=function(n,s){for(var o=s.size,a=0;a<o;a++)for(var h=0;h<o;h++)s.isReserved(h,a)||s.xor(h,a,r(n,h,a))},t.getBestMask=function(n,s){for(var o=Object.keys(t.Patterns).length,a=0,h=1/0,f=0;f<o;f++){s(f),t.applyMask(f,n);var p=t.getPenaltyN1(n)+t.getPenaltyN2(n)+t.getPenaltyN3(n)+t.getPenaltyN4(n);t.applyMask(f,n),p<h&&(h=p,a=f)}return a}})($d);var qa={},en=$a,Fo=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],Lo=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];qa.getBlocksCount=function(e,r){switch(r){case en.L:return Fo[(e-1)*4+0];case en.M:return Fo[(e-1)*4+1];case en.Q:return Fo[(e-1)*4+2];case en.H:return Fo[(e-1)*4+3];default:return}};qa.getTotalCodewordsCount=function(e,r){switch(r){case en.L:return Lo[(e-1)*4+0];case en.M:return Lo[(e-1)*4+1];case en.Q:return Lo[(e-1)*4+2];case en.H:return Lo[(e-1)*4+3];default:return}};var qd={},za={},zd=on,Ws=zd.alloc(512),oa=zd.alloc(256);(function(){for(var e=1,r=0;r<255;r++)Ws[r]=e,oa[e]=r,e<<=1,e&256&&(e^=285);for(r=255;r<512;r++)Ws[r]=Ws[r-255]})();za.log=function(e){if(e<1)throw new Error("log("+e+")");return oa[e]};za.exp=function(e){return Ws[e]};za.mul=function(e,r){return e===0||r===0?0:Ws[oa[e]+oa[r]]};(function(t){var e=on,r=za;t.mul=function(n,s){for(var o=e.alloc(n.length+s.length-1),a=0;a<n.length;a++)for(var h=0;h<s.length;h++)o[a+h]^=r.mul(n[a],s[h]);return o},t.mod=function(n,s){for(var o=e.from(n);o.length-s.length>=0;){for(var a=o[0],h=0;h<s.length;h++)o[h]^=r.mul(s[h],a);for(var f=0;f<o.length&&o[f]===0;)f++;o=o.slice(f)}return o},t.generateECPolynomial=function(n){for(var s=e.from([1]),o=0;o<n;o++)s=t.mul(s,[1,r.exp(o)]);return s}})(qd);var Kd={};/*!
|
|
2
2
|
* The buffer module from node.js, for the browser.
|
|
3
3
|
*
|
|
4
4
|
* @author Feross Aboukhadijeh <https://feross.org>
|