(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[40071],{46802:function(t,e,r){"use strict";r.d(e,{Kn:function(){return R},UJ:function(){return C}});let n=!1,i=!1,f={debug:1,default:2,info:2,warning:3,error:4,off:5},o=f.default,a=null,s=function(){try{let t=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test"!=="test".normalize(e))throw Error("bad normalize")}catch(r){t.push(e)}}),t.length)throw Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw Error("broken implementation")}catch(t){return t.message}return null}();(g=y||(y={})).DEBUG="DEBUG",g.INFO="INFO",g.WARNING="WARNING",g.ERROR="ERROR",g.OFF="OFF",(b=v||(v={})).UNKNOWN_ERROR="UNKNOWN_ERROR",b.NOT_IMPLEMENTED="NOT_IMPLEMENTED",b.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",b.NETWORK_ERROR="NETWORK_ERROR",b.SERVER_ERROR="SERVER_ERROR",b.TIMEOUT="TIMEOUT",b.BUFFER_OVERRUN="BUFFER_OVERRUN",b.NUMERIC_FAULT="NUMERIC_FAULT",b.MISSING_NEW="MISSING_NEW",b.INVALID_ARGUMENT="INVALID_ARGUMENT",b.MISSING_ARGUMENT="MISSING_ARGUMENT",b.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",b.CALL_EXCEPTION="CALL_EXCEPTION",b.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",b.NONCE_EXPIRED="NONCE_EXPIRED",b.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",b.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",b.TRANSACTION_REPLACED="TRANSACTION_REPLACED",b.ACTION_REJECTED="ACTION_REJECTED";let u="0123456789abcdef";class l{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){let r=t.toLowerCase();null==f[r]&&this.throwArgumentError("invalid log level name","logLevel",t),o>f[r]||console.log.apply(console,e)}debug(...t){this._log(l.levels.DEBUG,t)}info(...t){this._log(l.levels.INFO,t)}warn(...t){this._log(l.levels.WARNING,t)}makeError(t,e,r){if(i)return this.makeError("censored error",e,{});e||(e=l.errors.UNKNOWN_ERROR),r||(r={});let n=[];Object.keys(r).forEach(t=>{let e=r[t];try{if(e instanceof Uint8Array){let r="";for(let t=0;t<e.length;t++)r+=u[e[t]>>4]+u[15&e[t]];n.push(t+"=Uint8Array(0x"+r+")")}else n.push(t+"="+JSON.stringify(e))}catch(e){n.push(t+"="+JSON.stringify(r[t].toString()))}}),n.push(`code=${e}`),n.push(`version=${this.version}`);let f=t,o="";switch(e){case v.NUMERIC_FAULT:{o="NUMERIC_FAULT";let e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":o+="-"+e;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result"}break}case v.CALL_EXCEPTION:case v.INSUFFICIENT_FUNDS:case v.MISSING_NEW:case v.NONCE_EXPIRED:case v.REPLACEMENT_UNDERPRICED:case v.TRANSACTION_REPLACED:case v.UNPREDICTABLE_GAS_LIMIT:o=e}o&&(t+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),n.length&&(t+=" ("+n.join(", ")+")");let a=Error(t);return a.reason=f,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,l.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"),s&&this.throwError("platform missing String.prototype.normalize",l.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:s})}checkSafeUint53(t,e){"number"==typeof t&&(null==e&&(e="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(e,l.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(e,l.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,e,r){r=r?": "+r:"",t<e&&this.throwError("missing argument"+r,l.errors.MISSING_ARGUMENT,{count:t,expectedCount:e}),t>e&&this.throwError("too many arguments"+r,l.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:e})}checkNew(t,e){(t===Object||null==t)&&this.throwError("missing new",l.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",l.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):(t===Object||null==t)&&this.throwError("missing new",l.errors.MISSING_NEW,{name:e.name})}static globalLogger(){return a||(a=new l("logger/5.7.0")),a}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",l.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),n){if(!t)return;this.globalLogger().throwError("error censorship permanent",l.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}i=!!t,n=!!e}static setLogLevel(t){let e=f[t.toLowerCase()];if(null==e){l.globalLogger().warn("invalid log level - "+t);return}o=e}static from(t){return new l(t)}}l.errors=v,l.levels=y;let h=new l("bytes/5.7.0");function c(t){return t.slice||(t.slice=function(){let e=Array.prototype.slice.call(arguments);return c(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function d(t){return"number"==typeof t&&t==t&&t%1==0}function p(t,e){if(e||(e={}),"number"==typeof t){h.checkSafeUint53(t,"invalid arrayify value");let e=[];for(;t;)e.unshift(255&t),t=parseInt(String(t/256));return 0===e.length&&e.push(0),c(new Uint8Array(e))}if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),t.toHexString&&(t=t.toHexString()),m(t)){let r=t.substring(2);r.length%2&&("left"===e.hexPad?r="0"+r:"right"===e.hexPad?r+="0":h.throwArgumentError("hex data is odd-length","value",t));let n=[];for(let t=0;t<r.length;t+=2)n.push(parseInt(r.substring(t,t+2),16));return c(new Uint8Array(n))}return!function(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"==typeof t||!d(t.length)||t.length<0)return!1;for(let e=0;e<t.length;e++){let r=t[e];if(!d(r)||r<0||r>=256)return!1}return!0}(t)?h.throwArgumentError("invalid arrayify value","value",t):c(new Uint8Array(t))}function m(t,e){return"string"==typeof t&&!!t.match(/^0x[0-9A-Fa-f]*$/)&&(!e||t.length===2+2*e)}var g,b,y,v,w=r(83877),M=r.n(w)().BN;new l("bignumber/5.7.0");var E=r(91094),A=r.n(E);let S=new l("address/5.7.0");function _(t){m(t,20)||S.throwArgumentError("invalid address","address",t);let e=(t=t.toLowerCase()).substring(2).split(""),r=new Uint8Array(40);for(let t=0;t<40;t++)r[t]=e[t].charCodeAt(0);let n=p("0x"+A().keccak_256(p(r)));for(let t=0;t<40;t+=2)n[t>>1]>>4>=8&&(e[t]=e[t].toUpperCase()),(15&n[t>>1])>=8&&(e[t+1]=e[t+1].toUpperCase());return"0x"+e.join("")}let N={};for(let t=0;t<10;t++)N[String(t)]=String(t);for(let t=0;t<26;t++)N[String.fromCharCode(65+t)]=String(10+t);let T=Math.floor(Math.log10?Math.log10(9007199254740991):Math.log(9007199254740991)/Math.LN10);function R(t){let e=null;if("string"!=typeof t&&S.throwArgumentError("invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==t.substring(0,2)&&(t="0x"+t),e=_(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&S.throwArgumentError("bad address checksum","address",t);else if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(t.substring(2,4)!==function(t){let e=(t=(t=t.toUpperCase()).substring(4)+t.substring(0,2)+"00").split("").map(t=>N[t]).join("");for(;e.length>=T;){let t=e.substring(0,T);e=parseInt(t,10)%97+e.substring(t.length)}let r=String(98-parseInt(e,10)%97);for(;r.length<2;)r="0"+r;return r}(t)&&S.throwArgumentError("bad icap checksum","address",t),e=new M(t.substring(4),36).toString(16);e.length<40;)e="0"+e;e=_("0x"+e)}else S.throwArgumentError("invalid address","address",t);return e}function C(t){try{return R(t),!0}catch(t){}return!1}},83877:function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw 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 f(t,e,r){if(f.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"))}"object"==typeof t?t.exports=f:e.BN=f,f.BN=f,f.wordSize=26;try{h="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(88677).Buffer}catch(t){}function o(t,e){var r=t.charCodeAt(e);return r>=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 a(t,e,r){var n=o(t,r);return r-1>=e&&(n|=o(t,r-1)<<4),n}function s(t,e,r,i){for(var f=0,o=0,a=Math.min(t.length,r),s=e;s<a;s++){var u=t.charCodeAt(s)-48;f*=i,o=u>=49?u-49+10:u>=17?u-17+10:u,n(u>=0&&o<i,"Invalid character"),f+=o}return f}function u(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(f.isBN=function(t){return t instanceof f||null!==t&&"object"==typeof t&&t.constructor.wordSize===f.wordSize&&Array.isArray(t.words)},f.max=function(t,e){return t.cmp(e)>0?t:e},f.min=function(t,e){return 0>t.cmp(e)?t:e},f.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);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},f.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)},f.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=Array(this.length);for(var i,f,o=0;o<this.length;o++)this.words[o]=0;var a=0;if("be"===r)for(o=t.length-1,i=0;o>=0;o-=3)f=t[o]|t[o-1]<<8|t[o-2]<<16,this.words[i]|=f<<a&67108863,this.words[i+1]=f>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);else if("le"===r)for(o=0,i=0;o<t.length;o+=3)f=t[o]|t[o+1]<<8|t[o+2]<<16,this.words[i]|=f<<a&67108863,this.words[i+1]=f>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);return this._strip()},f.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=Array(this.length);for(var n,i=0;i<this.length;i++)this.words[i]=0;var f=0,o=0;if("be"===r)for(i=t.length-1;i>=e;i-=2)n=a(t,e,i)<<f,this.words[o]|=67108863&n,f>=18?(f-=18,o+=1,this.words[o]|=n>>>26):f+=8;else for(i=(t.length-e)%2==0?e+1:e;i<t.length;i+=2)n=a(t,e,i)<<f,this.words[o]|=67108863&n,f>=18?(f-=18,o+=1,this.words[o]|=n>>>26):f+=8;this._strip()},f.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 f=t.length-r,o=f%n,a=Math.min(f,f-o)+r,u=0,l=r;l<a;l+=n)u=s(t,l,l+n,e),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==o){var h=1;for(u=s(t,l,t.length,e),l=0;l<o;l++)h*=e;this.imuln(h),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this._strip()},f.prototype.copy=function(t){t.words=Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},f.prototype._move=function(t){u(t,this)},f.prototype.clone=function(){var t=new f(null);return this.copy(t),t},f.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},f.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},f.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{f.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(t){f.prototype.inspect=l}else f.prototype.inspect=l;function l(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var h,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"],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];function m(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],f=0|e.words[0],o=i*f,a=67108863&o,s=o/67108864|0;r.words[0]=a;for(var u=1;u<n;u++){for(var l=s>>>26,h=67108863&s,c=Math.min(u,e.length-1),d=Math.max(0,u-t.length+1);d<=c;d++){var p=u-d|0;l+=(o=(i=0|t.words[p])*(f=0|e.words[d])+h)/67108864|0,h=67108863&o}r.words[u]=0|h,s=0|l}return 0!==s?r.words[u]=0|s:r.length--,r._strip()}f.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var r,i=0,f=0,o=0;o<this.length;o++){var a=this.words[o],s=((a<<i|f)&16777215).toString(16);f=a>>>24-i&16777215,(i+=2)>=26&&(i-=26,o--),r=0!==f||o!==this.length-1?c[6-s.length]+s+r:s+r}for(0!==f&&(r=f.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var u=d[t],l=p[t];r="";var h=this.clone();for(h.negative=0;!h.isZero();){var m=h.modrn(l).toString(t);r=(h=h.idivn(l)).isZero()?m+r:c[u-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},f.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},f.prototype.toJSON=function(){return this.toString(16,2)},h&&(f.prototype.toBuffer=function(t,e){return this.toArrayLike(h,t,e)}),f.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},f.prototype.toArrayLike=function(t,e,r){this._strip();var i=this.byteLength(),f=r||Math.max(1,i);n(i<=f,"byte array longer than desired length"),n(f>0,"Requested array length <= 0");var o=t.allocUnsafe?t.allocUnsafe(f):new t(f);return this["_toArrayLike"+("le"===e?"LE":"BE")](o,i),o},f.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,i=0,f=0;i<this.length;i++){var o=this.words[i]<<f|n;t[r++]=255&o,r<t.length&&(t[r++]=o>>8&255),r<t.length&&(t[r++]=o>>16&255),6===f?(r<t.length&&(t[r++]=o>>24&255),n=0,f=0):(n=o>>>24,f+=2)}if(r<t.length)for(t[r++]=n;r<t.length;)t[r++]=0},f.prototype._toArrayLikeBE=function(t,e){for(var r=t.length-1,n=0,i=0,f=0;i<this.length;i++){var o=this.words[i]<<f|n;t[r--]=255&o,r>=0&&(t[r--]=o>>8&255),r>=0&&(t[r--]=o>>16&255),6===f?(r>=0&&(t[r--]=o>>24&255),n=0,f=0):(n=o>>>24,f+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?f.prototype._countBits=function(t){return 32-Math.clz32(t)}:f.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},f.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return(8191&e)==0&&(r+=13,e>>>=13),(127&e)==0&&(r+=7,e>>>=7),(15&e)==0&&(r+=4,e>>>=4),(3&e)==0&&(r+=2,e>>>=2),(1&e)==0&&r++,r},f.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return(this.length-1)*26+e},f.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},f.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},f.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},f.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},f.prototype.isNeg=function(){return 0!==this.negative},f.prototype.neg=function(){return this.clone().ineg()},f.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},f.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},f.prototype.ior=function(t){return n((this.negative|t.negative)==0),this.iuor(t)},f.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},f.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},f.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this._strip()},f.prototype.iand=function(t){return n((this.negative|t.negative)==0),this.iuand(t)},f.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},f.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},f.prototype.iuxor=function(t){this.length>t.length?(e=this,r=t):(e=t,r=this);for(var e,r,n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this._strip()},f.prototype.ixor=function(t){return n((this.negative|t.negative)==0),this.iuxor(t)},f.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},f.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},f.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;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},f.prototype.notn=function(t){return this.clone().inotn(t)},f.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),e?this.words[r]=this.words[r]|1<<i:this.words[r]=this.words[r]&~(1<<i),this._strip()},f.prototype.iadd=function(t){if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var e,r,n,i=0,f=0;f<n.length;f++)e=(0|r.words[f])+(0|n.words[f])+i,this.words[f]=67108863&e,i=e>>>26;for(;0!==i&&f<r.length;f++)e=(0|r.words[f])+i,this.words[f]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;f<r.length;f++)this.words[f]=r.words[f];return this},f.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},f.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e,r,n=this.iadd(t);return t.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(e=this,r=t):(e=t,r=this);for(var f=0,o=0;o<r.length;o++)f=(n=(0|e.words[o])-(0|r.words[o])+f)>>26,this.words[o]=67108863&n;for(;0!==f&&o<e.length;o++)f=(n=(0|e.words[o])+f)>>26,this.words[o]=67108863&n;if(0===f&&o<e.length&&e!==this)for(;o<e.length;o++)this.words[o]=e.words[o];return this.length=Math.max(this.length,o),e!==this&&(this.negative=1),this._strip()},f.prototype.sub=function(t){return this.clone().isub(t)};var g=function(t,e,r){var n,i,f,o=t.words,a=e.words,s=r.words,u=0,l=0|o[0],h=8191&l,c=l>>>13,d=0|o[1],p=8191&d,m=d>>>13,g=0|o[2],b=8191&g,y=g>>>13,v=0|o[3],w=8191&v,M=v>>>13,E=0|o[4],A=8191&E,S=E>>>13,_=0|o[5],N=8191&_,T=_>>>13,R=0|o[6],C=8191&R,I=R>>>13,P=0|o[7],O=8191&P,x=P>>>13,k=0|o[8],F=8191&k,B=k>>>13,L=0|o[9],D=8191&L,U=L>>>13,G=0|a[0],z=8191&G,J=G>>>13,j=0|a[1],H=8191&j,V=j>>>13,X=0|a[2],q=8191&X,Z=X>>>13,K=0|a[3],W=8191&K,Y=K>>>13,Q=0|a[4],$=8191&Q,tt=Q>>>13,te=0|a[5],tr=8191&te,tn=te>>>13,ti=0|a[6],tf=8191&ti,to=ti>>>13,ta=0|a[7],ts=8191&ta,tu=ta>>>13,tl=0|a[8],th=8191&tl,tc=tl>>>13,td=0|a[9],tp=8191&td,tm=td>>>13;r.negative=t.negative^e.negative,r.length=19;var tg=(u+(n=Math.imul(h,z))|0)+((8191&(i=(i=Math.imul(h,J))+Math.imul(c,z)|0))<<13)|0;u=((f=Math.imul(c,J))+(i>>>13)|0)+(tg>>>26)|0,tg&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,J))+Math.imul(m,z)|0,f=Math.imul(m,J);var tb=(u+(n=n+Math.imul(h,H)|0)|0)+((8191&(i=(i=i+Math.imul(h,V)|0)+Math.imul(c,H)|0))<<13)|0;u=((f=f+Math.imul(c,V)|0)+(i>>>13)|0)+(tb>>>26)|0,tb&=67108863,n=Math.imul(b,z),i=(i=Math.imul(b,J))+Math.imul(y,z)|0,f=Math.imul(y,J),n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,H)|0,f=f+Math.imul(m,V)|0;var ty=(u+(n=n+Math.imul(h,q)|0)|0)+((8191&(i=(i=i+Math.imul(h,Z)|0)+Math.imul(c,q)|0))<<13)|0;u=((f=f+Math.imul(c,Z)|0)+(i>>>13)|0)+(ty>>>26)|0,ty&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,J))+Math.imul(M,z)|0,f=Math.imul(M,J),n=n+Math.imul(b,H)|0,i=(i=i+Math.imul(b,V)|0)+Math.imul(y,H)|0,f=f+Math.imul(y,V)|0,n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,q)|0,f=f+Math.imul(m,Z)|0;var tv=(u+(n=n+Math.imul(h,W)|0)|0)+((8191&(i=(i=i+Math.imul(h,Y)|0)+Math.imul(c,W)|0))<<13)|0;u=((f=f+Math.imul(c,Y)|0)+(i>>>13)|0)+(tv>>>26)|0,tv&=67108863,n=Math.imul(A,z),i=(i=Math.imul(A,J))+Math.imul(S,z)|0,f=Math.imul(S,J),n=n+Math.imul(w,H)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(M,H)|0,f=f+Math.imul(M,V)|0,n=n+Math.imul(b,q)|0,i=(i=i+Math.imul(b,Z)|0)+Math.imul(y,q)|0,f=f+Math.imul(y,Z)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,W)|0,f=f+Math.imul(m,Y)|0;var tw=(u+(n=n+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(c,$)|0))<<13)|0;u=((f=f+Math.imul(c,tt)|0)+(i>>>13)|0)+(tw>>>26)|0,tw&=67108863,n=Math.imul(N,z),i=(i=Math.imul(N,J))+Math.imul(T,z)|0,f=Math.imul(T,J),n=n+Math.imul(A,H)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(S,H)|0,f=f+Math.imul(S,V)|0,n=n+Math.imul(w,q)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(M,q)|0,f=f+Math.imul(M,Z)|0,n=n+Math.imul(b,W)|0,i=(i=i+Math.imul(b,Y)|0)+Math.imul(y,W)|0,f=f+Math.imul(y,Y)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,$)|0,f=f+Math.imul(m,tt)|0;var tM=(u+(n=n+Math.imul(h,tr)|0)|0)+((8191&(i=(i=i+Math.imul(h,tn)|0)+Math.imul(c,tr)|0))<<13)|0;u=((f=f+Math.imul(c,tn)|0)+(i>>>13)|0)+(tM>>>26)|0,tM&=67108863,n=Math.imul(C,z),i=(i=Math.imul(C,J))+Math.imul(I,z)|0,f=Math.imul(I,J),n=n+Math.imul(N,H)|0,i=(i=i+Math.imul(N,V)|0)+Math.imul(T,H)|0,f=f+Math.imul(T,V)|0,n=n+Math.imul(A,q)|0,i=(i=i+Math.imul(A,Z)|0)+Math.imul(S,q)|0,f=f+Math.imul(S,Z)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(M,W)|0,f=f+Math.imul(M,Y)|0,n=n+Math.imul(b,$)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(y,$)|0,f=f+Math.imul(y,tt)|0,n=n+Math.imul(p,tr)|0,i=(i=i+Math.imul(p,tn)|0)+Math.imul(m,tr)|0,f=f+Math.imul(m,tn)|0;var tE=(u+(n=n+Math.imul(h,tf)|0)|0)+((8191&(i=(i=i+Math.imul(h,to)|0)+Math.imul(c,tf)|0))<<13)|0;u=((f=f+Math.imul(c,to)|0)+(i>>>13)|0)+(tE>>>26)|0,tE&=67108863,n=Math.imul(O,z),i=(i=Math.imul(O,J))+Math.imul(x,z)|0,f=Math.imul(x,J),n=n+Math.imul(C,H)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(I,H)|0,f=f+Math.imul(I,V)|0,n=n+Math.imul(N,q)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(T,q)|0,f=f+Math.imul(T,Z)|0,n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(S,W)|0,f=f+Math.imul(S,Y)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(M,$)|0,f=f+Math.imul(M,tt)|0,n=n+Math.imul(b,tr)|0,i=(i=i+Math.imul(b,tn)|0)+Math.imul(y,tr)|0,f=f+Math.imul(y,tn)|0,n=n+Math.imul(p,tf)|0,i=(i=i+Math.imul(p,to)|0)+Math.imul(m,tf)|0,f=f+Math.imul(m,to)|0;var tA=(u+(n=n+Math.imul(h,ts)|0)|0)+((8191&(i=(i=i+Math.imul(h,tu)|0)+Math.imul(c,ts)|0))<<13)|0;u=((f=f+Math.imul(c,tu)|0)+(i>>>13)|0)+(tA>>>26)|0,tA&=67108863,n=Math.imul(F,z),i=(i=Math.imul(F,J))+Math.imul(B,z)|0,f=Math.imul(B,J),n=n+Math.imul(O,H)|0,i=(i=i+Math.imul(O,V)|0)+Math.imul(x,H)|0,f=f+Math.imul(x,V)|0,n=n+Math.imul(C,q)|0,i=(i=i+Math.imul(C,Z)|0)+Math.imul(I,q)|0,f=f+Math.imul(I,Z)|0,n=n+Math.imul(N,W)|0,i=(i=i+Math.imul(N,Y)|0)+Math.imul(T,W)|0,f=f+Math.imul(T,Y)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(S,$)|0,f=f+Math.imul(S,tt)|0,n=n+Math.imul(w,tr)|0,i=(i=i+Math.imul(w,tn)|0)+Math.imul(M,tr)|0,f=f+Math.imul(M,tn)|0,n=n+Math.imul(b,tf)|0,i=(i=i+Math.imul(b,to)|0)+Math.imul(y,tf)|0,f=f+Math.imul(y,to)|0,n=n+Math.imul(p,ts)|0,i=(i=i+Math.imul(p,tu)|0)+Math.imul(m,ts)|0,f=f+Math.imul(m,tu)|0;var tS=(u+(n=n+Math.imul(h,th)|0)|0)+((8191&(i=(i=i+Math.imul(h,tc)|0)+Math.imul(c,th)|0))<<13)|0;u=((f=f+Math.imul(c,tc)|0)+(i>>>13)|0)+(tS>>>26)|0,tS&=67108863,n=Math.imul(D,z),i=(i=Math.imul(D,J))+Math.imul(U,z)|0,f=Math.imul(U,J),n=n+Math.imul(F,H)|0,i=(i=i+Math.imul(F,V)|0)+Math.imul(B,H)|0,f=f+Math.imul(B,V)|0,n=n+Math.imul(O,q)|0,i=(i=i+Math.imul(O,Z)|0)+Math.imul(x,q)|0,f=f+Math.imul(x,Z)|0,n=n+Math.imul(C,W)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(I,W)|0,f=f+Math.imul(I,Y)|0,n=n+Math.imul(N,$)|0,i=(i=i+Math.imul(N,tt)|0)+Math.imul(T,$)|0,f=f+Math.imul(T,tt)|0,n=n+Math.imul(A,tr)|0,i=(i=i+Math.imul(A,tn)|0)+Math.imul(S,tr)|0,f=f+Math.imul(S,tn)|0,n=n+Math.imul(w,tf)|0,i=(i=i+Math.imul(w,to)|0)+Math.imul(M,tf)|0,f=f+Math.imul(M,to)|0,n=n+Math.imul(b,ts)|0,i=(i=i+Math.imul(b,tu)|0)+Math.imul(y,ts)|0,f=f+Math.imul(y,tu)|0,n=n+Math.imul(p,th)|0,i=(i=i+Math.imul(p,tc)|0)+Math.imul(m,th)|0,f=f+Math.imul(m,tc)|0;var t_=(u+(n=n+Math.imul(h,tp)|0)|0)+((8191&(i=(i=i+Math.imul(h,tm)|0)+Math.imul(c,tp)|0))<<13)|0;u=((f=f+Math.imul(c,tm)|0)+(i>>>13)|0)+(t_>>>26)|0,t_&=67108863,n=Math.imul(D,H),i=(i=Math.imul(D,V))+Math.imul(U,H)|0,f=Math.imul(U,V),n=n+Math.imul(F,q)|0,i=(i=i+Math.imul(F,Z)|0)+Math.imul(B,q)|0,f=f+Math.imul(B,Z)|0,n=n+Math.imul(O,W)|0,i=(i=i+Math.imul(O,Y)|0)+Math.imul(x,W)|0,f=f+Math.imul(x,Y)|0,n=n+Math.imul(C,$)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(I,$)|0,f=f+Math.imul(I,tt)|0,n=n+Math.imul(N,tr)|0,i=(i=i+Math.imul(N,tn)|0)+Math.imul(T,tr)|0,f=f+Math.imul(T,tn)|0,n=n+Math.imul(A,tf)|0,i=(i=i+Math.imul(A,to)|0)+Math.imul(S,tf)|0,f=f+Math.imul(S,to)|0,n=n+Math.imul(w,ts)|0,i=(i=i+Math.imul(w,tu)|0)+Math.imul(M,ts)|0,f=f+Math.imul(M,tu)|0,n=n+Math.imul(b,th)|0,i=(i=i+Math.imul(b,tc)|0)+Math.imul(y,th)|0,f=f+Math.imul(y,tc)|0;var tN=(u+(n=n+Math.imul(p,tp)|0)|0)+((8191&(i=(i=i+Math.imul(p,tm)|0)+Math.imul(m,tp)|0))<<13)|0;u=((f=f+Math.imul(m,tm)|0)+(i>>>13)|0)+(tN>>>26)|0,tN&=67108863,n=Math.imul(D,q),i=(i=Math.imul(D,Z))+Math.imul(U,q)|0,f=Math.imul(U,Z),n=n+Math.imul(F,W)|0,i=(i=i+Math.imul(F,Y)|0)+Math.imul(B,W)|0,f=f+Math.imul(B,Y)|0,n=n+Math.imul(O,$)|0,i=(i=i+Math.imul(O,tt)|0)+Math.imul(x,$)|0,f=f+Math.imul(x,tt)|0,n=n+Math.imul(C,tr)|0,i=(i=i+Math.imul(C,tn)|0)+Math.imul(I,tr)|0,f=f+Math.imul(I,tn)|0,n=n+Math.imul(N,tf)|0,i=(i=i+Math.imul(N,to)|0)+Math.imul(T,tf)|0,f=f+Math.imul(T,to)|0,n=n+Math.imul(A,ts)|0,i=(i=i+Math.imul(A,tu)|0)+Math.imul(S,ts)|0,f=f+Math.imul(S,tu)|0,n=n+Math.imul(w,th)|0,i=(i=i+Math.imul(w,tc)|0)+Math.imul(M,th)|0,f=f+Math.imul(M,tc)|0;var tT=(u+(n=n+Math.imul(b,tp)|0)|0)+((8191&(i=(i=i+Math.imul(b,tm)|0)+Math.imul(y,tp)|0))<<13)|0;u=((f=f+Math.imul(y,tm)|0)+(i>>>13)|0)+(tT>>>26)|0,tT&=67108863,n=Math.imul(D,W),i=(i=Math.imul(D,Y))+Math.imul(U,W)|0,f=Math.imul(U,Y),n=n+Math.imul(F,$)|0,i=(i=i+Math.imul(F,tt)|0)+Math.imul(B,$)|0,f=f+Math.imul(B,tt)|0,n=n+Math.imul(O,tr)|0,i=(i=i+Math.imul(O,tn)|0)+Math.imul(x,tr)|0,f=f+Math.imul(x,tn)|0,n=n+Math.imul(C,tf)|0,i=(i=i+Math.imul(C,to)|0)+Math.imul(I,tf)|0,f=f+Math.imul(I,to)|0,n=n+Math.imul(N,ts)|0,i=(i=i+Math.imul(N,tu)|0)+Math.imul(T,ts)|0,f=f+Math.imul(T,tu)|0,n=n+Math.imul(A,th)|0,i=(i=i+Math.imul(A,tc)|0)+Math.imul(S,th)|0,f=f+Math.imul(S,tc)|0;var tR=(u+(n=n+Math.imul(w,tp)|0)|0)+((8191&(i=(i=i+Math.imul(w,tm)|0)+Math.imul(M,tp)|0))<<13)|0;u=((f=f+Math.imul(M,tm)|0)+(i>>>13)|0)+(tR>>>26)|0,tR&=67108863,n=Math.imul(D,$),i=(i=Math.imul(D,tt))+Math.imul(U,$)|0,f=Math.imul(U,tt),n=n+Math.imul(F,tr)|0,i=(i=i+Math.imul(F,tn)|0)+Math.imul(B,tr)|0,f=f+Math.imul(B,tn)|0,n=n+Math.imul(O,tf)|0,i=(i=i+Math.imul(O,to)|0)+Math.imul(x,tf)|0,f=f+Math.imul(x,to)|0,n=n+Math.imul(C,ts)|0,i=(i=i+Math.imul(C,tu)|0)+Math.imul(I,ts)|0,f=f+Math.imul(I,tu)|0,n=n+Math.imul(N,th)|0,i=(i=i+Math.imul(N,tc)|0)+Math.imul(T,th)|0,f=f+Math.imul(T,tc)|0;var tC=(u+(n=n+Math.imul(A,tp)|0)|0)+((8191&(i=(i=i+Math.imul(A,tm)|0)+Math.imul(S,tp)|0))<<13)|0;u=((f=f+Math.imul(S,tm)|0)+(i>>>13)|0)+(tC>>>26)|0,tC&=67108863,n=Math.imul(D,tr),i=(i=Math.imul(D,tn))+Math.imul(U,tr)|0,f=Math.imul(U,tn),n=n+Math.imul(F,tf)|0,i=(i=i+Math.imul(F,to)|0)+Math.imul(B,tf)|0,f=f+Math.imul(B,to)|0,n=n+Math.imul(O,ts)|0,i=(i=i+Math.imul(O,tu)|0)+Math.imul(x,ts)|0,f=f+Math.imul(x,tu)|0,n=n+Math.imul(C,th)|0,i=(i=i+Math.imul(C,tc)|0)+Math.imul(I,th)|0,f=f+Math.imul(I,tc)|0;var tI=(u+(n=n+Math.imul(N,tp)|0)|0)+((8191&(i=(i=i+Math.imul(N,tm)|0)+Math.imul(T,tp)|0))<<13)|0;u=((f=f+Math.imul(T,tm)|0)+(i>>>13)|0)+(tI>>>26)|0,tI&=67108863,n=Math.imul(D,tf),i=(i=Math.imul(D,to))+Math.imul(U,tf)|0,f=Math.imul(U,to),n=n+Math.imul(F,ts)|0,i=(i=i+Math.imul(F,tu)|0)+Math.imul(B,ts)|0,f=f+Math.imul(B,tu)|0,n=n+Math.imul(O,th)|0,i=(i=i+Math.imul(O,tc)|0)+Math.imul(x,th)|0,f=f+Math.imul(x,tc)|0;var tP=(u+(n=n+Math.imul(C,tp)|0)|0)+((8191&(i=(i=i+Math.imul(C,tm)|0)+Math.imul(I,tp)|0))<<13)|0;u=((f=f+Math.imul(I,tm)|0)+(i>>>13)|0)+(tP>>>26)|0,tP&=67108863,n=Math.imul(D,ts),i=(i=Math.imul(D,tu))+Math.imul(U,ts)|0,f=Math.imul(U,tu),n=n+Math.imul(F,th)|0,i=(i=i+Math.imul(F,tc)|0)+Math.imul(B,th)|0,f=f+Math.imul(B,tc)|0;var tO=(u+(n=n+Math.imul(O,tp)|0)|0)+((8191&(i=(i=i+Math.imul(O,tm)|0)+Math.imul(x,tp)|0))<<13)|0;u=((f=f+Math.imul(x,tm)|0)+(i>>>13)|0)+(tO>>>26)|0,tO&=67108863,n=Math.imul(D,th),i=(i=Math.imul(D,tc))+Math.imul(U,th)|0,f=Math.imul(U,tc);var tx=(u+(n=n+Math.imul(F,tp)|0)|0)+((8191&(i=(i=i+Math.imul(F,tm)|0)+Math.imul(B,tp)|0))<<13)|0;u=((f=f+Math.imul(B,tm)|0)+(i>>>13)|0)+(tx>>>26)|0,tx&=67108863;var tk=(u+(n=Math.imul(D,tp))|0)+((8191&(i=(i=Math.imul(D,tm))+Math.imul(U,tp)|0))<<13)|0;return u=((f=Math.imul(U,tm))+(i>>>13)|0)+(tk>>>26)|0,tk&=67108863,s[0]=tg,s[1]=tb,s[2]=ty,s[3]=tv,s[4]=tw,s[5]=tM,s[6]=tE,s[7]=tA,s[8]=tS,s[9]=t_,s[10]=tN,s[11]=tT,s[12]=tR,s[13]=tC,s[14]=tI,s[15]=tP,s[16]=tO,s[17]=tx,s[18]=tk,0!==u&&(s[19]=u,r.length++),r};function b(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,f=0;f<r.length-1;f++){var o=i;i=0;for(var a=67108863&n,s=Math.min(f,e.length-1),u=Math.max(0,f-t.length+1);u<=s;u++){var l=f-u,h=(0|t.words[l])*(0|e.words[u]),c=67108863&h;o=o+(h/67108864|0)|0,a=67108863&(c=c+a|0),i+=(o=o+(c>>>26)|0)>>>26,o&=67108863}r.words[f]=a,n=o,o=i}return 0!==n?r.words[f]=n:r.length--,r._strip()}function y(t,e){this.x=t,this.y=e}Math.imul||(g=m),f.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return 10===this.length&&10===t.length?g(this,t,e):n<63?m(this,t,e):b(this,t,e)},y.prototype.makeRBT=function(t){for(var e=Array(t),r=f.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},y.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},y.prototype.permute=function(t,e,r,n,i,f){for(var o=0;o<f;o++)n[o]=e[t[o]],i[o]=r[t[o]]},y.prototype.transform=function(t,e,r,n,i,f){this.permute(f,t,e,r,n,i);for(var o=1;o<i;o<<=1)for(var a=o<<1,s=Math.cos(2*Math.PI/a),u=Math.sin(2*Math.PI/a),l=0;l<i;l+=a)for(var h=s,c=u,d=0;d<o;d++){var p=r[l+d],m=n[l+d],g=r[l+d+o],b=n[l+d+o],y=h*g-c*b;b=h*b+c*g,g=y,r[l+d]=p+g,n[l+d]=m+b,r[l+d+o]=p-g,n[l+d+o]=m-b,d!==a&&(y=s*h-u*c,c=s*c+u*h,h=y)}},y.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},y.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},y.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},y.prototype.convert13b=function(t,e,r,i){for(var f=0,o=0;o<e;o++)f+=0|t[o],r[2*o]=8191&f,f>>>=13,r[2*o+1]=8191&f,f>>>=13;for(o=2*e;o<i;++o)r[o]=0;n(0===f),n((-8192&f)==0)},y.prototype.stub=function(t){for(var e=Array(t),r=0;r<t;r++)e[r]=0;return e},y.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),f=this.stub(n),o=Array(n),a=Array(n),s=Array(n),u=Array(n),l=Array(n),h=Array(n),c=r.words;c.length=n,this.convert13b(t.words,t.length,o,n),this.convert13b(e.words,e.length,u,n),this.transform(o,f,a,s,n,i),this.transform(u,f,l,h,n,i);for(var d=0;d<n;d++){var p=a[d]*l[d]-s[d]*h[d];s[d]=a[d]*h[d]+s[d]*l[d],a[d]=p}return this.conjugate(a,s,n),this.transform(a,s,c,f,n,i),this.conjugate(c,f,n),this.normalize13b(c,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r._strip()},f.prototype.mul=function(t){var e=new f(null);return e.words=Array(this.length+t.length),this.mulTo(t,e)},f.prototype.mulf=function(t){var e=new f(null);return e.words=Array(this.length+t.length),b(this,t,e)},f.prototype.imul=function(t){return this.clone().mulTo(t,this)},f.prototype.imuln=function(t){var e=t<0;e&&(t=-t),n("number"==typeof t),n(t<67108864);for(var r=0,i=0;i<this.length;i++){var f=(0|this.words[i])*t,o=(67108863&f)+(67108863&r);r>>=26,r+=(f/67108864|0)+(o>>>26),this.words[i]=67108863&o}return 0!==r&&(this.words[i]=r,this.length++),e?this.ineg():this},f.prototype.muln=function(t){return this.clone().imuln(t)},f.prototype.sqr=function(){return this.mul(this)},f.prototype.isqr=function(){return this.imul(this.clone())},f.prototype.pow=function(t){var e=function(t){for(var e=Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=t.words[n]>>>i&1}return e}(t);if(0===e.length)return new f(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},f.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,f=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(e=0;e<this.length;e++){var a=this.words[e]&f,s=(0|this.words[e])-a<<r;this.words[e]=s|o,o=a>>>26-r}o&&(this.words[e]=o,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this._strip()},f.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},f.prototype.iushrn=function(t,e,r){n("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var i,f=t%26,o=Math.min((t-f)/26,this.length),a=67108863^67108863>>>f<<f;if(i-=o,i=Math.max(0,i),r){for(var s=0;s<o;s++)r.words[s]=this.words[s];r.length=o}if(0===o);else if(this.length>o)for(this.length-=o,s=0;s<this.length;s++)this.words[s]=this.words[s+o];else this.words[0]=0,this.length=1;var u=0;for(s=this.length-1;s>=0&&(0!==u||s>=i);s--){var l=0|this.words[s];this.words[s]=u<<26-f|l>>>f,u=l&a}return r&&0!==u&&(r.words[r.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},f.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},f.prototype.shln=function(t){return this.clone().ishln(t)},f.prototype.ushln=function(t){return this.clone().iushln(t)},f.prototype.shrn=function(t){return this.clone().ishrn(t)},f.prototype.ushrn=function(t){return this.clone().iushrn(t)},f.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;return!(this.length<=r)&&!!(this.words[r]&1<<e)},f.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;return(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)?this:(0!==e&&r++,this.length=Math.min(r,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<<e),this._strip())},f.prototype.maskn=function(t){return this.clone().imaskn(t)},f.prototype.iaddn=function(t){return(n("number"==typeof t),n(t<67108864),t<0)?this.isubn(-t):0!==this.negative?(1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(t),this.negative=1),this):this._iaddn(t)},f.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[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},f.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<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},f.prototype.addn=function(t){return this.clone().iaddn(t)},f.prototype.subn=function(t){return this.clone().isubn(t)},f.prototype.iabs=function(){return this.negative=0,this},f.prototype.abs=function(){return this.clone().iabs()},f.prototype._ishlnsubmul=function(t,e,r){var i,f,o=t.length+r;this._expand(o);var a=0;for(i=0;i<t.length;i++){f=(0|this.words[i+r])+a;var s=(0|t.words[i])*e;f-=67108863&s,a=(f>>26)-(s/67108864|0),this.words[i+r]=67108863&f}for(;i<this.length-r;i++)a=(f=(0|this.words[i+r])+a)>>26,this.words[i+r]=67108863&f;if(0===a)return this._strip();for(n(-1===a),a=0,i=0;i<this.length;i++)a=(f=-(0|this.words[i])+a)>>26,this.words[i]=67108863&f;return this.negative=1,this._strip()},f.prototype._wordDiv=function(t,e){var r,n=this.length-t.length,i=this.clone(),o=t,a=0|o.words[o.length-1];0!=(n=26-this._countBits(a))&&(o=o.ushln(n),i.iushln(n),a=0|o.words[o.length-1]);var s=i.length-o.length;if("mod"!==e){(r=new f(null)).length=s+1,r.words=Array(r.length);for(var u=0;u<r.length;u++)r.words[u]=0}var l=i.clone()._ishlnsubmul(o,1,s);0===l.negative&&(i=l,r&&(r.words[s]=1));for(var h=s-1;h>=0;h--){var c=(0|i.words[o.length+h])*67108864+(0|i.words[o.length+h-1]);for(c=Math.min(c/a|0,67108863),i._ishlnsubmul(o,c,h);0!==i.negative;)c--,i.negative=0,i._ishlnsubmul(o,1,h),i.isZero()||(i.negative^=1);r&&(r.words[h]=c)}return r&&r._strip(),i._strip(),"div"!==e&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},f.prototype.divmod=function(t,e,r){var i,o,a;return(n(!t.isZero()),this.isZero())?{div:new f(0),mod:new f(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:i,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):(this.negative&t.negative)!=0?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||0>this.cmp(t)?{div:new f(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new f(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new f(this.modrn(t.words[0]))}:this._wordDiv(t,e)},f.prototype.div=function(t){return this.divmod(t,"div",!1).div},f.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},f.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},f.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),f=r.cmp(n);return f<0||1===i&&0===f?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},f.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=67108864%t,i=0,f=this.length-1;f>=0;f--)i=(r*i+(0|this.words[f]))%t;return e?-i:i},f.prototype.modn=function(t){return this.modrn(t)},f.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 f=(0|this.words[i])+67108864*r;this.words[i]=f/t|0,r=f%t}return this._strip(),e?this.ineg():this},f.prototype.divn=function(t){return this.clone().idivn(t)},f.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();for(var i=new f(1),o=new f(0),a=new f(0),s=new f(1),u=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++u;for(var l=r.clone(),h=e.clone();!e.isZero();){for(var c=0,d=1;(e.words[0]&d)==0&&c<26;++c,d<<=1);if(c>0)for(e.iushrn(c);c-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(l),o.isub(h)),i.iushrn(1),o.iushrn(1);for(var p=0,m=1;(r.words[0]&m)==0&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||s.isOdd())&&(a.iadd(l),s.isub(h)),a.iushrn(1),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(a),o.isub(s)):(r.isub(e),a.isub(i),s.isub(o))}return{a:a,b:s,gcd:r.iushln(u)}},f.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e,r=this,i=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var o=new f(1),a=new f(0),s=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var u=0,l=1;(r.words[0]&l)==0&&u<26;++u,l<<=1);if(u>0)for(r.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);for(var h=0,c=1;(i.words[0]&c)==0&&h<26;++h,c<<=1);if(h>0)for(i.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);r.cmp(i)>=0?(r.isub(i),o.isub(a)):(i.isub(r),a.isub(o))}return 0>(e=0===r.cmpn(1)?o:a).cmpn(0)&&e.iadd(t),e},f.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);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var f=e;e=r,r=f}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},f.prototype.invm=function(t){return this.egcd(t).a.umod(t)},f.prototype.isEven=function(){return(1&this.words[0])==0},f.prototype.isOdd=function(){return(1&this.words[0])==1},f.prototype.andln=function(t){return this.words[0]&t},f.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var f=i,o=r;0!==f&&o<this.length;o++){var a=0|this.words[o];a+=f,f=a>>>26,a&=67108863,this.words[o]=a}return 0!==f&&(this.words[o]=f,this.length++),this},f.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},f.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:i<t?-1:1}return 0!==this.negative?0|-e:e},f.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return -1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},f.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return -1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},f.prototype.gtn=function(t){return 1===this.cmpn(t)},f.prototype.gt=function(t){return 1===this.cmp(t)},f.prototype.gten=function(t){return this.cmpn(t)>=0},f.prototype.gte=function(t){return this.cmp(t)>=0},f.prototype.ltn=function(t){return -1===this.cmpn(t)},f.prototype.lt=function(t){return -1===this.cmp(t)},f.prototype.lten=function(t){return 0>=this.cmpn(t)},f.prototype.lte=function(t){return 0>=this.cmp(t)},f.prototype.eqn=function(t){return 0===this.cmpn(t)},f.prototype.eq=function(t){return 0===this.cmp(t)},f.red=function(t){return new _(t)},f.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)},f.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},f.prototype._forceRed=function(t){return this.red=t,this},f.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},f.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},f.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},f.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},f.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},f.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},f.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},f.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},f.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},f.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},f.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},f.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},f.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},f.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new f(e,16),this.n=this.p.bitLength(),this.k=new f(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 E(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(t){if("string"==typeof t){var e=f._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 N(t){_.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new f(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 f(null);return t.words=Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,r=t;do this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?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=Math.min(t.length,9),n=0;n<r;n++)e.words[n]=t.words[n];if(e.length=r,t.length<=9){t.words[0]=0,t.length=1;return}var i=t.words[9];for(n=10,e.words[e.length++]=4194303&i;n<t.length;n++){var f=0|t.words[n];t.words[n-10]=(4194303&f)<<4|i>>>22,i=f}i>>>=22,t.words[n-10]=i,0===i&&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<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(E,w),i(A,w),i(S,w),S.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=(0|t.words[r])*19+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},f._prime=function(t){var e;if(v[t])return v[t];if("k256"===t)e=new M;else if("p224"===t)e=new E;else if("p192"===t)e=new A;else if("p25519"===t)e=new S;else throw Error("Unknown prime "+t);return v[t]=e,e},_.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},_.prototype._verify2=function(t,e){n((t.negative|e.negative)==0,"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},_.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(u(t,t.umod(this.m)._forceRed(this)),t)},_.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},_.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)},_.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},_.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},_.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return 0>r.cmpn(0)&&r.iadd(this.m),r},_.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},_.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},_.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},_.prototype.isqr=function(t){return this.imul(t,t.clone())},_.prototype.sqr=function(t){return this.mul(t,t)},_.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 f(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var a=new f(1).toRed(this),s=a.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new f(2*l*l).toRed(this);0!==this.pow(l,u).cmp(s);)l.redIAdd(s);for(var h=this.pow(l,i),c=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=o;0!==d.cmp(a);){for(var m=d,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g<p);var b=this.pow(h,new f(1).iushln(p-g-1));c=c.redMul(b),h=b.redSqr(),d=d.redMul(h),p=g}return c},_.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},_.prototype.pow=function(t,e){if(e.isZero())return new f(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=Array(16);r[0]=new f(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],o=0,a=0,s=e.bitLength()%26;for(0===s&&(s=26),n=e.length-1;n>=0;n--){for(var u=e.words[n],l=s-1;l>=0;l--){var h=u>>l&1;if(i!==r[0]&&(i=this.sqr(i)),0===h&&0===o){a=0;continue}o<<=1,o|=h,(4==++a||0===n&&0===l)&&(i=this.mul(i,r[o]),a=0,o=0)}s=26}return i},_.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},_.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},f.mont=function(t){return new N(t)},i(N,_),N.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},N.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},N.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),f=i;return i.cmp(this.m)>=0?f=i.isub(this.m):0>i.cmpn(0)&&(f=i.iadd(this.m)),f._forceRed(this)},N.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new f(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),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},N.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},91070:function(t,e,r){"use strict";e.Z=void 0;var n=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var r=f(void 0);if(r&&r.has(t))return r.get(t);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var a=i?Object.getOwnPropertyDescriptor(t,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=t[o]}return n.default=t,r&&r.set(t,n),n}(r(67294)),i=r(99431);function f(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(f=function(t){return t?r:e})(t)}e.Z=function(t=null){let e=n.useContext(i.ThemeContext);return e&&0!==Object.keys(e).length?e:t}},57740:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.getChainId=void 0;let i=n(r(89850));e.getChainId=t=>{if(i.default.hasOwnProperty(t))return i.default[t].chain_id;for(let e in i.default)if(i.default.hasOwnProperty(e)){let r=i.default[e];if(r.chain_aliases&&r.chain_aliases.includes(t))return r.chain_id}return null}},78336:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.getEndpoints=void 0;let i=n(r(89850));e.getEndpoints=(t,e)=>{if(!i.default[e])throw Error(`Network ${e} does not exist.`);return i.default[e].api.filter(e=>e.type===t)}},13008:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.getExplorers=void 0;let i=n(r(89850));e.getExplorers=(t,e,r)=>{let n=i.default[r];if(!n)throw Error("Network not found");if(!("apps"in n)||!Array.isArray(n.apps))throw Error("Explorers not available for the provided network");let f=n.apps.filter(t=>"explorer"===t.type),o=[];for(let r of f)"address"===e&&r.address?o.push(r.url+r.address.replace("${address}",t)):"tx"===e&&r.tx&&o.push(r.url+r.tx.replace("${tx}",t));return o}},14009:function(t,e,r){"use strict";var n=r(34155),i=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),f=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&i(e,t,r);return f(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.getHardhatConfigNetworks=void 0;let s=o(r(5107)),u=a(r(89850));e.getHardhatConfigNetworks=()=>{s.config();let t=(t=>{if(!t)return[];if(t.startsWith("0x"))throw Error("PRIVATE_KEY env variable should not start with 0x");if(/^(0x)?[0-9a-fA-F]{64}$/.test(t))return[`0x${t}`];throw Error("PRIVATE_KEY env variable is not a valid private key")})(n.env.PRIVATE_KEY),e={};for(let r in u.default){if(!u.default[r].fees)continue;let n=u.default[r].api,i=n?.find(t=>"evm"===t.type);e[r]={accounts:t,chainId:u.default[r].chain_id,gas:u.default[r].fees.assets[0].gas,gasPrice:u.default[r].fees.assets[0].gas_price,url:i?.url||""}}return{...e,hardhat:{chainId:1337,forking:{blockNumber:14672712,url:"https://rpc.ankr.com/eth"}}}}},28810:function(t,e,r){"use strict";let n;var i=r(34155);Object.defineProperty(e,"__esModule",{value:!0}),n=void 0!==i&&i.versions&&i.versions.node?r(14009).getHardhatConfigNetworks:()=>{throw Error("getHardhatConfigNetworks is not available in this environment")},e.default=n},71803:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.getNetworkName=void 0;let i=n(r(89850));e.getNetworkName=t=>{let e=t.toLowerCase();for(let t in i.default){let r=i.default[t];if(r.chain_aliases&&r.chain_aliases.some(t=>t.toLowerCase()===e)||t.toLowerCase()===e)return t}return null}},11136:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.getSupportedNetworks=void 0;let i=n(r(89850));e.getSupportedNetworks=t=>{let e=Object.keys(i.default);if("ccm"===t){let t=["btc_testnet","zeta_testnet","baobab_testnet","eth_mainnet"];e=e.filter(e=>!t.includes(e))}return e}},53809:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)},f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.getHardhatConfigNetworks=e.networks=void 0,i(r(78336),e),i(r(13008),e),i(r(11136),e),i(r(71803),e),i(r(57740),e);var o=r(89850);Object.defineProperty(e,"networks",{enumerable:!0,get:function(){return f(o).default}});var a=r(28810);Object.defineProperty(e,"getHardhatConfigNetworks",{enumerable:!0,get:function(){return f(a).default}})},89850:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});let i=n(r(12938));e.default=i.default},5107:function(t,e,r){var n=r(34155),i=r(48764).Buffer;let f=r(60240),o=r(1864),a=r(73461),s=r(42474),u=r(55878).version,l=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function h(t){console.log(`[dotenv@${u}][DEBUG] ${t}`)}function c(t){return t&&t.DOTENV_KEY&&t.DOTENV_KEY.length>0?t.DOTENV_KEY:n.env.DOTENV_KEY&&n.env.DOTENV_KEY.length>0?n.env.DOTENV_KEY:""}function d(t){let e=null;if(t&&t.path&&t.path.length>0){if(Array.isArray(t.path))for(let r of t.path)f.existsSync(r)&&(e=r.endsWith(".vault")?r:`${r}.vault`);else e=t.path.endsWith(".vault")?t.path:`${t.path}.vault`}else e=o.resolve(n.cwd(),".env.vault");return f.existsSync(e)?e:null}function p(t){return"~"===t[0]?o.join(a.homedir(),t.slice(1)):t}let m={configDotenv:function(t){let e;let r=o.resolve(n.cwd(),".env"),i="utf8",a=!!(t&&t.debug);t&&t.encoding?i=t.encoding:a&&h("No encoding is specified. UTF-8 is used by default");let s=[r];if(t&&t.path){if(Array.isArray(t.path))for(let e of(s=[],t.path))s.push(p(e));else s=[p(t.path)]}let u={};for(let r of s)try{let e=m.parse(f.readFileSync(r,{encoding:i}));m.populate(u,e,t)}catch(t){a&&h(`Failed to load ${r} ${t.message}`),e=t}let l=n.env;return(t&&null!=t.processEnv&&(l=t.processEnv),m.populate(l,u,t),e)?{parsed:u,error:e}:{parsed:u}},_configVault:function(t){console.log(`[dotenv@${u}][INFO] Loading env from encrypted .env.vault`);let e=m._parseVault(t),r=n.env;return t&&null!=t.processEnv&&(r=t.processEnv),m.populate(r,e,t),{parsed:e}},_parseVault:function(t){let e;let r=d(t),n=m.configDotenv({path:r});if(!n.parsed){let t=Error(`MISSING_DATA: Cannot parse ${r} for an unknown reason`);throw t.code="MISSING_DATA",t}let i=c(t).split(","),f=i.length;for(let t=0;t<f;t++)try{let r=i[t].trim(),f=function(t,e){let r;try{r=new URL(e)}catch(t){if("ERR_INVALID_URL"===t.code){let t=Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw t.code="INVALID_DOTENV_KEY",t}throw t}let n=r.password;if(!n){let t=Error("INVALID_DOTENV_KEY: Missing key part");throw t.code="INVALID_DOTENV_KEY",t}let i=r.searchParams.get("environment");if(!i){let t=Error("INVALID_DOTENV_KEY: Missing environment part");throw t.code="INVALID_DOTENV_KEY",t}let f=`DOTENV_VAULT_${i.toUpperCase()}`,o=t.parsed[f];if(!o){let t=Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${f} in your .env.vault file.`);throw t.code="NOT_FOUND_DOTENV_ENVIRONMENT",t}return{ciphertext:o,key:n}}(n,r);e=m.decrypt(f.ciphertext,f.key);break}catch(e){if(t+1>=f)throw e}return m.parse(e)},config:function(t){if(0===c(t).length)return m.configDotenv(t);let e=d(t);if(!e){var r;return r=`You set DOTENV_KEY but you are missing a .env.vault file at ${e}. Did you forget to build it?`,console.log(`[dotenv@${u}][WARN] ${r}`),m.configDotenv(t)}return m._configVault(t)},decrypt:function(t,e){let r=i.from(e.slice(-64),"hex"),n=i.from(t,"base64"),f=n.subarray(0,12),o=n.subarray(-16);n=n.subarray(12,-16);try{let t=s.createDecipheriv("aes-256-gcm",r,f);return t.setAuthTag(o),`${t.update(n)}${t.final()}`}catch(n){let t=n instanceof RangeError,e="Invalid key length"===n.message,r="Unsupported state or unable to authenticate data"===n.message;if(t||e){let t=Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw t.code="INVALID_DOTENV_KEY",t}if(r){let t=Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw t.code="DECRYPTION_FAILED",t}throw n}},parse:function(t){let e;let r={},n=t.toString();for(n=n.replace(/\r\n?/mg,"\n");null!=(e=l.exec(n));){let t=e[1],n=e[2]||"",i=(n=n.trim())[0];n=n.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),'"'===i&&(n=(n=n.replace(/\\n/g,"\n")).replace(/\\r/g,"\r")),r[t]=n}return r},populate:function(t,e,r={}){let n=!!(r&&r.debug),i=!!(r&&r.override);if("object"!=typeof e){let t=Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw t.code="OBJECT_REQUIRED",t}for(let r of Object.keys(e))Object.prototype.hasOwnProperty.call(t,r)?(!0===i&&(t[r]=e[r]),n&&(!0===i?h(`"${r}" is already defined and WAS overwritten`):h(`"${r}" is already defined and was NOT overwritten`))):t[r]=e[r]}};t.exports.configDotenv=m.configDotenv,t.exports._configVault=m._configVault,t.exports._parseVault=m._parseVault,t.exports.config=m.config,t.exports.decrypt=m.decrypt,t.exports.parse=m.parse,t.exports.populate=m.populate,t.exports=m},3470:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.getNonZetaAddress=e.getZRC20Address=e.isMainnetNetwork=e.isTestnetNetwork=e.isProtocolNetworkName=e.zetaProtocolNetworks=e.zetaProtocolMainNetworks=e.nonZetaAddress=e.zetaProtocolTestNetworks=e.isZetaProtocolAddress=e.zetaProtocolAddress=void 0;let i=n(r(62890));e.zetaProtocolAddress=["connector","erc20Custody","immutableCreate2Factory","tss","tssUpdater","zetaToken","zetaTokenConsumerUniV2","zetaTokenConsumerUniV3"],e.isZetaProtocolAddress=t=>e.zetaProtocolAddress.includes(t),e.zetaProtocolTestNetworks=["baobab_testnet","bsc_testnet","btc_testnet","goerli_testnet","mumbai_testnet","zeta_testnet"],e.nonZetaAddress=["uniswapV2Factory","uniswapV2Router02","uniswapV3Router","uniswapV3Factory","weth9"],e.zetaProtocolMainNetworks=["eth_mainnet","bsc_mainnet","zeta_mainnet"],e.zetaProtocolNetworks=[...e.zetaProtocolTestNetworks,...e.zetaProtocolMainNetworks],e.isProtocolNetworkName=t=>e.zetaProtocolNetworks.includes(t),e.isTestnetNetwork=t=>e.zetaProtocolTestNetworks.includes(t),e.isMainnetNetwork=t=>!1,e.getZRC20Address=t=>i.default.zevm[t].zrc20,e.getNonZetaAddress=(t,e)=>i.default.non_zeta[e][t]},42391:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.getAddress=void 0;let i=r(53809),f=n(r(21607)),o=n(r(3266));e.getAddress=(t,e,r)=>{let n;let a=[...o.default,...f.default];if("zrc20"!==t&&r)throw Error("Symbol is only supported when ParamType is zrc20");if("zrc20"!==t||r)n=a.find(n=>n.chain_name===e&&n.type===t&&n.symbol===r);else{let r=(0,i.getChainId)(e);n=a.find(e=>e.foreign_chain_id===r?.toString()&&e.type===t&&"gas"===e.coin_type)}return n?.address}},39459:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)},f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.testnet=e.mainnet=void 0;var o=r(21607);Object.defineProperty(e,"mainnet",{enumerable:!0,get:function(){return f(o).default}});var a=r(3266);Object.defineProperty(e,"testnet",{enumerable:!0,get:function(){return f(a).default}}),i(r(3470),e),i(r(42391),e),i(r(46711),e)},46711:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},60185:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ZetaChainClient=void 0;let i=r(53809),f=n(r(82492)),o=r(93139);class a{constructor(t){if(this.getEndpoint=o.getEndpoint,this.getBalances=o.getBalances,this.getForeignCoins=o.getForeignCoins,this.getSupportedChains=o.getSupportedChains,this.getFees=o.getFees,this.getPools=o.getPools,this.trackCCTX=o.trackCCTX,this.deposit=o.deposit,this.withdraw=o.withdraw,this.sendZeta=o.sendZeta,this.getChainId=o.getChainId,this.getQuote=o.getQuote,this.getWithdrawFeeInInputToken=o.getWithdrawFeeInInputToken,this.getRefundFee=o.getRefundFee,this.getZRC20FromERC20=o.getZRC20FromERC20,this.getZRC20GasToken=o.getZRC20GasToken,t.wallet&&t.signer)throw Error("You can only provide a wallet or a signer, not both.");t.wallet?this.wallet=t.wallet:t.signer&&(this.signer=t.signer),this.chains={...i.networks},this.network=t.network||"",this.mergeChains(t.chains)}mergeChains(t={}){Object.entries(t).forEach(([e,r])=>{t.hasOwnProperty(e)&&(this.chains[e]=(0,f.default)({},this.chains[e],r))})}getChains(){return this.chains}}e.ZetaChainClient=a},8324:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.deposit=void 0;let i=n(r(40937)),f=r(39459),o=n(r(4823)),a=r(88888),s=async function({chain:t,amount:e,recipient:r,erc20:n,message:s}){let u;if(this.signer)u=this.signer;else if(this.wallet){let e=this.getEndpoint("evm",t);if(!e)throw Error(`No EVM RPC endpoint found for ${t} chain.`);let r=new a.ethers.providers.JsonRpcProvider(e);u=this.wallet.connect(r)}else throw Error("No wallet or signer found.");if(s&&!r)throw Error("Please, provide a valid contract address as recipient.");let l=r||this.signer.address,h=a.ethers.utils.defaultAbiCoder,c=s?h.encode(s[0],s[1]):a.ethers.utils.hexlify([]);if(n){let r;let s=(0,f.getAddress)("erc20Custody",t);if(!s)throw Error(`No ERC-20 custody contract found for ${t} chain.`);let h=new a.ethers.Contract(s,o.default.abi,u),d=new a.ethers.Contract(n,i.default.abi,u),p=await d.decimals();try{r=a.ethers.utils.parseUnits(e,p)}catch(t){throw Error("Amount cannot be parsed.")}if((await d.balanceOf(u.address)).lt(e))throw Error("Insufficient token balance.");let m=await d.approve(s,r);return await m.wait(),await h.deposit(l,n,r,c)}{let n=(0,f.getAddress)("tss",t);if(!n)throw Error(`No TSS contract found for ${t} chain.`);let i={to:n,value:a.ethers.utils.parseUnits(e,18)};return i.data=r?`${r}${c.slice(2)??""}`:a.ethers.utils.hexlify([]),await u.sendTransaction(i)}};e.deposit=s},56616:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.getBalances=void 0;let i=n(r(40937)),f=r(39459),o=n(r(25252)),a=r(88888),s=r(79028),u=n(r(94301)),l=async function({evmAddress:t,btcAddress:e}){let r=[],n=await this.getSupportedChains();return(await this.getForeignCoins()).forEach(t=>{"Gas"===t.coin_type?(r.push({chain_id:t.foreign_chain_id,coin_type:t.coin_type,decimals:t.decimals,symbol:t.symbol,zrc20:t.zrc20_contract_address}),r.push({chain_id:this.getChainId(`zeta_${this.network}`),coin_type:"ZRC20",contract:t.zrc20_contract_address,decimals:t.decimals,symbol:t.symbol})):"ERC20"===t.coin_type&&(r.push({chain_id:t.foreign_chain_id,coin_type:"ERC20",contract:t.asset,symbol:t.symbol,zrc20:t.zrc20_contract_address}),r.push({chain_id:this.getChainId(`zeta_${this.network}`),coin_type:"ZRC20",contract:t.zrc20_contract_address,decimals:t.decimals,symbol:t.name}))}),n.forEach(t=>{let e=(0,f.getAddress)("zetaToken",t.chain_name);e&&r.push({chain_id:t.chain_id,coin_type:"ERC20",contract:e,decimals:18,symbol:"WZETA"})}),r.push({chain_id:this.getChainId(`zeta_${this.network}`),coin_type:"Gas",decimals:18,symbol:"ZETA"}),r=r.map(t=>{let e=t.symbol.split("-")[0],r=n.find(e=>e.chain_id===t.chain_id.toString())?.chain_name;return{...t,chain_name:r,id:`${t.chain_id.toString().toLowerCase()}__${t.symbol.toLowerCase().split(" ").join("_")}`,ticker:e}}).filter(t=>t.chain_name),await Promise.all(r.map(async r=>{let n="Gas"===r.coin_type,f=["btc_testnet","btc_mainnet"].includes(r.chain_name),l="ERC20"===r.coin_type,h="ZRC20"===r.coin_type;if(n&&!f){let e;try{e=await this.getEndpoint("evm",r.chain_name)}catch(t){return r}return new a.ethers.providers.StaticJsonRpcProvider(e).getBalance(t).then(t=>({...r,balance:(0,s.formatUnits)(t,r.decimals)}))}if(n&&f&&e){let t;try{t=this.getEndpoint("esplora",r.chain_name)}catch(t){return{...r,balance:void 0}}return(0,u.default)(`${t}/address/${e}`).then(async t=>{let{funded_txo_sum:e,spent_txo_sum:n}=(await t.json()).chain_stats,i=((e-n)/1e8).toString();return{...r,balance:i}})}if(l){let e;try{e=await this.getEndpoint("evm",r.chain_name)}catch(t){return r}let n=new a.ethers.providers.StaticJsonRpcProvider(e),f=new a.ethers.Contract(r.contract,i.default.abi,n),o=await f.decimals();return f.balanceOf(t).then(t=>({...r,balance:(0,s.formatUnits)(t,o),decimals:o}))}{if(!h)return Promise.resolve(r);let e=await this.getEndpoint("evm",r.chain_name),n=new a.ethers.providers.StaticJsonRpcProvider(e);return new a.ethers.Contract(r.contract,o.default.abi,n).balanceOf(t).then(t=>({...r,balance:(0,s.formatUnits)(t,r.decimals)}))}}))};e.getBalances=l},33596:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getChainId=void 0,e.getChainId=function(t){let e=this.chains;if(e.hasOwnProperty(t))return e[t].chain_id;for(let r in e)if(e.hasOwnProperty(r)){let n=e[r];if(n.chain_aliases&&n.chain_aliases.includes(t))return n.chain_id}return null}},70950:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getEndpoint=void 0,e.getEndpoint=function(t,e){if(!this.chains[e])throw Error(`Network ${e} does not exist.`);return this.chains[e].api.filter(e=>e.type===t)[0]?.url}},30645:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.getFees=void 0;let i=r(39459),f=n(r(25252)),o=r(88888),a=n(r(94301)),s=async function(t,e,r){let n=new o.ethers.providers.StaticJsonRpcProvider(e),i=new o.ethers.Contract(t.address,f.default.abi,n),[,a]=await i.withdrawGasFee(),s=o.ethers.BigNumber.from(a),u=o.ethers.BigNumber.from(await i.PROTOCOL_FLAT_FEE()),l=r.find(e=>e.foreign_chain_id===t.foreign_chain_id&&"Gas"===e.coin_type);return{...t,totalFee:o.utils.formatUnits(s,l.decimals),gasFee:o.utils.formatUnits(s.sub(u),l.decimals),protocolFee:o.utils.formatUnits(u,l.decimals)}},u=async function(t,e){if(["7000","7001","18332","8332"].includes(t))return;let r=this.getEndpoint("cosmos-http",`zeta_${this.network}`);if(!r)throw Error("API endpoint not found");let n=`${r}/zeta-chain/crosschain/convertGasToZeta?chainId=${t}&gasLimit=${e}`,i=await (0,a.default)(n),f=await i.json(),s=o.ethers.BigNumber.from(f.outboundGasInZeta),u=o.ethers.BigNumber.from(f.protocolFeeInZeta);return{chainID:t,totalFee:o.utils.formatUnits(s.add(u),18),gasFee:o.utils.formatUnits(s,18),protocolFee:o.utils.formatUnits(u,18)}},l=async function(t){let e={messaging:[],omnichain:[]},r=await this.getSupportedChains(),n=await this.getForeignCoins(),f=("mainnet"===this.network?i.mainnet:i.testnet).filter(t=>"zrc20"===t.type);return await Promise.all(r.map(async r=>{try{let n=await u.call(this,r.chain_id,t);n&&e.messaging.push(n)}catch(t){console.log(t)}})),await Promise.all(f.map(async t=>{try{let r=this.getEndpoint("evm",`zeta_${this.network}`),i=await s(t,r,n);e.omnichain.push(i)}catch(t){console.log(t)}})),e};e.getFees=l},24763:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getForeignCoins=void 0;let r=async function(){let t=await this.getEndpoint("cosmos-http",`zeta_${this.network}`),e=`${t}/zeta-chain/fungible/foreign_coins`,r=await fetch(e);return(await r.json()).foreignCoins};e.getForeignCoins=r},43995:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getHardhatConfig=void 0;let n=r(53809);e.getHardhatConfig=function({accounts:t}){let e={};for(let r in n.networks){if(!n.networks[r].fees)continue;let i=n.networks[r].api,f=i?.find(t=>"evm"===t.type);if(!t)throw Error("Seems like the client has been initialized without a wallet.");e[r]={chainId:n.networks[r].chain_id,gas:n.networks[r].fees.assets[0].gas,gasPrice:n.networks[r].fees.assets[0].gas_price,url:f?.url||""},t.every(t=>t)&&(e[r].accounts=t)}return{etherscan:{apiKey:{zeta_mainnet:"YOUR_KEY_HERE",zeta_testnet:"YOUR_KEY_HERE"},customChains:[{chainId:7001,network:"zeta_testnet",urls:{apiURL:"https://zetachain-athens-3.blockscout.com/api",browserURL:"https://zetachain-athens-3.blockscout.com"}},{chainId:7e3,network:"zeta_mainnet",urls:{apiURL:"https://zetachain.blockscout.com/api",browserURL:"https://zetachain.blockscout.com"}}]},networks:{...e,hardhat:{chainId:1337,forking:{blockNumber:14672712,url:"https://rpc.ankr.com/eth"}}},solidity:"0.8.7"}}},46144:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.getPools=void 0;let i=n(r(4096)),f=r(39459),o=n(r(68242)),a=r(88888),s=async function(){let t=this.getEndpoint("evm",`zeta_${this.network}`),e=new a.ethers.providers.StaticJsonRpcProvider(t),r=`zeta_${this.network}`,n=(0,f.getAddress)("uniswapV2Factory",r);if(!n)throw Error("uniswapV2Factory is not defined");let s=(0,f.getAddress)("systemContract",r);if(!s)throw Error("System contract is not defined");let u=new a.ethers.Contract(s,o.default.abi,e),l=(0,f.getAddress)("zetaToken",r);if(!l)throw Error("ZETA token address is not defined");let h=await this.getForeignCoins(),c=h.map(t=>t.zrc20_contract_address);c.push(l);let d=c.reduce((t,e,r)=>(c.slice(r+1).forEach(r=>{let n=[e,r].sort().join("-");t.some(t=>t.key===n)||t.push({key:n,tokenA:e,tokenB:r})}),t),[]).map(async({tokenA:t,tokenB:r})=>{let f=await u.uniswapv2PairFor(n,t,r);if(f===a.ethers.constants.AddressZero)return null;try{let t=new a.ethers.Contract(f,i.default.abi,e),[r,n]=await Promise.all([t.token0(),t.token1()]),o=await t.getReserves();return{pair:f,t0:{address:r,reserve:o[0]},t1:{address:n,reserve:o[1]}}}catch(t){return null}}),p=(await Promise.all(d)).filter(t=>null!==t),m=h.reduce((t,e)=>(t[e.zrc20_contract_address.toLowerCase()]={decimals:e.decimals,symbol:e.symbol},t),{});return p.map(t=>{let e={decimals:18,symbol:"WZETA"},r=t.t0.address.toLowerCase(),n=t.t1.address.toLowerCase(),i=r===l.toLowerCase()&&e,f=n===l.toLowerCase()&&e;return{...t,t0:{...t.t0,...m[r]||i},t1:{...t.t1,...m[n]||f}}})};e.getPools=s},51064:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.getQuote=e.getWithdrawFeeInInputToken=e.getRefundFee=e.getZRC20GasToken=e.getZRC20FromERC20=void 0;let i=r(14196),f=n(r(54420)),o=r(39459),a=n(r(25252)),s=r(88888),u=async function(t){let e=(await this.getForeignCoins()).find(e=>e.asset===t);if(!e)throw Error("This ERC-20 token is not supported");return e?.zrc20_contract_address};e.getZRC20FromERC20=u;let l=async function(t){let e=await this.getChainId(t)?.toString(),r=(await this.getForeignCoins()).find(t=>t.foreign_chain_id===e&&"Gas"===t.coin_type);return r?.zrc20_contract_address};e.getZRC20GasToken=l;let h=()=>{let t=(0,o.getAddress)("zetaToken","zeta_testnet");if(!t)throw Error("Cannot get ZETA token address");return t},c=async function(t){let e=this.getEndpoint("evm","zeta_testnet"),r=new s.ethers.providers.JsonRpcProvider(e),n=h(),i=new s.ethers.Contract(t,a.default.abi,r),f=await i.decimals(),[o,u]=await i.withdrawGasFee();if(await i.COIN_TYPE()===1)return{amount:u,decimals:f};{let e=await m("in",r,u,n,o);return{amount:(await m("in",r,e[0],t,n))[0],decimals:f}}};e.getRefundFee=c;let d=async function(t,e){let r=this.getEndpoint("evm","zeta_testnet"),n=new s.ethers.providers.JsonRpcProvider(r),i=h(),f=new s.ethers.Contract(t,a.default.abi,n),o=new s.ethers.Contract(e,a.default.abi,n),u=await f.decimals(),[l,c]=await o.withdrawGasFee(),d=await m("in",n,c,i,l);return{amount:(await m("in",n,d[0],t,i))[0],decimals:u}};e.getWithdrawFeeInInputToken=d;let p=async function(t,e,r){let n=this.getEndpoint("evm","zeta_testnet"),f=new s.ethers.providers.JsonRpcProvider(n),o=h(),u=new s.ethers.Contract(e,a.default.abi,f),l=new s.ethers.Contract(r,a.default.abi,f),c=await u.decimals(),d=(0,i.parseUnits)(t,c).toString(),p=await l.decimals(),g=await m("out",f,d,e,o);return{amount:(await m("out",f,g[1],o,r))[1],decimals:p}};e.getQuote=p;let m=async(t,e,r,n,i)=>{let a=(0,o.getAddress)("uniswapV2Router02","zeta_testnet");if(!a)throw Error("Cannot get uniswapV2Router02 address");let u=new s.ethers.Contract(a,f.default.abi,e),l=[n,i];return"in"===t?await u.getAmountsIn(r,l):await u.getAmountsOut(r,l)}},97626:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getSupportedChains=void 0;let r=async function(){let t=await this.getEndpoint("cosmos-http",`zeta_${this.network}`),e=`${t}/zeta-chain/observer/supportedChains`,r=await fetch(e);return(await r.json()).chains};e.getSupportedChains=r},93139:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),i(r(60185),e),i(r(8324),e),i(r(56616),e),i(r(33596),e),i(r(70950),e),i(r(30645),e),i(r(24763),e),i(r(43995),e),i(r(46144),e),i(r(51064),e),i(r(97626),e),i(r(87614),e),i(r(89066),e),i(r(10105),e),i(r(20987),e)},87614:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.prepareParams=e.prepareData=void 0;let n=r(88888);e.prepareData=(t,r,n)=>{let i=(0,e.prepareParams)(r,n);return`${t}${i.slice(2)}`},e.prepareParams=(t,e)=>{let r=n.ethers.utils.defaultAbiCoder;for(let r=0;r<e.length;r++)"bytes32"===t[r]&&(e[r]=n.ethers.utils.hexlify(n.ethers.utils.zeroPad(e[r],32)));return r.encode(t,e)}},89066:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.sendZeta=void 0;let i=r(39459),f=n(r(34127)),o=n(r(75056)),a=n(r(18763)),s=r(88888),u=async function({chain:t,destination:e,recipient:r,gasLimit:n=5e5,amount:u}){let l;if(this.signer)l=this.signer;else if(this.wallet){let e=this.getEndpoint("evm",t);if(!e)throw Error(`No EVM RPC endpoint found for ${t} chain.`);let r=new s.ethers.providers.JsonRpcProvider(e);l=this.wallet.connect(r)}else throw Error("No wallet or signer found.");let h=["zeta_testnet","zeta_mainnet"].includes(t),c=(0,i.getAddress)("connector",t);if(!c)throw Error(`connector address on chain ${t} not found`);let d=(0,i.getAddress)("zetaToken",t);if(!d)throw Error(`zetaToken address on chain ${t} not found`);let p=new s.ethers.Contract(c,h?a.default.abi:o.default.abi,l),m=new s.ethers.Contract(d,f.default.abi,l),g=s.ethers.utils.parseEther(u);h&&await l.sendTransaction({to:d,value:g});let b=await m.approve(c,g);await b.wait();let y=this.getChains()[e]?.chain_id,v=r||l.address;return await p.send({destinationAddress:v,destinationChainId:y,destinationGasLimit:n,message:s.ethers.utils.toUtf8Bytes(""),zetaParams:s.ethers.utils.toUtf8Bytes(""),zetaValueAndGas:g})};e.sendZeta=u},10105:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.trackCCTX=void 0;let i=n(r(94301)),f=async t=>{let e=await (0,i.default)(t);if(!e.ok)throw Error(`Fetch failed with status: ${e.status}`);return await e.json()},o=async(t,e,r,n,i,o)=>{try{let a=`${n}/zeta-chain/crosschain/inTxHashToCctx/${t}`,s=await f(a);(s?.inTxHashToCctx?.cctx_index).forEach(t=>{!t||i[t]||r[t]||(i[t]=[],o||!e||(e.emit("add",{hash:t,text:t}),r[t]=!0))})}catch(t){}},a=async function(t,e,r,n,i,f,o){let a=await s(t,n),u=a?.outbound_tx_params[0]?.receiver_chainId,l={confirmed_on_destination:!1,outbound_tx_hash:a?.outbound_tx_params[0]?.outbound_tx_hash,outbound_tx_tss_nonce:a?.outbound_tx_params[0]?.outbound_tx_tss_nonce,receiver_chainId:u,sender_chain_id:a?.inbound_tx_params?.sender_chain_id,status:a?.cctx_status?.status,status_message:a?.cctx_status?.status_message},h=i[t][i[t].length-1],c=0===i[t].length,d=void 0!==l.status&&void 0!==l.status_message;if(c||d&&h.status!==l.status){let n;i[t].push(l);let a=i[t]?.[0].sender_chain_id,s=i[t]?.[0].receiver_chainId;if(f){let t=f.find(t=>t.chain_id===l.receiver_chainId)?.nonce_low,e=l.outbound_tx_tss_nonce-t;n=e>0?` (${e} in queue)`:""}let u=i[t].map(t=>`${t.status} ${t.status_message&&"("+t.status_message+")"}`).join(" → "),h=`${t}: ${a} → ${s}${n}: ${u}`;if(!o&&r[t]&&e){let n=l.status;"OutboundMined"==n||"Reverted"==n?(e.emit("succeed",{hash:t,text:h}),r[t]=!1):"Aborted"==n?(e.emit("fail",{hash:t,text:h}),r[t]=!1):e.emit("update",{hash:t,text:h})}}},s=async(t,e)=>{try{let r=`${e}/zeta-chain/crosschain/cctx/${t}`,n=await f(r);return n?.CrossChainTx}catch(t){}},u=async(t,e)=>{try{let r=`${t}/zeta-chain/observer/pendingNonces`,n=await f(r);return(n?.pending_nonces).filter(t=>t.tss===e)}catch(t){}},l=async t=>{try{let e=`${t}/zeta-chain/observer/TSS`,r=await f(e);return r?.TSS.tss_pubkey}catch(t){}},h=async function({hash:t,json:e=!1,emitter:r=null}){let n={},i=this.getEndpoint("cosmos-http",`zeta_${this.network}`),f=await l(i);return new Promise((l,h)=>{let c={},d=[],p=setInterval(async()=>{if(d=await u(i,f),0===Object.keys(c).length){if(!e&&r){let t=`Looking for cross-chain transactions (CCTXs) on ZetaChain...
`;r.emit("search-add",{text:t}),n.search=!0}await o(t,r,n,i,c,e)}for(let f in 0===Object.keys(c).length&&!c[t]&&await s(t,i)&&!c[t]&&(c[t]=[],n[t]||e||!r||(n[t]=!0,r.emit("add",{hash:t,text:t}),n[t]=!0)),c)await o(f,r,n,i,c,e);if(Object.keys(c).length>0)for(let t in n.search&&!e&&r&&(r.emit("search-end",{text:`CCTXs on ZetaChain found.
`}),n.search=!1),c)try{a.call(this,t,r,n,i,c,d,e)}catch(t){}if(Object.keys(c).length>0&&0===Object.keys(c).map(t=>{let e=c[t][c[t].length-1];return e?.status}).filter(t=>!["OutboundMined","Aborted","Reverted"].includes(t)).length){let t=Object.keys(c).map(t=>{let e=c[t][c[t].length-1];return e?.status}).every(t=>"OutboundMined"===t);clearInterval(p),t?(r.emit("mined-success",{cctxs:c}),e&&console.log(JSON.stringify(c,null,2)),l(c)):(r.emit("mined-fail",{cctxs:c}),h("CCTX aborted or reverted"))}},3e3)})};e.trackCCTX=h},20987:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.withdraw=void 0;let i=n(r(25252)),f=r(88888),o=async function({amount:t,zrc20:e,recipient:r}){let n;if(this.signer)n=this.signer;else if(this.wallet){let t=`zeta_${this.network}`,e=this.getEndpoint("evm",t);if(!e)throw Error(`No EVM RPC endpoint found for ${t} chain.`);let r=new f.ethers.providers.JsonRpcProvider(e);n=this.wallet.connect(r)}else throw Error("No wallet or signer found.");let o=new f.ethers.Contract(e,i.default.abi,n),a=await o.decimals(),[s,u]=await o.withdrawGasFee(),l=new f.ethers.Contract(s,i.default.abi,n),h=f.ethers.utils.parseUnits(t,a);await (await l.connect(n).approve(e,u)).wait();let c=r||n.address;return await o.connect(n).withdraw(c,h)};e.withdraw=o},22965:function(t,e,r){"use strict";r.d(e,{i:function(){return n}});let n="abi/5.4.1"},25263:function(t,e,r){"use strict";r.d(e,{R:function(){return x},$:function(){return k}});var n=r(8999),i=r(13350),f=r(46204),o=r(22965),a=r(36280),s=r(16536);class u extends a.XI{constructor(t){super("address","address",t,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(t,e){try{e=(0,s.Kn)(e)}catch(t){this._throwError(t.message,e)}return t.writeValue(e)}decode(t){return(0,s.Kn)((0,n.$m)(t.readValue().toHexString(),20))}}class l extends a.XI{constructor(t){super(t.name,t.type,void 0,t.dynamic),this.coder=t}defaultValue(){return this.coder.defaultValue()}encode(t,e){return this.coder.encode(t,e)}decode(t){return this.coder.decode(t)}}let h=new f.Yd(o.i);function c(t,e,r){let n=null;if(Array.isArray(r))n=r;else if(r&&"object"==typeof r){let t={};n=e.map(e=>{let n=e.localName;return n||h.throwError("cannot encode object for signature with missing names",f.Yd.errors.INVALID_ARGUMENT,{argument:"values",coder:e,value:r}),t[n]&&h.throwError("cannot encode object for signature with duplicate names",f.Yd.errors.INVALID_ARGUMENT,{argument:"values",coder:e,value:r}),t[n]=!0,r[n]})}else h.throwArgumentError("invalid tuple value","tuple",r);e.length!==n.length&&h.throwArgumentError("types/value length mismatch","tuple",r);let i=new a.QV(t.wordSize),o=new a.QV(t.wordSize),s=[];return e.forEach((t,e)=>{let r=n[e];if(t.dynamic){let e=o.length;t.encode(o,r);let n=i.writeUpdatableValue();s.push(t=>{n(t+e)})}else t.encode(i,r)}),s.forEach(t=>{t(i.length)}),t.appendWriter(i)+t.appendWriter(o)}function d(t,e){let r=[],n=t.subReader(0);e.forEach(e=>{let i=null;if(e.dynamic){let r=t.readValue(),o=n.subReader(r.toNumber());try{i=e.decode(o)}catch(t){if(t.code===f.Yd.errors.BUFFER_OVERRUN)throw t;(i=t).baseType=e.name,i.name=e.localName,i.type=e.type}}else try{i=e.decode(t)}catch(t){if(t.code===f.Yd.errors.BUFFER_OVERRUN)throw t;(i=t).baseType=e.name,i.name=e.localName,i.type=e.type}void 0!=i&&r.push(i)});let i=e.reduce((t,e)=>{let r=e.localName;return r&&(t[r]||(t[r]=0),t[r]++),t},{});e.forEach((t,e)=>{let n=t.localName;if(!n||1!==i[n]||("length"===n&&(n="_length"),null!=r[n]))return;let f=r[e];f instanceof Error?Object.defineProperty(r,n,{enumerable:!0,get:()=>{throw f}}):r[n]=f});for(let t=0;t<r.length;t++){let e=r[t];e instanceof Error&&Object.defineProperty(r,t,{enumerable:!0,get:()=>{throw e}})}return Object.freeze(r)}class p extends a.XI{constructor(t,e,r){super("array",t.type+"["+(e>=0?e:"")+"]",r,-1===e||t.dynamic),this.coder=t,this.length=e}defaultValue(){let t=this.coder.defaultValue(),e=[];for(let r=0;r<this.length;r++)e.push(t);return e}encode(t,e){Array.isArray(e)||this._throwError("expected array value",e);let r=this.length;-1===r&&(r=e.length,t.writeValue(e.length)),h.checkArgumentCount(e.length,r,"coder array"+(this.localName?" "+this.localName:""));let n=[];for(let t=0;t<e.length;t++)n.push(this.coder);return c(t,n,e)}decode(t){let e=this.length;-1===e&&32*(e=t.readValue().toNumber())>t._data.length&&h.throwError("insufficient data length",f.Yd.errors.BUFFER_OVERRUN,{length:t._data.length,count:e});let r=[];for(let t=0;t<e;t++)r.push(new l(this.coder));return t.coerce(this.name,d(t,r))}}class m extends a.XI{constructor(t){super("bool","bool",t,!1)}defaultValue(){return!1}encode(t,e){return t.writeValue(e?1:0)}decode(t){return t.coerce(this.type,!t.readValue().isZero())}}class g extends a.XI{constructor(t,e){super(t,t,e,!0)}defaultValue(){return"0x"}encode(t,e){return e=(0,n.lE)(e),t.writeValue(e.length)+t.writeBytes(e)}decode(t){return t.readBytes(t.readValue().toNumber(),!0)}}class b extends g{constructor(t){super("bytes",t)}decode(t){return t.coerce(this.name,(0,n.Dv)(super.decode(t)))}}class y extends a.XI{constructor(t,e){let r="bytes"+String(t);super(r,r,e,!1),this.size=t}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+2*this.size)}encode(t,e){let r=(0,n.lE)(e);return r.length!==this.size&&this._throwError("incorrect data length",e),t.writeBytes(r)}decode(t){return t.coerce(this.name,(0,n.Dv)(t.readBytes(this.size)))}}class v extends a.XI{constructor(t){super("null","",t,!1)}defaultValue(){return null}encode(t,e){return null!=e&&this._throwError("not null",e),t.writeBytes([])}decode(t){return t.readBytes(0),t.coerce(this.name,null)}}var w=r(37010);let M=w.O$.from(-1),E=w.O$.from(0),A=w.O$.from(1),S=w.O$.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");class _ extends a.XI{constructor(t,e,r){let n=(e?"int":"uint")+8*t;super(n,n,r,!1),this.size=t,this.signed=e}defaultValue(){return 0}encode(t,e){let r=w.O$.from(e),n=S.mask(8*t.wordSize);if(this.signed){let t=n.mask(8*this.size-1);(r.gt(t)||r.lt(t.add(A).mul(M)))&&this._throwError("value out-of-bounds",e)}else(r.lt(E)||r.gt(n.mask(8*this.size)))&&this._throwError("value out-of-bounds",e);return r=r.toTwos(8*this.size).mask(8*this.size),this.signed&&(r=r.fromTwos(8*this.size).toTwos(8*t.wordSize)),t.writeValue(r)}decode(t){let e=t.readValue().mask(8*this.size);return this.signed&&(e=e.fromTwos(8*this.size)),t.coerce(this.name,e)}}var N=r(63243);class T extends g{constructor(t){super("string",t)}defaultValue(){return""}encode(t,e){return super.encode(t,(0,N.Y0)(e))}decode(t){return(0,N.ZN)(super.decode(t))}}class R extends a.XI{constructor(t,e){let r=!1,n=[];t.forEach(t=>{t.dynamic&&(r=!0),n.push(t.type)}),super("tuple","tuple("+n.join(",")+")",e,r),this.coders=t}defaultValue(){let t=[];this.coders.forEach(e=>{t.push(e.defaultValue())});let e=this.coders.reduce((t,e)=>{let r=e.localName;return r&&(t[r]||(t[r]=0),t[r]++),t},{});return this.coders.forEach((r,n)=>{let i=r.localName;i&&1===e[i]&&("length"===i&&(i="_length"),null==t[i]&&(t[i]=t[n]))}),Object.freeze(t)}encode(t,e){return c(t,this.coders,e)}decode(t){return t.coerce(this.name,d(t,this.coders))}}var C=r(63691);let I=new f.Yd(o.i),P=new RegExp(/^bytes([0-9]*)$/),O=new RegExp(/^(u?int)([0-9]*)$/);class x{constructor(t){I.checkNew(new.target,x),(0,i.zG)(this,"coerceFunc",t||null)}_getCoder(t){switch(t.baseType){case"address":return new u(t.name);case"bool":return new m(t.name);case"string":return new T(t.name);case"bytes":return new b(t.name);case"array":return new p(this._getCoder(t.arrayChildren),t.arrayLength,t.name);case"tuple":return new R((t.components||[]).map(t=>this._getCoder(t)),t.name);case"":return new v(t.name)}let e=t.type.match(O);if(e){let r=parseInt(e[2]||"256");return(0===r||r>256||r%8!=0)&&I.throwArgumentError("invalid "+e[1]+" bit length","param",t),new _(r/8,"int"===e[1],t.name)}if(e=t.type.match(P)){let r=parseInt(e[1]);return(0===r||r>32)&&I.throwArgumentError("invalid bytes length","param",t),new y(r,t.name)}return I.throwArgumentError("invalid type","type",t.type)}_getWordSize(){return 32}_getReader(t,e){return new a.Ej(t,this._getWordSize(),this.coerceFunc,e)}_getWriter(){return new a.QV(this._getWordSize())}getDefaultValue(t){return new R(t.map(t=>this._getCoder(C._R.from(t))),"_").defaultValue()}encode(t,e){t.length!==e.length&&I.throwError("types/values length mismatch",f.Yd.errors.INVALID_ARGUMENT,{count:{types:t.length,values:e.length},value:{types:t,values:e}});let r=new R(t.map(t=>this._getCoder(C._R.from(t))),"_"),n=this._getWriter();return r.encode(n,e),n.data}decode(t,e,r){return new R(t.map(t=>this._getCoder(C._R.from(t))),"_").decode(this._getReader((0,n.lE)(e),r))}}let k=new x},36280:function(t,e,r){"use strict";r.d(e,{BR:function(){return u},Ej:function(){return c},QV:function(){return h},XI:function(){return l}});var n=r(8999),i=r(37010),f=r(13350),o=r(46204),a=r(22965);let s=new o.Yd(a.i);function u(t){let e=[],r=function(t,n){if(Array.isArray(n))for(let i in n){let f=t.slice();f.push(i);try{r(f,n[i])}catch(t){e.push({path:f,error:t})}}};return r([],t),e}class l{constructor(t,e,r,n){this.name=t,this.type=e,this.localName=r,this.dynamic=n}_throwError(t,e){s.throwArgumentError(t,this.localName,e)}}class h{constructor(t){(0,f.zG)(this,"wordSize",t||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(t)}get data(){return(0,n.xs)(this._data)}get length(){return this._dataLength}_writeData(t){return this._data.push(t),this._dataLength+=t.length,t.length}appendWriter(t){return this._writeData((0,n.zo)(t._data))}writeBytes(t){let e=(0,n.lE)(t),r=e.length%this.wordSize;return r&&(e=(0,n.zo)([e,this._padding.slice(r)])),this._writeData(e)}_getValue(t){let e=(0,n.lE)(i.O$.from(t));return e.length>this.wordSize&&s.throwError("value out-of-bounds",o.Yd.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:e.length}),e.length%this.wordSize&&(e=(0,n.zo)([this._padding.slice(e.length%this.wordSize),e])),e}writeValue(t){return this._writeData(this._getValue(t))}writeUpdatableValue(){let t=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,e=>{this._data[t]=this._getValue(e)}}}class c{constructor(t,e,r,i){(0,f.zG)(this,"_data",(0,n.lE)(t)),(0,f.zG)(this,"wordSize",e||32),(0,f.zG)(this,"_coerceFunc",r),(0,f.zG)(this,"allowLoose",i),this._offset=0}get data(){return(0,n.Dv)(this._data)}get consumed(){return this._offset}static coerce(t,e){let r=t.match("^u?int([0-9]+)$");return r&&48>=parseInt(r[1])&&(e=e.toNumber()),e}coerce(t,e){return this._coerceFunc?this._coerceFunc(t,e):c.coerce(t,e)}_peekBytes(t,e,r){let n=Math.ceil(e/this.wordSize)*this.wordSize;return this._offset+n>this._data.length&&(this.allowLoose&&r&&this._offset+e<=this._data.length?n=e:s.throwError("data out-of-bounds",o.Yd.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+n})),this._data.slice(this._offset,this._offset+n)}subReader(t){return new c(this._data.slice(this._offset+t),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(t,e){let r=this._peekBytes(0,t,!!e);return this._offset+=r.length,r.slice(0,t)}readValue(){return i.O$.from(this.readBytes(this.wordSize))}}},63691:function(t,e,r){"use strict";r.d(e,{HY:function(){return b},IC:function(){return _},QV:function(){return y},Xg:function(){return E},YW:function(){return A},_R:function(){return m},pc:function(){return d}});var n=r(37010),i=r(13350),f=r(46204),o=r(22965);let a=new f.Yd(o.i),s={},u={calldata:!0,memory:!0,storage:!0},l={calldata:!0,memory:!0};function h(t,e){if("bytes"===t||"string"===t){if(u[e])return!0}else if("address"===t){if("payable"===e)return!0}else if((t.indexOf("[")>=0||"tuple"===t)&&l[e])return!0;return(u[e]||"payable"===e)&&a.throwArgumentError("invalid modifier","name",e),!1}function c(t,e){for(let r in e)(0,i.zG)(t,r,e[r])}let d=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),p=new RegExp(/^(.*)\[([0-9]*)\]$/);class m{constructor(t,e){t!==s&&a.throwError("use fromString",f.Yd.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),c(this,e);let r=this.type.match(p);r?c(this,{arrayLength:parseInt(r[2]||"-1"),arrayChildren:m.fromObject({type:r[1],components:this.components}),baseType:"array"}):c(this,{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}format(t){if(t||(t=d.sighash),d[t]||a.throwArgumentError("invalid format type","format",t),t===d.json){let e={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"==typeof this.indexed&&(e.indexed=this.indexed),this.components&&(e.components=this.components.map(e=>JSON.parse(e.format(t)))),JSON.stringify(e)}let e="";return"array"===this.baseType?e+=this.arrayChildren.format(t)+"["+(this.arrayLength<0?"":String(this.arrayLength))+"]":"tuple"===this.baseType?(t!==d.sighash&&(e+=this.type),e+="("+this.components.map(e=>e.format(t)).join(t===d.full?", ":",")+")"):e+=this.type,t!==d.sighash&&(!0===this.indexed&&(e+=" indexed"),t===d.full&&this.name&&(e+=" "+this.name)),e}static from(t,e){return"string"==typeof t?m.fromString(t,e):m.fromObject(t)}static fromObject(t){return m.isParamType(t)?t:new m(s,{name:t.name||null,type:N(t.type),indexed:null==t.indexed?null:!!t.indexed,components:t.components?t.components.map(m.fromObject):null})}static fromString(t,e){var r;return r=function(t,e){let r=t;function n(e){a.throwArgumentError(`unexpected character at position ${e}`,"param",t)}function i(t){let r={type:"",name:"",parent:t,state:{allowType:!0}};return e&&(r.indexed=!1),r}t=t.replace(/\s/g," ");let f={type:"",name:"",state:{allowType:!0}},o=f;for(let r=0;r<t.length;r++){let f=t[r];switch(f){case"(":o.state.allowType&&""===o.type?o.type="tuple":o.state.allowParams||n(r),o.state.allowType=!1,o.type=N(o.type),o.components=[i(o)],o=o.components[0];break;case")":delete o.state,"indexed"===o.name&&(e||n(r),o.indexed=!0,o.name=""),h(o.type,o.name)&&(o.name=""),o.type=N(o.type);let a=o;(o=o.parent)||n(r),delete a.parent,o.state.allowParams=!1,o.state.allowName=!0,o.state.allowArray=!0;break;case",":delete o.state,"indexed"===o.name&&(e||n(r),o.indexed=!0,o.name=""),h(o.type,o.name)&&(o.name=""),o.type=N(o.type);let s=i(o.parent);o.parent.components.push(s),delete o.parent,o=s;break;case" ":o.state.allowType&&""!==o.type&&(o.type=N(o.type),delete o.state.allowType,o.state.allowName=!0,o.state.allowParams=!0),o.state.allowName&&""!==o.name&&("indexed"===o.name?(e||n(r),o.indexed&&n(r),o.indexed=!0,o.name=""):h(o.type,o.name)?o.name="":o.state.allowName=!1);break;case"[":o.state.allowArray||n(r),o.type+=f,o.state.allowArray=!1,o.state.allowName=!1,o.state.readArray=!0;break;case"]":o.state.readArray||n(r),o.type+=f,o.state.readArray=!1,o.state.allowArray=!0,o.state.allowName=!0;break;default:o.state.allowType?(o.type+=f,o.state.allowParams=!0,o.state.allowArray=!0):o.state.allowName?(o.name+=f,delete o.state.allowArray):o.state.readArray?o.type+=f:n(r)}}return o.parent&&a.throwArgumentError("unexpected eof","param",t),delete f.state,"indexed"===o.name?(e||n(r.length-7),o.indexed&&n(r.length-7),o.indexed=!0,o.name=""):h(o.type,o.name)&&(o.name=""),f.type=N(f.type),f}(t,!!e),m.fromObject({name:r.name,type:r.type,indexed:r.indexed,components:r.components})}static isParamType(t){return!!(null!=t&&t._isParamType)}}function g(t,e){return(function(t){t=t.trim();let e=[],r="",n=0;for(let i=0;i<t.length;i++){let f=t[i];","===f&&0===n?(e.push(r),r=""):(r+=f,"("===f?n++:")"===f&&-1==--n&&a.throwArgumentError("unbalanced parenthesis","value",t))}return r&&e.push(r),e})(t).map(t=>m.fromString(t,e))}class b{constructor(t,e){t!==s&&a.throwError("use a static from method",f.Yd.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),c(this,e),this._isFragment=!0,Object.freeze(this)}static from(t){return b.isFragment(t)?t:"string"==typeof t?b.fromString(t):b.fromObject(t)}static fromObject(t){if(b.isFragment(t))return t;switch(t.type){case"function":return A.fromObject(t);case"event":return y.fromObject(t);case"constructor":return E.fromObject(t);case"error":return _.fromObject(t);case"fallback":case"receive":return null}return a.throwArgumentError("invalid fragment object","value",t)}static fromString(t){return"event"===(t=(t=(t=t.replace(/\s/g," ")).replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," ")).trim()).split(" ")[0]?y.fromString(t.substring(5).trim()):"function"===t.split(" ")[0]?A.fromString(t.substring(8).trim()):"constructor"===t.split("(")[0].trim()?E.fromString(t.trim()):"error"===t.split(" ")[0]?_.fromString(t.substring(5).trim()):a.throwArgumentError("unsupported fragment","value",t)}static isFragment(t){return!!(t&&t._isFragment)}}class y extends b{format(t){if(t||(t=d.sighash),d[t]||a.throwArgumentError("invalid format type","format",t),t===d.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(e=>JSON.parse(e.format(t)))});let e="";return t!==d.sighash&&(e+="event "),e+=this.name+"("+this.inputs.map(e=>e.format(t)).join(t===d.full?", ":",")+") ",t!==d.sighash&&this.anonymous&&(e+="anonymous "),e.trim()}static from(t){return"string"==typeof t?y.fromString(t):y.fromObject(t)}static fromObject(t){return y.isEventFragment(t)?t:("event"!==t.type&&a.throwArgumentError("invalid event object","value",t),new y(s,{name:R(t.name),anonymous:t.anonymous,inputs:t.inputs?t.inputs.map(m.fromObject):[],type:"event"}))}static fromString(t){let e=t.match(C);e||a.throwArgumentError("invalid event string","value",t);let r=!1;return e[3].split(" ").forEach(t=>{switch(t.trim()){case"anonymous":r=!0;break;case"":break;default:a.warn("unknown modifier: "+t)}}),y.fromObject({name:e[1].trim(),anonymous:r,inputs:g(e[2],!0),type:"event"})}static isEventFragment(t){return t&&t._isFragment&&"event"===t.type}}function v(t,e){e.gas=null;let r=t.split("@");return 1!==r.length?(r.length>2&&a.throwArgumentError("invalid human-readable ABI signature","value",t),r[1].match(/^[0-9]+$/)||a.throwArgumentError("invalid human-readable ABI signature gas","value",t),e.gas=n.O$.from(r[1]),r[0]):t}function w(t,e){e.constant=!1,e.payable=!1,e.stateMutability="nonpayable",t.split(" ").forEach(t=>{switch(t.trim()){case"constant":e.constant=!0;break;case"payable":e.payable=!0,e.stateMutability="payable";break;case"nonpayable":e.payable=!1,e.stateMutability="nonpayable";break;case"pure":e.constant=!0,e.stateMutability="pure";break;case"view":e.constant=!0,e.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+t)}})}function M(t){let e={constant:!1,payable:!0,stateMutability:"payable"};return null!=t.stateMutability?(e.stateMutability=t.stateMutability,e.constant="view"===e.stateMutability||"pure"===e.stateMutability,null!=t.constant&&!!t.constant!==e.constant&&a.throwArgumentError("cannot have constant function with mutability "+e.stateMutability,"value",t),e.payable="payable"===e.stateMutability,null!=t.payable&&!!t.payable!==e.payable&&a.throwArgumentError("cannot have payable function with mutability "+e.stateMutability,"value",t)):null!=t.payable?(e.payable=!!t.payable,null!=t.constant||e.payable||"constructor"===t.type||a.throwArgumentError("unable to determine stateMutability","value",t),e.constant=!!t.constant,e.constant?e.stateMutability="view":e.stateMutability=e.payable?"payable":"nonpayable",e.payable&&e.constant&&a.throwArgumentError("cannot have constant payable function","value",t)):null!=t.constant?(e.constant=!!t.constant,e.payable=!e.constant,e.stateMutability=e.constant?"view":"payable"):"constructor"!==t.type&&a.throwArgumentError("unable to determine stateMutability","value",t),e}class E extends b{format(t){if(t||(t=d.sighash),d[t]||a.throwArgumentError("invalid format type","format",t),t===d.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(e=>JSON.parse(e.format(t)))});t===d.sighash&&a.throwError("cannot format a constructor for sighash",f.Yd.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let e="constructor("+this.inputs.map(e=>e.format(t)).join(t===d.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(e+=this.stateMutability+" "),e.trim()}static from(t){return"string"==typeof t?E.fromString(t):E.fromObject(t)}static fromObject(t){if(E.isConstructorFragment(t))return t;"constructor"!==t.type&&a.throwArgumentError("invalid constructor object","value",t);let e=M(t);return e.constant&&a.throwArgumentError("constructor cannot be constant","value",t),new E(s,{name:null,type:t.type,inputs:t.inputs?t.inputs.map(m.fromObject):[],payable:e.payable,stateMutability:e.stateMutability,gas:t.gas?n.O$.from(t.gas):null})}static fromString(t){let e={type:"constructor"},r=(t=v(t,e)).match(C);return r&&"constructor"===r[1].trim()||a.throwArgumentError("invalid constructor string","value",t),e.inputs=g(r[2].trim(),!1),w(r[3].trim(),e),E.fromObject(e)}static isConstructorFragment(t){return t&&t._isFragment&&"constructor"===t.type}}class A extends E{format(t){if(t||(t=d.sighash),d[t]||a.throwArgumentError("invalid format type","format",t),t===d.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(e=>JSON.parse(e.format(t))),outputs:this.outputs.map(e=>JSON.parse(e.format(t)))});let e="";return t!==d.sighash&&(e+="function "),e+=this.name+"("+this.inputs.map(e=>e.format(t)).join(t===d.full?", ":",")+") ",t!==d.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(e+=this.stateMutability+" "):this.constant&&(e+="view "),this.outputs&&this.outputs.length&&(e+="returns ("+this.outputs.map(e=>e.format(t)).join(", ")+") "),null!=this.gas&&(e+="@"+this.gas.toString()+" ")),e.trim()}static from(t){return"string"==typeof t?A.fromString(t):A.fromObject(t)}static fromObject(t){if(A.isFunctionFragment(t))return t;"function"!==t.type&&a.throwArgumentError("invalid function object","value",t);let e=M(t);return new A(s,{type:t.type,name:R(t.name),constant:e.constant,inputs:t.inputs?t.inputs.map(m.fromObject):[],outputs:t.outputs?t.outputs.map(m.fromObject):[],payable:e.payable,stateMutability:e.stateMutability,gas:t.gas?n.O$.from(t.gas):null})}static fromString(t){let e={type:"function"},r=(t=v(t,e)).split(" returns ");r.length>2&&a.throwArgumentError("invalid function string","value",t);let n=r[0].match(C);if(n||a.throwArgumentError("invalid function signature","value",t),e.name=n[1].trim(),e.name&&R(e.name),e.inputs=g(n[2],!1),w(n[3].trim(),e),r.length>1){let n=r[1].match(C);(""!=n[1].trim()||""!=n[3].trim())&&a.throwArgumentError("unexpected tokens","value",t),e.outputs=g(n[2],!1)}else e.outputs=[];return A.fromObject(e)}static isFunctionFragment(t){return t&&t._isFragment&&"function"===t.type}}function S(t){let e=t.format();return("Error(string)"===e||"Panic(uint256)"===e)&&a.throwArgumentError(`cannot specify user defined ${e} error`,"fragment",t),t}class _ extends b{format(t){if(t||(t=d.sighash),d[t]||a.throwArgumentError("invalid format type","format",t),t===d.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(e=>JSON.parse(e.format(t)))});let e="";return t!==d.sighash&&(e+="error "),(e+=this.name+"("+this.inputs.map(e=>e.format(t)).join(t===d.full?", ":",")+") ").trim()}static from(t){return"string"==typeof t?_.fromString(t):_.fromObject(t)}static fromObject(t){return _.isErrorFragment(t)?t:("error"!==t.type&&a.throwArgumentError("invalid error object","value",t),S(new _(s,{type:t.type,name:R(t.name),inputs:t.inputs?t.inputs.map(m.fromObject):[]})))}static fromString(t){let e={type:"error"},r=t.match(C);return r||a.throwArgumentError("invalid error signature","value",t),e.name=r[1].trim(),e.name&&R(e.name),e.inputs=g(r[2],!1),S(_.fromObject(e))}static isErrorFragment(t){return t&&t._isFragment&&"error"===t.type}}function N(t){return t.match(/^uint($|[^1-9])/)?t="uint256"+t.substring(4):t.match(/^int($|[^1-9])/)&&(t="int256"+t.substring(3)),t}let T=RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function R(t){return t&&t.match(T)||a.throwArgumentError(`invalid identifier "${t}"`,"value",t),t}let C=RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$")},73723:function(t,e,r){"use strict";r.r(e),r.d(e,{AbiCoder:function(){return i.R},ConstructorFragment:function(){return n.Xg},ErrorFragment:function(){return n.IC},EventFragment:function(){return n.QV},FormatTypes:function(){return n.pc},Fragment:function(){return n.HY},FunctionFragment:function(){return n.YW},Indexed:function(){return f.Hk},Interface:function(){return f.vU},LogDescription:function(){return f.CC},ParamType:function(){return n._R},TransactionDescription:function(){return f.vk},checkResultErrors:function(){return o.BR},defaultAbiCoder:function(){return i.$}});var n=r(63691),i=r(25263),f=r(35654),o=r(36280)},35654:function(t,e,r){"use strict";r.d(e,{Hk:function(){return y},vU:function(){return M},CC:function(){return m},vk:function(){return g}});var n=r(16536),i=r(37010),f=r(8999),o=r(60279),a=r(63243);function s(t){return(0,o.w)((0,a.Y0)(t))}var u=r(13350),l=r(25263),h=r(63691),c=r(46204),d=r(22965);let p=new c.Yd(d.i);class m extends u.dk{}class g extends u.dk{}class b extends u.dk{}class y extends u.dk{static isIndexed(t){return!!(t&&t._isIndexed)}}let v={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function w(t,e){let r=Error(`deferred error during ABI decoding triggered accessing ${t}`);return r.error=e,r}class M{constructor(t){p.checkNew(new.target,M);let e=[];e="string"==typeof t?JSON.parse(t):t,(0,u.zG)(this,"fragments",e.map(t=>h.HY.from(t)).filter(t=>null!=t)),(0,u.zG)(this,"_abiCoder",(0,u.tu)(new.target,"getAbiCoder")()),(0,u.zG)(this,"functions",{}),(0,u.zG)(this,"errors",{}),(0,u.zG)(this,"events",{}),(0,u.zG)(this,"structs",{}),this.fragments.forEach(t=>{let e=null;switch(t.type){case"constructor":if(this.deploy){p.warn("duplicate definition - constructor");return}(0,u.zG)(this,"deploy",t);return;case"function":e=this.functions;break;case"event":e=this.events;break;case"error":e=this.errors;break;default:return}let r=t.format();if(e[r]){p.warn("duplicate definition - "+r);return}e[r]=t}),this.deploy||(0,u.zG)(this,"deploy",h.Xg.from({payable:!1,type:"constructor"})),(0,u.zG)(this,"_isInterface",!0)}format(t){t||(t=h.pc.full),t===h.pc.sighash&&p.throwArgumentError("interface does not support formatting sighash","format",t);let e=this.fragments.map(e=>e.format(t));return t===h.pc.json?JSON.stringify(e.map(t=>JSON.parse(t))):e}static getAbiCoder(){return l.$}static getAddress(t){return(0,n.Kn)(t)}static getSighash(t){return(0,f.p3)(s(t.format()),0,4)}static getEventTopic(t){return s(t.format())}getFunction(t){if((0,f.A7)(t)){for(let e in this.functions)if(t===this.getSighash(e))return this.functions[e];p.throwArgumentError("no matching function","sighash",t)}if(-1===t.indexOf("(")){let e=t.trim(),r=Object.keys(this.functions).filter(t=>t.split("(")[0]===e);return 0===r.length?p.throwArgumentError("no matching function","name",e):r.length>1&&p.throwArgumentError("multiple matching functions","name",e),this.functions[r[0]]}let e=this.functions[h.YW.fromString(t).format()];return e||p.throwArgumentError("no matching function","signature",t),e}getEvent(t){if((0,f.A7)(t)){let e=t.toLowerCase();for(let t in this.events)if(e===this.getEventTopic(t))return this.events[t];p.throwArgumentError("no matching event","topichash",e)}if(-1===t.indexOf("(")){let e=t.trim(),r=Object.keys(this.events).filter(t=>t.split("(")[0]===e);return 0===r.length?p.throwArgumentError("no matching event","name",e):r.length>1&&p.throwArgumentError("multiple matching events","name",e),this.events[r[0]]}let e=this.events[h.QV.fromString(t).format()];return e||p.throwArgumentError("no matching event","signature",t),e}getError(t){if((0,f.A7)(t)){let e=(0,u.tu)(this.constructor,"getSighash");for(let r in this.errors)if(t===e(this.errors[r]))return this.errors[r];p.throwArgumentError("no matching error","sighash",t)}if(-1===t.indexOf("(")){let e=t.trim(),r=Object.keys(this.errors).filter(t=>t.split("(")[0]===e);return 0===r.length?p.throwArgumentError("no matching error","name",e):r.length>1&&p.throwArgumentError("multiple matching errors","name",e),this.errors[r[0]]}let e=this.errors[h.YW.fromString(t).format()];return e||p.throwArgumentError("no matching error","signature",t),e}getSighash(t){if("string"==typeof t)try{t=this.getFunction(t)}catch(e){try{t=this.getError(t)}catch(t){throw e}}return(0,u.tu)(this.constructor,"getSighash")(t)}getEventTopic(t){return"string"==typeof t&&(t=this.getEvent(t)),(0,u.tu)(this.constructor,"getEventTopic")(t)}_decodeParams(t,e){return this._abiCoder.decode(t,e)}_encodeParams(t,e){return this._abiCoder.encode(t,e)}encodeDeploy(t){return this._encodeParams(this.deploy.inputs,t||[])}decodeErrorResult(t,e){"string"==typeof t&&(t=this.getError(t));let r=(0,f.lE)(e);return(0,f.Dv)(r.slice(0,4))!==this.getSighash(t)&&p.throwArgumentError(`data signature does not match error ${t.name}.`,"data",(0,f.Dv)(r)),this._decodeParams(t.inputs,r.slice(4))}encodeErrorResult(t,e){return"string"==typeof t&&(t=this.getError(t)),(0,f.Dv)((0,f.zo)([this.getSighash(t),this._encodeParams(t.inputs,e||[])]))}decodeFunctionData(t,e){"string"==typeof t&&(t=this.getFunction(t));let r=(0,f.lE)(e);return(0,f.Dv)(r.slice(0,4))!==this.getSighash(t)&&p.throwArgumentError(`data signature does not match function ${t.name}.`,"data",(0,f.Dv)(r)),this._decodeParams(t.inputs,r.slice(4))}encodeFunctionData(t,e){return"string"==typeof t&&(t=this.getFunction(t)),(0,f.Dv)((0,f.zo)([this.getSighash(t),this._encodeParams(t.inputs,e||[])]))}decodeFunctionResult(t,e){"string"==typeof t&&(t=this.getFunction(t));let r=(0,f.lE)(e),n=null,i=null,o=null,a=null;switch(r.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(t.outputs,r)}catch(t){}break;case 4:{let t=(0,f.Dv)(r.slice(0,4)),e=v[t];if(e)i=this._abiCoder.decode(e.inputs,r.slice(4)),o=e.name,a=e.signature,e.reason&&(n=i[0]);else try{let e=this.getError(t);i=this._abiCoder.decode(e.inputs,r.slice(4)),o=e.name,a=e.format()}catch(t){console.log(t)}}}return p.throwError("call revert exception",c.Yd.errors.CALL_EXCEPTION,{method:t.format(),errorArgs:i,errorName:o,errorSignature:a,reason:n})}encodeFunctionResult(t,e){return"string"==typeof t&&(t=this.getFunction(t)),(0,f.Dv)(this._abiCoder.encode(t.outputs,e||[]))}encodeFilterTopics(t,e){"string"==typeof t&&(t=this.getEvent(t)),e.length>t.inputs.length&&p.throwError("too many arguments for "+t.format(),c.Yd.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:e});let r=[];t.anonymous||r.push(this.getEventTopic(t));let n=(t,e)=>"string"===t.type?s(e):"bytes"===t.type?(0,o.w)((0,f.Dv)(e)):("address"===t.type&&this._abiCoder.encode(["address"],[e]),(0,f.$m)((0,f.Dv)(e),32));for(e.forEach((e,i)=>{let f=t.inputs[i];if(!f.indexed){null!=e&&p.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+f.name,e);return}null==e?r.push(null):"array"===f.baseType||"tuple"===f.baseType?p.throwArgumentError("filtering with tuples or arrays not supported","contract."+f.name,e):Array.isArray(e)?r.push(e.map(t=>n(f,t))):r.push(n(f,e))});r.length&&null===r[r.length-1];)r.pop();return r}encodeEventLog(t,e){"string"==typeof t&&(t=this.getEvent(t));let r=[],n=[],i=[];return t.anonymous||r.push(this.getEventTopic(t)),e.length!==t.inputs.length&&p.throwArgumentError("event arguments/values mismatch","values",e),t.inputs.forEach((t,f)=>{let a=e[f];if(t.indexed){if("string"===t.type)r.push(s(a));else if("bytes"===t.type)r.push((0,o.w)(a));else if("tuple"===t.baseType||"array"===t.baseType)throw Error("not implemented");else r.push(this._abiCoder.encode([t.type],[a]))}else n.push(t),i.push(a)}),{data:this._abiCoder.encode(n,i),topics:r}}decodeEventLog(t,e,r){if("string"==typeof t&&(t=this.getEvent(t)),null!=r&&!t.anonymous){let e=this.getEventTopic(t);(0,f.A7)(r[0],32)&&r[0].toLowerCase()===e||p.throwError("fragment/topic mismatch",c.Yd.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:e,value:r[0]}),r=r.slice(1)}let n=[],i=[],o=[];t.inputs.forEach((t,e)=>{t.indexed?"string"===t.type||"bytes"===t.type||"tuple"===t.baseType||"array"===t.baseType?(n.push(h._R.fromObject({type:"bytes32",name:t.name})),o.push(!0)):(n.push(t),o.push(!1)):(i.push(t),o.push(!1))});let a=null!=r?this._abiCoder.decode(n,(0,f.zo)(r)):null,s=this._abiCoder.decode(i,e,!0),u=[],l=0,d=0;t.inputs.forEach((t,e)=>{if(t.indexed){if(null==a)u[e]=new y({_isIndexed:!0,hash:null});else if(o[e])u[e]=new y({_isIndexed:!0,hash:a[d++]});else try{u[e]=a[d++]}catch(t){u[e]=t}}else try{u[e]=s[l++]}catch(t){u[e]=t}if(t.name&&null==u[t.name]){let r=u[e];r instanceof Error?Object.defineProperty(u,t.name,{enumerable:!0,get:()=>{throw w(`property ${JSON.stringify(t.name)}`,r)}}):u[t.name]=r}});for(let t=0;t<u.length;t++){let e=u[t];e instanceof Error&&Object.defineProperty(u,t,{enumerable:!0,get:()=>{throw w(`index ${t}`,e)}})}return Object.freeze(u)}parseTransaction(t){let e=this.getFunction(t.data.substring(0,10).toLowerCase());return e?new g({args:this._abiCoder.decode(e.inputs,"0x"+t.data.substring(10)),functionFragment:e,name:e.name,signature:e.format(),sighash:this.getSighash(e),value:i.O$.from(t.value||"0")}):null}parseLog(t){let e=this.getEvent(t.topics[0]);return!e||e.anonymous?null:new m({eventFragment:e,name:e.name,signature:e.format(),topic:this.getEventTopic(e),args:this.decodeEventLog(e,t.data,t.topics)})}parseError(t){let e=(0,f.Dv)(t),r=this.getError(e.substring(0,10).toLowerCase());return r?new b({args:this._abiCoder.decode(r.inputs,"0x"+e.substring(10)),errorFragment:r,name:r.name,signature:r.format(),sighash:this.getSighash(r)}):null}static isInterface(t){return!!(t&&t._isInterface)}}},16536:function(t,e,r){"use strict";r.d(e,{Kn:function(){return l}});var n=r(8999),i=r(37010),f=r(60279);let o=new(r(46204)).Yd("address/5.7.0");function a(t){(0,n.A7)(t,20)||o.throwArgumentError("invalid address","address",t);let e=(t=t.toLowerCase()).substring(2).split(""),r=new Uint8Array(40);for(let t=0;t<40;t++)r[t]=e[t].charCodeAt(0);let i=(0,n.lE)((0,f.w)(r));for(let t=0;t<40;t+=2)i[t>>1]>>4>=8&&(e[t]=e[t].toUpperCase()),(15&i[t>>1])>=8&&(e[t+1]=e[t+1].toUpperCase());return"0x"+e.join("")}let s={};for(let t=0;t<10;t++)s[String(t)]=String(t);for(let t=0;t<26;t++)s[String.fromCharCode(65+t)]=String(10+t);let u=Math.floor(Math.log10?Math.log10(9007199254740991):Math.log(9007199254740991)/Math.LN10);function l(t){let e=null;if("string"!=typeof t&&o.throwArgumentError("invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==t.substring(0,2)&&(t="0x"+t),e=a(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&o.throwArgumentError("bad address checksum","address",t);else if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(t.substring(2,4)!==function(t){let e=(t=(t=t.toUpperCase()).substring(4)+t.substring(0,2)+"00").split("").map(t=>s[t]).join("");for(;e.length>=u;){let t=e.substring(0,u);e=parseInt(t,10)%97+e.substring(t.length)}let r=String(98-parseInt(e,10)%97);for(;r.length<2;)r="0"+r;return r}(t)&&o.throwArgumentError("bad icap checksum","address",t),e=(0,i.g$)(t.substring(4));e.length<40;)e="0"+e;e=a("0x"+e)}else o.throwArgumentError("invalid address","address",t);return e}},37010:function(t,e,r){"use strict";r.d(e,{O$:function(){return h},g$:function(){return g}});var n=r(93225),i=r.n(n),f=r(8999),o=r(46204),a=i().BN;let s=new o.Yd("bignumber/5.7.0"),u={},l=!1;class h{constructor(t,e){t!==u&&s.throwError("cannot call constructor directly; use BigNumber.from",o.Yd.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=e,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return d(p(this).fromTwos(t))}toTwos(t){return d(p(this).toTwos(t))}abs(){return"-"===this._hex[0]?h.from(this._hex.substring(1)):this}add(t){return d(p(this).add(p(t)))}sub(t){return d(p(this).sub(p(t)))}div(t){return h.from(t).isZero()&&m("division-by-zero","div"),d(p(this).div(p(t)))}mul(t){return d(p(this).mul(p(t)))}mod(t){let e=p(t);return e.isNeg()&&m("division-by-zero","mod"),d(p(this).umod(e))}pow(t){let e=p(t);return e.isNeg()&&m("negative-power","pow"),d(p(this).pow(e))}and(t){let e=p(t);return(this.isNegative()||e.isNeg())&&m("unbound-bitwise-result","and"),d(p(this).and(e))}or(t){let e=p(t);return(this.isNegative()||e.isNeg())&&m("unbound-bitwise-result","or"),d(p(this).or(e))}xor(t){let e=p(t);return(this.isNegative()||e.isNeg())&&m("unbound-bitwise-result","xor"),d(p(this).xor(e))}mask(t){return(this.isNegative()||t<0)&&m("negative-width","mask"),d(p(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&m("negative-width","shl"),d(p(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&m("negative-width","shr"),d(p(this).shrn(t))}eq(t){return p(this).eq(p(t))}lt(t){return p(this).lt(p(t))}lte(t){return p(this).lte(p(t))}gt(t){return p(this).gt(p(t))}gte(t){return p(this).gte(p(t))}isNegative(){return"-"===this._hex[0]}isZero(){return p(this).isZero()}toNumber(){try{return p(this).toNumber()}catch(t){m("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(t){}return s.throwError("this platform does not support BigInt",o.Yd.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?l||(l=!0,s.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?s.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",o.Yd.errors.UNEXPECTED_ARGUMENT,{}):s.throwError("BigNumber.toString does not accept parameters",o.Yd.errors.UNEXPECTED_ARGUMENT,{})),p(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof h)return t;if("string"==typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new h(u,c(t)):t.match(/^-?[0-9]+$/)?new h(u,c(new a(t))):s.throwArgumentError("invalid BigNumber string","value",t);if("number"==typeof t)return t%1&&m("underflow","BigNumber.from",t),(t>=9007199254740991||t<=-9007199254740991)&&m("overflow","BigNumber.from",t),h.from(String(t));if("bigint"==typeof t)return h.from(t.toString());if((0,f._t)(t))return h.from((0,f.Dv)(t));if(t){if(t.toHexString){let e=t.toHexString();if("string"==typeof e)return h.from(e)}else{let e=t._hex;if(null==e&&"BigNumber"===t.type&&(e=t.hex),"string"==typeof e&&((0,f.A7)(e)||"-"===e[0]&&(0,f.A7)(e.substring(1))))return h.from(e)}}return s.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!!(t&&t._isBigNumber)}}function c(t){if("string"!=typeof t)return c(t.toString(16));if("-"===t[0])return("-"===(t=t.substring(1))[0]&&s.throwArgumentError("invalid hex","value",t),"0x00"===(t=c(t)))?t:"-"+t;if("0x"!==t.substring(0,2)&&(t="0x"+t),"0x"===t)return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&"0x00"===t.substring(0,4);)t="0x"+t.substring(4);return t}function d(t){return h.from(c(t))}function p(t){let e=h.from(t).toHexString();return"-"===e[0]?new a("-"+e.substring(3),16):new a(e.substring(2),16)}function m(t,e,r){let n={fault:t,operation:e};return null!=r&&(n.value=r),s.throwError(t,o.Yd.errors.NUMERIC_FAULT,n)}function g(t){return new a(t,36).toString(16)}},8999:function(t,e,r){"use strict";r.d(e,{lE:function(){return s},zo:function(){return u},xs:function(){return p},p3:function(){return d},$m:function(){return m},Dv:function(){return c},_t:function(){return a},A7:function(){return l}});let n=new(r(46204)).Yd("bytes/5.7.0");function i(t){return!!t.toHexString}function f(t){return t.slice||(t.slice=function(){let e=Array.prototype.slice.call(arguments);return f(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function o(t){return"number"==typeof t&&t==t&&t%1==0}function a(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"==typeof t||!o(t.length)||t.length<0)return!1;for(let e=0;e<t.length;e++){let r=t[e];if(!o(r)||r<0||r>=256)return!1}return!0}function s(t,e){if(e||(e={}),"number"==typeof t){n.checkSafeUint53(t,"invalid arrayify value");let e=[];for(;t;)e.unshift(255&t),t=parseInt(String(t/256));return 0===e.length&&e.push(0),f(new Uint8Array(e))}if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),i(t)&&(t=t.toHexString()),l(t)){let r=t.substring(2);r.length%2&&("left"===e.hexPad?r="0"+r:"right"===e.hexPad?r+="0":n.throwArgumentError("hex data is odd-length","value",t));let i=[];for(let t=0;t<r.length;t+=2)i.push(parseInt(r.substring(t,t+2),16));return f(new Uint8Array(i))}return a(t)?f(new Uint8Array(t)):n.throwArgumentError("invalid arrayify value","value",t)}function u(t){let e=t.map(t=>s(t)),r=new Uint8Array(e.reduce((t,e)=>t+e.length,0));return e.reduce((t,e)=>(r.set(e,t),t+e.length),0),f(r)}function l(t,e){return"string"==typeof t&&!!t.match(/^0x[0-9A-Fa-f]*$/)&&(!e||t.length===2+2*e)}let h="0123456789abcdef";function c(t,e){if(e||(e={}),"number"==typeof t){n.checkSafeUint53(t,"invalid hexlify value");let e="";for(;t;)e=h[15&t]+e,t=Math.floor(t/16);return e.length?(e.length%2&&(e="0"+e),"0x"+e):"0x00"}if("bigint"==typeof t)return(t=t.toString(16)).length%2?"0x0"+t:"0x"+t;if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),i(t))return t.toHexString();if(l(t))return t.length%2&&("left"===e.hexPad?t="0x0"+t.substring(2):"right"===e.hexPad?t+="0":n.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(a(t)){let e="0x";for(let r=0;r<t.length;r++){let n=t[r];e+=h[(240&n)>>4]+h[15&n]}return e}return n.throwArgumentError("invalid hexlify value","value",t)}function d(t,e,r){return("string"!=typeof t?t=c(t):(!l(t)||t.length%2)&&n.throwArgumentError("invalid hexData","value",t),e=2+2*e,null!=r)?"0x"+t.substring(e,2+2*r):"0x"+t.substring(e)}function p(t){let e="0x";return t.forEach(t=>{e+=c(t).substring(2)}),e}function m(t,e){for("string"!=typeof t?t=c(t):l(t)||n.throwArgumentError("invalid hex string","value",t),t.length>2*e+2&&n.throwArgumentError("value out of range","value",arguments[1]);t.length<2*e+2;)t="0x0"+t.substring(2);return t}},60279:function(t,e,r){"use strict";r.d(e,{w:function(){return o}});var n=r(86230),i=r.n(n),f=r(8999);function o(t){return"0x"+i().keccak_256((0,f.lE)(t))}},46204:function(t,e,r){"use strict";var n,i,f,o;r.d(e,{Yd:function(){return p}});let a=!1,s=!1,u={debug:1,default:2,info:2,warning:3,error:4,off:5},l=u.default,h=null,c=function(){try{let t=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test"!=="test".normalize(e))throw Error("bad normalize")}catch(r){t.push(e)}}),t.length)throw Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw Error("broken implementation")}catch(t){return t.message}return null}();(f=n||(n={})).DEBUG="DEBUG",f.INFO="INFO",f.WARNING="WARNING",f.ERROR="ERROR",f.OFF="OFF",(o=i||(i={})).UNKNOWN_ERROR="UNKNOWN_ERROR",o.NOT_IMPLEMENTED="NOT_IMPLEMENTED",o.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",o.NETWORK_ERROR="NETWORK_ERROR",o.SERVER_ERROR="SERVER_ERROR",o.TIMEOUT="TIMEOUT",o.BUFFER_OVERRUN="BUFFER_OVERRUN",o.NUMERIC_FAULT="NUMERIC_FAULT",o.MISSING_NEW="MISSING_NEW",o.INVALID_ARGUMENT="INVALID_ARGUMENT",o.MISSING_ARGUMENT="MISSING_ARGUMENT",o.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",o.CALL_EXCEPTION="CALL_EXCEPTION",o.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",o.NONCE_EXPIRED="NONCE_EXPIRED",o.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",o.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",o.TRANSACTION_REPLACED="TRANSACTION_REPLACED",o.ACTION_REJECTED="ACTION_REJECTED";let d="0123456789abcdef";class p{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){let r=t.toLowerCase();null==u[r]&&this.throwArgumentError("invalid log level name","logLevel",t),l>u[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(s)return this.makeError("censored error",e,{});e||(e=p.errors.UNKNOWN_ERROR),r||(r={});let n=[];Object.keys(r).forEach(t=>{let e=r[t];try{if(e instanceof Uint8Array){let r="";for(let t=0;t<e.length;t++)r+=d[e[t]>>4]+d[15&e[t]];n.push(t+"=Uint8Array(0x"+r+")")}else n.push(t+"="+JSON.stringify(e))}catch(e){n.push(t+"="+JSON.stringify(r[t].toString()))}}),n.push(`code=${e}`),n.push(`version=${this.version}`);let f=t,o="";switch(e){case i.NUMERIC_FAULT:{o="NUMERIC_FAULT";let e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":o+="-"+e;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result"}break}case i.CALL_EXCEPTION:case i.INSUFFICIENT_FUNDS:case i.MISSING_NEW:case i.NONCE_EXPIRED:case i.REPLACEMENT_UNDERPRICED:case i.TRANSACTION_REPLACED:case i.UNPREDICTABLE_GAS_LIMIT:o=e}o&&(t+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),n.length&&(t+=" ("+n.join(", ")+")");let a=Error(t);return a.reason=f,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"),c&&this.throwError("platform missing String.prototype.normalize",p.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:c})}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:"",t<e&&this.throwError("missing argument"+r,p.errors.MISSING_ARGUMENT,{count:t,expectedCount:e}),t>e&&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 h||(h=new p("logger/5.7.0")),h}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",p.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),a){if(!t)return;this.globalLogger().throwError("error censorship permanent",p.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}s=!!t,a=!!e}static setLogLevel(t){let e=u[t.toLowerCase()];if(null==e){p.globalLogger().warn("invalid log level - "+t);return}l=e}static from(t){return new p(t)}}p.errors=i,p.levels=n},13350:function(t,e,r){"use strict";r.d(e,{dk:function(){return a},zG:function(){return i},tu:function(){return f}});let n=new(r(46204)).Yd("properties/5.7.0");function i(t,e,r){Object.defineProperty(t,e,{enumerable:!0,value:r,writable:!1})}function f(t,e){for(let r=0;r<32;r++){if(t[e])return t[e];if(!t.prototype||"object"!=typeof t.prototype)break;t=Object.getPrototypeOf(t.prototype).constructor}return null}let o={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};class a{constructor(t){for(let e in t)this[e]=function t(e){return function(e){if(function t(e){if(null==e||o[typeof e])return!0;if(Array.isArray(e)||"object"==typeof e){if(!Object.isFrozen(e))return!1;let r=Object.keys(e);for(let n=0;n<r.length;n++){let i=null;try{i=e[r[n]]}catch(t){continue}if(!t(i))return!1}return!0}return n.throwArgumentError(`Cannot deepCopy ${typeof e}`,"object",e)}(e))return e;if(Array.isArray(e))return Object.freeze(e.map(e=>t(e)));if("object"==typeof e){let r={};for(let n in e){let f=e[n];void 0!==f&&i(r,n,t(f))}return r}return n.throwArgumentError(`Cannot deepCopy ${typeof e}`,"object",e)}(e)}(t[e])}}},63243:function(t,e,r){"use strict";r.d(e,{Y0:function(){return h},ZN:function(){return c}});var n,i,f,o,a=r(8999);let s=new(r(46204)).Yd("strings/5.7.0");function u(t,e,r,n,i){if(t===o.BAD_PREFIX||t===o.UNEXPECTED_CONTINUE){let t=0;for(let n=e+1;n<r.length&&r[n]>>6==2;n++)t++;return t}return t===o.OVERRUN?r.length-e-1:0}(n=f||(f={})).current="",n.NFC="NFC",n.NFD="NFD",n.NFKC="NFKC",n.NFKD="NFKD",(i=o||(o={})).UNEXPECTED_CONTINUE="unexpected continuation byte",i.BAD_PREFIX="bad codepoint prefix",i.OVERRUN="string overrun",i.MISSING_CONTINUE="missing continuation byte",i.OUT_OF_RANGE="out of UTF-8 range",i.UTF16_SURROGATE="UTF-16 surrogate",i.OVERLONG="overlong representation";let l=Object.freeze({error:function(t,e,r,n,i){return s.throwArgumentError(`invalid codepoint at offset ${e}; ${t}`,"bytes",r)},ignore:u,replace:function(t,e,r,n,i){return t===o.OVERLONG?(n.push(i),0):(n.push(65533),u(t,e,r,n,i))}});function h(t,e=f.current){e!=f.current&&(s.checkNormalize(),t=t.normalize(e));let r=[];for(let e=0;e<t.length;e++){let n=t.charCodeAt(e);if(n<128)r.push(n);else if(n<2048)r.push(n>>6|192),r.push(63&n|128);else if((64512&n)==55296){e++;let i=t.charCodeAt(e);if(e>=t.length||(64512&i)!=56320)throw Error("invalid utf-8 string");let f=65536+((1023&n)<<10)+(1023&i);r.push(f>>18|240),r.push(f>>12&63|128),r.push(f>>6&63|128),r.push(63&f|128)}else r.push(n>>12|224),r.push(n>>6&63|128),r.push(63&n|128)}return(0,a.lE)(r)}function c(t,e){return(function(t,e){null==e&&(e=l.error),t=(0,a.lE)(t);let r=[],n=0;for(;n<t.length;){let i=t[n++];if(i>>7==0){r.push(i);continue}let f=null,a=null;if((224&i)==192)f=1,a=127;else if((240&i)==224)f=2,a=2047;else if((248&i)==240)f=3,a=65535;else{(192&i)==128?n+=e(o.UNEXPECTED_CONTINUE,n-1,t,r):n+=e(o.BAD_PREFIX,n-1,t,r);continue}if(n-1+f>=t.length){n+=e(o.OVERRUN,n-1,t,r);continue}let s=i&(1<<8-f-1)-1;for(let i=0;i<f;i++){let i=t[n];if((192&i)!=128){n+=e(o.MISSING_CONTINUE,n,t,r),s=null;break}s=s<<6|63&i,n++}if(null!==s){if(s>1114111){n+=e(o.OUT_OF_RANGE,n-1-f,t,r,s);continue}if(s>=55296&&s<=57343){n+=e(o.UTF16_SURROGATE,n-1-f,t,r,s);continue}if(s<=a){n+=e(o.OVERLONG,n-1-f,t,r,s);continue}r.push(s)}}return r})(t,e).map(t=>t<=65535?String.fromCharCode(t):String.fromCharCode(((t-=65536)>>10&1023)+55296,(1023&t)+56320)).join("")}},93225:function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw 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 f(t,e,r){if(f.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"))}"object"==typeof t?t.exports=f:e.BN=f,f.BN=f,f.wordSize=26;try{h="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(56600).Buffer}catch(t){}function o(t,e){var r=t.charCodeAt(e);return r>=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 a(t,e,r){var n=o(t,r);return r-1>=e&&(n|=o(t,r-1)<<4),n}function s(t,e,r,i){for(var f=0,o=0,a=Math.min(t.length,r),s=e;s<a;s++){var u=t.charCodeAt(s)-48;f*=i,o=u>=49?u-49+10:u>=17?u-17+10:u,n(u>=0&&o<i,"Invalid character"),f+=o}return f}function u(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(f.isBN=function(t){return t instanceof f||null!==t&&"object"==typeof t&&t.constructor.wordSize===f.wordSize&&Array.isArray(t.words)},f.max=function(t,e){return t.cmp(e)>0?t:e},f.min=function(t,e){return 0>t.cmp(e)?t:e},f.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);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},f.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)},f.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=Array(this.length);for(var i,f,o=0;o<this.length;o++)this.words[o]=0;var a=0;if("be"===r)for(o=t.length-1,i=0;o>=0;o-=3)f=t[o]|t[o-1]<<8|t[o-2]<<16,this.words[i]|=f<<a&67108863,this.words[i+1]=f>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);else if("le"===r)for(o=0,i=0;o<t.length;o+=3)f=t[o]|t[o+1]<<8|t[o+2]<<16,this.words[i]|=f<<a&67108863,this.words[i+1]=f>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);return this._strip()},f.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=Array(this.length);for(var n,i=0;i<this.length;i++)this.words[i]=0;var f=0,o=0;if("be"===r)for(i=t.length-1;i>=e;i-=2)n=a(t,e,i)<<f,this.words[o]|=67108863&n,f>=18?(f-=18,o+=1,this.words[o]|=n>>>26):f+=8;else for(i=(t.length-e)%2==0?e+1:e;i<t.length;i+=2)n=a(t,e,i)<<f,this.words[o]|=67108863&n,f>=18?(f-=18,o+=1,this.words[o]|=n>>>26):f+=8;this._strip()},f.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 f=t.length-r,o=f%n,a=Math.min(f,f-o)+r,u=0,l=r;l<a;l+=n)u=s(t,l,l+n,e),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==o){var h=1;for(u=s(t,l,t.length,e),l=0;l<o;l++)h*=e;this.imuln(h),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this._strip()},f.prototype.copy=function(t){t.words=Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},f.prototype._move=function(t){u(t,this)},f.prototype.clone=function(){var t=new f(null);return this.copy(t),t},f.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},f.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},f.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{f.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(t){f.prototype.inspect=l}else f.prototype.inspect=l;function l(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var h,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"],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];function m(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],f=0|e.words[0],o=i*f,a=67108863&o,s=o/67108864|0;r.words[0]=a;for(var u=1;u<n;u++){for(var l=s>>>26,h=67108863&s,c=Math.min(u,e.length-1),d=Math.max(0,u-t.length+1);d<=c;d++){var p=u-d|0;l+=(o=(i=0|t.words[p])*(f=0|e.words[d])+h)/67108864|0,h=67108863&o}r.words[u]=0|h,s=0|l}return 0!==s?r.words[u]=0|s:r.length--,r._strip()}f.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var r,i=0,f=0,o=0;o<this.length;o++){var a=this.words[o],s=((a<<i|f)&16777215).toString(16);f=a>>>24-i&16777215,(i+=2)>=26&&(i-=26,o--),r=0!==f||o!==this.length-1?c[6-s.length]+s+r:s+r}for(0!==f&&(r=f.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var u=d[t],l=p[t];r="";var h=this.clone();for(h.negative=0;!h.isZero();){var m=h.modrn(l).toString(t);r=(h=h.idivn(l)).isZero()?m+r:c[u-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},f.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},f.prototype.toJSON=function(){return this.toString(16,2)},h&&(f.prototype.toBuffer=function(t,e){return this.toArrayLike(h,t,e)}),f.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},f.prototype.toArrayLike=function(t,e,r){this._strip();var i=this.byteLength(),f=r||Math.max(1,i);n(i<=f,"byte array longer than desired length"),n(f>0,"Requested array length <= 0");var o=t.allocUnsafe?t.allocUnsafe(f):new t(f);return this["_toArrayLike"+("le"===e?"LE":"BE")](o,i),o},f.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,i=0,f=0;i<this.length;i++){var o=this.words[i]<<f|n;t[r++]=255&o,r<t.length&&(t[r++]=o>>8&255),r<t.length&&(t[r++]=o>>16&255),6===f?(r<t.length&&(t[r++]=o>>24&255),n=0,f=0):(n=o>>>24,f+=2)}if(r<t.length)for(t[r++]=n;r<t.length;)t[r++]=0},f.prototype._toArrayLikeBE=function(t,e){for(var r=t.length-1,n=0,i=0,f=0;i<this.length;i++){var o=this.words[i]<<f|n;t[r--]=255&o,r>=0&&(t[r--]=o>>8&255),r>=0&&(t[r--]=o>>16&255),6===f?(r>=0&&(t[r--]=o>>24&255),n=0,f=0):(n=o>>>24,f+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?f.prototype._countBits=function(t){return 32-Math.clz32(t)}:f.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},f.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return(8191&e)==0&&(r+=13,e>>>=13),(127&e)==0&&(r+=7,e>>>=7),(15&e)==0&&(r+=4,e>>>=4),(3&e)==0&&(r+=2,e>>>=2),(1&e)==0&&r++,r},f.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return(this.length-1)*26+e},f.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},f.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},f.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},f.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},f.prototype.isNeg=function(){return 0!==this.negative},f.prototype.neg=function(){return this.clone().ineg()},f.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},f.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},f.prototype.ior=function(t){return n((this.negative|t.negative)==0),this.iuor(t)},f.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},f.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},f.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this._strip()},f.prototype.iand=function(t){return n((this.negative|t.negative)==0),this.iuand(t)},f.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},f.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},f.prototype.iuxor=function(t){this.length>t.length?(e=this,r=t):(e=t,r=this);for(var e,r,n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this._strip()},f.prototype.ixor=function(t){return n((this.negative|t.negative)==0),this.iuxor(t)},f.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},f.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},f.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;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},f.prototype.notn=function(t){return this.clone().inotn(t)},f.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),e?this.words[r]=this.words[r]|1<<i:this.words[r]=this.words[r]&~(1<<i),this._strip()},f.prototype.iadd=function(t){if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var e,r,n,i=0,f=0;f<n.length;f++)e=(0|r.words[f])+(0|n.words[f])+i,this.words[f]=67108863&e,i=e>>>26;for(;0!==i&&f<r.length;f++)e=(0|r.words[f])+i,this.words[f]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;f<r.length;f++)this.words[f]=r.words[f];return this},f.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},f.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e,r,n=this.iadd(t);return t.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(e=this,r=t):(e=t,r=this);for(var f=0,o=0;o<r.length;o++)f=(n=(0|e.words[o])-(0|r.words[o])+f)>>26,this.words[o]=67108863&n;for(;0!==f&&o<e.length;o++)f=(n=(0|e.words[o])+f)>>26,this.words[o]=67108863&n;if(0===f&&o<e.length&&e!==this)for(;o<e.length;o++)this.words[o]=e.words[o];return this.length=Math.max(this.length,o),e!==this&&(this.negative=1),this._strip()},f.prototype.sub=function(t){return this.clone().isub(t)};var g=function(t,e,r){var n,i,f,o=t.words,a=e.words,s=r.words,u=0,l=0|o[0],h=8191&l,c=l>>>13,d=0|o[1],p=8191&d,m=d>>>13,g=0|o[2],b=8191&g,y=g>>>13,v=0|o[3],w=8191&v,M=v>>>13,E=0|o[4],A=8191&E,S=E>>>13,_=0|o[5],N=8191&_,T=_>>>13,R=0|o[6],C=8191&R,I=R>>>13,P=0|o[7],O=8191&P,x=P>>>13,k=0|o[8],F=8191&k,B=k>>>13,L=0|o[9],D=8191&L,U=L>>>13,G=0|a[0],z=8191&G,J=G>>>13,j=0|a[1],H=8191&j,V=j>>>13,X=0|a[2],q=8191&X,Z=X>>>13,K=0|a[3],W=8191&K,Y=K>>>13,Q=0|a[4],$=8191&Q,tt=Q>>>13,te=0|a[5],tr=8191&te,tn=te>>>13,ti=0|a[6],tf=8191&ti,to=ti>>>13,ta=0|a[7],ts=8191&ta,tu=ta>>>13,tl=0|a[8],th=8191&tl,tc=tl>>>13,td=0|a[9],tp=8191&td,tm=td>>>13;r.negative=t.negative^e.negative,r.length=19;var tg=(u+(n=Math.imul(h,z))|0)+((8191&(i=(i=Math.imul(h,J))+Math.imul(c,z)|0))<<13)|0;u=((f=Math.imul(c,J))+(i>>>13)|0)+(tg>>>26)|0,tg&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,J))+Math.imul(m,z)|0,f=Math.imul(m,J);var tb=(u+(n=n+Math.imul(h,H)|0)|0)+((8191&(i=(i=i+Math.imul(h,V)|0)+Math.imul(c,H)|0))<<13)|0;u=((f=f+Math.imul(c,V)|0)+(i>>>13)|0)+(tb>>>26)|0,tb&=67108863,n=Math.imul(b,z),i=(i=Math.imul(b,J))+Math.imul(y,z)|0,f=Math.imul(y,J),n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,H)|0,f=f+Math.imul(m,V)|0;var ty=(u+(n=n+Math.imul(h,q)|0)|0)+((8191&(i=(i=i+Math.imul(h,Z)|0)+Math.imul(c,q)|0))<<13)|0;u=((f=f+Math.imul(c,Z)|0)+(i>>>13)|0)+(ty>>>26)|0,ty&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,J))+Math.imul(M,z)|0,f=Math.imul(M,J),n=n+Math.imul(b,H)|0,i=(i=i+Math.imul(b,V)|0)+Math.imul(y,H)|0,f=f+Math.imul(y,V)|0,n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,q)|0,f=f+Math.imul(m,Z)|0;var tv=(u+(n=n+Math.imul(h,W)|0)|0)+((8191&(i=(i=i+Math.imul(h,Y)|0)+Math.imul(c,W)|0))<<13)|0;u=((f=f+Math.imul(c,Y)|0)+(i>>>13)|0)+(tv>>>26)|0,tv&=67108863,n=Math.imul(A,z),i=(i=Math.imul(A,J))+Math.imul(S,z)|0,f=Math.imul(S,J),n=n+Math.imul(w,H)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(M,H)|0,f=f+Math.imul(M,V)|0,n=n+Math.imul(b,q)|0,i=(i=i+Math.imul(b,Z)|0)+Math.imul(y,q)|0,f=f+Math.imul(y,Z)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,W)|0,f=f+Math.imul(m,Y)|0;var tw=(u+(n=n+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(c,$)|0))<<13)|0;u=((f=f+Math.imul(c,tt)|0)+(i>>>13)|0)+(tw>>>26)|0,tw&=67108863,n=Math.imul(N,z),i=(i=Math.imul(N,J))+Math.imul(T,z)|0,f=Math.imul(T,J),n=n+Math.imul(A,H)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(S,H)|0,f=f+Math.imul(S,V)|0,n=n+Math.imul(w,q)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(M,q)|0,f=f+Math.imul(M,Z)|0,n=n+Math.imul(b,W)|0,i=(i=i+Math.imul(b,Y)|0)+Math.imul(y,W)|0,f=f+Math.imul(y,Y)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,$)|0,f=f+Math.imul(m,tt)|0;var tM=(u+(n=n+Math.imul(h,tr)|0)|0)+((8191&(i=(i=i+Math.imul(h,tn)|0)+Math.imul(c,tr)|0))<<13)|0;u=((f=f+Math.imul(c,tn)|0)+(i>>>13)|0)+(tM>>>26)|0,tM&=67108863,n=Math.imul(C,z),i=(i=Math.imul(C,J))+Math.imul(I,z)|0,f=Math.imul(I,J),n=n+Math.imul(N,H)|0,i=(i=i+Math.imul(N,V)|0)+Math.imul(T,H)|0,f=f+Math.imul(T,V)|0,n=n+Math.imul(A,q)|0,i=(i=i+Math.imul(A,Z)|0)+Math.imul(S,q)|0,f=f+Math.imul(S,Z)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(M,W)|0,f=f+Math.imul(M,Y)|0,n=n+Math.imul(b,$)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(y,$)|0,f=f+Math.imul(y,tt)|0,n=n+Math.imul(p,tr)|0,i=(i=i+Math.imul(p,tn)|0)+Math.imul(m,tr)|0,f=f+Math.imul(m,tn)|0;var tE=(u+(n=n+Math.imul(h,tf)|0)|0)+((8191&(i=(i=i+Math.imul(h,to)|0)+Math.imul(c,tf)|0))<<13)|0;u=((f=f+Math.imul(c,to)|0)+(i>>>13)|0)+(tE>>>26)|0,tE&=67108863,n=Math.imul(O,z),i=(i=Math.imul(O,J))+Math.imul(x,z)|0,f=Math.imul(x,J),n=n+Math.imul(C,H)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(I,H)|0,f=f+Math.imul(I,V)|0,n=n+Math.imul(N,q)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(T,q)|0,f=f+Math.imul(T,Z)|0,n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(S,W)|0,f=f+Math.imul(S,Y)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(M,$)|0,f=f+Math.imul(M,tt)|0,n=n+Math.imul(b,tr)|0,i=(i=i+Math.imul(b,tn)|0)+Math.imul(y,tr)|0,f=f+Math.imul(y,tn)|0,n=n+Math.imul(p,tf)|0,i=(i=i+Math.imul(p,to)|0)+Math.imul(m,tf)|0,f=f+Math.imul(m,to)|0;var tA=(u+(n=n+Math.imul(h,ts)|0)|0)+((8191&(i=(i=i+Math.imul(h,tu)|0)+Math.imul(c,ts)|0))<<13)|0;u=((f=f+Math.imul(c,tu)|0)+(i>>>13)|0)+(tA>>>26)|0,tA&=67108863,n=Math.imul(F,z),i=(i=Math.imul(F,J))+Math.imul(B,z)|0,f=Math.imul(B,J),n=n+Math.imul(O,H)|0,i=(i=i+Math.imul(O,V)|0)+Math.imul(x,H)|0,f=f+Math.imul(x,V)|0,n=n+Math.imul(C,q)|0,i=(i=i+Math.imul(C,Z)|0)+Math.imul(I,q)|0,f=f+Math.imul(I,Z)|0,n=n+Math.imul(N,W)|0,i=(i=i+Math.imul(N,Y)|0)+Math.imul(T,W)|0,f=f+Math.imul(T,Y)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(S,$)|0,f=f+Math.imul(S,tt)|0,n=n+Math.imul(w,tr)|0,i=(i=i+Math.imul(w,tn)|0)+Math.imul(M,tr)|0,f=f+Math.imul(M,tn)|0,n=n+Math.imul(b,tf)|0,i=(i=i+Math.imul(b,to)|0)+Math.imul(y,tf)|0,f=f+Math.imul(y,to)|0,n=n+Math.imul(p,ts)|0,i=(i=i+Math.imul(p,tu)|0)+Math.imul(m,ts)|0,f=f+Math.imul(m,tu)|0;var tS=(u+(n=n+Math.imul(h,th)|0)|0)+((8191&(i=(i=i+Math.imul(h,tc)|0)+Math.imul(c,th)|0))<<13)|0;u=((f=f+Math.imul(c,tc)|0)+(i>>>13)|0)+(tS>>>26)|0,tS&=67108863,n=Math.imul(D,z),i=(i=Math.imul(D,J))+Math.imul(U,z)|0,f=Math.imul(U,J),n=n+Math.imul(F,H)|0,i=(i=i+Math.imul(F,V)|0)+Math.imul(B,H)|0,f=f+Math.imul(B,V)|0,n=n+Math.imul(O,q)|0,i=(i=i+Math.imul(O,Z)|0)+Math.imul(x,q)|0,f=f+Math.imul(x,Z)|0,n=n+Math.imul(C,W)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(I,W)|0,f=f+Math.imul(I,Y)|0,n=n+Math.imul(N,$)|0,i=(i=i+Math.imul(N,tt)|0)+Math.imul(T,$)|0,f=f+Math.imul(T,tt)|0,n=n+Math.imul(A,tr)|0,i=(i=i+Math.imul(A,tn)|0)+Math.imul(S,tr)|0,f=f+Math.imul(S,tn)|0,n=n+Math.imul(w,tf)|0,i=(i=i+Math.imul(w,to)|0)+Math.imul(M,tf)|0,f=f+Math.imul(M,to)|0,n=n+Math.imul(b,ts)|0,i=(i=i+Math.imul(b,tu)|0)+Math.imul(y,ts)|0,f=f+Math.imul(y,tu)|0,n=n+Math.imul(p,th)|0,i=(i=i+Math.imul(p,tc)|0)+Math.imul(m,th)|0,f=f+Math.imul(m,tc)|0;var t_=(u+(n=n+Math.imul(h,tp)|0)|0)+((8191&(i=(i=i+Math.imul(h,tm)|0)+Math.imul(c,tp)|0))<<13)|0;u=((f=f+Math.imul(c,tm)|0)+(i>>>13)|0)+(t_>>>26)|0,t_&=67108863,n=Math.imul(D,H),i=(i=Math.imul(D,V))+Math.imul(U,H)|0,f=Math.imul(U,V),n=n+Math.imul(F,q)|0,i=(i=i+Math.imul(F,Z)|0)+Math.imul(B,q)|0,f=f+Math.imul(B,Z)|0,n=n+Math.imul(O,W)|0,i=(i=i+Math.imul(O,Y)|0)+Math.imul(x,W)|0,f=f+Math.imul(x,Y)|0,n=n+Math.imul(C,$)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(I,$)|0,f=f+Math.imul(I,tt)|0,n=n+Math.imul(N,tr)|0,i=(i=i+Math.imul(N,tn)|0)+Math.imul(T,tr)|0,f=f+Math.imul(T,tn)|0,n=n+Math.imul(A,tf)|0,i=(i=i+Math.imul(A,to)|0)+Math.imul(S,tf)|0,f=f+Math.imul(S,to)|0,n=n+Math.imul(w,ts)|0,i=(i=i+Math.imul(w,tu)|0)+Math.imul(M,ts)|0,f=f+Math.imul(M,tu)|0,n=n+Math.imul(b,th)|0,i=(i=i+Math.imul(b,tc)|0)+Math.imul(y,th)|0,f=f+Math.imul(y,tc)|0;var tN=(u+(n=n+Math.imul(p,tp)|0)|0)+((8191&(i=(i=i+Math.imul(p,tm)|0)+Math.imul(m,tp)|0))<<13)|0;u=((f=f+Math.imul(m,tm)|0)+(i>>>13)|0)+(tN>>>26)|0,tN&=67108863,n=Math.imul(D,q),i=(i=Math.imul(D,Z))+Math.imul(U,q)|0,f=Math.imul(U,Z),n=n+Math.imul(F,W)|0,i=(i=i+Math.imul(F,Y)|0)+Math.imul(B,W)|0,f=f+Math.imul(B,Y)|0,n=n+Math.imul(O,$)|0,i=(i=i+Math.imul(O,tt)|0)+Math.imul(x,$)|0,f=f+Math.imul(x,tt)|0,n=n+Math.imul(C,tr)|0,i=(i=i+Math.imul(C,tn)|0)+Math.imul(I,tr)|0,f=f+Math.imul(I,tn)|0,n=n+Math.imul(N,tf)|0,i=(i=i+Math.imul(N,to)|0)+Math.imul(T,tf)|0,f=f+Math.imul(T,to)|0,n=n+Math.imul(A,ts)|0,i=(i=i+Math.imul(A,tu)|0)+Math.imul(S,ts)|0,f=f+Math.imul(S,tu)|0,n=n+Math.imul(w,th)|0,i=(i=i+Math.imul(w,tc)|0)+Math.imul(M,th)|0,f=f+Math.imul(M,tc)|0;var tT=(u+(n=n+Math.imul(b,tp)|0)|0)+((8191&(i=(i=i+Math.imul(b,tm)|0)+Math.imul(y,tp)|0))<<13)|0;u=((f=f+Math.imul(y,tm)|0)+(i>>>13)|0)+(tT>>>26)|0,tT&=67108863,n=Math.imul(D,W),i=(i=Math.imul(D,Y))+Math.imul(U,W)|0,f=Math.imul(U,Y),n=n+Math.imul(F,$)|0,i=(i=i+Math.imul(F,tt)|0)+Math.imul(B,$)|0,f=f+Math.imul(B,tt)|0,n=n+Math.imul(O,tr)|0,i=(i=i+Math.imul(O,tn)|0)+Math.imul(x,tr)|0,f=f+Math.imul(x,tn)|0,n=n+Math.imul(C,tf)|0,i=(i=i+Math.imul(C,to)|0)+Math.imul(I,tf)|0,f=f+Math.imul(I,to)|0,n=n+Math.imul(N,ts)|0,i=(i=i+Math.imul(N,tu)|0)+Math.imul(T,ts)|0,f=f+Math.imul(T,tu)|0,n=n+Math.imul(A,th)|0,i=(i=i+Math.imul(A,tc)|0)+Math.imul(S,th)|0,f=f+Math.imul(S,tc)|0;var tR=(u+(n=n+Math.imul(w,tp)|0)|0)+((8191&(i=(i=i+Math.imul(w,tm)|0)+Math.imul(M,tp)|0))<<13)|0;u=((f=f+Math.imul(M,tm)|0)+(i>>>13)|0)+(tR>>>26)|0,tR&=67108863,n=Math.imul(D,$),i=(i=Math.imul(D,tt))+Math.imul(U,$)|0,f=Math.imul(U,tt),n=n+Math.imul(F,tr)|0,i=(i=i+Math.imul(F,tn)|0)+Math.imul(B,tr)|0,f=f+Math.imul(B,tn)|0,n=n+Math.imul(O,tf)|0,i=(i=i+Math.imul(O,to)|0)+Math.imul(x,tf)|0,f=f+Math.imul(x,to)|0,n=n+Math.imul(C,ts)|0,i=(i=i+Math.imul(C,tu)|0)+Math.imul(I,ts)|0,f=f+Math.imul(I,tu)|0,n=n+Math.imul(N,th)|0,i=(i=i+Math.imul(N,tc)|0)+Math.imul(T,th)|0,f=f+Math.imul(T,tc)|0;var tC=(u+(n=n+Math.imul(A,tp)|0)|0)+((8191&(i=(i=i+Math.imul(A,tm)|0)+Math.imul(S,tp)|0))<<13)|0;u=((f=f+Math.imul(S,tm)|0)+(i>>>13)|0)+(tC>>>26)|0,tC&=67108863,n=Math.imul(D,tr),i=(i=Math.imul(D,tn))+Math.imul(U,tr)|0,f=Math.imul(U,tn),n=n+Math.imul(F,tf)|0,i=(i=i+Math.imul(F,to)|0)+Math.imul(B,tf)|0,f=f+Math.imul(B,to)|0,n=n+Math.imul(O,ts)|0,i=(i=i+Math.imul(O,tu)|0)+Math.imul(x,ts)|0,f=f+Math.imul(x,tu)|0,n=n+Math.imul(C,th)|0,i=(i=i+Math.imul(C,tc)|0)+Math.imul(I,th)|0,f=f+Math.imul(I,tc)|0;var tI=(u+(n=n+Math.imul(N,tp)|0)|0)+((8191&(i=(i=i+Math.imul(N,tm)|0)+Math.imul(T,tp)|0))<<13)|0;u=((f=f+Math.imul(T,tm)|0)+(i>>>13)|0)+(tI>>>26)|0,tI&=67108863,n=Math.imul(D,tf),i=(i=Math.imul(D,to))+Math.imul(U,tf)|0,f=Math.imul(U,to),n=n+Math.imul(F,ts)|0,i=(i=i+Math.imul(F,tu)|0)+Math.imul(B,ts)|0,f=f+Math.imul(B,tu)|0,n=n+Math.imul(O,th)|0,i=(i=i+Math.imul(O,tc)|0)+Math.imul(x,th)|0,f=f+Math.imul(x,tc)|0;var tP=(u+(n=n+Math.imul(C,tp)|0)|0)+((8191&(i=(i=i+Math.imul(C,tm)|0)+Math.imul(I,tp)|0))<<13)|0;u=((f=f+Math.imul(I,tm)|0)+(i>>>13)|0)+(tP>>>26)|0,tP&=67108863,n=Math.imul(D,ts),i=(i=Math.imul(D,tu))+Math.imul(U,ts)|0,f=Math.imul(U,tu),n=n+Math.imul(F,th)|0,i=(i=i+Math.imul(F,tc)|0)+Math.imul(B,th)|0,f=f+Math.imul(B,tc)|0;var tO=(u+(n=n+Math.imul(O,tp)|0)|0)+((8191&(i=(i=i+Math.imul(O,tm)|0)+Math.imul(x,tp)|0))<<13)|0;u=((f=f+Math.imul(x,tm)|0)+(i>>>13)|0)+(tO>>>26)|0,tO&=67108863,n=Math.imul(D,th),i=(i=Math.imul(D,tc))+Math.imul(U,th)|0,f=Math.imul(U,tc);var tx=(u+(n=n+Math.imul(F,tp)|0)|0)+((8191&(i=(i=i+Math.imul(F,tm)|0)+Math.imul(B,tp)|0))<<13)|0;u=((f=f+Math.imul(B,tm)|0)+(i>>>13)|0)+(tx>>>26)|0,tx&=67108863;var tk=(u+(n=Math.imul(D,tp))|0)+((8191&(i=(i=Math.imul(D,tm))+Math.imul(U,tp)|0))<<13)|0;return u=((f=Math.imul(U,tm))+(i>>>13)|0)+(tk>>>26)|0,tk&=67108863,s[0]=tg,s[1]=tb,s[2]=ty,s[3]=tv,s[4]=tw,s[5]=tM,s[6]=tE,s[7]=tA,s[8]=tS,s[9]=t_,s[10]=tN,s[11]=tT,s[12]=tR,s[13]=tC,s[14]=tI,s[15]=tP,s[16]=tO,s[17]=tx,s[18]=tk,0!==u&&(s[19]=u,r.length++),r};function b(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,f=0;f<r.length-1;f++){var o=i;i=0;for(var a=67108863&n,s=Math.min(f,e.length-1),u=Math.max(0,f-t.length+1);u<=s;u++){var l=f-u,h=(0|t.words[l])*(0|e.words[u]),c=67108863&h;o=o+(h/67108864|0)|0,a=67108863&(c=c+a|0),i+=(o=o+(c>>>26)|0)>>>26,o&=67108863}r.words[f]=a,n=o,o=i}return 0!==n?r.words[f]=n:r.length--,r._strip()}function y(t,e){this.x=t,this.y=e}Math.imul||(g=m),f.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return 10===this.length&&10===t.length?g(this,t,e):n<63?m(this,t,e):b(this,t,e)},y.prototype.makeRBT=function(t){for(var e=Array(t),r=f.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},y.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},y.prototype.permute=function(t,e,r,n,i,f){for(var o=0;o<f;o++)n[o]=e[t[o]],i[o]=r[t[o]]},y.prototype.transform=function(t,e,r,n,i,f){this.permute(f,t,e,r,n,i);for(var o=1;o<i;o<<=1)for(var a=o<<1,s=Math.cos(2*Math.PI/a),u=Math.sin(2*Math.PI/a),l=0;l<i;l+=a)for(var h=s,c=u,d=0;d<o;d++){var p=r[l+d],m=n[l+d],g=r[l+d+o],b=n[l+d+o],y=h*g-c*b;b=h*b+c*g,g=y,r[l+d]=p+g,n[l+d]=m+b,r[l+d+o]=p-g,n[l+d+o]=m-b,d!==a&&(y=s*h-u*c,c=s*c+u*h,h=y)}},y.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},y.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},y.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},y.prototype.convert13b=function(t,e,r,i){for(var f=0,o=0;o<e;o++)f+=0|t[o],r[2*o]=8191&f,f>>>=13,r[2*o+1]=8191&f,f>>>=13;for(o=2*e;o<i;++o)r[o]=0;n(0===f),n((-8192&f)==0)},y.prototype.stub=function(t){for(var e=Array(t),r=0;r<t;r++)e[r]=0;return e},y.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),f=this.stub(n),o=Array(n),a=Array(n),s=Array(n),u=Array(n),l=Array(n),h=Array(n),c=r.words;c.length=n,this.convert13b(t.words,t.length,o,n),this.convert13b(e.words,e.length,u,n),this.transform(o,f,a,s,n,i),this.transform(u,f,l,h,n,i);for(var d=0;d<n;d++){var p=a[d]*l[d]-s[d]*h[d];s[d]=a[d]*h[d]+s[d]*l[d],a[d]=p}return this.conjugate(a,s,n),this.transform(a,s,c,f,n,i),this.conjugate(c,f,n),this.normalize13b(c,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r._strip()},f.prototype.mul=function(t){var e=new f(null);return e.words=Array(this.length+t.length),this.mulTo(t,e)},f.prototype.mulf=function(t){var e=new f(null);return e.words=Array(this.length+t.length),b(this,t,e)},f.prototype.imul=function(t){return this.clone().mulTo(t,this)},f.prototype.imuln=function(t){var e=t<0;e&&(t=-t),n("number"==typeof t),n(t<67108864);for(var r=0,i=0;i<this.length;i++){var f=(0|this.words[i])*t,o=(67108863&f)+(67108863&r);r>>=26,r+=(f/67108864|0)+(o>>>26),this.words[i]=67108863&o}return 0!==r&&(this.words[i]=r,this.length++),e?this.ineg():this},f.prototype.muln=function(t){return this.clone().imuln(t)},f.prototype.sqr=function(){return this.mul(this)},f.prototype.isqr=function(){return this.imul(this.clone())},f.prototype.pow=function(t){var e=function(t){for(var e=Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=t.words[n]>>>i&1}return e}(t);if(0===e.length)return new f(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},f.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,f=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(e=0;e<this.length;e++){var a=this.words[e]&f,s=(0|this.words[e])-a<<r;this.words[e]=s|o,o=a>>>26-r}o&&(this.words[e]=o,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this._strip()},f.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},f.prototype.iushrn=function(t,e,r){n("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var i,f=t%26,o=Math.min((t-f)/26,this.length),a=67108863^67108863>>>f<<f;if(i-=o,i=Math.max(0,i),r){for(var s=0;s<o;s++)r.words[s]=this.words[s];r.length=o}if(0===o);else if(this.length>o)for(this.length-=o,s=0;s<this.length;s++)this.words[s]=this.words[s+o];else this.words[0]=0,this.length=1;var u=0;for(s=this.length-1;s>=0&&(0!==u||s>=i);s--){var l=0|this.words[s];this.words[s]=u<<26-f|l>>>f,u=l&a}return r&&0!==u&&(r.words[r.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},f.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},f.prototype.shln=function(t){return this.clone().ishln(t)},f.prototype.ushln=function(t){return this.clone().iushln(t)},f.prototype.shrn=function(t){return this.clone().ishrn(t)},f.prototype.ushrn=function(t){return this.clone().iushrn(t)},f.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;return!(this.length<=r)&&!!(this.words[r]&1<<e)},f.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;return(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)?this:(0!==e&&r++,this.length=Math.min(r,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<<e),this._strip())},f.prototype.maskn=function(t){return this.clone().imaskn(t)},f.prototype.iaddn=function(t){return(n("number"==typeof t),n(t<67108864),t<0)?this.isubn(-t):0!==this.negative?(1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(t),this.negative=1),this):this._iaddn(t)},f.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[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},f.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<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},f.prototype.addn=function(t){return this.clone().iaddn(t)},f.prototype.subn=function(t){return this.clone().isubn(t)},f.prototype.iabs=function(){return this.negative=0,this},f.prototype.abs=function(){return this.clone().iabs()},f.prototype._ishlnsubmul=function(t,e,r){var i,f,o=t.length+r;this._expand(o);var a=0;for(i=0;i<t.length;i++){f=(0|this.words[i+r])+a;var s=(0|t.words[i])*e;f-=67108863&s,a=(f>>26)-(s/67108864|0),this.words[i+r]=67108863&f}for(;i<this.length-r;i++)a=(f=(0|this.words[i+r])+a)>>26,this.words[i+r]=67108863&f;if(0===a)return this._strip();for(n(-1===a),a=0,i=0;i<this.length;i++)a=(f=-(0|this.words[i])+a)>>26,this.words[i]=67108863&f;return this.negative=1,this._strip()},f.prototype._wordDiv=function(t,e){var r,n=this.length-t.length,i=this.clone(),o=t,a=0|o.words[o.length-1];0!=(n=26-this._countBits(a))&&(o=o.ushln(n),i.iushln(n),a=0|o.words[o.length-1]);var s=i.length-o.length;if("mod"!==e){(r=new f(null)).length=s+1,r.words=Array(r.length);for(var u=0;u<r.length;u++)r.words[u]=0}var l=i.clone()._ishlnsubmul(o,1,s);0===l.negative&&(i=l,r&&(r.words[s]=1));for(var h=s-1;h>=0;h--){var c=(0|i.words[o.length+h])*67108864+(0|i.words[o.length+h-1]);for(c=Math.min(c/a|0,67108863),i._ishlnsubmul(o,c,h);0!==i.negative;)c--,i.negative=0,i._ishlnsubmul(o,1,h),i.isZero()||(i.negative^=1);r&&(r.words[h]=c)}return r&&r._strip(),i._strip(),"div"!==e&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},f.prototype.divmod=function(t,e,r){var i,o,a;return(n(!t.isZero()),this.isZero())?{div:new f(0),mod:new f(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:i,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):(this.negative&t.negative)!=0?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||0>this.cmp(t)?{div:new f(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new f(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new f(this.modrn(t.words[0]))}:this._wordDiv(t,e)},f.prototype.div=function(t){return this.divmod(t,"div",!1).div},f.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},f.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},f.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),f=r.cmp(n);return f<0||1===i&&0===f?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},f.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=67108864%t,i=0,f=this.length-1;f>=0;f--)i=(r*i+(0|this.words[f]))%t;return e?-i:i},f.prototype.modn=function(t){return this.modrn(t)},f.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 f=(0|this.words[i])+67108864*r;this.words[i]=f/t|0,r=f%t}return this._strip(),e?this.ineg():this},f.prototype.divn=function(t){return this.clone().idivn(t)},f.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();for(var i=new f(1),o=new f(0),a=new f(0),s=new f(1),u=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++u;for(var l=r.clone(),h=e.clone();!e.isZero();){for(var c=0,d=1;(e.words[0]&d)==0&&c<26;++c,d<<=1);if(c>0)for(e.iushrn(c);c-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(l),o.isub(h)),i.iushrn(1),o.iushrn(1);for(var p=0,m=1;(r.words[0]&m)==0&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||s.isOdd())&&(a.iadd(l),s.isub(h)),a.iushrn(1),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(a),o.isub(s)):(r.isub(e),a.isub(i),s.isub(o))}return{a:a,b:s,gcd:r.iushln(u)}},f.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e,r=this,i=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var o=new f(1),a=new f(0),s=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var u=0,l=1;(r.words[0]&l)==0&&u<26;++u,l<<=1);if(u>0)for(r.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);for(var h=0,c=1;(i.words[0]&c)==0&&h<26;++h,c<<=1);if(h>0)for(i.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);r.cmp(i)>=0?(r.isub(i),o.isub(a)):(i.isub(r),a.isub(o))}return 0>(e=0===r.cmpn(1)?o:a).cmpn(0)&&e.iadd(t),e},f.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);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var f=e;e=r,r=f}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},f.prototype.invm=function(t){return this.egcd(t).a.umod(t)},f.prototype.isEven=function(){return(1&this.words[0])==0},f.prototype.isOdd=function(){return(1&this.words[0])==1},f.prototype.andln=function(t){return this.words[0]&t},f.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var f=i,o=r;0!==f&&o<this.length;o++){var a=0|this.words[o];a+=f,f=a>>>26,a&=67108863,this.words[o]=a}return 0!==f&&(this.words[o]=f,this.length++),this},f.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},f.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:i<t?-1:1}return 0!==this.negative?0|-e:e},f.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return -1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},f.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return -1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},f.prototype.gtn=function(t){return 1===this.cmpn(t)},f.prototype.gt=function(t){return 1===this.cmp(t)},f.prototype.gten=function(t){return this.cmpn(t)>=0},f.prototype.gte=function(t){return this.cmp(t)>=0},f.prototype.ltn=function(t){return -1===this.cmpn(t)},f.prototype.lt=function(t){return -1===this.cmp(t)},f.prototype.lten=function(t){return 0>=this.cmpn(t)},f.prototype.lte=function(t){return 0>=this.cmp(t)},f.prototype.eqn=function(t){return 0===this.cmpn(t)},f.prototype.eq=function(t){return 0===this.cmp(t)},f.red=function(t){return new _(t)},f.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)},f.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},f.prototype._forceRed=function(t){return this.red=t,this},f.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},f.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},f.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},f.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},f.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},f.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},f.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},f.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},f.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},f.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},f.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},f.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},f.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},f.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new f(e,16),this.n=this.p.bitLength(),this.k=new f(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 E(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(t){if("string"==typeof t){var e=f._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 N(t){_.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new f(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 f(null);return t.words=Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,r=t;do this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?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=Math.min(t.length,9),n=0;n<r;n++)e.words[n]=t.words[n];if(e.length=r,t.length<=9){t.words[0]=0,t.length=1;return}var i=t.words[9];for(n=10,e.words[e.length++]=4194303&i;n<t.length;n++){var f=0|t.words[n];t.words[n-10]=(4194303&f)<<4|i>>>22,i=f}i>>>=22,t.words[n-10]=i,0===i&&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<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(E,w),i(A,w),i(S,w),S.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=(0|t.words[r])*19+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},f._prime=function(t){var e;if(v[t])return v[t];if("k256"===t)e=new M;else if("p224"===t)e=new E;else if("p192"===t)e=new A;else if("p25519"===t)e=new S;else throw Error("Unknown prime "+t);return v[t]=e,e},_.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},_.prototype._verify2=function(t,e){n((t.negative|e.negative)==0,"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},_.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(u(t,t.umod(this.m)._forceRed(this)),t)},_.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},_.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)},_.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},_.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},_.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return 0>r.cmpn(0)&&r.iadd(this.m),r},_.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},_.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},_.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},_.prototype.isqr=function(t){return this.imul(t,t.clone())},_.prototype.sqr=function(t){return this.mul(t,t)},_.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 f(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var a=new f(1).toRed(this),s=a.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new f(2*l*l).toRed(this);0!==this.pow(l,u).cmp(s);)l.redIAdd(s);for(var h=this.pow(l,i),c=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=o;0!==d.cmp(a);){for(var m=d,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g<p);var b=this.pow(h,new f(1).iushln(p-g-1));c=c.redMul(b),h=b.redSqr(),d=d.redMul(h),p=g}return c},_.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},_.prototype.pow=function(t,e){if(e.isZero())return new f(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=Array(16);r[0]=new f(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],o=0,a=0,s=e.bitLength()%26;for(0===s&&(s=26),n=e.length-1;n>=0;n--){for(var u=e.words[n],l=s-1;l>=0;l--){var h=u>>l&1;if(i!==r[0]&&(i=this.sqr(i)),0===h&&0===o){a=0;continue}o<<=1,o|=h,(4==++a||0===n&&0===l)&&(i=this.mul(i,r[o]),a=0,o=0)}s=26}return i},_.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},_.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},f.mont=function(t){return new N(t)},i(N,_),N.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},N.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},N.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),f=i;return i.cmp(this.m)>=0?f=i.isub(this.m):0>i.cmpn(0)&&(f=i.iadd(this.m)),f._forceRed(this)},N.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new f(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),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},N.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},86230:function(t,e,r){var n,i=r(34155);!function(){"use strict";var f="input is invalid type",o="object"==typeof window,a=o?window:{};a.JS_SHA3_NO_WINDOW&&(o=!1);var s=!o&&"object"==typeof self;!a.JS_SHA3_NO_NODE_JS&&"object"==typeof i&&i.versions&&i.versions.node?a=r.g:s&&(a=self);var u=!a.JS_SHA3_NO_COMMON_JS&&t.exports,l=r.amdO,h=!a.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,c="0123456789abcdef".split(""),d=[4,1024,262144,67108864],p=[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],g=[224,256,384,512],b=[128,256],y=["hex","buffer","arrayBuffer","array","digest"],v={128:168,256:136};(a.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),h&&(a.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 w=function(t,e,r){return function(n){return new F(t,e,t).update(n)[r]()}},M=function(t,e,r){return function(n,i){return new F(t,e,i).update(n)[r]()}},E=function(t,e,r){return function(e,n,i,f){return T["cshake"+t].update(e,n,i,f)[r]()}},A=function(t,e,r){return function(e,n,i,f){return T["kmac"+t].update(e,n,i,f)[r]()}},S=function(t,e,r,n){for(var i=0;i<y.length;++i){var f=y[i];t[f]=e(r,n,f)}return t},_=function(t,e){var r=w(t,e,"hex");return r.create=function(){return new F(t,e,t)},r.update=function(t){return r.create().update(t)},S(r,w,t,e)},N=[{name:"keccak",padding:[1,256,65536,16777216],bits:g,createMethod:_},{name:"sha3",padding:[6,1536,393216,100663296],bits:g,createMethod:_},{name:"shake",padding:[31,7936,2031616,520093696],bits:b,createMethod:function(t,e){var r=M(t,e,"hex");return r.create=function(r){return new F(t,e,r)},r.update=function(t,e){return r.create(e).update(t)},S(r,M,t,e)}},{name:"cshake",padding:d,bits:b,createMethod:function(t,e){var r=v[t],n=E(t,e,"hex");return n.create=function(n,i,f){return i||f?new F(t,e,n).bytepad([i,f],r):T["shake"+t].create(n)},n.update=function(t,e,r,i){return n.create(e,r,i).update(t)},S(n,E,t,e)}},{name:"kmac",padding:d,bits:b,createMethod:function(t,e){var r=v[t],n=A(t,e,"hex");return n.create=function(n,i,f){return new B(t,e,i).bytepad(["KMAC",f],r).bytepad([n],r)},n.update=function(t,e,r,i){return n.create(t,r,i).update(e)},S(n,A,t,e)}}],T={},R=[],C=0;C<N.length;++C)for(var I=N[C],P=I.bits,O=0;O<P.length;++O){var x=I.name+"_"+P[O];if(R.push(x),T[x]=I.createMethod(P[O],I.padding),"sha3"!==I.name){var k=I.name+P[O];R.push(k),T[k]=T[x]}}function F(t,e,r){this.blocks=[],this.s=[],this.padding=e,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(t<<1)>>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 B(t,e,r){F.call(this,t,e,r)}F.prototype.update=function(t){if(this.finalized)throw Error("finalize already called");var e,r=typeof t;if("string"!==r){if("object"===r){if(null===t)throw Error(f);if(h&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!h||!ArrayBuffer.isView(t)))throw Error(f)}else throw Error(f);e=!0}for(var n,i,o=this.blocks,a=this.byteCount,s=t.length,u=this.blockCount,l=0,c=this.s;l<s;){if(this.reset)for(n=1,this.reset=!1,o[0]=this.block;n<u+1;++n)o[n]=0;if(e)for(n=this.start;l<s&&n<a;++l)o[n>>2]|=t[l]<<p[3&n++];else for(n=this.start;l<s&&n<a;++l)(i=t.charCodeAt(l))<128?o[n>>2]|=i<<p[3&n++]:(i<2048?o[n>>2]|=(192|i>>6)<<p[3&n++]:(i<55296||i>=57344?o[n>>2]|=(224|i>>12)<<p[3&n++]:(i=65536+((1023&i)<<10|1023&t.charCodeAt(++l)),o[n>>2]|=(240|i>>18)<<p[3&n++],o[n>>2]|=(128|i>>12&63)<<p[3&n++]),o[n>>2]|=(128|i>>6&63)<<p[3&n++]),o[n>>2]|=(128|63&i)<<p[3&n++]);if(this.lastByteIndex=n,n>=a){for(this.start=n-a,this.block=o[u],n=0;n<u;++n)c[n]^=o[n];L(c),this.reset=!0}else this.start=n}return this},F.prototype.encode=function(t,e){var r=255&t,n=1,i=[r];for(t>>=8,r=255&t;r>0;)i.unshift(r),t>>=8,r=255&t,++n;return e?i.push(n):i.unshift(n),this.update(i),i.length},F.prototype.encodeString=function(t){var e,r=typeof t;if("string"!==r){if("object"===r){if(null===t)throw Error(f);if(h&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!h||!ArrayBuffer.isView(t)))throw Error(f)}else throw Error(f);e=!0}var n=0,i=t.length;if(e)n=i;else for(var o=0;o<t.length;++o){var a=t.charCodeAt(o);a<128?n+=1:a<2048?n+=2:a<55296||a>=57344?n+=3:(a=65536+((1023&a)<<10|1023&t.charCodeAt(++o)),n+=4)}return n+=this.encode(8*n),this.update(t),n},F.prototype.bytepad=function(t,e){for(var r=this.encode(e),n=0;n<t.length;++n)r+=this.encodeString(t[n]);var i=e-r%e,f=[];return f.length=i,this.update(f),this},F.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex,r=this.blockCount,n=this.s;if(t[e>>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(e=1,t[0]=t[r];e<r+1;++e)t[e]=0;for(t[r-1]|=2147483648,e=0;e<r;++e)n[e]^=t[e];L(n)}},F.prototype.toString=F.prototype.hex=function(){this.finalize();for(var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,f=0,o=0,a="";o<n;){for(f=0;f<e&&o<n;++f,++o)a+=c[(t=r[f])>>4&15]+c[15&t]+c[t>>12&15]+c[t>>8&15]+c[t>>20&15]+c[t>>16&15]+c[t>>28&15]+c[t>>24&15];o%e==0&&(L(r),f=0)}return i&&(a+=c[(t=r[f])>>4&15]+c[15&t],i>1&&(a+=c[t>>12&15]+c[t>>8&15]),i>2&&(a+=c[t>>20&15]+c[t>>16&15])),a},F.prototype.arrayBuffer=function(){this.finalize();for(var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,f=0,o=0,a=this.outputBits>>3,s=new Uint32Array(t=new ArrayBuffer(i?n+1<<2:a));o<n;){for(f=0;f<e&&o<n;++f,++o)s[o]=r[f];o%e==0&&L(r)}return i&&(s[f]=r[f],t=t.slice(0,a)),t},F.prototype.buffer=F.prototype.arrayBuffer,F.prototype.digest=F.prototype.array=function(){this.finalize();for(var t,e,r=this.blockCount,n=this.s,i=this.outputBlocks,f=this.extraBytes,o=0,a=0,s=[];a<i;){for(o=0;o<r&&a<i;++o,++a)t=a<<2,e=n[o],s[t]=255&e,s[t+1]=e>>8&255,s[t+2]=e>>16&255,s[t+3]=e>>24&255;a%r==0&&L(n)}return f&&(t=a<<2,e=n[o],s[t]=255&e,f>1&&(s[t+1]=e>>8&255),f>2&&(s[t+2]=e>>16&255)),s},B.prototype=new F,B.prototype.finalize=function(){return this.encode(this.outputBits,!0),F.prototype.finalize.call(this)};var L=function(t){var e,r,n,i,f,o,a,s,u,l,h,c,d,p,g,b,y,v,w,M,E,A,S,_,N,T,R,C,I,P,O,x,k,F,B,L,D,U,G,z,J,j,H,V,X,q,Z,K,W,Y,Q,$,tt,te,tr,tn,ti,tf,to,ta,ts,tu,tl;for(n=0;n<48;n+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],f=t[1]^t[11]^t[21]^t[31]^t[41],o=t[2]^t[12]^t[22]^t[32]^t[42],a=t[3]^t[13]^t[23]^t[33]^t[43],s=t[4]^t[14]^t[24]^t[34]^t[44],u=t[5]^t[15]^t[25]^t[35]^t[45],l=t[6]^t[16]^t[26]^t[36]^t[46],h=t[7]^t[17]^t[27]^t[37]^t[47],c=t[8]^t[18]^t[28]^t[38]^t[48],d=t[9]^t[19]^t[29]^t[39]^t[49],e=c^(o<<1|a>>>31),r=d^(a<<1|o>>>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^(s<<1|u>>>31),r=f^(u<<1|s>>>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=o^(l<<1|h>>>31),r=a^(h<<1|l>>>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=s^(c<<1|d>>>31),r=u^(d<<1|c>>>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=l^(i<<1|f>>>31),r=h^(f<<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],g=t[1],q=t[11]<<4|t[10]>>>28,Z=t[10]<<4|t[11]>>>28,C=t[20]<<3|t[21]>>>29,I=t[21]<<3|t[20]>>>29,ta=t[31]<<9|t[30]>>>23,ts=t[30]<<9|t[31]>>>23,j=t[40]<<18|t[41]>>>14,H=t[41]<<18|t[40]>>>14,F=t[2]<<1|t[3]>>>31,B=t[3]<<1|t[2]>>>31,b=t[13]<<12|t[12]>>>20,y=t[12]<<12|t[13]>>>20,K=t[22]<<10|t[23]>>>22,W=t[23]<<10|t[22]>>>22,P=t[33]<<13|t[32]>>>19,O=t[32]<<13|t[33]>>>19,tu=t[42]<<2|t[43]>>>30,tl=t[43]<<2|t[42]>>>30,te=t[5]<<30|t[4]>>>2,tr=t[4]<<30|t[5]>>>2,L=t[14]<<6|t[15]>>>26,D=t[15]<<6|t[14]>>>26,v=t[25]<<11|t[24]>>>21,w=t[24]<<11|t[25]>>>21,Y=t[34]<<15|t[35]>>>17,Q=t[35]<<15|t[34]>>>17,x=t[45]<<29|t[44]>>>3,k=t[44]<<29|t[45]>>>3,_=t[6]<<28|t[7]>>>4,N=t[7]<<28|t[6]>>>4,tn=t[17]<<23|t[16]>>>9,ti=t[16]<<23|t[17]>>>9,U=t[26]<<25|t[27]>>>7,G=t[27]<<25|t[26]>>>7,M=t[36]<<21|t[37]>>>11,E=t[37]<<21|t[36]>>>11,$=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,V=t[8]<<27|t[9]>>>5,X=t[9]<<27|t[8]>>>5,T=t[18]<<20|t[19]>>>12,R=t[19]<<20|t[18]>>>12,tf=t[29]<<7|t[28]>>>25,to=t[28]<<7|t[29]>>>25,z=t[38]<<8|t[39]>>>24,J=t[39]<<8|t[38]>>>24,A=t[48]<<14|t[49]>>>18,S=t[49]<<14|t[48]>>>18,t[0]=p^~b&v,t[1]=g^~y&w,t[10]=_^~T&C,t[11]=N^~R&I,t[20]=F^~L&U,t[21]=B^~D&G,t[30]=V^~q&K,t[31]=X^~Z&W,t[40]=te^~tn&tf,t[41]=tr^~ti&to,t[2]=b^~v&M,t[3]=y^~w&E,t[12]=T^~C&P,t[13]=R^~I&O,t[22]=L^~U&z,t[23]=D^~G&J,t[32]=q^~K&Y,t[33]=Z^~W&Q,t[42]=tn^~tf&ta,t[43]=ti^~to&ts,t[4]=v^~M&A,t[5]=w^~E&S,t[14]=C^~P&x,t[15]=I^~O&k,t[24]=U^~z&j,t[25]=G^~J&H,t[34]=K^~Y&$,t[35]=W^~Q&tt,t[44]=tf^~ta&tu,t[45]=to^~ts&tl,t[6]=M^~A&p,t[7]=E^~S&g,t[16]=P^~x&_,t[17]=O^~k&N,t[26]=z^~j&F,t[27]=J^~H&B,t[36]=Y^~$&V,t[37]=Q^~tt&X,t[46]=ta^~tu&te,t[47]=ts^~tl&tr,t[8]=A^~p&b,t[9]=S^~g&y,t[18]=x^~_&T,t[19]=k^~N&R,t[28]=j^~F&L,t[29]=H^~B&D,t[38]=$^~V&q,t[39]=tt^~X&Z,t[48]=tu^~te&tn,t[49]=tl^~tr&ti,t[0]^=m[n],t[1]^=m[n+1]};if(u)t.exports=T;else{for(C=0;C<R.length;++C)a[R[C]]=T[R[C]];l&&void 0!==(n=(function(){return T}).call(e,r,e,t))&&(t.exports=n)}}()},64678:function(t,e,r){"use strict";r.r(e),r.d(e,{getAddress:function(){return X},getContractAddress:function(){return K},getCreate2Address:function(){return W},getIcapAddress:function(){return Z},isAddress:function(){return q}});let n=!1,i=!1,f={debug:1,default:2,info:2,warning:3,error:4,off:5},o=f.default,a=null,s=function(){try{let t=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test"!=="test".normalize(e))throw Error("bad normalize")}catch(r){t.push(e)}}),t.length)throw Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw Error("broken implementation")}catch(t){return t.message}return null}();(E=S||(S={})).DEBUG="DEBUG",E.INFO="INFO",E.WARNING="WARNING",E.ERROR="ERROR",E.OFF="OFF",(A=_||(_={})).UNKNOWN_ERROR="UNKNOWN_ERROR",A.NOT_IMPLEMENTED="NOT_IMPLEMENTED",A.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",A.NETWORK_ERROR="NETWORK_ERROR",A.SERVER_ERROR="SERVER_ERROR",A.TIMEOUT="TIMEOUT",A.BUFFER_OVERRUN="BUFFER_OVERRUN",A.NUMERIC_FAULT="NUMERIC_FAULT",A.MISSING_NEW="MISSING_NEW",A.INVALID_ARGUMENT="INVALID_ARGUMENT",A.MISSING_ARGUMENT="MISSING_ARGUMENT",A.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",A.CALL_EXCEPTION="CALL_EXCEPTION",A.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",A.NONCE_EXPIRED="NONCE_EXPIRED",A.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",A.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",A.TRANSACTION_REPLACED="TRANSACTION_REPLACED",A.ACTION_REJECTED="ACTION_REJECTED";let u="0123456789abcdef";class l{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){let r=t.toLowerCase();null==f[r]&&this.throwArgumentError("invalid log level name","logLevel",t),o>f[r]||console.log.apply(console,e)}debug(...t){this._log(l.levels.DEBUG,t)}info(...t){this._log(l.levels.INFO,t)}warn(...t){this._log(l.levels.WARNING,t)}makeError(t,e,r){if(i)return this.makeError("censored error",e,{});e||(e=l.errors.UNKNOWN_ERROR),r||(r={});let n=[];Object.keys(r).forEach(t=>{let e=r[t];try{if(e instanceof Uint8Array){let r="";for(let t=0;t<e.length;t++)r+=u[e[t]>>4]+u[15&e[t]];n.push(t+"=Uint8Array(0x"+r+")")}else n.push(t+"="+JSON.stringify(e))}catch(e){n.push(t+"="+JSON.stringify(r[t].toString()))}}),n.push(`code=${e}`),n.push(`version=${this.version}`);let f=t,o="";switch(e){case _.NUMERIC_FAULT:{o="NUMERIC_FAULT";let e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":o+="-"+e;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result"}break}case _.CALL_EXCEPTION:case _.INSUFFICIENT_FUNDS:case _.MISSING_NEW:case _.NONCE_EXPIRED:case _.REPLACEMENT_UNDERPRICED:case _.TRANSACTION_REPLACED:case _.UNPREDICTABLE_GAS_LIMIT:o=e}o&&(t+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),n.length&&(t+=" ("+n.join(", ")+")");let a=Error(t);return a.reason=f,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,l.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"),s&&this.throwError("platform missing String.prototype.normalize",l.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:s})}checkSafeUint53(t,e){"number"==typeof t&&(null==e&&(e="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(e,l.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(e,l.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,e,r){r=r?": "+r:"",t<e&&this.throwError("missing argument"+r,l.errors.MISSING_ARGUMENT,{count:t,expectedCount:e}),t>e&&this.throwError("too many arguments"+r,l.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:e})}checkNew(t,e){(t===Object||null==t)&&this.throwError("missing new",l.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",l.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):(t===Object||null==t)&&this.throwError("missing new",l.errors.MISSING_NEW,{name:e.name})}static globalLogger(){return a||(a=new l("logger/5.7.0")),a}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",l.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),n){if(!t)return;this.globalLogger().throwError("error censorship permanent",l.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}i=!!t,n=!!e}static setLogLevel(t){let e=f[t.toLowerCase()];if(null==e){l.globalLogger().warn("invalid log level - "+t);return}o=e}static from(t){return new l(t)}}l.errors=_,l.levels=S;let h=new l("bytes/5.7.0");function c(t){return!!t.toHexString}function d(t){return t.slice||(t.slice=function(){let e=Array.prototype.slice.call(arguments);return d(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function p(t){return"number"==typeof t&&t==t&&t%1==0}function m(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"==typeof t||!p(t.length)||t.length<0)return!1;for(let e=0;e<t.length;e++){let r=t[e];if(!p(r)||r<0||r>=256)return!1}return!0}function g(t,e){if(e||(e={}),"number"==typeof t){h.checkSafeUint53(t,"invalid arrayify value");let e=[];for(;t;)e.unshift(255&t),t=parseInt(String(t/256));return 0===e.length&&e.push(0),d(new Uint8Array(e))}if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),c(t)&&(t=t.toHexString()),b(t)){let r=t.substring(2);r.length%2&&("left"===e.hexPad?r="0"+r:"right"===e.hexPad?r+="0":h.throwArgumentError("hex data is odd-length","value",t));let n=[];for(let t=0;t<r.length;t+=2)n.push(parseInt(r.substring(t,t+2),16));return d(new Uint8Array(n))}return m(t)?d(new Uint8Array(t)):h.throwArgumentError("invalid arrayify value","value",t)}function b(t,e){return"string"==typeof t&&!!t.match(/^0x[0-9A-Fa-f]*$/)&&(!e||t.length===2+2*e)}let y="0123456789abcdef";function v(t,e){if(e||(e={}),"number"==typeof t){h.checkSafeUint53(t,"invalid hexlify value");let e="";for(;t;)e=y[15&t]+e,t=Math.floor(t/16);return e.length?(e.length%2&&(e="0"+e),"0x"+e):"0x00"}if("bigint"==typeof t)return(t=t.toString(16)).length%2?"0x0"+t:"0x"+t;if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),c(t))return t.toHexString();if(b(t))return t.length%2&&("left"===e.hexPad?t="0x0"+t.substring(2):"right"===e.hexPad?t+="0":h.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(m(t)){let e="0x";for(let r=0;r<t.length;r++){let n=t[r];e+=y[(240&n)>>4]+y[15&n]}return e}return h.throwArgumentError("invalid hexlify value","value",t)}function w(t){if("string"!=typeof t)t=v(t);else if(!b(t)||t.length%2)return null;return(t.length-2)/2}function M(t,e,r){return("string"!=typeof t?t=v(t):(!b(t)||t.length%2)&&h.throwArgumentError("invalid hexData","value",t),e=2+2*e,null!=r)?"0x"+t.substring(e,2+2*r):"0x"+t.substring(e)}var E,A,S,_,N=r(40398),T=r.n(N)().BN;let R=new l("bignumber/5.7.0"),C={},I=!1;class P{constructor(t,e){t!==C&&R.throwError("cannot call constructor directly; use BigNumber.from",l.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=e,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return x(k(this).fromTwos(t))}toTwos(t){return x(k(this).toTwos(t))}abs(){return"-"===this._hex[0]?P.from(this._hex.substring(1)):this}add(t){return x(k(this).add(k(t)))}sub(t){return x(k(this).sub(k(t)))}div(t){return P.from(t).isZero()&&F("division-by-zero","div"),x(k(this).div(k(t)))}mul(t){return x(k(this).mul(k(t)))}mod(t){let e=k(t);return e.isNeg()&&F("division-by-zero","mod"),x(k(this).umod(e))}pow(t){let e=k(t);return e.isNeg()&&F("negative-power","pow"),x(k(this).pow(e))}and(t){let e=k(t);return(this.isNegative()||e.isNeg())&&F("unbound-bitwise-result","and"),x(k(this).and(e))}or(t){let e=k(t);return(this.isNegative()||e.isNeg())&&F("unbound-bitwise-result","or"),x(k(this).or(e))}xor(t){let e=k(t);return(this.isNegative()||e.isNeg())&&F("unbound-bitwise-result","xor"),x(k(this).xor(e))}mask(t){return(this.isNegative()||t<0)&&F("negative-width","mask"),x(k(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&F("negative-width","shl"),x(k(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&F("negative-width","shr"),x(k(this).shrn(t))}eq(t){return k(this).eq(k(t))}lt(t){return k(this).lt(k(t))}lte(t){return k(this).lte(k(t))}gt(t){return k(this).gt(k(t))}gte(t){return k(this).gte(k(t))}isNegative(){return"-"===this._hex[0]}isZero(){return k(this).isZero()}toNumber(){try{return k(this).toNumber()}catch(t){F("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(t){}return R.throwError("this platform does not support BigInt",l.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?I||(I=!0,R.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?R.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",l.errors.UNEXPECTED_ARGUMENT,{}):R.throwError("BigNumber.toString does not accept parameters",l.errors.UNEXPECTED_ARGUMENT,{})),k(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(C,O(t)):t.match(/^-?[0-9]+$/)?new P(C,O(new T(t))):R.throwArgumentError("invalid BigNumber string","value",t);if("number"==typeof t)return t%1&&F("underflow","BigNumber.from",t),(t>=9007199254740991||t<=-9007199254740991)&&F("overflow","BigNumber.from",t),P.from(String(t));if("bigint"==typeof t)return P.from(t.toString());if(m(t))return P.from(v(t));if(t){if(t.toHexString){let e=t.toHexString();if("string"==typeof e)return P.from(e)}else{let e=t._hex;if(null==e&&"BigNumber"===t.type&&(e=t.hex),"string"==typeof e&&(b(e)||"-"===e[0]&&b(e.substring(1))))return P.from(e)}}return R.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!!(t&&t._isBigNumber)}}function O(t){if("string"!=typeof t)return O(t.toString(16));if("-"===t[0])return("-"===(t=t.substring(1))[0]&&R.throwArgumentError("invalid hex","value",t),"0x00"===(t=O(t)))?t:"-"+t;if("0x"!==t.substring(0,2)&&(t="0x"+t),"0x"===t)return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&"0x00"===t.substring(0,4);)t="0x"+t.substring(4);return t}function x(t){return P.from(O(t))}function k(t){let e=P.from(t).toHexString();return"-"===e[0]?new T("-"+e.substring(3),16):new T(e.substring(2),16)}function F(t,e,r){let n={fault:t,operation:e};return null!=r&&(n.value=r),R.throwError(t,l.errors.NUMERIC_FAULT,n)}var B=r(78771),L=r.n(B);function D(t){return"0x"+L().keccak_256(g(t))}let U=new l("rlp/5.7.0");function G(t){let e=[];for(;t;)e.unshift(255&t),t>>=8;return e}let z=new l("address/5.4.0");function J(t){b(t,20)||z.throwArgumentError("invalid address","address",t);let e=(t=t.toLowerCase()).substring(2).split(""),r=new Uint8Array(40);for(let t=0;t<40;t++)r[t]=e[t].charCodeAt(0);let n=g(D(r));for(let t=0;t<40;t+=2)n[t>>1]>>4>=8&&(e[t]=e[t].toUpperCase()),(15&n[t>>1])>=8&&(e[t+1]=e[t+1].toUpperCase());return"0x"+e.join("")}let j={};for(let t=0;t<10;t++)j[String(t)]=String(t);for(let t=0;t<26;t++)j[String.fromCharCode(65+t)]=String(10+t);let H=Math.floor(Math.log10?Math.log10(9007199254740991):Math.log(9007199254740991)/Math.LN10);function V(t){let e=(t=(t=t.toUpperCase()).substring(4)+t.substring(0,2)+"00").split("").map(t=>j[t]).join("");for(;e.length>=H;){let t=e.substring(0,H);e=parseInt(t,10)%97+e.substring(t.length)}let r=String(98-parseInt(e,10)%97);for(;r.length<2;)r="0"+r;return r}function X(t){let e=null;if("string"!=typeof t&&z.throwArgumentError("invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==t.substring(0,2)&&(t="0x"+t),e=J(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&z.throwArgumentError("bad address checksum","address",t);else if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(t.substring(2,4)!==V(t)&&z.throwArgumentError("bad icap checksum","address",t),e=new T(t.substring(4),36).toString(16);e.length<40;)e="0"+e;e=J("0x"+e)}else z.throwArgumentError("invalid address","address",t);return e}function q(t){try{return X(t),!0}catch(t){}return!1}function Z(t){let e=new T(X(t).substring(2),16).toString(36).toUpperCase();for(;e.length<30;)e="0"+e;return"XE"+V("XE00"+e)+e}function K(t){let e=null;try{e=X(t.from)}catch(e){z.throwArgumentError("missing from address","transaction",t)}return X(M(D(v(function t(e){if(Array.isArray(e)){let r=[];if(e.forEach(function(e){r=r.concat(t(e))}),r.length<=55)return r.unshift(192+r.length),r;let n=G(r.length);return n.unshift(247+n.length),n.concat(r)}b(e)&&!(e.length%2)||m(e)||U.throwArgumentError("RLP object must be BytesLike","object",e);let r=Array.prototype.slice.call(g(e));if(1===r.length&&r[0]<=127)return r;if(r.length<=55)return r.unshift(128+r.length),r;let n=G(r.length);return n.unshift(183+n.length),n.concat(r)}([e,function(t){let e=g(t);if(0===e.length)return e;let r=0;for(;r<e.length&&0===e[r];)r++;return r&&(e=e.slice(r)),e}(g(P.from(t.nonce).toHexString()))]))),12))}function W(t,e,r){return 32!==w(e)&&z.throwArgumentError("salt must be 32 bytes","salt",e),32!==w(r)&&z.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",r),X(M(D(function(t){let e=t.map(t=>g(t)),r=new Uint8Array(e.reduce((t,e)=>t+e.length,0));return e.reduce((t,e)=>(r.set(e,t),t+e.length),0),d(r)}(["0xff",X(t),e,r])),12))}},40398:function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw 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 f(t,e,r){if(f.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"))}"object"==typeof t?t.exports=f:e.BN=f,f.BN=f,f.wordSize=26;try{h="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(28677).Buffer}catch(t){}function o(t,e){var r=t.charCodeAt(e);return r>=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 a(t,e,r){var n=o(t,r);return r-1>=e&&(n|=o(t,r-1)<<4),n}function s(t,e,r,i){for(var f=0,o=0,a=Math.min(t.length,r),s=e;s<a;s++){var u=t.charCodeAt(s)-48;f*=i,o=u>=49?u-49+10:u>=17?u-17+10:u,n(u>=0&&o<i,"Invalid character"),f+=o}return f}function u(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(f.isBN=function(t){return t instanceof f||null!==t&&"object"==typeof t&&t.constructor.wordSize===f.wordSize&&Array.isArray(t.words)},f.max=function(t,e){return t.cmp(e)>0?t:e},f.min=function(t,e){return 0>t.cmp(e)?t:e},f.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);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},f.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)},f.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=Array(this.length);for(var i,f,o=0;o<this.length;o++)this.words[o]=0;var a=0;if("be"===r)for(o=t.length-1,i=0;o>=0;o-=3)f=t[o]|t[o-1]<<8|t[o-2]<<16,this.words[i]|=f<<a&67108863,this.words[i+1]=f>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);else if("le"===r)for(o=0,i=0;o<t.length;o+=3)f=t[o]|t[o+1]<<8|t[o+2]<<16,this.words[i]|=f<<a&67108863,this.words[i+1]=f>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);return this._strip()},f.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=Array(this.length);for(var n,i=0;i<this.length;i++)this.words[i]=0;var f=0,o=0;if("be"===r)for(i=t.length-1;i>=e;i-=2)n=a(t,e,i)<<f,this.words[o]|=67108863&n,f>=18?(f-=18,o+=1,this.words[o]|=n>>>26):f+=8;else for(i=(t.length-e)%2==0?e+1:e;i<t.length;i+=2)n=a(t,e,i)<<f,this.words[o]|=67108863&n,f>=18?(f-=18,o+=1,this.words[o]|=n>>>26):f+=8;this._strip()},f.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 f=t.length-r,o=f%n,a=Math.min(f,f-o)+r,u=0,l=r;l<a;l+=n)u=s(t,l,l+n,e),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==o){var h=1;for(u=s(t,l,t.length,e),l=0;l<o;l++)h*=e;this.imuln(h),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this._strip()},f.prototype.copy=function(t){t.words=Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},f.prototype._move=function(t){u(t,this)},f.prototype.clone=function(){var t=new f(null);return this.copy(t),t},f.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},f.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},f.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{f.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(t){f.prototype.inspect=l}else f.prototype.inspect=l;function l(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var h,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"],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];function m(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],f=0|e.words[0],o=i*f,a=67108863&o,s=o/67108864|0;r.words[0]=a;for(var u=1;u<n;u++){for(var l=s>>>26,h=67108863&s,c=Math.min(u,e.length-1),d=Math.max(0,u-t.length+1);d<=c;d++){var p=u-d|0;l+=(o=(i=0|t.words[p])*(f=0|e.words[d])+h)/67108864|0,h=67108863&o}r.words[u]=0|h,s=0|l}return 0!==s?r.words[u]=0|s:r.length--,r._strip()}f.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var r,i=0,f=0,o=0;o<this.length;o++){var a=this.words[o],s=((a<<i|f)&16777215).toString(16);f=a>>>24-i&16777215,(i+=2)>=26&&(i-=26,o--),r=0!==f||o!==this.length-1?c[6-s.length]+s+r:s+r}for(0!==f&&(r=f.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var u=d[t],l=p[t];r="";var h=this.clone();for(h.negative=0;!h.isZero();){var m=h.modrn(l).toString(t);r=(h=h.idivn(l)).isZero()?m+r:c[u-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},f.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},f.prototype.toJSON=function(){return this.toString(16,2)},h&&(f.prototype.toBuffer=function(t,e){return this.toArrayLike(h,t,e)}),f.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},f.prototype.toArrayLike=function(t,e,r){this._strip();var i=this.byteLength(),f=r||Math.max(1,i);n(i<=f,"byte array longer than desired length"),n(f>0,"Requested array length <= 0");var o=t.allocUnsafe?t.allocUnsafe(f):new t(f);return this["_toArrayLike"+("le"===e?"LE":"BE")](o,i),o},f.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,i=0,f=0;i<this.length;i++){var o=this.words[i]<<f|n;t[r++]=255&o,r<t.length&&(t[r++]=o>>8&255),r<t.length&&(t[r++]=o>>16&255),6===f?(r<t.length&&(t[r++]=o>>24&255),n=0,f=0):(n=o>>>24,f+=2)}if(r<t.length)for(t[r++]=n;r<t.length;)t[r++]=0},f.prototype._toArrayLikeBE=function(t,e){for(var r=t.length-1,n=0,i=0,f=0;i<this.length;i++){var o=this.words[i]<<f|n;t[r--]=255&o,r>=0&&(t[r--]=o>>8&255),r>=0&&(t[r--]=o>>16&255),6===f?(r>=0&&(t[r--]=o>>24&255),n=0,f=0):(n=o>>>24,f+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?f.prototype._countBits=function(t){return 32-Math.clz32(t)}:f.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},f.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return(8191&e)==0&&(r+=13,e>>>=13),(127&e)==0&&(r+=7,e>>>=7),(15&e)==0&&(r+=4,e>>>=4),(3&e)==0&&(r+=2,e>>>=2),(1&e)==0&&r++,r},f.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return(this.length-1)*26+e},f.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},f.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},f.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},f.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},f.prototype.isNeg=function(){return 0!==this.negative},f.prototype.neg=function(){return this.clone().ineg()},f.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},f.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},f.prototype.ior=function(t){return n((this.negative|t.negative)==0),this.iuor(t)},f.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},f.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},f.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this._strip()},f.prototype.iand=function(t){return n((this.negative|t.negative)==0),this.iuand(t)},f.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},f.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},f.prototype.iuxor=function(t){this.length>t.length?(e=this,r=t):(e=t,r=this);for(var e,r,n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this._strip()},f.prototype.ixor=function(t){return n((this.negative|t.negative)==0),this.iuxor(t)},f.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},f.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},f.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;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},f.prototype.notn=function(t){return this.clone().inotn(t)},f.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),e?this.words[r]=this.words[r]|1<<i:this.words[r]=this.words[r]&~(1<<i),this._strip()},f.prototype.iadd=function(t){if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var e,r,n,i=0,f=0;f<n.length;f++)e=(0|r.words[f])+(0|n.words[f])+i,this.words[f]=67108863&e,i=e>>>26;for(;0!==i&&f<r.length;f++)e=(0|r.words[f])+i,this.words[f]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;f<r.length;f++)this.words[f]=r.words[f];return this},f.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},f.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e,r,n=this.iadd(t);return t.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(e=this,r=t):(e=t,r=this);for(var f=0,o=0;o<r.length;o++)f=(n=(0|e.words[o])-(0|r.words[o])+f)>>26,this.words[o]=67108863&n;for(;0!==f&&o<e.length;o++)f=(n=(0|e.words[o])+f)>>26,this.words[o]=67108863&n;if(0===f&&o<e.length&&e!==this)for(;o<e.length;o++)this.words[o]=e.words[o];return this.length=Math.max(this.length,o),e!==this&&(this.negative=1),this._strip()},f.prototype.sub=function(t){return this.clone().isub(t)};var g=function(t,e,r){var n,i,f,o=t.words,a=e.words,s=r.words,u=0,l=0|o[0],h=8191&l,c=l>>>13,d=0|o[1],p=8191&d,m=d>>>13,g=0|o[2],b=8191&g,y=g>>>13,v=0|o[3],w=8191&v,M=v>>>13,E=0|o[4],A=8191&E,S=E>>>13,_=0|o[5],N=8191&_,T=_>>>13,R=0|o[6],C=8191&R,I=R>>>13,P=0|o[7],O=8191&P,x=P>>>13,k=0|o[8],F=8191&k,B=k>>>13,L=0|o[9],D=8191&L,U=L>>>13,G=0|a[0],z=8191&G,J=G>>>13,j=0|a[1],H=8191&j,V=j>>>13,X=0|a[2],q=8191&X,Z=X>>>13,K=0|a[3],W=8191&K,Y=K>>>13,Q=0|a[4],$=8191&Q,tt=Q>>>13,te=0|a[5],tr=8191&te,tn=te>>>13,ti=0|a[6],tf=8191&ti,to=ti>>>13,ta=0|a[7],ts=8191&ta,tu=ta>>>13,tl=0|a[8],th=8191&tl,tc=tl>>>13,td=0|a[9],tp=8191&td,tm=td>>>13;r.negative=t.negative^e.negative,r.length=19;var tg=(u+(n=Math.imul(h,z))|0)+((8191&(i=(i=Math.imul(h,J))+Math.imul(c,z)|0))<<13)|0;u=((f=Math.imul(c,J))+(i>>>13)|0)+(tg>>>26)|0,tg&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,J))+Math.imul(m,z)|0,f=Math.imul(m,J);var tb=(u+(n=n+Math.imul(h,H)|0)|0)+((8191&(i=(i=i+Math.imul(h,V)|0)+Math.imul(c,H)|0))<<13)|0;u=((f=f+Math.imul(c,V)|0)+(i>>>13)|0)+(tb>>>26)|0,tb&=67108863,n=Math.imul(b,z),i=(i=Math.imul(b,J))+Math.imul(y,z)|0,f=Math.imul(y,J),n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,H)|0,f=f+Math.imul(m,V)|0;var ty=(u+(n=n+Math.imul(h,q)|0)|0)+((8191&(i=(i=i+Math.imul(h,Z)|0)+Math.imul(c,q)|0))<<13)|0;u=((f=f+Math.imul(c,Z)|0)+(i>>>13)|0)+(ty>>>26)|0,ty&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,J))+Math.imul(M,z)|0,f=Math.imul(M,J),n=n+Math.imul(b,H)|0,i=(i=i+Math.imul(b,V)|0)+Math.imul(y,H)|0,f=f+Math.imul(y,V)|0,n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,q)|0,f=f+Math.imul(m,Z)|0;var tv=(u+(n=n+Math.imul(h,W)|0)|0)+((8191&(i=(i=i+Math.imul(h,Y)|0)+Math.imul(c,W)|0))<<13)|0;u=((f=f+Math.imul(c,Y)|0)+(i>>>13)|0)+(tv>>>26)|0,tv&=67108863,n=Math.imul(A,z),i=(i=Math.imul(A,J))+Math.imul(S,z)|0,f=Math.imul(S,J),n=n+Math.imul(w,H)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(M,H)|0,f=f+Math.imul(M,V)|0,n=n+Math.imul(b,q)|0,i=(i=i+Math.imul(b,Z)|0)+Math.imul(y,q)|0,f=f+Math.imul(y,Z)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,W)|0,f=f+Math.imul(m,Y)|0;var tw=(u+(n=n+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(c,$)|0))<<13)|0;u=((f=f+Math.imul(c,tt)|0)+(i>>>13)|0)+(tw>>>26)|0,tw&=67108863,n=Math.imul(N,z),i=(i=Math.imul(N,J))+Math.imul(T,z)|0,f=Math.imul(T,J),n=n+Math.imul(A,H)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(S,H)|0,f=f+Math.imul(S,V)|0,n=n+Math.imul(w,q)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(M,q)|0,f=f+Math.imul(M,Z)|0,n=n+Math.imul(b,W)|0,i=(i=i+Math.imul(b,Y)|0)+Math.imul(y,W)|0,f=f+Math.imul(y,Y)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,$)|0,f=f+Math.imul(m,tt)|0;var tM=(u+(n=n+Math.imul(h,tr)|0)|0)+((8191&(i=(i=i+Math.imul(h,tn)|0)+Math.imul(c,tr)|0))<<13)|0;u=((f=f+Math.imul(c,tn)|0)+(i>>>13)|0)+(tM>>>26)|0,tM&=67108863,n=Math.imul(C,z),i=(i=Math.imul(C,J))+Math.imul(I,z)|0,f=Math.imul(I,J),n=n+Math.imul(N,H)|0,i=(i=i+Math.imul(N,V)|0)+Math.imul(T,H)|0,f=f+Math.imul(T,V)|0,n=n+Math.imul(A,q)|0,i=(i=i+Math.imul(A,Z)|0)+Math.imul(S,q)|0,f=f+Math.imul(S,Z)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(M,W)|0,f=f+Math.imul(M,Y)|0,n=n+Math.imul(b,$)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(y,$)|0,f=f+Math.imul(y,tt)|0,n=n+Math.imul(p,tr)|0,i=(i=i+Math.imul(p,tn)|0)+Math.imul(m,tr)|0,f=f+Math.imul(m,tn)|0;var tE=(u+(n=n+Math.imul(h,tf)|0)|0)+((8191&(i=(i=i+Math.imul(h,to)|0)+Math.imul(c,tf)|0))<<13)|0;u=((f=f+Math.imul(c,to)|0)+(i>>>13)|0)+(tE>>>26)|0,tE&=67108863,n=Math.imul(O,z),i=(i=Math.imul(O,J))+Math.imul(x,z)|0,f=Math.imul(x,J),n=n+Math.imul(C,H)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(I,H)|0,f=f+Math.imul(I,V)|0,n=n+Math.imul(N,q)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(T,q)|0,f=f+Math.imul(T,Z)|0,n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(S,W)|0,f=f+Math.imul(S,Y)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(M,$)|0,f=f+Math.imul(M,tt)|0,n=n+Math.imul(b,tr)|0,i=(i=i+Math.imul(b,tn)|0)+Math.imul(y,tr)|0,f=f+Math.imul(y,tn)|0,n=n+Math.imul(p,tf)|0,i=(i=i+Math.imul(p,to)|0)+Math.imul(m,tf)|0,f=f+Math.imul(m,to)|0;var tA=(u+(n=n+Math.imul(h,ts)|0)|0)+((8191&(i=(i=i+Math.imul(h,tu)|0)+Math.imul(c,ts)|0))<<13)|0;u=((f=f+Math.imul(c,tu)|0)+(i>>>13)|0)+(tA>>>26)|0,tA&=67108863,n=Math.imul(F,z),i=(i=Math.imul(F,J))+Math.imul(B,z)|0,f=Math.imul(B,J),n=n+Math.imul(O,H)|0,i=(i=i+Math.imul(O,V)|0)+Math.imul(x,H)|0,f=f+Math.imul(x,V)|0,n=n+Math.imul(C,q)|0,i=(i=i+Math.imul(C,Z)|0)+Math.imul(I,q)|0,f=f+Math.imul(I,Z)|0,n=n+Math.imul(N,W)|0,i=(i=i+Math.imul(N,Y)|0)+Math.imul(T,W)|0,f=f+Math.imul(T,Y)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(S,$)|0,f=f+Math.imul(S,tt)|0,n=n+Math.imul(w,tr)|0,i=(i=i+Math.imul(w,tn)|0)+Math.imul(M,tr)|0,f=f+Math.imul(M,tn)|0,n=n+Math.imul(b,tf)|0,i=(i=i+Math.imul(b,to)|0)+Math.imul(y,tf)|0,f=f+Math.imul(y,to)|0,n=n+Math.imul(p,ts)|0,i=(i=i+Math.imul(p,tu)|0)+Math.imul(m,ts)|0,f=f+Math.imul(m,tu)|0;var tS=(u+(n=n+Math.imul(h,th)|0)|0)+((8191&(i=(i=i+Math.imul(h,tc)|0)+Math.imul(c,th)|0))<<13)|0;u=((f=f+Math.imul(c,tc)|0)+(i>>>13)|0)+(tS>>>26)|0,tS&=67108863,n=Math.imul(D,z),i=(i=Math.imul(D,J))+Math.imul(U,z)|0,f=Math.imul(U,J),n=n+Math.imul(F,H)|0,i=(i=i+Math.imul(F,V)|0)+Math.imul(B,H)|0,f=f+Math.imul(B,V)|0,n=n+Math.imul(O,q)|0,i=(i=i+Math.imul(O,Z)|0)+Math.imul(x,q)|0,f=f+Math.imul(x,Z)|0,n=n+Math.imul(C,W)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(I,W)|0,f=f+Math.imul(I,Y)|0,n=n+Math.imul(N,$)|0,i=(i=i+Math.imul(N,tt)|0)+Math.imul(T,$)|0,f=f+Math.imul(T,tt)|0,n=n+Math.imul(A,tr)|0,i=(i=i+Math.imul(A,tn)|0)+Math.imul(S,tr)|0,f=f+Math.imul(S,tn)|0,n=n+Math.imul(w,tf)|0,i=(i=i+Math.imul(w,to)|0)+Math.imul(M,tf)|0,f=f+Math.imul(M,to)|0,n=n+Math.imul(b,ts)|0,i=(i=i+Math.imul(b,tu)|0)+Math.imul(y,ts)|0,f=f+Math.imul(y,tu)|0,n=n+Math.imul(p,th)|0,i=(i=i+Math.imul(p,tc)|0)+Math.imul(m,th)|0,f=f+Math.imul(m,tc)|0;var t_=(u+(n=n+Math.imul(h,tp)|0)|0)+((8191&(i=(i=i+Math.imul(h,tm)|0)+Math.imul(c,tp)|0))<<13)|0;u=((f=f+Math.imul(c,tm)|0)+(i>>>13)|0)+(t_>>>26)|0,t_&=67108863,n=Math.imul(D,H),i=(i=Math.imul(D,V))+Math.imul(U,H)|0,f=Math.imul(U,V),n=n+Math.imul(F,q)|0,i=(i=i+Math.imul(F,Z)|0)+Math.imul(B,q)|0,f=f+Math.imul(B,Z)|0,n=n+Math.imul(O,W)|0,i=(i=i+Math.imul(O,Y)|0)+Math.imul(x,W)|0,f=f+Math.imul(x,Y)|0,n=n+Math.imul(C,$)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(I,$)|0,f=f+Math.imul(I,tt)|0,n=n+Math.imul(N,tr)|0,i=(i=i+Math.imul(N,tn)|0)+Math.imul(T,tr)|0,f=f+Math.imul(T,tn)|0,n=n+Math.imul(A,tf)|0,i=(i=i+Math.imul(A,to)|0)+Math.imul(S,tf)|0,f=f+Math.imul(S,to)|0,n=n+Math.imul(w,ts)|0,i=(i=i+Math.imul(w,tu)|0)+Math.imul(M,ts)|0,f=f+Math.imul(M,tu)|0,n=n+Math.imul(b,th)|0,i=(i=i+Math.imul(b,tc)|0)+Math.imul(y,th)|0,f=f+Math.imul(y,tc)|0;var tN=(u+(n=n+Math.imul(p,tp)|0)|0)+((8191&(i=(i=i+Math.imul(p,tm)|0)+Math.imul(m,tp)|0))<<13)|0;u=((f=f+Math.imul(m,tm)|0)+(i>>>13)|0)+(tN>>>26)|0,tN&=67108863,n=Math.imul(D,q),i=(i=Math.imul(D,Z))+Math.imul(U,q)|0,f=Math.imul(U,Z),n=n+Math.imul(F,W)|0,i=(i=i+Math.imul(F,Y)|0)+Math.imul(B,W)|0,f=f+Math.imul(B,Y)|0,n=n+Math.imul(O,$)|0,i=(i=i+Math.imul(O,tt)|0)+Math.imul(x,$)|0,f=f+Math.imul(x,tt)|0,n=n+Math.imul(C,tr)|0,i=(i=i+Math.imul(C,tn)|0)+Math.imul(I,tr)|0,f=f+Math.imul(I,tn)|0,n=n+Math.imul(N,tf)|0,i=(i=i+Math.imul(N,to)|0)+Math.imul(T,tf)|0,f=f+Math.imul(T,to)|0,n=n+Math.imul(A,ts)|0,i=(i=i+Math.imul(A,tu)|0)+Math.imul(S,ts)|0,f=f+Math.imul(S,tu)|0,n=n+Math.imul(w,th)|0,i=(i=i+Math.imul(w,tc)|0)+Math.imul(M,th)|0,f=f+Math.imul(M,tc)|0;var tT=(u+(n=n+Math.imul(b,tp)|0)|0)+((8191&(i=(i=i+Math.imul(b,tm)|0)+Math.imul(y,tp)|0))<<13)|0;u=((f=f+Math.imul(y,tm)|0)+(i>>>13)|0)+(tT>>>26)|0,tT&=67108863,n=Math.imul(D,W),i=(i=Math.imul(D,Y))+Math.imul(U,W)|0,f=Math.imul(U,Y),n=n+Math.imul(F,$)|0,i=(i=i+Math.imul(F,tt)|0)+Math.imul(B,$)|0,f=f+Math.imul(B,tt)|0,n=n+Math.imul(O,tr)|0,i=(i=i+Math.imul(O,tn)|0)+Math.imul(x,tr)|0,f=f+Math.imul(x,tn)|0,n=n+Math.imul(C,tf)|0,i=(i=i+Math.imul(C,to)|0)+Math.imul(I,tf)|0,f=f+Math.imul(I,to)|0,n=n+Math.imul(N,ts)|0,i=(i=i+Math.imul(N,tu)|0)+Math.imul(T,ts)|0,f=f+Math.imul(T,tu)|0,n=n+Math.imul(A,th)|0,i=(i=i+Math.imul(A,tc)|0)+Math.imul(S,th)|0,f=f+Math.imul(S,tc)|0;var tR=(u+(n=n+Math.imul(w,tp)|0)|0)+((8191&(i=(i=i+Math.imul(w,tm)|0)+Math.imul(M,tp)|0))<<13)|0;u=((f=f+Math.imul(M,tm)|0)+(i>>>13)|0)+(tR>>>26)|0,tR&=67108863,n=Math.imul(D,$),i=(i=Math.imul(D,tt))+Math.imul(U,$)|0,f=Math.imul(U,tt),n=n+Math.imul(F,tr)|0,i=(i=i+Math.imul(F,tn)|0)+Math.imul(B,tr)|0,f=f+Math.imul(B,tn)|0,n=n+Math.imul(O,tf)|0,i=(i=i+Math.imul(O,to)|0)+Math.imul(x,tf)|0,f=f+Math.imul(x,to)|0,n=n+Math.imul(C,ts)|0,i=(i=i+Math.imul(C,tu)|0)+Math.imul(I,ts)|0,f=f+Math.imul(I,tu)|0,n=n+Math.imul(N,th)|0,i=(i=i+Math.imul(N,tc)|0)+Math.imul(T,th)|0,f=f+Math.imul(T,tc)|0;var tC=(u+(n=n+Math.imul(A,tp)|0)|0)+((8191&(i=(i=i+Math.imul(A,tm)|0)+Math.imul(S,tp)|0))<<13)|0;u=((f=f+Math.imul(S,tm)|0)+(i>>>13)|0)+(tC>>>26)|0,tC&=67108863,n=Math.imul(D,tr),i=(i=Math.imul(D,tn))+Math.imul(U,tr)|0,f=Math.imul(U,tn),n=n+Math.imul(F,tf)|0,i=(i=i+Math.imul(F,to)|0)+Math.imul(B,tf)|0,f=f+Math.imul(B,to)|0,n=n+Math.imul(O,ts)|0,i=(i=i+Math.imul(O,tu)|0)+Math.imul(x,ts)|0,f=f+Math.imul(x,tu)|0,n=n+Math.imul(C,th)|0,i=(i=i+Math.imul(C,tc)|0)+Math.imul(I,th)|0,f=f+Math.imul(I,tc)|0;var tI=(u+(n=n+Math.imul(N,tp)|0)|0)+((8191&(i=(i=i+Math.imul(N,tm)|0)+Math.imul(T,tp)|0))<<13)|0;u=((f=f+Math.imul(T,tm)|0)+(i>>>13)|0)+(tI>>>26)|0,tI&=67108863,n=Math.imul(D,tf),i=(i=Math.imul(D,to))+Math.imul(U,tf)|0,f=Math.imul(U,to),n=n+Math.imul(F,ts)|0,i=(i=i+Math.imul(F,tu)|0)+Math.imul(B,ts)|0,f=f+Math.imul(B,tu)|0,n=n+Math.imul(O,th)|0,i=(i=i+Math.imul(O,tc)|0)+Math.imul(x,th)|0,f=f+Math.imul(x,tc)|0;var tP=(u+(n=n+Math.imul(C,tp)|0)|0)+((8191&(i=(i=i+Math.imul(C,tm)|0)+Math.imul(I,tp)|0))<<13)|0;u=((f=f+Math.imul(I,tm)|0)+(i>>>13)|0)+(tP>>>26)|0,tP&=67108863,n=Math.imul(D,ts),i=(i=Math.imul(D,tu))+Math.imul(U,ts)|0,f=Math.imul(U,tu),n=n+Math.imul(F,th)|0,i=(i=i+Math.imul(F,tc)|0)+Math.imul(B,th)|0,f=f+Math.imul(B,tc)|0;var tO=(u+(n=n+Math.imul(O,tp)|0)|0)+((8191&(i=(i=i+Math.imul(O,tm)|0)+Math.imul(x,tp)|0))<<13)|0;u=((f=f+Math.imul(x,tm)|0)+(i>>>13)|0)+(tO>>>26)|0,tO&=67108863,n=Math.imul(D,th),i=(i=Math.imul(D,tc))+Math.imul(U,th)|0,f=Math.imul(U,tc);var tx=(u+(n=n+Math.imul(F,tp)|0)|0)+((8191&(i=(i=i+Math.imul(F,tm)|0)+Math.imul(B,tp)|0))<<13)|0;u=((f=f+Math.imul(B,tm)|0)+(i>>>13)|0)+(tx>>>26)|0,tx&=67108863;var tk=(u+(n=Math.imul(D,tp))|0)+((8191&(i=(i=Math.imul(D,tm))+Math.imul(U,tp)|0))<<13)|0;return u=((f=Math.imul(U,tm))+(i>>>13)|0)+(tk>>>26)|0,tk&=67108863,s[0]=tg,s[1]=tb,s[2]=ty,s[3]=tv,s[4]=tw,s[5]=tM,s[6]=tE,s[7]=tA,s[8]=tS,s[9]=t_,s[10]=tN,s[11]=tT,s[12]=tR,s[13]=tC,s[14]=tI,s[15]=tP,s[16]=tO,s[17]=tx,s[18]=tk,0!==u&&(s[19]=u,r.length++),r};function b(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,f=0;f<r.length-1;f++){var o=i;i=0;for(var a=67108863&n,s=Math.min(f,e.length-1),u=Math.max(0,f-t.length+1);u<=s;u++){var l=f-u,h=(0|t.words[l])*(0|e.words[u]),c=67108863&h;o=o+(h/67108864|0)|0,a=67108863&(c=c+a|0),i+=(o=o+(c>>>26)|0)>>>26,o&=67108863}r.words[f]=a,n=o,o=i}return 0!==n?r.words[f]=n:r.length--,r._strip()}function y(t,e){this.x=t,this.y=e}Math.imul||(g=m),f.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return 10===this.length&&10===t.length?g(this,t,e):n<63?m(this,t,e):b(this,t,e)},y.prototype.makeRBT=function(t){for(var e=Array(t),r=f.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},y.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},y.prototype.permute=function(t,e,r,n,i,f){for(var o=0;o<f;o++)n[o]=e[t[o]],i[o]=r[t[o]]},y.prototype.transform=function(t,e,r,n,i,f){this.permute(f,t,e,r,n,i);for(var o=1;o<i;o<<=1)for(var a=o<<1,s=Math.cos(2*Math.PI/a),u=Math.sin(2*Math.PI/a),l=0;l<i;l+=a)for(var h=s,c=u,d=0;d<o;d++){var p=r[l+d],m=n[l+d],g=r[l+d+o],b=n[l+d+o],y=h*g-c*b;b=h*b+c*g,g=y,r[l+d]=p+g,n[l+d]=m+b,r[l+d+o]=p-g,n[l+d+o]=m-b,d!==a&&(y=s*h-u*c,c=s*c+u*h,h=y)}},y.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},y.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},y.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},y.prototype.convert13b=function(t,e,r,i){for(var f=0,o=0;o<e;o++)f+=0|t[o],r[2*o]=8191&f,f>>>=13,r[2*o+1]=8191&f,f>>>=13;for(o=2*e;o<i;++o)r[o]=0;n(0===f),n((-8192&f)==0)},y.prototype.stub=function(t){for(var e=Array(t),r=0;r<t;r++)e[r]=0;return e},y.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),f=this.stub(n),o=Array(n),a=Array(n),s=Array(n),u=Array(n),l=Array(n),h=Array(n),c=r.words;c.length=n,this.convert13b(t.words,t.length,o,n),this.convert13b(e.words,e.length,u,n),this.transform(o,f,a,s,n,i),this.transform(u,f,l,h,n,i);for(var d=0;d<n;d++){var p=a[d]*l[d]-s[d]*h[d];s[d]=a[d]*h[d]+s[d]*l[d],a[d]=p}return this.conjugate(a,s,n),this.transform(a,s,c,f,n,i),this.conjugate(c,f,n),this.normalize13b(c,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r._strip()},f.prototype.mul=function(t){var e=new f(null);return e.words=Array(this.length+t.length),this.mulTo(t,e)},f.prototype.mulf=function(t){var e=new f(null);return e.words=Array(this.length+t.length),b(this,t,e)},f.prototype.imul=function(t){return this.clone().mulTo(t,this)},f.prototype.imuln=function(t){var e=t<0;e&&(t=-t),n("number"==typeof t),n(t<67108864);for(var r=0,i=0;i<this.length;i++){var f=(0|this.words[i])*t,o=(67108863&f)+(67108863&r);r>>=26,r+=(f/67108864|0)+(o>>>26),this.words[i]=67108863&o}return 0!==r&&(this.words[i]=r,this.length++),e?this.ineg():this},f.prototype.muln=function(t){return this.clone().imuln(t)},f.prototype.sqr=function(){return this.mul(this)},f.prototype.isqr=function(){return this.imul(this.clone())},f.prototype.pow=function(t){var e=function(t){for(var e=Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=t.words[n]>>>i&1}return e}(t);if(0===e.length)return new f(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},f.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,f=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(e=0;e<this.length;e++){var a=this.words[e]&f,s=(0|this.words[e])-a<<r;this.words[e]=s|o,o=a>>>26-r}o&&(this.words[e]=o,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this._strip()},f.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},f.prototype.iushrn=function(t,e,r){n("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var i,f=t%26,o=Math.min((t-f)/26,this.length),a=67108863^67108863>>>f<<f;if(i-=o,i=Math.max(0,i),r){for(var s=0;s<o;s++)r.words[s]=this.words[s];r.length=o}if(0===o);else if(this.length>o)for(this.length-=o,s=0;s<this.length;s++)this.words[s]=this.words[s+o];else this.words[0]=0,this.length=1;var u=0;for(s=this.length-1;s>=0&&(0!==u||s>=i);s--){var l=0|this.words[s];this.words[s]=u<<26-f|l>>>f,u=l&a}return r&&0!==u&&(r.words[r.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},f.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},f.prototype.shln=function(t){return this.clone().ishln(t)},f.prototype.ushln=function(t){return this.clone().iushln(t)},f.prototype.shrn=function(t){return this.clone().ishrn(t)},f.prototype.ushrn=function(t){return this.clone().iushrn(t)},f.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;return!(this.length<=r)&&!!(this.words[r]&1<<e)},f.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;return(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)?this:(0!==e&&r++,this.length=Math.min(r,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<<e),this._strip())},f.prototype.maskn=function(t){return this.clone().imaskn(t)},f.prototype.iaddn=function(t){return(n("number"==typeof t),n(t<67108864),t<0)?this.isubn(-t):0!==this.negative?(1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(t),this.negative=1),this):this._iaddn(t)},f.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[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},f.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<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},f.prototype.addn=function(t){return this.clone().iaddn(t)},f.prototype.subn=function(t){return this.clone().isubn(t)},f.prototype.iabs=function(){return this.negative=0,this},f.prototype.abs=function(){return this.clone().iabs()},f.prototype._ishlnsubmul=function(t,e,r){var i,f,o=t.length+r;this._expand(o);var a=0;for(i=0;i<t.length;i++){f=(0|this.words[i+r])+a;var s=(0|t.words[i])*e;f-=67108863&s,a=(f>>26)-(s/67108864|0),this.words[i+r]=67108863&f}for(;i<this.length-r;i++)a=(f=(0|this.words[i+r])+a)>>26,this.words[i+r]=67108863&f;if(0===a)return this._strip();for(n(-1===a),a=0,i=0;i<this.length;i++)a=(f=-(0|this.words[i])+a)>>26,this.words[i]=67108863&f;return this.negative=1,this._strip()},f.prototype._wordDiv=function(t,e){var r,n=this.length-t.length,i=this.clone(),o=t,a=0|o.words[o.length-1];0!=(n=26-this._countBits(a))&&(o=o.ushln(n),i.iushln(n),a=0|o.words[o.length-1]);var s=i.length-o.length;if("mod"!==e){(r=new f(null)).length=s+1,r.words=Array(r.length);for(var u=0;u<r.length;u++)r.words[u]=0}var l=i.clone()._ishlnsubmul(o,1,s);0===l.negative&&(i=l,r&&(r.words[s]=1));for(var h=s-1;h>=0;h--){var c=(0|i.words[o.length+h])*67108864+(0|i.words[o.length+h-1]);for(c=Math.min(c/a|0,67108863),i._ishlnsubmul(o,c,h);0!==i.negative;)c--,i.negative=0,i._ishlnsubmul(o,1,h),i.isZero()||(i.negative^=1);r&&(r.words[h]=c)}return r&&r._strip(),i._strip(),"div"!==e&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},f.prototype.divmod=function(t,e,r){var i,o,a;return(n(!t.isZero()),this.isZero())?{div:new f(0),mod:new f(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:i,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):(this.negative&t.negative)!=0?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||0>this.cmp(t)?{div:new f(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new f(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new f(this.modrn(t.words[0]))}:this._wordDiv(t,e)},f.prototype.div=function(t){return this.divmod(t,"div",!1).div},f.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},f.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},f.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),f=r.cmp(n);return f<0||1===i&&0===f?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},f.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=67108864%t,i=0,f=this.length-1;f>=0;f--)i=(r*i+(0|this.words[f]))%t;return e?-i:i},f.prototype.modn=function(t){return this.modrn(t)},f.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 f=(0|this.words[i])+67108864*r;this.words[i]=f/t|0,r=f%t}return this._strip(),e?this.ineg():this},f.prototype.divn=function(t){return this.clone().idivn(t)},f.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();for(var i=new f(1),o=new f(0),a=new f(0),s=new f(1),u=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++u;for(var l=r.clone(),h=e.clone();!e.isZero();){for(var c=0,d=1;(e.words[0]&d)==0&&c<26;++c,d<<=1);if(c>0)for(e.iushrn(c);c-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(l),o.isub(h)),i.iushrn(1),o.iushrn(1);for(var p=0,m=1;(r.words[0]&m)==0&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||s.isOdd())&&(a.iadd(l),s.isub(h)),a.iushrn(1),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(a),o.isub(s)):(r.isub(e),a.isub(i),s.isub(o))}return{a:a,b:s,gcd:r.iushln(u)}},f.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e,r=this,i=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var o=new f(1),a=new f(0),s=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var u=0,l=1;(r.words[0]&l)==0&&u<26;++u,l<<=1);if(u>0)for(r.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);for(var h=0,c=1;(i.words[0]&c)==0&&h<26;++h,c<<=1);if(h>0)for(i.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);r.cmp(i)>=0?(r.isub(i),o.isub(a)):(i.isub(r),a.isub(o))}return 0>(e=0===r.cmpn(1)?o:a).cmpn(0)&&e.iadd(t),e},f.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);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var f=e;e=r,r=f}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},f.prototype.invm=function(t){return this.egcd(t).a.umod(t)},f.prototype.isEven=function(){return(1&this.words[0])==0},f.prototype.isOdd=function(){return(1&this.words[0])==1},f.prototype.andln=function(t){return this.words[0]&t},f.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var f=i,o=r;0!==f&&o<this.length;o++){var a=0|this.words[o];a+=f,f=a>>>26,a&=67108863,this.words[o]=a}return 0!==f&&(this.words[o]=f,this.length++),this},f.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},f.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:i<t?-1:1}return 0!==this.negative?0|-e:e},f.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return -1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},f.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return -1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},f.prototype.gtn=function(t){return 1===this.cmpn(t)},f.prototype.gt=function(t){return 1===this.cmp(t)},f.prototype.gten=function(t){return this.cmpn(t)>=0},f.prototype.gte=function(t){return this.cmp(t)>=0},f.prototype.ltn=function(t){return -1===this.cmpn(t)},f.prototype.lt=function(t){return -1===this.cmp(t)},f.prototype.lten=function(t){return 0>=this.cmpn(t)},f.prototype.lte=function(t){return 0>=this.cmp(t)},f.prototype.eqn=function(t){return 0===this.cmpn(t)},f.prototype.eq=function(t){return 0===this.cmp(t)},f.red=function(t){return new _(t)},f.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)},f.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},f.prototype._forceRed=function(t){return this.red=t,this},f.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},f.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},f.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},f.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},f.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},f.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},f.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},f.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},f.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},f.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},f.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},f.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},f.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},f.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new f(e,16),this.n=this.p.bitLength(),this.k=new f(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 E(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(t){if("string"==typeof t){var e=f._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 N(t){_.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new f(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 f(null);return t.words=Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,r=t;do this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?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=Math.min(t.length,9),n=0;n<r;n++)e.words[n]=t.words[n];if(e.length=r,t.length<=9){t.words[0]=0,t.length=1;return}var i=t.words[9];for(n=10,e.words[e.length++]=4194303&i;n<t.length;n++){var f=0|t.words[n];t.words[n-10]=(4194303&f)<<4|i>>>22,i=f}i>>>=22,t.words[n-10]=i,0===i&&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<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(E,w),i(A,w),i(S,w),S.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=(0|t.words[r])*19+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},f._prime=function(t){var e;if(v[t])return v[t];if("k256"===t)e=new M;else if("p224"===t)e=new E;else if("p192"===t)e=new A;else if("p25519"===t)e=new S;else throw Error("Unknown prime "+t);return v[t]=e,e},_.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},_.prototype._verify2=function(t,e){n((t.negative|e.negative)==0,"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},_.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(u(t,t.umod(this.m)._forceRed(this)),t)},_.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},_.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)},_.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},_.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},_.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return 0>r.cmpn(0)&&r.iadd(this.m),r},_.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},_.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},_.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},_.prototype.isqr=function(t){return this.imul(t,t.clone())},_.prototype.sqr=function(t){return this.mul(t,t)},_.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 f(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var a=new f(1).toRed(this),s=a.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new f(2*l*l).toRed(this);0!==this.pow(l,u).cmp(s);)l.redIAdd(s);for(var h=this.pow(l,i),c=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=o;0!==d.cmp(a);){for(var m=d,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g<p);var b=this.pow(h,new f(1).iushln(p-g-1));c=c.redMul(b),h=b.redSqr(),d=d.redMul(h),p=g}return c},_.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},_.prototype.pow=function(t,e){if(e.isZero())return new f(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=Array(16);r[0]=new f(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],o=0,a=0,s=e.bitLength()%26;for(0===s&&(s=26),n=e.length-1;n>=0;n--){for(var u=e.words[n],l=s-1;l>=0;l--){var h=u>>l&1;if(i!==r[0]&&(i=this.sqr(i)),0===h&&0===o){a=0;continue}o<<=1,o|=h,(4==++a||0===n&&0===l)&&(i=this.mul(i,r[o]),a=0,o=0)}s=26}return i},_.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},_.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},f.mont=function(t){return new N(t)},i(N,_),N.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},N.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},N.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),f=i;return i.cmp(this.m)>=0?f=i.isub(this.m):0>i.cmpn(0)&&(f=i.iadd(this.m)),f._forceRed(this)},N.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new f(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),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},N.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},78771:function(t,e,r){var n,i=r(34155);!function(){"use strict";var f="input is invalid type",o="object"==typeof window,a=o?window:{};a.JS_SHA3_NO_WINDOW&&(o=!1);var s=!o&&"object"==typeof self;!a.JS_SHA3_NO_NODE_JS&&"object"==typeof i&&i.versions&&i.versions.node?a=r.g:s&&(a=self);var u=!a.JS_SHA3_NO_COMMON_JS&&t.exports,l=r.amdO,h=!a.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,c="0123456789abcdef".split(""),d=[4,1024,262144,67108864],p=[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],g=[224,256,384,512],b=[128,256],y=["hex","buffer","arrayBuffer","array","digest"],v={128:168,256:136};(a.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),h&&(a.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 w=function(t,e,r){return function(n){return new F(t,e,t).update(n)[r]()}},M=function(t,e,r){return function(n,i){return new F(t,e,i).update(n)[r]()}},E=function(t,e,r){return function(e,n,i,f){return T["cshake"+t].update(e,n,i,f)[r]()}},A=function(t,e,r){return function(e,n,i,f){return T["kmac"+t].update(e,n,i,f)[r]()}},S=function(t,e,r,n){for(var i=0;i<y.length;++i){var f=y[i];t[f]=e(r,n,f)}return t},_=function(t,e){var r=w(t,e,"hex");return r.create=function(){return new F(t,e,t)},r.update=function(t){return r.create().update(t)},S(r,w,t,e)},N=[{name:"keccak",padding:[1,256,65536,16777216],bits:g,createMethod:_},{name:"sha3",padding:[6,1536,393216,100663296],bits:g,createMethod:_},{name:"shake",padding:[31,7936,2031616,520093696],bits:b,createMethod:function(t,e){var r=M(t,e,"hex");return r.create=function(r){return new F(t,e,r)},r.update=function(t,e){return r.create(e).update(t)},S(r,M,t,e)}},{name:"cshake",padding:d,bits:b,createMethod:function(t,e){var r=v[t],n=E(t,e,"hex");return n.create=function(n,i,f){return i||f?new F(t,e,n).bytepad([i,f],r):T["shake"+t].create(n)},n.update=function(t,e,r,i){return n.create(e,r,i).update(t)},S(n,E,t,e)}},{name:"kmac",padding:d,bits:b,createMethod:function(t,e){var r=v[t],n=A(t,e,"hex");return n.create=function(n,i,f){return new B(t,e,i).bytepad(["KMAC",f],r).bytepad([n],r)},n.update=function(t,e,r,i){return n.create(t,r,i).update(e)},S(n,A,t,e)}}],T={},R=[],C=0;C<N.length;++C)for(var I=N[C],P=I.bits,O=0;O<P.length;++O){var x=I.name+"_"+P[O];if(R.push(x),T[x]=I.createMethod(P[O],I.padding),"sha3"!==I.name){var k=I.name+P[O];R.push(k),T[k]=T[x]}}function F(t,e,r){this.blocks=[],this.s=[],this.padding=e,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(t<<1)>>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 B(t,e,r){F.call(this,t,e,r)}F.prototype.update=function(t){if(this.finalized)throw Error("finalize already called");var e,r=typeof t;if("string"!==r){if("object"===r){if(null===t)throw Error(f);if(h&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!h||!ArrayBuffer.isView(t)))throw Error(f)}else throw Error(f);e=!0}for(var n,i,o=this.blocks,a=this.byteCount,s=t.length,u=this.blockCount,l=0,c=this.s;l<s;){if(this.reset)for(n=1,this.reset=!1,o[0]=this.block;n<u+1;++n)o[n]=0;if(e)for(n=this.start;l<s&&n<a;++l)o[n>>2]|=t[l]<<p[3&n++];else for(n=this.start;l<s&&n<a;++l)(i=t.charCodeAt(l))<128?o[n>>2]|=i<<p[3&n++]:(i<2048?o[n>>2]|=(192|i>>6)<<p[3&n++]:(i<55296||i>=57344?o[n>>2]|=(224|i>>12)<<p[3&n++]:(i=65536+((1023&i)<<10|1023&t.charCodeAt(++l)),o[n>>2]|=(240|i>>18)<<p[3&n++],o[n>>2]|=(128|i>>12&63)<<p[3&n++]),o[n>>2]|=(128|i>>6&63)<<p[3&n++]),o[n>>2]|=(128|63&i)<<p[3&n++]);if(this.lastByteIndex=n,n>=a){for(this.start=n-a,this.block=o[u],n=0;n<u;++n)c[n]^=o[n];L(c),this.reset=!0}else this.start=n}return this},F.prototype.encode=function(t,e){var r=255&t,n=1,i=[r];for(t>>=8,r=255&t;r>0;)i.unshift(r),t>>=8,r=255&t,++n;return e?i.push(n):i.unshift(n),this.update(i),i.length},F.prototype.encodeString=function(t){var e,r=typeof t;if("string"!==r){if("object"===r){if(null===t)throw Error(f);if(h&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!h||!ArrayBuffer.isView(t)))throw Error(f)}else throw Error(f);e=!0}var n=0,i=t.length;if(e)n=i;else for(var o=0;o<t.length;++o){var a=t.charCodeAt(o);a<128?n+=1:a<2048?n+=2:a<55296||a>=57344?n+=3:(a=65536+((1023&a)<<10|1023&t.charCodeAt(++o)),n+=4)}return n+=this.encode(8*n),this.update(t),n},F.prototype.bytepad=function(t,e){for(var r=this.encode(e),n=0;n<t.length;++n)r+=this.encodeString(t[n]);var i=e-r%e,f=[];return f.length=i,this.update(f),this},F.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex,r=this.blockCount,n=this.s;if(t[e>>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(e=1,t[0]=t[r];e<r+1;++e)t[e]=0;for(t[r-1]|=2147483648,e=0;e<r;++e)n[e]^=t[e];L(n)}},F.prototype.toString=F.prototype.hex=function(){this.finalize();for(var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,f=0,o=0,a="";o<n;){for(f=0;f<e&&o<n;++f,++o)a+=c[(t=r[f])>>4&15]+c[15&t]+c[t>>12&15]+c[t>>8&15]+c[t>>20&15]+c[t>>16&15]+c[t>>28&15]+c[t>>24&15];o%e==0&&(L(r),f=0)}return i&&(a+=c[(t=r[f])>>4&15]+c[15&t],i>1&&(a+=c[t>>12&15]+c[t>>8&15]),i>2&&(a+=c[t>>20&15]+c[t>>16&15])),a},F.prototype.arrayBuffer=function(){this.finalize();for(var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,f=0,o=0,a=this.outputBits>>3,s=new Uint32Array(t=new ArrayBuffer(i?n+1<<2:a));o<n;){for(f=0;f<e&&o<n;++f,++o)s[o]=r[f];o%e==0&&L(r)}return i&&(s[f]=r[f],t=t.slice(0,a)),t},F.prototype.buffer=F.prototype.arrayBuffer,F.prototype.digest=F.prototype.array=function(){this.finalize();for(var t,e,r=this.blockCount,n=this.s,i=this.outputBlocks,f=this.extraBytes,o=0,a=0,s=[];a<i;){for(o=0;o<r&&a<i;++o,++a)t=a<<2,e=n[o],s[t]=255&e,s[t+1]=e>>8&255,s[t+2]=e>>16&255,s[t+3]=e>>24&255;a%r==0&&L(n)}return f&&(t=a<<2,e=n[o],s[t]=255&e,f>1&&(s[t+1]=e>>8&255),f>2&&(s[t+2]=e>>16&255)),s},B.prototype=new F,B.prototype.finalize=function(){return this.encode(this.outputBits,!0),F.prototype.finalize.call(this)};var L=function(t){var e,r,n,i,f,o,a,s,u,l,h,c,d,p,g,b,y,v,w,M,E,A,S,_,N,T,R,C,I,P,O,x,k,F,B,L,D,U,G,z,J,j,H,V,X,q,Z,K,W,Y,Q,$,tt,te,tr,tn,ti,tf,to,ta,ts,tu,tl;for(n=0;n<48;n+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],f=t[1]^t[11]^t[21]^t[31]^t[41],o=t[2]^t[12]^t[22]^t[32]^t[42],a=t[3]^t[13]^t[23]^t[33]^t[43],s=t[4]^t[14]^t[24]^t[34]^t[44],u=t[5]^t[15]^t[25]^t[35]^t[45],l=t[6]^t[16]^t[26]^t[36]^t[46],h=t[7]^t[17]^t[27]^t[37]^t[47],c=t[8]^t[18]^t[28]^t[38]^t[48],d=t[9]^t[19]^t[29]^t[39]^t[49],e=c^(o<<1|a>>>31),r=d^(a<<1|o>>>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^(s<<1|u>>>31),r=f^(u<<1|s>>>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=o^(l<<1|h>>>31),r=a^(h<<1|l>>>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=s^(c<<1|d>>>31),r=u^(d<<1|c>>>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=l^(i<<1|f>>>31),r=h^(f<<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],g=t[1],q=t[11]<<4|t[10]>>>28,Z=t[10]<<4|t[11]>>>28,C=t[20]<<3|t[21]>>>29,I=t[21]<<3|t[20]>>>29,ta=t[31]<<9|t[30]>>>23,ts=t[30]<<9|t[31]>>>23,j=t[40]<<18|t[41]>>>14,H=t[41]<<18|t[40]>>>14,F=t[2]<<1|t[3]>>>31,B=t[3]<<1|t[2]>>>31,b=t[13]<<12|t[12]>>>20,y=t[12]<<12|t[13]>>>20,K=t[22]<<10|t[23]>>>22,W=t[23]<<10|t[22]>>>22,P=t[33]<<13|t[32]>>>19,O=t[32]<<13|t[33]>>>19,tu=t[42]<<2|t[43]>>>30,tl=t[43]<<2|t[42]>>>30,te=t[5]<<30|t[4]>>>2,tr=t[4]<<30|t[5]>>>2,L=t[14]<<6|t[15]>>>26,D=t[15]<<6|t[14]>>>26,v=t[25]<<11|t[24]>>>21,w=t[24]<<11|t[25]>>>21,Y=t[34]<<15|t[35]>>>17,Q=t[35]<<15|t[34]>>>17,x=t[45]<<29|t[44]>>>3,k=t[44]<<29|t[45]>>>3,_=t[6]<<28|t[7]>>>4,N=t[7]<<28|t[6]>>>4,tn=t[17]<<23|t[16]>>>9,ti=t[16]<<23|t[17]>>>9,U=t[26]<<25|t[27]>>>7,G=t[27]<<25|t[26]>>>7,M=t[36]<<21|t[37]>>>11,E=t[37]<<21|t[36]>>>11,$=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,V=t[8]<<27|t[9]>>>5,X=t[9]<<27|t[8]>>>5,T=t[18]<<20|t[19]>>>12,R=t[19]<<20|t[18]>>>12,tf=t[29]<<7|t[28]>>>25,to=t[28]<<7|t[29]>>>25,z=t[38]<<8|t[39]>>>24,J=t[39]<<8|t[38]>>>24,A=t[48]<<14|t[49]>>>18,S=t[49]<<14|t[48]>>>18,t[0]=p^~b&v,t[1]=g^~y&w,t[10]=_^~T&C,t[11]=N^~R&I,t[20]=F^~L&U,t[21]=B^~D&G,t[30]=V^~q&K,t[31]=X^~Z&W,t[40]=te^~tn&tf,t[41]=tr^~ti&to,t[2]=b^~v&M,t[3]=y^~w&E,t[12]=T^~C&P,t[13]=R^~I&O,t[22]=L^~U&z,t[23]=D^~G&J,t[32]=q^~K&Y,t[33]=Z^~W&Q,t[42]=tn^~tf&ta,t[43]=ti^~to&ts,t[4]=v^~M&A,t[5]=w^~E&S,t[14]=C^~P&x,t[15]=I^~O&k,t[24]=U^~z&j,t[25]=G^~J&H,t[34]=K^~Y&$,t[35]=W^~Q&tt,t[44]=tf^~ta&tu,t[45]=to^~ts&tl,t[6]=M^~A&p,t[7]=E^~S&g,t[16]=P^~x&_,t[17]=O^~k&N,t[26]=z^~j&F,t[27]=J^~H&B,t[36]=Y^~$&V,t[37]=Q^~tt&X,t[46]=ta^~tu&te,t[47]=ts^~tl&tr,t[8]=A^~p&b,t[9]=S^~g&y,t[18]=x^~_&T,t[19]=k^~N&R,t[28]=j^~F&L,t[29]=H^~B&D,t[38]=$^~V&q,t[39]=tt^~X&Z,t[48]=tu^~te&tn,t[49]=tl^~tr&ti,t[0]^=m[n],t[1]^=m[n+1]};if(u)t.exports=T;else{for(C=0;C<R.length;++C)a[R[C]]=T[R[C]];l&&void 0!==(n=(function(){return T}).call(e,r,e,t))&&(t.exports=n)}}()},82232:function(t,e,r){"use strict";var n,i,f,o;r.r(e),r.d(e,{decode:function(){return v},encode:function(){return w}});let a=!1,s=!1,u={debug:1,default:2,info:2,warning:3,error:4,off:5},l=u.default,h=null,c=function(){try{let t=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test"!=="test".normalize(e))throw Error("bad normalize")}catch(r){t.push(e)}}),t.length)throw Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw Error("broken implementation")}catch(t){return t.message}return null}();(f=n||(n={})).DEBUG="DEBUG",f.INFO="INFO",f.WARNING="WARNING",f.ERROR="ERROR",f.OFF="OFF",(o=i||(i={})).UNKNOWN_ERROR="UNKNOWN_ERROR",o.NOT_IMPLEMENTED="NOT_IMPLEMENTED",o.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",o.NETWORK_ERROR="NETWORK_ERROR",o.SERVER_ERROR="SERVER_ERROR",o.TIMEOUT="TIMEOUT",o.BUFFER_OVERRUN="BUFFER_OVERRUN",o.NUMERIC_FAULT="NUMERIC_FAULT",o.MISSING_NEW="MISSING_NEW",o.INVALID_ARGUMENT="INVALID_ARGUMENT",o.MISSING_ARGUMENT="MISSING_ARGUMENT",o.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",o.CALL_EXCEPTION="CALL_EXCEPTION",o.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",o.NONCE_EXPIRED="NONCE_EXPIRED",o.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",o.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",o.TRANSACTION_REPLACED="TRANSACTION_REPLACED",o.ACTION_REJECTED="ACTION_REJECTED";let d="0123456789abcdef";class p{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){let r=t.toLowerCase();null==u[r]&&this.throwArgumentError("invalid log level name","logLevel",t),l>u[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(s)return this.makeError("censored error",e,{});e||(e=p.errors.UNKNOWN_ERROR),r||(r={});let n=[];Object.keys(r).forEach(t=>{let e=r[t];try{if(e instanceof Uint8Array){let r="";for(let t=0;t<e.length;t++)r+=d[e[t]>>4]+d[15&e[t]];n.push(t+"=Uint8Array(0x"+r+")")}else n.push(t+"="+JSON.stringify(e))}catch(e){n.push(t+"="+JSON.stringify(r[t].toString()))}}),n.push(`code=${e}`),n.push(`version=${this.version}`);let f=t,o="";switch(e){case i.NUMERIC_FAULT:{o="NUMERIC_FAULT";let e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":o+="-"+e;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result"}break}case i.CALL_EXCEPTION:case i.INSUFFICIENT_FUNDS:case i.MISSING_NEW:case i.NONCE_EXPIRED:case i.REPLACEMENT_UNDERPRICED:case i.TRANSACTION_REPLACED:case i.UNPREDICTABLE_GAS_LIMIT:o=e}o&&(t+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),n.length&&(t+=" ("+n.join(", ")+")");let a=Error(t);return a.reason=f,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"),c&&this.throwError("platform missing String.prototype.normalize",p.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:c})}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:"",t<e&&this.throwError("missing argument"+r,p.errors.MISSING_ARGUMENT,{count:t,expectedCount:e}),t>e&&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 h||(h=new p("logger/5.7.0")),h}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",p.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),a){if(!t)return;this.globalLogger().throwError("error censorship permanent",p.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}s=!!t,a=!!e}static setLogLevel(t){let e=u[t.toLowerCase()];if(null==e){p.globalLogger().warn("invalid log level - "+t);return}l=e}static from(t){return new p(t)}}p.errors=i,p.levels=n;let m=new p("bytes/5.7.0");function g(t){return t.slice||(t.slice=function(){let e=Array.prototype.slice.call(arguments);return g(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function b(t){return"number"==typeof t&&t==t&&t%1==0}function y(t,e){var r;if(e||(e={}),"number"==typeof t){m.checkSafeUint53(t,"invalid arrayify value");let e=[];for(;t;)e.unshift(255&t),t=parseInt(String(t/256));return 0===e.length&&e.push(0),g(new Uint8Array(e))}if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),t.toHexString&&(t=t.toHexString()),"string"==typeof(r=t)&&r.match(/^0x[0-9A-Fa-f]*$/)){let r=t.substring(2);r.length%2&&("left"===e.hexPad?r="0"+r:"right"===e.hexPad?r+="0":m.throwArgumentError("hex data is odd-length","value",t));let n=[];for(let t=0;t<r.length;t+=2)n.push(parseInt(r.substring(t,t+2),16));return g(new Uint8Array(n))}return!function(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"==typeof t||!b(t.length)||t.length<0)return!1;for(let e=0;e<t.length;e++){let r=t[e];if(!b(r)||r<0||r>=256)return!1}return!0}(t)?m.throwArgumentError("invalid arrayify value","value",t):g(new Uint8Array(t))}function v(t){t=atob(t);let e=[];for(let r=0;r<t.length;r++)e.push(t.charCodeAt(r));return y(e)}function w(t){t=y(t);let e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return btoa(e)}},4085:function(t,e,r){"use strict";var n,i,f,o;r.r(e),r.d(e,{Base32:function(){return M},Base58:function(){return E},BaseX:function(){return w}});let a=!1,s=!1,u={debug:1,default:2,info:2,warning:3,error:4,off:5},l=u.default,h=null,c=function(){try{let t=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test"!=="test".normalize(e))throw Error("bad normalize")}catch(r){t.push(e)}}),t.length)throw Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw Error("broken implementation")}catch(t){return t.message}return null}();(f=n||(n={})).DEBUG="DEBUG",f.INFO="INFO",f.WARNING="WARNING",f.ERROR="ERROR",f.OFF="OFF",(o=i||(i={})).UNKNOWN_ERROR="UNKNOWN_ERROR",o.NOT_IMPLEMENTED="NOT_IMPLEMENTED",o.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",o.NETWORK_ERROR="NETWORK_ERROR",o.SERVER_ERROR="SERVER_ERROR",o.TIMEOUT="TIMEOUT",o.BUFFER_OVERRUN="BUFFER_OVERRUN",o.NUMERIC_FAULT="NUMERIC_FAULT",o.MISSING_NEW="MISSING_NEW",o.INVALID_ARGUMENT="INVALID_ARGUMENT",o.MISSING_ARGUMENT="MISSING_ARGUMENT",o.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",o.CALL_EXCEPTION="CALL_EXCEPTION",o.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",o.NONCE_EXPIRED="NONCE_EXPIRED",o.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",o.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",o.TRANSACTION_REPLACED="TRANSACTION_REPLACED",o.ACTION_REJECTED="ACTION_REJECTED";let d="0123456789abcdef";class p{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){let r=t.toLowerCase();null==u[r]&&this.throwArgumentError("invalid log level name","logLevel",t),l>u[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(s)return this.makeError("censored error",e,{});e||(e=p.errors.UNKNOWN_ERROR),r||(r={});let n=[];Object.keys(r).forEach(t=>{let e=r[t];try{if(e instanceof Uint8Array){let r="";for(let t=0;t<e.length;t++)r+=d[e[t]>>4]+d[15&e[t]];n.push(t+"=Uint8Array(0x"+r+")")}else n.push(t+"="+JSON.stringify(e))}catch(e){n.push(t+"="+JSON.stringify(r[t].toString()))}}),n.push(`code=${e}`),n.push(`version=${this.version}`);let f=t,o="";switch(e){case i.NUMERIC_FAULT:{o="NUMERIC_FAULT";let e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":o+="-"+e;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result"}break}case i.CALL_EXCEPTION:case i.INSUFFICIENT_FUNDS:case i.MISSING_NEW:case i.NONCE_EXPIRED:case i.REPLACEMENT_UNDERPRICED:case i.TRANSACTION_REPLACED:case i.UNPREDICTABLE_GAS_LIMIT:o=e}o&&(t+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),n.length&&(t+=" ("+n.join(", ")+")");let a=Error(t);return a.reason=f,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"),c&&this.throwError("platform missing String.prototype.normalize",p.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:c})}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:"",t<e&&this.throwError("missing argument"+r,p.errors.MISSING_ARGUMENT,{count:t,expectedCount:e}),t>e&&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 h||(h=new p("logger/5.7.0")),h}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",p.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),a){if(!t)return;this.globalLogger().throwError("error censorship permanent",p.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}s=!!t,a=!!e}static setLogLevel(t){let e=u[t.toLowerCase()];if(null==e){p.globalLogger().warn("invalid log level - "+t);return}l=e}static from(t){return new p(t)}}p.errors=i,p.levels=n;let m=new p("bytes/5.7.0");function g(t){return t.slice||(t.slice=function(){let e=Array.prototype.slice.call(arguments);return g(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function b(t){return"number"==typeof t&&t==t&&t%1==0}function y(t,e){var r;if(e||(e={}),"number"==typeof t){m.checkSafeUint53(t,"invalid arrayify value");let e=[];for(;t;)e.unshift(255&t),t=parseInt(String(t/256));return 0===e.length&&e.push(0),g(new Uint8Array(e))}if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),t.toHexString&&(t=t.toHexString()),"string"==typeof(r=t)&&r.match(/^0x[0-9A-Fa-f]*$/)){let r=t.substring(2);r.length%2&&("left"===e.hexPad?r="0"+r:"right"===e.hexPad?r+="0":m.throwArgumentError("hex data is odd-length","value",t));let n=[];for(let t=0;t<r.length;t+=2)n.push(parseInt(r.substring(t,t+2),16));return g(new Uint8Array(n))}return!function(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"==typeof t||!b(t.length)||t.length<0)return!1;for(let e=0;e<t.length;e++){let r=t[e];if(!b(r)||r<0||r>=256)return!1}return!0}(t)?m.throwArgumentError("invalid arrayify value","value",t):g(new Uint8Array(t))}function v(t,e,r){Object.defineProperty(t,e,{enumerable:!0,value:r,writable:!1})}new p("properties/5.7.0");class w{constructor(t){v(this,"alphabet",t),v(this,"base",t.length),v(this,"_alphabetMap",{}),v(this,"_leader",t.charAt(0));for(let e=0;e<t.length;e++)this._alphabetMap[t.charAt(e)]=e}encode(t){let e=y(t);if(0===e.length)return"";let r=[0];for(let t=0;t<e.length;++t){let n=e[t];for(let t=0;t<r.length;++t)n+=r[t]<<8,r[t]=n%this.base,n=n/this.base|0;for(;n>0;)r.push(n%this.base),n=n/this.base|0}let n="";for(let t=0;0===e[t]&&t<e.length-1;++t)n+=this._leader;for(let t=r.length-1;t>=0;--t)n+=this.alphabet[r[t]];return n}decode(t){if("string"!=typeof t)throw TypeError("Expected String");let e=[];if(0===t.length)return new Uint8Array(e);e.push(0);for(let r=0;r<t.length;r++){let n=this._alphabetMap[t[r]];if(void 0===n)throw Error("Non-base"+this.base+" character");let i=n;for(let t=0;t<e.length;++t)i+=e[t]*this.base,e[t]=255&i,i>>=8;for(;i>0;)e.push(255&i),i>>=8}for(let r=0;t[r]===this._leader&&r<t.length-1;++r)e.push(0);return y(new Uint8Array(e.reverse()))}}let M=new w("abcdefghijklmnopqrstuvwxyz234567"),E=new w("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},66586:function(t,e,r){"use strict";var n,i,f,o;r.r(e),r.d(e,{arrayify:function(){return w},concat:function(){return M},hexConcat:function(){return C},hexDataLength:function(){return T},hexDataSlice:function(){return R},hexStripZeros:function(){return P},hexValue:function(){return I},hexZeroPad:function(){return O},hexlify:function(){return N},isBytes:function(){return v},isBytesLike:function(){return y},isHexString:function(){return S},joinSignature:function(){return k},splitSignature:function(){return x},stripZeros:function(){return E},zeroPad:function(){return A}});let a=!1,s=!1,u={debug:1,default:2,info:2,warning:3,error:4,off:5},l=u.default,h=null,c=function(){try{let t=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test"!=="test".normalize(e))throw Error("bad normalize")}catch(r){t.push(e)}}),t.length)throw Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw Error("broken implementation")}catch(t){return t.message}return null}();(f=n||(n={})).DEBUG="DEBUG",f.INFO="INFO",f.WARNING="WARNING",f.ERROR="ERROR",f.OFF="OFF",(o=i||(i={})).UNKNOWN_ERROR="UNKNOWN_ERROR",o.NOT_IMPLEMENTED="NOT_IMPLEMENTED",o.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",o.NETWORK_ERROR="NETWORK_ERROR",o.SERVER_ERROR="SERVER_ERROR",o.TIMEOUT="TIMEOUT",o.BUFFER_OVERRUN="BUFFER_OVERRUN",o.NUMERIC_FAULT="NUMERIC_FAULT",o.MISSING_NEW="MISSING_NEW",o.INVALID_ARGUMENT="INVALID_ARGUMENT",o.MISSING_ARGUMENT="MISSING_ARGUMENT",o.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",o.CALL_EXCEPTION="CALL_EXCEPTION",o.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",o.NONCE_EXPIRED="NONCE_EXPIRED",o.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",o.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",o.TRANSACTION_REPLACED="TRANSACTION_REPLACED",o.ACTION_REJECTED="ACTION_REJECTED";let d="0123456789abcdef";class p{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){let r=t.toLowerCase();null==u[r]&&this.throwArgumentError("invalid log level name","logLevel",t),l>u[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(s)return this.makeError("censored error",e,{});e||(e=p.errors.UNKNOWN_ERROR),r||(r={});let n=[];Object.keys(r).forEach(t=>{let e=r[t];try{if(e instanceof Uint8Array){let r="";for(let t=0;t<e.length;t++)r+=d[e[t]>>4]+d[15&e[t]];n.push(t+"=Uint8Array(0x"+r+")")}else n.push(t+"="+JSON.stringify(e))}catch(e){n.push(t+"="+JSON.stringify(r[t].toString()))}}),n.push(`code=${e}`),n.push(`version=${this.version}`);let f=t,o="";switch(e){case i.NUMERIC_FAULT:{o="NUMERIC_FAULT";let e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":o+="-"+e;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result"}break}case i.CALL_EXCEPTION:case i.INSUFFICIENT_FUNDS:case i.MISSING_NEW:case i.NONCE_EXPIRED:case i.REPLACEMENT_UNDERPRICED:case i.TRANSACTION_REPLACED:case i.UNPREDICTABLE_GAS_LIMIT:o=e}o&&(t+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),n.length&&(t+=" ("+n.join(", ")+")");let a=Error(t);return a.reason=f,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"),c&&this.throwError("platform missing String.prototype.normalize",p.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:c})}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:"",t<e&&this.throwError("missing argument"+r,p.errors.MISSING_ARGUMENT,{count:t,expectedCount:e}),t>e&&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 h||(h=new p("logger/5.7.0")),h}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",p.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),a){if(!t)return;this.globalLogger().throwError("error censorship permanent",p.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}s=!!t,a=!!e}static setLogLevel(t){let e=u[t.toLowerCase()];if(null==e){p.globalLogger().warn("invalid log level - "+t);return}l=e}static from(t){return new p(t)}}p.errors=i,p.levels=n;let m=new p("bytes/5.4.0");function g(t){return!!t.toHexString}function b(t){return t.slice||(t.slice=function(){let e=Array.prototype.slice.call(arguments);return b(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function y(t){return S(t)&&!(t.length%2)||v(t)}function v(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"==typeof t||null==t.length)return!1;for(let e=0;e<t.length;e++){let r=t[e];if("number"!=typeof r||r<0||r>=256||r%1)return!1}return!0}function w(t,e){if(e||(e={}),"number"==typeof t){m.checkSafeUint53(t,"invalid arrayify value");let e=[];for(;t;)e.unshift(255&t),t=parseInt(String(t/256));return 0===e.length&&e.push(0),b(new Uint8Array(e))}if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),g(t)&&(t=t.toHexString()),S(t)){let r=t.substring(2);r.length%2&&("left"===e.hexPad?r="0x0"+r.substring(2):"right"===e.hexPad?r+="0":m.throwArgumentError("hex data is odd-length","value",t));let n=[];for(let t=0;t<r.length;t+=2)n.push(parseInt(r.substring(t,t+2),16));return b(new Uint8Array(n))}return v(t)?b(new Uint8Array(t)):m.throwArgumentError("invalid arrayify value","value",t)}function M(t){let e=t.map(t=>w(t)),r=new Uint8Array(e.reduce((t,e)=>t+e.length,0));return e.reduce((t,e)=>(r.set(e,t),t+e.length),0),b(r)}function E(t){let e=w(t);if(0===e.length)return e;let r=0;for(;r<e.length&&0===e[r];)r++;return r&&(e=e.slice(r)),e}function A(t,e){(t=w(t)).length>e&&m.throwArgumentError("value out of range","value",arguments[0]);let r=new Uint8Array(e);return r.set(t,e-t.length),b(r)}function S(t,e){return"string"==typeof t&&!!t.match(/^0x[0-9A-Fa-f]*$/)&&(!e||t.length===2+2*e)}let _="0123456789abcdef";function N(t,e){if(e||(e={}),"number"==typeof t){m.checkSafeUint53(t,"invalid hexlify value");let e="";for(;t;)e=_[15&t]+e,t=Math.floor(t/16);return e.length?(e.length%2&&(e="0"+e),"0x"+e):"0x00"}if("bigint"==typeof t)return(t=t.toString(16)).length%2?"0x0"+t:"0x"+t;if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),g(t))return t.toHexString();if(S(t))return t.length%2&&("left"===e.hexPad?t="0x0"+t.substring(2):"right"===e.hexPad?t+="0":m.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(v(t)){let e="0x";for(let r=0;r<t.length;r++){let n=t[r];e+=_[(240&n)>>4]+_[15&n]}return e}return m.throwArgumentError("invalid hexlify value","value",t)}function T(t){if("string"!=typeof t)t=N(t);else if(!S(t)||t.length%2)return null;return(t.length-2)/2}function R(t,e,r){return("string"!=typeof t?t=N(t):(!S(t)||t.length%2)&&m.throwArgumentError("invalid hexData","value",t),e=2+2*e,null!=r)?"0x"+t.substring(e,2+2*r):"0x"+t.substring(e)}function C(t){let e="0x";return t.forEach(t=>{e+=N(t).substring(2)}),e}function I(t){let e=P(N(t,{hexPad:"left"}));return"0x"===e?"0x0":e}function P(t){"string"!=typeof t&&(t=N(t)),S(t)||m.throwArgumentError("invalid hex string","value",t),t=t.substring(2);let e=0;for(;e<t.length&&"0"===t[e];)e++;return"0x"+t.substring(e)}function O(t,e){for("string"!=typeof t?t=N(t):S(t)||m.throwArgumentError("invalid hex string","value",t),t.length>2*e+2&&m.throwArgumentError("value out of range","value",arguments[1]);t.length<2*e+2;)t="0x0"+t.substring(2);return t}function x(t){let e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0};if(y(t)){let r=w(t);65!==r.length&&m.throwArgumentError("invalid signature string; must be 65 bytes","signature",t),e.r=N(r.slice(0,32)),e.s=N(r.slice(32,64)),e.v=r[64],e.v<27&&(0===e.v||1===e.v?e.v+=27:m.throwArgumentError("signature invalid v byte","signature",t)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(r[32]|=128),e._vs=N(r.slice(32,64))}else{if(e.r=t.r,e.s=t.s,e.v=t.v,e.recoveryParam=t.recoveryParam,e._vs=t._vs,null!=e._vs){let r=A(w(e._vs),32);e._vs=N(r);let n=r[0]>=128?1:0;null==e.recoveryParam?e.recoveryParam=n:e.recoveryParam!==n&&m.throwArgumentError("signature recoveryParam mismatch _vs","signature",t),r[0]&=127;let i=N(r);null==e.s?e.s=i:e.s!==i&&m.throwArgumentError("signature v mismatch _vs","signature",t)}null==e.recoveryParam?null==e.v?m.throwArgumentError("signature missing v and recoveryParam","signature",t):0===e.v||1===e.v?e.recoveryParam=e.v:e.recoveryParam=1-e.v%2:null==e.v?e.v=27+e.recoveryParam:e.recoveryParam!==1-e.v%2&&m.throwArgumentError("signature recoveryParam mismatch v","signature",t),null!=e.r&&S(e.r)?e.r=O(e.r,32):m.throwArgumentError("signature missing or invalid r","signature",t),null!=e.s&&S(e.s)?e.s=O(e.s,32):m.throwArgumentError("signature missing or invalid s","signature",t);let r=w(e.s);r[0]>=128&&m.throwArgumentError("signature s out of range","signature",t),e.recoveryParam&&(r[0]|=128);let n=N(r);e._vs&&(S(e._vs)||m.throwArgumentError("signature invalid _vs","signature",t),e._vs=O(e._vs,32)),null==e._vs?e._vs=n:e._vs!==n&&m.throwArgumentError("signature _vs mismatch v and s","signature",t)}return e}function k(t){return N(M([(t=x(t)).r,t.s,t.recoveryParam?"0x1c":"0x1b"]))}},52988:function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw 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 f(t,e,r){if(f.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"))}"object"==typeof t?t.exports=f:e.BN=f,f.BN=f,f.wordSize=26;try{h="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(41766).Buffer}catch(t){}function o(t,e){var r=t.charCodeAt(e);return r>=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 a(t,e,r){var n=o(t,r);return r-1>=e&&(n|=o(t,r-1)<<4),n}function s(t,e,r,i){for(var f=0,o=0,a=Math.min(t.length,r),s=e;s<a;s++){var u=t.charCodeAt(s)-48;f*=i,o=u>=49?u-49+10:u>=17?u-17+10:u,n(u>=0&&o<i,"Invalid character"),f+=o}return f}function u(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(f.isBN=function(t){return t instanceof f||null!==t&&"object"==typeof t&&t.constructor.wordSize===f.wordSize&&Array.isArray(t.words)},f.max=function(t,e){return t.cmp(e)>0?t:e},f.min=function(t,e){return 0>t.cmp(e)?t:e},f.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);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},f.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)},f.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=Array(this.length);for(var i,f,o=0;o<this.length;o++)this.words[o]=0;var a=0;if("be"===r)for(o=t.length-1,i=0;o>=0;o-=3)f=t[o]|t[o-1]<<8|t[o-2]<<16,this.words[i]|=f<<a&67108863,this.words[i+1]=f>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);else if("le"===r)for(o=0,i=0;o<t.length;o+=3)f=t[o]|t[o+1]<<8|t[o+2]<<16,this.words[i]|=f<<a&67108863,this.words[i+1]=f>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);return this._strip()},f.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=Array(this.length);for(var n,i=0;i<this.length;i++)this.words[i]=0;var f=0,o=0;if("be"===r)for(i=t.length-1;i>=e;i-=2)n=a(t,e,i)<<f,this.words[o]|=67108863&n,f>=18?(f-=18,o+=1,this.words[o]|=n>>>26):f+=8;else for(i=(t.length-e)%2==0?e+1:e;i<t.length;i+=2)n=a(t,e,i)<<f,this.words[o]|=67108863&n,f>=18?(f-=18,o+=1,this.words[o]|=n>>>26):f+=8;this._strip()},f.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 f=t.length-r,o=f%n,a=Math.min(f,f-o)+r,u=0,l=r;l<a;l+=n)u=s(t,l,l+n,e),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==o){var h=1;for(u=s(t,l,t.length,e),l=0;l<o;l++)h*=e;this.imuln(h),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this._strip()},f.prototype.copy=function(t){t.words=Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},f.prototype._move=function(t){u(t,this)},f.prototype.clone=function(){var t=new f(null);return this.copy(t),t},f.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},f.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},f.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{f.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(t){f.prototype.inspect=l}else f.prototype.inspect=l;function l(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var h,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"],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];function m(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],f=0|e.words[0],o=i*f,a=67108863&o,s=o/67108864|0;r.words[0]=a;for(var u=1;u<n;u++){for(var l=s>>>26,h=67108863&s,c=Math.min(u,e.length-1),d=Math.max(0,u-t.length+1);d<=c;d++){var p=u-d|0;l+=(o=(i=0|t.words[p])*(f=0|e.words[d])+h)/67108864|0,h=67108863&o}r.words[u]=0|h,s=0|l}return 0!==s?r.words[u]=0|s:r.length--,r._strip()}f.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var r,i=0,f=0,o=0;o<this.length;o++){var a=this.words[o],s=((a<<i|f)&16777215).toString(16);f=a>>>24-i&16777215,(i+=2)>=26&&(i-=26,o--),r=0!==f||o!==this.length-1?c[6-s.length]+s+r:s+r}for(0!==f&&(r=f.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var u=d[t],l=p[t];r="";var h=this.clone();for(h.negative=0;!h.isZero();){var m=h.modrn(l).toString(t);r=(h=h.idivn(l)).isZero()?m+r:c[u-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},f.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},f.prototype.toJSON=function(){return this.toString(16,2)},h&&(f.prototype.toBuffer=function(t,e){return this.toArrayLike(h,t,e)}),f.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},f.prototype.toArrayLike=function(t,e,r){this._strip();var i=this.byteLength(),f=r||Math.max(1,i);n(i<=f,"byte array longer than desired length"),n(f>0,"Requested array length <= 0");var o=t.allocUnsafe?t.allocUnsafe(f):new t(f);return this["_toArrayLike"+("le"===e?"LE":"BE")](o,i),o},f.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,i=0,f=0;i<this.length;i++){var o=this.words[i]<<f|n;t[r++]=255&o,r<t.length&&(t[r++]=o>>8&255),r<t.length&&(t[r++]=o>>16&255),6===f?(r<t.length&&(t[r++]=o>>24&255),n=0,f=0):(n=o>>>24,f+=2)}if(r<t.length)for(t[r++]=n;r<t.length;)t[r++]=0},f.prototype._toArrayLikeBE=function(t,e){for(var r=t.length-1,n=0,i=0,f=0;i<this.length;i++){var o=this.words[i]<<f|n;t[r--]=255&o,r>=0&&(t[r--]=o>>8&255),r>=0&&(t[r--]=o>>16&255),6===f?(r>=0&&(t[r--]=o>>24&255),n=0,f=0):(n=o>>>24,f+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?f.prototype._countBits=function(t){return 32-Math.clz32(t)}:f.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},f.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return(8191&e)==0&&(r+=13,e>>>=13),(127&e)==0&&(r+=7,e>>>=7),(15&e)==0&&(r+=4,e>>>=4),(3&e)==0&&(r+=2,e>>>=2),(1&e)==0&&r++,r},f.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return(this.length-1)*26+e},f.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},f.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},f.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},f.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},f.prototype.isNeg=function(){return 0!==this.negative},f.prototype.neg=function(){return this.clone().ineg()},f.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},f.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},f.prototype.ior=function(t){return n((this.negative|t.negative)==0),this.iuor(t)},f.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},f.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},f.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this._strip()},f.prototype.iand=function(t){return n((this.negative|t.negative)==0),this.iuand(t)},f.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},f.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},f.prototype.iuxor=function(t){this.length>t.length?(e=this,r=t):(e=t,r=this);for(var e,r,n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this._strip()},f.prototype.ixor=function(t){return n((this.negative|t.negative)==0),this.iuxor(t)},f.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},f.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},f.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;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},f.prototype.notn=function(t){return this.clone().inotn(t)},f.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),e?this.words[r]=this.words[r]|1<<i:this.words[r]=this.words[r]&~(1<<i),this._strip()},f.prototype.iadd=function(t){if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var e,r,n,i=0,f=0;f<n.length;f++)e=(0|r.words[f])+(0|n.words[f])+i,this.words[f]=67108863&e,i=e>>>26;for(;0!==i&&f<r.length;f++)e=(0|r.words[f])+i,this.words[f]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;f<r.length;f++)this.words[f]=r.words[f];return this},f.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},f.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e,r,n=this.iadd(t);return t.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(e=this,r=t):(e=t,r=this);for(var f=0,o=0;o<r.length;o++)f=(n=(0|e.words[o])-(0|r.words[o])+f)>>26,this.words[o]=67108863&n;for(;0!==f&&o<e.length;o++)f=(n=(0|e.words[o])+f)>>26,this.words[o]=67108863&n;if(0===f&&o<e.length&&e!==this)for(;o<e.length;o++)this.words[o]=e.words[o];return this.length=Math.max(this.length,o),e!==this&&(this.negative=1),this._strip()},f.prototype.sub=function(t){return this.clone().isub(t)};var g=function(t,e,r){var n,i,f,o=t.words,a=e.words,s=r.words,u=0,l=0|o[0],h=8191&l,c=l>>>13,d=0|o[1],p=8191&d,m=d>>>13,g=0|o[2],b=8191&g,y=g>>>13,v=0|o[3],w=8191&v,M=v>>>13,E=0|o[4],A=8191&E,S=E>>>13,_=0|o[5],N=8191&_,T=_>>>13,R=0|o[6],C=8191&R,I=R>>>13,P=0|o[7],O=8191&P,x=P>>>13,k=0|o[8],F=8191&k,B=k>>>13,L=0|o[9],D=8191&L,U=L>>>13,G=0|a[0],z=8191&G,J=G>>>13,j=0|a[1],H=8191&j,V=j>>>13,X=0|a[2],q=8191&X,Z=X>>>13,K=0|a[3],W=8191&K,Y=K>>>13,Q=0|a[4],$=8191&Q,tt=Q>>>13,te=0|a[5],tr=8191&te,tn=te>>>13,ti=0|a[6],tf=8191&ti,to=ti>>>13,ta=0|a[7],ts=8191&ta,tu=ta>>>13,tl=0|a[8],th=8191&tl,tc=tl>>>13,td=0|a[9],tp=8191&td,tm=td>>>13;r.negative=t.negative^e.negative,r.length=19;var tg=(u+(n=Math.imul(h,z))|0)+((8191&(i=(i=Math.imul(h,J))+Math.imul(c,z)|0))<<13)|0;u=((f=Math.imul(c,J))+(i>>>13)|0)+(tg>>>26)|0,tg&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,J))+Math.imul(m,z)|0,f=Math.imul(m,J);var tb=(u+(n=n+Math.imul(h,H)|0)|0)+((8191&(i=(i=i+Math.imul(h,V)|0)+Math.imul(c,H)|0))<<13)|0;u=((f=f+Math.imul(c,V)|0)+(i>>>13)|0)+(tb>>>26)|0,tb&=67108863,n=Math.imul(b,z),i=(i=Math.imul(b,J))+Math.imul(y,z)|0,f=Math.imul(y,J),n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,H)|0,f=f+Math.imul(m,V)|0;var ty=(u+(n=n+Math.imul(h,q)|0)|0)+((8191&(i=(i=i+Math.imul(h,Z)|0)+Math.imul(c,q)|0))<<13)|0;u=((f=f+Math.imul(c,Z)|0)+(i>>>13)|0)+(ty>>>26)|0,ty&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,J))+Math.imul(M,z)|0,f=Math.imul(M,J),n=n+Math.imul(b,H)|0,i=(i=i+Math.imul(b,V)|0)+Math.imul(y,H)|0,f=f+Math.imul(y,V)|0,n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,q)|0,f=f+Math.imul(m,Z)|0;var tv=(u+(n=n+Math.imul(h,W)|0)|0)+((8191&(i=(i=i+Math.imul(h,Y)|0)+Math.imul(c,W)|0))<<13)|0;u=((f=f+Math.imul(c,Y)|0)+(i>>>13)|0)+(tv>>>26)|0,tv&=67108863,n=Math.imul(A,z),i=(i=Math.imul(A,J))+Math.imul(S,z)|0,f=Math.imul(S,J),n=n+Math.imul(w,H)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(M,H)|0,f=f+Math.imul(M,V)|0,n=n+Math.imul(b,q)|0,i=(i=i+Math.imul(b,Z)|0)+Math.imul(y,q)|0,f=f+Math.imul(y,Z)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,W)|0,f=f+Math.imul(m,Y)|0;var tw=(u+(n=n+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(c,$)|0))<<13)|0;u=((f=f+Math.imul(c,tt)|0)+(i>>>13)|0)+(tw>>>26)|0,tw&=67108863,n=Math.imul(N,z),i=(i=Math.imul(N,J))+Math.imul(T,z)|0,f=Math.imul(T,J),n=n+Math.imul(A,H)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(S,H)|0,f=f+Math.imul(S,V)|0,n=n+Math.imul(w,q)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(M,q)|0,f=f+Math.imul(M,Z)|0,n=n+Math.imul(b,W)|0,i=(i=i+Math.imul(b,Y)|0)+Math.imul(y,W)|0,f=f+Math.imul(y,Y)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,$)|0,f=f+Math.imul(m,tt)|0;var tM=(u+(n=n+Math.imul(h,tr)|0)|0)+((8191&(i=(i=i+Math.imul(h,tn)|0)+Math.imul(c,tr)|0))<<13)|0;u=((f=f+Math.imul(c,tn)|0)+(i>>>13)|0)+(tM>>>26)|0,tM&=67108863,n=Math.imul(C,z),i=(i=Math.imul(C,J))+Math.imul(I,z)|0,f=Math.imul(I,J),n=n+Math.imul(N,H)|0,i=(i=i+Math.imul(N,V)|0)+Math.imul(T,H)|0,f=f+Math.imul(T,V)|0,n=n+Math.imul(A,q)|0,i=(i=i+Math.imul(A,Z)|0)+Math.imul(S,q)|0,f=f+Math.imul(S,Z)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(M,W)|0,f=f+Math.imul(M,Y)|0,n=n+Math.imul(b,$)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(y,$)|0,f=f+Math.imul(y,tt)|0,n=n+Math.imul(p,tr)|0,i=(i=i+Math.imul(p,tn)|0)+Math.imul(m,tr)|0,f=f+Math.imul(m,tn)|0;var tE=(u+(n=n+Math.imul(h,tf)|0)|0)+((8191&(i=(i=i+Math.imul(h,to)|0)+Math.imul(c,tf)|0))<<13)|0;u=((f=f+Math.imul(c,to)|0)+(i>>>13)|0)+(tE>>>26)|0,tE&=67108863,n=Math.imul(O,z),i=(i=Math.imul(O,J))+Math.imul(x,z)|0,f=Math.imul(x,J),n=n+Math.imul(C,H)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(I,H)|0,f=f+Math.imul(I,V)|0,n=n+Math.imul(N,q)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(T,q)|0,f=f+Math.imul(T,Z)|0,n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(S,W)|0,f=f+Math.imul(S,Y)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(M,$)|0,f=f+Math.imul(M,tt)|0,n=n+Math.imul(b,tr)|0,i=(i=i+Math.imul(b,tn)|0)+Math.imul(y,tr)|0,f=f+Math.imul(y,tn)|0,n=n+Math.imul(p,tf)|0,i=(i=i+Math.imul(p,to)|0)+Math.imul(m,tf)|0,f=f+Math.imul(m,to)|0;var tA=(u+(n=n+Math.imul(h,ts)|0)|0)+((8191&(i=(i=i+Math.imul(h,tu)|0)+Math.imul(c,ts)|0))<<13)|0;u=((f=f+Math.imul(c,tu)|0)+(i>>>13)|0)+(tA>>>26)|0,tA&=67108863,n=Math.imul(F,z),i=(i=Math.imul(F,J))+Math.imul(B,z)|0,f=Math.imul(B,J),n=n+Math.imul(O,H)|0,i=(i=i+Math.imul(O,V)|0)+Math.imul(x,H)|0,f=f+Math.imul(x,V)|0,n=n+Math.imul(C,q)|0,i=(i=i+Math.imul(C,Z)|0)+Math.imul(I,q)|0,f=f+Math.imul(I,Z)|0,n=n+Math.imul(N,W)|0,i=(i=i+Math.imul(N,Y)|0)+Math.imul(T,W)|0,f=f+Math.imul(T,Y)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(S,$)|0,f=f+Math.imul(S,tt)|0,n=n+Math.imul(w,tr)|0,i=(i=i+Math.imul(w,tn)|0)+Math.imul(M,tr)|0,f=f+Math.imul(M,tn)|0,n=n+Math.imul(b,tf)|0,i=(i=i+Math.imul(b,to)|0)+Math.imul(y,tf)|0,f=f+Math.imul(y,to)|0,n=n+Math.imul(p,ts)|0,i=(i=i+Math.imul(p,tu)|0)+Math.imul(m,ts)|0,f=f+Math.imul(m,tu)|0;var tS=(u+(n=n+Math.imul(h,th)|0)|0)+((8191&(i=(i=i+Math.imul(h,tc)|0)+Math.imul(c,th)|0))<<13)|0;u=((f=f+Math.imul(c,tc)|0)+(i>>>13)|0)+(tS>>>26)|0,tS&=67108863,n=Math.imul(D,z),i=(i=Math.imul(D,J))+Math.imul(U,z)|0,f=Math.imul(U,J),n=n+Math.imul(F,H)|0,i=(i=i+Math.imul(F,V)|0)+Math.imul(B,H)|0,f=f+Math.imul(B,V)|0,n=n+Math.imul(O,q)|0,i=(i=i+Math.imul(O,Z)|0)+Math.imul(x,q)|0,f=f+Math.imul(x,Z)|0,n=n+Math.imul(C,W)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(I,W)|0,f=f+Math.imul(I,Y)|0,n=n+Math.imul(N,$)|0,i=(i=i+Math.imul(N,tt)|0)+Math.imul(T,$)|0,f=f+Math.imul(T,tt)|0,n=n+Math.imul(A,tr)|0,i=(i=i+Math.imul(A,tn)|0)+Math.imul(S,tr)|0,f=f+Math.imul(S,tn)|0,n=n+Math.imul(w,tf)|0,i=(i=i+Math.imul(w,to)|0)+Math.imul(M,tf)|0,f=f+Math.imul(M,to)|0,n=n+Math.imul(b,ts)|0,i=(i=i+Math.imul(b,tu)|0)+Math.imul(y,ts)|0,f=f+Math.imul(y,tu)|0,n=n+Math.imul(p,th)|0,i=(i=i+Math.imul(p,tc)|0)+Math.imul(m,th)|0,f=f+Math.imul(m,tc)|0;var t_=(u+(n=n+Math.imul(h,tp)|0)|0)+((8191&(i=(i=i+Math.imul(h,tm)|0)+Math.imul(c,tp)|0))<<13)|0;u=((f=f+Math.imul(c,tm)|0)+(i>>>13)|0)+(t_>>>26)|0,t_&=67108863,n=Math.imul(D,H),i=(i=Math.imul(D,V))+Math.imul(U,H)|0,f=Math.imul(U,V),n=n+Math.imul(F,q)|0,i=(i=i+Math.imul(F,Z)|0)+Math.imul(B,q)|0,f=f+Math.imul(B,Z)|0,n=n+Math.imul(O,W)|0,i=(i=i+Math.imul(O,Y)|0)+Math.imul(x,W)|0,f=f+Math.imul(x,Y)|0,n=n+Math.imul(C,$)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(I,$)|0,f=f+Math.imul(I,tt)|0,n=n+Math.imul(N,tr)|0,i=(i=i+Math.imul(N,tn)|0)+Math.imul(T,tr)|0,f=f+Math.imul(T,tn)|0,n=n+Math.imul(A,tf)|0,i=(i=i+Math.imul(A,to)|0)+Math.imul(S,tf)|0,f=f+Math.imul(S,to)|0,n=n+Math.imul(w,ts)|0,i=(i=i+Math.imul(w,tu)|0)+Math.imul(M,ts)|0,f=f+Math.imul(M,tu)|0,n=n+Math.imul(b,th)|0,i=(i=i+Math.imul(b,tc)|0)+Math.imul(y,th)|0,f=f+Math.imul(y,tc)|0;var tN=(u+(n=n+Math.imul(p,tp)|0)|0)+((8191&(i=(i=i+Math.imul(p,tm)|0)+Math.imul(m,tp)|0))<<13)|0;u=((f=f+Math.imul(m,tm)|0)+(i>>>13)|0)+(tN>>>26)|0,tN&=67108863,n=Math.imul(D,q),i=(i=Math.imul(D,Z))+Math.imul(U,q)|0,f=Math.imul(U,Z),n=n+Math.imul(F,W)|0,i=(i=i+Math.imul(F,Y)|0)+Math.imul(B,W)|0,f=f+Math.imul(B,Y)|0,n=n+Math.imul(O,$)|0,i=(i=i+Math.imul(O,tt)|0)+Math.imul(x,$)|0,f=f+Math.imul(x,tt)|0,n=n+Math.imul(C,tr)|0,i=(i=i+Math.imul(C,tn)|0)+Math.imul(I,tr)|0,f=f+Math.imul(I,tn)|0,n=n+Math.imul(N,tf)|0,i=(i=i+Math.imul(N,to)|0)+Math.imul(T,tf)|0,f=f+Math.imul(T,to)|0,n=n+Math.imul(A,ts)|0,i=(i=i+Math.imul(A,tu)|0)+Math.imul(S,ts)|0,f=f+Math.imul(S,tu)|0,n=n+Math.imul(w,th)|0,i=(i=i+Math.imul(w,tc)|0)+Math.imul(M,th)|0,f=f+Math.imul(M,tc)|0;var tT=(u+(n=n+Math.imul(b,tp)|0)|0)+((8191&(i=(i=i+Math.imul(b,tm)|0)+Math.imul(y,tp)|0))<<13)|0;u=((f=f+Math.imul(y,tm)|0)+(i>>>13)|0)+(tT>>>26)|0,tT&=67108863,n=Math.imul(D,W),i=(i=Math.imul(D,Y))+Math.imul(U,W)|0,f=Math.imul(U,Y),n=n+Math.imul(F,$)|0,i=(i=i+Math.imul(F,tt)|0)+Math.imul(B,$)|0,f=f+Math.imul(B,tt)|0,n=n+Math.imul(O,tr)|0,i=(i=i+Math.imul(O,tn)|0)+Math.imul(x,tr)|0,f=f+Math.imul(x,tn)|0,n=n+Math.imul(C,tf)|0,i=(i=i+Math.imul(C,to)|0)+Math.imul(I,tf)|0,f=f+Math.imul(I,to)|0,n=n+Math.imul(N,ts)|0,i=(i=i+Math.imul(N,tu)|0)+Math.imul(T,ts)|0,f=f+Math.imul(T,tu)|0,n=n+Math.imul(A,th)|0,i=(i=i+Math.imul(A,tc)|0)+Math.imul(S,th)|0,f=f+Math.imul(S,tc)|0;var tR=(u+(n=n+Math.imul(w,tp)|0)|0)+((8191&(i=(i=i+Math.imul(w,tm)|0)+Math.imul(M,tp)|0))<<13)|0;u=((f=f+Math.imul(M,tm)|0)+(i>>>13)|0)+(tR>>>26)|0,tR&=67108863,n=Math.imul(D,$),i=(i=Math.imul(D,tt))+Math.imul(U,$)|0,f=Math.imul(U,tt),n=n+Math.imul(F,tr)|0,i=(i=i+Math.imul(F,tn)|0)+Math.imul(B,tr)|0,f=f+Math.imul(B,tn)|0,n=n+Math.imul(O,tf)|0,i=(i=i+Math.imul(O,to)|0)+Math.imul(x,tf)|0,f=f+Math.imul(x,to)|0,n=n+Math.imul(C,ts)|0,i=(i=i+Math.imul(C,tu)|0)+Math.imul(I,ts)|0,f=f+Math.imul(I,tu)|0,n=n+Math.imul(N,th)|0,i=(i=i+Math.imul(N,tc)|0)+Math.imul(T,th)|0,f=f+Math.imul(T,tc)|0;var tC=(u+(n=n+Math.imul(A,tp)|0)|0)+((8191&(i=(i=i+Math.imul(A,tm)|0)+Math.imul(S,tp)|0))<<13)|0;u=((f=f+Math.imul(S,tm)|0)+(i>>>13)|0)+(tC>>>26)|0,tC&=67108863,n=Math.imul(D,tr),i=(i=Math.imul(D,tn))+Math.imul(U,tr)|0,f=Math.imul(U,tn),n=n+Math.imul(F,tf)|0,i=(i=i+Math.imul(F,to)|0)+Math.imul(B,tf)|0,f=f+Math.imul(B,to)|0,n=n+Math.imul(O,ts)|0,i=(i=i+Math.imul(O,tu)|0)+Math.imul(x,ts)|0,f=f+Math.imul(x,tu)|0,n=n+Math.imul(C,th)|0,i=(i=i+Math.imul(C,tc)|0)+Math.imul(I,th)|0,f=f+Math.imul(I,tc)|0;var tI=(u+(n=n+Math.imul(N,tp)|0)|0)+((8191&(i=(i=i+Math.imul(N,tm)|0)+Math.imul(T,tp)|0))<<13)|0;u=((f=f+Math.imul(T,tm)|0)+(i>>>13)|0)+(tI>>>26)|0,tI&=67108863,n=Math.imul(D,tf),i=(i=Math.imul(D,to))+Math.imul(U,tf)|0,f=Math.imul(U,to),n=n+Math.imul(F,ts)|0,i=(i=i+Math.imul(F,tu)|0)+Math.imul(B,ts)|0,f=f+Math.imul(B,tu)|0,n=n+Math.imul(O,th)|0,i=(i=i+Math.imul(O,tc)|0)+Math.imul(x,th)|0,f=f+Math.imul(x,tc)|0;var tP=(u+(n=n+Math.imul(C,tp)|0)|0)+((8191&(i=(i=i+Math.imul(C,tm)|0)+Math.imul(I,tp)|0))<<13)|0;u=((f=f+Math.imul(I,tm)|0)+(i>>>13)|0)+(tP>>>26)|0,tP&=67108863,n=Math.imul(D,ts),i=(i=Math.imul(D,tu))+Math.imul(U,ts)|0,f=Math.imul(U,tu),n=n+Math.imul(F,th)|0,i=(i=i+Math.imul(F,tc)|0)+Math.imul(B,th)|0,f=f+Math.imul(B,tc)|0;var tO=(u+(n=n+Math.imul(O,tp)|0)|0)+((8191&(i=(i=i+Math.imul(O,tm)|0)+Math.imul(x,tp)|0))<<13)|0;u=((f=f+Math.imul(x,tm)|0)+(i>>>13)|0)+(tO>>>26)|0,tO&=67108863,n=Math.imul(D,th),i=(i=Math.imul(D,tc))+Math.imul(U,th)|0,f=Math.imul(U,tc);var tx=(u+(n=n+Math.imul(F,tp)|0)|0)+((8191&(i=(i=i+Math.imul(F,tm)|0)+Math.imul(B,tp)|0))<<13)|0;u=((f=f+Math.imul(B,tm)|0)+(i>>>13)|0)+(tx>>>26)|0,tx&=67108863;var tk=(u+(n=Math.imul(D,tp))|0)+((8191&(i=(i=Math.imul(D,tm))+Math.imul(U,tp)|0))<<13)|0;return u=((f=Math.imul(U,tm))+(i>>>13)|0)+(tk>>>26)|0,tk&=67108863,s[0]=tg,s[1]=tb,s[2]=ty,s[3]=tv,s[4]=tw,s[5]=tM,s[6]=tE,s[7]=tA,s[8]=tS,s[9]=t_,s[10]=tN,s[11]=tT,s[12]=tR,s[13]=tC,s[14]=tI,s[15]=tP,s[16]=tO,s[17]=tx,s[18]=tk,0!==u&&(s[19]=u,r.length++),r};function b(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,f=0;f<r.length-1;f++){var o=i;i=0;for(var a=67108863&n,s=Math.min(f,e.length-1),u=Math.max(0,f-t.length+1);u<=s;u++){var l=f-u,h=(0|t.words[l])*(0|e.words[u]),c=67108863&h;o=o+(h/67108864|0)|0,a=67108863&(c=c+a|0),i+=(o=o+(c>>>26)|0)>>>26,o&=67108863}r.words[f]=a,n=o,o=i}return 0!==n?r.words[f]=n:r.length--,r._strip()}function y(t,e){this.x=t,this.y=e}Math.imul||(g=m),f.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return 10===this.length&&10===t.length?g(this,t,e):n<63?m(this,t,e):b(this,t,e)},y.prototype.makeRBT=function(t){for(var e=Array(t),r=f.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},y.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},y.prototype.permute=function(t,e,r,n,i,f){for(var o=0;o<f;o++)n[o]=e[t[o]],i[o]=r[t[o]]},y.prototype.transform=function(t,e,r,n,i,f){this.permute(f,t,e,r,n,i);for(var o=1;o<i;o<<=1)for(var a=o<<1,s=Math.cos(2*Math.PI/a),u=Math.sin(2*Math.PI/a),l=0;l<i;l+=a)for(var h=s,c=u,d=0;d<o;d++){var p=r[l+d],m=n[l+d],g=r[l+d+o],b=n[l+d+o],y=h*g-c*b;b=h*b+c*g,g=y,r[l+d]=p+g,n[l+d]=m+b,r[l+d+o]=p-g,n[l+d+o]=m-b,d!==a&&(y=s*h-u*c,c=s*c+u*h,h=y)}},y.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},y.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},y.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},y.prototype.convert13b=function(t,e,r,i){for(var f=0,o=0;o<e;o++)f+=0|t[o],r[2*o]=8191&f,f>>>=13,r[2*o+1]=8191&f,f>>>=13;for(o=2*e;o<i;++o)r[o]=0;n(0===f),n((-8192&f)==0)},y.prototype.stub=function(t){for(var e=Array(t),r=0;r<t;r++)e[r]=0;return e},y.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),f=this.stub(n),o=Array(n),a=Array(n),s=Array(n),u=Array(n),l=Array(n),h=Array(n),c=r.words;c.length=n,this.convert13b(t.words,t.length,o,n),this.convert13b(e.words,e.length,u,n),this.transform(o,f,a,s,n,i),this.transform(u,f,l,h,n,i);for(var d=0;d<n;d++){var p=a[d]*l[d]-s[d]*h[d];s[d]=a[d]*h[d]+s[d]*l[d],a[d]=p}return this.conjugate(a,s,n),this.transform(a,s,c,f,n,i),this.conjugate(c,f,n),this.normalize13b(c,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r._strip()},f.prototype.mul=function(t){var e=new f(null);return e.words=Array(this.length+t.length),this.mulTo(t,e)},f.prototype.mulf=function(t){var e=new f(null);return e.words=Array(this.length+t.length),b(this,t,e)},f.prototype.imul=function(t){return this.clone().mulTo(t,this)},f.prototype.imuln=function(t){var e=t<0;e&&(t=-t),n("number"==typeof t),n(t<67108864);for(var r=0,i=0;i<this.length;i++){var f=(0|this.words[i])*t,o=(67108863&f)+(67108863&r);r>>=26,r+=(f/67108864|0)+(o>>>26),this.words[i]=67108863&o}return 0!==r&&(this.words[i]=r,this.length++),e?this.ineg():this},f.prototype.muln=function(t){return this.clone().imuln(t)},f.prototype.sqr=function(){return this.mul(this)},f.prototype.isqr=function(){return this.imul(this.clone())},f.prototype.pow=function(t){var e=function(t){for(var e=Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=t.words[n]>>>i&1}return e}(t);if(0===e.length)return new f(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},f.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,f=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(e=0;e<this.length;e++){var a=this.words[e]&f,s=(0|this.words[e])-a<<r;this.words[e]=s|o,o=a>>>26-r}o&&(this.words[e]=o,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this._strip()},f.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},f.prototype.iushrn=function(t,e,r){n("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var i,f=t%26,o=Math.min((t-f)/26,this.length),a=67108863^67108863>>>f<<f;if(i-=o,i=Math.max(0,i),r){for(var s=0;s<o;s++)r.words[s]=this.words[s];r.length=o}if(0===o);else if(this.length>o)for(this.length-=o,s=0;s<this.length;s++)this.words[s]=this.words[s+o];else this.words[0]=0,this.length=1;var u=0;for(s=this.length-1;s>=0&&(0!==u||s>=i);s--){var l=0|this.words[s];this.words[s]=u<<26-f|l>>>f,u=l&a}return r&&0!==u&&(r.words[r.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},f.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},f.prototype.shln=function(t){return this.clone().ishln(t)},f.prototype.ushln=function(t){return this.clone().iushln(t)},f.prototype.shrn=function(t){return this.clone().ishrn(t)},f.prototype.ushrn=function(t){return this.clone().iushrn(t)},f.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;return!(this.length<=r)&&!!(this.words[r]&1<<e)},f.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;return(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)?this:(0!==e&&r++,this.length=Math.min(r,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<<e),this._strip())},f.prototype.maskn=function(t){return this.clone().imaskn(t)},f.prototype.iaddn=function(t){return(n("number"==typeof t),n(t<67108864),t<0)?this.isubn(-t):0!==this.negative?(1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(t),this.negative=1),this):this._iaddn(t)},f.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[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},f.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<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},f.prototype.addn=function(t){return this.clone().iaddn(t)},f.prototype.subn=function(t){return this.clone().isubn(t)},f.prototype.iabs=function(){return this.negative=0,this},f.prototype.abs=function(){return this.clone().iabs()},f.prototype._ishlnsubmul=function(t,e,r){var i,f,o=t.length+r;this._expand(o);var a=0;for(i=0;i<t.length;i++){f=(0|this.words[i+r])+a;var s=(0|t.words[i])*e;f-=67108863&s,a=(f>>26)-(s/67108864|0),this.words[i+r]=67108863&f}for(;i<this.length-r;i++)a=(f=(0|this.words[i+r])+a)>>26,this.words[i+r]=67108863&f;if(0===a)return this._strip();for(n(-1===a),a=0,i=0;i<this.length;i++)a=(f=-(0|this.words[i])+a)>>26,this.words[i]=67108863&f;return this.negative=1,this._strip()},f.prototype._wordDiv=function(t,e){var r,n=this.length-t.length,i=this.clone(),o=t,a=0|o.words[o.length-1];0!=(n=26-this._countBits(a))&&(o=o.ushln(n),i.iushln(n),a=0|o.words[o.length-1]);var s=i.length-o.length;if("mod"!==e){(r=new f(null)).length=s+1,r.words=Array(r.length);for(var u=0;u<r.length;u++)r.words[u]=0}var l=i.clone()._ishlnsubmul(o,1,s);0===l.negative&&(i=l,r&&(r.words[s]=1));for(var h=s-1;h>=0;h--){var c=(0|i.words[o.length+h])*67108864+(0|i.words[o.length+h-1]);for(c=Math.min(c/a|0,67108863),i._ishlnsubmul(o,c,h);0!==i.negative;)c--,i.negative=0,i._ishlnsubmul(o,1,h),i.isZero()||(i.negative^=1);r&&(r.words[h]=c)}return r&&r._strip(),i._strip(),"div"!==e&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},f.prototype.divmod=function(t,e,r){var i,o,a;return(n(!t.isZero()),this.isZero())?{div:new f(0),mod:new f(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:i,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):(this.negative&t.negative)!=0?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||0>this.cmp(t)?{div:new f(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new f(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new f(this.modrn(t.words[0]))}:this._wordDiv(t,e)},f.prototype.div=function(t){return this.divmod(t,"div",!1).div},f.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},f.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},f.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),f=r.cmp(n);return f<0||1===i&&0===f?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},f.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=67108864%t,i=0,f=this.length-1;f>=0;f--)i=(r*i+(0|this.words[f]))%t;return e?-i:i},f.prototype.modn=function(t){return this.modrn(t)},f.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 f=(0|this.words[i])+67108864*r;this.words[i]=f/t|0,r=f%t}return this._strip(),e?this.ineg():this},f.prototype.divn=function(t){return this.clone().idivn(t)},f.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();for(var i=new f(1),o=new f(0),a=new f(0),s=new f(1),u=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++u;for(var l=r.clone(),h=e.clone();!e.isZero();){for(var c=0,d=1;(e.words[0]&d)==0&&c<26;++c,d<<=1);if(c>0)for(e.iushrn(c);c-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(l),o.isub(h)),i.iushrn(1),o.iushrn(1);for(var p=0,m=1;(r.words[0]&m)==0&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||s.isOdd())&&(a.iadd(l),s.isub(h)),a.iushrn(1),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(a),o.isub(s)):(r.isub(e),a.isub(i),s.isub(o))}return{a:a,b:s,gcd:r.iushln(u)}},f.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e,r=this,i=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var o=new f(1),a=new f(0),s=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var u=0,l=1;(r.words[0]&l)==0&&u<26;++u,l<<=1);if(u>0)for(r.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);for(var h=0,c=1;(i.words[0]&c)==0&&h<26;++h,c<<=1);if(h>0)for(i.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);r.cmp(i)>=0?(r.isub(i),o.isub(a)):(i.isub(r),a.isub(o))}return 0>(e=0===r.cmpn(1)?o:a).cmpn(0)&&e.iadd(t),e},f.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);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var f=e;e=r,r=f}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},f.prototype.invm=function(t){return this.egcd(t).a.umod(t)},f.prototype.isEven=function(){return(1&this.words[0])==0},f.prototype.isOdd=function(){return(1&this.words[0])==1},f.prototype.andln=function(t){return this.words[0]&t},f.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var f=i,o=r;0!==f&&o<this.length;o++){var a=0|this.words[o];a+=f,f=a>>>26,a&=67108863,this.words[o]=a}return 0!==f&&(this.words[o]=f,this.length++),this},f.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},f.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:i<t?-1:1}return 0!==this.negative?0|-e:e},f.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return -1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},f.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return -1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},f.prototype.gtn=function(t){return 1===this.cmpn(t)},f.prototype.gt=function(t){return 1===this.cmp(t)},f.prototype.gten=function(t){return this.cmpn(t)>=0},f.prototype.gte=function(t){return this.cmp(t)>=0},f.prototype.ltn=function(t){return -1===this.cmpn(t)},f.prototype.lt=function(t){return -1===this.cmp(t)},f.prototype.lten=function(t){return 0>=this.cmpn(t)},f.prototype.lte=function(t){return 0>=this.cmp(t)},f.prototype.eqn=function(t){return 0===this.cmpn(t)},f.prototype.eq=function(t){return 0===this.cmp(t)},f.red=function(t){return new _(t)},f.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)},f.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},f.prototype._forceRed=function(t){return this.red=t,this},f.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},f.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},f.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},f.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},f.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},f.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},f.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},f.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},f.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},f.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},f.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},f.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},f.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},f.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new f(e,16),this.n=this.p.bitLength(),this.k=new f(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 E(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(t){if("string"==typeof t){var e=f._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 N(t){_.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new f(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 f(null);return t.words=Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,r=t;do this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?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=Math.min(t.length,9),n=0;n<r;n++)e.words[n]=t.words[n];if(e.length=r,t.length<=9){t.words[0]=0,t.length=1;return}var i=t.words[9];for(n=10,e.words[e.length++]=4194303&i;n<t.length;n++){var f=0|t.words[n];t.words[n-10]=(4194303&f)<<4|i>>>22,i=f}i>>>=22,t.words[n-10]=i,0===i&&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<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(E,w),i(A,w),i(S,w),S.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=(0|t.words[r])*19+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},f._prime=function(t){var e;if(v[t])return v[t];if("k256"===t)e=new M;else if("p224"===t)e=new E;else if("p192"===t)e=new A;else if("p25519"===t)e=new S;else throw Error("Unknown prime "+t);return v[t]=e,e},_.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},_.prototype._verify2=function(t,e){n((t.negative|e.negative)==0,"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},_.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(u(t,t.umod(this.m)._forceRed(this)),t)},_.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},_.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)},_.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},_.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},_.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return 0>r.cmpn(0)&&r.iadd(this.m),r},_.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},_.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},_.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},_.prototype.isqr=function(t){return this.imul(t,t.clone())},_.prototype.sqr=function(t){return this.mul(t,t)},_.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 f(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var a=new f(1).toRed(this),s=a.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new f(2*l*l).toRed(this);0!==this.pow(l,u).cmp(s);)l.redIAdd(s);for(var h=this.pow(l,i),c=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=o;0!==d.cmp(a);){for(var m=d,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g<p);var b=this.pow(h,new f(1).iushln(p-g-1));c=c.redMul(b),h=b.redSqr(),d=d.redMul(h),p=g}return c},_.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},_.prototype.pow=function(t,e){if(e.isZero())return new f(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=Array(16);r[0]=new f(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],o=0,a=0,s=e.bitLength()%26;for(0===s&&(s=26),n=e.length-1;n>=0;n--){for(var u=e.words[n],l=s-1;l>=0;l--){var h=u>>l&1;if(i!==r[0]&&(i=this.sqr(i)),0===h&&0===o){a=0;continue}o<<=1,o|=h,(4==++a||0===n&&0===l)&&(i=this.mul(i,r[o]),a=0,o=0)}s=26}return i},_.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},_.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},f.mont=function(t){return new N(t)},i(N,_),N.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},N.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},N.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),f=i;return i.cmp(this.m)>=0?f=i.isub(this.m):0>i.cmpn(0)&&(f=i.iadd(this.m)),f._forceRed(this)},N.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new f(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),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},N.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},66530:function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw 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 f(t,e,r){if(f.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"))}"object"==typeof t?t.exports=f:e.BN=f,f.BN=f,f.wordSize=26;try{h="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(36266).Buffer}catch(t){}function o(t,e){var r=t.charCodeAt(e);return r>=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 a(t,e,r){var n=o(t,r);return r-1>=e&&(n|=o(t,r-1)<<4),n}function s(t,e,r,i){for(var f=0,o=0,a=Math.min(t.length,r),s=e;s<a;s++){var u=t.charCodeAt(s)-48;f*=i,o=u>=49?u-49+10:u>=17?u-17+10:u,n(u>=0&&o<i,"Invalid character"),f+=o}return f}function u(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(f.isBN=function(t){return t instanceof f||null!==t&&"object"==typeof t&&t.constructor.wordSize===f.wordSize&&Array.isArray(t.words)},f.max=function(t,e){return t.cmp(e)>0?t:e},f.min=function(t,e){return 0>t.cmp(e)?t:e},f.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);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},f.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)},f.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=Array(this.length);for(var i,f,o=0;o<this.length;o++)this.words[o]=0;var a=0;if("be"===r)for(o=t.length-1,i=0;o>=0;o-=3)f=t[o]|t[o-1]<<8|t[o-2]<<16,this.words[i]|=f<<a&67108863,this.words[i+1]=f>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);else if("le"===r)for(o=0,i=0;o<t.length;o+=3)f=t[o]|t[o+1]<<8|t[o+2]<<16,this.words[i]|=f<<a&67108863,this.words[i+1]=f>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);return this._strip()},f.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=Array(this.length);for(var n,i=0;i<this.length;i++)this.words[i]=0;var f=0,o=0;if("be"===r)for(i=t.length-1;i>=e;i-=2)n=a(t,e,i)<<f,this.words[o]|=67108863&n,f>=18?(f-=18,o+=1,this.words[o]|=n>>>26):f+=8;else for(i=(t.length-e)%2==0?e+1:e;i<t.length;i+=2)n=a(t,e,i)<<f,this.words[o]|=67108863&n,f>=18?(f-=18,o+=1,this.words[o]|=n>>>26):f+=8;this._strip()},f.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 f=t.length-r,o=f%n,a=Math.min(f,f-o)+r,u=0,l=r;l<a;l+=n)u=s(t,l,l+n,e),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==o){var h=1;for(u=s(t,l,t.length,e),l=0;l<o;l++)h*=e;this.imuln(h),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this._strip()},f.prototype.copy=function(t){t.words=Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},f.prototype._move=function(t){u(t,this)},f.prototype.clone=function(){var t=new f(null);return this.copy(t),t},f.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},f.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},f.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{f.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(t){f.prototype.inspect=l}else f.prototype.inspect=l;function l(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var h,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"],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];function m(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],f=0|e.words[0],o=i*f,a=67108863&o,s=o/67108864|0;r.words[0]=a;for(var u=1;u<n;u++){for(var l=s>>>26,h=67108863&s,c=Math.min(u,e.length-1),d=Math.max(0,u-t.length+1);d<=c;d++){var p=u-d|0;l+=(o=(i=0|t.words[p])*(f=0|e.words[d])+h)/67108864|0,h=67108863&o}r.words[u]=0|h,s=0|l}return 0!==s?r.words[u]=0|s:r.length--,r._strip()}f.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var r,i=0,f=0,o=0;o<this.length;o++){var a=this.words[o],s=((a<<i|f)&16777215).toString(16);f=a>>>24-i&16777215,(i+=2)>=26&&(i-=26,o--),r=0!==f||o!==this.length-1?c[6-s.length]+s+r:s+r}for(0!==f&&(r=f.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var u=d[t],l=p[t];r="";var h=this.clone();for(h.negative=0;!h.isZero();){var m=h.modrn(l).toString(t);r=(h=h.idivn(l)).isZero()?m+r:c[u-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},f.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},f.prototype.toJSON=function(){return this.toString(16,2)},h&&(f.prototype.toBuffer=function(t,e){return this.toArrayLike(h,t,e)}),f.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},f.prototype.toArrayLike=function(t,e,r){this._strip();var i=this.byteLength(),f=r||Math.max(1,i);n(i<=f,"byte array longer than desired length"),n(f>0,"Requested array length <= 0");var o=t.allocUnsafe?t.allocUnsafe(f):new t(f);return this["_toArrayLike"+("le"===e?"LE":"BE")](o,i),o},f.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,i=0,f=0;i<this.length;i++){var o=this.words[i]<<f|n;t[r++]=255&o,r<t.length&&(t[r++]=o>>8&255),r<t.length&&(t[r++]=o>>16&255),6===f?(r<t.length&&(t[r++]=o>>24&255),n=0,f=0):(n=o>>>24,f+=2)}if(r<t.length)for(t[r++]=n;r<t.length;)t[r++]=0},f.prototype._toArrayLikeBE=function(t,e){for(var r=t.length-1,n=0,i=0,f=0;i<this.length;i++){var o=this.words[i]<<f|n;t[r--]=255&o,r>=0&&(t[r--]=o>>8&255),r>=0&&(t[r--]=o>>16&255),6===f?(r>=0&&(t[r--]=o>>24&255),n=0,f=0):(n=o>>>24,f+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?f.prototype._countBits=function(t){return 32-Math.clz32(t)}:f.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},f.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return(8191&e)==0&&(r+=13,e>>>=13),(127&e)==0&&(r+=7,e>>>=7),(15&e)==0&&(r+=4,e>>>=4),(3&e)==0&&(r+=2,e>>>=2),(1&e)==0&&r++,r},f.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return(this.length-1)*26+e},f.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},f.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},f.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},f.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},f.prototype.isNeg=function(){return 0!==this.negative},f.prototype.neg=function(){return this.clone().ineg()},f.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},f.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},f.prototype.ior=function(t){return n((this.negative|t.negative)==0),this.iuor(t)},f.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},f.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},f.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this._strip()},f.prototype.iand=function(t){return n((this.negative|t.negative)==0),this.iuand(t)},f.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},f.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},f.prototype.iuxor=function(t){this.length>t.length?(e=this,r=t):(e=t,r=this);for(var e,r,n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this._strip()},f.prototype.ixor=function(t){return n((this.negative|t.negative)==0),this.iuxor(t)},f.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},f.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},f.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;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},f.prototype.notn=function(t){return this.clone().inotn(t)},f.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),e?this.words[r]=this.words[r]|1<<i:this.words[r]=this.words[r]&~(1<<i),this._strip()},f.prototype.iadd=function(t){if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var e,r,n,i=0,f=0;f<n.length;f++)e=(0|r.words[f])+(0|n.words[f])+i,this.words[f]=67108863&e,i=e>>>26;for(;0!==i&&f<r.length;f++)e=(0|r.words[f])+i,this.words[f]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;f<r.length;f++)this.words[f]=r.words[f];return this},f.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},f.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e,r,n=this.iadd(t);return t.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(e=this,r=t):(e=t,r=this);for(var f=0,o=0;o<r.length;o++)f=(n=(0|e.words[o])-(0|r.words[o])+f)>>26,this.words[o]=67108863&n;for(;0!==f&&o<e.length;o++)f=(n=(0|e.words[o])+f)>>26,this.words[o]=67108863&n;if(0===f&&o<e.length&&e!==this)for(;o<e.length;o++)this.words[o]=e.words[o];return this.length=Math.max(this.length,o),e!==this&&(this.negative=1),this._strip()},f.prototype.sub=function(t){return this.clone().isub(t)};var g=function(t,e,r){var n,i,f,o=t.words,a=e.words,s=r.words,u=0,l=0|o[0],h=8191&l,c=l>>>13,d=0|o[1],p=8191&d,m=d>>>13,g=0|o[2],b=8191&g,y=g>>>13,v=0|o[3],w=8191&v,M=v>>>13,E=0|o[4],A=8191&E,S=E>>>13,_=0|o[5],N=8191&_,T=_>>>13,R=0|o[6],C=8191&R,I=R>>>13,P=0|o[7],O=8191&P,x=P>>>13,k=0|o[8],F=8191&k,B=k>>>13,L=0|o[9],D=8191&L,U=L>>>13,G=0|a[0],z=8191&G,J=G>>>13,j=0|a[1],H=8191&j,V=j>>>13,X=0|a[2],q=8191&X,Z=X>>>13,K=0|a[3],W=8191&K,Y=K>>>13,Q=0|a[4],$=8191&Q,tt=Q>>>13,te=0|a[5],tr=8191&te,tn=te>>>13,ti=0|a[6],tf=8191&ti,to=ti>>>13,ta=0|a[7],ts=8191&ta,tu=ta>>>13,tl=0|a[8],th=8191&tl,tc=tl>>>13,td=0|a[9],tp=8191&td,tm=td>>>13;r.negative=t.negative^e.negative,r.length=19;var tg=(u+(n=Math.imul(h,z))|0)+((8191&(i=(i=Math.imul(h,J))+Math.imul(c,z)|0))<<13)|0;u=((f=Math.imul(c,J))+(i>>>13)|0)+(tg>>>26)|0,tg&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,J))+Math.imul(m,z)|0,f=Math.imul(m,J);var tb=(u+(n=n+Math.imul(h,H)|0)|0)+((8191&(i=(i=i+Math.imul(h,V)|0)+Math.imul(c,H)|0))<<13)|0;u=((f=f+Math.imul(c,V)|0)+(i>>>13)|0)+(tb>>>26)|0,tb&=67108863,n=Math.imul(b,z),i=(i=Math.imul(b,J))+Math.imul(y,z)|0,f=Math.imul(y,J),n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,H)|0,f=f+Math.imul(m,V)|0;var ty=(u+(n=n+Math.imul(h,q)|0)|0)+((8191&(i=(i=i+Math.imul(h,Z)|0)+Math.imul(c,q)|0))<<13)|0;u=((f=f+Math.imul(c,Z)|0)+(i>>>13)|0)+(ty>>>26)|0,ty&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,J))+Math.imul(M,z)|0,f=Math.imul(M,J),n=n+Math.imul(b,H)|0,i=(i=i+Math.imul(b,V)|0)+Math.imul(y,H)|0,f=f+Math.imul(y,V)|0,n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,q)|0,f=f+Math.imul(m,Z)|0;var tv=(u+(n=n+Math.imul(h,W)|0)|0)+((8191&(i=(i=i+Math.imul(h,Y)|0)+Math.imul(c,W)|0))<<13)|0;u=((f=f+Math.imul(c,Y)|0)+(i>>>13)|0)+(tv>>>26)|0,tv&=67108863,n=Math.imul(A,z),i=(i=Math.imul(A,J))+Math.imul(S,z)|0,f=Math.imul(S,J),n=n+Math.imul(w,H)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(M,H)|0,f=f+Math.imul(M,V)|0,n=n+Math.imul(b,q)|0,i=(i=i+Math.imul(b,Z)|0)+Math.imul(y,q)|0,f=f+Math.imul(y,Z)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,W)|0,f=f+Math.imul(m,Y)|0;var tw=(u+(n=n+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(c,$)|0))<<13)|0;u=((f=f+Math.imul(c,tt)|0)+(i>>>13)|0)+(tw>>>26)|0,tw&=67108863,n=Math.imul(N,z),i=(i=Math.imul(N,J))+Math.imul(T,z)|0,f=Math.imul(T,J),n=n+Math.imul(A,H)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(S,H)|0,f=f+Math.imul(S,V)|0,n=n+Math.imul(w,q)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(M,q)|0,f=f+Math.imul(M,Z)|0,n=n+Math.imul(b,W)|0,i=(i=i+Math.imul(b,Y)|0)+Math.imul(y,W)|0,f=f+Math.imul(y,Y)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,$)|0,f=f+Math.imul(m,tt)|0;var tM=(u+(n=n+Math.imul(h,tr)|0)|0)+((8191&(i=(i=i+Math.imul(h,tn)|0)+Math.imul(c,tr)|0))<<13)|0;u=((f=f+Math.imul(c,tn)|0)+(i>>>13)|0)+(tM>>>26)|0,tM&=67108863,n=Math.imul(C,z),i=(i=Math.imul(C,J))+Math.imul(I,z)|0,f=Math.imul(I,J),n=n+Math.imul(N,H)|0,i=(i=i+Math.imul(N,V)|0)+Math.imul(T,H)|0,f=f+Math.imul(T,V)|0,n=n+Math.imul(A,q)|0,i=(i=i+Math.imul(A,Z)|0)+Math.imul(S,q)|0,f=f+Math.imul(S,Z)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(M,W)|0,f=f+Math.imul(M,Y)|0,n=n+Math.imul(b,$)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(y,$)|0,f=f+Math.imul(y,tt)|0,n=n+Math.imul(p,tr)|0,i=(i=i+Math.imul(p,tn)|0)+Math.imul(m,tr)|0,f=f+Math.imul(m,tn)|0;var tE=(u+(n=n+Math.imul(h,tf)|0)|0)+((8191&(i=(i=i+Math.imul(h,to)|0)+Math.imul(c,tf)|0))<<13)|0;u=((f=f+Math.imul(c,to)|0)+(i>>>13)|0)+(tE>>>26)|0,tE&=67108863,n=Math.imul(O,z),i=(i=Math.imul(O,J))+Math.imul(x,z)|0,f=Math.imul(x,J),n=n+Math.imul(C,H)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(I,H)|0,f=f+Math.imul(I,V)|0,n=n+Math.imul(N,q)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(T,q)|0,f=f+Math.imul(T,Z)|0,n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(S,W)|0,f=f+Math.imul(S,Y)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(M,$)|0,f=f+Math.imul(M,tt)|0,n=n+Math.imul(b,tr)|0,i=(i=i+Math.imul(b,tn)|0)+Math.imul(y,tr)|0,f=f+Math.imul(y,tn)|0,n=n+Math.imul(p,tf)|0,i=(i=i+Math.imul(p,to)|0)+Math.imul(m,tf)|0,f=f+Math.imul(m,to)|0;var tA=(u+(n=n+Math.imul(h,ts)|0)|0)+((8191&(i=(i=i+Math.imul(h,tu)|0)+Math.imul(c,ts)|0))<<13)|0;u=((f=f+Math.imul(c,tu)|0)+(i>>>13)|0)+(tA>>>26)|0,tA&=67108863,n=Math.imul(F,z),i=(i=Math.imul(F,J))+Math.imul(B,z)|0,f=Math.imul(B,J),n=n+Math.imul(O,H)|0,i=(i=i+Math.imul(O,V)|0)+Math.imul(x,H)|0,f=f+Math.imul(x,V)|0,n=n+Math.imul(C,q)|0,i=(i=i+Math.imul(C,Z)|0)+Math.imul(I,q)|0,f=f+Math.imul(I,Z)|0,n=n+Math.imul(N,W)|0,i=(i=i+Math.imul(N,Y)|0)+Math.imul(T,W)|0,f=f+Math.imul(T,Y)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(S,$)|0,f=f+Math.imul(S,tt)|0,n=n+Math.imul(w,tr)|0,i=(i=i+Math.imul(w,tn)|0)+Math.imul(M,tr)|0,f=f+Math.imul(M,tn)|0,n=n+Math.imul(b,tf)|0,i=(i=i+Math.imul(b,to)|0)+Math.imul(y,tf)|0,f=f+Math.imul(y,to)|0,n=n+Math.imul(p,ts)|0,i=(i=i+Math.imul(p,tu)|0)+Math.imul(m,ts)|0,f=f+Math.imul(m,tu)|0;var tS=(u+(n=n+Math.imul(h,th)|0)|0)+((8191&(i=(i=i+Math.imul(h,tc)|0)+Math.imul(c,th)|0))<<13)|0;u=((f=f+Math.imul(c,tc)|0)+(i>>>13)|0)+(tS>>>26)|0,tS&=67108863,n=Math.imul(D,z),i=(i=Math.imul(D,J))+Math.imul(U,z)|0,f=Math.imul(U,J),n=n+Math.imul(F,H)|0,i=(i=i+Math.imul(F,V)|0)+Math.imul(B,H)|0,f=f+Math.imul(B,V)|0,n=n+Math.imul(O,q)|0,i=(i=i+Math.imul(O,Z)|0)+Math.imul(x,q)|0,f=f+Math.imul(x,Z)|0,n=n+Math.imul(C,W)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(I,W)|0,f=f+Math.imul(I,Y)|0,n=n+Math.imul(N,$)|0,i=(i=i+Math.imul(N,tt)|0)+Math.imul(T,$)|0,f=f+Math.imul(T,tt)|0,n=n+Math.imul(A,tr)|0,i=(i=i+Math.imul(A,tn)|0)+Math.imul(S,tr)|0,f=f+Math.imul(S,tn)|0,n=n+Math.imul(w,tf)|0,i=(i=i+Math.imul(w,to)|0)+Math.imul(M,tf)|0,f=f+Math.imul(M,to)|0,n=n+Math.imul(b,ts)|0,i=(i=i+Math.imul(b,tu)|0)+Math.imul(y,ts)|0,f=f+Math.imul(y,tu)|0,n=n+Math.imul(p,th)|0,i=(i=i+Math.imul(p,tc)|0)+Math.imul(m,th)|0,f=f+Math.imul(m,tc)|0;var t_=(u+(n=n+Math.imul(h,tp)|0)|0)+((8191&(i=(i=i+Math.imul(h,tm)|0)+Math.imul(c,tp)|0))<<13)|0;u=((f=f+Math.imul(c,tm)|0)+(i>>>13)|0)+(t_>>>26)|0,t_&=67108863,n=Math.imul(D,H),i=(i=Math.imul(D,V))+Math.imul(U,H)|0,f=Math.imul(U,V),n=n+Math.imul(F,q)|0,i=(i=i+Math.imul(F,Z)|0)+Math.imul(B,q)|0,f=f+Math.imul(B,Z)|0,n=n+Math.imul(O,W)|0,i=(i=i+Math.imul(O,Y)|0)+Math.imul(x,W)|0,f=f+Math.imul(x,Y)|0,n=n+Math.imul(C,$)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(I,$)|0,f=f+Math.imul(I,tt)|0,n=n+Math.imul(N,tr)|0,i=(i=i+Math.imul(N,tn)|0)+Math.imul(T,tr)|0,f=f+Math.imul(T,tn)|0,n=n+Math.imul(A,tf)|0,i=(i=i+Math.imul(A,to)|0)+Math.imul(S,tf)|0,f=f+Math.imul(S,to)|0,n=n+Math.imul(w,ts)|0,i=(i=i+Math.imul(w,tu)|0)+Math.imul(M,ts)|0,f=f+Math.imul(M,tu)|0,n=n+Math.imul(b,th)|0,i=(i=i+Math.imul(b,tc)|0)+Math.imul(y,th)|0,f=f+Math.imul(y,tc)|0;var tN=(u+(n=n+Math.imul(p,tp)|0)|0)+((8191&(i=(i=i+Math.imul(p,tm)|0)+Math.imul(m,tp)|0))<<13)|0;u=((f=f+Math.imul(m,tm)|0)+(i>>>13)|0)+(tN>>>26)|0,tN&=67108863,n=Math.imul(D,q),i=(i=Math.imul(D,Z))+Math.imul(U,q)|0,f=Math.imul(U,Z),n=n+Math.imul(F,W)|0,i=(i=i+Math.imul(F,Y)|0)+Math.imul(B,W)|0,f=f+Math.imul(B,Y)|0,n=n+Math.imul(O,$)|0,i=(i=i+Math.imul(O,tt)|0)+Math.imul(x,$)|0,f=f+Math.imul(x,tt)|0,n=n+Math.imul(C,tr)|0,i=(i=i+Math.imul(C,tn)|0)+Math.imul(I,tr)|0,f=f+Math.imul(I,tn)|0,n=n+Math.imul(N,tf)|0,i=(i=i+Math.imul(N,to)|0)+Math.imul(T,tf)|0,f=f+Math.imul(T,to)|0,n=n+Math.imul(A,ts)|0,i=(i=i+Math.imul(A,tu)|0)+Math.imul(S,ts)|0,f=f+Math.imul(S,tu)|0,n=n+Math.imul(w,th)|0,i=(i=i+Math.imul(w,tc)|0)+Math.imul(M,th)|0,f=f+Math.imul(M,tc)|0;var tT=(u+(n=n+Math.imul(b,tp)|0)|0)+((8191&(i=(i=i+Math.imul(b,tm)|0)+Math.imul(y,tp)|0))<<13)|0;u=((f=f+Math.imul(y,tm)|0)+(i>>>13)|0)+(tT>>>26)|0,tT&=67108863,n=Math.imul(D,W),i=(i=Math.imul(D,Y))+Math.imul(U,W)|0,f=Math.imul(U,Y),n=n+Math.imul(F,$)|0,i=(i=i+Math.imul(F,tt)|0)+Math.imul(B,$)|0,f=f+Math.imul(B,tt)|0,n=n+Math.imul(O,tr)|0,i=(i=i+Math.imul(O,tn)|0)+Math.imul(x,tr)|0,f=f+Math.imul(x,tn)|0,n=n+Math.imul(C,tf)|0,i=(i=i+Math.imul(C,to)|0)+Math.imul(I,tf)|0,f=f+Math.imul(I,to)|0,n=n+Math.imul(N,ts)|0,i=(i=i+Math.imul(N,tu)|0)+Math.imul(T,ts)|0,f=f+Math.imul(T,tu)|0,n=n+Math.imul(A,th)|0,i=(i=i+Math.imul(A,tc)|0)+Math.imul(S,th)|0,f=f+Math.imul(S,tc)|0;var tR=(u+(n=n+Math.imul(w,tp)|0)|0)+((8191&(i=(i=i+Math.imul(w,tm)|0)+Math.imul(M,tp)|0))<<13)|0;u=((f=f+Math.imul(M,tm)|0)+(i>>>13)|0)+(tR>>>26)|0,tR&=67108863,n=Math.imul(D,$),i=(i=Math.imul(D,tt))+Math.imul(U,$)|0,f=Math.imul(U,tt),n=n+Math.imul(F,tr)|0,i=(i=i+Math.imul(F,tn)|0)+Math.imul(B,tr)|0,f=f+Math.imul(B,tn)|0,n=n+Math.imul(O,tf)|0,i=(i=i+Math.imul(O,to)|0)+Math.imul(x,tf)|0,f=f+Math.imul(x,to)|0,n=n+Math.imul(C,ts)|0,i=(i=i+Math.imul(C,tu)|0)+Math.imul(I,ts)|0,f=f+Math.imul(I,tu)|0,n=n+Math.imul(N,th)|0,i=(i=i+Math.imul(N,tc)|0)+Math.imul(T,th)|0,f=f+Math.imul(T,tc)|0;var tC=(u+(n=n+Math.imul(A,tp)|0)|0)+((8191&(i=(i=i+Math.imul(A,tm)|0)+Math.imul(S,tp)|0))<<13)|0;u=((f=f+Math.imul(S,tm)|0)+(i>>>13)|0)+(tC>>>26)|0,tC&=67108863,n=Math.imul(D,tr),i=(i=Math.imul(D,tn))+Math.imul(U,tr)|0,f=Math.imul(U,tn),n=n+Math.imul(F,tf)|0,i=(i=i+Math.imul(F,to)|0)+Math.imul(B,tf)|0,f=f+Math.imul(B,to)|0,n=n+Math.imul(O,ts)|0,i=(i=i+Math.imul(O,tu)|0)+Math.imul(x,ts)|0,f=f+Math.imul(x,tu)|0,n=n+Math.imul(C,th)|0,i=(i=i+Math.imul(C,tc)|0)+Math.imul(I,th)|0,f=f+Math.imul(I,tc)|0;var tI=(u+(n=n+Math.imul(N,tp)|0)|0)+((8191&(i=(i=i+Math.imul(N,tm)|0)+Math.imul(T,tp)|0))<<13)|0;u=((f=f+Math.imul(T,tm)|0)+(i>>>13)|0)+(tI>>>26)|0,tI&=67108863,n=Math.imul(D,tf),i=(i=Math.imul(D,to))+Math.imul(U,tf)|0,f=Math.imul(U,to),n=n+Math.imul(F,ts)|0,i=(i=i+Math.imul(F,tu)|0)+Math.imul(B,ts)|0,f=f+Math.imul(B,tu)|0,n=n+Math.imul(O,th)|0,i=(i=i+Math.imul(O,tc)|0)+Math.imul(x,th)|0,f=f+Math.imul(x,tc)|0;var tP=(u+(n=n+Math.imul(C,tp)|0)|0)+((8191&(i=(i=i+Math.imul(C,tm)|0)+Math.imul(I,tp)|0))<<13)|0;u=((f=f+Math.imul(I,tm)|0)+(i>>>13)|0)+(tP>>>26)|0,tP&=67108863,n=Math.imul(D,ts),i=(i=Math.imul(D,tu))+Math.imul(U,ts)|0,f=Math.imul(U,tu),n=n+Math.imul(F,th)|0,i=(i=i+Math.imul(F,tc)|0)+Math.imul(B,th)|0,f=f+Math.imul(B,tc)|0;var tO=(u+(n=n+Math.imul(O,tp)|0)|0)+((8191&(i=(i=i+Math.imul(O,tm)|0)+Math.imul(x,tp)|0))<<13)|0;u=((f=f+Math.imul(x,tm)|0)+(i>>>13)|0)+(tO>>>26)|0,tO&=67108863,n=Math.imul(D,th),i=(i=Math.imul(D,tc))+Math.imul(U,th)|0,f=Math.imul(U,tc);var tx=(u+(n=n+Math.imul(F,tp)|0)|0)+((8191&(i=(i=i+Math.imul(F,tm)|0)+Math.imul(B,tp)|0))<<13)|0;u=((f=f+Math.imul(B,tm)|0)+(i>>>13)|0)+(tx>>>26)|0,tx&=67108863;var tk=(u+(n=Math.imul(D,tp))|0)+((8191&(i=(i=Math.imul(D,tm))+Math.imul(U,tp)|0))<<13)|0;return u=((f=Math.imul(U,tm))+(i>>>13)|0)+(tk>>>26)|0,tk&=67108863,s[0]=tg,s[1]=tb,s[2]=ty,s[3]=tv,s[4]=tw,s[5]=tM,s[6]=tE,s[7]=tA,s[8]=tS,s[9]=t_,s[10]=tN,s[11]=tT,s[12]=tR,s[13]=tC,s[14]=tI,s[15]=tP,s[16]=tO,s[17]=tx,s[18]=tk,0!==u&&(s[19]=u,r.length++),r};function b(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,f=0;f<r.length-1;f++){var o=i;i=0;for(var a=67108863&n,s=Math.min(f,e.length-1),u=Math.max(0,f-t.length+1);u<=s;u++){var l=f-u,h=(0|t.words[l])*(0|e.words[u]),c=67108863&h;o=o+(h/67108864|0)|0,a=67108863&(c=c+a|0),i+=(o=o+(c>>>26)|0)>>>26,o&=67108863}r.words[f]=a,n=o,o=i}return 0!==n?r.words[f]=n:r.length--,r._strip()}function y(t,e){this.x=t,this.y=e}Math.imul||(g=m),f.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return 10===this.length&&10===t.length?g(this,t,e):n<63?m(this,t,e):b(this,t,e)},y.prototype.makeRBT=function(t){for(var e=Array(t),r=f.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},y.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},y.prototype.permute=function(t,e,r,n,i,f){for(var o=0;o<f;o++)n[o]=e[t[o]],i[o]=r[t[o]]},y.prototype.transform=function(t,e,r,n,i,f){this.permute(f,t,e,r,n,i);for(var o=1;o<i;o<<=1)for(var a=o<<1,s=Math.cos(2*Math.PI/a),u=Math.sin(2*Math.PI/a),l=0;l<i;l+=a)for(var h=s,c=u,d=0;d<o;d++){var p=r[l+d],m=n[l+d],g=r[l+d+o],b=n[l+d+o],y=h*g-c*b;b=h*b+c*g,g=y,r[l+d]=p+g,n[l+d]=m+b,r[l+d+o]=p-g,n[l+d+o]=m-b,d!==a&&(y=s*h-u*c,c=s*c+u*h,h=y)}},y.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},y.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},y.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},y.prototype.convert13b=function(t,e,r,i){for(var f=0,o=0;o<e;o++)f+=0|t[o],r[2*o]=8191&f,f>>>=13,r[2*o+1]=8191&f,f>>>=13;for(o=2*e;o<i;++o)r[o]=0;n(0===f),n((-8192&f)==0)},y.prototype.stub=function(t){for(var e=Array(t),r=0;r<t;r++)e[r]=0;return e},y.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),f=this.stub(n),o=Array(n),a=Array(n),s=Array(n),u=Array(n),l=Array(n),h=Array(n),c=r.words;c.length=n,this.convert13b(t.words,t.length,o,n),this.convert13b(e.words,e.length,u,n),this.transform(o,f,a,s,n,i),this.transform(u,f,l,h,n,i);for(var d=0;d<n;d++){var p=a[d]*l[d]-s[d]*h[d];s[d]=a[d]*h[d]+s[d]*l[d],a[d]=p}return this.conjugate(a,s,n),this.transform(a,s,c,f,n,i),this.conjugate(c,f,n),this.normalize13b(c,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r._strip()},f.prototype.mul=function(t){var e=new f(null);return e.words=Array(this.length+t.length),this.mulTo(t,e)},f.prototype.mulf=function(t){var e=new f(null);return e.words=Array(this.length+t.length),b(this,t,e)},f.prototype.imul=function(t){return this.clone().mulTo(t,this)},f.prototype.imuln=function(t){var e=t<0;e&&(t=-t),n("number"==typeof t),n(t<67108864);for(var r=0,i=0;i<this.length;i++){var f=(0|this.words[i])*t,o=(67108863&f)+(67108863&r);r>>=26,r+=(f/67108864|0)+(o>>>26),this.words[i]=67108863&o}return 0!==r&&(this.words[i]=r,this.length++),e?this.ineg():this},f.prototype.muln=function(t){return this.clone().imuln(t)},f.prototype.sqr=function(){return this.mul(this)},f.prototype.isqr=function(){return this.imul(this.clone())},f.prototype.pow=function(t){var e=function(t){for(var e=Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=t.words[n]>>>i&1}return e}(t);if(0===e.length)return new f(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},f.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,f=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(e=0;e<this.length;e++){var a=this.words[e]&f,s=(0|this.words[e])-a<<r;this.words[e]=s|o,o=a>>>26-r}o&&(this.words[e]=o,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this._strip()},f.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},f.prototype.iushrn=function(t,e,r){n("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var i,f=t%26,o=Math.min((t-f)/26,this.length),a=67108863^67108863>>>f<<f;if(i-=o,i=Math.max(0,i),r){for(var s=0;s<o;s++)r.words[s]=this.words[s];r.length=o}if(0===o);else if(this.length>o)for(this.length-=o,s=0;s<this.length;s++)this.words[s]=this.words[s+o];else this.words[0]=0,this.length=1;var u=0;for(s=this.length-1;s>=0&&(0!==u||s>=i);s--){var l=0|this.words[s];this.words[s]=u<<26-f|l>>>f,u=l&a}return r&&0!==u&&(r.words[r.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},f.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},f.prototype.shln=function(t){return this.clone().ishln(t)},f.prototype.ushln=function(t){return this.clone().iushln(t)},f.prototype.shrn=function(t){return this.clone().ishrn(t)},f.prototype.ushrn=function(t){return this.clone().iushrn(t)},f.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;return!(this.length<=r)&&!!(this.words[r]&1<<e)},f.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;return(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)?this:(0!==e&&r++,this.length=Math.min(r,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<<e),this._strip())},f.prototype.maskn=function(t){return this.clone().imaskn(t)},f.prototype.iaddn=function(t){return(n("number"==typeof t),n(t<67108864),t<0)?this.isubn(-t):0!==this.negative?(1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(t),this.negative=1),this):this._iaddn(t)},f.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[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},f.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<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},f.prototype.addn=function(t){return this.clone().iaddn(t)},f.prototype.subn=function(t){return this.clone().isubn(t)},f.prototype.iabs=function(){return this.negative=0,this},f.prototype.abs=function(){return this.clone().iabs()},f.prototype._ishlnsubmul=function(t,e,r){var i,f,o=t.length+r;this._expand(o);var a=0;for(i=0;i<t.length;i++){f=(0|this.words[i+r])+a;var s=(0|t.words[i])*e;f-=67108863&s,a=(f>>26)-(s/67108864|0),this.words[i+r]=67108863&f}for(;i<this.length-r;i++)a=(f=(0|this.words[i+r])+a)>>26,this.words[i+r]=67108863&f;if(0===a)return this._strip();for(n(-1===a),a=0,i=0;i<this.length;i++)a=(f=-(0|this.words[i])+a)>>26,this.words[i]=67108863&f;return this.negative=1,this._strip()},f.prototype._wordDiv=function(t,e){var r,n=this.length-t.length,i=this.clone(),o=t,a=0|o.words[o.length-1];0!=(n=26-this._countBits(a))&&(o=o.ushln(n),i.iushln(n),a=0|o.words[o.length-1]);var s=i.length-o.length;if("mod"!==e){(r=new f(null)).length=s+1,r.words=Array(r.length);for(var u=0;u<r.length;u++)r.words[u]=0}var l=i.clone()._ishlnsubmul(o,1,s);0===l.negative&&(i=l,r&&(r.words[s]=1));for(var h=s-1;h>=0;h--){var c=(0|i.words[o.length+h])*67108864+(0|i.words[o.length+h-1]);for(c=Math.min(c/a|0,67108863),i._ishlnsubmul(o,c,h);0!==i.negative;)c--,i.negative=0,i._ishlnsubmul(o,1,h),i.isZero()||(i.negative^=1);r&&(r.words[h]=c)}return r&&r._strip(),i._strip(),"div"!==e&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},f.prototype.divmod=function(t,e,r){var i,o,a;return(n(!t.isZero()),this.isZero())?{div:new f(0),mod:new f(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:i,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):(this.negative&t.negative)!=0?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||0>this.cmp(t)?{div:new f(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new f(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new f(this.modrn(t.words[0]))}:this._wordDiv(t,e)},f.prototype.div=function(t){return this.divmod(t,"div",!1).div},f.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},f.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},f.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),f=r.cmp(n);return f<0||1===i&&0===f?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},f.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=67108864%t,i=0,f=this.length-1;f>=0;f--)i=(r*i+(0|this.words[f]))%t;return e?-i:i},f.prototype.modn=function(t){return this.modrn(t)},f.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 f=(0|this.words[i])+67108864*r;this.words[i]=f/t|0,r=f%t}return this._strip(),e?this.ineg():this},f.prototype.divn=function(t){return this.clone().idivn(t)},f.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();for(var i=new f(1),o=new f(0),a=new f(0),s=new f(1),u=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++u;for(var l=r.clone(),h=e.clone();!e.isZero();){for(var c=0,d=1;(e.words[0]&d)==0&&c<26;++c,d<<=1);if(c>0)for(e.iushrn(c);c-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(l),o.isub(h)),i.iushrn(1),o.iushrn(1);for(var p=0,m=1;(r.words[0]&m)==0&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||s.isOdd())&&(a.iadd(l),s.isub(h)),a.iushrn(1),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(a),o.isub(s)):(r.isub(e),a.isub(i),s.isub(o))}return{a:a,b:s,gcd:r.iushln(u)}},f.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e,r=this,i=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var o=new f(1),a=new f(0),s=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var u=0,l=1;(r.words[0]&l)==0&&u<26;++u,l<<=1);if(u>0)for(r.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);for(var h=0,c=1;(i.words[0]&c)==0&&h<26;++h,c<<=1);if(h>0)for(i.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);r.cmp(i)>=0?(r.isub(i),o.isub(a)):(i.isub(r),a.isub(o))}return 0>(e=0===r.cmpn(1)?o:a).cmpn(0)&&e.iadd(t),e},f.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);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var f=e;e=r,r=f}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},f.prototype.invm=function(t){return this.egcd(t).a.umod(t)},f.prototype.isEven=function(){return(1&this.words[0])==0},f.prototype.isOdd=function(){return(1&this.words[0])==1},f.prototype.andln=function(t){return this.words[0]&t},f.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var f=i,o=r;0!==f&&o<this.length;o++){var a=0|this.words[o];a+=f,f=a>>>26,a&=67108863,this.words[o]=a}return 0!==f&&(this.words[o]=f,this.length++),this},f.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},f.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:i<t?-1:1}return 0!==this.negative?0|-e:e},f.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return -1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},f.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return -1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},f.prototype.gtn=function(t){return 1===this.cmpn(t)},f.prototype.gt=function(t){return 1===this.cmp(t)},f.prototype.gten=function(t){return this.cmpn(t)>=0},f.prototype.gte=function(t){return this.cmp(t)>=0},f.prototype.ltn=function(t){return -1===this.cmpn(t)},f.prototype.lt=function(t){return -1===this.cmp(t)},f.prototype.lten=function(t){return 0>=this.cmpn(t)},f.prototype.lte=function(t){return 0>=this.cmp(t)},f.prototype.eqn=function(t){return 0===this.cmpn(t)},f.prototype.eq=function(t){return 0===this.cmp(t)},f.red=function(t){return new _(t)},f.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)},f.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},f.prototype._forceRed=function(t){return this.red=t,this},f.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},f.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},f.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},f.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},f.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},f.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},f.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},f.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},f.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},f.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},f.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},f.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},f.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},f.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new f(e,16),this.n=this.p.bitLength(),this.k=new f(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 E(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(t){if("string"==typeof t){var e=f._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 N(t){_.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new f(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 f(null);return t.words=Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,r=t;do this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?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=Math.min(t.length,9),n=0;n<r;n++)e.words[n]=t.words[n];if(e.length=r,t.length<=9){t.words[0]=0,t.length=1;return}var i=t.words[9];for(n=10,e.words[e.length++]=4194303&i;n<t.length;n++){var f=0|t.words[n];t.words[n-10]=(4194303&f)<<4|i>>>22,i=f}i>>>=22,t.words[n-10]=i,0===i&&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<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(E,w),i(A,w),i(S,w),S.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=(0|t.words[r])*19+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},f._prime=function(t){var e;if(v[t])return v[t];if("k256"===t)e=new M;else if("p224"===t)e=new E;else if("p192"===t)e=new A;else if("p25519"===t)e=new S;else throw Error("Unknown prime "+t);return v[t]=e,e},_.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},_.prototype._verify2=function(t,e){n((t.negative|e.negative)==0,"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},_.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(u(t,t.umod(this.m)._forceRed(this)),t)},_.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},_.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)},_.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},_.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},_.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return 0>r.cmpn(0)&&r.iadd(this.m),r},_.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},_.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},_.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},_.prototype.isqr=function(t){return this.imul(t,t.clone())},_.prototype.sqr=function(t){return this.mul(t,t)},_.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 f(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var a=new f(1).toRed(this),s=a.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new f(2*l*l).toRed(this);0!==this.pow(l,u).cmp(s);)l.redIAdd(s);for(var h=this.pow(l,i),c=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=o;0!==d.cmp(a);){for(var m=d,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g<p);var b=this.pow(h,new f(1).iushln(p-g-1));c=c.redMul(b),h=b.redSqr(),d=d.redMul(h),p=g}return c},_.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},_.prototype.pow=function(t,e){if(e.isZero())return new f(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=Array(16);r[0]=new f(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],o=0,a=0,s=e.bitLength()%26;for(0===s&&(s=26),n=e.length-1;n>=0;n--){for(var u=e.words[n],l=s-1;l>=0;l--){var h=u>>l&1;if(i!==r[0]&&(i=this.sqr(i)),0===h&&0===o){a=0;continue}o<<=1,o|=h,(4==++a||0===n&&0===l)&&(i=this.mul(i,r[o]),a=0,o=0)}s=26}return i},_.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},_.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},f.mont=function(t){return new N(t)},i(N,_),N.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},N.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},N.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),f=i;return i.cmp(this.m)>=0?f=i.isub(this.m):0>i.cmpn(0)&&(f=i.iadd(this.m)),f._forceRed(this)},N.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new f(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),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},N.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},68046:function(t,e,r){var n,i=r(34155);!function(){"use strict";var f="input is invalid type",o="object"==typeof window,a=o?window:{};a.JS_SHA3_NO_WINDOW&&(o=!1);var s=!o&&"object"==typeof self;!a.JS_SHA3_NO_NODE_JS&&"object"==typeof i&&i.versions&&i.versions.node?a=r.g:s&&(a=self);var u=!a.JS_SHA3_NO_COMMON_JS&&t.exports,l=r.amdO,h=!a.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,c="0123456789abcdef".split(""),d=[4,1024,262144,67108864],p=[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],g=[224,256,384,512],b=[128,256],y=["hex","buffer","arrayBuffer","array","digest"],v={128:168,256:136};(a.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),h&&(a.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 w=function(t,e,r){return function(n){return new F(t,e,t).update(n)[r]()}},M=function(t,e,r){return function(n,i){return new F(t,e,i).update(n)[r]()}},E=function(t,e,r){return function(e,n,i,f){return T["cshake"+t].update(e,n,i,f)[r]()}},A=function(t,e,r){return function(e,n,i,f){return T["kmac"+t].update(e,n,i,f)[r]()}},S=function(t,e,r,n){for(var i=0;i<y.length;++i){var f=y[i];t[f]=e(r,n,f)}return t},_=function(t,e){var r=w(t,e,"hex");return r.create=function(){return new F(t,e,t)},r.update=function(t){return r.create().update(t)},S(r,w,t,e)},N=[{name:"keccak",padding:[1,256,65536,16777216],bits:g,createMethod:_},{name:"sha3",padding:[6,1536,393216,100663296],bits:g,createMethod:_},{name:"shake",padding:[31,7936,2031616,520093696],bits:b,createMethod:function(t,e){var r=M(t,e,"hex");return r.create=function(r){return new F(t,e,r)},r.update=function(t,e){return r.create(e).update(t)},S(r,M,t,e)}},{name:"cshake",padding:d,bits:b,createMethod:function(t,e){var r=v[t],n=E(t,e,"hex");return n.create=function(n,i,f){return i||f?new F(t,e,n).bytepad([i,f],r):T["shake"+t].create(n)},n.update=function(t,e,r,i){return n.create(e,r,i).update(t)},S(n,E,t,e)}},{name:"kmac",padding:d,bits:b,createMethod:function(t,e){var r=v[t],n=A(t,e,"hex");return n.create=function(n,i,f){return new B(t,e,i).bytepad(["KMAC",f],r).bytepad([n],r)},n.update=function(t,e,r,i){return n.create(t,r,i).update(e)},S(n,A,t,e)}}],T={},R=[],C=0;C<N.length;++C)for(var I=N[C],P=I.bits,O=0;O<P.length;++O){var x=I.name+"_"+P[O];if(R.push(x),T[x]=I.createMethod(P[O],I.padding),"sha3"!==I.name){var k=I.name+P[O];R.push(k),T[k]=T[x]}}function F(t,e,r){this.blocks=[],this.s=[],this.padding=e,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(t<<1)>>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 B(t,e,r){F.call(this,t,e,r)}F.prototype.update=function(t){if(this.finalized)throw Error("finalize already called");var e,r=typeof t;if("string"!==r){if("object"===r){if(null===t)throw Error(f);if(h&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!h||!ArrayBuffer.isView(t)))throw Error(f)}else throw Error(f);e=!0}for(var n,i,o=this.blocks,a=this.byteCount,s=t.length,u=this.blockCount,l=0,c=this.s;l<s;){if(this.reset)for(n=1,this.reset=!1,o[0]=this.block;n<u+1;++n)o[n]=0;if(e)for(n=this.start;l<s&&n<a;++l)o[n>>2]|=t[l]<<p[3&n++];else for(n=this.start;l<s&&n<a;++l)(i=t.charCodeAt(l))<128?o[n>>2]|=i<<p[3&n++]:(i<2048?o[n>>2]|=(192|i>>6)<<p[3&n++]:(i<55296||i>=57344?o[n>>2]|=(224|i>>12)<<p[3&n++]:(i=65536+((1023&i)<<10|1023&t.charCodeAt(++l)),o[n>>2]|=(240|i>>18)<<p[3&n++],o[n>>2]|=(128|i>>12&63)<<p[3&n++]),o[n>>2]|=(128|i>>6&63)<<p[3&n++]),o[n>>2]|=(128|63&i)<<p[3&n++]);if(this.lastByteIndex=n,n>=a){for(this.start=n-a,this.block=o[u],n=0;n<u;++n)c[n]^=o[n];L(c),this.reset=!0}else this.start=n}return this},F.prototype.encode=function(t,e){var r=255&t,n=1,i=[r];for(t>>=8,r=255&t;r>0;)i.unshift(r),t>>=8,r=255&t,++n;return e?i.push(n):i.unshift(n),this.update(i),i.length},F.prototype.encodeString=function(t){var e,r=typeof t;if("string"!==r){if("object"===r){if(null===t)throw Error(f);if(h&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!h||!ArrayBuffer.isView(t)))throw Error(f)}else throw Error(f);e=!0}var n=0,i=t.length;if(e)n=i;else for(var o=0;o<t.length;++o){var a=t.charCodeAt(o);a<128?n+=1:a<2048?n+=2:a<55296||a>=57344?n+=3:(a=65536+((1023&a)<<10|1023&t.charCodeAt(++o)),n+=4)}return n+=this.encode(8*n),this.update(t),n},F.prototype.bytepad=function(t,e){for(var r=this.encode(e),n=0;n<t.length;++n)r+=this.encodeString(t[n]);var i=e-r%e,f=[];return f.length=i,this.update(f),this},F.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex,r=this.blockCount,n=this.s;if(t[e>>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(e=1,t[0]=t[r];e<r+1;++e)t[e]=0;for(t[r-1]|=2147483648,e=0;e<r;++e)n[e]^=t[e];L(n)}},F.prototype.toString=F.prototype.hex=function(){this.finalize();for(var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,f=0,o=0,a="";o<n;){for(f=0;f<e&&o<n;++f,++o)a+=c[(t=r[f])>>4&15]+c[15&t]+c[t>>12&15]+c[t>>8&15]+c[t>>20&15]+c[t>>16&15]+c[t>>28&15]+c[t>>24&15];o%e==0&&(L(r),f=0)}return i&&(a+=c[(t=r[f])>>4&15]+c[15&t],i>1&&(a+=c[t>>12&15]+c[t>>8&15]),i>2&&(a+=c[t>>20&15]+c[t>>16&15])),a},F.prototype.arrayBuffer=function(){this.finalize();for(var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,f=0,o=0,a=this.outputBits>>3,s=new Uint32Array(t=new ArrayBuffer(i?n+1<<2:a));o<n;){for(f=0;f<e&&o<n;++f,++o)s[o]=r[f];o%e==0&&L(r)}return i&&(s[f]=r[f],t=t.slice(0,a)),t},F.prototype.buffer=F.prototype.arrayBuffer,F.prototype.digest=F.prototype.array=function(){this.finalize();for(var t,e,r=this.blockCount,n=this.s,i=this.outputBlocks,f=this.extraBytes,o=0,a=0,s=[];a<i;){for(o=0;o<r&&a<i;++o,++a)t=a<<2,e=n[o],s[t]=255&e,s[t+1]=e>>8&255,s[t+2]=e>>16&255,s[t+3]=e>>24&255;a%r==0&&L(n)}return f&&(t=a<<2,e=n[o],s[t]=255&e,f>1&&(s[t+1]=e>>8&255),f>2&&(s[t+2]=e>>16&255)),s},B.prototype=new F,B.prototype.finalize=function(){return this.encode(this.outputBits,!0),F.prototype.finalize.call(this)};var L=function(t){var e,r,n,i,f,o,a,s,u,l,h,c,d,p,g,b,y,v,w,M,E,A,S,_,N,T,R,C,I,P,O,x,k,F,B,L,D,U,G,z,J,j,H,V,X,q,Z,K,W,Y,Q,$,tt,te,tr,tn,ti,tf,to,ta,ts,tu,tl;for(n=0;n<48;n+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],f=t[1]^t[11]^t[21]^t[31]^t[41],o=t[2]^t[12]^t[22]^t[32]^t[42],a=t[3]^t[13]^t[23]^t[33]^t[43],s=t[4]^t[14]^t[24]^t[34]^t[44],u=t[5]^t[15]^t[25]^t[35]^t[45],l=t[6]^t[16]^t[26]^t[36]^t[46],h=t[7]^t[17]^t[27]^t[37]^t[47],c=t[8]^t[18]^t[28]^t[38]^t[48],d=t[9]^t[19]^t[29]^t[39]^t[49],e=c^(o<<1|a>>>31),r=d^(a<<1|o>>>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^(s<<1|u>>>31),r=f^(u<<1|s>>>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=o^(l<<1|h>>>31),r=a^(h<<1|l>>>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=s^(c<<1|d>>>31),r=u^(d<<1|c>>>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=l^(i<<1|f>>>31),r=h^(f<<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],g=t[1],q=t[11]<<4|t[10]>>>28,Z=t[10]<<4|t[11]>>>28,C=t[20]<<3|t[21]>>>29,I=t[21]<<3|t[20]>>>29,ta=t[31]<<9|t[30]>>>23,ts=t[30]<<9|t[31]>>>23,j=t[40]<<18|t[41]>>>14,H=t[41]<<18|t[40]>>>14,F=t[2]<<1|t[3]>>>31,B=t[3]<<1|t[2]>>>31,b=t[13]<<12|t[12]>>>20,y=t[12]<<12|t[13]>>>20,K=t[22]<<10|t[23]>>>22,W=t[23]<<10|t[22]>>>22,P=t[33]<<13|t[32]>>>19,O=t[32]<<13|t[33]>>>19,tu=t[42]<<2|t[43]>>>30,tl=t[43]<<2|t[42]>>>30,te=t[5]<<30|t[4]>>>2,tr=t[4]<<30|t[5]>>>2,L=t[14]<<6|t[15]>>>26,D=t[15]<<6|t[14]>>>26,v=t[25]<<11|t[24]>>>21,w=t[24]<<11|t[25]>>>21,Y=t[34]<<15|t[35]>>>17,Q=t[35]<<15|t[34]>>>17,x=t[45]<<29|t[44]>>>3,k=t[44]<<29|t[45]>>>3,_=t[6]<<28|t[7]>>>4,N=t[7]<<28|t[6]>>>4,tn=t[17]<<23|t[16]>>>9,ti=t[16]<<23|t[17]>>>9,U=t[26]<<25|t[27]>>>7,G=t[27]<<25|t[26]>>>7,M=t[36]<<21|t[37]>>>11,E=t[37]<<21|t[36]>>>11,$=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,V=t[8]<<27|t[9]>>>5,X=t[9]<<27|t[8]>>>5,T=t[18]<<20|t[19]>>>12,R=t[19]<<20|t[18]>>>12,tf=t[29]<<7|t[28]>>>25,to=t[28]<<7|t[29]>>>25,z=t[38]<<8|t[39]>>>24,J=t[39]<<8|t[38]>>>24,A=t[48]<<14|t[49]>>>18,S=t[49]<<14|t[48]>>>18,t[0]=p^~b&v,t[1]=g^~y&w,t[10]=_^~T&C,t[11]=N^~R&I,t[20]=F^~L&U,t[21]=B^~D&G,t[30]=V^~q&K,t[31]=X^~Z&W,t[40]=te^~tn&tf,t[41]=tr^~ti&to,t[2]=b^~v&M,t[3]=y^~w&E,t[12]=T^~C&P,t[13]=R^~I&O,t[22]=L^~U&z,t[23]=D^~G&J,t[32]=q^~K&Y,t[33]=Z^~W&Q,t[42]=tn^~tf&ta,t[43]=ti^~to&ts,t[4]=v^~M&A,t[5]=w^~E&S,t[14]=C^~P&x,t[15]=I^~O&k,t[24]=U^~z&j,t[25]=G^~J&H,t[34]=K^~Y&$,t[35]=W^~Q&tt,t[44]=tf^~ta&tu,t[45]=to^~ts&tl,t[6]=M^~A&p,t[7]=E^~S&g,t[16]=P^~x&_,t[17]=O^~k&N,t[26]=z^~j&F,t[27]=J^~H&B,t[36]=Y^~$&V,t[37]=Q^~tt&X,t[46]=ta^~tu&te,t[47]=ts^~tl&tr,t[8]=A^~p&b,t[9]=S^~g&y,t[18]=x^~_&T,t[19]=k^~N&R,t[28]=j^~F&L,t[29]=H^~B&D,t[38]=$^~V&q,t[39]=tt^~X&Z,t[48]=tu^~te&tn,t[49]=tl^~tr&ti,t[0]^=m[n],t[1]^=m[n+1]};if(u)t.exports=T;else{for(C=0;C<R.length;++C)a[R[C]]=T[R[C]];l&&void 0!==(n=(function(){return T}).call(e,r,e,t))&&(t.exports=n)}}()},37780:function(t,e,r){"use strict";r.d(e,{i:function(){return n}});let n="hash/5.4.0"},72018:function(t,e,r){"use strict";r.d(e,{id:function(){return f}});var n=r(39847),i=r(9440);function f(t){return(0,n.w)((0,i.Y0)(t))}},21953:function(t,e,r){"use strict";r.r(e),r.d(e,{_TypedDataEncoder:function(){return o.E},hashMessage:function(){return f.r},id:function(){return n.id},isValidName:function(){return i.r},messagePrefix:function(){return f.B},namehash:function(){return i.V}});var n=r(72018),i=r(89412),f=r(26011),o=r(62173)},26011:function(t,e,r){"use strict";r.d(e,{B:function(){return o},r:function(){return a}});var n=r(45310),i=r(39847),f=r(9440);let o="\x19Ethereum Signed Message:\n";function a(t){return"string"==typeof t&&(t=(0,f.Y0)(t)),(0,i.w)((0,n.zo)([(0,f.Y0)(o),(0,f.Y0)(String(t.length)),t]))}},89412:function(t,e,r){"use strict";r.d(e,{r:function(){return E},V:function(){return A}});var n=r(45310),i=r(9440);function f(t,e){e||(e=function(t){return[parseInt(t,16)]});let r=0,n={};return t.split(",").forEach(t=>{let i=t.split(":");n[r+=parseInt(i[0],16)]=e(i[1])}),n}function o(t){let e=0;return t.split(",").map(t=>{let r=t.split("-");return 1===r.length?r[1]="0":""===r[1]&&(r[1]="1"),{l:e+parseInt(r[0],16),h:e=parseInt(r[1],16)}})}function a(t,e){let r=0;for(let n=0;n<e.length;n++){let i=e[n];if(t>=(r+=i.l)&&t<=r+i.h&&(t-r)%(i.d||1)==0){if(i.e&&-1!==i.e.indexOf(t-r))continue;return i}}return null}let s=o("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),u="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map(t=>parseInt(t,16)),l=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],h=f("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),c=f("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),d=f("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",function(t){if(t.length%4!=0)throw Error("bad data");let e=[];for(let r=0;r<t.length;r+=4)e.push(parseInt(t.substring(r,r+4),16));return e}),p=o("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");function m(t){if(t.match(/^[a-z0-9-]*$/i)&&t.length<=59)return t.toLowerCase();let e=(0,i.XL)(t);e=e.map(t=>u.indexOf(t)>=0||t>=65024&&t<=65039?[]:function(t){let e=a(t,l);if(e)return[t+e.s];let r=h[t];if(r)return r;let n=c[t];return n?[t+n[0]]:d[t]||null}(t)||[t]).reduce((t,e)=>(e.forEach(e=>{t.push(e)}),t),[]),(e=(0,i.XL)((0,i.uu)(e),i.Uj.NFKC)).forEach(t=>{if(a(t,p))throw Error("STRINGPREP_CONTAINS_PROHIBITED")}),e.forEach(t=>{if(a(t,s))throw Error("STRINGPREP_CONTAINS_UNASSIGNED")});let r=(0,i.uu)(e);if("-"===r.substring(0,1)||"--"===r.substring(2,4)||"-"===r.substring(r.length-1))throw Error("invalid hyphen");return r}var g=r(39847),b=r(91552),y=r(37780);let v=new b.Yd(y.i),w=new Uint8Array(32);w.fill(0);let M=RegExp("^((.*)\\.)?([^.]+)$");function E(t){try{let e=t.split(".");for(let t=0;t<e.length;t++)if(0===m(e[t]).length)throw Error("empty");return!0}catch(t){}return!1}function A(t){"string"!=typeof t&&v.throwArgumentError("invalid ENS name; not a string","name",t);let e=t,r=w;for(;e.length;){let f=e.match(M);(null==f||""===f[2])&&v.throwArgumentError("invalid ENS address; missing component","name",t);let o=(0,i.Y0)(m(f[3]));r=(0,g.w)((0,n.zo)([r,(0,g.w)(o)])),e=f[2]||""}return(0,n.Dv)(r)}},62173:function(t,e,r){"use strict";r.d(e,{E:function(){return J}});var n=r(45310),i=r(71831),f=r.n(i),o=r(91552),a=f().BN;let s=new o.Yd("bignumber/5.7.0"),u={},l=!1;class h{constructor(t,e){t!==u&&s.throwError("cannot call constructor directly; use BigNumber.from",o.Yd.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=e,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return d(p(this).fromTwos(t))}toTwos(t){return d(p(this).toTwos(t))}abs(){return"-"===this._hex[0]?h.from(this._hex.substring(1)):this}add(t){return d(p(this).add(p(t)))}sub(t){return d(p(this).sub(p(t)))}div(t){return h.from(t).isZero()&&m("division-by-zero","div"),d(p(this).div(p(t)))}mul(t){return d(p(this).mul(p(t)))}mod(t){let e=p(t);return e.isNeg()&&m("division-by-zero","mod"),d(p(this).umod(e))}pow(t){let e=p(t);return e.isNeg()&&m("negative-power","pow"),d(p(this).pow(e))}and(t){let e=p(t);return(this.isNegative()||e.isNeg())&&m("unbound-bitwise-result","and"),d(p(this).and(e))}or(t){let e=p(t);return(this.isNegative()||e.isNeg())&&m("unbound-bitwise-result","or"),d(p(this).or(e))}xor(t){let e=p(t);return(this.isNegative()||e.isNeg())&&m("unbound-bitwise-result","xor"),d(p(this).xor(e))}mask(t){return(this.isNegative()||t<0)&&m("negative-width","mask"),d(p(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&m("negative-width","shl"),d(p(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&m("negative-width","shr"),d(p(this).shrn(t))}eq(t){return p(this).eq(p(t))}lt(t){return p(this).lt(p(t))}lte(t){return p(this).lte(p(t))}gt(t){return p(this).gt(p(t))}gte(t){return p(this).gte(p(t))}isNegative(){return"-"===this._hex[0]}isZero(){return p(this).isZero()}toNumber(){try{return p(this).toNumber()}catch(t){m("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(t){}return s.throwError("this platform does not support BigInt",o.Yd.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?l||(l=!0,s.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?s.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",o.Yd.errors.UNEXPECTED_ARGUMENT,{}):s.throwError("BigNumber.toString does not accept parameters",o.Yd.errors.UNEXPECTED_ARGUMENT,{})),p(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof h)return t;if("string"==typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new h(u,c(t)):t.match(/^-?[0-9]+$/)?new h(u,c(new a(t))):s.throwArgumentError("invalid BigNumber string","value",t);if("number"==typeof t)return t%1&&m("underflow","BigNumber.from",t),(t>=9007199254740991||t<=-9007199254740991)&&m("overflow","BigNumber.from",t),h.from(String(t));if("bigint"==typeof t)return h.from(t.toString());if((0,n._t)(t))return h.from((0,n.Dv)(t));if(t){if(t.toHexString){let e=t.toHexString();if("string"==typeof e)return h.from(e)}else{let e=t._hex;if(null==e&&"BigNumber"===t.type&&(e=t.hex),"string"==typeof e&&((0,n.A7)(e)||"-"===e[0]&&(0,n.A7)(e.substring(1))))return h.from(e)}}return s.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!!(t&&t._isBigNumber)}}function c(t){if("string"!=typeof t)return c(t.toString(16));if("-"===t[0])return("-"===(t=t.substring(1))[0]&&s.throwArgumentError("invalid hex","value",t),"0x00"===(t=c(t)))?t:"-"+t;if("0x"!==t.substring(0,2)&&(t="0x"+t),"0x"===t)return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&"0x00"===t.substring(0,4);)t="0x"+t.substring(4);return t}function d(t){return h.from(c(t))}function p(t){let e=h.from(t).toHexString();return"-"===e[0]?new a("-"+e.substring(3),16):new a(e.substring(2),16)}function m(t,e,r){let n={fault:t,operation:e};return null!=r&&(n.value=r),s.throwError(t,o.Yd.errors.NUMERIC_FAULT,n)}var g=r(39847);let b=new o.Yd("address/5.7.0");function y(t){(0,n.A7)(t,20)||b.throwArgumentError("invalid address","address",t);let e=(t=t.toLowerCase()).substring(2).split(""),r=new Uint8Array(40);for(let t=0;t<40;t++)r[t]=e[t].charCodeAt(0);let i=(0,n.lE)((0,g.w)(r));for(let t=0;t<40;t+=2)i[t>>1]>>4>=8&&(e[t]=e[t].toUpperCase()),(15&i[t>>1])>=8&&(e[t+1]=e[t+1].toUpperCase());return"0x"+e.join("")}let v={};for(let t=0;t<10;t++)v[String(t)]=String(t);for(let t=0;t<26;t++)v[String.fromCharCode(65+t)]=String(10+t);let w=Math.floor(Math.log10?Math.log10(9007199254740991):Math.log(9007199254740991)/Math.LN10);function M(t){let e=null;if("string"!=typeof t&&b.throwArgumentError("invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==t.substring(0,2)&&(t="0x"+t),e=y(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&b.throwArgumentError("bad address checksum","address",t);else if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(t.substring(2,4)!==function(t){let e=(t=(t=t.toUpperCase()).substring(4)+t.substring(0,2)+"00").split("").map(t=>v[t]).join("");for(;e.length>=w;){let t=e.substring(0,w);e=parseInt(t,10)%97+e.substring(t.length)}let r=String(98-parseInt(e,10)%97);for(;r.length<2;)r="0"+r;return r}(t)&&b.throwArgumentError("bad icap checksum","address",t),e=new a(t.substring(4),36).toString(16);e.length<40;)e="0"+e;e=y("0x"+e)}else b.throwArgumentError("invalid address","address",t);return e}let E=new o.Yd("properties/5.7.0");function A(t,e,r){Object.defineProperty(t,e,{enumerable:!0,value:r,writable:!1})}function S(t){let e={};for(let r in t)e[r]=t[r];return e}let _={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};var N=r(37780),T=r(72018);let R=new o.Yd(N.i),C=new Uint8Array(32);C.fill(0);let I=h.from(-1),P=h.from(0),O=h.from(1),x=h.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),k=(0,n.$m)(O.toHexString(),32),F=(0,n.$m)(P.toHexString(),32),B={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},L=["name","version","chainId","verifyingContract","salt"];function D(t){return function(e){return"string"!=typeof e&&R.throwArgumentError(`invalid domain value for ${JSON.stringify(t)}`,`domain.${t}`,e),e}}let U={name:D("name"),version:D("version"),chainId:function(t){try{return h.from(t).toString()}catch(t){}return R.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",t)},verifyingContract:function(t){try{return M(t).toLowerCase()}catch(t){}return R.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",t)},salt:function(t){try{let e=(0,n.lE)(t);if(32!==e.length)throw Error("bad length");return(0,n.Dv)(e)}catch(t){}return R.throwArgumentError('invalid domain value "salt"',"domain.salt",t)}};function G(t){{let e=t.match(/^(u?)int(\d*)$/);if(e){let r=""===e[1],i=parseInt(e[2]||"256");(i%8!=0||i>256||e[2]&&e[2]!==String(i))&&R.throwArgumentError("invalid numeric width","type",t);let f=x.mask(r?i-1:i),o=r?f.add(O).mul(I):P;return function(e){let r=h.from(e);return(r.lt(o)||r.gt(f))&&R.throwArgumentError(`value out-of-bounds for ${t}`,"value",e),(0,n.$m)(r.toTwos(256).toHexString(),32)}}}{let e=t.match(/^bytes(\d+)$/);if(e){let r=parseInt(e[1]);return(0===r||r>32||e[1]!==String(r))&&R.throwArgumentError("invalid bytes width","type",t),function(e){return(0,n.lE)(e).length!==r&&R.throwArgumentError(`invalid length for ${t}`,"value",e),function(t){let e=(0,n.lE)(t),r=e.length%32;return r?(0,n.xs)([e,C.slice(r)]):(0,n.Dv)(e)}(e)}}}switch(t){case"address":return function(t){return(0,n.$m)(M(t),32)};case"bool":return function(t){return t?k:F};case"bytes":return function(t){return(0,g.w)(t)};case"string":return function(t){return(0,T.id)(t)}}return null}function z(t,e){return`${t}(${e.map(({name:t,type:e})=>e+" "+t).join(",")})`}class J{constructor(t){A(this,"types",Object.freeze(function t(e){return function(e){if(function t(e){if(null==e||_[typeof e])return!0;if(Array.isArray(e)||"object"==typeof e){if(!Object.isFrozen(e))return!1;let r=Object.keys(e);for(let n=0;n<r.length;n++){let i=null;try{i=e[r[n]]}catch(t){continue}if(!t(i))return!1}return!0}return E.throwArgumentError(`Cannot deepCopy ${typeof e}`,"object",e)}(e))return e;if(Array.isArray(e))return Object.freeze(e.map(e=>t(e)));if("object"==typeof e){let r={};for(let n in e){let i=e[n];void 0!==i&&A(r,n,t(i))}return r}return E.throwArgumentError(`Cannot deepCopy ${typeof e}`,"object",e)}(e)}(t))),A(this,"_encoderCache",{}),A(this,"_types",{});let e={},r={},n={};for(let i in Object.keys(t).forEach(t=>{e[t]={},r[t]=[],n[t]={}}),t){let n={};t[i].forEach(f=>{n[f.name]&&R.throwArgumentError(`duplicate variable name ${JSON.stringify(f.name)} in ${JSON.stringify(i)}`,"types",t),n[f.name]=!0;let o=f.type.match(/^([^\x5b]*)(\x5b|$)/)[1];o===i&&R.throwArgumentError(`circular type reference to ${JSON.stringify(o)}`,"types",t),G(o)||(r[o]||R.throwArgumentError(`unknown type ${JSON.stringify(o)}`,"types",t),r[o].push(i),e[i][o]=!0)})}let i=Object.keys(r).filter(t=>0===r[t].length);for(let f in 0===i.length?R.throwArgumentError("missing primary type","types",t):i.length>1&&R.throwArgumentError(`ambiguous primary types or unused types: ${i.map(t=>JSON.stringify(t)).join(", ")}`,"types",t),A(this,"primaryType",i[0]),!function i(f,o){o[f]&&R.throwArgumentError(`circular type reference to ${JSON.stringify(f)}`,"types",t),o[f]=!0,Object.keys(e[f]).forEach(t=>{r[t]&&(i(t,o),Object.keys(o).forEach(e=>{n[e][t]=!0}))}),delete o[f]}(this.primaryType,{}),n){let e=Object.keys(n[f]);e.sort(),this._types[f]=z(f,t[f])+e.map(e=>z(e,t[e])).join("")}}getEncoder(t){let e=this._encoderCache[t];return e||(e=this._encoderCache[t]=this._getEncoder(t)),e}_getEncoder(t){{let e=G(t);if(e)return e}let e=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(e){let t=e[1],r=this.getEncoder(t),i=parseInt(e[3]);return e=>{i>=0&&e.length!==i&&R.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",e);let f=e.map(r);return this._types[t]&&(f=f.map(g.w)),(0,g.w)((0,n.xs)(f))}}let r=this.types[t];if(r){let e=(0,T.id)(this._types[t]);return t=>{let i=r.map(({name:e,type:r})=>{let n=this.getEncoder(r)(t[e]);return this._types[r]?(0,g.w)(n):n});return i.unshift(e),(0,n.xs)(i)}}return R.throwArgumentError(`unknown type: ${t}`,"type",t)}encodeType(t){let e=this._types[t];return e||R.throwArgumentError(`unknown type: ${JSON.stringify(t)}`,"name",t),e}encodeData(t,e){return this.getEncoder(t)(e)}hashStruct(t,e){return(0,g.w)(this.encodeData(t,e))}encode(t){return this.encodeData(this.primaryType,t)}hash(t){return this.hashStruct(this.primaryType,t)}_visit(t,e,r){if(G(t))return r(t,e);let n=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(n){let t=n[1],i=parseInt(n[3]);return i>=0&&e.length!==i&&R.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",e),e.map(e=>this._visit(t,e,r))}let i=this.types[t];return i?i.reduce((t,{name:n,type:i})=>(t[n]=this._visit(i,e[n],r),t),{}):R.throwArgumentError(`unknown type: ${t}`,"type",t)}visit(t,e){return this._visit(this.primaryType,t,e)}static from(t){return new J(t)}static getPrimaryType(t){return J.from(t).primaryType}static hashStruct(t,e,r){return J.from(e).hashStruct(t,r)}static hashDomain(t){let e=[];for(let r in t){let n=B[r];n||R.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(r)}`,"domain",t),e.push({name:r,type:n})}return e.sort((t,e)=>L.indexOf(t.name)-L.indexOf(e.name)),J.hashStruct("EIP712Domain",{EIP712Domain:e},t)}static encode(t,e,r){return(0,n.xs)(["0x1901",J.hashDomain(t),J.from(e).hash(r)])}static hash(t,e,r){return(0,g.w)(J.encode(t,e,r))}static resolveNames(t,e,r,i){var f,o,a,s;return f=this,o=void 0,a=void 0,s=function*(){t=S(t);let f={};t.verifyingContract&&!(0,n.A7)(t.verifyingContract,20)&&(f[t.verifyingContract]="0x");let o=J.from(e);for(let t in o.visit(r,(t,e)=>("address"!==t||(0,n.A7)(e,20)||(f[e]="0x"),e)),f)f[t]=yield i(t);return t.verifyingContract&&f[t.verifyingContract]&&(t.verifyingContract=f[t.verifyingContract]),r=o.visit(r,(t,e)=>"address"===t&&f[e]?f[e]:e),{domain:t,value:r}},new(a||(a=Promise))(function(t,e){function r(t){try{i(s.next(t))}catch(t){e(t)}}function n(t){try{i(s.throw(t))}catch(t){e(t)}}function i(e){var i;e.done?t(e.value):((i=e.value)instanceof a?i:new a(function(t){t(i)})).then(r,n)}i((s=s.apply(f,o||[])).next())})}static getPayload(t,e,r){J.hashDomain(t);let i={},f=[];L.forEach(e=>{let r=t[e];null!=r&&(i[e]=U[e](r),f.push({name:e,type:B[e]}))});let o=J.from(e),a=S(e);return a.EIP712Domain?R.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",e):a.EIP712Domain=f,o.encode(r),{types:a,domain:i,primaryType:o.primaryType,message:o.visit(r,(t,e)=>{if(t.match(/^bytes(\d*)/))return(0,n.Dv)((0,n.lE)(e));if(t.match(/^u?int/))return h.from(e).toString();switch(t){case"address":return e.toLowerCase();case"bool":return!!e;case"string":return"string"!=typeof e&&R.throwArgumentError("invalid string","value",e),e}return R.throwArgumentError("unsupported type","type",t)})}}}},45310:function(t,e,r){"use strict";r.d(e,{lE:function(){return s},zo:function(){return u},xs:function(){return d},$m:function(){return p},Dv:function(){return c},_t:function(){return a},A7:function(){return l}});let n=new(r(91552)).Yd("bytes/5.7.0");function i(t){return!!t.toHexString}function f(t){return t.slice||(t.slice=function(){let e=Array.prototype.slice.call(arguments);return f(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function o(t){return"number"==typeof t&&t==t&&t%1==0}function a(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"==typeof t||!o(t.length)||t.length<0)return!1;for(let e=0;e<t.length;e++){let r=t[e];if(!o(r)||r<0||r>=256)return!1}return!0}function s(t,e){if(e||(e={}),"number"==typeof t){n.checkSafeUint53(t,"invalid arrayify value");let e=[];for(;t;)e.unshift(255&t),t=parseInt(String(t/256));return 0===e.length&&e.push(0),f(new Uint8Array(e))}if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),i(t)&&(t=t.toHexString()),l(t)){let r=t.substring(2);r.length%2&&("left"===e.hexPad?r="0"+r:"right"===e.hexPad?r+="0":n.throwArgumentError("hex data is odd-length","value",t));let i=[];for(let t=0;t<r.length;t+=2)i.push(parseInt(r.substring(t,t+2),16));return f(new Uint8Array(i))}return a(t)?f(new Uint8Array(t)):n.throwArgumentError("invalid arrayify value","value",t)}function u(t){let e=t.map(t=>s(t)),r=new Uint8Array(e.reduce((t,e)=>t+e.length,0));return e.reduce((t,e)=>(r.set(e,t),t+e.length),0),f(r)}function l(t,e){return"string"==typeof t&&!!t.match(/^0x[0-9A-Fa-f]*$/)&&(!e||t.length===2+2*e)}let h="0123456789abcdef";function c(t,e){if(e||(e={}),"number"==typeof t){n.checkSafeUint53(t,"invalid hexlify value");let e="";for(;t;)e=h[15&t]+e,t=Math.floor(t/16);return e.length?(e.length%2&&(e="0"+e),"0x"+e):"0x00"}if("bigint"==typeof t)return(t=t.toString(16)).length%2?"0x0"+t:"0x"+t;if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),i(t))return t.toHexString();if(l(t))return t.length%2&&("left"===e.hexPad?t="0x0"+t.substring(2):"right"===e.hexPad?t+="0":n.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(a(t)){let e="0x";for(let r=0;r<t.length;r++){let n=t[r];e+=h[(240&n)>>4]+h[15&n]}return e}return n.throwArgumentError("invalid hexlify value","value",t)}function d(t){let e="0x";return t.forEach(t=>{e+=c(t).substring(2)}),e}function p(t,e){for("string"!=typeof t?t=c(t):l(t)||n.throwArgumentError("invalid hex string","value",t),t.length>2*e+2&&n.throwArgumentError("value out of range","value",arguments[1]);t.length<2*e+2;)t="0x0"+t.substring(2);return t}},39847:function(t,e,r){"use strict";r.d(e,{w:function(){return o}});var n=r(51464),i=r.n(n),f=r(45310);function o(t){return"0x"+i().keccak_256((0,f.lE)(t))}},91552:function(t,e,r){"use strict";var n,i,f,o;r.d(e,{Yd:function(){return p}});let a=!1,s=!1,u={debug:1,default:2,info:2,warning:3,error:4,off:5},l=u.default,h=null,c=function(){try{let t=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test"!=="test".normalize(e))throw Error("bad normalize")}catch(r){t.push(e)}}),t.length)throw Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw Error("broken implementation")}catch(t){return t.message}return null}();(f=n||(n={})).DEBUG="DEBUG",f.INFO="INFO",f.WARNING="WARNING",f.ERROR="ERROR",f.OFF="OFF",(o=i||(i={})).UNKNOWN_ERROR="UNKNOWN_ERROR",o.NOT_IMPLEMENTED="NOT_IMPLEMENTED",o.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",o.NETWORK_ERROR="NETWORK_ERROR",o.SERVER_ERROR="SERVER_ERROR",o.TIMEOUT="TIMEOUT",o.BUFFER_OVERRUN="BUFFER_OVERRUN",o.NUMERIC_FAULT="NUMERIC_FAULT",o.MISSING_NEW="MISSING_NEW",o.INVALID_ARGUMENT="INVALID_ARGUMENT",o.MISSING_ARGUMENT="MISSING_ARGUMENT",o.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",o.CALL_EXCEPTION="CALL_EXCEPTION",o.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",o.NONCE_EXPIRED="NONCE_EXPIRED",o.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",o.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",o.TRANSACTION_REPLACED="TRANSACTION_REPLACED",o.ACTION_REJECTED="ACTION_REJECTED";let d="0123456789abcdef";class p{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){let r=t.toLowerCase();null==u[r]&&this.throwArgumentError("invalid log level name","logLevel",t),l>u[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(s)return this.makeError("censored error",e,{});e||(e=p.errors.UNKNOWN_ERROR),r||(r={});let n=[];Object.keys(r).forEach(t=>{let e=r[t];try{if(e instanceof Uint8Array){let r="";for(let t=0;t<e.length;t++)r+=d[e[t]>>4]+d[15&e[t]];n.push(t+"=Uint8Array(0x"+r+")")}else n.push(t+"="+JSON.stringify(e))}catch(e){n.push(t+"="+JSON.stringify(r[t].toString()))}}),n.push(`code=${e}`),n.push(`version=${this.version}`);let f=t,o="";switch(e){case i.NUMERIC_FAULT:{o="NUMERIC_FAULT";let e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":o+="-"+e;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result"}break}case i.CALL_EXCEPTION:case i.INSUFFICIENT_FUNDS:case i.MISSING_NEW:case i.NONCE_EXPIRED:case i.REPLACEMENT_UNDERPRICED:case i.TRANSACTION_REPLACED:case i.UNPREDICTABLE_GAS_LIMIT:o=e}o&&(t+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),n.length&&(t+=" ("+n.join(", ")+")");let a=Error(t);return a.reason=f,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"),c&&this.throwError("platform missing String.prototype.normalize",p.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:c})}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:"",t<e&&this.throwError("missing argument"+r,p.errors.MISSING_ARGUMENT,{count:t,expectedCount:e}),t>e&&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 h||(h=new p("logger/5.7.0")),h}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",p.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),a){if(!t)return;this.globalLogger().throwError("error censorship permanent",p.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}s=!!t,a=!!e}static setLogLevel(t){let e=u[t.toLowerCase()];if(null==e){p.globalLogger().warn("invalid log level - "+t);return}l=e}static from(t){return new p(t)}}p.errors=i,p.levels=n},9440:function(t,e,r){"use strict";r.d(e,{Uj:function(){return f},uu:function(){return c},Y0:function(){return h},XL:function(){return d}});var n,i,f,o,a=r(45310);let s=new(r(91552)).Yd("strings/5.7.0");function u(t,e,r,n,i){if(t===o.BAD_PREFIX||t===o.UNEXPECTED_CONTINUE){let t=0;for(let n=e+1;n<r.length&&r[n]>>6==2;n++)t++;return t}return t===o.OVERRUN?r.length-e-1:0}(n=f||(f={})).current="",n.NFC="NFC",n.NFD="NFD",n.NFKC="NFKC",n.NFKD="NFKD",(i=o||(o={})).UNEXPECTED_CONTINUE="unexpected continuation byte",i.BAD_PREFIX="bad codepoint prefix",i.OVERRUN="string overrun",i.MISSING_CONTINUE="missing continuation byte",i.OUT_OF_RANGE="out of UTF-8 range",i.UTF16_SURROGATE="UTF-16 surrogate",i.OVERLONG="overlong representation";let l=Object.freeze({error:function(t,e,r,n,i){return s.throwArgumentError(`invalid codepoint at offset ${e}; ${t}`,"bytes",r)},ignore:u,replace:function(t,e,r,n,i){return t===o.OVERLONG?(n.push(i),0):(n.push(65533),u(t,e,r,n,i))}});function h(t,e=f.current){e!=f.current&&(s.checkNormalize(),t=t.normalize(e));let r=[];for(let e=0;e<t.length;e++){let n=t.charCodeAt(e);if(n<128)r.push(n);else if(n<2048)r.push(n>>6|192),r.push(63&n|128);else if((64512&n)==55296){e++;let i=t.charCodeAt(e);if(e>=t.length||(64512&i)!=56320)throw Error("invalid utf-8 string");let f=65536+((1023&n)<<10)+(1023&i);r.push(f>>18|240),r.push(f>>12&63|128),r.push(f>>6&63|128),r.push(63&f|128)}else r.push(n>>12|224),r.push(n>>6&63|128),r.push(63&n|128)}return(0,a.lE)(r)}function c(t){return t.map(t=>t<=65535?String.fromCharCode(t):String.fromCharCode(((t-=65536)>>10&1023)+55296,(1023&t)+56320)).join("")}function d(t,e=f.current){return function(t,e){null==e&&(e=l.error),t=(0,a.lE)(t);let r=[],n=0;for(;n<t.length;){let i=t[n++];if(i>>7==0){r.push(i);continue}let f=null,a=null;if((224&i)==192)f=1,a=127;else if((240&i)==224)f=2,a=2047;else if((248&i)==240)f=3,a=65535;else{(192&i)==128?n+=e(o.UNEXPECTED_CONTINUE,n-1,t,r):n+=e(o.BAD_PREFIX,n-1,t,r);continue}if(n-1+f>=t.length){n+=e(o.OVERRUN,n-1,t,r);continue}let s=i&(1<<8-f-1)-1;for(let i=0;i<f;i++){let i=t[n];if((192&i)!=128){n+=e(o.MISSING_CONTINUE,n,t,r),s=null;break}s=s<<6|63&i,n++}if(null!==s){if(s>1114111){n+=e(o.OUT_OF_RANGE,n-1-f,t,r,s);continue}if(s>=55296&&s<=57343){n+=e(o.UTF16_SURROGATE,n-1-f,t,r,s);continue}if(s<=a){n+=e(o.OVERLONG,n-1-f,t,r,s);continue}r.push(s)}}return r}(h(t,e))}},71831:function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw 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 f(t,e,r){if(f.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"))}"object"==typeof t?t.exports=f:e.BN=f,f.BN=f,f.wordSize=26;try{h="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(6863).Buffer}catch(t){}function o(t,e){var r=t.charCodeAt(e);return r>=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 a(t,e,r){var n=o(t,r);return r-1>=e&&(n|=o(t,r-1)<<4),n}function s(t,e,r,i){for(var f=0,o=0,a=Math.min(t.length,r),s=e;s<a;s++){var u=t.charCodeAt(s)-48;f*=i,o=u>=49?u-49+10:u>=17?u-17+10:u,n(u>=0&&o<i,"Invalid character"),f+=o}return f}function u(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(f.isBN=function(t){return t instanceof f||null!==t&&"object"==typeof t&&t.constructor.wordSize===f.wordSize&&Array.isArray(t.words)},f.max=function(t,e){return t.cmp(e)>0?t:e},f.min=function(t,e){return 0>t.cmp(e)?t:e},f.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);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},f.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)},f.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=Array(this.length);for(var i,f,o=0;o<this.length;o++)this.words[o]=0;var a=0;if("be"===r)for(o=t.length-1,i=0;o>=0;o-=3)f=t[o]|t[o-1]<<8|t[o-2]<<16,this.words[i]|=f<<a&67108863,this.words[i+1]=f>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);else if("le"===r)for(o=0,i=0;o<t.length;o+=3)f=t[o]|t[o+1]<<8|t[o+2]<<16,this.words[i]|=f<<a&67108863,this.words[i+1]=f>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);return this._strip()},f.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=Array(this.length);for(var n,i=0;i<this.length;i++)this.words[i]=0;var f=0,o=0;if("be"===r)for(i=t.length-1;i>=e;i-=2)n=a(t,e,i)<<f,this.words[o]|=67108863&n,f>=18?(f-=18,o+=1,this.words[o]|=n>>>26):f+=8;else for(i=(t.length-e)%2==0?e+1:e;i<t.length;i+=2)n=a(t,e,i)<<f,this.words[o]|=67108863&n,f>=18?(f-=18,o+=1,this.words[o]|=n>>>26):f+=8;this._strip()},f.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 f=t.length-r,o=f%n,a=Math.min(f,f-o)+r,u=0,l=r;l<a;l+=n)u=s(t,l,l+n,e),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==o){var h=1;for(u=s(t,l,t.length,e),l=0;l<o;l++)h*=e;this.imuln(h),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this._strip()},f.prototype.copy=function(t){t.words=Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},f.prototype._move=function(t){u(t,this)},f.prototype.clone=function(){var t=new f(null);return this.copy(t),t},f.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},f.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},f.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{f.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(t){f.prototype.inspect=l}else f.prototype.inspect=l;function l(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var h,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"],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];function m(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],f=0|e.words[0],o=i*f,a=67108863&o,s=o/67108864|0;r.words[0]=a;for(var u=1;u<n;u++){for(var l=s>>>26,h=67108863&s,c=Math.min(u,e.length-1),d=Math.max(0,u-t.length+1);d<=c;d++){var p=u-d|0;l+=(o=(i=0|t.words[p])*(f=0|e.words[d])+h)/67108864|0,h=67108863&o}r.words[u]=0|h,s=0|l}return 0!==s?r.words[u]=0|s:r.length--,r._strip()}f.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var r,i=0,f=0,o=0;o<this.length;o++){var a=this.words[o],s=((a<<i|f)&16777215).toString(16);f=a>>>24-i&16777215,(i+=2)>=26&&(i-=26,o--),r=0!==f||o!==this.length-1?c[6-s.length]+s+r:s+r}for(0!==f&&(r=f.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var u=d[t],l=p[t];r="";var h=this.clone();for(h.negative=0;!h.isZero();){var m=h.modrn(l).toString(t);r=(h=h.idivn(l)).isZero()?m+r:c[u-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},f.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},f.prototype.toJSON=function(){return this.toString(16,2)},h&&(f.prototype.toBuffer=function(t,e){return this.toArrayLike(h,t,e)}),f.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},f.prototype.toArrayLike=function(t,e,r){this._strip();var i=this.byteLength(),f=r||Math.max(1,i);n(i<=f,"byte array longer than desired length"),n(f>0,"Requested array length <= 0");var o=t.allocUnsafe?t.allocUnsafe(f):new t(f);return this["_toArrayLike"+("le"===e?"LE":"BE")](o,i),o},f.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,i=0,f=0;i<this.length;i++){var o=this.words[i]<<f|n;t[r++]=255&o,r<t.length&&(t[r++]=o>>8&255),r<t.length&&(t[r++]=o>>16&255),6===f?(r<t.length&&(t[r++]=o>>24&255),n=0,f=0):(n=o>>>24,f+=2)}if(r<t.length)for(t[r++]=n;r<t.length;)t[r++]=0},f.prototype._toArrayLikeBE=function(t,e){for(var r=t.length-1,n=0,i=0,f=0;i<this.length;i++){var o=this.words[i]<<f|n;t[r--]=255&o,r>=0&&(t[r--]=o>>8&255),r>=0&&(t[r--]=o>>16&255),6===f?(r>=0&&(t[r--]=o>>24&255),n=0,f=0):(n=o>>>24,f+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?f.prototype._countBits=function(t){return 32-Math.clz32(t)}:f.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},f.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return(8191&e)==0&&(r+=13,e>>>=13),(127&e)==0&&(r+=7,e>>>=7),(15&e)==0&&(r+=4,e>>>=4),(3&e)==0&&(r+=2,e>>>=2),(1&e)==0&&r++,r},f.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return(this.length-1)*26+e},f.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},f.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},f.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},f.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},f.prototype.isNeg=function(){return 0!==this.negative},f.prototype.neg=function(){return this.clone().ineg()},f.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},f.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},f.prototype.ior=function(t){return n((this.negative|t.negative)==0),this.iuor(t)},f.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},f.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},f.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this._strip()},f.prototype.iand=function(t){return n((this.negative|t.negative)==0),this.iuand(t)},f.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},f.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},f.prototype.iuxor=function(t){this.length>t.length?(e=this,r=t):(e=t,r=this);for(var e,r,n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this._strip()},f.prototype.ixor=function(t){return n((this.negative|t.negative)==0),this.iuxor(t)},f.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},f.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},f.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;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},f.prototype.notn=function(t){return this.clone().inotn(t)},f.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),e?this.words[r]=this.words[r]|1<<i:this.words[r]=this.words[r]&~(1<<i),this._strip()},f.prototype.iadd=function(t){if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var e,r,n,i=0,f=0;f<n.length;f++)e=(0|r.words[f])+(0|n.words[f])+i,this.words[f]=67108863&e,i=e>>>26;for(;0!==i&&f<r.length;f++)e=(0|r.words[f])+i,this.words[f]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;f<r.length;f++)this.words[f]=r.words[f];return this},f.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},f.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e,r,n=this.iadd(t);return t.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(e=this,r=t):(e=t,r=this);for(var f=0,o=0;o<r.length;o++)f=(n=(0|e.words[o])-(0|r.words[o])+f)>>26,this.words[o]=67108863&n;for(;0!==f&&o<e.length;o++)f=(n=(0|e.words[o])+f)>>26,this.words[o]=67108863&n;if(0===f&&o<e.length&&e!==this)for(;o<e.length;o++)this.words[o]=e.words[o];return this.length=Math.max(this.length,o),e!==this&&(this.negative=1),this._strip()},f.prototype.sub=function(t){return this.clone().isub(t)};var g=function(t,e,r){var n,i,f,o=t.words,a=e.words,s=r.words,u=0,l=0|o[0],h=8191&l,c=l>>>13,d=0|o[1],p=8191&d,m=d>>>13,g=0|o[2],b=8191&g,y=g>>>13,v=0|o[3],w=8191&v,M=v>>>13,E=0|o[4],A=8191&E,S=E>>>13,_=0|o[5],N=8191&_,T=_>>>13,R=0|o[6],C=8191&R,I=R>>>13,P=0|o[7],O=8191&P,x=P>>>13,k=0|o[8],F=8191&k,B=k>>>13,L=0|o[9],D=8191&L,U=L>>>13,G=0|a[0],z=8191&G,J=G>>>13,j=0|a[1],H=8191&j,V=j>>>13,X=0|a[2],q=8191&X,Z=X>>>13,K=0|a[3],W=8191&K,Y=K>>>13,Q=0|a[4],$=8191&Q,tt=Q>>>13,te=0|a[5],tr=8191&te,tn=te>>>13,ti=0|a[6],tf=8191&ti,to=ti>>>13,ta=0|a[7],ts=8191&ta,tu=ta>>>13,tl=0|a[8],th=8191&tl,tc=tl>>>13,td=0|a[9],tp=8191&td,tm=td>>>13;r.negative=t.negative^e.negative,r.length=19;var tg=(u+(n=Math.imul(h,z))|0)+((8191&(i=(i=Math.imul(h,J))+Math.imul(c,z)|0))<<13)|0;u=((f=Math.imul(c,J))+(i>>>13)|0)+(tg>>>26)|0,tg&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,J))+Math.imul(m,z)|0,f=Math.imul(m,J);var tb=(u+(n=n+Math.imul(h,H)|0)|0)+((8191&(i=(i=i+Math.imul(h,V)|0)+Math.imul(c,H)|0))<<13)|0;u=((f=f+Math.imul(c,V)|0)+(i>>>13)|0)+(tb>>>26)|0,tb&=67108863,n=Math.imul(b,z),i=(i=Math.imul(b,J))+Math.imul(y,z)|0,f=Math.imul(y,J),n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,H)|0,f=f+Math.imul(m,V)|0;var ty=(u+(n=n+Math.imul(h,q)|0)|0)+((8191&(i=(i=i+Math.imul(h,Z)|0)+Math.imul(c,q)|0))<<13)|0;u=((f=f+Math.imul(c,Z)|0)+(i>>>13)|0)+(ty>>>26)|0,ty&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,J))+Math.imul(M,z)|0,f=Math.imul(M,J),n=n+Math.imul(b,H)|0,i=(i=i+Math.imul(b,V)|0)+Math.imul(y,H)|0,f=f+Math.imul(y,V)|0,n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,q)|0,f=f+Math.imul(m,Z)|0;var tv=(u+(n=n+Math.imul(h,W)|0)|0)+((8191&(i=(i=i+Math.imul(h,Y)|0)+Math.imul(c,W)|0))<<13)|0;u=((f=f+Math.imul(c,Y)|0)+(i>>>13)|0)+(tv>>>26)|0,tv&=67108863,n=Math.imul(A,z),i=(i=Math.imul(A,J))+Math.imul(S,z)|0,f=Math.imul(S,J),n=n+Math.imul(w,H)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(M,H)|0,f=f+Math.imul(M,V)|0,n=n+Math.imul(b,q)|0,i=(i=i+Math.imul(b,Z)|0)+Math.imul(y,q)|0,f=f+Math.imul(y,Z)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,W)|0,f=f+Math.imul(m,Y)|0;var tw=(u+(n=n+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(c,$)|0))<<13)|0;u=((f=f+Math.imul(c,tt)|0)+(i>>>13)|0)+(tw>>>26)|0,tw&=67108863,n=Math.imul(N,z),i=(i=Math.imul(N,J))+Math.imul(T,z)|0,f=Math.imul(T,J),n=n+Math.imul(A,H)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(S,H)|0,f=f+Math.imul(S,V)|0,n=n+Math.imul(w,q)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(M,q)|0,f=f+Math.imul(M,Z)|0,n=n+Math.imul(b,W)|0,i=(i=i+Math.imul(b,Y)|0)+Math.imul(y,W)|0,f=f+Math.imul(y,Y)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,$)|0,f=f+Math.imul(m,tt)|0;var tM=(u+(n=n+Math.imul(h,tr)|0)|0)+((8191&(i=(i=i+Math.imul(h,tn)|0)+Math.imul(c,tr)|0))<<13)|0;u=((f=f+Math.imul(c,tn)|0)+(i>>>13)|0)+(tM>>>26)|0,tM&=67108863,n=Math.imul(C,z),i=(i=Math.imul(C,J))+Math.imul(I,z)|0,f=Math.imul(I,J),n=n+Math.imul(N,H)|0,i=(i=i+Math.imul(N,V)|0)+Math.imul(T,H)|0,f=f+Math.imul(T,V)|0,n=n+Math.imul(A,q)|0,i=(i=i+Math.imul(A,Z)|0)+Math.imul(S,q)|0,f=f+Math.imul(S,Z)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(M,W)|0,f=f+Math.imul(M,Y)|0,n=n+Math.imul(b,$)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(y,$)|0,f=f+Math.imul(y,tt)|0,n=n+Math.imul(p,tr)|0,i=(i=i+Math.imul(p,tn)|0)+Math.imul(m,tr)|0,f=f+Math.imul(m,tn)|0;var tE=(u+(n=n+Math.imul(h,tf)|0)|0)+((8191&(i=(i=i+Math.imul(h,to)|0)+Math.imul(c,tf)|0))<<13)|0;u=((f=f+Math.imul(c,to)|0)+(i>>>13)|0)+(tE>>>26)|0,tE&=67108863,n=Math.imul(O,z),i=(i=Math.imul(O,J))+Math.imul(x,z)|0,f=Math.imul(x,J),n=n+Math.imul(C,H)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(I,H)|0,f=f+Math.imul(I,V)|0,n=n+Math.imul(N,q)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(T,q)|0,f=f+Math.imul(T,Z)|0,n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(S,W)|0,f=f+Math.imul(S,Y)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(M,$)|0,f=f+Math.imul(M,tt)|0,n=n+Math.imul(b,tr)|0,i=(i=i+Math.imul(b,tn)|0)+Math.imul(y,tr)|0,f=f+Math.imul(y,tn)|0,n=n+Math.imul(p,tf)|0,i=(i=i+Math.imul(p,to)|0)+Math.imul(m,tf)|0,f=f+Math.imul(m,to)|0;var tA=(u+(n=n+Math.imul(h,ts)|0)|0)+((8191&(i=(i=i+Math.imul(h,tu)|0)+Math.imul(c,ts)|0))<<13)|0;u=((f=f+Math.imul(c,tu)|0)+(i>>>13)|0)+(tA>>>26)|0,tA&=67108863,n=Math.imul(F,z),i=(i=Math.imul(F,J))+Math.imul(B,z)|0,f=Math.imul(B,J),n=n+Math.imul(O,H)|0,i=(i=i+Math.imul(O,V)|0)+Math.imul(x,H)|0,f=f+Math.imul(x,V)|0,n=n+Math.imul(C,q)|0,i=(i=i+Math.imul(C,Z)|0)+Math.imul(I,q)|0,f=f+Math.imul(I,Z)|0,n=n+Math.imul(N,W)|0,i=(i=i+Math.imul(N,Y)|0)+Math.imul(T,W)|0,f=f+Math.imul(T,Y)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(S,$)|0,f=f+Math.imul(S,tt)|0,n=n+Math.imul(w,tr)|0,i=(i=i+Math.imul(w,tn)|0)+Math.imul(M,tr)|0,f=f+Math.imul(M,tn)|0,n=n+Math.imul(b,tf)|0,i=(i=i+Math.imul(b,to)|0)+Math.imul(y,tf)|0,f=f+Math.imul(y,to)|0,n=n+Math.imul(p,ts)|0,i=(i=i+Math.imul(p,tu)|0)+Math.imul(m,ts)|0,f=f+Math.imul(m,tu)|0;var tS=(u+(n=n+Math.imul(h,th)|0)|0)+((8191&(i=(i=i+Math.imul(h,tc)|0)+Math.imul(c,th)|0))<<13)|0;u=((f=f+Math.imul(c,tc)|0)+(i>>>13)|0)+(tS>>>26)|0,tS&=67108863,n=Math.imul(D,z),i=(i=Math.imul(D,J))+Math.imul(U,z)|0,f=Math.imul(U,J),n=n+Math.imul(F,H)|0,i=(i=i+Math.imul(F,V)|0)+Math.imul(B,H)|0,f=f+Math.imul(B,V)|0,n=n+Math.imul(O,q)|0,i=(i=i+Math.imul(O,Z)|0)+Math.imul(x,q)|0,f=f+Math.imul(x,Z)|0,n=n+Math.imul(C,W)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(I,W)|0,f=f+Math.imul(I,Y)|0,n=n+Math.imul(N,$)|0,i=(i=i+Math.imul(N,tt)|0)+Math.imul(T,$)|0,f=f+Math.imul(T,tt)|0,n=n+Math.imul(A,tr)|0,i=(i=i+Math.imul(A,tn)|0)+Math.imul(S,tr)|0,f=f+Math.imul(S,tn)|0,n=n+Math.imul(w,tf)|0,i=(i=i+Math.imul(w,to)|0)+Math.imul(M,tf)|0,f=f+Math.imul(M,to)|0,n=n+Math.imul(b,ts)|0,i=(i=i+Math.imul(b,tu)|0)+Math.imul(y,ts)|0,f=f+Math.imul(y,tu)|0,n=n+Math.imul(p,th)|0,i=(i=i+Math.imul(p,tc)|0)+Math.imul(m,th)|0,f=f+Math.imul(m,tc)|0;var t_=(u+(n=n+Math.imul(h,tp)|0)|0)+((8191&(i=(i=i+Math.imul(h,tm)|0)+Math.imul(c,tp)|0))<<13)|0;u=((f=f+Math.imul(c,tm)|0)+(i>>>13)|0)+(t_>>>26)|0,t_&=67108863,n=Math.imul(D,H),i=(i=Math.imul(D,V))+Math.imul(U,H)|0,f=Math.imul(U,V),n=n+Math.imul(F,q)|0,i=(i=i+Math.imul(F,Z)|0)+Math.imul(B,q)|0,f=f+Math.imul(B,Z)|0,n=n+Math.imul(O,W)|0,i=(i=i+Math.imul(O,Y)|0)+Math.imul(x,W)|0,f=f+Math.imul(x,Y)|0,n=n+Math.imul(C,$)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(I,$)|0,f=f+Math.imul(I,tt)|0,n=n+Math.imul(N,tr)|0,i=(i=i+Math.imul(N,tn)|0)+Math.imul(T,tr)|0,f=f+Math.imul(T,tn)|0,n=n+Math.imul(A,tf)|0,i=(i=i+Math.imul(A,to)|0)+Math.imul(S,tf)|0,f=f+Math.imul(S,to)|0,n=n+Math.imul(w,ts)|0,i=(i=i+Math.imul(w,tu)|0)+Math.imul(M,ts)|0,f=f+Math.imul(M,tu)|0,n=n+Math.imul(b,th)|0,i=(i=i+Math.imul(b,tc)|0)+Math.imul(y,th)|0,f=f+Math.imul(y,tc)|0;var tN=(u+(n=n+Math.imul(p,tp)|0)|0)+((8191&(i=(i=i+Math.imul(p,tm)|0)+Math.imul(m,tp)|0))<<13)|0;u=((f=f+Math.imul(m,tm)|0)+(i>>>13)|0)+(tN>>>26)|0,tN&=67108863,n=Math.imul(D,q),i=(i=Math.imul(D,Z))+Math.imul(U,q)|0,f=Math.imul(U,Z),n=n+Math.imul(F,W)|0,i=(i=i+Math.imul(F,Y)|0)+Math.imul(B,W)|0,f=f+Math.imul(B,Y)|0,n=n+Math.imul(O,$)|0,i=(i=i+Math.imul(O,tt)|0)+Math.imul(x,$)|0,f=f+Math.imul(x,tt)|0,n=n+Math.imul(C,tr)|0,i=(i=i+Math.imul(C,tn)|0)+Math.imul(I,tr)|0,f=f+Math.imul(I,tn)|0,n=n+Math.imul(N,tf)|0,i=(i=i+Math.imul(N,to)|0)+Math.imul(T,tf)|0,f=f+Math.imul(T,to)|0,n=n+Math.imul(A,ts)|0,i=(i=i+Math.imul(A,tu)|0)+Math.imul(S,ts)|0,f=f+Math.imul(S,tu)|0,n=n+Math.imul(w,th)|0,i=(i=i+Math.imul(w,tc)|0)+Math.imul(M,th)|0,f=f+Math.imul(M,tc)|0;var tT=(u+(n=n+Math.imul(b,tp)|0)|0)+((8191&(i=(i=i+Math.imul(b,tm)|0)+Math.imul(y,tp)|0))<<13)|0;u=((f=f+Math.imul(y,tm)|0)+(i>>>13)|0)+(tT>>>26)|0,tT&=67108863,n=Math.imul(D,W),i=(i=Math.imul(D,Y))+Math.imul(U,W)|0,f=Math.imul(U,Y),n=n+Math.imul(F,$)|0,i=(i=i+Math.imul(F,tt)|0)+Math.imul(B,$)|0,f=f+Math.imul(B,tt)|0,n=n+Math.imul(O,tr)|0,i=(i=i+Math.imul(O,tn)|0)+Math.imul(x,tr)|0,f=f+Math.imul(x,tn)|0,n=n+Math.imul(C,tf)|0,i=(i=i+Math.imul(C,to)|0)+Math.imul(I,tf)|0,f=f+Math.imul(I,to)|0,n=n+Math.imul(N,ts)|0,i=(i=i+Math.imul(N,tu)|0)+Math.imul(T,ts)|0,f=f+Math.imul(T,tu)|0,n=n+Math.imul(A,th)|0,i=(i=i+Math.imul(A,tc)|0)+Math.imul(S,th)|0,f=f+Math.imul(S,tc)|0;var tR=(u+(n=n+Math.imul(w,tp)|0)|0)+((8191&(i=(i=i+Math.imul(w,tm)|0)+Math.imul(M,tp)|0))<<13)|0;u=((f=f+Math.imul(M,tm)|0)+(i>>>13)|0)+(tR>>>26)|0,tR&=67108863,n=Math.imul(D,$),i=(i=Math.imul(D,tt))+Math.imul(U,$)|0,f=Math.imul(U,tt),n=n+Math.imul(F,tr)|0,i=(i=i+Math.imul(F,tn)|0)+Math.imul(B,tr)|0,f=f+Math.imul(B,tn)|0,n=n+Math.imul(O,tf)|0,i=(i=i+Math.imul(O,to)|0)+Math.imul(x,tf)|0,f=f+Math.imul(x,to)|0,n=n+Math.imul(C,ts)|0,i=(i=i+Math.imul(C,tu)|0)+Math.imul(I,ts)|0,f=f+Math.imul(I,tu)|0,n=n+Math.imul(N,th)|0,i=(i=i+Math.imul(N,tc)|0)+Math.imul(T,th)|0,f=f+Math.imul(T,tc)|0;var tC=(u+(n=n+Math.imul(A,tp)|0)|0)+((8191&(i=(i=i+Math.imul(A,tm)|0)+Math.imul(S,tp)|0))<<13)|0;u=((f=f+Math.imul(S,tm)|0)+(i>>>13)|0)+(tC>>>26)|0,tC&=67108863,n=Math.imul(D,tr),i=(i=Math.imul(D,tn))+Math.imul(U,tr)|0,f=Math.imul(U,tn),n=n+Math.imul(F,tf)|0,i=(i=i+Math.imul(F,to)|0)+Math.imul(B,tf)|0,f=f+Math.imul(B,to)|0,n=n+Math.imul(O,ts)|0,i=(i=i+Math.imul(O,tu)|0)+Math.imul(x,ts)|0,f=f+Math.imul(x,tu)|0,n=n+Math.imul(C,th)|0,i=(i=i+Math.imul(C,tc)|0)+Math.imul(I,th)|0,f=f+Math.imul(I,tc)|0;var tI=(u+(n=n+Math.imul(N,tp)|0)|0)+((8191&(i=(i=i+Math.imul(N,tm)|0)+Math.imul(T,tp)|0))<<13)|0;u=((f=f+Math.imul(T,tm)|0)+(i>>>13)|0)+(tI>>>26)|0,tI&=67108863,n=Math.imul(D,tf),i=(i=Math.imul(D,to))+Math.imul(U,tf)|0,f=Math.imul(U,to),n=n+Math.imul(F,ts)|0,i=(i=i+Math.imul(F,tu)|0)+Math.imul(B,ts)|0,f=f+Math.imul(B,tu)|0,n=n+Math.imul(O,th)|0,i=(i=i+Math.imul(O,tc)|0)+Math.imul(x,th)|0,f=f+Math.imul(x,tc)|0;var tP=(u+(n=n+Math.imul(C,tp)|0)|0)+((8191&(i=(i=i+Math.imul(C,tm)|0)+Math.imul(I,tp)|0))<<13)|0;u=((f=f+Math.imul(I,tm)|0)+(i>>>13)|0)+(tP>>>26)|0,tP&=67108863,n=Math.imul(D,ts),i=(i=Math.imul(D,tu))+Math.imul(U,ts)|0,f=Math.imul(U,tu),n=n+Math.imul(F,th)|0,i=(i=i+Math.imul(F,tc)|0)+Math.imul(B,th)|0,f=f+Math.imul(B,tc)|0;var tO=(u+(n=n+Math.imul(O,tp)|0)|0)+((8191&(i=(i=i+Math.imul(O,tm)|0)+Math.imul(x,tp)|0))<<13)|0;u=((f=f+Math.imul(x,tm)|0)+(i>>>13)|0)+(tO>>>26)|0,tO&=67108863,n=Math.imul(D,th),i=(i=Math.imul(D,tc))+Math.imul(U,th)|0,f=Math.imul(U,tc);var tx=(u+(n=n+Math.imul(F,tp)|0)|0)+((8191&(i=(i=i+Math.imul(F,tm)|0)+Math.imul(B,tp)|0))<<13)|0;u=((f=f+Math.imul(B,tm)|0)+(i>>>13)|0)+(tx>>>26)|0,tx&=67108863;var tk=(u+(n=Math.imul(D,tp))|0)+((8191&(i=(i=Math.imul(D,tm))+Math.imul(U,tp)|0))<<13)|0;return u=((f=Math.imul(U,tm))+(i>>>13)|0)+(tk>>>26)|0,tk&=67108863,s[0]=tg,s[1]=tb,s[2]=ty,s[3]=tv,s[4]=tw,s[5]=tM,s[6]=tE,s[7]=tA,s[8]=tS,s[9]=t_,s[10]=tN,s[11]=tT,s[12]=tR,s[13]=tC,s[14]=tI,s[15]=tP,s[16]=tO,s[17]=tx,s[18]=tk,0!==u&&(s[19]=u,r.length++),r};function b(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,f=0;f<r.length-1;f++){var o=i;i=0;for(var a=67108863&n,s=Math.min(f,e.length-1),u=Math.max(0,f-t.length+1);u<=s;u++){var l=f-u,h=(0|t.words[l])*(0|e.words[u]),c=67108863&h;o=o+(h/67108864|0)|0,a=67108863&(c=c+a|0),i+=(o=o+(c>>>26)|0)>>>26,o&=67108863}r.words[f]=a,n=o,o=i}return 0!==n?r.words[f]=n:r.length--,r._strip()}function y(t,e){this.x=t,this.y=e}Math.imul||(g=m),f.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return 10===this.length&&10===t.length?g(this,t,e):n<63?m(this,t,e):b(this,t,e)},y.prototype.makeRBT=function(t){for(var e=Array(t),r=f.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},y.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},y.prototype.permute=function(t,e,r,n,i,f){for(var o=0;o<f;o++)n[o]=e[t[o]],i[o]=r[t[o]]},y.prototype.transform=function(t,e,r,n,i,f){this.permute(f,t,e,r,n,i);for(var o=1;o<i;o<<=1)for(var a=o<<1,s=Math.cos(2*Math.PI/a),u=Math.sin(2*Math.PI/a),l=0;l<i;l+=a)for(var h=s,c=u,d=0;d<o;d++){var p=r[l+d],m=n[l+d],g=r[l+d+o],b=n[l+d+o],y=h*g-c*b;b=h*b+c*g,g=y,r[l+d]=p+g,n[l+d]=m+b,r[l+d+o]=p-g,n[l+d+o]=m-b,d!==a&&(y=s*h-u*c,c=s*c+u*h,h=y)}},y.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},y.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},y.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},y.prototype.convert13b=function(t,e,r,i){for(var f=0,o=0;o<e;o++)f+=0|t[o],r[2*o]=8191&f,f>>>=13,r[2*o+1]=8191&f,f>>>=13;for(o=2*e;o<i;++o)r[o]=0;n(0===f),n((-8192&f)==0)},y.prototype.stub=function(t){for(var e=Array(t),r=0;r<t;r++)e[r]=0;return e},y.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),f=this.stub(n),o=Array(n),a=Array(n),s=Array(n),u=Array(n),l=Array(n),h=Array(n),c=r.words;c.length=n,this.convert13b(t.words,t.length,o,n),this.convert13b(e.words,e.length,u,n),this.transform(o,f,a,s,n,i),this.transform(u,f,l,h,n,i);for(var d=0;d<n;d++){var p=a[d]*l[d]-s[d]*h[d];s[d]=a[d]*h[d]+s[d]*l[d],a[d]=p}return this.conjugate(a,s,n),this.transform(a,s,c,f,n,i),this.conjugate(c,f,n),this.normalize13b(c,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r._strip()},f.prototype.mul=function(t){var e=new f(null);return e.words=Array(this.length+t.length),this.mulTo(t,e)},f.prototype.mulf=function(t){var e=new f(null);return e.words=Array(this.length+t.length),b(this,t,e)},f.prototype.imul=function(t){return this.clone().mulTo(t,this)},f.prototype.imuln=function(t){var e=t<0;e&&(t=-t),n("number"==typeof t),n(t<67108864);for(var r=0,i=0;i<this.length;i++){var f=(0|this.words[i])*t,o=(67108863&f)+(67108863&r);r>>=26,r+=(f/67108864|0)+(o>>>26),this.words[i]=67108863&o}return 0!==r&&(this.words[i]=r,this.length++),e?this.ineg():this},f.prototype.muln=function(t){return this.clone().imuln(t)},f.prototype.sqr=function(){return this.mul(this)},f.prototype.isqr=function(){return this.imul(this.clone())},f.prototype.pow=function(t){var e=function(t){for(var e=Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=t.words[n]>>>i&1}return e}(t);if(0===e.length)return new f(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},f.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,f=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(e=0;e<this.length;e++){var a=this.words[e]&f,s=(0|this.words[e])-a<<r;this.words[e]=s|o,o=a>>>26-r}o&&(this.words[e]=o,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this._strip()},f.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},f.prototype.iushrn=function(t,e,r){n("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var i,f=t%26,o=Math.min((t-f)/26,this.length),a=67108863^67108863>>>f<<f;if(i-=o,i=Math.max(0,i),r){for(var s=0;s<o;s++)r.words[s]=this.words[s];r.length=o}if(0===o);else if(this.length>o)for(this.length-=o,s=0;s<this.length;s++)this.words[s]=this.words[s+o];else this.words[0]=0,this.length=1;var u=0;for(s=this.length-1;s>=0&&(0!==u||s>=i);s--){var l=0|this.words[s];this.words[s]=u<<26-f|l>>>f,u=l&a}return r&&0!==u&&(r.words[r.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},f.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},f.prototype.shln=function(t){return this.clone().ishln(t)},f.prototype.ushln=function(t){return this.clone().iushln(t)},f.prototype.shrn=function(t){return this.clone().ishrn(t)},f.prototype.ushrn=function(t){return this.clone().iushrn(t)},f.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;return!(this.length<=r)&&!!(this.words[r]&1<<e)},f.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;return(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)?this:(0!==e&&r++,this.length=Math.min(r,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<<e),this._strip())},f.prototype.maskn=function(t){return this.clone().imaskn(t)},f.prototype.iaddn=function(t){return(n("number"==typeof t),n(t<67108864),t<0)?this.isubn(-t):0!==this.negative?(1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(t),this.negative=1),this):this._iaddn(t)},f.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[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},f.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<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},f.prototype.addn=function(t){return this.clone().iaddn(t)},f.prototype.subn=function(t){return this.clone().isubn(t)},f.prototype.iabs=function(){return this.negative=0,this},f.prototype.abs=function(){return this.clone().iabs()},f.prototype._ishlnsubmul=function(t,e,r){var i,f,o=t.length+r;this._expand(o);var a=0;for(i=0;i<t.length;i++){f=(0|this.words[i+r])+a;var s=(0|t.words[i])*e;f-=67108863&s,a=(f>>26)-(s/67108864|0),this.words[i+r]=67108863&f}for(;i<this.length-r;i++)a=(f=(0|this.words[i+r])+a)>>26,this.words[i+r]=67108863&f;if(0===a)return this._strip();for(n(-1===a),a=0,i=0;i<this.length;i++)a=(f=-(0|this.words[i])+a)>>26,this.words[i]=67108863&f;return this.negative=1,this._strip()},f.prototype._wordDiv=function(t,e){var r,n=this.length-t.length,i=this.clone(),o=t,a=0|o.words[o.length-1];0!=(n=26-this._countBits(a))&&(o=o.ushln(n),i.iushln(n),a=0|o.words[o.length-1]);var s=i.length-o.length;if("mod"!==e){(r=new f(null)).length=s+1,r.words=Array(r.length);for(var u=0;u<r.length;u++)r.words[u]=0}var l=i.clone()._ishlnsubmul(o,1,s);0===l.negative&&(i=l,r&&(r.words[s]=1));for(var h=s-1;h>=0;h--){var c=(0|i.words[o.length+h])*67108864+(0|i.words[o.length+h-1]);for(c=Math.min(c/a|0,67108863),i._ishlnsubmul(o,c,h);0!==i.negative;)c--,i.negative=0,i._ishlnsubmul(o,1,h),i.isZero()||(i.negative^=1);r&&(r.words[h]=c)}return r&&r._strip(),i._strip(),"div"!==e&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},f.prototype.divmod=function(t,e,r){var i,o,a;return(n(!t.isZero()),this.isZero())?{div:new f(0),mod:new f(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:i,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):(this.negative&t.negative)!=0?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||0>this.cmp(t)?{div:new f(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new f(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new f(this.modrn(t.words[0]))}:this._wordDiv(t,e)},f.prototype.div=function(t){return this.divmod(t,"div",!1).div},f.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},f.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},f.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),f=r.cmp(n);return f<0||1===i&&0===f?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},f.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=67108864%t,i=0,f=this.length-1;f>=0;f--)i=(r*i+(0|this.words[f]))%t;return e?-i:i},f.prototype.modn=function(t){return this.modrn(t)},f.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 f=(0|this.words[i])+67108864*r;this.words[i]=f/t|0,r=f%t}return this._strip(),e?this.ineg():this},f.prototype.divn=function(t){return this.clone().idivn(t)},f.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();for(var i=new f(1),o=new f(0),a=new f(0),s=new f(1),u=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++u;for(var l=r.clone(),h=e.clone();!e.isZero();){for(var c=0,d=1;(e.words[0]&d)==0&&c<26;++c,d<<=1);if(c>0)for(e.iushrn(c);c-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(l),o.isub(h)),i.iushrn(1),o.iushrn(1);for(var p=0,m=1;(r.words[0]&m)==0&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||s.isOdd())&&(a.iadd(l),s.isub(h)),a.iushrn(1),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(a),o.isub(s)):(r.isub(e),a.isub(i),s.isub(o))}return{a:a,b:s,gcd:r.iushln(u)}},f.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e,r=this,i=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var o=new f(1),a=new f(0),s=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var u=0,l=1;(r.words[0]&l)==0&&u<26;++u,l<<=1);if(u>0)for(r.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);for(var h=0,c=1;(i.words[0]&c)==0&&h<26;++h,c<<=1);if(h>0)for(i.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);r.cmp(i)>=0?(r.isub(i),o.isub(a)):(i.isub(r),a.isub(o))}return 0>(e=0===r.cmpn(1)?o:a).cmpn(0)&&e.iadd(t),e},f.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);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var f=e;e=r,r=f}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},f.prototype.invm=function(t){return this.egcd(t).a.umod(t)},f.prototype.isEven=function(){return(1&this.words[0])==0},f.prototype.isOdd=function(){return(1&this.words[0])==1},f.prototype.andln=function(t){return this.words[0]&t},f.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var f=i,o=r;0!==f&&o<this.length;o++){var a=0|this.words[o];a+=f,f=a>>>26,a&=67108863,this.words[o]=a}return 0!==f&&(this.words[o]=f,this.length++),this},f.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},f.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:i<t?-1:1}return 0!==this.negative?0|-e:e},f.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return -1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},f.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return -1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},f.prototype.gtn=function(t){return 1===this.cmpn(t)},f.prototype.gt=function(t){return 1===this.cmp(t)},f.prototype.gten=function(t){return this.cmpn(t)>=0},f.prototype.gte=function(t){return this.cmp(t)>=0},f.prototype.ltn=function(t){return -1===this.cmpn(t)},f.prototype.lt=function(t){return -1===this.cmp(t)},f.prototype.lten=function(t){return 0>=this.cmpn(t)},f.prototype.lte=function(t){return 0>=this.cmp(t)},f.prototype.eqn=function(t){return 0===this.cmpn(t)},f.prototype.eq=function(t){return 0===this.cmp(t)},f.red=function(t){return new _(t)},f.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)},f.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},f.prototype._forceRed=function(t){return this.red=t,this},f.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},f.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},f.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},f.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},f.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},f.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},f.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},f.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},f.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},f.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},f.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},f.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},f.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},f.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new f(e,16),this.n=this.p.bitLength(),this.k=new f(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 E(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(t){if("string"==typeof t){var e=f._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 N(t){_.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new f(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 f(null);return t.words=Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,r=t;do this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?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=Math.min(t.length,9),n=0;n<r;n++)e.words[n]=t.words[n];if(e.length=r,t.length<=9){t.words[0]=0,t.length=1;return}var i=t.words[9];for(n=10,e.words[e.length++]=4194303&i;n<t.length;n++){var f=0|t.words[n];t.words[n-10]=(4194303&f)<<4|i>>>22,i=f}i>>>=22,t.words[n-10]=i,0===i&&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<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(E,w),i(A,w),i(S,w),S.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=(0|t.words[r])*19+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},f._prime=function(t){var e;if(v[t])return v[t];if("k256"===t)e=new M;else if("p224"===t)e=new E;else if("p192"===t)e=new A;else if("p25519"===t)e=new S;else throw Error("Unknown prime "+t);return v[t]=e,e},_.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},_.prototype._verify2=function(t,e){n((t.negative|e.negative)==0,"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},_.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(u(t,t.umod(this.m)._forceRed(this)),t)},_.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},_.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)},_.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},_.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},_.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return 0>r.cmpn(0)&&r.iadd(this.m),r},_.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},_.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},_.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},_.prototype.isqr=function(t){return this.imul(t,t.clone())},_.prototype.sqr=function(t){return this.mul(t,t)},_.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 f(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var a=new f(1).toRed(this),s=a.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new f(2*l*l).toRed(this);0!==this.pow(l,u).cmp(s);)l.redIAdd(s);for(var h=this.pow(l,i),c=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=o;0!==d.cmp(a);){for(var m=d,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g<p);var b=this.pow(h,new f(1).iushln(p-g-1));c=c.redMul(b),h=b.redSqr(),d=d.redMul(h),p=g}return c},_.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},_.prototype.pow=function(t,e){if(e.isZero())return new f(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=Array(16);r[0]=new f(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],o=0,a=0,s=e.bitLength()%26;for(0===s&&(s=26),n=e.length-1;n>=0;n--){for(var u=e.words[n],l=s-1;l>=0;l--){var h=u>>l&1;if(i!==r[0]&&(i=this.sqr(i)),0===h&&0===o){a=0;continue}o<<=1,o|=h,(4==++a||0===n&&0===l)&&(i=this.mul(i,r[o]),a=0,o=0)}s=26}return i},_.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},_.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},f.mont=function(t){return new N(t)},i(N,_),N.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},N.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},N.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),f=i;return i.cmp(this.m)>=0?f=i.isub(this.m):0>i.cmpn(0)&&(f=i.iadd(this.m)),f._forceRed(this)},N.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new f(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),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},N.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},51464:function(t,e,r){var n,i=r(34155);!function(){"use strict";var f="input is invalid type",o="object"==typeof window,a=o?window:{};a.JS_SHA3_NO_WINDOW&&(o=!1);var s=!o&&"object"==typeof self;!a.JS_SHA3_NO_NODE_JS&&"object"==typeof i&&i.versions&&i.versions.node?a=r.g:s&&(a=self);var u=!a.JS_SHA3_NO_COMMON_JS&&t.exports,l=r.amdO,h=!a.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,c="0123456789abcdef".split(""),d=[4,1024,262144,67108864],p=[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],g=[224,256,384,512],b=[128,256],y=["hex","buffer","arrayBuffer","array","digest"],v={128:168,256:136};(a.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),h&&(a.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 w=function(t,e,r){return function(n){return new F(t,e,t).update(n)[r]()}},M=function(t,e,r){return function(n,i){return new F(t,e,i).update(n)[r]()}},E=function(t,e,r){return function(e,n,i,f){return T["cshake"+t].update(e,n,i,f)[r]()}},A=function(t,e,r){return function(e,n,i,f){return T["kmac"+t].update(e,n,i,f)[r]()}},S=function(t,e,r,n){for(var i=0;i<y.length;++i){var f=y[i];t[f]=e(r,n,f)}return t},_=function(t,e){var r=w(t,e,"hex");return r.create=function(){return new F(t,e,t)},r.update=function(t){return r.create().update(t)},S(r,w,t,e)},N=[{name:"keccak",padding:[1,256,65536,16777216],bits:g,createMethod:_},{name:"sha3",padding:[6,1536,393216,100663296],bits:g,createMethod:_},{name:"shake",padding:[31,7936,2031616,520093696],bits:b,createMethod:function(t,e){var r=M(t,e,"hex");return r.create=function(r){return new F(t,e,r)},r.update=function(t,e){return r.create(e).update(t)},S(r,M,t,e)}},{name:"cshake",padding:d,bits:b,createMethod:function(t,e){var r=v[t],n=E(t,e,"hex");return n.create=function(n,i,f){return i||f?new F(t,e,n).bytepad([i,f],r):T["shake"+t].create(n)},n.update=function(t,e,r,i){return n.create(e,r,i).update(t)},S(n,E,t,e)}},{name:"kmac",padding:d,bits:b,createMethod:function(t,e){var r=v[t],n=A(t,e,"hex");return n.create=function(n,i,f){return new B(t,e,i).bytepad(["KMAC",f],r).bytepad([n],r)},n.update=function(t,e,r,i){return n.create(t,r,i).update(e)},S(n,A,t,e)}}],T={},R=[],C=0;C<N.length;++C)for(var I=N[C],P=I.bits,O=0;O<P.length;++O){var x=I.name+"_"+P[O];if(R.push(x),T[x]=I.createMethod(P[O],I.padding),"sha3"!==I.name){var k=I.name+P[O];R.push(k),T[k]=T[x]}}function F(t,e,r){this.blocks=[],this.s=[],this.padding=e,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(t<<1)>>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 B(t,e,r){F.call(this,t,e,r)}F.prototype.update=function(t){if(this.finalized)throw Error("finalize already called");var e,r=typeof t;if("string"!==r){if("object"===r){if(null===t)throw Error(f);if(h&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!h||!ArrayBuffer.isView(t)))throw Error(f)}else throw Error(f);e=!0}for(var n,i,o=this.blocks,a=this.byteCount,s=t.length,u=this.blockCount,l=0,c=this.s;l<s;){if(this.reset)for(n=1,this.reset=!1,o[0]=this.block;n<u+1;++n)o[n]=0;if(e)for(n=this.start;l<s&&n<a;++l)o[n>>2]|=t[l]<<p[3&n++];else for(n=this.start;l<s&&n<a;++l)(i=t.charCodeAt(l))<128?o[n>>2]|=i<<p[3&n++]:(i<2048?o[n>>2]|=(192|i>>6)<<p[3&n++]:(i<55296||i>=57344?o[n>>2]|=(224|i>>12)<<p[3&n++]:(i=65536+((1023&i)<<10|1023&t.charCodeAt(++l)),o[n>>2]|=(240|i>>18)<<p[3&n++],o[n>>2]|=(128|i>>12&63)<<p[3&n++]),o[n>>2]|=(128|i>>6&63)<<p[3&n++]),o[n>>2]|=(128|63&i)<<p[3&n++]);if(this.lastByteIndex=n,n>=a){for(this.start=n-a,this.block=o[u],n=0;n<u;++n)c[n]^=o[n];L(c),this.reset=!0}else this.start=n}return this},F.prototype.encode=function(t,e){var r=255&t,n=1,i=[r];for(t>>=8,r=255&t;r>0;)i.unshift(r),t>>=8,r=255&t,++n;return e?i.push(n):i.unshift(n),this.update(i),i.length},F.prototype.encodeString=function(t){var e,r=typeof t;if("string"!==r){if("object"===r){if(null===t)throw Error(f);if(h&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!h||!ArrayBuffer.isView(t)))throw Error(f)}else throw Error(f);e=!0}var n=0,i=t.length;if(e)n=i;else for(var o=0;o<t.length;++o){var a=t.charCodeAt(o);a<128?n+=1:a<2048?n+=2:a<55296||a>=57344?n+=3:(a=65536+((1023&a)<<10|1023&t.charCodeAt(++o)),n+=4)}return n+=this.encode(8*n),this.update(t),n},F.prototype.bytepad=function(t,e){for(var r=this.encode(e),n=0;n<t.length;++n)r+=this.encodeString(t[n]);var i=e-r%e,f=[];return f.length=i,this.update(f),this},F.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex,r=this.blockCount,n=this.s;if(t[e>>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(e=1,t[0]=t[r];e<r+1;++e)t[e]=0;for(t[r-1]|=2147483648,e=0;e<r;++e)n[e]^=t[e];L(n)}},F.prototype.toString=F.prototype.hex=function(){this.finalize();for(var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,f=0,o=0,a="";o<n;){for(f=0;f<e&&o<n;++f,++o)a+=c[(t=r[f])>>4&15]+c[15&t]+c[t>>12&15]+c[t>>8&15]+c[t>>20&15]+c[t>>16&15]+c[t>>28&15]+c[t>>24&15];o%e==0&&(L(r),f=0)}return i&&(a+=c[(t=r[f])>>4&15]+c[15&t],i>1&&(a+=c[t>>12&15]+c[t>>8&15]),i>2&&(a+=c[t>>20&15]+c[t>>16&15])),a},F.prototype.arrayBuffer=function(){this.finalize();for(var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,f=0,o=0,a=this.outputBits>>3,s=new Uint32Array(t=new ArrayBuffer(i?n+1<<2:a));o<n;){for(f=0;f<e&&o<n;++f,++o)s[o]=r[f];o%e==0&&L(r)}return i&&(s[f]=r[f],t=t.slice(0,a)),t},F.prototype.buffer=F.prototype.arrayBuffer,F.prototype.digest=F.prototype.array=function(){this.finalize();for(var t,e,r=this.blockCount,n=this.s,i=this.outputBlocks,f=this.extraBytes,o=0,a=0,s=[];a<i;){for(o=0;o<r&&a<i;++o,++a)t=a<<2,e=n[o],s[t]=255&e,s[t+1]=e>>8&255,s[t+2]=e>>16&255,s[t+3]=e>>24&255;a%r==0&&L(n)}return f&&(t=a<<2,e=n[o],s[t]=255&e,f>1&&(s[t+1]=e>>8&255),f>2&&(s[t+2]=e>>16&255)),s},B.prototype=new F,B.prototype.finalize=function(){return this.encode(this.outputBits,!0),F.prototype.finalize.call(this)};var L=function(t){var e,r,n,i,f,o,a,s,u,l,h,c,d,p,g,b,y,v,w,M,E,A,S,_,N,T,R,C,I,P,O,x,k,F,B,L,D,U,G,z,J,j,H,V,X,q,Z,K,W,Y,Q,$,tt,te,tr,tn,ti,tf,to,ta,ts,tu,tl;for(n=0;n<48;n+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],f=t[1]^t[11]^t[21]^t[31]^t[41],o=t[2]^t[12]^t[22]^t[32]^t[42],a=t[3]^t[13]^t[23]^t[33]^t[43],s=t[4]^t[14]^t[24]^t[34]^t[44],u=t[5]^t[15]^t[25]^t[35]^t[45],l=t[6]^t[16]^t[26]^t[36]^t[46],h=t[7]^t[17]^t[27]^t[37]^t[47],c=t[8]^t[18]^t[28]^t[38]^t[48],d=t[9]^t[19]^t[29]^t[39]^t[49],e=c^(o<<1|a>>>31),r=d^(a<<1|o>>>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^(s<<1|u>>>31),r=f^(u<<1|s>>>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=o^(l<<1|h>>>31),r=a^(h<<1|l>>>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=s^(c<<1|d>>>31),r=u^(d<<1|c>>>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=l^(i<<1|f>>>31),r=h^(f<<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],g=t[1],q=t[11]<<4|t[10]>>>28,Z=t[10]<<4|t[11]>>>28,C=t[20]<<3|t[21]>>>29,I=t[21]<<3|t[20]>>>29,ta=t[31]<<9|t[30]>>>23,ts=t[30]<<9|t[31]>>>23,j=t[40]<<18|t[41]>>>14,H=t[41]<<18|t[40]>>>14,F=t[2]<<1|t[3]>>>31,B=t[3]<<1|t[2]>>>31,b=t[13]<<12|t[12]>>>20,y=t[12]<<12|t[13]>>>20,K=t[22]<<10|t[23]>>>22,W=t[23]<<10|t[22]>>>22,P=t[33]<<13|t[32]>>>19,O=t[32]<<13|t[33]>>>19,tu=t[42]<<2|t[43]>>>30,tl=t[43]<<2|t[42]>>>30,te=t[5]<<30|t[4]>>>2,tr=t[4]<<30|t[5]>>>2,L=t[14]<<6|t[15]>>>26,D=t[15]<<6|t[14]>>>26,v=t[25]<<11|t[24]>>>21,w=t[24]<<11|t[25]>>>21,Y=t[34]<<15|t[35]>>>17,Q=t[35]<<15|t[34]>>>17,x=t[45]<<29|t[44]>>>3,k=t[44]<<29|t[45]>>>3,_=t[6]<<28|t[7]>>>4,N=t[7]<<28|t[6]>>>4,tn=t[17]<<23|t[16]>>>9,ti=t[16]<<23|t[17]>>>9,U=t[26]<<25|t[27]>>>7,G=t[27]<<25|t[26]>>>7,M=t[36]<<21|t[37]>>>11,E=t[37]<<21|t[36]>>>11,$=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,V=t[8]<<27|t[9]>>>5,X=t[9]<<27|t[8]>>>5,T=t[18]<<20|t[19]>>>12,R=t[19]<<20|t[18]>>>12,tf=t[29]<<7|t[28]>>>25,to=t[28]<<7|t[29]>>>25,z=t[38]<<8|t[39]>>>24,J=t[39]<<8|t[38]>>>24,A=t[48]<<14|t[49]>>>18,S=t[49]<<14|t[48]>>>18,t[0]=p^~b&v,t[1]=g^~y&w,t[10]=_^~T&C,t[11]=N^~R&I,t[20]=F^~L&U,t[21]=B^~D&G,t[30]=V^~q&K,t[31]=X^~Z&W,t[40]=te^~tn&tf,t[41]=tr^~ti&to,t[2]=b^~v&M,t[3]=y^~w&E,t[12]=T^~C&P,t[13]=R^~I&O,t[22]=L^~U&z,t[23]=D^~G&J,t[32]=q^~K&Y,t[33]=Z^~W&Q,t[42]=tn^~tf&ta,t[43]=ti^~to&ts,t[4]=v^~M&A,t[5]=w^~E&S,t[14]=C^~P&x,t[15]=I^~O&k,t[24]=U^~z&j,t[25]=G^~J&H,t[34]=K^~Y&$,t[35]=W^~Q&tt,t[44]=tf^~ta&tu,t[45]=to^~ts&tl,t[6]=M^~A&p,t[7]=E^~S&g,t[16]=P^~x&_,t[17]=O^~k&N,t[26]=z^~j&F,t[27]=J^~H&B,t[36]=Y^~$&V,t[37]=Q^~tt&X,t[46]=ta^~tu&te,t[47]=ts^~tl&tr,t[8]=A^~p&b,t[9]=S^~g&y,t[18]=x^~_&T,t[19]=k^~N&R,t[28]=j^~F&L,t[29]=H^~B&D,t[38]=$^~V&q,t[39]=tt^~X&Z,t[48]=tu^~te&tn,t[49]=tl^~tr&ti,t[0]^=m[n],t[1]^=m[n+1]};if(u)t.exports=T;else{for(C=0;C<R.length;++C)a[R[C]]=T[R[C]];l&&void 0!==(n=(function(){return T}).call(e,r,e,t))&&(t.exports=n)}}()},90854:function(t,e,r){"use strict";r.r(e),r.d(e,{HDNode:function(){return t4},defaultPath:function(){return t3},entropyToMnemonic:function(){return et},getAccountPath:function(){return er},isValidMnemonic:function(){return ee},mnemonicToEntropy:function(){return t7},mnemonicToSeed:function(){return t9}});let n=!1,i=!1,f={debug:1,default:2,info:2,warning:3,error:4,off:5},o=f.default,a=null,s=function(){try{let t=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test"!=="test".normalize(e))throw Error("bad normalize")}catch(r){t.push(e)}}),t.length)throw Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw Error("broken implementation")}catch(t){return t.message}return null}();(I=O||(O={})).DEBUG="DEBUG",I.INFO="INFO",I.WARNING="WARNING",I.ERROR="ERROR",I.OFF="OFF",(P=x||(x={})).UNKNOWN_ERROR="UNKNOWN_ERROR",P.NOT_IMPLEMENTED="NOT_IMPLEMENTED",P.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",P.NETWORK_ERROR="NETWORK_ERROR",P.SERVER_ERROR="SERVER_ERROR",P.TIMEOUT="TIMEOUT",P.BUFFER_OVERRUN="BUFFER_OVERRUN",P.NUMERIC_FAULT="NUMERIC_FAULT",P.MISSING_NEW="MISSING_NEW",P.INVALID_ARGUMENT="INVALID_ARGUMENT",P.MISSING_ARGUMENT="MISSING_ARGUMENT",P.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",P.CALL_EXCEPTION="CALL_EXCEPTION",P.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",P.NONCE_EXPIRED="NONCE_EXPIRED",P.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",P.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",P.TRANSACTION_REPLACED="TRANSACTION_REPLACED",P.ACTION_REJECTED="ACTION_REJECTED";let u="0123456789abcdef";class l{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){let r=t.toLowerCase();null==f[r]&&this.throwArgumentError("invalid log level name","logLevel",t),o>f[r]||console.log.apply(console,e)}debug(...t){this._log(l.levels.DEBUG,t)}info(...t){this._log(l.levels.INFO,t)}warn(...t){this._log(l.levels.WARNING,t)}makeError(t,e,r){if(i)return this.makeError("censored error",e,{});e||(e=l.errors.UNKNOWN_ERROR),r||(r={});let n=[];Object.keys(r).forEach(t=>{let e=r[t];try{if(e instanceof Uint8Array){let r="";for(let t=0;t<e.length;t++)r+=u[e[t]>>4]+u[15&e[t]];n.push(t+"=Uint8Array(0x"+r+")")}else n.push(t+"="+JSON.stringify(e))}catch(e){n.push(t+"="+JSON.stringify(r[t].toString()))}}),n.push(`code=${e}`),n.push(`version=${this.version}`);let f=t,o="";switch(e){case x.NUMERIC_FAULT:{o="NUMERIC_FAULT";let e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":o+="-"+e;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result"}break}case x.CALL_EXCEPTION:case x.INSUFFICIENT_FUNDS:case x.MISSING_NEW:case x.NONCE_EXPIRED:case x.REPLACEMENT_UNDERPRICED:case x.TRANSACTION_REPLACED:case x.UNPREDICTABLE_GAS_LIMIT:o=e}o&&(t+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),n.length&&(t+=" ("+n.join(", ")+")");let a=Error(t);return a.reason=f,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,l.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"),s&&this.throwError("platform missing String.prototype.normalize",l.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:s})}checkSafeUint53(t,e){"number"==typeof t&&(null==e&&(e="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(e,l.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(e,l.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,e,r){r=r?": "+r:"",t<e&&this.throwError("missing argument"+r,l.errors.MISSING_ARGUMENT,{count:t,expectedCount:e}),t>e&&this.throwError("too many arguments"+r,l.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:e})}checkNew(t,e){(t===Object||null==t)&&this.throwError("missing new",l.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",l.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):(t===Object||null==t)&&this.throwError("missing new",l.errors.MISSING_NEW,{name:e.name})}static globalLogger(){return a||(a=new l("logger/5.7.0")),a}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",l.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),n){if(!t)return;this.globalLogger().throwError("error censorship permanent",l.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}i=!!t,n=!!e}static setLogLevel(t){let e=f[t.toLowerCase()];if(null==e){l.globalLogger().warn("invalid log level - "+t);return}o=e}static from(t){return new l(t)}}l.errors=x,l.levels=O;let h=new l("bytes/5.7.0");function c(t){return!!t.toHexString}function d(t){return t.slice||(t.slice=function(){let e=Array.prototype.slice.call(arguments);return d(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function p(t){return"number"==typeof t&&t==t&&t%1==0}function m(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"==typeof t||!p(t.length)||t.length<0)return!1;for(let e=0;e<t.length;e++){let r=t[e];if(!p(r)||r<0||r>=256)return!1}return!0}function g(t,e){if(e||(e={}),"number"==typeof t){h.checkSafeUint53(t,"invalid arrayify value");let e=[];for(;t;)e.unshift(255&t),t=parseInt(String(t/256));return 0===e.length&&e.push(0),d(new Uint8Array(e))}if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),c(t)&&(t=t.toHexString()),y(t)){let r=t.substring(2);r.length%2&&("left"===e.hexPad?r="0"+r:"right"===e.hexPad?r+="0":h.throwArgumentError("hex data is odd-length","value",t));let n=[];for(let t=0;t<r.length;t+=2)n.push(parseInt(r.substring(t,t+2),16));return d(new Uint8Array(n))}return m(t)?d(new Uint8Array(t)):h.throwArgumentError("invalid arrayify value","value",t)}function b(t){let e=t.map(t=>g(t)),r=new Uint8Array(e.reduce((t,e)=>t+e.length,0));return e.reduce((t,e)=>(r.set(e,t),t+e.length),0),d(r)}function y(t,e){return"string"==typeof t&&!!t.match(/^0x[0-9A-Fa-f]*$/)&&(!e||t.length===2+2*e)}let v="0123456789abcdef";function w(t,e){if(e||(e={}),"number"==typeof t){h.checkSafeUint53(t,"invalid hexlify value");let e="";for(;t;)e=v[15&t]+e,t=Math.floor(t/16);return e.length?(e.length%2&&(e="0"+e),"0x"+e):"0x00"}if("bigint"==typeof t)return(t=t.toString(16)).length%2?"0x0"+t:"0x"+t;if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),c(t))return t.toHexString();if(y(t))return t.length%2&&("left"===e.hexPad?t="0x0"+t.substring(2):"right"===e.hexPad?t+="0":h.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(m(t)){let e="0x";for(let r=0;r<t.length;r++){let n=t[r];e+=v[(240&n)>>4]+v[15&n]}return e}return h.throwArgumentError("invalid hexlify value","value",t)}function M(t,e,r){return("string"!=typeof t?t=w(t):(!y(t)||t.length%2)&&h.throwArgumentError("invalid hexData","value",t),e=2+2*e,null!=r)?"0x"+t.substring(e,2+2*r):"0x"+t.substring(e)}function E(t,e){for("string"!=typeof t?t=w(t):y(t)||h.throwArgumentError("invalid hex string","value",t),t.length>2*e+2&&h.throwArgumentError("value out of range","value",arguments[1]);t.length<2*e+2;)t="0x0"+t.substring(2);return t}function A(t,e,r){Object.defineProperty(t,e,{enumerable:!0,value:r,writable:!1})}new l("properties/5.7.0");class S{constructor(t){A(this,"alphabet",t),A(this,"base",t.length),A(this,"_alphabetMap",{}),A(this,"_leader",t.charAt(0));for(let e=0;e<t.length;e++)this._alphabetMap[t.charAt(e)]=e}encode(t){let e=g(t);if(0===e.length)return"";let r=[0];for(let t=0;t<e.length;++t){let n=e[t];for(let t=0;t<r.length;++t)n+=r[t]<<8,r[t]=n%this.base,n=n/this.base|0;for(;n>0;)r.push(n%this.base),n=n/this.base|0}let n="";for(let t=0;0===e[t]&&t<e.length-1;++t)n+=this._leader;for(let t=r.length-1;t>=0;--t)n+=this.alphabet[r[t]];return n}decode(t){if("string"!=typeof t)throw TypeError("Expected String");let e=[];if(0===t.length)return new Uint8Array(e);e.push(0);for(let r=0;r<t.length;r++){let n=this._alphabetMap[t[r]];if(void 0===n)throw Error("Non-base"+this.base+" character");let i=n;for(let t=0;t<e.length;++t)i+=e[t]*this.base,e[t]=255&i,i>>=8;for(;i>0;)e.push(255&i),i>>=8}for(let r=0;t[r]===this._leader&&r<t.length-1;++r)e.push(0);return g(new Uint8Array(e.reverse()))}}new S("abcdefghijklmnopqrstuvwxyz234567");let _=new S("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz");var N,T,R,C,I,P,O,x,k,F,B,L,D=r(40170),U=r.n(D),G=U().BN;let z=new l("bignumber/5.7.0"),J={},j=!1;class H{constructor(t,e){t!==J&&z.throwError("cannot call constructor directly; use BigNumber.from",l.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=e,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return X(q(this).fromTwos(t))}toTwos(t){return X(q(this).toTwos(t))}abs(){return"-"===this._hex[0]?H.from(this._hex.substring(1)):this}add(t){return X(q(this).add(q(t)))}sub(t){return X(q(this).sub(q(t)))}div(t){return H.from(t).isZero()&&Z("division-by-zero","div"),X(q(this).div(q(t)))}mul(t){return X(q(this).mul(q(t)))}mod(t){let e=q(t);return e.isNeg()&&Z("division-by-zero","mod"),X(q(this).umod(e))}pow(t){let e=q(t);return e.isNeg()&&Z("negative-power","pow"),X(q(this).pow(e))}and(t){let e=q(t);return(this.isNegative()||e.isNeg())&&Z("unbound-bitwise-result","and"),X(q(this).and(e))}or(t){let e=q(t);return(this.isNegative()||e.isNeg())&&Z("unbound-bitwise-result","or"),X(q(this).or(e))}xor(t){let e=q(t);return(this.isNegative()||e.isNeg())&&Z("unbound-bitwise-result","xor"),X(q(this).xor(e))}mask(t){return(this.isNegative()||t<0)&&Z("negative-width","mask"),X(q(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&Z("negative-width","shl"),X(q(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&Z("negative-width","shr"),X(q(this).shrn(t))}eq(t){return q(this).eq(q(t))}lt(t){return q(this).lt(q(t))}lte(t){return q(this).lte(q(t))}gt(t){return q(this).gt(q(t))}gte(t){return q(this).gte(q(t))}isNegative(){return"-"===this._hex[0]}isZero(){return q(this).isZero()}toNumber(){try{return q(this).toNumber()}catch(t){Z("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(t){}return z.throwError("this platform does not support BigInt",l.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?j||(j=!0,z.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?z.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",l.errors.UNEXPECTED_ARGUMENT,{}):z.throwError("BigNumber.toString does not accept parameters",l.errors.UNEXPECTED_ARGUMENT,{})),q(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof H)return t;if("string"==typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new H(J,V(t)):t.match(/^-?[0-9]+$/)?new H(J,V(new G(t))):z.throwArgumentError("invalid BigNumber string","value",t);if("number"==typeof t)return t%1&&Z("underflow","BigNumber.from",t),(t>=9007199254740991||t<=-9007199254740991)&&Z("overflow","BigNumber.from",t),H.from(String(t));if("bigint"==typeof t)return H.from(t.toString());if(m(t))return H.from(w(t));if(t){if(t.toHexString){let e=t.toHexString();if("string"==typeof e)return H.from(e)}else{let e=t._hex;if(null==e&&"BigNumber"===t.type&&(e=t.hex),"string"==typeof e&&(y(e)||"-"===e[0]&&y(e.substring(1))))return H.from(e)}}return z.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!!(t&&t._isBigNumber)}}function V(t){if("string"!=typeof t)return V(t.toString(16));if("-"===t[0])return("-"===(t=t.substring(1))[0]&&z.throwArgumentError("invalid hex","value",t),"0x00"===(t=V(t)))?t:"-"+t;if("0x"!==t.substring(0,2)&&(t="0x"+t),"0x"===t)return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&"0x00"===t.substring(0,4);)t="0x"+t.substring(4);return t}function X(t){return H.from(V(t))}function q(t){let e=H.from(t).toHexString();return"-"===e[0]?new G("-"+e.substring(3),16):new G(e.substring(2),16)}function Z(t,e,r){let n={fault:t,operation:e};return null!=r&&(n.value=r),z.throwError(t,l.errors.NUMERIC_FAULT,n)}let K=new l("strings/5.7.0");function W(t,e,r,n,i){if(t===F.BAD_PREFIX||t===F.UNEXPECTED_CONTINUE){let t=0;for(let n=e+1;n<r.length&&r[n]>>6==2;n++)t++;return t}return t===F.OVERRUN?r.length-e-1:0}function Y(t,e=k.current){e!=k.current&&(K.checkNormalize(),t=t.normalize(e));let r=[];for(let e=0;e<t.length;e++){let n=t.charCodeAt(e);if(n<128)r.push(n);else if(n<2048)r.push(n>>6|192),r.push(63&n|128);else if((64512&n)==55296){e++;let i=t.charCodeAt(e);if(e>=t.length||(64512&i)!=56320)throw Error("invalid utf-8 string");let f=65536+((1023&n)<<10)+(1023&i);r.push(f>>18|240),r.push(f>>12&63|128),r.push(f>>6&63|128),r.push(63&f|128)}else r.push(n>>12|224),r.push(n>>6&63|128),r.push(63&n|128)}return g(r)}(N=k||(k={})).current="",N.NFC="NFC",N.NFD="NFD",N.NFKC="NFKC",N.NFKD="NFKD",(T=F||(F={})).UNEXPECTED_CONTINUE="unexpected continuation byte",T.BAD_PREFIX="bad codepoint prefix",T.OVERRUN="string overrun",T.MISSING_CONTINUE="missing continuation byte",T.OUT_OF_RANGE="out of UTF-8 range",T.UTF16_SURROGATE="UTF-16 surrogate",T.OVERLONG="overlong representation",Object.freeze({error:function(t,e,r,n,i){return K.throwArgumentError(`invalid codepoint at offset ${e}; ${t}`,"bytes",r)},ignore:W,replace:function(t,e,r,n,i){return t===F.OVERLONG?(n.push(i),0):(n.push(65533),W(t,e,r,n,i))}});var Q=r(33715),$=r.n(Q);(R=B||(B={})).sha256="sha256",R.sha512="sha512";let tt=new l("sha2/5.7.0");function te(t){return"0x"+$().sha256().update(g(t)).digest("hex")}function tr(t,e,r){return B[t]||tt.throwError("unsupported algorithm "+t,l.errors.UNSUPPORTED_OPERATION,{operation:"hmac",algorithm:t}),"0x"+$().hmac($()[t],g(e)).update(g(r)).digest("hex")}function tn(t,e,r){return t(r={path:e,exports:{},require:function(t,e){return function(){throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(t,null==e?r.path:e)}},r.exports),r.exports}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self&&self;var ti=tf;function tf(t,e){if(!t)throw Error(e||"Assertion failed")}tf.equal=function(t,e,r){if(t!=e)throw Error(r||"Assertion failed: "+t+" != "+e)};var to=tn(function(t,e){function r(t){return 1===t.length?"0"+t:t}function n(t){for(var e="",n=0;n<t.length;n++)e+=r(t[n].toString(16));return e}e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"!=typeof t){for(var n=0;n<t.length;n++)r[n]=0|t[n];return r}if("hex"===e){(t=t.replace(/[^a-z0-9]+/ig,"")).length%2!=0&&(t="0"+t);for(var n=0;n<t.length;n+=2)r.push(parseInt(t[n]+t[n+1],16))}else for(var n=0;n<t.length;n++){var i=t.charCodeAt(n),f=i>>8,o=255&i;f?r.push(f,o):r.push(o)}return r},e.zero2=r,e.toHex=n,e.encode=function(t,e){return"hex"===e?n(t):t}}),ta=tn(function(t,e){e.assert=ti,e.toArray=to.toArray,e.zero2=to.zero2,e.toHex=to.toHex,e.encode=to.encode,e.getNAF=function(t,e,r){var n=Array(Math.max(t.bitLength(),r)+1);n.fill(0);for(var i=1<<e+1,f=t.clone(),o=0;o<n.length;o++){var a,s=f.andln(i-1);f.isOdd()?(a=s>(i>>1)-1?(i>>1)-s:s,f.isubn(a)):a=0,n[o]=a,f.iushrn(1)}return n},e.getJSF=function(t,e){var r=[[],[]];t=t.clone(),e=e.clone();for(var n=0,i=0;t.cmpn(-n)>0||e.cmpn(-i)>0;){var f,o,a,s=t.andln(3)+n&3,u=e.andln(3)+i&3;3===s&&(s=-1),3===u&&(u=-1),o=(1&s)==0?0:(3==(f=t.andln(7)+n&7)||5===f)&&2===u?-s:s,r[0].push(o),a=(1&u)==0?0:(3==(f=e.andln(7)+i&7)||5===f)&&2===s?-u:u,r[1].push(a),2*n===o+1&&(n=1-n),2*i===a+1&&(i=1-i),t.iushrn(1),e.iushrn(1)}return r},e.cachedProperty=function(t,e,r){var n="_"+e;t.prototype[e]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},e.parseBytes=function(t){return"string"==typeof t?e.toArray(t,"hex"):t},e.intFromLE=function(t){return new(U())(t,"hex","le")}}),ts=ta.getNAF,tu=ta.getJSF,tl=ta.assert;function th(t,e){this.type=t,this.p=new(U())(e.p,16),this.red=e.prime?U().red(e.prime):U().mont(this.p),this.zero=new(U())(0).toRed(this.red),this.one=new(U())(1).toRed(this.red),this.two=new(U())(2).toRed(this.red),this.n=e.n&&new(U())(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],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 tc(t,e){this.curve=t,this.type=e,this.precomputed=null}th.prototype.point=function(){throw Error("Not implemented")},th.prototype.validate=function(){throw Error("Not implemented")},th.prototype._fixedNafMul=function(t,e){tl(t.precomputed);var r,n,i=t._getDoubles(),f=ts(e,1,this._bitLength),o=(1<<i.step+1)-(i.step%2==0?2:1);o/=3;var a=[];for(r=0;r<f.length;r+=i.step){n=0;for(var s=r+i.step-1;s>=r;s--)n=(n<<1)+f[s];a.push(n)}for(var u=this.jpoint(null,null,null),l=this.jpoint(null,null,null),h=o;h>0;h--){for(r=0;r<a.length;r++)(n=a[r])===h?l=l.mixedAdd(i.points[r]):n===-h&&(l=l.mixedAdd(i.points[r].neg()));u=u.add(l)}return u.toP()},th.prototype._wnafMul=function(t,e){var r=4,n=t._getNAFPoints(r);r=n.wnd;for(var i=n.points,f=ts(e,r,this._bitLength),o=this.jpoint(null,null,null),a=f.length-1;a>=0;a--){for(var s=0;a>=0&&0===f[a];a--)s++;if(a>=0&&s++,o=o.dblp(s),a<0)break;var u=f[a];tl(0!==u),o="affine"===t.type?u>0?o.mixedAdd(i[u-1>>1]):o.mixedAdd(i[-u-1>>1].neg()):u>0?o.add(i[u-1>>1]):o.add(i[-u-1>>1].neg())}return"affine"===t.type?o.toP():o},th.prototype._wnafMulAdd=function(t,e,r,n,i){var f,o,a,s=this._wnafT1,u=this._wnafT2,l=this._wnafT3,h=0;for(f=0;f<n;f++){var c=(a=e[f])._getNAFPoints(t);s[f]=c.wnd,u[f]=c.points}for(f=n-1;f>=1;f-=2){var d=f-1,p=f;if(1!==s[d]||1!==s[p]){l[d]=ts(r[d],s[d],this._bitLength),l[p]=ts(r[p],s[p],this._bitLength),h=Math.max(l[d].length,h),h=Math.max(l[p].length,h);continue}var m=[e[d],null,null,e[p]];0===e[d].y.cmp(e[p].y)?(m[1]=e[d].add(e[p]),m[2]=e[d].toJ().mixedAdd(e[p].neg())):0===e[d].y.cmp(e[p].y.redNeg())?(m[1]=e[d].toJ().mixedAdd(e[p]),m[2]=e[d].add(e[p].neg())):(m[1]=e[d].toJ().mixedAdd(e[p]),m[2]=e[d].toJ().mixedAdd(e[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],b=tu(r[d],r[p]);for(o=0,h=Math.max(b[0].length,h),l[d]=Array(h),l[p]=Array(h);o<h;o++){var y=0|b[0][o],v=0|b[1][o];l[d][o]=g[(y+1)*3+(v+1)],l[p][o]=0,u[d]=m}}var w=this.jpoint(null,null,null),M=this._wnafT4;for(f=h;f>=0;f--){for(var E=0;f>=0;){var A=!0;for(o=0;o<n;o++)M[o]=0|l[o][f],0!==M[o]&&(A=!1);if(!A)break;E++,f--}if(f>=0&&E++,w=w.dblp(E),f<0)break;for(o=0;o<n;o++){var S=M[o];0!==S&&(S>0?a=u[o][S-1>>1]:S<0&&(a=u[o][-S-1>>1].neg()),w="affine"===a.type?w.mixedAdd(a):w.add(a))}}for(f=0;f<n;f++)u[f]=null;return i?w:w.toP()},th.BasePoint=tc,tc.prototype.eq=function(){throw Error("Not implemented")},tc.prototype.validate=function(){return this.curve.validate(this)},th.prototype.decodePoint=function(t,e){t=ta.toArray(t,e);var r=this.p.byteLength();if((4===t[0]||6===t[0]||7===t[0])&&t.length-1==2*r)return 6===t[0]?tl(t[t.length-1]%2==0):7===t[0]&&tl(t[t.length-1]%2==1),this.point(t.slice(1,1+r),t.slice(1+r,1+2*r));if((2===t[0]||3===t[0])&&t.length-1===r)return this.pointFromX(t.slice(1,1+r),3===t[0]);throw Error("Unknown point format")},tc.prototype.encodeCompressed=function(t){return this.encode(t,!0)},tc.prototype._encode=function(t){var e=this.curve.p.byteLength(),r=this.getX().toArray("be",e);return t?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",e))},tc.prototype.encode=function(t,e){return ta.encode(this._encode(e),t)},tc.prototype.precompute=function(t){if(this.precomputed)return this;var e={doubles:null,naf:null,beta:null};return e.naf=this._getNAFPoints(8),e.doubles=this._getDoubles(4,t),e.beta=this._getBeta(),this.precomputed=e,this},tc.prototype._hasDoubles=function(t){if(!this.precomputed)return!1;var e=this.precomputed.doubles;return!!e&&e.points.length>=Math.ceil((t.bitLength()+1)/e.step)},tc.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<e;i+=t){for(var f=0;f<t;f++)n=n.dbl();r.push(n)}return{step:t,points:r}},tc.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var e=[this],r=(1<<t)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)e[i]=e[i-1].add(n);return{wnd:t,points:e}},tc.prototype._getBeta=function(){return null},tc.prototype.dblp=function(t){for(var e=this,r=0;r<t;r++)e=e.dbl();return e};var td=tn(function(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}}),tp=ta.assert;function tm(t){th.call(this,"short",t),this.a=new(U())(t.a,16).toRed(this.red),this.b=new(U())(t.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(t),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}function tg(t,e,r,n){th.BasePoint.call(this,t,"affine"),null===e&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new(U())(e,16),this.y=new(U())(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function tb(t,e,r,n){th.BasePoint.call(this,t,"jacobian"),null===e&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new(U())(0)):(this.x=new(U())(e,16),this.y=new(U())(r,16),this.z=new(U())(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}td(tm,th),tm.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){if(t.beta)e=new(U())(t.beta,16).toRed(this.red);else{var e,r,n,i=this._getEndoRoots(this.p);e=(e=0>i[0].cmp(i[1])?i[0]:i[1]).toRed(this.red)}if(t.lambda)r=new(U())(t.lambda,16);else{var f=this._getEndoRoots(this.n);0===this.g.mul(f[0]).x.cmp(this.g.x.redMul(e))?r=f[0]:(r=f[1],tp(0===this.g.mul(r).x.cmp(this.g.x.redMul(e))))}return n=t.basis?t.basis.map(function(t){return{a:new(U())(t.a,16),b:new(U())(t.b,16)}}):this._getEndoBasis(r),{beta:e,lambda:r,basis:n}}},tm.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:U().mont(t),r=new(U())(2).toRed(e).redInvm(),n=r.redNeg(),i=new(U())(3).toRed(e).redNeg().redSqrt().redMul(r);return[n.redAdd(i).fromRed(),n.redSub(i).fromRed()]},tm.prototype._getEndoBasis=function(t){for(var e,r,n,i,f,o,a,s,u,l=this.n.ushrn(Math.floor(this.n.bitLength()/2)),h=t,c=this.n.clone(),d=new(U())(1),p=new(U())(0),m=new(U())(0),g=new(U())(1),b=0;0!==h.cmpn(0);){var y=c.div(h);s=c.sub(y.mul(h)),u=m.sub(y.mul(d));var v=g.sub(y.mul(p));if(!n&&0>s.cmp(l))e=a.neg(),r=d,n=s.neg(),i=u;else if(n&&2==++b)break;a=s,c=h,h=s,m=d,d=u,g=p,p=v}f=s.neg(),o=u;var w=n.sqr().add(i.sqr());return f.sqr().add(o.sqr()).cmp(w)>=0&&(f=e,o=r),n.negative&&(n=n.neg(),i=i.neg()),f.negative&&(f=f.neg(),o=o.neg()),[{a:n,b:i},{a:f,b:o}]},tm.prototype._endoSplit=function(t){var e=this.endo.basis,r=e[0],n=e[1],i=n.b.mul(t).divRound(this.n),f=r.b.neg().mul(t).divRound(this.n),o=i.mul(r.a),a=f.mul(n.a),s=i.mul(r.b),u=f.mul(n.b);return{k1:t.sub(o).sub(a),k2:s.add(u).neg()}},tm.prototype.pointFromX=function(t,e){(t=new(U())(t,16)).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 Error("invalid point");var i=n.fromRed().isOdd();return(e&&!i||!e&&i)&&(n=n.redNeg()),this.point(t,n)},tm.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)},tm.prototype._endoWnafMulAdd=function(t,e,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,f=0;f<t.length;f++){var o=this._endoSplit(e[f]),a=t[f],s=a._getBeta();o.k1.negative&&(o.k1.ineg(),a=a.neg(!0)),o.k2.negative&&(o.k2.ineg(),s=s.neg(!0)),n[2*f]=a,n[2*f+1]=s,i[2*f]=o.k1,i[2*f+1]=o.k2}for(var u=this._wnafMulAdd(1,n,i,2*f,r),l=0;l<2*f;l++)n[l]=null,i[l]=null;return u},td(tg,th.BasePoint),tm.prototype.point=function(t,e,r){return new tg(this,t,e,r)},tm.prototype.pointFromJSON=function(t,e){return tg.fromJSON(this,t,e)},tg.prototype._getBeta=function(){if(this.curve.endo){var t=this.precomputed;if(t&&t.beta)return t.beta;var e=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(t){var r=this.curve,n=function(t){return r.point(t.x.redMul(r.endo.beta),t.y)};t.beta=e,e.precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(n)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(n)}}}return e}},tg.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},tg.fromJSON=function(t,e,r){"string"==typeof e&&(e=JSON.parse(e));var n=t.point(e[0],e[1],r);if(!e[2])return n;function i(e){return t.point(e[0],e[1],r)}var f=e[2];return n.precomputed={beta:null,doubles:f.doubles&&{step:f.doubles.step,points:[n].concat(f.doubles.points.map(i))},naf:f.naf&&{wnd:f.naf.wnd,points:[n].concat(f.naf.points.map(i))}},n},tg.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},tg.prototype.isInfinity=function(){return this.inf},tg.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)||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)},tg.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),f=i.redSqr().redISub(this.x.redAdd(this.x)),o=i.redMul(this.x.redSub(f)).redISub(this.y);return this.curve.point(f,o)},tg.prototype.getX=function(){return this.x.fromRed()},tg.prototype.getY=function(){return this.y.fromRed()},tg.prototype.mul=function(t){return(t=new(U())(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)},tg.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)},tg.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)},tg.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))},tg.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},tg.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},td(tb,th.BasePoint),tm.prototype.jpoint=function(t,e,r){return new tb(this,t,e,r)},tb.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)},tb.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},tb.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),f=this.y.redMul(e.redMul(t.z)),o=t.y.redMul(r.redMul(this.z)),a=n.redSub(i),s=f.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),l=u.redMul(a),h=n.redMul(u),c=s.redSqr().redIAdd(l).redISub(h).redISub(h),d=s.redMul(h.redISub(c)).redISub(f.redMul(l)),p=this.z.redMul(t.z).redMul(a);return this.curve.jpoint(c,d,p)},tb.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,f=t.y.redMul(e).redMul(this.z),o=r.redSub(n),a=i.redSub(f);if(0===o.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var s=o.redSqr(),u=s.redMul(o),l=r.redMul(s),h=a.redSqr().redIAdd(u).redISub(l).redISub(l),c=a.redMul(l.redISub(h)).redISub(i.redMul(u)),d=this.z.redMul(o);return this.curve.jpoint(h,c,d)},tb.prototype.dblp=function(t){if(0===t||this.isInfinity())return this;if(!t)return this.dbl();if(this.curve.zeroA||this.curve.threeA){var e,r=this;for(e=0;e<t;e++)r=r.dbl();return r}var n=this.curve.a,i=this.curve.tinv,f=this.x,o=this.y,a=this.z,s=a.redSqr().redSqr(),u=o.redAdd(o);for(e=0;e<t;e++){var l=f.redSqr(),h=u.redSqr(),c=h.redSqr(),d=l.redAdd(l).redIAdd(l).redIAdd(n.redMul(s)),p=f.redMul(h),m=d.redSqr().redISub(p.redAdd(p)),g=p.redISub(m),b=d.redMul(g);b=b.redIAdd(b).redISub(c);var y=u.redMul(a);e+1<t&&(s=s.redMul(c)),f=m,a=y,u=b}return this.curve.jpoint(f,u.redMul(i),a)},tb.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},tb.prototype._zeroDbl=function(){if(this.zOne){var t,e,r,n=this.x.redSqr(),i=this.y.redSqr(),f=i.redSqr(),o=this.x.redAdd(i).redSqr().redISub(n).redISub(f);o=o.redIAdd(o);var a=n.redAdd(n).redIAdd(n),s=a.redSqr().redISub(o).redISub(o),u=f.redIAdd(f);u=(u=u.redIAdd(u)).redIAdd(u),t=s,e=a.redMul(o.redISub(s)).redISub(u),r=this.y.redAdd(this.y)}else{var l=this.x.redSqr(),h=this.y.redSqr(),c=h.redSqr(),d=this.x.redAdd(h).redSqr().redISub(l).redISub(c);d=d.redIAdd(d);var p=l.redAdd(l).redIAdd(l),m=p.redSqr(),g=c.redIAdd(c);g=(g=g.redIAdd(g)).redIAdd(g),t=m.redISub(d).redISub(d),e=p.redMul(d.redISub(t)).redISub(g),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(t,e,r)},tb.prototype._threeDbl=function(){if(this.zOne){var t,e,r,n=this.x.redSqr(),i=this.y.redSqr(),f=i.redSqr(),o=this.x.redAdd(i).redSqr().redISub(n).redISub(f);o=o.redIAdd(o);var a=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),s=a.redSqr().redISub(o).redISub(o);t=s;var u=f.redIAdd(f);u=(u=u.redIAdd(u)).redIAdd(u),e=a.redMul(o.redISub(s)).redISub(u),r=this.y.redAdd(this.y)}else{var l=this.z.redSqr(),h=this.y.redSqr(),c=this.x.redMul(h),d=this.x.redSub(l).redMul(this.x.redAdd(l));d=d.redAdd(d).redIAdd(d);var p=c.redIAdd(c),m=(p=p.redIAdd(p)).redAdd(p);t=d.redSqr().redISub(m),r=this.y.redAdd(this.z).redSqr().redISub(h).redISub(l);var g=h.redSqr();g=(g=(g=g.redIAdd(g)).redIAdd(g)).redIAdd(g),e=d.redMul(p.redISub(t)).redISub(g)}return this.curve.jpoint(t,e,r)},tb.prototype._dbl=function(){var t=this.curve.a,e=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),f=e.redSqr(),o=r.redSqr(),a=f.redAdd(f).redIAdd(f).redIAdd(t.redMul(i)),s=e.redAdd(e),u=(s=s.redIAdd(s)).redMul(o),l=a.redSqr().redISub(u.redAdd(u)),h=u.redISub(l),c=o.redSqr();c=(c=(c=c.redIAdd(c)).redIAdd(c)).redIAdd(c);var d=a.redMul(h).redISub(c),p=r.redAdd(r).redMul(n);return this.curve.jpoint(l,d,p)},tb.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var t=this.x.redSqr(),e=this.y.redSqr(),r=this.z.redSqr(),n=e.redSqr(),i=t.redAdd(t).redIAdd(t),f=i.redSqr(),o=this.x.redAdd(e).redSqr().redISub(t).redISub(n),a=(o=(o=(o=o.redIAdd(o)).redAdd(o).redIAdd(o)).redISub(f)).redSqr(),s=n.redIAdd(n);s=(s=(s=s.redIAdd(s)).redIAdd(s)).redIAdd(s);var u=i.redIAdd(o).redSqr().redISub(f).redISub(a).redISub(s),l=e.redMul(u);l=(l=l.redIAdd(l)).redIAdd(l);var h=this.x.redMul(a).redISub(l);h=(h=h.redIAdd(h)).redIAdd(h);var c=this.y.redMul(u.redMul(s.redISub(u)).redISub(o.redMul(a)));c=(c=(c=c.redIAdd(c)).redIAdd(c)).redIAdd(c);var d=this.z.redAdd(o).redSqr().redISub(r).redISub(a);return this.curve.jpoint(h,c,d)},tb.prototype.mul=function(t,e){return t=new(U())(t,e),this.curve._wnafMul(this,t)},tb.prototype.eq=function(t){if("affine"===t.type)return this.eq(t.toJ());if(this===t)return!0;var e=this.z.redSqr(),r=t.z.redSqr();if(0!==this.x.redMul(r).redISub(t.x.redMul(e)).cmpn(0))return!1;var n=e.redMul(this.z),i=r.redMul(t.z);return 0===this.y.redMul(i).redISub(t.y.redMul(n)).cmpn(0)},tb.prototype.eqXToP=function(t){var e=this.z.redSqr(),r=t.toRed(this.curve.red).redMul(e);if(0===this.x.cmp(r))return!0;for(var n=t.clone(),i=this.curve.redN.redMul(e);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},tb.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},tb.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var ty=tn(function(t,e){e.base=th,e.short=tm,e.mont=null,e.edwards=null}),tv=tn(function(t,e){var r,n=ta.assert;function i(t){"short"===t.type?this.curve=new ty.short(t):"edwards"===t.type?this.curve=new ty.edwards(t):this.curve=new ty.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,n(this.g.validate(),"Invalid curve"),n(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function f(t,r){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){var n=new i(r);return Object.defineProperty(e,t,{configurable:!0,enumerable:!0,value:n}),n}})}e.PresetCurve=i,f("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:$().sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),f("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:$().sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),f("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:$().sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),f("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:$().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"]}),f("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:$().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"]}),f("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:$().sha256,gRed:!1,g:["9"]}),f("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:$().sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=null.crash()}catch(t){r=void 0}f("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:$().sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})});function tw(t){if(!(this instanceof tw))return new tw(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=to.toArray(t.entropy,t.entropyEnc||"hex"),r=to.toArray(t.nonce,t.nonceEnc||"hex"),n=to.toArray(t.pers,t.persEnc||"hex");ti(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}tw.prototype._init=function(t,e,r){var n=t.concat(e).concat(r);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},tw.prototype._hmac=function(){return new($()).hmac(this.hash,this.K)},tw.prototype._update=function(t){var e=this._hmac().update(this.V).update([0]);t&&(e=e.update(t)),this.K=e.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},tw.prototype.reseed=function(t,e,r,n){"string"!=typeof e&&(n=r,r=e,e=null),t=to.toArray(t,e),r=to.toArray(r,n),ti(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(r||[])),this._reseed=1},tw.prototype.generate=function(t,e,r,n){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof e&&(n=r,r=e,e=null),r&&(r=to.toArray(r,n||"hex"),this._update(r));for(var i=[];i.length<t;)this.V=this._hmac().update(this.V).digest(),i=i.concat(this.V);var f=i.slice(0,t);return this._update(r),this._reseed++,to.encode(f,e)};var tM=ta.assert;function tE(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}tE.fromPublic=function(t,e,r){return e instanceof tE?e:new tE(t,{pub:e,pubEnc:r})},tE.fromPrivate=function(t,e,r){return e instanceof tE?e:new tE(t,{priv:e,privEnc:r})},tE.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},tE.prototype.getPublic=function(t,e){return("string"==typeof t&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e)?this.pub.encode(e,t):this.pub},tE.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},tE.prototype._importPrivate=function(t,e){this.priv=new(U())(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},tE.prototype._importPublic=function(t,e){if(t.x||t.y){"mont"===this.ec.curve.type?tM(t.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&tM(t.x&&t.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(t.x,t.y);return}this.pub=this.ec.curve.decodePoint(t,e)},tE.prototype.derive=function(t){return t.validate()||tM(t.validate(),"public point not validated"),t.mul(this.priv).getX()},tE.prototype.sign=function(t,e,r){return this.ec.sign(t,this,e,r)},tE.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},tE.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var tA=ta.assert;function tS(t,e){if(t instanceof tS)return t;this._importDER(t,e)||(tA(t.r&&t.s,"Signature without r or s"),this.r=new(U())(t.r,16),this.s=new(U())(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function t_(){this.place=0}function tN(t,e){var r=t[e.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,f=0,o=e.place;f<n;f++,o++)i<<=8,i|=t[o],i>>>=0;return!(i<=127)&&(e.place=o,i)}function tT(t){for(var e=0,r=t.length-1;!t[e]&&!(128&t[e+1])&&e<r;)e++;return 0===e?t:t.slice(e)}function tR(t,e){if(e<128){t.push(e);return}var r=1+(Math.log(e)/Math.LN2>>>3);for(t.push(128|r);--r;)t.push(e>>>(r<<3)&255);t.push(e)}tS.prototype._importDER=function(t,e){t=ta.toArray(t,e);var r=new t_;if(48!==t[r.place++])return!1;var n=tN(t,r);if(!1===n||n+r.place!==t.length||2!==t[r.place++])return!1;var i=tN(t,r);if(!1===i)return!1;var f=t.slice(r.place,i+r.place);if(r.place+=i,2!==t[r.place++])return!1;var o=tN(t,r);if(!1===o||t.length!==o+r.place)return!1;var a=t.slice(r.place,o+r.place);if(0===f[0]){if(!(128&f[1]))return!1;f=f.slice(1)}if(0===a[0]){if(!(128&a[1]))return!1;a=a.slice(1)}return this.r=new(U())(f),this.s=new(U())(a),this.recoveryParam=null,!0},tS.prototype.toDER=function(t){var e=this.r.toArray(),r=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&r[0]&&(r=[0].concat(r)),e=tT(e),r=tT(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var n=[2];tR(n,e.length),(n=n.concat(e)).push(2),tR(n,r.length);var i=n.concat(r),f=[48];return tR(f,i.length),f=f.concat(i),ta.encode(f,t)};var tC=function(){throw Error("unsupported")},tI=ta.assert;function tP(t){if(!(this instanceof tP))return new tP(t);"string"==typeof t&&(tI(Object.prototype.hasOwnProperty.call(tv,t),"Unknown curve "+t),t=tv[t]),t instanceof tv.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}tP.prototype.keyPair=function(t){return new tE(this,t)},tP.prototype.keyFromPrivate=function(t,e){return tE.fromPrivate(this,t,e)},tP.prototype.keyFromPublic=function(t,e){return tE.fromPublic(this,t,e)},tP.prototype.genKeyPair=function(t){t||(t={});for(var e=new tw({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||tC(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new(U())(2));;){var i=new(U())(e.generate(r));if(!(i.cmp(n)>0))return i.iaddn(1),this.keyFromPrivate(i)}},tP.prototype._truncateToN=function(t,e){var r=8*t.byteLength()-this.n.bitLength();return(r>0&&(t=t.ushrn(r)),!e&&t.cmp(this.n)>=0)?t.sub(this.n):t},tP.prototype.sign=function(t,e,r,n){"object"==typeof r&&(n=r,r=null),n||(n={}),e=this.keyFromPrivate(e,r),t=this._truncateToN(new(U())(t,16));for(var i=this.n.byteLength(),f=e.getPrivate().toArray("be",i),o=t.toArray("be",i),a=new tw({hash:this.hash,entropy:f,nonce:o,pers:n.pers,persEnc:n.persEnc||"utf8"}),s=this.n.sub(new(U())(1)),u=0;;u++){var l=n.k?n.k(u):new(U())(a.generate(this.n.byteLength()));if(!(0>=(l=this._truncateToN(l,!0)).cmpn(1)||l.cmp(s)>=0)){var h=this.g.mul(l);if(!h.isInfinity()){var c=h.getX(),d=c.umod(this.n);if(0!==d.cmpn(0)){var p=l.invm(this.n).mul(d.mul(e.getPrivate()).iadd(t));if(0!==(p=p.umod(this.n)).cmpn(0)){var m=(h.getY().isOdd()?1:0)|(0!==c.cmp(d)?2:0);return n.canonical&&p.cmp(this.nh)>0&&(p=this.n.sub(p),m^=1),new tS({r:d,s:p,recoveryParam:m})}}}}}},tP.prototype.verify=function(t,e,r,n){t=this._truncateToN(new(U())(t,16)),r=this.keyFromPublic(r,n);var i,f=(e=new tS(e,"hex")).r,o=e.s;if(0>f.cmpn(1)||f.cmp(this.n)>=0||0>o.cmpn(1)||o.cmp(this.n)>=0)return!1;var a=o.invm(this.n),s=a.mul(t).umod(this.n),u=a.mul(f).umod(this.n);return this.curve._maxwellTrick?!(i=this.g.jmulAdd(s,r.getPublic(),u)).isInfinity()&&i.eqXToP(f):!(i=this.g.mulAdd(s,r.getPublic(),u)).isInfinity()&&0===i.getX().umod(this.n).cmp(f)},tP.prototype.recoverPubKey=function(t,e,r,n){tI((3&r)===r,"The recovery param is more than two bits"),e=new tS(e,n);var i=this.n,f=new(U())(t),o=e.r,a=e.s,s=1&r,u=r>>1;if(o.cmp(this.curve.p.umod(this.curve.n))>=0&&u)throw Error("Unable to find sencond key candinate");o=u?this.curve.pointFromX(o.add(this.curve.n),s):this.curve.pointFromX(o,s);var l=e.r.invm(i),h=i.sub(f).mul(l).umod(i),c=a.mul(l).umod(i);return this.g.mulAdd(h,o,c)},tP.prototype.getKeyRecoveryParam=function(t,e,r,n){if(null!==(e=new tS(e,n)).recoveryParam)return e.recoveryParam;for(var i,f=0;f<4;f++){try{i=this.recoverPubKey(t,e,f)}catch(t){continue}if(i.eq(r))return f}throw Error("Unable to find valid recovery factor")};var tO=tn(function(t,e){e.version="6.5.4",e.utils=ta,e.rand=function(){throw Error("unsupported")},e.curve=ty,e.curves=tv,e.ec=tP,e.eddsa=null}).ec;let tx=new l("signing-key/5.7.0"),tk=null;function tF(){return tk||(tk=new tO("secp256k1")),tk}class tB{constructor(t){A(this,"curve","secp256k1"),A(this,"privateKey",w(t)),32!==function(t){if("string"!=typeof t)t=w(t);else if(!y(t)||t.length%2)return null;return(t.length-2)/2}(this.privateKey)&&tx.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");let e=tF().keyFromPrivate(g(this.privateKey));A(this,"publicKey","0x"+e.getPublic(!1,"hex")),A(this,"compressedPublicKey","0x"+e.getPublic(!0,"hex")),A(this,"_isSigningKey",!0)}_addPoint(t){let e=tF().keyFromPublic(g(this.publicKey)),r=tF().keyFromPublic(g(t));return"0x"+e.pub.add(r.pub).encodeCompressed("hex")}signDigest(t){let e=tF().keyFromPrivate(g(this.privateKey)),r=g(t);32!==r.length&&tx.throwArgumentError("bad digest length","digest",t);let n=e.sign(r,{canonical:!0});return function(t){let e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(y(t)&&!(t.length%2)||m(t)){let r=g(t);64===r.length?(e.v=27+(r[32]>>7),r[32]&=127,e.r=w(r.slice(0,32)),e.s=w(r.slice(32,64))):65===r.length?(e.r=w(r.slice(0,32)),e.s=w(r.slice(32,64)),e.v=r[64]):h.throwArgumentError("invalid signature string","signature",t),e.v<27&&(0===e.v||1===e.v?e.v+=27:h.throwArgumentError("signature invalid v byte","signature",t)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(r[32]|=128),e._vs=w(r.slice(32,64))}else{if(e.r=t.r,e.s=t.s,e.v=t.v,e.recoveryParam=t.recoveryParam,e._vs=t._vs,null!=e._vs){let r=function(t,e){(t=g(t)).length>e&&h.throwArgumentError("value out of range","value",arguments[0]);let r=new Uint8Array(e);return r.set(t,e-t.length),d(r)}(g(e._vs),32);e._vs=w(r);let n=r[0]>=128?1:0;null==e.recoveryParam?e.recoveryParam=n:e.recoveryParam!==n&&h.throwArgumentError("signature recoveryParam mismatch _vs","signature",t),r[0]&=127;let i=w(r);null==e.s?e.s=i:e.s!==i&&h.throwArgumentError("signature v mismatch _vs","signature",t)}if(null==e.recoveryParam)null==e.v?h.throwArgumentError("signature missing v and recoveryParam","signature",t):0===e.v||1===e.v?e.recoveryParam=e.v:e.recoveryParam=1-e.v%2;else if(null==e.v)e.v=27+e.recoveryParam;else{let r=0===e.v||1===e.v?e.v:1-e.v%2;e.recoveryParam!==r&&h.throwArgumentError("signature recoveryParam mismatch v","signature",t)}null!=e.r&&y(e.r)?e.r=E(e.r,32):h.throwArgumentError("signature missing or invalid r","signature",t),null!=e.s&&y(e.s)?e.s=E(e.s,32):h.throwArgumentError("signature missing or invalid s","signature",t);let r=g(e.s);r[0]>=128&&h.throwArgumentError("signature s out of range","signature",t),e.recoveryParam&&(r[0]|=128);let n=w(r);e._vs&&(y(e._vs)||h.throwArgumentError("signature invalid _vs","signature",t),e._vs=E(e._vs,32)),null==e._vs?e._vs=n:e._vs!==n&&h.throwArgumentError("signature _vs mismatch v and s","signature",t)}return e.yParityAndS=e._vs,e.compact=e.r+e.yParityAndS.substring(2),e}({recoveryParam:n.recoveryParam,r:E("0x"+n.r.toString(16),32),s:E("0x"+n.s.toString(16),32)})}computeSharedSecret(t){let e=tF().keyFromPrivate(g(this.privateKey)),r=tF().keyFromPublic(g(tL(t)));return E("0x"+e.derive(r.getPublic()).toString(16),32)}static isSigningKey(t){return!!(t&&t._isSigningKey)}}function tL(t,e){let r=g(t);if(32===r.length){let t=new tB(r);return e?"0x"+tF().keyFromPrivate(r).getPublic(!0,"hex"):t.publicKey}return 33===r.length?e?w(r):"0x"+tF().keyFromPublic(r).getPublic(!1,"hex"):65===r.length?e?"0x"+tF().keyFromPublic(r).getPublic(!0,"hex"):w(r):tx.throwArgumentError("invalid public or private key","key","[REDACTED]")}var tD=r(43182),tU=r.n(tD);function tG(t){return"0x"+tU().keccak_256(g(t))}let tz=new l("address/5.7.0");function tJ(t){y(t,20)||tz.throwArgumentError("invalid address","address",t);let e=(t=t.toLowerCase()).substring(2).split(""),r=new Uint8Array(40);for(let t=0;t<40;t++)r[t]=e[t].charCodeAt(0);let n=g(tG(r));for(let t=0;t<40;t+=2)n[t>>1]>>4>=8&&(e[t]=e[t].toUpperCase()),(15&n[t>>1])>=8&&(e[t+1]=e[t+1].toUpperCase());return"0x"+e.join("")}let tj={};for(let t=0;t<10;t++)tj[String(t)]=String(t);for(let t=0;t<26;t++)tj[String.fromCharCode(65+t)]=String(10+t);let tH=Math.floor(Math.log10?Math.log10(9007199254740991):Math.log(9007199254740991)/Math.LN10);new l("transactions/5.7.0"),(C=L||(L={}))[C.legacy=0]="legacy",C[C.eip2930=1]="eip2930",C[C.eip1559=2]="eip1559";let tV=new l("wordlists/5.7.0");class tX{constructor(t){tV.checkAbstract(new.target,tX),A(this,"locale",t)}split(t){return t.toLowerCase().split(/ +/g)}join(t){return t.join(" ")}static check(t){let e=[];for(let r=0;r<2048;r++){let n=t.getWord(r);if(r!==t.getWordIndex(n))return"0x";e.push(n)}return tG(Y(e.join("\n")+"\n"))}static register(t,e){e||(e=t.locale)}}let tq=null;function tZ(t){if(null==tq&&(tq="AbandonAbilityAbleAboutAboveAbsentAbsorbAbstractAbsurdAbuseAccessAccidentAccountAccuseAchieveAcidAcousticAcquireAcrossActActionActorActressActualAdaptAddAddictAddressAdjustAdmitAdultAdvanceAdviceAerobicAffairAffordAfraidAgainAgeAgentAgreeAheadAimAirAirportAisleAlarmAlbumAlcoholAlertAlienAllAlleyAllowAlmostAloneAlphaAlreadyAlsoAlterAlwaysAmateurAmazingAmongAmountAmusedAnalystAnchorAncientAngerAngleAngryAnimalAnkleAnnounceAnnualAnotherAnswerAntennaAntiqueAnxietyAnyApartApologyAppearAppleApproveAprilArchArcticAreaArenaArgueArmArmedArmorArmyAroundArrangeArrestArriveArrowArtArtefactArtistArtworkAskAspectAssaultAssetAssistAssumeAsthmaAthleteAtomAttackAttendAttitudeAttractAuctionAuditAugustAuntAuthorAutoAutumnAverageAvocadoAvoidAwakeAwareAwayAwesomeAwfulAwkwardAxisBabyBachelorBaconBadgeBagBalanceBalconyBallBambooBananaBannerBarBarelyBargainBarrelBaseBasicBasketBattleBeachBeanBeautyBecauseBecomeBeefBeforeBeginBehaveBehindBelieveBelowBeltBenchBenefitBestBetrayBetterBetweenBeyondBicycleBidBikeBindBiologyBirdBirthBitterBlackBladeBlameBlanketBlastBleakBlessBlindBloodBlossomBlouseBlueBlurBlushBoardBoatBodyBoilBombBoneBonusBookBoostBorderBoringBorrowBossBottomBounceBoxBoyBracketBrainBrandBrassBraveBreadBreezeBrickBridgeBriefBrightBringBriskBroccoliBrokenBronzeBroomBrotherBrownBrushBubbleBuddyBudgetBuffaloBuildBulbBulkBulletBundleBunkerBurdenBurgerBurstBusBusinessBusyButterBuyerBuzzCabbageCabinCableCactusCageCakeCallCalmCameraCampCanCanalCancelCandyCannonCanoeCanvasCanyonCapableCapitalCaptainCarCarbonCardCargoCarpetCarryCartCaseCashCasinoCastleCasualCatCatalogCatchCategoryCattleCaughtCauseCautionCaveCeilingCeleryCementCensusCenturyCerealCertainChairChalkChampionChangeChaosChapterChargeChaseChatCheapCheckCheeseChefCherryChestChickenChiefChildChimneyChoiceChooseChronicChuckleChunkChurnCigarCinnamonCircleCitizenCityCivilClaimClapClarifyClawClayCleanClerkCleverClickClientCliffClimbClinicClipClockClogCloseClothCloudClownClubClumpClusterClutchCoachCoastCoconutCodeCoffeeCoilCoinCollectColorColumnCombineComeComfortComicCommonCompanyConcertConductConfirmCongressConnectConsiderControlConvinceCookCoolCopperCopyCoralCoreCornCorrectCostCottonCouchCountryCoupleCourseCousinCoverCoyoteCrackCradleCraftCramCraneCrashCraterCrawlCrazyCreamCreditCreekCrewCricketCrimeCrispCriticCropCrossCrouchCrowdCrucialCruelCruiseCrumbleCrunchCrushCryCrystalCubeCultureCupCupboardCuriousCurrentCurtainCurveCushionCustomCuteCycleDadDamageDampDanceDangerDaringDashDaughterDawnDayDealDebateDebrisDecadeDecemberDecideDeclineDecorateDecreaseDeerDefenseDefineDefyDegreeDelayDeliverDemandDemiseDenialDentistDenyDepartDependDepositDepthDeputyDeriveDescribeDesertDesignDeskDespairDestroyDetailDetectDevelopDeviceDevoteDiagramDialDiamondDiaryDiceDieselDietDifferDigitalDignityDilemmaDinnerDinosaurDirectDirtDisagreeDiscoverDiseaseDishDismissDisorderDisplayDistanceDivertDivideDivorceDizzyDoctorDocumentDogDollDolphinDomainDonateDonkeyDonorDoorDoseDoubleDoveDraftDragonDramaDrasticDrawDreamDressDriftDrillDrinkDripDriveDropDrumDryDuckDumbDuneDuringDustDutchDutyDwarfDynamicEagerEagleEarlyEarnEarthEasilyEastEasyEchoEcologyEconomyEdgeEditEducateEffortEggEightEitherElbowElderElectricElegantElementElephantElevatorEliteElseEmbarkEmbodyEmbraceEmergeEmotionEmployEmpowerEmptyEnableEnactEndEndlessEndorseEnemyEnergyEnforceEngageEngineEnhanceEnjoyEnlistEnoughEnrichEnrollEnsureEnterEntireEntryEnvelopeEpisodeEqualEquipEraEraseErodeErosionErrorEruptEscapeEssayEssenceEstateEternalEthicsEvidenceEvilEvokeEvolveExactExampleExcessExchangeExciteExcludeExcuseExecuteExerciseExhaustExhibitExileExistExitExoticExpandExpectExpireExplainExposeExpressExtendExtraEyeEyebrowFabricFaceFacultyFadeFaintFaithFallFalseFameFamilyFamousFanFancyFantasyFarmFashionFatFatalFatherFatigueFaultFavoriteFeatureFebruaryFederalFeeFeedFeelFemaleFenceFestivalFetchFeverFewFiberFictionFieldFigureFileFilmFilterFinalFindFineFingerFinishFireFirmFirstFiscalFishFitFitnessFixFlagFlameFlashFlatFlavorFleeFlightFlipFloatFlockFloorFlowerFluidFlushFlyFoamFocusFogFoilFoldFollowFoodFootForceForestForgetForkFortuneForumForwardFossilFosterFoundFoxFragileFrameFrequentFreshFriendFringeFrogFrontFrostFrownFrozenFruitFuelFunFunnyFurnaceFuryFutureGadgetGainGalaxyGalleryGameGapGarageGarbageGardenGarlicGarmentGasGaspGateGatherGaugeGazeGeneralGeniusGenreGentleGenuineGestureGhostGiantGiftGiggleGingerGiraffeGirlGiveGladGlanceGlareGlassGlideGlimpseGlobeGloomGloryGloveGlowGlueGoatGoddessGoldGoodGooseGorillaGospelGossipGovernGownGrabGraceGrainGrantGrapeGrassGravityGreatGreenGridGriefGritGroceryGroupGrowGruntGuardGuessGuideGuiltGuitarGunGymHabitHairHalfHammerHamsterHandHappyHarborHardHarshHarvestHatHaveHawkHazardHeadHealthHeartHeavyHedgehogHeightHelloHelmetHelpHenHeroHiddenHighHillHintHipHireHistoryHobbyHockeyHoldHoleHolidayHollowHomeHoneyHoodHopeHornHorrorHorseHospitalHostHotelHourHoverHubHugeHumanHumbleHumorHundredHungryHuntHurdleHurryHurtHusbandHybridIceIconIdeaIdentifyIdleIgnoreIllIllegalIllnessImageImitateImmenseImmuneImpactImposeImproveImpulseInchIncludeIncomeIncreaseIndexIndicateIndoorIndustryInfantInflictInformInhaleInheritInitialInjectInjuryInmateInnerInnocentInputInquiryInsaneInsectInsideInspireInstallIntactInterestIntoInvestInviteInvolveIronIslandIsolateIssueItemIvoryJacketJaguarJarJazzJealousJeansJellyJewelJobJoinJokeJourneyJoyJudgeJuiceJumpJungleJuniorJunkJustKangarooKeenKeepKetchupKeyKickKidKidneyKindKingdomKissKitKitchenKiteKittenKiwiKneeKnifeKnockKnowLabLabelLaborLadderLadyLakeLampLanguageLaptopLargeLaterLatinLaughLaundryLavaLawLawnLawsuitLayerLazyLeaderLeafLearnLeaveLectureLeftLegLegalLegendLeisureLemonLendLengthLensLeopardLessonLetterLevelLiarLibertyLibraryLicenseLifeLiftLightLikeLimbLimitLinkLionLiquidListLittleLiveLizardLoadLoanLobsterLocalLockLogicLonelyLongLoopLotteryLoudLoungeLoveLoyalLuckyLuggageLumberLunarLunchLuxuryLyricsMachineMadMagicMagnetMaidMailMainMajorMakeMammalManManageMandateMangoMansionManualMapleMarbleMarchMarginMarineMarketMarriageMaskMassMasterMatchMaterialMathMatrixMatterMaximumMazeMeadowMeanMeasureMeatMechanicMedalMediaMelodyMeltMemberMemoryMentionMenuMercyMergeMeritMerryMeshMessageMetalMethodMiddleMidnightMilkMillionMimicMindMinimumMinorMinuteMiracleMirrorMiseryMissMistakeMixMixedMixtureMobileModelModifyMomMomentMonitorMonkeyMonsterMonthMoonMoralMoreMorningMosquitoMotherMotionMotorMountainMouseMoveMovieMuchMuffinMuleMultiplyMuscleMuseumMushroomMusicMustMutualMyselfMysteryMythNaiveNameNapkinNarrowNastyNationNatureNearNeckNeedNegativeNeglectNeitherNephewNerveNestNetNetworkNeutralNeverNewsNextNiceNightNobleNoiseNomineeNoodleNormalNorthNoseNotableNoteNothingNoticeNovelNowNuclearNumberNurseNutOakObeyObjectObligeObscureObserveObtainObviousOccurOceanOctoberOdorOffOfferOfficeOftenOilOkayOldOliveOlympicOmitOnceOneOnionOnlineOnlyOpenOperaOpinionOpposeOptionOrangeOrbitOrchardOrderOrdinaryOrganOrientOriginalOrphanOstrichOtherOutdoorOuterOutputOutsideOvalOvenOverOwnOwnerOxygenOysterOzonePactPaddlePagePairPalacePalmPandaPanelPanicPantherPaperParadeParentParkParrotPartyPassPatchPathPatientPatrolPatternPausePavePaymentPeacePeanutPearPeasantPelicanPenPenaltyPencilPeoplePepperPerfectPermitPersonPetPhonePhotoPhrasePhysicalPianoPicnicPicturePiecePigPigeonPillPilotPinkPioneerPipePistolPitchPizzaPlacePlanetPlasticPlatePlayPleasePledgePluckPlugPlungePoemPoetPointPolarPolePolicePondPonyPoolPopularPortionPositionPossiblePostPotatoPotteryPovertyPowderPowerPracticePraisePredictPreferPreparePresentPrettyPreventPricePridePrimaryPrintPriorityPrisonPrivatePrizeProblemProcessProduceProfitProgramProjectPromoteProofPropertyProsperProtectProudProvidePublicPuddingPullPulpPulsePumpkinPunchPupilPuppyPurchasePurityPurposePursePushPutPuzzlePyramidQualityQuantumQuarterQuestionQuickQuitQuizQuoteRabbitRaccoonRaceRackRadarRadioRailRainRaiseRallyRampRanchRandomRangeRapidRareRateRatherRavenRawRazorReadyRealReasonRebelRebuildRecallReceiveRecipeRecordRecycleReduceReflectReformRefuseRegionRegretRegularRejectRelaxReleaseReliefRelyRemainRememberRemindRemoveRenderRenewRentReopenRepairRepeatReplaceReportRequireRescueResembleResistResourceResponseResultRetireRetreatReturnReunionRevealReviewRewardRhythmRibRibbonRiceRichRideRidgeRifleRightRigidRingRiotRippleRiskRitualRivalRiverRoadRoastRobotRobustRocketRomanceRoofRookieRoomRoseRotateRoughRoundRouteRoyalRubberRudeRugRuleRunRunwayRuralSadSaddleSadnessSafeSailSaladSalmonSalonSaltSaluteSameSampleSandSatisfySatoshiSauceSausageSaveSayScaleScanScareScatterSceneSchemeSchoolScienceScissorsScorpionScoutScrapScreenScriptScrubSeaSearchSeasonSeatSecondSecretSectionSecuritySeedSeekSegmentSelectSellSeminarSeniorSenseSentenceSeriesServiceSessionSettleSetupSevenShadowShaftShallowShareShedShellSheriffShieldShiftShineShipShiverShockShoeShootShopShortShoulderShoveShrimpShrugShuffleShySiblingSickSideSiegeSightSignSilentSilkSillySilverSimilarSimpleSinceSingSirenSisterSituateSixSizeSkateSketchSkiSkillSkinSkirtSkullSlabSlamSleepSlenderSliceSlideSlightSlimSloganSlotSlowSlushSmallSmartSmileSmokeSmoothSnackSnakeSnapSniffSnowSoapSoccerSocialSockSodaSoftSolarSoldierSolidSolutionSolveSomeoneSongSoonSorrySortSoulSoundSoupSourceSouthSpaceSpareSpatialSpawnSpeakSpecialSpeedSpellSpendSphereSpiceSpiderSpikeSpinSpiritSplitSpoilSponsorSpoonSportSpotSpraySpreadSpringSpySquareSqueezeSquirrelStableStadiumStaffStageStairsStampStandStartStateStaySteakSteelStemStepStereoStickStillStingStockStomachStoneStoolStoryStoveStrategyStreetStrikeStrongStruggleStudentStuffStumbleStyleSubjectSubmitSubwaySuccessSuchSuddenSufferSugarSuggestSuitSummerSunSunnySunsetSuperSupplySupremeSureSurfaceSurgeSurpriseSurroundSurveySuspectSustainSwallowSwampSwapSwarmSwearSweetSwiftSwimSwingSwitchSwordSymbolSymptomSyrupSystemTableTackleTagTailTalentTalkTankTapeTargetTaskTasteTattooTaxiTeachTeamTellTenTenantTennisTentTermTestTextThankThatThemeThenTheoryThereTheyThingThisThoughtThreeThriveThrowThumbThunderTicketTideTigerTiltTimberTimeTinyTipTiredTissueTitleToastTobaccoTodayToddlerToeTogetherToiletTokenTomatoTomorrowToneTongueTonightToolToothTopTopicToppleTorchTornadoTortoiseTossTotalTouristTowardTowerTownToyTrackTradeTrafficTragicTrainTransferTrapTrashTravelTrayTreatTreeTrendTrialTribeTrickTriggerTrimTripTrophyTroubleTruckTrueTrulyTrumpetTrustTruthTryTubeTuitionTumbleTunaTunnelTurkeyTurnTurtleTwelveTwentyTwiceTwinTwistTwoTypeTypicalUglyUmbrellaUnableUnawareUncleUncoverUnderUndoUnfairUnfoldUnhappyUniformUniqueUnitUniverseUnknownUnlockUntilUnusualUnveilUpdateUpgradeUpholdUponUpperUpsetUrbanUrgeUsageUseUsedUsefulUselessUsualUtilityVacantVacuumVagueValidValleyValveVanVanishVaporVariousVastVaultVehicleVelvetVendorVentureVenueVerbVerifyVersionVeryVesselVeteranViableVibrantViciousVictoryVideoViewVillageVintageViolinVirtualVirusVisaVisitVisualVitalVividVocalVoiceVoidVolcanoVolumeVoteVoyageWageWagonWaitWalkWallWalnutWantWarfareWarmWarriorWashWaspWasteWaterWaveWayWealthWeaponWearWeaselWeatherWebWeddingWeekendWeirdWelcomeWestWetWhaleWhatWheatWheelWhenWhereWhipWhisperWideWidthWifeWildWillWinWindowWineWingWinkWinnerWinterWireWisdomWiseWishWitnessWolfWomanWonderWoodWoolWordWorkWorldWorryWorthWrapWreckWrestleWristWriteWrongYardYearYellowYouYoungYouthZebraZeroZoneZoo".replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),"0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60"!==tX.check(t)))throw tq=null,Error("BIP39 Wordlist for en (English) FAILED")}class tK extends tX{constructor(){super("en")}getWord(t){return tZ(this),tq[t]}getWordIndex(t){return tZ(this),tq.indexOf(t)}}let tW=new tK;tX.register(tW);let tY={en:tW},tQ=new l("hdnode/5.4.0"),t$=H.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),t0=Y("Bitcoin seed");function t1(t){return(1<<t)-1<<8-t}function t6(t){return E(w(t),32)}function t5(t){return _.encode(b([t,M(te(te(t)),0,4)]))}function t2(t){if(null==t)return tY.en;if("string"==typeof t){let e=tY[t];return null==e&&tQ.throwArgumentError("unknown locale","wordlist",t),e}return t}let t8={},t3="m/44'/60'/0'/0/0";class t4{constructor(t,e,r,n,i,f,o,a){var s;if(tQ.checkNew(new.target,t4),t!==t8)throw Error("HDNode constructor cannot be called directly");if(e){let t=new tB(e);A(this,"privateKey",t.privateKey),A(this,"publicKey",t.compressedPublicKey)}else A(this,"privateKey",null),A(this,"publicKey",w(r));A(this,"parentFingerprint",n),A(this,"fingerprint",M((s=te(this.publicKey),"0x"+$().ripemd160().update(g(s)).digest("hex")),0,4)),A(this,"address",function(t){let e=null;if("string"!=typeof t&&tz.throwArgumentError("invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==t.substring(0,2)&&(t="0x"+t),e=tJ(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&tz.throwArgumentError("bad address checksum","address",t);else if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(t.substring(2,4)!==function(t){let e=(t=(t=t.toUpperCase()).substring(4)+t.substring(0,2)+"00").split("").map(t=>tj[t]).join("");for(;e.length>=tH;){let t=e.substring(0,tH);e=parseInt(t,10)%97+e.substring(t.length)}let r=String(98-parseInt(e,10)%97);for(;r.length<2;)r="0"+r;return r}(t)&&tz.throwArgumentError("bad icap checksum","address",t),e=new G(t.substring(4),36).toString(16);e.length<40;)e="0"+e;e=tJ("0x"+e)}else tz.throwArgumentError("invalid address","address",t);return e}(M(tG(M(tL(this.publicKey),1)),12))),A(this,"chainCode",i),A(this,"index",f),A(this,"depth",o),null==a?(A(this,"mnemonic",null),A(this,"path",null)):"string"==typeof a?(A(this,"mnemonic",null),A(this,"path",a)):(A(this,"mnemonic",a),A(this,"path",a.path))}get extendedKey(){if(this.depth>=256)throw Error("Depth too large!");return t5(b([null!=this.privateKey?"0x0488ADE4":"0x0488B21E",w(this.depth),this.parentFingerprint,E(w(this.index),4),this.chainCode,null!=this.privateKey?b(["0x00",this.privateKey]):this.publicKey]))}neuter(){return new t4(t8,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)}_derive(t){if(t>4294967295)throw Error("invalid index - "+String(t));let e=this.path;e&&(e+="/"+(2147483647&t));let r=new Uint8Array(37);if(2147483648&t){if(!this.privateKey)throw Error("cannot derive child of neutered node");r.set(g(this.privateKey),1),e&&(e+="'")}else r.set(g(this.publicKey));for(let e=24;e>=0;e-=8)r[33+(e>>3)]=t>>24-e&255;let n=g(tr(B.sha512,this.chainCode,r)),i=n.slice(0,32),f=n.slice(32),o=null,a=null;this.privateKey?o=t6(H.from(i).add(this.privateKey).mod(t$)):a=new tB(w(i))._addPoint(this.publicKey);let s=e,u=this.mnemonic;return u&&(s=Object.freeze({phrase:u.phrase,path:e,locale:u.locale||"en"})),new t4(t8,o,a,this.fingerprint,t6(f),t,this.depth+1,s)}derivePath(t){let e=t.split("/");if(0===e.length||"m"===e[0]&&0!==this.depth)throw Error("invalid path - "+t);"m"===e[0]&&e.shift();let r=this;for(let t=0;t<e.length;t++){let n=e[t];if(n.match(/^[0-9]+'$/)){let t=parseInt(n.substring(0,n.length-1));if(t>=2147483648)throw Error("invalid path index - "+n);r=r._derive(2147483648+t)}else if(n.match(/^[0-9]+$/)){let t=parseInt(n);if(t>=2147483648)throw Error("invalid path index - "+n);r=r._derive(t)}else throw Error("invalid path component - "+n)}return r}static _fromSeed(t,e){let r=g(t);if(r.length<16||r.length>64)throw Error("invalid seed");let n=g(tr(B.sha512,t0,r));return new t4(t8,t6(n.slice(0,32)),null,"0x00000000",t6(n.slice(32)),0,0,e)}static fromMnemonic(t,e,r){return r=t2(r),t=et(t7(t,r),r),t4._fromSeed(t9(t,e),{phrase:t,path:"m",locale:r.locale})}static fromSeed(t){return t4._fromSeed(t,null)}static fromExtendedKey(t){let e=_.decode(t);(82!==e.length||t5(e.slice(0,78))!==t)&&tQ.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");let r=e[4],n=w(e.slice(5,9)),i=parseInt(w(e.slice(9,13)).substring(2),16),f=w(e.slice(13,45)),o=e.slice(45,78);switch(w(e.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new t4(t8,null,w(o),n,f,i,r,null);case"0x0488ade4":case"0x04358394 ":if(0!==o[0])break;return new t4(t8,w(o.slice(1)),null,n,f,i,r,null)}return tQ.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}function t9(t,e){e||(e="");let r=Y("mnemonic"+e,k.NFKD);return function(t,e,r,n,i){let f,o,a;t=g(t),e=g(e);let s=1,u=new Uint8Array(64),l=new Uint8Array(e.length+4);l.set(e);for(let r=1;r<=s;r++){l[e.length]=r>>24&255,l[e.length+1]=r>>16&255,l[e.length+2]=r>>8&255,l[e.length+3]=255&r;let n=g(tr(i,t,l));f||(a=new Uint8Array(f=n.length),o=64-((s=Math.ceil(64/f))-1)*f),a.set(n);for(let e=1;e<2048;e++){n=g(tr(i,t,n));for(let t=0;t<f;t++)a[t]^=n[t]}let h=(r-1)*f,c=r===s?o:f;u.set(g(a).slice(0,c),h)}return w(u)}(Y(t,k.NFKD),r,0,64,"sha512")}function t7(t,e){e=t2(e),tQ.checkNormalize();let r=e.split(t);if(r.length%3!=0)throw Error("invalid mnemonic");let n=g(new Uint8Array(Math.ceil(11*r.length/8))),i=0;for(let t=0;t<r.length;t++){let f=e.getWordIndex(r[t].normalize("NFKD"));if(-1===f)throw Error("invalid mnemonic");for(let t=0;t<11;t++)f&1<<10-t&&(n[i>>3]|=1<<7-i%8),i++}let f=32*r.length/3,o=t1(r.length/3);if((g(te(n.slice(0,f/8)))[0]&o)!=(n[n.length-1]&o))throw Error("invalid checksum");return w(n.slice(0,f/8))}function et(t,e){if(e=t2(e),(t=g(t)).length%4!=0||t.length<16||t.length>32)throw Error("invalid entropy");let r=[0],n=11;for(let e=0;e<t.length;e++)n>8?(r[r.length-1]<<=8,r[r.length-1]|=t[e],n-=8):(r[r.length-1]<<=n,r[r.length-1]|=t[e]>>8-n,r.push(t[e]&(1<<8-n)-1),n+=3);let i=t.length/4,f=g(te(t))[0]&t1(i);return r[r.length-1]<<=i,r[r.length-1]|=f>>8-i,e.join(r.map(t=>e.getWord(t)))}function ee(t,e){try{return t7(t,e),!0}catch(t){}return!1}function er(t){return("number"!=typeof t||t<0||t>=2147483648||t%1)&&tQ.throwArgumentError("invalid account index","index",t),`m/44'/60'/${t}'/0/0`}},40170:function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw 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 f(t,e,r){if(f.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"))}"object"==typeof t?t.exports=f:e.BN=f,f.BN=f,f.wordSize=26;try{h="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(98282).Buffer}catch(t){}function o(t,e){var r=t.charCodeAt(e);return r>=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 a(t,e,r){var n=o(t,r);return r-1>=e&&(n|=o(t,r-1)<<4),n}function s(t,e,r,i){for(var f=0,o=0,a=Math.min(t.length,r),s=e;s<a;s++){var u=t.charCodeAt(s)-48;f*=i,o=u>=49?u-49+10:u>=17?u-17+10:u,n(u>=0&&o<i,"Invalid character"),f+=o}return f}function u(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(f.isBN=function(t){return t instanceof f||null!==t&&"object"==typeof t&&t.constructor.wordSize===f.wordSize&&Array.isArray(t.words)},f.max=function(t,e){return t.cmp(e)>0?t:e},f.min=function(t,e){return 0>t.cmp(e)?t:e},f.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);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},f.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)},f.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=Array(this.length);for(var i,f,o=0;o<this.length;o++)this.words[o]=0;var a=0;if("be"===r)for(o=t.length-1,i=0;o>=0;o-=3)f=t[o]|t[o-1]<<8|t[o-2]<<16,this.words[i]|=f<<a&67108863,this.words[i+1]=f>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);else if("le"===r)for(o=0,i=0;o<t.length;o+=3)f=t[o]|t[o+1]<<8|t[o+2]<<16,this.words[i]|=f<<a&67108863,this.words[i+1]=f>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);return this._strip()},f.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=Array(this.length);for(var n,i=0;i<this.length;i++)this.words[i]=0;var f=0,o=0;if("be"===r)for(i=t.length-1;i>=e;i-=2)n=a(t,e,i)<<f,this.words[o]|=67108863&n,f>=18?(f-=18,o+=1,this.words[o]|=n>>>26):f+=8;else for(i=(t.length-e)%2==0?e+1:e;i<t.length;i+=2)n=a(t,e,i)<<f,this.words[o]|=67108863&n,f>=18?(f-=18,o+=1,this.words[o]|=n>>>26):f+=8;this._strip()},f.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 f=t.length-r,o=f%n,a=Math.min(f,f-o)+r,u=0,l=r;l<a;l+=n)u=s(t,l,l+n,e),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==o){var h=1;for(u=s(t,l,t.length,e),l=0;l<o;l++)h*=e;this.imuln(h),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this._strip()},f.prototype.copy=function(t){t.words=Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},f.prototype._move=function(t){u(t,this)},f.prototype.clone=function(){var t=new f(null);return this.copy(t),t},f.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},f.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},f.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{f.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(t){f.prototype.inspect=l}else f.prototype.inspect=l;function l(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var h,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"],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];function m(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],f=0|e.words[0],o=i*f,a=67108863&o,s=o/67108864|0;r.words[0]=a;for(var u=1;u<n;u++){for(var l=s>>>26,h=67108863&s,c=Math.min(u,e.length-1),d=Math.max(0,u-t.length+1);d<=c;d++){var p=u-d|0;l+=(o=(i=0|t.words[p])*(f=0|e.words[d])+h)/67108864|0,h=67108863&o}r.words[u]=0|h,s=0|l}return 0!==s?r.words[u]=0|s:r.length--,r._strip()}f.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var r,i=0,f=0,o=0;o<this.length;o++){var a=this.words[o],s=((a<<i|f)&16777215).toString(16);f=a>>>24-i&16777215,(i+=2)>=26&&(i-=26,o--),r=0!==f||o!==this.length-1?c[6-s.length]+s+r:s+r}for(0!==f&&(r=f.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var u=d[t],l=p[t];r="";var h=this.clone();for(h.negative=0;!h.isZero();){var m=h.modrn(l).toString(t);r=(h=h.idivn(l)).isZero()?m+r:c[u-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},f.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},f.prototype.toJSON=function(){return this.toString(16,2)},h&&(f.prototype.toBuffer=function(t,e){return this.toArrayLike(h,t,e)}),f.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},f.prototype.toArrayLike=function(t,e,r){this._strip();var i=this.byteLength(),f=r||Math.max(1,i);n(i<=f,"byte array longer than desired length"),n(f>0,"Requested array length <= 0");var o=t.allocUnsafe?t.allocUnsafe(f):new t(f);return this["_toArrayLike"+("le"===e?"LE":"BE")](o,i),o},f.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,i=0,f=0;i<this.length;i++){var o=this.words[i]<<f|n;t[r++]=255&o,r<t.length&&(t[r++]=o>>8&255),r<t.length&&(t[r++]=o>>16&255),6===f?(r<t.length&&(t[r++]=o>>24&255),n=0,f=0):(n=o>>>24,f+=2)}if(r<t.length)for(t[r++]=n;r<t.length;)t[r++]=0},f.prototype._toArrayLikeBE=function(t,e){for(var r=t.length-1,n=0,i=0,f=0;i<this.length;i++){var o=this.words[i]<<f|n;t[r--]=255&o,r>=0&&(t[r--]=o>>8&255),r>=0&&(t[r--]=o>>16&255),6===f?(r>=0&&(t[r--]=o>>24&255),n=0,f=0):(n=o>>>24,f+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?f.prototype._countBits=function(t){return 32-Math.clz32(t)}:f.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},f.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return(8191&e)==0&&(r+=13,e>>>=13),(127&e)==0&&(r+=7,e>>>=7),(15&e)==0&&(r+=4,e>>>=4),(3&e)==0&&(r+=2,e>>>=2),(1&e)==0&&r++,r},f.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return(this.length-1)*26+e},f.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},f.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},f.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},f.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},f.prototype.isNeg=function(){return 0!==this.negative},f.prototype.neg=function(){return this.clone().ineg()},f.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},f.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},f.prototype.ior=function(t){return n((this.negative|t.negative)==0),this.iuor(t)},f.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},f.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},f.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this._strip()},f.prototype.iand=function(t){return n((this.negative|t.negative)==0),this.iuand(t)},f.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},f.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},f.prototype.iuxor=function(t){this.length>t.length?(e=this,r=t):(e=t,r=this);for(var e,r,n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this._strip()},f.prototype.ixor=function(t){return n((this.negative|t.negative)==0),this.iuxor(t)},f.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},f.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},f.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;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},f.prototype.notn=function(t){return this.clone().inotn(t)},f.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),e?this.words[r]=this.words[r]|1<<i:this.words[r]=this.words[r]&~(1<<i),this._strip()},f.prototype.iadd=function(t){if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var e,r,n,i=0,f=0;f<n.length;f++)e=(0|r.words[f])+(0|n.words[f])+i,this.words[f]=67108863&e,i=e>>>26;for(;0!==i&&f<r.length;f++)e=(0|r.words[f])+i,this.words[f]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;f<r.length;f++)this.words[f]=r.words[f];return this},f.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},f.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e,r,n=this.iadd(t);return t.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(e=this,r=t):(e=t,r=this);for(var f=0,o=0;o<r.length;o++)f=(n=(0|e.words[o])-(0|r.words[o])+f)>>26,this.words[o]=67108863&n;for(;0!==f&&o<e.length;o++)f=(n=(0|e.words[o])+f)>>26,this.words[o]=67108863&n;if(0===f&&o<e.length&&e!==this)for(;o<e.length;o++)this.words[o]=e.words[o];return this.length=Math.max(this.length,o),e!==this&&(this.negative=1),this._strip()},f.prototype.sub=function(t){return this.clone().isub(t)};var g=function(t,e,r){var n,i,f,o=t.words,a=e.words,s=r.words,u=0,l=0|o[0],h=8191&l,c=l>>>13,d=0|o[1],p=8191&d,m=d>>>13,g=0|o[2],b=8191&g,y=g>>>13,v=0|o[3],w=8191&v,M=v>>>13,E=0|o[4],A=8191&E,S=E>>>13,_=0|o[5],N=8191&_,T=_>>>13,R=0|o[6],C=8191&R,I=R>>>13,P=0|o[7],O=8191&P,x=P>>>13,k=0|o[8],F=8191&k,B=k>>>13,L=0|o[9],D=8191&L,U=L>>>13,G=0|a[0],z=8191&G,J=G>>>13,j=0|a[1],H=8191&j,V=j>>>13,X=0|a[2],q=8191&X,Z=X>>>13,K=0|a[3],W=8191&K,Y=K>>>13,Q=0|a[4],$=8191&Q,tt=Q>>>13,te=0|a[5],tr=8191&te,tn=te>>>13,ti=0|a[6],tf=8191&ti,to=ti>>>13,ta=0|a[7],ts=8191&ta,tu=ta>>>13,tl=0|a[8],th=8191&tl,tc=tl>>>13,td=0|a[9],tp=8191&td,tm=td>>>13;r.negative=t.negative^e.negative,r.length=19;var tg=(u+(n=Math.imul(h,z))|0)+((8191&(i=(i=Math.imul(h,J))+Math.imul(c,z)|0))<<13)|0;u=((f=Math.imul(c,J))+(i>>>13)|0)+(tg>>>26)|0,tg&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,J))+Math.imul(m,z)|0,f=Math.imul(m,J);var tb=(u+(n=n+Math.imul(h,H)|0)|0)+((8191&(i=(i=i+Math.imul(h,V)|0)+Math.imul(c,H)|0))<<13)|0;u=((f=f+Math.imul(c,V)|0)+(i>>>13)|0)+(tb>>>26)|0,tb&=67108863,n=Math.imul(b,z),i=(i=Math.imul(b,J))+Math.imul(y,z)|0,f=Math.imul(y,J),n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,H)|0,f=f+Math.imul(m,V)|0;var ty=(u+(n=n+Math.imul(h,q)|0)|0)+((8191&(i=(i=i+Math.imul(h,Z)|0)+Math.imul(c,q)|0))<<13)|0;u=((f=f+Math.imul(c,Z)|0)+(i>>>13)|0)+(ty>>>26)|0,ty&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,J))+Math.imul(M,z)|0,f=Math.imul(M,J),n=n+Math.imul(b,H)|0,i=(i=i+Math.imul(b,V)|0)+Math.imul(y,H)|0,f=f+Math.imul(y,V)|0,n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,q)|0,f=f+Math.imul(m,Z)|0;var tv=(u+(n=n+Math.imul(h,W)|0)|0)+((8191&(i=(i=i+Math.imul(h,Y)|0)+Math.imul(c,W)|0))<<13)|0;u=((f=f+Math.imul(c,Y)|0)+(i>>>13)|0)+(tv>>>26)|0,tv&=67108863,n=Math.imul(A,z),i=(i=Math.imul(A,J))+Math.imul(S,z)|0,f=Math.imul(S,J),n=n+Math.imul(w,H)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(M,H)|0,f=f+Math.imul(M,V)|0,n=n+Math.imul(b,q)|0,i=(i=i+Math.imul(b,Z)|0)+Math.imul(y,q)|0,f=f+Math.imul(y,Z)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,W)|0,f=f+Math.imul(m,Y)|0;var tw=(u+(n=n+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(c,$)|0))<<13)|0;u=((f=f+Math.imul(c,tt)|0)+(i>>>13)|0)+(tw>>>26)|0,tw&=67108863,n=Math.imul(N,z),i=(i=Math.imul(N,J))+Math.imul(T,z)|0,f=Math.imul(T,J),n=n+Math.imul(A,H)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(S,H)|0,f=f+Math.imul(S,V)|0,n=n+Math.imul(w,q)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(M,q)|0,f=f+Math.imul(M,Z)|0,n=n+Math.imul(b,W)|0,i=(i=i+Math.imul(b,Y)|0)+Math.imul(y,W)|0,f=f+Math.imul(y,Y)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,$)|0,f=f+Math.imul(m,tt)|0;var tM=(u+(n=n+Math.imul(h,tr)|0)|0)+((8191&(i=(i=i+Math.imul(h,tn)|0)+Math.imul(c,tr)|0))<<13)|0;u=((f=f+Math.imul(c,tn)|0)+(i>>>13)|0)+(tM>>>26)|0,tM&=67108863,n=Math.imul(C,z),i=(i=Math.imul(C,J))+Math.imul(I,z)|0,f=Math.imul(I,J),n=n+Math.imul(N,H)|0,i=(i=i+Math.imul(N,V)|0)+Math.imul(T,H)|0,f=f+Math.imul(T,V)|0,n=n+Math.imul(A,q)|0,i=(i=i+Math.imul(A,Z)|0)+Math.imul(S,q)|0,f=f+Math.imul(S,Z)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(M,W)|0,f=f+Math.imul(M,Y)|0,n=n+Math.imul(b,$)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(y,$)|0,f=f+Math.imul(y,tt)|0,n=n+Math.imul(p,tr)|0,i=(i=i+Math.imul(p,tn)|0)+Math.imul(m,tr)|0,f=f+Math.imul(m,tn)|0;var tE=(u+(n=n+Math.imul(h,tf)|0)|0)+((8191&(i=(i=i+Math.imul(h,to)|0)+Math.imul(c,tf)|0))<<13)|0;u=((f=f+Math.imul(c,to)|0)+(i>>>13)|0)+(tE>>>26)|0,tE&=67108863,n=Math.imul(O,z),i=(i=Math.imul(O,J))+Math.imul(x,z)|0,f=Math.imul(x,J),n=n+Math.imul(C,H)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(I,H)|0,f=f+Math.imul(I,V)|0,n=n+Math.imul(N,q)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(T,q)|0,f=f+Math.imul(T,Z)|0,n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(S,W)|0,f=f+Math.imul(S,Y)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(M,$)|0,f=f+Math.imul(M,tt)|0,n=n+Math.imul(b,tr)|0,i=(i=i+Math.imul(b,tn)|0)+Math.imul(y,tr)|0,f=f+Math.imul(y,tn)|0,n=n+Math.imul(p,tf)|0,i=(i=i+Math.imul(p,to)|0)+Math.imul(m,tf)|0,f=f+Math.imul(m,to)|0;var tA=(u+(n=n+Math.imul(h,ts)|0)|0)+((8191&(i=(i=i+Math.imul(h,tu)|0)+Math.imul(c,ts)|0))<<13)|0;u=((f=f+Math.imul(c,tu)|0)+(i>>>13)|0)+(tA>>>26)|0,tA&=67108863,n=Math.imul(F,z),i=(i=Math.imul(F,J))+Math.imul(B,z)|0,f=Math.imul(B,J),n=n+Math.imul(O,H)|0,i=(i=i+Math.imul(O,V)|0)+Math.imul(x,H)|0,f=f+Math.imul(x,V)|0,n=n+Math.imul(C,q)|0,i=(i=i+Math.imul(C,Z)|0)+Math.imul(I,q)|0,f=f+Math.imul(I,Z)|0,n=n+Math.imul(N,W)|0,i=(i=i+Math.imul(N,Y)|0)+Math.imul(T,W)|0,f=f+Math.imul(T,Y)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(S,$)|0,f=f+Math.imul(S,tt)|0,n=n+Math.imul(w,tr)|0,i=(i=i+Math.imul(w,tn)|0)+Math.imul(M,tr)|0,f=f+Math.imul(M,tn)|0,n=n+Math.imul(b,tf)|0,i=(i=i+Math.imul(b,to)|0)+Math.imul(y,tf)|0,f=f+Math.imul(y,to)|0,n=n+Math.imul(p,ts)|0,i=(i=i+Math.imul(p,tu)|0)+Math.imul(m,ts)|0,f=f+Math.imul(m,tu)|0;var tS=(u+(n=n+Math.imul(h,th)|0)|0)+((8191&(i=(i=i+Math.imul(h,tc)|0)+Math.imul(c,th)|0))<<13)|0;u=((f=f+Math.imul(c,tc)|0)+(i>>>13)|0)+(tS>>>26)|0,tS&=67108863,n=Math.imul(D,z),i=(i=Math.imul(D,J))+Math.imul(U,z)|0,f=Math.imul(U,J),n=n+Math.imul(F,H)|0,i=(i=i+Math.imul(F,V)|0)+Math.imul(B,H)|0,f=f+Math.imul(B,V)|0,n=n+Math.imul(O,q)|0,i=(i=i+Math.imul(O,Z)|0)+Math.imul(x,q)|0,f=f+Math.imul(x,Z)|0,n=n+Math.imul(C,W)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(I,W)|0,f=f+Math.imul(I,Y)|0,n=n+Math.imul(N,$)|0,i=(i=i+Math.imul(N,tt)|0)+Math.imul(T,$)|0,f=f+Math.imul(T,tt)|0,n=n+Math.imul(A,tr)|0,i=(i=i+Math.imul(A,tn)|0)+Math.imul(S,tr)|0,f=f+Math.imul(S,tn)|0,n=n+Math.imul(w,tf)|0,i=(i=i+Math.imul(w,to)|0)+Math.imul(M,tf)|0,f=f+Math.imul(M,to)|0,n=n+Math.imul(b,ts)|0,i=(i=i+Math.imul(b,tu)|0)+Math.imul(y,ts)|0,f=f+Math.imul(y,tu)|0,n=n+Math.imul(p,th)|0,i=(i=i+Math.imul(p,tc)|0)+Math.imul(m,th)|0,f=f+Math.imul(m,tc)|0;var t_=(u+(n=n+Math.imul(h,tp)|0)|0)+((8191&(i=(i=i+Math.imul(h,tm)|0)+Math.imul(c,tp)|0))<<13)|0;u=((f=f+Math.imul(c,tm)|0)+(i>>>13)|0)+(t_>>>26)|0,t_&=67108863,n=Math.imul(D,H),i=(i=Math.imul(D,V))+Math.imul(U,H)|0,f=Math.imul(U,V),n=n+Math.imul(F,q)|0,i=(i=i+Math.imul(F,Z)|0)+Math.imul(B,q)|0,f=f+Math.imul(B,Z)|0,n=n+Math.imul(O,W)|0,i=(i=i+Math.imul(O,Y)|0)+Math.imul(x,W)|0,f=f+Math.imul(x,Y)|0,n=n+Math.imul(C,$)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(I,$)|0,f=f+Math.imul(I,tt)|0,n=n+Math.imul(N,tr)|0,i=(i=i+Math.imul(N,tn)|0)+Math.imul(T,tr)|0,f=f+Math.imul(T,tn)|0,n=n+Math.imul(A,tf)|0,i=(i=i+Math.imul(A,to)|0)+Math.imul(S,tf)|0,f=f+Math.imul(S,to)|0,n=n+Math.imul(w,ts)|0,i=(i=i+Math.imul(w,tu)|0)+Math.imul(M,ts)|0,f=f+Math.imul(M,tu)|0,n=n+Math.imul(b,th)|0,i=(i=i+Math.imul(b,tc)|0)+Math.imul(y,th)|0,f=f+Math.imul(y,tc)|0;var tN=(u+(n=n+Math.imul(p,tp)|0)|0)+((8191&(i=(i=i+Math.imul(p,tm)|0)+Math.imul(m,tp)|0))<<13)|0;u=((f=f+Math.imul(m,tm)|0)+(i>>>13)|0)+(tN>>>26)|0,tN&=67108863,n=Math.imul(D,q),i=(i=Math.imul(D,Z))+Math.imul(U,q)|0,f=Math.imul(U,Z),n=n+Math.imul(F,W)|0,i=(i=i+Math.imul(F,Y)|0)+Math.imul(B,W)|0,f=f+Math.imul(B,Y)|0,n=n+Math.imul(O,$)|0,i=(i=i+Math.imul(O,tt)|0)+Math.imul(x,$)|0,f=f+Math.imul(x,tt)|0,n=n+Math.imul(C,tr)|0,i=(i=i+Math.imul(C,tn)|0)+Math.imul(I,tr)|0,f=f+Math.imul(I,tn)|0,n=n+Math.imul(N,tf)|0,i=(i=i+Math.imul(N,to)|0)+Math.imul(T,tf)|0,f=f+Math.imul(T,to)|0,n=n+Math.imul(A,ts)|0,i=(i=i+Math.imul(A,tu)|0)+Math.imul(S,ts)|0,f=f+Math.imul(S,tu)|0,n=n+Math.imul(w,th)|0,i=(i=i+Math.imul(w,tc)|0)+Math.imul(M,th)|0,f=f+Math.imul(M,tc)|0;var tT=(u+(n=n+Math.imul(b,tp)|0)|0)+((8191&(i=(i=i+Math.imul(b,tm)|0)+Math.imul(y,tp)|0))<<13)|0;u=((f=f+Math.imul(y,tm)|0)+(i>>>13)|0)+(tT>>>26)|0,tT&=67108863,n=Math.imul(D,W),i=(i=Math.imul(D,Y))+Math.imul(U,W)|0,f=Math.imul(U,Y),n=n+Math.imul(F,$)|0,i=(i=i+Math.imul(F,tt)|0)+Math.imul(B,$)|0,f=f+Math.imul(B,tt)|0,n=n+Math.imul(O,tr)|0,i=(i=i+Math.imul(O,tn)|0)+Math.imul(x,tr)|0,f=f+Math.imul(x,tn)|0,n=n+Math.imul(C,tf)|0,i=(i=i+Math.imul(C,to)|0)+Math.imul(I,tf)|0,f=f+Math.imul(I,to)|0,n=n+Math.imul(N,ts)|0,i=(i=i+Math.imul(N,tu)|0)+Math.imul(T,ts)|0,f=f+Math.imul(T,tu)|0,n=n+Math.imul(A,th)|0,i=(i=i+Math.imul(A,tc)|0)+Math.imul(S,th)|0,f=f+Math.imul(S,tc)|0;var tR=(u+(n=n+Math.imul(w,tp)|0)|0)+((8191&(i=(i=i+Math.imul(w,tm)|0)+Math.imul(M,tp)|0))<<13)|0;u=((f=f+Math.imul(M,tm)|0)+(i>>>13)|0)+(tR>>>26)|0,tR&=67108863,n=Math.imul(D,$),i=(i=Math.imul(D,tt))+Math.imul(U,$)|0,f=Math.imul(U,tt),n=n+Math.imul(F,tr)|0,i=(i=i+Math.imul(F,tn)|0)+Math.imul(B,tr)|0,f=f+Math.imul(B,tn)|0,n=n+Math.imul(O,tf)|0,i=(i=i+Math.imul(O,to)|0)+Math.imul(x,tf)|0,f=f+Math.imul(x,to)|0,n=n+Math.imul(C,ts)|0,i=(i=i+Math.imul(C,tu)|0)+Math.imul(I,ts)|0,f=f+Math.imul(I,tu)|0,n=n+Math.imul(N,th)|0,i=(i=i+Math.imul(N,tc)|0)+Math.imul(T,th)|0,f=f+Math.imul(T,tc)|0;var tC=(u+(n=n+Math.imul(A,tp)|0)|0)+((8191&(i=(i=i+Math.imul(A,tm)|0)+Math.imul(S,tp)|0))<<13)|0;u=((f=f+Math.imul(S,tm)|0)+(i>>>13)|0)+(tC>>>26)|0,tC&=67108863,n=Math.imul(D,tr),i=(i=Math.imul(D,tn))+Math.imul(U,tr)|0,f=Math.imul(U,tn),n=n+Math.imul(F,tf)|0,i=(i=i+Math.imul(F,to)|0)+Math.imul(B,tf)|0,f=f+Math.imul(B,to)|0,n=n+Math.imul(O,ts)|0,i=(i=i+Math.imul(O,tu)|0)+Math.imul(x,ts)|0,f=f+Math.imul(x,tu)|0,n=n+Math.imul(C,th)|0,i=(i=i+Math.imul(C,tc)|0)+Math.imul(I,th)|0,f=f+Math.imul(I,tc)|0;var tI=(u+(n=n+Math.imul(N,tp)|0)|0)+((8191&(i=(i=i+Math.imul(N,tm)|0)+Math.imul(T,tp)|0))<<13)|0;u=((f=f+Math.imul(T,tm)|0)+(i>>>13)|0)+(tI>>>26)|0,tI&=67108863,n=Math.imul(D,tf),i=(i=Math.imul(D,to))+Math.imul(U,tf)|0,f=Math.imul(U,to),n=n+Math.imul(F,ts)|0,i=(i=i+Math.imul(F,tu)|0)+Math.imul(B,ts)|0,f=f+Math.imul(B,tu)|0,n=n+Math.imul(O,th)|0,i=(i=i+Math.imul(O,tc)|0)+Math.imul(x,th)|0,f=f+Math.imul(x,tc)|0;var tP=(u+(n=n+Math.imul(C,tp)|0)|0)+((8191&(i=(i=i+Math.imul(C,tm)|0)+Math.imul(I,tp)|0))<<13)|0;u=((f=f+Math.imul(I,tm)|0)+(i>>>13)|0)+(tP>>>26)|0,tP&=67108863,n=Math.imul(D,ts),i=(i=Math.imul(D,tu))+Math.imul(U,ts)|0,f=Math.imul(U,tu),n=n+Math.imul(F,th)|0,i=(i=i+Math.imul(F,tc)|0)+Math.imul(B,th)|0,f=f+Math.imul(B,tc)|0;var tO=(u+(n=n+Math.imul(O,tp)|0)|0)+((8191&(i=(i=i+Math.imul(O,tm)|0)+Math.imul(x,tp)|0))<<13)|0;u=((f=f+Math.imul(x,tm)|0)+(i>>>13)|0)+(tO>>>26)|0,tO&=67108863,n=Math.imul(D,th),i=(i=Math.imul(D,tc))+Math.imul(U,th)|0,f=Math.imul(U,tc);var tx=(u+(n=n+Math.imul(F,tp)|0)|0)+((8191&(i=(i=i+Math.imul(F,tm)|0)+Math.imul(B,tp)|0))<<13)|0;u=((f=f+Math.imul(B,tm)|0)+(i>>>13)|0)+(tx>>>26)|0,tx&=67108863;var tk=(u+(n=Math.imul(D,tp))|0)+((8191&(i=(i=Math.imul(D,tm))+Math.imul(U,tp)|0))<<13)|0;return u=((f=Math.imul(U,tm))+(i>>>13)|0)+(tk>>>26)|0,tk&=67108863,s[0]=tg,s[1]=tb,s[2]=ty,s[3]=tv,s[4]=tw,s[5]=tM,s[6]=tE,s[7]=tA,s[8]=tS,s[9]=t_,s[10]=tN,s[11]=tT,s[12]=tR,s[13]=tC,s[14]=tI,s[15]=tP,s[16]=tO,s[17]=tx,s[18]=tk,0!==u&&(s[19]=u,r.length++),r};function b(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,f=0;f<r.length-1;f++){var o=i;i=0;for(var a=67108863&n,s=Math.min(f,e.length-1),u=Math.max(0,f-t.length+1);u<=s;u++){var l=f-u,h=(0|t.words[l])*(0|e.words[u]),c=67108863&h;o=o+(h/67108864|0)|0,a=67108863&(c=c+a|0),i+=(o=o+(c>>>26)|0)>>>26,o&=67108863}r.words[f]=a,n=o,o=i}return 0!==n?r.words[f]=n:r.length--,r._strip()}function y(t,e){this.x=t,this.y=e}Math.imul||(g=m),f.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return 10===this.length&&10===t.length?g(this,t,e):n<63?m(this,t,e):b(this,t,e)},y.prototype.makeRBT=function(t){for(var e=Array(t),r=f.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},y.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},y.prototype.permute=function(t,e,r,n,i,f){for(var o=0;o<f;o++)n[o]=e[t[o]],i[o]=r[t[o]]},y.prototype.transform=function(t,e,r,n,i,f){this.permute(f,t,e,r,n,i);for(var o=1;o<i;o<<=1)for(var a=o<<1,s=Math.cos(2*Math.PI/a),u=Math.sin(2*Math.PI/a),l=0;l<i;l+=a)for(var h=s,c=u,d=0;d<o;d++){var p=r[l+d],m=n[l+d],g=r[l+d+o],b=n[l+d+o],y=h*g-c*b;b=h*b+c*g,g=y,r[l+d]=p+g,n[l+d]=m+b,r[l+d+o]=p-g,n[l+d+o]=m-b,d!==a&&(y=s*h-u*c,c=s*c+u*h,h=y)}},y.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},y.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},y.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},y.prototype.convert13b=function(t,e,r,i){for(var f=0,o=0;o<e;o++)f+=0|t[o],r[2*o]=8191&f,f>>>=13,r[2*o+1]=8191&f,f>>>=13;for(o=2*e;o<i;++o)r[o]=0;n(0===f),n((-8192&f)==0)},y.prototype.stub=function(t){for(var e=Array(t),r=0;r<t;r++)e[r]=0;return e},y.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),f=this.stub(n),o=Array(n),a=Array(n),s=Array(n),u=Array(n),l=Array(n),h=Array(n),c=r.words;c.length=n,this.convert13b(t.words,t.length,o,n),this.convert13b(e.words,e.length,u,n),this.transform(o,f,a,s,n,i),this.transform(u,f,l,h,n,i);for(var d=0;d<n;d++){var p=a[d]*l[d]-s[d]*h[d];s[d]=a[d]*h[d]+s[d]*l[d],a[d]=p}return this.conjugate(a,s,n),this.transform(a,s,c,f,n,i),this.conjugate(c,f,n),this.normalize13b(c,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r._strip()},f.prototype.mul=function(t){var e=new f(null);return e.words=Array(this.length+t.length),this.mulTo(t,e)},f.prototype.mulf=function(t){var e=new f(null);return e.words=Array(this.length+t.length),b(this,t,e)},f.prototype.imul=function(t){return this.clone().mulTo(t,this)},f.prototype.imuln=function(t){var e=t<0;e&&(t=-t),n("number"==typeof t),n(t<67108864);for(var r=0,i=0;i<this.length;i++){var f=(0|this.words[i])*t,o=(67108863&f)+(67108863&r);r>>=26,r+=(f/67108864|0)+(o>>>26),this.words[i]=67108863&o}return 0!==r&&(this.words[i]=r,this.length++),e?this.ineg():this},f.prototype.muln=function(t){return this.clone().imuln(t)},f.prototype.sqr=function(){return this.mul(this)},f.prototype.isqr=function(){return this.imul(this.clone())},f.prototype.pow=function(t){var e=function(t){for(var e=Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=t.words[n]>>>i&1}return e}(t);if(0===e.length)return new f(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},f.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,f=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(e=0;e<this.length;e++){var a=this.words[e]&f,s=(0|this.words[e])-a<<r;this.words[e]=s|o,o=a>>>26-r}o&&(this.words[e]=o,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this._strip()},f.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},f.prototype.iushrn=function(t,e,r){n("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var i,f=t%26,o=Math.min((t-f)/26,this.length),a=67108863^67108863>>>f<<f;if(i-=o,i=Math.max(0,i),r){for(var s=0;s<o;s++)r.words[s]=this.words[s];r.length=o}if(0===o);else if(this.length>o)for(this.length-=o,s=0;s<this.length;s++)this.words[s]=this.words[s+o];else this.words[0]=0,this.length=1;var u=0;for(s=this.length-1;s>=0&&(0!==u||s>=i);s--){var l=0|this.words[s];this.words[s]=u<<26-f|l>>>f,u=l&a}return r&&0!==u&&(r.words[r.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},f.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},f.prototype.shln=function(t){return this.clone().ishln(t)},f.prototype.ushln=function(t){return this.clone().iushln(t)},f.prototype.shrn=function(t){return this.clone().ishrn(t)},f.prototype.ushrn=function(t){return this.clone().iushrn(t)},f.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;return!(this.length<=r)&&!!(this.words[r]&1<<e)},f.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;return(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)?this:(0!==e&&r++,this.length=Math.min(r,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<<e),this._strip())},f.prototype.maskn=function(t){return this.clone().imaskn(t)},f.prototype.iaddn=function(t){return(n("number"==typeof t),n(t<67108864),t<0)?this.isubn(-t):0!==this.negative?(1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(t),this.negative=1),this):this._iaddn(t)},f.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[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},f.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<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},f.prototype.addn=function(t){return this.clone().iaddn(t)},f.prototype.subn=function(t){return this.clone().isubn(t)},f.prototype.iabs=function(){return this.negative=0,this},f.prototype.abs=function(){return this.clone().iabs()},f.prototype._ishlnsubmul=function(t,e,r){var i,f,o=t.length+r;this._expand(o);var a=0;for(i=0;i<t.length;i++){f=(0|this.words[i+r])+a;var s=(0|t.words[i])*e;f-=67108863&s,a=(f>>26)-(s/67108864|0),this.words[i+r]=67108863&f}for(;i<this.length-r;i++)a=(f=(0|this.words[i+r])+a)>>26,this.words[i+r]=67108863&f;if(0===a)return this._strip();for(n(-1===a),a=0,i=0;i<this.length;i++)a=(f=-(0|this.words[i])+a)>>26,this.words[i]=67108863&f;return this.negative=1,this._strip()},f.prototype._wordDiv=function(t,e){var r,n=this.length-t.length,i=this.clone(),o=t,a=0|o.words[o.length-1];0!=(n=26-this._countBits(a))&&(o=o.ushln(n),i.iushln(n),a=0|o.words[o.length-1]);var s=i.length-o.length;if("mod"!==e){(r=new f(null)).length=s+1,r.words=Array(r.length);for(var u=0;u<r.length;u++)r.words[u]=0}var l=i.clone()._ishlnsubmul(o,1,s);0===l.negative&&(i=l,r&&(r.words[s]=1));for(var h=s-1;h>=0;h--){var c=(0|i.words[o.length+h])*67108864+(0|i.words[o.length+h-1]);for(c=Math.min(c/a|0,67108863),i._ishlnsubmul(o,c,h);0!==i.negative;)c--,i.negative=0,i._ishlnsubmul(o,1,h),i.isZero()||(i.negative^=1);r&&(r.words[h]=c)}return r&&r._strip(),i._strip(),"div"!==e&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},f.prototype.divmod=function(t,e,r){var i,o,a;return(n(!t.isZero()),this.isZero())?{div:new f(0),mod:new f(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:i,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):(this.negative&t.negative)!=0?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||0>this.cmp(t)?{div:new f(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new f(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new f(this.modrn(t.words[0]))}:this._wordDiv(t,e)},f.prototype.div=function(t){return this.divmod(t,"div",!1).div},f.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},f.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},f.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),f=r.cmp(n);return f<0||1===i&&0===f?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},f.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=67108864%t,i=0,f=this.length-1;f>=0;f--)i=(r*i+(0|this.words[f]))%t;return e?-i:i},f.prototype.modn=function(t){return this.modrn(t)},f.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 f=(0|this.words[i])+67108864*r;this.words[i]=f/t|0,r=f%t}return this._strip(),e?this.ineg():this},f.prototype.divn=function(t){return this.clone().idivn(t)},f.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();for(var i=new f(1),o=new f(0),a=new f(0),s=new f(1),u=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++u;for(var l=r.clone(),h=e.clone();!e.isZero();){for(var c=0,d=1;(e.words[0]&d)==0&&c<26;++c,d<<=1);if(c>0)for(e.iushrn(c);c-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(l),o.isub(h)),i.iushrn(1),o.iushrn(1);for(var p=0,m=1;(r.words[0]&m)==0&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||s.isOdd())&&(a.iadd(l),s.isub(h)),a.iushrn(1),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(a),o.isub(s)):(r.isub(e),a.isub(i),s.isub(o))}return{a:a,b:s,gcd:r.iushln(u)}},f.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e,r=this,i=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var o=new f(1),a=new f(0),s=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var u=0,l=1;(r.words[0]&l)==0&&u<26;++u,l<<=1);if(u>0)for(r.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);for(var h=0,c=1;(i.words[0]&c)==0&&h<26;++h,c<<=1);if(h>0)for(i.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);r.cmp(i)>=0?(r.isub(i),o.isub(a)):(i.isub(r),a.isub(o))}return 0>(e=0===r.cmpn(1)?o:a).cmpn(0)&&e.iadd(t),e},f.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);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var f=e;e=r,r=f}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},f.prototype.invm=function(t){return this.egcd(t).a.umod(t)},f.prototype.isEven=function(){return(1&this.words[0])==0},f.prototype.isOdd=function(){return(1&this.words[0])==1},f.prototype.andln=function(t){return this.words[0]&t},f.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var f=i,o=r;0!==f&&o<this.length;o++){var a=0|this.words[o];a+=f,f=a>>>26,a&=67108863,this.words[o]=a}return 0!==f&&(this.words[o]=f,this.length++),this},f.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},f.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:i<t?-1:1}return 0!==this.negative?0|-e:e},f.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return -1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},f.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return -1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},f.prototype.gtn=function(t){return 1===this.cmpn(t)},f.prototype.gt=function(t){return 1===this.cmp(t)},f.prototype.gten=function(t){return this.cmpn(t)>=0},f.prototype.gte=function(t){return this.cmp(t)>=0},f.prototype.ltn=function(t){return -1===this.cmpn(t)},f.prototype.lt=function(t){return -1===this.cmp(t)},f.prototype.lten=function(t){return 0>=this.cmpn(t)},f.prototype.lte=function(t){return 0>=this.cmp(t)},f.prototype.eqn=function(t){return 0===this.cmpn(t)},f.prototype.eq=function(t){return 0===this.cmp(t)},f.red=function(t){return new _(t)},f.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)},f.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},f.prototype._forceRed=function(t){return this.red=t,this},f.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},f.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},f.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},f.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},f.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},f.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},f.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},f.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},f.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},f.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},f.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},f.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},f.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},f.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new f(e,16),this.n=this.p.bitLength(),this.k=new f(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 E(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(t){if("string"==typeof t){var e=f._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 N(t){_.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new f(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 f(null);return t.words=Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,r=t;do this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?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=Math.min(t.length,9),n=0;n<r;n++)e.words[n]=t.words[n];if(e.length=r,t.length<=9){t.words[0]=0,t.length=1;return}var i=t.words[9];for(n=10,e.words[e.length++]=4194303&i;n<t.length;n++){var f=0|t.words[n];t.words[n-10]=(4194303&f)<<4|i>>>22,i=f}i>>>=22,t.words[n-10]=i,0===i&&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<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(E,w),i(A,w),i(S,w),S.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=(0|t.words[r])*19+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},f._prime=function(t){var e;if(v[t])return v[t];if("k256"===t)e=new M;else if("p224"===t)e=new E;else if("p192"===t)e=new A;else if("p25519"===t)e=new S;else throw Error("Unknown prime "+t);return v[t]=e,e},_.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},_.prototype._verify2=function(t,e){n((t.negative|e.negative)==0,"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},_.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(u(t,t.umod(this.m)._forceRed(this)),t)},_.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},_.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)},_.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},_.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},_.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return 0>r.cmpn(0)&&r.iadd(this.m),r},_.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},_.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},_.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},_.prototype.isqr=function(t){return this.imul(t,t.clone())},_.prototype.sqr=function(t){return this.mul(t,t)},_.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 f(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var a=new f(1).toRed(this),s=a.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new f(2*l*l).toRed(this);0!==this.pow(l,u).cmp(s);)l.redIAdd(s);for(var h=this.pow(l,i),c=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=o;0!==d.cmp(a);){for(var m=d,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g<p);var b=this.pow(h,new f(1).iushln(p-g-1));c=c.redMul(b),h=b.redSqr(),d=d.redMul(h),p=g}return c},_.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},_.prototype.pow=function(t,e){if(e.isZero())return new f(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=Array(16);r[0]=new f(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],o=0,a=0,s=e.bitLength()%26;for(0===s&&(s=26),n=e.length-1;n>=0;n--){for(var u=e.words[n],l=s-1;l>=0;l--){var h=u>>l&1;if(i!==r[0]&&(i=this.sqr(i)),0===h&&0===o){a=0;continue}o<<=1,o|=h,(4==++a||0===n&&0===l)&&(i=this.mul(i,r[o]),a=0,o=0)}s=26}return i},_.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},_.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},f.mont=function(t){return new N(t)},i(N,_),N.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},N.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},N.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),f=i;return i.cmp(this.m)>=0?f=i.isub(this.m):0>i.cmpn(0)&&(f=i.iadd(this.m)),f._forceRed(this)},N.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new f(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),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},N.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},43182:function(t,e,r){var n,i=r(34155);!function(){"use strict";var f="input is invalid type",o="object"==typeof window,a=o?window:{};a.JS_SHA3_NO_WINDOW&&(o=!1);var s=!o&&"object"==typeof self;!a.JS_SHA3_NO_NODE_JS&&"object"==typeof i&&i.versions&&i.versions.node?a=r.g:s&&(a=self);var u=!a.JS_SHA3_NO_COMMON_JS&&t.exports,l=r.amdO,h=!a.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,c="0123456789abcdef".split(""),d=[4,1024,262144,67108864],p=[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],g=[224,256,384,512],b=[128,256],y=["hex","buffer","arrayBuffer","array","digest"],v={128:168,256:136};(a.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),h&&(a.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 w=function(t,e,r){return function(n){return new F(t,e,t).update(n)[r]()}},M=function(t,e,r){return function(n,i){return new F(t,e,i).update(n)[r]()}},E=function(t,e,r){return function(e,n,i,f){return T["cshake"+t].update(e,n,i,f)[r]()}},A=function(t,e,r){return function(e,n,i,f){return T["kmac"+t].update(e,n,i,f)[r]()}},S=function(t,e,r,n){for(var i=0;i<y.length;++i){var f=y[i];t[f]=e(r,n,f)}return t},_=function(t,e){var r=w(t,e,"hex");return r.create=function(){return new F(t,e,t)},r.update=function(t){return r.create().update(t)},S(r,w,t,e)},N=[{name:"keccak",padding:[1,256,65536,16777216],bits:g,createMethod:_},{name:"sha3",padding:[6,1536,393216,100663296],bits:g,createMethod:_},{name:"shake",padding:[31,7936,2031616,520093696],bits:b,createMethod:function(t,e){var r=M(t,e,"hex");return r.create=function(r){return new F(t,e,r)},r.update=function(t,e){return r.create(e).update(t)},S(r,M,t,e)}},{name:"cshake",padding:d,bits:b,createMethod:function(t,e){var r=v[t],n=E(t,e,"hex");return n.create=function(n,i,f){return i||f?new F(t,e,n).bytepad([i,f],r):T["shake"+t].create(n)},n.update=function(t,e,r,i){return n.create(e,r,i).update(t)},S(n,E,t,e)}},{name:"kmac",padding:d,bits:b,createMethod:function(t,e){var r=v[t],n=A(t,e,"hex");return n.create=function(n,i,f){return new B(t,e,i).bytepad(["KMAC",f],r).bytepad([n],r)},n.update=function(t,e,r,i){return n.create(t,r,i).update(e)},S(n,A,t,e)}}],T={},R=[],C=0;C<N.length;++C)for(var I=N[C],P=I.bits,O=0;O<P.length;++O){var x=I.name+"_"+P[O];if(R.push(x),T[x]=I.createMethod(P[O],I.padding),"sha3"!==I.name){var k=I.name+P[O];R.push(k),T[k]=T[x]}}function F(t,e,r){this.blocks=[],this.s=[],this.padding=e,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(t<<1)>>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 B(t,e,r){F.call(this,t,e,r)}F.prototype.update=function(t){if(this.finalized)throw Error("finalize already called");var e,r=typeof t;if("string"!==r){if("object"===r){if(null===t)throw Error(f);if(h&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!h||!ArrayBuffer.isView(t)))throw Error(f)}else throw Error(f);e=!0}for(var n,i,o=this.blocks,a=this.byteCount,s=t.length,u=this.blockCount,l=0,c=this.s;l<s;){if(this.reset)for(n=1,this.reset=!1,o[0]=this.block;n<u+1;++n)o[n]=0;if(e)for(n=this.start;l<s&&n<a;++l)o[n>>2]|=t[l]<<p[3&n++];else for(n=this.start;l<s&&n<a;++l)(i=t.charCodeAt(l))<128?o[n>>2]|=i<<p[3&n++]:(i<2048?o[n>>2]|=(192|i>>6)<<p[3&n++]:(i<55296||i>=57344?o[n>>2]|=(224|i>>12)<<p[3&n++]:(i=65536+((1023&i)<<10|1023&t.charCodeAt(++l)),o[n>>2]|=(240|i>>18)<<p[3&n++],o[n>>2]|=(128|i>>12&63)<<p[3&n++]),o[n>>2]|=(128|i>>6&63)<<p[3&n++]),o[n>>2]|=(128|63&i)<<p[3&n++]);if(this.lastByteIndex=n,n>=a){for(this.start=n-a,this.block=o[u],n=0;n<u;++n)c[n]^=o[n];L(c),this.reset=!0}else this.start=n}return this},F.prototype.encode=function(t,e){var r=255&t,n=1,i=[r];for(t>>=8,r=255&t;r>0;)i.unshift(r),t>>=8,r=255&t,++n;return e?i.push(n):i.unshift(n),this.update(i),i.length},F.prototype.encodeString=function(t){var e,r=typeof t;if("string"!==r){if("object"===r){if(null===t)throw Error(f);if(h&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!h||!ArrayBuffer.isView(t)))throw Error(f)}else throw Error(f);e=!0}var n=0,i=t.length;if(e)n=i;else for(var o=0;o<t.length;++o){var a=t.charCodeAt(o);a<128?n+=1:a<2048?n+=2:a<55296||a>=57344?n+=3:(a=65536+((1023&a)<<10|1023&t.charCodeAt(++o)),n+=4)}return n+=this.encode(8*n),this.update(t),n},F.prototype.bytepad=function(t,e){for(var r=this.encode(e),n=0;n<t.length;++n)r+=this.encodeString(t[n]);var i=e-r%e,f=[];return f.length=i,this.update(f),this},F.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex,r=this.blockCount,n=this.s;if(t[e>>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(e=1,t[0]=t[r];e<r+1;++e)t[e]=0;for(t[r-1]|=2147483648,e=0;e<r;++e)n[e]^=t[e];L(n)}},F.prototype.toString=F.prototype.hex=function(){this.finalize();for(var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,f=0,o=0,a="";o<n;){for(f=0;f<e&&o<n;++f,++o)a+=c[(t=r[f])>>4&15]+c[15&t]+c[t>>12&15]+c[t>>8&15]+c[t>>20&15]+c[t>>16&15]+c[t>>28&15]+c[t>>24&15];o%e==0&&(L(r),f=0)}return i&&(a+=c[(t=r[f])>>4&15]+c[15&t],i>1&&(a+=c[t>>12&15]+c[t>>8&15]),i>2&&(a+=c[t>>20&15]+c[t>>16&15])),a},F.prototype.arrayBuffer=function(){this.finalize();for(var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,f=0,o=0,a=this.outputBits>>3,s=new Uint32Array(t=new ArrayBuffer(i?n+1<<2:a));o<n;){for(f=0;f<e&&o<n;++f,++o)s[o]=r[f];o%e==0&&L(r)}return i&&(s[f]=r[f],t=t.slice(0,a)),t},F.prototype.buffer=F.prototype.arrayBuffer,F.prototype.digest=F.prototype.array=function(){this.finalize();for(var t,e,r=this.blockCount,n=this.s,i=this.outputBlocks,f=this.extraBytes,o=0,a=0,s=[];a<i;){for(o=0;o<r&&a<i;++o,++a)t=a<<2,e=n[o],s[t]=255&e,s[t+1]=e>>8&255,s[t+2]=e>>16&255,s[t+3]=e>>24&255;a%r==0&&L(n)}return f&&(t=a<<2,e=n[o],s[t]=255&e,f>1&&(s[t+1]=e>>8&255),f>2&&(s[t+2]=e>>16&255)),s},B.prototype=new F,B.prototype.finalize=function(){return this.encode(this.outputBits,!0),F.prototype.finalize.call(this)};var L=function(t){var e,r,n,i,f,o,a,s,u,l,h,c,d,p,g,b,y,v,w,M,E,A,S,_,N,T,R,C,I,P,O,x,k,F,B,L,D,U,G,z,J,j,H,V,X,q,Z,K,W,Y,Q,$,tt,te,tr,tn,ti,tf,to,ta,ts,tu,tl;for(n=0;n<48;n+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],f=t[1]^t[11]^t[21]^t[31]^t[41],o=t[2]^t[12]^t[22]^t[32]^t[42],a=t[3]^t[13]^t[23]^t[33]^t[43],s=t[4]^t[14]^t[24]^t[34]^t[44],u=t[5]^t[15]^t[25]^t[35]^t[45],l=t[6]^t[16]^t[26]^t[36]^t[46],h=t[7]^t[17]^t[27]^t[37]^t[47],c=t[8]^t[18]^t[28]^t[38]^t[48],d=t[9]^t[19]^t[29]^t[39]^t[49],e=c^(o<<1|a>>>31),r=d^(a<<1|o>>>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^(s<<1|u>>>31),r=f^(u<<1|s>>>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=o^(l<<1|h>>>31),r=a^(h<<1|l>>>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=s^(c<<1|d>>>31),r=u^(d<<1|c>>>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=l^(i<<1|f>>>31),r=h^(f<<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],g=t[1],q=t[11]<<4|t[10]>>>28,Z=t[10]<<4|t[11]>>>28,C=t[20]<<3|t[21]>>>29,I=t[21]<<3|t[20]>>>29,ta=t[31]<<9|t[30]>>>23,ts=t[30]<<9|t[31]>>>23,j=t[40]<<18|t[41]>>>14,H=t[41]<<18|t[40]>>>14,F=t[2]<<1|t[3]>>>31,B=t[3]<<1|t[2]>>>31,b=t[13]<<12|t[12]>>>20,y=t[12]<<12|t[13]>>>20,K=t[22]<<10|t[23]>>>22,W=t[23]<<10|t[22]>>>22,P=t[33]<<13|t[32]>>>19,O=t[32]<<13|t[33]>>>19,tu=t[42]<<2|t[43]>>>30,tl=t[43]<<2|t[42]>>>30,te=t[5]<<30|t[4]>>>2,tr=t[4]<<30|t[5]>>>2,L=t[14]<<6|t[15]>>>26,D=t[15]<<6|t[14]>>>26,v=t[25]<<11|t[24]>>>21,w=t[24]<<11|t[25]>>>21,Y=t[34]<<15|t[35]>>>17,Q=t[35]<<15|t[34]>>>17,x=t[45]<<29|t[44]>>>3,k=t[44]<<29|t[45]>>>3,_=t[6]<<28|t[7]>>>4,N=t[7]<<28|t[6]>>>4,tn=t[17]<<23|t[16]>>>9,ti=t[16]<<23|t[17]>>>9,U=t[26]<<25|t[27]>>>7,G=t[27]<<25|t[26]>>>7,M=t[36]<<21|t[37]>>>11,E=t[37]<<21|t[36]>>>11,$=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,V=t[8]<<27|t[9]>>>5,X=t[9]<<27|t[8]>>>5,T=t[18]<<20|t[19]>>>12,R=t[19]<<20|t[18]>>>12,tf=t[29]<<7|t[28]>>>25,to=t[28]<<7|t[29]>>>25,z=t[38]<<8|t[39]>>>24,J=t[39]<<8|t[38]>>>24,A=t[48]<<14|t[49]>>>18,S=t[49]<<14|t[48]>>>18,t[0]=p^~b&v,t[1]=g^~y&w,t[10]=_^~T&C,t[11]=N^~R&I,t[20]=F^~L&U,t[21]=B^~D&G,t[30]=V^~q&K,t[31]=X^~Z&W,t[40]=te^~tn&tf,t[41]=tr^~ti&to,t[2]=b^~v&M,t[3]=y^~w&E,t[12]=T^~C&P,t[13]=R^~I&O,t[22]=L^~U&z,t[23]=D^~G&J,t[32]=q^~K&Y,t[33]=Z^~W&Q,t[42]=tn^~tf&ta,t[43]=ti^~to&ts,t[4]=v^~M&A,t[5]=w^~E&S,t[14]=C^~P&x,t[15]=I^~O&k,t[24]=U^~z&j,t[25]=G^~J&H,t[34]=K^~Y&$,t[35]=W^~Q&tt,t[44]=tf^~ta&tu,t[45]=to^~ts&tl,t[6]=M^~A&p,t[7]=E^~S&g,t[16]=P^~x&_,t[17]=O^~k&N,t[26]=z^~j&F,t[27]=J^~H&B,t[36]=Y^~$&V,t[37]=Q^~tt&X,t[46]=ta^~tu&te,t[47]=ts^~tl&tr,t[8]=A^~p&b,t[9]=S^~g&y,t[18]=x^~_&T,t[19]=k^~N&R,t[28]=j^~F&L,t[29]=H^~B&D,t[38]=$^~V&q,t[39]=tt^~X&Z,t[48]=tu^~te&tn,t[49]=tl^~tr&ti,t[0]^=m[n],t[1]^=m[n+1]};if(u)t.exports=T;else{for(C=0;C<R.length;++C)a[R[C]]=T[R[C]];l&&void 0!==(n=(function(){return T}).call(e,r,e,t))&&(t.exports=n)}}()},74728:function(t,e,r){"use strict";r.r(e),r.d(e,{decryptCrowdsale:function(){return L},decryptJsonWallet:function(){return t4},decryptJsonWalletSync:function(){return t9},decryptKeystore:function(){return t8},decryptKeystoreSync:function(){return t2},encryptKeystore:function(){return t3},getJsonWalletAddress:function(){return D.Rb},isCrowdsaleWallet:function(){return D.LW},isKeystoreWallet:function(){return D.aO}});var n,i,f,o,a,s,u,l,h=r(78826),c=r.n(h),d=r(13104),p=r(29394),m=r(43873),g=r(33715),b=r.n(g);(n=a||(a={})).sha256="sha256",n.sha512="sha512";var y=r(6523);let v=new y.Yd("sha2/5.7.0");function w(t){return"0x"+b().sha256().update((0,p.lE)(t)).digest("hex")}function M(t,e,r){return a[t]||v.throwError("unsupported algorithm "+t,y.Yd.errors.UNSUPPORTED_OPERATION,{operation:"hmac",algorithm:t}),"0x"+b().hmac(b()[t],(0,p.lE)(e)).update((0,p.lE)(r)).digest("hex")}function E(t,e,r,n,i){let f,o,a;t=(0,p.lE)(t),e=(0,p.lE)(e);let s=1,u=new Uint8Array(n),l=new Uint8Array(e.length+4);l.set(e);for(let h=1;h<=s;h++){l[e.length]=h>>24&255,l[e.length+1]=h>>16&255,l[e.length+2]=h>>8&255,l[e.length+3]=255&h;let c=(0,p.lE)(M(i,t,l));f||(a=new Uint8Array(f=c.length),s=Math.ceil(n/f),o=n-(s-1)*f),a.set(c);for(let e=1;e<r;e++){c=(0,p.lE)(M(i,t,c));for(let t=0;t<f;t++)a[t]^=c[t]}let d=(h-1)*f,m=h===s?o:f;u.set((0,p.lE)(a).slice(0,m),d)}return(0,p.Dv)(u)}let A=new y.Yd("strings/5.7.0");function S(t,e,r,n,i){if(t===u.BAD_PREFIX||t===u.UNEXPECTED_CONTINUE){let t=0;for(let n=e+1;n<r.length&&r[n]>>6==2;n++)t++;return t}return t===u.OVERRUN?r.length-e-1:0}function _(t,e=s.current){e!=s.current&&(A.checkNormalize(),t=t.normalize(e));let r=[];for(let e=0;e<t.length;e++){let n=t.charCodeAt(e);if(n<128)r.push(n);else if(n<2048)r.push(n>>6|192),r.push(63&n|128);else if((64512&n)==55296){e++;let i=t.charCodeAt(e);if(e>=t.length||(64512&i)!=56320)throw Error("invalid utf-8 string");let f=65536+((1023&n)<<10)+(1023&i);r.push(f>>18|240),r.push(f>>12&63|128),r.push(f>>6&63|128),r.push(63&f|128)}else r.push(n>>12|224),r.push(n>>6&63|128),r.push(63&n|128)}return(0,p.lE)(r)}(i=s||(s={})).current="",i.NFC="NFC",i.NFD="NFD",i.NFKC="NFKC",i.NFKD="NFKD",(f=u||(u={})).UNEXPECTED_CONTINUE="unexpected continuation byte",f.BAD_PREFIX="bad codepoint prefix",f.OVERRUN="string overrun",f.MISSING_CONTINUE="missing continuation byte",f.OUT_OF_RANGE="out of UTF-8 range",f.UTF16_SURROGATE="UTF-16 surrogate",f.OVERLONG="overlong representation",Object.freeze({error:function(t,e,r,n,i){return A.throwArgumentError(`invalid codepoint at offset ${e}; ${t}`,"bytes",r)},ignore:S,replace:function(t,e,r,n,i){return t===u.OVERLONG?(n.push(i),0):(n.push(65533),S(t,e,r,n,i))}});let N=new y.Yd("properties/5.7.0");function T(t,e,r){Object.defineProperty(t,e,{enumerable:!0,value:r,writable:!1})}let R={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};class C{constructor(t){for(let e in t)this[e]=function t(e){return function(e){if(function t(e){if(null==e||R[typeof e])return!0;if(Array.isArray(e)||"object"==typeof e){if(!Object.isFrozen(e))return!1;let r=Object.keys(e);for(let n=0;n<r.length;n++){let i=null;try{i=e[r[n]]}catch(t){continue}if(!t(i))return!1}return!0}return N.throwArgumentError(`Cannot deepCopy ${typeof e}`,"object",e)}(e))return e;if(Array.isArray(e))return Object.freeze(e.map(e=>t(e)));if("object"==typeof e){let r={};for(let n in e){let i=e[n];void 0!==i&&T(r,n,t(i))}return r}return N.throwArgumentError(`Cannot deepCopy ${typeof e}`,"object",e)}(e)}(t[e])}}let I="json-wallets/5.4.0";function P(t){return"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),(0,p.lE)(t)}function O(t,e){for(t=String(t);t.length<e;)t="0"+t;return t}function x(t){return"string"==typeof t?_(t,s.NFKC):(0,p.lE)(t)}function k(t,e){let r=t,n=e.toLowerCase().split("/");for(let t=0;t<n.length;t++){let e=null;for(let i in r)if(i.toLowerCase()===n[t]){e=r[i];break}if(null===e)return null;r=e}return r}let F=new y.Yd(I);class B extends C{isCrowdsaleAccount(t){return!!(t&&t._isCrowdsaleAccount)}}function L(t,e){let r=JSON.parse(t);e=x(e);let n=(0,d.Kn)(k(r,"ethaddr")),i=P(k(r,"encseed"));i&&i.length%16==0||F.throwArgumentError("invalid encseed","json",t);let f=(0,p.lE)(E(e,e,2e3,32,"sha256")).slice(0,16),o=i.slice(0,16),a=i.slice(16),s=new(c()).ModeOfOperation.cbc(f,o),u=c().padding.pkcs7.strip((0,p.lE)(s.decrypt(a))),l="";for(let t=0;t<u.length;t++)l+=String.fromCharCode(u[t]);let h=_(l);return new B({_isCrowdsaleAccount:!0,address:n,privateKey:(0,m.w)(h)})}var D=r(31674),U=r(17635),G=r.n(U);class z{constructor(t){T(this,"alphabet",t),T(this,"base",t.length),T(this,"_alphabetMap",{}),T(this,"_leader",t.charAt(0));for(let e=0;e<t.length;e++)this._alphabetMap[t.charAt(e)]=e}encode(t){let e=(0,p.lE)(t);if(0===e.length)return"";let r=[0];for(let t=0;t<e.length;++t){let n=e[t];for(let t=0;t<r.length;++t)n+=r[t]<<8,r[t]=n%this.base,n=n/this.base|0;for(;n>0;)r.push(n%this.base),n=n/this.base|0}let n="";for(let t=0;0===e[t]&&t<e.length-1;++t)n+=this._leader;for(let t=r.length-1;t>=0;--t)n+=this.alphabet[r[t]];return n}decode(t){if("string"!=typeof t)throw TypeError("Expected String");let e=[];if(0===t.length)return new Uint8Array(e);e.push(0);for(let r=0;r<t.length;r++){let n=this._alphabetMap[t[r]];if(void 0===n)throw Error("Non-base"+this.base+" character");let i=n;for(let t=0;t<e.length;++t)i+=e[t]*this.base,e[t]=255&i,i>>=8;for(;i>0;)e.push(255&i),i>>=8}for(let r=0;t[r]===this._leader&&r<t.length-1;++r)e.push(0);return(0,p.lE)(new Uint8Array(e.reverse()))}}new z("abcdefghijklmnopqrstuvwxyz234567");let J=new z("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz");var j=r(81807),H=r(38253),V=r.n(H);function X(t,e,r){return t(r={path:e,exports:{},require:function(t,e){return function(){throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(t,null==e?r.path:e)}},r.exports),r.exports}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self&&self;var q=Z;function Z(t,e){if(!t)throw Error(e||"Assertion failed")}Z.equal=function(t,e,r){if(t!=e)throw Error(r||"Assertion failed: "+t+" != "+e)};var K=X(function(t,e){function r(t){return 1===t.length?"0"+t:t}function n(t){for(var e="",n=0;n<t.length;n++)e+=r(t[n].toString(16));return e}e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"!=typeof t){for(var n=0;n<t.length;n++)r[n]=0|t[n];return r}if("hex"===e){(t=t.replace(/[^a-z0-9]+/ig,"")).length%2!=0&&(t="0"+t);for(var n=0;n<t.length;n+=2)r.push(parseInt(t[n]+t[n+1],16))}else for(var n=0;n<t.length;n++){var i=t.charCodeAt(n),f=i>>8,o=255&i;f?r.push(f,o):r.push(o)}return r},e.zero2=r,e.toHex=n,e.encode=function(t,e){return"hex"===e?n(t):t}}),W=X(function(t,e){e.assert=q,e.toArray=K.toArray,e.zero2=K.zero2,e.toHex=K.toHex,e.encode=K.encode,e.getNAF=function(t,e,r){var n=Array(Math.max(t.bitLength(),r)+1);n.fill(0);for(var i=1<<e+1,f=t.clone(),o=0;o<n.length;o++){var a,s=f.andln(i-1);f.isOdd()?(a=s>(i>>1)-1?(i>>1)-s:s,f.isubn(a)):a=0,n[o]=a,f.iushrn(1)}return n},e.getJSF=function(t,e){var r=[[],[]];t=t.clone(),e=e.clone();for(var n=0,i=0;t.cmpn(-n)>0||e.cmpn(-i)>0;){var f,o,a,s=t.andln(3)+n&3,u=e.andln(3)+i&3;3===s&&(s=-1),3===u&&(u=-1),o=(1&s)==0?0:(3==(f=t.andln(7)+n&7)||5===f)&&2===u?-s:s,r[0].push(o),a=(1&u)==0?0:(3==(f=e.andln(7)+i&7)||5===f)&&2===s?-u:u,r[1].push(a),2*n===o+1&&(n=1-n),2*i===a+1&&(i=1-i),t.iushrn(1),e.iushrn(1)}return r},e.cachedProperty=function(t,e,r){var n="_"+e;t.prototype[e]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},e.parseBytes=function(t){return"string"==typeof t?e.toArray(t,"hex"):t},e.intFromLE=function(t){return new(V())(t,"hex","le")}}),Y=W.getNAF,Q=W.getJSF,$=W.assert;function tt(t,e){this.type=t,this.p=new(V())(e.p,16),this.red=e.prime?V().red(e.prime):V().mont(this.p),this.zero=new(V())(0).toRed(this.red),this.one=new(V())(1).toRed(this.red),this.two=new(V())(2).toRed(this.red),this.n=e.n&&new(V())(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],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 te(t,e){this.curve=t,this.type=e,this.precomputed=null}tt.prototype.point=function(){throw Error("Not implemented")},tt.prototype.validate=function(){throw Error("Not implemented")},tt.prototype._fixedNafMul=function(t,e){$(t.precomputed);var r,n,i=t._getDoubles(),f=Y(e,1,this._bitLength),o=(1<<i.step+1)-(i.step%2==0?2:1);o/=3;var a=[];for(r=0;r<f.length;r+=i.step){n=0;for(var s=r+i.step-1;s>=r;s--)n=(n<<1)+f[s];a.push(n)}for(var u=this.jpoint(null,null,null),l=this.jpoint(null,null,null),h=o;h>0;h--){for(r=0;r<a.length;r++)(n=a[r])===h?l=l.mixedAdd(i.points[r]):n===-h&&(l=l.mixedAdd(i.points[r].neg()));u=u.add(l)}return u.toP()},tt.prototype._wnafMul=function(t,e){var r=4,n=t._getNAFPoints(r);r=n.wnd;for(var i=n.points,f=Y(e,r,this._bitLength),o=this.jpoint(null,null,null),a=f.length-1;a>=0;a--){for(var s=0;a>=0&&0===f[a];a--)s++;if(a>=0&&s++,o=o.dblp(s),a<0)break;var u=f[a];$(0!==u),o="affine"===t.type?u>0?o.mixedAdd(i[u-1>>1]):o.mixedAdd(i[-u-1>>1].neg()):u>0?o.add(i[u-1>>1]):o.add(i[-u-1>>1].neg())}return"affine"===t.type?o.toP():o},tt.prototype._wnafMulAdd=function(t,e,r,n,i){var f,o,a,s=this._wnafT1,u=this._wnafT2,l=this._wnafT3,h=0;for(f=0;f<n;f++){var c=(a=e[f])._getNAFPoints(t);s[f]=c.wnd,u[f]=c.points}for(f=n-1;f>=1;f-=2){var d=f-1,p=f;if(1!==s[d]||1!==s[p]){l[d]=Y(r[d],s[d],this._bitLength),l[p]=Y(r[p],s[p],this._bitLength),h=Math.max(l[d].length,h),h=Math.max(l[p].length,h);continue}var m=[e[d],null,null,e[p]];0===e[d].y.cmp(e[p].y)?(m[1]=e[d].add(e[p]),m[2]=e[d].toJ().mixedAdd(e[p].neg())):0===e[d].y.cmp(e[p].y.redNeg())?(m[1]=e[d].toJ().mixedAdd(e[p]),m[2]=e[d].add(e[p].neg())):(m[1]=e[d].toJ().mixedAdd(e[p]),m[2]=e[d].toJ().mixedAdd(e[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],b=Q(r[d],r[p]);for(o=0,h=Math.max(b[0].length,h),l[d]=Array(h),l[p]=Array(h);o<h;o++){var y=0|b[0][o],v=0|b[1][o];l[d][o]=g[(y+1)*3+(v+1)],l[p][o]=0,u[d]=m}}var w=this.jpoint(null,null,null),M=this._wnafT4;for(f=h;f>=0;f--){for(var E=0;f>=0;){var A=!0;for(o=0;o<n;o++)M[o]=0|l[o][f],0!==M[o]&&(A=!1);if(!A)break;E++,f--}if(f>=0&&E++,w=w.dblp(E),f<0)break;for(o=0;o<n;o++){var S=M[o];0!==S&&(S>0?a=u[o][S-1>>1]:S<0&&(a=u[o][-S-1>>1].neg()),w="affine"===a.type?w.mixedAdd(a):w.add(a))}}for(f=0;f<n;f++)u[f]=null;return i?w:w.toP()},tt.BasePoint=te,te.prototype.eq=function(){throw Error("Not implemented")},te.prototype.validate=function(){return this.curve.validate(this)},tt.prototype.decodePoint=function(t,e){t=W.toArray(t,e);var r=this.p.byteLength();if((4===t[0]||6===t[0]||7===t[0])&&t.length-1==2*r)return 6===t[0]?$(t[t.length-1]%2==0):7===t[0]&&$(t[t.length-1]%2==1),this.point(t.slice(1,1+r),t.slice(1+r,1+2*r));if((2===t[0]||3===t[0])&&t.length-1===r)return this.pointFromX(t.slice(1,1+r),3===t[0]);throw Error("Unknown point format")},te.prototype.encodeCompressed=function(t){return this.encode(t,!0)},te.prototype._encode=function(t){var e=this.curve.p.byteLength(),r=this.getX().toArray("be",e);return t?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",e))},te.prototype.encode=function(t,e){return W.encode(this._encode(e),t)},te.prototype.precompute=function(t){if(this.precomputed)return this;var e={doubles:null,naf:null,beta:null};return e.naf=this._getNAFPoints(8),e.doubles=this._getDoubles(4,t),e.beta=this._getBeta(),this.precomputed=e,this},te.prototype._hasDoubles=function(t){if(!this.precomputed)return!1;var e=this.precomputed.doubles;return!!e&&e.points.length>=Math.ceil((t.bitLength()+1)/e.step)},te.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<e;i+=t){for(var f=0;f<t;f++)n=n.dbl();r.push(n)}return{step:t,points:r}},te.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var e=[this],r=(1<<t)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)e[i]=e[i-1].add(n);return{wnd:t,points:e}},te.prototype._getBeta=function(){return null},te.prototype.dblp=function(t){for(var e=this,r=0;r<t;r++)e=e.dbl();return e};var tr=X(function(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}}),tn=W.assert;function ti(t){tt.call(this,"short",t),this.a=new(V())(t.a,16).toRed(this.red),this.b=new(V())(t.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(t),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}function tf(t,e,r,n){tt.BasePoint.call(this,t,"affine"),null===e&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new(V())(e,16),this.y=new(V())(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function to(t,e,r,n){tt.BasePoint.call(this,t,"jacobian"),null===e&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new(V())(0)):(this.x=new(V())(e,16),this.y=new(V())(r,16),this.z=new(V())(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}tr(ti,tt),ti.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){if(t.beta)e=new(V())(t.beta,16).toRed(this.red);else{var e,r,n,i=this._getEndoRoots(this.p);e=(e=0>i[0].cmp(i[1])?i[0]:i[1]).toRed(this.red)}if(t.lambda)r=new(V())(t.lambda,16);else{var f=this._getEndoRoots(this.n);0===this.g.mul(f[0]).x.cmp(this.g.x.redMul(e))?r=f[0]:(r=f[1],tn(0===this.g.mul(r).x.cmp(this.g.x.redMul(e))))}return n=t.basis?t.basis.map(function(t){return{a:new(V())(t.a,16),b:new(V())(t.b,16)}}):this._getEndoBasis(r),{beta:e,lambda:r,basis:n}}},ti.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:V().mont(t),r=new(V())(2).toRed(e).redInvm(),n=r.redNeg(),i=new(V())(3).toRed(e).redNeg().redSqrt().redMul(r);return[n.redAdd(i).fromRed(),n.redSub(i).fromRed()]},ti.prototype._getEndoBasis=function(t){for(var e,r,n,i,f,o,a,s,u,l=this.n.ushrn(Math.floor(this.n.bitLength()/2)),h=t,c=this.n.clone(),d=new(V())(1),p=new(V())(0),m=new(V())(0),g=new(V())(1),b=0;0!==h.cmpn(0);){var y=c.div(h);s=c.sub(y.mul(h)),u=m.sub(y.mul(d));var v=g.sub(y.mul(p));if(!n&&0>s.cmp(l))e=a.neg(),r=d,n=s.neg(),i=u;else if(n&&2==++b)break;a=s,c=h,h=s,m=d,d=u,g=p,p=v}f=s.neg(),o=u;var w=n.sqr().add(i.sqr());return f.sqr().add(o.sqr()).cmp(w)>=0&&(f=e,o=r),n.negative&&(n=n.neg(),i=i.neg()),f.negative&&(f=f.neg(),o=o.neg()),[{a:n,b:i},{a:f,b:o}]},ti.prototype._endoSplit=function(t){var e=this.endo.basis,r=e[0],n=e[1],i=n.b.mul(t).divRound(this.n),f=r.b.neg().mul(t).divRound(this.n),o=i.mul(r.a),a=f.mul(n.a),s=i.mul(r.b),u=f.mul(n.b);return{k1:t.sub(o).sub(a),k2:s.add(u).neg()}},ti.prototype.pointFromX=function(t,e){(t=new(V())(t,16)).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 Error("invalid point");var i=n.fromRed().isOdd();return(e&&!i||!e&&i)&&(n=n.redNeg()),this.point(t,n)},ti.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)},ti.prototype._endoWnafMulAdd=function(t,e,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,f=0;f<t.length;f++){var o=this._endoSplit(e[f]),a=t[f],s=a._getBeta();o.k1.negative&&(o.k1.ineg(),a=a.neg(!0)),o.k2.negative&&(o.k2.ineg(),s=s.neg(!0)),n[2*f]=a,n[2*f+1]=s,i[2*f]=o.k1,i[2*f+1]=o.k2}for(var u=this._wnafMulAdd(1,n,i,2*f,r),l=0;l<2*f;l++)n[l]=null,i[l]=null;return u},tr(tf,tt.BasePoint),ti.prototype.point=function(t,e,r){return new tf(this,t,e,r)},ti.prototype.pointFromJSON=function(t,e){return tf.fromJSON(this,t,e)},tf.prototype._getBeta=function(){if(this.curve.endo){var t=this.precomputed;if(t&&t.beta)return t.beta;var e=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(t){var r=this.curve,n=function(t){return r.point(t.x.redMul(r.endo.beta),t.y)};t.beta=e,e.precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(n)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(n)}}}return e}},tf.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},tf.fromJSON=function(t,e,r){"string"==typeof e&&(e=JSON.parse(e));var n=t.point(e[0],e[1],r);if(!e[2])return n;function i(e){return t.point(e[0],e[1],r)}var f=e[2];return n.precomputed={beta:null,doubles:f.doubles&&{step:f.doubles.step,points:[n].concat(f.doubles.points.map(i))},naf:f.naf&&{wnd:f.naf.wnd,points:[n].concat(f.naf.points.map(i))}},n},tf.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},tf.prototype.isInfinity=function(){return this.inf},tf.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)||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)},tf.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),f=i.redSqr().redISub(this.x.redAdd(this.x)),o=i.redMul(this.x.redSub(f)).redISub(this.y);return this.curve.point(f,o)},tf.prototype.getX=function(){return this.x.fromRed()},tf.prototype.getY=function(){return this.y.fromRed()},tf.prototype.mul=function(t){return(t=new(V())(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)},tf.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)},tf.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)},tf.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))},tf.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},tf.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},tr(to,tt.BasePoint),ti.prototype.jpoint=function(t,e,r){return new to(this,t,e,r)},to.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)},to.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},to.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),f=this.y.redMul(e.redMul(t.z)),o=t.y.redMul(r.redMul(this.z)),a=n.redSub(i),s=f.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),l=u.redMul(a),h=n.redMul(u),c=s.redSqr().redIAdd(l).redISub(h).redISub(h),d=s.redMul(h.redISub(c)).redISub(f.redMul(l)),p=this.z.redMul(t.z).redMul(a);return this.curve.jpoint(c,d,p)},to.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,f=t.y.redMul(e).redMul(this.z),o=r.redSub(n),a=i.redSub(f);if(0===o.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var s=o.redSqr(),u=s.redMul(o),l=r.redMul(s),h=a.redSqr().redIAdd(u).redISub(l).redISub(l),c=a.redMul(l.redISub(h)).redISub(i.redMul(u)),d=this.z.redMul(o);return this.curve.jpoint(h,c,d)},to.prototype.dblp=function(t){if(0===t||this.isInfinity())return this;if(!t)return this.dbl();if(this.curve.zeroA||this.curve.threeA){var e,r=this;for(e=0;e<t;e++)r=r.dbl();return r}var n=this.curve.a,i=this.curve.tinv,f=this.x,o=this.y,a=this.z,s=a.redSqr().redSqr(),u=o.redAdd(o);for(e=0;e<t;e++){var l=f.redSqr(),h=u.redSqr(),c=h.redSqr(),d=l.redAdd(l).redIAdd(l).redIAdd(n.redMul(s)),p=f.redMul(h),m=d.redSqr().redISub(p.redAdd(p)),g=p.redISub(m),b=d.redMul(g);b=b.redIAdd(b).redISub(c);var y=u.redMul(a);e+1<t&&(s=s.redMul(c)),f=m,a=y,u=b}return this.curve.jpoint(f,u.redMul(i),a)},to.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},to.prototype._zeroDbl=function(){if(this.zOne){var t,e,r,n=this.x.redSqr(),i=this.y.redSqr(),f=i.redSqr(),o=this.x.redAdd(i).redSqr().redISub(n).redISub(f);o=o.redIAdd(o);var a=n.redAdd(n).redIAdd(n),s=a.redSqr().redISub(o).redISub(o),u=f.redIAdd(f);u=(u=u.redIAdd(u)).redIAdd(u),t=s,e=a.redMul(o.redISub(s)).redISub(u),r=this.y.redAdd(this.y)}else{var l=this.x.redSqr(),h=this.y.redSqr(),c=h.redSqr(),d=this.x.redAdd(h).redSqr().redISub(l).redISub(c);d=d.redIAdd(d);var p=l.redAdd(l).redIAdd(l),m=p.redSqr(),g=c.redIAdd(c);g=(g=g.redIAdd(g)).redIAdd(g),t=m.redISub(d).redISub(d),e=p.redMul(d.redISub(t)).redISub(g),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(t,e,r)},to.prototype._threeDbl=function(){if(this.zOne){var t,e,r,n=this.x.redSqr(),i=this.y.redSqr(),f=i.redSqr(),o=this.x.redAdd(i).redSqr().redISub(n).redISub(f);o=o.redIAdd(o);var a=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),s=a.redSqr().redISub(o).redISub(o);t=s;var u=f.redIAdd(f);u=(u=u.redIAdd(u)).redIAdd(u),e=a.redMul(o.redISub(s)).redISub(u),r=this.y.redAdd(this.y)}else{var l=this.z.redSqr(),h=this.y.redSqr(),c=this.x.redMul(h),d=this.x.redSub(l).redMul(this.x.redAdd(l));d=d.redAdd(d).redIAdd(d);var p=c.redIAdd(c),m=(p=p.redIAdd(p)).redAdd(p);t=d.redSqr().redISub(m),r=this.y.redAdd(this.z).redSqr().redISub(h).redISub(l);var g=h.redSqr();g=(g=(g=g.redIAdd(g)).redIAdd(g)).redIAdd(g),e=d.redMul(p.redISub(t)).redISub(g)}return this.curve.jpoint(t,e,r)},to.prototype._dbl=function(){var t=this.curve.a,e=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),f=e.redSqr(),o=r.redSqr(),a=f.redAdd(f).redIAdd(f).redIAdd(t.redMul(i)),s=e.redAdd(e),u=(s=s.redIAdd(s)).redMul(o),l=a.redSqr().redISub(u.redAdd(u)),h=u.redISub(l),c=o.redSqr();c=(c=(c=c.redIAdd(c)).redIAdd(c)).redIAdd(c);var d=a.redMul(h).redISub(c),p=r.redAdd(r).redMul(n);return this.curve.jpoint(l,d,p)},to.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var t=this.x.redSqr(),e=this.y.redSqr(),r=this.z.redSqr(),n=e.redSqr(),i=t.redAdd(t).redIAdd(t),f=i.redSqr(),o=this.x.redAdd(e).redSqr().redISub(t).redISub(n),a=(o=(o=(o=o.redIAdd(o)).redAdd(o).redIAdd(o)).redISub(f)).redSqr(),s=n.redIAdd(n);s=(s=(s=s.redIAdd(s)).redIAdd(s)).redIAdd(s);var u=i.redIAdd(o).redSqr().redISub(f).redISub(a).redISub(s),l=e.redMul(u);l=(l=l.redIAdd(l)).redIAdd(l);var h=this.x.redMul(a).redISub(l);h=(h=h.redIAdd(h)).redIAdd(h);var c=this.y.redMul(u.redMul(s.redISub(u)).redISub(o.redMul(a)));c=(c=(c=c.redIAdd(c)).redIAdd(c)).redIAdd(c);var d=this.z.redAdd(o).redSqr().redISub(r).redISub(a);return this.curve.jpoint(h,c,d)},to.prototype.mul=function(t,e){return t=new(V())(t,e),this.curve._wnafMul(this,t)},to.prototype.eq=function(t){if("affine"===t.type)return this.eq(t.toJ());if(this===t)return!0;var e=this.z.redSqr(),r=t.z.redSqr();if(0!==this.x.redMul(r).redISub(t.x.redMul(e)).cmpn(0))return!1;var n=e.redMul(this.z),i=r.redMul(t.z);return 0===this.y.redMul(i).redISub(t.y.redMul(n)).cmpn(0)},to.prototype.eqXToP=function(t){var e=this.z.redSqr(),r=t.toRed(this.curve.red).redMul(e);if(0===this.x.cmp(r))return!0;for(var n=t.clone(),i=this.curve.redN.redMul(e);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},to.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},to.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var ta=X(function(t,e){e.base=tt,e.short=ti,e.mont=null,e.edwards=null}),ts=X(function(t,e){var r,n=W.assert;function i(t){"short"===t.type?this.curve=new ta.short(t):"edwards"===t.type?this.curve=new ta.edwards(t):this.curve=new ta.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,n(this.g.validate(),"Invalid curve"),n(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function f(t,r){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){var n=new i(r);return Object.defineProperty(e,t,{configurable:!0,enumerable:!0,value:n}),n}})}e.PresetCurve=i,f("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:b().sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),f("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:b().sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),f("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:b().sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),f("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:b().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"]}),f("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:b().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"]}),f("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:b().sha256,gRed:!1,g:["9"]}),f("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:b().sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=null.crash()}catch(t){r=void 0}f("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:b().sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})});function tu(t){if(!(this instanceof tu))return new tu(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=K.toArray(t.entropy,t.entropyEnc||"hex"),r=K.toArray(t.nonce,t.nonceEnc||"hex"),n=K.toArray(t.pers,t.persEnc||"hex");q(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}tu.prototype._init=function(t,e,r){var n=t.concat(e).concat(r);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},tu.prototype._hmac=function(){return new(b()).hmac(this.hash,this.K)},tu.prototype._update=function(t){var e=this._hmac().update(this.V).update([0]);t&&(e=e.update(t)),this.K=e.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},tu.prototype.reseed=function(t,e,r,n){"string"!=typeof e&&(n=r,r=e,e=null),t=K.toArray(t,e),r=K.toArray(r,n),q(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(r||[])),this._reseed=1},tu.prototype.generate=function(t,e,r,n){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof e&&(n=r,r=e,e=null),r&&(r=K.toArray(r,n||"hex"),this._update(r));for(var i=[];i.length<t;)this.V=this._hmac().update(this.V).digest(),i=i.concat(this.V);var f=i.slice(0,t);return this._update(r),this._reseed++,K.encode(f,e)};var tl=W.assert;function th(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}th.fromPublic=function(t,e,r){return e instanceof th?e:new th(t,{pub:e,pubEnc:r})},th.fromPrivate=function(t,e,r){return e instanceof th?e:new th(t,{priv:e,privEnc:r})},th.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},th.prototype.getPublic=function(t,e){return("string"==typeof t&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e)?this.pub.encode(e,t):this.pub},th.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},th.prototype._importPrivate=function(t,e){this.priv=new(V())(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},th.prototype._importPublic=function(t,e){if(t.x||t.y){"mont"===this.ec.curve.type?tl(t.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&tl(t.x&&t.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(t.x,t.y);return}this.pub=this.ec.curve.decodePoint(t,e)},th.prototype.derive=function(t){return t.validate()||tl(t.validate(),"public point not validated"),t.mul(this.priv).getX()},th.prototype.sign=function(t,e,r){return this.ec.sign(t,this,e,r)},th.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},th.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var tc=W.assert;function td(t,e){if(t instanceof td)return t;this._importDER(t,e)||(tc(t.r&&t.s,"Signature without r or s"),this.r=new(V())(t.r,16),this.s=new(V())(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function tp(){this.place=0}function tm(t,e){var r=t[e.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,f=0,o=e.place;f<n;f++,o++)i<<=8,i|=t[o],i>>>=0;return!(i<=127)&&(e.place=o,i)}function tg(t){for(var e=0,r=t.length-1;!t[e]&&!(128&t[e+1])&&e<r;)e++;return 0===e?t:t.slice(e)}function tb(t,e){if(e<128){t.push(e);return}var r=1+(Math.log(e)/Math.LN2>>>3);for(t.push(128|r);--r;)t.push(e>>>(r<<3)&255);t.push(e)}td.prototype._importDER=function(t,e){t=W.toArray(t,e);var r=new tp;if(48!==t[r.place++])return!1;var n=tm(t,r);if(!1===n||n+r.place!==t.length||2!==t[r.place++])return!1;var i=tm(t,r);if(!1===i)return!1;var f=t.slice(r.place,i+r.place);if(r.place+=i,2!==t[r.place++])return!1;var o=tm(t,r);if(!1===o||t.length!==o+r.place)return!1;var a=t.slice(r.place,o+r.place);if(0===f[0]){if(!(128&f[1]))return!1;f=f.slice(1)}if(0===a[0]){if(!(128&a[1]))return!1;a=a.slice(1)}return this.r=new(V())(f),this.s=new(V())(a),this.recoveryParam=null,!0},td.prototype.toDER=function(t){var e=this.r.toArray(),r=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&r[0]&&(r=[0].concat(r)),e=tg(e),r=tg(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var n=[2];tb(n,e.length),(n=n.concat(e)).push(2),tb(n,r.length);var i=n.concat(r),f=[48];return tb(f,i.length),f=f.concat(i),W.encode(f,t)};var ty=function(){throw Error("unsupported")},tv=W.assert;function tw(t){if(!(this instanceof tw))return new tw(t);"string"==typeof t&&(tv(Object.prototype.hasOwnProperty.call(ts,t),"Unknown curve "+t),t=ts[t]),t instanceof ts.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}tw.prototype.keyPair=function(t){return new th(this,t)},tw.prototype.keyFromPrivate=function(t,e){return th.fromPrivate(this,t,e)},tw.prototype.keyFromPublic=function(t,e){return th.fromPublic(this,t,e)},tw.prototype.genKeyPair=function(t){t||(t={});for(var e=new tu({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||ty(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new(V())(2));;){var i=new(V())(e.generate(r));if(!(i.cmp(n)>0))return i.iaddn(1),this.keyFromPrivate(i)}},tw.prototype._truncateToN=function(t,e){var r=8*t.byteLength()-this.n.bitLength();return(r>0&&(t=t.ushrn(r)),!e&&t.cmp(this.n)>=0)?t.sub(this.n):t},tw.prototype.sign=function(t,e,r,n){"object"==typeof r&&(n=r,r=null),n||(n={}),e=this.keyFromPrivate(e,r),t=this._truncateToN(new(V())(t,16));for(var i=this.n.byteLength(),f=e.getPrivate().toArray("be",i),o=t.toArray("be",i),a=new tu({hash:this.hash,entropy:f,nonce:o,pers:n.pers,persEnc:n.persEnc||"utf8"}),s=this.n.sub(new(V())(1)),u=0;;u++){var l=n.k?n.k(u):new(V())(a.generate(this.n.byteLength()));if(!(0>=(l=this._truncateToN(l,!0)).cmpn(1)||l.cmp(s)>=0)){var h=this.g.mul(l);if(!h.isInfinity()){var c=h.getX(),d=c.umod(this.n);if(0!==d.cmpn(0)){var p=l.invm(this.n).mul(d.mul(e.getPrivate()).iadd(t));if(0!==(p=p.umod(this.n)).cmpn(0)){var m=(h.getY().isOdd()?1:0)|(0!==c.cmp(d)?2:0);return n.canonical&&p.cmp(this.nh)>0&&(p=this.n.sub(p),m^=1),new td({r:d,s:p,recoveryParam:m})}}}}}},tw.prototype.verify=function(t,e,r,n){t=this._truncateToN(new(V())(t,16)),r=this.keyFromPublic(r,n);var i,f=(e=new td(e,"hex")).r,o=e.s;if(0>f.cmpn(1)||f.cmp(this.n)>=0||0>o.cmpn(1)||o.cmp(this.n)>=0)return!1;var a=o.invm(this.n),s=a.mul(t).umod(this.n),u=a.mul(f).umod(this.n);return this.curve._maxwellTrick?!(i=this.g.jmulAdd(s,r.getPublic(),u)).isInfinity()&&i.eqXToP(f):!(i=this.g.mulAdd(s,r.getPublic(),u)).isInfinity()&&0===i.getX().umod(this.n).cmp(f)},tw.prototype.recoverPubKey=function(t,e,r,n){tv((3&r)===r,"The recovery param is more than two bits"),e=new td(e,n);var i=this.n,f=new(V())(t),o=e.r,a=e.s,s=1&r,u=r>>1;if(o.cmp(this.curve.p.umod(this.curve.n))>=0&&u)throw Error("Unable to find sencond key candinate");o=u?this.curve.pointFromX(o.add(this.curve.n),s):this.curve.pointFromX(o,s);var l=e.r.invm(i),h=i.sub(f).mul(l).umod(i),c=a.mul(l).umod(i);return this.g.mulAdd(h,o,c)},tw.prototype.getKeyRecoveryParam=function(t,e,r,n){if(null!==(e=new td(e,n)).recoveryParam)return e.recoveryParam;for(var i,f=0;f<4;f++){try{i=this.recoverPubKey(t,e,f)}catch(t){continue}if(i.eq(r))return f}throw Error("Unable to find valid recovery factor")};var tM=X(function(t,e){e.version="6.5.4",e.utils=W,e.rand=function(){throw Error("unsupported")},e.curve=ta,e.curves=ts,e.ec=tw,e.eddsa=null}).ec;let tE=new y.Yd("signing-key/5.7.0"),tA=null;function tS(){return tA||(tA=new tM("secp256k1")),tA}class t_{constructor(t){T(this,"curve","secp256k1"),T(this,"privateKey",(0,p.Dv)(t)),32!==(0,p.E1)(this.privateKey)&&tE.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");let e=tS().keyFromPrivate((0,p.lE)(this.privateKey));T(this,"publicKey","0x"+e.getPublic(!1,"hex")),T(this,"compressedPublicKey","0x"+e.getPublic(!0,"hex")),T(this,"_isSigningKey",!0)}_addPoint(t){let e=tS().keyFromPublic((0,p.lE)(this.publicKey)),r=tS().keyFromPublic((0,p.lE)(t));return"0x"+e.pub.add(r.pub).encodeCompressed("hex")}signDigest(t){let e=tS().keyFromPrivate((0,p.lE)(this.privateKey)),r=(0,p.lE)(t);32!==r.length&&tE.throwArgumentError("bad digest length","digest",t);let n=e.sign(r,{canonical:!0});return(0,p.N)({recoveryParam:n.recoveryParam,r:(0,p.$m)("0x"+n.r.toString(16),32),s:(0,p.$m)("0x"+n.s.toString(16),32)})}computeSharedSecret(t){let e=tS().keyFromPrivate((0,p.lE)(this.privateKey)),r=tS().keyFromPublic((0,p.lE)(tN(t)));return(0,p.$m)("0x"+e.derive(r.getPublic()).toString(16),32)}static isSigningKey(t){return!!(t&&t._isSigningKey)}}function tN(t,e){let r=(0,p.lE)(t);if(32===r.length){let t=new t_(r);return e?"0x"+tS().keyFromPrivate(r).getPublic(!0,"hex"):t.publicKey}return 33===r.length?e?(0,p.Dv)(r):"0x"+tS().keyFromPublic(r).getPublic(!1,"hex"):65===r.length?e?"0x"+tS().keyFromPublic(r).getPublic(!0,"hex"):(0,p.Dv)(r):tE.throwArgumentError("invalid public or private key","key","[REDACTED]")}function tT(t){let e=tN(t);return(0,d.Kn)((0,p.p3)((0,m.w)((0,p.p3)(e,1)),12))}new y.Yd("transactions/5.7.0"),(o=l||(l={}))[o.legacy=0]="legacy",o[o.eip2930=1]="eip2930",o[o.eip1559=2]="eip1559";let tR=new y.Yd("wordlists/5.7.0");class tC{constructor(t){tR.checkAbstract(new.target,tC),T(this,"locale",t)}split(t){return t.toLowerCase().split(/ +/g)}join(t){return t.join(" ")}static check(t){var e;let r=[];for(let e=0;e<2048;e++){let n=t.getWord(e);if(e!==t.getWordIndex(n))return"0x";r.push(n)}return e=r.join("\n")+"\n",(0,m.w)(_(e))}static register(t,e){e||(e=t.locale)}}let tI=null;function tP(t){if(null==tI&&(tI="AbandonAbilityAbleAboutAboveAbsentAbsorbAbstractAbsurdAbuseAccessAccidentAccountAccuseAchieveAcidAcousticAcquireAcrossActActionActorActressActualAdaptAddAddictAddressAdjustAdmitAdultAdvanceAdviceAerobicAffairAffordAfraidAgainAgeAgentAgreeAheadAimAirAirportAisleAlarmAlbumAlcoholAlertAlienAllAlleyAllowAlmostAloneAlphaAlreadyAlsoAlterAlwaysAmateurAmazingAmongAmountAmusedAnalystAnchorAncientAngerAngleAngryAnimalAnkleAnnounceAnnualAnotherAnswerAntennaAntiqueAnxietyAnyApartApologyAppearAppleApproveAprilArchArcticAreaArenaArgueArmArmedArmorArmyAroundArrangeArrestArriveArrowArtArtefactArtistArtworkAskAspectAssaultAssetAssistAssumeAsthmaAthleteAtomAttackAttendAttitudeAttractAuctionAuditAugustAuntAuthorAutoAutumnAverageAvocadoAvoidAwakeAwareAwayAwesomeAwfulAwkwardAxisBabyBachelorBaconBadgeBagBalanceBalconyBallBambooBananaBannerBarBarelyBargainBarrelBaseBasicBasketBattleBeachBeanBeautyBecauseBecomeBeefBeforeBeginBehaveBehindBelieveBelowBeltBenchBenefitBestBetrayBetterBetweenBeyondBicycleBidBikeBindBiologyBirdBirthBitterBlackBladeBlameBlanketBlastBleakBlessBlindBloodBlossomBlouseBlueBlurBlushBoardBoatBodyBoilBombBoneBonusBookBoostBorderBoringBorrowBossBottomBounceBoxBoyBracketBrainBrandBrassBraveBreadBreezeBrickBridgeBriefBrightBringBriskBroccoliBrokenBronzeBroomBrotherBrownBrushBubbleBuddyBudgetBuffaloBuildBulbBulkBulletBundleBunkerBurdenBurgerBurstBusBusinessBusyButterBuyerBuzzCabbageCabinCableCactusCageCakeCallCalmCameraCampCanCanalCancelCandyCannonCanoeCanvasCanyonCapableCapitalCaptainCarCarbonCardCargoCarpetCarryCartCaseCashCasinoCastleCasualCatCatalogCatchCategoryCattleCaughtCauseCautionCaveCeilingCeleryCementCensusCenturyCerealCertainChairChalkChampionChangeChaosChapterChargeChaseChatCheapCheckCheeseChefCherryChestChickenChiefChildChimneyChoiceChooseChronicChuckleChunkChurnCigarCinnamonCircleCitizenCityCivilClaimClapClarifyClawClayCleanClerkCleverClickClientCliffClimbClinicClipClockClogCloseClothCloudClownClubClumpClusterClutchCoachCoastCoconutCodeCoffeeCoilCoinCollectColorColumnCombineComeComfortComicCommonCompanyConcertConductConfirmCongressConnectConsiderControlConvinceCookCoolCopperCopyCoralCoreCornCorrectCostCottonCouchCountryCoupleCourseCousinCoverCoyoteCrackCradleCraftCramCraneCrashCraterCrawlCrazyCreamCreditCreekCrewCricketCrimeCrispCriticCropCrossCrouchCrowdCrucialCruelCruiseCrumbleCrunchCrushCryCrystalCubeCultureCupCupboardCuriousCurrentCurtainCurveCushionCustomCuteCycleDadDamageDampDanceDangerDaringDashDaughterDawnDayDealDebateDebrisDecadeDecemberDecideDeclineDecorateDecreaseDeerDefenseDefineDefyDegreeDelayDeliverDemandDemiseDenialDentistDenyDepartDependDepositDepthDeputyDeriveDescribeDesertDesignDeskDespairDestroyDetailDetectDevelopDeviceDevoteDiagramDialDiamondDiaryDiceDieselDietDifferDigitalDignityDilemmaDinnerDinosaurDirectDirtDisagreeDiscoverDiseaseDishDismissDisorderDisplayDistanceDivertDivideDivorceDizzyDoctorDocumentDogDollDolphinDomainDonateDonkeyDonorDoorDoseDoubleDoveDraftDragonDramaDrasticDrawDreamDressDriftDrillDrinkDripDriveDropDrumDryDuckDumbDuneDuringDustDutchDutyDwarfDynamicEagerEagleEarlyEarnEarthEasilyEastEasyEchoEcologyEconomyEdgeEditEducateEffortEggEightEitherElbowElderElectricElegantElementElephantElevatorEliteElseEmbarkEmbodyEmbraceEmergeEmotionEmployEmpowerEmptyEnableEnactEndEndlessEndorseEnemyEnergyEnforceEngageEngineEnhanceEnjoyEnlistEnoughEnrichEnrollEnsureEnterEntireEntryEnvelopeEpisodeEqualEquipEraEraseErodeErosionErrorEruptEscapeEssayEssenceEstateEternalEthicsEvidenceEvilEvokeEvolveExactExampleExcessExchangeExciteExcludeExcuseExecuteExerciseExhaustExhibitExileExistExitExoticExpandExpectExpireExplainExposeExpressExtendExtraEyeEyebrowFabricFaceFacultyFadeFaintFaithFallFalseFameFamilyFamousFanFancyFantasyFarmFashionFatFatalFatherFatigueFaultFavoriteFeatureFebruaryFederalFeeFeedFeelFemaleFenceFestivalFetchFeverFewFiberFictionFieldFigureFileFilmFilterFinalFindFineFingerFinishFireFirmFirstFiscalFishFitFitnessFixFlagFlameFlashFlatFlavorFleeFlightFlipFloatFlockFloorFlowerFluidFlushFlyFoamFocusFogFoilFoldFollowFoodFootForceForestForgetForkFortuneForumForwardFossilFosterFoundFoxFragileFrameFrequentFreshFriendFringeFrogFrontFrostFrownFrozenFruitFuelFunFunnyFurnaceFuryFutureGadgetGainGalaxyGalleryGameGapGarageGarbageGardenGarlicGarmentGasGaspGateGatherGaugeGazeGeneralGeniusGenreGentleGenuineGestureGhostGiantGiftGiggleGingerGiraffeGirlGiveGladGlanceGlareGlassGlideGlimpseGlobeGloomGloryGloveGlowGlueGoatGoddessGoldGoodGooseGorillaGospelGossipGovernGownGrabGraceGrainGrantGrapeGrassGravityGreatGreenGridGriefGritGroceryGroupGrowGruntGuardGuessGuideGuiltGuitarGunGymHabitHairHalfHammerHamsterHandHappyHarborHardHarshHarvestHatHaveHawkHazardHeadHealthHeartHeavyHedgehogHeightHelloHelmetHelpHenHeroHiddenHighHillHintHipHireHistoryHobbyHockeyHoldHoleHolidayHollowHomeHoneyHoodHopeHornHorrorHorseHospitalHostHotelHourHoverHubHugeHumanHumbleHumorHundredHungryHuntHurdleHurryHurtHusbandHybridIceIconIdeaIdentifyIdleIgnoreIllIllegalIllnessImageImitateImmenseImmuneImpactImposeImproveImpulseInchIncludeIncomeIncreaseIndexIndicateIndoorIndustryInfantInflictInformInhaleInheritInitialInjectInjuryInmateInnerInnocentInputInquiryInsaneInsectInsideInspireInstallIntactInterestIntoInvestInviteInvolveIronIslandIsolateIssueItemIvoryJacketJaguarJarJazzJealousJeansJellyJewelJobJoinJokeJourneyJoyJudgeJuiceJumpJungleJuniorJunkJustKangarooKeenKeepKetchupKeyKickKidKidneyKindKingdomKissKitKitchenKiteKittenKiwiKneeKnifeKnockKnowLabLabelLaborLadderLadyLakeLampLanguageLaptopLargeLaterLatinLaughLaundryLavaLawLawnLawsuitLayerLazyLeaderLeafLearnLeaveLectureLeftLegLegalLegendLeisureLemonLendLengthLensLeopardLessonLetterLevelLiarLibertyLibraryLicenseLifeLiftLightLikeLimbLimitLinkLionLiquidListLittleLiveLizardLoadLoanLobsterLocalLockLogicLonelyLongLoopLotteryLoudLoungeLoveLoyalLuckyLuggageLumberLunarLunchLuxuryLyricsMachineMadMagicMagnetMaidMailMainMajorMakeMammalManManageMandateMangoMansionManualMapleMarbleMarchMarginMarineMarketMarriageMaskMassMasterMatchMaterialMathMatrixMatterMaximumMazeMeadowMeanMeasureMeatMechanicMedalMediaMelodyMeltMemberMemoryMentionMenuMercyMergeMeritMerryMeshMessageMetalMethodMiddleMidnightMilkMillionMimicMindMinimumMinorMinuteMiracleMirrorMiseryMissMistakeMixMixedMixtureMobileModelModifyMomMomentMonitorMonkeyMonsterMonthMoonMoralMoreMorningMosquitoMotherMotionMotorMountainMouseMoveMovieMuchMuffinMuleMultiplyMuscleMuseumMushroomMusicMustMutualMyselfMysteryMythNaiveNameNapkinNarrowNastyNationNatureNearNeckNeedNegativeNeglectNeitherNephewNerveNestNetNetworkNeutralNeverNewsNextNiceNightNobleNoiseNomineeNoodleNormalNorthNoseNotableNoteNothingNoticeNovelNowNuclearNumberNurseNutOakObeyObjectObligeObscureObserveObtainObviousOccurOceanOctoberOdorOffOfferOfficeOftenOilOkayOldOliveOlympicOmitOnceOneOnionOnlineOnlyOpenOperaOpinionOpposeOptionOrangeOrbitOrchardOrderOrdinaryOrganOrientOriginalOrphanOstrichOtherOutdoorOuterOutputOutsideOvalOvenOverOwnOwnerOxygenOysterOzonePactPaddlePagePairPalacePalmPandaPanelPanicPantherPaperParadeParentParkParrotPartyPassPatchPathPatientPatrolPatternPausePavePaymentPeacePeanutPearPeasantPelicanPenPenaltyPencilPeoplePepperPerfectPermitPersonPetPhonePhotoPhrasePhysicalPianoPicnicPicturePiecePigPigeonPillPilotPinkPioneerPipePistolPitchPizzaPlacePlanetPlasticPlatePlayPleasePledgePluckPlugPlungePoemPoetPointPolarPolePolicePondPonyPoolPopularPortionPositionPossiblePostPotatoPotteryPovertyPowderPowerPracticePraisePredictPreferPreparePresentPrettyPreventPricePridePrimaryPrintPriorityPrisonPrivatePrizeProblemProcessProduceProfitProgramProjectPromoteProofPropertyProsperProtectProudProvidePublicPuddingPullPulpPulsePumpkinPunchPupilPuppyPurchasePurityPurposePursePushPutPuzzlePyramidQualityQuantumQuarterQuestionQuickQuitQuizQuoteRabbitRaccoonRaceRackRadarRadioRailRainRaiseRallyRampRanchRandomRangeRapidRareRateRatherRavenRawRazorReadyRealReasonRebelRebuildRecallReceiveRecipeRecordRecycleReduceReflectReformRefuseRegionRegretRegularRejectRelaxReleaseReliefRelyRemainRememberRemindRemoveRenderRenewRentReopenRepairRepeatReplaceReportRequireRescueResembleResistResourceResponseResultRetireRetreatReturnReunionRevealReviewRewardRhythmRibRibbonRiceRichRideRidgeRifleRightRigidRingRiotRippleRiskRitualRivalRiverRoadRoastRobotRobustRocketRomanceRoofRookieRoomRoseRotateRoughRoundRouteRoyalRubberRudeRugRuleRunRunwayRuralSadSaddleSadnessSafeSailSaladSalmonSalonSaltSaluteSameSampleSandSatisfySatoshiSauceSausageSaveSayScaleScanScareScatterSceneSchemeSchoolScienceScissorsScorpionScoutScrapScreenScriptScrubSeaSearchSeasonSeatSecondSecretSectionSecuritySeedSeekSegmentSelectSellSeminarSeniorSenseSentenceSeriesServiceSessionSettleSetupSevenShadowShaftShallowShareShedShellSheriffShieldShiftShineShipShiverShockShoeShootShopShortShoulderShoveShrimpShrugShuffleShySiblingSickSideSiegeSightSignSilentSilkSillySilverSimilarSimpleSinceSingSirenSisterSituateSixSizeSkateSketchSkiSkillSkinSkirtSkullSlabSlamSleepSlenderSliceSlideSlightSlimSloganSlotSlowSlushSmallSmartSmileSmokeSmoothSnackSnakeSnapSniffSnowSoapSoccerSocialSockSodaSoftSolarSoldierSolidSolutionSolveSomeoneSongSoonSorrySortSoulSoundSoupSourceSouthSpaceSpareSpatialSpawnSpeakSpecialSpeedSpellSpendSphereSpiceSpiderSpikeSpinSpiritSplitSpoilSponsorSpoonSportSpotSpraySpreadSpringSpySquareSqueezeSquirrelStableStadiumStaffStageStairsStampStandStartStateStaySteakSteelStemStepStereoStickStillStingStockStomachStoneStoolStoryStoveStrategyStreetStrikeStrongStruggleStudentStuffStumbleStyleSubjectSubmitSubwaySuccessSuchSuddenSufferSugarSuggestSuitSummerSunSunnySunsetSuperSupplySupremeSureSurfaceSurgeSurpriseSurroundSurveySuspectSustainSwallowSwampSwapSwarmSwearSweetSwiftSwimSwingSwitchSwordSymbolSymptomSyrupSystemTableTackleTagTailTalentTalkTankTapeTargetTaskTasteTattooTaxiTeachTeamTellTenTenantTennisTentTermTestTextThankThatThemeThenTheoryThereTheyThingThisThoughtThreeThriveThrowThumbThunderTicketTideTigerTiltTimberTimeTinyTipTiredTissueTitleToastTobaccoTodayToddlerToeTogetherToiletTokenTomatoTomorrowToneTongueTonightToolToothTopTopicToppleTorchTornadoTortoiseTossTotalTouristTowardTowerTownToyTrackTradeTrafficTragicTrainTransferTrapTrashTravelTrayTreatTreeTrendTrialTribeTrickTriggerTrimTripTrophyTroubleTruckTrueTrulyTrumpetTrustTruthTryTubeTuitionTumbleTunaTunnelTurkeyTurnTurtleTwelveTwentyTwiceTwinTwistTwoTypeTypicalUglyUmbrellaUnableUnawareUncleUncoverUnderUndoUnfairUnfoldUnhappyUniformUniqueUnitUniverseUnknownUnlockUntilUnusualUnveilUpdateUpgradeUpholdUponUpperUpsetUrbanUrgeUsageUseUsedUsefulUselessUsualUtilityVacantVacuumVagueValidValleyValveVanVanishVaporVariousVastVaultVehicleVelvetVendorVentureVenueVerbVerifyVersionVeryVesselVeteranViableVibrantViciousVictoryVideoViewVillageVintageViolinVirtualVirusVisaVisitVisualVitalVividVocalVoiceVoidVolcanoVolumeVoteVoyageWageWagonWaitWalkWallWalnutWantWarfareWarmWarriorWashWaspWasteWaterWaveWayWealthWeaponWearWeaselWeatherWebWeddingWeekendWeirdWelcomeWestWetWhaleWhatWheatWheelWhenWhereWhipWhisperWideWidthWifeWildWillWinWindowWineWingWinkWinnerWinterWireWisdomWiseWishWitnessWolfWomanWonderWoodWoolWordWorkWorldWorryWorthWrapWreckWrestleWristWriteWrongYardYearYellowYouYoungYouthZebraZeroZoneZoo".replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),"0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60"!==tC.check(t)))throw tI=null,Error("BIP39 Wordlist for en (English) FAILED")}class tO extends tC{constructor(){super("en")}getWord(t){return tP(this),tI[t]}getWordIndex(t){return tP(this),tI.indexOf(t)}}let tx=new tO;tC.register(tx);let tk={en:tx},tF=new y.Yd("hdnode/5.7.0"),tB=j.O$.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),tL=_("Bitcoin seed");function tD(t){return(1<<t)-1<<8-t}function tU(t){return(0,p.$m)((0,p.Dv)(t),32)}function tG(t){return J.encode((0,p.zo)([t,(0,p.p3)(w(w(t)),0,4)]))}function tz(t){if(null==t)return tk.en;if("string"==typeof t){let e=tk[t];return null==e&&tF.throwArgumentError("unknown locale","wordlist",t),e}return t}let tJ={},tj="m/44'/60'/0'/0/0";class tH{constructor(t,e,r,n,i,f,o,a){var s;if(t!==tJ)throw Error("HDNode constructor cannot be called directly");if(e){let t=new t_(e);T(this,"privateKey",t.privateKey),T(this,"publicKey",t.compressedPublicKey)}else T(this,"privateKey",null),T(this,"publicKey",(0,p.Dv)(r));T(this,"parentFingerprint",n),T(this,"fingerprint",(0,p.p3)((s=w(this.publicKey),"0x"+b().ripemd160().update((0,p.lE)(s)).digest("hex")),0,4)),T(this,"address",tT(this.publicKey)),T(this,"chainCode",i),T(this,"index",f),T(this,"depth",o),null==a?(T(this,"mnemonic",null),T(this,"path",null)):"string"==typeof a?(T(this,"mnemonic",null),T(this,"path",a)):(T(this,"mnemonic",a),T(this,"path",a.path))}get extendedKey(){if(this.depth>=256)throw Error("Depth too large!");return tG((0,p.zo)([null!=this.privateKey?"0x0488ADE4":"0x0488B21E",(0,p.Dv)(this.depth),this.parentFingerprint,(0,p.$m)((0,p.Dv)(this.index),4),this.chainCode,null!=this.privateKey?(0,p.zo)(["0x00",this.privateKey]):this.publicKey]))}neuter(){return new tH(tJ,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)}_derive(t){if(t>4294967295)throw Error("invalid index - "+String(t));let e=this.path;e&&(e+="/"+(2147483647&t));let r=new Uint8Array(37);if(2147483648&t){if(!this.privateKey)throw Error("cannot derive child of neutered node");r.set((0,p.lE)(this.privateKey),1),e&&(e+="'")}else r.set((0,p.lE)(this.publicKey));for(let e=24;e>=0;e-=8)r[33+(e>>3)]=t>>24-e&255;let n=(0,p.lE)(M(a.sha512,this.chainCode,r)),i=n.slice(0,32),f=n.slice(32),o=null,s=null;this.privateKey?o=tU(j.O$.from(i).add(this.privateKey).mod(tB)):s=new t_((0,p.Dv)(i))._addPoint(this.publicKey);let u=e,l=this.mnemonic;return l&&(u=Object.freeze({phrase:l.phrase,path:e,locale:l.locale||"en"})),new tH(tJ,o,s,this.fingerprint,tU(f),t,this.depth+1,u)}derivePath(t){let e=t.split("/");if(0===e.length||"m"===e[0]&&0!==this.depth)throw Error("invalid path - "+t);"m"===e[0]&&e.shift();let r=this;for(let t=0;t<e.length;t++){let n=e[t];if(n.match(/^[0-9]+'$/)){let t=parseInt(n.substring(0,n.length-1));if(t>=2147483648)throw Error("invalid path index - "+n);r=r._derive(2147483648+t)}else if(n.match(/^[0-9]+$/)){let t=parseInt(n);if(t>=2147483648)throw Error("invalid path index - "+n);r=r._derive(t)}else throw Error("invalid path component - "+n)}return r}static _fromSeed(t,e){let r=(0,p.lE)(t);if(r.length<16||r.length>64)throw Error("invalid seed");let n=(0,p.lE)(M(a.sha512,tL,r));return new tH(tJ,tU(n.slice(0,32)),null,"0x00000000",tU(n.slice(32)),0,0,e)}static fromMnemonic(t,e,r){return r=tz(r),t=tX(tV(t,r),r),tH._fromSeed(function(t,e){e||(e="");let r=_("mnemonic"+e,s.NFKD);return E(_(t,s.NFKD),r,2048,64,"sha512")}(t,e),{phrase:t,path:"m",locale:r.locale})}static fromSeed(t){return tH._fromSeed(t,null)}static fromExtendedKey(t){let e=J.decode(t);(82!==e.length||tG(e.slice(0,78))!==t)&&tF.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");let r=e[4],n=(0,p.Dv)(e.slice(5,9)),i=parseInt((0,p.Dv)(e.slice(9,13)).substring(2),16),f=(0,p.Dv)(e.slice(13,45)),o=e.slice(45,78);switch((0,p.Dv)(e.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new tH(tJ,null,(0,p.Dv)(o),n,f,i,r,null);case"0x0488ade4":case"0x04358394 ":if(0!==o[0])break;return new tH(tJ,(0,p.Dv)(o.slice(1)),null,n,f,i,r,null)}return tF.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}function tV(t,e){e=tz(e),tF.checkNormalize();let r=e.split(t);if(r.length%3!=0)throw Error("invalid mnemonic");let n=(0,p.lE)(new Uint8Array(Math.ceil(11*r.length/8))),i=0;for(let t=0;t<r.length;t++){let f=e.getWordIndex(r[t].normalize("NFKD"));if(-1===f)throw Error("invalid mnemonic");for(let t=0;t<11;t++)f&1<<10-t&&(n[i>>3]|=1<<7-i%8),i++}let f=32*r.length/3,o=tD(r.length/3);if(((0,p.lE)(w(n.slice(0,f/8)))[0]&o)!=(n[n.length-1]&o))throw Error("invalid checksum");return(0,p.Dv)(n.slice(0,f/8))}function tX(t,e){if(e=tz(e),(t=(0,p.lE)(t)).length%4!=0||t.length<16||t.length>32)throw Error("invalid entropy");let r=[0],n=11;for(let e=0;e<t.length;e++)n>8?(r[r.length-1]<<=8,r[r.length-1]|=t[e],n-=8):(r[r.length-1]<<=n,r[r.length-1]|=t[e]>>8-n,r.push(t[e]&(1<<8-n)-1),n+=3);let i=t.length/4,f=(0,p.lE)(w(t))[0]&tD(i);return r[r.length-1]<<=i,r[r.length-1]|=f>>8-i,e.join(r.map(t=>e.getWord(t)))}let tq=new y.Yd("random/5.7.0"),tZ=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r.g)return r.g;throw Error("unable to locate global object")}(),tK=tZ.crypto||tZ.msCrypto;function tW(t){(t<=0||t>1024||t%1||t!=t)&&tq.throwArgumentError("invalid length","length",t);let e=new Uint8Array(t);return tK.getRandomValues(e),(0,p.lE)(e)}tK&&tK.getRandomValues||(tq.warn("WARNING: Missing strong random number source"),tK={getRandomValues:function(t){return tq.throwError("no secure random source avaialble",y.Yd.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}});let tY=new y.Yd(I);function tQ(t){return null!=t&&t.mnemonic&&t.mnemonic.phrase}class t$ extends C{isKeystoreAccount(t){return!!(t&&t._isKeystoreAccount)}}function t0(t,e){let r=P(k(t,"crypto/ciphertext"));if((0,p.Dv)((0,m.w)((0,p.zo)([e.slice(16,32),r]))).substring(2)!==k(t,"crypto/mac").toLowerCase())throw Error("invalid password");let n=function(t,e,r){if("aes-128-ctr"===k(t,"crypto/cipher")){let n=P(k(t,"crypto/cipherparams/iv")),i=new(c()).Counter(n),f=new(c()).ModeOfOperation.ctr(e,i);return(0,p.lE)(f.decrypt(r))}return null}(t,e.slice(0,16),r);n||tY.throwError("unsupported cipher",y.Yd.errors.UNSUPPORTED_OPERATION,{operation:"decrypt"});let i=e.slice(32,64),f=tT(n);if(t.address){let e=t.address.toLowerCase();if("0x"!==e.substring(0,2)&&(e="0x"+e),(0,d.Kn)(e)!==f)throw Error("address mismatch")}let o={_isKeystoreAccount:!0,address:f,privateKey:(0,p.Dv)(n)};if("0.1"===k(t,"x-ethers/version")){let e=P(k(t,"x-ethers/mnemonicCiphertext")),r=P(k(t,"x-ethers/mnemonicCounter")),n=new(c()).Counter(r),f=new(c()).ModeOfOperation.ctr(i,n),a=k(t,"x-ethers/path")||tj,s=k(t,"x-ethers/locale")||"en",u=(0,p.lE)(f.decrypt(e));try{let t=tX(u,s),e=tH.fromMnemonic(t,null,s).derivePath(a);if(e.privateKey!=o.privateKey)throw Error("mnemonic mismatch");o.mnemonic=e.mnemonic}catch(t){if(t.code!==y.Yd.errors.INVALID_ARGUMENT||"wordlist"!==t.argument)throw t}}return new t$(o)}function t1(t,e,r,n,i){return(0,p.lE)(E(t,e,r,n,i))}function t6(t,e,r,n,i){return Promise.resolve(t1(t,e,r,n,i))}function t5(t,e,r,n,i){let f=x(e),o=k(t,"crypto/kdf");if(o&&"string"==typeof o){let e=function(t,e){return tY.throwArgumentError("invalid key-derivation function parameters",t,e)};if("scrypt"===o.toLowerCase()){let r=P(k(t,"crypto/kdfparams/salt")),a=parseInt(k(t,"crypto/kdfparams/n")),s=parseInt(k(t,"crypto/kdfparams/r")),u=parseInt(k(t,"crypto/kdfparams/p"));a&&s&&u||e("kdf",o),(a&a-1)!=0&&e("N",a);let l=parseInt(k(t,"crypto/kdfparams/dklen"));return 32!==l&&e("dklen",l),n(f,r,a,s,u,64,i)}if("pbkdf2"===o.toLowerCase()){let n=P(k(t,"crypto/kdfparams/salt")),i=null,o=k(t,"crypto/kdfparams/prf");"hmac-sha256"===o?i="sha256":"hmac-sha512"===o?i="sha512":e("prf",o);let a=parseInt(k(t,"crypto/kdfparams/c")),s=parseInt(k(t,"crypto/kdfparams/dklen"));return 32!==s&&e("dklen",s),r(f,n,a,s,i)}}return tY.throwArgumentError("unsupported key-derivation function","kdf",o)}function t2(t,e){let r=JSON.parse(t),n=t5(r,e,t1,G().syncScrypt);return t0(r,n)}function t8(t,e,r){var n,i,f,o;return n=this,i=void 0,f=void 0,o=function*(){let n=JSON.parse(t),i=yield t5(n,e,t6,G().scrypt,r);return t0(n,i)},new(f||(f=Promise))(function(t,e){function r(t){try{s(o.next(t))}catch(t){e(t)}}function a(t){try{s(o.throw(t))}catch(t){e(t)}}function s(e){var n;e.done?t(e.value):((n=e.value)instanceof f?n:new f(function(t){t(n)})).then(r,a)}s((o=o.apply(n,i||[])).next())})}function t3(t,e,r,n){try{if((0,d.Kn)(t.address)!==tT(t.privateKey))throw Error("address/privateKey mismatch");if(tQ(t)){let e=t.mnemonic;if(tH.fromMnemonic(e.phrase,null,e.locale).derivePath(e.path||tj).privateKey!=t.privateKey)throw Error("mnemonic mismatch")}}catch(t){return Promise.reject(t)}"function"!=typeof r||n||(n=r,r={}),r||(r={});let i=(0,p.lE)(t.privateKey),f=x(e),o=null,a=null,s=null;if(tQ(t)){let e=t.mnemonic;o=(0,p.lE)(tV(e.phrase,e.locale||"en")),a=e.path||tj,s=e.locale||"en"}let u=r.client;u||(u="ethers.js");let l=null;l=r.salt?(0,p.lE)(r.salt):tW(32);let h=null;if(r.iv){if(16!==(h=(0,p.lE)(r.iv)).length)throw Error("invalid iv")}else h=tW(16);let g=null;if(r.uuid){if(16!==(g=(0,p.lE)(r.uuid)).length)throw Error("invalid uuid")}else g=tW(16);let b=131072,y=8,v=1;return r.scrypt&&(r.scrypt.N&&(b=r.scrypt.N),r.scrypt.r&&(y=r.scrypt.r),r.scrypt.p&&(v=r.scrypt.p)),G().scrypt(f,l,b,y,v,64,n).then(e=>{let r=(e=(0,p.lE)(e)).slice(0,16),n=e.slice(16,32),f=e.slice(32,64),d=new(c()).Counter(h),w=new(c()).ModeOfOperation.ctr(r,d),M=(0,p.lE)(w.encrypt(i)),E=(0,m.w)((0,p.zo)([n,M])),A={address:t.address.substring(2).toLowerCase(),id:function(t){let e=(0,p.lE)(t);e[6]=15&e[6]|64,e[8]=63&e[8]|128;let r=(0,p.Dv)(e);return[r.substring(2,10),r.substring(10,14),r.substring(14,18),r.substring(18,22),r.substring(22,34)].join("-")}(g),version:3,Crypto:{cipher:"aes-128-ctr",cipherparams:{iv:(0,p.Dv)(h).substring(2)},ciphertext:(0,p.Dv)(M).substring(2),kdf:"scrypt",kdfparams:{salt:(0,p.Dv)(l).substring(2),n:b,dklen:32,p:v,r:y},mac:E.substring(2)}};if(o){let t=tW(16),e=new(c()).Counter(t),r=new(c()).ModeOfOperation.ctr(f,e),n=(0,p.lE)(r.encrypt(o)),i=new Date,l=i.getUTCFullYear()+"-"+O(i.getUTCMonth()+1,2)+"-"+O(i.getUTCDate(),2)+"T"+O(i.getUTCHours(),2)+"-"+O(i.getUTCMinutes(),2)+"-"+O(i.getUTCSeconds(),2)+".0Z";A["x-ethers"]={client:u,gethFilename:"UTC--"+l+"--"+A.address,mnemonicCounter:(0,p.Dv)(t).substring(2),mnemonicCiphertext:(0,p.Dv)(n).substring(2),path:a,locale:s,version:"0.1"}}return JSON.stringify(A)})}function t4(t,e,r){if((0,D.LW)(t)){r&&r(0);let n=L(t,e);return r&&r(1),Promise.resolve(n)}return(0,D.aO)(t)?t8(t,e,r):Promise.reject(Error("invalid JSON wallet"))}function t9(t,e){if((0,D.LW)(t))return L(t,e);if((0,D.aO)(t))return t2(t,e);throw Error("invalid JSON wallet")}},31674:function(t,e,r){"use strict";r.d(e,{LW:function(){return i},Rb:function(){return o},aO:function(){return f}});var n=r(13104);function i(t){let e=null;try{e=JSON.parse(t)}catch(t){return!1}return e.encseed&&e.ethaddr}function f(t){let e=null;try{e=JSON.parse(t)}catch(t){return!1}return!!e.version&&parseInt(e.version)===e.version&&3===parseInt(e.version)}function o(t){if(i(t))try{return(0,n.Kn)(JSON.parse(t).ethaddr)}catch(t){return null}if(f(t))try{return(0,n.Kn)(JSON.parse(t).address)}catch(t){}return null}},13104:function(t,e,r){"use strict";r.d(e,{Kn:function(){return l}});var n=r(29394),i=r(81807),f=r(43873);let o=new(r(6523)).Yd("address/5.7.0");function a(t){(0,n.A7)(t,20)||o.throwArgumentError("invalid address","address",t);let e=(t=t.toLowerCase()).substring(2).split(""),r=new Uint8Array(40);for(let t=0;t<40;t++)r[t]=e[t].charCodeAt(0);let i=(0,n.lE)((0,f.w)(r));for(let t=0;t<40;t+=2)i[t>>1]>>4>=8&&(e[t]=e[t].toUpperCase()),(15&i[t>>1])>=8&&(e[t+1]=e[t+1].toUpperCase());return"0x"+e.join("")}let s={};for(let t=0;t<10;t++)s[String(t)]=String(t);for(let t=0;t<26;t++)s[String.fromCharCode(65+t)]=String(10+t);let u=Math.floor(Math.log10?Math.log10(9007199254740991):Math.log(9007199254740991)/Math.LN10);function l(t){let e=null;if("string"!=typeof t&&o.throwArgumentError("invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==t.substring(0,2)&&(t="0x"+t),e=a(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&o.throwArgumentError("bad address checksum","address",t);else if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(t.substring(2,4)!==function(t){let e=(t=(t=t.toUpperCase()).substring(4)+t.substring(0,2)+"00").split("").map(t=>s[t]).join("");for(;e.length>=u;){let t=e.substring(0,u);e=parseInt(t,10)%97+e.substring(t.length)}let r=String(98-parseInt(e,10)%97);for(;r.length<2;)r="0"+r;return r}(t)&&o.throwArgumentError("bad icap checksum","address",t),e=(0,i.g$)(t.substring(4));e.length<40;)e="0"+e;e=a("0x"+e)}else o.throwArgumentError("invalid address","address",t);return e}},81807:function(t,e,r){"use strict";r.d(e,{O$:function(){return h},g$:function(){return g}});var n=r(38253),i=r.n(n),f=r(29394),o=r(6523),a=i().BN;let s=new o.Yd("bignumber/5.7.0"),u={},l=!1;class h{constructor(t,e){t!==u&&s.throwError("cannot call constructor directly; use BigNumber.from",o.Yd.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=e,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return d(p(this).fromTwos(t))}toTwos(t){return d(p(this).toTwos(t))}abs(){return"-"===this._hex[0]?h.from(this._hex.substring(1)):this}add(t){return d(p(this).add(p(t)))}sub(t){return d(p(this).sub(p(t)))}div(t){return h.from(t).isZero()&&m("division-by-zero","div"),d(p(this).div(p(t)))}mul(t){return d(p(this).mul(p(t)))}mod(t){let e=p(t);return e.isNeg()&&m("division-by-zero","mod"),d(p(this).umod(e))}pow(t){let e=p(t);return e.isNeg()&&m("negative-power","pow"),d(p(this).pow(e))}and(t){let e=p(t);return(this.isNegative()||e.isNeg())&&m("unbound-bitwise-result","and"),d(p(this).and(e))}or(t){let e=p(t);return(this.isNegative()||e.isNeg())&&m("unbound-bitwise-result","or"),d(p(this).or(e))}xor(t){let e=p(t);return(this.isNegative()||e.isNeg())&&m("unbound-bitwise-result","xor"),d(p(this).xor(e))}mask(t){return(this.isNegative()||t<0)&&m("negative-width","mask"),d(p(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&m("negative-width","shl"),d(p(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&m("negative-width","shr"),d(p(this).shrn(t))}eq(t){return p(this).eq(p(t))}lt(t){return p(this).lt(p(t))}lte(t){return p(this).lte(p(t))}gt(t){return p(this).gt(p(t))}gte(t){return p(this).gte(p(t))}isNegative(){return"-"===this._hex[0]}isZero(){return p(this).isZero()}toNumber(){try{return p(this).toNumber()}catch(t){m("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(t){}return s.throwError("this platform does not support BigInt",o.Yd.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?l||(l=!0,s.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?s.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",o.Yd.errors.UNEXPECTED_ARGUMENT,{}):s.throwError("BigNumber.toString does not accept parameters",o.Yd.errors.UNEXPECTED_ARGUMENT,{})),p(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof h)return t;if("string"==typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new h(u,c(t)):t.match(/^-?[0-9]+$/)?new h(u,c(new a(t))):s.throwArgumentError("invalid BigNumber string","value",t);if("number"==typeof t)return t%1&&m("underflow","BigNumber.from",t),(t>=9007199254740991||t<=-9007199254740991)&&m("overflow","BigNumber.from",t),h.from(String(t));if("bigint"==typeof t)return h.from(t.toString());if((0,f._t)(t))return h.from((0,f.Dv)(t));if(t){if(t.toHexString){let e=t.toHexString();if("string"==typeof e)return h.from(e)}else{let e=t._hex;if(null==e&&"BigNumber"===t.type&&(e=t.hex),"string"==typeof e&&((0,f.A7)(e)||"-"===e[0]&&(0,f.A7)(e.substring(1))))return h.from(e)}}return s.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!!(t&&t._isBigNumber)}}function c(t){if("string"!=typeof t)return c(t.toString(16));if("-"===t[0])return("-"===(t=t.substring(1))[0]&&s.throwArgumentError("invalid hex","value",t),"0x00"===(t=c(t)))?t:"-"+t;if("0x"!==t.substring(0,2)&&(t="0x"+t),"0x"===t)return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&"0x00"===t.substring(0,4);)t="0x"+t.substring(4);return t}function d(t){return h.from(c(t))}function p(t){let e=h.from(t).toHexString();return"-"===e[0]?new a("-"+e.substring(3),16):new a(e.substring(2),16)}function m(t,e,r){let n={fault:t,operation:e};return null!=r&&(n.value=r),s.throwError(t,o.Yd.errors.NUMERIC_FAULT,n)}function g(t){return new a(t,36).toString(16)}},29394:function(t,e,r){"use strict";r.d(e,{lE:function(){return s},zo:function(){return u},E1:function(){return d},p3:function(){return p},$m:function(){return m},Dv:function(){return c},_t:function(){return a},A7:function(){return l},N:function(){return g}});let n=new(r(6523)).Yd("bytes/5.7.0");function i(t){return!!t.toHexString}function f(t){return t.slice||(t.slice=function(){let e=Array.prototype.slice.call(arguments);return f(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function o(t){return"number"==typeof t&&t==t&&t%1==0}function a(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"==typeof t||!o(t.length)||t.length<0)return!1;for(let e=0;e<t.length;e++){let r=t[e];if(!o(r)||r<0||r>=256)return!1}return!0}function s(t,e){if(e||(e={}),"number"==typeof t){n.checkSafeUint53(t,"invalid arrayify value");let e=[];for(;t;)e.unshift(255&t),t=parseInt(String(t/256));return 0===e.length&&e.push(0),f(new Uint8Array(e))}if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),i(t)&&(t=t.toHexString()),l(t)){let r=t.substring(2);r.length%2&&("left"===e.hexPad?r="0"+r:"right"===e.hexPad?r+="0":n.throwArgumentError("hex data is odd-length","value",t));let i=[];for(let t=0;t<r.length;t+=2)i.push(parseInt(r.substring(t,t+2),16));return f(new Uint8Array(i))}return a(t)?f(new Uint8Array(t)):n.throwArgumentError("invalid arrayify value","value",t)}function u(t){let e=t.map(t=>s(t)),r=new Uint8Array(e.reduce((t,e)=>t+e.length,0));return e.reduce((t,e)=>(r.set(e,t),t+e.length),0),f(r)}function l(t,e){return"string"==typeof t&&!!t.match(/^0x[0-9A-Fa-f]*$/)&&(!e||t.length===2+2*e)}let h="0123456789abcdef";function c(t,e){if(e||(e={}),"number"==typeof t){n.checkSafeUint53(t,"invalid hexlify value");let e="";for(;t;)e=h[15&t]+e,t=Math.floor(t/16);return e.length?(e.length%2&&(e="0"+e),"0x"+e):"0x00"}if("bigint"==typeof t)return(t=t.toString(16)).length%2?"0x0"+t:"0x"+t;if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),i(t))return t.toHexString();if(l(t))return t.length%2&&("left"===e.hexPad?t="0x0"+t.substring(2):"right"===e.hexPad?t+="0":n.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(a(t)){let e="0x";for(let r=0;r<t.length;r++){let n=t[r];e+=h[(240&n)>>4]+h[15&n]}return e}return n.throwArgumentError("invalid hexlify value","value",t)}function d(t){if("string"!=typeof t)t=c(t);else if(!l(t)||t.length%2)return null;return(t.length-2)/2}function p(t,e,r){return("string"!=typeof t?t=c(t):(!l(t)||t.length%2)&&n.throwArgumentError("invalid hexData","value",t),e=2+2*e,null!=r)?"0x"+t.substring(e,2+2*r):"0x"+t.substring(e)}function m(t,e){for("string"!=typeof t?t=c(t):l(t)||n.throwArgumentError("invalid hex string","value",t),t.length>2*e+2&&n.throwArgumentError("value out of range","value",arguments[1]);t.length<2*e+2;)t="0x0"+t.substring(2);return t}function g(t){let e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(l(t)&&!(t.length%2)||a(t)){let r=s(t);64===r.length?(e.v=27+(r[32]>>7),r[32]&=127,e.r=c(r.slice(0,32)),e.s=c(r.slice(32,64))):65===r.length?(e.r=c(r.slice(0,32)),e.s=c(r.slice(32,64)),e.v=r[64]):n.throwArgumentError("invalid signature string","signature",t),e.v<27&&(0===e.v||1===e.v?e.v+=27:n.throwArgumentError("signature invalid v byte","signature",t)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(r[32]|=128),e._vs=c(r.slice(32,64))}else{if(e.r=t.r,e.s=t.s,e.v=t.v,e.recoveryParam=t.recoveryParam,e._vs=t._vs,null!=e._vs){let r=function(t,e){(t=s(t)).length>e&&n.throwArgumentError("value out of range","value",arguments[0]);let r=new Uint8Array(e);return r.set(t,e-t.length),f(r)}(s(e._vs),32);e._vs=c(r);let i=r[0]>=128?1:0;null==e.recoveryParam?e.recoveryParam=i:e.recoveryParam!==i&&n.throwArgumentError("signature recoveryParam mismatch _vs","signature",t),r[0]&=127;let o=c(r);null==e.s?e.s=o:e.s!==o&&n.throwArgumentError("signature v mismatch _vs","signature",t)}if(null==e.recoveryParam)null==e.v?n.throwArgumentError("signature missing v and recoveryParam","signature",t):0===e.v||1===e.v?e.recoveryParam=e.v:e.recoveryParam=1-e.v%2;else if(null==e.v)e.v=27+e.recoveryParam;else{let r=0===e.v||1===e.v?e.v:1-e.v%2;e.recoveryParam!==r&&n.throwArgumentError("signature recoveryParam mismatch v","signature",t)}null!=e.r&&l(e.r)?e.r=m(e.r,32):n.throwArgumentError("signature missing or invalid r","signature",t),null!=e.s&&l(e.s)?e.s=m(e.s,32):n.throwArgumentError("signature missing or invalid s","signature",t);let r=s(e.s);r[0]>=128&&n.throwArgumentError("signature s out of range","signature",t),e.recoveryParam&&(r[0]|=128);let i=c(r);e._vs&&(l(e._vs)||n.throwArgumentError("signature invalid _vs","signature",t),e._vs=m(e._vs,32)),null==e._vs?e._vs=i:e._vs!==i&&n.throwArgumentError("signature _vs mismatch v and s","signature",t)}return e.yParityAndS=e._vs,e.compact=e.r+e.yParityAndS.substring(2),e}},43873:function(t,e,r){"use strict";r.d(e,{w:function(){return o}});var n=r(72617),i=r.n(n),f=r(29394);function o(t){return"0x"+i().keccak_256((0,f.lE)(t))}},6523:function(t,e,r){"use strict";var n,i,f,o;r.d(e,{Yd:function(){return p}});let a=!1,s=!1,u={debug:1,default:2,info:2,warning:3,error:4,off:5},l=u.default,h=null,c=function(){try{let t=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test"!=="test".normalize(e))throw Error("bad normalize")}catch(r){t.push(e)}}),t.length)throw Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw Error("broken implementation")}catch(t){return t.message}return null}();(f=n||(n={})).DEBUG="DEBUG",f.INFO="INFO",f.WARNING="WARNING",f.ERROR="ERROR",f.OFF="OFF",(o=i||(i={})).UNKNOWN_ERROR="UNKNOWN_ERROR",o.NOT_IMPLEMENTED="NOT_IMPLEMENTED",o.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",o.NETWORK_ERROR="NETWORK_ERROR",o.SERVER_ERROR="SERVER_ERROR",o.TIMEOUT="TIMEOUT",o.BUFFER_OVERRUN="BUFFER_OVERRUN",o.NUMERIC_FAULT="NUMERIC_FAULT",o.MISSING_NEW="MISSING_NEW",o.INVALID_ARGUMENT="INVALID_ARGUMENT",o.MISSING_ARGUMENT="MISSING_ARGUMENT",o.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",o.CALL_EXCEPTION="CALL_EXCEPTION",o.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",o.NONCE_EXPIRED="NONCE_EXPIRED",o.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",o.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",o.TRANSACTION_REPLACED="TRANSACTION_REPLACED",o.ACTION_REJECTED="ACTION_REJECTED";let d="0123456789abcdef";class p{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){let r=t.toLowerCase();null==u[r]&&this.throwArgumentError("invalid log level name","logLevel",t),l>u[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(s)return this.makeError("censored error",e,{});e||(e=p.errors.UNKNOWN_ERROR),r||(r={});let n=[];Object.keys(r).forEach(t=>{let e=r[t];try{if(e instanceof Uint8Array){let r="";for(let t=0;t<e.length;t++)r+=d[e[t]>>4]+d[15&e[t]];n.push(t+"=Uint8Array(0x"+r+")")}else n.push(t+"="+JSON.stringify(e))}catch(e){n.push(t+"="+JSON.stringify(r[t].toString()))}}),n.push(`code=${e}`),n.push(`version=${this.version}`);let f=t,o="";switch(e){case i.NUMERIC_FAULT:{o="NUMERIC_FAULT";let e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":o+="-"+e;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result"}break}case i.CALL_EXCEPTION:case i.INSUFFICIENT_FUNDS:case i.MISSING_NEW:case i.NONCE_EXPIRED:case i.REPLACEMENT_UNDERPRICED:case i.TRANSACTION_REPLACED:case i.UNPREDICTABLE_GAS_LIMIT:o=e}o&&(t+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),n.length&&(t+=" ("+n.join(", ")+")");let a=Error(t);return a.reason=f,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"),c&&this.throwError("platform missing String.prototype.normalize",p.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:c})}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:"",t<e&&this.throwError("missing argument"+r,p.errors.MISSING_ARGUMENT,{count:t,expectedCount:e}),t>e&&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 h||(h=new p("logger/5.7.0")),h}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",p.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),a){if(!t)return;this.globalLogger().throwError("error censorship permanent",p.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}s=!!t,a=!!e}static setLogLevel(t){let e=u[t.toLowerCase()];if(null==e){p.globalLogger().warn("invalid log level - "+t);return}l=e}static from(t){return new p(t)}}p.errors=i,p.levels=n},38253:function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw 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 f(t,e,r){if(f.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"))}"object"==typeof t?t.exports=f:e.BN=f,f.BN=f,f.wordSize=26;try{h="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(76021).Buffer}catch(t){}function o(t,e){var r=t.charCodeAt(e);return r>=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 a(t,e,r){var n=o(t,r);return r-1>=e&&(n|=o(t,r-1)<<4),n}function s(t,e,r,i){for(var f=0,o=0,a=Math.min(t.length,r),s=e;s<a;s++){var u=t.charCodeAt(s)-48;f*=i,o=u>=49?u-49+10:u>=17?u-17+10:u,n(u>=0&&o<i,"Invalid character"),f+=o}return f}function u(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(f.isBN=function(t){return t instanceof f||null!==t&&"object"==typeof t&&t.constructor.wordSize===f.wordSize&&Array.isArray(t.words)},f.max=function(t,e){return t.cmp(e)>0?t:e},f.min=function(t,e){return 0>t.cmp(e)?t:e},f.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);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},f.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)},f.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=Array(this.length);for(var i,f,o=0;o<this.length;o++)this.words[o]=0;var a=0;if("be"===r)for(o=t.length-1,i=0;o>=0;o-=3)f=t[o]|t[o-1]<<8|t[o-2]<<16,this.words[i]|=f<<a&67108863,this.words[i+1]=f>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);else if("le"===r)for(o=0,i=0;o<t.length;o+=3)f=t[o]|t[o+1]<<8|t[o+2]<<16,this.words[i]|=f<<a&67108863,this.words[i+1]=f>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);return this._strip()},f.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=Array(this.length);for(var n,i=0;i<this.length;i++)this.words[i]=0;var f=0,o=0;if("be"===r)for(i=t.length-1;i>=e;i-=2)n=a(t,e,i)<<f,this.words[o]|=67108863&n,f>=18?(f-=18,o+=1,this.words[o]|=n>>>26):f+=8;else for(i=(t.length-e)%2==0?e+1:e;i<t.length;i+=2)n=a(t,e,i)<<f,this.words[o]|=67108863&n,f>=18?(f-=18,o+=1,this.words[o]|=n>>>26):f+=8;this._strip()},f.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 f=t.length-r,o=f%n,a=Math.min(f,f-o)+r,u=0,l=r;l<a;l+=n)u=s(t,l,l+n,e),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==o){var h=1;for(u=s(t,l,t.length,e),l=0;l<o;l++)h*=e;this.imuln(h),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this._strip()},f.prototype.copy=function(t){t.words=Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},f.prototype._move=function(t){u(t,this)},f.prototype.clone=function(){var t=new f(null);return this.copy(t),t},f.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},f.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},f.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{f.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(t){f.prototype.inspect=l}else f.prototype.inspect=l;function l(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var h,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"],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];function m(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],f=0|e.words[0],o=i*f,a=67108863&o,s=o/67108864|0;r.words[0]=a;for(var u=1;u<n;u++){for(var l=s>>>26,h=67108863&s,c=Math.min(u,e.length-1),d=Math.max(0,u-t.length+1);d<=c;d++){var p=u-d|0;l+=(o=(i=0|t.words[p])*(f=0|e.words[d])+h)/67108864|0,h=67108863&o}r.words[u]=0|h,s=0|l}return 0!==s?r.words[u]=0|s:r.length--,r._strip()}f.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var r,i=0,f=0,o=0;o<this.length;o++){var a=this.words[o],s=((a<<i|f)&16777215).toString(16);f=a>>>24-i&16777215,(i+=2)>=26&&(i-=26,o--),r=0!==f||o!==this.length-1?c[6-s.length]+s+r:s+r}for(0!==f&&(r=f.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var u=d[t],l=p[t];r="";var h=this.clone();for(h.negative=0;!h.isZero();){var m=h.modrn(l).toString(t);r=(h=h.idivn(l)).isZero()?m+r:c[u-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},f.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},f.prototype.toJSON=function(){return this.toString(16,2)},h&&(f.prototype.toBuffer=function(t,e){return this.toArrayLike(h,t,e)}),f.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},f.prototype.toArrayLike=function(t,e,r){this._strip();var i=this.byteLength(),f=r||Math.max(1,i);n(i<=f,"byte array longer than desired length"),n(f>0,"Requested array length <= 0");var o=t.allocUnsafe?t.allocUnsafe(f):new t(f);return this["_toArrayLike"+("le"===e?"LE":"BE")](o,i),o},f.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,i=0,f=0;i<this.length;i++){var o=this.words[i]<<f|n;t[r++]=255&o,r<t.length&&(t[r++]=o>>8&255),r<t.length&&(t[r++]=o>>16&255),6===f?(r<t.length&&(t[r++]=o>>24&255),n=0,f=0):(n=o>>>24,f+=2)}if(r<t.length)for(t[r++]=n;r<t.length;)t[r++]=0},f.prototype._toArrayLikeBE=function(t,e){for(var r=t.length-1,n=0,i=0,f=0;i<this.length;i++){var o=this.words[i]<<f|n;t[r--]=255&o,r>=0&&(t[r--]=o>>8&255),r>=0&&(t[r--]=o>>16&255),6===f?(r>=0&&(t[r--]=o>>24&255),n=0,f=0):(n=o>>>24,f+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?f.prototype._countBits=function(t){return 32-Math.clz32(t)}:f.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},f.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return(8191&e)==0&&(r+=13,e>>>=13),(127&e)==0&&(r+=7,e>>>=7),(15&e)==0&&(r+=4,e>>>=4),(3&e)==0&&(r+=2,e>>>=2),(1&e)==0&&r++,r},f.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return(this.length-1)*26+e},f.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},f.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},f.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},f.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},f.prototype.isNeg=function(){return 0!==this.negative},f.prototype.neg=function(){return this.clone().ineg()},f.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},f.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},f.prototype.ior=function(t){return n((this.negative|t.negative)==0),this.iuor(t)},f.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},f.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},f.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this._strip()},f.prototype.iand=function(t){return n((this.negative|t.negative)==0),this.iuand(t)},f.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},f.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},f.prototype.iuxor=function(t){this.length>t.length?(e=this,r=t):(e=t,r=this);for(var e,r,n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this._strip()},f.prototype.ixor=function(t){return n((this.negative|t.negative)==0),this.iuxor(t)},f.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},f.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},f.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;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},f.prototype.notn=function(t){return this.clone().inotn(t)},f.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),e?this.words[r]=this.words[r]|1<<i:this.words[r]=this.words[r]&~(1<<i),this._strip()},f.prototype.iadd=function(t){if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var e,r,n,i=0,f=0;f<n.length;f++)e=(0|r.words[f])+(0|n.words[f])+i,this.words[f]=67108863&e,i=e>>>26;for(;0!==i&&f<r.length;f++)e=(0|r.words[f])+i,this.words[f]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;f<r.length;f++)this.words[f]=r.words[f];return this},f.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},f.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e,r,n=this.iadd(t);return t.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(e=this,r=t):(e=t,r=this);for(var f=0,o=0;o<r.length;o++)f=(n=(0|e.words[o])-(0|r.words[o])+f)>>26,this.words[o]=67108863&n;for(;0!==f&&o<e.length;o++)f=(n=(0|e.words[o])+f)>>26,this.words[o]=67108863&n;if(0===f&&o<e.length&&e!==this)for(;o<e.length;o++)this.words[o]=e.words[o];return this.length=Math.max(this.length,o),e!==this&&(this.negative=1),this._strip()},f.prototype.sub=function(t){return this.clone().isub(t)};var g=function(t,e,r){var n,i,f,o=t.words,a=e.words,s=r.words,u=0,l=0|o[0],h=8191&l,c=l>>>13,d=0|o[1],p=8191&d,m=d>>>13,g=0|o[2],b=8191&g,y=g>>>13,v=0|o[3],w=8191&v,M=v>>>13,E=0|o[4],A=8191&E,S=E>>>13,_=0|o[5],N=8191&_,T=_>>>13,R=0|o[6],C=8191&R,I=R>>>13,P=0|o[7],O=8191&P,x=P>>>13,k=0|o[8],F=8191&k,B=k>>>13,L=0|o[9],D=8191&L,U=L>>>13,G=0|a[0],z=8191&G,J=G>>>13,j=0|a[1],H=8191&j,V=j>>>13,X=0|a[2],q=8191&X,Z=X>>>13,K=0|a[3],W=8191&K,Y=K>>>13,Q=0|a[4],$=8191&Q,tt=Q>>>13,te=0|a[5],tr=8191&te,tn=te>>>13,ti=0|a[6],tf=8191&ti,to=ti>>>13,ta=0|a[7],ts=8191&ta,tu=ta>>>13,tl=0|a[8],th=8191&tl,tc=tl>>>13,td=0|a[9],tp=8191&td,tm=td>>>13;r.negative=t.negative^e.negative,r.length=19;var tg=(u+(n=Math.imul(h,z))|0)+((8191&(i=(i=Math.imul(h,J))+Math.imul(c,z)|0))<<13)|0;u=((f=Math.imul(c,J))+(i>>>13)|0)+(tg>>>26)|0,tg&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,J))+Math.imul(m,z)|0,f=Math.imul(m,J);var tb=(u+(n=n+Math.imul(h,H)|0)|0)+((8191&(i=(i=i+Math.imul(h,V)|0)+Math.imul(c,H)|0))<<13)|0;u=((f=f+Math.imul(c,V)|0)+(i>>>13)|0)+(tb>>>26)|0,tb&=67108863,n=Math.imul(b,z),i=(i=Math.imul(b,J))+Math.imul(y,z)|0,f=Math.imul(y,J),n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,H)|0,f=f+Math.imul(m,V)|0;var ty=(u+(n=n+Math.imul(h,q)|0)|0)+((8191&(i=(i=i+Math.imul(h,Z)|0)+Math.imul(c,q)|0))<<13)|0;u=((f=f+Math.imul(c,Z)|0)+(i>>>13)|0)+(ty>>>26)|0,ty&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,J))+Math.imul(M,z)|0,f=Math.imul(M,J),n=n+Math.imul(b,H)|0,i=(i=i+Math.imul(b,V)|0)+Math.imul(y,H)|0,f=f+Math.imul(y,V)|0,n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,q)|0,f=f+Math.imul(m,Z)|0;var tv=(u+(n=n+Math.imul(h,W)|0)|0)+((8191&(i=(i=i+Math.imul(h,Y)|0)+Math.imul(c,W)|0))<<13)|0;u=((f=f+Math.imul(c,Y)|0)+(i>>>13)|0)+(tv>>>26)|0,tv&=67108863,n=Math.imul(A,z),i=(i=Math.imul(A,J))+Math.imul(S,z)|0,f=Math.imul(S,J),n=n+Math.imul(w,H)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(M,H)|0,f=f+Math.imul(M,V)|0,n=n+Math.imul(b,q)|0,i=(i=i+Math.imul(b,Z)|0)+Math.imul(y,q)|0,f=f+Math.imul(y,Z)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,W)|0,f=f+Math.imul(m,Y)|0;var tw=(u+(n=n+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(c,$)|0))<<13)|0;u=((f=f+Math.imul(c,tt)|0)+(i>>>13)|0)+(tw>>>26)|0,tw&=67108863,n=Math.imul(N,z),i=(i=Math.imul(N,J))+Math.imul(T,z)|0,f=Math.imul(T,J),n=n+Math.imul(A,H)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(S,H)|0,f=f+Math.imul(S,V)|0,n=n+Math.imul(w,q)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(M,q)|0,f=f+Math.imul(M,Z)|0,n=n+Math.imul(b,W)|0,i=(i=i+Math.imul(b,Y)|0)+Math.imul(y,W)|0,f=f+Math.imul(y,Y)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,$)|0,f=f+Math.imul(m,tt)|0;var tM=(u+(n=n+Math.imul(h,tr)|0)|0)+((8191&(i=(i=i+Math.imul(h,tn)|0)+Math.imul(c,tr)|0))<<13)|0;u=((f=f+Math.imul(c,tn)|0)+(i>>>13)|0)+(tM>>>26)|0,tM&=67108863,n=Math.imul(C,z),i=(i=Math.imul(C,J))+Math.imul(I,z)|0,f=Math.imul(I,J),n=n+Math.imul(N,H)|0,i=(i=i+Math.imul(N,V)|0)+Math.imul(T,H)|0,f=f+Math.imul(T,V)|0,n=n+Math.imul(A,q)|0,i=(i=i+Math.imul(A,Z)|0)+Math.imul(S,q)|0,f=f+Math.imul(S,Z)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(M,W)|0,f=f+Math.imul(M,Y)|0,n=n+Math.imul(b,$)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(y,$)|0,f=f+Math.imul(y,tt)|0,n=n+Math.imul(p,tr)|0,i=(i=i+Math.imul(p,tn)|0)+Math.imul(m,tr)|0,f=f+Math.imul(m,tn)|0;var tE=(u+(n=n+Math.imul(h,tf)|0)|0)+((8191&(i=(i=i+Math.imul(h,to)|0)+Math.imul(c,tf)|0))<<13)|0;u=((f=f+Math.imul(c,to)|0)+(i>>>13)|0)+(tE>>>26)|0,tE&=67108863,n=Math.imul(O,z),i=(i=Math.imul(O,J))+Math.imul(x,z)|0,f=Math.imul(x,J),n=n+Math.imul(C,H)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(I,H)|0,f=f+Math.imul(I,V)|0,n=n+Math.imul(N,q)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(T,q)|0,f=f+Math.imul(T,Z)|0,n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(S,W)|0,f=f+Math.imul(S,Y)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(M,$)|0,f=f+Math.imul(M,tt)|0,n=n+Math.imul(b,tr)|0,i=(i=i+Math.imul(b,tn)|0)+Math.imul(y,tr)|0,f=f+Math.imul(y,tn)|0,n=n+Math.imul(p,tf)|0,i=(i=i+Math.imul(p,to)|0)+Math.imul(m,tf)|0,f=f+Math.imul(m,to)|0;var tA=(u+(n=n+Math.imul(h,ts)|0)|0)+((8191&(i=(i=i+Math.imul(h,tu)|0)+Math.imul(c,ts)|0))<<13)|0;u=((f=f+Math.imul(c,tu)|0)+(i>>>13)|0)+(tA>>>26)|0,tA&=67108863,n=Math.imul(F,z),i=(i=Math.imul(F,J))+Math.imul(B,z)|0,f=Math.imul(B,J),n=n+Math.imul(O,H)|0,i=(i=i+Math.imul(O,V)|0)+Math.imul(x,H)|0,f=f+Math.imul(x,V)|0,n=n+Math.imul(C,q)|0,i=(i=i+Math.imul(C,Z)|0)+Math.imul(I,q)|0,f=f+Math.imul(I,Z)|0,n=n+Math.imul(N,W)|0,i=(i=i+Math.imul(N,Y)|0)+Math.imul(T,W)|0,f=f+Math.imul(T,Y)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(S,$)|0,f=f+Math.imul(S,tt)|0,n=n+Math.imul(w,tr)|0,i=(i=i+Math.imul(w,tn)|0)+Math.imul(M,tr)|0,f=f+Math.imul(M,tn)|0,n=n+Math.imul(b,tf)|0,i=(i=i+Math.imul(b,to)|0)+Math.imul(y,tf)|0,f=f+Math.imul(y,to)|0,n=n+Math.imul(p,ts)|0,i=(i=i+Math.imul(p,tu)|0)+Math.imul(m,ts)|0,f=f+Math.imul(m,tu)|0;var tS=(u+(n=n+Math.imul(h,th)|0)|0)+((8191&(i=(i=i+Math.imul(h,tc)|0)+Math.imul(c,th)|0))<<13)|0;u=((f=f+Math.imul(c,tc)|0)+(i>>>13)|0)+(tS>>>26)|0,tS&=67108863,n=Math.imul(D,z),i=(i=Math.imul(D,J))+Math.imul(U,z)|0,f=Math.imul(U,J),n=n+Math.imul(F,H)|0,i=(i=i+Math.imul(F,V)|0)+Math.imul(B,H)|0,f=f+Math.imul(B,V)|0,n=n+Math.imul(O,q)|0,i=(i=i+Math.imul(O,Z)|0)+Math.imul(x,q)|0,f=f+Math.imul(x,Z)|0,n=n+Math.imul(C,W)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(I,W)|0,f=f+Math.imul(I,Y)|0,n=n+Math.imul(N,$)|0,i=(i=i+Math.imul(N,tt)|0)+Math.imul(T,$)|0,f=f+Math.imul(T,tt)|0,n=n+Math.imul(A,tr)|0,i=(i=i+Math.imul(A,tn)|0)+Math.imul(S,tr)|0,f=f+Math.imul(S,tn)|0,n=n+Math.imul(w,tf)|0,i=(i=i+Math.imul(w,to)|0)+Math.imul(M,tf)|0,f=f+Math.imul(M,to)|0,n=n+Math.imul(b,ts)|0,i=(i=i+Math.imul(b,tu)|0)+Math.imul(y,ts)|0,f=f+Math.imul(y,tu)|0,n=n+Math.imul(p,th)|0,i=(i=i+Math.imul(p,tc)|0)+Math.imul(m,th)|0,f=f+Math.imul(m,tc)|0;var t_=(u+(n=n+Math.imul(h,tp)|0)|0)+((8191&(i=(i=i+Math.imul(h,tm)|0)+Math.imul(c,tp)|0))<<13)|0;u=((f=f+Math.imul(c,tm)|0)+(i>>>13)|0)+(t_>>>26)|0,t_&=67108863,n=Math.imul(D,H),i=(i=Math.imul(D,V))+Math.imul(U,H)|0,f=Math.imul(U,V),n=n+Math.imul(F,q)|0,i=(i=i+Math.imul(F,Z)|0)+Math.imul(B,q)|0,f=f+Math.imul(B,Z)|0,n=n+Math.imul(O,W)|0,i=(i=i+Math.imul(O,Y)|0)+Math.imul(x,W)|0,f=f+Math.imul(x,Y)|0,n=n+Math.imul(C,$)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(I,$)|0,f=f+Math.imul(I,tt)|0,n=n+Math.imul(N,tr)|0,i=(i=i+Math.imul(N,tn)|0)+Math.imul(T,tr)|0,f=f+Math.imul(T,tn)|0,n=n+Math.imul(A,tf)|0,i=(i=i+Math.imul(A,to)|0)+Math.imul(S,tf)|0,f=f+Math.imul(S,to)|0,n=n+Math.imul(w,ts)|0,i=(i=i+Math.imul(w,tu)|0)+Math.imul(M,ts)|0,f=f+Math.imul(M,tu)|0,n=n+Math.imul(b,th)|0,i=(i=i+Math.imul(b,tc)|0)+Math.imul(y,th)|0,f=f+Math.imul(y,tc)|0;var tN=(u+(n=n+Math.imul(p,tp)|0)|0)+((8191&(i=(i=i+Math.imul(p,tm)|0)+Math.imul(m,tp)|0))<<13)|0;u=((f=f+Math.imul(m,tm)|0)+(i>>>13)|0)+(tN>>>26)|0,tN&=67108863,n=Math.imul(D,q),i=(i=Math.imul(D,Z))+Math.imul(U,q)|0,f=Math.imul(U,Z),n=n+Math.imul(F,W)|0,i=(i=i+Math.imul(F,Y)|0)+Math.imul(B,W)|0,f=f+Math.imul(B,Y)|0,n=n+Math.imul(O,$)|0,i=(i=i+Math.imul(O,tt)|0)+Math.imul(x,$)|0,f=f+Math.imul(x,tt)|0,n=n+Math.imul(C,tr)|0,i=(i=i+Math.imul(C,tn)|0)+Math.imul(I,tr)|0,f=f+Math.imul(I,tn)|0,n=n+Math.imul(N,tf)|0,i=(i=i+Math.imul(N,to)|0)+Math.imul(T,tf)|0,f=f+Math.imul(T,to)|0,n=n+Math.imul(A,ts)|0,i=(i=i+Math.imul(A,tu)|0)+Math.imul(S,ts)|0,f=f+Math.imul(S,tu)|0,n=n+Math.imul(w,th)|0,i=(i=i+Math.imul(w,tc)|0)+Math.imul(M,th)|0,f=f+Math.imul(M,tc)|0;var tT=(u+(n=n+Math.imul(b,tp)|0)|0)+((8191&(i=(i=i+Math.imul(b,tm)|0)+Math.imul(y,tp)|0))<<13)|0;u=((f=f+Math.imul(y,tm)|0)+(i>>>13)|0)+(tT>>>26)|0,tT&=67108863,n=Math.imul(D,W),i=(i=Math.imul(D,Y))+Math.imul(U,W)|0,f=Math.imul(U,Y),n=n+Math.imul(F,$)|0,i=(i=i+Math.imul(F,tt)|0)+Math.imul(B,$)|0,f=f+Math.imul(B,tt)|0,n=n+Math.imul(O,tr)|0,i=(i=i+Math.imul(O,tn)|0)+Math.imul(x,tr)|0,f=f+Math.imul(x,tn)|0,n=n+Math.imul(C,tf)|0,i=(i=i+Math.imul(C,to)|0)+Math.imul(I,tf)|0,f=f+Math.imul(I,to)|0,n=n+Math.imul(N,ts)|0,i=(i=i+Math.imul(N,tu)|0)+Math.imul(T,ts)|0,f=f+Math.imul(T,tu)|0,n=n+Math.imul(A,th)|0,i=(i=i+Math.imul(A,tc)|0)+Math.imul(S,th)|0,f=f+Math.imul(S,tc)|0;var tR=(u+(n=n+Math.imul(w,tp)|0)|0)+((8191&(i=(i=i+Math.imul(w,tm)|0)+Math.imul(M,tp)|0))<<13)|0;u=((f=f+Math.imul(M,tm)|0)+(i>>>13)|0)+(tR>>>26)|0,tR&=67108863,n=Math.imul(D,$),i=(i=Math.imul(D,tt))+Math.imul(U,$)|0,f=Math.imul(U,tt),n=n+Math.imul(F,tr)|0,i=(i=i+Math.imul(F,tn)|0)+Math.imul(B,tr)|0,f=f+Math.imul(B,tn)|0,n=n+Math.imul(O,tf)|0,i=(i=i+Math.imul(O,to)|0)+Math.imul(x,tf)|0,f=f+Math.imul(x,to)|0,n=n+Math.imul(C,ts)|0,i=(i=i+Math.imul(C,tu)|0)+Math.imul(I,ts)|0,f=f+Math.imul(I,tu)|0,n=n+Math.imul(N,th)|0,i=(i=i+Math.imul(N,tc)|0)+Math.imul(T,th)|0,f=f+Math.imul(T,tc)|0;var tC=(u+(n=n+Math.imul(A,tp)|0)|0)+((8191&(i=(i=i+Math.imul(A,tm)|0)+Math.imul(S,tp)|0))<<13)|0;u=((f=f+Math.imul(S,tm)|0)+(i>>>13)|0)+(tC>>>26)|0,tC&=67108863,n=Math.imul(D,tr),i=(i=Math.imul(D,tn))+Math.imul(U,tr)|0,f=Math.imul(U,tn),n=n+Math.imul(F,tf)|0,i=(i=i+Math.imul(F,to)|0)+Math.imul(B,tf)|0,f=f+Math.imul(B,to)|0,n=n+Math.imul(O,ts)|0,i=(i=i+Math.imul(O,tu)|0)+Math.imul(x,ts)|0,f=f+Math.imul(x,tu)|0,n=n+Math.imul(C,th)|0,i=(i=i+Math.imul(C,tc)|0)+Math.imul(I,th)|0,f=f+Math.imul(I,tc)|0;var tI=(u+(n=n+Math.imul(N,tp)|0)|0)+((8191&(i=(i=i+Math.imul(N,tm)|0)+Math.imul(T,tp)|0))<<13)|0;u=((f=f+Math.imul(T,tm)|0)+(i>>>13)|0)+(tI>>>26)|0,tI&=67108863,n=Math.imul(D,tf),i=(i=Math.imul(D,to))+Math.imul(U,tf)|0,f=Math.imul(U,to),n=n+Math.imul(F,ts)|0,i=(i=i+Math.imul(F,tu)|0)+Math.imul(B,ts)|0,f=f+Math.imul(B,tu)|0,n=n+Math.imul(O,th)|0,i=(i=i+Math.imul(O,tc)|0)+Math.imul(x,th)|0,f=f+Math.imul(x,tc)|0;var tP=(u+(n=n+Math.imul(C,tp)|0)|0)+((8191&(i=(i=i+Math.imul(C,tm)|0)+Math.imul(I,tp)|0))<<13)|0;u=((f=f+Math.imul(I,tm)|0)+(i>>>13)|0)+(tP>>>26)|0,tP&=67108863,n=Math.imul(D,ts),i=(i=Math.imul(D,tu))+Math.imul(U,ts)|0,f=Math.imul(U,tu),n=n+Math.imul(F,th)|0,i=(i=i+Math.imul(F,tc)|0)+Math.imul(B,th)|0,f=f+Math.imul(B,tc)|0;var tO=(u+(n=n+Math.imul(O,tp)|0)|0)+((8191&(i=(i=i+Math.imul(O,tm)|0)+Math.imul(x,tp)|0))<<13)|0;u=((f=f+Math.imul(x,tm)|0)+(i>>>13)|0)+(tO>>>26)|0,tO&=67108863,n=Math.imul(D,th),i=(i=Math.imul(D,tc))+Math.imul(U,th)|0,f=Math.imul(U,tc);var tx=(u+(n=n+Math.imul(F,tp)|0)|0)+((8191&(i=(i=i+Math.imul(F,tm)|0)+Math.imul(B,tp)|0))<<13)|0;u=((f=f+Math.imul(B,tm)|0)+(i>>>13)|0)+(tx>>>26)|0,tx&=67108863;var tk=(u+(n=Math.imul(D,tp))|0)+((8191&(i=(i=Math.imul(D,tm))+Math.imul(U,tp)|0))<<13)|0;return u=((f=Math.imul(U,tm))+(i>>>13)|0)+(tk>>>26)|0,tk&=67108863,s[0]=tg,s[1]=tb,s[2]=ty,s[3]=tv,s[4]=tw,s[5]=tM,s[6]=tE,s[7]=tA,s[8]=tS,s[9]=t_,s[10]=tN,s[11]=tT,s[12]=tR,s[13]=tC,s[14]=tI,s[15]=tP,s[16]=tO,s[17]=tx,s[18]=tk,0!==u&&(s[19]=u,r.length++),r};function b(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,f=0;f<r.length-1;f++){var o=i;i=0;for(var a=67108863&n,s=Math.min(f,e.length-1),u=Math.max(0,f-t.length+1);u<=s;u++){var l=f-u,h=(0|t.words[l])*(0|e.words[u]),c=67108863&h;o=o+(h/67108864|0)|0,a=67108863&(c=c+a|0),i+=(o=o+(c>>>26)|0)>>>26,o&=67108863}r.words[f]=a,n=o,o=i}return 0!==n?r.words[f]=n:r.length--,r._strip()}function y(t,e){this.x=t,this.y=e}Math.imul||(g=m),f.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return 10===this.length&&10===t.length?g(this,t,e):n<63?m(this,t,e):b(this,t,e)},y.prototype.makeRBT=function(t){for(var e=Array(t),r=f.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},y.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},y.prototype.permute=function(t,e,r,n,i,f){for(var o=0;o<f;o++)n[o]=e[t[o]],i[o]=r[t[o]]},y.prototype.transform=function(t,e,r,n,i,f){this.permute(f,t,e,r,n,i);for(var o=1;o<i;o<<=1)for(var a=o<<1,s=Math.cos(2*Math.PI/a),u=Math.sin(2*Math.PI/a),l=0;l<i;l+=a)for(var h=s,c=u,d=0;d<o;d++){var p=r[l+d],m=n[l+d],g=r[l+d+o],b=n[l+d+o],y=h*g-c*b;b=h*b+c*g,g=y,r[l+d]=p+g,n[l+d]=m+b,r[l+d+o]=p-g,n[l+d+o]=m-b,d!==a&&(y=s*h-u*c,c=s*c+u*h,h=y)}},y.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},y.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},y.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},y.prototype.convert13b=function(t,e,r,i){for(var f=0,o=0;o<e;o++)f+=0|t[o],r[2*o]=8191&f,f>>>=13,r[2*o+1]=8191&f,f>>>=13;for(o=2*e;o<i;++o)r[o]=0;n(0===f),n((-8192&f)==0)},y.prototype.stub=function(t){for(var e=Array(t),r=0;r<t;r++)e[r]=0;return e},y.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),f=this.stub(n),o=Array(n),a=Array(n),s=Array(n),u=Array(n),l=Array(n),h=Array(n),c=r.words;c.length=n,this.convert13b(t.words,t.length,o,n),this.convert13b(e.words,e.length,u,n),this.transform(o,f,a,s,n,i),this.transform(u,f,l,h,n,i);for(var d=0;d<n;d++){var p=a[d]*l[d]-s[d]*h[d];s[d]=a[d]*h[d]+s[d]*l[d],a[d]=p}return this.conjugate(a,s,n),this.transform(a,s,c,f,n,i),this.conjugate(c,f,n),this.normalize13b(c,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r._strip()},f.prototype.mul=function(t){var e=new f(null);return e.words=Array(this.length+t.length),this.mulTo(t,e)},f.prototype.mulf=function(t){var e=new f(null);return e.words=Array(this.length+t.length),b(this,t,e)},f.prototype.imul=function(t){return this.clone().mulTo(t,this)},f.prototype.imuln=function(t){var e=t<0;e&&(t=-t),n("number"==typeof t),n(t<67108864);for(var r=0,i=0;i<this.length;i++){var f=(0|this.words[i])*t,o=(67108863&f)+(67108863&r);r>>=26,r+=(f/67108864|0)+(o>>>26),this.words[i]=67108863&o}return 0!==r&&(this.words[i]=r,this.length++),e?this.ineg():this},f.prototype.muln=function(t){return this.clone().imuln(t)},f.prototype.sqr=function(){return this.mul(this)},f.prototype.isqr=function(){return this.imul(this.clone())},f.prototype.pow=function(t){var e=function(t){for(var e=Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=t.words[n]>>>i&1}return e}(t);if(0===e.length)return new f(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},f.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,f=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(e=0;e<this.length;e++){var a=this.words[e]&f,s=(0|this.words[e])-a<<r;this.words[e]=s|o,o=a>>>26-r}o&&(this.words[e]=o,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this._strip()},f.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},f.prototype.iushrn=function(t,e,r){n("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var i,f=t%26,o=Math.min((t-f)/26,this.length),a=67108863^67108863>>>f<<f;if(i-=o,i=Math.max(0,i),r){for(var s=0;s<o;s++)r.words[s]=this.words[s];r.length=o}if(0===o);else if(this.length>o)for(this.length-=o,s=0;s<this.length;s++)this.words[s]=this.words[s+o];else this.words[0]=0,this.length=1;var u=0;for(s=this.length-1;s>=0&&(0!==u||s>=i);s--){var l=0|this.words[s];this.words[s]=u<<26-f|l>>>f,u=l&a}return r&&0!==u&&(r.words[r.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},f.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},f.prototype.shln=function(t){return this.clone().ishln(t)},f.prototype.ushln=function(t){return this.clone().iushln(t)},f.prototype.shrn=function(t){return this.clone().ishrn(t)},f.prototype.ushrn=function(t){return this.clone().iushrn(t)},f.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;return!(this.length<=r)&&!!(this.words[r]&1<<e)},f.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;return(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)?this:(0!==e&&r++,this.length=Math.min(r,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<<e),this._strip())},f.prototype.maskn=function(t){return this.clone().imaskn(t)},f.prototype.iaddn=function(t){return(n("number"==typeof t),n(t<67108864),t<0)?this.isubn(-t):0!==this.negative?(1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(t),this.negative=1),this):this._iaddn(t)},f.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[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},f.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<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},f.prototype.addn=function(t){return this.clone().iaddn(t)},f.prototype.subn=function(t){return this.clone().isubn(t)},f.prototype.iabs=function(){return this.negative=0,this},f.prototype.abs=function(){return this.clone().iabs()},f.prototype._ishlnsubmul=function(t,e,r){var i,f,o=t.length+r;this._expand(o);var a=0;for(i=0;i<t.length;i++){f=(0|this.words[i+r])+a;var s=(0|t.words[i])*e;f-=67108863&s,a=(f>>26)-(s/67108864|0),this.words[i+r]=67108863&f}for(;i<this.length-r;i++)a=(f=(0|this.words[i+r])+a)>>26,this.words[i+r]=67108863&f;if(0===a)return this._strip();for(n(-1===a),a=0,i=0;i<this.length;i++)a=(f=-(0|this.words[i])+a)>>26,this.words[i]=67108863&f;return this.negative=1,this._strip()},f.prototype._wordDiv=function(t,e){var r,n=this.length-t.length,i=this.clone(),o=t,a=0|o.words[o.length-1];0!=(n=26-this._countBits(a))&&(o=o.ushln(n),i.iushln(n),a=0|o.words[o.length-1]);var s=i.length-o.length;if("mod"!==e){(r=new f(null)).length=s+1,r.words=Array(r.length);for(var u=0;u<r.length;u++)r.words[u]=0}var l=i.clone()._ishlnsubmul(o,1,s);0===l.negative&&(i=l,r&&(r.words[s]=1));for(var h=s-1;h>=0;h--){var c=(0|i.words[o.length+h])*67108864+(0|i.words[o.length+h-1]);for(c=Math.min(c/a|0,67108863),i._ishlnsubmul(o,c,h);0!==i.negative;)c--,i.negative=0,i._ishlnsubmul(o,1,h),i.isZero()||(i.negative^=1);r&&(r.words[h]=c)}return r&&r._strip(),i._strip(),"div"!==e&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},f.prototype.divmod=function(t,e,r){var i,o,a;return(n(!t.isZero()),this.isZero())?{div:new f(0),mod:new f(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:i,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):(this.negative&t.negative)!=0?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||0>this.cmp(t)?{div:new f(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new f(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new f(this.modrn(t.words[0]))}:this._wordDiv(t,e)},f.prototype.div=function(t){return this.divmod(t,"div",!1).div},f.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},f.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},f.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),f=r.cmp(n);return f<0||1===i&&0===f?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},f.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=67108864%t,i=0,f=this.length-1;f>=0;f--)i=(r*i+(0|this.words[f]))%t;return e?-i:i},f.prototype.modn=function(t){return this.modrn(t)},f.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 f=(0|this.words[i])+67108864*r;this.words[i]=f/t|0,r=f%t}return this._strip(),e?this.ineg():this},f.prototype.divn=function(t){return this.clone().idivn(t)},f.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();for(var i=new f(1),o=new f(0),a=new f(0),s=new f(1),u=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++u;for(var l=r.clone(),h=e.clone();!e.isZero();){for(var c=0,d=1;(e.words[0]&d)==0&&c<26;++c,d<<=1);if(c>0)for(e.iushrn(c);c-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(l),o.isub(h)),i.iushrn(1),o.iushrn(1);for(var p=0,m=1;(r.words[0]&m)==0&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||s.isOdd())&&(a.iadd(l),s.isub(h)),a.iushrn(1),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(a),o.isub(s)):(r.isub(e),a.isub(i),s.isub(o))}return{a:a,b:s,gcd:r.iushln(u)}},f.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e,r=this,i=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var o=new f(1),a=new f(0),s=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var u=0,l=1;(r.words[0]&l)==0&&u<26;++u,l<<=1);if(u>0)for(r.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);for(var h=0,c=1;(i.words[0]&c)==0&&h<26;++h,c<<=1);if(h>0)for(i.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);r.cmp(i)>=0?(r.isub(i),o.isub(a)):(i.isub(r),a.isub(o))}return 0>(e=0===r.cmpn(1)?o:a).cmpn(0)&&e.iadd(t),e},f.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);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var f=e;e=r,r=f}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},f.prototype.invm=function(t){return this.egcd(t).a.umod(t)},f.prototype.isEven=function(){return(1&this.words[0])==0},f.prototype.isOdd=function(){return(1&this.words[0])==1},f.prototype.andln=function(t){return this.words[0]&t},f.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var f=i,o=r;0!==f&&o<this.length;o++){var a=0|this.words[o];a+=f,f=a>>>26,a&=67108863,this.words[o]=a}return 0!==f&&(this.words[o]=f,this.length++),this},f.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},f.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:i<t?-1:1}return 0!==this.negative?0|-e:e},f.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return -1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},f.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return -1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},f.prototype.gtn=function(t){return 1===this.cmpn(t)},f.prototype.gt=function(t){return 1===this.cmp(t)},f.prototype.gten=function(t){return this.cmpn(t)>=0},f.prototype.gte=function(t){return this.cmp(t)>=0},f.prototype.ltn=function(t){return -1===this.cmpn(t)},f.prototype.lt=function(t){return -1===this.cmp(t)},f.prototype.lten=function(t){return 0>=this.cmpn(t)},f.prototype.lte=function(t){return 0>=this.cmp(t)},f.prototype.eqn=function(t){return 0===this.cmpn(t)},f.prototype.eq=function(t){return 0===this.cmp(t)},f.red=function(t){return new _(t)},f.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)},f.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},f.prototype._forceRed=function(t){return this.red=t,this},f.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},f.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},f.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},f.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},f.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},f.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},f.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},f.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},f.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},f.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},f.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},f.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},f.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},f.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new f(e,16),this.n=this.p.bitLength(),this.k=new f(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 E(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(t){if("string"==typeof t){var e=f._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 N(t){_.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new f(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 f(null);return t.words=Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,r=t;do this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?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=Math.min(t.length,9),n=0;n<r;n++)e.words[n]=t.words[n];if(e.length=r,t.length<=9){t.words[0]=0,t.length=1;return}var i=t.words[9];for(n=10,e.words[e.length++]=4194303&i;n<t.length;n++){var f=0|t.words[n];t.words[n-10]=(4194303&f)<<4|i>>>22,i=f}i>>>=22,t.words[n-10]=i,0===i&&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<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(E,w),i(A,w),i(S,w),S.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=(0|t.words[r])*19+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},f._prime=function(t){var e;if(v[t])return v[t];if("k256"===t)e=new M;else if("p224"===t)e=new E;else if("p192"===t)e=new A;else if("p25519"===t)e=new S;else throw Error("Unknown prime "+t);return v[t]=e,e},_.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},_.prototype._verify2=function(t,e){n((t.negative|e.negative)==0,"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},_.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(u(t,t.umod(this.m)._forceRed(this)),t)},_.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},_.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)},_.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},_.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},_.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return 0>r.cmpn(0)&&r.iadd(this.m),r},_.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},_.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},_.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},_.prototype.isqr=function(t){return this.imul(t,t.clone())},_.prototype.sqr=function(t){return this.mul(t,t)},_.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 f(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var a=new f(1).toRed(this),s=a.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new f(2*l*l).toRed(this);0!==this.pow(l,u).cmp(s);)l.redIAdd(s);for(var h=this.pow(l,i),c=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=o;0!==d.cmp(a);){for(var m=d,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g<p);var b=this.pow(h,new f(1).iushln(p-g-1));c=c.redMul(b),h=b.redSqr(),d=d.redMul(h),p=g}return c},_.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},_.prototype.pow=function(t,e){if(e.isZero())return new f(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=Array(16);r[0]=new f(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],o=0,a=0,s=e.bitLength()%26;for(0===s&&(s=26),n=e.length-1;n>=0;n--){for(var u=e.words[n],l=s-1;l>=0;l--){var h=u>>l&1;if(i!==r[0]&&(i=this.sqr(i)),0===h&&0===o){a=0;continue}o<<=1,o|=h,(4==++a||0===n&&0===l)&&(i=this.mul(i,r[o]),a=0,o=0)}s=26}return i},_.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},_.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},f.mont=function(t){return new N(t)},i(N,_),N.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},N.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},N.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),f=i;return i.cmp(this.m)>=0?f=i.isub(this.m):0>i.cmpn(0)&&(f=i.iadd(this.m)),f._forceRed(this)},N.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new f(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),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},N.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},72617:function(t,e,r){var n,i=r(34155);!function(){"use strict";var f="input is invalid type",o="object"==typeof window,a=o?window:{};a.JS_SHA3_NO_WINDOW&&(o=!1);var s=!o&&"object"==typeof self;!a.JS_SHA3_NO_NODE_JS&&"object"==typeof i&&i.versions&&i.versions.node?a=r.g:s&&(a=self);var u=!a.JS_SHA3_NO_COMMON_JS&&t.exports,l=r.amdO,h=!a.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,c="0123456789abcdef".split(""),d=[4,1024,262144,67108864],p=[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],g=[224,256,384,512],b=[128,256],y=["hex","buffer","arrayBuffer","array","digest"],v={128:168,256:136};(a.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),h&&(a.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 w=function(t,e,r){return function(n){return new F(t,e,t).update(n)[r]()}},M=function(t,e,r){return function(n,i){return new F(t,e,i).update(n)[r]()}},E=function(t,e,r){return function(e,n,i,f){return T["cshake"+t].update(e,n,i,f)[r]()}},A=function(t,e,r){return function(e,n,i,f){return T["kmac"+t].update(e,n,i,f)[r]()}},S=function(t,e,r,n){for(var i=0;i<y.length;++i){var f=y[i];t[f]=e(r,n,f)}return t},_=function(t,e){var r=w(t,e,"hex");return r.create=function(){return new F(t,e,t)},r.update=function(t){return r.create().update(t)},S(r,w,t,e)},N=[{name:"keccak",padding:[1,256,65536,16777216],bits:g,createMethod:_},{name:"sha3",padding:[6,1536,393216,100663296],bits:g,createMethod:_},{name:"shake",padding:[31,7936,2031616,520093696],bits:b,createMethod:function(t,e){var r=M(t,e,"hex");return r.create=function(r){return new F(t,e,r)},r.update=function(t,e){return r.create(e).update(t)},S(r,M,t,e)}},{name:"cshake",padding:d,bits:b,createMethod:function(t,e){var r=v[t],n=E(t,e,"hex");return n.create=function(n,i,f){return i||f?new F(t,e,n).bytepad([i,f],r):T["shake"+t].create(n)},n.update=function(t,e,r,i){return n.create(e,r,i).update(t)},S(n,E,t,e)}},{name:"kmac",padding:d,bits:b,createMethod:function(t,e){var r=v[t],n=A(t,e,"hex");return n.create=function(n,i,f){return new B(t,e,i).bytepad(["KMAC",f],r).bytepad([n],r)},n.update=function(t,e,r,i){return n.create(t,r,i).update(e)},S(n,A,t,e)}}],T={},R=[],C=0;C<N.length;++C)for(var I=N[C],P=I.bits,O=0;O<P.length;++O){var x=I.name+"_"+P[O];if(R.push(x),T[x]=I.createMethod(P[O],I.padding),"sha3"!==I.name){var k=I.name+P[O];R.push(k),T[k]=T[x]}}function F(t,e,r){this.blocks=[],this.s=[],this.padding=e,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(t<<1)>>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 B(t,e,r){F.call(this,t,e,r)}F.prototype.update=function(t){if(this.finalized)throw Error("finalize already called");var e,r=typeof t;if("string"!==r){if("object"===r){if(null===t)throw Error(f);if(h&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!h||!ArrayBuffer.isView(t)))throw Error(f)}else throw Error(f);e=!0}for(var n,i,o=this.blocks,a=this.byteCount,s=t.length,u=this.blockCount,l=0,c=this.s;l<s;){if(this.reset)for(n=1,this.reset=!1,o[0]=this.block;n<u+1;++n)o[n]=0;if(e)for(n=this.start;l<s&&n<a;++l)o[n>>2]|=t[l]<<p[3&n++];else for(n=this.start;l<s&&n<a;++l)(i=t.charCodeAt(l))<128?o[n>>2]|=i<<p[3&n++]:(i<2048?o[n>>2]|=(192|i>>6)<<p[3&n++]:(i<55296||i>=57344?o[n>>2]|=(224|i>>12)<<p[3&n++]:(i=65536+((1023&i)<<10|1023&t.charCodeAt(++l)),o[n>>2]|=(240|i>>18)<<p[3&n++],o[n>>2]|=(128|i>>12&63)<<p[3&n++]),o[n>>2]|=(128|i>>6&63)<<p[3&n++]),o[n>>2]|=(128|63&i)<<p[3&n++]);if(this.lastByteIndex=n,n>=a){for(this.start=n-a,this.block=o[u],n=0;n<u;++n)c[n]^=o[n];L(c),this.reset=!0}else this.start=n}return this},F.prototype.encode=function(t,e){var r=255&t,n=1,i=[r];for(t>>=8,r=255&t;r>0;)i.unshift(r),t>>=8,r=255&t,++n;return e?i.push(n):i.unshift(n),this.update(i),i.length},F.prototype.encodeString=function(t){var e,r=typeof t;if("string"!==r){if("object"===r){if(null===t)throw Error(f);if(h&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!h||!ArrayBuffer.isView(t)))throw Error(f)}else throw Error(f);e=!0}var n=0,i=t.length;if(e)n=i;else for(var o=0;o<t.length;++o){var a=t.charCodeAt(o);a<128?n+=1:a<2048?n+=2:a<55296||a>=57344?n+=3:(a=65536+((1023&a)<<10|1023&t.charCodeAt(++o)),n+=4)}return n+=this.encode(8*n),this.update(t),n},F.prototype.bytepad=function(t,e){for(var r=this.encode(e),n=0;n<t.length;++n)r+=this.encodeString(t[n]);var i=e-r%e,f=[];return f.length=i,this.update(f),this},F.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex,r=this.blockCount,n=this.s;if(t[e>>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(e=1,t[0]=t[r];e<r+1;++e)t[e]=0;for(t[r-1]|=2147483648,e=0;e<r;++e)n[e]^=t[e];L(n)}},F.prototype.toString=F.prototype.hex=function(){this.finalize();for(var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,f=0,o=0,a="";o<n;){for(f=0;f<e&&o<n;++f,++o)a+=c[(t=r[f])>>4&15]+c[15&t]+c[t>>12&15]+c[t>>8&15]+c[t>>20&15]+c[t>>16&15]+c[t>>28&15]+c[t>>24&15];o%e==0&&(L(r),f=0)}return i&&(a+=c[(t=r[f])>>4&15]+c[15&t],i>1&&(a+=c[t>>12&15]+c[t>>8&15]),i>2&&(a+=c[t>>20&15]+c[t>>16&15])),a},F.prototype.arrayBuffer=function(){this.finalize();for(var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,f=0,o=0,a=this.outputBits>>3,s=new Uint32Array(t=new ArrayBuffer(i?n+1<<2:a));o<n;){for(f=0;f<e&&o<n;++f,++o)s[o]=r[f];o%e==0&&L(r)}return i&&(s[f]=r[f],t=t.slice(0,a)),t},F.prototype.buffer=F.prototype.arrayBuffer,F.prototype.digest=F.prototype.array=function(){this.finalize();for(var t,e,r=this.blockCount,n=this.s,i=this.outputBlocks,f=this.extraBytes,o=0,a=0,s=[];a<i;){for(o=0;o<r&&a<i;++o,++a)t=a<<2,e=n[o],s[t]=255&e,s[t+1]=e>>8&255,s[t+2]=e>>16&255,s[t+3]=e>>24&255;a%r==0&&L(n)}return f&&(t=a<<2,e=n[o],s[t]=255&e,f>1&&(s[t+1]=e>>8&255),f>2&&(s[t+2]=e>>16&255)),s},B.prototype=new F,B.prototype.finalize=function(){return this.encode(this.outputBits,!0),F.prototype.finalize.call(this)};var L=function(t){var e,r,n,i,f,o,a,s,u,l,h,c,d,p,g,b,y,v,w,M,E,A,S,_,N,T,R,C,I,P,O,x,k,F,B,L,D,U,G,z,J,j,H,V,X,q,Z,K,W,Y,Q,$,tt,te,tr,tn,ti,tf,to,ta,ts,tu,tl;for(n=0;n<48;n+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],f=t[1]^t[11]^t[21]^t[31]^t[41],o=t[2]^t[12]^t[22]^t[32]^t[42],a=t[3]^t[13]^t[23]^t[33]^t[43],s=t[4]^t[14]^t[24]^t[34]^t[44],u=t[5]^t[15]^t[25]^t[35]^t[45],l=t[6]^t[16]^t[26]^t[36]^t[46],h=t[7]^t[17]^t[27]^t[37]^t[47],c=t[8]^t[18]^t[28]^t[38]^t[48],d=t[9]^t[19]^t[29]^t[39]^t[49],e=c^(o<<1|a>>>31),r=d^(a<<1|o>>>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^(s<<1|u>>>31),r=f^(u<<1|s>>>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=o^(l<<1|h>>>31),r=a^(h<<1|l>>>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=s^(c<<1|d>>>31),r=u^(d<<1|c>>>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=l^(i<<1|f>>>31),r=h^(f<<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],g=t[1],q=t[11]<<4|t[10]>>>28,Z=t[10]<<4|t[11]>>>28,C=t[20]<<3|t[21]>>>29,I=t[21]<<3|t[20]>>>29,ta=t[31]<<9|t[30]>>>23,ts=t[30]<<9|t[31]>>>23,j=t[40]<<18|t[41]>>>14,H=t[41]<<18|t[40]>>>14,F=t[2]<<1|t[3]>>>31,B=t[3]<<1|t[2]>>>31,b=t[13]<<12|t[12]>>>20,y=t[12]<<12|t[13]>>>20,K=t[22]<<10|t[23]>>>22,W=t[23]<<10|t[22]>>>22,P=t[33]<<13|t[32]>>>19,O=t[32]<<13|t[33]>>>19,tu=t[42]<<2|t[43]>>>30,tl=t[43]<<2|t[42]>>>30,te=t[5]<<30|t[4]>>>2,tr=t[4]<<30|t[5]>>>2,L=t[14]<<6|t[15]>>>26,D=t[15]<<6|t[14]>>>26,v=t[25]<<11|t[24]>>>21,w=t[24]<<11|t[25]>>>21,Y=t[34]<<15|t[35]>>>17,Q=t[35]<<15|t[34]>>>17,x=t[45]<<29|t[44]>>>3,k=t[44]<<29|t[45]>>>3,_=t[6]<<28|t[7]>>>4,N=t[7]<<28|t[6]>>>4,tn=t[17]<<23|t[16]>>>9,ti=t[16]<<23|t[17]>>>9,U=t[26]<<25|t[27]>>>7,G=t[27]<<25|t[26]>>>7,M=t[36]<<21|t[37]>>>11,E=t[37]<<21|t[36]>>>11,$=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,V=t[8]<<27|t[9]>>>5,X=t[9]<<27|t[8]>>>5,T=t[18]<<20|t[19]>>>12,R=t[19]<<20|t[18]>>>12,tf=t[29]<<7|t[28]>>>25,to=t[28]<<7|t[29]>>>25,z=t[38]<<8|t[39]>>>24,J=t[39]<<8|t[38]>>>24,A=t[48]<<14|t[49]>>>18,S=t[49]<<14|t[48]>>>18,t[0]=p^~b&v,t[1]=g^~y&w,t[10]=_^~T&C,t[11]=N^~R&I,t[20]=F^~L&U,t[21]=B^~D&G,t[30]=V^~q&K,t[31]=X^~Z&W,t[40]=te^~tn&tf,t[41]=tr^~ti&to,t[2]=b^~v&M,t[3]=y^~w&E,t[12]=T^~C&P,t[13]=R^~I&O,t[22]=L^~U&z,t[23]=D^~G&J,t[32]=q^~K&Y,t[33]=Z^~W&Q,t[42]=tn^~tf&ta,t[43]=ti^~to&ts,t[4]=v^~M&A,t[5]=w^~E&S,t[14]=C^~P&x,t[15]=I^~O&k,t[24]=U^~z&j,t[25]=G^~J&H,t[34]=K^~Y&$,t[35]=W^~Q&tt,t[44]=tf^~ta&tu,t[45]=to^~ts&tl,t[6]=M^~A&p,t[7]=E^~S&g,t[16]=P^~x&_,t[17]=O^~k&N,t[26]=z^~j&F,t[27]=J^~H&B,t[36]=Y^~$&V,t[37]=Q^~tt&X,t[46]=ta^~tu&te,t[47]=ts^~tl&tr,t[8]=A^~p&b,t[9]=S^~g&y,t[18]=x^~_&T,t[19]=k^~N&R,t[28]=j^~F&L,t[29]=H^~B&D,t[38]=$^~V&q,t[39]=tt^~X&Z,t[48]=tu^~te&tn,t[49]=tl^~tr&ti,t[0]^=m[n],t[1]^=m[n+1]};if(u)t.exports=T;else{for(C=0;C<R.length;++C)a[R[C]]=T[R[C]];l&&void 0!==(n=(function(){return T}).call(e,r,e,t))&&(t.exports=n)}}()},77187:function(t,e,r){"use strict";r.r(e),r.d(e,{keccak256:function(){return w}});var n,i,f,o,a=r(68373),s=r.n(a);let u=!1,l=!1,h={debug:1,default:2,info:2,warning:3,error:4,off:5},c=h.default,d=null,p=function(){try{let t=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test"!=="test".normalize(e))throw Error("bad normalize")}catch(r){t.push(e)}}),t.length)throw Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw Error("broken implementation")}catch(t){return t.message}return null}();(n=f||(f={})).DEBUG="DEBUG",n.INFO="INFO",n.WARNING="WARNING",n.ERROR="ERROR",n.OFF="OFF",(i=o||(o={})).UNKNOWN_ERROR="UNKNOWN_ERROR",i.NOT_IMPLEMENTED="NOT_IMPLEMENTED",i.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",i.NETWORK_ERROR="NETWORK_ERROR",i.SERVER_ERROR="SERVER_ERROR",i.TIMEOUT="TIMEOUT",i.BUFFER_OVERRUN="BUFFER_OVERRUN",i.NUMERIC_FAULT="NUMERIC_FAULT",i.MISSING_NEW="MISSING_NEW",i.INVALID_ARGUMENT="INVALID_ARGUMENT",i.MISSING_ARGUMENT="MISSING_ARGUMENT",i.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",i.CALL_EXCEPTION="CALL_EXCEPTION",i.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",i.NONCE_EXPIRED="NONCE_EXPIRED",i.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",i.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",i.TRANSACTION_REPLACED="TRANSACTION_REPLACED",i.ACTION_REJECTED="ACTION_REJECTED";let m="0123456789abcdef";class g{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){let r=t.toLowerCase();null==h[r]&&this.throwArgumentError("invalid log level name","logLevel",t),c>h[r]||console.log.apply(console,e)}debug(...t){this._log(g.levels.DEBUG,t)}info(...t){this._log(g.levels.INFO,t)}warn(...t){this._log(g.levels.WARNING,t)}makeError(t,e,r){if(l)return this.makeError("censored error",e,{});e||(e=g.errors.UNKNOWN_ERROR),r||(r={});let n=[];Object.keys(r).forEach(t=>{let e=r[t];try{if(e instanceof Uint8Array){let r="";for(let t=0;t<e.length;t++)r+=m[e[t]>>4]+m[15&e[t]];n.push(t+"=Uint8Array(0x"+r+")")}else n.push(t+"="+JSON.stringify(e))}catch(e){n.push(t+"="+JSON.stringify(r[t].toString()))}}),n.push(`code=${e}`),n.push(`version=${this.version}`);let i=t,f="";switch(e){case o.NUMERIC_FAULT:{f="NUMERIC_FAULT";let e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":f+="-"+e;break;case"negative-power":case"negative-width":f+="-unsupported";break;case"unbound-bitwise-result":f+="-unbound-result"}break}case o.CALL_EXCEPTION:case o.INSUFFICIENT_FUNDS:case o.MISSING_NEW:case o.NONCE_EXPIRED:case o.REPLACEMENT_UNDERPRICED:case o.TRANSACTION_REPLACED:case o.UNPREDICTABLE_GAS_LIMIT:f=e}f&&(t+=" [ See: https://links.ethers.org/v5-errors-"+f+" ]"),n.length&&(t+=" ("+n.join(", ")+")");let a=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,g.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"),p&&this.throwError("platform missing String.prototype.normalize",g.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:p})}checkSafeUint53(t,e){"number"==typeof t&&(null==e&&(e="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(e,g.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(e,g.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,e,r){r=r?": "+r:"",t<e&&this.throwError("missing argument"+r,g.errors.MISSING_ARGUMENT,{count:t,expectedCount:e}),t>e&&this.throwError("too many arguments"+r,g.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:e})}checkNew(t,e){(t===Object||null==t)&&this.throwError("missing new",g.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",g.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):(t===Object||null==t)&&this.throwError("missing new",g.errors.MISSING_NEW,{name:e.name})}static globalLogger(){return d||(d=new g("logger/5.7.0")),d}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",g.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),u){if(!t)return;this.globalLogger().throwError("error censorship permanent",g.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}l=!!t,u=!!e}static setLogLevel(t){let e=h[t.toLowerCase()];if(null==e){g.globalLogger().warn("invalid log level - "+t);return}c=e}static from(t){return new g(t)}}g.errors=o,g.levels=f;let b=new g("bytes/5.7.0");function y(t){return t.slice||(t.slice=function(){let e=Array.prototype.slice.call(arguments);return y(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function v(t){return"number"==typeof t&&t==t&&t%1==0}function w(t){return"0x"+s().keccak_256(function(t,e){var r;if(e||(e={}),"number"==typeof t){b.checkSafeUint53(t,"invalid arrayify value");let e=[];for(;t;)e.unshift(255&t),t=parseInt(String(t/256));return 0===e.length&&e.push(0),y(new Uint8Array(e))}if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),t.toHexString&&(t=t.toHexString()),"string"==typeof(r=t)&&r.match(/^0x[0-9A-Fa-f]*$/)){let r=t.substring(2);r.length%2&&("left"===e.hexPad?r="0"+r:"right"===e.hexPad?r+="0":b.throwArgumentError("hex data is odd-length","value",t));let n=[];for(let t=0;t<r.length;t+=2)n.push(parseInt(r.substring(t,t+2),16));return y(new Uint8Array(n))}return!function(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"==typeof t||!v(t.length)||t.length<0)return!1;for(let e=0;e<t.length;e++){let r=t[e];if(!v(r)||r<0||r>=256)return!1}return!0}(t)?b.throwArgumentError("invalid arrayify value","value",t):y(new Uint8Array(t))}(t))}},49377:function(t,e,r){"use strict";var n,i,f,o;r.r(e),r.d(e,{ErrorCode:function(){return i},LogLevel:function(){return n},Logger:function(){return p}});let a=!1,s=!1,u={debug:1,default:2,info:2,warning:3,error:4,off:5},l=u.default,h=null,c=function(){try{let t=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test"!=="test".normalize(e))throw Error("bad normalize")}catch(r){t.push(e)}}),t.length)throw Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw Error("broken implementation")}catch(t){return t.message}return null}();(f=n||(n={})).DEBUG="DEBUG",f.INFO="INFO",f.WARNING="WARNING",f.ERROR="ERROR",f.OFF="OFF",(o=i||(i={})).UNKNOWN_ERROR="UNKNOWN_ERROR",o.NOT_IMPLEMENTED="NOT_IMPLEMENTED",o.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",o.NETWORK_ERROR="NETWORK_ERROR",o.SERVER_ERROR="SERVER_ERROR",o.TIMEOUT="TIMEOUT",o.BUFFER_OVERRUN="BUFFER_OVERRUN",o.NUMERIC_FAULT="NUMERIC_FAULT",o.MISSING_NEW="MISSING_NEW",o.INVALID_ARGUMENT="INVALID_ARGUMENT",o.MISSING_ARGUMENT="MISSING_ARGUMENT",o.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",o.CALL_EXCEPTION="CALL_EXCEPTION",o.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",o.NONCE_EXPIRED="NONCE_EXPIRED",o.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",o.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",o.TRANSACTION_REPLACED="TRANSACTION_REPLACED";let d="0123456789abcdef";class p{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){let r=t.toLowerCase();null==u[r]&&this.throwArgumentError("invalid log level name","logLevel",t),l>u[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(s)return this.makeError("censored error",e,{});e||(e=p.errors.UNKNOWN_ERROR),r||(r={});let n=[];Object.keys(r).forEach(t=>{let e=r[t];try{if(e instanceof Uint8Array){let r="";for(let t=0;t<e.length;t++)r+=d[e[t]>>4]+d[15&e[t]];n.push(t+"=Uint8Array(0x"+r+")")}else n.push(t+"="+JSON.stringify(e))}catch(e){n.push(t+"="+JSON.stringify(r[t].toString()))}}),n.push(`code=${e}`),n.push(`version=${this.version}`);let i=t;n.length&&(t+=" ("+n.join(", ")+")");let f=Error(t);return f.reason=i,f.code=e,Object.keys(r).forEach(function(t){f[t]=r[t]}),f}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"),c&&this.throwError("platform missing String.prototype.normalize",p.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:c})}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:"",t<e&&this.throwError("missing argument"+r,p.errors.MISSING_ARGUMENT,{count:t,expectedCount:e}),t>e&&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 h||(h=new p("logger/5.4.1")),h}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",p.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),a){if(!t)return;this.globalLogger().throwError("error censorship permanent",p.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}s=!!t,a=!!e}static setLogLevel(t){let e=u[t.toLowerCase()];if(null==e){p.globalLogger().warn("invalid log level - "+t);return}l=e}static from(t){return new p(t)}}p.errors=i,p.levels=n},46569:function(t,e,r){"use strict";var n,i,f,o;r.r(e),r.d(e,{Description:function(){return A},checkProperties:function(){return v},deepCopy:function(){return E},defineReadOnly:function(){return g},getStatic:function(){return b},resolveProperties:function(){return y},shallowCopy:function(){return w}});let a=!1,s=!1,u={debug:1,default:2,info:2,warning:3,error:4,off:5},l=u.default,h=null,c=function(){try{let t=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test"!=="test".normalize(e))throw Error("bad normalize")}catch(r){t.push(e)}}),t.length)throw Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw Error("broken implementation")}catch(t){return t.message}return null}();(n=f||(f={})).DEBUG="DEBUG",n.INFO="INFO",n.WARNING="WARNING",n.ERROR="ERROR",n.OFF="OFF",(i=o||(o={})).UNKNOWN_ERROR="UNKNOWN_ERROR",i.NOT_IMPLEMENTED="NOT_IMPLEMENTED",i.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",i.NETWORK_ERROR="NETWORK_ERROR",i.SERVER_ERROR="SERVER_ERROR",i.TIMEOUT="TIMEOUT",i.BUFFER_OVERRUN="BUFFER_OVERRUN",i.NUMERIC_FAULT="NUMERIC_FAULT",i.MISSING_NEW="MISSING_NEW",i.INVALID_ARGUMENT="INVALID_ARGUMENT",i.MISSING_ARGUMENT="MISSING_ARGUMENT",i.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",i.CALL_EXCEPTION="CALL_EXCEPTION",i.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",i.NONCE_EXPIRED="NONCE_EXPIRED",i.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",i.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",i.TRANSACTION_REPLACED="TRANSACTION_REPLACED",i.ACTION_REJECTED="ACTION_REJECTED";let d="0123456789abcdef";class p{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){let r=t.toLowerCase();null==u[r]&&this.throwArgumentError("invalid log level name","logLevel",t),l>u[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(s)return this.makeError("censored error",e,{});e||(e=p.errors.UNKNOWN_ERROR),r||(r={});let n=[];Object.keys(r).forEach(t=>{let e=r[t];try{if(e instanceof Uint8Array){let r="";for(let t=0;t<e.length;t++)r+=d[e[t]>>4]+d[15&e[t]];n.push(t+"=Uint8Array(0x"+r+")")}else n.push(t+"="+JSON.stringify(e))}catch(e){n.push(t+"="+JSON.stringify(r[t].toString()))}}),n.push(`code=${e}`),n.push(`version=${this.version}`);let i=t,f="";switch(e){case o.NUMERIC_FAULT:{f="NUMERIC_FAULT";let e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":f+="-"+e;break;case"negative-power":case"negative-width":f+="-unsupported";break;case"unbound-bitwise-result":f+="-unbound-result"}break}case o.CALL_EXCEPTION:case o.INSUFFICIENT_FUNDS:case o.MISSING_NEW:case o.NONCE_EXPIRED:case o.REPLACEMENT_UNDERPRICED:case o.TRANSACTION_REPLACED:case o.UNPREDICTABLE_GAS_LIMIT:f=e}f&&(t+=" [ See: https://links.ethers.org/v5-errors-"+f+" ]"),n.length&&(t+=" ("+n.join(", ")+")");let a=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"),c&&this.throwError("platform missing String.prototype.normalize",p.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:c})}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:"",t<e&&this.throwError("missing argument"+r,p.errors.MISSING_ARGUMENT,{count:t,expectedCount:e}),t>e&&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 h||(h=new p("logger/5.7.0")),h}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",p.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),a){if(!t)return;this.globalLogger().throwError("error censorship permanent",p.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}s=!!t,a=!!e}static setLogLevel(t){let e=u[t.toLowerCase()];if(null==e){p.globalLogger().warn("invalid log level - "+t);return}l=e}static from(t){return new p(t)}}p.errors=o,p.levels=f;let m=new p("properties/5.4.1");function g(t,e,r){Object.defineProperty(t,e,{enumerable:!0,value:r,writable:!1})}function b(t,e){for(let r=0;r<32;r++){if(t[e])return t[e];if(!t.prototype||"object"!=typeof t.prototype)break;t=Object.getPrototypeOf(t.prototype).constructor}return null}function y(t){var e,r,n,i;return e=this,r=void 0,n=void 0,i=function*(){let e=Object.keys(t).map(e=>Promise.resolve(t[e]).then(t=>({key:e,value:t})));return(yield Promise.all(e)).reduce((t,e)=>(t[e.key]=e.value,t),{})},new(n||(n=Promise))(function(t,f){function o(t){try{s(i.next(t))}catch(t){f(t)}}function a(t){try{s(i.throw(t))}catch(t){f(t)}}function s(e){var r;e.done?t(e.value):((r=e.value)instanceof n?r:new n(function(t){t(r)})).then(o,a)}s((i=i.apply(e,r||[])).next())})}function v(t,e){t&&"object"==typeof t||m.throwArgumentError("invalid object","object",t),Object.keys(t).forEach(r=>{e[r]||m.throwArgumentError("invalid object key - "+r,"transaction:"+r,t)})}function w(t){let e={};for(let r in t)e[r]=t[r];return e}let M={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function E(t){return function(t){if(function t(e){if(null==e||M[typeof e])return!0;if(Array.isArray(e)||"object"==typeof e){if(!Object.isFrozen(e))return!1;let r=Object.keys(e);for(let n=0;n<r.length;n++){let i=null;try{i=e[r[n]]}catch(t){continue}if(!t(i))return!1}return!0}return m.throwArgumentError(`Cannot deepCopy ${typeof e}`,"object",e)}(t))return t;if(Array.isArray(t))return Object.freeze(t.map(t=>E(t)));if("object"==typeof t){let e={};for(let r in t){let n=t[r];void 0!==n&&g(e,r,E(n))}return e}return m.throwArgumentError(`Cannot deepCopy ${typeof t}`,"object",t)}(t)}class A{constructor(t){for(let e in t)this[e]=E(t[e])}}},18167:function(t){"use strict";for(var e="qpzry9x8gf2tvdw0s3jn54khce6mua7l",r={},n=0;n<e.length;n++){var i=e.charAt(n);if(void 0!==r[i])throw TypeError(i+" is ambiguous");r[i]=n}function f(t){var e=t>>25;return(33554431&t)<<5^996825010&-(e>>0&1)^642813549&-(e>>1&1)^513874426&-(e>>2&1)^1027748829&-(e>>3&1)^705979059&-(e>>4&1)}function o(t){for(var e=1,r=0;r<t.length;++r){var n=t.charCodeAt(r);if(n<33||n>126)return"Invalid prefix ("+t+")";e=f(e)^n>>5}for(r=0,e=f(e);r<t.length;++r){var i=t.charCodeAt(r);e=f(e)^31&i}return e}function a(t,e){if(e=e||90,t.length<8)return t+" too short";if(t.length>e)return"Exceeds length limit";var n=t.toLowerCase(),i=t.toUpperCase();if(t!==n&&t!==i)return"Mixed-case string "+t;var a=(t=n).lastIndexOf("1");if(-1===a)return"No separator character for "+t;if(0===a)return"Missing prefix for "+t;var s=t.slice(0,a),u=t.slice(a+1);if(u.length<6)return"Data too short";var l=o(s);if("string"==typeof l)return l;for(var h=[],c=0;c<u.length;++c){var d=u.charAt(c),p=r[d];if(void 0===p)return"Unknown character "+d;l=f(l)^p,c+6>=u.length||h.push(p)}return 1!==l?"Invalid checksum for "+t:{prefix:s,words:h}}function s(t,e,r,n){for(var i=0,f=0,o=(1<<r)-1,a=[],s=0;s<t.length;++s)for(i=i<<e|t[s],f+=e;f>=r;)a.push(i>>(f-=r)&o);if(n)f>0&&a.push(i<<r-f&o);else{if(f>=e)return"Excess padding";if(i<<r-f&o)return"Non-zero padding"}return a}t.exports={decodeUnsafe:function(){var t=a.apply(null,arguments);if("object"==typeof t)return t},decode:function(t){var e=a.apply(null,arguments);if("object"==typeof e)return e;throw Error(e)},encode:function(t,r,n){if(n=n||90,t.length+7+r.length>n)throw TypeError("Exceeds length limit");var i=o(t=t.toLowerCase());if("string"==typeof i)throw Error(i);for(var a=t+"1",s=0;s<r.length;++s){var u=r[s];if(u>>5!=0)throw Error("Non 5-bit word");i=f(i)^u,a+=e.charAt(u)}for(s=0;s<6;++s)i=f(i);for(i^=1,s=0;s<6;++s){var l=i>>(5-s)*5&31;a+=e.charAt(l)}return a},toWordsUnsafe:function(t){var e=s(t,8,5,!0);if(Array.isArray(e))return e},toWords:function(t){var e=s(t,8,5,!0);if(Array.isArray(e))return e;throw Error(e)},fromWordsUnsafe:function(t){var e=s(t,5,8,!1);if(Array.isArray(e))return e},fromWords:function(t){var e=s(t,5,8,!1);if(Array.isArray(e))return e;throw Error(e)}}},93860:function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw 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 f(t,e,r){if(f.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"))}"object"==typeof t?t.exports=f:e.BN=f,f.BN=f,f.wordSize=26;try{h="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(37037).Buffer}catch(t){}function o(t,e){var r=t.charCodeAt(e);return r>=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 a(t,e,r){var n=o(t,r);return r-1>=e&&(n|=o(t,r-1)<<4),n}function s(t,e,r,i){for(var f=0,o=0,a=Math.min(t.length,r),s=e;s<a;s++){var u=t.charCodeAt(s)-48;f*=i,o=u>=49?u-49+10:u>=17?u-17+10:u,n(u>=0&&o<i,"Invalid character"),f+=o}return f}function u(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(f.isBN=function(t){return t instanceof f||null!==t&&"object"==typeof t&&t.constructor.wordSize===f.wordSize&&Array.isArray(t.words)},f.max=function(t,e){return t.cmp(e)>0?t:e},f.min=function(t,e){return 0>t.cmp(e)?t:e},f.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);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},f.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)},f.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=Array(this.length);for(var i,f,o=0;o<this.length;o++)this.words[o]=0;var a=0;if("be"===r)for(o=t.length-1,i=0;o>=0;o-=3)f=t[o]|t[o-1]<<8|t[o-2]<<16,this.words[i]|=f<<a&67108863,this.words[i+1]=f>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);else if("le"===r)for(o=0,i=0;o<t.length;o+=3)f=t[o]|t[o+1]<<8|t[o+2]<<16,this.words[i]|=f<<a&67108863,this.words[i+1]=f>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);return this._strip()},f.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=Array(this.length);for(var n,i=0;i<this.length;i++)this.words[i]=0;var f=0,o=0;if("be"===r)for(i=t.length-1;i>=e;i-=2)n=a(t,e,i)<<f,this.words[o]|=67108863&n,f>=18?(f-=18,o+=1,this.words[o]|=n>>>26):f+=8;else for(i=(t.length-e)%2==0?e+1:e;i<t.length;i+=2)n=a(t,e,i)<<f,this.words[o]|=67108863&n,f>=18?(f-=18,o+=1,this.words[o]|=n>>>26):f+=8;this._strip()},f.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 f=t.length-r,o=f%n,a=Math.min(f,f-o)+r,u=0,l=r;l<a;l+=n)u=s(t,l,l+n,e),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==o){var h=1;for(u=s(t,l,t.length,e),l=0;l<o;l++)h*=e;this.imuln(h),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this._strip()},f.prototype.copy=function(t){t.words=Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},f.prototype._move=function(t){u(t,this)},f.prototype.clone=function(){var t=new f(null);return this.copy(t),t},f.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},f.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},f.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{f.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(t){f.prototype.inspect=l}else f.prototype.inspect=l;function l(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var h,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"],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];function m(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],f=0|e.words[0],o=i*f,a=67108863&o,s=o/67108864|0;r.words[0]=a;for(var u=1;u<n;u++){for(var l=s>>>26,h=67108863&s,c=Math.min(u,e.length-1),d=Math.max(0,u-t.length+1);d<=c;d++){var p=u-d|0;l+=(o=(i=0|t.words[p])*(f=0|e.words[d])+h)/67108864|0,h=67108863&o}r.words[u]=0|h,s=0|l}return 0!==s?r.words[u]=0|s:r.length--,r._strip()}f.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var r,i=0,f=0,o=0;o<this.length;o++){var a=this.words[o],s=((a<<i|f)&16777215).toString(16);f=a>>>24-i&16777215,(i+=2)>=26&&(i-=26,o--),r=0!==f||o!==this.length-1?c[6-s.length]+s+r:s+r}for(0!==f&&(r=f.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var u=d[t],l=p[t];r="";var h=this.clone();for(h.negative=0;!h.isZero();){var m=h.modrn(l).toString(t);r=(h=h.idivn(l)).isZero()?m+r:c[u-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},f.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},f.prototype.toJSON=function(){return this.toString(16,2)},h&&(f.prototype.toBuffer=function(t,e){return this.toArrayLike(h,t,e)}),f.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},f.prototype.toArrayLike=function(t,e,r){this._strip();var i=this.byteLength(),f=r||Math.max(1,i);n(i<=f,"byte array longer than desired length"),n(f>0,"Requested array length <= 0");var o=t.allocUnsafe?t.allocUnsafe(f):new t(f);return this["_toArrayLike"+("le"===e?"LE":"BE")](o,i),o},f.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,i=0,f=0;i<this.length;i++){var o=this.words[i]<<f|n;t[r++]=255&o,r<t.length&&(t[r++]=o>>8&255),r<t.length&&(t[r++]=o>>16&255),6===f?(r<t.length&&(t[r++]=o>>24&255),n=0,f=0):(n=o>>>24,f+=2)}if(r<t.length)for(t[r++]=n;r<t.length;)t[r++]=0},f.prototype._toArrayLikeBE=function(t,e){for(var r=t.length-1,n=0,i=0,f=0;i<this.length;i++){var o=this.words[i]<<f|n;t[r--]=255&o,r>=0&&(t[r--]=o>>8&255),r>=0&&(t[r--]=o>>16&255),6===f?(r>=0&&(t[r--]=o>>24&255),n=0,f=0):(n=o>>>24,f+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?f.prototype._countBits=function(t){return 32-Math.clz32(t)}:f.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},f.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return(8191&e)==0&&(r+=13,e>>>=13),(127&e)==0&&(r+=7,e>>>=7),(15&e)==0&&(r+=4,e>>>=4),(3&e)==0&&(r+=2,e>>>=2),(1&e)==0&&r++,r},f.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return(this.length-1)*26+e},f.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},f.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},f.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},f.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},f.prototype.isNeg=function(){return 0!==this.negative},f.prototype.neg=function(){return this.clone().ineg()},f.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},f.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},f.prototype.ior=function(t){return n((this.negative|t.negative)==0),this.iuor(t)},f.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},f.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},f.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this._strip()},f.prototype.iand=function(t){return n((this.negative|t.negative)==0),this.iuand(t)},f.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},f.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},f.prototype.iuxor=function(t){this.length>t.length?(e=this,r=t):(e=t,r=this);for(var e,r,n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this._strip()},f.prototype.ixor=function(t){return n((this.negative|t.negative)==0),this.iuxor(t)},f.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},f.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},f.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;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},f.prototype.notn=function(t){return this.clone().inotn(t)},f.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),e?this.words[r]=this.words[r]|1<<i:this.words[r]=this.words[r]&~(1<<i),this._strip()},f.prototype.iadd=function(t){if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var e,r,n,i=0,f=0;f<n.length;f++)e=(0|r.words[f])+(0|n.words[f])+i,this.words[f]=67108863&e,i=e>>>26;for(;0!==i&&f<r.length;f++)e=(0|r.words[f])+i,this.words[f]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;f<r.length;f++)this.words[f]=r.words[f];return this},f.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},f.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e,r,n=this.iadd(t);return t.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(e=this,r=t):(e=t,r=this);for(var f=0,o=0;o<r.length;o++)f=(n=(0|e.words[o])-(0|r.words[o])+f)>>26,this.words[o]=67108863&n;for(;0!==f&&o<e.length;o++)f=(n=(0|e.words[o])+f)>>26,this.words[o]=67108863&n;if(0===f&&o<e.length&&e!==this)for(;o<e.length;o++)this.words[o]=e.words[o];return this.length=Math.max(this.length,o),e!==this&&(this.negative=1),this._strip()},f.prototype.sub=function(t){return this.clone().isub(t)};var g=function(t,e,r){var n,i,f,o=t.words,a=e.words,s=r.words,u=0,l=0|o[0],h=8191&l,c=l>>>13,d=0|o[1],p=8191&d,m=d>>>13,g=0|o[2],b=8191&g,y=g>>>13,v=0|o[3],w=8191&v,M=v>>>13,E=0|o[4],A=8191&E,S=E>>>13,_=0|o[5],N=8191&_,T=_>>>13,R=0|o[6],C=8191&R,I=R>>>13,P=0|o[7],O=8191&P,x=P>>>13,k=0|o[8],F=8191&k,B=k>>>13,L=0|o[9],D=8191&L,U=L>>>13,G=0|a[0],z=8191&G,J=G>>>13,j=0|a[1],H=8191&j,V=j>>>13,X=0|a[2],q=8191&X,Z=X>>>13,K=0|a[3],W=8191&K,Y=K>>>13,Q=0|a[4],$=8191&Q,tt=Q>>>13,te=0|a[5],tr=8191&te,tn=te>>>13,ti=0|a[6],tf=8191&ti,to=ti>>>13,ta=0|a[7],ts=8191&ta,tu=ta>>>13,tl=0|a[8],th=8191&tl,tc=tl>>>13,td=0|a[9],tp=8191&td,tm=td>>>13;r.negative=t.negative^e.negative,r.length=19;var tg=(u+(n=Math.imul(h,z))|0)+((8191&(i=(i=Math.imul(h,J))+Math.imul(c,z)|0))<<13)|0;u=((f=Math.imul(c,J))+(i>>>13)|0)+(tg>>>26)|0,tg&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,J))+Math.imul(m,z)|0,f=Math.imul(m,J);var tb=(u+(n=n+Math.imul(h,H)|0)|0)+((8191&(i=(i=i+Math.imul(h,V)|0)+Math.imul(c,H)|0))<<13)|0;u=((f=f+Math.imul(c,V)|0)+(i>>>13)|0)+(tb>>>26)|0,tb&=67108863,n=Math.imul(b,z),i=(i=Math.imul(b,J))+Math.imul(y,z)|0,f=Math.imul(y,J),n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,H)|0,f=f+Math.imul(m,V)|0;var ty=(u+(n=n+Math.imul(h,q)|0)|0)+((8191&(i=(i=i+Math.imul(h,Z)|0)+Math.imul(c,q)|0))<<13)|0;u=((f=f+Math.imul(c,Z)|0)+(i>>>13)|0)+(ty>>>26)|0,ty&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,J))+Math.imul(M,z)|0,f=Math.imul(M,J),n=n+Math.imul(b,H)|0,i=(i=i+Math.imul(b,V)|0)+Math.imul(y,H)|0,f=f+Math.imul(y,V)|0,n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,q)|0,f=f+Math.imul(m,Z)|0;var tv=(u+(n=n+Math.imul(h,W)|0)|0)+((8191&(i=(i=i+Math.imul(h,Y)|0)+Math.imul(c,W)|0))<<13)|0;u=((f=f+Math.imul(c,Y)|0)+(i>>>13)|0)+(tv>>>26)|0,tv&=67108863,n=Math.imul(A,z),i=(i=Math.imul(A,J))+Math.imul(S,z)|0,f=Math.imul(S,J),n=n+Math.imul(w,H)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(M,H)|0,f=f+Math.imul(M,V)|0,n=n+Math.imul(b,q)|0,i=(i=i+Math.imul(b,Z)|0)+Math.imul(y,q)|0,f=f+Math.imul(y,Z)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,W)|0,f=f+Math.imul(m,Y)|0;var tw=(u+(n=n+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(c,$)|0))<<13)|0;u=((f=f+Math.imul(c,tt)|0)+(i>>>13)|0)+(tw>>>26)|0,tw&=67108863,n=Math.imul(N,z),i=(i=Math.imul(N,J))+Math.imul(T,z)|0,f=Math.imul(T,J),n=n+Math.imul(A,H)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(S,H)|0,f=f+Math.imul(S,V)|0,n=n+Math.imul(w,q)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(M,q)|0,f=f+Math.imul(M,Z)|0,n=n+Math.imul(b,W)|0,i=(i=i+Math.imul(b,Y)|0)+Math.imul(y,W)|0,f=f+Math.imul(y,Y)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,$)|0,f=f+Math.imul(m,tt)|0;var tM=(u+(n=n+Math.imul(h,tr)|0)|0)+((8191&(i=(i=i+Math.imul(h,tn)|0)+Math.imul(c,tr)|0))<<13)|0;u=((f=f+Math.imul(c,tn)|0)+(i>>>13)|0)+(tM>>>26)|0,tM&=67108863,n=Math.imul(C,z),i=(i=Math.imul(C,J))+Math.imul(I,z)|0,f=Math.imul(I,J),n=n+Math.imul(N,H)|0,i=(i=i+Math.imul(N,V)|0)+Math.imul(T,H)|0,f=f+Math.imul(T,V)|0,n=n+Math.imul(A,q)|0,i=(i=i+Math.imul(A,Z)|0)+Math.imul(S,q)|0,f=f+Math.imul(S,Z)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(M,W)|0,f=f+Math.imul(M,Y)|0,n=n+Math.imul(b,$)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(y,$)|0,f=f+Math.imul(y,tt)|0,n=n+Math.imul(p,tr)|0,i=(i=i+Math.imul(p,tn)|0)+Math.imul(m,tr)|0,f=f+Math.imul(m,tn)|0;var tE=(u+(n=n+Math.imul(h,tf)|0)|0)+((8191&(i=(i=i+Math.imul(h,to)|0)+Math.imul(c,tf)|0))<<13)|0;u=((f=f+Math.imul(c,to)|0)+(i>>>13)|0)+(tE>>>26)|0,tE&=67108863,n=Math.imul(O,z),i=(i=Math.imul(O,J))+Math.imul(x,z)|0,f=Math.imul(x,J),n=n+Math.imul(C,H)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(I,H)|0,f=f+Math.imul(I,V)|0,n=n+Math.imul(N,q)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(T,q)|0,f=f+Math.imul(T,Z)|0,n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(S,W)|0,f=f+Math.imul(S,Y)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(M,$)|0,f=f+Math.imul(M,tt)|0,n=n+Math.imul(b,tr)|0,i=(i=i+Math.imul(b,tn)|0)+Math.imul(y,tr)|0,f=f+Math.imul(y,tn)|0,n=n+Math.imul(p,tf)|0,i=(i=i+Math.imul(p,to)|0)+Math.imul(m,tf)|0,f=f+Math.imul(m,to)|0;var tA=(u+(n=n+Math.imul(h,ts)|0)|0)+((8191&(i=(i=i+Math.imul(h,tu)|0)+Math.imul(c,ts)|0))<<13)|0;u=((f=f+Math.imul(c,tu)|0)+(i>>>13)|0)+(tA>>>26)|0,tA&=67108863,n=Math.imul(F,z),i=(i=Math.imul(F,J))+Math.imul(B,z)|0,f=Math.imul(B,J),n=n+Math.imul(O,H)|0,i=(i=i+Math.imul(O,V)|0)+Math.imul(x,H)|0,f=f+Math.imul(x,V)|0,n=n+Math.imul(C,q)|0,i=(i=i+Math.imul(C,Z)|0)+Math.imul(I,q)|0,f=f+Math.imul(I,Z)|0,n=n+Math.imul(N,W)|0,i=(i=i+Math.imul(N,Y)|0)+Math.imul(T,W)|0,f=f+Math.imul(T,Y)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(S,$)|0,f=f+Math.imul(S,tt)|0,n=n+Math.imul(w,tr)|0,i=(i=i+Math.imul(w,tn)|0)+Math.imul(M,tr)|0,f=f+Math.imul(M,tn)|0,n=n+Math.imul(b,tf)|0,i=(i=i+Math.imul(b,to)|0)+Math.imul(y,tf)|0,f=f+Math.imul(y,to)|0,n=n+Math.imul(p,ts)|0,i=(i=i+Math.imul(p,tu)|0)+Math.imul(m,ts)|0,f=f+Math.imul(m,tu)|0;var tS=(u+(n=n+Math.imul(h,th)|0)|0)+((8191&(i=(i=i+Math.imul(h,tc)|0)+Math.imul(c,th)|0))<<13)|0;u=((f=f+Math.imul(c,tc)|0)+(i>>>13)|0)+(tS>>>26)|0,tS&=67108863,n=Math.imul(D,z),i=(i=Math.imul(D,J))+Math.imul(U,z)|0,f=Math.imul(U,J),n=n+Math.imul(F,H)|0,i=(i=i+Math.imul(F,V)|0)+Math.imul(B,H)|0,f=f+Math.imul(B,V)|0,n=n+Math.imul(O,q)|0,i=(i=i+Math.imul(O,Z)|0)+Math.imul(x,q)|0,f=f+Math.imul(x,Z)|0,n=n+Math.imul(C,W)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(I,W)|0,f=f+Math.imul(I,Y)|0,n=n+Math.imul(N,$)|0,i=(i=i+Math.imul(N,tt)|0)+Math.imul(T,$)|0,f=f+Math.imul(T,tt)|0,n=n+Math.imul(A,tr)|0,i=(i=i+Math.imul(A,tn)|0)+Math.imul(S,tr)|0,f=f+Math.imul(S,tn)|0,n=n+Math.imul(w,tf)|0,i=(i=i+Math.imul(w,to)|0)+Math.imul(M,tf)|0,f=f+Math.imul(M,to)|0,n=n+Math.imul(b,ts)|0,i=(i=i+Math.imul(b,tu)|0)+Math.imul(y,ts)|0,f=f+Math.imul(y,tu)|0,n=n+Math.imul(p,th)|0,i=(i=i+Math.imul(p,tc)|0)+Math.imul(m,th)|0,f=f+Math.imul(m,tc)|0;var t_=(u+(n=n+Math.imul(h,tp)|0)|0)+((8191&(i=(i=i+Math.imul(h,tm)|0)+Math.imul(c,tp)|0))<<13)|0;u=((f=f+Math.imul(c,tm)|0)+(i>>>13)|0)+(t_>>>26)|0,t_&=67108863,n=Math.imul(D,H),i=(i=Math.imul(D,V))+Math.imul(U,H)|0,f=Math.imul(U,V),n=n+Math.imul(F,q)|0,i=(i=i+Math.imul(F,Z)|0)+Math.imul(B,q)|0,f=f+Math.imul(B,Z)|0,n=n+Math.imul(O,W)|0,i=(i=i+Math.imul(O,Y)|0)+Math.imul(x,W)|0,f=f+Math.imul(x,Y)|0,n=n+Math.imul(C,$)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(I,$)|0,f=f+Math.imul(I,tt)|0,n=n+Math.imul(N,tr)|0,i=(i=i+Math.imul(N,tn)|0)+Math.imul(T,tr)|0,f=f+Math.imul(T,tn)|0,n=n+Math.imul(A,tf)|0,i=(i=i+Math.imul(A,to)|0)+Math.imul(S,tf)|0,f=f+Math.imul(S,to)|0,n=n+Math.imul(w,ts)|0,i=(i=i+Math.imul(w,tu)|0)+Math.imul(M,ts)|0,f=f+Math.imul(M,tu)|0,n=n+Math.imul(b,th)|0,i=(i=i+Math.imul(b,tc)|0)+Math.imul(y,th)|0,f=f+Math.imul(y,tc)|0;var tN=(u+(n=n+Math.imul(p,tp)|0)|0)+((8191&(i=(i=i+Math.imul(p,tm)|0)+Math.imul(m,tp)|0))<<13)|0;u=((f=f+Math.imul(m,tm)|0)+(i>>>13)|0)+(tN>>>26)|0,tN&=67108863,n=Math.imul(D,q),i=(i=Math.imul(D,Z))+Math.imul(U,q)|0,f=Math.imul(U,Z),n=n+Math.imul(F,W)|0,i=(i=i+Math.imul(F,Y)|0)+Math.imul(B,W)|0,f=f+Math.imul(B,Y)|0,n=n+Math.imul(O,$)|0,i=(i=i+Math.imul(O,tt)|0)+Math.imul(x,$)|0,f=f+Math.imul(x,tt)|0,n=n+Math.imul(C,tr)|0,i=(i=i+Math.imul(C,tn)|0)+Math.imul(I,tr)|0,f=f+Math.imul(I,tn)|0,n=n+Math.imul(N,tf)|0,i=(i=i+Math.imul(N,to)|0)+Math.imul(T,tf)|0,f=f+Math.imul(T,to)|0,n=n+Math.imul(A,ts)|0,i=(i=i+Math.imul(A,tu)|0)+Math.imul(S,ts)|0,f=f+Math.imul(S,tu)|0,n=n+Math.imul(w,th)|0,i=(i=i+Math.imul(w,tc)|0)+Math.imul(M,th)|0,f=f+Math.imul(M,tc)|0;var tT=(u+(n=n+Math.imul(b,tp)|0)|0)+((8191&(i=(i=i+Math.imul(b,tm)|0)+Math.imul(y,tp)|0))<<13)|0;u=((f=f+Math.imul(y,tm)|0)+(i>>>13)|0)+(tT>>>26)|0,tT&=67108863,n=Math.imul(D,W),i=(i=Math.imul(D,Y))+Math.imul(U,W)|0,f=Math.imul(U,Y),n=n+Math.imul(F,$)|0,i=(i=i+Math.imul(F,tt)|0)+Math.imul(B,$)|0,f=f+Math.imul(B,tt)|0,n=n+Math.imul(O,tr)|0,i=(i=i+Math.imul(O,tn)|0)+Math.imul(x,tr)|0,f=f+Math.imul(x,tn)|0,n=n+Math.imul(C,tf)|0,i=(i=i+Math.imul(C,to)|0)+Math.imul(I,tf)|0,f=f+Math.imul(I,to)|0,n=n+Math.imul(N,ts)|0,i=(i=i+Math.imul(N,tu)|0)+Math.imul(T,ts)|0,f=f+Math.imul(T,tu)|0,n=n+Math.imul(A,th)|0,i=(i=i+Math.imul(A,tc)|0)+Math.imul(S,th)|0,f=f+Math.imul(S,tc)|0;var tR=(u+(n=n+Math.imul(w,tp)|0)|0)+((8191&(i=(i=i+Math.imul(w,tm)|0)+Math.imul(M,tp)|0))<<13)|0;u=((f=f+Math.imul(M,tm)|0)+(i>>>13)|0)+(tR>>>26)|0,tR&=67108863,n=Math.imul(D,$),i=(i=Math.imul(D,tt))+Math.imul(U,$)|0,f=Math.imul(U,tt),n=n+Math.imul(F,tr)|0,i=(i=i+Math.imul(F,tn)|0)+Math.imul(B,tr)|0,f=f+Math.imul(B,tn)|0,n=n+Math.imul(O,tf)|0,i=(i=i+Math.imul(O,to)|0)+Math.imul(x,tf)|0,f=f+Math.imul(x,to)|0,n=n+Math.imul(C,ts)|0,i=(i=i+Math.imul(C,tu)|0)+Math.imul(I,ts)|0,f=f+Math.imul(I,tu)|0,n=n+Math.imul(N,th)|0,i=(i=i+Math.imul(N,tc)|0)+Math.imul(T,th)|0,f=f+Math.imul(T,tc)|0;var tC=(u+(n=n+Math.imul(A,tp)|0)|0)+((8191&(i=(i=i+Math.imul(A,tm)|0)+Math.imul(S,tp)|0))<<13)|0;u=((f=f+Math.imul(S,tm)|0)+(i>>>13)|0)+(tC>>>26)|0,tC&=67108863,n=Math.imul(D,tr),i=(i=Math.imul(D,tn))+Math.imul(U,tr)|0,f=Math.imul(U,tn),n=n+Math.imul(F,tf)|0,i=(i=i+Math.imul(F,to)|0)+Math.imul(B,tf)|0,f=f+Math.imul(B,to)|0,n=n+Math.imul(O,ts)|0,i=(i=i+Math.imul(O,tu)|0)+Math.imul(x,ts)|0,f=f+Math.imul(x,tu)|0,n=n+Math.imul(C,th)|0,i=(i=i+Math.imul(C,tc)|0)+Math.imul(I,th)|0,f=f+Math.imul(I,tc)|0;var tI=(u+(n=n+Math.imul(N,tp)|0)|0)+((8191&(i=(i=i+Math.imul(N,tm)|0)+Math.imul(T,tp)|0))<<13)|0;u=((f=f+Math.imul(T,tm)|0)+(i>>>13)|0)+(tI>>>26)|0,tI&=67108863,n=Math.imul(D,tf),i=(i=Math.imul(D,to))+Math.imul(U,tf)|0,f=Math.imul(U,to),n=n+Math.imul(F,ts)|0,i=(i=i+Math.imul(F,tu)|0)+Math.imul(B,ts)|0,f=f+Math.imul(B,tu)|0,n=n+Math.imul(O,th)|0,i=(i=i+Math.imul(O,tc)|0)+Math.imul(x,th)|0,f=f+Math.imul(x,tc)|0;var tP=(u+(n=n+Math.imul(C,tp)|0)|0)+((8191&(i=(i=i+Math.imul(C,tm)|0)+Math.imul(I,tp)|0))<<13)|0;u=((f=f+Math.imul(I,tm)|0)+(i>>>13)|0)+(tP>>>26)|0,tP&=67108863,n=Math.imul(D,ts),i=(i=Math.imul(D,tu))+Math.imul(U,ts)|0,f=Math.imul(U,tu),n=n+Math.imul(F,th)|0,i=(i=i+Math.imul(F,tc)|0)+Math.imul(B,th)|0,f=f+Math.imul(B,tc)|0;var tO=(u+(n=n+Math.imul(O,tp)|0)|0)+((8191&(i=(i=i+Math.imul(O,tm)|0)+Math.imul(x,tp)|0))<<13)|0;u=((f=f+Math.imul(x,tm)|0)+(i>>>13)|0)+(tO>>>26)|0,tO&=67108863,n=Math.imul(D,th),i=(i=Math.imul(D,tc))+Math.imul(U,th)|0,f=Math.imul(U,tc);var tx=(u+(n=n+Math.imul(F,tp)|0)|0)+((8191&(i=(i=i+Math.imul(F,tm)|0)+Math.imul(B,tp)|0))<<13)|0;u=((f=f+Math.imul(B,tm)|0)+(i>>>13)|0)+(tx>>>26)|0,tx&=67108863;var tk=(u+(n=Math.imul(D,tp))|0)+((8191&(i=(i=Math.imul(D,tm))+Math.imul(U,tp)|0))<<13)|0;return u=((f=Math.imul(U,tm))+(i>>>13)|0)+(tk>>>26)|0,tk&=67108863,s[0]=tg,s[1]=tb,s[2]=ty,s[3]=tv,s[4]=tw,s[5]=tM,s[6]=tE,s[7]=tA,s[8]=tS,s[9]=t_,s[10]=tN,s[11]=tT,s[12]=tR,s[13]=tC,s[14]=tI,s[15]=tP,s[16]=tO,s[17]=tx,s[18]=tk,0!==u&&(s[19]=u,r.length++),r};function b(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,f=0;f<r.length-1;f++){var o=i;i=0;for(var a=67108863&n,s=Math.min(f,e.length-1),u=Math.max(0,f-t.length+1);u<=s;u++){var l=f-u,h=(0|t.words[l])*(0|e.words[u]),c=67108863&h;o=o+(h/67108864|0)|0,a=67108863&(c=c+a|0),i+=(o=o+(c>>>26)|0)>>>26,o&=67108863}r.words[f]=a,n=o,o=i}return 0!==n?r.words[f]=n:r.length--,r._strip()}function y(t,e){this.x=t,this.y=e}Math.imul||(g=m),f.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return 10===this.length&&10===t.length?g(this,t,e):n<63?m(this,t,e):b(this,t,e)},y.prototype.makeRBT=function(t){for(var e=Array(t),r=f.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},y.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},y.prototype.permute=function(t,e,r,n,i,f){for(var o=0;o<f;o++)n[o]=e[t[o]],i[o]=r[t[o]]},y.prototype.transform=function(t,e,r,n,i,f){this.permute(f,t,e,r,n,i);for(var o=1;o<i;o<<=1)for(var a=o<<1,s=Math.cos(2*Math.PI/a),u=Math.sin(2*Math.PI/a),l=0;l<i;l+=a)for(var h=s,c=u,d=0;d<o;d++){var p=r[l+d],m=n[l+d],g=r[l+d+o],b=n[l+d+o],y=h*g-c*b;b=h*b+c*g,g=y,r[l+d]=p+g,n[l+d]=m+b,r[l+d+o]=p-g,n[l+d+o]=m-b,d!==a&&(y=s*h-u*c,c=s*c+u*h,h=y)}},y.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},y.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},y.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},y.prototype.convert13b=function(t,e,r,i){for(var f=0,o=0;o<e;o++)f+=0|t[o],r[2*o]=8191&f,f>>>=13,r[2*o+1]=8191&f,f>>>=13;for(o=2*e;o<i;++o)r[o]=0;n(0===f),n((-8192&f)==0)},y.prototype.stub=function(t){for(var e=Array(t),r=0;r<t;r++)e[r]=0;return e},y.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),f=this.stub(n),o=Array(n),a=Array(n),s=Array(n),u=Array(n),l=Array(n),h=Array(n),c=r.words;c.length=n,this.convert13b(t.words,t.length,o,n),this.convert13b(e.words,e.length,u,n),this.transform(o,f,a,s,n,i),this.transform(u,f,l,h,n,i);for(var d=0;d<n;d++){var p=a[d]*l[d]-s[d]*h[d];s[d]=a[d]*h[d]+s[d]*l[d],a[d]=p}return this.conjugate(a,s,n),this.transform(a,s,c,f,n,i),this.conjugate(c,f,n),this.normalize13b(c,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r._strip()},f.prototype.mul=function(t){var e=new f(null);return e.words=Array(this.length+t.length),this.mulTo(t,e)},f.prototype.mulf=function(t){var e=new f(null);return e.words=Array(this.length+t.length),b(this,t,e)},f.prototype.imul=function(t){return this.clone().mulTo(t,this)},f.prototype.imuln=function(t){var e=t<0;e&&(t=-t),n("number"==typeof t),n(t<67108864);for(var r=0,i=0;i<this.length;i++){var f=(0|this.words[i])*t,o=(67108863&f)+(67108863&r);r>>=26,r+=(f/67108864|0)+(o>>>26),this.words[i]=67108863&o}return 0!==r&&(this.words[i]=r,this.length++),e?this.ineg():this},f.prototype.muln=function(t){return this.clone().imuln(t)},f.prototype.sqr=function(){return this.mul(this)},f.prototype.isqr=function(){return this.imul(this.clone())},f.prototype.pow=function(t){var e=function(t){for(var e=Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=t.words[n]>>>i&1}return e}(t);if(0===e.length)return new f(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},f.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,f=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(e=0;e<this.length;e++){var a=this.words[e]&f,s=(0|this.words[e])-a<<r;this.words[e]=s|o,o=a>>>26-r}o&&(this.words[e]=o,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this._strip()},f.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},f.prototype.iushrn=function(t,e,r){n("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var i,f=t%26,o=Math.min((t-f)/26,this.length),a=67108863^67108863>>>f<<f;if(i-=o,i=Math.max(0,i),r){for(var s=0;s<o;s++)r.words[s]=this.words[s];r.length=o}if(0===o);else if(this.length>o)for(this.length-=o,s=0;s<this.length;s++)this.words[s]=this.words[s+o];else this.words[0]=0,this.length=1;var u=0;for(s=this.length-1;s>=0&&(0!==u||s>=i);s--){var l=0|this.words[s];this.words[s]=u<<26-f|l>>>f,u=l&a}return r&&0!==u&&(r.words[r.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},f.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},f.prototype.shln=function(t){return this.clone().ishln(t)},f.prototype.ushln=function(t){return this.clone().iushln(t)},f.prototype.shrn=function(t){return this.clone().ishrn(t)},f.prototype.ushrn=function(t){return this.clone().iushrn(t)},f.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;return!(this.length<=r)&&!!(this.words[r]&1<<e)},f.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;return(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)?this:(0!==e&&r++,this.length=Math.min(r,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<<e),this._strip())},f.prototype.maskn=function(t){return this.clone().imaskn(t)},f.prototype.iaddn=function(t){return(n("number"==typeof t),n(t<67108864),t<0)?this.isubn(-t):0!==this.negative?(1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(t),this.negative=1),this):this._iaddn(t)},f.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[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},f.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<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},f.prototype.addn=function(t){return this.clone().iaddn(t)},f.prototype.subn=function(t){return this.clone().isubn(t)},f.prototype.iabs=function(){return this.negative=0,this},f.prototype.abs=function(){return this.clone().iabs()},f.prototype._ishlnsubmul=function(t,e,r){var i,f,o=t.length+r;this._expand(o);var a=0;for(i=0;i<t.length;i++){f=(0|this.words[i+r])+a;var s=(0|t.words[i])*e;f-=67108863&s,a=(f>>26)-(s/67108864|0),this.words[i+r]=67108863&f}for(;i<this.length-r;i++)a=(f=(0|this.words[i+r])+a)>>26,this.words[i+r]=67108863&f;if(0===a)return this._strip();for(n(-1===a),a=0,i=0;i<this.length;i++)a=(f=-(0|this.words[i])+a)>>26,this.words[i]=67108863&f;return this.negative=1,this._strip()},f.prototype._wordDiv=function(t,e){var r,n=this.length-t.length,i=this.clone(),o=t,a=0|o.words[o.length-1];0!=(n=26-this._countBits(a))&&(o=o.ushln(n),i.iushln(n),a=0|o.words[o.length-1]);var s=i.length-o.length;if("mod"!==e){(r=new f(null)).length=s+1,r.words=Array(r.length);for(var u=0;u<r.length;u++)r.words[u]=0}var l=i.clone()._ishlnsubmul(o,1,s);0===l.negative&&(i=l,r&&(r.words[s]=1));for(var h=s-1;h>=0;h--){var c=(0|i.words[o.length+h])*67108864+(0|i.words[o.length+h-1]);for(c=Math.min(c/a|0,67108863),i._ishlnsubmul(o,c,h);0!==i.negative;)c--,i.negative=0,i._ishlnsubmul(o,1,h),i.isZero()||(i.negative^=1);r&&(r.words[h]=c)}return r&&r._strip(),i._strip(),"div"!==e&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},f.prototype.divmod=function(t,e,r){var i,o,a;return(n(!t.isZero()),this.isZero())?{div:new f(0),mod:new f(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:i,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):(this.negative&t.negative)!=0?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||0>this.cmp(t)?{div:new f(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new f(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new f(this.modrn(t.words[0]))}:this._wordDiv(t,e)},f.prototype.div=function(t){return this.divmod(t,"div",!1).div},f.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},f.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},f.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),f=r.cmp(n);return f<0||1===i&&0===f?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},f.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=67108864%t,i=0,f=this.length-1;f>=0;f--)i=(r*i+(0|this.words[f]))%t;return e?-i:i},f.prototype.modn=function(t){return this.modrn(t)},f.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 f=(0|this.words[i])+67108864*r;this.words[i]=f/t|0,r=f%t}return this._strip(),e?this.ineg():this},f.prototype.divn=function(t){return this.clone().idivn(t)},f.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();for(var i=new f(1),o=new f(0),a=new f(0),s=new f(1),u=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++u;for(var l=r.clone(),h=e.clone();!e.isZero();){for(var c=0,d=1;(e.words[0]&d)==0&&c<26;++c,d<<=1);if(c>0)for(e.iushrn(c);c-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(l),o.isub(h)),i.iushrn(1),o.iushrn(1);for(var p=0,m=1;(r.words[0]&m)==0&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||s.isOdd())&&(a.iadd(l),s.isub(h)),a.iushrn(1),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(a),o.isub(s)):(r.isub(e),a.isub(i),s.isub(o))}return{a:a,b:s,gcd:r.iushln(u)}},f.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e,r=this,i=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var o=new f(1),a=new f(0),s=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var u=0,l=1;(r.words[0]&l)==0&&u<26;++u,l<<=1);if(u>0)for(r.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);for(var h=0,c=1;(i.words[0]&c)==0&&h<26;++h,c<<=1);if(h>0)for(i.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);r.cmp(i)>=0?(r.isub(i),o.isub(a)):(i.isub(r),a.isub(o))}return 0>(e=0===r.cmpn(1)?o:a).cmpn(0)&&e.iadd(t),e},f.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);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var f=e;e=r,r=f}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},f.prototype.invm=function(t){return this.egcd(t).a.umod(t)},f.prototype.isEven=function(){return(1&this.words[0])==0},f.prototype.isOdd=function(){return(1&this.words[0])==1},f.prototype.andln=function(t){return this.words[0]&t},f.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var f=i,o=r;0!==f&&o<this.length;o++){var a=0|this.words[o];a+=f,f=a>>>26,a&=67108863,this.words[o]=a}return 0!==f&&(this.words[o]=f,this.length++),this},f.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},f.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:i<t?-1:1}return 0!==this.negative?0|-e:e},f.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return -1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},f.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return -1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},f.prototype.gtn=function(t){return 1===this.cmpn(t)},f.prototype.gt=function(t){return 1===this.cmp(t)},f.prototype.gten=function(t){return this.cmpn(t)>=0},f.prototype.gte=function(t){return this.cmp(t)>=0},f.prototype.ltn=function(t){return -1===this.cmpn(t)},f.prototype.lt=function(t){return -1===this.cmp(t)},f.prototype.lten=function(t){return 0>=this.cmpn(t)},f.prototype.lte=function(t){return 0>=this.cmp(t)},f.prototype.eqn=function(t){return 0===this.cmpn(t)},f.prototype.eq=function(t){return 0===this.cmp(t)},f.red=function(t){return new _(t)},f.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)},f.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},f.prototype._forceRed=function(t){return this.red=t,this},f.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},f.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},f.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},f.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},f.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},f.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},f.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},f.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},f.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},f.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},f.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},f.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},f.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},f.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new f(e,16),this.n=this.p.bitLength(),this.k=new f(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 E(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(t){if("string"==typeof t){var e=f._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 N(t){_.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new f(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 f(null);return t.words=Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,r=t;do this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?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=Math.min(t.length,9),n=0;n<r;n++)e.words[n]=t.words[n];if(e.length=r,t.length<=9){t.words[0]=0,t.length=1;return}var i=t.words[9];for(n=10,e.words[e.length++]=4194303&i;n<t.length;n++){var f=0|t.words[n];t.words[n-10]=(4194303&f)<<4|i>>>22,i=f}i>>>=22,t.words[n-10]=i,0===i&&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<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(E,w),i(A,w),i(S,w),S.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=(0|t.words[r])*19+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},f._prime=function(t){var e;if(v[t])return v[t];if("k256"===t)e=new M;else if("p224"===t)e=new E;else if("p192"===t)e=new A;else if("p25519"===t)e=new S;else throw Error("Unknown prime "+t);return v[t]=e,e},_.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},_.prototype._verify2=function(t,e){n((t.negative|e.negative)==0,"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},_.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(u(t,t.umod(this.m)._forceRed(this)),t)},_.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},_.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)},_.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},_.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},_.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return 0>r.cmpn(0)&&r.iadd(this.m),r},_.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},_.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},_.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},_.prototype.isqr=function(t){return this.imul(t,t.clone())},_.prototype.sqr=function(t){return this.mul(t,t)},_.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 f(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var a=new f(1).toRed(this),s=a.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new f(2*l*l).toRed(this);0!==this.pow(l,u).cmp(s);)l.redIAdd(s);for(var h=this.pow(l,i),c=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=o;0!==d.cmp(a);){for(var m=d,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g<p);var b=this.pow(h,new f(1).iushln(p-g-1));c=c.redMul(b),h=b.redSqr(),d=d.redMul(h),p=g}return c},_.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},_.prototype.pow=function(t,e){if(e.isZero())return new f(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=Array(16);r[0]=new f(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],o=0,a=0,s=e.bitLength()%26;for(0===s&&(s=26),n=e.length-1;n>=0;n--){for(var u=e.words[n],l=s-1;l>=0;l--){var h=u>>l&1;if(i!==r[0]&&(i=this.sqr(i)),0===h&&0===o){a=0;continue}o<<=1,o|=h,(4==++a||0===n&&0===l)&&(i=this.mul(i,r[o]),a=0,o=0)}s=26}return i},_.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},_.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},f.mont=function(t){return new N(t)},i(N,_),N.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},N.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},N.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),f=i;return i.cmp(this.m)>=0?f=i.isub(this.m):0>i.cmpn(0)&&(f=i.iadd(this.m)),f._forceRed(this)},N.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new f(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),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},N.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},572:function(t,e,r){var n,i=r(34155);!function(){"use strict";var f="input is invalid type",o="object"==typeof window,a=o?window:{};a.JS_SHA3_NO_WINDOW&&(o=!1);var s=!o&&"object"==typeof self;!a.JS_SHA3_NO_NODE_JS&&"object"==typeof i&&i.versions&&i.versions.node?a=r.g:s&&(a=self);var u=!a.JS_SHA3_NO_COMMON_JS&&t.exports,l=r.amdO,h=!a.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,c="0123456789abcdef".split(""),d=[4,1024,262144,67108864],p=[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],g=[224,256,384,512],b=[128,256],y=["hex","buffer","arrayBuffer","array","digest"],v={128:168,256:136};(a.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),h&&(a.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 w=function(t,e,r){return function(n){return new F(t,e,t).update(n)[r]()}},M=function(t,e,r){return function(n,i){return new F(t,e,i).update(n)[r]()}},E=function(t,e,r){return function(e,n,i,f){return T["cshake"+t].update(e,n,i,f)[r]()}},A=function(t,e,r){return function(e,n,i,f){return T["kmac"+t].update(e,n,i,f)[r]()}},S=function(t,e,r,n){for(var i=0;i<y.length;++i){var f=y[i];t[f]=e(r,n,f)}return t},_=function(t,e){var r=w(t,e,"hex");return r.create=function(){return new F(t,e,t)},r.update=function(t){return r.create().update(t)},S(r,w,t,e)},N=[{name:"keccak",padding:[1,256,65536,16777216],bits:g,createMethod:_},{name:"sha3",padding:[6,1536,393216,100663296],bits:g,createMethod:_},{name:"shake",padding:[31,7936,2031616,520093696],bits:b,createMethod:function(t,e){var r=M(t,e,"hex");return r.create=function(r){return new F(t,e,r)},r.update=function(t,e){return r.create(e).update(t)},S(r,M,t,e)}},{name:"cshake",padding:d,bits:b,createMethod:function(t,e){var r=v[t],n=E(t,e,"hex");return n.create=function(n,i,f){return i||f?new F(t,e,n).bytepad([i,f],r):T["shake"+t].create(n)},n.update=function(t,e,r,i){return n.create(e,r,i).update(t)},S(n,E,t,e)}},{name:"kmac",padding:d,bits:b,createMethod:function(t,e){var r=v[t],n=A(t,e,"hex");return n.create=function(n,i,f){return new B(t,e,i).bytepad(["KMAC",f],r).bytepad([n],r)},n.update=function(t,e,r,i){return n.create(t,r,i).update(e)},S(n,A,t,e)}}],T={},R=[],C=0;C<N.length;++C)for(var I=N[C],P=I.bits,O=0;O<P.length;++O){var x=I.name+"_"+P[O];if(R.push(x),T[x]=I.createMethod(P[O],I.padding),"sha3"!==I.name){var k=I.name+P[O];R.push(k),T[k]=T[x]}}function F(t,e,r){this.blocks=[],this.s=[],this.padding=e,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(t<<1)>>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 B(t,e,r){F.call(this,t,e,r)}F.prototype.update=function(t){if(this.finalized)throw Error("finalize already called");var e,r=typeof t;if("string"!==r){if("object"===r){if(null===t)throw Error(f);if(h&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!h||!ArrayBuffer.isView(t)))throw Error(f)}else throw Error(f);e=!0}for(var n,i,o=this.blocks,a=this.byteCount,s=t.length,u=this.blockCount,l=0,c=this.s;l<s;){if(this.reset)for(n=1,this.reset=!1,o[0]=this.block;n<u+1;++n)o[n]=0;if(e)for(n=this.start;l<s&&n<a;++l)o[n>>2]|=t[l]<<p[3&n++];else for(n=this.start;l<s&&n<a;++l)(i=t.charCodeAt(l))<128?o[n>>2]|=i<<p[3&n++]:(i<2048?o[n>>2]|=(192|i>>6)<<p[3&n++]:(i<55296||i>=57344?o[n>>2]|=(224|i>>12)<<p[3&n++]:(i=65536+((1023&i)<<10|1023&t.charCodeAt(++l)),o[n>>2]|=(240|i>>18)<<p[3&n++],o[n>>2]|=(128|i>>12&63)<<p[3&n++]),o[n>>2]|=(128|i>>6&63)<<p[3&n++]),o[n>>2]|=(128|63&i)<<p[3&n++]);if(this.lastByteIndex=n,n>=a){for(this.start=n-a,this.block=o[u],n=0;n<u;++n)c[n]^=o[n];L(c),this.reset=!0}else this.start=n}return this},F.prototype.encode=function(t,e){var r=255&t,n=1,i=[r];for(t>>=8,r=255&t;r>0;)i.unshift(r),t>>=8,r=255&t,++n;return e?i.push(n):i.unshift(n),this.update(i),i.length},F.prototype.encodeString=function(t){var e,r=typeof t;if("string"!==r){if("object"===r){if(null===t)throw Error(f);if(h&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!h||!ArrayBuffer.isView(t)))throw Error(f)}else throw Error(f);e=!0}var n=0,i=t.length;if(e)n=i;else for(var o=0;o<t.length;++o){var a=t.charCodeAt(o);a<128?n+=1:a<2048?n+=2:a<55296||a>=57344?n+=3:(a=65536+((1023&a)<<10|1023&t.charCodeAt(++o)),n+=4)}return n+=this.encode(8*n),this.update(t),n},F.prototype.bytepad=function(t,e){for(var r=this.encode(e),n=0;n<t.length;++n)r+=this.encodeString(t[n]);var i=e-r%e,f=[];return f.length=i,this.update(f),this},F.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex,r=this.blockCount,n=this.s;if(t[e>>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(e=1,t[0]=t[r];e<r+1;++e)t[e]=0;for(t[r-1]|=2147483648,e=0;e<r;++e)n[e]^=t[e];L(n)}},F.prototype.toString=F.prototype.hex=function(){this.finalize();for(var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,f=0,o=0,a="";o<n;){for(f=0;f<e&&o<n;++f,++o)a+=c[(t=r[f])>>4&15]+c[15&t]+c[t>>12&15]+c[t>>8&15]+c[t>>20&15]+c[t>>16&15]+c[t>>28&15]+c[t>>24&15];o%e==0&&(L(r),f=0)}return i&&(a+=c[(t=r[f])>>4&15]+c[15&t],i>1&&(a+=c[t>>12&15]+c[t>>8&15]),i>2&&(a+=c[t>>20&15]+c[t>>16&15])),a},F.prototype.arrayBuffer=function(){this.finalize();for(var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,f=0,o=0,a=this.outputBits>>3,s=new Uint32Array(t=new ArrayBuffer(i?n+1<<2:a));o<n;){for(f=0;f<e&&o<n;++f,++o)s[o]=r[f];o%e==0&&L(r)}return i&&(s[f]=r[f],t=t.slice(0,a)),t},F.prototype.buffer=F.prototype.arrayBuffer,F.prototype.digest=F.prototype.array=function(){this.finalize();for(var t,e,r=this.blockCount,n=this.s,i=this.outputBlocks,f=this.extraBytes,o=0,a=0,s=[];a<i;){for(o=0;o<r&&a<i;++o,++a)t=a<<2,e=n[o],s[t]=255&e,s[t+1]=e>>8&255,s[t+2]=e>>16&255,s[t+3]=e>>24&255;a%r==0&&L(n)}return f&&(t=a<<2,e=n[o],s[t]=255&e,f>1&&(s[t+1]=e>>8&255),f>2&&(s[t+2]=e>>16&255)),s},B.prototype=new F,B.prototype.finalize=function(){return this.encode(this.outputBits,!0),F.prototype.finalize.call(this)};var L=function(t){var e,r,n,i,f,o,a,s,u,l,h,c,d,p,g,b,y,v,w,M,E,A,S,_,N,T,R,C,I,P,O,x,k,F,B,L,D,U,G,z,J,j,H,V,X,q,Z,K,W,Y,Q,$,tt,te,tr,tn,ti,tf,to,ta,ts,tu,tl;for(n=0;n<48;n+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],f=t[1]^t[11]^t[21]^t[31]^t[41],o=t[2]^t[12]^t[22]^t[32]^t[42],a=t[3]^t[13]^t[23]^t[33]^t[43],s=t[4]^t[14]^t[24]^t[34]^t[44],u=t[5]^t[15]^t[25]^t[35]^t[45],l=t[6]^t[16]^t[26]^t[36]^t[46],h=t[7]^t[17]^t[27]^t[37]^t[47],c=t[8]^t[18]^t[28]^t[38]^t[48],d=t[9]^t[19]^t[29]^t[39]^t[49],e=c^(o<<1|a>>>31),r=d^(a<<1|o>>>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^(s<<1|u>>>31),r=f^(u<<1|s>>>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=o^(l<<1|h>>>31),r=a^(h<<1|l>>>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=s^(c<<1|d>>>31),r=u^(d<<1|c>>>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=l^(i<<1|f>>>31),r=h^(f<<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],g=t[1],q=t[11]<<4|t[10]>>>28,Z=t[10]<<4|t[11]>>>28,C=t[20]<<3|t[21]>>>29,I=t[21]<<3|t[20]>>>29,ta=t[31]<<9|t[30]>>>23,ts=t[30]<<9|t[31]>>>23,j=t[40]<<18|t[41]>>>14,H=t[41]<<18|t[40]>>>14,F=t[2]<<1|t[3]>>>31,B=t[3]<<1|t[2]>>>31,b=t[13]<<12|t[12]>>>20,y=t[12]<<12|t[13]>>>20,K=t[22]<<10|t[23]>>>22,W=t[23]<<10|t[22]>>>22,P=t[33]<<13|t[32]>>>19,O=t[32]<<13|t[33]>>>19,tu=t[42]<<2|t[43]>>>30,tl=t[43]<<2|t[42]>>>30,te=t[5]<<30|t[4]>>>2,tr=t[4]<<30|t[5]>>>2,L=t[14]<<6|t[15]>>>26,D=t[15]<<6|t[14]>>>26,v=t[25]<<11|t[24]>>>21,w=t[24]<<11|t[25]>>>21,Y=t[34]<<15|t[35]>>>17,Q=t[35]<<15|t[34]>>>17,x=t[45]<<29|t[44]>>>3,k=t[44]<<29|t[45]>>>3,_=t[6]<<28|t[7]>>>4,N=t[7]<<28|t[6]>>>4,tn=t[17]<<23|t[16]>>>9,ti=t[16]<<23|t[17]>>>9,U=t[26]<<25|t[27]>>>7,G=t[27]<<25|t[26]>>>7,M=t[36]<<21|t[37]>>>11,E=t[37]<<21|t[36]>>>11,$=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,V=t[8]<<27|t[9]>>>5,X=t[9]<<27|t[8]>>>5,T=t[18]<<20|t[19]>>>12,R=t[19]<<20|t[18]>>>12,tf=t[29]<<7|t[28]>>>25,to=t[28]<<7|t[29]>>>25,z=t[38]<<8|t[39]>>>24,J=t[39]<<8|t[38]>>>24,A=t[48]<<14|t[49]>>>18,S=t[49]<<14|t[48]>>>18,t[0]=p^~b&v,t[1]=g^~y&w,t[10]=_^~T&C,t[11]=N^~R&I,t[20]=F^~L&U,t[21]=B^~D&G,t[30]=V^~q&K,t[31]=X^~Z&W,t[40]=te^~tn&tf,t[41]=tr^~ti&to,t[2]=b^~v&M,t[3]=y^~w&E,t[12]=T^~C&P,t[13]=R^~I&O,t[22]=L^~U&z,t[23]=D^~G&J,t[32]=q^~K&Y,t[33]=Z^~W&Q,t[42]=tn^~tf&ta,t[43]=ti^~to&ts,t[4]=v^~M&A,t[5]=w^~E&S,t[14]=C^~P&x,t[15]=I^~O&k,t[24]=U^~z&j,t[25]=G^~J&H,t[34]=K^~Y&$,t[35]=W^~Q&tt,t[44]=tf^~ta&tu,t[45]=to^~ts&tl,t[6]=M^~A&p,t[7]=E^~S&g,t[16]=P^~x&_,t[17]=O^~k&N,t[26]=z^~j&F,t[27]=J^~H&B,t[36]=Y^~$&V,t[37]=Q^~tt&X,t[46]=ta^~tu&te,t[47]=ts^~tl&tr,t[8]=A^~p&b,t[9]=S^~g&y,t[18]=x^~_&T,t[19]=k^~N&R,t[28]=j^~F&L,t[29]=H^~B&D,t[38]=$^~V&q,t[39]=tt^~X&Z,t[48]=tu^~te&tn,t[49]=tl^~tr&ti,t[0]^=m[n],t[1]^=m[n+1]};if(u)t.exports=T;else{for(C=0;C<R.length;++C)a[R[C]]=T[R[C]];l&&void 0!==(n=(function(){return T}).call(e,r,e,t))&&(t.exports=n)}}()},5621:function(t,e,r){"use strict";r.r(e),r.d(e,{randomBytes:function(){return n.O},shuffled:function(){return i.y}});var n=r(90455),i=r(50451)},90455:function(t,e,r){"use strict";var n,i,f,o;r.d(e,{O:function(){return M}});let a=!1,s=!1,u={debug:1,default:2,info:2,warning:3,error:4,off:5},l=u.default,h=null,c=function(){try{let t=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test"!=="test".normalize(e))throw Error("bad normalize")}catch(r){t.push(e)}}),t.length)throw Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw Error("broken implementation")}catch(t){return t.message}return null}();(f=n||(n={})).DEBUG="DEBUG",f.INFO="INFO",f.WARNING="WARNING",f.ERROR="ERROR",f.OFF="OFF",(o=i||(i={})).UNKNOWN_ERROR="UNKNOWN_ERROR",o.NOT_IMPLEMENTED="NOT_IMPLEMENTED",o.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",o.NETWORK_ERROR="NETWORK_ERROR",o.SERVER_ERROR="SERVER_ERROR",o.TIMEOUT="TIMEOUT",o.BUFFER_OVERRUN="BUFFER_OVERRUN",o.NUMERIC_FAULT="NUMERIC_FAULT",o.MISSING_NEW="MISSING_NEW",o.INVALID_ARGUMENT="INVALID_ARGUMENT",o.MISSING_ARGUMENT="MISSING_ARGUMENT",o.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",o.CALL_EXCEPTION="CALL_EXCEPTION",o.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",o.NONCE_EXPIRED="NONCE_EXPIRED",o.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",o.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",o.TRANSACTION_REPLACED="TRANSACTION_REPLACED",o.ACTION_REJECTED="ACTION_REJECTED";let d="0123456789abcdef";class p{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){let r=t.toLowerCase();null==u[r]&&this.throwArgumentError("invalid log level name","logLevel",t),l>u[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(s)return this.makeError("censored error",e,{});e||(e=p.errors.UNKNOWN_ERROR),r||(r={});let n=[];Object.keys(r).forEach(t=>{let e=r[t];try{if(e instanceof Uint8Array){let r="";for(let t=0;t<e.length;t++)r+=d[e[t]>>4]+d[15&e[t]];n.push(t+"=Uint8Array(0x"+r+")")}else n.push(t+"="+JSON.stringify(e))}catch(e){n.push(t+"="+JSON.stringify(r[t].toString()))}}),n.push(`code=${e}`),n.push(`version=${this.version}`);let f=t,o="";switch(e){case i.NUMERIC_FAULT:{o="NUMERIC_FAULT";let e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":o+="-"+e;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result"}break}case i.CALL_EXCEPTION:case i.INSUFFICIENT_FUNDS:case i.MISSING_NEW:case i.NONCE_EXPIRED:case i.REPLACEMENT_UNDERPRICED:case i.TRANSACTION_REPLACED:case i.UNPREDICTABLE_GAS_LIMIT:o=e}o&&(t+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),n.length&&(t+=" ("+n.join(", ")+")");let a=Error(t);return a.reason=f,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"),c&&this.throwError("platform missing String.prototype.normalize",p.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:c})}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:"",t<e&&this.throwError("missing argument"+r,p.errors.MISSING_ARGUMENT,{count:t,expectedCount:e}),t>e&&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 h||(h=new p("logger/5.7.0")),h}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",p.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),a){if(!t)return;this.globalLogger().throwError("error censorship permanent",p.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}s=!!t,a=!!e}static setLogLevel(t){let e=u[t.toLowerCase()];if(null==e){p.globalLogger().warn("invalid log level - "+t);return}l=e}static from(t){return new p(t)}}p.errors=i,p.levels=n;let m=new p("bytes/5.7.0");function g(t){return t.slice||(t.slice=function(){let e=Array.prototype.slice.call(arguments);return g(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function b(t){return"number"==typeof t&&t==t&&t%1==0}let y=new p("random/5.4.0"),v=null;try{if(v=window,null==v)throw Error("try next")}catch(t){try{if(v=r.g,null==v)throw Error("try next")}catch(t){v={}}}let w=v.crypto||v.msCrypto;function M(t){(t<=0||t>1024||t%1)&&y.throwArgumentError("invalid length","length",t);let e=new Uint8Array(t);return w.getRandomValues(e),function(t,e){var r;if(e||(e={}),"number"==typeof t){m.checkSafeUint53(t,"invalid arrayify value");let e=[];for(;t;)e.unshift(255&t),t=parseInt(String(t/256));return 0===e.length&&e.push(0),g(new Uint8Array(e))}if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),t.toHexString&&(t=t.toHexString()),"string"==typeof(r=t)&&r.match(/^0x[0-9A-Fa-f]*$/)){let r=t.substring(2);r.length%2&&("left"===e.hexPad?r="0"+r:"right"===e.hexPad?r+="0":m.throwArgumentError("hex data is odd-length","value",t));let n=[];for(let t=0;t<r.length;t+=2)n.push(parseInt(r.substring(t,t+2),16));return g(new Uint8Array(n))}return!function(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"==typeof t||!b(t.length)||t.length<0)return!1;for(let e=0;e<t.length;e++){let r=t[e];if(!b(r)||r<0||r>=256)return!1}return!0}(t)?m.throwArgumentError("invalid arrayify value","value",t):g(new Uint8Array(t))}(e)}w&&w.getRandomValues||(y.warn("WARNING: Missing strong random number source"),w={getRandomValues:function(t){return y.throwError("no secure random source avaialble",p.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}})},50451:function(t,e,r){"use strict";function n(t){t=t.slice();for(let e=t.length-1;e>0;e--){let r=Math.floor(Math.random()*(e+1)),n=t[e];t[e]=t[r],t[r]=n}return t}r.d(e,{y:function(){return n}})},29157:function(t,e,r){"use strict";var n,i,f,o;r.r(e),r.d(e,{decode:function(){return I},encode:function(){return T}});let a=!1,s=!1,u={debug:1,default:2,info:2,warning:3,error:4,off:5},l=u.default,h=null,c=function(){try{let t=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test"!=="test".normalize(e))throw Error("bad normalize")}catch(r){t.push(e)}}),t.length)throw Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw Error("broken implementation")}catch(t){return t.message}return null}();(f=n||(n={})).DEBUG="DEBUG",f.INFO="INFO",f.WARNING="WARNING",f.ERROR="ERROR",f.OFF="OFF",(o=i||(i={})).UNKNOWN_ERROR="UNKNOWN_ERROR",o.NOT_IMPLEMENTED="NOT_IMPLEMENTED",o.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",o.NETWORK_ERROR="NETWORK_ERROR",o.SERVER_ERROR="SERVER_ERROR",o.TIMEOUT="TIMEOUT",o.BUFFER_OVERRUN="BUFFER_OVERRUN",o.NUMERIC_FAULT="NUMERIC_FAULT",o.MISSING_NEW="MISSING_NEW",o.INVALID_ARGUMENT="INVALID_ARGUMENT",o.MISSING_ARGUMENT="MISSING_ARGUMENT",o.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",o.CALL_EXCEPTION="CALL_EXCEPTION",o.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",o.NONCE_EXPIRED="NONCE_EXPIRED",o.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",o.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",o.TRANSACTION_REPLACED="TRANSACTION_REPLACED",o.ACTION_REJECTED="ACTION_REJECTED";let d="0123456789abcdef";class p{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){let r=t.toLowerCase();null==u[r]&&this.throwArgumentError("invalid log level name","logLevel",t),l>u[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(s)return this.makeError("censored error",e,{});e||(e=p.errors.UNKNOWN_ERROR),r||(r={});let n=[];Object.keys(r).forEach(t=>{let e=r[t];try{if(e instanceof Uint8Array){let r="";for(let t=0;t<e.length;t++)r+=d[e[t]>>4]+d[15&e[t]];n.push(t+"=Uint8Array(0x"+r+")")}else n.push(t+"="+JSON.stringify(e))}catch(e){n.push(t+"="+JSON.stringify(r[t].toString()))}}),n.push(`code=${e}`),n.push(`version=${this.version}`);let f=t,o="";switch(e){case i.NUMERIC_FAULT:{o="NUMERIC_FAULT";let e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":o+="-"+e;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result"}break}case i.CALL_EXCEPTION:case i.INSUFFICIENT_FUNDS:case i.MISSING_NEW:case i.NONCE_EXPIRED:case i.REPLACEMENT_UNDERPRICED:case i.TRANSACTION_REPLACED:case i.UNPREDICTABLE_GAS_LIMIT:o=e}o&&(t+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),n.length&&(t+=" ("+n.join(", ")+")");let a=Error(t);return a.reason=f,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"),c&&this.throwError("platform missing String.prototype.normalize",p.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:c})}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:"",t<e&&this.throwError("missing argument"+r,p.errors.MISSING_ARGUMENT,{count:t,expectedCount:e}),t>e&&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 h||(h=new p("logger/5.7.0")),h}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",p.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),a){if(!t)return;this.globalLogger().throwError("error censorship permanent",p.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}s=!!t,a=!!e}static setLogLevel(t){let e=u[t.toLowerCase()];if(null==e){p.globalLogger().warn("invalid log level - "+t);return}l=e}static from(t){return new p(t)}}p.errors=i,p.levels=n;let m=new p("bytes/5.7.0");function g(t){return!!t.toHexString}function b(t){return t.slice||(t.slice=function(){let e=Array.prototype.slice.call(arguments);return b(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function y(t){return"number"==typeof t&&t==t&&t%1==0}function v(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"==typeof t||!y(t.length)||t.length<0)return!1;for(let e=0;e<t.length;e++){let r=t[e];if(!y(r)||r<0||r>=256)return!1}return!0}function w(t,e){if(e||(e={}),"number"==typeof t){m.checkSafeUint53(t,"invalid arrayify value");let e=[];for(;t;)e.unshift(255&t),t=parseInt(String(t/256));return 0===e.length&&e.push(0),b(new Uint8Array(e))}if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),g(t)&&(t=t.toHexString()),M(t)){let r=t.substring(2);r.length%2&&("left"===e.hexPad?r="0"+r:"right"===e.hexPad?r+="0":m.throwArgumentError("hex data is odd-length","value",t));let n=[];for(let t=0;t<r.length;t+=2)n.push(parseInt(r.substring(t,t+2),16));return b(new Uint8Array(n))}return v(t)?b(new Uint8Array(t)):m.throwArgumentError("invalid arrayify value","value",t)}function M(t,e){return"string"==typeof t&&!!t.match(/^0x[0-9A-Fa-f]*$/)&&(!e||t.length===2+2*e)}let E="0123456789abcdef";function A(t,e){if(e||(e={}),"number"==typeof t){m.checkSafeUint53(t,"invalid hexlify value");let e="";for(;t;)e=E[15&t]+e,t=Math.floor(t/16);return e.length?(e.length%2&&(e="0"+e),"0x"+e):"0x00"}if("bigint"==typeof t)return(t=t.toString(16)).length%2?"0x0"+t:"0x"+t;if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),g(t))return t.toHexString();if(M(t))return t.length%2&&("left"===e.hexPad?t="0x0"+t.substring(2):"right"===e.hexPad?t+="0":m.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(v(t)){let e="0x";for(let r=0;r<t.length;r++){let n=t[r];e+=E[(240&n)>>4]+E[15&n]}return e}return m.throwArgumentError("invalid hexlify value","value",t)}let S=new p("rlp/5.4.0");function _(t){let e=[];for(;t;)e.unshift(255&t),t>>=8;return e}function N(t,e,r){let n=0;for(let i=0;i<r;i++)n=256*n+t[e+i];return n}function T(t){return A(function t(e){if(Array.isArray(e)){let r=[];if(e.forEach(function(e){r=r.concat(t(e))}),r.length<=55)return r.unshift(192+r.length),r;let n=_(r.length);return n.unshift(247+n.length),n.concat(r)}M(e)&&!(e.length%2)||v(e)||S.throwArgumentError("RLP object must be BytesLike","object",e);let r=Array.prototype.slice.call(w(e));if(1===r.length&&r[0]<=127)return r;if(r.length<=55)return r.unshift(128+r.length),r;let n=_(r.length);return n.unshift(183+n.length),n.concat(r)}(t))}function R(t,e,r,n){let i=[];for(;r<e+1+n;){let f=C(t,r);i.push(f.result),(r+=f.consumed)>e+1+n&&S.throwError("child data too short",p.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:i}}function C(t,e){if(0===t.length&&S.throwError("data too short",p.errors.BUFFER_OVERRUN,{}),t[e]>=248){let r=t[e]-247;e+1+r>t.length&&S.throwError("data short segment too short",p.errors.BUFFER_OVERRUN,{});let n=N(t,e+1,r);return e+1+r+n>t.length&&S.throwError("data long segment too short",p.errors.BUFFER_OVERRUN,{}),R(t,e,e+1+r,r+n)}if(t[e]>=192){let r=t[e]-192;return e+1+r>t.length&&S.throwError("data array too short",p.errors.BUFFER_OVERRUN,{}),R(t,e,e+1,r)}if(t[e]>=184){let r=t[e]-183;e+1+r>t.length&&S.throwError("data array too short",p.errors.BUFFER_OVERRUN,{});let n=N(t,e+1,r);e+1+r+n>t.length&&S.throwError("data array too short",p.errors.BUFFER_OVERRUN,{});let i=A(t.slice(e+1+r,e+1+r+n));return{consumed:1+r+n,result:i}}if(t[e]>=128){let r=t[e]-128;e+1+r>t.length&&S.throwError("data too short",p.errors.BUFFER_OVERRUN,{});let n=A(t.slice(e+1,e+1+r));return{consumed:1+r,result:n}}return{consumed:1,result:A(t[e])}}function I(t){let e=w(t),r=C(e,0);return r.consumed!==e.length&&S.throwArgumentError("invalid rlp data","data",t),r.result}},29039:function(t,e,r){"use strict";r.r(e),r.d(e,{SupportedAlgorithm:function(){return i.p},computeHmac:function(){return n.Gy},ripemd160:function(){return n.bP},sha256:function(){return n.JQ},sha512:function(){return n.o}});var n=r(75901),i=r(42219)},75901:function(t,e,r){"use strict";r.d(e,{Gy:function(){return N},bP:function(){return A},JQ:function(){return S},o:function(){return _}});var n,i,f,o,a=r(33715),s=r.n(a);let u=!1,l=!1,h={debug:1,default:2,info:2,warning:3,error:4,off:5},c=h.default,d=null,p=function(){try{let t=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test"!=="test".normalize(e))throw Error("bad normalize")}catch(r){t.push(e)}}),t.length)throw Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw Error("broken implementation")}catch(t){return t.message}return null}();(n=f||(f={})).DEBUG="DEBUG",n.INFO="INFO",n.WARNING="WARNING",n.ERROR="ERROR",n.OFF="OFF",(i=o||(o={})).UNKNOWN_ERROR="UNKNOWN_ERROR",i.NOT_IMPLEMENTED="NOT_IMPLEMENTED",i.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",i.NETWORK_ERROR="NETWORK_ERROR",i.SERVER_ERROR="SERVER_ERROR",i.TIMEOUT="TIMEOUT",i.BUFFER_OVERRUN="BUFFER_OVERRUN",i.NUMERIC_FAULT="NUMERIC_FAULT",i.MISSING_NEW="MISSING_NEW",i.INVALID_ARGUMENT="INVALID_ARGUMENT",i.MISSING_ARGUMENT="MISSING_ARGUMENT",i.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",i.CALL_EXCEPTION="CALL_EXCEPTION",i.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",i.NONCE_EXPIRED="NONCE_EXPIRED",i.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",i.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",i.TRANSACTION_REPLACED="TRANSACTION_REPLACED",i.ACTION_REJECTED="ACTION_REJECTED";let m="0123456789abcdef";class g{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){let r=t.toLowerCase();null==h[r]&&this.throwArgumentError("invalid log level name","logLevel",t),c>h[r]||console.log.apply(console,e)}debug(...t){this._log(g.levels.DEBUG,t)}info(...t){this._log(g.levels.INFO,t)}warn(...t){this._log(g.levels.WARNING,t)}makeError(t,e,r){if(l)return this.makeError("censored error",e,{});e||(e=g.errors.UNKNOWN_ERROR),r||(r={});let n=[];Object.keys(r).forEach(t=>{let e=r[t];try{if(e instanceof Uint8Array){let r="";for(let t=0;t<e.length;t++)r+=m[e[t]>>4]+m[15&e[t]];n.push(t+"=Uint8Array(0x"+r+")")}else n.push(t+"="+JSON.stringify(e))}catch(e){n.push(t+"="+JSON.stringify(r[t].toString()))}}),n.push(`code=${e}`),n.push(`version=${this.version}`);let i=t,f="";switch(e){case o.NUMERIC_FAULT:{f="NUMERIC_FAULT";let e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":f+="-"+e;break;case"negative-power":case"negative-width":f+="-unsupported";break;case"unbound-bitwise-result":f+="-unbound-result"}break}case o.CALL_EXCEPTION:case o.INSUFFICIENT_FUNDS:case o.MISSING_NEW:case o.NONCE_EXPIRED:case o.REPLACEMENT_UNDERPRICED:case o.TRANSACTION_REPLACED:case o.UNPREDICTABLE_GAS_LIMIT:f=e}f&&(t+=" [ See: https://links.ethers.org/v5-errors-"+f+" ]"),n.length&&(t+=" ("+n.join(", ")+")");let a=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,g.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"),p&&this.throwError("platform missing String.prototype.normalize",g.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:p})}checkSafeUint53(t,e){"number"==typeof t&&(null==e&&(e="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(e,g.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(e,g.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,e,r){r=r?": "+r:"",t<e&&this.throwError("missing argument"+r,g.errors.MISSING_ARGUMENT,{count:t,expectedCount:e}),t>e&&this.throwError("too many arguments"+r,g.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:e})}checkNew(t,e){(t===Object||null==t)&&this.throwError("missing new",g.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",g.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):(t===Object||null==t)&&this.throwError("missing new",g.errors.MISSING_NEW,{name:e.name})}static globalLogger(){return d||(d=new g("logger/5.7.0")),d}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",g.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),u){if(!t)return;this.globalLogger().throwError("error censorship permanent",g.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}l=!!t,u=!!e}static setLogLevel(t){let e=h[t.toLowerCase()];if(null==e){g.globalLogger().warn("invalid log level - "+t);return}c=e}static from(t){return new g(t)}}g.errors=o,g.levels=f;let b=new g("bytes/5.7.0");function y(t){return t.slice||(t.slice=function(){let e=Array.prototype.slice.call(arguments);return y(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function v(t){return"number"==typeof t&&t==t&&t%1==0}function w(t,e){var r;if(e||(e={}),"number"==typeof t){b.checkSafeUint53(t,"invalid arrayify value");let e=[];for(;t;)e.unshift(255&t),t=parseInt(String(t/256));return 0===e.length&&e.push(0),y(new Uint8Array(e))}if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),t.toHexString&&(t=t.toHexString()),"string"==typeof(r=t)&&r.match(/^0x[0-9A-Fa-f]*$/)){let r=t.substring(2);r.length%2&&("left"===e.hexPad?r="0"+r:"right"===e.hexPad?r+="0":b.throwArgumentError("hex data is odd-length","value",t));let n=[];for(let t=0;t<r.length;t+=2)n.push(parseInt(r.substring(t,t+2),16));return y(new Uint8Array(n))}return!function(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"==typeof t||!v(t.length)||t.length<0)return!1;for(let e=0;e<t.length;e++){let r=t[e];if(!v(r)||r<0||r>=256)return!1}return!0}(t)?b.throwArgumentError("invalid arrayify value","value",t):y(new Uint8Array(t))}var M=r(42219);let E=new g("sha2/5.4.0");function A(t){return"0x"+s().ripemd160().update(w(t)).digest("hex")}function S(t){return"0x"+s().sha256().update(w(t)).digest("hex")}function _(t){return"0x"+s().sha512().update(w(t)).digest("hex")}function N(t,e,r){return M.p[t]||E.throwError("unsupported algorithm "+t,g.errors.UNSUPPORTED_OPERATION,{operation:"hmac",algorithm:t}),"0x"+s().hmac(s()[t],w(e)).update(w(r)).digest("hex")}},42219:function(t,e,r){"use strict";var n,i;r.d(e,{p:function(){return n}}),(i=n||(n={})).sha256="sha256",i.sha512="sha512"},14016:function(t,e,r){"use strict";r.r(e),r.d(e,{SigningKey:function(){return tl},computePublicKey:function(){return tc},recoverPublicKey:function(){return th}});var n,i,f,o,a=r(13550),s=r.n(a),u=r(33715),l=r.n(u);function h(t,e,r){return t(r={path:e,exports:{},require:function(t,e){return function(){throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(t,null==e?r.path:e)}},r.exports),r.exports}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self&&self;var c=d;function d(t,e){if(!t)throw Error(e||"Assertion failed")}d.equal=function(t,e,r){if(t!=e)throw Error(r||"Assertion failed: "+t+" != "+e)};var p=h(function(t,e){function r(t){return 1===t.length?"0"+t:t}function n(t){for(var e="",n=0;n<t.length;n++)e+=r(t[n].toString(16));return e}e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"!=typeof t){for(var n=0;n<t.length;n++)r[n]=0|t[n];return r}if("hex"===e){(t=t.replace(/[^a-z0-9]+/ig,"")).length%2!=0&&(t="0"+t);for(var n=0;n<t.length;n+=2)r.push(parseInt(t[n]+t[n+1],16))}else for(var n=0;n<t.length;n++){var i=t.charCodeAt(n),f=i>>8,o=255&i;f?r.push(f,o):r.push(o)}return r},e.zero2=r,e.toHex=n,e.encode=function(t,e){return"hex"===e?n(t):t}}),m=h(function(t,e){e.assert=c,e.toArray=p.toArray,e.zero2=p.zero2,e.toHex=p.toHex,e.encode=p.encode,e.getNAF=function(t,e,r){var n=Array(Math.max(t.bitLength(),r)+1);n.fill(0);for(var i=1<<e+1,f=t.clone(),o=0;o<n.length;o++){var a,s=f.andln(i-1);f.isOdd()?(a=s>(i>>1)-1?(i>>1)-s:s,f.isubn(a)):a=0,n[o]=a,f.iushrn(1)}return n},e.getJSF=function(t,e){var r=[[],[]];t=t.clone(),e=e.clone();for(var n=0,i=0;t.cmpn(-n)>0||e.cmpn(-i)>0;){var f,o,a,s=t.andln(3)+n&3,u=e.andln(3)+i&3;3===s&&(s=-1),3===u&&(u=-1),o=(1&s)==0?0:(3==(f=t.andln(7)+n&7)||5===f)&&2===u?-s:s,r[0].push(o),a=(1&u)==0?0:(3==(f=e.andln(7)+i&7)||5===f)&&2===s?-u:u,r[1].push(a),2*n===o+1&&(n=1-n),2*i===a+1&&(i=1-i),t.iushrn(1),e.iushrn(1)}return r},e.cachedProperty=function(t,e,r){var n="_"+e;t.prototype[e]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},e.parseBytes=function(t){return"string"==typeof t?e.toArray(t,"hex"):t},e.intFromLE=function(t){return new(s())(t,"hex","le")}}),g=m.getNAF,b=m.getJSF,y=m.assert;function v(t,e){this.type=t,this.p=new(s())(e.p,16),this.red=e.prime?s().red(e.prime):s().mont(this.p),this.zero=new(s())(0).toRed(this.red),this.one=new(s())(1).toRed(this.red),this.two=new(s())(2).toRed(this.red),this.n=e.n&&new(s())(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],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 w(t,e){this.curve=t,this.type=e,this.precomputed=null}v.prototype.point=function(){throw Error("Not implemented")},v.prototype.validate=function(){throw Error("Not implemented")},v.prototype._fixedNafMul=function(t,e){y(t.precomputed);var r,n,i=t._getDoubles(),f=g(e,1,this._bitLength),o=(1<<i.step+1)-(i.step%2==0?2:1);o/=3;var a=[];for(r=0;r<f.length;r+=i.step){n=0;for(var s=r+i.step-1;s>=r;s--)n=(n<<1)+f[s];a.push(n)}for(var u=this.jpoint(null,null,null),l=this.jpoint(null,null,null),h=o;h>0;h--){for(r=0;r<a.length;r++)(n=a[r])===h?l=l.mixedAdd(i.points[r]):n===-h&&(l=l.mixedAdd(i.points[r].neg()));u=u.add(l)}return u.toP()},v.prototype._wnafMul=function(t,e){var r=4,n=t._getNAFPoints(r);r=n.wnd;for(var i=n.points,f=g(e,r,this._bitLength),o=this.jpoint(null,null,null),a=f.length-1;a>=0;a--){for(var s=0;a>=0&&0===f[a];a--)s++;if(a>=0&&s++,o=o.dblp(s),a<0)break;var u=f[a];y(0!==u),o="affine"===t.type?u>0?o.mixedAdd(i[u-1>>1]):o.mixedAdd(i[-u-1>>1].neg()):u>0?o.add(i[u-1>>1]):o.add(i[-u-1>>1].neg())}return"affine"===t.type?o.toP():o},v.prototype._wnafMulAdd=function(t,e,r,n,i){var f,o,a,s=this._wnafT1,u=this._wnafT2,l=this._wnafT3,h=0;for(f=0;f<n;f++){var c=(a=e[f])._getNAFPoints(t);s[f]=c.wnd,u[f]=c.points}for(f=n-1;f>=1;f-=2){var d=f-1,p=f;if(1!==s[d]||1!==s[p]){l[d]=g(r[d],s[d],this._bitLength),l[p]=g(r[p],s[p],this._bitLength),h=Math.max(l[d].length,h),h=Math.max(l[p].length,h);continue}var m=[e[d],null,null,e[p]];0===e[d].y.cmp(e[p].y)?(m[1]=e[d].add(e[p]),m[2]=e[d].toJ().mixedAdd(e[p].neg())):0===e[d].y.cmp(e[p].y.redNeg())?(m[1]=e[d].toJ().mixedAdd(e[p]),m[2]=e[d].add(e[p].neg())):(m[1]=e[d].toJ().mixedAdd(e[p]),m[2]=e[d].toJ().mixedAdd(e[p].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],v=b(r[d],r[p]);for(o=0,h=Math.max(v[0].length,h),l[d]=Array(h),l[p]=Array(h);o<h;o++){var w=0|v[0][o],M=0|v[1][o];l[d][o]=y[(w+1)*3+(M+1)],l[p][o]=0,u[d]=m}}var E=this.jpoint(null,null,null),A=this._wnafT4;for(f=h;f>=0;f--){for(var S=0;f>=0;){var _=!0;for(o=0;o<n;o++)A[o]=0|l[o][f],0!==A[o]&&(_=!1);if(!_)break;S++,f--}if(f>=0&&S++,E=E.dblp(S),f<0)break;for(o=0;o<n;o++){var N=A[o];0!==N&&(N>0?a=u[o][N-1>>1]:N<0&&(a=u[o][-N-1>>1].neg()),E="affine"===a.type?E.mixedAdd(a):E.add(a))}}for(f=0;f<n;f++)u[f]=null;return i?E:E.toP()},v.BasePoint=w,w.prototype.eq=function(){throw Error("Not implemented")},w.prototype.validate=function(){return this.curve.validate(this)},v.prototype.decodePoint=function(t,e){t=m.toArray(t,e);var r=this.p.byteLength();if((4===t[0]||6===t[0]||7===t[0])&&t.length-1==2*r)return 6===t[0]?y(t[t.length-1]%2==0):7===t[0]&&y(t[t.length-1]%2==1),this.point(t.slice(1,1+r),t.slice(1+r,1+2*r));if((2===t[0]||3===t[0])&&t.length-1===r)return this.pointFromX(t.slice(1,1+r),3===t[0]);throw Error("Unknown point format")},w.prototype.encodeCompressed=function(t){return this.encode(t,!0)},w.prototype._encode=function(t){var e=this.curve.p.byteLength(),r=this.getX().toArray("be",e);return t?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",e))},w.prototype.encode=function(t,e){return m.encode(this._encode(e),t)},w.prototype.precompute=function(t){if(this.precomputed)return this;var e={doubles:null,naf:null,beta:null};return e.naf=this._getNAFPoints(8),e.doubles=this._getDoubles(4,t),e.beta=this._getBeta(),this.precomputed=e,this},w.prototype._hasDoubles=function(t){if(!this.precomputed)return!1;var e=this.precomputed.doubles;return!!e&&e.points.length>=Math.ceil((t.bitLength()+1)/e.step)},w.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<e;i+=t){for(var f=0;f<t;f++)n=n.dbl();r.push(n)}return{step:t,points:r}},w.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var e=[this],r=(1<<t)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)e[i]=e[i-1].add(n);return{wnd:t,points:e}},w.prototype._getBeta=function(){return null},w.prototype.dblp=function(t){for(var e=this,r=0;r<t;r++)e=e.dbl();return e};var M=h(function(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}}),E=m.assert;function A(t){v.call(this,"short",t),this.a=new(s())(t.a,16).toRed(this.red),this.b=new(s())(t.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(t),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}function S(t,e,r,n){v.BasePoint.call(this,t,"affine"),null===e&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new(s())(e,16),this.y=new(s())(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function _(t,e,r,n){v.BasePoint.call(this,t,"jacobian"),null===e&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new(s())(0)):(this.x=new(s())(e,16),this.y=new(s())(r,16),this.z=new(s())(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}M(A,v),A.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){if(t.beta)e=new(s())(t.beta,16).toRed(this.red);else{var e,r,n,i=this._getEndoRoots(this.p);e=(e=0>i[0].cmp(i[1])?i[0]:i[1]).toRed(this.red)}if(t.lambda)r=new(s())(t.lambda,16);else{var f=this._getEndoRoots(this.n);0===this.g.mul(f[0]).x.cmp(this.g.x.redMul(e))?r=f[0]:(r=f[1],E(0===this.g.mul(r).x.cmp(this.g.x.redMul(e))))}return n=t.basis?t.basis.map(function(t){return{a:new(s())(t.a,16),b:new(s())(t.b,16)}}):this._getEndoBasis(r),{beta:e,lambda:r,basis:n}}},A.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:s().mont(t),r=new(s())(2).toRed(e).redInvm(),n=r.redNeg(),i=new(s())(3).toRed(e).redNeg().redSqrt().redMul(r);return[n.redAdd(i).fromRed(),n.redSub(i).fromRed()]},A.prototype._getEndoBasis=function(t){for(var e,r,n,i,f,o,a,u,l,h=this.n.ushrn(Math.floor(this.n.bitLength()/2)),c=t,d=this.n.clone(),p=new(s())(1),m=new(s())(0),g=new(s())(0),b=new(s())(1),y=0;0!==c.cmpn(0);){var v=d.div(c);u=d.sub(v.mul(c)),l=g.sub(v.mul(p));var w=b.sub(v.mul(m));if(!n&&0>u.cmp(h))e=a.neg(),r=p,n=u.neg(),i=l;else if(n&&2==++y)break;a=u,d=c,c=u,g=p,p=l,b=m,m=w}f=u.neg(),o=l;var M=n.sqr().add(i.sqr());return f.sqr().add(o.sqr()).cmp(M)>=0&&(f=e,o=r),n.negative&&(n=n.neg(),i=i.neg()),f.negative&&(f=f.neg(),o=o.neg()),[{a:n,b:i},{a:f,b:o}]},A.prototype._endoSplit=function(t){var e=this.endo.basis,r=e[0],n=e[1],i=n.b.mul(t).divRound(this.n),f=r.b.neg().mul(t).divRound(this.n),o=i.mul(r.a),a=f.mul(n.a),s=i.mul(r.b),u=f.mul(n.b);return{k1:t.sub(o).sub(a),k2:s.add(u).neg()}},A.prototype.pointFromX=function(t,e){(t=new(s())(t,16)).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 Error("invalid point");var i=n.fromRed().isOdd();return(e&&!i||!e&&i)&&(n=n.redNeg()),this.point(t,n)},A.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)},A.prototype._endoWnafMulAdd=function(t,e,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,f=0;f<t.length;f++){var o=this._endoSplit(e[f]),a=t[f],s=a._getBeta();o.k1.negative&&(o.k1.ineg(),a=a.neg(!0)),o.k2.negative&&(o.k2.ineg(),s=s.neg(!0)),n[2*f]=a,n[2*f+1]=s,i[2*f]=o.k1,i[2*f+1]=o.k2}for(var u=this._wnafMulAdd(1,n,i,2*f,r),l=0;l<2*f;l++)n[l]=null,i[l]=null;return u},M(S,v.BasePoint),A.prototype.point=function(t,e,r){return new S(this,t,e,r)},A.prototype.pointFromJSON=function(t,e){return S.fromJSON(this,t,e)},S.prototype._getBeta=function(){if(this.curve.endo){var t=this.precomputed;if(t&&t.beta)return t.beta;var e=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(t){var r=this.curve,n=function(t){return r.point(t.x.redMul(r.endo.beta),t.y)};t.beta=e,e.precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(n)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(n)}}}return e}},S.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},S.fromJSON=function(t,e,r){"string"==typeof e&&(e=JSON.parse(e));var n=t.point(e[0],e[1],r);if(!e[2])return n;function i(e){return t.point(e[0],e[1],r)}var f=e[2];return n.precomputed={beta:null,doubles:f.doubles&&{step:f.doubles.step,points:[n].concat(f.doubles.points.map(i))},naf:f.naf&&{wnd:f.naf.wnd,points:[n].concat(f.naf.points.map(i))}},n},S.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},S.prototype.isInfinity=function(){return this.inf},S.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)||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)},S.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),f=i.redSqr().redISub(this.x.redAdd(this.x)),o=i.redMul(this.x.redSub(f)).redISub(this.y);return this.curve.point(f,o)},S.prototype.getX=function(){return this.x.fromRed()},S.prototype.getY=function(){return this.y.fromRed()},S.prototype.mul=function(t){return(t=new(s())(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)},S.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)},S.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)},S.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))},S.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},S.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},M(_,v.BasePoint),A.prototype.jpoint=function(t,e,r){return new _(this,t,e,r)},_.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)},_.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},_.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),f=this.y.redMul(e.redMul(t.z)),o=t.y.redMul(r.redMul(this.z)),a=n.redSub(i),s=f.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),l=u.redMul(a),h=n.redMul(u),c=s.redSqr().redIAdd(l).redISub(h).redISub(h),d=s.redMul(h.redISub(c)).redISub(f.redMul(l)),p=this.z.redMul(t.z).redMul(a);return this.curve.jpoint(c,d,p)},_.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,f=t.y.redMul(e).redMul(this.z),o=r.redSub(n),a=i.redSub(f);if(0===o.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var s=o.redSqr(),u=s.redMul(o),l=r.redMul(s),h=a.redSqr().redIAdd(u).redISub(l).redISub(l),c=a.redMul(l.redISub(h)).redISub(i.redMul(u)),d=this.z.redMul(o);return this.curve.jpoint(h,c,d)},_.prototype.dblp=function(t){if(0===t||this.isInfinity())return this;if(!t)return this.dbl();if(this.curve.zeroA||this.curve.threeA){var e,r=this;for(e=0;e<t;e++)r=r.dbl();return r}var n=this.curve.a,i=this.curve.tinv,f=this.x,o=this.y,a=this.z,s=a.redSqr().redSqr(),u=o.redAdd(o);for(e=0;e<t;e++){var l=f.redSqr(),h=u.redSqr(),c=h.redSqr(),d=l.redAdd(l).redIAdd(l).redIAdd(n.redMul(s)),p=f.redMul(h),m=d.redSqr().redISub(p.redAdd(p)),g=p.redISub(m),b=d.redMul(g);b=b.redIAdd(b).redISub(c);var y=u.redMul(a);e+1<t&&(s=s.redMul(c)),f=m,a=y,u=b}return this.curve.jpoint(f,u.redMul(i),a)},_.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},_.prototype._zeroDbl=function(){if(this.zOne){var t,e,r,n=this.x.redSqr(),i=this.y.redSqr(),f=i.redSqr(),o=this.x.redAdd(i).redSqr().redISub(n).redISub(f);o=o.redIAdd(o);var a=n.redAdd(n).redIAdd(n),s=a.redSqr().redISub(o).redISub(o),u=f.redIAdd(f);u=(u=u.redIAdd(u)).redIAdd(u),t=s,e=a.redMul(o.redISub(s)).redISub(u),r=this.y.redAdd(this.y)}else{var l=this.x.redSqr(),h=this.y.redSqr(),c=h.redSqr(),d=this.x.redAdd(h).redSqr().redISub(l).redISub(c);d=d.redIAdd(d);var p=l.redAdd(l).redIAdd(l),m=p.redSqr(),g=c.redIAdd(c);g=(g=g.redIAdd(g)).redIAdd(g),t=m.redISub(d).redISub(d),e=p.redMul(d.redISub(t)).redISub(g),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(t,e,r)},_.prototype._threeDbl=function(){if(this.zOne){var t,e,r,n=this.x.redSqr(),i=this.y.redSqr(),f=i.redSqr(),o=this.x.redAdd(i).redSqr().redISub(n).redISub(f);o=o.redIAdd(o);var a=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),s=a.redSqr().redISub(o).redISub(o);t=s;var u=f.redIAdd(f);u=(u=u.redIAdd(u)).redIAdd(u),e=a.redMul(o.redISub(s)).redISub(u),r=this.y.redAdd(this.y)}else{var l=this.z.redSqr(),h=this.y.redSqr(),c=this.x.redMul(h),d=this.x.redSub(l).redMul(this.x.redAdd(l));d=d.redAdd(d).redIAdd(d);var p=c.redIAdd(c),m=(p=p.redIAdd(p)).redAdd(p);t=d.redSqr().redISub(m),r=this.y.redAdd(this.z).redSqr().redISub(h).redISub(l);var g=h.redSqr();g=(g=(g=g.redIAdd(g)).redIAdd(g)).redIAdd(g),e=d.redMul(p.redISub(t)).redISub(g)}return this.curve.jpoint(t,e,r)},_.prototype._dbl=function(){var t=this.curve.a,e=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),f=e.redSqr(),o=r.redSqr(),a=f.redAdd(f).redIAdd(f).redIAdd(t.redMul(i)),s=e.redAdd(e),u=(s=s.redIAdd(s)).redMul(o),l=a.redSqr().redISub(u.redAdd(u)),h=u.redISub(l),c=o.redSqr();c=(c=(c=c.redIAdd(c)).redIAdd(c)).redIAdd(c);var d=a.redMul(h).redISub(c),p=r.redAdd(r).redMul(n);return this.curve.jpoint(l,d,p)},_.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var t=this.x.redSqr(),e=this.y.redSqr(),r=this.z.redSqr(),n=e.redSqr(),i=t.redAdd(t).redIAdd(t),f=i.redSqr(),o=this.x.redAdd(e).redSqr().redISub(t).redISub(n),a=(o=(o=(o=o.redIAdd(o)).redAdd(o).redIAdd(o)).redISub(f)).redSqr(),s=n.redIAdd(n);s=(s=(s=s.redIAdd(s)).redIAdd(s)).redIAdd(s);var u=i.redIAdd(o).redSqr().redISub(f).redISub(a).redISub(s),l=e.redMul(u);l=(l=l.redIAdd(l)).redIAdd(l);var h=this.x.redMul(a).redISub(l);h=(h=h.redIAdd(h)).redIAdd(h);var c=this.y.redMul(u.redMul(s.redISub(u)).redISub(o.redMul(a)));c=(c=(c=c.redIAdd(c)).redIAdd(c)).redIAdd(c);var d=this.z.redAdd(o).redSqr().redISub(r).redISub(a);return this.curve.jpoint(h,c,d)},_.prototype.mul=function(t,e){return t=new(s())(t,e),this.curve._wnafMul(this,t)},_.prototype.eq=function(t){if("affine"===t.type)return this.eq(t.toJ());if(this===t)return!0;var e=this.z.redSqr(),r=t.z.redSqr();if(0!==this.x.redMul(r).redISub(t.x.redMul(e)).cmpn(0))return!1;var n=e.redMul(this.z),i=r.redMul(t.z);return 0===this.y.redMul(i).redISub(t.y.redMul(n)).cmpn(0)},_.prototype.eqXToP=function(t){var e=this.z.redSqr(),r=t.toRed(this.curve.red).redMul(e);if(0===this.x.cmp(r))return!0;for(var n=t.clone(),i=this.curve.redN.redMul(e);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},_.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},_.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var N=h(function(t,e){e.base=v,e.short=A,e.mont=null,e.edwards=null}),T=h(function(t,e){var r,n=m.assert;function i(t){"short"===t.type?this.curve=new N.short(t):"edwards"===t.type?this.curve=new N.edwards(t):this.curve=new N.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,n(this.g.validate(),"Invalid curve"),n(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function f(t,r){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){var n=new i(r);return Object.defineProperty(e,t,{configurable:!0,enumerable:!0,value:n}),n}})}e.PresetCurve=i,f("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:l().sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),f("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:l().sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),f("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:l().sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),f("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:l().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"]}),f("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:l().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"]}),f("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:l().sha256,gRed:!1,g:["9"]}),f("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:l().sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=null.crash()}catch(t){r=void 0}f("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:l().sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})});function R(t){if(!(this instanceof R))return new R(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=p.toArray(t.entropy,t.entropyEnc||"hex"),r=p.toArray(t.nonce,t.nonceEnc||"hex"),n=p.toArray(t.pers,t.persEnc||"hex");c(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}R.prototype._init=function(t,e,r){var n=t.concat(e).concat(r);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},R.prototype._hmac=function(){return new(l()).hmac(this.hash,this.K)},R.prototype._update=function(t){var e=this._hmac().update(this.V).update([0]);t&&(e=e.update(t)),this.K=e.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},R.prototype.reseed=function(t,e,r,n){"string"!=typeof e&&(n=r,r=e,e=null),t=p.toArray(t,e),r=p.toArray(r,n),c(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(r||[])),this._reseed=1},R.prototype.generate=function(t,e,r,n){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof e&&(n=r,r=e,e=null),r&&(r=p.toArray(r,n||"hex"),this._update(r));for(var i=[];i.length<t;)this.V=this._hmac().update(this.V).digest(),i=i.concat(this.V);var f=i.slice(0,t);return this._update(r),this._reseed++,p.encode(f,e)};var C=m.assert;function I(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}I.fromPublic=function(t,e,r){return e instanceof I?e:new I(t,{pub:e,pubEnc:r})},I.fromPrivate=function(t,e,r){return e instanceof I?e:new I(t,{priv:e,privEnc:r})},I.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},I.prototype.getPublic=function(t,e){return("string"==typeof t&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e)?this.pub.encode(e,t):this.pub},I.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},I.prototype._importPrivate=function(t,e){this.priv=new(s())(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},I.prototype._importPublic=function(t,e){if(t.x||t.y){"mont"===this.ec.curve.type?C(t.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&C(t.x&&t.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(t.x,t.y);return}this.pub=this.ec.curve.decodePoint(t,e)},I.prototype.derive=function(t){return t.validate()||C(t.validate(),"public point not validated"),t.mul(this.priv).getX()},I.prototype.sign=function(t,e,r){return this.ec.sign(t,this,e,r)},I.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},I.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var P=m.assert;function O(t,e){if(t instanceof O)return t;this._importDER(t,e)||(P(t.r&&t.s,"Signature without r or s"),this.r=new(s())(t.r,16),this.s=new(s())(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function x(){this.place=0}function k(t,e){var r=t[e.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,f=0,o=e.place;f<n;f++,o++)i<<=8,i|=t[o],i>>>=0;return!(i<=127)&&(e.place=o,i)}function F(t){for(var e=0,r=t.length-1;!t[e]&&!(128&t[e+1])&&e<r;)e++;return 0===e?t:t.slice(e)}function B(t,e){if(e<128){t.push(e);return}var r=1+(Math.log(e)/Math.LN2>>>3);for(t.push(128|r);--r;)t.push(e>>>(r<<3)&255);t.push(e)}O.prototype._importDER=function(t,e){t=m.toArray(t,e);var r=new x;if(48!==t[r.place++])return!1;var n=k(t,r);if(!1===n||n+r.place!==t.length||2!==t[r.place++])return!1;var i=k(t,r);if(!1===i)return!1;var f=t.slice(r.place,i+r.place);if(r.place+=i,2!==t[r.place++])return!1;var o=k(t,r);if(!1===o||t.length!==o+r.place)return!1;var a=t.slice(r.place,o+r.place);if(0===f[0]){if(!(128&f[1]))return!1;f=f.slice(1)}if(0===a[0]){if(!(128&a[1]))return!1;a=a.slice(1)}return this.r=new(s())(f),this.s=new(s())(a),this.recoveryParam=null,!0},O.prototype.toDER=function(t){var e=this.r.toArray(),r=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&r[0]&&(r=[0].concat(r)),e=F(e),r=F(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var n=[2];B(n,e.length),(n=n.concat(e)).push(2),B(n,r.length);var i=n.concat(r),f=[48];return B(f,i.length),f=f.concat(i),m.encode(f,t)};var L=function(){throw Error("unsupported")},D=m.assert;function U(t){if(!(this instanceof U))return new U(t);"string"==typeof t&&(D(Object.prototype.hasOwnProperty.call(T,t),"Unknown curve "+t),t=T[t]),t instanceof T.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}U.prototype.keyPair=function(t){return new I(this,t)},U.prototype.keyFromPrivate=function(t,e){return I.fromPrivate(this,t,e)},U.prototype.keyFromPublic=function(t,e){return I.fromPublic(this,t,e)},U.prototype.genKeyPair=function(t){t||(t={});for(var e=new R({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||L(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new(s())(2));;){var i=new(s())(e.generate(r));if(!(i.cmp(n)>0))return i.iaddn(1),this.keyFromPrivate(i)}},U.prototype._truncateToN=function(t,e){var r=8*t.byteLength()-this.n.bitLength();return(r>0&&(t=t.ushrn(r)),!e&&t.cmp(this.n)>=0)?t.sub(this.n):t},U.prototype.sign=function(t,e,r,n){"object"==typeof r&&(n=r,r=null),n||(n={}),e=this.keyFromPrivate(e,r),t=this._truncateToN(new(s())(t,16));for(var i=this.n.byteLength(),f=e.getPrivate().toArray("be",i),o=t.toArray("be",i),a=new R({hash:this.hash,entropy:f,nonce:o,pers:n.pers,persEnc:n.persEnc||"utf8"}),u=this.n.sub(new(s())(1)),l=0;;l++){var h=n.k?n.k(l):new(s())(a.generate(this.n.byteLength()));if(!(0>=(h=this._truncateToN(h,!0)).cmpn(1)||h.cmp(u)>=0)){var c=this.g.mul(h);if(!c.isInfinity()){var d=c.getX(),p=d.umod(this.n);if(0!==p.cmpn(0)){var m=h.invm(this.n).mul(p.mul(e.getPrivate()).iadd(t));if(0!==(m=m.umod(this.n)).cmpn(0)){var g=(c.getY().isOdd()?1:0)|(0!==d.cmp(p)?2:0);return n.canonical&&m.cmp(this.nh)>0&&(m=this.n.sub(m),g^=1),new O({r:p,s:m,recoveryParam:g})}}}}}},U.prototype.verify=function(t,e,r,n){t=this._truncateToN(new(s())(t,16)),r=this.keyFromPublic(r,n);var i,f=(e=new O(e,"hex")).r,o=e.s;if(0>f.cmpn(1)||f.cmp(this.n)>=0||0>o.cmpn(1)||o.cmp(this.n)>=0)return!1;var a=o.invm(this.n),u=a.mul(t).umod(this.n),l=a.mul(f).umod(this.n);return this.curve._maxwellTrick?!(i=this.g.jmulAdd(u,r.getPublic(),l)).isInfinity()&&i.eqXToP(f):!(i=this.g.mulAdd(u,r.getPublic(),l)).isInfinity()&&0===i.getX().umod(this.n).cmp(f)},U.prototype.recoverPubKey=function(t,e,r,n){D((3&r)===r,"The recovery param is more than two bits"),e=new O(e,n);var i=this.n,f=new(s())(t),o=e.r,a=e.s,u=1&r,l=r>>1;if(o.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw Error("Unable to find sencond key candinate");o=l?this.curve.pointFromX(o.add(this.curve.n),u):this.curve.pointFromX(o,u);var h=e.r.invm(i),c=i.sub(f).mul(h).umod(i),d=a.mul(h).umod(i);return this.g.mulAdd(c,o,d)},U.prototype.getKeyRecoveryParam=function(t,e,r,n){if(null!==(e=new O(e,n)).recoveryParam)return e.recoveryParam;for(var i,f=0;f<4;f++){try{i=this.recoverPubKey(t,e,f)}catch(t){continue}if(i.eq(r))return f}throw Error("Unable to find valid recovery factor")};var G=h(function(t,e){e.version="6.5.4",e.utils=m,e.rand=function(){throw Error("unsupported")},e.curve=N,e.curves=T,e.ec=U,e.eddsa=null}).ec;let z=!1,J=!1,j={debug:1,default:2,info:2,warning:3,error:4,off:5},H=j.default,V=null,X=function(){try{let t=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test"!=="test".normalize(e))throw Error("bad normalize")}catch(r){t.push(e)}}),t.length)throw Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw Error("broken implementation")}catch(t){return t.message}return null}();(n=f||(f={})).DEBUG="DEBUG",n.INFO="INFO",n.WARNING="WARNING",n.ERROR="ERROR",n.OFF="OFF",(i=o||(o={})).UNKNOWN_ERROR="UNKNOWN_ERROR",i.NOT_IMPLEMENTED="NOT_IMPLEMENTED",i.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",i.NETWORK_ERROR="NETWORK_ERROR",i.SERVER_ERROR="SERVER_ERROR",i.TIMEOUT="TIMEOUT",i.BUFFER_OVERRUN="BUFFER_OVERRUN",i.NUMERIC_FAULT="NUMERIC_FAULT",i.MISSING_NEW="MISSING_NEW",i.INVALID_ARGUMENT="INVALID_ARGUMENT",i.MISSING_ARGUMENT="MISSING_ARGUMENT",i.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",i.CALL_EXCEPTION="CALL_EXCEPTION",i.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",i.NONCE_EXPIRED="NONCE_EXPIRED",i.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",i.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",i.TRANSACTION_REPLACED="TRANSACTION_REPLACED",i.ACTION_REJECTED="ACTION_REJECTED";let q="0123456789abcdef";class Z{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){let r=t.toLowerCase();null==j[r]&&this.throwArgumentError("invalid log level name","logLevel",t),H>j[r]||console.log.apply(console,e)}debug(...t){this._log(Z.levels.DEBUG,t)}info(...t){this._log(Z.levels.INFO,t)}warn(...t){this._log(Z.levels.WARNING,t)}makeError(t,e,r){if(J)return this.makeError("censored error",e,{});e||(e=Z.errors.UNKNOWN_ERROR),r||(r={});let n=[];Object.keys(r).forEach(t=>{let e=r[t];try{if(e instanceof Uint8Array){let r="";for(let t=0;t<e.length;t++)r+=q[e[t]>>4]+q[15&e[t]];n.push(t+"=Uint8Array(0x"+r+")")}else n.push(t+"="+JSON.stringify(e))}catch(e){n.push(t+"="+JSON.stringify(r[t].toString()))}}),n.push(`code=${e}`),n.push(`version=${this.version}`);let i=t,f="";switch(e){case o.NUMERIC_FAULT:{f="NUMERIC_FAULT";let e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":f+="-"+e;break;case"negative-power":case"negative-width":f+="-unsupported";break;case"unbound-bitwise-result":f+="-unbound-result"}break}case o.CALL_EXCEPTION:case o.INSUFFICIENT_FUNDS:case o.MISSING_NEW:case o.NONCE_EXPIRED:case o.REPLACEMENT_UNDERPRICED:case o.TRANSACTION_REPLACED:case o.UNPREDICTABLE_GAS_LIMIT:f=e}f&&(t+=" [ See: https://links.ethers.org/v5-errors-"+f+" ]"),n.length&&(t+=" ("+n.join(", ")+")");let a=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,Z.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"),X&&this.throwError("platform missing String.prototype.normalize",Z.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:X})}checkSafeUint53(t,e){"number"==typeof t&&(null==e&&(e="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(e,Z.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(e,Z.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,e,r){r=r?": "+r:"",t<e&&this.throwError("missing argument"+r,Z.errors.MISSING_ARGUMENT,{count:t,expectedCount:e}),t>e&&this.throwError("too many arguments"+r,Z.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:e})}checkNew(t,e){(t===Object||null==t)&&this.throwError("missing new",Z.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",Z.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):(t===Object||null==t)&&this.throwError("missing new",Z.errors.MISSING_NEW,{name:e.name})}static globalLogger(){return V||(V=new Z("logger/5.7.0")),V}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",Z.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),z){if(!t)return;this.globalLogger().throwError("error censorship permanent",Z.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}J=!!t,z=!!e}static setLogLevel(t){let e=j[t.toLowerCase()];if(null==e){Z.globalLogger().warn("invalid log level - "+t);return}H=e}static from(t){return new Z(t)}}Z.errors=o,Z.levels=f;let K=new Z("bytes/5.7.0");function W(t){return!!t.toHexString}function Y(t){return t.slice||(t.slice=function(){let e=Array.prototype.slice.call(arguments);return Y(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function Q(t){return"number"==typeof t&&t==t&&t%1==0}function $(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"==typeof t||!Q(t.length)||t.length<0)return!1;for(let e=0;e<t.length;e++){let r=t[e];if(!Q(r)||r<0||r>=256)return!1}return!0}function tt(t,e){if(e||(e={}),"number"==typeof t){K.checkSafeUint53(t,"invalid arrayify value");let e=[];for(;t;)e.unshift(255&t),t=parseInt(String(t/256));return 0===e.length&&e.push(0),Y(new Uint8Array(e))}if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),W(t)&&(t=t.toHexString()),te(t)){let r=t.substring(2);r.length%2&&("left"===e.hexPad?r="0"+r:"right"===e.hexPad?r+="0":K.throwArgumentError("hex data is odd-length","value",t));let n=[];for(let t=0;t<r.length;t+=2)n.push(parseInt(r.substring(t,t+2),16));return Y(new Uint8Array(n))}return $(t)?Y(new Uint8Array(t)):K.throwArgumentError("invalid arrayify value","value",t)}function te(t,e){return"string"==typeof t&&!!t.match(/^0x[0-9A-Fa-f]*$/)&&(!e||t.length===2+2*e)}let tr="0123456789abcdef";function tn(t,e){if(e||(e={}),"number"==typeof t){K.checkSafeUint53(t,"invalid hexlify value");let e="";for(;t;)e=tr[15&t]+e,t=Math.floor(t/16);return e.length?(e.length%2&&(e="0"+e),"0x"+e):"0x00"}if("bigint"==typeof t)return(t=t.toString(16)).length%2?"0x0"+t:"0x"+t;if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),W(t))return t.toHexString();if(te(t))return t.length%2&&("left"===e.hexPad?t="0x0"+t.substring(2):"right"===e.hexPad?t+="0":K.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if($(t)){let e="0x";for(let r=0;r<t.length;r++){let n=t[r];e+=tr[(240&n)>>4]+tr[15&n]}return e}return K.throwArgumentError("invalid hexlify value","value",t)}function ti(t,e){for("string"!=typeof t?t=tn(t):te(t)||K.throwArgumentError("invalid hex string","value",t),t.length>2*e+2&&K.throwArgumentError("value out of range","value",arguments[1]);t.length<2*e+2;)t="0x0"+t.substring(2);return t}function tf(t){let e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(te(t)&&!(t.length%2)||$(t)){let r=tt(t);64===r.length?(e.v=27+(r[32]>>7),r[32]&=127,e.r=tn(r.slice(0,32)),e.s=tn(r.slice(32,64))):65===r.length?(e.r=tn(r.slice(0,32)),e.s=tn(r.slice(32,64)),e.v=r[64]):K.throwArgumentError("invalid signature string","signature",t),e.v<27&&(0===e.v||1===e.v?e.v+=27:K.throwArgumentError("signature invalid v byte","signature",t)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(r[32]|=128),e._vs=tn(r.slice(32,64))}else{if(e.r=t.r,e.s=t.s,e.v=t.v,e.recoveryParam=t.recoveryParam,e._vs=t._vs,null!=e._vs){let r=function(t,e){(t=tt(t)).length>e&&K.throwArgumentError("value out of range","value",arguments[0]);let r=new Uint8Array(e);return r.set(t,e-t.length),Y(r)}(tt(e._vs),32);e._vs=tn(r);let n=r[0]>=128?1:0;null==e.recoveryParam?e.recoveryParam=n:e.recoveryParam!==n&&K.throwArgumentError("signature recoveryParam mismatch _vs","signature",t),r[0]&=127;let i=tn(r);null==e.s?e.s=i:e.s!==i&&K.throwArgumentError("signature v mismatch _vs","signature",t)}if(null==e.recoveryParam)null==e.v?K.throwArgumentError("signature missing v and recoveryParam","signature",t):0===e.v||1===e.v?e.recoveryParam=e.v:e.recoveryParam=1-e.v%2;else if(null==e.v)e.v=27+e.recoveryParam;else{let r=0===e.v||1===e.v?e.v:1-e.v%2;e.recoveryParam!==r&&K.throwArgumentError("signature recoveryParam mismatch v","signature",t)}null!=e.r&&te(e.r)?e.r=ti(e.r,32):K.throwArgumentError("signature missing or invalid r","signature",t),null!=e.s&&te(e.s)?e.s=ti(e.s,32):K.throwArgumentError("signature missing or invalid s","signature",t);let r=tt(e.s);r[0]>=128&&K.throwArgumentError("signature s out of range","signature",t),e.recoveryParam&&(r[0]|=128);let n=tn(r);e._vs&&(te(e._vs)||K.throwArgumentError("signature invalid _vs","signature",t),e._vs=ti(e._vs,32)),null==e._vs?e._vs=n:e._vs!==n&&K.throwArgumentError("signature _vs mismatch v and s","signature",t)}return e.yParityAndS=e._vs,e.compact=e.r+e.yParityAndS.substring(2),e}function to(t,e,r){Object.defineProperty(t,e,{enumerable:!0,value:r,writable:!1})}new Z("properties/5.7.0");let ta=new Z("signing-key/5.4.0"),ts=null;function tu(){return ts||(ts=new G("secp256k1")),ts}class tl{constructor(t){to(this,"curve","secp256k1"),to(this,"privateKey",tn(t));let e=tu().keyFromPrivate(tt(this.privateKey));to(this,"publicKey","0x"+e.getPublic(!1,"hex")),to(this,"compressedPublicKey","0x"+e.getPublic(!0,"hex")),to(this,"_isSigningKey",!0)}_addPoint(t){let e=tu().keyFromPublic(tt(this.publicKey)),r=tu().keyFromPublic(tt(t));return"0x"+e.pub.add(r.pub).encodeCompressed("hex")}signDigest(t){let e=tu().keyFromPrivate(tt(this.privateKey)),r=tt(t);32!==r.length&&ta.throwArgumentError("bad digest length","digest",t);let n=e.sign(r,{canonical:!0});return tf({recoveryParam:n.recoveryParam,r:ti("0x"+n.r.toString(16),32),s:ti("0x"+n.s.toString(16),32)})}computeSharedSecret(t){let e=tu().keyFromPrivate(tt(this.privateKey)),r=tu().keyFromPublic(tt(tc(t)));return ti("0x"+e.derive(r.getPublic()).toString(16),32)}static isSigningKey(t){return!!(t&&t._isSigningKey)}}function th(t,e){let r=tf(e),n={r:tt(r.r),s:tt(r.s)};return"0x"+tu().recoverPubKey(tt(t),n,r.recoveryParam).encode("hex",!1)}function tc(t,e){let r=tt(t);if(32===r.length){let t=new tl(r);return e?"0x"+tu().keyFromPrivate(r).getPublic(!0,"hex"):t.publicKey}return 33===r.length?e?tn(r):"0x"+tu().keyFromPublic(r).getPublic(!1,"hex"):65===r.length?e?"0x"+tu().keyFromPublic(r).getPublic(!0,"hex"):tn(r):ta.throwArgumentError("invalid public or private key","key","[REDACTED]")}},15782:function(t,e,r){"use strict";r.r(e),r.d(e,{keccak256:function(){return Y},pack:function(){return W},sha256:function(){return Q}});var n,i,f,o,a,s,u,l,h=r(3828),c=r.n(h);let d=!1,p=!1,m={debug:1,default:2,info:2,warning:3,error:4,off:5},g=m.default,b=null,y=function(){try{let t=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test"!=="test".normalize(e))throw Error("bad normalize")}catch(r){t.push(e)}}),t.length)throw Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw Error("broken implementation")}catch(t){return t.message}return null}();(n=a||(a={})).DEBUG="DEBUG",n.INFO="INFO",n.WARNING="WARNING",n.ERROR="ERROR",n.OFF="OFF",(i=s||(s={})).UNKNOWN_ERROR="UNKNOWN_ERROR",i.NOT_IMPLEMENTED="NOT_IMPLEMENTED",i.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",i.NETWORK_ERROR="NETWORK_ERROR",i.SERVER_ERROR="SERVER_ERROR",i.TIMEOUT="TIMEOUT",i.BUFFER_OVERRUN="BUFFER_OVERRUN",i.NUMERIC_FAULT="NUMERIC_FAULT",i.MISSING_NEW="MISSING_NEW",i.INVALID_ARGUMENT="INVALID_ARGUMENT",i.MISSING_ARGUMENT="MISSING_ARGUMENT",i.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",i.CALL_EXCEPTION="CALL_EXCEPTION",i.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",i.NONCE_EXPIRED="NONCE_EXPIRED",i.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",i.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",i.TRANSACTION_REPLACED="TRANSACTION_REPLACED",i.ACTION_REJECTED="ACTION_REJECTED";let v="0123456789abcdef";class w{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){let r=t.toLowerCase();null==m[r]&&this.throwArgumentError("invalid log level name","logLevel",t),g>m[r]||console.log.apply(console,e)}debug(...t){this._log(w.levels.DEBUG,t)}info(...t){this._log(w.levels.INFO,t)}warn(...t){this._log(w.levels.WARNING,t)}makeError(t,e,r){if(p)return this.makeError("censored error",e,{});e||(e=w.errors.UNKNOWN_ERROR),r||(r={});let n=[];Object.keys(r).forEach(t=>{let e=r[t];try{if(e instanceof Uint8Array){let r="";for(let t=0;t<e.length;t++)r+=v[e[t]>>4]+v[15&e[t]];n.push(t+"=Uint8Array(0x"+r+")")}else n.push(t+"="+JSON.stringify(e))}catch(e){n.push(t+"="+JSON.stringify(r[t].toString()))}}),n.push(`code=${e}`),n.push(`version=${this.version}`);let i=t,f="";switch(e){case s.NUMERIC_FAULT:{f="NUMERIC_FAULT";let e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":f+="-"+e;break;case"negative-power":case"negative-width":f+="-unsupported";break;case"unbound-bitwise-result":f+="-unbound-result"}break}case s.CALL_EXCEPTION:case s.INSUFFICIENT_FUNDS:case s.MISSING_NEW:case s.NONCE_EXPIRED:case s.REPLACEMENT_UNDERPRICED:case s.TRANSACTION_REPLACED:case s.UNPREDICTABLE_GAS_LIMIT:f=e}f&&(t+=" [ See: https://links.ethers.org/v5-errors-"+f+" ]"),n.length&&(t+=" ("+n.join(", ")+")");let o=Error(t);return o.reason=i,o.code=e,Object.keys(r).forEach(function(t){o[t]=r[t]}),o}throwError(t,e,r){throw this.makeError(t,e,r)}throwArgumentError(t,e,r){return this.throwError(t,w.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"),y&&this.throwError("platform missing String.prototype.normalize",w.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:y})}checkSafeUint53(t,e){"number"==typeof t&&(null==e&&(e="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(e,w.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(e,w.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,e,r){r=r?": "+r:"",t<e&&this.throwError("missing argument"+r,w.errors.MISSING_ARGUMENT,{count:t,expectedCount:e}),t>e&&this.throwError("too many arguments"+r,w.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:e})}checkNew(t,e){(t===Object||null==t)&&this.throwError("missing new",w.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",w.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):(t===Object||null==t)&&this.throwError("missing new",w.errors.MISSING_NEW,{name:e.name})}static globalLogger(){return b||(b=new w("logger/5.7.0")),b}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",w.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),d){if(!t)return;this.globalLogger().throwError("error censorship permanent",w.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}p=!!t,d=!!e}static setLogLevel(t){let e=m[t.toLowerCase()];if(null==e){w.globalLogger().warn("invalid log level - "+t);return}g=e}static from(t){return new w(t)}}w.errors=s,w.levels=a;let M=new w("bytes/5.7.0");function E(t){return!!t.toHexString}function A(t){return t.slice||(t.slice=function(){let e=Array.prototype.slice.call(arguments);return A(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function S(t){return"number"==typeof t&&t==t&&t%1==0}function _(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"==typeof t||!S(t.length)||t.length<0)return!1;for(let e=0;e<t.length;e++){let r=t[e];if(!S(r)||r<0||r>=256)return!1}return!0}function N(t,e){if(e||(e={}),"number"==typeof t){M.checkSafeUint53(t,"invalid arrayify value");let e=[];for(;t;)e.unshift(255&t),t=parseInt(String(t/256));return 0===e.length&&e.push(0),A(new Uint8Array(e))}if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),E(t)&&(t=t.toHexString()),C(t)){let r=t.substring(2);r.length%2&&("left"===e.hexPad?r="0"+r:"right"===e.hexPad?r+="0":M.throwArgumentError("hex data is odd-length","value",t));let n=[];for(let t=0;t<r.length;t+=2)n.push(parseInt(r.substring(t,t+2),16));return A(new Uint8Array(n))}return _(t)?A(new Uint8Array(t)):M.throwArgumentError("invalid arrayify value","value",t)}function T(t){let e=t.map(t=>N(t)),r=new Uint8Array(e.reduce((t,e)=>t+e.length,0));return e.reduce((t,e)=>(r.set(e,t),t+e.length),0),A(r)}function R(t,e){(t=N(t)).length>e&&M.throwArgumentError("value out of range","value",arguments[0]);let r=new Uint8Array(e);return r.set(t,e-t.length),A(r)}function C(t,e){return"string"==typeof t&&!!t.match(/^0x[0-9A-Fa-f]*$/)&&(!e||t.length===2+2*e)}let I="0123456789abcdef";function P(t,e){if(e||(e={}),"number"==typeof t){M.checkSafeUint53(t,"invalid hexlify value");let e="";for(;t;)e=I[15&t]+e,t=Math.floor(t/16);return e.length?(e.length%2&&(e="0"+e),"0x"+e):"0x00"}if("bigint"==typeof t)return(t=t.toString(16)).length%2?"0x0"+t:"0x"+t;if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),E(t))return t.toHexString();if(C(t))return t.length%2&&("left"===e.hexPad?t="0x0"+t.substring(2):"right"===e.hexPad?t+="0":M.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(_(t)){let e="0x";for(let r=0;r<t.length;r++){let n=t[r];e+=I[(240&n)>>4]+I[15&n]}return e}return M.throwArgumentError("invalid hexlify value","value",t)}var O=c().BN;let x=new w("bignumber/5.7.0"),k={},F=!1;class B{constructor(t,e){t!==k&&x.throwError("cannot call constructor directly; use BigNumber.from",w.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=e,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return D(U(this).fromTwos(t))}toTwos(t){return D(U(this).toTwos(t))}abs(){return"-"===this._hex[0]?B.from(this._hex.substring(1)):this}add(t){return D(U(this).add(U(t)))}sub(t){return D(U(this).sub(U(t)))}div(t){return B.from(t).isZero()&&G("division-by-zero","div"),D(U(this).div(U(t)))}mul(t){return D(U(this).mul(U(t)))}mod(t){let e=U(t);return e.isNeg()&&G("division-by-zero","mod"),D(U(this).umod(e))}pow(t){let e=U(t);return e.isNeg()&&G("negative-power","pow"),D(U(this).pow(e))}and(t){let e=U(t);return(this.isNegative()||e.isNeg())&&G("unbound-bitwise-result","and"),D(U(this).and(e))}or(t){let e=U(t);return(this.isNegative()||e.isNeg())&&G("unbound-bitwise-result","or"),D(U(this).or(e))}xor(t){let e=U(t);return(this.isNegative()||e.isNeg())&&G("unbound-bitwise-result","xor"),D(U(this).xor(e))}mask(t){return(this.isNegative()||t<0)&&G("negative-width","mask"),D(U(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&G("negative-width","shl"),D(U(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&G("negative-width","shr"),D(U(this).shrn(t))}eq(t){return U(this).eq(U(t))}lt(t){return U(this).lt(U(t))}lte(t){return U(this).lte(U(t))}gt(t){return U(this).gt(U(t))}gte(t){return U(this).gte(U(t))}isNegative(){return"-"===this._hex[0]}isZero(){return U(this).isZero()}toNumber(){try{return U(this).toNumber()}catch(t){G("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(t){}return x.throwError("this platform does not support BigInt",w.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?F||(F=!0,x.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?x.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",w.errors.UNEXPECTED_ARGUMENT,{}):x.throwError("BigNumber.toString does not accept parameters",w.errors.UNEXPECTED_ARGUMENT,{})),U(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof B)return t;if("string"==typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new B(k,L(t)):t.match(/^-?[0-9]+$/)?new B(k,L(new O(t))):x.throwArgumentError("invalid BigNumber string","value",t);if("number"==typeof t)return t%1&&G("underflow","BigNumber.from",t),(t>=9007199254740991||t<=-9007199254740991)&&G("overflow","BigNumber.from",t),B.from(String(t));if("bigint"==typeof t)return B.from(t.toString());if(_(t))return B.from(P(t));if(t){if(t.toHexString){let e=t.toHexString();if("string"==typeof e)return B.from(e)}else{let e=t._hex;if(null==e&&"BigNumber"===t.type&&(e=t.hex),"string"==typeof e&&(C(e)||"-"===e[0]&&C(e.substring(1))))return B.from(e)}}return x.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!!(t&&t._isBigNumber)}}function L(t){if("string"!=typeof t)return L(t.toString(16));if("-"===t[0])return("-"===(t=t.substring(1))[0]&&x.throwArgumentError("invalid hex","value",t),"0x00"===(t=L(t)))?t:"-"+t;if("0x"!==t.substring(0,2)&&(t="0x"+t),"0x"===t)return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&"0x00"===t.substring(0,4);)t="0x"+t.substring(4);return t}function D(t){return B.from(L(t))}function U(t){let e=B.from(t).toHexString();return"-"===e[0]?new O("-"+e.substring(3),16):new O(e.substring(2),16)}function G(t,e,r){let n={fault:t,operation:e};return null!=r&&(n.value=r),x.throwError(t,w.errors.NUMERIC_FAULT,n)}var z=r(46517),J=r.n(z),j=r(33715),H=r.n(j);new w("sha2/5.7.0");let V=new w("strings/5.7.0");function X(t,e,r,n,i){if(t===l.BAD_PREFIX||t===l.UNEXPECTED_CONTINUE){let t=0;for(let n=e+1;n<r.length&&r[n]>>6==2;n++)t++;return t}return t===l.OVERRUN?r.length-e-1:0}(f=u||(u={})).current="",f.NFC="NFC",f.NFD="NFD",f.NFKC="NFKC",f.NFKD="NFKD",(o=l||(l={})).UNEXPECTED_CONTINUE="unexpected continuation byte",o.BAD_PREFIX="bad codepoint prefix",o.OVERRUN="string overrun",o.MISSING_CONTINUE="missing continuation byte",o.OUT_OF_RANGE="out of UTF-8 range",o.UTF16_SURROGATE="UTF-16 surrogate",o.OVERLONG="overlong representation",Object.freeze({error:function(t,e,r,n,i){return V.throwArgumentError(`invalid codepoint at offset ${e}; ${t}`,"bytes",r)},ignore:X,replace:function(t,e,r,n,i){return t===l.OVERLONG?(n.push(i),0):(n.push(65533),X(t,e,r,n,i))}});let q=RegExp("^bytes([0-9]+)$"),Z=RegExp("^(u?int)([0-9]*)$"),K=RegExp("^(.*)\\[([0-9]*)\\]$");function W(t,e){if(t.length!=e.length)throw Error("type/value count mismatch");let r=[];return t.forEach(function(t,n){r.push(function t(e,r,n){switch(e){case"address":if(n)return R(r,32);return N(r);case"string":return function(t,e=u.current){e!=u.current&&(V.checkNormalize(),t=t.normalize(e));let r=[];for(let e=0;e<t.length;e++){let n=t.charCodeAt(e);if(n<128)r.push(n);else if(n<2048)r.push(n>>6|192),r.push(63&n|128);else if((64512&n)==55296){e++;let i=t.charCodeAt(e);if(e>=t.length||(64512&i)!=56320)throw Error("invalid utf-8 string");let f=65536+((1023&n)<<10)+(1023&i);r.push(f>>18|240),r.push(f>>12&63|128),r.push(f>>6&63|128),r.push(63&f|128)}else r.push(n>>12|224),r.push(n>>6&63|128),r.push(63&n|128)}return N(r)}(r);case"bytes":return N(r);case"bool":if(r=r?"0x01":"0x00",n)return R(r,32);return N(r)}let i=e.match(Z);if(i){let t=parseInt(i[2]||"256");if(i[2]&&String(t)!==i[2]||t%8!=0||0===t||t>256)throw Error("invalid number type - "+e);return n&&(t=256),R(r=B.from(r).toTwos(t),t/8)}if(i=e.match(q)){let t=parseInt(i[1]);if(String(t)!==i[1]||0===t||t>32)throw Error("invalid bytes type - "+e);if(N(r).byteLength!==t)throw Error("invalid value for "+e);return n?N((r+"0000000000000000000000000000000000000000000000000000000000000000").substring(0,66)):r}if((i=e.match(K))&&Array.isArray(r)){let n=i[1];if(parseInt(i[2]||String(r.length))!=r.length)throw Error("invalid value for "+e);let f=[];return r.forEach(function(e){f.push(t(n,e,!0))}),T(f)}throw Error("invalid type - "+e)}(t,e[n]))}),P(T(r))}function Y(t,e){var r;return r=W(t,e),"0x"+J().keccak_256(N(r))}function Q(t,e){var r;return r=W(t,e),"0x"+H().sha256().update(N(r)).digest("hex")}},3828:function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw 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 f(t,e,r){if(f.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"))}"object"==typeof t?t.exports=f:e.BN=f,f.BN=f,f.wordSize=26;try{h="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(41506).Buffer}catch(t){}function o(t,e){var r=t.charCodeAt(e);return r>=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 a(t,e,r){var n=o(t,r);return r-1>=e&&(n|=o(t,r-1)<<4),n}function s(t,e,r,i){for(var f=0,o=0,a=Math.min(t.length,r),s=e;s<a;s++){var u=t.charCodeAt(s)-48;f*=i,o=u>=49?u-49+10:u>=17?u-17+10:u,n(u>=0&&o<i,"Invalid character"),f+=o}return f}function u(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(f.isBN=function(t){return t instanceof f||null!==t&&"object"==typeof t&&t.constructor.wordSize===f.wordSize&&Array.isArray(t.words)},f.max=function(t,e){return t.cmp(e)>0?t:e},f.min=function(t,e){return 0>t.cmp(e)?t:e},f.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);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},f.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)},f.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=Array(this.length);for(var i,f,o=0;o<this.length;o++)this.words[o]=0;var a=0;if("be"===r)for(o=t.length-1,i=0;o>=0;o-=3)f=t[o]|t[o-1]<<8|t[o-2]<<16,this.words[i]|=f<<a&67108863,this.words[i+1]=f>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);else if("le"===r)for(o=0,i=0;o<t.length;o+=3)f=t[o]|t[o+1]<<8|t[o+2]<<16,this.words[i]|=f<<a&67108863,this.words[i+1]=f>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);return this._strip()},f.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=Array(this.length);for(var n,i=0;i<this.length;i++)this.words[i]=0;var f=0,o=0;if("be"===r)for(i=t.length-1;i>=e;i-=2)n=a(t,e,i)<<f,this.words[o]|=67108863&n,f>=18?(f-=18,o+=1,this.words[o]|=n>>>26):f+=8;else for(i=(t.length-e)%2==0?e+1:e;i<t.length;i+=2)n=a(t,e,i)<<f,this.words[o]|=67108863&n,f>=18?(f-=18,o+=1,this.words[o]|=n>>>26):f+=8;this._strip()},f.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 f=t.length-r,o=f%n,a=Math.min(f,f-o)+r,u=0,l=r;l<a;l+=n)u=s(t,l,l+n,e),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==o){var h=1;for(u=s(t,l,t.length,e),l=0;l<o;l++)h*=e;this.imuln(h),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this._strip()},f.prototype.copy=function(t){t.words=Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},f.prototype._move=function(t){u(t,this)},f.prototype.clone=function(){var t=new f(null);return this.copy(t),t},f.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},f.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},f.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{f.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(t){f.prototype.inspect=l}else f.prototype.inspect=l;function l(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var h,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"],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];function m(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],f=0|e.words[0],o=i*f,a=67108863&o,s=o/67108864|0;r.words[0]=a;for(var u=1;u<n;u++){for(var l=s>>>26,h=67108863&s,c=Math.min(u,e.length-1),d=Math.max(0,u-t.length+1);d<=c;d++){var p=u-d|0;l+=(o=(i=0|t.words[p])*(f=0|e.words[d])+h)/67108864|0,h=67108863&o}r.words[u]=0|h,s=0|l}return 0!==s?r.words[u]=0|s:r.length--,r._strip()}f.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var r,i=0,f=0,o=0;o<this.length;o++){var a=this.words[o],s=((a<<i|f)&16777215).toString(16);f=a>>>24-i&16777215,(i+=2)>=26&&(i-=26,o--),r=0!==f||o!==this.length-1?c[6-s.length]+s+r:s+r}for(0!==f&&(r=f.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var u=d[t],l=p[t];r="";var h=this.clone();for(h.negative=0;!h.isZero();){var m=h.modrn(l).toString(t);r=(h=h.idivn(l)).isZero()?m+r:c[u-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},f.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},f.prototype.toJSON=function(){return this.toString(16,2)},h&&(f.prototype.toBuffer=function(t,e){return this.toArrayLike(h,t,e)}),f.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},f.prototype.toArrayLike=function(t,e,r){this._strip();var i=this.byteLength(),f=r||Math.max(1,i);n(i<=f,"byte array longer than desired length"),n(f>0,"Requested array length <= 0");var o=t.allocUnsafe?t.allocUnsafe(f):new t(f);return this["_toArrayLike"+("le"===e?"LE":"BE")](o,i),o},f.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,i=0,f=0;i<this.length;i++){var o=this.words[i]<<f|n;t[r++]=255&o,r<t.length&&(t[r++]=o>>8&255),r<t.length&&(t[r++]=o>>16&255),6===f?(r<t.length&&(t[r++]=o>>24&255),n=0,f=0):(n=o>>>24,f+=2)}if(r<t.length)for(t[r++]=n;r<t.length;)t[r++]=0},f.prototype._toArrayLikeBE=function(t,e){for(var r=t.length-1,n=0,i=0,f=0;i<this.length;i++){var o=this.words[i]<<f|n;t[r--]=255&o,r>=0&&(t[r--]=o>>8&255),r>=0&&(t[r--]=o>>16&255),6===f?(r>=0&&(t[r--]=o>>24&255),n=0,f=0):(n=o>>>24,f+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?f.prototype._countBits=function(t){return 32-Math.clz32(t)}:f.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},f.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return(8191&e)==0&&(r+=13,e>>>=13),(127&e)==0&&(r+=7,e>>>=7),(15&e)==0&&(r+=4,e>>>=4),(3&e)==0&&(r+=2,e>>>=2),(1&e)==0&&r++,r},f.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return(this.length-1)*26+e},f.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},f.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},f.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},f.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},f.prototype.isNeg=function(){return 0!==this.negative},f.prototype.neg=function(){return this.clone().ineg()},f.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},f.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},f.prototype.ior=function(t){return n((this.negative|t.negative)==0),this.iuor(t)},f.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},f.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},f.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this._strip()},f.prototype.iand=function(t){return n((this.negative|t.negative)==0),this.iuand(t)},f.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},f.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},f.prototype.iuxor=function(t){this.length>t.length?(e=this,r=t):(e=t,r=this);for(var e,r,n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this._strip()},f.prototype.ixor=function(t){return n((this.negative|t.negative)==0),this.iuxor(t)},f.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},f.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},f.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;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},f.prototype.notn=function(t){return this.clone().inotn(t)},f.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),e?this.words[r]=this.words[r]|1<<i:this.words[r]=this.words[r]&~(1<<i),this._strip()},f.prototype.iadd=function(t){if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var e,r,n,i=0,f=0;f<n.length;f++)e=(0|r.words[f])+(0|n.words[f])+i,this.words[f]=67108863&e,i=e>>>26;for(;0!==i&&f<r.length;f++)e=(0|r.words[f])+i,this.words[f]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;f<r.length;f++)this.words[f]=r.words[f];return this},f.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},f.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e,r,n=this.iadd(t);return t.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(e=this,r=t):(e=t,r=this);for(var f=0,o=0;o<r.length;o++)f=(n=(0|e.words[o])-(0|r.words[o])+f)>>26,this.words[o]=67108863&n;for(;0!==f&&o<e.length;o++)f=(n=(0|e.words[o])+f)>>26,this.words[o]=67108863&n;if(0===f&&o<e.length&&e!==this)for(;o<e.length;o++)this.words[o]=e.words[o];return this.length=Math.max(this.length,o),e!==this&&(this.negative=1),this._strip()},f.prototype.sub=function(t){return this.clone().isub(t)};var g=function(t,e,r){var n,i,f,o=t.words,a=e.words,s=r.words,u=0,l=0|o[0],h=8191&l,c=l>>>13,d=0|o[1],p=8191&d,m=d>>>13,g=0|o[2],b=8191&g,y=g>>>13,v=0|o[3],w=8191&v,M=v>>>13,E=0|o[4],A=8191&E,S=E>>>13,_=0|o[5],N=8191&_,T=_>>>13,R=0|o[6],C=8191&R,I=R>>>13,P=0|o[7],O=8191&P,x=P>>>13,k=0|o[8],F=8191&k,B=k>>>13,L=0|o[9],D=8191&L,U=L>>>13,G=0|a[0],z=8191&G,J=G>>>13,j=0|a[1],H=8191&j,V=j>>>13,X=0|a[2],q=8191&X,Z=X>>>13,K=0|a[3],W=8191&K,Y=K>>>13,Q=0|a[4],$=8191&Q,tt=Q>>>13,te=0|a[5],tr=8191&te,tn=te>>>13,ti=0|a[6],tf=8191&ti,to=ti>>>13,ta=0|a[7],ts=8191&ta,tu=ta>>>13,tl=0|a[8],th=8191&tl,tc=tl>>>13,td=0|a[9],tp=8191&td,tm=td>>>13;r.negative=t.negative^e.negative,r.length=19;var tg=(u+(n=Math.imul(h,z))|0)+((8191&(i=(i=Math.imul(h,J))+Math.imul(c,z)|0))<<13)|0;u=((f=Math.imul(c,J))+(i>>>13)|0)+(tg>>>26)|0,tg&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,J))+Math.imul(m,z)|0,f=Math.imul(m,J);var tb=(u+(n=n+Math.imul(h,H)|0)|0)+((8191&(i=(i=i+Math.imul(h,V)|0)+Math.imul(c,H)|0))<<13)|0;u=((f=f+Math.imul(c,V)|0)+(i>>>13)|0)+(tb>>>26)|0,tb&=67108863,n=Math.imul(b,z),i=(i=Math.imul(b,J))+Math.imul(y,z)|0,f=Math.imul(y,J),n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,H)|0,f=f+Math.imul(m,V)|0;var ty=(u+(n=n+Math.imul(h,q)|0)|0)+((8191&(i=(i=i+Math.imul(h,Z)|0)+Math.imul(c,q)|0))<<13)|0;u=((f=f+Math.imul(c,Z)|0)+(i>>>13)|0)+(ty>>>26)|0,ty&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,J))+Math.imul(M,z)|0,f=Math.imul(M,J),n=n+Math.imul(b,H)|0,i=(i=i+Math.imul(b,V)|0)+Math.imul(y,H)|0,f=f+Math.imul(y,V)|0,n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,q)|0,f=f+Math.imul(m,Z)|0;var tv=(u+(n=n+Math.imul(h,W)|0)|0)+((8191&(i=(i=i+Math.imul(h,Y)|0)+Math.imul(c,W)|0))<<13)|0;u=((f=f+Math.imul(c,Y)|0)+(i>>>13)|0)+(tv>>>26)|0,tv&=67108863,n=Math.imul(A,z),i=(i=Math.imul(A,J))+Math.imul(S,z)|0,f=Math.imul(S,J),n=n+Math.imul(w,H)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(M,H)|0,f=f+Math.imul(M,V)|0,n=n+Math.imul(b,q)|0,i=(i=i+Math.imul(b,Z)|0)+Math.imul(y,q)|0,f=f+Math.imul(y,Z)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,W)|0,f=f+Math.imul(m,Y)|0;var tw=(u+(n=n+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(c,$)|0))<<13)|0;u=((f=f+Math.imul(c,tt)|0)+(i>>>13)|0)+(tw>>>26)|0,tw&=67108863,n=Math.imul(N,z),i=(i=Math.imul(N,J))+Math.imul(T,z)|0,f=Math.imul(T,J),n=n+Math.imul(A,H)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(S,H)|0,f=f+Math.imul(S,V)|0,n=n+Math.imul(w,q)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(M,q)|0,f=f+Math.imul(M,Z)|0,n=n+Math.imul(b,W)|0,i=(i=i+Math.imul(b,Y)|0)+Math.imul(y,W)|0,f=f+Math.imul(y,Y)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,$)|0,f=f+Math.imul(m,tt)|0;var tM=(u+(n=n+Math.imul(h,tr)|0)|0)+((8191&(i=(i=i+Math.imul(h,tn)|0)+Math.imul(c,tr)|0))<<13)|0;u=((f=f+Math.imul(c,tn)|0)+(i>>>13)|0)+(tM>>>26)|0,tM&=67108863,n=Math.imul(C,z),i=(i=Math.imul(C,J))+Math.imul(I,z)|0,f=Math.imul(I,J),n=n+Math.imul(N,H)|0,i=(i=i+Math.imul(N,V)|0)+Math.imul(T,H)|0,f=f+Math.imul(T,V)|0,n=n+Math.imul(A,q)|0,i=(i=i+Math.imul(A,Z)|0)+Math.imul(S,q)|0,f=f+Math.imul(S,Z)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(M,W)|0,f=f+Math.imul(M,Y)|0,n=n+Math.imul(b,$)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(y,$)|0,f=f+Math.imul(y,tt)|0,n=n+Math.imul(p,tr)|0,i=(i=i+Math.imul(p,tn)|0)+Math.imul(m,tr)|0,f=f+Math.imul(m,tn)|0;var tE=(u+(n=n+Math.imul(h,tf)|0)|0)+((8191&(i=(i=i+Math.imul(h,to)|0)+Math.imul(c,tf)|0))<<13)|0;u=((f=f+Math.imul(c,to)|0)+(i>>>13)|0)+(tE>>>26)|0,tE&=67108863,n=Math.imul(O,z),i=(i=Math.imul(O,J))+Math.imul(x,z)|0,f=Math.imul(x,J),n=n+Math.imul(C,H)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(I,H)|0,f=f+Math.imul(I,V)|0,n=n+Math.imul(N,q)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(T,q)|0,f=f+Math.imul(T,Z)|0,n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(S,W)|0,f=f+Math.imul(S,Y)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(M,$)|0,f=f+Math.imul(M,tt)|0,n=n+Math.imul(b,tr)|0,i=(i=i+Math.imul(b,tn)|0)+Math.imul(y,tr)|0,f=f+Math.imul(y,tn)|0,n=n+Math.imul(p,tf)|0,i=(i=i+Math.imul(p,to)|0)+Math.imul(m,tf)|0,f=f+Math.imul(m,to)|0;var tA=(u+(n=n+Math.imul(h,ts)|0)|0)+((8191&(i=(i=i+Math.imul(h,tu)|0)+Math.imul(c,ts)|0))<<13)|0;u=((f=f+Math.imul(c,tu)|0)+(i>>>13)|0)+(tA>>>26)|0,tA&=67108863,n=Math.imul(F,z),i=(i=Math.imul(F,J))+Math.imul(B,z)|0,f=Math.imul(B,J),n=n+Math.imul(O,H)|0,i=(i=i+Math.imul(O,V)|0)+Math.imul(x,H)|0,f=f+Math.imul(x,V)|0,n=n+Math.imul(C,q)|0,i=(i=i+Math.imul(C,Z)|0)+Math.imul(I,q)|0,f=f+Math.imul(I,Z)|0,n=n+Math.imul(N,W)|0,i=(i=i+Math.imul(N,Y)|0)+Math.imul(T,W)|0,f=f+Math.imul(T,Y)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(S,$)|0,f=f+Math.imul(S,tt)|0,n=n+Math.imul(w,tr)|0,i=(i=i+Math.imul(w,tn)|0)+Math.imul(M,tr)|0,f=f+Math.imul(M,tn)|0,n=n+Math.imul(b,tf)|0,i=(i=i+Math.imul(b,to)|0)+Math.imul(y,tf)|0,f=f+Math.imul(y,to)|0,n=n+Math.imul(p,ts)|0,i=(i=i+Math.imul(p,tu)|0)+Math.imul(m,ts)|0,f=f+Math.imul(m,tu)|0;var tS=(u+(n=n+Math.imul(h,th)|0)|0)+((8191&(i=(i=i+Math.imul(h,tc)|0)+Math.imul(c,th)|0))<<13)|0;u=((f=f+Math.imul(c,tc)|0)+(i>>>13)|0)+(tS>>>26)|0,tS&=67108863,n=Math.imul(D,z),i=(i=Math.imul(D,J))+Math.imul(U,z)|0,f=Math.imul(U,J),n=n+Math.imul(F,H)|0,i=(i=i+Math.imul(F,V)|0)+Math.imul(B,H)|0,f=f+Math.imul(B,V)|0,n=n+Math.imul(O,q)|0,i=(i=i+Math.imul(O,Z)|0)+Math.imul(x,q)|0,f=f+Math.imul(x,Z)|0,n=n+Math.imul(C,W)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(I,W)|0,f=f+Math.imul(I,Y)|0,n=n+Math.imul(N,$)|0,i=(i=i+Math.imul(N,tt)|0)+Math.imul(T,$)|0,f=f+Math.imul(T,tt)|0,n=n+Math.imul(A,tr)|0,i=(i=i+Math.imul(A,tn)|0)+Math.imul(S,tr)|0,f=f+Math.imul(S,tn)|0,n=n+Math.imul(w,tf)|0,i=(i=i+Math.imul(w,to)|0)+Math.imul(M,tf)|0,f=f+Math.imul(M,to)|0,n=n+Math.imul(b,ts)|0,i=(i=i+Math.imul(b,tu)|0)+Math.imul(y,ts)|0,f=f+Math.imul(y,tu)|0,n=n+Math.imul(p,th)|0,i=(i=i+Math.imul(p,tc)|0)+Math.imul(m,th)|0,f=f+Math.imul(m,tc)|0;var t_=(u+(n=n+Math.imul(h,tp)|0)|0)+((8191&(i=(i=i+Math.imul(h,tm)|0)+Math.imul(c,tp)|0))<<13)|0;u=((f=f+Math.imul(c,tm)|0)+(i>>>13)|0)+(t_>>>26)|0,t_&=67108863,n=Math.imul(D,H),i=(i=Math.imul(D,V))+Math.imul(U,H)|0,f=Math.imul(U,V),n=n+Math.imul(F,q)|0,i=(i=i+Math.imul(F,Z)|0)+Math.imul(B,q)|0,f=f+Math.imul(B,Z)|0,n=n+Math.imul(O,W)|0,i=(i=i+Math.imul(O,Y)|0)+Math.imul(x,W)|0,f=f+Math.imul(x,Y)|0,n=n+Math.imul(C,$)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(I,$)|0,f=f+Math.imul(I,tt)|0,n=n+Math.imul(N,tr)|0,i=(i=i+Math.imul(N,tn)|0)+Math.imul(T,tr)|0,f=f+Math.imul(T,tn)|0,n=n+Math.imul(A,tf)|0,i=(i=i+Math.imul(A,to)|0)+Math.imul(S,tf)|0,f=f+Math.imul(S,to)|0,n=n+Math.imul(w,ts)|0,i=(i=i+Math.imul(w,tu)|0)+Math.imul(M,ts)|0,f=f+Math.imul(M,tu)|0,n=n+Math.imul(b,th)|0,i=(i=i+Math.imul(b,tc)|0)+Math.imul(y,th)|0,f=f+Math.imul(y,tc)|0;var tN=(u+(n=n+Math.imul(p,tp)|0)|0)+((8191&(i=(i=i+Math.imul(p,tm)|0)+Math.imul(m,tp)|0))<<13)|0;u=((f=f+Math.imul(m,tm)|0)+(i>>>13)|0)+(tN>>>26)|0,tN&=67108863,n=Math.imul(D,q),i=(i=Math.imul(D,Z))+Math.imul(U,q)|0,f=Math.imul(U,Z),n=n+Math.imul(F,W)|0,i=(i=i+Math.imul(F,Y)|0)+Math.imul(B,W)|0,f=f+Math.imul(B,Y)|0,n=n+Math.imul(O,$)|0,i=(i=i+Math.imul(O,tt)|0)+Math.imul(x,$)|0,f=f+Math.imul(x,tt)|0,n=n+Math.imul(C,tr)|0,i=(i=i+Math.imul(C,tn)|0)+Math.imul(I,tr)|0,f=f+Math.imul(I,tn)|0,n=n+Math.imul(N,tf)|0,i=(i=i+Math.imul(N,to)|0)+Math.imul(T,tf)|0,f=f+Math.imul(T,to)|0,n=n+Math.imul(A,ts)|0,i=(i=i+Math.imul(A,tu)|0)+Math.imul(S,ts)|0,f=f+Math.imul(S,tu)|0,n=n+Math.imul(w,th)|0,i=(i=i+Math.imul(w,tc)|0)+Math.imul(M,th)|0,f=f+Math.imul(M,tc)|0;var tT=(u+(n=n+Math.imul(b,tp)|0)|0)+((8191&(i=(i=i+Math.imul(b,tm)|0)+Math.imul(y,tp)|0))<<13)|0;u=((f=f+Math.imul(y,tm)|0)+(i>>>13)|0)+(tT>>>26)|0,tT&=67108863,n=Math.imul(D,W),i=(i=Math.imul(D,Y))+Math.imul(U,W)|0,f=Math.imul(U,Y),n=n+Math.imul(F,$)|0,i=(i=i+Math.imul(F,tt)|0)+Math.imul(B,$)|0,f=f+Math.imul(B,tt)|0,n=n+Math.imul(O,tr)|0,i=(i=i+Math.imul(O,tn)|0)+Math.imul(x,tr)|0,f=f+Math.imul(x,tn)|0,n=n+Math.imul(C,tf)|0,i=(i=i+Math.imul(C,to)|0)+Math.imul(I,tf)|0,f=f+Math.imul(I,to)|0,n=n+Math.imul(N,ts)|0,i=(i=i+Math.imul(N,tu)|0)+Math.imul(T,ts)|0,f=f+Math.imul(T,tu)|0,n=n+Math.imul(A,th)|0,i=(i=i+Math.imul(A,tc)|0)+Math.imul(S,th)|0,f=f+Math.imul(S,tc)|0;var tR=(u+(n=n+Math.imul(w,tp)|0)|0)+((8191&(i=(i=i+Math.imul(w,tm)|0)+Math.imul(M,tp)|0))<<13)|0;u=((f=f+Math.imul(M,tm)|0)+(i>>>13)|0)+(tR>>>26)|0,tR&=67108863,n=Math.imul(D,$),i=(i=Math.imul(D,tt))+Math.imul(U,$)|0,f=Math.imul(U,tt),n=n+Math.imul(F,tr)|0,i=(i=i+Math.imul(F,tn)|0)+Math.imul(B,tr)|0,f=f+Math.imul(B,tn)|0,n=n+Math.imul(O,tf)|0,i=(i=i+Math.imul(O,to)|0)+Math.imul(x,tf)|0,f=f+Math.imul(x,to)|0,n=n+Math.imul(C,ts)|0,i=(i=i+Math.imul(C,tu)|0)+Math.imul(I,ts)|0,f=f+Math.imul(I,tu)|0,n=n+Math.imul(N,th)|0,i=(i=i+Math.imul(N,tc)|0)+Math.imul(T,th)|0,f=f+Math.imul(T,tc)|0;var tC=(u+(n=n+Math.imul(A,tp)|0)|0)+((8191&(i=(i=i+Math.imul(A,tm)|0)+Math.imul(S,tp)|0))<<13)|0;u=((f=f+Math.imul(S,tm)|0)+(i>>>13)|0)+(tC>>>26)|0,tC&=67108863,n=Math.imul(D,tr),i=(i=Math.imul(D,tn))+Math.imul(U,tr)|0,f=Math.imul(U,tn),n=n+Math.imul(F,tf)|0,i=(i=i+Math.imul(F,to)|0)+Math.imul(B,tf)|0,f=f+Math.imul(B,to)|0,n=n+Math.imul(O,ts)|0,i=(i=i+Math.imul(O,tu)|0)+Math.imul(x,ts)|0,f=f+Math.imul(x,tu)|0,n=n+Math.imul(C,th)|0,i=(i=i+Math.imul(C,tc)|0)+Math.imul(I,th)|0,f=f+Math.imul(I,tc)|0;var tI=(u+(n=n+Math.imul(N,tp)|0)|0)+((8191&(i=(i=i+Math.imul(N,tm)|0)+Math.imul(T,tp)|0))<<13)|0;u=((f=f+Math.imul(T,tm)|0)+(i>>>13)|0)+(tI>>>26)|0,tI&=67108863,n=Math.imul(D,tf),i=(i=Math.imul(D,to))+Math.imul(U,tf)|0,f=Math.imul(U,to),n=n+Math.imul(F,ts)|0,i=(i=i+Math.imul(F,tu)|0)+Math.imul(B,ts)|0,f=f+Math.imul(B,tu)|0,n=n+Math.imul(O,th)|0,i=(i=i+Math.imul(O,tc)|0)+Math.imul(x,th)|0,f=f+Math.imul(x,tc)|0;var tP=(u+(n=n+Math.imul(C,tp)|0)|0)+((8191&(i=(i=i+Math.imul(C,tm)|0)+Math.imul(I,tp)|0))<<13)|0;u=((f=f+Math.imul(I,tm)|0)+(i>>>13)|0)+(tP>>>26)|0,tP&=67108863,n=Math.imul(D,ts),i=(i=Math.imul(D,tu))+Math.imul(U,ts)|0,f=Math.imul(U,tu),n=n+Math.imul(F,th)|0,i=(i=i+Math.imul(F,tc)|0)+Math.imul(B,th)|0,f=f+Math.imul(B,tc)|0;var tO=(u+(n=n+Math.imul(O,tp)|0)|0)+((8191&(i=(i=i+Math.imul(O,tm)|0)+Math.imul(x,tp)|0))<<13)|0;u=((f=f+Math.imul(x,tm)|0)+(i>>>13)|0)+(tO>>>26)|0,tO&=67108863,n=Math.imul(D,th),i=(i=Math.imul(D,tc))+Math.imul(U,th)|0,f=Math.imul(U,tc);var tx=(u+(n=n+Math.imul(F,tp)|0)|0)+((8191&(i=(i=i+Math.imul(F,tm)|0)+Math.imul(B,tp)|0))<<13)|0;u=((f=f+Math.imul(B,tm)|0)+(i>>>13)|0)+(tx>>>26)|0,tx&=67108863;var tk=(u+(n=Math.imul(D,tp))|0)+((8191&(i=(i=Math.imul(D,tm))+Math.imul(U,tp)|0))<<13)|0;return u=((f=Math.imul(U,tm))+(i>>>13)|0)+(tk>>>26)|0,tk&=67108863,s[0]=tg,s[1]=tb,s[2]=ty,s[3]=tv,s[4]=tw,s[5]=tM,s[6]=tE,s[7]=tA,s[8]=tS,s[9]=t_,s[10]=tN,s[11]=tT,s[12]=tR,s[13]=tC,s[14]=tI,s[15]=tP,s[16]=tO,s[17]=tx,s[18]=tk,0!==u&&(s[19]=u,r.length++),r};function b(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,f=0;f<r.length-1;f++){var o=i;i=0;for(var a=67108863&n,s=Math.min(f,e.length-1),u=Math.max(0,f-t.length+1);u<=s;u++){var l=f-u,h=(0|t.words[l])*(0|e.words[u]),c=67108863&h;o=o+(h/67108864|0)|0,a=67108863&(c=c+a|0),i+=(o=o+(c>>>26)|0)>>>26,o&=67108863}r.words[f]=a,n=o,o=i}return 0!==n?r.words[f]=n:r.length--,r._strip()}function y(t,e){this.x=t,this.y=e}Math.imul||(g=m),f.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return 10===this.length&&10===t.length?g(this,t,e):n<63?m(this,t,e):b(this,t,e)},y.prototype.makeRBT=function(t){for(var e=Array(t),r=f.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},y.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},y.prototype.permute=function(t,e,r,n,i,f){for(var o=0;o<f;o++)n[o]=e[t[o]],i[o]=r[t[o]]},y.prototype.transform=function(t,e,r,n,i,f){this.permute(f,t,e,r,n,i);for(var o=1;o<i;o<<=1)for(var a=o<<1,s=Math.cos(2*Math.PI/a),u=Math.sin(2*Math.PI/a),l=0;l<i;l+=a)for(var h=s,c=u,d=0;d<o;d++){var p=r[l+d],m=n[l+d],g=r[l+d+o],b=n[l+d+o],y=h*g-c*b;b=h*b+c*g,g=y,r[l+d]=p+g,n[l+d]=m+b,r[l+d+o]=p-g,n[l+d+o]=m-b,d!==a&&(y=s*h-u*c,c=s*c+u*h,h=y)}},y.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},y.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},y.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},y.prototype.convert13b=function(t,e,r,i){for(var f=0,o=0;o<e;o++)f+=0|t[o],r[2*o]=8191&f,f>>>=13,r[2*o+1]=8191&f,f>>>=13;for(o=2*e;o<i;++o)r[o]=0;n(0===f),n((-8192&f)==0)},y.prototype.stub=function(t){for(var e=Array(t),r=0;r<t;r++)e[r]=0;return e},y.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),f=this.stub(n),o=Array(n),a=Array(n),s=Array(n),u=Array(n),l=Array(n),h=Array(n),c=r.words;c.length=n,this.convert13b(t.words,t.length,o,n),this.convert13b(e.words,e.length,u,n),this.transform(o,f,a,s,n,i),this.transform(u,f,l,h,n,i);for(var d=0;d<n;d++){var p=a[d]*l[d]-s[d]*h[d];s[d]=a[d]*h[d]+s[d]*l[d],a[d]=p}return this.conjugate(a,s,n),this.transform(a,s,c,f,n,i),this.conjugate(c,f,n),this.normalize13b(c,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r._strip()},f.prototype.mul=function(t){var e=new f(null);return e.words=Array(this.length+t.length),this.mulTo(t,e)},f.prototype.mulf=function(t){var e=new f(null);return e.words=Array(this.length+t.length),b(this,t,e)},f.prototype.imul=function(t){return this.clone().mulTo(t,this)},f.prototype.imuln=function(t){var e=t<0;e&&(t=-t),n("number"==typeof t),n(t<67108864);for(var r=0,i=0;i<this.length;i++){var f=(0|this.words[i])*t,o=(67108863&f)+(67108863&r);r>>=26,r+=(f/67108864|0)+(o>>>26),this.words[i]=67108863&o}return 0!==r&&(this.words[i]=r,this.length++),e?this.ineg():this},f.prototype.muln=function(t){return this.clone().imuln(t)},f.prototype.sqr=function(){return this.mul(this)},f.prototype.isqr=function(){return this.imul(this.clone())},f.prototype.pow=function(t){var e=function(t){for(var e=Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=t.words[n]>>>i&1}return e}(t);if(0===e.length)return new f(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},f.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,f=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(e=0;e<this.length;e++){var a=this.words[e]&f,s=(0|this.words[e])-a<<r;this.words[e]=s|o,o=a>>>26-r}o&&(this.words[e]=o,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this._strip()},f.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},f.prototype.iushrn=function(t,e,r){n("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var i,f=t%26,o=Math.min((t-f)/26,this.length),a=67108863^67108863>>>f<<f;if(i-=o,i=Math.max(0,i),r){for(var s=0;s<o;s++)r.words[s]=this.words[s];r.length=o}if(0===o);else if(this.length>o)for(this.length-=o,s=0;s<this.length;s++)this.words[s]=this.words[s+o];else this.words[0]=0,this.length=1;var u=0;for(s=this.length-1;s>=0&&(0!==u||s>=i);s--){var l=0|this.words[s];this.words[s]=u<<26-f|l>>>f,u=l&a}return r&&0!==u&&(r.words[r.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},f.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},f.prototype.shln=function(t){return this.clone().ishln(t)},f.prototype.ushln=function(t){return this.clone().iushln(t)},f.prototype.shrn=function(t){return this.clone().ishrn(t)},f.prototype.ushrn=function(t){return this.clone().iushrn(t)},f.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;return!(this.length<=r)&&!!(this.words[r]&1<<e)},f.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;return(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)?this:(0!==e&&r++,this.length=Math.min(r,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<<e),this._strip())},f.prototype.maskn=function(t){return this.clone().imaskn(t)},f.prototype.iaddn=function(t){return(n("number"==typeof t),n(t<67108864),t<0)?this.isubn(-t):0!==this.negative?(1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(t),this.negative=1),this):this._iaddn(t)},f.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[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},f.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<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},f.prototype.addn=function(t){return this.clone().iaddn(t)},f.prototype.subn=function(t){return this.clone().isubn(t)},f.prototype.iabs=function(){return this.negative=0,this},f.prototype.abs=function(){return this.clone().iabs()},f.prototype._ishlnsubmul=function(t,e,r){var i,f,o=t.length+r;this._expand(o);var a=0;for(i=0;i<t.length;i++){f=(0|this.words[i+r])+a;var s=(0|t.words[i])*e;f-=67108863&s,a=(f>>26)-(s/67108864|0),this.words[i+r]=67108863&f}for(;i<this.length-r;i++)a=(f=(0|this.words[i+r])+a)>>26,this.words[i+r]=67108863&f;if(0===a)return this._strip();for(n(-1===a),a=0,i=0;i<this.length;i++)a=(f=-(0|this.words[i])+a)>>26,this.words[i]=67108863&f;return this.negative=1,this._strip()},f.prototype._wordDiv=function(t,e){var r,n=this.length-t.length,i=this.clone(),o=t,a=0|o.words[o.length-1];0!=(n=26-this._countBits(a))&&(o=o.ushln(n),i.iushln(n),a=0|o.words[o.length-1]);var s=i.length-o.length;if("mod"!==e){(r=new f(null)).length=s+1,r.words=Array(r.length);for(var u=0;u<r.length;u++)r.words[u]=0}var l=i.clone()._ishlnsubmul(o,1,s);0===l.negative&&(i=l,r&&(r.words[s]=1));for(var h=s-1;h>=0;h--){var c=(0|i.words[o.length+h])*67108864+(0|i.words[o.length+h-1]);for(c=Math.min(c/a|0,67108863),i._ishlnsubmul(o,c,h);0!==i.negative;)c--,i.negative=0,i._ishlnsubmul(o,1,h),i.isZero()||(i.negative^=1);r&&(r.words[h]=c)}return r&&r._strip(),i._strip(),"div"!==e&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},f.prototype.divmod=function(t,e,r){var i,o,a;return(n(!t.isZero()),this.isZero())?{div:new f(0),mod:new f(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:i,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):(this.negative&t.negative)!=0?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||0>this.cmp(t)?{div:new f(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new f(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new f(this.modrn(t.words[0]))}:this._wordDiv(t,e)},f.prototype.div=function(t){return this.divmod(t,"div",!1).div},f.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},f.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},f.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),f=r.cmp(n);return f<0||1===i&&0===f?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},f.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=67108864%t,i=0,f=this.length-1;f>=0;f--)i=(r*i+(0|this.words[f]))%t;return e?-i:i},f.prototype.modn=function(t){return this.modrn(t)},f.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 f=(0|this.words[i])+67108864*r;this.words[i]=f/t|0,r=f%t}return this._strip(),e?this.ineg():this},f.prototype.divn=function(t){return this.clone().idivn(t)},f.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();for(var i=new f(1),o=new f(0),a=new f(0),s=new f(1),u=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++u;for(var l=r.clone(),h=e.clone();!e.isZero();){for(var c=0,d=1;(e.words[0]&d)==0&&c<26;++c,d<<=1);if(c>0)for(e.iushrn(c);c-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(l),o.isub(h)),i.iushrn(1),o.iushrn(1);for(var p=0,m=1;(r.words[0]&m)==0&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||s.isOdd())&&(a.iadd(l),s.isub(h)),a.iushrn(1),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(a),o.isub(s)):(r.isub(e),a.isub(i),s.isub(o))}return{a:a,b:s,gcd:r.iushln(u)}},f.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e,r=this,i=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var o=new f(1),a=new f(0),s=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var u=0,l=1;(r.words[0]&l)==0&&u<26;++u,l<<=1);if(u>0)for(r.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);for(var h=0,c=1;(i.words[0]&c)==0&&h<26;++h,c<<=1);if(h>0)for(i.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);r.cmp(i)>=0?(r.isub(i),o.isub(a)):(i.isub(r),a.isub(o))}return 0>(e=0===r.cmpn(1)?o:a).cmpn(0)&&e.iadd(t),e},f.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);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var f=e;e=r,r=f}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},f.prototype.invm=function(t){return this.egcd(t).a.umod(t)},f.prototype.isEven=function(){return(1&this.words[0])==0},f.prototype.isOdd=function(){return(1&this.words[0])==1},f.prototype.andln=function(t){return this.words[0]&t},f.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var f=i,o=r;0!==f&&o<this.length;o++){var a=0|this.words[o];a+=f,f=a>>>26,a&=67108863,this.words[o]=a}return 0!==f&&(this.words[o]=f,this.length++),this},f.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},f.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:i<t?-1:1}return 0!==this.negative?0|-e:e},f.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return -1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},f.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return -1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},f.prototype.gtn=function(t){return 1===this.cmpn(t)},f.prototype.gt=function(t){return 1===this.cmp(t)},f.prototype.gten=function(t){return this.cmpn(t)>=0},f.prototype.gte=function(t){return this.cmp(t)>=0},f.prototype.ltn=function(t){return -1===this.cmpn(t)},f.prototype.lt=function(t){return -1===this.cmp(t)},f.prototype.lten=function(t){return 0>=this.cmpn(t)},f.prototype.lte=function(t){return 0>=this.cmp(t)},f.prototype.eqn=function(t){return 0===this.cmpn(t)},f.prototype.eq=function(t){return 0===this.cmp(t)},f.red=function(t){return new _(t)},f.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)},f.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},f.prototype._forceRed=function(t){return this.red=t,this},f.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},f.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},f.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},f.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},f.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},f.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},f.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},f.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},f.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},f.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},f.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},f.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},f.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},f.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new f(e,16),this.n=this.p.bitLength(),this.k=new f(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 E(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(t){if("string"==typeof t){var e=f._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 N(t){_.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new f(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 f(null);return t.words=Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,r=t;do this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?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=Math.min(t.length,9),n=0;n<r;n++)e.words[n]=t.words[n];if(e.length=r,t.length<=9){t.words[0]=0,t.length=1;return}var i=t.words[9];for(n=10,e.words[e.length++]=4194303&i;n<t.length;n++){var f=0|t.words[n];t.words[n-10]=(4194303&f)<<4|i>>>22,i=f}i>>>=22,t.words[n-10]=i,0===i&&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<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(E,w),i(A,w),i(S,w),S.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=(0|t.words[r])*19+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},f._prime=function(t){var e;if(v[t])return v[t];if("k256"===t)e=new M;else if("p224"===t)e=new E;else if("p192"===t)e=new A;else if("p25519"===t)e=new S;else throw Error("Unknown prime "+t);return v[t]=e,e},_.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},_.prototype._verify2=function(t,e){n((t.negative|e.negative)==0,"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},_.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(u(t,t.umod(this.m)._forceRed(this)),t)},_.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},_.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)},_.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},_.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},_.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return 0>r.cmpn(0)&&r.iadd(this.m),r},_.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},_.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},_.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},_.prototype.isqr=function(t){return this.imul(t,t.clone())},_.prototype.sqr=function(t){return this.mul(t,t)},_.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 f(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var a=new f(1).toRed(this),s=a.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new f(2*l*l).toRed(this);0!==this.pow(l,u).cmp(s);)l.redIAdd(s);for(var h=this.pow(l,i),c=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=o;0!==d.cmp(a);){for(var m=d,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g<p);var b=this.pow(h,new f(1).iushln(p-g-1));c=c.redMul(b),h=b.redSqr(),d=d.redMul(h),p=g}return c},_.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},_.prototype.pow=function(t,e){if(e.isZero())return new f(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=Array(16);r[0]=new f(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],o=0,a=0,s=e.bitLength()%26;for(0===s&&(s=26),n=e.length-1;n>=0;n--){for(var u=e.words[n],l=s-1;l>=0;l--){var h=u>>l&1;if(i!==r[0]&&(i=this.sqr(i)),0===h&&0===o){a=0;continue}o<<=1,o|=h,(4==++a||0===n&&0===l)&&(i=this.mul(i,r[o]),a=0,o=0)}s=26}return i},_.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},_.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},f.mont=function(t){return new N(t)},i(N,_),N.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},N.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},N.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),f=i;return i.cmp(this.m)>=0?f=i.isub(this.m):0>i.cmpn(0)&&(f=i.iadd(this.m)),f._forceRed(this)},N.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new f(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),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},N.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},46517:function(t,e,r){var n,i=r(34155);!function(){"use strict";var f="input is invalid type",o="object"==typeof window,a=o?window:{};a.JS_SHA3_NO_WINDOW&&(o=!1);var s=!o&&"object"==typeof self;!a.JS_SHA3_NO_NODE_JS&&"object"==typeof i&&i.versions&&i.versions.node?a=r.g:s&&(a=self);var u=!a.JS_SHA3_NO_COMMON_JS&&t.exports,l=r.amdO,h=!a.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,c="0123456789abcdef".split(""),d=[4,1024,262144,67108864],p=[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],g=[224,256,384,512],b=[128,256],y=["hex","buffer","arrayBuffer","array","digest"],v={128:168,256:136};(a.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),h&&(a.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 w=function(t,e,r){return function(n){return new F(t,e,t).update(n)[r]()}},M=function(t,e,r){return function(n,i){return new F(t,e,i).update(n)[r]()}},E=function(t,e,r){return function(e,n,i,f){return T["cshake"+t].update(e,n,i,f)[r]()}},A=function(t,e,r){return function(e,n,i,f){return T["kmac"+t].update(e,n,i,f)[r]()}},S=function(t,e,r,n){for(var i=0;i<y.length;++i){var f=y[i];t[f]=e(r,n,f)}return t},_=function(t,e){var r=w(t,e,"hex");return r.create=function(){return new F(t,e,t)},r.update=function(t){return r.create().update(t)},S(r,w,t,e)},N=[{name:"keccak",padding:[1,256,65536,16777216],bits:g,createMethod:_},{name:"sha3",padding:[6,1536,393216,100663296],bits:g,createMethod:_},{name:"shake",padding:[31,7936,2031616,520093696],bits:b,createMethod:function(t,e){var r=M(t,e,"hex");return r.create=function(r){return new F(t,e,r)},r.update=function(t,e){return r.create(e).update(t)},S(r,M,t,e)}},{name:"cshake",padding:d,bits:b,createMethod:function(t,e){var r=v[t],n=E(t,e,"hex");return n.create=function(n,i,f){return i||f?new F(t,e,n).bytepad([i,f],r):T["shake"+t].create(n)},n.update=function(t,e,r,i){return n.create(e,r,i).update(t)},S(n,E,t,e)}},{name:"kmac",padding:d,bits:b,createMethod:function(t,e){var r=v[t],n=A(t,e,"hex");return n.create=function(n,i,f){return new B(t,e,i).bytepad(["KMAC",f],r).bytepad([n],r)},n.update=function(t,e,r,i){return n.create(t,r,i).update(e)},S(n,A,t,e)}}],T={},R=[],C=0;C<N.length;++C)for(var I=N[C],P=I.bits,O=0;O<P.length;++O){var x=I.name+"_"+P[O];if(R.push(x),T[x]=I.createMethod(P[O],I.padding),"sha3"!==I.name){var k=I.name+P[O];R.push(k),T[k]=T[x]}}function F(t,e,r){this.blocks=[],this.s=[],this.padding=e,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(t<<1)>>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 B(t,e,r){F.call(this,t,e,r)}F.prototype.update=function(t){if(this.finalized)throw Error("finalize already called");var e,r=typeof t;if("string"!==r){if("object"===r){if(null===t)throw Error(f);if(h&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!h||!ArrayBuffer.isView(t)))throw Error(f)}else throw Error(f);e=!0}for(var n,i,o=this.blocks,a=this.byteCount,s=t.length,u=this.blockCount,l=0,c=this.s;l<s;){if(this.reset)for(n=1,this.reset=!1,o[0]=this.block;n<u+1;++n)o[n]=0;if(e)for(n=this.start;l<s&&n<a;++l)o[n>>2]|=t[l]<<p[3&n++];else for(n=this.start;l<s&&n<a;++l)(i=t.charCodeAt(l))<128?o[n>>2]|=i<<p[3&n++]:(i<2048?o[n>>2]|=(192|i>>6)<<p[3&n++]:(i<55296||i>=57344?o[n>>2]|=(224|i>>12)<<p[3&n++]:(i=65536+((1023&i)<<10|1023&t.charCodeAt(++l)),o[n>>2]|=(240|i>>18)<<p[3&n++],o[n>>2]|=(128|i>>12&63)<<p[3&n++]),o[n>>2]|=(128|i>>6&63)<<p[3&n++]),o[n>>2]|=(128|63&i)<<p[3&n++]);if(this.lastByteIndex=n,n>=a){for(this.start=n-a,this.block=o[u],n=0;n<u;++n)c[n]^=o[n];L(c),this.reset=!0}else this.start=n}return this},F.prototype.encode=function(t,e){var r=255&t,n=1,i=[r];for(t>>=8,r=255&t;r>0;)i.unshift(r),t>>=8,r=255&t,++n;return e?i.push(n):i.unshift(n),this.update(i),i.length},F.prototype.encodeString=function(t){var e,r=typeof t;if("string"!==r){if("object"===r){if(null===t)throw Error(f);if(h&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!h||!ArrayBuffer.isView(t)))throw Error(f)}else throw Error(f);e=!0}var n=0,i=t.length;if(e)n=i;else for(var o=0;o<t.length;++o){var a=t.charCodeAt(o);a<128?n+=1:a<2048?n+=2:a<55296||a>=57344?n+=3:(a=65536+((1023&a)<<10|1023&t.charCodeAt(++o)),n+=4)}return n+=this.encode(8*n),this.update(t),n},F.prototype.bytepad=function(t,e){for(var r=this.encode(e),n=0;n<t.length;++n)r+=this.encodeString(t[n]);var i=e-r%e,f=[];return f.length=i,this.update(f),this},F.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex,r=this.blockCount,n=this.s;if(t[e>>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(e=1,t[0]=t[r];e<r+1;++e)t[e]=0;for(t[r-1]|=2147483648,e=0;e<r;++e)n[e]^=t[e];L(n)}},F.prototype.toString=F.prototype.hex=function(){this.finalize();for(var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,f=0,o=0,a="";o<n;){for(f=0;f<e&&o<n;++f,++o)a+=c[(t=r[f])>>4&15]+c[15&t]+c[t>>12&15]+c[t>>8&15]+c[t>>20&15]+c[t>>16&15]+c[t>>28&15]+c[t>>24&15];o%e==0&&(L(r),f=0)}return i&&(a+=c[(t=r[f])>>4&15]+c[15&t],i>1&&(a+=c[t>>12&15]+c[t>>8&15]),i>2&&(a+=c[t>>20&15]+c[t>>16&15])),a},F.prototype.arrayBuffer=function(){this.finalize();for(var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,f=0,o=0,a=this.outputBits>>3,s=new Uint32Array(t=new ArrayBuffer(i?n+1<<2:a));o<n;){for(f=0;f<e&&o<n;++f,++o)s[o]=r[f];o%e==0&&L(r)}return i&&(s[f]=r[f],t=t.slice(0,a)),t},F.prototype.buffer=F.prototype.arrayBuffer,F.prototype.digest=F.prototype.array=function(){this.finalize();for(var t,e,r=this.blockCount,n=this.s,i=this.outputBlocks,f=this.extraBytes,o=0,a=0,s=[];a<i;){for(o=0;o<r&&a<i;++o,++a)t=a<<2,e=n[o],s[t]=255&e,s[t+1]=e>>8&255,s[t+2]=e>>16&255,s[t+3]=e>>24&255;a%r==0&&L(n)}return f&&(t=a<<2,e=n[o],s[t]=255&e,f>1&&(s[t+1]=e>>8&255),f>2&&(s[t+2]=e>>16&255)),s},B.prototype=new F,B.prototype.finalize=function(){return this.encode(this.outputBits,!0),F.prototype.finalize.call(this)};var L=function(t){var e,r,n,i,f,o,a,s,u,l,h,c,d,p,g,b,y,v,w,M,E,A,S,_,N,T,R,C,I,P,O,x,k,F,B,L,D,U,G,z,J,j,H,V,X,q,Z,K,W,Y,Q,$,tt,te,tr,tn,ti,tf,to,ta,ts,tu,tl;for(n=0;n<48;n+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],f=t[1]^t[11]^t[21]^t[31]^t[41],o=t[2]^t[12]^t[22]^t[32]^t[42],a=t[3]^t[13]^t[23]^t[33]^t[43],s=t[4]^t[14]^t[24]^t[34]^t[44],u=t[5]^t[15]^t[25]^t[35]^t[45],l=t[6]^t[16]^t[26]^t[36]^t[46],h=t[7]^t[17]^t[27]^t[37]^t[47],c=t[8]^t[18]^t[28]^t[38]^t[48],d=t[9]^t[19]^t[29]^t[39]^t[49],e=c^(o<<1|a>>>31),r=d^(a<<1|o>>>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^(s<<1|u>>>31),r=f^(u<<1|s>>>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=o^(l<<1|h>>>31),r=a^(h<<1|l>>>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=s^(c<<1|d>>>31),r=u^(d<<1|c>>>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=l^(i<<1|f>>>31),r=h^(f<<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],g=t[1],q=t[11]<<4|t[10]>>>28,Z=t[10]<<4|t[11]>>>28,C=t[20]<<3|t[21]>>>29,I=t[21]<<3|t[20]>>>29,ta=t[31]<<9|t[30]>>>23,ts=t[30]<<9|t[31]>>>23,j=t[40]<<18|t[41]>>>14,H=t[41]<<18|t[40]>>>14,F=t[2]<<1|t[3]>>>31,B=t[3]<<1|t[2]>>>31,b=t[13]<<12|t[12]>>>20,y=t[12]<<12|t[13]>>>20,K=t[22]<<10|t[23]>>>22,W=t[23]<<10|t[22]>>>22,P=t[33]<<13|t[32]>>>19,O=t[32]<<13|t[33]>>>19,tu=t[42]<<2|t[43]>>>30,tl=t[43]<<2|t[42]>>>30,te=t[5]<<30|t[4]>>>2,tr=t[4]<<30|t[5]>>>2,L=t[14]<<6|t[15]>>>26,D=t[15]<<6|t[14]>>>26,v=t[25]<<11|t[24]>>>21,w=t[24]<<11|t[25]>>>21,Y=t[34]<<15|t[35]>>>17,Q=t[35]<<15|t[34]>>>17,x=t[45]<<29|t[44]>>>3,k=t[44]<<29|t[45]>>>3,_=t[6]<<28|t[7]>>>4,N=t[7]<<28|t[6]>>>4,tn=t[17]<<23|t[16]>>>9,ti=t[16]<<23|t[17]>>>9,U=t[26]<<25|t[27]>>>7,G=t[27]<<25|t[26]>>>7,M=t[36]<<21|t[37]>>>11,E=t[37]<<21|t[36]>>>11,$=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,V=t[8]<<27|t[9]>>>5,X=t[9]<<27|t[8]>>>5,T=t[18]<<20|t[19]>>>12,R=t[19]<<20|t[18]>>>12,tf=t[29]<<7|t[28]>>>25,to=t[28]<<7|t[29]>>>25,z=t[38]<<8|t[39]>>>24,J=t[39]<<8|t[38]>>>24,A=t[48]<<14|t[49]>>>18,S=t[49]<<14|t[48]>>>18,t[0]=p^~b&v,t[1]=g^~y&w,t[10]=_^~T&C,t[11]=N^~R&I,t[20]=F^~L&U,t[21]=B^~D&G,t[30]=V^~q&K,t[31]=X^~Z&W,t[40]=te^~tn&tf,t[41]=tr^~ti&to,t[2]=b^~v&M,t[3]=y^~w&E,t[12]=T^~C&P,t[13]=R^~I&O,t[22]=L^~U&z,t[23]=D^~G&J,t[32]=q^~K&Y,t[33]=Z^~W&Q,t[42]=tn^~tf&ta,t[43]=ti^~to&ts,t[4]=v^~M&A,t[5]=w^~E&S,t[14]=C^~P&x,t[15]=I^~O&k,t[24]=U^~z&j,t[25]=G^~J&H,t[34]=K^~Y&$,t[35]=W^~Q&tt,t[44]=tf^~ta&tu,t[45]=to^~ts&tl,t[6]=M^~A&p,t[7]=E^~S&g,t[16]=P^~x&_,t[17]=O^~k&N,t[26]=z^~j&F,t[27]=J^~H&B,t[36]=Y^~$&V,t[37]=Q^~tt&X,t[46]=ta^~tu&te,t[47]=ts^~tl&tr,t[8]=A^~p&b,t[9]=S^~g&y,t[18]=x^~_&T,t[19]=k^~N&R,t[28]=j^~F&L,t[29]=H^~B&D,t[38]=$^~V&q,t[39]=tt^~X&Z,t[48]=tu^~te&tn,t[49]=tl^~tr&ti,t[0]^=m[n],t[1]^=m[n+1]};if(u)t.exports=T;else{for(C=0;C<R.length;++C)a[R[C]]=T[R[C]];l&&void 0!==(n=(function(){return T}).call(e,r,e,t))&&(t.exports=n)}}()},76927:function(t,e,r){"use strict";r.d(e,{s:function(){return f},F:function(){return o}});var n=r(37077),i=r(49103);function f(t){let e=(0,i.Y0)(t);if(e.length>31)throw Error("bytes32 string must be less than 32 bytes");return(0,n.Dv)((0,n.zo)([e,"0x0000000000000000000000000000000000000000000000000000000000000000"]).slice(0,32))}function o(t){let e=(0,n.lE)(t);if(32!==e.length)throw Error("invalid bytes32 - not 32 bytes long");if(0!==e[31])throw Error("invalid bytes32 string - no null terminator");let r=31;for(;0===e[r-1];)r--;return(0,i.ZN)(e.slice(0,r))}},15297:function(t,e,r){"use strict";r.d(e,{Ll:function(){return p}});var n=r(49103);function i(t,e){e||(e=function(t){return[parseInt(t,16)]});let r=0,n={};return t.split(",").forEach(t=>{let i=t.split(":");n[r+=parseInt(i[0],16)]=e(i[1])}),n}function f(t){let e=0;return t.split(",").map(t=>{let r=t.split("-");return 1===r.length?r[1]="0":""===r[1]&&(r[1]="1"),{l:e+parseInt(r[0],16),h:e=parseInt(r[1],16)}})}function o(t,e){let r=0;for(let n=0;n<e.length;n++){let i=e[n];if(t>=(r+=i.l)&&t<=r+i.h&&(t-r)%(i.d||1)==0){if(i.e&&-1!==i.e.indexOf(t-r))continue;return i}}return null}let a=f("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),s="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map(t=>parseInt(t,16)),u=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],l=i("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),h=i("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),c=i("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",function(t){if(t.length%4!=0)throw Error("bad data");let e=[];for(let r=0;r<t.length;r+=4)e.push(parseInt(t.substring(r,r+4),16));return e}),d=f("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");function p(t){if(t.match(/^[a-z0-9-]*$/i)&&t.length<=59)return t.toLowerCase();let e=(0,n.XL)(t);e=e.map(t=>s.indexOf(t)>=0||t>=65024&&t<=65039?[]:function(t){let e=o(t,u);if(e)return[t+e.s];let r=l[t];if(r)return r;let n=h[t];return n?[t+n[0]]:c[t]||null}(t)||[t]).reduce((t,e)=>(e.forEach(e=>{t.push(e)}),t),[]),(e=(0,n.XL)((0,n.uu)(e),n.Uj.NFKC)).forEach(t=>{if(o(t,d))throw Error("STRINGPREP_CONTAINS_PROHIBITED")}),e.forEach(t=>{if(o(t,a))throw Error("STRINGPREP_CONTAINS_UNASSIGNED")});let r=(0,n.uu)(e);if("-"===r.substring(0,1)||"--"===r.substring(2,4)||"-"===r.substring(r.length-1))throw Error("invalid hyphen");if(r.length>63)throw Error("too long");return r}},53214:function(t,e,r){"use strict";r.r(e),r.d(e,{UnicodeNormalizationForm:function(){return f.Uj},Utf8ErrorFuncs:function(){return f.te},Utf8ErrorReason:function(){return f.Uw},_toEscapedUtf8String:function(){return f.U$},formatBytes32String:function(){return n.s},nameprep:function(){return i.Ll},parseBytes32String:function(){return n.F},toUtf8Bytes:function(){return f.Y0},toUtf8CodePoints:function(){return f.XL},toUtf8String:function(){return f.ZN}});var n=r(76927),i=r(15297),f=r(49103)},49103:function(t,e,r){"use strict";r.d(e,{Uj:function(){return f},te:function(){return l},Uw:function(){return o},U$:function(){return p},uu:function(){return m},Y0:function(){return c},XL:function(){return b},ZN:function(){return g}});var n,i,f,o,a=r(37077);let s=new(r(26361)).Yd("strings/5.4.0");function u(t,e,r,n,i){if(t===o.BAD_PREFIX||t===o.UNEXPECTED_CONTINUE){let t=0;for(let n=e+1;n<r.length&&r[n]>>6==2;n++)t++;return t}return t===o.OVERRUN?r.length-e-1:0}(n=f||(f={})).current="",n.NFC="NFC",n.NFD="NFD",n.NFKC="NFKC",n.NFKD="NFKD",(i=o||(o={})).UNEXPECTED_CONTINUE="unexpected continuation byte",i.BAD_PREFIX="bad codepoint prefix",i.OVERRUN="string overrun",i.MISSING_CONTINUE="missing continuation byte",i.OUT_OF_RANGE="out of UTF-8 range",i.UTF16_SURROGATE="UTF-16 surrogate",i.OVERLONG="overlong representation";let l=Object.freeze({error:function(t,e,r,n,i){return s.throwArgumentError(`invalid codepoint at offset ${e}; ${t}`,"bytes",r)},ignore:u,replace:function(t,e,r,n,i){return t===o.OVERLONG?(n.push(i),0):(n.push(65533),u(t,e,r,n,i))}});function h(t,e){null==e&&(e=l.error),t=(0,a.lE)(t);let r=[],n=0;for(;n<t.length;){let i=t[n++];if(i>>7==0){r.push(i);continue}let f=null,a=null;if((224&i)==192)f=1,a=127;else if((240&i)==224)f=2,a=2047;else if((248&i)==240)f=3,a=65535;else{(192&i)==128?n+=e(o.UNEXPECTED_CONTINUE,n-1,t,r):n+=e(o.BAD_PREFIX,n-1,t,r);continue}if(n-1+f>=t.length){n+=e(o.OVERRUN,n-1,t,r);continue}let s=i&(1<<8-f-1)-1;for(let i=0;i<f;i++){let i=t[n];if((192&i)!=128){n+=e(o.MISSING_CONTINUE,n,t,r),s=null;break}s=s<<6|63&i,n++}if(null!==s){if(s>1114111){n+=e(o.OUT_OF_RANGE,n-1-f,t,r,s);continue}if(s>=55296&&s<=57343){n+=e(o.UTF16_SURROGATE,n-1-f,t,r,s);continue}if(s<=a){n+=e(o.OVERLONG,n-1-f,t,r,s);continue}r.push(s)}}return r}function c(t,e=f.current){e!=f.current&&(s.checkNormalize(),t=t.normalize(e));let r=[];for(let e=0;e<t.length;e++){let n=t.charCodeAt(e);if(n<128)r.push(n);else if(n<2048)r.push(n>>6|192),r.push(63&n|128);else if((64512&n)==55296){e++;let i=t.charCodeAt(e);if(e>=t.length||(64512&i)!=56320)throw Error("invalid utf-8 string");let f=65536+((1023&n)<<10)+(1023&i);r.push(f>>18|240),r.push(f>>12&63|128),r.push(f>>6&63|128),r.push(63&f|128)}else r.push(n>>12|224),r.push(n>>6&63|128),r.push(63&n|128)}return(0,a.lE)(r)}function d(t){let e="0000"+t.toString(16);return"\\u"+e.substring(e.length-4)}function p(t,e){return'"'+h(t,e).map(t=>{if(t<256){switch(t){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(t>=32&&t<127)return String.fromCharCode(t)}return t<=65535?d(t):d(((t-=65536)>>10&1023)+55296)+d((1023&t)+56320)}).join("")+'"'}function m(t){return t.map(t=>t<=65535?String.fromCharCode(t):String.fromCharCode(((t-=65536)>>10&1023)+55296,(1023&t)+56320)).join("")}function g(t,e){return m(h(t,e))}function b(t,e=f.current){return h(c(t,e))}},37077:function(t,e,r){"use strict";r.d(e,{lE:function(){return s},zo:function(){return u},Dv:function(){return c}});let n=new(r(26361)).Yd("bytes/5.7.0");function i(t){return!!t.toHexString}function f(t){return t.slice||(t.slice=function(){let e=Array.prototype.slice.call(arguments);return f(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function o(t){return"number"==typeof t&&t==t&&t%1==0}function a(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"==typeof t||!o(t.length)||t.length<0)return!1;for(let e=0;e<t.length;e++){let r=t[e];if(!o(r)||r<0||r>=256)return!1}return!0}function s(t,e){if(e||(e={}),"number"==typeof t){n.checkSafeUint53(t,"invalid arrayify value");let e=[];for(;t;)e.unshift(255&t),t=parseInt(String(t/256));return 0===e.length&&e.push(0),f(new Uint8Array(e))}if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),i(t)&&(t=t.toHexString()),l(t)){let r=t.substring(2);r.length%2&&("left"===e.hexPad?r="0"+r:"right"===e.hexPad?r+="0":n.throwArgumentError("hex data is odd-length","value",t));let i=[];for(let t=0;t<r.length;t+=2)i.push(parseInt(r.substring(t,t+2),16));return f(new Uint8Array(i))}return a(t)?f(new Uint8Array(t)):n.throwArgumentError("invalid arrayify value","value",t)}function u(t){let e=t.map(t=>s(t)),r=new Uint8Array(e.reduce((t,e)=>t+e.length,0));return e.reduce((t,e)=>(r.set(e,t),t+e.length),0),f(r)}function l(t,e){return"string"==typeof t&&!!t.match(/^0x[0-9A-Fa-f]*$/)&&(!e||t.length===2+2*e)}let h="0123456789abcdef";function c(t,e){if(e||(e={}),"number"==typeof t){n.checkSafeUint53(t,"invalid hexlify value");let e="";for(;t;)e=h[15&t]+e,t=Math.floor(t/16);return e.length?(e.length%2&&(e="0"+e),"0x"+e):"0x00"}if("bigint"==typeof t)return(t=t.toString(16)).length%2?"0x0"+t:"0x"+t;if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),i(t))return t.toHexString();if(l(t))return t.length%2&&("left"===e.hexPad?t="0x0"+t.substring(2):"right"===e.hexPad?t+="0":n.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(a(t)){let e="0x";for(let r=0;r<t.length;r++){let n=t[r];e+=h[(240&n)>>4]+h[15&n]}return e}return n.throwArgumentError("invalid hexlify value","value",t)}},26361:function(t,e,r){"use strict";var n,i,f,o;r.d(e,{Yd:function(){return p}});let a=!1,s=!1,u={debug:1,default:2,info:2,warning:3,error:4,off:5},l=u.default,h=null,c=function(){try{let t=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test"!=="test".normalize(e))throw Error("bad normalize")}catch(r){t.push(e)}}),t.length)throw Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw Error("broken implementation")}catch(t){return t.message}return null}();(f=n||(n={})).DEBUG="DEBUG",f.INFO="INFO",f.WARNING="WARNING",f.ERROR="ERROR",f.OFF="OFF",(o=i||(i={})).UNKNOWN_ERROR="UNKNOWN_ERROR",o.NOT_IMPLEMENTED="NOT_IMPLEMENTED",o.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",o.NETWORK_ERROR="NETWORK_ERROR",o.SERVER_ERROR="SERVER_ERROR",o.TIMEOUT="TIMEOUT",o.BUFFER_OVERRUN="BUFFER_OVERRUN",o.NUMERIC_FAULT="NUMERIC_FAULT",o.MISSING_NEW="MISSING_NEW",o.INVALID_ARGUMENT="INVALID_ARGUMENT",o.MISSING_ARGUMENT="MISSING_ARGUMENT",o.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",o.CALL_EXCEPTION="CALL_EXCEPTION",o.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",o.NONCE_EXPIRED="NONCE_EXPIRED",o.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",o.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",o.TRANSACTION_REPLACED="TRANSACTION_REPLACED",o.ACTION_REJECTED="ACTION_REJECTED";let d="0123456789abcdef";class p{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){let r=t.toLowerCase();null==u[r]&&this.throwArgumentError("invalid log level name","logLevel",t),l>u[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(s)return this.makeError("censored error",e,{});e||(e=p.errors.UNKNOWN_ERROR),r||(r={});let n=[];Object.keys(r).forEach(t=>{let e=r[t];try{if(e instanceof Uint8Array){let r="";for(let t=0;t<e.length;t++)r+=d[e[t]>>4]+d[15&e[t]];n.push(t+"=Uint8Array(0x"+r+")")}else n.push(t+"="+JSON.stringify(e))}catch(e){n.push(t+"="+JSON.stringify(r[t].toString()))}}),n.push(`code=${e}`),n.push(`version=${this.version}`);let f=t,o="";switch(e){case i.NUMERIC_FAULT:{o="NUMERIC_FAULT";let e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":o+="-"+e;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result"}break}case i.CALL_EXCEPTION:case i.INSUFFICIENT_FUNDS:case i.MISSING_NEW:case i.NONCE_EXPIRED:case i.REPLACEMENT_UNDERPRICED:case i.TRANSACTION_REPLACED:case i.UNPREDICTABLE_GAS_LIMIT:o=e}o&&(t+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),n.length&&(t+=" ("+n.join(", ")+")");let a=Error(t);return a.reason=f,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"),c&&this.throwError("platform missing String.prototype.normalize",p.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:c})}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:"",t<e&&this.throwError("missing argument"+r,p.errors.MISSING_ARGUMENT,{count:t,expectedCount:e}),t>e&&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 h||(h=new p("logger/5.7.0")),h}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",p.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),a){if(!t)return;this.globalLogger().throwError("error censorship permanent",p.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}s=!!t,a=!!e}static setLogLevel(t){let e=u[t.toLowerCase()];if(null==e){p.globalLogger().warn("invalid log level - "+t);return}l=e}static from(t){return new p(t)}}p.errors=i,p.levels=n},46024:function(t,e,r){"use strict";r.r(e),r.d(e,{TransactionTypes:function(){return O},accessListify:function(){return t0},computeAddress:function(){return tW},parse:function(){return t3},recoverAddress:function(){return tY},serialize:function(){return t2}});let n=!1,i=!1,f={debug:1,default:2,info:2,warning:3,error:4,off:5},o=f.default,a=null,s=function(){try{let t=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test"!=="test".normalize(e))throw Error("bad normalize")}catch(r){t.push(e)}}),t.length)throw Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw Error("broken implementation")}catch(t){return t.message}return null}();(R=I||(I={})).DEBUG="DEBUG",R.INFO="INFO",R.WARNING="WARNING",R.ERROR="ERROR",R.OFF="OFF",(C=P||(P={})).UNKNOWN_ERROR="UNKNOWN_ERROR",C.NOT_IMPLEMENTED="NOT_IMPLEMENTED",C.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",C.NETWORK_ERROR="NETWORK_ERROR",C.SERVER_ERROR="SERVER_ERROR",C.TIMEOUT="TIMEOUT",C.BUFFER_OVERRUN="BUFFER_OVERRUN",C.NUMERIC_FAULT="NUMERIC_FAULT",C.MISSING_NEW="MISSING_NEW",C.INVALID_ARGUMENT="INVALID_ARGUMENT",C.MISSING_ARGUMENT="MISSING_ARGUMENT",C.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",C.CALL_EXCEPTION="CALL_EXCEPTION",C.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",C.NONCE_EXPIRED="NONCE_EXPIRED",C.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",C.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",C.TRANSACTION_REPLACED="TRANSACTION_REPLACED",C.ACTION_REJECTED="ACTION_REJECTED";let u="0123456789abcdef";class l{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){let r=t.toLowerCase();null==f[r]&&this.throwArgumentError("invalid log level name","logLevel",t),o>f[r]||console.log.apply(console,e)}debug(...t){this._log(l.levels.DEBUG,t)}info(...t){this._log(l.levels.INFO,t)}warn(...t){this._log(l.levels.WARNING,t)}makeError(t,e,r){if(i)return this.makeError("censored error",e,{});e||(e=l.errors.UNKNOWN_ERROR),r||(r={});let n=[];Object.keys(r).forEach(t=>{let e=r[t];try{if(e instanceof Uint8Array){let r="";for(let t=0;t<e.length;t++)r+=u[e[t]>>4]+u[15&e[t]];n.push(t+"=Uint8Array(0x"+r+")")}else n.push(t+"="+JSON.stringify(e))}catch(e){n.push(t+"="+JSON.stringify(r[t].toString()))}}),n.push(`code=${e}`),n.push(`version=${this.version}`);let f=t,o="";switch(e){case P.NUMERIC_FAULT:{o="NUMERIC_FAULT";let e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":o+="-"+e;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result"}break}case P.CALL_EXCEPTION:case P.INSUFFICIENT_FUNDS:case P.MISSING_NEW:case P.NONCE_EXPIRED:case P.REPLACEMENT_UNDERPRICED:case P.TRANSACTION_REPLACED:case P.UNPREDICTABLE_GAS_LIMIT:o=e}o&&(t+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),n.length&&(t+=" ("+n.join(", ")+")");let a=Error(t);return a.reason=f,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,l.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"),s&&this.throwError("platform missing String.prototype.normalize",l.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:s})}checkSafeUint53(t,e){"number"==typeof t&&(null==e&&(e="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(e,l.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(e,l.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,e,r){r=r?": "+r:"",t<e&&this.throwError("missing argument"+r,l.errors.MISSING_ARGUMENT,{count:t,expectedCount:e}),t>e&&this.throwError("too many arguments"+r,l.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:e})}checkNew(t,e){(t===Object||null==t)&&this.throwError("missing new",l.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",l.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):(t===Object||null==t)&&this.throwError("missing new",l.errors.MISSING_NEW,{name:e.name})}static globalLogger(){return a||(a=new l("logger/5.7.0")),a}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",l.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),n){if(!t)return;this.globalLogger().throwError("error censorship permanent",l.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}i=!!t,n=!!e}static setLogLevel(t){let e=f[t.toLowerCase()];if(null==e){l.globalLogger().warn("invalid log level - "+t);return}o=e}static from(t){return new l(t)}}l.errors=P,l.levels=I;let h=new l("bytes/5.7.0");function c(t){return!!t.toHexString}function d(t){return t.slice||(t.slice=function(){let e=Array.prototype.slice.call(arguments);return d(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function p(t){return v(t)&&!(t.length%2)||g(t)}function m(t){return"number"==typeof t&&t==t&&t%1==0}function g(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"==typeof t||!m(t.length)||t.length<0)return!1;for(let e=0;e<t.length;e++){let r=t[e];if(!m(r)||r<0||r>=256)return!1}return!0}function b(t,e){if(e||(e={}),"number"==typeof t){h.checkSafeUint53(t,"invalid arrayify value");let e=[];for(;t;)e.unshift(255&t),t=parseInt(String(t/256));return 0===e.length&&e.push(0),d(new Uint8Array(e))}if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),c(t)&&(t=t.toHexString()),v(t)){let r=t.substring(2);r.length%2&&("left"===e.hexPad?r="0"+r:"right"===e.hexPad?r+="0":h.throwArgumentError("hex data is odd-length","value",t));let n=[];for(let t=0;t<r.length;t+=2)n.push(parseInt(r.substring(t,t+2),16));return d(new Uint8Array(n))}return g(t)?d(new Uint8Array(t)):h.throwArgumentError("invalid arrayify value","value",t)}function y(t){let e=b(t);if(0===e.length)return e;let r=0;for(;r<e.length&&0===e[r];)r++;return r&&(e=e.slice(r)),e}function v(t,e){return"string"==typeof t&&!!t.match(/^0x[0-9A-Fa-f]*$/)&&(!e||t.length===2+2*e)}let w="0123456789abcdef";function M(t,e){if(e||(e={}),"number"==typeof t){h.checkSafeUint53(t,"invalid hexlify value");let e="";for(;t;)e=w[15&t]+e,t=Math.floor(t/16);return e.length?(e.length%2&&(e="0"+e),"0x"+e):"0x00"}if("bigint"==typeof t)return(t=t.toString(16)).length%2?"0x0"+t:"0x"+t;if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),c(t))return t.toHexString();if(v(t))return t.length%2&&("left"===e.hexPad?t="0x0"+t.substring(2):"right"===e.hexPad?t+="0":h.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(g(t)){let e="0x";for(let r=0;r<t.length;r++){let n=t[r];e+=w[(240&n)>>4]+w[15&n]}return e}return h.throwArgumentError("invalid hexlify value","value",t)}function E(t){if("string"!=typeof t)t=M(t);else if(!v(t)||t.length%2)return null;return(t.length-2)/2}function A(t,e,r){return("string"!=typeof t?t=M(t):(!v(t)||t.length%2)&&h.throwArgumentError("invalid hexData","value",t),e=2+2*e,null!=r)?"0x"+t.substring(e,2+2*r):"0x"+t.substring(e)}function S(t){let e="0x";return t.forEach(t=>{e+=M(t).substring(2)}),e}function _(t,e){for("string"!=typeof t?t=M(t):v(t)||h.throwArgumentError("invalid hex string","value",t),t.length>2*e+2&&h.throwArgumentError("value out of range","value",arguments[1]);t.length<2*e+2;)t="0x0"+t.substring(2);return t}function N(t){let e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(p(t)){let r=b(t);64===r.length?(e.v=27+(r[32]>>7),r[32]&=127,e.r=M(r.slice(0,32)),e.s=M(r.slice(32,64))):65===r.length?(e.r=M(r.slice(0,32)),e.s=M(r.slice(32,64)),e.v=r[64]):h.throwArgumentError("invalid signature string","signature",t),e.v<27&&(0===e.v||1===e.v?e.v+=27:h.throwArgumentError("signature invalid v byte","signature",t)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(r[32]|=128),e._vs=M(r.slice(32,64))}else{if(e.r=t.r,e.s=t.s,e.v=t.v,e.recoveryParam=t.recoveryParam,e._vs=t._vs,null!=e._vs){let r=function(t,e){(t=b(t)).length>e&&h.throwArgumentError("value out of range","value",arguments[0]);let r=new Uint8Array(e);return r.set(t,e-t.length),d(r)}(b(e._vs),32);e._vs=M(r);let n=r[0]>=128?1:0;null==e.recoveryParam?e.recoveryParam=n:e.recoveryParam!==n&&h.throwArgumentError("signature recoveryParam mismatch _vs","signature",t),r[0]&=127;let i=M(r);null==e.s?e.s=i:e.s!==i&&h.throwArgumentError("signature v mismatch _vs","signature",t)}if(null==e.recoveryParam)null==e.v?h.throwArgumentError("signature missing v and recoveryParam","signature",t):0===e.v||1===e.v?e.recoveryParam=e.v:e.recoveryParam=1-e.v%2;else if(null==e.v)e.v=27+e.recoveryParam;else{let r=0===e.v||1===e.v?e.v:1-e.v%2;e.recoveryParam!==r&&h.throwArgumentError("signature recoveryParam mismatch v","signature",t)}null!=e.r&&v(e.r)?e.r=_(e.r,32):h.throwArgumentError("signature missing or invalid r","signature",t),null!=e.s&&v(e.s)?e.s=_(e.s,32):h.throwArgumentError("signature missing or invalid s","signature",t);let r=b(e.s);r[0]>=128&&h.throwArgumentError("signature s out of range","signature",t),e.recoveryParam&&(r[0]|=128);let n=M(r);e._vs&&(v(e._vs)||h.throwArgumentError("signature invalid _vs","signature",t),e._vs=_(e._vs,32)),null==e._vs?e._vs=n:e._vs!==n&&h.throwArgumentError("signature _vs mismatch v and s","signature",t)}return e.yParityAndS=e._vs,e.compact=e.r+e.yParityAndS.substring(2),e}var T,R,C,I,P,O,x=r(46676),k=r.n(x),F=k().BN;let B=new l("bignumber/5.7.0"),L={},D=!1;class U{constructor(t,e){t!==L&&B.throwError("cannot call constructor directly; use BigNumber.from",l.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=e,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return z(J(this).fromTwos(t))}toTwos(t){return z(J(this).toTwos(t))}abs(){return"-"===this._hex[0]?U.from(this._hex.substring(1)):this}add(t){return z(J(this).add(J(t)))}sub(t){return z(J(this).sub(J(t)))}div(t){return U.from(t).isZero()&&j("division-by-zero","div"),z(J(this).div(J(t)))}mul(t){return z(J(this).mul(J(t)))}mod(t){let e=J(t);return e.isNeg()&&j("division-by-zero","mod"),z(J(this).umod(e))}pow(t){let e=J(t);return e.isNeg()&&j("negative-power","pow"),z(J(this).pow(e))}and(t){let e=J(t);return(this.isNegative()||e.isNeg())&&j("unbound-bitwise-result","and"),z(J(this).and(e))}or(t){let e=J(t);return(this.isNegative()||e.isNeg())&&j("unbound-bitwise-result","or"),z(J(this).or(e))}xor(t){let e=J(t);return(this.isNegative()||e.isNeg())&&j("unbound-bitwise-result","xor"),z(J(this).xor(e))}mask(t){return(this.isNegative()||t<0)&&j("negative-width","mask"),z(J(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&j("negative-width","shl"),z(J(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&j("negative-width","shr"),z(J(this).shrn(t))}eq(t){return J(this).eq(J(t))}lt(t){return J(this).lt(J(t))}lte(t){return J(this).lte(J(t))}gt(t){return J(this).gt(J(t))}gte(t){return J(this).gte(J(t))}isNegative(){return"-"===this._hex[0]}isZero(){return J(this).isZero()}toNumber(){try{return J(this).toNumber()}catch(t){j("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(t){}return B.throwError("this platform does not support BigInt",l.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?D||(D=!0,B.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?B.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",l.errors.UNEXPECTED_ARGUMENT,{}):B.throwError("BigNumber.toString does not accept parameters",l.errors.UNEXPECTED_ARGUMENT,{})),J(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof U)return t;if("string"==typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new U(L,G(t)):t.match(/^-?[0-9]+$/)?new U(L,G(new F(t))):B.throwArgumentError("invalid BigNumber string","value",t);if("number"==typeof t)return t%1&&j("underflow","BigNumber.from",t),(t>=9007199254740991||t<=-9007199254740991)&&j("overflow","BigNumber.from",t),U.from(String(t));if("bigint"==typeof t)return U.from(t.toString());if(g(t))return U.from(M(t));if(t){if(t.toHexString){let e=t.toHexString();if("string"==typeof e)return U.from(e)}else{let e=t._hex;if(null==e&&"BigNumber"===t.type&&(e=t.hex),"string"==typeof e&&(v(e)||"-"===e[0]&&v(e.substring(1))))return U.from(e)}}return B.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!!(t&&t._isBigNumber)}}function G(t){if("string"!=typeof t)return G(t.toString(16));if("-"===t[0])return("-"===(t=t.substring(1))[0]&&B.throwArgumentError("invalid hex","value",t),"0x00"===(t=G(t)))?t:"-"+t;if("0x"!==t.substring(0,2)&&(t="0x"+t),"0x"===t)return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&"0x00"===t.substring(0,4);)t="0x"+t.substring(4);return t}function z(t){return U.from(G(t))}function J(t){let e=U.from(t).toHexString();return"-"===e[0]?new F("-"+e.substring(3),16):new F(e.substring(2),16)}function j(t,e,r){let n={fault:t,operation:e};return null!=r&&(n.value=r),B.throwError(t,l.errors.NUMERIC_FAULT,n)}var H=r(13345),V=r.n(H);function X(t){return"0x"+V().keccak_256(b(t))}let q=new l("address/5.7.0");function Z(t){v(t,20)||q.throwArgumentError("invalid address","address",t);let e=(t=t.toLowerCase()).substring(2).split(""),r=new Uint8Array(40);for(let t=0;t<40;t++)r[t]=e[t].charCodeAt(0);let n=b(X(r));for(let t=0;t<40;t+=2)n[t>>1]>>4>=8&&(e[t]=e[t].toUpperCase()),(15&n[t>>1])>=8&&(e[t+1]=e[t+1].toUpperCase());return"0x"+e.join("")}let K={};for(let t=0;t<10;t++)K[String(t)]=String(t);for(let t=0;t<26;t++)K[String.fromCharCode(65+t)]=String(10+t);let W=Math.floor(Math.log10?Math.log10(9007199254740991):Math.log(9007199254740991)/Math.LN10);function Y(t){let e=null;if("string"!=typeof t&&q.throwArgumentError("invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==t.substring(0,2)&&(t="0x"+t),e=Z(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&q.throwArgumentError("bad address checksum","address",t);else if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(t.substring(2,4)!==function(t){let e=(t=(t=t.toUpperCase()).substring(4)+t.substring(0,2)+"00").split("").map(t=>K[t]).join("");for(;e.length>=W;){let t=e.substring(0,W);e=parseInt(t,10)%97+e.substring(t.length)}let r=String(98-parseInt(e,10)%97);for(;r.length<2;)r="0"+r;return r}(t)&&q.throwArgumentError("bad icap checksum","address",t),e=new F(t.substring(4),36).toString(16);e.length<40;)e="0"+e;e=Z("0x"+e)}else q.throwArgumentError("invalid address","address",t);return e}let Q=U.from(0),$=new l("properties/5.7.0");function tt(t,e,r){Object.defineProperty(t,e,{enumerable:!0,value:r,writable:!1})}let te=new l("rlp/5.7.0");function tr(t){let e=[];for(;t;)e.unshift(255&t),t>>=8;return e}function tn(t,e,r){let n=0;for(let i=0;i<r;i++)n=256*n+t[e+i];return n}function ti(t){return M(function t(e){if(Array.isArray(e)){let r=[];if(e.forEach(function(e){r=r.concat(t(e))}),r.length<=55)return r.unshift(192+r.length),r;let n=tr(r.length);return n.unshift(247+n.length),n.concat(r)}p(e)||te.throwArgumentError("RLP object must be BytesLike","object",e);let r=Array.prototype.slice.call(b(e));if(1===r.length&&r[0]<=127)return r;if(r.length<=55)return r.unshift(128+r.length),r;let n=tr(r.length);return n.unshift(183+n.length),n.concat(r)}(t))}function tf(t,e,r,n){let i=[];for(;r<e+1+n;){let f=to(t,r);i.push(f.result),(r+=f.consumed)>e+1+n&&te.throwError("child data too short",l.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:i}}function to(t,e){if(0===t.length&&te.throwError("data too short",l.errors.BUFFER_OVERRUN,{}),t[e]>=248){let r=t[e]-247;e+1+r>t.length&&te.throwError("data short segment too short",l.errors.BUFFER_OVERRUN,{});let n=tn(t,e+1,r);return e+1+r+n>t.length&&te.throwError("data long segment too short",l.errors.BUFFER_OVERRUN,{}),tf(t,e,e+1+r,r+n)}if(t[e]>=192){let r=t[e]-192;return e+1+r>t.length&&te.throwError("data array too short",l.errors.BUFFER_OVERRUN,{}),tf(t,e,e+1,r)}if(t[e]>=184){let r=t[e]-183;e+1+r>t.length&&te.throwError("data array too short",l.errors.BUFFER_OVERRUN,{});let n=tn(t,e+1,r);e+1+r+n>t.length&&te.throwError("data array too short",l.errors.BUFFER_OVERRUN,{});let i=M(t.slice(e+1+r,e+1+r+n));return{consumed:1+r+n,result:i}}if(t[e]>=128){let r=t[e]-128;e+1+r>t.length&&te.throwError("data too short",l.errors.BUFFER_OVERRUN,{});let n=M(t.slice(e+1,e+1+r));return{consumed:1+r,result:n}}return{consumed:1,result:M(t[e])}}function ta(t){let e=b(t),r=to(e,0);return r.consumed!==e.length&&te.throwArgumentError("invalid rlp data","data",t),r.result}var ts=r(33715),tu=r.n(ts);function tl(t,e,r){return t(r={path:e,exports:{},require:function(t,e){return function(){throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(t,null==e?r.path:e)}},r.exports),r.exports}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self&&self;var th=tc;function tc(t,e){if(!t)throw Error(e||"Assertion failed")}tc.equal=function(t,e,r){if(t!=e)throw Error(r||"Assertion failed: "+t+" != "+e)};var td=tl(function(t,e){function r(t){return 1===t.length?"0"+t:t}function n(t){for(var e="",n=0;n<t.length;n++)e+=r(t[n].toString(16));return e}e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"!=typeof t){for(var n=0;n<t.length;n++)r[n]=0|t[n];return r}if("hex"===e){(t=t.replace(/[^a-z0-9]+/ig,"")).length%2!=0&&(t="0"+t);for(var n=0;n<t.length;n+=2)r.push(parseInt(t[n]+t[n+1],16))}else for(var n=0;n<t.length;n++){var i=t.charCodeAt(n),f=i>>8,o=255&i;f?r.push(f,o):r.push(o)}return r},e.zero2=r,e.toHex=n,e.encode=function(t,e){return"hex"===e?n(t):t}}),tp=tl(function(t,e){e.assert=th,e.toArray=td.toArray,e.zero2=td.zero2,e.toHex=td.toHex,e.encode=td.encode,e.getNAF=function(t,e,r){var n=Array(Math.max(t.bitLength(),r)+1);n.fill(0);for(var i=1<<e+1,f=t.clone(),o=0;o<n.length;o++){var a,s=f.andln(i-1);f.isOdd()?(a=s>(i>>1)-1?(i>>1)-s:s,f.isubn(a)):a=0,n[o]=a,f.iushrn(1)}return n},e.getJSF=function(t,e){var r=[[],[]];t=t.clone(),e=e.clone();for(var n=0,i=0;t.cmpn(-n)>0||e.cmpn(-i)>0;){var f,o,a,s=t.andln(3)+n&3,u=e.andln(3)+i&3;3===s&&(s=-1),3===u&&(u=-1),o=(1&s)==0?0:(3==(f=t.andln(7)+n&7)||5===f)&&2===u?-s:s,r[0].push(o),a=(1&u)==0?0:(3==(f=e.andln(7)+i&7)||5===f)&&2===s?-u:u,r[1].push(a),2*n===o+1&&(n=1-n),2*i===a+1&&(i=1-i),t.iushrn(1),e.iushrn(1)}return r},e.cachedProperty=function(t,e,r){var n="_"+e;t.prototype[e]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},e.parseBytes=function(t){return"string"==typeof t?e.toArray(t,"hex"):t},e.intFromLE=function(t){return new(k())(t,"hex","le")}}),tm=tp.getNAF,tg=tp.getJSF,tb=tp.assert;function ty(t,e){this.type=t,this.p=new(k())(e.p,16),this.red=e.prime?k().red(e.prime):k().mont(this.p),this.zero=new(k())(0).toRed(this.red),this.one=new(k())(1).toRed(this.red),this.two=new(k())(2).toRed(this.red),this.n=e.n&&new(k())(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],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 tv(t,e){this.curve=t,this.type=e,this.precomputed=null}ty.prototype.point=function(){throw Error("Not implemented")},ty.prototype.validate=function(){throw Error("Not implemented")},ty.prototype._fixedNafMul=function(t,e){tb(t.precomputed);var r,n,i=t._getDoubles(),f=tm(e,1,this._bitLength),o=(1<<i.step+1)-(i.step%2==0?2:1);o/=3;var a=[];for(r=0;r<f.length;r+=i.step){n=0;for(var s=r+i.step-1;s>=r;s--)n=(n<<1)+f[s];a.push(n)}for(var u=this.jpoint(null,null,null),l=this.jpoint(null,null,null),h=o;h>0;h--){for(r=0;r<a.length;r++)(n=a[r])===h?l=l.mixedAdd(i.points[r]):n===-h&&(l=l.mixedAdd(i.points[r].neg()));u=u.add(l)}return u.toP()},ty.prototype._wnafMul=function(t,e){var r=4,n=t._getNAFPoints(r);r=n.wnd;for(var i=n.points,f=tm(e,r,this._bitLength),o=this.jpoint(null,null,null),a=f.length-1;a>=0;a--){for(var s=0;a>=0&&0===f[a];a--)s++;if(a>=0&&s++,o=o.dblp(s),a<0)break;var u=f[a];tb(0!==u),o="affine"===t.type?u>0?o.mixedAdd(i[u-1>>1]):o.mixedAdd(i[-u-1>>1].neg()):u>0?o.add(i[u-1>>1]):o.add(i[-u-1>>1].neg())}return"affine"===t.type?o.toP():o},ty.prototype._wnafMulAdd=function(t,e,r,n,i){var f,o,a,s=this._wnafT1,u=this._wnafT2,l=this._wnafT3,h=0;for(f=0;f<n;f++){var c=(a=e[f])._getNAFPoints(t);s[f]=c.wnd,u[f]=c.points}for(f=n-1;f>=1;f-=2){var d=f-1,p=f;if(1!==s[d]||1!==s[p]){l[d]=tm(r[d],s[d],this._bitLength),l[p]=tm(r[p],s[p],this._bitLength),h=Math.max(l[d].length,h),h=Math.max(l[p].length,h);continue}var m=[e[d],null,null,e[p]];0===e[d].y.cmp(e[p].y)?(m[1]=e[d].add(e[p]),m[2]=e[d].toJ().mixedAdd(e[p].neg())):0===e[d].y.cmp(e[p].y.redNeg())?(m[1]=e[d].toJ().mixedAdd(e[p]),m[2]=e[d].add(e[p].neg())):(m[1]=e[d].toJ().mixedAdd(e[p]),m[2]=e[d].toJ().mixedAdd(e[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],b=tg(r[d],r[p]);for(o=0,h=Math.max(b[0].length,h),l[d]=Array(h),l[p]=Array(h);o<h;o++){var y=0|b[0][o],v=0|b[1][o];l[d][o]=g[(y+1)*3+(v+1)],l[p][o]=0,u[d]=m}}var w=this.jpoint(null,null,null),M=this._wnafT4;for(f=h;f>=0;f--){for(var E=0;f>=0;){var A=!0;for(o=0;o<n;o++)M[o]=0|l[o][f],0!==M[o]&&(A=!1);if(!A)break;E++,f--}if(f>=0&&E++,w=w.dblp(E),f<0)break;for(o=0;o<n;o++){var S=M[o];0!==S&&(S>0?a=u[o][S-1>>1]:S<0&&(a=u[o][-S-1>>1].neg()),w="affine"===a.type?w.mixedAdd(a):w.add(a))}}for(f=0;f<n;f++)u[f]=null;return i?w:w.toP()},ty.BasePoint=tv,tv.prototype.eq=function(){throw Error("Not implemented")},tv.prototype.validate=function(){return this.curve.validate(this)},ty.prototype.decodePoint=function(t,e){t=tp.toArray(t,e);var r=this.p.byteLength();if((4===t[0]||6===t[0]||7===t[0])&&t.length-1==2*r)return 6===t[0]?tb(t[t.length-1]%2==0):7===t[0]&&tb(t[t.length-1]%2==1),this.point(t.slice(1,1+r),t.slice(1+r,1+2*r));if((2===t[0]||3===t[0])&&t.length-1===r)return this.pointFromX(t.slice(1,1+r),3===t[0]);throw Error("Unknown point format")},tv.prototype.encodeCompressed=function(t){return this.encode(t,!0)},tv.prototype._encode=function(t){var e=this.curve.p.byteLength(),r=this.getX().toArray("be",e);return t?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",e))},tv.prototype.encode=function(t,e){return tp.encode(this._encode(e),t)},tv.prototype.precompute=function(t){if(this.precomputed)return this;var e={doubles:null,naf:null,beta:null};return e.naf=this._getNAFPoints(8),e.doubles=this._getDoubles(4,t),e.beta=this._getBeta(),this.precomputed=e,this},tv.prototype._hasDoubles=function(t){if(!this.precomputed)return!1;var e=this.precomputed.doubles;return!!e&&e.points.length>=Math.ceil((t.bitLength()+1)/e.step)},tv.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<e;i+=t){for(var f=0;f<t;f++)n=n.dbl();r.push(n)}return{step:t,points:r}},tv.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var e=[this],r=(1<<t)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)e[i]=e[i-1].add(n);return{wnd:t,points:e}},tv.prototype._getBeta=function(){return null},tv.prototype.dblp=function(t){for(var e=this,r=0;r<t;r++)e=e.dbl();return e};var tw=tl(function(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}}),tM=tp.assert;function tE(t){ty.call(this,"short",t),this.a=new(k())(t.a,16).toRed(this.red),this.b=new(k())(t.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(t),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}function tA(t,e,r,n){ty.BasePoint.call(this,t,"affine"),null===e&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new(k())(e,16),this.y=new(k())(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function tS(t,e,r,n){ty.BasePoint.call(this,t,"jacobian"),null===e&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new(k())(0)):(this.x=new(k())(e,16),this.y=new(k())(r,16),this.z=new(k())(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}tw(tE,ty),tE.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){if(t.beta)e=new(k())(t.beta,16).toRed(this.red);else{var e,r,n,i=this._getEndoRoots(this.p);e=(e=0>i[0].cmp(i[1])?i[0]:i[1]).toRed(this.red)}if(t.lambda)r=new(k())(t.lambda,16);else{var f=this._getEndoRoots(this.n);0===this.g.mul(f[0]).x.cmp(this.g.x.redMul(e))?r=f[0]:(r=f[1],tM(0===this.g.mul(r).x.cmp(this.g.x.redMul(e))))}return n=t.basis?t.basis.map(function(t){return{a:new(k())(t.a,16),b:new(k())(t.b,16)}}):this._getEndoBasis(r),{beta:e,lambda:r,basis:n}}},tE.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:k().mont(t),r=new(k())(2).toRed(e).redInvm(),n=r.redNeg(),i=new(k())(3).toRed(e).redNeg().redSqrt().redMul(r);return[n.redAdd(i).fromRed(),n.redSub(i).fromRed()]},tE.prototype._getEndoBasis=function(t){for(var e,r,n,i,f,o,a,s,u,l=this.n.ushrn(Math.floor(this.n.bitLength()/2)),h=t,c=this.n.clone(),d=new(k())(1),p=new(k())(0),m=new(k())(0),g=new(k())(1),b=0;0!==h.cmpn(0);){var y=c.div(h);s=c.sub(y.mul(h)),u=m.sub(y.mul(d));var v=g.sub(y.mul(p));if(!n&&0>s.cmp(l))e=a.neg(),r=d,n=s.neg(),i=u;else if(n&&2==++b)break;a=s,c=h,h=s,m=d,d=u,g=p,p=v}f=s.neg(),o=u;var w=n.sqr().add(i.sqr());return f.sqr().add(o.sqr()).cmp(w)>=0&&(f=e,o=r),n.negative&&(n=n.neg(),i=i.neg()),f.negative&&(f=f.neg(),o=o.neg()),[{a:n,b:i},{a:f,b:o}]},tE.prototype._endoSplit=function(t){var e=this.endo.basis,r=e[0],n=e[1],i=n.b.mul(t).divRound(this.n),f=r.b.neg().mul(t).divRound(this.n),o=i.mul(r.a),a=f.mul(n.a),s=i.mul(r.b),u=f.mul(n.b);return{k1:t.sub(o).sub(a),k2:s.add(u).neg()}},tE.prototype.pointFromX=function(t,e){(t=new(k())(t,16)).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 Error("invalid point");var i=n.fromRed().isOdd();return(e&&!i||!e&&i)&&(n=n.redNeg()),this.point(t,n)},tE.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)},tE.prototype._endoWnafMulAdd=function(t,e,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,f=0;f<t.length;f++){var o=this._endoSplit(e[f]),a=t[f],s=a._getBeta();o.k1.negative&&(o.k1.ineg(),a=a.neg(!0)),o.k2.negative&&(o.k2.ineg(),s=s.neg(!0)),n[2*f]=a,n[2*f+1]=s,i[2*f]=o.k1,i[2*f+1]=o.k2}for(var u=this._wnafMulAdd(1,n,i,2*f,r),l=0;l<2*f;l++)n[l]=null,i[l]=null;return u},tw(tA,ty.BasePoint),tE.prototype.point=function(t,e,r){return new tA(this,t,e,r)},tE.prototype.pointFromJSON=function(t,e){return tA.fromJSON(this,t,e)},tA.prototype._getBeta=function(){if(this.curve.endo){var t=this.precomputed;if(t&&t.beta)return t.beta;var e=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(t){var r=this.curve,n=function(t){return r.point(t.x.redMul(r.endo.beta),t.y)};t.beta=e,e.precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(n)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(n)}}}return e}},tA.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},tA.fromJSON=function(t,e,r){"string"==typeof e&&(e=JSON.parse(e));var n=t.point(e[0],e[1],r);if(!e[2])return n;function i(e){return t.point(e[0],e[1],r)}var f=e[2];return n.precomputed={beta:null,doubles:f.doubles&&{step:f.doubles.step,points:[n].concat(f.doubles.points.map(i))},naf:f.naf&&{wnd:f.naf.wnd,points:[n].concat(f.naf.points.map(i))}},n},tA.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},tA.prototype.isInfinity=function(){return this.inf},tA.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)||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)},tA.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),f=i.redSqr().redISub(this.x.redAdd(this.x)),o=i.redMul(this.x.redSub(f)).redISub(this.y);return this.curve.point(f,o)},tA.prototype.getX=function(){return this.x.fromRed()},tA.prototype.getY=function(){return this.y.fromRed()},tA.prototype.mul=function(t){return(t=new(k())(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)},tA.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)},tA.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)},tA.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))},tA.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},tA.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},tw(tS,ty.BasePoint),tE.prototype.jpoint=function(t,e,r){return new tS(this,t,e,r)},tS.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)},tS.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},tS.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),f=this.y.redMul(e.redMul(t.z)),o=t.y.redMul(r.redMul(this.z)),a=n.redSub(i),s=f.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),l=u.redMul(a),h=n.redMul(u),c=s.redSqr().redIAdd(l).redISub(h).redISub(h),d=s.redMul(h.redISub(c)).redISub(f.redMul(l)),p=this.z.redMul(t.z).redMul(a);return this.curve.jpoint(c,d,p)},tS.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,f=t.y.redMul(e).redMul(this.z),o=r.redSub(n),a=i.redSub(f);if(0===o.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var s=o.redSqr(),u=s.redMul(o),l=r.redMul(s),h=a.redSqr().redIAdd(u).redISub(l).redISub(l),c=a.redMul(l.redISub(h)).redISub(i.redMul(u)),d=this.z.redMul(o);return this.curve.jpoint(h,c,d)},tS.prototype.dblp=function(t){if(0===t||this.isInfinity())return this;if(!t)return this.dbl();if(this.curve.zeroA||this.curve.threeA){var e,r=this;for(e=0;e<t;e++)r=r.dbl();return r}var n=this.curve.a,i=this.curve.tinv,f=this.x,o=this.y,a=this.z,s=a.redSqr().redSqr(),u=o.redAdd(o);for(e=0;e<t;e++){var l=f.redSqr(),h=u.redSqr(),c=h.redSqr(),d=l.redAdd(l).redIAdd(l).redIAdd(n.redMul(s)),p=f.redMul(h),m=d.redSqr().redISub(p.redAdd(p)),g=p.redISub(m),b=d.redMul(g);b=b.redIAdd(b).redISub(c);var y=u.redMul(a);e+1<t&&(s=s.redMul(c)),f=m,a=y,u=b}return this.curve.jpoint(f,u.redMul(i),a)},tS.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},tS.prototype._zeroDbl=function(){if(this.zOne){var t,e,r,n=this.x.redSqr(),i=this.y.redSqr(),f=i.redSqr(),o=this.x.redAdd(i).redSqr().redISub(n).redISub(f);o=o.redIAdd(o);var a=n.redAdd(n).redIAdd(n),s=a.redSqr().redISub(o).redISub(o),u=f.redIAdd(f);u=(u=u.redIAdd(u)).redIAdd(u),t=s,e=a.redMul(o.redISub(s)).redISub(u),r=this.y.redAdd(this.y)}else{var l=this.x.redSqr(),h=this.y.redSqr(),c=h.redSqr(),d=this.x.redAdd(h).redSqr().redISub(l).redISub(c);d=d.redIAdd(d);var p=l.redAdd(l).redIAdd(l),m=p.redSqr(),g=c.redIAdd(c);g=(g=g.redIAdd(g)).redIAdd(g),t=m.redISub(d).redISub(d),e=p.redMul(d.redISub(t)).redISub(g),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(t,e,r)},tS.prototype._threeDbl=function(){if(this.zOne){var t,e,r,n=this.x.redSqr(),i=this.y.redSqr(),f=i.redSqr(),o=this.x.redAdd(i).redSqr().redISub(n).redISub(f);o=o.redIAdd(o);var a=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),s=a.redSqr().redISub(o).redISub(o);t=s;var u=f.redIAdd(f);u=(u=u.redIAdd(u)).redIAdd(u),e=a.redMul(o.redISub(s)).redISub(u),r=this.y.redAdd(this.y)}else{var l=this.z.redSqr(),h=this.y.redSqr(),c=this.x.redMul(h),d=this.x.redSub(l).redMul(this.x.redAdd(l));d=d.redAdd(d).redIAdd(d);var p=c.redIAdd(c),m=(p=p.redIAdd(p)).redAdd(p);t=d.redSqr().redISub(m),r=this.y.redAdd(this.z).redSqr().redISub(h).redISub(l);var g=h.redSqr();g=(g=(g=g.redIAdd(g)).redIAdd(g)).redIAdd(g),e=d.redMul(p.redISub(t)).redISub(g)}return this.curve.jpoint(t,e,r)},tS.prototype._dbl=function(){var t=this.curve.a,e=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),f=e.redSqr(),o=r.redSqr(),a=f.redAdd(f).redIAdd(f).redIAdd(t.redMul(i)),s=e.redAdd(e),u=(s=s.redIAdd(s)).redMul(o),l=a.redSqr().redISub(u.redAdd(u)),h=u.redISub(l),c=o.redSqr();c=(c=(c=c.redIAdd(c)).redIAdd(c)).redIAdd(c);var d=a.redMul(h).redISub(c),p=r.redAdd(r).redMul(n);return this.curve.jpoint(l,d,p)},tS.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var t=this.x.redSqr(),e=this.y.redSqr(),r=this.z.redSqr(),n=e.redSqr(),i=t.redAdd(t).redIAdd(t),f=i.redSqr(),o=this.x.redAdd(e).redSqr().redISub(t).redISub(n),a=(o=(o=(o=o.redIAdd(o)).redAdd(o).redIAdd(o)).redISub(f)).redSqr(),s=n.redIAdd(n);s=(s=(s=s.redIAdd(s)).redIAdd(s)).redIAdd(s);var u=i.redIAdd(o).redSqr().redISub(f).redISub(a).redISub(s),l=e.redMul(u);l=(l=l.redIAdd(l)).redIAdd(l);var h=this.x.redMul(a).redISub(l);h=(h=h.redIAdd(h)).redIAdd(h);var c=this.y.redMul(u.redMul(s.redISub(u)).redISub(o.redMul(a)));c=(c=(c=c.redIAdd(c)).redIAdd(c)).redIAdd(c);var d=this.z.redAdd(o).redSqr().redISub(r).redISub(a);return this.curve.jpoint(h,c,d)},tS.prototype.mul=function(t,e){return t=new(k())(t,e),this.curve._wnafMul(this,t)},tS.prototype.eq=function(t){if("affine"===t.type)return this.eq(t.toJ());if(this===t)return!0;var e=this.z.redSqr(),r=t.z.redSqr();if(0!==this.x.redMul(r).redISub(t.x.redMul(e)).cmpn(0))return!1;var n=e.redMul(this.z),i=r.redMul(t.z);return 0===this.y.redMul(i).redISub(t.y.redMul(n)).cmpn(0)},tS.prototype.eqXToP=function(t){var e=this.z.redSqr(),r=t.toRed(this.curve.red).redMul(e);if(0===this.x.cmp(r))return!0;for(var n=t.clone(),i=this.curve.redN.redMul(e);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},tS.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},tS.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var t_=tl(function(t,e){e.base=ty,e.short=tE,e.mont=null,e.edwards=null}),tN=tl(function(t,e){var r,n=tp.assert;function i(t){"short"===t.type?this.curve=new t_.short(t):"edwards"===t.type?this.curve=new t_.edwards(t):this.curve=new t_.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,n(this.g.validate(),"Invalid curve"),n(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function f(t,r){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){var n=new i(r);return Object.defineProperty(e,t,{configurable:!0,enumerable:!0,value:n}),n}})}e.PresetCurve=i,f("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:tu().sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),f("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:tu().sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),f("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:tu().sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),f("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:tu().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"]}),f("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:tu().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"]}),f("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:tu().sha256,gRed:!1,g:["9"]}),f("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:tu().sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=null.crash()}catch(t){r=void 0}f("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:tu().sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})});function tT(t){if(!(this instanceof tT))return new tT(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=td.toArray(t.entropy,t.entropyEnc||"hex"),r=td.toArray(t.nonce,t.nonceEnc||"hex"),n=td.toArray(t.pers,t.persEnc||"hex");th(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}tT.prototype._init=function(t,e,r){var n=t.concat(e).concat(r);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},tT.prototype._hmac=function(){return new(tu()).hmac(this.hash,this.K)},tT.prototype._update=function(t){var e=this._hmac().update(this.V).update([0]);t&&(e=e.update(t)),this.K=e.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},tT.prototype.reseed=function(t,e,r,n){"string"!=typeof e&&(n=r,r=e,e=null),t=td.toArray(t,e),r=td.toArray(r,n),th(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(r||[])),this._reseed=1},tT.prototype.generate=function(t,e,r,n){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof e&&(n=r,r=e,e=null),r&&(r=td.toArray(r,n||"hex"),this._update(r));for(var i=[];i.length<t;)this.V=this._hmac().update(this.V).digest(),i=i.concat(this.V);var f=i.slice(0,t);return this._update(r),this._reseed++,td.encode(f,e)};var tR=tp.assert;function tC(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}tC.fromPublic=function(t,e,r){return e instanceof tC?e:new tC(t,{pub:e,pubEnc:r})},tC.fromPrivate=function(t,e,r){return e instanceof tC?e:new tC(t,{priv:e,privEnc:r})},tC.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},tC.prototype.getPublic=function(t,e){return("string"==typeof t&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e)?this.pub.encode(e,t):this.pub},tC.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},tC.prototype._importPrivate=function(t,e){this.priv=new(k())(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},tC.prototype._importPublic=function(t,e){if(t.x||t.y){"mont"===this.ec.curve.type?tR(t.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&tR(t.x&&t.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(t.x,t.y);return}this.pub=this.ec.curve.decodePoint(t,e)},tC.prototype.derive=function(t){return t.validate()||tR(t.validate(),"public point not validated"),t.mul(this.priv).getX()},tC.prototype.sign=function(t,e,r){return this.ec.sign(t,this,e,r)},tC.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},tC.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var tI=tp.assert;function tP(t,e){if(t instanceof tP)return t;this._importDER(t,e)||(tI(t.r&&t.s,"Signature without r or s"),this.r=new(k())(t.r,16),this.s=new(k())(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function tO(){this.place=0}function tx(t,e){var r=t[e.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,f=0,o=e.place;f<n;f++,o++)i<<=8,i|=t[o],i>>>=0;return!(i<=127)&&(e.place=o,i)}function tk(t){for(var e=0,r=t.length-1;!t[e]&&!(128&t[e+1])&&e<r;)e++;return 0===e?t:t.slice(e)}function tF(t,e){if(e<128){t.push(e);return}var r=1+(Math.log(e)/Math.LN2>>>3);for(t.push(128|r);--r;)t.push(e>>>(r<<3)&255);t.push(e)}tP.prototype._importDER=function(t,e){t=tp.toArray(t,e);var r=new tO;if(48!==t[r.place++])return!1;var n=tx(t,r);if(!1===n||n+r.place!==t.length||2!==t[r.place++])return!1;var i=tx(t,r);if(!1===i)return!1;var f=t.slice(r.place,i+r.place);if(r.place+=i,2!==t[r.place++])return!1;var o=tx(t,r);if(!1===o||t.length!==o+r.place)return!1;var a=t.slice(r.place,o+r.place);if(0===f[0]){if(!(128&f[1]))return!1;f=f.slice(1)}if(0===a[0]){if(!(128&a[1]))return!1;a=a.slice(1)}return this.r=new(k())(f),this.s=new(k())(a),this.recoveryParam=null,!0},tP.prototype.toDER=function(t){var e=this.r.toArray(),r=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&r[0]&&(r=[0].concat(r)),e=tk(e),r=tk(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var n=[2];tF(n,e.length),(n=n.concat(e)).push(2),tF(n,r.length);var i=n.concat(r),f=[48];return tF(f,i.length),f=f.concat(i),tp.encode(f,t)};var tB=function(){throw Error("unsupported")},tL=tp.assert;function tD(t){if(!(this instanceof tD))return new tD(t);"string"==typeof t&&(tL(Object.prototype.hasOwnProperty.call(tN,t),"Unknown curve "+t),t=tN[t]),t instanceof tN.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}tD.prototype.keyPair=function(t){return new tC(this,t)},tD.prototype.keyFromPrivate=function(t,e){return tC.fromPrivate(this,t,e)},tD.prototype.keyFromPublic=function(t,e){return tC.fromPublic(this,t,e)},tD.prototype.genKeyPair=function(t){t||(t={});for(var e=new tT({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||tB(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new(k())(2));;){var i=new(k())(e.generate(r));if(!(i.cmp(n)>0))return i.iaddn(1),this.keyFromPrivate(i)}},tD.prototype._truncateToN=function(t,e){var r=8*t.byteLength()-this.n.bitLength();return(r>0&&(t=t.ushrn(r)),!e&&t.cmp(this.n)>=0)?t.sub(this.n):t},tD.prototype.sign=function(t,e,r,n){"object"==typeof r&&(n=r,r=null),n||(n={}),e=this.keyFromPrivate(e,r),t=this._truncateToN(new(k())(t,16));for(var i=this.n.byteLength(),f=e.getPrivate().toArray("be",i),o=t.toArray("be",i),a=new tT({hash:this.hash,entropy:f,nonce:o,pers:n.pers,persEnc:n.persEnc||"utf8"}),s=this.n.sub(new(k())(1)),u=0;;u++){var l=n.k?n.k(u):new(k())(a.generate(this.n.byteLength()));if(!(0>=(l=this._truncateToN(l,!0)).cmpn(1)||l.cmp(s)>=0)){var h=this.g.mul(l);if(!h.isInfinity()){var c=h.getX(),d=c.umod(this.n);if(0!==d.cmpn(0)){var p=l.invm(this.n).mul(d.mul(e.getPrivate()).iadd(t));if(0!==(p=p.umod(this.n)).cmpn(0)){var m=(h.getY().isOdd()?1:0)|(0!==c.cmp(d)?2:0);return n.canonical&&p.cmp(this.nh)>0&&(p=this.n.sub(p),m^=1),new tP({r:d,s:p,recoveryParam:m})}}}}}},tD.prototype.verify=function(t,e,r,n){t=this._truncateToN(new(k())(t,16)),r=this.keyFromPublic(r,n);var i,f=(e=new tP(e,"hex")).r,o=e.s;if(0>f.cmpn(1)||f.cmp(this.n)>=0||0>o.cmpn(1)||o.cmp(this.n)>=0)return!1;var a=o.invm(this.n),s=a.mul(t).umod(this.n),u=a.mul(f).umod(this.n);return this.curve._maxwellTrick?!(i=this.g.jmulAdd(s,r.getPublic(),u)).isInfinity()&&i.eqXToP(f):!(i=this.g.mulAdd(s,r.getPublic(),u)).isInfinity()&&0===i.getX().umod(this.n).cmp(f)},tD.prototype.recoverPubKey=function(t,e,r,n){tL((3&r)===r,"The recovery param is more than two bits"),e=new tP(e,n);var i=this.n,f=new(k())(t),o=e.r,a=e.s,s=1&r,u=r>>1;if(o.cmp(this.curve.p.umod(this.curve.n))>=0&&u)throw Error("Unable to find sencond key candinate");o=u?this.curve.pointFromX(o.add(this.curve.n),s):this.curve.pointFromX(o,s);var l=e.r.invm(i),h=i.sub(f).mul(l).umod(i),c=a.mul(l).umod(i);return this.g.mulAdd(h,o,c)},tD.prototype.getKeyRecoveryParam=function(t,e,r,n){if(null!==(e=new tP(e,n)).recoveryParam)return e.recoveryParam;for(var i,f=0;f<4;f++){try{i=this.recoverPubKey(t,e,f)}catch(t){continue}if(i.eq(r))return f}throw Error("Unable to find valid recovery factor")};var tU=tl(function(t,e){e.version="6.5.4",e.utils=tp,e.rand=function(){throw Error("unsupported")},e.curve=t_,e.curves=tN,e.ec=tD,e.eddsa=null}).ec;let tG=new l("signing-key/5.7.0"),tz=null;function tJ(){return tz||(tz=new tU("secp256k1")),tz}class tj{constructor(t){tt(this,"curve","secp256k1"),tt(this,"privateKey",M(t)),32!==E(this.privateKey)&&tG.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");let e=tJ().keyFromPrivate(b(this.privateKey));tt(this,"publicKey","0x"+e.getPublic(!1,"hex")),tt(this,"compressedPublicKey","0x"+e.getPublic(!0,"hex")),tt(this,"_isSigningKey",!0)}_addPoint(t){let e=tJ().keyFromPublic(b(this.publicKey)),r=tJ().keyFromPublic(b(t));return"0x"+e.pub.add(r.pub).encodeCompressed("hex")}signDigest(t){let e=tJ().keyFromPrivate(b(this.privateKey)),r=b(t);32!==r.length&&tG.throwArgumentError("bad digest length","digest",t);let n=e.sign(r,{canonical:!0});return N({recoveryParam:n.recoveryParam,r:_("0x"+n.r.toString(16),32),s:_("0x"+n.s.toString(16),32)})}computeSharedSecret(t){let e=tJ().keyFromPrivate(b(this.privateKey)),r=tJ().keyFromPublic(b(tH(t)));return _("0x"+e.derive(r.getPublic()).toString(16),32)}static isSigningKey(t){return!!(t&&t._isSigningKey)}}function tH(t,e){let r=b(t);if(32===r.length){let t=new tj(r);return e?"0x"+tJ().keyFromPrivate(r).getPublic(!0,"hex"):t.publicKey}return 33===r.length?e?M(r):"0x"+tJ().keyFromPublic(r).getPublic(!1,"hex"):65===r.length?e?"0x"+tJ().keyFromPublic(r).getPublic(!0,"hex"):M(r):tG.throwArgumentError("invalid public or private key","key","[REDACTED]")}let tV=new l("transactions/5.4.0");function tX(t){return"0x"===t?null:Y(t)}function tq(t){return"0x"===t?Q:U.from(t)}(T=O||(O={}))[T.legacy=0]="legacy",T[T.eip2930=1]="eip2930",T[T.eip1559=2]="eip1559";let tZ=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],tK={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function tW(t){return Y(A(X(A(tH(t),1)),12))}function tY(t,e){return tW(function(t,e){let r=N(e),n={r:b(r.r),s:b(r.s)};return"0x"+tJ().recoverPubKey(b(t),n,r.recoveryParam).encode("hex",!1)}(b(t),e))}function tQ(t,e){let r=y(U.from(t).toHexString());return r.length>32&&tV.throwArgumentError("invalid length for "+e,"transaction:"+e,t),r}function t$(t,e){return{address:Y(t),storageKeys:(e||[]).map((e,r)=>(32!==E(e)&&tV.throwArgumentError("invalid access list storageKey",`accessList[${t}:${r}]`,e),e.toLowerCase()))}}function t0(t){if(Array.isArray(t))return t.map((t,e)=>Array.isArray(t)?(t.length>2&&tV.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${e}]`,t),t$(t[0],t[1])):t$(t.address,t.storageKeys));let e=Object.keys(t).map(e=>{let r=t[e].reduce((t,e)=>(t[e]=!0,t),{});return t$(e,Object.keys(r).sort())});return e.sort((t,e)=>t.address.localeCompare(e.address)),e}function t1(t){return t0(t).map(t=>[t.address,t.storageKeys])}function t6(t,e){if(null!=t.gasPrice){let e=U.from(t.gasPrice),r=U.from(t.maxFeePerGas||0);e.eq(r)||tV.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:e,maxFeePerGas:r})}let r=[tQ(t.chainId||0,"chainId"),tQ(t.nonce||0,"nonce"),tQ(t.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),tQ(t.maxFeePerGas||0,"maxFeePerGas"),tQ(t.gasLimit||0,"gasLimit"),null!=t.to?Y(t.to):"0x",tQ(t.value||0,"value"),t.data||"0x",t1(t.accessList||[])];if(e){let t=N(e);r.push(tQ(t.recoveryParam,"recoveryParam")),r.push(y(t.r)),r.push(y(t.s))}return S(["0x02",ti(r)])}function t5(t,e){let r=[tQ(t.chainId||0,"chainId"),tQ(t.nonce||0,"nonce"),tQ(t.gasPrice||0,"gasPrice"),tQ(t.gasLimit||0,"gasLimit"),null!=t.to?Y(t.to):"0x",tQ(t.value||0,"value"),t.data||"0x",t1(t.accessList||[])];if(e){let t=N(e);r.push(tQ(t.recoveryParam,"recoveryParam")),r.push(y(t.r)),r.push(y(t.s))}return S(["0x01",ti(r)])}function t2(t,e){if(null==t.type||0===t.type)return null!=t.accessList&&tV.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",t),function(t,e){t&&"object"==typeof t||$.throwArgumentError("invalid object","object",t),Object.keys(t).forEach(e=>{tK[e]||$.throwArgumentError("invalid object key - "+e,"transaction:"+e,t)});let r=[];tZ.forEach(function(e){let n=t[e.name]||[],i={};e.numeric&&(i.hexPad="left"),n=b(M(n,i)),e.length&&n.length!==e.length&&n.length>0&&tV.throwArgumentError("invalid length for "+e.name,"transaction:"+e.name,n),e.maxLength&&(n=y(n)).length>e.maxLength&&tV.throwArgumentError("invalid length for "+e.name,"transaction:"+e.name,n),r.push(M(n))});let n=0;if(null!=t.chainId?"number"!=typeof(n=t.chainId)&&tV.throwArgumentError("invalid transaction.chainId","transaction",t):e&&!p(e)&&e.v>28&&(n=Math.floor((e.v-35)/2)),0!==n&&(r.push(M(n)),r.push("0x"),r.push("0x")),!e)return ti(r);let i=N(e),f=27+i.recoveryParam;return 0!==n?(r.pop(),r.pop(),r.pop(),f+=2*n+8,i.v>28&&i.v!==f&&tV.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e)):i.v!==f&&tV.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e),r.push(M(f)),r.push(y(b(i.r))),r.push(y(b(i.s))),ti(r)}(t,e);switch(t.type){case 1:return t5(t,e);case 2:return t6(t,e)}return tV.throwError(`unsupported transaction type: ${t.type}`,l.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:t.type})}function t8(t,e,r){try{let r=tq(e[0]).toNumber();if(0!==r&&1!==r)throw Error("bad recid");t.v=r}catch(t){tV.throwArgumentError("invalid v for transaction type: 1","v",e[0])}t.r=_(e[1],32),t.s=_(e[2],32);try{let e=X(r(t));t.from=tY(e,{r:t.r,s:t.s,recoveryParam:t.v})}catch(t){console.log(t)}}function t3(t){let e=b(t);if(e[0]>127)return function(t){let e=ta(t);9!==e.length&&6!==e.length&&tV.throwArgumentError("invalid raw transaction","rawTransaction",t);let r={nonce:tq(e[0]).toNumber(),gasPrice:tq(e[1]),gasLimit:tq(e[2]),to:tX(e[3]),value:tq(e[4]),data:e[5],chainId:0};if(6===e.length)return r;try{r.v=U.from(e[6]).toNumber()}catch(t){return console.log(t),r}if(r.r=_(e[7],32),r.s=_(e[8],32),U.from(r.r).isZero()&&U.from(r.s).isZero())r.chainId=r.v,r.v=0;else{r.chainId=Math.floor((r.v-35)/2),r.chainId<0&&(r.chainId=0);let n=r.v-27,i=e.slice(0,6);0!==r.chainId&&(i.push(M(r.chainId)),i.push("0x"),i.push("0x"),n-=2*r.chainId+8);let f=X(ti(i));try{r.from=tY(f,{r:M(r.r),s:M(r.s),recoveryParam:n})}catch(t){console.log(t)}r.hash=X(t)}return r.type=null,r}(e);switch(e[0]){case 1:return function(t){let e=ta(t.slice(1));8!==e.length&&11!==e.length&&tV.throwArgumentError("invalid component count for transaction type: 1","payload",M(t));let r={type:1,chainId:tq(e[0]).toNumber(),nonce:tq(e[1]).toNumber(),gasPrice:tq(e[2]),gasLimit:tq(e[3]),to:tX(e[4]),value:tq(e[5]),data:e[6],accessList:t0(e[7])};return 8===e.length||(r.hash=X(t),t8(r,e.slice(8),t5)),r}(e);case 2:return function(t){let e=ta(t.slice(1));9!==e.length&&12!==e.length&&tV.throwArgumentError("invalid component count for transaction type: 2","payload",M(t));let r=tq(e[2]),n=tq(e[3]),i={type:2,chainId:tq(e[0]).toNumber(),nonce:tq(e[1]).toNumber(),maxPriorityFeePerGas:r,maxFeePerGas:n,gasPrice:null,gasLimit:tq(e[4]),to:tX(e[5]),value:tq(e[6]),data:e[7],accessList:t0(e[8])};return 9===e.length||(i.hash=X(t),t8(i,e.slice(9),t6)),i}(e)}return tV.throwError(`unsupported transaction type: ${e[0]}`,l.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:e[0]})}},46676:function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw 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 f(t,e,r){if(f.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"))}"object"==typeof t?t.exports=f:e.BN=f,f.BN=f,f.wordSize=26;try{h="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(83334).Buffer}catch(t){}function o(t,e){var r=t.charCodeAt(e);return r>=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 a(t,e,r){var n=o(t,r);return r-1>=e&&(n|=o(t,r-1)<<4),n}function s(t,e,r,i){for(var f=0,o=0,a=Math.min(t.length,r),s=e;s<a;s++){var u=t.charCodeAt(s)-48;f*=i,o=u>=49?u-49+10:u>=17?u-17+10:u,n(u>=0&&o<i,"Invalid character"),f+=o}return f}function u(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(f.isBN=function(t){return t instanceof f||null!==t&&"object"==typeof t&&t.constructor.wordSize===f.wordSize&&Array.isArray(t.words)},f.max=function(t,e){return t.cmp(e)>0?t:e},f.min=function(t,e){return 0>t.cmp(e)?t:e},f.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);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},f.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)},f.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=Array(this.length);for(var i,f,o=0;o<this.length;o++)this.words[o]=0;var a=0;if("be"===r)for(o=t.length-1,i=0;o>=0;o-=3)f=t[o]|t[o-1]<<8|t[o-2]<<16,this.words[i]|=f<<a&67108863,this.words[i+1]=f>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);else if("le"===r)for(o=0,i=0;o<t.length;o+=3)f=t[o]|t[o+1]<<8|t[o+2]<<16,this.words[i]|=f<<a&67108863,this.words[i+1]=f>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);return this._strip()},f.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=Array(this.length);for(var n,i=0;i<this.length;i++)this.words[i]=0;var f=0,o=0;if("be"===r)for(i=t.length-1;i>=e;i-=2)n=a(t,e,i)<<f,this.words[o]|=67108863&n,f>=18?(f-=18,o+=1,this.words[o]|=n>>>26):f+=8;else for(i=(t.length-e)%2==0?e+1:e;i<t.length;i+=2)n=a(t,e,i)<<f,this.words[o]|=67108863&n,f>=18?(f-=18,o+=1,this.words[o]|=n>>>26):f+=8;this._strip()},f.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 f=t.length-r,o=f%n,a=Math.min(f,f-o)+r,u=0,l=r;l<a;l+=n)u=s(t,l,l+n,e),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==o){var h=1;for(u=s(t,l,t.length,e),l=0;l<o;l++)h*=e;this.imuln(h),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this._strip()},f.prototype.copy=function(t){t.words=Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},f.prototype._move=function(t){u(t,this)},f.prototype.clone=function(){var t=new f(null);return this.copy(t),t},f.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},f.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},f.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{f.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(t){f.prototype.inspect=l}else f.prototype.inspect=l;function l(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var h,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"],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];function m(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],f=0|e.words[0],o=i*f,a=67108863&o,s=o/67108864|0;r.words[0]=a;for(var u=1;u<n;u++){for(var l=s>>>26,h=67108863&s,c=Math.min(u,e.length-1),d=Math.max(0,u-t.length+1);d<=c;d++){var p=u-d|0;l+=(o=(i=0|t.words[p])*(f=0|e.words[d])+h)/67108864|0,h=67108863&o}r.words[u]=0|h,s=0|l}return 0!==s?r.words[u]=0|s:r.length--,r._strip()}f.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var r,i=0,f=0,o=0;o<this.length;o++){var a=this.words[o],s=((a<<i|f)&16777215).toString(16);f=a>>>24-i&16777215,(i+=2)>=26&&(i-=26,o--),r=0!==f||o!==this.length-1?c[6-s.length]+s+r:s+r}for(0!==f&&(r=f.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var u=d[t],l=p[t];r="";var h=this.clone();for(h.negative=0;!h.isZero();){var m=h.modrn(l).toString(t);r=(h=h.idivn(l)).isZero()?m+r:c[u-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},f.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},f.prototype.toJSON=function(){return this.toString(16,2)},h&&(f.prototype.toBuffer=function(t,e){return this.toArrayLike(h,t,e)}),f.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},f.prototype.toArrayLike=function(t,e,r){this._strip();var i=this.byteLength(),f=r||Math.max(1,i);n(i<=f,"byte array longer than desired length"),n(f>0,"Requested array length <= 0");var o=t.allocUnsafe?t.allocUnsafe(f):new t(f);return this["_toArrayLike"+("le"===e?"LE":"BE")](o,i),o},f.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,i=0,f=0;i<this.length;i++){var o=this.words[i]<<f|n;t[r++]=255&o,r<t.length&&(t[r++]=o>>8&255),r<t.length&&(t[r++]=o>>16&255),6===f?(r<t.length&&(t[r++]=o>>24&255),n=0,f=0):(n=o>>>24,f+=2)}if(r<t.length)for(t[r++]=n;r<t.length;)t[r++]=0},f.prototype._toArrayLikeBE=function(t,e){for(var r=t.length-1,n=0,i=0,f=0;i<this.length;i++){var o=this.words[i]<<f|n;t[r--]=255&o,r>=0&&(t[r--]=o>>8&255),r>=0&&(t[r--]=o>>16&255),6===f?(r>=0&&(t[r--]=o>>24&255),n=0,f=0):(n=o>>>24,f+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?f.prototype._countBits=function(t){return 32-Math.clz32(t)}:f.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},f.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return(8191&e)==0&&(r+=13,e>>>=13),(127&e)==0&&(r+=7,e>>>=7),(15&e)==0&&(r+=4,e>>>=4),(3&e)==0&&(r+=2,e>>>=2),(1&e)==0&&r++,r},f.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return(this.length-1)*26+e},f.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},f.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},f.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},f.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},f.prototype.isNeg=function(){return 0!==this.negative},f.prototype.neg=function(){return this.clone().ineg()},f.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},f.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},f.prototype.ior=function(t){return n((this.negative|t.negative)==0),this.iuor(t)},f.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},f.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},f.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this._strip()},f.prototype.iand=function(t){return n((this.negative|t.negative)==0),this.iuand(t)},f.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},f.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},f.prototype.iuxor=function(t){this.length>t.length?(e=this,r=t):(e=t,r=this);for(var e,r,n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this._strip()},f.prototype.ixor=function(t){return n((this.negative|t.negative)==0),this.iuxor(t)},f.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},f.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},f.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;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},f.prototype.notn=function(t){return this.clone().inotn(t)},f.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),e?this.words[r]=this.words[r]|1<<i:this.words[r]=this.words[r]&~(1<<i),this._strip()},f.prototype.iadd=function(t){if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var e,r,n,i=0,f=0;f<n.length;f++)e=(0|r.words[f])+(0|n.words[f])+i,this.words[f]=67108863&e,i=e>>>26;for(;0!==i&&f<r.length;f++)e=(0|r.words[f])+i,this.words[f]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;f<r.length;f++)this.words[f]=r.words[f];return this},f.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},f.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e,r,n=this.iadd(t);return t.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(e=this,r=t):(e=t,r=this);for(var f=0,o=0;o<r.length;o++)f=(n=(0|e.words[o])-(0|r.words[o])+f)>>26,this.words[o]=67108863&n;for(;0!==f&&o<e.length;o++)f=(n=(0|e.words[o])+f)>>26,this.words[o]=67108863&n;if(0===f&&o<e.length&&e!==this)for(;o<e.length;o++)this.words[o]=e.words[o];return this.length=Math.max(this.length,o),e!==this&&(this.negative=1),this._strip()},f.prototype.sub=function(t){return this.clone().isub(t)};var g=function(t,e,r){var n,i,f,o=t.words,a=e.words,s=r.words,u=0,l=0|o[0],h=8191&l,c=l>>>13,d=0|o[1],p=8191&d,m=d>>>13,g=0|o[2],b=8191&g,y=g>>>13,v=0|o[3],w=8191&v,M=v>>>13,E=0|o[4],A=8191&E,S=E>>>13,_=0|o[5],N=8191&_,T=_>>>13,R=0|o[6],C=8191&R,I=R>>>13,P=0|o[7],O=8191&P,x=P>>>13,k=0|o[8],F=8191&k,B=k>>>13,L=0|o[9],D=8191&L,U=L>>>13,G=0|a[0],z=8191&G,J=G>>>13,j=0|a[1],H=8191&j,V=j>>>13,X=0|a[2],q=8191&X,Z=X>>>13,K=0|a[3],W=8191&K,Y=K>>>13,Q=0|a[4],$=8191&Q,tt=Q>>>13,te=0|a[5],tr=8191&te,tn=te>>>13,ti=0|a[6],tf=8191&ti,to=ti>>>13,ta=0|a[7],ts=8191&ta,tu=ta>>>13,tl=0|a[8],th=8191&tl,tc=tl>>>13,td=0|a[9],tp=8191&td,tm=td>>>13;r.negative=t.negative^e.negative,r.length=19;var tg=(u+(n=Math.imul(h,z))|0)+((8191&(i=(i=Math.imul(h,J))+Math.imul(c,z)|0))<<13)|0;u=((f=Math.imul(c,J))+(i>>>13)|0)+(tg>>>26)|0,tg&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,J))+Math.imul(m,z)|0,f=Math.imul(m,J);var tb=(u+(n=n+Math.imul(h,H)|0)|0)+((8191&(i=(i=i+Math.imul(h,V)|0)+Math.imul(c,H)|0))<<13)|0;u=((f=f+Math.imul(c,V)|0)+(i>>>13)|0)+(tb>>>26)|0,tb&=67108863,n=Math.imul(b,z),i=(i=Math.imul(b,J))+Math.imul(y,z)|0,f=Math.imul(y,J),n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,H)|0,f=f+Math.imul(m,V)|0;var ty=(u+(n=n+Math.imul(h,q)|0)|0)+((8191&(i=(i=i+Math.imul(h,Z)|0)+Math.imul(c,q)|0))<<13)|0;u=((f=f+Math.imul(c,Z)|0)+(i>>>13)|0)+(ty>>>26)|0,ty&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,J))+Math.imul(M,z)|0,f=Math.imul(M,J),n=n+Math.imul(b,H)|0,i=(i=i+Math.imul(b,V)|0)+Math.imul(y,H)|0,f=f+Math.imul(y,V)|0,n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,q)|0,f=f+Math.imul(m,Z)|0;var tv=(u+(n=n+Math.imul(h,W)|0)|0)+((8191&(i=(i=i+Math.imul(h,Y)|0)+Math.imul(c,W)|0))<<13)|0;u=((f=f+Math.imul(c,Y)|0)+(i>>>13)|0)+(tv>>>26)|0,tv&=67108863,n=Math.imul(A,z),i=(i=Math.imul(A,J))+Math.imul(S,z)|0,f=Math.imul(S,J),n=n+Math.imul(w,H)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(M,H)|0,f=f+Math.imul(M,V)|0,n=n+Math.imul(b,q)|0,i=(i=i+Math.imul(b,Z)|0)+Math.imul(y,q)|0,f=f+Math.imul(y,Z)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,W)|0,f=f+Math.imul(m,Y)|0;var tw=(u+(n=n+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(c,$)|0))<<13)|0;u=((f=f+Math.imul(c,tt)|0)+(i>>>13)|0)+(tw>>>26)|0,tw&=67108863,n=Math.imul(N,z),i=(i=Math.imul(N,J))+Math.imul(T,z)|0,f=Math.imul(T,J),n=n+Math.imul(A,H)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(S,H)|0,f=f+Math.imul(S,V)|0,n=n+Math.imul(w,q)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(M,q)|0,f=f+Math.imul(M,Z)|0,n=n+Math.imul(b,W)|0,i=(i=i+Math.imul(b,Y)|0)+Math.imul(y,W)|0,f=f+Math.imul(y,Y)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,$)|0,f=f+Math.imul(m,tt)|0;var tM=(u+(n=n+Math.imul(h,tr)|0)|0)+((8191&(i=(i=i+Math.imul(h,tn)|0)+Math.imul(c,tr)|0))<<13)|0;u=((f=f+Math.imul(c,tn)|0)+(i>>>13)|0)+(tM>>>26)|0,tM&=67108863,n=Math.imul(C,z),i=(i=Math.imul(C,J))+Math.imul(I,z)|0,f=Math.imul(I,J),n=n+Math.imul(N,H)|0,i=(i=i+Math.imul(N,V)|0)+Math.imul(T,H)|0,f=f+Math.imul(T,V)|0,n=n+Math.imul(A,q)|0,i=(i=i+Math.imul(A,Z)|0)+Math.imul(S,q)|0,f=f+Math.imul(S,Z)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(M,W)|0,f=f+Math.imul(M,Y)|0,n=n+Math.imul(b,$)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(y,$)|0,f=f+Math.imul(y,tt)|0,n=n+Math.imul(p,tr)|0,i=(i=i+Math.imul(p,tn)|0)+Math.imul(m,tr)|0,f=f+Math.imul(m,tn)|0;var tE=(u+(n=n+Math.imul(h,tf)|0)|0)+((8191&(i=(i=i+Math.imul(h,to)|0)+Math.imul(c,tf)|0))<<13)|0;u=((f=f+Math.imul(c,to)|0)+(i>>>13)|0)+(tE>>>26)|0,tE&=67108863,n=Math.imul(O,z),i=(i=Math.imul(O,J))+Math.imul(x,z)|0,f=Math.imul(x,J),n=n+Math.imul(C,H)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(I,H)|0,f=f+Math.imul(I,V)|0,n=n+Math.imul(N,q)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(T,q)|0,f=f+Math.imul(T,Z)|0,n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(S,W)|0,f=f+Math.imul(S,Y)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(M,$)|0,f=f+Math.imul(M,tt)|0,n=n+Math.imul(b,tr)|0,i=(i=i+Math.imul(b,tn)|0)+Math.imul(y,tr)|0,f=f+Math.imul(y,tn)|0,n=n+Math.imul(p,tf)|0,i=(i=i+Math.imul(p,to)|0)+Math.imul(m,tf)|0,f=f+Math.imul(m,to)|0;var tA=(u+(n=n+Math.imul(h,ts)|0)|0)+((8191&(i=(i=i+Math.imul(h,tu)|0)+Math.imul(c,ts)|0))<<13)|0;u=((f=f+Math.imul(c,tu)|0)+(i>>>13)|0)+(tA>>>26)|0,tA&=67108863,n=Math.imul(F,z),i=(i=Math.imul(F,J))+Math.imul(B,z)|0,f=Math.imul(B,J),n=n+Math.imul(O,H)|0,i=(i=i+Math.imul(O,V)|0)+Math.imul(x,H)|0,f=f+Math.imul(x,V)|0,n=n+Math.imul(C,q)|0,i=(i=i+Math.imul(C,Z)|0)+Math.imul(I,q)|0,f=f+Math.imul(I,Z)|0,n=n+Math.imul(N,W)|0,i=(i=i+Math.imul(N,Y)|0)+Math.imul(T,W)|0,f=f+Math.imul(T,Y)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(S,$)|0,f=f+Math.imul(S,tt)|0,n=n+Math.imul(w,tr)|0,i=(i=i+Math.imul(w,tn)|0)+Math.imul(M,tr)|0,f=f+Math.imul(M,tn)|0,n=n+Math.imul(b,tf)|0,i=(i=i+Math.imul(b,to)|0)+Math.imul(y,tf)|0,f=f+Math.imul(y,to)|0,n=n+Math.imul(p,ts)|0,i=(i=i+Math.imul(p,tu)|0)+Math.imul(m,ts)|0,f=f+Math.imul(m,tu)|0;var tS=(u+(n=n+Math.imul(h,th)|0)|0)+((8191&(i=(i=i+Math.imul(h,tc)|0)+Math.imul(c,th)|0))<<13)|0;u=((f=f+Math.imul(c,tc)|0)+(i>>>13)|0)+(tS>>>26)|0,tS&=67108863,n=Math.imul(D,z),i=(i=Math.imul(D,J))+Math.imul(U,z)|0,f=Math.imul(U,J),n=n+Math.imul(F,H)|0,i=(i=i+Math.imul(F,V)|0)+Math.imul(B,H)|0,f=f+Math.imul(B,V)|0,n=n+Math.imul(O,q)|0,i=(i=i+Math.imul(O,Z)|0)+Math.imul(x,q)|0,f=f+Math.imul(x,Z)|0,n=n+Math.imul(C,W)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(I,W)|0,f=f+Math.imul(I,Y)|0,n=n+Math.imul(N,$)|0,i=(i=i+Math.imul(N,tt)|0)+Math.imul(T,$)|0,f=f+Math.imul(T,tt)|0,n=n+Math.imul(A,tr)|0,i=(i=i+Math.imul(A,tn)|0)+Math.imul(S,tr)|0,f=f+Math.imul(S,tn)|0,n=n+Math.imul(w,tf)|0,i=(i=i+Math.imul(w,to)|0)+Math.imul(M,tf)|0,f=f+Math.imul(M,to)|0,n=n+Math.imul(b,ts)|0,i=(i=i+Math.imul(b,tu)|0)+Math.imul(y,ts)|0,f=f+Math.imul(y,tu)|0,n=n+Math.imul(p,th)|0,i=(i=i+Math.imul(p,tc)|0)+Math.imul(m,th)|0,f=f+Math.imul(m,tc)|0;var t_=(u+(n=n+Math.imul(h,tp)|0)|0)+((8191&(i=(i=i+Math.imul(h,tm)|0)+Math.imul(c,tp)|0))<<13)|0;u=((f=f+Math.imul(c,tm)|0)+(i>>>13)|0)+(t_>>>26)|0,t_&=67108863,n=Math.imul(D,H),i=(i=Math.imul(D,V))+Math.imul(U,H)|0,f=Math.imul(U,V),n=n+Math.imul(F,q)|0,i=(i=i+Math.imul(F,Z)|0)+Math.imul(B,q)|0,f=f+Math.imul(B,Z)|0,n=n+Math.imul(O,W)|0,i=(i=i+Math.imul(O,Y)|0)+Math.imul(x,W)|0,f=f+Math.imul(x,Y)|0,n=n+Math.imul(C,$)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(I,$)|0,f=f+Math.imul(I,tt)|0,n=n+Math.imul(N,tr)|0,i=(i=i+Math.imul(N,tn)|0)+Math.imul(T,tr)|0,f=f+Math.imul(T,tn)|0,n=n+Math.imul(A,tf)|0,i=(i=i+Math.imul(A,to)|0)+Math.imul(S,tf)|0,f=f+Math.imul(S,to)|0,n=n+Math.imul(w,ts)|0,i=(i=i+Math.imul(w,tu)|0)+Math.imul(M,ts)|0,f=f+Math.imul(M,tu)|0,n=n+Math.imul(b,th)|0,i=(i=i+Math.imul(b,tc)|0)+Math.imul(y,th)|0,f=f+Math.imul(y,tc)|0;var tN=(u+(n=n+Math.imul(p,tp)|0)|0)+((8191&(i=(i=i+Math.imul(p,tm)|0)+Math.imul(m,tp)|0))<<13)|0;u=((f=f+Math.imul(m,tm)|0)+(i>>>13)|0)+(tN>>>26)|0,tN&=67108863,n=Math.imul(D,q),i=(i=Math.imul(D,Z))+Math.imul(U,q)|0,f=Math.imul(U,Z),n=n+Math.imul(F,W)|0,i=(i=i+Math.imul(F,Y)|0)+Math.imul(B,W)|0,f=f+Math.imul(B,Y)|0,n=n+Math.imul(O,$)|0,i=(i=i+Math.imul(O,tt)|0)+Math.imul(x,$)|0,f=f+Math.imul(x,tt)|0,n=n+Math.imul(C,tr)|0,i=(i=i+Math.imul(C,tn)|0)+Math.imul(I,tr)|0,f=f+Math.imul(I,tn)|0,n=n+Math.imul(N,tf)|0,i=(i=i+Math.imul(N,to)|0)+Math.imul(T,tf)|0,f=f+Math.imul(T,to)|0,n=n+Math.imul(A,ts)|0,i=(i=i+Math.imul(A,tu)|0)+Math.imul(S,ts)|0,f=f+Math.imul(S,tu)|0,n=n+Math.imul(w,th)|0,i=(i=i+Math.imul(w,tc)|0)+Math.imul(M,th)|0,f=f+Math.imul(M,tc)|0;var tT=(u+(n=n+Math.imul(b,tp)|0)|0)+((8191&(i=(i=i+Math.imul(b,tm)|0)+Math.imul(y,tp)|0))<<13)|0;u=((f=f+Math.imul(y,tm)|0)+(i>>>13)|0)+(tT>>>26)|0,tT&=67108863,n=Math.imul(D,W),i=(i=Math.imul(D,Y))+Math.imul(U,W)|0,f=Math.imul(U,Y),n=n+Math.imul(F,$)|0,i=(i=i+Math.imul(F,tt)|0)+Math.imul(B,$)|0,f=f+Math.imul(B,tt)|0,n=n+Math.imul(O,tr)|0,i=(i=i+Math.imul(O,tn)|0)+Math.imul(x,tr)|0,f=f+Math.imul(x,tn)|0,n=n+Math.imul(C,tf)|0,i=(i=i+Math.imul(C,to)|0)+Math.imul(I,tf)|0,f=f+Math.imul(I,to)|0,n=n+Math.imul(N,ts)|0,i=(i=i+Math.imul(N,tu)|0)+Math.imul(T,ts)|0,f=f+Math.imul(T,tu)|0,n=n+Math.imul(A,th)|0,i=(i=i+Math.imul(A,tc)|0)+Math.imul(S,th)|0,f=f+Math.imul(S,tc)|0;var tR=(u+(n=n+Math.imul(w,tp)|0)|0)+((8191&(i=(i=i+Math.imul(w,tm)|0)+Math.imul(M,tp)|0))<<13)|0;u=((f=f+Math.imul(M,tm)|0)+(i>>>13)|0)+(tR>>>26)|0,tR&=67108863,n=Math.imul(D,$),i=(i=Math.imul(D,tt))+Math.imul(U,$)|0,f=Math.imul(U,tt),n=n+Math.imul(F,tr)|0,i=(i=i+Math.imul(F,tn)|0)+Math.imul(B,tr)|0,f=f+Math.imul(B,tn)|0,n=n+Math.imul(O,tf)|0,i=(i=i+Math.imul(O,to)|0)+Math.imul(x,tf)|0,f=f+Math.imul(x,to)|0,n=n+Math.imul(C,ts)|0,i=(i=i+Math.imul(C,tu)|0)+Math.imul(I,ts)|0,f=f+Math.imul(I,tu)|0,n=n+Math.imul(N,th)|0,i=(i=i+Math.imul(N,tc)|0)+Math.imul(T,th)|0,f=f+Math.imul(T,tc)|0;var tC=(u+(n=n+Math.imul(A,tp)|0)|0)+((8191&(i=(i=i+Math.imul(A,tm)|0)+Math.imul(S,tp)|0))<<13)|0;u=((f=f+Math.imul(S,tm)|0)+(i>>>13)|0)+(tC>>>26)|0,tC&=67108863,n=Math.imul(D,tr),i=(i=Math.imul(D,tn))+Math.imul(U,tr)|0,f=Math.imul(U,tn),n=n+Math.imul(F,tf)|0,i=(i=i+Math.imul(F,to)|0)+Math.imul(B,tf)|0,f=f+Math.imul(B,to)|0,n=n+Math.imul(O,ts)|0,i=(i=i+Math.imul(O,tu)|0)+Math.imul(x,ts)|0,f=f+Math.imul(x,tu)|0,n=n+Math.imul(C,th)|0,i=(i=i+Math.imul(C,tc)|0)+Math.imul(I,th)|0,f=f+Math.imul(I,tc)|0;var tI=(u+(n=n+Math.imul(N,tp)|0)|0)+((8191&(i=(i=i+Math.imul(N,tm)|0)+Math.imul(T,tp)|0))<<13)|0;u=((f=f+Math.imul(T,tm)|0)+(i>>>13)|0)+(tI>>>26)|0,tI&=67108863,n=Math.imul(D,tf),i=(i=Math.imul(D,to))+Math.imul(U,tf)|0,f=Math.imul(U,to),n=n+Math.imul(F,ts)|0,i=(i=i+Math.imul(F,tu)|0)+Math.imul(B,ts)|0,f=f+Math.imul(B,tu)|0,n=n+Math.imul(O,th)|0,i=(i=i+Math.imul(O,tc)|0)+Math.imul(x,th)|0,f=f+Math.imul(x,tc)|0;var tP=(u+(n=n+Math.imul(C,tp)|0)|0)+((8191&(i=(i=i+Math.imul(C,tm)|0)+Math.imul(I,tp)|0))<<13)|0;u=((f=f+Math.imul(I,tm)|0)+(i>>>13)|0)+(tP>>>26)|0,tP&=67108863,n=Math.imul(D,ts),i=(i=Math.imul(D,tu))+Math.imul(U,ts)|0,f=Math.imul(U,tu),n=n+Math.imul(F,th)|0,i=(i=i+Math.imul(F,tc)|0)+Math.imul(B,th)|0,f=f+Math.imul(B,tc)|0;var tO=(u+(n=n+Math.imul(O,tp)|0)|0)+((8191&(i=(i=i+Math.imul(O,tm)|0)+Math.imul(x,tp)|0))<<13)|0;u=((f=f+Math.imul(x,tm)|0)+(i>>>13)|0)+(tO>>>26)|0,tO&=67108863,n=Math.imul(D,th),i=(i=Math.imul(D,tc))+Math.imul(U,th)|0,f=Math.imul(U,tc);var tx=(u+(n=n+Math.imul(F,tp)|0)|0)+((8191&(i=(i=i+Math.imul(F,tm)|0)+Math.imul(B,tp)|0))<<13)|0;u=((f=f+Math.imul(B,tm)|0)+(i>>>13)|0)+(tx>>>26)|0,tx&=67108863;var tk=(u+(n=Math.imul(D,tp))|0)+((8191&(i=(i=Math.imul(D,tm))+Math.imul(U,tp)|0))<<13)|0;return u=((f=Math.imul(U,tm))+(i>>>13)|0)+(tk>>>26)|0,tk&=67108863,s[0]=tg,s[1]=tb,s[2]=ty,s[3]=tv,s[4]=tw,s[5]=tM,s[6]=tE,s[7]=tA,s[8]=tS,s[9]=t_,s[10]=tN,s[11]=tT,s[12]=tR,s[13]=tC,s[14]=tI,s[15]=tP,s[16]=tO,s[17]=tx,s[18]=tk,0!==u&&(s[19]=u,r.length++),r};function b(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,f=0;f<r.length-1;f++){var o=i;i=0;for(var a=67108863&n,s=Math.min(f,e.length-1),u=Math.max(0,f-t.length+1);u<=s;u++){var l=f-u,h=(0|t.words[l])*(0|e.words[u]),c=67108863&h;o=o+(h/67108864|0)|0,a=67108863&(c=c+a|0),i+=(o=o+(c>>>26)|0)>>>26,o&=67108863}r.words[f]=a,n=o,o=i}return 0!==n?r.words[f]=n:r.length--,r._strip()}function y(t,e){this.x=t,this.y=e}Math.imul||(g=m),f.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return 10===this.length&&10===t.length?g(this,t,e):n<63?m(this,t,e):b(this,t,e)},y.prototype.makeRBT=function(t){for(var e=Array(t),r=f.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},y.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},y.prototype.permute=function(t,e,r,n,i,f){for(var o=0;o<f;o++)n[o]=e[t[o]],i[o]=r[t[o]]},y.prototype.transform=function(t,e,r,n,i,f){this.permute(f,t,e,r,n,i);for(var o=1;o<i;o<<=1)for(var a=o<<1,s=Math.cos(2*Math.PI/a),u=Math.sin(2*Math.PI/a),l=0;l<i;l+=a)for(var h=s,c=u,d=0;d<o;d++){var p=r[l+d],m=n[l+d],g=r[l+d+o],b=n[l+d+o],y=h*g-c*b;b=h*b+c*g,g=y,r[l+d]=p+g,n[l+d]=m+b,r[l+d+o]=p-g,n[l+d+o]=m-b,d!==a&&(y=s*h-u*c,c=s*c+u*h,h=y)}},y.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},y.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},y.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},y.prototype.convert13b=function(t,e,r,i){for(var f=0,o=0;o<e;o++)f+=0|t[o],r[2*o]=8191&f,f>>>=13,r[2*o+1]=8191&f,f>>>=13;for(o=2*e;o<i;++o)r[o]=0;n(0===f),n((-8192&f)==0)},y.prototype.stub=function(t){for(var e=Array(t),r=0;r<t;r++)e[r]=0;return e},y.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),f=this.stub(n),o=Array(n),a=Array(n),s=Array(n),u=Array(n),l=Array(n),h=Array(n),c=r.words;c.length=n,this.convert13b(t.words,t.length,o,n),this.convert13b(e.words,e.length,u,n),this.transform(o,f,a,s,n,i),this.transform(u,f,l,h,n,i);for(var d=0;d<n;d++){var p=a[d]*l[d]-s[d]*h[d];s[d]=a[d]*h[d]+s[d]*l[d],a[d]=p}return this.conjugate(a,s,n),this.transform(a,s,c,f,n,i),this.conjugate(c,f,n),this.normalize13b(c,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r._strip()},f.prototype.mul=function(t){var e=new f(null);return e.words=Array(this.length+t.length),this.mulTo(t,e)},f.prototype.mulf=function(t){var e=new f(null);return e.words=Array(this.length+t.length),b(this,t,e)},f.prototype.imul=function(t){return this.clone().mulTo(t,this)},f.prototype.imuln=function(t){var e=t<0;e&&(t=-t),n("number"==typeof t),n(t<67108864);for(var r=0,i=0;i<this.length;i++){var f=(0|this.words[i])*t,o=(67108863&f)+(67108863&r);r>>=26,r+=(f/67108864|0)+(o>>>26),this.words[i]=67108863&o}return 0!==r&&(this.words[i]=r,this.length++),e?this.ineg():this},f.prototype.muln=function(t){return this.clone().imuln(t)},f.prototype.sqr=function(){return this.mul(this)},f.prototype.isqr=function(){return this.imul(this.clone())},f.prototype.pow=function(t){var e=function(t){for(var e=Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=t.words[n]>>>i&1}return e}(t);if(0===e.length)return new f(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},f.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,f=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(e=0;e<this.length;e++){var a=this.words[e]&f,s=(0|this.words[e])-a<<r;this.words[e]=s|o,o=a>>>26-r}o&&(this.words[e]=o,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this._strip()},f.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},f.prototype.iushrn=function(t,e,r){n("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var i,f=t%26,o=Math.min((t-f)/26,this.length),a=67108863^67108863>>>f<<f;if(i-=o,i=Math.max(0,i),r){for(var s=0;s<o;s++)r.words[s]=this.words[s];r.length=o}if(0===o);else if(this.length>o)for(this.length-=o,s=0;s<this.length;s++)this.words[s]=this.words[s+o];else this.words[0]=0,this.length=1;var u=0;for(s=this.length-1;s>=0&&(0!==u||s>=i);s--){var l=0|this.words[s];this.words[s]=u<<26-f|l>>>f,u=l&a}return r&&0!==u&&(r.words[r.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},f.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},f.prototype.shln=function(t){return this.clone().ishln(t)},f.prototype.ushln=function(t){return this.clone().iushln(t)},f.prototype.shrn=function(t){return this.clone().ishrn(t)},f.prototype.ushrn=function(t){return this.clone().iushrn(t)},f.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;return!(this.length<=r)&&!!(this.words[r]&1<<e)},f.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;return(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)?this:(0!==e&&r++,this.length=Math.min(r,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<<e),this._strip())},f.prototype.maskn=function(t){return this.clone().imaskn(t)},f.prototype.iaddn=function(t){return(n("number"==typeof t),n(t<67108864),t<0)?this.isubn(-t):0!==this.negative?(1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(t),this.negative=1),this):this._iaddn(t)},f.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[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},f.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<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},f.prototype.addn=function(t){return this.clone().iaddn(t)},f.prototype.subn=function(t){return this.clone().isubn(t)},f.prototype.iabs=function(){return this.negative=0,this},f.prototype.abs=function(){return this.clone().iabs()},f.prototype._ishlnsubmul=function(t,e,r){var i,f,o=t.length+r;this._expand(o);var a=0;for(i=0;i<t.length;i++){f=(0|this.words[i+r])+a;var s=(0|t.words[i])*e;f-=67108863&s,a=(f>>26)-(s/67108864|0),this.words[i+r]=67108863&f}for(;i<this.length-r;i++)a=(f=(0|this.words[i+r])+a)>>26,this.words[i+r]=67108863&f;if(0===a)return this._strip();for(n(-1===a),a=0,i=0;i<this.length;i++)a=(f=-(0|this.words[i])+a)>>26,this.words[i]=67108863&f;return this.negative=1,this._strip()},f.prototype._wordDiv=function(t,e){var r,n=this.length-t.length,i=this.clone(),o=t,a=0|o.words[o.length-1];0!=(n=26-this._countBits(a))&&(o=o.ushln(n),i.iushln(n),a=0|o.words[o.length-1]);var s=i.length-o.length;if("mod"!==e){(r=new f(null)).length=s+1,r.words=Array(r.length);for(var u=0;u<r.length;u++)r.words[u]=0}var l=i.clone()._ishlnsubmul(o,1,s);0===l.negative&&(i=l,r&&(r.words[s]=1));for(var h=s-1;h>=0;h--){var c=(0|i.words[o.length+h])*67108864+(0|i.words[o.length+h-1]);for(c=Math.min(c/a|0,67108863),i._ishlnsubmul(o,c,h);0!==i.negative;)c--,i.negative=0,i._ishlnsubmul(o,1,h),i.isZero()||(i.negative^=1);r&&(r.words[h]=c)}return r&&r._strip(),i._strip(),"div"!==e&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},f.prototype.divmod=function(t,e,r){var i,o,a;return(n(!t.isZero()),this.isZero())?{div:new f(0),mod:new f(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:i,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):(this.negative&t.negative)!=0?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||0>this.cmp(t)?{div:new f(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new f(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new f(this.modrn(t.words[0]))}:this._wordDiv(t,e)},f.prototype.div=function(t){return this.divmod(t,"div",!1).div},f.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},f.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},f.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),f=r.cmp(n);return f<0||1===i&&0===f?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},f.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=67108864%t,i=0,f=this.length-1;f>=0;f--)i=(r*i+(0|this.words[f]))%t;return e?-i:i},f.prototype.modn=function(t){return this.modrn(t)},f.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 f=(0|this.words[i])+67108864*r;this.words[i]=f/t|0,r=f%t}return this._strip(),e?this.ineg():this},f.prototype.divn=function(t){return this.clone().idivn(t)},f.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();for(var i=new f(1),o=new f(0),a=new f(0),s=new f(1),u=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++u;for(var l=r.clone(),h=e.clone();!e.isZero();){for(var c=0,d=1;(e.words[0]&d)==0&&c<26;++c,d<<=1);if(c>0)for(e.iushrn(c);c-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(l),o.isub(h)),i.iushrn(1),o.iushrn(1);for(var p=0,m=1;(r.words[0]&m)==0&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||s.isOdd())&&(a.iadd(l),s.isub(h)),a.iushrn(1),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(a),o.isub(s)):(r.isub(e),a.isub(i),s.isub(o))}return{a:a,b:s,gcd:r.iushln(u)}},f.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e,r=this,i=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var o=new f(1),a=new f(0),s=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var u=0,l=1;(r.words[0]&l)==0&&u<26;++u,l<<=1);if(u>0)for(r.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);for(var h=0,c=1;(i.words[0]&c)==0&&h<26;++h,c<<=1);if(h>0)for(i.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);r.cmp(i)>=0?(r.isub(i),o.isub(a)):(i.isub(r),a.isub(o))}return 0>(e=0===r.cmpn(1)?o:a).cmpn(0)&&e.iadd(t),e},f.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);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var f=e;e=r,r=f}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},f.prototype.invm=function(t){return this.egcd(t).a.umod(t)},f.prototype.isEven=function(){return(1&this.words[0])==0},f.prototype.isOdd=function(){return(1&this.words[0])==1},f.prototype.andln=function(t){return this.words[0]&t},f.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var f=i,o=r;0!==f&&o<this.length;o++){var a=0|this.words[o];a+=f,f=a>>>26,a&=67108863,this.words[o]=a}return 0!==f&&(this.words[o]=f,this.length++),this},f.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},f.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:i<t?-1:1}return 0!==this.negative?0|-e:e},f.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return -1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},f.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return -1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},f.prototype.gtn=function(t){return 1===this.cmpn(t)},f.prototype.gt=function(t){return 1===this.cmp(t)},f.prototype.gten=function(t){return this.cmpn(t)>=0},f.prototype.gte=function(t){return this.cmp(t)>=0},f.prototype.ltn=function(t){return -1===this.cmpn(t)},f.prototype.lt=function(t){return -1===this.cmp(t)},f.prototype.lten=function(t){return 0>=this.cmpn(t)},f.prototype.lte=function(t){return 0>=this.cmp(t)},f.prototype.eqn=function(t){return 0===this.cmpn(t)},f.prototype.eq=function(t){return 0===this.cmp(t)},f.red=function(t){return new _(t)},f.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)},f.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},f.prototype._forceRed=function(t){return this.red=t,this},f.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},f.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},f.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},f.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},f.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},f.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},f.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},f.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},f.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},f.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},f.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},f.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},f.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},f.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new f(e,16),this.n=this.p.bitLength(),this.k=new f(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 E(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(t){if("string"==typeof t){var e=f._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 N(t){_.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new f(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 f(null);return t.words=Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,r=t;do this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?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=Math.min(t.length,9),n=0;n<r;n++)e.words[n]=t.words[n];if(e.length=r,t.length<=9){t.words[0]=0,t.length=1;return}var i=t.words[9];for(n=10,e.words[e.length++]=4194303&i;n<t.length;n++){var f=0|t.words[n];t.words[n-10]=(4194303&f)<<4|i>>>22,i=f}i>>>=22,t.words[n-10]=i,0===i&&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<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(E,w),i(A,w),i(S,w),S.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=(0|t.words[r])*19+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},f._prime=function(t){var e;if(v[t])return v[t];if("k256"===t)e=new M;else if("p224"===t)e=new E;else if("p192"===t)e=new A;else if("p25519"===t)e=new S;else throw Error("Unknown prime "+t);return v[t]=e,e},_.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},_.prototype._verify2=function(t,e){n((t.negative|e.negative)==0,"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},_.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(u(t,t.umod(this.m)._forceRed(this)),t)},_.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},_.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)},_.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},_.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},_.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return 0>r.cmpn(0)&&r.iadd(this.m),r},_.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},_.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},_.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},_.prototype.isqr=function(t){return this.imul(t,t.clone())},_.prototype.sqr=function(t){return this.mul(t,t)},_.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 f(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var a=new f(1).toRed(this),s=a.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new f(2*l*l).toRed(this);0!==this.pow(l,u).cmp(s);)l.redIAdd(s);for(var h=this.pow(l,i),c=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=o;0!==d.cmp(a);){for(var m=d,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g<p);var b=this.pow(h,new f(1).iushln(p-g-1));c=c.redMul(b),h=b.redSqr(),d=d.redMul(h),p=g}return c},_.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},_.prototype.pow=function(t,e){if(e.isZero())return new f(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=Array(16);r[0]=new f(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],o=0,a=0,s=e.bitLength()%26;for(0===s&&(s=26),n=e.length-1;n>=0;n--){for(var u=e.words[n],l=s-1;l>=0;l--){var h=u>>l&1;if(i!==r[0]&&(i=this.sqr(i)),0===h&&0===o){a=0;continue}o<<=1,o|=h,(4==++a||0===n&&0===l)&&(i=this.mul(i,r[o]),a=0,o=0)}s=26}return i},_.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},_.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},f.mont=function(t){return new N(t)},i(N,_),N.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},N.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},N.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),f=i;return i.cmp(this.m)>=0?f=i.isub(this.m):0>i.cmpn(0)&&(f=i.iadd(this.m)),f._forceRed(this)},N.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new f(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),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},N.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},13345:function(t,e,r){var n,i=r(34155);!function(){"use strict";var f="input is invalid type",o="object"==typeof window,a=o?window:{};a.JS_SHA3_NO_WINDOW&&(o=!1);var s=!o&&"object"==typeof self;!a.JS_SHA3_NO_NODE_JS&&"object"==typeof i&&i.versions&&i.versions.node?a=r.g:s&&(a=self);var u=!a.JS_SHA3_NO_COMMON_JS&&t.exports,l=r.amdO,h=!a.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,c="0123456789abcdef".split(""),d=[4,1024,262144,67108864],p=[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],g=[224,256,384,512],b=[128,256],y=["hex","buffer","arrayBuffer","array","digest"],v={128:168,256:136};(a.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),h&&(a.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 w=function(t,e,r){return function(n){return new F(t,e,t).update(n)[r]()}},M=function(t,e,r){return function(n,i){return new F(t,e,i).update(n)[r]()}},E=function(t,e,r){return function(e,n,i,f){return T["cshake"+t].update(e,n,i,f)[r]()}},A=function(t,e,r){return function(e,n,i,f){return T["kmac"+t].update(e,n,i,f)[r]()}},S=function(t,e,r,n){for(var i=0;i<y.length;++i){var f=y[i];t[f]=e(r,n,f)}return t},_=function(t,e){var r=w(t,e,"hex");return r.create=function(){return new F(t,e,t)},r.update=function(t){return r.create().update(t)},S(r,w,t,e)},N=[{name:"keccak",padding:[1,256,65536,16777216],bits:g,createMethod:_},{name:"sha3",padding:[6,1536,393216,100663296],bits:g,createMethod:_},{name:"shake",padding:[31,7936,2031616,520093696],bits:b,createMethod:function(t,e){var r=M(t,e,"hex");return r.create=function(r){return new F(t,e,r)},r.update=function(t,e){return r.create(e).update(t)},S(r,M,t,e)}},{name:"cshake",padding:d,bits:b,createMethod:function(t,e){var r=v[t],n=E(t,e,"hex");return n.create=function(n,i,f){return i||f?new F(t,e,n).bytepad([i,f],r):T["shake"+t].create(n)},n.update=function(t,e,r,i){return n.create(e,r,i).update(t)},S(n,E,t,e)}},{name:"kmac",padding:d,bits:b,createMethod:function(t,e){var r=v[t],n=A(t,e,"hex");return n.create=function(n,i,f){return new B(t,e,i).bytepad(["KMAC",f],r).bytepad([n],r)},n.update=function(t,e,r,i){return n.create(t,r,i).update(e)},S(n,A,t,e)}}],T={},R=[],C=0;C<N.length;++C)for(var I=N[C],P=I.bits,O=0;O<P.length;++O){var x=I.name+"_"+P[O];if(R.push(x),T[x]=I.createMethod(P[O],I.padding),"sha3"!==I.name){var k=I.name+P[O];R.push(k),T[k]=T[x]}}function F(t,e,r){this.blocks=[],this.s=[],this.padding=e,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(t<<1)>>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 B(t,e,r){F.call(this,t,e,r)}F.prototype.update=function(t){if(this.finalized)throw Error("finalize already called");var e,r=typeof t;if("string"!==r){if("object"===r){if(null===t)throw Error(f);if(h&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!h||!ArrayBuffer.isView(t)))throw Error(f)}else throw Error(f);e=!0}for(var n,i,o=this.blocks,a=this.byteCount,s=t.length,u=this.blockCount,l=0,c=this.s;l<s;){if(this.reset)for(n=1,this.reset=!1,o[0]=this.block;n<u+1;++n)o[n]=0;if(e)for(n=this.start;l<s&&n<a;++l)o[n>>2]|=t[l]<<p[3&n++];else for(n=this.start;l<s&&n<a;++l)(i=t.charCodeAt(l))<128?o[n>>2]|=i<<p[3&n++]:(i<2048?o[n>>2]|=(192|i>>6)<<p[3&n++]:(i<55296||i>=57344?o[n>>2]|=(224|i>>12)<<p[3&n++]:(i=65536+((1023&i)<<10|1023&t.charCodeAt(++l)),o[n>>2]|=(240|i>>18)<<p[3&n++],o[n>>2]|=(128|i>>12&63)<<p[3&n++]),o[n>>2]|=(128|i>>6&63)<<p[3&n++]),o[n>>2]|=(128|63&i)<<p[3&n++]);if(this.lastByteIndex=n,n>=a){for(this.start=n-a,this.block=o[u],n=0;n<u;++n)c[n]^=o[n];L(c),this.reset=!0}else this.start=n}return this},F.prototype.encode=function(t,e){var r=255&t,n=1,i=[r];for(t>>=8,r=255&t;r>0;)i.unshift(r),t>>=8,r=255&t,++n;return e?i.push(n):i.unshift(n),this.update(i),i.length},F.prototype.encodeString=function(t){var e,r=typeof t;if("string"!==r){if("object"===r){if(null===t)throw Error(f);if(h&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!h||!ArrayBuffer.isView(t)))throw Error(f)}else throw Error(f);e=!0}var n=0,i=t.length;if(e)n=i;else for(var o=0;o<t.length;++o){var a=t.charCodeAt(o);a<128?n+=1:a<2048?n+=2:a<55296||a>=57344?n+=3:(a=65536+((1023&a)<<10|1023&t.charCodeAt(++o)),n+=4)}return n+=this.encode(8*n),this.update(t),n},F.prototype.bytepad=function(t,e){for(var r=this.encode(e),n=0;n<t.length;++n)r+=this.encodeString(t[n]);var i=e-r%e,f=[];return f.length=i,this.update(f),this},F.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex,r=this.blockCount,n=this.s;if(t[e>>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(e=1,t[0]=t[r];e<r+1;++e)t[e]=0;for(t[r-1]|=2147483648,e=0;e<r;++e)n[e]^=t[e];L(n)}},F.prototype.toString=F.prototype.hex=function(){this.finalize();for(var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,f=0,o=0,a="";o<n;){for(f=0;f<e&&o<n;++f,++o)a+=c[(t=r[f])>>4&15]+c[15&t]+c[t>>12&15]+c[t>>8&15]+c[t>>20&15]+c[t>>16&15]+c[t>>28&15]+c[t>>24&15];o%e==0&&(L(r),f=0)}return i&&(a+=c[(t=r[f])>>4&15]+c[15&t],i>1&&(a+=c[t>>12&15]+c[t>>8&15]),i>2&&(a+=c[t>>20&15]+c[t>>16&15])),a},F.prototype.arrayBuffer=function(){this.finalize();for(var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,f=0,o=0,a=this.outputBits>>3,s=new Uint32Array(t=new ArrayBuffer(i?n+1<<2:a));o<n;){for(f=0;f<e&&o<n;++f,++o)s[o]=r[f];o%e==0&&L(r)}return i&&(s[f]=r[f],t=t.slice(0,a)),t},F.prototype.buffer=F.prototype.arrayBuffer,F.prototype.digest=F.prototype.array=function(){this.finalize();for(var t,e,r=this.blockCount,n=this.s,i=this.outputBlocks,f=this.extraBytes,o=0,a=0,s=[];a<i;){for(o=0;o<r&&a<i;++o,++a)t=a<<2,e=n[o],s[t]=255&e,s[t+1]=e>>8&255,s[t+2]=e>>16&255,s[t+3]=e>>24&255;a%r==0&&L(n)}return f&&(t=a<<2,e=n[o],s[t]=255&e,f>1&&(s[t+1]=e>>8&255),f>2&&(s[t+2]=e>>16&255)),s},B.prototype=new F,B.prototype.finalize=function(){return this.encode(this.outputBits,!0),F.prototype.finalize.call(this)};var L=function(t){var e,r,n,i,f,o,a,s,u,l,h,c,d,p,g,b,y,v,w,M,E,A,S,_,N,T,R,C,I,P,O,x,k,F,B,L,D,U,G,z,J,j,H,V,X,q,Z,K,W,Y,Q,$,tt,te,tr,tn,ti,tf,to,ta,ts,tu,tl;for(n=0;n<48;n+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],f=t[1]^t[11]^t[21]^t[31]^t[41],o=t[2]^t[12]^t[22]^t[32]^t[42],a=t[3]^t[13]^t[23]^t[33]^t[43],s=t[4]^t[14]^t[24]^t[34]^t[44],u=t[5]^t[15]^t[25]^t[35]^t[45],l=t[6]^t[16]^t[26]^t[36]^t[46],h=t[7]^t[17]^t[27]^t[37]^t[47],c=t[8]^t[18]^t[28]^t[38]^t[48],d=t[9]^t[19]^t[29]^t[39]^t[49],e=c^(o<<1|a>>>31),r=d^(a<<1|o>>>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^(s<<1|u>>>31),r=f^(u<<1|s>>>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=o^(l<<1|h>>>31),r=a^(h<<1|l>>>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=s^(c<<1|d>>>31),r=u^(d<<1|c>>>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=l^(i<<1|f>>>31),r=h^(f<<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],g=t[1],q=t[11]<<4|t[10]>>>28,Z=t[10]<<4|t[11]>>>28,C=t[20]<<3|t[21]>>>29,I=t[21]<<3|t[20]>>>29,ta=t[31]<<9|t[30]>>>23,ts=t[30]<<9|t[31]>>>23,j=t[40]<<18|t[41]>>>14,H=t[41]<<18|t[40]>>>14,F=t[2]<<1|t[3]>>>31,B=t[3]<<1|t[2]>>>31,b=t[13]<<12|t[12]>>>20,y=t[12]<<12|t[13]>>>20,K=t[22]<<10|t[23]>>>22,W=t[23]<<10|t[22]>>>22,P=t[33]<<13|t[32]>>>19,O=t[32]<<13|t[33]>>>19,tu=t[42]<<2|t[43]>>>30,tl=t[43]<<2|t[42]>>>30,te=t[5]<<30|t[4]>>>2,tr=t[4]<<30|t[5]>>>2,L=t[14]<<6|t[15]>>>26,D=t[15]<<6|t[14]>>>26,v=t[25]<<11|t[24]>>>21,w=t[24]<<11|t[25]>>>21,Y=t[34]<<15|t[35]>>>17,Q=t[35]<<15|t[34]>>>17,x=t[45]<<29|t[44]>>>3,k=t[44]<<29|t[45]>>>3,_=t[6]<<28|t[7]>>>4,N=t[7]<<28|t[6]>>>4,tn=t[17]<<23|t[16]>>>9,ti=t[16]<<23|t[17]>>>9,U=t[26]<<25|t[27]>>>7,G=t[27]<<25|t[26]>>>7,M=t[36]<<21|t[37]>>>11,E=t[37]<<21|t[36]>>>11,$=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,V=t[8]<<27|t[9]>>>5,X=t[9]<<27|t[8]>>>5,T=t[18]<<20|t[19]>>>12,R=t[19]<<20|t[18]>>>12,tf=t[29]<<7|t[28]>>>25,to=t[28]<<7|t[29]>>>25,z=t[38]<<8|t[39]>>>24,J=t[39]<<8|t[38]>>>24,A=t[48]<<14|t[49]>>>18,S=t[49]<<14|t[48]>>>18,t[0]=p^~b&v,t[1]=g^~y&w,t[10]=_^~T&C,t[11]=N^~R&I,t[20]=F^~L&U,t[21]=B^~D&G,t[30]=V^~q&K,t[31]=X^~Z&W,t[40]=te^~tn&tf,t[41]=tr^~ti&to,t[2]=b^~v&M,t[3]=y^~w&E,t[12]=T^~C&P,t[13]=R^~I&O,t[22]=L^~U&z,t[23]=D^~G&J,t[32]=q^~K&Y,t[33]=Z^~W&Q,t[42]=tn^~tf&ta,t[43]=ti^~to&ts,t[4]=v^~M&A,t[5]=w^~E&S,t[14]=C^~P&x,t[15]=I^~O&k,t[24]=U^~z&j,t[25]=G^~J&H,t[34]=K^~Y&$,t[35]=W^~Q&tt,t[44]=tf^~ta&tu,t[45]=to^~ts&tl,t[6]=M^~A&p,t[7]=E^~S&g,t[16]=P^~x&_,t[17]=O^~k&N,t[26]=z^~j&F,t[27]=J^~H&B,t[36]=Y^~$&V,t[37]=Q^~tt&X,t[46]=ta^~tu&te,t[47]=ts^~tl&tr,t[8]=A^~p&b,t[9]=S^~g&y,t[18]=x^~_&T,t[19]=k^~N&R,t[28]=j^~F&L,t[29]=H^~B&D,t[38]=$^~V&q,t[39]=tt^~X&Z,t[48]=tu^~te&tn,t[49]=tl^~tr&ti,t[0]^=m[n],t[1]^=m[n+1]};if(u)t.exports=T;else{for(C=0;C<R.length;++C)a[R[C]]=T[R[C]];l&&void 0!==(n=(function(){return T}).call(e,r,e,t))&&(t.exports=n)}}()},14196:function(t,e,r){"use strict";r.r(e),r.d(e,{commify:function(){return W},formatEther:function(){return $},formatUnits:function(){return Y},parseEther:function(){return tt},parseUnits:function(){return Q}});let n=!1,i=!1,f={debug:1,default:2,info:2,warning:3,error:4,off:5},o=f.default,a=null,s=function(){try{let t=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test"!=="test".normalize(e))throw Error("bad normalize")}catch(r){t.push(e)}}),t.length)throw Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw Error("broken implementation")}catch(t){return t.message}return null}();(M=A||(A={})).DEBUG="DEBUG",M.INFO="INFO",M.WARNING="WARNING",M.ERROR="ERROR",M.OFF="OFF",(E=S||(S={})).UNKNOWN_ERROR="UNKNOWN_ERROR",E.NOT_IMPLEMENTED="NOT_IMPLEMENTED",E.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",E.NETWORK_ERROR="NETWORK_ERROR",E.SERVER_ERROR="SERVER_ERROR",E.TIMEOUT="TIMEOUT",E.BUFFER_OVERRUN="BUFFER_OVERRUN",E.NUMERIC_FAULT="NUMERIC_FAULT",E.MISSING_NEW="MISSING_NEW",E.INVALID_ARGUMENT="INVALID_ARGUMENT",E.MISSING_ARGUMENT="MISSING_ARGUMENT",E.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",E.CALL_EXCEPTION="CALL_EXCEPTION",E.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",E.NONCE_EXPIRED="NONCE_EXPIRED",E.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",E.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",E.TRANSACTION_REPLACED="TRANSACTION_REPLACED",E.ACTION_REJECTED="ACTION_REJECTED";let u="0123456789abcdef";class l{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){let r=t.toLowerCase();null==f[r]&&this.throwArgumentError("invalid log level name","logLevel",t),o>f[r]||console.log.apply(console,e)}debug(...t){this._log(l.levels.DEBUG,t)}info(...t){this._log(l.levels.INFO,t)}warn(...t){this._log(l.levels.WARNING,t)}makeError(t,e,r){if(i)return this.makeError("censored error",e,{});e||(e=l.errors.UNKNOWN_ERROR),r||(r={});let n=[];Object.keys(r).forEach(t=>{let e=r[t];try{if(e instanceof Uint8Array){let r="";for(let t=0;t<e.length;t++)r+=u[e[t]>>4]+u[15&e[t]];n.push(t+"=Uint8Array(0x"+r+")")}else n.push(t+"="+JSON.stringify(e))}catch(e){n.push(t+"="+JSON.stringify(r[t].toString()))}}),n.push(`code=${e}`),n.push(`version=${this.version}`);let f=t,o="";switch(e){case S.NUMERIC_FAULT:{o="NUMERIC_FAULT";let e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":o+="-"+e;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result"}break}case S.CALL_EXCEPTION:case S.INSUFFICIENT_FUNDS:case S.MISSING_NEW:case S.NONCE_EXPIRED:case S.REPLACEMENT_UNDERPRICED:case S.TRANSACTION_REPLACED:case S.UNPREDICTABLE_GAS_LIMIT:o=e}o&&(t+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),n.length&&(t+=" ("+n.join(", ")+")");let a=Error(t);return a.reason=f,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,l.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"),s&&this.throwError("platform missing String.prototype.normalize",l.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:s})}checkSafeUint53(t,e){"number"==typeof t&&(null==e&&(e="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(e,l.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(e,l.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,e,r){r=r?": "+r:"",t<e&&this.throwError("missing argument"+r,l.errors.MISSING_ARGUMENT,{count:t,expectedCount:e}),t>e&&this.throwError("too many arguments"+r,l.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:e})}checkNew(t,e){(t===Object||null==t)&&this.throwError("missing new",l.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",l.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):(t===Object||null==t)&&this.throwError("missing new",l.errors.MISSING_NEW,{name:e.name})}static globalLogger(){return a||(a=new l("logger/5.7.0")),a}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",l.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),n){if(!t)return;this.globalLogger().throwError("error censorship permanent",l.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}i=!!t,n=!!e}static setLogLevel(t){let e=f[t.toLowerCase()];if(null==e){l.globalLogger().warn("invalid log level - "+t);return}o=e}static from(t){return new l(t)}}l.errors=S,l.levels=A;let h=new l("bytes/5.7.0");function c(t){return!!t.toHexString}function d(t){return t.slice||(t.slice=function(){let e=Array.prototype.slice.call(arguments);return d(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function p(t){return"number"==typeof t&&t==t&&t%1==0}function m(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"==typeof t||!p(t.length)||t.length<0)return!1;for(let e=0;e<t.length;e++){let r=t[e];if(!p(r)||r<0||r>=256)return!1}return!0}function g(t,e){return"string"==typeof t&&!!t.match(/^0x[0-9A-Fa-f]*$/)&&(!e||t.length===2+2*e)}let b="0123456789abcdef";function y(t,e){if(e||(e={}),"number"==typeof t){h.checkSafeUint53(t,"invalid hexlify value");let e="";for(;t;)e=b[15&t]+e,t=Math.floor(t/16);return e.length?(e.length%2&&(e="0"+e),"0x"+e):"0x00"}if("bigint"==typeof t)return(t=t.toString(16)).length%2?"0x0"+t:"0x"+t;if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),c(t))return t.toHexString();if(g(t))return t.length%2&&("left"===e.hexPad?t="0x0"+t.substring(2):"right"===e.hexPad?t+="0":h.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(m(t)){let e="0x";for(let r=0;r<t.length;r++){let n=t[r];e+=b[(240&n)>>4]+b[15&n]}return e}return h.throwArgumentError("invalid hexlify value","value",t)}function v(t,e){for("string"!=typeof t?t=y(t):g(t)||h.throwArgumentError("invalid hex string","value",t),t.length>2*e+2&&h.throwArgumentError("value out of range","value",arguments[1]);t.length<2*e+2;)t="0x0"+t.substring(2);return t}let w="bignumber/5.7.0";var M,E,A,S,_=r(96092),N=r.n(_)().BN;let T=new l(w),R={},C=!1;class I{constructor(t,e){t!==R&&T.throwError("cannot call constructor directly; use BigNumber.from",l.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=e,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return O(x(this).fromTwos(t))}toTwos(t){return O(x(this).toTwos(t))}abs(){return"-"===this._hex[0]?I.from(this._hex.substring(1)):this}add(t){return O(x(this).add(x(t)))}sub(t){return O(x(this).sub(x(t)))}div(t){return I.from(t).isZero()&&k("division-by-zero","div"),O(x(this).div(x(t)))}mul(t){return O(x(this).mul(x(t)))}mod(t){let e=x(t);return e.isNeg()&&k("division-by-zero","mod"),O(x(this).umod(e))}pow(t){let e=x(t);return e.isNeg()&&k("negative-power","pow"),O(x(this).pow(e))}and(t){let e=x(t);return(this.isNegative()||e.isNeg())&&k("unbound-bitwise-result","and"),O(x(this).and(e))}or(t){let e=x(t);return(this.isNegative()||e.isNeg())&&k("unbound-bitwise-result","or"),O(x(this).or(e))}xor(t){let e=x(t);return(this.isNegative()||e.isNeg())&&k("unbound-bitwise-result","xor"),O(x(this).xor(e))}mask(t){return(this.isNegative()||t<0)&&k("negative-width","mask"),O(x(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&k("negative-width","shl"),O(x(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&k("negative-width","shr"),O(x(this).shrn(t))}eq(t){return x(this).eq(x(t))}lt(t){return x(this).lt(x(t))}lte(t){return x(this).lte(x(t))}gt(t){return x(this).gt(x(t))}gte(t){return x(this).gte(x(t))}isNegative(){return"-"===this._hex[0]}isZero(){return x(this).isZero()}toNumber(){try{return x(this).toNumber()}catch(t){k("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(t){}return T.throwError("this platform does not support BigInt",l.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?C||(C=!0,T.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?T.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",l.errors.UNEXPECTED_ARGUMENT,{}):T.throwError("BigNumber.toString does not accept parameters",l.errors.UNEXPECTED_ARGUMENT,{})),x(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof I)return t;if("string"==typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new I(R,P(t)):t.match(/^-?[0-9]+$/)?new I(R,P(new N(t))):T.throwArgumentError("invalid BigNumber string","value",t);if("number"==typeof t)return t%1&&k("underflow","BigNumber.from",t),(t>=9007199254740991||t<=-9007199254740991)&&k("overflow","BigNumber.from",t),I.from(String(t));if("bigint"==typeof t)return I.from(t.toString());if(m(t))return I.from(y(t));if(t){if(t.toHexString){let e=t.toHexString();if("string"==typeof e)return I.from(e)}else{let e=t._hex;if(null==e&&"BigNumber"===t.type&&(e=t.hex),"string"==typeof e&&(g(e)||"-"===e[0]&&g(e.substring(1))))return I.from(e)}}return T.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!!(t&&t._isBigNumber)}}function P(t){if("string"!=typeof t)return P(t.toString(16));if("-"===t[0])return("-"===(t=t.substring(1))[0]&&T.throwArgumentError("invalid hex","value",t),"0x00"===(t=P(t)))?t:"-"+t;if("0x"!==t.substring(0,2)&&(t="0x"+t),"0x"===t)return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&"0x00"===t.substring(0,4);)t="0x"+t.substring(4);return t}function O(t){return I.from(P(t))}function x(t){let e=I.from(t).toHexString();return"-"===e[0]?new N("-"+e.substring(3),16):new N(e.substring(2),16)}function k(t,e,r){let n={fault:t,operation:e};return null!=r&&(n.value=r),T.throwError(t,l.errors.NUMERIC_FAULT,n)}let F=new l(w),B={},L=I.from(0),D=I.from(-1);function U(t,e,r,n){let i={fault:e,operation:r};return void 0!==n&&(i.value=n),F.throwError(t,l.errors.NUMERIC_FAULT,i)}let G="0";for(;G.length<256;)G+=G;function z(t){if("number"!=typeof t)try{t=I.from(t).toNumber()}catch(t){}return"number"==typeof t&&t>=0&&t<=256&&!(t%1)?"1"+G.substring(0,t):F.throwArgumentError("invalid decimal size","decimals",t)}function J(t,e){null==e&&(e=0);let r=z(e),n=(t=I.from(t)).lt(L);n&&(t=t.mul(D));let i=t.mod(r).toString();for(;i.length<r.length-1;)i="0"+i;i=i.match(/^([0-9]*[1-9]|0)(0*)/)[1];let f=t.div(r).toString();return t=1===r.length?f:f+"."+i,n&&(t="-"+t),t}function j(t,e){null==e&&(e=0);let r=z(e);"string"==typeof t&&t.match(/^-?[0-9.]+$/)||F.throwArgumentError("invalid decimal value","value",t);let n="-"===t.substring(0,1);n&&(t=t.substring(1)),"."===t&&F.throwArgumentError("missing value","value",t);let i=t.split(".");i.length>2&&F.throwArgumentError("too many decimal points","value",t);let f=i[0],o=i[1];for(f||(f="0"),o||(o="0");"0"===o[o.length-1];)o=o.substring(0,o.length-1);for(o.length>r.length-1&&U("fractional component exceeds decimals","underflow","parseFixed"),""===o&&(o="0");o.length<r.length-1;)o+="0";let a=I.from(f),s=I.from(o),u=a.mul(r).add(s);return n&&(u=u.mul(D)),u}class H{constructor(t,e,r,n){t!==B&&F.throwError("cannot use FixedFormat constructor; use FixedFormat.from",l.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.signed=e,this.width=r,this.decimals=n,this.name=(e?"":"u")+"fixed"+String(r)+"x"+String(n),this._multiplier=z(n),Object.freeze(this)}static from(t){if(t instanceof H)return t;"number"==typeof t&&(t=`fixed128x${t}`);let e=!0,r=128,n=18;if("string"==typeof t){if("fixed"===t);else if("ufixed"===t)e=!1;else{let i=t.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);i||F.throwArgumentError("invalid fixed format","format",t),e="u"!==i[1],r=parseInt(i[2]),n=parseInt(i[3])}}else if(t){let i=(e,r,n)=>null==t[e]?n:(typeof t[e]!==r&&F.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&&F.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",r),n>80&&F.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",n),new H(B,e,r,n)}}class V{constructor(t,e,r,n){t!==B&&F.throwError("cannot use FixedNumber constructor; use FixedNumber.from",l.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&&F.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",t)}addUnsafe(t){this._checkFormat(t);let e=j(this._value,this.format.decimals),r=j(t._value,t.format.decimals);return V.fromValue(e.add(r),this.format.decimals,this.format)}subUnsafe(t){this._checkFormat(t);let e=j(this._value,this.format.decimals),r=j(t._value,t.format.decimals);return V.fromValue(e.sub(r),this.format.decimals,this.format)}mulUnsafe(t){this._checkFormat(t);let e=j(this._value,this.format.decimals),r=j(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);let e=j(this._value,this.format.decimals),r=j(t._value,t.format.decimals);return V.fromValue(e.mul(this.format._multiplier).div(r),this.format.decimals,this.format)}floor(){let t=this.toString().split(".");1===t.length&&t.push("0");let e=V.from(t[0],this.format),r=!t[1].match(/^(0*)$/);return this.isNegative()&&r&&(e=e.subUnsafe(X.toFormat(e.format))),e}ceiling(){let t=this.toString().split(".");1===t.length&&t.push("0");let e=V.from(t[0],this.format),r=!t[1].match(/^(0*)$/);return!this.isNegative()&&r&&(e=e.addUnsafe(X.toFormat(e.format))),e}round(t){null==t&&(t=0);let e=this.toString().split(".");if(1===e.length&&e.push("0"),(t<0||t>80||t%1)&&F.throwArgumentError("invalid decimal count","decimals",t),e[1].length<=t)return this;let r=V.from("1"+G.substring(0,t),this.format),n=q.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){return null==t?this._hex:(t%8&&F.throwArgumentError("invalid byte width","width",t),v(I.from(this._hex).fromTwos(this.format.width).toTwos(t).toHexString(),t/8))}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(t){return V.fromString(this._value,t)}static fromValue(t,e,r){var n;return null!=r||null==e||null!=(n=e)&&(I.isBigNumber(n)||"number"==typeof n&&n%1==0||"string"==typeof n&&n.match(/^-?[0-9]+$/)||g(n)||"bigint"==typeof n||m(n))||(r=e,e=null),null==e&&(e=0),null==r&&(r="fixed"),V.fromString(J(t,e),H.from(r))}static fromString(t,e){null==e&&(e="fixed");let r=H.from(e),n=j(t,r.decimals);!r.signed&&n.lt(L)&&U("unsigned value cannot be negative","overflow","value",t);let i=null;return new V(B,r.signed?n.toTwos(r.width).toHexString():v(n.toHexString(),r.width/8),J(n,r.decimals),r)}static fromBytes(t,e){null==e&&(e="fixed");let r=H.from(e);if(function(t,e){if(e||(e={}),"number"==typeof t){h.checkSafeUint53(t,"invalid arrayify value");let e=[];for(;t;)e.unshift(255&t),t=parseInt(String(t/256));return 0===e.length&&e.push(0),d(new Uint8Array(e))}if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),c(t)&&(t=t.toHexString()),g(t)){let r=t.substring(2);r.length%2&&("left"===e.hexPad?r="0"+r:"right"===e.hexPad?r+="0":h.throwArgumentError("hex data is odd-length","value",t));let n=[];for(let t=0;t<r.length;t+=2)n.push(parseInt(r.substring(t,t+2),16));return d(new Uint8Array(n))}return m(t)?d(new Uint8Array(t)):h.throwArgumentError("invalid arrayify value","value",t)}(t).length>r.width/8)throw Error("overflow");let n=I.from(t);return r.signed&&(n=n.fromTwos(r.width)),new V(B,n.toTwos((r.signed?0:1)+r.width).toHexString(),J(n,r.decimals),r)}static from(t,e){if("string"==typeof t)return V.fromString(t,e);if(m(t))return V.fromBytes(t,e);try{return V.fromValue(t,0,e)}catch(t){if(t.code!==l.errors.INVALID_ARGUMENT)throw t}return F.throwArgumentError("invalid FixedNumber value","value",t)}static isFixedNumber(t){return!!(t&&t._isFixedNumber)}}let X=V.from(1),q=V.from("0.5"),Z=new l("units/5.4.0"),K=["wei","kwei","mwei","gwei","szabo","finney","ether"];function W(t){let e=String(t).split(".");(e.length>2||!e[0].match(/^-?[0-9]*$/)||e[1]&&!e[1].match(/^[0-9]*$/)||"."===t||"-."===t)&&Z.throwArgumentError("invalid value","value",t);let r=e[0],n="";for("-"===r.substring(0,1)&&(n="-",r=r.substring(1));"0"===r.substring(0,1);)r=r.substring(1);""===r&&(r="0");let i="";for(2===e.length&&(i="."+(e[1]||"0"));i.length>2&&"0"===i[i.length-1];)i=i.substring(0,i.length-1);let f=[];for(;r.length;){if(r.length<=3){f.unshift(r);break}{let t=r.length-3;f.unshift(r.substring(t)),r=r.substring(0,t)}}return n+f.join(",")+i}function Y(t,e){if("string"==typeof e){let t=K.indexOf(e);-1!==t&&(e=3*t)}return J(t,null!=e?e:18)}function Q(t,e){if("string"!=typeof t&&Z.throwArgumentError("value must be a string","value",t),"string"==typeof e){let t=K.indexOf(e);-1!==t&&(e=3*t)}return j(t,null!=e?e:18)}function $(t){return Y(t,18)}function tt(t){return Q(t,18)}},96092:function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw 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 f(t,e,r){if(f.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"))}"object"==typeof t?t.exports=f:e.BN=f,f.BN=f,f.wordSize=26;try{h="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(74281).Buffer}catch(t){}function o(t,e){var r=t.charCodeAt(e);return r>=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 a(t,e,r){var n=o(t,r);return r-1>=e&&(n|=o(t,r-1)<<4),n}function s(t,e,r,i){for(var f=0,o=0,a=Math.min(t.length,r),s=e;s<a;s++){var u=t.charCodeAt(s)-48;f*=i,o=u>=49?u-49+10:u>=17?u-17+10:u,n(u>=0&&o<i,"Invalid character"),f+=o}return f}function u(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(f.isBN=function(t){return t instanceof f||null!==t&&"object"==typeof t&&t.constructor.wordSize===f.wordSize&&Array.isArray(t.words)},f.max=function(t,e){return t.cmp(e)>0?t:e},f.min=function(t,e){return 0>t.cmp(e)?t:e},f.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);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},f.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)},f.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=Array(this.length);for(var i,f,o=0;o<this.length;o++)this.words[o]=0;var a=0;if("be"===r)for(o=t.length-1,i=0;o>=0;o-=3)f=t[o]|t[o-1]<<8|t[o-2]<<16,this.words[i]|=f<<a&67108863,this.words[i+1]=f>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);else if("le"===r)for(o=0,i=0;o<t.length;o+=3)f=t[o]|t[o+1]<<8|t[o+2]<<16,this.words[i]|=f<<a&67108863,this.words[i+1]=f>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);return this._strip()},f.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=Array(this.length);for(var n,i=0;i<this.length;i++)this.words[i]=0;var f=0,o=0;if("be"===r)for(i=t.length-1;i>=e;i-=2)n=a(t,e,i)<<f,this.words[o]|=67108863&n,f>=18?(f-=18,o+=1,this.words[o]|=n>>>26):f+=8;else for(i=(t.length-e)%2==0?e+1:e;i<t.length;i+=2)n=a(t,e,i)<<f,this.words[o]|=67108863&n,f>=18?(f-=18,o+=1,this.words[o]|=n>>>26):f+=8;this._strip()},f.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 f=t.length-r,o=f%n,a=Math.min(f,f-o)+r,u=0,l=r;l<a;l+=n)u=s(t,l,l+n,e),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==o){var h=1;for(u=s(t,l,t.length,e),l=0;l<o;l++)h*=e;this.imuln(h),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this._strip()},f.prototype.copy=function(t){t.words=Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},f.prototype._move=function(t){u(t,this)},f.prototype.clone=function(){var t=new f(null);return this.copy(t),t},f.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},f.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},f.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{f.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(t){f.prototype.inspect=l}else f.prototype.inspect=l;function l(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var h,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"],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];function m(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],f=0|e.words[0],o=i*f,a=67108863&o,s=o/67108864|0;r.words[0]=a;for(var u=1;u<n;u++){for(var l=s>>>26,h=67108863&s,c=Math.min(u,e.length-1),d=Math.max(0,u-t.length+1);d<=c;d++){var p=u-d|0;l+=(o=(i=0|t.words[p])*(f=0|e.words[d])+h)/67108864|0,h=67108863&o}r.words[u]=0|h,s=0|l}return 0!==s?r.words[u]=0|s:r.length--,r._strip()}f.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var r,i=0,f=0,o=0;o<this.length;o++){var a=this.words[o],s=((a<<i|f)&16777215).toString(16);f=a>>>24-i&16777215,(i+=2)>=26&&(i-=26,o--),r=0!==f||o!==this.length-1?c[6-s.length]+s+r:s+r}for(0!==f&&(r=f.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var u=d[t],l=p[t];r="";var h=this.clone();for(h.negative=0;!h.isZero();){var m=h.modrn(l).toString(t);r=(h=h.idivn(l)).isZero()?m+r:c[u-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},f.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},f.prototype.toJSON=function(){return this.toString(16,2)},h&&(f.prototype.toBuffer=function(t,e){return this.toArrayLike(h,t,e)}),f.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},f.prototype.toArrayLike=function(t,e,r){this._strip();var i=this.byteLength(),f=r||Math.max(1,i);n(i<=f,"byte array longer than desired length"),n(f>0,"Requested array length <= 0");var o=t.allocUnsafe?t.allocUnsafe(f):new t(f);return this["_toArrayLike"+("le"===e?"LE":"BE")](o,i),o},f.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,i=0,f=0;i<this.length;i++){var o=this.words[i]<<f|n;t[r++]=255&o,r<t.length&&(t[r++]=o>>8&255),r<t.length&&(t[r++]=o>>16&255),6===f?(r<t.length&&(t[r++]=o>>24&255),n=0,f=0):(n=o>>>24,f+=2)}if(r<t.length)for(t[r++]=n;r<t.length;)t[r++]=0},f.prototype._toArrayLikeBE=function(t,e){for(var r=t.length-1,n=0,i=0,f=0;i<this.length;i++){var o=this.words[i]<<f|n;t[r--]=255&o,r>=0&&(t[r--]=o>>8&255),r>=0&&(t[r--]=o>>16&255),6===f?(r>=0&&(t[r--]=o>>24&255),n=0,f=0):(n=o>>>24,f+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?f.prototype._countBits=function(t){return 32-Math.clz32(t)}:f.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},f.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return(8191&e)==0&&(r+=13,e>>>=13),(127&e)==0&&(r+=7,e>>>=7),(15&e)==0&&(r+=4,e>>>=4),(3&e)==0&&(r+=2,e>>>=2),(1&e)==0&&r++,r},f.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return(this.length-1)*26+e},f.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},f.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},f.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},f.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},f.prototype.isNeg=function(){return 0!==this.negative},f.prototype.neg=function(){return this.clone().ineg()},f.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},f.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},f.prototype.ior=function(t){return n((this.negative|t.negative)==0),this.iuor(t)},f.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},f.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},f.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this._strip()},f.prototype.iand=function(t){return n((this.negative|t.negative)==0),this.iuand(t)},f.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},f.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},f.prototype.iuxor=function(t){this.length>t.length?(e=this,r=t):(e=t,r=this);for(var e,r,n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this._strip()},f.prototype.ixor=function(t){return n((this.negative|t.negative)==0),this.iuxor(t)},f.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},f.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},f.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;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},f.prototype.notn=function(t){return this.clone().inotn(t)},f.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),e?this.words[r]=this.words[r]|1<<i:this.words[r]=this.words[r]&~(1<<i),this._strip()},f.prototype.iadd=function(t){if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var e,r,n,i=0,f=0;f<n.length;f++)e=(0|r.words[f])+(0|n.words[f])+i,this.words[f]=67108863&e,i=e>>>26;for(;0!==i&&f<r.length;f++)e=(0|r.words[f])+i,this.words[f]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;f<r.length;f++)this.words[f]=r.words[f];return this},f.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},f.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e,r,n=this.iadd(t);return t.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(e=this,r=t):(e=t,r=this);for(var f=0,o=0;o<r.length;o++)f=(n=(0|e.words[o])-(0|r.words[o])+f)>>26,this.words[o]=67108863&n;for(;0!==f&&o<e.length;o++)f=(n=(0|e.words[o])+f)>>26,this.words[o]=67108863&n;if(0===f&&o<e.length&&e!==this)for(;o<e.length;o++)this.words[o]=e.words[o];return this.length=Math.max(this.length,o),e!==this&&(this.negative=1),this._strip()},f.prototype.sub=function(t){return this.clone().isub(t)};var g=function(t,e,r){var n,i,f,o=t.words,a=e.words,s=r.words,u=0,l=0|o[0],h=8191&l,c=l>>>13,d=0|o[1],p=8191&d,m=d>>>13,g=0|o[2],b=8191&g,y=g>>>13,v=0|o[3],w=8191&v,M=v>>>13,E=0|o[4],A=8191&E,S=E>>>13,_=0|o[5],N=8191&_,T=_>>>13,R=0|o[6],C=8191&R,I=R>>>13,P=0|o[7],O=8191&P,x=P>>>13,k=0|o[8],F=8191&k,B=k>>>13,L=0|o[9],D=8191&L,U=L>>>13,G=0|a[0],z=8191&G,J=G>>>13,j=0|a[1],H=8191&j,V=j>>>13,X=0|a[2],q=8191&X,Z=X>>>13,K=0|a[3],W=8191&K,Y=K>>>13,Q=0|a[4],$=8191&Q,tt=Q>>>13,te=0|a[5],tr=8191&te,tn=te>>>13,ti=0|a[6],tf=8191&ti,to=ti>>>13,ta=0|a[7],ts=8191&ta,tu=ta>>>13,tl=0|a[8],th=8191&tl,tc=tl>>>13,td=0|a[9],tp=8191&td,tm=td>>>13;r.negative=t.negative^e.negative,r.length=19;var tg=(u+(n=Math.imul(h,z))|0)+((8191&(i=(i=Math.imul(h,J))+Math.imul(c,z)|0))<<13)|0;u=((f=Math.imul(c,J))+(i>>>13)|0)+(tg>>>26)|0,tg&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,J))+Math.imul(m,z)|0,f=Math.imul(m,J);var tb=(u+(n=n+Math.imul(h,H)|0)|0)+((8191&(i=(i=i+Math.imul(h,V)|0)+Math.imul(c,H)|0))<<13)|0;u=((f=f+Math.imul(c,V)|0)+(i>>>13)|0)+(tb>>>26)|0,tb&=67108863,n=Math.imul(b,z),i=(i=Math.imul(b,J))+Math.imul(y,z)|0,f=Math.imul(y,J),n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,H)|0,f=f+Math.imul(m,V)|0;var ty=(u+(n=n+Math.imul(h,q)|0)|0)+((8191&(i=(i=i+Math.imul(h,Z)|0)+Math.imul(c,q)|0))<<13)|0;u=((f=f+Math.imul(c,Z)|0)+(i>>>13)|0)+(ty>>>26)|0,ty&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,J))+Math.imul(M,z)|0,f=Math.imul(M,J),n=n+Math.imul(b,H)|0,i=(i=i+Math.imul(b,V)|0)+Math.imul(y,H)|0,f=f+Math.imul(y,V)|0,n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,q)|0,f=f+Math.imul(m,Z)|0;var tv=(u+(n=n+Math.imul(h,W)|0)|0)+((8191&(i=(i=i+Math.imul(h,Y)|0)+Math.imul(c,W)|0))<<13)|0;u=((f=f+Math.imul(c,Y)|0)+(i>>>13)|0)+(tv>>>26)|0,tv&=67108863,n=Math.imul(A,z),i=(i=Math.imul(A,J))+Math.imul(S,z)|0,f=Math.imul(S,J),n=n+Math.imul(w,H)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(M,H)|0,f=f+Math.imul(M,V)|0,n=n+Math.imul(b,q)|0,i=(i=i+Math.imul(b,Z)|0)+Math.imul(y,q)|0,f=f+Math.imul(y,Z)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,W)|0,f=f+Math.imul(m,Y)|0;var tw=(u+(n=n+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(c,$)|0))<<13)|0;u=((f=f+Math.imul(c,tt)|0)+(i>>>13)|0)+(tw>>>26)|0,tw&=67108863,n=Math.imul(N,z),i=(i=Math.imul(N,J))+Math.imul(T,z)|0,f=Math.imul(T,J),n=n+Math.imul(A,H)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(S,H)|0,f=f+Math.imul(S,V)|0,n=n+Math.imul(w,q)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(M,q)|0,f=f+Math.imul(M,Z)|0,n=n+Math.imul(b,W)|0,i=(i=i+Math.imul(b,Y)|0)+Math.imul(y,W)|0,f=f+Math.imul(y,Y)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,$)|0,f=f+Math.imul(m,tt)|0;var tM=(u+(n=n+Math.imul(h,tr)|0)|0)+((8191&(i=(i=i+Math.imul(h,tn)|0)+Math.imul(c,tr)|0))<<13)|0;u=((f=f+Math.imul(c,tn)|0)+(i>>>13)|0)+(tM>>>26)|0,tM&=67108863,n=Math.imul(C,z),i=(i=Math.imul(C,J))+Math.imul(I,z)|0,f=Math.imul(I,J),n=n+Math.imul(N,H)|0,i=(i=i+Math.imul(N,V)|0)+Math.imul(T,H)|0,f=f+Math.imul(T,V)|0,n=n+Math.imul(A,q)|0,i=(i=i+Math.imul(A,Z)|0)+Math.imul(S,q)|0,f=f+Math.imul(S,Z)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(M,W)|0,f=f+Math.imul(M,Y)|0,n=n+Math.imul(b,$)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(y,$)|0,f=f+Math.imul(y,tt)|0,n=n+Math.imul(p,tr)|0,i=(i=i+Math.imul(p,tn)|0)+Math.imul(m,tr)|0,f=f+Math.imul(m,tn)|0;var tE=(u+(n=n+Math.imul(h,tf)|0)|0)+((8191&(i=(i=i+Math.imul(h,to)|0)+Math.imul(c,tf)|0))<<13)|0;u=((f=f+Math.imul(c,to)|0)+(i>>>13)|0)+(tE>>>26)|0,tE&=67108863,n=Math.imul(O,z),i=(i=Math.imul(O,J))+Math.imul(x,z)|0,f=Math.imul(x,J),n=n+Math.imul(C,H)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(I,H)|0,f=f+Math.imul(I,V)|0,n=n+Math.imul(N,q)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(T,q)|0,f=f+Math.imul(T,Z)|0,n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(S,W)|0,f=f+Math.imul(S,Y)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(M,$)|0,f=f+Math.imul(M,tt)|0,n=n+Math.imul(b,tr)|0,i=(i=i+Math.imul(b,tn)|0)+Math.imul(y,tr)|0,f=f+Math.imul(y,tn)|0,n=n+Math.imul(p,tf)|0,i=(i=i+Math.imul(p,to)|0)+Math.imul(m,tf)|0,f=f+Math.imul(m,to)|0;var tA=(u+(n=n+Math.imul(h,ts)|0)|0)+((8191&(i=(i=i+Math.imul(h,tu)|0)+Math.imul(c,ts)|0))<<13)|0;u=((f=f+Math.imul(c,tu)|0)+(i>>>13)|0)+(tA>>>26)|0,tA&=67108863,n=Math.imul(F,z),i=(i=Math.imul(F,J))+Math.imul(B,z)|0,f=Math.imul(B,J),n=n+Math.imul(O,H)|0,i=(i=i+Math.imul(O,V)|0)+Math.imul(x,H)|0,f=f+Math.imul(x,V)|0,n=n+Math.imul(C,q)|0,i=(i=i+Math.imul(C,Z)|0)+Math.imul(I,q)|0,f=f+Math.imul(I,Z)|0,n=n+Math.imul(N,W)|0,i=(i=i+Math.imul(N,Y)|0)+Math.imul(T,W)|0,f=f+Math.imul(T,Y)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(S,$)|0,f=f+Math.imul(S,tt)|0,n=n+Math.imul(w,tr)|0,i=(i=i+Math.imul(w,tn)|0)+Math.imul(M,tr)|0,f=f+Math.imul(M,tn)|0,n=n+Math.imul(b,tf)|0,i=(i=i+Math.imul(b,to)|0)+Math.imul(y,tf)|0,f=f+Math.imul(y,to)|0,n=n+Math.imul(p,ts)|0,i=(i=i+Math.imul(p,tu)|0)+Math.imul(m,ts)|0,f=f+Math.imul(m,tu)|0;var tS=(u+(n=n+Math.imul(h,th)|0)|0)+((8191&(i=(i=i+Math.imul(h,tc)|0)+Math.imul(c,th)|0))<<13)|0;u=((f=f+Math.imul(c,tc)|0)+(i>>>13)|0)+(tS>>>26)|0,tS&=67108863,n=Math.imul(D,z),i=(i=Math.imul(D,J))+Math.imul(U,z)|0,f=Math.imul(U,J),n=n+Math.imul(F,H)|0,i=(i=i+Math.imul(F,V)|0)+Math.imul(B,H)|0,f=f+Math.imul(B,V)|0,n=n+Math.imul(O,q)|0,i=(i=i+Math.imul(O,Z)|0)+Math.imul(x,q)|0,f=f+Math.imul(x,Z)|0,n=n+Math.imul(C,W)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(I,W)|0,f=f+Math.imul(I,Y)|0,n=n+Math.imul(N,$)|0,i=(i=i+Math.imul(N,tt)|0)+Math.imul(T,$)|0,f=f+Math.imul(T,tt)|0,n=n+Math.imul(A,tr)|0,i=(i=i+Math.imul(A,tn)|0)+Math.imul(S,tr)|0,f=f+Math.imul(S,tn)|0,n=n+Math.imul(w,tf)|0,i=(i=i+Math.imul(w,to)|0)+Math.imul(M,tf)|0,f=f+Math.imul(M,to)|0,n=n+Math.imul(b,ts)|0,i=(i=i+Math.imul(b,tu)|0)+Math.imul(y,ts)|0,f=f+Math.imul(y,tu)|0,n=n+Math.imul(p,th)|0,i=(i=i+Math.imul(p,tc)|0)+Math.imul(m,th)|0,f=f+Math.imul(m,tc)|0;var t_=(u+(n=n+Math.imul(h,tp)|0)|0)+((8191&(i=(i=i+Math.imul(h,tm)|0)+Math.imul(c,tp)|0))<<13)|0;u=((f=f+Math.imul(c,tm)|0)+(i>>>13)|0)+(t_>>>26)|0,t_&=67108863,n=Math.imul(D,H),i=(i=Math.imul(D,V))+Math.imul(U,H)|0,f=Math.imul(U,V),n=n+Math.imul(F,q)|0,i=(i=i+Math.imul(F,Z)|0)+Math.imul(B,q)|0,f=f+Math.imul(B,Z)|0,n=n+Math.imul(O,W)|0,i=(i=i+Math.imul(O,Y)|0)+Math.imul(x,W)|0,f=f+Math.imul(x,Y)|0,n=n+Math.imul(C,$)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(I,$)|0,f=f+Math.imul(I,tt)|0,n=n+Math.imul(N,tr)|0,i=(i=i+Math.imul(N,tn)|0)+Math.imul(T,tr)|0,f=f+Math.imul(T,tn)|0,n=n+Math.imul(A,tf)|0,i=(i=i+Math.imul(A,to)|0)+Math.imul(S,tf)|0,f=f+Math.imul(S,to)|0,n=n+Math.imul(w,ts)|0,i=(i=i+Math.imul(w,tu)|0)+Math.imul(M,ts)|0,f=f+Math.imul(M,tu)|0,n=n+Math.imul(b,th)|0,i=(i=i+Math.imul(b,tc)|0)+Math.imul(y,th)|0,f=f+Math.imul(y,tc)|0;var tN=(u+(n=n+Math.imul(p,tp)|0)|0)+((8191&(i=(i=i+Math.imul(p,tm)|0)+Math.imul(m,tp)|0))<<13)|0;u=((f=f+Math.imul(m,tm)|0)+(i>>>13)|0)+(tN>>>26)|0,tN&=67108863,n=Math.imul(D,q),i=(i=Math.imul(D,Z))+Math.imul(U,q)|0,f=Math.imul(U,Z),n=n+Math.imul(F,W)|0,i=(i=i+Math.imul(F,Y)|0)+Math.imul(B,W)|0,f=f+Math.imul(B,Y)|0,n=n+Math.imul(O,$)|0,i=(i=i+Math.imul(O,tt)|0)+Math.imul(x,$)|0,f=f+Math.imul(x,tt)|0,n=n+Math.imul(C,tr)|0,i=(i=i+Math.imul(C,tn)|0)+Math.imul(I,tr)|0,f=f+Math.imul(I,tn)|0,n=n+Math.imul(N,tf)|0,i=(i=i+Math.imul(N,to)|0)+Math.imul(T,tf)|0,f=f+Math.imul(T,to)|0,n=n+Math.imul(A,ts)|0,i=(i=i+Math.imul(A,tu)|0)+Math.imul(S,ts)|0,f=f+Math.imul(S,tu)|0,n=n+Math.imul(w,th)|0,i=(i=i+Math.imul(w,tc)|0)+Math.imul(M,th)|0,f=f+Math.imul(M,tc)|0;var tT=(u+(n=n+Math.imul(b,tp)|0)|0)+((8191&(i=(i=i+Math.imul(b,tm)|0)+Math.imul(y,tp)|0))<<13)|0;u=((f=f+Math.imul(y,tm)|0)+(i>>>13)|0)+(tT>>>26)|0,tT&=67108863,n=Math.imul(D,W),i=(i=Math.imul(D,Y))+Math.imul(U,W)|0,f=Math.imul(U,Y),n=n+Math.imul(F,$)|0,i=(i=i+Math.imul(F,tt)|0)+Math.imul(B,$)|0,f=f+Math.imul(B,tt)|0,n=n+Math.imul(O,tr)|0,i=(i=i+Math.imul(O,tn)|0)+Math.imul(x,tr)|0,f=f+Math.imul(x,tn)|0,n=n+Math.imul(C,tf)|0,i=(i=i+Math.imul(C,to)|0)+Math.imul(I,tf)|0,f=f+Math.imul(I,to)|0,n=n+Math.imul(N,ts)|0,i=(i=i+Math.imul(N,tu)|0)+Math.imul(T,ts)|0,f=f+Math.imul(T,tu)|0,n=n+Math.imul(A,th)|0,i=(i=i+Math.imul(A,tc)|0)+Math.imul(S,th)|0,f=f+Math.imul(S,tc)|0;var tR=(u+(n=n+Math.imul(w,tp)|0)|0)+((8191&(i=(i=i+Math.imul(w,tm)|0)+Math.imul(M,tp)|0))<<13)|0;u=((f=f+Math.imul(M,tm)|0)+(i>>>13)|0)+(tR>>>26)|0,tR&=67108863,n=Math.imul(D,$),i=(i=Math.imul(D,tt))+Math.imul(U,$)|0,f=Math.imul(U,tt),n=n+Math.imul(F,tr)|0,i=(i=i+Math.imul(F,tn)|0)+Math.imul(B,tr)|0,f=f+Math.imul(B,tn)|0,n=n+Math.imul(O,tf)|0,i=(i=i+Math.imul(O,to)|0)+Math.imul(x,tf)|0,f=f+Math.imul(x,to)|0,n=n+Math.imul(C,ts)|0,i=(i=i+Math.imul(C,tu)|0)+Math.imul(I,ts)|0,f=f+Math.imul(I,tu)|0,n=n+Math.imul(N,th)|0,i=(i=i+Math.imul(N,tc)|0)+Math.imul(T,th)|0,f=f+Math.imul(T,tc)|0;var tC=(u+(n=n+Math.imul(A,tp)|0)|0)+((8191&(i=(i=i+Math.imul(A,tm)|0)+Math.imul(S,tp)|0))<<13)|0;u=((f=f+Math.imul(S,tm)|0)+(i>>>13)|0)+(tC>>>26)|0,tC&=67108863,n=Math.imul(D,tr),i=(i=Math.imul(D,tn))+Math.imul(U,tr)|0,f=Math.imul(U,tn),n=n+Math.imul(F,tf)|0,i=(i=i+Math.imul(F,to)|0)+Math.imul(B,tf)|0,f=f+Math.imul(B,to)|0,n=n+Math.imul(O,ts)|0,i=(i=i+Math.imul(O,tu)|0)+Math.imul(x,ts)|0,f=f+Math.imul(x,tu)|0,n=n+Math.imul(C,th)|0,i=(i=i+Math.imul(C,tc)|0)+Math.imul(I,th)|0,f=f+Math.imul(I,tc)|0;var tI=(u+(n=n+Math.imul(N,tp)|0)|0)+((8191&(i=(i=i+Math.imul(N,tm)|0)+Math.imul(T,tp)|0))<<13)|0;u=((f=f+Math.imul(T,tm)|0)+(i>>>13)|0)+(tI>>>26)|0,tI&=67108863,n=Math.imul(D,tf),i=(i=Math.imul(D,to))+Math.imul(U,tf)|0,f=Math.imul(U,to),n=n+Math.imul(F,ts)|0,i=(i=i+Math.imul(F,tu)|0)+Math.imul(B,ts)|0,f=f+Math.imul(B,tu)|0,n=n+Math.imul(O,th)|0,i=(i=i+Math.imul(O,tc)|0)+Math.imul(x,th)|0,f=f+Math.imul(x,tc)|0;var tP=(u+(n=n+Math.imul(C,tp)|0)|0)+((8191&(i=(i=i+Math.imul(C,tm)|0)+Math.imul(I,tp)|0))<<13)|0;u=((f=f+Math.imul(I,tm)|0)+(i>>>13)|0)+(tP>>>26)|0,tP&=67108863,n=Math.imul(D,ts),i=(i=Math.imul(D,tu))+Math.imul(U,ts)|0,f=Math.imul(U,tu),n=n+Math.imul(F,th)|0,i=(i=i+Math.imul(F,tc)|0)+Math.imul(B,th)|0,f=f+Math.imul(B,tc)|0;var tO=(u+(n=n+Math.imul(O,tp)|0)|0)+((8191&(i=(i=i+Math.imul(O,tm)|0)+Math.imul(x,tp)|0))<<13)|0;u=((f=f+Math.imul(x,tm)|0)+(i>>>13)|0)+(tO>>>26)|0,tO&=67108863,n=Math.imul(D,th),i=(i=Math.imul(D,tc))+Math.imul(U,th)|0,f=Math.imul(U,tc);var tx=(u+(n=n+Math.imul(F,tp)|0)|0)+((8191&(i=(i=i+Math.imul(F,tm)|0)+Math.imul(B,tp)|0))<<13)|0;u=((f=f+Math.imul(B,tm)|0)+(i>>>13)|0)+(tx>>>26)|0,tx&=67108863;var tk=(u+(n=Math.imul(D,tp))|0)+((8191&(i=(i=Math.imul(D,tm))+Math.imul(U,tp)|0))<<13)|0;return u=((f=Math.imul(U,tm))+(i>>>13)|0)+(tk>>>26)|0,tk&=67108863,s[0]=tg,s[1]=tb,s[2]=ty,s[3]=tv,s[4]=tw,s[5]=tM,s[6]=tE,s[7]=tA,s[8]=tS,s[9]=t_,s[10]=tN,s[11]=tT,s[12]=tR,s[13]=tC,s[14]=tI,s[15]=tP,s[16]=tO,s[17]=tx,s[18]=tk,0!==u&&(s[19]=u,r.length++),r};function b(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,f=0;f<r.length-1;f++){var o=i;i=0;for(var a=67108863&n,s=Math.min(f,e.length-1),u=Math.max(0,f-t.length+1);u<=s;u++){var l=f-u,h=(0|t.words[l])*(0|e.words[u]),c=67108863&h;o=o+(h/67108864|0)|0,a=67108863&(c=c+a|0),i+=(o=o+(c>>>26)|0)>>>26,o&=67108863}r.words[f]=a,n=o,o=i}return 0!==n?r.words[f]=n:r.length--,r._strip()}function y(t,e){this.x=t,this.y=e}Math.imul||(g=m),f.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return 10===this.length&&10===t.length?g(this,t,e):n<63?m(this,t,e):b(this,t,e)},y.prototype.makeRBT=function(t){for(var e=Array(t),r=f.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},y.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},y.prototype.permute=function(t,e,r,n,i,f){for(var o=0;o<f;o++)n[o]=e[t[o]],i[o]=r[t[o]]},y.prototype.transform=function(t,e,r,n,i,f){this.permute(f,t,e,r,n,i);for(var o=1;o<i;o<<=1)for(var a=o<<1,s=Math.cos(2*Math.PI/a),u=Math.sin(2*Math.PI/a),l=0;l<i;l+=a)for(var h=s,c=u,d=0;d<o;d++){var p=r[l+d],m=n[l+d],g=r[l+d+o],b=n[l+d+o],y=h*g-c*b;b=h*b+c*g,g=y,r[l+d]=p+g,n[l+d]=m+b,r[l+d+o]=p-g,n[l+d+o]=m-b,d!==a&&(y=s*h-u*c,c=s*c+u*h,h=y)}},y.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},y.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},y.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},y.prototype.convert13b=function(t,e,r,i){for(var f=0,o=0;o<e;o++)f+=0|t[o],r[2*o]=8191&f,f>>>=13,r[2*o+1]=8191&f,f>>>=13;for(o=2*e;o<i;++o)r[o]=0;n(0===f),n((-8192&f)==0)},y.prototype.stub=function(t){for(var e=Array(t),r=0;r<t;r++)e[r]=0;return e},y.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),f=this.stub(n),o=Array(n),a=Array(n),s=Array(n),u=Array(n),l=Array(n),h=Array(n),c=r.words;c.length=n,this.convert13b(t.words,t.length,o,n),this.convert13b(e.words,e.length,u,n),this.transform(o,f,a,s,n,i),this.transform(u,f,l,h,n,i);for(var d=0;d<n;d++){var p=a[d]*l[d]-s[d]*h[d];s[d]=a[d]*h[d]+s[d]*l[d],a[d]=p}return this.conjugate(a,s,n),this.transform(a,s,c,f,n,i),this.conjugate(c,f,n),this.normalize13b(c,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r._strip()},f.prototype.mul=function(t){var e=new f(null);return e.words=Array(this.length+t.length),this.mulTo(t,e)},f.prototype.mulf=function(t){var e=new f(null);return e.words=Array(this.length+t.length),b(this,t,e)},f.prototype.imul=function(t){return this.clone().mulTo(t,this)},f.prototype.imuln=function(t){var e=t<0;e&&(t=-t),n("number"==typeof t),n(t<67108864);for(var r=0,i=0;i<this.length;i++){var f=(0|this.words[i])*t,o=(67108863&f)+(67108863&r);r>>=26,r+=(f/67108864|0)+(o>>>26),this.words[i]=67108863&o}return 0!==r&&(this.words[i]=r,this.length++),e?this.ineg():this},f.prototype.muln=function(t){return this.clone().imuln(t)},f.prototype.sqr=function(){return this.mul(this)},f.prototype.isqr=function(){return this.imul(this.clone())},f.prototype.pow=function(t){var e=function(t){for(var e=Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=t.words[n]>>>i&1}return e}(t);if(0===e.length)return new f(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},f.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,f=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(e=0;e<this.length;e++){var a=this.words[e]&f,s=(0|this.words[e])-a<<r;this.words[e]=s|o,o=a>>>26-r}o&&(this.words[e]=o,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this._strip()},f.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},f.prototype.iushrn=function(t,e,r){n("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var i,f=t%26,o=Math.min((t-f)/26,this.length),a=67108863^67108863>>>f<<f;if(i-=o,i=Math.max(0,i),r){for(var s=0;s<o;s++)r.words[s]=this.words[s];r.length=o}if(0===o);else if(this.length>o)for(this.length-=o,s=0;s<this.length;s++)this.words[s]=this.words[s+o];else this.words[0]=0,this.length=1;var u=0;for(s=this.length-1;s>=0&&(0!==u||s>=i);s--){var l=0|this.words[s];this.words[s]=u<<26-f|l>>>f,u=l&a}return r&&0!==u&&(r.words[r.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},f.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},f.prototype.shln=function(t){return this.clone().ishln(t)},f.prototype.ushln=function(t){return this.clone().iushln(t)},f.prototype.shrn=function(t){return this.clone().ishrn(t)},f.prototype.ushrn=function(t){return this.clone().iushrn(t)},f.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;return!(this.length<=r)&&!!(this.words[r]&1<<e)},f.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;return(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)?this:(0!==e&&r++,this.length=Math.min(r,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<<e),this._strip())},f.prototype.maskn=function(t){return this.clone().imaskn(t)},f.prototype.iaddn=function(t){return(n("number"==typeof t),n(t<67108864),t<0)?this.isubn(-t):0!==this.negative?(1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(t),this.negative=1),this):this._iaddn(t)},f.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[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},f.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<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},f.prototype.addn=function(t){return this.clone().iaddn(t)},f.prototype.subn=function(t){return this.clone().isubn(t)},f.prototype.iabs=function(){return this.negative=0,this},f.prototype.abs=function(){return this.clone().iabs()},f.prototype._ishlnsubmul=function(t,e,r){var i,f,o=t.length+r;this._expand(o);var a=0;for(i=0;i<t.length;i++){f=(0|this.words[i+r])+a;var s=(0|t.words[i])*e;f-=67108863&s,a=(f>>26)-(s/67108864|0),this.words[i+r]=67108863&f}for(;i<this.length-r;i++)a=(f=(0|this.words[i+r])+a)>>26,this.words[i+r]=67108863&f;if(0===a)return this._strip();for(n(-1===a),a=0,i=0;i<this.length;i++)a=(f=-(0|this.words[i])+a)>>26,this.words[i]=67108863&f;return this.negative=1,this._strip()},f.prototype._wordDiv=function(t,e){var r,n=this.length-t.length,i=this.clone(),o=t,a=0|o.words[o.length-1];0!=(n=26-this._countBits(a))&&(o=o.ushln(n),i.iushln(n),a=0|o.words[o.length-1]);var s=i.length-o.length;if("mod"!==e){(r=new f(null)).length=s+1,r.words=Array(r.length);for(var u=0;u<r.length;u++)r.words[u]=0}var l=i.clone()._ishlnsubmul(o,1,s);0===l.negative&&(i=l,r&&(r.words[s]=1));for(var h=s-1;h>=0;h--){var c=(0|i.words[o.length+h])*67108864+(0|i.words[o.length+h-1]);for(c=Math.min(c/a|0,67108863),i._ishlnsubmul(o,c,h);0!==i.negative;)c--,i.negative=0,i._ishlnsubmul(o,1,h),i.isZero()||(i.negative^=1);r&&(r.words[h]=c)}return r&&r._strip(),i._strip(),"div"!==e&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},f.prototype.divmod=function(t,e,r){var i,o,a;return(n(!t.isZero()),this.isZero())?{div:new f(0),mod:new f(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:i,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):(this.negative&t.negative)!=0?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||0>this.cmp(t)?{div:new f(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new f(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new f(this.modrn(t.words[0]))}:this._wordDiv(t,e)},f.prototype.div=function(t){return this.divmod(t,"div",!1).div},f.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},f.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},f.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),f=r.cmp(n);return f<0||1===i&&0===f?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},f.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=67108864%t,i=0,f=this.length-1;f>=0;f--)i=(r*i+(0|this.words[f]))%t;return e?-i:i},f.prototype.modn=function(t){return this.modrn(t)},f.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 f=(0|this.words[i])+67108864*r;this.words[i]=f/t|0,r=f%t}return this._strip(),e?this.ineg():this},f.prototype.divn=function(t){return this.clone().idivn(t)},f.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();for(var i=new f(1),o=new f(0),a=new f(0),s=new f(1),u=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++u;for(var l=r.clone(),h=e.clone();!e.isZero();){for(var c=0,d=1;(e.words[0]&d)==0&&c<26;++c,d<<=1);if(c>0)for(e.iushrn(c);c-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(l),o.isub(h)),i.iushrn(1),o.iushrn(1);for(var p=0,m=1;(r.words[0]&m)==0&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||s.isOdd())&&(a.iadd(l),s.isub(h)),a.iushrn(1),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(a),o.isub(s)):(r.isub(e),a.isub(i),s.isub(o))}return{a:a,b:s,gcd:r.iushln(u)}},f.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e,r=this,i=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var o=new f(1),a=new f(0),s=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var u=0,l=1;(r.words[0]&l)==0&&u<26;++u,l<<=1);if(u>0)for(r.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);for(var h=0,c=1;(i.words[0]&c)==0&&h<26;++h,c<<=1);if(h>0)for(i.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);r.cmp(i)>=0?(r.isub(i),o.isub(a)):(i.isub(r),a.isub(o))}return 0>(e=0===r.cmpn(1)?o:a).cmpn(0)&&e.iadd(t),e},f.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);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var f=e;e=r,r=f}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},f.prototype.invm=function(t){return this.egcd(t).a.umod(t)},f.prototype.isEven=function(){return(1&this.words[0])==0},f.prototype.isOdd=function(){return(1&this.words[0])==1},f.prototype.andln=function(t){return this.words[0]&t},f.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var f=i,o=r;0!==f&&o<this.length;o++){var a=0|this.words[o];a+=f,f=a>>>26,a&=67108863,this.words[o]=a}return 0!==f&&(this.words[o]=f,this.length++),this},f.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},f.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:i<t?-1:1}return 0!==this.negative?0|-e:e},f.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return -1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},f.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return -1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},f.prototype.gtn=function(t){return 1===this.cmpn(t)},f.prototype.gt=function(t){return 1===this.cmp(t)},f.prototype.gten=function(t){return this.cmpn(t)>=0},f.prototype.gte=function(t){return this.cmp(t)>=0},f.prototype.ltn=function(t){return -1===this.cmpn(t)},f.prototype.lt=function(t){return -1===this.cmp(t)},f.prototype.lten=function(t){return 0>=this.cmpn(t)},f.prototype.lte=function(t){return 0>=this.cmp(t)},f.prototype.eqn=function(t){return 0===this.cmpn(t)},f.prototype.eq=function(t){return 0===this.cmp(t)},f.red=function(t){return new _(t)},f.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)},f.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},f.prototype._forceRed=function(t){return this.red=t,this},f.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},f.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},f.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},f.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},f.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},f.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},f.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},f.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},f.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},f.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},f.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},f.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},f.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},f.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new f(e,16),this.n=this.p.bitLength(),this.k=new f(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 E(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(t){if("string"==typeof t){var e=f._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 N(t){_.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new f(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 f(null);return t.words=Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,r=t;do this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?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=Math.min(t.length,9),n=0;n<r;n++)e.words[n]=t.words[n];if(e.length=r,t.length<=9){t.words[0]=0,t.length=1;return}var i=t.words[9];for(n=10,e.words[e.length++]=4194303&i;n<t.length;n++){var f=0|t.words[n];t.words[n-10]=(4194303&f)<<4|i>>>22,i=f}i>>>=22,t.words[n-10]=i,0===i&&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<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(E,w),i(A,w),i(S,w),S.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=(0|t.words[r])*19+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},f._prime=function(t){var e;if(v[t])return v[t];if("k256"===t)e=new M;else if("p224"===t)e=new E;else if("p192"===t)e=new A;else if("p25519"===t)e=new S;else throw Error("Unknown prime "+t);return v[t]=e,e},_.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},_.prototype._verify2=function(t,e){n((t.negative|e.negative)==0,"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},_.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(u(t,t.umod(this.m)._forceRed(this)),t)},_.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},_.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)},_.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},_.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},_.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return 0>r.cmpn(0)&&r.iadd(this.m),r},_.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},_.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},_.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},_.prototype.isqr=function(t){return this.imul(t,t.clone())},_.prototype.sqr=function(t){return this.mul(t,t)},_.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 f(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var a=new f(1).toRed(this),s=a.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new f(2*l*l).toRed(this);0!==this.pow(l,u).cmp(s);)l.redIAdd(s);for(var h=this.pow(l,i),c=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=o;0!==d.cmp(a);){for(var m=d,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g<p);var b=this.pow(h,new f(1).iushln(p-g-1));c=c.redMul(b),h=b.redSqr(),d=d.redMul(h),p=g}return c},_.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},_.prototype.pow=function(t,e){if(e.isZero())return new f(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=Array(16);r[0]=new f(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],o=0,a=0,s=e.bitLength()%26;for(0===s&&(s=26),n=e.length-1;n>=0;n--){for(var u=e.words[n],l=s-1;l>=0;l--){var h=u>>l&1;if(i!==r[0]&&(i=this.sqr(i)),0===h&&0===o){a=0;continue}o<<=1,o|=h,(4==++a||0===n&&0===l)&&(i=this.mul(i,r[o]),a=0,o=0)}s=26}return i},_.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},_.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},f.mont=function(t){return new N(t)},i(N,_),N.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},N.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},N.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),f=i;return i.cmp(this.m)>=0?f=i.isub(this.m):0>i.cmpn(0)&&(f=i.iadd(this.m)),f._forceRed(this)},N.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new f(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),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},N.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},72086:function(t,e,r){"use strict";r.r(e),r.d(e,{Wallet:function(){return rc},verifyMessage:function(){return rd},verifyTypedData:function(){return rp}});let n=!1,i=!1,f={debug:1,default:2,info:2,warning:3,error:4,off:5},o=f.default,a=null,s=function(){try{let t=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test"!=="test".normalize(e))throw Error("bad normalize")}catch(r){t.push(e)}}),t.length)throw Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw Error("broken implementation")}catch(t){return t.message}return null}();(x=F||(F={})).DEBUG="DEBUG",x.INFO="INFO",x.WARNING="WARNING",x.ERROR="ERROR",x.OFF="OFF",(k=B||(B={})).UNKNOWN_ERROR="UNKNOWN_ERROR",k.NOT_IMPLEMENTED="NOT_IMPLEMENTED",k.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",k.NETWORK_ERROR="NETWORK_ERROR",k.SERVER_ERROR="SERVER_ERROR",k.TIMEOUT="TIMEOUT",k.BUFFER_OVERRUN="BUFFER_OVERRUN",k.NUMERIC_FAULT="NUMERIC_FAULT",k.MISSING_NEW="MISSING_NEW",k.INVALID_ARGUMENT="INVALID_ARGUMENT",k.MISSING_ARGUMENT="MISSING_ARGUMENT",k.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",k.CALL_EXCEPTION="CALL_EXCEPTION",k.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",k.NONCE_EXPIRED="NONCE_EXPIRED",k.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",k.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",k.TRANSACTION_REPLACED="TRANSACTION_REPLACED",k.ACTION_REJECTED="ACTION_REJECTED";let u="0123456789abcdef";class l{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){let r=t.toLowerCase();null==f[r]&&this.throwArgumentError("invalid log level name","logLevel",t),o>f[r]||console.log.apply(console,e)}debug(...t){this._log(l.levels.DEBUG,t)}info(...t){this._log(l.levels.INFO,t)}warn(...t){this._log(l.levels.WARNING,t)}makeError(t,e,r){if(i)return this.makeError("censored error",e,{});e||(e=l.errors.UNKNOWN_ERROR),r||(r={});let n=[];Object.keys(r).forEach(t=>{let e=r[t];try{if(e instanceof Uint8Array){let r="";for(let t=0;t<e.length;t++)r+=u[e[t]>>4]+u[15&e[t]];n.push(t+"=Uint8Array(0x"+r+")")}else n.push(t+"="+JSON.stringify(e))}catch(e){n.push(t+"="+JSON.stringify(r[t].toString()))}}),n.push(`code=${e}`),n.push(`version=${this.version}`);let f=t,o="";switch(e){case B.NUMERIC_FAULT:{o="NUMERIC_FAULT";let e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":o+="-"+e;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result"}break}case B.CALL_EXCEPTION:case B.INSUFFICIENT_FUNDS:case B.MISSING_NEW:case B.NONCE_EXPIRED:case B.REPLACEMENT_UNDERPRICED:case B.TRANSACTION_REPLACED:case B.UNPREDICTABLE_GAS_LIMIT:o=e}o&&(t+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),n.length&&(t+=" ("+n.join(", ")+")");let a=Error(t);return a.reason=f,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,l.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"),s&&this.throwError("platform missing String.prototype.normalize",l.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:s})}checkSafeUint53(t,e){"number"==typeof t&&(null==e&&(e="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(e,l.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(e,l.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,e,r){r=r?": "+r:"",t<e&&this.throwError("missing argument"+r,l.errors.MISSING_ARGUMENT,{count:t,expectedCount:e}),t>e&&this.throwError("too many arguments"+r,l.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:e})}checkNew(t,e){(t===Object||null==t)&&this.throwError("missing new",l.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",l.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):(t===Object||null==t)&&this.throwError("missing new",l.errors.MISSING_NEW,{name:e.name})}static globalLogger(){return a||(a=new l("logger/5.7.0")),a}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",l.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),n){if(!t)return;this.globalLogger().throwError("error censorship permanent",l.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}i=!!t,n=!!e}static setLogLevel(t){let e=f[t.toLowerCase()];if(null==e){l.globalLogger().warn("invalid log level - "+t);return}o=e}static from(t){return new l(t)}}l.errors=B,l.levels=F;let h=new l("bytes/5.7.0");function c(t){return!!t.toHexString}function d(t){return t.slice||(t.slice=function(){let e=Array.prototype.slice.call(arguments);return d(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function p(t){return w(t)&&!(t.length%2)||g(t)}function m(t){return"number"==typeof t&&t==t&&t%1==0}function g(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"==typeof t||!m(t.length)||t.length<0)return!1;for(let e=0;e<t.length;e++){let r=t[e];if(!m(r)||r<0||r>=256)return!1}return!0}function b(t,e){if(e||(e={}),"number"==typeof t){h.checkSafeUint53(t,"invalid arrayify value");let e=[];for(;t;)e.unshift(255&t),t=parseInt(String(t/256));return 0===e.length&&e.push(0),d(new Uint8Array(e))}if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),c(t)&&(t=t.toHexString()),w(t)){let r=t.substring(2);r.length%2&&("left"===e.hexPad?r="0"+r:"right"===e.hexPad?r+="0":h.throwArgumentError("hex data is odd-length","value",t));let n=[];for(let t=0;t<r.length;t+=2)n.push(parseInt(r.substring(t,t+2),16));return d(new Uint8Array(n))}return g(t)?d(new Uint8Array(t)):h.throwArgumentError("invalid arrayify value","value",t)}function y(t){let e=t.map(t=>b(t)),r=new Uint8Array(e.reduce((t,e)=>t+e.length,0));return e.reduce((t,e)=>(r.set(e,t),t+e.length),0),d(r)}function v(t){let e=b(t);if(0===e.length)return e;let r=0;for(;r<e.length&&0===e[r];)r++;return r&&(e=e.slice(r)),e}function w(t,e){return"string"==typeof t&&!!t.match(/^0x[0-9A-Fa-f]*$/)&&(!e||t.length===2+2*e)}let M="0123456789abcdef";function E(t,e){if(e||(e={}),"number"==typeof t){h.checkSafeUint53(t,"invalid hexlify value");let e="";for(;t;)e=M[15&t]+e,t=Math.floor(t/16);return e.length?(e.length%2&&(e="0"+e),"0x"+e):"0x00"}if("bigint"==typeof t)return(t=t.toString(16)).length%2?"0x0"+t:"0x"+t;if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),c(t))return t.toHexString();if(w(t))return t.length%2&&("left"===e.hexPad?t="0x0"+t.substring(2):"right"===e.hexPad?t+="0":h.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(g(t)){let e="0x";for(let r=0;r<t.length;r++){let n=t[r];e+=M[(240&n)>>4]+M[15&n]}return e}return h.throwArgumentError("invalid hexlify value","value",t)}function A(t){if("string"!=typeof t)t=E(t);else if(!w(t)||t.length%2)return null;return(t.length-2)/2}function S(t,e,r){return("string"!=typeof t?t=E(t):(!w(t)||t.length%2)&&h.throwArgumentError("invalid hexData","value",t),e=2+2*e,null!=r)?"0x"+t.substring(e,2+2*r):"0x"+t.substring(e)}function _(t){let e="0x";return t.forEach(t=>{e+=E(t).substring(2)}),e}function N(t,e){for("string"!=typeof t?t=E(t):w(t)||h.throwArgumentError("invalid hex string","value",t),t.length>2*e+2&&h.throwArgumentError("value out of range","value",arguments[1]);t.length<2*e+2;)t="0x0"+t.substring(2);return t}function T(t){let e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(p(t)){let r=b(t);64===r.length?(e.v=27+(r[32]>>7),r[32]&=127,e.r=E(r.slice(0,32)),e.s=E(r.slice(32,64))):65===r.length?(e.r=E(r.slice(0,32)),e.s=E(r.slice(32,64)),e.v=r[64]):h.throwArgumentError("invalid signature string","signature",t),e.v<27&&(0===e.v||1===e.v?e.v+=27:h.throwArgumentError("signature invalid v byte","signature",t)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(r[32]|=128),e._vs=E(r.slice(32,64))}else{if(e.r=t.r,e.s=t.s,e.v=t.v,e.recoveryParam=t.recoveryParam,e._vs=t._vs,null!=e._vs){let r=function(t,e){(t=b(t)).length>e&&h.throwArgumentError("value out of range","value",arguments[0]);let r=new Uint8Array(e);return r.set(t,e-t.length),d(r)}(b(e._vs),32);e._vs=E(r);let n=r[0]>=128?1:0;null==e.recoveryParam?e.recoveryParam=n:e.recoveryParam!==n&&h.throwArgumentError("signature recoveryParam mismatch _vs","signature",t),r[0]&=127;let i=E(r);null==e.s?e.s=i:e.s!==i&&h.throwArgumentError("signature v mismatch _vs","signature",t)}if(null==e.recoveryParam)null==e.v?h.throwArgumentError("signature missing v and recoveryParam","signature",t):0===e.v||1===e.v?e.recoveryParam=e.v:e.recoveryParam=1-e.v%2;else if(null==e.v)e.v=27+e.recoveryParam;else{let r=0===e.v||1===e.v?e.v:1-e.v%2;e.recoveryParam!==r&&h.throwArgumentError("signature recoveryParam mismatch v","signature",t)}null!=e.r&&w(e.r)?e.r=N(e.r,32):h.throwArgumentError("signature missing or invalid r","signature",t),null!=e.s&&w(e.s)?e.s=N(e.s,32):h.throwArgumentError("signature missing or invalid s","signature",t);let r=b(e.s);r[0]>=128&&h.throwArgumentError("signature s out of range","signature",t),e.recoveryParam&&(r[0]|=128);let n=E(r);e._vs&&(w(e._vs)||h.throwArgumentError("signature invalid _vs","signature",t),e._vs=N(e._vs,32)),null==e._vs?e._vs=n:e._vs!==n&&h.throwArgumentError("signature _vs mismatch v and s","signature",t)}return e.yParityAndS=e._vs,e.compact=e.r+e.yParityAndS.substring(2),e}function R(t){return E(y([(t=T(t)).r,t.s,t.recoveryParam?"0x1c":"0x1b"]))}var C,I,P,O,x,k,F,B,L,D,U,G,z=r(21758),J=r.n(z),j=J().BN;let H=new l("bignumber/5.7.0"),V={},X=!1;class q{constructor(t,e){t!==V&&H.throwError("cannot call constructor directly; use BigNumber.from",l.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=e,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return K(W(this).fromTwos(t))}toTwos(t){return K(W(this).toTwos(t))}abs(){return"-"===this._hex[0]?q.from(this._hex.substring(1)):this}add(t){return K(W(this).add(W(t)))}sub(t){return K(W(this).sub(W(t)))}div(t){return q.from(t).isZero()&&Y("division-by-zero","div"),K(W(this).div(W(t)))}mul(t){return K(W(this).mul(W(t)))}mod(t){let e=W(t);return e.isNeg()&&Y("division-by-zero","mod"),K(W(this).umod(e))}pow(t){let e=W(t);return e.isNeg()&&Y("negative-power","pow"),K(W(this).pow(e))}and(t){let e=W(t);return(this.isNegative()||e.isNeg())&&Y("unbound-bitwise-result","and"),K(W(this).and(e))}or(t){let e=W(t);return(this.isNegative()||e.isNeg())&&Y("unbound-bitwise-result","or"),K(W(this).or(e))}xor(t){let e=W(t);return(this.isNegative()||e.isNeg())&&Y("unbound-bitwise-result","xor"),K(W(this).xor(e))}mask(t){return(this.isNegative()||t<0)&&Y("negative-width","mask"),K(W(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&Y("negative-width","shl"),K(W(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&Y("negative-width","shr"),K(W(this).shrn(t))}eq(t){return W(this).eq(W(t))}lt(t){return W(this).lt(W(t))}lte(t){return W(this).lte(W(t))}gt(t){return W(this).gt(W(t))}gte(t){return W(this).gte(W(t))}isNegative(){return"-"===this._hex[0]}isZero(){return W(this).isZero()}toNumber(){try{return W(this).toNumber()}catch(t){Y("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(t){}return H.throwError("this platform does not support BigInt",l.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?X||(X=!0,H.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?H.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",l.errors.UNEXPECTED_ARGUMENT,{}):H.throwError("BigNumber.toString does not accept parameters",l.errors.UNEXPECTED_ARGUMENT,{})),W(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof q)return t;if("string"==typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new q(V,Z(t)):t.match(/^-?[0-9]+$/)?new q(V,Z(new j(t))):H.throwArgumentError("invalid BigNumber string","value",t);if("number"==typeof t)return t%1&&Y("underflow","BigNumber.from",t),(t>=9007199254740991||t<=-9007199254740991)&&Y("overflow","BigNumber.from",t),q.from(String(t));if("bigint"==typeof t)return q.from(t.toString());if(g(t))return q.from(E(t));if(t){if(t.toHexString){let e=t.toHexString();if("string"==typeof e)return q.from(e)}else{let e=t._hex;if(null==e&&"BigNumber"===t.type&&(e=t.hex),"string"==typeof e&&(w(e)||"-"===e[0]&&w(e.substring(1))))return q.from(e)}}return H.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!!(t&&t._isBigNumber)}}function Z(t){if("string"!=typeof t)return Z(t.toString(16));if("-"===t[0])return("-"===(t=t.substring(1))[0]&&H.throwArgumentError("invalid hex","value",t),"0x00"===(t=Z(t)))?t:"-"+t;if("0x"!==t.substring(0,2)&&(t="0x"+t),"0x"===t)return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&"0x00"===t.substring(0,4);)t="0x"+t.substring(4);return t}function K(t){return q.from(Z(t))}function W(t){let e=q.from(t).toHexString();return"-"===e[0]?new j("-"+e.substring(3),16):new j(e.substring(2),16)}function Y(t,e,r){let n={fault:t,operation:e};return null!=r&&(n.value=r),H.throwError(t,l.errors.NUMERIC_FAULT,n)}var Q=r(66084),$=r.n(Q);function tt(t){return"0x"+$().keccak_256(b(t))}let te=new l("address/5.7.0");function tr(t){w(t,20)||te.throwArgumentError("invalid address","address",t);let e=(t=t.toLowerCase()).substring(2).split(""),r=new Uint8Array(40);for(let t=0;t<40;t++)r[t]=e[t].charCodeAt(0);let n=b(tt(r));for(let t=0;t<40;t+=2)n[t>>1]>>4>=8&&(e[t]=e[t].toUpperCase()),(15&n[t>>1])>=8&&(e[t+1]=e[t+1].toUpperCase());return"0x"+e.join("")}let tn={};for(let t=0;t<10;t++)tn[String(t)]=String(t);for(let t=0;t<26;t++)tn[String.fromCharCode(65+t)]=String(10+t);let ti=Math.floor(Math.log10?Math.log10(9007199254740991):Math.log(9007199254740991)/Math.LN10);function tf(t){let e=null;if("string"!=typeof t&&te.throwArgumentError("invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==t.substring(0,2)&&(t="0x"+t),e=tr(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&te.throwArgumentError("bad address checksum","address",t);else if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(t.substring(2,4)!==function(t){let e=(t=(t=t.toUpperCase()).substring(4)+t.substring(0,2)+"00").split("").map(t=>tn[t]).join("");for(;e.length>=ti;){let t=e.substring(0,ti);e=parseInt(t,10)%97+e.substring(t.length)}let r=String(98-parseInt(e,10)%97);for(;r.length<2;)r="0"+r;return r}(t)&&te.throwArgumentError("bad icap checksum","address",t),e=new j(t.substring(4),36).toString(16);e.length<40;)e="0"+e;e=tr("0x"+e)}else te.throwArgumentError("invalid address","address",t);return e}let to=new l("properties/5.7.0");function ta(t,e,r){Object.defineProperty(t,e,{enumerable:!0,value:r,writable:!1})}function ts(t){var e,r,n,i;return e=this,r=void 0,n=void 0,i=function*(){let e=Object.keys(t).map(e=>Promise.resolve(t[e]).then(t=>({key:e,value:t})));return(yield Promise.all(e)).reduce((t,e)=>(t[e.key]=e.value,t),{})},new(n||(n=Promise))(function(t,f){function o(t){try{s(i.next(t))}catch(t){f(t)}}function a(t){try{s(i.throw(t))}catch(t){f(t)}}function s(e){var r;e.done?t(e.value):((r=e.value)instanceof n?r:new n(function(t){t(r)})).then(o,a)}s((i=i.apply(e,r||[])).next())})}function tu(t){let e={};for(let r in t)e[r]=t[r];return e}let tl={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function th(t){return function(t){if(function t(e){if(null==e||tl[typeof e])return!0;if(Array.isArray(e)||"object"==typeof e){if(!Object.isFrozen(e))return!1;let r=Object.keys(e);for(let n=0;n<r.length;n++){let i=null;try{i=e[r[n]]}catch(t){continue}if(!t(i))return!1}return!0}return to.throwArgumentError(`Cannot deepCopy ${typeof e}`,"object",e)}(t))return t;if(Array.isArray(t))return Object.freeze(t.map(t=>th(t)));if("object"==typeof t){let e={};for(let r in t){let n=t[r];void 0!==n&&ta(e,r,th(n))}return e}return to.throwArgumentError(`Cannot deepCopy ${typeof t}`,"object",t)}(t)}class tc{constructor(t){for(let e in t)this[e]=th(t[e])}}let td=new l("abstract-provider/5.7.0");class tp{constructor(){td.checkAbstract(new.target,tp),ta(this,"_isProvider",!0)}getFeeData(){var t,e,r,n;return t=this,e=void 0,r=void 0,n=function*(){let{block:t,gasPrice:e}=yield ts({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch(t=>null)}),r=null,n=null,i=null;return t&&t.baseFeePerGas&&(r=t.baseFeePerGas,i=q.from("1500000000"),n=t.baseFeePerGas.mul(2).add(i)),{lastBaseFeePerGas:r,maxFeePerGas:n,maxPriorityFeePerGas:i,gasPrice:e}},new(r||(r=Promise))(function(i,f){function o(t){try{s(n.next(t))}catch(t){f(t)}}function a(t){try{s(n.throw(t))}catch(t){f(t)}}function s(t){var e;t.done?i(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(o,a)}s((n=n.apply(t,e||[])).next())})}addListener(t,e){return this.on(t,e)}removeListener(t,e){return this.off(t,e)}static isProvider(t){return!!(t&&t._isProvider)}}var tm=function(t,e,r,n){return new(r||(r=Promise))(function(i,f){function o(t){try{s(n.next(t))}catch(t){f(t)}}function a(t){try{s(n.throw(t))}catch(t){f(t)}}function s(t){var e;t.done?i(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(o,a)}s((n=n.apply(t,e||[])).next())})};let tg=new l("abstract-signer/5.7.0"),tb=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],ty=[l.errors.INSUFFICIENT_FUNDS,l.errors.NONCE_EXPIRED,l.errors.REPLACEMENT_UNDERPRICED];class tv{constructor(){tg.checkAbstract(new.target,tv),ta(this,"_isSigner",!0)}getBalance(t){return tm(this,void 0,void 0,function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),t)})}getTransactionCount(t){return tm(this,void 0,void 0,function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),t)})}estimateGas(t){return tm(this,void 0,void 0,function*(){this._checkProvider("estimateGas");let e=yield ts(this.checkTransaction(t));return yield this.provider.estimateGas(e)})}call(t,e){return tm(this,void 0,void 0,function*(){this._checkProvider("call");let r=yield ts(this.checkTransaction(t));return yield this.provider.call(r,e)})}sendTransaction(t){return tm(this,void 0,void 0,function*(){this._checkProvider("sendTransaction");let e=yield this.populateTransaction(t),r=yield this.signTransaction(e);return yield this.provider.sendTransaction(r)})}getChainId(){return tm(this,void 0,void 0,function*(){return this._checkProvider("getChainId"),(yield this.provider.getNetwork()).chainId})}getGasPrice(){return tm(this,void 0,void 0,function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()})}getFeeData(){return tm(this,void 0,void 0,function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()})}resolveName(t){return tm(this,void 0,void 0,function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(t)})}checkTransaction(t){for(let e in t)-1===tb.indexOf(e)&&tg.throwArgumentError("invalid transaction key: "+e,"transaction",t);let e=tu(t);return null==e.from?e.from=this.getAddress():e.from=Promise.all([Promise.resolve(e.from),this.getAddress()]).then(e=>(e[0].toLowerCase()!==e[1].toLowerCase()&&tg.throwArgumentError("from address mismatch","transaction",t),e[0])),e}populateTransaction(t){return tm(this,void 0,void 0,function*(){let e=yield ts(this.checkTransaction(t));null!=e.to&&(e.to=Promise.resolve(e.to).then(t=>tm(this,void 0,void 0,function*(){if(null==t)return null;let e=yield this.resolveName(t);return null==e&&tg.throwArgumentError("provided ENS name resolves to null","tx.to",t),e})),e.to.catch(t=>{}));let r=null!=e.maxFeePerGas||null!=e.maxPriorityFeePerGas;if(null!=e.gasPrice&&(2===e.type||r)?tg.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",t):(0===e.type||1===e.type)&&r&&tg.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",t),(2===e.type||null==e.type)&&null!=e.maxFeePerGas&&null!=e.maxPriorityFeePerGas)e.type=2;else if(0===e.type||1===e.type)null==e.gasPrice&&(e.gasPrice=this.getGasPrice());else{let t=yield this.getFeeData();if(null==e.type){if(null!=t.maxFeePerGas&&null!=t.maxPriorityFeePerGas){if(e.type=2,null!=e.gasPrice){let t=e.gasPrice;delete e.gasPrice,e.maxFeePerGas=t,e.maxPriorityFeePerGas=t}else null==e.maxFeePerGas&&(e.maxFeePerGas=t.maxFeePerGas),null==e.maxPriorityFeePerGas&&(e.maxPriorityFeePerGas=t.maxPriorityFeePerGas)}else null!=t.gasPrice?(r&&tg.throwError("network does not support EIP-1559",l.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),null==e.gasPrice&&(e.gasPrice=t.gasPrice),e.type=0):tg.throwError("failed to get consistent fee data",l.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"})}else 2===e.type&&(null==e.maxFeePerGas&&(e.maxFeePerGas=t.maxFeePerGas),null==e.maxPriorityFeePerGas&&(e.maxPriorityFeePerGas=t.maxPriorityFeePerGas))}return null==e.nonce&&(e.nonce=this.getTransactionCount("pending")),null==e.gasLimit&&(e.gasLimit=this.estimateGas(e).catch(t=>{if(ty.indexOf(t.code)>=0)throw t;return tg.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",l.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,tx:e})})),null==e.chainId?e.chainId=this.getChainId():e.chainId=Promise.all([Promise.resolve(e.chainId),this.getChainId()]).then(e=>(0!==e[1]&&e[0]!==e[1]&&tg.throwArgumentError("chainId address mismatch","transaction",t),e[0])),yield ts(e)})}_checkProvider(t){this.provider||tg.throwError("missing provider",l.errors.UNSUPPORTED_OPERATION,{operation:t||"_checkProvider"})}static isSigner(t){return!!(t&&t._isSigner)}}let tw=new l("strings/5.7.0");function tM(t,e,r,n,i){if(t===D.BAD_PREFIX||t===D.UNEXPECTED_CONTINUE){let t=0;for(let n=e+1;n<r.length&&r[n]>>6==2;n++)t++;return t}return t===D.OVERRUN?r.length-e-1:0}function tE(t,e=L.current){e!=L.current&&(tw.checkNormalize(),t=t.normalize(e));let r=[];for(let e=0;e<t.length;e++){let n=t.charCodeAt(e);if(n<128)r.push(n);else if(n<2048)r.push(n>>6|192),r.push(63&n|128);else if((64512&n)==55296){e++;let i=t.charCodeAt(e);if(e>=t.length||(64512&i)!=56320)throw Error("invalid utf-8 string");let f=65536+((1023&n)<<10)+(1023&i);r.push(f>>18|240),r.push(f>>12&63|128),r.push(f>>6&63|128),r.push(63&f|128)}else r.push(n>>12|224),r.push(n>>6&63|128),r.push(63&n|128)}return b(r)}function tA(t){return"string"==typeof t&&(t=tE(t)),tt(y([tE("\x19Ethereum Signed Message:\n"),tE(String(t.length)),t]))}(C=L||(L={})).current="",C.NFC="NFC",C.NFD="NFD",C.NFKC="NFKC",C.NFKD="NFKD",(I=D||(D={})).UNEXPECTED_CONTINUE="unexpected continuation byte",I.BAD_PREFIX="bad codepoint prefix",I.OVERRUN="string overrun",I.MISSING_CONTINUE="missing continuation byte",I.OUT_OF_RANGE="out of UTF-8 range",I.UTF16_SURROGATE="UTF-16 surrogate",I.OVERLONG="overlong representation",Object.freeze({error:function(t,e,r,n,i){return tw.throwArgumentError(`invalid codepoint at offset ${e}; ${t}`,"bytes",r)},ignore:tM,replace:function(t,e,r,n,i){return t===D.OVERLONG?(n.push(i),0):(n.push(65533),tM(t,e,r,n,i))}});let tS=new l("hash/5.7.0"),t_=new Uint8Array(32);t_.fill(0);let tN=q.from(-1),tT=q.from(0),tR=q.from(1),tC=q.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),tI=N(tR.toHexString(),32),tP=N(tT.toHexString(),32),tO={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},tx=["name","version","chainId","verifyingContract","salt"];function tk(t){return function(e){return"string"!=typeof e&&tS.throwArgumentError(`invalid domain value for ${JSON.stringify(t)}`,`domain.${t}`,e),e}}let tF={name:tk("name"),version:tk("version"),chainId:function(t){try{return q.from(t).toString()}catch(t){}return tS.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",t)},verifyingContract:function(t){try{return tf(t).toLowerCase()}catch(t){}return tS.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",t)},salt:function(t){try{let e=b(t);if(32!==e.length)throw Error("bad length");return E(e)}catch(t){}return tS.throwArgumentError('invalid domain value "salt"',"domain.salt",t)}};function tB(t){{let e=t.match(/^(u?)int(\d*)$/);if(e){let r=""===e[1],n=parseInt(e[2]||"256");(n%8!=0||n>256||e[2]&&e[2]!==String(n))&&tS.throwArgumentError("invalid numeric width","type",t);let i=tC.mask(r?n-1:n),f=r?i.add(tR).mul(tN):tT;return function(e){let r=q.from(e);return(r.lt(f)||r.gt(i))&&tS.throwArgumentError(`value out-of-bounds for ${t}`,"value",e),N(r.toTwos(256).toHexString(),32)}}}{let e=t.match(/^bytes(\d+)$/);if(e){let r=parseInt(e[1]);return(0===r||r>32||e[1]!==String(r))&&tS.throwArgumentError("invalid bytes width","type",t),function(e){return b(e).length!==r&&tS.throwArgumentError(`invalid length for ${t}`,"value",e),function(t){let e=b(t),r=e.length%32;return r?_([e,t_.slice(r)]):E(e)}(e)}}}switch(t){case"address":return function(t){return N(tf(t),32)};case"bool":return function(t){return t?tI:tP};case"bytes":return function(t){return tt(t)};case"string":return function(t){return tt(tE(t))}}return null}function tL(t,e){return`${t}(${e.map(({name:t,type:e})=>e+" "+t).join(",")})`}class tD{constructor(t){ta(this,"types",Object.freeze(th(t))),ta(this,"_encoderCache",{}),ta(this,"_types",{});let e={},r={},n={};for(let i in Object.keys(t).forEach(t=>{e[t]={},r[t]=[],n[t]={}}),t){let n={};t[i].forEach(f=>{n[f.name]&&tS.throwArgumentError(`duplicate variable name ${JSON.stringify(f.name)} in ${JSON.stringify(i)}`,"types",t),n[f.name]=!0;let o=f.type.match(/^([^\x5b]*)(\x5b|$)/)[1];o===i&&tS.throwArgumentError(`circular type reference to ${JSON.stringify(o)}`,"types",t),tB(o)||(r[o]||tS.throwArgumentError(`unknown type ${JSON.stringify(o)}`,"types",t),r[o].push(i),e[i][o]=!0)})}let i=Object.keys(r).filter(t=>0===r[t].length);for(let f in 0===i.length?tS.throwArgumentError("missing primary type","types",t):i.length>1&&tS.throwArgumentError(`ambiguous primary types or unused types: ${i.map(t=>JSON.stringify(t)).join(", ")}`,"types",t),ta(this,"primaryType",i[0]),!function i(f,o){o[f]&&tS.throwArgumentError(`circular type reference to ${JSON.stringify(f)}`,"types",t),o[f]=!0,Object.keys(e[f]).forEach(t=>{r[t]&&(i(t,o),Object.keys(o).forEach(e=>{n[e][t]=!0}))}),delete o[f]}(this.primaryType,{}),n){let e=Object.keys(n[f]);e.sort(),this._types[f]=tL(f,t[f])+e.map(e=>tL(e,t[e])).join("")}}getEncoder(t){let e=this._encoderCache[t];return e||(e=this._encoderCache[t]=this._getEncoder(t)),e}_getEncoder(t){{let e=tB(t);if(e)return e}let e=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(e){let t=e[1],r=this.getEncoder(t),n=parseInt(e[3]);return e=>{n>=0&&e.length!==n&&tS.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",e);let i=e.map(r);return this._types[t]&&(i=i.map(tt)),tt(_(i))}}let r=this.types[t];if(r){let e=tt(tE(this._types[t]));return t=>{let n=r.map(({name:e,type:r})=>{let n=this.getEncoder(r)(t[e]);return this._types[r]?tt(n):n});return n.unshift(e),_(n)}}return tS.throwArgumentError(`unknown type: ${t}`,"type",t)}encodeType(t){let e=this._types[t];return e||tS.throwArgumentError(`unknown type: ${JSON.stringify(t)}`,"name",t),e}encodeData(t,e){return this.getEncoder(t)(e)}hashStruct(t,e){return tt(this.encodeData(t,e))}encode(t){return this.encodeData(this.primaryType,t)}hash(t){return this.hashStruct(this.primaryType,t)}_visit(t,e,r){if(tB(t))return r(t,e);let n=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(n){let t=n[1],i=parseInt(n[3]);return i>=0&&e.length!==i&&tS.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",e),e.map(e=>this._visit(t,e,r))}let i=this.types[t];return i?i.reduce((t,{name:n,type:i})=>(t[n]=this._visit(i,e[n],r),t),{}):tS.throwArgumentError(`unknown type: ${t}`,"type",t)}visit(t,e){return this._visit(this.primaryType,t,e)}static from(t){return new tD(t)}static getPrimaryType(t){return tD.from(t).primaryType}static hashStruct(t,e,r){return tD.from(e).hashStruct(t,r)}static hashDomain(t){let e=[];for(let r in t){let n=tO[r];n||tS.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(r)}`,"domain",t),e.push({name:r,type:n})}return e.sort((t,e)=>tx.indexOf(t.name)-tx.indexOf(e.name)),tD.hashStruct("EIP712Domain",{EIP712Domain:e},t)}static encode(t,e,r){return _(["0x1901",tD.hashDomain(t),tD.from(e).hash(r)])}static hash(t,e,r){return tt(tD.encode(t,e,r))}static resolveNames(t,e,r,n){var i,f,o,a;return i=this,f=void 0,o=void 0,a=function*(){t=tu(t);let i={};t.verifyingContract&&!w(t.verifyingContract,20)&&(i[t.verifyingContract]="0x");let f=tD.from(e);for(let t in f.visit(r,(t,e)=>("address"!==t||w(e,20)||(i[e]="0x"),e)),i)i[t]=yield n(t);return t.verifyingContract&&i[t.verifyingContract]&&(t.verifyingContract=i[t.verifyingContract]),r=f.visit(r,(t,e)=>"address"===t&&i[e]?i[e]:e),{domain:t,value:r}},new(o||(o=Promise))(function(t,e){function r(t){try{s(a.next(t))}catch(t){e(t)}}function n(t){try{s(a.throw(t))}catch(t){e(t)}}function s(e){var i;e.done?t(e.value):((i=e.value)instanceof o?i:new o(function(t){t(i)})).then(r,n)}s((a=a.apply(i,f||[])).next())})}static getPayload(t,e,r){tD.hashDomain(t);let n={},i=[];tx.forEach(e=>{let r=t[e];null!=r&&(n[e]=tF[e](r),i.push({name:e,type:tO[e]}))});let f=tD.from(e),o=tu(e);return o.EIP712Domain?tS.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",e):o.EIP712Domain=i,f.encode(r),{types:o,domain:n,primaryType:f.primaryType,message:f.visit(r,(t,e)=>{if(t.match(/^bytes(\d*)/))return E(b(e));if(t.match(/^u?int/))return q.from(e).toString();switch(t){case"address":return e.toLowerCase();case"bool":return!!e;case"string":return"string"!=typeof e&&tS.throwArgumentError("invalid string","value",e),e}return tS.throwArgumentError("unsupported type","type",t)})}}}class tU{constructor(t){ta(this,"alphabet",t),ta(this,"base",t.length),ta(this,"_alphabetMap",{}),ta(this,"_leader",t.charAt(0));for(let e=0;e<t.length;e++)this._alphabetMap[t.charAt(e)]=e}encode(t){let e=b(t);if(0===e.length)return"";let r=[0];for(let t=0;t<e.length;++t){let n=e[t];for(let t=0;t<r.length;++t)n+=r[t]<<8,r[t]=n%this.base,n=n/this.base|0;for(;n>0;)r.push(n%this.base),n=n/this.base|0}let n="";for(let t=0;0===e[t]&&t<e.length-1;++t)n+=this._leader;for(let t=r.length-1;t>=0;--t)n+=this.alphabet[r[t]];return n}decode(t){if("string"!=typeof t)throw TypeError("Expected String");let e=[];if(0===t.length)return new Uint8Array(e);e.push(0);for(let r=0;r<t.length;r++){let n=this._alphabetMap[t[r]];if(void 0===n)throw Error("Non-base"+this.base+" character");let i=n;for(let t=0;t<e.length;++t)i+=e[t]*this.base,e[t]=255&i,i>>=8;for(;i>0;)e.push(255&i),i>>=8}for(let r=0;t[r]===this._leader&&r<t.length-1;++r)e.push(0);return b(new Uint8Array(e.reverse()))}}new tU("abcdefghijklmnopqrstuvwxyz234567");let tG=new tU("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz");var tz=r(33715),tJ=r.n(tz);(P=U||(U={})).sha256="sha256",P.sha512="sha512";let tj=new l("sha2/5.7.0");function tH(t){return"0x"+tJ().sha256().update(b(t)).digest("hex")}function tV(t,e,r){return U[t]||tj.throwError("unsupported algorithm "+t,l.errors.UNSUPPORTED_OPERATION,{operation:"hmac",algorithm:t}),"0x"+tJ().hmac(tJ()[t],b(e)).update(b(r)).digest("hex")}function tX(t,e,r,n,i){let f,o,a;t=b(t),e=b(e);let s=1,u=new Uint8Array(n),l=new Uint8Array(e.length+4);l.set(e);for(let h=1;h<=s;h++){l[e.length]=h>>24&255,l[e.length+1]=h>>16&255,l[e.length+2]=h>>8&255,l[e.length+3]=255&h;let c=b(tV(i,t,l));f||(a=new Uint8Array(f=c.length),s=Math.ceil(n/f),o=n-(s-1)*f),a.set(c);for(let e=1;e<r;e++){c=b(tV(i,t,c));for(let t=0;t<f;t++)a[t]^=c[t]}let d=(h-1)*f,p=h===s?o:f;u.set(b(a).slice(0,p),d)}return E(u)}function tq(t,e,r){return t(r={path:e,exports:{},require:function(t,e){return function(){throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(t,null==e?r.path:e)}},r.exports),r.exports}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self&&self;var tZ=tK;function tK(t,e){if(!t)throw Error(e||"Assertion failed")}tK.equal=function(t,e,r){if(t!=e)throw Error(r||"Assertion failed: "+t+" != "+e)};var tW=tq(function(t,e){function r(t){return 1===t.length?"0"+t:t}function n(t){for(var e="",n=0;n<t.length;n++)e+=r(t[n].toString(16));return e}e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"!=typeof t){for(var n=0;n<t.length;n++)r[n]=0|t[n];return r}if("hex"===e){(t=t.replace(/[^a-z0-9]+/ig,"")).length%2!=0&&(t="0"+t);for(var n=0;n<t.length;n+=2)r.push(parseInt(t[n]+t[n+1],16))}else for(var n=0;n<t.length;n++){var i=t.charCodeAt(n),f=i>>8,o=255&i;f?r.push(f,o):r.push(o)}return r},e.zero2=r,e.toHex=n,e.encode=function(t,e){return"hex"===e?n(t):t}}),tY=tq(function(t,e){e.assert=tZ,e.toArray=tW.toArray,e.zero2=tW.zero2,e.toHex=tW.toHex,e.encode=tW.encode,e.getNAF=function(t,e,r){var n=Array(Math.max(t.bitLength(),r)+1);n.fill(0);for(var i=1<<e+1,f=t.clone(),o=0;o<n.length;o++){var a,s=f.andln(i-1);f.isOdd()?(a=s>(i>>1)-1?(i>>1)-s:s,f.isubn(a)):a=0,n[o]=a,f.iushrn(1)}return n},e.getJSF=function(t,e){var r=[[],[]];t=t.clone(),e=e.clone();for(var n=0,i=0;t.cmpn(-n)>0||e.cmpn(-i)>0;){var f,o,a,s=t.andln(3)+n&3,u=e.andln(3)+i&3;3===s&&(s=-1),3===u&&(u=-1),o=(1&s)==0?0:(3==(f=t.andln(7)+n&7)||5===f)&&2===u?-s:s,r[0].push(o),a=(1&u)==0?0:(3==(f=e.andln(7)+i&7)||5===f)&&2===s?-u:u,r[1].push(a),2*n===o+1&&(n=1-n),2*i===a+1&&(i=1-i),t.iushrn(1),e.iushrn(1)}return r},e.cachedProperty=function(t,e,r){var n="_"+e;t.prototype[e]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},e.parseBytes=function(t){return"string"==typeof t?e.toArray(t,"hex"):t},e.intFromLE=function(t){return new(J())(t,"hex","le")}}),tQ=tY.getNAF,t$=tY.getJSF,t0=tY.assert;function t1(t,e){this.type=t,this.p=new(J())(e.p,16),this.red=e.prime?J().red(e.prime):J().mont(this.p),this.zero=new(J())(0).toRed(this.red),this.one=new(J())(1).toRed(this.red),this.two=new(J())(2).toRed(this.red),this.n=e.n&&new(J())(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],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 t6(t,e){this.curve=t,this.type=e,this.precomputed=null}t1.prototype.point=function(){throw Error("Not implemented")},t1.prototype.validate=function(){throw Error("Not implemented")},t1.prototype._fixedNafMul=function(t,e){t0(t.precomputed);var r,n,i=t._getDoubles(),f=tQ(e,1,this._bitLength),o=(1<<i.step+1)-(i.step%2==0?2:1);o/=3;var a=[];for(r=0;r<f.length;r+=i.step){n=0;for(var s=r+i.step-1;s>=r;s--)n=(n<<1)+f[s];a.push(n)}for(var u=this.jpoint(null,null,null),l=this.jpoint(null,null,null),h=o;h>0;h--){for(r=0;r<a.length;r++)(n=a[r])===h?l=l.mixedAdd(i.points[r]):n===-h&&(l=l.mixedAdd(i.points[r].neg()));u=u.add(l)}return u.toP()},t1.prototype._wnafMul=function(t,e){var r=4,n=t._getNAFPoints(r);r=n.wnd;for(var i=n.points,f=tQ(e,r,this._bitLength),o=this.jpoint(null,null,null),a=f.length-1;a>=0;a--){for(var s=0;a>=0&&0===f[a];a--)s++;if(a>=0&&s++,o=o.dblp(s),a<0)break;var u=f[a];t0(0!==u),o="affine"===t.type?u>0?o.mixedAdd(i[u-1>>1]):o.mixedAdd(i[-u-1>>1].neg()):u>0?o.add(i[u-1>>1]):o.add(i[-u-1>>1].neg())}return"affine"===t.type?o.toP():o},t1.prototype._wnafMulAdd=function(t,e,r,n,i){var f,o,a,s=this._wnafT1,u=this._wnafT2,l=this._wnafT3,h=0;for(f=0;f<n;f++){var c=(a=e[f])._getNAFPoints(t);s[f]=c.wnd,u[f]=c.points}for(f=n-1;f>=1;f-=2){var d=f-1,p=f;if(1!==s[d]||1!==s[p]){l[d]=tQ(r[d],s[d],this._bitLength),l[p]=tQ(r[p],s[p],this._bitLength),h=Math.max(l[d].length,h),h=Math.max(l[p].length,h);continue}var m=[e[d],null,null,e[p]];0===e[d].y.cmp(e[p].y)?(m[1]=e[d].add(e[p]),m[2]=e[d].toJ().mixedAdd(e[p].neg())):0===e[d].y.cmp(e[p].y.redNeg())?(m[1]=e[d].toJ().mixedAdd(e[p]),m[2]=e[d].add(e[p].neg())):(m[1]=e[d].toJ().mixedAdd(e[p]),m[2]=e[d].toJ().mixedAdd(e[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],b=t$(r[d],r[p]);for(o=0,h=Math.max(b[0].length,h),l[d]=Array(h),l[p]=Array(h);o<h;o++){var y=0|b[0][o],v=0|b[1][o];l[d][o]=g[(y+1)*3+(v+1)],l[p][o]=0,u[d]=m}}var w=this.jpoint(null,null,null),M=this._wnafT4;for(f=h;f>=0;f--){for(var E=0;f>=0;){var A=!0;for(o=0;o<n;o++)M[o]=0|l[o][f],0!==M[o]&&(A=!1);if(!A)break;E++,f--}if(f>=0&&E++,w=w.dblp(E),f<0)break;for(o=0;o<n;o++){var S=M[o];0!==S&&(S>0?a=u[o][S-1>>1]:S<0&&(a=u[o][-S-1>>1].neg()),w="affine"===a.type?w.mixedAdd(a):w.add(a))}}for(f=0;f<n;f++)u[f]=null;return i?w:w.toP()},t1.BasePoint=t6,t6.prototype.eq=function(){throw Error("Not implemented")},t6.prototype.validate=function(){return this.curve.validate(this)},t1.prototype.decodePoint=function(t,e){t=tY.toArray(t,e);var r=this.p.byteLength();if((4===t[0]||6===t[0]||7===t[0])&&t.length-1==2*r)return 6===t[0]?t0(t[t.length-1]%2==0):7===t[0]&&t0(t[t.length-1]%2==1),this.point(t.slice(1,1+r),t.slice(1+r,1+2*r));if((2===t[0]||3===t[0])&&t.length-1===r)return this.pointFromX(t.slice(1,1+r),3===t[0]);throw Error("Unknown point format")},t6.prototype.encodeCompressed=function(t){return this.encode(t,!0)},t6.prototype._encode=function(t){var e=this.curve.p.byteLength(),r=this.getX().toArray("be",e);return t?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",e))},t6.prototype.encode=function(t,e){return tY.encode(this._encode(e),t)},t6.prototype.precompute=function(t){if(this.precomputed)return this;var e={doubles:null,naf:null,beta:null};return e.naf=this._getNAFPoints(8),e.doubles=this._getDoubles(4,t),e.beta=this._getBeta(),this.precomputed=e,this},t6.prototype._hasDoubles=function(t){if(!this.precomputed)return!1;var e=this.precomputed.doubles;return!!e&&e.points.length>=Math.ceil((t.bitLength()+1)/e.step)},t6.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<e;i+=t){for(var f=0;f<t;f++)n=n.dbl();r.push(n)}return{step:t,points:r}},t6.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var e=[this],r=(1<<t)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)e[i]=e[i-1].add(n);return{wnd:t,points:e}},t6.prototype._getBeta=function(){return null},t6.prototype.dblp=function(t){for(var e=this,r=0;r<t;r++)e=e.dbl();return e};var t5=tq(function(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}}),t2=tY.assert;function t8(t){t1.call(this,"short",t),this.a=new(J())(t.a,16).toRed(this.red),this.b=new(J())(t.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(t),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}function t3(t,e,r,n){t1.BasePoint.call(this,t,"affine"),null===e&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new(J())(e,16),this.y=new(J())(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function t4(t,e,r,n){t1.BasePoint.call(this,t,"jacobian"),null===e&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new(J())(0)):(this.x=new(J())(e,16),this.y=new(J())(r,16),this.z=new(J())(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}t5(t8,t1),t8.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){if(t.beta)e=new(J())(t.beta,16).toRed(this.red);else{var e,r,n,i=this._getEndoRoots(this.p);e=(e=0>i[0].cmp(i[1])?i[0]:i[1]).toRed(this.red)}if(t.lambda)r=new(J())(t.lambda,16);else{var f=this._getEndoRoots(this.n);0===this.g.mul(f[0]).x.cmp(this.g.x.redMul(e))?r=f[0]:(r=f[1],t2(0===this.g.mul(r).x.cmp(this.g.x.redMul(e))))}return n=t.basis?t.basis.map(function(t){return{a:new(J())(t.a,16),b:new(J())(t.b,16)}}):this._getEndoBasis(r),{beta:e,lambda:r,basis:n}}},t8.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:J().mont(t),r=new(J())(2).toRed(e).redInvm(),n=r.redNeg(),i=new(J())(3).toRed(e).redNeg().redSqrt().redMul(r);return[n.redAdd(i).fromRed(),n.redSub(i).fromRed()]},t8.prototype._getEndoBasis=function(t){for(var e,r,n,i,f,o,a,s,u,l=this.n.ushrn(Math.floor(this.n.bitLength()/2)),h=t,c=this.n.clone(),d=new(J())(1),p=new(J())(0),m=new(J())(0),g=new(J())(1),b=0;0!==h.cmpn(0);){var y=c.div(h);s=c.sub(y.mul(h)),u=m.sub(y.mul(d));var v=g.sub(y.mul(p));if(!n&&0>s.cmp(l))e=a.neg(),r=d,n=s.neg(),i=u;else if(n&&2==++b)break;a=s,c=h,h=s,m=d,d=u,g=p,p=v}f=s.neg(),o=u;var w=n.sqr().add(i.sqr());return f.sqr().add(o.sqr()).cmp(w)>=0&&(f=e,o=r),n.negative&&(n=n.neg(),i=i.neg()),f.negative&&(f=f.neg(),o=o.neg()),[{a:n,b:i},{a:f,b:o}]},t8.prototype._endoSplit=function(t){var e=this.endo.basis,r=e[0],n=e[1],i=n.b.mul(t).divRound(this.n),f=r.b.neg().mul(t).divRound(this.n),o=i.mul(r.a),a=f.mul(n.a),s=i.mul(r.b),u=f.mul(n.b);return{k1:t.sub(o).sub(a),k2:s.add(u).neg()}},t8.prototype.pointFromX=function(t,e){(t=new(J())(t,16)).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 Error("invalid point");var i=n.fromRed().isOdd();return(e&&!i||!e&&i)&&(n=n.redNeg()),this.point(t,n)},t8.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)},t8.prototype._endoWnafMulAdd=function(t,e,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,f=0;f<t.length;f++){var o=this._endoSplit(e[f]),a=t[f],s=a._getBeta();o.k1.negative&&(o.k1.ineg(),a=a.neg(!0)),o.k2.negative&&(o.k2.ineg(),s=s.neg(!0)),n[2*f]=a,n[2*f+1]=s,i[2*f]=o.k1,i[2*f+1]=o.k2}for(var u=this._wnafMulAdd(1,n,i,2*f,r),l=0;l<2*f;l++)n[l]=null,i[l]=null;return u},t5(t3,t1.BasePoint),t8.prototype.point=function(t,e,r){return new t3(this,t,e,r)},t8.prototype.pointFromJSON=function(t,e){return t3.fromJSON(this,t,e)},t3.prototype._getBeta=function(){if(this.curve.endo){var t=this.precomputed;if(t&&t.beta)return t.beta;var e=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(t){var r=this.curve,n=function(t){return r.point(t.x.redMul(r.endo.beta),t.y)};t.beta=e,e.precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(n)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(n)}}}return e}},t3.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},t3.fromJSON=function(t,e,r){"string"==typeof e&&(e=JSON.parse(e));var n=t.point(e[0],e[1],r);if(!e[2])return n;function i(e){return t.point(e[0],e[1],r)}var f=e[2];return n.precomputed={beta:null,doubles:f.doubles&&{step:f.doubles.step,points:[n].concat(f.doubles.points.map(i))},naf:f.naf&&{wnd:f.naf.wnd,points:[n].concat(f.naf.points.map(i))}},n},t3.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},t3.prototype.isInfinity=function(){return this.inf},t3.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)||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)},t3.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),f=i.redSqr().redISub(this.x.redAdd(this.x)),o=i.redMul(this.x.redSub(f)).redISub(this.y);return this.curve.point(f,o)},t3.prototype.getX=function(){return this.x.fromRed()},t3.prototype.getY=function(){return this.y.fromRed()},t3.prototype.mul=function(t){return(t=new(J())(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)},t3.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)},t3.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)},t3.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))},t3.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},t3.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},t5(t4,t1.BasePoint),t8.prototype.jpoint=function(t,e,r){return new t4(this,t,e,r)},t4.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)},t4.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},t4.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),f=this.y.redMul(e.redMul(t.z)),o=t.y.redMul(r.redMul(this.z)),a=n.redSub(i),s=f.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),l=u.redMul(a),h=n.redMul(u),c=s.redSqr().redIAdd(l).redISub(h).redISub(h),d=s.redMul(h.redISub(c)).redISub(f.redMul(l)),p=this.z.redMul(t.z).redMul(a);return this.curve.jpoint(c,d,p)},t4.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,f=t.y.redMul(e).redMul(this.z),o=r.redSub(n),a=i.redSub(f);if(0===o.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var s=o.redSqr(),u=s.redMul(o),l=r.redMul(s),h=a.redSqr().redIAdd(u).redISub(l).redISub(l),c=a.redMul(l.redISub(h)).redISub(i.redMul(u)),d=this.z.redMul(o);return this.curve.jpoint(h,c,d)},t4.prototype.dblp=function(t){if(0===t||this.isInfinity())return this;if(!t)return this.dbl();if(this.curve.zeroA||this.curve.threeA){var e,r=this;for(e=0;e<t;e++)r=r.dbl();return r}var n=this.curve.a,i=this.curve.tinv,f=this.x,o=this.y,a=this.z,s=a.redSqr().redSqr(),u=o.redAdd(o);for(e=0;e<t;e++){var l=f.redSqr(),h=u.redSqr(),c=h.redSqr(),d=l.redAdd(l).redIAdd(l).redIAdd(n.redMul(s)),p=f.redMul(h),m=d.redSqr().redISub(p.redAdd(p)),g=p.redISub(m),b=d.redMul(g);b=b.redIAdd(b).redISub(c);var y=u.redMul(a);e+1<t&&(s=s.redMul(c)),f=m,a=y,u=b}return this.curve.jpoint(f,u.redMul(i),a)},t4.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},t4.prototype._zeroDbl=function(){if(this.zOne){var t,e,r,n=this.x.redSqr(),i=this.y.redSqr(),f=i.redSqr(),o=this.x.redAdd(i).redSqr().redISub(n).redISub(f);o=o.redIAdd(o);var a=n.redAdd(n).redIAdd(n),s=a.redSqr().redISub(o).redISub(o),u=f.redIAdd(f);u=(u=u.redIAdd(u)).redIAdd(u),t=s,e=a.redMul(o.redISub(s)).redISub(u),r=this.y.redAdd(this.y)}else{var l=this.x.redSqr(),h=this.y.redSqr(),c=h.redSqr(),d=this.x.redAdd(h).redSqr().redISub(l).redISub(c);d=d.redIAdd(d);var p=l.redAdd(l).redIAdd(l),m=p.redSqr(),g=c.redIAdd(c);g=(g=g.redIAdd(g)).redIAdd(g),t=m.redISub(d).redISub(d),e=p.redMul(d.redISub(t)).redISub(g),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(t,e,r)},t4.prototype._threeDbl=function(){if(this.zOne){var t,e,r,n=this.x.redSqr(),i=this.y.redSqr(),f=i.redSqr(),o=this.x.redAdd(i).redSqr().redISub(n).redISub(f);o=o.redIAdd(o);var a=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),s=a.redSqr().redISub(o).redISub(o);t=s;var u=f.redIAdd(f);u=(u=u.redIAdd(u)).redIAdd(u),e=a.redMul(o.redISub(s)).redISub(u),r=this.y.redAdd(this.y)}else{var l=this.z.redSqr(),h=this.y.redSqr(),c=this.x.redMul(h),d=this.x.redSub(l).redMul(this.x.redAdd(l));d=d.redAdd(d).redIAdd(d);var p=c.redIAdd(c),m=(p=p.redIAdd(p)).redAdd(p);t=d.redSqr().redISub(m),r=this.y.redAdd(this.z).redSqr().redISub(h).redISub(l);var g=h.redSqr();g=(g=(g=g.redIAdd(g)).redIAdd(g)).redIAdd(g),e=d.redMul(p.redISub(t)).redISub(g)}return this.curve.jpoint(t,e,r)},t4.prototype._dbl=function(){var t=this.curve.a,e=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),f=e.redSqr(),o=r.redSqr(),a=f.redAdd(f).redIAdd(f).redIAdd(t.redMul(i)),s=e.redAdd(e),u=(s=s.redIAdd(s)).redMul(o),l=a.redSqr().redISub(u.redAdd(u)),h=u.redISub(l),c=o.redSqr();c=(c=(c=c.redIAdd(c)).redIAdd(c)).redIAdd(c);var d=a.redMul(h).redISub(c),p=r.redAdd(r).redMul(n);return this.curve.jpoint(l,d,p)},t4.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var t=this.x.redSqr(),e=this.y.redSqr(),r=this.z.redSqr(),n=e.redSqr(),i=t.redAdd(t).redIAdd(t),f=i.redSqr(),o=this.x.redAdd(e).redSqr().redISub(t).redISub(n),a=(o=(o=(o=o.redIAdd(o)).redAdd(o).redIAdd(o)).redISub(f)).redSqr(),s=n.redIAdd(n);s=(s=(s=s.redIAdd(s)).redIAdd(s)).redIAdd(s);var u=i.redIAdd(o).redSqr().redISub(f).redISub(a).redISub(s),l=e.redMul(u);l=(l=l.redIAdd(l)).redIAdd(l);var h=this.x.redMul(a).redISub(l);h=(h=h.redIAdd(h)).redIAdd(h);var c=this.y.redMul(u.redMul(s.redISub(u)).redISub(o.redMul(a)));c=(c=(c=c.redIAdd(c)).redIAdd(c)).redIAdd(c);var d=this.z.redAdd(o).redSqr().redISub(r).redISub(a);return this.curve.jpoint(h,c,d)},t4.prototype.mul=function(t,e){return t=new(J())(t,e),this.curve._wnafMul(this,t)},t4.prototype.eq=function(t){if("affine"===t.type)return this.eq(t.toJ());if(this===t)return!0;var e=this.z.redSqr(),r=t.z.redSqr();if(0!==this.x.redMul(r).redISub(t.x.redMul(e)).cmpn(0))return!1;var n=e.redMul(this.z),i=r.redMul(t.z);return 0===this.y.redMul(i).redISub(t.y.redMul(n)).cmpn(0)},t4.prototype.eqXToP=function(t){var e=this.z.redSqr(),r=t.toRed(this.curve.red).redMul(e);if(0===this.x.cmp(r))return!0;for(var n=t.clone(),i=this.curve.redN.redMul(e);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},t4.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},t4.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var t9=tq(function(t,e){e.base=t1,e.short=t8,e.mont=null,e.edwards=null}),t7=tq(function(t,e){var r,n=tY.assert;function i(t){"short"===t.type?this.curve=new t9.short(t):"edwards"===t.type?this.curve=new t9.edwards(t):this.curve=new t9.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,n(this.g.validate(),"Invalid curve"),n(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function f(t,r){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){var n=new i(r);return Object.defineProperty(e,t,{configurable:!0,enumerable:!0,value:n}),n}})}e.PresetCurve=i,f("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:tJ().sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),f("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:tJ().sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),f("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:tJ().sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),f("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:tJ().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"]}),f("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:tJ().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"]}),f("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:tJ().sha256,gRed:!1,g:["9"]}),f("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:tJ().sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=null.crash()}catch(t){r=void 0}f("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:tJ().sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})});function et(t){if(!(this instanceof et))return new et(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=tW.toArray(t.entropy,t.entropyEnc||"hex"),r=tW.toArray(t.nonce,t.nonceEnc||"hex"),n=tW.toArray(t.pers,t.persEnc||"hex");tZ(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}et.prototype._init=function(t,e,r){var n=t.concat(e).concat(r);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},et.prototype._hmac=function(){return new(tJ()).hmac(this.hash,this.K)},et.prototype._update=function(t){var e=this._hmac().update(this.V).update([0]);t&&(e=e.update(t)),this.K=e.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},et.prototype.reseed=function(t,e,r,n){"string"!=typeof e&&(n=r,r=e,e=null),t=tW.toArray(t,e),r=tW.toArray(r,n),tZ(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(r||[])),this._reseed=1},et.prototype.generate=function(t,e,r,n){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof e&&(n=r,r=e,e=null),r&&(r=tW.toArray(r,n||"hex"),this._update(r));for(var i=[];i.length<t;)this.V=this._hmac().update(this.V).digest(),i=i.concat(this.V);var f=i.slice(0,t);return this._update(r),this._reseed++,tW.encode(f,e)};var ee=tY.assert;function er(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}er.fromPublic=function(t,e,r){return e instanceof er?e:new er(t,{pub:e,pubEnc:r})},er.fromPrivate=function(t,e,r){return e instanceof er?e:new er(t,{priv:e,privEnc:r})},er.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},er.prototype.getPublic=function(t,e){return("string"==typeof t&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e)?this.pub.encode(e,t):this.pub},er.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},er.prototype._importPrivate=function(t,e){this.priv=new(J())(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},er.prototype._importPublic=function(t,e){if(t.x||t.y){"mont"===this.ec.curve.type?ee(t.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&ee(t.x&&t.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(t.x,t.y);return}this.pub=this.ec.curve.decodePoint(t,e)},er.prototype.derive=function(t){return t.validate()||ee(t.validate(),"public point not validated"),t.mul(this.priv).getX()},er.prototype.sign=function(t,e,r){return this.ec.sign(t,this,e,r)},er.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},er.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var en=tY.assert;function ei(t,e){if(t instanceof ei)return t;this._importDER(t,e)||(en(t.r&&t.s,"Signature without r or s"),this.r=new(J())(t.r,16),this.s=new(J())(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function ef(){this.place=0}function eo(t,e){var r=t[e.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,f=0,o=e.place;f<n;f++,o++)i<<=8,i|=t[o],i>>>=0;return!(i<=127)&&(e.place=o,i)}function ea(t){for(var e=0,r=t.length-1;!t[e]&&!(128&t[e+1])&&e<r;)e++;return 0===e?t:t.slice(e)}function es(t,e){if(e<128){t.push(e);return}var r=1+(Math.log(e)/Math.LN2>>>3);for(t.push(128|r);--r;)t.push(e>>>(r<<3)&255);t.push(e)}ei.prototype._importDER=function(t,e){t=tY.toArray(t,e);var r=new ef;if(48!==t[r.place++])return!1;var n=eo(t,r);if(!1===n||n+r.place!==t.length||2!==t[r.place++])return!1;var i=eo(t,r);if(!1===i)return!1;var f=t.slice(r.place,i+r.place);if(r.place+=i,2!==t[r.place++])return!1;var o=eo(t,r);if(!1===o||t.length!==o+r.place)return!1;var a=t.slice(r.place,o+r.place);if(0===f[0]){if(!(128&f[1]))return!1;f=f.slice(1)}if(0===a[0]){if(!(128&a[1]))return!1;a=a.slice(1)}return this.r=new(J())(f),this.s=new(J())(a),this.recoveryParam=null,!0},ei.prototype.toDER=function(t){var e=this.r.toArray(),r=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&r[0]&&(r=[0].concat(r)),e=ea(e),r=ea(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var n=[2];es(n,e.length),(n=n.concat(e)).push(2),es(n,r.length);var i=n.concat(r),f=[48];return es(f,i.length),f=f.concat(i),tY.encode(f,t)};var eu=function(){throw Error("unsupported")},el=tY.assert;function eh(t){if(!(this instanceof eh))return new eh(t);"string"==typeof t&&(el(Object.prototype.hasOwnProperty.call(t7,t),"Unknown curve "+t),t=t7[t]),t instanceof t7.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}eh.prototype.keyPair=function(t){return new er(this,t)},eh.prototype.keyFromPrivate=function(t,e){return er.fromPrivate(this,t,e)},eh.prototype.keyFromPublic=function(t,e){return er.fromPublic(this,t,e)},eh.prototype.genKeyPair=function(t){t||(t={});for(var e=new et({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||eu(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new(J())(2));;){var i=new(J())(e.generate(r));if(!(i.cmp(n)>0))return i.iaddn(1),this.keyFromPrivate(i)}},eh.prototype._truncateToN=function(t,e){var r=8*t.byteLength()-this.n.bitLength();return(r>0&&(t=t.ushrn(r)),!e&&t.cmp(this.n)>=0)?t.sub(this.n):t},eh.prototype.sign=function(t,e,r,n){"object"==typeof r&&(n=r,r=null),n||(n={}),e=this.keyFromPrivate(e,r),t=this._truncateToN(new(J())(t,16));for(var i=this.n.byteLength(),f=e.getPrivate().toArray("be",i),o=t.toArray("be",i),a=new et({hash:this.hash,entropy:f,nonce:o,pers:n.pers,persEnc:n.persEnc||"utf8"}),s=this.n.sub(new(J())(1)),u=0;;u++){var l=n.k?n.k(u):new(J())(a.generate(this.n.byteLength()));if(!(0>=(l=this._truncateToN(l,!0)).cmpn(1)||l.cmp(s)>=0)){var h=this.g.mul(l);if(!h.isInfinity()){var c=h.getX(),d=c.umod(this.n);if(0!==d.cmpn(0)){var p=l.invm(this.n).mul(d.mul(e.getPrivate()).iadd(t));if(0!==(p=p.umod(this.n)).cmpn(0)){var m=(h.getY().isOdd()?1:0)|(0!==c.cmp(d)?2:0);return n.canonical&&p.cmp(this.nh)>0&&(p=this.n.sub(p),m^=1),new ei({r:d,s:p,recoveryParam:m})}}}}}},eh.prototype.verify=function(t,e,r,n){t=this._truncateToN(new(J())(t,16)),r=this.keyFromPublic(r,n);var i,f=(e=new ei(e,"hex")).r,o=e.s;if(0>f.cmpn(1)||f.cmp(this.n)>=0||0>o.cmpn(1)||o.cmp(this.n)>=0)return!1;var a=o.invm(this.n),s=a.mul(t).umod(this.n),u=a.mul(f).umod(this.n);return this.curve._maxwellTrick?!(i=this.g.jmulAdd(s,r.getPublic(),u)).isInfinity()&&i.eqXToP(f):!(i=this.g.mulAdd(s,r.getPublic(),u)).isInfinity()&&0===i.getX().umod(this.n).cmp(f)},eh.prototype.recoverPubKey=function(t,e,r,n){el((3&r)===r,"The recovery param is more than two bits"),e=new ei(e,n);var i=this.n,f=new(J())(t),o=e.r,a=e.s,s=1&r,u=r>>1;if(o.cmp(this.curve.p.umod(this.curve.n))>=0&&u)throw Error("Unable to find sencond key candinate");o=u?this.curve.pointFromX(o.add(this.curve.n),s):this.curve.pointFromX(o,s);var l=e.r.invm(i),h=i.sub(f).mul(l).umod(i),c=a.mul(l).umod(i);return this.g.mulAdd(h,o,c)},eh.prototype.getKeyRecoveryParam=function(t,e,r,n){if(null!==(e=new ei(e,n)).recoveryParam)return e.recoveryParam;for(var i,f=0;f<4;f++){try{i=this.recoverPubKey(t,e,f)}catch(t){continue}if(i.eq(r))return f}throw Error("Unable to find valid recovery factor")};var ec=tq(function(t,e){e.version="6.5.4",e.utils=tY,e.rand=function(){throw Error("unsupported")},e.curve=t9,e.curves=t7,e.ec=eh,e.eddsa=null}).ec;let ed=new l("signing-key/5.7.0"),ep=null;function em(){return ep||(ep=new ec("secp256k1")),ep}class eg{constructor(t){ta(this,"curve","secp256k1"),ta(this,"privateKey",E(t)),32!==A(this.privateKey)&&ed.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");let e=em().keyFromPrivate(b(this.privateKey));ta(this,"publicKey","0x"+e.getPublic(!1,"hex")),ta(this,"compressedPublicKey","0x"+e.getPublic(!0,"hex")),ta(this,"_isSigningKey",!0)}_addPoint(t){let e=em().keyFromPublic(b(this.publicKey)),r=em().keyFromPublic(b(t));return"0x"+e.pub.add(r.pub).encodeCompressed("hex")}signDigest(t){let e=em().keyFromPrivate(b(this.privateKey)),r=b(t);32!==r.length&&ed.throwArgumentError("bad digest length","digest",t);let n=e.sign(r,{canonical:!0});return T({recoveryParam:n.recoveryParam,r:N("0x"+n.r.toString(16),32),s:N("0x"+n.s.toString(16),32)})}computeSharedSecret(t){let e=em().keyFromPrivate(b(this.privateKey)),r=em().keyFromPublic(b(eb(t)));return N("0x"+e.derive(r.getPublic()).toString(16),32)}static isSigningKey(t){return!!(t&&t._isSigningKey)}}function eb(t,e){let r=b(t);if(32===r.length){let t=new eg(r);return e?"0x"+em().keyFromPrivate(r).getPublic(!0,"hex"):t.publicKey}return 33===r.length?e?E(r):"0x"+em().keyFromPublic(r).getPublic(!1,"hex"):65===r.length?e?"0x"+em().keyFromPublic(r).getPublic(!0,"hex"):E(r):ed.throwArgumentError("invalid public or private key","key","[REDACTED]")}let ey=new l("rlp/5.7.0");function ev(t){let e=[];for(;t;)e.unshift(255&t),t>>=8;return e}function ew(t){return E(function t(e){if(Array.isArray(e)){let r=[];if(e.forEach(function(e){r=r.concat(t(e))}),r.length<=55)return r.unshift(192+r.length),r;let n=ev(r.length);return n.unshift(247+n.length),n.concat(r)}p(e)||ey.throwArgumentError("RLP object must be BytesLike","object",e);let r=Array.prototype.slice.call(b(e));if(1===r.length&&r[0]<=127)return r;if(r.length<=55)return r.unshift(128+r.length),r;let n=ev(r.length);return n.unshift(183+n.length),n.concat(r)}(t))}let eM=new l("transactions/5.7.0");(O=G||(G={}))[O.legacy=0]="legacy",O[O.eip2930=1]="eip2930",O[O.eip1559=2]="eip1559";let eE=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],eA={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function eS(t){return tf(S(tt(S(eb(t),1)),12))}function e_(t,e){return eS(function(t,e){let r=T(e),n={r:b(r.r),s:b(r.s)};return"0x"+em().recoverPubKey(b(t),n,r.recoveryParam).encode("hex",!1)}(b(t),e))}function eN(t,e){let r=v(q.from(t).toHexString());return r.length>32&&eM.throwArgumentError("invalid length for "+e,"transaction:"+e,t),r}function eT(t,e){return{address:tf(t),storageKeys:(e||[]).map((e,r)=>(32!==A(e)&&eM.throwArgumentError("invalid access list storageKey",`accessList[${t}:${r}]`,e),e.toLowerCase()))}}function eR(t){return(function(t){if(Array.isArray(t))return t.map((t,e)=>Array.isArray(t)?(t.length>2&&eM.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${e}]`,t),eT(t[0],t[1])):eT(t.address,t.storageKeys));let e=Object.keys(t).map(e=>{let r=t[e].reduce((t,e)=>(t[e]=!0,t),{});return eT(e,Object.keys(r).sort())});return e.sort((t,e)=>t.address.localeCompare(e.address)),e})(t).map(t=>[t.address,t.storageKeys])}function eC(t,e){if(null==t.type||0===t.type)return null!=t.accessList&&eM.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",t),function(t,e){t&&"object"==typeof t||to.throwArgumentError("invalid object","object",t),Object.keys(t).forEach(e=>{eA[e]||to.throwArgumentError("invalid object key - "+e,"transaction:"+e,t)});let r=[];eE.forEach(function(e){let n=t[e.name]||[],i={};e.numeric&&(i.hexPad="left"),n=b(E(n,i)),e.length&&n.length!==e.length&&n.length>0&&eM.throwArgumentError("invalid length for "+e.name,"transaction:"+e.name,n),e.maxLength&&(n=v(n)).length>e.maxLength&&eM.throwArgumentError("invalid length for "+e.name,"transaction:"+e.name,n),r.push(E(n))});let n=0;if(null!=t.chainId?"number"!=typeof(n=t.chainId)&&eM.throwArgumentError("invalid transaction.chainId","transaction",t):e&&!p(e)&&e.v>28&&(n=Math.floor((e.v-35)/2)),0!==n&&(r.push(E(n)),r.push("0x"),r.push("0x")),!e)return ew(r);let i=T(e),f=27+i.recoveryParam;return 0!==n?(r.pop(),r.pop(),r.pop(),f+=2*n+8,i.v>28&&i.v!==f&&eM.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e)):i.v!==f&&eM.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e),r.push(E(f)),r.push(v(b(i.r))),r.push(v(b(i.s))),ew(r)}(t,e);switch(t.type){case 1:return function(t,e){let r=[eN(t.chainId||0,"chainId"),eN(t.nonce||0,"nonce"),eN(t.gasPrice||0,"gasPrice"),eN(t.gasLimit||0,"gasLimit"),null!=t.to?tf(t.to):"0x",eN(t.value||0,"value"),t.data||"0x",eR(t.accessList||[])];if(e){let t=T(e);r.push(eN(t.recoveryParam,"recoveryParam")),r.push(v(t.r)),r.push(v(t.s))}return _(["0x01",ew(r)])}(t,e);case 2:return function(t,e){if(null!=t.gasPrice){let e=q.from(t.gasPrice),r=q.from(t.maxFeePerGas||0);e.eq(r)||eM.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:e,maxFeePerGas:r})}let r=[eN(t.chainId||0,"chainId"),eN(t.nonce||0,"nonce"),eN(t.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),eN(t.maxFeePerGas||0,"maxFeePerGas"),eN(t.gasLimit||0,"gasLimit"),null!=t.to?tf(t.to):"0x",eN(t.value||0,"value"),t.data||"0x",eR(t.accessList||[])];if(e){let t=T(e);r.push(eN(t.recoveryParam,"recoveryParam")),r.push(v(t.r)),r.push(v(t.s))}return _(["0x02",ew(r)])}(t,e)}return eM.throwError(`unsupported transaction type: ${t.type}`,l.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:t.type})}let eI=new l("wordlists/5.7.0");class eP{constructor(t){eI.checkAbstract(new.target,eP),ta(this,"locale",t)}split(t){return t.toLowerCase().split(/ +/g)}join(t){return t.join(" ")}static check(t){let e=[];for(let r=0;r<2048;r++){let n=t.getWord(r);if(r!==t.getWordIndex(n))return"0x";e.push(n)}return tt(tE(e.join("\n")+"\n"))}static register(t,e){e||(e=t.locale)}}let eO=null;function ex(t){if(null==eO&&(eO="AbandonAbilityAbleAboutAboveAbsentAbsorbAbstractAbsurdAbuseAccessAccidentAccountAccuseAchieveAcidAcousticAcquireAcrossActActionActorActressActualAdaptAddAddictAddressAdjustAdmitAdultAdvanceAdviceAerobicAffairAffordAfraidAgainAgeAgentAgreeAheadAimAirAirportAisleAlarmAlbumAlcoholAlertAlienAllAlleyAllowAlmostAloneAlphaAlreadyAlsoAlterAlwaysAmateurAmazingAmongAmountAmusedAnalystAnchorAncientAngerAngleAngryAnimalAnkleAnnounceAnnualAnotherAnswerAntennaAntiqueAnxietyAnyApartApologyAppearAppleApproveAprilArchArcticAreaArenaArgueArmArmedArmorArmyAroundArrangeArrestArriveArrowArtArtefactArtistArtworkAskAspectAssaultAssetAssistAssumeAsthmaAthleteAtomAttackAttendAttitudeAttractAuctionAuditAugustAuntAuthorAutoAutumnAverageAvocadoAvoidAwakeAwareAwayAwesomeAwfulAwkwardAxisBabyBachelorBaconBadgeBagBalanceBalconyBallBambooBananaBannerBarBarelyBargainBarrelBaseBasicBasketBattleBeachBeanBeautyBecauseBecomeBeefBeforeBeginBehaveBehindBelieveBelowBeltBenchBenefitBestBetrayBetterBetweenBeyondBicycleBidBikeBindBiologyBirdBirthBitterBlackBladeBlameBlanketBlastBleakBlessBlindBloodBlossomBlouseBlueBlurBlushBoardBoatBodyBoilBombBoneBonusBookBoostBorderBoringBorrowBossBottomBounceBoxBoyBracketBrainBrandBrassBraveBreadBreezeBrickBridgeBriefBrightBringBriskBroccoliBrokenBronzeBroomBrotherBrownBrushBubbleBuddyBudgetBuffaloBuildBulbBulkBulletBundleBunkerBurdenBurgerBurstBusBusinessBusyButterBuyerBuzzCabbageCabinCableCactusCageCakeCallCalmCameraCampCanCanalCancelCandyCannonCanoeCanvasCanyonCapableCapitalCaptainCarCarbonCardCargoCarpetCarryCartCaseCashCasinoCastleCasualCatCatalogCatchCategoryCattleCaughtCauseCautionCaveCeilingCeleryCementCensusCenturyCerealCertainChairChalkChampionChangeChaosChapterChargeChaseChatCheapCheckCheeseChefCherryChestChickenChiefChildChimneyChoiceChooseChronicChuckleChunkChurnCigarCinnamonCircleCitizenCityCivilClaimClapClarifyClawClayCleanClerkCleverClickClientCliffClimbClinicClipClockClogCloseClothCloudClownClubClumpClusterClutchCoachCoastCoconutCodeCoffeeCoilCoinCollectColorColumnCombineComeComfortComicCommonCompanyConcertConductConfirmCongressConnectConsiderControlConvinceCookCoolCopperCopyCoralCoreCornCorrectCostCottonCouchCountryCoupleCourseCousinCoverCoyoteCrackCradleCraftCramCraneCrashCraterCrawlCrazyCreamCreditCreekCrewCricketCrimeCrispCriticCropCrossCrouchCrowdCrucialCruelCruiseCrumbleCrunchCrushCryCrystalCubeCultureCupCupboardCuriousCurrentCurtainCurveCushionCustomCuteCycleDadDamageDampDanceDangerDaringDashDaughterDawnDayDealDebateDebrisDecadeDecemberDecideDeclineDecorateDecreaseDeerDefenseDefineDefyDegreeDelayDeliverDemandDemiseDenialDentistDenyDepartDependDepositDepthDeputyDeriveDescribeDesertDesignDeskDespairDestroyDetailDetectDevelopDeviceDevoteDiagramDialDiamondDiaryDiceDieselDietDifferDigitalDignityDilemmaDinnerDinosaurDirectDirtDisagreeDiscoverDiseaseDishDismissDisorderDisplayDistanceDivertDivideDivorceDizzyDoctorDocumentDogDollDolphinDomainDonateDonkeyDonorDoorDoseDoubleDoveDraftDragonDramaDrasticDrawDreamDressDriftDrillDrinkDripDriveDropDrumDryDuckDumbDuneDuringDustDutchDutyDwarfDynamicEagerEagleEarlyEarnEarthEasilyEastEasyEchoEcologyEconomyEdgeEditEducateEffortEggEightEitherElbowElderElectricElegantElementElephantElevatorEliteElseEmbarkEmbodyEmbraceEmergeEmotionEmployEmpowerEmptyEnableEnactEndEndlessEndorseEnemyEnergyEnforceEngageEngineEnhanceEnjoyEnlistEnoughEnrichEnrollEnsureEnterEntireEntryEnvelopeEpisodeEqualEquipEraEraseErodeErosionErrorEruptEscapeEssayEssenceEstateEternalEthicsEvidenceEvilEvokeEvolveExactExampleExcessExchangeExciteExcludeExcuseExecuteExerciseExhaustExhibitExileExistExitExoticExpandExpectExpireExplainExposeExpressExtendExtraEyeEyebrowFabricFaceFacultyFadeFaintFaithFallFalseFameFamilyFamousFanFancyFantasyFarmFashionFatFatalFatherFatigueFaultFavoriteFeatureFebruaryFederalFeeFeedFeelFemaleFenceFestivalFetchFeverFewFiberFictionFieldFigureFileFilmFilterFinalFindFineFingerFinishFireFirmFirstFiscalFishFitFitnessFixFlagFlameFlashFlatFlavorFleeFlightFlipFloatFlockFloorFlowerFluidFlushFlyFoamFocusFogFoilFoldFollowFoodFootForceForestForgetForkFortuneForumForwardFossilFosterFoundFoxFragileFrameFrequentFreshFriendFringeFrogFrontFrostFrownFrozenFruitFuelFunFunnyFurnaceFuryFutureGadgetGainGalaxyGalleryGameGapGarageGarbageGardenGarlicGarmentGasGaspGateGatherGaugeGazeGeneralGeniusGenreGentleGenuineGestureGhostGiantGiftGiggleGingerGiraffeGirlGiveGladGlanceGlareGlassGlideGlimpseGlobeGloomGloryGloveGlowGlueGoatGoddessGoldGoodGooseGorillaGospelGossipGovernGownGrabGraceGrainGrantGrapeGrassGravityGreatGreenGridGriefGritGroceryGroupGrowGruntGuardGuessGuideGuiltGuitarGunGymHabitHairHalfHammerHamsterHandHappyHarborHardHarshHarvestHatHaveHawkHazardHeadHealthHeartHeavyHedgehogHeightHelloHelmetHelpHenHeroHiddenHighHillHintHipHireHistoryHobbyHockeyHoldHoleHolidayHollowHomeHoneyHoodHopeHornHorrorHorseHospitalHostHotelHourHoverHubHugeHumanHumbleHumorHundredHungryHuntHurdleHurryHurtHusbandHybridIceIconIdeaIdentifyIdleIgnoreIllIllegalIllnessImageImitateImmenseImmuneImpactImposeImproveImpulseInchIncludeIncomeIncreaseIndexIndicateIndoorIndustryInfantInflictInformInhaleInheritInitialInjectInjuryInmateInnerInnocentInputInquiryInsaneInsectInsideInspireInstallIntactInterestIntoInvestInviteInvolveIronIslandIsolateIssueItemIvoryJacketJaguarJarJazzJealousJeansJellyJewelJobJoinJokeJourneyJoyJudgeJuiceJumpJungleJuniorJunkJustKangarooKeenKeepKetchupKeyKickKidKidneyKindKingdomKissKitKitchenKiteKittenKiwiKneeKnifeKnockKnowLabLabelLaborLadderLadyLakeLampLanguageLaptopLargeLaterLatinLaughLaundryLavaLawLawnLawsuitLayerLazyLeaderLeafLearnLeaveLectureLeftLegLegalLegendLeisureLemonLendLengthLensLeopardLessonLetterLevelLiarLibertyLibraryLicenseLifeLiftLightLikeLimbLimitLinkLionLiquidListLittleLiveLizardLoadLoanLobsterLocalLockLogicLonelyLongLoopLotteryLoudLoungeLoveLoyalLuckyLuggageLumberLunarLunchLuxuryLyricsMachineMadMagicMagnetMaidMailMainMajorMakeMammalManManageMandateMangoMansionManualMapleMarbleMarchMarginMarineMarketMarriageMaskMassMasterMatchMaterialMathMatrixMatterMaximumMazeMeadowMeanMeasureMeatMechanicMedalMediaMelodyMeltMemberMemoryMentionMenuMercyMergeMeritMerryMeshMessageMetalMethodMiddleMidnightMilkMillionMimicMindMinimumMinorMinuteMiracleMirrorMiseryMissMistakeMixMixedMixtureMobileModelModifyMomMomentMonitorMonkeyMonsterMonthMoonMoralMoreMorningMosquitoMotherMotionMotorMountainMouseMoveMovieMuchMuffinMuleMultiplyMuscleMuseumMushroomMusicMustMutualMyselfMysteryMythNaiveNameNapkinNarrowNastyNationNatureNearNeckNeedNegativeNeglectNeitherNephewNerveNestNetNetworkNeutralNeverNewsNextNiceNightNobleNoiseNomineeNoodleNormalNorthNoseNotableNoteNothingNoticeNovelNowNuclearNumberNurseNutOakObeyObjectObligeObscureObserveObtainObviousOccurOceanOctoberOdorOffOfferOfficeOftenOilOkayOldOliveOlympicOmitOnceOneOnionOnlineOnlyOpenOperaOpinionOpposeOptionOrangeOrbitOrchardOrderOrdinaryOrganOrientOriginalOrphanOstrichOtherOutdoorOuterOutputOutsideOvalOvenOverOwnOwnerOxygenOysterOzonePactPaddlePagePairPalacePalmPandaPanelPanicPantherPaperParadeParentParkParrotPartyPassPatchPathPatientPatrolPatternPausePavePaymentPeacePeanutPearPeasantPelicanPenPenaltyPencilPeoplePepperPerfectPermitPersonPetPhonePhotoPhrasePhysicalPianoPicnicPicturePiecePigPigeonPillPilotPinkPioneerPipePistolPitchPizzaPlacePlanetPlasticPlatePlayPleasePledgePluckPlugPlungePoemPoetPointPolarPolePolicePondPonyPoolPopularPortionPositionPossiblePostPotatoPotteryPovertyPowderPowerPracticePraisePredictPreferPreparePresentPrettyPreventPricePridePrimaryPrintPriorityPrisonPrivatePrizeProblemProcessProduceProfitProgramProjectPromoteProofPropertyProsperProtectProudProvidePublicPuddingPullPulpPulsePumpkinPunchPupilPuppyPurchasePurityPurposePursePushPutPuzzlePyramidQualityQuantumQuarterQuestionQuickQuitQuizQuoteRabbitRaccoonRaceRackRadarRadioRailRainRaiseRallyRampRanchRandomRangeRapidRareRateRatherRavenRawRazorReadyRealReasonRebelRebuildRecallReceiveRecipeRecordRecycleReduceReflectReformRefuseRegionRegretRegularRejectRelaxReleaseReliefRelyRemainRememberRemindRemoveRenderRenewRentReopenRepairRepeatReplaceReportRequireRescueResembleResistResourceResponseResultRetireRetreatReturnReunionRevealReviewRewardRhythmRibRibbonRiceRichRideRidgeRifleRightRigidRingRiotRippleRiskRitualRivalRiverRoadRoastRobotRobustRocketRomanceRoofRookieRoomRoseRotateRoughRoundRouteRoyalRubberRudeRugRuleRunRunwayRuralSadSaddleSadnessSafeSailSaladSalmonSalonSaltSaluteSameSampleSandSatisfySatoshiSauceSausageSaveSayScaleScanScareScatterSceneSchemeSchoolScienceScissorsScorpionScoutScrapScreenScriptScrubSeaSearchSeasonSeatSecondSecretSectionSecuritySeedSeekSegmentSelectSellSeminarSeniorSenseSentenceSeriesServiceSessionSettleSetupSevenShadowShaftShallowShareShedShellSheriffShieldShiftShineShipShiverShockShoeShootShopShortShoulderShoveShrimpShrugShuffleShySiblingSickSideSiegeSightSignSilentSilkSillySilverSimilarSimpleSinceSingSirenSisterSituateSixSizeSkateSketchSkiSkillSkinSkirtSkullSlabSlamSleepSlenderSliceSlideSlightSlimSloganSlotSlowSlushSmallSmartSmileSmokeSmoothSnackSnakeSnapSniffSnowSoapSoccerSocialSockSodaSoftSolarSoldierSolidSolutionSolveSomeoneSongSoonSorrySortSoulSoundSoupSourceSouthSpaceSpareSpatialSpawnSpeakSpecialSpeedSpellSpendSphereSpiceSpiderSpikeSpinSpiritSplitSpoilSponsorSpoonSportSpotSpraySpreadSpringSpySquareSqueezeSquirrelStableStadiumStaffStageStairsStampStandStartStateStaySteakSteelStemStepStereoStickStillStingStockStomachStoneStoolStoryStoveStrategyStreetStrikeStrongStruggleStudentStuffStumbleStyleSubjectSubmitSubwaySuccessSuchSuddenSufferSugarSuggestSuitSummerSunSunnySunsetSuperSupplySupremeSureSurfaceSurgeSurpriseSurroundSurveySuspectSustainSwallowSwampSwapSwarmSwearSweetSwiftSwimSwingSwitchSwordSymbolSymptomSyrupSystemTableTackleTagTailTalentTalkTankTapeTargetTaskTasteTattooTaxiTeachTeamTellTenTenantTennisTentTermTestTextThankThatThemeThenTheoryThereTheyThingThisThoughtThreeThriveThrowThumbThunderTicketTideTigerTiltTimberTimeTinyTipTiredTissueTitleToastTobaccoTodayToddlerToeTogetherToiletTokenTomatoTomorrowToneTongueTonightToolToothTopTopicToppleTorchTornadoTortoiseTossTotalTouristTowardTowerTownToyTrackTradeTrafficTragicTrainTransferTrapTrashTravelTrayTreatTreeTrendTrialTribeTrickTriggerTrimTripTrophyTroubleTruckTrueTrulyTrumpetTrustTruthTryTubeTuitionTumbleTunaTunnelTurkeyTurnTurtleTwelveTwentyTwiceTwinTwistTwoTypeTypicalUglyUmbrellaUnableUnawareUncleUncoverUnderUndoUnfairUnfoldUnhappyUniformUniqueUnitUniverseUnknownUnlockUntilUnusualUnveilUpdateUpgradeUpholdUponUpperUpsetUrbanUrgeUsageUseUsedUsefulUselessUsualUtilityVacantVacuumVagueValidValleyValveVanVanishVaporVariousVastVaultVehicleVelvetVendorVentureVenueVerbVerifyVersionVeryVesselVeteranViableVibrantViciousVictoryVideoViewVillageVintageViolinVirtualVirusVisaVisitVisualVitalVividVocalVoiceVoidVolcanoVolumeVoteVoyageWageWagonWaitWalkWallWalnutWantWarfareWarmWarriorWashWaspWasteWaterWaveWayWealthWeaponWearWeaselWeatherWebWeddingWeekendWeirdWelcomeWestWetWhaleWhatWheatWheelWhenWhereWhipWhisperWideWidthWifeWildWillWinWindowWineWingWinkWinnerWinterWireWisdomWiseWishWitnessWolfWomanWonderWoodWoolWordWorkWorldWorryWorthWrapWreckWrestleWristWriteWrongYardYearYellowYouYoungYouthZebraZeroZoneZoo".replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),"0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60"!==eP.check(t)))throw eO=null,Error("BIP39 Wordlist for en (English) FAILED")}class ek extends eP{constructor(){super("en")}getWord(t){return ex(this),eO[t]}getWordIndex(t){return ex(this),eO.indexOf(t)}}let eF=new ek;eP.register(eF);let eB={en:eF},eL=new l("hdnode/5.7.0"),eD=q.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),eU=tE("Bitcoin seed");function eG(t){return(1<<t)-1<<8-t}function ez(t){return N(E(t),32)}function eJ(t){return tG.encode(y([t,S(tH(tH(t)),0,4)]))}function ej(t){if(null==t)return eB.en;if("string"==typeof t){let e=eB[t];return null==e&&eL.throwArgumentError("unknown locale","wordlist",t),e}return t}let eH={},eV="m/44'/60'/0'/0/0";class eX{constructor(t,e,r,n,i,f,o,a){var s;if(t!==eH)throw Error("HDNode constructor cannot be called directly");if(e){let t=new eg(e);ta(this,"privateKey",t.privateKey),ta(this,"publicKey",t.compressedPublicKey)}else ta(this,"privateKey",null),ta(this,"publicKey",E(r));ta(this,"parentFingerprint",n),ta(this,"fingerprint",S((s=tH(this.publicKey),"0x"+tJ().ripemd160().update(b(s)).digest("hex")),0,4)),ta(this,"address",eS(this.publicKey)),ta(this,"chainCode",i),ta(this,"index",f),ta(this,"depth",o),null==a?(ta(this,"mnemonic",null),ta(this,"path",null)):"string"==typeof a?(ta(this,"mnemonic",null),ta(this,"path",a)):(ta(this,"mnemonic",a),ta(this,"path",a.path))}get extendedKey(){if(this.depth>=256)throw Error("Depth too large!");return eJ(y([null!=this.privateKey?"0x0488ADE4":"0x0488B21E",E(this.depth),this.parentFingerprint,N(E(this.index),4),this.chainCode,null!=this.privateKey?y(["0x00",this.privateKey]):this.publicKey]))}neuter(){return new eX(eH,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)}_derive(t){if(t>4294967295)throw Error("invalid index - "+String(t));let e=this.path;e&&(e+="/"+(2147483647&t));let r=new Uint8Array(37);if(2147483648&t){if(!this.privateKey)throw Error("cannot derive child of neutered node");r.set(b(this.privateKey),1),e&&(e+="'")}else r.set(b(this.publicKey));for(let e=24;e>=0;e-=8)r[33+(e>>3)]=t>>24-e&255;let n=b(tV(U.sha512,this.chainCode,r)),i=n.slice(0,32),f=n.slice(32),o=null,a=null;this.privateKey?o=ez(q.from(i).add(this.privateKey).mod(eD)):a=new eg(E(i))._addPoint(this.publicKey);let s=e,u=this.mnemonic;return u&&(s=Object.freeze({phrase:u.phrase,path:e,locale:u.locale||"en"})),new eX(eH,o,a,this.fingerprint,ez(f),t,this.depth+1,s)}derivePath(t){let e=t.split("/");if(0===e.length||"m"===e[0]&&0!==this.depth)throw Error("invalid path - "+t);"m"===e[0]&&e.shift();let r=this;for(let t=0;t<e.length;t++){let n=e[t];if(n.match(/^[0-9]+'$/)){let t=parseInt(n.substring(0,n.length-1));if(t>=2147483648)throw Error("invalid path index - "+n);r=r._derive(2147483648+t)}else if(n.match(/^[0-9]+$/)){let t=parseInt(n);if(t>=2147483648)throw Error("invalid path index - "+n);r=r._derive(t)}else throw Error("invalid path component - "+n)}return r}static _fromSeed(t,e){let r=b(t);if(r.length<16||r.length>64)throw Error("invalid seed");let n=b(tV(U.sha512,eU,r));return new eX(eH,ez(n.slice(0,32)),null,"0x00000000",ez(n.slice(32)),0,0,e)}static fromMnemonic(t,e,r){return r=ej(r),t=eZ(eq(t,r),r),eX._fromSeed(function(t,e){e||(e="");let r=tE("mnemonic"+e,L.NFKD);return tX(tE(t,L.NFKD),r,2048,64,"sha512")}(t,e),{phrase:t,path:"m",locale:r.locale})}static fromSeed(t){return eX._fromSeed(t,null)}static fromExtendedKey(t){let e=tG.decode(t);(82!==e.length||eJ(e.slice(0,78))!==t)&&eL.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");let r=e[4],n=E(e.slice(5,9)),i=parseInt(E(e.slice(9,13)).substring(2),16),f=E(e.slice(13,45)),o=e.slice(45,78);switch(E(e.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new eX(eH,null,E(o),n,f,i,r,null);case"0x0488ade4":case"0x04358394 ":if(0!==o[0])break;return new eX(eH,E(o.slice(1)),null,n,f,i,r,null)}return eL.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}function eq(t,e){e=ej(e),eL.checkNormalize();let r=e.split(t);if(r.length%3!=0)throw Error("invalid mnemonic");let n=b(new Uint8Array(Math.ceil(11*r.length/8))),i=0;for(let t=0;t<r.length;t++){let f=e.getWordIndex(r[t].normalize("NFKD"));if(-1===f)throw Error("invalid mnemonic");for(let t=0;t<11;t++)f&1<<10-t&&(n[i>>3]|=1<<7-i%8),i++}let f=32*r.length/3,o=eG(r.length/3);if((b(tH(n.slice(0,f/8)))[0]&o)!=(n[n.length-1]&o))throw Error("invalid checksum");return E(n.slice(0,f/8))}function eZ(t,e){if(e=ej(e),(t=b(t)).length%4!=0||t.length<16||t.length>32)throw Error("invalid entropy");let r=[0],n=11;for(let e=0;e<t.length;e++)n>8?(r[r.length-1]<<=8,r[r.length-1]|=t[e],n-=8):(r[r.length-1]<<=n,r[r.length-1]|=t[e]>>8-n,r.push(t[e]&(1<<8-n)-1),n+=3);let i=t.length/4,f=b(tH(t))[0]&eG(i);return r[r.length-1]<<=i,r[r.length-1]|=f>>8-i,e.join(r.map(t=>e.getWord(t)))}let eK=new l("random/5.7.0"),eW=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r.g)return r.g;throw Error("unable to locate global object")}(),eY=eW.crypto||eW.msCrypto;function eQ(t){(t<=0||t>1024||t%1||t!=t)&&eK.throwArgumentError("invalid length","length",t);let e=new Uint8Array(t);return eY.getRandomValues(e),b(e)}eY&&eY.getRandomValues||(eK.warn("WARNING: Missing strong random number source"),eY={getRandomValues:function(t){return eK.throwError("no secure random source avaialble",l.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}});var e$=r(78826),e0=r.n(e$),e1=r(17635),e6=r.n(e1);function e5(t){return"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),b(t)}function e2(t,e){for(t=String(t);t.length<e;)t="0"+t;return t}function e8(t){return"string"==typeof t?tE(t,L.NFKC):b(t)}function e3(t,e){let r=t,n=e.toLowerCase().split("/");for(let t=0;t<n.length;t++){let e=null;for(let i in r)if(i.toLowerCase()===n[t]){e=r[i];break}if(null===e)return null;r=e}return r}let e4="json-wallets/5.7.0",e9=new l(e4);function e7(t){return null!=t&&t.mnemonic&&t.mnemonic.phrase}class rt extends tc{isKeystoreAccount(t){return!!(t&&t._isKeystoreAccount)}}function re(t,e){let r=e5(e3(t,"crypto/ciphertext"));if(E(tt(y([e.slice(16,32),r]))).substring(2)!==e3(t,"crypto/mac").toLowerCase())throw Error("invalid password");let n=function(t,e,r){if("aes-128-ctr"===e3(t,"crypto/cipher")){let n=e5(e3(t,"crypto/cipherparams/iv")),i=new(e0()).Counter(n);return b(new(e0()).ModeOfOperation.ctr(e,i).decrypt(r))}return null}(t,e.slice(0,16),r);n||e9.throwError("unsupported cipher",l.errors.UNSUPPORTED_OPERATION,{operation:"decrypt"});let i=e.slice(32,64),f=eS(n);if(t.address){let e=t.address.toLowerCase();if("0x"!==e.substring(0,2)&&(e="0x"+e),tf(e)!==f)throw Error("address mismatch")}let o={_isKeystoreAccount:!0,address:f,privateKey:E(n)};if("0.1"===e3(t,"x-ethers/version")){let e=e5(e3(t,"x-ethers/mnemonicCiphertext")),r=e5(e3(t,"x-ethers/mnemonicCounter")),n=new(e0()).Counter(r),f=new(e0()).ModeOfOperation.ctr(i,n),a=e3(t,"x-ethers/path")||eV,s=e3(t,"x-ethers/locale")||"en",u=b(f.decrypt(e));try{let t=eZ(u,s),e=eX.fromMnemonic(t,null,s).derivePath(a);if(e.privateKey!=o.privateKey)throw Error("mnemonic mismatch");o.mnemonic=e.mnemonic}catch(t){if(t.code!==l.errors.INVALID_ARGUMENT||"wordlist"!==t.argument)throw t}}return new rt(o)}function rr(t,e,r,n,i){return b(tX(t,e,r,n,i))}function rn(t,e,r,n,i){return Promise.resolve(rr(t,e,r,n,i))}function ri(t,e,r,n,i){let f=e8(e),o=e3(t,"crypto/kdf");if(o&&"string"==typeof o){let e=function(t,e){return e9.throwArgumentError("invalid key-derivation function parameters",t,e)};if("scrypt"===o.toLowerCase()){let r=e5(e3(t,"crypto/kdfparams/salt")),a=parseInt(e3(t,"crypto/kdfparams/n")),s=parseInt(e3(t,"crypto/kdfparams/r")),u=parseInt(e3(t,"crypto/kdfparams/p"));a&&s&&u||e("kdf",o),(a&a-1)!=0&&e("N",a);let l=parseInt(e3(t,"crypto/kdfparams/dklen"));return 32!==l&&e("dklen",l),n(f,r,a,s,u,64,i)}if("pbkdf2"===o.toLowerCase()){let n=e5(e3(t,"crypto/kdfparams/salt")),i=null,o=e3(t,"crypto/kdfparams/prf");"hmac-sha256"===o?i="sha256":"hmac-sha512"===o?i="sha512":e("prf",o);let a=parseInt(e3(t,"crypto/kdfparams/c")),s=parseInt(e3(t,"crypto/kdfparams/dklen"));return 32!==s&&e("dklen",s),r(f,n,a,s,i)}}return e9.throwArgumentError("unsupported key-derivation function","kdf",o)}let rf=new l(e4);class ro extends tc{isCrowdsaleAccount(t){return!!(t&&t._isCrowdsaleAccount)}}function ra(t,e){let r=JSON.parse(t);e=e8(e);let n=tf(e3(r,"ethaddr")),i=e5(e3(r,"encseed"));i&&i.length%16==0||rf.throwArgumentError("invalid encseed","json",t);let f=b(tX(e,e,2e3,32,"sha256")).slice(0,16),o=i.slice(0,16),a=i.slice(16),s=new(e0()).ModeOfOperation.cbc(f,o),u=e0().padding.pkcs7.strip(b(s.decrypt(a))),l="";for(let t=0;t<u.length;t++)l+=String.fromCharCode(u[t]);return new ro({_isCrowdsaleAccount:!0,address:n,privateKey:tt(tE(l))})}function rs(t){let e=null;try{e=JSON.parse(t)}catch(t){return!1}return e.encseed&&e.ethaddr}function ru(t){let e=null;try{e=JSON.parse(t)}catch(t){return!1}return!!e.version&&parseInt(e.version)===e.version&&3===parseInt(e.version)}var rl=function(t,e,r,n){return new(r||(r=Promise))(function(i,f){function o(t){try{s(n.next(t))}catch(t){f(t)}}function a(t){try{s(n.throw(t))}catch(t){f(t)}}function s(t){var e;t.done?i(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(o,a)}s((n=n.apply(t,e||[])).next())})};let rh=new l("wallet/5.4.0");class rc extends tv{constructor(t,e){var r;if(rh.checkNew(new.target,rc),super(),null!=(r=t)&&w(r.privateKey,32)&&null!=r.address){let e=new eg(t.privateKey);if(ta(this,"_signingKey",()=>e),ta(this,"address",eS(this.publicKey)),this.address!==tf(t.address)&&rh.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),function(t){let e=t.mnemonic;return e&&e.phrase}(t)){let e=t.mnemonic;ta(this,"_mnemonic",()=>({phrase:e.phrase,path:e.path||eV,locale:e.locale||"en"}));let r=this.mnemonic;eS(eX.fromMnemonic(r.phrase,null,r.locale).derivePath(r.path).privateKey)!==this.address&&rh.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else ta(this,"_mnemonic",()=>null)}else{if(eg.isSigningKey(t))"secp256k1"!==t.curve&&rh.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),ta(this,"_signingKey",()=>t);else{"string"==typeof t&&t.match(/^[0-9a-f]*$/i)&&64===t.length&&(t="0x"+t);let e=new eg(t);ta(this,"_signingKey",()=>e)}ta(this,"_mnemonic",()=>null),ta(this,"address",eS(this.publicKey))}e&&!tp.isProvider(e)&&rh.throwArgumentError("invalid provider","provider",e),ta(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 rc(this,t)}signTransaction(t){return ts(t).then(e=>{null!=e.from&&(tf(e.from)!==this.address&&rh.throwArgumentError("transaction from address mismatch","transaction.from",t.from),delete e.from);let r=this._signingKey().signDigest(tt(eC(e)));return eC(e,r)})}signMessage(t){return rl(this,void 0,void 0,function*(){return R(this._signingKey().signDigest(tA(t)))})}_signTypedData(t,e,r){return rl(this,void 0,void 0,function*(){let n=yield tD.resolveNames(t,e,r,t=>(null==this.provider&&rh.throwError("cannot resolve ENS names without a provider",l.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:t}),this.provider.resolveName(t)));return R(this._signingKey().signDigest(tD.hash(n.domain,e,n.value)))})}encrypt(t,e,r){if("function"!=typeof e||r||(r=e,e={}),r&&"function"!=typeof r)throw Error("invalid callback");return e||(e={}),function(t,e,r,n){try{if(tf(t.address)!==eS(t.privateKey))throw Error("address/privateKey mismatch");if(e7(t)){let e=t.mnemonic;if(eX.fromMnemonic(e.phrase,null,e.locale).derivePath(e.path||eV).privateKey!=t.privateKey)throw Error("mnemonic mismatch")}}catch(t){return Promise.reject(t)}"function"!=typeof r||n||(n=r,r={}),r||(r={});let i=b(t.privateKey),f=e8(e),o=null,a=null,s=null;if(e7(t)){let e=t.mnemonic;o=b(eq(e.phrase,e.locale||"en")),a=e.path||eV,s=e.locale||"en"}let u=r.client;u||(u="ethers.js");let l=null;l=r.salt?b(r.salt):eQ(32);let h=null;if(r.iv){if(16!==(h=b(r.iv)).length)throw Error("invalid iv")}else h=eQ(16);let c=null;if(r.uuid){if(16!==(c=b(r.uuid)).length)throw Error("invalid uuid")}else c=eQ(16);let d=131072,p=8,m=1;return r.scrypt&&(r.scrypt.N&&(d=r.scrypt.N),r.scrypt.r&&(p=r.scrypt.r),r.scrypt.p&&(m=r.scrypt.p)),e6().scrypt(f,l,d,p,m,64,n).then(e=>{let r=(e=b(e)).slice(0,16),n=e.slice(16,32),f=e.slice(32,64),g=new(e0()).Counter(h),v=b(new(e0()).ModeOfOperation.ctr(r,g).encrypt(i)),w=tt(y([n,v])),M={address:t.address.substring(2).toLowerCase(),id:function(t){let e=b(t);e[6]=15&e[6]|64,e[8]=63&e[8]|128;let r=E(e);return[r.substring(2,10),r.substring(10,14),r.substring(14,18),r.substring(18,22),r.substring(22,34)].join("-")}(c),version:3,crypto:{cipher:"aes-128-ctr",cipherparams:{iv:E(h).substring(2)},ciphertext:E(v).substring(2),kdf:"scrypt",kdfparams:{salt:E(l).substring(2),n:d,dklen:32,p:m,r:p},mac:w.substring(2)}};if(o){let t=eQ(16),e=new(e0()).Counter(t),r=b(new(e0()).ModeOfOperation.ctr(f,e).encrypt(o)),n=new Date,i=n.getUTCFullYear()+"-"+e2(n.getUTCMonth()+1,2)+"-"+e2(n.getUTCDate(),2)+"T"+e2(n.getUTCHours(),2)+"-"+e2(n.getUTCMinutes(),2)+"-"+e2(n.getUTCSeconds(),2)+".0Z";M["x-ethers"]={client:u,gethFilename:"UTC--"+i+"--"+M.address,mnemonicCounter:E(t).substring(2),mnemonicCiphertext:E(r).substring(2),path:a,locale:s,version:"0.1"}}return JSON.stringify(M)})}(this,t,e,r)}static createRandom(t){let e=eQ(16);t||(t={}),t.extraEntropy&&(e=b(S(tt(y([e,t.extraEntropy])),0,16)));let r=eZ(e,t.locale);return rc.fromMnemonic(r,t.path,t.locale)}static fromEncryptedJson(t,e,r){return(function(t,e,r){if(rs(t)){r&&r(0);let n=ra(t,e);return r&&r(1),Promise.resolve(n)}return ru(t)?function(t,e,r){var n,i,f,o;return n=this,i=void 0,f=void 0,o=function*(){let n=JSON.parse(t),i=yield ri(n,e,rn,e6().scrypt,r);return re(n,i)},new(f||(f=Promise))(function(t,e){function r(t){try{s(o.next(t))}catch(t){e(t)}}function a(t){try{s(o.throw(t))}catch(t){e(t)}}function s(e){var n;e.done?t(e.value):((n=e.value)instanceof f?n:new f(function(t){t(n)})).then(r,a)}s((o=o.apply(n,i||[])).next())})}(t,e,r):Promise.reject(Error("invalid JSON wallet"))})(t,e,r).then(t=>new rc(t))}static fromEncryptedJsonSync(t,e){return new rc(function(t,e){if(rs(t))return ra(t,e);if(ru(t))return function(t,e){let r=JSON.parse(t),n=ri(r,e,rr,e6().syncScrypt);return re(r,n)}(t,e);throw Error("invalid JSON wallet")}(t,e))}static fromMnemonic(t,e,r){return e||(e=eV),new rc(eX.fromMnemonic(t,null,r).derivePath(e))}}function rd(t,e){return e_(tA(t),e)}function rp(t,e,r,n){return e_(tD.hash(t,e,r),n)}},21758:function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw 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 f(t,e,r){if(f.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"))}"object"==typeof t?t.exports=f:e.BN=f,f.BN=f,f.wordSize=26;try{h="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(61685).Buffer}catch(t){}function o(t,e){var r=t.charCodeAt(e);return r>=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 a(t,e,r){var n=o(t,r);return r-1>=e&&(n|=o(t,r-1)<<4),n}function s(t,e,r,i){for(var f=0,o=0,a=Math.min(t.length,r),s=e;s<a;s++){var u=t.charCodeAt(s)-48;f*=i,o=u>=49?u-49+10:u>=17?u-17+10:u,n(u>=0&&o<i,"Invalid character"),f+=o}return f}function u(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(f.isBN=function(t){return t instanceof f||null!==t&&"object"==typeof t&&t.constructor.wordSize===f.wordSize&&Array.isArray(t.words)},f.max=function(t,e){return t.cmp(e)>0?t:e},f.min=function(t,e){return 0>t.cmp(e)?t:e},f.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);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},f.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)},f.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=Array(this.length);for(var i,f,o=0;o<this.length;o++)this.words[o]=0;var a=0;if("be"===r)for(o=t.length-1,i=0;o>=0;o-=3)f=t[o]|t[o-1]<<8|t[o-2]<<16,this.words[i]|=f<<a&67108863,this.words[i+1]=f>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);else if("le"===r)for(o=0,i=0;o<t.length;o+=3)f=t[o]|t[o+1]<<8|t[o+2]<<16,this.words[i]|=f<<a&67108863,this.words[i+1]=f>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);return this._strip()},f.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=Array(this.length);for(var n,i=0;i<this.length;i++)this.words[i]=0;var f=0,o=0;if("be"===r)for(i=t.length-1;i>=e;i-=2)n=a(t,e,i)<<f,this.words[o]|=67108863&n,f>=18?(f-=18,o+=1,this.words[o]|=n>>>26):f+=8;else for(i=(t.length-e)%2==0?e+1:e;i<t.length;i+=2)n=a(t,e,i)<<f,this.words[o]|=67108863&n,f>=18?(f-=18,o+=1,this.words[o]|=n>>>26):f+=8;this._strip()},f.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 f=t.length-r,o=f%n,a=Math.min(f,f-o)+r,u=0,l=r;l<a;l+=n)u=s(t,l,l+n,e),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==o){var h=1;for(u=s(t,l,t.length,e),l=0;l<o;l++)h*=e;this.imuln(h),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this._strip()},f.prototype.copy=function(t){t.words=Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},f.prototype._move=function(t){u(t,this)},f.prototype.clone=function(){var t=new f(null);return this.copy(t),t},f.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},f.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},f.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{f.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(t){f.prototype.inspect=l}else f.prototype.inspect=l;function l(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var h,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"],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];function m(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],f=0|e.words[0],o=i*f,a=67108863&o,s=o/67108864|0;r.words[0]=a;for(var u=1;u<n;u++){for(var l=s>>>26,h=67108863&s,c=Math.min(u,e.length-1),d=Math.max(0,u-t.length+1);d<=c;d++){var p=u-d|0;l+=(o=(i=0|t.words[p])*(f=0|e.words[d])+h)/67108864|0,h=67108863&o}r.words[u]=0|h,s=0|l}return 0!==s?r.words[u]=0|s:r.length--,r._strip()}f.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var r,i=0,f=0,o=0;o<this.length;o++){var a=this.words[o],s=((a<<i|f)&16777215).toString(16);f=a>>>24-i&16777215,(i+=2)>=26&&(i-=26,o--),r=0!==f||o!==this.length-1?c[6-s.length]+s+r:s+r}for(0!==f&&(r=f.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var u=d[t],l=p[t];r="";var h=this.clone();for(h.negative=0;!h.isZero();){var m=h.modrn(l).toString(t);r=(h=h.idivn(l)).isZero()?m+r:c[u-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},f.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},f.prototype.toJSON=function(){return this.toString(16,2)},h&&(f.prototype.toBuffer=function(t,e){return this.toArrayLike(h,t,e)}),f.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},f.prototype.toArrayLike=function(t,e,r){this._strip();var i=this.byteLength(),f=r||Math.max(1,i);n(i<=f,"byte array longer than desired length"),n(f>0,"Requested array length <= 0");var o=t.allocUnsafe?t.allocUnsafe(f):new t(f);return this["_toArrayLike"+("le"===e?"LE":"BE")](o,i),o},f.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,i=0,f=0;i<this.length;i++){var o=this.words[i]<<f|n;t[r++]=255&o,r<t.length&&(t[r++]=o>>8&255),r<t.length&&(t[r++]=o>>16&255),6===f?(r<t.length&&(t[r++]=o>>24&255),n=0,f=0):(n=o>>>24,f+=2)}if(r<t.length)for(t[r++]=n;r<t.length;)t[r++]=0},f.prototype._toArrayLikeBE=function(t,e){for(var r=t.length-1,n=0,i=0,f=0;i<this.length;i++){var o=this.words[i]<<f|n;t[r--]=255&o,r>=0&&(t[r--]=o>>8&255),r>=0&&(t[r--]=o>>16&255),6===f?(r>=0&&(t[r--]=o>>24&255),n=0,f=0):(n=o>>>24,f+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?f.prototype._countBits=function(t){return 32-Math.clz32(t)}:f.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},f.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return(8191&e)==0&&(r+=13,e>>>=13),(127&e)==0&&(r+=7,e>>>=7),(15&e)==0&&(r+=4,e>>>=4),(3&e)==0&&(r+=2,e>>>=2),(1&e)==0&&r++,r},f.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return(this.length-1)*26+e},f.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},f.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},f.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},f.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},f.prototype.isNeg=function(){return 0!==this.negative},f.prototype.neg=function(){return this.clone().ineg()},f.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},f.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},f.prototype.ior=function(t){return n((this.negative|t.negative)==0),this.iuor(t)},f.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},f.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},f.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this._strip()},f.prototype.iand=function(t){return n((this.negative|t.negative)==0),this.iuand(t)},f.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},f.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},f.prototype.iuxor=function(t){this.length>t.length?(e=this,r=t):(e=t,r=this);for(var e,r,n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this._strip()},f.prototype.ixor=function(t){return n((this.negative|t.negative)==0),this.iuxor(t)},f.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},f.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},f.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;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},f.prototype.notn=function(t){return this.clone().inotn(t)},f.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),e?this.words[r]=this.words[r]|1<<i:this.words[r]=this.words[r]&~(1<<i),this._strip()},f.prototype.iadd=function(t){if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var e,r,n,i=0,f=0;f<n.length;f++)e=(0|r.words[f])+(0|n.words[f])+i,this.words[f]=67108863&e,i=e>>>26;for(;0!==i&&f<r.length;f++)e=(0|r.words[f])+i,this.words[f]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;f<r.length;f++)this.words[f]=r.words[f];return this},f.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},f.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e,r,n=this.iadd(t);return t.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(e=this,r=t):(e=t,r=this);for(var f=0,o=0;o<r.length;o++)f=(n=(0|e.words[o])-(0|r.words[o])+f)>>26,this.words[o]=67108863&n;for(;0!==f&&o<e.length;o++)f=(n=(0|e.words[o])+f)>>26,this.words[o]=67108863&n;if(0===f&&o<e.length&&e!==this)for(;o<e.length;o++)this.words[o]=e.words[o];return this.length=Math.max(this.length,o),e!==this&&(this.negative=1),this._strip()},f.prototype.sub=function(t){return this.clone().isub(t)};var g=function(t,e,r){var n,i,f,o=t.words,a=e.words,s=r.words,u=0,l=0|o[0],h=8191&l,c=l>>>13,d=0|o[1],p=8191&d,m=d>>>13,g=0|o[2],b=8191&g,y=g>>>13,v=0|o[3],w=8191&v,M=v>>>13,E=0|o[4],A=8191&E,S=E>>>13,_=0|o[5],N=8191&_,T=_>>>13,R=0|o[6],C=8191&R,I=R>>>13,P=0|o[7],O=8191&P,x=P>>>13,k=0|o[8],F=8191&k,B=k>>>13,L=0|o[9],D=8191&L,U=L>>>13,G=0|a[0],z=8191&G,J=G>>>13,j=0|a[1],H=8191&j,V=j>>>13,X=0|a[2],q=8191&X,Z=X>>>13,K=0|a[3],W=8191&K,Y=K>>>13,Q=0|a[4],$=8191&Q,tt=Q>>>13,te=0|a[5],tr=8191&te,tn=te>>>13,ti=0|a[6],tf=8191&ti,to=ti>>>13,ta=0|a[7],ts=8191&ta,tu=ta>>>13,tl=0|a[8],th=8191&tl,tc=tl>>>13,td=0|a[9],tp=8191&td,tm=td>>>13;r.negative=t.negative^e.negative,r.length=19;var tg=(u+(n=Math.imul(h,z))|0)+((8191&(i=(i=Math.imul(h,J))+Math.imul(c,z)|0))<<13)|0;u=((f=Math.imul(c,J))+(i>>>13)|0)+(tg>>>26)|0,tg&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,J))+Math.imul(m,z)|0,f=Math.imul(m,J);var tb=(u+(n=n+Math.imul(h,H)|0)|0)+((8191&(i=(i=i+Math.imul(h,V)|0)+Math.imul(c,H)|0))<<13)|0;u=((f=f+Math.imul(c,V)|0)+(i>>>13)|0)+(tb>>>26)|0,tb&=67108863,n=Math.imul(b,z),i=(i=Math.imul(b,J))+Math.imul(y,z)|0,f=Math.imul(y,J),n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,H)|0,f=f+Math.imul(m,V)|0;var ty=(u+(n=n+Math.imul(h,q)|0)|0)+((8191&(i=(i=i+Math.imul(h,Z)|0)+Math.imul(c,q)|0))<<13)|0;u=((f=f+Math.imul(c,Z)|0)+(i>>>13)|0)+(ty>>>26)|0,ty&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,J))+Math.imul(M,z)|0,f=Math.imul(M,J),n=n+Math.imul(b,H)|0,i=(i=i+Math.imul(b,V)|0)+Math.imul(y,H)|0,f=f+Math.imul(y,V)|0,n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,q)|0,f=f+Math.imul(m,Z)|0;var tv=(u+(n=n+Math.imul(h,W)|0)|0)+((8191&(i=(i=i+Math.imul(h,Y)|0)+Math.imul(c,W)|0))<<13)|0;u=((f=f+Math.imul(c,Y)|0)+(i>>>13)|0)+(tv>>>26)|0,tv&=67108863,n=Math.imul(A,z),i=(i=Math.imul(A,J))+Math.imul(S,z)|0,f=Math.imul(S,J),n=n+Math.imul(w,H)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(M,H)|0,f=f+Math.imul(M,V)|0,n=n+Math.imul(b,q)|0,i=(i=i+Math.imul(b,Z)|0)+Math.imul(y,q)|0,f=f+Math.imul(y,Z)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,W)|0,f=f+Math.imul(m,Y)|0;var tw=(u+(n=n+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(c,$)|0))<<13)|0;u=((f=f+Math.imul(c,tt)|0)+(i>>>13)|0)+(tw>>>26)|0,tw&=67108863,n=Math.imul(N,z),i=(i=Math.imul(N,J))+Math.imul(T,z)|0,f=Math.imul(T,J),n=n+Math.imul(A,H)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(S,H)|0,f=f+Math.imul(S,V)|0,n=n+Math.imul(w,q)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(M,q)|0,f=f+Math.imul(M,Z)|0,n=n+Math.imul(b,W)|0,i=(i=i+Math.imul(b,Y)|0)+Math.imul(y,W)|0,f=f+Math.imul(y,Y)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,$)|0,f=f+Math.imul(m,tt)|0;var tM=(u+(n=n+Math.imul(h,tr)|0)|0)+((8191&(i=(i=i+Math.imul(h,tn)|0)+Math.imul(c,tr)|0))<<13)|0;u=((f=f+Math.imul(c,tn)|0)+(i>>>13)|0)+(tM>>>26)|0,tM&=67108863,n=Math.imul(C,z),i=(i=Math.imul(C,J))+Math.imul(I,z)|0,f=Math.imul(I,J),n=n+Math.imul(N,H)|0,i=(i=i+Math.imul(N,V)|0)+Math.imul(T,H)|0,f=f+Math.imul(T,V)|0,n=n+Math.imul(A,q)|0,i=(i=i+Math.imul(A,Z)|0)+Math.imul(S,q)|0,f=f+Math.imul(S,Z)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(M,W)|0,f=f+Math.imul(M,Y)|0,n=n+Math.imul(b,$)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(y,$)|0,f=f+Math.imul(y,tt)|0,n=n+Math.imul(p,tr)|0,i=(i=i+Math.imul(p,tn)|0)+Math.imul(m,tr)|0,f=f+Math.imul(m,tn)|0;var tE=(u+(n=n+Math.imul(h,tf)|0)|0)+((8191&(i=(i=i+Math.imul(h,to)|0)+Math.imul(c,tf)|0))<<13)|0;u=((f=f+Math.imul(c,to)|0)+(i>>>13)|0)+(tE>>>26)|0,tE&=67108863,n=Math.imul(O,z),i=(i=Math.imul(O,J))+Math.imul(x,z)|0,f=Math.imul(x,J),n=n+Math.imul(C,H)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(I,H)|0,f=f+Math.imul(I,V)|0,n=n+Math.imul(N,q)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(T,q)|0,f=f+Math.imul(T,Z)|0,n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(S,W)|0,f=f+Math.imul(S,Y)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(M,$)|0,f=f+Math.imul(M,tt)|0,n=n+Math.imul(b,tr)|0,i=(i=i+Math.imul(b,tn)|0)+Math.imul(y,tr)|0,f=f+Math.imul(y,tn)|0,n=n+Math.imul(p,tf)|0,i=(i=i+Math.imul(p,to)|0)+Math.imul(m,tf)|0,f=f+Math.imul(m,to)|0;var tA=(u+(n=n+Math.imul(h,ts)|0)|0)+((8191&(i=(i=i+Math.imul(h,tu)|0)+Math.imul(c,ts)|0))<<13)|0;u=((f=f+Math.imul(c,tu)|0)+(i>>>13)|0)+(tA>>>26)|0,tA&=67108863,n=Math.imul(F,z),i=(i=Math.imul(F,J))+Math.imul(B,z)|0,f=Math.imul(B,J),n=n+Math.imul(O,H)|0,i=(i=i+Math.imul(O,V)|0)+Math.imul(x,H)|0,f=f+Math.imul(x,V)|0,n=n+Math.imul(C,q)|0,i=(i=i+Math.imul(C,Z)|0)+Math.imul(I,q)|0,f=f+Math.imul(I,Z)|0,n=n+Math.imul(N,W)|0,i=(i=i+Math.imul(N,Y)|0)+Math.imul(T,W)|0,f=f+Math.imul(T,Y)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(S,$)|0,f=f+Math.imul(S,tt)|0,n=n+Math.imul(w,tr)|0,i=(i=i+Math.imul(w,tn)|0)+Math.imul(M,tr)|0,f=f+Math.imul(M,tn)|0,n=n+Math.imul(b,tf)|0,i=(i=i+Math.imul(b,to)|0)+Math.imul(y,tf)|0,f=f+Math.imul(y,to)|0,n=n+Math.imul(p,ts)|0,i=(i=i+Math.imul(p,tu)|0)+Math.imul(m,ts)|0,f=f+Math.imul(m,tu)|0;var tS=(u+(n=n+Math.imul(h,th)|0)|0)+((8191&(i=(i=i+Math.imul(h,tc)|0)+Math.imul(c,th)|0))<<13)|0;u=((f=f+Math.imul(c,tc)|0)+(i>>>13)|0)+(tS>>>26)|0,tS&=67108863,n=Math.imul(D,z),i=(i=Math.imul(D,J))+Math.imul(U,z)|0,f=Math.imul(U,J),n=n+Math.imul(F,H)|0,i=(i=i+Math.imul(F,V)|0)+Math.imul(B,H)|0,f=f+Math.imul(B,V)|0,n=n+Math.imul(O,q)|0,i=(i=i+Math.imul(O,Z)|0)+Math.imul(x,q)|0,f=f+Math.imul(x,Z)|0,n=n+Math.imul(C,W)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(I,W)|0,f=f+Math.imul(I,Y)|0,n=n+Math.imul(N,$)|0,i=(i=i+Math.imul(N,tt)|0)+Math.imul(T,$)|0,f=f+Math.imul(T,tt)|0,n=n+Math.imul(A,tr)|0,i=(i=i+Math.imul(A,tn)|0)+Math.imul(S,tr)|0,f=f+Math.imul(S,tn)|0,n=n+Math.imul(w,tf)|0,i=(i=i+Math.imul(w,to)|0)+Math.imul(M,tf)|0,f=f+Math.imul(M,to)|0,n=n+Math.imul(b,ts)|0,i=(i=i+Math.imul(b,tu)|0)+Math.imul(y,ts)|0,f=f+Math.imul(y,tu)|0,n=n+Math.imul(p,th)|0,i=(i=i+Math.imul(p,tc)|0)+Math.imul(m,th)|0,f=f+Math.imul(m,tc)|0;var t_=(u+(n=n+Math.imul(h,tp)|0)|0)+((8191&(i=(i=i+Math.imul(h,tm)|0)+Math.imul(c,tp)|0))<<13)|0;u=((f=f+Math.imul(c,tm)|0)+(i>>>13)|0)+(t_>>>26)|0,t_&=67108863,n=Math.imul(D,H),i=(i=Math.imul(D,V))+Math.imul(U,H)|0,f=Math.imul(U,V),n=n+Math.imul(F,q)|0,i=(i=i+Math.imul(F,Z)|0)+Math.imul(B,q)|0,f=f+Math.imul(B,Z)|0,n=n+Math.imul(O,W)|0,i=(i=i+Math.imul(O,Y)|0)+Math.imul(x,W)|0,f=f+Math.imul(x,Y)|0,n=n+Math.imul(C,$)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(I,$)|0,f=f+Math.imul(I,tt)|0,n=n+Math.imul(N,tr)|0,i=(i=i+Math.imul(N,tn)|0)+Math.imul(T,tr)|0,f=f+Math.imul(T,tn)|0,n=n+Math.imul(A,tf)|0,i=(i=i+Math.imul(A,to)|0)+Math.imul(S,tf)|0,f=f+Math.imul(S,to)|0,n=n+Math.imul(w,ts)|0,i=(i=i+Math.imul(w,tu)|0)+Math.imul(M,ts)|0,f=f+Math.imul(M,tu)|0,n=n+Math.imul(b,th)|0,i=(i=i+Math.imul(b,tc)|0)+Math.imul(y,th)|0,f=f+Math.imul(y,tc)|0;var tN=(u+(n=n+Math.imul(p,tp)|0)|0)+((8191&(i=(i=i+Math.imul(p,tm)|0)+Math.imul(m,tp)|0))<<13)|0;u=((f=f+Math.imul(m,tm)|0)+(i>>>13)|0)+(tN>>>26)|0,tN&=67108863,n=Math.imul(D,q),i=(i=Math.imul(D,Z))+Math.imul(U,q)|0,f=Math.imul(U,Z),n=n+Math.imul(F,W)|0,i=(i=i+Math.imul(F,Y)|0)+Math.imul(B,W)|0,f=f+Math.imul(B,Y)|0,n=n+Math.imul(O,$)|0,i=(i=i+Math.imul(O,tt)|0)+Math.imul(x,$)|0,f=f+Math.imul(x,tt)|0,n=n+Math.imul(C,tr)|0,i=(i=i+Math.imul(C,tn)|0)+Math.imul(I,tr)|0,f=f+Math.imul(I,tn)|0,n=n+Math.imul(N,tf)|0,i=(i=i+Math.imul(N,to)|0)+Math.imul(T,tf)|0,f=f+Math.imul(T,to)|0,n=n+Math.imul(A,ts)|0,i=(i=i+Math.imul(A,tu)|0)+Math.imul(S,ts)|0,f=f+Math.imul(S,tu)|0,n=n+Math.imul(w,th)|0,i=(i=i+Math.imul(w,tc)|0)+Math.imul(M,th)|0,f=f+Math.imul(M,tc)|0;var tT=(u+(n=n+Math.imul(b,tp)|0)|0)+((8191&(i=(i=i+Math.imul(b,tm)|0)+Math.imul(y,tp)|0))<<13)|0;u=((f=f+Math.imul(y,tm)|0)+(i>>>13)|0)+(tT>>>26)|0,tT&=67108863,n=Math.imul(D,W),i=(i=Math.imul(D,Y))+Math.imul(U,W)|0,f=Math.imul(U,Y),n=n+Math.imul(F,$)|0,i=(i=i+Math.imul(F,tt)|0)+Math.imul(B,$)|0,f=f+Math.imul(B,tt)|0,n=n+Math.imul(O,tr)|0,i=(i=i+Math.imul(O,tn)|0)+Math.imul(x,tr)|0,f=f+Math.imul(x,tn)|0,n=n+Math.imul(C,tf)|0,i=(i=i+Math.imul(C,to)|0)+Math.imul(I,tf)|0,f=f+Math.imul(I,to)|0,n=n+Math.imul(N,ts)|0,i=(i=i+Math.imul(N,tu)|0)+Math.imul(T,ts)|0,f=f+Math.imul(T,tu)|0,n=n+Math.imul(A,th)|0,i=(i=i+Math.imul(A,tc)|0)+Math.imul(S,th)|0,f=f+Math.imul(S,tc)|0;var tR=(u+(n=n+Math.imul(w,tp)|0)|0)+((8191&(i=(i=i+Math.imul(w,tm)|0)+Math.imul(M,tp)|0))<<13)|0;u=((f=f+Math.imul(M,tm)|0)+(i>>>13)|0)+(tR>>>26)|0,tR&=67108863,n=Math.imul(D,$),i=(i=Math.imul(D,tt))+Math.imul(U,$)|0,f=Math.imul(U,tt),n=n+Math.imul(F,tr)|0,i=(i=i+Math.imul(F,tn)|0)+Math.imul(B,tr)|0,f=f+Math.imul(B,tn)|0,n=n+Math.imul(O,tf)|0,i=(i=i+Math.imul(O,to)|0)+Math.imul(x,tf)|0,f=f+Math.imul(x,to)|0,n=n+Math.imul(C,ts)|0,i=(i=i+Math.imul(C,tu)|0)+Math.imul(I,ts)|0,f=f+Math.imul(I,tu)|0,n=n+Math.imul(N,th)|0,i=(i=i+Math.imul(N,tc)|0)+Math.imul(T,th)|0,f=f+Math.imul(T,tc)|0;var tC=(u+(n=n+Math.imul(A,tp)|0)|0)+((8191&(i=(i=i+Math.imul(A,tm)|0)+Math.imul(S,tp)|0))<<13)|0;u=((f=f+Math.imul(S,tm)|0)+(i>>>13)|0)+(tC>>>26)|0,tC&=67108863,n=Math.imul(D,tr),i=(i=Math.imul(D,tn))+Math.imul(U,tr)|0,f=Math.imul(U,tn),n=n+Math.imul(F,tf)|0,i=(i=i+Math.imul(F,to)|0)+Math.imul(B,tf)|0,f=f+Math.imul(B,to)|0,n=n+Math.imul(O,ts)|0,i=(i=i+Math.imul(O,tu)|0)+Math.imul(x,ts)|0,f=f+Math.imul(x,tu)|0,n=n+Math.imul(C,th)|0,i=(i=i+Math.imul(C,tc)|0)+Math.imul(I,th)|0,f=f+Math.imul(I,tc)|0;var tI=(u+(n=n+Math.imul(N,tp)|0)|0)+((8191&(i=(i=i+Math.imul(N,tm)|0)+Math.imul(T,tp)|0))<<13)|0;u=((f=f+Math.imul(T,tm)|0)+(i>>>13)|0)+(tI>>>26)|0,tI&=67108863,n=Math.imul(D,tf),i=(i=Math.imul(D,to))+Math.imul(U,tf)|0,f=Math.imul(U,to),n=n+Math.imul(F,ts)|0,i=(i=i+Math.imul(F,tu)|0)+Math.imul(B,ts)|0,f=f+Math.imul(B,tu)|0,n=n+Math.imul(O,th)|0,i=(i=i+Math.imul(O,tc)|0)+Math.imul(x,th)|0,f=f+Math.imul(x,tc)|0;var tP=(u+(n=n+Math.imul(C,tp)|0)|0)+((8191&(i=(i=i+Math.imul(C,tm)|0)+Math.imul(I,tp)|0))<<13)|0;u=((f=f+Math.imul(I,tm)|0)+(i>>>13)|0)+(tP>>>26)|0,tP&=67108863,n=Math.imul(D,ts),i=(i=Math.imul(D,tu))+Math.imul(U,ts)|0,f=Math.imul(U,tu),n=n+Math.imul(F,th)|0,i=(i=i+Math.imul(F,tc)|0)+Math.imul(B,th)|0,f=f+Math.imul(B,tc)|0;var tO=(u+(n=n+Math.imul(O,tp)|0)|0)+((8191&(i=(i=i+Math.imul(O,tm)|0)+Math.imul(x,tp)|0))<<13)|0;u=((f=f+Math.imul(x,tm)|0)+(i>>>13)|0)+(tO>>>26)|0,tO&=67108863,n=Math.imul(D,th),i=(i=Math.imul(D,tc))+Math.imul(U,th)|0,f=Math.imul(U,tc);var tx=(u+(n=n+Math.imul(F,tp)|0)|0)+((8191&(i=(i=i+Math.imul(F,tm)|0)+Math.imul(B,tp)|0))<<13)|0;u=((f=f+Math.imul(B,tm)|0)+(i>>>13)|0)+(tx>>>26)|0,tx&=67108863;var tk=(u+(n=Math.imul(D,tp))|0)+((8191&(i=(i=Math.imul(D,tm))+Math.imul(U,tp)|0))<<13)|0;return u=((f=Math.imul(U,tm))+(i>>>13)|0)+(tk>>>26)|0,tk&=67108863,s[0]=tg,s[1]=tb,s[2]=ty,s[3]=tv,s[4]=tw,s[5]=tM,s[6]=tE,s[7]=tA,s[8]=tS,s[9]=t_,s[10]=tN,s[11]=tT,s[12]=tR,s[13]=tC,s[14]=tI,s[15]=tP,s[16]=tO,s[17]=tx,s[18]=tk,0!==u&&(s[19]=u,r.length++),r};function b(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,f=0;f<r.length-1;f++){var o=i;i=0;for(var a=67108863&n,s=Math.min(f,e.length-1),u=Math.max(0,f-t.length+1);u<=s;u++){var l=f-u,h=(0|t.words[l])*(0|e.words[u]),c=67108863&h;o=o+(h/67108864|0)|0,a=67108863&(c=c+a|0),i+=(o=o+(c>>>26)|0)>>>26,o&=67108863}r.words[f]=a,n=o,o=i}return 0!==n?r.words[f]=n:r.length--,r._strip()}function y(t,e){this.x=t,this.y=e}Math.imul||(g=m),f.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return 10===this.length&&10===t.length?g(this,t,e):n<63?m(this,t,e):b(this,t,e)},y.prototype.makeRBT=function(t){for(var e=Array(t),r=f.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},y.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},y.prototype.permute=function(t,e,r,n,i,f){for(var o=0;o<f;o++)n[o]=e[t[o]],i[o]=r[t[o]]},y.prototype.transform=function(t,e,r,n,i,f){this.permute(f,t,e,r,n,i);for(var o=1;o<i;o<<=1)for(var a=o<<1,s=Math.cos(2*Math.PI/a),u=Math.sin(2*Math.PI/a),l=0;l<i;l+=a)for(var h=s,c=u,d=0;d<o;d++){var p=r[l+d],m=n[l+d],g=r[l+d+o],b=n[l+d+o],y=h*g-c*b;b=h*b+c*g,g=y,r[l+d]=p+g,n[l+d]=m+b,r[l+d+o]=p-g,n[l+d+o]=m-b,d!==a&&(y=s*h-u*c,c=s*c+u*h,h=y)}},y.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},y.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},y.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},y.prototype.convert13b=function(t,e,r,i){for(var f=0,o=0;o<e;o++)f+=0|t[o],r[2*o]=8191&f,f>>>=13,r[2*o+1]=8191&f,f>>>=13;for(o=2*e;o<i;++o)r[o]=0;n(0===f),n((-8192&f)==0)},y.prototype.stub=function(t){for(var e=Array(t),r=0;r<t;r++)e[r]=0;return e},y.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),f=this.stub(n),o=Array(n),a=Array(n),s=Array(n),u=Array(n),l=Array(n),h=Array(n),c=r.words;c.length=n,this.convert13b(t.words,t.length,o,n),this.convert13b(e.words,e.length,u,n),this.transform(o,f,a,s,n,i),this.transform(u,f,l,h,n,i);for(var d=0;d<n;d++){var p=a[d]*l[d]-s[d]*h[d];s[d]=a[d]*h[d]+s[d]*l[d],a[d]=p}return this.conjugate(a,s,n),this.transform(a,s,c,f,n,i),this.conjugate(c,f,n),this.normalize13b(c,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r._strip()},f.prototype.mul=function(t){var e=new f(null);return e.words=Array(this.length+t.length),this.mulTo(t,e)},f.prototype.mulf=function(t){var e=new f(null);return e.words=Array(this.length+t.length),b(this,t,e)},f.prototype.imul=function(t){return this.clone().mulTo(t,this)},f.prototype.imuln=function(t){var e=t<0;e&&(t=-t),n("number"==typeof t),n(t<67108864);for(var r=0,i=0;i<this.length;i++){var f=(0|this.words[i])*t,o=(67108863&f)+(67108863&r);r>>=26,r+=(f/67108864|0)+(o>>>26),this.words[i]=67108863&o}return 0!==r&&(this.words[i]=r,this.length++),e?this.ineg():this},f.prototype.muln=function(t){return this.clone().imuln(t)},f.prototype.sqr=function(){return this.mul(this)},f.prototype.isqr=function(){return this.imul(this.clone())},f.prototype.pow=function(t){var e=function(t){for(var e=Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=t.words[n]>>>i&1}return e}(t);if(0===e.length)return new f(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},f.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,f=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(e=0;e<this.length;e++){var a=this.words[e]&f,s=(0|this.words[e])-a<<r;this.words[e]=s|o,o=a>>>26-r}o&&(this.words[e]=o,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this._strip()},f.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},f.prototype.iushrn=function(t,e,r){n("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var i,f=t%26,o=Math.min((t-f)/26,this.length),a=67108863^67108863>>>f<<f;if(i-=o,i=Math.max(0,i),r){for(var s=0;s<o;s++)r.words[s]=this.words[s];r.length=o}if(0===o);else if(this.length>o)for(this.length-=o,s=0;s<this.length;s++)this.words[s]=this.words[s+o];else this.words[0]=0,this.length=1;var u=0;for(s=this.length-1;s>=0&&(0!==u||s>=i);s--){var l=0|this.words[s];this.words[s]=u<<26-f|l>>>f,u=l&a}return r&&0!==u&&(r.words[r.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},f.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},f.prototype.shln=function(t){return this.clone().ishln(t)},f.prototype.ushln=function(t){return this.clone().iushln(t)},f.prototype.shrn=function(t){return this.clone().ishrn(t)},f.prototype.ushrn=function(t){return this.clone().iushrn(t)},f.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;return!(this.length<=r)&&!!(this.words[r]&1<<e)},f.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;return(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)?this:(0!==e&&r++,this.length=Math.min(r,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<<e),this._strip())},f.prototype.maskn=function(t){return this.clone().imaskn(t)},f.prototype.iaddn=function(t){return(n("number"==typeof t),n(t<67108864),t<0)?this.isubn(-t):0!==this.negative?(1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(t),this.negative=1),this):this._iaddn(t)},f.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[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},f.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<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},f.prototype.addn=function(t){return this.clone().iaddn(t)},f.prototype.subn=function(t){return this.clone().isubn(t)},f.prototype.iabs=function(){return this.negative=0,this},f.prototype.abs=function(){return this.clone().iabs()},f.prototype._ishlnsubmul=function(t,e,r){var i,f,o=t.length+r;this._expand(o);var a=0;for(i=0;i<t.length;i++){f=(0|this.words[i+r])+a;var s=(0|t.words[i])*e;f-=67108863&s,a=(f>>26)-(s/67108864|0),this.words[i+r]=67108863&f}for(;i<this.length-r;i++)a=(f=(0|this.words[i+r])+a)>>26,this.words[i+r]=67108863&f;if(0===a)return this._strip();for(n(-1===a),a=0,i=0;i<this.length;i++)a=(f=-(0|this.words[i])+a)>>26,this.words[i]=67108863&f;return this.negative=1,this._strip()},f.prototype._wordDiv=function(t,e){var r,n=this.length-t.length,i=this.clone(),o=t,a=0|o.words[o.length-1];0!=(n=26-this._countBits(a))&&(o=o.ushln(n),i.iushln(n),a=0|o.words[o.length-1]);var s=i.length-o.length;if("mod"!==e){(r=new f(null)).length=s+1,r.words=Array(r.length);for(var u=0;u<r.length;u++)r.words[u]=0}var l=i.clone()._ishlnsubmul(o,1,s);0===l.negative&&(i=l,r&&(r.words[s]=1));for(var h=s-1;h>=0;h--){var c=(0|i.words[o.length+h])*67108864+(0|i.words[o.length+h-1]);for(c=Math.min(c/a|0,67108863),i._ishlnsubmul(o,c,h);0!==i.negative;)c--,i.negative=0,i._ishlnsubmul(o,1,h),i.isZero()||(i.negative^=1);r&&(r.words[h]=c)}return r&&r._strip(),i._strip(),"div"!==e&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},f.prototype.divmod=function(t,e,r){var i,o,a;return(n(!t.isZero()),this.isZero())?{div:new f(0),mod:new f(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:i,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):(this.negative&t.negative)!=0?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||0>this.cmp(t)?{div:new f(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new f(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new f(this.modrn(t.words[0]))}:this._wordDiv(t,e)},f.prototype.div=function(t){return this.divmod(t,"div",!1).div},f.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},f.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},f.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),f=r.cmp(n);return f<0||1===i&&0===f?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},f.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=67108864%t,i=0,f=this.length-1;f>=0;f--)i=(r*i+(0|this.words[f]))%t;return e?-i:i},f.prototype.modn=function(t){return this.modrn(t)},f.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 f=(0|this.words[i])+67108864*r;this.words[i]=f/t|0,r=f%t}return this._strip(),e?this.ineg():this},f.prototype.divn=function(t){return this.clone().idivn(t)},f.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();for(var i=new f(1),o=new f(0),a=new f(0),s=new f(1),u=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++u;for(var l=r.clone(),h=e.clone();!e.isZero();){for(var c=0,d=1;(e.words[0]&d)==0&&c<26;++c,d<<=1);if(c>0)for(e.iushrn(c);c-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(l),o.isub(h)),i.iushrn(1),o.iushrn(1);for(var p=0,m=1;(r.words[0]&m)==0&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||s.isOdd())&&(a.iadd(l),s.isub(h)),a.iushrn(1),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(a),o.isub(s)):(r.isub(e),a.isub(i),s.isub(o))}return{a:a,b:s,gcd:r.iushln(u)}},f.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e,r=this,i=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var o=new f(1),a=new f(0),s=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var u=0,l=1;(r.words[0]&l)==0&&u<26;++u,l<<=1);if(u>0)for(r.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);for(var h=0,c=1;(i.words[0]&c)==0&&h<26;++h,c<<=1);if(h>0)for(i.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);r.cmp(i)>=0?(r.isub(i),o.isub(a)):(i.isub(r),a.isub(o))}return 0>(e=0===r.cmpn(1)?o:a).cmpn(0)&&e.iadd(t),e},f.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);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var f=e;e=r,r=f}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},f.prototype.invm=function(t){return this.egcd(t).a.umod(t)},f.prototype.isEven=function(){return(1&this.words[0])==0},f.prototype.isOdd=function(){return(1&this.words[0])==1},f.prototype.andln=function(t){return this.words[0]&t},f.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var f=i,o=r;0!==f&&o<this.length;o++){var a=0|this.words[o];a+=f,f=a>>>26,a&=67108863,this.words[o]=a}return 0!==f&&(this.words[o]=f,this.length++),this},f.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},f.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:i<t?-1:1}return 0!==this.negative?0|-e:e},f.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return -1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},f.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return -1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},f.prototype.gtn=function(t){return 1===this.cmpn(t)},f.prototype.gt=function(t){return 1===this.cmp(t)},f.prototype.gten=function(t){return this.cmpn(t)>=0},f.prototype.gte=function(t){return this.cmp(t)>=0},f.prototype.ltn=function(t){return -1===this.cmpn(t)},f.prototype.lt=function(t){return -1===this.cmp(t)},f.prototype.lten=function(t){return 0>=this.cmpn(t)},f.prototype.lte=function(t){return 0>=this.cmp(t)},f.prototype.eqn=function(t){return 0===this.cmpn(t)},f.prototype.eq=function(t){return 0===this.cmp(t)},f.red=function(t){return new _(t)},f.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)},f.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},f.prototype._forceRed=function(t){return this.red=t,this},f.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},f.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},f.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},f.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},f.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},f.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},f.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},f.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},f.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},f.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},f.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},f.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},f.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},f.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new f(e,16),this.n=this.p.bitLength(),this.k=new f(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 E(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(t){if("string"==typeof t){var e=f._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 N(t){_.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new f(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 f(null);return t.words=Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,r=t;do this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?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=Math.min(t.length,9),n=0;n<r;n++)e.words[n]=t.words[n];if(e.length=r,t.length<=9){t.words[0]=0,t.length=1;return}var i=t.words[9];for(n=10,e.words[e.length++]=4194303&i;n<t.length;n++){var f=0|t.words[n];t.words[n-10]=(4194303&f)<<4|i>>>22,i=f}i>>>=22,t.words[n-10]=i,0===i&&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<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(E,w),i(A,w),i(S,w),S.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=(0|t.words[r])*19+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},f._prime=function(t){var e;if(v[t])return v[t];if("k256"===t)e=new M;else if("p224"===t)e=new E;else if("p192"===t)e=new A;else if("p25519"===t)e=new S;else throw Error("Unknown prime "+t);return v[t]=e,e},_.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},_.prototype._verify2=function(t,e){n((t.negative|e.negative)==0,"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},_.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(u(t,t.umod(this.m)._forceRed(this)),t)},_.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},_.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)},_.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},_.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},_.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return 0>r.cmpn(0)&&r.iadd(this.m),r},_.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},_.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},_.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},_.prototype.isqr=function(t){return this.imul(t,t.clone())},_.prototype.sqr=function(t){return this.mul(t,t)},_.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 f(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var a=new f(1).toRed(this),s=a.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new f(2*l*l).toRed(this);0!==this.pow(l,u).cmp(s);)l.redIAdd(s);for(var h=this.pow(l,i),c=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=o;0!==d.cmp(a);){for(var m=d,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g<p);var b=this.pow(h,new f(1).iushln(p-g-1));c=c.redMul(b),h=b.redSqr(),d=d.redMul(h),p=g}return c},_.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},_.prototype.pow=function(t,e){if(e.isZero())return new f(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=Array(16);r[0]=new f(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],o=0,a=0,s=e.bitLength()%26;for(0===s&&(s=26),n=e.length-1;n>=0;n--){for(var u=e.words[n],l=s-1;l>=0;l--){var h=u>>l&1;if(i!==r[0]&&(i=this.sqr(i)),0===h&&0===o){a=0;continue}o<<=1,o|=h,(4==++a||0===n&&0===l)&&(i=this.mul(i,r[o]),a=0,o=0)}s=26}return i},_.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},_.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},f.mont=function(t){return new N(t)},i(N,_),N.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},N.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},N.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),f=i;return i.cmp(this.m)>=0?f=i.isub(this.m):0>i.cmpn(0)&&(f=i.iadd(this.m)),f._forceRed(this)},N.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new f(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),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},N.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},66084:function(t,e,r){var n,i=r(34155);!function(){"use strict";var f="input is invalid type",o="object"==typeof window,a=o?window:{};a.JS_SHA3_NO_WINDOW&&(o=!1);var s=!o&&"object"==typeof self;!a.JS_SHA3_NO_NODE_JS&&"object"==typeof i&&i.versions&&i.versions.node?a=r.g:s&&(a=self);var u=!a.JS_SHA3_NO_COMMON_JS&&t.exports,l=r.amdO,h=!a.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,c="0123456789abcdef".split(""),d=[4,1024,262144,67108864],p=[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],g=[224,256,384,512],b=[128,256],y=["hex","buffer","arrayBuffer","array","digest"],v={128:168,256:136};(a.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),h&&(a.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 w=function(t,e,r){return function(n){return new F(t,e,t).update(n)[r]()}},M=function(t,e,r){return function(n,i){return new F(t,e,i).update(n)[r]()}},E=function(t,e,r){return function(e,n,i,f){return T["cshake"+t].update(e,n,i,f)[r]()}},A=function(t,e,r){return function(e,n,i,f){return T["kmac"+t].update(e,n,i,f)[r]()}},S=function(t,e,r,n){for(var i=0;i<y.length;++i){var f=y[i];t[f]=e(r,n,f)}return t},_=function(t,e){var r=w(t,e,"hex");return r.create=function(){return new F(t,e,t)},r.update=function(t){return r.create().update(t)},S(r,w,t,e)},N=[{name:"keccak",padding:[1,256,65536,16777216],bits:g,createMethod:_},{name:"sha3",padding:[6,1536,393216,100663296],bits:g,createMethod:_},{name:"shake",padding:[31,7936,2031616,520093696],bits:b,createMethod:function(t,e){var r=M(t,e,"hex");return r.create=function(r){return new F(t,e,r)},r.update=function(t,e){return r.create(e).update(t)},S(r,M,t,e)}},{name:"cshake",padding:d,bits:b,createMethod:function(t,e){var r=v[t],n=E(t,e,"hex");return n.create=function(n,i,f){return i||f?new F(t,e,n).bytepad([i,f],r):T["shake"+t].create(n)},n.update=function(t,e,r,i){return n.create(e,r,i).update(t)},S(n,E,t,e)}},{name:"kmac",padding:d,bits:b,createMethod:function(t,e){var r=v[t],n=A(t,e,"hex");return n.create=function(n,i,f){return new B(t,e,i).bytepad(["KMAC",f],r).bytepad([n],r)},n.update=function(t,e,r,i){return n.create(t,r,i).update(e)},S(n,A,t,e)}}],T={},R=[],C=0;C<N.length;++C)for(var I=N[C],P=I.bits,O=0;O<P.length;++O){var x=I.name+"_"+P[O];if(R.push(x),T[x]=I.createMethod(P[O],I.padding),"sha3"!==I.name){var k=I.name+P[O];R.push(k),T[k]=T[x]}}function F(t,e,r){this.blocks=[],this.s=[],this.padding=e,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(t<<1)>>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 B(t,e,r){F.call(this,t,e,r)}F.prototype.update=function(t){if(this.finalized)throw Error("finalize already called");var e,r=typeof t;if("string"!==r){if("object"===r){if(null===t)throw Error(f);if(h&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!h||!ArrayBuffer.isView(t)))throw Error(f)}else throw Error(f);e=!0}for(var n,i,o=this.blocks,a=this.byteCount,s=t.length,u=this.blockCount,l=0,c=this.s;l<s;){if(this.reset)for(n=1,this.reset=!1,o[0]=this.block;n<u+1;++n)o[n]=0;if(e)for(n=this.start;l<s&&n<a;++l)o[n>>2]|=t[l]<<p[3&n++];else for(n=this.start;l<s&&n<a;++l)(i=t.charCodeAt(l))<128?o[n>>2]|=i<<p[3&n++]:(i<2048?o[n>>2]|=(192|i>>6)<<p[3&n++]:(i<55296||i>=57344?o[n>>2]|=(224|i>>12)<<p[3&n++]:(i=65536+((1023&i)<<10|1023&t.charCodeAt(++l)),o[n>>2]|=(240|i>>18)<<p[3&n++],o[n>>2]|=(128|i>>12&63)<<p[3&n++]),o[n>>2]|=(128|i>>6&63)<<p[3&n++]),o[n>>2]|=(128|63&i)<<p[3&n++]);if(this.lastByteIndex=n,n>=a){for(this.start=n-a,this.block=o[u],n=0;n<u;++n)c[n]^=o[n];L(c),this.reset=!0}else this.start=n}return this},F.prototype.encode=function(t,e){var r=255&t,n=1,i=[r];for(t>>=8,r=255&t;r>0;)i.unshift(r),t>>=8,r=255&t,++n;return e?i.push(n):i.unshift(n),this.update(i),i.length},F.prototype.encodeString=function(t){var e,r=typeof t;if("string"!==r){if("object"===r){if(null===t)throw Error(f);if(h&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!h||!ArrayBuffer.isView(t)))throw Error(f)}else throw Error(f);e=!0}var n=0,i=t.length;if(e)n=i;else for(var o=0;o<t.length;++o){var a=t.charCodeAt(o);a<128?n+=1:a<2048?n+=2:a<55296||a>=57344?n+=3:(a=65536+((1023&a)<<10|1023&t.charCodeAt(++o)),n+=4)}return n+=this.encode(8*n),this.update(t),n},F.prototype.bytepad=function(t,e){for(var r=this.encode(e),n=0;n<t.length;++n)r+=this.encodeString(t[n]);var i=e-r%e,f=[];return f.length=i,this.update(f),this},F.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex,r=this.blockCount,n=this.s;if(t[e>>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(e=1,t[0]=t[r];e<r+1;++e)t[e]=0;for(t[r-1]|=2147483648,e=0;e<r;++e)n[e]^=t[e];L(n)}},F.prototype.toString=F.prototype.hex=function(){this.finalize();for(var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,f=0,o=0,a="";o<n;){for(f=0;f<e&&o<n;++f,++o)a+=c[(t=r[f])>>4&15]+c[15&t]+c[t>>12&15]+c[t>>8&15]+c[t>>20&15]+c[t>>16&15]+c[t>>28&15]+c[t>>24&15];o%e==0&&(L(r),f=0)}return i&&(a+=c[(t=r[f])>>4&15]+c[15&t],i>1&&(a+=c[t>>12&15]+c[t>>8&15]),i>2&&(a+=c[t>>20&15]+c[t>>16&15])),a},F.prototype.arrayBuffer=function(){this.finalize();for(var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,f=0,o=0,a=this.outputBits>>3,s=new Uint32Array(t=new ArrayBuffer(i?n+1<<2:a));o<n;){for(f=0;f<e&&o<n;++f,++o)s[o]=r[f];o%e==0&&L(r)}return i&&(s[f]=r[f],t=t.slice(0,a)),t},F.prototype.buffer=F.prototype.arrayBuffer,F.prototype.digest=F.prototype.array=function(){this.finalize();for(var t,e,r=this.blockCount,n=this.s,i=this.outputBlocks,f=this.extraBytes,o=0,a=0,s=[];a<i;){for(o=0;o<r&&a<i;++o,++a)t=a<<2,e=n[o],s[t]=255&e,s[t+1]=e>>8&255,s[t+2]=e>>16&255,s[t+3]=e>>24&255;a%r==0&&L(n)}return f&&(t=a<<2,e=n[o],s[t]=255&e,f>1&&(s[t+1]=e>>8&255),f>2&&(s[t+2]=e>>16&255)),s},B.prototype=new F,B.prototype.finalize=function(){return this.encode(this.outputBits,!0),F.prototype.finalize.call(this)};var L=function(t){var e,r,n,i,f,o,a,s,u,l,h,c,d,p,g,b,y,v,w,M,E,A,S,_,N,T,R,C,I,P,O,x,k,F,B,L,D,U,G,z,J,j,H,V,X,q,Z,K,W,Y,Q,$,tt,te,tr,tn,ti,tf,to,ta,ts,tu,tl;for(n=0;n<48;n+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],f=t[1]^t[11]^t[21]^t[31]^t[41],o=t[2]^t[12]^t[22]^t[32]^t[42],a=t[3]^t[13]^t[23]^t[33]^t[43],s=t[4]^t[14]^t[24]^t[34]^t[44],u=t[5]^t[15]^t[25]^t[35]^t[45],l=t[6]^t[16]^t[26]^t[36]^t[46],h=t[7]^t[17]^t[27]^t[37]^t[47],c=t[8]^t[18]^t[28]^t[38]^t[48],d=t[9]^t[19]^t[29]^t[39]^t[49],e=c^(o<<1|a>>>31),r=d^(a<<1|o>>>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^(s<<1|u>>>31),r=f^(u<<1|s>>>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=o^(l<<1|h>>>31),r=a^(h<<1|l>>>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=s^(c<<1|d>>>31),r=u^(d<<1|c>>>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=l^(i<<1|f>>>31),r=h^(f<<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],g=t[1],q=t[11]<<4|t[10]>>>28,Z=t[10]<<4|t[11]>>>28,C=t[20]<<3|t[21]>>>29,I=t[21]<<3|t[20]>>>29,ta=t[31]<<9|t[30]>>>23,ts=t[30]<<9|t[31]>>>23,j=t[40]<<18|t[41]>>>14,H=t[41]<<18|t[40]>>>14,F=t[2]<<1|t[3]>>>31,B=t[3]<<1|t[2]>>>31,b=t[13]<<12|t[12]>>>20,y=t[12]<<12|t[13]>>>20,K=t[22]<<10|t[23]>>>22,W=t[23]<<10|t[22]>>>22,P=t[33]<<13|t[32]>>>19,O=t[32]<<13|t[33]>>>19,tu=t[42]<<2|t[43]>>>30,tl=t[43]<<2|t[42]>>>30,te=t[5]<<30|t[4]>>>2,tr=t[4]<<30|t[5]>>>2,L=t[14]<<6|t[15]>>>26,D=t[15]<<6|t[14]>>>26,v=t[25]<<11|t[24]>>>21,w=t[24]<<11|t[25]>>>21,Y=t[34]<<15|t[35]>>>17,Q=t[35]<<15|t[34]>>>17,x=t[45]<<29|t[44]>>>3,k=t[44]<<29|t[45]>>>3,_=t[6]<<28|t[7]>>>4,N=t[7]<<28|t[6]>>>4,tn=t[17]<<23|t[16]>>>9,ti=t[16]<<23|t[17]>>>9,U=t[26]<<25|t[27]>>>7,G=t[27]<<25|t[26]>>>7,M=t[36]<<21|t[37]>>>11,E=t[37]<<21|t[36]>>>11,$=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,V=t[8]<<27|t[9]>>>5,X=t[9]<<27|t[8]>>>5,T=t[18]<<20|t[19]>>>12,R=t[19]<<20|t[18]>>>12,tf=t[29]<<7|t[28]>>>25,to=t[28]<<7|t[29]>>>25,z=t[38]<<8|t[39]>>>24,J=t[39]<<8|t[38]>>>24,A=t[48]<<14|t[49]>>>18,S=t[49]<<14|t[48]>>>18,t[0]=p^~b&v,t[1]=g^~y&w,t[10]=_^~T&C,t[11]=N^~R&I,t[20]=F^~L&U,t[21]=B^~D&G,t[30]=V^~q&K,t[31]=X^~Z&W,t[40]=te^~tn&tf,t[41]=tr^~ti&to,t[2]=b^~v&M,t[3]=y^~w&E,t[12]=T^~C&P,t[13]=R^~I&O,t[22]=L^~U&z,t[23]=D^~G&J,t[32]=q^~K&Y,t[33]=Z^~W&Q,t[42]=tn^~tf&ta,t[43]=ti^~to&ts,t[4]=v^~M&A,t[5]=w^~E&S,t[14]=C^~P&x,t[15]=I^~O&k,t[24]=U^~z&j,t[25]=G^~J&H,t[34]=K^~Y&$,t[35]=W^~Q&tt,t[44]=tf^~ta&tu,t[45]=to^~ts&tl,t[6]=M^~A&p,t[7]=E^~S&g,t[16]=P^~x&_,t[17]=O^~k&N,t[26]=z^~j&F,t[27]=J^~H&B,t[36]=Y^~$&V,t[37]=Q^~tt&X,t[46]=ta^~tu&te,t[47]=ts^~tl&tr,t[8]=A^~p&b,t[9]=S^~g&y,t[18]=x^~_&T,t[19]=k^~N&R,t[28]=j^~F&L,t[29]=H^~B&D,t[38]=$^~V&q,t[39]=tt^~X&Z,t[48]=tu^~te&tn,t[49]=tl^~tr&ti,t[0]^=m[n],t[1]^=m[n+1]};if(u)t.exports=T;else{for(C=0;C<R.length;++C)a[R[C]]=T[R[C]];l&&void 0!==(n=(function(){return T}).call(e,r,e,t))&&(t.exports=n)}}()},57530:function(t,e,r){"use strict";var n,i,f,o,a,s,u,l;r.r(e),r.d(e,{_fetchData:function(){return B},fetchJson:function(){return L},poll:function(){return D}});let h=!1,c=!1,d={debug:1,default:2,info:2,warning:3,error:4,off:5},p=d.default,m=null,g=function(){try{let t=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test"!=="test".normalize(e))throw Error("bad normalize")}catch(r){t.push(e)}}),t.length)throw Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw Error("broken implementation")}catch(t){return t.message}return null}();(n=a||(a={})).DEBUG="DEBUG",n.INFO="INFO",n.WARNING="WARNING",n.ERROR="ERROR",n.OFF="OFF",(i=s||(s={})).UNKNOWN_ERROR="UNKNOWN_ERROR",i.NOT_IMPLEMENTED="NOT_IMPLEMENTED",i.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",i.NETWORK_ERROR="NETWORK_ERROR",i.SERVER_ERROR="SERVER_ERROR",i.TIMEOUT="TIMEOUT",i.BUFFER_OVERRUN="BUFFER_OVERRUN",i.NUMERIC_FAULT="NUMERIC_FAULT",i.MISSING_NEW="MISSING_NEW",i.INVALID_ARGUMENT="INVALID_ARGUMENT",i.MISSING_ARGUMENT="MISSING_ARGUMENT",i.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",i.CALL_EXCEPTION="CALL_EXCEPTION",i.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",i.NONCE_EXPIRED="NONCE_EXPIRED",i.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",i.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",i.TRANSACTION_REPLACED="TRANSACTION_REPLACED",i.ACTION_REJECTED="ACTION_REJECTED";let b="0123456789abcdef";class y{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){let r=t.toLowerCase();null==d[r]&&this.throwArgumentError("invalid log level name","logLevel",t),p>d[r]||console.log.apply(console,e)}debug(...t){this._log(y.levels.DEBUG,t)}info(...t){this._log(y.levels.INFO,t)}warn(...t){this._log(y.levels.WARNING,t)}makeError(t,e,r){if(c)return this.makeError("censored error",e,{});e||(e=y.errors.UNKNOWN_ERROR),r||(r={});let n=[];Object.keys(r).forEach(t=>{let e=r[t];try{if(e instanceof Uint8Array){let r="";for(let t=0;t<e.length;t++)r+=b[e[t]>>4]+b[15&e[t]];n.push(t+"=Uint8Array(0x"+r+")")}else n.push(t+"="+JSON.stringify(e))}catch(e){n.push(t+"="+JSON.stringify(r[t].toString()))}}),n.push(`code=${e}`),n.push(`version=${this.version}`);let i=t,f="";switch(e){case s.NUMERIC_FAULT:{f="NUMERIC_FAULT";let e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":f+="-"+e;break;case"negative-power":case"negative-width":f+="-unsupported";break;case"unbound-bitwise-result":f+="-unbound-result"}break}case s.CALL_EXCEPTION:case s.INSUFFICIENT_FUNDS:case s.MISSING_NEW:case s.NONCE_EXPIRED:case s.REPLACEMENT_UNDERPRICED:case s.TRANSACTION_REPLACED:case s.UNPREDICTABLE_GAS_LIMIT:f=e}f&&(t+=" [ See: https://links.ethers.org/v5-errors-"+f+" ]"),n.length&&(t+=" ("+n.join(", ")+")");let o=Error(t);return o.reason=i,o.code=e,Object.keys(r).forEach(function(t){o[t]=r[t]}),o}throwError(t,e,r){throw this.makeError(t,e,r)}throwArgumentError(t,e,r){return this.throwError(t,y.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"),g&&this.throwError("platform missing String.prototype.normalize",y.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:g})}checkSafeUint53(t,e){"number"==typeof t&&(null==e&&(e="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(e,y.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(e,y.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,e,r){r=r?": "+r:"",t<e&&this.throwError("missing argument"+r,y.errors.MISSING_ARGUMENT,{count:t,expectedCount:e}),t>e&&this.throwError("too many arguments"+r,y.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:e})}checkNew(t,e){(t===Object||null==t)&&this.throwError("missing new",y.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",y.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):(t===Object||null==t)&&this.throwError("missing new",y.errors.MISSING_NEW,{name:e.name})}static globalLogger(){return m||(m=new y("logger/5.7.0")),m}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",y.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),h){if(!t)return;this.globalLogger().throwError("error censorship permanent",y.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}c=!!t,h=!!e}static setLogLevel(t){let e=d[t.toLowerCase()];if(null==e){y.globalLogger().warn("invalid log level - "+t);return}p=e}static from(t){return new y(t)}}y.errors=s,y.levels=a;let v=new y("bytes/5.7.0");function w(t){return!!t.toHexString}function M(t){return t.slice||(t.slice=function(){let e=Array.prototype.slice.call(arguments);return M(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function E(t){return"number"==typeof t&&t==t&&t%1==0}function A(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"==typeof t||!E(t.length)||t.length<0)return!1;for(let e=0;e<t.length;e++){let r=t[e];if(!E(r)||r<0||r>=256)return!1}return!0}function S(t,e){if(e||(e={}),"number"==typeof t){v.checkSafeUint53(t,"invalid arrayify value");let e=[];for(;t;)e.unshift(255&t),t=parseInt(String(t/256));return 0===e.length&&e.push(0),M(new Uint8Array(e))}if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),w(t)&&(t=t.toHexString()),_(t)){let r=t.substring(2);r.length%2&&("left"===e.hexPad?r="0"+r:"right"===e.hexPad?r+="0":v.throwArgumentError("hex data is odd-length","value",t));let n=[];for(let t=0;t<r.length;t+=2)n.push(parseInt(r.substring(t,t+2),16));return M(new Uint8Array(n))}return A(t)?M(new Uint8Array(t)):v.throwArgumentError("invalid arrayify value","value",t)}function _(t,e){return"string"==typeof t&&!!t.match(/^0x[0-9A-Fa-f]*$/)&&(!e||t.length===2+2*e)}let N="0123456789abcdef";function T(t){let e={};for(let r in t)e[r]=t[r];return e}new y("properties/5.7.0");let R=new y("strings/5.7.0");function C(t,e,r,n,i){if(t===l.BAD_PREFIX||t===l.UNEXPECTED_CONTINUE){let t=0;for(let n=e+1;n<r.length&&r[n]>>6==2;n++)t++;return t}return t===l.OVERRUN?r.length-e-1:0}(f=u||(u={})).current="",f.NFC="NFC",f.NFD="NFD",f.NFKC="NFKC",f.NFKD="NFKD",(o=l||(l={})).UNEXPECTED_CONTINUE="unexpected continuation byte",o.BAD_PREFIX="bad codepoint prefix",o.OVERRUN="string overrun",o.MISSING_CONTINUE="missing continuation byte",o.OUT_OF_RANGE="out of UTF-8 range",o.UTF16_SURROGATE="UTF-16 surrogate",o.OVERLONG="overlong representation";let I=Object.freeze({error:function(t,e,r,n,i){return R.throwArgumentError(`invalid codepoint at offset ${e}; ${t}`,"bytes",r)},ignore:C,replace:function(t,e,r,n,i){return t===l.OVERLONG?(n.push(i),0):(n.push(65533),C(t,e,r,n,i))}});function P(t,e=u.current){e!=u.current&&(R.checkNormalize(),t=t.normalize(e));let r=[];for(let e=0;e<t.length;e++){let n=t.charCodeAt(e);if(n<128)r.push(n);else if(n<2048)r.push(n>>6|192),r.push(63&n|128);else if((64512&n)==55296){e++;let i=t.charCodeAt(e);if(e>=t.length||(64512&i)!=56320)throw Error("invalid utf-8 string");let f=65536+((1023&n)<<10)+(1023&i);r.push(f>>18|240),r.push(f>>12&63|128),r.push(f>>6&63|128),r.push(63&f|128)}else r.push(n>>12|224),r.push(n>>6&63|128),r.push(63&n|128)}return S(r)}function O(t,e){return(function(t,e){null==e&&(e=I.error),t=S(t);let r=[],n=0;for(;n<t.length;){let i=t[n++];if(i>>7==0){r.push(i);continue}let f=null,o=null;if((224&i)==192)f=1,o=127;else if((240&i)==224)f=2,o=2047;else if((248&i)==240)f=3,o=65535;else{(192&i)==128?n+=e(l.UNEXPECTED_CONTINUE,n-1,t,r):n+=e(l.BAD_PREFIX,n-1,t,r);continue}if(n-1+f>=t.length){n+=e(l.OVERRUN,n-1,t,r);continue}let a=i&(1<<8-f-1)-1;for(let i=0;i<f;i++){let i=t[n];if((192&i)!=128){n+=e(l.MISSING_CONTINUE,n,t,r),a=null;break}a=a<<6|63&i,n++}if(null!==a){if(a>1114111){n+=e(l.OUT_OF_RANGE,n-1-f,t,r,a);continue}if(a>=55296&&a<=57343){n+=e(l.UTF16_SURROGATE,n-1-f,t,r,a);continue}if(a<=o){n+=e(l.OVERLONG,n-1-f,t,r,a);continue}r.push(a)}}return r})(t,e).map(t=>t<=65535?String.fromCharCode(t):String.fromCharCode(((t-=65536)>>10&1023)+55296,(1023&t)+56320)).join("")}let x=new y("web/5.4.0");function k(t){return new Promise(e=>{setTimeout(e,t)})}function F(t,e){if(null==t)return null;if("string"==typeof t)return t;if(_(t)&&!(t.length%2)||A(t)){if(e&&("text"===e.split("/")[0]||"application/json"===e.split(";")[0].trim()))try{return O(t)}catch(t){}return function(t,e){if(e||(e={}),"number"==typeof t){v.checkSafeUint53(t,"invalid hexlify value");let e="";for(;t;)e=N[15&t]+e,t=Math.floor(t/16);return e.length?(e.length%2&&(e="0"+e),"0x"+e):"0x00"}if("bigint"==typeof t)return(t=t.toString(16)).length%2?"0x0"+t:"0x"+t;if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),w(t))return t.toHexString();if(_(t))return t.length%2&&("left"===e.hexPad?t="0x0"+t.substring(2):"right"===e.hexPad?t+="0":v.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(A(t)){let e="0x";for(let r=0;r<t.length;r++){let n=t[r];e+=N[(240&n)>>4]+N[15&n]}return e}return v.throwArgumentError("invalid hexlify value","value",t)}(t)}return t}function B(t,e,r){let n;let i="object"==typeof t&&null!=t.throttleLimit?t.throttleLimit:12;x.assertArgument(i>0&&i%1==0,"invalid connection throttle limit","connection.throttleLimit",i);let f="object"==typeof t?t.throttleCallback:null,o="object"==typeof t&&"number"==typeof t.throttleSlotInterval?t.throttleSlotInterval:100;x.assertArgument(o>0&&o%1==0,"invalid connection throttle slot interval","connection.throttleSlotInterval",o);let a={},s=null,u={method:"GET"},l=!1,h=12e4;if("string"==typeof t)s=t;else if("object"==typeof t){if((null==t||null==t.url)&&x.throwArgumentError("missing URL","connection.url",t),s=t.url,"number"==typeof t.timeout&&t.timeout>0&&(h=t.timeout),t.headers)for(let e in t.headers)a[e.toLowerCase()]={key:e,value:String(t.headers[e])},["if-none-match","if-modified-since"].indexOf(e.toLowerCase())>=0&&(l=!0);if(u.allowGzip=!!t.allowGzip,null!=t.user&&null!=t.password){"https:"!==s.substring(0,6)&&!0!==t.allowInsecureAuthentication&&x.throwError("basic authentication requires a secure https url",y.errors.INVALID_ARGUMENT,{argument:"url",url:s,user:t.user,password:"[REDACTED]"});let e=t.user+":"+t.password;a.authorization={key:"Authorization",value:"Basic "+function(t){t=S(t);let e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return btoa(e)}(P(e))}}}e&&(u.method="POST",u.body=e,null==a["content-type"]&&(a["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==a["content-length"]&&(a["content-length"]={key:"Content-Length",value:String(e.length)}));let c={};Object.keys(a).forEach(t=>{let e=a[t];c[e.key]=e.value}),u.headers=c;let d=(n=null,{promise:new Promise(function(t,e){h&&(n=setTimeout(()=>{null!=n&&(n=null,e(x.makeError("timeout",y.errors.TIMEOUT,{requestBody:F(u.body,c["content-type"]),requestMethod:u.method,timeout:h,url:s})))},h))}),cancel:function(){null!=n&&(clearTimeout(n),n=null)}}),p=function(){var t,e,n,a;return t=this,e=void 0,n=void 0,a=function*(){for(let t=0;t<i;t++){let e=null;try{if(e=yield function(t,e){var r,n,i,f;return r=this,n=void 0,i=void 0,f=function*(){null==e&&(e={});let r={method:e.method||"GET",headers:e.headers||{},body:e.body||void 0,mode:"cors",cache:"no-cache",credentials:"same-origin",redirect:"follow",referrer:"client"},n=yield fetch(t,r),i=yield n.arrayBuffer(),f={};return n.headers.forEach?n.headers.forEach((t,e)=>{f[e.toLowerCase()]=t}):n.headers.keys().forEach(t=>{f[t.toLowerCase()]=n.headers.get(t)}),{headers:f,statusCode:n.status,statusMessage:n.statusText,body:S(new Uint8Array(i))}},new(i||(i=Promise))(function(t,e){function o(t){try{s(f.next(t))}catch(t){e(t)}}function a(t){try{s(f.throw(t))}catch(t){e(t)}}function s(e){var r;e.done?t(e.value):((r=e.value)instanceof i?r:new i(function(t){t(r)})).then(o,a)}s((f=f.apply(r,n||[])).next())})}(s,u),429===e.statusCode&&t<i){let r=!0;if(f&&(r=yield f(t,s)),r){let r=0,n=e.headers["retry-after"];r="string"==typeof n&&n.match(/^[1-9][0-9]*$/)?1e3*parseInt(n):o*parseInt(String(Math.random()*Math.pow(2,t))),yield k(r);continue}}}catch(t){null==(e=t.response)&&(d.cancel(),x.throwError("missing response",y.errors.SERVER_ERROR,{requestBody:F(u.body,c["content-type"]),requestMethod:u.method,serverError:t,url:s}))}let n=e.body;if(l&&304===e.statusCode?n=null:(e.statusCode<200||e.statusCode>=300)&&(d.cancel(),x.throwError("bad response",y.errors.SERVER_ERROR,{status:e.statusCode,headers:e.headers,body:F(n,e.headers?e.headers["content-type"]:null),requestBody:F(u.body,c["content-type"]),requestMethod:u.method,url:s})),r)try{let t=yield r(n,e);return d.cancel(),t}catch(r){if(r.throttleRetry&&t<i){let e=!0;if(f&&(e=yield f(t,s)),e){let e=o*parseInt(String(Math.random()*Math.pow(2,t)));yield k(e);continue}}d.cancel(),x.throwError("processing response error",y.errors.SERVER_ERROR,{body:F(n,e.headers?e.headers["content-type"]:null),error:r,requestBody:F(u.body,c["content-type"]),requestMethod:u.method,url:s})}return d.cancel(),n}return x.throwError("failed response",y.errors.SERVER_ERROR,{requestBody:F(u.body,c["content-type"]),requestMethod:u.method,url:s})},new(n||(n=Promise))(function(r,i){function f(t){try{s(a.next(t))}catch(t){i(t)}}function o(t){try{s(a.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?r(t.value):((e=t.value)instanceof n?e:new n(function(t){t(e)})).then(f,o)}s((a=a.apply(t,e||[])).next())})}();return Promise.race([d.promise,p])}function L(t,e,r){let n=null;if(null!=e){n=P(e);let r="string"==typeof t?{url:t}:T(t);r.headers?0!==Object.keys(r.headers).filter(t=>"content-type"===t.toLowerCase()).length||(r.headers=T(r.headers),r.headers["content-type"]="application/json"):r.headers={"content-type":"application/json"},t=r}return B(t,n,(t,e)=>{let n=null;if(null!=t)try{n=JSON.parse(O(t))}catch(e){x.throwError("invalid JSON",y.errors.SERVER_ERROR,{body:t,error:e})}return r&&(n=r(n,e)),n})}function D(t,e){return e||(e={}),null==(e=T(e)).floor&&(e.floor=0),null==e.ceiling&&(e.ceiling=1e4),null==e.interval&&(e.interval=250),new Promise(function(r,n){let i=null,f=!1,o=()=>!f&&(f=!0,i&&clearTimeout(i),!0);e.timeout&&(i=setTimeout(()=>{o()&&n(Error("timeout"))},e.timeout));let a=e.retryLimit,s=0;!function i(){return t().then(function(t){if(void 0!==t)o()&&r(t);else if(e.oncePoll)e.oncePoll.once("poll",i);else if(e.onceBlock)e.onceBlock.once("block",i);else if(!f){if(++s>a){o()&&n(Error("retry limit reached"));return}let t=e.interval*parseInt(String(Math.random()*Math.pow(2,s)));t<e.floor&&(t=e.floor),t>e.ceiling&&(t=e.ceiling),setTimeout(i,t)}return null},function(t){o()&&n(t)})}()})}},55603:function(t,e,r){var n,i=r(34155);!function(){"use strict";var f="input is invalid type",o="object"==typeof window,a=o?window:{};a.JS_SHA3_NO_WINDOW&&(o=!1);var s=!o&&"object"==typeof self;!a.JS_SHA3_NO_NODE_JS&&"object"==typeof i&&i.versions&&i.versions.node?a=r.g:s&&(a=self);var u=!a.JS_SHA3_NO_COMMON_JS&&t.exports,l=r.amdO,h=!a.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,c="0123456789abcdef".split(""),d=[4,1024,262144,67108864],p=[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],g=[224,256,384,512],b=[128,256],y=["hex","buffer","arrayBuffer","array","digest"],v={128:168,256:136};(a.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),h&&(a.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 w=function(t,e,r){return function(n){return new F(t,e,t).update(n)[r]()}},M=function(t,e,r){return function(n,i){return new F(t,e,i).update(n)[r]()}},E=function(t,e,r){return function(e,n,i,f){return T["cshake"+t].update(e,n,i,f)[r]()}},A=function(t,e,r){return function(e,n,i,f){return T["kmac"+t].update(e,n,i,f)[r]()}},S=function(t,e,r,n){for(var i=0;i<y.length;++i){var f=y[i];t[f]=e(r,n,f)}return t},_=function(t,e){var r=w(t,e,"hex");return r.create=function(){return new F(t,e,t)},r.update=function(t){return r.create().update(t)},S(r,w,t,e)},N=[{name:"keccak",padding:[1,256,65536,16777216],bits:g,createMethod:_},{name:"sha3",padding:[6,1536,393216,100663296],bits:g,createMethod:_},{name:"shake",padding:[31,7936,2031616,520093696],bits:b,createMethod:function(t,e){var r=M(t,e,"hex");return r.create=function(r){return new F(t,e,r)},r.update=function(t,e){return r.create(e).update(t)},S(r,M,t,e)}},{name:"cshake",padding:d,bits:b,createMethod:function(t,e){var r=v[t],n=E(t,e,"hex");return n.create=function(n,i,f){return i||f?new F(t,e,n).bytepad([i,f],r):T["shake"+t].create(n)},n.update=function(t,e,r,i){return n.create(e,r,i).update(t)},S(n,E,t,e)}},{name:"kmac",padding:d,bits:b,createMethod:function(t,e){var r=v[t],n=A(t,e,"hex");return n.create=function(n,i,f){return new B(t,e,i).bytepad(["KMAC",f],r).bytepad([n],r)},n.update=function(t,e,r,i){return n.create(t,r,i).update(e)},S(n,A,t,e)}}],T={},R=[],C=0;C<N.length;++C)for(var I=N[C],P=I.bits,O=0;O<P.length;++O){var x=I.name+"_"+P[O];if(R.push(x),T[x]=I.createMethod(P[O],I.padding),"sha3"!==I.name){var k=I.name+P[O];R.push(k),T[k]=T[x]}}function F(t,e,r){this.blocks=[],this.s=[],this.padding=e,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(t<<1)>>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 B(t,e,r){F.call(this,t,e,r)}F.prototype.update=function(t){if(this.finalized)throw Error("finalize already called");var e,r=typeof t;if("string"!==r){if("object"===r){if(null===t)throw Error(f);if(h&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!h||!ArrayBuffer.isView(t)))throw Error(f)}else throw Error(f);e=!0}for(var n,i,o=this.blocks,a=this.byteCount,s=t.length,u=this.blockCount,l=0,c=this.s;l<s;){if(this.reset)for(n=1,this.reset=!1,o[0]=this.block;n<u+1;++n)o[n]=0;if(e)for(n=this.start;l<s&&n<a;++l)o[n>>2]|=t[l]<<p[3&n++];else for(n=this.start;l<s&&n<a;++l)(i=t.charCodeAt(l))<128?o[n>>2]|=i<<p[3&n++]:(i<2048?o[n>>2]|=(192|i>>6)<<p[3&n++]:(i<55296||i>=57344?o[n>>2]|=(224|i>>12)<<p[3&n++]:(i=65536+((1023&i)<<10|1023&t.charCodeAt(++l)),o[n>>2]|=(240|i>>18)<<p[3&n++],o[n>>2]|=(128|i>>12&63)<<p[3&n++]),o[n>>2]|=(128|i>>6&63)<<p[3&n++]),o[n>>2]|=(128|63&i)<<p[3&n++]);if(this.lastByteIndex=n,n>=a){for(this.start=n-a,this.block=o[u],n=0;n<u;++n)c[n]^=o[n];L(c),this.reset=!0}else this.start=n}return this},F.prototype.encode=function(t,e){var r=255&t,n=1,i=[r];for(t>>=8,r=255&t;r>0;)i.unshift(r),t>>=8,r=255&t,++n;return e?i.push(n):i.unshift(n),this.update(i),i.length},F.prototype.encodeString=function(t){var e,r=typeof t;if("string"!==r){if("object"===r){if(null===t)throw Error(f);if(h&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!h||!ArrayBuffer.isView(t)))throw Error(f)}else throw Error(f);e=!0}var n=0,i=t.length;if(e)n=i;else for(var o=0;o<t.length;++o){var a=t.charCodeAt(o);a<128?n+=1:a<2048?n+=2:a<55296||a>=57344?n+=3:(a=65536+((1023&a)<<10|1023&t.charCodeAt(++o)),n+=4)}return n+=this.encode(8*n),this.update(t),n},F.prototype.bytepad=function(t,e){for(var r=this.encode(e),n=0;n<t.length;++n)r+=this.encodeString(t[n]);var i=e-r%e,f=[];return f.length=i,this.update(f),this},F.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex,r=this.blockCount,n=this.s;if(t[e>>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(e=1,t[0]=t[r];e<r+1;++e)t[e]=0;for(t[r-1]|=2147483648,e=0;e<r;++e)n[e]^=t[e];L(n)}},F.prototype.toString=F.prototype.hex=function(){this.finalize();for(var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,f=0,o=0,a="";o<n;){for(f=0;f<e&&o<n;++f,++o)a+=c[(t=r[f])>>4&15]+c[15&t]+c[t>>12&15]+c[t>>8&15]+c[t>>20&15]+c[t>>16&15]+c[t>>28&15]+c[t>>24&15];o%e==0&&(L(r),f=0)}return i&&(a+=c[(t=r[f])>>4&15]+c[15&t],i>1&&(a+=c[t>>12&15]+c[t>>8&15]),i>2&&(a+=c[t>>20&15]+c[t>>16&15])),a},F.prototype.arrayBuffer=function(){this.finalize();for(var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,f=0,o=0,a=this.outputBits>>3,s=new Uint32Array(t=new ArrayBuffer(i?n+1<<2:a));o<n;){for(f=0;f<e&&o<n;++f,++o)s[o]=r[f];o%e==0&&L(r)}return i&&(s[f]=r[f],t=t.slice(0,a)),t},F.prototype.buffer=F.prototype.arrayBuffer,F.prototype.digest=F.prototype.array=function(){this.finalize();for(var t,e,r=this.blockCount,n=this.s,i=this.outputBlocks,f=this.extraBytes,o=0,a=0,s=[];a<i;){for(o=0;o<r&&a<i;++o,++a)t=a<<2,e=n[o],s[t]=255&e,s[t+1]=e>>8&255,s[t+2]=e>>16&255,s[t+3]=e>>24&255;a%r==0&&L(n)}return f&&(t=a<<2,e=n[o],s[t]=255&e,f>1&&(s[t+1]=e>>8&255),f>2&&(s[t+2]=e>>16&255)),s},B.prototype=new F,B.prototype.finalize=function(){return this.encode(this.outputBits,!0),F.prototype.finalize.call(this)};var L=function(t){var e,r,n,i,f,o,a,s,u,l,h,c,d,p,g,b,y,v,w,M,E,A,S,_,N,T,R,C,I,P,O,x,k,F,B,L,D,U,G,z,J,j,H,V,X,q,Z,K,W,Y,Q,$,tt,te,tr,tn,ti,tf,to,ta,ts,tu,tl;for(n=0;n<48;n+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],f=t[1]^t[11]^t[21]^t[31]^t[41],o=t[2]^t[12]^t[22]^t[32]^t[42],a=t[3]^t[13]^t[23]^t[33]^t[43],s=t[4]^t[14]^t[24]^t[34]^t[44],u=t[5]^t[15]^t[25]^t[35]^t[45],l=t[6]^t[16]^t[26]^t[36]^t[46],h=t[7]^t[17]^t[27]^t[37]^t[47],c=t[8]^t[18]^t[28]^t[38]^t[48],d=t[9]^t[19]^t[29]^t[39]^t[49],e=c^(o<<1|a>>>31),r=d^(a<<1|o>>>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^(s<<1|u>>>31),r=f^(u<<1|s>>>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=o^(l<<1|h>>>31),r=a^(h<<1|l>>>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=s^(c<<1|d>>>31),r=u^(d<<1|c>>>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=l^(i<<1|f>>>31),r=h^(f<<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],g=t[1],q=t[11]<<4|t[10]>>>28,Z=t[10]<<4|t[11]>>>28,C=t[20]<<3|t[21]>>>29,I=t[21]<<3|t[20]>>>29,ta=t[31]<<9|t[30]>>>23,ts=t[30]<<9|t[31]>>>23,j=t[40]<<18|t[41]>>>14,H=t[41]<<18|t[40]>>>14,F=t[2]<<1|t[3]>>>31,B=t[3]<<1|t[2]>>>31,b=t[13]<<12|t[12]>>>20,y=t[12]<<12|t[13]>>>20,K=t[22]<<10|t[23]>>>22,W=t[23]<<10|t[22]>>>22,P=t[33]<<13|t[32]>>>19,O=t[32]<<13|t[33]>>>19,tu=t[42]<<2|t[43]>>>30,tl=t[43]<<2|t[42]>>>30,te=t[5]<<30|t[4]>>>2,tr=t[4]<<30|t[5]>>>2,L=t[14]<<6|t[15]>>>26,D=t[15]<<6|t[14]>>>26,v=t[25]<<11|t[24]>>>21,w=t[24]<<11|t[25]>>>21,Y=t[34]<<15|t[35]>>>17,Q=t[35]<<15|t[34]>>>17,x=t[45]<<29|t[44]>>>3,k=t[44]<<29|t[45]>>>3,_=t[6]<<28|t[7]>>>4,N=t[7]<<28|t[6]>>>4,tn=t[17]<<23|t[16]>>>9,ti=t[16]<<23|t[17]>>>9,U=t[26]<<25|t[27]>>>7,G=t[27]<<25|t[26]>>>7,M=t[36]<<21|t[37]>>>11,E=t[37]<<21|t[36]>>>11,$=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,V=t[8]<<27|t[9]>>>5,X=t[9]<<27|t[8]>>>5,T=t[18]<<20|t[19]>>>12,R=t[19]<<20|t[18]>>>12,tf=t[29]<<7|t[28]>>>25,to=t[28]<<7|t[29]>>>25,z=t[38]<<8|t[39]>>>24,J=t[39]<<8|t[38]>>>24,A=t[48]<<14|t[49]>>>18,S=t[49]<<14|t[48]>>>18,t[0]=p^~b&v,t[1]=g^~y&w,t[10]=_^~T&C,t[11]=N^~R&I,t[20]=F^~L&U,t[21]=B^~D&G,t[30]=V^~q&K,t[31]=X^~Z&W,t[40]=te^~tn&tf,t[41]=tr^~ti&to,t[2]=b^~v&M,t[3]=y^~w&E,t[12]=T^~C&P,t[13]=R^~I&O,t[22]=L^~U&z,t[23]=D^~G&J,t[32]=q^~K&Y,t[33]=Z^~W&Q,t[42]=tn^~tf&ta,t[43]=ti^~to&ts,t[4]=v^~M&A,t[5]=w^~E&S,t[14]=C^~P&x,t[15]=I^~O&k,t[24]=U^~z&j,t[25]=G^~J&H,t[34]=K^~Y&$,t[35]=W^~Q&tt,t[44]=tf^~ta&tu,t[45]=to^~ts&tl,t[6]=M^~A&p,t[7]=E^~S&g,t[16]=P^~x&_,t[17]=O^~k&N,t[26]=z^~j&F,t[27]=J^~H&B,t[36]=Y^~$&V,t[37]=Q^~tt&X,t[46]=ta^~tu&te,t[47]=ts^~tl&tr,t[8]=A^~p&b,t[9]=S^~g&y,t[18]=x^~_&T,t[19]=k^~N&R,t[28]=j^~F&L,t[29]=H^~B&D,t[38]=$^~V&q,t[39]=tt^~X&Z,t[48]=tu^~te&tn,t[49]=tl^~tr&ti,t[0]^=m[n],t[1]^=m[n+1]};if(u)t.exports=T;else{for(C=0;C<R.length;++C)a[R[C]]=T[R[C]];l&&void 0!==(n=(function(){return T}).call(e,r,e,t))&&(t.exports=n)}}()},88888:function(t,e,r){"use strict";let n,i;r.r(e),r.d(e,{BaseContract:function(){return rn},BigNumber:function(){return rI},Contract:function(){return ri},ContractFactory:function(){return rf},FixedNumber:function(){return rV},Signer:function(){return r9},VoidSigner:function(){return r7},Wallet:function(){return nt.Wallet},Wordlist:function(){return si},constants:function(){return X},errors:function(){return ut.ErrorCode},ethers:function(){return K},getDefaultProvider:function(){return aj},logger:function(){return ug},providers:function(){return q},utils:function(){return Z},version:function(){return um},wordlists:function(){return sZ}});var f,o,a,s,u,l,h,c,d,p,m,g,b,y,v,w,M,E,A,S,_,N,T,R,C,I,P,O,x,k,F,B,L,D,U,G,z,J,j,H,V,X={};r.r(X),r.d(X,{AddressZero:function(){return ne},EtherSymbol:function(){return nF},HashZero:function(){return nk},MaxInt256:function(){return nx},MaxUint256:function(){return nP},MinInt256:function(){return nO},NegativeOne:function(){return nN},One:function(){return nR},Two:function(){return nC},WeiPerEther:function(){return nI},Zero:function(){return nT}});var q={};r.r(q),r.d(q,{AlchemyProvider:function(){return ar},AlchemyWebSocketProvider:function(){return ae},BaseProvider:function(){return oE},CloudflareProvider:function(){return ai},EtherscanProvider:function(){return ad},FallbackProvider:function(){return aN},Formatter:function(){return or},InfuraProvider:function(){return aP},InfuraWebSocketProvider:function(){return aI},IpcProvider:function(){return aT},JsonRpcBatchProvider:function(){return aO},JsonRpcProvider:function(){return o0},JsonRpcSigner:function(){return oY},NodesmithProvider:function(){return ak},PocketProvider:function(){return aL},Provider:function(){return iM},Resolver:function(){return ov},StaticJsonRpcProvider:function(){return o4},UrlJsonRpcProvider:function(){return o9},Web3Provider:function(){return az},WebSocketProvider:function(){return o8},getDefaultProvider:function(){return aj},getNetwork:function(){return iC},isCommunityResourcable:function(){return on},isCommunityResource:function(){return oi},showThrottleMessage:function(){return oo}});var Z={};r.r(Z),r.d(Z,{AbiCoder:function(){return sK.R},ConstructorFragment:function(){return sW.Xg},ErrorFragment:function(){return sW.IC},EventFragment:function(){return sW.QV},FormatTypes:function(){return sW.pc},Fragment:function(){return sW.HY},FunctionFragment:function(){return sW.YW},HDNode:function(){return s4.HDNode},Indexed:function(){return sQ.Hk},Interface:function(){return sQ.vU},LogDescription:function(){return sQ.CC},Logger:function(){return ut.Logger},ParamType:function(){return sW._R},RLP:function(){return uo},SigningKey:function(){return ua.SigningKey},SupportedAlgorithm:function(){return up.p},TransactionDescription:function(){return sQ.vk},TransactionTypes:function(){return uh.TransactionTypes},UnicodeNormalizationForm:function(){return uu.Uj},Utf8ErrorFuncs:function(){return uu.te},Utf8ErrorReason:function(){return uu.Uw},_TypedDataEncoder:function(){return s3.E},_fetchData:function(){return ud._fetchData},_toEscapedUtf8String:function(){return uu.U$},accessListify:function(){return uh.accessListify},arrayify:function(){return s6.arrayify},base58:function(){return s1.Base58},base64:function(){return s0},checkProperties:function(){return uf.checkProperties},checkResultErrors:function(){return sY.BR},commify:function(){return uc.commify},computeAddress:function(){return uh.computeAddress},computeHmac:function(){return ue.Gy},computePublicKey:function(){return ua.computePublicKey},concat:function(){return s6.concat},deepCopy:function(){return uf.deepCopy},defaultAbiCoder:function(){return sK.$},defaultPath:function(){return s4.defaultPath},defineReadOnly:function(){return uf.defineReadOnly},entropyToMnemonic:function(){return s4.entropyToMnemonic},fetchJson:function(){return ud.fetchJson},formatBytes32String:function(){return ul.s},formatEther:function(){return uc.formatEther},formatUnits:function(){return uc.formatUnits},getAccountPath:function(){return s4.getAccountPath},getAddress:function(){return s$.getAddress},getContractAddress:function(){return s$.getContractAddress},getCreate2Address:function(){return s$.getCreate2Address},getIcapAddress:function(){return s$.getIcapAddress},getJsonWalletAddress:function(){return s9.Rb},getStatic:function(){return uf.getStatic},hashMessage:function(){return s5.r},hexConcat:function(){return s6.hexConcat},hexDataLength:function(){return s6.hexDataLength},hexDataSlice:function(){return s6.hexDataSlice},hexStripZeros:function(){return s6.hexStripZeros},hexValue:function(){return s6.hexValue},hexZeroPad:function(){return s6.hexZeroPad},hexlify:function(){return s6.hexlify},id:function(){return s8.id},isAddress:function(){return s$.isAddress},isBytes:function(){return s6.isBytes},isBytesLike:function(){return s6.isBytesLike},isHexString:function(){return s6.isHexString},isValidMnemonic:function(){return s4.isValidMnemonic},isValidName:function(){return s2.r},joinSignature:function(){return s6.joinSignature},keccak256:function(){return s7.keccak256},mnemonicToEntropy:function(){return s4.mnemonicToEntropy},mnemonicToSeed:function(){return s4.mnemonicToSeed},namehash:function(){return s2.V},nameprep:function(){return us.Ll},parseBytes32String:function(){return ul.F},parseEther:function(){return uc.parseEther},parseTransaction:function(){return uh.parse},parseUnits:function(){return uc.parseUnits},poll:function(){return ud.poll},randomBytes:function(){return un.O},recoverAddress:function(){return uh.recoverAddress},recoverPublicKey:function(){return ua.recoverPublicKey},resolveProperties:function(){return uf.resolveProperties},ripemd160:function(){return ue.bP},serializeTransaction:function(){return uh.serialize},sha256:function(){return ue.JQ},sha512:function(){return ue.o},shallowCopy:function(){return uf.shallowCopy},shuffled:function(){return ui.y},solidityKeccak256:function(){return ur.keccak256},solidityPack:function(){return ur.pack},soliditySha256:function(){return ur.sha256},splitSignature:function(){return s6.splitSignature},stripZeros:function(){return s6.stripZeros},toUtf8Bytes:function(){return uu.Y0},toUtf8CodePoints:function(){return uu.XL},toUtf8String:function(){return uu.ZN},verifyMessage:function(){return nt.verifyMessage},verifyTypedData:function(){return nt.verifyTypedData},zeroPad:function(){return s6.zeroPad}});var K={};r.r(K),r.d(K,{BaseContract:function(){return rn},BigNumber:function(){return rI},Contract:function(){return ri},ContractFactory:function(){return rf},FixedNumber:function(){return rV},Signer:function(){return r9},VoidSigner:function(){return r7},Wallet:function(){return nt.Wallet},Wordlist:function(){return si},constants:function(){return X},errors:function(){return ut.ErrorCode},getDefaultProvider:function(){return aj},logger:function(){return ug},providers:function(){return q},utils:function(){return Z},version:function(){return um},wordlists:function(){return sZ}});let W=!1,Y=!1,Q={debug:1,default:2,info:2,warning:3,error:4,off:5},$=Q.default,tt=null,te=function(){try{let t=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test"!=="test".normalize(e))throw Error("bad normalize")}catch(r){t.push(e)}}),t.length)throw Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw Error("broken implementation")}catch(t){return t.message}return null}();(o=N||(N={})).DEBUG="DEBUG",o.INFO="INFO",o.WARNING="WARNING",o.ERROR="ERROR",o.OFF="OFF",(a=T||(T={})).UNKNOWN_ERROR="UNKNOWN_ERROR",a.NOT_IMPLEMENTED="NOT_IMPLEMENTED",a.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",a.NETWORK_ERROR="NETWORK_ERROR",a.SERVER_ERROR="SERVER_ERROR",a.TIMEOUT="TIMEOUT",a.BUFFER_OVERRUN="BUFFER_OVERRUN",a.NUMERIC_FAULT="NUMERIC_FAULT",a.MISSING_NEW="MISSING_NEW",a.INVALID_ARGUMENT="INVALID_ARGUMENT",a.MISSING_ARGUMENT="MISSING_ARGUMENT",a.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",a.CALL_EXCEPTION="CALL_EXCEPTION",a.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",a.NONCE_EXPIRED="NONCE_EXPIRED",a.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",a.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",a.TRANSACTION_REPLACED="TRANSACTION_REPLACED",a.ACTION_REJECTED="ACTION_REJECTED";let tr="0123456789abcdef";class tn{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){let r=t.toLowerCase();null==Q[r]&&this.throwArgumentError("invalid log level name","logLevel",t),$>Q[r]||console.log.apply(console,e)}debug(...t){this._log(tn.levels.DEBUG,t)}info(...t){this._log(tn.levels.INFO,t)}warn(...t){this._log(tn.levels.WARNING,t)}makeError(t,e,r){if(Y)return this.makeError("censored error",e,{});e||(e=tn.errors.UNKNOWN_ERROR),r||(r={});let n=[];Object.keys(r).forEach(t=>{let e=r[t];try{if(e instanceof Uint8Array){let r="";for(let t=0;t<e.length;t++)r+=tr[e[t]>>4]+tr[15&e[t]];n.push(t+"=Uint8Array(0x"+r+")")}else n.push(t+"="+JSON.stringify(e))}catch(e){n.push(t+"="+JSON.stringify(r[t].toString()))}}),n.push(`code=${e}`),n.push(`version=${this.version}`);let i=t,f="";switch(e){case T.NUMERIC_FAULT:{f="NUMERIC_FAULT";let e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":f+="-"+e;break;case"negative-power":case"negative-width":f+="-unsupported";break;case"unbound-bitwise-result":f+="-unbound-result"}break}case T.CALL_EXCEPTION:case T.INSUFFICIENT_FUNDS:case T.MISSING_NEW:case T.NONCE_EXPIRED:case T.REPLACEMENT_UNDERPRICED:case T.TRANSACTION_REPLACED:case T.UNPREDICTABLE_GAS_LIMIT:f=e}f&&(t+=" [ See: https://links.ethers.org/v5-errors-"+f+" ]"),n.length&&(t+=" ("+n.join(", ")+")");let o=Error(t);return o.reason=i,o.code=e,Object.keys(r).forEach(function(t){o[t]=r[t]}),o}throwError(t,e,r){throw this.makeError(t,e,r)}throwArgumentError(t,e,r){return this.throwError(t,tn.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"),te&&this.throwError("platform missing String.prototype.normalize",tn.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:te})}checkSafeUint53(t,e){"number"==typeof t&&(null==e&&(e="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(e,tn.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(e,tn.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,e,r){r=r?": "+r:"",t<e&&this.throwError("missing argument"+r,tn.errors.MISSING_ARGUMENT,{count:t,expectedCount:e}),t>e&&this.throwError("too many arguments"+r,tn.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:e})}checkNew(t,e){(t===Object||null==t)&&this.throwError("missing new",tn.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",tn.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):(t===Object||null==t)&&this.throwError("missing new",tn.errors.MISSING_NEW,{name:e.name})}static globalLogger(){return tt||(tt=new tn("logger/5.7.0")),tt}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",tn.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),W){if(!t)return;this.globalLogger().throwError("error censorship permanent",tn.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}Y=!!t,W=!!e}static setLogLevel(t){let e=Q[t.toLowerCase()];if(null==e){tn.globalLogger().warn("invalid log level - "+t);return}$=e}static from(t){return new tn(t)}}tn.errors=T,tn.levels=N;let ti=new tn("bytes/5.7.0");function tf(t){return!!t.toHexString}function to(t){return t.slice||(t.slice=function(){let e=Array.prototype.slice.call(arguments);return to(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function ta(t){return"number"==typeof t&&t==t&&t%1==0}function ts(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"==typeof t||!ta(t.length)||t.length<0)return!1;for(let e=0;e<t.length;e++){let r=t[e];if(!ta(r)||r<0||r>=256)return!1}return!0}function tu(t,e){if(e||(e={}),"number"==typeof t){ti.checkSafeUint53(t,"invalid arrayify value");let e=[];for(;t;)e.unshift(255&t),t=parseInt(String(t/256));return 0===e.length&&e.push(0),to(new Uint8Array(e))}if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),tf(t)&&(t=t.toHexString()),th(t)){let r=t.substring(2);r.length%2&&("left"===e.hexPad?r="0"+r:"right"===e.hexPad?r+="0":ti.throwArgumentError("hex data is odd-length","value",t));let n=[];for(let t=0;t<r.length;t+=2)n.push(parseInt(r.substring(t,t+2),16));return to(new Uint8Array(n))}return ts(t)?to(new Uint8Array(t)):ti.throwArgumentError("invalid arrayify value","value",t)}function tl(t){let e=t.map(t=>tu(t)),r=new Uint8Array(e.reduce((t,e)=>t+e.length,0));return e.reduce((t,e)=>(r.set(e,t),t+e.length),0),to(r)}function th(t,e){return"string"==typeof t&&!!t.match(/^0x[0-9A-Fa-f]*$/)&&(!e||t.length===2+2*e)}let tc="0123456789abcdef";function td(t,e){if(e||(e={}),"number"==typeof t){ti.checkSafeUint53(t,"invalid hexlify value");let e="";for(;t;)e=tc[15&t]+e,t=Math.floor(t/16);return e.length?(e.length%2&&(e="0"+e),"0x"+e):"0x00"}if("bigint"==typeof t)return(t=t.toString(16)).length%2?"0x0"+t:"0x"+t;if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),tf(t))return t.toHexString();if(th(t))return t.length%2&&("left"===e.hexPad?t="0x0"+t.substring(2):"right"===e.hexPad?t+="0":ti.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(ts(t)){let e="0x";for(let r=0;r<t.length;r++){let n=t[r];e+=tc[(240&n)>>4]+tc[15&n]}return e}return ti.throwArgumentError("invalid hexlify value","value",t)}function tp(t,e,r){return("string"!=typeof t?t=td(t):(!th(t)||t.length%2)&&ti.throwArgumentError("invalid hexData","value",t),e=2+2*e,null!=r)?"0x"+t.substring(e,2+2*r):"0x"+t.substring(e)}function tm(t,e){for("string"!=typeof t?t=td(t):th(t)||ti.throwArgumentError("invalid hex string","value",t),t.length>2*e+2&&ti.throwArgumentError("value out of range","value",arguments[1]);t.length<2*e+2;)t="0x0"+t.substring(2);return t}var tg=r(66530),tb=r.n(tg)().BN;let ty=new tn("bignumber/5.7.0"),tv={},tw=!1;class tM{constructor(t,e){t!==tv&&ty.throwError("cannot call constructor directly; use BigNumber.from",tn.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=e,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return tA(tS(this).fromTwos(t))}toTwos(t){return tA(tS(this).toTwos(t))}abs(){return"-"===this._hex[0]?tM.from(this._hex.substring(1)):this}add(t){return tA(tS(this).add(tS(t)))}sub(t){return tA(tS(this).sub(tS(t)))}div(t){return tM.from(t).isZero()&&t_("division-by-zero","div"),tA(tS(this).div(tS(t)))}mul(t){return tA(tS(this).mul(tS(t)))}mod(t){let e=tS(t);return e.isNeg()&&t_("division-by-zero","mod"),tA(tS(this).umod(e))}pow(t){let e=tS(t);return e.isNeg()&&t_("negative-power","pow"),tA(tS(this).pow(e))}and(t){let e=tS(t);return(this.isNegative()||e.isNeg())&&t_("unbound-bitwise-result","and"),tA(tS(this).and(e))}or(t){let e=tS(t);return(this.isNegative()||e.isNeg())&&t_("unbound-bitwise-result","or"),tA(tS(this).or(e))}xor(t){let e=tS(t);return(this.isNegative()||e.isNeg())&&t_("unbound-bitwise-result","xor"),tA(tS(this).xor(e))}mask(t){return(this.isNegative()||t<0)&&t_("negative-width","mask"),tA(tS(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&t_("negative-width","shl"),tA(tS(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&t_("negative-width","shr"),tA(tS(this).shrn(t))}eq(t){return tS(this).eq(tS(t))}lt(t){return tS(this).lt(tS(t))}lte(t){return tS(this).lte(tS(t))}gt(t){return tS(this).gt(tS(t))}gte(t){return tS(this).gte(tS(t))}isNegative(){return"-"===this._hex[0]}isZero(){return tS(this).isZero()}toNumber(){try{return tS(this).toNumber()}catch(t){t_("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(t){}return ty.throwError("this platform does not support BigInt",tn.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?tw||(tw=!0,ty.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?ty.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",tn.errors.UNEXPECTED_ARGUMENT,{}):ty.throwError("BigNumber.toString does not accept parameters",tn.errors.UNEXPECTED_ARGUMENT,{})),tS(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof tM)return t;if("string"==typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new tM(tv,tE(t)):t.match(/^-?[0-9]+$/)?new tM(tv,tE(new tb(t))):ty.throwArgumentError("invalid BigNumber string","value",t);if("number"==typeof t)return t%1&&t_("underflow","BigNumber.from",t),(t>=9007199254740991||t<=-9007199254740991)&&t_("overflow","BigNumber.from",t),tM.from(String(t));if("bigint"==typeof t)return tM.from(t.toString());if(ts(t))return tM.from(td(t));if(t){if(t.toHexString){let e=t.toHexString();if("string"==typeof e)return tM.from(e)}else{let e=t._hex;if(null==e&&"BigNumber"===t.type&&(e=t.hex),"string"==typeof e&&(th(e)||"-"===e[0]&&th(e.substring(1))))return tM.from(e)}}return ty.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!!(t&&t._isBigNumber)}}function tE(t){if("string"!=typeof t)return tE(t.toString(16));if("-"===t[0])return("-"===(t=t.substring(1))[0]&&ty.throwArgumentError("invalid hex","value",t),"0x00"===(t=tE(t)))?t:"-"+t;if("0x"!==t.substring(0,2)&&(t="0x"+t),"0x"===t)return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&"0x00"===t.substring(0,4);)t="0x"+t.substring(4);return t}function tA(t){return tM.from(tE(t))}function tS(t){let e=tM.from(t).toHexString();return"-"===e[0]?new tb("-"+e.substring(3),16):new tb(e.substring(2),16)}function t_(t,e,r){let n={fault:t,operation:e};return null!=r&&(n.value=r),ty.throwError(t,tn.errors.NUMERIC_FAULT,n)}let tN=new tn("properties/5.7.0");function tT(t,e,r){Object.defineProperty(t,e,{enumerable:!0,value:r,writable:!1})}function tR(t,e){for(let r=0;r<32;r++){if(t[e])return t[e];if(!t.prototype||"object"!=typeof t.prototype)break;t=Object.getPrototypeOf(t.prototype).constructor}return null}function tC(t){var e,r,n,i;return e=this,r=void 0,n=void 0,i=function*(){let e=Object.keys(t).map(e=>Promise.resolve(t[e]).then(t=>({key:e,value:t})));return(yield Promise.all(e)).reduce((t,e)=>(t[e.key]=e.value,t),{})},new(n||(n=Promise))(function(t,f){function o(t){try{s(i.next(t))}catch(t){f(t)}}function a(t){try{s(i.throw(t))}catch(t){f(t)}}function s(e){var r;e.done?t(e.value):((r=e.value)instanceof n?r:new n(function(t){t(r)})).then(o,a)}s((i=i.apply(e,r||[])).next())})}function tI(t){let e={};for(let r in t)e[r]=t[r];return e}let tP={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function tO(t){return function(t){if(function t(e){if(null==e||tP[typeof e])return!0;if(Array.isArray(e)||"object"==typeof e){if(!Object.isFrozen(e))return!1;let r=Object.keys(e);for(let n=0;n<r.length;n++){let i=null;try{i=e[r[n]]}catch(t){continue}if(!t(i))return!1}return!0}return tN.throwArgumentError(`Cannot deepCopy ${typeof e}`,"object",e)}(t))return t;if(Array.isArray(t))return Object.freeze(t.map(t=>tO(t)));if("object"==typeof t){let e={};for(let r in t){let n=t[r];void 0!==n&&tT(e,r,tO(n))}return e}return tN.throwArgumentError(`Cannot deepCopy ${typeof t}`,"object",t)}(t)}class tx{constructor(t){for(let e in t)this[e]=tO(t[e])}}let tk="abi/5.7.0",tF=new tn(tk);class tB{constructor(t,e,r,n){this.name=t,this.type=e,this.localName=r,this.dynamic=n}_throwError(t,e){tF.throwArgumentError(t,this.localName,e)}}class tL{constructor(t){tT(this,"wordSize",t||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(t)}get data(){var t;let e;return t=this._data,e="0x",t.forEach(t=>{e+=td(t).substring(2)}),e}get length(){return this._dataLength}_writeData(t){return this._data.push(t),this._dataLength+=t.length,t.length}appendWriter(t){return this._writeData(tl(t._data))}writeBytes(t){let e=tu(t),r=e.length%this.wordSize;return r&&(e=tl([e,this._padding.slice(r)])),this._writeData(e)}_getValue(t){let e=tu(tM.from(t));return e.length>this.wordSize&&tF.throwError("value out-of-bounds",tn.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:e.length}),e.length%this.wordSize&&(e=tl([this._padding.slice(e.length%this.wordSize),e])),e}writeValue(t){return this._writeData(this._getValue(t))}writeUpdatableValue(){let t=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,e=>{this._data[t]=this._getValue(e)}}}class tD{constructor(t,e,r,n){tT(this,"_data",tu(t)),tT(this,"wordSize",e||32),tT(this,"_coerceFunc",r),tT(this,"allowLoose",n),this._offset=0}get data(){return td(this._data)}get consumed(){return this._offset}static coerce(t,e){let r=t.match("^u?int([0-9]+)$");return r&&48>=parseInt(r[1])&&(e=e.toNumber()),e}coerce(t,e){return this._coerceFunc?this._coerceFunc(t,e):tD.coerce(t,e)}_peekBytes(t,e,r){let n=Math.ceil(e/this.wordSize)*this.wordSize;return this._offset+n>this._data.length&&(this.allowLoose&&r&&this._offset+e<=this._data.length?n=e:tF.throwError("data out-of-bounds",tn.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+n})),this._data.slice(this._offset,this._offset+n)}subReader(t){return new tD(this._data.slice(this._offset+t),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(t,e){let r=this._peekBytes(0,t,!!e);return this._offset+=r.length,r.slice(0,t)}readValue(){return tM.from(this.readBytes(this.wordSize))}}var tU=r(68046),tG=r.n(tU);function tz(t){return"0x"+tG().keccak_256(tu(t))}let tJ=new tn("rlp/5.7.0");function tj(t){let e=[];for(;t;)e.unshift(255&t),t>>=8;return e}let tH=new tn("address/5.7.0");function tV(t){th(t,20)||tH.throwArgumentError("invalid address","address",t);let e=(t=t.toLowerCase()).substring(2).split(""),r=new Uint8Array(40);for(let t=0;t<40;t++)r[t]=e[t].charCodeAt(0);let n=tu(tz(r));for(let t=0;t<40;t+=2)n[t>>1]>>4>=8&&(e[t]=e[t].toUpperCase()),(15&n[t>>1])>=8&&(e[t+1]=e[t+1].toUpperCase());return"0x"+e.join("")}let tX={};for(let t=0;t<10;t++)tX[String(t)]=String(t);for(let t=0;t<26;t++)tX[String.fromCharCode(65+t)]=String(10+t);let tq=Math.floor(Math.log10?Math.log10(9007199254740991):Math.log(9007199254740991)/Math.LN10);function tZ(t){let e=null;if("string"!=typeof t&&tH.throwArgumentError("invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==t.substring(0,2)&&(t="0x"+t),e=tV(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&tH.throwArgumentError("bad address checksum","address",t);else if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(t.substring(2,4)!==function(t){let e=(t=(t=t.toUpperCase()).substring(4)+t.substring(0,2)+"00").split("").map(t=>tX[t]).join("");for(;e.length>=tq;){let t=e.substring(0,tq);e=parseInt(t,10)%97+e.substring(t.length)}let r=String(98-parseInt(e,10)%97);for(;r.length<2;)r="0"+r;return r}(t)&&tH.throwArgumentError("bad icap checksum","address",t),e=new tb(t.substring(4),36).toString(16);e.length<40;)e="0"+e;e=tV("0x"+e)}else tH.throwArgumentError("invalid address","address",t);return e}function tK(t){let e=null;try{e=tZ(t.from)}catch(e){tH.throwArgumentError("missing from address","transaction",t)}return tZ(tp(tz(td(function t(e){if(Array.isArray(e)){let r=[];if(e.forEach(function(e){r=r.concat(t(e))}),r.length<=55)return r.unshift(192+r.length),r;let n=tj(r.length);return n.unshift(247+n.length),n.concat(r)}th(e)&&!(e.length%2)||ts(e)||tJ.throwArgumentError("RLP object must be BytesLike","object",e);let r=Array.prototype.slice.call(tu(e));if(1===r.length&&r[0]<=127)return r;if(r.length<=55)return r.unshift(128+r.length),r;let n=tj(r.length);return n.unshift(183+n.length),n.concat(r)}([e,function(t){let e=tu(t);if(0===e.length)return e;let r=0;for(;r<e.length&&0===e[r];)r++;return r&&(e=e.slice(r)),e}(tu(tM.from(t.nonce).toHexString()))]))),12))}let tW=new tn("strings/5.7.0");function tY(t,e,r,n,i){if(t===C.BAD_PREFIX||t===C.UNEXPECTED_CONTINUE){let t=0;for(let n=e+1;n<r.length&&r[n]>>6==2;n++)t++;return t}return t===C.OVERRUN?r.length-e-1:0}(s=R||(R={})).current="",s.NFC="NFC",s.NFD="NFD",s.NFKC="NFKC",s.NFKD="NFKD",(u=C||(C={})).UNEXPECTED_CONTINUE="unexpected continuation byte",u.BAD_PREFIX="bad codepoint prefix",u.OVERRUN="string overrun",u.MISSING_CONTINUE="missing continuation byte",u.OUT_OF_RANGE="out of UTF-8 range",u.UTF16_SURROGATE="UTF-16 surrogate",u.OVERLONG="overlong representation";let tQ=Object.freeze({error:function(t,e,r,n,i){return tW.throwArgumentError(`invalid codepoint at offset ${e}; ${t}`,"bytes",r)},ignore:tY,replace:function(t,e,r,n,i){return t===C.OVERLONG?(n.push(i),0):(n.push(65533),tY(t,e,r,n,i))}});function t$(t,e=R.current){e!=R.current&&(tW.checkNormalize(),t=t.normalize(e));let r=[];for(let e=0;e<t.length;e++){let n=t.charCodeAt(e);if(n<128)r.push(n);else if(n<2048)r.push(n>>6|192),r.push(63&n|128);else if((64512&n)==55296){e++;let i=t.charCodeAt(e);if(e>=t.length||(64512&i)!=56320)throw Error("invalid utf-8 string");let f=65536+((1023&n)<<10)+(1023&i);r.push(f>>18|240),r.push(f>>12&63|128),r.push(f>>6&63|128),r.push(63&f|128)}else r.push(n>>12|224),r.push(n>>6&63|128),r.push(63&n|128)}return tu(r)}class t0 extends tB{constructor(t){super("address","address",t,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(t,e){try{e=tZ(e)}catch(t){this._throwError(t.message,e)}return t.writeValue(e)}decode(t){return tZ(tm(t.readValue().toHexString(),20))}}class t1 extends tB{constructor(t){super(t.name,t.type,void 0,t.dynamic),this.coder=t}defaultValue(){return this.coder.defaultValue()}encode(t,e){return this.coder.encode(t,e)}decode(t){return this.coder.decode(t)}}let t6=new tn(tk);function t5(t,e,r){let n=null;if(Array.isArray(r))n=r;else if(r&&"object"==typeof r){let t={};n=e.map(e=>{let n=e.localName;return n||t6.throwError("cannot encode object for signature with missing names",tn.errors.INVALID_ARGUMENT,{argument:"values",coder:e,value:r}),t[n]&&t6.throwError("cannot encode object for signature with duplicate names",tn.errors.INVALID_ARGUMENT,{argument:"values",coder:e,value:r}),t[n]=!0,r[n]})}else t6.throwArgumentError("invalid tuple value","tuple",r);e.length!==n.length&&t6.throwArgumentError("types/value length mismatch","tuple",r);let i=new tL(t.wordSize),f=new tL(t.wordSize),o=[];return e.forEach((t,e)=>{let r=n[e];if(t.dynamic){let e=f.length;t.encode(f,r);let n=i.writeUpdatableValue();o.push(t=>{n(t+e)})}else t.encode(i,r)}),o.forEach(t=>{t(i.length)}),t.appendWriter(i)+t.appendWriter(f)}function t2(t,e){let r=[],n=t.subReader(0);e.forEach(e=>{let i=null;if(e.dynamic){let r=t.readValue(),f=n.subReader(r.toNumber());try{i=e.decode(f)}catch(t){if(t.code===tn.errors.BUFFER_OVERRUN)throw t;(i=t).baseType=e.name,i.name=e.localName,i.type=e.type}}else try{i=e.decode(t)}catch(t){if(t.code===tn.errors.BUFFER_OVERRUN)throw t;(i=t).baseType=e.name,i.name=e.localName,i.type=e.type}void 0!=i&&r.push(i)});let i=e.reduce((t,e)=>{let r=e.localName;return r&&(t[r]||(t[r]=0),t[r]++),t},{});e.forEach((t,e)=>{let n=t.localName;if(!n||1!==i[n]||("length"===n&&(n="_length"),null!=r[n]))return;let f=r[e];f instanceof Error?Object.defineProperty(r,n,{enumerable:!0,get:()=>{throw f}}):r[n]=f});for(let t=0;t<r.length;t++){let e=r[t];e instanceof Error&&Object.defineProperty(r,t,{enumerable:!0,get:()=>{throw e}})}return Object.freeze(r)}class t8 extends tB{constructor(t,e,r){super("array",t.type+"["+(e>=0?e:"")+"]",r,-1===e||t.dynamic),this.coder=t,this.length=e}defaultValue(){let t=this.coder.defaultValue(),e=[];for(let r=0;r<this.length;r++)e.push(t);return e}encode(t,e){Array.isArray(e)||this._throwError("expected array value",e);let r=this.length;-1===r&&(r=e.length,t.writeValue(e.length)),t6.checkArgumentCount(e.length,r,"coder array"+(this.localName?" "+this.localName:""));let n=[];for(let t=0;t<e.length;t++)n.push(this.coder);return t5(t,n,e)}decode(t){let e=this.length;-1===e&&32*(e=t.readValue().toNumber())>t._data.length&&t6.throwError("insufficient data length",tn.errors.BUFFER_OVERRUN,{length:t._data.length,count:e});let r=[];for(let t=0;t<e;t++)r.push(new t1(this.coder));return t.coerce(this.name,t2(t,r))}}class t3 extends tB{constructor(t){super("bool","bool",t,!1)}defaultValue(){return!1}encode(t,e){return t.writeValue(e?1:0)}decode(t){return t.coerce(this.type,!t.readValue().isZero())}}class t4 extends tB{constructor(t,e){super(t,t,e,!0)}defaultValue(){return"0x"}encode(t,e){return e=tu(e),t.writeValue(e.length)+t.writeBytes(e)}decode(t){return t.readBytes(t.readValue().toNumber(),!0)}}class t9 extends t4{constructor(t){super("bytes",t)}decode(t){return t.coerce(this.name,td(super.decode(t)))}}class t7 extends tB{constructor(t,e){let r="bytes"+String(t);super(r,r,e,!1),this.size=t}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+2*this.size)}encode(t,e){let r=tu(e);return r.length!==this.size&&this._throwError("incorrect data length",e),t.writeBytes(r)}decode(t){return t.coerce(this.name,td(t.readBytes(this.size)))}}class et extends tB{constructor(t){super("null","",t,!1)}defaultValue(){return null}encode(t,e){return null!=e&&this._throwError("not null",e),t.writeBytes([])}decode(t){return t.readBytes(0),t.coerce(this.name,null)}}let ee=tM.from(-1),er=tM.from(0),en=tM.from(1),ei=tM.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");class ef extends tB{constructor(t,e,r){let n=(e?"int":"uint")+8*t;super(n,n,r,!1),this.size=t,this.signed=e}defaultValue(){return 0}encode(t,e){let r=tM.from(e),n=ei.mask(8*t.wordSize);if(this.signed){let t=n.mask(8*this.size-1);(r.gt(t)||r.lt(t.add(en).mul(ee)))&&this._throwError("value out-of-bounds",e)}else(r.lt(er)||r.gt(n.mask(8*this.size)))&&this._throwError("value out-of-bounds",e);return r=r.toTwos(8*this.size).mask(8*this.size),this.signed&&(r=r.fromTwos(8*this.size).toTwos(8*t.wordSize)),t.writeValue(r)}decode(t){let e=t.readValue().mask(8*this.size);return this.signed&&(e=e.fromTwos(8*this.size)),t.coerce(this.name,e)}}class eo extends t4{constructor(t){super("string",t)}defaultValue(){return""}encode(t,e){return super.encode(t,t$(e))}decode(t){return(function(t,e){null==e&&(e=tQ.error),t=tu(t);let r=[],n=0;for(;n<t.length;){let i=t[n++];if(i>>7==0){r.push(i);continue}let f=null,o=null;if((224&i)==192)f=1,o=127;else if((240&i)==224)f=2,o=2047;else if((248&i)==240)f=3,o=65535;else{(192&i)==128?n+=e(C.UNEXPECTED_CONTINUE,n-1,t,r):n+=e(C.BAD_PREFIX,n-1,t,r);continue}if(n-1+f>=t.length){n+=e(C.OVERRUN,n-1,t,r);continue}let a=i&(1<<8-f-1)-1;for(let i=0;i<f;i++){let i=t[n];if((192&i)!=128){n+=e(C.MISSING_CONTINUE,n,t,r),a=null;break}a=a<<6|63&i,n++}if(null!==a){if(a>1114111){n+=e(C.OUT_OF_RANGE,n-1-f,t,r,a);continue}if(a>=55296&&a<=57343){n+=e(C.UTF16_SURROGATE,n-1-f,t,r,a);continue}if(a<=o){n+=e(C.OVERLONG,n-1-f,t,r,a);continue}r.push(a)}}return r})(super.decode(t),void 0).map(t=>t<=65535?String.fromCharCode(t):String.fromCharCode(((t-=65536)>>10&1023)+55296,(1023&t)+56320)).join("")}}class ea extends tB{constructor(t,e){let r=!1,n=[];t.forEach(t=>{t.dynamic&&(r=!0),n.push(t.type)}),super("tuple","tuple("+n.join(",")+")",e,r),this.coders=t}defaultValue(){let t=[];this.coders.forEach(e=>{t.push(e.defaultValue())});let e=this.coders.reduce((t,e)=>{let r=e.localName;return r&&(t[r]||(t[r]=0),t[r]++),t},{});return this.coders.forEach((r,n)=>{let i=r.localName;i&&1===e[i]&&("length"===i&&(i="_length"),null==t[i]&&(t[i]=t[n]))}),Object.freeze(t)}encode(t,e){return t5(t,this.coders,e)}decode(t){return t.coerce(this.name,t2(t,this.coders))}}let es=new tn(tk),eu={},el={calldata:!0,memory:!0,storage:!0},eh={calldata:!0,memory:!0};function ec(t,e){if("bytes"===t||"string"===t){if(el[e])return!0}else if("address"===t){if("payable"===e)return!0}else if((t.indexOf("[")>=0||"tuple"===t)&&eh[e])return!0;return(el[e]||"payable"===e)&&es.throwArgumentError("invalid modifier","name",e),!1}function ed(t,e){for(let r in e)tT(t,r,e[r])}let ep=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),em=new RegExp(/^(.*)\[([0-9]*)\]$/);class eg{constructor(t,e){t!==eu&&es.throwError("use fromString",tn.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),ed(this,e);let r=this.type.match(em);r?ed(this,{arrayLength:parseInt(r[2]||"-1"),arrayChildren:eg.fromObject({type:r[1],components:this.components}),baseType:"array"}):ed(this,{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}format(t){if(t||(t=ep.sighash),ep[t]||es.throwArgumentError("invalid format type","format",t),t===ep.json){let e={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"==typeof this.indexed&&(e.indexed=this.indexed),this.components&&(e.components=this.components.map(e=>JSON.parse(e.format(t)))),JSON.stringify(e)}let e="";return"array"===this.baseType?e+=this.arrayChildren.format(t)+"["+(this.arrayLength<0?"":String(this.arrayLength))+"]":"tuple"===this.baseType?(t!==ep.sighash&&(e+=this.type),e+="("+this.components.map(e=>e.format(t)).join(t===ep.full?", ":",")+")"):e+=this.type,t!==ep.sighash&&(!0===this.indexed&&(e+=" indexed"),t===ep.full&&this.name&&(e+=" "+this.name)),e}static from(t,e){return"string"==typeof t?eg.fromString(t,e):eg.fromObject(t)}static fromObject(t){return eg.isParamType(t)?t:new eg(eu,{name:t.name||null,type:eT(t.type),indexed:null==t.indexed?null:!!t.indexed,components:t.components?t.components.map(eg.fromObject):null})}static fromString(t,e){var r;return r=function(t,e){let r=t;function n(e){es.throwArgumentError(`unexpected character at position ${e}`,"param",t)}function i(t){let r={type:"",name:"",parent:t,state:{allowType:!0}};return e&&(r.indexed=!1),r}t=t.replace(/\s/g," ");let f={type:"",name:"",state:{allowType:!0}},o=f;for(let r=0;r<t.length;r++){let f=t[r];switch(f){case"(":o.state.allowType&&""===o.type?o.type="tuple":o.state.allowParams||n(r),o.state.allowType=!1,o.type=eT(o.type),o.components=[i(o)],o=o.components[0];break;case")":delete o.state,"indexed"===o.name&&(e||n(r),o.indexed=!0,o.name=""),ec(o.type,o.name)&&(o.name=""),o.type=eT(o.type);let a=o;(o=o.parent)||n(r),delete a.parent,o.state.allowParams=!1,o.state.allowName=!0,o.state.allowArray=!0;break;case",":delete o.state,"indexed"===o.name&&(e||n(r),o.indexed=!0,o.name=""),ec(o.type,o.name)&&(o.name=""),o.type=eT(o.type);let s=i(o.parent);o.parent.components.push(s),delete o.parent,o=s;break;case" ":o.state.allowType&&""!==o.type&&(o.type=eT(o.type),delete o.state.allowType,o.state.allowName=!0,o.state.allowParams=!0),o.state.allowName&&""!==o.name&&("indexed"===o.name?(e||n(r),o.indexed&&n(r),o.indexed=!0,o.name=""):ec(o.type,o.name)?o.name="":o.state.allowName=!1);break;case"[":o.state.allowArray||n(r),o.type+=f,o.state.allowArray=!1,o.state.allowName=!1,o.state.readArray=!0;break;case"]":o.state.readArray||n(r),o.type+=f,o.state.readArray=!1,o.state.allowArray=!0,o.state.allowName=!0;break;default:o.state.allowType?(o.type+=f,o.state.allowParams=!0,o.state.allowArray=!0):o.state.allowName?(o.name+=f,delete o.state.allowArray):o.state.readArray?o.type+=f:n(r)}}return o.parent&&es.throwArgumentError("unexpected eof","param",t),delete f.state,"indexed"===o.name?(e||n(r.length-7),o.indexed&&n(r.length-7),o.indexed=!0,o.name=""):ec(o.type,o.name)&&(o.name=""),f.type=eT(f.type),f}(t,!!e),eg.fromObject({name:r.name,type:r.type,indexed:r.indexed,components:r.components})}static isParamType(t){return!!(null!=t&&t._isParamType)}}function eb(t,e){return(function(t){t=t.trim();let e=[],r="",n=0;for(let i=0;i<t.length;i++){let f=t[i];","===f&&0===n?(e.push(r),r=""):(r+=f,"("===f?n++:")"===f&&-1==--n&&es.throwArgumentError("unbalanced parenthesis","value",t))}return r&&e.push(r),e})(t).map(t=>eg.fromString(t,e))}class ey{constructor(t,e){t!==eu&&es.throwError("use a static from method",tn.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),ed(this,e),this._isFragment=!0,Object.freeze(this)}static from(t){return ey.isFragment(t)?t:"string"==typeof t?ey.fromString(t):ey.fromObject(t)}static fromObject(t){if(ey.isFragment(t))return t;switch(t.type){case"function":return eS.fromObject(t);case"event":return ev.fromObject(t);case"constructor":return eA.fromObject(t);case"error":return eN.fromObject(t);case"fallback":case"receive":return null}return es.throwArgumentError("invalid fragment object","value",t)}static fromString(t){return"event"===(t=(t=(t=t.replace(/\s/g," ")).replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," ")).trim()).split(" ")[0]?ev.fromString(t.substring(5).trim()):"function"===t.split(" ")[0]?eS.fromString(t.substring(8).trim()):"constructor"===t.split("(")[0].trim()?eA.fromString(t.trim()):"error"===t.split(" ")[0]?eN.fromString(t.substring(5).trim()):es.throwArgumentError("unsupported fragment","value",t)}static isFragment(t){return!!(t&&t._isFragment)}}class ev extends ey{format(t){if(t||(t=ep.sighash),ep[t]||es.throwArgumentError("invalid format type","format",t),t===ep.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(e=>JSON.parse(e.format(t)))});let e="";return t!==ep.sighash&&(e+="event "),e+=this.name+"("+this.inputs.map(e=>e.format(t)).join(t===ep.full?", ":",")+") ",t!==ep.sighash&&this.anonymous&&(e+="anonymous "),e.trim()}static from(t){return"string"==typeof t?ev.fromString(t):ev.fromObject(t)}static fromObject(t){return ev.isEventFragment(t)?t:("event"!==t.type&&es.throwArgumentError("invalid event object","value",t),new ev(eu,{name:eC(t.name),anonymous:t.anonymous,inputs:t.inputs?t.inputs.map(eg.fromObject):[],type:"event"}))}static fromString(t){let e=t.match(eI);e||es.throwArgumentError("invalid event string","value",t);let r=!1;return e[3].split(" ").forEach(t=>{switch(t.trim()){case"anonymous":r=!0;break;case"":break;default:es.warn("unknown modifier: "+t)}}),ev.fromObject({name:e[1].trim(),anonymous:r,inputs:eb(e[2],!0),type:"event"})}static isEventFragment(t){return t&&t._isFragment&&"event"===t.type}}function ew(t,e){e.gas=null;let r=t.split("@");return 1!==r.length?(r.length>2&&es.throwArgumentError("invalid human-readable ABI signature","value",t),r[1].match(/^[0-9]+$/)||es.throwArgumentError("invalid human-readable ABI signature gas","value",t),e.gas=tM.from(r[1]),r[0]):t}function eM(t,e){e.constant=!1,e.payable=!1,e.stateMutability="nonpayable",t.split(" ").forEach(t=>{switch(t.trim()){case"constant":e.constant=!0;break;case"payable":e.payable=!0,e.stateMutability="payable";break;case"nonpayable":e.payable=!1,e.stateMutability="nonpayable";break;case"pure":e.constant=!0,e.stateMutability="pure";break;case"view":e.constant=!0,e.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+t)}})}function eE(t){let e={constant:!1,payable:!0,stateMutability:"payable"};return null!=t.stateMutability?(e.stateMutability=t.stateMutability,e.constant="view"===e.stateMutability||"pure"===e.stateMutability,null!=t.constant&&!!t.constant!==e.constant&&es.throwArgumentError("cannot have constant function with mutability "+e.stateMutability,"value",t),e.payable="payable"===e.stateMutability,null!=t.payable&&!!t.payable!==e.payable&&es.throwArgumentError("cannot have payable function with mutability "+e.stateMutability,"value",t)):null!=t.payable?(e.payable=!!t.payable,null!=t.constant||e.payable||"constructor"===t.type||es.throwArgumentError("unable to determine stateMutability","value",t),e.constant=!!t.constant,e.constant?e.stateMutability="view":e.stateMutability=e.payable?"payable":"nonpayable",e.payable&&e.constant&&es.throwArgumentError("cannot have constant payable function","value",t)):null!=t.constant?(e.constant=!!t.constant,e.payable=!e.constant,e.stateMutability=e.constant?"view":"payable"):"constructor"!==t.type&&es.throwArgumentError("unable to determine stateMutability","value",t),e}class eA extends ey{format(t){if(t||(t=ep.sighash),ep[t]||es.throwArgumentError("invalid format type","format",t),t===ep.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(e=>JSON.parse(e.format(t)))});t===ep.sighash&&es.throwError("cannot format a constructor for sighash",tn.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let e="constructor("+this.inputs.map(e=>e.format(t)).join(t===ep.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(e+=this.stateMutability+" "),e.trim()}static from(t){return"string"==typeof t?eA.fromString(t):eA.fromObject(t)}static fromObject(t){if(eA.isConstructorFragment(t))return t;"constructor"!==t.type&&es.throwArgumentError("invalid constructor object","value",t);let e=eE(t);return e.constant&&es.throwArgumentError("constructor cannot be constant","value",t),new eA(eu,{name:null,type:t.type,inputs:t.inputs?t.inputs.map(eg.fromObject):[],payable:e.payable,stateMutability:e.stateMutability,gas:t.gas?tM.from(t.gas):null})}static fromString(t){let e={type:"constructor"},r=(t=ew(t,e)).match(eI);return r&&"constructor"===r[1].trim()||es.throwArgumentError("invalid constructor string","value",t),e.inputs=eb(r[2].trim(),!1),eM(r[3].trim(),e),eA.fromObject(e)}static isConstructorFragment(t){return t&&t._isFragment&&"constructor"===t.type}}class eS extends eA{format(t){if(t||(t=ep.sighash),ep[t]||es.throwArgumentError("invalid format type","format",t),t===ep.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(e=>JSON.parse(e.format(t))),outputs:this.outputs.map(e=>JSON.parse(e.format(t)))});let e="";return t!==ep.sighash&&(e+="function "),e+=this.name+"("+this.inputs.map(e=>e.format(t)).join(t===ep.full?", ":",")+") ",t!==ep.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(e+=this.stateMutability+" "):this.constant&&(e+="view "),this.outputs&&this.outputs.length&&(e+="returns ("+this.outputs.map(e=>e.format(t)).join(", ")+") "),null!=this.gas&&(e+="@"+this.gas.toString()+" ")),e.trim()}static from(t){return"string"==typeof t?eS.fromString(t):eS.fromObject(t)}static fromObject(t){if(eS.isFunctionFragment(t))return t;"function"!==t.type&&es.throwArgumentError("invalid function object","value",t);let e=eE(t);return new eS(eu,{type:t.type,name:eC(t.name),constant:e.constant,inputs:t.inputs?t.inputs.map(eg.fromObject):[],outputs:t.outputs?t.outputs.map(eg.fromObject):[],payable:e.payable,stateMutability:e.stateMutability,gas:t.gas?tM.from(t.gas):null})}static fromString(t){let e={type:"function"},r=(t=ew(t,e)).split(" returns ");r.length>2&&es.throwArgumentError("invalid function string","value",t);let n=r[0].match(eI);if(n||es.throwArgumentError("invalid function signature","value",t),e.name=n[1].trim(),e.name&&eC(e.name),e.inputs=eb(n[2],!1),eM(n[3].trim(),e),r.length>1){let n=r[1].match(eI);(""!=n[1].trim()||""!=n[3].trim())&&es.throwArgumentError("unexpected tokens","value",t),e.outputs=eb(n[2],!1)}else e.outputs=[];return eS.fromObject(e)}static isFunctionFragment(t){return t&&t._isFragment&&"function"===t.type}}function e_(t){let e=t.format();return("Error(string)"===e||"Panic(uint256)"===e)&&es.throwArgumentError(`cannot specify user defined ${e} error`,"fragment",t),t}class eN extends ey{format(t){if(t||(t=ep.sighash),ep[t]||es.throwArgumentError("invalid format type","format",t),t===ep.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(e=>JSON.parse(e.format(t)))});let e="";return t!==ep.sighash&&(e+="error "),(e+=this.name+"("+this.inputs.map(e=>e.format(t)).join(t===ep.full?", ":",")+") ").trim()}static from(t){return"string"==typeof t?eN.fromString(t):eN.fromObject(t)}static fromObject(t){return eN.isErrorFragment(t)?t:("error"!==t.type&&es.throwArgumentError("invalid error object","value",t),e_(new eN(eu,{type:t.type,name:eC(t.name),inputs:t.inputs?t.inputs.map(eg.fromObject):[]})))}static fromString(t){let e={type:"error"},r=t.match(eI);return r||es.throwArgumentError("invalid error signature","value",t),e.name=r[1].trim(),e.name&&eC(e.name),e.inputs=eb(r[2],!1),e_(eN.fromObject(e))}static isErrorFragment(t){return t&&t._isFragment&&"error"===t.type}}function eT(t){return t.match(/^uint($|[^1-9])/)?t="uint256"+t.substring(4):t.match(/^int($|[^1-9])/)&&(t="int256"+t.substring(3)),t}let eR=RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function eC(t){return t&&t.match(eR)||es.throwArgumentError(`invalid identifier "${t}"`,"value",t),t}let eI=RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$"),eP=new tn(tk),eO=new RegExp(/^bytes([0-9]*)$/),ex=new RegExp(/^(u?int)([0-9]*)$/);class ek{constructor(t){tT(this,"coerceFunc",t||null)}_getCoder(t){switch(t.baseType){case"address":return new t0(t.name);case"bool":return new t3(t.name);case"string":return new eo(t.name);case"bytes":return new t9(t.name);case"array":return new t8(this._getCoder(t.arrayChildren),t.arrayLength,t.name);case"tuple":return new ea((t.components||[]).map(t=>this._getCoder(t)),t.name);case"":return new et(t.name)}let e=t.type.match(ex);if(e){let r=parseInt(e[2]||"256");return(0===r||r>256||r%8!=0)&&eP.throwArgumentError("invalid "+e[1]+" bit length","param",t),new ef(r/8,"int"===e[1],t.name)}if(e=t.type.match(eO)){let r=parseInt(e[1]);return(0===r||r>32)&&eP.throwArgumentError("invalid bytes length","param",t),new t7(r,t.name)}return eP.throwArgumentError("invalid type","type",t.type)}_getWordSize(){return 32}_getReader(t,e){return new tD(t,this._getWordSize(),this.coerceFunc,e)}_getWriter(){return new tL(this._getWordSize())}getDefaultValue(t){return new ea(t.map(t=>this._getCoder(eg.from(t))),"_").defaultValue()}encode(t,e){t.length!==e.length&&eP.throwError("types/values length mismatch",tn.errors.INVALID_ARGUMENT,{count:{types:t.length,values:e.length},value:{types:t,values:e}});let r=new ea(t.map(t=>this._getCoder(eg.from(t))),"_"),n=this._getWriter();return r.encode(n,e),n.data}decode(t,e,r){return new ea(t.map(t=>this._getCoder(eg.from(t))),"_").decode(this._getReader(tu(e),r))}}let eF=new ek,eB=new tn(tk);class eL extends tx{}class eD extends tx{}class eU extends tx{}class eG extends tx{static isIndexed(t){return!!(t&&t._isIndexed)}}let ez={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function eJ(t,e){let r=Error(`deferred error during ABI decoding triggered accessing ${t}`);return r.error=e,r}class ej{constructor(t){tT(this,"fragments",("string"==typeof t?JSON.parse(t):t).map(t=>ey.from(t)).filter(t=>null!=t)),tT(this,"_abiCoder",tR(new.target,"getAbiCoder")()),tT(this,"functions",{}),tT(this,"errors",{}),tT(this,"events",{}),tT(this,"structs",{}),this.fragments.forEach(t=>{let e=null;switch(t.type){case"constructor":if(this.deploy){eB.warn("duplicate definition - constructor");return}tT(this,"deploy",t);return;case"function":e=this.functions;break;case"event":e=this.events;break;case"error":e=this.errors;break;default:return}let r=t.format();if(e[r]){eB.warn("duplicate definition - "+r);return}e[r]=t}),this.deploy||tT(this,"deploy",eA.from({payable:!1,type:"constructor"})),tT(this,"_isInterface",!0)}format(t){t||(t=ep.full),t===ep.sighash&&eB.throwArgumentError("interface does not support formatting sighash","format",t);let e=this.fragments.map(e=>e.format(t));return t===ep.json?JSON.stringify(e.map(t=>JSON.parse(t))):e}static getAbiCoder(){return eF}static getAddress(t){return tZ(t)}static getSighash(t){return tp(tz(t$(t.format())),0,4)}static getEventTopic(t){return tz(t$(t.format()))}getFunction(t){if(th(t)){for(let e in this.functions)if(t===this.getSighash(e))return this.functions[e];eB.throwArgumentError("no matching function","sighash",t)}if(-1===t.indexOf("(")){let e=t.trim(),r=Object.keys(this.functions).filter(t=>t.split("(")[0]===e);return 0===r.length?eB.throwArgumentError("no matching function","name",e):r.length>1&&eB.throwArgumentError("multiple matching functions","name",e),this.functions[r[0]]}let e=this.functions[eS.fromString(t).format()];return e||eB.throwArgumentError("no matching function","signature",t),e}getEvent(t){if(th(t)){let e=t.toLowerCase();for(let t in this.events)if(e===this.getEventTopic(t))return this.events[t];eB.throwArgumentError("no matching event","topichash",e)}if(-1===t.indexOf("(")){let e=t.trim(),r=Object.keys(this.events).filter(t=>t.split("(")[0]===e);return 0===r.length?eB.throwArgumentError("no matching event","name",e):r.length>1&&eB.throwArgumentError("multiple matching events","name",e),this.events[r[0]]}let e=this.events[ev.fromString(t).format()];return e||eB.throwArgumentError("no matching event","signature",t),e}getError(t){if(th(t)){let e=tR(this.constructor,"getSighash");for(let r in this.errors)if(t===e(this.errors[r]))return this.errors[r];eB.throwArgumentError("no matching error","sighash",t)}if(-1===t.indexOf("(")){let e=t.trim(),r=Object.keys(this.errors).filter(t=>t.split("(")[0]===e);return 0===r.length?eB.throwArgumentError("no matching error","name",e):r.length>1&&eB.throwArgumentError("multiple matching errors","name",e),this.errors[r[0]]}let e=this.errors[eS.fromString(t).format()];return e||eB.throwArgumentError("no matching error","signature",t),e}getSighash(t){if("string"==typeof t)try{t=this.getFunction(t)}catch(e){try{t=this.getError(t)}catch(t){throw e}}return tR(this.constructor,"getSighash")(t)}getEventTopic(t){return"string"==typeof t&&(t=this.getEvent(t)),tR(this.constructor,"getEventTopic")(t)}_decodeParams(t,e){return this._abiCoder.decode(t,e)}_encodeParams(t,e){return this._abiCoder.encode(t,e)}encodeDeploy(t){return this._encodeParams(this.deploy.inputs,t||[])}decodeErrorResult(t,e){"string"==typeof t&&(t=this.getError(t));let r=tu(e);return td(r.slice(0,4))!==this.getSighash(t)&&eB.throwArgumentError(`data signature does not match error ${t.name}.`,"data",td(r)),this._decodeParams(t.inputs,r.slice(4))}encodeErrorResult(t,e){return"string"==typeof t&&(t=this.getError(t)),td(tl([this.getSighash(t),this._encodeParams(t.inputs,e||[])]))}decodeFunctionData(t,e){"string"==typeof t&&(t=this.getFunction(t));let r=tu(e);return td(r.slice(0,4))!==this.getSighash(t)&&eB.throwArgumentError(`data signature does not match function ${t.name}.`,"data",td(r)),this._decodeParams(t.inputs,r.slice(4))}encodeFunctionData(t,e){return"string"==typeof t&&(t=this.getFunction(t)),td(tl([this.getSighash(t),this._encodeParams(t.inputs,e||[])]))}decodeFunctionResult(t,e){"string"==typeof t&&(t=this.getFunction(t));let r=tu(e),n=null,i="",f=null,o=null,a=null;switch(r.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(t.outputs,r)}catch(t){}break;case 4:{let t=td(r.slice(0,4)),e=ez[t];if(e)f=this._abiCoder.decode(e.inputs,r.slice(4)),o=e.name,a=e.signature,e.reason&&(n=f[0]),"Error"===o?i=`; VM Exception while processing transaction: reverted with reason string ${JSON.stringify(f[0])}`:"Panic"===o&&(i=`; VM Exception while processing transaction: reverted with panic code ${f[0]}`);else try{let e=this.getError(t);f=this._abiCoder.decode(e.inputs,r.slice(4)),o=e.name,a=e.format()}catch(t){}}}return eB.throwError("call revert exception"+i,tn.errors.CALL_EXCEPTION,{method:t.format(),data:td(e),errorArgs:f,errorName:o,errorSignature:a,reason:n})}encodeFunctionResult(t,e){return"string"==typeof t&&(t=this.getFunction(t)),td(this._abiCoder.encode(t.outputs,e||[]))}encodeFilterTopics(t,e){"string"==typeof t&&(t=this.getEvent(t)),e.length>t.inputs.length&&eB.throwError("too many arguments for "+t.format(),tn.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:e});let r=[];t.anonymous||r.push(this.getEventTopic(t));let n=(t,e)=>"string"===t.type?tz(t$(e)):"bytes"===t.type?tz(td(e)):("bool"===t.type&&"boolean"==typeof e&&(e=e?"0x01":"0x00"),t.type.match(/^u?int/)&&(e=tM.from(e).toHexString()),"address"===t.type&&this._abiCoder.encode(["address"],[e]),tm(td(e),32));for(e.forEach((e,i)=>{let f=t.inputs[i];if(!f.indexed){null!=e&&eB.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+f.name,e);return}null==e?r.push(null):"array"===f.baseType||"tuple"===f.baseType?eB.throwArgumentError("filtering with tuples or arrays not supported","contract."+f.name,e):Array.isArray(e)?r.push(e.map(t=>n(f,t))):r.push(n(f,e))});r.length&&null===r[r.length-1];)r.pop();return r}encodeEventLog(t,e){"string"==typeof t&&(t=this.getEvent(t));let r=[],n=[],i=[];return t.anonymous||r.push(this.getEventTopic(t)),e.length!==t.inputs.length&&eB.throwArgumentError("event arguments/values mismatch","values",e),t.inputs.forEach((t,f)=>{let o=e[f];if(t.indexed){if("string"===t.type)r.push(tz(t$(o)));else if("bytes"===t.type)r.push(tz(o));else if("tuple"===t.baseType||"array"===t.baseType)throw Error("not implemented");else r.push(this._abiCoder.encode([t.type],[o]))}else n.push(t),i.push(o)}),{data:this._abiCoder.encode(n,i),topics:r}}decodeEventLog(t,e,r){if("string"==typeof t&&(t=this.getEvent(t)),null!=r&&!t.anonymous){let e=this.getEventTopic(t);th(r[0],32)&&r[0].toLowerCase()===e||eB.throwError("fragment/topic mismatch",tn.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:e,value:r[0]}),r=r.slice(1)}let n=[],i=[],f=[];t.inputs.forEach((t,e)=>{t.indexed?"string"===t.type||"bytes"===t.type||"tuple"===t.baseType||"array"===t.baseType?(n.push(eg.fromObject({type:"bytes32",name:t.name})),f.push(!0)):(n.push(t),f.push(!1)):(i.push(t),f.push(!1))});let o=null!=r?this._abiCoder.decode(n,tl(r)):null,a=this._abiCoder.decode(i,e,!0),s=[],u=0,l=0;t.inputs.forEach((t,e)=>{if(t.indexed){if(null==o)s[e]=new eG({_isIndexed:!0,hash:null});else if(f[e])s[e]=new eG({_isIndexed:!0,hash:o[l++]});else try{s[e]=o[l++]}catch(t){s[e]=t}}else try{s[e]=a[u++]}catch(t){s[e]=t}if(t.name&&null==s[t.name]){let r=s[e];r instanceof Error?Object.defineProperty(s,t.name,{enumerable:!0,get:()=>{throw eJ(`property ${JSON.stringify(t.name)}`,r)}}):s[t.name]=r}});for(let t=0;t<s.length;t++){let e=s[t];e instanceof Error&&Object.defineProperty(s,t,{enumerable:!0,get:()=>{throw eJ(`index ${t}`,e)}})}return Object.freeze(s)}parseTransaction(t){let e=this.getFunction(t.data.substring(0,10).toLowerCase());return e?new eD({args:this._abiCoder.decode(e.inputs,"0x"+t.data.substring(10)),functionFragment:e,name:e.name,signature:e.format(),sighash:this.getSighash(e),value:tM.from(t.value||"0")}):null}parseLog(t){let e=this.getEvent(t.topics[0]);return!e||e.anonymous?null:new eL({eventFragment:e,name:e.name,signature:e.format(),topic:this.getEventTopic(e),args:this.decodeEventLog(e,t.data,t.topics)})}parseError(t){let e=td(t),r=this.getError(e.substring(0,10).toLowerCase());return r?new eU({args:this._abiCoder.decode(r.inputs,"0x"+e.substring(10)),errorFragment:r,name:r.name,signature:r.format(),sighash:this.getSighash(r)}):null}static isInterface(t){return!!(t&&t._isInterface)}}let eH=new tn("abstract-provider/5.7.0");class eV{constructor(){eH.checkAbstract(new.target,eV),tT(this,"_isProvider",!0)}getFeeData(){var t,e,r,n;return t=this,e=void 0,r=void 0,n=function*(){let{block:t,gasPrice:e}=yield tC({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch(t=>null)}),r=null,n=null,i=null;return t&&t.baseFeePerGas&&(r=t.baseFeePerGas,i=tM.from("1500000000"),n=t.baseFeePerGas.mul(2).add(i)),{lastBaseFeePerGas:r,maxFeePerGas:n,maxPriorityFeePerGas:i,gasPrice:e}},new(r||(r=Promise))(function(i,f){function o(t){try{s(n.next(t))}catch(t){f(t)}}function a(t){try{s(n.throw(t))}catch(t){f(t)}}function s(t){var e;t.done?i(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(o,a)}s((n=n.apply(t,e||[])).next())})}addListener(t,e){return this.on(t,e)}removeListener(t,e){return this.off(t,e)}static isProvider(t){return!!(t&&t._isProvider)}}var eX=function(t,e,r,n){return new(r||(r=Promise))(function(i,f){function o(t){try{s(n.next(t))}catch(t){f(t)}}function a(t){try{s(n.throw(t))}catch(t){f(t)}}function s(t){var e;t.done?i(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(o,a)}s((n=n.apply(t,e||[])).next())})};let eq=new tn("abstract-signer/5.7.0"),eZ=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],eK=[tn.errors.INSUFFICIENT_FUNDS,tn.errors.NONCE_EXPIRED,tn.errors.REPLACEMENT_UNDERPRICED];class eW{constructor(){eq.checkAbstract(new.target,eW),tT(this,"_isSigner",!0)}getBalance(t){return eX(this,void 0,void 0,function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),t)})}getTransactionCount(t){return eX(this,void 0,void 0,function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),t)})}estimateGas(t){return eX(this,void 0,void 0,function*(){this._checkProvider("estimateGas");let e=yield tC(this.checkTransaction(t));return yield this.provider.estimateGas(e)})}call(t,e){return eX(this,void 0,void 0,function*(){this._checkProvider("call");let r=yield tC(this.checkTransaction(t));return yield this.provider.call(r,e)})}sendTransaction(t){return eX(this,void 0,void 0,function*(){this._checkProvider("sendTransaction");let e=yield this.populateTransaction(t),r=yield this.signTransaction(e);return yield this.provider.sendTransaction(r)})}getChainId(){return eX(this,void 0,void 0,function*(){return this._checkProvider("getChainId"),(yield this.provider.getNetwork()).chainId})}getGasPrice(){return eX(this,void 0,void 0,function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()})}getFeeData(){return eX(this,void 0,void 0,function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()})}resolveName(t){return eX(this,void 0,void 0,function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(t)})}checkTransaction(t){for(let e in t)-1===eZ.indexOf(e)&&eq.throwArgumentError("invalid transaction key: "+e,"transaction",t);let e=tI(t);return null==e.from?e.from=this.getAddress():e.from=Promise.all([Promise.resolve(e.from),this.getAddress()]).then(e=>(e[0].toLowerCase()!==e[1].toLowerCase()&&eq.throwArgumentError("from address mismatch","transaction",t),e[0])),e}populateTransaction(t){return eX(this,void 0,void 0,function*(){let e=yield tC(this.checkTransaction(t));null!=e.to&&(e.to=Promise.resolve(e.to).then(t=>eX(this,void 0,void 0,function*(){if(null==t)return null;let e=yield this.resolveName(t);return null==e&&eq.throwArgumentError("provided ENS name resolves to null","tx.to",t),e})),e.to.catch(t=>{}));let r=null!=e.maxFeePerGas||null!=e.maxPriorityFeePerGas;if(null!=e.gasPrice&&(2===e.type||r)?eq.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",t):(0===e.type||1===e.type)&&r&&eq.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",t),(2===e.type||null==e.type)&&null!=e.maxFeePerGas&&null!=e.maxPriorityFeePerGas)e.type=2;else if(0===e.type||1===e.type)null==e.gasPrice&&(e.gasPrice=this.getGasPrice());else{let t=yield this.getFeeData();if(null==e.type){if(null!=t.maxFeePerGas&&null!=t.maxPriorityFeePerGas){if(e.type=2,null!=e.gasPrice){let t=e.gasPrice;delete e.gasPrice,e.maxFeePerGas=t,e.maxPriorityFeePerGas=t}else null==e.maxFeePerGas&&(e.maxFeePerGas=t.maxFeePerGas),null==e.maxPriorityFeePerGas&&(e.maxPriorityFeePerGas=t.maxPriorityFeePerGas)}else null!=t.gasPrice?(r&&eq.throwError("network does not support EIP-1559",tn.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),null==e.gasPrice&&(e.gasPrice=t.gasPrice),e.type=0):eq.throwError("failed to get consistent fee data",tn.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"})}else 2===e.type&&(null==e.maxFeePerGas&&(e.maxFeePerGas=t.maxFeePerGas),null==e.maxPriorityFeePerGas&&(e.maxPriorityFeePerGas=t.maxPriorityFeePerGas))}return null==e.nonce&&(e.nonce=this.getTransactionCount("pending")),null==e.gasLimit&&(e.gasLimit=this.estimateGas(e).catch(t=>{if(eK.indexOf(t.code)>=0)throw t;return eq.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",tn.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,tx:e})})),null==e.chainId?e.chainId=this.getChainId():e.chainId=Promise.all([Promise.resolve(e.chainId),this.getChainId()]).then(e=>(0!==e[1]&&e[0]!==e[1]&&eq.throwArgumentError("chainId address mismatch","transaction",t),e[0])),yield tC(e)})}_checkProvider(t){this.provider||eq.throwError("missing provider",tn.errors.UNSUPPORTED_OPERATION,{operation:t||"_checkProvider"})}static isSigner(t){return!!(t&&t._isSigner)}}class eY extends eW{constructor(t,e){super(),tT(this,"address",t),tT(this,"provider",e||null)}getAddress(){return Promise.resolve(this.address)}_fail(t,e){return Promise.resolve().then(()=>{eq.throwError(t,tn.errors.UNSUPPORTED_OPERATION,{operation:e})})}signMessage(t){return this._fail("VoidSigner cannot sign messages","signMessage")}signTransaction(t){return this._fail("VoidSigner cannot sign transactions","signTransaction")}_signTypedData(t,e,r){return this._fail("VoidSigner cannot sign typed data","signTypedData")}connect(t){return new eY(this.address,t)}}let eQ=new tn("transactions/5.7.0");function e$(t,e){return{address:tZ(t),storageKeys:(e||[]).map((e,r)=>(32!==function(t){if("string"!=typeof t)t=td(t);else if(!th(t)||t.length%2)return null;return(t.length-2)/2}(e)&&eQ.throwArgumentError("invalid access list storageKey",`accessList[${t}:${r}]`,e),e.toLowerCase()))}}(l=I||(I={}))[l.legacy=0]="legacy",l[l.eip2930=1]="eip2930",l[l.eip1559=2]="eip1559";var e0=function(t,e,r,n){return new(r||(r=Promise))(function(i,f){function o(t){try{s(n.next(t))}catch(t){f(t)}}function a(t){try{s(n.throw(t))}catch(t){f(t)}}function s(t){var e;t.done?i(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(o,a)}s((n=n.apply(t,e||[])).next())})};let e1=new tn("contracts/5.4.1"),e6={chainId:!0,data:!0,from:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};function e5(t,e){return e0(this,void 0,void 0,function*(){let r=yield e;try{return tZ(r)}catch(t){}t||e1.throwError("a provider or signer is needed to resolve ENS names",tn.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"});let n=yield t.resolveName(r);return null==n&&e1.throwArgumentError("resolver or addr is not configured for ENS name","name",r),n})}function e2(t,e,r){return e0(this,void 0,void 0,function*(){return Array.isArray(r)?yield Promise.all(r.map((r,n)=>e2(t,Array.isArray(e)?e[n]:e[r.name],r))):"address"===r.type?yield e5(t,e):"tuple"===r.type?yield e2(t,e,r.components):"array"===r.baseType?Array.isArray(e)?yield Promise.all(e.map(e=>e2(t,e,r.arrayChildren))):Promise.reject(Error("invalid value for array")):e})}function e8(t,e,r){return e0(this,void 0,void 0,function*(){let n={};r.length===e.inputs.length+1&&"object"==typeof r[r.length-1]&&(n=tI(r.pop())),e1.checkArgumentCount(r.length,e.inputs.length,"passed to contract"),t.signer?n.from?n.from=tC({override:e5(t.signer,n.from),signer:t.signer.getAddress()}).then(t=>e0(this,void 0,void 0,function*(){return tZ(t.signer)!==t.override&&e1.throwError("Contract with a Signer cannot override from",tn.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),t.override})):n.from=t.signer.getAddress():n.from&&(n.from=e5(t.provider,n.from));let i=yield tC({args:e2(t.signer||t.provider,r,e.inputs),address:t.resolvedAddress,overrides:tC(n)||{}}),f=t.interface.encodeFunctionData(e,i.args),o={data:f,to:i.address},a=i.overrides;if(null!=a.nonce&&(o.nonce=tM.from(a.nonce).toNumber()),null!=a.gasLimit&&(o.gasLimit=tM.from(a.gasLimit)),null!=a.gasPrice&&(o.gasPrice=tM.from(a.gasPrice)),null!=a.maxFeePerGas&&(o.maxFeePerGas=tM.from(a.maxFeePerGas)),null!=a.maxPriorityFeePerGas&&(o.maxPriorityFeePerGas=tM.from(a.maxPriorityFeePerGas)),null!=a.from&&(o.from=a.from),null!=a.type&&(o.type=a.type),null!=a.accessList&&(o.accessList=function(t){if(Array.isArray(t))return t.map((t,e)=>Array.isArray(t)?(t.length>2&&eQ.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${e}]`,t),e$(t[0],t[1])):e$(t.address,t.storageKeys));let e=Object.keys(t).map(e=>{let r=t[e].reduce((t,e)=>(t[e]=!0,t),{});return e$(e,Object.keys(r).sort())});return e.sort((t,e)=>t.address.localeCompare(e.address)),e}(a.accessList)),null==o.gasLimit&&null!=e.gas){let t=21e3,r=tu(f);for(let e=0;e<r.length;e++)t+=4,r[e]&&(t+=64);o.gasLimit=tM.from(e.gas).add(t)}if(a.value){let t=tM.from(a.value);t.isZero()||e.payable||e1.throwError("non-payable method cannot override value",tn.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:n.value}),o.value=t}delete n.nonce,delete n.gasLimit,delete n.gasPrice,delete n.from,delete n.value,delete n.type,delete n.accessList,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas;let s=Object.keys(n).filter(t=>null!=n[t]);return s.length&&e1.throwError(`cannot override ${s.map(t=>JSON.stringify(t)).join(",")}`,tn.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:s}),o})}function e3(t,e,r){let n=t.signer||t.provider;return function(...i){return e0(this,void 0,void 0,function*(){let f;if(i.length===e.inputs.length+1&&"object"==typeof i[i.length-1]){let t=tI(i.pop());null!=t.blockTag&&(f=yield t.blockTag),delete t.blockTag,i.push(t)}null!=t.deployTransaction&&(yield t._deployed(f));let o=yield e8(t,e,i),a=yield n.call(o,f);try{let n=t.interface.decodeFunctionResult(e,a);return r&&1===e.outputs.length&&(n=n[0]),n}catch(e){throw e.code===tn.errors.CALL_EXCEPTION&&(e.address=t.address,e.args=i,e.transaction=o),e}})}}function e4(t,e,r){return e.constant?e3(t,e,r):function(...r){return e0(this,void 0,void 0,function*(){t.signer||e1.throwError("sending a transaction requires a signer",tn.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),null!=t.deployTransaction&&(yield t._deployed());let n=yield e8(t,e,r),i=yield t.signer.sendTransaction(n),f=i.wait.bind(i);return i.wait=e=>f(e).then(e=>(e.events=e.logs.map(r=>{let n=tO(r),i=null;try{i=t.interface.parseLog(r)}catch(t){}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)),i})}}function e9(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 e7{constructor(t,e){tT(this,"tag",t),tT(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){let e=this.listenerCount();return this._listeners=this._listeners.filter(e=>{let r=t.slice();return setTimeout(()=>{e.listener.apply(this,r)},0),!e.once}),e}prepareEvent(t){}getEmit(t){return[t]}}class rt extends e7{constructor(){super("error",null)}}class re extends e7{constructor(t,e,r,n){let i={address:t},f=e.getEventTopic(r);n?(f!==n[0]&&e1.throwArgumentError("topic mismatch","topics",n),i.topics=n.slice()):i.topics=[f],super(e9(i),i),tT(this,"address",t),tT(this,"interface",e),tT(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){let e=function(t){let e=[],r=function(t,n){if(Array.isArray(n))for(let i in n){let f=t.slice();f.push(i);try{r(f,n[i])}catch(t){e.push({path:f,error:t})}}};return r([],t),e}(t.args);if(e.length)throw e[0].error;let r=(t.args||[]).slice();return r.push(t),r}}class rr extends e7{constructor(t,e){super("*",{address:t}),tT(this,"address",t),tT(this,"interface",e)}prepareEvent(t){super.prepareEvent(t);try{let 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(t){}}}class rn{constructor(t,e,r){e1.checkNew(new.target,ri),tT(this,"interface",tR(new.target,"getInterface")(e)),null==r?(tT(this,"provider",null),tT(this,"signer",null)):eW.isSigner(r)?(tT(this,"provider",r.provider||null),tT(this,"signer",r)):eV.isProvider(r)?(tT(this,"provider",r),tT(this,"signer",null)):e1.throwArgumentError("invalid signer or provider","signerOrProvider",r),tT(this,"callStatic",{}),tT(this,"estimateGas",{}),tT(this,"functions",{}),tT(this,"populateTransaction",{}),tT(this,"filters",{});{let t={};Object.keys(this.interface.events).forEach(e=>{let r=this.interface.events[e];tT(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=>{let r=t[e];1===r.length?tT(this.filters,e,this.filters[r[0]]):e1.warn(`Duplicate definition of ${e} (${r.join(", ")})`)})}if(tT(this,"_runningEvents",{}),tT(this,"_wrappedEmits",{}),null==t&&e1.throwArgumentError("invalid contract address or ENS name","addressOrName",t),tT(this,"address",t),this.provider)tT(this,"resolvedAddress",e5(this.provider,t));else try{tT(this,"resolvedAddress",Promise.resolve(tZ(t)))}catch(t){e1.throwError("provider is required to use ENS name as contract address",tn.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}let n={},i={};Object.keys(this.interface.functions).forEach(t=>{let e=this.interface.functions[t];if(i[t]){e1.warn(`Duplicate ABI entry for ${JSON.stringify(t)}`);return}i[t]=!0;{let r=e.name;n[r]||(n[r]=[]),n[r].push(t)}if(null==this[t]&&tT(this,t,e4(this,e,!0)),null==this.functions[t]&&tT(this.functions,t,e4(this,e,!1)),null==this.callStatic[t]&&tT(this.callStatic,t,e3(this,e,!0)),null==this.populateTransaction[t]){var r;tT(this.populateTransaction,t,(r=this,function(...t){return e8(r,e,t)}))}null==this.estimateGas[t]&&tT(this.estimateGas,t,function(t,e){let r=t.signer||t.provider;return function(...n){return e0(this,void 0,void 0,function*(){r||e1.throwError("estimate require a provider or signer",tn.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"});let i=yield e8(t,e,n);return yield r.estimateGas(i)})}}(this,e))}),Object.keys(n).forEach(t=>{let e=n[t];if(e.length>1)return;let r=e[0];try{null==this[t]&&tT(this,t,this[r])}catch(t){}null==this.functions[t]&&tT(this.functions,t,this.functions[r]),null==this.callStatic[t]&&tT(this.callStatic,t,this.callStatic[r]),null==this.populateTransaction[t]&&tT(this.populateTransaction,t,this.populateTransaction[r]),null==this.estimateGas[t]&&tT(this.estimateGas,t,this.estimateGas[r])})}static getContractAddress(t){return tK(t)}static getInterface(t){return ej.isInterface(t)?t:new ej(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&&e1.throwError("contract not deployed",tn.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:"getDeployed"}),this))),this._deployedPromise}fallback(t){this.signer||e1.throwError("sending a transactions require a signer",tn.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});let e=tI(t||{});return["from","to"].forEach(function(t){null!=e[t]&&e1.throwError("cannot override "+t,tn.errors.UNSUPPORTED_OPERATION,{operation:t})}),e.to=this.resolvedAddress,this.deployed().then(()=>this.signer.sendTransaction(e))}connect(t){"string"==typeof t&&(t=new eY(t,this.provider));let e=new this.constructor(this.address,this.interface,t);return this.deployTransaction&&tT(e,"deployTransaction",this.deployTransaction),e}attach(t){return new this.constructor(t,this.interface,this.signer||this.provider)}static isIndexed(t){return eG.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 rt);if("event"===t)return this._normalizeRunningEvent(new e7("event",null));if("*"===t)return this._normalizeRunningEvent(new rr(this.address,this.interface));let e=this.interface.getEvent(t);return this._normalizeRunningEvent(new re(this.address,this.interface,e))}if(t.topics&&t.topics.length>0){try{let e=t.topics[0];if("string"!=typeof e)throw Error("invalid topic");let r=this.interface.getEvent(e);return this._normalizeRunningEvent(new re(this.address,this.interface,r,t.topics))}catch(t){}let e={address:this.address,topics:t.topics};return this._normalizeRunningEvent(new e7(e9(e),e))}return this._normalizeRunningEvent(new rr(this.address,this.interface))}_checkRunningEvents(t){if(0===t.listenerCount()){delete this._runningEvents[t.tag];let e=this._wrappedEmits[t.tag];e&&t.filter&&(this.provider.off(t.filter,e),delete this._wrappedEmits[t.tag])}}_wrapEvent(t,e,r){let n=tO(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||e1.throwError("events require a provider or a signer with a provider",tn.errors.UNSUPPORTED_OPERATION,{operation:"once"}),t.addListener(e,r),this._runningEvents[t.tag]=t,!this._wrappedEmits[t.tag]){let r=r=>{let n=this._wrapEvent(t,r,e);if(null==n.decodeError)try{let e=t.getEmit(n);this.emit(t.filter,...e)}catch(t){n.decodeError=t.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){let n=this._getRunningEvent(t),i=tI(n.filter);return"string"==typeof e&&th(e,32)?(null!=r&&e1.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;let 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){let 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(let t in this._runningEvents){let e=this._runningEvents[t];e.removeAllListeners(),this._checkRunningEvents(e)}return this}let e=this._getRunningEvent(t);return e.removeAllListeners(),this._checkRunningEvents(e),this}off(t,e){if(!this.provider)return this;let r=this._getRunningEvent(t);return r.removeListener(e),this._checkRunningEvents(r),this}removeListener(t,e){return this.off(t,e)}}class ri extends rn{}class rf{constructor(t,e,r){let n=null;"0x"!==(n="string"==typeof e?e:ts(e)?td(e):e&&"string"==typeof e.object?e.object:"!").substring(0,2)&&(n="0x"+n),(!th(n)||n.length%2)&&e1.throwArgumentError("invalid bytecode","bytecode",e),r&&!eW.isSigner(r)&&e1.throwArgumentError("invalid signer","signer",r),tT(this,"bytecode",n),tT(this,"interface",tR(new.target,"getInterface")(t)),tT(this,"signer",r||null)}getDeployTransaction(...t){let e={};if(t.length===this.interface.deploy.inputs.length+1&&"object"==typeof t[t.length-1]){for(let r in e=tI(t.pop()))if(!e6[r])throw Error("unknown transaction override "+r)}return["data","from","to"].forEach(t=>{null!=e[t]&&e1.throwError("cannot override "+t,tn.errors.UNSUPPORTED_OPERATION,{operation:t})}),!e.value||tM.from(e.value).isZero()||this.interface.deploy.payable||e1.throwError("non-payable constructor cannot override value",tn.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:e.value}),e1.checkArgumentCount(t.length,this.interface.deploy.inputs.length," in Contract constructor"),e.data=td(tl([this.bytecode,this.interface.encodeDeploy(t)])),e}deploy(...t){return e0(this,void 0,void 0,function*(){let e={};t.length===this.interface.deploy.inputs.length+1&&(e=t.pop()),e1.checkArgumentCount(t.length,this.interface.deploy.inputs.length," in Contract constructor");let r=yield e2(this.signer,t,this.interface.deploy.inputs);r.push(e);let n=this.getDeployTransaction(...r),i=yield this.signer.sendTransaction(n),f=tR(this.constructor,"getContractAddress")(i),o=tR(this.constructor,"getContract")(f,this.interface,this.signer);return tT(o,"deployTransaction",i),o})}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&&e1.throwError("missing compiler output",tn.errors.MISSING_ARGUMENT,{argument:"compilerOutput"}),"string"==typeof t&&(t=JSON.parse(t));let r=t.abi,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 ri.getInterface(t)}static getContractAddress(t){return tK(t)}static getContract(t,e,r){return new ri(t,e,r)}}var ro=r(13550),ra=r.n(ro);let rs=!1,ru=!1,rl={debug:1,default:2,info:2,warning:3,error:4,off:5},rh=rl.default,rc=null,rd=function(){try{let t=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test"!=="test".normalize(e))throw Error("bad normalize")}catch(r){t.push(e)}}),t.length)throw Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw Error("broken implementation")}catch(t){return t.message}return null}();(h=P||(P={})).DEBUG="DEBUG",h.INFO="INFO",h.WARNING="WARNING",h.ERROR="ERROR",h.OFF="OFF",(c=O||(O={})).UNKNOWN_ERROR="UNKNOWN_ERROR",c.NOT_IMPLEMENTED="NOT_IMPLEMENTED",c.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",c.NETWORK_ERROR="NETWORK_ERROR",c.SERVER_ERROR="SERVER_ERROR",c.TIMEOUT="TIMEOUT",c.BUFFER_OVERRUN="BUFFER_OVERRUN",c.NUMERIC_FAULT="NUMERIC_FAULT",c.MISSING_NEW="MISSING_NEW",c.INVALID_ARGUMENT="INVALID_ARGUMENT",c.MISSING_ARGUMENT="MISSING_ARGUMENT",c.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",c.CALL_EXCEPTION="CALL_EXCEPTION",c.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",c.NONCE_EXPIRED="NONCE_EXPIRED",c.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",c.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",c.TRANSACTION_REPLACED="TRANSACTION_REPLACED",c.ACTION_REJECTED="ACTION_REJECTED";let rp="0123456789abcdef";class rm{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){let r=t.toLowerCase();null==rl[r]&&this.throwArgumentError("invalid log level name","logLevel",t),rh>rl[r]||console.log.apply(console,e)}debug(...t){this._log(rm.levels.DEBUG,t)}info(...t){this._log(rm.levels.INFO,t)}warn(...t){this._log(rm.levels.WARNING,t)}makeError(t,e,r){if(ru)return this.makeError("censored error",e,{});e||(e=rm.errors.UNKNOWN_ERROR),r||(r={});let n=[];Object.keys(r).forEach(t=>{let e=r[t];try{if(e instanceof Uint8Array){let r="";for(let t=0;t<e.length;t++)r+=rp[e[t]>>4]+rp[15&e[t]];n.push(t+"=Uint8Array(0x"+r+")")}else n.push(t+"="+JSON.stringify(e))}catch(e){n.push(t+"="+JSON.stringify(r[t].toString()))}}),n.push(`code=${e}`),n.push(`version=${this.version}`);let i=t,f="";switch(e){case O.NUMERIC_FAULT:{f="NUMERIC_FAULT";let e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":f+="-"+e;break;case"negative-power":case"negative-width":f+="-unsupported";break;case"unbound-bitwise-result":f+="-unbound-result"}break}case O.CALL_EXCEPTION:case O.INSUFFICIENT_FUNDS:case O.MISSING_NEW:case O.NONCE_EXPIRED:case O.REPLACEMENT_UNDERPRICED:case O.TRANSACTION_REPLACED:case O.UNPREDICTABLE_GAS_LIMIT:f=e}f&&(t+=" [ See: https://links.ethers.org/v5-errors-"+f+" ]"),n.length&&(t+=" ("+n.join(", ")+")");let o=Error(t);return o.reason=i,o.code=e,Object.keys(r).forEach(function(t){o[t]=r[t]}),o}throwError(t,e,r){throw this.makeError(t,e,r)}throwArgumentError(t,e,r){return this.throwError(t,rm.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"),rd&&this.throwError("platform missing String.prototype.normalize",rm.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:rd})}checkSafeUint53(t,e){"number"==typeof t&&(null==e&&(e="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(e,rm.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(e,rm.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,e,r){r=r?": "+r:"",t<e&&this.throwError("missing argument"+r,rm.errors.MISSING_ARGUMENT,{count:t,expectedCount:e}),t>e&&this.throwError("too many arguments"+r,rm.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:e})}checkNew(t,e){(t===Object||null==t)&&this.throwError("missing new",rm.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",rm.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):(t===Object||null==t)&&this.throwError("missing new",rm.errors.MISSING_NEW,{name:e.name})}static globalLogger(){return rc||(rc=new rm("logger/5.7.0")),rc}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",rm.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),rs){if(!t)return;this.globalLogger().throwError("error censorship permanent",rm.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}ru=!!t,rs=!!e}static setLogLevel(t){let e=rl[t.toLowerCase()];if(null==e){rm.globalLogger().warn("invalid log level - "+t);return}rh=e}static from(t){return new rm(t)}}rm.errors=O,rm.levels=P;let rg=new rm("bytes/5.7.0");function rb(t){return!!t.toHexString}function ry(t){return t.slice||(t.slice=function(){let e=Array.prototype.slice.call(arguments);return ry(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function rv(t){return"number"==typeof t&&t==t&&t%1==0}function rw(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"==typeof t||!rv(t.length)||t.length<0)return!1;for(let e=0;e<t.length;e++){let r=t[e];if(!rv(r)||r<0||r>=256)return!1}return!0}function rM(t,e){return"string"==typeof t&&!!t.match(/^0x[0-9A-Fa-f]*$/)&&(!e||t.length===2+2*e)}let rE="0123456789abcdef";function rA(t,e){if(e||(e={}),"number"==typeof t){rg.checkSafeUint53(t,"invalid hexlify value");let e="";for(;t;)e=rE[15&t]+e,t=Math.floor(t/16);return e.length?(e.length%2&&(e="0"+e),"0x"+e):"0x00"}if("bigint"==typeof t)return(t=t.toString(16)).length%2?"0x0"+t:"0x"+t;if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),rb(t))return t.toHexString();if(rM(t))return t.length%2&&("left"===e.hexPad?t="0x0"+t.substring(2):"right"===e.hexPad?t+="0":rg.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(rw(t)){let e="0x";for(let r=0;r<t.length;r++){let n=t[r];e+=rE[(240&n)>>4]+rE[15&n]}return e}return rg.throwArgumentError("invalid hexlify value","value",t)}function rS(t,e){for("string"!=typeof t?t=rA(t):rM(t)||rg.throwArgumentError("invalid hex string","value",t),t.length>2*e+2&&rg.throwArgumentError("value out of range","value",arguments[1]);t.length<2*e+2;)t="0x0"+t.substring(2);return t}let r_="bignumber/5.4.2";var rN=ra().BN;let rT=new rm(r_),rR={},rC=!1;class rI{constructor(t,e){rT.checkNew(new.target,rI),t!==rR&&rT.throwError("cannot call constructor directly; use BigNumber.from",rm.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=e,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return rO(rx(this).fromTwos(t))}toTwos(t){return rO(rx(this).toTwos(t))}abs(){return"-"===this._hex[0]?rI.from(this._hex.substring(1)):this}add(t){return rO(rx(this).add(rx(t)))}sub(t){return rO(rx(this).sub(rx(t)))}div(t){return rI.from(t).isZero()&&rk("division by zero","div"),rO(rx(this).div(rx(t)))}mul(t){return rO(rx(this).mul(rx(t)))}mod(t){let e=rx(t);return e.isNeg()&&rk("cannot modulo negative values","mod"),rO(rx(this).umod(e))}pow(t){let e=rx(t);return e.isNeg()&&rk("cannot raise to negative values","pow"),rO(rx(this).pow(e))}and(t){let e=rx(t);return(this.isNegative()||e.isNeg())&&rk("cannot 'and' negative values","and"),rO(rx(this).and(e))}or(t){let e=rx(t);return(this.isNegative()||e.isNeg())&&rk("cannot 'or' negative values","or"),rO(rx(this).or(e))}xor(t){let e=rx(t);return(this.isNegative()||e.isNeg())&&rk("cannot 'xor' negative values","xor"),rO(rx(this).xor(e))}mask(t){return(this.isNegative()||t<0)&&rk("cannot mask negative values","mask"),rO(rx(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&rk("cannot shift negative values","shl"),rO(rx(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&rk("cannot shift negative values","shr"),rO(rx(this).shrn(t))}eq(t){return rx(this).eq(rx(t))}lt(t){return rx(this).lt(rx(t))}lte(t){return rx(this).lte(rx(t))}gt(t){return rx(this).gt(rx(t))}gte(t){return rx(this).gte(rx(t))}isNegative(){return"-"===this._hex[0]}isZero(){return rx(this).isZero()}toNumber(){try{return rx(this).toNumber()}catch(t){rk("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(t){}return rT.throwError("this platform does not support BigInt",rm.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?rC||(rC=!0,rT.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?rT.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",rm.errors.UNEXPECTED_ARGUMENT,{}):rT.throwError("BigNumber.toString does not accept parameters",rm.errors.UNEXPECTED_ARGUMENT,{})),rx(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof rI)return t;if("string"==typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new rI(rR,rP(t)):t.match(/^-?[0-9]+$/)?new rI(rR,rP(new rN(t))):rT.throwArgumentError("invalid BigNumber string","value",t);if("number"==typeof t)return t%1&&rk("underflow","BigNumber.from",t),(t>=9007199254740991||t<=-9007199254740991)&&rk("overflow","BigNumber.from",t),rI.from(String(t));if("bigint"==typeof t)return rI.from(t.toString());if(rw(t))return rI.from(rA(t));if(t){if(t.toHexString){let e=t.toHexString();if("string"==typeof e)return rI.from(e)}else{let e=t._hex;if(null==e&&"BigNumber"===t.type&&(e=t.hex),"string"==typeof e&&(rM(e)||"-"===e[0]&&rM(e.substring(1))))return rI.from(e)}}return rT.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!!(t&&t._isBigNumber)}}function rP(t){if("string"!=typeof t)return rP(t.toString(16));if("-"===t[0])return("-"===(t=t.substring(1))[0]&&rT.throwArgumentError("invalid hex","value",t),"0x00"===(t=rP(t)))?t:"-"+t;if("0x"!==t.substring(0,2)&&(t="0x"+t),"0x"===t)return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&"0x00"===t.substring(0,4);)t="0x"+t.substring(4);return t}function rO(t){return rI.from(rP(t))}function rx(t){let e=rI.from(t).toHexString();return"-"===e[0]?new rN("-"+e.substring(3),16):new rN(e.substring(2),16)}function rk(t,e,r){let n={fault:t,operation:e};return null!=r&&(n.value=r),rT.throwError(t,rm.errors.NUMERIC_FAULT,n)}let rF=new rm(r_),rB={},rL=rI.from(0),rD=rI.from(-1);function rU(t,e,r,n){let i={fault:e,operation:r};return void 0!==n&&(i.value=n),rF.throwError(t,rm.errors.NUMERIC_FAULT,i)}let rG="0";for(;rG.length<256;)rG+=rG;function rz(t){if("number"!=typeof t)try{t=rI.from(t).toNumber()}catch(t){}return"number"==typeof t&&t>=0&&t<=256&&!(t%1)?"1"+rG.substring(0,t):rF.throwArgumentError("invalid decimal size","decimals",t)}function rJ(t,e){null==e&&(e=0);let r=rz(e),n=(t=rI.from(t)).lt(rL);n&&(t=t.mul(rD));let i=t.mod(r).toString();for(;i.length<r.length-1;)i="0"+i;i=i.match(/^([0-9]*[1-9]|0)(0*)/)[1];let f=t.div(r).toString();return t=1===r.length?f:f+"."+i,n&&(t="-"+t),t}function rj(t,e){null==e&&(e=0);let r=rz(e);"string"==typeof t&&t.match(/^-?[0-9.,]+$/)||rF.throwArgumentError("invalid decimal value","value",t);let n="-"===t.substring(0,1);n&&(t=t.substring(1)),"."===t&&rF.throwArgumentError("missing value","value",t);let i=t.split(".");i.length>2&&rF.throwArgumentError("too many decimal points","value",t);let f=i[0],o=i[1];for(f||(f="0"),o||(o="0");"0"===o[o.length-1];)o=o.substring(0,o.length-1);for(o.length>r.length-1&&rU("fractional component exceeds decimals","underflow","parseFixed"),""===o&&(o="0");o.length<r.length-1;)o+="0";let a=rI.from(f),s=rI.from(o),u=a.mul(r).add(s);return n&&(u=u.mul(rD)),u}class rH{constructor(t,e,r,n){t!==rB&&rF.throwError("cannot use FixedFormat constructor; use FixedFormat.from",rm.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.signed=e,this.width=r,this.decimals=n,this.name=(e?"":"u")+"fixed"+String(r)+"x"+String(n),this._multiplier=rz(n),Object.freeze(this)}static from(t){if(t instanceof rH)return t;"number"==typeof t&&(t=`fixed128x${t}`);let e=!0,r=128,n=18;if("string"==typeof t){if("fixed"===t);else if("ufixed"===t)e=!1;else{let i=t.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);i||rF.throwArgumentError("invalid fixed format","format",t),e="u"!==i[1],r=parseInt(i[2]),n=parseInt(i[3])}}else if(t){let i=(e,r,n)=>null==t[e]?n:(typeof t[e]!==r&&rF.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&&rF.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",r),n>80&&rF.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",n),new rH(rB,e,r,n)}}class rV{constructor(t,e,r,n){rF.checkNew(new.target,rV),t!==rB&&rF.throwError("cannot use FixedNumber constructor; use FixedNumber.from",rm.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&&rF.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",t)}addUnsafe(t){this._checkFormat(t);let e=rj(this._value,this.format.decimals),r=rj(t._value,t.format.decimals);return rV.fromValue(e.add(r),this.format.decimals,this.format)}subUnsafe(t){this._checkFormat(t);let e=rj(this._value,this.format.decimals),r=rj(t._value,t.format.decimals);return rV.fromValue(e.sub(r),this.format.decimals,this.format)}mulUnsafe(t){this._checkFormat(t);let e=rj(this._value,this.format.decimals),r=rj(t._value,t.format.decimals);return rV.fromValue(e.mul(r).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(t){this._checkFormat(t);let e=rj(this._value,this.format.decimals),r=rj(t._value,t.format.decimals);return rV.fromValue(e.mul(this.format._multiplier).div(r),this.format.decimals,this.format)}floor(){let t=this.toString().split(".");1===t.length&&t.push("0");let e=rV.from(t[0],this.format),r=!t[1].match(/^(0*)$/);return this.isNegative()&&r&&(e=e.subUnsafe(rX.toFormat(e.format))),e}ceiling(){let t=this.toString().split(".");1===t.length&&t.push("0");let e=rV.from(t[0],this.format),r=!t[1].match(/^(0*)$/);return!this.isNegative()&&r&&(e=e.addUnsafe(rX.toFormat(e.format))),e}round(t){null==t&&(t=0);let e=this.toString().split(".");if(1===e.length&&e.push("0"),(t<0||t>80||t%1)&&rF.throwArgumentError("invalid decimal count","decimals",t),e[1].length<=t)return this;let r=rV.from("1"+rG.substring(0,t),this.format),n=rq.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){return null==t?this._hex:(t%8&&rF.throwArgumentError("invalid byte width","width",t),rS(rI.from(this._hex).fromTwos(this.format.width).toTwos(t).toHexString(),t/8))}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(t){return rV.fromString(this._value,t)}static fromValue(t,e,r){var n;return null!=r||null==e||null!=(n=e)&&(rI.isBigNumber(n)||"number"==typeof n&&n%1==0||"string"==typeof n&&n.match(/^-?[0-9]+$/)||rM(n)||"bigint"==typeof n||rw(n))||(r=e,e=null),null==e&&(e=0),null==r&&(r="fixed"),rV.fromString(rJ(t,e),rH.from(r))}static fromString(t,e){null==e&&(e="fixed");let r=rH.from(e),n=rj(t,r.decimals);!r.signed&&n.lt(rL)&&rU("unsigned value cannot be negative","overflow","value",t);let i=null;return new rV(rB,r.signed?n.toTwos(r.width).toHexString():rS(n.toHexString(),r.width/8),rJ(n,r.decimals),r)}static fromBytes(t,e){null==e&&(e="fixed");let r=rH.from(e);if(function(t,e){if(e||(e={}),"number"==typeof t){rg.checkSafeUint53(t,"invalid arrayify value");let e=[];for(;t;)e.unshift(255&t),t=parseInt(String(t/256));return 0===e.length&&e.push(0),ry(new Uint8Array(e))}if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),rb(t)&&(t=t.toHexString()),rM(t)){let r=t.substring(2);r.length%2&&("left"===e.hexPad?r="0"+r:"right"===e.hexPad?r+="0":rg.throwArgumentError("hex data is odd-length","value",t));let n=[];for(let t=0;t<r.length;t+=2)n.push(parseInt(r.substring(t,t+2),16));return ry(new Uint8Array(n))}return rw(t)?ry(new Uint8Array(t)):rg.throwArgumentError("invalid arrayify value","value",t)}(t).length>r.width/8)throw Error("overflow");let n=rI.from(t);return r.signed&&(n=n.fromTwos(r.width)),new rV(rB,n.toTwos((r.signed?0:1)+r.width).toHexString(),rJ(n,r.decimals),r)}static from(t,e){if("string"==typeof t)return rV.fromString(t,e);if(rw(t))return rV.fromBytes(t,e);try{return rV.fromValue(t,0,e)}catch(t){if(t.code!==rm.errors.INVALID_ARGUMENT)throw t}return rF.throwArgumentError("invalid FixedNumber value","value",t)}static isFixedNumber(t){return!!(t&&t._isFixedNumber)}}let rX=rV.from(1),rq=rV.from("0.5"),rZ=!1,rK=!1,rW={debug:1,default:2,info:2,warning:3,error:4,off:5},rY=rW.default,rQ=null,r$=function(){try{let t=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test"!=="test".normalize(e))throw Error("bad normalize")}catch(r){t.push(e)}}),t.length)throw Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw Error("broken implementation")}catch(t){return t.message}return null}();(d=x||(x={})).DEBUG="DEBUG",d.INFO="INFO",d.WARNING="WARNING",d.ERROR="ERROR",d.OFF="OFF",(p=k||(k={})).UNKNOWN_ERROR="UNKNOWN_ERROR",p.NOT_IMPLEMENTED="NOT_IMPLEMENTED",p.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",p.NETWORK_ERROR="NETWORK_ERROR",p.SERVER_ERROR="SERVER_ERROR",p.TIMEOUT="TIMEOUT",p.BUFFER_OVERRUN="BUFFER_OVERRUN",p.NUMERIC_FAULT="NUMERIC_FAULT",p.MISSING_NEW="MISSING_NEW",p.INVALID_ARGUMENT="INVALID_ARGUMENT",p.MISSING_ARGUMENT="MISSING_ARGUMENT",p.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",p.CALL_EXCEPTION="CALL_EXCEPTION",p.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",p.NONCE_EXPIRED="NONCE_EXPIRED",p.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",p.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",p.TRANSACTION_REPLACED="TRANSACTION_REPLACED",p.ACTION_REJECTED="ACTION_REJECTED";let r0="0123456789abcdef";class r1{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){let r=t.toLowerCase();null==rW[r]&&this.throwArgumentError("invalid log level name","logLevel",t),rY>rW[r]||console.log.apply(console,e)}debug(...t){this._log(r1.levels.DEBUG,t)}info(...t){this._log(r1.levels.INFO,t)}warn(...t){this._log(r1.levels.WARNING,t)}makeError(t,e,r){if(rK)return this.makeError("censored error",e,{});e||(e=r1.errors.UNKNOWN_ERROR),r||(r={});let n=[];Object.keys(r).forEach(t=>{let e=r[t];try{if(e instanceof Uint8Array){let r="";for(let t=0;t<e.length;t++)r+=r0[e[t]>>4]+r0[15&e[t]];n.push(t+"=Uint8Array(0x"+r+")")}else n.push(t+"="+JSON.stringify(e))}catch(e){n.push(t+"="+JSON.stringify(r[t].toString()))}}),n.push(`code=${e}`),n.push(`version=${this.version}`);let i=t,f="";switch(e){case k.NUMERIC_FAULT:{f="NUMERIC_FAULT";let e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":f+="-"+e;break;case"negative-power":case"negative-width":f+="-unsupported";break;case"unbound-bitwise-result":f+="-unbound-result"}break}case k.CALL_EXCEPTION:case k.INSUFFICIENT_FUNDS:case k.MISSING_NEW:case k.NONCE_EXPIRED:case k.REPLACEMENT_UNDERPRICED:case k.TRANSACTION_REPLACED:case k.UNPREDICTABLE_GAS_LIMIT:f=e}f&&(t+=" [ See: https://links.ethers.org/v5-errors-"+f+" ]"),n.length&&(t+=" ("+n.join(", ")+")");let o=Error(t);return o.reason=i,o.code=e,Object.keys(r).forEach(function(t){o[t]=r[t]}),o}throwError(t,e,r){throw this.makeError(t,e,r)}throwArgumentError(t,e,r){return this.throwError(t,r1.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"),r$&&this.throwError("platform missing String.prototype.normalize",r1.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:r$})}checkSafeUint53(t,e){"number"==typeof t&&(null==e&&(e="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(e,r1.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(e,r1.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,e,r){r=r?": "+r:"",t<e&&this.throwError("missing argument"+r,r1.errors.MISSING_ARGUMENT,{count:t,expectedCount:e}),t>e&&this.throwError("too many arguments"+r,r1.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:e})}checkNew(t,e){(t===Object||null==t)&&this.throwError("missing new",r1.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",r1.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):(t===Object||null==t)&&this.throwError("missing new",r1.errors.MISSING_NEW,{name:e.name})}static globalLogger(){return rQ||(rQ=new r1("logger/5.7.0")),rQ}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",r1.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),rZ){if(!t)return;this.globalLogger().throwError("error censorship permanent",r1.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}rK=!!t,rZ=!!e}static setLogLevel(t){let e=rW[t.toLowerCase()];if(null==e){r1.globalLogger().warn("invalid log level - "+t);return}rY=e}static from(t){return new r1(t)}}function r6(t,e,r){Object.defineProperty(t,e,{enumerable:!0,value:r,writable:!1})}function r5(t){var e,r,n,i;return e=this,r=void 0,n=void 0,i=function*(){let e=Object.keys(t).map(e=>Promise.resolve(t[e]).then(t=>({key:e,value:t})));return(yield Promise.all(e)).reduce((t,e)=>(t[e.key]=e.value,t),{})},new(n||(n=Promise))(function(t,f){function o(t){try{s(i.next(t))}catch(t){f(t)}}function a(t){try{s(i.throw(t))}catch(t){f(t)}}function s(e){var r;e.done?t(e.value):((r=e.value)instanceof n?r:new n(function(t){t(r)})).then(o,a)}s((i=i.apply(e,r||[])).next())})}r1.errors=k,r1.levels=x,new r1("properties/5.7.0");var r2=function(t,e,r,n){return new(r||(r=Promise))(function(i,f){function o(t){try{s(n.next(t))}catch(t){f(t)}}function a(t){try{s(n.throw(t))}catch(t){f(t)}}function s(t){var e;t.done?i(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(o,a)}s((n=n.apply(t,e||[])).next())})};let r8=new r1("abstract-signer/5.4.1"),r3=["accessList","chainId","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],r4=[r1.errors.INSUFFICIENT_FUNDS,r1.errors.NONCE_EXPIRED,r1.errors.REPLACEMENT_UNDERPRICED];class r9{constructor(){r8.checkAbstract(new.target,r9),r6(this,"_isSigner",!0)}getBalance(t){return r2(this,void 0,void 0,function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),t)})}getTransactionCount(t){return r2(this,void 0,void 0,function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),t)})}estimateGas(t){return r2(this,void 0,void 0,function*(){this._checkProvider("estimateGas");let e=yield r5(this.checkTransaction(t));return yield this.provider.estimateGas(e)})}call(t,e){return r2(this,void 0,void 0,function*(){this._checkProvider("call");let r=yield r5(this.checkTransaction(t));return yield this.provider.call(r,e)})}sendTransaction(t){return r2(this,void 0,void 0,function*(){this._checkProvider("sendTransaction");let e=yield this.populateTransaction(t),r=yield this.signTransaction(e);return yield this.provider.sendTransaction(r)})}getChainId(){return r2(this,void 0,void 0,function*(){return this._checkProvider("getChainId"),(yield this.provider.getNetwork()).chainId})}getGasPrice(){return r2(this,void 0,void 0,function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()})}getFeeData(){return r2(this,void 0,void 0,function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()})}resolveName(t){return r2(this,void 0,void 0,function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(t)})}checkTransaction(t){for(let e in t)-1===r3.indexOf(e)&&r8.throwArgumentError("invalid transaction key: "+e,"transaction",t);let e=function(t){let e={};for(let r in t)e[r]=t[r];return e}(t);return null==e.from?e.from=this.getAddress():e.from=Promise.all([Promise.resolve(e.from),this.getAddress()]).then(e=>(e[0].toLowerCase()!==e[1].toLowerCase()&&r8.throwArgumentError("from address mismatch","transaction",t),e[0])),e}populateTransaction(t){return r2(this,void 0,void 0,function*(){let e=yield r5(this.checkTransaction(t));null!=e.to&&(e.to=Promise.resolve(e.to).then(t=>r2(this,void 0,void 0,function*(){if(null==t)return null;let e=yield this.resolveName(t);return null==e&&r8.throwArgumentError("provided ENS name resolves to null","tx.to",t),e})),e.to.catch(t=>{}));let r=null!=e.maxFeePerGas||null!=e.maxPriorityFeePerGas;if(null!=e.gasPrice&&(2===e.type||r)?r8.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",t):(0===e.type||1===e.type)&&r&&r8.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",t),(2===e.type||null==e.type)&&null!=e.maxFeePerGas&&null!=e.maxPriorityFeePerGas)e.type=2;else if(0===e.type||1===e.type)null==e.gasPrice&&(e.gasPrice=this.getGasPrice());else{let t=yield this.getFeeData();if(null==e.type){if(null!=t.maxFeePerGas&&null!=t.maxPriorityFeePerGas){if(e.type=2,null!=e.gasPrice){let t=e.gasPrice;delete e.gasPrice,e.maxFeePerGas=t,e.maxPriorityFeePerGas=t}else null==e.maxFeePerGas&&(e.maxFeePerGas=t.maxFeePerGas),null==e.maxPriorityFeePerGas&&(e.maxPriorityFeePerGas=t.maxPriorityFeePerGas)}else null!=t.gasPrice?(r&&r8.throwError("network does not support EIP-1559",r1.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),null==e.gasPrice&&(e.gasPrice=t.gasPrice),e.type=0):r8.throwError("failed to get consistent fee data",r1.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"})}else 2===e.type&&(null==e.maxFeePerGas&&(e.maxFeePerGas=t.maxFeePerGas),null==e.maxPriorityFeePerGas&&(e.maxPriorityFeePerGas=t.maxPriorityFeePerGas))}return null==e.nonce&&(e.nonce=this.getTransactionCount("pending")),null==e.gasLimit&&(e.gasLimit=this.estimateGas(e).catch(t=>{if(r4.indexOf(t.code)>=0)throw t;return r8.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",r1.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,tx:e})})),null==e.chainId?e.chainId=this.getChainId():e.chainId=Promise.all([Promise.resolve(e.chainId),this.getChainId()]).then(e=>(0!==e[1]&&e[0]!==e[1]&&r8.throwArgumentError("chainId address mismatch","transaction",t),e[0])),yield r5(e)})}_checkProvider(t){this.provider||r8.throwError("missing provider",r1.errors.UNSUPPORTED_OPERATION,{operation:t||"_checkProvider"})}static isSigner(t){return!!(t&&t._isSigner)}}class r7 extends r9{constructor(t,e){r8.checkNew(new.target,r7),super(),r6(this,"address",t),r6(this,"provider",e||null)}getAddress(){return Promise.resolve(this.address)}_fail(t,e){return Promise.resolve().then(()=>{r8.throwError(t,r1.errors.UNSUPPORTED_OPERATION,{operation:e})})}signMessage(t){return this._fail("VoidSigner cannot sign messages","signMessage")}signTransaction(t){return this._fail("VoidSigner cannot sign transactions","signTransaction")}_signTypedData(t,e,r){return this._fail("VoidSigner cannot sign typed data","signTypedData")}connect(t){return new r7(this.address,t)}}var nt=r(72086);let ne="0x0000000000000000000000000000000000000000";var nr=r(52988),nn=r.n(nr);let ni=!1,nf=!1,no={debug:1,default:2,info:2,warning:3,error:4,off:5},na=no.default,ns=null,nu=function(){try{let t=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test"!=="test".normalize(e))throw Error("bad normalize")}catch(r){t.push(e)}}),t.length)throw Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw Error("broken implementation")}catch(t){return t.message}return null}();(m=F||(F={})).DEBUG="DEBUG",m.INFO="INFO",m.WARNING="WARNING",m.ERROR="ERROR",m.OFF="OFF",(g=B||(B={})).UNKNOWN_ERROR="UNKNOWN_ERROR",g.NOT_IMPLEMENTED="NOT_IMPLEMENTED",g.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",g.NETWORK_ERROR="NETWORK_ERROR",g.SERVER_ERROR="SERVER_ERROR",g.TIMEOUT="TIMEOUT",g.BUFFER_OVERRUN="BUFFER_OVERRUN",g.NUMERIC_FAULT="NUMERIC_FAULT",g.MISSING_NEW="MISSING_NEW",g.INVALID_ARGUMENT="INVALID_ARGUMENT",g.MISSING_ARGUMENT="MISSING_ARGUMENT",g.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",g.CALL_EXCEPTION="CALL_EXCEPTION",g.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",g.NONCE_EXPIRED="NONCE_EXPIRED",g.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",g.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",g.TRANSACTION_REPLACED="TRANSACTION_REPLACED",g.ACTION_REJECTED="ACTION_REJECTED";let nl="0123456789abcdef";class nh{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){let r=t.toLowerCase();null==no[r]&&this.throwArgumentError("invalid log level name","logLevel",t),na>no[r]||console.log.apply(console,e)}debug(...t){this._log(nh.levels.DEBUG,t)}info(...t){this._log(nh.levels.INFO,t)}warn(...t){this._log(nh.levels.WARNING,t)}makeError(t,e,r){if(nf)return this.makeError("censored error",e,{});e||(e=nh.errors.UNKNOWN_ERROR),r||(r={});let n=[];Object.keys(r).forEach(t=>{let e=r[t];try{if(e instanceof Uint8Array){let r="";for(let t=0;t<e.length;t++)r+=nl[e[t]>>4]+nl[15&e[t]];n.push(t+"=Uint8Array(0x"+r+")")}else n.push(t+"="+JSON.stringify(e))}catch(e){n.push(t+"="+JSON.stringify(r[t].toString()))}}),n.push(`code=${e}`),n.push(`version=${this.version}`);let i=t,f="";switch(e){case B.NUMERIC_FAULT:{f="NUMERIC_FAULT";let e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":f+="-"+e;break;case"negative-power":case"negative-width":f+="-unsupported";break;case"unbound-bitwise-result":f+="-unbound-result"}break}case B.CALL_EXCEPTION:case B.INSUFFICIENT_FUNDS:case B.MISSING_NEW:case B.NONCE_EXPIRED:case B.REPLACEMENT_UNDERPRICED:case B.TRANSACTION_REPLACED:case B.UNPREDICTABLE_GAS_LIMIT:f=e}f&&(t+=" [ See: https://links.ethers.org/v5-errors-"+f+" ]"),n.length&&(t+=" ("+n.join(", ")+")");let o=Error(t);return o.reason=i,o.code=e,Object.keys(r).forEach(function(t){o[t]=r[t]}),o}throwError(t,e,r){throw this.makeError(t,e,r)}throwArgumentError(t,e,r){return this.throwError(t,nh.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"),nu&&this.throwError("platform missing String.prototype.normalize",nh.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:nu})}checkSafeUint53(t,e){"number"==typeof t&&(null==e&&(e="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(e,nh.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(e,nh.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,e,r){r=r?": "+r:"",t<e&&this.throwError("missing argument"+r,nh.errors.MISSING_ARGUMENT,{count:t,expectedCount:e}),t>e&&this.throwError("too many arguments"+r,nh.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:e})}checkNew(t,e){(t===Object||null==t)&&this.throwError("missing new",nh.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",nh.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):(t===Object||null==t)&&this.throwError("missing new",nh.errors.MISSING_NEW,{name:e.name})}static globalLogger(){return ns||(ns=new nh("logger/5.7.0")),ns}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",nh.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),ni){if(!t)return;this.globalLogger().throwError("error censorship permanent",nh.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}nf=!!t,ni=!!e}static setLogLevel(t){let e=no[t.toLowerCase()];if(null==e){nh.globalLogger().warn("invalid log level - "+t);return}na=e}static from(t){return new nh(t)}}nh.errors=B,nh.levels=F;let nc=new nh("bytes/5.7.0");function nd(t){return"number"==typeof t&&t==t&&t%1==0}function np(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"==typeof t||!nd(t.length)||t.length<0)return!1;for(let e=0;e<t.length;e++){let r=t[e];if(!nd(r)||r<0||r>=256)return!1}return!0}function nm(t,e){return"string"==typeof t&&!!t.match(/^0x[0-9A-Fa-f]*$/)&&(!e||t.length===2+2*e)}let ng="0123456789abcdef";var nb=nn().BN;let ny=new nh("bignumber/5.7.0"),nv={},nw=!1;class nM{constructor(t,e){t!==nv&&ny.throwError("cannot call constructor directly; use BigNumber.from",nh.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=e,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return nA(nS(this).fromTwos(t))}toTwos(t){return nA(nS(this).toTwos(t))}abs(){return"-"===this._hex[0]?nM.from(this._hex.substring(1)):this}add(t){return nA(nS(this).add(nS(t)))}sub(t){return nA(nS(this).sub(nS(t)))}div(t){return nM.from(t).isZero()&&n_("division-by-zero","div"),nA(nS(this).div(nS(t)))}mul(t){return nA(nS(this).mul(nS(t)))}mod(t){let e=nS(t);return e.isNeg()&&n_("division-by-zero","mod"),nA(nS(this).umod(e))}pow(t){let e=nS(t);return e.isNeg()&&n_("negative-power","pow"),nA(nS(this).pow(e))}and(t){let e=nS(t);return(this.isNegative()||e.isNeg())&&n_("unbound-bitwise-result","and"),nA(nS(this).and(e))}or(t){let e=nS(t);return(this.isNegative()||e.isNeg())&&n_("unbound-bitwise-result","or"),nA(nS(this).or(e))}xor(t){let e=nS(t);return(this.isNegative()||e.isNeg())&&n_("unbound-bitwise-result","xor"),nA(nS(this).xor(e))}mask(t){return(this.isNegative()||t<0)&&n_("negative-width","mask"),nA(nS(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&n_("negative-width","shl"),nA(nS(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&n_("negative-width","shr"),nA(nS(this).shrn(t))}eq(t){return nS(this).eq(nS(t))}lt(t){return nS(this).lt(nS(t))}lte(t){return nS(this).lte(nS(t))}gt(t){return nS(this).gt(nS(t))}gte(t){return nS(this).gte(nS(t))}isNegative(){return"-"===this._hex[0]}isZero(){return nS(this).isZero()}toNumber(){try{return nS(this).toNumber()}catch(t){n_("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(t){}return ny.throwError("this platform does not support BigInt",nh.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?nw||(nw=!0,ny.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?ny.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",nh.errors.UNEXPECTED_ARGUMENT,{}):ny.throwError("BigNumber.toString does not accept parameters",nh.errors.UNEXPECTED_ARGUMENT,{})),nS(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof nM)return t;if("string"==typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new nM(nv,nE(t)):t.match(/^-?[0-9]+$/)?new nM(nv,nE(new nb(t))):ny.throwArgumentError("invalid BigNumber string","value",t);if("number"==typeof t)return t%1&&n_("underflow","BigNumber.from",t),(t>=9007199254740991||t<=-9007199254740991)&&n_("overflow","BigNumber.from",t),nM.from(String(t));if("bigint"==typeof t)return nM.from(t.toString());if(np(t))return nM.from(function(t,e){if(e||(e={}),"number"==typeof t){nc.checkSafeUint53(t,"invalid hexlify value");let e="";for(;t;)e=ng[15&t]+e,t=Math.floor(t/16);return e.length?(e.length%2&&(e="0"+e),"0x"+e):"0x00"}if("bigint"==typeof t)return(t=t.toString(16)).length%2?"0x0"+t:"0x"+t;if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),t.toHexString)return t.toHexString();if(nm(t))return t.length%2&&("left"===e.hexPad?t="0x0"+t.substring(2):"right"===e.hexPad?t+="0":nc.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(np(t)){let e="0x";for(let r=0;r<t.length;r++){let n=t[r];e+=ng[(240&n)>>4]+ng[15&n]}return e}return nc.throwArgumentError("invalid hexlify value","value",t)}(t));if(t){if(t.toHexString){let e=t.toHexString();if("string"==typeof e)return nM.from(e)}else{let e=t._hex;if(null==e&&"BigNumber"===t.type&&(e=t.hex),"string"==typeof e&&(nm(e)||"-"===e[0]&&nm(e.substring(1))))return nM.from(e)}}return ny.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!!(t&&t._isBigNumber)}}function nE(t){if("string"!=typeof t)return nE(t.toString(16));if("-"===t[0])return("-"===(t=t.substring(1))[0]&&ny.throwArgumentError("invalid hex","value",t),"0x00"===(t=nE(t)))?t:"-"+t;if("0x"!==t.substring(0,2)&&(t="0x"+t),"0x"===t)return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&"0x00"===t.substring(0,4);)t="0x"+t.substring(4);return t}function nA(t){return nM.from(nE(t))}function nS(t){let e=nM.from(t).toHexString();return"-"===e[0]?new nb("-"+e.substring(3),16):new nb(e.substring(2),16)}function n_(t,e,r){let n={fault:t,operation:e};return null!=r&&(n.value=r),ny.throwError(t,nh.errors.NUMERIC_FAULT,n)}let nN=nM.from(-1),nT=nM.from(0),nR=nM.from(1),nC=nM.from(2),nI=nM.from("1000000000000000000"),nP=nM.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),nO=nM.from("-0x8000000000000000000000000000000000000000000000000000000000000000"),nx=nM.from("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),nk="0x0000000000000000000000000000000000000000000000000000000000000000",nF="Ξ";var nB=r(93860),nL=r.n(nB);let nD=!1,nU=!1,nG={debug:1,default:2,info:2,warning:3,error:4,off:5},nz=nG.default,nJ=null,nj=function(){try{let t=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test"!=="test".normalize(e))throw Error("bad normalize")}catch(r){t.push(e)}}),t.length)throw Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw Error("broken implementation")}catch(t){return t.message}return null}();(b=L||(L={})).DEBUG="DEBUG",b.INFO="INFO",b.WARNING="WARNING",b.ERROR="ERROR",b.OFF="OFF",(y=D||(D={})).UNKNOWN_ERROR="UNKNOWN_ERROR",y.NOT_IMPLEMENTED="NOT_IMPLEMENTED",y.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",y.NETWORK_ERROR="NETWORK_ERROR",y.SERVER_ERROR="SERVER_ERROR",y.TIMEOUT="TIMEOUT",y.BUFFER_OVERRUN="BUFFER_OVERRUN",y.NUMERIC_FAULT="NUMERIC_FAULT",y.MISSING_NEW="MISSING_NEW",y.INVALID_ARGUMENT="INVALID_ARGUMENT",y.MISSING_ARGUMENT="MISSING_ARGUMENT",y.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",y.CALL_EXCEPTION="CALL_EXCEPTION",y.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",y.NONCE_EXPIRED="NONCE_EXPIRED",y.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",y.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",y.TRANSACTION_REPLACED="TRANSACTION_REPLACED",y.ACTION_REJECTED="ACTION_REJECTED";let nH="0123456789abcdef";class nV{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){let r=t.toLowerCase();null==nG[r]&&this.throwArgumentError("invalid log level name","logLevel",t),nz>nG[r]||console.log.apply(console,e)}debug(...t){this._log(nV.levels.DEBUG,t)}info(...t){this._log(nV.levels.INFO,t)}warn(...t){this._log(nV.levels.WARNING,t)}makeError(t,e,r){if(nU)return this.makeError("censored error",e,{});e||(e=nV.errors.UNKNOWN_ERROR),r||(r={});let n=[];Object.keys(r).forEach(t=>{let e=r[t];try{if(e instanceof Uint8Array){let r="";for(let t=0;t<e.length;t++)r+=nH[e[t]>>4]+nH[15&e[t]];n.push(t+"=Uint8Array(0x"+r+")")}else n.push(t+"="+JSON.stringify(e))}catch(e){n.push(t+"="+JSON.stringify(r[t].toString()))}}),n.push(`code=${e}`),n.push(`version=${this.version}`);let i=t,f="";switch(e){case D.NUMERIC_FAULT:{f="NUMERIC_FAULT";let e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":f+="-"+e;break;case"negative-power":case"negative-width":f+="-unsupported";break;case"unbound-bitwise-result":f+="-unbound-result"}break}case D.CALL_EXCEPTION:case D.INSUFFICIENT_FUNDS:case D.MISSING_NEW:case D.NONCE_EXPIRED:case D.REPLACEMENT_UNDERPRICED:case D.TRANSACTION_REPLACED:case D.UNPREDICTABLE_GAS_LIMIT:f=e}f&&(t+=" [ See: https://links.ethers.org/v5-errors-"+f+" ]"),n.length&&(t+=" ("+n.join(", ")+")");let o=Error(t);return o.reason=i,o.code=e,Object.keys(r).forEach(function(t){o[t]=r[t]}),o}throwError(t,e,r){throw this.makeError(t,e,r)}throwArgumentError(t,e,r){return this.throwError(t,nV.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"),nj&&this.throwError("platform missing String.prototype.normalize",nV.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:nj})}checkSafeUint53(t,e){"number"==typeof t&&(null==e&&(e="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(e,nV.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(e,nV.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,e,r){r=r?": "+r:"",t<e&&this.throwError("missing argument"+r,nV.errors.MISSING_ARGUMENT,{count:t,expectedCount:e}),t>e&&this.throwError("too many arguments"+r,nV.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:e})}checkNew(t,e){(t===Object||null==t)&&this.throwError("missing new",nV.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",nV.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):(t===Object||null==t)&&this.throwError("missing new",nV.errors.MISSING_NEW,{name:e.name})}static globalLogger(){return nJ||(nJ=new nV("logger/5.7.0")),nJ}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",nV.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),nD){if(!t)return;this.globalLogger().throwError("error censorship permanent",nV.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}nU=!!t,nD=!!e}static setLogLevel(t){let e=nG[t.toLowerCase()];if(null==e){nV.globalLogger().warn("invalid log level - "+t);return}nz=e}static from(t){return new nV(t)}}nV.errors=D,nV.levels=L;let nX=new nV("bytes/5.7.0");function nq(t){return!!t.toHexString}function nZ(t){return t.slice||(t.slice=function(){let e=Array.prototype.slice.call(arguments);return nZ(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function nK(t){return n1(t)&&!(t.length%2)||nY(t)}function nW(t){return"number"==typeof t&&t==t&&t%1==0}function nY(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"==typeof t||!nW(t.length)||t.length<0)return!1;for(let e=0;e<t.length;e++){let r=t[e];if(!nW(r)||r<0||r>=256)return!1}return!0}function nQ(t,e){if(e||(e={}),"number"==typeof t){nX.checkSafeUint53(t,"invalid arrayify value");let e=[];for(;t;)e.unshift(255&t),t=parseInt(String(t/256));return 0===e.length&&e.push(0),nZ(new Uint8Array(e))}if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),nq(t)&&(t=t.toHexString()),n1(t)){let r=t.substring(2);r.length%2&&("left"===e.hexPad?r="0"+r:"right"===e.hexPad?r+="0":nX.throwArgumentError("hex data is odd-length","value",t));let n=[];for(let t=0;t<r.length;t+=2)n.push(parseInt(r.substring(t,t+2),16));return nZ(new Uint8Array(n))}return nY(t)?nZ(new Uint8Array(t)):nX.throwArgumentError("invalid arrayify value","value",t)}function n$(t){let e=t.map(t=>nQ(t)),r=new Uint8Array(e.reduce((t,e)=>t+e.length,0));return e.reduce((t,e)=>(r.set(e,t),t+e.length),0),nZ(r)}function n0(t){let e=nQ(t);if(0===e.length)return e;let r=0;for(;r<e.length&&0===e[r];)r++;return r&&(e=e.slice(r)),e}function n1(t,e){return"string"==typeof t&&!!t.match(/^0x[0-9A-Fa-f]*$/)&&(!e||t.length===2+2*e)}let n6="0123456789abcdef";function n5(t,e){if(e||(e={}),"number"==typeof t){nX.checkSafeUint53(t,"invalid hexlify value");let e="";for(;t;)e=n6[15&t]+e,t=Math.floor(t/16);return e.length?(e.length%2&&(e="0"+e),"0x"+e):"0x00"}if("bigint"==typeof t)return(t=t.toString(16)).length%2?"0x0"+t:"0x"+t;if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),nq(t))return t.toHexString();if(n1(t))return t.length%2&&("left"===e.hexPad?t="0x0"+t.substring(2):"right"===e.hexPad?t+="0":nX.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(nY(t)){let e="0x";for(let r=0;r<t.length;r++){let n=t[r];e+=n6[(240&n)>>4]+n6[15&n]}return e}return nX.throwArgumentError("invalid hexlify value","value",t)}function n2(t){if("string"!=typeof t)t=n5(t);else if(!n1(t)||t.length%2)return null;return(t.length-2)/2}function n8(t,e,r){return("string"!=typeof t?t=n5(t):(!n1(t)||t.length%2)&&nX.throwArgumentError("invalid hexData","value",t),e=2+2*e,null!=r)?"0x"+t.substring(e,2+2*r):"0x"+t.substring(e)}function n3(t){let e="0x";return t.forEach(t=>{e+=n5(t).substring(2)}),e}function n4(t){let e=function(t){"string"!=typeof t&&(t=n5(t)),n1(t)||nX.throwArgumentError("invalid hex string","value",t),t=t.substring(2);let e=0;for(;e<t.length&&"0"===t[e];)e++;return"0x"+t.substring(e)}(n5(t,{hexPad:"left"}));return"0x"===e?"0x0":e}function n9(t,e){for("string"!=typeof t?t=n5(t):n1(t)||nX.throwArgumentError("invalid hex string","value",t),t.length>2*e+2&&nX.throwArgumentError("value out of range","value",arguments[1]);t.length<2*e+2;)t="0x0"+t.substring(2);return t}function n7(t){let e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(nK(t)){let r=nQ(t);64===r.length?(e.v=27+(r[32]>>7),r[32]&=127,e.r=n5(r.slice(0,32)),e.s=n5(r.slice(32,64))):65===r.length?(e.r=n5(r.slice(0,32)),e.s=n5(r.slice(32,64)),e.v=r[64]):nX.throwArgumentError("invalid signature string","signature",t),e.v<27&&(0===e.v||1===e.v?e.v+=27:nX.throwArgumentError("signature invalid v byte","signature",t)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(r[32]|=128),e._vs=n5(r.slice(32,64))}else{if(e.r=t.r,e.s=t.s,e.v=t.v,e.recoveryParam=t.recoveryParam,e._vs=t._vs,null!=e._vs){let r=function(t,e){(t=nQ(t)).length>e&&nX.throwArgumentError("value out of range","value",arguments[0]);let r=new Uint8Array(e);return r.set(t,e-t.length),nZ(r)}(nQ(e._vs),32);e._vs=n5(r);let n=r[0]>=128?1:0;null==e.recoveryParam?e.recoveryParam=n:e.recoveryParam!==n&&nX.throwArgumentError("signature recoveryParam mismatch _vs","signature",t),r[0]&=127;let i=n5(r);null==e.s?e.s=i:e.s!==i&&nX.throwArgumentError("signature v mismatch _vs","signature",t)}if(null==e.recoveryParam)null==e.v?nX.throwArgumentError("signature missing v and recoveryParam","signature",t):0===e.v||1===e.v?e.recoveryParam=e.v:e.recoveryParam=1-e.v%2;else if(null==e.v)e.v=27+e.recoveryParam;else{let r=0===e.v||1===e.v?e.v:1-e.v%2;e.recoveryParam!==r&&nX.throwArgumentError("signature recoveryParam mismatch v","signature",t)}null!=e.r&&n1(e.r)?e.r=n9(e.r,32):nX.throwArgumentError("signature missing or invalid r","signature",t),null!=e.s&&n1(e.s)?e.s=n9(e.s,32):nX.throwArgumentError("signature missing or invalid s","signature",t);let r=nQ(e.s);r[0]>=128&&nX.throwArgumentError("signature s out of range","signature",t),e.recoveryParam&&(r[0]|=128);let n=n5(r);e._vs&&(n1(e._vs)||nX.throwArgumentError("signature invalid _vs","signature",t),e._vs=n9(e._vs,32)),null==e._vs?e._vs=n:e._vs!==n&&nX.throwArgumentError("signature _vs mismatch v and s","signature",t)}return e.yParityAndS=e._vs,e.compact=e.r+e.yParityAndS.substring(2),e}var it=nL().BN;let ie=new nV("bignumber/5.7.0"),ir={},ii=!1;class io{constructor(t,e){t!==ir&&ie.throwError("cannot call constructor directly; use BigNumber.from",nV.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=e,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return is(iu(this).fromTwos(t))}toTwos(t){return is(iu(this).toTwos(t))}abs(){return"-"===this._hex[0]?io.from(this._hex.substring(1)):this}add(t){return is(iu(this).add(iu(t)))}sub(t){return is(iu(this).sub(iu(t)))}div(t){return io.from(t).isZero()&&il("division-by-zero","div"),is(iu(this).div(iu(t)))}mul(t){return is(iu(this).mul(iu(t)))}mod(t){let e=iu(t);return e.isNeg()&&il("division-by-zero","mod"),is(iu(this).umod(e))}pow(t){let e=iu(t);return e.isNeg()&&il("negative-power","pow"),is(iu(this).pow(e))}and(t){let e=iu(t);return(this.isNegative()||e.isNeg())&&il("unbound-bitwise-result","and"),is(iu(this).and(e))}or(t){let e=iu(t);return(this.isNegative()||e.isNeg())&&il("unbound-bitwise-result","or"),is(iu(this).or(e))}xor(t){let e=iu(t);return(this.isNegative()||e.isNeg())&&il("unbound-bitwise-result","xor"),is(iu(this).xor(e))}mask(t){return(this.isNegative()||t<0)&&il("negative-width","mask"),is(iu(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&il("negative-width","shl"),is(iu(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&il("negative-width","shr"),is(iu(this).shrn(t))}eq(t){return iu(this).eq(iu(t))}lt(t){return iu(this).lt(iu(t))}lte(t){return iu(this).lte(iu(t))}gt(t){return iu(this).gt(iu(t))}gte(t){return iu(this).gte(iu(t))}isNegative(){return"-"===this._hex[0]}isZero(){return iu(this).isZero()}toNumber(){try{return iu(this).toNumber()}catch(t){il("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(t){}return ie.throwError("this platform does not support BigInt",nV.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?ii||(ii=!0,ie.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?ie.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",nV.errors.UNEXPECTED_ARGUMENT,{}):ie.throwError("BigNumber.toString does not accept parameters",nV.errors.UNEXPECTED_ARGUMENT,{})),iu(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof io)return t;if("string"==typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new io(ir,ia(t)):t.match(/^-?[0-9]+$/)?new io(ir,ia(new it(t))):ie.throwArgumentError("invalid BigNumber string","value",t);if("number"==typeof t)return t%1&&il("underflow","BigNumber.from",t),(t>=9007199254740991||t<=-9007199254740991)&&il("overflow","BigNumber.from",t),io.from(String(t));if("bigint"==typeof t)return io.from(t.toString());if(nY(t))return io.from(n5(t));if(t){if(t.toHexString){let e=t.toHexString();if("string"==typeof e)return io.from(e)}else{let e=t._hex;if(null==e&&"BigNumber"===t.type&&(e=t.hex),"string"==typeof e&&(n1(e)||"-"===e[0]&&n1(e.substring(1))))return io.from(e)}}return ie.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!!(t&&t._isBigNumber)}}function ia(t){if("string"!=typeof t)return ia(t.toString(16));if("-"===t[0])return("-"===(t=t.substring(1))[0]&&ie.throwArgumentError("invalid hex","value",t),"0x00"===(t=ia(t)))?t:"-"+t;if("0x"!==t.substring(0,2)&&(t="0x"+t),"0x"===t)return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&"0x00"===t.substring(0,4);)t="0x"+t.substring(4);return t}function is(t){return io.from(ia(t))}function iu(t){let e=io.from(t).toHexString();return"-"===e[0]?new it("-"+e.substring(3),16):new it(e.substring(2),16)}function il(t,e,r){let n={fault:t,operation:e};return null!=r&&(n.value=r),ie.throwError(t,nV.errors.NUMERIC_FAULT,n)}let ih=new nV("properties/5.7.0");function ic(t,e,r){Object.defineProperty(t,e,{enumerable:!0,value:r,writable:!1})}function id(t,e){for(let r=0;r<32;r++){if(t[e])return t[e];if(!t.prototype||"object"!=typeof t.prototype)break;t=Object.getPrototypeOf(t.prototype).constructor}return null}function ip(t){var e,r,n,i;return e=this,r=void 0,n=void 0,i=function*(){let e=Object.keys(t).map(e=>Promise.resolve(t[e]).then(t=>({key:e,value:t})));return(yield Promise.all(e)).reduce((t,e)=>(t[e.key]=e.value,t),{})},new(n||(n=Promise))(function(t,f){function o(t){try{s(i.next(t))}catch(t){f(t)}}function a(t){try{s(i.throw(t))}catch(t){f(t)}}function s(e){var r;e.done?t(e.value):((r=e.value)instanceof n?r:new n(function(t){t(r)})).then(o,a)}s((i=i.apply(e,r||[])).next())})}function im(t){let e={};for(let r in t)e[r]=t[r];return e}let ig={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function ib(t){return function(t){if(function t(e){if(null==e||ig[typeof e])return!0;if(Array.isArray(e)||"object"==typeof e){if(!Object.isFrozen(e))return!1;let r=Object.keys(e);for(let n=0;n<r.length;n++){let i=null;try{i=e[r[n]]}catch(t){continue}if(!t(i))return!1}return!0}return ih.throwArgumentError(`Cannot deepCopy ${typeof e}`,"object",e)}(t))return t;if(Array.isArray(t))return Object.freeze(t.map(t=>ib(t)));if("object"==typeof t){let e={};for(let r in t){let n=t[r];void 0!==n&&ic(e,r,ib(n))}return e}return ih.throwArgumentError(`Cannot deepCopy ${typeof t}`,"object",t)}(t)}class iy{constructor(t){for(let e in t)this[e]=ib(t[e])}}let iv=new nV("abstract-provider/5.7.0");class iw extends iy{static isForkEvent(t){return!!(t&&t._isForkEvent)}}class iM{constructor(){iv.checkAbstract(new.target,iM),ic(this,"_isProvider",!0)}getFeeData(){var t,e,r,n;return t=this,e=void 0,r=void 0,n=function*(){let{block:t,gasPrice:e}=yield ip({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch(t=>null)}),r=null,n=null,i=null;return t&&t.baseFeePerGas&&(r=t.baseFeePerGas,i=io.from("1500000000"),n=t.baseFeePerGas.mul(2).add(i)),{lastBaseFeePerGas:r,maxFeePerGas:n,maxPriorityFeePerGas:i,gasPrice:e}},new(r||(r=Promise))(function(i,f){function o(t){try{s(n.next(t))}catch(t){f(t)}}function a(t){try{s(n.throw(t))}catch(t){f(t)}}function s(t){var e;t.done?i(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(o,a)}s((n=n.apply(t,e||[])).next())})}addListener(t,e){return this.on(t,e)}removeListener(t,e){return this.off(t,e)}static isProvider(t){return!!(t&&t._isProvider)}}let iE=new nV("networks/5.7.1");function iA(t){let e=function(e,r){null==r&&(r={});let n=[];if(e.InfuraProvider&&"-"!==r.infura)try{n.push(new e.InfuraProvider(t,r.infura))}catch(t){}if(e.EtherscanProvider&&"-"!==r.etherscan)try{n.push(new e.EtherscanProvider(t,r.etherscan))}catch(t){}if(e.AlchemyProvider&&"-"!==r.alchemy)try{n.push(new e.AlchemyProvider(t,r.alchemy))}catch(t){}if(e.PocketProvider&&"-"!==r.pocket)try{let i=new e.PocketProvider(t,r.pocket);i.network&&-1===["goerli","ropsten","rinkeby","sepolia"].indexOf(i.network.name)&&n.push(i)}catch(t){}if(e.CloudflareProvider&&"-"!==r.cloudflare)try{n.push(new e.CloudflareProvider(t))}catch(t){}if(e.AnkrProvider&&"-"!==r.ankr)try{let i=new e.AnkrProvider(t,r.ankr);i.network&&-1===["ropsten"].indexOf(i.network.name)&&n.push(i)}catch(t){}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 iA(t)},e}function iS(t,e){let r=function(r,n){return r.JsonRpcProvider?new r.JsonRpcProvider(t,e):null};return r.renetwork=function(e){return iS(t,e)},r}let i_={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:iA("homestead")},iN={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:iA("ropsten")},iT={chainId:63,name:"classicMordor",_defaultProvider:iS("https://www.ethercluster.com/mordor","classicMordor")},iR={unspecified:{chainId:0,name:"unspecified"},homestead:i_,mainnet:i_,morden:{chainId:2,name:"morden"},ropsten:iN,testnet:iN,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:iA("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:iA("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:iA("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:iA("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:iS("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:iT,classicTestnet:iT,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:iS("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:iA("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:iA("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 iC(t){if(null==t)return null;if("number"==typeof t){for(let e in iR){let r=iR[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){let e=iR[t];return null==e?null:{name:e.name,chainId:e.chainId,ensAddress:e.ensAddress,_defaultProvider:e._defaultProvider||null}}let e=iR[t.name];if(!e)return"number"!=typeof t.chainId&&iE.throwArgumentError("invalid network chainId","network",t),t;0!==t.chainId&&t.chainId!==e.chainId&&iE.throwArgumentError("network chainId mismatch","network",t);let r=t._defaultProvider||null;if(null==r&&e._defaultProvider){var n;r=(n=e._defaultProvider)&&"function"==typeof n.renetwork?e._defaultProvider.renetwork(t):e._defaultProvider}return{name:t.name,chainId:e.chainId,ensAddress:t.ensAddress||e.ensAddress||null,_defaultProvider:r}}class iI{constructor(t){ic(this,"alphabet",t),ic(this,"base",t.length),ic(this,"_alphabetMap",{}),ic(this,"_leader",t.charAt(0));for(let e=0;e<t.length;e++)this._alphabetMap[t.charAt(e)]=e}encode(t){let e=nQ(t);if(0===e.length)return"";let r=[0];for(let t=0;t<e.length;++t){let n=e[t];for(let t=0;t<r.length;++t)n+=r[t]<<8,r[t]=n%this.base,n=n/this.base|0;for(;n>0;)r.push(n%this.base),n=n/this.base|0}let n="";for(let t=0;0===e[t]&&t<e.length-1;++t)n+=this._leader;for(let t=r.length-1;t>=0;--t)n+=this.alphabet[r[t]];return n}decode(t){if("string"!=typeof t)throw TypeError("Expected String");let e=[];if(0===t.length)return new Uint8Array(e);e.push(0);for(let r=0;r<t.length;r++){let n=this._alphabetMap[t[r]];if(void 0===n)throw Error("Non-base"+this.base+" character");let i=n;for(let t=0;t<e.length;++t)i+=e[t]*this.base,e[t]=255&i,i>>=8;for(;i>0;)e.push(255&i),i>>=8}for(let r=0;t[r]===this._leader&&r<t.length-1;++r)e.push(0);return nQ(new Uint8Array(e.reverse()))}}new iI("abcdefghijklmnopqrstuvwxyz234567");let iP=new iI("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),iO=new nV("strings/5.7.0");function ix(t,e,r,n,i){if(t===G.BAD_PREFIX||t===G.UNEXPECTED_CONTINUE){let t=0;for(let n=e+1;n<r.length&&r[n]>>6==2;n++)t++;return t}return t===G.OVERRUN?r.length-e-1:0}(v=U||(U={})).current="",v.NFC="NFC",v.NFD="NFD",v.NFKC="NFKC",v.NFKD="NFKD",(w=G||(G={})).UNEXPECTED_CONTINUE="unexpected continuation byte",w.BAD_PREFIX="bad codepoint prefix",w.OVERRUN="string overrun",w.MISSING_CONTINUE="missing continuation byte",w.OUT_OF_RANGE="out of UTF-8 range",w.UTF16_SURROGATE="UTF-16 surrogate",w.OVERLONG="overlong representation";let ik=Object.freeze({error:function(t,e,r,n,i){return iO.throwArgumentError(`invalid codepoint at offset ${e}; ${t}`,"bytes",r)},ignore:ix,replace:function(t,e,r,n,i){return t===G.OVERLONG?(n.push(i),0):(n.push(65533),ix(t,e,r,n,i))}});function iF(t,e){null==e&&(e=ik.error),t=nQ(t);let r=[],n=0;for(;n<t.length;){let i=t[n++];if(i>>7==0){r.push(i);continue}let f=null,o=null;if((224&i)==192)f=1,o=127;else if((240&i)==224)f=2,o=2047;else if((248&i)==240)f=3,o=65535;else{(192&i)==128?n+=e(G.UNEXPECTED_CONTINUE,n-1,t,r):n+=e(G.BAD_PREFIX,n-1,t,r);continue}if(n-1+f>=t.length){n+=e(G.OVERRUN,n-1,t,r);continue}let a=i&(1<<8-f-1)-1;for(let i=0;i<f;i++){let i=t[n];if((192&i)!=128){n+=e(G.MISSING_CONTINUE,n,t,r),a=null;break}a=a<<6|63&i,n++}if(null!==a){if(a>1114111){n+=e(G.OUT_OF_RANGE,n-1-f,t,r,a);continue}if(a>=55296&&a<=57343){n+=e(G.UTF16_SURROGATE,n-1-f,t,r,a);continue}if(a<=o){n+=e(G.OVERLONG,n-1-f,t,r,a);continue}r.push(a)}}return r}function iB(t,e=U.current){e!=U.current&&(iO.checkNormalize(),t=t.normalize(e));let r=[];for(let e=0;e<t.length;e++){let n=t.charCodeAt(e);if(n<128)r.push(n);else if(n<2048)r.push(n>>6|192),r.push(63&n|128);else if((64512&n)==55296){e++;let i=t.charCodeAt(e);if(e>=t.length||(64512&i)!=56320)throw Error("invalid utf-8 string");let f=65536+((1023&n)<<10)+(1023&i);r.push(f>>18|240),r.push(f>>12&63|128),r.push(f>>6&63|128),r.push(63&f|128)}else r.push(n>>12|224),r.push(n>>6&63|128),r.push(63&n|128)}return nQ(r)}function iL(t,e){return iF(t,e).map(t=>t<=65535?String.fromCharCode(t):String.fromCharCode(((t-=65536)>>10&1023)+55296,(1023&t)+56320)).join("")}var iD=r(572),iU=r.n(iD);function iG(t){return"0x"+iU().keccak_256(nQ(t))}let iz="hash/5.7.0";function iJ(t){t=atob(t);let e=[];for(let r=0;r<t.length;r++)e.push(t.charCodeAt(r));return nQ(e)}function ij(t,e){null==e&&(e=1);let r=[],n=r.forEach,i=function(t,e){n.call(t,function(t){e>0&&Array.isArray(t)?i(t,e-1):r.push(t)})};return i(t,e),r}function iH(t,e){let r=Array(t);for(let n=0,i=-1;n<t;n++)r[n]=i+=1+e();return r}function iV(t,e){let r=iH(t(),t),n=t(),i=iH(n,t),f=function(t,e){let r=Array(t);for(let n=0;n<t;n++)r[n]=1+e();return r}(n,t);for(let t=0;t<n;t++)for(let e=0;e<f[t];e++)r.push(i[t]+e);return e?r.map(t=>e[t]):r}function iX(t,e,r){let n=Array(t).fill(void 0).map(()=>[]);for(let i=0;i<e;i++)(function(t,e){let r=Array(t);for(let i=0,f=0;i<t;i++){var n;r[i]=f+=1&(n=e())?~n>>1:n>>1}return r})(t,r).forEach((t,e)=>n[e].push(t));return n}let iq=(f=function(t){let e=0;function r(){return t[e++]<<8|t[e++]}let n=r(),i=1,f=[0,1];for(let t=1;t<n;t++)f.push(i+=r());let o=r(),a=e;e+=o;let s=0,u=0;function l(){return 0==s&&(u=u<<8|t[e++],s=8),u>>--s&1}let h=0;for(let t=0;t<31;t++)h=h<<1|l();let c=[],d=0,p=2147483648;for(;;){let t=Math.floor(((h-d+1)*i-1)/p),e=0,r=n;for(;r-e>1;){let n=e+r>>>1;t<f[n]?r=n:e=n}if(0==e)break;c.push(e);let o=d+Math.floor(p*f[e]/i),a=d+Math.floor(p*f[e+1]/i)-1;for(;((o^a)&1073741824)==0;)h=h<<1&2147483647|l(),o=o<<1&2147483647,a=a<<1&2147483647|1;for(;o&~a&536870912;)h=1073741824&h|h<<1&1073741823|l(),o=o<<1^1073741824,a=(1073741824^a)<<1|1073741825;d=o,p=1+a-o}let m=n-4;return c.map(e=>{switch(e-m){case 3:return m+65792+(t[a++]<<16|t[a++]<<8|t[a++]);case 2:return m+256+(t[a++]<<8|t[a++]);case 1:return m+t[a++];default:return e-1}})}(iJ("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKLQAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuXR4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA==")),i=0,()=>f[i++]),iZ=new Set(iV(iq)),iK=new Set(iV(iq)),iW=function(t){let e=[];for(;;){let r=t();if(0==r)break;e.push(function(t,e){let r=1+e(),n=e(),i=function(t){let e=[];for(;;){let r=t();if(0==r)break;e.push(r)}return e}(e);return ij(iX(i.length,1+t,e).map((t,e)=>{let f=t[0],o=t.slice(1);return Array(i[e]).fill(void 0).map((t,e)=>{let i=e*n;return[f+e*r,o.map(t=>t+i)]})}))}(r,t))}for(;;){let r=t()-1;if(r<0)break;e.push(iX(1+t(),1+r,t).map(t=>[t[0],t.slice(1)]))}return function(t){let e={};for(let r=0;r<t.length;r++){let n=t[r];e[n[0]]=n[1]}return e}(ij(e))}(iq),iY=(n=iV(iq).sort((t,e)=>t-e),function t(){let e=[];for(;;){let r=iV(iq,n);if(0==r.length)break;e.push({set:new Set(r),node:t()})}e.sort((t,e)=>e.set.size-t.set.size);let r=iq();return{branches:e,valid:r%3,fe0f:!!(1&(r=r/3|0)),save:1==(r>>=1),check:2==r}}());function iQ(t){return function(t,e=U.current){return iF(iB(t,e))}(t)}function i$(t){return t.filter(t=>65039!=t)}function i0(t){for(let e of t.split(".")){let t=iQ(e);try{for(let e=t.lastIndexOf(95)-1;e>=0;e--)if(95!==t[e])throw Error("underscore only allowed at start");if(t.length>=4&&t.every(t=>t<128)&&45===t[2]&&45===t[3])throw Error("invalid label extension")}catch(t){throw Error(`Invalid label "${e}": ${t.message}`)}}return t}let i1=new nV(iz),i6=new Uint8Array(32);function i5(t){if(0===t.length)throw Error("invalid ENS name; empty component");return t}function i2(t){"string"!=typeof t&&i1.throwArgumentError("invalid ENS name; not a string","name",t);let e=i6,r=function(t){let e=iB(i0(function(t,e){let r=iQ(t).reverse(),n=[];for(;r.length;){let t=function(t,e){var r;let n,i;let f=iY,o=[],a=t.length;for(;a;){let e=t[--a];if(!(f=null===(r=f.branches.find(t=>t.set.has(e)))||void 0===r?void 0:r.node))break;if(f.save)i=e;else if(f.check&&e===i)break;o.push(e),f.fe0f&&(o.push(65039),a>0&&65039==t[a-1]&&a--),f.valid&&(n=o.slice(),2==f.valid&&n.splice(1,1),t.length=a)}return n}(r);if(t){n.push(...e(t));continue}let i=r.pop();if(iZ.has(i)){n.push(i);continue}if(iK.has(i))continue;let f=iW[i];if(f){n.push(...f);continue}throw Error(`Disallowed codepoint: 0x${i.toString(16).toUpperCase()}`)}return i0(String.fromCodePoint(...n).normalize("NFC"))}(t,i$))),r=[];if(0===t.length)return r;let n=0;for(let t=0;t<e.length;t++)46===e[t]&&(r.push(i5(e.slice(n,t))),n=t+1);if(n>=e.length)throw Error("invalid ENS name; empty component");return r.push(i5(e.slice(n))),r}(t);for(;r.length;)e=iG(n$([e,iG(r.pop())]));return n5(e)}i6.fill(0);var i8=r(33715),i3=r.n(i8);function i4(t){return"0x"+i3().sha256().update(nQ(t)).digest("hex")}new nV("sha2/5.7.0");let i9=new nV("web/5.7.1");function i7(t){return new Promise(e=>{setTimeout(e,t)})}function ft(t,e){if(null==t)return null;if("string"==typeof t)return t;if(nK(t)){if(e&&("text"===e.split("/")[0]||"application/json"===e.split(";")[0].trim()))try{return iL(t)}catch(t){}return n5(t)}return t}function fe(t,e,r){let n=null;if(null!=e){n=iB(e);let r="string"==typeof t?{url:t}:im(t);r.headers?0!==Object.keys(r.headers).filter(t=>"content-type"===t.toLowerCase()).length||(r.headers=im(r.headers),r.headers["content-type"]="application/json"):r.headers={"content-type":"application/json"},t=r}return function(t,e,r){let n;let i="object"==typeof t&&null!=t.throttleLimit?t.throttleLimit:12;i9.assertArgument(i>0&&i%1==0,"invalid connection throttle limit","connection.throttleLimit",i);let f="object"==typeof t?t.throttleCallback:null,o="object"==typeof t&&"number"==typeof t.throttleSlotInterval?t.throttleSlotInterval:100;i9.assertArgument(o>0&&o%1==0,"invalid connection throttle slot interval","connection.throttleSlotInterval",o);let a="object"==typeof t&&!!t.errorPassThrough,s={},u=null,l={method:"GET"},h=!1,c=12e4;if("string"==typeof t)u=t;else if("object"==typeof t){if((null==t||null==t.url)&&i9.throwArgumentError("missing URL","connection.url",t),u=t.url,"number"==typeof t.timeout&&t.timeout>0&&(c=t.timeout),t.headers)for(let e in t.headers)s[e.toLowerCase()]={key:e,value:String(t.headers[e])},["if-none-match","if-modified-since"].indexOf(e.toLowerCase())>=0&&(h=!0);if(l.allowGzip=!!t.allowGzip,null!=t.user&&null!=t.password){"https:"!==u.substring(0,6)&&!0!==t.allowInsecureAuthentication&&i9.throwError("basic authentication requires a secure https url",nV.errors.INVALID_ARGUMENT,{argument:"url",url:u,user:t.user,password:"[REDACTED]"});let e=t.user+":"+t.password;s.authorization={key:"Authorization",value:"Basic "+function(t){t=nQ(t);let e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return btoa(e)}(iB(e))}}null!=t.skipFetchSetup&&(l.skipFetchSetup=!!t.skipFetchSetup),null!=t.fetchOptions&&(l.fetchOptions=im(t.fetchOptions))}let d=RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),p=u?u.match(d):null;if(p)try{var m;let t={statusCode:200,statusMessage:"OK",headers:{"content-type":p[1]||"text/plain"},body:p[2]?iJ(p[3]):(m=p[3],iB(m.replace(/%([0-9a-f][0-9a-f])/gi,(t,e)=>String.fromCharCode(parseInt(e,16)))))},e=t.body;return r&&(e=r(t.body,t)),Promise.resolve(e)}catch(t){i9.throwError("processing response error",nV.errors.SERVER_ERROR,{body:ft(p[1],p[2]),error:t,requestBody:null,requestMethod:"GET",url:u})}e&&(l.method="POST",l.body=e,null==s["content-type"]&&(s["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==s["content-length"]&&(s["content-length"]={key:"Content-Length",value:String(e.length)}));let g={};Object.keys(s).forEach(t=>{let e=s[t];g[e.key]=e.value}),l.headers=g;let b=(n=null,{promise:new Promise(function(t,e){c&&(n=setTimeout(()=>{null!=n&&(n=null,e(i9.makeError("timeout",nV.errors.TIMEOUT,{requestBody:ft(l.body,g["content-type"]),requestMethod:l.method,timeout:c,url:u})))},c))}),cancel:function(){null!=n&&(clearTimeout(n),n=null)}}),y=function(){var t,e,n,s;return t=this,e=void 0,n=void 0,s=function*(){for(let t=0;t<i;t++){let e=null;try{if(e=yield function(t,e){var r,n,i,f;return r=this,n=void 0,i=void 0,f=function*(){null==e&&(e={});let r={method:e.method||"GET",headers:e.headers||{},body:e.body||void 0};if(!0!==e.skipFetchSetup&&(r.mode="cors",r.cache="no-cache",r.credentials="same-origin",r.redirect="follow",r.referrer="client"),null!=e.fetchOptions){let t=e.fetchOptions;t.mode&&(r.mode=t.mode),t.cache&&(r.cache=t.cache),t.credentials&&(r.credentials=t.credentials),t.redirect&&(r.redirect=t.redirect),t.referrer&&(r.referrer=t.referrer)}let n=yield fetch(t,r),i=yield n.arrayBuffer(),f={};return n.headers.forEach?n.headers.forEach((t,e)=>{f[e.toLowerCase()]=t}):n.headers.keys().forEach(t=>{f[t.toLowerCase()]=n.headers.get(t)}),{headers:f,statusCode:n.status,statusMessage:n.statusText,body:nQ(new Uint8Array(i))}},new(i||(i=Promise))(function(t,e){function o(t){try{s(f.next(t))}catch(t){e(t)}}function a(t){try{s(f.throw(t))}catch(t){e(t)}}function s(e){var r;e.done?t(e.value):((r=e.value)instanceof i?r:new i(function(t){t(r)})).then(o,a)}s((f=f.apply(r,n||[])).next())})}(u,l),t<i){if(301===e.statusCode||302===e.statusCode){let t=e.headers.location||"";if("GET"===l.method&&t.match(/^https:/)){u=e.headers.location;continue}}else if(429===e.statusCode){let r=!0;if(f&&(r=yield f(t,u)),r){let r=0,n=e.headers["retry-after"];r="string"==typeof n&&n.match(/^[1-9][0-9]*$/)?1e3*parseInt(n):o*parseInt(String(Math.random()*Math.pow(2,t))),yield i7(r);continue}}}}catch(t){null==(e=t.response)&&(b.cancel(),i9.throwError("missing response",nV.errors.SERVER_ERROR,{requestBody:ft(l.body,g["content-type"]),requestMethod:l.method,serverError:t,url:u}))}let n=e.body;if(h&&304===e.statusCode?n=null:!a&&(e.statusCode<200||e.statusCode>=300)&&(b.cancel(),i9.throwError("bad response",nV.errors.SERVER_ERROR,{status:e.statusCode,headers:e.headers,body:ft(n,e.headers?e.headers["content-type"]:null),requestBody:ft(l.body,g["content-type"]),requestMethod:l.method,url:u})),r)try{let t=yield r(n,e);return b.cancel(),t}catch(r){if(r.throttleRetry&&t<i){let e=!0;if(f&&(e=yield f(t,u)),e){let e=o*parseInt(String(Math.random()*Math.pow(2,t)));yield i7(e);continue}}b.cancel(),i9.throwError("processing response error",nV.errors.SERVER_ERROR,{body:ft(n,e.headers?e.headers["content-type"]:null),error:r,requestBody:ft(l.body,g["content-type"]),requestMethod:l.method,url:u})}return b.cancel(),n}return i9.throwError("failed response",nV.errors.SERVER_ERROR,{requestBody:ft(l.body,g["content-type"]),requestMethod:l.method,url:u})},new(n||(n=Promise))(function(r,i){function f(t){try{a(s.next(t))}catch(t){i(t)}}function o(t){try{a(s.throw(t))}catch(t){i(t)}}function a(t){var e;t.done?r(t.value):((e=t.value)instanceof n?e:new n(function(t){t(e)})).then(f,o)}a((s=s.apply(t,e||[])).next())})}();return Promise.race([b.promise,y])}(t,n,(t,e)=>{let n=null;if(null!=t)try{n=JSON.parse(iL(t))}catch(e){i9.throwError("invalid JSON",nV.errors.SERVER_ERROR,{body:t,error:e})}return r&&(n=r(n,e)),n})}function fr(t,e){return e||(e={}),null==(e=im(e)).floor&&(e.floor=0),null==e.ceiling&&(e.ceiling=1e4),null==e.interval&&(e.interval=250),new Promise(function(r,n){let i=null,f=!1,o=()=>!f&&(f=!0,i&&clearTimeout(i),!0);e.timeout&&(i=setTimeout(()=>{o()&&n(Error("timeout"))},e.timeout));let a=e.retryLimit,s=0;!function i(){return t().then(function(t){if(void 0!==t)o()&&r(t);else if(e.oncePoll)e.oncePoll.once("poll",i);else if(e.onceBlock)e.onceBlock.once("block",i);else if(!f){if(++s>a){o()&&n(Error("retry limit reached"));return}let t=e.interval*parseInt(String(Math.random()*Math.pow(2,s)));t<e.floor&&(t=e.floor),t>e.ceiling&&(t=e.ceiling),setTimeout(i,t)}return null},function(t){o()&&n(t)})}()})}var fn=r(18167),fi=r.n(fn);let ff="providers/5.4.5",fo=new nV("rlp/5.7.0");function fa(t){let e=[];for(;t;)e.unshift(255&t),t>>=8;return e}function fs(t,e,r){let n=0;for(let i=0;i<r;i++)n=256*n+t[e+i];return n}function fu(t){return n5(function t(e){if(Array.isArray(e)){let r=[];if(e.forEach(function(e){r=r.concat(t(e))}),r.length<=55)return r.unshift(192+r.length),r;let n=fa(r.length);return n.unshift(247+n.length),n.concat(r)}nK(e)||fo.throwArgumentError("RLP object must be BytesLike","object",e);let r=Array.prototype.slice.call(nQ(e));if(1===r.length&&r[0]<=127)return r;if(r.length<=55)return r.unshift(128+r.length),r;let n=fa(r.length);return n.unshift(183+n.length),n.concat(r)}(t))}function fl(t,e,r,n){let i=[];for(;r<e+1+n;){let f=fh(t,r);i.push(f.result),(r+=f.consumed)>e+1+n&&fo.throwError("child data too short",nV.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:i}}function fh(t,e){if(0===t.length&&fo.throwError("data too short",nV.errors.BUFFER_OVERRUN,{}),t[e]>=248){let r=t[e]-247;e+1+r>t.length&&fo.throwError("data short segment too short",nV.errors.BUFFER_OVERRUN,{});let n=fs(t,e+1,r);return e+1+r+n>t.length&&fo.throwError("data long segment too short",nV.errors.BUFFER_OVERRUN,{}),fl(t,e,e+1+r,r+n)}if(t[e]>=192){let r=t[e]-192;return e+1+r>t.length&&fo.throwError("data array too short",nV.errors.BUFFER_OVERRUN,{}),fl(t,e,e+1,r)}if(t[e]>=184){let r=t[e]-183;e+1+r>t.length&&fo.throwError("data array too short",nV.errors.BUFFER_OVERRUN,{});let n=fs(t,e+1,r);e+1+r+n>t.length&&fo.throwError("data array too short",nV.errors.BUFFER_OVERRUN,{});let i=n5(t.slice(e+1+r,e+1+r+n));return{consumed:1+r+n,result:i}}if(t[e]>=128){let r=t[e]-128;e+1+r>t.length&&fo.throwError("data too short",nV.errors.BUFFER_OVERRUN,{});let n=n5(t.slice(e+1,e+1+r));return{consumed:1+r,result:n}}return{consumed:1,result:n5(t[e])}}function fc(t){let e=nQ(t),r=fh(e,0);return r.consumed!==e.length&&fo.throwArgumentError("invalid rlp data","data",t),r.result}let fd=new nV("address/5.7.0");function fp(t){n1(t,20)||fd.throwArgumentError("invalid address","address",t);let e=(t=t.toLowerCase()).substring(2).split(""),r=new Uint8Array(40);for(let t=0;t<40;t++)r[t]=e[t].charCodeAt(0);let n=nQ(iG(r));for(let t=0;t<40;t+=2)n[t>>1]>>4>=8&&(e[t]=e[t].toUpperCase()),(15&n[t>>1])>=8&&(e[t+1]=e[t+1].toUpperCase());return"0x"+e.join("")}let fm={};for(let t=0;t<10;t++)fm[String(t)]=String(t);for(let t=0;t<26;t++)fm[String.fromCharCode(65+t)]=String(10+t);let fg=Math.floor(Math.log10?Math.log10(9007199254740991):Math.log(9007199254740991)/Math.LN10);function fb(t){let e=null;if("string"!=typeof t&&fd.throwArgumentError("invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==t.substring(0,2)&&(t="0x"+t),e=fp(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&fd.throwArgumentError("bad address checksum","address",t);else if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(t.substring(2,4)!==function(t){let e=(t=(t=t.toUpperCase()).substring(4)+t.substring(0,2)+"00").split("").map(t=>fm[t]).join("");for(;e.length>=fg;){let t=e.substring(0,fg);e=parseInt(t,10)%97+e.substring(t.length)}let r=String(98-parseInt(e,10)%97);for(;r.length<2;)r="0"+r;return r}(t)&&fd.throwArgumentError("bad icap checksum","address",t),e=new it(t.substring(4),36).toString(16);e.length<40;)e="0"+e;e=fp("0x"+e)}else fd.throwArgumentError("invalid address","address",t);return e}let fy=io.from(0);function fv(t,e,r){return t(r={path:e,exports:{},require:function(t,e){return function(){throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(t,null==e?r.path:e)}},r.exports),r.exports}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self&&self;var fw=fM;function fM(t,e){if(!t)throw Error(e||"Assertion failed")}fM.equal=function(t,e,r){if(t!=e)throw Error(r||"Assertion failed: "+t+" != "+e)};var fE=fv(function(t,e){function r(t){return 1===t.length?"0"+t:t}function n(t){for(var e="",n=0;n<t.length;n++)e+=r(t[n].toString(16));return e}e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"!=typeof t){for(var n=0;n<t.length;n++)r[n]=0|t[n];return r}if("hex"===e){(t=t.replace(/[^a-z0-9]+/ig,"")).length%2!=0&&(t="0"+t);for(var n=0;n<t.length;n+=2)r.push(parseInt(t[n]+t[n+1],16))}else for(var n=0;n<t.length;n++){var i=t.charCodeAt(n),f=i>>8,o=255&i;f?r.push(f,o):r.push(o)}return r},e.zero2=r,e.toHex=n,e.encode=function(t,e){return"hex"===e?n(t):t}}),fA=fv(function(t,e){e.assert=fw,e.toArray=fE.toArray,e.zero2=fE.zero2,e.toHex=fE.toHex,e.encode=fE.encode,e.getNAF=function(t,e,r){var n=Array(Math.max(t.bitLength(),r)+1);n.fill(0);for(var i=1<<e+1,f=t.clone(),o=0;o<n.length;o++){var a,s=f.andln(i-1);f.isOdd()?(a=s>(i>>1)-1?(i>>1)-s:s,f.isubn(a)):a=0,n[o]=a,f.iushrn(1)}return n},e.getJSF=function(t,e){var r=[[],[]];t=t.clone(),e=e.clone();for(var n=0,i=0;t.cmpn(-n)>0||e.cmpn(-i)>0;){var f,o,a,s=t.andln(3)+n&3,u=e.andln(3)+i&3;3===s&&(s=-1),3===u&&(u=-1),o=(1&s)==0?0:(3==(f=t.andln(7)+n&7)||5===f)&&2===u?-s:s,r[0].push(o),a=(1&u)==0?0:(3==(f=e.andln(7)+i&7)||5===f)&&2===s?-u:u,r[1].push(a),2*n===o+1&&(n=1-n),2*i===a+1&&(i=1-i),t.iushrn(1),e.iushrn(1)}return r},e.cachedProperty=function(t,e,r){var n="_"+e;t.prototype[e]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},e.parseBytes=function(t){return"string"==typeof t?e.toArray(t,"hex"):t},e.intFromLE=function(t){return new(nL())(t,"hex","le")}}),fS=fA.getNAF,f_=fA.getJSF,fN=fA.assert;function fT(t,e){this.type=t,this.p=new(nL())(e.p,16),this.red=e.prime?nL().red(e.prime):nL().mont(this.p),this.zero=new(nL())(0).toRed(this.red),this.one=new(nL())(1).toRed(this.red),this.two=new(nL())(2).toRed(this.red),this.n=e.n&&new(nL())(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],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 fR(t,e){this.curve=t,this.type=e,this.precomputed=null}fT.prototype.point=function(){throw Error("Not implemented")},fT.prototype.validate=function(){throw Error("Not implemented")},fT.prototype._fixedNafMul=function(t,e){fN(t.precomputed);var r,n,i=t._getDoubles(),f=fS(e,1,this._bitLength),o=(1<<i.step+1)-(i.step%2==0?2:1);o/=3;var a=[];for(r=0;r<f.length;r+=i.step){n=0;for(var s=r+i.step-1;s>=r;s--)n=(n<<1)+f[s];a.push(n)}for(var u=this.jpoint(null,null,null),l=this.jpoint(null,null,null),h=o;h>0;h--){for(r=0;r<a.length;r++)(n=a[r])===h?l=l.mixedAdd(i.points[r]):n===-h&&(l=l.mixedAdd(i.points[r].neg()));u=u.add(l)}return u.toP()},fT.prototype._wnafMul=function(t,e){var r=4,n=t._getNAFPoints(r);r=n.wnd;for(var i=n.points,f=fS(e,r,this._bitLength),o=this.jpoint(null,null,null),a=f.length-1;a>=0;a--){for(var s=0;a>=0&&0===f[a];a--)s++;if(a>=0&&s++,o=o.dblp(s),a<0)break;var u=f[a];fN(0!==u),o="affine"===t.type?u>0?o.mixedAdd(i[u-1>>1]):o.mixedAdd(i[-u-1>>1].neg()):u>0?o.add(i[u-1>>1]):o.add(i[-u-1>>1].neg())}return"affine"===t.type?o.toP():o},fT.prototype._wnafMulAdd=function(t,e,r,n,i){var f,o,a,s=this._wnafT1,u=this._wnafT2,l=this._wnafT3,h=0;for(f=0;f<n;f++){var c=(a=e[f])._getNAFPoints(t);s[f]=c.wnd,u[f]=c.points}for(f=n-1;f>=1;f-=2){var d=f-1,p=f;if(1!==s[d]||1!==s[p]){l[d]=fS(r[d],s[d],this._bitLength),l[p]=fS(r[p],s[p],this._bitLength),h=Math.max(l[d].length,h),h=Math.max(l[p].length,h);continue}var m=[e[d],null,null,e[p]];0===e[d].y.cmp(e[p].y)?(m[1]=e[d].add(e[p]),m[2]=e[d].toJ().mixedAdd(e[p].neg())):0===e[d].y.cmp(e[p].y.redNeg())?(m[1]=e[d].toJ().mixedAdd(e[p]),m[2]=e[d].add(e[p].neg())):(m[1]=e[d].toJ().mixedAdd(e[p]),m[2]=e[d].toJ().mixedAdd(e[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],b=f_(r[d],r[p]);for(o=0,h=Math.max(b[0].length,h),l[d]=Array(h),l[p]=Array(h);o<h;o++){var y=0|b[0][o],v=0|b[1][o];l[d][o]=g[(y+1)*3+(v+1)],l[p][o]=0,u[d]=m}}var w=this.jpoint(null,null,null),M=this._wnafT4;for(f=h;f>=0;f--){for(var E=0;f>=0;){var A=!0;for(o=0;o<n;o++)M[o]=0|l[o][f],0!==M[o]&&(A=!1);if(!A)break;E++,f--}if(f>=0&&E++,w=w.dblp(E),f<0)break;for(o=0;o<n;o++){var S=M[o];0!==S&&(S>0?a=u[o][S-1>>1]:S<0&&(a=u[o][-S-1>>1].neg()),w="affine"===a.type?w.mixedAdd(a):w.add(a))}}for(f=0;f<n;f++)u[f]=null;return i?w:w.toP()},fT.BasePoint=fR,fR.prototype.eq=function(){throw Error("Not implemented")},fR.prototype.validate=function(){return this.curve.validate(this)},fT.prototype.decodePoint=function(t,e){t=fA.toArray(t,e);var r=this.p.byteLength();if((4===t[0]||6===t[0]||7===t[0])&&t.length-1==2*r)return 6===t[0]?fN(t[t.length-1]%2==0):7===t[0]&&fN(t[t.length-1]%2==1),this.point(t.slice(1,1+r),t.slice(1+r,1+2*r));if((2===t[0]||3===t[0])&&t.length-1===r)return this.pointFromX(t.slice(1,1+r),3===t[0]);throw Error("Unknown point format")},fR.prototype.encodeCompressed=function(t){return this.encode(t,!0)},fR.prototype._encode=function(t){var e=this.curve.p.byteLength(),r=this.getX().toArray("be",e);return t?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",e))},fR.prototype.encode=function(t,e){return fA.encode(this._encode(e),t)},fR.prototype.precompute=function(t){if(this.precomputed)return this;var e={doubles:null,naf:null,beta:null};return e.naf=this._getNAFPoints(8),e.doubles=this._getDoubles(4,t),e.beta=this._getBeta(),this.precomputed=e,this},fR.prototype._hasDoubles=function(t){if(!this.precomputed)return!1;var e=this.precomputed.doubles;return!!e&&e.points.length>=Math.ceil((t.bitLength()+1)/e.step)},fR.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<e;i+=t){for(var f=0;f<t;f++)n=n.dbl();r.push(n)}return{step:t,points:r}},fR.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var e=[this],r=(1<<t)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)e[i]=e[i-1].add(n);return{wnd:t,points:e}},fR.prototype._getBeta=function(){return null},fR.prototype.dblp=function(t){for(var e=this,r=0;r<t;r++)e=e.dbl();return e};var fC=fv(function(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}}),fI=fA.assert;function fP(t){fT.call(this,"short",t),this.a=new(nL())(t.a,16).toRed(this.red),this.b=new(nL())(t.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(t),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}function fO(t,e,r,n){fT.BasePoint.call(this,t,"affine"),null===e&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new(nL())(e,16),this.y=new(nL())(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function fx(t,e,r,n){fT.BasePoint.call(this,t,"jacobian"),null===e&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new(nL())(0)):(this.x=new(nL())(e,16),this.y=new(nL())(r,16),this.z=new(nL())(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}fC(fP,fT),fP.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){if(t.beta)e=new(nL())(t.beta,16).toRed(this.red);else{var e,r,n,i=this._getEndoRoots(this.p);e=(e=0>i[0].cmp(i[1])?i[0]:i[1]).toRed(this.red)}if(t.lambda)r=new(nL())(t.lambda,16);else{var f=this._getEndoRoots(this.n);0===this.g.mul(f[0]).x.cmp(this.g.x.redMul(e))?r=f[0]:(r=f[1],fI(0===this.g.mul(r).x.cmp(this.g.x.redMul(e))))}return n=t.basis?t.basis.map(function(t){return{a:new(nL())(t.a,16),b:new(nL())(t.b,16)}}):this._getEndoBasis(r),{beta:e,lambda:r,basis:n}}},fP.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:nL().mont(t),r=new(nL())(2).toRed(e).redInvm(),n=r.redNeg(),i=new(nL())(3).toRed(e).redNeg().redSqrt().redMul(r);return[n.redAdd(i).fromRed(),n.redSub(i).fromRed()]},fP.prototype._getEndoBasis=function(t){for(var e,r,n,i,f,o,a,s,u,l=this.n.ushrn(Math.floor(this.n.bitLength()/2)),h=t,c=this.n.clone(),d=new(nL())(1),p=new(nL())(0),m=new(nL())(0),g=new(nL())(1),b=0;0!==h.cmpn(0);){var y=c.div(h);s=c.sub(y.mul(h)),u=m.sub(y.mul(d));var v=g.sub(y.mul(p));if(!n&&0>s.cmp(l))e=a.neg(),r=d,n=s.neg(),i=u;else if(n&&2==++b)break;a=s,c=h,h=s,m=d,d=u,g=p,p=v}f=s.neg(),o=u;var w=n.sqr().add(i.sqr());return f.sqr().add(o.sqr()).cmp(w)>=0&&(f=e,o=r),n.negative&&(n=n.neg(),i=i.neg()),f.negative&&(f=f.neg(),o=o.neg()),[{a:n,b:i},{a:f,b:o}]},fP.prototype._endoSplit=function(t){var e=this.endo.basis,r=e[0],n=e[1],i=n.b.mul(t).divRound(this.n),f=r.b.neg().mul(t).divRound(this.n),o=i.mul(r.a),a=f.mul(n.a),s=i.mul(r.b),u=f.mul(n.b);return{k1:t.sub(o).sub(a),k2:s.add(u).neg()}},fP.prototype.pointFromX=function(t,e){(t=new(nL())(t,16)).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 Error("invalid point");var i=n.fromRed().isOdd();return(e&&!i||!e&&i)&&(n=n.redNeg()),this.point(t,n)},fP.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)},fP.prototype._endoWnafMulAdd=function(t,e,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,f=0;f<t.length;f++){var o=this._endoSplit(e[f]),a=t[f],s=a._getBeta();o.k1.negative&&(o.k1.ineg(),a=a.neg(!0)),o.k2.negative&&(o.k2.ineg(),s=s.neg(!0)),n[2*f]=a,n[2*f+1]=s,i[2*f]=o.k1,i[2*f+1]=o.k2}for(var u=this._wnafMulAdd(1,n,i,2*f,r),l=0;l<2*f;l++)n[l]=null,i[l]=null;return u},fC(fO,fT.BasePoint),fP.prototype.point=function(t,e,r){return new fO(this,t,e,r)},fP.prototype.pointFromJSON=function(t,e){return fO.fromJSON(this,t,e)},fO.prototype._getBeta=function(){if(this.curve.endo){var t=this.precomputed;if(t&&t.beta)return t.beta;var e=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(t){var r=this.curve,n=function(t){return r.point(t.x.redMul(r.endo.beta),t.y)};t.beta=e,e.precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(n)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(n)}}}return e}},fO.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},fO.fromJSON=function(t,e,r){"string"==typeof e&&(e=JSON.parse(e));var n=t.point(e[0],e[1],r);if(!e[2])return n;function i(e){return t.point(e[0],e[1],r)}var f=e[2];return n.precomputed={beta:null,doubles:f.doubles&&{step:f.doubles.step,points:[n].concat(f.doubles.points.map(i))},naf:f.naf&&{wnd:f.naf.wnd,points:[n].concat(f.naf.points.map(i))}},n},fO.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},fO.prototype.isInfinity=function(){return this.inf},fO.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)||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)},fO.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),f=i.redSqr().redISub(this.x.redAdd(this.x)),o=i.redMul(this.x.redSub(f)).redISub(this.y);return this.curve.point(f,o)},fO.prototype.getX=function(){return this.x.fromRed()},fO.prototype.getY=function(){return this.y.fromRed()},fO.prototype.mul=function(t){return(t=new(nL())(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)},fO.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)},fO.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)},fO.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))},fO.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},fO.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},fC(fx,fT.BasePoint),fP.prototype.jpoint=function(t,e,r){return new fx(this,t,e,r)},fx.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)},fx.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},fx.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),f=this.y.redMul(e.redMul(t.z)),o=t.y.redMul(r.redMul(this.z)),a=n.redSub(i),s=f.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),l=u.redMul(a),h=n.redMul(u),c=s.redSqr().redIAdd(l).redISub(h).redISub(h),d=s.redMul(h.redISub(c)).redISub(f.redMul(l)),p=this.z.redMul(t.z).redMul(a);return this.curve.jpoint(c,d,p)},fx.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,f=t.y.redMul(e).redMul(this.z),o=r.redSub(n),a=i.redSub(f);if(0===o.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var s=o.redSqr(),u=s.redMul(o),l=r.redMul(s),h=a.redSqr().redIAdd(u).redISub(l).redISub(l),c=a.redMul(l.redISub(h)).redISub(i.redMul(u)),d=this.z.redMul(o);return this.curve.jpoint(h,c,d)},fx.prototype.dblp=function(t){if(0===t||this.isInfinity())return this;if(!t)return this.dbl();if(this.curve.zeroA||this.curve.threeA){var e,r=this;for(e=0;e<t;e++)r=r.dbl();return r}var n=this.curve.a,i=this.curve.tinv,f=this.x,o=this.y,a=this.z,s=a.redSqr().redSqr(),u=o.redAdd(o);for(e=0;e<t;e++){var l=f.redSqr(),h=u.redSqr(),c=h.redSqr(),d=l.redAdd(l).redIAdd(l).redIAdd(n.redMul(s)),p=f.redMul(h),m=d.redSqr().redISub(p.redAdd(p)),g=p.redISub(m),b=d.redMul(g);b=b.redIAdd(b).redISub(c);var y=u.redMul(a);e+1<t&&(s=s.redMul(c)),f=m,a=y,u=b}return this.curve.jpoint(f,u.redMul(i),a)},fx.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},fx.prototype._zeroDbl=function(){if(this.zOne){var t,e,r,n=this.x.redSqr(),i=this.y.redSqr(),f=i.redSqr(),o=this.x.redAdd(i).redSqr().redISub(n).redISub(f);o=o.redIAdd(o);var a=n.redAdd(n).redIAdd(n),s=a.redSqr().redISub(o).redISub(o),u=f.redIAdd(f);u=(u=u.redIAdd(u)).redIAdd(u),t=s,e=a.redMul(o.redISub(s)).redISub(u),r=this.y.redAdd(this.y)}else{var l=this.x.redSqr(),h=this.y.redSqr(),c=h.redSqr(),d=this.x.redAdd(h).redSqr().redISub(l).redISub(c);d=d.redIAdd(d);var p=l.redAdd(l).redIAdd(l),m=p.redSqr(),g=c.redIAdd(c);g=(g=g.redIAdd(g)).redIAdd(g),t=m.redISub(d).redISub(d),e=p.redMul(d.redISub(t)).redISub(g),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(t,e,r)},fx.prototype._threeDbl=function(){if(this.zOne){var t,e,r,n=this.x.redSqr(),i=this.y.redSqr(),f=i.redSqr(),o=this.x.redAdd(i).redSqr().redISub(n).redISub(f);o=o.redIAdd(o);var a=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),s=a.redSqr().redISub(o).redISub(o);t=s;var u=f.redIAdd(f);u=(u=u.redIAdd(u)).redIAdd(u),e=a.redMul(o.redISub(s)).redISub(u),r=this.y.redAdd(this.y)}else{var l=this.z.redSqr(),h=this.y.redSqr(),c=this.x.redMul(h),d=this.x.redSub(l).redMul(this.x.redAdd(l));d=d.redAdd(d).redIAdd(d);var p=c.redIAdd(c),m=(p=p.redIAdd(p)).redAdd(p);t=d.redSqr().redISub(m),r=this.y.redAdd(this.z).redSqr().redISub(h).redISub(l);var g=h.redSqr();g=(g=(g=g.redIAdd(g)).redIAdd(g)).redIAdd(g),e=d.redMul(p.redISub(t)).redISub(g)}return this.curve.jpoint(t,e,r)},fx.prototype._dbl=function(){var t=this.curve.a,e=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),f=e.redSqr(),o=r.redSqr(),a=f.redAdd(f).redIAdd(f).redIAdd(t.redMul(i)),s=e.redAdd(e),u=(s=s.redIAdd(s)).redMul(o),l=a.redSqr().redISub(u.redAdd(u)),h=u.redISub(l),c=o.redSqr();c=(c=(c=c.redIAdd(c)).redIAdd(c)).redIAdd(c);var d=a.redMul(h).redISub(c),p=r.redAdd(r).redMul(n);return this.curve.jpoint(l,d,p)},fx.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var t=this.x.redSqr(),e=this.y.redSqr(),r=this.z.redSqr(),n=e.redSqr(),i=t.redAdd(t).redIAdd(t),f=i.redSqr(),o=this.x.redAdd(e).redSqr().redISub(t).redISub(n),a=(o=(o=(o=o.redIAdd(o)).redAdd(o).redIAdd(o)).redISub(f)).redSqr(),s=n.redIAdd(n);s=(s=(s=s.redIAdd(s)).redIAdd(s)).redIAdd(s);var u=i.redIAdd(o).redSqr().redISub(f).redISub(a).redISub(s),l=e.redMul(u);l=(l=l.redIAdd(l)).redIAdd(l);var h=this.x.redMul(a).redISub(l);h=(h=h.redIAdd(h)).redIAdd(h);var c=this.y.redMul(u.redMul(s.redISub(u)).redISub(o.redMul(a)));c=(c=(c=c.redIAdd(c)).redIAdd(c)).redIAdd(c);var d=this.z.redAdd(o).redSqr().redISub(r).redISub(a);return this.curve.jpoint(h,c,d)},fx.prototype.mul=function(t,e){return t=new(nL())(t,e),this.curve._wnafMul(this,t)},fx.prototype.eq=function(t){if("affine"===t.type)return this.eq(t.toJ());if(this===t)return!0;var e=this.z.redSqr(),r=t.z.redSqr();if(0!==this.x.redMul(r).redISub(t.x.redMul(e)).cmpn(0))return!1;var n=e.redMul(this.z),i=r.redMul(t.z);return 0===this.y.redMul(i).redISub(t.y.redMul(n)).cmpn(0)},fx.prototype.eqXToP=function(t){var e=this.z.redSqr(),r=t.toRed(this.curve.red).redMul(e);if(0===this.x.cmp(r))return!0;for(var n=t.clone(),i=this.curve.redN.redMul(e);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},fx.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},fx.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var fk=fv(function(t,e){e.base=fT,e.short=fP,e.mont=null,e.edwards=null}),fF=fv(function(t,e){var r,n=fA.assert;function i(t){"short"===t.type?this.curve=new fk.short(t):"edwards"===t.type?this.curve=new fk.edwards(t):this.curve=new fk.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,n(this.g.validate(),"Invalid curve"),n(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function f(t,r){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){var n=new i(r);return Object.defineProperty(e,t,{configurable:!0,enumerable:!0,value:n}),n}})}e.PresetCurve=i,f("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:i3().sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),f("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:i3().sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),f("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:i3().sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),f("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:i3().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"]}),f("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:i3().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"]}),f("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:i3().sha256,gRed:!1,g:["9"]}),f("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:i3().sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=null.crash()}catch(t){r=void 0}f("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:i3().sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})});function fB(t){if(!(this instanceof fB))return new fB(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=fE.toArray(t.entropy,t.entropyEnc||"hex"),r=fE.toArray(t.nonce,t.nonceEnc||"hex"),n=fE.toArray(t.pers,t.persEnc||"hex");fw(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}fB.prototype._init=function(t,e,r){var n=t.concat(e).concat(r);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},fB.prototype._hmac=function(){return new(i3()).hmac(this.hash,this.K)},fB.prototype._update=function(t){var e=this._hmac().update(this.V).update([0]);t&&(e=e.update(t)),this.K=e.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},fB.prototype.reseed=function(t,e,r,n){"string"!=typeof e&&(n=r,r=e,e=null),t=fE.toArray(t,e),r=fE.toArray(r,n),fw(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(r||[])),this._reseed=1},fB.prototype.generate=function(t,e,r,n){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof e&&(n=r,r=e,e=null),r&&(r=fE.toArray(r,n||"hex"),this._update(r));for(var i=[];i.length<t;)this.V=this._hmac().update(this.V).digest(),i=i.concat(this.V);var f=i.slice(0,t);return this._update(r),this._reseed++,fE.encode(f,e)};var fL=fA.assert;function fD(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}fD.fromPublic=function(t,e,r){return e instanceof fD?e:new fD(t,{pub:e,pubEnc:r})},fD.fromPrivate=function(t,e,r){return e instanceof fD?e:new fD(t,{priv:e,privEnc:r})},fD.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},fD.prototype.getPublic=function(t,e){return("string"==typeof t&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e)?this.pub.encode(e,t):this.pub},fD.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},fD.prototype._importPrivate=function(t,e){this.priv=new(nL())(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},fD.prototype._importPublic=function(t,e){if(t.x||t.y){"mont"===this.ec.curve.type?fL(t.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&fL(t.x&&t.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(t.x,t.y);return}this.pub=this.ec.curve.decodePoint(t,e)},fD.prototype.derive=function(t){return t.validate()||fL(t.validate(),"public point not validated"),t.mul(this.priv).getX()},fD.prototype.sign=function(t,e,r){return this.ec.sign(t,this,e,r)},fD.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},fD.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var fU=fA.assert;function fG(t,e){if(t instanceof fG)return t;this._importDER(t,e)||(fU(t.r&&t.s,"Signature without r or s"),this.r=new(nL())(t.r,16),this.s=new(nL())(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function fz(){this.place=0}function fJ(t,e){var r=t[e.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,f=0,o=e.place;f<n;f++,o++)i<<=8,i|=t[o],i>>>=0;return!(i<=127)&&(e.place=o,i)}function fj(t){for(var e=0,r=t.length-1;!t[e]&&!(128&t[e+1])&&e<r;)e++;return 0===e?t:t.slice(e)}function fH(t,e){if(e<128){t.push(e);return}var r=1+(Math.log(e)/Math.LN2>>>3);for(t.push(128|r);--r;)t.push(e>>>(r<<3)&255);t.push(e)}fG.prototype._importDER=function(t,e){t=fA.toArray(t,e);var r=new fz;if(48!==t[r.place++])return!1;var n=fJ(t,r);if(!1===n||n+r.place!==t.length||2!==t[r.place++])return!1;var i=fJ(t,r);if(!1===i)return!1;var f=t.slice(r.place,i+r.place);if(r.place+=i,2!==t[r.place++])return!1;var o=fJ(t,r);if(!1===o||t.length!==o+r.place)return!1;var a=t.slice(r.place,o+r.place);if(0===f[0]){if(!(128&f[1]))return!1;f=f.slice(1)}if(0===a[0]){if(!(128&a[1]))return!1;a=a.slice(1)}return this.r=new(nL())(f),this.s=new(nL())(a),this.recoveryParam=null,!0},fG.prototype.toDER=function(t){var e=this.r.toArray(),r=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&r[0]&&(r=[0].concat(r)),e=fj(e),r=fj(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var n=[2];fH(n,e.length),(n=n.concat(e)).push(2),fH(n,r.length);var i=n.concat(r),f=[48];return fH(f,i.length),f=f.concat(i),fA.encode(f,t)};var fV=function(){throw Error("unsupported")},fX=fA.assert;function fq(t){if(!(this instanceof fq))return new fq(t);"string"==typeof t&&(fX(Object.prototype.hasOwnProperty.call(fF,t),"Unknown curve "+t),t=fF[t]),t instanceof fF.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}fq.prototype.keyPair=function(t){return new fD(this,t)},fq.prototype.keyFromPrivate=function(t,e){return fD.fromPrivate(this,t,e)},fq.prototype.keyFromPublic=function(t,e){return fD.fromPublic(this,t,e)},fq.prototype.genKeyPair=function(t){t||(t={});for(var e=new fB({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||fV(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new(nL())(2));;){var i=new(nL())(e.generate(r));if(!(i.cmp(n)>0))return i.iaddn(1),this.keyFromPrivate(i)}},fq.prototype._truncateToN=function(t,e){var r=8*t.byteLength()-this.n.bitLength();return(r>0&&(t=t.ushrn(r)),!e&&t.cmp(this.n)>=0)?t.sub(this.n):t},fq.prototype.sign=function(t,e,r,n){"object"==typeof r&&(n=r,r=null),n||(n={}),e=this.keyFromPrivate(e,r),t=this._truncateToN(new(nL())(t,16));for(var i=this.n.byteLength(),f=e.getPrivate().toArray("be",i),o=t.toArray("be",i),a=new fB({hash:this.hash,entropy:f,nonce:o,pers:n.pers,persEnc:n.persEnc||"utf8"}),s=this.n.sub(new(nL())(1)),u=0;;u++){var l=n.k?n.k(u):new(nL())(a.generate(this.n.byteLength()));if(!(0>=(l=this._truncateToN(l,!0)).cmpn(1)||l.cmp(s)>=0)){var h=this.g.mul(l);if(!h.isInfinity()){var c=h.getX(),d=c.umod(this.n);if(0!==d.cmpn(0)){var p=l.invm(this.n).mul(d.mul(e.getPrivate()).iadd(t));if(0!==(p=p.umod(this.n)).cmpn(0)){var m=(h.getY().isOdd()?1:0)|(0!==c.cmp(d)?2:0);return n.canonical&&p.cmp(this.nh)>0&&(p=this.n.sub(p),m^=1),new fG({r:d,s:p,recoveryParam:m})}}}}}},fq.prototype.verify=function(t,e,r,n){t=this._truncateToN(new(nL())(t,16)),r=this.keyFromPublic(r,n);var i,f=(e=new fG(e,"hex")).r,o=e.s;if(0>f.cmpn(1)||f.cmp(this.n)>=0||0>o.cmpn(1)||o.cmp(this.n)>=0)return!1;var a=o.invm(this.n),s=a.mul(t).umod(this.n),u=a.mul(f).umod(this.n);return this.curve._maxwellTrick?!(i=this.g.jmulAdd(s,r.getPublic(),u)).isInfinity()&&i.eqXToP(f):!(i=this.g.mulAdd(s,r.getPublic(),u)).isInfinity()&&0===i.getX().umod(this.n).cmp(f)},fq.prototype.recoverPubKey=function(t,e,r,n){fX((3&r)===r,"The recovery param is more than two bits"),e=new fG(e,n);var i=this.n,f=new(nL())(t),o=e.r,a=e.s,s=1&r,u=r>>1;if(o.cmp(this.curve.p.umod(this.curve.n))>=0&&u)throw Error("Unable to find sencond key candinate");o=u?this.curve.pointFromX(o.add(this.curve.n),s):this.curve.pointFromX(o,s);var l=e.r.invm(i),h=i.sub(f).mul(l).umod(i),c=a.mul(l).umod(i);return this.g.mulAdd(h,o,c)},fq.prototype.getKeyRecoveryParam=function(t,e,r,n){if(null!==(e=new fG(e,n)).recoveryParam)return e.recoveryParam;for(var i,f=0;f<4;f++){try{i=this.recoverPubKey(t,e,f)}catch(t){continue}if(i.eq(r))return f}throw Error("Unable to find valid recovery factor")};var fZ=fv(function(t,e){e.version="6.5.4",e.utils=fA,e.rand=function(){throw Error("unsupported")},e.curve=fk,e.curves=fF,e.ec=fq,e.eddsa=null}).ec;let fK=new nV("signing-key/5.7.0"),fW=null;function fY(){return fW||(fW=new fZ("secp256k1")),fW}class fQ{constructor(t){ic(this,"curve","secp256k1"),ic(this,"privateKey",n5(t)),32!==n2(this.privateKey)&&fK.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");let e=fY().keyFromPrivate(nQ(this.privateKey));ic(this,"publicKey","0x"+e.getPublic(!1,"hex")),ic(this,"compressedPublicKey","0x"+e.getPublic(!0,"hex")),ic(this,"_isSigningKey",!0)}_addPoint(t){let e=fY().keyFromPublic(nQ(this.publicKey)),r=fY().keyFromPublic(nQ(t));return"0x"+e.pub.add(r.pub).encodeCompressed("hex")}signDigest(t){let e=fY().keyFromPrivate(nQ(this.privateKey)),r=nQ(t);32!==r.length&&fK.throwArgumentError("bad digest length","digest",t);let n=e.sign(r,{canonical:!0});return n7({recoveryParam:n.recoveryParam,r:n9("0x"+n.r.toString(16),32),s:n9("0x"+n.s.toString(16),32)})}computeSharedSecret(t){let e=fY().keyFromPrivate(nQ(this.privateKey)),r=fY().keyFromPublic(nQ(f$(t)));return n9("0x"+e.derive(r.getPublic()).toString(16),32)}static isSigningKey(t){return!!(t&&t._isSigningKey)}}function f$(t,e){let r=nQ(t);if(32===r.length){let t=new fQ(r);return e?"0x"+fY().keyFromPrivate(r).getPublic(!0,"hex"):t.publicKey}return 33===r.length?e?n5(r):"0x"+fY().keyFromPublic(r).getPublic(!1,"hex"):65===r.length?e?"0x"+fY().keyFromPublic(r).getPublic(!0,"hex"):n5(r):fK.throwArgumentError("invalid public or private key","key","[REDACTED]")}let f0=new nV("transactions/5.7.0");function f1(t){return"0x"===t?null:fb(t)}function f6(t){return"0x"===t?fy:io.from(t)}function f5(t,e){return fb(n8(iG(n8(f$(function(t,e){let r=n7(e),n={r:nQ(r.r),s:nQ(r.s)};return"0x"+fY().recoverPubKey(nQ(t),n,r.recoveryParam).encode("hex",!1)}(nQ(t),e)),1)),12))}function f2(t,e){let r=n0(io.from(t).toHexString());return r.length>32&&f0.throwArgumentError("invalid length for "+e,"transaction:"+e,t),r}function f8(t,e){return{address:fb(t),storageKeys:(e||[]).map((e,r)=>(32!==n2(e)&&f0.throwArgumentError("invalid access list storageKey",`accessList[${t}:${r}]`,e),e.toLowerCase()))}}function f3(t){if(Array.isArray(t))return t.map((t,e)=>Array.isArray(t)?(t.length>2&&f0.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${e}]`,t),f8(t[0],t[1])):f8(t.address,t.storageKeys));let e=Object.keys(t).map(e=>{let r=t[e].reduce((t,e)=>(t[e]=!0,t),{});return f8(e,Object.keys(r).sort())});return e.sort((t,e)=>t.address.localeCompare(e.address)),e}function f4(t){return f3(t).map(t=>[t.address,t.storageKeys])}function f9(t,e){if(null!=t.gasPrice){let e=io.from(t.gasPrice),r=io.from(t.maxFeePerGas||0);e.eq(r)||f0.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:e,maxFeePerGas:r})}let r=[f2(t.chainId||0,"chainId"),f2(t.nonce||0,"nonce"),f2(t.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),f2(t.maxFeePerGas||0,"maxFeePerGas"),f2(t.gasLimit||0,"gasLimit"),null!=t.to?fb(t.to):"0x",f2(t.value||0,"value"),t.data||"0x",f4(t.accessList||[])];if(e){let t=n7(e);r.push(f2(t.recoveryParam,"recoveryParam")),r.push(n0(t.r)),r.push(n0(t.s))}return n3(["0x02",fu(r)])}function f7(t,e){let r=[f2(t.chainId||0,"chainId"),f2(t.nonce||0,"nonce"),f2(t.gasPrice||0,"gasPrice"),f2(t.gasLimit||0,"gasLimit"),null!=t.to?fb(t.to):"0x",f2(t.value||0,"value"),t.data||"0x",f4(t.accessList||[])];if(e){let t=n7(e);r.push(f2(t.recoveryParam,"recoveryParam")),r.push(n0(t.r)),r.push(n0(t.s))}return n3(["0x01",fu(r)])}function ot(t,e,r){try{let r=f6(e[0]).toNumber();if(0!==r&&1!==r)throw Error("bad recid");t.v=r}catch(t){f0.throwArgumentError("invalid v for transaction type: 1","v",e[0])}t.r=n9(e[1],32),t.s=n9(e[2],32);try{let e=iG(r(t));t.from=f5(e,{r:t.r,s:t.s,recoveryParam:t.v})}catch(t){}}(M=z||(z={}))[M.legacy=0]="legacy",M[M.eip2930=1]="eip2930",M[M.eip1559=2]="eip1559";let oe=new nV(ff);class or{constructor(){oe.checkNew(new.target,or),this.formats=this.getDefaultFormats()}getDefaultFormats(){let t={},e=this.address.bind(this),r=this.bigNumber.bind(this),n=this.blockTag.bind(this),i=this.data.bind(this),f=this.hash.bind(this),o=this.hex.bind(this),a=this.number.bind(this),s=this.type.bind(this);return t.transaction={hash:f,type:s,accessList:or.allowNull(this.accessList.bind(this),null),blockHash:or.allowNull(f,null),blockNumber:or.allowNull(a,null),transactionIndex:or.allowNull(a,null),confirmations:or.allowNull(a,null),from:e,gasPrice:or.allowNull(r),maxPriorityFeePerGas:or.allowNull(r),maxFeePerGas:or.allowNull(r),gasLimit:r,to:or.allowNull(e,null),value:r,nonce:a,data:i,r:or.allowNull(this.uint256),s:or.allowNull(this.uint256),v:or.allowNull(a),creates:or.allowNull(e,null),raw:or.allowNull(i)},t.transactionRequest={from:or.allowNull(e),nonce:or.allowNull(a),gasLimit:or.allowNull(r),gasPrice:or.allowNull(r),maxPriorityFeePerGas:or.allowNull(r),maxFeePerGas:or.allowNull(r),to:or.allowNull(e),value:or.allowNull(r),data:or.allowNull(t=>this.data(t,!0)),type:or.allowNull(a),accessList:or.allowNull(this.accessList.bind(this),null)},t.receiptLog={transactionIndex:a,blockNumber:a,transactionHash:f,address:e,topics:or.arrayOf(f),data:i,logIndex:a,blockHash:f},t.receipt={to:or.allowNull(this.address,null),from:or.allowNull(this.address,null),contractAddress:or.allowNull(e,null),transactionIndex:a,root:or.allowNull(o),gasUsed:r,logsBloom:or.allowNull(i),blockHash:f,transactionHash:f,logs:or.arrayOf(this.receiptLog.bind(this)),blockNumber:a,confirmations:or.allowNull(a,null),cumulativeGasUsed:r,effectiveGasPrice:or.allowNull(r),status:or.allowNull(a),type:s},t.block={hash:f,parentHash:f,number:a,timestamp:a,nonce:or.allowNull(o),difficulty:this.difficulty.bind(this),gasLimit:r,gasUsed:r,miner:e,extraData:i,transactions:or.allowNull(or.arrayOf(f)),baseFeePerGas:or.allowNull(r)},t.blockWithTransactions=im(t.block),t.blockWithTransactions.transactions=or.allowNull(or.arrayOf(this.transactionResponse.bind(this))),t.filter={fromBlock:or.allowNull(n,void 0),toBlock:or.allowNull(n,void 0),blockHash:or.allowNull(f,void 0),address:or.allowNull(e,void 0),topics:or.allowNull(this.topics.bind(this),void 0)},t.filterLog={blockNumber:or.allowNull(a),blockHash:or.allowNull(f),transactionIndex:a,removed:or.allowNull(this.boolean.bind(this)),address:e,data:or.allowFalsish(i,"0x"),topics:or.arrayOf(f),transactionHash:f,logIndex:a},t}accessList(t){return f3(t||[])}number(t){return"0x"===t?0:io.from(t).toNumber()}type(t){return"0x"===t||null==t?0:io.from(t).toNumber()}bigNumber(t){return io.from(t)}boolean(t){if("boolean"==typeof t)return t;if("string"==typeof t){if("true"===(t=t.toLowerCase()))return!0;if("false"===t)return!1}throw Error("invalid boolean - "+t)}hex(t,e){return"string"==typeof t&&(e||"0x"===t.substring(0,2)||(t="0x"+t),n1(t))?t.toLowerCase():oe.throwArgumentError("invalid hash","value",t)}data(t,e){let r=this.hex(t,e);if(r.length%2!=0)throw Error("invalid data; odd-length - "+t);return r}address(t){return fb(t)}callAddress(t){if(!n1(t,32))return null;let e=fb(n8(t,12));return"0x0000000000000000000000000000000000000000"===e?null:e}contractAddress(t){return function(t){let e=null;try{e=fb(t.from)}catch(e){fd.throwArgumentError("missing from address","transaction",t)}return fb(n8(iG(fu([e,n0(nQ(io.from(t.nonce).toHexString()))])),12))}(t)}blockTag(t){if(null==t)return"latest";if("earliest"===t)return"0x0";if("latest"===t||"pending"===t)return t;if("number"==typeof t||n1(t))return n4(t);throw Error("invalid blockTag")}hash(t,e){let r=this.hex(t,e);return 32!==n2(r)?oe.throwArgumentError("invalid hash","value",t):r}difficulty(t){if(null==t)return null;let e=io.from(t);try{return e.toNumber()}catch(t){}return null}uint256(t){if(!n1(t))throw Error("invalid uint256");return n9(t,32)}_block(t,e){return null!=t.author&&null==t.miner&&(t.miner=t.author),or.check(e,t)}block(t){return this._block(t,this.formats.block)}blockWithTransactions(t){return this._block(t,this.formats.blockWithTransactions)}transactionRequest(t){return or.check(this.formats.transactionRequest,t)}transactionResponse(t){null!=t.gas&&null==t.gasLimit&&(t.gasLimit=t.gas),t.to&&io.from(t.to).isZero()&&(t.to="0x0000000000000000000000000000000000000000"),null!=t.input&&null==t.data&&(t.data=t.input),null==t.to&&null==t.creates&&(t.creates=this.contractAddress(t)),(1===t.type||2===t.type)&&null==t.accessList&&(t.accessList=[]);let e=or.check(this.formats.transaction,t);if(null!=t.chainId){let r=t.chainId;n1(r)&&(r=io.from(r).toNumber()),e.chainId=r}else{let r=t.networkId;null==r&&null==e.v&&(r=t.chainId),n1(r)&&(r=io.from(r).toNumber()),"number"!=typeof r&&null!=e.v&&((r=(e.v-35)/2)<0&&(r=0),r=parseInt(r)),"number"!=typeof r&&(r=0),e.chainId=r}return e.blockHash&&"x"===e.blockHash.replace(/0/g,"")&&(e.blockHash=null),e}transaction(t){return function(t){let e=nQ(t);if(e[0]>127)return function(t){let e=fc(t);9!==e.length&&6!==e.length&&f0.throwArgumentError("invalid raw transaction","rawTransaction",t);let r={nonce:f6(e[0]).toNumber(),gasPrice:f6(e[1]),gasLimit:f6(e[2]),to:f1(e[3]),value:f6(e[4]),data:e[5],chainId:0};if(6===e.length)return r;try{r.v=io.from(e[6]).toNumber()}catch(t){return r}if(r.r=n9(e[7],32),r.s=n9(e[8],32),io.from(r.r).isZero()&&io.from(r.s).isZero())r.chainId=r.v,r.v=0;else{r.chainId=Math.floor((r.v-35)/2),r.chainId<0&&(r.chainId=0);let n=r.v-27,i=e.slice(0,6);0!==r.chainId&&(i.push(n5(r.chainId)),i.push("0x"),i.push("0x"),n-=2*r.chainId+8);let f=iG(fu(i));try{r.from=f5(f,{r:n5(r.r),s:n5(r.s),recoveryParam:n})}catch(t){}r.hash=iG(t)}return r.type=null,r}(e);switch(e[0]){case 1:return function(t){let e=fc(t.slice(1));8!==e.length&&11!==e.length&&f0.throwArgumentError("invalid component count for transaction type: 1","payload",n5(t));let r={type:1,chainId:f6(e[0]).toNumber(),nonce:f6(e[1]).toNumber(),gasPrice:f6(e[2]),gasLimit:f6(e[3]),to:f1(e[4]),value:f6(e[5]),data:e[6],accessList:f3(e[7])};return 8===e.length||(r.hash=iG(t),ot(r,e.slice(8),f7)),r}(e);case 2:return function(t){let e=fc(t.slice(1));9!==e.length&&12!==e.length&&f0.throwArgumentError("invalid component count for transaction type: 2","payload",n5(t));let r=f6(e[2]),n=f6(e[3]),i={type:2,chainId:f6(e[0]).toNumber(),nonce:f6(e[1]).toNumber(),maxPriorityFeePerGas:r,maxFeePerGas:n,gasPrice:null,gasLimit:f6(e[4]),to:f1(e[5]),value:f6(e[6]),data:e[7],accessList:f3(e[8])};return 9===e.length||(i.hash=iG(t),ot(i,e.slice(9),f9)),i}(e)}return f0.throwError(`unsupported transaction type: ${e[0]}`,nV.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:e[0]})}(t)}receiptLog(t){return or.check(this.formats.receiptLog,t)}receipt(t){let e=or.check(this.formats.receipt,t);if(null!=e.root){if(e.root.length<=4){let t=io.from(e.root).toNumber();0===t||1===t?(null!=e.status&&e.status!==t&&oe.throwArgumentError("alt-root-status/status mismatch","value",{root:e.root,status:e.status}),e.status=t,delete e.root):oe.throwArgumentError("invalid alt-root-status","value.root",e.root)}else 66!==e.root.length&&oe.throwArgumentError("invalid root hash","value.root",e.root)}return null!=e.status&&(e.byzantium=!0),e}topics(t){return Array.isArray(t)?t.map(t=>this.topics(t)):null!=t?this.hash(t,!0):null}filter(t){return or.check(this.formats.filter,t)}filterLog(t){return or.check(this.formats.filterLog,t)}static check(t,e){let r={};for(let n in t)try{let i=t[n](e[n]);void 0!==i&&(r[n]=i)}catch(t){throw t.checkKey=n,t.checkValue=e[n],t}return r}static allowNull(t,e){return function(r){return null==r?e:t(r)}}static allowFalsish(t,e){return function(r){return r?t(r):e}}static arrayOf(t){return function(e){if(!Array.isArray(e))throw Error("not an array");let r=[];return e.forEach(function(e){r.push(t(e))}),r}}}function on(t){return t&&"function"==typeof t.isCommunityResource}function oi(t){return on(t)&&t.isCommunityResource()}let of=!1;function oo(){of||(of=!0,console.log("========= NOTICE ========="),console.log("Request-Rate Exceeded  (this message will not be repeated)"),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.io/api-keys/"),console.log("=========================="))}var oa=function(t,e,r,n){return new(r||(r=Promise))(function(i,f){function o(t){try{s(n.next(t))}catch(t){f(t)}}function a(t){try{s(n.throw(t))}catch(t){f(t)}}function s(t){var e;t.done?i(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(o,a)}s((n=n.apply(t,e||[])).next())})};let os=new nV(ff);function ou(t){return null==t?"null":(32!==n2(t)&&os.throwArgumentError("invalid topic","topic",t),t.toLowerCase())}function ol(t){for(t=t.slice();t.length>0&&null==t[t.length-1];)t.pop();return t.map(t=>{if(!Array.isArray(t))return ou(t);{let e={};t.forEach(t=>{e[ou(t)]=!0});let r=Object.keys(e);return r.sort(),r.join("|")}}).join("&")}function oh(t){if("string"==typeof t){if(32===n2(t=t.toLowerCase()))return"tx:"+t;if(-1===t.indexOf(":"))return t}else if(Array.isArray(t))return"filter:*:"+ol(t);else if(iw.isForkEvent(t))throw os.warn("not implemented"),Error("not implemented");else if(t&&"object"==typeof t)return"filter:"+(t.address||"*")+":"+ol(t.topics||[]);throw Error("invalid event - "+t)}function oc(){return new Date().getTime()}function od(t){return new Promise(e=>{setTimeout(e,t)})}let op=["block","network","pending","poll"];class om{constructor(t,e,r){ic(this,"tag",t),ic(this,"listener",e),ic(this,"once",r)}get event(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}get type(){return this.tag.split(":")[0]}get hash(){let t=this.tag.split(":");return"tx"!==t[0]?null:t[1]}get filter(){var t;let e=this.tag.split(":");if("filter"!==e[0])return null;let r=e[1],n=""===(t=e[2])?[]:t.split(/&/g).map(t=>{if(""===t)return[];let e=t.split("|").map(t=>"null"===t?null:t);return 1===e.length?e[0]:e}),i={};return n.length>0&&(i.topics=n),r&&"*"!==r&&(i.address=r),i}pollable(){return this.tag.indexOf(":")>=0||op.indexOf(this.tag)>=0}}let og={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function ob(t){return n9(io.from(t).toHexString(),32)}function oy(t){return iP.encode(n$([t,n8(i4(i4(t)),0,4)]))}class ov{constructor(t,e,r){ic(this,"provider",t),ic(this,"name",r),ic(this,"address",t.formatter.address(e))}_fetchBytes(t,e){return oa(this,void 0,void 0,function*(){let r={to:this.address,data:n3([t,i2(this.name),e||"0x"])};try{let t=yield this.provider.call(r);if("0x"===t)return null;let e=io.from(n8(t,0,32)).toNumber(),n=io.from(n8(t,e,e+32)).toNumber();return n8(t,e+32,e+32+n)}catch(t){return t.code,nV.errors.CALL_EXCEPTION,null}})}_getAddress(t,e){let r=og[String(t)];if(null==r&&os.throwError(`unsupported coin type: ${t}`,nV.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${t})`}),"eth"===r.ilk)return this.provider.formatter.address(e);let n=nQ(e);if(null!=r.p2pkh){let t=e.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(t){let e=parseInt(t[1],16);if(t[2].length===2*e&&e>=1&&e<=75)return oy(n$([[r.p2pkh],"0x"+t[2]]))}}if(null!=r.p2sh){let t=e.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(t){let e=parseInt(t[1],16);if(t[2].length===2*e&&e>=1&&e<=75)return oy(n$([[r.p2sh],"0x"+t[2]]))}}if(null!=r.prefix){let t=n[1],e=n[0];if(0===e?20!==t&&32!==t&&(e=-1):e=-1,e>=0&&n.length===2+t&&t>=1&&t<=75){let t=fi().toWords(n.slice(2));return t.unshift(e),fi().encode(r.prefix,t)}}return null}getAddress(t){return oa(this,void 0,void 0,function*(){if(null==t&&(t=60),60===t)try{let t={to:this.address,data:"0x3b3b57de"+i2(this.name).substring(2)},e=yield this.provider.call(t);if("0x"===e||"0x0000000000000000000000000000000000000000000000000000000000000000"===e)return null;return this.provider.formatter.callAddress(e)}catch(t){if(t.code===nV.errors.CALL_EXCEPTION)return null;throw t}let e=yield this._fetchBytes("0xf1cb7e06",ob(t));if(null==e||"0x"===e)return null;let r=this._getAddress(t,e);return null==r&&os.throwError("invalid or unsupported coin data",nV.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${t})`,coinType:t,data:e}),r})}getContentHash(){return oa(this,void 0,void 0,function*(){let t=yield this._fetchBytes("0xbc1c58d1");if(null==t||"0x"===t)return null;let e=t.match(/^0xe3010170(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(e){let t=parseInt(e[3],16);if(e[4].length===2*t)return"ipfs://"+iP.encode("0x"+e[1])}let r=t.match(/^0xe40101fa011b20([0-9a-f]*)$/);return r&&64===r[1].length?"bzz://"+r[1]:os.throwError("invalid or unsupported content hash data",nV.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:t})})}getText(t){return oa(this,void 0,void 0,function*(){let e=iB(t);(e=n$([ob(64),ob(e.length),e])).length%32!=0&&(e=n$([e,n9("0x",32-t.length%32)]));let r=yield this._fetchBytes("0x59d1d43c",n5(e));return null==r||"0x"===r?null:iL(r)})}}let ow=null,oM=1;class oE extends iM{constructor(t){if(os.checkNew(new.target,iM),super(),this._events=[],this._emitted={block:-2},this.formatter=new.target.getFormatter(),ic(this,"anyNetwork","any"===t),this.anyNetwork&&(t=this.detectNetwork()),t instanceof Promise)this._networkPromise=t,t.catch(t=>{}),this._ready().catch(t=>{});else{let e=id(new.target,"getNetwork")(t);e?(ic(this,"_network",e),this.emit("network",e,null)):os.throwArgumentError("invalid network","network",t)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return oa(this,void 0,void 0,function*(){if(null==this._network){let t=null;if(this._networkPromise)try{t=yield this._networkPromise}catch(t){}null==t&&(t=yield this.detectNetwork()),t||os.throwError("no network detected",nV.errors.UNKNOWN_ERROR,{}),null==this._network&&(this.anyNetwork?this._network=t:ic(this,"_network",t),this.emit("network",t,null))}return this._network})}get ready(){return fr(()=>this._ready().then(t=>t,t=>{if(t.code!==nV.errors.NETWORK_ERROR||"noNetwork"!==t.event)throw t}))}static getFormatter(){return null==ow&&(ow=new or),ow}static getNetwork(t){return iC(null==t?"homestead":t)}_getInternalBlockNumber(t){return oa(this,void 0,void 0,function*(){if(yield this._ready(),t>0)for(;this._internalBlockNumber;){let e=this._internalBlockNumber;try{let r=yield e;if(oc()-r.respTime<=t)return r.blockNumber;break}catch(t){if(this._internalBlockNumber===e)break}}let e=oc(),r=ip({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then(t=>null,t=>t)}).then(({blockNumber:t,networkError:n})=>{if(n)throw this._internalBlockNumber===r&&(this._internalBlockNumber=null),n;let i=oc();return(t=io.from(t).toNumber())<this._maxInternalBlockNumber&&(t=this._maxInternalBlockNumber),this._maxInternalBlockNumber=t,this._setFastBlockNumber(t),{blockNumber:t,reqTime:e,respTime:i}});return this._internalBlockNumber=r,r.catch(t=>{this._internalBlockNumber===r&&(this._internalBlockNumber=null)}),(yield r).blockNumber})}poll(){return oa(this,void 0,void 0,function*(){let t=oM++,e=[],r=null;try{r=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}catch(t){this.emit("error",t);return}if(this._setFastBlockNumber(r),this.emit("poll",t,r),r===this._lastBlockNumber){this.emit("didPoll",t);return}if(-2===this._emitted.block&&(this._emitted.block=r-1),Math.abs(this._emitted.block-r)>1e3)os.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${r})`),this.emit("error",os.makeError("network block skew detected",nV.errors.NETWORK_ERROR,{blockNumber:r,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",r);else for(let t=this._emitted.block+1;t<=r;t++)this.emit("block",t);this._emitted.block!==r&&(this._emitted.block=r,Object.keys(this._emitted).forEach(t=>{if("block"===t)return;let e=this._emitted[t];"pending"!==e&&r-e>12&&delete this._emitted[t]})),-2===this._lastBlockNumber&&(this._lastBlockNumber=r-1),this._events.forEach(t=>{switch(t.type){case"tx":{let r=t.hash,n=this.getTransactionReceipt(r).then(t=>(t&&null!=t.blockNumber&&(this._emitted["t:"+r]=t.blockNumber,this.emit(r,t)),null)).catch(t=>{this.emit("error",t)});e.push(n);break}case"filter":{let n=t.filter;n.fromBlock=this._lastBlockNumber+1,n.toBlock=r;let i=this.getLogs(n).then(t=>{0!==t.length&&t.forEach(t=>{this._emitted["b:"+t.blockHash]=t.blockNumber,this._emitted["t:"+t.transactionHash]=t.blockNumber,this.emit(n,t)})}).catch(t=>{this.emit("error",t)});e.push(i)}}}),this._lastBlockNumber=r,Promise.all(e).then(()=>{this.emit("didPoll",t)}).catch(t=>{this.emit("error",t)})})}resetEventsBlock(t){this._lastBlockNumber=t-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return oa(this,void 0,void 0,function*(){return os.throwError("provider does not support network detection",nV.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})})}getNetwork(){return oa(this,void 0,void 0,function*(){let t=yield this._ready(),e=yield this.detectNetwork();if(t.chainId!==e.chainId){if(this.anyNetwork)return this._network=e,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",e,t),yield od(0),this._network;let r=os.makeError("underlying network changed",nV.errors.NETWORK_ERROR,{event:"changed",network:t,detectedNetwork:e});throw this.emit("error",r),r}return t})}get blockNumber(){return this._getInternalBlockNumber(100+this.pollingInterval/2).then(t=>{this._setFastBlockNumber(t)},t=>{}),null!=this._fastBlockNumber?this._fastBlockNumber:-1}get polling(){return null!=this._poller}set polling(t){t&&!this._poller?(this._poller=setInterval(()=>{this.poll()},this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout(()=>{this.poll(),this._bootstrapPoll=setTimeout(()=>{this._poller||this.poll(),this._bootstrapPoll=null},this.pollingInterval)},0))):!t&&this._poller&&(clearInterval(this._poller),this._poller=null)}get pollingInterval(){return this._pollingInterval}set pollingInterval(t){if("number"!=typeof t||t<=0||parseInt(String(t))!=t)throw Error("invalid polling interval");this._pollingInterval=t,this._poller&&(clearInterval(this._poller),this._poller=setInterval(()=>{this.poll()},this._pollingInterval))}_getFastBlockNumber(){let t=oc();return t-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=t,this._fastBlockNumberPromise=this.getBlockNumber().then(t=>((null==this._fastBlockNumber||t>this._fastBlockNumber)&&(this._fastBlockNumber=t),this._fastBlockNumber))),this._fastBlockNumberPromise}_setFastBlockNumber(t){(null==this._fastBlockNumber||!(t<this._fastBlockNumber))&&(this._fastQueryDate=oc(),(null==this._fastBlockNumber||t>this._fastBlockNumber)&&(this._fastBlockNumber=t,this._fastBlockNumberPromise=Promise.resolve(t)))}waitForTransaction(t,e,r){return oa(this,void 0,void 0,function*(){return this._waitForTransaction(t,null==e?1:e,r||0,null)})}_waitForTransaction(t,e,r,n){return oa(this,void 0,void 0,function*(){let i=yield this.getTransactionReceipt(t);return(i?i.confirmations:0)>=e?i:new Promise((i,f)=>{let o=[],a=!1,s=function(){return!!a||(a=!0,o.forEach(t=>{t()}),!1)},u=t=>{t.confirmations<e||s()||i(t)};if(this.on(t,u),o.push(()=>{this.removeListener(t,u)}),n){let r=n.startBlock,i=null,u=o=>oa(this,void 0,void 0,function*(){a||(yield od(1e3),this.getTransactionCount(n.from).then(l=>oa(this,void 0,void 0,function*(){if(!a){if(l<=n.nonce)r=o;else{{let e=yield this.getTransaction(t);if(e&&null!=e.blockNumber)return}for(null==i&&(i=r-3)<n.startBlock&&(i=n.startBlock);i<=o;){if(a)return;let r=yield this.getBlockWithTransactions(i);for(let i=0;i<r.transactions.length;i++){let o=r.transactions[i];if(o.hash===t)return;if(o.from===n.from&&o.nonce===n.nonce){if(a)return;let r=yield this.waitForTransaction(o.hash,e);if(s())return;let i="replaced";o.data===n.data&&o.to===n.to&&o.value.eq(n.value)?i="repriced":"0x"===o.data&&o.from===o.to&&o.value.isZero()&&(i="cancelled"),f(os.makeError("transaction was replaced",nV.errors.TRANSACTION_REPLACED,{cancelled:"replaced"===i||"cancelled"===i,reason:i,replacement:this._wrapTransaction(o),hash:t,receipt:r}));return}}i++}}a||this.once("block",u)}}),t=>{a||this.once("block",u)}))});if(a)return;this.once("block",u),o.push(()=>{this.removeListener("block",u)})}if("number"==typeof r&&r>0){let t=setTimeout(()=>{s()||f(os.makeError("timeout exceeded",nV.errors.TIMEOUT,{timeout:r}))},r);t.unref&&t.unref(),o.push(()=>{clearTimeout(t)})}})})}getBlockNumber(){return oa(this,void 0,void 0,function*(){return this._getInternalBlockNumber(0)})}getGasPrice(){return oa(this,void 0,void 0,function*(){yield this.getNetwork();let t=yield this.perform("getGasPrice",{});try{return io.from(t)}catch(e){return os.throwError("bad result from backend",nV.errors.SERVER_ERROR,{method:"getGasPrice",result:t,error:e})}})}getBalance(t,e){return oa(this,void 0,void 0,function*(){yield this.getNetwork();let r=yield ip({address:this._getAddress(t),blockTag:this._getBlockTag(e)}),n=yield this.perform("getBalance",r);try{return io.from(n)}catch(t){return os.throwError("bad result from backend",nV.errors.SERVER_ERROR,{method:"getBalance",params:r,result:n,error:t})}})}getTransactionCount(t,e){return oa(this,void 0,void 0,function*(){yield this.getNetwork();let r=yield ip({address:this._getAddress(t),blockTag:this._getBlockTag(e)}),n=yield this.perform("getTransactionCount",r);try{return io.from(n).toNumber()}catch(t){return os.throwError("bad result from backend",nV.errors.SERVER_ERROR,{method:"getTransactionCount",params:r,result:n,error:t})}})}getCode(t,e){return oa(this,void 0,void 0,function*(){yield this.getNetwork();let r=yield ip({address:this._getAddress(t),blockTag:this._getBlockTag(e)}),n=yield this.perform("getCode",r);try{return n5(n)}catch(t){return os.throwError("bad result from backend",nV.errors.SERVER_ERROR,{method:"getCode",params:r,result:n,error:t})}})}getStorageAt(t,e,r){return oa(this,void 0,void 0,function*(){yield this.getNetwork();let n=yield ip({address:this._getAddress(t),blockTag:this._getBlockTag(r),position:Promise.resolve(e).then(t=>n4(t))}),i=yield this.perform("getStorageAt",n);try{return n5(i)}catch(t){return os.throwError("bad result from backend",nV.errors.SERVER_ERROR,{method:"getStorageAt",params:n,result:i,error:t})}})}_wrapTransaction(t,e,r){if(null!=e&&32!==n2(e))throw Error("invalid response - sendTransaction");return null!=e&&t.hash!==e&&os.throwError("Transaction hash mismatch from Provider.sendTransaction.",nV.errors.UNKNOWN_ERROR,{expectedHash:t.hash,returnedHash:e}),t.wait=(e,n)=>oa(this,void 0,void 0,function*(){let i;null==e&&(e=1),null==n&&(n=0),0!==e&&null!=r&&(i={data:t.data,from:t.from,nonce:t.nonce,to:t.to,value:t.value,startBlock:r});let f=yield this._waitForTransaction(t.hash,e,n,i);return null==f&&0===e?null:(this._emitted["t:"+t.hash]=f.blockNumber,0===f.status&&os.throwError("transaction failed",nV.errors.CALL_EXCEPTION,{transactionHash:t.hash,transaction:t,receipt:f}),f)}),t}sendTransaction(t){return oa(this,void 0,void 0,function*(){yield this.getNetwork();let e=yield Promise.resolve(t).then(t=>n5(t)),r=this.formatter.transaction(t);null==r.confirmations&&(r.confirmations=0);let n=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{let t=yield this.perform("sendTransaction",{signedTransaction:e});return this._wrapTransaction(r,t,n)}catch(t){throw t.transaction=r,t.transactionHash=r.hash,t}})}_getTransactionRequest(t){return oa(this,void 0,void 0,function*(){let e=yield t,r={};return["from","to"].forEach(t=>{null!=e[t]&&(r[t]=Promise.resolve(e[t]).then(t=>t?this._getAddress(t):null))}),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach(t=>{null!=e[t]&&(r[t]=Promise.resolve(e[t]).then(t=>t?io.from(t):null))}),["type"].forEach(t=>{null!=e[t]&&(r[t]=Promise.resolve(e[t]).then(t=>null!=t?t:null))}),e.accessList&&(r.accessList=this.formatter.accessList(e.accessList)),["data"].forEach(t=>{null!=e[t]&&(r[t]=Promise.resolve(e[t]).then(t=>t?n5(t):null))}),this.formatter.transactionRequest((yield ip(r)))})}_getFilter(t){return oa(this,void 0,void 0,function*(){t=yield t;let e={};return null!=t.address&&(e.address=this._getAddress(t.address)),["blockHash","topics"].forEach(r=>{null!=t[r]&&(e[r]=t[r])}),["fromBlock","toBlock"].forEach(r=>{null!=t[r]&&(e[r]=this._getBlockTag(t[r]))}),this.formatter.filter((yield ip(e)))})}call(t,e){return oa(this,void 0,void 0,function*(){yield this.getNetwork();let r=yield ip({transaction:this._getTransactionRequest(t),blockTag:this._getBlockTag(e)}),n=yield this.perform("call",r);try{return n5(n)}catch(t){return os.throwError("bad result from backend",nV.errors.SERVER_ERROR,{method:"call",params:r,result:n,error:t})}})}estimateGas(t){return oa(this,void 0,void 0,function*(){yield this.getNetwork();let e=yield ip({transaction:this._getTransactionRequest(t)}),r=yield this.perform("estimateGas",e);try{return io.from(r)}catch(t){return os.throwError("bad result from backend",nV.errors.SERVER_ERROR,{method:"estimateGas",params:e,result:r,error:t})}})}_getAddress(t){return oa(this,void 0,void 0,function*(){let e=yield this.resolveName(t);return null==e&&os.throwError("ENS name not configured",nV.errors.UNSUPPORTED_OPERATION,{operation:`resolveName(${JSON.stringify(t)})`}),e})}_getBlock(t,e){return oa(this,void 0,void 0,function*(){yield this.getNetwork();let r=-128,n={includeTransactions:!!e};if(n1(t=yield t,32))n.blockHash=t;else try{n.blockTag=this.formatter.blockTag((yield this._getBlockTag(t))),n1(n.blockTag)&&(r=parseInt(n.blockTag.substring(2),16))}catch(e){os.throwArgumentError("invalid block hash or block tag","blockHashOrBlockTag",t)}return fr(()=>oa(this,void 0,void 0,function*(){let t=yield this.perform("getBlock",n);if(null==t)return null!=n.blockHash&&null==this._emitted["b:"+n.blockHash]||null!=n.blockTag&&r>this._emitted.block?null:void 0;if(e){let e=null;for(let r=0;r<t.transactions.length;r++){let n=t.transactions[r];if(null==n.blockNumber)n.confirmations=0;else if(null==n.confirmations){null==e&&(e=yield this._getInternalBlockNumber(100+2*this.pollingInterval));let t=e-n.blockNumber+1;t<=0&&(t=1),n.confirmations=t}}let r=this.formatter.blockWithTransactions(t);return r.transactions=r.transactions.map(t=>this._wrapTransaction(t)),r}return this.formatter.block(t)}),{oncePoll:this})})}getBlock(t){return this._getBlock(t,!1)}getBlockWithTransactions(t){return this._getBlock(t,!0)}getTransaction(t){return oa(this,void 0,void 0,function*(){yield this.getNetwork(),t=yield t;let e={transactionHash:this.formatter.hash(t,!0)};return fr(()=>oa(this,void 0,void 0,function*(){let r=yield this.perform("getTransaction",e);if(null==r)return null==this._emitted["t:"+t]?null:void 0;let n=this.formatter.transactionResponse(r);if(null==n.blockNumber)n.confirmations=0;else if(null==n.confirmations){let t=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-n.blockNumber+1;t<=0&&(t=1),n.confirmations=t}return this._wrapTransaction(n)}),{oncePoll:this})})}getTransactionReceipt(t){return oa(this,void 0,void 0,function*(){yield this.getNetwork(),t=yield t;let e={transactionHash:this.formatter.hash(t,!0)};return fr(()=>oa(this,void 0,void 0,function*(){let r=yield this.perform("getTransactionReceipt",e);if(null==r)return null==this._emitted["t:"+t]?null:void 0;if(null==r.blockHash)return;let n=this.formatter.receipt(r);if(null==n.blockNumber)n.confirmations=0;else if(null==n.confirmations){let t=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-n.blockNumber+1;t<=0&&(t=1),n.confirmations=t}return n}),{oncePoll:this})})}getLogs(t){return oa(this,void 0,void 0,function*(){yield this.getNetwork();let e=yield ip({filter:this._getFilter(t)}),r=yield this.perform("getLogs",e);return r.forEach(t=>{null==t.removed&&(t.removed=!1)}),or.arrayOf(this.formatter.filterLog.bind(this.formatter))(r)})}getEtherPrice(){return oa(this,void 0,void 0,function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})})}_getBlockTag(t){return oa(this,void 0,void 0,function*(){if("number"==typeof(t=yield t)&&t<0){t%1&&os.throwArgumentError("invalid BlockTag","blockTag",t);let e=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return(e+=t)<0&&(e=0),this.formatter.blockTag(e)}return this.formatter.blockTag(t)})}getResolver(t){return oa(this,void 0,void 0,function*(){try{let e=yield this._getResolver(t);if(null==e)return null;return new ov(this,e,t)}catch(t){return t.code,nV.errors.CALL_EXCEPTION,null}})}_getResolver(t){return oa(this,void 0,void 0,function*(){let e=yield this.getNetwork();e.ensAddress||os.throwError("network does not support ENS",nV.errors.UNSUPPORTED_OPERATION,{operation:"ENS",network:e.name});let r={to:e.ensAddress,data:"0x0178b8bf"+i2(t).substring(2)};try{return this.formatter.callAddress((yield this.call(r)))}catch(t){if(t.code===nV.errors.CALL_EXCEPTION)return null;throw t}})}resolveName(t){return oa(this,void 0,void 0,function*(){t=yield t;try{return Promise.resolve(this.formatter.address(t))}catch(e){if(n1(t))throw e}"string"!=typeof t&&os.throwArgumentError("invalid ENS name","name",t);let e=yield this.getResolver(t);return e?yield e.getAddress():null})}lookupAddress(t){return oa(this,void 0,void 0,function*(){t=yield t;let e=(t=this.formatter.address(t)).substring(2).toLowerCase()+".addr.reverse",r=yield this._getResolver(e);if(!r)return null;let n=nQ((yield this.call({to:r,data:"0x691f3431"+i2(e).substring(2)})));if(n.length<32||!io.from(n.slice(0,32)).eq(32)||(n=n.slice(32)).length<32)return null;let i=io.from(n.slice(0,32)).toNumber();if(i>(n=n.slice(32)).length)return null;let f=iL(n.slice(0,i));return(yield this.resolveName(f))!=t?null:f})}perform(t,e){return os.throwError(t+" not implemented",nV.errors.NOT_IMPLEMENTED,{operation:t})}_startEvent(t){this.polling=this._events.filter(t=>t.pollable()).length>0}_stopEvent(t){this.polling=this._events.filter(t=>t.pollable()).length>0}_addEventListener(t,e,r){let n=new om(oh(t),e,r);return this._events.push(n),this._startEvent(n),this}on(t,e){return this._addEventListener(t,e,!1)}once(t,e){return this._addEventListener(t,e,!0)}emit(t,...e){let r=!1,n=[],i=oh(t);return this._events=this._events.filter(t=>t.tag!==i||(setTimeout(()=>{t.listener.apply(this,e)},0),r=!0,!t.once||(n.push(t),!1))),n.forEach(t=>{this._stopEvent(t)}),r}listenerCount(t){if(!t)return this._events.length;let e=oh(t);return this._events.filter(t=>t.tag===e).length}listeners(t){if(null==t)return this._events.map(t=>t.listener);let e=oh(t);return this._events.filter(t=>t.tag===e).map(t=>t.listener)}off(t,e){if(null==e)return this.removeAllListeners(t);let r=[],n=!1,i=oh(t);return this._events=this._events.filter(t=>t.tag!==i||t.listener!=e||!!n||(n=!0,r.push(t),!1)),r.forEach(t=>{this._stopEvent(t)}),this}removeAllListeners(t){let e=[];if(null==t)e=this._events,this._events=[];else{let r=oh(t);this._events=this._events.filter(t=>t.tag!==r||(e.push(t),!1))}return e.forEach(t=>{this._stopEvent(t)}),this}}var oA=function(t,e,r,n){return new(r||(r=Promise))(function(i,f){function o(t){try{s(n.next(t))}catch(t){f(t)}}function a(t){try{s(n.throw(t))}catch(t){f(t)}}function s(t){var e;t.done?i(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(o,a)}s((n=n.apply(t,e||[])).next())})};let oS=new nV("abstract-signer/5.7.0"),o_=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],oN=[nV.errors.INSUFFICIENT_FUNDS,nV.errors.NONCE_EXPIRED,nV.errors.REPLACEMENT_UNDERPRICED];class oT{constructor(){oS.checkAbstract(new.target,oT),ic(this,"_isSigner",!0)}getBalance(t){return oA(this,void 0,void 0,function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),t)})}getTransactionCount(t){return oA(this,void 0,void 0,function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),t)})}estimateGas(t){return oA(this,void 0,void 0,function*(){this._checkProvider("estimateGas");let e=yield ip(this.checkTransaction(t));return yield this.provider.estimateGas(e)})}call(t,e){return oA(this,void 0,void 0,function*(){this._checkProvider("call");let r=yield ip(this.checkTransaction(t));return yield this.provider.call(r,e)})}sendTransaction(t){return oA(this,void 0,void 0,function*(){this._checkProvider("sendTransaction");let e=yield this.populateTransaction(t),r=yield this.signTransaction(e);return yield this.provider.sendTransaction(r)})}getChainId(){return oA(this,void 0,void 0,function*(){return this._checkProvider("getChainId"),(yield this.provider.getNetwork()).chainId})}getGasPrice(){return oA(this,void 0,void 0,function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()})}getFeeData(){return oA(this,void 0,void 0,function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()})}resolveName(t){return oA(this,void 0,void 0,function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(t)})}checkTransaction(t){for(let e in t)-1===o_.indexOf(e)&&oS.throwArgumentError("invalid transaction key: "+e,"transaction",t);let e=im(t);return null==e.from?e.from=this.getAddress():e.from=Promise.all([Promise.resolve(e.from),this.getAddress()]).then(e=>(e[0].toLowerCase()!==e[1].toLowerCase()&&oS.throwArgumentError("from address mismatch","transaction",t),e[0])),e}populateTransaction(t){return oA(this,void 0,void 0,function*(){let e=yield ip(this.checkTransaction(t));null!=e.to&&(e.to=Promise.resolve(e.to).then(t=>oA(this,void 0,void 0,function*(){if(null==t)return null;let e=yield this.resolveName(t);return null==e&&oS.throwArgumentError("provided ENS name resolves to null","tx.to",t),e})),e.to.catch(t=>{}));let r=null!=e.maxFeePerGas||null!=e.maxPriorityFeePerGas;if(null!=e.gasPrice&&(2===e.type||r)?oS.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",t):(0===e.type||1===e.type)&&r&&oS.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",t),(2===e.type||null==e.type)&&null!=e.maxFeePerGas&&null!=e.maxPriorityFeePerGas)e.type=2;else if(0===e.type||1===e.type)null==e.gasPrice&&(e.gasPrice=this.getGasPrice());else{let t=yield this.getFeeData();if(null==e.type){if(null!=t.maxFeePerGas&&null!=t.maxPriorityFeePerGas){if(e.type=2,null!=e.gasPrice){let t=e.gasPrice;delete e.gasPrice,e.maxFeePerGas=t,e.maxPriorityFeePerGas=t}else null==e.maxFeePerGas&&(e.maxFeePerGas=t.maxFeePerGas),null==e.maxPriorityFeePerGas&&(e.maxPriorityFeePerGas=t.maxPriorityFeePerGas)}else null!=t.gasPrice?(r&&oS.throwError("network does not support EIP-1559",nV.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),null==e.gasPrice&&(e.gasPrice=t.gasPrice),e.type=0):oS.throwError("failed to get consistent fee data",nV.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"})}else 2===e.type&&(null==e.maxFeePerGas&&(e.maxFeePerGas=t.maxFeePerGas),null==e.maxPriorityFeePerGas&&(e.maxPriorityFeePerGas=t.maxPriorityFeePerGas))}return null==e.nonce&&(e.nonce=this.getTransactionCount("pending")),null==e.gasLimit&&(e.gasLimit=this.estimateGas(e).catch(t=>{if(oN.indexOf(t.code)>=0)throw t;return oS.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",nV.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,tx:e})})),null==e.chainId?e.chainId=this.getChainId():e.chainId=Promise.all([Promise.resolve(e.chainId),this.getChainId()]).then(e=>(0!==e[1]&&e[0]!==e[1]&&oS.throwArgumentError("chainId address mismatch","transaction",t),e[0])),yield ip(e)})}_checkProvider(t){this.provider||oS.throwError("missing provider",nV.errors.UNSUPPORTED_OPERATION,{operation:t||"_checkProvider"})}static isSigner(t){return!!(t&&t._isSigner)}}let oR=new nV(iz),oC=new Uint8Array(32);oC.fill(0);let oI=io.from(-1),oP=io.from(0),oO=io.from(1),ox=io.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),ok=n9(oO.toHexString(),32),oF=n9(oP.toHexString(),32),oB={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},oL=["name","version","chainId","verifyingContract","salt"];function oD(t){return function(e){return"string"!=typeof e&&oR.throwArgumentError(`invalid domain value for ${JSON.stringify(t)}`,`domain.${t}`,e),e}}let oU={name:oD("name"),version:oD("version"),chainId:function(t){try{return io.from(t).toString()}catch(t){}return oR.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",t)},verifyingContract:function(t){try{return fb(t).toLowerCase()}catch(t){}return oR.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",t)},salt:function(t){try{let e=nQ(t);if(32!==e.length)throw Error("bad length");return n5(e)}catch(t){}return oR.throwArgumentError('invalid domain value "salt"',"domain.salt",t)}};function oG(t){{let e=t.match(/^(u?)int(\d*)$/);if(e){let r=""===e[1],n=parseInt(e[2]||"256");(n%8!=0||n>256||e[2]&&e[2]!==String(n))&&oR.throwArgumentError("invalid numeric width","type",t);let i=ox.mask(r?n-1:n),f=r?i.add(oO).mul(oI):oP;return function(e){let r=io.from(e);return(r.lt(f)||r.gt(i))&&oR.throwArgumentError(`value out-of-bounds for ${t}`,"value",e),n9(r.toTwos(256).toHexString(),32)}}}{let e=t.match(/^bytes(\d+)$/);if(e){let r=parseInt(e[1]);return(0===r||r>32||e[1]!==String(r))&&oR.throwArgumentError("invalid bytes width","type",t),function(e){return nQ(e).length!==r&&oR.throwArgumentError(`invalid length for ${t}`,"value",e),function(t){let e=nQ(t),r=e.length%32;return r?n3([e,oC.slice(r)]):n5(e)}(e)}}}switch(t){case"address":return function(t){return n9(fb(t),32)};case"bool":return function(t){return t?ok:oF};case"bytes":return function(t){return iG(t)};case"string":return function(t){return iG(iB(t))}}return null}function oz(t,e){return`${t}(${e.map(({name:t,type:e})=>e+" "+t).join(",")})`}class oJ{constructor(t){ic(this,"types",Object.freeze(ib(t))),ic(this,"_encoderCache",{}),ic(this,"_types",{});let e={},r={},n={};for(let i in Object.keys(t).forEach(t=>{e[t]={},r[t]=[],n[t]={}}),t){let n={};t[i].forEach(f=>{n[f.name]&&oR.throwArgumentError(`duplicate variable name ${JSON.stringify(f.name)} in ${JSON.stringify(i)}`,"types",t),n[f.name]=!0;let o=f.type.match(/^([^\x5b]*)(\x5b|$)/)[1];o===i&&oR.throwArgumentError(`circular type reference to ${JSON.stringify(o)}`,"types",t),oG(o)||(r[o]||oR.throwArgumentError(`unknown type ${JSON.stringify(o)}`,"types",t),r[o].push(i),e[i][o]=!0)})}let i=Object.keys(r).filter(t=>0===r[t].length);for(let f in 0===i.length?oR.throwArgumentError("missing primary type","types",t):i.length>1&&oR.throwArgumentError(`ambiguous primary types or unused types: ${i.map(t=>JSON.stringify(t)).join(", ")}`,"types",t),ic(this,"primaryType",i[0]),!function i(f,o){o[f]&&oR.throwArgumentError(`circular type reference to ${JSON.stringify(f)}`,"types",t),o[f]=!0,Object.keys(e[f]).forEach(t=>{r[t]&&(i(t,o),Object.keys(o).forEach(e=>{n[e][t]=!0}))}),delete o[f]}(this.primaryType,{}),n){let e=Object.keys(n[f]);e.sort(),this._types[f]=oz(f,t[f])+e.map(e=>oz(e,t[e])).join("")}}getEncoder(t){let e=this._encoderCache[t];return e||(e=this._encoderCache[t]=this._getEncoder(t)),e}_getEncoder(t){{let e=oG(t);if(e)return e}let e=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(e){let t=e[1],r=this.getEncoder(t),n=parseInt(e[3]);return e=>{n>=0&&e.length!==n&&oR.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",e);let i=e.map(r);return this._types[t]&&(i=i.map(iG)),iG(n3(i))}}let r=this.types[t];if(r){let e=iG(iB(this._types[t]));return t=>{let n=r.map(({name:e,type:r})=>{let n=this.getEncoder(r)(t[e]);return this._types[r]?iG(n):n});return n.unshift(e),n3(n)}}return oR.throwArgumentError(`unknown type: ${t}`,"type",t)}encodeType(t){let e=this._types[t];return e||oR.throwArgumentError(`unknown type: ${JSON.stringify(t)}`,"name",t),e}encodeData(t,e){return this.getEncoder(t)(e)}hashStruct(t,e){return iG(this.encodeData(t,e))}encode(t){return this.encodeData(this.primaryType,t)}hash(t){return this.hashStruct(this.primaryType,t)}_visit(t,e,r){if(oG(t))return r(t,e);let n=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(n){let t=n[1],i=parseInt(n[3]);return i>=0&&e.length!==i&&oR.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",e),e.map(e=>this._visit(t,e,r))}let i=this.types[t];return i?i.reduce((t,{name:n,type:i})=>(t[n]=this._visit(i,e[n],r),t),{}):oR.throwArgumentError(`unknown type: ${t}`,"type",t)}visit(t,e){return this._visit(this.primaryType,t,e)}static from(t){return new oJ(t)}static getPrimaryType(t){return oJ.from(t).primaryType}static hashStruct(t,e,r){return oJ.from(e).hashStruct(t,r)}static hashDomain(t){let e=[];for(let r in t){let n=oB[r];n||oR.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(r)}`,"domain",t),e.push({name:r,type:n})}return e.sort((t,e)=>oL.indexOf(t.name)-oL.indexOf(e.name)),oJ.hashStruct("EIP712Domain",{EIP712Domain:e},t)}static encode(t,e,r){return n3(["0x1901",oJ.hashDomain(t),oJ.from(e).hash(r)])}static hash(t,e,r){return iG(oJ.encode(t,e,r))}static resolveNames(t,e,r,n){var i,f,o,a;return i=this,f=void 0,o=void 0,a=function*(){t=im(t);let i={};t.verifyingContract&&!n1(t.verifyingContract,20)&&(i[t.verifyingContract]="0x");let f=oJ.from(e);for(let t in f.visit(r,(t,e)=>("address"!==t||n1(e,20)||(i[e]="0x"),e)),i)i[t]=yield n(t);return t.verifyingContract&&i[t.verifyingContract]&&(t.verifyingContract=i[t.verifyingContract]),r=f.visit(r,(t,e)=>"address"===t&&i[e]?i[e]:e),{domain:t,value:r}},new(o||(o=Promise))(function(t,e){function r(t){try{s(a.next(t))}catch(t){e(t)}}function n(t){try{s(a.throw(t))}catch(t){e(t)}}function s(e){var i;e.done?t(e.value):((i=e.value)instanceof o?i:new o(function(t){t(i)})).then(r,n)}s((a=a.apply(i,f||[])).next())})}static getPayload(t,e,r){oJ.hashDomain(t);let n={},i=[];oL.forEach(e=>{let r=t[e];null!=r&&(n[e]=oU[e](r),i.push({name:e,type:oB[e]}))});let f=oJ.from(e),o=im(e);return o.EIP712Domain?oR.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",e):o.EIP712Domain=i,f.encode(r),{types:o,domain:n,primaryType:f.primaryType,message:f.visit(r,(t,e)=>{if(t.match(/^bytes(\d*)/))return n5(nQ(e));if(t.match(/^u?int/))return io.from(e).toString();switch(t){case"address":return e.toLowerCase();case"bool":return!!e;case"string":return"string"!=typeof e&&oR.throwArgumentError("invalid string","value",e),e}return oR.throwArgumentError("unsupported type","type",t)})}}}var oj=function(t,e,r,n){return new(r||(r=Promise))(function(i,f){function o(t){try{s(n.next(t))}catch(t){f(t)}}function a(t){try{s(n.throw(t))}catch(t){f(t)}}function s(t){var e;t.done?i(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(o,a)}s((n=n.apply(t,e||[])).next())})};let oH=new nV(ff),oV=["call","estimateGas"];function oX(t,e,r){if("call"===t&&e.code===nV.errors.SERVER_ERROR){let t=e.error;if(t&&t.message.match("reverted")&&n1(t.data))return t.data;oH.throwError("missing revert data in call exception",nV.errors.CALL_EXCEPTION,{error:e,data:"0x"})}let n=e.message;e.code===nV.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();let i=r.transaction||r.signedTransaction;throw n.match(/insufficient funds|base fee exceeds gas limit/)&&oH.throwError("insufficient funds for intrinsic transaction cost",nV.errors.INSUFFICIENT_FUNDS,{error:e,method:t,transaction:i}),n.match(/nonce too low/)&&oH.throwError("nonce has already been used",nV.errors.NONCE_EXPIRED,{error:e,method:t,transaction:i}),n.match(/replacement transaction underpriced/)&&oH.throwError("replacement fee too low",nV.errors.REPLACEMENT_UNDERPRICED,{error:e,method:t,transaction:i}),n.match(/only replay-protected/)&&oH.throwError("legacy pre-eip-155 transactions not supported",nV.errors.UNSUPPORTED_OPERATION,{error:e,method:t,transaction:i}),oV.indexOf(t)>=0&&n.match(/gas required exceeds allowance|always failing transaction|execution reverted/)&&oH.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",nV.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,method:t,transaction:i}),e}function oq(t){return new Promise(function(e){setTimeout(e,t)})}function oZ(t){if(t.error){let e=Error(t.error.message);throw e.code=t.error.code,e.data=t.error.data,e}return t.result}function oK(t){return t?t.toLowerCase():t}let oW={};class oY extends oT{constructor(t,e,r){if(oH.checkNew(new.target,oY),super(),t!==oW)throw Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");ic(this,"provider",e),null==r&&(r=0),"string"==typeof r?(ic(this,"_address",this.provider.formatter.address(r)),ic(this,"_index",null)):"number"==typeof r?(ic(this,"_index",r),ic(this,"_address",null)):oH.throwArgumentError("invalid address or index","addressOrIndex",r)}connect(t){return oH.throwError("cannot alter JSON-RPC Signer connection",nV.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new oQ(oW,this.provider,this._address||this._index)}getAddress(){return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then(t=>(t.length<=this._index&&oH.throwError("unknown account #"+this._index,nV.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(t[this._index])))}sendUncheckedTransaction(t){t=im(t);let e=this.getAddress().then(t=>(t&&(t=t.toLowerCase()),t));if(null==t.gasLimit){let r=im(t);r.from=e,t.gasLimit=this.provider.estimateGas(r)}return null!=t.to&&(t.to=Promise.resolve(t.to).then(t=>oj(this,void 0,void 0,function*(){if(null==t)return null;let e=yield this.provider.resolveName(t);return null==e&&oH.throwArgumentError("provided ENS name resolves to null","tx.to",t),e}))),ip({tx:ip(t),sender:e}).then(({tx:e,sender:r})=>{null!=e.from?e.from.toLowerCase()!==r&&oH.throwArgumentError("from address mismatch","transaction",t):e.from=r;let n=this.provider.constructor.hexlifyTransaction(e,{from:!0});return this.provider.send("eth_sendTransaction",[n]).then(t=>t,t=>oX("sendTransaction",t,n))})}signTransaction(t){return oH.throwError("signing transactions is unsupported",nV.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(t){return oj(this,void 0,void 0,function*(){let e=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),r=yield this.sendUncheckedTransaction(t);try{return yield fr(()=>oj(this,void 0,void 0,function*(){let t=yield this.provider.getTransaction(r);if(null!==t)return this.provider._wrapTransaction(t,r,e)}),{oncePoll:this.provider})}catch(t){throw t.transactionHash=r,t}})}signMessage(t){return oj(this,void 0,void 0,function*(){let e="string"==typeof t?iB(t):t,r=yield this.getAddress();return yield this.provider.send("eth_sign",[r.toLowerCase(),n5(e)])})}_signTypedData(t,e,r){return oj(this,void 0,void 0,function*(){let n=yield oJ.resolveNames(t,e,r,t=>this.provider.resolveName(t)),i=yield this.getAddress();return yield this.provider.send("eth_signTypedData_v4",[i.toLowerCase(),JSON.stringify(oJ.getPayload(n.domain,e,n.value))])})}unlock(t){return oj(this,void 0,void 0,function*(){let e=this.provider,r=yield this.getAddress();return e.send("personal_unlockAccount",[r.toLowerCase(),t,null])})}}class oQ extends oY{sendTransaction(t){return this.sendUncheckedTransaction(t).then(t=>({hash:t,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:e=>this.provider.waitForTransaction(t,e)}))}}let o$={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};class o0 extends oE{constructor(t,e){oH.checkNew(new.target,o0);let r=e;null==r&&(r=new Promise((t,e)=>{setTimeout(()=>{this.detectNetwork().then(e=>{t(e)},t=>{e(t)})},0)})),super(r),t||(t=id(this.constructor,"defaultUrl")()),"string"==typeof t?ic(this,"connection",Object.freeze({url:t})):ic(this,"connection",Object.freeze(im(t))),this._nextId=42}get _cache(){return null==this._eventLoopCache&&(this._eventLoopCache={}),this._eventLoopCache}static defaultUrl(){return"http://localhost:8545"}detectNetwork(){return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout(()=>{this._cache.detectNetwork=null},0)),this._cache.detectNetwork}_uncachedDetectNetwork(){return oj(this,void 0,void 0,function*(){yield oq(0);let t=null;try{t=yield this.send("eth_chainId",[])}catch(e){try{t=yield this.send("net_version",[])}catch(t){}}if(null!=t){let e=id(this.constructor,"getNetwork");try{return e(io.from(t).toNumber())}catch(e){return oH.throwError("could not detect network",nV.errors.NETWORK_ERROR,{chainId:t,event:"invalidNetwork",serverError:e})}}return oH.throwError("could not detect network",nV.errors.NETWORK_ERROR,{event:"noNetwork"})})}getSigner(t){return new oY(oW,this,t)}getUncheckedSigner(t){return this.getSigner(t).connectUnchecked()}listAccounts(){return this.send("eth_accounts",[]).then(t=>t.map(t=>this.formatter.address(t)))}send(t,e){let r={method:t,params:e,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:ib(r),provider:this});let n=["eth_chainId","eth_blockNumber"].indexOf(t)>=0;if(n&&this._cache[t])return this._cache[t];let i=fe(this.connection,JSON.stringify(r),oZ).then(t=>(this.emit("debug",{action:"response",request:r,response:t,provider:this}),t),t=>{throw this.emit("debug",{action:"response",error:t,request:r,provider:this}),t});return n&&(this._cache[t]=i,setTimeout(()=>{this._cache[t]=null},0)),i}prepareRequest(t,e){switch(t){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[oK(e.address),e.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[oK(e.address),e.blockTag]];case"getCode":return["eth_getCode",[oK(e.address),e.blockTag]];case"getStorageAt":return["eth_getStorageAt",[oK(e.address),e.position,e.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[e.signedTransaction]];case"getBlock":if(e.blockTag)return["eth_getBlockByNumber",[e.blockTag,!!e.includeTransactions]];if(e.blockHash)return["eth_getBlockByHash",[e.blockHash,!!e.includeTransactions]];break;case"getTransaction":return["eth_getTransactionByHash",[e.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[e.transactionHash]];case"call":return["eth_call",[id(this.constructor,"hexlifyTransaction")(e.transaction,{from:!0}),e.blockTag]];case"estimateGas":return["eth_estimateGas",[id(this.constructor,"hexlifyTransaction")(e.transaction,{from:!0})]];case"getLogs":return e.filter&&null!=e.filter.address&&(e.filter.address=oK(e.filter.address)),["eth_getLogs",[e.filter]]}return null}perform(t,e){return oj(this,void 0,void 0,function*(){if("call"===t||"estimateGas"===t){let t=e.transaction;if(t&&null!=t.type&&io.from(t.type).isZero()&&null==t.maxFeePerGas&&null==t.maxPriorityFeePerGas){let r=yield this.getFeeData();null==r.maxFeePerGas&&null==r.maxPriorityFeePerGas&&((e=im(e)).transaction=im(t),delete e.transaction.type)}}let r=this.prepareRequest(t,e);null==r&&oH.throwError(t+" not implemented",nV.errors.NOT_IMPLEMENTED,{operation:t});try{return yield this.send(r[0],r[1])}catch(r){return oX(t,r,e)}})}_startEvent(t){"pending"===t.tag&&this._startPending(),super._startEvent(t)}_startPending(){if(null!=this._pendingFilter)return;let t=this,e=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=e,e.then(function(r){return function n(){t.send("eth_getFilterChanges",[r]).then(function(r){if(t._pendingFilter!=e)return null;let n=Promise.resolve();return r.forEach(function(e){t._emitted["t:"+e.toLowerCase()]="pending",n=n.then(function(){return t.getTransaction(e).then(function(e){return t.emit("pending",e),null})})}),n.then(function(){return oq(1e3)})}).then(function(){if(t._pendingFilter!=e){t.send("eth_uninstallFilter",[r]);return}return setTimeout(function(){n()},0),null}).catch(t=>{})}(),r}).catch(t=>{})}_stopEvent(t){"pending"===t.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),super._stopEvent(t)}static hexlifyTransaction(t,e){let r=im(o$);if(e)for(let t in e)e[t]&&(r[t]=!0);t&&"object"==typeof t||ih.throwArgumentError("invalid object","object",t),Object.keys(t).forEach(e=>{r[e]||ih.throwArgumentError("invalid object key - "+e,"transaction:"+e,t)});let n={};return["gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(function(e){if(null==t[e])return;let r=n4(t[e]);"gasLimit"===e&&(e="gas"),n[e]=r}),["from","to","data"].forEach(function(e){null!=t[e]&&(n[e]=n5(t[e]))}),t.accessList&&(n.accessList=f3(t.accessList)),n}}let o1=null;try{if(o1=WebSocket,null==o1)throw Error("inject please")}catch(e){let t=new nV(ff);o1=function(){t.throwError("WebSockets not supported in this environment",nV.errors.UNSUPPORTED_OPERATION,{operation:"new WebSocket()"})}}var o6=function(t,e,r,n){return new(r||(r=Promise))(function(i,f){function o(t){try{s(n.next(t))}catch(t){f(t)}}function a(t){try{s(n.throw(t))}catch(t){f(t)}}function s(t){var e;t.done?i(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(o,a)}s((n=n.apply(t,e||[])).next())})};let o5=new nV(ff),o2=1;class o8 extends o0{constructor(t,e){"any"===e&&o5.throwError("WebSocketProvider does not support 'any' network yet",nV.errors.UNSUPPORTED_OPERATION,{operation:"network:any"}),super(t,e),this._pollingInterval=-1,this._wsReady=!1,ic(this,"_websocket",new o1(this.connection.url)),ic(this,"_requests",{}),ic(this,"_subs",{}),ic(this,"_subIds",{}),ic(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=>{let e=t.data,r=JSON.parse(e);if(null!=r.id){let 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?(ic(t=Error(r.error.message||"unknown error"),"code",r.error.code||null),ic(t,"response",e)):t=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){let t=this._subs[r.params.subscription];t&&t.processFunc(r.params.result)}else console.warn("this should not happen")};let r=setInterval(()=>{this.emit("poll")},1e3);r.unref&&r.unref()}detectNetwork(){return this._detectNetwork}get pollingInterval(){return 0}resetEventsBlock(t){o5.throwError("cannot reset events block on WebSocketProvider",nV.errors.UNSUPPORTED_OPERATION,{operation:"resetEventBlock"})}set pollingInterval(t){o5.throwError("cannot set polling interval on WebSocketProvider",nV.errors.UNSUPPORTED_OPERATION,{operation:"setPollingInterval"})}poll(){return o6(this,void 0,void 0,function*(){return null})}set polling(t){t&&o5.throwError("cannot set polling on WebSocketProvider",nV.errors.UNSUPPORTED_OPERATION,{operation:"setPolling"})}send(t,e){let r=o2++;return new Promise((n,i)=>{let f=JSON.stringify({method:t,params:e,id:r,jsonrpc:"2.0"});this.emit("debug",{action:"request",request:JSON.parse(f),provider:this}),this._requests[String(r)]={callback:function(t,e){return t?i(t):n(e)},payload:f},this._wsReady&&this._websocket.send(f)})}static defaultUrl(){return"ws://localhost:8546"}_subscribe(t,e,r){return o6(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);let i=yield n;this._subs[i]={tag:t,processFunc:r}})}_startEvent(t){switch(t.type){case"block":this._subscribe("block",["newHeads"],t=>{let e=io.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":{let e=t=>{let 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)}}_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;let 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 o6(this,void 0,void 0,function*(){this._websocket.readyState===o1.CONNECTING&&(yield new Promise(t=>{this._websocket.onopen=function(){t(!0)},this._websocket.onerror=function(){t(!1)}})),this._websocket.close(1e3)})}}let o3=new nV(ff);class o4 extends o0{detectNetwork(){var t,e,r,n;let i=Object.create(null,{detectNetwork:{get:()=>super.detectNetwork}});return t=this,e=void 0,r=void 0,n=function*(){let t=this.network;return null==t&&((t=yield i.detectNetwork.call(this))||o3.throwError("no network detected",nV.errors.UNKNOWN_ERROR,{}),null==this._network&&(ic(this,"_network",t),this.emit("network",t,null))),t},new(r||(r=Promise))(function(i,f){function o(t){try{s(n.next(t))}catch(t){f(t)}}function a(t){try{s(n.throw(t))}catch(t){f(t)}}function s(t){var e;t.done?i(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(o,a)}s((n=n.apply(t,e||[])).next())})}}class o9 extends o4{constructor(t,e){o3.checkAbstract(new.target,o9),t=id(new.target,"getNetwork")(t),super(id(new.target,"getUrl")(t,e=id(new.target,"getApiKey")(e)),t),"string"==typeof e?ic(this,"apiKey",e):null!=e&&Object.keys(e).forEach(t=>{ic(this,t,e[t])})}_startPending(){o3.warn("WARNING: API provider does not support pending filters")}isCommunityResource(){return!1}getSigner(t){return o3.throwError("API provider does not support signing",nV.errors.UNSUPPORTED_OPERATION,{operation:"getSigner"})}listAccounts(){return Promise.resolve([])}static getApiKey(t){return t}static getUrl(t,e){return o3.throwError("not implemented; sub-classes must override getUrl",nV.errors.NOT_IMPLEMENTED,{operation:"getUrl"})}}let o7=new nV(ff),at="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";class ae extends o8{constructor(t,e){let r=new ar(t,e);super(r.connection.url.replace(/^http/i,"ws").replace(".alchemyapi.",".ws.alchemyapi."),r.network),ic(this,"apiKey",r.apiKey)}isCommunityResource(){return this.apiKey===at}}class ar extends o9{static getWebSocketProvider(t,e){return new ae(t,e)}static getApiKey(t){return null==t?at:(t&&"string"!=typeof t&&o7.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"ropsten":r="eth-ropsten.alchemyapi.io/v2/";break;case"rinkeby":r="eth-rinkeby.alchemyapi.io/v2/";break;case"goerli":r="eth-goerli.alchemyapi.io/v2/";break;case"kovan":r="eth-kovan.alchemyapi.io/v2/";break;case"matic":r="polygon-mainnet.g.alchemy.com/v2/";break;case"maticmum":r="polygon-mumbai.g.alchemy.com/v2/";break;default:o7.throwArgumentError("unsupported network","network",arguments[0])}return{allowGzip:!0,url:"https://"+r+e,throttleCallback:(t,r)=>(e===at&&oo(),Promise.resolve(!0))}}isCommunityResource(){return this.apiKey===at}}let an=new nV(ff);class ai extends o9{static getApiKey(t){return null!=t&&an.throwArgumentError("apiKey not supported for cloudflare","apiKey",t),null}static getUrl(t,e){let r=null;return"homestead"===t.name?r="https://cloudflare-eth.com/":an.throwArgumentError("unsupported network","network",arguments[0]),r}perform(t,e){var r,n,i,f;let o=Object.create(null,{perform:{get:()=>super.perform}});return r=this,n=void 0,i=void 0,f=function*(){return"getBlockNumber"===t?(yield o.perform.call(this,"getBlock",{blockTag:"latest"})).number:o.perform.call(this,t,e)},new(i||(i=Promise))(function(t,e){function o(t){try{s(f.next(t))}catch(t){e(t)}}function a(t){try{s(f.throw(t))}catch(t){e(t)}}function s(e){var r;e.done?t(e.value):((r=e.value)instanceof i?r:new i(function(t){t(r)})).then(o,a)}s((f=f.apply(r,n||[])).next())})}}var af=function(t,e,r,n){return new(r||(r=Promise))(function(i,f){function o(t){try{s(n.next(t))}catch(t){f(t)}}function a(t){try{s(n.throw(t))}catch(t){f(t)}}function s(t){var e;t.done?i(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(o,a)}s((n=n.apply(t,e||[])).next())})};let ao=new nV(ff);function aa(t){let 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]?n4(n5(n)):"accessList"===r?"["+f3(n).map(t=>`{address:"${t.address}",storageKeys:["${t.storageKeys.join('","')}"]}`).join(",")+"]":n5(n),e[r]=n)}return e}function as(t){if(0==t.status&&("No records found"===t.message||"No transactions found"===t.message))return t.result;if(1!=t.status||"OK"!=t.message){let e=Error("invalid response");throw e.result=JSON.stringify(t),(t.result||"").toLowerCase().indexOf("rate limit")>=0&&(e.throttleRetry=!0),e}return t.result}function au(t){if(t&&0==t.status&&"NOTOK"==t.message&&(t.result||"").toLowerCase().indexOf("rate limit")>=0){let e=Error("throttled response");throw e.result=JSON.stringify(t),e.throttleRetry=!0,e}if("2.0"!=t.jsonrpc){let e=Error("invalid response");throw e.result=JSON.stringify(t),e}if(t.error){let e=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 al(t){if("pending"===t)throw Error("pending not supported");return"latest"===t?t:parseInt(t.substring(2),16)}let ah="9D13ZE7XSBTJ94N9BNJ2MA33VMAY2YPIRB";function ac(t,e,r){if("call"===t&&e.code===nV.errors.SERVER_ERROR){let 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,"")),n1(r))return r;ao.throwError("missing revert data in call exception",nV.errors.CALL_EXCEPTION,{error:e,data:"0x"})}}let n=e.message;throw e.code===nV.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()).match(/insufficient funds/)&&ao.throwError("insufficient funds for intrinsic transaction cost",nV.errors.INSUFFICIENT_FUNDS,{error:e,method:t,transaction:r}),n.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&ao.throwError("nonce has already been used",nV.errors.NONCE_EXPIRED,{error:e,method:t,transaction:r}),n.match(/another transaction with same nonce/)&&ao.throwError("replacement fee too low",nV.errors.REPLACEMENT_UNDERPRICED,{error:e,method:t,transaction:r}),n.match(/execution failed due to an exception|execution reverted/)&&ao.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",nV.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,method:t,transaction:r}),e}class ad extends oE{constructor(t,e){ao.checkNew(new.target,ad),super(t),ic(this,"baseUrl",this.getBaseUrl()),ic(this,"apiKey",e||ah)}getBaseUrl(){switch(this.network?this.network.name:"invalid"){case"homestead":return"https://api.etherscan.io";case"ropsten":return"https://api-ropsten.etherscan.io";case"rinkeby":return"https://api-rinkeby.etherscan.io";case"kovan":return"https://api-kovan.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io"}return ao.throwArgumentError("unsupported network","network",name)}getUrl(t,e){let r=Object.keys(e).reduce((t,r)=>{let 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 af(this,void 0,void 0,function*(){let n=r?this.getPostUrl():this.getUrl(t,e),i=r?this.getPostData(t,e):null,f="proxy"===t?au:as;this.emit("debug",{action:"request",request:n,provider:this});let o={url:n,throttleSlotInterval:1e3,throttleCallback:(t,e)=>(this.isCommunityResource()&&oo(),Promise.resolve(!0))},a=null;i&&(o.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},a=Object.keys(i).map(t=>`${t}=${i[t]}`).join("&"));let s=yield fe(o,a,f||au);return this.emit("debug",{action:"response",request:n,response:ib(s),provider:this}),s})}detectNetwork(){return af(this,void 0,void 0,function*(){return this.network})}perform(t,e){let r=Object.create(null,{perform:{get:()=>super.perform}});return af(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=>ac("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 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 Error("EtherscanProvider does not support blockTag for call");let t=aa(e.transaction);t.module="proxy",t.action="eth_call";try{return yield this.fetch("proxy",t,!0)}catch(t){return ac("call",t,e.transaction)}}case"estimateGas":{let t=aa(e.transaction);t.module="proxy",t.action="eth_estimateGas";try{return yield this.fetch("proxy",t,!0)}catch(t){return ac("estimateGas",t,e.transaction)}}case"getLogs":{let t={action:"getLogs"};if(e.filter.fromBlock&&(t.fromBlock=al(e.filter.fromBlock)),e.filter.toBlock&&(t.toBlock=al(e.filter.toBlock)),e.filter.address&&(t.address=e.filter.address),e.filter.topics&&e.filter.topics.length>0&&(e.filter.topics.length>1&&ao.throwError("unsupported topic count",nV.errors.UNSUPPORTED_OPERATION,{topics:e.filter.topics}),1===e.filter.topics.length)){let r=e.filter.topics[0];("string"!=typeof r||66!==r.length)&&ao.throwError("unsupported topic format",nV.errors.UNSUPPORTED_OPERATION,{topic0:r}),t.topic0=r}let r=yield this.fetch("logs",t),n={};for(let t=0;t<r.length;t++){let e=r[t];if(null==e.blockHash){if(null==n[e.blockNumber]){let t=yield this.getBlock(e.blockNumber);t&&(n[e.blockNumber]=t.hash)}e.blockHash=n[e.blockNumber]}}return r}case"getEtherPrice":if("homestead"!==this.network.name)return 0;return parseFloat((yield this.fetch("stats",{action:"ethprice"})).ethusd)}return r.perform.call(this,t,e)})}getHistory(t,e,r){return af(this,void 0,void 0,function*(){let n={action:"txlist",address:yield this.resolveName(t),startblock:null==e?0:e,endblock:null==r?99999999:r,sort:"asc"};return(yield this.fetch("account",n)).map(t=>{["contractAddress","to"].forEach(function(e){""==t[e]&&delete t[e]}),null==t.creates&&null!=t.contractAddress&&(t.creates=t.contractAddress);let e=this.formatter.transactionResponse(t);return t.timeStamp&&(e.timestamp=parseInt(t.timeStamp)),e})})}isCommunityResource(){return this.apiKey===ah}}var ap=function(t,e,r,n){return new(r||(r=Promise))(function(i,f){function o(t){try{s(n.next(t))}catch(t){f(t)}}function a(t){try{s(n.throw(t))}catch(t){f(t)}}function s(t){var e;t.done?i(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(o,a)}s((n=n.apply(t,e||[])).next())})};let am=new nV(ff);function ag(){return new Date().getTime()}function ab(t){let e=null;for(let r=0;r<t.length;r++){let n=t[r];if(null==n)return null;e?e.name===n.name&&e.chainId===n.chainId&&(e.ensAddress===n.ensAddress||null==e.ensAddress&&null==n.ensAddress)||am.throwArgumentError("provider mismatch","networks",t):e=n}return e}function ay(t,e){let r=Math.floor((t=t.slice().sort()).length/2);if(t.length%2)return t[r];let n=t[r-1],i=t[r];return null!=e&&Math.abs(n-i)>e?null:(n+i)/2}function av(t){if(null===t)return"null";if("number"==typeof t||"boolean"==typeof t)return JSON.stringify(t);if("string"==typeof t)return t;if(io.isBigNumber(t))return t.toString();if(Array.isArray(t))return JSON.stringify(t.map(t=>av(t)));if("object"==typeof t){let e=Object.keys(t);return e.sort(),"{"+e.map(e=>{let r=t[e];return r="function"==typeof r?"[function]":av(r),JSON.stringify(e)+":"+r}).join(",")+"}"}throw Error("unknown value type: "+typeof t)}let aw=1;function aM(t){let e=null,r=null,n=new Promise(n=>{r=setTimeout(e=function(){r&&(clearTimeout(r),r=null),n()},t)});return{cancel:e,getPromise:function(){return n},wait:t=>n=n.then(t)}}let aE=[nV.errors.CALL_EXCEPTION,nV.errors.INSUFFICIENT_FUNDS,nV.errors.NONCE_EXPIRED,nV.errors.REPLACEMENT_UNDERPRICED,nV.errors.UNPREDICTABLE_GAS_LIMIT],aA=["address","args","errorArgs","errorSignature","method","transaction"];function aS(t,e){let 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 a_(t,e){return ap(this,void 0,void 0,function*(){let r=t.provider;return null!=r.blockNumber&&r.blockNumber>=e||-1===e?r:fr(()=>new Promise((n,i)=>{setTimeout(function(){return r.blockNumber>=e?n(r):t.cancelled?n(null):n(void 0)},0)}),{oncePoll:r})})}class aN extends oE{constructor(t,e){am.checkNew(new.target,aN),0===t.length&&am.throwArgumentError("missing providers","providers",t);let r=t.map((t,e)=>{if(iM.isProvider(t)){let e=oi(t)?2e3:750;return Object.freeze({provider:t,weight:1,stallTimeout:e,priority:1})}let r=im(t);null==r.priority&&(r.priority=1),null==r.stallTimeout&&(r.stallTimeout=oi(t)?2e3:750),null==r.weight&&(r.weight=1);let n=r.weight;return(n%1||n>512||n<1)&&am.throwArgumentError("invalid weight; must be integer in [1, 512]",`providers[${e}].weight`,n),Object.freeze(r)}),n=r.reduce((t,e)=>t+e.weight,0);null==e?e=n/2:e>n&&am.throwArgumentError("quorum will always fail; larger than total weight","quorum",e);let i=ab(r.map(t=>t.provider.network));null==i&&(i=new Promise((t,e)=>{setTimeout(()=>{this.detectNetwork().then(t,e)},0)})),super(i),ic(this,"providerConfigs",Object.freeze(r)),ic(this,"quorum",e),this._highestBlockNumber=-1}detectNetwork(){return ap(this,void 0,void 0,function*(){return ab((yield Promise.all(this.providerConfigs.map(t=>t.provider.getNetwork()))))})}perform(t,e){return ap(this,void 0,void 0,function*(){if("sendTransaction"===t){let t=yield Promise.all(this.providerConfigs.map(t=>t.provider.sendTransaction(e.signedTransaction).then(t=>t.hash,t=>t)));for(let e=0;e<t.length;e++){let r=t[e];if("string"==typeof r)return r}throw t[0]}-1===this._highestBlockNumber&&"getBlockNumber"!==t&&(yield this.getBlockNumber());let r=function(t,e,r){var n,i;let f=av;switch(e){case"getBlockNumber":return function(e){let r=e.map(t=>t.result),n=ay(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){let e=t.map(t=>t.result);return e.sort(),e[Math.floor(e.length/2)]};case"getEtherPrice":return function(t){return ay(t.map(t=>t.result))};case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break;case"getTransaction":case"getTransactionReceipt":f=function(t){return null==t?null:((t=im(t)).confirmations=-1,av(t))};break;case"getBlock":f=r.includeTransactions?function(t){return null==t?null:((t=im(t)).transactions=t.transactions.map(t=>((t=im(t)).confirmations=-1,t)),av(t))}:function(t){return null==t?null:av(t)};break;default:throw Error("unknown method: "+e)}return n=f,i=t.quorum,function(t){let e={};t.forEach(t=>{let r=n(t.result);e[r]||(e[r]={count:0,result:t.result}),e[r].count++});let r=Object.keys(e);for(let t=0;t<r.length;t++){let n=e[r[t]];if(n.count>=i)return n.result}}}(this,t,e),n=function(t){t=t.slice();for(let e=t.length-1;e>0;e--){let r=Math.floor(Math.random()*(e+1)),n=t[e];t[e]=t[r],t[r]=n}return t}(this.providerConfigs.map(im));n.sort((t,e)=>t.priority-e.priority);let i=this._highestBlockNumber,f=0,o=!0;for(;;){let a=ag(),s=n.filter(t=>t.runner&&a-t.start<t.stallTimeout).reduce((t,e)=>t+e.weight,0);for(;s<this.quorum&&f<n.length;){let r=n[f++],o=aw++;r.start=ag(),r.staller=aM(r.stallTimeout),r.staller.wait(()=>{r.staller=null}),r.runner=(function(t,e,r,n){return ap(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&&n1(n.blockTag)&&(i=yield a_(t,e)),i[r](n.address,n.blockTag||"latest");case"getStorageAt":return n.blockTag&&n1(n.blockTag)&&(i=yield a_(t,e)),i.getStorageAt(n.address,n.position,n.blockTag||"latest");case"getBlock":return n.blockTag&&n1(n.blockTag)&&(i=yield a_(t,e)),i[n.includeTransactions?"getBlockWithTransactions":"getBlock"](n.blockTag||n.blockHash);case"call":case"estimateGas":return n.blockTag&&n1(n.blockTag)&&(i=yield a_(t,e)),i[r](n.transaction);case"getTransaction":case"getTransactionReceipt":return i[r](n.transactionHash);case"getLogs":{let r=n.filter;return(r.fromBlock&&n1(r.fromBlock)||r.toBlock&&n1(r.toBlock))&&(i=yield a_(t,e)),i.getLogs(r)}}return am.throwError("unknown method error",nV.errors.UNKNOWN_ERROR,{method:r,params:n})})})(r,i,t,e).then(n=>{r.done=!0,r.result=n,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:o,backend:aS(r,ag()),request:{method:t,params:ib(e)},provider:this})},n=>{r.done=!0,r.error=n,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:o,backend:aS(r,ag()),request:{method:t,params:ib(e)},provider:this})}),this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:o,backend:aS(r,null),request:{method:t,params:ib(e)},provider:this}),s+=r.weight}let u=[];n.forEach(t=>{!t.done&&t.runner&&(u.push(t.runner),t.staller&&u.push(t.staller.getPromise()))}),u.length&&(yield Promise.race(u));let l=n.filter(t=>t.done&&null==t.error);if(l.length>=this.quorum){let t=r(l);if(void 0!==t)return n.forEach(t=>{t.staller&&t.staller.cancel(),t.cancelled=!0}),t;o||(yield aM(100).getPromise()),o=!1}let h=n.reduce((t,e)=>{if(!e.done||null==e.error)return t;let r=e.error.code;return aE.indexOf(r)>=0&&(t[r]||(t[r]={error:e.error,weight:0}),t[r].weight+=e.weight),t},{});if(Object.keys(h).forEach(t=>{let e=h[t];if(e.weight<this.quorum)return;n.forEach(t=>{t.staller&&t.staller.cancel(),t.cancelled=!0});let r=e.error,i={};aA.forEach(t=>{null!=r[t]&&(i[t]=r[t])}),am.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}),am.throwError("failed to meet quorum",nV.errors.SERVER_ERROR,{method:t,params:e,results:n.map(t=>aS(t)),provider:this})})}}let aT=null,aR=new nV(ff),aC="84842078b09946638c03157f83405213";class aI extends o8{constructor(t,e){let r=new aP(t,e),n=r.connection;n.password&&aR.throwError("INFURA WebSocket project secrets unsupported",nV.errors.UNSUPPORTED_OPERATION,{operation:"InfuraProvider.getWebSocketProvider()"}),super(n.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/"),t),ic(this,"apiKey",r.projectId),ic(this,"projectId",r.projectId),ic(this,"projectSecret",r.projectSecret)}isCommunityResource(){return this.projectId===aC}}class aP extends o9{static getWebSocketProvider(t,e){return new aI(t,e)}static getApiKey(t){let e={apiKey:aC,projectId:aC,projectSecret:null};return null==t||("string"==typeof t?e.projectId=t:null!=t.projectSecret?(aR.assertArgument("string"==typeof t.projectId,"projectSecret requires a projectId","projectId",t.projectId),aR.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"ropsten":r="ropsten.infura.io";break;case"rinkeby":r="rinkeby.infura.io";break;case"kovan":r="kovan.infura.io";break;case"goerli":r="goerli.infura.io";break;case"matic":r="polygon-mainnet.infura.io";break;case"maticmum":r="polygon-mumbai.infura.io";break;default:aR.throwError("unsupported network",nV.errors.INVALID_ARGUMENT,{argument:"network",value:t})}let n={allowGzip:!0,url:"https://"+r+"/v3/"+e.projectId,throttleCallback:(t,r)=>(e.projectId===aC&&oo(),Promise.resolve(!0))};return null!=e.projectSecret&&(n.user="",n.password=e.projectSecret),n}isCommunityResource(){return this.projectId===aC}}class aO extends o0{send(t,e){let r={method:t,params:e,id:this._nextId++,jsonrpc:"2.0"};null==this._pendingBatch&&(this._pendingBatch=[]);let 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(()=>{let t=this._pendingBatch;this._pendingBatch=null,this._pendingBatchAggregator=null;let e=t.map(t=>t.request);return this.emit("debug",{action:"requestBatch",request:ib(e),provider:this}),fe(this.connection,JSON.stringify(e)).then(r=>{this.emit("debug",{action:"response",request:e,response:r,provider:this}),t.forEach((t,e)=>{let n=r[e];if(n.error){let e=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}}let ax=new nV(ff);class ak extends o9{static getApiKey(t){return t&&"string"!=typeof t&&ax.throwArgumentError("invalid apiKey","apiKey",t),t||"ETHERS_JS_SHARED"}static getUrl(t,e){ax.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:ax.throwArgumentError("unsupported network","network",arguments[0])}return r+"?apiKey="+e}}let aF=new nV(ff),aB={homestead:"6004bcd10040261633ade990",ropsten:"6004bd4d0040261633ade991",rinkeby:"6004bda20040261633ade994",goerli:"6004bd860040261633ade992"};class aL extends o9{constructor(t,e){if(null==e){let r=id(new.target,"getNetwork")(t);if(r){let t=aB[r.name];t&&(e={applicationId:t,loadBalancer:!0})}null==e&&aF.throwError("unsupported network",nV.errors.INVALID_ARGUMENT,{argument:"network",value:t})}super(t,e)}static getApiKey(t){null==t&&aF.throwArgumentError("PocketProvider.getApiKey does not support null apiKey","apiKey",t);let e={applicationId:null,loadBalancer:!1,applicationSecretKey:null};return"string"==typeof t?e.applicationId=t:null!=t.applicationSecretKey?(aF.assertArgument("string"==typeof t.applicationId,"applicationSecretKey requires an applicationId","applicationId",t.applicationId),aF.assertArgument("string"==typeof t.applicationSecretKey,"invalid applicationSecretKey","applicationSecretKey","[REDACTED]"),e.applicationId=t.applicationId,e.applicationSecretKey=t.applicationSecretKey,e.loadBalancer=!!t.loadBalancer):t.applicationId?(aF.assertArgument("string"==typeof t.applicationId,"apiKey.applicationId must be a string","apiKey.applicationId",t.applicationId),e.applicationId=t.applicationId,e.loadBalancer=!!t.loadBalancer):aF.throwArgumentError("unsupported PocketProvider apiKey","apiKey",t),e}static getUrl(t,e){let r=null;switch(t?t.name:"unknown"){case"homestead":r="eth-mainnet.gateway.pokt.network";break;case"ropsten":r="eth-ropsten.gateway.pokt.network";break;case"rinkeby":r="eth-rinkeby.gateway.pokt.network";break;case"goerli":r="eth-goerli.gateway.pokt.network";break;default:aF.throwError("unsupported network",nV.errors.INVALID_ARGUMENT,{argument:"network",value:t})}let n={url:e.loadBalancer?`https://${r}/v1/lb/${e.applicationId}`:`https://${r}/v1/${e.applicationId}`};return n.headers={},null!=e.applicationSecretKey&&(n.user="",n.password=e.applicationSecretKey),n}isCommunityResource(){return this.applicationId===aB[this.network.name]}}let aD=new nV(ff),aU=1;function aG(t,e){let r="Web3LegacyFetcher";return function(n,i){"eth_sign"==n&&(t.isMetaMask||t.isStatus)&&(n="personal_sign",i=[i[1],i[0]]);let f={method:n,params:i,id:aU++,jsonrpc:"2.0"};return new Promise((t,n)=>{this.emit("debug",{action:"request",fetcher:r,request:ib(f),provider:this}),e(f,(e,i)=>{if(e)return this.emit("debug",{action:"response",fetcher:r,error:e,request:f,provider:this}),n(e);if(this.emit("debug",{action:"response",fetcher:r,request:f,response:i,provider:this}),i.error){let t=Error(i.error.message);return t.code=i.error.code,t.data=i.error.data,n(t)}t(i.result)})})}}class az extends o0{constructor(t,e){aD.checkNew(new.target,az),null==t&&aD.throwArgumentError("missing provider","provider",t);let r=null,n=null,i=null;"function"==typeof t?(r="unknown:",n=t):(((r=t.host||t.path||"")||!t.isMetaMask||(r="metamask"),i=t,t.request)?(""===r&&(r="eip-1193:"),n=function(e,r){null==r&&(r=[]),"eth_sign"==e&&(t.isMetaMask||t.isStatus)&&(e="personal_sign",r=[r[1],r[0]]);let n={method:e,params:r};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:ib(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})}):t.sendAsync?n=aG(t,t.sendAsync.bind(t)):t.send?n=aG(t,t.send.bind(t)):aD.throwArgumentError("unsupported provider","provider",t),r||(r="unknown:")),super(r,e),ic(this,"jsonRpcFetchFunc",n),ic(this,"provider",i)}send(t,e){return this.jsonRpcFetchFunc(t,e)}}let aJ=new nV(ff);function aj(t,e){if(null==t&&(t="homestead"),"string"==typeof t){let e=t.match(/^(ws|http)s?:/i);if(e)switch(e[1]){case"http":return new o0(t);case"ws":return new o8(t);default:aJ.throwArgumentError("unsupported URL scheme","network",t)}}let r=iC(t);return r&&r._defaultProvider||aJ.throwError("unsupported getDefaultProvider network",nV.errors.NETWORK_ERROR,{operation:"getDefaultProvider",network:t}),r._defaultProvider({FallbackProvider:aN,AlchemyProvider:ar,CloudflareProvider:ai,EtherscanProvider:ad,InfuraProvider:aP,JsonRpcProvider:o0,NodesmithProvider:ak,PocketProvider:aL,Web3Provider:az,IpcProvider:aT},e)}var aH=r(55603),aV=r.n(aH);let aX=!1,aq=!1,aZ={debug:1,default:2,info:2,warning:3,error:4,off:5},aK=aZ.default,aW=null,aY=function(){try{let t=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test"!=="test".normalize(e))throw Error("bad normalize")}catch(r){t.push(e)}}),t.length)throw Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw Error("broken implementation")}catch(t){return t.message}return null}();(E=J||(J={})).DEBUG="DEBUG",E.INFO="INFO",E.WARNING="WARNING",E.ERROR="ERROR",E.OFF="OFF",(A=j||(j={})).UNKNOWN_ERROR="UNKNOWN_ERROR",A.NOT_IMPLEMENTED="NOT_IMPLEMENTED",A.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",A.NETWORK_ERROR="NETWORK_ERROR",A.SERVER_ERROR="SERVER_ERROR",A.TIMEOUT="TIMEOUT",A.BUFFER_OVERRUN="BUFFER_OVERRUN",A.NUMERIC_FAULT="NUMERIC_FAULT",A.MISSING_NEW="MISSING_NEW",A.INVALID_ARGUMENT="INVALID_ARGUMENT",A.MISSING_ARGUMENT="MISSING_ARGUMENT",A.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",A.CALL_EXCEPTION="CALL_EXCEPTION",A.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",A.NONCE_EXPIRED="NONCE_EXPIRED",A.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",A.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",A.TRANSACTION_REPLACED="TRANSACTION_REPLACED",A.ACTION_REJECTED="ACTION_REJECTED";let aQ="0123456789abcdef";class a${constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){let r=t.toLowerCase();null==aZ[r]&&this.throwArgumentError("invalid log level name","logLevel",t),aK>aZ[r]||console.log.apply(console,e)}debug(...t){this._log(a$.levels.DEBUG,t)}info(...t){this._log(a$.levels.INFO,t)}warn(...t){this._log(a$.levels.WARNING,t)}makeError(t,e,r){if(aq)return this.makeError("censored error",e,{});e||(e=a$.errors.UNKNOWN_ERROR),r||(r={});let n=[];Object.keys(r).forEach(t=>{let e=r[t];try{if(e instanceof Uint8Array){let r="";for(let t=0;t<e.length;t++)r+=aQ[e[t]>>4]+aQ[15&e[t]];n.push(t+"=Uint8Array(0x"+r+")")}else n.push(t+"="+JSON.stringify(e))}catch(e){n.push(t+"="+JSON.stringify(r[t].toString()))}}),n.push(`code=${e}`),n.push(`version=${this.version}`);let i=t,f="";switch(e){case j.NUMERIC_FAULT:{f="NUMERIC_FAULT";let e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":f+="-"+e;break;case"negative-power":case"negative-width":f+="-unsupported";break;case"unbound-bitwise-result":f+="-unbound-result"}break}case j.CALL_EXCEPTION:case j.INSUFFICIENT_FUNDS:case j.MISSING_NEW:case j.NONCE_EXPIRED:case j.REPLACEMENT_UNDERPRICED:case j.TRANSACTION_REPLACED:case j.UNPREDICTABLE_GAS_LIMIT:f=e}f&&(t+=" [ See: https://links.ethers.org/v5-errors-"+f+" ]"),n.length&&(t+=" ("+n.join(", ")+")");let o=Error(t);return o.reason=i,o.code=e,Object.keys(r).forEach(function(t){o[t]=r[t]}),o}throwError(t,e,r){throw this.makeError(t,e,r)}throwArgumentError(t,e,r){return this.throwError(t,a$.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"),aY&&this.throwError("platform missing String.prototype.normalize",a$.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:aY})}checkSafeUint53(t,e){"number"==typeof t&&(null==e&&(e="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(e,a$.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(e,a$.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,e,r){r=r?": "+r:"",t<e&&this.throwError("missing argument"+r,a$.errors.MISSING_ARGUMENT,{count:t,expectedCount:e}),t>e&&this.throwError("too many arguments"+r,a$.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:e})}checkNew(t,e){(t===Object||null==t)&&this.throwError("missing new",a$.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",a$.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):(t===Object||null==t)&&this.throwError("missing new",a$.errors.MISSING_NEW,{name:e.name})}static globalLogger(){return aW||(aW=new a$("logger/5.7.0")),aW}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",a$.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),aX){if(!t)return;this.globalLogger().throwError("error censorship permanent",a$.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}aq=!!t,aX=!!e}static setLogLevel(t){let e=aZ[t.toLowerCase()];if(null==e){a$.globalLogger().warn("invalid log level - "+t);return}aK=e}static from(t){return new a$(t)}}a$.errors=j,a$.levels=J;let a0=new a$("bytes/5.7.0");function a1(t){return!!t.toHexString}function a6(t){return t.slice||(t.slice=function(){let e=Array.prototype.slice.call(arguments);return a6(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function a5(t){return"number"==typeof t&&t==t&&t%1==0}function a2(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"==typeof t||!a5(t.length)||t.length<0)return!1;for(let e=0;e<t.length;e++){let r=t[e];if(!a5(r)||r<0||r>=256)return!1}return!0}function a8(t,e){if(e||(e={}),"number"==typeof t){a0.checkSafeUint53(t,"invalid arrayify value");let e=[];for(;t;)e.unshift(255&t),t=parseInt(String(t/256));return 0===e.length&&e.push(0),a6(new Uint8Array(e))}if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),a1(t)&&(t=t.toHexString()),a3(t)){let r=t.substring(2);r.length%2&&("left"===e.hexPad?r="0"+r:"right"===e.hexPad?r+="0":a0.throwArgumentError("hex data is odd-length","value",t));let n=[];for(let t=0;t<r.length;t+=2)n.push(parseInt(r.substring(t,t+2),16));return a6(new Uint8Array(n))}return a2(t)?a6(new Uint8Array(t)):a0.throwArgumentError("invalid arrayify value","value",t)}function a3(t,e){return"string"==typeof t&&!!t.match(/^0x[0-9A-Fa-f]*$/)&&(!e||t.length===2+2*e)}let a4="0123456789abcdef",a9=new a$("strings/5.7.0");function a7(t,e,r,n,i){if(t===V.BAD_PREFIX||t===V.UNEXPECTED_CONTINUE){let t=0;for(let n=e+1;n<r.length&&r[n]>>6==2;n++)t++;return t}return t===V.OVERRUN?r.length-e-1:0}(S=H||(H={})).current="",S.NFC="NFC",S.NFD="NFD",S.NFKC="NFKC",S.NFKD="NFKD",(_=V||(V={})).UNEXPECTED_CONTINUE="unexpected continuation byte",_.BAD_PREFIX="bad codepoint prefix",_.OVERRUN="string overrun",_.MISSING_CONTINUE="missing continuation byte",_.OUT_OF_RANGE="out of UTF-8 range",_.UTF16_SURROGATE="UTF-16 surrogate",_.OVERLONG="overlong representation";let st=Object.freeze({error:function(t,e,r,n,i){return a9.throwArgumentError(`invalid codepoint at offset ${e}; ${t}`,"bytes",r)},ignore:a7,replace:function(t,e,r,n,i){return t===V.OVERLONG?(n.push(i),0):(n.push(65533),a7(t,e,r,n,i))}});function se(t,e=H.current){e!=H.current&&(a9.checkNormalize(),t=t.normalize(e));let r=[];for(let e=0;e<t.length;e++){let n=t.charCodeAt(e);if(n<128)r.push(n);else if(n<2048)r.push(n>>6|192),r.push(63&n|128);else if((64512&n)==55296){e++;let i=t.charCodeAt(e);if(e>=t.length||(64512&i)!=56320)throw Error("invalid utf-8 string");let f=65536+((1023&n)<<10)+(1023&i);r.push(f>>18|240),r.push(f>>12&63|128),r.push(f>>6&63|128),r.push(63&f|128)}else r.push(n>>12|224),r.push(n>>6&63|128),r.push(63&n|128)}return a8(r)}function sr(t,e){return(function(t,e){null==e&&(e=st.error),t=a8(t);let r=[],n=0;for(;n<t.length;){let i=t[n++];if(i>>7==0){r.push(i);continue}let f=null,o=null;if((224&i)==192)f=1,o=127;else if((240&i)==224)f=2,o=2047;else if((248&i)==240)f=3,o=65535;else{(192&i)==128?n+=e(V.UNEXPECTED_CONTINUE,n-1,t,r):n+=e(V.BAD_PREFIX,n-1,t,r);continue}if(n-1+f>=t.length){n+=e(V.OVERRUN,n-1,t,r);continue}let a=i&(1<<8-f-1)-1;for(let i=0;i<f;i++){let i=t[n];if((192&i)!=128){n+=e(V.MISSING_CONTINUE,n,t,r),a=null;break}a=a<<6|63&i,n++}if(null!==a){if(a>1114111){n+=e(V.OUT_OF_RANGE,n-1-f,t,r,a);continue}if(a>=55296&&a<=57343){n+=e(V.UTF16_SURROGATE,n-1-f,t,r,a);continue}if(a<=o){n+=e(V.OVERLONG,n-1-f,t,r,a);continue}r.push(a)}}return r})(t,e).map(t=>t<=65535?String.fromCharCode(t):String.fromCharCode(((t-=65536)>>10&1023)+55296,(1023&t)+56320)).join("")}new a$("properties/5.7.0");let sn=new a$("wordlists/5.4.0");class si{constructor(t){sn.checkAbstract(new.target,si),Object.defineProperty(this,"locale",{enumerable:!0,value:t,writable:!1})}split(t){return t.toLowerCase().split(/ +/g)}join(t){return t.join(" ")}static check(t){var e;let r=[];for(let e=0;e<2048;e++){let n=t.getWord(e);if(e!==t.getWordIndex(n))return"0x";r.push(n)}return e=se(r.join("\n")+"\n"),"0x"+aV().keccak_256(a8(e))}static register(t,e){e||(e=t.locale)}}let sf=null;function so(t){if(null==sf&&(sf="AbdikaceAbecedaAdresaAgreseAkceAktovkaAlejAlkoholAmputaceAnanasAndulkaAnekdotaAnketaAntikaAnulovatArchaAroganceAsfaltAsistentAspiraceAstmaAstronomAtlasAtletikaAtolAutobusAzylBabkaBachorBacilBaculkaBadatelBagetaBagrBahnoBakterieBaladaBaletkaBalkonBalonekBalvanBalzaBambusBankomatBarbarBaretBarmanBarokoBarvaBaterkaBatohBavlnaBazalkaBazilikaBazukaBednaBeranBesedaBestieBetonBezinkaBezmocBeztakBicyklBidloBiftekBikinyBilanceBiografBiologBitvaBizonBlahobytBlatouchBlechaBleduleBleskBlikatBliznaBlokovatBlouditBludBobekBobrBodlinaBodnoutBohatostBojkotBojovatBokorysBolestBorecBoroviceBotaBoubelBouchatBoudaBouleBouratBoxerBradavkaBramboraBrankaBratrBreptaBriketaBrkoBrlohBronzBroskevBrunetkaBrusinkaBrzdaBrzyBublinaBubnovatBuchtaBuditelBudkaBudovaBufetBujarostBukviceBuldokBulvaBundaBunkrBurzaButikBuvolBuzolaBydletBylinaBytovkaBzukotCapartCarevnaCedrCeduleCejchCejnCelaCelerCelkemCelniceCeninaCennostCenovkaCentrumCenzorCestopisCetkaChalupaChapadloCharitaChataChechtatChemieChichotChirurgChladChlebaChlubitChmelChmuraChobotChocholChodbaCholeraChomoutChopitChorobaChovChrapotChrlitChrtChrupChtivostChudinaChutnatChvatChvilkaChvostChybaChystatChytitCibuleCigaretaCihelnaCihlaCinkotCirkusCisternaCitaceCitrusCizinecCizostClonaCokolivCouvatCtitelCtnostCudnostCuketaCukrCupotCvaknoutCvalCvikCvrkotCyklistaDalekoDarebaDatelDatumDceraDebataDechovkaDecibelDeficitDeflaceDeklDekretDemokratDepreseDerbyDeskaDetektivDikobrazDiktovatDiodaDiplomDiskDisplejDivadloDivochDlahaDlouhoDluhopisDnesDobroDobytekDocentDochutitDodnesDohledDohodaDohraDojemDojniceDokladDokolaDoktorDokumentDolarDolevaDolinaDomaDominantDomluvitDomovDonutitDopadDopisDoplnitDoposudDoprovodDopustitDorazitDorostDortDosahDoslovDostatekDosudDosytaDotazDotekDotknoutDoufatDoutnatDovozceDozaduDoznatDozorceDrahotaDrakDramatikDravecDrazeDrdolDrobnostDrogerieDrozdDrsnostDrtitDrzostDubenDuchovnoDudekDuhaDuhovkaDusitDusnoDutostDvojiceDvorecDynamitEkologEkonomieElektronElipsaEmailEmiseEmoceEmpatieEpizodaEpochaEpopejEposEsejEsenceEskortaEskymoEtiketaEuforieEvoluceExekuceExkurzeExpediceExplozeExportExtraktFackaFajfkaFakultaFanatikFantazieFarmacieFavoritFazoleFederaceFejetonFenkaFialkaFigurantFilozofFiltrFinanceFintaFixaceFjordFlanelFlirtFlotilaFondFosforFotbalFotkaFotonFrakceFreskaFrontaFukarFunkceFyzikaGalejeGarantGenetikaGeologGilotinaGlazuraGlejtGolemGolfistaGotikaGrafGramofonGranuleGrepGrilGrogGroteskaGumaHadiceHadrHalaHalenkaHanbaHanopisHarfaHarpunaHavranHebkostHejkalHejnoHejtmanHektarHelmaHematomHerecHernaHesloHezkyHistorikHladovkaHlasivkyHlavaHledatHlenHlodavecHlohHloupostHltatHlubinaHluchotaHmatHmotaHmyzHnisHnojivoHnoutHoblinaHobojHochHodinyHodlatHodnotaHodovatHojnostHokejHolinkaHolkaHolubHomoleHonitbaHonoraceHoralHordaHorizontHorkoHorlivecHormonHorninaHoroskopHorstvoHospodaHostinaHotovostHoubaHoufHoupatHouskaHovorHradbaHraniceHravostHrazdaHrbolekHrdinaHrdloHrdostHrnekHrobkaHromadaHrotHroudaHrozenHrstkaHrubostHryzatHubenostHubnoutHudbaHukotHumrHusitaHustotaHvozdHybnostHydrantHygienaHymnaHysterikIdylkaIhnedIkonaIluzeImunitaInfekceInflaceInkasoInovaceInspekceInternetInvalidaInvestorInzerceIronieJablkoJachtaJahodaJakmileJakostJalovecJantarJarmarkJaroJasanJasnoJatkaJavorJazykJedinecJedleJednatelJehlanJekotJelenJelitoJemnostJenomJepiceJeseterJevitJezdecJezeroJinakJindyJinochJiskraJistotaJitrniceJizvaJmenovatJogurtJurtaKabaretKabelKabinetKachnaKadetKadidloKahanKajakKajutaKakaoKaktusKalamitaKalhotyKalibrKalnostKameraKamkolivKamnaKanibalKanoeKantorKapalinaKapelaKapitolaKapkaKapleKapotaKaprKapustaKapybaraKaramelKarotkaKartonKasaKatalogKatedraKauceKauzaKavalecKazajkaKazetaKazivostKdekolivKdesiKedlubenKempKeramikaKinoKlacekKladivoKlamKlapotKlasikaKlaunKlecKlenbaKlepatKlesnoutKlidKlimaKlisnaKloboukKlokanKlopaKloubKlubovnaKlusatKluzkostKmenKmitatKmotrKnihaKnotKoaliceKoberecKobkaKoblihaKobylaKocourKohoutKojenecKokosKoktejlKolapsKoledaKolizeKoloKomandoKometaKomikKomnataKomoraKompasKomunitaKonatKonceptKondiceKonecKonfeseKongresKoninaKonkursKontaktKonzervaKopanecKopieKopnoutKoprovkaKorbelKorektorKormidloKoroptevKorpusKorunaKorytoKorzetKosatecKostkaKotelKotletaKotoulKoukatKoupelnaKousekKouzloKovbojKozaKozorohKrabiceKrachKrajinaKralovatKrasopisKravataKreditKrejcarKresbaKrevetaKriketKritikKrizeKrkavecKrmelecKrmivoKrocanKrokKronikaKropitKroupaKrovkaKrtekKruhadloKrupiceKrutostKrvinkaKrychleKryptaKrystalKrytKudlankaKufrKujnostKuklaKulajdaKulichKulkaKulometKulturaKunaKupodivuKurtKurzorKutilKvalitaKvasinkaKvestorKynologKyselinaKytaraKyticeKytkaKytovecKyvadloLabradorLachtanLadnostLaikLakomecLamelaLampaLanovkaLasiceLasoLasturaLatinkaLavinaLebkaLeckdyLedenLedniceLedovkaLedvinaLegendaLegieLegraceLehceLehkostLehnoutLektvarLenochodLentilkaLepenkaLepidloLetadloLetecLetmoLetokruhLevhartLevitaceLevobokLibraLichotkaLidojedLidskostLihovinaLijavecLilekLimetkaLinieLinkaLinoleumListopadLitinaLitovatLobistaLodivodLogikaLogopedLokalitaLoketLomcovatLopataLopuchLordLososLotrLoudalLouhLoukaLouskatLovecLstivostLucernaLuciferLumpLuskLustraceLviceLyraLyrikaLysinaMadamMadloMagistrMahagonMajetekMajitelMajoritaMakakMakoviceMakrelaMalbaMalinaMalovatMalviceMaminkaMandleMankoMarnostMasakrMaskotMasopustMaticeMatrikaMaturitaMazanecMazivoMazlitMazurkaMdlobaMechanikMeditaceMedovinaMelasaMelounMentolkaMetlaMetodaMetrMezeraMigraceMihnoutMihuleMikinaMikrofonMilenecMilimetrMilostMimikaMincovnaMinibarMinometMinulostMiskaMistrMixovatMladostMlhaMlhovinaMlokMlsatMluvitMnichMnohemMobilMocnostModelkaModlitbaMohylaMokroMolekulaMomentkaMonarchaMonoklMonstrumMontovatMonzunMosazMoskytMostMotivaceMotorkaMotykaMouchaMoudrostMozaikaMozekMozolMramorMravenecMrkevMrtvolaMrzetMrzutostMstitelMudrcMuflonMulatMumieMuniceMusetMutaceMuzeumMuzikantMyslivecMzdaNabouratNachytatNadaceNadbytekNadhozNadobroNadpisNahlasNahnatNahodileNahraditNaivitaNajednouNajistoNajmoutNaklonitNakonecNakrmitNalevoNamazatNamluvitNanometrNaokoNaopakNaostroNapadatNapevnoNaplnitNapnoutNaposledNaprostoNaroditNarubyNarychloNasaditNasekatNaslepoNastatNatolikNavenekNavrchNavzdoryNazvatNebeNechatNeckyNedalekoNedbatNeduhNegaceNehetNehodaNejenNejprveNeklidNelibostNemilostNemocNeochotaNeonkaNepokojNerostNervNesmyslNesouladNetvorNeuronNevinaNezvykleNicotaNijakNikamNikdyNiklNikterakNitroNoclehNohaviceNominaceNoraNorekNositelNosnostNouzeNovinyNovotaNozdraNudaNudleNugetNutitNutnostNutrieNymfaObalObarvitObavaObdivObecObehnatObejmoutObezitaObhajobaObilniceObjasnitObjektObklopitOblastOblekOblibaOblohaObludaObnosObohatitObojekOboutObrazecObrnaObrubaObrysObsahObsluhaObstaratObuvObvazObvinitObvodObvykleObyvatelObzorOcasOcelOcenitOchladitOchotaOchranaOcitnoutOdbojOdbytOdchodOdcizitOdebratOdeslatOdevzdatOdezvaOdhadceOdhoditOdjetOdjinudOdkazOdkoupitOdlivOdlukaOdmlkaOdolnostOdpadOdpisOdploutOdporOdpustitOdpykatOdrazkaOdsouditOdstupOdsunOdtokOdtudOdvahaOdvetaOdvolatOdvracetOdznakOfinaOfsajdOhlasOhniskoOhradaOhrozitOhryzekOkapOkeniceOklikaOknoOkouzlitOkovyOkrasaOkresOkrsekOkruhOkupantOkurkaOkusitOlejninaOlizovatOmakOmeletaOmezitOmladinaOmlouvatOmluvaOmylOnehdyOpakovatOpasekOperaceOpiceOpilostOpisovatOporaOpoziceOpravduOprotiOrbitalOrchestrOrgieOrliceOrlojOrtelOsadaOschnoutOsikaOsivoOslavaOslepitOslnitOslovitOsnovaOsobaOsolitOspalecOstenOstrahaOstudaOstychOsvojitOteplitOtiskOtopOtrhatOtrlostOtrokOtrubyOtvorOvanoutOvarOvesOvlivnitOvoceOxidOzdobaPachatelPacientPadouchPahorekPaktPalandaPalecPalivoPalubaPamfletPamlsekPanenkaPanikaPannaPanovatPanstvoPantoflePaprikaParketaParodiePartaParukaParybaPasekaPasivitaPastelkaPatentPatronaPavoukPaznehtPazourekPeckaPedagogPejsekPekloPelotonPenaltaPendrekPenzePeriskopPeroPestrostPetardaPeticePetrolejPevninaPexesoPianistaPihaPijavicePiklePiknikPilinaPilnostPilulkaPinzetaPipetaPisatelPistolePitevnaPivnicePivovarPlacentaPlakatPlamenPlanetaPlastikaPlatitPlavidloPlazPlechPlemenoPlentaPlesPletivoPlevelPlivatPlnitPlnoPlochaPlodinaPlombaPloutPlukPlynPobavitPobytPochodPocitPoctivecPodatPodcenitPodepsatPodhledPodivitPodkladPodmanitPodnikPodobaPodporaPodrazPodstataPodvodPodzimPoeziePohankaPohnutkaPohovorPohromaPohybPointaPojistkaPojmoutPokazitPoklesPokojPokrokPokutaPokynPolednePolibekPolknoutPolohaPolynomPomaluPominoutPomlkaPomocPomstaPomysletPonechatPonorkaPonurostPopadatPopelPopisekPoplachPoprositPopsatPopudPoradcePorcePorodPoruchaPoryvPosaditPosedPosilaPoskokPoslanecPosouditPospoluPostavaPosudekPosypPotahPotkanPotleskPotomekPotravaPotupaPotvoraPoukazPoutoPouzdroPovahaPovidlaPovlakPovozPovrchPovstatPovykPovzdechPozdravPozemekPoznatekPozorPozvatPracovatPrahoryPraktikaPralesPraotecPraporekPrasePravdaPrincipPrknoProbuditProcentoProdejProfeseProhraProjektProlomitPromilePronikatPropadProrokProsbaProtonProutekProvazPrskavkaPrstenPrudkostPrutPrvekPrvohoryPsanecPsovodPstruhPtactvoPubertaPuchPudlPukavecPuklinaPukrlePultPumpaPuncPupenPusaPusinkaPustinaPutovatPutykaPyramidaPyskPytelRacekRachotRadiaceRadniceRadonRaftRagbyRaketaRakovinaRamenoRampouchRandeRarachRaritaRasovnaRastrRatolestRazanceRazidloReagovatReakceReceptRedaktorReferentReflexRejnokReklamaRekordRekrutRektorReputaceRevizeRevmaRevolverRezervaRiskovatRizikoRobotikaRodokmenRohovkaRokleRokokoRomanetoRopovodRopuchaRorejsRosolRostlinaRotmistrRotopedRotundaRoubenkaRouchoRoupRouraRovinaRovniceRozborRozchodRozdatRozeznatRozhodceRozinkaRozjezdRozkazRozlohaRozmarRozpadRozruchRozsahRoztokRozumRozvodRubrikaRuchadloRukaviceRukopisRybaRybolovRychlostRydloRypadloRytinaRyzostSadistaSahatSakoSamecSamizdatSamotaSanitkaSardinkaSasankaSatelitSazbaSazeniceSborSchovatSebrankaSeceseSedadloSedimentSedloSehnatSejmoutSekeraSektaSekundaSekvojeSemenoSenoServisSesaditSeshoraSeskokSeslatSestraSesuvSesypatSetbaSetinaSetkatSetnoutSetrvatSeverSeznamShodaShrnoutSifonSilniceSirkaSirotekSirupSituaceSkafandrSkaliskoSkanzenSkautSkeptikSkicaSkladbaSkleniceSkloSkluzSkobaSkokanSkoroSkriptaSkrzSkupinaSkvostSkvrnaSlabikaSladidloSlaninaSlastSlavnostSledovatSlepecSlevaSlezinaSlibSlinaSlizniceSlonSloupekSlovoSluchSluhaSlunceSlupkaSlzaSmaragdSmetanaSmilstvoSmlouvaSmogSmradSmrkSmrtkaSmutekSmyslSnadSnahaSnobSobotaSochaSodovkaSokolSopkaSotvaSoubojSoucitSoudceSouhlasSouladSoumrakSoupravaSousedSoutokSouvisetSpalovnaSpasitelSpisSplavSpodekSpojenecSpoluSponzorSpornostSpoustaSprchaSpustitSrandaSrazSrdceSrnaSrnecSrovnatSrpenSrstSrubStaniceStarostaStatikaStavbaStehnoStezkaStodolaStolekStopaStornoStoupatStrachStresStrhnoutStromStrunaStudnaStupniceStvolStykSubjektSubtropySucharSudostSuknoSundatSunoutSurikataSurovinaSvahSvalstvoSvetrSvatbaSvazekSvisleSvitekSvobodaSvodidloSvorkaSvrabSykavkaSykotSynekSynovecSypatSypkostSyrovostSyselSytostTabletkaTabuleTahounTajemnoTajfunTajgaTajitTajnostTaktikaTamhleTamponTancovatTanecTankerTapetaTaveninaTazatelTechnikaTehdyTekutinaTelefonTemnotaTendenceTenistaTenorTeplotaTepnaTeprveTerapieTermoskaTextilTichoTiskopisTitulekTkadlecTkaninaTlapkaTleskatTlukotTlupaTmelToaletaTopinkaTopolTorzoTouhaToulecTradiceTraktorTrampTrasaTraverzaTrefitTrestTrezorTrhavinaTrhlinaTrochuTrojiceTroskaTroubaTrpceTrpitelTrpkostTrubecTruchlitTruhliceTrusTrvatTudyTuhnoutTuhostTundraTuristaTurnajTuzemskoTvarohTvorbaTvrdostTvrzTygrTykevUbohostUbozeUbratUbrousekUbrusUbytovnaUchoUctivostUdivitUhraditUjednatUjistitUjmoutUkazatelUklidnitUklonitUkotvitUkrojitUliceUlitaUlovitUmyvadloUnavitUniformaUniknoutUpadnoutUplatnitUplynoutUpoutatUpravitUranUrazitUsednoutUsilovatUsmrtitUsnadnitUsnoutUsouditUstlatUstrnoutUtahovatUtkatUtlumitUtonoutUtopenecUtrousitUvalitUvolnitUvozovkaUzdravitUzelUzeninaUzlinaUznatVagonValchaValounVanaVandalVanilkaVaranVarhanyVarovatVcelkuVchodVdovaVedroVegetaceVejceVelbloudVeletrhVelitelVelmocVelrybaVenkovVerandaVerzeVeselkaVeskrzeVesniceVespoduVestaVeterinaVeverkaVibraceVichrVideohraVidinaVidleVilaViniceVisetVitalitaVizeVizitkaVjezdVkladVkusVlajkaVlakVlasecVlevoVlhkostVlivVlnovkaVloupatVnucovatVnukVodaVodivostVodoznakVodstvoVojenskyVojnaVojskoVolantVolbaVolitVolnoVoskovkaVozidloVozovnaVpravoVrabecVracetVrahVrataVrbaVrcholekVrhatVrstvaVrtuleVsaditVstoupitVstupVtipVybavitVybratVychovatVydatVydraVyfotitVyhledatVyhnoutVyhoditVyhraditVyhubitVyjasnitVyjetVyjmoutVyklopitVykonatVylekatVymazatVymezitVymizetVymysletVynechatVynikatVynutitVypadatVyplatitVypravitVypustitVyrazitVyrovnatVyrvatVyslovitVysokoVystavitVysunoutVysypatVytasitVytesatVytratitVyvinoutVyvolatVyvrhelVyzdobitVyznatVzaduVzbuditVzchopitVzdorVzduchVzdychatVzestupVzhledemVzkazVzlykatVznikVzorekVzpouraVztahVztekXylofonZabratZabydletZachovatZadarmoZadusitZafoukatZahltitZahoditZahradaZahynoutZajatecZajetZajistitZaklepatZakoupitZalepitZamezitZamotatZamysletZanechatZanikatZaplatitZapojitZapsatZarazitZastavitZasunoutZatajitZatemnitZatknoutZaujmoutZavalitZaveletZavinitZavolatZavrtatZazvonitZbavitZbrusuZbudovatZbytekZdalekaZdarmaZdatnostZdivoZdobitZdrojZdvihZdymadloZeleninaZemanZeminaZeptatZezaduZezdolaZhatitZhltnoutZhlubokaZhotovitZhrubaZimaZimniceZjemnitZklamatZkoumatZkratkaZkumavkaZlatoZlehkaZlobaZlomZlostZlozvykZmapovatZmarZmatekZmijeZmizetZmocnitZmodratZmrzlinaZmutovatZnakZnalostZnamenatZnovuZobrazitZotavitZoubekZoufaleZploditZpomalitZpravaZprostitZprudkaZprvuZradaZranitZrcadloZrnitostZrnoZrovnaZrychlitZrzavostZtichaZtratitZubovinaZubrZvednoutZvenkuZveselaZvonZvratZvukovodZvyk".replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),"0x25f44555f4af25b51a711136e1c7d6e50ce9f8917d39d6b1f076b2bb4d2fac1a"!==si.check(t)))throw sf=null,Error("BIP39 Wordlist for en (English) FAILED")}class sa extends si{constructor(){super("cz")}getWord(t){return so(this),sf[t]}getWordIndex(t){return so(this),sf.indexOf(t)}}let ss=new sa;si.register(ss);let su=null;function sl(t){if(null==su&&(su="AbandonAbilityAbleAboutAboveAbsentAbsorbAbstractAbsurdAbuseAccessAccidentAccountAccuseAchieveAcidAcousticAcquireAcrossActActionActorActressActualAdaptAddAddictAddressAdjustAdmitAdultAdvanceAdviceAerobicAffairAffordAfraidAgainAgeAgentAgreeAheadAimAirAirportAisleAlarmAlbumAlcoholAlertAlienAllAlleyAllowAlmostAloneAlphaAlreadyAlsoAlterAlwaysAmateurAmazingAmongAmountAmusedAnalystAnchorAncientAngerAngleAngryAnimalAnkleAnnounceAnnualAnotherAnswerAntennaAntiqueAnxietyAnyApartApologyAppearAppleApproveAprilArchArcticAreaArenaArgueArmArmedArmorArmyAroundArrangeArrestArriveArrowArtArtefactArtistArtworkAskAspectAssaultAssetAssistAssumeAsthmaAthleteAtomAttackAttendAttitudeAttractAuctionAuditAugustAuntAuthorAutoAutumnAverageAvocadoAvoidAwakeAwareAwayAwesomeAwfulAwkwardAxisBabyBachelorBaconBadgeBagBalanceBalconyBallBambooBananaBannerBarBarelyBargainBarrelBaseBasicBasketBattleBeachBeanBeautyBecauseBecomeBeefBeforeBeginBehaveBehindBelieveBelowBeltBenchBenefitBestBetrayBetterBetweenBeyondBicycleBidBikeBindBiologyBirdBirthBitterBlackBladeBlameBlanketBlastBleakBlessBlindBloodBlossomBlouseBlueBlurBlushBoardBoatBodyBoilBombBoneBonusBookBoostBorderBoringBorrowBossBottomBounceBoxBoyBracketBrainBrandBrassBraveBreadBreezeBrickBridgeBriefBrightBringBriskBroccoliBrokenBronzeBroomBrotherBrownBrushBubbleBuddyBudgetBuffaloBuildBulbBulkBulletBundleBunkerBurdenBurgerBurstBusBusinessBusyButterBuyerBuzzCabbageCabinCableCactusCageCakeCallCalmCameraCampCanCanalCancelCandyCannonCanoeCanvasCanyonCapableCapitalCaptainCarCarbonCardCargoCarpetCarryCartCaseCashCasinoCastleCasualCatCatalogCatchCategoryCattleCaughtCauseCautionCaveCeilingCeleryCementCensusCenturyCerealCertainChairChalkChampionChangeChaosChapterChargeChaseChatCheapCheckCheeseChefCherryChestChickenChiefChildChimneyChoiceChooseChronicChuckleChunkChurnCigarCinnamonCircleCitizenCityCivilClaimClapClarifyClawClayCleanClerkCleverClickClientCliffClimbClinicClipClockClogCloseClothCloudClownClubClumpClusterClutchCoachCoastCoconutCodeCoffeeCoilCoinCollectColorColumnCombineComeComfortComicCommonCompanyConcertConductConfirmCongressConnectConsiderControlConvinceCookCoolCopperCopyCoralCoreCornCorrectCostCottonCouchCountryCoupleCourseCousinCoverCoyoteCrackCradleCraftCramCraneCrashCraterCrawlCrazyCreamCreditCreekCrewCricketCrimeCrispCriticCropCrossCrouchCrowdCrucialCruelCruiseCrumbleCrunchCrushCryCrystalCubeCultureCupCupboardCuriousCurrentCurtainCurveCushionCustomCuteCycleDadDamageDampDanceDangerDaringDashDaughterDawnDayDealDebateDebrisDecadeDecemberDecideDeclineDecorateDecreaseDeerDefenseDefineDefyDegreeDelayDeliverDemandDemiseDenialDentistDenyDepartDependDepositDepthDeputyDeriveDescribeDesertDesignDeskDespairDestroyDetailDetectDevelopDeviceDevoteDiagramDialDiamondDiaryDiceDieselDietDifferDigitalDignityDilemmaDinnerDinosaurDirectDirtDisagreeDiscoverDiseaseDishDismissDisorderDisplayDistanceDivertDivideDivorceDizzyDoctorDocumentDogDollDolphinDomainDonateDonkeyDonorDoorDoseDoubleDoveDraftDragonDramaDrasticDrawDreamDressDriftDrillDrinkDripDriveDropDrumDryDuckDumbDuneDuringDustDutchDutyDwarfDynamicEagerEagleEarlyEarnEarthEasilyEastEasyEchoEcologyEconomyEdgeEditEducateEffortEggEightEitherElbowElderElectricElegantElementElephantElevatorEliteElseEmbarkEmbodyEmbraceEmergeEmotionEmployEmpowerEmptyEnableEnactEndEndlessEndorseEnemyEnergyEnforceEngageEngineEnhanceEnjoyEnlistEnoughEnrichEnrollEnsureEnterEntireEntryEnvelopeEpisodeEqualEquipEraEraseErodeErosionErrorEruptEscapeEssayEssenceEstateEternalEthicsEvidenceEvilEvokeEvolveExactExampleExcessExchangeExciteExcludeExcuseExecuteExerciseExhaustExhibitExileExistExitExoticExpandExpectExpireExplainExposeExpressExtendExtraEyeEyebrowFabricFaceFacultyFadeFaintFaithFallFalseFameFamilyFamousFanFancyFantasyFarmFashionFatFatalFatherFatigueFaultFavoriteFeatureFebruaryFederalFeeFeedFeelFemaleFenceFestivalFetchFeverFewFiberFictionFieldFigureFileFilmFilterFinalFindFineFingerFinishFireFirmFirstFiscalFishFitFitnessFixFlagFlameFlashFlatFlavorFleeFlightFlipFloatFlockFloorFlowerFluidFlushFlyFoamFocusFogFoilFoldFollowFoodFootForceForestForgetForkFortuneForumForwardFossilFosterFoundFoxFragileFrameFrequentFreshFriendFringeFrogFrontFrostFrownFrozenFruitFuelFunFunnyFurnaceFuryFutureGadgetGainGalaxyGalleryGameGapGarageGarbageGardenGarlicGarmentGasGaspGateGatherGaugeGazeGeneralGeniusGenreGentleGenuineGestureGhostGiantGiftGiggleGingerGiraffeGirlGiveGladGlanceGlareGlassGlideGlimpseGlobeGloomGloryGloveGlowGlueGoatGoddessGoldGoodGooseGorillaGospelGossipGovernGownGrabGraceGrainGrantGrapeGrassGravityGreatGreenGridGriefGritGroceryGroupGrowGruntGuardGuessGuideGuiltGuitarGunGymHabitHairHalfHammerHamsterHandHappyHarborHardHarshHarvestHatHaveHawkHazardHeadHealthHeartHeavyHedgehogHeightHelloHelmetHelpHenHeroHiddenHighHillHintHipHireHistoryHobbyHockeyHoldHoleHolidayHollowHomeHoneyHoodHopeHornHorrorHorseHospitalHostHotelHourHoverHubHugeHumanHumbleHumorHundredHungryHuntHurdleHurryHurtHusbandHybridIceIconIdeaIdentifyIdleIgnoreIllIllegalIllnessImageImitateImmenseImmuneImpactImposeImproveImpulseInchIncludeIncomeIncreaseIndexIndicateIndoorIndustryInfantInflictInformInhaleInheritInitialInjectInjuryInmateInnerInnocentInputInquiryInsaneInsectInsideInspireInstallIntactInterestIntoInvestInviteInvolveIronIslandIsolateIssueItemIvoryJacketJaguarJarJazzJealousJeansJellyJewelJobJoinJokeJourneyJoyJudgeJuiceJumpJungleJuniorJunkJustKangarooKeenKeepKetchupKeyKickKidKidneyKindKingdomKissKitKitchenKiteKittenKiwiKneeKnifeKnockKnowLabLabelLaborLadderLadyLakeLampLanguageLaptopLargeLaterLatinLaughLaundryLavaLawLawnLawsuitLayerLazyLeaderLeafLearnLeaveLectureLeftLegLegalLegendLeisureLemonLendLengthLensLeopardLessonLetterLevelLiarLibertyLibraryLicenseLifeLiftLightLikeLimbLimitLinkLionLiquidListLittleLiveLizardLoadLoanLobsterLocalLockLogicLonelyLongLoopLotteryLoudLoungeLoveLoyalLuckyLuggageLumberLunarLunchLuxuryLyricsMachineMadMagicMagnetMaidMailMainMajorMakeMammalManManageMandateMangoMansionManualMapleMarbleMarchMarginMarineMarketMarriageMaskMassMasterMatchMaterialMathMatrixMatterMaximumMazeMeadowMeanMeasureMeatMechanicMedalMediaMelodyMeltMemberMemoryMentionMenuMercyMergeMeritMerryMeshMessageMetalMethodMiddleMidnightMilkMillionMimicMindMinimumMinorMinuteMiracleMirrorMiseryMissMistakeMixMixedMixtureMobileModelModifyMomMomentMonitorMonkeyMonsterMonthMoonMoralMoreMorningMosquitoMotherMotionMotorMountainMouseMoveMovieMuchMuffinMuleMultiplyMuscleMuseumMushroomMusicMustMutualMyselfMysteryMythNaiveNameNapkinNarrowNastyNationNatureNearNeckNeedNegativeNeglectNeitherNephewNerveNestNetNetworkNeutralNeverNewsNextNiceNightNobleNoiseNomineeNoodleNormalNorthNoseNotableNoteNothingNoticeNovelNowNuclearNumberNurseNutOakObeyObjectObligeObscureObserveObtainObviousOccurOceanOctoberOdorOffOfferOfficeOftenOilOkayOldOliveOlympicOmitOnceOneOnionOnlineOnlyOpenOperaOpinionOpposeOptionOrangeOrbitOrchardOrderOrdinaryOrganOrientOriginalOrphanOstrichOtherOutdoorOuterOutputOutsideOvalOvenOverOwnOwnerOxygenOysterOzonePactPaddlePagePairPalacePalmPandaPanelPanicPantherPaperParadeParentParkParrotPartyPassPatchPathPatientPatrolPatternPausePavePaymentPeacePeanutPearPeasantPelicanPenPenaltyPencilPeoplePepperPerfectPermitPersonPetPhonePhotoPhrasePhysicalPianoPicnicPicturePiecePigPigeonPillPilotPinkPioneerPipePistolPitchPizzaPlacePlanetPlasticPlatePlayPleasePledgePluckPlugPlungePoemPoetPointPolarPolePolicePondPonyPoolPopularPortionPositionPossiblePostPotatoPotteryPovertyPowderPowerPracticePraisePredictPreferPreparePresentPrettyPreventPricePridePrimaryPrintPriorityPrisonPrivatePrizeProblemProcessProduceProfitProgramProjectPromoteProofPropertyProsperProtectProudProvidePublicPuddingPullPulpPulsePumpkinPunchPupilPuppyPurchasePurityPurposePursePushPutPuzzlePyramidQualityQuantumQuarterQuestionQuickQuitQuizQuoteRabbitRaccoonRaceRackRadarRadioRailRainRaiseRallyRampRanchRandomRangeRapidRareRateRatherRavenRawRazorReadyRealReasonRebelRebuildRecallReceiveRecipeRecordRecycleReduceReflectReformRefuseRegionRegretRegularRejectRelaxReleaseReliefRelyRemainRememberRemindRemoveRenderRenewRentReopenRepairRepeatReplaceReportRequireRescueResembleResistResourceResponseResultRetireRetreatReturnReunionRevealReviewRewardRhythmRibRibbonRiceRichRideRidgeRifleRightRigidRingRiotRippleRiskRitualRivalRiverRoadRoastRobotRobustRocketRomanceRoofRookieRoomRoseRotateRoughRoundRouteRoyalRubberRudeRugRuleRunRunwayRuralSadSaddleSadnessSafeSailSaladSalmonSalonSaltSaluteSameSampleSandSatisfySatoshiSauceSausageSaveSayScaleScanScareScatterSceneSchemeSchoolScienceScissorsScorpionScoutScrapScreenScriptScrubSeaSearchSeasonSeatSecondSecretSectionSecuritySeedSeekSegmentSelectSellSeminarSeniorSenseSentenceSeriesServiceSessionSettleSetupSevenShadowShaftShallowShareShedShellSheriffShieldShiftShineShipShiverShockShoeShootShopShortShoulderShoveShrimpShrugShuffleShySiblingSickSideSiegeSightSignSilentSilkSillySilverSimilarSimpleSinceSingSirenSisterSituateSixSizeSkateSketchSkiSkillSkinSkirtSkullSlabSlamSleepSlenderSliceSlideSlightSlimSloganSlotSlowSlushSmallSmartSmileSmokeSmoothSnackSnakeSnapSniffSnowSoapSoccerSocialSockSodaSoftSolarSoldierSolidSolutionSolveSomeoneSongSoonSorrySortSoulSoundSoupSourceSouthSpaceSpareSpatialSpawnSpeakSpecialSpeedSpellSpendSphereSpiceSpiderSpikeSpinSpiritSplitSpoilSponsorSpoonSportSpotSpraySpreadSpringSpySquareSqueezeSquirrelStableStadiumStaffStageStairsStampStandStartStateStaySteakSteelStemStepStereoStickStillStingStockStomachStoneStoolStoryStoveStrategyStreetStrikeStrongStruggleStudentStuffStumbleStyleSubjectSubmitSubwaySuccessSuchSuddenSufferSugarSuggestSuitSummerSunSunnySunsetSuperSupplySupremeSureSurfaceSurgeSurpriseSurroundSurveySuspectSustainSwallowSwampSwapSwarmSwearSweetSwiftSwimSwingSwitchSwordSymbolSymptomSyrupSystemTableTackleTagTailTalentTalkTankTapeTargetTaskTasteTattooTaxiTeachTeamTellTenTenantTennisTentTermTestTextThankThatThemeThenTheoryThereTheyThingThisThoughtThreeThriveThrowThumbThunderTicketTideTigerTiltTimberTimeTinyTipTiredTissueTitleToastTobaccoTodayToddlerToeTogetherToiletTokenTomatoTomorrowToneTongueTonightToolToothTopTopicToppleTorchTornadoTortoiseTossTotalTouristTowardTowerTownToyTrackTradeTrafficTragicTrainTransferTrapTrashTravelTrayTreatTreeTrendTrialTribeTrickTriggerTrimTripTrophyTroubleTruckTrueTrulyTrumpetTrustTruthTryTubeTuitionTumbleTunaTunnelTurkeyTurnTurtleTwelveTwentyTwiceTwinTwistTwoTypeTypicalUglyUmbrellaUnableUnawareUncleUncoverUnderUndoUnfairUnfoldUnhappyUniformUniqueUnitUniverseUnknownUnlockUntilUnusualUnveilUpdateUpgradeUpholdUponUpperUpsetUrbanUrgeUsageUseUsedUsefulUselessUsualUtilityVacantVacuumVagueValidValleyValveVanVanishVaporVariousVastVaultVehicleVelvetVendorVentureVenueVerbVerifyVersionVeryVesselVeteranViableVibrantViciousVictoryVideoViewVillageVintageViolinVirtualVirusVisaVisitVisualVitalVividVocalVoiceVoidVolcanoVolumeVoteVoyageWageWagonWaitWalkWallWalnutWantWarfareWarmWarriorWashWaspWasteWaterWaveWayWealthWeaponWearWeaselWeatherWebWeddingWeekendWeirdWelcomeWestWetWhaleWhatWheatWheelWhenWhereWhipWhisperWideWidthWifeWildWillWinWindowWineWingWinkWinnerWinterWireWisdomWiseWishWitnessWolfWomanWonderWoodWoolWordWorkWorldWorryWorthWrapWreckWrestleWristWriteWrongYardYearYellowYouYoungYouthZebraZeroZoneZoo".replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),"0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60"!==si.check(t)))throw su=null,Error("BIP39 Wordlist for en (English) FAILED")}class sh extends si{constructor(){super("en")}getWord(t){return sl(this),su[t]}getWordIndex(t){return sl(this),su.indexOf(t)}}let sc=new sh;si.register(sc);let sd={},sp=null;function sm(t){return sn.checkNormalize(),sr(Array.prototype.filter.call(se(t.normalize("NFD").toLowerCase()),t=>t>=65&&t<=90||t>=97&&t<=123))}function sg(t){if(null==sp&&((sp="A/bacoAbdomenAbejaAbiertoAbogadoAbonoAbortoAbrazoAbrirAbueloAbusoAcabarAcademiaAccesoAccio/nAceiteAcelgaAcentoAceptarA/cidoAclararAcne/AcogerAcosoActivoActoActrizActuarAcudirAcuerdoAcusarAdictoAdmitirAdoptarAdornoAduanaAdultoAe/reoAfectarAficio/nAfinarAfirmarA/gilAgitarAgoni/aAgostoAgotarAgregarAgrioAguaAgudoA/guilaAgujaAhogoAhorroAireAislarAjedrezAjenoAjusteAlacra/nAlambreAlarmaAlbaA/lbumAlcaldeAldeaAlegreAlejarAlertaAletaAlfilerAlgaAlgodo/nAliadoAlientoAlivioAlmaAlmejaAlmi/barAltarAltezaAltivoAltoAlturaAlumnoAlzarAmableAmanteAmapolaAmargoAmasarA/mbarA/mbitoAmenoAmigoAmistadAmorAmparoAmplioAnchoAncianoAnclaAndarAnde/nAnemiaA/nguloAnilloA/nimoAni/sAnotarAntenaAntiguoAntojoAnualAnularAnuncioA~adirA~ejoA~oApagarAparatoApetitoApioAplicarApodoAporteApoyoAprenderAprobarApuestaApuroAradoAra~aArarA/rbitroA/rbolArbustoArchivoArcoArderArdillaArduoA/reaA/ridoAriesArmoni/aArne/sAromaArpaArpo/nArregloArrozArrugaArteArtistaAsaAsadoAsaltoAscensoAsegurarAseoAsesorAsientoAsiloAsistirAsnoAsombroA/speroAstillaAstroAstutoAsumirAsuntoAtajoAtaqueAtarAtentoAteoA/ticoAtletaA/tomoAtraerAtrozAtu/nAudazAudioAugeAulaAumentoAusenteAutorAvalAvanceAvaroAveAvellanaAvenaAvestruzAvio/nAvisoAyerAyudaAyunoAzafra/nAzarAzoteAzu/carAzufreAzulBabaBaborBacheBahi/aBaileBajarBalanzaBalco/nBaldeBambu/BancoBandaBa~oBarbaBarcoBarnizBarroBa/sculaBasto/nBasuraBatallaBateri/aBatirBatutaBau/lBazarBebe/BebidaBelloBesarBesoBestiaBichoBienBingoBlancoBloqueBlusaBoaBobinaBoboBocaBocinaBodaBodegaBoinaBolaBoleroBolsaBombaBondadBonitoBonoBonsa/iBordeBorrarBosqueBoteBoti/nBo/vedaBozalBravoBrazoBrechaBreveBrilloBrincoBrisaBrocaBromaBronceBroteBrujaBruscoBrutoBuceoBucleBuenoBueyBufandaBufo/nBu/hoBuitreBultoBurbujaBurlaBurroBuscarButacaBuzo/nCaballoCabezaCabinaCabraCacaoCada/verCadenaCaerCafe/Cai/daCaima/nCajaCajo/nCalCalamarCalcioCaldoCalidadCalleCalmaCalorCalvoCamaCambioCamelloCaminoCampoCa/ncerCandilCanelaCanguroCanicaCantoCa~aCa~o/nCaobaCaosCapazCapita/nCapoteCaptarCapuchaCaraCarbo/nCa/rcelCaretaCargaCari~oCarneCarpetaCarroCartaCasaCascoCaseroCaspaCastorCatorceCatreCaudalCausaCazoCebollaCederCedroCeldaCe/lebreCelosoCe/lulaCementoCenizaCentroCercaCerdoCerezaCeroCerrarCertezaCe/spedCetroChacalChalecoChampu/ChanclaChapaCharlaChicoChisteChivoChoqueChozaChuletaChuparCiclo/nCiegoCieloCienCiertoCifraCigarroCimaCincoCineCintaCipre/sCircoCiruelaCisneCitaCiudadClamorClanClaroClaseClaveClienteClimaCli/nicaCobreCoccio/nCochinoCocinaCocoCo/digoCodoCofreCogerCoheteCoji/nCojoColaColchaColegioColgarColinaCollarColmoColumnaCombateComerComidaCo/modoCompraCondeConejoCongaConocerConsejoContarCopaCopiaCorazo/nCorbataCorchoCordo/nCoronaCorrerCoserCosmosCostaCra/neoCra/terCrearCrecerCrei/doCremaCri/aCrimenCriptaCrisisCromoCro/nicaCroquetaCrudoCruzCuadroCuartoCuatroCuboCubrirCucharaCuelloCuentoCuerdaCuestaCuevaCuidarCulebraCulpaCultoCumbreCumplirCunaCunetaCuotaCupo/nCu/pulaCurarCuriosoCursoCurvaCutisDamaDanzaDarDardoDa/tilDeberDe/bilDe/cadaDecirDedoDefensaDefinirDejarDelfi/nDelgadoDelitoDemoraDensoDentalDeporteDerechoDerrotaDesayunoDeseoDesfileDesnudoDestinoDesvi/oDetalleDetenerDeudaDi/aDiabloDiademaDiamanteDianaDiarioDibujoDictarDienteDietaDiezDifi/cilDignoDilemaDiluirDineroDirectoDirigirDiscoDise~oDisfrazDivaDivinoDobleDoceDolorDomingoDonDonarDoradoDormirDorsoDosDosisDrago/nDrogaDuchaDudaDueloDue~oDulceDu/oDuqueDurarDurezaDuroE/banoEbrioEcharEcoEcuadorEdadEdicio/nEdificioEditorEducarEfectoEficazEjeEjemploElefanteElegirElementoElevarElipseE/liteElixirElogioEludirEmbudoEmitirEmocio/nEmpateEmpe~oEmpleoEmpresaEnanoEncargoEnchufeEnci/aEnemigoEneroEnfadoEnfermoEnga~oEnigmaEnlaceEnormeEnredoEnsayoEnse~arEnteroEntrarEnvaseEnvi/oE/pocaEquipoErizoEscalaEscenaEscolarEscribirEscudoEsenciaEsferaEsfuerzoEspadaEspejoEspi/aEsposaEspumaEsqui/EstarEsteEstiloEstufaEtapaEternoE/ticaEtniaEvadirEvaluarEventoEvitarExactoExamenExcesoExcusaExentoExigirExilioExistirE/xitoExpertoExplicarExponerExtremoFa/bricaFa/bulaFachadaFa/cilFactorFaenaFajaFaldaFalloFalsoFaltarFamaFamiliaFamosoFarao/nFarmaciaFarolFarsaFaseFatigaFaunaFavorFaxFebreroFechaFelizFeoFeriaFerozFe/rtilFervorFesti/nFiableFianzaFiarFibraFiccio/nFichaFideoFiebreFielFieraFiestaFiguraFijarFijoFilaFileteFilialFiltroFinFincaFingirFinitoFirmaFlacoFlautaFlechaFlorFlotaFluirFlujoFlu/orFobiaFocaFogataFogo/nFolioFolletoFondoFormaForroFortunaForzarFosaFotoFracasoFra/gilFranjaFraseFraudeFrei/rFrenoFresaFri/oFritoFrutaFuegoFuenteFuerzaFugaFumarFuncio/nFundaFurgo/nFuriaFusilFu/tbolFuturoGacelaGafasGaitaGajoGalaGaleri/aGalloGambaGanarGanchoGangaGansoGarajeGarzaGasolinaGastarGatoGavila/nGemeloGemirGenGe/neroGenioGenteGeranioGerenteGermenGestoGiganteGimnasioGirarGiroGlaciarGloboGloriaGolGolfoGolosoGolpeGomaGordoGorilaGorraGotaGoteoGozarGradaGra/ficoGranoGrasaGratisGraveGrietaGrilloGripeGrisGritoGrosorGru/aGruesoGrumoGrupoGuanteGuapoGuardiaGuerraGui/aGui~oGuionGuisoGuitarraGusanoGustarHaberHa/bilHablarHacerHachaHadaHallarHamacaHarinaHazHaza~aHebillaHebraHechoHeladoHelioHembraHerirHermanoHe/roeHervirHieloHierroHi/gadoHigieneHijoHimnoHistoriaHocicoHogarHogueraHojaHombreHongoHonorHonraHoraHormigaHornoHostilHoyoHuecoHuelgaHuertaHuesoHuevoHuidaHuirHumanoHu/medoHumildeHumoHundirHuraca/nHurtoIconoIdealIdiomaI/doloIglesiaIglu/IgualIlegalIlusio/nImagenIma/nImitarImparImperioImponerImpulsoIncapazI/ndiceInerteInfielInformeIngenioInicioInmensoInmuneInnatoInsectoInstanteIntere/sI/ntimoIntuirInu/tilInviernoIraIrisIroni/aIslaIsloteJabali/Jabo/nJamo/nJarabeJardi/nJarraJaulaJazmi/nJefeJeringaJineteJornadaJorobaJovenJoyaJuergaJuevesJuezJugadorJugoJugueteJuicioJuncoJunglaJunioJuntarJu/piterJurarJustoJuvenilJuzgarKiloKoalaLabioLacioLacraLadoLadro/nLagartoLa/grimaLagunaLaicoLamerLa/minaLa/mparaLanaLanchaLangostaLanzaLa/pizLargoLarvaLa/stimaLataLa/texLatirLaurelLavarLazoLealLeccio/nLecheLectorLeerLegio/nLegumbreLejanoLenguaLentoLe~aLeo/nLeopardoLesio/nLetalLetraLeveLeyendaLibertadLibroLicorLi/derLidiarLienzoLigaLigeroLimaLi/miteLimo/nLimpioLinceLindoLi/neaLingoteLinoLinternaLi/quidoLisoListaLiteraLitioLitroLlagaLlamaLlantoLlaveLlegarLlenarLlevarLlorarLloverLluviaLoboLocio/nLocoLocuraLo/gicaLogroLombrizLomoLonjaLoteLuchaLucirLugarLujoLunaLunesLupaLustroLutoLuzMacetaMachoMaderaMadreMaduroMaestroMafiaMagiaMagoMai/zMaldadMaletaMallaMaloMama/MamboMamutMancoMandoManejarMangaManiqui/ManjarManoMansoMantaMa~anaMapaMa/quinaMarMarcoMareaMarfilMargenMaridoMa/rmolMarro/nMartesMarzoMasaMa/scaraMasivoMatarMateriaMatizMatrizMa/ximoMayorMazorcaMechaMedallaMedioMe/dulaMejillaMejorMelenaMelo/nMemoriaMenorMensajeMenteMenu/MercadoMerengueMe/ritoMesMeso/nMetaMeterMe/todoMetroMezclaMiedoMielMiembroMigaMilMilagroMilitarMillo/nMimoMinaMineroMi/nimoMinutoMiopeMirarMisaMiseriaMisilMismoMitadMitoMochilaMocio/nModaModeloMohoMojarMoldeMolerMolinoMomentoMomiaMonarcaMonedaMonjaMontoMo~oMoradaMorderMorenoMorirMorroMorsaMortalMoscaMostrarMotivoMoverMo/vilMozoMuchoMudarMuebleMuelaMuerteMuestraMugreMujerMulaMuletaMultaMundoMu~ecaMuralMuroMu/sculoMuseoMusgoMu/sicaMusloNa/carNacio/nNadarNaipeNaranjaNarizNarrarNasalNatalNativoNaturalNa/useaNavalNaveNavidadNecioNe/ctarNegarNegocioNegroNeo/nNervioNetoNeutroNevarNeveraNichoNidoNieblaNietoNi~ezNi~oNi/tidoNivelNoblezaNocheNo/minaNoriaNormaNorteNotaNoticiaNovatoNovelaNovioNubeNucaNu/cleoNudilloNudoNueraNueveNuezNuloNu/meroNutriaOasisObesoObispoObjetoObraObreroObservarObtenerObvioOcaOcasoOce/anoOchentaOchoOcioOcreOctavoOctubreOcultoOcuparOcurrirOdiarOdioOdiseaOesteOfensaOfertaOficioOfrecerOgroOi/doOi/rOjoOlaOleadaOlfatoOlivoOllaOlmoOlorOlvidoOmbligoOndaOnzaOpacoOpcio/nO/peraOpinarOponerOptarO/pticaOpuestoOracio/nOradorOralO/rbitaOrcaOrdenOrejaO/rganoOrgi/aOrgulloOrienteOrigenOrillaOroOrquestaOrugaOsadi/aOscuroOseznoOsoOstraOto~oOtroOvejaO/vuloO/xidoOxi/genoOyenteOzonoPactoPadrePaellaPa/ginaPagoPai/sPa/jaroPalabraPalcoPaletaPa/lidoPalmaPalomaPalparPanPanalPa/nicoPanteraPa~ueloPapa/PapelPapillaPaquetePararParcelaParedParirParoPa/rpadoParquePa/rrafoPartePasarPaseoPasio/nPasoPastaPataPatioPatriaPausaPautaPavoPayasoPeato/nPecadoPeceraPechoPedalPedirPegarPeinePelarPelda~oPeleaPeligroPellejoPeloPelucaPenaPensarPe~o/nPeo/nPeorPepinoPeque~oPeraPerchaPerderPerezaPerfilPericoPerlaPermisoPerroPersonaPesaPescaPe/simoPesta~aPe/taloPetro/leoPezPezu~aPicarPicho/nPiePiedraPiernaPiezaPijamaPilarPilotoPimientaPinoPintorPinzaPi~aPiojoPipaPirataPisarPiscinaPisoPistaPito/nPizcaPlacaPlanPlataPlayaPlazaPleitoPlenoPlomoPlumaPluralPobrePocoPoderPodioPoemaPoesi/aPoetaPolenPolici/aPolloPolvoPomadaPomeloPomoPompaPonerPorcio/nPortalPosadaPoseerPosiblePostePotenciaPotroPozoPradoPrecozPreguntaPremioPrensaPresoPrevioPrimoPri/ncipePrisio/nPrivarProaProbarProcesoProductoProezaProfesorProgramaProlePromesaProntoPropioPro/ximoPruebaPu/blicoPucheroPudorPuebloPuertaPuestoPulgaPulirPulmo/nPulpoPulsoPumaPuntoPu~alPu~oPupaPupilaPure/QuedarQuejaQuemarQuererQuesoQuietoQui/micaQuinceQuitarRa/banoRabiaRaboRacio/nRadicalRai/zRamaRampaRanchoRangoRapazRa/pidoRaptoRasgoRaspaRatoRayoRazaRazo/nReaccio/nRealidadReba~oReboteRecaerRecetaRechazoRecogerRecreoRectoRecursoRedRedondoReducirReflejoReformaRefra/nRefugioRegaloRegirReglaRegresoRehe/nReinoRei/rRejaRelatoRelevoRelieveRellenoRelojRemarRemedioRemoRencorRendirRentaRepartoRepetirReposoReptilResRescateResinaRespetoRestoResumenRetiroRetornoRetratoReunirReve/sRevistaReyRezarRicoRiegoRiendaRiesgoRifaRi/gidoRigorRinco/nRi~o/nRi/oRiquezaRisaRitmoRitoRizoRobleRoceRociarRodarRodeoRodillaRoerRojizoRojoRomeroRomperRonRoncoRondaRopaRoperoRosaRoscaRostroRotarRubi/RuborRudoRuedaRugirRuidoRuinaRuletaRuloRumboRumorRupturaRutaRutinaSa/badoSaberSabioSableSacarSagazSagradoSalaSaldoSaleroSalirSalmo/nSalo/nSalsaSaltoSaludSalvarSambaSancio/nSandi/aSanearSangreSanidadSanoSantoSapoSaqueSardinaSarte/nSastreSata/nSaunaSaxofo/nSeccio/nSecoSecretoSectaSedSeguirSeisSelloSelvaSemanaSemillaSendaSensorSe~alSe~orSepararSepiaSequi/aSerSerieSermo/nServirSesentaSesio/nSetaSetentaSeveroSexoSextoSidraSiestaSieteSigloSignoSi/labaSilbarSilencioSillaSi/mboloSimioSirenaSistemaSitioSituarSobreSocioSodioSolSolapaSoldadoSoledadSo/lidoSoltarSolucio/nSombraSondeoSonidoSonoroSonrisaSopaSoplarSoporteSordoSorpresaSorteoSoste/nSo/tanoSuaveSubirSucesoSudorSuegraSueloSue~oSuerteSufrirSujetoSulta/nSumarSuperarSuplirSuponerSupremoSurSurcoSure~oSurgirSustoSutilTabacoTabiqueTablaTabu/TacoTactoTajoTalarTalcoTalentoTallaTalo/nTama~oTamborTangoTanqueTapaTapeteTapiaTapo/nTaquillaTardeTareaTarifaTarjetaTarotTarroTartaTatuajeTauroTazaTazo/nTeatroTechoTeclaTe/cnicaTejadoTejerTejidoTelaTele/fonoTemaTemorTemploTenazTenderTenerTenisTensoTeori/aTerapiaTercoTe/rminoTernuraTerrorTesisTesoroTestigoTeteraTextoTezTibioTiburo/nTiempoTiendaTierraTiesoTigreTijeraTildeTimbreTi/midoTimoTintaTi/oTi/picoTipoTiraTiro/nTita/nTi/tereTi/tuloTizaToallaTobilloTocarTocinoTodoTogaToldoTomarTonoTontoToparTopeToqueTo/raxToreroTormentaTorneoToroTorpedoTorreTorsoTortugaTosToscoToserTo/xicoTrabajoTractorTraerTra/ficoTragoTrajeTramoTranceTratoTraumaTrazarTre/bolTreguaTreintaTrenTreparTresTribuTrigoTripaTristeTriunfoTrofeoTrompaTroncoTropaTroteTrozoTrucoTruenoTrufaTuberi/aTuboTuertoTumbaTumorTu/nelTu/nicaTurbinaTurismoTurnoTutorUbicarU/lceraUmbralUnidadUnirUniversoUnoUntarU~aUrbanoUrbeUrgenteUrnaUsarUsuarioU/tilUtopi/aUvaVacaVaci/oVacunaVagarVagoVainaVajillaValeVa/lidoValleValorVa/lvulaVampiroVaraVariarVaro/nVasoVecinoVectorVehi/culoVeinteVejezVelaVeleroVelozVenaVencerVendaVenenoVengarVenirVentaVenusVerVeranoVerboVerdeVeredaVerjaVersoVerterVi/aViajeVibrarVicioVi/ctimaVidaVi/deoVidrioViejoViernesVigorVilVillaVinagreVinoVi~edoVioli/nViralVirgoVirtudVisorVi/speraVistaVitaminaViudoVivazViveroVivirVivoVolca/nVolumenVolverVorazVotarVotoVozVueloVulgarYacerYateYeguaYemaYernoYesoYodoYogaYogurZafiroZanjaZapatoZarzaZonaZorroZumoZurdo".replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" ").map(t=>(function(t){let e=[];return Array.prototype.forEach.call(se(t),t=>{47===t?(e.push(204),e.push(129)):126===t?(e.push(110),e.push(204),e.push(131)):e.push(t)}),sr(e)})(t))).forEach((t,e)=>{sd[sm(t)]=e}),"0xf74fb7092aeacdfbf8959557de22098da512207fb9f109cb526994938cf40300"!==si.check(t)))throw sp=null,Error("BIP39 Wordlist for es (Spanish) FAILED")}class sb extends si{constructor(){super("es")}getWord(t){return sg(this),sp[t]}getWordIndex(t){return sg(this),sd[sm(t)]}}let sy=new sb;si.register(sy);let sv=null,sw={};function sM(t){return sn.checkNormalize(),sr(Array.prototype.filter.call(se(t.normalize("NFD").toLowerCase()),t=>t>=65&&t<=90||t>=97&&t<=123))}function sE(t){if(null==sv&&((sv="AbaisserAbandonAbdiquerAbeilleAbolirAborderAboutirAboyerAbrasifAbreuverAbriterAbrogerAbruptAbsenceAbsoluAbsurdeAbusifAbyssalAcade/mieAcajouAcarienAccablerAccepterAcclamerAccoladeAccrocheAccuserAcerbeAchatAcheterAcidulerAcierAcompteAcque/rirAcronymeActeurActifActuelAdepteAde/quatAdhe/sifAdjectifAdjugerAdmettreAdmirerAdopterAdorerAdoucirAdresseAdroitAdulteAdverbeAe/rerAe/ronefAffaireAffecterAfficheAffreuxAffublerAgacerAgencerAgileAgiterAgraferAgre/ableAgrumeAiderAiguilleAilierAimableAisanceAjouterAjusterAlarmerAlchimieAlerteAlge-breAlgueAlie/nerAlimentAlle/gerAlliageAllouerAllumerAlourdirAlpagaAltesseAlve/oleAmateurAmbiguAmbreAme/nagerAmertumeAmidonAmiralAmorcerAmourAmovibleAmphibieAmpleurAmusantAnalyseAnaphoreAnarchieAnatomieAncienAne/antirAngleAngoisseAnguleuxAnimalAnnexerAnnonceAnnuelAnodinAnomalieAnonymeAnormalAntenneAntidoteAnxieuxApaiserApe/ritifAplanirApologieAppareilAppelerApporterAppuyerAquariumAqueducArbitreArbusteArdeurArdoiseArgentArlequinArmatureArmementArmoireArmureArpenterArracherArriverArroserArsenicArte/rielArticleAspectAsphalteAspirerAssautAsservirAssietteAssocierAssurerAsticotAstreAstuceAtelierAtomeAtriumAtroceAttaqueAttentifAttirerAttraperAubaineAubergeAudaceAudibleAugurerAuroreAutomneAutrucheAvalerAvancerAvariceAvenirAverseAveugleAviateurAvideAvionAviserAvoineAvouerAvrilAxialAxiomeBadgeBafouerBagageBaguetteBaignadeBalancerBalconBaleineBalisageBambinBancaireBandageBanlieueBannie-reBanquierBarbierBarilBaronBarqueBarrageBassinBastionBatailleBateauBatterieBaudrierBavarderBeletteBe/lierBeloteBe/ne/ficeBerceauBergerBerlineBermudaBesaceBesogneBe/tailBeurreBiberonBicycleBiduleBijouBilanBilingueBillardBinaireBiologieBiopsieBiotypeBiscuitBisonBistouriBitumeBizarreBlafardBlagueBlanchirBlessantBlinderBlondBloquerBlousonBobardBobineBoireBoiserBolideBonbonBondirBonheurBonifierBonusBordureBorneBotteBoucleBoueuxBougieBoulonBouquinBourseBoussoleBoutiqueBoxeurBrancheBrasierBraveBrebisBre-cheBreuvageBricolerBrigadeBrillantBriocheBriqueBrochureBroderBronzerBrousseBroyeurBrumeBrusqueBrutalBruyantBuffleBuissonBulletinBureauBurinBustierButinerButoirBuvableBuvetteCabanonCabineCachetteCadeauCadreCafe/ineCaillouCaissonCalculerCalepinCalibreCalmerCalomnieCalvaireCamaradeCame/raCamionCampagneCanalCanetonCanonCantineCanularCapableCaporalCapriceCapsuleCapterCapucheCarabineCarboneCaresserCaribouCarnageCarotteCarreauCartonCascadeCasierCasqueCassureCauserCautionCavalierCaverneCaviarCe/dilleCeintureCe/lesteCelluleCendrierCensurerCentralCercleCe/re/bralCeriseCernerCerveauCesserChagrinChaiseChaleurChambreChanceChapitreCharbonChasseurChatonChaussonChavirerChemiseChenilleChe/quierChercherChevalChienChiffreChignonChime-reChiotChlorureChocolatChoisirChoseChouetteChromeChuteCigareCigogneCimenterCine/maCintrerCirculerCirerCirqueCiterneCitoyenCitronCivilClaironClameurClaquerClasseClavierClientClignerClimatClivageClocheClonageCloporteCobaltCobraCocasseCocotierCoderCodifierCoffreCognerCohe/sionCoifferCoincerCole-reColibriCollineColmaterColonelCombatCome/dieCommandeCompactConcertConduireConfierCongelerConnoterConsonneContactConvexeCopainCopieCorailCorbeauCordageCornicheCorpusCorrectCorte-geCosmiqueCostumeCotonCoudeCoupureCourageCouteauCouvrirCoyoteCrabeCrainteCravateCrayonCre/atureCre/diterCre/meuxCreuserCrevetteCriblerCrierCristalCrite-reCroireCroquerCrotaleCrucialCruelCrypterCubiqueCueillirCuille-reCuisineCuivreCulminerCultiverCumulerCupideCuratifCurseurCyanureCycleCylindreCyniqueDaignerDamierDangerDanseurDauphinDe/battreDe/biterDe/borderDe/briderDe/butantDe/calerDe/cembreDe/chirerDe/ciderDe/clarerDe/corerDe/crireDe/cuplerDe/daleDe/ductifDe/esseDe/fensifDe/filerDe/frayerDe/gagerDe/givrerDe/glutirDe/graferDe/jeunerDe/liceDe/logerDemanderDemeurerDe/molirDe/nicherDe/nouerDentelleDe/nuderDe/partDe/penserDe/phaserDe/placerDe/poserDe/rangerDe/roberDe/sastreDescenteDe/sertDe/signerDe/sobe/irDessinerDestrierDe/tacherDe/testerDe/tourerDe/tresseDevancerDevenirDevinerDevoirDiableDialogueDiamantDicterDiffe/rerDige/rerDigitalDigneDiluerDimancheDiminuerDioxydeDirectifDirigerDiscuterDisposerDissiperDistanceDivertirDiviserDocileDocteurDogmeDoigtDomaineDomicileDompterDonateurDonjonDonnerDopamineDortoirDorureDosageDoseurDossierDotationDouanierDoubleDouceurDouterDoyenDragonDraperDresserDribblerDroitureDuperieDuplexeDurableDurcirDynastieE/blouirE/carterE/charpeE/chelleE/clairerE/clipseE/cloreE/cluseE/coleE/conomieE/corceE/couterE/craserE/cre/merE/crivainE/crouE/cumeE/cureuilE/difierE/duquerEffacerEffectifEffigieEffortEffrayerEffusionE/galiserE/garerE/jecterE/laborerE/largirE/lectronE/le/gantE/le/phantE/le-veE/ligibleE/litismeE/logeE/luciderE/luderEmballerEmbellirEmbryonE/meraudeE/missionEmmenerE/motionE/mouvoirEmpereurEmployerEmporterEmpriseE/mulsionEncadrerEnche-reEnclaveEncocheEndiguerEndosserEndroitEnduireE/nergieEnfanceEnfermerEnfouirEngagerEnginEngloberE/nigmeEnjamberEnjeuEnleverEnnemiEnnuyeuxEnrichirEnrobageEnseigneEntasserEntendreEntierEntourerEntraverE/nume/rerEnvahirEnviableEnvoyerEnzymeE/olienE/paissirE/pargneE/patantE/pauleE/picerieE/pide/mieE/pierE/pilogueE/pineE/pisodeE/pitapheE/poqueE/preuveE/prouverE/puisantE/querreE/quipeE/rigerE/rosionErreurE/ruptionEscalierEspadonEspe-ceEspie-gleEspoirEspritEsquiverEssayerEssenceEssieuEssorerEstimeEstomacEstradeE/tage-reE/talerE/tancheE/tatiqueE/teindreE/tendoirE/ternelE/thanolE/thiqueEthnieE/tirerE/tofferE/toileE/tonnantE/tourdirE/trangeE/troitE/tudeEuphorieE/valuerE/vasionE/ventailE/videnceE/viterE/volutifE/voquerExactExage/rerExaucerExcellerExcitantExclusifExcuseExe/cuterExempleExercerExhalerExhorterExigenceExilerExisterExotiqueExpe/dierExplorerExposerExprimerExquisExtensifExtraireExulterFableFabuleuxFacetteFacileFactureFaiblirFalaiseFameuxFamilleFarceurFarfeluFarineFaroucheFascinerFatalFatigueFauconFautifFaveurFavoriFe/brileFe/conderFe/de/rerFe/linFemmeFe/murFendoirFe/odalFermerFe/roceFerveurFestivalFeuilleFeutreFe/vrierFiascoFicelerFictifFide-leFigureFilatureFiletageFilie-reFilleulFilmerFilouFiltrerFinancerFinirFioleFirmeFissureFixerFlairerFlammeFlasqueFlatteurFle/auFle-cheFleurFlexionFloconFloreFluctuerFluideFluvialFolieFonderieFongibleFontaineForcerForgeronFormulerFortuneFossileFoudreFouge-reFouillerFoulureFourmiFragileFraiseFranchirFrapperFrayeurFre/gateFreinerFrelonFre/mirFre/ne/sieFre-reFriableFrictionFrissonFrivoleFroidFromageFrontalFrotterFruitFugitifFuiteFureurFurieuxFurtifFusionFuturGagnerGalaxieGalerieGambaderGarantirGardienGarnirGarrigueGazelleGazonGe/antGe/latineGe/luleGendarmeGe/ne/ralGe/nieGenouGentilGe/ologieGe/ome-treGe/raniumGermeGestuelGeyserGibierGiclerGirafeGivreGlaceGlaiveGlisserGlobeGloireGlorieuxGolfeurGommeGonflerGorgeGorilleGoudronGouffreGoulotGoupilleGourmandGoutteGraduelGraffitiGraineGrandGrappinGratuitGravirGrenatGriffureGrillerGrimperGrognerGronderGrotteGroupeGrugerGrutierGruye-reGue/pardGuerrierGuideGuimauveGuitareGustatifGymnasteGyrostatHabitudeHachoirHalteHameauHangarHannetonHaricotHarmonieHarponHasardHe/liumHe/matomeHerbeHe/rissonHermineHe/ronHe/siterHeureuxHibernerHibouHilarantHistoireHiverHomardHommageHomoge-neHonneurHonorerHonteuxHordeHorizonHorlogeHormoneHorribleHouleuxHousseHublotHuileuxHumainHumbleHumideHumourHurlerHydromelHygie-neHymneHypnoseIdylleIgnorerIguaneIlliciteIllusionImageImbiberImiterImmenseImmobileImmuableImpactImpe/rialImplorerImposerImprimerImputerIncarnerIncendieIncidentInclinerIncoloreIndexerIndiceInductifIne/ditIneptieInexactInfiniInfligerInformerInfusionInge/rerInhalerInhiberInjecterInjureInnocentInoculerInonderInscrireInsecteInsigneInsoliteInspirerInstinctInsulterIntactIntenseIntimeIntrigueIntuitifInutileInvasionInventerInviterInvoquerIroniqueIrradierIrre/elIrriterIsolerIvoireIvresseJaguarJaillirJambeJanvierJardinJaugerJauneJavelotJetableJetonJeudiJeunesseJoindreJoncherJonglerJoueurJouissifJournalJovialJoyauJoyeuxJubilerJugementJuniorJuponJuristeJusticeJuteuxJuve/nileKayakKimonoKiosqueLabelLabialLabourerLace/rerLactoseLaguneLaineLaisserLaitierLambeauLamelleLampeLanceurLangageLanterneLapinLargeurLarmeLaurierLavaboLavoirLectureLe/galLe/gerLe/gumeLessiveLettreLevierLexiqueLe/zardLiasseLibe/rerLibreLicenceLicorneLie-geLie-vreLigatureLigoterLigueLimerLimiteLimonadeLimpideLine/aireLingotLionceauLiquideLisie-reListerLithiumLitigeLittoralLivreurLogiqueLointainLoisirLombricLoterieLouerLourdLoutreLouveLoyalLubieLucideLucratifLueurLugubreLuisantLumie-reLunaireLundiLuronLutterLuxueuxMachineMagasinMagentaMagiqueMaigreMaillonMaintienMairieMaisonMajorerMalaxerMale/ficeMalheurMaliceMalletteMammouthMandaterManiableManquantManteauManuelMarathonMarbreMarchandMardiMaritimeMarqueurMarronMartelerMascotteMassifMate/rielMatie-reMatraqueMaudireMaussadeMauveMaximalMe/chantMe/connuMe/dailleMe/decinMe/diterMe/duseMeilleurMe/langeMe/lodieMembreMe/moireMenacerMenerMenhirMensongeMentorMercrediMe/riteMerleMessagerMesureMe/talMe/te/oreMe/thodeMe/tierMeubleMiaulerMicrobeMietteMignonMigrerMilieuMillionMimiqueMinceMine/ralMinimalMinorerMinuteMiracleMiroiterMissileMixteMobileModerneMoelleuxMondialMoniteurMonnaieMonotoneMonstreMontagneMonumentMoqueurMorceauMorsureMortierMoteurMotifMoucheMoufleMoulinMoussonMoutonMouvantMultipleMunitionMurailleMure-neMurmureMuscleMuse/umMusicienMutationMuterMutuelMyriadeMyrtilleMyste-reMythiqueNageurNappeNarquoisNarrerNatationNationNatureNaufrageNautiqueNavireNe/buleuxNectarNe/fasteNe/gationNe/gligerNe/gocierNeigeNerveuxNettoyerNeuroneNeutronNeveuNicheNickelNitrateNiveauNobleNocifNocturneNoirceurNoisetteNomadeNombreuxNommerNormatifNotableNotifierNotoireNourrirNouveauNovateurNovembreNoviceNuageNuancerNuireNuisibleNume/roNuptialNuqueNutritifObe/irObjectifObligerObscurObserverObstacleObtenirObturerOccasionOccuperOce/anOctobreOctroyerOctuplerOculaireOdeurOdorantOffenserOfficierOffrirOgiveOiseauOisillonOlfactifOlivierOmbrageOmettreOnctueuxOndulerOne/reuxOniriqueOpaleOpaqueOpe/rerOpinionOpportunOpprimerOpterOptiqueOrageuxOrangeOrbiteOrdonnerOreilleOrganeOrgueilOrificeOrnementOrqueOrtieOscillerOsmoseOssatureOtarieOuraganOursonOutilOutragerOuvrageOvationOxydeOxyge-neOzonePaisiblePalacePalmare-sPalourdePalperPanachePandaPangolinPaniquerPanneauPanoramaPantalonPapayePapierPapoterPapyrusParadoxeParcelleParesseParfumerParlerParoleParrainParsemerPartagerParureParvenirPassionPaste-quePaternelPatiencePatronPavillonPavoiserPayerPaysagePeignePeintrePelagePe/licanPellePelousePeluchePendulePe/ne/trerPe/niblePensifPe/nuriePe/pitePe/plumPerdrixPerforerPe/riodePermuterPerplexePersilPertePeserPe/talePetitPe/trirPeuplePharaonPhobiePhoquePhotonPhrasePhysiquePianoPicturalPie-cePierrePieuvrePilotePinceauPipettePiquerPiroguePiscinePistonPivoterPixelPizzaPlacardPlafondPlaisirPlanerPlaquePlastronPlateauPleurerPlexusPliagePlombPlongerPluiePlumagePochettePoe/siePoe-tePointePoirierPoissonPoivrePolairePolicierPollenPolygonePommadePompierPonctuelPonde/rerPoneyPortiquePositionPosse/derPosturePotagerPoteauPotionPoucePoulainPoumonPourprePoussinPouvoirPrairiePratiquePre/cieuxPre/direPre/fixePre/ludePre/nomPre/sencePre/textePre/voirPrimitifPrincePrisonPriverProble-meProce/derProdigeProfondProgre-sProieProjeterProloguePromenerPropreProspe-reProte/gerProuesseProverbePrudencePruneauPsychosePublicPuceronPuiserPulpePulsarPunaisePunitifPupitrePurifierPuzzlePyramideQuasarQuerelleQuestionQuie/tudeQuitterQuotientRacineRaconterRadieuxRagondinRaideurRaisinRalentirRallongeRamasserRapideRasageRatisserRavagerRavinRayonnerRe/actifRe/agirRe/aliserRe/animerRecevoirRe/citerRe/clamerRe/colterRecruterReculerRecyclerRe/digerRedouterRefaireRe/flexeRe/formerRefrainRefugeRe/galienRe/gionRe/glageRe/gulierRe/ite/rerRejeterRejouerRelatifReleverReliefRemarqueReme-deRemiseRemonterRemplirRemuerRenardRenfortReniflerRenoncerRentrerRenvoiReplierReporterRepriseReptileRequinRe/serveRe/sineuxRe/soudreRespectResterRe/sultatRe/tablirRetenirRe/ticuleRetomberRetracerRe/unionRe/ussirRevancheRevivreRe/volteRe/vulsifRichesseRideauRieurRigideRigolerRincerRiposterRisibleRisqueRituelRivalRivie-reRocheuxRomanceRompreRonceRondinRoseauRosierRotatifRotorRotuleRougeRouilleRouleauRoutineRoyaumeRubanRubisRucheRuelleRugueuxRuinerRuisseauRuserRustiqueRythmeSablerSaboterSabreSacocheSafariSagesseSaisirSaladeSaliveSalonSaluerSamediSanctionSanglierSarcasmeSardineSaturerSaugrenuSaumonSauterSauvageSavantSavonnerScalpelScandaleSce/le/ratSce/narioSceptreSche/maScienceScinderScoreScrutinSculpterSe/anceSe/cableSe/cherSecouerSe/cre/terSe/datifSe/duireSeigneurSe/jourSe/lectifSemaineSemblerSemenceSe/minalSe/nateurSensibleSentenceSe/parerSe/quenceSereinSergentSe/rieuxSerrureSe/rumServiceSe/sameSe/virSevrageSextupleSide/ralSie-cleSie/gerSifflerSigleSignalSilenceSiliciumSimpleSince-reSinistreSiphonSiropSismiqueSituerSkierSocialSocleSodiumSoigneuxSoldatSoleilSolitudeSolubleSombreSommeilSomnolerSondeSongeurSonnetteSonoreSorcierSortirSosieSottiseSoucieuxSoudureSouffleSouleverSoupapeSourceSoutirerSouvenirSpacieuxSpatialSpe/cialSphe-reSpiralStableStationSternumStimulusStipulerStrictStudieuxStupeurStylisteSublimeSubstratSubtilSubvenirSucce-sSucreSuffixeSugge/rerSuiveurSulfateSuperbeSupplierSurfaceSuricateSurmenerSurpriseSursautSurvieSuspectSyllabeSymboleSyme/trieSynapseSyntaxeSyste-meTabacTablierTactileTaillerTalentTalismanTalonnerTambourTamiserTangibleTapisTaquinerTarderTarifTartineTasseTatamiTatouageTaupeTaureauTaxerTe/moinTemporelTenailleTendreTeneurTenirTensionTerminerTerneTerribleTe/tineTexteThe-meThe/orieThe/rapieThoraxTibiaTie-deTimideTirelireTiroirTissuTitaneTitreTituberTobogganTole/rantTomateToniqueTonneauToponymeTorcheTordreTornadeTorpilleTorrentTorseTortueTotemToucherTournageTousserToxineTractionTraficTragiqueTrahirTrainTrancherTravailTre-fleTremperTre/sorTreuilTriageTribunalTricoterTrilogieTriompheTriplerTriturerTrivialTromboneTroncTropicalTroupeauTuileTulipeTumulteTunnelTurbineTuteurTutoyerTuyauTympanTyphonTypiqueTyranUbuesqueUltimeUltrasonUnanimeUnifierUnionUniqueUnitaireUniversUraniumUrbainUrticantUsageUsineUsuelUsureUtileUtopieVacarmeVaccinVagabondVagueVaillantVaincreVaisseauValableValiseVallonValveVampireVanilleVapeurVarierVaseuxVassalVasteVecteurVedetteVe/ge/talVe/hiculeVeinardVe/loceVendrediVe/ne/rerVengerVenimeuxVentouseVerdureVe/rinVernirVerrouVerserVertuVestonVe/te/ranVe/tusteVexantVexerViaducViandeVictoireVidangeVide/oVignetteVigueurVilainVillageVinaigreViolonVipe-reVirementVirtuoseVirusVisageViseurVisionVisqueuxVisuelVitalVitesseViticoleVitrineVivaceVivipareVocationVoguerVoileVoisinVoitureVolailleVolcanVoltigerVolumeVoraceVortexVoterVouloirVoyageVoyelleWagonXe/nonYachtZe-breZe/nithZesteZoologie".replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" ").map(t=>(function(t){let e=[];return Array.prototype.forEach.call(se(t),t=>{47===t?(e.push(204),e.push(129)):45===t?(e.push(204),e.push(128)):e.push(t)}),sr(e)})(t))).forEach((t,e)=>{sw[sM(t)]=e}),"0x51deb7ae009149dc61a6bd18a918eb7ac78d2775726c68e598b92d002519b045"!==si.check(t)))throw sv=null,Error("BIP39 Wordlist for fr (French) FAILED")}class sA extends si{constructor(){super("fr")}getWord(t){return sE(this),sv[t]}getWordIndex(t){return sE(this),sw[sM(t)]}}let sS=new sA;si.register(sS);let s_=["AQRASRAGBAGUAIRAHBAghAURAdBAdcAnoAMEAFBAFCBKFBQRBSFBCXBCDBCHBGFBEQBpBBpQBIkBHNBeOBgFBVCBhBBhNBmOBmRBiHBiFBUFBZDBvFBsXBkFBlcBjYBwDBMBBTBBTRBWBBWXXaQXaRXQWXSRXCFXYBXpHXOQXHRXhRXuRXmXXbRXlXXwDXTRXrCXWQXWGaBWaKcaYgasFadQalmaMBacAKaRKKBKKXKKjKQRKDRKCYKCRKIDKeVKHcKlXKjHKrYNAHNBWNaRNKcNIBNIONmXNsXNdXNnBNMBNRBNrXNWDNWMNFOQABQAHQBrQXBQXFQaRQKXQKDQKOQKFQNBQNDQQgQCXQCDQGBQGDQGdQYXQpBQpQQpHQLXQHuQgBQhBQhCQuFQmXQiDQUFQZDQsFQdRQkHQbRQlOQlmQPDQjDQwXQMBQMDQcFQTBQTHQrDDXQDNFDGBDGQDGRDpFDhFDmXDZXDbRDMYDRdDTRDrXSAhSBCSBrSGQSEQSHBSVRShYShkSyQSuFSiBSdcSoESocSlmSMBSFBSFKSFNSFdSFcCByCaRCKcCSBCSRCCrCGbCEHCYXCpBCpQCIBCIHCeNCgBCgFCVECVcCmkCmwCZXCZFCdRClOClmClFCjDCjdCnXCwBCwXCcRCFQCFjGXhGNhGDEGDMGCDGCHGIFGgBGVXGVEGVRGmXGsXGdYGoSGbRGnXGwXGwDGWRGFNGFLGFOGFdGFkEABEBDEBFEXOEaBEKSENBENDEYXEIgEIkEgBEgQEgHEhFEudEuFEiBEiHEiFEZDEvBEsXEsFEdXEdREkFEbBEbRElFEPCEfkEFNYAEYAhYBNYQdYDXYSRYCEYYoYgQYgRYuRYmCYZTYdBYbEYlXYjQYRbYWRpKXpQopQnpSFpCXpIBpISphNpdBpdRpbRpcZpFBpFNpFDpFopFrLADLBuLXQLXcLaFLCXLEhLpBLpFLHXLeVLhILdHLdRLoDLbRLrXIABIBQIBCIBsIBoIBMIBRIXaIaRIKYIKRINBINuICDIGBIIDIIkIgRIxFIyQIiHIdRIbYIbRIlHIwRIMYIcRIRVITRIFBIFNIFQOABOAFOBQOaFONBONMOQFOSFOCDOGBOEQOpBOLXOIBOIFOgQOgFOyQOycOmXOsXOdIOkHOMEOMkOWWHBNHXNHXWHNXHDuHDRHSuHSRHHoHhkHmRHdRHkQHlcHlRHwBHWcgAEgAggAkgBNgBQgBEgXOgYcgLXgHjgyQgiBgsFgdagMYgWSgFQgFEVBTVXEVKBVKNVKDVKYVKRVNBVNYVDBVDxVSBVSRVCjVGNVLXVIFVhBVhcVsXVdRVbRVlRhBYhKYhDYhGShxWhmNhdahdkhbRhjohMXhTRxAXxXSxKBxNBxEQxeNxeQxhXxsFxdbxlHxjcxFBxFNxFQxFOxFoyNYyYoybcyMYuBQuBRuBruDMuCouHBudQukkuoBulVuMXuFEmCYmCRmpRmeDmiMmjdmTFmFQiADiBOiaRiKRiNBiNRiSFiGkiGFiERipRiLFiIFihYibHijBijEiMXiWBiFBiFCUBQUXFUaRUNDUNcUNRUNFUDBUSHUCDUGBUGFUEqULNULoUIRUeEUeYUgBUhFUuRUiFUsXUdFUkHUbBUjSUjYUwXUMDUcHURdUTBUrBUrXUrQZAFZXZZaRZKFZNBZQFZCXZGBZYdZpBZLDZIFZHXZHNZeQZVRZVFZmXZiBZvFZdFZkFZbHZbFZwXZcCZcRZRBvBQvBGvBLvBWvCovMYsAFsBDsaRsKFsNFsDrsSHsSFsCXsCRsEBsEHsEfspBsLBsLDsIgsIRseGsbRsFBsFQsFSdNBdSRdCVdGHdYDdHcdVbdySduDdsXdlRdwXdWYdWcdWRkBMkXOkaRkNIkNFkSFkCFkYBkpRkeNkgBkhVkmXksFklVkMBkWDkFNoBNoaQoaFoNBoNXoNaoNEoSRoEroYXoYCoYbopRopFomXojkowXorFbBEbEIbdBbjYlaRlDElMXlFDjKjjSRjGBjYBjYkjpRjLXjIBjOFjeVjbRjwBnXQnSHnpFnLXnINnMBnTRwXBwXNwXYwNFwQFwSBwGFwLXwLDweNwgBwuHwjDwnXMBXMpFMIBMeNMTHcaQcNBcDHcSFcCXcpBcLXcLDcgFcuFcnXcwXccDcTQcrFTQErXNrCHrpFrgFrbFrTHrFcWNYWNbWEHWMXWTR","ABGHABIJAEAVAYJQALZJAIaRAHNXAHdcAHbRAZJMAZJRAZTRAdVJAklmAbcNAjdRAMnRAMWYAWpRAWgRAFgBAFhBAFdcBNJBBNJDBQKBBQhcBQlmBDEJBYJkBYJTBpNBBpJFBIJBBIJDBIcABOKXBOEJBOVJBOiJBOZJBepBBeLXBeIFBegBBgGJBVJXBuocBiJRBUJQBlXVBlITBwNFBMYVBcqXBTlmBWNFBWiJBWnRBFGHBFwXXKGJXNJBXNZJXDTTXSHSXSVRXSlHXCJDXGQJXEhXXYQJXYbRXOfXXeNcXVJFXhQJXhEJXdTRXjdXXMhBXcQTXRGBXTEBXTnQXFCXXFOFXFgFaBaFaBNJaBCJaBpBaBwXaNJKaNJDaQIBaDpRaEPDaHMFamDJalEJaMZJaFaFaFNBaFQJaFLDaFVHKBCYKBEBKBHDKXaFKXGdKXEJKXpHKXIBKXZDKXwXKKwLKNacKNYJKNJoKNWcKDGdKDTRKChXKGaRKGhBKGbRKEBTKEaRKEPTKLMDKLWRKOHDKVJcKdBcKlIBKlOPKFSBKFEPKFpFNBNJNJBQNBGHNBEPNBHXNBgFNBVXNBZDNBsXNBwXNNaRNNJDNNJENNJkNDCJNDVDNGJRNJiDNZJNNsCJNJFNNFSBNFCXNFEPNFLXNFIFQJBFQCaRQJEQQLJDQLJFQIaRQOqXQHaFQHHQQVJXQVJDQhNJQmEIQZJFQsJXQJrFQWbRDJABDBYJDXNFDXCXDXLXDXZDDXsJDQqXDSJFDJCXDEPkDEqXDYmQDpSJDOCkDOGQDHEIDVJDDuDuDWEBDJFgSBNDSBSFSBGHSBIBSBTQSKVYSJQNSJQiSJCXSEqXSJYVSIiJSOMYSHAHSHaQSeCFSepQSegBSHdHSHrFShSJSJuHSJUFSkNRSrSrSWEBSFaHSJFQSFCXSFGDSFYXSFODSFgBSFVXSFhBSFxFSFkFSFbBSFMFCADdCJXBCXaFCXKFCXNFCXCXCXGBCXEJCXYBCXLDCXIBCXOPCXHXCXgBCXhBCXiBCXlDCXcHCJNBCJNFCDCJCDGBCDVXCDhBCDiDCDJdCCmNCpJFCIaRCOqXCHCHCHZJCViJCuCuCmddCJiFCdNBCdHhClEJCnUJCreSCWlgCWTRCFBFCFNBCFYBCFVFCFhFCFdSCFTBCFWDGBNBGBQFGJBCGBEqGBpBGBgQGNBEGNJYGNkOGNJRGDUFGJpQGHaBGJeNGJeEGVBlGVKjGiJDGvJHGsVJGkEBGMIJGWjNGFBFGFCXGFGBGFYXGFpBGFMFEASJEAWpEJNFECJVEIXSEIQJEOqXEOcFEeNcEHEJEHlFEJgFEhlmEmDJEmZJEiMBEUqXEoSREPBFEPXFEPKFEPSFEPEFEPpFEPLXEPIBEJPdEPcFEPTBEJnXEqlHEMpREFCXEFODEFcFYASJYJAFYBaBYBVXYXpFYDhBYCJBYJGFYYbRYeNcYJeVYiIJYZJcYvJgYvJRYJsXYsJFYMYMYreVpBNHpBEJpBwXpQxFpYEJpeNDpJeDpeSFpeCHpHUJpHbBpHcHpmUJpiiJpUJrpsJuplITpFaBpFQqpFGBpFEfpFYBpFpBpFLJpFIDpFgBpFVXpFyQpFuFpFlFpFjDpFnXpFwXpJFMpFTBLXCJLXEFLXhFLXUJLXbFLalmLNJBLSJQLCLCLGJBLLDJLHaFLeNFLeSHLeCXLepFLhaRLZsJLsJDLsJrLocaLlLlLMdbLFNBLFSBLFEHLFkFIBBFIBXFIBaQIBKXIBSFIBpHIBLXIBgBIBhBIBuHIBmXIBiFIBZXIBvFIBbFIBjQIBwXIBWFIKTRIQUJIDGFICjQIYSRIINXIJeCIVaRImEkIZJFIvJRIsJXIdCJIJoRIbBQIjYBIcqXITFVIreVIFKFIFSFIFCJIFGFIFLDIFIBIJFOIFgBIFVXIJFhIFxFIFmXIFdHIFbBIJFrIJFWOBGBOQfXOOKjOUqXOfXBOqXEOcqXORVJOFIBOFlDHBIOHXiFHNTRHCJXHIaRHHJDHHEJHVbRHZJYHbIBHRsJHRkDHWlmgBKFgBSBgBCDgBGHgBpBgBIBgBVJgBuBgBvFgKDTgQVXgDUJgGSJgOqXgmUMgZIJgTUJgWIEgFBFgFNBgFDJgFSFgFGBgFYXgJFOgFgQgFVXgFhBgFbHgJFWVJABVQKcVDgFVOfXVeDFVhaRVmGdViJYVMaRVFNHhBNDhBCXhBEqhBpFhBLXhNJBhSJRheVXhhKEhxlmhZIJhdBQhkIJhbMNhMUJhMZJxNJgxQUJxDEkxDdFxSJRxplmxeSBxeCXxeGFxeYXxepQxegBxWVcxFEQxFLXxFIBxFgBxFxDxFZtxFdcxFbBxFwXyDJXyDlcuASJuDJpuDIBuCpJuGSJuIJFueEFuZIJusJXudWEuoIBuWGJuFBcuFKEuFNFuFQFuFDJuFGJuFVJuFUtuFdHuFTBmBYJmNJYmQhkmLJDmLJomIdXmiJYmvJRmsJRmklmmMBymMuCmclmmcnQiJABiJBNiJBDiBSFiBCJiBEFiBYBiBpFiBLXiBTHiJNciDEfiCZJiECJiJEqiOkHiHKFieNDiHJQieQcieDHieSFieCXieGFieEFieIHiegFihUJixNoioNXiFaBiFKFiFNDiFEPiFYXitFOitFHiFgBiFVEiFmXiFitiFbBiFMFiFrFUCXQUIoQUIJcUHQJUeCEUHwXUUJDUUqXUdWcUcqXUrnQUFNDUFSHUFCFUFEfUFLXUtFOZBXOZXSBZXpFZXVXZEQJZEJkZpDJZOqXZeNHZeCDZUqXZFBQZFEHZFLXvBAFvBKFvBCXvBEPvBpHvBIDvBgFvBuHvQNJvFNFvFGBvFIBvJFcsXCDsXLXsXsXsXlFsXcHsQqXsJQFsEqXseIFsFEHsFjDdBxOdNpRdNJRdEJbdpJRdhZJdnSJdrjNdFNJdFQHdFhNkNJDkYaRkHNRkHSRkVbRkuMRkjSJkcqDoSJFoEiJoYZJoOfXohEBoMGQocqXbBAFbBXFbBaFbBNDbBGBbBLXbBTBbBWDbGJYbIJHbFQqbFpQlDgQlOrFlVJRjGEBjZJRnXvJnXbBnEfHnOPDngJRnxfXnUJWwXEJwNpJwDpBwEfXwrEBMDCJMDGHMDIJMLJDcQGDcQpHcqXccqNFcqCXcFCJRBSBRBGBRBEJRBpQTBNFTBQJTBpBTBVXTFABTFSBTFCFTFGBTFMDrXCJrXLDrDNJrEfHrFQJrFitWNjdWNTR","AKLJMANOPFASNJIAEJWXAYJNRAIIbRAIcdaAeEfDAgidRAdjNYAMYEJAMIbRAFNJBAFpJFBBIJYBDZJFBSiJhBGdEBBEJfXBEJqXBEJWRBpaUJBLXrXBIYJMBOcfXBeEfFBestXBjNJRBcDJOBFEqXXNvJRXDMBhXCJNYXOAWpXONJWXHDEBXeIaRXhYJDXZJSJXMDJOXcASJXFVJXaBQqXaBZJFasXdQaFSJQaFEfXaFpJHaFOqXKBNSRKXvJBKQJhXKEJQJKEJGFKINJBKIJjNKgJNSKVElmKVhEBKiJGFKlBgJKjnUJKwsJYKMFIJKFNJDKFIJFKFOfXNJBSFNJBCXNBpJFNJBvQNJBMBNJLJXNJOqXNJeCXNJeGFNdsJCNbTKFNwXUJQNFEPQDiJcQDMSJQSFpBQGMQJQJeOcQyCJEQUJEBQJFBrQFEJqDXDJFDJXpBDJXIMDGiJhDIJGRDJeYcDHrDJDVXgFDkAWpDkIgRDjDEqDMvJRDJFNFDJFIBSKclmSJQOFSJQVHSJQjDSJGJBSJGJFSECJoSHEJqSJHTBSJVJDSViJYSZJNBSJsJDSFSJFSFEfXSJFLXCBUJVCJXSBCJXpBCXVJXCJXsXCJXdFCJNJHCLIJgCHiJFCVNJMChCJhCUHEJCsJTRCJdYcCoQJCCFEfXCFIJgCFUJxCFstFGJBaQGJBIDGQJqXGYJNRGJHKFGeQqDGHEJFGJeLXGHIiJGHdBlGUJEBGkIJTGFQPDGJFEqEAGegEJIJBEJVJXEhQJTEiJNcEJZJFEJoEqEjDEqEPDsXEPGJBEPOqXEPeQFEfDiDEJfEFEfepQEfMiJEqXNBEqDIDEqeSFEqVJXEMvJRYXNJDYXEJHYKVJcYYJEBYJeEcYJUqXYFpJFYFstXpAZJMpBSJFpNBNFpeQPDpHLJDpHIJFpHgJFpeitFpHZJFpJFADpFSJFpJFCJpFOqXpFitBpJFZJLXIJFLIJgRLVNJWLVHJMLwNpJLFGJBLFLJDLFOqXLJFUJIBDJXIBGJBIJBYQIJBIBIBOqXIBcqDIEGJFILNJTIIJEBIOiJhIJeNBIJeIBIhiJIIWoTRIJFAHIJFpBIJFuHIFUtFIJFTHOSBYJOEcqXOHEJqOvBpFOkVJrObBVJOncqDOcNJkHhNJRHuHJuHdMhBgBUqXgBsJXgONJBgHNJDgHHJQgJeitgHsJXgJyNagyDJBgZJDrgsVJQgkEJNgkjSJgJFAHgFCJDgFZtMVJXNFVXQfXVJXDJVXoQJVQVJQVDEfXVDvJHVEqNFVeQfXVHpJFVHxfXVVJSRVVmaRVlIJOhCXVJhHjYkhxCJVhWVUJhWiJcxBNJIxeEqDxfXBFxcFEPxFSJFxFYJXyBDQJydaUJyFOPDuYCJYuLvJRuHLJXuZJLDuFOPDuFZJHuFcqXmKHJdmCQJcmOsVJiJAGFitLCFieOfXiestXiZJMEikNJQirXzFiFQqXiFIJFiFZJFiFvtFUHpJFUteIcUteOcUVCJkUhdHcUbEJEUJqXQUMNJhURjYkUFitFZDGJHZJIxDZJVJXZJFDJZJFpQvBNJBvBSJFvJxBrseQqDsVFVJdFLJDkEJNBkmNJYkFLJDoQJOPoGsJRoEAHBoEJfFbBQqDbBZJHbFVJXlFIJBjYIrXjeitcjjCEBjWMNBwXQfXwXOaFwDsJXwCJTRwrCZJMDNJQcDDJFcqDOPRYiJFTBsJXTQIJBTFEfXTFLJDrXEJFrEJXMrFZJFWEJdEWYTlm","ABCDEFACNJTRAMBDJdAcNJVXBLNJEBXSIdWRXErNJkXYDJMBXZJCJaXMNJaYKKVJKcKDEJqXKDcNJhKVJrNYKbgJVXKFVJSBNBYBwDNJeQfXNJeEqXNhGJWENJFiJRQlIJbEQJfXxDQqXcfXQFNDEJQFwXUJDYcnUJDJIBgQDIUJTRDJFEqDSJQSJFSJQIJFSOPeZtSJFZJHCJXQfXCTDEqFGJBSJFGJBOfXGJBcqXGJHNJDGJRLiJEJfXEqEJFEJPEFpBEJYJBZJFYBwXUJYiJMEBYJZJyTYTONJXpQMFXFpeGIDdpJFstXpJFcPDLBVSJRLHQJqXLJFZJFIJBNJDIJBUqXIBkFDJIJEJPTIYJGWRIJeQPDIJeEfHIJFsJXOqGDSFHXEJqXgJCsJCgGQJqXgdQYJEgFMFNBgJFcqDVJwXUJVJFZJchIgJCCxOEJqXxOwXUJyDJBVRuscisciJBiJBieUtqXiJFDJkiFsJXQUGEZJcUJFsJXZtXIrXZDZJDrZJFNJDZJFstXvJFQqXvJFCJEsJXQJqkhkNGBbDJdTRbYJMEBlDwXUJMEFiJFcfXNJDRcNJWMTBLJXC","BraFUtHBFSJFdbNBLJXVJQoYJNEBSJBEJfHSJHwXUJCJdAZJMGjaFVJXEJPNJBlEJfFiJFpFbFEJqIJBVJCrIBdHiJhOPFChvJVJZJNJWxGFNIFLueIBQJqUHEJfUFstOZJDrlXEASJRlXVJXSFwVJNJWD","QJEJNNJDQJEJIBSFQJEJxegBQJEJfHEPSJBmXEJFSJCDEJqXLXNJFQqXIcQsFNJFIFEJqXUJgFsJXIJBUJEJfHNFvJxEqXNJnXUJFQqD","IJBEJqXZJ"],sN=null;function sT(t){return function(t,e){if(e||(e={}),"number"==typeof t){a0.checkSafeUint53(t,"invalid hexlify value");let e="";for(;t;)e=a4[15&t]+e,t=Math.floor(t/16);return e.length?(e.length%2&&(e="0"+e),"0x"+e):"0x00"}if("bigint"==typeof t)return(t=t.toString(16)).length%2?"0x0"+t:"0x"+t;if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),a1(t))return t.toHexString();if(a3(t))return t.length%2&&("left"===e.hexPad?t="0x0"+t.substring(2):"right"===e.hexPad?t+="0":a0.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(a2(t)){let e="0x";for(let r=0;r<t.length;r++){let n=t[r];e+=a4[(240&n)>>4]+a4[15&n]}return e}return a0.throwArgumentError("invalid hexlify value","value",t)}(se(t))}function sR(t){if(null!==sN)return;sN=[];let e={};function r(t){let r="";for(let n=0;n<t.length;n++){let i=t[n],f=e[i];!1!==f&&(f&&(i=f),r+=i)}return r}e[sr([227,130,154])]=!1,e[sr([227,130,153])]=!1,e[sr([227,130,133])]=sr([227,130,134]),e[sr([227,129,163])]=sr([227,129,164]),e[sr([227,130,131])]=sr([227,130,132]),e[sr([227,130,135])]=sr([227,130,136]);for(let t=3;t<=9;t++){let e=s_[t-3];for(let r=0;r<e.length;r+=t){let n=[];for(let i=0;i<t;i++){let t="~~AzB~X~a~KN~Q~D~S~C~G~E~Y~p~L~I~O~eH~g~V~hxyumi~~U~~Z~~v~~s~~dkoblPjfnqwMcRTr~W~~~F~~~~~Jt".indexOf(e[r+i]);n.push(227),n.push(64&t?130:129),n.push((63&t)+128)}sN.push(sr(n))}}if(sN.sort(function(t,e){return(t=r(t))<(e=r(e))?-1:t>e?1:0}),"0xe3818de38284e3818f"===sT(sN[442])&&"0xe3818de38283e3818f"===sT(sN[443])){let t=sN[442];sN[442]=sN[443],sN[443]=t}if("0xcb36b09e6baa935787fd762ce65e80b0c6a8dabdfbc3a7f86ac0e2c4fd111600"!==si.check(t))throw sN=null,Error("BIP39 Wordlist for ja (Japanese) FAILED")}class sC extends si{constructor(){super("ja")}getWord(t){return sR(this),sN[t]}getWordIndex(t){return sR(this),sN.indexOf(t)}split(t){return sn.checkNormalize(),t.split(/(?:\u3000| )+/g)}join(t){return t.join("　")}}let sI=new sC;si.register(sI);let sP=["OYAa","ATAZoATBl3ATCTrATCl8ATDloATGg3ATHT8ATJT8ATJl3ATLlvATLn4ATMT8ATMX8ATMboATMgoAToLbAToMTATrHgATvHnAT3AnAT3JbAT3MTAT8DbAT8JTAT8LmAT8MYAT8MbAT#LnAUHT8AUHZvAUJXrAUJX8AULnrAXJnvAXLUoAXLgvAXMn6AXRg3AXrMbAX3JTAX3QbAYLn3AZLgvAZrSUAZvAcAZ8AaAZ8AbAZ8AnAZ8HnAZ8LgAZ8MYAZ8MgAZ8OnAaAboAaDTrAaFTrAaJTrAaJboAaLVoAaMXvAaOl8AaSeoAbAUoAbAg8AbAl4AbGnrAbMT8AbMXrAbMn4AbQb8AbSV8AbvRlAb8AUAb8AnAb8HgAb8JTAb8NTAb8RbAcGboAcLnvAcMT8AcMX8AcSToAcrAaAcrFnAc8AbAc8MgAfGgrAfHboAfJnvAfLV8AfLkoAfMT8AfMnoAfQb8AfScrAfSgrAgAZ8AgFl3AgGX8AgHZvAgHgrAgJXoAgJX8AgJboAgLZoAgLn4AgOX8AgoATAgoAnAgoCUAgoJgAgoLXAgoMYAgoSeAgrDUAgrJTAhrFnAhrLjAhrQgAjAgoAjJnrAkMX8AkOnoAlCTvAlCV8AlClvAlFg4AlFl6AlFn3AloSnAlrAXAlrAfAlrFUAlrFbAlrGgAlrOXAlvKnAlvMTAl3AbAl3MnAnATrAnAcrAnCZ3AnCl8AnDg8AnFboAnFl3AnHX4AnHbrAnHgrAnIl3AnJgvAnLXoAnLX4AnLbrAnLgrAnLhrAnMXoAnMgrAnOn3AnSbrAnSeoAnvLnAn3OnCTGgvCTSlvCTvAUCTvKnCTvNTCT3CZCT3GUCT3MTCT8HnCUCZrCULf8CULnvCU3HnCU3JUCY6NUCbDb8CbFZoCbLnrCboOTCboScCbrFnCbvLnCb8AgCb8HgCb$LnCkLfoClBn3CloDUDTHT8DTLl3DTSU8DTrAaDTrLXDTrLjDTrOYDTrOgDTvFXDTvFnDT3HUDT3LfDUCT9DUDT4DUFVoDUFV8DUFkoDUGgrDUJnrDULl8DUMT8DUMXrDUMX4DUMg8DUOUoDUOgvDUOg8DUSToDUSZ8DbDXoDbDgoDbGT8DbJn3DbLg3DbLn4DbMXrDbMg8DbOToDboJXGTClvGTDT8GTFZrGTLVoGTLlvGTLl3GTMg8GTOTvGTSlrGToCUGTrDgGTrJYGTrScGTtLnGTvAnGTvQgGUCZrGUDTvGUFZoGUHXrGULnvGUMT8GUoMgGXoLnGXrMXGXrMnGXvFnGYLnvGZOnvGZvOnGZ8LaGZ8LmGbAl3GbDYvGbDlrGbHX3GbJl4GbLV8GbLn3GbMn4GboJTGboRfGbvFUGb3GUGb4JnGgDX3GgFl$GgJlrGgLX6GgLZoGgLf8GgOXoGgrAgGgrJXGgrMYGgrScGgvATGgvOYGnAgoGnJgvGnLZoGnLg3GnLnrGnQn8GnSbrGnrMgHTClvHTDToHTFT3HTQT8HToJTHToJgHTrDUHTrMnHTvFYHTvRfHT8MnHT8SUHUAZ8HUBb4HUDTvHUoMYHXFl6HXJX6HXQlrHXrAUHXrMnHXrSbHXvFYHXvKXHX3LjHX3MeHYvQlHZrScHZvDbHbAcrHbFT3HbFl3HbJT8HbLTrHbMT8HbMXrHbMbrHbQb8HbSX3HboDbHboJTHbrFUHbrHgHbrJTHb8JTHb8MnHb8QgHgAlrHgDT3HgGgrHgHgrHgJTrHgJT8HgLX@HgLnrHgMT8HgMX8HgMboHgOnrHgQToHgRg3HgoHgHgrCbHgrFnHgrLVHgvAcHgvAfHnAloHnCTrHnCnvHnGTrHnGZ8HnGnvHnJT8HnLf8HnLkvHnMg8HnRTrITvFUITvFnJTAXrJTCV8JTFT3JTFT8JTFn4JTGgvJTHT8JTJT8JTJXvJTJl3JTJnvJTLX4JTLf8JTLhvJTMT8JTMXrJTMnrJTObrJTQT8JTSlvJT8DUJT8FkJT8MTJT8OXJT8OgJT8QUJT8RfJUHZoJXFT4JXFlrJXGZ8JXGnrJXLV8JXLgvJXMXoJXMX3JXNboJXPlvJXoJTJXoLkJXrAXJXrHUJXrJgJXvJTJXvOnJX4KnJYAl3JYJT8JYLhvJYQToJYrQXJY6NUJbAl3JbCZrJbDloJbGT8JbGgrJbJXvJbJboJbLf8JbLhrJbLl3JbMnvJbRg8JbSZ8JboDbJbrCZJbrSUJb3KnJb8LnJfRn8JgAXrJgCZrJgDTrJgGZrJgGZ8JgHToJgJT8JgJXoJgJgvJgLX4JgLZ3JgLZ8JgLn4JgMgrJgMn4JgOgvJgPX6JgRnvJgSToJgoCZJgoJbJgoMYJgrJXJgrJgJgrLjJg6MTJlCn3JlGgvJlJl8Jl4AnJl8FnJl8HgJnAToJnATrJnAbvJnDUoJnGnrJnJXrJnJXvJnLhvJnLnrJnLnvJnMToJnMT8JnMXvJnMX3JnMg8JnMlrJnMn4JnOX8JnST4JnSX3JnoAgJnoAnJnoJTJnoObJnrAbJnrAkJnrHnJnrJTJnrJYJnrOYJnrScJnvCUJnvFaJnvJgJnvJnJnvOYJnvQUJnvRUJn3FnJn3JTKnFl3KnLT6LTDlvLTMnoLTOn3LTRl3LTSb4LTSlrLToAnLToJgLTrAULTrAcLTrCULTrHgLTrMgLT3JnLULnrLUMX8LUoJgLVATrLVDTrLVLb8LVoJgLV8MgLV8RTLXDg3LXFlrLXrCnLXrLXLX3GTLX4GgLX4OYLZAXrLZAcrLZAgrLZAhrLZDXyLZDlrLZFbrLZFl3LZJX6LZJX8LZLc8LZLnrLZSU8LZoJTLZoJnLZrAgLZrAnLZrJYLZrLULZrMgLZrSkLZvAnLZvGULZvJeLZvOTLZ3FZLZ4JXLZ8STLZ8ScLaAT3LaAl3LaHT8LaJTrLaJT8LaJXrLaJgvLaJl4LaLVoLaMXrLaMXvLaMX8LbClvLbFToLbHlrLbJn4LbLZ3LbLhvLbMXrLbMnoLbvSULcLnrLc8HnLc8MTLdrMnLeAgoLeOgvLeOn3LfAl3LfLnvLfMl3LfOX8Lf8AnLf8JXLf8LXLgJTrLgJXrLgJl8LgMX8LgRZrLhCToLhrAbLhrFULhrJXLhvJYLjHTrLjHX4LjJX8LjLhrLjSX3LjSZ4LkFX4LkGZ8LkGgvLkJTrLkMXoLkSToLkSU8LkSZ8LkoOYLl3FfLl3MgLmAZrLmCbrLmGgrLmHboLmJnoLmJn3LmLfoLmLhrLmSToLnAX6LnAb6LnCZ3LnCb3LnDTvLnDb8LnFl3LnGnrLnHZvLnHgvLnITvLnJT8LnJX8LnJlvLnLf8LnLg6LnLhvLnLnoLnMXrLnMg8LnQlvLnSbrLnrAgLnrAnLnrDbLnrFkLnrJdLnrMULnrOYLnrSTLnvAnLnvDULnvHgLnvOYLnvOnLn3GgLn4DULn4JTLn4JnMTAZoMTAloMTDb8MTFT8MTJnoMTJnrMTLZrMTLhrMTLkvMTMX8MTRTrMToATMTrDnMTrOnMT3JnMT4MnMT8FUMT8FaMT8FlMT8GTMT8GbMT8GnMT8HnMT8JTMT8JbMT8OTMUCl8MUJTrMUJU8MUMX8MURTrMUSToMXAX6MXAb6MXCZoMXFXrMXHXrMXLgvMXOgoMXrAUMXrAnMXrHgMXrJYMXrJnMXrMTMXrMgMXrOYMXrSZMXrSgMXvDUMXvOTMX3JgMX3OTMX4JnMX8DbMX8FnMX8HbMX8HgMX8HnMX8LbMX8MnMX8OnMYAb8MYGboMYHTvMYHX4MYLTrMYLnvMYMToMYOgvMYRg3MYSTrMbAToMbAXrMbAl3MbAn8MbGZ8MbJT8MbJXrMbMXvMbMX8MbMnoMbrMUMb8AfMb8FbMb8FkMcJXoMeLnrMgFl3MgGTvMgGXoMgGgrMgGnrMgHT8MgHZrMgJnoMgLnrMgLnvMgMT8MgQUoMgrHnMgvAnMg8HgMg8JYMg8LfMloJnMl8ATMl8AXMl8JYMnAToMnAT4MnAZ8MnAl3MnAl4MnCl8MnHT8MnHg8MnJnoMnLZoMnLhrMnMXoMnMX3MnMnrMnOgvMnrFbMnrFfMnrFnMnrNTMnvJXNTMl8OTCT3OTFV8OTFn3OTHZvOTJXrOTOl3OT3ATOT3JUOT3LZOT3LeOT3MbOT8ATOT8AbOT8AgOT8MbOUCXvOUMX3OXHXvOXLl3OXrMUOXvDbOX6NUOX8JbOYFZoOYLbrOYLkoOYMg8OYSX3ObHTrObHT4ObJgrObLhrObMX3ObOX8Ob8FnOeAlrOeJT8OeJXrOeJnrOeLToOeMb8OgJXoOgLXoOgMnrOgOXrOgOloOgoAgOgoJbOgoMYOgoSTOg8AbOjLX4OjMnoOjSV8OnLVoOnrAgOn3DUPXQlrPXvFXPbvFTPdAT3PlFn3PnvFbQTLn4QToAgQToMTQULV8QURg8QUoJnQXCXvQbFbrQb8AaQb8AcQb8FbQb8MYQb8ScQeAlrQeLhrQjAn3QlFXoQloJgQloSnRTLnvRTrGURTrJTRUJZrRUoJlRUrQnRZrLmRZrMnRZrSnRZ8ATRZ8JbRZ8ScRbMT8RbST3RfGZrRfMX8RfMgrRfSZrRnAbrRnGT8RnvJgRnvLfRnvMTRn8AaSTClvSTJgrSTOXrSTRg3STRnvSToAcSToAfSToAnSToHnSToLjSToMTSTrAaSTrEUST3BYST8AgST8LmSUAZvSUAgrSUDT4SUDT8SUGgvSUJXoSUJXvSULTrSU8JTSU8LjSV8AnSV8JgSXFToSXLf8SYvAnSZrDUSZrMUSZrMnSZ8HgSZ8JTSZ8JgSZ8MYSZ8QUSaQUoSbCT3SbHToSbQYvSbSl4SboJnSbvFbSb8HbSb8JgSb8OTScGZrScHgrScJTvScMT8ScSToScoHbScrMTScvAnSeAZrSeAcrSeHboSeJUoSeLhrSeMT8SeMXrSe6JgSgHTrSkJnoSkLnvSk8CUSlFl3SlrSnSl8GnSmAboSmGT8SmJU8","ATLnDlATrAZoATrJX4ATrMT8ATrMX4ATrRTrATvDl8ATvJUoATvMl8AT3AToAT3MX8AT8CT3AT8DT8AT8HZrAT8HgoAUAgFnAUCTFnAXoMX8AXrAT8AXrGgvAXrJXvAXrOgoAXvLl3AZvAgoAZvFbrAZvJXoAZvJl8AZvJn3AZvMX8AZvSbrAZ8FZoAZ8LZ8AZ8MU8AZ8OTvAZ8SV8AZ8SX3AbAgFZAboJnoAbvGboAb8ATrAb8AZoAb8AgrAb8Al4Ab8Db8Ab8JnoAb8LX4Ab8LZrAb8LhrAb8MT8Ab8OUoAb8Qb8Ab8ST8AcrAUoAcrAc8AcrCZ3AcrFT3AcrFZrAcrJl4AcrJn3AcrMX3AcrOTvAc8AZ8Ac8MT8AfAcJXAgoFn4AgoGgvAgoGnrAgoLc8AgoMXoAgrLnrAkrSZ8AlFXCTAloHboAlrHbrAlrLhrAlrLkoAl3CZrAl3LUoAl3LZrAnrAl4AnrMT8An3HT4BT3IToBX4MnvBb!Ln$CTGXMnCToLZ4CTrHT8CT3JTrCT3RZrCT#GTvCU6GgvCU8Db8CU8GZrCU8HT8CboLl3CbrGgrCbrMU8Cb8DT3Cb8GnrCb8LX4Cb8MT8Cb8ObrCgrGgvCgrKX4Cl8FZoDTrAbvDTrDboDTrGT6DTrJgrDTrMX3DTrRZrDTrRg8DTvAVvDTvFZoDT3DT8DT3Ln3DT4HZrDT4MT8DT8AlrDT8MT8DUAkGbDUDbJnDYLnQlDbDUOYDbMTAnDbMXSnDboAT3DboFn4DboLnvDj6JTrGTCgFTGTGgFnGTJTMnGTLnPlGToJT8GTrCT3GTrLVoGTrLnvGTrMX3GTrMboGTvKl3GZClFnGZrDT3GZ8DTrGZ8FZ8GZ8MXvGZ8On8GZ8ST3GbCnQXGbMbFnGboFboGboJg3GboMXoGb3JTvGb3JboGb3Mn6Gb3Qb8GgDXLjGgMnAUGgrDloGgrHX4GgrSToGgvAXrGgvAZvGgvFbrGgvLl3GgvMnvGnDnLXGnrATrGnrMboGnuLl3HTATMnHTAgCnHTCTCTHTrGTvHTrHTvHTrJX8HTrLl8HTrMT8HTrMgoHTrOTrHTuOn3HTvAZrHTvDTvHTvGboHTvJU8HTvLl3HTvMXrHTvQb4HT4GT6HT4JT8HT4Jb#HT8Al3HT8GZrHT8GgrHT8HX4HT8Jb8HT8JnoHT8LTrHT8LgvHT8SToHT8SV8HUoJUoHUoJX8HUoLnrHXrLZoHXvAl3HX3LnrHX4FkvHX4LhrHX4MXoHX4OnoHZrAZ8HZrDb8HZrGZ8HZrJnrHZvGZ8HZvLnvHZ8JnvHZ8LhrHbCXJlHbMTAnHboJl4HbpLl3HbrJX8HbrLnrHbrMnvHbvRYrHgoSTrHgrFV8HgrGZ8HgrJXoHgrRnvHgvBb!HgvGTrHgvHX4HgvHn!HgvLTrHgvSU8HnDnLbHnFbJbHnvDn8Hn6GgvHn!BTvJTCTLnJTQgFnJTrAnvJTrLX4JTrOUoJTvFn3JTvLnrJTvNToJT3AgoJT3Jn4JT3LhvJT3ObrJT8AcrJT8Al3JT8JT8JT8JnoJT8LX4JT8LnrJT8MX3JT8Rg3JT8Sc8JUoBTvJU8AToJU8GZ8JU8GgvJU8JTrJU8JXrJU8JnrJU8LnvJU8ScvJXHnJlJXrGgvJXrJU8JXrLhrJXrMT8JXrMXrJXrQUoJXvCTvJXvGZ8JXvGgrJXvQT8JX8Ab8JX8DT8JX8GZ8JX8HZvJX8LnrJX8MT8JX8MXoJX8MnvJX8ST3JYGnCTJbAkGbJbCTAnJbLTAcJboDT3JboLb6JbrAnvJbrCn3JbrDl8JbrGboJbrIZoJbrJnvJbrMnvJbrQb4Jb8RZrJeAbAnJgJnFbJgScAnJgrATrJgvHZ8JgvMn4JlJlFbJlLiQXJlLjOnJlRbOlJlvNXoJlvRl3Jl4AcrJl8AUoJl8MnrJnFnMlJnHgGbJnoDT8JnoFV8JnoGgvJnoIT8JnoQToJnoRg3JnrCZ3JnrGgrJnrHTvJnrLf8JnrOX8JnvAT3JnvFZoJnvGT8JnvJl4JnvMT8JnvMX8JnvOXrJnvPX6JnvSX3JnvSZrJn3MT8Jn3MX8Jn3RTrLTATKnLTJnLTLTMXKnLTRTQlLToGb8LTrAZ8LTrCZ8LTrDb8LTrHT8LT3PX6LT4FZoLT$CTvLT$GgrLUvHX3LVoATrLVoAgoLVoJboLVoMX3LVoRg3LV8CZ3LV8FZoLV8GTvLXrDXoLXrFbrLXvAgvLXvFlrLXvLl3LXvRn6LX4Mb8LX8GT8LYCXMnLYrMnrLZoSTvLZrAZvLZrAloLZrFToLZrJXvLZrJboLZrJl4LZrLnrLZrMT8LZrOgvLZrRnvLZrST4LZvMX8LZvSlvLZ8AgoLZ8CT3LZ8JT8LZ8LV8LZ8LZoLZ8Lg8LZ8SV8LZ8SbrLZ$HT8LZ$Mn4La6CTvLbFbMnLbRYFTLbSnFZLboJT8LbrAT9LbrGb3LbrQb8LcrJX8LcrMXrLerHTvLerJbrLerNboLgrDb8LgrGZ8LgrHTrLgrMXrLgrSU8LgvJTrLgvLl3Lg6Ll3LhrLnrLhrMT8LhvAl4LiLnQXLkoAgrLkoJT8LkoJn4LlrSU8Ll3FZoLl3HTrLl3JX8Ll3JnoLl3LToLmLeFbLnDUFbLnLVAnLnrATrLnrAZoLnrAb8LnrAlrLnrGgvLnrJU8LnrLZrLnrLhrLnrMb8LnrOXrLnrSZ8LnvAb4LnvDTrLnvDl8LnvHTrLnvHbrLnvJT8LnvJU8LnvJbrLnvLhvLnvMX8LnvMb8LnvNnoLnvSU8Ln3Al3Ln4FZoLn4GT6Ln4JgvLn4LhrLn4MT8Ln4SToMToCZrMToJX8MToLX4MToLf8MToRg3MTrEloMTvGb6MT3BTrMT3Lb6MT8AcrMT8AgrMT8GZrMT8JnoMT8LnrMT8MX3MUOUAnMXAbFnMXoAloMXoJX8MXoLf8MXoLl8MXrAb8MXrDTvMXrGT8MXrGgrMXrHTrMXrLf8MXrMU8MXrOXvMXrQb8MXvGT8MXvHTrMXvLVoMX3AX3MX3Jn3MX3LhrMX3MX3MX4AlrMX4OboMX8GTvMX8GZrMX8GgrMX8JT8MX8JX8MX8LhrMX8MT8MYDUFbMYMgDbMbGnFfMbvLX4MbvLl3Mb8Mb8Mb8ST4MgGXCnMg8ATrMg8AgoMg8CZrMg8DTrMg8DboMg8HTrMg8JgrMg8LT8MloJXoMl8AhrMl8JT8MnLgAUMnoJXrMnoLX4MnoLhrMnoMT8MnrAl4MnrDb8MnrOTvMnrOgvMnrQb8MnrSU8MnvGgrMnvHZ8Mn3MToMn4DTrMn4LTrMn4Mg8NnBXAnOTFTFnOToAToOTrGgvOTrJX8OT3JXoOT6MTrOT8GgrOT8HTpOT8MToOUoHT8OUoJT8OUoLn3OXrAgoOXrDg8OXrMT8OXvSToOX6CTvOX8CZrOX8OgrOb6HgvOb8AToOb8MT8OcvLZ8OgvAlrOgvHTvOgvJTrOgvJnrOgvLZrOgvLn4OgvMT8OgvRTrOg8AZoOg8DbvOnrOXoOnvJn4OnvLhvOnvRTrOn3GgoOn3JnvOn6JbvOn8OTrPTGYFTPbBnFnPbGnDnPgDYQTPlrAnvPlrETvPlrLnvPlrMXvPlvFX4QTMTAnQTrJU8QYCnJlQYJlQlQbGTQbQb8JnrQb8LZoQb8LnvQb8MT8Qb8Ml8Qb8ST4QloAl4QloHZvQloJX8QloMn8QnJZOlRTrAZvRTrDTrRTvJn4RTvLhvRT4Jb8RZrAZrRZ8AkrRZ8JU8RZ8LV8RZ8LnvRbJlQXRg3GboRg3MnvRg8AZ8Rg8JboRg8Jl4RnLTCbRnvFl3RnvQb8SToAl4SToCZrSToFZoSToHXrSToJU8SToJgvSToJl4SToLhrSToMX3STrAlvSTrCT9STrCgrSTrGgrSTrHXrSTrHboSTrJnoSTrNboSTvLnrST4AZoST8Ab8ST8JT8SUoJn3SU6HZ#SU6JTvSU8Db8SU8HboSU8LgrSV8JT8SZrAcrSZrAl3SZrJT8SZrJnvSZrMT8SZvLUoSZ4FZoSZ8JnoSZ8RZrScoLnrScoMT8ScoMX8ScrAT4ScrAZ8ScrLZ8ScrLkvScvDb8ScvLf8ScvNToSgrFZrShvKnrSloHUoSloLnrSlrMXoSl8HgrSmrJUoSn3BX6","ATFlOn3ATLgrDYAT4MTAnAT8LTMnAYJnRTrAbGgJnrAbLV8LnAbvNTAnAeFbLg3AgOYMXoAlQbFboAnDboAfAnJgoJTBToDgAnBUJbAl3BboDUAnCTDlvLnCTFTrSnCYoQTLnDTwAbAnDUDTrSnDUHgHgrDX8LXFnDbJXAcrETvLTLnGTFTQbrGTMnGToGT3DUFbGUJlPX3GbQg8LnGboJbFnGb3GgAYGgAg8ScGgMbAXrGgvAbAnGnJTLnvGnvATFgHTDT6ATHTrDlJnHYLnMn8HZrSbJTHZ8LTFnHbFTJUoHgSeMT8HgrLjAnHgvAbAnHlFUrDlHnDgvAnHnHTFT3HnQTGnrJTAaMXvJTGbCn3JTOgrAnJXvAXMnJbMg8SnJbMnRg3Jb8LTMnJnAl3OnJnGYrQlJnJlQY3LTDlCn3LTJjLg3LTLgvFXLTMg3GTLV8HUOgLXFZLg3LXNXrMnLX8QXFnLX9AlMYLYLXPXrLZAbJU8LZDUJU8LZMXrSnLZ$AgFnLaPXrDULbFYrMnLbMn8LXLboJgJgLeFbLg3LgLZrSnLgOYAgoLhrRnJlLkCTrSnLkOnLhrLnFX%AYLnFZoJXLnHTvJbLnLloAbMTATLf8MTHgJn3MTMXrAXMT3MTFnMUITvFnMXFX%AYMXMXvFbMXrFTDbMYAcMX3MbLf8SnMb8JbFnMgMXrMTMgvAXFnMgvGgCmMnAloSnMnFnJTrOXvMXSnOX8HTMnObJT8ScObLZFl3ObMXCZoPTLgrQXPUFnoQXPU3RXJlPX3RkQXPbrJXQlPlrJbFnQUAhrDbQXGnCXvQYLnHlvQbLfLnvRTOgvJbRXJYrQlRYLnrQlRbLnrQlRlFT8JlRlFnrQXSTClCn3STHTrAnSTLZQlrSTMnGTrSToHgGbSTrGTDnSTvGXCnST3HgFbSU3HXAXSbAnJn3SbFT8LnScLfLnv","AT3JgJX8AT8FZoSnAT8JgFV8AT8LhrDbAZ8JT8DbAb8GgLhrAb8SkLnvAe8MT8SnAlMYJXLVAl3GYDTvAl3LfLnvBUDTvLl3CTOn3HTrCT3DUGgrCU8MT8AbCbFTrJUoCgrDb8MTDTLV8JX8DTLnLXQlDT8LZrSnDUQb8FZ8DUST4JnvDb8ScOUoDj6GbJl4GTLfCYMlGToAXvFnGboAXvLnGgAcrJn3GgvFnSToGnLf8JnvGn#HTDToHTLnFXJlHTvATFToHTvHTDToHTvMTAgoHT3STClvHT4AlFl6HT8HTDToHUoDgJTrHUoScMX3HbRZrMXoHboJg8LTHgDb8JTrHgMToLf8HgvLnLnoHnHn3HT4Hn6MgvAnJTJU8ScvJT3AaQT8JT8HTrAnJXrRg8AnJbAloMXoJbrATFToJbvMnoSnJgDb6GgvJgDb8MXoJgSX3JU8JguATFToJlPYLnQlJlQkDnLbJlQlFYJlJl8Lf8OTJnCTFnLbJnLTHXMnJnLXGXCnJnoFfRg3JnrMYRg3Jn3HgFl3KT8Dg8LnLTRlFnPTLTvPbLbvLVoSbrCZLXMY6HT3LXNU7DlrLXNXDTATLX8DX8LnLZDb8JU8LZMnoLhrLZSToJU8LZrLaLnrLZvJn3SnLZ8LhrSnLaJnoMT8LbFlrHTvLbrFTLnrLbvATLlvLb6OTFn3LcLnJZOlLeAT6Mn4LeJT3ObrLg6LXFlrLhrJg8LnLhvDlPX4LhvLfLnvLj6JTFT3LnFbrMXoLnQluCTvLnrQXCY6LnvLfLnvLnvMgLnvLnvSeLf8MTMbrJn3MT3JgST3MT8AnATrMT8LULnrMUMToCZrMUScvLf8MXoDT8SnMX6ATFToMX8AXMT8MX8FkMT8MX8HTrDUMX8ScoSnMYJT6CTvMgAcrMXoMg8SToAfMlvAXLg3MnFl3AnvOT3AnFl3OUoATHT8OU3RnLXrOXrOXrSnObPbvFn6Og8HgrSnOg8OX8DbPTvAgoJgPU3RYLnrPXrDnJZrPb8CTGgvPlrLTDlvPlvFUJnoQUvFXrQlQeMnoAl3QlrQlrSnRTFTrJUoSTDlLiLXSTFg6HT3STJgoMn4STrFTJTrSTrLZFl3ST4FnMXoSUrDlHUoScvHTvSnSfLkvMXo","AUoAcrMXoAZ8HboAg8AbOg6ATFgAg8AloMXoAl3AT8JTrAl8MX8MXoCT3SToJU8Cl8Db8MXoDT8HgrATrDboOT8MXoGTOTrATMnGT8LhrAZ8GnvFnGnQXHToGgvAcrHTvAXvLl3HbrAZoMXoHgBlFXLg3HgMnFXrSnHgrSb8JUoHn6HT8LgvITvATrJUoJUoLZrRnvJU8HT8Jb8JXvFX8QT8JXvLToJTrJYrQnGnQXJgrJnoATrJnoJU8ScvJnvMnvMXoLTCTLgrJXLTJlRTvQlLbRnJlQYvLbrMb8LnvLbvFn3RnoLdCVSTGZrLeSTvGXCnLg3MnoLn3MToLlrETvMT8SToAl3MbrDU6GTvMb8LX4LhrPlrLXGXCnSToLf8Rg3STrDb8LTrSTvLTHXMnSb3RYLnMnSgOg6ATFg","HUDlGnrQXrJTrHgLnrAcJYMb8DULc8LTvFgGnCk3Mg8JbAnLX4QYvFYHnMXrRUoJnGnvFnRlvFTJlQnoSTrBXHXrLYSUJgLfoMT8Se8DTrHbDb","AbDl8SToJU8An3RbAb8ST8DUSTrGnrAgoLbFU6Db8LTrMg8AaHT8Jb8ObDl8SToJU8Pb3RlvFYoJl"],sO=null;function sx(t){if(null==sO&&(sO=[],sP.forEach((t,e)=>{e+=4;for(let n=0;n<t.length;n+=e){let i="";for(let f=0;f<e;f++){var r;i+=((r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*".indexOf(t[n+f]))>=40?r=r+168-40:r>=19&&(r=r+97-19),sr([225,(r>>6)+132,(63&r)+128]))}sO.push(i)}}),sO.sort(),"0xf9eddeace9c5d3da9c93cf7d3cd38f6a13ed3affb933259ae865714e8a3ae71a"!==si.check(t)))throw sO=null,Error("BIP39 Wordlist for ko (Korean) FAILED")}class sk extends si{constructor(){super("ko")}getWord(t){return sx(this),sO[t]}getWordIndex(t){return sx(this),sO.indexOf(t)}}let sF=new sk;si.register(sF);let sB=null;function sL(t){if(null==sB&&(sB="AbacoAbbaglioAbbinatoAbeteAbissoAbolireAbrasivoAbrogatoAccadereAccennoAccusatoAcetoneAchilleAcidoAcquaAcreAcrilicoAcrobataAcutoAdagioAddebitoAddomeAdeguatoAderireAdipeAdottareAdulareAffabileAffettoAffissoAffrantoAforismaAfosoAfricanoAgaveAgenteAgevoleAggancioAgireAgitareAgonismoAgricoloAgrumetoAguzzoAlabardaAlatoAlbatroAlberatoAlboAlbumeAlceAlcolicoAlettoneAlfaAlgebraAlianteAlibiAlimentoAllagatoAllegroAllievoAllodolaAllusivoAlmenoAlogenoAlpacaAlpestreAltalenaAlternoAlticcioAltroveAlunnoAlveoloAlzareAmalgamaAmanitaAmarenaAmbitoAmbratoAmebaAmericaAmetistaAmicoAmmassoAmmendaAmmirareAmmonitoAmoreAmpioAmpliareAmuletoAnacardoAnagrafeAnalistaAnarchiaAnatraAncaAncellaAncoraAndareAndreaAnelloAngeloAngolareAngustoAnimaAnnegareAnnidatoAnnoAnnuncioAnonimoAnticipoAnziApaticoAperturaApodeApparireAppetitoAppoggioApprodoAppuntoAprileArabicaArachideAragostaAraldicaArancioAraturaArazzoArbitroArchivioArditoArenileArgentoArgineArgutoAriaArmoniaArneseArredatoArringaArrostoArsenicoArsoArteficeArzilloAsciuttoAscoltoAsepsiAsetticoAsfaltoAsinoAsolaAspiratoAsproAssaggioAsseAssolutoAssurdoAstaAstenutoAsticeAstrattoAtavicoAteismoAtomicoAtonoAttesaAttivareAttornoAttritoAttualeAusilioAustriaAutistaAutonomoAutunnoAvanzatoAvereAvvenireAvvisoAvvolgereAzioneAzotoAzzimoAzzurroBabeleBaccanoBacinoBacoBadessaBadilataBagnatoBaitaBalconeBaldoBalenaBallataBalzanoBambinoBandireBaraondaBarbaroBarcaBaritonoBarlumeBaroccoBasilicoBassoBatostaBattutoBauleBavaBavosaBeccoBeffaBelgioBelvaBendaBenevoleBenignoBenzinaBereBerlinaBetaBibitaBiciBidoneBifidoBigaBilanciaBimboBinocoloBiologoBipedeBipolareBirbanteBirraBiscottoBisestoBisnonnoBisonteBisturiBizzarroBlandoBlattaBollitoBonificoBordoBoscoBotanicoBottinoBozzoloBraccioBradipoBramaBrancaBravuraBretellaBrevettoBrezzaBrigliaBrillanteBrindareBroccoloBrodoBronzinaBrulloBrunoBubboneBucaBudinoBuffoneBuioBulboBuonoBurloneBurrascaBussolaBustaCadettoCaducoCalamaroCalcoloCalesseCalibroCalmoCaloriaCambusaCamerataCamiciaCamminoCamolaCampaleCanapaCandelaCaneCaninoCanottoCantinaCapaceCapelloCapitoloCapogiroCapperoCapraCapsulaCarapaceCarcassaCardoCarismaCarovanaCarrettoCartolinaCasaccioCascataCasermaCasoCassoneCastelloCasualeCatastaCatenaCatrameCautoCavilloCedibileCedrataCefaloCelebreCellulareCenaCenoneCentesimoCeramicaCercareCertoCerumeCervelloCesoiaCespoCetoChelaChiaroChiccaChiedereChimeraChinaChirurgoChitarraCiaoCiclismoCifrareCignoCilindroCiottoloCircaCirrosiCitricoCittadinoCiuffoCivettaCivileClassicoClinicaCloroCoccoCodardoCodiceCoerenteCognomeCollareColmatoColoreColposoColtivatoColzaComaCometaCommandoComodoComputerComuneConcisoCondurreConfermaCongelareConiugeConnessoConoscereConsumoContinuoConvegnoCopertoCopioneCoppiaCopricapoCorazzaCordataCoricatoCorniceCorollaCorpoCorredoCorsiaCorteseCosmicoCostanteCotturaCovatoCratereCravattaCreatoCredereCremosoCrescitaCretaCricetoCrinaleCrisiCriticoCroceCronacaCrostataCrucialeCruscaCucireCuculoCuginoCullatoCupolaCuratoreCursoreCurvoCuscinoCustodeDadoDainoDalmataDamerinoDanielaDannosoDanzareDatatoDavantiDavveroDebuttoDecennioDecisoDeclinoDecolloDecretoDedicatoDefinitoDeformeDegnoDelegareDelfinoDelirioDeltaDemenzaDenotatoDentroDepositoDerapataDerivareDerogaDescrittoDesertoDesiderioDesumereDetersivoDevotoDiametroDicembreDiedroDifesoDiffusoDigerireDigitaleDiluvioDinamicoDinnanziDipintoDiplomaDipoloDiradareDireDirottoDirupoDisagioDiscretoDisfareDisgeloDispostoDistanzaDisumanoDitoDivanoDiveltoDividereDivoratoDobloneDocenteDoganaleDogmaDolceDomatoDomenicaDominareDondoloDonoDormireDoteDottoreDovutoDozzinaDragoDruidoDubbioDubitareDucaleDunaDuomoDupliceDuraturoEbanoEccessoEccoEclissiEconomiaEderaEdicolaEdileEditoriaEducareEgemoniaEgliEgoismoEgregioElaboratoElargireEleganteElencatoElettoElevareElficoElicaElmoElsaElusoEmanatoEmblemaEmessoEmiroEmotivoEmozioneEmpiricoEmuloEndemicoEnduroEnergiaEnfasiEnotecaEntrareEnzimaEpatiteEpilogoEpisodioEpocaleEppureEquatoreErarioErbaErbosoEredeEremitaErigereErmeticoEroeErosivoErranteEsagonoEsameEsanimeEsaudireEscaEsempioEsercitoEsibitoEsigenteEsistereEsitoEsofagoEsortatoEsosoEspansoEspressoEssenzaEssoEstesoEstimareEstoniaEstrosoEsultareEtilicoEtnicoEtruscoEttoEuclideoEuropaEvasoEvidenzaEvitatoEvolutoEvvivaFabbricaFaccendaFachiroFalcoFamigliaFanaleFanfaraFangoFantasmaFareFarfallaFarinosoFarmacoFasciaFastosoFasulloFaticareFatoFavolosoFebbreFecolaFedeFegatoFelpaFeltroFemminaFendereFenomenoFermentoFerroFertileFessuraFestivoFettaFeudoFiabaFiduciaFifaFiguratoFiloFinanzaFinestraFinireFioreFiscaleFisicoFiumeFlaconeFlamencoFleboFlemmaFloridoFluenteFluoroFobicoFocacciaFocosoFoderatoFoglioFolataFolcloreFolgoreFondenteFoneticoFoniaFontanaForbitoForchettaForestaFormicaFornaioForoFortezzaForzareFosfatoFossoFracassoFranaFrassinoFratelloFreccettaFrenataFrescoFrigoFrollinoFrondeFrugaleFruttaFucilataFucsiaFuggenteFulmineFulvoFumanteFumettoFumosoFuneFunzioneFuocoFurboFurgoneFuroreFusoFutileGabbianoGaffeGalateoGallinaGaloppoGamberoGammaGaranziaGarboGarofanoGarzoneGasdottoGasolioGastricoGattoGaudioGazeboGazzellaGecoGelatinaGelsoGemelloGemmatoGeneGenitoreGennaioGenotipoGergoGhepardoGhiaccioGhisaGialloGildaGineproGiocareGioielloGiornoGioveGiratoGironeGittataGiudizioGiuratoGiustoGlobuloGlutineGnomoGobbaGolfGomitoGommoneGonfioGonnaGovernoGracileGradoGraficoGrammoGrandeGrattareGravosoGraziaGrecaGreggeGrifoneGrigioGrinzaGrottaGruppoGuadagnoGuaioGuantoGuardareGufoGuidareIbernatoIconaIdenticoIdillioIdoloIdraIdricoIdrogenoIgieneIgnaroIgnoratoIlareIllesoIllogicoIlludereImballoImbevutoImboccoImbutoImmaneImmersoImmolatoImpaccoImpetoImpiegoImportoImprontaInalareInarcareInattivoIncantoIncendioInchinoIncisivoInclusoIncontroIncrocioIncuboIndagineIndiaIndoleIneditoInfattiInfilareInflittoIngaggioIngegnoIngleseIngordoIngrossoInnescoInodoreInoltrareInondatoInsanoInsettoInsiemeInsonniaInsulinaIntasatoInteroIntonacoIntuitoInumidireInvalidoInveceInvitoIperboleIpnoticoIpotesiIppicaIrideIrlandaIronicoIrrigatoIrrorareIsolatoIsotopoIstericoIstitutoIstriceItaliaIterareLabbroLabirintoLaccaLaceratoLacrimaLacunaLaddoveLagoLampoLancettaLanternaLardosoLargaLaringeLastraLatenzaLatinoLattugaLavagnaLavoroLegaleLeggeroLemboLentezzaLenzaLeoneLepreLesivoLessatoLestoLetteraleLevaLevigatoLiberoLidoLievitoLillaLimaturaLimitareLimpidoLineareLinguaLiquidoLiraLiricaLiscaLiteLitigioLivreaLocandaLodeLogicaLombareLondraLongevoLoquaceLorenzoLotoLotteriaLuceLucidatoLumacaLuminosoLungoLupoLuppoloLusingaLussoLuttoMacabroMacchinaMaceroMacinatoMadamaMagicoMagliaMagneteMagroMaiolicaMalafedeMalgradoMalintesoMalsanoMaltoMalumoreManaManciaMandorlaMangiareManifestoMannaroManovraMansardaMantideManubrioMappaMaratonaMarcireMarettaMarmoMarsupioMascheraMassaiaMastinoMaterassoMatricolaMattoneMaturoMazurcaMeandroMeccanicoMecenateMedesimoMeditareMegaMelassaMelisMelodiaMeningeMenoMensolaMercurioMerendaMerloMeschinoMeseMessereMestoloMetalloMetodoMettereMiagolareMicaMicelioMicheleMicroboMidolloMieleMiglioreMilanoMiliteMimosaMineraleMiniMinoreMirinoMirtilloMiscelaMissivaMistoMisurareMitezzaMitigareMitraMittenteMnemonicoModelloModificaModuloMoganoMogioMoleMolossoMonasteroMoncoMondinaMonetarioMonileMonotonoMonsoneMontatoMonvisoMoraMordereMorsicatoMostroMotivatoMotosegaMottoMovenzaMovimentoMozzoMuccaMucosaMuffaMughettoMugnaioMulattoMulinelloMultiploMummiaMuntoMuovereMuraleMusaMuscoloMusicaMutevoleMutoNababboNaftaNanometroNarcisoNariceNarratoNascereNastrareNaturaleNauticaNaviglioNebulosaNecrosiNegativoNegozioNemmenoNeofitaNerettoNervoNessunoNettunoNeutraleNeveNevroticoNicchiaNinfaNitidoNobileNocivoNodoNomeNominaNordicoNormaleNorvegeseNostranoNotareNotiziaNotturnoNovellaNucleoNullaNumeroNuovoNutrireNuvolaNuzialeOasiObbedireObbligoObeliscoOblioOboloObsoletoOccasioneOcchioOccidenteOccorrereOccultareOcraOculatoOdiernoOdorareOffertaOffrireOffuscatoOggettoOggiOgnunoOlandeseOlfattoOliatoOlivaOlogrammaOltreOmaggioOmbelicoOmbraOmegaOmissioneOndosoOnereOniceOnnivoroOnorevoleOntaOperatoOpinioneOppostoOracoloOrafoOrdineOrecchinoOreficeOrfanoOrganicoOrigineOrizzonteOrmaOrmeggioOrnativoOrologioOrrendoOrribileOrtensiaOrticaOrzataOrzoOsareOscurareOsmosiOspedaleOspiteOssaOssidareOstacoloOsteOtiteOtreOttagonoOttimoOttobreOvaleOvestOvinoOviparoOvocitoOvunqueOvviareOzioPacchettoPacePacificoPadellaPadronePaesePagaPaginaPalazzinaPalesarePallidoPaloPaludePandoroPannelloPaoloPaonazzoPapricaParabolaParcellaParerePargoloPariParlatoParolaPartireParvenzaParzialePassivoPasticcaPataccaPatologiaPattumePavonePeccatoPedalarePedonalePeggioPelosoPenarePendicePenisolaPennutoPenombraPensarePentolaPepePepitaPerbenePercorsoPerdonatoPerforarePergamenaPeriodoPermessoPernoPerplessoPersuasoPertugioPervasoPesatorePesistaPesoPestiferoPetaloPettinePetulantePezzoPiacerePiantaPiattinoPiccinoPicozzaPiegaPietraPifferoPigiamaPigolioPigroPilaPiliferoPillolaPilotaPimpantePinetaPinnaPinoloPioggiaPiomboPiramidePireticoPiritePirolisiPitonePizzicoPlaceboPlanarePlasmaPlatanoPlenarioPochezzaPoderosoPodismoPoesiaPoggiarePolentaPoligonoPollicePolmonitePolpettaPolsoPoltronaPolverePomicePomodoroPontePopolosoPorfidoPorosoPorporaPorrePortataPosaPositivoPossessoPostulatoPotassioPoterePranzoPrassiPraticaPreclusoPredicaPrefissoPregiatoPrelievoPremerePrenotarePreparatoPresenzaPretestoPrevalsoPrimaPrincipePrivatoProblemaProcuraProdurreProfumoProgettoProlungaPromessaPronomePropostaProrogaProtesoProvaPrudentePrugnaPruritoPsichePubblicoPudicaPugilatoPugnoPulcePulitoPulsantePuntarePupazzoPupillaPuroQuadroQualcosaQuasiQuerelaQuotaRaccoltoRaddoppioRadicaleRadunatoRafficaRagazzoRagioneRagnoRamarroRamingoRamoRandagioRantolareRapatoRapinaRappresoRasaturaRaschiatoRasenteRassegnaRastrelloRataRavvedutoRealeRecepireRecintoReclutaReconditoRecuperoRedditoRedimereRegalatoRegistroRegolaRegressoRelazioneRemareRemotoRennaReplicaReprimereReputareResaResidenteResponsoRestauroReteRetinaRetoricaRettificaRevocatoRiassuntoRibadireRibelleRibrezzoRicaricaRiccoRicevereRiciclatoRicordoRicredutoRidicoloRidurreRifasareRiflessoRiformaRifugioRigareRigettatoRighelloRilassatoRilevatoRimanereRimbalzoRimedioRimorchioRinascitaRincaroRinforzoRinnovoRinomatoRinsavitoRintoccoRinunciaRinvenireRiparatoRipetutoRipienoRiportareRipresaRipulireRisataRischioRiservaRisibileRisoRispettoRistoroRisultatoRisvoltoRitardoRitegnoRitmicoRitrovoRiunioneRivaRiversoRivincitaRivoltoRizomaRobaRoboticoRobustoRocciaRocoRodaggioRodereRoditoreRogitoRollioRomanticoRompereRonzioRosolareRospoRotanteRotondoRotulaRovescioRubizzoRubricaRugaRullinoRumineRumorosoRuoloRupeRussareRusticoSabatoSabbiareSabotatoSagomaSalassoSaldaturaSalgemmaSalivareSalmoneSaloneSaltareSalutoSalvoSapereSapidoSaporitoSaracenoSarcasmoSartoSassosoSatelliteSatiraSatolloSaturnoSavanaSavioSaziatoSbadiglioSbalzoSbancatoSbarraSbattereSbavareSbendareSbirciareSbloccatoSbocciatoSbrinareSbruffoneSbuffareScabrosoScadenzaScalaScambiareScandaloScapolaScarsoScatenareScavatoSceltoScenicoScettroSchedaSchienaSciarpaScienzaScindereScippoSciroppoScivoloSclerareScodellaScolpitoScompartoSconfortoScoprireScortaScossoneScozzeseScribaScrollareScrutinioScuderiaScultoreScuolaScuroScusareSdebitareSdoganareSeccaturaSecondoSedanoSeggiolaSegnalatoSegregatoSeguitoSelciatoSelettivoSellaSelvaggioSemaforoSembrareSemeSeminatoSempreSensoSentireSepoltoSequenzaSerataSerbatoSerenoSerioSerpenteSerraglioServireSestinaSetolaSettimanaSfaceloSfaldareSfamatoSfarzosoSfaticatoSferaSfidaSfilatoSfingeSfocatoSfoderareSfogoSfoltireSforzatoSfrattoSfruttatoSfuggitoSfumareSfusoSgabelloSgarbatoSgonfiareSgorbioSgrassatoSguardoSibiloSiccomeSierraSiglaSignoreSilenzioSillabaSimboloSimpaticoSimulatoSinfoniaSingoloSinistroSinoSintesiSinusoideSiparioSismaSistoleSituatoSlittaSlogaturaSlovenoSmarritoSmemoratoSmentitoSmeraldoSmilzoSmontareSmottatoSmussatoSnellireSnervatoSnodoSobbalzoSobrioSoccorsoSocialeSodaleSoffittoSognoSoldatoSolenneSolidoSollazzoSoloSolubileSolventeSomaticoSommaSondaSonettoSonniferoSopireSoppesoSopraSorgereSorpassoSorrisoSorsoSorteggioSorvolatoSospiroSostaSottileSpadaSpallaSpargereSpatolaSpaventoSpazzolaSpecieSpedireSpegnereSpelaturaSperanzaSpessoreSpettraleSpezzatoSpiaSpigolosoSpillatoSpinosoSpiraleSplendidoSportivoSposoSprangaSprecareSpronatoSpruzzoSpuntinoSquilloSradicareSrotolatoStabileStaccoStaffaStagnareStampatoStantioStarnutoStaseraStatutoSteloSteppaSterzoStilettoStimaStirpeStivaleStizzosoStonatoStoricoStrappoStregatoStriduloStrozzareStruttoStuccareStufoStupendoSubentroSuccosoSudoreSuggeritoSugoSultanoSuonareSuperboSupportoSurgelatoSurrogatoSussurroSuturaSvagareSvedeseSveglioSvelareSvenutoSveziaSviluppoSvistaSvizzeraSvoltaSvuotareTabaccoTabulatoTacciareTaciturnoTaleTalismanoTamponeTanninoTaraTardivoTargatoTariffaTarpareTartarugaTastoTatticoTavernaTavolataTazzaTecaTecnicoTelefonoTemerarioTempoTemutoTendoneTeneroTensioneTentacoloTeoremaTermeTerrazzoTerzettoTesiTesseratoTestatoTetroTettoiaTifareTigellaTimbroTintoTipicoTipografoTiraggioTiroTitanioTitoloTitubanteTizioTizzoneToccareTollerareToltoTombolaTomoTonfoTonsillaTopazioTopologiaToppaTorbaTornareTorroneTortoraToscanoTossireTostaturaTotanoTraboccoTracheaTrafilaTragediaTralcioTramontoTransitoTrapanoTrarreTraslocoTrattatoTraveTrecciaTremolioTrespoloTributoTrichecoTrifoglioTrilloTrinceaTrioTristezzaTrituratoTrivellaTrombaTronoTroppoTrottolaTrovareTruccatoTubaturaTuffatoTulipanoTumultoTunisiaTurbareTurchinoTutaTutelaUbicatoUccelloUccisoreUdireUditivoUffaUfficioUgualeUlisseUltimatoUmanoUmileUmorismoUncinettoUngereUnghereseUnicornoUnificatoUnisonoUnitarioUnteUovoUpupaUraganoUrgenzaUrloUsanzaUsatoUscitoUsignoloUsuraioUtensileUtilizzoUtopiaVacanteVaccinatoVagabondoVagliatoValangaValgoValicoVallettaValorosoValutareValvolaVampataVangareVanitosoVanoVantaggioVanveraVaporeVaranoVarcatoVarianteVascaVedettaVedovaVedutoVegetaleVeicoloVelcroVelinaVellutoVeloceVenatoVendemmiaVentoVeraceVerbaleVergognaVerificaVeroVerrucaVerticaleVescicaVessilloVestaleVeteranoVetrinaVetustoViandanteVibranteVicendaVichingoVicinanzaVidimareVigiliaVignetoVigoreVileVillanoViminiVincitoreViolaViperaVirgolaVirologoVirulentoViscosoVisioneVispoVissutoVisuraVitaVitelloVittimaVivandaVividoViziareVoceVogaVolatileVolereVolpeVoragineVulcanoZampognaZannaZappatoZatteraZavorraZefiroZelanteZeloZenzeroZerbinoZibettoZincoZirconeZittoZollaZoticoZuccheroZufoloZuluZuppa".replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),"0x5c1362d88fd4cf614a96f3234941d29f7d37c08c5292fde03bf62c2db6ff7620"!==si.check(t)))throw sB=null,Error("BIP39 Wordlist for it (Italian) FAILED")}class sD extends si{constructor(){super("it")}getWord(t){return sL(this),sB[t]}getWordIndex(t){return sL(this),sB.indexOf(t)}}let sU=new sD;si.register(sU);let sG="}aE#4A=Yv&co#4N#6G=cJ&SM#66|/Z#4t&kn~46#4K~4q%b9=IR#7l,mB#7W_X2*dl}Uo~7s}Uf&Iw#9c&cw~6O&H6&wx&IG%v5=IQ~8a&Pv#47$PR&50%Ko&QM&3l#5f,D9#4L|/H&tQ;v0~6n]nN<di,AM=W5%QO&ka&ua,hM^tm=zV=JA=wR&+X]7P&NB#4J#5L|/b[dA}tJ<Do&6m&u2[U1&Kb.HM&mC=w0&MW<rY,Hq#6M}QG,13&wP}Jp]Ow%ue&Kg<HP<D9~4k~9T&I2_c6$9T#9/[C5~7O~4a=cs&O7=KK=An&l9$6U$8A&uD&QI|/Y&bg}Ux&F2#6b}E2&JN&kW&kp=U/&bb=Xl<Cj}k+~5J#6L&5z&9i}b4&Fo,ho(X0_g3~4O$Fz&QE<HN=Ww]6/%GF-Vw=tj&/D&PN#9g=YO}cL&Of&PI~5I&Ip=vU=IW#9G;0o-wU}ss&QR<BT&R9=tk$PY_dh&Pq-yh]7T,nj.Xu=EP&76=cI&Fs*Xg}z7$Gb&+I=DF,AF=cA}rL#7j=Dz&3y<Aa$52=PQ}b0(iY$Fa}oL&xV#6U=ec=WZ,xh%RY<dp#9N&Fl&44=WH*A7=sh&TB&8P=07;u+&PK}uh}J5#72)V/=xC,AB$k0&f6;1E|+5=1B,3v]6n&wR%b+&xx]7f=Ol}fl;+D^wG]7E;nB;uh^Ir&l5=JL,nS=cf=g5;u6|/Q$Gc=MH%Hg#5d%M6^86=U+$Gz,l/,ir^5y&Ba&/F-IY&FI&be%IZ#77&PW_Nu$kE(Yf&NX]7Z,Jy&FJ(Xo&Nz#/d=y7&MX<Ag}Z+;nE]Dt(iG#4D=13&Pj~4c%v8&Zo%OL&/X#4W<HR&ie~6J_1O(Y2=y5=Ad*cv_eB#6k&PX:BU#7A;uk&Ft&Fx_dD=U2;vB=U5=4F}+O&GN.HH:9s=b0%NV(jO&IH=JT}Z9=VZ<Af,Kx^4m&uJ%c6,6r;9m#+L}cf%Kh&F3~4H=vP}bu,Hz|++,1w]nv}k6;uu$jw*Kl*WX&uM[x7&Fr[m7$NO&QN]hu=JN}nR^8g#/h(ps|KC;vd}xz=V0}p6&FD$G1#7K<bG_4p~8g&cf;u4=tl}+k%5/}fz;uw<cA=u1}gU}VM=LJ=eX&+L&Pr#4U}p2:nC,2K]7H:jF&9x}uX#9O=MB<fz~8X~5m&4D&kN&u5%E/(h7(ZF&VG<de(qM|/e-Wt=3x(a+,/R]f/&ND$Ro&nU}0g=KA%kH&NK$Ke<dS}cB&IX~5g$TN]6m=Uv,Is&Py=Ef%Kz#+/%bi&+A<F4$OG&4C&FL#9V<Zk=2I_eE&6c]nw&kq$HG}y+&A8$P3}OH=XP]70%IS(AJ_gH%GZ&tY&AZ=vb~6y&/r=VI=Wv<Zi=fl=xf&eL}c8}OL=MJ=g8$F7=YT}9u=0+^xC}JH&nL^N0~4T]K2,Cy%OC#6s;vG(AC^xe^cG&MF}Br#9P;wD-7h$O/&xA}Fn^PC]6i]7G&8V$Qs;vl(TB~73~4l<mW&6V=2y&uY&+3)aP}XF;LP&kx$wU=t7;uy<FN&lz)7E=Oo*Y+;wI}9q}le;J6&Ri&4t&Qr#8B=cb&vG=J5|Ql(h5<Yy~4+}QD,Lx=wn%K/&RK=dO&Pw,Q9=co%4u;9u}g0@6a^4I%b0=zo|/c&tX=dQ=OS#+b=yz_AB&wB&Pm=W9$HP_gR=62=AO=ti=hI,oA&jr&dH=tm&b6$P2(x8=zi;nG~7F;05]0n[Ix&3m}rg=Xp=cd&uz]7t;97=cN;vV<jf&FF&F1=6Q&Ik*Kk&P4,2z=fQ]7D&3u,H0=d/}Uw<ZN<7R}Kv;0f$H7,MD]7n$F0#88~9Z%da=by;+T#/u=VF&fO&kr^kf<AB]sU,I5$Ng&Pz;0i&QD&vM=Yl:BM;nJ_xJ]U7&Kf&30,3f|Z9*dC)je_jA&Q4&Kp$NH(Yz#6S&Id%Ib=KX,AD=KV%dP}tW&Pk^+E_Ni=cq,3R}VZ(Si=b+}rv;0j}rZ]uA,/w(Sx&Jv$w9&4d&wE,NJ$Gy=J/]Ls#7k<ZQ<Y/&uj]Ov$PM;v3,2F&+u:up=On&3e,Jv;90=J+&Qm]6q}bK#+d~8Y(h2]hA;99&AS=I/}qB&dQ}yJ-VM}Vl&ui,iB&G3|Dc]7d=eQ%dX%JC_1L~4d^NP;vJ&/1)ZI#7N]9X[bQ&PL=0L(UZ,Lm&kc&IR}n7(iR<AQ<dg=33=vN}ft}au]7I,Ba=x9=dR~6R&Tq=Xi,3d$Nr&Bc}DI&ku&vf]Dn,/F&iD,Ll&Nw=0y&I7=Ls=/A&tU=Qe}Ua&uk&+F=g4=gh=Vj#+1&Qn}Uy*44#5F,Pc&Rz*Xn=oh=5W;0n_Nf(iE<Y7=vr=Zu]oz#5Z%mI=kN=Bv_Jp(T2;vt_Ml<FS&uI=L/&6P]64$M7}86<bo%QX(SI%IY&VK=Al&Ux;vv;ut*E/%uh<ZE|O3,M2(yc]yu=Wk&tp:Ex}hr,Cl&WE)+Z=8U}I2_4Q,hA_si=iw=OM=tM=yZ%Ia=U7;wT}b+;uo=Za}yS!5x}HD}fb#5O_dA;Nv%uB(yB;01(Sf}Fk;v7}Pt#8v<mZ#7L,/r&Pl~4w&f5=Ph$Fw_LF&8m,bL=yJ&BH}p/*Jn}tU~5Q;wB(h6]Df]8p^+B;E4&Wc=d+;Ea&bw$8C&FN,DM=Yf}mP~5w=fT#6V=mC=Fi=AV}jB&AN}lW}aH#/D)dZ;hl;vE}/7,CJ;31&w8,hj%u9_Js=jJ&4M~8k=TN&eC}nL&uc-wi&lX}dj=Mv=e2#6u=cr$uq$6G]8W}Jb:nm=Yg<b3(UA;vX&6n&xF=KT,jC,De&R8&oY=Zv&oB]7/=Z2&Oa}bf,hh(4h^tZ&72&Nx;D2&xL~5h~40)ZG)h+=OJ&RA]Bv$yB=Oq=df,AQ%Jn}OJ;11,3z&Tl&tj;v+^Hv,Dh(id=s+]7N&N3)9Q~8f,S4=uW=w4&uX,LX&3d]CJ&yp&8x<b2_do&lP=y/<cy_dG=Oi=7R(VH(lt_1T,Iq_AA;12^6T%k6#8K[B1{oO<AU[Bt;1b$9S&Ps<8T=St{bY,jB(Zp&63&Uv$9V,PM]6v&Af}zW[bW_oq}sm}nB&Kq&gC&ff_eq_2m&5F&TI}rf}Gf;Zr_z9;ER&jk}iz_sn<BN~+n&vo=Vi%97|ZR=Wc,WE&6t]6z%85(ly#84=KY)6m_5/=aX,N3}Tm&he&6K]tR_B2-I3;u/&hU&lH<AP=iB&IA=XL;/5&Nh=wv<BH#79=vS=zl<AA=0X_RG}Bw&9p$NW,AX&kP_Lp&/Z(Tc]Mu}hs#6I}5B&cI<bq&H9#6m=K9}vH(Y1(Y0#4B&w6,/9&gG<bE,/O=zb}I4_l8<B/;wL%Qo<HO[Mq=XX}0v&BP&F4(mG}0i}nm,EC=9u{I3,xG&/9=JY*DK&hR)BX=EI=cx=b/{6k}yX%A+&wa}Xb=la;wi^lL;0t}jo&Qb=xg=XB}iO<qo{bR=NV&8f=a0&Jy;0v=uK)HK;vN#6h&jB(h/%ud&NI%wY.X7=Pt}Cu-uL&Gs_hl%mH,tm]78=Lb^Q0#7Y=1u<Bt&+Q=Co_RH,w3;1e}ux<aU;ui}U3&Q5%bt]63&UQ|0l&uL}O7&3o,AV&dm|Nj(Xt*5+(Uu&Hh(p7(UF=VR=Bp^Jl&Hd[ix)9/=Iq]C8<67]66}mB%6f}bb}JI]8T$HA}db=YM&pa=2J}tS&Y0=PS&y4=cX$6E,hX,XP&nR;04,FQ&l0&Vm_Dv#5Y~8Z=Bi%MA]6x=JO:+p,Az&9q,Hj~6/}SD=K1:EJ}nA;Qo#/E]9R,Ie&6X%W3]61&v4=xX_MC=0q;06(Xq=fs}IG}Dv=0l}o7$iZ;9v&LH&DP-7a&OY,SZ,Kz,Cv&dh=fx|Nh,F/~7q=XF&w+;9n&Gw;0h}Z7<7O&JK(S7&LS<AD<ac=wo<Dt&zw%4B=4v#8P;9o~6p*vV=Tm,Or&I6=1q}nY=P0=gq&Bl&Uu,Ch%yb}UY=zh}dh}rl(T4_xk(YA#8R*xH,IN}Jn]7V}C4&Ty}j3]7p=cL=3h&wW%Qv<Z3=f0&RI&+S(ic_zq}oN&/Y=z1;Td=LW=0e=OI(Vc,+b^ju(UL;0r:Za%8v=Rp=zw&58&73&wK}qX]6y&8E)a2}WR=wP^ur&nQ<cH}Re=Aq&wk}Q0&+q=PP,Gc|/d^k5,Fw]8Y}Pg]p3=ju=ed}r5_yf&Cs]7z$/G<Cm&Jp&54_1G_gP_Ll}JZ;0u]k8_7k(Sg]65{9i=LN&Sx&WK,iW&fD&Lk{9a}Em-9c#8N&io=sy]8d&nT&IK(lx#7/$lW(Td<s8~49,3o<7Y=MW(T+_Jr&Wd,iL}Ct=xh&5V;v4&8n%Kx=iF&l2_0B{B+,If(J0,Lv;u8=Kx-vB=HC&vS=Z6&fU&vE^xK;3D=4h=MR#45:Jw;0d}iw=LU}I5=I0]gB*im,K9}GU,1k_4U&Tt=Vs(iX&lU(TF#7y,ZO}oA&m5#5P}PN}Uz=hM<B1&FB<aG,e6~7T<tP(UQ_ZT=wu&F8)aQ]iN,1r_Lo&/g:CD}84{J1_Ki&Na&3n$jz&FE=dc;uv;va}in}ll=fv(h1&3h}fp=Cy}BM(+E~8m}lo%v7=hC(T6$cj=BQ=Bw(DR,2j=Ks,NS|F+;00=fU=70}Mb(YU;+G&m7&hr=Sk%Co]t+(X5_Jw}0r}gC(AS-IP&QK<Z2#8Q$WC]WX}T2&pG_Ka,HC=R4&/N;Z+;ch(C7,D4$3p_Mk&B2$8D=n9%Ky#5z(CT&QJ#7B]DC]gW}nf~5M;Iw#80}Tc_1F#4Z-aC}Hl=ph=fz,/3=aW}JM}nn;DG;vm}wn,4P}T3;wx&RG$u+}zK=0b;+J_Ek{re<aZ=AS}yY#5D]7q,Cp}xN=VP*2C}GZ}aG~+m_Cs=OY#6r]6g<GS}LC(UB=3A=Bo}Jy<c4}Is;1P<AG}Op<Z1}ld}nS=1Z,yM&95&98=CJ(4t:2L$Hk=Zo}Vc;+I}np&N1}9y=iv}CO*7p=jL)px]tb^zh&GS&Vl%v/;vR=14=zJ&49|/f]hF}WG;03=8P}o/&Gg&rp;DB,Kv}Ji&Pb;aA^ll(4j%yt}+K$Ht#4y&hY]7Y<F1,eN}bG(Uh%6Z]t5%G7;+F_RE;it}tL=LS&Da=Xx(S+(4f=8G=yI}cJ}WP=37=jS}pX}hd)fp<A8=Jt~+o$HJ=M6}iX=g9}CS=dv=Cj(mP%Kd,xq|+9&LD(4/=Xm&QP=Lc}LX&fL;+K=Op(lu=Qs.qC:+e&L+=Jj#8w;SL]7S(b+#4I=c1&nG_Lf&uH;+R)ZV<bV%B/,TE&0H&Jq&Ah%OF&Ss(p2,Wv&I3=Wl}Vq;1L&lJ#9b_1H=8r=b8=JH(SZ=hD=J2#7U,/U#/X~6P,FU<eL=jx,mG=hG=CE&PU=Se(qX&LY=X6=y4&tk&QQ&tf=4g&xI}W+&mZ=Dc#7w}Lg;DA;wQ_Kb(cJ=hR%yX&Yb,hw{bX_4X;EP;1W_2M}Uc=b5(YF,CM&Tp^OJ{DD]6s=vF=Yo~8q}XH}Fu%P5(SJ=Qt;MO]s8<F3&B3&8T(Ul-BS*dw&dR<87}/8]62$PZ]Lx<Au}9Q]7c=ja=KR,Go,Us&v6(qk}pG&G2=ev^GM%w4&H4]7F&dv]J6}Ew:9w=sj-ZL}Ym$+h(Ut(Um~4n=Xs(U7%eE=Qc_JR<CA#6t<Fv|/I,IS,EG<F2(Xy$/n<Fa(h9}+9_2o&N4#7X<Zq|+f_Dp=dt&na,Ca=NJ)jY=8C=YG=s6&Q+<DO}D3=xB&R1(lw;Qn<bF(Cu|/B}HV=SS&n7,10&u0]Dm%A6^4Q=WR(TD=Xo<GH,Rj(l8)bP&n/=LM&CF,F5&ml=PJ;0k=LG=tq,Rh,D6@4i=1p&+9=YC%er_Mh;nI;0q=Fw]80=xq=FM$Gv;v6&nc;wK%H2&Kj;vs,AA=YP,66}bI(qR~5U=6q~4b$Ni=K5.X3$So&Iu(p+]8G=Cf=RY(TS_O3(iH&57=fE=Dg_Do#9z#7H;FK{qd_2k%JR}en&gh_z8;Rx}9p<cN_Ne,DO;LN_7o~/p=NF=5Y}gN<ce<C1,QE]Wv=3u<BC}GK]yq}DY&u/_hj=II(pz&rC,jV&+Z}ut=NQ;Cg-SR_ZS,+o=u/;Oy_RK_QF(Fx&xP}Wr&TA,Uh&g1=yr{ax[VF$Pg(YB;Ox=Vy;+W(Sp}XV%dd&33(l/]l4#4Y}OE=6c=bw(A7&9t%wd&N/&mo,JH&Qe)fm=Ao}fu=tH",sz={zh_cn:null,zh_tw:null},sJ={zh_cn:"0x17bcc4d8547e5a7135e365d1ab443aaae95e76d8230c2782c67305d4f21497a1",zh_tw:"0x51e720e90c7b87bec1d70eb6e74a21a449bd3ec9c020b01d3a40ed991b60ce5d"},sj="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function sH(t){if(null!==sz[t.locale])return;sz[t.locale]=[];let e=0;for(let r=0;r<2048;r++){let n="~!@#$%^&*_-=[]{}|;:,.()<>?".indexOf(sG[3*r]),i=[228+(n>>2),128+sj.indexOf(sG[3*r+1]),128+sj.indexOf(sG[3*r+2])];if("zh_tw"===t.locale){let t=n%4;for(let r=t;r<3;r++)i[r]=sj.indexOf("FAZDC6BALcLZCA+GBARCW8wNCcDDZ8LVFBOqqDUiou+M42TFAyERXFb7EjhP+vmBFpFrUpfDV2F7eB+eCltCHJFWLFCED+pWTojEIHFXc3aFn4F68zqjEuKidS1QBVPDEhE7NA4mhMF7oThD49ot3FgtzHFCK0acW1x8DH1EmLoIlrWFBLE+y5+NA3Cx65wJHTaEZVaK1mWAmPGxgYCdxwOjTDIt/faOEhTl1vqNsKtJCOhJWuio2g07KLZEQsFBUpNtwEByBgxFslFheFbiEPvi61msDvApxCzB6rBCzox7joYA5UdDc+Cb4FSgIabpXFAj3bjkmFAxCZE+mD/SFf/0ELecYCt3nLoxC6WEZf2tKDB4oZvrEmqFkKk7BwILA7gtYBpsTq//D4jD0F0wEB9pyQ1BD5Ba0oYHDI+sbDFhvrHXdDHfgFEIJLi5r8qercNFBgFLC4bo5ERJtamWBDFy73KCEb6M8VpmEt330ygCTK58EIIFkYgF84gtGA9Uyh3m68iVrFbWFbcbqiCYHZ9J1jeRPbL8yswhMiDbhEhdNoSwFbZrLT740ABEqgCkO8J1BLd1VhKKR4sD1yUo0z+FF59Mvg71CFbyEhbHSFBKEIKyoQNgQppq9T0KAqePu0ZFGrXOHdKJqkoTFhYvpDNyuuznrN84thJbsCoO6Cu6Xlvntvy0QYuAExQEYtTUBf3CoCqwgGFZ4u1HJFzDVwEy3cjcpV4QvsPaBC3rCGyCF23o4K3pp2gberGgFEJEHo4nHICtyKH2ZqyxhN05KBBJIQlKh/Oujv/DH32VrlqFdIFC7Fz9Ct4kaqFME0UETLprnN9kfy+kFmtQBB0+5CFu0N9Ij8l/VvJDh2oq3hT6EzjTHKFN7ZjZwoTsAZ4Exsko6Fpa6WC+sduz8jyrLpegTv2h1EBeYpLpm2czQW0KoCcS0bCVXCmuWJDBjN1nQNLdF58SFJ0h7i3pC3oEOKy/FjBklL70XvBEEIWp2yZ04xObzAWDDJG7f+DbqBEA7LyiR95j7MDVdDViz2RE5vWlBMv5e4+VfhP3aXNPhvLSynb9O2x4uFBV+3jqu6d5pCG28/sETByvmu/+IJ0L3wb4rj9DNOLBF6XPIODr4L19U9RRofAG6Nxydi8Bki8BhGJbBAJKzbJxkZSlF9Q2Cu8oKqggB9hBArwLLqEBWEtFowy8XK8bEyw9snT+BeyFk1ZCSrdmgfEwFePTgCjELBEnIbjaDDPJm36rG9pztcEzT8dGk23SBhXBB1H4z+OWze0ooFzz8pDBYFvp9j9tvFByf9y4EFdVnz026CGR5qMr7fxMHN8UUdlyJAzlTBDRC28k+L4FB8078ljyD91tUj1ocnTs8vdEf7znbzm+GIjEZnoZE5rnLL700Xc7yHfz05nWxy03vBB9YGHYOWxgMQGBCR24CVYNE1hpfKxN0zKnfJDmmMgMmBWqNbjfSyFCBWSCGCgR8yFXiHyEj+VtD1FB3FpC1zI0kFbzifiKTLm9yq5zFmur+q8FHqjoOBWsBPiDbnCC2ErunV6cJ6TygXFYHYp7MKN9RUlSIS8/xBAGYLzeqUnBF4QbsTuUkUqGs6CaiDWKWjQK9EJkjpkTmNCPYXL"[e++])+(0==r?228:128)}sz[t.locale].push(sr(i))}if(si.check(t)!==sJ[t.locale])throw sz[t.locale]=null,Error("BIP39 Wordlist for "+t.locale+" (Chinese) FAILED")}class sV extends si{constructor(t){super("zh_"+t)}getWord(t){return sH(this),sz[this.locale][t]}getWordIndex(t){return sH(this),sz[this.locale].indexOf(t)}split(t){return(t=t.replace(/(?:\u3000| )+/g,"")).split("")}}let sX=new sV("cn");si.register(sX),si.register(sX,"zh");let sq=new sV("tw");si.register(sq);let sZ={cz:ss,en:sc,es:sy,fr:sS,it:sU,ja:sI,ko:sF,zh:sX,zh_cn:sX,zh_tw:sq};var sK=r(25263),sW=r(63691),sY=r(36280),sQ=r(35654),s$=r(64678),s0=r(82232),s1=r(4085),s6=r(66586),s5=r(26011),s2=r(89412),s8=r(72018),s3=r(62173),s4=r(90854),s9=r(31674),s7=r(77187),ut=r(49377),ue=r(75901),ur=r(15782),un=r(90455),ui=r(50451),uf=r(46569),uo=r(29157),ua=r(14016),us=r(15297),uu=r(49103),ul=r(76927),uh=r(46024),uc=r(14196),ud=r(57530),up=r(42219);let um="ethers/5.4.7",ug=new ut.Logger(um);try{let t=window;null==t._ethers&&(t._ethers=K)}catch(t){}},79028:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),f=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return i(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.formatBytes32String=e.Utf8ErrorFuncs=e.toUtf8String=e.toUtf8CodePoints=e.toUtf8Bytes=e._toEscapedUtf8String=e.nameprep=e.hexDataSlice=e.hexDataLength=e.hexZeroPad=e.hexValue=e.hexStripZeros=e.hexConcat=e.isHexString=e.hexlify=e.base64=e.base58=e.TransactionDescription=e.LogDescription=e.Interface=e.SigningKey=e.HDNode=e.defaultPath=e.isBytesLike=e.isBytes=e.zeroPad=e.stripZeros=e.concat=e.arrayify=e.shallowCopy=e.resolveProperties=e.getStatic=e.defineReadOnly=e.deepCopy=e.checkProperties=e.poll=e.fetchJson=e._fetchData=e.RLP=e.Logger=e.checkResultErrors=e.FormatTypes=e.ParamType=e.FunctionFragment=e.EventFragment=e.ErrorFragment=e.ConstructorFragment=e.Fragment=e.defaultAbiCoder=e.AbiCoder=void 0,e.Indexed=e.Utf8ErrorReason=e.UnicodeNormalizationForm=e.SupportedAlgorithm=e.mnemonicToSeed=e.isValidMnemonic=e.entropyToMnemonic=e.mnemonicToEntropy=e.getAccountPath=e.verifyTypedData=e.verifyMessage=e.recoverPublicKey=e.computePublicKey=e.recoverAddress=e.computeAddress=e.getJsonWalletAddress=e.TransactionTypes=e.serializeTransaction=e.parseTransaction=e.accessListify=e.joinSignature=e.splitSignature=e.soliditySha256=e.solidityKeccak256=e.solidityPack=e.shuffled=e.randomBytes=e.sha512=e.sha256=e.ripemd160=e.keccak256=e.computeHmac=e.commify=e.parseUnits=e.formatUnits=e.parseEther=e.formatEther=e.isAddress=e.getCreate2Address=e.getContractAddress=e.getIcapAddress=e.getAddress=e._TypedDataEncoder=e.id=e.isValidName=e.namehash=e.hashMessage=e.parseBytes32String=void 0;var o=r(73723);Object.defineProperty(e,"AbiCoder",{enumerable:!0,get:function(){return o.AbiCoder}}),Object.defineProperty(e,"checkResultErrors",{enumerable:!0,get:function(){return o.checkResultErrors}}),Object.defineProperty(e,"ConstructorFragment",{enumerable:!0,get:function(){return o.ConstructorFragment}}),Object.defineProperty(e,"defaultAbiCoder",{enumerable:!0,get:function(){return o.defaultAbiCoder}}),Object.defineProperty(e,"ErrorFragment",{enumerable:!0,get:function(){return o.ErrorFragment}}),Object.defineProperty(e,"EventFragment",{enumerable:!0,get:function(){return o.EventFragment}}),Object.defineProperty(e,"FormatTypes",{enumerable:!0,get:function(){return o.FormatTypes}}),Object.defineProperty(e,"Fragment",{enumerable:!0,get:function(){return o.Fragment}}),Object.defineProperty(e,"FunctionFragment",{enumerable:!0,get:function(){return o.FunctionFragment}}),Object.defineProperty(e,"Indexed",{enumerable:!0,get:function(){return o.Indexed}}),Object.defineProperty(e,"Interface",{enumerable:!0,get:function(){return o.Interface}}),Object.defineProperty(e,"LogDescription",{enumerable:!0,get:function(){return o.LogDescription}}),Object.defineProperty(e,"ParamType",{enumerable:!0,get:function(){return o.ParamType}}),Object.defineProperty(e,"TransactionDescription",{enumerable:!0,get:function(){return o.TransactionDescription}});var a=r(64678);Object.defineProperty(e,"getAddress",{enumerable:!0,get:function(){return a.getAddress}}),Object.defineProperty(e,"getCreate2Address",{enumerable:!0,get:function(){return a.getCreate2Address}}),Object.defineProperty(e,"getContractAddress",{enumerable:!0,get:function(){return a.getContractAddress}}),Object.defineProperty(e,"getIcapAddress",{enumerable:!0,get:function(){return a.getIcapAddress}}),Object.defineProperty(e,"isAddress",{enumerable:!0,get:function(){return a.isAddress}});var s=f(r(82232));e.base64=s;var u=r(4085);Object.defineProperty(e,"base58",{enumerable:!0,get:function(){return u.Base58}});var l=r(66586);Object.defineProperty(e,"arrayify",{enumerable:!0,get:function(){return l.arrayify}}),Object.defineProperty(e,"concat",{enumerable:!0,get:function(){return l.concat}}),Object.defineProperty(e,"hexConcat",{enumerable:!0,get:function(){return l.hexConcat}}),Object.defineProperty(e,"hexDataSlice",{enumerable:!0,get:function(){return l.hexDataSlice}}),Object.defineProperty(e,"hexDataLength",{enumerable:!0,get:function(){return l.hexDataLength}}),Object.defineProperty(e,"hexlify",{enumerable:!0,get:function(){return l.hexlify}}),Object.defineProperty(e,"hexStripZeros",{enumerable:!0,get:function(){return l.hexStripZeros}}),Object.defineProperty(e,"hexValue",{enumerable:!0,get:function(){return l.hexValue}}),Object.defineProperty(e,"hexZeroPad",{enumerable:!0,get:function(){return l.hexZeroPad}}),Object.defineProperty(e,"isBytes",{enumerable:!0,get:function(){return l.isBytes}}),Object.defineProperty(e,"isBytesLike",{enumerable:!0,get:function(){return l.isBytesLike}}),Object.defineProperty(e,"isHexString",{enumerable:!0,get:function(){return l.isHexString}}),Object.defineProperty(e,"joinSignature",{enumerable:!0,get:function(){return l.joinSignature}}),Object.defineProperty(e,"zeroPad",{enumerable:!0,get:function(){return l.zeroPad}}),Object.defineProperty(e,"splitSignature",{enumerable:!0,get:function(){return l.splitSignature}}),Object.defineProperty(e,"stripZeros",{enumerable:!0,get:function(){return l.stripZeros}});var h=r(21953);Object.defineProperty(e,"_TypedDataEncoder",{enumerable:!0,get:function(){return h._TypedDataEncoder}}),Object.defineProperty(e,"hashMessage",{enumerable:!0,get:function(){return h.hashMessage}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return h.id}}),Object.defineProperty(e,"isValidName",{enumerable:!0,get:function(){return h.isValidName}}),Object.defineProperty(e,"namehash",{enumerable:!0,get:function(){return h.namehash}});var c=r(90854);Object.defineProperty(e,"defaultPath",{enumerable:!0,get:function(){return c.defaultPath}}),Object.defineProperty(e,"entropyToMnemonic",{enumerable:!0,get:function(){return c.entropyToMnemonic}}),Object.defineProperty(e,"getAccountPath",{enumerable:!0,get:function(){return c.getAccountPath}}),Object.defineProperty(e,"HDNode",{enumerable:!0,get:function(){return c.HDNode}}),Object.defineProperty(e,"isValidMnemonic",{enumerable:!0,get:function(){return c.isValidMnemonic}}),Object.defineProperty(e,"mnemonicToEntropy",{enumerable:!0,get:function(){return c.mnemonicToEntropy}}),Object.defineProperty(e,"mnemonicToSeed",{enumerable:!0,get:function(){return c.mnemonicToSeed}});var d=r(74728);Object.defineProperty(e,"getJsonWalletAddress",{enumerable:!0,get:function(){return d.getJsonWalletAddress}});var p=r(77187);Object.defineProperty(e,"keccak256",{enumerable:!0,get:function(){return p.keccak256}});var m=r(49377);Object.defineProperty(e,"Logger",{enumerable:!0,get:function(){return m.Logger}});var g=r(29039);Object.defineProperty(e,"computeHmac",{enumerable:!0,get:function(){return g.computeHmac}}),Object.defineProperty(e,"ripemd160",{enumerable:!0,get:function(){return g.ripemd160}}),Object.defineProperty(e,"sha256",{enumerable:!0,get:function(){return g.sha256}}),Object.defineProperty(e,"sha512",{enumerable:!0,get:function(){return g.sha512}});var b=r(15782);Object.defineProperty(e,"solidityKeccak256",{enumerable:!0,get:function(){return b.keccak256}}),Object.defineProperty(e,"solidityPack",{enumerable:!0,get:function(){return b.pack}}),Object.defineProperty(e,"soliditySha256",{enumerable:!0,get:function(){return b.sha256}});var y=r(5621);Object.defineProperty(e,"randomBytes",{enumerable:!0,get:function(){return y.randomBytes}}),Object.defineProperty(e,"shuffled",{enumerable:!0,get:function(){return y.shuffled}});var v=r(46569);Object.defineProperty(e,"checkProperties",{enumerable:!0,get:function(){return v.checkProperties}}),Object.defineProperty(e,"deepCopy",{enumerable:!0,get:function(){return v.deepCopy}}),Object.defineProperty(e,"defineReadOnly",{enumerable:!0,get:function(){return v.defineReadOnly}}),Object.defineProperty(e,"getStatic",{enumerable:!0,get:function(){return v.getStatic}}),Object.defineProperty(e,"resolveProperties",{enumerable:!0,get:function(){return v.resolveProperties}}),Object.defineProperty(e,"shallowCopy",{enumerable:!0,get:function(){return v.shallowCopy}});var w=f(r(29157));e.RLP=w;var M=r(14016);Object.defineProperty(e,"computePublicKey",{enumerable:!0,get:function(){return M.computePublicKey}}),Object.defineProperty(e,"recoverPublicKey",{enumerable:!0,get:function(){return M.recoverPublicKey}}),Object.defineProperty(e,"SigningKey",{enumerable:!0,get:function(){return M.SigningKey}});var E=r(53214);Object.defineProperty(e,"formatBytes32String",{enumerable:!0,get:function(){return E.formatBytes32String}}),Object.defineProperty(e,"nameprep",{enumerable:!0,get:function(){return E.nameprep}}),Object.defineProperty(e,"parseBytes32String",{enumerable:!0,get:function(){return E.parseBytes32String}}),Object.defineProperty(e,"_toEscapedUtf8String",{enumerable:!0,get:function(){return E._toEscapedUtf8String}}),Object.defineProperty(e,"toUtf8Bytes",{enumerable:!0,get:function(){return E.toUtf8Bytes}}),Object.defineProperty(e,"toUtf8CodePoints",{enumerable:!0,get:function(){return E.toUtf8CodePoints}}),Object.defineProperty(e,"toUtf8String",{enumerable:!0,get:function(){return E.toUtf8String}}),Object.defineProperty(e,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return E.Utf8ErrorFuncs}});var A=r(46024);Object.defineProperty(e,"accessListify",{enumerable:!0,get:function(){return A.accessListify}}),Object.defineProperty(e,"computeAddress",{enumerable:!0,get:function(){return A.computeAddress}}),Object.defineProperty(e,"parseTransaction",{enumerable:!0,get:function(){return A.parse}}),Object.defineProperty(e,"recoverAddress",{enumerable:!0,get:function(){return A.recoverAddress}}),Object.defineProperty(e,"serializeTransaction",{enumerable:!0,get:function(){return A.serialize}}),Object.defineProperty(e,"TransactionTypes",{enumerable:!0,get:function(){return A.TransactionTypes}});var S=r(14196);Object.defineProperty(e,"commify",{enumerable:!0,get:function(){return S.commify}}),Object.defineProperty(e,"formatEther",{enumerable:!0,get:function(){return S.formatEther}}),Object.defineProperty(e,"parseEther",{enumerable:!0,get:function(){return S.parseEther}}),Object.defineProperty(e,"formatUnits",{enumerable:!0,get:function(){return S.formatUnits}}),Object.defineProperty(e,"parseUnits",{enumerable:!0,get:function(){return S.parseUnits}});var _=r(72086);Object.defineProperty(e,"verifyMessage",{enumerable:!0,get:function(){return _.verifyMessage}}),Object.defineProperty(e,"verifyTypedData",{enumerable:!0,get:function(){return _.verifyTypedData}});var N=r(57530);Object.defineProperty(e,"_fetchData",{enumerable:!0,get:function(){return N._fetchData}}),Object.defineProperty(e,"fetchJson",{enumerable:!0,get:function(){return N.fetchJson}}),Object.defineProperty(e,"poll",{enumerable:!0,get:function(){return N.poll}});var T=r(29039);Object.defineProperty(e,"SupportedAlgorithm",{enumerable:!0,get:function(){return T.SupportedAlgorithm}});var R=r(53214);Object.defineProperty(e,"UnicodeNormalizationForm",{enumerable:!0,get:function(){return R.UnicodeNormalizationForm}}),Object.defineProperty(e,"Utf8ErrorReason",{enumerable:!0,get:function(){return R.Utf8ErrorReason}})},68373:function(t,e,r){var n=r(34155);!/**
 * [js-sha3]{@link https://github.com/emn178/js-sha3}
 *
 * @version 0.5.7
 * @author Chen, Yi-Cyuan [emn178@gmail.com]
 * @copyright Chen, Yi-Cyuan 2015-2016
 * @license MIT
 */function(){"use strict";var e="object"==typeof window?window:{};!e.JS_SHA3_NO_NODE_JS&&"object"==typeof n&&n.versions&&n.versions.node&&(e=r.g);for(var i=!e.JS_SHA3_NO_COMMON_JS&&t.exports,f="0123456789abcdef".split(""),o=[0,8,16,24],a=[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],s=[224,256,384,512],u=["hex","buffer","arrayBuffer","array"],l=function(t,e,r){return function(n){return new M(t,e,t).update(n)[r]()}},h=function(t,e,r){return function(n,i){return new M(t,e,i).update(n)[r]()}},c=function(t,e){var r=l(t,e,"hex");r.create=function(){return new M(t,e,t)},r.update=function(t){return r.create().update(t)};for(var n=0;n<u.length;++n){var i=u[n];r[i]=l(t,e,i)}return r},d=[{name:"keccak",padding:[1,256,65536,16777216],bits:s,createMethod:c},{name:"sha3",padding:[6,1536,393216,100663296],bits:s,createMethod:c},{name:"shake",padding:[31,7936,2031616,520093696],bits:[128,256],createMethod:function(t,e){var r=h(t,e,"hex");r.create=function(r){return new M(t,e,r)},r.update=function(t,e){return r.create(e).update(t)};for(var n=0;n<u.length;++n){var i=u[n];r[i]=h(t,e,i)}return r}}],p={},m=[],g=0;g<d.length;++g)for(var b=d[g],y=b.bits,v=0;v<y.length;++v){var w=b.name+"_"+y[v];m.push(w),p[w]=b.createMethod(y[v],b.padding)}function M(t,e,r){this.blocks=[],this.s=[],this.padding=e,this.outputBits=r,this.reset=!0,this.block=0,this.start=0,this.blockCount=1600-(t<<1)>>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}M.prototype.update=function(t){var e="string"!=typeof t;e&&t.constructor===ArrayBuffer&&(t=new Uint8Array(t));for(var r,n,i=t.length,f=this.blocks,a=this.byteCount,s=this.blockCount,u=0,l=this.s;u<i;){if(this.reset)for(r=1,this.reset=!1,f[0]=this.block;r<s+1;++r)f[r]=0;if(e)for(r=this.start;u<i&&r<a;++u)f[r>>2]|=t[u]<<o[3&r++];else for(r=this.start;u<i&&r<a;++u)(n=t.charCodeAt(u))<128?f[r>>2]|=n<<o[3&r++]:(n<2048?f[r>>2]|=(192|n>>6)<<o[3&r++]:(n<55296||n>=57344?f[r>>2]|=(224|n>>12)<<o[3&r++]:(n=65536+((1023&n)<<10|1023&t.charCodeAt(++u)),f[r>>2]|=(240|n>>18)<<o[3&r++],f[r>>2]|=(128|n>>12&63)<<o[3&r++]),f[r>>2]|=(128|n>>6&63)<<o[3&r++]),f[r>>2]|=(128|63&n)<<o[3&r++]);if(this.lastByteIndex=r,r>=a){for(this.start=r-a,this.block=f[s],r=0;r<s;++r)l[r]^=f[r];E(l),this.reset=!0}else this.start=r}return this},M.prototype.finalize=function(){var t=this.blocks,e=this.lastByteIndex,r=this.blockCount,n=this.s;if(t[e>>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(e=1,t[0]=t[r];e<r+1;++e)t[e]=0;for(t[r-1]|=2147483648,e=0;e<r;++e)n[e]^=t[e];E(n)},M.prototype.toString=M.prototype.hex=function(){this.finalize();for(var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s="";a<n;){for(o=0;o<e&&a<n;++o,++a)s+=f[(t=r[o])>>4&15]+f[15&t]+f[t>>12&15]+f[t>>8&15]+f[t>>20&15]+f[t>>16&15]+f[t>>28&15]+f[t>>24&15];a%e==0&&(E(r),o=0)}return i&&(t=r[o],i>0&&(s+=f[t>>4&15]+f[15&t]),i>1&&(s+=f[t>>12&15]+f[t>>8&15]),i>2&&(s+=f[t>>20&15]+f[t>>16&15])),s},M.prototype.arrayBuffer=function(){this.finalize();for(var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,f=0,o=0,a=this.outputBits>>3,s=new Uint32Array(t=new ArrayBuffer(i?n+1<<2:a));o<n;){for(f=0;f<e&&o<n;++f,++o)s[o]=r[f];o%e==0&&E(r)}return i&&(s[f]=r[f],t=t.slice(0,a)),t},M.prototype.buffer=M.prototype.arrayBuffer,M.prototype.digest=M.prototype.array=function(){this.finalize();for(var t,e,r=this.blockCount,n=this.s,i=this.outputBlocks,f=this.extraBytes,o=0,a=0,s=[];a<i;){for(o=0;o<r&&a<i;++o,++a)t=a<<2,e=n[o],s[t]=255&e,s[t+1]=e>>8&255,s[t+2]=e>>16&255,s[t+3]=e>>24&255;a%r==0&&E(n)}return f&&(t=a<<2,e=n[o],f>0&&(s[t]=255&e),f>1&&(s[t+1]=e>>8&255),f>2&&(s[t+2]=e>>16&255)),s};var E=function(t){var e,r,n,i,f,o,s,u,l,h,c,d,p,m,g,b,y,v,w,M,E,A,S,_,N,T,R,C,I,P,O,x,k,F,B,L,D,U,G,z,J,j,H,V,X,q,Z,K,W,Y,Q,$,tt,te,tr,tn,ti,tf,to,ta,ts,tu,tl;for(n=0;n<48;n+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],f=t[1]^t[11]^t[21]^t[31]^t[41],o=t[2]^t[12]^t[22]^t[32]^t[42],s=t[3]^t[13]^t[23]^t[33]^t[43],u=t[4]^t[14]^t[24]^t[34]^t[44],l=t[5]^t[15]^t[25]^t[35]^t[45],h=t[6]^t[16]^t[26]^t[36]^t[46],c=t[7]^t[17]^t[27]^t[37]^t[47],d=t[8]^t[18]^t[28]^t[38]^t[48],p=t[9]^t[19]^t[29]^t[39]^t[49],e=d^(o<<1|s>>>31),r=p^(s<<1|o>>>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|l>>>31),r=f^(l<<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=o^(h<<1|c>>>31),r=s^(c<<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^(d<<1|p>>>31),r=l^(p<<1|d>>>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|f>>>31),r=c^(f<<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,m=t[0],g=t[1],q=t[11]<<4|t[10]>>>28,Z=t[10]<<4|t[11]>>>28,C=t[20]<<3|t[21]>>>29,I=t[21]<<3|t[20]>>>29,ta=t[31]<<9|t[30]>>>23,ts=t[30]<<9|t[31]>>>23,j=t[40]<<18|t[41]>>>14,H=t[41]<<18|t[40]>>>14,F=t[2]<<1|t[3]>>>31,B=t[3]<<1|t[2]>>>31,b=t[13]<<12|t[12]>>>20,y=t[12]<<12|t[13]>>>20,K=t[22]<<10|t[23]>>>22,W=t[23]<<10|t[22]>>>22,P=t[33]<<13|t[32]>>>19,O=t[32]<<13|t[33]>>>19,tu=t[42]<<2|t[43]>>>30,tl=t[43]<<2|t[42]>>>30,te=t[5]<<30|t[4]>>>2,tr=t[4]<<30|t[5]>>>2,L=t[14]<<6|t[15]>>>26,D=t[15]<<6|t[14]>>>26,v=t[25]<<11|t[24]>>>21,w=t[24]<<11|t[25]>>>21,Y=t[34]<<15|t[35]>>>17,Q=t[35]<<15|t[34]>>>17,x=t[45]<<29|t[44]>>>3,k=t[44]<<29|t[45]>>>3,_=t[6]<<28|t[7]>>>4,N=t[7]<<28|t[6]>>>4,tn=t[17]<<23|t[16]>>>9,ti=t[16]<<23|t[17]>>>9,U=t[26]<<25|t[27]>>>7,G=t[27]<<25|t[26]>>>7,M=t[36]<<21|t[37]>>>11,E=t[37]<<21|t[36]>>>11,$=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,V=t[8]<<27|t[9]>>>5,X=t[9]<<27|t[8]>>>5,T=t[18]<<20|t[19]>>>12,R=t[19]<<20|t[18]>>>12,tf=t[29]<<7|t[28]>>>25,to=t[28]<<7|t[29]>>>25,z=t[38]<<8|t[39]>>>24,J=t[39]<<8|t[38]>>>24,A=t[48]<<14|t[49]>>>18,S=t[49]<<14|t[48]>>>18,t[0]=m^~b&v,t[1]=g^~y&w,t[10]=_^~T&C,t[11]=N^~R&I,t[20]=F^~L&U,t[21]=B^~D&G,t[30]=V^~q&K,t[31]=X^~Z&W,t[40]=te^~tn&tf,t[41]=tr^~ti&to,t[2]=b^~v&M,t[3]=y^~w&E,t[12]=T^~C&P,t[13]=R^~I&O,t[22]=L^~U&z,t[23]=D^~G&J,t[32]=q^~K&Y,t[33]=Z^~W&Q,t[42]=tn^~tf&ta,t[43]=ti^~to&ts,t[4]=v^~M&A,t[5]=w^~E&S,t[14]=C^~P&x,t[15]=I^~O&k,t[24]=U^~z&j,t[25]=G^~J&H,t[34]=K^~Y&$,t[35]=W^~Q&tt,t[44]=tf^~ta&tu,t[45]=to^~ts&tl,t[6]=M^~A&m,t[7]=E^~S&g,t[16]=P^~x&_,t[17]=O^~k&N,t[26]=z^~j&F,t[27]=J^~H&B,t[36]=Y^~$&V,t[37]=Q^~tt&X,t[46]=ta^~tu&te,t[47]=ts^~tl&tr,t[8]=A^~m&b,t[9]=S^~g&y,t[18]=x^~_&T,t[19]=k^~N&R,t[28]=j^~F&L,t[29]=H^~B&D,t[38]=$^~V&q,t[39]=tt^~X&Z,t[48]=tu^~te&tn,t[49]=tl^~tr&ti,t[0]^=a[n],t[1]^=a[n+1]};if(i)t.exports=p;else for(var g=0;g<m.length;++g)e[m[g]]=p[m[g]]}()},78826:function(t){"use strict";!function(e){function r(t){return parseInt(t)===t}function n(t){if(!r(t.length))return!1;for(var e=0;e<t.length;e++)if(!r(t[e])||t[e]<0||t[e]>255)return!1;return!0}function i(t,e){if(t.buffer&&ArrayBuffer.isView(t)&&"Uint8Array"===t.name)return e&&(t=t.slice?t.slice():Array.prototype.slice.call(t)),t;if(Array.isArray(t)){if(!n(t))throw Error("Array contains invalid value: "+t);return new Uint8Array(t)}if(r(t.length)&&n(t))return new Uint8Array(t);throw Error("unsupported array-like object")}function f(t){return new Uint8Array(t)}function o(t,e,r,n,i){(null!=n||null!=i)&&(t=t.slice?t.slice(n,i):Array.prototype.slice.call(t,n,i)),e.set(t,r)}var a,s=(a="0123456789abcdef",{toBytes:function(t){for(var e=[],r=0;r<t.length;r+=2)e.push(parseInt(t.substr(r,2),16));return e},fromBytes:function(t){for(var e=[],r=0;r<t.length;r++){var n=t[r];e.push(a[(240&n)>>4]+a[15&n])}return e.join("")}}),u={16:10,24:12,32:14},l=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],h=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],c=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],d=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],p=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],m=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],g=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],b=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],y=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],v=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],w=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],M=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],E=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],A=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],S=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function _(t){for(var e=[],r=0;r<t.length;r+=4)e.push(t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3]);return e}var N=function(t){if(!(this instanceof N))throw Error("AES must be instanitated with `new`");Object.defineProperty(this,"key",{value:i(t,!0)}),this._prepare()};N.prototype._prepare=function(){var t=u[this.key.length];if(null==t)throw Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(var e=0;e<=t;e++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);for(var r=(t+1)*4,n=this.key.length/4,i=_(this.key),e=0;e<n;e++)f=e>>2,this._Ke[f][e%4]=i[e],this._Kd[t-f][e%4]=i[e];for(var f,o,a=0,s=n;s<r;){if(o=i[n-1],i[0]^=h[o>>16&255]<<24^h[o>>8&255]<<16^h[255&o]<<8^h[o>>24&255]^l[a]<<24,a+=1,8!=n)for(var e=1;e<n;e++)i[e]^=i[e-1];else{for(var e=1;e<n/2;e++)i[e]^=i[e-1];o=i[n/2-1],i[n/2]^=h[255&o]^h[o>>8&255]<<8^h[o>>16&255]<<16^h[o>>24&255]<<24;for(var e=n/2+1;e<n;e++)i[e]^=i[e-1]}for(var c,d,e=0;e<n&&s<r;)c=s>>2,d=s%4,this._Ke[c][d]=i[e],this._Kd[t-c][d]=i[e++],s++}for(var c=1;c<t;c++)for(var d=0;d<4;d++)o=this._Kd[c][d],this._Kd[c][d]=M[o>>24&255]^E[o>>16&255]^A[o>>8&255]^S[255&o]},N.prototype.encrypt=function(t){if(16!=t.length)throw Error("invalid plaintext size (must be 16 bytes)");for(var e=this._Ke.length-1,r=[0,0,0,0],n=_(t),i=0;i<4;i++)n[i]^=this._Ke[0][i];for(var o=1;o<e;o++){for(var i=0;i<4;i++)r[i]=d[n[i]>>24&255]^p[n[(i+1)%4]>>16&255]^m[n[(i+2)%4]>>8&255]^g[255&n[(i+3)%4]]^this._Ke[o][i];n=r.slice()}for(var a,s=f(16),i=0;i<4;i++)a=this._Ke[e][i],s[4*i]=(h[n[i]>>24&255]^a>>24)&255,s[4*i+1]=(h[n[(i+1)%4]>>16&255]^a>>16)&255,s[4*i+2]=(h[n[(i+2)%4]>>8&255]^a>>8)&255,s[4*i+3]=(h[255&n[(i+3)%4]]^a)&255;return s},N.prototype.decrypt=function(t){if(16!=t.length)throw Error("invalid ciphertext size (must be 16 bytes)");for(var e=this._Kd.length-1,r=[0,0,0,0],n=_(t),i=0;i<4;i++)n[i]^=this._Kd[0][i];for(var o=1;o<e;o++){for(var i=0;i<4;i++)r[i]=b[n[i]>>24&255]^y[n[(i+3)%4]>>16&255]^v[n[(i+2)%4]>>8&255]^w[255&n[(i+1)%4]]^this._Kd[o][i];n=r.slice()}for(var a,s=f(16),i=0;i<4;i++)a=this._Kd[e][i],s[4*i]=(c[n[i]>>24&255]^a>>24)&255,s[4*i+1]=(c[n[(i+3)%4]>>16&255]^a>>16)&255,s[4*i+2]=(c[n[(i+2)%4]>>8&255]^a>>8)&255,s[4*i+3]=(c[255&n[(i+1)%4]]^a)&255;return s};var T=function(t){if(!(this instanceof T))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new N(t)};T.prototype.encrypt=function(t){if((t=i(t)).length%16!=0)throw Error("invalid plaintext size (must be multiple of 16 bytes)");for(var e=f(t.length),r=f(16),n=0;n<t.length;n+=16)o(t,r,0,n,n+16),o(r=this._aes.encrypt(r),e,n);return e},T.prototype.decrypt=function(t){if((t=i(t)).length%16!=0)throw Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var e=f(t.length),r=f(16),n=0;n<t.length;n+=16)o(t,r,0,n,n+16),o(r=this._aes.decrypt(r),e,n);return e};var R=function(t,e){if(!(this instanceof R))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Block Chaining",this.name="cbc",e){if(16!=e.length)throw Error("invalid initialation vector size (must be 16 bytes)")}else e=f(16);this._lastCipherblock=i(e,!0),this._aes=new N(t)};R.prototype.encrypt=function(t){if((t=i(t)).length%16!=0)throw Error("invalid plaintext size (must be multiple of 16 bytes)");for(var e=f(t.length),r=f(16),n=0;n<t.length;n+=16){o(t,r,0,n,n+16);for(var a=0;a<16;a++)r[a]^=this._lastCipherblock[a];this._lastCipherblock=this._aes.encrypt(r),o(this._lastCipherblock,e,n)}return e},R.prototype.decrypt=function(t){if((t=i(t)).length%16!=0)throw Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var e=f(t.length),r=f(16),n=0;n<t.length;n+=16){o(t,r,0,n,n+16),r=this._aes.decrypt(r);for(var a=0;a<16;a++)e[n+a]=r[a]^this._lastCipherblock[a];o(t,this._lastCipherblock,0,n,n+16)}return e};var C=function(t,e,r){if(!(this instanceof C))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Feedback",this.name="cfb",e){if(16!=e.length)throw Error("invalid initialation vector size (must be 16 size)")}else e=f(16);r||(r=1),this.segmentSize=r,this._shiftRegister=i(e,!0),this._aes=new N(t)};C.prototype.encrypt=function(t){if(t.length%this.segmentSize!=0)throw Error("invalid plaintext size (must be segmentSize bytes)");for(var e,r=i(t,!0),n=0;n<r.length;n+=this.segmentSize){e=this._aes.encrypt(this._shiftRegister);for(var f=0;f<this.segmentSize;f++)r[n+f]^=e[f];o(this._shiftRegister,this._shiftRegister,0,this.segmentSize),o(r,this._shiftRegister,16-this.segmentSize,n,n+this.segmentSize)}return r},C.prototype.decrypt=function(t){if(t.length%this.segmentSize!=0)throw Error("invalid ciphertext size (must be segmentSize bytes)");for(var e,r=i(t,!0),n=0;n<r.length;n+=this.segmentSize){e=this._aes.encrypt(this._shiftRegister);for(var f=0;f<this.segmentSize;f++)r[n+f]^=e[f];o(this._shiftRegister,this._shiftRegister,0,this.segmentSize),o(t,this._shiftRegister,16-this.segmentSize,n,n+this.segmentSize)}return r};var I=function(t,e){if(!(this instanceof I))throw Error("AES must be instanitated with `new`");if(this.description="Output Feedback",this.name="ofb",e){if(16!=e.length)throw Error("invalid initialation vector size (must be 16 bytes)")}else e=f(16);this._lastPrecipher=i(e,!0),this._lastPrecipherIndex=16,this._aes=new N(t)};I.prototype.encrypt=function(t){for(var e=i(t,!0),r=0;r<e.length;r++)16===this._lastPrecipherIndex&&(this._lastPrecipher=this._aes.encrypt(this._lastPrecipher),this._lastPrecipherIndex=0),e[r]^=this._lastPrecipher[this._lastPrecipherIndex++];return e},I.prototype.decrypt=I.prototype.encrypt;var P=function(t){if(!(this instanceof P))throw Error("Counter must be instanitated with `new`");0===t||t||(t=1),"number"==typeof t?(this._counter=f(16),this.setValue(t)):this.setBytes(t)};P.prototype.setValue=function(t){if("number"!=typeof t||parseInt(t)!=t)throw Error("invalid counter value (must be an integer)");for(var e=15;e>=0;--e)this._counter[e]=t%256,t>>=8},P.prototype.setBytes=function(t){if(16!=(t=i(t,!0)).length)throw Error("invalid counter bytes size (must be 16 bytes)");this._counter=t},P.prototype.increment=function(){for(var t=15;t>=0;t--)if(255===this._counter[t])this._counter[t]=0;else{this._counter[t]++;break}};var O=function(t,e){if(!(this instanceof O))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",e instanceof P||(e=new P(e)),this._counter=e,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new N(t)};O.prototype.encrypt=function(t){for(var e=i(t,!0),r=0;r<e.length;r++)16===this._remainingCounterIndex&&(this._remainingCounter=this._aes.encrypt(this._counter._counter),this._remainingCounterIndex=0,this._counter.increment()),e[r]^=this._remainingCounter[this._remainingCounterIndex++];return e},O.prototype.decrypt=O.prototype.encrypt,t.exports={AES:N,Counter:P,ModeOfOperation:{ecb:T,cbc:R,cfb:C,ofb:I,ctr:O},utils:{hex:s,utf8:{toBytes:function(t){var e=[],r=0;for(t=encodeURI(t);r<t.length;){var n=t.charCodeAt(r++);37===n?(e.push(parseInt(t.substr(r,2),16)),r+=2):e.push(n)}return i(e)},fromBytes:function(t){for(var e=[],r=0;r<t.length;){var n=t[r];n<128?(e.push(String.fromCharCode(n)),r++):n>191&&n<224?(e.push(String.fromCharCode((31&n)<<6|63&t[r+1])),r+=2):(e.push(String.fromCharCode((15&n)<<12|(63&t[r+1])<<6|63&t[r+2])),r+=3)}return e.join("")}}},padding:{pkcs7:{pad:function(t){var e=16-(t=i(t,!0)).length%16,r=f(t.length+e);o(t,r);for(var n=t.length;n<r.length;n++)r[n]=e;return r},strip:function(t){if((t=i(t,!0)).length<16)throw Error("PKCS#7 invalid length");var e=t[t.length-1];if(e>16)throw Error("PKCS#7 padding byte out of range");for(var r=t.length-e,n=0;n<e;n++)if(t[r+n]!==e)throw Error("PKCS#7 invalid padding byte");var a=f(r);return o(t,a,0,0,r),a}}},_arrayTest:{coerceArray:i,createArray:f,copyArray:o}}}(0)},27715:function(t,e){"use strict";e.gW=void 0;let r="qpzry9x8gf2tvdw0s3jn54khce6mua7l",n={};for(let t=0;t<r.length;t++)n[r.charAt(t)]=t;function i(t){let e=t>>25;return(33554431&t)<<5^996825010&-(e>>0&1)^642813549&-(e>>1&1)^513874426&-(e>>2&1)^1027748829&-(e>>3&1)^705979059&-(e>>4&1)}function f(t){let e=1;for(let r=0;r<t.length;++r){let n=t.charCodeAt(r);if(n<33||n>126)return"Invalid prefix ("+t+")";e=i(e)^n>>5}e=i(e);for(let r=0;r<t.length;++r){let n=t.charCodeAt(r);e=i(e)^31&n}return e}function o(t,e,r,n){let i=0,f=0,o=(1<<r)-1,a=[];for(let n=0;n<t.length;++n)for(i=i<<e|t[n],f+=e;f>=r;)a.push(i>>(f-=r)&o);if(n)f>0&&a.push(i<<r-f&o);else{if(f>=e)return"Excess padding";if(i<<r-f&o)return"Non-zero padding"}return a}function a(t){return o(t,8,5,!0)}function s(t){let e=o(t,5,8,!1);if(Array.isArray(e))return e}function u(t){let e=o(t,5,8,!1);if(Array.isArray(e))return e;throw Error(e)}function l(t){let e;function o(t,r){if(r=r||90,t.length<8)return t+" too short";if(t.length>r)return"Exceeds length limit";let o=t.toLowerCase(),a=t.toUpperCase();if(t!==o&&t!==a)return"Mixed-case string "+t;let s=(t=o).lastIndexOf("1");if(-1===s)return"No separator character for "+t;if(0===s)return"Missing prefix for "+t;let u=t.slice(0,s),l=t.slice(s+1);if(l.length<6)return"Data too short";let h=f(u);if("string"==typeof h)return h;let c=[];for(let t=0;t<l.length;++t){let e=l.charAt(t),r=n[e];if(void 0===r)return"Unknown character "+e;h=i(h)^r,t+6>=l.length||c.push(r)}return h!==e?"Invalid checksum for "+t:{prefix:u,words:c}}return e="bech32"===t?1:734539939,{decodeUnsafe:function(t,e){let r=o(t,e);if("object"==typeof r)return r},decode:function(t,e){let r=o(t,e);if("object"==typeof r)return r;throw Error(r)},encode:function(t,n,o){if(o=o||90,t.length+7+n.length>o)throw TypeError("Exceeds length limit");let a=f(t=t.toLowerCase());if("string"==typeof a)throw Error(a);let s=t+"1";for(let t=0;t<n.length;++t){let e=n[t];if(e>>5!=0)throw Error("Non 5-bit word");a=i(a)^e,s+=r.charAt(e)}for(let t=0;t<6;++t)a=i(a);a^=e;for(let t=0;t<6;++t){let e=a>>(5-t)*5&31;s+=r.charAt(e)}return s},toWords:a,fromWordsUnsafe:s,fromWords:u}}e.gW=l("bech32"),l("bech32m")},13550:function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw 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 f(t,e,r){if(f.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"))}"object"==typeof t?t.exports=f:e.BN=f,f.BN=f,f.wordSize=26;try{u="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(46601).Buffer}catch(t){}function o(t,e){var r=t.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function a(t,e,r){var n=o(t,r);return r-1>=e&&(n|=o(t,r-1)<<4),n}function s(t,e,r,n){for(var i=0,f=Math.min(t.length,r),o=e;o<f;o++){var a=t.charCodeAt(o)-48;i*=n,a>=49?i+=a-49+10:a>=17?i+=a-17+10:i+=a}return i}f.isBN=function(t){return t instanceof f||null!==t&&"object"==typeof t&&t.constructor.wordSize===f.wordSize&&Array.isArray(t.words)},f.max=function(t,e){return t.cmp(e)>0?t:e},f.min=function(t,e){return 0>t.cmp(e)?t:e},f.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);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},f.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)},f.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=Array(this.length);for(var i,f,o=0;o<this.length;o++)this.words[o]=0;var a=0;if("be"===r)for(o=t.length-1,i=0;o>=0;o-=3)f=t[o]|t[o-1]<<8|t[o-2]<<16,this.words[i]|=f<<a&67108863,this.words[i+1]=f>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);else if("le"===r)for(o=0,i=0;o<t.length;o+=3)f=t[o]|t[o+1]<<8|t[o+2]<<16,this.words[i]|=f<<a&67108863,this.words[i+1]=f>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);return this.strip()},f.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=Array(this.length);for(var n,i=0;i<this.length;i++)this.words[i]=0;var f=0,o=0;if("be"===r)for(i=t.length-1;i>=e;i-=2)n=a(t,e,i)<<f,this.words[o]|=67108863&n,f>=18?(f-=18,o+=1,this.words[o]|=n>>>26):f+=8;else for(i=(t.length-e)%2==0?e+1:e;i<t.length;i+=2)n=a(t,e,i)<<f,this.words[o]|=67108863&n,f>=18?(f-=18,o+=1,this.words[o]|=n>>>26):f+=8;this.strip()},f.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 f=t.length-r,o=f%n,a=Math.min(f,f-o)+r,u=0,l=r;l<a;l+=n)u=s(t,l,l+n,e),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==o){var h=1;for(u=s(t,l,t.length,e),l=0;l<o;l++)h*=e;this.imuln(h),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},f.prototype.copy=function(t){t.words=Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},f.prototype.clone=function(){var t=new f(null);return this.copy(t),t},f.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},f.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},f.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},f.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var u,l=["","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],c=[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,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],f=0|e.words[0],o=i*f,a=67108863&o,s=o/67108864|0;r.words[0]=a;for(var u=1;u<n;u++){for(var l=s>>>26,h=67108863&s,c=Math.min(u,e.length-1),d=Math.max(0,u-t.length+1);d<=c;d++){var p=u-d|0;l+=(o=(i=0|t.words[p])*(f=0|e.words[d])+h)/67108864|0,h=67108863&o}r.words[u]=0|h,s=0|l}return 0!==s?r.words[u]=0|s:r.length--,r.strip()}f.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var r,i=0,f=0,o=0;o<this.length;o++){var a=this.words[o],s=((a<<i|f)&16777215).toString(16);r=0!=(f=a>>>24-i&16777215)||o!==this.length-1?l[6-s.length]+s+r:s+r,(i+=2)>=26&&(i-=26,o--)}for(0!==f&&(r=f.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var u=h[t],d=c[t];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(d).toString(t);r=(p=p.idivn(d)).isZero()?m+r:l[u-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},f.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},f.prototype.toJSON=function(){return this.toString(16)},f.prototype.toBuffer=function(t,e){return n(void 0!==u),this.toArrayLike(u,t,e)},f.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},f.prototype.toArrayLike=function(t,e,r){var i,f,o=this.byteLength(),a=r||Math.max(1,o);n(o<=a,"byte array longer than desired length"),n(a>0,"Requested array length <= 0"),this.strip();var s=new t(a),u=this.clone();if("le"===e){for(f=0;!u.isZero();f++)i=u.andln(255),u.iushrn(8),s[f]=i;for(;f<a;f++)s[f]=0}else{for(f=0;f<a-o;f++)s[f]=0;for(f=0;!u.isZero();f++)i=u.andln(255),u.iushrn(8),s[a-f-1]=i}return s},Math.clz32?f.prototype._countBits=function(t){return 32-Math.clz32(t)}:f.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},f.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return(8191&e)==0&&(r+=13,e>>>=13),(127&e)==0&&(r+=7,e>>>=7),(15&e)==0&&(r+=4,e>>>=4),(3&e)==0&&(r+=2,e>>>=2),(1&e)==0&&r++,r},f.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return(this.length-1)*26+e},f.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},f.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},f.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},f.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},f.prototype.isNeg=function(){return 0!==this.negative},f.prototype.neg=function(){return this.clone().ineg()},f.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},f.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},f.prototype.ior=function(t){return n((this.negative|t.negative)==0),this.iuor(t)},f.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},f.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},f.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},f.prototype.iand=function(t){return n((this.negative|t.negative)==0),this.iuand(t)},f.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},f.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},f.prototype.iuxor=function(t){this.length>t.length?(e=this,r=t):(e=t,r=this);for(var e,r,n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},f.prototype.ixor=function(t){return n((this.negative|t.negative)==0),this.iuxor(t)},f.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},f.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},f.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;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},f.prototype.notn=function(t){return this.clone().inotn(t)},f.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),e?this.words[r]=this.words[r]|1<<i:this.words[r]=this.words[r]&~(1<<i),this.strip()},f.prototype.iadd=function(t){if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var e,r,n,i=0,f=0;f<n.length;f++)e=(0|r.words[f])+(0|n.words[f])+i,this.words[f]=67108863&e,i=e>>>26;for(;0!==i&&f<r.length;f++)e=(0|r.words[f])+i,this.words[f]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;f<r.length;f++)this.words[f]=r.words[f];return this},f.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},f.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e,r,n=this.iadd(t);return t.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(e=this,r=t):(e=t,r=this);for(var f=0,o=0;o<r.length;o++)f=(n=(0|e.words[o])-(0|r.words[o])+f)>>26,this.words[o]=67108863&n;for(;0!==f&&o<e.length;o++)f=(n=(0|e.words[o])+f)>>26,this.words[o]=67108863&n;if(0===f&&o<e.length&&e!==this)for(;o<e.length;o++)this.words[o]=e.words[o];return this.length=Math.max(this.length,o),e!==this&&(this.negative=1),this.strip()},f.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,r){var n,i,f,o=t.words,a=e.words,s=r.words,u=0,l=0|o[0],h=8191&l,c=l>>>13,d=0|o[1],p=8191&d,m=d>>>13,g=0|o[2],b=8191&g,y=g>>>13,v=0|o[3],w=8191&v,M=v>>>13,E=0|o[4],A=8191&E,S=E>>>13,_=0|o[5],N=8191&_,T=_>>>13,R=0|o[6],C=8191&R,I=R>>>13,P=0|o[7],O=8191&P,x=P>>>13,k=0|o[8],F=8191&k,B=k>>>13,L=0|o[9],D=8191&L,U=L>>>13,G=0|a[0],z=8191&G,J=G>>>13,j=0|a[1],H=8191&j,V=j>>>13,X=0|a[2],q=8191&X,Z=X>>>13,K=0|a[3],W=8191&K,Y=K>>>13,Q=0|a[4],$=8191&Q,tt=Q>>>13,te=0|a[5],tr=8191&te,tn=te>>>13,ti=0|a[6],tf=8191&ti,to=ti>>>13,ta=0|a[7],ts=8191&ta,tu=ta>>>13,tl=0|a[8],th=8191&tl,tc=tl>>>13,td=0|a[9],tp=8191&td,tm=td>>>13;r.negative=t.negative^e.negative,r.length=19;var tg=(u+(n=Math.imul(h,z))|0)+((8191&(i=(i=Math.imul(h,J))+Math.imul(c,z)|0))<<13)|0;u=((f=Math.imul(c,J))+(i>>>13)|0)+(tg>>>26)|0,tg&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,J))+Math.imul(m,z)|0,f=Math.imul(m,J);var tb=(u+(n=n+Math.imul(h,H)|0)|0)+((8191&(i=(i=i+Math.imul(h,V)|0)+Math.imul(c,H)|0))<<13)|0;u=((f=f+Math.imul(c,V)|0)+(i>>>13)|0)+(tb>>>26)|0,tb&=67108863,n=Math.imul(b,z),i=(i=Math.imul(b,J))+Math.imul(y,z)|0,f=Math.imul(y,J),n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,H)|0,f=f+Math.imul(m,V)|0;var ty=(u+(n=n+Math.imul(h,q)|0)|0)+((8191&(i=(i=i+Math.imul(h,Z)|0)+Math.imul(c,q)|0))<<13)|0;u=((f=f+Math.imul(c,Z)|0)+(i>>>13)|0)+(ty>>>26)|0,ty&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,J))+Math.imul(M,z)|0,f=Math.imul(M,J),n=n+Math.imul(b,H)|0,i=(i=i+Math.imul(b,V)|0)+Math.imul(y,H)|0,f=f+Math.imul(y,V)|0,n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,q)|0,f=f+Math.imul(m,Z)|0;var tv=(u+(n=n+Math.imul(h,W)|0)|0)+((8191&(i=(i=i+Math.imul(h,Y)|0)+Math.imul(c,W)|0))<<13)|0;u=((f=f+Math.imul(c,Y)|0)+(i>>>13)|0)+(tv>>>26)|0,tv&=67108863,n=Math.imul(A,z),i=(i=Math.imul(A,J))+Math.imul(S,z)|0,f=Math.imul(S,J),n=n+Math.imul(w,H)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(M,H)|0,f=f+Math.imul(M,V)|0,n=n+Math.imul(b,q)|0,i=(i=i+Math.imul(b,Z)|0)+Math.imul(y,q)|0,f=f+Math.imul(y,Z)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,W)|0,f=f+Math.imul(m,Y)|0;var tw=(u+(n=n+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(c,$)|0))<<13)|0;u=((f=f+Math.imul(c,tt)|0)+(i>>>13)|0)+(tw>>>26)|0,tw&=67108863,n=Math.imul(N,z),i=(i=Math.imul(N,J))+Math.imul(T,z)|0,f=Math.imul(T,J),n=n+Math.imul(A,H)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(S,H)|0,f=f+Math.imul(S,V)|0,n=n+Math.imul(w,q)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(M,q)|0,f=f+Math.imul(M,Z)|0,n=n+Math.imul(b,W)|0,i=(i=i+Math.imul(b,Y)|0)+Math.imul(y,W)|0,f=f+Math.imul(y,Y)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,$)|0,f=f+Math.imul(m,tt)|0;var tM=(u+(n=n+Math.imul(h,tr)|0)|0)+((8191&(i=(i=i+Math.imul(h,tn)|0)+Math.imul(c,tr)|0))<<13)|0;u=((f=f+Math.imul(c,tn)|0)+(i>>>13)|0)+(tM>>>26)|0,tM&=67108863,n=Math.imul(C,z),i=(i=Math.imul(C,J))+Math.imul(I,z)|0,f=Math.imul(I,J),n=n+Math.imul(N,H)|0,i=(i=i+Math.imul(N,V)|0)+Math.imul(T,H)|0,f=f+Math.imul(T,V)|0,n=n+Math.imul(A,q)|0,i=(i=i+Math.imul(A,Z)|0)+Math.imul(S,q)|0,f=f+Math.imul(S,Z)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(M,W)|0,f=f+Math.imul(M,Y)|0,n=n+Math.imul(b,$)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(y,$)|0,f=f+Math.imul(y,tt)|0,n=n+Math.imul(p,tr)|0,i=(i=i+Math.imul(p,tn)|0)+Math.imul(m,tr)|0,f=f+Math.imul(m,tn)|0;var tE=(u+(n=n+Math.imul(h,tf)|0)|0)+((8191&(i=(i=i+Math.imul(h,to)|0)+Math.imul(c,tf)|0))<<13)|0;u=((f=f+Math.imul(c,to)|0)+(i>>>13)|0)+(tE>>>26)|0,tE&=67108863,n=Math.imul(O,z),i=(i=Math.imul(O,J))+Math.imul(x,z)|0,f=Math.imul(x,J),n=n+Math.imul(C,H)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(I,H)|0,f=f+Math.imul(I,V)|0,n=n+Math.imul(N,q)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(T,q)|0,f=f+Math.imul(T,Z)|0,n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(S,W)|0,f=f+Math.imul(S,Y)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(M,$)|0,f=f+Math.imul(M,tt)|0,n=n+Math.imul(b,tr)|0,i=(i=i+Math.imul(b,tn)|0)+Math.imul(y,tr)|0,f=f+Math.imul(y,tn)|0,n=n+Math.imul(p,tf)|0,i=(i=i+Math.imul(p,to)|0)+Math.imul(m,tf)|0,f=f+Math.imul(m,to)|0;var tA=(u+(n=n+Math.imul(h,ts)|0)|0)+((8191&(i=(i=i+Math.imul(h,tu)|0)+Math.imul(c,ts)|0))<<13)|0;u=((f=f+Math.imul(c,tu)|0)+(i>>>13)|0)+(tA>>>26)|0,tA&=67108863,n=Math.imul(F,z),i=(i=Math.imul(F,J))+Math.imul(B,z)|0,f=Math.imul(B,J),n=n+Math.imul(O,H)|0,i=(i=i+Math.imul(O,V)|0)+Math.imul(x,H)|0,f=f+Math.imul(x,V)|0,n=n+Math.imul(C,q)|0,i=(i=i+Math.imul(C,Z)|0)+Math.imul(I,q)|0,f=f+Math.imul(I,Z)|0,n=n+Math.imul(N,W)|0,i=(i=i+Math.imul(N,Y)|0)+Math.imul(T,W)|0,f=f+Math.imul(T,Y)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(S,$)|0,f=f+Math.imul(S,tt)|0,n=n+Math.imul(w,tr)|0,i=(i=i+Math.imul(w,tn)|0)+Math.imul(M,tr)|0,f=f+Math.imul(M,tn)|0,n=n+Math.imul(b,tf)|0,i=(i=i+Math.imul(b,to)|0)+Math.imul(y,tf)|0,f=f+Math.imul(y,to)|0,n=n+Math.imul(p,ts)|0,i=(i=i+Math.imul(p,tu)|0)+Math.imul(m,ts)|0,f=f+Math.imul(m,tu)|0;var tS=(u+(n=n+Math.imul(h,th)|0)|0)+((8191&(i=(i=i+Math.imul(h,tc)|0)+Math.imul(c,th)|0))<<13)|0;u=((f=f+Math.imul(c,tc)|0)+(i>>>13)|0)+(tS>>>26)|0,tS&=67108863,n=Math.imul(D,z),i=(i=Math.imul(D,J))+Math.imul(U,z)|0,f=Math.imul(U,J),n=n+Math.imul(F,H)|0,i=(i=i+Math.imul(F,V)|0)+Math.imul(B,H)|0,f=f+Math.imul(B,V)|0,n=n+Math.imul(O,q)|0,i=(i=i+Math.imul(O,Z)|0)+Math.imul(x,q)|0,f=f+Math.imul(x,Z)|0,n=n+Math.imul(C,W)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(I,W)|0,f=f+Math.imul(I,Y)|0,n=n+Math.imul(N,$)|0,i=(i=i+Math.imul(N,tt)|0)+Math.imul(T,$)|0,f=f+Math.imul(T,tt)|0,n=n+Math.imul(A,tr)|0,i=(i=i+Math.imul(A,tn)|0)+Math.imul(S,tr)|0,f=f+Math.imul(S,tn)|0,n=n+Math.imul(w,tf)|0,i=(i=i+Math.imul(w,to)|0)+Math.imul(M,tf)|0,f=f+Math.imul(M,to)|0,n=n+Math.imul(b,ts)|0,i=(i=i+Math.imul(b,tu)|0)+Math.imul(y,ts)|0,f=f+Math.imul(y,tu)|0,n=n+Math.imul(p,th)|0,i=(i=i+Math.imul(p,tc)|0)+Math.imul(m,th)|0,f=f+Math.imul(m,tc)|0;var t_=(u+(n=n+Math.imul(h,tp)|0)|0)+((8191&(i=(i=i+Math.imul(h,tm)|0)+Math.imul(c,tp)|0))<<13)|0;u=((f=f+Math.imul(c,tm)|0)+(i>>>13)|0)+(t_>>>26)|0,t_&=67108863,n=Math.imul(D,H),i=(i=Math.imul(D,V))+Math.imul(U,H)|0,f=Math.imul(U,V),n=n+Math.imul(F,q)|0,i=(i=i+Math.imul(F,Z)|0)+Math.imul(B,q)|0,f=f+Math.imul(B,Z)|0,n=n+Math.imul(O,W)|0,i=(i=i+Math.imul(O,Y)|0)+Math.imul(x,W)|0,f=f+Math.imul(x,Y)|0,n=n+Math.imul(C,$)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(I,$)|0,f=f+Math.imul(I,tt)|0,n=n+Math.imul(N,tr)|0,i=(i=i+Math.imul(N,tn)|0)+Math.imul(T,tr)|0,f=f+Math.imul(T,tn)|0,n=n+Math.imul(A,tf)|0,i=(i=i+Math.imul(A,to)|0)+Math.imul(S,tf)|0,f=f+Math.imul(S,to)|0,n=n+Math.imul(w,ts)|0,i=(i=i+Math.imul(w,tu)|0)+Math.imul(M,ts)|0,f=f+Math.imul(M,tu)|0,n=n+Math.imul(b,th)|0,i=(i=i+Math.imul(b,tc)|0)+Math.imul(y,th)|0,f=f+Math.imul(y,tc)|0;var tN=(u+(n=n+Math.imul(p,tp)|0)|0)+((8191&(i=(i=i+Math.imul(p,tm)|0)+Math.imul(m,tp)|0))<<13)|0;u=((f=f+Math.imul(m,tm)|0)+(i>>>13)|0)+(tN>>>26)|0,tN&=67108863,n=Math.imul(D,q),i=(i=Math.imul(D,Z))+Math.imul(U,q)|0,f=Math.imul(U,Z),n=n+Math.imul(F,W)|0,i=(i=i+Math.imul(F,Y)|0)+Math.imul(B,W)|0,f=f+Math.imul(B,Y)|0,n=n+Math.imul(O,$)|0,i=(i=i+Math.imul(O,tt)|0)+Math.imul(x,$)|0,f=f+Math.imul(x,tt)|0,n=n+Math.imul(C,tr)|0,i=(i=i+Math.imul(C,tn)|0)+Math.imul(I,tr)|0,f=f+Math.imul(I,tn)|0,n=n+Math.imul(N,tf)|0,i=(i=i+Math.imul(N,to)|0)+Math.imul(T,tf)|0,f=f+Math.imul(T,to)|0,n=n+Math.imul(A,ts)|0,i=(i=i+Math.imul(A,tu)|0)+Math.imul(S,ts)|0,f=f+Math.imul(S,tu)|0,n=n+Math.imul(w,th)|0,i=(i=i+Math.imul(w,tc)|0)+Math.imul(M,th)|0,f=f+Math.imul(M,tc)|0;var tT=(u+(n=n+Math.imul(b,tp)|0)|0)+((8191&(i=(i=i+Math.imul(b,tm)|0)+Math.imul(y,tp)|0))<<13)|0;u=((f=f+Math.imul(y,tm)|0)+(i>>>13)|0)+(tT>>>26)|0,tT&=67108863,n=Math.imul(D,W),i=(i=Math.imul(D,Y))+Math.imul(U,W)|0,f=Math.imul(U,Y),n=n+Math.imul(F,$)|0,i=(i=i+Math.imul(F,tt)|0)+Math.imul(B,$)|0,f=f+Math.imul(B,tt)|0,n=n+Math.imul(O,tr)|0,i=(i=i+Math.imul(O,tn)|0)+Math.imul(x,tr)|0,f=f+Math.imul(x,tn)|0,n=n+Math.imul(C,tf)|0,i=(i=i+Math.imul(C,to)|0)+Math.imul(I,tf)|0,f=f+Math.imul(I,to)|0,n=n+Math.imul(N,ts)|0,i=(i=i+Math.imul(N,tu)|0)+Math.imul(T,ts)|0,f=f+Math.imul(T,tu)|0,n=n+Math.imul(A,th)|0,i=(i=i+Math.imul(A,tc)|0)+Math.imul(S,th)|0,f=f+Math.imul(S,tc)|0;var tR=(u+(n=n+Math.imul(w,tp)|0)|0)+((8191&(i=(i=i+Math.imul(w,tm)|0)+Math.imul(M,tp)|0))<<13)|0;u=((f=f+Math.imul(M,tm)|0)+(i>>>13)|0)+(tR>>>26)|0,tR&=67108863,n=Math.imul(D,$),i=(i=Math.imul(D,tt))+Math.imul(U,$)|0,f=Math.imul(U,tt),n=n+Math.imul(F,tr)|0,i=(i=i+Math.imul(F,tn)|0)+Math.imul(B,tr)|0,f=f+Math.imul(B,tn)|0,n=n+Math.imul(O,tf)|0,i=(i=i+Math.imul(O,to)|0)+Math.imul(x,tf)|0,f=f+Math.imul(x,to)|0,n=n+Math.imul(C,ts)|0,i=(i=i+Math.imul(C,tu)|0)+Math.imul(I,ts)|0,f=f+Math.imul(I,tu)|0,n=n+Math.imul(N,th)|0,i=(i=i+Math.imul(N,tc)|0)+Math.imul(T,th)|0,f=f+Math.imul(T,tc)|0;var tC=(u+(n=n+Math.imul(A,tp)|0)|0)+((8191&(i=(i=i+Math.imul(A,tm)|0)+Math.imul(S,tp)|0))<<13)|0;u=((f=f+Math.imul(S,tm)|0)+(i>>>13)|0)+(tC>>>26)|0,tC&=67108863,n=Math.imul(D,tr),i=(i=Math.imul(D,tn))+Math.imul(U,tr)|0,f=Math.imul(U,tn),n=n+Math.imul(F,tf)|0,i=(i=i+Math.imul(F,to)|0)+Math.imul(B,tf)|0,f=f+Math.imul(B,to)|0,n=n+Math.imul(O,ts)|0,i=(i=i+Math.imul(O,tu)|0)+Math.imul(x,ts)|0,f=f+Math.imul(x,tu)|0,n=n+Math.imul(C,th)|0,i=(i=i+Math.imul(C,tc)|0)+Math.imul(I,th)|0,f=f+Math.imul(I,tc)|0;var tI=(u+(n=n+Math.imul(N,tp)|0)|0)+((8191&(i=(i=i+Math.imul(N,tm)|0)+Math.imul(T,tp)|0))<<13)|0;u=((f=f+Math.imul(T,tm)|0)+(i>>>13)|0)+(tI>>>26)|0,tI&=67108863,n=Math.imul(D,tf),i=(i=Math.imul(D,to))+Math.imul(U,tf)|0,f=Math.imul(U,to),n=n+Math.imul(F,ts)|0,i=(i=i+Math.imul(F,tu)|0)+Math.imul(B,ts)|0,f=f+Math.imul(B,tu)|0,n=n+Math.imul(O,th)|0,i=(i=i+Math.imul(O,tc)|0)+Math.imul(x,th)|0,f=f+Math.imul(x,tc)|0;var tP=(u+(n=n+Math.imul(C,tp)|0)|0)+((8191&(i=(i=i+Math.imul(C,tm)|0)+Math.imul(I,tp)|0))<<13)|0;u=((f=f+Math.imul(I,tm)|0)+(i>>>13)|0)+(tP>>>26)|0,tP&=67108863,n=Math.imul(D,ts),i=(i=Math.imul(D,tu))+Math.imul(U,ts)|0,f=Math.imul(U,tu),n=n+Math.imul(F,th)|0,i=(i=i+Math.imul(F,tc)|0)+Math.imul(B,th)|0,f=f+Math.imul(B,tc)|0;var tO=(u+(n=n+Math.imul(O,tp)|0)|0)+((8191&(i=(i=i+Math.imul(O,tm)|0)+Math.imul(x,tp)|0))<<13)|0;u=((f=f+Math.imul(x,tm)|0)+(i>>>13)|0)+(tO>>>26)|0,tO&=67108863,n=Math.imul(D,th),i=(i=Math.imul(D,tc))+Math.imul(U,th)|0,f=Math.imul(U,tc);var tx=(u+(n=n+Math.imul(F,tp)|0)|0)+((8191&(i=(i=i+Math.imul(F,tm)|0)+Math.imul(B,tp)|0))<<13)|0;u=((f=f+Math.imul(B,tm)|0)+(i>>>13)|0)+(tx>>>26)|0,tx&=67108863;var tk=(u+(n=Math.imul(D,tp))|0)+((8191&(i=(i=Math.imul(D,tm))+Math.imul(U,tp)|0))<<13)|0;return u=((f=Math.imul(U,tm))+(i>>>13)|0)+(tk>>>26)|0,tk&=67108863,s[0]=tg,s[1]=tb,s[2]=ty,s[3]=tv,s[4]=tw,s[5]=tM,s[6]=tE,s[7]=tA,s[8]=tS,s[9]=t_,s[10]=tN,s[11]=tT,s[12]=tR,s[13]=tC,s[14]=tI,s[15]=tP,s[16]=tO,s[17]=tx,s[18]=tk,0!==u&&(s[19]=u,r.length++),r};function m(t,e,r){return new g().mulp(t,e,r)}function g(t,e){this.x=t,this.y=e}Math.imul||(p=d),f.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?p(this,t,e):r<63?d(this,t,e):r<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,f=0;f<r.length-1;f++){var o=i;i=0;for(var a=67108863&n,s=Math.min(f,e.length-1),u=Math.max(0,f-t.length+1);u<=s;u++){var l=f-u,h=(0|t.words[l])*(0|e.words[u]),c=67108863&h;o=o+(h/67108864|0)|0,a=67108863&(c=c+a|0),i+=(o=o+(c>>>26)|0)>>>26,o&=67108863}r.words[f]=a,n=o,o=i}return 0!==n?r.words[f]=n:r.length--,r.strip()}(this,t,e):m(this,t,e)},g.prototype.makeRBT=function(t){for(var e=Array(t),r=f.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},g.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},g.prototype.permute=function(t,e,r,n,i,f){for(var o=0;o<f;o++)n[o]=e[t[o]],i[o]=r[t[o]]},g.prototype.transform=function(t,e,r,n,i,f){this.permute(f,t,e,r,n,i);for(var o=1;o<i;o<<=1)for(var a=o<<1,s=Math.cos(2*Math.PI/a),u=Math.sin(2*Math.PI/a),l=0;l<i;l+=a)for(var h=s,c=u,d=0;d<o;d++){var p=r[l+d],m=n[l+d],g=r[l+d+o],b=n[l+d+o],y=h*g-c*b;b=h*b+c*g,g=y,r[l+d]=p+g,n[l+d]=m+b,r[l+d+o]=p-g,n[l+d+o]=m-b,d!==a&&(y=s*h-u*c,c=s*c+u*h,h=y)}},g.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},g.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},g.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},g.prototype.convert13b=function(t,e,r,i){for(var f=0,o=0;o<e;o++)f+=0|t[o],r[2*o]=8191&f,f>>>=13,r[2*o+1]=8191&f,f>>>=13;for(o=2*e;o<i;++o)r[o]=0;n(0===f),n((-8192&f)==0)},g.prototype.stub=function(t){for(var e=Array(t),r=0;r<t;r++)e[r]=0;return e},g.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),f=this.stub(n),o=Array(n),a=Array(n),s=Array(n),u=Array(n),l=Array(n),h=Array(n),c=r.words;c.length=n,this.convert13b(t.words,t.length,o,n),this.convert13b(e.words,e.length,u,n),this.transform(o,f,a,s,n,i),this.transform(u,f,l,h,n,i);for(var d=0;d<n;d++){var p=a[d]*l[d]-s[d]*h[d];s[d]=a[d]*h[d]+s[d]*l[d],a[d]=p}return this.conjugate(a,s,n),this.transform(a,s,c,f,n,i),this.conjugate(c,f,n),this.normalize13b(c,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},f.prototype.mul=function(t){var e=new f(null);return e.words=Array(this.length+t.length),this.mulTo(t,e)},f.prototype.mulf=function(t){var e=new f(null);return e.words=Array(this.length+t.length),m(this,t,e)},f.prototype.imul=function(t){return this.clone().mulTo(t,this)},f.prototype.imuln=function(t){n("number"==typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,f=(67108863&i)+(67108863&e);e>>=26,e+=(i/67108864|0)+(f>>>26),this.words[r]=67108863&f}return 0!==e&&(this.words[r]=e,this.length++),this},f.prototype.muln=function(t){return this.clone().imuln(t)},f.prototype.sqr=function(){return this.mul(this)},f.prototype.isqr=function(){return this.imul(this.clone())},f.prototype.pow=function(t){var e=function(t){for(var e=Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}(t);if(0===e.length)return new f(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},f.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,f=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(e=0;e<this.length;e++){var a=this.words[e]&f,s=(0|this.words[e])-a<<r;this.words[e]=s|o,o=a>>>26-r}o&&(this.words[e]=o,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},f.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},f.prototype.iushrn=function(t,e,r){n("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var i,f=t%26,o=Math.min((t-f)/26,this.length),a=67108863^67108863>>>f<<f;if(i-=o,i=Math.max(0,i),r){for(var s=0;s<o;s++)r.words[s]=this.words[s];r.length=o}if(0===o);else if(this.length>o)for(this.length-=o,s=0;s<this.length;s++)this.words[s]=this.words[s+o];else this.words[0]=0,this.length=1;var u=0;for(s=this.length-1;s>=0&&(0!==u||s>=i);s--){var l=0|this.words[s];this.words[s]=u<<26-f|l>>>f,u=l&a}return r&&0!==u&&(r.words[r.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},f.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},f.prototype.shln=function(t){return this.clone().ishln(t)},f.prototype.ushln=function(t){return this.clone().iushln(t)},f.prototype.shrn=function(t){return this.clone().ishrn(t)},f.prototype.ushrn=function(t){return this.clone().iushrn(t)},f.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;return!(this.length<=r)&&!!(this.words[r]&1<<e)},f.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;return(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)?this:(0!==e&&r++,this.length=Math.min(r,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<<e),this.strip())},f.prototype.maskn=function(t){return this.clone().imaskn(t)},f.prototype.iaddn=function(t){return(n("number"==typeof t),n(t<67108864),t<0)?this.isubn(-t):0!==this.negative?(1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(t),this.negative=1),this):this._iaddn(t)},f.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[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},f.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<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},f.prototype.addn=function(t){return this.clone().iaddn(t)},f.prototype.subn=function(t){return this.clone().isubn(t)},f.prototype.iabs=function(){return this.negative=0,this},f.prototype.abs=function(){return this.clone().iabs()},f.prototype._ishlnsubmul=function(t,e,r){var i,f,o=t.length+r;this._expand(o);var a=0;for(i=0;i<t.length;i++){f=(0|this.words[i+r])+a;var s=(0|t.words[i])*e;f-=67108863&s,a=(f>>26)-(s/67108864|0),this.words[i+r]=67108863&f}for(;i<this.length-r;i++)a=(f=(0|this.words[i+r])+a)>>26,this.words[i+r]=67108863&f;if(0===a)return this.strip();for(n(-1===a),a=0,i=0;i<this.length;i++)a=(f=-(0|this.words[i])+a)>>26,this.words[i]=67108863&f;return this.negative=1,this.strip()},f.prototype._wordDiv=function(t,e){var r,n=this.length-t.length,i=this.clone(),o=t,a=0|o.words[o.length-1];0!=(n=26-this._countBits(a))&&(o=o.ushln(n),i.iushln(n),a=0|o.words[o.length-1]);var s=i.length-o.length;if("mod"!==e){(r=new f(null)).length=s+1,r.words=Array(r.length);for(var u=0;u<r.length;u++)r.words[u]=0}var l=i.clone()._ishlnsubmul(o,1,s);0===l.negative&&(i=l,r&&(r.words[s]=1));for(var h=s-1;h>=0;h--){var c=(0|i.words[o.length+h])*67108864+(0|i.words[o.length+h-1]);for(c=Math.min(c/a|0,67108863),i._ishlnsubmul(o,c,h);0!==i.negative;)c--,i.negative=0,i._ishlnsubmul(o,1,h),i.isZero()||(i.negative^=1);r&&(r.words[h]=c)}return r&&r.strip(),i.strip(),"div"!==e&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},f.prototype.divmod=function(t,e,r){var i,o,a;return(n(!t.isZero()),this.isZero())?{div:new f(0),mod:new f(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:i,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):(this.negative&t.negative)!=0?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||0>this.cmp(t)?{div:new f(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new f(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new f(this.modn(t.words[0]))}:this._wordDiv(t,e)},f.prototype.div=function(t){return this.divmod(t,"div",!1).div},f.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},f.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},f.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),f=r.cmp(n);return f<0||1===i&&0===f?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},f.prototype.modn=function(t){n(t<=67108863);for(var e=67108864%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},f.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()},f.prototype.divn=function(t){return this.clone().idivn(t)},f.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();for(var i=new f(1),o=new f(0),a=new f(0),s=new f(1),u=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++u;for(var l=r.clone(),h=e.clone();!e.isZero();){for(var c=0,d=1;(e.words[0]&d)==0&&c<26;++c,d<<=1);if(c>0)for(e.iushrn(c);c-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(l),o.isub(h)),i.iushrn(1),o.iushrn(1);for(var p=0,m=1;(r.words[0]&m)==0&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||s.isOdd())&&(a.iadd(l),s.isub(h)),a.iushrn(1),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(a),o.isub(s)):(r.isub(e),a.isub(i),s.isub(o))}return{a:a,b:s,gcd:r.iushln(u)}},f.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e,r=this,i=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var o=new f(1),a=new f(0),s=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var u=0,l=1;(r.words[0]&l)==0&&u<26;++u,l<<=1);if(u>0)for(r.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);for(var h=0,c=1;(i.words[0]&c)==0&&h<26;++h,c<<=1);if(h>0)for(i.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);r.cmp(i)>=0?(r.isub(i),o.isub(a)):(i.isub(r),a.isub(o))}return 0>(e=0===r.cmpn(1)?o:a).cmpn(0)&&e.iadd(t),e},f.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);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var f=e;e=r,r=f}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},f.prototype.invm=function(t){return this.egcd(t).a.umod(t)},f.prototype.isEven=function(){return(1&this.words[0])==0},f.prototype.isOdd=function(){return(1&this.words[0])==1},f.prototype.andln=function(t){return this.words[0]&t},f.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var f=i,o=r;0!==f&&o<this.length;o++){var a=0|this.words[o];a+=f,f=a>>>26,a&=67108863,this.words[o]=a}return 0!==f&&(this.words[o]=f,this.length++),this},f.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},f.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:i<t?-1:1}return 0!==this.negative?0|-e:e},f.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return -1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},f.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return -1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},f.prototype.gtn=function(t){return 1===this.cmpn(t)},f.prototype.gt=function(t){return 1===this.cmp(t)},f.prototype.gten=function(t){return this.cmpn(t)>=0},f.prototype.gte=function(t){return this.cmp(t)>=0},f.prototype.ltn=function(t){return -1===this.cmpn(t)},f.prototype.lt=function(t){return -1===this.cmp(t)},f.prototype.lten=function(t){return 0>=this.cmpn(t)},f.prototype.lte=function(t){return 0>=this.cmp(t)},f.prototype.eqn=function(t){return 0===this.cmpn(t)},f.prototype.eq=function(t){return 0===this.cmp(t)},f.red=function(t){return new A(t)},f.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)},f.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},f.prototype._forceRed=function(t){return this.red=t,this},f.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},f.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},f.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},f.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},f.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},f.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},f.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},f.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},f.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},f.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},f.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},f.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},f.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},f.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 f(e,16),this.n=this.p.bitLength(),this.k=new f(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){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=f._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 S(t){A.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new f(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 f(null);return t.words=Array(Math.ceil(this.n/13)),t},y.prototype.ireduce=function(t){var e,r=t;do this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():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(v,y),v.prototype.split=function(t,e){for(var r=Math.min(t.length,9),n=0;n<r;n++)e.words[n]=t.words[n];if(e.length=r,t.length<=9){t.words[0]=0,t.length=1;return}var i=t.words[9];for(n=10,e.words[e.length++]=4194303&i;n<t.length;n++){var f=0|t.words[n];t.words[n-10]=(4194303&f)<<4|i>>>22,i=f}i>>>=22,t.words[n-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},v.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<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(w,y),i(M,y),i(E,y),E.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=(0|t.words[r])*19+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},f._prime=function(t){var e;if(b[t])return b[t];if("k256"===t)e=new v;else if("p224"===t)e=new w;else if("p192"===t)e=new M;else if("p25519"===t)e=new E;else throw Error("Unknown prime "+t);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((t.negative|e.negative)==0,"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 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},A.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return 0>r.cmpn(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 f(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var a=new f(1).toRed(this),s=a.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new f(2*l*l).toRed(this);0!==this.pow(l,u).cmp(s);)l.redIAdd(s);for(var h=this.pow(l,i),c=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=o;0!==d.cmp(a);){for(var m=d,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g<p);var b=this.pow(h,new f(1).iushln(p-g-1));c=c.redMul(b),h=b.redSqr(),d=d.redMul(h),p=g}return c},A.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},A.prototype.pow=function(t,e){if(e.isZero())return new f(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=Array(16);r[0]=new f(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],o=0,a=0,s=e.bitLength()%26;for(0===s&&(s=26),n=e.length-1;n>=0;n--){for(var u=e.words[n],l=s-1;l>=0;l--){var h=u>>l&1;if(i!==r[0]&&(i=this.sqr(i)),0===h&&0===o){a=0;continue}o<<=1,o|=h,(4==++a||0===n&&0===l)&&(i=this.mul(i,r[o]),a=0,o=0)}s=26}return i},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},f.mont=function(t){return new S(t)},i(S,A),S.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},S.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},S.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),f=i;return i.cmp(this.m)>=0?f=i.isub(this.m):0>i.cmpn(0)&&(f=i.iadd(this.m)),f._forceRed(this)},S.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new f(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),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},S.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},33715:function(t,e,r){e.utils=r(26436),e.common=r(95772),e.sha=r(89041),e.ripemd=r(12949),e.hmac=r(52344),e.sha1=e.sha.sha1,e.sha256=e.sha.sha256,e.sha224=e.sha.sha224,e.sha384=e.sha.sha384,e.sha512=e.sha.sha512,e.ripemd160=e.ripemd.ripemd160},95772:function(t,e,r){"use strict";var n=r(26436),i=r(79746);function f(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}e.BlockHash=f,f.prototype.update=function(t,e){if(t=n.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var r=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-r,t.length),0===this.pending.length&&(this.pending=null),t=n.join32(t,0,t.length-r,this.endian);for(var i=0;i<t.length;i+=this._delta32)this._update(t,i,i+this._delta32)}return this},f.prototype.digest=function(t){return this.update(this._pad()),i(null===this.pending),this._digest(t)},f.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,r=e-(t+this.padLength)%e,n=Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(t<<=3,"big"===this.endian){for(var f=8;f<this.padLength;f++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=t>>>24&255,n[i++]=t>>>16&255,n[i++]=t>>>8&255,n[i++]=255&t}else for(f=8,n[i++]=255&t,n[i++]=t>>>8&255,n[i++]=t>>>16&255,n[i++]=t>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0;f<this.padLength;f++)n[i++]=0;return n}},52344:function(t,e,r){"use strict";var n=r(26436),i=r(79746);function f(t,e,r){if(!(this instanceof f))return new f(t,e,r);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(e,r))}t.exports=f,f.prototype._init=function(t){t.length>this.blockSize&&(t=new this.Hash().update(t).digest()),i(t.length<=this.blockSize);for(var e=t.length;e<this.blockSize;e++)t.push(0);for(e=0;e<t.length;e++)t[e]^=54;for(e=0,this.inner=new this.Hash().update(t);e<t.length;e++)t[e]^=106;this.outer=new this.Hash().update(t)},f.prototype.update=function(t,e){return this.inner.update(t,e),this},f.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)}},12949:function(t,e,r){"use strict";var n=r(26436),i=r(95772),f=n.rotl32,o=n.sum32,a=n.sum32_3,s=n.sum32_4,u=i.BlockHash;function l(){if(!(this instanceof l))return new l;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function h(t,e,r,n){return t<=15?e^r^n:t<=31?e&r|~e&n:t<=47?(e|~r)^n:t<=63?e&n|r&~n:e^(r|~n)}n.inherits(l,u),e.ripemd160=l,l.blockSize=512,l.outSize=160,l.hmacStrength=192,l.padLength=64,l.prototype._update=function(t,e){for(var r=this.h[0],n=this.h[1],i=this.h[2],u=this.h[3],l=this.h[4],g=r,b=n,y=i,v=u,w=l,M=0;M<80;M++){var E,A,S=o(f(s(r,h(M,n,i,u),t[c[M]+e],(E=M)<=15?0:E<=31?1518500249:E<=47?1859775393:E<=63?2400959708:2840853838),p[M]),l);r=l,l=u,u=f(i,10),i=n,n=S,S=o(f(s(g,h(79-M,b,y,v),t[d[M]+e],(A=M)<=15?1352829926:A<=31?1548603684:A<=47?1836072691:A<=63?2053994217:0),m[M]),w),g=w,w=v,v=f(y,10),y=b,b=S}S=a(this.h[1],i,v),this.h[1]=a(this.h[2],u,w),this.h[2]=a(this.h[3],l,g),this.h[3]=a(this.h[4],r,b),this.h[4]=a(this.h[0],n,y),this.h[0]=S},l.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var c=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],d=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],p=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],m=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},89041:function(t,e,r){"use strict";e.sha1=r(84761),e.sha224=r(10799),e.sha256=r(89344),e.sha384=r(80772),e.sha512=r(45900)},84761:function(t,e,r){"use strict";var n=r(26436),i=r(95772),f=r(37038),o=n.rotl32,a=n.sum32,s=n.sum32_5,u=f.ft_1,l=i.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function c(){if(!(this instanceof c))return new c;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=Array(80)}n.inherits(c,l),t.exports=c,c.blockSize=512,c.outSize=160,c.hmacStrength=80,c.padLength=64,c.prototype._update=function(t,e){for(var r=this.W,n=0;n<16;n++)r[n]=t[e+n];for(;n<r.length;n++)r[n]=o(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],f=this.h[1],l=this.h[2],c=this.h[3],d=this.h[4];for(n=0;n<r.length;n++){var p=~~(n/20),m=s(o(i,5),u(p,f,l,c),d,r[n],h[p]);d=c,c=l,l=o(f,30),f=i,i=m}this.h[0]=a(this.h[0],i),this.h[1]=a(this.h[1],f),this.h[2]=a(this.h[2],l),this.h[3]=a(this.h[3],c),this.h[4]=a(this.h[4],d)},c.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},10799:function(t,e,r){"use strict";var n=r(26436),i=r(89344);function f(){if(!(this instanceof f))return new f;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(f,i),t.exports=f,f.blockSize=512,f.outSize=224,f.hmacStrength=192,f.padLength=64,f.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},89344:function(t,e,r){"use strict";var n=r(26436),i=r(95772),f=r(37038),o=r(79746),a=n.sum32,s=n.sum32_4,u=n.sum32_5,l=f.ch32,h=f.maj32,c=f.s0_256,d=f.s1_256,p=f.g0_256,m=f.g1_256,g=i.BlockHash,b=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function y(){if(!(this instanceof y))return new y;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=b,this.W=Array(64)}n.inherits(y,g),t.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(t,e){for(var r=this.W,n=0;n<16;n++)r[n]=t[e+n];for(;n<r.length;n++)r[n]=s(m(r[n-2]),r[n-7],p(r[n-15]),r[n-16]);var i=this.h[0],f=this.h[1],g=this.h[2],b=this.h[3],y=this.h[4],v=this.h[5],w=this.h[6],M=this.h[7];for(o(this.k.length===r.length),n=0;n<r.length;n++){var E=u(M,d(y),l(y,v,w),this.k[n],r[n]),A=a(c(i),h(i,f,g));M=w,w=v,v=y,y=a(b,E),b=g,g=f,f=i,i=a(E,A)}this.h[0]=a(this.h[0],i),this.h[1]=a(this.h[1],f),this.h[2]=a(this.h[2],g),this.h[3]=a(this.h[3],b),this.h[4]=a(this.h[4],y),this.h[5]=a(this.h[5],v),this.h[6]=a(this.h[6],w),this.h[7]=a(this.h[7],M)},y.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},80772:function(t,e,r){"use strict";var n=r(26436),i=r(45900);function f(){if(!(this instanceof f))return new f;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(f,i),t.exports=f,f.blockSize=1024,f.outSize=384,f.hmacStrength=192,f.padLength=128,f.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},45900:function(t,e,r){"use strict";var n=r(26436),i=r(95772),f=r(79746),o=n.rotr64_hi,a=n.rotr64_lo,s=n.shr64_hi,u=n.shr64_lo,l=n.sum64,h=n.sum64_hi,c=n.sum64_lo,d=n.sum64_4_hi,p=n.sum64_4_lo,m=n.sum64_5_hi,g=n.sum64_5_lo,b=i.BlockHash,y=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function v(){if(!(this instanceof v))return new v;b.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=y,this.W=Array(160)}n.inherits(v,b),t.exports=v,v.blockSize=1024,v.outSize=512,v.hmacStrength=192,v.padLength=128,v.prototype._prepareBlock=function(t,e){for(var r=this.W,n=0;n<32;n++)r[n]=t[e+n];for(;n<r.length;n+=2){var i=function(t,e){var r=o(t,e,19)^o(e,t,29)^s(t,e,6);return r<0&&(r+=4294967296),r}(r[n-4],r[n-3]),f=function(t,e){var r=a(t,e,19)^a(e,t,29)^u(t,e,6);return r<0&&(r+=4294967296),r}(r[n-4],r[n-3]),l=r[n-14],h=r[n-13],c=function(t,e){var r=o(t,e,1)^o(t,e,8)^s(t,e,7);return r<0&&(r+=4294967296),r}(r[n-30],r[n-29]),m=function(t,e){var r=a(t,e,1)^a(t,e,8)^u(t,e,7);return r<0&&(r+=4294967296),r}(r[n-30],r[n-29]),g=r[n-32],b=r[n-31];r[n]=d(i,f,l,h,c,m,g,b),r[n+1]=p(i,f,l,h,c,m,g,b)}},v.prototype._update=function(t,e){this._prepareBlock(t,e);var r=this.W,n=this.h[0],i=this.h[1],s=this.h[2],u=this.h[3],d=this.h[4],p=this.h[5],b=this.h[6],y=this.h[7],v=this.h[8],w=this.h[9],M=this.h[10],E=this.h[11],A=this.h[12],S=this.h[13],_=this.h[14],N=this.h[15];f(this.k.length===r.length);for(var T=0;T<r.length;T+=2){var R=_,C=N,I=function(t,e){var r=o(t,e,14)^o(t,e,18)^o(e,t,9);return r<0&&(r+=4294967296),r}(v,w),P=function(t,e){var r=a(t,e,14)^a(t,e,18)^a(e,t,9);return r<0&&(r+=4294967296),r}(v,w),O=function(t,e,r,n,i){var f=t&r^~t&i;return f<0&&(f+=4294967296),f}(v,0,M,0,A,S),x=function(t,e,r,n,i,f){var o=e&n^~e&f;return o<0&&(o+=4294967296),o}(0,w,0,E,0,S),k=this.k[T],F=this.k[T+1],B=r[T],L=r[T+1],D=m(R,C,I,P,O,x,k,F,B,L),U=g(R,C,I,P,O,x,k,F,B,L);R=function(t,e){var r=o(t,e,28)^o(e,t,2)^o(e,t,7);return r<0&&(r+=4294967296),r}(n,i);var G=h(R,C=function(t,e){var r=a(t,e,28)^a(e,t,2)^a(e,t,7);return r<0&&(r+=4294967296),r}(n,i),I=function(t,e,r,n,i){var f=t&r^t&i^r&i;return f<0&&(f+=4294967296),f}(n,0,s,0,d,p),P=function(t,e,r,n,i,f){var o=e&n^e&f^n&f;return o<0&&(o+=4294967296),o}(0,i,0,u,0,p)),z=c(R,C,I,P);_=A,N=S,A=M,S=E,M=v,E=w,v=h(b,y,D,U),w=c(y,y,D,U),b=d,y=p,d=s,p=u,s=n,u=i,n=h(D,U,G,z),i=c(D,U,G,z)}l(this.h,0,n,i),l(this.h,2,s,u),l(this.h,4,d,p),l(this.h,6,b,y),l(this.h,8,v,w),l(this.h,10,M,E),l(this.h,12,A,S),l(this.h,14,_,N)},v.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},37038:function(t,e,r){"use strict";var n=r(26436).rotr32;function i(t,e,r){return t&e^t&r^e&r}e.ft_1=function(t,e,r,n){return 0===t?e&r^~e&n:1===t||3===t?e^r^n:2===t?i(e,r,n):void 0},e.ch32=function(t,e,r){return t&e^~t&r},e.maj32=i,e.p32=function(t,e,r){return t^e^r},e.s0_256=function(t){return n(t,2)^n(t,13)^n(t,22)},e.s1_256=function(t){return n(t,6)^n(t,11)^n(t,25)},e.g0_256=function(t){return n(t,7)^n(t,18)^t>>>3},e.g1_256=function(t){return n(t,17)^n(t,19)^t>>>10}},26436:function(t,e,r){"use strict";var n=r(79746),i=r(35717);function f(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function o(t){return 1===t.length?"0"+t:t}function a(t){if(7===t.length)return"0"+t;if(6===t.length)return"00"+t;if(5===t.length)return"000"+t;if(4===t.length)return"0000"+t;if(3===t.length)return"00000"+t;if(2===t.length)return"000000"+t;if(1===t.length)return"0000000"+t;else return t}e.inherits=i,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"==typeof t){if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/ig,"")).length%2!=0&&(t="0"+t),i=0;i<t.length;i+=2)r.push(parseInt(t[i]+t[i+1],16))}else for(var n=0,i=0;i<t.length;i++){var f,o,a=t.charCodeAt(i);a<128?r[n++]=a:(a<2048?r[n++]=a>>6|192:((f=t,o=i,(64512&f.charCodeAt(o))!=55296||o<0||o+1>=f.length?1:(64512&f.charCodeAt(o+1))!=56320)?r[n++]=a>>12|224:(a=65536+((1023&a)<<10)+(1023&t.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128),r[n++]=a>>6&63|128),r[n++]=63&a|128)}}else for(i=0;i<t.length;i++)r[i]=0|t[i];return r},e.toHex=function(t){for(var e="",r=0;r<t.length;r++)e+=o(t[r].toString(16));return e},e.htonl=f,e.toHex32=function(t,e){for(var r="",n=0;n<t.length;n++){var i=t[n];"little"===e&&(i=f(i)),r+=a(i.toString(16))}return r},e.zero2=o,e.zero8=a,e.join32=function(t,e,r,i){var f,o=r-e;n(o%4==0);for(var a=Array(o/4),s=0,u=e;s<a.length;s++,u+=4)f="big"===i?t[u]<<24|t[u+1]<<16|t[u+2]<<8|t[u+3]:t[u+3]<<24|t[u+2]<<16|t[u+1]<<8|t[u],a[s]=f>>>0;return a},e.split32=function(t,e){for(var r=Array(4*t.length),n=0,i=0;n<t.length;n++,i+=4){var f=t[n];"big"===e?(r[i]=f>>>24,r[i+1]=f>>>16&255,r[i+2]=f>>>8&255,r[i+3]=255&f):(r[i+3]=f>>>24,r[i+2]=f>>>16&255,r[i+1]=f>>>8&255,r[i]=255&f)}return r},e.rotr32=function(t,e){return t>>>e|t<<32-e},e.rotl32=function(t,e){return t<<e|t>>>32-e},e.sum32=function(t,e){return t+e>>>0},e.sum32_3=function(t,e,r){return t+e+r>>>0},e.sum32_4=function(t,e,r,n){return t+e+r+n>>>0},e.sum32_5=function(t,e,r,n,i){return t+e+r+n+i>>>0},e.sum64=function(t,e,r,n){var i=t[e],f=n+t[e+1]>>>0;t[e]=(f<n?1:0)+r+i>>>0,t[e+1]=f},e.sum64_hi=function(t,e,r,n){return(e+n>>>0<e?1:0)+t+r>>>0},e.sum64_lo=function(t,e,r,n){return e+n>>>0},e.sum64_4_hi=function(t,e,r,n,i,f,o,a){var s,u=e;return t+r+i+o+(0+((u=u+n>>>0)<e?1:0)+((u=u+f>>>0)<f?1:0)+((u=u+a>>>0)<a?1:0))>>>0},e.sum64_4_lo=function(t,e,r,n,i,f,o,a){return e+n+f+a>>>0},e.sum64_5_hi=function(t,e,r,n,i,f,o,a,s,u){var l,h=e;return t+r+i+o+s+(0+((h=h+n>>>0)<e?1:0)+((h=h+f>>>0)<f?1:0)+((h=h+a>>>0)<a?1:0)+((h=h+u>>>0)<u?1:0))>>>0},e.sum64_5_lo=function(t,e,r,n,i,f,o,a,s,u){return e+n+f+a+u>>>0},e.rotr64_hi=function(t,e,r){return(e<<32-r|t>>>r)>>>0},e.rotr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0},e.shr64_hi=function(t,e,r){return t>>>r},e.shr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0}},94301:function(t,e,r){r(66477),t.exports=self.fetch.bind(self)},91094:function(t,e,r){var n,i=r(34155);!function(){"use strict";var f="input is invalid type",o="object"==typeof window,a=o?window:{};a.JS_SHA3_NO_WINDOW&&(o=!1);var s=!o&&"object"==typeof self;!a.JS_SHA3_NO_NODE_JS&&"object"==typeof i&&i.versions&&i.versions.node?a=r.g:s&&(a=self);var u=!a.JS_SHA3_NO_COMMON_JS&&t.exports,l=r.amdO,h=!a.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,c="0123456789abcdef".split(""),d=[4,1024,262144,67108864],p=[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],g=[224,256,384,512],b=[128,256],y=["hex","buffer","arrayBuffer","array","digest"],v={128:168,256:136};(a.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),h&&(a.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 w=function(t,e,r){return function(n){return new F(t,e,t).update(n)[r]()}},M=function(t,e,r){return function(n,i){return new F(t,e,i).update(n)[r]()}},E=function(t,e,r){return function(e,n,i,f){return T["cshake"+t].update(e,n,i,f)[r]()}},A=function(t,e,r){return function(e,n,i,f){return T["kmac"+t].update(e,n,i,f)[r]()}},S=function(t,e,r,n){for(var i=0;i<y.length;++i){var f=y[i];t[f]=e(r,n,f)}return t},_=function(t,e){var r=w(t,e,"hex");return r.create=function(){return new F(t,e,t)},r.update=function(t){return r.create().update(t)},S(r,w,t,e)},N=[{name:"keccak",padding:[1,256,65536,16777216],bits:g,createMethod:_},{name:"sha3",padding:[6,1536,393216,100663296],bits:g,createMethod:_},{name:"shake",padding:[31,7936,2031616,520093696],bits:b,createMethod:function(t,e){var r=M(t,e,"hex");return r.create=function(r){return new F(t,e,r)},r.update=function(t,e){return r.create(e).update(t)},S(r,M,t,e)}},{name:"cshake",padding:d,bits:b,createMethod:function(t,e){var r=v[t],n=E(t,e,"hex");return n.create=function(n,i,f){return i||f?new F(t,e,n).bytepad([i,f],r):T["shake"+t].create(n)},n.update=function(t,e,r,i){return n.create(e,r,i).update(t)},S(n,E,t,e)}},{name:"kmac",padding:d,bits:b,createMethod:function(t,e){var r=v[t],n=A(t,e,"hex");return n.create=function(n,i,f){return new B(t,e,i).bytepad(["KMAC",f],r).bytepad([n],r)},n.update=function(t,e,r,i){return n.create(t,r,i).update(e)},S(n,A,t,e)}}],T={},R=[],C=0;C<N.length;++C)for(var I=N[C],P=I.bits,O=0;O<P.length;++O){var x=I.name+"_"+P[O];if(R.push(x),T[x]=I.createMethod(P[O],I.padding),"sha3"!==I.name){var k=I.name+P[O];R.push(k),T[k]=T[x]}}function F(t,e,r){this.blocks=[],this.s=[],this.padding=e,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(t<<1)>>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 B(t,e,r){F.call(this,t,e,r)}F.prototype.update=function(t){if(this.finalized)throw Error("finalize already called");var e,r=typeof t;if("string"!==r){if("object"===r){if(null===t)throw Error(f);if(h&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!h||!ArrayBuffer.isView(t)))throw Error(f)}else throw Error(f);e=!0}for(var n,i,o=this.blocks,a=this.byteCount,s=t.length,u=this.blockCount,l=0,c=this.s;l<s;){if(this.reset)for(n=1,this.reset=!1,o[0]=this.block;n<u+1;++n)o[n]=0;if(e)for(n=this.start;l<s&&n<a;++l)o[n>>2]|=t[l]<<p[3&n++];else for(n=this.start;l<s&&n<a;++l)(i=t.charCodeAt(l))<128?o[n>>2]|=i<<p[3&n++]:(i<2048?o[n>>2]|=(192|i>>6)<<p[3&n++]:(i<55296||i>=57344?o[n>>2]|=(224|i>>12)<<p[3&n++]:(i=65536+((1023&i)<<10|1023&t.charCodeAt(++l)),o[n>>2]|=(240|i>>18)<<p[3&n++],o[n>>2]|=(128|i>>12&63)<<p[3&n++]),o[n>>2]|=(128|i>>6&63)<<p[3&n++]),o[n>>2]|=(128|63&i)<<p[3&n++]);if(this.lastByteIndex=n,n>=a){for(this.start=n-a,this.block=o[u],n=0;n<u;++n)c[n]^=o[n];L(c),this.reset=!0}else this.start=n}return this},F.prototype.encode=function(t,e){var r=255&t,n=1,i=[r];for(t>>=8,r=255&t;r>0;)i.unshift(r),t>>=8,r=255&t,++n;return e?i.push(n):i.unshift(n),this.update(i),i.length},F.prototype.encodeString=function(t){var e,r=typeof t;if("string"!==r){if("object"===r){if(null===t)throw Error(f);if(h&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!h||!ArrayBuffer.isView(t)))throw Error(f)}else throw Error(f);e=!0}var n=0,i=t.length;if(e)n=i;else for(var o=0;o<t.length;++o){var a=t.charCodeAt(o);a<128?n+=1:a<2048?n+=2:a<55296||a>=57344?n+=3:(a=65536+((1023&a)<<10|1023&t.charCodeAt(++o)),n+=4)}return n+=this.encode(8*n),this.update(t),n},F.prototype.bytepad=function(t,e){for(var r=this.encode(e),n=0;n<t.length;++n)r+=this.encodeString(t[n]);var i=e-r%e,f=[];return f.length=i,this.update(f),this},F.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex,r=this.blockCount,n=this.s;if(t[e>>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(e=1,t[0]=t[r];e<r+1;++e)t[e]=0;for(t[r-1]|=2147483648,e=0;e<r;++e)n[e]^=t[e];L(n)}},F.prototype.toString=F.prototype.hex=function(){this.finalize();for(var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,f=0,o=0,a="";o<n;){for(f=0;f<e&&o<n;++f,++o)a+=c[(t=r[f])>>4&15]+c[15&t]+c[t>>12&15]+c[t>>8&15]+c[t>>20&15]+c[t>>16&15]+c[t>>28&15]+c[t>>24&15];o%e==0&&(L(r),f=0)}return i&&(a+=c[(t=r[f])>>4&15]+c[15&t],i>1&&(a+=c[t>>12&15]+c[t>>8&15]),i>2&&(a+=c[t>>20&15]+c[t>>16&15])),a},F.prototype.arrayBuffer=function(){this.finalize();for(var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,f=0,o=0,a=this.outputBits>>3,s=new Uint32Array(t=new ArrayBuffer(i?n+1<<2:a));o<n;){for(f=0;f<e&&o<n;++f,++o)s[o]=r[f];o%e==0&&L(r)}return i&&(s[f]=r[f],t=t.slice(0,a)),t},F.prototype.buffer=F.prototype.arrayBuffer,F.prototype.digest=F.prototype.array=function(){this.finalize();for(var t,e,r=this.blockCount,n=this.s,i=this.outputBlocks,f=this.extraBytes,o=0,a=0,s=[];a<i;){for(o=0;o<r&&a<i;++o,++a)t=a<<2,e=n[o],s[t]=255&e,s[t+1]=e>>8&255,s[t+2]=e>>16&255,s[t+3]=e>>24&255;a%r==0&&L(n)}return f&&(t=a<<2,e=n[o],s[t]=255&e,f>1&&(s[t+1]=e>>8&255),f>2&&(s[t+2]=e>>16&255)),s},B.prototype=new F,B.prototype.finalize=function(){return this.encode(this.outputBits,!0),F.prototype.finalize.call(this)};var L=function(t){var e,r,n,i,f,o,a,s,u,l,h,c,d,p,g,b,y,v,w,M,E,A,S,_,N,T,R,C,I,P,O,x,k,F,B,L,D,U,G,z,J,j,H,V,X,q,Z,K,W,Y,Q,$,tt,te,tr,tn,ti,tf,to,ta,ts,tu,tl;for(n=0;n<48;n+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],f=t[1]^t[11]^t[21]^t[31]^t[41],o=t[2]^t[12]^t[22]^t[32]^t[42],a=t[3]^t[13]^t[23]^t[33]^t[43],s=t[4]^t[14]^t[24]^t[34]^t[44],u=t[5]^t[15]^t[25]^t[35]^t[45],l=t[6]^t[16]^t[26]^t[36]^t[46],h=t[7]^t[17]^t[27]^t[37]^t[47],c=t[8]^t[18]^t[28]^t[38]^t[48],d=t[9]^t[19]^t[29]^t[39]^t[49],e=c^(o<<1|a>>>31),r=d^(a<<1|o>>>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^(s<<1|u>>>31),r=f^(u<<1|s>>>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=o^(l<<1|h>>>31),r=a^(h<<1|l>>>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=s^(c<<1|d>>>31),r=u^(d<<1|c>>>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=l^(i<<1|f>>>31),r=h^(f<<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],g=t[1],q=t[11]<<4|t[10]>>>28,Z=t[10]<<4|t[11]>>>28,C=t[20]<<3|t[21]>>>29,I=t[21]<<3|t[20]>>>29,ta=t[31]<<9|t[30]>>>23,ts=t[30]<<9|t[31]>>>23,j=t[40]<<18|t[41]>>>14,H=t[41]<<18|t[40]>>>14,F=t[2]<<1|t[3]>>>31,B=t[3]<<1|t[2]>>>31,b=t[13]<<12|t[12]>>>20,y=t[12]<<12|t[13]>>>20,K=t[22]<<10|t[23]>>>22,W=t[23]<<10|t[22]>>>22,P=t[33]<<13|t[32]>>>19,O=t[32]<<13|t[33]>>>19,tu=t[42]<<2|t[43]>>>30,tl=t[43]<<2|t[42]>>>30,te=t[5]<<30|t[4]>>>2,tr=t[4]<<30|t[5]>>>2,L=t[14]<<6|t[15]>>>26,D=t[15]<<6|t[14]>>>26,v=t[25]<<11|t[24]>>>21,w=t[24]<<11|t[25]>>>21,Y=t[34]<<15|t[35]>>>17,Q=t[35]<<15|t[34]>>>17,x=t[45]<<29|t[44]>>>3,k=t[44]<<29|t[45]>>>3,_=t[6]<<28|t[7]>>>4,N=t[7]<<28|t[6]>>>4,tn=t[17]<<23|t[16]>>>9,ti=t[16]<<23|t[17]>>>9,U=t[26]<<25|t[27]>>>7,G=t[27]<<25|t[26]>>>7,M=t[36]<<21|t[37]>>>11,E=t[37]<<21|t[36]>>>11,$=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,V=t[8]<<27|t[9]>>>5,X=t[9]<<27|t[8]>>>5,T=t[18]<<20|t[19]>>>12,R=t[19]<<20|t[18]>>>12,tf=t[29]<<7|t[28]>>>25,to=t[28]<<7|t[29]>>>25,z=t[38]<<8|t[39]>>>24,J=t[39]<<8|t[38]>>>24,A=t[48]<<14|t[49]>>>18,S=t[49]<<14|t[48]>>>18,t[0]=p^~b&v,t[1]=g^~y&w,t[10]=_^~T&C,t[11]=N^~R&I,t[20]=F^~L&U,t[21]=B^~D&G,t[30]=V^~q&K,t[31]=X^~Z&W,t[40]=te^~tn&tf,t[41]=tr^~ti&to,t[2]=b^~v&M,t[3]=y^~w&E,t[12]=T^~C&P,t[13]=R^~I&O,t[22]=L^~U&z,t[23]=D^~G&J,t[32]=q^~K&Y,t[33]=Z^~W&Q,t[42]=tn^~tf&ta,t[43]=ti^~to&ts,t[4]=v^~M&A,t[5]=w^~E&S,t[14]=C^~P&x,t[15]=I^~O&k,t[24]=U^~z&j,t[25]=G^~J&H,t[34]=K^~Y&$,t[35]=W^~Q&tt,t[44]=tf^~ta&tu,t[45]=to^~ts&tl,t[6]=M^~A&p,t[7]=E^~S&g,t[16]=P^~x&_,t[17]=O^~k&N,t[26]=z^~j&F,t[27]=J^~H&B,t[36]=Y^~$&V,t[37]=Q^~tt&X,t[46]=ta^~tu&te,t[47]=ts^~tl&tr,t[8]=A^~p&b,t[9]=S^~g&y,t[18]=x^~_&T,t[19]=k^~N&R,t[28]=j^~F&L,t[29]=H^~B&D,t[38]=$^~V&q,t[39]=tt^~X&Z,t[48]=tu^~te&tn,t[49]=tl^~tr&ti,t[0]^=m[n],t[1]^=m[n+1]};if(u)t.exports=T;else{for(C=0;C<R.length;++C)a[R[C]]=T[R[C]];l&&void 0!==(n=(function(){return T}).call(e,r,e,t))&&(t.exports=n)}}()},1989:function(t,e,r){var n=r(51789),i=r(80401),f=r(57667),o=r(21327),a=r(81866);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=i,s.prototype.get=f,s.prototype.has=o,s.prototype.set=a,t.exports=s},38407:function(t,e,r){var n=r(27040),i=r(14125),f=r(82117),o=r(67518),a=r(54705);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=i,s.prototype.get=f,s.prototype.has=o,s.prototype.set=a,t.exports=s},57071:function(t,e,r){var n=r(10852)(r(55639),"Map");t.exports=n},83369:function(t,e,r){var n=r(24785),i=r(11285),f=r(96e3),o=r(49916),a=r(95265);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=i,s.prototype.get=f,s.prototype.has=o,s.prototype.set=a,t.exports=s},46384:function(t,e,r){var n=r(38407),i=r(37465),f=r(63779),o=r(67599),a=r(44758),s=r(34309);function u(t){var e=this.__data__=new n(t);this.size=e.size}u.prototype.clear=i,u.prototype.delete=f,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exports=u},62705:function(t,e,r){var n=r(55639).Symbol;t.exports=n},11149:function(t,e,r){var n=r(55639).Uint8Array;t.exports=n},96874:function(t){t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},14636:function(t,e,r){var n=r(22545),i=r(35694),f=r(1469),o=r(44144),a=r(65776),s=r(36719),u=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=f(t),l=!r&&i(t),h=!r&&!l&&o(t),c=!r&&!l&&!h&&s(t),d=r||l||h||c,p=d?n(t.length,String):[],m=p.length;for(var g in t)(e||u.call(t,g))&&!(d&&("length"==g||h&&("offset"==g||"parent"==g)||c&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||a(g,m)))&&p.push(g);return p}},86556:function(t,e,r){var n=r(89465),i=r(77813);t.exports=function(t,e,r){(void 0===r||i(t[e],r))&&(void 0!==r||e in t)||n(t,e,r)}},34865:function(t,e,r){var n=r(89465),i=r(77813),f=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){var o=t[e];f.call(t,e)&&i(o,r)&&(void 0!==r||e in t)||n(t,e,r)}},18470:function(t,e,r){var n=r(77813);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return -1}},89465:function(t,e,r){var n=r(38777);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},3118:function(t,e,r){var n=r(13218),i=Object.create,f=function(){function t(){}return function(e){if(!n(e))return{};if(i)return i(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();t.exports=f},28483:function(t,e,r){var n=r(25063)();t.exports=n},44239:function(t,e,r){var n=r(62705),i=r(89607),f=r(2333),o=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":o&&o in Object(t)?i(t):f(t)}},9454:function(t,e,r){var n=r(44239),i=r(37005);t.exports=function(t){return i(t)&&"[object Arguments]"==n(t)}},28458:function(t,e,r){var n=r(23560),i=r(15346),f=r(13218),o=r(80346),a=/^\[object .+?Constructor\]$/,s=Object.prototype,u=Function.prototype.toString,l=s.hasOwnProperty,h=RegExp("^"+u.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!f(t)||i(t))&&(n(t)?h:a).test(o(t))}},38749:function(t,e,r){var n=r(44239),i=r(41780),f=r(37005),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,t.exports=function(t){return f(t)&&i(t.length)&&!!o[n(t)]}},10313:function(t,e,r){var n=r(13218),i=r(25726),f=r(33498),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return f(t);var e=i(t),r=[];for(var a in t)"constructor"==a&&(e||!o.call(t,a))||r.push(a);return r}},42980:function(t,e,r){var n=r(46384),i=r(86556),f=r(28483),o=r(59783),a=r(13218),s=r(81704),u=r(36390);t.exports=function t(e,r,l,h,c){e!==r&&f(r,function(f,s){if(c||(c=new n),a(f))o(e,r,s,l,t,h,c);else{var d=h?h(u(e,s),f,s+"",e,r,c):void 0;void 0===d&&(d=f),i(e,s,d)}},s)}},59783:function(t,e,r){var n=r(86556),i=r(64626),f=r(77133),o=r(278),a=r(38517),s=r(35694),u=r(1469),l=r(29246),h=r(44144),c=r(23560),d=r(13218),p=r(68630),m=r(36719),g=r(36390),b=r(59881);t.exports=function(t,e,r,y,v,w,M){var E=g(t,r),A=g(e,r),S=M.get(A);if(S){n(t,r,S);return}var _=w?w(E,A,r+"",t,e,M):void 0,N=void 0===_;if(N){var T=u(A),R=!T&&h(A),C=!T&&!R&&m(A);_=A,T||R||C?u(E)?_=E:l(E)?_=o(E):R?(N=!1,_=i(A,!0)):C?(N=!1,_=f(A,!0)):_=[]:p(A)||s(A)?(_=E,s(E)?_=b(E):(!d(E)||c(E))&&(_=a(A))):N=!1}N&&(M.set(A,_),v(_,A,y,w,M),M.delete(A)),n(t,r,_)}},5976:function(t,e,r){var n=r(6557),i=r(45357),f=r(30061);t.exports=function(t,e){return f(i(t,e,n),t+"")}},56560:function(t,e,r){var n=r(75703),i=r(38777),f=r(6557),o=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:f;t.exports=o},22545:function(t){t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},7518:function(t){t.exports=function(t){return function(e){return t(e)}}},74318:function(t,e,r){var n=r(11149);t.exports=function(t){var e=new t.constructor(t.byteLength);return new n(e).set(new n(t)),e}},64626:function(t,e,r){t=r.nmd(t);var n=r(55639),i=e&&!e.nodeType&&e,f=i&&t&&!t.nodeType&&t,o=f&&f.exports===i?n.Buffer:void 0,a=o?o.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var r=t.length,n=a?a(r):new t.constructor(r);return t.copy(n),n}},77133:function(t,e,r){var n=r(74318);t.exports=function(t,e){var r=e?n(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}},278:function(t){t.exports=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}},98363:function(t,e,r){var n=r(34865),i=r(89465);t.exports=function(t,e,r,f){var o=!r;r||(r={});for(var a=-1,s=e.length;++a<s;){var u=e[a],l=f?f(r[u],t[u],u,r,t):void 0;void 0===l&&(l=t[u]),o?i(r,u,l):n(r,u,l)}return r}},14429:function(t,e,r){var n=r(55639)["__core-js_shared__"];t.exports=n},21463:function(t,e,r){var n=r(5976),i=r(16612);t.exports=function(t){return n(function(e,r){var n=-1,f=r.length,o=f>1?r[f-1]:void 0,a=f>2?r[2]:void 0;for(o=t.length>3&&"function"==typeof o?(f--,o):void 0,a&&i(r[0],r[1],a)&&(o=f<3?void 0:o,f=1),e=Object(e);++n<f;){var s=r[n];s&&t(e,s,n,o)}return e})}},25063:function(t){t.exports=function(t){return function(e,r,n){for(var i=-1,f=Object(e),o=n(e),a=o.length;a--;){var s=o[t?a:++i];if(!1===r(f[s],s,f))break}return e}}},38777:function(t,e,r){var n=r(10852),i=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},31957:function(t,e,r){var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},45050:function(t,e,r){var n=r(37019);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},10852:function(t,e,r){var n=r(28458),i=r(47801);t.exports=function(t,e){var r=i(t,e);return n(r)?r:void 0}},85924:function(t,e,r){var n=r(5569)(Object.getPrototypeOf,Object);t.exports=n},89607:function(t,e,r){var n=r(62705),i=Object.prototype,f=i.hasOwnProperty,o=i.toString,a=n?n.toStringTag:void 0;t.exports=function(t){var e=f.call(t,a),r=t[a];try{t[a]=void 0;var n=!0}catch(t){}var i=o.call(t);return n&&(e?t[a]=r:delete t[a]),i}},47801:function(t){t.exports=function(t,e){return null==t?void 0:t[e]}},51789:function(t,e,r){var n=r(94536);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},80401:function(t){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},57667:function(t,e,r){var n=r(94536),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return i.call(e,t)?e[t]:void 0}},21327:function(t,e,r){var n=r(94536),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:i.call(e,t)}},81866:function(t,e,r){var n=r(94536);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},38517:function(t,e,r){var n=r(3118),i=r(85924),f=r(25726);t.exports=function(t){return"function"!=typeof t.constructor||f(t)?{}:n(i(t))}},65776:function(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},16612:function(t,e,r){var n=r(77813),i=r(98612),f=r(65776),o=r(13218);t.exports=function(t,e,r){if(!o(r))return!1;var a=typeof e;return("number"==a?!!(i(r)&&f(e,r.length)):"string"==a&&e in r)&&n(r[e],t)}},37019:function(t){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},15346:function(t,e,r){var n,i=r(14429),f=(n=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!f&&f in t}},25726:function(t){var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},27040:function(t){t.exports=function(){this.__data__=[],this.size=0}},14125:function(t,e,r){var n=r(18470),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0)&&(r==e.length-1?e.pop():i.call(e,r,1),--this.size,!0)}},82117:function(t,e,r){var n=r(18470);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},67518:function(t,e,r){var n=r(18470);t.exports=function(t){return n(this.__data__,t)>-1}},54705:function(t,e,r){var n=r(18470);t.exports=function(t,e){var r=this.__data__,i=n(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}},24785:function(t,e,r){var n=r(1989),i=r(38407),f=r(57071);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(f||i),string:new n}}},11285:function(t,e,r){var n=r(45050);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},96e3:function(t,e,r){var n=r(45050);t.exports=function(t){return n(this,t).get(t)}},49916:function(t,e,r){var n=r(45050);t.exports=function(t){return n(this,t).has(t)}},95265:function(t,e,r){var n=r(45050);t.exports=function(t,e){var r=n(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this}},94536:function(t,e,r){var n=r(10852)(Object,"create");t.exports=n},33498:function(t){t.exports=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}},31167:function(t,e,r){t=r.nmd(t);var n=r(31957),i=e&&!e.nodeType&&e,f=i&&t&&!t.nodeType&&t,o=f&&f.exports===i&&n.process,a=function(){try{var t=f&&f.require&&f.require("util").types;if(t)return t;return o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=a},2333:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5569:function(t){t.exports=function(t,e){return function(r){return t(e(r))}}},45357:function(t,e,r){var n=r(96874),i=Math.max;t.exports=function(t,e,r){return e=i(void 0===e?t.length-1:e,0),function(){for(var f=arguments,o=-1,a=i(f.length-e,0),s=Array(a);++o<a;)s[o]=f[e+o];o=-1;for(var u=Array(e+1);++o<e;)u[o]=f[o];return u[e]=r(s),n(t,this,u)}}},55639:function(t,e,r){var n=r(31957),i="object"==typeof self&&self&&self.Object===Object&&self,f=n||i||Function("return this")();t.exports=f},36390:function(t){t.exports=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}},30061:function(t,e,r){var n=r(56560),i=r(21275)(n);t.exports=i},21275:function(t){var e=Date.now;t.exports=function(t){var r=0,n=0;return function(){var i=e(),f=16-(i-n);if(n=i,f>0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}},37465:function(t,e,r){var n=r(38407);t.exports=function(){this.__data__=new n,this.size=0}},63779:function(t){t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},67599:function(t){t.exports=function(t){return this.__data__.get(t)}},44758:function(t){t.exports=function(t){return this.__data__.has(t)}},34309:function(t,e,r){var n=r(38407),i=r(57071),f=r(83369);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var o=r.__data__;if(!i||o.length<199)return o.push([t,e]),this.size=++r.size,this;r=this.__data__=new f(o)}return r.set(t,e),this.size=r.size,this}},80346:function(t){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},75703:function(t){t.exports=function(t){return function(){return t}}},77813:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},6557:function(t){t.exports=function(t){return t}},35694:function(t,e,r){var n=r(9454),i=r(37005),f=Object.prototype,o=f.hasOwnProperty,a=f.propertyIsEnumerable,s=n(function(){return arguments}())?n:function(t){return i(t)&&o.call(t,"callee")&&!a.call(t,"callee")};t.exports=s},1469:function(t){var e=Array.isArray;t.exports=e},98612:function(t,e,r){var n=r(23560),i=r(41780);t.exports=function(t){return null!=t&&i(t.length)&&!n(t)}},29246:function(t,e,r){var n=r(98612),i=r(37005);t.exports=function(t){return i(t)&&n(t)}},44144:function(t,e,r){t=r.nmd(t);var n=r(55639),i=r(95062),f=e&&!e.nodeType&&e,o=f&&t&&!t.nodeType&&t,a=o&&o.exports===f?n.Buffer:void 0,s=a?a.isBuffer:void 0;t.exports=s||i},23560:function(t,e,r){var n=r(44239),i=r(13218);t.exports=function(t){if(!i(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},41780:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},13218:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},37005:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},68630:function(t,e,r){var n=r(44239),i=r(85924),f=r(37005),o=Object.prototype,a=Function.prototype.toString,s=o.hasOwnProperty,u=a.call(Object);t.exports=function(t){if(!f(t)||"[object Object]"!=n(t))return!1;var e=i(t);if(null===e)return!0;var r=s.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&a.call(r)==u}},36719:function(t,e,r){var n=r(38749),i=r(7518),f=r(31167),o=f&&f.isTypedArray,a=o?i(o):n;t.exports=a},81704:function(t,e,r){var n=r(14636),i=r(10313),f=r(98612);t.exports=function(t){return f(t)?n(t,!0):i(t)}},82492:function(t,e,r){var n=r(42980),i=r(21463)(function(t,e,r){n(t,e,r)});t.exports=i},95062:function(t){t.exports=function(){return!1}},59881:function(t,e,r){var n=r(98363),i=r(81704);t.exports=function(t){return n(t,i(t))}},79746:function(t){function e(t,e){if(!t)throw Error(e||"Assertion failed")}t.exports=e,e.equal=function(t,e,r){if(t!=e)throw Error(r||"Assertion failed: "+t+" != "+e)}},98878:function(t,e,r){"use strict";r(67294);var n=r(33779),i=r(85893);e.Z=(0,n.Z)((0,i.jsx)("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub")},99589:function(t,e,r){"use strict";var n=r(33779),i=r(85893);e.Z=(0,n.Z)((0,i.jsx)("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"InfoOutlined")},70302:function(t,e,r){"use strict";r.d(e,{Z:function(){return y}});var n=r(87462),i=r(63366),f=r(67294),o=function(){for(var t,e,r=0,n="",i=arguments.length;r<i;r++)(t=arguments[r])&&(e=function t(e){var r,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e){if(Array.isArray(e)){var f=e.length;for(r=0;r<f;r++)e[r]&&(n=t(e[r]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n)}return i}(t))&&(n&&(n+=" "),n+=e);return n},a=r(99431),s=r(86523),u=r(39707),l=r(96682),h=r(85893);let c=["className","component"];var d=r(37078),p=r(90034),m=r(97783),g=(0,r(1588).Z)("MuiBox",["root"]),b=(0,p.Z)(),y=function(t={}){let{themeId:e,defaultTheme:r,defaultClassName:d="MuiBox-root",generateClassName:p}=t,m=(0,a.default)("div",{shouldForwardProp:t=>"theme"!==t&&"sx"!==t&&"as"!==t})(s.Z);return f.forwardRef(function(t,f){let a=(0,l.Z)(r),s=(0,u.Z)(t),{className:g,component:b="div"}=s,y=(0,i.Z)(s,c);return(0,h.jsx)(m,(0,n.Z)({as:b,ref:f,className:o(g,p?p(d):d),theme:e&&a[e]||a},y))})}({themeId:m.Z,defaultTheme:b,defaultClassName:g.root,generateClassName:d.Z.generate})},8451:function(t,e,r){"use strict";r.d(e,{Z:function(){return E}});var n=r(59499),i=r(63366),f=r(87462),o=r(67294),a=r(49208),s=r(94780),u=r(2101),l=r(73736),h=r(43316),c=r(163),d=r(95409),p=r(1588),m=r(34867);function g(t){return(0,m.ZP)("MuiIconButton",t)}var b=(0,p.Z)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),y=r(85893),v=["edge","children","className","color","disabled","disableFocusRipple","size"],w=function(t){var e=t.classes,r=t.disabled,n=t.color,i=t.edge,f=t.size,o={root:["root",r&&"disabled","default"!==n&&"color".concat((0,d.Z)(n)),i&&"edge".concat((0,d.Z)(i)),"size".concat((0,d.Z)(f))]};return(0,s.Z)(o,g,e)},M=(0,l.ZP)(c.Z,{name:"MuiIconButton",slot:"Root",overridesResolver:function(t,e){var r=t.ownerState;return[e.root,"default"!==r.color&&e["color".concat((0,d.Z)(r.color))],r.edge&&e["edge".concat((0,d.Z)(r.edge))],e["size".concat((0,d.Z)(r.size))]]}})(function(t){var e=t.theme,r=t.ownerState;return(0,f.Z)({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!r.disableRipple&&{"&:hover":{backgroundColor:e.vars?"rgba(".concat(e.vars.palette.action.activeChannel," / ").concat(e.vars.palette.action.hoverOpacity,")"):(0,u.Fq)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===r.edge&&{marginLeft:"small"===r.size?-3:-12},"end"===r.edge&&{marginRight:"small"===r.size?-3:-12})},function(t){var e,r=t.theme,i=t.ownerState,o=null==(e=(r.vars||r).palette)?void 0:e[i.color];return(0,f.Z)({},"inherit"===i.color&&{color:"inherit"},"inherit"!==i.color&&"default"!==i.color&&(0,f.Z)({color:null==o?void 0:o.main},!i.disableRipple&&{"&:hover":(0,f.Z)({},o&&{backgroundColor:r.vars?"rgba(".concat(o.mainChannel," / ").concat(r.vars.palette.action.hoverOpacity,")"):(0,u.Fq)(o.main,r.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===i.size&&{padding:5,fontSize:r.typography.pxToRem(18)},"large"===i.size&&{padding:12,fontSize:r.typography.pxToRem(28)},(0,n.Z)({},"&.".concat(b.disabled),{backgroundColor:"transparent",color:(r.vars||r).palette.action.disabled}))}),E=o.forwardRef(function(t,e){var r=(0,h.i)({props:t,name:"MuiIconButton"}),n=r.edge,o=r.children,s=r.className,u=r.color,l=r.disabled,c=void 0!==l&&l,d=r.disableFocusRipple,p=void 0!==d&&d,m=r.size,g=(0,i.Z)(r,v),b=(0,f.Z)({},r,{edge:void 0!==n&&n,color:void 0===u?"default":u,disabled:c,disableFocusRipple:p,size:void 0===m?"medium":m}),E=w(b);return(0,y.jsx)(M,(0,f.Z)({className:(0,a.Z)(E.root,s),centerRipple:!0,focusRipple:!p,disabled:c,ref:e},g,{ownerState:b,children:o}))})},79986:function(t,e,r){"use strict";r.d(e,{Z:function(){return th}});var n=r(17674),i=r(59499),f=r(63366),o=r(87462),a=r(67294),s=r(49208),u=r(46271),l=r(10238),h=r(94780),c=r(2101),d=r(82056),p=r(73736),m=r(58679),g=r(43316),b=r(95409),y=r(8662),v=r(32889),w=r(27277),M=r(85893),E=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function A(t){return"scale(".concat(t,", ").concat(Math.pow(t,2),")")}var S={entering:{opacity:1,transform:A(1)},entered:{opacity:1,transform:"none"}},_="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),N=a.forwardRef(function(t,e){var r=t.addEndListener,n=t.appear,i=t.children,s=t.easing,l=t.in,h=t.onEnter,c=t.onEntered,d=t.onEntering,p=t.onExit,g=t.onExited,b=t.onExiting,N=t.style,T=t.timeout,R=void 0===T?"auto":T,C=t.TransitionComponent,I=void 0===C?y.ZP:C,P=(0,f.Z)(t,E),O=(0,u.Z)(),x=a.useRef(),k=(0,m.Z)(),F=a.useRef(null),B=(0,w.Z)(F,i.ref,e),L=function(t){return function(e){if(t){var r=F.current;void 0===e?t(r):t(r,e)}}},D=L(d),U=L(function(t,e){(0,v.n)(t);var r,n=(0,v.C)({style:N,timeout:R,easing:s},{mode:"enter"}),i=n.duration,f=n.delay,o=n.easing;"auto"===R?(r=k.transitions.getAutoHeightDuration(t.clientHeight),x.current=r):r=i,t.style.transition=[k.transitions.create("opacity",{duration:r,delay:f}),k.transitions.create("transform",{duration:_?r:.666*r,delay:f,easing:o})].join(","),h&&h(t,e)}),G=L(c),z=L(b),J=L(function(t){var e,r=(0,v.C)({style:N,timeout:R,easing:s},{mode:"exit"}),n=r.duration,i=r.delay,f=r.easing;"auto"===R?(e=k.transitions.getAutoHeightDuration(t.clientHeight),x.current=e):e=n,t.style.transition=[k.transitions.create("opacity",{duration:e,delay:i}),k.transitions.create("transform",{duration:_?e:.666*e,delay:_?i:i||.333*e,easing:f})].join(","),t.style.opacity=0,t.style.transform=A(.75),p&&p(t)}),j=L(g);return(0,M.jsx)(I,(0,o.Z)({appear:void 0===n||n,in:l,nodeRef:F,onEnter:U,onEntered:G,onEntering:D,onExit:J,onExited:j,onExiting:z,addEndListener:function(t){"auto"===R&&O.start(x.current||0,t),r&&r(F.current,t)},timeout:"auto"===R?null:R},P,{children:function(t,e){return a.cloneElement(i,(0,o.Z)({style:(0,o.Z)({opacity:0,transform:A(.75),visibility:"exited"!==t||l?void 0:"hidden"},S[t],N,i.props.style),ref:B},e))}}))});N.muiSupportAuto=!0;var T=r(33703),R=r(73546),C=r(82690),I=r(95551),P=r(78385),O=r(34867);let x="base";function k(t,e){let r=O._v[e];return r?`${x}--${r}`:`${x}-${t}-${e}`}let F="Popper";function B(t){return k(F,t)}!function(t,e){let r={};e.forEach(e=>{r[e]=k(t,e)})}(F,["root"]);var L=r(7293);let D=a.createContext({disableDefaultClasses:!1}),U=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],G=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function z(t){return"function"==typeof t?t():t}let J=()=>(0,h.Z)({root:["root"]},function(t){let{disableDefaultClasses:e}=a.useContext(D);return r=>e?"":t(r)}(B)),j={},H=a.forwardRef(function(t,e){var r;let{anchorEl:n,children:i,direction:s,disablePortal:u,modifiers:l,open:h,placement:c,popperOptions:d,popperRef:p,slotProps:m={},slots:g={},TransitionProps:b}=t,y=(0,f.Z)(t,U),v=a.useRef(null),w=(0,T.Z)(v,e),E=a.useRef(null),A=(0,T.Z)(E,p),S=a.useRef(A);(0,R.Z)(()=>{S.current=A},[A]),a.useImperativeHandle(p,()=>E.current,[]);let _=function(t,e){if("ltr"===e)return t;switch(t){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return t}}(c,s),[N,C]=a.useState(_),[P,O]=a.useState(z(n));a.useEffect(()=>{E.current&&E.current.forceUpdate()}),a.useEffect(()=>{n&&O(z(n))},[n]),(0,R.Z)(()=>{if(!P||!h)return;let t=t=>{C(t.placement)},e=[{name:"preventOverflow",options:{altBoundary:u}},{name:"flip",options:{altBoundary:u}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{t(e)}}];null!=l&&(e=e.concat(l)),d&&null!=d.modifiers&&(e=e.concat(d.modifiers));let r=(0,I.fi)(P,v.current,(0,o.Z)({placement:_},d,{modifiers:e}));return S.current(r),()=>{r.destroy(),S.current(null)}},[P,u,l,h,d,_]);let x={placement:N};null!==b&&(x.TransitionProps=b);let k=J(),F=null!=(r=g.root)?r:"div",B=(0,L.y)({elementType:F,externalSlotProps:m.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:k.root});return(0,M.jsx)(F,(0,o.Z)({},B,{children:"function"==typeof i?i(x):i}))}),V=a.forwardRef(function(t,e){let r;let{anchorEl:n,children:i,container:s,direction:u="ltr",disablePortal:l=!1,keepMounted:h=!1,modifiers:c,open:d,placement:p="bottom",popperOptions:m=j,popperRef:g,style:b,transition:y=!1,slotProps:v={},slots:w={}}=t,E=(0,f.Z)(t,G),[A,S]=a.useState(!0);if(!h&&!d&&(!y||A))return null;if(s)r=s;else if(n){let t=z(n);r=t&&void 0!==t.nodeType?(0,C.Z)(t).body:(0,C.Z)(null).body}let _=!d&&h&&(!y||A)?"none":void 0,N=y?{in:d,onEnter:()=>{S(!1)},onExited:()=>{S(!0)}}:void 0;return(0,M.jsx)(P.h,{disablePortal:l,container:r,children:(0,M.jsx)(H,(0,o.Z)({anchorEl:n,direction:u,disablePortal:l,modifiers:c,ref:e,open:y?!A:d,placement:p,popperOptions:m,popperRef:g,slotProps:v,slots:w},E,{style:(0,o.Z)({position:"fixed",top:0,left:0,display:_},b),TransitionProps:N,children:i}))})});var X=r(91070),q=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Z=(0,p.ZP)(V,{name:"MuiPopper",slot:"Root",overridesResolver:function(t,e){return e.root}})({}),K=a.forwardRef(function(t,e){var r,n=(0,X.Z)(),i=(0,g.i)({props:t,name:"MuiPopper"}),a=i.anchorEl,s=i.component,u=i.components,l=i.componentsProps,h=i.container,c=i.disablePortal,d=i.keepMounted,p=i.modifiers,m=i.open,b=i.placement,y=i.popperOptions,v=i.popperRef,w=i.transition,E=i.slots,A=i.slotProps,S=(0,f.Z)(i,q),_=null!=(r=null==E?void 0:E.root)?r:null==u?void 0:u.Root,N=(0,o.Z)({anchorEl:a,container:h,disablePortal:c,keepMounted:d,modifiers:p,open:m,placement:b,popperOptions:y,popperRef:v,transition:w},S);return(0,M.jsx)(Z,(0,o.Z)({as:s,direction:null==n?void 0:n.direction,slots:{root:_},slotProps:null!=A?A:l},N,{ref:e}))}),W=r(60271),Y=r(96401),Q=r(96137),$=r(51321);function tt(t){return(0,O.ZP)("MuiTooltip",t)}var te=(0,r(1588).Z)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),tr=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"],tn=function(t){var e=t.classes,r=t.disableInteractive,n=t.arrow,i=t.touch,f=t.placement,o={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",i&&"touch","tooltipPlacement".concat((0,b.Z)(f.split("-")[0]))],arrow:["arrow"]};return(0,h.Z)(o,tt,e)},ti=(0,p.ZP)(K,{name:"MuiTooltip",slot:"Popper",overridesResolver:function(t,e){var r=t.ownerState;return[e.popper,!r.disableInteractive&&e.popperInteractive,r.arrow&&e.popperArrow,!r.open&&e.popperClose]}})(function(t){var e,r=t.theme,n=t.ownerState,f=t.open;return(0,o.Z)({zIndex:(r.vars||r).zIndex.tooltip,pointerEvents:"none"},!n.disableInteractive&&{pointerEvents:"auto"},!f&&{pointerEvents:"none"},n.arrow&&(e={},(0,i.Z)(e,'&[data-popper-placement*="bottom"] .'.concat(te.arrow),{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}}),(0,i.Z)(e,'&[data-popper-placement*="top"] .'.concat(te.arrow),{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}}),(0,i.Z)(e,'&[data-popper-placement*="right"] .'.concat(te.arrow),(0,o.Z)({},n.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}})),(0,i.Z)(e,'&[data-popper-placement*="left"] .'.concat(te.arrow),(0,o.Z)({},n.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})),e))}),tf=(0,p.ZP)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:function(t,e){var r=t.ownerState;return[e.tooltip,r.touch&&e.touch,r.arrow&&e.tooltipArrow,e["tooltipPlacement".concat((0,b.Z)(r.placement.split("-")[0]))]]}})(function(t){var e,r=t.theme,n=t.ownerState;return(0,o.Z)({backgroundColor:r.vars?r.vars.palette.Tooltip.bg:(0,c.Fq)(r.palette.grey[700],.92),borderRadius:(r.vars||r).shape.borderRadius,color:(r.vars||r).palette.common.white,fontFamily:r.typography.fontFamily,padding:"4px 8px",fontSize:r.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:r.typography.fontWeightMedium},n.arrow&&{position:"relative",margin:0},n.touch&&{padding:"8px 16px",fontSize:r.typography.pxToRem(14),lineHeight:"".concat(Math.round(16/14*1e5)/1e5,"em"),fontWeight:r.typography.fontWeightRegular},(e={},(0,i.Z)(e,".".concat(te.popper,'[data-popper-placement*="left"] &'),(0,o.Z)({transformOrigin:"right center"},n.isRtl?(0,o.Z)({marginLeft:"14px"},n.touch&&{marginLeft:"24px"}):(0,o.Z)({marginRight:"14px"},n.touch&&{marginRight:"24px"}))),(0,i.Z)(e,".".concat(te.popper,'[data-popper-placement*="right"] &'),(0,o.Z)({transformOrigin:"left center"},n.isRtl?(0,o.Z)({marginRight:"14px"},n.touch&&{marginRight:"24px"}):(0,o.Z)({marginLeft:"14px"},n.touch&&{marginLeft:"24px"}))),(0,i.Z)(e,".".concat(te.popper,'[data-popper-placement*="top"] &'),(0,o.Z)({transformOrigin:"center bottom",marginBottom:"14px"},n.touch&&{marginBottom:"24px"})),(0,i.Z)(e,".".concat(te.popper,'[data-popper-placement*="bottom"] &'),(0,o.Z)({transformOrigin:"center top",marginTop:"14px"},n.touch&&{marginTop:"24px"})),e))}),to=(0,p.ZP)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:function(t,e){return e.arrow}})(function(t){var e=t.theme;return{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:(0,c.Fq)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}}),ta=!1,ts=new u.V,tu={x:0,y:0};function tl(t,e){return function(r){for(var n=arguments.length,i=Array(n>1?n-1:0),f=1;f<n;f++)i[f-1]=arguments[f];e&&e.apply(void 0,[r].concat(i)),t.apply(void 0,[r].concat(i))}}var th=a.forwardRef(function(t,e){var r,i,h,c,p,b,y,v,E,A,S,_,T,R,C,I,P,O,x,k=(0,g.i)({props:t,name:"MuiTooltip"}),F=k.arrow,B=void 0!==F&&F,L=k.children,D=k.components,U=void 0===D?{}:D,G=k.componentsProps,z=void 0===G?{}:G,J=k.describeChild,j=k.disableFocusListener,H=k.disableHoverListener,V=void 0!==H&&H,X=k.disableInteractive,q=k.disableTouchListener,Z=k.enterDelay,tt=void 0===Z?100:Z,te=k.enterNextDelay,th=void 0===te?0:te,tc=k.enterTouchDelay,td=void 0===tc?700:tc,tp=k.followCursor,tm=void 0!==tp&&tp,tg=k.id,tb=k.leaveDelay,ty=void 0===tb?0:tb,tv=k.leaveTouchDelay,tw=void 0===tv?1500:tv,tM=k.onClose,tE=k.onOpen,tA=k.open,tS=k.placement,t_=void 0===tS?"bottom":tS,tN=k.PopperComponent,tT=k.PopperProps,tR=void 0===tT?{}:tT,tC=k.slotProps,tI=void 0===tC?{}:tC,tP=k.slots,tO=void 0===tP?{}:tP,tx=k.title,tk=k.TransitionComponent,tF=void 0===tk?N:tk,tB=k.TransitionProps,tL=(0,f.Z)(k,tr),tD=a.isValidElement(L)?L:(0,M.jsx)("span",{children:L}),tU=(0,m.Z)(),tG=(0,d.V)(),tz=a.useState(),tJ=(0,n.Z)(tz,2),tj=tJ[0],tH=tJ[1],tV=a.useState(null),tX=(0,n.Z)(tV,2),tq=tX[0],tZ=tX[1],tK=a.useRef(!1),tW=void 0!==X&&X||tm,tY=(0,u.Z)(),tQ=(0,u.Z)(),t$=(0,u.Z)(),t0=(0,u.Z)(),t1=(0,$.Z)({controlled:tA,default:!1,name:"Tooltip",state:"open"}),t6=(0,n.Z)(t1,2),t5=t6[0],t2=t6[1],t8=t5,t3=(0,Y.Z)(tg),t4=a.useRef(),t9=(0,W.Z)(function(){void 0!==t4.current&&(document.body.style.WebkitUserSelect=t4.current,t4.current=void 0),t0.clear()});a.useEffect(function(){return t9},[t9]);var t7=function(t){ts.clear(),ta=!0,t2(!0),tE&&!t8&&tE(t)},et=(0,W.Z)(function(t){ts.start(800+ty,function(){ta=!1}),t2(!1),tM&&t8&&tM(t),tY.start(tU.transitions.duration.shortest,function(){tK.current=!1})}),ee=function(t){tK.current&&"touchstart"!==t.type||(tj&&tj.removeAttribute("title"),tQ.clear(),t$.clear(),tt||ta&&th?tQ.start(ta?th:tt,function(){t7(t)}):t7(t))},er=function(t){tQ.clear(),t$.start(ty,function(){et(t)})},en=(0,Q.Z)(),ei=en.isFocusVisibleRef,ef=en.onBlur,eo=en.onFocus,ea=en.ref,es=a.useState(!1),eu=(0,n.Z)(es,2)[1],el=function(t){ef(t),!1===ei.current&&(eu(!1),er(t))},eh=function(t){tj||tH(t.currentTarget),eo(t),!0===ei.current&&(eu(!0),ee(t))},ec=function(t){tK.current=!0;var e=tD.props;e.onTouchStart&&e.onTouchStart(t)};a.useEffect(function(){if(t8)return document.addEventListener("keydown",t),function(){document.removeEventListener("keydown",t)};function t(t){("Escape"===t.key||"Esc"===t.key)&&et(t)}},[et,t8]);var ed=(0,w.Z)(tD.ref,ea,tH,e);tx||0===tx||(t8=!1);var ep=a.useRef(),em={},eg="string"==typeof tx;void 0!==J&&J?(em.title=t8||!eg||V?null:tx,em["aria-describedby"]=t8?t3:null):(em["aria-label"]=eg?tx:null,em["aria-labelledby"]=t8&&!eg?t3:null);var eb=(0,o.Z)({},em,tL,tD.props,{className:(0,s.Z)(tL.className,tD.props.className),onTouchStart:ec,ref:ed},tm?{onMouseMove:function(t){var e=tD.props;e.onMouseMove&&e.onMouseMove(t),tu={x:t.clientX,y:t.clientY},ep.current&&ep.current.update()}}:{}),ey={};void 0!==q&&q||(eb.onTouchStart=function(t){ec(t),t$.clear(),tY.clear(),t9(),t4.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",t0.start(td,function(){document.body.style.WebkitUserSelect=t4.current,ee(t)})},eb.onTouchEnd=function(t){tD.props.onTouchEnd&&tD.props.onTouchEnd(t),t9(),t$.start(tw,function(){et(t)})}),V||(eb.onMouseOver=tl(ee,eb.onMouseOver),eb.onMouseLeave=tl(er,eb.onMouseLeave),tW||(ey.onMouseOver=ee,ey.onMouseLeave=er)),void 0!==j&&j||(eb.onFocus=tl(eh,eb.onFocus),eb.onBlur=tl(el,eb.onBlur),tW||(ey.onFocus=eh,ey.onBlur=el));var ev=a.useMemo(function(){var t,e=[{name:"arrow",enabled:!!tq,options:{element:tq,padding:4}}];return null!=(t=tR.popperOptions)&&t.modifiers&&(e=e.concat(tR.popperOptions.modifiers)),(0,o.Z)({},tR.popperOptions,{modifiers:e})},[tq,tR]),ew=(0,o.Z)({},k,{isRtl:tG,arrow:B,disableInteractive:tW,placement:t_,PopperComponentProp:tN,touch:tK.current}),eM=tn(ew),eE=null!=(r=null!=(i=tO.popper)?i:U.Popper)?r:ti,eA=null!=(h=null!=(c=null!=(p=tO.transition)?p:U.Transition)?c:tF)?h:N,eS=null!=(b=null!=(y=tO.tooltip)?y:U.Tooltip)?b:tf,e_=null!=(v=null!=(E=tO.arrow)?E:U.Arrow)?v:to,eN=(0,l.$)(eE,(0,o.Z)({},tR,null!=(A=tI.popper)?A:z.popper,{className:(0,s.Z)(eM.popper,null==tR?void 0:tR.className,null==(S=null!=(_=tI.popper)?_:z.popper)?void 0:S.className)}),ew),eT=(0,l.$)(eA,(0,o.Z)({},tB,null!=(T=tI.transition)?T:z.transition),ew),eR=(0,l.$)(eS,(0,o.Z)({},null!=(R=tI.tooltip)?R:z.tooltip,{className:(0,s.Z)(eM.tooltip,null==(C=null!=(I=tI.tooltip)?I:z.tooltip)?void 0:C.className)}),ew),eC=(0,l.$)(e_,(0,o.Z)({},null!=(P=tI.arrow)?P:z.arrow,{className:(0,s.Z)(eM.arrow,null==(O=null!=(x=tI.arrow)?x:z.arrow)?void 0:O.className)}),ew);return(0,M.jsxs)(a.Fragment,{children:[a.cloneElement(tD,eb),(0,M.jsx)(eE,(0,o.Z)({as:null!=tN?tN:K,placement:t_,anchorEl:tm?{getBoundingClientRect:function(){return{top:tu.y,left:tu.x,right:tu.x,bottom:tu.y,width:0,height:0}}}:tj,popperRef:ep,open:!!tj&&t8,id:t3,transition:!0},ey,eN,{popperOptions:ev,children:function(t){var e=t.TransitionProps;return(0,M.jsx)(eA,(0,o.Z)({timeout:tU.transitions.duration.shorter},e,eT,{children:(0,M.jsxs)(eS,(0,o.Z)({},eR,{children:[tx,B?(0,M.jsx)(e_,(0,o.Z)({},eC,{ref:tZ})):null]}))}))}}))]})})},75831:function(t,e,r){"use strict";var n=r(20968);function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function f(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach(function(e){n(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var r in e)Object.defineProperty(t,r,{enumerable:!0,get:e[r]})}(e,{default:function(){return l},noSSR:function(){return u}});var o=r(38754);r(85893),r(67294);var a=o._(r(32884));function s(t){return{default:(null==t?void 0:t.default)||t}}function u(t,e){return delete e.webpack,delete e.modules,t(e)}function l(t,e){var r=a.default,n={loading:function(t){return t.error,t.isLoading,t.pastDelay,null}};t instanceof Promise?n.loader=function(){return t}:"function"==typeof t?n.loader=t:"object"==typeof t&&(n=f(f({},n),t));var i=(n=f(f({},n),e)).loader;return(n.loadableGenerated&&(n=f(f({},n),n.loadableGenerated),delete n.loadableGenerated),"boolean"!=typeof n.ssr||n.ssr)?r(f(f({},n),{},{loader:function(){return null!=i?i().then(s):Promise.resolve(s(function(){return null}))}})):(delete n.webpack,delete n.modules,u(r,n))}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},83465:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LoadableContext",{enumerable:!0,get:function(){return n}});var n=r(38754)._(r(67294)).default.createContext(null)},32884:function(t,e,r){"use strict";/**
@copyright (c) 2017-present James Kyle <me@thejameskyle.com>
 MIT License
 Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
 The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
*/var n=r(20968),i=r(23322),f=r(16089);function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function a(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?o(Object(r),!0).forEach(function(e){n(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return y}});var u=r(38754)._(r(67294)),l=r(83465),h=[],c=[],d=!1;function p(t){var e=t(),r={loading:!0,loaded:null,error:null};return r.promise=e.then(function(t){return r.loading=!1,r.loaded=t,t}).catch(function(t){throw r.loading=!1,r.error=t,t}),r}var m=function(){function t(e,r){i(this,t),this._loadFn=e,this._opts=r,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}return f(t,[{key:"promise",value:function(){return this._res.promise}},{key:"retry",value:function(){var t=this;this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};var e=this._res,r=this._opts;e.loading&&("number"==typeof r.delay&&(0===r.delay?this._state.pastDelay=!0:this._delay=setTimeout(function(){t._update({pastDelay:!0})},r.delay)),"number"==typeof r.timeout&&(this._timeout=setTimeout(function(){t._update({timedOut:!0})},r.timeout))),this._res.promise.then(function(){t._update({}),t._clearTimeouts()}).catch(function(e){t._update({}),t._clearTimeouts()}),this._update({})}},{key:"_update",value:function(t){this._state=a(a({},this._state),{},{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading},t),this._callbacks.forEach(function(t){return t()})}},{key:"_clearTimeouts",value:function(){clearTimeout(this._delay),clearTimeout(this._timeout)}},{key:"getCurrentValue",value:function(){return this._state}},{key:"subscribe",value:function(t){var e=this;return this._callbacks.add(t),function(){e._callbacks.delete(t)}}}]),t}();function g(t){return function(t,e){var r=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},e),n=null;function i(){if(!n){var e=new m(t,r);n={getCurrentValue:e.getCurrentValue.bind(e),subscribe:e.subscribe.bind(e),retry:e.retry.bind(e),promise:e.promise.bind(e)}}return n.promise()}if(!d){var f=r.webpack?r.webpack():r.modules;f&&c.push(function(t){var e,r=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return s(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(t,void 0)}}(t))){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var f,o=!0,a=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){a=!0,f=t},f:function(){try{o||null==r.return||r.return()}finally{if(a)throw f}}}}(f);try{for(r.s();!(e=r.n()).done;){var n=e.value;if(t.includes(n))return i()}}catch(t){r.e(t)}finally{r.f()}})}function o(t,e){i(),(f=u.default.useContext(l.LoadableContext))&&Array.isArray(r.modules)&&r.modules.forEach(function(t){f(t)});var f,o=u.default.useSyncExternalStore(n.subscribe,n.getCurrentValue,n.getCurrentValue);return u.default.useImperativeHandle(e,function(){return{retry:n.retry}},[]),u.default.useMemo(function(){var e;return o.loading||o.error?u.default.createElement(r.loading,{isLoading:o.loading,pastDelay:o.pastDelay,timedOut:o.timedOut,error:o.error,retry:n.retry}):o.loaded?u.default.createElement((e=o.loaded)&&e.default?e.default:e,t):null},[t,o])}return o.preload=function(){return i()},o.displayName="LoadableComponent",u.default.forwardRef(o)}(p,t)}function b(t,e){for(var r=[];t.length;){var n=t.pop();r.push(n(e))}return Promise.all(r).then(function(){if(t.length)return b(t,e)})}g.preloadAll=function(){return new Promise(function(t,e){b(h).then(t,e)})},g.preloadReady=function(t){return void 0===t&&(t=[]),new Promise(function(e){var r=function(){return d=!0,e()};b(c,t).then(r,r)})},window.__NEXT_PRELOADREADY=g.preloadReady;var y=g},66477:function(t,e){"use strict";e.Headers=self.Headers,e.Request=self.Request,e.Response=self.Response,e.fetch=self.fetch},79422:function(){},85795:function(){},5152:function(t,e,r){t.exports=r(75831)},92703:function(t,e,r){"use strict";var n=r(50414);function i(){}function f(){}f.resetWarningCache=i,t.exports=function(){function t(t,e,r,i,f,o){if(o!==n){var a=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function e(){return t}t.isRequired=t;var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:f,resetWarningCache:i};return r.PropTypes=r,r}},45697:function(t,e,r){t.exports=r(92703)()},50414:function(t){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},3655:function(t,e,r){var n=r(32792);function i(t){this.mode=n.MODE_8BIT_BYTE,this.data=t}i.prototype={getLength:function(t){return this.data.length},write:function(t){for(var e=0;e<this.data.length;e++)t.put(this.data.charCodeAt(e),8)}},t.exports=i},27321:function(t){function e(){this.buffer=[],this.length=0}e.prototype={get:function(t){return(this.buffer[Math.floor(t/8)]>>>7-t%8&1)==1},put:function(t,e){for(var r=0;r<e;r++)this.putBit((t>>>e-r-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},t.exports=e},49381:function(t){t.exports={L:1,M:0,Q:3,H:2}},32832:function(t,e,r){var n=r(11518);function i(t,e){if(void 0==t.length)throw Error(t.length+"/"+e);for(var r=0;r<t.length&&0==t[r];)r++;this.num=Array(t.length-r+e);for(var n=0;n<t.length-r;n++)this.num[n]=t[n+r]}i.prototype={get:function(t){return this.num[t]},getLength:function(){return this.num.length},multiply:function(t){for(var e=Array(this.getLength()+t.getLength()-1),r=0;r<this.getLength();r++)for(var f=0;f<t.getLength();f++)e[r+f]^=n.gexp(n.glog(this.get(r))+n.glog(t.get(f)));return new i(e,0)},mod:function(t){if(this.getLength()-t.getLength()<0)return this;for(var e=n.glog(this.get(0))-n.glog(t.get(0)),r=Array(this.getLength()),f=0;f<this.getLength();f++)r[f]=this.get(f);for(var f=0;f<t.getLength();f++)r[f]^=n.gexp(n.glog(t.get(f))+e);return new i(r,0).mod(t)}},t.exports=i},14450:function(t,e,r){var n=r(3655),i=r(17611),f=r(27321),o=r(93160),a=r(32832);function s(t,e){this.typeNumber=t,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var u=s.prototype;u.addData=function(t){var e=new n(t);this.dataList.push(e),this.dataCache=null},u.isDark=function(t,e){if(t<0||this.moduleCount<=t||e<0||this.moduleCount<=e)throw Error(t+","+e);return this.modules[t][e]},u.getModuleCount=function(){return this.moduleCount},u.make=function(){if(this.typeNumber<1){var t=1;for(t=1;t<40;t++){for(var e=i.getRSBlocks(t,this.errorCorrectLevel),r=new f,n=0,a=0;a<e.length;a++)n+=e[a].dataCount;for(var a=0;a<this.dataList.length;a++){var s=this.dataList[a];r.put(s.mode,4),r.put(s.getLength(),o.getLengthInBits(s.mode,t)),s.write(r)}if(r.getLengthInBits()<=8*n)break}this.typeNumber=t}this.makeImpl(!1,this.getBestMaskPattern())},u.makeImpl=function(t,e){this.moduleCount=4*this.typeNumber+17,this.modules=Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++){this.modules[r]=Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++)this.modules[r][n]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(t,e),this.typeNumber>=7&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=s.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)},u.setupPositionProbePattern=function(t,e){for(var r=-1;r<=7;r++)if(!(t+r<=-1)&&!(this.moduleCount<=t+r))for(var n=-1;n<=7;n++)e+n<=-1||this.moduleCount<=e+n||(0<=r&&r<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=n&&n<=4?this.modules[t+r][e+n]=!0:this.modules[t+r][e+n]=!1)},u.getBestMaskPattern=function(){for(var t=0,e=0,r=0;r<8;r++){this.makeImpl(!0,r);var n=o.getLostPoint(this);(0==r||t>n)&&(t=n,e=r)}return e},u.createMovieClip=function(t,e,r){var n=t.createEmptyMovieClip(e,r);this.make();for(var i=0;i<this.modules.length;i++)for(var f=1*i,o=0;o<this.modules[i].length;o++){var a=1*o;this.modules[i][o]&&(n.beginFill(0,100),n.moveTo(a,f),n.lineTo(a+1,f),n.lineTo(a+1,f+1),n.lineTo(a,f+1),n.endFill())}return n},u.setupTimingPattern=function(){for(var t=8;t<this.moduleCount-8;t++)null==this.modules[t][6]&&(this.modules[t][6]=t%2==0);for(var e=8;e<this.moduleCount-8;e++)null==this.modules[6][e]&&(this.modules[6][e]=e%2==0)},u.setupPositionAdjustPattern=function(){for(var t=o.getPatternPosition(this.typeNumber),e=0;e<t.length;e++)for(var r=0;r<t.length;r++){var n=t[e],i=t[r];if(null==this.modules[n][i])for(var f=-2;f<=2;f++)for(var a=-2;a<=2;a++)-2==f||2==f||-2==a||2==a||0==f&&0==a?this.modules[n+f][i+a]=!0:this.modules[n+f][i+a]=!1}},u.setupTypeNumber=function(t){for(var e=o.getBCHTypeNumber(this.typeNumber),r=0;r<18;r++){var n=!t&&(e>>r&1)==1;this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=n}for(var r=0;r<18;r++){var n=!t&&(e>>r&1)==1;this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=n}},u.setupTypeInfo=function(t,e){for(var r=this.errorCorrectLevel<<3|e,n=o.getBCHTypeInfo(r),i=0;i<15;i++){var f=!t&&(n>>i&1)==1;i<6?this.modules[i][8]=f:i<8?this.modules[i+1][8]=f:this.modules[this.moduleCount-15+i][8]=f}for(var i=0;i<15;i++){var f=!t&&(n>>i&1)==1;i<8?this.modules[8][this.moduleCount-i-1]=f:i<9?this.modules[8][15-i-1+1]=f:this.modules[8][15-i-1]=f}this.modules[this.moduleCount-8][8]=!t},u.mapData=function(t,e){for(var r=-1,n=this.moduleCount-1,i=7,f=0,a=this.moduleCount-1;a>0;a-=2)for(6==a&&a--;;){for(var s=0;s<2;s++)if(null==this.modules[n][a-s]){var u=!1;f<t.length&&(u=(t[f]>>>i&1)==1),o.getMask(e,n,a-s)&&(u=!u),this.modules[n][a-s]=u,-1==--i&&(f++,i=7)}if((n+=r)<0||this.moduleCount<=n){n-=r,r=-r;break}}},s.PAD0=236,s.PAD1=17,s.createData=function(t,e,r){for(var n=i.getRSBlocks(t,e),a=new f,u=0;u<r.length;u++){var l=r[u];a.put(l.mode,4),a.put(l.getLength(),o.getLengthInBits(l.mode,t)),l.write(a)}for(var h=0,u=0;u<n.length;u++)h+=n[u].dataCount;if(a.getLengthInBits()>8*h)throw Error("code length overflow. ("+a.getLengthInBits()+">"+8*h+")");for(a.getLengthInBits()+4<=8*h&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(!1);for(;!(a.getLengthInBits()>=8*h)&&(a.put(s.PAD0,8),!(a.getLengthInBits()>=8*h));)a.put(s.PAD1,8);return s.createBytes(a,n)},s.createBytes=function(t,e){for(var r=0,n=0,i=0,f=Array(e.length),s=Array(e.length),u=0;u<e.length;u++){var l=e[u].dataCount,h=e[u].totalCount-l;n=Math.max(n,l),i=Math.max(i,h),f[u]=Array(l);for(var c=0;c<f[u].length;c++)f[u][c]=255&t.buffer[c+r];r+=l;var d=o.getErrorCorrectPolynomial(h),p=new a(f[u],d.getLength()-1).mod(d);s[u]=Array(d.getLength()-1);for(var c=0;c<s[u].length;c++){var m=c+p.getLength()-s[u].length;s[u][c]=m>=0?p.get(m):0}}for(var g=0,c=0;c<e.length;c++)g+=e[c].totalCount;for(var b=Array(g),y=0,c=0;c<n;c++)for(var u=0;u<e.length;u++)c<f[u].length&&(b[y++]=f[u][c]);for(var c=0;c<i;c++)for(var u=0;u<e.length;u++)c<s[u].length&&(b[y++]=s[u][c]);return b},t.exports=s},17611:function(t,e,r){var n=r(49381);function i(t,e){this.totalCount=t,this.dataCount=e}i.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],i.getRSBlocks=function(t,e){var r=i.getRsBlockTable(t,e);if(void 0==r)throw Error("bad rs block @ typeNumber:"+t+"/errorCorrectLevel:"+e);for(var n=r.length/3,f=[],o=0;o<n;o++)for(var a=r[3*o+0],s=r[3*o+1],u=r[3*o+2],l=0;l<a;l++)f.push(new i(s,u));return f},i.getRsBlockTable=function(t,e){switch(e){case n.L:return i.RS_BLOCK_TABLE[(t-1)*4+0];case n.M:return i.RS_BLOCK_TABLE[(t-1)*4+1];case n.Q:return i.RS_BLOCK_TABLE[(t-1)*4+2];case n.H:return i.RS_BLOCK_TABLE[(t-1)*4+3];default:return}},t.exports=i},11518:function(t){for(var e={glog:function(t){if(t<1)throw Error("glog("+t+")");return e.LOG_TABLE[t]},gexp:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return e.EXP_TABLE[t]},EXP_TABLE:Array(256),LOG_TABLE:Array(256)},r=0;r<8;r++)e.EXP_TABLE[r]=1<<r;for(var r=8;r<256;r++)e.EXP_TABLE[r]=e.EXP_TABLE[r-4]^e.EXP_TABLE[r-5]^e.EXP_TABLE[r-6]^e.EXP_TABLE[r-8];for(var r=0;r<255;r++)e.LOG_TABLE[e.EXP_TABLE[r]]=r;t.exports=e},32792:function(t){t.exports={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8}},93160:function(t,e,r){var n=r(32792),i=r(32832),f=r(11518),o={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},a={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(t){for(var e=t<<10;a.getBCHDigit(e)-a.getBCHDigit(a.G15)>=0;)e^=a.G15<<a.getBCHDigit(e)-a.getBCHDigit(a.G15);return(t<<10|e)^a.G15_MASK},getBCHTypeNumber:function(t){for(var e=t<<12;a.getBCHDigit(e)-a.getBCHDigit(a.G18)>=0;)e^=a.G18<<a.getBCHDigit(e)-a.getBCHDigit(a.G18);return t<<12|e},getBCHDigit:function(t){for(var e=0;0!=t;)e++,t>>>=1;return e},getPatternPosition:function(t){return a.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,r){switch(t){case o.PATTERN000:return(e+r)%2==0;case o.PATTERN001:return e%2==0;case o.PATTERN010:return r%3==0;case o.PATTERN011:return(e+r)%3==0;case o.PATTERN100:return(Math.floor(e/2)+Math.floor(r/3))%2==0;case o.PATTERN101:return e*r%2+e*r%3==0;case o.PATTERN110:return(e*r%2+e*r%3)%2==0;case o.PATTERN111:return(e*r%3+(e+r)%2)%2==0;default:throw Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new i([1],0),r=0;r<t;r++)e=e.multiply(new i([1,f.gexp(r)],0));return e},getLengthInBits:function(t,e){if(1<=e&&e<10)switch(t){case n.MODE_NUMBER:return 10;case n.MODE_ALPHA_NUM:return 9;case n.MODE_8BIT_BYTE:case n.MODE_KANJI:return 8;default:throw Error("mode:"+t)}else if(e<27)switch(t){case n.MODE_NUMBER:return 12;case n.MODE_ALPHA_NUM:return 11;case n.MODE_8BIT_BYTE:return 16;case n.MODE_KANJI:return 10;default:throw Error("mode:"+t)}else if(e<41)switch(t){case n.MODE_NUMBER:return 14;case n.MODE_ALPHA_NUM:return 13;case n.MODE_8BIT_BYTE:return 16;case n.MODE_KANJI:return 12;default:throw Error("mode:"+t)}else throw Error("type:"+e)},getLostPoint:function(t){for(var e=t.getModuleCount(),r=0,n=0;n<e;n++)for(var i=0;i<e;i++){for(var f=0,o=t.isDark(n,i),a=-1;a<=1;a++)if(!(n+a<0)&&!(e<=n+a))for(var s=-1;s<=1;s++)!(i+s<0)&&!(e<=i+s)&&(0!=a||0!=s)&&o==t.isDark(n+a,i+s)&&f++;f>5&&(r+=3+f-5)}for(var n=0;n<e-1;n++)for(var i=0;i<e-1;i++){var u=0;t.isDark(n,i)&&u++,t.isDark(n+1,i)&&u++,t.isDark(n,i+1)&&u++,t.isDark(n+1,i+1)&&u++,(0==u||4==u)&&(r+=3)}for(var n=0;n<e;n++)for(var i=0;i<e-6;i++)t.isDark(n,i)&&!t.isDark(n,i+1)&&t.isDark(n,i+2)&&t.isDark(n,i+3)&&t.isDark(n,i+4)&&!t.isDark(n,i+5)&&t.isDark(n,i+6)&&(r+=40);for(var i=0;i<e;i++)for(var n=0;n<e-6;n++)t.isDark(n,i)&&!t.isDark(n+1,i)&&t.isDark(n+2,i)&&t.isDark(n+3,i)&&t.isDark(n+4,i)&&!t.isDark(n+5,i)&&t.isDark(n+6,i)&&(r+=40);for(var l=0,i=0;i<e;i++)for(var n=0;n<e;n++)t.isDark(n,i)&&l++;return r+Math.abs(100*l/e/e-50)/5*10}};t.exports=a},88632:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},i=a(r(45697)),f=r(67294),o=a(f);function a(t){return t&&t.__esModule?t:{default:t}}var s={bgColor:i.default.oneOfType([i.default.object,i.default.string]).isRequired,bgD:i.default.string.isRequired,fgColor:i.default.oneOfType([i.default.object,i.default.string]).isRequired,fgD:i.default.string.isRequired,size:i.default.number.isRequired,title:i.default.string,viewBoxSize:i.default.number.isRequired,xmlns:i.default.string},u=(0,f.forwardRef)(function(t,e){var r=t.bgColor,i=t.bgD,f=t.fgD,a=t.fgColor,s=t.size,u=t.title,l=t.viewBoxSize,h=t.xmlns,c=function(t,e){var r={};for(var n in t)!(e.indexOf(n)>=0)&&Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}(t,["bgColor","bgD","fgD","fgColor","size","title","viewBoxSize","xmlns"]);return o.default.createElement("svg",n({},c,{height:s,ref:e,viewBox:"0 0 "+l+" "+l,width:s,xmlns:void 0===h?"http://www.w3.org/2000/svg":h}),u?o.default.createElement("title",null,u):null,o.default.createElement("path",{d:i,fill:r}),o.default.createElement("path",{d:f,fill:a}))});u.displayName="QRCodeSvg",u.propTypes=s,e.default=u},1653:function(t,e,r){"use strict";var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},i=l(r(45697)),f=l(r(49381)),o=l(r(14450)),a=r(67294),s=l(a),u=l(r(88632));function l(t){return t&&t.__esModule?t:{default:t}}var h={bgColor:i.default.oneOfType([i.default.object,i.default.string]),fgColor:i.default.oneOfType([i.default.object,i.default.string]),level:i.default.string,size:i.default.number,value:i.default.string.isRequired},c=(0,a.forwardRef)(function(t,e){var r=t.bgColor,i=t.fgColor,a=t.level,l=t.size,h=t.value,c=function(t,e){var r={};for(var n in t)!(e.indexOf(n)>=0)&&Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}(t,["bgColor","fgColor","level","size","value"]),d=new o.default(-1,f.default[void 0===a?"L":a]);d.addData(h),d.make();var p=d.modules;return s.default.createElement(u.default,n({},c,{bgColor:void 0===r?"#FFFFFF":r,bgD:p.map(function(t,e){return t.map(function(t,r){return t?"":"M "+r+" "+e+" l 1 0 0 1 -1 0 Z"}).join(" ")}).join(" "),fgColor:void 0===i?"#000000":i,fgD:p.map(function(t,e){return t.map(function(t,r){return t?"M "+r+" "+e+" l 1 0 0 1 -1 0 Z":""}).join(" ")}).join(" "),ref:e,size:void 0===l?256:l,viewBoxSize:p.length}))});c.displayName="QRCode",c.propTypes=h,e.ZP=c},17635:function(t){"use strict";!function(e){function r(t){let e=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),r=1779033703,n=3144134277,i=1013904242,f=2773480762,o=1359893119,a=2600822924,s=528734635,u=1541459225,l=new Uint32Array(64);function h(t){let h=0,c=t.length;for(;c>=64;){let d=r,p=n,m=i,g=f,b=o,y=a,v=s,w=u,M,E,A,S,_;for(E=0;E<16;E++)A=h+4*E,l[E]=(255&t[A])<<24|(255&t[A+1])<<16|(255&t[A+2])<<8|255&t[A+3];for(E=16;E<64;E++)S=((M=l[E-2])>>>17|M<<15)^(M>>>19|M<<13)^M>>>10,_=((M=l[E-15])>>>7|M<<25)^(M>>>18|M<<14)^M>>>3,l[E]=(S+l[E-7]|0)+(_+l[E-16]|0)|0;for(E=0;E<64;E++)S=(((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+(b&y^~b&v)|0)+(w+(e[E]+l[E]|0)|0)|0,_=((d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10))+(d&p^d&m^p&m)|0,w=v,v=y,y=b,b=g+S|0,g=m,m=p,p=d,d=S+_|0;r=r+d|0,n=n+p|0,i=i+m|0,f=f+g|0,o=o+b|0,a=a+y|0,s=s+v|0,u=u+w|0,h+=64,c-=64}}h(t);let c,d=t.length%64,p=t.length/536870912|0,m=t.length<<3,g=d<56?56:120,b=t.slice(t.length-d,t.length);for(b.push(128),c=d+1;c<g;c++)b.push(0);return b.push(p>>>24&255),b.push(p>>>16&255),b.push(p>>>8&255),b.push(p>>>0&255),b.push(m>>>24&255),b.push(m>>>16&255),b.push(m>>>8&255),b.push(m>>>0&255),h(b),[r>>>24&255,r>>>16&255,r>>>8&255,r>>>0&255,n>>>24&255,n>>>16&255,n>>>8&255,n>>>0&255,i>>>24&255,i>>>16&255,i>>>8&255,i>>>0&255,f>>>24&255,f>>>16&255,f>>>8&255,f>>>0&255,o>>>24&255,o>>>16&255,o>>>8&255,o>>>0&255,a>>>24&255,a>>>16&255,a>>>8&255,a>>>0&255,s>>>24&255,s>>>16&255,s>>>8&255,s>>>0&255,u>>>24&255,u>>>16&255,u>>>8&255,u>>>0&255]}function n(t,e,n){let i;t=t.length<=64?t:r(t);let f=64+e.length+4,o=Array(f),a=Array(64),s=[];for(i=0;i<64;i++)o[i]=54;for(i=0;i<t.length;i++)o[i]^=t[i];for(i=0;i<e.length;i++)o[64+i]=e[i];for(i=f-4;i<f;i++)o[i]=0;for(i=0;i<64;i++)a[i]=92;for(i=0;i<t.length;i++)a[i]^=t[i];function u(){for(let t=f-1;t>=f-4;t--){if(o[t]++,o[t]<=255)return;o[t]=0}}for(;n>=32;)u(),s=s.concat(r(a.concat(r(o)))),n-=32;return n>0&&(u(),s=s.concat(r(a.concat(r(o))).slice(0,n))),s}function i(t,e,r,n,i){let s;for(a(t,(2*r-1)*16,i,0,16),s=0;s<2*r;s++)o(t,16*s,i,16),function(t,e){a(t,0,e,0,16);for(let t=8;t>0;t-=2)e[4]^=f(e[0]+e[12],7),e[8]^=f(e[4]+e[0],9),e[12]^=f(e[8]+e[4],13),e[0]^=f(e[12]+e[8],18),e[9]^=f(e[5]+e[1],7),e[13]^=f(e[9]+e[5],9),e[1]^=f(e[13]+e[9],13),e[5]^=f(e[1]+e[13],18),e[14]^=f(e[10]+e[6],7),e[2]^=f(e[14]+e[10],9),e[6]^=f(e[2]+e[14],13),e[10]^=f(e[6]+e[2],18),e[3]^=f(e[15]+e[11],7),e[7]^=f(e[3]+e[15],9),e[11]^=f(e[7]+e[3],13),e[15]^=f(e[11]+e[7],18),e[1]^=f(e[0]+e[3],7),e[2]^=f(e[1]+e[0],9),e[3]^=f(e[2]+e[1],13),e[0]^=f(e[3]+e[2],18),e[6]^=f(e[5]+e[4],7),e[7]^=f(e[6]+e[5],9),e[4]^=f(e[7]+e[6],13),e[5]^=f(e[4]+e[7],18),e[11]^=f(e[10]+e[9],7),e[8]^=f(e[11]+e[10],9),e[9]^=f(e[8]+e[11],13),e[10]^=f(e[9]+e[8],18),e[12]^=f(e[15]+e[14],7),e[13]^=f(e[12]+e[15],9),e[14]^=f(e[13]+e[12],13),e[15]^=f(e[14]+e[13],18);for(let r=0;r<16;++r)t[r]+=e[r]}(i,n),a(i,0,t,e+16*s,16);for(s=0;s<r;s++)a(t,e+32*s,t,16*s,16);for(s=0;s<r;s++)a(t,e+(2*s+1)*16,t,(s+r)*16,16)}function f(t,e){return t<<e|t>>>32-e}function o(t,e,r,n){for(let i=0;i<n;i++)r[i]^=t[e+i]}function a(t,e,r,n,i){for(;i--;)r[n++]=t[e++]}function s(t){if(!t||"number"!=typeof t.length)return!1;for(let e=0;e<t.length;e++){let r=t[e];if("number"!=typeof r||r%1||r<0||r>=256)return!1}return!0}function u(t,e){if("number"!=typeof t||t%1)throw Error("invalid "+e);return t}function l(t,e,r,f,l,h,c){let d;if(r=u(r,"N"),f=u(f,"r"),l=u(l,"p"),h=u(h,"dkLen"),0===r||(r&r-1)!=0)throw Error("N must be power of 2");if(r>2147483647/128/f)throw Error("N too large");if(f>2147483647/128/l)throw Error("r too large");if(!s(t))throw Error("password must be an array or buffer");if(t=Array.prototype.slice.call(t),!s(e))throw Error("salt must be an array or buffer");e=Array.prototype.slice.call(e);let p=n(t,e,128*l*f),m=new Uint32Array(32*l*f);for(let t=0;t<m.length;t++){let e=4*t;m[t]=(255&p[e+3])<<24|(255&p[e+2])<<16|(255&p[e+1])<<8|(255&p[e+0])<<0}let g=new Uint32Array(64*f),b=new Uint32Array(32*f*r),y=32*f,v=new Uint32Array(16),w=new Uint32Array(16),M=l*r*2,E=0,A=null,S=!1,_=0,N=0,T,R=c?parseInt(1e3/f):4294967295,C="undefined"!=typeof setImmediate?setImmediate:setTimeout,I=function(){let e;if(S)return c(Error("cancelled"),E/M);switch(_){case 0:a(m,d=32*N*f,g,0,y),_=1,T=0;case 1:(e=r-T)>R&&(e=R);for(let t=0;t<e;t++)a(g,0,b,(T+t)*y,y),i(g,y,f,v,w);if(T+=e,E+=e,c){let t=parseInt(1e3*E/M);if(t!==A){if(S=c(null,E/M))break;A=t}}if(T<r)break;T=0,_=2;case 2:(e=r-T)>R&&(e=R);for(let t=0;t<e;t++)o(b,(g[(2*f-1)*16]&r-1)*y,g,y),i(g,y,f,v,w);if(T+=e,E+=e,c){let t=parseInt(1e3*E/M);if(t!==A){if(S=c(null,E/M))break;A=t}}if(T<r)break;if(a(g,0,m,d,y),++N<l){_=0;break}p=[];for(let t=0;t<m.length;t++)p.push(m[t]>>0&255),p.push(m[t]>>8&255),p.push(m[t]>>16&255),p.push(m[t]>>24&255);let s=n(t,p,h);return c&&c(null,1,s),s}c&&C(I)};if(!c)for(;;){let t=I();if(void 0!=t)return t}I()}t.exports={scrypt:function(t,e,r,n,i,f,o){return new Promise(function(a,s){let u=0;o&&o(0),l(t,e,r,n,i,f,function(t,e,r){if(t)s(t);else if(r)o&&1!==u&&o(1),a(new Uint8Array(r));else if(o&&e!==u)return u=e,o(e)})})},syncScrypt:function(t,e,r,n,i,f){return new Uint8Array(l(t,e,r,n,i,f))}}}(0)},87066:function(t,e,r){"use strict";let n,i,f,o;r.d(e,{Z:function(){return ed}});var a,s,u,l,h,c={};function d(t,e){return function(){return t.apply(e,arguments)}}r.r(c),r.d(c,{hasBrowserEnv:function(){return ty},hasStandardBrowserEnv:function(){return tv},hasStandardBrowserWebWorkerEnv:function(){return tw},origin:function(){return tM}});var p=r(34155);let{toString:m}=Object.prototype,{getPrototypeOf:g}=Object,b=(n=Object.create(null),t=>{let e=m.call(t);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())}),y=t=>(t=t.toLowerCase(),e=>b(e)===t),v=t=>e=>typeof e===t,{isArray:w}=Array,M=v("undefined"),E=y("ArrayBuffer"),A=v("string"),S=v("function"),_=v("number"),N=t=>null!==t&&"object"==typeof t,T=t=>{if("object"!==b(t))return!1;let e=g(t);return(null===e||e===Object.prototype||null===Object.getPrototypeOf(e))&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},R=y("Date"),C=y("File"),I=y("Blob"),P=y("FileList"),O=y("URLSearchParams"),[x,k,F,B]=["ReadableStream","Request","Response","Headers"].map(y);function L(t,e,{allOwnKeys:r=!1}={}){let n,i;if(null!=t){if("object"!=typeof t&&(t=[t]),w(t))for(n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else{let i;let f=r?Object.getOwnPropertyNames(t):Object.keys(t),o=f.length;for(n=0;n<o;n++)i=f[n],e.call(null,t[i],i,t)}}}function D(t,e){let r;e=e.toLowerCase();let n=Object.keys(t),i=n.length;for(;i-- >0;)if(e===(r=n[i]).toLowerCase())return r;return null}let U="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,G=t=>!M(t)&&t!==U,z=(i="undefined"!=typeof Uint8Array&&g(Uint8Array),t=>i&&t instanceof i),J=y("HTMLFormElement"),j=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),H=y("RegExp"),V=(t,e)=>{let r=Object.getOwnPropertyDescriptors(t),n={};L(r,(r,i)=>{let f;!1!==(f=e(r,i,t))&&(n[i]=f||r)}),Object.defineProperties(t,n)},X="abcdefghijklmnopqrstuvwxyz",q="0123456789",Z={DIGIT:q,ALPHA:X,ALPHA_DIGIT:X+X.toUpperCase()+q},K=y("AsyncFunction"),W=(a="function"==typeof setImmediate,s=S(U.postMessage),a?setImmediate:s?(u=`axios@${Math.random()}`,l=[],U.addEventListener("message",({source:t,data:e})=>{t===U&&e===u&&l.length&&l.shift()()},!1),t=>{l.push(t),U.postMessage(u,"*")}):t=>setTimeout(t)),Y="undefined"!=typeof queueMicrotask?queueMicrotask.bind(U):void 0!==p&&p.nextTick||W;var Q={isArray:w,isArrayBuffer:E,isBuffer:function(t){return null!==t&&!M(t)&&null!==t.constructor&&!M(t.constructor)&&S(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||S(t.append)&&("formdata"===(e=b(t))||"object"===e&&S(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&E(t.buffer)},isString:A,isNumber:_,isBoolean:t=>!0===t||!1===t,isObject:N,isPlainObject:T,isReadableStream:x,isRequest:k,isResponse:F,isHeaders:B,isUndefined:M,isDate:R,isFile:C,isBlob:I,isRegExp:H,isFunction:S,isStream:t=>N(t)&&S(t.pipe),isURLSearchParams:O,isTypedArray:z,isFileList:P,forEach:L,merge:function t(){let{caseless:e}=G(this)&&this||{},r={},n=(n,i)=>{let f=e&&D(r,i)||i;T(r[f])&&T(n)?r[f]=t(r[f],n):T(n)?r[f]=t({},n):w(n)?r[f]=n.slice():r[f]=n};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&L(arguments[t],n);return r},extend:(t,e,r,{allOwnKeys:n}={})=>(L(e,(e,n)=>{r&&S(e)?t[n]=d(e,r):t[n]=e},{allOwnKeys:n}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},toFlatObject:(t,e,r,n)=>{let i,f,o;let a={};if(e=e||{},null==t)return e;do{for(f=(i=Object.getOwnPropertyNames(t)).length;f-- >0;)o=i[f],(!n||n(o,t,e))&&!a[o]&&(e[o]=t[o],a[o]=!0);t=!1!==r&&g(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},kindOf:b,kindOfTest:y,endsWith:(t,e,r)=>{t=String(t),(void 0===r||r>t.length)&&(r=t.length),r-=e.length;let n=t.indexOf(e,r);return -1!==n&&n===r},toArray:t=>{if(!t)return null;if(w(t))return t;let e=t.length;if(!_(e))return null;let r=Array(e);for(;e-- >0;)r[e]=t[e];return r},forEachEntry:(t,e)=>{let r;let n=(t&&t[Symbol.iterator]).call(t);for(;(r=n.next())&&!r.done;){let n=r.value;e.call(t,n[0],n[1])}},matchAll:(t,e)=>{let r;let n=[];for(;null!==(r=t.exec(e));)n.push(r);return n},isHTMLForm:J,hasOwnProperty:j,hasOwnProp:j,reduceDescriptors:V,freezeMethods:t=>{V(t,(e,r)=>{if(S(t)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;if(S(t[r])){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},toObjectSet:(t,e)=>{let r={};return(t=>{t.forEach(t=>{r[t]=!0})})(w(t)?t:String(t).split(e)),r},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,r){return e.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(t,e)=>null!=t&&Number.isFinite(t=+t)?t:e,findKey:D,global:U,isContextDefined:G,ALPHABET:Z,generateString:(t=16,e=Z.ALPHA_DIGIT)=>{let r="",{length:n}=e;for(;t--;)r+=e[Math.random()*n|0];return r},isSpecCompliantForm:function(t){return!!(t&&S(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{let e=Array(10),r=(t,n)=>{if(N(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[n]=t;let i=w(t)?[]:{};return L(t,(t,e)=>{let f=r(t,n+1);M(f)||(i[e]=f)}),e[n]=void 0,i}}return t};return r(t,0)},isAsyncFn:K,isThenable:t=>t&&(N(t)||S(t))&&S(t.then)&&S(t.catch),setImmediate:W,asap:Y};function $(t,e,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i)}Q.inherits($,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Q.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});let tt=$.prototype,te={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{te[t]={value:t}}),Object.defineProperties($,te),Object.defineProperty(tt,"isAxiosError",{value:!0}),$.from=(t,e,r,n,i,f)=>{let o=Object.create(tt);return Q.toFlatObject(t,o,function(t){return t!==Error.prototype},t=>"isAxiosError"!==t),$.call(o,t.message,e,r,n,i),o.cause=t,o.name=t.name,f&&Object.assign(o,f),o};var tr=r(48764).Buffer;function tn(t){return Q.isPlainObject(t)||Q.isArray(t)}function ti(t){return Q.endsWith(t,"[]")?t.slice(0,-2):t}function tf(t,e,r){return t?t.concat(e).map(function(t,e){return t=ti(t),!r&&e?"["+t+"]":t}).join(r?".":""):e}let to=Q.toFlatObject(Q,{},null,function(t){return/^is[A-Z]/.test(t)});var ta=function(t,e,r){if(!Q.isObject(t))throw TypeError("target must be an object");e=e||new FormData;let n=(r=Q.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(t,e){return!Q.isUndefined(e[t])})).metaTokens,i=r.visitor||u,f=r.dots,o=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&Q.isSpecCompliantForm(e);if(!Q.isFunction(i))throw TypeError("visitor must be a function");function s(t){if(null===t)return"";if(Q.isDate(t))return t.toISOString();if(!a&&Q.isBlob(t))throw new $("Blob is not supported. Use a Buffer instead.");return Q.isArrayBuffer(t)||Q.isTypedArray(t)?a&&"function"==typeof Blob?new Blob([t]):tr.from(t):t}function u(t,r,i){let a=t;if(t&&!i&&"object"==typeof t){if(Q.endsWith(r,"{}"))r=n?r:r.slice(0,-2),t=JSON.stringify(t);else{var u;if(Q.isArray(t)&&(u=t,Q.isArray(u)&&!u.some(tn))||(Q.isFileList(t)||Q.endsWith(r,"[]"))&&(a=Q.toArray(t)))return r=ti(r),a.forEach(function(t,n){Q.isUndefined(t)||null===t||e.append(!0===o?tf([r],n,f):null===o?r:r+"[]",s(t))}),!1}}return!!tn(t)||(e.append(tf(i,r,f),s(t)),!1)}let l=[],h=Object.assign(to,{defaultVisitor:u,convertValue:s,isVisitable:tn});if(!Q.isObject(t))throw TypeError("data must be an object");return!function t(r,n){if(!Q.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),Q.forEach(r,function(r,f){!0===(!(Q.isUndefined(r)||null===r)&&i.call(e,r,Q.isString(f)?f.trim():f,n,h))&&t(r,n?n.concat(f):[f])}),l.pop()}}(t),e};function ts(t){let e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(t){return e[t]})}function tu(t,e){this._pairs=[],t&&ta(t,this,e)}let tl=tu.prototype;function th(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function tc(t,e,r){let n;if(!e)return t;let i=r&&r.encode||th,f=r&&r.serialize;if(n=f?f(e,r):Q.isURLSearchParams(e)?e.toString():new tu(e,r).toString(i)){let e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+n}return t}tl.append=function(t,e){this._pairs.push([t,e])},tl.toString=function(t){let e=t?function(e){return t.call(this,e,ts)}:ts;return this._pairs.map(function(t){return e(t[0])+"="+e(t[1])},"").join("&")};class td{constructor(){this.handlers=[]}use(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Q.forEach(this.handlers,function(e){null!==e&&t(e)})}}var tp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},tm="undefined"!=typeof URLSearchParams?URLSearchParams:tu,tg="undefined"!=typeof FormData?FormData:null,tb="undefined"!=typeof Blob?Blob:null;let ty="undefined"!=typeof window&&"undefined"!=typeof document,tv=(f="undefined"!=typeof navigator&&navigator.product,ty&&0>["ReactNative","NativeScript","NS"].indexOf(f)),tw="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,tM=ty&&window.location.href||"http://localhost";var tE={...c,isBrowser:!0,classes:{URLSearchParams:tm,FormData:tg,Blob:tb},protocols:["http","https","file","blob","url","data"]},tA=function(t){if(Q.isFormData(t)&&Q.isFunction(t.entries)){let e={};return Q.forEachEntry(t,(t,r)=>{!function t(e,r,n,i){let f=e[i++];if("__proto__"===f)return!0;let o=Number.isFinite(+f),a=i>=e.length;return(f=!f&&Q.isArray(n)?n.length:f,a)?Q.hasOwnProp(n,f)?n[f]=[n[f],r]:n[f]=r:(n[f]&&Q.isObject(n[f])||(n[f]=[]),t(e,r,n[f],i)&&Q.isArray(n[f])&&(n[f]=function(t){let e,r;let n={},i=Object.keys(t),f=i.length;for(e=0;e<f;e++)n[r=i[e]]=t[r];return n}(n[f]))),!o}(Q.matchAll(/\w+|\[(\w*)]/g,t).map(t=>"[]"===t[0]?"":t[1]||t[0]),r,e,0)}),e}return null};let tS={transitional:tp,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){let r;let n=e.getContentType()||"",i=n.indexOf("application/json")>-1,f=Q.isObject(t);if(f&&Q.isHTMLForm(t)&&(t=new FormData(t)),Q.isFormData(t))return i?JSON.stringify(tA(t)):t;if(Q.isArrayBuffer(t)||Q.isBuffer(t)||Q.isStream(t)||Q.isFile(t)||Q.isBlob(t)||Q.isReadableStream(t))return t;if(Q.isArrayBufferView(t))return t.buffer;if(Q.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();if(f){if(n.indexOf("application/x-www-form-urlencoded")>-1){var o,a;return(o=t,a=this.formSerializer,ta(o,new tE.classes.URLSearchParams,Object.assign({visitor:function(t,e,r,n){return tE.isNode&&Q.isBuffer(t)?(this.append(e,t.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},a))).toString()}if((r=Q.isFileList(t))||n.indexOf("multipart/form-data")>-1){let e=this.env&&this.env.FormData;return ta(r?{"files[]":t}:t,e&&new e,this.formSerializer)}}return f||i?(e.setContentType("application/json",!1),function(t,e,r){if(Q.isString(t))try{return(0,JSON.parse)(t),Q.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){let e=this.transitional||tS.transitional,r=e&&e.forcedJSONParsing,n="json"===this.responseType;if(Q.isResponse(t)||Q.isReadableStream(t))return t;if(t&&Q.isString(t)&&(r&&!this.responseType||n)){let r=e&&e.silentJSONParsing;try{return JSON.parse(t)}catch(t){if(!r&&n){if("SyntaxError"===t.name)throw $.from(t,$.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:tE.classes.FormData,Blob:tE.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Q.forEach(["delete","get","head","post","put","patch"],t=>{tS.headers[t]={}});let t_=Q.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var tN=t=>{let e,r,n;let i={};return t&&t.split("\n").forEach(function(t){n=t.indexOf(":"),e=t.substring(0,n).trim().toLowerCase(),r=t.substring(n+1).trim(),!e||i[e]&&t_[e]||("set-cookie"===e?i[e]?i[e].push(r):i[e]=[r]:i[e]=i[e]?i[e]+", "+r:r)}),i};let tT=Symbol("internals");function tR(t){return t&&String(t).trim().toLowerCase()}function tC(t){return!1===t||null==t?t:Q.isArray(t)?t.map(tC):String(t)}let tI=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function tP(t,e,r,n,i){if(Q.isFunction(n))return n.call(this,e,r);if(i&&(e=r),Q.isString(e)){if(Q.isString(n))return -1!==e.indexOf(n);if(Q.isRegExp(n))return n.test(e)}}class tO{constructor(t){t&&this.set(t)}set(t,e,r){let n=this;function i(t,e,r){let i=tR(e);if(!i)throw Error("header name must be a non-empty string");let f=Q.findKey(n,i);f&&void 0!==n[f]&&!0!==r&&(void 0!==r||!1===n[f])||(n[f||e]=tC(t))}let f=(t,e)=>Q.forEach(t,(t,r)=>i(t,r,e));if(Q.isPlainObject(t)||t instanceof this.constructor)f(t,e);else if(Q.isString(t)&&(t=t.trim())&&!tI(t))f(tN(t),e);else if(Q.isHeaders(t))for(let[e,n]of t.entries())i(n,e,r);else null!=t&&i(e,t,r);return this}get(t,e){if(t=tR(t)){let r=Q.findKey(this,t);if(r){let t=this[r];if(!e)return t;if(!0===e)return function(t){let e;let r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;e=n.exec(t);)r[e[1]]=e[2];return r}(t);if(Q.isFunction(e))return e.call(this,t,r);if(Q.isRegExp(e))return e.exec(t);throw TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=tR(t)){let r=Q.findKey(this,t);return!!(r&&void 0!==this[r]&&(!e||tP(this,this[r],r,e)))}return!1}delete(t,e){let r=this,n=!1;function i(t){if(t=tR(t)){let i=Q.findKey(r,t);i&&(!e||tP(r,r[i],i,e))&&(delete r[i],n=!0)}}return Q.isArray(t)?t.forEach(i):i(t),n}clear(t){let e=Object.keys(this),r=e.length,n=!1;for(;r--;){let i=e[r];(!t||tP(this,this[i],i,t,!0))&&(delete this[i],n=!0)}return n}normalize(t){let e=this,r={};return Q.forEach(this,(n,i)=>{let f=Q.findKey(r,i);if(f){e[f]=tC(n),delete e[i];return}let o=t?i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,r)=>e.toUpperCase()+r):String(i).trim();o!==i&&delete e[i],e[o]=tC(n),r[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let e=Object.create(null);return Q.forEach(this,(r,n)=>{null!=r&&!1!==r&&(e[n]=t&&Q.isArray(r)?r.join(", "):r)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){let r=new this(t);return e.forEach(t=>r.set(t)),r}static accessor(t){let e=(this[tT]=this[tT]={accessors:{}}).accessors,r=this.prototype;function n(t){let n=tR(t);e[n]||(!function(t,e){let r=Q.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(t,r,i){return this[n].call(this,e,t,r,i)},configurable:!0})})}(r,t),e[n]=!0)}return Q.isArray(t)?t.forEach(n):n(t),this}}function tx(t,e){let r=this||tS,n=e||r,i=tO.from(n.headers),f=n.data;return Q.forEach(t,function(t){f=t.call(r,f,i.normalize(),e?e.status:void 0)}),i.normalize(),f}function tk(t){return!!(t&&t.__CANCEL__)}function tF(t,e,r){$.call(this,null==t?"canceled":t,$.ERR_CANCELED,e,r),this.name="CanceledError"}function tB(t,e,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new $("Request failed with status code "+r.status,[$.ERR_BAD_REQUEST,$.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}tO.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Q.reduceDescriptors(tO.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[r]=t}}}),Q.freezeMethods(tO),Q.inherits(tF,$,{__CANCEL__:!0});var tL=function(t,e){let r;let n=Array(t=t||10),i=Array(t),f=0,o=0;return e=void 0!==e?e:1e3,function(a){let s=Date.now(),u=i[o];r||(r=s),n[f]=a,i[f]=s;let l=o,h=0;for(;l!==f;)h+=n[l++],l%=t;if((f=(f+1)%t)===o&&(o=(o+1)%t),s-r<e)return;let c=u&&s-u;return c?Math.round(1e3*h/c):void 0}},tD=function(t,e){let r,n,i=0,f=1e3/e,o=(e,f=Date.now())=>{i=f,r=null,n&&(clearTimeout(n),n=null),t.apply(null,e)};return[(...t)=>{let e=Date.now(),a=e-i;a>=f?o(t,e):(r=t,n||(n=setTimeout(()=>{n=null,o(r)},f-a)))},()=>r&&o(r)]};let tU=(t,e,r=3)=>{let n=0,i=tL(50,250);return tD(r=>{let f=r.loaded,o=r.lengthComputable?r.total:void 0,a=f-n,s=i(a);n=f,t({loaded:f,total:o,progress:o?f/o:void 0,bytes:a,rate:s||void 0,estimated:s&&o&&f<=o?(o-f)/s:void 0,event:r,lengthComputable:null!=o,[e?"download":"upload"]:!0})},r)},tG=(t,e)=>{let r=null!=t;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},tz=t=>(...e)=>Q.asap(()=>t(...e));var tJ=tE.hasStandardBrowserEnv?function(){let t;let e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(t){let n=t;return e&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=n(window.location.href),function(e){let r=Q.isString(e)?n(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0},tj=tE.hasStandardBrowserEnv?{write(t,e,r,n,i,f){let o=[t+"="+encodeURIComponent(e)];Q.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),Q.isString(n)&&o.push("path="+n),Q.isString(i)&&o.push("domain="+i),!0===f&&o.push("secure"),document.cookie=o.join("; ")},read(t){let e=document.cookie.match(RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function tH(t,e){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t:e}let tV=t=>t instanceof tO?{...t}:t;function tX(t,e){e=e||{};let r={};function n(t,e,r){return Q.isPlainObject(t)&&Q.isPlainObject(e)?Q.merge.call({caseless:r},t,e):Q.isPlainObject(e)?Q.merge({},e):Q.isArray(e)?e.slice():e}function i(t,e,r){return Q.isUndefined(e)?Q.isUndefined(t)?void 0:n(void 0,t,r):n(t,e,r)}function f(t,e){if(!Q.isUndefined(e))return n(void 0,e)}function o(t,e){return Q.isUndefined(e)?Q.isUndefined(t)?void 0:n(void 0,t):n(void 0,e)}function a(r,i,f){return f in e?n(r,i):f in t?n(void 0,r):void 0}let s={url:f,method:f,data:f,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(t,e)=>i(tV(t),tV(e),!0)};return Q.forEach(Object.keys(Object.assign({},t,e)),function(n){let f=s[n]||i,o=f(t[n],e[n],n);Q.isUndefined(o)&&f!==a||(r[n]=o)}),r}var tq=t=>{let e;let r=tX({},t),{data:n,withXSRFToken:i,xsrfHeaderName:f,xsrfCookieName:o,headers:a,auth:s}=r;if(r.headers=a=tO.from(a),r.url=tc(tH(r.baseURL,r.url),t.params,t.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),Q.isFormData(n)){if(tE.hasStandardBrowserEnv||tE.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(e=a.getContentType())){let[t,...r]=e?e.split(";").map(t=>t.trim()).filter(Boolean):[];a.setContentType([t||"multipart/form-data",...r].join("; "))}}if(tE.hasStandardBrowserEnv&&(i&&Q.isFunction(i)&&(i=i(r)),i||!1!==i&&tJ(r.url))){let t=f&&o&&tj.read(o);t&&a.set(f,t)}return r},tZ="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise(function(e,r){let n,i,f,o,a;let s=tq(t),u=s.data,l=tO.from(s.headers).normalize(),{responseType:h,onUploadProgress:c,onDownloadProgress:d}=s;function p(){o&&o(),a&&a(),s.cancelToken&&s.cancelToken.unsubscribe(n),s.signal&&s.signal.removeEventListener("abort",n)}let m=new XMLHttpRequest;function g(){if(!m)return;let n=tO.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());tB(function(t){e(t),p()},function(t){r(t),p()},{data:h&&"text"!==h&&"json"!==h?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:n,config:t,request:m}),m=null}m.open(s.method.toUpperCase(),s.url,!0),m.timeout=s.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(r(new $("Request aborted",$.ECONNABORTED,t,m)),m=null)},m.onerror=function(){r(new $("Network Error",$.ERR_NETWORK,t,m)),m=null},m.ontimeout=function(){let e=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded",n=s.transitional||tp;s.timeoutErrorMessage&&(e=s.timeoutErrorMessage),r(new $(e,n.clarifyTimeoutError?$.ETIMEDOUT:$.ECONNABORTED,t,m)),m=null},void 0===u&&l.setContentType(null),"setRequestHeader"in m&&Q.forEach(l.toJSON(),function(t,e){m.setRequestHeader(e,t)}),Q.isUndefined(s.withCredentials)||(m.withCredentials=!!s.withCredentials),h&&"json"!==h&&(m.responseType=s.responseType),d&&([f,a]=tU(d,!0),m.addEventListener("progress",f)),c&&m.upload&&([i,o]=tU(c),m.upload.addEventListener("progress",i),m.upload.addEventListener("loadend",o)),(s.cancelToken||s.signal)&&(n=e=>{m&&(r(!e||e.type?new tF(null,t,m):e),m.abort(),m=null)},s.cancelToken&&s.cancelToken.subscribe(n),s.signal&&(s.signal.aborted?n():s.signal.addEventListener("abort",n)));let b=function(t){let e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(s.url);if(b&&-1===tE.protocols.indexOf(b)){r(new $("Unsupported protocol "+b+":",$.ERR_BAD_REQUEST,t));return}m.send(u||null)})},tK=(t,e)=>{let r,n=new AbortController,i=function(t){if(!r){r=!0,o();let e=t instanceof Error?t:this.reason;n.abort(e instanceof $?e:new tF(e instanceof Error?e.message:e))}},f=e&&setTimeout(()=>{i(new $(`timeout ${e} of ms exceeded`,$.ETIMEDOUT))},e),o=()=>{t&&(f&&clearTimeout(f),f=null,t.forEach(t=>{t&&(t.removeEventListener?t.removeEventListener("abort",i):t.unsubscribe(i))}),t=null)};t.forEach(t=>t&&t.addEventListener&&t.addEventListener("abort",i));let{signal:a}=n;return a.unsubscribe=o,[a,()=>{f&&clearTimeout(f),f=null}]};let tW=function*(t,e){let r,n=t.byteLength;if(!e||n<e){yield t;return}let i=0;for(;i<n;)r=i+e,yield t.slice(i,r),i=r},tY=async function*(t,e,r){for await(let n of t)yield*tW(ArrayBuffer.isView(n)?n:await r(String(n)),e)},tQ=(t,e,r,n,i)=>{let f;let o=tY(t,e,i),a=0,s=t=>{!f&&(f=!0,n&&n(t))};return new ReadableStream({async pull(t){try{let{done:e,value:n}=await o.next();if(e){s(),t.close();return}let i=n.byteLength;if(r){let t=a+=i;r(t)}t.enqueue(new Uint8Array(n))}catch(t){throw s(t),t}},cancel:t=>(s(t),o.return())},{highWaterMark:2})},t$="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,t0=t$&&"function"==typeof ReadableStream,t1=t$&&("function"==typeof TextEncoder?(o=new TextEncoder,t=>o.encode(t)):async t=>new Uint8Array(await new Response(t).arrayBuffer())),t6=(t,...e)=>{try{return!!t(...e)}catch(t){return!1}},t5=t0&&t6(()=>{let t=!1,e=new Request(tE.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),t2=t0&&t6(()=>Q.isReadableStream(new Response("").body)),t8={stream:t2&&(t=>t.body)};t$&&(h=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(t=>{t8[t]||(t8[t]=Q.isFunction(h[t])?e=>e[t]():(e,r)=>{throw new $(`Response type '${t}' is not supported`,$.ERR_NOT_SUPPORT,r)})}));let t3=async t=>null==t?0:Q.isBlob(t)?t.size:Q.isSpecCompliantForm(t)?(await new Request(t).arrayBuffer()).byteLength:Q.isArrayBufferView(t)||Q.isArrayBuffer(t)?t.byteLength:(Q.isURLSearchParams(t)&&(t+=""),Q.isString(t))?(await t1(t)).byteLength:void 0,t4=async(t,e)=>{let r=Q.toFiniteNumber(t.getContentLength());return null==r?t3(e):r},t9={http:null,xhr:tZ,fetch:t$&&(async t=>{let e,r,n,{url:i,method:f,data:o,signal:a,cancelToken:s,timeout:u,onDownloadProgress:l,onUploadProgress:h,responseType:c,headers:d,withCredentials:p="same-origin",fetchOptions:m}=tq(t);c=c?(c+"").toLowerCase():"text";let[g,b]=a||s||u?tK([a,s],u):[],y=()=>{e||setTimeout(()=>{g&&g.unsubscribe()}),e=!0};try{if(h&&t5&&"get"!==f&&"head"!==f&&0!==(n=await t4(d,o))){let t,e=new Request(i,{method:"POST",body:o,duplex:"half"});if(Q.isFormData(o)&&(t=e.headers.get("content-type"))&&d.setContentType(t),e.body){let[t,r]=tG(n,tU(tz(h)));o=tQ(e.body,65536,t,r,t1)}}Q.isString(p)||(p=p?"include":"omit"),r=new Request(i,{...m,signal:g,method:f.toUpperCase(),headers:d.normalize().toJSON(),body:o,duplex:"half",credentials:p});let e=await fetch(r),a=t2&&("stream"===c||"response"===c);if(t2&&(l||a)){let t={};["status","statusText","headers"].forEach(r=>{t[r]=e[r]});let r=Q.toFiniteNumber(e.headers.get("content-length")),[n,i]=l&&tG(r,tU(tz(l),!0))||[];e=new Response(tQ(e.body,65536,n,()=>{i&&i(),a&&y()},t1),t)}c=c||"text";let s=await t8[Q.findKey(t8,c)||"text"](e,t);return a||y(),b&&b(),await new Promise((n,i)=>{tB(n,i,{data:s,headers:tO.from(e.headers),status:e.status,statusText:e.statusText,config:t,request:r})})}catch(e){if(y(),e&&"TypeError"===e.name&&/fetch/i.test(e.message))throw Object.assign(new $("Network Error",$.ERR_NETWORK,t,r),{cause:e.cause||e});throw $.from(e,e&&e.code,t,r)}})};Q.forEach(t9,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}});let t7=t=>`- ${t}`,et=t=>Q.isFunction(t)||null===t||!1===t;var ee=t=>{let e,r;let{length:n}=t=Q.isArray(t)?t:[t],i={};for(let f=0;f<n;f++){let n;if(r=e=t[f],!et(e)&&void 0===(r=t9[(n=String(e)).toLowerCase()]))throw new $(`Unknown adapter '${n}'`);if(r)break;i[n||"#"+f]=r}if(!r){let t=Object.entries(i).map(([t,e])=>`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build"));throw new $("There is no suitable adapter to dispatch the request "+(n?t.length>1?"since :\n"+t.map(t7).join("\n"):" "+t7(t[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function er(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new tF(null,t)}function en(t){return er(t),t.headers=tO.from(t.headers),t.data=tx.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),ee(t.adapter||tS.adapter)(t).then(function(e){return er(t),e.data=tx.call(t,t.transformResponse,e),e.headers=tO.from(e.headers),e},function(e){return!tk(e)&&(er(t),e&&e.response&&(e.response.data=tx.call(t,t.transformResponse,e.response),e.response.headers=tO.from(e.response.headers))),Promise.reject(e)})}let ei="1.7.4",ef={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{ef[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});let eo={};ef.transitional=function(t,e,r){function n(t,e){return"[Axios v"+ei+"] Transitional option '"+t+"'"+e+(r?". "+r:"")}return(r,i,f)=>{if(!1===t)throw new $(n(i," has been removed"+(e?" in "+e:"")),$.ERR_DEPRECATED);return e&&!eo[i]&&(eo[i]=!0,console.warn(n(i," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,i,f)}};var ea={assertOptions:function(t,e,r){if("object"!=typeof t)throw new $("options must be an object",$.ERR_BAD_OPTION_VALUE);let n=Object.keys(t),i=n.length;for(;i-- >0;){let f=n[i],o=e[f];if(o){let e=t[f],r=void 0===e||o(e,f,t);if(!0!==r)throw new $("option "+f+" must be "+r,$.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new $("Unknown option "+f,$.ERR_BAD_OPTION)}},validators:ef};let es=ea.validators;class eu{constructor(t){this.defaults=t,this.interceptors={request:new td,response:new td}}async request(t,e){try{return await this._request(t,e)}catch(t){if(t instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=Error();let r=e.stack?e.stack.replace(/^.+\n/,""):"";try{t.stack?r&&!String(t.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+r):t.stack=r}catch(t){}}throw t}}_request(t,e){let r,n;"string"==typeof t?(e=e||{}).url=t:e=t||{};let{transitional:i,paramsSerializer:f,headers:o}=e=tX(this.defaults,e);void 0!==i&&ea.assertOptions(i,{silentJSONParsing:es.transitional(es.boolean),forcedJSONParsing:es.transitional(es.boolean),clarifyTimeoutError:es.transitional(es.boolean)},!1),null!=f&&(Q.isFunction(f)?e.paramsSerializer={serialize:f}:ea.assertOptions(f,{encode:es.function,serialize:es.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase();let a=o&&Q.merge(o.common,o[e.method]);o&&Q.forEach(["delete","get","head","post","put","patch","common"],t=>{delete o[t]}),e.headers=tO.concat(a,o);let s=[],u=!0;this.interceptors.request.forEach(function(t){("function"!=typeof t.runWhen||!1!==t.runWhen(e))&&(u=u&&t.synchronous,s.unshift(t.fulfilled,t.rejected))});let l=[];this.interceptors.response.forEach(function(t){l.push(t.fulfilled,t.rejected)});let h=0;if(!u){let t=[en.bind(this),void 0];for(t.unshift.apply(t,s),t.push.apply(t,l),n=t.length,r=Promise.resolve(e);h<n;)r=r.then(t[h++],t[h++]);return r}n=s.length;let c=e;for(h=0;h<n;){let t=s[h++],e=s[h++];try{c=t(c)}catch(t){e.call(this,t);break}}try{r=en.call(this,c)}catch(t){return Promise.reject(t)}for(h=0,n=l.length;h<n;)r=r.then(l[h++],l[h++]);return r}getUri(t){return tc(tH((t=tX(this.defaults,t)).baseURL,t.url),t.params,t.paramsSerializer)}}Q.forEach(["delete","get","head","options"],function(t){eu.prototype[t]=function(e,r){return this.request(tX(r||{},{method:t,url:e,data:(r||{}).data}))}}),Q.forEach(["post","put","patch"],function(t){function e(e){return function(r,n,i){return this.request(tX(i||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}eu.prototype[t]=e(),eu.prototype[t+"Form"]=e(!0)});class el{constructor(t){let e;if("function"!=typeof t)throw TypeError("executor must be a function.");this.promise=new Promise(function(t){e=t});let r=this;this.promise.then(t=>{if(!r._listeners)return;let e=r._listeners.length;for(;e-- >0;)r._listeners[e](t);r._listeners=null}),this.promise.then=t=>{let e;let n=new Promise(t=>{r.subscribe(t),e=t}).then(t);return n.cancel=function(){r.unsubscribe(e)},n},t(function(t,n,i){r.reason||(r.reason=new tF(t,n,i),e(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;let e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}static source(){let t;return{token:new el(function(e){t=e}),cancel:t}}}let eh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(eh).forEach(([t,e])=>{eh[e]=t});let ec=function t(e){let r=new eu(e),n=d(eu.prototype.request,r);return Q.extend(n,eu.prototype,r,{allOwnKeys:!0}),Q.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return t(tX(e,r))},n}(tS);ec.Axios=eu,ec.CanceledError=tF,ec.CancelToken=el,ec.isCancel=tk,ec.VERSION=ei,ec.toFormData=ta,ec.AxiosError=$,ec.Cancel=ec.CanceledError,ec.all=function(t){return Promise.all(t)},ec.spread=function(t){return function(e){return t.apply(null,e)}},ec.isAxiosError=function(t){return Q.isObject(t)&&!0===t.isAxiosError},ec.mergeConfig=tX,ec.AxiosHeaders=tO,ec.formToJSON=t=>tA(Q.isHTMLForm(t)?new FormData(t):t),ec.getAdapter=ee,ec.HttpStatusCode=eh,ec.default=ec;var ed=ec},1272:function(t,e,r){"use strict";r.d(e,{A8:function(){return tB}});var n={isNothing:/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function(t){return null==t},isObject:function(t){return"object"==typeof t&&null!==t},repeat:function(t,e){var r,n="";for(r=0;r<e;r+=1)n+=t;return n},isNegativeZero:function(t){return 0===t&&Number.NEGATIVE_INFINITY===1/t}};function i(t,e){var r="",n=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+="\n\n"+t.mark.snippet),n+" "+r):n}function f(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=i(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||""}function o(t,e,r,n,i){var f="",o="",a=Math.floor(i/2)-1;return n-e>a&&(e=n-a+(f=" ... ").length),r-n>a&&(r=n+a-(o=" ...").length),{str:f+t.slice(e,r).replace(/\t/g,"→")+o,pos:n-e+f.length}}function a(t,e){return n.repeat(" ",e-t.length)+t}f.prototype=Object.create(Error.prototype),f.prototype.constructor=f,f.prototype.toString=function(t){return this.name+": "+i(this,t)};var s=function(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),"number"!=typeof e.indent&&(e.indent=1),"number"!=typeof e.linesBefore&&(e.linesBefore=3),"number"!=typeof e.linesAfter&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],f=[],s=-1;u=r.exec(t.buffer);)f.push(u.index),i.push(u.index+u[0].length),t.position<=u.index&&s<0&&(s=i.length-2);s<0&&(s=i.length-1);var u,l,h,c="",d=Math.min(t.line+e.linesAfter,f.length).toString().length,p=e.maxLength-(e.indent+d+3);for(l=1;l<=e.linesBefore&&!(s-l<0);l++)h=o(t.buffer,i[s-l],f[s-l],t.position-(i[s]-i[s-l]),p),c=n.repeat(" ",e.indent)+a((t.line-l+1).toString(),d)+" | "+h.str+"\n"+c;for(h=o(t.buffer,i[s],f[s],t.position,p),c+=n.repeat(" ",e.indent)+a((t.line+1).toString(),d)+" | "+h.str+"\n"+n.repeat("-",e.indent+d+3+h.pos)+"^\n",l=1;l<=e.linesAfter&&!(s+l>=f.length);l++)h=o(t.buffer,i[s+l],f[s+l],t.position-(i[s]-i[s+l]),p),c+=n.repeat(" ",e.indent)+a((t.line+l+1).toString(),d)+" | "+h.str+"\n";return c.replace(/\n$/,"")},u=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],l=["scalar","sequence","mapping"],h=function(t,e){var r,n;if(Object.keys(e=e||{}).forEach(function(e){if(-1===u.indexOf(e))throw new f('Unknown option "'+e+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(t){return t},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=(r=e.styleAliases||null,n={},null!==r&&Object.keys(r).forEach(function(t){r[t].forEach(function(e){n[String(e)]=t})}),n),-1===l.indexOf(this.kind))throw new f('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')};function c(t,e){var r=[];return t[e].forEach(function(t){var e=r.length;r.forEach(function(r,n){r.tag===t.tag&&r.kind===t.kind&&r.multi===t.multi&&(e=n)}),r[e]=t}),r}function d(t){return this.extend(t)}d.prototype.extend=function(t){var e=[],r=[];if(t instanceof h)r.push(t);else if(Array.isArray(t))r=r.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(e=e.concat(t.implicit)),t.explicit&&(r=r.concat(t.explicit));else throw new f("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.forEach(function(t){if(!(t instanceof h))throw new f("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(t.loadKind&&"scalar"!==t.loadKind)throw new f("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(t.multi)throw new f("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(t){if(!(t instanceof h))throw new f("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(d.prototype);return n.implicit=(this.implicit||[]).concat(e),n.explicit=(this.explicit||[]).concat(r),n.compiledImplicit=c(n,"implicit"),n.compiledExplicit=c(n,"explicit"),n.compiledTypeMap=function(){var t,e,r={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function n(t){t.multi?(r.multi[t.kind].push(t),r.multi.fallback.push(t)):r[t.kind][t.tag]=r.fallback[t.tag]=t}for(t=0,e=arguments.length;t<e;t+=1)arguments[t].forEach(n);return r}(n.compiledImplicit,n.compiledExplicit),n};var p=new h("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return null!==t?t:""}}),m=new h("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return null!==t?t:[]}}),g=new h("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return null!==t?t:{}}}),b=new d({explicit:[p,m,g]}),y=new h("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(t){if(null===t)return!0;var e=t.length;return 1===e&&"~"===t||4===e&&("null"===t||"Null"===t||"NULL"===t)},construct:function(){return null},predicate:function(t){return null===t},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"}),v=new h("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(t){if(null===t)return!1;var e=t.length;return 4===e&&("true"===t||"True"===t||"TRUE"===t)||5===e&&("false"===t||"False"===t||"FALSE"===t)},construct:function(t){return"true"===t||"True"===t||"TRUE"===t},predicate:function(t){return"[object Boolean]"===Object.prototype.toString.call(t)},represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"}),w=new h("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(t){if(null===t)return!1;var e,r,n,i,f=t.length,o=0,a=!1;if(!f)return!1;if(("-"===(i=t[o])||"+"===i)&&(i=t[++o]),"0"===i){if(o+1===f)return!0;if("b"===(i=t[++o])){for(o++;o<f;o++)if("_"!==(i=t[o])){if("0"!==i&&"1"!==i)return!1;a=!0}return a&&"_"!==i}if("x"===i){for(o++;o<f;o++)if("_"!==(i=t[o])){if(!(48<=(e=t.charCodeAt(o))&&e<=57||65<=e&&e<=70||97<=e&&e<=102))return!1;a=!0}return a&&"_"!==i}if("o"===i){for(o++;o<f;o++)if("_"!==(i=t[o])){if(!(48<=(r=t.charCodeAt(o))&&r<=55))return!1;a=!0}return a&&"_"!==i}}if("_"===i)return!1;for(;o<f;o++)if("_"!==(i=t[o])){if(!(48<=(n=t.charCodeAt(o))&&n<=57))return!1;a=!0}return!!a&&"_"!==i},construct:function(t){var e,r=t,n=1;if(-1!==r.indexOf("_")&&(r=r.replace(/_/g,"")),("-"===(e=r[0])||"+"===e)&&("-"===e&&(n=-1),e=(r=r.slice(1))[0]),"0"===r)return 0;if("0"===e){if("b"===r[1])return n*parseInt(r.slice(2),2);if("x"===r[1])return n*parseInt(r.slice(2),16);if("o"===r[1])return n*parseInt(r.slice(2),8)}return n*parseInt(r,10)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&t%1==0&&!n.isNegativeZero(t)},represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),M=RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),E=/^[-+]?[0-9]+e/,A=new h("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(t){return!!(null!==t&&M.test(t)&&"_"!==t[t.length-1])},construct:function(t){var e,r;return(r="-"===(e=t.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),".inf"===e)?1===r?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===e?NaN:r*parseFloat(e,10)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||n.isNegativeZero(t))},represent:function(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(n.isNegativeZero(t))return"-0.0";return r=t.toString(10),E.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"}),S=b.extend({implicit:[y,v,w,A]}),_=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),N=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"),T=new h("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(t){return null!==t&&(null!==_.exec(t)||null!==N.exec(t))},construct:function(t){var e,r,n,i,f,o,a,s,u=0,l=null;if(null===(e=_.exec(t))&&(e=N.exec(t)),null===e)throw Error("Date resolve error");if(r=+e[1],n=+e[2]-1,i=+e[3],!e[4])return new Date(Date.UTC(r,n,i));if(f=+e[4],o=+e[5],a=+e[6],e[7]){for(u=e[7].slice(0,3);u.length<3;)u+="0";u=+u}return e[9]&&(l=(60*+e[10]+ +(e[11]||0))*6e4,"-"===e[9]&&(l=-l)),s=new Date(Date.UTC(r,n,i,f,o,a,u)),l&&s.setTime(s.getTime()-l),s},instanceOf:Date,represent:function(t){return t.toISOString()}}),R=new h("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(t){return"<<"===t||null===t}}),C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r",I=new h("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(t){if(null===t)return!1;var e,r,n=0,i=t.length;for(r=0;r<i;r++)if(!((e=C.indexOf(t.charAt(r)))>64)){if(e<0)return!1;n+=6}return n%8==0},construct:function(t){var e,r,n=t.replace(/[\r\n=]/g,""),i=n.length,f=0,o=[];for(e=0;e<i;e++)e%4==0&&e&&(o.push(f>>16&255),o.push(f>>8&255),o.push(255&f)),f=f<<6|C.indexOf(n.charAt(e));return 0==(r=i%4*6)?(o.push(f>>16&255),o.push(f>>8&255),o.push(255&f)):18===r?(o.push(f>>10&255),o.push(f>>2&255)):12===r&&o.push(f>>4&255),new Uint8Array(o)},predicate:function(t){return"[object Uint8Array]"===Object.prototype.toString.call(t)},represent:function(t){var e,r,n="",i=0,f=t.length;for(e=0;e<f;e++)e%3==0&&e&&(n+=C[i>>18&63]+C[i>>12&63]+C[i>>6&63]+C[63&i]),i=(i<<8)+t[e];return 0==(r=f%3)?n+=C[i>>18&63]+C[i>>12&63]+C[i>>6&63]+C[63&i]:2===r?n+=C[i>>10&63]+C[i>>4&63]+C[i<<2&63]+C[64]:1===r&&(n+=C[i>>2&63]+C[i<<4&63]+C[64]+C[64]),n}}),P=Object.prototype.hasOwnProperty,O=Object.prototype.toString,x=new h("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(t){if(null===t)return!0;var e,r,n,i,f,o=[];for(e=0,r=t.length;e<r;e+=1){if(n=t[e],f=!1,"[object Object]"!==O.call(n))return!1;for(i in n)if(P.call(n,i)){if(f)return!1;f=!0}if(!f||-1!==o.indexOf(i))return!1;o.push(i)}return!0},construct:function(t){return null!==t?t:[]}}),k=Object.prototype.toString,F=new h("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(t){var e,r,n,i,f;if(null===t)return!0;for(e=0,f=Array(t.length),r=t.length;e<r;e+=1){if(n=t[e],"[object Object]"!==k.call(n)||1!==(i=Object.keys(n)).length)return!1;f[e]=[i[0],n[i[0]]]}return!0},construct:function(t){var e,r,n,i,f;if(null===t)return[];for(e=0,f=Array(t.length),r=t.length;e<r;e+=1)i=Object.keys(n=t[e]),f[e]=[i[0],n[i[0]]];return f}}),B=Object.prototype.hasOwnProperty,L=new h("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(t){var e;if(null===t)return!0;for(e in t)if(B.call(t,e)&&null!==t[e])return!1;return!0},construct:function(t){return null!==t?t:{}}}),D=S.extend({implicit:[T,R],explicit:[I,x,F,L]}),U=Object.prototype.hasOwnProperty,G=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,z=/[\x85\u2028\u2029]/,J=/[,\[\]\{\}]/,j=/^(?:!|!!|![a-z\-]+!)$/i,H=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function V(t){return Object.prototype.toString.call(t)}function X(t){return 10===t||13===t}function q(t){return 9===t||32===t}function Z(t){return 9===t||32===t||10===t||13===t}function K(t){return 44===t||91===t||93===t||123===t||125===t}function W(t){return 48===t?"\0":97===t?"\x07":98===t?"\b":116===t?"	":9===t?"	":110===t?"\n":118===t?"\v":102===t?"\f":114===t?"\r":101===t?"\x1b":32===t?" ":34===t?'"':47===t?"/":92===t?"\\":78===t?"\x85":95===t?"\xa0":76===t?"\u2028":80===t?"\u2029":""}for(var Y=Array(256),Q=Array(256),$=0;$<256;$++)Y[$]=W($)?1:0,Q[$]=W($);function tt(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||D,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function te(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=s(r),new f(e,r)}function tr(t,e){throw te(t,e)}function tn(t,e){t.onWarning&&t.onWarning.call(null,te(t,e))}var ti={YAML:function(t,e,r){var n,i,f;null!==t.version&&tr(t,"duplication of %YAML directive"),1!==r.length&&tr(t,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&tr(t,"ill-formed argument of the YAML directive"),i=parseInt(n[1],10),f=parseInt(n[2],10),1!==i&&tr(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=f<2,1!==f&&2!==f&&tn(t,"unsupported YAML version of the document")},TAG:function(t,e,r){var n,i;2!==r.length&&tr(t,"TAG directive accepts exactly two arguments"),n=r[0],i=r[1],j.test(n)||tr(t,"ill-formed tag handle (first argument) of the TAG directive"),U.call(t.tagMap,n)&&tr(t,'there is a previously declared suffix for "'+n+'" tag handle'),H.test(i)||tr(t,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch(e){tr(t,"tag prefix is malformed: "+i)}t.tagMap[n]=i}};function tf(t,e,r,n){var i,f,o,a;if(e<r){if(a=t.input.slice(e,r),n)for(i=0,f=a.length;i<f;i+=1)9===(o=a.charCodeAt(i))||32<=o&&o<=1114111||tr(t,"expected valid JSON character");else G.test(a)&&tr(t,"the stream contains non-printable characters");t.result+=a}}function to(t,e,r,i){var f,o,a,s;for(n.isObject(r)||tr(t,"cannot merge mappings; the provided source object is unacceptable"),a=0,s=(f=Object.keys(r)).length;a<s;a+=1)o=f[a],U.call(e,o)||(e[o]=r[o],i[o]=!0)}function ta(t,e,r,n,i,f,o,a,s){var u,l;if(Array.isArray(i))for(u=0,l=(i=Array.prototype.slice.call(i)).length;u<l;u+=1)Array.isArray(i[u])&&tr(t,"nested arrays are not supported inside keys"),"object"==typeof i&&"[object Object]"===V(i[u])&&(i[u]="[object Object]");if("object"==typeof i&&"[object Object]"===V(i)&&(i="[object Object]"),i=String(i),null===e&&(e={}),"tag:yaml.org,2002:merge"===n){if(Array.isArray(f))for(u=0,l=f.length;u<l;u+=1)to(t,e,f[u],r);else to(t,e,f,r)}else!t.json&&!U.call(r,i)&&U.call(e,i)&&(t.line=o||t.line,t.lineStart=a||t.lineStart,t.position=s||t.position,tr(t,"duplicated mapping key")),"__proto__"===i?Object.defineProperty(e,i,{configurable:!0,enumerable:!0,writable:!0,value:f}):e[i]=f,delete r[i];return e}function ts(t){var e;10===(e=t.input.charCodeAt(t.position))?t.position++:13===e?(t.position++,10===t.input.charCodeAt(t.position)&&t.position++):tr(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function tu(t,e,r){for(var n=0,i=t.input.charCodeAt(t.position);0!==i;){for(;q(i);)9===i&&-1===t.firstTabInLine&&(t.firstTabInLine=t.position),i=t.input.charCodeAt(++t.position);if(e&&35===i)do i=t.input.charCodeAt(++t.position);while(10!==i&&13!==i&&0!==i);if(X(i))for(ts(t),i=t.input.charCodeAt(t.position),n++,t.lineIndent=0;32===i;)t.lineIndent++,i=t.input.charCodeAt(++t.position);else break}return -1!==r&&0!==n&&t.lineIndent<r&&tn(t,"deficient indentation"),n}function tl(t){var e,r=t.position;return!!((45===(e=t.input.charCodeAt(r))||46===e)&&e===t.input.charCodeAt(r+1)&&e===t.input.charCodeAt(r+2)&&(r+=3,0===(e=t.input.charCodeAt(r))||Z(e)))}function th(t,e){1===e?t.result+=" ":e>1&&(t.result+=n.repeat("\n",e-1))}function tc(t,e){var r,n,i=t.tag,f=t.anchor,o=[],a=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=o),n=t.input.charCodeAt(t.position);0!==n&&(-1!==t.firstTabInLine&&(t.position=t.firstTabInLine,tr(t,"tab characters must not be used in indentation")),45===n&&Z(t.input.charCodeAt(t.position+1)));){if(a=!0,t.position++,tu(t,!0,-1)&&t.lineIndent<=e){o.push(null),n=t.input.charCodeAt(t.position);continue}if(r=t.line,td(t,e,3,!1,!0),o.push(t.result),tu(t,!0,-1),n=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&0!==n)tr(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return!!a&&(t.tag=i,t.anchor=f,t.kind="sequence",t.result=o,!0)}function td(t,e,r,i,f){var o,a,s,u,l,h,c,d,p,m=1,g=!1,b=!1;if(null!==t.listener&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,o=a=s=4===r||3===r,i&&tu(t,!0,-1)&&(g=!0,t.lineIndent>e?m=1:t.lineIndent===e?m=0:t.lineIndent<e&&(m=-1)),1===m)for(;function(t){var e,r,n,i,f=!1,o=!1;if(33!==(i=t.input.charCodeAt(t.position)))return!1;if(null!==t.tag&&tr(t,"duplication of a tag property"),60===(i=t.input.charCodeAt(++t.position))?(f=!0,i=t.input.charCodeAt(++t.position)):33===i?(o=!0,r="!!",i=t.input.charCodeAt(++t.position)):r="!",e=t.position,f){do i=t.input.charCodeAt(++t.position);while(0!==i&&62!==i);t.position<t.length?(n=t.input.slice(e,t.position),i=t.input.charCodeAt(++t.position)):tr(t,"unexpected end of the stream within a verbatim tag")}else{for(;0!==i&&!Z(i);)33===i&&(o?tr(t,"tag suffix cannot contain exclamation marks"):(r=t.input.slice(e-1,t.position+1),j.test(r)||tr(t,"named tag handle cannot contain such characters"),o=!0,e=t.position+1)),i=t.input.charCodeAt(++t.position);n=t.input.slice(e,t.position),J.test(n)&&tr(t,"tag suffix cannot contain flow indicator characters")}n&&!H.test(n)&&tr(t,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch(e){tr(t,"tag name is malformed: "+n)}return f?t.tag=n:U.call(t.tagMap,r)?t.tag=t.tagMap[r]+n:"!"===r?t.tag="!"+n:"!!"===r?t.tag="tag:yaml.org,2002:"+n:tr(t,'undeclared tag handle "'+r+'"'),!0}(t)||function(t){var e,r;if(38!==(r=t.input.charCodeAt(t.position)))return!1;for(null!==t.anchor&&tr(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;0!==r&&!Z(r)&&!K(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&tr(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}(t);)tu(t,!0,-1)?(g=!0,s=o,t.lineIndent>e?m=1:t.lineIndent===e?m=0:t.lineIndent<e&&(m=-1)):s=!1;if(s&&(s=g||f),(1===m||4===r)&&(d=1===r||2===r?e:e+1,p=t.position-t.lineStart,1===m?s&&(tc(t,p)||function(t,e,r){var n,i,f,o,a,s,u,l=t.tag,h=t.anchor,c={},d=Object.create(null),p=null,m=null,g=null,b=!1,y=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=c),u=t.input.charCodeAt(t.position);0!==u;){if(b||-1===t.firstTabInLine||(t.position=t.firstTabInLine,tr(t,"tab characters must not be used in indentation")),n=t.input.charCodeAt(t.position+1),f=t.line,(63===u||58===u)&&Z(n))63===u?(b&&(ta(t,c,d,p,m,null,o,a,s),p=m=g=null),y=!0,b=!0,i=!0):b?(b=!1,i=!0):tr(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,u=n;else{if(o=t.line,a=t.lineStart,s=t.position,!td(t,r,2,!1,!0))break;if(t.line===f){for(u=t.input.charCodeAt(t.position);q(u);)u=t.input.charCodeAt(++t.position);if(58===u)Z(u=t.input.charCodeAt(++t.position))||tr(t,"a whitespace character is expected after the key-value separator within a block mapping"),b&&(ta(t,c,d,p,m,null,o,a,s),p=m=g=null),y=!0,b=!1,i=!1,p=t.tag,m=t.result;else{if(!y)return t.tag=l,t.anchor=h,!0;tr(t,"can not read an implicit mapping pair; a colon is missed")}}else{if(!y)return t.tag=l,t.anchor=h,!0;tr(t,"can not read a block mapping entry; a multiline key may not be an implicit key")}}if((t.line===f||t.lineIndent>e)&&(b&&(o=t.line,a=t.lineStart,s=t.position),td(t,e,4,!0,i)&&(b?m=t.result:g=t.result),b||(ta(t,c,d,p,m,g,o,a,s),p=m=g=null),tu(t,!0,-1),u=t.input.charCodeAt(t.position)),(t.line===f||t.lineIndent>e)&&0!==u)tr(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return b&&ta(t,c,d,p,m,null,o,a,s),y&&(t.tag=l,t.anchor=h,t.kind="mapping",t.result=c),y}(t,p,d))||function(t,e){var r,n,i,f,o,a,s,u,l,h,c,d,p=!0,m=t.tag,g=t.anchor,b=Object.create(null);if(91===(d=t.input.charCodeAt(t.position)))o=93,u=!1,f=[];else{if(123!==d)return!1;o=125,u=!0,f={}}for(null!==t.anchor&&(t.anchorMap[t.anchor]=f),d=t.input.charCodeAt(++t.position);0!==d;){if(tu(t,!0,e),(d=t.input.charCodeAt(t.position))===o)return t.position++,t.tag=m,t.anchor=g,t.kind=u?"mapping":"sequence",t.result=f,!0;p?44===d&&tr(t,"expected the node content, but found ','"):tr(t,"missed comma between flow collection entries"),h=l=c=null,a=s=!1,63===d&&Z(t.input.charCodeAt(t.position+1))&&(a=s=!0,t.position++,tu(t,!0,e)),r=t.line,n=t.lineStart,i=t.position,td(t,e,1,!1,!0),h=t.tag,l=t.result,tu(t,!0,e),d=t.input.charCodeAt(t.position),(s||t.line===r)&&58===d&&(a=!0,d=t.input.charCodeAt(++t.position),tu(t,!0,e),td(t,e,1,!1,!0),c=t.result),u?ta(t,f,b,h,l,c,r,n,i):a?f.push(ta(t,null,b,h,l,c,r,n,i)):f.push(l),tu(t,!0,e),44===(d=t.input.charCodeAt(t.position))?(p=!0,d=t.input.charCodeAt(++t.position)):p=!1}tr(t,"unexpected end of the stream within a flow collection")}(t,d)?b=!0:(a&&function(t,e){var r,i,f,o,a,s=1,u=!1,l=!1,h=e,c=0,d=!1;if(124===(a=t.input.charCodeAt(t.position)))f=!1;else{if(62!==a)return!1;f=!0}for(t.kind="scalar",t.result="";0!==a;)if(43===(a=t.input.charCodeAt(++t.position))||45===a)1===s?s=43===a?3:2:tr(t,"repeat of a chomping mode identifier");else if((o=48<=(r=a)&&r<=57?r-48:-1)>=0)0===o?tr(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?tr(t,"repeat of an indentation width identifier"):(h=e+o-1,l=!0);else break;if(q(a)){do a=t.input.charCodeAt(++t.position);while(q(a));if(35===a)do a=t.input.charCodeAt(++t.position);while(!X(a)&&0!==a)}for(;0!==a;){for(ts(t),t.lineIndent=0,a=t.input.charCodeAt(t.position);(!l||t.lineIndent<h)&&32===a;)t.lineIndent++,a=t.input.charCodeAt(++t.position);if(!l&&t.lineIndent>h&&(h=t.lineIndent),X(a)){c++;continue}if(t.lineIndent<h){3===s?t.result+=n.repeat("\n",u?1+c:c):1===s&&u&&(t.result+="\n");break}for(f?q(a)?(d=!0,t.result+=n.repeat("\n",u?1+c:c)):d?(d=!1,t.result+=n.repeat("\n",c+1)):0===c?u&&(t.result+=" "):t.result+=n.repeat("\n",c):t.result+=n.repeat("\n",u?1+c:c),u=!0,l=!0,c=0,i=t.position;!X(a)&&0!==a;)a=t.input.charCodeAt(++t.position);tf(t,i,t.position,!1)}return!0}(t,d)||function(t,e){var r,n,i;if(39!==(r=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,n=i=t.position;0!==(r=t.input.charCodeAt(t.position));)if(39===r){if(tf(t,n,t.position,!0),39!==(r=t.input.charCodeAt(++t.position)))return!0;n=t.position,t.position++,i=t.position}else X(r)?(tf(t,n,i,!0),th(t,tu(t,!1,e)),n=i=t.position):t.position===t.lineStart&&tl(t)?tr(t,"unexpected end of the document within a single quoted scalar"):(t.position++,i=t.position);tr(t,"unexpected end of the stream within a single quoted scalar")}(t,d)||function(t,e){var r,n,i,f,o,a,s,u;if(34!==(a=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;0!==(a=t.input.charCodeAt(t.position));){if(34===a)return tf(t,r,t.position,!0),t.position++,!0;if(92===a){if(tf(t,r,t.position,!0),X(a=t.input.charCodeAt(++t.position)))tu(t,!1,e);else if(a<256&&Y[a])t.result+=Q[a],t.position++;else if((o=120===(s=a)?2:117===s?4:85===s?8:0)>0){for(i=o,f=0;i>0;i--)(o=function(t){var e;return 48<=t&&t<=57?t-48:97<=(e=32|t)&&e<=102?e-97+10:-1}(a=t.input.charCodeAt(++t.position)))>=0?f=(f<<4)+o:tr(t,"expected hexadecimal character");t.result+=(u=f)<=65535?String.fromCharCode(u):String.fromCharCode((u-65536>>10)+55296,(u-65536&1023)+56320),t.position++}else tr(t,"unknown escape sequence");r=n=t.position}else X(a)?(tf(t,r,n,!0),th(t,tu(t,!1,e)),r=n=t.position):t.position===t.lineStart&&tl(t)?tr(t,"unexpected end of the document within a double quoted scalar"):(t.position++,n=t.position)}tr(t,"unexpected end of the stream within a double quoted scalar")}(t,d)?b=!0:function(t){var e,r,n;if(42!==(n=t.input.charCodeAt(t.position)))return!1;for(n=t.input.charCodeAt(++t.position),e=t.position;0!==n&&!Z(n)&&!K(n);)n=t.input.charCodeAt(++t.position);return t.position===e&&tr(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),U.call(t.anchorMap,r)||tr(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],tu(t,!0,-1),!0}(t)?(b=!0,(null!==t.tag||null!==t.anchor)&&tr(t,"alias node should not have any properties")):function(t,e,r){var n,i,f,o,a,s,u,l,h=t.kind,c=t.result;if(Z(l=t.input.charCodeAt(t.position))||K(l)||35===l||38===l||42===l||33===l||124===l||62===l||39===l||34===l||37===l||64===l||96===l||(63===l||45===l)&&(Z(n=t.input.charCodeAt(t.position+1))||r&&K(n)))return!1;for(t.kind="scalar",t.result="",i=f=t.position,o=!1;0!==l;){if(58===l){if(Z(n=t.input.charCodeAt(t.position+1))||r&&K(n))break}else if(35===l){if(Z(t.input.charCodeAt(t.position-1)))break}else if(t.position===t.lineStart&&tl(t)||r&&K(l))break;else if(X(l)){if(a=t.line,s=t.lineStart,u=t.lineIndent,tu(t,!1,-1),t.lineIndent>=e){o=!0,l=t.input.charCodeAt(t.position);continue}t.position=f,t.line=a,t.lineStart=s,t.lineIndent=u;break}o&&(tf(t,i,f,!1),th(t,t.line-a),i=f=t.position,o=!1),q(l)||(f=t.position+1),l=t.input.charCodeAt(++t.position)}return tf(t,i,f,!1),!!t.result||(t.kind=h,t.result=c,!1)}(t,d,1===r)&&(b=!0,null===t.tag&&(t.tag="?")),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):0===m&&(b=s&&tc(t,p))),null===t.tag)null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);else if("?"===t.tag){for(null!==t.result&&"scalar"!==t.kind&&tr(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),u=0,l=t.implicitTypes.length;u<l;u+=1)if((c=t.implicitTypes[u]).resolve(t.result)){t.result=c.construct(t.result),t.tag=c.tag,null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);break}}else if("!"!==t.tag){if(U.call(t.typeMap[t.kind||"fallback"],t.tag))c=t.typeMap[t.kind||"fallback"][t.tag];else for(u=0,c=null,l=(h=t.typeMap.multi[t.kind||"fallback"]).length;u<l;u+=1)if(t.tag.slice(0,h[u].tag.length)===h[u].tag){c=h[u];break}c||tr(t,"unknown tag !<"+t.tag+">"),null!==t.result&&c.kind!==t.kind&&tr(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+c.kind+'", not "'+t.kind+'"'),c.resolve(t.result,t.tag)?(t.result=c.construct(t.result,t.tag),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):tr(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return null!==t.listener&&t.listener("close",t),null!==t.tag||null!==t.anchor||b}function tp(t,e){t=String(t),e=e||{},0!==t.length&&(10!==t.charCodeAt(t.length-1)&&13!==t.charCodeAt(t.length-1)&&(t+="\n"),65279===t.charCodeAt(0)&&(t=t.slice(1)));var r=new tt(t,e),n=t.indexOf("\0");for(-1!==n&&(r.position=n,tr(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)!function(t){var e,r,n,i,f=t.position,o=!1;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);0!==(i=t.input.charCodeAt(t.position))&&(tu(t,!0,-1),i=t.input.charCodeAt(t.position),!(t.lineIndent>0)&&37===i);){for(o=!0,i=t.input.charCodeAt(++t.position),e=t.position;0!==i&&!Z(i);)i=t.input.charCodeAt(++t.position);for(r=t.input.slice(e,t.position),n=[],r.length<1&&tr(t,"directive name must not be less than one character in length");0!==i;){for(;q(i);)i=t.input.charCodeAt(++t.position);if(35===i){do i=t.input.charCodeAt(++t.position);while(0!==i&&!X(i));break}if(X(i))break;for(e=t.position;0!==i&&!Z(i);)i=t.input.charCodeAt(++t.position);n.push(t.input.slice(e,t.position))}0!==i&&ts(t),U.call(ti,r)?ti[r](t,r,n):tn(t,'unknown document directive "'+r+'"')}if(tu(t,!0,-1),0===t.lineIndent&&45===t.input.charCodeAt(t.position)&&45===t.input.charCodeAt(t.position+1)&&45===t.input.charCodeAt(t.position+2)?(t.position+=3,tu(t,!0,-1)):o&&tr(t,"directives end mark is expected"),td(t,t.lineIndent-1,4,!1,!0),tu(t,!0,-1),t.checkLineBreaks&&z.test(t.input.slice(f,t.position))&&tn(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&tl(t)){46===t.input.charCodeAt(t.position)&&(t.position+=3,tu(t,!0,-1));return}t.position<t.length-1&&tr(t,"end of the stream or a document separator is expected")}(r);return r.documents}var tm=Object.prototype.toString,tg=Object.prototype.hasOwnProperty,tb={};tb[0]="\\0",tb[7]="\\a",tb[8]="\\b",tb[9]="\\t",tb[10]="\\n",tb[11]="\\v",tb[12]="\\f",tb[13]="\\r",tb[27]="\\e",tb[34]='\\"',tb[92]="\\\\",tb[133]="\\N",tb[160]="\\_",tb[8232]="\\L",tb[8233]="\\P";var ty=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],tv=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function tw(t){this.schema=t.schema||D,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=n.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=function(t,e){var r,n,i,f,o,a,s;if(null===e)return{};for(i=0,r={},f=(n=Object.keys(e)).length;i<f;i+=1)a=String(e[o=n[i]]),"!!"===o.slice(0,2)&&(o="tag:yaml.org,2002:"+o.slice(2)),(s=t.compiledTypeMap.fallback[o])&&tg.call(s.styleAliases,a)&&(a=s.styleAliases[a]),r[o]=a;return r}(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType='"'===t.quotingType?2:1,this.forceQuotes=t.forceQuotes||!1,this.replacer="function"==typeof t.replacer?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function tM(t,e){for(var r,i=n.repeat(" ",e),f=0,o=-1,a="",s=t.length;f<s;)-1===(o=t.indexOf("\n",f))?(r=t.slice(f),f=s):(r=t.slice(f,o+1),f=o+1),r.length&&"\n"!==r&&(a+=i),a+=r;return a}function tE(t,e){return"\n"+n.repeat(" ",t.indent*e)}function tA(t){return 32===t||9===t}function tS(t){return 32<=t&&t<=126||161<=t&&t<=55295&&8232!==t&&8233!==t||57344<=t&&t<=65533&&65279!==t||65536<=t&&t<=1114111}function t_(t){return tS(t)&&65279!==t&&13!==t&&10!==t}function tN(t,e,r){var n=t_(t),i=n&&!tA(t);return(r?n:n&&44!==t&&91!==t&&93!==t&&123!==t&&125!==t)&&35!==t&&!(58===e&&!i)||t_(e)&&!tA(e)&&35===t||58===e&&i}function tT(t,e){var r,n=t.charCodeAt(e);return n>=55296&&n<=56319&&e+1<t.length&&(r=t.charCodeAt(e+1))>=56320&&r<=57343?(n-55296)*1024+r-56320+65536:n}function tR(t){return/^\n* /.test(t)}function tC(t,e){var r=tR(t)?String(e):"",n="\n"===t[t.length-1];return r+(n&&("\n"===t[t.length-2]||"\n"===t)?"+":n?"":"-")+"\n"}function tI(t){return"\n"===t[t.length-1]?t.slice(0,-1):t}function tP(t,e){if(""===t||" "===t[0])return t;for(var r,n,i=/ [^ ]/g,f=0,o=0,a=0,s="";r=i.exec(t);)(a=r.index)-f>e&&(n=o>f?o:a,s+="\n"+t.slice(f,n),f=n+1),o=a;return s+="\n",t.length-f>e&&o>f?s+=t.slice(f,o)+"\n"+t.slice(o+1):s+=t.slice(f),s.slice(1)}function tO(t,e,r,n){var i,f,o,a="",s=t.tag;for(i=0,f=r.length;i<f;i+=1)o=r[i],t.replacer&&(o=t.replacer.call(r,String(i),o)),(tk(t,e+1,o,!0,!0,!1,!0)||void 0===o&&tk(t,e+1,null,!0,!0,!1,!0))&&(n&&""===a||(a+=tE(t,e)),t.dump&&10===t.dump.charCodeAt(0)?a+="-":a+="- ",a+=t.dump);t.tag=s,t.dump=a||"[]"}function tx(t,e,r){var n,i,o,a,s,u;for(o=0,a=(i=r?t.explicitTypes:t.implicitTypes).length;o<a;o+=1)if(((s=i[o]).instanceOf||s.predicate)&&(!s.instanceOf||"object"==typeof e&&e instanceof s.instanceOf)&&(!s.predicate||s.predicate(e))){if(r?s.multi&&s.representName?t.tag=s.representName(e):t.tag=s.tag:t.tag="?",s.represent){if(u=t.styleMap[s.tag]||s.defaultStyle,"[object Function]"===tm.call(s.represent))n=s.represent(e,u);else if(tg.call(s.represent,u))n=s.represent[u](e,u);else throw new f("!<"+s.tag+'> tag resolver accepts not "'+u+'" style');t.dump=n}return!0}return!1}function tk(t,e,r,i,o,a,s){t.tag=null,t.dump=r,tx(t,r,!1)||tx(t,r,!0);var u,l=tm.call(t.dump),h=i;i&&(i=t.flowLevel<0||t.flowLevel>e);var c,d,p,m="[object Object]"===l||"[object Array]"===l;if(m&&(p=-1!==(d=t.duplicates.indexOf(r))),(null!==t.tag&&"?"!==t.tag||p||2!==t.indent&&e>0)&&(o=!1),p&&t.usedDuplicates[d])t.dump="*ref_"+d;else{if(m&&p&&!t.usedDuplicates[d]&&(t.usedDuplicates[d]=!0),"[object Object]"===l)i&&0!==Object.keys(t.dump).length?(!function(t,e,r,n){var i,o,a,s,u,l,h="",c=t.tag,d=Object.keys(r);if(!0===t.sortKeys)d.sort();else if("function"==typeof t.sortKeys)d.sort(t.sortKeys);else if(t.sortKeys)throw new f("sortKeys must be a boolean or a function");for(i=0,o=d.length;i<o;i+=1)l="",n&&""===h||(l+=tE(t,e)),s=r[a=d[i]],t.replacer&&(s=t.replacer.call(r,a,s)),tk(t,e+1,a,!0,!0,!0)&&((u=null!==t.tag&&"?"!==t.tag||t.dump&&t.dump.length>1024)&&(t.dump&&10===t.dump.charCodeAt(0)?l+="?":l+="? "),l+=t.dump,u&&(l+=tE(t,e)),tk(t,e+1,s,!0,u)&&(t.dump&&10===t.dump.charCodeAt(0)?l+=":":l+=": ",l+=t.dump,h+=l));t.tag=c,t.dump=h||"{}"}(t,e,t.dump,o),p&&(t.dump="&ref_"+d+t.dump)):(!function(t,e,r){var n,i,f,o,a,s="",u=t.tag,l=Object.keys(r);for(n=0,i=l.length;n<i;n+=1)a="",""!==s&&(a+=", "),t.condenseFlow&&(a+='"'),o=r[f=l[n]],t.replacer&&(o=t.replacer.call(r,f,o)),tk(t,e,f,!1,!1)&&(t.dump.length>1024&&(a+="? "),a+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),tk(t,e,o,!1,!1)&&(a+=t.dump,s+=a));t.tag=u,t.dump="{"+s+"}"}(t,e,t.dump),p&&(t.dump="&ref_"+d+" "+t.dump));else if("[object Array]"===l)i&&0!==t.dump.length?(t.noArrayIndent&&!s&&e>0?tO(t,e-1,t.dump,o):tO(t,e,t.dump,o),p&&(t.dump="&ref_"+d+t.dump)):(!function(t,e,r){var n,i,f,o="",a=t.tag;for(n=0,i=r.length;n<i;n+=1)f=r[n],t.replacer&&(f=t.replacer.call(r,String(n),f)),(tk(t,e,f,!1,!1)||void 0===f&&tk(t,e,null,!1,!1))&&(""!==o&&(o+=","+(t.condenseFlow?"":" ")),o+=t.dump);t.tag=a,t.dump="["+o+"]"}(t,e,t.dump),p&&(t.dump="&ref_"+d+" "+t.dump));else if("[object String]"===l)"?"!==t.tag&&(u=t.dump,t.dump=function(){if(0===u.length)return 2===t.quotingType?'""':"''";if(!t.noCompatMode&&(-1!==ty.indexOf(u)||tv.test(u)))return 2===t.quotingType?'"'+u+'"':"'"+u+"'";var r=t.indent*Math.max(1,e),i=-1===t.lineWidth?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-r);switch(function(t,e,r,n,i,f,o,a){var s,u,l,h=0,c=null,d=!1,p=!1,m=-1!==n,g=-1,b=tS(s=tT(t,0))&&65279!==s&&!tA(s)&&45!==s&&63!==s&&58!==s&&44!==s&&91!==s&&93!==s&&123!==s&&125!==s&&35!==s&&38!==s&&42!==s&&33!==s&&124!==s&&61!==s&&62!==s&&39!==s&&34!==s&&37!==s&&64!==s&&96!==s&&!tA(u=tT(t,t.length-1))&&58!==u;if(e||o)for(l=0;l<t.length;h>=65536?l+=2:l++){if(!tS(h=tT(t,l)))return 5;b=b&&tN(h,c,a),c=h}else{for(l=0;l<t.length;h>=65536?l+=2:l++){if(10===(h=tT(t,l)))d=!0,m&&(p=p||l-g-1>n&&" "!==t[g+1],g=l);else if(!tS(h))return 5;b=b&&tN(h,c,a),c=h}p=p||m&&l-g-1>n&&" "!==t[g+1]}return d||p?r>9&&tR(t)?5:o?2===f?5:2:p?4:3:!b||o||i(t)?2===f?5:2:1}(u,a||t.flowLevel>-1&&e>=t.flowLevel,t.indent,i,function(e){return function(t,e){var r,n;for(r=0,n=t.implicitTypes.length;r<n;r+=1)if(t.implicitTypes[r].resolve(e))return!0;return!1}(t,e)},t.quotingType,t.forceQuotes&&!a,h)){case 1:return u;case 2:return"'"+u.replace(/'/g,"''")+"'";case 3:return"|"+tC(u,t.indent)+tI(tM(u,r));case 4:return">"+tC(u,t.indent)+tI(tM(function(t,e){for(var r,n,i,f=/(\n+)([^\n]*)/g,o=(r=-1!==(r=t.indexOf("\n"))?r:t.length,f.lastIndex=r,tP(t.slice(0,r),e)),a="\n"===t[0]||" "===t[0];i=f.exec(t);){var s=i[1],u=i[2];n=" "===u[0],o+=s+(a||n||""===u?"":"\n")+tP(u,e),a=n}return o}(u,i),r));case 5:return'"'+function(t){for(var e,r="",i=0,o=0;o<t.length;i>=65536?o+=2:o++)!(e=tb[i=tT(t,o)])&&tS(i)?(r+=t[o],i>=65536&&(r+=t[o+1])):r+=e||function(t){var e,r,i;if(e=t.toString(16).toUpperCase(),t<=255)r="x",i=2;else if(t<=65535)r="u",i=4;else if(t<=4294967295)r="U",i=8;else throw new f("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+n.repeat("0",i-e.length)+e}(i);return r}(u)+'"';default:throw new f("impossible error: invalid scalar style")}}());else{if("[object Undefined]"===l||t.skipInvalid)return!1;throw new f("unacceptable kind of an object to dump "+l)}null!==t.tag&&"?"!==t.tag&&(c=encodeURI("!"===t.tag[0]?t.tag.slice(1):t.tag).replace(/!/g,"%21"),c="!"===t.tag[0]?"!"+c:"tag:yaml.org,2002:"===c.slice(0,18)?"!!"+c.slice(18):"!<"+c+">",t.dump=c+" "+t.dump)}return!0}function tF(t,e){return function(){throw Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var tB=S,tL=tF("safeLoad","load"),tD=tF("safeLoadAll","loadAll"),tU=tF("safeDump","dump");e.ZP={Type:h,Schema:d,FAILSAFE_SCHEMA:b,JSON_SCHEMA:tB,CORE_SCHEMA:S,DEFAULT_SCHEMA:D,load:function(t,e){var r=tp(t,e);if(0!==r.length){if(1===r.length)return r[0];throw new f("expected a single document in the stream, but found more")}},loadAll:function(t,e,r){null!==e&&"object"==typeof e&&void 0===r&&(r=e,e=null);var n=tp(t,r);if("function"!=typeof e)return n;for(var i=0,f=n.length;i<f;i+=1)e(n[i])},dump:function(t,e){var r=new tw(e=e||{});r.noRefs||function(t,e){var r,n,i=[],f=[];for(function t(e,r,n){var i,f,o;if(null!==e&&"object"==typeof e){if(-1!==(f=r.indexOf(e)))-1===n.indexOf(f)&&n.push(f);else if(r.push(e),Array.isArray(e))for(f=0,o=e.length;f<o;f+=1)t(e[f],r,n);else for(f=0,o=(i=Object.keys(e)).length;f<o;f+=1)t(e[i[f]],r,n)}}(t,i,f),r=0,n=f.length;r<n;r+=1)e.duplicates.push(i[f[r]]);e.usedDuplicates=Array(n)}(t,r);var n=t;return(r.replacer&&(n=r.replacer.call({"":n},"",n)),tk(r,0,n,!0,!0))?r.dump+"\n":""},YAMLException:f,types:{binary:I,float:A,map:g,null:y,pairs:F,set:L,timestamp:T,bool:v,int:w,merge:R,omap:x,seq:m,str:p},safeLoad:tL,safeLoadAll:tD,safeDump:tU}},62074:function(t,e,r){"use strict";r.d(e,{WU:function(){return D}});var n,i={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function f(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.width?String(e.width):t.defaultWidth;return t.formats[r]||t.formats[t.defaultWidth]}}var o={date:f({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:f({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:f({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},a={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function s(t){return function(e,r){var n;if("formatting"===(null!=r&&r.context?String(r.context):"standalone")&&t.formattingValues){var i=t.defaultFormattingWidth||t.defaultWidth,f=null!=r&&r.width?String(r.width):i;n=t.formattingValues[f]||t.formattingValues[i]}else{var o=t.defaultWidth,a=null!=r&&r.width?String(r.width):t.defaultWidth;n=t.values[a]||t.values[o]}return n[t.argumentCallback?t.argumentCallback(e):e]}}function u(t){return function(e){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.width,f=i&&t.matchPatterns[i]||t.matchPatterns[t.defaultMatchWidth],o=e.match(f);if(!o)return null;var a=o[0],s=i&&t.parsePatterns[i]||t.parsePatterns[t.defaultParseWidth],u=Array.isArray(s)?function(t,e){for(var r=0;r<t.length;r++)if(e(t[r]))return r}(s,function(t){return t.test(a)}):function(t,e){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&e(t[r]))return r}(s,function(t){return t.test(a)});return r=t.valueCallback?t.valueCallback(u):u,{value:r=n.valueCallback?n.valueCallback(r):r,rest:e.slice(a.length)}}}var l={code:"en-US",formatDistance:function(t,e,r){var n,f=i[t];return(n="string"==typeof f?f:1===e?f.one:f.other.replace("{{count}}",e.toString()),null!=r&&r.addSuffix)?r.comparison&&r.comparison>0?"in "+n:n+" ago":n},formatLong:o,formatRelative:function(t,e,r,n){return a[t]},localize:{ordinalNumber:function(t,e){var r=Number(t),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:s({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:s({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:s({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:s({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:s({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(n={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}},function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(n.matchPattern);if(!r)return null;var i=r[0],f=t.match(n.parsePattern);if(!f)return null;var o=n.valueCallback?n.valueCallback(f[0]):f[0];return{value:o=e.valueCallback?e.valueCallback(o):o,rest:t.slice(i.length)}}),era:u({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:u({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:u({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:u({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:u({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},h={};function c(t){var e=Object.prototype.toString.call(t);return t instanceof Date||"object"==typeof t&&"[object Date]"===e?new t.constructor(+t):new Date("number"==typeof t||"[object Number]"===e||"string"==typeof t||"[object String]"===e?t:NaN)}function d(t){var e=c(t);return e.setHours(0,0,0,0),e}function p(t){var e=c(t),r=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return r.setUTCFullYear(e.getFullYear()),+t-+r}function m(t,e){return t instanceof Date?new t.constructor(e):new Date(e)}function g(t,e){var r,n,i,f,o,a,s=null!==(r=null!==(n=null!==(i=null!==(f=null==e?void 0:e.weekStartsOn)&&void 0!==f?f:null==e||null===(o=e.locale)||void 0===o||null===(o=o.options)||void 0===o?void 0:o.weekStartsOn)&&void 0!==i?i:h.weekStartsOn)&&void 0!==n?n:null===(a=h.locale)||void 0===a||null===(a=a.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==r?r:0,u=c(t),l=u.getDay();return u.setDate(u.getDate()-((l<s?7:0)+l-s)),u.setHours(0,0,0,0),u}function b(t){return g(t,{weekStartsOn:1})}function y(t){var e=c(t),r=e.getFullYear(),n=m(t,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);var i=b(n),f=m(t,0);f.setFullYear(r,0,4),f.setHours(0,0,0,0);var o=b(f);return e.getTime()>=i.getTime()?r+1:e.getTime()>=o.getTime()?r:r-1}function v(t,e){var r,n,i,f,o,a,s=c(t),u=s.getFullYear(),l=null!==(r=null!==(n=null!==(i=null!==(f=null==e?void 0:e.firstWeekContainsDate)&&void 0!==f?f:null==e||null===(o=e.locale)||void 0===o||null===(o=o.options)||void 0===o?void 0:o.firstWeekContainsDate)&&void 0!==i?i:h.firstWeekContainsDate)&&void 0!==n?n:null===(a=h.locale)||void 0===a||null===(a=a.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==r?r:1,d=m(t,0);d.setFullYear(u+1,0,l),d.setHours(0,0,0,0);var p=g(d,e),b=m(t,0);b.setFullYear(u,0,l),b.setHours(0,0,0,0);var y=g(b,e);return s.getTime()>=p.getTime()?u+1:s.getTime()>=y.getTime()?u:u-1}function w(t,e){var r=Math.abs(t).toString().padStart(e,"0");return(t<0?"-":"")+r}var M={y:function(t,e){var r=t.getFullYear(),n=r>0?r:1-r;return w("yy"===e?n%100:n,e.length)},M:function(t,e){var r=t.getMonth();return"M"===e?String(r+1):w(r+1,2)},d:function(t,e){return w(t.getDate(),e.length)},h:function(t,e){return w(t.getHours()%12||12,e.length)},H:function(t,e){return w(t.getHours(),e.length)},m:function(t,e){return w(t.getMinutes(),e.length)},s:function(t,e){return w(t.getSeconds(),e.length)},S:function(t,e){var r=e.length;return w(Math.trunc(t.getMilliseconds()*Math.pow(10,r-3)),e.length)}},E={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},A={G:function(t,e,r){var n=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(t,e,r){if("yo"===e){var n=t.getFullYear();return r.ordinalNumber(n>0?n:1-n,{unit:"year"})}return M.y(t,e)},Y:function(t,e,r,n){var i=v(t,n),f=i>0?i:1-i;return"YY"===e?w(f%100,2):"Yo"===e?r.ordinalNumber(f,{unit:"year"}):w(f,e.length)},R:function(t,e){return w(y(t),e.length)},u:function(t,e){return w(t.getFullYear(),e.length)},Q:function(t,e,r){var n=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(n);case"QQ":return w(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(t,e,r){var n=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(n);case"qq":return w(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(t,e,r){var n=t.getMonth();switch(e){case"M":case"MM":return M.M(t,e);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(t,e,r){var n=t.getMonth();switch(e){case"L":return String(n+1);case"LL":return w(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(t,e,r,n){var i,f,o,a,s,u,l,d,p,b,y=Math.round((+g(i=c(t),n)-+(d=null!==(f=null!==(o=null!==(a=null!==(s=null==n?void 0:n.firstWeekContainsDate)&&void 0!==s?s:null==n||null===(u=n.locale)||void 0===u||null===(u=u.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==a?a:h.firstWeekContainsDate)&&void 0!==o?o:null===(l=h.locale)||void 0===l||null===(l=l.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==f?f:1,p=v(i,n),(b=m(i,0)).setFullYear(p,0,d),b.setHours(0,0,0,0),g(b,n)))/6048e5)+1;return"wo"===e?r.ordinalNumber(y,{unit:"week"}):w(y,e.length)},I:function(t,e,r){var n,i,f,o=Math.round((+b(n=c(t))-+(i=y(n),(f=m(n,0)).setFullYear(i,0,4),f.setHours(0,0,0,0),b(f)))/6048e5)+1;return"Io"===e?r.ordinalNumber(o,{unit:"week"}):w(o,e.length)},d:function(t,e,r){return"do"===e?r.ordinalNumber(t.getDate(),{unit:"date"}):M.d(t,e)},D:function(t,e,r){var n,i,f,o,a,s,u=(o=n=c(t),i=c(n),(f=m(n,0)).setFullYear(i.getFullYear(),0,1),f.setHours(0,0,0,0),a=d(o),s=d(f),Math.round((+a-p(a)-(+s-p(s)))/864e5)+1);return"Do"===e?r.ordinalNumber(u,{unit:"dayOfYear"}):w(u,e.length)},E:function(t,e,r){var n=t.getDay();switch(e){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(t,e,r,n){var i=t.getDay(),f=(i-n.weekStartsOn+8)%7||7;switch(e){case"e":return String(f);case"ee":return w(f,2);case"eo":return r.ordinalNumber(f,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(t,e,r,n){var i=t.getDay(),f=(i-n.weekStartsOn+8)%7||7;switch(e){case"c":return String(f);case"cc":return w(f,e.length);case"co":return r.ordinalNumber(f,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(t,e,r){var n=t.getDay(),i=0===n?7:n;switch(e){case"i":return String(i);case"ii":return w(i,e.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(t,e,r){var n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(t,e,r){var n,i=t.getHours();switch(n=12===i?E.noon:0===i?E.midnight:i/12>=1?"pm":"am",e){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(t,e,r){var n,i=t.getHours();switch(n=i>=17?E.evening:i>=12?E.afternoon:i>=4?E.morning:E.night,e){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(t,e,r){if("ho"===e){var n=t.getHours()%12;return 0===n&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return M.h(t,e)},H:function(t,e,r){return"Ho"===e?r.ordinalNumber(t.getHours(),{unit:"hour"}):M.H(t,e)},K:function(t,e,r){var n=t.getHours()%12;return"Ko"===e?r.ordinalNumber(n,{unit:"hour"}):w(n,e.length)},k:function(t,e,r){var n=t.getHours();return(0===n&&(n=24),"ko"===e)?r.ordinalNumber(n,{unit:"hour"}):w(n,e.length)},m:function(t,e,r){return"mo"===e?r.ordinalNumber(t.getMinutes(),{unit:"minute"}):M.m(t,e)},s:function(t,e,r){return"so"===e?r.ordinalNumber(t.getSeconds(),{unit:"second"}):M.s(t,e)},S:function(t,e){return M.S(t,e)},X:function(t,e,r){var n=t.getTimezoneOffset();if(0===n)return"Z";switch(e){case"X":return _(n);case"XXXX":case"XX":return N(n);default:return N(n,":")}},x:function(t,e,r){var n=t.getTimezoneOffset();switch(e){case"x":return _(n);case"xxxx":case"xx":return N(n);default:return N(n,":")}},O:function(t,e,r){var n=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+S(n,":");default:return"GMT"+N(n,":")}},z:function(t,e,r){var n=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+S(n,":");default:return"GMT"+N(n,":")}},t:function(t,e,r){return w(Math.trunc(t.getTime()/1e3),e.length)},T:function(t,e,r){return w(t.getTime(),e.length)}};function S(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=t>0?"-":"+",n=Math.abs(t),i=Math.trunc(n/60),f=n%60;return 0===f?r+String(i):r+String(i)+e+w(f,2)}function _(t,e){return t%60==0?(t>0?"-":"+")+w(Math.abs(t)/60,2):N(t,e)}function N(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=Math.abs(t);return(t>0?"-":"+")+w(Math.trunc(r/60),2)+e+w(r%60,2)}var T=function(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},R=function(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},C={p:R,P:function(t,e){var r,n=t.match(/(P+)(p+)?/)||[],i=n[1],f=n[2];if(!f)return T(t,e);switch(i){case"P":r=e.dateTime({width:"short"});break;case"PP":r=e.dateTime({width:"medium"});break;case"PPP":r=e.dateTime({width:"long"});break;default:r=e.dateTime({width:"full"})}return r.replace("{{date}}",T(i,e)).replace("{{time}}",R(f,e))}},I=/^D+$/,P=/^Y+$/,O=["D","DD","YY","YYYY"],x=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,k=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,F=/^'([^]*?)'?$/,B=/''/g,L=/[a-zA-Z]/;function D(t,e,r){var n,i,f,o,a,s,u,d,p,m,g,b,y,v,w=null!==(n=null!==(i=null==r?void 0:r.locale)&&void 0!==i?i:h.locale)&&void 0!==n?n:l,M=null!==(f=null!==(o=null!==(a=null!==(s=null==r?void 0:r.firstWeekContainsDate)&&void 0!==s?s:null==r||null===(u=r.locale)||void 0===u||null===(u=u.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==a?a:h.firstWeekContainsDate)&&void 0!==o?o:null===(d=h.locale)||void 0===d||null===(d=d.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==f?f:1,E=null!==(p=null!==(m=null!==(g=null!==(b=null==r?void 0:r.weekStartsOn)&&void 0!==b?b:null==r||null===(y=r.locale)||void 0===y||null===(y=y.options)||void 0===y?void 0:y.weekStartsOn)&&void 0!==g?g:h.weekStartsOn)&&void 0!==m?m:null===(v=h.locale)||void 0===v||null===(v=v.options)||void 0===v?void 0:v.weekStartsOn)&&void 0!==p?p:0,S=c(t);if(!((S instanceof Date||"object"==typeof S&&"[object Date]"===Object.prototype.toString.call(S)||"number"==typeof S)&&!isNaN(Number(c(S)))))throw RangeError("Invalid time value");var _=e.match(k).map(function(t){var e=t[0];return"p"===e||"P"===e?(0,C[e])(t,w.formatLong):t}).join("").match(x).map(function(t){if("''"===t)return{isToken:!1,value:"'"};var e,r=t[0];if("'"===r)return{isToken:!1,value:(e=t.match(F))?e[1].replace(B,"'"):t};if(A[r])return{isToken:!0,value:t};if(r.match(L))throw RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return{isToken:!1,value:t}});w.localize.preprocessor&&(_=w.localize.preprocessor(S,_));var N={firstWeekContainsDate:M,weekStartsOn:E,locale:w};return _.map(function(n){if(!n.isToken)return n.value;var i=n.value;return(!(null!=r&&r.useAdditionalWeekYearTokens)&&P.test(i)||!(null!=r&&r.useAdditionalDayOfYearTokens)&&I.test(i))&&function(t,e,r){var n,i=(n="Y"===t[0]?"years":"days of the month","Use `".concat(t.toLowerCase(),"` instead of `").concat(t,"` (in `").concat(e,"`) for formatting ").concat(n," to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(console.warn(i),O.includes(t))throw RangeError(i)}(i,e,String(t)),(0,A[i[0]])(S,i,w.localize,N)}).join("")}},9134:function(t,e,r){"use strict";r.d(e,{Ix:function(){return k},Am:function(){return N}});var n=r(67294),i=function(){for(var t,e,r=0,n="",i=arguments.length;r<i;r++)(t=arguments[r])&&(e=function t(e){var r,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e){if(Array.isArray(e)){var f=e.length;for(r=0;r<f;r++)e[r]&&(n=t(e[r]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n)}return i}(t))&&(n&&(n+=" "),n+=e);return n};let f=t=>"number"==typeof t&&!isNaN(t),o=t=>"string"==typeof t,a=t=>"function"==typeof t,s=t=>o(t)||a(t)?t:null,u=t=>(0,n.isValidElement)(t)||o(t)||a(t)||f(t);function l(t){let{enter:e,exit:r,appendPosition:i=!1,collapse:f=!0,collapseDuration:o=300}=t;return function(t){let{children:a,position:s,preventExitTransition:u,done:l,nodeRef:h,isIn:c,playToast:d}=t,p=i?`${e}--${s}`:e,m=i?`${r}--${s}`:r,g=(0,n.useRef)(0);return(0,n.useLayoutEffect)(()=>{let t=h.current,e=p.split(" "),r=n=>{n.target===h.current&&(d(),t.removeEventListener("animationend",r),t.removeEventListener("animationcancel",r),0===g.current&&"animationcancel"!==n.type&&t.classList.remove(...e))};t.classList.add(...e),t.addEventListener("animationend",r),t.addEventListener("animationcancel",r)},[]),(0,n.useEffect)(()=>{let t=h.current,e=()=>{t.removeEventListener("animationend",e),f?function(t,e,r){void 0===r&&(r=300);let{scrollHeight:n,style:i}=t;requestAnimationFrame(()=>{i.minHeight="initial",i.height=n+"px",i.transition=`all ${r}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(e,r)})})}(t,l,o):l()};c||(u?e():(g.current=1,t.className+=` ${m}`,t.addEventListener("animationend",e)))},[c]),n.createElement(n.Fragment,null,a)}}function h(t,e){return null!=t?{content:t.content,containerId:t.props.containerId,id:t.props.toastId,theme:t.props.theme,type:t.props.type,data:t.props.data||{},isLoading:t.props.isLoading,icon:t.props.icon,status:e}:{}}let c=new Map,d=[],p=new Set,m=t=>p.forEach(e=>e(t)),g=()=>c.size>0;function b(t,e){var r;if(e)return!(null==(r=c.get(e))||!r.isToastActive(t));let n=!1;return c.forEach(e=>{e.isToastActive(t)&&(n=!0)}),n}function y(t,e){u(t)&&(g()||d.push({content:t,options:e}),c.forEach(r=>{r.buildToast(t,e)}))}function v(t,e){c.forEach(r=>{null!=e&&null!=e&&e.containerId?(null==e?void 0:e.containerId)===r.id&&r.toggle(t,null==e?void 0:e.id):r.toggle(t,null==e?void 0:e.id)})}function w(t){let{delay:e,isRunning:r,closeToast:f,type:o="default",hide:s,className:u,style:l,controlledProgress:h,progress:c,rtl:d,isIn:p,theme:m}=t,g=s||h&&0===c,b={...l,animationDuration:`${e}ms`,animationPlayState:r?"running":"paused"};h&&(b.transform=`scaleX(${c})`);let y=i("Toastify__progress-bar",h?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${m}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":d}),v=a(u)?u({rtl:d,type:o,defaultClassName:y}):i(y,u);return n.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":g},n.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${m} Toastify__progress-bar--${o}`}),n.createElement("div",{role:"progressbar","aria-hidden":g?"true":"false","aria-label":"notification timer",className:v,style:b,[h&&c>=1?"onTransitionEnd":"onAnimationEnd"]:h&&c<1?null:()=>{p&&f()}}))}let M=1,E=()=>""+M++;function A(t,e){return y(t,e),e.toastId}function S(t,e){return{...e,type:e&&e.type||t,toastId:e&&(o(e.toastId)||f(e.toastId))?e.toastId:E()}}function _(t){return(e,r)=>A(e,S(t,r))}function N(t,e){return A(t,S("default",e))}N.loading=(t,e)=>A(t,S("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e})),N.promise=function(t,e,r){let n,{pending:i,error:f,success:s}=e;i&&(n=o(i)?N.loading(i,r):N.loading(i.render,{...r,...i}));let u={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(t,e,i)=>{if(null==e)return void N.dismiss(n);let f={type:t,...u,...r,data:i},a=o(e)?{render:e}:e;return n?N.update(n,{...f,...a}):N(a.render,{...f,...a}),i},h=a(t)?t():t;return h.then(t=>l("success",s,t)).catch(t=>l("error",f,t)),h},N.success=_("success"),N.info=_("info"),N.error=_("error"),N.warning=_("warning"),N.warn=N.warning,N.dark=(t,e)=>A(t,S("default",{theme:"dark",...e})),N.dismiss=function(t){!function(t){var e;if(g()){if(null==t||o(e=t)||f(e))c.forEach(e=>{e.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){let e=c.get(t.containerId);e?e.removeToast(t.id):c.forEach(e=>{e.removeToast(t.id)})}}else d=d.filter(e=>null!=t&&e.options.toastId!==t)}(t)},N.clearWaitingQueue=function(t){void 0===t&&(t={}),c.forEach(e=>{!e.props.limit||t.containerId&&e.id!==t.containerId||e.clearQueue()})},N.isActive=b,N.update=function(t,e){void 0===e&&(e={});let r=((t,e)=>{var r;let{containerId:n}=e;return null==(r=c.get(n||1))?void 0:r.toasts.get(t)})(t,e);if(r){let{props:n,content:i}=r,f={delay:100,...n,...e,toastId:e.toastId||t,updateId:E()};f.toastId!==t&&(f.staleId=t);let o=f.render||i;delete f.render,A(o,f)}},N.done=t=>{N.update(t,{progress:1})},N.onChange=function(t){return p.add(t),()=>{p.delete(t)}},N.play=t=>v(!0,t),N.pause=t=>v(!1,t);let T="undefined"!=typeof window?n.useLayoutEffect:n.useEffect,R=t=>{let{theme:e,type:r,isLoading:i,...f}=t;return n.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===e?"currentColor":`var(--toastify-icon-color-${r})`,...f})},C={info:function(t){return n.createElement(R,{...t},n.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(t){return n.createElement(R,{...t},n.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(t){return n.createElement(R,{...t},n.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(t){return n.createElement(R,{...t},n.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return n.createElement("div",{className:"Toastify__spinner"})}},I=t=>{let{isRunning:e,preventExitTransition:r,toastRef:f,eventHandlers:o,playToast:s}=function(t){var e,r;let[i,f]=(0,n.useState)(!1),[o,a]=(0,n.useState)(!1),s=(0,n.useRef)(null),u=(0,n.useRef)({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:l,pauseOnHover:h,closeToast:d,onClick:p,closeOnClick:m}=t;function g(){f(!0)}function b(){f(!1)}function y(e){let r=s.current;u.canDrag&&r&&(u.didMove=!0,i&&b(),u.delta="x"===t.draggableDirection?e.clientX-u.start:e.clientY-u.start,u.start!==e.clientX&&(u.canCloseOnClick=!1),r.style.transform=`translate3d(${"x"===t.draggableDirection?`${u.delta}px, var(--y)`:`0, calc(${u.delta}px + var(--y))`},0)`,r.style.opacity=""+(1-Math.abs(u.delta/u.removalDistance)))}function v(){document.removeEventListener("pointermove",y),document.removeEventListener("pointerup",v);let e=s.current;if(u.canDrag&&u.didMove&&e){if(u.canDrag=!1,Math.abs(u.delta)>u.removalDistance)return a(!0),t.closeToast(),void t.collapseAll();e.style.transition="transform 0.2s, opacity 0.2s",e.style.removeProperty("transform"),e.style.removeProperty("opacity")}}null==(r=c.get((e={id:t.toastId,containerId:t.containerId,fn:f}).containerId||1))||r.setToggle(e.id,e.fn),(0,n.useEffect)(()=>{if(t.pauseOnFocusLoss)return document.hasFocus()||b(),window.addEventListener("focus",g),window.addEventListener("blur",b),()=>{window.removeEventListener("focus",g),window.removeEventListener("blur",b)}},[t.pauseOnFocusLoss]);let w={onPointerDown:function(e){if(!0===t.draggable||t.draggable===e.pointerType){u.didMove=!1,document.addEventListener("pointermove",y),document.addEventListener("pointerup",v);let r=s.current;u.canCloseOnClick=!0,u.canDrag=!0,r.style.transition="none","x"===t.draggableDirection?(u.start=e.clientX,u.removalDistance=r.offsetWidth*(t.draggablePercent/100)):(u.start=e.clientY,u.removalDistance=r.offsetHeight*(80===t.draggablePercent?1.5*t.draggablePercent:t.draggablePercent)/100)}},onPointerUp:function(e){let{top:r,bottom:n,left:i,right:f}=s.current.getBoundingClientRect();"touchend"!==e.nativeEvent.type&&t.pauseOnHover&&e.clientX>=i&&e.clientX<=f&&e.clientY>=r&&e.clientY<=n?b():g()}};return l&&h&&(w.onMouseEnter=b,t.stacked||(w.onMouseLeave=g)),m&&(w.onClick=t=>{p&&p(t),u.canCloseOnClick&&d()}),{playToast:g,pauseToast:b,isRunning:i,preventExitTransition:o,toastRef:s,eventHandlers:w}}(t),{closeButton:u,children:l,autoClose:h,onClick:d,type:p,hideProgressBar:m,closeToast:g,transition:b,position:y,className:v,style:M,bodyClassName:E,bodyStyle:A,progressClassName:S,progressStyle:_,updateId:N,role:T,progress:R,rtl:I,toastId:P,deleteToast:O,isIn:x,isLoading:k,closeOnClick:F,theme:B}=t,L=i("Toastify__toast",`Toastify__toast-theme--${B}`,`Toastify__toast--${p}`,{"Toastify__toast--rtl":I},{"Toastify__toast--close-on-click":F}),D=a(v)?v({rtl:I,position:y,type:p,defaultClassName:L}):i(L,v),U=function(t){let{theme:e,type:r,isLoading:i,icon:f}=t,o=null,s={theme:e,type:r};return!1===f||(a(f)?o=f({...s,isLoading:i}):(0,n.isValidElement)(f)?o=(0,n.cloneElement)(f,s):i?o=C.spinner():r in C&&(o=C[r](s))),o}(t),G=!!R||!h,z={closeToast:g,type:p,theme:B},J=null;return!1===u||(J=a(u)?u(z):(0,n.isValidElement)(u)?(0,n.cloneElement)(u,z):function(t){let{closeToast:e,theme:r,ariaLabel:i="close"}=t;return n.createElement("button",{className:`Toastify__close-button Toastify__close-button--${r}`,type:"button",onClick:t=>{t.stopPropagation(),e(t)},"aria-label":i},n.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},n.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(z)),n.createElement(b,{isIn:x,done:O,position:y,preventExitTransition:r,nodeRef:f,playToast:s},n.createElement("div",{id:P,onClick:d,"data-in":x,className:D,...o,style:M,ref:f},n.createElement("div",{...x&&{role:T},className:a(E)?E({type:p}):i("Toastify__toast-body",E),style:A},null!=U&&n.createElement("div",{className:i("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!k})},U),n.createElement("div",null,l)),J,n.createElement(w,{...N&&!G?{key:`pb-${N}`}:{},rtl:I,theme:B,delay:h,isRunning:e,isIn:x,closeToast:g,hide:m,type:p,style:_,className:S,controlledProgress:G,progress:R||0})))},P=function(t,e){return void 0===e&&(e=!1),{enter:`Toastify--animate Toastify__${t}-enter`,exit:`Toastify--animate Toastify__${t}-exit`,appendPosition:e}},O=l(P("bounce",!0)),x=(l(P("slide",!0)),l(P("zoom")),l(P("flip")),{position:"top-right",transition:O,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"});function k(t){let e={...x,...t},r=t.stacked,[l,p]=(0,n.useState)(!0),g=(0,n.useRef)(null),{getToastToRender:v,isToastActive:w,count:M}=function(t){let{subscribe:e,getSnapshot:r,setProps:i}=(0,n.useRef)(function(t){let e=t.containerId||1;return{subscribe(r){let i=function(t,e,r){let i=1,l=0,c=[],d=[],p=[],m=e,g=new Map,b=new Set,y=()=>{p=Array.from(g.values()),b.forEach(t=>t())},v=t=>{d=null==t?[]:d.filter(e=>e!==t),y()},w=t=>{let{toastId:e,onOpen:i,updateId:f,children:o}=t.props,s=null==f;t.staleId&&g.delete(t.staleId),g.set(e,t),d=[...d,t.props.toastId].filter(e=>e!==t.staleId),y(),r(h(t,s?"added":"updated")),s&&a(i)&&i((0,n.isValidElement)(o)&&o.props)};return{id:t,props:m,observe:t=>(b.add(t),()=>b.delete(t)),toggle:(t,e)=>{g.forEach(r=>{null!=e&&e!==r.props.toastId||a(r.toggle)&&r.toggle(t)})},removeToast:v,toasts:g,clearQueue:()=>{l-=c.length,c=[]},buildToast:(e,d)=>{var p,b;if((e=>{let{containerId:r,toastId:n,updateId:i}=e,f=g.has(n)&&null==i;return(r?r!==t:1!==t)||f})(d))return;let{toastId:M,updateId:E,data:A,staleId:S,delay:_}=d,N=()=>{v(M)},T=null==E;T&&l++;let R={...m,style:m.toastStyle,key:i++,...Object.fromEntries(Object.entries(d).filter(t=>{let[e,r]=t;return null!=r})),toastId:M,updateId:E,data:A,closeToast:N,isIn:!1,className:s(d.className||m.toastClassName),bodyClassName:s(d.bodyClassName||m.bodyClassName),progressClassName:s(d.progressClassName||m.progressClassName),autoClose:!d.isLoading&&(p=d.autoClose,b=m.autoClose,!1===p||f(p)&&p>0?p:b),deleteToast(){let t=g.get(M),{onClose:e,children:i}=t.props;a(e)&&e((0,n.isValidElement)(i)&&i.props),r(h(t,"removed")),g.delete(M),--l<0&&(l=0),c.length>0?w(c.shift()):y()}};R.closeButton=m.closeButton,!1===d.closeButton||u(d.closeButton)?R.closeButton=d.closeButton:!0===d.closeButton&&(R.closeButton=!u(m.closeButton)||m.closeButton);let C=e;(0,n.isValidElement)(e)&&!o(e.type)?C=(0,n.cloneElement)(e,{closeToast:N,toastProps:R,data:A}):a(e)&&(C=e({closeToast:N,toastProps:R,data:A}));let I={content:C,props:R,staleId:S};m.limit&&m.limit>0&&l>m.limit&&T?c.push(I):f(_)?setTimeout(()=>{w(I)},_):w(I)},setProps(t){m=t},setToggle:(t,e)=>{g.get(t).toggle=e},isToastActive:t=>d.some(e=>e===t),getSnapshot:()=>p}}(e,t,m);c.set(e,i);let l=i.observe(r);return d.forEach(t=>y(t.content,t.options)),d=[],()=>{l(),c.delete(e)}},setProps(t){var r;null==(r=c.get(e))||r.setProps(t)},getSnapshot(){var t;return null==(t=c.get(e))?void 0:t.getSnapshot()}}}(t)).current;i(t);let l=(0,n.useSyncExternalStore)(e,r,r);return{getToastToRender:function(e){if(!l)return[];let r=new Map;return t.newestOnTop&&l.reverse(),l.forEach(t=>{let{position:e}=t.props;r.has(e)||r.set(e,[]),r.get(e).push(t)}),Array.from(r,t=>e(t[0],t[1]))},isToastActive:b,count:null==l?void 0:l.length}}(e),{className:E,style:A,rtl:S,containerId:_}=e;function R(){r&&(p(!0),N.play())}return T(()=>{if(r){var t;let r=g.current.querySelectorAll('[data-in="true"]'),n=null==(t=e.position)?void 0:t.includes("top"),i=0,f=0;Array.from(r).reverse().forEach((t,e)=>{t.classList.add("Toastify__toast--stacked"),e>0&&(t.dataset.collapsed=`${l}`),t.dataset.pos||(t.dataset.pos=n?"top":"bot");let r=i*(l?.2:1)+(l?0:12*e);t.style.setProperty("--y",`${n?r:-1*r}px`),t.style.setProperty("--g","12"),t.style.setProperty("--s",""+(1-(l?f:0))),i+=t.offsetHeight,f+=.025})}},[l,M,r]),n.createElement("div",{ref:g,className:"Toastify",id:_,onMouseEnter:()=>{r&&(p(!1),N.pause())},onMouseLeave:R},v((t,e)=>{let f=e.length?{...A}:{...A,pointerEvents:"none"};return n.createElement("div",{className:function(t){let e=i("Toastify__toast-container",`Toastify__toast-container--${t}`,{"Toastify__toast-container--rtl":S});return a(E)?E({position:t,rtl:S,defaultClassName:e}):i(e,s(E))}(t),style:f,key:`container-${t}`},e.map(t=>{let{content:e,props:i}=t;return n.createElement(I,{...i,stacked:r,collapseAll:R,isIn:w(i.toastId,i.containerId),style:i.style,key:`toast-${i.key}`},e)}))}))}},40937:function(t){"use strict";t.exports=JSON.parse('{"_format":"hh-sol-artifact-1","contractName":"ERC20","sourceName":"contracts/token/ERC20/ERC20.sol","abi":[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}],"bytecode":"0x60806040523480156200001157600080fd5b5060405162000aed38038062000aed8339810160408190526200003491620001db565b81516200004990600390602085019062000068565b5080516200005f90600490602084019062000068565b50505062000281565b828054620000769062000245565b90600052602060002090601f0160209004810192826200009a5760008555620000e5565b82601f10620000b557805160ff1916838001178555620000e5565b82800160010185558215620000e5579182015b82811115620000e5578251825591602001919060010190620000c8565b50620000f3929150620000f7565b5090565b5b80821115620000f35760008155600101620000f8565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200013657600080fd5b81516001600160401b03808211156200015357620001536200010e565b604051601f8301601f19908116603f011681019082821181831017156200017e576200017e6200010e565b816040528381526020925086838588010111156200019b57600080fd5b600091505b83821015620001bf5785820183015181830184015290820190620001a0565b83821115620001d15760008385830101525b9695505050505050565b60008060408385031215620001ef57600080fd5b82516001600160401b03808211156200020757600080fd5b620002158683870162000124565b935060208501519150808211156200022c57600080fd5b506200023b8582860162000124565b9150509250929050565b600181811c908216806200025a57607f821691505b6020821081036200027b57634e487b7160e01b600052602260045260246000fd5b50919050565b61085c80620002916000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c80633950935111610071578063395093511461012357806370a082311461013657806395d89b411461015f578063a457c2d714610167578063a9059cbb1461017a578063dd62ed3e1461018d57600080fd5b806306fdde03146100ae578063095ea7b3146100cc57806318160ddd146100ef57806323b872dd14610101578063313ce56714610114575b600080fd5b6100b66101a0565b6040516100c3919061069a565b60405180910390f35b6100df6100da36600461070b565b610232565b60405190151581526020016100c3565b6002545b6040519081526020016100c3565b6100df61010f366004610735565b61024a565b604051601281526020016100c3565b6100df61013136600461070b565b61026e565b6100f3610144366004610771565b6001600160a01b031660009081526020819052604090205490565b6100b6610290565b6100df61017536600461070b565b61029f565b6100df61018836600461070b565b61031f565b6100f361019b366004610793565b61032d565b6060600380546101af906107c6565b80601f01602080910402602001604051908101604052809291908181526020018280546101db906107c6565b80156102285780601f106101fd57610100808354040283529160200191610228565b820191906000526020600020905b81548152906001019060200180831161020b57829003601f168201915b5050505050905090565b600033610240818585610358565b5060019392505050565b60003361025885828561047c565b6102638585856104f6565b506001949350505050565b600033610240818585610281838361032d565b61028b9190610800565b610358565b6060600480546101af906107c6565b600033816102ad828661032d565b9050838110156103125760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b6102638286868403610358565b6000336102408185856104f6565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b0383166103ba5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610309565b6001600160a01b03821661041b5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610309565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000610488848461032d565b905060001981146104f057818110156104e35760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610309565b6104f08484848403610358565b50505050565b6001600160a01b03831661055a5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610309565b6001600160a01b0382166105bc5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610309565b6001600160a01b038316600090815260208190526040902054818110156106345760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610309565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36104f0565b600060208083528351808285015260005b818110156106c7578581018301518582016040015282016106ab565b818111156106d9576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b038116811461070657600080fd5b919050565b6000806040838503121561071e57600080fd5b610727836106ef565b946020939093013593505050565b60008060006060848603121561074a57600080fd5b610753846106ef565b9250610761602085016106ef565b9150604084013590509250925092565b60006020828403121561078357600080fd5b61078c826106ef565b9392505050565b600080604083850312156107a657600080fd5b6107af836106ef565b91506107bd602084016106ef565b90509250929050565b600181811c908216806107da57607f821691505b6020821081036107fa57634e487b7160e01b600052602260045260246000fd5b50919050565b6000821982111561082157634e487b7160e01b600052601160045260246000fd5b50019056fea26469706673582212208ea3918651cefe661c47475f544a91c156156839b9d304a33b7b43e599a312a064736f6c634300080d0033","deployedBytecode":"0x608060405234801561001057600080fd5b50600436106100a95760003560e01c80633950935111610071578063395093511461012357806370a082311461013657806395d89b411461015f578063a457c2d714610167578063a9059cbb1461017a578063dd62ed3e1461018d57600080fd5b806306fdde03146100ae578063095ea7b3146100cc57806318160ddd146100ef57806323b872dd14610101578063313ce56714610114575b600080fd5b6100b66101a0565b6040516100c3919061069a565b60405180910390f35b6100df6100da36600461070b565b610232565b60405190151581526020016100c3565b6002545b6040519081526020016100c3565b6100df61010f366004610735565b61024a565b604051601281526020016100c3565b6100df61013136600461070b565b61026e565b6100f3610144366004610771565b6001600160a01b031660009081526020819052604090205490565b6100b6610290565b6100df61017536600461070b565b61029f565b6100df61018836600461070b565b61031f565b6100f361019b366004610793565b61032d565b6060600380546101af906107c6565b80601f01602080910402602001604051908101604052809291908181526020018280546101db906107c6565b80156102285780601f106101fd57610100808354040283529160200191610228565b820191906000526020600020905b81548152906001019060200180831161020b57829003601f168201915b5050505050905090565b600033610240818585610358565b5060019392505050565b60003361025885828561047c565b6102638585856104f6565b506001949350505050565b600033610240818585610281838361032d565b61028b9190610800565b610358565b6060600480546101af906107c6565b600033816102ad828661032d565b9050838110156103125760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b6102638286868403610358565b6000336102408185856104f6565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b0383166103ba5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610309565b6001600160a01b03821661041b5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610309565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000610488848461032d565b905060001981146104f057818110156104e35760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610309565b6104f08484848403610358565b50505050565b6001600160a01b03831661055a5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610309565b6001600160a01b0382166105bc5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610309565b6001600160a01b038316600090815260208190526040902054818110156106345760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610309565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36104f0565b600060208083528351808285015260005b818110156106c7578581018301518582016040015282016106ab565b818111156106d9576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b038116811461070657600080fd5b919050565b6000806040838503121561071e57600080fd5b610727836106ef565b946020939093013593505050565b60008060006060848603121561074a57600080fd5b610753846106ef565b9250610761602085016106ef565b9150604084013590509250925092565b60006020828403121561078357600080fd5b61078c826106ef565b9392505050565b600080604083850312156107a657600080fd5b6107af836106ef565b91506107bd602084016106ef565b90509250929050565b600181811c908216806107da57607f821691505b6020821081036107fa57634e487b7160e01b600052602260045260246000fd5b50919050565b6000821982111561082157634e487b7160e01b600052601160045260246000fd5b50019056fea26469706673582212208ea3918651cefe661c47475f544a91c156156839b9d304a33b7b43e599a312a064736f6c634300080d0033","linkReferences":{},"deployedLinkReferences":{}}')},54420:function(t){"use strict";t.exports=JSON.parse('{"abi":[{"inputs":[],"name":"WETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"},{"internalType":"uint256","name":"amountADesired","type":"uint256"},{"internalType":"uint256","name":"amountBDesired","type":"uint256"},{"internalType":"uint256","name":"amountAMin","type":"uint256"},{"internalType":"uint256","name":"amountBMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"addLiquidity","outputs":[{"internalType":"uint256","name":"amountA","type":"uint256"},{"internalType":"uint256","name":"amountB","type":"uint256"},{"internalType":"uint256","name":"liquidity","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amountTokenDesired","type":"uint256"},{"internalType":"uint256","name":"amountTokenMin","type":"uint256"},{"internalType":"uint256","name":"amountETHMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"addLiquidityETH","outputs":[{"internalType":"uint256","name":"amountToken","type":"uint256"},{"internalType":"uint256","name":"amountETH","type":"uint256"},{"internalType":"uint256","name":"liquidity","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"uint256","name":"reserveIn","type":"uint256"},{"internalType":"uint256","name":"reserveOut","type":"uint256"}],"name":"getAmountIn","outputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"reserveIn","type":"uint256"},{"internalType":"uint256","name":"reserveOut","type":"uint256"}],"name":"getAmountOut","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"}],"name":"getAmountsIn","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"}],"name":"getAmountsOut","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountA","type":"uint256"},{"internalType":"uint256","name":"reserveA","type":"uint256"},{"internalType":"uint256","name":"reserveB","type":"uint256"}],"name":"quote","outputs":[{"internalType":"uint256","name":"amountB","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"amountAMin","type":"uint256"},{"internalType":"uint256","name":"amountBMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"removeLiquidity","outputs":[{"internalType":"uint256","name":"amountA","type":"uint256"},{"internalType":"uint256","name":"amountB","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"amountTokenMin","type":"uint256"},{"internalType":"uint256","name":"amountETHMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"removeLiquidityETH","outputs":[{"internalType":"uint256","name":"amountToken","type":"uint256"},{"internalType":"uint256","name":"amountETH","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"amountTokenMin","type":"uint256"},{"internalType":"uint256","name":"amountETHMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"removeLiquidityETHSupportingFeeOnTransferTokens","outputs":[{"internalType":"uint256","name":"amountETH","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"amountTokenMin","type":"uint256"},{"internalType":"uint256","name":"amountETHMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"bool","name":"approveMax","type":"bool"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"removeLiquidityETHWithPermit","outputs":[{"internalType":"uint256","name":"amountToken","type":"uint256"},{"internalType":"uint256","name":"amountETH","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"amountTokenMin","type":"uint256"},{"internalType":"uint256","name":"amountETHMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"bool","name":"approveMax","type":"bool"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"removeLiquidityETHWithPermitSupportingFeeOnTransferTokens","outputs":[{"internalType":"uint256","name":"amountETH","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"amountAMin","type":"uint256"},{"internalType":"uint256","name":"amountBMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"bool","name":"approveMax","type":"bool"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"removeLiquidityWithPermit","outputs":[{"internalType":"uint256","name":"amountA","type":"uint256"},{"internalType":"uint256","name":"amountB","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapETHForExactTokens","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapExactETHForTokens","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapExactETHForTokensSupportingFeeOnTransferTokens","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapExactTokensForETH","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapExactTokensForETHSupportingFeeOnTransferTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapExactTokensForTokens","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapExactTokensForTokensSupportingFeeOnTransferTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"uint256","name":"amountInMax","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapTokensForExactETH","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"uint256","name":"amountInMax","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapTokensForExactTokens","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"}],"evm":{"bytecode":{"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""}},"interface":[{"inputs":[],"name":"WETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"},{"internalType":"uint256","name":"amountADesired","type":"uint256"},{"internalType":"uint256","name":"amountBDesired","type":"uint256"},{"internalType":"uint256","name":"amountAMin","type":"uint256"},{"internalType":"uint256","name":"amountBMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"addLiquidity","outputs":[{"internalType":"uint256","name":"amountA","type":"uint256"},{"internalType":"uint256","name":"amountB","type":"uint256"},{"internalType":"uint256","name":"liquidity","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amountTokenDesired","type":"uint256"},{"internalType":"uint256","name":"amountTokenMin","type":"uint256"},{"internalType":"uint256","name":"amountETHMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"addLiquidityETH","outputs":[{"internalType":"uint256","name":"amountToken","type":"uint256"},{"internalType":"uint256","name":"amountETH","type":"uint256"},{"internalType":"uint256","name":"liquidity","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"uint256","name":"reserveIn","type":"uint256"},{"internalType":"uint256","name":"reserveOut","type":"uint256"}],"name":"getAmountIn","outputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"reserveIn","type":"uint256"},{"internalType":"uint256","name":"reserveOut","type":"uint256"}],"name":"getAmountOut","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"}],"name":"getAmountsIn","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"}],"name":"getAmountsOut","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountA","type":"uint256"},{"internalType":"uint256","name":"reserveA","type":"uint256"},{"internalType":"uint256","name":"reserveB","type":"uint256"}],"name":"quote","outputs":[{"internalType":"uint256","name":"amountB","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"amountAMin","type":"uint256"},{"internalType":"uint256","name":"amountBMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"removeLiquidity","outputs":[{"internalType":"uint256","name":"amountA","type":"uint256"},{"internalType":"uint256","name":"amountB","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"amountTokenMin","type":"uint256"},{"internalType":"uint256","name":"amountETHMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"removeLiquidityETH","outputs":[{"internalType":"uint256","name":"amountToken","type":"uint256"},{"internalType":"uint256","name":"amountETH","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"amountTokenMin","type":"uint256"},{"internalType":"uint256","name":"amountETHMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"removeLiquidityETHSupportingFeeOnTransferTokens","outputs":[{"internalType":"uint256","name":"amountETH","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"amountTokenMin","type":"uint256"},{"internalType":"uint256","name":"amountETHMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"bool","name":"approveMax","type":"bool"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"removeLiquidityETHWithPermit","outputs":[{"internalType":"uint256","name":"amountToken","type":"uint256"},{"internalType":"uint256","name":"amountETH","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"amountTokenMin","type":"uint256"},{"internalType":"uint256","name":"amountETHMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"bool","name":"approveMax","type":"bool"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"removeLiquidityETHWithPermitSupportingFeeOnTransferTokens","outputs":[{"internalType":"uint256","name":"amountETH","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"amountAMin","type":"uint256"},{"internalType":"uint256","name":"amountBMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"bool","name":"approveMax","type":"bool"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"removeLiquidityWithPermit","outputs":[{"internalType":"uint256","name":"amountA","type":"uint256"},{"internalType":"uint256","name":"amountB","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapETHForExactTokens","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapExactETHForTokens","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapExactETHForTokensSupportingFeeOnTransferTokens","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapExactTokensForETH","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapExactTokensForETHSupportingFeeOnTransferTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapExactTokensForTokens","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapExactTokensForTokensSupportingFeeOnTransferTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"uint256","name":"amountInMax","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapTokensForExactETH","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"uint256","name":"amountInMax","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapTokensForExactTokens","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"}],"bytecode":""}')},12938:function(t){"use strict";t.exports=JSON.parse('{"mumbai_testnet":{"chain_id":80001,"chain_aliases":["mumbai","polygon_mumbai","polygon_testnet","mumbai_chain","mumbai_network","polygon-mumbai","polygon-testnet","mumbai-chain","mumbai-network","mumbai-testnet","maticmum"],"chain_name":"Mumbai Testnet","fees":{"assets":[{"denom":"tmatic","gas":5000000,"gas_price":80000000000}]},"assets":[{"denoms":[{"denom":"wei","exponent":0},{"denom":"matic","exponent":18}],"base":"tmatic","symbol":"tMATIC"}],"apps":[{"type":"explorer","url":"https://mumbai.polygonscan.com","tx":"/tx/${tx}","address":"/address/${address}"}],"api":[{"url":"https://polygon-testnet.public.blastapi.io","type":"evm"},{"url":"wss://polygon-testnet.public.blastapi.io","type":"evm-ws"}]},"btc_testnet":{"chain_id":18332,"chain_name":"Bitcoin Testnet","chain_aliases":["tbtc","btc-testnet"],"assets":[{"denoms":[{"denom":"sat","exponent":0},{"denom":"btc","exponent":8}],"base":"btc","symbol":"tBTC"}],"api":[{"url":"https://blockstream.info/testnet/api","type":"esplora"},{"url":"https://api.blockcypher.com/v1/btc/test3","type":"blockcypher"}]},"btc_mainnet":{"chain_id":8332,"chain_name":"Bitcoin","chain_aliases":["btc","bitcoin"],"assets":[{"denoms":[{"denom":"sat","exponent":0},{"denom":"btc","exponent":8}],"base":"btc","symbol":"BTC"}],"api":[{"url":"https://blockstream.info/api","type":"esplora"},{"url":"https://api.blockcypher.com/v1/btc/main","type":"blockcypher"}]},"bsc_mainnet":{"chain_id":56,"chain_name":"Binance Smart Chain Mainnet","assets":[{"denoms":[{"denom":"wei","exponent":0},{"denom":"bnb","exponent":18}],"base":"bnb","symbol":"BNB"}],"apps":[{"type":"explorer","url":"https://bscscan.com","tx":"/tx/${tx}","address":"/address/${address}"}],"fees":{"assets":[{"denom":"bnb","gas":2100000,"gas_price":5000000000}]},"api":[{"url":"https://bsc-mainnet.public.blastapi.io","type":"evm"},{"url":"wss://bsc-mainnet.public.blastapi.io","type":"evm-ws"},{"url":"https://rpc.ankr.com/bsc","type":"evm"}]},"eth_mainnet":{"chain_id":1,"chain_name":"Ethereum Mainnet","assets":[{"denoms":[{"denom":"wei","exponent":0},{"denom":"eth","exponent":18}],"base":"eth","symbol":"ETH"}],"apps":[{"type":"explorer","url":"https://etherscan.io","tx":"/tx/${tx}","address":"/address/${address}"}],"fees":{"assets":[{"denom":"eth","gas":2100000,"gas_price":38000000000}]},"api":[{"url":"https://eth-mainnet.public.blastapi.io","type":"evm"},{"url":"wss://eth-mainnet.public.blastapi.io","type":"evm-ws"},{"url":"https://rpc.ankr.com/eth","type":"evm"}]},"zeta_mainnet":{"chain_id":7000,"chain_name":"ZetaChain Mainnet","chain_aliases":["zetachain_mainnet","zeta_chain_mainnet","zeta_network_mainnet","zeta-chain-mainnet","zeta-network-mainnet","zeta-mainnet"],"bech32_prefix":"zeta","assets":[{"denoms":[{"denom":"azeta","exponent":0},{"denom":"zeta","exponent":18}],"base":"azeta","symbol":"ZETA"}],"apps":[],"fees":{"assets":[{"denom":"azeta","gas":5000000,"gas_price":10000000}]},"staking":{"denom":"azeta"},"api":[{"url":"https://zetachain.blockpi.network:443/lcd/v1/public","type":"cosmos-http"},{"url":"https://zetachain.blockpi.network:443/rpc/v1/public","type":"tendermint-http"},{"url":"https://zetachain-evm.blockpi.network:443/v1/rpc/public","type":"evm"},{"url":"https://zetachain-mainnet-archive.allthatnode.com:8545","type":"evm"},{"url":"wss://zetachain-mainnet-archive.allthatnode.com:8546","type":"evm-ws"},{"url":"https://zetachain.api.nodeshub.online:443","type":"cosmos-http"},{"url":"https://zetachain.rpc.nodeshub.online:443","type":"tendermint-rpc"},{"url":"https://zetachain-mainnet-archive.allthatnode.com:1317","type":"cosmos-http"},{"url":"https://zetachain-mainnet-archive.allthatnode.com:26657","type":"tendermint-http"},{"url":"wss://zetachain-mainnet-archive.allthatnode.com:26657/websocket","type":"tendermint-ws"},{"url":"https://zetachain-mainnet.public.blastapi.io","type":"evm"},{"url":"wss://zetachain-mainnet.public.blastapi.io","type":"evm-ws"},{"url":"https://zetachain-rpc.lavenderfive.com:443","type":"tendermint-rpc"},{"url":"https://zetachain-api.lavenderfive.com:443","type":"cosmos-http"},{"url":"https://zetachain-grpc.lavenderfive.com:443","type":"cosmos-grpc"},{"url":"https://zetachain-jsonrpc.lavenderfive.com:443","type":"evm"}]},"zeta_testnet":{"chain_id":7001,"chain_name":"ZetaChain Testnet","chain_aliases":["athens","zetachain_testnet","zeta_chain_testnet","zeta_network_testnet","zeta-chain-testnet","zeta-network-testnet","zeta-testnet","zetachain-athens-testnet"],"bech32_prefix":"zeta","assets":[{"denoms":[{"denom":"azeta","exponent":0},{"denom":"zeta","exponent":18}],"base":"azeta","symbol":"ZETA"}],"apps":[{"type":"explorer","url":"https://explorer.zetachain.com","tx":"/cosmos/tx/${tx}","address":"/address/${address}"},{"type":"explorer","url":"https://zetachain-athens-3.blockscout.com","tx":"/tx/${tx}","address":"/address/${address}"}],"fees":{"assets":[{"denom":"azeta","gas":5000000,"gas_price":80000000000}]},"staking":{"denom":"azeta"},"api":[{"url":"https://zetachain-athens-evm.blockpi.network/v1/rpc/public","type":"evm"},{"url":"https://zetachain-athens.blockpi.network/rpc/v1/public","type":"tendermint-rpc"},{"url":"https://zetachain-athens.blockpi.network/lcd/v1/public","type":"cosmos-http"},{"url":"wss://zetachain-athens.blockpi.network/rpc/v1/public/websocket","type":"tendermint-ws"},{"url":"https://zetachain-testnet-archive.allthatnode.com:1317","type":"cosmos-http"},{"url":"https://zetachain-testnet-archive.allthatnode.com:26657","type":"tendermint-http"},{"url":"https://zetachain-testnet-archive.allthatnode.com:8545","type":"evm"},{"url":"https://rpc.nodejumper.io:443/zetachaintestnet","type":"tendermint-rpc"},{"url":"https://rest.nodejumper.io/zetachaintestnet","type":"cosmos-http"},{"url":"https://zetachain-testnet-rpc.itrocket.net","type":"tendermint-rpc"},{"url":"https://zetachain-testnet-api.itrocket.net","type":"cosmos-http"},{"url":"https://zetachain-testnet-evm.itrocket.net","type":"evm"},{"url":"https://zetachain-testnet-grpc.itrocket.net:14090","type":"cosmos-grpc"},{"url":"https://zetachain-rpc.f5nodes.com","type":"tendermint-rpc"},{"url":"https://zetachain-api.f5nodes.com","type":"cosmos-http"},{"url":"https://zetachain-grpc.f5nodes.com","type":"cosmos-grpc"}]},"bsc_testnet":{"chain_id":97,"chain_name":"Binance Smart Chain Testnet","chain_aliases":["bsc","bsc-testnet","bsc-chain","bsc-network"],"assets":[{"denoms":[{"denom":"wei","exponent":0},{"denom":"bnb","exponent":18}],"base":"bnb","symbol":"BNB"}],"apps":[{"type":"explorer","url":"https://testnet.bscscan.com","tx":"/tx/${tx}","address":"/address/${address}"}],"fees":{"assets":[{"denom":"bnb","gas":5000000,"gas_price":80000000000}]},"api":[{"url":"https://bsc-testnet.blockpi.network/v1/rpc/public","type":"evm"},{"url":"https://bsc-testnet.public.blastapi.io","type":"evm"},{"url":"wss://bsc-testnet.public.blastapi.io","type":"evm-ws"},{"url":"https://data-seed-prebsc-1-s1.binance.org:8545","type":"evm"}]},"sepolia_testnet":{"chain_id":11155111,"chain_name":"Sepolia Testnet","chain_aliases":["sepolia","sepolia_chain","sepolia_network","sepolia-chain","sepolia-network","sepolia-testnet"],"assets":[{"denoms":[{"denom":"wei","exponent":0},{"denom":"eth","exponent":18}],"base":"eth","symbol":"ETH"}],"apps":[{"type":"explorer","url":"https://sepolia.etherscan.io","tx":"/tx/${tx}","address":"/address/${address}"}],"fees":{"assets":[{"denom":"eth","gas":2100000,"gas_price":38000000000}]},"api":[{"url":"https://ethereum-sepolia.blockpi.network/v1/rpc/public","type":"evm"}]}}')},55878:function(t){"use strict";t.exports=JSON.parse('{"name":"dotenv","version":"16.4.5","description":"Loads environment variables from .env file","main":"lib/main.js","types":"lib/main.d.ts","exports":{".":{"types":"./lib/main.d.ts","require":"./lib/main.js","default":"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},"scripts":{"dts-check":"tsc --project tests/types/tsconfig.json","lint":"standard","lint-readme":"standard-markdown","pretest":"npm run lint && npm run dts-check","test":"tap tests/*.js --100 -Rspec","test:coverage":"tap --coverage-report=lcov","prerelease":"npm test","release":"standard-version"},"repository":{"type":"git","url":"git://github.com/motdotla/dotenv.git"},"funding":"https://dotenvx.com","keywords":["dotenv","env",".env","environment","variables","config","settings"],"readmeFilename":"README.md","license":"BSD-2-Clause","devDependencies":{"@definitelytyped/dtslint":"^0.0.133","@types/node":"^18.11.3","decache":"^4.6.1","sinon":"^14.0.1","standard":"^17.0.0","standard-markdown":"^7.1.0","standard-version":"^9.5.0","tap":"^16.3.0","tar":"^6.1.11","typescript":"^4.8.4"},"engines":{"node":">=12"},"browser":{"fs":false}}')},4823:function(t){"use strict";t.exports=JSON.parse('{"_format":"hh-sol-artifact-1","contractName":"ERC20Custody","sourceName":"contracts/evm/ERC20Custody.sol","abi":[{"inputs":[{"internalType":"address","name":"TSSAddress_","type":"address"},{"internalType":"address","name":"TSSAddressUpdater_","type":"address"},{"internalType":"uint256","name":"zetaFee_","type":"uint256"},{"internalType":"uint256","name":"zetaMaxFee_","type":"uint256"},{"internalType":"contract IERC20","name":"zeta_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"InvalidSender","type":"error"},{"inputs":[],"name":"InvalidTSSUpdater","type":"error"},{"inputs":[],"name":"IsPaused","type":"error"},{"inputs":[],"name":"NotPaused","type":"error"},{"inputs":[],"name":"NotWhitelisted","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"inputs":[],"name":"ZeroFee","type":"error"},{"inputs":[],"name":"ZetaMaxFeeExceeded","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes","name":"recipient","type":"bytes"},{"indexed":true,"internalType":"contract IERC20","name":"asset","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"message","type":"bytes"}],"name":"Deposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"TSSAddressUpdater_","type":"address"}],"name":"RenouncedTSSUpdater","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC20","name":"asset","type":"address"}],"name":"Unwhitelisted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"TSSAddress_","type":"address"}],"name":"UpdatedTSSAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"zetaFee_","type":"uint256"}],"name":"UpdatedZetaFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC20","name":"asset","type":"address"}],"name":"Whitelisted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":true,"internalType":"contract IERC20","name":"asset","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[],"name":"TSSAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TSSAddressUpdater","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"recipient","type":"bytes"},{"internalType":"contract IERC20","name":"asset","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"message","type":"bytes"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceTSSAddressUpdater","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"asset","type":"address"}],"name":"unwhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"TSSAddress_","type":"address"}],"name":"updateTSSAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"zetaFee_","type":"uint256"}],"name":"updateZetaFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"asset","type":"address"}],"name":"whitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"name":"whitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"contract IERC20","name":"asset","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"zeta","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"zetaFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"zetaMaxFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}],"bytecode":"0x60c06040523480156200001157600080fd5b50604051620021a0380380620021a0833981810160405281019062000037919062000156565b6001600081905550846001806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550826003819055508073ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b815250508160808181525050505050505062000283565b600081519050620001228162000235565b92915050565b60008151905062000139816200024f565b92915050565b600081519050620001508162000269565b92915050565b600080600080600060a0868803121562000175576200017462000230565b5b6000620001858882890162000111565b9550506020620001988882890162000111565b9450506040620001ab888289016200013f565b9350506060620001be888289016200013f565b9250506080620001d18882890162000128565b9150509295509295909350565b6000620001eb8262000206565b9050919050565b6000620001ff82620001de565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600080fd5b6200024081620001de565b81146200024c57600080fd5b50565b6200025a81620001f2565b81146200026657600080fd5b50565b620002748162000226565b81146200028057600080fd5b50565b60805160a05160601c611edf620002c160003960008181610dca01528181610e31015261102d01526000818161042d0152610c310152611edf6000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c80639b19251a11610097578063e5408cfa11610066578063e5408cfa1461024d578063e609055e1461026b578063e8f9cb3a14610287578063ed11692b146102a557610100565b80639b19251a146101c9578063d936547e146101e5578063d9caed1214610215578063de2f6c5e1461023157610100565b80637bdaded3116100d35780637bdaded3146101695780638456cb5914610187578063950837aa146101915780639a590427146101ad57610100565b80633f4ba83a1461010557806353ee30a31461010f57806354b61e811461012d5780635c975abb1461014b575b600080fd5b61010d6102af565b005b6101176103ce565b6040516101249190611a04565b60405180910390f35b6101356103f2565b6040516101429190611a04565b60405180910390f35b610153610418565b6040516101609190611a7f565b60405180910390f35b61017161042b565b60405161017e9190611ba0565b60405180910390f35b61018f61044f565b005b6101ab60048036038101906101a691906116b3565b6105f5565b005b6101c760048036038101906101c29190611807565b61075c565b005b6101e360048036038101906101de9190611807565b61087f565b005b6101ff60048036038101906101fa9190611807565b6109a2565b60405161020c9190611a7f565b60405180910390f35b61022f600480360381019061022a91906116e0565b6109c2565b005b61024b60048036038101906102469190611834565b610b6f565b005b610255610cca565b6040516102629190611ba0565b60405180910390f35b61028560048036038101906102809190611760565b610cd0565b005b61028f61102b565b60405161029c9190611ae3565b60405180910390f35b6102ad61104f565b005b60018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610334576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600160009054906101000a900460ff1661037a576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600160006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa336040516103c49190611a04565b60405180910390a1565b60018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600160009054906101000a900460ff1681565b7f000000000000000000000000000000000000000000000000000000000000000081565b60018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146104d4576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600160009054906101000a900460ff161561051b576040517f1309a56300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156105a2576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60018060006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258336040516105eb9190611a04565b60405180910390a1565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461067b576040517e611fa600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156106e2576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806001806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fcd2958db8285a532edf298cbe1aa28ea3fb5ec82461253f9a8c1477924e29947816040516107519190611a04565b60405180910390a150565b60018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146107e1576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508073ffffffffffffffffffffffffffffffffffffffff167f51085ddf9ebdded84b76e829eb58c4078e4b5bdf97d9a94723f336039da4679160405160405180910390a250565b60018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610904576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508073ffffffffffffffffffffffffffffffffffffffff167faab7954e9d246b167ef88aeddad35209ca2489d95a8aeb59e288d9b19fae5a5460405160405180910390a250565b60046020528060005260406000206000915054906101000a900460ff1681565b6109ca6111f6565b60018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610a4f576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610ad2576040517f584a793800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610afd83828473ffffffffffffffffffffffffffffffffffffffff166112469092919063ffffffff16565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fd1c19fbcd4551a5edfb66d43d2e337c04837afda3482b42bdf569a8fccdae5fb83604051610b5a9190611ba0565b60405180910390a3610b6a6112cc565b505050565b60018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610bf4576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000811415610c2f576040517faf13986d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000000811115610c89576040517fc1be451300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806003819055507f6d2d8e313fbaf76898bb9fa55e4b52525e49c7d7182d0874f97bd9076e81d52381604051610cbf9190611ba0565b60405180910390a150565b60035481565b610cd86111f6565b600160009054906101000a900460ff1615610d1f576040517f1309a56300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610da2576040517f584a793800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600060035414158015610e025750600073ffffffffffffffffffffffffffffffffffffffff167f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1614155b15610e7757610e763360018054906101000a900473ffffffffffffffffffffffffffffffffffffffff166003547f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166112d6909392919063ffffffff16565b5b60008473ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610eb29190611a04565b60206040518083038186803b158015610eca57600080fd5b505afa158015610ede573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f029190611861565b9050610f313330868873ffffffffffffffffffffffffffffffffffffffff166112d6909392919063ffffffff16565b8473ffffffffffffffffffffffffffffffffffffffff167f1dafa057cc5c3bccb5ad974129a2bccd3c74002d9dfd7062404ba9523b18d6ae8888848973ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610fa59190611a04565b60206040518083038186803b158015610fbd57600080fd5b505afa158015610fd1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ff59190611861565b610fff9190611bfe565b8787604051611012959493929190611a9a565b60405180910390a2506110236112cc565b505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146110d5576040517e611fa600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561115c576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60018054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f39ac266bfc011581be62c138d96e4e8782812013bb66fffb4cd207f4bfee3777336040516111ec9190611a04565b60405180910390a1565b6002600054141561123c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161123390611b80565b60405180910390fd5b6002600081905550565b6112c78363a9059cbb60e01b8484604051602401611265929190611a56565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061135f565b505050565b6001600081905550565b611359846323b872dd60e01b8585856040516024016112f793929190611a1f565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061135f565b50505050565b60006113c1826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166114269092919063ffffffff16565b905060008151111561142157808060200190518101906113e19190611733565b611420576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141790611b60565b60405180910390fd5b5b505050565b6060611435848460008561143e565b90509392505050565b606082471015611483576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161147a90611b20565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516114ac91906119ed565b60006040518083038185875af1925050503d80600081146114e9576040519150601f19603f3d011682016040523d82523d6000602084013e6114ee565b606091505b50915091506114ff8783838761150b565b92505050949350505050565b6060831561156e576000835114156115665761152685611581565b611565576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161155c90611b40565b60405180910390fd5b5b829050611579565b61157883836115a4565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000825111156115b75781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115eb9190611afe565b60405180910390fd5b60008135905061160381611e4d565b92915050565b60008151905061161881611e64565b92915050565b60008083601f84011261163457611633611d38565b5b8235905067ffffffffffffffff81111561165157611650611d33565b5b60208301915083600182028301111561166d5761166c611d3d565b5b9250929050565b60008135905061168381611e7b565b92915050565b60008135905061169881611e92565b92915050565b6000815190506116ad81611e92565b92915050565b6000602082840312156116c9576116c8611d47565b5b60006116d7848285016115f4565b91505092915050565b6000806000606084860312156116f9576116f8611d47565b5b6000611707868287016115f4565b935050602061171886828701611674565b925050604061172986828701611689565b9150509250925092565b60006020828403121561174957611748611d47565b5b600061175784828501611609565b91505092915050565b6000806000806000806080878903121561177d5761177c611d47565b5b600087013567ffffffffffffffff81111561179b5761179a611d42565b5b6117a789828a0161161e565b965096505060206117ba89828a01611674565b94505060406117cb89828a01611689565b935050606087013567ffffffffffffffff8111156117ec576117eb611d42565b5b6117f889828a0161161e565b92509250509295509295509295565b60006020828403121561181d5761181c611d47565b5b600061182b84828501611674565b91505092915050565b60006020828403121561184a57611849611d47565b5b600061185884828501611689565b91505092915050565b60006020828403121561187757611876611d47565b5b60006118858482850161169e565b91505092915050565b61189781611c32565b82525050565b6118a681611c44565b82525050565b60006118b88385611bd1565b93506118c5838584611cc2565b6118ce83611d4c565b840190509392505050565b60006118e482611bbb565b6118ee8185611be2565b93506118fe818560208601611cd1565b80840191505092915050565b61191381611c8c565b82525050565b600061192482611bc6565b61192e8185611bed565b935061193e818560208601611cd1565b61194781611d4c565b840191505092915050565b600061195f602683611bed565b915061196a82611d5d565b604082019050919050565b6000611982601d83611bed565b915061198d82611dac565b602082019050919050565b60006119a5602a83611bed565b91506119b082611dd5565b604082019050919050565b60006119c8601f83611bed565b91506119d382611e24565b602082019050919050565b6119e781611c82565b82525050565b60006119f982846118d9565b915081905092915050565b6000602082019050611a19600083018461188e565b92915050565b6000606082019050611a34600083018661188e565b611a41602083018561188e565b611a4e60408301846119de565b949350505050565b6000604082019050611a6b600083018561188e565b611a7860208301846119de565b9392505050565b6000602082019050611a94600083018461189d565b92915050565b60006060820190508181036000830152611ab58187896118ac565b9050611ac460208301866119de565b8181036040830152611ad78184866118ac565b90509695505050505050565b6000602082019050611af8600083018461190a565b92915050565b60006020820190508181036000830152611b188184611919565b905092915050565b60006020820190508181036000830152611b3981611952565b9050919050565b60006020820190508181036000830152611b5981611975565b9050919050565b60006020820190508181036000830152611b7981611998565b9050919050565b60006020820190508181036000830152611b99816119bb565b9050919050565b6000602082019050611bb560008301846119de565b92915050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b6000611c0982611c82565b9150611c1483611c82565b925082821015611c2757611c26611d04565b5b828203905092915050565b6000611c3d82611c62565b9050919050565b60008115159050919050565b6000611c5b82611c32565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000611c9782611c9e565b9050919050565b6000611ca982611cb0565b9050919050565b6000611cbb82611c62565b9050919050565b82818337600083830152505050565b60005b83811015611cef578082015181840152602081019050611cd4565b83811115611cfe576000848401525b50505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b611e5681611c32565b8114611e6157600080fd5b50565b611e6d81611c44565b8114611e7857600080fd5b50565b611e8481611c50565b8114611e8f57600080fd5b50565b611e9b81611c82565b8114611ea657600080fd5b5056fea26469706673582212205768544075d85a56b1d380f8fcc0c8829b8a656c656277c25c81c31608d9e4ef64736f6c63430008070033","deployedBytecode":"0x608060405234801561001057600080fd5b50600436106101005760003560e01c80639b19251a11610097578063e5408cfa11610066578063e5408cfa1461024d578063e609055e1461026b578063e8f9cb3a14610287578063ed11692b146102a557610100565b80639b19251a146101c9578063d936547e146101e5578063d9caed1214610215578063de2f6c5e1461023157610100565b80637bdaded3116100d35780637bdaded3146101695780638456cb5914610187578063950837aa146101915780639a590427146101ad57610100565b80633f4ba83a1461010557806353ee30a31461010f57806354b61e811461012d5780635c975abb1461014b575b600080fd5b61010d6102af565b005b6101176103ce565b6040516101249190611a04565b60405180910390f35b6101356103f2565b6040516101429190611a04565b60405180910390f35b610153610418565b6040516101609190611a7f565b60405180910390f35b61017161042b565b60405161017e9190611ba0565b60405180910390f35b61018f61044f565b005b6101ab60048036038101906101a691906116b3565b6105f5565b005b6101c760048036038101906101c29190611807565b61075c565b005b6101e360048036038101906101de9190611807565b61087f565b005b6101ff60048036038101906101fa9190611807565b6109a2565b60405161020c9190611a7f565b60405180910390f35b61022f600480360381019061022a91906116e0565b6109c2565b005b61024b60048036038101906102469190611834565b610b6f565b005b610255610cca565b6040516102629190611ba0565b60405180910390f35b61028560048036038101906102809190611760565b610cd0565b005b61028f61102b565b60405161029c9190611ae3565b60405180910390f35b6102ad61104f565b005b60018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610334576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600160009054906101000a900460ff1661037a576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600160006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa336040516103c49190611a04565b60405180910390a1565b60018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600160009054906101000a900460ff1681565b7f000000000000000000000000000000000000000000000000000000000000000081565b60018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146104d4576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600160009054906101000a900460ff161561051b576040517f1309a56300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156105a2576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60018060006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258336040516105eb9190611a04565b60405180910390a1565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461067b576040517e611fa600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156106e2576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806001806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fcd2958db8285a532edf298cbe1aa28ea3fb5ec82461253f9a8c1477924e29947816040516107519190611a04565b60405180910390a150565b60018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146107e1576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508073ffffffffffffffffffffffffffffffffffffffff167f51085ddf9ebdded84b76e829eb58c4078e4b5bdf97d9a94723f336039da4679160405160405180910390a250565b60018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610904576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508073ffffffffffffffffffffffffffffffffffffffff167faab7954e9d246b167ef88aeddad35209ca2489d95a8aeb59e288d9b19fae5a5460405160405180910390a250565b60046020528060005260406000206000915054906101000a900460ff1681565b6109ca6111f6565b60018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610a4f576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610ad2576040517f584a793800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610afd83828473ffffffffffffffffffffffffffffffffffffffff166112469092919063ffffffff16565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fd1c19fbcd4551a5edfb66d43d2e337c04837afda3482b42bdf569a8fccdae5fb83604051610b5a9190611ba0565b60405180910390a3610b6a6112cc565b505050565b60018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610bf4576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000811415610c2f576040517faf13986d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000000811115610c89576040517fc1be451300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806003819055507f6d2d8e313fbaf76898bb9fa55e4b52525e49c7d7182d0874f97bd9076e81d52381604051610cbf9190611ba0565b60405180910390a150565b60035481565b610cd86111f6565b600160009054906101000a900460ff1615610d1f576040517f1309a56300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610da2576040517f584a793800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600060035414158015610e025750600073ffffffffffffffffffffffffffffffffffffffff167f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1614155b15610e7757610e763360018054906101000a900473ffffffffffffffffffffffffffffffffffffffff166003547f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166112d6909392919063ffffffff16565b5b60008473ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610eb29190611a04565b60206040518083038186803b158015610eca57600080fd5b505afa158015610ede573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f029190611861565b9050610f313330868873ffffffffffffffffffffffffffffffffffffffff166112d6909392919063ffffffff16565b8473ffffffffffffffffffffffffffffffffffffffff167f1dafa057cc5c3bccb5ad974129a2bccd3c74002d9dfd7062404ba9523b18d6ae8888848973ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610fa59190611a04565b60206040518083038186803b158015610fbd57600080fd5b505afa158015610fd1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ff59190611861565b610fff9190611bfe565b8787604051611012959493929190611a9a565b60405180910390a2506110236112cc565b505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146110d5576040517e611fa600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561115c576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60018054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f39ac266bfc011581be62c138d96e4e8782812013bb66fffb4cd207f4bfee3777336040516111ec9190611a04565b60405180910390a1565b6002600054141561123c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161123390611b80565b60405180910390fd5b6002600081905550565b6112c78363a9059cbb60e01b8484604051602401611265929190611a56565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061135f565b505050565b6001600081905550565b611359846323b872dd60e01b8585856040516024016112f793929190611a1f565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061135f565b50505050565b60006113c1826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166114269092919063ffffffff16565b905060008151111561142157808060200190518101906113e19190611733565b611420576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141790611b60565b60405180910390fd5b5b505050565b6060611435848460008561143e565b90509392505050565b606082471015611483576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161147a90611b20565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516114ac91906119ed565b60006040518083038185875af1925050503d80600081146114e9576040519150601f19603f3d011682016040523d82523d6000602084013e6114ee565b606091505b50915091506114ff8783838761150b565b92505050949350505050565b6060831561156e576000835114156115665761152685611581565b611565576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161155c90611b40565b60405180910390fd5b5b829050611579565b61157883836115a4565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000825111156115b75781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115eb9190611afe565b60405180910390fd5b60008135905061160381611e4d565b92915050565b60008151905061161881611e64565b92915050565b60008083601f84011261163457611633611d38565b5b8235905067ffffffffffffffff81111561165157611650611d33565b5b60208301915083600182028301111561166d5761166c611d3d565b5b9250929050565b60008135905061168381611e7b565b92915050565b60008135905061169881611e92565b92915050565b6000815190506116ad81611e92565b92915050565b6000602082840312156116c9576116c8611d47565b5b60006116d7848285016115f4565b91505092915050565b6000806000606084860312156116f9576116f8611d47565b5b6000611707868287016115f4565b935050602061171886828701611674565b925050604061172986828701611689565b9150509250925092565b60006020828403121561174957611748611d47565b5b600061175784828501611609565b91505092915050565b6000806000806000806080878903121561177d5761177c611d47565b5b600087013567ffffffffffffffff81111561179b5761179a611d42565b5b6117a789828a0161161e565b965096505060206117ba89828a01611674565b94505060406117cb89828a01611689565b935050606087013567ffffffffffffffff8111156117ec576117eb611d42565b5b6117f889828a0161161e565b92509250509295509295509295565b60006020828403121561181d5761181c611d47565b5b600061182b84828501611674565b91505092915050565b60006020828403121561184a57611849611d47565b5b600061185884828501611689565b91505092915050565b60006020828403121561187757611876611d47565b5b60006118858482850161169e565b91505092915050565b61189781611c32565b82525050565b6118a681611c44565b82525050565b60006118b88385611bd1565b93506118c5838584611cc2565b6118ce83611d4c565b840190509392505050565b60006118e482611bbb565b6118ee8185611be2565b93506118fe818560208601611cd1565b80840191505092915050565b61191381611c8c565b82525050565b600061192482611bc6565b61192e8185611bed565b935061193e818560208601611cd1565b61194781611d4c565b840191505092915050565b600061195f602683611bed565b915061196a82611d5d565b604082019050919050565b6000611982601d83611bed565b915061198d82611dac565b602082019050919050565b60006119a5602a83611bed565b91506119b082611dd5565b604082019050919050565b60006119c8601f83611bed565b91506119d382611e24565b602082019050919050565b6119e781611c82565b82525050565b60006119f982846118d9565b915081905092915050565b6000602082019050611a19600083018461188e565b92915050565b6000606082019050611a34600083018661188e565b611a41602083018561188e565b611a4e60408301846119de565b949350505050565b6000604082019050611a6b600083018561188e565b611a7860208301846119de565b9392505050565b6000602082019050611a94600083018461189d565b92915050565b60006060820190508181036000830152611ab58187896118ac565b9050611ac460208301866119de565b8181036040830152611ad78184866118ac565b90509695505050505050565b6000602082019050611af8600083018461190a565b92915050565b60006020820190508181036000830152611b188184611919565b905092915050565b60006020820190508181036000830152611b3981611952565b9050919050565b60006020820190508181036000830152611b5981611975565b9050919050565b60006020820190508181036000830152611b7981611998565b9050919050565b60006020820190508181036000830152611b99816119bb565b9050919050565b6000602082019050611bb560008301846119de565b92915050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b6000611c0982611c82565b9150611c1483611c82565b925082821015611c2757611c26611d04565b5b828203905092915050565b6000611c3d82611c62565b9050919050565b60008115159050919050565b6000611c5b82611c32565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000611c9782611c9e565b9050919050565b6000611ca982611cb0565b9050919050565b6000611cbb82611c62565b9050919050565b82818337600083830152505050565b60005b83811015611cef578082015181840152602081019050611cd4565b83811115611cfe576000848401525b50505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b611e5681611c32565b8114611e6157600080fd5b50565b611e6d81611c44565b8114611e7857600080fd5b50565b611e8481611c50565b8114611e8f57600080fd5b50565b611e9b81611c82565b8114611ea657600080fd5b5056fea26469706673582212205768544075d85a56b1d380f8fcc0c8829b8a656c656277c25c81c31608d9e4ef64736f6c63430008070033","linkReferences":{},"deployedLinkReferences":{}}')},34127:function(t){"use strict";t.exports=JSON.parse('{"_format":"hh-sol-artifact-1","contractName":"ZetaEth","sourceName":"contracts/evm/Zeta.eth.sol","abi":[{"inputs":[{"internalType":"address","name":"creator","type":"address"},{"internalType":"uint256","name":"initialSupply","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}],"bytecode":"0x60806040523480156200001157600080fd5b5060405162001a5238038062001a5283398181016040528101906200003791906200037d565b6040518060400160405280600481526020017f5a657461000000000000000000000000000000000000000000000000000000008152506040518060400160405280600481526020017f5a455441000000000000000000000000000000000000000000000000000000008152508160039080519060200190620000bb9291906200029f565b508060049080519060200190620000d49291906200029f565b5050506200011682620000ec6200011e60201b60201c565b60ff16600a620000fd919062000504565b836200010a919062000641565b6200012760201b60201c565b5050620007e3565b60006012905090565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156200019a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200019190620003fc565b60405180910390fd5b620001ae600083836200029560201b60201c565b8060026000828254620001c291906200044c565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516200027591906200041e565b60405180910390a362000291600083836200029a60201b60201c565b5050565b505050565b505050565b828054620002ad90620006e0565b90600052602060002090601f016020900481019282620002d157600085556200031d565b82601f10620002ec57805160ff19168380011785556200031d565b828001600101855582156200031d579182015b828111156200031c578251825591602001919060010190620002ff565b5b5090506200032c919062000330565b5090565b5b808211156200034b57600081600090555060010162000331565b5090565b6000815190506200036081620007af565b92915050565b6000815190506200037781620007c9565b92915050565b6000806040838503121562000397576200039662000774565b5b6000620003a7858286016200034f565b9250506020620003ba8582860162000366565b9150509250929050565b6000620003d3601f836200043b565b9150620003e08262000786565b602082019050919050565b620003f681620006d6565b82525050565b600060208201905081810360008301526200041781620003c4565b9050919050565b6000602082019050620004356000830184620003eb565b92915050565b600082825260208201905092915050565b60006200045982620006d6565b91506200046683620006d6565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156200049e576200049d62000716565b5b828201905092915050565b6000808291508390505b6001851115620004fb57808604811115620004d357620004d262000716565b5b6001851615620004e35780820291505b8081029050620004f38562000779565b9450620004b3565b94509492505050565b60006200051182620006d6565b91506200051e83620006d6565b92506200054d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff848462000555565b905092915050565b6000826200056757600190506200063a565b816200057757600090506200063a565b81600181146200059057600281146200059b57620005d1565b60019150506200063a565b60ff841115620005b057620005af62000716565b5b8360020a915084821115620005ca57620005c962000716565b5b506200063a565b5060208310610133831016604e8410600b84101617156200060b5782820a90508381111562000605576200060462000716565b5b6200063a565b6200061a8484846001620004a9565b9250905081840481111562000634576200063362000716565b5b81810290505b9392505050565b60006200064e82620006d6565b91506200065b83620006d6565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161562000697576200069662000716565b5b828202905092915050565b6000620006af82620006b6565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006002820490506001821680620006f957607f821691505b6020821081141562000710576200070f62000745565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600080fd5b60008160011c9050919050565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b620007ba81620006a2565b8114620007c657600080fd5b50565b620007d481620006d6565b8114620007e057600080fd5b50565b61125f80620007f36000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c80633950935111610071578063395093511461016857806370a082311461019857806395d89b41146101c8578063a457c2d7146101e6578063a9059cbb14610216578063dd62ed3e14610246576100a9565b806306fdde03146100ae578063095ea7b3146100cc57806318160ddd146100fc57806323b872dd1461011a578063313ce5671461014a575b600080fd5b6100b6610276565b6040516100c39190610d20565b60405180910390f35b6100e660048036038101906100e19190610b6a565b610308565b6040516100f39190610d05565b60405180910390f35b61010461032b565b6040516101119190610e22565b60405180910390f35b610134600480360381019061012f9190610b17565b610335565b6040516101419190610d05565b60405180910390f35b610152610364565b60405161015f9190610e3d565b60405180910390f35b610182600480360381019061017d9190610b6a565b61036d565b60405161018f9190610d05565b60405180910390f35b6101b260048036038101906101ad9190610aaa565b6103a4565b6040516101bf9190610e22565b60405180910390f35b6101d06103ec565b6040516101dd9190610d20565b60405180910390f35b61020060048036038101906101fb9190610b6a565b61047e565b60405161020d9190610d05565b60405180910390f35b610230600480360381019061022b9190610b6a565b6104f5565b60405161023d9190610d05565b60405180910390f35b610260600480360381019061025b9190610ad7565b610518565b60405161026d9190610e22565b60405180910390f35b60606003805461028590610f52565b80601f01602080910402602001604051908101604052809291908181526020018280546102b190610f52565b80156102fe5780601f106102d3576101008083540402835291602001916102fe565b820191906000526020600020905b8154815290600101906020018083116102e157829003601f168201915b5050505050905090565b60008061031361059f565b90506103208185856105a7565b600191505092915050565b6000600254905090565b60008061034061059f565b905061034d858285610772565b6103588585856107fe565b60019150509392505050565b60006012905090565b60008061037861059f565b905061039981858561038a8589610518565b6103949190610e74565b6105a7565b600191505092915050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6060600480546103fb90610f52565b80601f016020809104026020016040519081016040528092919081815260200182805461042790610f52565b80156104745780601f1061044957610100808354040283529160200191610474565b820191906000526020600020905b81548152906001019060200180831161045757829003601f168201915b5050505050905090565b60008061048961059f565b905060006104978286610518565b9050838110156104dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104d390610e02565b60405180910390fd5b6104e982868684036105a7565b60019250505092915050565b60008061050061059f565b905061050d8185856107fe565b600191505092915050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610617576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161060e90610de2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610687576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067e90610d62565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516107659190610e22565b60405180910390a3505050565b600061077e8484610518565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146107f857818110156107ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107e190610d82565b60405180910390fd5b6107f784848484036105a7565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561086e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161086590610dc2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156108de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108d590610d42565b60405180910390fd5b6108e9838383610a76565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561096f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096690610da2565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610a5d9190610e22565b60405180910390a3610a70848484610a7b565b50505050565b505050565b505050565b600081359050610a8f816111fb565b92915050565b600081359050610aa481611212565b92915050565b600060208284031215610ac057610abf610fe2565b5b6000610ace84828501610a80565b91505092915050565b60008060408385031215610aee57610aed610fe2565b5b6000610afc85828601610a80565b9250506020610b0d85828601610a80565b9150509250929050565b600080600060608486031215610b3057610b2f610fe2565b5b6000610b3e86828701610a80565b9350506020610b4f86828701610a80565b9250506040610b6086828701610a95565b9150509250925092565b60008060408385031215610b8157610b80610fe2565b5b6000610b8f85828601610a80565b9250506020610ba085828601610a95565b9150509250929050565b610bb381610edc565b82525050565b6000610bc482610e58565b610bce8185610e63565b9350610bde818560208601610f1f565b610be781610fe7565b840191505092915050565b6000610bff602383610e63565b9150610c0a82610ff8565b604082019050919050565b6000610c22602283610e63565b9150610c2d82611047565b604082019050919050565b6000610c45601d83610e63565b9150610c5082611096565b602082019050919050565b6000610c68602683610e63565b9150610c73826110bf565b604082019050919050565b6000610c8b602583610e63565b9150610c968261110e565b604082019050919050565b6000610cae602483610e63565b9150610cb98261115d565b604082019050919050565b6000610cd1602583610e63565b9150610cdc826111ac565b604082019050919050565b610cf081610f08565b82525050565b610cff81610f12565b82525050565b6000602082019050610d1a6000830184610baa565b92915050565b60006020820190508181036000830152610d3a8184610bb9565b905092915050565b60006020820190508181036000830152610d5b81610bf2565b9050919050565b60006020820190508181036000830152610d7b81610c15565b9050919050565b60006020820190508181036000830152610d9b81610c38565b9050919050565b60006020820190508181036000830152610dbb81610c5b565b9050919050565b60006020820190508181036000830152610ddb81610c7e565b9050919050565b60006020820190508181036000830152610dfb81610ca1565b9050919050565b60006020820190508181036000830152610e1b81610cc4565b9050919050565b6000602082019050610e376000830184610ce7565b92915050565b6000602082019050610e526000830184610cf6565b92915050565b600081519050919050565b600082825260208201905092915050565b6000610e7f82610f08565b9150610e8a83610f08565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115610ebf57610ebe610f84565b5b828201905092915050565b6000610ed582610ee8565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60005b83811015610f3d578082015181840152602081019050610f22565b83811115610f4c576000848401525b50505050565b60006002820490506001821680610f6a57607f821691505b60208210811415610f7e57610f7d610fb3565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600080fd5b6000601f19601f8301169050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b61120481610eca565b811461120f57600080fd5b50565b61121b81610f08565b811461122657600080fd5b5056fea2646970667358221220e33277034a5236435f4dc6a93d4c4dc71fb8a6be9f4a752ea3f374446caf920b64736f6c63430008070033","deployedBytecode":"0x608060405234801561001057600080fd5b50600436106100a95760003560e01c80633950935111610071578063395093511461016857806370a082311461019857806395d89b41146101c8578063a457c2d7146101e6578063a9059cbb14610216578063dd62ed3e14610246576100a9565b806306fdde03146100ae578063095ea7b3146100cc57806318160ddd146100fc57806323b872dd1461011a578063313ce5671461014a575b600080fd5b6100b6610276565b6040516100c39190610d20565b60405180910390f35b6100e660048036038101906100e19190610b6a565b610308565b6040516100f39190610d05565b60405180910390f35b61010461032b565b6040516101119190610e22565b60405180910390f35b610134600480360381019061012f9190610b17565b610335565b6040516101419190610d05565b60405180910390f35b610152610364565b60405161015f9190610e3d565b60405180910390f35b610182600480360381019061017d9190610b6a565b61036d565b60405161018f9190610d05565b60405180910390f35b6101b260048036038101906101ad9190610aaa565b6103a4565b6040516101bf9190610e22565b60405180910390f35b6101d06103ec565b6040516101dd9190610d20565b60405180910390f35b61020060048036038101906101fb9190610b6a565b61047e565b60405161020d9190610d05565b60405180910390f35b610230600480360381019061022b9190610b6a565b6104f5565b60405161023d9190610d05565b60405180910390f35b610260600480360381019061025b9190610ad7565b610518565b60405161026d9190610e22565b60405180910390f35b60606003805461028590610f52565b80601f01602080910402602001604051908101604052809291908181526020018280546102b190610f52565b80156102fe5780601f106102d3576101008083540402835291602001916102fe565b820191906000526020600020905b8154815290600101906020018083116102e157829003601f168201915b5050505050905090565b60008061031361059f565b90506103208185856105a7565b600191505092915050565b6000600254905090565b60008061034061059f565b905061034d858285610772565b6103588585856107fe565b60019150509392505050565b60006012905090565b60008061037861059f565b905061039981858561038a8589610518565b6103949190610e74565b6105a7565b600191505092915050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6060600480546103fb90610f52565b80601f016020809104026020016040519081016040528092919081815260200182805461042790610f52565b80156104745780601f1061044957610100808354040283529160200191610474565b820191906000526020600020905b81548152906001019060200180831161045757829003601f168201915b5050505050905090565b60008061048961059f565b905060006104978286610518565b9050838110156104dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104d390610e02565b60405180910390fd5b6104e982868684036105a7565b60019250505092915050565b60008061050061059f565b905061050d8185856107fe565b600191505092915050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610617576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161060e90610de2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610687576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067e90610d62565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516107659190610e22565b60405180910390a3505050565b600061077e8484610518565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146107f857818110156107ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107e190610d82565b60405180910390fd5b6107f784848484036105a7565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561086e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161086590610dc2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156108de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108d590610d42565b60405180910390fd5b6108e9838383610a76565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561096f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096690610da2565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610a5d9190610e22565b60405180910390a3610a70848484610a7b565b50505050565b505050565b505050565b600081359050610a8f816111fb565b92915050565b600081359050610aa481611212565b92915050565b600060208284031215610ac057610abf610fe2565b5b6000610ace84828501610a80565b91505092915050565b60008060408385031215610aee57610aed610fe2565b5b6000610afc85828601610a80565b9250506020610b0d85828601610a80565b9150509250929050565b600080600060608486031215610b3057610b2f610fe2565b5b6000610b3e86828701610a80565b9350506020610b4f86828701610a80565b9250506040610b6086828701610a95565b9150509250925092565b60008060408385031215610b8157610b80610fe2565b5b6000610b8f85828601610a80565b9250506020610ba085828601610a95565b9150509250929050565b610bb381610edc565b82525050565b6000610bc482610e58565b610bce8185610e63565b9350610bde818560208601610f1f565b610be781610fe7565b840191505092915050565b6000610bff602383610e63565b9150610c0a82610ff8565b604082019050919050565b6000610c22602283610e63565b9150610c2d82611047565b604082019050919050565b6000610c45601d83610e63565b9150610c5082611096565b602082019050919050565b6000610c68602683610e63565b9150610c73826110bf565b604082019050919050565b6000610c8b602583610e63565b9150610c968261110e565b604082019050919050565b6000610cae602483610e63565b9150610cb98261115d565b604082019050919050565b6000610cd1602583610e63565b9150610cdc826111ac565b604082019050919050565b610cf081610f08565b82525050565b610cff81610f12565b82525050565b6000602082019050610d1a6000830184610baa565b92915050565b60006020820190508181036000830152610d3a8184610bb9565b905092915050565b60006020820190508181036000830152610d5b81610bf2565b9050919050565b60006020820190508181036000830152610d7b81610c15565b9050919050565b60006020820190508181036000830152610d9b81610c38565b9050919050565b60006020820190508181036000830152610dbb81610c5b565b9050919050565b60006020820190508181036000830152610ddb81610c7e565b9050919050565b60006020820190508181036000830152610dfb81610ca1565b9050919050565b60006020820190508181036000830152610e1b81610cc4565b9050919050565b6000602082019050610e376000830184610ce7565b92915050565b6000602082019050610e526000830184610cf6565b92915050565b600081519050919050565b600082825260208201905092915050565b6000610e7f82610f08565b9150610e8a83610f08565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115610ebf57610ebe610f84565b5b828201905092915050565b6000610ed582610ee8565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60005b83811015610f3d578082015181840152602081019050610f22565b83811115610f4c576000848401525b50505050565b60006002820490506001821680610f6a57607f821691505b60208210811415610f7e57610f7d610fb3565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600080fd5b6000601f19601f8301169050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b61120481610eca565b811461120f57600080fd5b50565b61121b81610f08565b811461122657600080fd5b5056fea2646970667358221220e33277034a5236435f4dc6a93d4c4dc71fb8a6be9f4a752ea3f374446caf920b64736f6c63430008070033","linkReferences":{},"deployedLinkReferences":{}}')},75056:function(t){"use strict";t.exports=JSON.parse('{"_format":"hh-sol-artifact-1","contractName":"ZetaConnectorEth","sourceName":"contracts/evm/ZetaConnector.eth.sol","abi":[{"inputs":[{"internalType":"address","name":"zetaToken_","type":"address"},{"internalType":"address","name":"tssAddress_","type":"address"},{"internalType":"address","name":"tssAddressUpdater_","type":"address"},{"internalType":"address","name":"pauserAddress_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"caller","type":"address"}],"name":"CallerIsNotPauser","type":"error"},{"inputs":[{"internalType":"address","name":"caller","type":"address"}],"name":"CallerIsNotTss","type":"error"},{"inputs":[{"internalType":"address","name":"caller","type":"address"}],"name":"CallerIsNotTssOrUpdater","type":"error"},{"inputs":[{"internalType":"address","name":"caller","type":"address"}],"name":"CallerIsNotTssUpdater","type":"error"},{"inputs":[{"internalType":"uint256","name":"maxSupply","type":"uint256"}],"name":"ExceedsMaxSupply","type":"error"},{"inputs":[],"name":"InvalidAddress","type":"error"},{"inputs":[],"name":"ZetaTransferError","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"callerAddress","type":"address"},{"indexed":false,"internalType":"address","name":"newTssAddress","type":"address"}],"name":"PauserAddressUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"callerAddress","type":"address"},{"indexed":false,"internalType":"address","name":"newTssAddress","type":"address"}],"name":"TSSAddressUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"callerAddress","type":"address"},{"indexed":false,"internalType":"address","name":"newTssUpdaterAddress","type":"address"}],"name":"TSSAddressUpdaterUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes","name":"zetaTxSenderAddress","type":"bytes"},{"indexed":true,"internalType":"uint256","name":"sourceChainId","type":"uint256"},{"indexed":true,"internalType":"address","name":"destinationAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"zetaValue","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"message","type":"bytes"},{"indexed":true,"internalType":"bytes32","name":"internalSendHash","type":"bytes32"}],"name":"ZetaReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"zetaTxSenderAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"sourceChainId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"destinationChainId","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"destinationAddress","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"remainingZetaValue","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"message","type":"bytes"},{"indexed":true,"internalType":"bytes32","name":"internalSendHash","type":"bytes32"}],"name":"ZetaReverted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sourceTxOriginAddress","type":"address"},{"indexed":true,"internalType":"address","name":"zetaTxSenderAddress","type":"address"},{"indexed":true,"internalType":"uint256","name":"destinationChainId","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"destinationAddress","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"zetaValueAndGas","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"destinationGasLimit","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"message","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"zetaParams","type":"bytes"}],"name":"ZetaSent","type":"event"},{"inputs":[],"name":"getLockedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"zetaTxSenderAddress","type":"bytes"},{"internalType":"uint256","name":"sourceChainId","type":"uint256"},{"internalType":"address","name":"destinationAddress","type":"address"},{"internalType":"uint256","name":"zetaValue","type":"uint256"},{"internalType":"bytes","name":"message","type":"bytes"},{"internalType":"bytes32","name":"internalSendHash","type":"bytes32"}],"name":"onReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"zetaTxSenderAddress","type":"address"},{"internalType":"uint256","name":"sourceChainId","type":"uint256"},{"internalType":"bytes","name":"destinationAddress","type":"bytes"},{"internalType":"uint256","name":"destinationChainId","type":"uint256"},{"internalType":"uint256","name":"remainingZetaValue","type":"uint256"},{"internalType":"bytes","name":"message","type":"bytes"},{"internalType":"bytes32","name":"internalSendHash","type":"bytes32"}],"name":"onRevert","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauserAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceTssAddressUpdater","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"destinationChainId","type":"uint256"},{"internalType":"bytes","name":"destinationAddress","type":"bytes"},{"internalType":"uint256","name":"destinationGasLimit","type":"uint256"},{"internalType":"bytes","name":"message","type":"bytes"},{"internalType":"uint256","name":"zetaValueAndGas","type":"uint256"},{"internalType":"bytes","name":"zetaParams","type":"bytes"}],"internalType":"struct ZetaInterfaces.SendInput","name":"input","type":"tuple"}],"name":"send","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tssAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tssAddressUpdater","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pauserAddress_","type":"address"}],"name":"updatePauserAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tssAddress_","type":"address"}],"name":"updateTssAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"zetaToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}],"bytecode":"0x60a06040523480156200001157600080fd5b50604051620020e6380380620020e6833981810160405281019062000037919062000284565b8383838360008060006101000a81548160ff021916908315150217905550600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480620000bd5750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b80620000f55750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b806200012d5750600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b1562000165576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8373ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b8152505082600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600060016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050505050505062000349565b6000815190506200027e816200032f565b92915050565b60008060008060808587031215620002a157620002a06200032a565b5b6000620002b1878288016200026d565b9450506020620002c4878288016200026d565b9350506040620002d7878288016200026d565b9250506060620002ea878288016200026d565b91505092959194509250565b600062000303826200030a565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600080fd5b6200033a81620002f6565b81146200034657600080fd5b50565b60805160601c611d62620003846000396000818161024f01528181610275015281816103b701528181610d9501526110180152611d626000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c80636128480f1161008c5780639122c344116100665780639122c344146101db578063942a5e16146101f7578063ec02690114610213578063f7fb869b1461022f576100ea565b80636128480f146101ab578063779e3b63146101c75780638456cb59146101d1576100ea565b8063328a01d0116100c8578063328a01d0146101475780633f4ba83a146101655780635b1125911461016f5780635c975abb1461018d576100ea565b806321e093b1146100ef578063252bc8861461010d57806329dd214d1461012b575b600080fd5b6100f761024d565b6040516101049190611883565b60405180910390f35b610115610271565b6040516101229190611af0565b60405180910390f35b6101456004803603810190610140919061153a565b610321565b005b61014f61063a565b60405161015c9190611883565b60405180910390f35b61016d610660565b005b6101776106fc565b6040516101849190611883565b60405180910390f35b610195610722565b6040516101a29190611a08565b60405180910390f35b6101c560048036038101906101c091906113fe565b610738565b005b6101cf6108ae565b005b6101d9610a89565b005b6101f560048036038101906101f091906113fe565b610b25565b005b610211600480360381019061020c919061142b565b610cf7565b005b61022d60048036038101906102289190611609565b61100c565b005b61023761119b565b6040516102449190611883565b60405180910390f35b7f000000000000000000000000000000000000000000000000000000000000000081565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016102cc9190611883565b60206040518083038186803b1580156102e457600080fd5b505afa1580156102f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061031c9190611652565b905090565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146103b357336040517fff70ace20000000000000000000000000000000000000000000000000000000081526004016103aa9190611883565b60405180910390fd5b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb87876040518363ffffffff1660e01b815260040161041092919061197a565b602060405180830381600087803b15801561042a57600080fd5b505af115801561043e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610462919061150d565b90508061049b576040517f20878f6200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008484905011156105d7578573ffffffffffffffffffffffffffffffffffffffff16633749c51a6040518060a001604052808c8c8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505081526020018a81526020018973ffffffffffffffffffffffffffffffffffffffff16815260200188815260200187878080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508152506040518263ffffffff1660e01b81526004016105a49190611aac565b600060405180830381600087803b1580156105be57600080fd5b505af11580156105d2573d6000803e3d6000fd5b505050505b818673ffffffffffffffffffffffffffffffffffffffff16887ff1302855733b40d8acb467ee990b6d56c05c80e28ebcabfa6e6f3f57cb50d6988c8c8a8a8a604051610627959493929190611a23565b60405180910390a4505050505050505050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146106f257336040517f4677a0d30000000000000000000000000000000000000000000000000000000081526004016106e99190611883565b60405180910390fd5b6106fa6111c1565b565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900460ff16905090565b600060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146107ca57336040517f4677a0d30000000000000000000000000000000000000000000000000000000081526004016107c19190611883565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610831576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600060016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fd41d83655d484bdf299598751c371b2d92088667266fe3774b25a97bdd5d039733826040516108a392919061189e565b60405180910390a150565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461094057336040517fe700765e0000000000000000000000000000000000000000000000000000000081526004016109379190611883565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156109c9576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f5104c9abdc7d111c2aeb4ce890ac70274a4be2ee83f46a62551be5e6ebc82dd033600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051610a7f92919061189e565b60405180910390a1565b600060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610b1b57336040517f4677a0d3000000000000000000000000000000000000000000000000000000008152600401610b129190611883565b60405180910390fd5b610b23611223565b565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614158015610bd15750600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614155b15610c1357336040517fcdfcef97000000000000000000000000000000000000000000000000000000008152600401610c0a9190611883565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610c7a576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fe79965b5c67dcfb2cf5fe152715e4a7256cee62a3d5dd8484fd8a8539eb8beff3382604051610cec92919061189e565b60405180910390a150565b610cff611285565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610d9157336040517fff70ace2000000000000000000000000000000000000000000000000000000008152600401610d889190611883565b60405180910390fd5b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb8b876040518363ffffffff1660e01b8152600401610dee92919061197a565b602060405180830381600087803b158015610e0857600080fd5b505af1158015610e1c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e40919061150d565b905080610e79576040517f20878f6200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000848490501115610fbb578973ffffffffffffffffffffffffffffffffffffffff16633ff0693c6040518060c001604052808d73ffffffffffffffffffffffffffffffffffffffff1681526020018c81526020018b8b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050815260200189815260200188815260200187878080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508152506040518263ffffffff1660e01b8152600401610f889190611ace565b600060405180830381600087803b158015610fa257600080fd5b505af1158015610fb6573d6000803e3d6000fd5b505050505b81867f521fb0b407c2eb9b1375530e9b9a569889992140a688bc076aa72c1712012c888c8c8c8c8b8b8b604051610ff897969594939291906119a3565b60405180910390a350505050505050505050565b611014611285565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166323b872dd333085608001356040518463ffffffff1660e01b8152600401611077939291906118c7565b602060405180830381600087803b15801561109157600080fd5b505af11580156110a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110c9919061150d565b905080611102576040517f20878f6200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600001353373ffffffffffffffffffffffffffffffffffffffff167f7ec1c94701e09b1652f3e1d307e60c4b9ebf99aff8c2079fd1d8c585e031c4e4328580602001906111509190611b0b565b8760800135886040013589806060019061116a9190611b0b565b8b8060a0019061117a9190611b0b565b60405161118f999897969594939291906118fe565b60405180910390a35050565b600060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6111c96112cf565b60008060006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61120c611318565b6040516112199190611883565b60405180910390a1565b61122b611285565b60016000806101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861126e611318565b60405161127b9190611883565b60405180910390a1565b61128d610722565b156112cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112c490611a8c565b60405180910390fd5b565b6112d7610722565b611316576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130d90611a6c565b60405180910390fd5b565b600033905090565b60008135905061132f81611cd0565b92915050565b60008151905061134481611ce7565b92915050565b60008135905061135981611cfe565b92915050565b60008083601f84011261137557611374611c45565b5b8235905067ffffffffffffffff81111561139257611391611c40565b5b6020830191508360018202830111156113ae576113ad611c59565b5b9250929050565b600060c082840312156113cb576113ca611c4f565b5b81905092915050565b6000813590506113e381611d15565b92915050565b6000815190506113f881611d15565b92915050565b60006020828403121561141457611413611c68565b5b600061142284828501611320565b91505092915050565b600080600080600080600080600060e08a8c03121561144d5761144c611c68565b5b600061145b8c828d01611320565b995050602061146c8c828d016113d4565b98505060408a013567ffffffffffffffff81111561148d5761148c611c63565b5b6114998c828d0161135f565b975097505060606114ac8c828d016113d4565b95505060806114bd8c828d016113d4565b94505060a08a013567ffffffffffffffff8111156114de576114dd611c63565b5b6114ea8c828d0161135f565b935093505060c06114fd8c828d0161134a565b9150509295985092959850929598565b60006020828403121561152357611522611c68565b5b600061153184828501611335565b91505092915050565b60008060008060008060008060c0898b03121561155a57611559611c68565b5b600089013567ffffffffffffffff81111561157857611577611c63565b5b6115848b828c0161135f565b985098505060206115978b828c016113d4565b96505060406115a88b828c01611320565b95505060606115b98b828c016113d4565b945050608089013567ffffffffffffffff8111156115da576115d9611c63565b5b6115e68b828c0161135f565b935093505060a06115f98b828c0161134a565b9150509295985092959890939650565b60006020828403121561161f5761161e611c68565b5b600082013567ffffffffffffffff81111561163d5761163c611c63565b5b611649848285016113b5565b91505092915050565b60006020828403121561166857611667611c68565b5b6000611676848285016113e9565b91505092915050565b61168881611bac565b82525050565b61169781611bac565b82525050565b6116a681611bbe565b82525050565b60006116b88385611b8a565b93506116c5838584611bfe565b6116ce83611c6d565b840190509392505050565b60006116e482611b6e565b6116ee8185611b79565b93506116fe818560208601611c0d565b61170781611c6d565b840191505092915050565b600061171f601483611b9b565b915061172a82611c7e565b602082019050919050565b6000611742601083611b9b565b915061174d82611ca7565b602082019050919050565b600060a083016000830151848203600086015261177582826116d9565b915050602083015161178a6020860182611865565b50604083015161179d604086018261167f565b5060608301516117b06060860182611865565b50608083015184820360808601526117c882826116d9565b9150508091505092915050565b600060c0830160008301516117ed600086018261167f565b5060208301516118006020860182611865565b506040830151848203604086015261181882826116d9565b915050606083015161182d6060860182611865565b5060808301516118406080860182611865565b5060a083015184820360a086015261185882826116d9565b9150508091505092915050565b61186e81611bf4565b82525050565b61187d81611bf4565b82525050565b6000602082019050611898600083018461168e565b92915050565b60006040820190506118b3600083018561168e565b6118c0602083018461168e565b9392505050565b60006060820190506118dc600083018661168e565b6118e9602083018561168e565b6118f66040830184611874565b949350505050565b600060c082019050611913600083018c61168e565b8181036020830152611926818a8c6116ac565b90506119356040830189611874565b6119426060830188611874565b81810360808301526119558186886116ac565b905081810360a083015261196a8184866116ac565b90509a9950505050505050505050565b600060408201905061198f600083018561168e565b61199c6020830184611874565b9392505050565b600060a0820190506119b8600083018a61168e565b6119c56020830189611874565b81810360408301526119d88187896116ac565b90506119e76060830186611874565b81810360808301526119fa8184866116ac565b905098975050505050505050565b6000602082019050611a1d600083018461169d565b92915050565b60006060820190508181036000830152611a3e8187896116ac565b9050611a4d6020830186611874565b8181036040830152611a608184866116ac565b90509695505050505050565b60006020820190508181036000830152611a8581611712565b9050919050565b60006020820190508181036000830152611aa581611735565b9050919050565b60006020820190508181036000830152611ac68184611758565b905092915050565b60006020820190508181036000830152611ae881846117d5565b905092915050565b6000602082019050611b056000830184611874565b92915050565b60008083356001602003843603038112611b2857611b27611c54565b5b80840192508235915067ffffffffffffffff821115611b4a57611b49611c4a565b5b602083019250600182023603831315611b6657611b65611c5e565b5b509250929050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b6000611bb782611bd4565b9050919050565b60008115159050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015611c2b578082015181840152602081019050611c10565b83811115611c3a576000848401525b50505050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b611cd981611bac565b8114611ce457600080fd5b50565b611cf081611bbe565b8114611cfb57600080fd5b50565b611d0781611bca565b8114611d1257600080fd5b50565b611d1e81611bf4565b8114611d2957600080fd5b5056fea2646970667358221220c386ec06beb54bf2f1fa9d6ebdcbce1a2c994b9dc5c90038fe0d0a4b8174e1ea64736f6c63430008070033","deployedBytecode":"0x608060405234801561001057600080fd5b50600436106100ea5760003560e01c80636128480f1161008c5780639122c344116100665780639122c344146101db578063942a5e16146101f7578063ec02690114610213578063f7fb869b1461022f576100ea565b80636128480f146101ab578063779e3b63146101c75780638456cb59146101d1576100ea565b8063328a01d0116100c8578063328a01d0146101475780633f4ba83a146101655780635b1125911461016f5780635c975abb1461018d576100ea565b806321e093b1146100ef578063252bc8861461010d57806329dd214d1461012b575b600080fd5b6100f761024d565b6040516101049190611883565b60405180910390f35b610115610271565b6040516101229190611af0565b60405180910390f35b6101456004803603810190610140919061153a565b610321565b005b61014f61063a565b60405161015c9190611883565b60405180910390f35b61016d610660565b005b6101776106fc565b6040516101849190611883565b60405180910390f35b610195610722565b6040516101a29190611a08565b60405180910390f35b6101c560048036038101906101c091906113fe565b610738565b005b6101cf6108ae565b005b6101d9610a89565b005b6101f560048036038101906101f091906113fe565b610b25565b005b610211600480360381019061020c919061142b565b610cf7565b005b61022d60048036038101906102289190611609565b61100c565b005b61023761119b565b6040516102449190611883565b60405180910390f35b7f000000000000000000000000000000000000000000000000000000000000000081565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016102cc9190611883565b60206040518083038186803b1580156102e457600080fd5b505afa1580156102f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061031c9190611652565b905090565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146103b357336040517fff70ace20000000000000000000000000000000000000000000000000000000081526004016103aa9190611883565b60405180910390fd5b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb87876040518363ffffffff1660e01b815260040161041092919061197a565b602060405180830381600087803b15801561042a57600080fd5b505af115801561043e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610462919061150d565b90508061049b576040517f20878f6200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008484905011156105d7578573ffffffffffffffffffffffffffffffffffffffff16633749c51a6040518060a001604052808c8c8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505081526020018a81526020018973ffffffffffffffffffffffffffffffffffffffff16815260200188815260200187878080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508152506040518263ffffffff1660e01b81526004016105a49190611aac565b600060405180830381600087803b1580156105be57600080fd5b505af11580156105d2573d6000803e3d6000fd5b505050505b818673ffffffffffffffffffffffffffffffffffffffff16887ff1302855733b40d8acb467ee990b6d56c05c80e28ebcabfa6e6f3f57cb50d6988c8c8a8a8a604051610627959493929190611a23565b60405180910390a4505050505050505050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146106f257336040517f4677a0d30000000000000000000000000000000000000000000000000000000081526004016106e99190611883565b60405180910390fd5b6106fa6111c1565b565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900460ff16905090565b600060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146107ca57336040517f4677a0d30000000000000000000000000000000000000000000000000000000081526004016107c19190611883565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610831576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600060016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fd41d83655d484bdf299598751c371b2d92088667266fe3774b25a97bdd5d039733826040516108a392919061189e565b60405180910390a150565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461094057336040517fe700765e0000000000000000000000000000000000000000000000000000000081526004016109379190611883565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156109c9576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f5104c9abdc7d111c2aeb4ce890ac70274a4be2ee83f46a62551be5e6ebc82dd033600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051610a7f92919061189e565b60405180910390a1565b600060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610b1b57336040517f4677a0d3000000000000000000000000000000000000000000000000000000008152600401610b129190611883565b60405180910390fd5b610b23611223565b565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614158015610bd15750600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614155b15610c1357336040517fcdfcef97000000000000000000000000000000000000000000000000000000008152600401610c0a9190611883565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610c7a576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fe79965b5c67dcfb2cf5fe152715e4a7256cee62a3d5dd8484fd8a8539eb8beff3382604051610cec92919061189e565b60405180910390a150565b610cff611285565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610d9157336040517fff70ace2000000000000000000000000000000000000000000000000000000008152600401610d889190611883565b60405180910390fd5b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb8b876040518363ffffffff1660e01b8152600401610dee92919061197a565b602060405180830381600087803b158015610e0857600080fd5b505af1158015610e1c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e40919061150d565b905080610e79576040517f20878f6200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000848490501115610fbb578973ffffffffffffffffffffffffffffffffffffffff16633ff0693c6040518060c001604052808d73ffffffffffffffffffffffffffffffffffffffff1681526020018c81526020018b8b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050815260200189815260200188815260200187878080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508152506040518263ffffffff1660e01b8152600401610f889190611ace565b600060405180830381600087803b158015610fa257600080fd5b505af1158015610fb6573d6000803e3d6000fd5b505050505b81867f521fb0b407c2eb9b1375530e9b9a569889992140a688bc076aa72c1712012c888c8c8c8c8b8b8b604051610ff897969594939291906119a3565b60405180910390a350505050505050505050565b611014611285565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166323b872dd333085608001356040518463ffffffff1660e01b8152600401611077939291906118c7565b602060405180830381600087803b15801561109157600080fd5b505af11580156110a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110c9919061150d565b905080611102576040517f20878f6200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600001353373ffffffffffffffffffffffffffffffffffffffff167f7ec1c94701e09b1652f3e1d307e60c4b9ebf99aff8c2079fd1d8c585e031c4e4328580602001906111509190611b0b565b8760800135886040013589806060019061116a9190611b0b565b8b8060a0019061117a9190611b0b565b60405161118f999897969594939291906118fe565b60405180910390a35050565b600060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6111c96112cf565b60008060006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61120c611318565b6040516112199190611883565b60405180910390a1565b61122b611285565b60016000806101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861126e611318565b60405161127b9190611883565b60405180910390a1565b61128d610722565b156112cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112c490611a8c565b60405180910390fd5b565b6112d7610722565b611316576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130d90611a6c565b60405180910390fd5b565b600033905090565b60008135905061132f81611cd0565b92915050565b60008151905061134481611ce7565b92915050565b60008135905061135981611cfe565b92915050565b60008083601f84011261137557611374611c45565b5b8235905067ffffffffffffffff81111561139257611391611c40565b5b6020830191508360018202830111156113ae576113ad611c59565b5b9250929050565b600060c082840312156113cb576113ca611c4f565b5b81905092915050565b6000813590506113e381611d15565b92915050565b6000815190506113f881611d15565b92915050565b60006020828403121561141457611413611c68565b5b600061142284828501611320565b91505092915050565b600080600080600080600080600060e08a8c03121561144d5761144c611c68565b5b600061145b8c828d01611320565b995050602061146c8c828d016113d4565b98505060408a013567ffffffffffffffff81111561148d5761148c611c63565b5b6114998c828d0161135f565b975097505060606114ac8c828d016113d4565b95505060806114bd8c828d016113d4565b94505060a08a013567ffffffffffffffff8111156114de576114dd611c63565b5b6114ea8c828d0161135f565b935093505060c06114fd8c828d0161134a565b9150509295985092959850929598565b60006020828403121561152357611522611c68565b5b600061153184828501611335565b91505092915050565b60008060008060008060008060c0898b03121561155a57611559611c68565b5b600089013567ffffffffffffffff81111561157857611577611c63565b5b6115848b828c0161135f565b985098505060206115978b828c016113d4565b96505060406115a88b828c01611320565b95505060606115b98b828c016113d4565b945050608089013567ffffffffffffffff8111156115da576115d9611c63565b5b6115e68b828c0161135f565b935093505060a06115f98b828c0161134a565b9150509295985092959890939650565b60006020828403121561161f5761161e611c68565b5b600082013567ffffffffffffffff81111561163d5761163c611c63565b5b611649848285016113b5565b91505092915050565b60006020828403121561166857611667611c68565b5b6000611676848285016113e9565b91505092915050565b61168881611bac565b82525050565b61169781611bac565b82525050565b6116a681611bbe565b82525050565b60006116b88385611b8a565b93506116c5838584611bfe565b6116ce83611c6d565b840190509392505050565b60006116e482611b6e565b6116ee8185611b79565b93506116fe818560208601611c0d565b61170781611c6d565b840191505092915050565b600061171f601483611b9b565b915061172a82611c7e565b602082019050919050565b6000611742601083611b9b565b915061174d82611ca7565b602082019050919050565b600060a083016000830151848203600086015261177582826116d9565b915050602083015161178a6020860182611865565b50604083015161179d604086018261167f565b5060608301516117b06060860182611865565b50608083015184820360808601526117c882826116d9565b9150508091505092915050565b600060c0830160008301516117ed600086018261167f565b5060208301516118006020860182611865565b506040830151848203604086015261181882826116d9565b915050606083015161182d6060860182611865565b5060808301516118406080860182611865565b5060a083015184820360a086015261185882826116d9565b9150508091505092915050565b61186e81611bf4565b82525050565b61187d81611bf4565b82525050565b6000602082019050611898600083018461168e565b92915050565b60006040820190506118b3600083018561168e565b6118c0602083018461168e565b9392505050565b60006060820190506118dc600083018661168e565b6118e9602083018561168e565b6118f66040830184611874565b949350505050565b600060c082019050611913600083018c61168e565b8181036020830152611926818a8c6116ac565b90506119356040830189611874565b6119426060830188611874565b81810360808301526119558186886116ac565b905081810360a083015261196a8184866116ac565b90509a9950505050505050505050565b600060408201905061198f600083018561168e565b61199c6020830184611874565b9392505050565b600060a0820190506119b8600083018a61168e565b6119c56020830189611874565b81810360408301526119d88187896116ac565b90506119e76060830186611874565b81810360808301526119fa8184866116ac565b905098975050505050505050565b6000602082019050611a1d600083018461169d565b92915050565b60006060820190508181036000830152611a3e8187896116ac565b9050611a4d6020830186611874565b8181036040830152611a608184866116ac565b90509695505050505050565b60006020820190508181036000830152611a8581611712565b9050919050565b60006020820190508181036000830152611aa581611735565b9050919050565b60006020820190508181036000830152611ac68184611758565b905092915050565b60006020820190508181036000830152611ae881846117d5565b905092915050565b6000602082019050611b056000830184611874565b92915050565b60008083356001602003843603038112611b2857611b27611c54565b5b80840192508235915067ffffffffffffffff821115611b4a57611b49611c4a565b5b602083019250600182023603831315611b6657611b65611c5e565b5b509250929050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b6000611bb782611bd4565b9050919050565b60008115159050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015611c2b578082015181840152602081019050611c10565b83811115611c3a576000848401525b50505050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b611cd981611bac565b8114611ce457600080fd5b50565b611cf081611bbe565b8114611cfb57600080fd5b50565b611d0781611bca565b8114611d1257600080fd5b50565b611d1e81611bf4565b8114611d2957600080fd5b5056fea2646970667358221220c386ec06beb54bf2f1fa9d6ebdcbce1a2c994b9dc5c90038fe0d0a4b8174e1ea64736f6c63430008070033","linkReferences":{},"deployedLinkReferences":{}}')},68242:function(t){"use strict";t.exports=JSON.parse('{"_format":"hh-sol-artifact-1","contractName":"SystemContract","sourceName":"contracts/zevm/SystemContract.sol","abi":[{"inputs":[{"internalType":"address","name":"wzeta_","type":"address"},{"internalType":"address","name":"uniswapv2Factory_","type":"address"},{"internalType":"address","name":"uniswapv2Router02_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"CallerIsNotFungibleModule","type":"error"},{"inputs":[],"name":"CantBeIdenticalAddresses","type":"error"},{"inputs":[],"name":"CantBeZeroAddress","type":"error"},{"inputs":[],"name":"InvalidTarget","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"","type":"address"}],"name":"SetConnectorZEVM","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"","type":"uint256"},{"indexed":false,"internalType":"address","name":"","type":"address"}],"name":"SetGasCoin","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"","type":"uint256"}],"name":"SetGasPrice","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"","type":"uint256"},{"indexed":false,"internalType":"address","name":"","type":"address"}],"name":"SetGasZetaPool","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"","type":"address"}],"name":"SetWZeta","type":"event"},{"anonymous":false,"inputs":[],"name":"SystemContractDeployed","type":"event"},{"inputs":[],"name":"FUNGIBLE_MODULE_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"bytes","name":"origin","type":"bytes"},{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"chainID","type":"uint256"}],"internalType":"struct zContext","name":"context","type":"tuple"},{"internalType":"address","name":"zrc20","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"message","type":"bytes"}],"name":"depositAndCall","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"gasCoinZRC20ByChainId","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"gasPriceByChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"gasZetaPoolByChainId","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setConnectorZEVMAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"chainID","type":"uint256"},{"internalType":"address","name":"zrc20","type":"address"}],"name":"setGasCoinZRC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"chainID","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setGasPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"chainID","type":"uint256"},{"internalType":"address","name":"erc20","type":"address"}],"name":"setGasZetaPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setWZETAContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniswapv2FactoryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"factory","type":"address"},{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"}],"name":"uniswapv2PairFor","outputs":[{"internalType":"address","name":"pair","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"uniswapv2Router02Address","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wZetaContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"zetaConnectorZEVMAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}],"bytecode":"0x60c06040523480156200001157600080fd5b50604051620018aa380380620018aa8339818101604052810190620000379190620001ac565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614620000b1576040517f2b2add3d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b815250508073ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b815250507f80699e81136d69cb8367ad52a994e25c722a86da654b561d0c14b61a777e7ac560405160405180910390a15050506200025b565b600081519050620001a68162000241565b92915050565b600080600060608486031215620001c857620001c76200023c565b5b6000620001d88682870162000195565b9350506020620001eb8682870162000195565b9250506040620001fe8682870162000195565b9150509250925092565b600062000215826200021c565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600080fd5b6200024c8162000208565b81146200025857600080fd5b50565b60805160601c60a05160601c61161c6200028e600039600061051b0152600081816105bd0152610bc5015261161c6000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c806397770dff11610097578063c63585cc11610066578063c63585cc1461025e578063d7fd7afb1461028e578063d936a012146102be578063ee2815ba146102dc576100f5565b806397770dff146101ec578063a7cb050714610208578063c39aca3714610224578063c62178ac14610240576100f5565b8063513a9c05116100d3578063513a9c0514610164578063569541b914610194578063842da36d146101b257806391dd645f146101d0576100f5565b80630be15547146100fa5780631f0e251b1461012a5780633ce4a5bc14610146575b600080fd5b610114600480360381019061010f9190611022565b6102f8565b60405161012191906112b1565b60405180910390f35b610144600480360381019061013f9190610ebf565b61032b565b005b61014e6104a8565b60405161015b91906112b1565b60405180910390f35b61017e60048036038101906101799190611022565b6104c0565b60405161018b91906112b1565b60405180910390f35b61019c6104f3565b6040516101a991906112b1565b60405180910390f35b6101ba610519565b6040516101c791906112b1565b60405180910390f35b6101ea60048036038101906101e5919061104f565b61053d565b005b61020660048036038101906102019190610ebf565b610697565b005b610222600480360381019061021d919061108f565b610814565b005b61023e60048036038101906102399190610f6c565b6108e1565b005b610248610b13565b60405161025591906112b1565b60405180910390f35b61027860048036038101906102739190610eec565b610b39565b60405161028591906112b1565b60405180910390f35b6102a860048036038101906102a39190611022565b610bab565b6040516102b5919061134a565b60405180910390f35b6102c6610bc3565b6040516102d391906112b1565b60405180910390f35b6102f660048036038101906102f1919061104f565b610be7565b005b60016020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146103a4576040517f2b2add3d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561040b576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f3ade88e3922d64780e1bf4460d364c2970b69da813f9c0c07a1c187b5647636c600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660405161049d91906112b1565b60405180910390a150565b73735b14bb79463307aacbed86daf3322b1e6226ab81565b60026020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b7f000000000000000000000000000000000000000000000000000000000000000081565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146105b6576040517f2b2add3d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006106057f0000000000000000000000000000000000000000000000000000000000000000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684610b39565b9050806002600085815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f0ecec485166da6139b13bb7e033e9446e2d35348e80ebf1180d4afe2dba1704e838260405161068a929190611365565b60405180910390a1505050565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610710576040517f2b2add3d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610777576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fdba79d534382d1a8ae108e4c8ecb27c6ae42ab8b91d44eedf88bd329f3868d5e600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660405161080991906112b1565b60405180910390a150565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461088d576040517f2b2add3d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600080848152602001908152602001600020819055507f49f492222906ac486c3c1401fa545626df1f0c0e5a77a05597ea2ed66af9850d82826040516108d592919061138e565b60405180910390a15050565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461095a576040517f2b2add3d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614806109d357503073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b15610a0a576040517f82d5d76a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff166347e7ef2484866040518363ffffffff1660e01b8152600401610a459291906112cc565b602060405180830381600087803b158015610a5f57600080fd5b505af1158015610a73573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a979190610f3f565b508273ffffffffffffffffffffffffffffffffffffffff1663de43156e87878786866040518663ffffffff1660e01b8152600401610ad99594939291906112f5565b600060405180830381600087803b158015610af357600080fd5b505af1158015610b07573d6000803e3d6000fd5b50505050505050505050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000806000610b488585610cef565b91509150858282604051602001610b60929190611243565b60405160208183030381529060405280519060200120604051602001610b8792919061126f565b6040516020818303038152906040528051906020012060001c925050509392505050565b60006020528060005260406000206000915090505481565b7f000000000000000000000000000000000000000000000000000000000000000081565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610c60576040517f2b2add3d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806001600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fd1b36d30f6248e97c473b4d1348ca164a4ef6759022f54a58ec200326c39c45d8282604051610ce3929190611365565b60405180910390a15050565b6000808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415610d58576040517fcb1e7cfe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1610610d92578284610d95565b83835b8092508193505050600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610e04576040517f78b507da00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b9250929050565b600081359050610e1a816115a1565b92915050565b600081519050610e2f816115b8565b92915050565b60008083601f840112610e4b57610e4a61150e565b5b8235905067ffffffffffffffff811115610e6857610e67611509565b5b602083019150836001820283011115610e8457610e8361151d565b5b9250929050565b600060608284031215610ea157610ea0611513565b5b81905092915050565b600081359050610eb9816115cf565b92915050565b600060208284031215610ed557610ed461152c565b5b6000610ee384828501610e0b565b91505092915050565b600080600060608486031215610f0557610f0461152c565b5b6000610f1386828701610e0b565b9350506020610f2486828701610e0b565b9250506040610f3586828701610e0b565b9150509250925092565b600060208284031215610f5557610f5461152c565b5b6000610f6384828501610e20565b91505092915050565b60008060008060008060a08789031215610f8957610f8861152c565b5b600087013567ffffffffffffffff811115610fa757610fa6611522565b5b610fb389828a01610e8b565b9650506020610fc489828a01610e0b565b9550506040610fd589828a01610eaa565b9450506060610fe689828a01610e0b565b935050608087013567ffffffffffffffff81111561100757611006611522565b5b61101389828a01610e35565b92509250509295509295509295565b6000602082840312156110385761103761152c565b5b600061104684828501610eaa565b91505092915050565b600080604083850312156110665761106561152c565b5b600061107485828601610eaa565b925050602061108585828601610e0b565b9150509250929050565b600080604083850312156110a6576110a561152c565b5b60006110b485828601610eaa565b92505060206110c585828601610eaa565b9150509250929050565b6110d881611475565b82525050565b6110e781611475565b82525050565b6110fe6110f982611475565b6114d6565b82525050565b61111561111082611493565b6114e8565b82525050565b600061112783856113b7565b93506111348385846114c7565b61113d83611531565b840190509392505050565b600061115483856113c8565b93506111618385846114c7565b61116a83611531565b840190509392505050565b60006111826020836113d9565b915061118d8261154f565b602082019050919050565b60006111a56001836113d9565b91506111b082611578565b600182019050919050565b6000606083016111ce60008401846113fb565b85830360008701526111e183828461111b565b925050506111f260208401846113e4565b6111ff60208601826110cf565b5061120d604084018461145e565b61121a6040860182611225565b508091505092915050565b61122e816114bd565b82525050565b61123d816114bd565b82525050565b600061124f82856110ed565b60148201915061125f82846110ed565b6014820191508190509392505050565b600061127a82611198565b915061128682856110ed565b6014820191506112968284611104565b6020820191506112a582611175565b91508190509392505050565b60006020820190506112c660008301846110de565b92915050565b60006040820190506112e160008301856110de565b6112ee6020830184611234565b9392505050565b6000608082019050818103600083015261130f81886111bb565b905061131e60208301876110de565b61132b6040830186611234565b818103606083015261133e818486611148565b90509695505050505050565b600060208201905061135f6000830184611234565b92915050565b600060408201905061137a6000830185611234565b61138760208301846110de565b9392505050565b60006040820190506113a36000830185611234565b6113b06020830184611234565b9392505050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006113f36020840184610e0b565b905092915050565b6000808335600160200384360303811261141857611417611527565b5b83810192508235915060208301925067ffffffffffffffff8211156114405761143f611504565b5b60018202360384131561145657611455611518565b5b509250929050565b600061146d6020840184610eaa565b905092915050565b60006114808261149d565b9050919050565b60008115159050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60006114e1826114f2565b9050919050565b6000819050919050565b60006114fd82611542565b9050919050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f600082015250565b7fff00000000000000000000000000000000000000000000000000000000000000600082015250565b6115aa81611475565b81146115b557600080fd5b50565b6115c181611487565b81146115cc57600080fd5b50565b6115d8816114bd565b81146115e357600080fd5b5056fea2646970667358221220d4153f74dccdcf8c4e404c06ec70932b2acc46ffc5784c13399fb6b547739b2064736f6c63430008070033","deployedBytecode":"0x608060405234801561001057600080fd5b50600436106100f55760003560e01c806397770dff11610097578063c63585cc11610066578063c63585cc1461025e578063d7fd7afb1461028e578063d936a012146102be578063ee2815ba146102dc576100f5565b806397770dff146101ec578063a7cb050714610208578063c39aca3714610224578063c62178ac14610240576100f5565b8063513a9c05116100d3578063513a9c0514610164578063569541b914610194578063842da36d146101b257806391dd645f146101d0576100f5565b80630be15547146100fa5780631f0e251b1461012a5780633ce4a5bc14610146575b600080fd5b610114600480360381019061010f9190611022565b6102f8565b60405161012191906112b1565b60405180910390f35b610144600480360381019061013f9190610ebf565b61032b565b005b61014e6104a8565b60405161015b91906112b1565b60405180910390f35b61017e60048036038101906101799190611022565b6104c0565b60405161018b91906112b1565b60405180910390f35b61019c6104f3565b6040516101a991906112b1565b60405180910390f35b6101ba610519565b6040516101c791906112b1565b60405180910390f35b6101ea60048036038101906101e5919061104f565b61053d565b005b61020660048036038101906102019190610ebf565b610697565b005b610222600480360381019061021d919061108f565b610814565b005b61023e60048036038101906102399190610f6c565b6108e1565b005b610248610b13565b60405161025591906112b1565b60405180910390f35b61027860048036038101906102739190610eec565b610b39565b60405161028591906112b1565b60405180910390f35b6102a860048036038101906102a39190611022565b610bab565b6040516102b5919061134a565b60405180910390f35b6102c6610bc3565b6040516102d391906112b1565b60405180910390f35b6102f660048036038101906102f1919061104f565b610be7565b005b60016020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146103a4576040517f2b2add3d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561040b576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f3ade88e3922d64780e1bf4460d364c2970b69da813f9c0c07a1c187b5647636c600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660405161049d91906112b1565b60405180910390a150565b73735b14bb79463307aacbed86daf3322b1e6226ab81565b60026020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b7f000000000000000000000000000000000000000000000000000000000000000081565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146105b6576040517f2b2add3d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006106057f0000000000000000000000000000000000000000000000000000000000000000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684610b39565b9050806002600085815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f0ecec485166da6139b13bb7e033e9446e2d35348e80ebf1180d4afe2dba1704e838260405161068a929190611365565b60405180910390a1505050565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610710576040517f2b2add3d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610777576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fdba79d534382d1a8ae108e4c8ecb27c6ae42ab8b91d44eedf88bd329f3868d5e600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660405161080991906112b1565b60405180910390a150565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461088d576040517f2b2add3d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600080848152602001908152602001600020819055507f49f492222906ac486c3c1401fa545626df1f0c0e5a77a05597ea2ed66af9850d82826040516108d592919061138e565b60405180910390a15050565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461095a576040517f2b2add3d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614806109d357503073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b15610a0a576040517f82d5d76a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff166347e7ef2484866040518363ffffffff1660e01b8152600401610a459291906112cc565b602060405180830381600087803b158015610a5f57600080fd5b505af1158015610a73573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a979190610f3f565b508273ffffffffffffffffffffffffffffffffffffffff1663de43156e87878786866040518663ffffffff1660e01b8152600401610ad99594939291906112f5565b600060405180830381600087803b158015610af357600080fd5b505af1158015610b07573d6000803e3d6000fd5b50505050505050505050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000806000610b488585610cef565b91509150858282604051602001610b60929190611243565b60405160208183030381529060405280519060200120604051602001610b8792919061126f565b6040516020818303038152906040528051906020012060001c925050509392505050565b60006020528060005260406000206000915090505481565b7f000000000000000000000000000000000000000000000000000000000000000081565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610c60576040517f2b2add3d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806001600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fd1b36d30f6248e97c473b4d1348ca164a4ef6759022f54a58ec200326c39c45d8282604051610ce3929190611365565b60405180910390a15050565b6000808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415610d58576040517fcb1e7cfe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1610610d92578284610d95565b83835b8092508193505050600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610e04576040517f78b507da00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b9250929050565b600081359050610e1a816115a1565b92915050565b600081519050610e2f816115b8565b92915050565b60008083601f840112610e4b57610e4a61150e565b5b8235905067ffffffffffffffff811115610e6857610e67611509565b5b602083019150836001820283011115610e8457610e8361151d565b5b9250929050565b600060608284031215610ea157610ea0611513565b5b81905092915050565b600081359050610eb9816115cf565b92915050565b600060208284031215610ed557610ed461152c565b5b6000610ee384828501610e0b565b91505092915050565b600080600060608486031215610f0557610f0461152c565b5b6000610f1386828701610e0b565b9350506020610f2486828701610e0b565b9250506040610f3586828701610e0b565b9150509250925092565b600060208284031215610f5557610f5461152c565b5b6000610f6384828501610e20565b91505092915050565b60008060008060008060a08789031215610f8957610f8861152c565b5b600087013567ffffffffffffffff811115610fa757610fa6611522565b5b610fb389828a01610e8b565b9650506020610fc489828a01610e0b565b9550506040610fd589828a01610eaa565b9450506060610fe689828a01610e0b565b935050608087013567ffffffffffffffff81111561100757611006611522565b5b61101389828a01610e35565b92509250509295509295509295565b6000602082840312156110385761103761152c565b5b600061104684828501610eaa565b91505092915050565b600080604083850312156110665761106561152c565b5b600061107485828601610eaa565b925050602061108585828601610e0b565b9150509250929050565b600080604083850312156110a6576110a561152c565b5b60006110b485828601610eaa565b92505060206110c585828601610eaa565b9150509250929050565b6110d881611475565b82525050565b6110e781611475565b82525050565b6110fe6110f982611475565b6114d6565b82525050565b61111561111082611493565b6114e8565b82525050565b600061112783856113b7565b93506111348385846114c7565b61113d83611531565b840190509392505050565b600061115483856113c8565b93506111618385846114c7565b61116a83611531565b840190509392505050565b60006111826020836113d9565b915061118d8261154f565b602082019050919050565b60006111a56001836113d9565b91506111b082611578565b600182019050919050565b6000606083016111ce60008401846113fb565b85830360008701526111e183828461111b565b925050506111f260208401846113e4565b6111ff60208601826110cf565b5061120d604084018461145e565b61121a6040860182611225565b508091505092915050565b61122e816114bd565b82525050565b61123d816114bd565b82525050565b600061124f82856110ed565b60148201915061125f82846110ed565b6014820191508190509392505050565b600061127a82611198565b915061128682856110ed565b6014820191506112968284611104565b6020820191506112a582611175565b91508190509392505050565b60006020820190506112c660008301846110de565b92915050565b60006040820190506112e160008301856110de565b6112ee6020830184611234565b9392505050565b6000608082019050818103600083015261130f81886111bb565b905061131e60208301876110de565b61132b6040830186611234565b818103606083015261133e818486611148565b90509695505050505050565b600060208201905061135f6000830184611234565b92915050565b600060408201905061137a6000830185611234565b61138760208301846110de565b9392505050565b60006040820190506113a36000830185611234565b6113b06020830184611234565b9392505050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006113f36020840184610e0b565b905092915050565b6000808335600160200384360303811261141857611417611527565b5b83810192508235915060208301925067ffffffffffffffff8211156114405761143f611504565b5b60018202360384131561145657611455611518565b5b509250929050565b600061146d6020840184610eaa565b905092915050565b60006114808261149d565b9050919050565b60008115159050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60006114e1826114f2565b9050919050565b6000819050919050565b60006114fd82611542565b9050919050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f600082015250565b7fff00000000000000000000000000000000000000000000000000000000000000600082015250565b6115aa81611475565b81146115b557600080fd5b50565b6115c181611487565b81146115cc57600080fd5b50565b6115d8816114bd565b81146115e357600080fd5b5056fea2646970667358221220d4153f74dccdcf8c4e404c06ec70932b2acc46ffc5784c13399fb6b547739b2064736f6c63430008070033","linkReferences":{},"deployedLinkReferences":{}}')},25252:function(t){"use strict";t.exports=JSON.parse('{"_format":"hh-sol-artifact-1","contractName":"ZRC20","sourceName":"contracts/zevm/ZRC20.sol","abi":[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"uint8","name":"decimals_","type":"uint8"},{"internalType":"uint256","name":"chainid_","type":"uint256"},{"internalType":"enum CoinType","name":"coinType_","type":"uint8"},{"internalType":"uint256","name":"gasLimit_","type":"uint256"},{"internalType":"address","name":"systemContractAddress_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"CallerIsNotFungibleModule","type":"error"},{"inputs":[],"name":"GasFeeTransferFailed","type":"error"},{"inputs":[],"name":"InvalidSender","type":"error"},{"inputs":[],"name":"LowAllowance","type":"error"},{"inputs":[],"name":"LowBalance","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"inputs":[],"name":"ZeroGasCoin","type":"error"},{"inputs":[],"name":"ZeroGasPrice","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes","name":"from","type":"bytes"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"gasLimit","type":"uint256"}],"name":"UpdatedGasLimit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"protocolFlatFee","type":"uint256"}],"name":"UpdatedProtocolFlatFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"systemContract","type":"address"}],"name":"UpdatedSystemContract","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"bytes","name":"to","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"gasfee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"protocolFlatFee","type":"uint256"}],"name":"Withdrawal","type":"event"},{"inputs":[],"name":"CHAIN_ID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"COIN_TYPE","outputs":[{"internalType":"enum CoinType","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FUNGIBLE_MODULE_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GAS_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PROTOCOL_FLAT_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SYSTEM_CONTRACT_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"gasLimit","type":"uint256"}],"name":"updateGasLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"protocolFlatFee","type":"uint256"}],"name":"updateProtocolFlatFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"updateSystemContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"to","type":"bytes"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawGasFee","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}],"bytecode":"0x60c06040523480156200001157600080fd5b506040516200272c3803806200272c833981810160405281019062000037919062000319565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614620000b1576040517f2b2add3d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8660069080519060200190620000c99291906200018f565b508560079080519060200190620000e29291906200018f565b5084600860006101000a81548160ff021916908360ff16021790555083608081815250508260028111156200011c576200011b62000556565b5b60a081600281111562000134576200013362000556565b5b60f81b8152505081600181905550806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050505050505062000667565b8280546200019d90620004ea565b90600052602060002090601f016020900481019282620001c157600085556200020d565b82601f10620001dc57805160ff19168380011785556200020d565b828001600101855582156200020d579182015b828111156200020c578251825591602001919060010190620001ef565b5b5090506200021c919062000220565b5090565b5b808211156200023b57600081600090555060010162000221565b5090565b600062000256620002508462000433565b6200040a565b905082815260208101848484011115620002755762000274620005e8565b5b62000282848285620004b4565b509392505050565b6000815190506200029b8162000608565b92915050565b600081519050620002b28162000622565b92915050565b600082601f830112620002d057620002cf620005e3565b5b8151620002e28482602086016200023f565b91505092915050565b600081519050620002fc8162000633565b92915050565b60008151905062000313816200064d565b92915050565b600080600080600080600060e0888a0312156200033b576200033a620005f2565b5b600088015167ffffffffffffffff8111156200035c576200035b620005ed565b5b6200036a8a828b01620002b8565b975050602088015167ffffffffffffffff8111156200038e576200038d620005ed565b5b6200039c8a828b01620002b8565b9650506040620003af8a828b0162000302565b9550506060620003c28a828b01620002eb565b9450506080620003d58a828b01620002a1565b93505060a0620003e88a828b01620002eb565b92505060c0620003fb8a828b016200028a565b91505092959891949750929550565b60006200041662000429565b905062000424828262000520565b919050565b6000604051905090565b600067ffffffffffffffff821115620004515762000450620005b4565b5b6200045c82620005f7565b9050602081019050919050565b600062000476826200047d565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60005b83811015620004d4578082015181840152602081019050620004b7565b83811115620004e4576000848401525b50505050565b600060028204905060018216806200050357607f821691505b602082108114156200051a576200051962000585565b5b50919050565b6200052b82620005f7565b810181811067ffffffffffffffff821117156200054d576200054c620005b4565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b620006138162000469565b81146200061f57600080fd5b50565b600381106200063057600080fd5b50565b6200063e816200049d565b81146200064a57600080fd5b50565b6200065881620004a7565b81146200066457600080fd5b50565b60805160a05160f81c61208e6200069e60003960006108d501526000818161081f01528181610ba20152610cd7015261208e6000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c806385e1f4d0116100b8578063c835d7cc1161007c578063c835d7cc146103a5578063d9eeebed146103c1578063dd62ed3e146103e0578063eddeb12314610410578063f2441b321461042c578063f687d12a1461044a57610142565b806385e1f4d0146102eb57806395d89b4114610309578063a3413d0314610327578063a9059cbb14610345578063c70126261461037557610142565b8063313ce5671161010a578063313ce567146102015780633ce4a5bc1461021f57806342966c681461023d57806347e7ef241461026d5780634d8943bb1461029d57806370a08231146102bb57610142565b806306fdde0314610147578063091d278814610165578063095ea7b31461018357806318160ddd146101b357806323b872dd146101d1575b600080fd5b61014f610466565b60405161015c9190611c04565b60405180910390f35b61016d6104f8565b60405161017a9190611c26565b60405180910390f35b61019d600480360381019061019891906118c5565b6104fe565b6040516101aa9190611b52565b60405180910390f35b6101bb61051c565b6040516101c89190611c26565b60405180910390f35b6101eb60048036038101906101e69190611872565b610526565b6040516101f89190611b52565b60405180910390f35b61020961061e565b6040516102169190611c41565b60405180910390f35b610227610635565b6040516102349190611ad7565b60405180910390f35b6102576004803603810190610252919061198e565b61064d565b6040516102649190611b52565b60405180910390f35b610287600480360381019061028291906118c5565b610662565b6040516102949190611b52565b60405180910390f35b6102a56107ce565b6040516102b29190611c26565b60405180910390f35b6102d560048036038101906102d091906117d8565b6107d4565b6040516102e29190611c26565b60405180910390f35b6102f361081d565b6040516103009190611c26565b60405180910390f35b610311610841565b60405161031e9190611c04565b60405180910390f35b61032f6108d3565b60405161033c9190611be9565b60405180910390f35b61035f600480360381019061035a91906118c5565b6108f7565b60405161036c9190611b52565b60405180910390f35b61038f600480360381019061038a9190611932565b610915565b60405161039c9190611b52565b60405180910390f35b6103bf60048036038101906103ba91906117d8565b610a6b565b005b6103c9610b5e565b6040516103d7929190611b29565b60405180910390f35b6103fa60048036038101906103f59190611832565b610dcb565b6040516104079190611c26565b60405180910390f35b61042a6004803603810190610425919061198e565b610e52565b005b610434610f0c565b6040516104419190611ad7565b60405180910390f35b610464600480360381019061045f919061198e565b610f30565b005b60606006805461047590611e8a565b80601f01602080910402602001604051908101604052809291908181526020018280546104a190611e8a565b80156104ee5780601f106104c3576101008083540402835291602001916104ee565b820191906000526020600020905b8154815290600101906020018083116104d157829003601f168201915b5050505050905090565b60015481565b600061051261050b610fea565b8484610ff2565b6001905092915050565b6000600554905090565b60006105338484846111ab565b6000600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600061057e610fea565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050828110156105f5576040517f10bad14700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61061285610601610fea565b858461060d9190611d9a565b610ff2565b60019150509392505050565b6000600860009054906101000a900460ff16905090565b73735b14bb79463307aacbed86daf3322b1e6226ab81565b60006106593383611407565b60019050919050565b600073735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614158015610700575060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614155b15610737576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61074183836115bf565b8273ffffffffffffffffffffffffffffffffffffffff167f67fc7bdaed5b0ec550d8706b87d60568ab70c6b781263c70101d54cd1564aab373735b14bb79463307aacbed86daf3322b1e6226ab60405160200161079e9190611abc565b604051602081830303815290604052846040516107bc929190611b6d565b60405180910390a26001905092915050565b60025481565b6000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60606007805461085090611e8a565b80601f016020809104026020016040519081016040528092919081815260200182805461087c90611e8a565b80156108c95780601f1061089e576101008083540402835291602001916108c9565b820191906000526020600020905b8154815290600101906020018083116108ac57829003601f168201915b5050505050905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b600061090b610904610fea565b84846111ab565b6001905092915050565b6000806000610922610b5e565b915091508173ffffffffffffffffffffffffffffffffffffffff166323b872dd3373735b14bb79463307aacbed86daf3322b1e6226ab846040518463ffffffff1660e01b815260040161097793929190611af2565b602060405180830381600087803b15801561099157600080fd5b505af11580156109a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109c99190611905565b6109ff576040517f0a7cd6d600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610a093385611407565b3373ffffffffffffffffffffffffffffffffffffffff167f9ffbffc04a397460ee1dbe8c9503e098090567d6b7f4b3c02a8617d800b6d955868684600254604051610a579493929190611b9d565b60405180910390a260019250505092915050565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610ae4576040517f2b2add3d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fd55614e962c5fd6ece71614f6348d702468a997a394dd5e5c1677950226d97ae81604051610b539190611ad7565b60405180910390a150565b60008060008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630be155477f00000000000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b8152600401610bdd9190611c26565b60206040518083038186803b158015610bf557600080fd5b505afa158015610c09573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c2d9190611805565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610c96576040517f78fff39600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d7fd7afb7f00000000000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b8152600401610d129190611c26565b60206040518083038186803b158015610d2a57600080fd5b505afa158015610d3e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d6291906119bb565b90506000811415610d9f576040517fe661aed000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600060025460015483610db29190611d40565b610dbc9190611cea565b90508281945094505050509091565b6000600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610ecb576040517f2b2add3d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806002819055507fef13af88e424b5d15f49c77758542c1938b08b8b95b91ed0751f98ba99000d8f81604051610f019190611c26565b60405180910390a150565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610fa9576040517f2b2add3d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806001819055507fff5788270f43bfc1ca41c503606d2594aa3023a1a7547de403a3e2f146a4a80a81604051610fdf9190611c26565b60405180910390a150565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611059576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156110c0576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258360405161119e9190611c26565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611212576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611279576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156112f7576040517ffe382aa700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81816113039190611d9a565b600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546113959190611cea565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516113f99190611c26565b60405180910390a350505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561146e576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156114ec576040517ffe382aa700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81816114f89190611d9a565b600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816005600082825461154d9190611d9a565b92505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516115b29190611c26565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611626576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600560008282546116389190611cea565b9250508190555080600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461168e9190611cea565b925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516116f39190611c26565b60405180910390a35050565b600061171261170d84611c81565b611c5c565b90508281526020810184848401111561172e5761172d611fd2565b5b611739848285611e48565b509392505050565b60008135905061175081612013565b92915050565b60008151905061176581612013565b92915050565b60008151905061177a8161202a565b92915050565b600082601f83011261179557611794611fcd565b5b81356117a58482602086016116ff565b91505092915050565b6000813590506117bd81612041565b92915050565b6000815190506117d281612041565b92915050565b6000602082840312156117ee576117ed611fdc565b5b60006117fc84828501611741565b91505092915050565b60006020828403121561181b5761181a611fdc565b5b600061182984828501611756565b91505092915050565b6000806040838503121561184957611848611fdc565b5b600061185785828601611741565b925050602061186885828601611741565b9150509250929050565b60008060006060848603121561188b5761188a611fdc565b5b600061189986828701611741565b93505060206118aa86828701611741565b92505060406118bb868287016117ae565b9150509250925092565b600080604083850312156118dc576118db611fdc565b5b60006118ea85828601611741565b92505060206118fb858286016117ae565b9150509250929050565b60006020828403121561191b5761191a611fdc565b5b60006119298482850161176b565b91505092915050565b6000806040838503121561194957611948611fdc565b5b600083013567ffffffffffffffff81111561196757611966611fd7565b5b61197385828601611780565b9250506020611984858286016117ae565b9150509250929050565b6000602082840312156119a4576119a3611fdc565b5b60006119b2848285016117ae565b91505092915050565b6000602082840312156119d1576119d0611fdc565b5b60006119df848285016117c3565b91505092915050565b6119f181611dce565b82525050565b611a08611a0382611dce565b611eed565b82525050565b611a1781611de0565b82525050565b6000611a2882611cb2565b611a328185611cc8565b9350611a42818560208601611e57565b611a4b81611fe1565b840191505092915050565b611a5f81611e36565b82525050565b6000611a7082611cbd565b611a7a8185611cd9565b9350611a8a818560208601611e57565b611a9381611fe1565b840191505092915050565b611aa781611e1f565b82525050565b611ab681611e29565b82525050565b6000611ac882846119f7565b60148201915081905092915050565b6000602082019050611aec60008301846119e8565b92915050565b6000606082019050611b0760008301866119e8565b611b1460208301856119e8565b611b216040830184611a9e565b949350505050565b6000604082019050611b3e60008301856119e8565b611b4b6020830184611a9e565b9392505050565b6000602082019050611b676000830184611a0e565b92915050565b60006040820190508181036000830152611b878185611a1d565b9050611b966020830184611a9e565b9392505050565b60006080820190508181036000830152611bb78187611a1d565b9050611bc66020830186611a9e565b611bd36040830185611a9e565b611be06060830184611a9e565b95945050505050565b6000602082019050611bfe6000830184611a56565b92915050565b60006020820190508181036000830152611c1e8184611a65565b905092915050565b6000602082019050611c3b6000830184611a9e565b92915050565b6000602082019050611c566000830184611aad565b92915050565b6000611c66611c77565b9050611c728282611ebc565b919050565b6000604051905090565b600067ffffffffffffffff821115611c9c57611c9b611f9e565b5b611ca582611fe1565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b6000611cf582611e1f565b9150611d0083611e1f565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115611d3557611d34611f11565b5b828201905092915050565b6000611d4b82611e1f565b9150611d5683611e1f565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611d8f57611d8e611f11565b5b828202905092915050565b6000611da582611e1f565b9150611db083611e1f565b925082821015611dc357611dc2611f11565b5b828203905092915050565b6000611dd982611dff565b9050919050565b60008115159050919050565b6000819050611dfa82611fff565b919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b6000611e4182611dec565b9050919050565b82818337600083830152505050565b60005b83811015611e75578082015181840152602081019050611e5a565b83811115611e84576000848401525b50505050565b60006002820490506001821680611ea257607f821691505b60208210811415611eb657611eb5611f6f565b5b50919050565b611ec582611fe1565b810181811067ffffffffffffffff82111715611ee457611ee3611f9e565b5b80604052505050565b6000611ef882611eff565b9050919050565b6000611f0a82611ff2565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b600381106120105761200f611f40565b5b50565b61201c81611dce565b811461202757600080fd5b50565b61203381611de0565b811461203e57600080fd5b50565b61204a81611e1f565b811461205557600080fd5b5056fea2646970667358221220edaf9ed98354e71aa84b95b4433f47537dd491d72f649020c367c23ec482327064736f6c63430008070033","deployedBytecode":"0x608060405234801561001057600080fd5b50600436106101425760003560e01c806385e1f4d0116100b8578063c835d7cc1161007c578063c835d7cc146103a5578063d9eeebed146103c1578063dd62ed3e146103e0578063eddeb12314610410578063f2441b321461042c578063f687d12a1461044a57610142565b806385e1f4d0146102eb57806395d89b4114610309578063a3413d0314610327578063a9059cbb14610345578063c70126261461037557610142565b8063313ce5671161010a578063313ce567146102015780633ce4a5bc1461021f57806342966c681461023d57806347e7ef241461026d5780634d8943bb1461029d57806370a08231146102bb57610142565b806306fdde0314610147578063091d278814610165578063095ea7b31461018357806318160ddd146101b357806323b872dd146101d1575b600080fd5b61014f610466565b60405161015c9190611c04565b60405180910390f35b61016d6104f8565b60405161017a9190611c26565b60405180910390f35b61019d600480360381019061019891906118c5565b6104fe565b6040516101aa9190611b52565b60405180910390f35b6101bb61051c565b6040516101c89190611c26565b60405180910390f35b6101eb60048036038101906101e69190611872565b610526565b6040516101f89190611b52565b60405180910390f35b61020961061e565b6040516102169190611c41565b60405180910390f35b610227610635565b6040516102349190611ad7565b60405180910390f35b6102576004803603810190610252919061198e565b61064d565b6040516102649190611b52565b60405180910390f35b610287600480360381019061028291906118c5565b610662565b6040516102949190611b52565b60405180910390f35b6102a56107ce565b6040516102b29190611c26565b60405180910390f35b6102d560048036038101906102d091906117d8565b6107d4565b6040516102e29190611c26565b60405180910390f35b6102f361081d565b6040516103009190611c26565b60405180910390f35b610311610841565b60405161031e9190611c04565b60405180910390f35b61032f6108d3565b60405161033c9190611be9565b60405180910390f35b61035f600480360381019061035a91906118c5565b6108f7565b60405161036c9190611b52565b60405180910390f35b61038f600480360381019061038a9190611932565b610915565b60405161039c9190611b52565b60405180910390f35b6103bf60048036038101906103ba91906117d8565b610a6b565b005b6103c9610b5e565b6040516103d7929190611b29565b60405180910390f35b6103fa60048036038101906103f59190611832565b610dcb565b6040516104079190611c26565b60405180910390f35b61042a6004803603810190610425919061198e565b610e52565b005b610434610f0c565b6040516104419190611ad7565b60405180910390f35b610464600480360381019061045f919061198e565b610f30565b005b60606006805461047590611e8a565b80601f01602080910402602001604051908101604052809291908181526020018280546104a190611e8a565b80156104ee5780601f106104c3576101008083540402835291602001916104ee565b820191906000526020600020905b8154815290600101906020018083116104d157829003601f168201915b5050505050905090565b60015481565b600061051261050b610fea565b8484610ff2565b6001905092915050565b6000600554905090565b60006105338484846111ab565b6000600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600061057e610fea565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050828110156105f5576040517f10bad14700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61061285610601610fea565b858461060d9190611d9a565b610ff2565b60019150509392505050565b6000600860009054906101000a900460ff16905090565b73735b14bb79463307aacbed86daf3322b1e6226ab81565b60006106593383611407565b60019050919050565b600073735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614158015610700575060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614155b15610737576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61074183836115bf565b8273ffffffffffffffffffffffffffffffffffffffff167f67fc7bdaed5b0ec550d8706b87d60568ab70c6b781263c70101d54cd1564aab373735b14bb79463307aacbed86daf3322b1e6226ab60405160200161079e9190611abc565b604051602081830303815290604052846040516107bc929190611b6d565b60405180910390a26001905092915050565b60025481565b6000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60606007805461085090611e8a565b80601f016020809104026020016040519081016040528092919081815260200182805461087c90611e8a565b80156108c95780601f1061089e576101008083540402835291602001916108c9565b820191906000526020600020905b8154815290600101906020018083116108ac57829003601f168201915b5050505050905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b600061090b610904610fea565b84846111ab565b6001905092915050565b6000806000610922610b5e565b915091508173ffffffffffffffffffffffffffffffffffffffff166323b872dd3373735b14bb79463307aacbed86daf3322b1e6226ab846040518463ffffffff1660e01b815260040161097793929190611af2565b602060405180830381600087803b15801561099157600080fd5b505af11580156109a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109c99190611905565b6109ff576040517f0a7cd6d600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610a093385611407565b3373ffffffffffffffffffffffffffffffffffffffff167f9ffbffc04a397460ee1dbe8c9503e098090567d6b7f4b3c02a8617d800b6d955868684600254604051610a579493929190611b9d565b60405180910390a260019250505092915050565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610ae4576040517f2b2add3d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fd55614e962c5fd6ece71614f6348d702468a997a394dd5e5c1677950226d97ae81604051610b539190611ad7565b60405180910390a150565b60008060008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630be155477f00000000000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b8152600401610bdd9190611c26565b60206040518083038186803b158015610bf557600080fd5b505afa158015610c09573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c2d9190611805565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610c96576040517f78fff39600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d7fd7afb7f00000000000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b8152600401610d129190611c26565b60206040518083038186803b158015610d2a57600080fd5b505afa158015610d3e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d6291906119bb565b90506000811415610d9f576040517fe661aed000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600060025460015483610db29190611d40565b610dbc9190611cea565b90508281945094505050509091565b6000600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610ecb576040517f2b2add3d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806002819055507fef13af88e424b5d15f49c77758542c1938b08b8b95b91ed0751f98ba99000d8f81604051610f019190611c26565b60405180910390a150565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610fa9576040517f2b2add3d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806001819055507fff5788270f43bfc1ca41c503606d2594aa3023a1a7547de403a3e2f146a4a80a81604051610fdf9190611c26565b60405180910390a150565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611059576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156110c0576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258360405161119e9190611c26565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611212576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611279576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156112f7576040517ffe382aa700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81816113039190611d9a565b600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546113959190611cea565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516113f99190611c26565b60405180910390a350505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561146e576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156114ec576040517ffe382aa700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81816114f89190611d9a565b600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816005600082825461154d9190611d9a565b92505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516115b29190611c26565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611626576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600560008282546116389190611cea565b9250508190555080600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461168e9190611cea565b925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516116f39190611c26565b60405180910390a35050565b600061171261170d84611c81565b611c5c565b90508281526020810184848401111561172e5761172d611fd2565b5b611739848285611e48565b509392505050565b60008135905061175081612013565b92915050565b60008151905061176581612013565b92915050565b60008151905061177a8161202a565b92915050565b600082601f83011261179557611794611fcd565b5b81356117a58482602086016116ff565b91505092915050565b6000813590506117bd81612041565b92915050565b6000815190506117d281612041565b92915050565b6000602082840312156117ee576117ed611fdc565b5b60006117fc84828501611741565b91505092915050565b60006020828403121561181b5761181a611fdc565b5b600061182984828501611756565b91505092915050565b6000806040838503121561184957611848611fdc565b5b600061185785828601611741565b925050602061186885828601611741565b9150509250929050565b60008060006060848603121561188b5761188a611fdc565b5b600061189986828701611741565b93505060206118aa86828701611741565b92505060406118bb868287016117ae565b9150509250925092565b600080604083850312156118dc576118db611fdc565b5b60006118ea85828601611741565b92505060206118fb858286016117ae565b9150509250929050565b60006020828403121561191b5761191a611fdc565b5b60006119298482850161176b565b91505092915050565b6000806040838503121561194957611948611fdc565b5b600083013567ffffffffffffffff81111561196757611966611fd7565b5b61197385828601611780565b9250506020611984858286016117ae565b9150509250929050565b6000602082840312156119a4576119a3611fdc565b5b60006119b2848285016117ae565b91505092915050565b6000602082840312156119d1576119d0611fdc565b5b60006119df848285016117c3565b91505092915050565b6119f181611dce565b82525050565b611a08611a0382611dce565b611eed565b82525050565b611a1781611de0565b82525050565b6000611a2882611cb2565b611a328185611cc8565b9350611a42818560208601611e57565b611a4b81611fe1565b840191505092915050565b611a5f81611e36565b82525050565b6000611a7082611cbd565b611a7a8185611cd9565b9350611a8a818560208601611e57565b611a9381611fe1565b840191505092915050565b611aa781611e1f565b82525050565b611ab681611e29565b82525050565b6000611ac882846119f7565b60148201915081905092915050565b6000602082019050611aec60008301846119e8565b92915050565b6000606082019050611b0760008301866119e8565b611b1460208301856119e8565b611b216040830184611a9e565b949350505050565b6000604082019050611b3e60008301856119e8565b611b4b6020830184611a9e565b9392505050565b6000602082019050611b676000830184611a0e565b92915050565b60006040820190508181036000830152611b878185611a1d565b9050611b966020830184611a9e565b9392505050565b60006080820190508181036000830152611bb78187611a1d565b9050611bc66020830186611a9e565b611bd36040830185611a9e565b611be06060830184611a9e565b95945050505050565b6000602082019050611bfe6000830184611a56565b92915050565b60006020820190508181036000830152611c1e8184611a65565b905092915050565b6000602082019050611c3b6000830184611a9e565b92915050565b6000602082019050611c566000830184611aad565b92915050565b6000611c66611c77565b9050611c728282611ebc565b919050565b6000604051905090565b600067ffffffffffffffff821115611c9c57611c9b611f9e565b5b611ca582611fe1565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b6000611cf582611e1f565b9150611d0083611e1f565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115611d3557611d34611f11565b5b828201905092915050565b6000611d4b82611e1f565b9150611d5683611e1f565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611d8f57611d8e611f11565b5b828202905092915050565b6000611da582611e1f565b9150611db083611e1f565b925082821015611dc357611dc2611f11565b5b828203905092915050565b6000611dd982611dff565b9050919050565b60008115159050919050565b6000819050611dfa82611fff565b919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b6000611e4182611dec565b9050919050565b82818337600083830152505050565b60005b83811015611e75578082015181840152602081019050611e5a565b83811115611e84576000848401525b50505050565b60006002820490506001821680611ea257607f821691505b60208210811415611eb657611eb5611f6f565b5b50919050565b611ec582611fe1565b810181811067ffffffffffffffff82111715611ee457611ee3611f9e565b5b80604052505050565b6000611ef882611eff565b9050919050565b6000611f0a82611ff2565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b600381106120105761200f611f40565b5b50565b61201c81611dce565b811461202757600080fd5b50565b61203381611de0565b811461203e57600080fd5b50565b61204a81611e1f565b811461205557600080fd5b5056fea2646970667358221220edaf9ed98354e71aa84b95b4433f47537dd491d72f649020c367c23ec482327064736f6c63430008070033","linkReferences":{},"deployedLinkReferences":{}}')},18763:function(t){"use strict";t.exports=JSON.parse('{"_format":"hh-sol-artifact-1","contractName":"ZetaConnectorZEVM","sourceName":"contracts/zevm/ZetaConnectorZEVM.sol","abi":[{"inputs":[{"internalType":"address","name":"wzeta_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"FailedZetaSent","type":"error"},{"inputs":[],"name":"OnlyFungibleModule","type":"error"},{"inputs":[],"name":"OnlyWZETAOrFungible","type":"error"},{"inputs":[],"name":"WZETATransferFailed","type":"error"},{"inputs":[],"name":"WrongValue","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"wzeta_","type":"address"}],"name":"SetWZETA","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes","name":"zetaTxSenderAddress","type":"bytes"},{"indexed":true,"internalType":"uint256","name":"sourceChainId","type":"uint256"},{"indexed":true,"internalType":"address","name":"destinationAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"zetaValue","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"message","type":"bytes"},{"indexed":true,"internalType":"bytes32","name":"internalSendHash","type":"bytes32"}],"name":"ZetaReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"zetaTxSenderAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"sourceChainId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"destinationChainId","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"destinationAddress","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"remainingZetaValue","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"message","type":"bytes"},{"indexed":true,"internalType":"bytes32","name":"internalSendHash","type":"bytes32"}],"name":"ZetaReverted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sourceTxOriginAddress","type":"address"},{"indexed":true,"internalType":"address","name":"zetaTxSenderAddress","type":"address"},{"indexed":true,"internalType":"uint256","name":"destinationChainId","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"destinationAddress","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"zetaValueAndGas","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"destinationGasLimit","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"message","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"zetaParams","type":"bytes"}],"name":"ZetaSent","type":"event"},{"inputs":[],"name":"FUNGIBLE_MODULE_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"zetaTxSenderAddress","type":"bytes"},{"internalType":"uint256","name":"sourceChainId","type":"uint256"},{"internalType":"address","name":"destinationAddress","type":"address"},{"internalType":"uint256","name":"zetaValue","type":"uint256"},{"internalType":"bytes","name":"message","type":"bytes"},{"internalType":"bytes32","name":"internalSendHash","type":"bytes32"}],"name":"onReceive","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"zetaTxSenderAddress","type":"address"},{"internalType":"uint256","name":"sourceChainId","type":"uint256"},{"internalType":"bytes","name":"destinationAddress","type":"bytes"},{"internalType":"uint256","name":"destinationChainId","type":"uint256"},{"internalType":"uint256","name":"remainingZetaValue","type":"uint256"},{"internalType":"bytes","name":"message","type":"bytes"},{"internalType":"bytes32","name":"internalSendHash","type":"bytes32"}],"name":"onRevert","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"destinationChainId","type":"uint256"},{"internalType":"bytes","name":"destinationAddress","type":"bytes"},{"internalType":"uint256","name":"destinationGasLimit","type":"uint256"},{"internalType":"bytes","name":"message","type":"bytes"},{"internalType":"uint256","name":"zetaValueAndGas","type":"uint256"},{"internalType":"bytes","name":"zetaParams","type":"bytes"}],"internalType":"struct ZetaInterfaces.SendInput","name":"input","type":"tuple"}],"name":"send","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"wzeta_","type":"address"}],"name":"setWzetaAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wzeta","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}],"bytecode":"0x60806040523480156200001157600080fd5b506040516200177d3803806200177d833981810160405281019062000037919062000095565b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550506200011a565b6000815190506200008f8162000100565b92915050565b600060208284031215620000ae57620000ad620000fb565b5b6000620000be848285016200007e565b91505092915050565b6000620000d482620000db565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600080fd5b6200010b81620000c7565b81146200011757600080fd5b50565b611653806200012a6000396000f3fe6080604052600436106100585760003560e01c8062173d461461013757806329dd214d146101625780633ce4a5bc1461017e578063942a5e16146101a9578063eb3bacbd146101c5578063ec026901146101ee57610132565b366101325760008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141580156100f9575073735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614155b15610130576040517f229930b200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b005b600080fd5b34801561014357600080fd5b5061014c610217565b6040516101599190611276565b60405180910390f35b61017c60048036038101906101779190610f77565b61023b565b005b34801561018a57600080fd5b506101936105f1565b6040516101a09190611276565b60405180910390f35b6101c360048036038101906101be9190610e68565b610609565b005b3480156101d157600080fd5b506101ec60048036038101906101e79190610e3b565b6109b3565b005b3480156101fa57600080fd5b5061021560048036038101906102109190611046565b610aa6565b005b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146102b4576040517fea02b3f300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8334146102ed576040517f98d4901c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b15801561035557600080fd5b505af1158015610369573d6000803e3d6000fd5b505050505060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3087876040518463ffffffff1660e01b81526004016103cb93929190611291565b602060405180830381600087803b1580156103e557600080fd5b505af11580156103f9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061041d9190610f4a565b610453576040517fa8c6fd4a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600083839050111561058f578473ffffffffffffffffffffffffffffffffffffffff16633749c51a6040518060a001604052808b8b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505081526020018981526020018873ffffffffffffffffffffffffffffffffffffffff16815260200187815260200186868080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508152506040518263ffffffff1660e01b815260040161055c91906113f2565b600060405180830381600087803b15801561057657600080fd5b505af115801561058a573d6000803e3d6000fd5b505050505b808573ffffffffffffffffffffffffffffffffffffffff16877ff1302855733b40d8acb467ee990b6d56c05c80e28ebcabfa6e6f3f57cb50d6988b8b8989896040516105df9594939291906113a9565b60405180910390a45050505050505050565b73735b14bb79463307aacbed86daf3322b1e6226ab81565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610682576040517fea02b3f300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8334146106bb576040517f98d4901c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b15801561072357600080fd5b505af1158015610737573d6000803e3d6000fd5b505050505060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd308b876040518463ffffffff1660e01b815260040161079993929190611291565b602060405180830381600087803b1580156107b357600080fd5b505af11580156107c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107eb9190610f4a565b610821576040517fa8c6fd4a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000838390501115610963578873ffffffffffffffffffffffffffffffffffffffff16633ff0693c6040518060c001604052808c73ffffffffffffffffffffffffffffffffffffffff1681526020018b81526020018a8a8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050815260200188815260200187815260200186868080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508152506040518263ffffffff1660e01b81526004016109309190611414565b600060405180830381600087803b15801561094a57600080fd5b505af115801561095e573d6000803e3d6000fd5b505050505b80857f521fb0b407c2eb9b1375530e9b9a569889992140a688bc076aa72c1712012c888b8b8b8b8a8a8a6040516109a09796959493929190611344565b60405180910390a3505050505050505050565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610a2c576040517fea02b3f300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f7325870b05f8f3412c318a35fc6a74feca51ea15811ec7a257676ca4db9d417681604051610a9b9190611276565b60405180910390a150565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd333084608001356040518463ffffffff1660e01b8152600401610b0793929190611291565b602060405180830381600087803b158015610b2157600080fd5b505af1158015610b35573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b599190610f4a565b610b8f576040517fa8c6fd4a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d82608001356040518263ffffffff1660e01b8152600401610bec9190611436565b600060405180830381600087803b158015610c0657600080fd5b505af1158015610c1a573d6000803e3d6000fd5b50505050600073735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff168260800135604051610c5c90611261565b60006040518083038185875af1925050503d8060008114610c99576040519150601f19603f3d011682016040523d82523d6000602084013e610c9e565b606091505b5050905080610cd9576040517fc7ffc47b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600001353373ffffffffffffffffffffffffffffffffffffffff167f7ec1c94701e09b1652f3e1d307e60c4b9ebf99aff8c2079fd1d8c585e031c4e432858060200190610d279190611451565b87608001358860400135898060600190610d419190611451565b8b8060a00190610d519190611451565b604051610d66999897969594939291906112c8565b60405180910390a35050565b600081359050610d81816115c1565b92915050565b600081519050610d96816115d8565b92915050565b600081359050610dab816115ef565b92915050565b60008083601f840112610dc757610dc6611585565b5b8235905067ffffffffffffffff811115610de457610de3611580565b5b602083019150836001820283011115610e0057610dff611599565b5b9250929050565b600060c08284031215610e1d57610e1c61158f565b5b81905092915050565b600081359050610e3581611606565b92915050565b600060208284031215610e5157610e506115a8565b5b6000610e5f84828501610d72565b91505092915050565b600080600080600080600080600060e08a8c031215610e8a57610e896115a8565b5b6000610e988c828d01610d72565b9950506020610ea98c828d01610e26565b98505060408a013567ffffffffffffffff811115610eca57610ec96115a3565b5b610ed68c828d01610db1565b97509750506060610ee98c828d01610e26565b9550506080610efa8c828d01610e26565b94505060a08a013567ffffffffffffffff811115610f1b57610f1a6115a3565b5b610f278c828d01610db1565b935093505060c0610f3a8c828d01610d9c565b9150509295985092959850929598565b600060208284031215610f6057610f5f6115a8565b5b6000610f6e84828501610d87565b91505092915050565b60008060008060008060008060c0898b031215610f9757610f966115a8565b5b600089013567ffffffffffffffff811115610fb557610fb46115a3565b5b610fc18b828c01610db1565b98509850506020610fd48b828c01610e26565b9650506040610fe58b828c01610d72565b9550506060610ff68b828c01610e26565b945050608089013567ffffffffffffffff811115611017576110166115a3565b5b6110238b828c01610db1565b935093505060a06110368b828c01610d9c565b9150509295985092959890939650565b60006020828403121561105c5761105b6115a8565b5b600082013567ffffffffffffffff81111561107a576110796115a3565b5b61108684828501610e07565b91505092915050565b611098816114ec565b82525050565b6110a7816114ec565b82525050565b60006110b983856114d0565b93506110c683858461153e565b6110cf836115ad565b840190509392505050565b60006110e5826114b4565b6110ef81856114bf565b93506110ff81856020860161154d565b611108816115ad565b840191505092915050565b60006111206000836114e1565b915061112b826115be565b600082019050919050565b600060a083016000830151848203600086015261115382826110da565b91505060208301516111686020860182611243565b50604083015161117b604086018261108f565b50606083015161118e6060860182611243565b50608083015184820360808601526111a682826110da565b9150508091505092915050565b600060c0830160008301516111cb600086018261108f565b5060208301516111de6020860182611243565b50604083015184820360408601526111f682826110da565b915050606083015161120b6060860182611243565b50608083015161121e6080860182611243565b5060a083015184820360a086015261123682826110da565b9150508091505092915050565b61124c81611534565b82525050565b61125b81611534565b82525050565b600061126c82611113565b9150819050919050565b600060208201905061128b600083018461109e565b92915050565b60006060820190506112a6600083018661109e565b6112b3602083018561109e565b6112c06040830184611252565b949350505050565b600060c0820190506112dd600083018c61109e565b81810360208301526112f0818a8c6110ad565b90506112ff6040830189611252565b61130c6060830188611252565b818103608083015261131f8186886110ad565b905081810360a08301526113348184866110ad565b90509a9950505050505050505050565b600060a082019050611359600083018a61109e565b6113666020830189611252565b81810360408301526113798187896110ad565b90506113886060830186611252565b818103608083015261139b8184866110ad565b905098975050505050505050565b600060608201905081810360008301526113c48187896110ad565b90506113d36020830186611252565b81810360408301526113e68184866110ad565b90509695505050505050565b6000602082019050818103600083015261140c8184611136565b905092915050565b6000602082019050818103600083015261142e81846111b3565b905092915050565b600060208201905061144b6000830184611252565b92915050565b6000808335600160200384360303811261146e5761146d611594565b5b80840192508235915067ffffffffffffffff8211156114905761148f61158a565b5b6020830192506001820236038313156114ac576114ab61159e565b5b509250929050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006114f782611514565b9050919050565b60008115159050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b8381101561156b578082015181840152602081019050611550565b8381111561157a576000848401525b50505050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b50565b6115ca816114ec565b81146115d557600080fd5b50565b6115e1816114fe565b81146115ec57600080fd5b50565b6115f88161150a565b811461160357600080fd5b50565b61160f81611534565b811461161a57600080fd5b5056fea26469706673582212208fcfd4dd090449f8c32ab1dc30eb44ec918bcb60da6d7ed0572173ea3fdf6fd364736f6c63430008070033","deployedBytecode":"0x6080604052600436106100585760003560e01c8062173d461461013757806329dd214d146101625780633ce4a5bc1461017e578063942a5e16146101a9578063eb3bacbd146101c5578063ec026901146101ee57610132565b366101325760008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141580156100f9575073735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614155b15610130576040517f229930b200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b005b600080fd5b34801561014357600080fd5b5061014c610217565b6040516101599190611276565b60405180910390f35b61017c60048036038101906101779190610f77565b61023b565b005b34801561018a57600080fd5b506101936105f1565b6040516101a09190611276565b60405180910390f35b6101c360048036038101906101be9190610e68565b610609565b005b3480156101d157600080fd5b506101ec60048036038101906101e79190610e3b565b6109b3565b005b3480156101fa57600080fd5b5061021560048036038101906102109190611046565b610aa6565b005b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146102b4576040517fea02b3f300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8334146102ed576040517f98d4901c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b15801561035557600080fd5b505af1158015610369573d6000803e3d6000fd5b505050505060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3087876040518463ffffffff1660e01b81526004016103cb93929190611291565b602060405180830381600087803b1580156103e557600080fd5b505af11580156103f9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061041d9190610f4a565b610453576040517fa8c6fd4a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600083839050111561058f578473ffffffffffffffffffffffffffffffffffffffff16633749c51a6040518060a001604052808b8b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505081526020018981526020018873ffffffffffffffffffffffffffffffffffffffff16815260200187815260200186868080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508152506040518263ffffffff1660e01b815260040161055c91906113f2565b600060405180830381600087803b15801561057657600080fd5b505af115801561058a573d6000803e3d6000fd5b505050505b808573ffffffffffffffffffffffffffffffffffffffff16877ff1302855733b40d8acb467ee990b6d56c05c80e28ebcabfa6e6f3f57cb50d6988b8b8989896040516105df9594939291906113a9565b60405180910390a45050505050505050565b73735b14bb79463307aacbed86daf3322b1e6226ab81565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610682576040517fea02b3f300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8334146106bb576040517f98d4901c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b15801561072357600080fd5b505af1158015610737573d6000803e3d6000fd5b505050505060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd308b876040518463ffffffff1660e01b815260040161079993929190611291565b602060405180830381600087803b1580156107b357600080fd5b505af11580156107c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107eb9190610f4a565b610821576040517fa8c6fd4a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000838390501115610963578873ffffffffffffffffffffffffffffffffffffffff16633ff0693c6040518060c001604052808c73ffffffffffffffffffffffffffffffffffffffff1681526020018b81526020018a8a8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050815260200188815260200187815260200186868080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508152506040518263ffffffff1660e01b81526004016109309190611414565b600060405180830381600087803b15801561094a57600080fd5b505af115801561095e573d6000803e3d6000fd5b505050505b80857f521fb0b407c2eb9b1375530e9b9a569889992140a688bc076aa72c1712012c888b8b8b8b8a8a8a6040516109a09796959493929190611344565b60405180910390a3505050505050505050565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610a2c576040517fea02b3f300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f7325870b05f8f3412c318a35fc6a74feca51ea15811ec7a257676ca4db9d417681604051610a9b9190611276565b60405180910390a150565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd333084608001356040518463ffffffff1660e01b8152600401610b0793929190611291565b602060405180830381600087803b158015610b2157600080fd5b505af1158015610b35573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b599190610f4a565b610b8f576040517fa8c6fd4a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d82608001356040518263ffffffff1660e01b8152600401610bec9190611436565b600060405180830381600087803b158015610c0657600080fd5b505af1158015610c1a573d6000803e3d6000fd5b50505050600073735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff168260800135604051610c5c90611261565b60006040518083038185875af1925050503d8060008114610c99576040519150601f19603f3d011682016040523d82523d6000602084013e610c9e565b606091505b5050905080610cd9576040517fc7ffc47b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600001353373ffffffffffffffffffffffffffffffffffffffff167f7ec1c94701e09b1652f3e1d307e60c4b9ebf99aff8c2079fd1d8c585e031c4e432858060200190610d279190611451565b87608001358860400135898060600190610d419190611451565b8b8060a00190610d519190611451565b604051610d66999897969594939291906112c8565b60405180910390a35050565b600081359050610d81816115c1565b92915050565b600081519050610d96816115d8565b92915050565b600081359050610dab816115ef565b92915050565b60008083601f840112610dc757610dc6611585565b5b8235905067ffffffffffffffff811115610de457610de3611580565b5b602083019150836001820283011115610e0057610dff611599565b5b9250929050565b600060c08284031215610e1d57610e1c61158f565b5b81905092915050565b600081359050610e3581611606565b92915050565b600060208284031215610e5157610e506115a8565b5b6000610e5f84828501610d72565b91505092915050565b600080600080600080600080600060e08a8c031215610e8a57610e896115a8565b5b6000610e988c828d01610d72565b9950506020610ea98c828d01610e26565b98505060408a013567ffffffffffffffff811115610eca57610ec96115a3565b5b610ed68c828d01610db1565b97509750506060610ee98c828d01610e26565b9550506080610efa8c828d01610e26565b94505060a08a013567ffffffffffffffff811115610f1b57610f1a6115a3565b5b610f278c828d01610db1565b935093505060c0610f3a8c828d01610d9c565b9150509295985092959850929598565b600060208284031215610f6057610f5f6115a8565b5b6000610f6e84828501610d87565b91505092915050565b60008060008060008060008060c0898b031215610f9757610f966115a8565b5b600089013567ffffffffffffffff811115610fb557610fb46115a3565b5b610fc18b828c01610db1565b98509850506020610fd48b828c01610e26565b9650506040610fe58b828c01610d72565b9550506060610ff68b828c01610e26565b945050608089013567ffffffffffffffff811115611017576110166115a3565b5b6110238b828c01610db1565b935093505060a06110368b828c01610d9c565b9150509295985092959890939650565b60006020828403121561105c5761105b6115a8565b5b600082013567ffffffffffffffff81111561107a576110796115a3565b5b61108684828501610e07565b91505092915050565b611098816114ec565b82525050565b6110a7816114ec565b82525050565b60006110b983856114d0565b93506110c683858461153e565b6110cf836115ad565b840190509392505050565b60006110e5826114b4565b6110ef81856114bf565b93506110ff81856020860161154d565b611108816115ad565b840191505092915050565b60006111206000836114e1565b915061112b826115be565b600082019050919050565b600060a083016000830151848203600086015261115382826110da565b91505060208301516111686020860182611243565b50604083015161117b604086018261108f565b50606083015161118e6060860182611243565b50608083015184820360808601526111a682826110da565b9150508091505092915050565b600060c0830160008301516111cb600086018261108f565b5060208301516111de6020860182611243565b50604083015184820360408601526111f682826110da565b915050606083015161120b6060860182611243565b50608083015161121e6080860182611243565b5060a083015184820360a086015261123682826110da565b9150508091505092915050565b61124c81611534565b82525050565b61125b81611534565b82525050565b600061126c82611113565b9150819050919050565b600060208201905061128b600083018461109e565b92915050565b60006060820190506112a6600083018661109e565b6112b3602083018561109e565b6112c06040830184611252565b949350505050565b600060c0820190506112dd600083018c61109e565b81810360208301526112f0818a8c6110ad565b90506112ff6040830189611252565b61130c6060830188611252565b818103608083015261131f8186886110ad565b905081810360a08301526113348184866110ad565b90509a9950505050505050505050565b600060a082019050611359600083018a61109e565b6113666020830189611252565b81810360408301526113798187896110ad565b90506113886060830186611252565b818103608083015261139b8184866110ad565b905098975050505050505050565b600060608201905081810360008301526113c48187896110ad565b90506113d36020830186611252565b81810360408301526113e68184866110ad565b90509695505050505050565b6000602082019050818103600083015261140c8184611136565b905092915050565b6000602082019050818103600083015261142e81846111b3565b905092915050565b600060208201905061144b6000830184611252565b92915050565b6000808335600160200384360303811261146e5761146d611594565b5b80840192508235915067ffffffffffffffff8211156114905761148f61158a565b5b6020830192506001820236038313156114ac576114ab61159e565b5b509250929050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006114f782611514565b9050919050565b60008115159050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b8381101561156b578082015181840152602081019050611550565b8381111561157a576000848401525b50505050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b50565b6115ca816114ec565b81146115d557600080fd5b50565b6115e1816114fe565b81146115ec57600080fd5b50565b6115f88161150a565b811461160357600080fd5b50565b61160f81611534565b811461161a57600080fd5b5056fea26469706673582212208fcfd4dd090449f8c32ab1dc30eb44ec918bcb60da6d7ed0572173ea3fdf6fd364736f6c63430008070033","linkReferences":{},"deployedLinkReferences":{}}')},62890:function(t){"use strict";t.exports=JSON.parse('{"ccm":{"bsc_mainnet":{"connector":"0x000063A6e758D9e2f438d430108377564cf4077D","erc20Custody":"0x00000fF8fA992424957F97688015814e707A0115","immutableCreate2Factory":"","tss":"0x70e967acFcC17c3941E87562161406d41676FD83","tssUpdater":"","zetaToken":"0x0000028a2eB8346cd5c0267856aB7594B7a55308"},"bsc_testnet":{"connector":"0x0000ecb8cdd25a18f12daa23f6422e07fbf8b9e1","erc20Custody":"0x0000a7db254145767262c6a81a7ee1650684258e","immutableCreate2Factory":"0x095a03c6a68137fE9a566bBc3e552F299d8b886d","tss":"0x8531a5aB847ff5B22D855633C25ED1DA3255247e","tssUpdater":"0x55122f7590164Ac222504436943FAB17B62F5d7d","zetaToken":"0x0000c9ec4042283e8139c74f4c64bcd1e0b9b54f","zetaTokenConsumerUniV2":"","zetaTokenConsumerUniV3":"0xFB2fCE3CCca19F0f764Ed8aa26C62181E3dA04C5"},"btc_mainnet":{"connector":"","immutableCreate2Factory":"","tss":"bc1qm24wp577nk8aacckv8np465z3dvmu7ry45el6y","tssUpdater":"","zetaToken":"","zetaTokenConsumerUniV2":"","zetaTokenConsumerUniV3":""},"btc_testnet":{"connector":"","immutableCreate2Factory":"","tss":"tb1qy9pqmk2pd9sv63g27jt8r657wy0d9ueeh0nqur","tssUpdater":"","zetaToken":"","zetaTokenConsumerUniV2":"","zetaTokenConsumerUniV3":""},"eth_mainnet":{"connector":"0x000007Cf399229b2f5A4D043F20E90C9C98B7C6a","erc20Custody":"0x0000030Ec64DF25301d8414eE5a29588C4B0dE10","immutableCreate2Factory":"","tss":"0x70e967acFcC17c3941E87562161406d41676FD83","tssUpdater":"","zetaToken":"0xf091867EC603A6628eD83D274E835539D82e9cc8"},"goerli_testnet":{"connector":"0x00005e3125aba53c5652f9f0ce1a4cf91d8b15ea","erc20Custody":"0x000047f11c6e42293f433c82473532e869ce4ec5","immutableCreate2Factory":"0x095a03c6a68137fE9a566bBc3e552F299d8b886d","tss":"0x8531a5aB847ff5B22D855633C25ED1DA3255247e","tssUpdater":"0x55122f7590164Ac222504436943FAB17B62F5d7d","zetaToken":"0x0000c304d2934c00db1d51995b9f6996affd17c0","zetaTokenConsumerUniV2":"0x8eAc517b92eeE82177a83851268F13109878f8c4","zetaTokenConsumerUniV3":""},"mumbai_testnet":{"connector":"0x0000ecb8cdd25a18f12daa23f6422e07fbf8b9e1","erc20Custody":"0x0000a7db254145767262c6a81a7ee1650684258e","immutableCreate2Factory":"0x095a03c6a68137fE9a566bBc3e552F299d8b886d","tss":"0x8531a5aB847ff5B22D855633C25ED1DA3255247e","tssUpdater":"0x55122f7590164Ac222504436943FAB17B62F5d7d","zetaToken":"0x0000c9ec4042283e8139c74f4c64bcd1e0b9b54f","zetaTokenConsumerUniV2":"","zetaTokenConsumerUniV3":"0x7e792f3736751e168864106AdbAC50152641A927"},"zeta_mainnet":{"connector":"0x239e96c8f17C85c30100AC26F635Ea15f23E9c67","immutableCreate2Factory":"","tss":"","tssUpdater":"","zetaToken":"0x5F0b1a82749cb4E2278EC87F8BF6B618dC71a8bf","zetaTokenConsumerUniV2":"","zetaTokenConsumerUniV3":""},"zeta_testnet":{"connector":"0x239e96c8f17C85c30100AC26F635Ea15f23E9c67","immutableCreate2Factory":"","tss":"0x7c125C1d515b8945841b3d5144a060115C58725F","tssUpdater":"0x7274d1d5dddef36aac53dd45b93487ce01ef0a55","zetaToken":"0x5F0b1a82749cb4E2278EC87F8BF6B618dC71a8bf","zetaTokenConsumerUniV2":"","zetaTokenConsumerUniV3":""}},"non_zeta":{"bsc_mainnet":{"uniswapV2Factory":"","uniswapV2Router02":"","uniswapV3Factory":"","uniswapV3Router":"","weth9":""},"bsc_testnet":{"uniswapV2Factory":"","uniswapV2Router02":"0x9Ac64Cc6e4415144C455BD8E4837Fea55603e5c3","uniswapV3Factory":"0x0BFbCF9fa4f9C56B0F40a671Ad40E0805A091865","uniswapV3Router":"0x9a489505a00cE272eAa5e07Dba6491314CaE3796","weth9":"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd"},"eth_mainnet":{"uniswapV2Factory":"0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f","uniswapV2Router02":"0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D","uniswapV3Factory":"0x1F98431c8aD98523631AE4a59f267346ea31F984","uniswapV3Router":"0xE592427A0AEce92De3Edee1F18E0157C05861564","weth9":"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"},"goerli_testnet":{"uniswapV2Factory":"","uniswapV2Router02":"0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D","uniswapV3Factory":"0x1F98431c8aD98523631AE4a59f267346ea31F984","uniswapV3Router":"0xE592427A0AEce92De3Edee1F18E0157C05861564","weth9":"0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6"},"mumbai_testnet":{"uniswapV2Factory":"","uniswapV2Router02":"0x0000ecb8cdd25a18f12daa23f6422e07fbf8b9e1","uniswapV3Factory":"0x1F98431c8aD98523631AE4a59f267346ea31F984","uniswapV3Router":"0xE592427A0AEce92De3Edee1F18E0157C05861564","weth9":"0x9c3C9283D3e44854697Cd22D3Faa240Cfb032889"},"zeta_testnet":{"uniswapV2Factory":"","uniswapV2Router02":"","uniswapV3Factory":"","uniswapV3Router":"","weth9":""}},"zevm":{"bsc_testnet":{"zrc20":"0xd97B1de3619ed2c6BEb3860147E30cA8A7dC9891"},"btc_testnet":{"zrc20":"0x65a45c57636f9BcCeD4fe193A602008578BcA90b"},"goerli_testnet":{"zrc20":"0x13A0c5930C028511Dc02665E7285134B6d11A5f4"},"mumbai_testnet":{"zrc20":"0x48f80608B672DC30DC7e3dbBd0343c5F02C738Eb"},"zeta_mainnet":{"fungibleModule":"","systemContract":"0x91d18e54DAf4F677cB28167158d6dd21F6aB3921","uniswapv2Factory":"","uniswapv2Router02":""},"zeta_testnet":{"fungibleModule":"0x735b14BB79463307AAcBED86DAf3322B1e6226aB","systemContract":"0xEdf1c3275d13489aCdC6cD6eD246E72458B8795B","uniswapv2Factory":"0x9fd96203f7b22bCF72d9DCb40ff98302376cE09c","uniswapv2Router02":"0x2ca7d64A7EFE2D62A725E2B35Cf7230D6677FfEe"}}}')},21607:function(t){"use strict";t.exports=JSON.parse('[{"address":"0x000007Cf399229b2f5A4D043F20E90C9C98B7C6a","category":"messaging","chain_id":1,"chain_name":"eth_mainnet","type":"connector"},{"address":"0x0000030Ec64DF25301d8414eE5a29588C4B0dE10","category":"omnichain","chain_id":1,"chain_name":"eth_mainnet","type":"erc20Custody"},{"address":"0xaeB6dDB7708467814D557e340283248be8E43124","category":"messaging","chain_id":1,"chain_name":"eth_mainnet","type":"pauser"},{"address":"0x70e967acFcC17c3941E87562161406d41676FD83","category":"omnichain","chain_id":1,"chain_name":"eth_mainnet","type":"tss"},{"address":"0xaeB6dDB7708467814D557e340283248be8E43124","category":"omnichain","chain_id":1,"chain_name":"eth_mainnet","type":"tssUpdater"},{"address":"0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f","category":"messaging","chain_id":1,"chain_name":"eth_mainnet","type":"uniswapV2Factory"},{"address":"0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f","category":"messaging","chain_id":1,"chain_name":"eth_mainnet","type":"uniswapV2Factory"},{"address":"0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D","category":"messaging","chain_id":1,"chain_name":"eth_mainnet","type":"uniswapV2Router02"},{"address":"0x1F98431c8aD98523631AE4a59f267346ea31F984","category":"messaging","chain_id":1,"chain_name":"eth_mainnet","type":"uniswapV3Factory"},{"address":"0xE592427A0AEce92De3Edee1F18E0157C05861564","category":"messaging","chain_id":1,"chain_name":"eth_mainnet","type":"uniswapV3Router"},{"address":"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2","category":"messaging","chain_id":1,"chain_name":"eth_mainnet","type":"weth9"},{"address":"0xf091867EC603A6628eD83D274E835539D82e9cc8","category":"messaging","chain_id":1,"chain_name":"eth_mainnet","type":"zetaToken"},{"address":"0x000063A6e758D9e2f438d430108377564cf4077D","category":"messaging","chain_id":56,"chain_name":"bsc_mainnet","type":"connector"},{"address":"0x00000fF8fA992424957F97688015814e707A0115","category":"omnichain","chain_id":56,"chain_name":"bsc_mainnet","type":"erc20Custody"},{"address":"0xaf28a257D292e7f0E531073f70a175b57E0261a8","category":"messaging","chain_id":56,"chain_name":"bsc_mainnet","type":"pauser"},{"address":"0x70e967acFcC17c3941E87562161406d41676FD83","category":"omnichain","chain_id":56,"chain_name":"bsc_mainnet","type":"tss"},{"address":"0xaf28a257D292e7f0E531073f70a175b57E0261a8","category":"omnichain","chain_id":56,"chain_name":"bsc_mainnet","type":"tssUpdater"},{"address":"0x0000028a2eB8346cd5c0267856aB7594B7a55308","category":"messaging","chain_id":56,"chain_name":"bsc_mainnet","type":"zetaToken"},{"address":"0x239e96c8f17C85c30100AC26F635Ea15f23E9c67","category":"messaging","chain_id":7000,"chain_name":"zeta_mainnet","type":"connector"},{"address":"0x735b14BB79463307AAcBED86DAf3322B1e6226aB","category":"omnichain","chain_id":7000,"chain_name":"zeta_mainnet","type":"fungibleModule"},{"address":"0x91d18e54DAf4F677cB28167158d6dd21F6aB3921","category":"omnichain","chain_id":7000,"chain_name":"zeta_mainnet","type":"systemContract"},{"address":"0x9fd96203f7b22bCF72d9DCb40ff98302376cE09c","category":"omnichain","chain_id":7000,"chain_name":"zeta_mainnet","type":"uniswapV2Factory"},{"address":"0x9fd96203f7b22bCF72d9DCb40ff98302376cE09c","category":"messaging","chain_id":7000,"chain_name":"zeta_mainnet","type":"uniswapV2Factory"},{"address":"0x2ca7d64A7EFE2D62A725E2B35Cf7230D6677FfEe","category":"omnichain","chain_id":7000,"chain_name":"zeta_mainnet","type":"uniswapV2Router02"},{"address":"0x5F0b1a82749cb4E2278EC87F8BF6B618dC71a8bf","category":"omnichain","chain_id":7000,"chain_name":"zeta_mainnet","type":"zetaToken"},{"address":"0x05BA149A7bd6dC1F937fA9046A9e05C05f3b18b0","asset":"0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d","category":"omnichain","chain_id":7000,"chain_name":"zeta_mainnet","coin_type":"erc20","decimals":18,"description":"ZetaChain ZRC20 USDC on BSC","foreign_chain_id":"56","symbol":"USDC.BSC","type":"zrc20"},{"address":"0x0cbe0dF132a6c6B4a2974Fa1b7Fb953CF0Cc798a","asset":"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48","category":"omnichain","chain_id":7000,"chain_name":"zeta_mainnet","coin_type":"erc20","decimals":18,"description":"ZetaChain ZRC20 USDC on ETH","foreign_chain_id":"1","symbol":"USDC.ETH","type":"zrc20"},{"address":"0x13A0c5930C028511Dc02665E7285134B6d11A5f4","asset":"","category":"omnichain","chain_id":7000,"chain_name":"zeta_mainnet","coin_type":"gas","decimals":18,"description":"ZetaChain ZRC20 BTC-btc_mainnet","foreign_chain_id":"8332","symbol":"BTC.BTC","type":"zrc20"},{"address":"0x48f80608B672DC30DC7e3dbBd0343c5F02C738Eb","asset":"","category":"omnichain","chain_id":7000,"chain_name":"zeta_mainnet","coin_type":"gas","decimals":18,"description":"ZetaChain ZRC20 BNB-bsc_mainnet","foreign_chain_id":"56","symbol":"BNB.BSC","type":"zrc20"},{"address":"0x7c8dDa80bbBE1254a7aACf3219EBe1481c6E01d7","asset":"0xdac17f958d2ee523a2206206994597c13d831ec7","category":"omnichain","chain_id":7000,"chain_name":"zeta_mainnet","coin_type":"erc20","decimals":18,"description":"ZetaChain ZRC20 USDT on ETH","foreign_chain_id":"1","symbol":"USDT.ETH","type":"zrc20"},{"address":"0x91d4F0D54090Df2D81e834c3c8CE71C6c865e79F","asset":"0x55d398326f99059ff775485246999027b3197955","category":"omnichain","chain_id":7000,"chain_name":"zeta_mainnet","coin_type":"erc20","decimals":18,"description":"ZetaChain ZRC20 USDT on BSC","foreign_chain_id":"56","symbol":"USDT.BSC","type":"zrc20"},{"address":"0xd97B1de3619ed2c6BEb3860147E30cA8A7dC9891","asset":"","category":"omnichain","chain_id":7000,"chain_name":"zeta_mainnet","coin_type":"gas","decimals":18,"description":"ZetaChain ZRC20 ETH-eth_mainnet","foreign_chain_id":"1","symbol":"ETH.ETH","type":"zrc20"},{"address":"bc1qm24wp577nk8aacckv8np465z3dvmu7ry45el6y","category":"omnichain","chain_id":8332,"chain_name":"btc_mainnet","type":"tss"}]')},3266:function(t){"use strict";t.exports=JSON.parse('[{"address":"0x0000ecb8cdd25a18f12daa23f6422e07fbf8b9e1","category":"messaging","chain_id":97,"chain_name":"bsc_testnet","type":"connector"},{"address":"0x0000a7db254145767262c6a81a7ee1650684258e","category":"omnichain","chain_id":97,"chain_name":"bsc_testnet","type":"erc20Custody"},{"address":"0x55122f7590164Ac222504436943FAB17B62F5d7d","category":"messaging","chain_id":97,"chain_name":"bsc_testnet","type":"pauser"},{"address":"0x8531a5aB847ff5B22D855633C25ED1DA3255247e","category":"omnichain","chain_id":97,"chain_name":"bsc_testnet","type":"tss"},{"address":"0x55122f7590164Ac222504436943FAB17B62F5d7d","category":"omnichain","chain_id":97,"chain_name":"bsc_testnet","type":"tssUpdater"},{"address":"0xB7926C0430Afb07AA7DEfDE6DA862aE0Bde767bc","category":"messaging","chain_id":97,"chain_name":"bsc_testnet","type":"uniswapV2Factory"},{"address":"0x9Ac64Cc6e4415144C455BD8E4837Fea55603e5c3","category":"messaging","chain_id":97,"chain_name":"bsc_testnet","type":"uniswapV2Router02"},{"address":"0x0BFbCF9fa4f9C56B0F40a671Ad40E0805A091865","category":"messaging","chain_id":97,"chain_name":"bsc_testnet","type":"uniswapV3Factory"},{"address":"0x9a489505a00cE272eAa5e07Dba6491314CaE3796","category":"messaging","chain_id":97,"chain_name":"bsc_testnet","type":"uniswapV3Router"},{"address":"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd","category":"messaging","chain_id":97,"chain_name":"bsc_testnet","type":"weth9"},{"address":"0x0000c9ec4042283e8139c74f4c64bcd1e0b9b54f","category":"messaging","chain_id":97,"chain_name":"bsc_testnet","type":"zetaToken"},{"address":"0xFB2fCE3CCca19F0f764Ed8aa26C62181E3dA04C5","category":"messaging","chain_id":97,"chain_name":"bsc_testnet","type":"zetaTokenConsumerUniV3"},{"address":"0x239e96c8f17C85c30100AC26F635Ea15f23E9c67","category":"messaging","chain_id":7001,"chain_name":"zeta_testnet","type":"connector"},{"address":"0x735b14BB79463307AAcBED86DAf3322B1e6226aB","category":"omnichain","chain_id":7001,"chain_name":"zeta_testnet","type":"fungibleModule"},{"address":"0xEdf1c3275d13489aCdC6cD6eD246E72458B8795B","category":"omnichain","chain_id":7001,"chain_name":"zeta_testnet","type":"systemContract"},{"address":"0x9fd96203f7b22bCF72d9DCb40ff98302376cE09c","category":"omnichain","chain_id":7001,"chain_name":"zeta_testnet","type":"uniswapV2Factory"},{"address":"0x9fd96203f7b22bCF72d9DCb40ff98302376cE09c","category":"messaging","chain_id":7001,"chain_name":"zeta_testnet","type":"uniswapV2Factory"},{"address":"0x2ca7d64A7EFE2D62A725E2B35Cf7230D6677FfEe","category":"omnichain","chain_id":7001,"chain_name":"zeta_testnet","type":"uniswapV2Router02"},{"address":"0x5F0b1a82749cb4E2278EC87F8BF6B618dC71a8bf","category":"omnichain","chain_id":7001,"chain_name":"zeta_testnet","type":"zetaToken"},{"address":"0x48C4475B7A9A6E9c384dDF3eb30c56761a2bc37e","category":"messaging","chain_id":7001,"chain_name":"zeta_testnet","type":"zetaTokenConsumerUniV3"},{"address":"0x05BA149A7bd6dC1F937fA9046A9e05C05f3b18b0","asset":"","category":"omnichain","chain_id":7001,"chain_name":"zeta_testnet","coin_type":"gas","decimals":18,"description":"ZetaChain ZRC20 sETH-sepolia_testnet","foreign_chain_id":"11155111","symbol":"sETH.SEPOLIA","type":"zrc20"},{"address":"0x0cbe0dF132a6c6B4a2974Fa1b7Fb953CF0Cc798a","asset":"0x07865c6e87b9f70255377e024ace6630c1eaa37f","category":"omnichain","chain_id":7001,"chain_name":"zeta_testnet","coin_type":"erc20","decimals":18,"description":"USDC-goerli_testnet","foreign_chain_id":"5","symbol":"USDC","type":"zrc20"},{"address":"0x13A0c5930C028511Dc02665E7285134B6d11A5f4","asset":"","category":"omnichain","chain_id":7001,"chain_name":"zeta_testnet","coin_type":"gas","decimals":18,"description":"ETH-goerli_testnet","foreign_chain_id":"5","symbol":"gETH","type":"zrc20"},{"address":"0x48f80608B672DC30DC7e3dbBd0343c5F02C738Eb","asset":"","category":"omnichain","chain_id":7001,"chain_name":"zeta_testnet","coin_type":"gas","decimals":18,"description":"MATIC-mumbai_testnet","foreign_chain_id":"80001","symbol":"tMATIC","type":"zrc20"},{"address":"0x65a45c57636f9BcCeD4fe193A602008578BcA90b","asset":"","category":"omnichain","chain_id":7001,"chain_name":"zeta_testnet","coin_type":"gas","decimals":18,"description":"BTC-btc_testnet-btc_testnet","foreign_chain_id":"18332","symbol":"tBTC","type":"zrc20"},{"address":"0x7c8dDa80bbBE1254a7aACf3219EBe1481c6E01d7","asset":"0x64544969ed7EBf5f083679233325356EbE738930","category":"omnichain","chain_id":7001,"chain_name":"zeta_testnet","coin_type":"erc20","decimals":18,"description":"USDC-bsc_testnet","foreign_chain_id":"97","symbol":"USDC","type":"zrc20"},{"address":"0x91d4F0D54090Df2D81e834c3c8CE71C6c865e79F","asset":"0x9999f7fea5938fd3b1e26a12c3f2fb024e194f97","category":"omnichain","chain_id":7001,"chain_name":"zeta_testnet","coin_type":"erc20","decimals":18,"description":"USDC-mumbai_testnet","foreign_chain_id":"80001","symbol":"USDC","type":"zrc20"},{"address":"0xcC683A782f4B30c138787CB5576a86AF66fdc31d","asset":"0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238","category":"omnichain","chain_id":7001,"chain_name":"zeta_testnet","coin_type":"erc20","decimals":18,"description":"ZetaChain ZRC20 USDC on SEPOLIA","foreign_chain_id":"11155111","symbol":"USDC.SEPOLIA","type":"zrc20"},{"address":"0xd97B1de3619ed2c6BEb3860147E30cA8A7dC9891","asset":"","category":"omnichain","chain_id":7001,"chain_name":"zeta_testnet","coin_type":"gas","decimals":18,"description":"BNB-bsc_testnet","foreign_chain_id":"97","symbol":"tBNB","type":"zrc20"},{"address":"tb1qy9pqmk2pd9sv63g27jt8r657wy0d9ueeh0nqur","category":"omnichain","chain_id":18332,"chain_name":"btc_testnet","type":"tss"},{"address":"0x5757371414417b8C6CAad45bAeF941aBc7d3Ab32","category":"messaging","chain_id":80001,"chain_name":"mumbai_testnet","type":"uniswapV2Factory"},{"address":"0x8954AfA98594b838bda56FE4C12a09D7739D179b","category":"messaging","chain_id":80001,"chain_name":"mumbai_testnet","type":"uniswapV2Router02"},{"address":"0x1F98431c8aD98523631AE4a59f267346ea31F984","category":"messaging","chain_id":80001,"chain_name":"mumbai_testnet","type":"uniswapV3Factory"},{"address":"0xE592427A0AEce92De3Edee1F18E0157C05861564","category":"messaging","chain_id":80001,"chain_name":"mumbai_testnet","type":"uniswapV3Router"},{"address":"0x9c3C9283D3e44854697Cd22D3Faa240Cfb032889","category":"messaging","chain_id":80001,"chain_name":"mumbai_testnet","type":"weth9"},{"address":"0x7e792f3736751e168864106AdbAC50152641A927","category":"messaging","chain_id":80001,"chain_name":"mumbai_testnet","type":"zetaTokenConsumerUniV3"},{"address":"0x3963341dad121c9CD33046089395D66eBF20Fb03","category":"messaging","chain_id":11155111,"chain_name":"sepolia_testnet","type":"connector"},{"address":"0x84725b70a239d3Faa7C6EF0C6C8E8b6c8e28338b","category":"omnichain","chain_id":11155111,"chain_name":"sepolia_testnet","type":"erc20Custody"},{"address":"0x55122f7590164Ac222504436943FAB17B62F5d7d","category":"messaging","chain_id":11155111,"chain_name":"sepolia_testnet","type":"pauser"},{"address":"0x8531a5aB847ff5B22D855633C25ED1DA3255247e","category":"omnichain","chain_id":11155111,"chain_name":"sepolia_testnet","type":"tss"},{"address":"0x55122f7590164Ac222504436943FAB17B62F5d7d","category":"omnichain","chain_id":11155111,"chain_name":"sepolia_testnet","type":"tssUpdater"},{"address":"0x0227628f3F023bb0B980b67D528571c95c6DaC1c","category":"messaging","chain_id":11155111,"chain_name":"sepolia_testnet","type":"uniswapV3Factory"},{"address":"0x3bFA4769FB09eefC5a80d6E87c3B9C650f7Ae48E","category":"messaging","chain_id":11155111,"chain_name":"sepolia_testnet","type":"uniswapV3Router"},{"address":"0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14","category":"messaging","chain_id":11155111,"chain_name":"sepolia_testnet","type":"weth9"},{"address":"0x0000c304D2934c00Db1d51995b9f6996AffD17c0","category":"messaging","chain_id":11155111,"chain_name":"sepolia_testnet","type":"zetaToken"},{"address":"0x301ED39771d8f1dD0b05F8C2D4327ce9C426E783","category":"messaging","chain_id":11155111,"chain_name":"sepolia_testnet","type":"zetaTokenConsumerUniV3"}]')}}]);