(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[5],{"+2a4":function(t,e,r){"use strict";var n=r("MMxC"),i=r("Zcjx"),o=r("f1E4"),s=r("7BAe"),a=r("jbR1"),u=r("IuhT");n({target:"Set",proto:!0,real:!0,forced:i},{some:function(t){var e=o(this),r=a(e),n=s(t,arguments.length>1?arguments[1]:void 0,3);return u(r,(function(t){if(n(t,t,e))return u.stop()}),void 0,!1,!0).stopped}})},"+4le":function(t,e,r){r("UXQe")},"+GPJ":function(t,e,r){"use strict";var n=r("MMxC"),i=r("Zcjx"),o=r("29mP"),s=r("f1E4"),a=r("cT1L"),u=r("/dTS"),c=r("IuhT");n({target:"Set",proto:!0,real:!0,forced:i},{intersection:function(t){var e=s(this),r=new(u(e,o("Set"))),n=a(e.has),i=a(r.add);return c(t,(function(t){n.call(e,t)&&i.call(r,t)})),r}})},"+Hw1":function(t,e,r){var n=r("MMxC");n({target:"Math",stat:!0},{iaddh:function(t,e,r,n){var i=t>>>0,o=e>>>0,s=r>>>0;return o+(n>>>0)+((i&s|(i|s)&~(i+s>>>0))>>>31)|0}})},"+SQA":function(t,e,r){"use strict";var n=r("cT1L"),i=r("tSXo"),o=[].slice,s={},a=function(t,e,r){if(!(e in s)){for(var n=[],i=0;i1?arguments[1]:void 0)}})},"+rjg":function(t,e,r){"use strict";var n=r("m0kY"),i=r("FCfD");t.exports="".repeat||function(t){var e=String(i(this)),r="",o=n(t);if(o<0||o==1/0)throw RangeError("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(e+=e))1&o&&(r+=e);return r}},"+u1y":function(t,e,r){"use strict";var n=r("tny8"),i=r("eNh0"),o=r("cTDu"),s=r("oa35"),a=r("YfKC").f;n&&!("lastIndex"in[])&&(a(Array.prototype,"lastIndex",{configurable:!0,get:function(){var t=o(this),e=s(t.length);return 0==e?0:e-1}}),i("lastIndex"))},"+vfm":function(t,e,r){var n=r("tSXo"),i=r("g1ZG");t.exports=function(t,e,r){var o,s;return i&&"function"==typeof(o=e.constructor)&&o!==r&&n(s=o.prototype)&&s!==r.prototype&&i(t,s),t}},"/0sN":function(t,e,r){"use strict";var n=r("MMxC"),i=r("Zcjx"),o=r("f1E4"),s=r("PPXv"),a=r("IuhT");n({target:"Map",proto:!0,real:!0,forced:i},{keyOf:function(t){return a(s(o(this)),(function(e,r){if(r===t)return a.stop(e)}),void 0,!0,!0).result}})},"/7J2":function(t,e,r){"use strict";r.r(e),r.d(e,"LogLevel",(function(){return l})),r.d(e,"ErrorCode",(function(){return f})),r.d(e,"Logger",(function(){return p}));const n="logger/5.7.0";let i=!1,o=!1;const s={debug:1,default:2,info:2,warning:3,error:4,off:5};let a=s["default"],u=null;function c(){try{const t=[];if(["NFD","NFC","NFKD","NFKC"].forEach((e=>{try{if("test"!=="test".normalize(e))throw new Error("bad normalize")}catch(r){t.push(e)}})),t.length)throw new Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(t){return t.message}return null}const h=c();var l,f;(function(t){t["DEBUG"]="DEBUG",t["INFO"]="INFO",t["WARNING"]="WARNING",t["ERROR"]="ERROR",t["OFF"]="OFF"})(l||(l={})),function(t){t["UNKNOWN_ERROR"]="UNKNOWN_ERROR",t["NOT_IMPLEMENTED"]="NOT_IMPLEMENTED",t["UNSUPPORTED_OPERATION"]="UNSUPPORTED_OPERATION",t["NETWORK_ERROR"]="NETWORK_ERROR",t["SERVER_ERROR"]="SERVER_ERROR",t["TIMEOUT"]="TIMEOUT",t["BUFFER_OVERRUN"]="BUFFER_OVERRUN",t["NUMERIC_FAULT"]="NUMERIC_FAULT",t["MISSING_NEW"]="MISSING_NEW",t["INVALID_ARGUMENT"]="INVALID_ARGUMENT",t["MISSING_ARGUMENT"]="MISSING_ARGUMENT",t["UNEXPECTED_ARGUMENT"]="UNEXPECTED_ARGUMENT",t["CALL_EXCEPTION"]="CALL_EXCEPTION",t["INSUFFICIENT_FUNDS"]="INSUFFICIENT_FUNDS",t["NONCE_EXPIRED"]="NONCE_EXPIRED",t["REPLACEMENT_UNDERPRICED"]="REPLACEMENT_UNDERPRICED",t["UNPREDICTABLE_GAS_LIMIT"]="UNPREDICTABLE_GAS_LIMIT",t["TRANSACTION_REPLACED"]="TRANSACTION_REPLACED",t["ACTION_REJECTED"]="ACTION_REJECTED"}(f||(f={}));const d="0123456789abcdef";class p{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){const r=t.toLowerCase();null==s[r]&&this.throwArgumentError("invalid log level name","logLevel",t),a>s[r]||console.log.apply(console,e)}debug(...t){this._log(p.levels.DEBUG,t)}info(...t){this._log(p.levels.INFO,t)}warn(...t){this._log(p.levels.WARNING,t)}makeError(t,e,r){if(o)return this.makeError("censored error",e,{});e||(e=p.errors.UNKNOWN_ERROR),r||(r={});const n=[];Object.keys(r).forEach((t=>{const e=r[t];try{if(e instanceof Uint8Array){let r="";for(let t=0;t>4],r+=d[15&e[t]];n.push(t+"=Uint8Array(0x"+r+")")}else n.push(t+"="+JSON.stringify(e))}catch(a){n.push(t+"="+JSON.stringify(r[t].toString()))}})),n.push(`code=${e}`),n.push(`version=${this.version}`);const i=t;let s="";switch(e){case f.NUMERIC_FAULT:{s="NUMERIC_FAULT";const e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":s+="-"+e;break;case"negative-power":case"negative-width":s+="-unsupported";break;case"unbound-bitwise-result":s+="-unbound-result";break}break}case f.CALL_EXCEPTION:case f.INSUFFICIENT_FUNDS:case f.MISSING_NEW:case f.NONCE_EXPIRED:case f.REPLACEMENT_UNDERPRICED:case f.TRANSACTION_REPLACED:case f.UNPREDICTABLE_GAS_LIMIT:s=e;break}s&&(t+=" [ See: https://links.ethers.org/v5-errors-"+s+" ]"),n.length&&(t+=" ("+n.join(", ")+")");const a=new Error(t);return a.reason=i,a.code=e,Object.keys(r).forEach((function(t){a[t]=r[t]})),a}throwError(t,e,r){throw this.makeError(t,e,r)}throwArgumentError(t,e,r){return this.throwError(t,p.errors.INVALID_ARGUMENT,{argument:e,value:r})}assert(t,e,r,n){t||this.throwError(e,r,n)}assertArgument(t,e,r,n){t||this.throwArgumentError(e,r,n)}checkNormalize(t){null==t&&(t="platform missing String.prototype.normalize"),h&&this.throwError("platform missing String.prototype.normalize",p.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:h})}checkSafeUint53(t,e){"number"===typeof t&&(null==e&&(e="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(e,p.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(e,p.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,e,r){r=r?": "+r:"",te&&this.throwError("too many arguments"+r,p.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:e})}checkNew(t,e){t!==Object&&null!=t||this.throwError("missing new",p.errors.MISSING_NEW,{name:e.name})}checkAbstract(t,e){t===e?this.throwError("cannot instantiate abstract class "+JSON.stringify(e.name)+" directly; use a sub-class",p.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):t!==Object&&null!=t||this.throwError("missing new",p.errors.MISSING_NEW,{name:e.name})}static globalLogger(){return u||(u=new p(n)),u}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",p.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),i){if(!t)return;this.globalLogger().throwError("error censorship permanent",p.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}o=!!t,i=!!e}static setLogLevel(t){const e=s[t.toLowerCase()];null!=e?a=e:p.globalLogger().warn("invalid log level - "+t)}static from(t){return new p(t)}}p.errors=f,p.levels=l},"/R3g":function(t,e,r){var n=r("MMxC"),i=r("zTPR"),o=r("ls1J"),s=r("f1E4"),a=r("Acmb"),u=r("IuhT"),c=o.keys,h=o.toKey,l=function(t){var e=[];return u(t,e.push,e),e},f=function(t,e){var r=c(t,e),n=a(t);if(null===n)return r;var o=f(n,e);return o.length?r.length?l(new i(r.concat(o))):o:r};n({target:"Reflect",stat:!0},{getMetadataKeys:function(t){var e=arguments.length<2?void 0:h(arguments[1]);return f(s(t),e)}})},"/ab2":function(t,e,r){var n=r("iUdu"),i=r("QihY"),o=r("6F8h");function s(){return Object.keys(o)}e.createCipher=e.Cipher=n.createCipher,e.createCipheriv=e.Cipheriv=n.createCipheriv,e.createDecipher=e.Decipher=i.createDecipher,e.createDecipheriv=e.Decipheriv=i.createDecipheriv,e.listCiphers=e.getCiphers=s},"/dTS":function(t,e,r){var n=r("f1E4"),i=r("cT1L"),o=r("2kyd"),s=o("species");t.exports=function(t,e){var r,o=n(t).constructor;return void 0===o||void 0==(r=n(o)[s])?e:i(r)}},"/gva":function(t,e,r){"use strict";var n=r("MMxC"),i=r("ukPv"),o=r("kkxG"),s=r("NMFW"),a=r("a5mf"),u=r("IuhT"),c=r("igoe"),h=r("tSXo"),l=r("MVys"),f=r("GPrf"),d=r("kiNa"),p=r("+vfm");t.exports=function(t,e,r){var m=-1!==t.indexOf("Map"),g=-1!==t.indexOf("Weak"),v=m?"set":"add",b=i[t],y=b&&b.prototype,w=b,M={},_=function(t){var e=y[t];s(y,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(g&&!h(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return g&&!h(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(g&&!h(t))&&e.call(this,0===t?0:t)}:function(t,r){return e.call(this,0===t?0:t,r),this})};if(o(t,"function"!=typeof b||!(g||y.forEach&&!l((function(){(new b).entries().next()})))))w=r.getConstructor(e,t,m,v),a.REQUIRED=!0;else if(o(t,!0)){var E=new w,A=E[v](g?{}:-0,1)!=E,x=l((function(){E.has(1)})),O=f((function(t){new b(t)})),S=!g&&l((function(){var t=new b,e=5;while(e--)t[v](e,e);return!t.has(-0)}));O||(w=e((function(e,r){c(e,w,t);var n=p(new b,e,w);return void 0!=r&&u(r,n[v],n,m),n})),w.prototype=y,y.constructor=w),(x||S)&&(_("delete"),_("has"),m&&_("get")),(S||A)&&_(v),g&&y.clear&&delete y.clear}return M[t]=w,n({global:!0,forced:w!=b},M),d(w,t),g||r.setStrong(w,t,m),w}},"/m0q":function(t,e,r){"use strict";r.d(e,"b",(function(){return o})),r.d(e,"e",(function(){return s})),r.d(e,"a",(function(){return a})),r.d(e,"c",(function(){return u})),r.d(e,"d",(function(){return c}));var n=r("VJ7P"),i=r("UnNr");function o(t){return"string"===typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),Object(n["arrayify"])(t)}function s(t,e){t=String(t);while(t.length1?arguments[1]:void 0,3),i=new(c(e,o("Set"))),f=a(i.add);return l(r,(function(t){n(t,t,e)&&f.call(i,t)}),void 0,!1,!0),i}})},"/vMi":function(t,e,r){"use strict";var n=r("/gva"),i=r("uz3g");n("WeakSet",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),i)},"/wnW":function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));const n="random/5.7.0"},"/yC2":function(t,e,r){var n=r("tny8"),i=r("MVys"),o=r("8w+9");t.exports=!n&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0O5u":function(t,e,r){"use strict";var n=r("MMxC"),i=r("MVys"),o=r("Un+d"),s=r("tSXo"),a=r("cTDu"),u=r("oa35"),c=r("arQb"),h=r("nMuc"),l=r("jMDO"),f=r("2kyd"),d=r("hRxt"),p=f("isConcatSpreadable"),m=9007199254740991,g="Maximum allowed index exceeded",v=d>=51||!i((function(){var t=[];return t[p]=!1,t.concat()[0]!==t})),b=l("concat"),y=function(t){if(!s(t))return!1;var e=t[p];return void 0!==e?!!e:o(t)},w=!v||!b;n({target:"Array",proto:!0,forced:w},{concat:function(t){var e,r,n,i,o,s=a(this),l=h(s,0),f=0;for(e=-1,n=arguments.length;em)throw TypeError(g);for(r=0;r=m)throw TypeError(g);c(l,f++,o)}return l.length=f,l}})},"0Oss":function(t,e,r){(function(t){(function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var s;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{s="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:r(11).Buffer}catch(S){}function a(t,e){var r=t.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function u(t,e,r){var n=a(t,r);return r-1>=e&&(n|=a(t,r-1)<<4),n}function c(t,e,r,n){for(var i=0,o=Math.min(t.length,r),s=e;s=49?a-49+10:a>=17?a-17+10:a}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,r){if("number"===typeof t)return this._initNumber(t,e,r);if("object"===typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var i=0;"-"===t[0]&&(i++,this.negative=1),i=0;i-=3)s=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=s<>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=2)i=u(t,e,n)<=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else{var a=t.length-e;for(n=a%2===0?e+1:e;n=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8}this.strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,s=o%n,a=Math.min(o,o-s)+r,u=0,h=r;h1&&0===this.words[this.length-1])this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[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];function d(t){for(var e=new Array(t.bitLength()),r=0;r>>i}return e}function p(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],s=i*o,a=67108863&s,u=s/67108864|0;r.words[0]=a;for(var c=1;c>>26,l=67108863&u,f=Math.min(c,e.length-1),d=Math.max(0,c-t.length+1);d<=f;d++){var p=c-d|0;i=0|t.words[p],o=0|e.words[d],s=i*o+l,h+=s/67108864|0,l=67108863&s}r.words[c]=0|l,u=0|h}return 0!==u?r.words[c]=0|u:r.length--,r.strip()}o.prototype.toString=function(t,e){var r;if(t=t||10,e=0|e||1,16===t||"hex"===t){r="";for(var i=0,o=0,s=0;s>>24-i&16777215,r=0!==o||s!==this.length-1?h[6-u.length]+u+r:u+r,i+=2,i>=26&&(i-=26,s--)}0!==o&&(r=o.toString(16)+r);while(r.length%e!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var c=l[t],d=f[t];r="";var p=this.clone();p.negative=0;while(!p.isZero()){var m=p.modn(d).toString(t);p=p.idivn(d),r=p.isZero()?m+r:h[c-m.length]+m+r}this.isZero()&&(r="0"+r);while(r.length%e!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return n("undefined"!==typeof s),this.toArrayLike(s,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var s,a,u="le"===e,c=new t(o),h=this.clone();if(u){for(a=0;!h.isZero();a++)s=h.andln(255),h.iushrn(8),c[a]=s;for(;a=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0===(8191&e)&&(r+=13,e>>>=13),0===(127&e)&&(r+=7,e>>>=7),0===(15&e)&&(r+=4,e>>>=4),0===(3&e)&&(r+=2,e>>>=2),0===(1&e)&&r++,r},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;rt.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,s=0;s>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,d=0|s[1],p=8191&d,m=d>>>13,g=0|s[2],v=8191&g,b=g>>>13,y=0|s[3],w=8191&y,M=y>>>13,_=0|s[4],E=8191&_,A=_>>>13,x=0|s[5],O=8191&x,S=x>>>13,k=0|s[6],R=8191&k,T=k>>>13,C=0|s[7],I=8191&C,P=C>>>13,L=0|s[8],j=8191&L,N=L>>>13,B=0|s[9],D=8191&B,U=B>>>13,F=0|a[0],q=8191&F,G=F>>>13,V=0|a[1],z=8191&V,$=V>>>13,K=0|a[2],H=8191&K,W=K>>>13,Z=0|a[3],J=8191&Z,X=Z>>>13,Y=0|a[4],Q=8191&Y,tt=Y>>>13,et=0|a[5],rt=8191&et,nt=et>>>13,it=0|a[6],ot=8191&it,st=it>>>13,at=0|a[7],ut=8191&at,ct=at>>>13,ht=0|a[8],lt=8191&ht,ft=ht>>>13,dt=0|a[9],pt=8191&dt,mt=dt>>>13;r.negative=t.negative^e.negative,r.length=19,n=Math.imul(l,q),i=Math.imul(l,G),i=i+Math.imul(f,q)|0,o=Math.imul(f,G);var gt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(p,q),i=Math.imul(p,G),i=i+Math.imul(m,q)|0,o=Math.imul(m,G),n=n+Math.imul(l,z)|0,i=i+Math.imul(l,$)|0,i=i+Math.imul(f,z)|0,o=o+Math.imul(f,$)|0;var vt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(v,q),i=Math.imul(v,G),i=i+Math.imul(b,q)|0,o=Math.imul(b,G),n=n+Math.imul(p,z)|0,i=i+Math.imul(p,$)|0,i=i+Math.imul(m,z)|0,o=o+Math.imul(m,$)|0,n=n+Math.imul(l,H)|0,i=i+Math.imul(l,W)|0,i=i+Math.imul(f,H)|0,o=o+Math.imul(f,W)|0;var bt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(w,q),i=Math.imul(w,G),i=i+Math.imul(M,q)|0,o=Math.imul(M,G),n=n+Math.imul(v,z)|0,i=i+Math.imul(v,$)|0,i=i+Math.imul(b,z)|0,o=o+Math.imul(b,$)|0,n=n+Math.imul(p,H)|0,i=i+Math.imul(p,W)|0,i=i+Math.imul(m,H)|0,o=o+Math.imul(m,W)|0,n=n+Math.imul(l,J)|0,i=i+Math.imul(l,X)|0,i=i+Math.imul(f,J)|0,o=o+Math.imul(f,X)|0;var yt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(E,q),i=Math.imul(E,G),i=i+Math.imul(A,q)|0,o=Math.imul(A,G),n=n+Math.imul(w,z)|0,i=i+Math.imul(w,$)|0,i=i+Math.imul(M,z)|0,o=o+Math.imul(M,$)|0,n=n+Math.imul(v,H)|0,i=i+Math.imul(v,W)|0,i=i+Math.imul(b,H)|0,o=o+Math.imul(b,W)|0,n=n+Math.imul(p,J)|0,i=i+Math.imul(p,X)|0,i=i+Math.imul(m,J)|0,o=o+Math.imul(m,X)|0,n=n+Math.imul(l,Q)|0,i=i+Math.imul(l,tt)|0,i=i+Math.imul(f,Q)|0,o=o+Math.imul(f,tt)|0;var wt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(O,q),i=Math.imul(O,G),i=i+Math.imul(S,q)|0,o=Math.imul(S,G),n=n+Math.imul(E,z)|0,i=i+Math.imul(E,$)|0,i=i+Math.imul(A,z)|0,o=o+Math.imul(A,$)|0,n=n+Math.imul(w,H)|0,i=i+Math.imul(w,W)|0,i=i+Math.imul(M,H)|0,o=o+Math.imul(M,W)|0,n=n+Math.imul(v,J)|0,i=i+Math.imul(v,X)|0,i=i+Math.imul(b,J)|0,o=o+Math.imul(b,X)|0,n=n+Math.imul(p,Q)|0,i=i+Math.imul(p,tt)|0,i=i+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0,n=n+Math.imul(l,rt)|0,i=i+Math.imul(l,nt)|0,i=i+Math.imul(f,rt)|0,o=o+Math.imul(f,nt)|0;var Mt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(R,q),i=Math.imul(R,G),i=i+Math.imul(T,q)|0,o=Math.imul(T,G),n=n+Math.imul(O,z)|0,i=i+Math.imul(O,$)|0,i=i+Math.imul(S,z)|0,o=o+Math.imul(S,$)|0,n=n+Math.imul(E,H)|0,i=i+Math.imul(E,W)|0,i=i+Math.imul(A,H)|0,o=o+Math.imul(A,W)|0,n=n+Math.imul(w,J)|0,i=i+Math.imul(w,X)|0,i=i+Math.imul(M,J)|0,o=o+Math.imul(M,X)|0,n=n+Math.imul(v,Q)|0,i=i+Math.imul(v,tt)|0,i=i+Math.imul(b,Q)|0,o=o+Math.imul(b,tt)|0,n=n+Math.imul(p,rt)|0,i=i+Math.imul(p,nt)|0,i=i+Math.imul(m,rt)|0,o=o+Math.imul(m,nt)|0,n=n+Math.imul(l,ot)|0,i=i+Math.imul(l,st)|0,i=i+Math.imul(f,ot)|0,o=o+Math.imul(f,st)|0;var _t=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(I,q),i=Math.imul(I,G),i=i+Math.imul(P,q)|0,o=Math.imul(P,G),n=n+Math.imul(R,z)|0,i=i+Math.imul(R,$)|0,i=i+Math.imul(T,z)|0,o=o+Math.imul(T,$)|0,n=n+Math.imul(O,H)|0,i=i+Math.imul(O,W)|0,i=i+Math.imul(S,H)|0,o=o+Math.imul(S,W)|0,n=n+Math.imul(E,J)|0,i=i+Math.imul(E,X)|0,i=i+Math.imul(A,J)|0,o=o+Math.imul(A,X)|0,n=n+Math.imul(w,Q)|0,i=i+Math.imul(w,tt)|0,i=i+Math.imul(M,Q)|0,o=o+Math.imul(M,tt)|0,n=n+Math.imul(v,rt)|0,i=i+Math.imul(v,nt)|0,i=i+Math.imul(b,rt)|0,o=o+Math.imul(b,nt)|0,n=n+Math.imul(p,ot)|0,i=i+Math.imul(p,st)|0,i=i+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0,n=n+Math.imul(l,ut)|0,i=i+Math.imul(l,ct)|0,i=i+Math.imul(f,ut)|0,o=o+Math.imul(f,ct)|0;var Et=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(j,q),i=Math.imul(j,G),i=i+Math.imul(N,q)|0,o=Math.imul(N,G),n=n+Math.imul(I,z)|0,i=i+Math.imul(I,$)|0,i=i+Math.imul(P,z)|0,o=o+Math.imul(P,$)|0,n=n+Math.imul(R,H)|0,i=i+Math.imul(R,W)|0,i=i+Math.imul(T,H)|0,o=o+Math.imul(T,W)|0,n=n+Math.imul(O,J)|0,i=i+Math.imul(O,X)|0,i=i+Math.imul(S,J)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(E,Q)|0,i=i+Math.imul(E,tt)|0,i=i+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(w,rt)|0,i=i+Math.imul(w,nt)|0,i=i+Math.imul(M,rt)|0,o=o+Math.imul(M,nt)|0,n=n+Math.imul(v,ot)|0,i=i+Math.imul(v,st)|0,i=i+Math.imul(b,ot)|0,o=o+Math.imul(b,st)|0,n=n+Math.imul(p,ut)|0,i=i+Math.imul(p,ct)|0,i=i+Math.imul(m,ut)|0,o=o+Math.imul(m,ct)|0,n=n+Math.imul(l,lt)|0,i=i+Math.imul(l,ft)|0,i=i+Math.imul(f,lt)|0,o=o+Math.imul(f,ft)|0;var At=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(D,q),i=Math.imul(D,G),i=i+Math.imul(U,q)|0,o=Math.imul(U,G),n=n+Math.imul(j,z)|0,i=i+Math.imul(j,$)|0,i=i+Math.imul(N,z)|0,o=o+Math.imul(N,$)|0,n=n+Math.imul(I,H)|0,i=i+Math.imul(I,W)|0,i=i+Math.imul(P,H)|0,o=o+Math.imul(P,W)|0,n=n+Math.imul(R,J)|0,i=i+Math.imul(R,X)|0,i=i+Math.imul(T,J)|0,o=o+Math.imul(T,X)|0,n=n+Math.imul(O,Q)|0,i=i+Math.imul(O,tt)|0,i=i+Math.imul(S,Q)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(E,rt)|0,i=i+Math.imul(E,nt)|0,i=i+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(w,ot)|0,i=i+Math.imul(w,st)|0,i=i+Math.imul(M,ot)|0,o=o+Math.imul(M,st)|0,n=n+Math.imul(v,ut)|0,i=i+Math.imul(v,ct)|0,i=i+Math.imul(b,ut)|0,o=o+Math.imul(b,ct)|0,n=n+Math.imul(p,lt)|0,i=i+Math.imul(p,ft)|0,i=i+Math.imul(m,lt)|0,o=o+Math.imul(m,ft)|0,n=n+Math.imul(l,pt)|0,i=i+Math.imul(l,mt)|0,i=i+Math.imul(f,pt)|0,o=o+Math.imul(f,mt)|0;var xt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(D,z),i=Math.imul(D,$),i=i+Math.imul(U,z)|0,o=Math.imul(U,$),n=n+Math.imul(j,H)|0,i=i+Math.imul(j,W)|0,i=i+Math.imul(N,H)|0,o=o+Math.imul(N,W)|0,n=n+Math.imul(I,J)|0,i=i+Math.imul(I,X)|0,i=i+Math.imul(P,J)|0,o=o+Math.imul(P,X)|0,n=n+Math.imul(R,Q)|0,i=i+Math.imul(R,tt)|0,i=i+Math.imul(T,Q)|0,o=o+Math.imul(T,tt)|0,n=n+Math.imul(O,rt)|0,i=i+Math.imul(O,nt)|0,i=i+Math.imul(S,rt)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(E,ot)|0,i=i+Math.imul(E,st)|0,i=i+Math.imul(A,ot)|0,o=o+Math.imul(A,st)|0,n=n+Math.imul(w,ut)|0,i=i+Math.imul(w,ct)|0,i=i+Math.imul(M,ut)|0,o=o+Math.imul(M,ct)|0,n=n+Math.imul(v,lt)|0,i=i+Math.imul(v,ft)|0,i=i+Math.imul(b,lt)|0,o=o+Math.imul(b,ft)|0,n=n+Math.imul(p,pt)|0,i=i+Math.imul(p,mt)|0,i=i+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var Ot=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(D,H),i=Math.imul(D,W),i=i+Math.imul(U,H)|0,o=Math.imul(U,W),n=n+Math.imul(j,J)|0,i=i+Math.imul(j,X)|0,i=i+Math.imul(N,J)|0,o=o+Math.imul(N,X)|0,n=n+Math.imul(I,Q)|0,i=i+Math.imul(I,tt)|0,i=i+Math.imul(P,Q)|0,o=o+Math.imul(P,tt)|0,n=n+Math.imul(R,rt)|0,i=i+Math.imul(R,nt)|0,i=i+Math.imul(T,rt)|0,o=o+Math.imul(T,nt)|0,n=n+Math.imul(O,ot)|0,i=i+Math.imul(O,st)|0,i=i+Math.imul(S,ot)|0,o=o+Math.imul(S,st)|0,n=n+Math.imul(E,ut)|0,i=i+Math.imul(E,ct)|0,i=i+Math.imul(A,ut)|0,o=o+Math.imul(A,ct)|0,n=n+Math.imul(w,lt)|0,i=i+Math.imul(w,ft)|0,i=i+Math.imul(M,lt)|0,o=o+Math.imul(M,ft)|0,n=n+Math.imul(v,pt)|0,i=i+Math.imul(v,mt)|0,i=i+Math.imul(b,pt)|0,o=o+Math.imul(b,mt)|0;var St=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(D,J),i=Math.imul(D,X),i=i+Math.imul(U,J)|0,o=Math.imul(U,X),n=n+Math.imul(j,Q)|0,i=i+Math.imul(j,tt)|0,i=i+Math.imul(N,Q)|0,o=o+Math.imul(N,tt)|0,n=n+Math.imul(I,rt)|0,i=i+Math.imul(I,nt)|0,i=i+Math.imul(P,rt)|0,o=o+Math.imul(P,nt)|0,n=n+Math.imul(R,ot)|0,i=i+Math.imul(R,st)|0,i=i+Math.imul(T,ot)|0,o=o+Math.imul(T,st)|0,n=n+Math.imul(O,ut)|0,i=i+Math.imul(O,ct)|0,i=i+Math.imul(S,ut)|0,o=o+Math.imul(S,ct)|0,n=n+Math.imul(E,lt)|0,i=i+Math.imul(E,ft)|0,i=i+Math.imul(A,lt)|0,o=o+Math.imul(A,ft)|0,n=n+Math.imul(w,pt)|0,i=i+Math.imul(w,mt)|0,i=i+Math.imul(M,pt)|0,o=o+Math.imul(M,mt)|0;var kt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(D,Q),i=Math.imul(D,tt),i=i+Math.imul(U,Q)|0,o=Math.imul(U,tt),n=n+Math.imul(j,rt)|0,i=i+Math.imul(j,nt)|0,i=i+Math.imul(N,rt)|0,o=o+Math.imul(N,nt)|0,n=n+Math.imul(I,ot)|0,i=i+Math.imul(I,st)|0,i=i+Math.imul(P,ot)|0,o=o+Math.imul(P,st)|0,n=n+Math.imul(R,ut)|0,i=i+Math.imul(R,ct)|0,i=i+Math.imul(T,ut)|0,o=o+Math.imul(T,ct)|0,n=n+Math.imul(O,lt)|0,i=i+Math.imul(O,ft)|0,i=i+Math.imul(S,lt)|0,o=o+Math.imul(S,ft)|0,n=n+Math.imul(E,pt)|0,i=i+Math.imul(E,mt)|0,i=i+Math.imul(A,pt)|0,o=o+Math.imul(A,mt)|0;var Rt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(D,rt),i=Math.imul(D,nt),i=i+Math.imul(U,rt)|0,o=Math.imul(U,nt),n=n+Math.imul(j,ot)|0,i=i+Math.imul(j,st)|0,i=i+Math.imul(N,ot)|0,o=o+Math.imul(N,st)|0,n=n+Math.imul(I,ut)|0,i=i+Math.imul(I,ct)|0,i=i+Math.imul(P,ut)|0,o=o+Math.imul(P,ct)|0,n=n+Math.imul(R,lt)|0,i=i+Math.imul(R,ft)|0,i=i+Math.imul(T,lt)|0,o=o+Math.imul(T,ft)|0,n=n+Math.imul(O,pt)|0,i=i+Math.imul(O,mt)|0,i=i+Math.imul(S,pt)|0,o=o+Math.imul(S,mt)|0;var Tt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(D,ot),i=Math.imul(D,st),i=i+Math.imul(U,ot)|0,o=Math.imul(U,st),n=n+Math.imul(j,ut)|0,i=i+Math.imul(j,ct)|0,i=i+Math.imul(N,ut)|0,o=o+Math.imul(N,ct)|0,n=n+Math.imul(I,lt)|0,i=i+Math.imul(I,ft)|0,i=i+Math.imul(P,lt)|0,o=o+Math.imul(P,ft)|0,n=n+Math.imul(R,pt)|0,i=i+Math.imul(R,mt)|0,i=i+Math.imul(T,pt)|0,o=o+Math.imul(T,mt)|0;var Ct=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(D,ut),i=Math.imul(D,ct),i=i+Math.imul(U,ut)|0,o=Math.imul(U,ct),n=n+Math.imul(j,lt)|0,i=i+Math.imul(j,ft)|0,i=i+Math.imul(N,lt)|0,o=o+Math.imul(N,ft)|0,n=n+Math.imul(I,pt)|0,i=i+Math.imul(I,mt)|0,i=i+Math.imul(P,pt)|0,o=o+Math.imul(P,mt)|0;var It=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(D,lt),i=Math.imul(D,ft),i=i+Math.imul(U,lt)|0,o=Math.imul(U,ft),n=n+Math.imul(j,pt)|0,i=i+Math.imul(j,mt)|0,i=i+Math.imul(N,pt)|0,o=o+Math.imul(N,mt)|0;var Pt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(D,pt),i=Math.imul(D,mt),i=i+Math.imul(U,pt)|0,o=Math.imul(U,mt);var Lt=(c+n|0)+((8191&i)<<13)|0;return c=(o+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,u[0]=gt,u[1]=vt,u[2]=bt,u[3]=yt,u[4]=wt,u[5]=Mt,u[6]=_t,u[7]=Et,u[8]=At,u[9]=xt,u[10]=Ot,u[11]=St,u[12]=kt,u[13]=Rt,u[14]=Tt,u[15]=Ct,u[16]=It,u[17]=Pt,u[18]=Lt,0!==c&&(u[19]=c,r.length++),r};function g(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o>>26)|0,i+=s>>>26,s&=67108863}r.words[o]=a,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}function v(t,e,r){var n=new b;return n.mulp(t,e,r)}function b(t,e){this.x=t,this.y=e}Math.imul||(m=p),o.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?m(this,t,e):n<63?p(this,t,e):n<1024?g(this,t,e):v(this,t,e),r},b.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n>=1;return n},b.prototype.permute=function(t,e,r,n,i,o){for(var s=0;s>>=1)i++;return 1<>>=13,r[2*s+1]=8191&o,o>>>=13;for(s=2*e;s>=26,e+=i/67108864|0,e+=o>>>26,this.words[r]=67108863&o}return 0!==e&&(this.words[r]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=d(t);if(0===e.length)return new o(1);for(var r=this,n=0;n=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(e=0;e>>26-r}s&&(this.words[e]=s,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<s)for(this.length-=s,c=0;c=0&&(0!==h||c>=i);c--){var l=0|this.words[c];this.words[c]=h<<26-o|l>>>o,h=l&a}return u&&0!==h&&(u.words[u.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(n("number"===typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===a)return this.strip();for(n(-1===a),a=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var r=this.length-t.length,n=this.clone(),i=t,s=0|i.words[i.length-1],a=this._countBits(s);r=26-a,0!==r&&(i=i.ushln(r),n.iushln(r),s=0|i.words[i.length-1]);var u,c=n.length-i.length;if("mod"!==e){u=new o(null),u.length=c+1,u.words=new Array(u.length);for(var h=0;h=0;f--){var d=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);d=Math.min(d/s|0,67108863),n._ishlnsubmul(i,d,f);while(0!==n.negative)d--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);u&&(u.words[f]=d)}return u&&u.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:u||null,mod:n}},o.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(t)),{div:i,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!==(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,s,a},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i=new o(1),s=new o(0),a=new o(0),u=new o(1),c=0;while(e.isEven()&&r.isEven())e.iushrn(1),r.iushrn(1),++c;var h=r.clone(),l=e.clone();while(!e.isZero()){for(var f=0,d=1;0===(e.words[0]&d)&&f<26;++f,d<<=1);if(f>0){e.iushrn(f);while(f-- >0)(i.isOdd()||s.isOdd())&&(i.iadd(h),s.isub(l)),i.iushrn(1),s.iushrn(1)}for(var p=0,m=1;0===(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0){r.iushrn(p);while(p-- >0)(a.isOdd()||u.isOdd())&&(a.iadd(h),u.isub(l)),a.iushrn(1),u.iushrn(1)}e.cmp(r)>=0?(e.isub(r),i.isub(a),s.isub(u)):(r.isub(e),a.isub(i),u.isub(s))}return{a:a,b:u,gcd:r.iushln(c)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i,s=new o(1),a=new o(0),u=r.clone();while(e.cmpn(1)>0&&r.cmpn(1)>0){for(var c=0,h=1;0===(e.words[0]&h)&&c<26;++c,h<<=1);if(c>0){e.iushrn(c);while(c-- >0)s.isOdd()&&s.iadd(u),s.iushrn(1)}for(var l=0,f=1;0===(r.words[0]&f)&&l<26;++l,f<<=1);if(l>0){r.iushrn(l);while(l-- >0)a.isOdd()&&a.iadd(u),a.iushrn(1)}e.cmp(r)>=0?(e.isub(r),s.isub(a)):(r.isub(e),a.isub(s))}return i=0===e.cmpn(1)?s:a,i.cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);do{while(e.isEven())e.iushrn(1);while(r.isEven())r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}while(1);return r.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"===typeof t);var e=t%26,r=(t-e)/26,i=1<>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){ni&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new x(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function M(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function E(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function O(t){x.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(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)}w.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),e=r.bitLength()}while(e>this.n);var n=e0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},i(M,w),M.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i>>22,o=s}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},M.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new M;else if("p224"===t)e=new _;else if("p192"===t)e=new E;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new A}return y[t]=e,e},x.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},x.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},x.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},x.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},x.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},x.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},x.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},x.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},x.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},x.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},x.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},x.prototype.isqr=function(t){return this.imul(t,t.clone())},x.prototype.sqr=function(t){return this.mul(t,t)},x.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2===1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}var i=this.m.subn(1),s=0;while(!i.isZero()&&0===i.andln(1))s++,i.iushrn(1);n(!i.isZero());var a=new o(1).toRed(this),u=a.redNeg(),c=this.m.subn(1).iushrn(1),h=this.m.bitLength();h=new o(2*h*h).toRed(this);while(0!==this.pow(h,c).cmp(u))h.redIAdd(u);var l=this.pow(h,i),f=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=s;while(0!==d.cmp(a)){for(var m=d,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g=0;i--){for(var h=e.words[i],l=c-1;l>=0;l--){var f=h>>l&1;s!==n[0]&&(s=this.sqr(s)),0!==f||0!==a?(a<<=1,a|=f,u++,(u===r||0===i&&0===l)&&(s=this.mul(s,n[a]),u=0,a=0)):u=0}c=26}return s},x.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},x.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new O(t)},i(O,x),O.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},O.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},O.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},O.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},O.prototype.invm=function(t){var e=this.imod(t._invmp(this.m).mul(this.r2));return e._forceRed(this)}})(t,this)}).call(this,r("hOG+")(t))},"0pSW":function(t,e,r){var n=r("MMxC"),i=r("ls1J"),o=r("f1E4"),s=i.get,a=i.toKey;n({target:"Reflect",stat:!0},{getOwnMetadata:function(t,e){var r=arguments.length<3?void 0:a(arguments[2]);return s(t,o(e),r)}})},"0qr0":function(t,e,r){var n=r("EzR6"),i=r("FCfD");t.exports=function(t){return n(i(t))}},"1Cbe":function(t,e,r){var n=r("2kyd"),i=n("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},"1Few":function(t,e,r){"use strict";var n;r.d(e,"a",(function(){return n})),function(t){t["sha256"]="sha256",t["sha512"]="sha512"}(n||(n={}))},"1H91":function(t,e,r){"use strict";var n=r("7BAe"),i=r("cTDu"),o=r("Y3g6"),s=r("bF+Q"),a=r("oa35"),u=r("arQb"),c=r("9SZg");t.exports=function(t){var e,r,h,l,f,d,p=i(t),m="function"==typeof this?this:Array,g=arguments.length,v=g>1?arguments[1]:void 0,b=void 0!==v,y=c(p),w=0;if(b&&(v=n(v,g>2?arguments[2]:void 0,2)),void 0==y||m==Array&&s(y))for(e=a(p.length),r=new m(e);e>w;w++)d=b?v(p[w],w):p[w],u(r,w,d);else for(l=y.call(p),f=l.next,r=new m;!(h=f.call(l)).done;w++)d=b?o(l,v,[h.value,w],!0):h.value,u(r,w,d);return r.length=w,r}},"1aI8":function(t,e,r){var n,i,o,s=r("ZkJ9"),a=r("ukPv"),u=r("tSXo"),c=r("lz10"),h=r("jtLI"),l=r("CjUg"),f=r("6ixQ"),d=a.WeakMap,p=function(t){return o(t)?i(t):n(t,{})},m=function(t){return function(e){var r;if(!u(e)||(r=i(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}};if(s){var g=new d,v=g.get,b=g.has,y=g.set;n=function(t,e){return y.call(g,t,e),e},i=function(t){return v.call(g,t)||{}},o=function(t){return b.call(g,t)}}else{var w=l("state");f[w]=!0,n=function(t,e){return c(t,w,e),e},i=function(t){return h(t,w)?t[w]:{}},o=function(t){return h(t,w)}}t.exports={set:n,get:i,has:o,enforce:p,getterFor:m}},"1jPx":function(t,e,r){"use strict";var n=r("8OQV"),i=r("FVwB").exportTypedArrayStaticMethod,o=r("Sn4z");i("from",o,n)},"1nhP":function(t,e,r){var n=r("m0kY");t.exports=function(t){var e=n(t);if(e<0)throw RangeError("The argument can't be less than 0");return e}},"1vuE":function(t,e,r){var n=r("eNh0");n("flat")},"29mP":function(t,e,r){var n=r("nFn1"),i=r("ukPv"),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(n[t])||o(i[t]):n[t]&&n[t][e]||i[t]&&i[t][e]}},"2FZw":function(t,e,r){var n=r("oa35"),i=r("+rjg"),o=r("FCfD"),s=Math.ceil,a=function(t){return function(e,r,a){var u,c,h=String(o(e)),l=h.length,f=void 0===a?" ":String(a),d=n(r);return d<=l||""==f?h:(u=d-l,c=i.call(f,s(u/f.length)),c.length>u&&(c=c.slice(0,u)),t?h+c:c+h)}};t.exports={start:a(!1),end:a(!0)}},"2KAr":function(t,e,r){var n=r("tny8"),i=r("YfKC"),o=r("k/J9"),s=r("M8HR").UNSUPPORTED_Y;n&&("g"!=/./g.flags||s)&&i.f(RegExp.prototype,"flags",{configurable:!0,get:o})},"2aV/":function(t,e,r){"use strict";var n=r("MMxC"),i=r("Zcjx"),o=r("29mP"),s=r("f1E4"),a=r("cT1L"),u=r("7BAe"),c=r("/dTS"),h=r("PPXv"),l=r("IuhT");n({target:"Map",proto:!0,real:!0,forced:i},{mapValues:function(t){var e=s(this),r=h(e),n=u(t,arguments.length>1?arguments[1]:void 0,3),i=new(c(e,o("Map"))),f=a(i.set);return l(r,(function(t,r){f.call(i,t,n(r,t,e))}),void 0,!0,!0),i}})},"2kyd":function(t,e,r){var n=r("ukPv"),i=r("xxaU"),o=r("jtLI"),s=r("evbn"),a=r("Fs9M"),u=r("wgKq"),c=i("wks"),h=n.Symbol,l=u?h:h&&h.withoutSetter||s;t.exports=function(t){return o(c,t)||(a&&o(h,t)?c[t]=h[t]:c[t]=l("Symbol."+t)),c[t]}},"33TD":function(t,e,r){"use strict";var n=r("1Cbe"),i=r("Ei+o");t.exports=n?{}.toString:function(){return"[object "+i(this)+"]"}},"3UWB":function(t,e,r){var n=r("MMxC");n({target:"Math",stat:!0},{isubh:function(t,e,r,n){var i=t>>>0,o=e>>>0,s=r>>>0;return o-(n>>>0)-((~i&s|~(i^s)&i-s>>>0)>>>31)|0}})},"3Us1":function(t,e,r){var n=r("Mi8B");n("Float32",(function(t){return function(e,r,n){return t(this,e,r,n)}}))},"3dhw":function(t,e,r){"use strict";var n=r("NMFW"),i=r("f1E4"),o=r("MVys"),s=r("k/J9"),a="toString",u=RegExp.prototype,c=u[a],h=o((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),l=c.name!=a;(h||l)&&n(RegExp.prototype,a,(function(){var t=i(this),e=String(t.source),r=t.flags,n=String(void 0===r&&t instanceof RegExp&&!("flags"in u)?s.call(t):r);return"/"+e+"/"+n}),{unsafe:!0})},4218:function(t,e,r){"use strict";r.d(e,"d",(function(){return f})),r.d(e,"a",(function(){return p})),r.d(e,"c",(function(){return y})),r.d(e,"b",(function(){return w}));var n=r("OZ/i"),i=r.n(n),o=r("VJ7P"),s=r("/7J2"),a=r("qWAS"),u=i.a.BN;const c=new s["Logger"](a["a"]),h={},l=9007199254740991;function f(t){return null!=t&&(p.isBigNumber(t)||"number"===typeof t&&t%1===0||"string"===typeof t&&!!t.match(/^-?[0-9]+$/)||Object(o["isHexString"])(t)||"bigint"===typeof t||Object(o["isBytes"])(t))}let d=!1;class p{constructor(t,e){t!==h&&c.throwError("cannot call constructor directly; use BigNumber.from",s["Logger"].errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=e,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return g(v(this).fromTwos(t))}toTwos(t){return g(v(this).toTwos(t))}abs(){return"-"===this._hex[0]?p.from(this._hex.substring(1)):this}add(t){return g(v(this).add(v(t)))}sub(t){return g(v(this).sub(v(t)))}div(t){const e=p.from(t);return e.isZero()&&b("division-by-zero","div"),g(v(this).div(v(t)))}mul(t){return g(v(this).mul(v(t)))}mod(t){const e=v(t);return e.isNeg()&&b("division-by-zero","mod"),g(v(this).umod(e))}pow(t){const e=v(t);return e.isNeg()&&b("negative-power","pow"),g(v(this).pow(e))}and(t){const e=v(t);return(this.isNegative()||e.isNeg())&&b("unbound-bitwise-result","and"),g(v(this).and(e))}or(t){const e=v(t);return(this.isNegative()||e.isNeg())&&b("unbound-bitwise-result","or"),g(v(this).or(e))}xor(t){const e=v(t);return(this.isNegative()||e.isNeg())&&b("unbound-bitwise-result","xor"),g(v(this).xor(e))}mask(t){return(this.isNegative()||t<0)&&b("negative-width","mask"),g(v(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&b("negative-width","shl"),g(v(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&b("negative-width","shr"),g(v(this).shrn(t))}eq(t){return v(this).eq(v(t))}lt(t){return v(this).lt(v(t))}lte(t){return v(this).lte(v(t))}gt(t){return v(this).gt(v(t))}gte(t){return v(this).gte(v(t))}isNegative(){return"-"===this._hex[0]}isZero(){return v(this).isZero()}toNumber(){try{return v(this).toNumber()}catch(t){b("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(t){}return c.throwError("this platform does not support BigInt",s["Logger"].errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?d||(d=!0,c.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?c.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",s["Logger"].errors.UNEXPECTED_ARGUMENT,{}):c.throwError("BigNumber.toString does not accept parameters",s["Logger"].errors.UNEXPECTED_ARGUMENT,{})),v(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof p)return t;if("string"===typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new p(h,m(t)):t.match(/^-?[0-9]+$/)?new p(h,m(new u(t))):c.throwArgumentError("invalid BigNumber string","value",t);if("number"===typeof t)return t%1&&b("underflow","BigNumber.from",t),(t>=l||t<=-l)&&b("overflow","BigNumber.from",t),p.from(String(t));const e=t;if("bigint"===typeof e)return p.from(e.toString());if(Object(o["isBytes"])(e))return p.from(Object(o["hexlify"])(e));if(e)if(e.toHexString){const t=e.toHexString();if("string"===typeof t)return p.from(t)}else{let t=e._hex;if(null==t&&"BigNumber"===e.type&&(t=e.hex),"string"===typeof t&&(Object(o["isHexString"])(t)||"-"===t[0]&&Object(o["isHexString"])(t.substring(1))))return p.from(t)}return c.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!(!t||!t._isBigNumber)}}function m(t){if("string"!==typeof t)return m(t.toString(16));if("-"===t[0])return t=t.substring(1),"-"===t[0]&&c.throwArgumentError("invalid hex","value",t),t=m(t),"0x00"===t?t:"-"+t;if("0x"!==t.substring(0,2)&&(t="0x"+t),"0x"===t)return"0x00";t.length%2&&(t="0x0"+t.substring(2));while(t.length>4&&"0x00"===t.substring(0,4))t="0x"+t.substring(4);return t}function g(t){return p.from(m(t))}function v(t){const e=p.from(t).toHexString();return"-"===e[0]?new u("-"+e.substring(3),16):new u(e.substring(2),16)}function b(t,e,r){const n={fault:t,operation:e};return null!=r&&(n.value=r),c.throwError(t,s["Logger"].errors.NUMERIC_FAULT,n)}function y(t){return new u(t,36).toString(16)}function w(t){return new u(t,16).toString(36)}},"43iI":function(t,e,r){"use strict";var n=r("MMxC"),i=r("2FZw").end,o=r("y9mK");n({target:"String",proto:!0,forced:o},{padEnd:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},"4HPa":function(t,e,r){(function(e){const{Transform:n}=r("43KI");t.exports=t=>class r extends n{constructor(e,r,n,i,o){super(o),this._rate=e,this._capacity=r,this._delimitedSuffix=n,this._hashBitLength=i,this._options=o,this._state=new t,this._state.initialize(e,r),this._finalized=!1}_transform(t,e,r){let n=null;try{this.update(t,e)}catch(i){n=i}r(n)}_flush(t){let e=null;try{this.push(this.digest())}catch(r){e=r}t(e)}update(t,r){if(!e.isBuffer(t)&&"string"!==typeof t)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return e.isBuffer(t)||(t=e.from(t,r)),this._state.absorb(t),this}digest(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let e=this._state.squeeze(this._hashBitLength/8);return void 0!==t&&(e=e.toString(t)),this._resetState(),e}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const t=new r(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t}}}).call(this,r("HDXh").Buffer)},"4Mzw":function(t,e,r){var n=r("ukPv"),i=r("kiNa");i(n.JSON,"JSON",!0)},"4Qhp":function(t,e,r){"use strict";r.d(e,"a",(function(){return S}));var n=r("Oxwv"),i=r("4218"),o=r("VJ7P"),s=r("b1pR"),a=r("m9oY"),u=r("/7J2"),c=r("WHPf"),h=r("NaiW"),l=function(t,e,r,n){function i(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,o){function s(t){try{u(n.next(t))}catch(e){o(e)}}function a(t){try{u(n["throw"](t))}catch(e){o(e)}}function u(t){t.done?r(t.value):i(t.value).then(s,a)}u((n=n.apply(t,e||[])).next())}))};const f=new u["Logger"](c["a"]),d=new Uint8Array(32);d.fill(0);const p=i["a"].from(-1),m=i["a"].from(0),g=i["a"].from(1),v=i["a"].from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function b(t){const e=Object(o["arrayify"])(t),r=e.length%32;return r?Object(o["hexConcat"])([e,d.slice(r)]):Object(o["hexlify"])(e)}const y=Object(o["hexZeroPad"])(g.toHexString(),32),w=Object(o["hexZeroPad"])(m.toHexString(),32),M={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},_=["name","version","chainId","verifyingContract","salt"];function E(t){return function(e){return"string"!==typeof e&&f.throwArgumentError(`invalid domain value for ${JSON.stringify(t)}`,`domain.${t}`,e),e}}const A={name:E("name"),version:E("version"),chainId:function(t){try{return i["a"].from(t).toString()}catch(e){}return f.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",t)},verifyingContract:function(t){try{return Object(n["getAddress"])(t).toLowerCase()}catch(e){}return f.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",t)},salt:function(t){try{const e=Object(o["arrayify"])(t);if(32!==e.length)throw new Error("bad length");return Object(o["hexlify"])(e)}catch(e){}return f.throwArgumentError('invalid domain value "salt"',"domain.salt",t)}};function x(t){{const e=t.match(/^(u?)int(\d*)$/);if(e){const r=""===e[1],n=parseInt(e[2]||"256");(n%8!==0||n>256||e[2]&&e[2]!==String(n))&&f.throwArgumentError("invalid numeric width","type",t);const s=v.mask(r?n-1:n),a=r?s.add(g).mul(p):m;return function(e){const r=i["a"].from(e);return(r.lt(a)||r.gt(s))&&f.throwArgumentError(`value out-of-bounds for ${t}`,"value",e),Object(o["hexZeroPad"])(r.toTwos(256).toHexString(),32)}}}{const e=t.match(/^bytes(\d+)$/);if(e){const r=parseInt(e[1]);return(0===r||r>32||e[1]!==String(r))&&f.throwArgumentError("invalid bytes width","type",t),function(e){const n=Object(o["arrayify"])(e);return n.length!==r&&f.throwArgumentError(`invalid length for ${t}`,"value",e),b(e)}}}switch(t){case"address":return function(t){return Object(o["hexZeroPad"])(Object(n["getAddress"])(t),32)};case"bool":return function(t){return t?y:w};case"bytes":return function(t){return Object(s["keccak256"])(t)};case"string":return function(t){return Object(h["a"])(t)}}return null}function O(t,e){return`${t}(${e.map((({name:t,type:e})=>e+" "+t)).join(",")})`}class S{constructor(t){Object(a["defineReadOnly"])(this,"types",Object.freeze(Object(a["deepCopy"])(t))),Object(a["defineReadOnly"])(this,"_encoderCache",{}),Object(a["defineReadOnly"])(this,"_types",{});const e={},r={},n={};Object.keys(t).forEach((t=>{e[t]={},r[t]=[],n[t]={}}));for(const s in t){const n={};t[s].forEach((i=>{n[i.name]&&f.throwArgumentError(`duplicate variable name ${JSON.stringify(i.name)} in ${JSON.stringify(s)}`,"types",t),n[i.name]=!0;const o=i.type.match(/^([^\x5b]*)(\x5b|$)/)[1];o===s&&f.throwArgumentError(`circular type reference to ${JSON.stringify(o)}`,"types",t);const a=x(o);a||(r[o]||f.throwArgumentError(`unknown type ${JSON.stringify(o)}`,"types",t),r[o].push(s),e[s][o]=!0)}))}const i=Object.keys(r).filter((t=>0===r[t].length));function o(i,s){s[i]&&f.throwArgumentError(`circular type reference to ${JSON.stringify(i)}`,"types",t),s[i]=!0,Object.keys(e[i]).forEach((t=>{r[t]&&(o(t,s),Object.keys(s).forEach((e=>{n[e][t]=!0})))})),delete s[i]}0===i.length?f.throwArgumentError("missing primary type","types",t):i.length>1&&f.throwArgumentError(`ambiguous primary types or unused types: ${i.map((t=>JSON.stringify(t))).join(", ")}`,"types",t),Object(a["defineReadOnly"])(this,"primaryType",i[0]),o(this.primaryType,{});for(const s in n){const e=Object.keys(n[s]);e.sort(),this._types[s]=O(s,t[s])+e.map((e=>O(e,t[e]))).join("")}}getEncoder(t){let e=this._encoderCache[t];return e||(e=this._encoderCache[t]=this._getEncoder(t)),e}_getEncoder(t){{const e=x(t);if(e)return e}const e=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(e){const t=e[1],r=this.getEncoder(t),n=parseInt(e[3]);return e=>{n>=0&&e.length!==n&&f.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",e);let i=e.map(r);return this._types[t]&&(i=i.map(s["keccak256"])),Object(s["keccak256"])(Object(o["hexConcat"])(i))}}const r=this.types[t];if(r){const e=Object(h["a"])(this._types[t]);return t=>{const n=r.map((({name:e,type:r})=>{const n=this.getEncoder(r)(t[e]);return this._types[r]?Object(s["keccak256"])(n):n}));return n.unshift(e),Object(o["hexConcat"])(n)}}return f.throwArgumentError(`unknown type: ${t}`,"type",t)}encodeType(t){const e=this._types[t];return e||f.throwArgumentError(`unknown type: ${JSON.stringify(t)}`,"name",t),e}encodeData(t,e){return this.getEncoder(t)(e)}hashStruct(t,e){return Object(s["keccak256"])(this.encodeData(t,e))}encode(t){return this.encodeData(this.primaryType,t)}hash(t){return this.hashStruct(this.primaryType,t)}_visit(t,e,r){{const n=x(t);if(n)return r(t,e)}const n=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(n){const t=n[1],i=parseInt(n[3]);return i>=0&&e.length!==i&&f.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",e),e.map((e=>this._visit(t,e,r)))}const i=this.types[t];return i?i.reduce(((t,{name:n,type:i})=>(t[n]=this._visit(i,e[n],r),t)),{}):f.throwArgumentError(`unknown type: ${t}`,"type",t)}visit(t,e){return this._visit(this.primaryType,t,e)}static from(t){return new S(t)}static getPrimaryType(t){return S.from(t).primaryType}static hashStruct(t,e,r){return S.from(e).hashStruct(t,r)}static hashDomain(t){const e=[];for(const r in t){const n=M[r];n||f.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(r)}`,"domain",t),e.push({name:r,type:n})}return e.sort(((t,e)=>_.indexOf(t.name)-_.indexOf(e.name))),S.hashStruct("EIP712Domain",{EIP712Domain:e},t)}static encode(t,e,r){return Object(o["hexConcat"])(["0x1901",S.hashDomain(t),S.from(e).hash(r)])}static hash(t,e,r){return Object(s["keccak256"])(S.encode(t,e,r))}static resolveNames(t,e,r,n){return l(this,void 0,void 0,(function*(){t=Object(a["shallowCopy"])(t);const i={};t.verifyingContract&&!Object(o["isHexString"])(t.verifyingContract,20)&&(i[t.verifyingContract]="0x");const s=S.from(e);s.visit(r,((t,e)=>("address"!==t||Object(o["isHexString"])(e,20)||(i[e]="0x"),e)));for(const t in i)i[t]=yield n(t);return t.verifyingContract&&i[t.verifyingContract]&&(t.verifyingContract=i[t.verifyingContract]),r=s.visit(r,((t,e)=>"address"===t&&i[e]?i[e]:e)),{domain:t,value:r}}))}static getPayload(t,e,r){S.hashDomain(t);const n={},s=[];_.forEach((e=>{const r=t[e];null!=r&&(n[e]=A[e](r),s.push({name:e,type:M[e]}))}));const u=S.from(e),c=Object(a["shallowCopy"])(e);return c.EIP712Domain?f.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",e):c.EIP712Domain=s,u.encode(r),{types:c,domain:n,primaryType:u.primaryType,message:u.visit(r,((t,e)=>{if(t.match(/^bytes(\d*)/))return Object(o["hexlify"])(Object(o["arrayify"])(e));if(t.match(/^u?int/))return i["a"].from(e).toString();switch(t){case"address":return e.toLowerCase();case"bool":return!!e;case"string":return"string"!==typeof e&&f.throwArgumentError("invalid string","value",e),e}return f.throwArgumentError("unsupported type","type",t)}))}}}},"4WVH":function(t,e,r){"use strict";r.r(e),r.d(e,"encode",(function(){return h})),r.d(e,"decode",(function(){return d}));var n=r("VJ7P"),i=r("/7J2");const o="rlp/5.7.0",s=new i["Logger"](o);function a(t){const e=[];while(t)e.unshift(255&t),t>>=8;return e}function u(t,e,r){let n=0;for(let i=0;ie+1+n&&s.throwError("child data too short",i["Logger"].errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:o}}function f(t,e){if(0===t.length&&s.throwError("data too short",i["Logger"].errors.BUFFER_OVERRUN,{}),t[e]>=248){const r=t[e]-247;e+1+r>t.length&&s.throwError("data short segment too short",i["Logger"].errors.BUFFER_OVERRUN,{});const n=u(t,e+1,r);return e+1+r+n>t.length&&s.throwError("data long segment too short",i["Logger"].errors.BUFFER_OVERRUN,{}),l(t,e,e+1+r,r+n)}if(t[e]>=192){const r=t[e]-192;return e+1+r>t.length&&s.throwError("data array too short",i["Logger"].errors.BUFFER_OVERRUN,{}),l(t,e,e+1,r)}if(t[e]>=184){const r=t[e]-183;e+1+r>t.length&&s.throwError("data array too short",i["Logger"].errors.BUFFER_OVERRUN,{});const o=u(t,e+1,r);e+1+r+o>t.length&&s.throwError("data array too short",i["Logger"].errors.BUFFER_OVERRUN,{});const a=Object(n["hexlify"])(t.slice(e+1+r,e+1+r+o));return{consumed:1+r+o,result:a}}if(t[e]>=128){const r=t[e]-128;e+1+r>t.length&&s.throwError("data too short",i["Logger"].errors.BUFFER_OVERRUN,{});const o=Object(n["hexlify"])(t.slice(e+1,e+1+r));return{consumed:1+r,result:o}}return{consumed:1,result:Object(n["hexlify"])(t[e])}}function d(t){const e=Object(n["arrayify"])(t),r=f(e,0);return r.consumed!==e.length&&s.throwArgumentError("invalid rlp data","data",t),r.result}},"4rKd":function(t,e,r){var n=r("lz10"),i=r("aKVN"),o=r("2kyd"),s=o("toPrimitive"),a=Date.prototype;s in a||n(a,s,i)},"5Blz":function(t,e,r){"use strict";var n=r("MMxC"),i=r("9RRT").right,o=r("R8iy"),s=r("kGMc"),a=o("reduceRight"),u=s("reduce",{1:0});n({target:"Array",proto:!0,forced:!a||!u},{reduceRight:function(t){return i(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"5GeT":function(t,e,r){"use strict";(function(t){var n=r("xTJ+"),i=r("eRe6"),o=r("RYHr");function s(t){return n["a"].isPlainObject(t)||n["a"].isArray(t)}function a(t){return n["a"].endsWith(t,"[]")?t.slice(0,-2):t}function u(t,e,r){return t?t.concat(e).map((function(t,e){return t=a(t),!r&&e?"["+t+"]":t})).join(r?".":""):e}function c(t){return n["a"].isArray(t)&&!t.some(s)}const h=n["a"].toFlatObject(n["a"],{},null,(function(t){return/^is[A-Z]/.test(t)}));function l(e,r,l){if(!n["a"].isObject(e))throw new TypeError("target must be an object");r=r||new(o["a"]||FormData),l=n["a"].toFlatObject(l,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!n["a"].isUndefined(e[t])}));const f=l.metaTokens,d=l.visitor||y,p=l.dots,m=l.indexes,g=l.Blob||"undefined"!==typeof Blob&&Blob,v=g&&n["a"].isSpecCompliantForm(r);if(!n["a"].isFunction(d))throw new TypeError("visitor must be a function");function b(e){if(null===e)return"";if(n["a"].isDate(e))return e.toISOString();if(!v&&n["a"].isBlob(e))throw new i["a"]("Blob is not supported. Use a Buffer instead.");return n["a"].isArrayBuffer(e)||n["a"].isTypedArray(e)?v&&"function"===typeof Blob?new Blob([e]):t.from(e):e}function y(t,e,i){let o=t;if(t&&!i&&"object"===typeof t)if(n["a"].endsWith(e,"{}"))e=f?e:e.slice(0,-2),t=JSON.stringify(t);else if(n["a"].isArray(t)&&c(t)||(n["a"].isFileList(t)||n["a"].endsWith(e,"[]"))&&(o=n["a"].toArray(t)))return e=a(e),o.forEach((function(t,i){!n["a"].isUndefined(t)&&null!==t&&r.append(!0===m?u([e],i,p):null===m?e:e+"[]",b(t))})),!1;return!!s(t)||(r.append(u(i,e,p),b(t)),!1)}const w=[],M=Object.assign(h,{defaultVisitor:y,convertValue:b,isVisitable:s});function _(t,e){if(!n["a"].isUndefined(t)){if(-1!==w.indexOf(t))throw Error("Circular reference detected in "+e.join("."));w.push(t),n["a"].forEach(t,(function(t,i){const o=!(n["a"].isUndefined(t)||null===t)&&d.call(r,t,n["a"].isString(i)?i.trim():i,e,M);!0===o&&_(t,e?e.concat(i):[i])})),w.pop()}}if(!n["a"].isObject(e))throw new TypeError("data must be an object");return _(e),r}e["a"]=l}).call(this,r("HDXh").Buffer)},"5JgN":function(t,e,r){"use strict";r("FbcW");var n=r("MMxC"),i=r("29mP"),o=r("lgSf"),s=r("NMFW"),a=r("ujhg"),u=r("kiNa"),c=r("uoF6"),h=r("1aI8"),l=r("igoe"),f=r("jtLI"),d=r("7BAe"),p=r("Ei+o"),m=r("f1E4"),g=r("tSXo"),v=r("u+7+"),b=r("HhvW"),y=r("qcmB"),w=r("9SZg"),M=r("2kyd"),_=i("fetch"),E=i("Headers"),A=M("iterator"),x="URLSearchParams",O=x+"Iterator",S=h.set,k=h.getterFor(x),R=h.getterFor(O),T=/\+/g,C=Array(4),I=function(t){return C[t-1]||(C[t-1]=RegExp("((?:%[\\da-f]{2}){"+t+"})","gi"))},P=function(t){try{return decodeURIComponent(t)}catch(e){return t}},L=function(t){var e=t.replace(T," "),r=4;try{return decodeURIComponent(e)}catch(n){while(r)e=e.replace(I(r--),P);return e}},j=/[!'()~]|%20/g,N={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},B=function(t){return N[t]},D=function(t){return encodeURIComponent(t).replace(j,B)},U=function(t,e){if(e){var r,n,i=e.split("&"),o=0;while(o0?arguments[0]:void 0,h=this,d=[];if(S(h,{type:x,entries:d,updateURL:function(){},updateSearchParams:F}),void 0!==c)if(g(c))if(t=w(c),"function"===typeof t){e=t.call(c),r=e.next;while(!(n=r.call(e)).done){if(i=y(m(n.value)),o=i.next,(s=o.call(i)).done||(a=o.call(i)).done||!o.call(i).done)throw TypeError("Expected sequence with length 2");d.push({key:s.value+"",value:a.value+""})}}else for(u in c)f(c,u)&&d.push({key:u,value:c[u]+""});else U(d,"string"===typeof c?"?"===c.charAt(0)?c.slice(1):c:c+"")},z=V.prototype;a(z,{append:function(t,e){q(arguments.length,2);var r=k(this);r.entries.push({key:t+"",value:e+""}),r.updateURL()},delete:function(t){q(arguments.length,1);var e=k(this),r=e.entries,n=t+"",i=0;while(it.key){i.splice(e,0,t);break}e===r&&i.push(t)}n.updateURL()},forEach:function(t){var e,r=k(this).entries,n=d(t,arguments.length>1?arguments[1]:void 0,3),i=0;while(i1&&(e=arguments[1],g(e)&&(r=e.body,p(r)===x&&(n=e.headers?new E(e.headers):new E,n.has("content-type")||n.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),e=v(e,{body:b(0,String(r)),headers:b(0,n)}))),i.push(e)),_.apply(this,i)}}),t.exports={URLSearchParams:V,getState:k}},"5yw/":function(t,e){t.exports={}},"6F8h":function(t){t.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},"6FCX":function(t,e,r){var n=r("MMxC"),i=r("qA1w");n({target:"WeakMap",stat:!0},{of:i})},"6UMM":function(t,e,r){(function(t){(function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var s;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{s=r("HDXh").Buffer}catch(O){}function a(t,e,r){for(var n=0,i=Math.min(t.length,r),o=e;o=49&&s<=54?s-49+10:s>=17&&s<=22?s-17+10:15&s}return n}function u(t,e,r,n){for(var i=0,o=Math.min(t.length,r),s=e;s=49?a-49+10:a>=17?a-17+10:a}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,r){if("number"===typeof t)return this._initNumber(t,e,r);if("object"===typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var i=0;"-"===t[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("number"===typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)s=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=s<>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r=e;r-=6)i=a(t,r,r+6),this.words[n]|=i<>>26-o&4194303,o+=24,o>=26&&(o-=26,n++);r+6!==e&&(i=a(t,e,r+6),this.words[n]|=i<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,s=o%n,a=Math.min(o,o-s)+r,c=0,h=r;h1&&0===this.words[this.length-1])this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[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],l=[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];function f(t){for(var e=new Array(t.bitLength()),r=0;r>>i}return e}function d(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],s=i*o,a=67108863&s,u=s/67108864|0;r.words[0]=a;for(var c=1;c>>26,l=67108863&u,f=Math.min(c,e.length-1),d=Math.max(0,c-t.length+1);d<=f;d++){var p=c-d|0;i=0|t.words[p],o=0|e.words[d],s=i*o+l,h+=s/67108864|0,l=67108863&s}r.words[c]=0|l,u=0|h}return 0!==u?r.words[c]=0|u:r.length--,r.strip()}o.prototype.toString=function(t,e){var r;if(t=t||10,e=0|e||1,16===t||"hex"===t){r="";for(var i=0,o=0,s=0;s>>24-i&16777215,r=0!==o||s!==this.length-1?c[6-u.length]+u+r:u+r,i+=2,i>=26&&(i-=26,s--)}0!==o&&(r=o.toString(16)+r);while(r.length%e!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var f=h[t],d=l[t];r="";var p=this.clone();p.negative=0;while(!p.isZero()){var m=p.modn(d).toString(t);p=p.idivn(d),r=p.isZero()?m+r:c[f-m.length]+m+r}this.isZero()&&(r="0"+r);while(r.length%e!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return n("undefined"!==typeof s),this.toArrayLike(s,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var s,a,u="le"===e,c=new t(o),h=this.clone();if(u){for(a=0;!h.isZero();a++)s=h.andln(255),h.iushrn(8),c[a]=s;for(;a=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0===(8191&e)&&(r+=13,e>>>=13),0===(127&e)&&(r+=7,e>>>=7),0===(15&e)&&(r+=4,e>>>=4),0===(3&e)&&(r+=2,e>>>=2),0===(1&e)&&r++,r},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;rt.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,s=0;s>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,d=0|s[1],p=8191&d,m=d>>>13,g=0|s[2],v=8191&g,b=g>>>13,y=0|s[3],w=8191&y,M=y>>>13,_=0|s[4],E=8191&_,A=_>>>13,x=0|s[5],O=8191&x,S=x>>>13,k=0|s[6],R=8191&k,T=k>>>13,C=0|s[7],I=8191&C,P=C>>>13,L=0|s[8],j=8191&L,N=L>>>13,B=0|s[9],D=8191&B,U=B>>>13,F=0|a[0],q=8191&F,G=F>>>13,V=0|a[1],z=8191&V,$=V>>>13,K=0|a[2],H=8191&K,W=K>>>13,Z=0|a[3],J=8191&Z,X=Z>>>13,Y=0|a[4],Q=8191&Y,tt=Y>>>13,et=0|a[5],rt=8191&et,nt=et>>>13,it=0|a[6],ot=8191&it,st=it>>>13,at=0|a[7],ut=8191&at,ct=at>>>13,ht=0|a[8],lt=8191&ht,ft=ht>>>13,dt=0|a[9],pt=8191&dt,mt=dt>>>13;r.negative=t.negative^e.negative,r.length=19,n=Math.imul(l,q),i=Math.imul(l,G),i=i+Math.imul(f,q)|0,o=Math.imul(f,G);var gt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(p,q),i=Math.imul(p,G),i=i+Math.imul(m,q)|0,o=Math.imul(m,G),n=n+Math.imul(l,z)|0,i=i+Math.imul(l,$)|0,i=i+Math.imul(f,z)|0,o=o+Math.imul(f,$)|0;var vt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(v,q),i=Math.imul(v,G),i=i+Math.imul(b,q)|0,o=Math.imul(b,G),n=n+Math.imul(p,z)|0,i=i+Math.imul(p,$)|0,i=i+Math.imul(m,z)|0,o=o+Math.imul(m,$)|0,n=n+Math.imul(l,H)|0,i=i+Math.imul(l,W)|0,i=i+Math.imul(f,H)|0,o=o+Math.imul(f,W)|0;var bt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(w,q),i=Math.imul(w,G),i=i+Math.imul(M,q)|0,o=Math.imul(M,G),n=n+Math.imul(v,z)|0,i=i+Math.imul(v,$)|0,i=i+Math.imul(b,z)|0,o=o+Math.imul(b,$)|0,n=n+Math.imul(p,H)|0,i=i+Math.imul(p,W)|0,i=i+Math.imul(m,H)|0,o=o+Math.imul(m,W)|0,n=n+Math.imul(l,J)|0,i=i+Math.imul(l,X)|0,i=i+Math.imul(f,J)|0,o=o+Math.imul(f,X)|0;var yt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(E,q),i=Math.imul(E,G),i=i+Math.imul(A,q)|0,o=Math.imul(A,G),n=n+Math.imul(w,z)|0,i=i+Math.imul(w,$)|0,i=i+Math.imul(M,z)|0,o=o+Math.imul(M,$)|0,n=n+Math.imul(v,H)|0,i=i+Math.imul(v,W)|0,i=i+Math.imul(b,H)|0,o=o+Math.imul(b,W)|0,n=n+Math.imul(p,J)|0,i=i+Math.imul(p,X)|0,i=i+Math.imul(m,J)|0,o=o+Math.imul(m,X)|0,n=n+Math.imul(l,Q)|0,i=i+Math.imul(l,tt)|0,i=i+Math.imul(f,Q)|0,o=o+Math.imul(f,tt)|0;var wt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(O,q),i=Math.imul(O,G),i=i+Math.imul(S,q)|0,o=Math.imul(S,G),n=n+Math.imul(E,z)|0,i=i+Math.imul(E,$)|0,i=i+Math.imul(A,z)|0,o=o+Math.imul(A,$)|0,n=n+Math.imul(w,H)|0,i=i+Math.imul(w,W)|0,i=i+Math.imul(M,H)|0,o=o+Math.imul(M,W)|0,n=n+Math.imul(v,J)|0,i=i+Math.imul(v,X)|0,i=i+Math.imul(b,J)|0,o=o+Math.imul(b,X)|0,n=n+Math.imul(p,Q)|0,i=i+Math.imul(p,tt)|0,i=i+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0,n=n+Math.imul(l,rt)|0,i=i+Math.imul(l,nt)|0,i=i+Math.imul(f,rt)|0,o=o+Math.imul(f,nt)|0;var Mt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(R,q),i=Math.imul(R,G),i=i+Math.imul(T,q)|0,o=Math.imul(T,G),n=n+Math.imul(O,z)|0,i=i+Math.imul(O,$)|0,i=i+Math.imul(S,z)|0,o=o+Math.imul(S,$)|0,n=n+Math.imul(E,H)|0,i=i+Math.imul(E,W)|0,i=i+Math.imul(A,H)|0,o=o+Math.imul(A,W)|0,n=n+Math.imul(w,J)|0,i=i+Math.imul(w,X)|0,i=i+Math.imul(M,J)|0,o=o+Math.imul(M,X)|0,n=n+Math.imul(v,Q)|0,i=i+Math.imul(v,tt)|0,i=i+Math.imul(b,Q)|0,o=o+Math.imul(b,tt)|0,n=n+Math.imul(p,rt)|0,i=i+Math.imul(p,nt)|0,i=i+Math.imul(m,rt)|0,o=o+Math.imul(m,nt)|0,n=n+Math.imul(l,ot)|0,i=i+Math.imul(l,st)|0,i=i+Math.imul(f,ot)|0,o=o+Math.imul(f,st)|0;var _t=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(I,q),i=Math.imul(I,G),i=i+Math.imul(P,q)|0,o=Math.imul(P,G),n=n+Math.imul(R,z)|0,i=i+Math.imul(R,$)|0,i=i+Math.imul(T,z)|0,o=o+Math.imul(T,$)|0,n=n+Math.imul(O,H)|0,i=i+Math.imul(O,W)|0,i=i+Math.imul(S,H)|0,o=o+Math.imul(S,W)|0,n=n+Math.imul(E,J)|0,i=i+Math.imul(E,X)|0,i=i+Math.imul(A,J)|0,o=o+Math.imul(A,X)|0,n=n+Math.imul(w,Q)|0,i=i+Math.imul(w,tt)|0,i=i+Math.imul(M,Q)|0,o=o+Math.imul(M,tt)|0,n=n+Math.imul(v,rt)|0,i=i+Math.imul(v,nt)|0,i=i+Math.imul(b,rt)|0,o=o+Math.imul(b,nt)|0,n=n+Math.imul(p,ot)|0,i=i+Math.imul(p,st)|0,i=i+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0,n=n+Math.imul(l,ut)|0,i=i+Math.imul(l,ct)|0,i=i+Math.imul(f,ut)|0,o=o+Math.imul(f,ct)|0;var Et=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(j,q),i=Math.imul(j,G),i=i+Math.imul(N,q)|0,o=Math.imul(N,G),n=n+Math.imul(I,z)|0,i=i+Math.imul(I,$)|0,i=i+Math.imul(P,z)|0,o=o+Math.imul(P,$)|0,n=n+Math.imul(R,H)|0,i=i+Math.imul(R,W)|0,i=i+Math.imul(T,H)|0,o=o+Math.imul(T,W)|0,n=n+Math.imul(O,J)|0,i=i+Math.imul(O,X)|0,i=i+Math.imul(S,J)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(E,Q)|0,i=i+Math.imul(E,tt)|0,i=i+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(w,rt)|0,i=i+Math.imul(w,nt)|0,i=i+Math.imul(M,rt)|0,o=o+Math.imul(M,nt)|0,n=n+Math.imul(v,ot)|0,i=i+Math.imul(v,st)|0,i=i+Math.imul(b,ot)|0,o=o+Math.imul(b,st)|0,n=n+Math.imul(p,ut)|0,i=i+Math.imul(p,ct)|0,i=i+Math.imul(m,ut)|0,o=o+Math.imul(m,ct)|0,n=n+Math.imul(l,lt)|0,i=i+Math.imul(l,ft)|0,i=i+Math.imul(f,lt)|0,o=o+Math.imul(f,ft)|0;var At=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(D,q),i=Math.imul(D,G),i=i+Math.imul(U,q)|0,o=Math.imul(U,G),n=n+Math.imul(j,z)|0,i=i+Math.imul(j,$)|0,i=i+Math.imul(N,z)|0,o=o+Math.imul(N,$)|0,n=n+Math.imul(I,H)|0,i=i+Math.imul(I,W)|0,i=i+Math.imul(P,H)|0,o=o+Math.imul(P,W)|0,n=n+Math.imul(R,J)|0,i=i+Math.imul(R,X)|0,i=i+Math.imul(T,J)|0,o=o+Math.imul(T,X)|0,n=n+Math.imul(O,Q)|0,i=i+Math.imul(O,tt)|0,i=i+Math.imul(S,Q)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(E,rt)|0,i=i+Math.imul(E,nt)|0,i=i+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(w,ot)|0,i=i+Math.imul(w,st)|0,i=i+Math.imul(M,ot)|0,o=o+Math.imul(M,st)|0,n=n+Math.imul(v,ut)|0,i=i+Math.imul(v,ct)|0,i=i+Math.imul(b,ut)|0,o=o+Math.imul(b,ct)|0,n=n+Math.imul(p,lt)|0,i=i+Math.imul(p,ft)|0,i=i+Math.imul(m,lt)|0,o=o+Math.imul(m,ft)|0,n=n+Math.imul(l,pt)|0,i=i+Math.imul(l,mt)|0,i=i+Math.imul(f,pt)|0,o=o+Math.imul(f,mt)|0;var xt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(D,z),i=Math.imul(D,$),i=i+Math.imul(U,z)|0,o=Math.imul(U,$),n=n+Math.imul(j,H)|0,i=i+Math.imul(j,W)|0,i=i+Math.imul(N,H)|0,o=o+Math.imul(N,W)|0,n=n+Math.imul(I,J)|0,i=i+Math.imul(I,X)|0,i=i+Math.imul(P,J)|0,o=o+Math.imul(P,X)|0,n=n+Math.imul(R,Q)|0,i=i+Math.imul(R,tt)|0,i=i+Math.imul(T,Q)|0,o=o+Math.imul(T,tt)|0,n=n+Math.imul(O,rt)|0,i=i+Math.imul(O,nt)|0,i=i+Math.imul(S,rt)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(E,ot)|0,i=i+Math.imul(E,st)|0,i=i+Math.imul(A,ot)|0,o=o+Math.imul(A,st)|0,n=n+Math.imul(w,ut)|0,i=i+Math.imul(w,ct)|0,i=i+Math.imul(M,ut)|0,o=o+Math.imul(M,ct)|0,n=n+Math.imul(v,lt)|0,i=i+Math.imul(v,ft)|0,i=i+Math.imul(b,lt)|0,o=o+Math.imul(b,ft)|0,n=n+Math.imul(p,pt)|0,i=i+Math.imul(p,mt)|0,i=i+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var Ot=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(D,H),i=Math.imul(D,W),i=i+Math.imul(U,H)|0,o=Math.imul(U,W),n=n+Math.imul(j,J)|0,i=i+Math.imul(j,X)|0,i=i+Math.imul(N,J)|0,o=o+Math.imul(N,X)|0,n=n+Math.imul(I,Q)|0,i=i+Math.imul(I,tt)|0,i=i+Math.imul(P,Q)|0,o=o+Math.imul(P,tt)|0,n=n+Math.imul(R,rt)|0,i=i+Math.imul(R,nt)|0,i=i+Math.imul(T,rt)|0,o=o+Math.imul(T,nt)|0,n=n+Math.imul(O,ot)|0,i=i+Math.imul(O,st)|0,i=i+Math.imul(S,ot)|0,o=o+Math.imul(S,st)|0,n=n+Math.imul(E,ut)|0,i=i+Math.imul(E,ct)|0,i=i+Math.imul(A,ut)|0,o=o+Math.imul(A,ct)|0,n=n+Math.imul(w,lt)|0,i=i+Math.imul(w,ft)|0,i=i+Math.imul(M,lt)|0,o=o+Math.imul(M,ft)|0,n=n+Math.imul(v,pt)|0,i=i+Math.imul(v,mt)|0,i=i+Math.imul(b,pt)|0,o=o+Math.imul(b,mt)|0;var St=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(D,J),i=Math.imul(D,X),i=i+Math.imul(U,J)|0,o=Math.imul(U,X),n=n+Math.imul(j,Q)|0,i=i+Math.imul(j,tt)|0,i=i+Math.imul(N,Q)|0,o=o+Math.imul(N,tt)|0,n=n+Math.imul(I,rt)|0,i=i+Math.imul(I,nt)|0,i=i+Math.imul(P,rt)|0,o=o+Math.imul(P,nt)|0,n=n+Math.imul(R,ot)|0,i=i+Math.imul(R,st)|0,i=i+Math.imul(T,ot)|0,o=o+Math.imul(T,st)|0,n=n+Math.imul(O,ut)|0,i=i+Math.imul(O,ct)|0,i=i+Math.imul(S,ut)|0,o=o+Math.imul(S,ct)|0,n=n+Math.imul(E,lt)|0,i=i+Math.imul(E,ft)|0,i=i+Math.imul(A,lt)|0,o=o+Math.imul(A,ft)|0,n=n+Math.imul(w,pt)|0,i=i+Math.imul(w,mt)|0,i=i+Math.imul(M,pt)|0,o=o+Math.imul(M,mt)|0;var kt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(D,Q),i=Math.imul(D,tt),i=i+Math.imul(U,Q)|0,o=Math.imul(U,tt),n=n+Math.imul(j,rt)|0,i=i+Math.imul(j,nt)|0,i=i+Math.imul(N,rt)|0,o=o+Math.imul(N,nt)|0,n=n+Math.imul(I,ot)|0,i=i+Math.imul(I,st)|0,i=i+Math.imul(P,ot)|0,o=o+Math.imul(P,st)|0,n=n+Math.imul(R,ut)|0,i=i+Math.imul(R,ct)|0,i=i+Math.imul(T,ut)|0,o=o+Math.imul(T,ct)|0,n=n+Math.imul(O,lt)|0,i=i+Math.imul(O,ft)|0,i=i+Math.imul(S,lt)|0,o=o+Math.imul(S,ft)|0,n=n+Math.imul(E,pt)|0,i=i+Math.imul(E,mt)|0,i=i+Math.imul(A,pt)|0,o=o+Math.imul(A,mt)|0;var Rt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(D,rt),i=Math.imul(D,nt),i=i+Math.imul(U,rt)|0,o=Math.imul(U,nt),n=n+Math.imul(j,ot)|0,i=i+Math.imul(j,st)|0,i=i+Math.imul(N,ot)|0,o=o+Math.imul(N,st)|0,n=n+Math.imul(I,ut)|0,i=i+Math.imul(I,ct)|0,i=i+Math.imul(P,ut)|0,o=o+Math.imul(P,ct)|0,n=n+Math.imul(R,lt)|0,i=i+Math.imul(R,ft)|0,i=i+Math.imul(T,lt)|0,o=o+Math.imul(T,ft)|0,n=n+Math.imul(O,pt)|0,i=i+Math.imul(O,mt)|0,i=i+Math.imul(S,pt)|0,o=o+Math.imul(S,mt)|0;var Tt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(D,ot),i=Math.imul(D,st),i=i+Math.imul(U,ot)|0,o=Math.imul(U,st),n=n+Math.imul(j,ut)|0,i=i+Math.imul(j,ct)|0,i=i+Math.imul(N,ut)|0,o=o+Math.imul(N,ct)|0,n=n+Math.imul(I,lt)|0,i=i+Math.imul(I,ft)|0,i=i+Math.imul(P,lt)|0,o=o+Math.imul(P,ft)|0,n=n+Math.imul(R,pt)|0,i=i+Math.imul(R,mt)|0,i=i+Math.imul(T,pt)|0,o=o+Math.imul(T,mt)|0;var Ct=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(D,ut),i=Math.imul(D,ct),i=i+Math.imul(U,ut)|0,o=Math.imul(U,ct),n=n+Math.imul(j,lt)|0,i=i+Math.imul(j,ft)|0,i=i+Math.imul(N,lt)|0,o=o+Math.imul(N,ft)|0,n=n+Math.imul(I,pt)|0,i=i+Math.imul(I,mt)|0,i=i+Math.imul(P,pt)|0,o=o+Math.imul(P,mt)|0;var It=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(D,lt),i=Math.imul(D,ft),i=i+Math.imul(U,lt)|0,o=Math.imul(U,ft),n=n+Math.imul(j,pt)|0,i=i+Math.imul(j,mt)|0,i=i+Math.imul(N,pt)|0,o=o+Math.imul(N,mt)|0;var Pt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(D,pt),i=Math.imul(D,mt),i=i+Math.imul(U,pt)|0,o=Math.imul(U,mt);var Lt=(c+n|0)+((8191&i)<<13)|0;return c=(o+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,u[0]=gt,u[1]=vt,u[2]=bt,u[3]=yt,u[4]=wt,u[5]=Mt,u[6]=_t,u[7]=Et,u[8]=At,u[9]=xt,u[10]=Ot,u[11]=St,u[12]=kt,u[13]=Rt,u[14]=Tt,u[15]=Ct,u[16]=It,u[17]=Pt,u[18]=Lt,0!==c&&(u[19]=c,r.length++),r};function m(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o>>26)|0,i+=s>>>26,s&=67108863}r.words[o]=a,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}function g(t,e,r){var n=new v;return n.mulp(t,e,r)}function v(t,e){this.x=t,this.y=e}Math.imul||(p=d),o.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?p(this,t,e):n<63?d(this,t,e):n<1024?m(this,t,e):g(this,t,e),r},v.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n>=1;return n},v.prototype.permute=function(t,e,r,n,i,o){for(var s=0;s>>=1)i++;return 1<>>=13,r[2*s+1]=8191&o,o>>>=13;for(s=2*e;s>=26,e+=i/67108864|0,e+=o>>>26,this.words[r]=67108863&o}return 0!==e&&(this.words[r]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=f(t);if(0===e.length)return new o(1);for(var r=this,n=0;n=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(e=0;e>>26-r}s&&(this.words[e]=s,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<s)for(this.length-=s,c=0;c=0&&(0!==h||c>=i);c--){var l=0|this.words[c];this.words[c]=h<<26-o|l>>>o,h=l&a}return u&&0!==h&&(u.words[u.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(n("number"===typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===a)return this.strip();for(n(-1===a),a=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var r=this.length-t.length,n=this.clone(),i=t,s=0|i.words[i.length-1],a=this._countBits(s);r=26-a,0!==r&&(i=i.ushln(r),n.iushln(r),s=0|i.words[i.length-1]);var u,c=n.length-i.length;if("mod"!==e){u=new o(null),u.length=c+1,u.words=new Array(u.length);for(var h=0;h=0;f--){var d=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);d=Math.min(d/s|0,67108863),n._ishlnsubmul(i,d,f);while(0!==n.negative)d--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);u&&(u.words[f]=d)}return u&&u.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:u||null,mod:n}},o.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(t)),{div:i,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!==(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,s,a},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i=new o(1),s=new o(0),a=new o(0),u=new o(1),c=0;while(e.isEven()&&r.isEven())e.iushrn(1),r.iushrn(1),++c;var h=r.clone(),l=e.clone();while(!e.isZero()){for(var f=0,d=1;0===(e.words[0]&d)&&f<26;++f,d<<=1);if(f>0){e.iushrn(f);while(f-- >0)(i.isOdd()||s.isOdd())&&(i.iadd(h),s.isub(l)),i.iushrn(1),s.iushrn(1)}for(var p=0,m=1;0===(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0){r.iushrn(p);while(p-- >0)(a.isOdd()||u.isOdd())&&(a.iadd(h),u.isub(l)),a.iushrn(1),u.iushrn(1)}e.cmp(r)>=0?(e.isub(r),i.isub(a),s.isub(u)):(r.isub(e),a.isub(i),u.isub(s))}return{a:a,b:u,gcd:r.iushln(c)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i,s=new o(1),a=new o(0),u=r.clone();while(e.cmpn(1)>0&&r.cmpn(1)>0){for(var c=0,h=1;0===(e.words[0]&h)&&c<26;++c,h<<=1);if(c>0){e.iushrn(c);while(c-- >0)s.isOdd()&&s.iadd(u),s.iushrn(1)}for(var l=0,f=1;0===(r.words[0]&f)&&l<26;++l,f<<=1);if(l>0){r.iushrn(l);while(l-- >0)a.isOdd()&&a.iadd(u),a.iushrn(1)}e.cmp(r)>=0?(e.isub(r),s.isub(a)):(r.isub(e),a.isub(s))}return i=0===e.cmpn(1)?s:a,i.cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);do{while(e.isEven())e.iushrn(1);while(r.isEven())r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}while(1);return r.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"===typeof t);var e=t%26,r=(t-e)/26,i=1<>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){ni&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new A(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var b={k256:null,p224:null,p192:null,p25519:null};function y(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function x(t){A.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(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)}y.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},y.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),e=r.bitLength()}while(e>this.n);var n=e0?r.isub(this.p):r.strip(),r},y.prototype.split=function(t,e){t.iushrn(this.n,0,e)},y.prototype.imulK=function(t){return t.imul(this.k)},i(w,y),w.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i>>22,o=s}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},w.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(b[t])return b[t];var e;if("k256"===t)e=new w;else if("p224"===t)e=new M;else if("p192"===t)e=new _;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new E}return b[t]=e,e},A.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},A.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},A.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},A.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},A.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},A.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},A.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},A.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},A.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},A.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},A.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},A.prototype.isqr=function(t){return this.imul(t,t.clone())},A.prototype.sqr=function(t){return this.mul(t,t)},A.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2===1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}var i=this.m.subn(1),s=0;while(!i.isZero()&&0===i.andln(1))s++,i.iushrn(1);n(!i.isZero());var a=new o(1).toRed(this),u=a.redNeg(),c=this.m.subn(1).iushrn(1),h=this.m.bitLength();h=new o(2*h*h).toRed(this);while(0!==this.pow(h,c).cmp(u))h.redIAdd(u);var l=this.pow(h,i),f=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=s;while(0!==d.cmp(a)){for(var m=d,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g=0;i--){for(var h=e.words[i],l=c-1;l>=0;l--){var f=h>>l&1;s!==n[0]&&(s=this.sqr(s)),0!==f||0!==a?(a<<=1,a|=f,u++,(u===r||0===i&&0===l)&&(s=this.mul(s,n[a]),u=0,a=0)):u=0}c=26}return s},A.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},A.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new x(t)},i(x,A),x.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},x.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},x.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},x.prototype.invm=function(t){var e=this.imod(t._invmp(this.m).mul(this.r2));return e._forceRed(this)}})(t,this)}).call(this,r("hOG+")(t))},"6cL7":function(t,e,r){"use strict";var n=r("ENif"),i=r("f1E4"),o=r("FCfD"),s=r("UPML"),a=r("dagG");n("search",1,(function(t,e,r){return[function(e){var r=o(this),n=void 0==e?void 0:e[t];return void 0!==n?n.call(e,r):new RegExp(e)[t](String(r))},function(t){var n=r(e,t,this);if(n.done)return n.value;var o=i(t),u=String(this),c=o.lastIndex;s(c,0)||(o.lastIndex=0);var h=a(o,u);return s(o.lastIndex,c)||(o.lastIndex=c),null===h?-1:h.index}]}))},"6ixQ":function(t,e){t.exports={}},"6lN/":function(t,e,r){"use strict";var n=r("gK+I"),i=r("86MQ"),o=i.getNAF,s=i.getJSF,a=i.assert;function u(t,e){this.type=t,this.p=new n(e.p,16),this.red=e.prime?n.red(e.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=e.n&&new n(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))}function c(t,e){this.curve=t,this.type=e,this.precomputed=null}t.exports=u,u.prototype.point=function(){throw new Error("Not implemented")},u.prototype.validate=function(){throw new Error("Not implemented")},u.prototype._fixedNafMul=function(t,e){a(t.precomputed);var r=t._getDoubles(),n=o(e,1,this._bitLength),i=(1<=s;h--)u=(u<<1)+n[h];c.push(u)}for(var l=this.jpoint(null,null,null),f=this.jpoint(null,null,null),d=i;d>0;d--){for(s=0;s=0;c--){for(var h=0;c>=0&&0===s[c];c--)h++;if(c>=0&&h++,u=u.dblp(h),c<0)break;var l=s[c];a(0!==l),u="affine"===t.type?l>0?u.mixedAdd(i[l-1>>1]):u.mixedAdd(i[-l-1>>1].neg()):l>0?u.add(i[l-1>>1]):u.add(i[-l-1>>1].neg())}return"affine"===t.type?u.toP():u},u.prototype._wnafMulAdd=function(t,e,r,n,i){var a,u,c,h=this._wnafT1,l=this._wnafT2,f=this._wnafT3,d=0;for(a=0;a=1;a-=2){var m=a-1,g=a;if(1===h[m]&&1===h[g]){var v=[e[m],null,null,e[g]];0===e[m].y.cmp(e[g].y)?(v[1]=e[m].add(e[g]),v[2]=e[m].toJ().mixedAdd(e[g].neg())):0===e[m].y.cmp(e[g].y.redNeg())?(v[1]=e[m].toJ().mixedAdd(e[g]),v[2]=e[m].add(e[g].neg())):(v[1]=e[m].toJ().mixedAdd(e[g]),v[2]=e[m].toJ().mixedAdd(e[g].neg()));var b=[-3,-1,-5,-7,0,7,5,1,3],y=s(r[m],r[g]);for(d=Math.max(y[0].length,d),f[m]=new Array(d),f[g]=new Array(d),u=0;u=0;a--){var A=0;while(a>=0){var x=!0;for(u=0;u=0&&A++,_=_.dblp(A),a<0)break;for(u=0;u0?c=l[u][O-1>>1]:O<0&&(c=l[u][-O-1>>1].neg()),_="affine"===c.type?_.mixedAdd(c):_.add(c))}}for(a=0;a=Math.ceil((t.bitLength()+1)/e.step)},c.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i256)&&p.throwArgumentError("invalid number type","type",t),r&&(s=256),e=n["a"].from(e).toTwos(s),Object(i["zeroPad"])(e,s/8)}if(o=t.match(h),o){const n=parseInt(o[1]);return(String(n)!==o[1]||0===n||n>32)&&p.throwArgumentError("invalid bytes type","type",t),Object(i["arrayify"])(e).byteLength!==n&&p.throwArgumentError(`invalid value for ${t}`,"value",e),r?Object(i["arrayify"])((e+d).substring(0,66)):e}if(o=t.match(f),o&&Array.isArray(e)){const r=o[1],n=parseInt(o[2]||String(e.length));n!=e.length&&p.throwArgumentError(`invalid array length for ${t}`,"value",e);const s=[];return e.forEach((function(t){s.push(m(r,t,!0))})),Object(i["concat"])(s)}return p.throwArgumentError("invalid type","type",t)}function g(t,e){t.length!=e.length&&p.throwArgumentError("wrong number of values; expected ${ types.length }","values",e);const r=[];return t.forEach((function(t,n){r.push(m(t,e[n]))})),Object(i["hexlify"])(Object(i["concat"])(r))}function v(t,e){return Object(o["keccak256"])(g(t,e))}function b(t,e){return Object(s["c"])(g(t,e))}},"7aoe":function(t,e,r){"use strict";r.d(e,"a",(function(){return c})),r.d(e,"b",(function(){return h}));var n=r("4218"),i=(r("VJ7P"),r("m9oY")),o=r("/7J2");const s="abstract-provider/5.7.0";var a=function(t,e,r,n){function i(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,o){function s(t){try{u(n.next(t))}catch(e){o(e)}}function a(t){try{u(n["throw"](t))}catch(e){o(e)}}function u(t){t.done?r(t.value):i(t.value).then(s,a)}u((n=n.apply(t,e||[])).next())}))};const u=new o["Logger"](s);class c extends i["Description"]{static isForkEvent(t){return!(!t||!t._isForkEvent)}}class h{constructor(){u.checkAbstract(new.target,h),Object(i["defineReadOnly"])(this,"_isProvider",!0)}getFeeData(){return a(this,void 0,void 0,(function*(){const{block:t,gasPrice:e}=yield Object(i["resolveProperties"])({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch((t=>null))});let r=null,o=null,s=null;return t&&t.baseFeePerGas&&(r=t.baseFeePerGas,s=n["a"].from("1500000000"),o=t.baseFeePerGas.mul(2).add(s)),{lastBaseFeePerGas:r,maxFeePerGas:o,maxPriorityFeePerGas:s,gasPrice:e}}))}addListener(t,e){return this.on(t,e)}removeListener(t,e){return this.off(t,e)}static isProvider(t){return!(!t||!t._isProvider)}}},"7yTQ":function(t,e,r){"use strict";var n=r("MMxC"),i=r("Zcjx"),o=r("29mP"),s=r("f1E4"),a=r("cT1L"),u=r("7BAe"),c=r("/dTS"),h=r("PPXv"),l=r("IuhT");n({target:"Map",proto:!0,real:!0,forced:i},{filter:function(t){var e=s(this),r=h(e),n=u(t,arguments.length>1?arguments[1]:void 0,3),i=new(c(e,o("Map"))),f=a(i.set);return l(r,(function(t,r){n(r,t,e)&&f.call(i,t,r)}),void 0,!0,!0),i}})},"80Z6":function(t,e,r){"use strict";var n=r("MMxC"),i=r("cT1L"),o=r("29mP"),s=r("LUyE"),a=r("WJ3H"),u=r("IuhT"),c="No one promise resolved";n({target:"Promise",stat:!0},{any:function(t){var e=this,r=s.f(e),n=r.resolve,h=r.reject,l=a((function(){var r=i(e.resolve),s=[],a=0,l=1,f=!1;u(t,(function(t){var i=a++,u=!1;s.push(void 0),l++,r.call(e,t).then((function(t){u||f||(f=!0,n(t))}),(function(t){u||f||(u=!0,s[i]=t,--l||h(new(o("AggregateError"))(s,c)))}))})),--l||h(new(o("AggregateError"))(s,c))}));return l.error&&h(l.value),r.promise}})},"85tw":function(t,e,r){var n=r("MMxC"),i=r("ls1J"),o=r("f1E4"),s=i.keys,a=i.toKey;n({target:"Reflect",stat:!0},{getOwnMetadataKeys:function(t){var e=arguments.length<2?void 0:a(arguments[1]);return s(o(t),e)}})},"86MQ":function(t,e,r){"use strict";var n=e,i=r("gK+I"),o=r("2j6C"),s=r("dlgc");function a(t,e,r){var n=new Array(Math.max(t.bitLength(),r)+1);n.fill(0);for(var i=1<(i>>1)-1?(i>>1)-u:u,o.isubn(a)):a=0,n[s]=a,o.iushrn(1)}return n}function u(t,e){var r=[[],[]];t=t.clone(),e=e.clone();var n,i=0,o=0;while(t.cmpn(-i)>0||e.cmpn(-o)>0){var s,a,u=t.andln(3)+i&3,c=e.andln(3)+o&3;3===u&&(u=-1),3===c&&(c=-1),0===(1&u)?s=0:(n=t.andln(7)+i&7,s=3!==n&&5!==n||2!==c?u:-u),r[0].push(s),0===(1&c)?a=0:(n=e.andln(7)+o&7,a=3!==n&&5!==n||2!==u?c:-c),r[1].push(a),2*i===s+1&&(i=1-i),2*o===a+1&&(o=1-o),t.iushrn(1),e.iushrn(1)}return r}function c(t,e,r){var n="_"+e;t.prototype[e]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}}function h(t){return"string"===typeof t?n.toArray(t,"hex"):t}function l(t){return new i(t,"hex","le")}n.assert=o,n.toArray=s.toArray,n.zero2=s.zero2,n.toHex=s.toHex,n.encode=s.encode,n.getNAF=a,n.getJSF=u,n.cachedProperty=c,n.parseBytes=h,n.intFromLE=l},"8AIR":function(t,e,r){"use strict";r.r(e),r.d(e,"defaultPath",(function(){return O})),r.d(e,"HDNode",(function(){return S})),r.d(e,"mnemonicToSeed",(function(){return k})),r.d(e,"mnemonicToEntropy",(function(){return R})),r.d(e,"entropyToMnemonic",(function(){return T})),r.d(e,"isValidMnemonic",(function(){return C})),r.d(e,"getAccountPath",(function(){return I}));var n=r("LPIR"),i=r("VJ7P"),o=r("4218"),s=r("UnNr"),a=r("QQWL"),u=r("m9oY"),c=r("rhxT"),h=r("N5aZ"),l=r("1Few"),f=r("WsP5"),d=r("VgU3"),p=r("/7J2");const m="hdnode/5.7.0",g=new p["Logger"](m),v=o["a"].from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),b=Object(s["f"])("Bitcoin seed"),y=2147483648;function w(t){return(1<=256)throw new Error("Depth too large!");return E(Object(i["concat"])([null!=this.privateKey?"0x0488ADE4":"0x0488B21E",Object(i["hexlify"])(this.depth),this.parentFingerprint,Object(i["hexZeroPad"])(Object(i["hexlify"])(this.index),4),this.chainCode,null!=this.privateKey?Object(i["concat"])(["0x00",this.privateKey]):this.publicKey]))}neuter(){return new S(x,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)}_derive(t){if(t>4294967295)throw new Error("invalid index - "+String(t));let e=this.path;e&&(e+="/"+(t&~y));const r=new Uint8Array(37);if(t&y){if(!this.privateKey)throw new Error("cannot derive child of neutered node");r.set(Object(i["arrayify"])(this.privateKey),1),e&&(e+="'")}else r.set(Object(i["arrayify"])(this.publicKey));for(let i=24;i>=0;i-=8)r[33+(i>>3)]=t>>24-i&255;const n=Object(i["arrayify"])(Object(h["a"])(l["a"].sha512,this.chainCode,r)),s=n.slice(0,32),a=n.slice(32);let u=null,f=null;if(this.privateKey)u=_(o["a"].from(s).add(this.privateKey).mod(v));else{const t=new c["SigningKey"](Object(i["hexlify"])(s));f=t._addPoint(this.publicKey)}let d=e;const p=this.mnemonic;return p&&(d=Object.freeze({phrase:p.phrase,path:e,locale:p.locale||"en"})),new S(x,u,f,this.fingerprint,_(a),t,this.depth+1,d)}derivePath(t){const e=t.split("/");if(0===e.length||"m"===e[0]&&0!==this.depth)throw new Error("invalid path - "+t);"m"===e[0]&&e.shift();let r=this;for(let n=0;n=y)throw new Error("invalid path index - "+t);r=r._derive(y+e)}else{if(!t.match(/^[0-9]+$/))throw new Error("invalid path component - "+t);{const e=parseInt(t);if(e>=y)throw new Error("invalid path index - "+t);r=r._derive(e)}}}return r}static _fromSeed(t,e){const r=Object(i["arrayify"])(t);if(r.length<16||r.length>64)throw new Error("invalid seed");const n=Object(i["arrayify"])(Object(h["a"])(l["a"].sha512,b,r));return new S(x,_(n.slice(0,32)),null,"0x00000000",_(n.slice(32)),0,0,e)}static fromMnemonic(t,e,r){return r=A(r),t=T(R(t,r),r),S._fromSeed(k(t,e),{phrase:t,path:"m",locale:r.locale})}static fromSeed(t){return S._fromSeed(t,null)}static fromExtendedKey(t){const e=n["Base58"].decode(t);82===e.length&&E(e.slice(0,78))===t||g.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");const r=e[4],o=Object(i["hexlify"])(e.slice(5,9)),s=parseInt(Object(i["hexlify"])(e.slice(9,13)).substring(2),16),a=Object(i["hexlify"])(e.slice(13,45)),u=e.slice(45,78);switch(Object(i["hexlify"])(e.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new S(x,null,Object(i["hexlify"])(u),o,a,s,r,null);case"0x0488ade4":case"0x04358394 ":if(0!==u[0])break;return new S(x,Object(i["hexlify"])(u.slice(1)),null,o,a,s,r,null)}return g.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}function k(t,e){e||(e="");const r=Object(s["f"])("mnemonic"+e,s["a"].NFKD);return Object(a["a"])(Object(s["f"])(t,s["a"].NFKD),r,2048,64,"sha512")}function R(t,e){e=A(e),g.checkNormalize();const r=e.split(t);if(r.length%3!==0)throw new Error("invalid mnemonic");const n=Object(i["arrayify"])(new Uint8Array(Math.ceil(11*r.length/8)));let o=0;for(let i=0;i>3]|=1<<7-o%8),o++}const s=32*r.length/3,a=r.length/3,u=w(a),c=Object(i["arrayify"])(Object(h["c"])(n.slice(0,s/8)))[0]&u;if(c!==(n[n.length-1]&u))throw new Error("invalid checksum");return Object(i["hexlify"])(n.slice(0,s/8))}function T(t,e){if(e=A(e),t=Object(i["arrayify"])(t),t.length%4!==0||t.length<16||t.length>32)throw new Error("invalid entropy");const r=[0];let n=11;for(let i=0;i8?(r[r.length-1]<<=8,r[r.length-1]|=t[i],n-=8):(r[r.length-1]<<=n,r[r.length-1]|=t[i]>>8-n,r.push(t[i]&M(8-n)),n+=3);const o=t.length/4,s=Object(i["arrayify"])(Object(h["c"])(t))[0]&w(o);return r[r.length-1]<<=o,r[r.length-1]|=s>>8-o,e.join(r.map((t=>e.getWord(t))))}function C(t,e){try{return R(t,e),!0}catch(r){}return!1}function I(t){return("number"!==typeof t||t<0||t>=y||t%1)&&g.throwArgumentError("invalid account index","index",t),`m/44'/60'/${t}'/0/0`}},"8Cw2":function(t,e,r){var n=r("ukPv"),i=n.isFinite;t.exports=Number.isFinite||function(t){return"number"==typeof t&&i(t)}},"8OGu":function(t,e,r){var n=r("I65O");n("isConcatSpreadable")},"8OQV":function(t,e,r){var n=r("ukPv"),i=r("MVys"),o=r("GPrf"),s=r("FVwB").NATIVE_ARRAY_BUFFER_VIEWS,a=n.ArrayBuffer,u=n.Int8Array;t.exports=!s||!i((function(){u(1)}))||!i((function(){new u(-1)}))||!o((function(t){new u,new u(null),new u(1.5),new u(t)}),!0)||i((function(){return 1!==new u(new a(2),1,void 0).length}))},"8Ubs":function(t,e,r){var n=r("MMxC"),i=r("aF2d");n({target:"Map",stat:!0},{from:i})},"8XlW":function(t,e,r){"use strict";r.r(e),r.d(e,"BaseContract",(function(){return C})),r.d(e,"Contract",(function(){return I})),r.d(e,"ContractFactory",(function(){return P}));var n=r("UTQg"),i=r("qAdo"),o=r("7aoe"),s=r("fKWB"),a=r("Oxwv"),u=r("4218"),c=r("VJ7P"),h=r("m9oY"),l=r("WsP5"),f=r("/7J2");const d="contracts/5.7.0";var p=function(t,e,r,n){function i(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,o){function s(t){try{u(n.next(t))}catch(e){o(e)}}function a(t){try{u(n["throw"](t))}catch(e){o(e)}}function u(t){t.done?r(t.value):i(t.value).then(s,a)}u((n=n.apply(t,e||[])).next())}))};const m=new f["Logger"](d),g={chainId:!0,data:!0,from:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0,customData:!0,ccipReadEnabled:!0};function v(t,e){return p(this,void 0,void 0,(function*(){const r=yield e;"string"!==typeof r&&m.throwArgumentError("invalid address or ENS name","name",r);try{return Object(a["getAddress"])(r)}catch(i){}t||m.throwError("a provider or signer is needed to resolve ENS names",f["Logger"].errors.UNSUPPORTED_OPERATION,{operation:"resolveName"});const n=yield t.resolveName(r);return null==n&&m.throwArgumentError("resolver or addr is not configured for ENS name","name",r),n}))}function b(t,e,r){return p(this,void 0,void 0,(function*(){return Array.isArray(r)?yield Promise.all(r.map(((r,n)=>b(t,Array.isArray(e)?e[n]:e[r.name],r)))):"address"===r.type?yield v(t,e):"tuple"===r.type?yield b(t,e,r.components):"array"===r.baseType?Array.isArray(e)?yield Promise.all(e.map((e=>b(t,e,r.arrayChildren)))):Promise.reject(m.makeError("invalid value for array",f["Logger"].errors.INVALID_ARGUMENT,{argument:"value",value:e})):e}))}function y(t,e,r){return p(this,void 0,void 0,(function*(){let n={};r.length===e.inputs.length+1&&"object"===typeof r[r.length-1]&&(n=Object(h["shallowCopy"])(r.pop())),m.checkArgumentCount(r.length,e.inputs.length,"passed to contract"),t.signer?n.from?n.from=Object(h["resolveProperties"])({override:v(t.signer,n.from),signer:t.signer.getAddress()}).then((t=>p(this,void 0,void 0,(function*(){return Object(a["getAddress"])(t.signer)!==t.override&&m.throwError("Contract with a Signer cannot override from",f["Logger"].errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),t.override})))):n.from=t.signer.getAddress():n.from&&(n.from=v(t.provider,n.from));const i=yield Object(h["resolveProperties"])({args:b(t.signer||t.provider,r,e.inputs),address:t.resolvedAddress,overrides:Object(h["resolveProperties"])(n)||{}}),o=t.interface.encodeFunctionData(e,i.args),s={data:o,to:i.address},d=i.overrides;if(null!=d.nonce&&(s.nonce=u["a"].from(d.nonce).toNumber()),null!=d.gasLimit&&(s.gasLimit=u["a"].from(d.gasLimit)),null!=d.gasPrice&&(s.gasPrice=u["a"].from(d.gasPrice)),null!=d.maxFeePerGas&&(s.maxFeePerGas=u["a"].from(d.maxFeePerGas)),null!=d.maxPriorityFeePerGas&&(s.maxPriorityFeePerGas=u["a"].from(d.maxPriorityFeePerGas)),null!=d.from&&(s.from=d.from),null!=d.type&&(s.type=d.type),null!=d.accessList&&(s.accessList=Object(l["accessListify"])(d.accessList)),null==s.gasLimit&&null!=e.gas){let t=21e3;const r=Object(c["arrayify"])(o);for(let e=0;enull!=n[t]));return g.length&&m.throwError(`cannot override ${g.map((t=>JSON.stringify(t))).join(",")}`,f["Logger"].errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:g}),s}))}function w(t,e){return function(...r){return y(t,e,r)}}function M(t,e){const r=t.signer||t.provider;return function(...n){return p(this,void 0,void 0,(function*(){r||m.throwError("estimate require a provider or signer",f["Logger"].errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"});const i=yield y(t,e,n);return yield r.estimateGas(i)}))}}function _(t,e){const r=e.wait.bind(e);e.wait=e=>r(e).then((e=>(e.events=e.logs.map((r=>{let n=Object(h["deepCopy"])(r),i=null;try{i=t.interface.parseLog(r)}catch(o){}return i&&(n.args=i.args,n.decode=(e,r)=>t.interface.decodeEventLog(i.eventFragment,e,r),n.event=i.name,n.eventSignature=i.signature),n.removeListener=()=>t.provider,n.getBlock=()=>t.provider.getBlock(e.blockHash),n.getTransaction=()=>t.provider.getTransaction(e.transactionHash),n.getTransactionReceipt=()=>Promise.resolve(e),n})),e)))}function E(t,e,r){const n=t.signer||t.provider;return function(...i){return p(this,void 0,void 0,(function*(){let o;if(i.length===e.inputs.length+1&&"object"===typeof i[i.length-1]){const t=Object(h["shallowCopy"])(i.pop());null!=t.blockTag&&(o=yield t.blockTag),delete t.blockTag,i.push(t)}null!=t.deployTransaction&&(yield t._deployed(o));const s=yield y(t,e,i),a=yield n.call(s,o);try{let n=t.interface.decodeFunctionResult(e,a);return r&&1===e.outputs.length&&(n=n[0]),n}catch(u){throw u.code===f["Logger"].errors.CALL_EXCEPTION&&(u.address=t.address,u.args=i,u.transaction=s),u}}))}}function A(t,e){return function(...r){return p(this,void 0,void 0,(function*(){t.signer||m.throwError("sending a transaction requires a signer",f["Logger"].errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),null!=t.deployTransaction&&(yield t._deployed());const n=yield y(t,e,r),i=yield t.signer.sendTransaction(n);return _(t,i),i}))}}function x(t,e,r){return e.constant?E(t,e,r):A(t,e)}function O(t){return!t.address||null!=t.topics&&0!==t.topics.length?(t.address||"*")+"@"+(t.topics?t.topics.map((t=>Array.isArray(t)?t.join("|"):t)).join(":"):""):"*"}class S{constructor(t,e){Object(h["defineReadOnly"])(this,"tag",t),Object(h["defineReadOnly"])(this,"filter",e),this._listeners=[]}addListener(t,e){this._listeners.push({listener:t,once:e})}removeListener(t){let e=!1;this._listeners=this._listeners.filter((r=>!(!e&&r.listener===t)||(e=!0,!1)))}removeAllListeners(){this._listeners=[]}listeners(){return this._listeners.map((t=>t.listener))}listenerCount(){return this._listeners.length}run(t){const e=this.listenerCount();return this._listeners=this._listeners.filter((e=>{const r=t.slice();return setTimeout((()=>{e.listener.apply(this,r)}),0),!e.once})),e}prepareEvent(t){}getEmit(t){return[t]}}class k extends S{constructor(){super("error",null)}}class R extends S{constructor(t,e,r,n){const i={address:t};let o=e.getEventTopic(r);n?(o!==n[0]&&m.throwArgumentError("topic mismatch","topics",n),i.topics=n.slice()):i.topics=[o],super(O(i),i),Object(h["defineReadOnly"])(this,"address",t),Object(h["defineReadOnly"])(this,"interface",e),Object(h["defineReadOnly"])(this,"fragment",r)}prepareEvent(t){super.prepareEvent(t),t.event=this.fragment.name,t.eventSignature=this.fragment.format(),t.decode=(t,e)=>this.interface.decodeEventLog(this.fragment,t,e);try{t.args=this.interface.decodeEventLog(this.fragment,t.data,t.topics)}catch(e){t.args=null,t.decodeError=e}}getEmit(t){const e=Object(n["d"])(t.args);if(e.length)throw e[0].error;const r=(t.args||[]).slice();return r.push(t),r}}class T extends S{constructor(t,e){super("*",{address:t}),Object(h["defineReadOnly"])(this,"address",t),Object(h["defineReadOnly"])(this,"interface",e)}prepareEvent(t){super.prepareEvent(t);try{const e=this.interface.parseLog(t);t.event=e.name,t.eventSignature=e.signature,t.decode=(t,r)=>this.interface.decodeEventLog(e.eventFragment,t,r),t.args=e.args}catch(e){}}}class C{constructor(t,e,r){Object(h["defineReadOnly"])(this,"interface",Object(h["getStatic"])(new.target,"getInterface")(e)),null==r?(Object(h["defineReadOnly"])(this,"provider",null),Object(h["defineReadOnly"])(this,"signer",null)):s["Signer"].isSigner(r)?(Object(h["defineReadOnly"])(this,"provider",r.provider||null),Object(h["defineReadOnly"])(this,"signer",r)):o["b"].isProvider(r)?(Object(h["defineReadOnly"])(this,"provider",r),Object(h["defineReadOnly"])(this,"signer",null)):m.throwArgumentError("invalid signer or provider","signerOrProvider",r),Object(h["defineReadOnly"])(this,"callStatic",{}),Object(h["defineReadOnly"])(this,"estimateGas",{}),Object(h["defineReadOnly"])(this,"functions",{}),Object(h["defineReadOnly"])(this,"populateTransaction",{}),Object(h["defineReadOnly"])(this,"filters",{});{const t={};Object.keys(this.interface.events).forEach((e=>{const r=this.interface.events[e];Object(h["defineReadOnly"])(this.filters,e,((...t)=>({address:this.address,topics:this.interface.encodeFilterTopics(r,t)}))),t[r.name]||(t[r.name]=[]),t[r.name].push(e)})),Object.keys(t).forEach((e=>{const r=t[e];1===r.length?Object(h["defineReadOnly"])(this.filters,e,this.filters[r[0]]):m.warn(`Duplicate definition of ${e} (${r.join(", ")})`)}))}if(Object(h["defineReadOnly"])(this,"_runningEvents",{}),Object(h["defineReadOnly"])(this,"_wrappedEmits",{}),null==t&&m.throwArgumentError("invalid contract address or ENS name","addressOrName",t),Object(h["defineReadOnly"])(this,"address",t),this.provider)Object(h["defineReadOnly"])(this,"resolvedAddress",v(this.provider,t));else try{Object(h["defineReadOnly"])(this,"resolvedAddress",Promise.resolve(Object(a["getAddress"])(t)))}catch(u){m.throwError("provider is required to use ENS name as contract address",f["Logger"].errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}this.resolvedAddress.catch((t=>{}));const n={},i={};Object.keys(this.interface.functions).forEach((t=>{const e=this.interface.functions[t];if(i[t])m.warn(`Duplicate ABI entry for ${JSON.stringify(t)}`);else{i[t]=!0;{const r=e.name;n[`%${r}`]||(n[`%${r}`]=[]),n[`%${r}`].push(t)}null==this[t]&&Object(h["defineReadOnly"])(this,t,x(this,e,!0)),null==this.functions[t]&&Object(h["defineReadOnly"])(this.functions,t,x(this,e,!1)),null==this.callStatic[t]&&Object(h["defineReadOnly"])(this.callStatic,t,E(this,e,!0)),null==this.populateTransaction[t]&&Object(h["defineReadOnly"])(this.populateTransaction,t,w(this,e)),null==this.estimateGas[t]&&Object(h["defineReadOnly"])(this.estimateGas,t,M(this,e))}})),Object.keys(n).forEach((t=>{const e=n[t];if(e.length>1)return;t=t.substring(1);const r=e[0];try{null==this[t]&&Object(h["defineReadOnly"])(this,t,this[r])}catch(i){}null==this.functions[t]&&Object(h["defineReadOnly"])(this.functions,t,this.functions[r]),null==this.callStatic[t]&&Object(h["defineReadOnly"])(this.callStatic,t,this.callStatic[r]),null==this.populateTransaction[t]&&Object(h["defineReadOnly"])(this.populateTransaction,t,this.populateTransaction[r]),null==this.estimateGas[t]&&Object(h["defineReadOnly"])(this.estimateGas,t,this.estimateGas[r])}))}static getContractAddress(t){return Object(a["getContractAddress"])(t)}static getInterface(t){return i["b"].isInterface(t)?t:new i["b"](t)}deployed(){return this._deployed()}_deployed(t){return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then((()=>this)):this._deployedPromise=this.provider.getCode(this.address,t).then((t=>("0x"===t&&m.throwError("contract not deployed",f["Logger"].errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:"getDeployed"}),this)))),this._deployedPromise}fallback(t){this.signer||m.throwError("sending a transactions require a signer",f["Logger"].errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});const e=Object(h["shallowCopy"])(t||{});return["from","to"].forEach((function(t){null!=e[t]&&m.throwError("cannot override "+t,f["Logger"].errors.UNSUPPORTED_OPERATION,{operation:t})})),e.to=this.resolvedAddress,this.deployed().then((()=>this.signer.sendTransaction(e)))}connect(t){"string"===typeof t&&(t=new s["VoidSigner"](t,this.provider));const e=new this.constructor(this.address,this.interface,t);return this.deployTransaction&&Object(h["defineReadOnly"])(e,"deployTransaction",this.deployTransaction),e}attach(t){return new this.constructor(t,this.interface,this.signer||this.provider)}static isIndexed(t){return i["a"].isIndexed(t)}_normalizeRunningEvent(t){return this._runningEvents[t.tag]?this._runningEvents[t.tag]:t}_getRunningEvent(t){if("string"===typeof t){if("error"===t)return this._normalizeRunningEvent(new k);if("event"===t)return this._normalizeRunningEvent(new S("event",null));if("*"===t)return this._normalizeRunningEvent(new T(this.address,this.interface));const e=this.interface.getEvent(t);return this._normalizeRunningEvent(new R(this.address,this.interface,e))}if(t.topics&&t.topics.length>0){try{const e=t.topics[0];if("string"!==typeof e)throw new Error("invalid topic");const r=this.interface.getEvent(e);return this._normalizeRunningEvent(new R(this.address,this.interface,r,t.topics))}catch(e){}const r={address:this.address,topics:t.topics};return this._normalizeRunningEvent(new S(O(r),r))}return this._normalizeRunningEvent(new T(this.address,this.interface))}_checkRunningEvents(t){if(0===t.listenerCount()){delete this._runningEvents[t.tag];const e=this._wrappedEmits[t.tag];e&&t.filter&&(this.provider.off(t.filter,e),delete this._wrappedEmits[t.tag])}}_wrapEvent(t,e,r){const n=Object(h["deepCopy"])(e);return n.removeListener=()=>{r&&(t.removeListener(r),this._checkRunningEvents(t))},n.getBlock=()=>this.provider.getBlock(e.blockHash),n.getTransaction=()=>this.provider.getTransaction(e.transactionHash),n.getTransactionReceipt=()=>this.provider.getTransactionReceipt(e.transactionHash),t.prepareEvent(n),n}_addEventListener(t,e,r){if(this.provider||m.throwError("events require a provider or a signer with a provider",f["Logger"].errors.UNSUPPORTED_OPERATION,{operation:"once"}),t.addListener(e,r),this._runningEvents[t.tag]=t,!this._wrappedEmits[t.tag]){const r=r=>{let n=this._wrapEvent(t,r,e);if(null==n.decodeError)try{const e=t.getEmit(n);this.emit(t.filter,...e)}catch(i){n.decodeError=i.error}null!=t.filter&&this.emit("event",n),null!=n.decodeError&&this.emit("error",n.decodeError,n)};this._wrappedEmits[t.tag]=r,null!=t.filter&&this.provider.on(t.filter,r)}}queryFilter(t,e,r){const n=this._getRunningEvent(t),i=Object(h["shallowCopy"])(n.filter);return"string"===typeof e&&Object(c["isHexString"])(e,32)?(null!=r&&m.throwArgumentError("cannot specify toBlock with blockhash","toBlock",r),i.blockHash=e):(i.fromBlock=null!=e?e:0,i.toBlock=null!=r?r:"latest"),this.provider.getLogs(i).then((t=>t.map((t=>this._wrapEvent(n,t,null)))))}on(t,e){return this._addEventListener(this._getRunningEvent(t),e,!1),this}once(t,e){return this._addEventListener(this._getRunningEvent(t),e,!0),this}emit(t,...e){if(!this.provider)return!1;const r=this._getRunningEvent(t),n=r.run(e)>0;return this._checkRunningEvents(r),n}listenerCount(t){return this.provider?null==t?Object.keys(this._runningEvents).reduce(((t,e)=>t+this._runningEvents[e].listenerCount()),0):this._getRunningEvent(t).listenerCount():0}listeners(t){if(!this.provider)return[];if(null==t){const t=[];for(let e in this._runningEvents)this._runningEvents[e].listeners().forEach((e=>{t.push(e)}));return t}return this._getRunningEvent(t).listeners()}removeAllListeners(t){if(!this.provider)return this;if(null==t){for(const t in this._runningEvents){const e=this._runningEvents[t];e.removeAllListeners(),this._checkRunningEvents(e)}return this}const e=this._getRunningEvent(t);return e.removeAllListeners(),this._checkRunningEvents(e),this}off(t,e){if(!this.provider)return this;const r=this._getRunningEvent(t);return r.removeListener(e),this._checkRunningEvents(r),this}removeListener(t,e){return this.off(t,e)}}class I extends C{}class P{constructor(t,e,r){let n=null;n="string"===typeof e?e:Object(c["isBytes"])(e)?Object(c["hexlify"])(e):e&&"string"===typeof e.object?e.object:"!","0x"!==n.substring(0,2)&&(n="0x"+n),(!Object(c["isHexString"])(n)||n.length%2)&&m.throwArgumentError("invalid bytecode","bytecode",e),r&&!s["Signer"].isSigner(r)&&m.throwArgumentError("invalid signer","signer",r),Object(h["defineReadOnly"])(this,"bytecode",n),Object(h["defineReadOnly"])(this,"interface",Object(h["getStatic"])(new.target,"getInterface")(t)),Object(h["defineReadOnly"])(this,"signer",r||null)}getDeployTransaction(...t){let e={};if(t.length===this.interface.deploy.inputs.length+1&&"object"===typeof t[t.length-1]){e=Object(h["shallowCopy"])(t.pop());for(const t in e)if(!g[t])throw new Error("unknown transaction override "+t)}if(["data","from","to"].forEach((t=>{null!=e[t]&&m.throwError("cannot override "+t,f["Logger"].errors.UNSUPPORTED_OPERATION,{operation:t})})),e.value){const t=u["a"].from(e.value);t.isZero()||this.interface.deploy.payable||m.throwError("non-payable constructor cannot override value",f["Logger"].errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:e.value})}return m.checkArgumentCount(t.length,this.interface.deploy.inputs.length," in Contract constructor"),e.data=Object(c["hexlify"])(Object(c["concat"])([this.bytecode,this.interface.encodeDeploy(t)])),e}deploy(...t){return p(this,void 0,void 0,(function*(){let e={};t.length===this.interface.deploy.inputs.length+1&&(e=t.pop()),m.checkArgumentCount(t.length,this.interface.deploy.inputs.length," in Contract constructor");const r=yield b(this.signer,t,this.interface.deploy.inputs);r.push(e);const n=this.getDeployTransaction(...r),i=yield this.signer.sendTransaction(n),o=Object(h["getStatic"])(this.constructor,"getContractAddress")(i),s=Object(h["getStatic"])(this.constructor,"getContract")(o,this.interface,this.signer);return _(s,i),Object(h["defineReadOnly"])(s,"deployTransaction",i),s}))}attach(t){return this.constructor.getContract(t,this.interface,this.signer)}connect(t){return new this.constructor(this.interface,this.bytecode,t)}static fromSolidity(t,e){null==t&&m.throwError("missing compiler output",f["Logger"].errors.MISSING_ARGUMENT,{argument:"compilerOutput"}),"string"===typeof t&&(t=JSON.parse(t));const r=t.abi;let n=null;return t.bytecode?n=t.bytecode:t.evm&&t.evm.bytecode&&(n=t.evm.bytecode),new this(r,n,e)}static getInterface(t){return I.getInterface(t)}static getContractAddress(t){return Object(a["getContractAddress"])(t)}static getContract(t,e,r){return new I(t,e,r)}}},"8w+9":function(t,e,r){var n=r("ukPv"),i=r("tSXo"),o=n.document,s=i(o)&&i(o.createElement);t.exports=function(t){return s?o.createElement(t):{}}},"9BQv":function(t,e,r){"use strict";var n=r("tny8"),i=r("eNh0"),o=r("cTDu"),s=r("oa35"),a=r("YfKC").f;n&&!("lastItem"in[])&&(a(Array.prototype,"lastItem",{configurable:!0,get:function(){var t=o(this),e=s(t.length);return 0==e?void 0:t[e-1]},set:function(t){var e=o(this),r=s(e.length);return e[0==r?0:r-1]=t}}),i("lastItem"))},"9RRT":function(t,e,r){var n=r("cT1L"),i=r("cTDu"),o=r("EzR6"),s=r("oa35"),a=function(t){return function(e,r,a,u){n(r);var c=i(e),h=o(c),l=s(c.length),f=t?l-1:0,d=t?-1:1;if(a<2)while(1){if(f in h){u=h[f],f+=d;break}if(f+=d,t?f<0:l<=f)throw TypeError("Reduce of empty array with no initial value")}for(;t?f>=0:l>f;f+=d)f in h&&(u=r(u,h[f],f,c));return u}};t.exports={left:a(!1),right:a(!0)}},"9Rzw":function(t,e,r){"use strict";var n=r("MMxC"),i=r("Zcjx"),o=r("29mP"),s=r("f1E4"),a=r("cT1L"),u=r("/dTS"),c=r("IuhT");n({target:"Set",proto:!0,real:!0,forced:i},{difference:function(t){var e=s(this),r=new(u(e,o("Set")))(e),n=a(r["delete"]);return c(t,(function(t){n.call(r,t)})),r}})},"9SZg":function(t,e,r){var n=r("Ei+o"),i=r("5yw/"),o=r("2kyd"),s=o("iterator");t.exports=function(t){if(void 0!=t)return t[s]||t["@@iterator"]||i[n(t)]}},"9bAj":function(t,e,r){"use strict";var n=r("MMxC"),i=r("Zcjx"),o=r("f1E4"),s=r("cT1L"),a=r("PPXv"),u=r("IuhT");n({target:"Map",proto:!0,real:!0,forced:i},{reduce:function(t){var e=o(this),r=a(e),n=arguments.length<2,i=n?void 0:arguments[1];if(s(t),u(r,(function(r,o){n?(n=!1,i=o):i=t(i,o,r,e)}),void 0,!0,!0),n)throw TypeError("Reduce of empty map with no initial value");return i}})},"9znl":function(t,e,r){var n=r("MMxC"),i=r("aF2d");n({target:"Set",stat:!0},{from:i})},"A+b4":function(t,e,r){"use strict";var n=r("MMxC"),i=r("mTKU").start,o=r("HKQd"),s=o("trimStart"),a=s?function(){return i(this)}:"".trimStart;n({target:"String",proto:!0,forced:s},{trimStart:a,trimLeft:a})},A9H8:function(t,e,r){var n=r("MMxC"),i=r("IuhT"),o=r("arQb");n({target:"Object",stat:!0},{fromEntries:function(t){var e={};return i(t,(function(t,r){o(e,t,r)}),void 0,!0),e}})},AQYT:function(t,e,r){(function(t){(function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var s;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{s="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:r(14).Buffer}catch(S){}function a(t,e){var r=t.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function u(t,e,r){var n=a(t,r);return r-1>=e&&(n|=a(t,r-1)<<4),n}function c(t,e,r,n){for(var i=0,o=Math.min(t.length,r),s=e;s=49?a-49+10:a>=17?a-17+10:a}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,r){if("number"===typeof t)return this._initNumber(t,e,r);if("object"===typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var i=0;"-"===t[0]&&(i++,this.negative=1),i=0;i-=3)s=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=s<>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=2)i=u(t,e,n)<=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else{var a=t.length-e;for(n=a%2===0?e+1:e;n=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8}this.strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,s=o%n,a=Math.min(o,o-s)+r,u=0,h=r;h1&&0===this.words[this.length-1])this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[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];function d(t){for(var e=new Array(t.bitLength()),r=0;r>>i}return e}function p(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],s=i*o,a=67108863&s,u=s/67108864|0;r.words[0]=a;for(var c=1;c>>26,l=67108863&u,f=Math.min(c,e.length-1),d=Math.max(0,c-t.length+1);d<=f;d++){var p=c-d|0;i=0|t.words[p],o=0|e.words[d],s=i*o+l,h+=s/67108864|0,l=67108863&s}r.words[c]=0|l,u=0|h}return 0!==u?r.words[c]=0|u:r.length--,r.strip()}o.prototype.toString=function(t,e){var r;if(t=t||10,e=0|e||1,16===t||"hex"===t){r="";for(var i=0,o=0,s=0;s>>24-i&16777215,r=0!==o||s!==this.length-1?h[6-u.length]+u+r:u+r,i+=2,i>=26&&(i-=26,s--)}0!==o&&(r=o.toString(16)+r);while(r.length%e!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var c=l[t],d=f[t];r="";var p=this.clone();p.negative=0;while(!p.isZero()){var m=p.modn(d).toString(t);p=p.idivn(d),r=p.isZero()?m+r:h[c-m.length]+m+r}this.isZero()&&(r="0"+r);while(r.length%e!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return n("undefined"!==typeof s),this.toArrayLike(s,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var s,a,u="le"===e,c=new t(o),h=this.clone();if(u){for(a=0;!h.isZero();a++)s=h.andln(255),h.iushrn(8),c[a]=s;for(;a=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0===(8191&e)&&(r+=13,e>>>=13),0===(127&e)&&(r+=7,e>>>=7),0===(15&e)&&(r+=4,e>>>=4),0===(3&e)&&(r+=2,e>>>=2),0===(1&e)&&r++,r},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;rt.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,s=0;s>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,d=0|s[1],p=8191&d,m=d>>>13,g=0|s[2],v=8191&g,b=g>>>13,y=0|s[3],w=8191&y,M=y>>>13,_=0|s[4],E=8191&_,A=_>>>13,x=0|s[5],O=8191&x,S=x>>>13,k=0|s[6],R=8191&k,T=k>>>13,C=0|s[7],I=8191&C,P=C>>>13,L=0|s[8],j=8191&L,N=L>>>13,B=0|s[9],D=8191&B,U=B>>>13,F=0|a[0],q=8191&F,G=F>>>13,V=0|a[1],z=8191&V,$=V>>>13,K=0|a[2],H=8191&K,W=K>>>13,Z=0|a[3],J=8191&Z,X=Z>>>13,Y=0|a[4],Q=8191&Y,tt=Y>>>13,et=0|a[5],rt=8191&et,nt=et>>>13,it=0|a[6],ot=8191&it,st=it>>>13,at=0|a[7],ut=8191&at,ct=at>>>13,ht=0|a[8],lt=8191&ht,ft=ht>>>13,dt=0|a[9],pt=8191&dt,mt=dt>>>13;r.negative=t.negative^e.negative,r.length=19,n=Math.imul(l,q),i=Math.imul(l,G),i=i+Math.imul(f,q)|0,o=Math.imul(f,G);var gt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(p,q),i=Math.imul(p,G),i=i+Math.imul(m,q)|0,o=Math.imul(m,G),n=n+Math.imul(l,z)|0,i=i+Math.imul(l,$)|0,i=i+Math.imul(f,z)|0,o=o+Math.imul(f,$)|0;var vt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(v,q),i=Math.imul(v,G),i=i+Math.imul(b,q)|0,o=Math.imul(b,G),n=n+Math.imul(p,z)|0,i=i+Math.imul(p,$)|0,i=i+Math.imul(m,z)|0,o=o+Math.imul(m,$)|0,n=n+Math.imul(l,H)|0,i=i+Math.imul(l,W)|0,i=i+Math.imul(f,H)|0,o=o+Math.imul(f,W)|0;var bt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(w,q),i=Math.imul(w,G),i=i+Math.imul(M,q)|0,o=Math.imul(M,G),n=n+Math.imul(v,z)|0,i=i+Math.imul(v,$)|0,i=i+Math.imul(b,z)|0,o=o+Math.imul(b,$)|0,n=n+Math.imul(p,H)|0,i=i+Math.imul(p,W)|0,i=i+Math.imul(m,H)|0,o=o+Math.imul(m,W)|0,n=n+Math.imul(l,J)|0,i=i+Math.imul(l,X)|0,i=i+Math.imul(f,J)|0,o=o+Math.imul(f,X)|0;var yt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(E,q),i=Math.imul(E,G),i=i+Math.imul(A,q)|0,o=Math.imul(A,G),n=n+Math.imul(w,z)|0,i=i+Math.imul(w,$)|0,i=i+Math.imul(M,z)|0,o=o+Math.imul(M,$)|0,n=n+Math.imul(v,H)|0,i=i+Math.imul(v,W)|0,i=i+Math.imul(b,H)|0,o=o+Math.imul(b,W)|0,n=n+Math.imul(p,J)|0,i=i+Math.imul(p,X)|0,i=i+Math.imul(m,J)|0,o=o+Math.imul(m,X)|0,n=n+Math.imul(l,Q)|0,i=i+Math.imul(l,tt)|0,i=i+Math.imul(f,Q)|0,o=o+Math.imul(f,tt)|0;var wt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(O,q),i=Math.imul(O,G),i=i+Math.imul(S,q)|0,o=Math.imul(S,G),n=n+Math.imul(E,z)|0,i=i+Math.imul(E,$)|0,i=i+Math.imul(A,z)|0,o=o+Math.imul(A,$)|0,n=n+Math.imul(w,H)|0,i=i+Math.imul(w,W)|0,i=i+Math.imul(M,H)|0,o=o+Math.imul(M,W)|0,n=n+Math.imul(v,J)|0,i=i+Math.imul(v,X)|0,i=i+Math.imul(b,J)|0,o=o+Math.imul(b,X)|0,n=n+Math.imul(p,Q)|0,i=i+Math.imul(p,tt)|0,i=i+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0,n=n+Math.imul(l,rt)|0,i=i+Math.imul(l,nt)|0,i=i+Math.imul(f,rt)|0,o=o+Math.imul(f,nt)|0;var Mt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(R,q),i=Math.imul(R,G),i=i+Math.imul(T,q)|0,o=Math.imul(T,G),n=n+Math.imul(O,z)|0,i=i+Math.imul(O,$)|0,i=i+Math.imul(S,z)|0,o=o+Math.imul(S,$)|0,n=n+Math.imul(E,H)|0,i=i+Math.imul(E,W)|0,i=i+Math.imul(A,H)|0,o=o+Math.imul(A,W)|0,n=n+Math.imul(w,J)|0,i=i+Math.imul(w,X)|0,i=i+Math.imul(M,J)|0,o=o+Math.imul(M,X)|0,n=n+Math.imul(v,Q)|0,i=i+Math.imul(v,tt)|0,i=i+Math.imul(b,Q)|0,o=o+Math.imul(b,tt)|0,n=n+Math.imul(p,rt)|0,i=i+Math.imul(p,nt)|0,i=i+Math.imul(m,rt)|0,o=o+Math.imul(m,nt)|0,n=n+Math.imul(l,ot)|0,i=i+Math.imul(l,st)|0,i=i+Math.imul(f,ot)|0,o=o+Math.imul(f,st)|0;var _t=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(I,q),i=Math.imul(I,G),i=i+Math.imul(P,q)|0,o=Math.imul(P,G),n=n+Math.imul(R,z)|0,i=i+Math.imul(R,$)|0,i=i+Math.imul(T,z)|0,o=o+Math.imul(T,$)|0,n=n+Math.imul(O,H)|0,i=i+Math.imul(O,W)|0,i=i+Math.imul(S,H)|0,o=o+Math.imul(S,W)|0,n=n+Math.imul(E,J)|0,i=i+Math.imul(E,X)|0,i=i+Math.imul(A,J)|0,o=o+Math.imul(A,X)|0,n=n+Math.imul(w,Q)|0,i=i+Math.imul(w,tt)|0,i=i+Math.imul(M,Q)|0,o=o+Math.imul(M,tt)|0,n=n+Math.imul(v,rt)|0,i=i+Math.imul(v,nt)|0,i=i+Math.imul(b,rt)|0,o=o+Math.imul(b,nt)|0,n=n+Math.imul(p,ot)|0,i=i+Math.imul(p,st)|0,i=i+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0,n=n+Math.imul(l,ut)|0,i=i+Math.imul(l,ct)|0,i=i+Math.imul(f,ut)|0,o=o+Math.imul(f,ct)|0;var Et=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(j,q),i=Math.imul(j,G),i=i+Math.imul(N,q)|0,o=Math.imul(N,G),n=n+Math.imul(I,z)|0,i=i+Math.imul(I,$)|0,i=i+Math.imul(P,z)|0,o=o+Math.imul(P,$)|0,n=n+Math.imul(R,H)|0,i=i+Math.imul(R,W)|0,i=i+Math.imul(T,H)|0,o=o+Math.imul(T,W)|0,n=n+Math.imul(O,J)|0,i=i+Math.imul(O,X)|0,i=i+Math.imul(S,J)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(E,Q)|0,i=i+Math.imul(E,tt)|0,i=i+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(w,rt)|0,i=i+Math.imul(w,nt)|0,i=i+Math.imul(M,rt)|0,o=o+Math.imul(M,nt)|0,n=n+Math.imul(v,ot)|0,i=i+Math.imul(v,st)|0,i=i+Math.imul(b,ot)|0,o=o+Math.imul(b,st)|0,n=n+Math.imul(p,ut)|0,i=i+Math.imul(p,ct)|0,i=i+Math.imul(m,ut)|0,o=o+Math.imul(m,ct)|0,n=n+Math.imul(l,lt)|0,i=i+Math.imul(l,ft)|0,i=i+Math.imul(f,lt)|0,o=o+Math.imul(f,ft)|0;var At=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(D,q),i=Math.imul(D,G),i=i+Math.imul(U,q)|0,o=Math.imul(U,G),n=n+Math.imul(j,z)|0,i=i+Math.imul(j,$)|0,i=i+Math.imul(N,z)|0,o=o+Math.imul(N,$)|0,n=n+Math.imul(I,H)|0,i=i+Math.imul(I,W)|0,i=i+Math.imul(P,H)|0,o=o+Math.imul(P,W)|0,n=n+Math.imul(R,J)|0,i=i+Math.imul(R,X)|0,i=i+Math.imul(T,J)|0,o=o+Math.imul(T,X)|0,n=n+Math.imul(O,Q)|0,i=i+Math.imul(O,tt)|0,i=i+Math.imul(S,Q)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(E,rt)|0,i=i+Math.imul(E,nt)|0,i=i+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(w,ot)|0,i=i+Math.imul(w,st)|0,i=i+Math.imul(M,ot)|0,o=o+Math.imul(M,st)|0,n=n+Math.imul(v,ut)|0,i=i+Math.imul(v,ct)|0,i=i+Math.imul(b,ut)|0,o=o+Math.imul(b,ct)|0,n=n+Math.imul(p,lt)|0,i=i+Math.imul(p,ft)|0,i=i+Math.imul(m,lt)|0,o=o+Math.imul(m,ft)|0,n=n+Math.imul(l,pt)|0,i=i+Math.imul(l,mt)|0,i=i+Math.imul(f,pt)|0,o=o+Math.imul(f,mt)|0;var xt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(D,z),i=Math.imul(D,$),i=i+Math.imul(U,z)|0,o=Math.imul(U,$),n=n+Math.imul(j,H)|0,i=i+Math.imul(j,W)|0,i=i+Math.imul(N,H)|0,o=o+Math.imul(N,W)|0,n=n+Math.imul(I,J)|0,i=i+Math.imul(I,X)|0,i=i+Math.imul(P,J)|0,o=o+Math.imul(P,X)|0,n=n+Math.imul(R,Q)|0,i=i+Math.imul(R,tt)|0,i=i+Math.imul(T,Q)|0,o=o+Math.imul(T,tt)|0,n=n+Math.imul(O,rt)|0,i=i+Math.imul(O,nt)|0,i=i+Math.imul(S,rt)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(E,ot)|0,i=i+Math.imul(E,st)|0,i=i+Math.imul(A,ot)|0,o=o+Math.imul(A,st)|0,n=n+Math.imul(w,ut)|0,i=i+Math.imul(w,ct)|0,i=i+Math.imul(M,ut)|0,o=o+Math.imul(M,ct)|0,n=n+Math.imul(v,lt)|0,i=i+Math.imul(v,ft)|0,i=i+Math.imul(b,lt)|0,o=o+Math.imul(b,ft)|0,n=n+Math.imul(p,pt)|0,i=i+Math.imul(p,mt)|0,i=i+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var Ot=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(D,H),i=Math.imul(D,W),i=i+Math.imul(U,H)|0,o=Math.imul(U,W),n=n+Math.imul(j,J)|0,i=i+Math.imul(j,X)|0,i=i+Math.imul(N,J)|0,o=o+Math.imul(N,X)|0,n=n+Math.imul(I,Q)|0,i=i+Math.imul(I,tt)|0,i=i+Math.imul(P,Q)|0,o=o+Math.imul(P,tt)|0,n=n+Math.imul(R,rt)|0,i=i+Math.imul(R,nt)|0,i=i+Math.imul(T,rt)|0,o=o+Math.imul(T,nt)|0,n=n+Math.imul(O,ot)|0,i=i+Math.imul(O,st)|0,i=i+Math.imul(S,ot)|0,o=o+Math.imul(S,st)|0,n=n+Math.imul(E,ut)|0,i=i+Math.imul(E,ct)|0,i=i+Math.imul(A,ut)|0,o=o+Math.imul(A,ct)|0,n=n+Math.imul(w,lt)|0,i=i+Math.imul(w,ft)|0,i=i+Math.imul(M,lt)|0,o=o+Math.imul(M,ft)|0,n=n+Math.imul(v,pt)|0,i=i+Math.imul(v,mt)|0,i=i+Math.imul(b,pt)|0,o=o+Math.imul(b,mt)|0;var St=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(D,J),i=Math.imul(D,X),i=i+Math.imul(U,J)|0,o=Math.imul(U,X),n=n+Math.imul(j,Q)|0,i=i+Math.imul(j,tt)|0,i=i+Math.imul(N,Q)|0,o=o+Math.imul(N,tt)|0,n=n+Math.imul(I,rt)|0,i=i+Math.imul(I,nt)|0,i=i+Math.imul(P,rt)|0,o=o+Math.imul(P,nt)|0,n=n+Math.imul(R,ot)|0,i=i+Math.imul(R,st)|0,i=i+Math.imul(T,ot)|0,o=o+Math.imul(T,st)|0,n=n+Math.imul(O,ut)|0,i=i+Math.imul(O,ct)|0,i=i+Math.imul(S,ut)|0,o=o+Math.imul(S,ct)|0,n=n+Math.imul(E,lt)|0,i=i+Math.imul(E,ft)|0,i=i+Math.imul(A,lt)|0,o=o+Math.imul(A,ft)|0,n=n+Math.imul(w,pt)|0,i=i+Math.imul(w,mt)|0,i=i+Math.imul(M,pt)|0,o=o+Math.imul(M,mt)|0;var kt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(D,Q),i=Math.imul(D,tt),i=i+Math.imul(U,Q)|0,o=Math.imul(U,tt),n=n+Math.imul(j,rt)|0,i=i+Math.imul(j,nt)|0,i=i+Math.imul(N,rt)|0,o=o+Math.imul(N,nt)|0,n=n+Math.imul(I,ot)|0,i=i+Math.imul(I,st)|0,i=i+Math.imul(P,ot)|0,o=o+Math.imul(P,st)|0,n=n+Math.imul(R,ut)|0,i=i+Math.imul(R,ct)|0,i=i+Math.imul(T,ut)|0,o=o+Math.imul(T,ct)|0,n=n+Math.imul(O,lt)|0,i=i+Math.imul(O,ft)|0,i=i+Math.imul(S,lt)|0,o=o+Math.imul(S,ft)|0,n=n+Math.imul(E,pt)|0,i=i+Math.imul(E,mt)|0,i=i+Math.imul(A,pt)|0,o=o+Math.imul(A,mt)|0;var Rt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(D,rt),i=Math.imul(D,nt),i=i+Math.imul(U,rt)|0,o=Math.imul(U,nt),n=n+Math.imul(j,ot)|0,i=i+Math.imul(j,st)|0,i=i+Math.imul(N,ot)|0,o=o+Math.imul(N,st)|0,n=n+Math.imul(I,ut)|0,i=i+Math.imul(I,ct)|0,i=i+Math.imul(P,ut)|0,o=o+Math.imul(P,ct)|0,n=n+Math.imul(R,lt)|0,i=i+Math.imul(R,ft)|0,i=i+Math.imul(T,lt)|0,o=o+Math.imul(T,ft)|0,n=n+Math.imul(O,pt)|0,i=i+Math.imul(O,mt)|0,i=i+Math.imul(S,pt)|0,o=o+Math.imul(S,mt)|0;var Tt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(D,ot),i=Math.imul(D,st),i=i+Math.imul(U,ot)|0,o=Math.imul(U,st),n=n+Math.imul(j,ut)|0,i=i+Math.imul(j,ct)|0,i=i+Math.imul(N,ut)|0,o=o+Math.imul(N,ct)|0,n=n+Math.imul(I,lt)|0,i=i+Math.imul(I,ft)|0,i=i+Math.imul(P,lt)|0,o=o+Math.imul(P,ft)|0,n=n+Math.imul(R,pt)|0,i=i+Math.imul(R,mt)|0,i=i+Math.imul(T,pt)|0,o=o+Math.imul(T,mt)|0;var Ct=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(D,ut),i=Math.imul(D,ct),i=i+Math.imul(U,ut)|0,o=Math.imul(U,ct),n=n+Math.imul(j,lt)|0,i=i+Math.imul(j,ft)|0,i=i+Math.imul(N,lt)|0,o=o+Math.imul(N,ft)|0,n=n+Math.imul(I,pt)|0,i=i+Math.imul(I,mt)|0,i=i+Math.imul(P,pt)|0,o=o+Math.imul(P,mt)|0;var It=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(D,lt),i=Math.imul(D,ft),i=i+Math.imul(U,lt)|0,o=Math.imul(U,ft),n=n+Math.imul(j,pt)|0,i=i+Math.imul(j,mt)|0,i=i+Math.imul(N,pt)|0,o=o+Math.imul(N,mt)|0;var Pt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(D,pt),i=Math.imul(D,mt),i=i+Math.imul(U,pt)|0,o=Math.imul(U,mt);var Lt=(c+n|0)+((8191&i)<<13)|0;return c=(o+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,u[0]=gt,u[1]=vt,u[2]=bt,u[3]=yt,u[4]=wt,u[5]=Mt,u[6]=_t,u[7]=Et,u[8]=At,u[9]=xt,u[10]=Ot,u[11]=St,u[12]=kt,u[13]=Rt,u[14]=Tt,u[15]=Ct,u[16]=It,u[17]=Pt,u[18]=Lt,0!==c&&(u[19]=c,r.length++),r};function g(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o>>26)|0,i+=s>>>26,s&=67108863}r.words[o]=a,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}function v(t,e,r){var n=new b;return n.mulp(t,e,r)}function b(t,e){this.x=t,this.y=e}Math.imul||(m=p),o.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?m(this,t,e):n<63?p(this,t,e):n<1024?g(this,t,e):v(this,t,e),r},b.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n>=1;return n},b.prototype.permute=function(t,e,r,n,i,o){for(var s=0;s>>=1)i++;return 1<>>=13,r[2*s+1]=8191&o,o>>>=13;for(s=2*e;s>=26,e+=i/67108864|0,e+=o>>>26,this.words[r]=67108863&o}return 0!==e&&(this.words[r]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=d(t);if(0===e.length)return new o(1);for(var r=this,n=0;n=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(e=0;e>>26-r}s&&(this.words[e]=s,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<s)for(this.length-=s,c=0;c=0&&(0!==h||c>=i);c--){var l=0|this.words[c];this.words[c]=h<<26-o|l>>>o,h=l&a}return u&&0!==h&&(u.words[u.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(n("number"===typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===a)return this.strip();for(n(-1===a),a=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var r=this.length-t.length,n=this.clone(),i=t,s=0|i.words[i.length-1],a=this._countBits(s);r=26-a,0!==r&&(i=i.ushln(r),n.iushln(r),s=0|i.words[i.length-1]);var u,c=n.length-i.length;if("mod"!==e){u=new o(null),u.length=c+1,u.words=new Array(u.length);for(var h=0;h=0;f--){var d=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);d=Math.min(d/s|0,67108863),n._ishlnsubmul(i,d,f);while(0!==n.negative)d--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);u&&(u.words[f]=d)}return u&&u.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:u||null,mod:n}},o.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(t)),{div:i,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!==(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,s,a},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i=new o(1),s=new o(0),a=new o(0),u=new o(1),c=0;while(e.isEven()&&r.isEven())e.iushrn(1),r.iushrn(1),++c;var h=r.clone(),l=e.clone();while(!e.isZero()){for(var f=0,d=1;0===(e.words[0]&d)&&f<26;++f,d<<=1);if(f>0){e.iushrn(f);while(f-- >0)(i.isOdd()||s.isOdd())&&(i.iadd(h),s.isub(l)),i.iushrn(1),s.iushrn(1)}for(var p=0,m=1;0===(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0){r.iushrn(p);while(p-- >0)(a.isOdd()||u.isOdd())&&(a.iadd(h),u.isub(l)),a.iushrn(1),u.iushrn(1)}e.cmp(r)>=0?(e.isub(r),i.isub(a),s.isub(u)):(r.isub(e),a.isub(i),u.isub(s))}return{a:a,b:u,gcd:r.iushln(c)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i,s=new o(1),a=new o(0),u=r.clone();while(e.cmpn(1)>0&&r.cmpn(1)>0){for(var c=0,h=1;0===(e.words[0]&h)&&c<26;++c,h<<=1);if(c>0){e.iushrn(c);while(c-- >0)s.isOdd()&&s.iadd(u),s.iushrn(1)}for(var l=0,f=1;0===(r.words[0]&f)&&l<26;++l,f<<=1);if(l>0){r.iushrn(l);while(l-- >0)a.isOdd()&&a.iadd(u),a.iushrn(1)}e.cmp(r)>=0?(e.isub(r),s.isub(a)):(r.isub(e),a.isub(s))}return i=0===e.cmpn(1)?s:a,i.cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);do{while(e.isEven())e.iushrn(1);while(r.isEven())r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}while(1);return r.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"===typeof t);var e=t%26,r=(t-e)/26,i=1<>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){ni&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new x(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function M(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function E(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function O(t){x.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(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)}w.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),e=r.bitLength()}while(e>this.n);var n=e0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},i(M,w),M.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i>>22,o=s}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},M.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new M;else if("p224"===t)e=new _;else if("p192"===t)e=new E;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new A}return y[t]=e,e},x.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},x.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},x.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},x.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},x.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},x.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},x.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},x.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},x.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},x.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},x.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},x.prototype.isqr=function(t){return this.imul(t,t.clone())},x.prototype.sqr=function(t){return this.mul(t,t)},x.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2===1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}var i=this.m.subn(1),s=0;while(!i.isZero()&&0===i.andln(1))s++,i.iushrn(1);n(!i.isZero());var a=new o(1).toRed(this),u=a.redNeg(),c=this.m.subn(1).iushrn(1),h=this.m.bitLength();h=new o(2*h*h).toRed(this);while(0!==this.pow(h,c).cmp(u))h.redIAdd(u);var l=this.pow(h,i),f=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=s;while(0!==d.cmp(a)){for(var m=d,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g=0;i--){for(var h=e.words[i],l=c-1;l>=0;l--){var f=h>>l&1;s!==n[0]&&(s=this.sqr(s)),0!==f||0!==a?(a<<=1,a|=f,u++,(u===r||0===i&&0===l)&&(s=this.mul(s,n[a]),u=0,a=0)):u=0}c=26}return s},x.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},x.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new O(t)},i(O,x),O.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},O.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},O.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},O.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},O.prototype.invm=function(t){var e=this.imod(t._invmp(this.m).mul(this.r2));return e._forceRed(this)}})(t,this)}).call(this,r("hOG+")(t))},AQnt:function(t,e,r){"use strict";r.d(e,"a",(function(){return d}));var n=r("/7J2");const i="networks/5.7.1",o=new n["Logger"](i);function s(t){return t&&"function"===typeof t.renetwork}function a(t){const e=function(e,r){null==r&&(r={});const n=[];if(e.InfuraProvider&&"-"!==r.infura)try{n.push(new e.InfuraProvider(t,r.infura))}catch(i){}if(e.EtherscanProvider&&"-"!==r.etherscan)try{n.push(new e.EtherscanProvider(t,r.etherscan))}catch(i){}if(e.AlchemyProvider&&"-"!==r.alchemy)try{n.push(new e.AlchemyProvider(t,r.alchemy))}catch(i){}if(e.PocketProvider&&"-"!==r.pocket){const o=["goerli","ropsten","rinkeby","sepolia"];try{const i=new e.PocketProvider(t,r.pocket);i.network&&-1===o.indexOf(i.network.name)&&n.push(i)}catch(i){}}if(e.CloudflareProvider&&"-"!==r.cloudflare)try{n.push(new e.CloudflareProvider(t))}catch(i){}if(e.AnkrProvider&&"-"!==r.ankr)try{const i=["ropsten"],o=new e.AnkrProvider(t,r.ankr);o.network&&-1===i.indexOf(o.network.name)&&n.push(o)}catch(i){}if(0===n.length)return null;if(e.FallbackProvider){let i=1;return null!=r.quorum?i=r.quorum:"homestead"===t&&(i=2),new e.FallbackProvider(n,i)}return n[0]};return e.renetwork=function(t){return a(t)},e}function u(t,e){const r=function(r,n){return r.JsonRpcProvider?new r.JsonRpcProvider(t,e):null};return r.renetwork=function(e){return u(t,e)},r}const c={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:a("homestead")},h={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:a("ropsten")},l={chainId:63,name:"classicMordor",_defaultProvider:u("https://www.ethercluster.com/mordor","classicMordor")},f={unspecified:{chainId:0,name:"unspecified"},homestead:c,mainnet:c,morden:{chainId:2,name:"morden"},ropsten:h,testnet:h,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:a("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:a("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:a("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:a("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:u("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:l,classicTestnet:l,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:u("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:a("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:a("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},"arbitrum-goerli":{chainId:421613,name:"arbitrum-goerli"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function d(t){if(null==t)return null;if("number"===typeof t){for(const e in f){const r=f[e];if(r.chainId===t)return{name:r.name,chainId:r.chainId,ensAddress:r.ensAddress||null,_defaultProvider:r._defaultProvider||null}}return{chainId:t,name:"unknown"}}if("string"===typeof t){const e=f[t];return null==e?null:{name:e.name,chainId:e.chainId,ensAddress:e.ensAddress,_defaultProvider:e._defaultProvider||null}}const e=f[t.name];if(!e)return"number"!==typeof t.chainId&&o.throwArgumentError("invalid network chainId","network",t),t;0!==t.chainId&&t.chainId!==e.chainId&&o.throwArgumentError("network chainId mismatch","network",t);let r=t._defaultProvider||null;return null==r&&e._defaultProvider&&(r=s(e._defaultProvider)?e._defaultProvider.renetwork(t):e._defaultProvider),{name:t.name,chainId:e.chainId,ensAddress:t.ensAddress||e.ensAddress||null,_defaultProvider:r}}},AUX7:function(t,e){e.encrypt=function(t,e){return t._cipher.encryptBlock(e)},e.decrypt=function(t,e){return t._cipher.decryptBlock(e)}},Acmb:function(t,e,r){var n=r("jtLI"),i=r("cTDu"),o=r("CjUg"),s=r("SprQ"),a=o("IE_PROTO"),u=Object.prototype;t.exports=s?Object.getPrototypeOf:function(t){return t=i(t),n(t,a)?t[a]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},"B/G0":function(t,e,r){var n=r("MMxC"),i=r("tny8"),o=r("cC5k"),s=r("0qr0"),a=r("g8rt"),u=r("arQb");n({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){var e,r,n=s(t),i=a.f,c=o(n),h={},l=0;while(c.length>l)r=i(n,e=c[l++]),void 0!==r&&u(h,e,r);return h}})},BtTS:function(t,e,r){var n=r("Mi8B");n("Int16",(function(t){return function(e,r,n){return t(this,e,r,n)}}))},C3pJ:function(t,e,r){var n,i,o,s=r("ukPv"),a=r("MVys"),u=r("UwrT"),c=r("7BAe"),h=r("yj7k"),l=r("8w+9"),f=r("xRZI"),d=s.location,p=s.setImmediate,m=s.clearImmediate,g=s.process,v=s.MessageChannel,b=s.Dispatch,y=0,w={},M="onreadystatechange",_=function(t){if(w.hasOwnProperty(t)){var e=w[t];delete w[t],e()}},E=function(t){return function(){_(t)}},A=function(t){_(t.data)},x=function(t){s.postMessage(t+"",d.protocol+"//"+d.host)};p&&m||(p=function(t){var e=[],r=1;while(arguments.length>r)e.push(arguments[r++]);return w[++y]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},n(y),y},m=function(t){delete w[t]},"process"==u(g)?n=function(t){g.nextTick(E(t))}:b&&b.now?n=function(t){b.now(E(t))}:v&&!f?(i=new v,o=i.port2,i.port1.onmessage=A,n=c(o.postMessage,o,1)):!s.addEventListener||"function"!=typeof postMessage||s.importScripts||a(x)||"file:"===d.protocol?n=M in l("script")?function(t){h.appendChild(l("script"))[M]=function(){h.removeChild(this),_(t)}}:function(t){setTimeout(E(t),0)}:(n=x,s.addEventListener("message",A,!1))),t.exports={set:p,clear:m}},C7V6:function(t,e,r){var n=r("2kyd"),i=n("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[i]=!1,"/./"[t](e)}catch(n){}}return!1}},"CDr+":function(t,e,r){"use strict";var n=r("MMxC"),i=r("/3zY").indexOf,o=r("R8iy"),s=r("kGMc"),a=[].indexOf,u=!!a&&1/[1].indexOf(1,-0)<0,c=o("indexOf"),h=s("indexOf",{ACCESSORS:!0,1:0});n({target:"Array",proto:!0,forced:u||!c||!h},{indexOf:function(t){return u?a.apply(this,arguments)||0:i(this,t,arguments.length>1?arguments[1]:void 0)}})},CO2k:function(t,e,r){"use strict";var n=r("MMxC"),i=r("Zcjx"),o=r("29mP"),s=r("f1E4"),a=r("cT1L"),u=r("/dTS"),c=r("IuhT");n({target:"Set",proto:!0,real:!0,forced:i},{union:function(t){var e=s(this),r=new(u(e,o("Set")))(e);return c(t,a(r.add),r),r}})},CRpX:function(t,e,r){var n=r("ukPv"),i=r("XX5T"),o=r("FbcW"),s=r("lz10"),a=r("2kyd"),u=a("iterator"),c=a("toStringTag"),h=o.values;for(var l in i){var f=n[l],d=f&&f.prototype;if(d){if(d[u]!==h)try{s(d,u,h)}catch(m){d[u]=h}if(d[c]||s(d,c,l),i[l])for(var p in o)if(d[p]!==o[p])try{s(d,p,o[p])}catch(m){d[p]=o[p]}}}},CdV7:function(t,e,r){var n=r("tny8"),i=r("P0e2"),o=r("0qr0"),s=r("e3V2").f,a=function(t){return function(e){var r,a=o(e),u=i(a),c=u.length,h=0,l=[];while(c>h)r=u[h++],n&&!s.call(a,r)||l.push(t?[r,a[r]]:a[r]);return l}};t.exports={entries:a(!0),values:a(!1)}},CfXC:function(t,e,r){var n=r("OfWw"),i=r("hwdV").Buffer,o=r("ZDAU"),s=r("P7XM");function a(t,e,r,s){o.call(this),this._cipher=new n.AES(e),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=s,this._mode=t}s(a,o),a.prototype._update=function(t){return this._mode.encrypt(this,t,this._decrypt)},a.prototype._final=function(){this._cipher.scrub()},t.exports=a},CjUg:function(t,e,r){var n=r("xxaU"),i=r("evbn"),o=n("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},Cq6t:function(t,e){var r=1/0,n=Math.abs,i=Math.pow,o=Math.floor,s=Math.log,a=Math.LN2,u=function(t,e,u){var c,h,l,f=new Array(u),d=8*u-e-1,p=(1<>1,g=23===e?i(2,-24)-i(2,-77):0,v=t<0||0===t&&1/t<0?1:0,b=0;for(t=n(t),t!=t||t===r?(h=t!=t?1:0,c=p):(c=o(s(t)/a),t*(l=i(2,-c))<1&&(c--,l*=2),t+=c+m>=1?g/l:g*i(2,1-m),t*l>=2&&(c++,l/=2),c+m>=p?(h=0,c=p):c+m>=1?(h=(t*l-1)*i(2,e),c+=m):(h=t*i(2,m-1)*i(2,e),c=0));e>=8;f[b++]=255&h,h/=256,e-=8);for(c=c<0;f[b++]=255&c,c/=256,d-=8);return f[--b]|=128*v,f},c=function(t,e){var n,o=t.length,s=8*o-e-1,a=(1<>1,c=s-7,h=o-1,l=t[h--],f=127&l;for(l>>=7;c>0;f=256*f+t[h],h--,c-=8);for(n=f&(1<<-c)-1,f>>=-c,c+=e;c>0;n=256*n+t[h],h--,c-=8);if(0===f)f=1-u;else{if(f===a)return n?NaN:l?-r:r;n+=i(2,e),f-=u}return(l?-1:1)*n*i(2,f-e)};t.exports={pack:u,unpack:c}},CxN6:function(t,e,r){"use strict";r.r(e);var n=r("bkUu");r.d(e,"randomBytes",(function(){return n["a"]}));var i=r("VVP+");r.d(e,"shuffled",(function(){return i["a"]}))},DLvh:function(t,e,r){"use strict";var n,i=e,o=r("fZJM"),s=r("QTa/"),a=r("86MQ"),u=a.assert;function c(t){"short"===t.type?this.curve=new s.short(t):"edwards"===t.type?this.curve=new s.edwards(t):this.curve=new s.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,u(this.g.validate(),"Invalid curve"),u(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function h(t,e){Object.defineProperty(i,t,{configurable:!0,enumerable:!0,get:function(){var r=new c(e);return Object.defineProperty(i,t,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=c,h("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:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),h("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:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),h("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:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),h("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:o.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"]}),h("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:o.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"]}),h("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),h("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:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r("QJsb")}catch(l){n=void 0}h("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:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},DRew:function(t,e,r){"use strict";r.d(e,"c",(function(){return p})),r.d(e,"d",(function(){return m})),r.d(e,"a",(function(){return g})),r.d(e,"b",(function(){return v}));var n=r("VJ7P"),i=r("/7J2"),o=r("qWAS"),s=r("4218");const a=new i["Logger"](o["a"]),u={},c=s["a"].from(0),h=s["a"].from(-1);function l(t,e,r,n){const o={fault:e,operation:r};return void 0!==n&&(o.value=n),a.throwError(t,i["Logger"].errors.NUMERIC_FAULT,o)}let f="0";while(f.length<256)f+=f;function d(t){if("number"!==typeof t)try{t=s["a"].from(t).toNumber()}catch(e){}return"number"===typeof t&&t>=0&&t<=256&&!(t%1)?"1"+f.substring(0,t):a.throwArgumentError("invalid decimal size","decimals",t)}function p(t,e){null==e&&(e=0);const r=d(e);t=s["a"].from(t);const n=t.lt(c);n&&(t=t.mul(h));let i=t.mod(r).toString();while(i.length2&&a.throwArgumentError("too many decimal points","value",t);let o=i[0],u=i[1];o||(o="0"),u||(u="0");while("0"===u[u.length-1])u=u.substring(0,u.length-1);u.length>r.length-1&&l("fractional component exceeds decimals","underflow","parseFixed"),""===u&&(u="0");while(u.lengthnull==t[e]?n:(typeof t[e]!==r&&a.throwArgumentError("invalid fixed format ("+e+" not "+r+")","format."+e,t[e]),t[e]);e=i("signed","boolean",e),r=i("width","number",r),n=i("decimals","number",n)}return r%8&&a.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",r),n>80&&a.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",n),new g(u,e,r,n)}}class v{constructor(t,e,r,n){t!==u&&a.throwError("cannot use FixedNumber constructor; use FixedNumber.from",i["Logger"].errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=n,this._hex=e,this._value=r,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(t){this.format.name!==t.format.name&&a.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",t)}addUnsafe(t){this._checkFormat(t);const e=m(this._value,this.format.decimals),r=m(t._value,t.format.decimals);return v.fromValue(e.add(r),this.format.decimals,this.format)}subUnsafe(t){this._checkFormat(t);const e=m(this._value,this.format.decimals),r=m(t._value,t.format.decimals);return v.fromValue(e.sub(r),this.format.decimals,this.format)}mulUnsafe(t){this._checkFormat(t);const e=m(this._value,this.format.decimals),r=m(t._value,t.format.decimals);return v.fromValue(e.mul(r).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(t){this._checkFormat(t);const e=m(this._value,this.format.decimals),r=m(t._value,t.format.decimals);return v.fromValue(e.mul(this.format._multiplier).div(r),this.format.decimals,this.format)}floor(){const t=this.toString().split(".");1===t.length&&t.push("0");let e=v.from(t[0],this.format);const r=!t[1].match(/^(0*)$/);return this.isNegative()&&r&&(e=e.subUnsafe(b.toFormat(e.format))),e}ceiling(){const t=this.toString().split(".");1===t.length&&t.push("0");let e=v.from(t[0],this.format);const r=!t[1].match(/^(0*)$/);return!this.isNegative()&&r&&(e=e.addUnsafe(b.toFormat(e.format))),e}round(t){null==t&&(t=0);const e=this.toString().split(".");if(1===e.length&&e.push("0"),(t<0||t>80||t%1)&&a.throwArgumentError("invalid decimal count","decimals",t),e[1].length<=t)return this;const r=v.from("1"+f.substring(0,t),this.format),n=y.toFormat(this.format);return this.mulUnsafe(r).addUnsafe(n).floor().divUnsafe(r)}isZero(){return"0.0"===this._value||"0"===this._value}isNegative(){return"-"===this._value[0]}toString(){return this._value}toHexString(t){if(null==t)return this._hex;t%8&&a.throwArgumentError("invalid byte width","width",t);const e=s["a"].from(this._hex).fromTwos(this.format.width).toTwos(t).toHexString();return Object(n["hexZeroPad"])(e,t/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(t){return v.fromString(this._value,t)}static fromValue(t,e,r){return null!=r||null==e||Object(s["d"])(e)||(r=e,e=null),null==e&&(e=0),null==r&&(r="fixed"),v.fromString(p(t,e),g.from(r))}static fromString(t,e){null==e&&(e="fixed");const r=g.from(e),i=m(t,r.decimals);!r.signed&&i.lt(c)&&l("unsigned value cannot be negative","overflow","value",t);let o=null;r.signed?o=i.toTwos(r.width).toHexString():(o=i.toHexString(),o=Object(n["hexZeroPad"])(o,r.width/8));const s=p(i,r.decimals);return new v(u,o,s,r)}static fromBytes(t,e){null==e&&(e="fixed");const r=g.from(e);if(Object(n["arrayify"])(t).length>r.width/8)throw new Error("overflow");let i=s["a"].from(t);r.signed&&(i=i.fromTwos(r.width));const o=i.toTwos((r.signed?0:1)+r.width).toHexString(),a=p(i,r.decimals);return new v(u,o,a,r)}static from(t,e){if("string"===typeof t)return v.fromString(t,e);if(Object(n["isBytes"])(t))return v.fromBytes(t,e);try{return v.fromValue(t,0,e)}catch(r){if(r.code!==i["Logger"].errors.INVALID_ARGUMENT)throw r}return a.throwArgumentError("invalid FixedNumber value","value",t)}static isFixedNumber(t){return!(!t||!t._isFixedNumber)}}const b=v.from(1),y=v.from("0.5")},DVoG:function(t,e,r){var n=r("MMxC"),i=r("ls1J"),o=r("f1E4"),s=i.has,a=i.toKey;n({target:"Reflect",stat:!0},{hasOwnMetadata:function(t,e){var r=arguments.length<3?void 0:a(arguments[2]);return s(t,o(e),r)}})},Dbv2:function(t,e,r){"use strict";var n=r("MMxC"),i=r("Zcjx"),o=r("f1E4"),s=r("cT1L");n({target:"Map",proto:!0,real:!0,forced:i},{update:function(t,e){var r=o(this),n=arguments.length;s(e);var i=r.has(t);if(!i&&n<3)throw TypeError("Updating absent value");var a=i?r.get(t):s(n>2?arguments[2]:void 0)(t,r);return r.set(t,e(a,t,r)),r}})},De94:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},Di6M:function(t,e,r){"use strict";var n=2147483647,i=36,o=1,s=26,a=38,u=700,c=72,h=128,l="-",f=/[^\0-\u007E]/,d=/[.\u3002\uFF0E\uFF61]/g,p="Overflow: input needs wider integers to process",m=i-o,g=Math.floor,v=String.fromCharCode,b=function(t){var e=[],r=0,n=t.length;while(r=55296&&i<=56319&&r>1,t+=g(t/e);t>m*s>>1;n+=i)t=g(t/m);return g(n+(m+1)*t/(t+a))},M=function(t){var e=[];t=b(t);var r,a,u=t.length,f=h,d=0,m=c;for(r=0;r=f&&ag((n-d)/A))throw RangeError(p);for(d+=(E-f)*A,f=E,r=0;rn)throw RangeError(p);if(a==f){for(var x=d,O=i;;O+=i){var S=O<=m?o:O>=m+s?s:O-m;if(x")})),h=function(){return"$0"==="a".replace(/./,"$0")}(),l=o("replace"),f=function(){return!!/./[l]&&""===/./[l]("a","$0")}(),d=!i((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}));t.exports=function(t,e,r,l){var p=o(t),m=!i((function(){var e={};return e[p]=function(){return 7},7!=""[t](e)})),g=m&&!i((function(){var e=!1,r=/a/;return"split"===t&&(r={},r.constructor={},r.constructor[u]=function(){return r},r.flags="",r[p]=/./[p]),r.exec=function(){return e=!0,null},r[p](""),!e}));if(!m||!g||"replace"===t&&(!c||!h||f)||"split"===t&&!d){var v=/./[p],b=r(p,""[t],(function(t,e,r,n,i){return e.exec===s?m&&!i?{done:!0,value:v.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}}),{REPLACE_KEEPS_$0:h,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:f}),y=b[0],w=b[1];n(String.prototype,t,y),n(RegExp.prototype,p,2==e?function(t,e){return w.call(t,this,e)}:function(t){return w.call(t,this)})}l&&a(RegExp.prototype[p],"sham",!0)}},EOz7:function(t,e,r){"use strict";var n=r("MMxC"),i=r("g8rt").f,o=r("oa35"),s=r("rjJZ"),a=r("FCfD"),u=r("C7V6"),c=r("Zcjx"),h="".startsWith,l=Math.min,f=u("startsWith"),d=!c&&!f&&!!function(){var t=i(String.prototype,"startsWith");return t&&!t.writable}();n({target:"String",proto:!0,forced:!d&&!f},{startsWith:function(t){var e=String(a(this));s(t);var r=o(l(arguments.length>1?arguments[1]:void 0,e.length)),n=String(t);return h?h.call(e,n,r):e.slice(r,r+n.length)===n}})},EgRx:function(t,e,r){var n=r("kiNa");n(Math,"Math",!0)},"Ei+o":function(t,e,r){var n=r("1Cbe"),i=r("UwrT"),o=r("2kyd"),s=o("toStringTag"),a="Arguments"==i(function(){return arguments}()),u=function(t,e){try{return t[e]}catch(r){}};t.exports=n?i:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=u(e=Object(t),s))?r:a?i(e):"Object"==(n=i(e))&&"function"==typeof e.callee?"Arguments":n}},EzR6:function(t,e,r){var n=r("MVys"),i=r("UwrT"),o="".split;t.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?o.call(t,""):Object(t)}:Object},F52u:function(t,e,r){var n=r("UwrT");t.exports=function(t){if("number"!=typeof t&&"Number"!=n(t))throw TypeError("Incorrect invocation");return+t}},FBts:function(t,e,r){var n=r("MMxC");n({target:"Math",stat:!0},{imulh:function(t,e){var r=65535,n=+t,i=+e,o=n&r,s=i&r,a=n>>16,u=i>>16,c=(a*s>>>0)+(o*s>>>16);return a*u+(c>>16)+((o*u>>>0)+(c&r)>>16)}})},FCfD:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},FIIH:function(t,e,r){"use strict";var n=r("ukPv"),i=r("FVwB"),o=r("FbcW"),s=r("2kyd"),a=s("iterator"),u=n.Uint8Array,c=o.values,h=o.keys,l=o.entries,f=i.aTypedArray,d=i.exportTypedArrayMethod,p=u&&u.prototype[a],m=!!p&&("values"==p.name||void 0==p.name),g=function(){return c.call(f(this))};d("entries",(function(){return l.call(f(this))})),d("keys",(function(){return h.call(f(this))})),d("values",g,!m),d(a,g,!m)},FK48:function(t,e,r){"use strict";var n=r("MMxC"),i=r("IuhT"),o=r("cT1L");n({target:"Map",stat:!0},{groupBy:function(t,e){var r=new this;o(e);var n=o(r.has),s=o(r.get),a=o(r.set);return i(t,(function(t){var i=e(t);n.call(r,i)?s.call(r,i).push(t):a.call(r,i,[t])})),r}})},FKIO:function(t,e,r){var n=r("MMxC");n({target:"Math",stat:!0},{umulh:function(t,e){var r=65535,n=+t,i=+e,o=n&r,s=i&r,a=n>>>16,u=i>>>16,c=(a*s>>>0)+(o*s>>>16);return a*u+(c>>>16)+((o*u>>>0)+(c&r)>>>16)}})},FVwB:function(t,e,r){"use strict";var n,i=r("GNqc"),o=r("tny8"),s=r("ukPv"),a=r("tSXo"),u=r("jtLI"),c=r("Ei+o"),h=r("lz10"),l=r("NMFW"),f=r("YfKC").f,d=r("Acmb"),p=r("g1ZG"),m=r("2kyd"),g=r("evbn"),v=s.Int8Array,b=v&&v.prototype,y=s.Uint8ClampedArray,w=y&&y.prototype,M=v&&d(v),_=b&&d(b),E=Object.prototype,A=E.isPrototypeOf,x=m("toStringTag"),O=g("TYPED_ARRAY_TAG"),S=i&&!!p&&"Opera"!==c(s.opera),k=!1,R={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},T=function(t){var e=c(t);return"DataView"===e||u(R,e)},C=function(t){return a(t)&&u(R,c(t))},I=function(t){if(C(t))return t;throw TypeError("Target is not a typed array")},P=function(t){if(p){if(A.call(M,t))return t}else for(var e in R)if(u(R,n)){var r=s[e];if(r&&(t===r||A.call(r,t)))return t}throw TypeError("Target is not a typed array constructor")},L=function(t,e,r){if(o){if(r)for(var n in R){var i=s[n];i&&u(i.prototype,t)&&delete i.prototype[t]}_[t]&&!r||l(_,t,r?e:S&&b[t]||e)}},j=function(t,e,r){var n,i;if(o){if(p){if(r)for(n in R)i=s[n],i&&u(i,t)&&delete i[t];if(M[t]&&!r)return;try{return l(M,t,r?e:S&&v[t]||e)}catch(a){}}for(n in R)i=s[n],!i||i[t]&&!r||l(i,t,e)}};for(n in R)s[n]||(S=!1);if((!S||"function"!=typeof M||M===Function.prototype)&&(M=function(){throw TypeError("Incorrect invocation")},S))for(n in R)s[n]&&p(s[n],M);if((!S||!_||_===E)&&(_=M.prototype,S))for(n in R)s[n]&&p(s[n].prototype,_);if(S&&d(w)!==_&&p(w,_),o&&!u(_,x))for(n in k=!0,f(_,x,{get:function(){return a(this)?this[O]:void 0}}),R)s[n]&&h(s[n],O,n);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:S,TYPED_ARRAY_TAG:k&&O,aTypedArray:I,aTypedArrayConstructor:P,exportTypedArrayMethod:L,exportTypedArrayStaticMethod:j,isView:T,isTypedArray:C,TypedArray:M,TypedArrayPrototype:_}},FbcW:function(t,e,r){"use strict";var n=r("0qr0"),i=r("eNh0"),o=r("5yw/"),s=r("1aI8"),a=r("uMwj"),u="Array Iterator",c=s.set,h=s.getterFor(u);t.exports=a(Array,"Array",(function(t,e){c(this,{type:u,target:n(t),index:0,kind:e})}),(function(){var t=h(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},Fs9M:function(t,e,r){var n=r("MVys");t.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},FuvP:function(t,e,r){var n=r("MMxC"),i=r("qA1w");n({target:"Set",stat:!0},{of:i})},GNqc:function(t,e){t.exports="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof DataView},GPZX:function(t,e,r){var n=r("MMxC"),i=r("ls1J"),o=r("f1E4"),s=i.toKey,a=i.getMap,u=i.store;n({target:"Reflect",stat:!0},{deleteMetadata:function(t,e){var r=arguments.length<3?void 0:s(arguments[2]),n=a(o(e),r,!1);if(void 0===n||!n["delete"](t))return!1;if(n.size)return!0;var i=u.get(e);return i["delete"](r),!!i.size||u["delete"](e)}})},GPrf:function(t,e,r){var n=r("2kyd"),i=n("iterator"),o=!1;try{var s=0,a={next:function(){return{done:!!s++}},return:function(){o=!0}};a[i]=function(){return this},Array.from(a,(function(){throw 2}))}catch(u){}t.exports=function(t,e){if(!e&&!o)return!1;var r=!1;try{var n={};n[i]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(u){}return r}},"Gw+j":function(t,e,r){"use strict";var n=r("MMxC"),i=r("Zcjx"),o=r("29mP"),s=r("f1E4"),a=r("cT1L"),u=r("/dTS"),c=r("IuhT");n({target:"Set",proto:!0,real:!0,forced:i},{symmetricDifference:function(t){var e=s(this),r=new(u(e,o("Set")))(e),n=a(r["delete"]),i=a(r.add);return c(t,(function(t){n.call(r,t)||i.call(r,t)})),r}})},H8Ov:function(t,e,r){var n=r("I65O");n("toPrimitive")},"HFX+":function(t,e,r){(function(n,i){var o;(function(){"use strict";var s="input is invalid type",a="finalize already called",u="object"===typeof window,c=u?window:{};c.JS_SHA3_NO_WINDOW&&(u=!1);var h=!u&&"object"===typeof self,l=!c.JS_SHA3_NO_NODE_JS&&"object"===typeof n&&n.versions&&n.versions.node;l?c=i:h&&(c=self);var f=!c.JS_SHA3_NO_COMMON_JS&&"object"===typeof t&&t.exports,d=r("FzHg"),p=!c.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!==typeof ArrayBuffer,m="0123456789abcdef".split(""),g=[31,7936,2031616,520093696],v=[4,1024,262144,67108864],b=[1,256,65536,16777216],y=[6,1536,393216,100663296],w=[0,8,16,24],M=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],_=[224,256,384,512],E=[128,256],A=["hex","buffer","arrayBuffer","array","digest"],x={128:168,256:136};!c.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!p||!c.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"===typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});for(var O=function(t,e,r){return function(n){return new z(t,e,t).update(n)[r]()}},S=function(t,e,r){return function(n,i){return new z(t,e,i).update(n)[r]()}},k=function(t,e,r){return function(e,n,i,o){return N["cshake"+t].update(e,n,i,o)[r]()}},R=function(t,e,r){return function(e,n,i,o){return N["kmac"+t].update(e,n,i,o)[r]()}},T=function(t,e,r,n){for(var i=0;i>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}function $(t,e,r){z.call(this,t,e,r)}z.prototype.update=function(t){if(this.finalized)throw new Error(a);var e,r=typeof t;if("string"!==r){if("object"!==r)throw new Error(s);if(null===t)throw new Error(s);if(p&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!p||!ArrayBuffer.isView(t)))throw new Error(s);e=!0}var n,i,o=this.blocks,u=this.byteCount,c=t.length,h=this.blockCount,l=0,f=this.s;while(l>2]|=t[l]<>2]|=i<>2]|=(192|i>>6)<>2]|=(128|63&i)<=57344?(o[n>>2]|=(224|i>>12)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<>2]|=(240|i>>18)<>2]|=(128|i>>12&63)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<=u){for(this.start=n-u,this.block=o[h],n=0;n>=8,r=255&t;while(r>0)i.unshift(r),t>>=8,r=255&t,++n;return e?i.push(n):i.unshift(n),this.update(i),i.length},z.prototype.encodeString=function(t){var e,r=typeof t;if("string"!==r){if("object"!==r)throw new Error(s);if(null===t)throw new Error(s);if(p&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!p||!ArrayBuffer.isView(t)))throw new Error(s);e=!0}var n=0,i=t.length;if(e)n=i;else for(var o=0;o=57344?n+=3:(a=65536+((1023&a)<<10|1023&t.charCodeAt(++o)),n+=4)}return n+=this.encode(8*n),this.update(t),n},z.prototype.bytepad=function(t,e){for(var r=this.encode(e),n=0;n>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(t[0]=t[r],e=1;e>4&15]+m[15&t]+m[t>>12&15]+m[t>>8&15]+m[t>>20&15]+m[t>>16&15]+m[t>>28&15]+m[t>>24&15];s%e===0&&(K(r),o=0)}return i&&(t=r[o],a+=m[t>>4&15]+m[15&t],i>1&&(a+=m[t>>12&15]+m[t>>8&15]),i>2&&(a+=m[t>>20&15]+m[t>>16&15])),a},z.prototype.arrayBuffer=function(){this.finalize();var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,s=0,a=this.outputBits>>3;t=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(a);var u=new Uint32Array(t);while(s>8&255,u[t+2]=e>>16&255,u[t+3]=e>>24&255;a%r===0&&K(n)}return o&&(t=a<<2,e=n[s],u[t]=255&e,o>1&&(u[t+1]=e>>8&255),o>2&&(u[t+2]=e>>16&255)),u},$.prototype=new z,$.prototype.finalize=function(){return this.encode(this.outputBits,!0),z.prototype.finalize.call(this)};var K=function(t){var e,r,n,i,o,s,a,u,c,h,l,f,d,p,m,g,v,b,y,w,_,E,A,x,O,S,k,R,T,C,I,P,L,j,N,B,D,U,F,q,G,V,z,$,K,H,W,Z,J,X,Y,Q,tt,et,rt,nt,it,ot,st,at,ut,ct,ht;for(n=0;n<48;n+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],o=t[1]^t[11]^t[21]^t[31]^t[41],s=t[2]^t[12]^t[22]^t[32]^t[42],a=t[3]^t[13]^t[23]^t[33]^t[43],u=t[4]^t[14]^t[24]^t[34]^t[44],c=t[5]^t[15]^t[25]^t[35]^t[45],h=t[6]^t[16]^t[26]^t[36]^t[46],l=t[7]^t[17]^t[27]^t[37]^t[47],f=t[8]^t[18]^t[28]^t[38]^t[48],d=t[9]^t[19]^t[29]^t[39]^t[49],e=f^(s<<1|a>>>31),r=d^(a<<1|s>>>31),t[0]^=e,t[1]^=r,t[10]^=e,t[11]^=r,t[20]^=e,t[21]^=r,t[30]^=e,t[31]^=r,t[40]^=e,t[41]^=r,e=i^(u<<1|c>>>31),r=o^(c<<1|u>>>31),t[2]^=e,t[3]^=r,t[12]^=e,t[13]^=r,t[22]^=e,t[23]^=r,t[32]^=e,t[33]^=r,t[42]^=e,t[43]^=r,e=s^(h<<1|l>>>31),r=a^(l<<1|h>>>31),t[4]^=e,t[5]^=r,t[14]^=e,t[15]^=r,t[24]^=e,t[25]^=r,t[34]^=e,t[35]^=r,t[44]^=e,t[45]^=r,e=u^(f<<1|d>>>31),r=c^(d<<1|f>>>31),t[6]^=e,t[7]^=r,t[16]^=e,t[17]^=r,t[26]^=e,t[27]^=r,t[36]^=e,t[37]^=r,t[46]^=e,t[47]^=r,e=h^(i<<1|o>>>31),r=l^(o<<1|i>>>31),t[8]^=e,t[9]^=r,t[18]^=e,t[19]^=r,t[28]^=e,t[29]^=r,t[38]^=e,t[39]^=r,t[48]^=e,t[49]^=r,p=t[0],m=t[1],H=t[11]<<4|t[10]>>>28,W=t[10]<<4|t[11]>>>28,R=t[20]<<3|t[21]>>>29,T=t[21]<<3|t[20]>>>29,at=t[31]<<9|t[30]>>>23,ut=t[30]<<9|t[31]>>>23,V=t[40]<<18|t[41]>>>14,z=t[41]<<18|t[40]>>>14,j=t[2]<<1|t[3]>>>31,N=t[3]<<1|t[2]>>>31,g=t[13]<<12|t[12]>>>20,v=t[12]<<12|t[13]>>>20,Z=t[22]<<10|t[23]>>>22,J=t[23]<<10|t[22]>>>22,C=t[33]<<13|t[32]>>>19,I=t[32]<<13|t[33]>>>19,ct=t[42]<<2|t[43]>>>30,ht=t[43]<<2|t[42]>>>30,et=t[5]<<30|t[4]>>>2,rt=t[4]<<30|t[5]>>>2,B=t[14]<<6|t[15]>>>26,D=t[15]<<6|t[14]>>>26,b=t[25]<<11|t[24]>>>21,y=t[24]<<11|t[25]>>>21,X=t[34]<<15|t[35]>>>17,Y=t[35]<<15|t[34]>>>17,P=t[45]<<29|t[44]>>>3,L=t[44]<<29|t[45]>>>3,x=t[6]<<28|t[7]>>>4,O=t[7]<<28|t[6]>>>4,nt=t[17]<<23|t[16]>>>9,it=t[16]<<23|t[17]>>>9,U=t[26]<<25|t[27]>>>7,F=t[27]<<25|t[26]>>>7,w=t[36]<<21|t[37]>>>11,_=t[37]<<21|t[36]>>>11,Q=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,$=t[8]<<27|t[9]>>>5,K=t[9]<<27|t[8]>>>5,S=t[18]<<20|t[19]>>>12,k=t[19]<<20|t[18]>>>12,ot=t[29]<<7|t[28]>>>25,st=t[28]<<7|t[29]>>>25,q=t[38]<<8|t[39]>>>24,G=t[39]<<8|t[38]>>>24,E=t[48]<<14|t[49]>>>18,A=t[49]<<14|t[48]>>>18,t[0]=p^~g&b,t[1]=m^~v&y,t[10]=x^~S&R,t[11]=O^~k&T,t[20]=j^~B&U,t[21]=N^~D&F,t[30]=$^~H&Z,t[31]=K^~W&J,t[40]=et^~nt&ot,t[41]=rt^~it&st,t[2]=g^~b&w,t[3]=v^~y&_,t[12]=S^~R&C,t[13]=k^~T&I,t[22]=B^~U&q,t[23]=D^~F&G,t[32]=H^~Z&X,t[33]=W^~J&Y,t[42]=nt^~ot&at,t[43]=it^~st&ut,t[4]=b^~w&E,t[5]=y^~_&A,t[14]=R^~C&P,t[15]=T^~I&L,t[24]=U^~q&V,t[25]=F^~G&z,t[34]=Z^~X&Q,t[35]=J^~Y&tt,t[44]=ot^~at&ct,t[45]=st^~ut&ht,t[6]=w^~E&p,t[7]=_^~A&m,t[16]=C^~P&x,t[17]=I^~L&O,t[26]=q^~V&j,t[27]=G^~z&N,t[36]=X^~Q&$,t[37]=Y^~tt&K,t[46]=at^~ct&et,t[47]=ut^~ht&rt,t[8]=E^~p&g,t[9]=A^~m&v,t[18]=P^~x&S,t[19]=L^~O&k,t[28]=V^~j&B,t[29]=z^~N&D,t[38]=Q^~$&H,t[39]=tt^~K&W,t[48]=ct^~et&nt,t[49]=ht^~rt&it,t[0]^=M[n],t[1]^=M[n+1]};if(f)t.exports=N;else{for(D=0;Du)i.f(t,r=n[u++],e[r]);return t}},Hg0r:function(t,e,r){"use strict";var n=r("vpQ4"),i=r("U8pU"),o=r("KQm4"),s=r("q1tI"),a=r.n(s),u=r("QLaP"),c=r.n(u),h=r("YS25"),l=r("7zRj"),f=r.n(l),d=r("wFfJ"),p=r("ANjH"),m=r("7bO/"),g=r("+0iv"),v=r.n(g),b=r("T5bk"),y=r("6DQo"),w=r.n(y),M=r("1OyB"),_=r("vuIU"),E=r("QTEQ"),A=r.n(E),x=(r("vgmO"),r("ODXe")),O=r("o0o1"),S=r.n(O),k=Array.isArray.bind(Array),R=function(t){return"function"===typeof t},T=function(t){return t},C=function(){},I=function(t,e){for(var r=0,n=t.length;r-1&&(e[r]=t[r]),e}),{})}var U=function(){function t(){Object(M["a"])(this,t),this._handleActions=null,this.hooks=B.reduce((function(t,e){return t[e]=[],t}),{})}return Object(_["a"])(t,[{key:"use",value:function(t){c()(v()(t),"plugin.use: plugin should be plain object");var e=this.hooks;for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(c()(e[r],"plugin.use: unknown plugin property: ".concat(r)),"_handleActions"===r?this._handleActions=t[r]:"extraEnhancers"===r?e[r]=t[r]:e[r].push(t[r]))}},{key:"apply",value:function(t,e){var r=this.hooks,n=["onError","onHmr"];c()(n.indexOf(t)>-1,"plugin.apply: hook ".concat(t," cannot be applied"));var i=r[t];return function(){if(i.length){var t=!0,r=!1,n=void 0;try{for(var o,s=i[Symbol.iterator]();!(t=(o=s.next()).done);t=!0){var a=o.value;a.apply(void 0,arguments)}}catch(u){r=!0,n=u}finally{try{t||null==s.return||s.return()}finally{if(r)throw n}}}else e&&e.apply(void 0,arguments)}}},{key:"get",value:function(t){var e=this.hooks;return c()(t in e,"plugin.get: hook ".concat(t," cannot be got")),"extraReducers"===t?F(e[t]):"onReducer"===t?q(e[t]):e[t]}}]),t}();function F(t){var e={},r=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done);r=!0){var u=s.value;e=Object(n["a"])({},e,u)}}catch(c){i=!0,o=c}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return e}function q(t){return function(e){var r=!0,n=!1,i=void 0;try{for(var o,s=t[Symbol.iterator]();!(r=(o=s.next()).done);r=!0){var a=o.value;e=a(e)}}catch(u){n=!0,i=u}finally{try{r||null==s.return||s.return()}finally{if(n)throw i}}return e}}function G(t){var e=t.reducers,r=t.initialState,n=t.plugin,s=t.sagaMiddleware,a=t.promiseMiddleware,u=t.createOpts.setupMiddlewares,h=void 0===u?T:u,l=n.get("extraEnhancers");c()(k(l),"[app.start] extraEnhancers should be array, but got ".concat(Object(i["a"])(l)));var f=n.get("onAction"),d=h([a,s].concat(Object(o["a"])(A()(f)))),m=p["c"],g=[p["a"].apply(void 0,Object(o["a"])(d))].concat(Object(o["a"])(l));return Object(p["d"])(e,r,m.apply(void 0,Object(o["a"])(g)))}function V(t,e){var r="".concat(e.namespace).concat(L).concat(t),n=r.replace(/\/@@[^/]+?$/,""),i=Array.isArray(e.reducers)?e.reducers[0][n]:e.reducers&&e.reducers[n];return i||e.effects&&e.effects[n]?r:t}function z(t,e,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return S.a.mark((function o(){var s;return S.a.wrap((function(o){while(1)switch(o.prev=o.next){case 0:o.t0=S.a.keys(t);case 1:if((o.t1=o.t0()).done){o.next=7;break}if(s=o.t1.value,!Object.prototype.hasOwnProperty.call(t,s)){o.next=5;break}return o.delegateYield(S.a.mark((function o(){var a,u;return S.a.wrap((function(o){while(1)switch(o.prev=o.next){case 0:return a=$(s,t[s],e,r,n,i),o.next=3,m["b"].fork(a);case 3:return u=o.sent,o.next=6,m["b"].fork(S.a.mark((function t(){return S.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,m["b"].take("".concat(e.namespace,"/@@CANCEL_EFFECTS"));case 2:return t.next=4,m["b"].cancel(u);case 4:case"end":return t.stop()}}),t)})));case 6:case"end":return o.stop()}}),o)}))(),"t2",5);case 5:o.next=1;break;case 7:case"end":return o.stop()}}),o)}))}function $(t,e,r,n,i,s){var a,u,h=S.a.mark(v),l=e,f="takeEvery";if(Array.isArray(e)){var d=Object(x["a"])(e,1);l=d[0];var p=e[1];p&&p.type&&(f=p.type,"throttle"===f&&(c()(p.ms,"app.start: opts.ms should be defined if type is throttle"),a=p.ms),"poll"===f&&(c()(p.delay,"app.start: opts.delay should be defined if type is poll"),u=p.delay)),c()(["watcher","takeEvery","takeLatest","throttle","poll"].indexOf(f)>-1,"app.start: effect type should be takeEvery, takeLatest, throttle, poll or watcher")}function g(){}function v(){var e,i,a,u,c,f,d,p,v,b=arguments;return S.a.wrap((function(h){while(1)switch(h.prev=h.next){case 0:for(e=b.length,i=new Array(e),a=0;a0?i[0]:{},c=u.__dva_resolve,f=void 0===c?g:c,d=u.__dva_reject,p=void 0===d?g:d,h.prev=2,h.next=5,m["b"].put({type:"".concat(t).concat(L,"@@start")});case 5:return h.next=7,l.apply(void 0,Object(o["a"])(i.concat(K(r,s))));case 7:return v=h.sent,h.next=10,m["b"].put({type:"".concat(t).concat(L,"@@end")});case 10:f(v),h.next=17;break;case 13:h.prev=13,h.t0=h["catch"](2),n(h.t0,{key:t,effectArgs:i}),h.t0._dontReject||p(h.t0);case 17:case"end":return h.stop()}}),h,null,[[2,13]])}var b=H(i,v,r,t);switch(f){case"watcher":return v;case"takeLatest":return S.a.mark((function e(){return S.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,m["b"].takeLatest(t,b);case 2:case"end":return e.stop()}}),e)}));case"throttle":return S.a.mark((function e(){return S.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,m["b"].throttle(a,t,b);case 2:case"end":return e.stop()}}),e)}));case"poll":return S.a.mark((function e(){var r,n,i,o,s,a,c;return S.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=function(t,e){var i;return S.a.wrap((function(r){while(1)switch(r.prev=r.next){case 0:i=t.call;case 1:return r.next=4,i(b,e);case 4:return r.next=6,i(n,u);case 6:r.next=1;break;case 8:case"end":return r.stop()}}),r)},n=function(t){return new Promise((function(e){return setTimeout(e,t)}))},r=S.a.mark(i),o=m["b"].call,s=m["b"].take,a=m["b"].race;case 4:return e.next=7,s("".concat(t,"-start"));case 7:return c=e.sent,e.next=10,a([o(i,m["b"],c),s("".concat(t,"-stop"))]);case 10:e.next=4;break;case 12:case"end":return e.stop()}}),e)}));default:return S.a.mark((function e(){return S.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,m["b"].takeEvery(t,b);case 2:case"end":return e.stop()}}),e)}))}}function K(t,e){function r(r,n){c()(r,"dispatch: action should be a plain Object with type");var i=e.namespacePrefixWarning,o=void 0===i||i;o&&w()(0!==r.indexOf("".concat(t.namespace).concat(L)),"[".concat(n,"] ").concat(r," should not be prefixed with namespace ").concat(t.namespace))}function i(e){var i=e.type;return r(i,"sagaEffects.put"),m["b"].put(Object(n["a"])({},e,{type:V(i,t)}))}function o(e){var i=e.type;return r(i,"sagaEffects.put.resolve"),m["b"].put.resolve(Object(n["a"])({},e,{type:V(i,t)}))}function s(e){return"string"===typeof e?(r(e,"sagaEffects.take"),m["b"].take(V(e,t))):Array.isArray(e)?m["b"].take(e.map((function(e){return"string"===typeof e?(r(e,"sagaEffects.take"),V(e,t)):e}))):m["b"].take(e)}return i.resolve=o,Object(n["a"])({},m["b"],{put:i,take:s})}function H(t,e,r,n){var i=!0,o=!1,s=void 0;try{for(var a,u=t[Symbol.iterator]();!(i=(a=u.next()).done);i=!0){var c=a.value;e=c(e,m["b"],r,n)}}catch(h){o=!0,s=h}finally{try{i||null==u.return||u.return()}finally{if(o)throw s}}return e}function W(t){return t}function Z(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:W;return function(r,n){var i=n.type;return c()(i,"dispatch: action should be a plain Object with type"),t===i?e(r,n):r}}function J(){for(var t=arguments.length,e=new Array(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:e,r=arguments.length>1?arguments[1]:void 0;return n(t,r)}}function Y(t,e,r){return Array.isArray(t)?t[1]((r||X)(t[0],e)):(r||X)(t||{},e)}function Q(t){return function(){return function(t){return function(r){var i=r.type;return e(i)?new Promise((function(e,i){t(Object(n["a"])({__dva_resolve:e,__dva_reject:i},r))})):t(r)}}};function e(e){if(!e||"string"!==typeof e)return!1;var r=e.split(L),n=Object(x["a"])(r,1),i=n[0],o=t._models.filter((function(t){return t.namespace===i}))[0];return!!(o&&o.effects&&o.effects[e])}}function tt(t,e){return function(r){var i=r.type;return c()(i,"dispatch: action should be a plain Object with type"),w()(0!==i.indexOf("".concat(e.namespace).concat(L)),"dispatch: ".concat(i," should not be prefixed with namespace ").concat(e.namespace)),t(Object(n["a"])({},r,{type:V(i,e)}))}}function et(t,e,r,n){var i=[],o=[];for(var s in t)if(Object.prototype.hasOwnProperty.call(t,s)){var a=t[s],u=a({dispatch:tt(r._store.dispatch,e),history:r._history},n);R(u)?i.push(u):o.push(s)}return{funcs:i,nonFuncs:o}}function rt(t,e){if(t[e]){var r=t[e],n=r.funcs,i=r.nonFuncs;w()(0===i.length,"[app.unmodel] subscription should return unlistener function, check these subscriptions ".concat(i.join(", ")));var o=!0,s=!1,a=void 0;try{for(var u,c=n[Symbol.iterator]();!(o=(u=c.next()).done);o=!0){var h=u.value;h()}}catch(l){s=!0,a=l}finally{try{o||null==c.return||c.return()}finally{if(s)throw a}}delete t[e]}}var nt=C,it=I,ot={namespace:"@@dva",state:0,reducers:{UPDATE:function(t){return t+1}}};function st(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.initialReducer,i=e.setupApp,o=void 0===i?nt:i,s=new U;s.use(D(t));var a={_models:[N(Object(n["a"])({},ot))],_store:null,_plugin:s,use:s.use.bind(s),model:u,start:d};return a;function u(t){var e=N(Object(n["a"])({},t));return a._models.push(e),e}function h(e,r,n,i){i=u(i);var o=a._store;o.asyncReducers[i.namespace]=Y(i.reducers,i.state,s._handleActions),o.replaceReducer(e()),i.effects&&o.runSaga(a._getSaga(i.effects,i,r,s.get("onEffect"),t)),i.subscriptions&&(n[i.namespace]=et(i.subscriptions,i,a,r))}function l(t,e,r,n){var i=a._store;delete i.asyncReducers[n],delete e[n],i.replaceReducer(t()),i.dispatch({type:"@@dva/UPDATE"}),i.dispatch({type:"".concat(n,"/@@CANCEL_EFFECTS")}),rt(r,n),a._models=a._models.filter((function(t){return t.namespace!==n}))}function f(t,e,r,n,i){var o=a._store,s=i.namespace,u=it(a._models,(function(t){return t.namespace===s}));~u&&(o.dispatch({type:"".concat(s,"/@@CANCEL_EFFECTS")}),delete o.asyncReducers[s],delete e[s],rt(r,s),a._models.splice(u,1)),a.model(i),o.dispatch({type:"@@dva/UPDATE"})}function d(){var i=function(t,e){t&&("string"===typeof t&&(t=new Error(t)),t.preventDefault=function(){t._dontReject=!0},s.apply("onError",(function(t){throw new Error(t.stack||t)}))(t,a._store.dispatch,e))},u=Object(m["a"])(),d=Q(a);a._getSaga=z.bind(null);var g=[],v=Object(n["a"])({},r),b=!0,y=!1,w=void 0;try{for(var M,_=a._models[Symbol.iterator]();!(b=(M=_.next()).done);b=!0){var E=M.value;v[E.namespace]=Y(E.reducers,E.state,s._handleActions),E.effects&&g.push(a._getSaga(E.effects,E,i,s.get("onEffect"),t))}}catch(V){y=!0,w=V}finally{try{b||null==_.return||_.return()}finally{if(y)throw w}}var A=s.get("onReducer"),x=s.get("extraReducers");c()(Object.keys(x).every((function(t){return!(t in v)})),"[app.start] extraReducers is conflict with other reducers, reducers list: ".concat(Object.keys(v).join(", "))),a._store=G({reducers:q(),initialState:t.initialState||{},plugin:s,createOpts:e,sagaMiddleware:u,promiseMiddleware:d});var O=a._store;O.runSaga=u.run,O.asyncReducers={};var S=s.get("onStateChange"),k=!0,R=!1,T=void 0;try{for(var C,I=function(){var t=C.value;O.subscribe((function(){t(O.getState())}))},P=S[Symbol.iterator]();!(k=(C=P.next()).done);k=!0)I()}catch(V){R=!0,T=V}finally{try{k||null==P.return||P.return()}finally{if(R)throw T}}g.forEach(u.run),o(a);var L={},j=!0,N=!1,B=void 0;try{for(var D,U=this._models[Symbol.iterator]();!(j=(D=U.next()).done);j=!0){var F=D.value;F.subscriptions&&(L[F.namespace]=et(F.subscriptions,F,a,i))}}catch(V){N=!0,B=V}finally{try{j||null==U.return||U.return()}finally{if(N)throw B}}function q(){return A(Object(p["b"])(Object(n["a"])({},v,x,a._store?a._store.asyncReducers:{})))}a.model=h.bind(a,q,i,L),a.unmodel=l.bind(a,q,v,L),a.replaceModel=f.bind(a,q,v,L,i)}}var at=r("Ty5D"),ut=r("u4tm"),ct=r("tRgb"),ht=(r("LpSC"),r("md7G")),lt=r("foSv"),ft=r("Ji7U"),dt={};function pt(t,e){e=e.default||e,dt[e.namespace]||(t.model(e),dt[e.namespace]=1)}var mt=function(){return null};function gt(t){var e=t.resolve;return function(r){function n(){var e,r;Object(M["a"])(this,n);for(var i=arguments.length,o=new Array(i),s=0;s0&&void 0!==arguments[0]?arguments[0]:{},e=t.history||Object(h["b"])(),r={initialReducer:{router:bt(e)},setupMiddlewares:function(t){return[yt(e)].concat(Object(o["a"])(t))},setupApp:function(t){t._history=Ot(e)}},n=st(t,r),s=n.start;return n.router=a,n.start=u,n;function a(t){c()(wt(t),"[app.router] router should be function, but got ".concat(Object(i["a"])(t))),n._router=t}function u(t){Et(t)&&(t=f.a.querySelector(t),c()(t,"[app.start] container ".concat(t," not found"))),c()(!t||_t(t),"[app.start] container should be HTMLElement"),c()(n._router,"[app.start] router must be registered before app.start()"),n._store||s.call(n);var e=n._store;if(n._getProvider=At.bind(null,e,n),!t)return At(e,this,this._router);xt(t,e,n,n._router),n._plugin.apply("onHmr")(xt.bind(null,t,e,n))}}function _t(t){return"object"===Object(i["a"])(t)&&null!==t&&t.nodeType&&t.nodeName}function Et(t){return"string"===typeof t}function At(t,e,r){var i=function(i){return a.a.createElement(d["a"],{store:t},r(Object(n["a"])({app:e,history:e._history},i)))};return i}function xt(t,e,n,i){var o=r("i8i4");o.render(a.a.createElement(At(e,n,i)),t)}function Ot(t){var e=t.listen;return t.listen=function(r){var n=r.toString(),i="handleLocationChange"===r.name&&n.indexOf("onLocationChanged")>-1||n.indexOf(".inTimeTravelling")>-1&&n.indexOf(".inTimeTravelling")>-1&&n.indexOf("arguments[2]")>-1;return r(t.location,t.action),e.call(t,(function(){for(var t=arguments.length,e=new Array(t),n=0;nt)r[t]=arguments[t++];return r}),i)},I65O:function(t,e,r){var n=r("nFn1"),i=r("jtLI"),o=r("IjB0"),s=r("YfKC").f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});i(e,t)||s(e,t,{value:o.f(t)})}},"IC/V":function(t,e,r){var n=r("I65O");n("split")},IGnA:function(t,e,r){var n=r("0qr0"),i=r("uGHk").f,o={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(t){try{return i(t)}catch(e){return s.slice()}};t.exports.f=function(t){return s&&"[object Window]"==o.call(t)?a(t):i(n(t))}},IHuh:function(t,e,r){"use strict";r.d(e,"a",(function(){return i})),r.d(e,"b",(function(){return o}));var n=r("VJ7P");function i(t){t=atob(t);const e=[];for(let r=0;rp;p++)if(g=h?y(n(b=t[p])[0],b[1]):y(t[p]),g&&g instanceof c)return g;return new c(!1)}f=d.call(t)}v=f.next;while(!(b=v.call(f)).done)if(g=u(f,y,b.value,h),"object"==typeof g&&g&&g instanceof c)return g;return new c(!1)};h.stop=function(t){return new c(!0,t)}},IyrG:function(t,e,r){"use strict";var n=r("MMxC"),i=r("ukPv"),o=r("ZSlt"),s=r("ssJt"),a="ArrayBuffer",u=o[a],c=i[a];n({global:!0,forced:c!==u},{ArrayBuffer:u}),s(a)},IzB8:function(t,e,r){t.exports=r("Oomr")(r("RnPE"))},"J+Da":function(t,e,r){var n=r("m0kY"),i=r("oa35");t.exports=function(t){if(void 0===t)return 0;var e=n(t),r=i(e);if(e!==r)throw RangeError("Wrong length or index");return r}},J3Yn:function(t,e,r){var n=r("pb5k"),i=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(t){return i.call(t)}),t.exports=n.inspectSource},J428:function(t,e,r){var n=r("MMxC"),i=r("CdV7").values;n({target:"Object",stat:!0},{values:function(t){return i(t)}})},JBbW:function(t,e,r){(function(e){const n=r("b94t");function i(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}i.prototype.initialize=function(t,e){for(let r=0;r<50;++r)this.state[r]=0;this.blockSize=t/8,this.count=0,this.squeezing=!1},i.prototype.absorb=function(t){for(let e=0;e>>this.count%4*8&255,this.count+=1,this.count===this.blockSize&&(n.p1600(this.state),this.count=0);return r},i.prototype.copy=function(t){for(let e=0;e<50;++e)t.state[e]=this.state[e];t.blockSize=this.blockSize,t.count=this.count,t.squeezing=this.squeezing},t.exports=i}).call(this,r("HDXh").Buffer)},JI6M:function(t,e,r){"use strict";var n=r("MMxC"),i=r("mTKU").trim,o=r("HKQd");n({target:"String",proto:!0,forced:o("trim")},{trim:function(){return i(this)}})},JS3A:function(t,e,r){var n=r("tSXo");t.exports=function(t){if(!n(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},JXee:function(t,e,r){var n=r("MMxC"),i=r("YMoz"),o=r("jdp+");n({target:"Math",stat:!0},{fscale:function(t,e,r,n,s){return o(i(t,e,r,n,s))}})},JXem:function(t,e,r){"use strict";var n,i,o,s=r("Acmb"),a=r("lz10"),u=r("jtLI"),c=r("2kyd"),h=r("Zcjx"),l=c("iterator"),f=!1,d=function(){return this};[].keys&&(o=[].keys(),"next"in o?(i=s(s(o)),i!==Object.prototype&&(n=i)):f=!0),void 0==n&&(n={}),h||u(n,l)||a(n,l,d),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:f}},JgbS:function(t,e,r){"use strict";r.r(e),r.d(e,"Provider",(function(){return n["b"]})),r.d(e,"BaseProvider",(function(){return o["a"]})),r.d(e,"Resolver",(function(){return o["b"]})),r.d(e,"UrlJsonRpcProvider",(function(){return v["b"]})),r.d(e,"FallbackProvider",(function(){return rt})),r.d(e,"AlchemyProvider",(function(){return M})),r.d(e,"AlchemyWebSocketProvider",(function(){return w})),r.d(e,"AnkrProvider",(function(){return x})),r.d(e,"CloudflareProvider",(function(){return k})),r.d(e,"EtherscanProvider",(function(){return U})),r.d(e,"InfuraProvider",(function(){return at})),r.d(e,"InfuraWebSocketProvider",(function(){return st})),r.d(e,"JsonRpcProvider",(function(){return c["a"]})),r.d(e,"JsonRpcBatchProvider",(function(){return ut})),r.d(e,"NodesmithProvider",(function(){return lt})),r.d(e,"PocketProvider",(function(){return pt})),r.d(e,"StaticJsonRpcProvider",(function(){return v["a"]})),r.d(e,"Web3Provider",(function(){return yt})),r.d(e,"WebSocketProvider",(function(){return g})),r.d(e,"IpcProvider",(function(){return nt})),r.d(e,"JsonRpcSigner",(function(){return c["b"]})),r.d(e,"getDefaultProvider",(function(){return Mt})),r.d(e,"getNetwork",(function(){return i["a"]})),r.d(e,"isCommunityResource",(function(){return a["c"]})),r.d(e,"isCommunityResourcable",(function(){return a["b"]})),r.d(e,"showThrottleMessage",(function(){return a["d"]})),r.d(e,"Formatter",(function(){return a["a"]}));var n=r("7aoe"),i=r("AQnt"),o=r("vHmw"),s=r("m9oY"),a=r("fwYn"),u=r("4218"),c=r("PoCP"),h=r("/7J2"),l=r("SkWp");let f=null;try{if(f=WebSocket,null==f)throw new Error("inject please")}catch(_t){const t=new h["Logger"](l["a"]);f=function(){t.throwError("WebSockets not supported in this environment",h["Logger"].errors.UNSUPPORTED_OPERATION,{operation:"new WebSocket()"})}}var d=function(t,e,r,n){function i(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,o){function s(t){try{u(n.next(t))}catch(e){o(e)}}function a(t){try{u(n["throw"](t))}catch(e){o(e)}}function u(t){t.done?r(t.value):i(t.value).then(s,a)}u((n=n.apply(t,e||[])).next())}))};const p=new h["Logger"](l["a"]);let m=1;class g extends c["a"]{constructor(t,e){"any"===e&&p.throwError("WebSocketProvider does not support 'any' network yet",h["Logger"].errors.UNSUPPORTED_OPERATION,{operation:"network:any"}),super("string"===typeof t?t:"_websocket",e),this._pollingInterval=-1,this._wsReady=!1,"string"===typeof t?Object(s["defineReadOnly"])(this,"_websocket",new f(this.connection.url)):Object(s["defineReadOnly"])(this,"_websocket",t),Object(s["defineReadOnly"])(this,"_requests",{}),Object(s["defineReadOnly"])(this,"_subs",{}),Object(s["defineReadOnly"])(this,"_subIds",{}),Object(s["defineReadOnly"])(this,"_detectNetwork",super.detectNetwork()),this.websocket.onopen=()=>{this._wsReady=!0,Object.keys(this._requests).forEach((t=>{this.websocket.send(this._requests[t].payload)}))},this.websocket.onmessage=t=>{const e=t.data,r=JSON.parse(e);if(null!=r.id){const t=String(r.id),n=this._requests[t];if(delete this._requests[t],void 0!==r.result)n.callback(null,r.result),this.emit("debug",{action:"response",request:JSON.parse(n.payload),response:r.result,provider:this});else{let t=null;r.error?(t=new Error(r.error.message||"unknown error"),Object(s["defineReadOnly"])(t,"code",r.error.code||null),Object(s["defineReadOnly"])(t,"response",e)):t=new Error("unknown error"),n.callback(t,void 0),this.emit("debug",{action:"response",error:t,request:JSON.parse(n.payload),provider:this})}}else if("eth_subscription"===r.method){const t=this._subs[r.params.subscription];t&&t.processFunc(r.params.result)}else console.warn("this should not happen")};const r=setInterval((()=>{this.emit("poll")}),1e3);r.unref&&r.unref()}get websocket(){return this._websocket}detectNetwork(){return this._detectNetwork}get pollingInterval(){return 0}resetEventsBlock(t){p.throwError("cannot reset events block on WebSocketProvider",h["Logger"].errors.UNSUPPORTED_OPERATION,{operation:"resetEventBlock"})}set pollingInterval(t){p.throwError("cannot set polling interval on WebSocketProvider",h["Logger"].errors.UNSUPPORTED_OPERATION,{operation:"setPollingInterval"})}poll(){return d(this,void 0,void 0,(function*(){return null}))}set polling(t){t&&p.throwError("cannot set polling on WebSocketProvider",h["Logger"].errors.UNSUPPORTED_OPERATION,{operation:"setPolling"})}send(t,e){const r=m++;return new Promise(((n,i)=>{function o(t,e){return t?i(t):n(e)}const s=JSON.stringify({method:t,params:e,id:r,jsonrpc:"2.0"});this.emit("debug",{action:"request",request:JSON.parse(s),provider:this}),this._requests[String(r)]={callback:o,payload:s},this._wsReady&&this.websocket.send(s)}))}static defaultUrl(){return"ws://localhost:8546"}_subscribe(t,e,r){return d(this,void 0,void 0,(function*(){let n=this._subIds[t];null==n&&(n=Promise.all(e).then((t=>this.send("eth_subscribe",t))),this._subIds[t]=n);const i=yield n;this._subs[i]={tag:t,processFunc:r}}))}_startEvent(t){switch(t.type){case"block":this._subscribe("block",["newHeads"],(t=>{const e=u["a"].from(t.number).toNumber();this._emitted.block=e,this.emit("block",e)}));break;case"pending":this._subscribe("pending",["newPendingTransactions"],(t=>{this.emit("pending",t)}));break;case"filter":this._subscribe(t.tag,["logs",this._getFilter(t.filter)],(e=>{null==e.removed&&(e.removed=!1),this.emit(t.filter,this.formatter.filterLog(e))}));break;case"tx":{const e=t=>{const e=t.hash;this.getTransactionReceipt(e).then((t=>{t&&this.emit(e,t)}))};e(t),this._subscribe("tx",["newHeads"],(t=>{this._events.filter((t=>"tx"===t.type)).forEach(e)}));break}case"debug":case"poll":case"willPoll":case"didPoll":case"error":break;default:console.log("unhandled:",t);break}}_stopEvent(t){let e=t.tag;if("tx"===t.type){if(this._events.filter((t=>"tx"===t.type)).length)return;e="tx"}else if(this.listenerCount(t.event))return;const r=this._subIds[e];r&&(delete this._subIds[e],r.then((t=>{this._subs[t]&&(delete this._subs[t],this.send("eth_unsubscribe",[t]))})))}destroy(){return d(this,void 0,void 0,(function*(){this.websocket.readyState===f.CONNECTING&&(yield new Promise((t=>{this.websocket.onopen=function(){t(!0)},this.websocket.onerror=function(){t(!1)}}))),this.websocket.close(1e3)}))}}var v=r("vzeg");const b=new h["Logger"](l["a"]),y="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";class w extends g{constructor(t,e){const r=new M(t,e),n=r.connection.url.replace(/^http/i,"ws").replace(".alchemyapi.",".ws.alchemyapi.");super(n,r.network),Object(s["defineReadOnly"])(this,"apiKey",r.apiKey)}isCommunityResource(){return this.apiKey===y}}class M extends v["b"]{static getWebSocketProvider(t,e){return new w(t,e)}static getApiKey(t){return null==t?y:(t&&"string"!==typeof t&&b.throwArgumentError("invalid apiKey","apiKey",t),t)}static getUrl(t,e){let r=null;switch(t.name){case"homestead":r="eth-mainnet.alchemyapi.io/v2/";break;case"goerli":r="eth-goerli.g.alchemy.com/v2/";break;case"matic":r="polygon-mainnet.g.alchemy.com/v2/";break;case"maticmum":r="polygon-mumbai.g.alchemy.com/v2/";break;case"arbitrum":r="arb-mainnet.g.alchemy.com/v2/";break;case"arbitrum-goerli":r="arb-goerli.g.alchemy.com/v2/";break;case"optimism":r="opt-mainnet.g.alchemy.com/v2/";break;case"optimism-goerli":r="opt-goerli.g.alchemy.com/v2/";break;default:b.throwArgumentError("unsupported network","network",arguments[0])}return{allowGzip:!0,url:"https://"+r+e,throttleCallback:(t,r)=>(e===y&&Object(a["d"])(),Promise.resolve(!0))}}isCommunityResource(){return this.apiKey===y}}const _=new h["Logger"](l["a"]),E="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";function A(t){switch(t){case"homestead":return"rpc.ankr.com/eth/";case"ropsten":return"rpc.ankr.com/eth_ropsten/";case"rinkeby":return"rpc.ankr.com/eth_rinkeby/";case"goerli":return"rpc.ankr.com/eth_goerli/";case"matic":return"rpc.ankr.com/polygon/";case"arbitrum":return"rpc.ankr.com/arbitrum/"}return _.throwArgumentError("unsupported network","name",t)}class x extends v["b"]{isCommunityResource(){return this.apiKey===E}static getApiKey(t){return null==t?E:t}static getUrl(t,e){null==e&&(e=E);const r={allowGzip:!0,url:"https://"+A(t.name)+e,throttleCallback:(t,r)=>(e.apiKey===E&&Object(a["d"])(),Promise.resolve(!0))};return null!=e.projectSecret&&(r.user="",r.password=e.projectSecret),r}}var O=function(t,e,r,n){function i(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,o){function s(t){try{u(n.next(t))}catch(e){o(e)}}function a(t){try{u(n["throw"](t))}catch(e){o(e)}}function u(t){t.done?r(t.value):i(t.value).then(s,a)}u((n=n.apply(t,e||[])).next())}))};const S=new h["Logger"](l["a"]);class k extends v["b"]{static getApiKey(t){return null!=t&&S.throwArgumentError("apiKey not supported for cloudflare","apiKey",t),null}static getUrl(t,e){let r=null;switch(t.name){case"homestead":r="https://cloudflare-eth.com/";break;default:S.throwArgumentError("unsupported network","network",arguments[0])}return r}perform(t,e){const r=Object.create(null,{perform:{get:()=>super.perform}});return O(this,void 0,void 0,(function*(){if("getBlockNumber"===t){const t=yield r.perform.call(this,"getBlock",{blockTag:"latest"});return t.number}return r.perform.call(this,t,e)}))}}var R=r("VJ7P"),T=r("WsP5"),C=r("uvd5"),I=function(t,e,r,n){function i(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,o){function s(t){try{u(n.next(t))}catch(e){o(e)}}function a(t){try{u(n["throw"](t))}catch(e){o(e)}}function u(t){t.done?r(t.value):i(t.value).then(s,a)}u((n=n.apply(t,e||[])).next())}))};const P=new h["Logger"](l["a"]);function L(t){const e={};for(let r in t){if(null==t[r])continue;let n=t[r];"type"===r&&0===n||(n={type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[r]?Object(R["hexValue"])(Object(R["hexlify"])(n)):"accessList"===r?"["+Object(T["accessListify"])(n).map((t=>`{address:"${t.address}",storageKeys:["${t.storageKeys.join('","')}"]}`)).join(",")+"]":Object(R["hexlify"])(n),e[r]=n)}return e}function j(t){if(0==t.status&&("No records found"===t.message||"No transactions found"===t.message))return t.result;if(1!=t.status||"string"!==typeof t.message||!t.message.match(/^OK/)){const e=new Error("invalid response");throw e.result=JSON.stringify(t),(t.result||"").toLowerCase().indexOf("rate limit")>=0&&(e.throttleRetry=!0),e}return t.result}function N(t){if(t&&0==t.status&&"NOTOK"==t.message&&(t.result||"").toLowerCase().indexOf("rate limit")>=0){const e=new Error("throttled response");throw e.result=JSON.stringify(t),e.throttleRetry=!0,e}if("2.0"!=t.jsonrpc){const e=new Error("invalid response");throw e.result=JSON.stringify(t),e}if(t.error){const e=new Error(t.error.message||"unknown error");throw t.error.code&&(e.code=t.error.code),t.error.data&&(e.data=t.error.data),e}return t.result}function B(t){if("pending"===t)throw new Error("pending not supported");return"latest"===t?t:parseInt(t.substring(2),16)}function D(t,e,r){if("call"===t&&e.code===h["Logger"].errors.SERVER_ERROR){const t=e.error;if(t&&(t.message.match(/reverted/i)||t.message.match(/VM execution error/i))){let r=t.data;if(r&&(r="0x"+r.replace(/^.*0x/i,"")),Object(R["isHexString"])(r))return r;P.throwError("missing revert data in call exception",h["Logger"].errors.CALL_EXCEPTION,{error:e,data:"0x"})}}let n=e.message;throw e.code===h["Logger"].errors.SERVER_ERROR&&(e.error&&"string"===typeof e.error.message?n=e.error.message:"string"===typeof e.body?n=e.body:"string"===typeof e.responseText&&(n=e.responseText)),n=(n||"").toLowerCase(),n.match(/insufficient funds/)&&P.throwError("insufficient funds for intrinsic transaction cost",h["Logger"].errors.INSUFFICIENT_FUNDS,{error:e,method:t,transaction:r}),n.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&P.throwError("nonce has already been used",h["Logger"].errors.NONCE_EXPIRED,{error:e,method:t,transaction:r}),n.match(/another transaction with same nonce/)&&P.throwError("replacement fee too low",h["Logger"].errors.REPLACEMENT_UNDERPRICED,{error:e,method:t,transaction:r}),n.match(/execution failed due to an exception|execution reverted/)&&P.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",h["Logger"].errors.UNPREDICTABLE_GAS_LIMIT,{error:e,method:t,transaction:r}),e}class U extends o["a"]{constructor(t,e){super(t),Object(s["defineReadOnly"])(this,"baseUrl",this.getBaseUrl()),Object(s["defineReadOnly"])(this,"apiKey",e||null)}getBaseUrl(){switch(this.network?this.network.name:"invalid"){case"homestead":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"matic":return"https://api.polygonscan.com";case"maticmum":return"https://api-testnet.polygonscan.com";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io";default:}return P.throwArgumentError("unsupported network","network",this.network.name)}getUrl(t,e){const r=Object.keys(e).reduce(((t,r)=>{const n=e[r];return null!=n&&(t+=`&${r}=${n}`),t}),""),n=this.apiKey?`&apikey=${this.apiKey}`:"";return`${this.baseUrl}/api?module=${t}${r}${n}`}getPostUrl(){return`${this.baseUrl}/api`}getPostData(t,e){return e.module=t,e.apikey=this.apiKey,e}fetch(t,e,r){return I(this,void 0,void 0,(function*(){const n=r?this.getPostUrl():this.getUrl(t,e),i=r?this.getPostData(t,e):null,o="proxy"===t?N:j;this.emit("debug",{action:"request",request:n,provider:this});const u={url:n,throttleSlotInterval:1e3,throttleCallback:(t,e)=>(this.isCommunityResource()&&Object(a["d"])(),Promise.resolve(!0))};let c=null;i&&(u.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},c=Object.keys(i).map((t=>`${t}=${i[t]}`)).join("&"));const h=yield Object(C["fetchJson"])(u,c,o||N);return this.emit("debug",{action:"response",request:n,response:Object(s["deepCopy"])(h),provider:this}),h}))}detectNetwork(){return I(this,void 0,void 0,(function*(){return this.network}))}perform(t,e){const r=Object.create(null,{perform:{get:()=>super.perform}});return I(this,void 0,void 0,(function*(){switch(t){case"getBlockNumber":return this.fetch("proxy",{action:"eth_blockNumber"});case"getGasPrice":return this.fetch("proxy",{action:"eth_gasPrice"});case"getBalance":return this.fetch("account",{action:"balance",address:e.address,tag:e.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:e.address,tag:e.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:e.address,tag:e.blockTag});case"getStorageAt":return this.fetch("proxy",{action:"eth_getStorageAt",address:e.address,position:e.position,tag:e.blockTag});case"sendTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:e.signedTransaction},!0).catch((t=>D("sendTransaction",t,e.signedTransaction)));case"getBlock":if(e.blockTag)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:e.blockTag,boolean:e.includeTransactions?"true":"false"});throw new Error("getBlock by blockHash not implemented");case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:e.transactionHash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:e.transactionHash});case"call":{if("latest"!==e.blockTag)throw new Error("EtherscanProvider does not support blockTag for call");const t=L(e.transaction);t.module="proxy",t.action="eth_call";try{return yield this.fetch("proxy",t,!0)}catch(_t){return D("call",_t,e.transaction)}}case"estimateGas":{const t=L(e.transaction);t.module="proxy",t.action="eth_estimateGas";try{return yield this.fetch("proxy",t,!0)}catch(_t){return D("estimateGas",_t,e.transaction)}}case"getLogs":{const t={action:"getLogs"};if(e.filter.fromBlock&&(t.fromBlock=B(e.filter.fromBlock)),e.filter.toBlock&&(t.toBlock=B(e.filter.toBlock)),e.filter.address&&(t.address=e.filter.address),e.filter.topics&&e.filter.topics.length>0&&(e.filter.topics.length>1&&P.throwError("unsupported topic count",h["Logger"].errors.UNSUPPORTED_OPERATION,{topics:e.filter.topics}),1===e.filter.topics.length)){const r=e.filter.topics[0];"string"===typeof r&&66===r.length||P.throwError("unsupported topic format",h["Logger"].errors.UNSUPPORTED_OPERATION,{topic0:r}),t.topic0=r}const r=yield this.fetch("logs",t);let n={};for(let e=0;e{["contractAddress","to"].forEach((function(e){""==t[e]&&delete t[e]})),null==t.creates&&null!=t.contractAddress&&(t.creates=t.contractAddress);const e=this.formatter.transactionResponse(t);return t.timeStamp&&(e.timestamp=parseInt(t.timeStamp)),e}))}))}isCommunityResource(){return null==this.apiKey}}var F=r("VVP+"),q=function(t,e,r,n){function i(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,o){function s(t){try{u(n.next(t))}catch(e){o(e)}}function a(t){try{u(n["throw"](t))}catch(e){o(e)}}function u(t){t.done?r(t.value):i(t.value).then(s,a)}u((n=n.apply(t,e||[])).next())}))};const G=new h["Logger"](l["a"]);function V(){return(new Date).getTime()}function z(t){let e=null;for(let r=0;re?null:(n+i)/2}function K(t){if(null===t)return"null";if("number"===typeof t||"boolean"===typeof t)return JSON.stringify(t);if("string"===typeof t)return t;if(u["a"].isBigNumber(t))return t.toString();if(Array.isArray(t))return JSON.stringify(t.map((t=>K(t))));if("object"===typeof t){const e=Object.keys(t);return e.sort(),"{"+e.map((e=>{let r=t[e];return r="function"===typeof r?"[function]":K(r),JSON.stringify(e)+":"+r})).join(",")+"}"}throw new Error("unknown value type: "+typeof t)}let H=1;function W(t){let e=null,r=null,n=new Promise((n=>{e=function(){r&&(clearTimeout(r),r=null),n()},r=setTimeout(e,t)}));const i=t=>(n=n.then(t),n);function o(){return n}return{cancel:e,getPromise:o,wait:i}}const Z=[h["Logger"].errors.CALL_EXCEPTION,h["Logger"].errors.INSUFFICIENT_FUNDS,h["Logger"].errors.NONCE_EXPIRED,h["Logger"].errors.REPLACEMENT_UNDERPRICED,h["Logger"].errors.UNPREDICTABLE_GAS_LIMIT],J=["address","args","errorArgs","errorSignature","method","transaction"];function X(t,e){const r={weight:t.weight};return Object.defineProperty(r,"provider",{get:()=>t.provider}),t.start&&(r.start=t.start),e&&(r.duration=e-t.start),t.done&&(t.error?r.error=t.error:r.result=t.result||null),r}function Y(t,e){return function(r){const n={};r.forEach((e=>{const r=t(e.result);n[r]||(n[r]={count:0,result:e.result}),n[r].count++}));const i=Object.keys(n);for(let t=0;t=e)return r.result}}}function Q(t,e,r){let n=K;switch(e){case"getBlockNumber":return function(e){const r=e.map((t=>t.result));let n=$(e.map((t=>t.result)),2);if(null!=n)return n=Math.ceil(n),r.indexOf(n+1)>=0&&n++,n>=t._highestBlockNumber&&(t._highestBlockNumber=n),t._highestBlockNumber};case"getGasPrice":return function(t){const e=t.map((t=>t.result));return e.sort(),e[Math.floor(e.length/2)]};case"getEtherPrice":return function(t){return $(t.map((t=>t.result)))};case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break;case"getTransaction":case"getTransactionReceipt":n=function(t){return null==t?null:(t=Object(s["shallowCopy"])(t),t.confirmations=-1,K(t))};break;case"getBlock":n=r.includeTransactions?function(t){return null==t?null:(t=Object(s["shallowCopy"])(t),t.transactions=t.transactions.map((t=>(t=Object(s["shallowCopy"])(t),t.confirmations=-1,t))),K(t))}:function(t){return null==t?null:K(t)};break;default:throw new Error("unknown method: "+e)}return Y(n,t.quorum)}function tt(t,e){return q(this,void 0,void 0,(function*(){const r=t.provider;return null!=r.blockNumber&&r.blockNumber>=e||-1===e?r:Object(C["poll"])((()=>new Promise(((n,i)=>{setTimeout((function(){return r.blockNumber>=e?n(r):t.cancelled?n(null):n(void 0)}),0)}))),{oncePoll:r})}))}function et(t,e,r,n){return q(this,void 0,void 0,(function*(){let i=t.provider;switch(r){case"getBlockNumber":case"getGasPrice":return i[r]();case"getEtherPrice":if(i.getEtherPrice)return i.getEtherPrice();break;case"getBalance":case"getTransactionCount":case"getCode":return n.blockTag&&Object(R["isHexString"])(n.blockTag)&&(i=yield tt(t,e)),i[r](n.address,n.blockTag||"latest");case"getStorageAt":return n.blockTag&&Object(R["isHexString"])(n.blockTag)&&(i=yield tt(t,e)),i.getStorageAt(n.address,n.position,n.blockTag||"latest");case"getBlock":return n.blockTag&&Object(R["isHexString"])(n.blockTag)&&(i=yield tt(t,e)),i[n.includeTransactions?"getBlockWithTransactions":"getBlock"](n.blockTag||n.blockHash);case"call":case"estimateGas":return n.blockTag&&Object(R["isHexString"])(n.blockTag)&&(i=yield tt(t,e)),"call"===r&&n.blockTag?i[r](n.transaction,n.blockTag):i[r](n.transaction);case"getTransaction":case"getTransactionReceipt":return i[r](n.transactionHash);case"getLogs":{let r=n.filter;return(r.fromBlock&&Object(R["isHexString"])(r.fromBlock)||r.toBlock&&Object(R["isHexString"])(r.toBlock))&&(i=yield tt(t,e)),i.getLogs(r)}}return G.throwError("unknown method error",h["Logger"].errors.UNKNOWN_ERROR,{method:r,params:n})}))}class rt extends o["a"]{constructor(t,e){0===t.length&&G.throwArgumentError("missing providers","providers",t);const r=t.map(((t,e)=>{if(n["b"].isProvider(t)){const e=Object(a["c"])(t)?2e3:750,r=1;return Object.freeze({provider:t,weight:1,stallTimeout:e,priority:r})}const r=Object(s["shallowCopy"])(t);null==r.priority&&(r.priority=1),null==r.stallTimeout&&(r.stallTimeout=Object(a["c"])(t)?2e3:750),null==r.weight&&(r.weight=1);const i=r.weight;return(i%1||i>512||i<1)&&G.throwArgumentError("invalid weight; must be integer in [1, 512]",`providers[${e}].weight`,i),Object.freeze(r)})),i=r.reduce(((t,e)=>t+e.weight),0);null==e?e=i/2:e>i&&G.throwArgumentError("quorum will always fail; larger than total weight","quorum",e);let o=z(r.map((t=>t.provider.network)));null==o&&(o=new Promise(((t,e)=>{setTimeout((()=>{this.detectNetwork().then(t,e)}),0)}))),super(o),Object(s["defineReadOnly"])(this,"providerConfigs",Object.freeze(r)),Object(s["defineReadOnly"])(this,"quorum",e),this._highestBlockNumber=-1}detectNetwork(){return q(this,void 0,void 0,(function*(){const t=yield Promise.all(this.providerConfigs.map((t=>t.provider.getNetwork())));return z(t)}))}perform(t,e){return q(this,void 0,void 0,(function*(){if("sendTransaction"===t){const t=yield Promise.all(this.providerConfigs.map((t=>t.provider.sendTransaction(e.signedTransaction).then((t=>t.hash),(t=>t)))));for(let e=0;et.priority-e.priority));const i=this._highestBlockNumber;let o=0,a=!0;while(1){const u=V();let c=n.filter((t=>t.runner&&u-t.startt+e.weight),0);while(c{r.staller=null})),r.runner=et(r,i,t,e).then((n=>{r.done=!0,r.result=n,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:a,backend:X(r,V()),request:{method:t,params:Object(s["deepCopy"])(e)},provider:this})}),(n=>{r.done=!0,r.error=n,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:a,backend:X(r,V()),request:{method:t,params:Object(s["deepCopy"])(e)},provider:this})})),this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:a,backend:X(r,null),request:{method:t,params:Object(s["deepCopy"])(e)},provider:this}),c+=r.weight}const h=[];n.forEach((t=>{!t.done&&t.runner&&(h.push(t.runner),t.staller&&h.push(t.staller.getPromise()))})),h.length&&(yield Promise.race(h));const l=n.filter((t=>t.done&&null==t.error));if(l.length>=this.quorum){const t=r(l);if(void 0!==t)return n.forEach((t=>{t.staller&&t.staller.cancel(),t.cancelled=!0})),t;a||(yield W(100).getPromise()),a=!1}const f=n.reduce(((t,e)=>{if(!e.done||null==e.error)return t;const r=e.error.code;return Z.indexOf(r)>=0&&(t[r]||(t[r]={error:e.error,weight:0}),t[r].weight+=e.weight),t}),{});if(Object.keys(f).forEach((t=>{const e=f[t];if(e.weight{t.staller&&t.staller.cancel(),t.cancelled=!0}));const r=e.error,i={};J.forEach((t=>{null!=r[t]&&(i[t]=r[t])})),G.throwError(r.reason||r.message,t,i)})),0===n.filter((t=>!t.done)).length)break}return n.forEach((t=>{t.staller&&t.staller.cancel(),t.cancelled=!0})),G.throwError("failed to meet quorum",h["Logger"].errors.SERVER_ERROR,{method:t,params:e,results:n.map((t=>X(t))),provider:this})}))}}const nt=null,it=new h["Logger"](l["a"]),ot="84842078b09946638c03157f83405213";class st extends g{constructor(t,e){const r=new at(t,e),n=r.connection;n.password&&it.throwError("INFURA WebSocket project secrets unsupported",h["Logger"].errors.UNSUPPORTED_OPERATION,{operation:"InfuraProvider.getWebSocketProvider()"});const i=n.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/");super(i,t),Object(s["defineReadOnly"])(this,"apiKey",r.projectId),Object(s["defineReadOnly"])(this,"projectId",r.projectId),Object(s["defineReadOnly"])(this,"projectSecret",r.projectSecret)}isCommunityResource(){return this.projectId===ot}}class at extends v["b"]{static getWebSocketProvider(t,e){return new st(t,e)}static getApiKey(t){const e={apiKey:ot,projectId:ot,projectSecret:null};return null==t||("string"===typeof t?e.projectId=t:null!=t.projectSecret?(it.assertArgument("string"===typeof t.projectId,"projectSecret requires a projectId","projectId",t.projectId),it.assertArgument("string"===typeof t.projectSecret,"invalid projectSecret","projectSecret","[REDACTED]"),e.projectId=t.projectId,e.projectSecret=t.projectSecret):t.projectId&&(e.projectId=t.projectId),e.apiKey=e.projectId),e}static getUrl(t,e){let r=null;switch(t?t.name:"unknown"){case"homestead":r="mainnet.infura.io";break;case"goerli":r="goerli.infura.io";break;case"sepolia":r="sepolia.infura.io";break;case"matic":r="polygon-mainnet.infura.io";break;case"maticmum":r="polygon-mumbai.infura.io";break;case"optimism":r="optimism-mainnet.infura.io";break;case"optimism-goerli":r="optimism-goerli.infura.io";break;case"arbitrum":r="arbitrum-mainnet.infura.io";break;case"arbitrum-goerli":r="arbitrum-goerli.infura.io";break;default:it.throwError("unsupported network",h["Logger"].errors.INVALID_ARGUMENT,{argument:"network",value:t})}const n={allowGzip:!0,url:"https://"+r+"/v3/"+e.projectId,throttleCallback:(t,r)=>(e.projectId===ot&&Object(a["d"])(),Promise.resolve(!0))};return null!=e.projectSecret&&(n.user="",n.password=e.projectSecret),n}isCommunityResource(){return this.projectId===ot}}class ut extends c["a"]{send(t,e){const r={method:t,params:e,id:this._nextId++,jsonrpc:"2.0"};null==this._pendingBatch&&(this._pendingBatch=[]);const n={request:r,resolve:null,reject:null},i=new Promise(((t,e)=>{n.resolve=t,n.reject=e}));return this._pendingBatch.push(n),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout((()=>{const t=this._pendingBatch;this._pendingBatch=null,this._pendingBatchAggregator=null;const e=t.map((t=>t.request));return this.emit("debug",{action:"requestBatch",request:Object(s["deepCopy"])(e),provider:this}),Object(C["fetchJson"])(this.connection,JSON.stringify(e)).then((r=>{this.emit("debug",{action:"response",request:e,response:r,provider:this}),t.forEach(((t,e)=>{const n=r[e];if(n.error){const e=new Error(n.error.message);e.code=n.error.code,e.data=n.error.data,t.reject(e)}else t.resolve(n.result)}))}),(r=>{this.emit("debug",{action:"response",error:r,request:e,provider:this}),t.forEach((t=>{t.reject(r)}))}))}),10)),i}}const ct=new h["Logger"](l["a"]),ht="ETHERS_JS_SHARED";class lt extends v["b"]{static getApiKey(t){return t&&"string"!==typeof t&&ct.throwArgumentError("invalid apiKey","apiKey",t),t||ht}static getUrl(t,e){ct.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform.");let r=null;switch(t.name){case"homestead":r="https://ethereum.api.nodesmith.io/v1/mainnet/jsonrpc";break;case"ropsten":r="https://ethereum.api.nodesmith.io/v1/ropsten/jsonrpc";break;case"rinkeby":r="https://ethereum.api.nodesmith.io/v1/rinkeby/jsonrpc";break;case"goerli":r="https://ethereum.api.nodesmith.io/v1/goerli/jsonrpc";break;case"kovan":r="https://ethereum.api.nodesmith.io/v1/kovan/jsonrpc";break;default:ct.throwArgumentError("unsupported network","network",arguments[0])}return r+"?apiKey="+e}}const ft=new h["Logger"](l["a"]),dt="62e1ad51b37b8e00394bda3b";class pt extends v["b"]{static getApiKey(t){const e={applicationId:null,loadBalancer:!0,applicationSecretKey:null};return null==t?e.applicationId=dt:"string"===typeof t?e.applicationId=t:null!=t.applicationSecretKey?(e.applicationId=t.applicationId,e.applicationSecretKey=t.applicationSecretKey):t.applicationId?e.applicationId=t.applicationId:ft.throwArgumentError("unsupported PocketProvider apiKey","apiKey",t),e}static getUrl(t,e){let r=null;switch(t?t.name:"unknown"){case"goerli":r="eth-goerli.gateway.pokt.network";break;case"homestead":r="eth-mainnet.gateway.pokt.network";break;case"kovan":r="poa-kovan.gateway.pokt.network";break;case"matic":r="poly-mainnet.gateway.pokt.network";break;case"maticmum":r="polygon-mumbai-rpc.gateway.pokt.network";break;case"rinkeby":r="eth-rinkeby.gateway.pokt.network";break;case"ropsten":r="eth-ropsten.gateway.pokt.network";break;default:ft.throwError("unsupported network",h["Logger"].errors.INVALID_ARGUMENT,{argument:"network",value:t})}const n=`https://${r}/v1/lb/${e.applicationId}`,i={headers:{},url:n};return null!=e.applicationSecretKey&&(i.user="",i.password=e.applicationSecretKey),i}isCommunityResource(){return this.applicationId===dt}}const mt=new h["Logger"](l["a"]);let gt=1;function vt(t,e){const r="Web3LegacyFetcher";return function(t,n){const i={method:t,params:n,id:gt++,jsonrpc:"2.0"};return new Promise(((t,n)=>{this.emit("debug",{action:"request",fetcher:r,request:Object(s["deepCopy"])(i),provider:this}),e(i,((e,o)=>{if(e)return this.emit("debug",{action:"response",fetcher:r,error:e,request:i,provider:this}),n(e);if(this.emit("debug",{action:"response",fetcher:r,request:i,response:o,provider:this}),o.error){const t=new Error(o.error.message);return t.code=o.error.code,t.data=o.error.data,n(t)}t(o.result)}))}))}}function bt(t){return function(e,r){null==r&&(r=[]);const n={method:e,params:r};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:Object(s["deepCopy"])(n),provider:this}),t.request(n).then((t=>(this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:n,response:t,provider:this}),t)),(t=>{throw this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:n,error:t,provider:this}),t}))}}class yt extends c["a"]{constructor(t,e){null==t&&mt.throwArgumentError("missing provider","provider",t);let r=null,n=null,i=null;"function"===typeof t?(r="unknown:",n=t):(r=t.host||t.path||"",!r&&t.isMetaMask&&(r="metamask"),i=t,t.request?(""===r&&(r="eip-1193:"),n=bt(t)):t.sendAsync?n=vt(t,t.sendAsync.bind(t)):t.send?n=vt(t,t.send.bind(t)):mt.throwArgumentError("unsupported provider","provider",t),r||(r="unknown:")),super(r,e),Object(s["defineReadOnly"])(this,"jsonRpcFetchFunc",n),Object(s["defineReadOnly"])(this,"provider",i)}send(t,e){return this.jsonRpcFetchFunc(t,e)}}const wt=new h["Logger"](l["a"]);function Mt(t,e){if(null==t&&(t="homestead"),"string"===typeof t){const e=t.match(/^(ws|http)s?:/i);if(e)switch(e[1].toLowerCase()){case"http":case"https":return new c["a"](t);case"ws":case"wss":return new g(t);default:wt.throwArgumentError("unsupported URL scheme","network",t)}}const r=Object(i["a"])(t);return r&&r._defaultProvider||wt.throwError("unsupported getDefaultProvider network",h["Logger"].errors.NETWORK_ERROR,{operation:"getDefaultProvider",network:t}),r._defaultProvider({FallbackProvider:rt,AlchemyProvider:M,AnkrProvider:x,CloudflareProvider:k,EtherscanProvider:U,InfuraProvider:at,JsonRpcProvider:c["a"],NodesmithProvider:lt,PocketProvider:pt,Web3Provider:yt,IpcProvider:nt},e)}},KAEN:function(t){t.exports=JSON.parse('{"name":"elliptic","version":"6.5.4","description":"EC cryptography","main":"lib/elliptic.js","files":["lib"],"scripts":{"lint":"eslint lib test","lint:fix":"npm run lint -- --fix","unit":"istanbul test _mocha --reporter=spec test/index.js","test":"npm run lint && npm run unit","version":"grunt dist && git add dist/"},"repository":{"type":"git","url":"git@github.com:indutny/elliptic"},"keywords":["EC","Elliptic","curve","Cryptography"],"author":"Fedor Indutny ","license":"MIT","bugs":{"url":"https://github.com/indutny/elliptic/issues"},"homepage":"https://github.com/indutny/elliptic","devDependencies":{"brfs":"^2.0.2","coveralls":"^3.1.0","eslint":"^7.6.0","grunt":"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.5","mocha":"^8.0.1"},"dependencies":{"bn.js":"^4.11.9","brorand":"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1","inherits":"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}')},KAxK:function(t,e,r){"use strict";var n=r("MMxC"),i=r("IuhT"),o=r("cT1L");n({target:"Map",stat:!0},{keyBy:function(t,e){var r=new this;o(e);var n=o(r.set);return i(t,(function(t){n.call(r,e(t),t)})),r}})},KHCi:function(t,e,r){var n=r("MMxC"),i=Math.min,o=Math.max;n({target:"Math",stat:!0},{clamp:function(t,e,r){return i(r,o(e,t))}})},KIrq:function(t,e,r){"use strict";r.r(e),r.d(e,"Wallet",(function(){return E})),r.d(e,"verifyMessage",(function(){return A})),r.d(e,"verifyTypedData",(function(){return x}));var n=r("Oxwv"),i=r("7aoe"),o=r("fKWB"),s=r("VJ7P"),a=r("cUt3"),u=r("4Qhp"),c=r("8AIR"),h=r("b1pR"),l=r("m9oY"),f=r("bkUu"),d=r("rhxT"),p=r("nPSg"),m=r("zkI0"),g=r("WsP5"),v=r("/7J2");const b="wallet/5.7.0";var y=function(t,e,r,n){function i(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,o){function s(t){try{u(n.next(t))}catch(e){o(e)}}function a(t){try{u(n["throw"](t))}catch(e){o(e)}}function u(t){t.done?r(t.value):i(t.value).then(s,a)}u((n=n.apply(t,e||[])).next())}))};const w=new v["Logger"](b);function M(t){return null!=t&&Object(s["isHexString"])(t.privateKey,32)&&null!=t.address}function _(t){const e=t.mnemonic;return e&&e.phrase}class E extends o["Signer"]{constructor(t,e){if(super(),M(t)){const e=new d["SigningKey"](t.privateKey);if(Object(l["defineReadOnly"])(this,"_signingKey",(()=>e)),Object(l["defineReadOnly"])(this,"address",Object(g["computeAddress"])(this.publicKey)),this.address!==Object(n["getAddress"])(t.address)&&w.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),_(t)){const e=t.mnemonic;Object(l["defineReadOnly"])(this,"_mnemonic",(()=>({phrase:e.phrase,path:e.path||c["defaultPath"],locale:e.locale||"en"})));const r=this.mnemonic,n=c["HDNode"].fromMnemonic(r.phrase,null,r.locale).derivePath(r.path);Object(g["computeAddress"])(n.privateKey)!==this.address&&w.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else Object(l["defineReadOnly"])(this,"_mnemonic",(()=>null))}else{if(d["SigningKey"].isSigningKey(t))"secp256k1"!==t.curve&&w.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),Object(l["defineReadOnly"])(this,"_signingKey",(()=>t));else{"string"===typeof t&&t.match(/^[0-9a-f]*$/i)&&64===t.length&&(t="0x"+t);const e=new d["SigningKey"](t);Object(l["defineReadOnly"])(this,"_signingKey",(()=>e))}Object(l["defineReadOnly"])(this,"_mnemonic",(()=>null)),Object(l["defineReadOnly"])(this,"address",Object(g["computeAddress"])(this.publicKey))}e&&!i["b"].isProvider(e)&&w.throwArgumentError("invalid provider","provider",e),Object(l["defineReadOnly"])(this,"provider",e||null)}get mnemonic(){return this._mnemonic()}get privateKey(){return this._signingKey().privateKey}get publicKey(){return this._signingKey().publicKey}getAddress(){return Promise.resolve(this.address)}connect(t){return new E(this,t)}signTransaction(t){return Object(l["resolveProperties"])(t).then((e=>{null!=e.from&&(Object(n["getAddress"])(e.from)!==this.address&&w.throwArgumentError("transaction from address mismatch","transaction.from",t.from),delete e.from);const r=this._signingKey().signDigest(Object(h["keccak256"])(Object(g["serialize"])(e)));return Object(g["serialize"])(e,r)}))}signMessage(t){return y(this,void 0,void 0,(function*(){return Object(s["joinSignature"])(this._signingKey().signDigest(Object(a["a"])(t)))}))}_signTypedData(t,e,r){return y(this,void 0,void 0,(function*(){const n=yield u["a"].resolveNames(t,e,r,(t=>(null==this.provider&&w.throwError("cannot resolve ENS names without a provider",v["Logger"].errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:t}),this.provider.resolveName(t))));return Object(s["joinSignature"])(this._signingKey().signDigest(u["a"].hash(n.domain,e,n.value)))}))}encrypt(t,e,r){if("function"!==typeof e||r||(r=e,e={}),r&&"function"!==typeof r)throw new Error("invalid callback");return e||(e={}),Object(p["c"])(this,t,e,r)}static createRandom(t){let e=Object(f["a"])(16);t||(t={}),t.extraEntropy&&(e=Object(s["arrayify"])(Object(s["hexDataSlice"])(Object(h["keccak256"])(Object(s["concat"])([e,t.extraEntropy])),0,16)));const r=Object(c["entropyToMnemonic"])(e,t.locale);return E.fromMnemonic(r,t.path,t.locale)}static fromEncryptedJson(t,e,r){return Object(m["decryptJsonWallet"])(t,e,r).then((t=>new E(t)))}static fromEncryptedJsonSync(t,e){return new E(Object(m["decryptJsonWalletSync"])(t,e))}static fromMnemonic(t,e,r){return e||(e=c["defaultPath"]),new E(c["HDNode"].fromMnemonic(t,null,r).derivePath(e))}}function A(t,e){return Object(g["recoverAddress"])(Object(a["a"])(t),e)}function x(t,e,r,n){return Object(g["recoverAddress"])(u["a"].hash(t,e,r),n)}},KUpu:function(t,e,r){var n=r("I65O");n("hasInstance")},KvPC:function(t,e,r){"use strict";var n=r("eYKs").charAt,i=r("1aI8"),o=r("uMwj"),s="String Iterator",a=i.set,u=i.getterFor(s);o(String,"String",(function(t){a(this,{type:s,string:String(t),index:0})}),(function(){var t,e=u(this),r=e.string,i=e.index;return i>=r.length?{value:void 0,done:!0}:(t=n(r,i),e.index+=t.length,{value:t,done:!1})}))},L5O0:function(t,e,r){var n=r("MMxC"),i=r("qA1w");n({target:"WeakSet",stat:!0},{of:i})},L874:function(t,e,r){"use strict";r.r(e),r.d(e,"rootContainer",(function(){return s}));var n=r("q1tI"),i=r.n(n),o=r("uRV1");function s(t,e){return i.a.createElement(o["a"],e,t)}},LJ80:function(t,e,r){var n=r("jtLI"),i=r("cC5k"),o=r("g8rt"),s=r("YfKC");t.exports=function(t,e){for(var r=i(e),a=s.f,u=o.f,c=0;c0)r.push(t%this.base),t=t/this.base|0}let i="";for(let n=0;0===e[n]&&n=0;--n)i+=this.alphabet[r[n]];return i}decode(t){if("string"!==typeof t)throw new TypeError("Expected String");let e=[];if(0===t.length)return new Uint8Array(e);e.push(0);for(let r=0;r>=8;while(i>0)e.push(255&i),i>>=8}for(let r=0;t[r]===this._leader&&rr)i[r]=e[r++];return i},K=function(t,e){C(t,e,{get:function(){return R(this)[e]}})},H=function(t){var e;return t instanceof j||"ArrayBuffer"==(e=v(t))||"SharedArrayBuffer"==e},W=function(t,e){return G(t)&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},Z=function(t,e){return W(t,e=m(e,!0))?h(2,t[e]):I(t,e)},J=function(t,e,r){return!(W(t,e=m(e,!0))&&b(r)&&g(r,"value"))||g(r,"get")||g(r,"set")||r.configurable||g(r,"writable")&&!r.writable||g(r,"enumerable")&&!r.enumerable?C(t,e,r):(t[e]=r.value,t)};o?(B||(O.f=Z,x.f=J,K(F,"buffer"),K(F,"byteOffset"),K(F,"byteLength"),K(F,"length")),n({target:"Object",stat:!0,forced:!B},{getOwnPropertyDescriptor:Z,defineProperty:J}),t.exports=function(t,e,r){var o=t.match(/\d+$/)[0]/8,a=t+(r?"Clamped":"")+"Array",u="get"+t,h="set"+t,m=i[a],g=m,v=g&&g.prototype,x={},O=function(t,e){var r=R(t);return r.view[u](e*o+r.byteOffset,!0)},S=function(t,e,n){var i=R(t);r&&(n=(n=P(n))<0?0:n>255?255:255&n),i.view[h](e*o+i.byteOffset,n,!0)},I=function(t,e){C(t,e,{get:function(){return O(this,e)},set:function(t){return S(this,e,t)},enumerable:!0})};B?s&&(g=e((function(t,e,r,n){return c(t,g,a),k(function(){return b(e)?H(e)?void 0!==n?new m(e,p(r,o),n):void 0!==r?new m(e,p(r,o)):new m(e):G(e)?$(g,e):_.call(g,e):new m(d(e))}(),t,g)})),w&&w(g,U),E(M(m),(function(t){t in g||l(g,t,m[t])})),g.prototype=v):(g=e((function(t,e,r,n){c(t,g,a);var i,s,u,h=0,l=0;if(b(e)){if(!H(e))return G(e)?$(g,e):_.call(g,e);i=e,l=p(r,o);var m=e.byteLength;if(void 0===n){if(m%o)throw L(z);if(s=m-l,s<0)throw L(z)}else if(s=f(n)*o,s+l>m)throw L(z);u=s/o}else u=d(e),s=u*o,i=new j(s);T(t,{buffer:i,byteOffset:l,byteLength:s,length:u,view:new N(i)});while(h=0&&(s=e,a=r),n.negative&&(n=n.neg(),o=o.neg()),s.negative&&(s=s.neg(),a=a.neg()),[{a:n,b:o},{a:s,b:a}]},u.prototype._endoSplit=function(t){var e=this.endo.basis,r=e[0],n=e[1],i=n.b.mul(t).divRound(this.n),o=r.b.neg().mul(t).divRound(this.n),s=i.mul(r.a),a=o.mul(n.a),u=i.mul(r.b),c=o.mul(n.b),h=t.sub(s).sub(a),l=u.add(c).neg();return{k1:h,k2:l}},u.prototype.pointFromX=function(t,e){t=new i(t,16),t.red||(t=t.toRed(this.red));var r=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var o=n.fromRed().isOdd();return(e&&!o||!e&&o)&&(n=n.redNeg()),this.point(t,n)},u.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,r=t.y,n=this.a.redMul(e),i=e.redSqr().redMul(e).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},u.prototype._endoWnafMulAdd=function(t,e,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var r=e.redSqr().redISub(this.x).redISub(t.x),n=e.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},c.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,r=this.x.redSqr(),n=t.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(e).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),s=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,s)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(t){return t=new i(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},c.prototype.mulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},c.prototype.jmulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},c.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},c.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var r=this.precomputed,n=function(t){return t.neg()};e.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return e},c.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var t=this.curve.jpoint(this.x,this.y,this.curve.one);return t},o(h,s.BasePoint),u.prototype.jpoint=function(t,e,r){return new h(this,t,e,r)},h.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),r=this.x.redMul(e),n=this.y.redMul(e).redMul(t);return this.curve.point(r,n)},h.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},h.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(e),i=t.x.redMul(r),o=this.y.redMul(e.redMul(t.z)),s=t.y.redMul(r.redMul(this.z)),a=n.redSub(i),u=o.redSub(s);if(0===a.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=a.redSqr(),h=c.redMul(a),l=n.redMul(c),f=u.redSqr().redIAdd(h).redISub(l).redISub(l),d=u.redMul(l.redISub(f)).redISub(o.redMul(h)),p=this.z.redMul(t.z).redMul(a);return this.curve.jpoint(f,d,p)},h.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),r=this.x,n=t.x.redMul(e),i=this.y,o=t.y.redMul(e).redMul(this.z),s=r.redSub(n),a=i.redSub(o);if(0===s.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),c=u.redMul(s),h=r.redMul(u),l=a.redSqr().redIAdd(c).redISub(h).redISub(h),f=a.redMul(h.redISub(l)).redISub(i.redMul(c)),d=this.z.redMul(s);return this.curve.jpoint(l,f,d)},h.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var e;if(this.curve.zeroA||this.curve.threeA){var r=this;for(e=0;e=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},h.prototype.inspect=function(){return this.isInfinity()?"":""},h.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},MzeL:function(t,e,r){"use strict";var n=e;n.version=r("KAEN").version,n.utils=r("86MQ"),n.rand=r("/ayr"),n.curve=r("QTa/"),n.curves=r("DLvh"),n.ec=r("uagp"),n.eddsa=r("lF1L")},"N+aw":function(t,e,r){(function(t){(function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var s;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{s="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:r(13).Buffer}catch(S){}function a(t,e){var r=t.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function u(t,e,r){var n=a(t,r);return r-1>=e&&(n|=a(t,r-1)<<4),n}function c(t,e,r,n){for(var i=0,o=Math.min(t.length,r),s=e;s=49?a-49+10:a>=17?a-17+10:a}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,r){if("number"===typeof t)return this._initNumber(t,e,r);if("object"===typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var i=0;"-"===t[0]&&(i++,this.negative=1),i=0;i-=3)s=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=s<>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=2)i=u(t,e,n)<=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else{var a=t.length-e;for(n=a%2===0?e+1:e;n=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8}this.strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,s=o%n,a=Math.min(o,o-s)+r,u=0,h=r;h1&&0===this.words[this.length-1])this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[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];function d(t){for(var e=new Array(t.bitLength()),r=0;r>>i}return e}function p(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],s=i*o,a=67108863&s,u=s/67108864|0;r.words[0]=a;for(var c=1;c>>26,l=67108863&u,f=Math.min(c,e.length-1),d=Math.max(0,c-t.length+1);d<=f;d++){var p=c-d|0;i=0|t.words[p],o=0|e.words[d],s=i*o+l,h+=s/67108864|0,l=67108863&s}r.words[c]=0|l,u=0|h}return 0!==u?r.words[c]=0|u:r.length--,r.strip()}o.prototype.toString=function(t,e){var r;if(t=t||10,e=0|e||1,16===t||"hex"===t){r="";for(var i=0,o=0,s=0;s>>24-i&16777215,r=0!==o||s!==this.length-1?h[6-u.length]+u+r:u+r,i+=2,i>=26&&(i-=26,s--)}0!==o&&(r=o.toString(16)+r);while(r.length%e!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var c=l[t],d=f[t];r="";var p=this.clone();p.negative=0;while(!p.isZero()){var m=p.modn(d).toString(t);p=p.idivn(d),r=p.isZero()?m+r:h[c-m.length]+m+r}this.isZero()&&(r="0"+r);while(r.length%e!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return n("undefined"!==typeof s),this.toArrayLike(s,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var s,a,u="le"===e,c=new t(o),h=this.clone();if(u){for(a=0;!h.isZero();a++)s=h.andln(255),h.iushrn(8),c[a]=s;for(;a=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0===(8191&e)&&(r+=13,e>>>=13),0===(127&e)&&(r+=7,e>>>=7),0===(15&e)&&(r+=4,e>>>=4),0===(3&e)&&(r+=2,e>>>=2),0===(1&e)&&r++,r},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;rt.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,s=0;s>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,d=0|s[1],p=8191&d,m=d>>>13,g=0|s[2],v=8191&g,b=g>>>13,y=0|s[3],w=8191&y,M=y>>>13,_=0|s[4],E=8191&_,A=_>>>13,x=0|s[5],O=8191&x,S=x>>>13,k=0|s[6],R=8191&k,T=k>>>13,C=0|s[7],I=8191&C,P=C>>>13,L=0|s[8],j=8191&L,N=L>>>13,B=0|s[9],D=8191&B,U=B>>>13,F=0|a[0],q=8191&F,G=F>>>13,V=0|a[1],z=8191&V,$=V>>>13,K=0|a[2],H=8191&K,W=K>>>13,Z=0|a[3],J=8191&Z,X=Z>>>13,Y=0|a[4],Q=8191&Y,tt=Y>>>13,et=0|a[5],rt=8191&et,nt=et>>>13,it=0|a[6],ot=8191&it,st=it>>>13,at=0|a[7],ut=8191&at,ct=at>>>13,ht=0|a[8],lt=8191&ht,ft=ht>>>13,dt=0|a[9],pt=8191&dt,mt=dt>>>13;r.negative=t.negative^e.negative,r.length=19,n=Math.imul(l,q),i=Math.imul(l,G),i=i+Math.imul(f,q)|0,o=Math.imul(f,G);var gt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(p,q),i=Math.imul(p,G),i=i+Math.imul(m,q)|0,o=Math.imul(m,G),n=n+Math.imul(l,z)|0,i=i+Math.imul(l,$)|0,i=i+Math.imul(f,z)|0,o=o+Math.imul(f,$)|0;var vt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(v,q),i=Math.imul(v,G),i=i+Math.imul(b,q)|0,o=Math.imul(b,G),n=n+Math.imul(p,z)|0,i=i+Math.imul(p,$)|0,i=i+Math.imul(m,z)|0,o=o+Math.imul(m,$)|0,n=n+Math.imul(l,H)|0,i=i+Math.imul(l,W)|0,i=i+Math.imul(f,H)|0,o=o+Math.imul(f,W)|0;var bt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(w,q),i=Math.imul(w,G),i=i+Math.imul(M,q)|0,o=Math.imul(M,G),n=n+Math.imul(v,z)|0,i=i+Math.imul(v,$)|0,i=i+Math.imul(b,z)|0,o=o+Math.imul(b,$)|0,n=n+Math.imul(p,H)|0,i=i+Math.imul(p,W)|0,i=i+Math.imul(m,H)|0,o=o+Math.imul(m,W)|0,n=n+Math.imul(l,J)|0,i=i+Math.imul(l,X)|0,i=i+Math.imul(f,J)|0,o=o+Math.imul(f,X)|0;var yt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(E,q),i=Math.imul(E,G),i=i+Math.imul(A,q)|0,o=Math.imul(A,G),n=n+Math.imul(w,z)|0,i=i+Math.imul(w,$)|0,i=i+Math.imul(M,z)|0,o=o+Math.imul(M,$)|0,n=n+Math.imul(v,H)|0,i=i+Math.imul(v,W)|0,i=i+Math.imul(b,H)|0,o=o+Math.imul(b,W)|0,n=n+Math.imul(p,J)|0,i=i+Math.imul(p,X)|0,i=i+Math.imul(m,J)|0,o=o+Math.imul(m,X)|0,n=n+Math.imul(l,Q)|0,i=i+Math.imul(l,tt)|0,i=i+Math.imul(f,Q)|0,o=o+Math.imul(f,tt)|0;var wt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(O,q),i=Math.imul(O,G),i=i+Math.imul(S,q)|0,o=Math.imul(S,G),n=n+Math.imul(E,z)|0,i=i+Math.imul(E,$)|0,i=i+Math.imul(A,z)|0,o=o+Math.imul(A,$)|0,n=n+Math.imul(w,H)|0,i=i+Math.imul(w,W)|0,i=i+Math.imul(M,H)|0,o=o+Math.imul(M,W)|0,n=n+Math.imul(v,J)|0,i=i+Math.imul(v,X)|0,i=i+Math.imul(b,J)|0,o=o+Math.imul(b,X)|0,n=n+Math.imul(p,Q)|0,i=i+Math.imul(p,tt)|0,i=i+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0,n=n+Math.imul(l,rt)|0,i=i+Math.imul(l,nt)|0,i=i+Math.imul(f,rt)|0,o=o+Math.imul(f,nt)|0;var Mt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(R,q),i=Math.imul(R,G),i=i+Math.imul(T,q)|0,o=Math.imul(T,G),n=n+Math.imul(O,z)|0,i=i+Math.imul(O,$)|0,i=i+Math.imul(S,z)|0,o=o+Math.imul(S,$)|0,n=n+Math.imul(E,H)|0,i=i+Math.imul(E,W)|0,i=i+Math.imul(A,H)|0,o=o+Math.imul(A,W)|0,n=n+Math.imul(w,J)|0,i=i+Math.imul(w,X)|0,i=i+Math.imul(M,J)|0,o=o+Math.imul(M,X)|0,n=n+Math.imul(v,Q)|0,i=i+Math.imul(v,tt)|0,i=i+Math.imul(b,Q)|0,o=o+Math.imul(b,tt)|0,n=n+Math.imul(p,rt)|0,i=i+Math.imul(p,nt)|0,i=i+Math.imul(m,rt)|0,o=o+Math.imul(m,nt)|0,n=n+Math.imul(l,ot)|0,i=i+Math.imul(l,st)|0,i=i+Math.imul(f,ot)|0,o=o+Math.imul(f,st)|0;var _t=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(I,q),i=Math.imul(I,G),i=i+Math.imul(P,q)|0,o=Math.imul(P,G),n=n+Math.imul(R,z)|0,i=i+Math.imul(R,$)|0,i=i+Math.imul(T,z)|0,o=o+Math.imul(T,$)|0,n=n+Math.imul(O,H)|0,i=i+Math.imul(O,W)|0,i=i+Math.imul(S,H)|0,o=o+Math.imul(S,W)|0,n=n+Math.imul(E,J)|0,i=i+Math.imul(E,X)|0,i=i+Math.imul(A,J)|0,o=o+Math.imul(A,X)|0,n=n+Math.imul(w,Q)|0,i=i+Math.imul(w,tt)|0,i=i+Math.imul(M,Q)|0,o=o+Math.imul(M,tt)|0,n=n+Math.imul(v,rt)|0,i=i+Math.imul(v,nt)|0,i=i+Math.imul(b,rt)|0,o=o+Math.imul(b,nt)|0,n=n+Math.imul(p,ot)|0,i=i+Math.imul(p,st)|0,i=i+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0,n=n+Math.imul(l,ut)|0,i=i+Math.imul(l,ct)|0,i=i+Math.imul(f,ut)|0,o=o+Math.imul(f,ct)|0;var Et=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(j,q),i=Math.imul(j,G),i=i+Math.imul(N,q)|0,o=Math.imul(N,G),n=n+Math.imul(I,z)|0,i=i+Math.imul(I,$)|0,i=i+Math.imul(P,z)|0,o=o+Math.imul(P,$)|0,n=n+Math.imul(R,H)|0,i=i+Math.imul(R,W)|0,i=i+Math.imul(T,H)|0,o=o+Math.imul(T,W)|0,n=n+Math.imul(O,J)|0,i=i+Math.imul(O,X)|0,i=i+Math.imul(S,J)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(E,Q)|0,i=i+Math.imul(E,tt)|0,i=i+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(w,rt)|0,i=i+Math.imul(w,nt)|0,i=i+Math.imul(M,rt)|0,o=o+Math.imul(M,nt)|0,n=n+Math.imul(v,ot)|0,i=i+Math.imul(v,st)|0,i=i+Math.imul(b,ot)|0,o=o+Math.imul(b,st)|0,n=n+Math.imul(p,ut)|0,i=i+Math.imul(p,ct)|0,i=i+Math.imul(m,ut)|0,o=o+Math.imul(m,ct)|0,n=n+Math.imul(l,lt)|0,i=i+Math.imul(l,ft)|0,i=i+Math.imul(f,lt)|0,o=o+Math.imul(f,ft)|0;var At=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(D,q),i=Math.imul(D,G),i=i+Math.imul(U,q)|0,o=Math.imul(U,G),n=n+Math.imul(j,z)|0,i=i+Math.imul(j,$)|0,i=i+Math.imul(N,z)|0,o=o+Math.imul(N,$)|0,n=n+Math.imul(I,H)|0,i=i+Math.imul(I,W)|0,i=i+Math.imul(P,H)|0,o=o+Math.imul(P,W)|0,n=n+Math.imul(R,J)|0,i=i+Math.imul(R,X)|0,i=i+Math.imul(T,J)|0,o=o+Math.imul(T,X)|0,n=n+Math.imul(O,Q)|0,i=i+Math.imul(O,tt)|0,i=i+Math.imul(S,Q)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(E,rt)|0,i=i+Math.imul(E,nt)|0,i=i+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(w,ot)|0,i=i+Math.imul(w,st)|0,i=i+Math.imul(M,ot)|0,o=o+Math.imul(M,st)|0,n=n+Math.imul(v,ut)|0,i=i+Math.imul(v,ct)|0,i=i+Math.imul(b,ut)|0,o=o+Math.imul(b,ct)|0,n=n+Math.imul(p,lt)|0,i=i+Math.imul(p,ft)|0,i=i+Math.imul(m,lt)|0,o=o+Math.imul(m,ft)|0,n=n+Math.imul(l,pt)|0,i=i+Math.imul(l,mt)|0,i=i+Math.imul(f,pt)|0,o=o+Math.imul(f,mt)|0;var xt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(D,z),i=Math.imul(D,$),i=i+Math.imul(U,z)|0,o=Math.imul(U,$),n=n+Math.imul(j,H)|0,i=i+Math.imul(j,W)|0,i=i+Math.imul(N,H)|0,o=o+Math.imul(N,W)|0,n=n+Math.imul(I,J)|0,i=i+Math.imul(I,X)|0,i=i+Math.imul(P,J)|0,o=o+Math.imul(P,X)|0,n=n+Math.imul(R,Q)|0,i=i+Math.imul(R,tt)|0,i=i+Math.imul(T,Q)|0,o=o+Math.imul(T,tt)|0,n=n+Math.imul(O,rt)|0,i=i+Math.imul(O,nt)|0,i=i+Math.imul(S,rt)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(E,ot)|0,i=i+Math.imul(E,st)|0,i=i+Math.imul(A,ot)|0,o=o+Math.imul(A,st)|0,n=n+Math.imul(w,ut)|0,i=i+Math.imul(w,ct)|0,i=i+Math.imul(M,ut)|0,o=o+Math.imul(M,ct)|0,n=n+Math.imul(v,lt)|0,i=i+Math.imul(v,ft)|0,i=i+Math.imul(b,lt)|0,o=o+Math.imul(b,ft)|0,n=n+Math.imul(p,pt)|0,i=i+Math.imul(p,mt)|0,i=i+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var Ot=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(D,H),i=Math.imul(D,W),i=i+Math.imul(U,H)|0,o=Math.imul(U,W),n=n+Math.imul(j,J)|0,i=i+Math.imul(j,X)|0,i=i+Math.imul(N,J)|0,o=o+Math.imul(N,X)|0,n=n+Math.imul(I,Q)|0,i=i+Math.imul(I,tt)|0,i=i+Math.imul(P,Q)|0,o=o+Math.imul(P,tt)|0,n=n+Math.imul(R,rt)|0,i=i+Math.imul(R,nt)|0,i=i+Math.imul(T,rt)|0,o=o+Math.imul(T,nt)|0,n=n+Math.imul(O,ot)|0,i=i+Math.imul(O,st)|0,i=i+Math.imul(S,ot)|0,o=o+Math.imul(S,st)|0,n=n+Math.imul(E,ut)|0,i=i+Math.imul(E,ct)|0,i=i+Math.imul(A,ut)|0,o=o+Math.imul(A,ct)|0,n=n+Math.imul(w,lt)|0,i=i+Math.imul(w,ft)|0,i=i+Math.imul(M,lt)|0,o=o+Math.imul(M,ft)|0,n=n+Math.imul(v,pt)|0,i=i+Math.imul(v,mt)|0,i=i+Math.imul(b,pt)|0,o=o+Math.imul(b,mt)|0;var St=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(D,J),i=Math.imul(D,X),i=i+Math.imul(U,J)|0,o=Math.imul(U,X),n=n+Math.imul(j,Q)|0,i=i+Math.imul(j,tt)|0,i=i+Math.imul(N,Q)|0,o=o+Math.imul(N,tt)|0,n=n+Math.imul(I,rt)|0,i=i+Math.imul(I,nt)|0,i=i+Math.imul(P,rt)|0,o=o+Math.imul(P,nt)|0,n=n+Math.imul(R,ot)|0,i=i+Math.imul(R,st)|0,i=i+Math.imul(T,ot)|0,o=o+Math.imul(T,st)|0,n=n+Math.imul(O,ut)|0,i=i+Math.imul(O,ct)|0,i=i+Math.imul(S,ut)|0,o=o+Math.imul(S,ct)|0,n=n+Math.imul(E,lt)|0,i=i+Math.imul(E,ft)|0,i=i+Math.imul(A,lt)|0,o=o+Math.imul(A,ft)|0,n=n+Math.imul(w,pt)|0,i=i+Math.imul(w,mt)|0,i=i+Math.imul(M,pt)|0,o=o+Math.imul(M,mt)|0;var kt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(D,Q),i=Math.imul(D,tt),i=i+Math.imul(U,Q)|0,o=Math.imul(U,tt),n=n+Math.imul(j,rt)|0,i=i+Math.imul(j,nt)|0,i=i+Math.imul(N,rt)|0,o=o+Math.imul(N,nt)|0,n=n+Math.imul(I,ot)|0,i=i+Math.imul(I,st)|0,i=i+Math.imul(P,ot)|0,o=o+Math.imul(P,st)|0,n=n+Math.imul(R,ut)|0,i=i+Math.imul(R,ct)|0,i=i+Math.imul(T,ut)|0,o=o+Math.imul(T,ct)|0,n=n+Math.imul(O,lt)|0,i=i+Math.imul(O,ft)|0,i=i+Math.imul(S,lt)|0,o=o+Math.imul(S,ft)|0,n=n+Math.imul(E,pt)|0,i=i+Math.imul(E,mt)|0,i=i+Math.imul(A,pt)|0,o=o+Math.imul(A,mt)|0;var Rt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(D,rt),i=Math.imul(D,nt),i=i+Math.imul(U,rt)|0,o=Math.imul(U,nt),n=n+Math.imul(j,ot)|0,i=i+Math.imul(j,st)|0,i=i+Math.imul(N,ot)|0,o=o+Math.imul(N,st)|0,n=n+Math.imul(I,ut)|0,i=i+Math.imul(I,ct)|0,i=i+Math.imul(P,ut)|0,o=o+Math.imul(P,ct)|0,n=n+Math.imul(R,lt)|0,i=i+Math.imul(R,ft)|0,i=i+Math.imul(T,lt)|0,o=o+Math.imul(T,ft)|0,n=n+Math.imul(O,pt)|0,i=i+Math.imul(O,mt)|0,i=i+Math.imul(S,pt)|0,o=o+Math.imul(S,mt)|0;var Tt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(D,ot),i=Math.imul(D,st),i=i+Math.imul(U,ot)|0,o=Math.imul(U,st),n=n+Math.imul(j,ut)|0,i=i+Math.imul(j,ct)|0,i=i+Math.imul(N,ut)|0,o=o+Math.imul(N,ct)|0,n=n+Math.imul(I,lt)|0,i=i+Math.imul(I,ft)|0,i=i+Math.imul(P,lt)|0,o=o+Math.imul(P,ft)|0,n=n+Math.imul(R,pt)|0,i=i+Math.imul(R,mt)|0,i=i+Math.imul(T,pt)|0,o=o+Math.imul(T,mt)|0;var Ct=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(D,ut),i=Math.imul(D,ct),i=i+Math.imul(U,ut)|0,o=Math.imul(U,ct),n=n+Math.imul(j,lt)|0,i=i+Math.imul(j,ft)|0,i=i+Math.imul(N,lt)|0,o=o+Math.imul(N,ft)|0,n=n+Math.imul(I,pt)|0,i=i+Math.imul(I,mt)|0,i=i+Math.imul(P,pt)|0,o=o+Math.imul(P,mt)|0;var It=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(D,lt),i=Math.imul(D,ft),i=i+Math.imul(U,lt)|0,o=Math.imul(U,ft),n=n+Math.imul(j,pt)|0,i=i+Math.imul(j,mt)|0,i=i+Math.imul(N,pt)|0,o=o+Math.imul(N,mt)|0;var Pt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(D,pt),i=Math.imul(D,mt),i=i+Math.imul(U,pt)|0,o=Math.imul(U,mt);var Lt=(c+n|0)+((8191&i)<<13)|0;return c=(o+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,u[0]=gt,u[1]=vt,u[2]=bt,u[3]=yt,u[4]=wt,u[5]=Mt,u[6]=_t,u[7]=Et,u[8]=At,u[9]=xt,u[10]=Ot,u[11]=St,u[12]=kt,u[13]=Rt,u[14]=Tt,u[15]=Ct,u[16]=It,u[17]=Pt,u[18]=Lt,0!==c&&(u[19]=c,r.length++),r};function g(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o>>26)|0,i+=s>>>26,s&=67108863}r.words[o]=a,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}function v(t,e,r){var n=new b;return n.mulp(t,e,r)}function b(t,e){this.x=t,this.y=e}Math.imul||(m=p),o.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?m(this,t,e):n<63?p(this,t,e):n<1024?g(this,t,e):v(this,t,e),r},b.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n>=1;return n},b.prototype.permute=function(t,e,r,n,i,o){for(var s=0;s>>=1)i++;return 1<>>=13,r[2*s+1]=8191&o,o>>>=13;for(s=2*e;s>=26,e+=i/67108864|0,e+=o>>>26,this.words[r]=67108863&o}return 0!==e&&(this.words[r]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=d(t);if(0===e.length)return new o(1);for(var r=this,n=0;n=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(e=0;e>>26-r}s&&(this.words[e]=s,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<s)for(this.length-=s,c=0;c=0&&(0!==h||c>=i);c--){var l=0|this.words[c];this.words[c]=h<<26-o|l>>>o,h=l&a}return u&&0!==h&&(u.words[u.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(n("number"===typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===a)return this.strip();for(n(-1===a),a=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var r=this.length-t.length,n=this.clone(),i=t,s=0|i.words[i.length-1],a=this._countBits(s);r=26-a,0!==r&&(i=i.ushln(r),n.iushln(r),s=0|i.words[i.length-1]);var u,c=n.length-i.length;if("mod"!==e){u=new o(null),u.length=c+1,u.words=new Array(u.length);for(var h=0;h=0;f--){var d=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);d=Math.min(d/s|0,67108863),n._ishlnsubmul(i,d,f);while(0!==n.negative)d--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);u&&(u.words[f]=d)}return u&&u.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:u||null,mod:n}},o.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(t)),{div:i,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!==(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,s,a},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i=new o(1),s=new o(0),a=new o(0),u=new o(1),c=0;while(e.isEven()&&r.isEven())e.iushrn(1),r.iushrn(1),++c;var h=r.clone(),l=e.clone();while(!e.isZero()){for(var f=0,d=1;0===(e.words[0]&d)&&f<26;++f,d<<=1);if(f>0){e.iushrn(f);while(f-- >0)(i.isOdd()||s.isOdd())&&(i.iadd(h),s.isub(l)),i.iushrn(1),s.iushrn(1)}for(var p=0,m=1;0===(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0){r.iushrn(p);while(p-- >0)(a.isOdd()||u.isOdd())&&(a.iadd(h),u.isub(l)),a.iushrn(1),u.iushrn(1)}e.cmp(r)>=0?(e.isub(r),i.isub(a),s.isub(u)):(r.isub(e),a.isub(i),u.isub(s))}return{a:a,b:u,gcd:r.iushln(c)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i,s=new o(1),a=new o(0),u=r.clone();while(e.cmpn(1)>0&&r.cmpn(1)>0){for(var c=0,h=1;0===(e.words[0]&h)&&c<26;++c,h<<=1);if(c>0){e.iushrn(c);while(c-- >0)s.isOdd()&&s.iadd(u),s.iushrn(1)}for(var l=0,f=1;0===(r.words[0]&f)&&l<26;++l,f<<=1);if(l>0){r.iushrn(l);while(l-- >0)a.isOdd()&&a.iadd(u),a.iushrn(1)}e.cmp(r)>=0?(e.isub(r),s.isub(a)):(r.isub(e),a.isub(s))}return i=0===e.cmpn(1)?s:a,i.cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);do{while(e.isEven())e.iushrn(1);while(r.isEven())r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}while(1);return r.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"===typeof t);var e=t%26,r=(t-e)/26,i=1<>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){ni&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new x(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function M(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function E(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function O(t){x.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(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)}w.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),e=r.bitLength()}while(e>this.n);var n=e0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},i(M,w),M.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i>>22,o=s}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},M.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new M;else if("p224"===t)e=new _;else if("p192"===t)e=new E;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new A}return y[t]=e,e},x.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},x.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},x.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},x.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},x.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},x.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},x.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},x.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},x.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},x.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},x.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},x.prototype.isqr=function(t){return this.imul(t,t.clone())},x.prototype.sqr=function(t){return this.mul(t,t)},x.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2===1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}var i=this.m.subn(1),s=0;while(!i.isZero()&&0===i.andln(1))s++,i.iushrn(1);n(!i.isZero());var a=new o(1).toRed(this),u=a.redNeg(),c=this.m.subn(1).iushrn(1),h=this.m.bitLength();h=new o(2*h*h).toRed(this);while(0!==this.pow(h,c).cmp(u))h.redIAdd(u);var l=this.pow(h,i),f=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=s;while(0!==d.cmp(a)){for(var m=d,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g=0;i--){for(var h=e.words[i],l=c-1;l>=0;l--){var f=h>>l&1;s!==n[0]&&(s=this.sqr(s)),0!==f||0!==a?(a<<=1,a|=f,u++,(u===r||0===i&&0===l)&&(s=this.mul(s,n[a]),u=0,a=0)):u=0}c=26}return s},x.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},x.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new O(t)},i(O,x),O.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},O.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},O.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},O.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},O.prototype.invm=function(t){var e=this.imod(t._invmp(this.m).mul(this.r2));return e._forceRed(this)}})(t,this)}).call(this,r("hOG+")(t))},N5aZ:function(t,e,r){"use strict";r.d(e,"b",(function(){return h})),r.d(e,"c",(function(){return l})),r.d(e,"d",(function(){return f})),r.d(e,"a",(function(){return d}));var n=r("fZJM"),i=r.n(n),o=r("VJ7P"),s=r("1Few"),a=r("/7J2");const u="sha2/5.7.0",c=new a["Logger"](u);function h(t){return"0x"+i.a.ripemd160().update(Object(o["arrayify"])(t)).digest("hex")}function l(t){return"0x"+i.a.sha256().update(Object(o["arrayify"])(t)).digest("hex")}function f(t){return"0x"+i.a.sha512().update(Object(o["arrayify"])(t)).digest("hex")}function d(t,e,r){return s["a"][t]||c.throwError("unsupported algorithm "+t,a["Logger"].errors.UNSUPPORTED_OPERATION,{operation:"hmac",algorithm:t}),"0x"+i.a.hmac(i.a[t],Object(o["arrayify"])(e)).update(Object(o["arrayify"])(r)).digest("hex")}},NMFW:function(t,e,r){var n=r("ukPv"),i=r("lz10"),o=r("jtLI"),s=r("TMUv"),a=r("J3Yn"),u=r("1aI8"),c=u.get,h=u.enforce,l=String(String).split("String");(t.exports=function(t,e,r,a){var u=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,f=!!a&&!!a.noTargetGet;"function"==typeof r&&("string"!=typeof e||o(r,"name")||i(r,"name",e),h(r).source=l.join("string"==typeof e?e:"")),t!==n?(u?!f&&t[e]&&(c=!0):delete t[e],c?t[e]=r:i(t,e,r)):c?t[e]=r:s(e,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||a(this)}))},NMu4:function(t,e,r){"use strict";var n=r("MMxC");n({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},NQVK:function(t,e,r){var n=r("hwdV").Buffer,i=r("jIre");function o(t,e,r){var o=e.length,s=i(e,t._cache);return t._cache=t._cache.slice(o),t._prev=n.concat([t._prev,r?e:s]),s}e.encrypt=function(t,e,r){var i,s=n.allocUnsafe(0);while(e.length){if(0===t._cache.length&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=n.allocUnsafe(0)),!(t._cache.length<=e.length)){s=n.concat([s,o(t,e,r)]);break}i=t._cache.length,s=n.concat([s,o(t,e.slice(0,i),r)]),e=e.slice(i)}return s}},"NQz/":function(t,e,r){"use strict";var n=r("FVwB").exportTypedArrayMethod,i=r("MVys"),o=r("ukPv"),s=o.Uint8Array,a=s&&s.prototype||{},u=[].toString,c=[].join;i((function(){u.call({})}))&&(u=function(){return c.call(this)});var h=a.toString!=u;n("toString",u,h)},NYJX:function(t,e,r){"use strict";var n=r("MMxC"),i=r("zv1X").filter,o=r("jMDO"),s=r("kGMc"),a=o("filter"),u=s("filter");n({target:"Array",proto:!0,forced:!a||!u},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},NaiW:function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var n=r("b1pR"),i=r("UnNr");function o(t){return Object(n["keccak256"])(Object(i["f"])(t))}},NcLc:function(t,e,r){"use strict";var n=r("k/J9"),i=r("M8HR"),o=RegExp.prototype.exec,s=String.prototype.replace,a=o,u=function(){var t=/a/,e=/b*/g;return o.call(t,"a"),o.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),c=i.UNSUPPORTED_Y||i.BROKEN_CARET,h=void 0!==/()??/.exec("")[1],l=u||h||c;l&&(a=function(t){var e,r,i,a,l=this,f=c&&l.sticky,d=n.call(l),p=l.source,m=0,g=t;return f&&(d=d.replace("y",""),-1===d.indexOf("g")&&(d+="g"),g=String(t).slice(l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==t[l.lastIndex-1])&&(p="(?: "+p+")",g=" "+g,m++),r=new RegExp("^(?:"+p+")",d)),h&&(r=new RegExp("^"+p+"$(?!\\s)",d)),u&&(e=l.lastIndex),i=o.call(f?r:l,g),f?i?(i.input=i.input.slice(m),i[0]=i[0].slice(m),i.index=l.lastIndex,l.lastIndex+=i[0].length):l.lastIndex=0:u&&i&&(l.lastIndex=l.global?i.index+i[0].length:e),h&&i&&i.length>1&&s.call(i[0],r,(function(){for(a=1;a=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+t)}function u(t,e,r){var n=a(t,r);return r-1>=e&&(n|=a(t,r-1)<<4),n}function c(t,e,r,i){for(var o=0,s=0,a=Math.min(t.length,r),u=e;u=49?c-49+10:c>=17?c-17+10:c,n(c>=0&&s0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,r){if("number"===typeof t)return this._initNumber(t,e,r);if("object"===typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var i=0;"-"===t[0]&&(i++,this.negative=1),i=0;i-=3)s=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=s<>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-a&67108863,a+=24,a>=26&&(a-=26,o++);return this._strip()},o.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=2)i=u(t,e,n)<=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else{var a=t.length-e;for(n=a%2===0?e+1:e;n=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8}this._strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,s=o%n,a=Math.min(o,o-s)+r,u=0,h=r;h1&&0===this.words[this.length-1])this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!==typeof Symbol&&"function"===typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(T){o.prototype.inspect=l}else o.prototype.inspect=l;function l(){return(this.red?""}var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[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];o.prototype.toString=function(t,e){var r;if(t=t||10,e=0|e||1,16===t||"hex"===t){r="";for(var i=0,o=0,s=0;s>>24-i&16777215,i+=2,i>=26&&(i-=26,s--),r=0!==o||s!==this.length-1?f[6-u.length]+u+r:u+r}0!==o&&(r=o.toString(16)+r);while(r.length%e!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var c=d[t],h=p[t];r="";var l=this.clone();l.negative=0;while(!l.isZero()){var m=l.modrn(h).toString(t);l=l.idivn(h),r=l.isZero()?m+r:f[c-m.length]+m+r}this.isZero()&&(r="0"+r);while(r.length%e!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16,2)},s&&(o.prototype.toBuffer=function(t,e){return this.toArrayLike(s,t,e)}),o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)};var m=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)};function g(t){for(var e=new Array(t.bitLength()),r=0;r>>i&1}return e}function v(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],s=i*o,a=67108863&s,u=s/67108864|0;r.words[0]=a;for(var c=1;c>>26,l=67108863&u,f=Math.min(c,e.length-1),d=Math.max(0,c-t.length+1);d<=f;d++){var p=c-d|0;i=0|t.words[p],o=0|e.words[d],s=i*o+l,h+=s/67108864|0,l=67108863&s}r.words[c]=0|l,u=0|h}return 0!==u?r.words[c]=0|u:r.length--,r._strip()}o.prototype.toArrayLike=function(t,e,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var s=m(t,o),a="le"===e?"LE":"BE";return this["_toArrayLike"+a](s,i),s},o.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,i=0,o=0;i>8&255),r>16&255),6===o?(r>24&255),n=0,o=0):(n=s>>>24,o+=2)}if(r=0&&(t[r--]=s>>8&255),r>=0&&(t[r--]=s>>16&255),6===o?(r>=0&&(t[r--]=s>>24&255),n=0,o=0):(n=s>>>24,o+=2)}if(r>=0){t[r--]=n;while(r>=0)t[r--]=0}},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0===(8191&e)&&(r+=13,e>>>=13),0===(127&e)&&(r+=7,e>>>=7),0===(15&e)&&(r+=4,e>>>=4),0===(3&e)&&(r+=2,e>>>=2),0===(1&e)&&r++,r},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;rt.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"===typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,s=0;s>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,d=0|s[1],p=8191&d,m=d>>>13,g=0|s[2],v=8191&g,b=g>>>13,y=0|s[3],w=8191&y,M=y>>>13,_=0|s[4],E=8191&_,A=_>>>13,x=0|s[5],O=8191&x,S=x>>>13,k=0|s[6],R=8191&k,T=k>>>13,C=0|s[7],I=8191&C,P=C>>>13,L=0|s[8],j=8191&L,N=L>>>13,B=0|s[9],D=8191&B,U=B>>>13,F=0|a[0],q=8191&F,G=F>>>13,V=0|a[1],z=8191&V,$=V>>>13,K=0|a[2],H=8191&K,W=K>>>13,Z=0|a[3],J=8191&Z,X=Z>>>13,Y=0|a[4],Q=8191&Y,tt=Y>>>13,et=0|a[5],rt=8191&et,nt=et>>>13,it=0|a[6],ot=8191&it,st=it>>>13,at=0|a[7],ut=8191&at,ct=at>>>13,ht=0|a[8],lt=8191&ht,ft=ht>>>13,dt=0|a[9],pt=8191&dt,mt=dt>>>13;r.negative=t.negative^e.negative,r.length=19,n=Math.imul(l,q),i=Math.imul(l,G),i=i+Math.imul(f,q)|0,o=Math.imul(f,G);var gt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(p,q),i=Math.imul(p,G),i=i+Math.imul(m,q)|0,o=Math.imul(m,G),n=n+Math.imul(l,z)|0,i=i+Math.imul(l,$)|0,i=i+Math.imul(f,z)|0,o=o+Math.imul(f,$)|0;var vt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(v,q),i=Math.imul(v,G),i=i+Math.imul(b,q)|0,o=Math.imul(b,G),n=n+Math.imul(p,z)|0,i=i+Math.imul(p,$)|0,i=i+Math.imul(m,z)|0,o=o+Math.imul(m,$)|0,n=n+Math.imul(l,H)|0,i=i+Math.imul(l,W)|0,i=i+Math.imul(f,H)|0,o=o+Math.imul(f,W)|0;var bt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(w,q),i=Math.imul(w,G),i=i+Math.imul(M,q)|0,o=Math.imul(M,G),n=n+Math.imul(v,z)|0,i=i+Math.imul(v,$)|0,i=i+Math.imul(b,z)|0,o=o+Math.imul(b,$)|0,n=n+Math.imul(p,H)|0,i=i+Math.imul(p,W)|0,i=i+Math.imul(m,H)|0,o=o+Math.imul(m,W)|0,n=n+Math.imul(l,J)|0,i=i+Math.imul(l,X)|0,i=i+Math.imul(f,J)|0,o=o+Math.imul(f,X)|0;var yt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(E,q),i=Math.imul(E,G),i=i+Math.imul(A,q)|0,o=Math.imul(A,G),n=n+Math.imul(w,z)|0,i=i+Math.imul(w,$)|0,i=i+Math.imul(M,z)|0,o=o+Math.imul(M,$)|0,n=n+Math.imul(v,H)|0,i=i+Math.imul(v,W)|0,i=i+Math.imul(b,H)|0,o=o+Math.imul(b,W)|0,n=n+Math.imul(p,J)|0,i=i+Math.imul(p,X)|0,i=i+Math.imul(m,J)|0,o=o+Math.imul(m,X)|0,n=n+Math.imul(l,Q)|0,i=i+Math.imul(l,tt)|0,i=i+Math.imul(f,Q)|0,o=o+Math.imul(f,tt)|0;var wt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(O,q),i=Math.imul(O,G),i=i+Math.imul(S,q)|0,o=Math.imul(S,G),n=n+Math.imul(E,z)|0,i=i+Math.imul(E,$)|0,i=i+Math.imul(A,z)|0,o=o+Math.imul(A,$)|0,n=n+Math.imul(w,H)|0,i=i+Math.imul(w,W)|0,i=i+Math.imul(M,H)|0,o=o+Math.imul(M,W)|0,n=n+Math.imul(v,J)|0,i=i+Math.imul(v,X)|0,i=i+Math.imul(b,J)|0,o=o+Math.imul(b,X)|0,n=n+Math.imul(p,Q)|0,i=i+Math.imul(p,tt)|0,i=i+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0,n=n+Math.imul(l,rt)|0,i=i+Math.imul(l,nt)|0,i=i+Math.imul(f,rt)|0,o=o+Math.imul(f,nt)|0;var Mt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(R,q),i=Math.imul(R,G),i=i+Math.imul(T,q)|0,o=Math.imul(T,G),n=n+Math.imul(O,z)|0,i=i+Math.imul(O,$)|0,i=i+Math.imul(S,z)|0,o=o+Math.imul(S,$)|0,n=n+Math.imul(E,H)|0,i=i+Math.imul(E,W)|0,i=i+Math.imul(A,H)|0,o=o+Math.imul(A,W)|0,n=n+Math.imul(w,J)|0,i=i+Math.imul(w,X)|0,i=i+Math.imul(M,J)|0,o=o+Math.imul(M,X)|0,n=n+Math.imul(v,Q)|0,i=i+Math.imul(v,tt)|0,i=i+Math.imul(b,Q)|0,o=o+Math.imul(b,tt)|0,n=n+Math.imul(p,rt)|0,i=i+Math.imul(p,nt)|0,i=i+Math.imul(m,rt)|0,o=o+Math.imul(m,nt)|0,n=n+Math.imul(l,ot)|0,i=i+Math.imul(l,st)|0,i=i+Math.imul(f,ot)|0,o=o+Math.imul(f,st)|0;var _t=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(I,q),i=Math.imul(I,G),i=i+Math.imul(P,q)|0,o=Math.imul(P,G),n=n+Math.imul(R,z)|0,i=i+Math.imul(R,$)|0,i=i+Math.imul(T,z)|0,o=o+Math.imul(T,$)|0,n=n+Math.imul(O,H)|0,i=i+Math.imul(O,W)|0,i=i+Math.imul(S,H)|0,o=o+Math.imul(S,W)|0,n=n+Math.imul(E,J)|0,i=i+Math.imul(E,X)|0,i=i+Math.imul(A,J)|0,o=o+Math.imul(A,X)|0,n=n+Math.imul(w,Q)|0,i=i+Math.imul(w,tt)|0,i=i+Math.imul(M,Q)|0,o=o+Math.imul(M,tt)|0,n=n+Math.imul(v,rt)|0,i=i+Math.imul(v,nt)|0,i=i+Math.imul(b,rt)|0,o=o+Math.imul(b,nt)|0,n=n+Math.imul(p,ot)|0,i=i+Math.imul(p,st)|0,i=i+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0,n=n+Math.imul(l,ut)|0,i=i+Math.imul(l,ct)|0,i=i+Math.imul(f,ut)|0,o=o+Math.imul(f,ct)|0;var Et=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(j,q),i=Math.imul(j,G),i=i+Math.imul(N,q)|0,o=Math.imul(N,G),n=n+Math.imul(I,z)|0,i=i+Math.imul(I,$)|0,i=i+Math.imul(P,z)|0,o=o+Math.imul(P,$)|0,n=n+Math.imul(R,H)|0,i=i+Math.imul(R,W)|0,i=i+Math.imul(T,H)|0,o=o+Math.imul(T,W)|0,n=n+Math.imul(O,J)|0,i=i+Math.imul(O,X)|0,i=i+Math.imul(S,J)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(E,Q)|0,i=i+Math.imul(E,tt)|0,i=i+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(w,rt)|0,i=i+Math.imul(w,nt)|0,i=i+Math.imul(M,rt)|0,o=o+Math.imul(M,nt)|0,n=n+Math.imul(v,ot)|0,i=i+Math.imul(v,st)|0,i=i+Math.imul(b,ot)|0,o=o+Math.imul(b,st)|0,n=n+Math.imul(p,ut)|0,i=i+Math.imul(p,ct)|0,i=i+Math.imul(m,ut)|0,o=o+Math.imul(m,ct)|0,n=n+Math.imul(l,lt)|0,i=i+Math.imul(l,ft)|0,i=i+Math.imul(f,lt)|0,o=o+Math.imul(f,ft)|0;var At=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(D,q),i=Math.imul(D,G),i=i+Math.imul(U,q)|0,o=Math.imul(U,G),n=n+Math.imul(j,z)|0,i=i+Math.imul(j,$)|0,i=i+Math.imul(N,z)|0,o=o+Math.imul(N,$)|0,n=n+Math.imul(I,H)|0,i=i+Math.imul(I,W)|0,i=i+Math.imul(P,H)|0,o=o+Math.imul(P,W)|0,n=n+Math.imul(R,J)|0,i=i+Math.imul(R,X)|0,i=i+Math.imul(T,J)|0,o=o+Math.imul(T,X)|0,n=n+Math.imul(O,Q)|0,i=i+Math.imul(O,tt)|0,i=i+Math.imul(S,Q)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(E,rt)|0,i=i+Math.imul(E,nt)|0,i=i+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(w,ot)|0,i=i+Math.imul(w,st)|0,i=i+Math.imul(M,ot)|0,o=o+Math.imul(M,st)|0,n=n+Math.imul(v,ut)|0,i=i+Math.imul(v,ct)|0,i=i+Math.imul(b,ut)|0,o=o+Math.imul(b,ct)|0,n=n+Math.imul(p,lt)|0,i=i+Math.imul(p,ft)|0,i=i+Math.imul(m,lt)|0,o=o+Math.imul(m,ft)|0,n=n+Math.imul(l,pt)|0,i=i+Math.imul(l,mt)|0,i=i+Math.imul(f,pt)|0,o=o+Math.imul(f,mt)|0;var xt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(D,z),i=Math.imul(D,$),i=i+Math.imul(U,z)|0,o=Math.imul(U,$),n=n+Math.imul(j,H)|0,i=i+Math.imul(j,W)|0,i=i+Math.imul(N,H)|0,o=o+Math.imul(N,W)|0,n=n+Math.imul(I,J)|0,i=i+Math.imul(I,X)|0,i=i+Math.imul(P,J)|0,o=o+Math.imul(P,X)|0,n=n+Math.imul(R,Q)|0,i=i+Math.imul(R,tt)|0,i=i+Math.imul(T,Q)|0,o=o+Math.imul(T,tt)|0,n=n+Math.imul(O,rt)|0,i=i+Math.imul(O,nt)|0,i=i+Math.imul(S,rt)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(E,ot)|0,i=i+Math.imul(E,st)|0,i=i+Math.imul(A,ot)|0,o=o+Math.imul(A,st)|0,n=n+Math.imul(w,ut)|0,i=i+Math.imul(w,ct)|0,i=i+Math.imul(M,ut)|0,o=o+Math.imul(M,ct)|0,n=n+Math.imul(v,lt)|0,i=i+Math.imul(v,ft)|0,i=i+Math.imul(b,lt)|0,o=o+Math.imul(b,ft)|0,n=n+Math.imul(p,pt)|0,i=i+Math.imul(p,mt)|0,i=i+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var Ot=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(D,H),i=Math.imul(D,W),i=i+Math.imul(U,H)|0,o=Math.imul(U,W),n=n+Math.imul(j,J)|0,i=i+Math.imul(j,X)|0,i=i+Math.imul(N,J)|0,o=o+Math.imul(N,X)|0,n=n+Math.imul(I,Q)|0,i=i+Math.imul(I,tt)|0,i=i+Math.imul(P,Q)|0,o=o+Math.imul(P,tt)|0,n=n+Math.imul(R,rt)|0,i=i+Math.imul(R,nt)|0,i=i+Math.imul(T,rt)|0,o=o+Math.imul(T,nt)|0,n=n+Math.imul(O,ot)|0,i=i+Math.imul(O,st)|0,i=i+Math.imul(S,ot)|0,o=o+Math.imul(S,st)|0,n=n+Math.imul(E,ut)|0,i=i+Math.imul(E,ct)|0,i=i+Math.imul(A,ut)|0,o=o+Math.imul(A,ct)|0,n=n+Math.imul(w,lt)|0,i=i+Math.imul(w,ft)|0,i=i+Math.imul(M,lt)|0,o=o+Math.imul(M,ft)|0,n=n+Math.imul(v,pt)|0,i=i+Math.imul(v,mt)|0,i=i+Math.imul(b,pt)|0,o=o+Math.imul(b,mt)|0;var St=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(D,J),i=Math.imul(D,X),i=i+Math.imul(U,J)|0,o=Math.imul(U,X),n=n+Math.imul(j,Q)|0,i=i+Math.imul(j,tt)|0,i=i+Math.imul(N,Q)|0,o=o+Math.imul(N,tt)|0,n=n+Math.imul(I,rt)|0,i=i+Math.imul(I,nt)|0,i=i+Math.imul(P,rt)|0,o=o+Math.imul(P,nt)|0,n=n+Math.imul(R,ot)|0,i=i+Math.imul(R,st)|0,i=i+Math.imul(T,ot)|0,o=o+Math.imul(T,st)|0,n=n+Math.imul(O,ut)|0,i=i+Math.imul(O,ct)|0,i=i+Math.imul(S,ut)|0,o=o+Math.imul(S,ct)|0,n=n+Math.imul(E,lt)|0,i=i+Math.imul(E,ft)|0,i=i+Math.imul(A,lt)|0,o=o+Math.imul(A,ft)|0,n=n+Math.imul(w,pt)|0,i=i+Math.imul(w,mt)|0,i=i+Math.imul(M,pt)|0,o=o+Math.imul(M,mt)|0;var kt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(D,Q),i=Math.imul(D,tt),i=i+Math.imul(U,Q)|0,o=Math.imul(U,tt),n=n+Math.imul(j,rt)|0,i=i+Math.imul(j,nt)|0,i=i+Math.imul(N,rt)|0,o=o+Math.imul(N,nt)|0,n=n+Math.imul(I,ot)|0,i=i+Math.imul(I,st)|0,i=i+Math.imul(P,ot)|0,o=o+Math.imul(P,st)|0,n=n+Math.imul(R,ut)|0,i=i+Math.imul(R,ct)|0,i=i+Math.imul(T,ut)|0,o=o+Math.imul(T,ct)|0,n=n+Math.imul(O,lt)|0,i=i+Math.imul(O,ft)|0,i=i+Math.imul(S,lt)|0,o=o+Math.imul(S,ft)|0,n=n+Math.imul(E,pt)|0,i=i+Math.imul(E,mt)|0,i=i+Math.imul(A,pt)|0,o=o+Math.imul(A,mt)|0;var Rt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(D,rt),i=Math.imul(D,nt),i=i+Math.imul(U,rt)|0,o=Math.imul(U,nt),n=n+Math.imul(j,ot)|0,i=i+Math.imul(j,st)|0,i=i+Math.imul(N,ot)|0,o=o+Math.imul(N,st)|0,n=n+Math.imul(I,ut)|0,i=i+Math.imul(I,ct)|0,i=i+Math.imul(P,ut)|0,o=o+Math.imul(P,ct)|0,n=n+Math.imul(R,lt)|0,i=i+Math.imul(R,ft)|0,i=i+Math.imul(T,lt)|0,o=o+Math.imul(T,ft)|0,n=n+Math.imul(O,pt)|0,i=i+Math.imul(O,mt)|0,i=i+Math.imul(S,pt)|0,o=o+Math.imul(S,mt)|0;var Tt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(D,ot),i=Math.imul(D,st),i=i+Math.imul(U,ot)|0,o=Math.imul(U,st),n=n+Math.imul(j,ut)|0,i=i+Math.imul(j,ct)|0,i=i+Math.imul(N,ut)|0,o=o+Math.imul(N,ct)|0,n=n+Math.imul(I,lt)|0,i=i+Math.imul(I,ft)|0,i=i+Math.imul(P,lt)|0,o=o+Math.imul(P,ft)|0,n=n+Math.imul(R,pt)|0,i=i+Math.imul(R,mt)|0,i=i+Math.imul(T,pt)|0,o=o+Math.imul(T,mt)|0;var Ct=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(D,ut),i=Math.imul(D,ct),i=i+Math.imul(U,ut)|0,o=Math.imul(U,ct),n=n+Math.imul(j,lt)|0,i=i+Math.imul(j,ft)|0,i=i+Math.imul(N,lt)|0,o=o+Math.imul(N,ft)|0,n=n+Math.imul(I,pt)|0,i=i+Math.imul(I,mt)|0,i=i+Math.imul(P,pt)|0,o=o+Math.imul(P,mt)|0;var It=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(D,lt),i=Math.imul(D,ft),i=i+Math.imul(U,lt)|0,o=Math.imul(U,ft),n=n+Math.imul(j,pt)|0,i=i+Math.imul(j,mt)|0,i=i+Math.imul(N,pt)|0,o=o+Math.imul(N,mt)|0;var Pt=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(D,pt),i=Math.imul(D,mt),i=i+Math.imul(U,pt)|0,o=Math.imul(U,mt);var Lt=(c+n|0)+((8191&i)<<13)|0;return c=(o+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,u[0]=gt,u[1]=vt,u[2]=bt,u[3]=yt,u[4]=wt,u[5]=Mt,u[6]=_t,u[7]=Et,u[8]=At,u[9]=xt,u[10]=Ot,u[11]=St,u[12]=kt,u[13]=Rt,u[14]=Tt,u[15]=Ct,u[16]=It,u[17]=Pt,u[18]=Lt,0!==c&&(u[19]=c,r.length++),r};function y(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o>>26)|0,i+=s>>>26,s&=67108863}r.words[o]=a,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function w(t,e,r){return y(t,e,r)}function M(t,e){this.x=t,this.y=e}Math.imul||(b=v),o.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?b(this,t,e):n<63?v(this,t,e):n<1024?y(this,t,e):w(this,t,e),r},M.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n>=1;return n},M.prototype.permute=function(t,e,r,n,i,o){for(var s=0;s>>=1)i++;return 1<>>=13,r[2*s+1]=8191&o,o>>>=13;for(s=2*e;s>=26,r+=o/67108864|0,r+=s>>>26,this.words[i]=67108863&s}return 0!==r&&(this.words[i]=r,this.length++),e?this.ineg():this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=g(t);if(0===e.length)return new o(1);for(var r=this,n=0;n=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(e=0;e>>26-r}s&&(this.words[e]=s,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<s)for(this.length-=s,c=0;c=0&&(0!==h||c>=i);c--){var l=0|this.words[c];this.words[c]=h<<26-o|l>>>o,h=l&a}return u&&0!==h&&(u.words[u.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"===typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(n("number"===typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===a)return this._strip();for(n(-1===a),a=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(t,e){var r=this.length-t.length,n=this.clone(),i=t,s=0|i.words[i.length-1],a=this._countBits(s);r=26-a,0!==r&&(i=i.ushln(r),n.iushln(r),s=0|i.words[i.length-1]);var u,c=n.length-i.length;if("mod"!==e){u=new o(null),u.length=c+1,u.words=new Array(u.length);for(var h=0;h=0;f--){var d=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);d=Math.min(d/s|0,67108863),n._ishlnsubmul(i,d,f);while(0!==n.negative)d--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);u&&(u.words[f]=d)}return u&&u._strip(),n._strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:u||null,mod:n}},o.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(t)),{div:i,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!==(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modrn(t.words[0]))}:this._wordDiv(t,e);var i,s,a},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=(1<<26)%t,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%t;return e?-i:i},o.prototype.modn=function(t){return this.modrn(t)},o.prototype.idivn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/t|0,r=o%t}return this._strip(),e?this.ineg():this},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i=new o(1),s=new o(0),a=new o(0),u=new o(1),c=0;while(e.isEven()&&r.isEven())e.iushrn(1),r.iushrn(1),++c;var h=r.clone(),l=e.clone();while(!e.isZero()){for(var f=0,d=1;0===(e.words[0]&d)&&f<26;++f,d<<=1);if(f>0){e.iushrn(f);while(f-- >0)(i.isOdd()||s.isOdd())&&(i.iadd(h),s.isub(l)),i.iushrn(1),s.iushrn(1)}for(var p=0,m=1;0===(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0){r.iushrn(p);while(p-- >0)(a.isOdd()||u.isOdd())&&(a.iadd(h),u.isub(l)),a.iushrn(1),u.iushrn(1)}e.cmp(r)>=0?(e.isub(r),i.isub(a),s.isub(u)):(r.isub(e),a.isub(i),u.isub(s))}return{a:a,b:u,gcd:r.iushln(c)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i,s=new o(1),a=new o(0),u=r.clone();while(e.cmpn(1)>0&&r.cmpn(1)>0){for(var c=0,h=1;0===(e.words[0]&h)&&c<26;++c,h<<=1);if(c>0){e.iushrn(c);while(c-- >0)s.isOdd()&&s.iadd(u),s.iushrn(1)}for(var l=0,f=1;0===(r.words[0]&f)&&l<26;++l,f<<=1);if(l>0){r.iushrn(l);while(l-- >0)a.isOdd()&&a.iadd(u),a.iushrn(1)}e.cmp(r)>=0?(e.isub(r),s.isub(a)):(r.isub(e),a.isub(s))}return i=0===e.cmpn(1)?s:a,i.cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);do{while(e.isEven())e.iushrn(1);while(r.isEven())r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}while(1);return r.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"===typeof t);var e=t%26,r=(t-e)/26,i=1<>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){ni&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new k(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var _={k256:null,p224:null,p192:null,p25519:null};function E(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function A(){E.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function x(){E.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function O(){E.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){E.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function R(t){k.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}E.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},E.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),e=r.bitLength()}while(e>this.n);var n=e0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},E.prototype.split=function(t,e){t.iushrn(this.n,0,e)},E.prototype.imulK=function(t){return t.imul(this.k)},i(A,E),A.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i>>22,o=s}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},A.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(_[t])return _[t];var e;if("k256"===t)e=new A;else if("p224"===t)e=new x;else if("p192"===t)e=new O;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new S}return _[t]=e,e},k.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},k.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},k.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(h(t,t.umod(this.m)._forceRed(this)),t)},k.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},k.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},k.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},k.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},k.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},k.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},k.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},k.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},k.prototype.isqr=function(t){return this.imul(t,t.clone())},k.prototype.sqr=function(t){return this.mul(t,t)},k.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2===1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}var i=this.m.subn(1),s=0;while(!i.isZero()&&0===i.andln(1))s++,i.iushrn(1);n(!i.isZero());var a=new o(1).toRed(this),u=a.redNeg(),c=this.m.subn(1).iushrn(1),h=this.m.bitLength();h=new o(2*h*h).toRed(this);while(0!==this.pow(h,c).cmp(u))h.redIAdd(u);var l=this.pow(h,i),f=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=s;while(0!==d.cmp(a)){for(var m=d,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g=0;i--){for(var h=e.words[i],l=c-1;l>=0;l--){var f=h>>l&1;s!==n[0]&&(s=this.sqr(s)),0!==f||0!==a?(a<<=1,a|=f,u++,(u===r||0===i&&0===l)&&(s=this.mul(s,n[a]),u=0,a=0)):u=0}c=26}return s},k.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},k.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new R(t)},i(R,k),R.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},R.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},R.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},R.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},R.prototype.invm=function(t){var e=this.imod(t._invmp(this.m).mul(this.r2));return e._forceRed(this)}})(t,this)}).call(this,r("hOG+")(t))},OfWw:function(t,e,r){var n=r("hwdV").Buffer;function i(t){n.isBuffer(t)||(t=n.from(t));for(var e=t.length/4|0,r=new Array(e),i=0;i>>24]^h[p>>>16&255]^l[m>>>8&255]^f[255&g]^e[v++],s=c[p>>>24]^h[m>>>16&255]^l[g>>>8&255]^f[255&d]^e[v++],a=c[m>>>24]^h[g>>>16&255]^l[d>>>8&255]^f[255&p]^e[v++],u=c[g>>>24]^h[d>>>16&255]^l[p>>>8&255]^f[255&m]^e[v++],d=o,p=s,m=a,g=u;return o=(n[d>>>24]<<24|n[p>>>16&255]<<16|n[m>>>8&255]<<8|n[255&g])^e[v++],s=(n[p>>>24]<<24|n[m>>>16&255]<<16|n[g>>>8&255]<<8|n[255&d])^e[v++],a=(n[m>>>24]<<24|n[g>>>16&255]<<16|n[d>>>8&255]<<8|n[255&p])^e[v++],u=(n[g>>>24]<<24|n[d>>>16&255]<<16|n[p>>>8&255]<<8|n[255&m])^e[v++],o>>>=0,s>>>=0,a>>>=0,u>>>=0,[o,s,a,u]}var a=[0,1,2,4,8,16,32,64,128,27,54],u=function(){for(var t=new Array(256),e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;for(var r=[],n=[],i=[[],[],[],[]],o=[[],[],[],[]],s=0,a=0,u=0;u<256;++u){var c=a^a<<1^a<<2^a<<3^a<<4;c=c>>>8^255&c^99,r[s]=c,n[c]=s;var h=t[s],l=t[h],f=t[l],d=257*t[c]^16843008*c;i[0][s]=d<<24|d>>>8,i[1][s]=d<<16|d>>>16,i[2][s]=d<<8|d>>>24,i[3][s]=d,d=16843009*f^65537*l^257*h^16843008*s,o[0][c]=d<<24|d>>>8,o[1][c]=d<<16|d>>>16,o[2][c]=d<<8|d>>>24,o[3][c]=d,0===s?s=a=1:(s=h^t[t[t[f^h]]],a^=t[t[a]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:o}}();function c(t){this._key=i(t),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var t=this._key,e=t.length,r=e+6,n=4*(r+1),i=[],o=0;o>>24,s=u.SBOX[s>>>24]<<24|u.SBOX[s>>>16&255]<<16|u.SBOX[s>>>8&255]<<8|u.SBOX[255&s],s^=a[o/e|0]<<24):e>6&&o%e===4&&(s=u.SBOX[s>>>24]<<24|u.SBOX[s>>>16&255]<<16|u.SBOX[s>>>8&255]<<8|u.SBOX[255&s]),i[o]=i[o-e]^s}for(var c=[],h=0;h>>24]]^u.INV_SUB_MIX[1][u.SBOX[f>>>16&255]]^u.INV_SUB_MIX[2][u.SBOX[f>>>8&255]]^u.INV_SUB_MIX[3][u.SBOX[255&f]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=c},c.prototype.encryptBlockRaw=function(t){return t=i(t),s(t,this._keySchedule,u.SUB_MIX,u.SBOX,this._nRounds)},c.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),r=n.allocUnsafe(16);return r.writeUInt32BE(e[0],0),r.writeUInt32BE(e[1],4),r.writeUInt32BE(e[2],8),r.writeUInt32BE(e[3],12),r},c.prototype.decryptBlock=function(t){t=i(t);var e=t[1];t[1]=t[3],t[3]=e;var r=s(t,this._invKeySchedule,u.INV_SUB_MIX,u.INV_SBOX,this._nRounds),o=n.allocUnsafe(16);return o.writeUInt32BE(r[0],0),o.writeUInt32BE(r[3],4),o.writeUInt32BE(r[2],8),o.writeUInt32BE(r[1],12),o},c.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},t.exports.AES=c},OheS:function(t,e,r){"use strict";r.r(e);var n=r("4218");r.d(e,"BigNumber",(function(){return n["a"]}));var i=r("DRew");r.d(e,"formatFixed",(function(){return i["c"]})),r.d(e,"FixedFormat",(function(){return i["a"]})),r.d(e,"FixedNumber",(function(){return i["b"]})),r.d(e,"parseFixed",(function(){return i["d"]})),r.d(e,"_base16To36",(function(){return n["b"]})),r.d(e,"_base36To16",(function(){return n["c"]}))},OjQg:function(module,exports,__webpack_require__){(function(global){!function(t,e){module.exports=e()}(this||self,(function(){return function(){var __webpack_modules__={4264:function(t,e,r){t.exports=r(7588)},5036:function(t,e,r){r(1719),r(5677),r(6394),r(5334),r(6969),r(2021),r(8328),r(2129);var n=r(1287);t.exports=n.Promise},2582:function(t,e,r){r(1646),r(6394),r(2004),r(462),r(8407),r(2429),r(1172),r(8288),r(1274),r(8201),r(6626),r(3211),r(9952),r(15),r(9831),r(7521),r(2972),r(6956),r(5222),r(2257);var n=r(1287);t.exports=n.Symbol},8257:function(t,e,r){var n=r(7583),i=r(9212),o=r(5637),s=n.TypeError;t.exports=function(t){if(i(t))return t;throw s(o(t)+" is not a function")}},1186:function(t,e,r){var n=r(7583),i=r(2097),o=r(5637),s=n.TypeError;t.exports=function(t){if(i(t))return t;throw s(o(t)+" is not a constructor")}},9882:function(t,e,r){var n=r(7583),i=r(9212),o=n.String,s=n.TypeError;t.exports=function(t){if("object"==typeof t||i(t))return t;throw s("Can't set "+o(t)+" as a prototype")}},6288:function(t,e,r){var n=r(3649),i=r(3590),o=r(4615),s=n("unscopables"),a=Array.prototype;null==a[s]&&o.f(a,s,{configurable:!0,value:i(null)}),t.exports=function(t){a[s][t]=!0}},4761:function(t,e,r){var n=r(7583),i=r(2447),o=n.TypeError;t.exports=function(t,e){if(i(e,t))return t;throw o("Incorrect invocation")}},2569:function(t,e,r){var n=r(7583),i=r(794),o=n.String,s=n.TypeError;t.exports=function(t){if(i(t))return t;throw s(o(t)+" is not an object")}},5766:function(t,e,r){var n=r(2977),i=r(6782),o=r(1825),s=function(t){return function(e,r,s){var a,u=n(e),c=o(u),h=i(s,c);if(t&&r!=r){for(;c>h;)if((a=u[h++])!=a)return!0}else for(;c>h;h++)if((t||h in u)&&u[h]===r)return t||h||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},4805:function(t,e,r){var n=r(2938),i=r(7386),o=r(5044),s=r(1324),a=r(1825),u=r(4822),c=i([].push),h=function(t){var e=1==t,r=2==t,i=3==t,h=4==t,l=6==t,f=7==t,d=5==t||l;return function(p,m,g,v){for(var b,y,w=s(p),M=o(w),_=n(m,g),E=a(M),A=0,x=v||u,O=e?x(p,E):r||f?x(p,0):void 0;E>A;A++)if((d||A in M)&&(y=_(b=M[A],A,w),t))if(e)O[A]=y;else if(y)switch(t){case 3:return!0;case 5:return b;case 6:return A;case 2:c(O,b)}else switch(t){case 4:return!1;case 7:c(O,b)}return l?-1:i||h?h:O}};t.exports={forEach:h(0),map:h(1),filter:h(2),some:h(3),every:h(4),find:h(5),findIndex:h(6),filterReject:h(7)}},9269:function(t,e,r){var n=r(6544),i=r(3649),o=r(4061),s=i("species");t.exports=function(t){return o>=51||!n((function(){var e=[];return(e.constructor={})[s]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},4546:function(t,e,r){var n=r(7583),i=r(6782),o=r(1825),s=r(5999),a=n.Array,u=Math.max;t.exports=function(t,e,r){for(var n=o(t),c=i(e,n),h=i(void 0===r?n:r,n),l=a(u(h-c,0)),f=0;c0&&n[0]<4?1:+(n[0]+n[1])),!i&&s&&(!(n=s.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/))&&(i=+n[1]),t.exports=i},5690:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},1178:function(t,e,r){var n=r(6544),i=r(4677);t.exports=!n((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",i(1,7)),7!==t.stack)}))},7263:function(t,e,r){var n=r(7583),i=r(6683).f,o=r(57),s=r(1270),a=r(460),u=r(3478),c=r(4451);t.exports=function(t,e){var r,h,l,f,d,p=t.target,m=t.global,g=t.stat;if(r=m?n:g?n[p]||a(p,{}):(n[p]||{}).prototype)for(h in e){if(f=e[h],l=t.noTargetGet?(d=i(r,h))&&d.value:r[h],!c(m?h:p+(g?".":"#")+h,t.forced)&&void 0!==l){if(typeof f==typeof l)continue;u(f,l)}(t.sham||l&&l.sham)&&o(f,"sham",!0),s(r,h,f,t)}}},6544:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},1611:function(t,e,r){var n=r(8987),i=Function.prototype,o=i.apply,s=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?s.bind(o):function(){return s.apply(o,arguments)})},2938:function(t,e,r){var n=r(7386),i=r(8257),o=r(8987),s=n(n.bind);t.exports=function(t,e){return i(t),void 0===e?t:o?s(t,e):function(){return t.apply(e,arguments)}}},8987:function(t,e,r){var n=r(6544);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},8262:function(t,e,r){var n=r(8987),i=Function.prototype.call;t.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},4340:function(t,e,r){var n=r(8494),i=r(2870),o=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,a=i(o,"name"),u=a&&"something"===function(){}.name,c=a&&(!n||n&&s(o,"name").configurable);t.exports={EXISTS:a,PROPER:u,CONFIGURABLE:c}},7386:function(t,e,r){var n=r(8987),i=Function.prototype,o=i.bind,s=i.call,a=n&&o.bind(s,s);t.exports=n?function(t){return t&&a(t)}:function(t){return t&&function(){return s.apply(t,arguments)}}},5897:function(t,e,r){var n=r(7583),i=r(9212),o=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(n[t]):n[t]&&n[t][e]}},8272:function(t,e,r){var n=r(3058),i=r(911),o=r(339),s=r(3649)("iterator");t.exports=function(t){if(null!=t)return i(t,s)||i(t,"@@iterator")||o[n(t)]}},6307:function(t,e,r){var n=r(7583),i=r(8262),o=r(8257),s=r(2569),a=r(5637),u=r(8272),c=n.TypeError;t.exports=function(t,e){var r=arguments.length<2?u(t):e;if(o(r))return s(i(r,t));throw c(a(t)+" is not iterable")}},911:function(t,e,r){var n=r(8257);t.exports=function(t,e){var r=t[e];return null==r?void 0:n(r)}},7583:function(t,e,r){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||Function("return this")()},2870:function(t,e,r){var n=r(7386),i=r(1324),o=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},4639:function(t){t.exports={}},2716:function(t,e,r){var n=r(7583);t.exports=function(t,e){var r=n.console;r&&r.error&&(1==arguments.length?r.error(t):r.error(t,e))}},482:function(t,e,r){var n=r(5897);t.exports=n("document","documentElement")},275:function(t,e,r){var n=r(8494),i=r(6544),o=r(6668);t.exports=!n&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},5044:function(t,e,r){var n=r(7583),i=r(7386),o=r(6544),s=r(9624),a=n.Object,u=i("".split);t.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"==s(t)?u(t,""):a(t)}:a},9734:function(t,e,r){var n=r(7386),i=r(9212),o=r(1314),s=n(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return s(t)}),t.exports=o.inspectSource},4402:function(t,e,r){var n=r(794),i=r(57);t.exports=function(t,e){n(e)&&"cause"in e&&i(t,"cause",e.cause)}},2743:function(t,e,r){var n,i,o,s=r(9491),a=r(7583),u=r(7386),c=r(794),h=r(57),l=r(2870),f=r(1314),d=r(9137),p=r(4639),m="Object already initialized",g=a.TypeError,v=a.WeakMap;if(s||f.state){var b=f.state||(f.state=new v),y=u(b.get),w=u(b.has),M=u(b.set);n=function(t,e){if(w(b,t))throw new g(m);return e.facade=t,M(b,t,e),e},i=function(t){return y(b,t)||{}},o=function(t){return w(b,t)}}else{var _=d("state");p[_]=!0,n=function(t,e){if(l(t,_))throw new g(m);return e.facade=t,h(t,_,e),e},i=function(t){return l(t,_)?t[_]:{}},o=function(t){return l(t,_)}}t.exports={set:n,get:i,has:o,enforce:function(t){return o(t)?i(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!c(e)||(r=i(e)).type!==t)throw g("Incompatible receiver, "+t+" required");return r}}}},114:function(t,e,r){var n=r(3649),i=r(339),o=n("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||s[o]===t)}},4521:function(t,e,r){var n=r(9624);t.exports=Array.isArray||function(t){return"Array"==n(t)}},9212:function(t){t.exports=function(t){return"function"==typeof t}},2097:function(t,e,r){var n=r(7386),i=r(6544),o=r(9212),s=r(3058),a=r(5897),u=r(9734),c=function(){},h=[],l=a("Reflect","construct"),f=/^\s*(?:class|function)\b/,d=n(f.exec),p=!f.exec(c),m=function(t){if(!o(t))return!1;try{return l(c,h,t),!0}catch(t){return!1}},g=function(t){if(!o(t))return!1;switch(s(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!d(f,u(t))}catch(t){return!0}};g.sham=!0,t.exports=!l||i((function(){var t;return m(m.call)||!m(Object)||!m((function(){t=!0}))||t}))?g:m},4451:function(t,e,r){var n=r(6544),i=r(9212),o=/#|\.prototype\./,s=function(t,e){var r=u[a(t)];return r==h||r!=c&&(i(e)?n(e):!!e)},a=s.normalize=function(t){return String(t).replace(o,".").toLowerCase()},u=s.data={},c=s.NATIVE="N",h=s.POLYFILL="P";t.exports=s},794:function(t,e,r){var n=r(9212);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},6268:function(t){t.exports=!1},5871:function(t,e,r){var n=r(7583),i=r(5897),o=r(9212),s=r(2447),a=r(7786),u=n.Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return o(e)&&s(e.prototype,u(t))}},4026:function(t,e,r){var n=r(7583),i=r(2938),o=r(8262),s=r(2569),a=r(5637),u=r(114),c=r(1825),h=r(2447),l=r(6307),f=r(8272),d=r(7093),p=n.TypeError,m=function(t,e){this.stopped=t,this.result=e},g=m.prototype;t.exports=function(t,e,r){var n,v,b,y,w,M,_,E=r&&r.that,A=!(!r||!r.AS_ENTRIES),x=!(!r||!r.IS_ITERATOR),O=!(!r||!r.INTERRUPTED),S=i(e,E),k=function(t){return n&&d(n,"normal",t),new m(!0,t)},R=function(t){return A?(s(t),O?S(t[0],t[1],k):S(t[0],t[1])):O?S(t,k):S(t)};if(x)n=t;else{if(!(v=f(t)))throw p(a(t)+" is not iterable");if(u(v)){for(b=0,y=c(t);y>b;b++)if((w=R(t[b]))&&h(g,w))return w;return new m(!1)}n=l(t,v)}for(M=n.next;!(_=o(M,n)).done;){try{w=R(_.value)}catch(t){d(n,"throw",t)}if("object"==typeof w&&w&&h(g,w))return w}return new m(!1)}},7093:function(t,e,r){var n=r(8262),i=r(2569),o=r(911);t.exports=function(t,e,r){var s,a;i(t);try{if(!(s=o(t,"return"))){if("throw"===e)throw r;return r}s=n(s,t)}catch(t){a=!0,s=t}if("throw"===e)throw r;if(a)throw s;return i(s),r}},2365:function(t,e,r){"use strict";var n,i,o,s=r(6544),a=r(9212),u=r(3590),c=r(729),h=r(1270),l=r(3649),f=r(6268),d=l("iterator"),p=!1;[].keys&&("next"in(o=[].keys())?(i=c(c(o)))!==Object.prototype&&(n=i):p=!0),null==n||s((function(){var t={};return n[d].call(t)!==t}))?n={}:f&&(n=u(n)),a(n[d])||h(n,d,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:p}},339:function(t){t.exports={}},1825:function(t,e,r){var n=r(97);t.exports=function(t){return n(t.length)}},2095:function(t,e,r){var n,i,o,s,a,u,c,h,l=r(7583),f=r(2938),d=r(6683).f,p=r(8117).set,m=r(7020),g=r(3256),v=r(6846),b=r(5354),y=l.MutationObserver||l.WebKitMutationObserver,w=l.document,M=l.process,_=l.Promise,E=d(l,"queueMicrotask"),A=E&&E.value;A||(n=function(){var t,e;for(b&&(t=M.domain)&&t.exit();i;){e=i.fn,i=i.next;try{e()}catch(t){throw i?s():o=void 0,t}}o=void 0,t&&t.enter()},m||b||v||!y||!w?!g&&_&&_.resolve?((c=_.resolve(void 0)).constructor=_,h=f(c.then,c),s=function(){h(n)}):b?s=function(){M.nextTick(n)}:(p=f(p,l),s=function(){p(n)}):(a=!0,u=w.createTextNode(""),new y(n).observe(u,{characterData:!0}),s=function(){u.data=a=!a})),t.exports=A||function(t){var e={fn:t,next:void 0};o&&(o.next=e),i||(i=e,s()),o=e}},783:function(t,e,r){var n=r(7583);t.exports=n.Promise},8640:function(t,e,r){var n=r(4061),i=r(6544);t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},9491:function(t,e,r){var n=r(7583),i=r(9212),o=r(9734),s=n.WeakMap;t.exports=i(s)&&/native code/.test(o(s))},5084:function(t,e,r){"use strict";var n=r(8257),i=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n})),this.resolve=n(e),this.reject=n(r)};t.exports.f=function(t){return new i(t)}},2764:function(t,e,r){var n=r(8320);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:n(t)}},3590:function(t,e,r){var n,i=r(2569),o=r(8728),s=r(5690),a=r(4639),u=r(482),c=r(6668),h=r(9137),l=h("IE_PROTO"),f=function(){},d=function(t){return"