nova-ui/static/nullifier.worker.js

2 lines
694 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*! For license information please see ../LICENSES */!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports;}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r});},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0});},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e];}.bind(null,o));return r;},n.n=function(t){var e=t&&t.__esModule?function(){return t.default;}:function(){return t;};return n.d(e,"a",e),e;},n.o=function(object,t){return Object.prototype.hasOwnProperty.call(object,t);},n.p="/_nuxt/",n(n.s=166);}([function(t,e,n){"use strict";n.d(e,"k",function(){return l;}),n.d(e,"j",function(){return h;}),n.d(e,"a",function(){return d;}),n.d(e,"b",function(){return m;}),n.d(e,"o",function(){return y;}),n.d(e,"p",function(){return v;}),n.d(e,"l",function(){return w;}),n.d(e,"i",function(){return A;}),n.d(e,"d",function(){return E;}),n.d(e,"e",function(){return T;}),n.d(e,"c",function(){return O;}),n.d(e,"g",function(){return M;}),n.d(e,"f",function(){return k;}),n.d(e,"h",function(){return x;}),n.d(e,"n",function(){return S;}),n.d(e,"m",function(){return j;});const r=new(n(2).b)("bytes/5.7.0");function o(t){return!!t.toHexString;}function c(t){return t.slice||(t.slice=function(){const e=Array.prototype.slice.call(arguments);return c(new Uint8Array(Array.prototype.slice.apply(t,e)));}),t;}function l(t){return w(t)&&!(t.length%2)||h(t);}function f(t){return"number"==typeof t&&t==t&&t%1==0;}function h(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"==typeof t)return!1;if(!f(t.length)||t.length<0)return!1;for(let i=0;i<t.length;i++){const e=t[i];if(!f(e)||e<0||e>=256)return!1;}return!0;}function d(t,e){if(e||(e={}),"number"==typeof t){r.checkSafeUint53(t,"invalid arrayify value");const 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),o(t)&&(t=t.toHexString()),w(t)){let n=t.substring(2);n.length%2&&("left"===e.hexPad?n="0"+n:"right"===e.hexPad?n+="0":r.throwArgumentError("hex data is odd-length","value",t));const o=[];for(let i=0;i<n.length;i+=2)o.push(parseInt(n.substring(i,i+2),16));return c(new Uint8Array(o));}return h(t)?c(new Uint8Array(t)):r.throwArgumentError("invalid arrayify value","value",t);}function m(t){const e=t.map(t=>d(t)),n=e.reduce((t,e)=>t+e.length,0),r=new Uint8Array(n);return e.reduce((t,object)=>(r.set(object,t),t+object.length),0),c(r);}function y(t){let e=d(t);if(0===e.length)return e;let n=0;for(;n<e.length&&0===e[n];)n++;return n&&(e=e.slice(n)),e;}function v(t,e){(t=d(t)).length>e&&r.throwArgumentError("value out of range","value",arguments[0]);const n=new Uint8Array(e);return n.set(t,e-t.length),c(n);}function w(t,e){return!("string"!=typeof t||!t.match(/^0x[0-9A-Fa-f]*$/))&&(!e||t.length===2+2*e);}const _="0123456789abcdef";function A(t,e){if(e||(e={}),"number"==typeof t){r.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),o(t))return t.toHexString();if(w(t))return t.length%2&&("left"===e.hexPad?t="0x0"+t.substring(2):"right"===e.hexPad?t+="0":r.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(h(t)){let e="0x";for(let i=0;i<t.length;i++){let n=t[i];e+=_[(240&n)>>4]+_[15&n];}return e;}return r.throwArgumentError("invalid hexlify value","value",t);}function E(data){if("string"!=typeof data)data=A(data);else if(!w(data)||data.length%2)return null;return(data.length-2)/2;}function T(data,t,e){return"string"!=typeof data?data=A(data):(!w(data)||data.length%2)&&r.throwArgumentError("invalid hexData","value",data),t=2+2*t,null!=e?"0x"+data.substring(t,2+2*e):"0x"+data.substring(t);}function O(t){let e="0x";return t.forEach(t=>{e+=A(t).substring(2);}),e;}function M(t){const e=k(A(t,{hexPad:"left"}));return"0x"===e?"0x0":e;}function k(t){"string"!=typeof t&&(t=A(t)),w(t)||r.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 x(t,e){for("string"!=typeof t?t=A(t):w(t)||r.throwArgumentError("invalid hex string","value",t),t.length>2*e+2&&r.throwArgumentError("value out of range","value",arguments[1]);t.length<2*e+2;)t="0x0"+t.substring(2);return t;}function S(t){const e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(l(t)){let n=d(t);64===n.length?(e.v=27+(n[32]>>7),n[32]&=127,e.r=A(n.slice(0,32)),e.s=A(n.slice(32,64))):65===n.length?(e.r=A(n.slice(0,32)),e.s=A(n.slice(32,64)),e.v=n[64]):r.throwArgumentError("invalid signature string","signature",t),e.v<27&&(0===e.v||1===e.v?e.v+=27:r.throwArgumentError("signature invalid v byte","signature",t)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(n[32]|=128),e._vs=A(n.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){const n=v(d(e._vs),32);e._vs=A(n);const o=n[0]>=128?1:0;null==e.recoveryParam?e.recoveryParam=o:e.recoveryParam!==o&&r.throwArgumentError("signature recoveryParam mismatch _vs","signature",t),n[0]&=127;const s=A(n);null==e.s?e.s=s:e.s!==s&&r.throwArgumentError("signature v mismatch _vs","signature",t);}if(null==e.recoveryParam)null==e.v?r.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{const n=0===e.v||1===e.v?e.v:1-e.v%2;e.recoveryParam!==n&&r.throwArgumentError("signature recoveryParam mismatch v","signature",t);}null!=e.r&&w(e.r)?e.r=x(e.r,32):r.throwArgumentError("signature missing or invalid r","signature",t),null!=e.s&&w(e.s)?e.s=x(e.s,32):r.throwArgumentError("signature missing or invalid s","signature",t);const n=d(e.s);n[0]>=128&&r.throwArgumentError("signature s out of range","signature",t),e.recoveryParam&&(n[0]|=128);const o=A(n);e._vs&&(w(e._vs)||r.throwArgumentError("signature invalid _vs","signature",t),e._vs=x(e._vs,32)),null==e._vs?e._vs=o:e._vs!==o&&r.throwArgumentError("signature _vs mismatch v and s","signature",t);}return e.yParityAndS=e._vs,e.compact=e.r+e.yParityAndS.substring(2),e;}function j(t){return A(m([(t=S(t)).r,t.s,t.recoveryParam?"0x1c":"0x1b"]));}},function(t,e,n){"use strict";n.d(e,"d",function(){return l;}),n.d(e,"e",function(){return f;}),n.d(e,"f",function(){return h;}),n.d(e,"b",function(){return d;}),n.d(e,"g",function(){return m;}),n.d(e,"c",function(){return _;}),n.d(e,"a",function(){return A;});var r=n(2);var o=function(t,e,n,r){return new(n||(n=Promise))(function(o,c){function l(t){try{h(r.next(t));}catch(t){c(t);}}function f(t){try{h(r.throw(t));}catch(t){c(t);}}function h(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e);})).then(l,f);}h((r=r.apply(t,e||[])).next());});};const c=new r.b("properties/5.7.0");function l(object,t,e){Object.defineProperty(object,t,{enumerable:!0,value:e,writable:!1});}function f(t,e){for(let i=0;i<32;i++){if(t[e])return t[e];if(!t.prototype||"object"!=typeof t.prototype)break;t=Object.getPrototypeOf(t.prototype).constructor;}return null;}function h(object){return o(this,void 0,void 0,function*(){const t=Object.keys(object).map(t=>{const e=object[t];return Promise.resolve(e).then(e=>({key:t,value:e}));});return(yield Promise.all(t)).reduce((t,e)=>(t[e.key]=e.value,t),{});});}function d(object,t){object&&"object"==typeof object||c.throwArgumentError("invalid object","object",object),Object.keys(object).forEach(e=>{t[e]||c.throwArgumentError("invalid object key - "+e,"transaction:"+e,object);});}function m(object){const t={};for(const e in object)t[e]=object[e];return t;}const y={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function v(object){if(null==object||y[typeof object])return!0;if(Array.isArray(object)||"object"==typeof object){if(!Object.isFrozen(object))return!1;const t=Object.keys(object);for(let i=0;i<t.length;i++){let e=null;try{e=object[t[i]];}catch(t){continue;}if(!v(e))return!1;}return!0;}return c.throwArgumentError("Cannot deepCopy "+typeof object,"object",object);}function w(object){if(v(object))return object;if(Array.isArray(object))return Object.freeze(object.map(t=>_(t)));if("object"==typeof object){const t={};for(const e in object){const n=object[e];void 0!==n&&l(t,e,_(n));}return t;}return c.throwArgumentError("Cannot deepCopy "+typeof object,"object",object);}function _(object){return w(object);}class A{constructor(t){for(const e in t)this[e]=_(t[e]);}}},function(t,e,n){"use strict";n.d(e,"a",function(){return m;}),n.d(e,"b",function(){return v;});let r=!1,o=!1;const c={debug:1,default:2,info:2,warning:3,error:4,off:5};let l=c.default,f=null;const h=function(){try{const t=[];if(["NFD","NFC","NFKD","NFKC"].forEach(form=>{try{if("test"!=="test".normalize(form))throw new Error("bad normalize");}catch(e){t.push(form);}}),t.length)throw new Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation");}catch(t){return t.message;}return null;}();var d,m;!function(t){t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR",t.OFF="OFF";}(d||(d={})),function(t){t.UNKNOWN_ERROR="UNKNOWN_ERROR",t.NOT_IMPLEMENTED="NOT_IMPLEMENTED",t.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",t.NETWORK_ERROR="NETWORK_ERROR",t.SERVER_ERROR="SERVER_ERROR",t.TIMEOUT="TIMEOUT",t.BUFFER_OVERRUN="BUFFER_OVERRUN",t.NUMERIC_FAULT="NUMERIC_FAULT",t.MISSING_NEW="MISSING_NEW",t.INVALID_ARGUMENT="INVALID_ARGUMENT",t.MISSING_ARGUMENT="MISSING_ARGUMENT",t.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",t.CALL_EXCEPTION="CALL_EXCEPTION",t.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",t.NONCE_EXPIRED="NONCE_EXPIRED",t.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",t.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",t.TRANSACTION_REPLACED="TRANSACTION_REPLACED",t.ACTION_REJECTED="ACTION_REJECTED";}(m||(m={}));const y="0123456789abcdef";class v{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1});}_log(t,e){const n=t.toLowerCase();null==c[n]&&this.throwArgumentError("invalid log level name","logLevel",t),l>c[n]||console.log.apply(console,e);}debug(...t){this._log(v.levels.DEBUG,t);}info(...t){this._log(v.levels.INFO,t);}warn(...t){this._log(v.levels.WARNING,t);}makeError(t,code,e){if(o)return this.makeError("censored error",code,{});code||(code=v.errors.UNKNOWN_ERROR),e||(e={});const n=[];Object.keys(e).forEach(t=>{const r=e[t];try{if(r instanceof Uint8Array){let e="";for(let i=0;i<r.length;i++)e+=y[r[i]>>4],e+=y[15&r[i]];n.push(t+"=Uint8Array(0x"+e+")");}else n.push(t+"="+JSON.stringify(r));}catch(r){n.push(t+"="+JSON.stringify(e[t].toString()));}}),n.push(`code=${code}`),n.push(`version=${this.version}`);const r=t;let c="";switch(code){case m.NUMERIC_FAULT:{c="NUMERIC_FAULT";const e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":c+="-"+e;break;case"negative-power":case"negative-width":c+="-unsupported";break;case"unbound-bitwise-result":c+="-unbound-result";}break;}case m.CALL_EXCEPTION:case m.INSUFFICIENT_FUNDS:case m.MISSING_NEW:case m.NONCE_EXPIRED:case m.REPLACEMENT_UNDERPRICED:case m.TRANSACTION_REPLACED:case m.UNPREDICTABLE_GAS_LIMIT:c=code;}c&&(t+=" [ See: https://links.ethers.org/v5-errors-"+c+" ]"),n.length&&(t+=" ("+n.join(", ")+")");const l=new Error(t);return l.reason=r,l.code=code,Object.keys(e).forEach(function(t){l[t]=e[t];}),l;}throwError(t,code,e){throw this.makeError(t,code,e);}throwArgumentError(t,e,n){return this.throwError(t,v.errors.INVALID_ARGUMENT,{argument:e,value:n});}assert(t,e,code,n){t||this.throwError(e,code,n);}assertArgument(t,e,n,r){t||this.throwArgumentError(e,n,r);}checkNormalize(t){null==t&&(t="platform missing String.prototype.normalize"),h&&this.throwError("platform missing String.prototype.normalize",v.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:h});}checkSafeUint53(t,e){"number"==typeof t&&(null==e&&(e="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(e,v.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(e,v.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}));}checkArgumentCount(t,e,n){n=n?": "+n:"",t<e&&this.throwError("missing argument"+n,v.errors.MISSING_ARGUMENT,{count:t,expectedCount:e}),t>e&&this.throwError("too many arguments"+n,v.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:e});}checkNew(t,e){t!==Object&&null!=t||this.throwError("missing new",v.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",v.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):t!==Object&&null!=t||this.throwError("missing new",v.errors.MISSING_NEW,{name:e.name});}static globalLogger(){return f||(f=new v("logger/5.7.0")),f;}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",v.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),r){if(!t)return;this.globalLogger().throwError("error censorship permanent",v.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"});}o=!!t,r=!!e;}static setLogLevel(t){const e=c[t.toLowerCase()];null!=e?l=e:v.globalLogger().warn("invalid log level - "+t);}static from(t){return new v(t);}}v.errors=m,v.levels=d;},function(t,e,n){(function(t){!function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed");}function o(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n(),t.prototype.constructor=t;}function c(t,base,e){if(c.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==base&&"be"!==base||(e=base,base=10),this._init(t||0,base||10,e||"be"));}var l;"object"==typeof t?t.exports=c:e.BN=c,c.BN=c,c.wordSize=26;try{l="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:n(170).Buffer;}catch(t){}function f(t,e){var n=t.charCodeAt(e);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,"Invalid character in "+t);}function h(t,e,n){var r=f(t,n);return n-1>=e&&(r|=f(t,n-1)<<4),r;}function d(t,e,n,o){for(var c=0,b=0,l=Math.min(t.length,n),i=e;i<l;i++){var f=t.charCodeAt(i)-48;c*=o,b=f>=49?f-49+10:f>=17?f-17+10:f,r(f>=0&&b<o,"Invalid character"),c+=b;}return c;}function m(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red;}if(c.isBN=function(t){return t instanceof c||null!==t&&"object"==typeof t&&t.constructor.wordSize===c.wordSize&&Array.isArray(t.words);},c.max=function(t,e){return t.cmp(e)>0?t:e;},c.min=function(t,e){return t.cmp(e)<0?t:e;},c.prototype._init=function(t,base,e){if("number"==typeof t)return this._initNumber(t,base,e);if("object"==typeof t)return this._initArray(t,base,e);"hex"===base&&(base=16),r(base===(0|base)&&base>=2&&base<=36);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n<t.length&&(16===base?this._parseHex(t,n,e):(this._parseBase(t,base,n),"le"===e&&this._initArray(this.toArray(),base,e)));},c.prototype._initNumber=function(t,base,e){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):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===e&&this._initArray(this.toArray(),base,e);},c.prototype._initArray=function(t,base,e){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var n,o,c=0;if("be"===e)for(i=t.length-1,n=0;i>=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[n]|=o<<c&67108863,this.words[n+1]=o>>>26-c&67108863,(c+=24)>=26&&(c-=26,n++);else if("le"===e)for(i=0,n=0;i<t.length;i+=3)o=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[n]|=o<<c&67108863,this.words[n+1]=o>>>26-c&67108863,(c+=24)>=26&&(c-=26,n++);return this._strip();},c.prototype._parseHex=function(t,e,n){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var r,o=0,c=0;if("be"===n)for(i=t.length-1;i>=e;i-=2)r=h(t,e,i)<<o,this.words[c]|=67108863&r,o>=18?(o-=18,c+=1,this.words[c]|=r>>>26):o+=8;else for(i=(t.length-e)%2==0?e+1:e;i<t.length;i+=2)r=h(t,e,i)<<o,this.words[c]|=67108863&r,o>=18?(o-=18,c+=1,this.words[c]|=r>>>26):o+=8;this._strip();},c.prototype._parseBase=function(t,base,e){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=base)n++;n--,r=r/base|0;for(var o=t.length-e,c=o%n,l=Math.min(o,o-c)+e,f=0,i=e;i<l;i+=n)f=d(t,i,i+n,base),this.imuln(r),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f);if(0!==c){var h=1;for(f=d(t,i,t.length,base),i=0;i<c;i++)h*=base;this.imuln(h),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f);}this._strip();},c.prototype.copy=function(t){t.words=new Array(this.length);for(var i=0;i<this.length;i++)t.words[i]=this.words[i];t.length=this.length,t.negative=this.negative,t.red=this.red;},c.prototype._move=function(t){m(t,this);},c.prototype.clone=function(){var t=new c(null);return this.copy(t),t;},c.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this;},c.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign();},c.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this;},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{c.prototype[Symbol.for("nodejs.util.inspect.custom")]=y;}catch(t){c.prototype.inspect=y;}else c.prototype.inspect=y;function y(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">";}var v=["","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"],w=[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],_=[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];c.prototype.toString=function(base,t){var e;if(t=0|t||1,16===(base=base||10)||"hex"===base){e="";for(var n=0,o=0,i=0;i<this.length;i++){var c=this.words[i],l=(16777215&(c<<n|o)).toString(16);o=c>>>24-n&16777215,(n+=2)>=26&&(n-=26,i--),e=0!==o||i!==this.length-1?v[6-l.length]+l+e:l+e;}for(0!==o&&(e=o.toString(16)+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e;}if(base===(0|base)&&base>=2&&base<=36){var f=w[base],h=_[base];e="";var d=this.clone();for(d.negative=0;!d.isZero();){var m=d.modrn(h).toString(base);e=(d=d.idivn(h)).isZero()?m+e:v[f-m.length]+m+e;}for(this.isZero()&&(e="0"+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e;}r(!1,"Base should be between 2 and 36");},c.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&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t;},c.prototype.toJSON=function(){return this.toString(16,2);},l&&(c.prototype.toBuffer=function(t,e){return this.toArrayLike(l,t,e);}),c.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e);};function A(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var a=0|t.words[0],b=0|e.words[0],o=a*b,c=67108863&o,l=o/67108864|0;n.words[0]=c;for(var f=1;f<r;f++){for(var h=l>>>26,d=67108863&l,m=Math.min(f,e.length-1),y=Math.max(0,f-t.length+1);y<=m;y++){var i=f-y|0;h+=(o=(a=0|t.words[i])*(b=0|e.words[y])+d)/67108864|0,d=67108863&o;}n.words[f]=0|d,l=0|h;}return 0!==l?n.words[f]=0|l:n.length--,n._strip();}c.prototype.toArrayLike=function(t,e,n){this._strip();var o=this.byteLength(),c=n||Math.max(1,o);r(o<=c,"byte array longer than desired length"),r(c>0,"Requested array length <= 0");var l=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e);}(t,c);return this["_toArrayLike"+("le"===e?"LE":"BE")](l,o),l;},c.prototype._toArrayLikeLE=function(t,e){for(var n=0,r=0,i=0,o=0;i<this.length;i++){var c=this.words[i]<<o|r;t[n++]=255&c,n<t.length&&(t[n++]=c>>8&255),n<t.length&&(t[n++]=c>>16&255),6===o?(n<t.length&&(t[n++]=c>>24&255),r=0,o=0):(r=c>>>24,o+=2);}if(n<t.length)for(t[n++]=r;n<t.length;)t[n++]=0;},c.prototype._toArrayLikeBE=function(t,e){for(var n=t.length-1,r=0,i=0,o=0;i<this.length;i++){var c=this.words[i]<<o|r;t[n--]=255&c,n>=0&&(t[n--]=c>>8&255),n>=0&&(t[n--]=c>>16&255),6===o?(n>=0&&(t[n--]=c>>24&255),r=0,o=0):(r=c>>>24,o+=2);}if(n>=0)for(t[n--]=r;n>=0;)t[n--]=0;},Math.clz32?c.prototype._countBits=function(t){return 32-Math.clz32(t);}:c.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e;},c.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0==(8191&e)&&(n+=13,e>>>=13),0==(127&e)&&(n+=7,e>>>=7),0==(15&e)&&(n+=4,e>>>=4),0==(3&e)&&(n+=2,e>>>=2),0==(1&e)&&n++,n;},c.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e;},c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,i=0;i<this.length;i++){var b=this._zeroBits(this.words[i]);if(t+=b,26!==b)break;}return t;},c.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8);},c.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone();},c.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone();},c.prototype.isNeg=function(){return 0!==this.negative;},c.prototype.neg=function(){return this.clone().ineg();},c.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this;},c.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]|t.words[i];return this._strip();},c.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t);},c.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this);},c.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this);},c.prototype.iuand=function(t){var b;b=this.length>t.length?t:this;for(var i=0;i<b.length;i++)this.words[i]=this.words[i]&t.words[i];return this.length=b.length,this._strip();},c.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t);},c.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this);},c.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this);},c.prototype.iuxor=function(t){var a,b;this.length>t.length?(a=this,b=t):(a=t,b=this);for(var i=0;i<b.length;i++)this.words[i]=a.words[i]^b.words[i];if(this!==a)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=a.length,this._strip();},c.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t);},c.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this);},c.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this);},c.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this._strip();},c.prototype.notn=function(t){return this.clone().inotn(t);},c.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var n=t/26|0,o=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<o:this.words[n]&~(1<<o),this._strip();},c.prototype.iadd=function(t){var e,a,b;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?(a=this,b=t):(a=t,b=this);for(var n=0,i=0;i<b.length;i++)e=(0|a.words[i])+(0|b.words[i])+n,this.words[i]=67108863&e,n=e>>>26;for(;0!==n&&i<a.length;i++)e=(0|a.words[i])+n,this.words[i]=67108863&e,n=e>>>26;if(this.length=a.length,0!==n)this.words[this.length]=n,this.length++;else if(a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this;},c.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);},c.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign();}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var a,b,n=this.cmp(t);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(a=this,b=t):(a=t,b=this);for(var r=0,i=0;i<b.length;i++)r=(e=(0|a.words[i])-(0|b.words[i])+r)>>26,this.words[i]=67108863&e;for(;0!==r&&i<a.length;i++)r=(e=(0|a.words[i])+r)>>26,this.words[i]=67108863&e;if(0===r&&i<a.length&&a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=Math.max(this.length,i),a!==this&&(this.negative=1),this._strip();},c.prototype.sub=function(t){return this.clone().isub(t);};var E=function(t,e,n){var r,o,c,a=t.words,b=e.words,l=n.words,f=0,h=0|a[0],d=8191&h,m=h>>>13,y=0|a[1],v=8191&y,w=y>>>13,_=0|a[2],A=8191&_,E=_>>>13,T=0|a[3],O=8191&T,M=T>>>13,k=0|a[4],x=8191&k,S=k>>>13,j=0|a[5],N=8191&j,I=j>>>13,P=0|a[6],R=8191&P,C=P>>>13,B=0|a[7],L=8191&B,F=B>>>13,D=0|a[8],U=8191&D,G=D>>>13,z=0|a[9],H=8191&z,K=z>>>13,W=0|b[0],V=8191&W,J=W>>>13,Y=0|b[1],Q=8191&Y,X=Y>>>13,Z=0|b[2],$=8191&Z,tt=Z>>>13,et=0|b[3],nt=8191&et,it=et>>>13,ot=0|b[4],at=8191&ot,st=ot>>>13,ut=0|b[5],ct=8191&ut,lt=ut>>>13,ft=0|b[6],ht=8191&ft,pt=ft>>>13,mt=0|b[7],yt=8191&mt,gt=mt>>>13,bt=0|b[8],vt=8191&bt,wt=bt>>>13,_t=0|b[9],At=8191&_t,Et=_t>>>13;n.negative=t.negative^e.negative,n.length=19;var Tt=(f+(r=Math.imul(d,V))|0)+((8191&(o=(o=Math.imul(d,J))+Math.imul(m,V)|0))<<13)|0;f=((c=Math.imul(m,J))+(o>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(v,V),o=(o=Math.imul(v,J))+Math.imul(w,V)|0,c=Math.imul(w,J);var Ot=(f+(r=r+Math.imul(d,Q)|0)|0)+((8191&(o=(o=o+Math.imul(d,X)|0)+Math.imul(m,Q)|0))<<13)|0;f=((c=c+Math.imul(m,X)|0)+(o>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul(A,V),o=(o=Math.imul(A,J))+Math.imul(E,V)|0,c=Math.imul(E,J),r=r+Math.imul(v,Q)|0,o=(o=o+Math.imul(v,X)|0)+Math.imul(w,Q)|0,c=c+Math.imul(w,X)|0;var Mt=(f+(r=r+Math.imul(d,$)|0)|0)+((8191&(o=(o=o+Math.imul(d,tt)|0)+Math.imul(m,$)|0))<<13)|0;f=((c=c+Math.imul(m,tt)|0)+(o>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(O,V),o=(o=Math.imul(O,J))+Math.imul(M,V)|0,c=Math.imul(M,J),r=r+Math.imul(A,Q)|0,o=(o=o+Math.imul(A,X)|0)+Math.imul(E,Q)|0,c=c+Math.imul(E,X)|0,r=r+Math.imul(v,$)|0,o=(o=o+Math.imul(v,tt)|0)+Math.imul(w,$)|0,c=c+Math.imul(w,tt)|0;var kt=(f+(r=r+Math.imul(d,nt)|0)|0)+((8191&(o=(o=o+Math.imul(d,it)|0)+Math.imul(m,nt)|0))<<13)|0;f=((c=c+Math.imul(m,it)|0)+(o>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(x,V),o=(o=Math.imul(x,J))+Math.imul(S,V)|0,c=Math.imul(S,J),r=r+Math.imul(O,Q)|0,o=(o=o+Math.imul(O,X)|0)+Math.imul(M,Q)|0,c=c+Math.imul(M,X)|0,r=r+Math.imul(A,$)|0,o=(o=o+Math.imul(A,tt)|0)+Math.imul(E,$)|0,c=c+Math.imul(E,tt)|0,r=r+Math.imul(v,nt)|0,o=(o=o+Math.imul(v,it)|0)+Math.imul(w,nt)|0,c=c+Math.imul(w,it)|0;var xt=(f+(r=r+Math.imul(d,at)|0)|0)+((8191&(o=(o=o+Math.imul(d,st)|0)+Math.imul(m,at)|0))<<13)|0;f=((c=c+Math.imul(m,st)|0)+(o>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(N,V),o=(o=Math.imul(N,J))+Math.imul(I,V)|0,c=Math.imul(I,J),r=r+Math.imul(x,Q)|0,o=(o=o+Math.imul(x,X)|0)+Math.imul(S,Q)|0,c=c+Math.imul(S,X)|0,r=r+Math.imul(O,$)|0,o=(o=o+Math.imul(O,tt)|0)+Math.imul(M,$)|0,c=c+Math.imul(M,tt)|0,r=r+Math.imul(A,nt)|0,o=(o=o+Math.imul(A,it)|0)+Math.imul(E,nt)|0,c=c+Math.imul(E,it)|0,r=r+Math.imul(v,at)|0,o=(o=o+Math.imul(v,st)|0)+Math.imul(w,at)|0,c=c+Math.imul(w,st)|0;var St=(f+(r=r+Math.imul(d,ct)|0)|0)+((8191&(o=(o=o+Math.imul(d,lt)|0)+Math.imul(m,ct)|0))<<13)|0;f=((c=c+Math.imul(m,lt)|0)+(o>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(R,V),o=(o=Math.imul(R,J))+Math.imul(C,V)|0,c=Math.imul(C,J),r=r+Math.imul(N,Q)|0,o=(o=o+Math.imul(N,X)|0)+Math.imul(I,Q)|0,c=c+Math.imul(I,X)|0,r=r+Math.imul(x,$)|0,o=(o=o+Math.imul(x,tt)|0)+Math.imul(S,$)|0,c=c+Math.imul(S,tt)|0,r=r+Math.imul(O,nt)|0,o=(o=o+Math.imul(O,it)|0)+Math.imul(M,nt)|0,c=c+Math.imul(M,it)|0,r=r+Math.imul(A,at)|0,o=(o=o+Math.imul(A,st)|0)+Math.imul(E,at)|0,c=c+Math.imul(E,st)|0,r=r+Math.imul(v,ct)|0,o=(o=o+Math.imul(v,lt)|0)+Math.imul(w,ct)|0,c=c+Math.imul(w,lt)|0;var jt=(f+(r=r+Math.imul(d,ht)|0)|0)+((8191&(o=(o=o+Math.imul(d,pt)|0)+Math.imul(m,ht)|0))<<13)|0;f=((c=c+Math.imul(m,pt)|0)+(o>>>13)|0)+(jt>>>26)|0,jt&=67108863,r=Math.imul(L,V),o=(o=Math.imul(L,J))+Math.imul(F,V)|0,c=Math.imul(F,J),r=r+Math.imul(R,Q)|0,o=(o=o+Math.imul(R,X)|0)+Math.imul(C,Q)|0,c=c+Math.imul(C,X)|0,r=r+Math.imul(N,$)|0,o=(o=o+Math.imul(N,tt)|0)+Math.imul(I,$)|0,c=c+Math.imul(I,tt)|0,r=r+Math.imul(x,nt)|0,o=(o=o+Math.imul(x,it)|0)+Math.imul(S,nt)|0,c=c+Math.imul(S,it)|0,r=r+Math.imul(O,at)|0,o=(o=o+Math.imul(O,st)|0)+Math.imul(M,at)|0,c=c+Math.imul(M,st)|0,r=r+Math.imul(A,ct)|0,o=(o=o+Math.imul(A,lt)|0)+Math.imul(E,ct)|0,c=c+Math.imul(E,lt)|0,r=r+Math.imul(v,ht)|0,o=(o=o+Math.imul(v,pt)|0)+Math.imul(w,ht)|0,c=c+Math.imul(w,pt)|0;var Nt=(f+(r=r+Math.imul(d,yt)|0)|0)+((8191&(o=(o=o+Math.imul(d,gt)|0)+Math.imul(m,yt)|0))<<13)|0;f=((c=c+Math.imul(m,gt)|0)+(o>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,r=Math.imul(U,V),o=(o=Math.imul(U,J))+Math.imul(G,V)|0,c=Math.imul(G,J),r=r+Math.imul(L,Q)|0,o=(o=o+Math.imul(L,X)|0)+Math.imul(F,Q)|0,c=c+Math.imul(F,X)|0,r=r+Math.imul(R,$)|0,o=(o=o+Math.imul(R,tt)|0)+Math.imul(C,$)|0,c=c+Math.imul(C,tt)|0,r=r+Math.imul(N,nt)|0,o=(o=o+Math.imul(N,it)|0)+Math.imul(I,nt)|0,c=c+Math.imul(I,it)|0,r=r+Math.imul(x,at)|0,o=(o=o+Math.imul(x,st)|0)+Math.imul(S,at)|0,c=c+Math.imul(S,st)|0,r=r+Math.imul(O,ct)|0,o=(o=o+Math.imul(O,lt)|0)+Math.imul(M,ct)|0,c=c+Math.imul(M,lt)|0,r=r+Math.imul(A,ht)|0,o=(o=o+Math.imul(A,pt)|0)+Math.imul(E,ht)|0,c=c+Math.imul(E,pt)|0,r=r+Math.imul(v,yt)|0,o=(o=o+Math.imul(v,gt)|0)+Math.imul(w,yt)|0,c=c+Math.imul(w,gt)|0;var It=(f+(r=r+Math.imul(d,vt)|0)|0)+((8191&(o=(o=o+Math.imul(d,wt)|0)+Math.imul(m,vt)|0))<<13)|0;f=((c=c+Math.imul(m,wt)|0)+(o>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(H,V),o=(o=Math.imul(H,J))+Math.imul(K,V)|0,c=Math.imul(K,J),r=r+Math.imul(U,Q)|0,o=(o=o+Math.imul(U,X)|0)+Math.imul(G,Q)|0,c=c+Math.imul(G,X)|0,r=r+Math.imul(L,$)|0,o=(o=o+Math.imul(L,tt)|0)+Math.imul(F,$)|0,c=c+Math.imul(F,tt)|0,r=r+Math.imul(R,nt)|0,o=(o=o+Math.imul(R,it)|0)+Math.imul(C,nt)|0,c=c+Math.imul(C,it)|0,r=r+Math.imul(N,at)|0,o=(o=o+Math.imul(N,st)|0)+Math.imul(I,at)|0,c=c+Math.imul(I,st)|0,r=r+Math.imul(x,ct)|0,o=(o=o+Math.imul(x,lt)|0)+Math.imul(S,ct)|0,c=c+Math.imul(S,lt)|0,r=r+Math.imul(O,ht)|0,o=(o=o+Math.imul(O,pt)|0)+Math.imul(M,ht)|0,c=c+Math.imul(M,pt)|0,r=r+Math.imul(A,yt)|0,o=(o=o+Math.imul(A,gt)|0)+Math.imul(E,yt)|0,c=c+Math.imul(E,gt)|0,r=r+Math.imul(v,vt)|0,o=(o=o+Math.imul(v,wt)|0)+Math.imul(w,vt)|0,c=c+Math.imul(w,wt)|0;var Pt=(f+(r=r+Math.imul(d,At)|0)|0)+((8191&(o=(o=o+Math.imul(d,Et)|0)+Math.imul(m,At)|0))<<13)|0;f=((c=c+Math.imul(m,Et)|0)+(o>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,r=Math.imul(H,Q),o=(o=Math.imul(H,X))+Math.imul(K,Q)|0,c=Math.imul(K,X),r=r+Math.imul(U,$)|0,o=(o=o+Math.imul(U,tt)|0)+Math.imul(G,$)|0,c=c+Math.imul(G,tt)|0,r=r+Math.imul(L,nt)|0,o=(o=o+Math.imul(L,it)|0)+Math.imul(F,nt)|0,c=c+Math.imul(F,it)|0,r=r+Math.imul(R,at)|0,o=(o=o+Math.imul(R,st)|0)+Math.imul(C,at)|0,c=c+Math.imul(C,st)|0,r=r+Math.imul(N,ct)|0,o=(o=o+Math.imul(N,lt)|0)+Math.imul(I,ct)|0,c=c+Math.imul(I,lt)|0,r=r+Math.imul(x,ht)|0,o=(o=o+Math.imul(x,pt)|0)+Math.imul(S,ht)|0,c=c+Math.imul(S,pt)|0,r=r+Math.imul(O,yt)|0,o=(o=o+Math.imul(O,gt)|0)+Math.imul(M,yt)|0,c=c+Math.imul(M,gt)|0,r=r+Math.imul(A,vt)|0,o=(o=o+Math.imul(A,wt)|0)+Math.imul(E,vt)|0,c=c+Math.imul(E,wt)|0;var Rt=(f+(r=r+Math.imul(v,At)|0)|0)+((8191&(o=(o=o+Math.imul(v,Et)|0)+Math.imul(w,At)|0))<<13)|0;f=((c=c+Math.imul(w,Et)|0)+(o>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,r=Math.imul(H,$),o=(o=Math.imul(H,tt))+Math.imul(K,$)|0,c=Math.imul(K,tt),r=r+Math.imul(U,nt)|0,o=(o=o+Math.imul(U,it)|0)+Math.imul(G,nt)|0,c=c+Math.imul(G,it)|0,r=r+Math.imul(L,at)|0,o=(o=o+Math.imul(L,st)|0)+Math.imul(F,at)|0,c=c+Math.imul(F,st)|0,r=r+Math.imul(R,ct)|0,o=(o=o+Math.imul(R,lt)|0)+Math.imul(C,ct)|0,c=c+Math.imul(C,lt)|0,r=r+Math.imul(N,ht)|0,o=(o=o+Math.imul(N,pt)|0)+Math.imul(I,ht)|0,c=c+Math.imul(I,pt)|0,r=r+Math.imul(x,yt)|0,o=(o=o+Math.imul(x,gt)|0)+Math.imul(S,yt)|0,c=c+Math.imul(S,gt)|0,r=r+Math.imul(O,vt)|0,o=(o=o+Math.imul(O,wt)|0)+Math.imul(M,vt)|0,c=c+Math.imul(M,wt)|0;var Ct=(f+(r=r+Math.imul(A,At)|0)|0)+((8191&(o=(o=o+Math.imul(A,Et)|0)+Math.imul(E,At)|0))<<13)|0;f=((c=c+Math.imul(E,Et)|0)+(o>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(H,nt),o=(o=Math.imul(H,it))+Math.imul(K,nt)|0,c=Math.imul(K,it),r=r+Math.imul(U,at)|0,o=(o=o+Math.imul(U,st)|0)+Math.imul(G,at)|0,c=c+Math.imul(G,st)|0,r=r+Math.imul(L,ct)|0,o=(o=o+Math.imul(L,lt)|0)+Math.imul(F,ct)|0,c=c+Math.imul(F,lt)|0,r=r+Math.imul(R,ht)|0,o=(o=o+Math.imul(R,pt)|0)+Math.imul(C,ht)|0,c=c+Math.imul(C,pt)|0,r=r+Math.imul(N,yt)|0,o=(o=o+Math.imul(N,gt)|0)+Math.imul(I,yt)|0,c=c+Math.imul(I,gt)|0,r=r+Math.imul(x,vt)|0,o=(o=o+Math.imul(x,wt)|0)+Math.imul(S,vt)|0,c=c+Math.imul(S,wt)|0;var Bt=(f+(r=r+Math.imul(O,At)|0)|0)+((8191&(o=(o=o+Math.imul(O,Et)|0)+Math.imul(M,At)|0))<<13)|0;f=((c=c+Math.imul(M,Et)|0)+(o>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,r=Math.imul(H,at),o=(o=Math.imul(H,st))+Math.imul(K,at)|0,c=Math.imul(K,st),r=r+Math.imul(U,ct)|0,o=(o=o+Math.imul(U,lt)|0)+Math.imul(G,ct)|0,c=c+Math.imul(G,lt)|0,r=r+Math.imul(L,ht)|0,o=(o=o+Math.imul(L,pt)|0)+Math.imul(F,ht)|0,c=c+Math.imul(F,pt)|0,r=r+Math.imul(R,yt)|0,o=(o=o+Math.imul(R,gt)|0)+Math.imul(C,yt)|0,c=c+Math.imul(C,gt)|0,r=r+Math.imul(N,vt)|0,o=(o=o+Math.imul(N,wt)|0)+Math.imul(I,vt)|0,c=c+Math.imul(I,wt)|0;var Lt=(f+(r=r+Math.imul(x,At)|0)|0)+((8191&(o=(o=o+Math.imul(x,Et)|0)+Math.imul(S,At)|0))<<13)|0;f=((c=c+Math.imul(S,Et)|0)+(o>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,r=Math.imul(H,ct),o=(o=Math.imul(H,lt))+Math.imul(K,ct)|0,c=Math.imul(K,lt),r=r+Math.imul(U,ht)|0,o=(o=o+Math.imul(U,pt)|0)+Math.imul(G,ht)|0,c=c+Math.imul(G,pt)|0,r=r+Math.imul(L,yt)|0,o=(o=o+Math.imul(L,gt)|0)+Math.imul(F,yt)|0,c=c+Math.imul(F,gt)|0,r=r+Math.imul(R,vt)|0,o=(o=o+Math.imul(R,wt)|0)+Math.imul(C,vt)|0,c=c+Math.imul(C,wt)|0;var Ft=(f+(r=r+Math.imul(N,At)|0)|0)+((8191&(o=(o=o+Math.imul(N,Et)|0)+Math.imul(I,At)|0))<<13)|0;f=((c=c+Math.imul(I,Et)|0)+(o>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,r=Math.imul(H,ht),o=(o=Math.imul(H,pt))+Math.imul(K,ht)|0,c=Math.imul(K,pt),r=r+Math.imul(U,yt)|0,o=(o=o+Math.imul(U,gt)|0)+Math.imul(G,yt)|0,c=c+Math.imul(G,gt)|0,r=r+Math.imul(L,vt)|0,o=(o=o+Math.imul(L,wt)|0)+Math.imul(F,vt)|0,c=c+Math.imul(F,wt)|0;var Dt=(f+(r=r+Math.imul(R,At)|0)|0)+((8191&(o=(o=o+Math.imul(R,Et)|0)+Math.imul(C,At)|0))<<13)|0;f=((c=c+Math.imul(C,Et)|0)+(o>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,r=Math.imul(H,yt),o=(o=Math.imul(H,gt))+Math.imul(K,yt)|0,c=Math.imul(K,gt),r=r+Math.imul(U,vt)|0,o=(o=o+Math.imul(U,wt)|0)+Math.imul(G,vt)|0,c=c+Math.imul(G,wt)|0;var Ut=(f+(r=r+Math.imul(L,At)|0)|0)+((8191&(o=(o=o+Math.imul(L,Et)|0)+Math.imul(F,At)|0))<<13)|0;f=((c=c+Math.imul(F,Et)|0)+(o>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,r=Math.imul(H,vt),o=(o=Math.imul(H,wt))+Math.imul(K,vt)|0,c=Math.imul(K,wt);var Gt=(f+(r=r+Math.imul(U,At)|0)|0)+((8191&(o=(o=o+Math.imul(U,Et)|0)+Math.imul(G,At)|0))<<13)|0;f=((c=c+Math.imul(G,Et)|0)+(o>>>13)|0)+(Gt>>>26)|0,Gt&=67108863;var zt=(f+(r=Math.imul(H,At))|0)+((8191&(o=(o=Math.imul(H,Et))+Math.imul(K,At)|0))<<13)|0;return f=((c=Math.imul(K,Et))+(o>>>13)|0)+(zt>>>26)|0,zt&=67108863,l[0]=Tt,l[1]=Ot,l[2]=Mt,l[3]=kt,l[4]=xt,l[5]=St,l[6]=jt,l[7]=Nt,l[8]=It,l[9]=Pt,l[10]=Rt,l[11]=Ct,l[12]=Bt,l[13]=Lt,l[14]=Ft,l[15]=Dt,l[16]=Ut,l[17]=Gt,l[18]=zt,0!==f&&(l[19]=f,n.length++),n;};function T(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,o=0,c=0;c<n.length-1;c++){var l=o;o=0;for(var f=67108863&r,h=Math.min(c,e.length-1),d=Math.max(0,c-t.length+1);d<=h;d++){var i=c-d,m=(0|t.words[i])*(0|e.words[d]),y=67108863&m;f=67108863&(y=y+f|0),o+=(l=(l=l+(m/67108864|0)|0)+(y>>>26)|0)>>>26,l&=67108863;}n.words[c]=f,r=l,l=o;}return 0!==r?n.words[c]=r:n.length--,n._strip();}function O(t,e,n){return T(t,e,n);}function M(t,e){this.x=t,this.y=e;}Math.imul||(E=A),c.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?E(this,t,e):n<63?A(this,t,e):n<1024?T(this,t,e):O(this,t,e);},M.prototype.makeRBT=function(t){for(var e=new Array(t),n=c.prototype._countBits(t)-1,i=0;i<t;i++)e[i]=this.revBin(i,n,t);return e;},M.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var r=0,i=0;i<e;i++)r|=(1&t)<<e-i-1,t>>=1;return r;},M.prototype.permute=function(t,e,n,r,o,c){for(var i=0;i<c;i++)r[i]=e[t[i]],o[i]=n[t[i]];},M.prototype.transform=function(t,e,n,r,o,c){this.permute(c,t,e,n,r,o);for(var s=1;s<o;s<<=1)for(var l=s<<1,f=Math.cos(2*Math.PI/l),h=Math.sin(2*Math.PI/l),p=0;p<o;p+=l)for(var d=f,m=h,y=0;y<s;y++){var v=n[p+y],w=r[p+y],_=n[p+y+s],A=r[p+y+s],E=d*_-m*A;A=d*A+m*_,_=E,n[p+y]=v+_,r[p+y]=w+A,n[p+y+s]=v-_,r[p+y+s]=w-A,y!==l&&(E=f*d-h*m,m=f*m+h*d,d=E);}},M.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r;},M.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var i=0;i<n/2;i++){var r=t[i];t[i]=t[n-i-1],t[n-i-1]=r,r=e[i],e[i]=-e[n-i-1],e[n-i-1]=-r;}},M.prototype.normalize13b=function(t,e){for(var n=0,i=0;i<e/2;i++){var r=8192*Math.round(t[2*i+1]/e)+Math.round(t[2*i]/e)+n;t[i]=67108863&r,n=r<67108864?0:r/67108864|0;}return t;},M.prototype.convert13b=function(t,e,n,o){for(var c=0,i=0;i<e;i++)c+=0|t[i],n[2*i]=8191&c,c>>>=13,n[2*i+1]=8191&c,c>>>=13;for(i=2*e;i<o;++i)n[i]=0;r(0===c),r(0==(-8192&c));},M.prototype.stub=function(t){for(var e=new Array(t),i=0;i<t;i++)e[i]=0;return e;},M.prototype.mulp=function(t,e,n){var r=2*this.guessLen13b(t.length,e.length),o=this.makeRBT(r),c=this.stub(r),l=new Array(r),f=new Array(r),h=new Array(r),d=new Array(r),m=new Array(r),y=new Array(r),v=n.words;v.length=r,this.convert13b(t.words,t.length,l,r),this.convert13b(e.words,e.length,d,r),this.transform(l,c,f,h,r,o),this.transform(d,c,m,y,r,o);for(var i=0;i<r;i++){var w=f[i]*m[i]-h[i]*y[i];h[i]=f[i]*y[i]+h[i]*m[i],f[i]=w;}return this.conjugate(f,h,r),this.transform(f,h,v,c,r,o),this.conjugate(v,c,r),this.normalize13b(v,r),n.negative=t.negative^e.negative,n.length=t.length+e.length,n._strip();},c.prototype.mul=function(t){var e=new c(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e);},c.prototype.mulf=function(t){var e=new c(null);return e.words=new Array(this.length+t.length),O(this,t,e);},c.prototype.imul=function(t){return this.clone().mulTo(t,this);},c.prototype.imuln=function(t){var e=t<0;e&&(t=-t),r("number"==typeof t),r(t<67108864);for(var n=0,i=0;i<this.length;i++){var o=(0|this.words[i])*t,c=(67108863&o)+(67108863&n);n>>=26,n+=o/67108864|0,n+=c>>>26,this.words[i]=67108863&c;}return 0!==n&&(this.words[i]=n,this.length++),e?this.ineg():this;},c.prototype.muln=function(t){return this.clone().imuln(t);},c.prototype.sqr=function(){return this.mul(this);},c.prototype.isqr=function(){return this.imul(this.clone());},c.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var r=n/26|0,o=n%26;e[n]=t.words[r]>>>o&1;}return e;}(t);if(0===e.length)return new c(1);for(var n=this,i=0;i<e.length&&0===e[i];i++,n=n.sqr());if(++i<e.length)for(var q=n.sqr();i<e.length;i++,q=q.sqr())0!==e[i]&&(n=n.mul(q));return n;},c.prototype.iushln=function(t){r("number"==typeof t&&t>=0);var i,e=t%26,s=(t-e)/26,n=67108863>>>26-e<<26-e;if(0!==e){var o=0;for(i=0;i<this.length;i++){var c=this.words[i]&n,l=(0|this.words[i])-c<<e;this.words[i]=l|o,o=c>>>26-e;}o&&(this.words[i]=o,this.length++);}if(0!==s){for(i=this.length-1;i>=0;i--)this.words[i+s]=this.words[i];for(i=0;i<s;i++)this.words[i]=0;this.length+=s;}return this._strip();},c.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t);},c.prototype.iushrn=function(t,e,n){var o;r("number"==typeof t&&t>=0),o=e?(e-e%26)/26:0;var c=t%26,s=Math.min((t-c)/26,this.length),mask=67108863^67108863>>>c<<c,l=n;if(o-=s,o=Math.max(0,o),l){for(var i=0;i<s;i++)l.words[i]=this.words[i];l.length=s;}if(0===s);else if(this.length>s)for(this.length-=s,i=0;i<this.length;i++)this.words[i]=this.words[i+s];else this.words[0]=0,this.length=1;var f=0;for(i=this.length-1;i>=0&&(0!==f||i>=o);i--){var h=0|this.words[i];this.words[i]=f<<26-c|h>>>c,f=h&mask;}return l&&0!==f&&(l.words[l.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this._strip();},c.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n);},c.prototype.shln=function(t){return this.clone().ishln(t);},c.prototype.ushln=function(t){return this.clone().iushln(t);},c.prototype.shrn=function(t){return this.clone().ishrn(t);},c.prototype.ushrn=function(t){return this.clone().iushrn(t);},c.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,s=(t-e)/26,q=1<<e;return!(this.length<=s)&&!!(this.words[s]&q);},c.prototype.imaskn=function(t){r("number"==typeof t&&t>=0);var e=t%26,s=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=s)return this;if(0!==e&&s++,this.length=Math.min(s,this.length),0!==e){var mask=67108863^67108863>>>e<<e;this.words[this.length-1]&=mask;}return this._strip();},c.prototype.maskn=function(t){return this.clone().imaskn(t);},c.prototype.iaddn=function(t){return r("number"==typeof t),r(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):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t);},c.prototype._iaddn=function(t){this.words[0]+=t;for(var i=0;i<this.length&&this.words[i]>=67108864;i++)this.words[i]-=67108864,i===this.length-1?this.words[i+1]=1:this.words[i+1]++;return this.length=Math.max(this.length,i+1),this;},c.prototype.isubn=function(t){if(r("number"==typeof t),r(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 i=0;i<this.length&&this.words[i]<0;i++)this.words[i]+=67108864,this.words[i+1]-=1;return this._strip();},c.prototype.addn=function(t){return this.clone().iaddn(t);},c.prototype.subn=function(t){return this.clone().isubn(t);},c.prototype.iabs=function(){return this.negative=0,this;},c.prototype.abs=function(){return this.clone().iabs();},c.prototype._ishlnsubmul=function(t,e,n){var i,o,c=t.length+n;this._expand(c);var l=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+l;var f=(0|t.words[i])*e;l=((o-=67108863&f)>>26)-(f/67108864|0),this.words[i+n]=67108863&o;}for(;i<this.length-n;i++)l=(o=(0|this.words[i+n])+l)>>26,this.words[i+n]=67108863&o;if(0===l)return this._strip();for(r(-1===l),l=0,i=0;i<this.length;i++)l=(o=-(0|this.words[i])+l)>>26,this.words[i]=67108863&o;return this.negative=1,this._strip();},c.prototype._wordDiv=function(t,e){var n=(this.length,t.length),a=this.clone(),b=t,r=0|b.words[b.length-1];0!==(n=26-this._countBits(r))&&(b=b.ushln(n),a.iushln(n),r=0|b.words[b.length-1]);var q,o=a.length-b.length;if("mod"!==e){(q=new c(null)).length=o+1,q.words=new Array(q.length);for(var i=0;i<q.length;i++)q.words[i]=0;}var l=a.clone()._ishlnsubmul(b,1,o);0===l.negative&&(a=l,q&&(q.words[o]=1));for(var f=o-1;f>=0;f--){var h=67108864*(0|a.words[b.length+f])+(0|a.words[b.length+f-1]);for(h=Math.min(h/r|0,67108863),a._ishlnsubmul(b,h,f);0!==a.negative;)h--,a.negative=0,a._ishlnsubmul(b,1,f),a.isZero()||(a.negative^=1);q&&(q.words[f]=h);}return q&&q._strip(),a._strip(),"div"!==e&&0!==n&&a.iushrn(n),{div:q||null,mod:a};},c.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new c(0),mod:new c(0)}:0!==this.negative&&0===t.negative?(l=this.neg().divmod(t,e),"mod"!==e&&(div=l.div.neg()),"div"!==e&&(o=l.mod.neg(),n&&0!==o.negative&&o.iadd(t)),{div:div,mod:o}):0===this.negative&&0!==t.negative?(l=this.divmod(t.neg(),e),"mod"!==e&&(div=l.div.neg()),{div:div,mod:l.mod}):0!=(this.negative&t.negative)?(l=this.neg().divmod(t.neg(),e),"div"!==e&&(o=l.mod.neg(),n&&0!==o.negative&&o.isub(t)),{div:l.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new c(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new c(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new c(this.modrn(t.words[0]))}:this._wordDiv(t,e);var div,o,l;},c.prototype.div=function(t){return this.divmod(t,"div",!1).div;},c.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod;},c.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod;},c.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),o=t.andln(1),c=n.cmp(r);return c<0||1===o&&0===c?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1);},c.prototype.modrn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var p=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(p*n+(0|this.words[i]))%t;return e?-n:n;},c.prototype.modn=function(t){return this.modrn(t);},c.prototype.idivn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*n;this.words[i]=o/t|0,n=o%t;}return this._strip(),e?this.ineg():this;},c.prototype.divn=function(t){return this.clone().idivn(t);},c.prototype.egcd=function(p){r(0===p.negative),r(!p.isZero());var t=this,e=p.clone();t=0!==t.negative?t.umod(p):t.clone();for(var n=new c(1),o=new c(0),l=new c(0),f=new c(1),g=0;t.isEven()&&e.isEven();)t.iushrn(1),e.iushrn(1),++g;for(var h=e.clone(),d=t.clone();!t.isZero();){for(var i=0,m=1;0==(t.words[0]&m)&&i<26;++i,m<<=1);if(i>0)for(t.iushrn(i);i-->0;)(n.isOdd()||o.isOdd())&&(n.iadd(h),o.isub(d)),n.iushrn(1),o.iushrn(1);for(var y=0,v=1;0==(e.words[0]&v)&&y<26;++y,v<<=1);if(y>0)for(e.iushrn(y);y-->0;)(l.isOdd()||f.isOdd())&&(l.iadd(h),f.isub(d)),l.iushrn(1),f.iushrn(1);t.cmp(e)>=0?(t.isub(e),n.isub(l),o.isub(f)):(e.isub(t),l.isub(n),f.isub(o));}return{a:l,b:f,gcd:e.iushln(g)};},c.prototype._invmp=function(p){r(0===p.negative),r(!p.isZero());var a=this,b=p.clone();a=0!==a.negative?a.umod(p):a.clone();for(var t,e=new c(1),n=new c(0),o=b.clone();a.cmpn(1)>0&&b.cmpn(1)>0;){for(var i=0,l=1;0==(a.words[0]&l)&&i<26;++i,l<<=1);if(i>0)for(a.iushrn(i);i-->0;)e.isOdd()&&e.iadd(o),e.iushrn(1);for(var f=0,h=1;0==(b.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(b.iushrn(f);f-->0;)n.isOdd()&&n.iadd(o),n.iushrn(1);a.cmp(b)>=0?(a.isub(b),e.isub(n)):(b.isub(a),n.isub(e));}return(t=0===a.cmpn(1)?e:n).cmpn(0)<0&&t.iadd(p),t;},c.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var a=this.clone(),b=t.clone();a.negative=0,b.negative=0;for(var e=0;a.isEven()&&b.isEven();e++)a.iushrn(1),b.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;b.isEven();)b.iushrn(1);var n=a.cmp(b);if(n<0){var r=a;a=b,b=r;}else if(0===n||0===b.cmpn(1))break;a.isub(b);}return b.iushln(e);},c.prototype.invm=function(t){return this.egcd(t).a.umod(t);},c.prototype.isEven=function(){return 0==(1&this.words[0]);},c.prototype.isOdd=function(){return 1==(1&this.words[0]);},c.prototype.andln=function(t){return this.words[0]&t;},c.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,s=(t-e)/26,q=1<<e;if(this.length<=s)return this._expand(s+1),this.words[s]|=q,this;for(var n=q,i=s;0!==n&&i<this.length;i++){var o=0|this.words[i];n=(o+=n)>>>26,o&=67108863,this.words[i]=o;}return 0!==n&&(this.words[i]=n,this.length++),this;},c.prototype.isZero=function(){return 1===this.length&&0===this.words[0];},c.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var o=0|this.words[0];e=o===t?0:o<t?-1:1;}return 0!==this.negative?0|-e:e;},c.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;},c.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;i>=0;i--){var a=0|this.words[i],b=0|t.words[i];if(a!==b){a<b?e=-1:a>b&&(e=1);break;}}return e;},c.prototype.gtn=function(t){return 1===this.cmpn(t);},c.prototype.gt=function(t){return 1===this.cmp(t);},c.prototype.gten=function(t){return this.cmpn(t)>=0;},c.prototype.gte=function(t){return this.cmp(t)>=0;},c.prototype.ltn=function(t){return-1===this.cmpn(t);},c.prototype.lt=function(t){return-1===this.cmp(t);},c.prototype.lten=function(t){return this.cmpn(t)<=0;},c.prototype.lte=function(t){return this.cmp(t)<=0;},c.prototype.eqn=function(t){return 0===this.cmpn(t);},c.prototype.eq=function(t){return 0===this.cmp(t);},c.red=function(t){return new P(t);},c.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t);},c.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this);},c.prototype._forceRed=function(t){return this.red=t,this;},c.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t);},c.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t);},c.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t);},c.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t);},c.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t);},c.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t);},c.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t);},c.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t);},c.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this);},c.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this);},c.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this);},c.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this);},c.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this);},c.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t);};var k={k256:null,p224:null,p192:null,p25519:null};function x(t,p){this.name=t,this.p=new c(p,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp();}function S(){x.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f");}function j(){x.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001");}function N(){x.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff");}function I(){x.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed");}function P(t){if("string"==typeof t){var e=c._prime(t);this.m=e.p,this.prime=e;}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null;}function R(t){P.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new c(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);}x.prototype._tmp=function(){var t=new c(null);return t.words=new Array(Math.ceil(this.n/13)),t;},x.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength();}while(e>this.n);var r=e<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n;},x.prototype.split=function(input,t){input.iushrn(this.n,0,t);},x.prototype.imulK=function(t){return t.imul(this.k);},o(S,x),S.prototype.split=function(input,output){for(var mask=4194303,t=Math.min(input.length,9),i=0;i<t;i++)output.words[i]=input.words[i];if(output.length=t,input.length<=9)return input.words[0]=0,void(input.length=1);var e=input.words[9];for(output.words[output.length++]=e&mask,i=10;i<input.length;i++){var n=0|input.words[i];input.words[i-10]=(n&mask)<<4|e>>>22,e=n;}e>>>=22,input.words[i-10]=e,0===e&&input.length>10?input.length-=10:input.length-=9;},S.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var n=0|t.words[i];e+=977*n,t.words[i]=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;},o(j,x),o(N,x),o(I,x),I.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var n=19*(0|t.words[i])+e,r=67108863&n;n>>>=26,t.words[i]=r,e=n;}return 0!==e&&(t.words[t.length++]=e),t;},c._prime=function(t){if(k[t])return k[t];var e;if("k256"===t)e=new S();else if("p224"===t)e=new j();else if("p192"===t)e=new N();else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new I();}return k[t]=e,e;},P.prototype._verify1=function(a){r(0===a.negative,"red works only with positives"),r(a.red,"red works only with red numbers");},P.prototype._verify2=function(a,b){r(0==(a.negative|b.negative),"red works only with positives"),r(a.red&&a.red===b.red,"red works only with red numbers");},P.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):(m(a,a.umod(this.m)._forceRed(this)),a);},P.prototype.neg=function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this);},P.prototype.add=function(a,b){this._verify2(a,b);var t=a.add(b);return t.cmp(this.m)>=0&&t.isub(this.m),t._forceRed(this);},P.prototype.iadd=function(a,b){this._verify2(a,b);var t=a.iadd(b);return t.cmp(this.m)>=0&&t.isub(this.m),t;},P.prototype.sub=function(a,b){this._verify2(a,b);var t=a.sub(b);return t.cmpn(0)<0&&t.iadd(this.m),t._forceRed(this);},P.prototype.isub=function(a,b){this._verify2(a,b);var t=a.isub(b);return t.cmpn(0)<0&&t.iadd(this.m),t;},P.prototype.shl=function(a,t){return this._verify1(a),this.imod(a.ushln(t));},P.prototype.imul=function(a,b){return this._verify2(a,b),this.imod(a.imul(b));},P.prototype.mul=function(a,b){return this._verify2(a,b),this.imod(a.mul(b));},P.prototype.isqr=function(a){return this.imul(a,a.clone());},P.prototype.sqr=function(a){return this.mul(a,a);},P.prototype.sqrt=function(a){if(a.isZero())return a.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var e=this.m.add(new c(1)).iushrn(2);return this.pow(a,e);}for(var q=this.m.subn(1),s=0;!q.isZero()&&0===q.andln(1);)s++,q.iushrn(1);r(!q.isZero());var n=new c(1).toRed(this),o=n.redNeg(),l=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new c(2*f*f).toRed(this);0!==this.pow(f,l).cmp(o);)f.redIAdd(o);for(var h=this.pow(f,q),d=this.pow(a,q.addn(1).iushrn(1)),m=this.pow(a,q),y=s;0!==m.cmp(n);){for(var v=m,i=0;0!==v.cmp(n);i++)v=v.redSqr();r(i<y);var b=this.pow(h,new c(1).iushln(y-i-1));d=d.redMul(b),h=b.redSqr(),m=m.redMul(h),y=i;}return d;},P.prototype.invm=function(a){var t=a._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t);},P.prototype.pow=function(a,t){if(t.isZero())return new c(1).toRed(this);if(0===t.cmpn(1))return a.clone();var e=new Array(16);e[0]=new c(1).toRed(this),e[1]=a;for(var i=2;i<e.length;i++)e[i]=this.mul(e[i-1],a);var n=e[0],r=0,o=0,l=t.bitLength()%26;for(0===l&&(l=26),i=t.length-1;i>=0;i--){for(var f=t.words[i],h=l-1;h>=0;h--){var d=f>>h&1;n!==e[0]&&(n=this.sqr(n)),0!==d||0!==r?(r<<=1,r|=d,(4===++o||0===i&&0===h)&&(n=this.mul(n,e[r]),o=0,r=0)):o=0;}l=26;}return n;},P.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e;},P.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e;},c.mont=function(t){return new R(t);},o(R,P),R.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift));},R.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e;},R.prototype.imul=function(a,b){if(a.isZero()||b.isZero())return a.words[0]=0,a.length=1,a;var t=a.imul(b),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(e).iushrn(this.shift),n=u;return u.cmp(this.m)>=0?n=u.isub(this.m):u.cmpn(0)<0&&(n=u.iadd(this.m)),n._forceRed(this);},R.prototype.mul=function(a,b){if(a.isZero()||b.isZero())return new c(0)._forceRed(this);var t=a.mul(b),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(e).iushrn(this.shift),n=u;return u.cmp(this.m)>=0?n=u.isub(this.m):u.cmpn(0)<0&&(n=u.iadd(this.m)),n._forceRed(this);},R.prototype.invm=function(a){return this.imod(a._invmp(this.m).mul(this.r2))._forceRed(this);};}(t,this);}).call(this,n(97)(t));},function(t,e,n){"use strict";n.d(e,"a",function(){return w;}),n.d(e,"e",function(){return _;}),n.d(e,"d",function(){return A;}),n.d(e,"b",function(){return E;}),n.d(e,"c",function(){return T;});var r=n(0),o=n(7),c=n(5),l=n(32);const f=new(n(2).b)("address/5.7.0");function h(address){Object(r.l)(address,20)||f.throwArgumentError("invalid address","address",address);const t=(address=address.toLowerCase()).substring(2).split(""),e=new Uint8Array(40);for(let i=0;i<40;i++)e[i]=t[i].charCodeAt(0);const n=Object(r.a)(Object(c.a)(e));for(let i=0;i<40;i+=2)n[i>>1]>>4>=8&&(t[i]=t[i].toUpperCase()),(15&n[i>>1])>=8&&(t[i+1]=t[i+1].toUpperCase());return"0x"+t.join("");}const d={};for(let i=0;i<10;i++)d[String(i)]=String(i);for(let i=0;i<26;i++)d[String.fromCharCode(65+i)]=String(10+i);const m=Math.floor((y=9007199254740991,Math.log10?Math.log10(y):Math.log(y)/Math.LN10));var y;function v(address){let t=(address=(address=address.toUpperCase()).substring(4)+address.substring(0,2)+"00").split("").map(t=>d[t]).join("");for(;t.length>=m;){let e=t.substring(0,m);t=parseInt(e,10)%97+t.substring(e.length);}let e=String(98-parseInt(t,10)%97);for(;e.length<2;)e="0"+e;return e;}function w(address){let t=null;if("string"!=typeof address&&f.throwArgumentError("invalid address","address",address),address.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==address.substring(0,2)&&(address="0x"+address),t=h(address),address.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==address&&f.throwArgumentError("bad address checksum","address",address);else if(address.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(address.substring(2,4)!==v(address)&&f.throwArgumentError("bad icap checksum","address",address),t=Object(o.c)(address.substring(4));t.length<40;)t="0"+t;t=h("0x"+t);}else f.throwArgumentError("invalid address","address",address);return t;}function _(address){try{return w(address),!0;}catch(t){}return!1;}function A(address){let t=Object(o.b)(w(address).substring(2)).toUpperCase();for(;t.length<30;)t="0"+t;return"XE"+v("XE00"+t)+t;}function E(t){let e=null;try{e=w(t.from);}catch(e){f.throwArgumentError("missing from address","transaction",t);}const n=Object(r.o)(Object(r.a)(o.a.from(t.nonce).toHexString()));return w(Object(r.e)(Object(c.a)(Object(l.encode)([e,n])),12));}function T(t,e,n){return 32!==Object(r.d)(e)&&f.throwArgumentError("salt must be 32 bytes","salt",e),32!==Object(r.d)(n)&&f.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",n),w(Object(r.e)(Object(c.a)(Object(r.b)(["0xff",w(t),e,n])),12));}},function(t,e,n){"use strict";n.d(e,"a",function(){return l;});var r=n(160),o=n.n(r),c=n(0);function l(data){return"0x"+o.a.keccak_256(Object(c.a)(data));}},function(t,e,n){"use strict";n.d(e,"b",function(){return c;}),n.d(e,"e",function(){return l;}),n.d(e,"a",function(){return f;}),n.d(e,"c",function(){return h;}),n.d(e,"d",function(){return d;});var r=n(0),o=n(27);function c(t){return"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),Object(r.a)(t);}function l(t,e){for(t=String(t);t.length<e;)t="0"+t;return t;}function f(t){return"string"==typeof t?Object(o.f)(t,o.a.NFKC):Object(r.a)(t);}function h(object,path){let t=object;const e=path.toLowerCase().split("/");for(let i=0;i<e.length;i++){let n=null;for(const r in t)if(r.toLowerCase()===e[i]){n=t[r];break;}if(null===n)return null;t=n;}return t;}function d(t){const e=Object(r.a)(t);e[6]=15&e[6]|64,e[8]=63&e[8]|128;const n=Object(r.i)(e);return[n.substring(2,10),n.substring(10,14),n.substring(14,18),n.substring(18,22),n.substring(22,34)].join("-");}},function(t,e,n){"use strict";n.d(e,"d",function(){return v;}),n.d(e,"a",function(){return _;}),n.d(e,"c",function(){return M;}),n.d(e,"b",function(){return k;});var r=n(161),o=n.n(r),c=n(0),l=n(2),f=n(89),h=o.a.BN;const d=new l.b(f.a),m={},y=9007199254740991;function v(t){return null!=t&&(_.isBigNumber(t)||"number"==typeof t&&t%1==0||"string"==typeof t&&!!t.match(/^-?[0-9]+$/)||Object(c.l)(t)||"bigint"==typeof t||Object(c.j)(t));}let w=!1;class _{constructor(t,e){t!==m&&d.throwError("cannot call constructor directly; use BigNumber.from",l.b.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=e,this._isBigNumber=!0,Object.freeze(this);}fromTwos(t){return E(T(this).fromTwos(t));}toTwos(t){return E(T(this).toTwos(t));}abs(){return"-"===this._hex[0]?_.from(this._hex.substring(1)):this;}add(t){return E(T(this).add(T(t)));}sub(t){return E(T(this).sub(T(t)));}div(t){return _.from(t).isZero()&&O("division-by-zero","div"),E(T(this).div(T(t)));}mul(t){return E(T(this).mul(T(t)));}mod(t){const e=T(t);return e.isNeg()&&O("division-by-zero","mod"),E(T(this).umod(e));}pow(t){const e=T(t);return e.isNeg()&&O("negative-power","pow"),E(T(this).pow(e));}and(t){const e=T(t);return(this.isNegative()||e.isNeg())&&O("unbound-bitwise-result","and"),E(T(this).and(e));}or(t){const e=T(t);return(this.isNegative()||e.isNeg())&&O("unbound-bitwise-result","or"),E(T(this).or(e));}xor(t){const e=T(t);return(this.isNegative()||e.isNeg())&&O("unbound-bitwise-result","xor"),E(T(this).xor(e));}mask(t){return(this.isNegative()||t<0)&&O("negative-width","mask"),E(T(this).maskn(t));}shl(t){return(this.isNegative()||t<0)&&O("negative-width","shl"),E(T(this).shln(t));}shr(t){return(this.isNegative()||t<0)&&O("negative-width","shr"),E(T(this).shrn(t));}eq(t){return T(this).eq(T(t));}lt(t){return T(this).lt(T(t));}lte(t){return T(this).lte(T(t));}gt(t){return T(this).gt(T(t));}gte(t){return T(this).gte(T(t));}isNegative(){return"-"===this._hex[0];}isZero(){return T(this).isZero();}toNumber(){try{return T(this).toNumber();}catch(t){O("overflow","toNumber",this.toString());}return null;}toBigInt(){try{return BigInt(this.toString());}catch(t){}return d.throwError("this platform does not support BigInt",l.b.errors.UNSUPPORTED_OPERATION,{value:this.toString()});}toString(){return arguments.length>0&&(10===arguments[0]?w||(w=!0,d.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?d.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",l.b.errors.UNEXPECTED_ARGUMENT,{}):d.throwError("BigNumber.toString does not accept parameters",l.b.errors.UNEXPECTED_ARGUMENT,{})),T(this).toString(10);}toHexString(){return this._hex;}toJSON(t){return{type:"BigNumber",hex:this.toHexString()};}static from(t){if(t instanceof _)return t;if("string"==typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new _(m,A(t)):t.match(/^-?[0-9]+$/)?new _(m,A(new h(t))):d.throwArgumentError("invalid BigNumber string","value",t);if("number"==typeof t)return t%1&&O("underflow","BigNumber.from",t),(t>=y||t<=-y)&&O("overflow","BigNumber.from",t),_.from(String(t));const e=t;if("bigint"==typeof e)return _.from(e.toString());if(Object(c.j)(e))return _.from(Object(c.i)(e));if(e)if(e.toHexString){const t=e.toHexString();if("string"==typeof t)return _.from(t);}else{let t=e._hex;if(null==t&&"BigNumber"===e.type&&(t=e.hex),"string"==typeof t&&(Object(c.l)(t)||"-"===t[0]&&Object(c.l)(t.substring(1))))return _.from(t);}return d.throwArgumentError("invalid BigNumber value","value",t);}static isBigNumber(t){return!(!t||!t._isBigNumber);}}function A(t){if("string"!=typeof t)return A(t.toString(16));if("-"===t[0])return"-"===(t=t.substring(1))[0]&&d.throwArgumentError("invalid hex","value",t),"0x00"===(t=A(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 E(t){return _.from(A(t));}function T(t){const e=_.from(t).toHexString();return"-"===e[0]?new h("-"+e.substring(3),16):new h(e.substring(2),16);}function O(t,e,n){const r={fault:t,operation:e};return null!=n&&(r.value=n),d.throwError(t,l.b.errors.NUMERIC_FAULT,r);}function M(t){return new h(t,36).toString(16);}function k(t){return new h(t,16).toString(36);}},function(t,e,n){"use strict";n.d(e,"a",function(){return o;});var r=n(92);function o(t,e,n){return(e=Object(r.a)(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t;}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");}n.d(e,"a",function(){return r;});},function(t,e,n){"use strict";n.d(e,"a",function(){return c;});var r=n(92);function o(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Object(r.a)(n.key),n);}}function c(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;}},function(t,e,n){"use strict";n.d(e,"a",function(){return w;}),n.d(e,"c",function(){return O;}),n.d(e,"e",function(){return M;}),n.d(e,"b",function(){return S;}),n.d(e,"f",function(){return P;}),n.d(e,"d",function(){return C;});var r=n(4),o=n(7),c=n(0),l=n(41),f=n(5),h=n(1),d=n(32),m=n(28),y=n(2);const v=new y.b("transactions/5.7.0");var w;function _(t){return"0x"===t?null:Object(r.a)(t);}function A(t){return"0x"===t?l.h:o.a.from(t);}!function(t){t[t.legacy=0]="legacy",t[t.eip2930=1]="eip2930",t[t.eip1559=2]="eip1559";}(w||(w={}));const E=[{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"}],T={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function O(t){const e=Object(m.b)(t);return Object(r.a)(Object(c.e)(Object(f.a)(Object(c.e)(e,1)),12));}function M(t,e){return O(Object(m.c)(Object(c.a)(t),e));}function k(t,e){const n=Object(c.o)(o.a.from(t).toHexString());return n.length>32&&v.throwArgumentError("invalid length for "+e,"transaction:"+e,t),n;}function x(t,e){return{address:Object(r.a)(t),storageKeys:(e||[]).map((e,n)=>(32!==Object(c.d)(e)&&v.throwArgumentError("invalid access list storageKey",`accessList[${t}:${n}]`,e),e.toLowerCase()))};}function S(t){if(Array.isArray(t))return t.map((t,e)=>Array.isArray(t)?(t.length>2&&v.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${e}]`,t),x(t[0],t[1])):x(t.address,t.storageKeys));const e=Object.keys(t).map(e=>{const n=t[e].reduce((t,e)=>(t[e]=!0,t),{});return x(e,Object.keys(n).sort());});return e.sort((a,b)=>a.address.localeCompare(b.address)),e;}function j(t){return S(t).map(t=>[t.address,t.storageKeys]);}function N(t,e){if(null!=t.gasPrice){const e=o.a.from(t.gasPrice),n=o.a.from(t.maxFeePerGas||0);e.eq(n)||v.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:e,maxFeePerGas:n});}const n=[k(t.chainId||0,"chainId"),k(t.nonce||0,"nonce"),k(t.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),k(t.maxFeePerGas||0,"maxFeePerGas"),k(t.gasLimit||0,"gasLimit"),null!=t.to?Object(r.a)(t.to):"0x",k(t.value||0,"value"),t.data||"0x",j(t.accessList||[])];if(e){const t=Object(c.n)(e);n.push(k(t.recoveryParam,"recoveryParam")),n.push(Object(c.o)(t.r)),n.push(Object(c.o)(t.s));}return Object(c.c)(["0x02",d.encode(n)]);}function I(t,e){const n=[k(t.chainId||0,"chainId"),k(t.nonce||0,"nonce"),k(t.gasPrice||0,"gasPrice"),k(t.gasLimit||0,"gasLimit"),null!=t.to?Object(r.a)(t.to):"0x",k(t.value||0,"value"),t.data||"0x",j(t.accessList||[])];if(e){const t=Object(c.n)(e);n.push(k(t.recoveryParam,"recoveryParam")),n.push(Object(c.o)(t.r)),n.push(Object(c.o)(t.s));}return Object(c.c)(["0x01",d.encode(n)]);}function P(t,e){if(null==t.type||0===t.type)return null!=t.accessList&&v.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",t),function(t,e){Object(h.b)(t,T);const n=[];E.forEach(function(e){let r=t[e.name]||[];const o={};e.numeric&&(o.hexPad="left"),r=Object(c.a)(Object(c.i)(r,o)),e.length&&r.length!==e.length&&r.length>0&&v.throwArgumentError("invalid length for "+e.name,"transaction:"+e.name,r),e.maxLength&&(r=Object(c.o)(r),r.length>e.maxLength&&v.throwArgumentError("invalid length for "+e.name,"transaction:"+e.name,r)),n.push(Object(c.i)(r));});let r=0;if(null!=t.chainId?(r=t.chainId,"number"!=typeof r&&v.throwArgumentError("invalid transaction.chainId","transaction",t)):e&&!Object(c.k)(e)&&e.v>28&&(r=Math.floor((e.v-35)/2)),0!==r&&(n.push(Object(c.i)(r)),n.push("0x"),n.push("0x")),!e)return d.encode(n);const o=Object(c.n)(e);let l=27+o.recoveryParam;return 0!==r?(n.pop(),n.pop(),n.pop(),l+=2*r+8,o.v>28&&o.v!==l&&v.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e)):o.v!==l&&v.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e),n.push(Object(c.i)(l)),n.push(Object(c.o)(Object(c.a)(o.r))),n.push(Object(c.o)(Object(c.a)(o.s))),d.encode(n);}(t,e);switch(t.type){case 1:return I(t,e);case 2:return N(t,e);}return v.throwError(`unsupported transaction type: ${t.type}`,y.b.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:t.type});}function R(t,e,n){try{const n=A(e[0]).toNumber();if(0!==n&&1!==n)throw new Error("bad recid");t.v=n;}catch(t){v.throwArgumentError("invalid v for transaction type: 1","v",e[0]);}t.r=Object(c.h)(e[1],32),t.s=Object(c.h)(e[2],32);try{const e=Object(f.a)(n(t));t.from=M(e,{r:t.r,s:t.s,recoveryParam:t.v});}catch(t){}}function C(t){const e=Object(c.a)(t);if(e[0]>127)return function(t){const e=d.decode(t);9!==e.length&&6!==e.length&&v.throwArgumentError("invalid raw transaction","rawTransaction",t);const n={nonce:A(e[0]).toNumber(),gasPrice:A(e[1]),gasLimit:A(e[2]),to:_(e[3]),value:A(e[4]),data:e[5],chainId:0};if(6===e.length)return n;try{n.v=o.a.from(e[6]).toNumber();}catch(t){return n;}if(n.r=Object(c.h)(e[7],32),n.s=Object(c.h)(e[8],32),o.a.from(n.r).isZero()&&o.a.from(n.s).isZero())n.chainId=n.v,n.v=0;else{n.chainId=Math.floor((n.v-35)/2),n.chainId<0&&(n.chainId=0);let r=n.v-27;const o=e.slice(0,6);0!==n.chainId&&(o.push(Object(c.i)(n.chainId)),o.push("0x"),o.push("0x"),r-=2*n.chainId+8);const l=Object(f.a)(d.encode(o));try{n.from=M(l,{r:Object(c.i)(n.r),s:Object(c.i)(n.s),recoveryParam:r});}catch(t){}n.hash=Object(f.a)(t);}return n.type=null,n;}(e);switch(e[0]){case 1:return function(t){const e=d.decode(t.slice(1));8!==e.length&&11!==e.length&&v.throwArgumentError("invalid component count for transaction type: 1","payload",Object(c.i)(t));const n={type:1,chainId:A(e[0]).toNumber(),nonce:A(e[1]).toNumber(),gasPrice:A(e[2]),gasLimit:A(e[3]),to:_(e[4]),value:A(e[5]),data:e[6],accessList:S(e[7])};return 8===e.length||(n.hash=Object(f.a)(t),R(n,e.slice(8),I)),n;}(e);case 2:return function(t){const e=d.decode(t.slice(1));9!==e.length&&12!==e.length&&v.throwArgumentError("invalid component count for transaction type: 2","payload",Object(c.i)(t));const n=A(e[2]),r=A(e[3]),o={type:2,chainId:A(e[0]).toNumber(),nonce:A(e[1]).toNumber(),maxPriorityFeePerGas:n,maxFeePerGas:r,gasPrice:null,gasLimit:A(e[4]),to:_(e[5]),value:A(e[6]),data:e[7],accessList:S(e[8])};return 9===e.length||(o.hash=Object(f.a)(t),R(o,e.slice(9),N)),o;}(e);}return v.throwError(`unsupported transaction type: ${e[0]}`,y.b.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:e[0]});}},function(t,e,n){var r=n(68),o=Function.prototype,c=o.call,l=r&&o.bind.bind(c,c);t.exports=r?l:function(t){return function(){return c.apply(t,arguments);};};},function(t,e,n){"use strict";n.d(e,"d",function(){return d;}),n.d(e,"a",function(){return m;}),n.d(e,"c",function(){return y;}),n.d(e,"b",function(){return v;});var r=n(0),o=n(7),c=n(1),l=n(2),f=n(40);const h=new l.b(f.a);function d(t){const e=[],n=function(path,object){if(Array.isArray(object))for(let t in object){const r=path.slice();r.push(t);try{n(r,object[t]);}catch(t){e.push({path:r,error:t});}}};return n([],t),e;}class m{constructor(t,e,n,r){this.name=t,this.type=e,this.localName=n,this.dynamic=r;}_throwError(t,e){h.throwArgumentError(t,this.localName,e);}}class y{constructor(t){Object(c.d)(this,"wordSize",t||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(t);}get data(){return Object(r.c)(this._data);}get length(){return this._dataLength;}_writeData(data){return this._data.push(data),this._dataLength+=data.length,data.length;}appendWriter(t){return this._writeData(Object(r.b)(t._data));}writeBytes(t){let e=Object(r.a)(t);const n=e.length%this.wordSize;return n&&(e=Object(r.b)([e,this._padding.slice(n)])),this._writeData(e);}_getValue(t){let e=Object(r.a)(o.a.from(t));return e.length>this.wordSize&&h.throwError("value out-of-bounds",l.b.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:e.length}),e.length%this.wordSize&&(e=Object(r.b)([this._padding.slice(e.length%this.wordSize),e])),e;}writeValue(t){return this._writeData(this._getValue(t));}writeUpdatableValue(){const t=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,e=>{this._data[t]=this._getValue(e);};}}class v{constructor(data,t,e,n){Object(c.d)(this,"_data",Object(r.a)(data)),Object(c.d)(this,"wordSize",t||32),Object(c.d)(this,"_coerceFunc",e),Object(c.d)(this,"allowLoose",n),this._offset=0;}get data(){return Object(r.i)(this._data);}get consumed(){return this._offset;}static coerce(t,e){let n=t.match("^u?int([0-9]+)$");return n&&parseInt(n[1])<=48&&(e=e.toNumber()),e;}coerce(t,e){return this._coerceFunc?this._coerceFunc(t,e):v.coerce(t,e);}_peekBytes(t,e,n){let r=Math.ceil(e/this.wordSize)*this.wordSize;return this._offset+r>this._data.length&&(this.allowLoose&&n&&this._offset+e<=this._data.length?r=e:h.throwError("data out-of-bounds",l.b.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+r})),this._data.slice(this._offset,this._offset+r);}subReader(t){return new v(this._data.slice(this._offset+t),this.wordSize,this._coerceFunc,this.allowLoose);}readBytes(t,e){let n=this._peekBytes(0,t,!!e);return this._offset+=n.length,n.slice(0,t);}readValue(){return o.a.from(this.readBytes(this.wordSize));}}},function(t,e){t.exports=function(t){try{return!!t();}catch(t){return!0;}};},function(t,e,n){"use strict";n.d(e,"a",function(){return _;}),n.d(e,"b",function(){return A;}),n.d(e,"c",function(){return E;});var r=n(98),o=n(0),c=n(1),l=n(27),f=n(2);var h=function(t,e,n,r){return new(n||(n=Promise))(function(o,c){function l(t){try{h(r.next(t));}catch(t){c(t);}}function f(t){try{h(r.throw(t));}catch(t){c(t);}}function h(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e);})).then(l,f);}h((r=r.apply(t,e||[])).next());});};function d(t,e){return h(this,void 0,void 0,function*(){null==e&&(e={});const n={method:e.method||"GET",headers:e.headers||{},body:e.body||void 0};if(!0!==e.skipFetchSetup&&(n.mode="cors",n.cache="no-cache",n.credentials="same-origin",n.redirect="follow",n.referrer="client"),null!=e.fetchOptions){const t=e.fetchOptions;t.mode&&(n.mode=t.mode),t.cache&&(n.cache=t.cache),t.credentials&&(n.credentials=t.credentials),t.redirect&&(n.redirect=t.redirect),t.referrer&&(n.referrer=t.referrer);}const r=yield fetch(t,n),body=yield r.arrayBuffer(),c={};return r.headers.forEach?r.headers.forEach((t,e)=>{c[e.toLowerCase()]=t;}):r.headers.keys().forEach(t=>{c[t.toLowerCase()]=r.headers.get(t);}),{headers:c,statusCode:r.status,statusMessage:r.statusText,body:Object(o.a)(new Uint8Array(body))};});}var m=function(t,e,n,r){return new(n||(n=Promise))(function(o,c){function l(t){try{h(r.next(t));}catch(t){c(t);}}function f(t){try{h(r.throw(t));}catch(t){c(t);}}function h(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e);})).then(l,f);}h((r=r.apply(t,e||[])).next());});};const y=new f.b("web/5.7.1");function v(t){return new Promise(e=>{setTimeout(e,t);});}function w(t,e){if(null==t)return null;if("string"==typeof t)return t;if(Object(o.k)(t)){if(e&&("text"===e.split("/")[0]||"application/json"===e.split(";")[0].trim()))try{return Object(l.h)(t);}catch(t){}return Object(o.i)(t);}return t;}function _(t,body,e){const n="object"==typeof t&&null!=t.throttleLimit?t.throttleLimit:12;y.assertArgument(n>0&&n%1==0,"invalid connection throttle limit","connection.throttleLimit",n);const o="object"==typeof t?t.throttleCallback:null,h="object"==typeof t&&"number"==typeof t.throttleSlotInterval?t.throttleSlotInterval:100;y.assertArgument(h>0&&h%1==0,"invalid connection throttle slot interval","connection.throttleSlotInterval",h);const _="object"==typeof t&&!!t.errorPassThrough,A={};let E=null;const T={method:"GET"};let O=!1,M=12e4;if("string"==typeof t)E=t;else if("object"==typeof t){if(null!=t&&null!=t.url||y.throwArgumentError("missing URL","connection.url",t),E=t.url,"number"==typeof t.timeout&&t.timeout>0&&(M=t.timeout),t.headers)for(const e in t.headers)A[e.toLowerCase()]={key:e,value:String(t.headers[e])},["if-none-match","if-modified-since"].indexOf(e.toLowerCase())>=0&&(O=!0);if(T.allowGzip=!!t.allowGzip,null!=t.user&&null!=t.password){"https:"!==E.substring(0,6)&&!0!==t.allowInsecureAuthentication&&y.throwError("basic authentication requires a secure https url",f.b.errors.INVALID_ARGUMENT,{argument:"url",url:E,user:t.user,password:"[REDACTED]"});const e=t.user+":"+t.password;A.authorization={key:"Authorization",value:"Basic "+Object(r.b)(Object(l.f)(e))};}null!=t.skipFetchSetup&&(T.skipFetchSetup=!!t.skipFetchSetup),null!=t.fetchOptions&&(T.fetchOptions=Object(c.g)(t.fetchOptions));}const k=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),x=E?E.match(k):null;if(x)try{const t={statusCode:200,statusMessage:"OK",headers:{"content-type":x[1]||"text/plain"},body:x[2]?Object(r.a)(x[3]):(S=x[3],Object(l.f)(S.replace(/%([0-9a-f][0-9a-f])/gi,(t,code)=>String.fromCharCode(parseInt(code,16)))))};let n=t.body;return e&&(n=e(t.body,t)),Promise.resolve(n);}catch(t){y.throwError("processing response error",f.b.errors.SERVER_ERROR,{body:w(x[1],x[2]),error:t,requestBody:null,requestMethod:"GET",url:E});}var S;body&&(T.method="POST",T.body=body,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(body.length)}));const j={};Object.keys(A).forEach(t=>{const header=A[t];j[header.key]=header.value;}),T.headers=j;const N=function(){let t=null;return{promise:new Promise(function(e,n){M&&(t=setTimeout(()=>{null!=t&&(t=null,n(y.makeError("timeout",f.b.errors.TIMEOUT,{requestBody:w(T.body,j["content-type"]),requestMethod:T.method,timeout:M,url:E})));},M));}),cancel:function(){null!=t&&(clearTimeout(t),t=null);}};}(),I=function(){return m(this,void 0,void 0,function*(){for(let t=0;t<n;t++){let r=null;try{if(r=yield d(E,T),t<n)if(301===r.statusCode||302===r.statusCode){const t=r.headers.location||"";if("GET"===T.method&&t.match(/^https:/)){E=r.headers.location;continue;}}else if(429===r.statusCode){let e=!0;if(o&&(e=yield o(t,E)),e){let e=0;const n=r.headers["retry-after"];e="string"==typeof n&&n.match(/^[1-9][0-9]*$/)?1e3*parseInt(n):h*parseInt(String(Math.random()*Math.pow(2,t))),yield v(e);continue;}}}catch(t){r=t.response,null==r&&(N.cancel(),y.throwError("missing response",f.b.errors.SERVER_ERROR,{requestBody:w(T.body,j["content-type"]),requestMethod:T.method,serverError:t,url:E}));}let body=r.body;if(O&&304===r.statusCode?body=null:!_&&(r.statusCode<200||r.statusCode>=300)&&(N.cancel(),y.throwError("bad response",f.b.errors.SERVER_ERROR,{status:r.statusCode,headers:r.headers,body:w(body,r.headers?r.headers["content-type"]:null),requestBody:w(T.body,j["content-type"]),requestMethod:T.method,url:E})),e)try{const t=yield e(body,r);return N.cancel(),t;}catch(e){if(e.throttleRetry&&t<n){let e=!0;if(o&&(e=yield o(t,E)),e){const e=h*parseInt(String(Math.random()*Math.pow(2,t)));yield v(e);continue;}}N.cancel(),y.throwError("processing response error",f.b.errors.SERVER_ERROR,{body:w(body,r.headers?r.headers["content-type"]:null),error:e,requestBody:w(T.body,j["content-type"]),requestMethod:T.method,url:E});}return N.cancel(),body;}return y.throwError("failed response",f.b.errors.SERVER_ERROR,{requestBody:w(T.body,j["content-type"]),requestMethod:T.method,url:E});});}();return Promise.race([N.promise,I]);}function A(t,e,n){let body=null;if(null!=e){body=Object(l.f)(e);const n="string"==typeof t?{url:t}:Object(c.g)(t);if(n.headers){0!==Object.keys(n.headers).filter(t=>"content-type"===t.toLowerCase()).length||(n.headers=Object(c.g)(n.headers),n.headers["content-type"]="application/json");}else n.headers={"content-type":"application/json"};t=n;}return _(t,body,(t,e)=>{let r=null;if(null!=t)try{r=JSON.parse(Object(l.h)(t));}catch(e){y.throwError("invalid JSON",f.b.errors.SERVER_ERROR,{body:t,error:e});}return n&&(r=n(r,e)),r;});}function E(t,e){return e||(e={}),null==(e=Object(c.g)(e)).floor&&(e.floor=0),null==e.ceiling&&(e.ceiling=1e4),null==e.interval&&(e.interval=250),new Promise(function(n,r){let o=null,c=!1;const l=()=>!c&&(c=!0,o&&clearTimeout(o),!0);e.timeout&&(o=setTimeout(()=>{l()&&r(new Error("timeout"));},e.timeout));const f=e.retryLimit;let h=0;!function o(){return t().then(function(t){if(void 0!==t)l()&&n(t);else if(e.oncePoll)e.oncePoll.once("poll",o);else if(e.onceBlock)e.onceBlock.once("block",o);else if(!c){if(h++,h>f)return void(l()&&r(new Error("retry limit reached")));let t=e.interval*parseInt(String(Math.random()*Math.pow(2,h)));t<e.floor&&(t=e.floor),t>e.ceiling&&(t=e.ceiling),setTimeout(o,t);}return null;},function(t){l()&&r(t);});}();});}},function(t,e,n){"use strict";n.d(e,"b",function(){return j;}),n.d(e,"a",function(){return N;}),n.d(e,"g",function(){return I;}),n.d(e,"f",function(){return P;}),n.d(e,"c",function(){return R;}),n.d(e,"e",function(){return C;}),n.d(e,"d",function(){return B;});var r=n(43),o=n(0),c=n(7),l=n(27),f=n(256),h=n(1),d=n(28),m=n(165),y=n(162),v=n(11),w=n(255);const _=new(n(2).b)("hdnode/5.7.0"),A=c.a.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),E=Object(l.f)("Bitcoin seed"),T=2147483648;function O(t){return(1<<t)-1<<8-t;}function M(t){return Object(o.h)(Object(o.i)(t),32);}function k(data){return r.a.encode(Object(o.b)([data,Object(o.e)(Object(m.c)(Object(m.c)(data)),0,4)]));}function x(t){if(null==t)return w.a.en;if("string"==typeof t){const e=w.a[t];return null==e&&_.throwArgumentError("unknown locale","wordlist",t),e;}return t;}const S={},j="m/44'/60'/0'/0/0";class N{constructor(t,e,n,r,c,l,f,y){if(t!==S)throw new Error("HDNode constructor cannot be called directly");if(e){const t=new d.a(e);Object(h.d)(this,"privateKey",t.privateKey),Object(h.d)(this,"publicKey",t.compressedPublicKey);}else Object(h.d)(this,"privateKey",null),Object(h.d)(this,"publicKey",Object(o.i)(n));Object(h.d)(this,"parentFingerprint",r),Object(h.d)(this,"fingerprint",Object(o.e)(Object(m.b)(Object(m.c)(this.publicKey)),0,4)),Object(h.d)(this,"address",Object(v.c)(this.publicKey)),Object(h.d)(this,"chainCode",c),Object(h.d)(this,"index",l),Object(h.d)(this,"depth",f),null==y?(Object(h.d)(this,"mnemonic",null),Object(h.d)(this,"path",null)):"string"==typeof y?(Object(h.d)(this,"mnemonic",null),Object(h.d)(this,"path",y)):(Object(h.d)(this,"mnemonic",y),Object(h.d)(this,"path",y.path));}get extendedKey(){if(this.depth>=256)throw new Error("Depth too large!");return k(Object(o.b)([null!=this.privateKey?"0x0488ADE4":"0x0488B21E",Object(o.i)(this.depth),this.parentFingerprint,Object(o.h)(Object(o.i)(this.index),4),this.chainCode,null!=this.privateKey?Object(o.b)(["0x00",this.privateKey]):this.publicKey]));}neuter(){return new N(S,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path);}_derive(t){if(t>4294967295)throw new Error("invalid index - "+String(t));let path=this.path;path&&(path+="/"+(t&~T));const data=new Uint8Array(37);if(t&T){if(!this.privateKey)throw new Error("cannot derive child of neutered node");data.set(Object(o.a)(this.privateKey),1),path&&(path+="'");}else data.set(Object(o.a)(this.publicKey));for(let i=24;i>=0;i-=8)data[33+(i>>3)]=t>>24-i&255;const e=Object(o.a)(Object(m.a)(y.a.sha512,this.chainCode,data)),n=e.slice(0,32),r=e.slice(32);let l=null,f=null;if(this.privateKey)l=M(c.a.from(n).add(this.privateKey).mod(A));else{f=new d.a(Object(o.i)(n))._addPoint(this.publicKey);}let h=path;const v=this.mnemonic;return v&&(h=Object.freeze({phrase:v.phrase,path:path,locale:v.locale||"en"})),new N(S,l,f,this.fingerprint,M(r),t,this.depth+1,h);}derivePath(path){const t=path.split("/");if(0===t.length||"m"===t[0]&&0!==this.depth)throw new Error("invalid path - "+path);"m"===t[0]&&t.shift();let e=this;for(let i=0;i<t.length;i++){const component=t[i];if(component.match(/^[0-9]+'$/)){const t=parseInt(component.substring(0,component.length-1));if(t>=T)throw new Error("invalid path index - "+component);e=e._derive(T+t);}else{if(!component.match(/^[0-9]+$/))throw new Error("invalid path component - "+component);{const t=parseInt(component);if(t>=T)throw new Error("invalid path index - "+component);e=e._derive(t);}}}return e;}static _fromSeed(t,e){const n=Object(o.a)(t);if(n.length<16||n.length>64)throw new Error("invalid seed");const r=Object(o.a)(Object(m.a)(y.a.sha512,E,n));return new N(S,M(r.slice(0,32)),null,"0x00000000",M(r.slice(32)),0,0,e);}static fromMnemonic(t,e,n){return t=R(P(t,n=x(n)),n),N._fromSeed(I(t,e),{phrase:t,path:"m",locale:n.locale});}static fromSeed(t){return N._fromSeed(t,null);}static fromExtendedKey(t){const e=r.a.decode(t);82===e.length&&k(e.slice(0,78))===t||_.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");const n=e[4],c=Object(o.i)(e.slice(5,9)),l=parseInt(Object(o.i)(e.slice(9,13)).substring(2),16),f=Object(o.i)(e.slice(13,45)),h=e.slice(45,78);switch(Object(o.i)(e.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new N(S,null,Object(o.i)(h),c,f,l,n,null);case"0x0488ade4":case"0x04358394 ":if(0!==h[0])break;return new N(S,Object(o.i)(h.slice(1)),null,c,f,l,n,null);}return _.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");}}function I(t,e){e||(e="");const n=Object(l.f)("mnemonic"+e,l.a.NFKD);return Object(f.a)(Object(l.f)(t,l.a.NFKD),n,2048,64,"sha512");}function P(t,e){e=x(e),_.checkNormalize();const n=e.split(t);if(n.length%3!=0)throw new Error("invalid mnemonic");const r=Object(o.a)(new Uint8Array(Math.ceil(11*n.length/8)));let c=0;for(let i=0;i<n.length;i++){let t=e.getWordIndex(n[i].normalize("NFKD"));if(-1===t)throw new Error("invalid mnemonic");for(let e=0;e<11;e++)t&1<<10-e&&(r[c>>3]|=1<<7-c%8),c++;}const l=32*n.length/3,f=O(n.length/3);if((Object(o.a)(Object(m.c)(r.slice(0,l/8)))[0]&f)!==(r[r.length-1]&f))throw new Error("invalid checksum");return Object(o.i)(r.slice(0,l/8));}function R(t,e){if(e=x(e),(t=Object(o.a)(t)).length%4!=0||t.length<16||t.length>32)throw new Error("invalid entropy");const n=[0];let r=11;for(let i=0;i<t.length;i++)r>8?(n[n.length-1]<<=8,n[n.length-1]|=t[i],r-=8):(n[n.length-1]<<=r,n[n.length-1]|=t[i]>>8-r,n.push(t[i]&(1<<8-r)-1),r+=3);const c=t.length/4,l=Object(o.a)(Object(m.c)(t))[0]&O(c);return n[n.length-1]<<=c,n[n.length-1]|=l>>8-c,e.join(n.map(t=>e.getWord(t)));}function C(t,e){try{return P(t,e),!0;}catch(t){}return!1;}function B(t){return("number"!=typeof t||t<0||t>=T||t%1)&&_.throwArgumentError("invalid account index","index",t),`m/44'/60'/${t}'/0/0`;}},function(t,e,n){var r=n(133),o=r.all;t.exports=r.IS_HTMLDDA?function(t){return"function"==typeof t||t===o;}:function(t){return"function"==typeof t;};},function(t,e,n){"use strict";function r(t,e,n,r,o,c,l){try{var f=t[c](l),h=f.value;}catch(t){return void n(t);}f.done?e(h):Promise.resolve(h).then(r,o);}function o(t){return function(){var e=this,n=arguments;return new Promise(function(o,c){var l=t.apply(e,n);function f(t){r(l,o,c,f,h,"next",t);}function h(t){r(l,o,c,f,h,"throw",t);}f(void 0);});};}n.d(e,"a",function(){return o;});},function(t,e,n){var r=n(22),o=n(58).f,c=n(79),l=n(57),f=n(103),h=n(196),d=n(145);t.exports=function(t,source){var e,n,m,y,v,w=t.target,_=t.global,A=t.stat;if(e=_?r:A?r[w]||f(w,{}):(r[w]||{}).prototype)for(n in source){if(y=source[n],m=t.dontCallGetSet?(v=o(e,n))&&v.value:e[n],!d(_?n:w+(A?".":"#")+n,t.forced)&&void 0!==m){if(typeof y==typeof m)continue;h(y,m);}(t.sham||m&&m.sham)&&c(y,"sham",!0),l(e,n,y,t);}};},,function(t,e,n){var r=n(22),o=n(66),c=n(25),l=n(105),f=n(56),h=n(132),d=r.Symbol,m=o("wks"),y=h?d.for||d:d&&d.withoutSetter||l;t.exports=function(t){return c(m,t)||(m[t]=f&&c(d,t)?d[t]:y("Symbol."+t)),m[t];};},function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t;};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this;}()||this||Function("return this")();}).call(this,n(47));},function(t,e,n){"use strict";n.r(e);var r=n(45);n.d(e,"ethers",function(){return r;});var o=n(31);n.d(e,"Signer",function(){return o.a;});var c=n(59);n.d(e,"Wallet",function(){return c.a;}),n.d(e,"VoidSigner",function(){return o.b;});var l=n(76);n.d(e,"getDefaultProvider",function(){return l.getDefaultProvider;}),n.d(e,"providers",function(){return r.providers;});var f=n(51);n.d(e,"BaseContract",function(){return f.a;}),n.d(e,"Contract",function(){return f.b;}),n.d(e,"ContractFactory",function(){return f.c;});var h=n(7);n.d(e,"BigNumber",function(){return h.a;});var d=n(182);n.d(e,"FixedNumber",function(){return d.a;}),n.d(e,"constants",function(){return r.constants;});var m=n(2);n.d(e,"errors",function(){return m.a;}),n.d(e,"logger",function(){return r.logger;}),n.d(e,"utils",function(){return r.utils;});var y=n(255);n.d(e,"wordlists",function(){return y.a;});var v=n(88);n.d(e,"version",function(){return v.a;});var w=n(77);n.d(e,"Wordlist",function(){return w.a;});try{const t=window;null==t._ethers&&(t._ethers=r);}catch(t){}},function(t,e,n){var r=e;r.utils=n(37),r.common=n(64),r.sha=n(172),r.ripemd=n(176),r.hmac=n(177),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160;},function(t,e,n){var r=n(12),o=n(48),c=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return c(o(t),e);};},function(t,e,n){var r=n(14);t.exports=!r(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7;}})[1];});},function(t,e,n){"use strict";n.d(e,"a",function(){return c;}),n.d(e,"c",function(){return l;}),n.d(e,"b",function(){return h;}),n.d(e,"f",function(){return m;}),n.d(e,"d",function(){return v;}),n.d(e,"e",function(){return w;}),n.d(e,"h",function(){return _;}),n.d(e,"g",function(){return A;});var r=n(0);const o=new(n(2).b)("strings/5.7.0");var c,l;function f(t,e,n,output,r){if(t===l.BAD_PREFIX||t===l.UNEXPECTED_CONTINUE){let i=0;for(let t=e+1;t<n.length&&n[t]>>6==2;t++)i++;return i;}return t===l.OVERRUN?n.length-e-1:0;}!function(t){t.current="",t.NFC="NFC",t.NFD="NFD",t.NFKC="NFKC",t.NFKD="NFKD";}(c||(c={})),function(t){t.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";}(l||(l={}));const h=Object.freeze({error:function(t,e,n,output,r){return o.throwArgumentError(`invalid codepoint at offset ${e}; ${t}`,"bytes",n);},ignore:f,replace:function(t,e,n,output,r){return t===l.OVERLONG?(output.push(r),0):(output.push(65533),f(t,e,n));}});function d(t,e){null==e&&(e=h.error),t=Object(r.a)(t);const n=[];let i=0;for(;i<t.length;){const r=t[i++];if(r>>7==0){n.push(r);continue;}let o=null,c=null;if(192==(224&r))o=1,c=127;else if(224==(240&r))o=2,c=2047;else{if(240!=(248&r)){i+=e(128==(192&r)?l.UNEXPECTED_CONTINUE:l.BAD_PREFIX,i-1,t,n);continue;}o=3,c=65535;}if(i-1+o>=t.length){i+=e(l.OVERRUN,i-1,t,n);continue;}let f=r&(1<<8-o-1)-1;for(let r=0;r<o;r++){let r=t[i];if(128!=(192&r)){i+=e(l.MISSING_CONTINUE,i,t,n),f=null;break;}f=f<<6|63&r,i++;}null!==f&&(f>1114111?i+=e(l.OUT_OF_RANGE,i-1-o,t,n,f):f>=55296&&f<=57343?i+=e(l.UTF16_SURROGATE,i-1-o,t,n,f):f<=c?i+=e(l.OVERLONG,i-1-o,t,n,f):n.push(f));}return n;}function m(t,form=c.current){form!=c.current&&(o.checkNormalize(),t=t.normalize(form));let e=[];for(let i=0;i<t.length;i++){const n=t.charCodeAt(i);if(n<128)e.push(n);else if(n<2048)e.push(n>>6|192),e.push(63&n|128);else if(55296==(64512&n)){i++;const r=t.charCodeAt(i);if(i>=t.length||56320!=(64512&r))throw new Error("invalid utf-8 string");const o=65536+((1023&n)<<10)+(1023&r);e.push(o>>18|240),e.push(o>>12&63|128),e.push(o>>6&63|128),e.push(63&o|128);}else e.push(n>>12|224),e.push(n>>6&63|128),e.push(63&n|128);}return Object(r.a)(e);}function y(t){const e="0000"+t.toString(16);return"\\u"+e.substring(e.length-4);}function v(t,e){return'"'+d(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?y(t):y(55296+((t-=65536)>>10&1023))+y(56320+(1023&t));}).join("")+'"';}function w(t){return t.map(t=>t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10&1023),56320+(1023&t)))).join("");}function _(t,e){return w(d(t,e));}function A(t,form=c.current){return d(m(t,form));}},function(t,e,n){"use strict";n.d(e,"a",function(){return d;}),n.d(e,"c",function(){return m;}),n.d(e,"b",function(){return y;});var r=n(159),o=n(0),c=n(1);const l=new(n(2).b)("signing-key/5.7.0");let f=null;function h(){return f||(f=new r.a("secp256k1")),f;}class d{constructor(t){Object(c.d)(this,"curve","secp256k1"),Object(c.d)(this,"privateKey",Object(o.i)(t)),32!==Object(o.d)(this.privateKey)&&l.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");const e=h().keyFromPrivate(Object(o.a)(this.privateKey));Object(c.d)(this,"publicKey","0x"+e.getPublic(!1,"hex")),Object(c.d)(this,"compressedPublicKey","0x"+e.getPublic(!0,"hex")),Object(c.d)(this,"_isSigningKey",!0);}_addPoint(t){const e=h().keyFromPublic(Object(o.a)(this.publicKey)),n=h().keyFromPublic(Object(o.a)(t));return"0x"+e.pub.add(n.pub).encodeCompressed("hex");}signDigest(t){const e=h().keyFromPrivate(Object(o.a)(this.privateKey)),n=Object(o.a)(t);32!==n.length&&l.throwArgumentError("bad digest length","digest",t);const r=e.sign(n,{canonical:!0});return Object(o.n)({recoveryParam:r.recoveryParam,r:Object(o.h)("0x"+r.r.toString(16),32),s:Object(o.h)("0x"+r.s.toString(16),32)});}computeSharedSecret(t){const e=h().keyFromPrivate(Object(o.a)(this.privateKey)),n=h().keyFromPublic(Object(o.a)(y(t)));return Object(o.h)("0x"+e.derive(n.getPublic()).toString(16),32);}static isSigningKey(t){return!(!t||!t._isSigningKey);}}function m(t,e){const n=Object(o.n)(e),r={r:Object(o.a)(n.r),s:Object(o.a)(n.s)};return"0x"+h().recoverPubKey(Object(o.a)(t),r,n.recoveryParam).encode("hex",!1);}function y(t,e){const n=Object(o.a)(t);if(32===n.length){const t=new d(n);return e?"0x"+h().keyFromPrivate(n).getPublic(!0,"hex"):t.publicKey;}return 33===n.length?e?Object(o.i)(n):"0x"+h().keyFromPublic(n).getPublic(!1,"hex"):65===n.length?e?"0x"+h().keyFromPublic(n).getPublic(!0,"hex"):Object(o.i)(n):l.throwArgumentError("invalid public or private key","key","[REDACTED]");}},function(t,e,n){"use strict";n.d(e,"d",function(){return w;}),n.d(e,"g",function(){return A;}),n.d(e,"e",function(){return T;}),n.d(e,"c",function(){return O;}),n.d(e,"a",function(){return S;}),n.d(e,"f",function(){return j;}),n.d(e,"b",function(){return I;});var r=n(7),o=n(1),c=n(2),l=n(40);const f=new c.b(l.a),h={};let d={calldata:!0,memory:!0,storage:!0},m={calldata:!0,memory:!0};function y(t,e){if("bytes"===t||"string"===t){if(d[e])return!0;}else if("address"===t){if("payable"===e)return!0;}else if((t.indexOf("[")>=0||"tuple"===t)&&m[e])return!0;return(d[e]||"payable"===e)&&f.throwArgumentError("invalid modifier","name",e),!1;}function v(object,t){for(let e in t)Object(o.d)(object,e,t[e]);}const w=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),_=new RegExp(/^(.*)\[([0-9]*)\]$/);class A{constructor(t,e){t!==h&&f.throwError("use fromString",c.b.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),v(this,e);let n=this.type.match(_);v(this,n?{arrayLength:parseInt(n[2]||"-1"),arrayChildren:A.fromObject({type:n[1],components:this.components}),baseType:"array"}:{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this);}format(t){if(t||(t=w.sighash),w[t]||f.throwArgumentError("invalid format type","format",t),t===w.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),e+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(t!==w.sighash&&(e+=this.type),e+="("+this.components.map(e=>e.format(t)).join(t===w.full?", ":",")+")"):e+=this.type,t!==w.sighash&&(!0===this.indexed&&(e+=" indexed"),t===w.full&&this.name&&(e+=" "+this.name)),e;}static from(t,e){return"string"==typeof t?A.fromString(t,e):A.fromObject(t);}static fromObject(t){return A.isParamType(t)?t:new A(h,{name:t.name||null,type:P(t.type),indexed:null==t.indexed?null:!!t.indexed,components:t.components?t.components.map(A.fromObject):null});}static fromString(t,e){return n=function(param,t){let e=param;function n(i){f.throwArgumentError(`unexpected character at position ${i}`,"param",param);}function r(e){let n={type:"",name:"",parent:e,state:{allowType:!0}};return t&&(n.indexed=!1),n;}param=param.replace(/\s/g," ");let o={type:"",name:"",state:{allowType:!0}},c=o;for(let i=0;i<param.length;i++){let e=param[i];switch(e){case"(":c.state.allowType&&""===c.type?c.type="tuple":c.state.allowParams||n(i),c.state.allowType=!1,c.type=P(c.type),c.components=[r(c)],c=c.components[0];break;case")":delete c.state,"indexed"===c.name&&(t||n(i),c.indexed=!0,c.name=""),y(c.type,c.name)&&(c.name=""),c.type=P(c.type);let o=c;c=c.parent,c||n(i),delete o.parent,c.state.allowParams=!1,c.state.allowName=!0,c.state.allowArray=!0;break;case",":delete c.state,"indexed"===c.name&&(t||n(i),c.indexed=!0,c.name=""),y(c.type,c.name)&&(c.name=""),c.type=P(c.type);let l=r(c.parent);c.parent.components.push(l),delete c.parent,c=l;break;case" ":c.state.allowType&&""!==c.type&&(c.type=P(c.type),delete c.state.allowType,c.state.allowName=!0,c.state.allowParams=!0),c.state.allowName&&""!==c.name&&("indexed"===c.name?(t||n(i),c.indexed&&n(i),c.indexed=!0,c.name=""):y(c.type,c.name)?c.name="":c.state.allowName=!1);break;case"[":c.state.allowArray||n(i),c.type+=e,c.state.allowArray=!1,c.state.allowName=!1,c.state.readArray=!0;break;case"]":c.state.readArray||n(i),c.type+=e,c.state.readArray=!1,c.state.allowArray=!0,c.state.allowName=!0;break;default:c.state.allowType?(c.type+=e,c.state.allowParams=!0,c.state.allowArray=!0):c.state.allowName?(c.name+=e,delete c.state.allowArray):c.state.readArray?c.type+=e:n(i);}}return c.parent&&f.throwArgumentError("unexpected eof","param",param),delete o.state,"indexed"===c.name?(t||n(e.length-7),c.indexed&&n(e.length-7),c.indexed=!0,c.name=""):y(c.type,c.name)&&(c.name=""),o.type=P(o.type),o;}(t,!!e),A.fromObject({name:n.name,type:n.type,indexed:n.indexed,components:n.components});var n;}static isParamType(t){return!(null==t||!t._isParamType);}}function E(t,e){return function(t){t=t.trim();let e=[],n="",r=0;for(let o=0;o<t.length;o++){let c=t[o];","===c&&0===r?(e.push(n),n=""):(n+=c,"("===c?r++:")"===c&&(r--,-1===r&&f.throwArgumentError("unbalanced parenthesis","value",t)));}n&&e.push(n);return e;}(t).map(param=>A.fromString(param,e));}class T{constructor(t,e){t!==h&&f.throwError("use a static from method",c.b.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),v(this,e),this._isFragment=!0,Object.freeze(this);}static from(t){return T.isFragment(t)?t:"string"==typeof t?T.fromString(t):T.fromObject(t);}static fromObject(t){if(T.isFragment(t))return t;switch(t.type){case"function":return j.fromObject(t);case"event":return O.fromObject(t);case"constructor":return S.fromObject(t);case"error":return I.fromObject(t);case"fallback":case"receive":return null;}return f.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]?O.fromString(t.substring(5).trim()):"function"===t.split(" ")[0]?j.fromString(t.substring(8).trim()):"constructor"===t.split("(")[0].trim()?S.fromString(t.trim()):"error"===t.split(" ")[0]?I.fromString(t.substring(5).trim()):f.throwArgumentError("unsupported fragment","value",t);}static isFragment(t){return!(!t||!t._isFragment);}}class O extends T{format(t){if(t||(t=w.sighash),w[t]||f.throwArgumentError("invalid format type","format",t),t===w.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(input=>JSON.parse(input.format(t)))});let e="";return t!==w.sighash&&(e+="event "),e+=this.name+"("+this.inputs.map(input=>input.format(t)).join(t===w.full?", ":",")+") ",t!==w.sighash&&this.anonymous&&(e+="anonymous "),e.trim();}static from(t){return"string"==typeof t?O.fromString(t):O.fromObject(t);}static fromObject(t){if(O.isEventFragment(t))return t;"event"!==t.type&&f.throwArgumentError("invalid event object","value",t);const e={name:C(t.name),anonymous:t.anonymous,inputs:t.inputs?t.inputs.map(A.fromObject):[],type:"event"};return new O(h,e);}static fromString(t){let e=t.match(B);e||f.throwArgumentError("invalid event string","value",t);let n=!1;return e[3].split(" ").forEach(t=>{switch(t.trim()){case"anonymous":n=!0;break;case"":break;default:f.warn("unknown modifier: "+t);}}),O.fromObject({name:e[1].trim(),anonymous:n,inputs:E(e[2],!0),type:"event"});}static isEventFragment(t){return t&&t._isFragment&&"event"===t.type;}}function M(t,e){e.gas=null;let n=t.split("@");return 1!==n.length?(n.length>2&&f.throwArgumentError("invalid human-readable ABI signature","value",t),n[1].match(/^[0-9]+$/)||f.throwArgumentError("invalid human-readable ABI signature gas","value",t),e.gas=r.a.from(n[1]),n[0]):t;}function k(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 x(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&&f.throwArgumentError("cannot have constant function with mutability "+e.stateMutability,"value",t),e.payable="payable"===e.stateMutability,null!=t.payable&&!!t.payable!==e.payable&&f.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||f.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&&f.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&&f.throwArgumentError("unable to determine stateMutability","value",t),e;}class S extends T{format(t){if(t||(t=w.sighash),w[t]||f.throwArgumentError("invalid format type","format",t),t===w.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(input=>JSON.parse(input.format(t)))});t===w.sighash&&f.throwError("cannot format a constructor for sighash",c.b.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let e="constructor("+this.inputs.map(input=>input.format(t)).join(t===w.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(e+=this.stateMutability+" "),e.trim();}static from(t){return"string"==typeof t?S.fromString(t):S.fromObject(t);}static fromObject(t){if(S.isConstructorFragment(t))return t;"constructor"!==t.type&&f.throwArgumentError("invalid constructor object","value",t);let e=x(t);e.constant&&f.throwArgumentError("constructor cannot be constant","value",t);const n={name:null,type:t.type,inputs:t.inputs?t.inputs.map(A.fromObject):[],payable:e.payable,stateMutability:e.stateMutability,gas:t.gas?r.a.from(t.gas):null};return new S(h,n);}static fromString(t){let e={type:"constructor"},n=(t=M(t,e)).match(B);return n&&"constructor"===n[1].trim()||f.throwArgumentError("invalid constructor string","value",t),e.inputs=E(n[2].trim(),!1),k(n[3].trim(),e),S.fromObject(e);}static isConstructorFragment(t){return t&&t._isFragment&&"constructor"===t.type;}}class j extends S{format(t){if(t||(t=w.sighash),w[t]||f.throwArgumentError("invalid format type","format",t),t===w.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(input=>JSON.parse(input.format(t))),outputs:this.outputs.map(output=>JSON.parse(output.format(t)))});let e="";return t!==w.sighash&&(e+="function "),e+=this.name+"("+this.inputs.map(input=>input.format(t)).join(t===w.full?", ":",")+") ",t!==w.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(e+=this.stateMutability+" "):this.constant&&(e+="view "),this.outputs&&this.outputs.length&&(e+="returns ("+this.outputs.map(output=>output.format(t)).join(", ")+") "),null!=this.gas&&(e+="@"+this.gas.toString()+" ")),e.trim();}static from(t){return"string"==typeof t?j.fromString(t):j.fromObject(t);}static fromObject(t){if(j.isFunctionFragment(t))return t;"function"!==t.type&&f.throwArgumentError("invalid function object","value",t);let e=x(t);const n={type:t.type,name:C(t.name),constant:e.constant,inputs:t.inputs?t.inputs.map(A.fromObject):[],outputs:t.outputs?t.outputs.map(A.fromObject):[],payable:e.payable,stateMutability:e.stateMutability,gas:t.gas?r.a.from(t.gas):null};return new j(h,n);}static fromString(t){let e={type:"function"},n=(t=M(t,e)).split(" returns ");n.length>2&&f.throwArgumentError("invalid function string","value",t);let r=n[0].match(B);if(r||f.throwArgumentError("invalid function signature","value",t),e.name=r[1].trim(),e.name&&C(e.name),e.inputs=E(r[2],!1),k(r[3].trim(),e),n.length>1){let r=n[1].match(B);""==r[1].trim()&&""==r[3].trim()||f.throwArgumentError("unexpected tokens","value",t),e.outputs=E(r[2],!1);}else e.outputs=[];return j.fromObject(e);}static isFunctionFragment(t){return t&&t._isFragment&&"function"===t.type;}}function N(t){const e=t.format();return"Error(string)"!==e&&"Panic(uint256)"!==e||f.throwArgumentError(`cannot specify user defined ${e} error`,"fragment",t),t;}class I extends T{format(t){if(t||(t=w.sighash),w[t]||f.throwArgumentError("invalid format type","format",t),t===w.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(input=>JSON.parse(input.format(t)))});let e="";return t!==w.sighash&&(e+="error "),e+=this.name+"("+this.inputs.map(input=>input.format(t)).join(t===w.full?", ":",")+") ",e.trim();}static from(t){return"string"==typeof t?I.fromString(t):I.fromObject(t);}static fromObject(t){if(I.isErrorFragment(t))return t;"error"!==t.type&&f.throwArgumentError("invalid error object","value",t);const e={type:t.type,name:C(t.name),inputs:t.inputs?t.inputs.map(A.fromObject):[]};return N(new I(h,e));}static fromString(t){let e={type:"error"},n=t.match(B);return n||f.throwArgumentError("invalid error signature","value",t),e.name=n[1].trim(),e.name&&C(e.name),e.inputs=E(n[2],!1),N(I.fromObject(e));}static isErrorFragment(t){return t&&t._isFragment&&"error"===t.type;}}function P(t){return t.match(/^uint($|[^1-9])/)?t="uint256"+t.substring(4):t.match(/^int($|[^1-9])/)&&(t="int256"+t.substring(3)),t;}const R=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function C(t){return t&&t.match(R)||f.throwArgumentError(`invalid identifier "${t}"`,"value",t),t;}const B=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");},,function(t,e,n){"use strict";n.d(e,"a",function(){return d;}),n.d(e,"b",function(){return m;});var r=n(1),o=n(2);var c=function(t,e,n,r){return new(n||(n=Promise))(function(o,c){function l(t){try{h(r.next(t));}catch(t){c(t);}}function f(t){try{h(r.throw(t));}catch(t){c(t);}}function h(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e);})).then(l,f);}h((r=r.apply(t,e||[])).next());});};const l=new o.b("abstract-signer/5.7.0"),f=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],h=[o.b.errors.INSUFFICIENT_FUNDS,o.b.errors.NONCE_EXPIRED,o.b.errors.REPLACEMENT_UNDERPRICED];class d{constructor(){l.checkAbstract(new.target,d),Object(r.d)(this,"_isSigner",!0);}getBalance(t){return c(this,void 0,void 0,function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),t);});}getTransactionCount(t){return c(this,void 0,void 0,function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),t);});}estimateGas(t){return c(this,void 0,void 0,function*(){this._checkProvider("estimateGas");const e=yield Object(r.f)(this.checkTransaction(t));return yield this.provider.estimateGas(e);});}call(t,e){return c(this,void 0,void 0,function*(){this._checkProvider("call");const n=yield Object(r.f)(this.checkTransaction(t));return yield this.provider.call(n,e);});}sendTransaction(t){return c(this,void 0,void 0,function*(){this._checkProvider("sendTransaction");const e=yield this.populateTransaction(t),n=yield this.signTransaction(e);return yield this.provider.sendTransaction(n);});}getChainId(){return c(this,void 0,void 0,function*(){this._checkProvider("getChainId");return(yield this.provider.getNetwork()).chainId;});}getGasPrice(){return c(this,void 0,void 0,function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice();});}getFeeData(){return c(this,void 0,void 0,function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData();});}resolveName(t){return c(this,void 0,void 0,function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(t);});}checkTransaction(t){for(const e in t)-1===f.indexOf(e)&&l.throwArgumentError("invalid transaction key: "+e,"transaction",t);const e=Object(r.g)(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()&&l.throwArgumentError("from address mismatch","transaction",t),e[0])),e;}populateTransaction(t){return c(this,void 0,void 0,function*(){const e=yield Object(r.f)(this.checkTransaction(t));null!=e.to&&(e.to=Promise.resolve(e.to).then(t=>c(this,void 0,void 0,function*(){if(null==t)return null;const address=yield this.resolveName(t);return null==address&&l.throwArgumentError("provided ENS name resolves to null","tx.to",t),address;})),e.to.catch(t=>{}));const n=null!=e.maxFeePerGas||null!=e.maxPriorityFeePerGas;if(null==e.gasPrice||2!==e.type&&!n?0!==e.type&&1!==e.type||!n||l.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",t):l.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",t),2!==e.type&&null!=e.type||null==e.maxFeePerGas||null==e.maxPriorityFeePerGas){if(0===e.type||1===e.type)null==e.gasPrice&&(e.gasPrice=this.getGasPrice());else{const t=yield this.getFeeData();if(null==e.type){if(null!=t.maxFeePerGas&&null!=t.maxPriorityFeePerGas){if(e.type=2,null!=e.gasPrice){const 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?(n&&l.throwError("network does not support EIP-1559",o.b.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),null==e.gasPrice&&(e.gasPrice=t.gasPrice),e.type=0):l.throwError("failed to get consistent fee data",o.b.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"});}else 2===e.type&&(null==e.maxFeePerGas&&(e.maxFeePerGas=t.maxFeePerGas),null==e.maxPriorityFeePerGas&&(e.maxPriorityFeePerGas=t.maxPriorityFeePerGas));}}else e.type=2;return null==e.nonce&&(e.nonce=this.getTransactionCount("pending")),null==e.gasLimit&&(e.gasLimit=this.estimateGas(e).catch(t=>{if(h.indexOf(t.code)>=0)throw t;return l.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",o.b.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]&&l.throwArgumentError("chainId address mismatch","transaction",t),e[0])),yield Object(r.f)(e);});}_checkProvider(t){this.provider||l.throwError("missing provider",o.b.errors.UNSUPPORTED_OPERATION,{operation:t||"_checkProvider"});}static isSigner(t){return!(!t||!t._isSigner);}}class m extends d{constructor(address,t){super(),Object(r.d)(this,"address",address),Object(r.d)(this,"provider",t||null);}getAddress(){return Promise.resolve(this.address);}_fail(t,e){return Promise.resolve().then(()=>{l.throwError(t,o.b.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,n){return this._fail("VoidSigner cannot sign typed data","signTypedData");}connect(t){return new m(this.address,t);}}},function(t,e,n){"use strict";n.r(e),n.d(e,"encode",function(){return d;}),n.d(e,"decode",function(){return v;});var r=n(0),o=n(2);const c=new o.b("rlp/5.7.0");function l(t){const e=[];for(;t;)e.unshift(255&t),t>>=8;return e;}function f(data,t,e){let n=0;for(let i=0;i<e;i++)n=256*n+data[t+i];return n;}function h(object){if(Array.isArray(object)){let t=[];if(object.forEach(function(e){t=t.concat(h(e));}),t.length<=55)return t.unshift(192+t.length),t;const e=l(t.length);return e.unshift(247+e.length),e.concat(t);}Object(r.k)(object)||c.throwArgumentError("RLP object must be BytesLike","object",object);const data=Array.prototype.slice.call(Object(r.a)(object));if(1===data.length&&data[0]<=127)return data;if(data.length<=55)return data.unshift(128+data.length),data;const t=l(data.length);return t.unshift(183+t.length),t.concat(data);}function d(object){return Object(r.i)(h(object));}function m(data,t,e,n){const r=[];for(;e<t+1+n;){const l=y(data,e);r.push(l.result),(e+=l.consumed)>t+1+n&&c.throwError("child data too short",o.b.errors.BUFFER_OVERRUN,{});}return{consumed:1+n,result:r};}function y(data,t){if(0===data.length&&c.throwError("data too short",o.b.errors.BUFFER_OVERRUN,{}),data[t]>=248){const e=data[t]-247;t+1+e>data.length&&c.throwError("data short segment too short",o.b.errors.BUFFER_OVERRUN,{});const n=f(data,t+1,e);return t+1+e+n>data.length&&c.throwError("data long segment too short",o.b.errors.BUFFER_OVERRUN,{}),m(data,t,t+1+e,e+n);}if(data[t]>=192){const e=data[t]-192;return t+1+e>data.length&&c.throwError("data array too short",o.b.errors.BUFFER_OVERRUN,{}),m(data,t,t+1,e);}if(data[t]>=184){const e=data[t]-183;t+1+e>data.length&&c.throwError("data array too short",o.b.errors.BUFFER_OVERRUN,{});const n=f(data,t+1,e);t+1+e+n>data.length&&c.throwError("data array too short",o.b.errors.BUFFER_OVERRUN,{});return{consumed:1+e+n,result:Object(r.i)(data.slice(t+1+e,t+1+e+n))};}if(data[t]>=128){const e=data[t]-128;t+1+e>data.length&&c.throwError("data too short",o.b.errors.BUFFER_OVERRUN,{});return{consumed:1+e,result:Object(r.i)(data.slice(t+1,t+1+e))};}return{consumed:1,result:Object(r.i)(data[t])};}function v(data){const t=Object(r.a)(data),e=y(t,0);return e.consumed!==t.length&&c.throwArgumentError("invalid rlp data","data",data),e.result;}},function(t,e,n){"use strict";!function(e){function n(t){return parseInt(t)===t;}function r(t){if(!n(t.length))return!1;for(var i=0;i<t.length;i++)if(!n(t[i])||t[i]<0||t[i]>255)return!1;return!0;}function o(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(!r(t))throw new Error("Array contains invalid value: "+t);return new Uint8Array(t);}if(n(t.length)&&r(t))return new Uint8Array(t);throw new Error("unsupported array-like object");}function c(t){return new Uint8Array(t);}function l(t,e,n,r,o){null==r&&null==o||(t=t.slice?t.slice(r,o):Array.prototype.slice.call(t,r,o)),e.set(t,n);}var f,h={toBytes:function(text){var t=[],i=0;for(text=encodeURI(text);i<text.length;){var e=text.charCodeAt(i++);37===e?(t.push(parseInt(text.substr(i,2),16)),i+=2):t.push(e);}return o(t);},fromBytes:function(t){for(var e=[],i=0;i<t.length;){var n=t[i];n<128?(e.push(String.fromCharCode(n)),i++):n>191&&n<224?(e.push(String.fromCharCode((31&n)<<6|63&t[i+1])),i+=2):(e.push(String.fromCharCode((15&n)<<12|(63&t[i+1])<<6|63&t[i+2])),i+=3);}return e.join("");}},d=(f="0123456789abcdef",{toBytes:function(text){for(var t=[],i=0;i<text.length;i+=2)t.push(parseInt(text.substr(i,2),16));return t;},fromBytes:function(t){for(var e=[],i=0;i<t.length;i++){var n=t[i];e.push(f[(240&n)>>4]+f[15&n]);}return e.join("");}}),m={16:10,24:12,32:14},y=[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],v=[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],w=[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],_=[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],A=[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],E=[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],T=[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],O=[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],M=[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],k=[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],x=[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],S=[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],j=[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],N=[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],I=[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 P(t){for(var e=[],i=0;i<t.length;i+=4)e.push(t[i]<<24|t[i+1]<<16|t[i+2]<<8|t[i+3]);return e;}var R=function(t){if(!(this instanceof R))throw Error("AES must be instanitated with `new`");Object.defineProperty(this,"key",{value:o(t,!0)}),this._prepare();};R.prototype._prepare=function(){var t=m[this.key.length];if(null==t)throw new Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(var i=0;i<=t;i++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);var e,n=4*(t+1),r=this.key.length/4,o=P(this.key);for(i=0;i<r;i++)e=i>>2,this._Ke[e][i%4]=o[i],this._Kd[t-e][i%4]=o[i];for(var c,l=0,f=r;f<n;){if(c=o[r-1],o[0]^=v[c>>16&255]<<24^v[c>>8&255]<<16^v[255&c]<<8^v[c>>24&255]^y[l]<<24,l+=1,8!=r)for(i=1;i<r;i++)o[i]^=o[i-1];else{for(i=1;i<r/2;i++)o[i]^=o[i-1];c=o[r/2-1],o[r/2]^=v[255&c]^v[c>>8&255]<<8^v[c>>16&255]<<16^v[c>>24&255]<<24;for(i=r/2+1;i<r;i++)o[i]^=o[i-1];}for(i=0;i<r&&f<n;)h=f>>2,d=f%4,this._Ke[h][d]=o[i],this._Kd[t-h][d]=o[i++],f++;}for(var h=1;h<t;h++)for(var d=0;d<4;d++)c=this._Kd[h][d],this._Kd[h][d]=S[c>>24&255]^j[c>>16&255]^N[c>>8&255]^I[255&c];},R.prototype.encrypt=function(t){if(16!=t.length)throw new Error("invalid plaintext size (must be 16 bytes)");for(var e=this._Ke.length-1,a=[0,0,0,0],n=P(t),i=0;i<4;i++)n[i]^=this._Ke[0][i];for(var r=1;r<e;r++){for(i=0;i<4;i++)a[i]=_[n[i]>>24&255]^A[n[(i+1)%4]>>16&255]^E[n[(i+2)%4]>>8&255]^T[255&n[(i+3)%4]]^this._Ke[r][i];n=a.slice();}var o,l=c(16);for(i=0;i<4;i++)o=this._Ke[e][i],l[4*i]=255&(v[n[i]>>24&255]^o>>24),l[4*i+1]=255&(v[n[(i+1)%4]>>16&255]^o>>16),l[4*i+2]=255&(v[n[(i+2)%4]>>8&255]^o>>8),l[4*i+3]=255&(v[255&n[(i+3)%4]]^o);return l;},R.prototype.decrypt=function(t){if(16!=t.length)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var e=this._Kd.length-1,a=[0,0,0,0],n=P(t),i=0;i<4;i++)n[i]^=this._Kd[0][i];for(var r=1;r<e;r++){for(i=0;i<4;i++)a[i]=O[n[i]>>24&255]^M[n[(i+3)%4]>>16&255]^k[n[(i+2)%4]>>8&255]^x[255&n[(i+1)%4]]^this._Kd[r][i];n=a.slice();}var o,l=c(16);for(i=0;i<4;i++)o=this._Kd[e][i],l[4*i]=255&(w[n[i]>>24&255]^o>>24),l[4*i+1]=255&(w[n[(i+3)%4]>>16&255]^o>>16),l[4*i+2]=255&(w[n[(i+2)%4]>>8&255]^o>>8),l[4*i+3]=255&(w[255&n[(i+1)%4]]^o);return l;};var C=function(t){if(!(this instanceof C))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new R(t);};C.prototype.encrypt=function(t){if((t=o(t)).length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var e=c(t.length),n=c(16),i=0;i<t.length;i+=16)l(t,n,0,i,i+16),l(n=this._aes.encrypt(n),e,i);return e;},C.prototype.decrypt=function(t){if((t=o(t)).length%16!=0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var e=c(t.length),n=c(16),i=0;i<t.length;i+=16)l(t,n,0,i,i+16),l(n=this._aes.decrypt(n),e,i);return e;};var B=function(t,e){if(!(this instanceof B))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Block Chaining",this.name="cbc",e){if(16!=e.length)throw new Error("invalid initialation vector size (must be 16 bytes)");}else e=c(16);this._lastCipherblock=o(e,!0),this._aes=new R(t);};B.prototype.encrypt=function(t){if((t=o(t)).length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var e=c(t.length),n=c(16),i=0;i<t.length;i+=16){l(t,n,0,i,i+16);for(var r=0;r<16;r++)n[r]^=this._lastCipherblock[r];this._lastCipherblock=this._aes.encrypt(n),l(this._lastCipherblock,e,i);}return e;},B.prototype.decrypt=function(t){if((t=o(t)).length%16!=0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var e=c(t.length),n=c(16),i=0;i<t.length;i+=16){l(t,n,0,i,i+16),n=this._aes.decrypt(n);for(var r=0;r<16;r++)e[i+r]=n[r]^this._lastCipherblock[r];l(t,this._lastCipherblock,0,i,i+16);}return e;};var L=function(t,e,n){if(!(this instanceof L))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Feedback",this.name="cfb",e){if(16!=e.length)throw new Error("invalid initialation vector size (must be 16 size)");}else e=c(16);n||(n=1),this.segmentSize=n,this._shiftRegister=o(e,!0),this._aes=new R(t);};L.prototype.encrypt=function(t){if(t.length%this.segmentSize!=0)throw new Error("invalid plaintext size (must be segmentSize bytes)");for(var e,n=o(t,!0),i=0;i<n.length;i+=this.segmentSize){e=this._aes.encrypt(this._shiftRegister);for(var r=0;r<this.segmentSize;r++)n[i+r]^=e[r];l(this._shiftRegister,this._shiftRegister,0,this.segmentSize),l(n,this._shiftRegister,16-this.segmentSize,i,i+this.segmentSize);}return n;},L.prototype.decrypt=function(t){if(t.length%this.segmentSize!=0)throw new Error("invalid ciphertext size (must be segmentSize bytes)");for(var e,n=o(t,!0),i=0;i<n.length;i+=this.segmentSize){e=this._aes.encrypt(this._shiftRegister);for(var r=0;r<this.segmentSize;r++)n[i+r]^=e[r];l(this._shiftRegister,this._shiftRegister,0,this.segmentSize),l(t,this._shiftRegister,16-this.segmentSize,i,i+this.segmentSize);}return n;};var F=function(t,e){if(!(this instanceof F))throw Error("AES must be instanitated with `new`");if(this.description="Output Feedback",this.name="ofb",e){if(16!=e.length)throw new Error("invalid initialation vector size (must be 16 bytes)");}else e=c(16);this._lastPrecipher=o(e,!0),this._lastPrecipherIndex=16,this._aes=new R(t);};F.prototype.encrypt=function(t){for(var e=o(t,!0),i=0;i<e.length;i++)16===this._lastPrecipherIndex&&(this._lastPrecipher=this._aes.encrypt(this._lastPrecipher),this._lastPrecipherIndex=0),e[i]^=this._lastPrecipher[this._lastPrecipherIndex++];return e;},F.prototype.decrypt=F.prototype.encrypt;var D=function(t){if(!(this instanceof D))throw Error("Counter must be instanitated with `new`");0===t||t||(t=1),"number"==typeof t?(this._counter=c(16),this.setValue(t)):this.setBytes(t);};D.prototype.setValue=function(t){if("number"!=typeof t||parseInt(t)!=t)throw new Error("invalid counter value (must be an integer)");for(var e=15;e>=0;--e)this._counter[e]=t%256,t>>=8;},D.prototype.setBytes=function(t){if(16!=(t=o(t,!0)).length)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=t;},D.prototype.increment=function(){for(var i=15;i>=0;i--){if(255!==this._counter[i]){this._counter[i]++;break;}this._counter[i]=0;}};var U=function(t,e){if(!(this instanceof U))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",e instanceof D||(e=new D(e)),this._counter=e,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new R(t);};U.prototype.encrypt=function(t){for(var e=o(t,!0),i=0;i<e.length;i++)16===this._remainingCounterIndex&&(this._remainingCounter=this._aes.encrypt(this._counter._counter),this._remainingCounterIndex=0,this._counter.increment()),e[i]^=this._remainingCounter[this._remainingCounterIndex++];return e;},U.prototype.decrypt=U.prototype.encrypt;var G={AES:R,Counter:D,ModeOfOperation:{ecb:C,cbc:B,cfb:L,ofb:F,ctr:U},utils:{hex:d,utf8:h},padding:{pkcs7:{pad:function(data){var t=16-(data=o(data,!0)).length%16,e=c(data.length+t);l(data,e);for(var i=data.length;i<e.length;i++)e[i]=t;return e;},strip:function(data){if((data=o(data,!0)).length<16)throw new Error("PKCS#7 invalid length");var t=data[data.length-1];if(t>16)throw new Error("PKCS#7 padding byte out of range");for(var e=data.length-t,i=0;i<t;i++)if(data[e+i]!==t)throw new Error("PKCS#7 invalid padding byte");var n=c(e);return l(data,n,0,0,e),n;}}},_arrayTest:{coerceArray:o,createArray:c,copyArray:l}};t.exports=G;}();},function(t,e,n){var r=n(26),o=n(134),c=n(135),l=n(38),f=n(78),h=TypeError,d=Object.defineProperty,m=Object.getOwnPropertyDescriptor,y="enumerable",v="configurable",w="writable";e.f=r?c?function(t,e,n){if(l(t),e=f(e),l(n),"function"==typeof t&&"prototype"===e&&"value"in n&&w in n&&!n[w]){var r=m(t,e);r&&r[w]&&(t[e]=n.value,n={configurable:v in n?n[v]:r[v],enumerable:y in n?n[y]:r[y],writable:!1});}return d(t,e,n);}:d:function(t,e,n){if(l(t),e=f(e),l(n),o)try{return d(t,e,n);}catch(t){}if("get"in n||"set"in n)throw h("Accessors not supported");return"value"in n&&(t[e]=n.value),t;};},function(t,e,n){var r=n(17),o=n(133),c=o.all;t.exports=o.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:r(t)||t===c;}:function(t){return"object"==typeof t?null!==t:r(t);};},function(t,e,n){"use strict";n.d(e,"a",function(){return h;}),n.d(e,"b",function(){return d;});var r=n(7),o=(n(0),n(1)),c=n(2);var l=function(t,e,n,r){return new(n||(n=Promise))(function(o,c){function l(t){try{h(r.next(t));}catch(t){c(t);}}function f(t){try{h(r.throw(t));}catch(t){c(t);}}function h(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e);})).then(l,f);}h((r=r.apply(t,e||[])).next());});};const f=new c.b("abstract-provider/5.7.0");class h extends o.a{static isForkEvent(t){return!(!t||!t._isForkEvent);}}class d{constructor(){f.checkAbstract(new.target,d),Object(o.d)(this,"_isProvider",!0);}getFeeData(){return l(this,void 0,void 0,function*(){const{block:t,gasPrice:e}=yield Object(o.f)({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch(t=>null)});let n=null,c=null,l=null;return t&&t.baseFeePerGas&&(n=t.baseFeePerGas,l=r.a.from("1500000000"),c=t.baseFeePerGas.mul(2).add(l)),{lastBaseFeePerGas:n,maxFeePerGas:c,maxPriorityFeePerGas:l,gasPrice:e};});}addListener(t,e){return this.on(t,e);}removeListener(t,e){return this.off(t,e);}static isProvider(t){return!(!t||!t._isProvider);}}},function(t,e,n){"use strict";var r=n(63),o=n(171);function c(t,i){return 55296==(64512&t.charCodeAt(i))&&!(i<0||i+1>=t.length)&&56320==(64512&t.charCodeAt(i+1));}function l(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0;}function f(t){return 1===t.length?"0"+t:t;}function h(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t;}e.inherits=o,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"==typeof t){if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),i=0;i<t.length;i+=2)n.push(parseInt(t[i]+t[i+1],16));}else for(var p=0,i=0;i<t.length;i++){var r=t.charCodeAt(i);r<128?n[p++]=r:r<2048?(n[p++]=r>>6|192,n[p++]=63&r|128):c(t,i)?(r=65536+((1023&r)<<10)+(1023&t.charCodeAt(++i)),n[p++]=r>>18|240,n[p++]=r>>12&63|128,n[p++]=r>>6&63|128,n[p++]=63&r|128):(n[p++]=r>>12|224,n[p++]=r>>6&63|128,n[p++]=63&r|128);}}else for(i=0;i<t.length;i++)n[i]=0|t[i];return n;},e.toHex=function(t){for(var e="",i=0;i<t.length;i++)e+=f(t[i].toString(16));return e;},e.htonl=l,e.toHex32=function(t,e){for(var n="",i=0;i<t.length;i++){var r=t[i];"little"===e&&(r=l(r)),n+=h(r.toString(16));}return n;},e.zero2=f,e.zero8=h,e.join32=function(t,e,n,o){var c=n-e;r(c%4==0);for(var l=new Array(c/4),i=0,f=e;i<l.length;i++,f+=4){var h;h="big"===o?t[f]<<24|t[f+1]<<16|t[f+2]<<8|t[f+3]:t[f+3]<<24|t[f+2]<<16|t[f+1]<<8|t[f],l[i]=h>>>0;}return l;},e.split32=function(t,e){for(var n=new Array(4*t.length),i=0,r=0;i<t.length;i++,r+=4){var o=t[i];"big"===e?(n[r]=o>>>24,n[r+1]=o>>>16&255,n[r+2]=o>>>8&255,n[r+3]=255&o):(n[r+3]=o>>>24,n[r+2]=o>>>16&255,n[r+1]=o>>>8&255,n[r]=255&o);}return n;},e.rotr32=function(t,b){return t>>>b|t<<32-b;},e.rotl32=function(t,b){return t<<b|t>>>32-b;},e.sum32=function(a,b){return a+b>>>0;},e.sum32_3=function(a,b,t){return a+b+t>>>0;},e.sum32_4=function(a,b,t,e){return a+b+t+e>>>0;},e.sum32_5=function(a,b,t,e,n){return a+b+t+e+n>>>0;},e.sum64=function(t,e,n,r){var o=t[e],c=r+t[e+1]>>>0,l=(c<r?1:0)+n+o;t[e]=l>>>0,t[e+1]=c;},e.sum64_hi=function(t,e,n,r){return(e+r>>>0<e?1:0)+t+n>>>0;},e.sum64_lo=function(t,e,n,r){return e+r>>>0;},e.sum64_4_hi=function(t,e,n,r,o,c,l,dl){var f=0,h=e;return f+=(h=h+r>>>0)<e?1:0,f+=(h=h+c>>>0)<c?1:0,t+n+o+l+(f+=(h=h+dl>>>0)<dl?1:0)>>>0;},e.sum64_4_lo=function(t,e,n,r,o,c,l,dl){return e+r+c+dl>>>0;},e.sum64_5_hi=function(t,e,n,r,o,c,l,dl,f,h){var d=0,m=e;return d+=(m=m+r>>>0)<e?1:0,d+=(m=m+c>>>0)<c?1:0,d+=(m=m+dl>>>0)<dl?1:0,t+n+o+l+f+(d+=(m=m+h>>>0)<h?1:0)>>>0;},e.sum64_5_lo=function(t,e,n,r,o,c,l,dl,f,h){return e+r+c+dl+h>>>0;},e.rotr64_hi=function(t,e,n){return(e<<32-n|t>>>n)>>>0;},e.rotr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0;},e.shr64_hi=function(t,e,n){return t>>>n;},e.shr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0;};},function(t,e,n){var r=n(35),o=String,c=TypeError;t.exports=function(t){if(r(t))return t;throw c(o(t)+" is not an object");};},function(t,e,n){var r=n(68),o=Function.prototype.call;t.exports=r?o.bind(o):function(){return o.apply(o,arguments);};},function(t,e,n){"use strict";n.d(e,"a",function(){return r;});const r="abi/5.7.0";},function(t,e,n){"use strict";n.d(e,"d",function(){return o;}),n.d(e,"h",function(){return c;}),n.d(e,"e",function(){return l;}),n.d(e,"f",function(){return f;}),n.d(e,"g",function(){return h;}),n.d(e,"b",function(){return d;}),n.d(e,"c",function(){return m;}),n.d(e,"a",function(){return y;});var r=n(7);const o=r.a.from(-1),c=r.a.from(0),l=r.a.from(1),f=r.a.from(2),h=r.a.from("1000000000000000000"),d=r.a.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),m=r.a.from("-0x8000000000000000000000000000000000000000000000000000000000000000"),y=r.a.from("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");},function(t,e,n){var r=n(140),o=n(69);t.exports=function(t){return r(o(t));};},function(t,e,n){"use strict";n.d(e,"a",function(){return l;});var r=n(0),o=n(1);class c{constructor(t){Object(o.d)(this,"alphabet",t),Object(o.d)(this,"base",t.length),Object(o.d)(this,"_alphabetMap",{}),Object(o.d)(this,"_leader",t.charAt(0));for(let i=0;i<t.length;i++)this._alphabetMap[t.charAt(i)]=i;}encode(t){let source=Object(r.a)(t);if(0===source.length)return"";let e=[0];for(let i=0;i<source.length;++i){let t=source[i];for(let n=0;n<e.length;++n)t+=e[n]<<8,e[n]=t%this.base,t=t/this.base|0;for(;t>0;)e.push(t%this.base),t=t/this.base|0;}let n="";for(let t=0;0===source[t]&&t<source.length-1;++t)n+=this._leader;for(let q=e.length-1;q>=0;--q)n+=this.alphabet[e[q]];return n;}decode(t){if("string"!=typeof t)throw new TypeError("Expected String");let e=[];if(0===t.length)return new Uint8Array(e);e.push(0);for(let i=0;i<t.length;i++){let n=this._alphabetMap[t[i]];if(void 0===n)throw new Error("Non-base"+this.base+" character");let r=n;for(let t=0;t<e.length;++t)r+=e[t]*this.base,e[t]=255&r,r>>=8;for(;r>0;)e.push(255&r),r>>=8;}for(let n=0;t[n]===this._leader&&n<t.length-1;++n)e.push(0);return Object(r.a)(new Uint8Array(e.reverse()));}}new c("abcdefghijklmnopqrstuvwxyz234567");const l=new c("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz");},function(t,e,n){var r=n(22),o=n(17);t.exports=function(t,e){return arguments.length<2?(n=r[t],o(n)?n:void 0):r[t]&&r[t][e];var n;};},function(t,e,n){"use strict";n.r(e),n.d(e,"Signer",function(){return f.a;}),n.d(e,"Wallet",function(){return h.a;}),n.d(e,"VoidSigner",function(){return f.b;}),n.d(e,"getDefaultProvider",function(){return m.getDefaultProvider;}),n.d(e,"providers",function(){return m;}),n.d(e,"BaseContract",function(){return o.a;}),n.d(e,"Contract",function(){return o.b;}),n.d(e,"ContractFactory",function(){return o.c;}),n.d(e,"BigNumber",function(){return c.a;}),n.d(e,"FixedNumber",function(){return l.a;}),n.d(e,"constants",function(){return d;}),n.d(e,"errors",function(){return C.a;}),n.d(e,"logger",function(){return Mt;}),n.d(e,"utils",function(){return r;}),n.d(e,"wordlists",function(){return y.a;}),n.d(e,"version",function(){return Ot.a;}),n.d(e,"Wordlist",function(){return v.a;});var r={};n.r(r),n.d(r,"AbiCoder",function(){return w.a;}),n.d(r,"defaultAbiCoder",function(){return w.b;}),n.d(r,"Fragment",function(){return _.e;}),n.d(r,"ConstructorFragment",function(){return _.a;}),n.d(r,"ErrorFragment",function(){return _.b;}),n.d(r,"EventFragment",function(){return _.c;}),n.d(r,"FunctionFragment",function(){return _.f;}),n.d(r,"ParamType",function(){return _.g;}),n.d(r,"FormatTypes",function(){return _.d;}),n.d(r,"checkResultErrors",function(){return A.d;}),n.d(r,"Logger",function(){return C.b;}),n.d(r,"RLP",function(){return X;}),n.d(r,"_fetchData",function(){return Et.a;}),n.d(r,"fetchJson",function(){return Et.b;}),n.d(r,"poll",function(){return Et.c;}),n.d(r,"checkProperties",function(){return Q.b;}),n.d(r,"deepCopy",function(){return Q.c;}),n.d(r,"defineReadOnly",function(){return Q.d;}),n.d(r,"getStatic",function(){return Q.e;}),n.d(r,"resolveProperties",function(){return Q.f;}),n.d(r,"shallowCopy",function(){return Q.g;}),n.d(r,"arrayify",function(){return k.a;}),n.d(r,"concat",function(){return k.b;}),n.d(r,"stripZeros",function(){return k.o;}),n.d(r,"zeroPad",function(){return k.p;}),n.d(r,"isBytes",function(){return k.j;}),n.d(r,"isBytesLike",function(){return k.k;}),n.d(r,"defaultPath",function(){return I.b;}),n.d(r,"HDNode",function(){return I.a;}),n.d(r,"SigningKey",function(){return Z.a;}),n.d(r,"Interface",function(){return E.b;}),n.d(r,"LogDescription",function(){return E.c;}),n.d(r,"TransactionDescription",function(){return E.d;}),n.d(r,"base58",function(){return M.a;}),n.d(r,"base64",function(){return O;}),n.d(r,"hexlify",function(){return k.i;}),n.d(r,"isHexString",function(){return k.l;}),n.d(r,"hexConcat",function(){return k.c;}),n.d(r,"hexStripZeros",function(){return k.f;}),n.d(r,"hexValue",function(){return k.g;}),n.d(r,"hexZeroPad",function(){return k.h;}),n.d(r,"hexDataLength",function(){return k.d;}),n.d(r,"hexDataSlice",function(){return k.e;}),n.d(r,"nameprep",function(){return lt;}),n.d(r,"_toEscapedUtf8String",function(){return L.d;}),n.d(r,"toUtf8Bytes",function(){return L.f;}),n.d(r,"toUtf8CodePoints",function(){return L.g;}),n.d(r,"toUtf8String",function(){return L.h;}),n.d(r,"Utf8ErrorFuncs",function(){return L.b;}),n.d(r,"formatBytes32String",function(){return ht;}),n.d(r,"parseBytes32String",function(){return pt;}),n.d(r,"dnsEncode",function(){return x.a;}),n.d(r,"hashMessage",function(){return S.a;}),n.d(r,"namehash",function(){return x.c;}),n.d(r,"isValidName",function(){return x.b;}),n.d(r,"id",function(){return j.a;}),n.d(r,"_TypedDataEncoder",function(){return N.a;}),n.d(r,"getAddress",function(){return T.a;}),n.d(r,"getIcapAddress",function(){return T.d;}),n.d(r,"getContractAddress",function(){return T.b;}),n.d(r,"getCreate2Address",function(){return T.c;}),n.d(r,"isAddress",function(){return T.e;}),n.d(r,"formatEther",function(){return _t;}),n.d(r,"parseEther",function(){return At;}),n.d(r,"formatUnits",function(){return vt;}),n.d(r,"parseUnits",function(){return wt;}),n.d(r,"commify",function(){return bt;}),n.d(r,"computeHmac",function(){return B.a;}),n.d(r,"keccak256",function(){return R.a;}),n.d(r,"ripemd160",function(){return B.b;}),n.d(r,"sha256",function(){return B.c;}),n.d(r,"sha512",function(){return B.d;}),n.d(r,"randomBytes",function(){return J.a;}),n.d(r,"shuffled",function(){return Y.a;}),n.d(r,"solidityPack",function(){return K;}),n.d(r,"solidityKeccak256",function(){return W;}),n.d(r,"soliditySha256",function(){return V;}),n.d(r,"splitSignature",function(){return k.n;}),n.d(r,"joinSignature",function(){return k.m;}),n.d(r,"accessListify",function(){return mt.b;}),n.d(r,"parseTransaction",function(){return mt.d;}),n.d(r,"serializeTransaction",function(){return mt.f;}),n.d(r,"TransactionTypes",function(){return mt.a;}),n.d(r,"getJsonWalletAddress",function(){return P.a;}),n.d(r,"computeAddress",function(){return mt.c;}),n.d(r,"recoverAddress",function(){return mt.e;}),n.d(r,"computePublicKey",function(){return Z.b;}),n.d(r,"recoverPublicKey",function(){return Z.c;}),n.d(r,"verifyMessage",function(){return h.b;}),n.d(r,"verifyTypedData",function(){return h.c;}),n.d(r,"getAccountPath",function(){return I.d;}),n.d(r,"mnemonicToEntropy",function(){return I.f;}),n.d(r,"entropyToMnemonic",function(){return I.c;}),n.d(r,"isValidMnemonic",function(){return I.e;}),n.d(r,"mnemonicToSeed",function(){return I.g;}),n.d(r,"SupportedAlgorithm",function(){return Tt.a;}),n.d(r,"UnicodeNormalizationForm",function(){return L.a;}),n.d(r,"Utf8ErrorReason",function(){return L.c;}),n.d(r,"Indexed",function(){return E.a;});var o=n(51),c=n(7),l=n(182),f=n(31),h=n(59),d=n(52),m=n(76),y=n(255),v=n(77),w=n(164),_=n(29),A=n(13),E=n(260),T=n(4),O=n(65),M=n(43),k=n(0),x=n(261),S=n(257),j=n(55),N=n(258),I=n(16),P=n(46),R=n(5),C=n(2),B=n(165),L=n(27);const F=new RegExp("^bytes([0-9]+)$"),D=new RegExp("^(u?int)([0-9]*)$"),U=new RegExp("^(.*)\\[([0-9]*)\\]$"),G="0000000000000000000000000000000000000000000000000000000000000000",z=new C.b("solidity/5.7.0");function H(t,e,n){switch(t){case"address":return n?Object(k.p)(e,32):Object(k.a)(e);case"string":return Object(L.f)(e);case"bytes":return Object(k.a)(e);case"bool":return e=e?"0x01":"0x00",n?Object(k.p)(e,32):Object(k.a)(e);}let r=t.match(D);if(r){let o=parseInt(r[2]||"256");return(r[2]&&String(o)!==r[2]||o%8!=0||0===o||o>256)&&z.throwArgumentError("invalid number type","type",t),n&&(o=256),e=c.a.from(e).toTwos(o),Object(k.p)(e,o/8);}if(r=t.match(F),r){const o=parseInt(r[1]);return(String(o)!==r[1]||0===o||o>32)&&z.throwArgumentError("invalid bytes type","type",t),Object(k.a)(e).byteLength!==o&&z.throwArgumentError(`invalid value for ${t}`,"value",e),n?Object(k.a)((e+G).substring(0,66)):e;}if(r=t.match(U),r&&Array.isArray(e)){const n=r[1];parseInt(r[2]||String(e.length))!=e.length&&z.throwArgumentError(`invalid array length for ${t}`,"value",e);const o=[];return e.forEach(function(t){o.push(H(n,t,!0));}),Object(k.b)(o);}return z.throwArgumentError("invalid type","type",t);}function K(t,e){t.length!=e.length&&z.throwArgumentError("wrong number of values; expected ${ types.length }","values",e);const n=[];return t.forEach(function(t,r){n.push(H(t,e[r]));}),Object(k.i)(Object(k.b)(n));}function W(t,e){return Object(R.a)(K(t,e));}function V(t,e){return Object(B.c)(K(t,e));}var J=n(95),Y=n(259),Q=n(1),X=n(32),Z=n(28);function $(data,t){t||(t=function(t){return[parseInt(t,16)];});let e=0,n={};return data.split(",").forEach(r=>{let o=r.split(":");e+=parseInt(o[0],16),n[e]=t(o[1]);}),n;}function tt(data){let t=0;return data.split(",").map(e=>{let n=e.split("-");1===n.length?n[1]="0":""===n[1]&&(n[1]="1");let r=t+parseInt(n[0],16);return t=parseInt(n[1],16),{l:r,h:t};});}function et(t,e){let n=0;for(let i=0;i<e.length;i++){let r=e[i];if(n+=r.l,t>=n&&t<=n+r.h&&(t-n)%(r.d||1)==0){if(r.e&&-1!==r.e.indexOf(t-n))continue;return r;}}return null;}const nt=tt("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"),it="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map(t=>parseInt(t,16)),ot=[{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}],at=$("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"),st=$("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"),ut=$("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(data){if(data.length%4!=0)throw new Error("bad data");let t=[];for(let i=0;i<data.length;i+=4)t.push(parseInt(data.substring(i,i+4),16));return t;}),ct=tt("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 lt(t){if(t.match(/^[a-z0-9-]*$/i)&&t.length<=59)return t.toLowerCase();let e=Object(L.g)(t);var n;n=e.map(code=>{if(it.indexOf(code)>=0)return[];if(code>=65024&&code<=65039)return[];let t=function(t){let e=et(t,ot);if(e)return[t+e.s];let n=at[t];if(n)return n;let r=st[t];return r?[t+r[0]]:ut[t]||null;}(code);return t||[code];}),e=n.reduce((t,e)=>(e.forEach(e=>{t.push(e);}),t),[]),e=Object(L.g)(Object(L.e)(e),L.a.NFKC),e.forEach(code=>{if(et(code,ct))throw new Error("STRINGPREP_CONTAINS_PROHIBITED");}),e.forEach(code=>{if(et(code,nt))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED");});let r=Object(L.e)(e);if("-"===r.substring(0,1)||"--"===r.substring(2,4)||"-"===r.substring(r.length-1))throw new Error("invalid hyphen");return r;}var ft=n(128);function ht(text){const t=Object(L.f)(text);if(t.length>31)throw new Error("bytes32 string must be less than 32 bytes");return Object(k.i)(Object(k.b)([t,ft.a]).slice(0,32));}function pt(t){const data=Object(k.a)(t);if(32!==data.length)throw new Error("invalid bytes32 - not 32 bytes long");if(0!==data[31])throw new Error("invalid bytes32 string - no null terminator");let e=31;for(;0===data[e-1];)e--;return Object(L.h)(data.slice(0,e));}var mt=n(11);const yt=new C.b("units/5.7.0"),gt=["wei","kwei","mwei","gwei","szabo","finney","ether"];function bt(t){const e=String(t).split(".");(e.length>2||!e[0].match(/^-?[0-9]*$/)||e[1]&&!e[1].match(/^[0-9]*$/)||"."===t||"-."===t)&&yt.throwArgumentError("invalid value","value",t);let n=e[0],r="";for("-"===n.substring(0,1)&&(r="-",n=n.substring(1));"0"===n.substring(0,1);)n=n.substring(1);""===n&&(n="0");let o="";for(2===e.length&&(o="."+(e[1]||"0"));o.length>2&&"0"===o[o.length-1];)o=o.substring(0,o.length-1);const c=[];for(;n.length;){if(n.length<=3){c.unshift(n);break;}{const t=n.length-3;c.unshift(n.substring(t)),n=n.substring(0,t);}}return r+c.join(",")+o;}function vt(t,e){if("string"==typeof e){const t=gt.indexOf(e);-1!==t&&(e=3*t);}return Object(l.b)(t,null!=e?e:18);}function wt(t,e){if("string"!=typeof t&&yt.throwArgumentError("value must be a string","value",t),"string"==typeof e){const t=gt.indexOf(e);-1!==t&&(e=3*t);}return Object(l.c)(t,null!=e?e:18);}function _t(t){return vt(t,18);}function At(t){return wt(t,18);}var Et=n(15),Tt=n(162),Ot=n(88);const Mt=new C.b(Ot.a);},function(t,e,n){"use strict";n.d(e,"b",function(){return o;}),n.d(e,"c",function(){return c;}),n.d(e,"a",function(){return l;});var r=n(4);function o(t){let data=null;try{data=JSON.parse(t);}catch(t){return!1;}return data.encseed&&data.ethaddr;}function c(t){let data=null;try{data=JSON.parse(t);}catch(t){return!1;}return!(!data.version||parseInt(data.version)!==data.version||3!==parseInt(data.version));}function l(t){if(o(t))try{return Object(r.a)(JSON.parse(t).ethaddr);}catch(t){return null;}if(c(t))try{return Object(r.a)(JSON.parse(t).address);}catch(t){return null;}return null;}},function(t,e){var g;g=function(){return this;}();try{g=g||new Function("return this")();}catch(t){"object"==typeof window&&(g=window);}t.exports=g;},function(t,e,n){var r=n(69),o=Object;t.exports=function(t){return o(r(t));};},function(t,e,n){var r=n(12),o=r({}.toString),c=r("".slice);t.exports=function(t){return c(o(t),8,-1);};},function(t,e,n){var r=n(82),o=String;t.exports=function(t){if("Symbol"===r(t))throw TypeError("Cannot convert a Symbol value to a string");return o(t);};},function(t,e,n){"use strict";n.d(e,"a",function(){return R;}),n.d(e,"b",function(){return C;}),n.d(e,"c",function(){return B;});var r=n(13),o=n(260),c=n(36),l=n(31),f=n(4),h=n(7),d=n(0),m=n(1),y=n(11),v=n(2);var w=function(t,e,n,r){return new(n||(n=Promise))(function(o,c){function l(t){try{h(r.next(t));}catch(t){c(t);}}function f(t){try{h(r.throw(t));}catch(t){c(t);}}function h(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e);})).then(l,f);}h((r=r.apply(t,e||[])).next());});};const _=new v.b("contracts/5.7.0"),A={chainId:!0,data:!0,from:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0,customData:!0,ccipReadEnabled:!0};function E(t,e){return w(this,void 0,void 0,function*(){const n=yield e;"string"!=typeof n&&_.throwArgumentError("invalid address or ENS name","name",n);try{return Object(f.a)(n);}catch(t){}t||_.throwError("a provider or signer is needed to resolve ENS names",v.b.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"});const address=yield t.resolveName(n);return null==address&&_.throwArgumentError("resolver or addr is not configured for ENS name","name",n),address;});}function T(t,e,n){return w(this,void 0,void 0,function*(){return Array.isArray(n)?yield Promise.all(n.map((n,r)=>T(t,Array.isArray(e)?e[r]:e[n.name],n))):"address"===n.type?yield E(t,e):"tuple"===n.type?yield T(t,e,n.components):"array"===n.baseType?Array.isArray(e)?yield Promise.all(e.map(e=>T(t,e,n.arrayChildren))):Promise.reject(_.makeError("invalid value for array",v.b.errors.INVALID_ARGUMENT,{argument:"value",value:e})):e;});}function O(t,e,n){return w(this,void 0,void 0,function*(){let r={};n.length===e.inputs.length+1&&"object"==typeof n[n.length-1]&&(r=Object(m.g)(n.pop())),_.checkArgumentCount(n.length,e.inputs.length,"passed to contract"),t.signer?r.from?r.from=Object(m.f)({override:E(t.signer,r.from),signer:t.signer.getAddress()}).then(t=>w(this,void 0,void 0,function*(){return Object(f.a)(t.signer)!==t.override&&_.throwError("Contract with a Signer cannot override from",v.b.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),t.override;})):r.from=t.signer.getAddress():r.from&&(r.from=E(t.provider,r.from));const o=yield Object(m.f)({args:T(t.signer||t.provider,n,e.inputs),address:t.resolvedAddress,overrides:Object(m.f)(r)||{}}),data=t.interface.encodeFunctionData(e,o.args),c={data:data,to:o.address},l=o.overrides;if(null!=l.nonce&&(c.nonce=h.a.from(l.nonce).toNumber()),null!=l.gasLimit&&(c.gasLimit=h.a.from(l.gasLimit)),null!=l.gasPrice&&(c.gasPrice=h.a.from(l.gasPrice)),null!=l.maxFeePerGas&&(c.maxFeePerGas=h.a.from(l.maxFeePerGas)),null!=l.maxPriorityFeePerGas&&(c.maxPriorityFeePerGas=h.a.from(l.maxPriorityFeePerGas)),null!=l.from&&(c.from=l.from),null!=l.type&&(c.type=l.type),null!=l.accessList&&(c.accessList=Object(y.b)(l.accessList)),null==c.gasLimit&&null!=e.gas){let t=21e3;const n=Object(d.a)(data);for(let i=0;i<n.length;i++)t+=4,n[i]&&(t+=64);c.gasLimit=h.a.from(e.gas).add(t);}if(l.value){const t=h.a.from(l.value);t.isZero()||e.payable||_.throwError("non-payable method cannot override value",v.b.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:r.value}),c.value=t;}l.customData&&(c.customData=Object(m.g)(l.customData)),l.ccipReadEnabled&&(c.ccipReadEnabled=!!l.ccipReadEnabled),delete r.nonce,delete r.gasLimit,delete r.gasPrice,delete r.from,delete r.value,delete r.type,delete r.accessList,delete r.maxFeePerGas,delete r.maxPriorityFeePerGas,delete r.customData,delete r.ccipReadEnabled;const A=Object.keys(r).filter(t=>null!=r[t]);return A.length&&_.throwError(`cannot override ${A.map(t=>JSON.stringify(t)).join(",")}`,v.b.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:A}),c;});}function M(t,e){const n=e.wait.bind(e);e.wait=e=>n(e).then(e=>(e.events=e.logs.map(n=>{let r=Object(m.c)(n),o=null;try{o=t.interface.parseLog(n);}catch(t){}return o&&(r.args=o.args,r.decode=(data,e)=>t.interface.decodeEventLog(o.eventFragment,data,e),r.event=o.name,r.eventSignature=o.signature),r.removeListener=()=>t.provider,r.getBlock=()=>t.provider.getBlock(e.blockHash),r.getTransaction=()=>t.provider.getTransaction(e.transactionHash),r.getTransactionReceipt=()=>Promise.resolve(e),r;}),e));}function k(t,e,n){const r=t.signer||t.provider;return function(...o){return w(this,void 0,void 0,function*(){let c;if(o.length===e.inputs.length+1&&"object"==typeof o[o.length-1]){const t=Object(m.g)(o.pop());null!=t.blockTag&&(c=yield t.blockTag),delete t.blockTag,o.push(t);}null!=t.deployTransaction&&(yield t._deployed(c));const l=yield O(t,e,o),f=yield r.call(l,c);try{let r=t.interface.decodeFunctionResult(e,f);return n&&1===e.outputs.length&&(r=r[0]),r;}catch(e){throw e.code===v.b.errors.CALL_EXCEPTION&&(e.address=t.address,e.args=o,e.transaction=l),e;}});};}function x(t,e,n){return e.constant?k(t,e,n):function(t,e){return function(...n){return w(this,void 0,void 0,function*(){t.signer||_.throwError("sending a transaction requires a signer",v.b.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),null!=t.deployTransaction&&(yield t._deployed());const r=yield O(t,e,n),o=yield t.signer.sendTransaction(r);return M(t,o),o;});};}(t,e);}function S(filter){return!filter.address||null!=filter.topics&&0!==filter.topics.length?(filter.address||"*")+"@"+(filter.topics?filter.topics.map(t=>Array.isArray(t)?t.join("|"):t).join(":"):""):"*";}class j{constructor(t,filter){Object(m.d)(this,"tag",t),Object(m.d)(this,"filter",filter),this._listeners=[];}addListener(t,e){this._listeners.push({listener:t,once:e});}removeListener(t){let e=!1;this._listeners=this._listeners.filter(n=>!(!e&&n.listener===t)||(e=!0,!1));}removeAllListeners(){this._listeners=[];}listeners(){return this._listeners.map(i=>i.listener);}listenerCount(){return this._listeners.length;}run(t){const e=this.listenerCount();return this._listeners=this._listeners.filter(e=>{const n=t.slice();return setTimeout(()=>{e.listener.apply(this,n);},0),!e.once;}),e;}prepareEvent(t){}getEmit(t){return[t];}}class N extends j{constructor(){super("error",null);}}class I extends j{constructor(address,t,e,n){const filter={address:address};let r=t.getEventTopic(e);n?(r!==n[0]&&_.throwArgumentError("topic mismatch","topics",n),filter.topics=n.slice()):filter.topics=[r],super(S(filter),filter),Object(m.d)(this,"address",address),Object(m.d)(this,"interface",t),Object(m.d)(this,"fragment",e);}prepareEvent(t){super.prepareEvent(t),t.event=this.fragment.name,t.eventSignature=this.fragment.format(),t.decode=(data,t)=>this.interface.decodeEventLog(this.fragment,data,t);try{t.args=this.interface.decodeEventLog(this.fragment,t.data,t.topics);}catch(e){t.args=null,t.decodeError=e;}}getEmit(t){const e=Object(r.d)(t.args);if(e.length)throw e[0].error;const n=(t.args||[]).slice();return n.push(t),n;}}class P extends j{constructor(address,t){super("*",{address:address}),Object(m.d)(this,"address",address),Object(m.d)(this,"interface",t);}prepareEvent(t){super.prepareEvent(t);try{const e=this.interface.parseLog(t);t.event=e.name,t.eventSignature=e.signature,t.decode=(data,t)=>this.interface.decodeEventLog(e.eventFragment,data,t),t.args=e.args;}catch(t){}}}class R{constructor(t,e,n){Object(m.d)(this,"interface",Object(m.e)(new.target,"getInterface")(e)),null==n?(Object(m.d)(this,"provider",null),Object(m.d)(this,"signer",null)):l.a.isSigner(n)?(Object(m.d)(this,"provider",n.provider||null),Object(m.d)(this,"signer",n)):c.b.isProvider(n)?(Object(m.d)(this,"provider",n),Object(m.d)(this,"signer",null)):_.throwArgumentError("invalid signer or provider","signerOrProvider",n),Object(m.d)(this,"callStatic",{}),Object(m.d)(this,"estimateGas",{}),Object(m.d)(this,"functions",{}),Object(m.d)(this,"populateTransaction",{}),Object(m.d)(this,"filters",{});{const t={};Object.keys(this.interface.events).forEach(e=>{const n=this.interface.events[e];Object(m.d)(this.filters,e,(...t)=>({address:this.address,topics:this.interface.encodeFilterTopics(n,t)})),t[n.name]||(t[n.name]=[]),t[n.name].push(e);}),Object.keys(t).forEach(e=>{const n=t[e];1===n.length?Object(m.d)(this.filters,e,this.filters[n[0]]):_.warn(`Duplicate definition of ${e} (${n.join(", ")})`);});}if(Object(m.d)(this,"_runningEvents",{}),Object(m.d)(this,"_wrappedEmits",{}),null==t&&_.throwArgumentError("invalid contract address or ENS name","addressOrName",t),Object(m.d)(this,"address",t),this.provider)Object(m.d)(this,"resolvedAddress",E(this.provider,t));else try{Object(m.d)(this,"resolvedAddress",Promise.resolve(Object(f.a)(t)));}catch(t){_.throwError("provider is required to use ENS name as contract address",v.b.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"});}this.resolvedAddress.catch(t=>{});const r={},o={};Object.keys(this.interface.functions).forEach(t=>{const e=this.interface.functions[t];if(o[t])_.warn(`Duplicate ABI entry for ${JSON.stringify(t)}`);else{o[t]=!0;{const n=e.name;r[`%${n}`]||(r[`%${n}`]=[]),r[`%${n}`].push(t);}null==this[t]&&Object(m.d)(this,t,x(this,e,!0)),null==this.functions[t]&&Object(m.d)(this.functions,t,x(this,e,!1)),null==this.callStatic[t]&&Object(m.d)(this.callStatic,t,k(this,e,!0)),null==this.populateTransaction[t]&&Object(m.d)(this.populateTransaction,t,function(t,e){return function(...n){return O(t,e,n);};}(this,e)),null==this.estimateGas[t]&&Object(m.d)(this.estimateGas,t,function(t,e){const n=t.signer||t.provider;return function(...r){return w(this,void 0,void 0,function*(){n||_.throwError("estimate require a provider or signer",v.b.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"});const o=yield O(t,e,r);return yield n.estimateGas(o);});};}(this,e));}}),Object.keys(r).forEach(t=>{const e=r[t];if(e.length>1)return;t=t.substring(1);const n=e[0];try{null==this[t]&&Object(m.d)(this,t,this[n]);}catch(t){}null==this.functions[t]&&Object(m.d)(this.functions,t,this.functions[n]),null==this.callStatic[t]&&Object(m.d)(this.callStatic,t,this.callStatic[n]),null==this.populateTransaction[t]&&Object(m.d)(this.populateTransaction,t,this.populateTransaction[n]),null==this.estimateGas[t]&&Object(m.d)(this.estimateGas,t,this.estimateGas[n]);});}static getContractAddress(t){return Object(f.b)(t);}static getInterface(t){return o.b.isInterface(t)?t:new o.b(t);}deployed(){return this._deployed();}_deployed(t){return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then(()=>this):this._deployedPromise=this.provider.getCode(this.address,t).then(code=>("0x"===code&&_.throwError("contract not deployed",v.b.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:"getDeployed"}),this))),this._deployedPromise;}fallback(t){this.signer||_.throwError("sending a transactions require a signer",v.b.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});const e=Object(m.g)(t||{});return["from","to"].forEach(function(t){null!=e[t]&&_.throwError("cannot override "+t,v.b.errors.UNSUPPORTED_OPERATION,{operation:t});}),e.to=this.resolvedAddress,this.deployed().then(()=>this.signer.sendTransaction(e));}connect(t){"string"==typeof t&&(t=new l.b(t,this.provider));const e=new this.constructor(this.address,this.interface,t);return this.deployTransaction&&Object(m.d)(e,"deployTransaction",this.deployTransaction),e;}attach(t){return new this.constructor(t,this.interface,this.signer||this.provider);}static isIndexed(t){return o.a.isIndexed(t);}_normalizeRunningEvent(t){return this._runningEvents[t.tag]?this._runningEvents[t.tag]:t;}_getRunningEvent(t){if("string"==typeof t){if("error"===t)return this._normalizeRunningEvent(new N());if("event"===t)return this._normalizeRunningEvent(new j("event",null));if("*"===t)return this._normalizeRunningEvent(new P(this.address,this.interface));const e=this.interface.getEvent(t);return this._normalizeRunningEvent(new I(this.address,this.interface,e));}if(t.topics&&t.topics.length>0){try{const e=t.topics[0];if("string"!=typeof e)throw new Error("invalid topic");const n=this.interface.getEvent(e);return this._normalizeRunningEvent(new I(this.address,this.interface,n,t.topics));}catch(t){}const filter={address:this.address,topics:t.topics};return this._normalizeRunningEvent(new j(S(filter),filter));}return this._normalizeRunningEvent(new P(this.address,this.interface));}_checkRunningEvents(t){if(0===t.listenerCount()){delete this._runningEvents[t.tag];const e=this._wrappedEmits[t.tag];e&&t.filter&&(this.provider.off(t.filter,e),delete this._wrappedEmits[t.tag]);}}_wrapEvent(t,e,n){const r=Object(m.c)(e);return r.removeListener=()=>{n&&(t.removeListener(n),this._checkRunningEvents(t));},r.getBlock=()=>this.provider.getBlock(e.blockHash),r.getTransaction=()=>this.provider.getTransaction(e.transactionHash),r.getTransactionReceipt=()=>this.provider.getTransactionReceipt(e.transactionHash),t.prepareEvent(r),r;}_addEventListener(t,e,n){if(this.provider||_.throwError("events require a provider or a signer with a provider",v.b.errors.UNSUPPORTED_OPERATION,{operation:"once"}),t.addListener(e,n),this._runningEvents[t.tag]=t,!this._wrappedEmits[t.tag]){const n=n=>{let r=this._wrapEvent(t,n,e);if(null==r.decodeError)try{const e=t.getEmit(r);this.emit(t.filter,...e);}catch(t){r.decodeError=t.error;}null!=t.filter&&this.emit("event",r),null!=r.decodeError&&this.emit("error",r.decodeError,r);};this._wrappedEmits[t.tag]=n,null!=t.filter&&this.provider.on(t.filter,n);}}queryFilter(t,e,n){const r=this._getRunningEvent(t),filter=Object(m.g)(r.filter);return"string"==typeof e&&Object(d.l)(e,32)?(null!=n&&_.throwArgumentError("cannot specify toBlock with blockhash","toBlock",n),filter.blockHash=e):(filter.fromBlock=null!=e?e:0,filter.toBlock=null!=n?n:"latest"),this.provider.getLogs(filter).then(t=>t.map(t=>this._wrapEvent(r,t,null)));}on(t,e){return this._addEventListener(this._getRunningEvent(t),e,!1),this;}once(t,e){return this._addEventListener(this._getRunningEvent(t),e,!0),this;}emit(t,...e){if(!this.provider)return!1;const n=this._getRunningEvent(t),r=n.run(e)>0;return this._checkRunningEvents(n),r;}listenerCount(t){return this.provider?null==t?Object.keys(this._runningEvents).reduce((t,e)=>t+this._runningEvents[e].listenerCount(),0):this._getRunningEvent(t).listenerCount():0;}listeners(t){if(!this.provider)return[];if(null==t){const t=[];for(let e in this._runningEvents)this._runningEvents[e].listeners().forEach(e=>{t.push(e);});return t;}return this._getRunningEvent(t).listeners();}removeAllListeners(t){if(!this.provider)return this;if(null==t){for(const t in this._runningEvents){const e=this._runningEvents[t];e.removeAllListeners(),this._checkRunningEvents(e);}return this;}const e=this._getRunningEvent(t);return e.removeAllListeners(),this._checkRunningEvents(e),this;}off(t,e){if(!this.provider)return this;const n=this._getRunningEvent(t);return n.removeListener(e),this._checkRunningEvents(n),this;}removeListener(t,e){return this.off(t,e);}}class C extends R{}class B{constructor(t,e,n){let r=null;r="string"==typeof e?e:Object(d.j)(e)?Object(d.i)(e):e&&"string"==typeof e.object?e.object:"!","0x"!==r.substring(0,2)&&(r="0x"+r),(!Object(d.l)(r)||r.length%2)&&_.throwArgumentError("invalid bytecode","bytecode",e),n&&!l.a.isSigner(n)&&_.throwArgumentError("invalid signer","signer",n),Object(m.d)(this,"bytecode",r),Object(m.d)(this,"interface",Object(m.e)(new.target,"getInterface")(t)),Object(m.d)(this,"signer",n||null);}getDeployTransaction(...t){let e={};if(t.length===this.interface.deploy.inputs.length+1&&"object"==typeof t[t.length-1]){e=Object(m.g)(t.pop());for(const t in e)if(!A[t])throw new Error("unknown transaction override "+t);}if(["data","from","to"].forEach(t=>{null!=e[t]&&_.throwError("cannot override "+t,v.b.errors.UNSUPPORTED_OPERATION,{operation:t});}),e.value){h.a.from(e.value).isZero()||this.interface.deploy.payable||_.throwError("non-payable constructor cannot override value",v.b.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:e.value});}return _.checkArgumentCount(t.length,this.interface.deploy.inputs.length," in Contract constructor"),e.data=Object(d.i)(Object(d.b)([this.bytecode,this.interface.encodeDeploy(t)])),e;}deploy(...t){return w(this,void 0,void 0,function*(){let e={};t.length===this.interface.deploy.inputs.length+1&&(e=t.pop()),_.checkArgumentCount(t.length,this.interface.deploy.inputs.length," in Contract constructor");const n=yield T(this.signer,t,this.interface.deploy.inputs);n.push(e);const r=this.getDeployTransaction(...n),o=yield this.signer.sendTransaction(r),address=Object(m.e)(this.constructor,"getContractAddress")(o),c=Object(m.e)(this.constructor,"getContract")(address,this.interface,this.signer);return M(c,o),Object(m.d)(c,"deployTransaction",o),c;});}attach(address){return this.constructor.getContract(address,this.interface,this.signer);}connect(t){return new this.constructor(this.interface,this.bytecode,t);}static fromSolidity(t,e){null==t&&_.throwError("missing compiler output",v.b.errors.MISSING_ARGUMENT,{argument:"compilerOutput"}),"string"==typeof t&&(t=JSON.parse(t));const n=t.abi;let r=null;return t.bytecode?r=t.bytecode:t.evm&&t.evm.bytecode&&(r=t.evm.bytecode),new this(n,r,e);}static getInterface(t){return C.getInterface(t);}static getContractAddress(t){return Object(f.b)(t);}static getContract(address,t,e){return new C(address,t,e);}}},function(t,e,n){"use strict";n.r(e),n.d(e,"AddressZero",function(){return r.a;}),n.d(e,"NegativeOne",function(){return o.d;}),n.d(e,"Zero",function(){return o.h;}),n.d(e,"One",function(){return o.e;}),n.d(e,"Two",function(){return o.f;}),n.d(e,"WeiPerEther",function(){return o.g;}),n.d(e,"MaxUint256",function(){return o.b;}),n.d(e,"MinInt256",function(){return o.c;}),n.d(e,"MaxInt256",function(){return o.a;}),n.d(e,"HashZero",function(){return c.a;}),n.d(e,"EtherSymbol",function(){return l;});var r=n(129),o=n(41),c=n(128);const l="Ξ";},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t;}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t;},r(t);}n.d(e,"a",function(){return r;});},function(t,e,n){"use strict";n.r(e),n.d(e,"workerEvents",function(){return r;}),n.d(e,"numbers",function(){return o;});var r={INIT_WORKER:"initWorker",GET_COMMITMENT_EVENTS:"get_commitment_events",GET_UNSPENT_EVENTS:"get_unspent_events",GET_NULLIFIER_EVENT:"get_nullifier_event",GET_NULLIFIER_EVENTS_FROM_TX_HASH:"get_nullifier_events_from_tx_hash",UPDATE_NULLIFIER_EVENTS:"update_nullifier_events",GET_BATCH_EVENTS:"get_batch_events",GET_BATCH_COMMITMENTS_EVENTS:"get_batch_commitments_events",GET_EVENTS_FROM_TX_HASH:"get_events_from_tx_hash",SAVE_EVENTS:"save_events",GET_CACHED_EVENTS:"get_cached_events",GET_CACHED_COMMITMENTS_EVENTS:"get_cached_commitments_events",SAVE_LAST_SYNC_BLOCK:"save_last_sync_block"},o={ZERO:0,TWO:2,ONE:1,BYTES_31:31,BYTES_62:62,IS_SPENT_INDEX:1,OX_LENGTH:2,RECALL_DELAY:500,NULLIFIER_LENGTH:66,NONCE_BUF_LENGTH:24,COMMITMENTS_CHAIN:100,DEPLOYED_BLOCK:19097755,DECRYPT_WORKERS_COUNT:8,MIN_BLOCKS_INTERVAL_LINE:2e5,EPHEM_PUBLIC_KEY_BUF_LENGTH:56};},function(t,e,n){"use strict";n.d(e,"a",function(){return c;});var r=n(5),o=n(27);function c(text){return Object(r.a)(Object(o.f)(text));}},function(t,e,n){var r=n(130),o=n(14),c=n(22).String;t.exports=!!Object.getOwnPropertySymbols&&!o(function(){var symbol=Symbol();return!c(symbol)||!(Object(symbol)instanceof Symbol)||!Symbol.sham&&r&&r<41;});},function(t,e,n){var r=n(17),o=n(34),c=n(137),l=n(103);t.exports=function(t,e,n,f){f||(f={});var h=f.enumerable,d=void 0!==f.name?f.name:e;if(r(n)&&c(n,d,f),f.global)h?t[e]=n:l(e,n);else{try{f.unsafe?t[e]&&(h=!0):delete t[e];}catch(t){}h?t[e]=n:o.f(t,e,{value:n,enumerable:!1,configurable:!f.nonConfigurable,writable:!f.nonWritable});}return t;};},function(t,e,n){var r=n(26),o=n(39),c=n(114),l=n(73),f=n(42),h=n(78),d=n(25),m=n(134),y=Object.getOwnPropertyDescriptor;e.f=r?y:function(t,e){if(t=f(t),e=h(e),m)try{return y(t,e);}catch(t){}if(d(t,e))return l(!o(c.f,t,e),t[e]);};},function(t,e,n){"use strict";n.d(e,"a",function(){return k;}),n.d(e,"b",function(){return x;}),n.d(e,"c",function(){return S;});var r=n(4),o=n(36),c=n(31),l=n(0),f=n(257),h=n(258),d=n(16),m=n(5),y=n(1),v=n(95),w=n(28),_=n(60),A=n(93),E=n(11),T=n(2);var O=function(t,e,n,r){return new(n||(n=Promise))(function(o,c){function l(t){try{h(r.next(t));}catch(t){c(t);}}function f(t){try{h(r.throw(t));}catch(t){c(t);}}function h(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e);})).then(l,f);}h((r=r.apply(t,e||[])).next());});};const M=new T.b("wallet/5.7.0");class k extends c.a{constructor(t,e){if(super(),null!=(n=t)&&Object(l.l)(n.privateKey,32)&&null!=n.address){const e=new w.a(t.privateKey);if(Object(y.d)(this,"_signingKey",()=>e),Object(y.d)(this,"address",Object(E.c)(this.publicKey)),this.address!==Object(r.a)(t.address)&&M.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),function(t){const e=t.mnemonic;return e&&e.phrase;}(t)){const e=t.mnemonic;Object(y.d)(this,"_mnemonic",()=>({phrase:e.phrase,path:e.path||d.b,locale:e.locale||"en"}));const n=this.mnemonic,r=d.a.fromMnemonic(n.phrase,null,n.locale).derivePath(n.path);Object(E.c)(r.privateKey)!==this.address&&M.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]");}else Object(y.d)(this,"_mnemonic",()=>null);}else{if(w.a.isSigningKey(t))"secp256k1"!==t.curve&&M.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),Object(y.d)(this,"_signingKey",()=>t);else{"string"==typeof t&&t.match(/^[0-9a-f]*$/i)&&64===t.length&&(t="0x"+t);const e=new w.a(t);Object(y.d)(this,"_signingKey",()=>e);}Object(y.d)(this,"_mnemonic",()=>null),Object(y.d)(this,"address",Object(E.c)(this.publicKey));}var n;e&&!o.b.isProvider(e)&&M.throwArgumentError("invalid provider","provider",e),Object(y.d)(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 k(this,t);}signTransaction(t){return Object(y.f)(t).then(e=>{null!=e.from&&(Object(r.a)(e.from)!==this.address&&M.throwArgumentError("transaction from address mismatch","transaction.from",t.from),delete e.from);const n=this._signingKey().signDigest(Object(m.a)(Object(E.f)(e)));return Object(E.f)(e,n);});}signMessage(t){return O(this,void 0,void 0,function*(){return Object(l.m)(this._signingKey().signDigest(Object(f.a)(t)));});}_signTypedData(t,e,n){return O(this,void 0,void 0,function*(){const r=yield h.a.resolveNames(t,e,n,t=>(null==this.provider&&M.throwError("cannot resolve ENS names without a provider",T.b.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:t}),this.provider.resolveName(t)));return Object(l.m)(this._signingKey().signDigest(h.a.hash(r.domain,e,r.value)));});}encrypt(t,e,n){if("function"!=typeof e||n||(n=e,e={}),n&&"function"!=typeof n)throw new Error("invalid callback");return e||(e={}),Object(_.c)(this,t,e,n);}static createRandom(t){let e=Object(v.a)(16);t||(t={}),t.extraEntropy&&(e=Object(l.a)(Object(l.e)(Object(m.a)(Object(l.b)([e,t.extraEntropy])),0,16)));const n=Object(d.c)(e,t.locale);return k.fromMnemonic(n,t.path,t.locale);}static fromEncryptedJson(t,e,n){return Object(A.a)(t,e,n).then(t=>new k(t));}static fromEncryptedJsonSync(t,e){return new k(Object(A.b)(t,e));}static fromMnemonic(t,path,e){return path||(path=d.b),new k(d.a.fromMnemonic(t,null,e).derivePath(path));}}function x(t,e){return Object(E.e)(Object(f.a)(t),e);}function S(t,e,n,r){return Object(E.e)(h.a.hash(t,e,n),r);}},function(t,e,n){"use strict";n.d(e,"b",function(){return P;}),n.d(e,"a",function(){return R;}),n.d(e,"c",function(){return C;});var r=n(33),o=n.n(r),c=n(94),l=n.n(c),f=n(4),h=n(0),d=n(16),m=n(5),y=n(256),v=n(95),w=n(1),_=n(11),A=n(6),E=n(2),T=n(91),O=function(t,e,n,r){return new(n||(n=Promise))(function(o,c){function l(t){try{h(r.next(t));}catch(t){c(t);}}function f(t){try{h(r.throw(t));}catch(t){c(t);}}function h(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e);})).then(l,f);}h((r=r.apply(t,e||[])).next());});};const M=new E.b(T.a);function k(t){return null!=t&&t.mnemonic&&t.mnemonic.phrase;}class x extends w.a{isKeystoreAccount(t){return!(!t||!t._isKeystoreAccount);}}function S(data,t){const e=Object(A.b)(Object(A.c)(data,"crypto/ciphertext"));if(Object(h.i)(Object(m.a)(Object(h.b)([t.slice(16,32),e]))).substring(2)!==Object(A.c)(data,"crypto/mac").toLowerCase())throw new Error("invalid password");const n=function(data,t,e){if("aes-128-ctr"===Object(A.c)(data,"crypto/cipher")){const n=Object(A.b)(Object(A.c)(data,"crypto/cipherparams/iv")),r=new o.a.Counter(n),c=new o.a.ModeOfOperation.ctr(t,r);return Object(h.a)(c.decrypt(e));}return null;}(data,t.slice(0,16),e);n||M.throwError("unsupported cipher",E.b.errors.UNSUPPORTED_OPERATION,{operation:"decrypt"});const r=t.slice(32,64),address=Object(_.c)(n);if(data.address){let t=data.address.toLowerCase();if("0x"!==t.substring(0,2)&&(t="0x"+t),Object(f.a)(t)!==address)throw new Error("address mismatch");}const c={_isKeystoreAccount:!0,address:address,privateKey:Object(h.i)(n)};if("0.1"===Object(A.c)(data,"x-ethers/version")){const t=Object(A.b)(Object(A.c)(data,"x-ethers/mnemonicCiphertext")),e=Object(A.b)(Object(A.c)(data,"x-ethers/mnemonicCounter")),n=new o.a.Counter(e),l=new o.a.ModeOfOperation.ctr(r,n),path=Object(A.c)(data,"x-ethers/path")||d.b,f=Object(A.c)(data,"x-ethers/locale")||"en",m=Object(h.a)(l.decrypt(t));try{const t=Object(d.c)(m,f),e=d.a.fromMnemonic(t,null,f).derivePath(path);if(e.privateKey!=c.privateKey)throw new Error("mnemonic mismatch");c.mnemonic=e.mnemonic;}catch(t){if(t.code!==E.b.errors.INVALID_ARGUMENT||"wordlist"!==t.argument)throw t;}}return new x(c);}function j(t,e,n,r,o){return Object(h.a)(Object(y.a)(t,e,n,r,o));}function N(t,e,n,r,o){return Promise.resolve(j(t,e,n,r,o));}function I(data,t,e,n,r){const o=Object(A.a)(t),c=Object(A.c)(data,"crypto/kdf");if(c&&"string"==typeof c){const t=function(t,e){return M.throwArgumentError("invalid key-derivation function parameters",t,e);};if("scrypt"===c.toLowerCase()){const e=Object(A.b)(Object(A.c)(data,"crypto/kdfparams/salt")),l=parseInt(Object(A.c)(data,"crypto/kdfparams/n")),f=parseInt(Object(A.c)(data,"crypto/kdfparams/r")),p=parseInt(Object(A.c)(data,"crypto/kdfparams/p"));l&&f&&p||t("kdf",c),0!=(l&l-1)&&t("N",l);const h=parseInt(Object(A.c)(data,"crypto/kdfparams/dklen"));return 32!==h&&t("dklen",h),n(o,e,l,f,p,64,r);}if("pbkdf2"===c.toLowerCase()){const n=Object(A.b)(Object(A.c)(data,"crypto/kdfparams/salt"));let r=null;const c=Object(A.c)(data,"crypto/kdfparams/prf");"hmac-sha256"===c?r="sha256":"hmac-sha512"===c?r="sha512":t("prf",c);const l=parseInt(Object(A.c)(data,"crypto/kdfparams/c")),f=parseInt(Object(A.c)(data,"crypto/kdfparams/dklen"));return 32!==f&&t("dklen",f),e(o,n,l,f,r);}}return M.throwArgumentError("unsupported key-derivation function","kdf",c);}function P(t,e){const data=JSON.parse(t);return S(data,I(data,e,j,l.a.syncScrypt));}function R(t,e,n){return O(this,void 0,void 0,function*(){const data=JSON.parse(t);return S(data,yield I(data,e,N,l.a.scrypt,n));});}function C(t,e,n,r){try{if(Object(f.a)(t.address)!==Object(_.c)(t.privateKey))throw new Error("address/privateKey mismatch");if(k(t)){const e=t.mnemonic;if(d.a.fromMnemonic(e.phrase,null,e.locale).derivePath(e.path||d.b).privateKey!=t.privateKey)throw new Error("mnemonic mismatch");}}catch(t){return Promise.reject(t);}"function"!=typeof n||r||(r=n,n={}),n||(n={});const c=Object(h.a)(t.privateKey),y=Object(A.a)(e);let w=null,path=null,E=null;if(k(t)){const e=t.mnemonic;w=Object(h.a)(Object(d.f)(e.phrase,e.locale||"en")),path=e.path||d.b,E=e.locale||"en";}let T=n.client;T||(T="ethers.js");let O=null;O=n.salt?Object(h.a)(n.salt):Object(v.a)(32);let M=null;if(n.iv){if(M=Object(h.a)(n.iv),16!==M.length)throw new Error("invalid iv");}else M=Object(v.a)(16);let x=null;if(n.uuid){if(x=Object(h.a)(n.uuid),16!==x.length)throw new Error("invalid uuid");}else x=Object(v.a)(16);let S=1<<17,j=8,p=1;return n.scrypt&&(n.scrypt.N&&(S=n.scrypt.N),n.scrypt.r&&(j=n.scrypt.r),n.scrypt.p&&(p=n.scrypt.p)),l.a.scrypt(y,O,S,j,p,64,r).then(e=>{const n=(e=Object(h.a)(e)).slice(0,16),r=e.slice(16,32),l=e.slice(32,64),f=new o.a.Counter(M),d=new o.a.ModeOfOperation.ctr(n,f),y=Object(h.a)(d.encrypt(c)),_=Object(m.a)(Object(h.b)([r,y])),data={address:t.address.substring(2).toLowerCase(),id:Object(A.d)(x),version:3,crypto:{cipher:"aes-128-ctr",cipherparams:{iv:Object(h.i)(M).substring(2)},ciphertext:Object(h.i)(y).substring(2),kdf:"scrypt",kdfparams:{salt:Object(h.i)(O).substring(2),n:S,dklen:32,p:p,r:j},mac:_.substring(2)}};if(w){const t=Object(v.a)(16),e=new o.a.Counter(t),n=new o.a.ModeOfOperation.ctr(l,e),r=Object(h.a)(n.encrypt(w)),c=new Date(),f=c.getUTCFullYear()+"-"+Object(A.e)(c.getUTCMonth()+1,2)+"-"+Object(A.e)(c.getUTCDate(),2)+"T"+Object(A.e)(c.getUTCHours(),2)+"-"+Object(A.e)(c.getUTCMinutes(),2)+"-"+Object(A.e)(c.getUTCSeconds(),2)+".0Z";data["x-ethers"]={client:T,gethFilename:"UTC--"+f+"--"+data.address,mnemonicCounter:Object(h.i)(t).substring(2),mnemonicCiphertext:Object(h.i)(r).substring(2),path:path,locale:E,version:"0.1"};}return JSON.stringify(data);});}},,,function(t,e){function n(t,e){if(!t)throw new Error(e||"Assertion failed");}t.exports=n,n.equal=function(t,e,n){if(t!=e)throw new Error(n||"Assertion failed: "+t+" != "+e);};},function(t,e,n){"use strict";var r=n(37),o=n(63);function c(){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=c,c.prototype.update=function(t,e){if(t=r.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var n=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-n,t.length),0===this.pending.length&&(this.pending=null),t=r.join32(t,0,t.length-n,this.endian);for(var i=0;i<t.length;i+=this._delta32)this._update(t,i,i+this._delta32);}return this;},c.prototype.digest=function(t){return this.update(this._pad()),o(null===this.pending),this._digest(t);},c.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,n=e-(t+this.padLength)%e,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(t<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=t>>>24&255,r[i++]=t>>>16&255,r[i++]=t>>>8&255,r[i++]=255&t;}else for(r[i++]=255&t,r[i++]=t>>>8&255,r[i++]=t>>>16&255,r[i++]=t>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r;};},function(t,e,n){"use strict";n.r(e);var r=n(98);n.d(e,"decode",function(){return r.a;}),n.d(e,"encode",function(){return r.b;});},function(t,e,n){var r=n(67),o=n(102);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{});})("versions",[]).push({version:"3.31.1",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.1/LICENSE",source:"https://github.com/zloirock/core-js"});},function(t,e){t.exports=!1;},function(t,e,n){var r=n(14);t.exports=!r(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype");});},function(t,e,n){var r=n(104),o=TypeError;t.exports=function(t){if(r(t))throw o("Can't call method on "+t);return t;};},function(t,e,n){var r=n(44),o=n(17),c=n(107),l=n(132),f=Object;t.exports=l?function(t){return"symbol"==typeof t;}:function(t){var e=r("Symbol");return o(e)&&c(e.prototype,f(t));};},function(t,e,n){var r=n(17),o=n(72),c=TypeError;t.exports=function(t){if(r(t))return t;throw c(o(t)+" is not a function");};},function(t,e){var n=String;t.exports=function(t){try{return n(t);}catch(t){return"Object";}};},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e};};},function(t,e,n){var r=n(191);t.exports=function(t){return r(t.length);};},function(t,e,n){var r,o=n(38),c=n(148),l=n(116),f=n(81),html=n(201),h=n(106),d=n(80),m="prototype",y="script",v=d("IE_PROTO"),w=function(){},_=function(content){return"<"+y+">"+content+"</"+y+">";},A=function(t){t.write(_("")),t.close();var e=t.parentWindow.Object;return t=null,e;},E=function(){try{r=new ActiveXObject("htmlfile");}catch(t){}var t,iframe,e;E="undefined"!=typeof document?document.domain&&r?A(r):(iframe=h("iframe"),e="java"+y+":",iframe.style.display="none",html.appendChild(iframe),iframe.src=String(e),(t=iframe.contentWindow.document).open(),t.write(_("document.F=Object")),t.close(),t.F):A(r);for(var n=l.length;n--;)delete E[m][l[n]];return E();};f[v]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(w[m]=o(t),n=new w(),w[m]=null,n[v]=t):n=E(),void 0===e?n:c.f(n,e);};},function(t,e,n){"use strict";n.r(e),n.d(e,"Provider",function(){return r.b;}),n.d(e,"BaseProvider",function(){return pt;}),n.d(e,"Resolver",function(){return lt;}),n.d(e,"UrlJsonRpcProvider",function(){return Ft;}),n.d(e,"FallbackProvider",function(){return ve;}),n.d(e,"AlchemyProvider",function(){return zt;}),n.d(e,"AlchemyWebSocketProvider",function(){return Gt;}),n.d(e,"AnkrProvider",function(){return Wt;}),n.d(e,"CloudflareProvider",function(){return Yt;}),n.d(e,"EtherscanProvider",function(){return re;}),n.d(e,"InfuraProvider",function(){return Te;}),n.d(e,"InfuraWebSocketProvider",function(){return Ee;}),n.d(e,"JsonRpcProvider",function(){return St;}),n.d(e,"JsonRpcBatchProvider",function(){return Oe;}),n.d(e,"NodesmithProvider",function(){return ke;}),n.d(e,"PocketProvider",function(){return je;}),n.d(e,"StaticJsonRpcProvider",function(){return Lt;}),n.d(e,"Web3Provider",function(){return Re;}),n.d(e,"WebSocketProvider",function(){return Rt;}),n.d(e,"IpcProvider",function(){return we;}),n.d(e,"JsonRpcSigner",function(){return Mt;}),n.d(e,"getDefaultProvider",function(){return Be;}),n.d(e,"getNetwork",function(){return v;}),n.d(e,"isCommunityResource",function(){return D;}),n.d(e,"isCommunityResourcable",function(){return F;}),n.d(e,"showThrottleMessage",function(){return G;}),n.d(e,"Formatter",function(){return L;});var r=n(36),o=n(2);const c=new o.b("networks/5.7.1");function l(t){const e=function(e,n){null==n&&(n={});const r=[];if(e.InfuraProvider&&"-"!==n.infura)try{r.push(new e.InfuraProvider(t,n.infura));}catch(t){}if(e.EtherscanProvider&&"-"!==n.etherscan)try{r.push(new e.EtherscanProvider(t,n.etherscan));}catch(t){}if(e.AlchemyProvider&&"-"!==n.alchemy)try{r.push(new e.AlchemyProvider(t,n.alchemy));}catch(t){}if(e.PocketProvider&&"-"!==n.pocket){const o=["goerli","ropsten","rinkeby","sepolia"];try{const c=new e.PocketProvider(t,n.pocket);c.network&&-1===o.indexOf(c.network.name)&&r.push(c);}catch(t){}}if(e.CloudflareProvider&&"-"!==n.cloudflare)try{r.push(new e.CloudflareProvider(t));}catch(t){}if(e.AnkrProvider&&"-"!==n.ankr)try{const o=["ropsten"],c=new e.AnkrProvider(t,n.ankr);c.network&&-1===o.indexOf(c.network.name)&&r.push(c);}catch(t){}if(0===r.length)return null;if(e.FallbackProvider){let o=1;return null!=n.quorum?o=n.quorum:"homestead"===t&&(o=2),new e.FallbackProvider(r,o);}return r[0];};return e.renetwork=function(t){return l(t);},e;}function f(t,e){const n=function(n,r){return n.JsonRpcProvider?new n.JsonRpcProvider(t,e):null;};return n.renetwork=function(e){return f(t,e);},n;}const h={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:l("homestead")},d={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:l("ropsten")},m={chainId:63,name:"classicMordor",_defaultProvider:f("https://www.ethercluster.com/mordor","classicMordor")},y={unspecified:{chainId:0,name:"unspecified"},homestead:h,mainnet:h,morden:{chainId:2,name:"morden"},ropsten:d,testnet:d,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:l("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:l("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:l("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:l("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:f("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:m,classicTestnet:m,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:f("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:l("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:l("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 v(t){if(null==t)return null;if("number"==typeof t){for(const e in y){const n=y[e];if(n.chainId===t)return{name:n.name,chainId:n.chainId,ensAddress:n.ensAddress||null,_defaultProvider:n._defaultProvider||null};}return{chainId:t,name:"unknown"};}if("string"==typeof t){const e=y[t];return null==e?null:{name:e.name,chainId:e.chainId,ensAddress:e.ensAddress,_defaultProvider:e._defaultProvider||null};}const e=y[t.name];if(!e)return"number"!=typeof t.chainId&&c.throwArgumentError("invalid network chainId","network",t),t;0!==t.chainId&&t.chainId!==e.chainId&&c.throwArgumentError("network chainId mismatch","network",t);let n=t._defaultProvider||null;var r;return null==n&&e._defaultProvider&&(n=(r=e._defaultProvider)&&"function"==typeof r.renetwork?e._defaultProvider.renetwork(t):e._defaultProvider),{name:t.name,chainId:e.chainId,ensAddress:t.ensAddress||e.ensAddress||null,_defaultProvider:n};}var w=n(98),_=n(43),A=n(7),E=n(0),T=n(128),O=n(261),M=n(1),k=n(165),x=n(27),S=n(15),j=n(122),N=n.n(j);const I="providers/5.7.2";var P=n(4),R=n(129),C=n(11);const B=new o.b(I);class L{constructor(){this.formats=this.getDefaultFormats();}getDefaultFormats(){const t={},address=this.address.bind(this),e=this.bigNumber.bind(this),n=this.blockTag.bind(this),data=this.data.bind(this),r=this.hash.bind(this),o=this.hex.bind(this),c=this.number.bind(this),l=this.type.bind(this);return t.transaction={hash:r,type:l,accessList:L.allowNull(this.accessList.bind(this),null),blockHash:L.allowNull(r,null),blockNumber:L.allowNull(c,null),transactionIndex:L.allowNull(c,null),confirmations:L.allowNull(c,null),from:address,gasPrice:L.allowNull(e),maxPriorityFeePerGas:L.allowNull(e),maxFeePerGas:L.allowNull(e),gasLimit:e,to:L.allowNull(address,null),value:e,nonce:c,data:data,r:L.allowNull(this.uint256),s:L.allowNull(this.uint256),v:L.allowNull(c),creates:L.allowNull(address,null),raw:L.allowNull(data)},t.transactionRequest={from:L.allowNull(address),nonce:L.allowNull(c),gasLimit:L.allowNull(e),gasPrice:L.allowNull(e),maxPriorityFeePerGas:L.allowNull(e),maxFeePerGas:L.allowNull(e),to:L.allowNull(address),value:L.allowNull(e),data:L.allowNull(t=>this.data(t,!0)),type:L.allowNull(c),accessList:L.allowNull(this.accessList.bind(this),null)},t.receiptLog={transactionIndex:c,blockNumber:c,transactionHash:r,address:address,topics:L.arrayOf(r),data:data,logIndex:c,blockHash:r},t.receipt={to:L.allowNull(this.address,null),from:L.allowNull(this.address,null),contractAddress:L.allowNull(address,null),transactionIndex:c,root:L.allowNull(o),gasUsed:e,logsBloom:L.allowNull(data),blockHash:r,transactionHash:r,logs:L.arrayOf(this.receiptLog.bind(this)),blockNumber:c,confirmations:L.allowNull(c,null),cumulativeGasUsed:e,effectiveGasPrice:L.allowNull(e),status:L.allowNull(c),type:l},t.block={hash:L.allowNull(r),parentHash:r,number:c,timestamp:c,nonce:L.allowNull(o),difficulty:this.difficulty.bind(this),gasLimit:e,gasUsed:e,miner:L.allowNull(address),extraData:data,transactions:L.allowNull(L.arrayOf(r)),baseFeePerGas:L.allowNull(e)},t.blockWithTransactions=Object(M.g)(t.block),t.blockWithTransactions.transactions=L.allowNull(L.arrayOf(this.transactionResponse.bind(this))),t.filter={fromBlock:L.allowNull(n,void 0),toBlock:L.allowNull(n,void 0),blockHash:L.allowNull(r,void 0),address:L.allowNull(address,void 0),topics:L.allowNull(this.topics.bind(this),void 0)},t.filterLog={blockNumber:L.allowNull(c),blockHash:L.allowNull(r),transactionIndex:c,removed:L.allowNull(this.boolean.bind(this)),address:address,data:L.allowFalsish(data,"0x"),topics:L.arrayOf(r),transactionHash:r,logIndex:c},t;}accessList(t){return Object(C.b)(t||[]);}number(t){return"0x"===t?0:A.a.from(t).toNumber();}type(t){return"0x"===t||null==t?0:A.a.from(t).toNumber();}bigNumber(t){return A.a.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 new Error("invalid boolean - "+t);}hex(t,e){return"string"==typeof t&&(e||"0x"===t.substring(0,2)||(t="0x"+t),Object(E.l)(t))?t.toLowerCase():B.throwArgumentError("invalid hash","value",t);}data(t,e){const n=this.hex(t,e);if(n.length%2!=0)throw new Error("invalid data; odd-length - "+t);return n;}address(t){return Object(P.a)(t);}callAddress(t){if(!Object(E.l)(t,32))return null;const address=Object(P.a)(Object(E.e)(t,12));return address===R.a?null:address;}contractAddress(t){return Object(P.b)(t);}blockTag(t){if(null==t)return"latest";if("earliest"===t)return"0x0";switch(t){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return t;}if("number"==typeof t||Object(E.l)(t))return Object(E.g)(t);throw new Error("invalid blockTag");}hash(t,e){const n=this.hex(t,e);return 32!==Object(E.d)(n)?B.throwArgumentError("invalid hash","value",t):n;}difficulty(t){if(null==t)return null;const e=A.a.from(t);try{return e.toNumber();}catch(t){}return null;}uint256(t){if(!Object(E.l)(t))throw new Error("invalid uint256");return Object(E.h)(t,32);}_block(t,e){null!=t.author&&null==t.miner&&(t.miner=t.author);const n=null!=t._difficulty?t._difficulty:t.difficulty,r=L.check(e,t);return r._difficulty=null==n?null:A.a.from(n),r;}block(t){return this._block(t,this.formats.block);}blockWithTransactions(t){return this._block(t,this.formats.blockWithTransactions);}transactionRequest(t){return L.check(this.formats.transactionRequest,t);}transactionResponse(t){null!=t.gas&&null==t.gasLimit&&(t.gasLimit=t.gas),t.to&&A.a.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=[]);const e=L.check(this.formats.transaction,t);if(null!=t.chainId){let n=t.chainId;Object(E.l)(n)&&(n=A.a.from(n).toNumber()),e.chainId=n;}else{let n=t.networkId;null==n&&null==e.v&&(n=t.chainId),Object(E.l)(n)&&(n=A.a.from(n).toNumber()),"number"!=typeof n&&null!=e.v&&(n=(e.v-35)/2,n<0&&(n=0),n=parseInt(n)),"number"!=typeof n&&(n=0),e.chainId=n;}return e.blockHash&&"x"===e.blockHash.replace(/0/g,"")&&(e.blockHash=null),e;}transaction(t){return Object(C.d)(t);}receiptLog(t){return L.check(this.formats.receiptLog,t);}receipt(t){const e=L.check(this.formats.receipt,t);if(null!=e.root)if(e.root.length<=4){const t=A.a.from(e.root).toNumber();0===t||1===t?(null!=e.status&&e.status!==t&&B.throwArgumentError("alt-root-status/status mismatch","value",{root:e.root,status:e.status}),e.status=t,delete e.root):B.throwArgumentError("invalid alt-root-status","value.root",e.root);}else 66!==e.root.length&&B.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 L.check(this.formats.filter,t);}filterLog(t){return L.check(this.formats.filterLog,t);}static check(t,object){const e={};for(const n in t)try{const r=t[n](object[n]);void 0!==r&&(e[n]=r);}catch(t){throw t.checkKey=n,t.checkValue=object[n],t;}return e;}static allowNull(t,e){return function(n){return null==n?e:t(n);};}static allowFalsish(t,e){return function(n){return n?t(n):e;};}static arrayOf(t){return function(e){if(!Array.isArray(e))throw new Error("not an array");const n=[];return e.forEach(function(e){n.push(t(e));}),n;};}}function F(t){return t&&"function"==typeof t.isCommunityResource;}function D(t){return F(t)&&t.isCommunityResource();}let U=!1;function G(){U||(U=!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 z=function(t,e,n,r){return new(n||(n=Promise))(function(o,c){function l(t){try{h(r.next(t));}catch(t){c(t);}}function f(t){try{h(r.throw(t));}catch(t){c(t);}}function h(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e);})).then(l,f);}h((r=r.apply(t,e||[])).next());});};const H=new o.b(I);function K(t){return null==t?"null":(32!==Object(E.d)(t)&&H.throwArgumentError("invalid topic","topic",t),t.toLowerCase());}function W(t){for(t=t.slice();t.length>0&&null==t[t.length-1];)t.pop();return t.map(t=>{if(Array.isArray(t)){const e={};t.forEach(t=>{e[K(t)]=!0;});const n=Object.keys(e);return n.sort(),n.join("|");}return K(t);}).join("&");}function V(t){if("string"==typeof t){if(t=t.toLowerCase(),32===Object(E.d)(t))return"tx:"+t;if(-1===t.indexOf(":"))return t;}else{if(Array.isArray(t))return"filter:*:"+W(t);if(r.a.isForkEvent(t))throw H.warn("not implemented"),new Error("not implemented");if(t&&"object"==typeof t)return"filter:"+(t.address||"*")+":"+W(t.topics||[]);}throw new Error("invalid event - "+t);}function J(){return new Date().getTime();}function Y(t){return new Promise(e=>{setTimeout(e,t);});}const Q=["block","network","pending","poll"];class X{constructor(t,e,n){Object(M.d)(this,"tag",t),Object(M.d)(this,"listener",e),Object(M.d)(this,"once",n),this._lastBlockNumber=-2,this._inflight=!1;}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(){const t=this.tag.split(":");return"tx"!==t[0]?null:t[1];}get filter(){const t=this.tag.split(":");if("filter"!==t[0])return null;const address=t[1],e=""===(data=t[2])?[]:data.split(/&/g).map(t=>{if(""===t)return[];const e=t.split("|").map(t=>"null"===t?null:t);return 1===e.length?e[0]:e;});var data;const filter={};return e.length>0&&(filter.topics=e),address&&"*"!==address&&(filter.address=address),filter;}pollable(){return this.tag.indexOf(":")>=0||Q.indexOf(this.tag)>=0;}}const Z={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 $(t){return Object(E.h)(A.a.from(t).toHexString(),32);}function tt(data){return _.a.encode(Object(E.b)([data,Object(E.e)(Object(k.c)(Object(k.c)(data)),0,4)]));}const et=new RegExp("^(ipfs)://(.*)$","i"),nt=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),et,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function it(t,e){try{return Object(x.h)(ot(t,e));}catch(t){}return null;}function ot(t,e){if("0x"===t)return null;const n=A.a.from(Object(E.e)(t,e,e+32)).toNumber(),r=A.a.from(Object(E.e)(t,n,n+32)).toNumber();return Object(E.e)(t,n+32,n+32+r);}function at(link){return link.match(/^ipfs:\/\/ipfs\//i)?link=link.substring(12):link.match(/^ipfs:\/\//i)?link=link.substring(7):H.throwArgumentError("unsupported IPFS format","link",link),`https://gateway.ipfs.io/ipfs/${link}`;}function st(t){const e=Object(E.a)(t);if(e.length>32)throw new Error("internal; should not happen");const n=new Uint8Array(32);return n.set(e,32-e.length),n;}function ut(t){if(t.length%32==0)return t;const e=new Uint8Array(32*Math.ceil(t.length/32));return e.set(t),e;}function ct(t){const e=[];let n=0;for(let i=0;i<t.length;i++)e.push(null),n+=32;for(let i=0;i<t.length;i++){const data=Object(E.a)(t[i]);e[i]=st(n),e.push(st(data.length)),e.push(ut(data)),n+=32+32*Math.ceil(data.length/32);}return Object(E.c)(e);}class lt{constructor(t,address,e,n){Object(M.d)(this,"provider",t),Object(M.d)(this,"name",e),Object(M.d)(this,"address",t.formatter.address(address)),Object(M.d)(this,"_resolvedAddress",n);}supportsWildcard(){return this._supportsEip2544||(this._supportsEip2544=this.provider.call({to:this.address,data:"0x01ffc9a79061b92300000000000000000000000000000000000000000000000000000000"}).then(t=>A.a.from(t).eq(1)).catch(t=>{if(t.code===o.b.errors.CALL_EXCEPTION)return!1;throw this._supportsEip2544=null,t;})),this._supportsEip2544;}_fetch(t,e){return z(this,void 0,void 0,function*(){const n={to:this.address,ccipReadEnabled:!0,data:Object(E.c)([t,Object(O.c)(this.name),e||"0x"])};let r=!1;(yield this.supportsWildcard())&&(r=!0,n.data=Object(E.c)(["0x9061b923",ct([Object(O.a)(this.name),n.data])]));try{let t=yield this.provider.call(n);return Object(E.a)(t).length%32==4&&H.throwError("resolver threw error",o.b.errors.CALL_EXCEPTION,{transaction:n,data:t}),r&&(t=ot(t,0)),t;}catch(t){if(t.code===o.b.errors.CALL_EXCEPTION)return null;throw t;}});}_fetchBytes(t,e){return z(this,void 0,void 0,function*(){const n=yield this._fetch(t,e);return null!=n?ot(n,0):null;});}_getAddress(t,e){const n=Z[String(t)];if(null==n&&H.throwError(`unsupported coin type: ${t}`,o.b.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${t})`}),"eth"===n.ilk)return this.provider.formatter.address(e);const r=Object(E.a)(e);if(null!=n.p2pkh){const t=e.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(t){const e=parseInt(t[1],16);if(t[2].length===2*e&&e>=1&&e<=75)return tt(Object(E.b)([[n.p2pkh],"0x"+t[2]]));}}if(null!=n.p2sh){const t=e.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(t){const e=parseInt(t[1],16);if(t[2].length===2*e&&e>=1&&e<=75)return tt(Object(E.b)([[n.p2sh],"0x"+t[2]]));}}if(null!=n.prefix){const t=r[1];let e=r[0];if(0===e?20!==t&&32!==t&&(e=-1):e=-1,e>=0&&r.length===2+t&&t>=1&&t<=75){const t=N.a.toWords(r.slice(2));return t.unshift(e),N.a.encode(n.prefix,t);}}return null;}getAddress(t){return z(this,void 0,void 0,function*(){if(null==t&&(t=60),60===t)try{const t=yield this._fetch("0x3b3b57de");return"0x"===t||t===T.a?null:this.provider.formatter.callAddress(t);}catch(t){if(t.code===o.b.errors.CALL_EXCEPTION)return null;throw t;}const e=yield this._fetchBytes("0xf1cb7e06",$(t));if(null==e||"0x"===e)return null;const address=this._getAddress(t,e);return null==address&&H.throwError("invalid or unsupported coin data",o.b.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${t})`,coinType:t,data:e}),address;});}getAvatar(){return z(this,void 0,void 0,function*(){const t=[{type:"name",content:this.name}];try{const e=yield this.getText("avatar");if(null==e)return null;for(let i=0;i<nt.length;i++){const n=e.match(nt[i]);if(null==n)continue;const r=n[1].toLowerCase();switch(r){case"https":return t.push({type:"url",content:e}),{linkage:t,url:e};case"data":return t.push({type:"data",content:e}),{linkage:t,url:e};case"ipfs":return t.push({type:"ipfs",content:e}),{linkage:t,url:at(e)};case"erc721":case"erc1155":{const o="erc721"===r?"0xc87b56dd":"0x0e89341c";t.push({type:r,content:e});const c=this._resolvedAddress||(yield this.getAddress()),l=(n[2]||"").split("/");if(2!==l.length)return null;const f=yield this.provider.formatter.address(l[0]),h=Object(E.h)(A.a.from(l[1]).toHexString(),32);if("erc721"===r){const e=this.provider.formatter.callAddress(yield this.provider.call({to:f,data:Object(E.c)(["0x6352211e",h])}));if(c!==e)return null;t.push({type:"owner",content:e});}else if("erc1155"===r){const e=A.a.from(yield this.provider.call({to:f,data:Object(E.c)(["0x00fdd58e",Object(E.h)(c,32),h])}));if(e.isZero())return null;t.push({type:"balance",content:e.toString()});}const d={to:this.provider.formatter.address(l[0]),data:Object(E.c)([o,h])};let m=it(yield this.provider.call(d),0);if(null==m)return null;t.push({type:"metadata-url-base",content:m}),"erc1155"===r&&(m=m.replace("{id}",h.substring(2)),t.push({type:"metadata-url-expanded",content:m})),m.match(/^ipfs:/i)&&(m=at(m)),t.push({type:"metadata-url",content:m});const y=yield Object(S.b)(m);if(!y)return null;t.push({type:"metadata",content:JSON.stringify(y)});let v=y.image;if("string"!=typeof v)return null;if(v.match(/^(https:\/\/|data:)/i));else{if(null==v.match(et))return null;t.push({type:"url-ipfs",content:v}),v=at(v);}return t.push({type:"url",content:v}),{linkage:t,url:v};}}}}catch(t){}return null;});}getContentHash(){return z(this,void 0,void 0,function*(){const t=yield this._fetchBytes("0xbc1c58d1");if(null==t||"0x"===t)return null;const e=t.match(/^0xe3010170(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(e){const t=parseInt(e[3],16);if(e[4].length===2*t)return"ipfs://"+_.a.encode("0x"+e[1]);}const n=t.match(/^0xe5010172(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(n){const t=parseInt(n[3],16);if(n[4].length===2*t)return"ipns://"+_.a.encode("0x"+n[1]);}const r=t.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(r&&64===r[1].length)return"bzz://"+r[1];const c=t.match(/^0x90b2c605([0-9a-f]*)$/);if(c&&68===c[1].length){const t={"=":"","+":"-","/":"_"};return"sia://"+Object(w.b)("0x"+c[1]).replace(/[=+\/]/g,a=>t[a]);}return H.throwError("invalid or unsupported content hash data",o.b.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:t});});}getText(t){return z(this,void 0,void 0,function*(){let e=Object(x.f)(t);e=Object(E.b)([$(64),$(e.length),e]),e.length%32!=0&&(e=Object(E.b)([e,Object(E.h)("0x",32-t.length%32)]));const n=yield this._fetchBytes("0x59d1d43c",Object(E.i)(e));return null==n||"0x"===n?null:Object(x.h)(n);});}}let ft=null,ht=1;class pt extends r.b{constructor(t){if(super(),this._events=[],this._emitted={block:-2},this.disableCcipRead=!1,this.formatter=new.target.getFormatter(),Object(M.d)(this,"anyNetwork","any"===t),this.anyNetwork&&(t=this.detectNetwork()),t instanceof Promise)this._networkPromise=t,t.catch(t=>{}),this._ready().catch(t=>{});else{const e=Object(M.e)(new.target,"getNetwork")(t);e?(Object(M.d)(this,"_network",e),this.emit("network",e,null)):H.throwArgumentError("invalid network","network",t);}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._maxFilterBlockRange=10,this._pollingInterval=4e3,this._fastQueryDate=0;}_ready(){return z(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||H.throwError("no network detected",o.b.errors.UNKNOWN_ERROR,{}),null==this._network&&(this.anyNetwork?this._network=t:Object(M.d)(this,"_network",t),this.emit("network",t,null));}return this._network;});}get ready(){return Object(S.c)(()=>this._ready().then(t=>t,t=>{if(t.code!==o.b.errors.NETWORK_ERROR||"noNetwork"!==t.event)throw t;}));}static getFormatter(){return null==ft&&(ft=new L()),ft;}static getNetwork(t){return v(null==t?"homestead":t);}ccipReadFetch(t,e,n){return z(this,void 0,void 0,function*(){if(this.disableCcipRead||0===n.length)return null;const r=t.to.toLowerCase(),data=e.toLowerCase(),c=[];for(let i=0;i<n.length;i++){const t=n[i],e=t.replace("{sender}",r).replace("{data}",data),l=t.indexOf("{data}")>=0?null:JSON.stringify({data:data,sender:r}),f=yield Object(S.b)({url:e,errorPassThrough:!0},l,(t,e)=>(t.status=e.statusCode,t));if(f.data)return f.data;const h=f.message||"unknown error";if(f.status>=400&&f.status<500)return H.throwError(`response not found during CCIP fetch: ${h}`,o.b.errors.SERVER_ERROR,{url:t,errorMessage:h});c.push(h);}return H.throwError(`error encountered during CCIP fetch: ${c.map(t=>JSON.stringify(t)).join(", ")}`,o.b.errors.SERVER_ERROR,{urls:n,errorMessages:c});});}_getInternalBlockNumber(t){return z(this,void 0,void 0,function*(){if(yield this._ready(),t>0)for(;this._internalBlockNumber;){const e=this._internalBlockNumber;try{const n=yield e;if(J()-n.respTime<=t)return n.blockNumber;break;}catch(t){if(this._internalBlockNumber===e)break;}}const e=J(),n=Object(M.f)({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then(t=>null,t=>t)}).then(({blockNumber:t,networkError:r})=>{if(r)throw this._internalBlockNumber===n&&(this._internalBlockNumber=null),r;const o=J();return(t=A.a.from(t).toNumber())<this._maxInternalBlockNumber&&(t=this._maxInternalBlockNumber),this._maxInternalBlockNumber=t,this._setFastBlockNumber(t),{blockNumber:t,reqTime:e,respTime:o};});return this._internalBlockNumber=n,n.catch(t=>{this._internalBlockNumber===n&&(this._internalBlockNumber=null);}),(yield n).blockNumber;});}poll(){return z(this,void 0,void 0,function*(){const t=ht++,e=[];let n=null;try{n=yield this._getInternalBlockNumber(100+this.pollingInterval/2);}catch(t){return void this.emit("error",t);}if(this._setFastBlockNumber(n),this.emit("poll",t,n),n!==this._lastBlockNumber){if(-2===this._emitted.block&&(this._emitted.block=n-1),Math.abs(this._emitted.block-n)>1e3)H.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${n})`),this.emit("error",H.makeError("network block skew detected",o.b.errors.NETWORK_ERROR,{blockNumber:n,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",n);else for(let i=this._emitted.block+1;i<=n;i++)this.emit("block",i);this._emitted.block!==n&&(this._emitted.block=n,Object.keys(this._emitted).forEach(t=>{if("block"===t)return;const e=this._emitted[t];"pending"!==e&&n-e>12&&delete this._emitted[t];})),-2===this._lastBlockNumber&&(this._lastBlockNumber=n-1),this._events.forEach(t=>{switch(t.type){case"tx":{const n=t.hash;let r=this.getTransactionReceipt(n).then(t=>t&&null!=t.blockNumber?(this._emitted["t:"+n]=t.blockNumber,this.emit(n,t),null):null).catch(t=>{this.emit("error",t);});e.push(r);break;}case"filter":if(!t._inflight){t._inflight=!0,-2===t._lastBlockNumber&&(t._lastBlockNumber=n-1);const filter=t.filter;filter.fromBlock=t._lastBlockNumber+1,filter.toBlock=n;const r=filter.toBlock-this._maxFilterBlockRange;r>filter.fromBlock&&(filter.fromBlock=r),filter.fromBlock<0&&(filter.fromBlock=0);const o=this.getLogs(filter).then(e=>{t._inflight=!1,0!==e.length&&e.forEach(e=>{e.blockNumber>t._lastBlockNumber&&(t._lastBlockNumber=e.blockNumber),this._emitted["b:"+e.blockHash]=e.blockNumber,this._emitted["t:"+e.transactionHash]=e.blockNumber,this.emit(filter,e);});}).catch(e=>{this.emit("error",e),t._inflight=!1;});e.push(o);}}}),this._lastBlockNumber=n,Promise.all(e).then(()=>{this.emit("didPoll",t);}).catch(t=>{this.emit("error",t);});}else this.emit("didPoll",t);});}resetEventsBlock(t){this._lastBlockNumber=t-1,this.polling&&this.poll();}get network(){return this._network;}detectNetwork(){return z(this,void 0,void 0,function*(){return H.throwError("provider does not support network detection",o.b.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"});});}getNetwork(){return z(this,void 0,void 0,function*(){const 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 Y(0),this._network;const n=H.makeError("underlying network changed",o.b.errors.NETWORK_ERROR,{event:"changed",network:t,detectedNetwork:e});throw this.emit("error",n),n;}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 new Error("invalid polling interval");this._pollingInterval=t,this._poller&&(clearInterval(this._poller),this._poller=setInterval(()=>{this.poll();},this._pollingInterval));}_getFastBlockNumber(){const t=J();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=J(),(null==this._fastBlockNumber||t>this._fastBlockNumber)&&(this._fastBlockNumber=t,this._fastBlockNumberPromise=Promise.resolve(t)));}waitForTransaction(t,e,n){return z(this,void 0,void 0,function*(){return this._waitForTransaction(t,null==e?1:e,n||0,null);});}_waitForTransaction(t,e,n,r){return z(this,void 0,void 0,function*(){const c=yield this.getTransactionReceipt(t);return(c?c.confirmations:0)>=e?c:new Promise((c,l)=>{const f=[];let h=!1;const d=function(){return!!h||(h=!0,f.forEach(t=>{t();}),!1);},m=t=>{t.confirmations<e||d()||c(t);};if(this.on(t,m),f.push(()=>{this.removeListener(t,m);}),r){let n=r.startBlock,c=null;const m=f=>z(this,void 0,void 0,function*(){h||(yield Y(1e3),this.getTransactionCount(r.from).then(y=>z(this,void 0,void 0,function*(){if(!h){if(y<=r.nonce)n=f;else{{const e=yield this.getTransaction(t);if(e&&null!=e.blockNumber)return;}for(null==c&&(c=n-3,c<r.startBlock&&(c=r.startBlock));c<=f;){if(h)return;const n=yield this.getBlockWithTransactions(c);for(let c=0;c<n.transactions.length;c++){const f=n.transactions[c];if(f.hash===t)return;if(f.from===r.from&&f.nonce===r.nonce){if(h)return;const n=yield this.waitForTransaction(f.hash,e);if(d())return;let c="replaced";return f.data===r.data&&f.to===r.to&&f.value.eq(r.value)?c="repriced":"0x"===f.data&&f.from===f.to&&f.value.isZero()&&(c="cancelled"),void l(H.makeError("transaction was replaced",o.b.errors.TRANSACTION_REPLACED,{cancelled:"replaced"===c||"cancelled"===c,reason:c,replacement:this._wrapTransaction(f),hash:t,receipt:n}));}}c++;}}h||this.once("block",m);}}),t=>{h||this.once("block",m);}));});if(h)return;this.once("block",m),f.push(()=>{this.removeListener("block",m);});}if("number"==typeof n&&n>0){const t=setTimeout(()=>{d()||l(H.makeError("timeout exceeded",o.b.errors.TIMEOUT,{timeout:n}));},n);t.unref&&t.unref(),f.push(()=>{clearTimeout(t);});}});});}getBlockNumber(){return z(this,void 0,void 0,function*(){return this._getInternalBlockNumber(0);});}getGasPrice(){return z(this,void 0,void 0,function*(){yield this.getNetwork();const t=yield this.perform("getGasPrice",{});try{return A.a.from(t);}catch(e){return H.throwError("bad result from backend",o.b.errors.SERVER_ERROR,{method:"getGasPrice",result:t,error:e});}});}getBalance(t,e){return z(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield Object(M.f)({address:this._getAddress(t),blockTag:this._getBlockTag(e)}),r=yield this.perform("getBalance",n);try{return A.a.from(r);}catch(t){return H.throwError("bad result from backend",o.b.errors.SERVER_ERROR,{method:"getBalance",params:n,result:r,error:t});}});}getTransactionCount(t,e){return z(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield Object(M.f)({address:this._getAddress(t),blockTag:this._getBlockTag(e)}),r=yield this.perform("getTransactionCount",n);try{return A.a.from(r).toNumber();}catch(t){return H.throwError("bad result from backend",o.b.errors.SERVER_ERROR,{method:"getTransactionCount",params:n,result:r,error:t});}});}getCode(t,e){return z(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield Object(M.f)({address:this._getAddress(t),blockTag:this._getBlockTag(e)}),r=yield this.perform("getCode",n);try{return Object(E.i)(r);}catch(t){return H.throwError("bad result from backend",o.b.errors.SERVER_ERROR,{method:"getCode",params:n,result:r,error:t});}});}getStorageAt(t,e,n){return z(this,void 0,void 0,function*(){yield this.getNetwork();const r=yield Object(M.f)({address:this._getAddress(t),blockTag:this._getBlockTag(n),position:Promise.resolve(e).then(p=>Object(E.g)(p))}),c=yield this.perform("getStorageAt",r);try{return Object(E.i)(c);}catch(t){return H.throwError("bad result from backend",o.b.errors.SERVER_ERROR,{method:"getStorageAt",params:r,result:c,error:t});}});}_wrapTransaction(t,e,n){if(null!=e&&32!==Object(E.d)(e))throw new Error("invalid response - sendTransaction");const r=t;return null!=e&&t.hash!==e&&H.throwError("Transaction hash mismatch from Provider.sendTransaction.",o.b.errors.UNKNOWN_ERROR,{expectedHash:t.hash,returnedHash:e}),r.wait=(e,r)=>z(this,void 0,void 0,function*(){let c;null==e&&(e=1),null==r&&(r=0),0!==e&&null!=n&&(c={data:t.data,from:t.from,nonce:t.nonce,to:t.to,value:t.value,startBlock:n});const l=yield this._waitForTransaction(t.hash,e,r,c);return null==l&&0===e?null:(this._emitted["t:"+t.hash]=l.blockNumber,0===l.status&&H.throwError("transaction failed",o.b.errors.CALL_EXCEPTION,{transactionHash:t.hash,transaction:t,receipt:l}),l);}),r;}sendTransaction(t){return z(this,void 0,void 0,function*(){yield this.getNetwork();const e=yield Promise.resolve(t).then(t=>Object(E.i)(t)),n=this.formatter.transaction(t);null==n.confirmations&&(n.confirmations=0);const r=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{const t=yield this.perform("sendTransaction",{signedTransaction:e});return this._wrapTransaction(n,t,r);}catch(t){throw t.transaction=n,t.transactionHash=n.hash,t;}});}_getTransactionRequest(t){return z(this,void 0,void 0,function*(){const e=yield t,n={};return["from","to"].forEach(t=>{null!=e[t]&&(n[t]=Promise.resolve(e[t]).then(t=>t?this._getAddress(t):null));}),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach(t=>{null!=e[t]&&(n[t]=Promise.resolve(e[t]).then(t=>t?A.a.from(t):null));}),["type"].forEach(t=>{null!=e[t]&&(n[t]=Promise.resolve(e[t]).then(t=>null!=t?t:null));}),e.accessList&&(n.accessList=this.formatter.accessList(e.accessList)),["data"].forEach(t=>{null!=e[t]&&(n[t]=Promise.resolve(e[t]).then(t=>t?Object(E.i)(t):null));}),this.formatter.transactionRequest(yield Object(M.f)(n));});}_getFilter(filter){return z(this,void 0,void 0,function*(){filter=yield filter;const t={};return null!=filter.address&&(t.address=this._getAddress(filter.address)),["blockHash","topics"].forEach(e=>{null!=filter[e]&&(t[e]=filter[e]);}),["fromBlock","toBlock"].forEach(e=>{null!=filter[e]&&(t[e]=this._getBlockTag(filter[e]));}),this.formatter.filter(yield Object(M.f)(t));});}_call(t,e,n){return z(this,void 0,void 0,function*(){n>=10&&H.throwError("CCIP read exceeded maximum redirections",o.b.errors.SERVER_ERROR,{redirects:n,transaction:t});const r=t.to,c=yield this.perform("call",{transaction:t,blockTag:e});if(n>=0&&"latest"===e&&null!=r&&"0x556f1830"===c.substring(0,10)&&Object(E.d)(c)%32==4)try{const data=Object(E.e)(c,4),l=Object(E.e)(data,0,32);A.a.from(l).eq(r)||H.throwError("CCIP Read sender did not match",o.b.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:t,data:c});const f=[],h=A.a.from(Object(E.e)(data,32,64)).toNumber(),d=A.a.from(Object(E.e)(data,h,h+32)).toNumber(),m=Object(E.e)(data,h+32);for(let u=0;u<d;u++){const e=it(m,32*u);null==e&&H.throwError("CCIP Read contained corrupt URL string",o.b.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:t,data:c}),f.push(e);}const y=ot(data,64);A.a.from(Object(E.e)(data,100,128)).isZero()||H.throwError("CCIP Read callback selector included junk",o.b.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:t,data:c});const v=Object(E.e)(data,96,100),w=ot(data,128),_=yield this.ccipReadFetch(t,y,f);null==_&&H.throwError("CCIP Read disabled or provided no URLs",o.b.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:t,data:c});const T={to:r,data:Object(E.c)([v,ct([_,w])])};return this._call(T,e,n+1);}catch(t){if(t.code===o.b.errors.SERVER_ERROR)throw t;}try{return Object(E.i)(c);}catch(n){return H.throwError("bad result from backend",o.b.errors.SERVER_ERROR,{method:"call",params:{transaction:t,blockTag:e},result:c,error:n});}});}call(t,e){return z(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield Object(M.f)({transaction:this._getTransactionRequest(t),blockTag:this._getBlockTag(e),ccipReadEnabled:Promise.resolve(t.ccipReadEnabled)});return this._call(n.transaction,n.blockTag,n.ccipReadEnabled?0:-1);});}estimateGas(t){return z(this,void 0,void 0,function*(){yield this.getNetwork();const e=yield Object(M.f)({transaction:this._getTransactionRequest(t)}),n=yield this.perform("estimateGas",e);try{return A.a.from(n);}catch(t){return H.throwError("bad result from backend",o.b.errors.SERVER_ERROR,{method:"estimateGas",params:e,result:n,error:t});}});}_getAddress(t){return z(this,void 0,void 0,function*(){"string"!=typeof(t=yield t)&&H.throwArgumentError("invalid address or ENS name","name",t);const address=yield this.resolveName(t);return null==address&&H.throwError("ENS name not configured",o.b.errors.UNSUPPORTED_OPERATION,{operation:`resolveName(${JSON.stringify(t)})`}),address;});}_getBlock(t,e){return z(this,void 0,void 0,function*(){yield this.getNetwork(),t=yield t;let n=-128;const r={includeTransactions:!!e};if(Object(E.l)(t,32))r.blockHash=t;else try{r.blockTag=yield this._getBlockTag(t),Object(E.l)(r.blockTag)&&(n=parseInt(r.blockTag.substring(2),16));}catch(e){H.throwArgumentError("invalid block hash or block tag","blockHashOrBlockTag",t);}return Object(S.c)(()=>z(this,void 0,void 0,function*(){const t=yield this.perform("getBlock",r);if(null==t)return null!=r.blockHash&&null==this._emitted["b:"+r.blockHash]||null!=r.blockTag&&n>this._emitted.block?null:void 0;if(e){let e=null;for(let i=0;i<t.transactions.length;i++){const n=t.transactions[i];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;}}const n=this.formatter.blockWithTransactions(t);return n.transactions=n.transactions.map(t=>this._wrapTransaction(t)),n;}return this.formatter.block(t);}),{oncePoll:this});});}getBlock(t){return this._getBlock(t,!1);}getBlockWithTransactions(t){return this._getBlock(t,!0);}getTransaction(t){return z(this,void 0,void 0,function*(){yield this.getNetwork(),t=yield t;const e={transactionHash:this.formatter.hash(t,!0)};return Object(S.c)(()=>z(this,void 0,void 0,function*(){const n=yield this.perform("getTransaction",e);if(null==n)return null==this._emitted["t:"+t]?null:void 0;const r=this.formatter.transactionResponse(n);if(null==r.blockNumber)r.confirmations=0;else if(null==r.confirmations){let t=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-r.blockNumber+1;t<=0&&(t=1),r.confirmations=t;}return this._wrapTransaction(r);}),{oncePoll:this});});}getTransactionReceipt(t){return z(this,void 0,void 0,function*(){yield this.getNetwork(),t=yield t;const e={transactionHash:this.formatter.hash(t,!0)};return Object(S.c)(()=>z(this,void 0,void 0,function*(){const n=yield this.perform("getTransactionReceipt",e);if(null==n)return null==this._emitted["t:"+t]?null:void 0;if(null==n.blockHash)return;const r=this.formatter.receipt(n);if(null==r.blockNumber)r.confirmations=0;else if(null==r.confirmations){let t=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-r.blockNumber+1;t<=0&&(t=1),r.confirmations=t;}return r;}),{oncePoll:this});});}getLogs(filter){return z(this,void 0,void 0,function*(){yield this.getNetwork();const t=yield Object(M.f)({filter:this._getFilter(filter)}),e=yield this.perform("getLogs",t);return e.forEach(t=>{null==t.removed&&(t.removed=!1);}),L.arrayOf(this.formatter.filterLog.bind(this.formatter))(e);});}getEtherPrice(){return z(this,void 0,void 0,function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{});});}_getBlockTag(t){return z(this,void 0,void 0,function*(){if("number"==typeof(t=yield t)&&t<0){t%1&&H.throwArgumentError("invalid BlockTag","blockTag",t);let e=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return e+=t,e<0&&(e=0),this.formatter.blockTag(e);}return this.formatter.blockTag(t);});}getResolver(t){return z(this,void 0,void 0,function*(){let e=t;for(;;){if(""===e||"."===e)return null;if("eth"!==t&&"eth"===e)return null;const n=yield this._getResolver(e,"getResolver");if(null!=n){const r=new lt(this,n,t);return e===t||(yield r.supportsWildcard())?r:null;}e=e.split(".").slice(1).join(".");}});}_getResolver(t,e){return z(this,void 0,void 0,function*(){null==e&&(e="ENS");const n=yield this.getNetwork();n.ensAddress||H.throwError("network does not support ENS",o.b.errors.UNSUPPORTED_OPERATION,{operation:e,network:n.name});try{const e=yield this.call({to:n.ensAddress,data:"0x0178b8bf"+Object(O.c)(t).substring(2)});return this.formatter.callAddress(e);}catch(t){}return null;});}resolveName(t){return z(this,void 0,void 0,function*(){t=yield t;try{return Promise.resolve(this.formatter.address(t));}catch(e){if(Object(E.l)(t))throw e;}"string"!=typeof t&&H.throwArgumentError("invalid ENS name","name",t);const e=yield this.getResolver(t);return e?yield e.getAddress():null;});}lookupAddress(address){return z(this,void 0,void 0,function*(){address=yield address;const t=(address=this.formatter.address(address)).substring(2).toLowerCase()+".addr.reverse",e=yield this._getResolver(t,"lookupAddress");if(null==e)return null;const n=it(yield this.call({to:e,data:"0x691f3431"+Object(O.c)(t).substring(2)}),0);return(yield this.resolveName(n))!=address?null:n;});}getAvatar(t){return z(this,void 0,void 0,function*(){let e=null;if(Object(E.l)(t)){const n=this.formatter.address(t).substring(2).toLowerCase()+".addr.reverse",r=yield this._getResolver(n,"getAvatar");if(!r)return null;e=new lt(this,r,n);try{const t=yield e.getAvatar();if(t)return t.url;}catch(t){if(t.code!==o.b.errors.CALL_EXCEPTION)throw t;}try{const t=it(yield this.call({to:r,data:"0x691f3431"+Object(O.c)(n).substring(2)}),0);e=yield this.getResolver(t);}catch(t){if(t.code!==o.b.errors.CALL_EXCEPTION)throw t;return null;}}else if(e=yield this.getResolver(t),!e)return null;const n=yield e.getAvatar();return null==n?null:n.url;});}perform(t,e){return H.throwError(t+" not implemented",o.b.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,n){const r=new X(V(t),e,n);return this._events.push(r),this._startEvent(r),this;}on(t,e){return this._addEventListener(t,e,!1);}once(t,e){return this._addEventListener(t,e,!0);}emit(t,...e){let n=!1,r=[],o=V(t);return this._events=this._events.filter(t=>t.tag!==o||(setTimeout(()=>{t.listener.apply(this,e);},0),n=!0,!t.once||(r.push(t),!1))),r.forEach(t=>{this._stopEvent(t);}),n;}listenerCount(t){if(!t)return this._events.length;let e=V(t);return this._events.filter(t=>t.tag===e).length;}listeners(t){if(null==t)return this._events.map(t=>t.listener);let e=V(t);return this._events.filter(t=>t.tag===e).map(t=>t.listener);}off(t,e){if(null==e)return this.removeAllListeners(t);const n=[];let r=!1,o=V(t);return this._events=this._events.filter(t=>t.tag!==o||t.listener!=e||!!r||(r=!0,n.push(t),!1)),n.forEach(t=>{this._stopEvent(t);}),this;}removeAllListeners(t){let e=[];if(null==t)e=this._events,this._events=[];else{const n=V(t);this._events=this._events.filter(t=>t.tag!==n||(e.push(t),!1));}return e.forEach(t=>{this._stopEvent(t);}),this;}}var mt=n(31),yt=n(258),gt=function(t,e,n,r){return new(n||(n=Promise))(function(o,c){function l(t){try{h(r.next(t));}catch(t){c(t);}}function f(t){try{h(r.throw(t));}catch(t){c(t);}}function h(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e);})).then(l,f);}h((r=r.apply(t,e||[])).next());});};const bt=new o.b(I),vt=["call","estimateGas"];function wt(t,e){if(null==t)return null;if("string"==typeof t.message&&t.message.match("reverted")){const data=Object(E.l)(t.data)?t.data:null;if(!e||data)return{message:t.message,data:data};}if("object"==typeof t){for(const n in t){const r=wt(t[n],e);if(r)return r;}return null;}if("string"==typeof t)try{return wt(JSON.parse(t),e);}catch(t){}return null;}function _t(t,e,n){const r=n.transaction||n.signedTransaction;if("call"===t){const t=wt(e,!0);if(t)return t.data;bt.throwError("missing revert data in call exception; Transaction reverted without a reason string",o.b.errors.CALL_EXCEPTION,{data:"0x",transaction:r,error:e});}if("estimateGas"===t){let n=wt(e.body,!1);null==n&&(n=wt(e,!1)),n&&bt.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",o.b.errors.UNPREDICTABLE_GAS_LIMIT,{reason:n.message,method:t,transaction:r,error:e});}let c=e.message;throw e.code===o.b.errors.SERVER_ERROR&&e.error&&"string"==typeof e.error.message?c=e.error.message:"string"==typeof e.body?c=e.body:"string"==typeof e.responseText&&(c=e.responseText),c=(c||"").toLowerCase(),c.match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)&&bt.throwError("insufficient funds for intrinsic transaction cost",o.b.errors.INSUFFICIENT_FUNDS,{error:e,method:t,transaction:r}),c.match(/nonce (is )?too low/i)&&bt.throwError("nonce has already been used",o.b.errors.NONCE_EXPIRED,{error:e,method:t,transaction:r}),c.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&bt.throwError("replacement fee too low",o.b.errors.REPLACEMENT_UNDERPRICED,{error:e,method:t,transaction:r}),c.match(/only replay-protected/i)&&bt.throwError("legacy pre-eip-155 transactions not supported",o.b.errors.UNSUPPORTED_OPERATION,{error:e,method:t,transaction:r}),vt.indexOf(t)>=0&&c.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&bt.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",o.b.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,method:t,transaction:r}),e;}function At(t){return new Promise(function(e){setTimeout(e,t);});}function Et(t){if(t.error){const e=new Error(t.error.message);throw e.code=t.error.code,e.data=t.error.data,e;}return t.result;}function Tt(t){return t?t.toLowerCase():t;}const Ot={};class Mt extends mt.a{constructor(t,e,n){if(super(),t!==Ot)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");Object(M.d)(this,"provider",e),null==n&&(n=0),"string"==typeof n?(Object(M.d)(this,"_address",this.provider.formatter.address(n)),Object(M.d)(this,"_index",null)):"number"==typeof n?(Object(M.d)(this,"_index",n),Object(M.d)(this,"_address",null)):bt.throwArgumentError("invalid address or index","addressOrIndex",n);}connect(t){return bt.throwError("cannot alter JSON-RPC Signer connection",o.b.errors.UNSUPPORTED_OPERATION,{operation:"connect"});}connectUnchecked(){return new kt(Ot,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&&bt.throwError("unknown account #"+this._index,o.b.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(t[this._index])));}sendUncheckedTransaction(t){t=Object(M.g)(t);const e=this.getAddress().then(address=>(address&&(address=address.toLowerCase()),address));if(null==t.gasLimit){const n=Object(M.g)(t);n.from=e,t.gasLimit=this.provider.estimateGas(n);}return null!=t.to&&(t.to=Promise.resolve(t.to).then(t=>gt(this,void 0,void 0,function*(){if(null==t)return null;const address=yield this.provider.resolveName(t);return null==address&&bt.throwArgumentError("provided ENS name resolves to null","tx.to",t),address;}))),Object(M.f)({tx:Object(M.f)(t),sender:e}).then(({tx:e,sender:n})=>{null!=e.from?e.from.toLowerCase()!==n&&bt.throwArgumentError("from address mismatch","transaction",t):e.from=n;const r=this.provider.constructor.hexlifyTransaction(e,{from:!0});return this.provider.send("eth_sendTransaction",[r]).then(t=>t,t=>("string"==typeof t.message&&t.message.match(/user denied/i)&&bt.throwError("user rejected transaction",o.b.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:e}),_t("sendTransaction",t,r)));});}signTransaction(t){return bt.throwError("signing transactions is unsupported",o.b.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"});}sendTransaction(t){return gt(this,void 0,void 0,function*(){const e=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),n=yield this.sendUncheckedTransaction(t);try{return yield Object(S.c)(()=>gt(this,void 0,void 0,function*(){const t=yield this.provider.getTransaction(n);if(null!==t)return this.provider._wrapTransaction(t,n,e);}),{oncePoll:this.provider});}catch(t){throw t.transactionHash=n,t;}});}signMessage(t){return gt(this,void 0,void 0,function*(){const data="string"==typeof t?Object(x.f)(t):t,address=yield this.getAddress();try{return yield this.provider.send("personal_sign",[Object(E.i)(data),address.toLowerCase()]);}catch(e){throw"string"==typeof e.message&&e.message.match(/user denied/i)&&bt.throwError("user rejected signing",o.b.errors.ACTION_REJECTED,{action:"signMessage",from:address,messageData:t}),e;}});}_legacySignMessage(t){return gt(this,void 0,void 0,function*(){const data="string"==typeof t?Object(x.f)(t):t,address=yield this.getAddress();try{return yield this.provider.send("eth_sign",[address.toLowerCase(),Object(E.i)(data)]);}catch(e){throw"string"==typeof e.message&&e.message.match(/user denied/i)&&bt.throwError("user rejected signing",o.b.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:address,messageData:t}),e;}});}_signTypedData(t,e,n){return gt(this,void 0,void 0,function*(){const r=yield yt.a.resolveNames(t,e,n,t=>this.provider.resolveName(t)),address=yield this.getAddress();try{return yield this.provider.send("eth_signTypedData_v4",[address.toLowerCase(),JSON.stringify(yt.a.getPayload(r.domain,e,r.value))]);}catch(t){throw"string"==typeof t.message&&t.message.match(/user denied/i)&&bt.throwError("user rejected signing",o.b.errors.ACTION_REJECTED,{action:"_signTypedData",from:address,messageData:{domain:r.domain,types:e,value:r.value}}),t;}});}unlock(t){return gt(this,void 0,void 0,function*(){const e=this.provider,address=yield this.getAddress();return e.send("personal_unlockAccount",[address.toLowerCase(),t,null]);});}}class kt extends Mt{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)}));}}const xt={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};class St extends pt{constructor(t,e){let n=e;null==n&&(n=new Promise((t,e)=>{setTimeout(()=>{this.detectNetwork().then(e=>{t(e);},t=>{e(t);});},0);})),super(n),t||(t=Object(M.e)(this.constructor,"defaultUrl")()),"string"==typeof t?Object(M.d)(this,"connection",Object.freeze({url:t})):Object(M.d)(this,"connection",Object.freeze(Object(M.g)(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 gt(this,void 0,void 0,function*(){yield At(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){const e=Object(M.e)(this.constructor,"getNetwork");try{return e(A.a.from(t).toNumber());}catch(e){return bt.throwError("could not detect network",o.b.errors.NETWORK_ERROR,{chainId:t,event:"invalidNetwork",serverError:e});}}return bt.throwError("could not detect network",o.b.errors.NETWORK_ERROR,{event:"noNetwork"});});}getSigner(t){return new Mt(Ot,this,t);}getUncheckedSigner(t){return this.getSigner(t).connectUnchecked();}listAccounts(){return this.send("eth_accounts",[]).then(t=>t.map(a=>this.formatter.address(a)));}send(t,e){const n={method:t,params:e,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:Object(M.c)(n),provider:this});const r=["eth_chainId","eth_blockNumber"].indexOf(t)>=0;if(r&&this._cache[t])return this._cache[t];const o=Object(S.b)(this.connection,JSON.stringify(n),Et).then(t=>(this.emit("debug",{action:"response",request:n,response:t,provider:this}),t),t=>{throw this.emit("debug",{action:"response",error:t,request:n,provider:this}),t;});return r&&(this._cache[t]=o,setTimeout(()=>{this._cache[t]=null;},0)),o;}prepareRequest(t,e){switch(t){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[Tt(e.address),e.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[Tt(e.address),e.blockTag]];case"getCode":return["eth_getCode",[Tt(e.address),e.blockTag]];case"getStorageAt":return["eth_getStorageAt",[Tt(e.address),Object(E.h)(e.position,32),e.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[e.signedTransaction]];case"getBlock":return e.blockTag?["eth_getBlockByNumber",[e.blockTag,!!e.includeTransactions]]:e.blockHash?["eth_getBlockByHash",[e.blockHash,!!e.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[e.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[e.transactionHash]];case"call":return["eth_call",[Object(M.e)(this.constructor,"hexlifyTransaction")(e.transaction,{from:!0}),e.blockTag]];case"estimateGas":return["eth_estimateGas",[Object(M.e)(this.constructor,"hexlifyTransaction")(e.transaction,{from:!0})]];case"getLogs":return e.filter&&null!=e.filter.address&&(e.filter.address=Tt(e.filter.address)),["eth_getLogs",[e.filter]];}return null;}perform(t,e){return gt(this,void 0,void 0,function*(){if("call"===t||"estimateGas"===t){const t=e.transaction;if(t&&null!=t.type&&A.a.from(t.type).isZero()&&null==t.maxFeePerGas&&null==t.maxPriorityFeePerGas){const n=yield this.getFeeData();null==n.maxFeePerGas&&null==n.maxPriorityFeePerGas&&((e=Object(M.g)(e)).transaction=Object(M.g)(t),delete e.transaction.type);}}const n=this.prepareRequest(t,e);null==n&&bt.throwError(t+" not implemented",o.b.errors.NOT_IMPLEMENTED,{operation:t});try{return yield this.send(n[0],n[1]);}catch(n){return _t(t,n,e);}});}_startEvent(t){"pending"===t.tag&&this._startPending(),super._startEvent(t);}_startPending(){if(null!=this._pendingFilter)return;const t=this,e=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=e,e.then(function(n){return function r(){t.send("eth_getFilterChanges",[n]).then(function(n){if(t._pendingFilter!=e)return null;let r=Promise.resolve();return n.forEach(function(e){t._emitted["t:"+e.toLowerCase()]="pending",r=r.then(function(){return t.getTransaction(e).then(function(e){return t.emit("pending",e),null;});});}),r.then(function(){return At(1e3);});}).then(function(){if(t._pendingFilter==e)return setTimeout(function(){r();},0),null;t.send("eth_uninstallFilter",[n]);}).catch(t=>{});}(),n;}).catch(t=>{});}_stopEvent(t){"pending"===t.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),super._stopEvent(t);}static hexlifyTransaction(t,e){const n=Object(M.g)(xt);if(e)for(const t in e)e[t]&&(n[t]=!0);Object(M.b)(t,n);const r={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(function(e){if(null==t[e])return;const n=Object(E.g)(A.a.from(t[e]));"gasLimit"===e&&(e="gas"),r[e]=n;}),["from","to","data"].forEach(function(e){null!=t[e]&&(r[e]=Object(E.i)(t[e]));}),t.accessList&&(r.accessList=Object(C.b)(t.accessList)),r;}}let jt=null;try{if(jt=WebSocket,null==jt)throw new Error("inject please");}catch(t){const e=new o.b(I);jt=function(){e.throwError("WebSockets not supported in this environment",o.b.errors.UNSUPPORTED_OPERATION,{operation:"new WebSocket()"});};}var Nt=function(t,e,n,r){return new(n||(n=Promise))(function(o,c){function l(t){try{h(r.next(t));}catch(t){c(t);}}function f(t){try{h(r.throw(t));}catch(t){c(t);}}function h(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e);})).then(l,f);}h((r=r.apply(t,e||[])).next());});};const It=new o.b(I);let Pt=1;class Rt extends St{constructor(t,e){"any"===e&&It.throwError("WebSocketProvider does not support 'any' network yet",o.b.errors.UNSUPPORTED_OPERATION,{operation:"network:any"}),super("string"==typeof t?t:"_websocket",e),this._pollingInterval=-1,this._wsReady=!1,"string"==typeof t?Object(M.d)(this,"_websocket",new jt(this.connection.url)):Object(M.d)(this,"_websocket",t),Object(M.d)(this,"_requests",{}),Object(M.d)(this,"_subs",{}),Object(M.d)(this,"_subIds",{}),Object(M.d)(this,"_detectNetwork",super.detectNetwork()),this.websocket.onopen=()=>{this._wsReady=!0,Object.keys(this._requests).forEach(t=>{this.websocket.send(this._requests[t].payload);});},this.websocket.onmessage=t=>{const data=t.data,e=JSON.parse(data);if(null!=e.id){const t=String(e.id),n=this._requests[t];if(delete this._requests[t],void 0!==e.result)n.callback(null,e.result),this.emit("debug",{action:"response",request:JSON.parse(n.payload),response:e.result,provider:this});else{let t=null;e.error?(t=new Error(e.error.message||"unknown error"),Object(M.d)(t,"code",e.error.code||null),Object(M.d)(t,"response",data)):t=new Error("unknown error"),n.callback(t,void 0),this.emit("debug",{action:"response",error:t,request:JSON.parse(n.payload),provider:this});}}else if("eth_subscription"===e.method){const sub=this._subs[e.params.subscription];sub&&sub.processFunc(e.params.result);}else console.warn("this should not happen");};const n=setInterval(()=>{this.emit("poll");},1e3);n.unref&&n.unref();}get websocket(){return this._websocket;}detectNetwork(){return this._detectNetwork;}get pollingInterval(){return 0;}resetEventsBlock(t){It.throwError("cannot reset events block on WebSocketProvider",o.b.errors.UNSUPPORTED_OPERATION,{operation:"resetEventBlock"});}set pollingInterval(t){It.throwError("cannot set polling interval on WebSocketProvider",o.b.errors.UNSUPPORTED_OPERATION,{operation:"setPollingInterval"});}poll(){return Nt(this,void 0,void 0,function*(){return null;});}set polling(t){t&&It.throwError("cannot set polling on WebSocketProvider",o.b.errors.UNSUPPORTED_OPERATION,{operation:"setPolling"});}send(t,e){const n=Pt++;return new Promise((r,o)=>{const c=JSON.stringify({method:t,params:e,id:n,jsonrpc:"2.0"});this.emit("debug",{action:"request",request:JSON.parse(c),provider:this}),this._requests[String(n)]={callback:function(t,e){return t?o(t):r(e);},payload:c},this._wsReady&&this.websocket.send(c);});}static defaultUrl(){return"ws://localhost:8546";}_subscribe(t,param,e){return Nt(this,void 0,void 0,function*(){let n=this._subIds[t];null==n&&(n=Promise.all(param).then(param=>this.send("eth_subscribe",param)),this._subIds[t]=n);const r=yield n;this._subs[r]={tag:t,processFunc:e};});}_startEvent(t){switch(t.type){case"block":this._subscribe("block",["newHeads"],t=>{const e=A.a.from(t.number).toNumber();this._emitted.block=e,this.emit("block",e);});break;case"pending":this._subscribe("pending",["newPendingTransactions"],t=>{this.emit("pending",t);});break;case"filter":this._subscribe(t.tag,["logs",this._getFilter(t.filter)],e=>{null==e.removed&&(e.removed=!1),this.emit(t.filter,this.formatter.filterLog(e));});break;case"tx":{const e=t=>{const e=t.hash;this.getTransactionReceipt(e).then(t=>{t&&this.emit(e,t);});};e(t),this._subscribe("tx",["newHeads"],t=>{this._events.filter(t=>"tx"===t.type).forEach(e);});break;}case"debug":case"poll":case"willPoll":case"didPoll":case"error":break;default:console.log("unhandled:",t);}}_stopEvent(t){let e=t.tag;if("tx"===t.type){if(this._events.filter(t=>"tx"===t.type).length)return;e="tx";}else if(this.listenerCount(t.event))return;const n=this._subIds[e];n&&(delete this._subIds[e],n.then(t=>{this._subs[t]&&(delete this._subs[t],this.send("eth_unsubscribe",[t]));}));}destroy(){return Nt(this,void 0,void 0,function*(){this.websocket.readyState===jt.CONNECTING&&(yield new Promise(t=>{this.websocket.onopen=function(){t(!0);},this.websocket.onerror=function(){t(!1);};})),this.websocket.close(1e3);});}}var Ct=function(t,e,n,r){return new(n||(n=Promise))(function(o,c){function l(t){try{h(r.next(t));}catch(t){c(t);}}function f(t){try{h(r.throw(t));}catch(t){c(t);}}function h(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e);})).then(l,f);}h((r=r.apply(t,e||[])).next());});};const Bt=new o.b(I);class Lt extends St{detectNetwork(){const t=Object.create(null,{detectNetwork:{get:()=>super.detectNetwork}});return Ct(this,void 0,void 0,function*(){let e=this.network;return null==e&&(e=yield t.detectNetwork.call(this),e||Bt.throwError("no network detected",o.b.errors.UNKNOWN_ERROR,{}),null==this._network&&(Object(M.d)(this,"_network",e),this.emit("network",e,null))),e;});}}class Ft extends Lt{constructor(t,e){Bt.checkAbstract(new.target,Ft),t=Object(M.e)(new.target,"getNetwork")(t),e=Object(M.e)(new.target,"getApiKey")(e);super(Object(M.e)(new.target,"getUrl")(t,e),t),"string"==typeof e?Object(M.d)(this,"apiKey",e):null!=e&&Object.keys(e).forEach(t=>{Object(M.d)(this,t,e[t]);});}_startPending(){Bt.warn("WARNING: API provider does not support pending filters");}isCommunityResource(){return!1;}getSigner(address){return Bt.throwError("API provider does not support signing",o.b.errors.UNSUPPORTED_OPERATION,{operation:"getSigner"});}listAccounts(){return Promise.resolve([]);}static getApiKey(t){return t;}static getUrl(t,e){return Bt.throwError("not implemented; sub-classes must override getUrl",o.b.errors.NOT_IMPLEMENTED,{operation:"getUrl"});}}const Dt=new o.b(I),Ut="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";class Gt extends Rt{constructor(t,e){const n=new zt(t,e);super(n.connection.url.replace(/^http/i,"ws").replace(".alchemyapi.",".ws.alchemyapi."),n.network),Object(M.d)(this,"apiKey",n.apiKey);}isCommunityResource(){return this.apiKey===Ut;}}class zt extends Ft{static getWebSocketProvider(t,e){return new Gt(t,e);}static getApiKey(t){return null==t?Ut:(t&&"string"!=typeof t&&Dt.throwArgumentError("invalid apiKey","apiKey",t),t);}static getUrl(t,e){let n=null;switch(t.name){case"homestead":n="eth-mainnet.alchemyapi.io/v2/";break;case"goerli":n="eth-goerli.g.alchemy.com/v2/";break;case"matic":n="polygon-mainnet.g.alchemy.com/v2/";break;case"maticmum":n="polygon-mumbai.g.alchemy.com/v2/";break;case"arbitrum":n="arb-mainnet.g.alchemy.com/v2/";break;case"arbitrum-goerli":n="arb-goerli.g.alchemy.com/v2/";break;case"optimism":n="opt-mainnet.g.alchemy.com/v2/";break;case"optimism-goerli":n="opt-goerli.g.alchemy.com/v2/";break;default:Dt.throwArgumentError("unsupported network","network",arguments[0]);}return{allowGzip:!0,url:"https://"+n+e,throttleCallback:(t,n)=>(e===Ut&&G(),Promise.resolve(!0))};}isCommunityResource(){return this.apiKey===Ut;}}const Ht=new o.b(I),qt="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";function Kt(t){switch(t){case"homestead":return"rpc.ankr.com/eth/";case"ropsten":return"rpc.ankr.com/eth_ropsten/";case"rinkeby":return"rpc.ankr.com/eth_rinkeby/";case"goerli":return"rpc.ankr.com/eth_goerli/";case"matic":return"rpc.ankr.com/polygon/";case"arbitrum":return"rpc.ankr.com/arbitrum/";}return Ht.throwArgumentError("unsupported network","name",t);}class Wt extends Ft{isCommunityResource(){return this.apiKey===qt;}static getApiKey(t){return null==t?qt:t;}static getUrl(t,e){null==e&&(e=qt);const n={allowGzip:!0,url:"https://"+Kt(t.name)+e,throttleCallback:(t,n)=>(e.apiKey===qt&&G(),Promise.resolve(!0))};return null!=e.projectSecret&&(n.user="",n.password=e.projectSecret),n;}}var Vt=function(t,e,n,r){return new(n||(n=Promise))(function(o,c){function l(t){try{h(r.next(t));}catch(t){c(t);}}function f(t){try{h(r.throw(t));}catch(t){c(t);}}function h(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e);})).then(l,f);}h((r=r.apply(t,e||[])).next());});};const Jt=new o.b(I);class Yt extends Ft{static getApiKey(t){return null!=t&&Jt.throwArgumentError("apiKey not supported for cloudflare","apiKey",t),null;}static getUrl(t,e){let n=null;if("homestead"===t.name)n="https://cloudflare-eth.com/";else Jt.throwArgumentError("unsupported network","network",arguments[0]);return n;}perform(t,e){const n=Object.create(null,{perform:{get:()=>super.perform}});return Vt(this,void 0,void 0,function*(){if("getBlockNumber"===t){return(yield n.perform.call(this,"getBlock",{blockTag:"latest"})).number;}return n.perform.call(this,t,e);});}}var Qt=function(t,e,n,r){return new(n||(n=Promise))(function(o,c){function l(t){try{h(r.next(t));}catch(t){c(t);}}function f(t){try{h(r.throw(t));}catch(t){c(t);}}function h(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e);})).then(l,f);}h((r=r.apply(t,e||[])).next());});};const Xt=new o.b(I);function Zt(t){const e={};for(let n in t){if(null==t[n])continue;let r=t[n];"type"===n&&0===r||(r={type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[n]?Object(E.g)(Object(E.i)(r)):"accessList"===n?"["+Object(C.b)(r).map(t=>`{address:"${t.address}",storageKeys:["${t.storageKeys.join('","')}"]}`).join(",")+"]":Object(E.i)(r),e[n]=r);}return e;}function $t(t){if(0==t.status&&("No records found"===t.message||"No transactions found"===t.message))return t.result;if(1!=t.status||"string"!=typeof t.message||!t.message.match(/^OK/)){const e=new Error("invalid response");throw e.result=JSON.stringify(t),(t.result||"").toLowerCase().indexOf("rate limit")>=0&&(e.throttleRetry=!0),e;}return t.result;}function te(t){if(t&&0==t.status&&"NOTOK"==t.message&&(t.result||"").toLowerCase().indexOf("rate limit")>=0){const e=new Error("throttled response");throw e.result=JSON.stringify(t),e.throttleRetry=!0,e;}if("2.0"!=t.jsonrpc){const e=new Error("invalid response");throw e.result=JSON.stringify(t),e;}if(t.error){const e=new Error(t.error.message||"unknown error");throw t.error.code&&(e.code=t.error.code),t.error.data&&(e.data=t.error.data),e;}return t.result;}function ee(t){if("pending"===t)throw new Error("pending not supported");return"latest"===t?t:parseInt(t.substring(2),16);}function ne(t,e,n){if("call"===t&&e.code===o.b.errors.SERVER_ERROR){const t=e.error;if(t&&(t.message.match(/reverted/i)||t.message.match(/VM execution error/i))){let data=t.data;if(data&&(data="0x"+data.replace(/^.*0x/i,"")),Object(E.l)(data))return data;Xt.throwError("missing revert data in call exception",o.b.errors.CALL_EXCEPTION,{error:e,data:"0x"});}}let r=e.message;throw e.code===o.b.errors.SERVER_ERROR&&(e.error&&"string"==typeof e.error.message?r=e.error.message:"string"==typeof e.body?r=e.body:"string"==typeof e.responseText&&(r=e.responseText)),r=(r||"").toLowerCase(),r.match(/insufficient funds/)&&Xt.throwError("insufficient funds for intrinsic transaction cost",o.b.errors.INSUFFICIENT_FUNDS,{error:e,method:t,transaction:n}),r.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&Xt.throwError("nonce has already been used",o.b.errors.NONCE_EXPIRED,{error:e,method:t,transaction:n}),r.match(/another transaction with same nonce/)&&Xt.throwError("replacement fee too low",o.b.errors.REPLACEMENT_UNDERPRICED,{error:e,method:t,transaction:n}),r.match(/execution failed due to an exception|execution reverted/)&&Xt.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",o.b.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,method:t,transaction:n}),e;}class re extends pt{constructor(t,e){super(t),Object(M.d)(this,"baseUrl",this.getBaseUrl()),Object(M.d)(this,"apiKey",e||null);}getBaseUrl(){switch(this.network?this.network.name:"invalid"){case"homestead":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"matic":return"https://api.polygonscan.com";case"maticmum":return"https://api-testnet.polygonscan.com";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io";}return Xt.throwArgumentError("unsupported network","network",this.network.name);}getUrl(t,e){const n=Object.keys(e).reduce((t,n)=>{const r=e[n];return null!=r&&(t+=`&${n}=${r}`),t;},""),r=this.apiKey?`&apikey=${this.apiKey}`:"";return`${this.baseUrl}/api?module=${t}${n}${r}`;}getPostUrl(){return`${this.baseUrl}/api`;}getPostData(t,e){return e.module=t,e.apikey=this.apiKey,e;}fetch(t,e,n){return Qt(this,void 0,void 0,function*(){const r=n?this.getPostUrl():this.getUrl(t,e),o=n?this.getPostData(t,e):null,c="proxy"===t?te:$t;this.emit("debug",{action:"request",request:r,provider:this});const l={url:r,throttleSlotInterval:1e3,throttleCallback:(t,e)=>(this.isCommunityResource()&&G(),Promise.resolve(!0))};let f=null;o&&(l.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},f=Object.keys(o).map(t=>`${t}=${o[t]}`).join("&"));const h=yield Object(S.b)(l,f,c||te);return this.emit("debug",{action:"response",request:r,response:Object(M.c)(h),provider:this}),h;});}detectNetwork(){return Qt(this,void 0,void 0,function*(){return this.network;});}perform(t,e){const n=Object.create(null,{perform:{get:()=>super.perform}});return Qt(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=>ne("sendTransaction",t,e.signedTransaction));case"getBlock":if(e.blockTag)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:e.blockTag,boolean:e.includeTransactions?"true":"false"});throw new Error("getBlock by blockHash not implemented");case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:e.transactionHash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:e.transactionHash});case"call":{if("latest"!==e.blockTag)throw new Error("EtherscanProvider does not support blockTag for call");const t=Zt(e.transaction);t.module="proxy",t.action="eth_call";try{return yield this.fetch("proxy",t,!0);}catch(t){return ne("call",t,e.transaction);}}case"estimateGas":{const t=Zt(e.transaction);t.module="proxy",t.action="eth_estimateGas";try{return yield this.fetch("proxy",t,!0);}catch(t){return ne("estimateGas",t,e.transaction);}}case"getLogs":{const t={action:"getLogs"};if(e.filter.fromBlock&&(t.fromBlock=ee(e.filter.fromBlock)),e.filter.toBlock&&(t.toBlock=ee(e.filter.toBlock)),e.filter.address&&(t.address=e.filter.address),e.filter.topics&&e.filter.topics.length>0&&(e.filter.topics.length>1&&Xt.throwError("unsupported topic count",o.b.errors.UNSUPPORTED_OPERATION,{topics:e.filter.topics}),1===e.filter.topics.length)){const n=e.filter.topics[0];"string"==typeof n&&66===n.length||Xt.throwError("unsupported topic format",o.b.errors.UNSUPPORTED_OPERATION,{topic0:n}),t.topic0=n;}const n=yield this.fetch("logs",t);let r={};for(let i=0;i<n.length;i++){const t=n[i];if(null==t.blockHash){if(null==r[t.blockNumber]){const e=yield this.getBlock(t.blockNumber);e&&(r[t.blockNumber]=e.hash);}t.blockHash=r[t.blockNumber];}}return n;}case"getEtherPrice":return"homestead"!==this.network.name?0:parseFloat((yield this.fetch("stats",{action:"ethprice"})).ethusd);}return n.perform.call(this,t,e);});}getHistory(t,e,n){return Qt(this,void 0,void 0,function*(){const r={action:"txlist",address:yield this.resolveName(t),startblock:null==e?0:e,endblock:null==n?99999999:n,sort:"asc"};return(yield this.fetch("account",r)).map(t=>{["contractAddress","to"].forEach(function(e){""==t[e]&&delete t[e];}),null==t.creates&&null!=t.contractAddress&&(t.creates=t.contractAddress);const e=this.formatter.transactionResponse(t);return t.timeStamp&&(e.timestamp=parseInt(t.timeStamp)),e;});});}isCommunityResource(){return null==this.apiKey;}}var ie=n(259),oe=function(t,e,n,r){return new(n||(n=Promise))(function(o,c){function l(t){try{h(r.next(t));}catch(t){c(t);}}function f(t){try{h(r.throw(t));}catch(t){c(t);}}function h(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e);})).then(l,f);}h((r=r.apply(t,e||[])).next());});};const ae=new o.b(I);function se(){return new Date().getTime();}function ue(t){let e=null;for(let i=0;i<t.length;i++){const n=t[i];if(null==n)return null;e?e.name===n.name&&e.chainId===n.chainId&&(e.ensAddress===n.ensAddress||null==e.ensAddress&&null==n.ensAddress)||ae.throwArgumentError("provider mismatch","networks",t):e=n;}return e;}function ce(t,e){t=t.slice().sort();const n=Math.floor(t.length/2);if(t.length%2)return t[n];const a=t[n-1],b=t[n];return null!=e&&Math.abs(a-b)>e?null:(a+b)/2;}function le(t){if(null===t)return"null";if("number"==typeof t||"boolean"==typeof t)return JSON.stringify(t);if("string"==typeof t)return t;if(A.a.isBigNumber(t))return t.toString();if(Array.isArray(t))return JSON.stringify(t.map(i=>le(i)));if("object"==typeof t){const e=Object.keys(t);return e.sort(),"{"+e.map(e=>{let n=t[e];return n="function"==typeof n?"[function]":le(n),JSON.stringify(e)+":"+n;}).join(",")+"}";}throw new Error("unknown value type: "+typeof t);}let fe=1;function he(t){let e=null,n=null,r=new Promise(r=>{e=function(){n&&(clearTimeout(n),n=null),r();},n=setTimeout(e,t);});return{cancel:e,getPromise:function(){return r;},wait:t=>(r=r.then(t),r)};}const de=[o.b.errors.CALL_EXCEPTION,o.b.errors.INSUFFICIENT_FUNDS,o.b.errors.NONCE_EXPIRED,o.b.errors.REPLACEMENT_UNDERPRICED,o.b.errors.UNPREDICTABLE_GAS_LIMIT],pe=["address","args","errorArgs","errorSignature","method","transaction"];function me(t,e){const n={weight:t.weight};return Object.defineProperty(n,"provider",{get:()=>t.provider}),t.start&&(n.start=t.start),e&&(n.duration=e-t.start),t.done&&(t.error?n.error=t.error:n.result=t.result||null),n;}function ye(t,e,n){let r=le;switch(e){case"getBlockNumber":return function(e){const n=e.map(t=>t.result);let r=ce(e.map(t=>t.result),2);if(null!=r)return r=Math.ceil(r),n.indexOf(r+1)>=0&&r++,r>=t._highestBlockNumber&&(t._highestBlockNumber=r),t._highestBlockNumber;};case"getGasPrice":return function(t){const e=t.map(t=>t.result);return e.sort(),e[Math.floor(e.length/2)];};case"getEtherPrice":return function(t){return ce(t.map(t=>t.result));};case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break;case"getTransaction":case"getTransactionReceipt":r=function(t){return null==t?null:((t=Object(M.g)(t)).confirmations=-1,le(t));};break;case"getBlock":r=n.includeTransactions?function(t){return null==t?null:((t=Object(M.g)(t)).transactions=t.transactions.map(t=>((t=Object(M.g)(t)).confirmations=-1,t)),le(t));}:function(t){return null==t?null:le(t);};break;default:throw new Error("unknown method: "+e);}return function(t,e){return function(n){const r={};n.forEach(e=>{const n=t(e.result);r[n]||(r[n]={count:0,result:e.result}),r[n].count++;});const o=Object.keys(r);for(let i=0;i<o.length;i++){const t=r[o[i]];if(t.count>=e)return t.result;}};}(r,t.quorum);}function ge(t,e){return oe(this,void 0,void 0,function*(){const n=t.provider;return null!=n.blockNumber&&n.blockNumber>=e||-1===e?n:Object(S.c)(()=>new Promise((r,o)=>{setTimeout(function(){return n.blockNumber>=e?r(n):t.cancelled?r(null):r(void 0);},0);}),{oncePoll:n});});}function be(t,e,n,r){return oe(this,void 0,void 0,function*(){let c=t.provider;switch(n){case"getBlockNumber":case"getGasPrice":return c[n]();case"getEtherPrice":if(c.getEtherPrice)return c.getEtherPrice();break;case"getBalance":case"getTransactionCount":case"getCode":return r.blockTag&&Object(E.l)(r.blockTag)&&(c=yield ge(t,e)),c[n](r.address,r.blockTag||"latest");case"getStorageAt":return r.blockTag&&Object(E.l)(r.blockTag)&&(c=yield ge(t,e)),c.getStorageAt(r.address,r.position,r.blockTag||"latest");case"getBlock":return r.blockTag&&Object(E.l)(r.blockTag)&&(c=yield ge(t,e)),c[r.includeTransactions?"getBlockWithTransactions":"getBlock"](r.blockTag||r.blockHash);case"call":case"estimateGas":return r.blockTag&&Object(E.l)(r.blockTag)&&(c=yield ge(t,e)),"call"===n&&r.blockTag?c[n](r.transaction,r.blockTag):c[n](r.transaction);case"getTransaction":case"getTransactionReceipt":return c[n](r.transactionHash);case"getLogs":{let filter=r.filter;return(filter.fromBlock&&Object(E.l)(filter.fromBlock)||filter.toBlock&&Object(E.l)(filter.toBlock))&&(c=yield ge(t,e)),c.getLogs(filter);}}return ae.throwError("unknown method error",o.b.errors.UNKNOWN_ERROR,{method:n,params:r});});}class ve extends pt{constructor(t,e){0===t.length&&ae.throwArgumentError("missing providers","providers",t);const n=t.map((t,e)=>{if(r.b.isProvider(t)){const e=D(t)?2e3:750,n=1;return Object.freeze({provider:t,weight:1,stallTimeout:e,priority:n});}const n=Object(M.g)(t);null==n.priority&&(n.priority=1),null==n.stallTimeout&&(n.stallTimeout=D(t)?2e3:750),null==n.weight&&(n.weight=1);const o=n.weight;return(o%1||o>512||o<1)&&ae.throwArgumentError("invalid weight; must be integer in [1, 512]",`providers[${e}].weight`,o),Object.freeze(n);}),o=n.reduce((t,e)=>t+e.weight,0);null==e?e=o/2:e>o&&ae.throwArgumentError("quorum will always fail; larger than total weight","quorum",e);let c=ue(n.map(t=>t.provider.network));null==c&&(c=new Promise((t,e)=>{setTimeout(()=>{this.detectNetwork().then(t,e);},0);})),super(c),Object(M.d)(this,"providerConfigs",Object.freeze(n)),Object(M.d)(this,"quorum",e),this._highestBlockNumber=-1;}detectNetwork(){return oe(this,void 0,void 0,function*(){return ue(yield Promise.all(this.providerConfigs.map(t=>t.provider.getNetwork())));});}perform(t,e){return oe(this,void 0,void 0,function*(){if("sendTransaction"===t){const t=yield Promise.all(this.providerConfigs.map(t=>t.provider.sendTransaction(e.signedTransaction).then(t=>t.hash,t=>t)));for(let i=0;i<t.length;i++){const e=t[i];if("string"==typeof e)return e;}throw t[0];}-1===this._highestBlockNumber&&"getBlockNumber"!==t&&(yield this.getBlockNumber());const n=ye(this,t,e),r=Object(ie.a)(this.providerConfigs.map(M.g));r.sort((a,b)=>a.priority-b.priority);const c=this._highestBlockNumber;let i=0,l=!0;for(;;){const o=se();let f=r.filter(t=>t.runner&&o-t.start<t.stallTimeout).reduce((t,e)=>t+e.weight,0);for(;f<this.quorum&&i<r.length;){const n=r[i++],o=fe++;n.start=se(),n.staller=he(n.stallTimeout),n.staller.wait(()=>{n.staller=null;}),n.runner=be(n,c,t,e).then(r=>{n.done=!0,n.result=r,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:o,backend:me(n,se()),request:{method:t,params:Object(M.c)(e)},provider:this});},r=>{n.done=!0,n.error=r,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:o,backend:me(n,se()),request:{method:t,params:Object(M.c)(e)},provider:this});}),this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:o,backend:me(n,null),request:{method:t,params:Object(M.c)(e)},provider:this}),f+=n.weight;}const h=[];r.forEach(t=>{!t.done&&t.runner&&(h.push(t.runner),t.staller&&h.push(t.staller.getPromise()));}),h.length&&(yield Promise.race(h));const d=r.filter(t=>t.done&&null==t.error);if(d.length>=this.quorum){const t=n(d);if(void 0!==t)return r.forEach(t=>{t.staller&&t.staller.cancel(),t.cancelled=!0;}),t;l||(yield he(100).getPromise()),l=!1;}const m=r.reduce((t,e)=>{if(!e.done||null==e.error)return t;const code=e.error.code;return de.indexOf(code)>=0&&(t[code]||(t[code]={error:e.error,weight:0}),t[code].weight+=e.weight),t;},{});if(Object.keys(m).forEach(t=>{const e=m[t];if(e.weight<this.quorum)return;r.forEach(t=>{t.staller&&t.staller.cancel(),t.cancelled=!0;});const n=e.error,o={};pe.forEach(t=>{null!=n[t]&&(o[t]=n[t]);}),ae.throwError(n.reason||n.message,t,o);}),0===r.filter(t=>!t.done).length)break;}return r.forEach(t=>{t.staller&&t.staller.cancel(),t.cancelled=!0;}),ae.throwError("failed to meet quorum",o.b.errors.SERVER_ERROR,{method:t,params:e,results:r.map(t=>me(t)),provider:this});});}}const we=null,_e=new o.b(I),Ae="84842078b09946638c03157f83405213";class Ee extends Rt{constructor(t,e){const n=new Te(t,e),r=n.connection;r.password&&_e.throwError("INFURA WebSocket project secrets unsupported",o.b.errors.UNSUPPORTED_OPERATION,{operation:"InfuraProvider.getWebSocketProvider()"});super(r.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/"),t),Object(M.d)(this,"apiKey",n.projectId),Object(M.d)(this,"projectId",n.projectId),Object(M.d)(this,"projectSecret",n.projectSecret);}isCommunityResource(){return this.projectId===Ae;}}class Te extends Ft{static getWebSocketProvider(t,e){return new Ee(t,e);}static getApiKey(t){const e={apiKey:Ae,projectId:Ae,projectSecret:null};return null==t||("string"==typeof t?e.projectId=t:null!=t.projectSecret?(_e.assertArgument("string"==typeof t.projectId,"projectSecret requires a projectId","projectId",t.projectId),_e.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 n=null;switch(t?t.name:"unknown"){case"homestead":n="mainnet.infura.io";break;case"goerli":n="goerli.infura.io";break;case"sepolia":n="sepolia.infura.io";break;case"matic":n="polygon-mainnet.infura.io";break;case"maticmum":n="polygon-mumbai.infura.io";break;case"optimism":n="optimism-mainnet.infura.io";break;case"optimism-goerli":n="optimism-goerli.infura.io";break;case"arbitrum":n="arbitrum-mainnet.infura.io";break;case"arbitrum-goerli":n="arbitrum-goerli.infura.io";break;default:_e.throwError("unsupported network",o.b.errors.INVALID_ARGUMENT,{argument:"network",value:t});}const r={allowGzip:!0,url:"https://"+n+"/v3/"+e.projectId,throttleCallback:(t,n)=>(e.projectId===Ae&&G(),Promise.resolve(!0))};return null!=e.projectSecret&&(r.user="",r.password=e.projectSecret),r;}isCommunityResource(){return this.projectId===Ae;}}class Oe extends St{send(t,e){const n={method:t,params:e,id:this._nextId++,jsonrpc:"2.0"};null==this._pendingBatch&&(this._pendingBatch=[]);const r={request:n,resolve:null,reject:null},o=new Promise((t,e)=>{r.resolve=t,r.reject=e;});return this._pendingBatch.push(r),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout(()=>{const t=this._pendingBatch;this._pendingBatch=null,this._pendingBatchAggregator=null;const e=t.map(t=>t.request);return this.emit("debug",{action:"requestBatch",request:Object(M.c)(e),provider:this}),Object(S.b)(this.connection,JSON.stringify(e)).then(n=>{this.emit("debug",{action:"response",request:e,response:n,provider:this}),t.forEach((t,e)=>{const r=n[e];if(r.error){const e=new Error(r.error.message);e.code=r.error.code,e.data=r.error.data,t.reject(e);}else t.resolve(r.result);});},n=>{this.emit("debug",{action:"response",error:n,request:e,provider:this}),t.forEach(t=>{t.reject(n);});});},10)),o;}}const Me=new o.b(I);class ke extends Ft{static getApiKey(t){return t&&"string"!=typeof t&&Me.throwArgumentError("invalid apiKey","apiKey",t),t||"ETHERS_JS_SHARED";}static getUrl(t,e){Me.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform.");let n=null;switch(t.name){case"homestead":n="https://ethereum.api.nodesmith.io/v1/mainnet/jsonrpc";break;case"ropsten":n="https://ethereum.api.nodesmith.io/v1/ropsten/jsonrpc";break;case"rinkeby":n="https://ethereum.api.nodesmith.io/v1/rinkeby/jsonrpc";break;case"goerli":n="https://ethereum.api.nodesmith.io/v1/goerli/jsonrpc";break;case"kovan":n="https://ethereum.api.nodesmith.io/v1/kovan/jsonrpc";break;default:Me.throwArgumentError("unsupported network","network",arguments[0]);}return n+"?apiKey="+e;}}const xe=new o.b(I),Se="62e1ad51b37b8e00394bda3b";class je extends Ft{static getApiKey(t){const e={applicationId:null,loadBalancer:!0,applicationSecretKey:null};return null==t?e.applicationId=Se:"string"==typeof t?e.applicationId=t:null!=t.applicationSecretKey?(e.applicationId=t.applicationId,e.applicationSecretKey=t.applicationSecretKey):t.applicationId?e.applicationId=t.applicationId:xe.throwArgumentError("unsupported PocketProvider apiKey","apiKey",t),e;}static getUrl(t,e){let n=null;switch(t?t.name:"unknown"){case"goerli":n="eth-goerli.gateway.pokt.network";break;case"homestead":n="eth-mainnet.gateway.pokt.network";break;case"kovan":n="poa-kovan.gateway.pokt.network";break;case"matic":n="poly-mainnet.gateway.pokt.network";break;case"maticmum":n="polygon-mumbai-rpc.gateway.pokt.network";break;case"rinkeby":n="eth-rinkeby.gateway.pokt.network";break;case"ropsten":n="eth-ropsten.gateway.pokt.network";break;default:xe.throwError("unsupported network",o.b.errors.INVALID_ARGUMENT,{argument:"network",value:t});}const r={headers:{},url:`https://${n}/v1/lb/${e.applicationId}`};return null!=e.applicationSecretKey&&(r.user="",r.password=e.applicationSecretKey),r;}isCommunityResource(){return this.applicationId===Se;}}const Ne=new o.b(I);let Ie=1;function Pe(t,e){const n="Web3LegacyFetcher";return function(t,r){const o={method:t,params:r,id:Ie++,jsonrpc:"2.0"};return new Promise((t,r)=>{this.emit("debug",{action:"request",fetcher:n,request:Object(M.c)(o),provider:this}),e(o,(e,c)=>{if(e)return this.emit("debug",{action:"response",fetcher:n,error:e,request:o,provider:this}),r(e);if(this.emit("debug",{action:"response",fetcher:n,request:o,response:c,provider:this}),c.error){const t=new Error(c.error.message);return t.code=c.error.code,t.data=c.error.data,r(t);}t(c.result);});});};}class Re extends St{constructor(t,e){null==t&&Ne.throwArgumentError("missing provider","provider",t);let path=null,n=null,r=null;"function"==typeof t?(path="unknown:",n=t):(path=t.host||t.path||"",!path&&t.isMetaMask&&(path="metamask"),r=t,t.request?(""===path&&(path="eip-1193:"),n=function(t){return function(e,n){null==n&&(n=[]);const r={method:e,params:n};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:Object(M.c)(r),provider:this}),t.request(r).then(t=>(this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:r,response:t,provider:this}),t),t=>{throw this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:r,error:t,provider:this}),t;});};}(t)):t.sendAsync?n=Pe(0,t.sendAsync.bind(t)):t.send?n=Pe(0,t.send.bind(t)):Ne.throwArgumentError("unsupported provider","provider",t),path||(path="unknown:")),super(path,e),Object(M.d)(this,"jsonRpcFetchFunc",n),Object(M.d)(this,"provider",r);}send(t,e){return this.jsonRpcFetchFunc(t,e);}}const Ce=new o.b(I);function Be(t,e){if(null==t&&(t="homestead"),"string"==typeof t){const e=t.match(/^(ws|http)s?:/i);if(e)switch(e[1].toLowerCase()){case"http":case"https":return new St(t);case"ws":case"wss":return new Rt(t);default:Ce.throwArgumentError("unsupported URL scheme","network",t);}}const n=v(t);return n&&n._defaultProvider||Ce.throwError("unsupported getDefaultProvider network",o.b.errors.NETWORK_ERROR,{operation:"getDefaultProvider",network:t}),n._defaultProvider({FallbackProvider:ve,AlchemyProvider:zt,AnkrProvider:Wt,CloudflareProvider:Yt,EtherscanProvider:re,InfuraProvider:Te,JsonRpcProvider:St,NodesmithProvider:ke,PocketProvider:je,Web3Provider:Re,IpcProvider:we},e);}},function(t,e,n){"use strict";n.d(e,"a",function(){return f;});var r=n(55),o=n(1),c=n(2);const l=new c.b("wordlists/5.7.0");class f{constructor(t){l.checkAbstract(new.target,f),Object(o.d)(this,"locale",t);}split(t){return t.toLowerCase().split(/ +/g);}join(t){return t.join(" ");}static check(t){const e=[];for(let i=0;i<2048;i++){const n=t.getWord(i);if(i!==t.getWordIndex(n))return"0x";e.push(n);}return Object(r.a)(e.join("\n")+"\n");}static register(t,e){e||(e=t.locale);}}},function(t,e,n){var r=n(136),o=n(70);t.exports=function(t){var e=r(t,"string");return o(e)?e:e+"";};},function(t,e,n){var r=n(26),o=n(34),c=n(73);t.exports=r?function(object,t,e){return o.f(object,t,c(1,e));}:function(object,t,e){return object[t]=e,object;};},function(t,e,n){var r=n(66),o=n(105),c=r("keys");t.exports=function(t){return c[t]||(c[t]=o(t));};},function(t,e){t.exports={};},function(t,e,n){var r=n(101),o=n(17),c=n(49),l=n(21)("toStringTag"),f=Object,h="Arguments"==c(function(){return arguments;}());t.exports=r?c:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e];}catch(t){}}(e=f(t),l))?n:h?c(e):"Object"==(r=c(e))&&o(e.callee)?"Arguments":r;};},function(t,e,n){var r=n(192);t.exports=function(t){var e=+t;return e!=e||0===e?0:r(e);};},function(t,e,n){var r=n(143),o=n(116).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o);};},function(t,e,n){var r=n(143),o=n(116);t.exports=Object.keys||function(t){return r(t,o);};},function(t,e,n){"use strict";var r=n(78),o=n(34),c=n(73);t.exports=function(object,t,e){var n=r(t);n in object?o.f(object,n,c(0,e)):object[n]=e;};},function(t,e){t.exports={};},function(t,e,n){"use strict";n.d(e,"a",function(){return r;});const r="ethers/5.7.2";},function(t,e,n){"use strict";n.d(e,"a",function(){return r;});const r="bignumber/5.7.0";},function(t,e,n){"use strict";n.d(e,"a",function(){return r;});const r="hash/5.7.0";},function(t,e,n){"use strict";n.d(e,"a",function(){return r;});const r="json-wallets/5.7.0";},function(t,e,n){"use strict";n.d(e,"a",function(){return o;});var r=n(53);function o(t){var e=function(input,t){if("object"!==Object(r.a)(input)||null===input)return input;var e=input[Symbol.toPrimitive];if(void 0!==e){var n=e.call(input,t||"default");if("object"!==Object(r.a)(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===t?String:Number)(input);}(t,"string");return"symbol"===Object(r.a)(e)?e:String(e);}},function(t,e,n){"use strict";n.d(e,"a",function(){return M;}),n.d(e,"b",function(){return k;});var r=n(33),o=n.n(r),c=n(4),l=n(0),f=n(5),h=n(256),d=n(27),m=n(1),y=n(2),v=n(91),w=n(6);const _=new y.b(v.a);class A extends m.a{isCrowdsaleAccount(t){return!(!t||!t._isCrowdsaleAccount);}}function E(t,e){const data=JSON.parse(t);e=Object(w.a)(e);const n=Object(c.a)(Object(w.c)(data,"ethaddr")),r=Object(w.b)(Object(w.c)(data,"encseed"));r&&r.length%16==0||_.throwArgumentError("invalid encseed","json",t);const m=Object(l.a)(Object(h.a)(e,e,2e3,32,"sha256")).slice(0,16),y=r.slice(0,16),v=r.slice(16),E=new o.a.ModeOfOperation.cbc(m,y),T=o.a.padding.pkcs7.strip(Object(l.a)(E.decrypt(v)));let O="";for(let i=0;i<T.length;i++)O+=String.fromCharCode(T[i]);const M=Object(d.f)(O),k=Object(f.a)(M);return new A({_isCrowdsaleAccount:!0,address:n,privateKey:k});}var T=n(46),O=n(60);function M(t,e,n){if(Object(T.b)(t)){n&&n(0);const r=E(t,e);return n&&n(1),Promise.resolve(r);}return Object(T.c)(t)?Object(O.a)(t,e,n):Promise.reject(new Error("invalid JSON wallet"));}function k(t,e){if(Object(T.b)(t))return E(t,e);if(Object(T.c)(t))return Object(O.b)(t,e);throw new Error("invalid JSON wallet");}},function(t,e,n){"use strict";(function(e){!function(n){const r=2147483647;function o(t){const 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]);let n=1779033703,h1=3144134277,h2=1013904242,h3=2773480762,h4=1359893119,h5=2600822924,h6=528734635,r=1541459225;const o=new Uint32Array(64);function c(p){let t=0,c=p.length;for(;c>=64;){let u,i,l,f,h,a=n,b=h1,d=h2,m=h3,y=h4,v=h5,g=h6,w=r;for(i=0;i<16;i++)l=t+4*i,o[i]=(255&p[l])<<24|(255&p[l+1])<<16|(255&p[l+2])<<8|255&p[l+3];for(i=16;i<64;i++)u=o[i-2],f=(u>>>17|u<<15)^(u>>>19|u<<13)^u>>>10,u=o[i-15],h=(u>>>7|u<<25)^(u>>>18|u<<14)^u>>>3,o[i]=(f+o[i-7]|0)+(h+o[i-16]|0)|0;for(i=0;i<64;i++)f=(((y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7))+(y&v^~y&g)|0)+(w+(e[i]+o[i]|0)|0)|0,h=((a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10))+(a&b^a&d^b&d)|0,w=g,g=v,v=y,y=m+f|0,m=d,d=b,b=a,a=f+h|0;n=n+a|0,h1=h1+b|0,h2=h2+d|0,h3=h3+m|0,h4=h4+y|0,h5=h5+v|0,h6=h6+g|0,r=r+w|0,t+=64,c-=64;}}c(t);let i,l=t.length%64,f=t.length/536870912|0,h=t.length<<3,d=l<56?56:120,p=t.slice(t.length-l,t.length);for(p.push(128),i=l+1;i<d;i++)p.push(0);return p.push(f>>>24&255),p.push(f>>>16&255),p.push(f>>>8&255),p.push(f>>>0&255),p.push(h>>>24&255),p.push(h>>>16&255),p.push(h>>>8&255),p.push(h>>>0&255),c(p),[n>>>24&255,n>>>16&255,n>>>8&255,n>>>0&255,h1>>>24&255,h1>>>16&255,h1>>>8&255,h1>>>0&255,h2>>>24&255,h2>>>16&255,h2>>>8&255,h2>>>0&255,h3>>>24&255,h3>>>16&255,h3>>>8&255,h3>>>0&255,h4>>>24&255,h4>>>16&255,h4>>>8&255,h4>>>0&255,h5>>>24&255,h5>>>16&255,h5>>>8&255,h5>>>0&255,h6>>>24&255,h6>>>16&255,h6>>>8&255,h6>>>0&255,r>>>24&255,r>>>16&255,r>>>8&255,r>>>0&255];}function c(t,e,n){t=t.length<=64?t:o(t);const r=64+e.length+4,c=new Array(r),l=new Array(64);let i,f=[];for(i=0;i<64;i++)c[i]=54;for(i=0;i<t.length;i++)c[i]^=t[i];for(i=0;i<e.length;i++)c[64+i]=e[i];for(i=r-4;i<r;i++)c[i]=0;for(i=0;i<64;i++)l[i]=92;for(i=0;i<t.length;i++)l[i]^=t[i];function h(){for(let i=r-1;i>=r-4;i--){if(c[i]++,c[i]<=255)return;c[i]=0;}}for(;n>=32;)h(),f=f.concat(o(l.concat(o(c)))),n-=32;return n>0&&(h(),f=f.concat(o(l.concat(o(c))).slice(0,n))),f;}function l(t,e,n,r,o){let i;for(m(t,16*(2*n-1),o,0,16),i=0;i<2*n;i++)d(t,16*i,o,16),h(o,r),m(o,0,t,e+16*i,16);for(i=0;i<n;i++)m(t,e+2*i*16,t,16*i,16);for(i=0;i<n;i++)m(t,e+16*(2*i+1),t,16*(i+n),16);}function f(a,b){return a<<b|a>>>32-b;}function h(t,e){m(t,0,e,0,16);for(let i=8;i>0;i-=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 i=0;i<16;++i)t[i]+=e[i];}function d(t,e,n,r){for(let i=0;i<r;i++)n[i]^=t[e+i];}function m(t,e,n,r,o){for(;o--;)n[r++]=t[e++];}function y(t){if(!t||"number"!=typeof t.length)return!1;for(let i=0;i<t.length;i++){const e=t[i];if("number"!=typeof e||e%1||e<0||e>=256)return!1;}return!0;}function v(t,e){if("number"!=typeof t||t%1)throw new Error("invalid "+e);return t;}function w(t,n,o,f,p,h,w){if(o=v(o,"N"),f=v(f,"r"),p=v(p,"p"),h=v(h,"dkLen"),0===o||0!=(o&o-1))throw new Error("N must be power of 2");if(o>r/128/f)throw new Error("N too large");if(f>r/128/p)throw new Error("r too large");if(!y(t))throw new Error("password must be an array or buffer");if(t=Array.prototype.slice.call(t),!y(n))throw new Error("salt must be an array or buffer");n=Array.prototype.slice.call(n);let b=c(t,n,128*p*f);const _=new Uint32Array(32*p*f);for(let i=0;i<_.length;i++){const t=4*i;_[i]=(255&b[t+3])<<24|(255&b[t+2])<<16|(255&b[t+1])<<8|(255&b[t+0])<<0;}const A=new Uint32Array(64*f),E=new Uint32Array(32*f*o),T=32*f,O=new Uint32Array(16),M=new Uint32Array(16),k=p*o*2;let x,S,j=0,N=null,I=!1,P=0,R=0;const C=w?parseInt(1e3/f):4294967295,B=void 0!==e?e:setTimeout,L=function(){if(I)return w(new Error("cancelled"),j/k);let e;switch(P){case 0:S=32*R*f,m(_,S,A,0,T),P=1,x=0;case 1:e=o-x,e>C&&(e=C);for(let i=0;i<e;i++)m(A,0,E,(x+i)*T,T),l(A,T,f,O,M);if(x+=e,j+=e,w){const t=parseInt(1e3*j/k);if(t!==N){if(I=w(null,j/k),I)break;N=t;}}if(x<o)break;x=0,P=2;case 2:e=o-x,e>C&&(e=C);for(let i=0;i<e;i++){const t=A[16*(2*f-1)]&o-1;d(E,t*T,A,T),l(A,T,f,O,M);}if(x+=e,j+=e,w){const t=parseInt(1e3*j/k);if(t!==N){if(I=w(null,j/k),I)break;N=t;}}if(x<o)break;if(m(A,0,_,S,T),R++,R<p){P=0;break;}b=[];for(let i=0;i<_.length;i++)b.push(_[i]>>0&255),b.push(_[i]>>8&255),b.push(_[i]>>16&255),b.push(_[i]>>24&255);const n=c(t,b,h);return w&&w(null,1,n),n;}w&&B(L);};if(!w)for(;;){const t=L();if(null!=t)return t;}L();}const _={scrypt:function(t,e,n,r,p,o,c){return new Promise(function(l,f){let h=0;c&&c(0),w(t,e,n,r,p,o,function(t,progress,e){if(t)f(t);else if(e)c&&1!==h&&c(1),l(new Uint8Array(e));else if(c&&progress!==h)return h=progress,c(progress);});});},syncScrypt:function(t,e,n,r,p,o){return new Uint8Array(w(t,e,n,r,p,o));}};t.exports=_;}();}).call(this,n(180).setImmediate);},function(t,e,n){"use strict";(function(t){n.d(e,"a",function(){return d;});var r=n(0),o=n(2),c=n(163);const l=new o.b(c.a);const f=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==t)return t;throw new Error("unable to locate global object");}();let h=f.crypto||f.msCrypto;function d(t){(t<=0||t>1024||t%1||t!=t)&&l.throwArgumentError("invalid length","length",t);const e=new Uint8Array(t);return h.getRandomValues(e),Object(r.a)(e);}h&&h.getRandomValues||(l.warn("WARNING: Missing strong random number source"),h={getRandomValues:function(t){return l.throwError("no secure random source avaialble",o.b.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"});}});}).call(this,n(47));},,function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l;}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i;}}),t.webpackPolyfill=1),t;};},function(t,e,n){"use strict";n.d(e,"a",function(){return o;}),n.d(e,"b",function(){return c;});var r=n(0);function o(t){t=atob(t);const data=[];for(let i=0;i<t.length;i++)data.push(t.charCodeAt(i));return Object(r.a)(data);}function c(data){data=Object(r.a)(data);let t="";for(let i=0;i<data.length;i++)t+=String.fromCharCode(data[i]);return btoa(t);}},function(t,e,n){var r=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,desc){t[e]=desc.value;},c="function"==typeof Symbol?Symbol:{},l=c.iterator||"@@iterator",f=c.asyncIterator||"@@asyncIterator",h=c.toStringTag||"@@toStringTag";function d(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{d({},"");}catch(t){d=function(t,e,n){return t[e]=n;};}function m(t,e,n,r){var c=e&&e.prototype instanceof T?e:T,l=Object.create(c.prototype),f=new L(r||[]);return o(l,"_invoke",{value:P(t,n,f)}),l;}function y(t,e,n){try{return{type:"normal",arg:t.call(e,n)};}catch(t){return{type:"throw",arg:t};}}t.wrap=m;var v="suspendedStart",w="suspendedYield",_="executing",A="completed",E={};function T(){}function O(){}function M(){}var k={};d(k,l,function(){return this;});var x=Object.getPrototypeOf,S=x&&x(x(F([])));S&&S!==n&&r.call(S,l)&&(k=S);var j=M.prototype=T.prototype=Object.create(k);function N(t){["next","throw","return"].forEach(function(e){d(t,e,function(t){return this._invoke(e,t);});});}function I(t,e){function n(o,c,l,f){var h=y(t[o],t,c);if("throw"!==h.type){var d=h.arg,m=d.value;return m&&"object"==typeof m&&r.call(m,"__await")?e.resolve(m.__await).then(function(t){n("next",t,l,f);},function(t){n("throw",t,l,f);}):e.resolve(m).then(function(t){d.value=t,l(d);},function(t){return n("throw",t,l,f);});}f(h.arg);}var c;o(this,"_invoke",{value:function(t,r){function o(){return new e(function(e,o){n(t,r,e,o);});}return c=c?c.then(o,o):o();}});}function P(t,e,n){var r=v;return function(o,c){if(r===_)throw new Error("Generator is already running");if(r===A){if("throw"===o)throw c;return D();}for(n.method=o,n.arg=c;;){var l=n.delegate;if(l){var f=R(l,n);if(f){if(f===E)continue;return f;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===v)throw r=A,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);r=_;var h=y(t,e,n);if("normal"===h.type){if(r=n.done?A:w,h.arg===E)continue;return{value:h.arg,done:n.done};}"throw"===h.type&&(r=A,n.method="throw",n.arg=h.arg);}};}function R(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,R(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),E;var c=y(o,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,E;var l=c.arg;return l?l.done?(n[t.resultName]=l.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,E):l:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,E);}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function B(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0);}function F(t){if(t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n;};return o.next=o;}}return{next:D};}function D(){return{value:e,done:!0};}return O.prototype=M,o(j,"constructor",{value:M,configurable:!0}),o(M,"constructor",{value:O,configurable:!0}),O.displayName=d(M,h,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===O||"GeneratorFunction"===(e.displayName||e.name));},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,M):(t.__proto__=M,d(t,h,"GeneratorFunction")),t.prototype=Object.create(j),t;},t.awrap=function(t){return{__await:t};},N(I.prototype),d(I.prototype,f,function(){return this;}),t.AsyncIterator=I,t.async=function(e,n,r,o,c){void 0===c&&(c=Promise);var l=new I(m(e,n,r,o),c);return t.isGeneratorFunction(n)?l:l.next().then(function(t){return t.done?t.value:l.next();});},N(j),d(j,h,"Generator"),d(j,l,function(){return this;}),d(j,"toString",function(){return"[object Generator]";}),t.keys=function(t){var object=Object(t),e=[];for(var n in object)e.push(n);return e.reverse(),function t(){for(;e.length;){var n=e.pop();if(n in object)return t.value=n,t.done=!1,t;}return t.done=!0,t;};},t.values=F,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(B),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e);},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o;}for(var i=this.tryEntries.length-1;i>=0;--i){var c=this.tryEntries[i],l=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var f=r.call(c,"catchLoc"),h=r.call(c,"finallyLoc");if(f&&h){if(this.prev<c.catchLoc)return o(c.catchLoc,!0);if(this.prev<c.finallyLoc)return o(c.finallyLoc);}else if(f){if(this.prev<c.catchLoc)return o(c.catchLoc,!0);}else{if(!h)throw new Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return o(c.finallyLoc);}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break;}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var c=o?o.completion:{};return c.type=t,c.arg=e,o?(this.method="next",this.next=o.finallyLoc,E):this.complete(c);},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),E;},finish:function(t){for(var i=this.tryEntries.length-1;i>=0;--i){var e=this.tryEntries[i];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),B(e),E;}},catch:function(t){for(var i=this.tryEntries.length-1;i>=0;--i){var e=this.tryEntries[i];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var r=n.arg;B(e);}return r;}}throw new Error("illegal catch attempt");},delegateYield:function(t,n,r){return this.delegate={iterator:F(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),E;}},t;}(t.exports);try{regeneratorRuntime=r;}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r);}},function(t,e,n){var r=n(101),o=n(57),c=n(185);r||o(Object.prototype,"toString",c,{unsafe:!0});},function(t,e,n){var r={};r[n(21)("toStringTag")]="z",t.exports="[object z]"===String(r);},function(t,e,n){var r=n(22),o=n(103),c="__core-js_shared__",l=r[c]||o(c,{});t.exports=l;},function(t,e,n){var r=n(22),o=Object.defineProperty;t.exports=function(t,e){try{o(r,t,{value:e,configurable:!0,writable:!0});}catch(n){r[t]=e;}return e;};},function(t,e){t.exports=function(t){return null==t;};},function(t,e,n){var r=n(12),o=0,c=Math.random(),l=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+l(++o+c,36);};},function(t,e,n){var r=n(22),o=n(35),c=r.document,l=o(c)&&o(c.createElement);t.exports=function(t){return l?c.createElement(t):{};};},function(t,e,n){var r=n(12);t.exports=r({}.isPrototypeOf);},function(t,e,n){var r=n(71),o=n(104);t.exports=function(t,e){var n=t[e];return o(n)?void 0:r(n);};},function(t,e,n){var r=n(26),o=n(25),c=Function.prototype,l=r&&Object.getOwnPropertyDescriptor,f=o(c,"name"),h=f&&"something"===function(){}.name,d=f&&(!r||r&&l(c,"name").configurable);t.exports={EXISTS:f,PROPER:h,CONFIGURABLE:d};},function(t,e,n){var r,o,c,l=n(184),f=n(22),h=n(35),d=n(79),m=n(25),y=n(102),v=n(80),w=n(81),_="Object already initialized",A=f.TypeError,E=f.WeakMap;if(l||y.state){var T=y.state||(y.state=new E());T.get=T.get,T.has=T.has,T.set=T.set,r=function(t,e){if(T.has(t))throw A(_);return e.facade=t,T.set(t,e),e;},o=function(t){return T.get(t)||{};},c=function(t){return T.has(t);};}else{var O=v("state");w[O]=!0,r=function(t,e){if(m(t,O))throw A(_);return e.facade=t,d(t,O,e),e;},o=function(t){return m(t,O)?t[O]:{};},c=function(t){return m(t,O);};}t.exports={set:r,get:o,has:c,enforce:function(t){return c(t)?o(t):r(t,{});},getterFor:function(t){return function(e){var n;if(!h(e)||(n=o(e)).type!==t)throw A("Incompatible receiver, "+t+" required");return n;};}};},function(t,e,n){var r=n(139),o=n(12),c=n(140),l=n(48),f=n(74),h=n(141),d=o([].push),m=function(t){var e=1==t,n=2==t,o=3==t,m=4==t,y=6==t,v=7==t,w=5==t||y;return function(_,A,E,T){for(var O,M,k=l(_),x=c(k),S=r(A,E),j=f(x),N=0,I=T||h,P=e?I(_,j):n||v?I(_,0):void 0;j>N;N++)if((w||N in x)&&(M=S(O=x[N],N,k),t))if(e)P[N]=M;else if(M)switch(t){case 3:return!0;case 5:return O;case 6:return N;case 2:d(P,O);}else switch(t){case 4:return!1;case 7:d(P,O);}return y?-1:o||m?m:P;};};t.exports={forEach:m(0),map:m(1),filter:m(2),some:m(3),every:m(4),find:m(5),findIndex:m(6),filterReject:m(7)};},function(t,e,n){var r=n(49);t.exports=Array.isArray||function(t){return"Array"==r(t);};},function(t,e,n){var r=n(12),o=n(14),c=n(17),l=n(82),f=n(44),h=n(138),d=function(){},m=[],y=f("Reflect","construct"),v=/^\s*(?:class|function)\b/,w=r(v.exec),_=!v.exec(d),A=function(t){if(!c(t))return!1;try{return y(d,m,t),!0;}catch(t){return!1;}},E=function(t){if(!c(t))return!1;switch(l(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1;}try{return _||!!w(v,h(t));}catch(t){return!0;}};E.sham=!0,t.exports=!y||o(function(){var t;return A(A.call)||!A(Object)||!A(function(){t=!0;})||t;})?E:A;},function(t,e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,c=o&&!r.call({1:2},1);e.f=c?function(t){var e=o(this,t);return!!e&&e.enumerable;}:r;},function(t,e,n){var r=n(83),o=Math.max,c=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):c(n,e);};},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];},function(t,e){e.f=Object.getOwnPropertySymbols;},function(t,e,n){var r=n(25),o=n(17),c=n(48),l=n(80),f=n(198),h=l("IE_PROTO"),d=Object,m=d.prototype;t.exports=f?d.getPrototypeOf:function(t){var object=c(t);if(r(object,h))return object[h];var e=object.constructor;return o(e)&&object instanceof e?e.prototype:object instanceof d?m:null;};},function(t,e,n){var r=n(34).f,o=n(25),c=n(21)("toStringTag");t.exports=function(t,e,n){t&&!n&&(t=t.prototype),t&&!o(t,c)&&r(t,c,{configurable:!0,value:e});};},function(t,e,n){var r=n(68),o=Function.prototype,c=o.apply,l=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?l.bind(c):function(){return l.apply(c,arguments);});},function(t,e,n){var r=n(12);t.exports=r([].slice);},function(t,e,n){"use strict";for(var r="qpzry9x8gf2tvdw0s3jn54khce6mua7l",o={},c=0;c<32;c++){var l=r.charAt(c);if(void 0!==o[l])throw new TypeError(l+" is ambiguous");o[l]=c;}function f(pre){var b=pre>>25;return(33554431&pre)<<5^996825010&-(b>>0&1)^642813549&-(b>>1&1)^513874426&-(b>>2&1)^1027748829&-(b>>3&1)^705979059&-(b>>4&1);}function h(t){for(var e=1,i=0;i<t.length;++i){var n=t.charCodeAt(i);if(n<33||n>126)return"Invalid prefix ("+t+")";e=f(e)^n>>5;}for(e=f(e),i=0;i<t.length;++i){var r=t.charCodeAt(i);e=f(e)^31&r;}return e;}function d(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(),r=t.toUpperCase();if(t!==n&&t!==r)return"Mixed-case string "+t;var c=(t=n).lastIndexOf("1");if(-1===c)return"No separator character for "+t;if(0===c)return"Missing prefix for "+t;var l=t.slice(0,c),d=t.slice(c+1);if(d.length<6)return"Data too short";var m=h(l);if("string"==typeof m)return m;for(var y=[],i=0;i<d.length;++i){var v=d.charAt(i),w=o[v];if(void 0===w)return"Unknown character "+v;m=f(m)^w,i+6>=d.length||y.push(w);}return 1!==m?"Invalid checksum for "+t:{prefix:l,words:y};}function m(data,t,e,n){for(var r=0,o=0,c=(1<<e)-1,l=[],i=0;i<data.length;++i)for(r=r<<t|data[i],o+=t;o>=e;)o-=e,l.push(r>>o&c);if(n)o>0&&l.push(r<<e-o&c);else{if(o>=t)return"Excess padding";if(r<<e-o&c)return"Non-zero padding";}return l;}t.exports={decodeUnsafe:function(){var t=d.apply(null,arguments);if("object"==typeof t)return t;},decode:function(t){var e=d.apply(null,arguments);if("object"==typeof e)return e;throw new Error(e);},encode:function(t,e,n){if(n=n||90,t.length+7+e.length>n)throw new TypeError("Exceeds length limit");var o=h(t=t.toLowerCase());if("string"==typeof o)throw new Error(o);for(var c=t+"1",i=0;i<e.length;++i){var l=e[i];if(l>>5!=0)throw new Error("Non 5-bit word");o=f(o)^l,c+=r.charAt(l);}for(i=0;i<6;++i)o=f(o);for(o^=1,i=0;i<6;++i){c+=r.charAt(o>>5*(5-i)&31);}return c;},toWordsUnsafe:function(t){var e=m(t,8,5,!0);if(Array.isArray(e))return e;},toWords:function(t){var e=m(t,8,5,!0);if(Array.isArray(e))return e;throw new Error(e);},fromWordsUnsafe:function(t){var e=m(t,5,8,!1);if(Array.isArray(e))return e;},fromWords:function(t){var e=m(t,5,8,!1);if(Array.isArray(e))return e;throw new Error(e);}};},,function(t,e,n){"use strict";var r=n(37).rotr32;function o(t,e,n){return t&e^~t&n;}function c(t,e,n){return t&e^t&n^e&n;}function l(t,e,n){return t^e^n;}e.ft_1=function(s,t,e,n){return 0===s?o(t,e,n):1===s||3===s?l(t,e,n):2===s?c(t,e,n):void 0;},e.ch32=o,e.maj32=c,e.p32=l,e.s0_256=function(t){return r(t,2)^r(t,13)^r(t,22);},e.s1_256=function(t){return r(t,6)^r(t,11)^r(t,25);},e.g0_256=function(t){return r(t,7)^r(t,18)^t>>>3;},e.g1_256=function(t){return r(t,17)^r(t,19)^t>>>10;};},function(t,e,n){"use strict";var r=n(37),o=n(64),c=n(124),l=n(63),f=r.sum32,h=r.sum32_4,d=r.sum32_5,m=c.ch32,y=c.maj32,v=c.s0_256,w=c.s1_256,_=c.g0_256,A=c.g1_256,E=o.BlockHash,T=[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 O(){if(!(this instanceof O))return new O();E.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=T,this.W=new Array(64);}r.inherits(O,E),t.exports=O,O.blockSize=512,O.outSize=256,O.hmacStrength=192,O.padLength=64,O.prototype._update=function(t,e){for(var n=this.W,i=0;i<16;i++)n[i]=t[e+i];for(;i<n.length;i++)n[i]=h(A(n[i-2]),n[i-7],_(n[i-15]),n[i-16]);var a=this.h[0],b=this.h[1],r=this.h[2],o=this.h[3],c=this.h[4],E=this.h[5],g=this.h[6],T=this.h[7];for(l(this.k.length===n.length),i=0;i<n.length;i++){var O=d(T,w(c),m(c,E,g),this.k[i],n[i]),M=f(v(a),y(a,b,r));T=g,g=E,E=c,c=f(o,O),o=r,r=b,b=a,a=f(O,M);}this.h[0]=f(this.h[0],a),this.h[1]=f(this.h[1],b),this.h[2]=f(this.h[2],r),this.h[3]=f(this.h[3],o),this.h[4]=f(this.h[4],c),this.h[5]=f(this.h[5],E),this.h[6]=f(this.h[6],g),this.h[7]=f(this.h[7],T);},O.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"big"):r.split32(this.h,"big");};},function(t,e,n){"use strict";var r=n(37),o=n(64),c=n(63),l=r.rotr64_hi,f=r.rotr64_lo,h=r.shr64_hi,d=r.shr64_lo,m=r.sum64,y=r.sum64_hi,v=r.sum64_lo,w=r.sum64_4_hi,_=r.sum64_4_lo,A=r.sum64_5_hi,E=r.sum64_5_lo,T=o.BlockHash,O=[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 M(){if(!(this instanceof M))return new M();T.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=O,this.W=new Array(160);}function k(t,e,n,r,o){var c=t&n^~t&o;return c<0&&(c+=4294967296),c;}function x(t,e,n,r,o,c){var l=e&r^~e&c;return l<0&&(l+=4294967296),l;}function S(t,e,n,r,o){var c=t&n^t&o^n&o;return c<0&&(c+=4294967296),c;}function j(t,e,n,r,o,c){var l=e&r^e&c^r&c;return l<0&&(l+=4294967296),l;}function N(t,e){var n=l(t,e,28)^l(e,t,2)^l(e,t,7);return n<0&&(n+=4294967296),n;}function I(t,e){var n=f(t,e,28)^f(e,t,2)^f(e,t,7);return n<0&&(n+=4294967296),n;}function P(t,e){var n=l(t,e,14)^l(t,e,18)^l(e,t,9);return n<0&&(n+=4294967296),n;}function R(t,e){var n=f(t,e,14)^f(t,e,18)^f(e,t,9);return n<0&&(n+=4294967296),n;}function C(t,e){var n=l(t,e,1)^l(t,e,8)^h(t,e,7);return n<0&&(n+=4294967296),n;}function B(t,e){var n=f(t,e,1)^f(t,e,8)^d(t,e,7);return n<0&&(n+=4294967296),n;}function L(t,e){var n=l(t,e,19)^l(e,t,29)^h(t,e,6);return n<0&&(n+=4294967296),n;}function F(t,e){var n=f(t,e,19)^f(e,t,29)^d(t,e,6);return n<0&&(n+=4294967296),n;}r.inherits(M,T),t.exports=M,M.blockSize=1024,M.outSize=512,M.hmacStrength=192,M.padLength=128,M.prototype._prepareBlock=function(t,e){for(var n=this.W,i=0;i<32;i++)n[i]=t[e+i];for(;i<n.length;i+=2){var r=L(n[i-4],n[i-3]),o=F(n[i-4],n[i-3]),c=n[i-14],l=n[i-13],f=C(n[i-30],n[i-29]),h=B(n[i-30],n[i-29]),d=n[i-32],m=n[i-31];n[i]=w(r,o,c,l,f,h,d,m),n[i+1]=_(r,o,c,l,f,h,d,m);}},M.prototype._update=function(t,e){this._prepareBlock(t,e);var n=this.W,r=this.h[0],o=this.h[1],l=this.h[2],f=this.h[3],h=this.h[4],d=this.h[5],w=this.h[6],dl=this.h[7],_=this.h[8],T=this.h[9],O=this.h[10],M=this.h[11],C=this.h[12],B=this.h[13],L=this.h[14],F=this.h[15];c(this.k.length===n.length);for(var i=0;i<n.length;i+=2){var D=L,U=F,G=P(_,T),z=R(_,T),H=k(_,T,O,M,C),K=x(_,T,O,M,C,B),W=this.k[i],V=this.k[i+1],J=n[i],Y=n[i+1],Q=A(D,U,G,z,H,K,W,V,J,Y),X=E(D,U,G,z,H,K,W,V,J,Y);D=N(r,o),U=I(r,o),G=S(r,o,l,f,h),z=j(r,o,l,f,h,d);var Z=y(D,U,G,z),$=v(D,U,G,z);L=C,F=B,C=O,B=M,O=_,M=T,_=y(w,dl,Q,X),T=v(dl,dl,Q,X),w=h,dl=d,h=l,d=f,l=r,f=o,r=y(Q,X,Z,$),o=v(Q,X,Z,$);}m(this.h,0,r,o),m(this.h,2,l,f),m(this.h,4,h,d),m(this.h,6,w,dl),m(this.h,8,_,T),m(this.h,10,O,M),m(this.h,12,C,B),m(this.h,14,L,F);},M.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"big"):r.split32(this.h,"big");};},function(t,e){var n,r,o=t.exports={};function c(){throw new Error("setTimeout has not been defined");}function l(){throw new Error("clearTimeout has not been defined");}function f(t){if(n===setTimeout)return setTimeout(t,0);if((n===c||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0);}catch(e){try{return n.call(null,t,0);}catch(e){return n.call(this,t,0);}}}!function(){try{n="function"==typeof setTimeout?setTimeout:c;}catch(t){n=c;}try{r="function"==typeof clearTimeout?clearTimeout:l;}catch(t){r=l;}}();var h,d=[],m=!1,y=-1;function v(){m&&h&&(m=!1,h.length?d=h.concat(d):y=-1,d.length&&w());}function w(){if(!m){var t=f(v);m=!0;for(var e=d.length;e;){for(h=d,d=[];++y<e;)h&&h[y].run();y=-1,e=d.length;}h=null,m=!1,function(marker){if(r===clearTimeout)return clearTimeout(marker);if((r===l||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(marker);try{return r(marker);}catch(t){try{return r.call(null,marker);}catch(t){return r.call(this,marker);}}}(t);}}function _(t,e){this.fun=t,this.array=e;}function A(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];d.push(new _(t,e)),1!==d.length||m||f(w);},_.prototype.run=function(){this.fun.apply(null,this.array);},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=A,o.addListener=A,o.once=A,o.off=A,o.removeListener=A,o.removeAllListeners=A,o.emit=A,o.prependListener=A,o.prependOnceListener=A,o.listeners=function(t){return[];},o.binding=function(t){throw new Error("process.binding is not supported");},o.cwd=function(){return"/";},o.chdir=function(t){throw new Error("process.chdir is not supported");},o.umask=function(){return 0;};},function(t,e,n){"use strict";n.d(e,"a",function(){return r;});const r="0x0000000000000000000000000000000000000000000000000000000000000000";},function(t,e,n){"use strict";n.d(e,"a",function(){return r;});const r="0x0000000000000000000000000000000000000000";},function(t,e,n){var r,o,c=n(22),l=n(131),f=c.process,h=c.Deno,d=f&&f.versions||h&&h.version,m=d&&d.v8;m&&(o=(r=m.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&l&&(!(r=l.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=l.match(/Chrome\/(\d+)/))&&(o=+r[1]),t.exports=o;},function(t,e){t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||"";},function(t,e,n){var r=n(56);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator;},function(t,e){var n="object"==typeof document&&document.all,r=void 0===n&&void 0!==n;t.exports={all:n,IS_HTMLDDA:r};},function(t,e,n){var r=n(26),o=n(14),c=n(106);t.exports=!r&&!o(function(){return 7!=Object.defineProperty(c("div"),"a",{get:function(){return 7;}}).a;});},function(t,e,n){var r=n(26),o=n(14);t.exports=r&&o(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype;});},function(t,e,n){var r=n(39),o=n(35),c=n(70),l=n(108),f=n(183),h=n(21),d=TypeError,m=h("toPrimitive");t.exports=function(input,t){if(!o(input)||c(input))return input;var e,n=l(input,m);if(n){if(void 0===t&&(t="default"),e=r(n,input,t),!o(e)||c(e))return e;throw d("Can't convert object to primitive value");}return void 0===t&&(t="number"),f(input,t);};},function(t,e,n){var r=n(12),o=n(14),c=n(17),l=n(25),f=n(26),h=n(109).CONFIGURABLE,d=n(138),m=n(110),y=m.enforce,v=m.get,w=String,_=Object.defineProperty,A=r("".slice),E=r("".replace),T=r([].join),O=f&&!o(function(){return 8!==_(function(){},"length",{value:8}).length;}),M=String(String).split("String"),k=t.exports=function(t,e,n){"Symbol("===A(w(e),0,7)&&(e="["+E(w(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!l(t,"name")||h&&t.name!==e)&&(f?_(t,"name",{value:e,configurable:!0}):t.name=e),O&&n&&l(n,"arity")&&t.length!==n.arity&&_(t,"length",{value:n.arity});try{n&&l(n,"constructor")&&n.constructor?f&&_(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0);}catch(t){}var r=y(t);return l(r,"source")||(r.source=T(M,"string"==typeof e?e:"")),t;};Function.prototype.toString=k(function(){return c(this)&&v(this).source||d(this);},"toString");},function(t,e,n){var r=n(12),o=n(17),c=n(102),l=r(Function.toString);o(c.inspectSource)||(c.inspectSource=function(t){return l(t);}),t.exports=c.inspectSource;},function(t,e,n){var r=n(190),o=n(71),c=n(68),l=r(r.bind);t.exports=function(t,e){return o(t),void 0===e?t:c?l(t,e):function(){return t.apply(e,arguments);};};},function(t,e,n){var r=n(12),o=n(14),c=n(49),l=Object,f=r("".split);t.exports=o(function(){return!l("z").propertyIsEnumerable(0);})?function(t){return"String"==c(t)?f(t,""):l(t);}:l;},function(t,e,n){var r=n(193);t.exports=function(t,e){return new(r(t))(0===e?0:e);};},function(t,e,n){var r=n(44),o=n(12),c=n(84),l=n(117),f=n(38),h=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=c.f(f(t)),n=l.f;return n?h(e,n(t)):e;};},function(t,e,n){var r=n(12),o=n(25),c=n(42),l=n(144).indexOf,f=n(81),h=r([].push);t.exports=function(object,t){var e,n=c(object),i=0,r=[];for(e in n)!o(f,e)&&o(n,e)&&h(r,e);for(;t.length>i;)o(n,e=t[i++])&&(~l(r,e)||h(r,e));return r;};},function(t,e,n){var r=n(42),o=n(115),c=n(74),l=function(t){return function(e,n,l){var f,h=r(e),d=c(h),m=o(l,d);if(t&&n!=n){for(;d>m;)if((f=h[m++])!=f)return!0;}else for(;d>m;m++)if((t||m in h)&&h[m]===n)return t||m||0;return!t&&-1;};};t.exports={includes:l(!0),indexOf:l(!1)};},function(t,e,n){var r=n(14),o=n(17),c=/#|\.prototype\./,l=function(t,e){var n=data[f(t)];return n==d||n!=h&&(o(e)?r(e):!!e);},f=l.normalize=function(t){return String(t).replace(c,".").toLowerCase();},data=l.data={},h=l.NATIVE="N",d=l.POLYFILL="P";t.exports=l;},function(t,e,n){var r=n(137),o=n(34);t.exports=function(t,e,n){return n.get&&r(n.get,e,{getter:!0}),n.set&&r(n.set,e,{setter:!0}),o.f(t,e,n);};},function(t,e,n){"use strict";var r=n(19),o=n(144).includes,c=n(14),l=n(200);r({target:"Array",proto:!0,forced:c(function(){return!Array(1).includes();})},{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0);}}),l("includes");},function(t,e,n){var r=n(26),o=n(135),c=n(34),l=n(38),f=n(42),h=n(85);e.f=r&&!o?Object.defineProperties:function(t,e){l(t);for(var n,r=f(e),o=h(e),d=o.length,m=0;d>m;)c.f(t,n=o[m++],r[n]);return t;};},function(t,e,n){"use strict";var r=n(19),o=n(12),c=n(202),l=n(69),f=n(50),h=n(204),d=o("".indexOf);r({target:"String",proto:!0,forced:!h("includes")},{includes:function(t){return!!~d(f(l(this)),f(c(t)),arguments.length>1?arguments[1]:void 0);}});},function(t,e,n){var r=n(21);e.f=r;},function(t,e,n){var r=n(22);t.exports=r;},function(t,e,n){var r=n(56);t.exports=r&&!!Symbol.for&&!!Symbol.keyFor;},function(t,e,n){var r=n(14),o=n(21),c=n(130),l=o("species");t.exports=function(t){return c>=51||!r(function(){var e=[];return(e.constructor={})[l]=function(){return{foo:1};},1!==e[t](Boolean).foo;});};},function(t,e,n){var r=n(82),o=n(108),c=n(104),l=n(87),f=n(21)("iterator");t.exports=function(t){if(!c(t))return o(t,f)||o(t,"@@iterator")||l[r(t)];};},function(t,e,n){"use strict";var r,o,c,l=n(14),f=n(17),h=n(35),d=n(75),m=n(118),y=n(57),v=n(21),w=n(67),_=v("iterator"),A=!1;[].keys&&("next"in(c=[].keys())?(o=m(m(c)))!==Object.prototype&&(r=o):A=!0),!h(r)||l(function(){var t={};return r[_].call(t)!==t;})?r={}:w&&(r=d(r)),f(r[_])||y(r,_,function(){return this;}),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:A};},function(t,e,n){var r=n(236),o=n(38),c=n(237);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array;}catch(t){}return function(n,r){return o(n),c(r),e?t(n,r):n.__proto__=r,n;};}():void 0);},function(t,e,n){n(244),n(247);},function(t,e,n){"use strict";var r,o=n(22),c=n(120),l=n(17),f=n(245),h=n(131),d=n(121),m=n(246),y=o.Function,v=/MSIE .\./.test(h)||f&&((r=o.Bun.version.split(".")).length<3||0==r[0]&&(r[1]<3||3==r[1]&&0==r[2]));t.exports=function(t,e){var n=e?2:1;return v?function(r,o){var f=m(arguments.length,1)>n,h=l(r)?r:y(r),v=f?d(arguments,n):[],w=f?function(){c(h,this,v);}:h;return e?t(w,o):t(w);}:t;};},function(t,e,n){"use strict";(function(t){n.d(e,"a",function(){return Y;});var r=n(3),o=n.n(r),c=n(24),l=n.n(c);"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t||"undefined"!=typeof self&&self;function f(t,e,n){return n={path:e,exports:{},require:function(path,base){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs");}(null==base&&n.path);}},t(n,n.exports),n.exports;}var h=d;function d(t,e){if(!t)throw new Error(e||"Assertion failed");}d.equal=function(t,e,n){if(t!=e)throw new Error(n||"Assertion failed: "+t+" != "+e);};var m=f(function(t,e){var n=e;function r(t){return 1===t.length?"0"+t:t;}function o(t){for(var e="",i=0;i<t.length;i++)e+=r(t[i].toString(16));return e;}n.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"!=typeof t){for(var i=0;i<t.length;i++)n[i]=0|t[i];return n;}if("hex"===e){(t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t);for(i=0;i<t.length;i+=2)n.push(parseInt(t[i]+t[i+1],16));}else for(i=0;i<t.length;i++){var r=t.charCodeAt(i),o=r>>8,c=255&r;o?n.push(o,c):n.push(c);}return n;},n.zero2=r,n.toHex=o,n.encode=function(t,e){return"hex"===e?o(t):t;};}),y=f(function(t,e){var n=e;n.assert=h,n.toArray=m.toArray,n.zero2=m.zero2,n.toHex=m.toHex,n.encode=m.encode,n.getNAF=function(t,e,n){var r=new Array(Math.max(t.bitLength(),n)+1);r.fill(0);for(var o=1<<e+1,c=t.clone(),i=0;i<r.length;i++){var l,f=c.andln(o-1);c.isOdd()?(l=f>(o>>1)-1?(o>>1)-f:f,c.isubn(l)):l=0,r[i]=l,c.iushrn(1);}return r;},n.getJSF=function(t,e){var n=[[],[]];t=t.clone(),e=e.clone();for(var r,o=0,c=0;t.cmpn(-o)>0||e.cmpn(-c)>0;){var l,f,h=t.andln(3)+o&3,d=e.andln(3)+c&3;3===h&&(h=-1),3===d&&(d=-1),l=0==(1&h)?0:3!==(r=t.andln(7)+o&7)&&5!==r||2!==d?h:-h,n[0].push(l),f=0==(1&d)?0:3!==(r=e.andln(7)+c&7)&&5!==r||2!==h?d:-d,n[1].push(f),2*o===l+1&&(o=1-o),2*c===f+1&&(c=1-c),t.iushrn(1),e.iushrn(1);}return n;},n.cachedProperty=function(t,e,n){var r="_"+e;t.prototype[e]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this);};},n.parseBytes=function(t){return"string"==typeof t?n.toArray(t,"hex"):t;},n.intFromLE=function(t){return new o.a(t,"hex","le");};}),v=y.getNAF,w=y.getJSF,_=y.assert;function A(t,e){this.type=t,this.p=new o.a(e.p,16),this.red=e.prime?o.a.red(e.prime):o.a.mont(this.p),this.zero=new o.a(0).toRed(this.red),this.one=new o.a(1).toRed(this.red),this.two=new o.a(2).toRed(this.red),this.n=e.n&&new o.a(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red));}var base=A;function E(t,e){this.curve=t,this.type=e,this.precomputed=null;}A.prototype.point=function(){throw new Error("Not implemented");},A.prototype.validate=function(){throw new Error("Not implemented");},A.prototype._fixedNafMul=function(p,t){_(p.precomputed);var e=p._getDoubles(),n=v(t,1,this._bitLength),r=(1<<e.step+1)-(e.step%2==0?2:1);r/=3;var o,c,l=[];for(o=0;o<n.length;o+=e.step){c=0;for(var f=o+e.step-1;f>=o;f--)c=(c<<1)+n[f];l.push(c);}for(var a=this.jpoint(null,null,null),b=this.jpoint(null,null,null),i=r;i>0;i--){for(o=0;o<l.length;o++)(c=l[o])===i?b=b.mixedAdd(e.points[o]):c===-i&&(b=b.mixedAdd(e.points[o].neg()));a=a.add(b);}return a.toP();},A.prototype._wnafMul=function(p,t){var e=4,n=p._getNAFPoints(e);e=n.wnd;for(var r=n.points,o=v(t,e,this._bitLength),c=this.jpoint(null,null,null),i=o.length-1;i>=0;i--){for(var l=0;i>=0&&0===o[i];i--)l++;if(i>=0&&l++,c=c.dblp(l),i<0)break;var f=o[i];_(0!==f),c="affine"===p.type?f>0?c.mixedAdd(r[f-1>>1]):c.mixedAdd(r[-f-1>>1].neg()):f>0?c.add(r[f-1>>1]):c.add(r[-f-1>>1].neg());}return"affine"===p.type?c.toP():c;},A.prototype._wnafMulAdd=function(t,e,n,r,o){var i,c,p,l=this._wnafT1,f=this._wnafT2,h=this._wnafT3,d=0;for(i=0;i<r;i++){var m=(p=e[i])._getNAFPoints(t);l[i]=m.wnd,f[i]=m.points;}for(i=r-1;i>=1;i-=2){var a=i-1,b=i;if(1===l[a]&&1===l[b]){var y=[e[a],null,null,e[b]];0===e[a].y.cmp(e[b].y)?(y[1]=e[a].add(e[b]),y[2]=e[a].toJ().mixedAdd(e[b].neg())):0===e[a].y.cmp(e[b].y.redNeg())?(y[1]=e[a].toJ().mixedAdd(e[b]),y[2]=e[a].add(e[b].neg())):(y[1]=e[a].toJ().mixedAdd(e[b]),y[2]=e[a].toJ().mixedAdd(e[b].neg()));var _=[-3,-1,-5,-7,0,7,5,1,3],A=w(n[a],n[b]);for(d=Math.max(A[0].length,d),h[a]=new Array(d),h[b]=new Array(d),c=0;c<d;c++){var E=0|A[0][c],T=0|A[1][c];h[a][c]=_[3*(E+1)+(T+1)],h[b][c]=0,f[a]=y;}}else h[a]=v(n[a],l[a],this._bitLength),h[b]=v(n[b],l[b],this._bitLength),d=Math.max(h[a].length,d),d=Math.max(h[b].length,d);}var O=this.jpoint(null,null,null),M=this._wnafT4;for(i=d;i>=0;i--){for(var k=0;i>=0;){var x=!0;for(c=0;c<r;c++)M[c]=0|h[c][i],0!==M[c]&&(x=!1);if(!x)break;k++,i--;}if(i>=0&&k++,O=O.dblp(k),i<0)break;for(c=0;c<r;c++){var S=M[c];0!==S&&(S>0?p=f[c][S-1>>1]:S<0&&(p=f[c][-S-1>>1].neg()),O="affine"===p.type?O.mixedAdd(p):O.add(p));}}for(i=0;i<r;i++)f[i]=null;return o?O:O.toP();},A.BasePoint=E,E.prototype.eq=function(){throw new Error("Not implemented");},E.prototype.validate=function(){return this.curve.validate(this);},A.prototype.decodePoint=function(t,e){t=y.toArray(t,e);var n=this.p.byteLength();if((4===t[0]||6===t[0]||7===t[0])&&t.length-1==2*n)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+n),t.slice(1+n,1+2*n));if((2===t[0]||3===t[0])&&t.length-1===n)return this.pointFromX(t.slice(1,1+n),3===t[0]);throw new Error("Unknown point format");},E.prototype.encodeCompressed=function(t){return this.encode(t,!0);},E.prototype._encode=function(t){var e=this.curve.p.byteLength(),n=this.getX().toArray("be",e);return t?[this.getY().isEven()?2:3].concat(n):[4].concat(n,this.getY().toArray("be",e));},E.prototype.encode=function(t,e){return y.encode(this._encode(e),t);},E.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;},E.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);},E.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i<e;i+=t){for(var o=0;o<t;o++)r=r.dbl();n.push(r);}return{step:t,points:n};},E.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var e=[this],n=(1<<t)-1,r=1===n?null:this.dbl(),i=1;i<n;i++)e[i]=e[i-1].add(r);return{wnd:t,points:e};},E.prototype._getBeta=function(){return null;},E.prototype.dblp=function(t){for(var e=this,i=0;i<t;i++)e=e.dbl();return e;};var T=f(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 n=function(){};n.prototype=e.prototype,t.prototype=new n(),t.prototype.constructor=t;}};}),O=y.assert;function M(t){base.call(this,"short",t),this.a=new o.a(t.a,16).toRed(this.red),this.b=new o.a(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=new Array(4),this._endoWnafT2=new Array(4);}T(M,base);var k=M;function x(t,e,n,r){base.BasePoint.call(this,t,"affine"),null===e&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new o.a(e,16),this.y=new o.a(n,16),r&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1);}function S(t,e,n,r){base.BasePoint.call(this,t,"jacobian"),null===e&&null===n&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new o.a(0)):(this.x=new o.a(e,16),this.y=new o.a(n,16),this.z=new o.a(r,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one;}M.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var e,n;if(t.beta)e=new o.a(t.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);e=(e=r[0].cmp(r[1])<0?r[0]:r[1]).toRed(this.red);}if(t.lambda)n=new o.a(t.lambda,16);else{var c=this._getEndoRoots(this.n);0===this.g.mul(c[0]).x.cmp(this.g.x.redMul(e))?n=c[0]:(n=c[1],O(0===this.g.mul(n).x.cmp(this.g.x.redMul(e))));}return{beta:e,lambda:n,basis:t.basis?t.basis.map(function(t){return{a:new o.a(t.a,16),b:new o.a(t.b,16)};}):this._getEndoBasis(n)};}},M.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:o.a.mont(t),n=new o.a(2).toRed(e).redInvm(),r=n.redNeg(),s=new o.a(3).toRed(e).redNeg().redSqrt().redMul(n);return[r.redAdd(s).fromRed(),r.redSub(s).fromRed()];},M.prototype._getEndoBasis=function(t){for(var e,n,r,c,l,f,h,d,m,y=this.n.ushrn(Math.floor(this.n.bitLength()/2)),u=t,v=this.n.clone(),w=new o.a(1),_=new o.a(0),A=new o.a(0),E=new o.a(1),i=0;0!==u.cmpn(0);){var q=v.div(u);d=v.sub(q.mul(u)),m=A.sub(q.mul(w));var T=E.sub(q.mul(_));if(!r&&d.cmp(y)<0)e=h.neg(),n=w,r=d.neg(),c=m;else if(r&&2==++i)break;h=d,v=u,u=d,A=w,w=m,E=_,_=T;}l=d.neg(),f=m;var O=r.sqr().add(c.sqr());return l.sqr().add(f.sqr()).cmp(O)>=0&&(l=e,f=n),r.negative&&(r=r.neg(),c=c.neg()),l.negative&&(l=l.neg(),f=f.neg()),[{a:r,b:c},{a:l,b:f}];},M.prototype._endoSplit=function(t){var e=this.endo.basis,n=e[0],r=e[1],o=r.b.mul(t).divRound(this.n),c=n.b.neg().mul(t).divRound(this.n),l=o.mul(n.a),f=c.mul(r.a),h=o.mul(n.b),d=c.mul(r.b);return{k1:t.sub(l).sub(f),k2:h.add(d).neg()};},M.prototype.pointFromX=function(t,e){(t=new o.a(t,16)).red||(t=t.toRed(this.red));var n=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var c=r.fromRed().isOdd();return(e&&!c||!e&&c)&&(r=r.redNeg()),this.point(t,r);},M.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,n=t.y,r=this.a.redMul(e),o=e.redSqr().redMul(e).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(o).cmpn(0);},M.prototype._endoWnafMulAdd=function(t,e,n){for(var r=this._endoWnafT1,o=this._endoWnafT2,i=0;i<t.length;i++){var c=this._endoSplit(e[i]),p=t[i],l=p._getBeta();c.k1.negative&&(c.k1.ineg(),p=p.neg(!0)),c.k2.negative&&(c.k2.ineg(),l=l.neg(!0)),r[2*i]=p,r[2*i+1]=l,o[2*i]=c.k1,o[2*i+1]=c.k2;}for(var f=this._wnafMulAdd(1,r,o,2*i,n),h=0;h<2*i;h++)r[h]=null,o[h]=null;return f;},T(x,base.BasePoint),M.prototype.point=function(t,e,n){return new x(this,t,e,n);},M.prototype.pointFromJSON=function(t,e){return x.fromJSON(this,t,e);},x.prototype._getBeta=function(){if(this.curve.endo){var pre=this.precomputed;if(pre&&pre.beta)return pre.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(pre){var e=this.curve,n=function(p){return e.point(p.x.redMul(e.endo.beta),p.y);};pre.beta=t,t.precomputed={beta:null,naf:pre.naf&&{wnd:pre.naf.wnd,points:pre.naf.points.map(n)},doubles:pre.doubles&&{step:pre.doubles.step,points:pre.doubles.points.map(n)}};}return t;}},x.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];},x.fromJSON=function(t,e,n){"string"==typeof e&&(e=JSON.parse(e));var r=t.point(e[0],e[1],n);if(!e[2])return r;function o(e){return t.point(e[0],e[1],n);}var pre=e[2];return r.precomputed={beta:null,doubles:pre.doubles&&{step:pre.doubles.step,points:[r].concat(pre.doubles.points.map(o))},naf:pre.naf&&{wnd:pre.naf.wnd,points:[r].concat(pre.naf.points.map(o))}},r;},x.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)+">";},x.prototype.isInfinity=function(){return this.inf;},x.prototype.add=function(p){if(this.inf)return p;if(p.inf)return this;if(this.eq(p))return this.dbl();if(this.neg().eq(p))return this.curve.point(null,null);if(0===this.x.cmp(p.x))return this.curve.point(null,null);var t=this.y.redSub(p.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(p.x).redInvm()));var e=t.redSqr().redISub(this.x).redISub(p.x),n=t.redMul(this.x.redSub(e)).redISub(this.y);return this.curve.point(e,n);},x.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 a=this.curve.a,e=this.x.redSqr(),n=t.redInvm(),r=e.redAdd(e).redIAdd(e).redIAdd(a).redMul(n),o=r.redSqr().redISub(this.x.redAdd(this.x)),c=r.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,c);},x.prototype.getX=function(){return this.x.fromRed();},x.prototype.getY=function(){return this.y.fromRed();},x.prototype.mul=function(t){return t=new o.a(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);},x.prototype.mulAdd=function(t,e,n){var r=[this,e],o=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,o):this.curve._wnafMulAdd(1,r,o,2);},x.prototype.jmulAdd=function(t,e,n){var r=[this,e],o=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,o,!0):this.curve._wnafMulAdd(1,r,o,2,!0);},x.prototype.eq=function(p){return this===p||this.inf===p.inf&&(this.inf||0===this.x.cmp(p.x)&&0===this.y.cmp(p.y));},x.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var pre=this.precomputed,n=function(p){return p.neg();};e.precomputed={naf:pre.naf&&{wnd:pre.naf.wnd,points:pre.naf.points.map(n)},doubles:pre.doubles&&{step:pre.doubles.step,points:pre.doubles.points.map(n)}};}return e;},x.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one);},T(S,base.BasePoint),M.prototype.jpoint=function(t,e,n){return new S(this,t,e,n);},S.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),n=this.x.redMul(e),r=this.y.redMul(e).redMul(t);return this.curve.point(n,r);},S.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z);},S.prototype.add=function(p){if(this.isInfinity())return p;if(p.isInfinity())return this;var t=p.z.redSqr(),e=this.z.redSqr(),n=this.x.redMul(t),r=p.x.redMul(e),o=this.y.redMul(t.redMul(p.z)),c=p.y.redMul(e.redMul(this.z)),l=n.redSub(r),f=o.redSub(c);if(0===l.cmpn(0))return 0!==f.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var h2=l.redSqr(),h3=h2.redMul(l),h=n.redMul(h2),d=f.redSqr().redIAdd(h3).redISub(h).redISub(h),m=f.redMul(h.redISub(d)).redISub(o.redMul(h3)),y=this.z.redMul(p.z).redMul(l);return this.curve.jpoint(d,m,y);},S.prototype.mixedAdd=function(p){if(this.isInfinity())return p.toJ();if(p.isInfinity())return this;var t=this.z.redSqr(),e=this.x,n=p.x.redMul(t),r=this.y,o=p.y.redMul(t).redMul(this.z),c=e.redSub(n),l=r.redSub(o);if(0===c.cmpn(0))return 0!==l.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var h2=c.redSqr(),h3=h2.redMul(c),f=e.redMul(h2),h=l.redSqr().redIAdd(h3).redISub(f).redISub(f),d=l.redMul(f.redISub(h)).redISub(r.redMul(h3)),m=this.z.redMul(c);return this.curve.jpoint(h,d,m);},S.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var i;if(this.curve.zeroA||this.curve.threeA){var e=this;for(i=0;i<t;i++)e=e.dbl();return e;}var a=this.curve.a,n=this.curve.tinv,r=this.x,o=this.y,c=this.z,l=c.redSqr().redSqr(),f=o.redAdd(o);for(i=0;i<t;i++){var h=r.redSqr(),d=f.redSqr(),m=d.redSqr(),y=h.redAdd(h).redIAdd(h).redIAdd(a.redMul(l)),v=r.redMul(d),w=y.redSqr().redISub(v.redAdd(v)),_=v.redISub(w),A=y.redMul(_);A=A.redIAdd(A).redISub(m);var E=f.redMul(c);i+1<t&&(l=l.redMul(m)),r=w,c=E,f=A;}return this.curve.jpoint(r,f.redMul(n),c);},S.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl();},S.prototype._zeroDbl=function(){var t,e,n;if(this.zOne){var r=this.x.redSqr(),o=this.y.redSqr(),c=o.redSqr(),s=this.x.redAdd(o).redSqr().redISub(r).redISub(c);s=s.redIAdd(s);var l=r.redAdd(r).redIAdd(r),f=l.redSqr().redISub(s).redISub(s),h=c.redIAdd(c);h=(h=h.redIAdd(h)).redIAdd(h),t=f,e=l.redMul(s.redISub(f)).redISub(h),n=this.y.redAdd(this.y);}else{var a=this.x.redSqr(),b=this.y.redSqr(),d=b.redSqr(),m=this.x.redAdd(b).redSqr().redISub(a).redISub(d);m=m.redIAdd(m);var y=a.redAdd(a).redIAdd(a),v=y.redSqr(),w=d.redIAdd(d);w=(w=w.redIAdd(w)).redIAdd(w),t=v.redISub(m).redISub(m),e=y.redMul(m.redISub(t)).redISub(w),n=(n=this.y.redMul(this.z)).redIAdd(n);}return this.curve.jpoint(t,e,n);},S.prototype._threeDbl=function(){var t,e,n;if(this.zOne){var r=this.x.redSqr(),o=this.y.redSqr(),c=o.redSqr(),s=this.x.redAdd(o).redSqr().redISub(r).redISub(c);s=s.redIAdd(s);var l=r.redAdd(r).redIAdd(r).redIAdd(this.curve.a),f=l.redSqr().redISub(s).redISub(s);t=f;var h=c.redIAdd(c);h=(h=h.redIAdd(h)).redIAdd(h),e=l.redMul(s.redISub(f)).redISub(h),n=this.y.redAdd(this.y);}else{var d=this.z.redSqr(),m=this.y.redSqr(),y=this.x.redMul(m),v=this.x.redSub(d).redMul(this.x.redAdd(d));v=v.redAdd(v).redIAdd(v);var w=y.redIAdd(y),_=(w=w.redIAdd(w)).redAdd(w);t=v.redSqr().redISub(_),n=this.y.redAdd(this.z).redSqr().redISub(m).redISub(d);var A=m.redSqr();A=(A=(A=A.redIAdd(A)).redIAdd(A)).redIAdd(A),e=v.redMul(w.redISub(t)).redISub(A);}return this.curve.jpoint(t,e,n);},S.prototype._dbl=function(){var a=this.curve.a,t=this.x,e=this.y,n=this.z,r=n.redSqr().redSqr(),o=t.redSqr(),c=e.redSqr(),l=o.redAdd(o).redIAdd(o).redIAdd(a.redMul(r)),f=t.redAdd(t),h=(f=f.redIAdd(f)).redMul(c),d=l.redSqr().redISub(h.redAdd(h)),m=h.redISub(d),y=c.redSqr();y=(y=(y=y.redIAdd(y)).redIAdd(y)).redIAdd(y);var v=l.redMul(m).redISub(y),w=e.redAdd(e).redMul(n);return this.curve.jpoint(d,v,w);},S.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var t=this.x.redSqr(),e=this.y.redSqr(),n=this.z.redSqr(),r=e.redSqr(),o=t.redAdd(t).redIAdd(t),c=o.redSqr(),l=this.x.redAdd(e).redSqr().redISub(t).redISub(r),f=(l=(l=(l=l.redIAdd(l)).redAdd(l).redIAdd(l)).redISub(c)).redSqr(),h=r.redIAdd(r);h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var u=o.redIAdd(l).redSqr().redISub(c).redISub(f).redISub(h),d=e.redMul(u);d=(d=d.redIAdd(d)).redIAdd(d);var m=this.x.redMul(f).redISub(d);m=(m=m.redIAdd(m)).redIAdd(m);var y=this.y.redMul(u.redMul(h.redISub(u)).redISub(l.redMul(f)));y=(y=(y=y.redIAdd(y)).redIAdd(y)).redIAdd(y);var v=this.z.redAdd(l).redSqr().redISub(n).redISub(f);return this.curve.jpoint(m,y,v);},S.prototype.mul=function(t,e){return t=new o.a(t,e),this.curve._wnafMul(this,t);},S.prototype.eq=function(p){if("affine"===p.type)return this.eq(p.toJ());if(this===p)return!0;var t=this.z.redSqr(),e=p.z.redSqr();if(0!==this.x.redMul(e).redISub(p.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),r=e.redMul(p.z);return 0===this.y.redMul(r).redISub(p.y.redMul(n)).cmpn(0);},S.prototype.eqXToP=function(t){var e=this.z.redSqr(),n=t.toRed(this.curve.red).redMul(e);if(0===this.x.cmp(n))return!0;for(var r=t.clone(),o=this.curve.redN.redMul(e);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(o),0===this.x.cmp(n))return!0;}},S.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)+">";},S.prototype.isInfinity=function(){return 0===this.z.cmpn(0);};var j=f(function(t,e){var n=e;n.base=base,n.short=k,n.mont=null,n.edwards=null;}),N=f(function(t,e){var pre,n=e,r=y.assert;function o(t){"short"===t.type?this.curve=new j.short(t):"edwards"===t.type?this.curve=new j.edwards(t):this.curve=new j.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,r(this.g.validate(),"Invalid curve"),r(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O");}function c(t,e){Object.defineProperty(n,t,{configurable:!0,enumerable:!0,get:function(){var r=new o(e);return Object.defineProperty(n,t,{configurable:!0,enumerable:!0,value:r}),r;}});}n.PresetCurve=o,c("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.a.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("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.a.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("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.a.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("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.a.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"]}),c("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.a.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"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:l.a.sha256,gRed:!1,g:["9"]}),c("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.a.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{pre=null.crash();}catch(t){pre=void 0;}c("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.a.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",pre]});});function I(t){if(!(this instanceof I))return new I(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=m.toArray(t.entropy,t.entropyEnc||"hex"),n=m.toArray(t.nonce,t.nonceEnc||"hex"),r=m.toArray(t.pers,t.persEnc||"hex");h(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,n,r);}var P=I;I.prototype._init=function(t,e,n){var r=t.concat(e).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(r),this._reseed=1,this.reseedInterval=281474976710656;},I.prototype._hmac=function(){return new l.a.hmac(this.hash,this.K);},I.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());},I.prototype.reseed=function(t,e,n,r){"string"!=typeof e&&(r=n,n=e,e=null),t=m.toArray(t,e),n=m.toArray(n,r),h(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(n||[])),this._reseed=1;},I.prototype.generate=function(t,e,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(r=n,n=e,e=null),n&&(n=m.toArray(n,r||"hex"),this._update(n));for(var o=[];o.length<t;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var c=o.slice(0,t);return this._update(n),this._reseed++,m.encode(c,e);};var R=y.assert;function C(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc);}var B=C;C.fromPublic=function(t,e,n){return e instanceof C?e:new C(t,{pub:e,pubEnc:n});},C.fromPrivate=function(t,e,n){return e instanceof C?e:new C(t,{priv:e,privEnc:n});},C.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"};},C.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;},C.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv;},C.prototype._importPrivate=function(t,e){this.priv=new o.a(t,e||16),this.priv=this.priv.umod(this.ec.curve.n);},C.prototype._importPublic=function(t,e){if(t.x||t.y)return"mont"===this.ec.curve.type?R(t.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||R(t.x&&t.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(t.x,t.y));this.pub=this.ec.curve.decodePoint(t,e);},C.prototype.derive=function(t){return t.validate()||R(t.validate(),"public point not validated"),t.mul(this.priv).getX();},C.prototype.sign=function(t,e,n){return this.ec.sign(t,this,e,n);},C.prototype.verify=function(t,e){return this.ec.verify(t,e,this);},C.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >";};var L=y.assert;function F(t,e){if(t instanceof F)return t;this._importDER(t,e)||(L(t.r&&t.s,"Signature without r or s"),this.r=new o.a(t.r,16),this.s=new o.a(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam);}var D=F;function U(){this.place=0;}function G(t,p){var e=t[p.place++];if(!(128&e))return e;var n=15&e;if(0===n||n>4)return!1;for(var r=0,i=0,o=p.place;i<n;i++,o++)r<<=8,r|=t[o],r>>>=0;return!(r<=127)&&(p.place=o,r);}function z(t){for(var i=0,e=t.length-1;!t[i]&&!(128&t[i+1])&&i<e;)i++;return 0===i?t:t.slice(i);}function H(t,e){if(e<128)t.push(e);else{var n=1+(Math.log(e)/Math.LN2>>>3);for(t.push(128|n);--n;)t.push(e>>>(n<<3)&255);t.push(e);}}F.prototype._importDER=function(data,t){data=y.toArray(data,t);var p=new U();if(48!==data[p.place++])return!1;var e=G(data,p);if(!1===e)return!1;if(e+p.place!==data.length)return!1;if(2!==data[p.place++])return!1;var n=G(data,p);if(!1===n)return!1;var r=data.slice(p.place,n+p.place);if(p.place+=n,2!==data[p.place++])return!1;var c=G(data,p);if(!1===c)return!1;if(data.length!==c+p.place)return!1;var s=data.slice(p.place,c+p.place);if(0===r[0]){if(!(128&r[1]))return!1;r=r.slice(1);}if(0===s[0]){if(!(128&s[1]))return!1;s=s.slice(1);}return this.r=new o.a(r),this.s=new o.a(s),this.recoveryParam=null,!0;},F.prototype.toDER=function(t){var e=this.r.toArray(),s=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&s[0]&&(s=[0].concat(s)),e=z(e),s=z(s);!(s[0]||128&s[1]);)s=s.slice(1);var n=[2];H(n,e.length),(n=n.concat(e)).push(2),H(n,s.length);var r=n.concat(s),o=[48];return H(o,r.length),o=o.concat(r),y.encode(o,t);};var K=function(){throw new Error("unsupported");},W=y.assert;function V(t){if(!(this instanceof V))return new V(t);"string"==typeof t&&(W(Object.prototype.hasOwnProperty.call(N,t),"Unknown curve "+t),t=N[t]),t instanceof N.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash;}var J=V;V.prototype.keyPair=function(t){return new B(this,t);},V.prototype.keyFromPrivate=function(t,e){return B.fromPrivate(this,t,e);},V.prototype.keyFromPublic=function(t,e){return B.fromPublic(this,t,e);},V.prototype.genKeyPair=function(t){t||(t={});for(var e=new P({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||K(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),r=this.n.sub(new o.a(2));;){var c=new o.a(e.generate(n));if(!(c.cmp(r)>0))return c.iaddn(1),this.keyFromPrivate(c);}},V.prototype._truncateToN=function(t,e){var n=8*t.byteLength()-this.n.bitLength();return n>0&&(t=t.ushrn(n)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t;},V.prototype.sign=function(t,e,n,r){"object"==typeof n&&(r=n,n=null),r||(r={}),e=this.keyFromPrivate(e,n),t=this._truncateToN(new o.a(t,16));for(var c=this.n.byteLength(),l=e.getPrivate().toArray("be",c),f=t.toArray("be",c),h=new P({hash:this.hash,entropy:l,nonce:f,pers:r.pers,persEnc:r.persEnc||"utf8"}),d=this.n.sub(new o.a(1)),m=0;;m++){var y=r.k?r.k(m):new o.a(h.generate(this.n.byteLength()));if(!((y=this._truncateToN(y,!0)).cmpn(1)<=0||y.cmp(d)>=0)){var v=this.g.mul(y);if(!v.isInfinity()){var w=v.getX(),_=w.umod(this.n);if(0!==_.cmpn(0)){var s=y.invm(this.n).mul(_.mul(e.getPrivate()).iadd(t));if(0!==(s=s.umod(this.n)).cmpn(0)){var A=(v.getY().isOdd()?1:0)|(0!==w.cmp(_)?2:0);return r.canonical&&s.cmp(this.nh)>0&&(s=this.n.sub(s),A^=1),new D({r:_,s:s,recoveryParam:A});}}}}}},V.prototype.verify=function(t,e,n,r){t=this._truncateToN(new o.a(t,16)),n=this.keyFromPublic(n,r);var c=(e=new D(e,"hex")).r,s=e.s;if(c.cmpn(1)<0||c.cmp(this.n)>=0)return!1;if(s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;var p,l=s.invm(this.n),f=l.mul(t).umod(this.n),h=l.mul(c).umod(this.n);return this.curve._maxwellTrick?!(p=this.g.jmulAdd(f,n.getPublic(),h)).isInfinity()&&p.eqXToP(c):!(p=this.g.mulAdd(f,n.getPublic(),h)).isInfinity()&&0===p.getX().umod(this.n).cmp(c);},V.prototype.recoverPubKey=function(t,e,n,r){W((3&n)===n,"The recovery param is more than two bits"),e=new D(e,r);var c=this.n,l=new o.a(t),f=e.r,s=e.s,h=1&n,d=n>>1;if(f.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");f=d?this.curve.pointFromX(f.add(this.curve.n),h):this.curve.pointFromX(f,h);var m=e.r.invm(c),y=c.sub(l).mul(m).umod(c),v=s.mul(m).umod(c);return this.g.mulAdd(y,f,v);},V.prototype.getKeyRecoveryParam=function(t,e,n,r){if(null!==(e=new D(e,r)).recoveryParam)return e.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(t,e,i);}catch(t){continue;}if(o.eq(n))return i;}throw new Error("Unable to find valid recovery factor");};var Y=f(function(t,e){var n=e;n.version="6.5.4",n.utils=y,n.rand=function(){throw new Error("unsupported");},n.curve=j,n.curves=N,n.ec=J,n.eddsa=null;}).ec;}).call(this,n(47));},function(t,e,n){(function(r,o){var c;!function(){"use strict";var l="input is invalid type",f="object"==typeof window,h=f?window:{};h.JS_SHA3_NO_WINDOW&&(f=!1);var d=!f&&"object"==typeof self;!h.JS_SHA3_NO_NODE_JS&&"object"==typeof r&&r.versions&&r.versions.node?h=o:d&&(h=self);var m=!h.JS_SHA3_NO_COMMON_JS&&"object"==typeof t&&t.exports,y=n(178),v=!h.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,w="0123456789abcdef".split(""),_=[4,1024,262144,67108864],A=[0,8,16,24],E=[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],T=[224,256,384,512],O=[128,256],M=["hex","buffer","arrayBuffer","array","digest"],k={128:168,256:136};!h.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t);}),!v||!h.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 x=function(t,e,n){return function(r){return new z(t,e,t).update(r)[n]();};},S=function(t,e,n){return function(r,o){return new z(t,e,o).update(r)[n]();};},j=function(t,e,n){return function(e,r,o,s){return C["cshake"+t].update(e,r,o,s)[n]();};},N=function(t,e,n){return function(e,r,o,s){return C["kmac"+t].update(e,r,o,s)[n]();};},I=function(t,e,n,r){for(var i=0;i<M.length;++i){var o=M[i];t[o]=e(n,r,o);}return t;},P=function(t,e){var n=x(t,e,"hex");return n.create=function(){return new z(t,e,t);},n.update=function(t){return n.create().update(t);},I(n,x,t,e);},R=[{name:"keccak",padding:[1,256,65536,16777216],bits:T,createMethod:P},{name:"sha3",padding:[6,1536,393216,100663296],bits:T,createMethod:P},{name:"shake",padding:[31,7936,2031616,520093696],bits:O,createMethod:function(t,e){var n=S(t,e,"hex");return n.create=function(n){return new z(t,e,n);},n.update=function(t,e){return n.create(e).update(t);},I(n,S,t,e);}},{name:"cshake",padding:_,bits:O,createMethod:function(t,e){var n=k[t],r=j(t,0,"hex");return r.create=function(r,o,s){return o||s?new z(t,e,r).bytepad([o,s],n):C["shake"+t].create(r);},r.update=function(t,e,n,s){return r.create(e,n,s).update(t);},I(r,j,t,e);}},{name:"kmac",padding:_,bits:O,createMethod:function(t,e){var n=k[t],r=N(t,0,"hex");return r.create=function(r,o,s){return new H(t,e,o).bytepad(["KMAC",s],n).bytepad([r],n);},r.update=function(t,e,n,s){return r.create(t,n,s).update(e);},I(r,N,t,e);}}],C={},B=[],i=0;i<R.length;++i)for(var L=R[i],F=L.bits,D=0;D<F.length;++D){var U=L.name+"_"+F[D];if(B.push(U),C[U]=L.createMethod(F[D],L.padding),"sha3"!==L.name){var G=L.name+F[D];B.push(G),C[G]=C[U];}}function z(t,e,n){this.blocks=[],this.s=[],this.padding=e,this.outputBits=n,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=n>>5,this.extraBytes=(31&n)>>3;for(var i=0;i<50;++i)this.s[i]=0;}function H(t,e,n){z.call(this,t,e,n);}z.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var e,n=typeof t;if("string"!==n){if("object"!==n)throw new Error(l);if(null===t)throw new Error(l);if(v&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||v&&ArrayBuffer.isView(t)))throw new Error(l);e=!0;}for(var i,code,r=this.blocks,o=this.byteCount,c=t.length,f=this.blockCount,h=0,s=this.s;h<c;){if(this.reset)for(this.reset=!1,r[0]=this.block,i=1;i<f+1;++i)r[i]=0;if(e)for(i=this.start;h<c&&i<o;++h)r[i>>2]|=t[h]<<A[3&i++];else for(i=this.start;h<c&&i<o;++h)(code=t.charCodeAt(h))<128?r[i>>2]|=code<<A[3&i++]:code<2048?(r[i>>2]|=(192|code>>6)<<A[3&i++],r[i>>2]|=(128|63&code)<<A[3&i++]):code<55296||code>=57344?(r[i>>2]|=(224|code>>12)<<A[3&i++],r[i>>2]|=(128|code>>6&63)<<A[3&i++],r[i>>2]|=(128|63&code)<<A[3&i++]):(code=65536+((1023&code)<<10|1023&t.charCodeAt(++h)),r[i>>2]|=(240|code>>18)<<A[3&i++],r[i>>2]|=(128|code>>12&63)<<A[3&i++],r[i>>2]|=(128|code>>6&63)<<A[3&i++],r[i>>2]|=(128|63&code)<<A[3&i++]);if(this.lastByteIndex=i,i>=o){for(this.start=i-o,this.block=r[f],i=0;i<f;++i)s[i]^=r[i];K(s),this.reset=!0;}else this.start=i;}return this;},z.prototype.encode=function(t,e){var n=255&t,r=1,o=[n];for(n=255&(t>>=8);n>0;)o.unshift(n),n=255&(t>>=8),++r;return e?o.push(r):o.unshift(r),this.update(o),o.length;},z.prototype.encodeString=function(t){var e,n=typeof t;if("string"!==n){if("object"!==n)throw new Error(l);if(null===t)throw new Error(l);if(v&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||v&&ArrayBuffer.isView(t)))throw new Error(l);e=!0;}var r=0,o=t.length;if(e)r=o;else for(var i=0;i<t.length;++i){var code=t.charCodeAt(i);code<128?r+=1:code<2048?r+=2:code<55296||code>=57344?r+=3:(code=65536+((1023&code)<<10|1023&t.charCodeAt(++i)),r+=4);}return r+=this.encode(8*r),this.update(t),r;},z.prototype.bytepad=function(t,e){for(var n=this.encode(e),i=0;i<t.length;++i)n+=this.encodeString(t[i]);var r=e-n%e,o=[];return o.length=r,this.update(o),this;},z.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,i=this.lastByteIndex,e=this.blockCount,s=this.s;if(t[i>>2]|=this.padding[3&i],this.lastByteIndex===this.byteCount)for(t[0]=t[e],i=1;i<e+1;++i)t[i]=0;for(t[e-1]|=2147483648,i=0;i<e;++i)s[i]^=t[i];K(s);}},z.prototype.toString=z.prototype.hex=function(){this.finalize();for(var t,e=this.blockCount,s=this.s,n=this.outputBlocks,r=this.extraBytes,i=0,o=0,c="";o<n;){for(i=0;i<e&&o<n;++i,++o)t=s[i],c+=w[t>>4&15]+w[15&t]+w[t>>12&15]+w[t>>8&15]+w[t>>20&15]+w[t>>16&15]+w[t>>28&15]+w[t>>24&15];o%e==0&&(K(s),i=0);}return r&&(t=s[i],c+=w[t>>4&15]+w[15&t],r>1&&(c+=w[t>>12&15]+w[t>>8&15]),r>2&&(c+=w[t>>20&15]+w[t>>16&15])),c;},z.prototype.arrayBuffer=function(){this.finalize();var t,e=this.blockCount,s=this.s,n=this.outputBlocks,r=this.extraBytes,i=0,o=0,c=this.outputBits>>3;t=r?new ArrayBuffer(n+1<<2):new ArrayBuffer(c);for(var l=new Uint32Array(t);o<n;){for(i=0;i<e&&o<n;++i,++o)l[o]=s[i];o%e==0&&K(s);}return r&&(l[i]=s[i],t=t.slice(0,c)),t;},z.prototype.buffer=z.prototype.arrayBuffer,z.prototype.digest=z.prototype.array=function(){this.finalize();for(var t,e,n=this.blockCount,s=this.s,r=this.outputBlocks,o=this.extraBytes,i=0,c=0,l=[];c<r;){for(i=0;i<n&&c<r;++i,++c)t=c<<2,e=s[i],l[t]=255&e,l[t+1]=e>>8&255,l[t+2]=e>>16&255,l[t+3]=e>>24&255;c%n==0&&K(s);}return o&&(t=c<<2,e=s[i],l[t]=255&e,o>1&&(l[t+1]=e>>8&255),o>2&&(l[t+2]=e>>16&255)),l;},H.prototype=new z(),H.prototype.finalize=function(){return this.encode(this.outputBits,!0),z.prototype.finalize.call(this);};var K=function(s){var t,e,n,r,o,c,l,f,h,d,m,y,v,w,_,A,T,O,M,k,x,S,j,N,I,P,R,C,B,L,F,D,U,G,z,H,K,W,V,J,Y,Q,X,Z,$,tt,et,nt,it,ot,at,st,ut,ct,lt,ft,ht,pt,mt,yt,gt,bt,vt;for(n=0;n<48;n+=2)r=s[0]^s[10]^s[20]^s[30]^s[40],o=s[1]^s[11]^s[21]^s[31]^s[41],c=s[2]^s[12]^s[22]^s[32]^s[42],l=s[3]^s[13]^s[23]^s[33]^s[43],f=s[4]^s[14]^s[24]^s[34]^s[44],h=s[5]^s[15]^s[25]^s[35]^s[45],d=s[6]^s[16]^s[26]^s[36]^s[46],m=s[7]^s[17]^s[27]^s[37]^s[47],t=(y=s[8]^s[18]^s[28]^s[38]^s[48])^(c<<1|l>>>31),e=(v=s[9]^s[19]^s[29]^s[39]^s[49])^(l<<1|c>>>31),s[0]^=t,s[1]^=e,s[10]^=t,s[11]^=e,s[20]^=t,s[21]^=e,s[30]^=t,s[31]^=e,s[40]^=t,s[41]^=e,t=r^(f<<1|h>>>31),e=o^(h<<1|f>>>31),s[2]^=t,s[3]^=e,s[12]^=t,s[13]^=e,s[22]^=t,s[23]^=e,s[32]^=t,s[33]^=e,s[42]^=t,s[43]^=e,t=c^(d<<1|m>>>31),e=l^(m<<1|d>>>31),s[4]^=t,s[5]^=e,s[14]^=t,s[15]^=e,s[24]^=t,s[25]^=e,s[34]^=t,s[35]^=e,s[44]^=t,s[45]^=e,t=f^(y<<1|v>>>31),e=h^(v<<1|y>>>31),s[6]^=t,s[7]^=e,s[16]^=t,s[17]^=e,s[26]^=t,s[27]^=e,s[36]^=t,s[37]^=e,s[46]^=t,s[47]^=e,t=d^(r<<1|o>>>31),e=m^(o<<1|r>>>31),s[8]^=t,s[9]^=e,s[18]^=t,s[19]^=e,s[28]^=t,s[29]^=e,s[38]^=t,s[39]^=e,s[48]^=t,s[49]^=e,w=s[0],_=s[1],tt=s[11]<<4|s[10]>>>28,et=s[10]<<4|s[11]>>>28,C=s[20]<<3|s[21]>>>29,B=s[21]<<3|s[20]>>>29,yt=s[31]<<9|s[30]>>>23,gt=s[30]<<9|s[31]>>>23,Q=s[40]<<18|s[41]>>>14,X=s[41]<<18|s[40]>>>14,G=s[2]<<1|s[3]>>>31,z=s[3]<<1|s[2]>>>31,A=s[13]<<12|s[12]>>>20,T=s[12]<<12|s[13]>>>20,nt=s[22]<<10|s[23]>>>22,it=s[23]<<10|s[22]>>>22,L=s[33]<<13|s[32]>>>19,F=s[32]<<13|s[33]>>>19,bt=s[42]<<2|s[43]>>>30,vt=s[43]<<2|s[42]>>>30,ct=s[5]<<30|s[4]>>>2,lt=s[4]<<30|s[5]>>>2,H=s[14]<<6|s[15]>>>26,K=s[15]<<6|s[14]>>>26,O=s[25]<<11|s[24]>>>21,M=s[24]<<11|s[25]>>>21,ot=s[34]<<15|s[35]>>>17,at=s[35]<<15|s[34]>>>17,D=s[45]<<29|s[44]>>>3,U=s[44]<<29|s[45]>>>3,N=s[6]<<28|s[7]>>>4,I=s[7]<<28|s[6]>>>4,ft=s[17]<<23|s[16]>>>9,ht=s[16]<<23|s[17]>>>9,W=s[26]<<25|s[27]>>>7,V=s[27]<<25|s[26]>>>7,k=s[36]<<21|s[37]>>>11,x=s[37]<<21|s[36]>>>11,st=s[47]<<24|s[46]>>>8,ut=s[46]<<24|s[47]>>>8,Z=s[8]<<27|s[9]>>>5,$=s[9]<<27|s[8]>>>5,P=s[18]<<20|s[19]>>>12,R=s[19]<<20|s[18]>>>12,pt=s[29]<<7|s[28]>>>25,mt=s[28]<<7|s[29]>>>25,J=s[38]<<8|s[39]>>>24,Y=s[39]<<8|s[38]>>>24,S=s[48]<<14|s[49]>>>18,j=s[49]<<14|s[48]>>>18,s[0]=w^~A&O,s[1]=_^~T&M,s[10]=N^~P&C,s[11]=I^~R&B,s[20]=G^~H&W,s[21]=z^~K&V,s[30]=Z^~tt&nt,s[31]=$^~et&it,s[40]=ct^~ft&pt,s[41]=lt^~ht&mt,s[2]=A^~O&k,s[3]=T^~M&x,s[12]=P^~C&L,s[13]=R^~B&F,s[22]=H^~W&J,s[23]=K^~V&Y,s[32]=tt^~nt&ot,s[33]=et^~it&at,s[42]=ft^~pt&yt,s[43]=ht^~mt&gt,s[4]=O^~k&S,s[5]=M^~x&j,s[14]=C^~L&D,s[15]=B^~F&U,s[24]=W^~J&Q,s[25]=V^~Y&X,s[34]=nt^~ot&st,s[35]=it^~at&ut,s[44]=pt^~yt&bt,s[45]=mt^~gt&vt,s[6]=k^~S&w,s[7]=x^~j&_,s[16]=L^~D&N,s[17]=F^~U&I,s[26]=J^~Q&G,s[27]=Y^~X&z,s[36]=ot^~st&Z,s[37]=at^~ut&$,s[46]=yt^~bt&ct,s[47]=gt^~vt&lt,s[8]=S^~w&A,s[9]=j^~_&T,s[18]=D^~N&P,s[19]=U^~I&R,s[28]=Q^~G&H,s[29]=X^~z&K,s[38]=st^~Z&tt,s[39]=ut^~$&et,s[48]=bt^~ct&ft,s[49]=vt^~lt&ht,s[0]^=E[n],s[1]^=E[n+1];};if(m)t.exports=C;else{for(i=0;i<B.length;++i)h[B[i]]=C[B[i]];y&&(void 0===(c=function(){return C;}.call(e,n,e,t))||(t.exports=c));}}();}).call(this,n(127),n(47));},function(t,e,n){(function(t){!function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed");}function o(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n(),t.prototype.constructor=t;}function c(t,base,e){if(c.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==base&&"be"!==base||(e=base,base=10),this._init(t||0,base||10,e||"be"));}var l;"object"==typeof t?t.exports=c:e.BN=c,c.BN=c,c.wordSize=26;try{l="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:n(179).Buffer;}catch(t){}function f(t,e){var n=t.charCodeAt(e);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,"Invalid character in "+t);}function h(t,e,n){var r=f(t,n);return n-1>=e&&(r|=f(t,n-1)<<4),r;}function d(t,e,n,o){for(var c=0,b=0,l=Math.min(t.length,n),i=e;i<l;i++){var f=t.charCodeAt(i)-48;c*=o,b=f>=49?f-49+10:f>=17?f-17+10:f,r(f>=0&&b<o,"Invalid character"),c+=b;}return c;}function m(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red;}if(c.isBN=function(t){return t instanceof c||null!==t&&"object"==typeof t&&t.constructor.wordSize===c.wordSize&&Array.isArray(t.words);},c.max=function(t,e){return t.cmp(e)>0?t:e;},c.min=function(t,e){return t.cmp(e)<0?t:e;},c.prototype._init=function(t,base,e){if("number"==typeof t)return this._initNumber(t,base,e);if("object"==typeof t)return this._initArray(t,base,e);"hex"===base&&(base=16),r(base===(0|base)&&base>=2&&base<=36);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n<t.length&&(16===base?this._parseHex(t,n,e):(this._parseBase(t,base,n),"le"===e&&this._initArray(this.toArray(),base,e)));},c.prototype._initNumber=function(t,base,e){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):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===e&&this._initArray(this.toArray(),base,e);},c.prototype._initArray=function(t,base,e){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var n,o,c=0;if("be"===e)for(i=t.length-1,n=0;i>=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[n]|=o<<c&67108863,this.words[n+1]=o>>>26-c&67108863,(c+=24)>=26&&(c-=26,n++);else if("le"===e)for(i=0,n=0;i<t.length;i+=3)o=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[n]|=o<<c&67108863,this.words[n+1]=o>>>26-c&67108863,(c+=24)>=26&&(c-=26,n++);return this._strip();},c.prototype._parseHex=function(t,e,n){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var r,o=0,c=0;if("be"===n)for(i=t.length-1;i>=e;i-=2)r=h(t,e,i)<<o,this.words[c]|=67108863&r,o>=18?(o-=18,c+=1,this.words[c]|=r>>>26):o+=8;else for(i=(t.length-e)%2==0?e+1:e;i<t.length;i+=2)r=h(t,e,i)<<o,this.words[c]|=67108863&r,o>=18?(o-=18,c+=1,this.words[c]|=r>>>26):o+=8;this._strip();},c.prototype._parseBase=function(t,base,e){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=base)n++;n--,r=r/base|0;for(var o=t.length-e,c=o%n,l=Math.min(o,o-c)+e,f=0,i=e;i<l;i+=n)f=d(t,i,i+n,base),this.imuln(r),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f);if(0!==c){var h=1;for(f=d(t,i,t.length,base),i=0;i<c;i++)h*=base;this.imuln(h),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f);}this._strip();},c.prototype.copy=function(t){t.words=new Array(this.length);for(var i=0;i<this.length;i++)t.words[i]=this.words[i];t.length=this.length,t.negative=this.negative,t.red=this.red;},c.prototype._move=function(t){m(t,this);},c.prototype.clone=function(){var t=new c(null);return this.copy(t),t;},c.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this;},c.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign();},c.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this;},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{c.prototype[Symbol.for("nodejs.util.inspect.custom")]=y;}catch(t){c.prototype.inspect=y;}else c.prototype.inspect=y;function y(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">";}var v=["","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"],w=[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],_=[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];c.prototype.toString=function(base,t){var e;if(t=0|t||1,16===(base=base||10)||"hex"===base){e="";for(var n=0,o=0,i=0;i<this.length;i++){var c=this.words[i],l=(16777215&(c<<n|o)).toString(16);o=c>>>24-n&16777215,(n+=2)>=26&&(n-=26,i--),e=0!==o||i!==this.length-1?v[6-l.length]+l+e:l+e;}for(0!==o&&(e=o.toString(16)+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e;}if(base===(0|base)&&base>=2&&base<=36){var f=w[base],h=_[base];e="";var d=this.clone();for(d.negative=0;!d.isZero();){var m=d.modrn(h).toString(base);e=(d=d.idivn(h)).isZero()?m+e:v[f-m.length]+m+e;}for(this.isZero()&&(e="0"+e);e.length%t!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e;}r(!1,"Base should be between 2 and 36");},c.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&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t;},c.prototype.toJSON=function(){return this.toString(16,2);},l&&(c.prototype.toBuffer=function(t,e){return this.toArrayLike(l,t,e);}),c.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e);};function A(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var a=0|t.words[0],b=0|e.words[0],o=a*b,c=67108863&o,l=o/67108864|0;n.words[0]=c;for(var f=1;f<r;f++){for(var h=l>>>26,d=67108863&l,m=Math.min(f,e.length-1),y=Math.max(0,f-t.length+1);y<=m;y++){var i=f-y|0;h+=(o=(a=0|t.words[i])*(b=0|e.words[y])+d)/67108864|0,d=67108863&o;}n.words[f]=0|d,l=0|h;}return 0!==l?n.words[f]=0|l:n.length--,n._strip();}c.prototype.toArrayLike=function(t,e,n){this._strip();var o=this.byteLength(),c=n||Math.max(1,o);r(o<=c,"byte array longer than desired length"),r(c>0,"Requested array length <= 0");var l=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e);}(t,c);return this["_toArrayLike"+("le"===e?"LE":"BE")](l,o),l;},c.prototype._toArrayLikeLE=function(t,e){for(var n=0,r=0,i=0,o=0;i<this.length;i++){var c=this.words[i]<<o|r;t[n++]=255&c,n<t.length&&(t[n++]=c>>8&255),n<t.length&&(t[n++]=c>>16&255),6===o?(n<t.length&&(t[n++]=c>>24&255),r=0,o=0):(r=c>>>24,o+=2);}if(n<t.length)for(t[n++]=r;n<t.length;)t[n++]=0;},c.prototype._toArrayLikeBE=function(t,e){for(var n=t.length-1,r=0,i=0,o=0;i<this.length;i++){var c=this.words[i]<<o|r;t[n--]=255&c,n>=0&&(t[n--]=c>>8&255),n>=0&&(t[n--]=c>>16&255),6===o?(n>=0&&(t[n--]=c>>24&255),r=0,o=0):(r=c>>>24,o+=2);}if(n>=0)for(t[n--]=r;n>=0;)t[n--]=0;},Math.clz32?c.prototype._countBits=function(t){return 32-Math.clz32(t);}:c.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e;},c.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0==(8191&e)&&(n+=13,e>>>=13),0==(127&e)&&(n+=7,e>>>=7),0==(15&e)&&(n+=4,e>>>=4),0==(3&e)&&(n+=2,e>>>=2),0==(1&e)&&n++,n;},c.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e;},c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,i=0;i<this.length;i++){var b=this._zeroBits(this.words[i]);if(t+=b,26!==b)break;}return t;},c.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8);},c.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone();},c.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone();},c.prototype.isNeg=function(){return 0!==this.negative;},c.prototype.neg=function(){return this.clone().ineg();},c.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this;},c.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]|t.words[i];return this._strip();},c.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t);},c.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this);},c.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this);},c.prototype.iuand=function(t){var b;b=this.length>t.length?t:this;for(var i=0;i<b.length;i++)this.words[i]=this.words[i]&t.words[i];return this.length=b.length,this._strip();},c.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t);},c.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this);},c.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this);},c.prototype.iuxor=function(t){var a,b;this.length>t.length?(a=this,b=t):(a=t,b=this);for(var i=0;i<b.length;i++)this.words[i]=a.words[i]^b.words[i];if(this!==a)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=a.length,this._strip();},c.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t);},c.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this);},c.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this);},c.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this._strip();},c.prototype.notn=function(t){return this.clone().inotn(t);},c.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var n=t/26|0,o=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<o:this.words[n]&~(1<<o),this._strip();},c.prototype.iadd=function(t){var e,a,b;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?(a=this,b=t):(a=t,b=this);for(var n=0,i=0;i<b.length;i++)e=(0|a.words[i])+(0|b.words[i])+n,this.words[i]=67108863&e,n=e>>>26;for(;0!==n&&i<a.length;i++)e=(0|a.words[i])+n,this.words[i]=67108863&e,n=e>>>26;if(this.length=a.length,0!==n)this.words[this.length]=n,this.length++;else if(a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this;},c.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);},c.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign();}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var a,b,n=this.cmp(t);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(a=this,b=t):(a=t,b=this);for(var r=0,i=0;i<b.length;i++)r=(e=(0|a.words[i])-(0|b.words[i])+r)>>26,this.words[i]=67108863&e;for(;0!==r&&i<a.length;i++)r=(e=(0|a.words[i])+r)>>26,this.words[i]=67108863&e;if(0===r&&i<a.length&&a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=Math.max(this.length,i),a!==this&&(this.negative=1),this._strip();},c.prototype.sub=function(t){return this.clone().isub(t);};var E=function(t,e,n){var r,o,c,a=t.words,b=e.words,l=n.words,f=0,h=0|a[0],d=8191&h,m=h>>>13,y=0|a[1],v=8191&y,w=y>>>13,_=0|a[2],A=8191&_,E=_>>>13,T=0|a[3],O=8191&T,M=T>>>13,k=0|a[4],x=8191&k,S=k>>>13,j=0|a[5],N=8191&j,I=j>>>13,P=0|a[6],R=8191&P,C=P>>>13,B=0|a[7],L=8191&B,F=B>>>13,D=0|a[8],U=8191&D,G=D>>>13,z=0|a[9],H=8191&z,K=z>>>13,W=0|b[0],V=8191&W,J=W>>>13,Y=0|b[1],Q=8191&Y,X=Y>>>13,Z=0|b[2],$=8191&Z,tt=Z>>>13,et=0|b[3],nt=8191&et,it=et>>>13,ot=0|b[4],at=8191&ot,st=ot>>>13,ut=0|b[5],ct=8191&ut,lt=ut>>>13,ft=0|b[6],ht=8191&ft,pt=ft>>>13,mt=0|b[7],yt=8191&mt,gt=mt>>>13,bt=0|b[8],vt=8191&bt,wt=bt>>>13,_t=0|b[9],At=8191&_t,Et=_t>>>13;n.negative=t.negative^e.negative,n.length=19;var Tt=(f+(r=Math.imul(d,V))|0)+((8191&(o=(o=Math.imul(d,J))+Math.imul(m,V)|0))<<13)|0;f=((c=Math.imul(m,J))+(o>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(v,V),o=(o=Math.imul(v,J))+Math.imul(w,V)|0,c=Math.imul(w,J);var Ot=(f+(r=r+Math.imul(d,Q)|0)|0)+((8191&(o=(o=o+Math.imul(d,X)|0)+Math.imul(m,Q)|0))<<13)|0;f=((c=c+Math.imul(m,X)|0)+(o>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul(A,V),o=(o=Math.imul(A,J))+Math.imul(E,V)|0,c=Math.imul(E,J),r=r+Math.imul(v,Q)|0,o=(o=o+Math.imul(v,X)|0)+Math.imul(w,Q)|0,c=c+Math.imul(w,X)|0;var Mt=(f+(r=r+Math.imul(d,$)|0)|0)+((8191&(o=(o=o+Math.imul(d,tt)|0)+Math.imul(m,$)|0))<<13)|0;f=((c=c+Math.imul(m,tt)|0)+(o>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(O,V),o=(o=Math.imul(O,J))+Math.imul(M,V)|0,c=Math.imul(M,J),r=r+Math.imul(A,Q)|0,o=(o=o+Math.imul(A,X)|0)+Math.imul(E,Q)|0,c=c+Math.imul(E,X)|0,r=r+Math.imul(v,$)|0,o=(o=o+Math.imul(v,tt)|0)+Math.imul(w,$)|0,c=c+Math.imul(w,tt)|0;var kt=(f+(r=r+Math.imul(d,nt)|0)|0)+((8191&(o=(o=o+Math.imul(d,it)|0)+Math.imul(m,nt)|0))<<13)|0;f=((c=c+Math.imul(m,it)|0)+(o>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(x,V),o=(o=Math.imul(x,J))+Math.imul(S,V)|0,c=Math.imul(S,J),r=r+Math.imul(O,Q)|0,o=(o=o+Math.imul(O,X)|0)+Math.imul(M,Q)|0,c=c+Math.imul(M,X)|0,r=r+Math.imul(A,$)|0,o=(o=o+Math.imul(A,tt)|0)+Math.imul(E,$)|0,c=c+Math.imul(E,tt)|0,r=r+Math.imul(v,nt)|0,o=(o=o+Math.imul(v,it)|0)+Math.imul(w,nt)|0,c=c+Math.imul(w,it)|0;var xt=(f+(r=r+Math.imul(d,at)|0)|0)+((8191&(o=(o=o+Math.imul(d,st)|0)+Math.imul(m,at)|0))<<13)|0;f=((c=c+Math.imul(m,st)|0)+(o>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(N,V),o=(o=Math.imul(N,J))+Math.imul(I,V)|0,c=Math.imul(I,J),r=r+Math.imul(x,Q)|0,o=(o=o+Math.imul(x,X)|0)+Math.imul(S,Q)|0,c=c+Math.imul(S,X)|0,r=r+Math.imul(O,$)|0,o=(o=o+Math.imul(O,tt)|0)+Math.imul(M,$)|0,c=c+Math.imul(M,tt)|0,r=r+Math.imul(A,nt)|0,o=(o=o+Math.imul(A,it)|0)+Math.imul(E,nt)|0,c=c+Math.imul(E,it)|0,r=r+Math.imul(v,at)|0,o=(o=o+Math.imul(v,st)|0)+Math.imul(w,at)|0,c=c+Math.imul(w,st)|0;var St=(f+(r=r+Math.imul(d,ct)|0)|0)+((8191&(o=(o=o+Math.imul(d,lt)|0)+Math.imul(m,ct)|0))<<13)|0;f=((c=c+Math.imul(m,lt)|0)+(o>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(R,V),o=(o=Math.imul(R,J))+Math.imul(C,V)|0,c=Math.imul(C,J),r=r+Math.imul(N,Q)|0,o=(o=o+Math.imul(N,X)|0)+Math.imul(I,Q)|0,c=c+Math.imul(I,X)|0,r=r+Math.imul(x,$)|0,o=(o=o+Math.imul(x,tt)|0)+Math.imul(S,$)|0,c=c+Math.imul(S,tt)|0,r=r+Math.imul(O,nt)|0,o=(o=o+Math.imul(O,it)|0)+Math.imul(M,nt)|0,c=c+Math.imul(M,it)|0,r=r+Math.imul(A,at)|0,o=(o=o+Math.imul(A,st)|0)+Math.imul(E,at)|0,c=c+Math.imul(E,st)|0,r=r+Math.imul(v,ct)|0,o=(o=o+Math.imul(v,lt)|0)+Math.imul(w,ct)|0,c=c+Math.imul(w,lt)|0;var jt=(f+(r=r+Math.imul(d,ht)|0)|0)+((8191&(o=(o=o+Math.imul(d,pt)|0)+Math.imul(m,ht)|0))<<13)|0;f=((c=c+Math.imul(m,pt)|0)+(o>>>13)|0)+(jt>>>26)|0,jt&=67108863,r=Math.imul(L,V),o=(o=Math.imul(L,J))+Math.imul(F,V)|0,c=Math.imul(F,J),r=r+Math.imul(R,Q)|0,o=(o=o+Math.imul(R,X)|0)+Math.imul(C,Q)|0,c=c+Math.imul(C,X)|0,r=r+Math.imul(N,$)|0,o=(o=o+Math.imul(N,tt)|0)+Math.imul(I,$)|0,c=c+Math.imul(I,tt)|0,r=r+Math.imul(x,nt)|0,o=(o=o+Math.imul(x,it)|0)+Math.imul(S,nt)|0,c=c+Math.imul(S,it)|0,r=r+Math.imul(O,at)|0,o=(o=o+Math.imul(O,st)|0)+Math.imul(M,at)|0,c=c+Math.imul(M,st)|0,r=r+Math.imul(A,ct)|0,o=(o=o+Math.imul(A,lt)|0)+Math.imul(E,ct)|0,c=c+Math.imul(E,lt)|0,r=r+Math.imul(v,ht)|0,o=(o=o+Math.imul(v,pt)|0)+Math.imul(w,ht)|0,c=c+Math.imul(w,pt)|0;var Nt=(f+(r=r+Math.imul(d,yt)|0)|0)+((8191&(o=(o=o+Math.imul(d,gt)|0)+Math.imul(m,yt)|0))<<13)|0;f=((c=c+Math.imul(m,gt)|0)+(o>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,r=Math.imul(U,V),o=(o=Math.imul(U,J))+Math.imul(G,V)|0,c=Math.imul(G,J),r=r+Math.imul(L,Q)|0,o=(o=o+Math.imul(L,X)|0)+Math.imul(F,Q)|0,c=c+Math.imul(F,X)|0,r=r+Math.imul(R,$)|0,o=(o=o+Math.imul(R,tt)|0)+Math.imul(C,$)|0,c=c+Math.imul(C,tt)|0,r=r+Math.imul(N,nt)|0,o=(o=o+Math.imul(N,it)|0)+Math.imul(I,nt)|0,c=c+Math.imul(I,it)|0,r=r+Math.imul(x,at)|0,o=(o=o+Math.imul(x,st)|0)+Math.imul(S,at)|0,c=c+Math.imul(S,st)|0,r=r+Math.imul(O,ct)|0,o=(o=o+Math.imul(O,lt)|0)+Math.imul(M,ct)|0,c=c+Math.imul(M,lt)|0,r=r+Math.imul(A,ht)|0,o=(o=o+Math.imul(A,pt)|0)+Math.imul(E,ht)|0,c=c+Math.imul(E,pt)|0,r=r+Math.imul(v,yt)|0,o=(o=o+Math.imul(v,gt)|0)+Math.imul(w,yt)|0,c=c+Math.imul(w,gt)|0;var It=(f+(r=r+Math.imul(d,vt)|0)|0)+((8191&(o=(o=o+Math.imul(d,wt)|0)+Math.imul(m,vt)|0))<<13)|0;f=((c=c+Math.imul(m,wt)|0)+(o>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(H,V),o=(o=Math.imul(H,J))+Math.imul(K,V)|0,c=Math.imul(K,J),r=r+Math.imul(U,Q)|0,o=(o=o+Math.imul(U,X)|0)+Math.imul(G,Q)|0,c=c+Math.imul(G,X)|0,r=r+Math.imul(L,$)|0,o=(o=o+Math.imul(L,tt)|0)+Math.imul(F,$)|0,c=c+Math.imul(F,tt)|0,r=r+Math.imul(R,nt)|0,o=(o=o+Math.imul(R,it)|0)+Math.imul(C,nt)|0,c=c+Math.imul(C,it)|0,r=r+Math.imul(N,at)|0,o=(o=o+Math.imul(N,st)|0)+Math.imul(I,at)|0,c=c+Math.imul(I,st)|0,r=r+Math.imul(x,ct)|0,o=(o=o+Math.imul(x,lt)|0)+Math.imul(S,ct)|0,c=c+Math.imul(S,lt)|0,r=r+Math.imul(O,ht)|0,o=(o=o+Math.imul(O,pt)|0)+Math.imul(M,ht)|0,c=c+Math.imul(M,pt)|0,r=r+Math.imul(A,yt)|0,o=(o=o+Math.imul(A,gt)|0)+Math.imul(E,yt)|0,c=c+Math.imul(E,gt)|0,r=r+Math.imul(v,vt)|0,o=(o=o+Math.imul(v,wt)|0)+Math.imul(w,vt)|0,c=c+Math.imul(w,wt)|0;var Pt=(f+(r=r+Math.imul(d,At)|0)|0)+((8191&(o=(o=o+Math.imul(d,Et)|0)+Math.imul(m,At)|0))<<13)|0;f=((c=c+Math.imul(m,Et)|0)+(o>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,r=Math.imul(H,Q),o=(o=Math.imul(H,X))+Math.imul(K,Q)|0,c=Math.imul(K,X),r=r+Math.imul(U,$)|0,o=(o=o+Math.imul(U,tt)|0)+Math.imul(G,$)|0,c=c+Math.imul(G,tt)|0,r=r+Math.imul(L,nt)|0,o=(o=o+Math.imul(L,it)|0)+Math.imul(F,nt)|0,c=c+Math.imul(F,it)|0,r=r+Math.imul(R,at)|0,o=(o=o+Math.imul(R,st)|0)+Math.imul(C,at)|0,c=c+Math.imul(C,st)|0,r=r+Math.imul(N,ct)|0,o=(o=o+Math.imul(N,lt)|0)+Math.imul(I,ct)|0,c=c+Math.imul(I,lt)|0,r=r+Math.imul(x,ht)|0,o=(o=o+Math.imul(x,pt)|0)+Math.imul(S,ht)|0,c=c+Math.imul(S,pt)|0,r=r+Math.imul(O,yt)|0,o=(o=o+Math.imul(O,gt)|0)+Math.imul(M,yt)|0,c=c+Math.imul(M,gt)|0,r=r+Math.imul(A,vt)|0,o=(o=o+Math.imul(A,wt)|0)+Math.imul(E,vt)|0,c=c+Math.imul(E,wt)|0;var Rt=(f+(r=r+Math.imul(v,At)|0)|0)+((8191&(o=(o=o+Math.imul(v,Et)|0)+Math.imul(w,At)|0))<<13)|0;f=((c=c+Math.imul(w,Et)|0)+(o>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,r=Math.imul(H,$),o=(o=Math.imul(H,tt))+Math.imul(K,$)|0,c=Math.imul(K,tt),r=r+Math.imul(U,nt)|0,o=(o=o+Math.imul(U,it)|0)+Math.imul(G,nt)|0,c=c+Math.imul(G,it)|0,r=r+Math.imul(L,at)|0,o=(o=o+Math.imul(L,st)|0)+Math.imul(F,at)|0,c=c+Math.imul(F,st)|0,r=r+Math.imul(R,ct)|0,o=(o=o+Math.imul(R,lt)|0)+Math.imul(C,ct)|0,c=c+Math.imul(C,lt)|0,r=r+Math.imul(N,ht)|0,o=(o=o+Math.imul(N,pt)|0)+Math.imul(I,ht)|0,c=c+Math.imul(I,pt)|0,r=r+Math.imul(x,yt)|0,o=(o=o+Math.imul(x,gt)|0)+Math.imul(S,yt)|0,c=c+Math.imul(S,gt)|0,r=r+Math.imul(O,vt)|0,o=(o=o+Math.imul(O,wt)|0)+Math.imul(M,vt)|0,c=c+Math.imul(M,wt)|0;var Ct=(f+(r=r+Math.imul(A,At)|0)|0)+((8191&(o=(o=o+Math.imul(A,Et)|0)+Math.imul(E,At)|0))<<13)|0;f=((c=c+Math.imul(E,Et)|0)+(o>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(H,nt),o=(o=Math.imul(H,it))+Math.imul(K,nt)|0,c=Math.imul(K,it),r=r+Math.imul(U,at)|0,o=(o=o+Math.imul(U,st)|0)+Math.imul(G,at)|0,c=c+Math.imul(G,st)|0,r=r+Math.imul(L,ct)|0,o=(o=o+Math.imul(L,lt)|0)+Math.imul(F,ct)|0,c=c+Math.imul(F,lt)|0,r=r+Math.imul(R,ht)|0,o=(o=o+Math.imul(R,pt)|0)+Math.imul(C,ht)|0,c=c+Math.imul(C,pt)|0,r=r+Math.imul(N,yt)|0,o=(o=o+Math.imul(N,gt)|0)+Math.imul(I,yt)|0,c=c+Math.imul(I,gt)|0,r=r+Math.imul(x,vt)|0,o=(o=o+Math.imul(x,wt)|0)+Math.imul(S,vt)|0,c=c+Math.imul(S,wt)|0;var Bt=(f+(r=r+Math.imul(O,At)|0)|0)+((8191&(o=(o=o+Math.imul(O,Et)|0)+Math.imul(M,At)|0))<<13)|0;f=((c=c+Math.imul(M,Et)|0)+(o>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,r=Math.imul(H,at),o=(o=Math.imul(H,st))+Math.imul(K,at)|0,c=Math.imul(K,st),r=r+Math.imul(U,ct)|0,o=(o=o+Math.imul(U,lt)|0)+Math.imul(G,ct)|0,c=c+Math.imul(G,lt)|0,r=r+Math.imul(L,ht)|0,o=(o=o+Math.imul(L,pt)|0)+Math.imul(F,ht)|0,c=c+Math.imul(F,pt)|0,r=r+Math.imul(R,yt)|0,o=(o=o+Math.imul(R,gt)|0)+Math.imul(C,yt)|0,c=c+Math.imul(C,gt)|0,r=r+Math.imul(N,vt)|0,o=(o=o+Math.imul(N,wt)|0)+Math.imul(I,vt)|0,c=c+Math.imul(I,wt)|0;var Lt=(f+(r=r+Math.imul(x,At)|0)|0)+((8191&(o=(o=o+Math.imul(x,Et)|0)+Math.imul(S,At)|0))<<13)|0;f=((c=c+Math.imul(S,Et)|0)+(o>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,r=Math.imul(H,ct),o=(o=Math.imul(H,lt))+Math.imul(K,ct)|0,c=Math.imul(K,lt),r=r+Math.imul(U,ht)|0,o=(o=o+Math.imul(U,pt)|0)+Math.imul(G,ht)|0,c=c+Math.imul(G,pt)|0,r=r+Math.imul(L,yt)|0,o=(o=o+Math.imul(L,gt)|0)+Math.imul(F,yt)|0,c=c+Math.imul(F,gt)|0,r=r+Math.imul(R,vt)|0,o=(o=o+Math.imul(R,wt)|0)+Math.imul(C,vt)|0,c=c+Math.imul(C,wt)|0;var Ft=(f+(r=r+Math.imul(N,At)|0)|0)+((8191&(o=(o=o+Math.imul(N,Et)|0)+Math.imul(I,At)|0))<<13)|0;f=((c=c+Math.imul(I,Et)|0)+(o>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,r=Math.imul(H,ht),o=(o=Math.imul(H,pt))+Math.imul(K,ht)|0,c=Math.imul(K,pt),r=r+Math.imul(U,yt)|0,o=(o=o+Math.imul(U,gt)|0)+Math.imul(G,yt)|0,c=c+Math.imul(G,gt)|0,r=r+Math.imul(L,vt)|0,o=(o=o+Math.imul(L,wt)|0)+Math.imul(F,vt)|0,c=c+Math.imul(F,wt)|0;var Dt=(f+(r=r+Math.imul(R,At)|0)|0)+((8191&(o=(o=o+Math.imul(R,Et)|0)+Math.imul(C,At)|0))<<13)|0;f=((c=c+Math.imul(C,Et)|0)+(o>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,r=Math.imul(H,yt),o=(o=Math.imul(H,gt))+Math.imul(K,yt)|0,c=Math.imul(K,gt),r=r+Math.imul(U,vt)|0,o=(o=o+Math.imul(U,wt)|0)+Math.imul(G,vt)|0,c=c+Math.imul(G,wt)|0;var Ut=(f+(r=r+Math.imul(L,At)|0)|0)+((8191&(o=(o=o+Math.imul(L,Et)|0)+Math.imul(F,At)|0))<<13)|0;f=((c=c+Math.imul(F,Et)|0)+(o>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,r=Math.imul(H,vt),o=(o=Math.imul(H,wt))+Math.imul(K,vt)|0,c=Math.imul(K,wt);var Gt=(f+(r=r+Math.imul(U,At)|0)|0)+((8191&(o=(o=o+Math.imul(U,Et)|0)+Math.imul(G,At)|0))<<13)|0;f=((c=c+Math.imul(G,Et)|0)+(o>>>13)|0)+(Gt>>>26)|0,Gt&=67108863;var zt=(f+(r=Math.imul(H,At))|0)+((8191&(o=(o=Math.imul(H,Et))+Math.imul(K,At)|0))<<13)|0;return f=((c=Math.imul(K,Et))+(o>>>13)|0)+(zt>>>26)|0,zt&=67108863,l[0]=Tt,l[1]=Ot,l[2]=Mt,l[3]=kt,l[4]=xt,l[5]=St,l[6]=jt,l[7]=Nt,l[8]=It,l[9]=Pt,l[10]=Rt,l[11]=Ct,l[12]=Bt,l[13]=Lt,l[14]=Ft,l[15]=Dt,l[16]=Ut,l[17]=Gt,l[18]=zt,0!==f&&(l[19]=f,n.length++),n;};function T(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,o=0,c=0;c<n.length-1;c++){var l=o;o=0;for(var f=67108863&r,h=Math.min(c,e.length-1),d=Math.max(0,c-t.length+1);d<=h;d++){var i=c-d,m=(0|t.words[i])*(0|e.words[d]),y=67108863&m;f=67108863&(y=y+f|0),o+=(l=(l=l+(m/67108864|0)|0)+(y>>>26)|0)>>>26,l&=67108863;}n.words[c]=f,r=l,l=o;}return 0!==r?n.words[c]=r:n.length--,n._strip();}function O(t,e,n){return T(t,e,n);}function M(t,e){this.x=t,this.y=e;}Math.imul||(E=A),c.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?E(this,t,e):n<63?A(this,t,e):n<1024?T(this,t,e):O(this,t,e);},M.prototype.makeRBT=function(t){for(var e=new Array(t),n=c.prototype._countBits(t)-1,i=0;i<t;i++)e[i]=this.revBin(i,n,t);return e;},M.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var r=0,i=0;i<e;i++)r|=(1&t)<<e-i-1,t>>=1;return r;},M.prototype.permute=function(t,e,n,r,o,c){for(var i=0;i<c;i++)r[i]=e[t[i]],o[i]=n[t[i]];},M.prototype.transform=function(t,e,n,r,o,c){this.permute(c,t,e,n,r,o);for(var s=1;s<o;s<<=1)for(var l=s<<1,f=Math.cos(2*Math.PI/l),h=Math.sin(2*Math.PI/l),p=0;p<o;p+=l)for(var d=f,m=h,y=0;y<s;y++){var v=n[p+y],w=r[p+y],_=n[p+y+s],A=r[p+y+s],E=d*_-m*A;A=d*A+m*_,_=E,n[p+y]=v+_,r[p+y]=w+A,n[p+y+s]=v-_,r[p+y+s]=w-A,y!==l&&(E=f*d-h*m,m=f*m+h*d,d=E);}},M.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r;},M.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var i=0;i<n/2;i++){var r=t[i];t[i]=t[n-i-1],t[n-i-1]=r,r=e[i],e[i]=-e[n-i-1],e[n-i-1]=-r;}},M.prototype.normalize13b=function(t,e){for(var n=0,i=0;i<e/2;i++){var r=8192*Math.round(t[2*i+1]/e)+Math.round(t[2*i]/e)+n;t[i]=67108863&r,n=r<67108864?0:r/67108864|0;}return t;},M.prototype.convert13b=function(t,e,n,o){for(var c=0,i=0;i<e;i++)c+=0|t[i],n[2*i]=8191&c,c>>>=13,n[2*i+1]=8191&c,c>>>=13;for(i=2*e;i<o;++i)n[i]=0;r(0===c),r(0==(-8192&c));},M.prototype.stub=function(t){for(var e=new Array(t),i=0;i<t;i++)e[i]=0;return e;},M.prototype.mulp=function(t,e,n){var r=2*this.guessLen13b(t.length,e.length),o=this.makeRBT(r),c=this.stub(r),l=new Array(r),f=new Array(r),h=new Array(r),d=new Array(r),m=new Array(r),y=new Array(r),v=n.words;v.length=r,this.convert13b(t.words,t.length,l,r),this.convert13b(e.words,e.length,d,r),this.transform(l,c,f,h,r,o),this.transform(d,c,m,y,r,o);for(var i=0;i<r;i++){var w=f[i]*m[i]-h[i]*y[i];h[i]=f[i]*y[i]+h[i]*m[i],f[i]=w;}return this.conjugate(f,h,r),this.transform(f,h,v,c,r,o),this.conjugate(v,c,r),this.normalize13b(v,r),n.negative=t.negative^e.negative,n.length=t.length+e.length,n._strip();},c.prototype.mul=function(t){var e=new c(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e);},c.prototype.mulf=function(t){var e=new c(null);return e.words=new Array(this.length+t.length),O(this,t,e);},c.prototype.imul=function(t){return this.clone().mulTo(t,this);},c.prototype.imuln=function(t){var e=t<0;e&&(t=-t),r("number"==typeof t),r(t<67108864);for(var n=0,i=0;i<this.length;i++){var o=(0|this.words[i])*t,c=(67108863&o)+(67108863&n);n>>=26,n+=o/67108864|0,n+=c>>>26,this.words[i]=67108863&c;}return 0!==n&&(this.words[i]=n,this.length++),e?this.ineg():this;},c.prototype.muln=function(t){return this.clone().imuln(t);},c.prototype.sqr=function(){return this.mul(this);},c.prototype.isqr=function(){return this.imul(this.clone());},c.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var r=n/26|0,o=n%26;e[n]=t.words[r]>>>o&1;}return e;}(t);if(0===e.length)return new c(1);for(var n=this,i=0;i<e.length&&0===e[i];i++,n=n.sqr());if(++i<e.length)for(var q=n.sqr();i<e.length;i++,q=q.sqr())0!==e[i]&&(n=n.mul(q));return n;},c.prototype.iushln=function(t){r("number"==typeof t&&t>=0);var i,e=t%26,s=(t-e)/26,n=67108863>>>26-e<<26-e;if(0!==e){var o=0;for(i=0;i<this.length;i++){var c=this.words[i]&n,l=(0|this.words[i])-c<<e;this.words[i]=l|o,o=c>>>26-e;}o&&(this.words[i]=o,this.length++);}if(0!==s){for(i=this.length-1;i>=0;i--)this.words[i+s]=this.words[i];for(i=0;i<s;i++)this.words[i]=0;this.length+=s;}return this._strip();},c.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t);},c.prototype.iushrn=function(t,e,n){var o;r("number"==typeof t&&t>=0),o=e?(e-e%26)/26:0;var c=t%26,s=Math.min((t-c)/26,this.length),mask=67108863^67108863>>>c<<c,l=n;if(o-=s,o=Math.max(0,o),l){for(var i=0;i<s;i++)l.words[i]=this.words[i];l.length=s;}if(0===s);else if(this.length>s)for(this.length-=s,i=0;i<this.length;i++)this.words[i]=this.words[i+s];else this.words[0]=0,this.length=1;var f=0;for(i=this.length-1;i>=0&&(0!==f||i>=o);i--){var h=0|this.words[i];this.words[i]=f<<26-c|h>>>c,f=h&mask;}return l&&0!==f&&(l.words[l.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this._strip();},c.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n);},c.prototype.shln=function(t){return this.clone().ishln(t);},c.prototype.ushln=function(t){return this.clone().iushln(t);},c.prototype.shrn=function(t){return this.clone().ishrn(t);},c.prototype.ushrn=function(t){return this.clone().iushrn(t);},c.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,s=(t-e)/26,q=1<<e;return!(this.length<=s)&&!!(this.words[s]&q);},c.prototype.imaskn=function(t){r("number"==typeof t&&t>=0);var e=t%26,s=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=s)return this;if(0!==e&&s++,this.length=Math.min(s,this.length),0!==e){var mask=67108863^67108863>>>e<<e;this.words[this.length-1]&=mask;}return this._strip();},c.prototype.maskn=function(t){return this.clone().imaskn(t);},c.prototype.iaddn=function(t){return r("number"==typeof t),r(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):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t);},c.prototype._iaddn=function(t){this.words[0]+=t;for(var i=0;i<this.length&&this.words[i]>=67108864;i++)this.words[i]-=67108864,i===this.length-1?this.words[i+1]=1:this.words[i+1]++;return this.length=Math.max(this.length,i+1),this;},c.prototype.isubn=function(t){if(r("number"==typeof t),r(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 i=0;i<this.length&&this.words[i]<0;i++)this.words[i]+=67108864,this.words[i+1]-=1;return this._strip();},c.prototype.addn=function(t){return this.clone().iaddn(t);},c.prototype.subn=function(t){return this.clone().isubn(t);},c.prototype.iabs=function(){return this.negative=0,this;},c.prototype.abs=function(){return this.clone().iabs();},c.prototype._ishlnsubmul=function(t,e,n){var i,o,c=t.length+n;this._expand(c);var l=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+l;var f=(0|t.words[i])*e;l=((o-=67108863&f)>>26)-(f/67108864|0),this.words[i+n]=67108863&o;}for(;i<this.length-n;i++)l=(o=(0|this.words[i+n])+l)>>26,this.words[i+n]=67108863&o;if(0===l)return this._strip();for(r(-1===l),l=0,i=0;i<this.length;i++)l=(o=-(0|this.words[i])+l)>>26,this.words[i]=67108863&o;return this.negative=1,this._strip();},c.prototype._wordDiv=function(t,e){var n=(this.length,t.length),a=this.clone(),b=t,r=0|b.words[b.length-1];0!==(n=26-this._countBits(r))&&(b=b.ushln(n),a.iushln(n),r=0|b.words[b.length-1]);var q,o=a.length-b.length;if("mod"!==e){(q=new c(null)).length=o+1,q.words=new Array(q.length);for(var i=0;i<q.length;i++)q.words[i]=0;}var l=a.clone()._ishlnsubmul(b,1,o);0===l.negative&&(a=l,q&&(q.words[o]=1));for(var f=o-1;f>=0;f--){var h=67108864*(0|a.words[b.length+f])+(0|a.words[b.length+f-1]);for(h=Math.min(h/r|0,67108863),a._ishlnsubmul(b,h,f);0!==a.negative;)h--,a.negative=0,a._ishlnsubmul(b,1,f),a.isZero()||(a.negative^=1);q&&(q.words[f]=h);}return q&&q._strip(),a._strip(),"div"!==e&&0!==n&&a.iushrn(n),{div:q||null,mod:a};},c.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new c(0),mod:new c(0)}:0!==this.negative&&0===t.negative?(l=this.neg().divmod(t,e),"mod"!==e&&(div=l.div.neg()),"div"!==e&&(o=l.mod.neg(),n&&0!==o.negative&&o.iadd(t)),{div:div,mod:o}):0===this.negative&&0!==t.negative?(l=this.divmod(t.neg(),e),"mod"!==e&&(div=l.div.neg()),{div:div,mod:l.mod}):0!=(this.negative&t.negative)?(l=this.neg().divmod(t.neg(),e),"div"!==e&&(o=l.mod.neg(),n&&0!==o.negative&&o.isub(t)),{div:l.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new c(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new c(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new c(this.modrn(t.words[0]))}:this._wordDiv(t,e);var div,o,l;},c.prototype.div=function(t){return this.divmod(t,"div",!1).div;},c.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod;},c.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod;},c.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),o=t.andln(1),c=n.cmp(r);return c<0||1===o&&0===c?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1);},c.prototype.modrn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var p=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(p*n+(0|this.words[i]))%t;return e?-n:n;},c.prototype.modn=function(t){return this.modrn(t);},c.prototype.idivn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*n;this.words[i]=o/t|0,n=o%t;}return this._strip(),e?this.ineg():this;},c.prototype.divn=function(t){return this.clone().idivn(t);},c.prototype.egcd=function(p){r(0===p.negative),r(!p.isZero());var t=this,e=p.clone();t=0!==t.negative?t.umod(p):t.clone();for(var n=new c(1),o=new c(0),l=new c(0),f=new c(1),g=0;t.isEven()&&e.isEven();)t.iushrn(1),e.iushrn(1),++g;for(var h=e.clone(),d=t.clone();!t.isZero();){for(var i=0,m=1;0==(t.words[0]&m)&&i<26;++i,m<<=1);if(i>0)for(t.iushrn(i);i-->0;)(n.isOdd()||o.isOdd())&&(n.iadd(h),o.isub(d)),n.iushrn(1),o.iushrn(1);for(var y=0,v=1;0==(e.words[0]&v)&&y<26;++y,v<<=1);if(y>0)for(e.iushrn(y);y-->0;)(l.isOdd()||f.isOdd())&&(l.iadd(h),f.isub(d)),l.iushrn(1),f.iushrn(1);t.cmp(e)>=0?(t.isub(e),n.isub(l),o.isub(f)):(e.isub(t),l.isub(n),f.isub(o));}return{a:l,b:f,gcd:e.iushln(g)};},c.prototype._invmp=function(p){r(0===p.negative),r(!p.isZero());var a=this,b=p.clone();a=0!==a.negative?a.umod(p):a.clone();for(var t,e=new c(1),n=new c(0),o=b.clone();a.cmpn(1)>0&&b.cmpn(1)>0;){for(var i=0,l=1;0==(a.words[0]&l)&&i<26;++i,l<<=1);if(i>0)for(a.iushrn(i);i-->0;)e.isOdd()&&e.iadd(o),e.iushrn(1);for(var f=0,h=1;0==(b.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(b.iushrn(f);f-->0;)n.isOdd()&&n.iadd(o),n.iushrn(1);a.cmp(b)>=0?(a.isub(b),e.isub(n)):(b.isub(a),n.isub(e));}return(t=0===a.cmpn(1)?e:n).cmpn(0)<0&&t.iadd(p),t;},c.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var a=this.clone(),b=t.clone();a.negative=0,b.negative=0;for(var e=0;a.isEven()&&b.isEven();e++)a.iushrn(1),b.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;b.isEven();)b.iushrn(1);var n=a.cmp(b);if(n<0){var r=a;a=b,b=r;}else if(0===n||0===b.cmpn(1))break;a.isub(b);}return b.iushln(e);},c.prototype.invm=function(t){return this.egcd(t).a.umod(t);},c.prototype.isEven=function(){return 0==(1&this.words[0]);},c.prototype.isOdd=function(){return 1==(1&this.words[0]);},c.prototype.andln=function(t){return this.words[0]&t;},c.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,s=(t-e)/26,q=1<<e;if(this.length<=s)return this._expand(s+1),this.words[s]|=q,this;for(var n=q,i=s;0!==n&&i<this.length;i++){var o=0|this.words[i];n=(o+=n)>>>26,o&=67108863,this.words[i]=o;}return 0!==n&&(this.words[i]=n,this.length++),this;},c.prototype.isZero=function(){return 1===this.length&&0===this.words[0];},c.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var o=0|this.words[0];e=o===t?0:o<t?-1:1;}return 0!==this.negative?0|-e:e;},c.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;},c.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;i>=0;i--){var a=0|this.words[i],b=0|t.words[i];if(a!==b){a<b?e=-1:a>b&&(e=1);break;}}return e;},c.prototype.gtn=function(t){return 1===this.cmpn(t);},c.prototype.gt=function(t){return 1===this.cmp(t);},c.prototype.gten=function(t){return this.cmpn(t)>=0;},c.prototype.gte=function(t){return this.cmp(t)>=0;},c.prototype.ltn=function(t){return-1===this.cmpn(t);},c.prototype.lt=function(t){return-1===this.cmp(t);},c.prototype.lten=function(t){return this.cmpn(t)<=0;},c.prototype.lte=function(t){return this.cmp(t)<=0;},c.prototype.eqn=function(t){return 0===this.cmpn(t);},c.prototype.eq=function(t){return 0===this.cmp(t);},c.red=function(t){return new P(t);},c.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t);},c.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this);},c.prototype._forceRed=function(t){return this.red=t,this;},c.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t);},c.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t);},c.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t);},c.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t);},c.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t);},c.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t);},c.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t);},c.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t);},c.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this);},c.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this);},c.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this);},c.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this);},c.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this);},c.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t);};var k={k256:null,p224:null,p192:null,p25519:null};function x(t,p){this.name=t,this.p=new c(p,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp();}function S(){x.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f");}function j(){x.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001");}function N(){x.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff");}function I(){x.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed");}function P(t){if("string"==typeof t){var e=c._prime(t);this.m=e.p,this.prime=e;}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null;}function R(t){P.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new c(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);}x.prototype._tmp=function(){var t=new c(null);return t.words=new Array(Math.ceil(this.n/13)),t;},x.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength();}while(e>this.n);var r=e<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n;},x.prototype.split=function(input,t){input.iushrn(this.n,0,t);},x.prototype.imulK=function(t){return t.imul(this.k);},o(S,x),S.prototype.split=function(input,output){for(var mask=4194303,t=Math.min(input.length,9),i=0;i<t;i++)output.words[i]=input.words[i];if(output.length=t,input.length<=9)return input.words[0]=0,void(input.length=1);var e=input.words[9];for(output.words[output.length++]=e&mask,i=10;i<input.length;i++){var n=0|input.words[i];input.words[i-10]=(n&mask)<<4|e>>>22,e=n;}e>>>=22,input.words[i-10]=e,0===e&&input.length>10?input.length-=10:input.length-=9;},S.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var n=0|t.words[i];e+=977*n,t.words[i]=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;},o(j,x),o(N,x),o(I,x),I.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var n=19*(0|t.words[i])+e,r=67108863&n;n>>>=26,t.words[i]=r,e=n;}return 0!==e&&(t.words[t.length++]=e),t;},c._prime=function(t){if(k[t])return k[t];var e;if("k256"===t)e=new S();else if("p224"===t)e=new j();else if("p192"===t)e=new N();else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new I();}return k[t]=e,e;},P.prototype._verify1=function(a){r(0===a.negative,"red works only with positives"),r(a.red,"red works only with red numbers");},P.prototype._verify2=function(a,b){r(0==(a.negative|b.negative),"red works only with positives"),r(a.red&&a.red===b.red,"red works only with red numbers");},P.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):(m(a,a.umod(this.m)._forceRed(this)),a);},P.prototype.neg=function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this);},P.prototype.add=function(a,b){this._verify2(a,b);var t=a.add(b);return t.cmp(this.m)>=0&&t.isub(this.m),t._forceRed(this);},P.prototype.iadd=function(a,b){this._verify2(a,b);var t=a.iadd(b);return t.cmp(this.m)>=0&&t.isub(this.m),t;},P.prototype.sub=function(a,b){this._verify2(a,b);var t=a.sub(b);return t.cmpn(0)<0&&t.iadd(this.m),t._forceRed(this);},P.prototype.isub=function(a,b){this._verify2(a,b);var t=a.isub(b);return t.cmpn(0)<0&&t.iadd(this.m),t;},P.prototype.shl=function(a,t){return this._verify1(a),this.imod(a.ushln(t));},P.prototype.imul=function(a,b){return this._verify2(a,b),this.imod(a.imul(b));},P.prototype.mul=function(a,b){return this._verify2(a,b),this.imod(a.mul(b));},P.prototype.isqr=function(a){return this.imul(a,a.clone());},P.prototype.sqr=function(a){return this.mul(a,a);},P.prototype.sqrt=function(a){if(a.isZero())return a.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var e=this.m.add(new c(1)).iushrn(2);return this.pow(a,e);}for(var q=this.m.subn(1),s=0;!q.isZero()&&0===q.andln(1);)s++,q.iushrn(1);r(!q.isZero());var n=new c(1).toRed(this),o=n.redNeg(),l=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new c(2*f*f).toRed(this);0!==this.pow(f,l).cmp(o);)f.redIAdd(o);for(var h=this.pow(f,q),d=this.pow(a,q.addn(1).iushrn(1)),m=this.pow(a,q),y=s;0!==m.cmp(n);){for(var v=m,i=0;0!==v.cmp(n);i++)v=v.redSqr();r(i<y);var b=this.pow(h,new c(1).iushln(y-i-1));d=d.redMul(b),h=b.redSqr(),m=m.redMul(h),y=i;}return d;},P.prototype.invm=function(a){var t=a._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t);},P.prototype.pow=function(a,t){if(t.isZero())return new c(1).toRed(this);if(0===t.cmpn(1))return a.clone();var e=new Array(16);e[0]=new c(1).toRed(this),e[1]=a;for(var i=2;i<e.length;i++)e[i]=this.mul(e[i-1],a);var n=e[0],r=0,o=0,l=t.bitLength()%26;for(0===l&&(l=26),i=t.length-1;i>=0;i--){for(var f=t.words[i],h=l-1;h>=0;h--){var d=f>>h&1;n!==e[0]&&(n=this.sqr(n)),0!==d||0!==r?(r<<=1,r|=d,(4===++o||0===i&&0===h)&&(n=this.mul(n,e[r]),o=0,r=0)):o=0;}l=26;}return n;},P.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e;},P.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e;},c.mont=function(t){return new R(t);},o(R,P),R.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift));},R.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e;},R.prototype.imul=function(a,b){if(a.isZero()||b.isZero())return a.words[0]=0,a.length=1,a;var t=a.imul(b),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(e).iushrn(this.shift),n=u;return u.cmp(this.m)>=0?n=u.isub(this.m):u.cmpn(0)<0&&(n=u.iadd(this.m)),n._forceRed(this);},R.prototype.mul=function(a,b){if(a.isZero()||b.isZero())return new c(0)._forceRed(this);var t=a.mul(b),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(e).iushrn(this.shift),n=u;return u.cmp(this.m)>=0?n=u.isub(this.m):u.cmpn(0)<0&&(n=u.iadd(this.m)),n._forceRed(this);},R.prototype.invm=function(a){return this.imod(a._invmp(this.m).mul(this.r2))._forceRed(this);};}(t,this);}).call(this,n(97)(t));},function(t,e,n){"use strict";var r;n.d(e,"a",function(){return r;}),function(t){t.sha256="sha256",t.sha512="sha512";}(r||(r={}));},function(t,e,n){"use strict";n.d(e,"a",function(){return r;});const r="random/5.7.0";},function(t,e,n){"use strict";n.d(e,"a",function(){return L;}),n.d(e,"b",function(){return F;});var r=n(0),o=n(1),c=n(2),l=n(40),f=n(13),h=n(4);class d extends f.a{constructor(t){super("address","address",t,!1);}defaultValue(){return"0x0000000000000000000000000000000000000000";}encode(t,e){try{e=Object(h.a)(e);}catch(t){this._throwError(t.message,e);}return t.writeValue(e);}decode(t){return Object(h.a)(Object(r.h)(t.readValue().toHexString(),20));}}class m extends f.a{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);}}const y=new c.b(l.a);function v(t,e,n){let r=null;if(Array.isArray(n))r=n;else if(n&&"object"==typeof n){let t={};r=e.map(e=>{const r=e.localName;return r||y.throwError("cannot encode object for signature with missing names",c.b.errors.INVALID_ARGUMENT,{argument:"values",coder:e,value:n}),t[r]&&y.throwError("cannot encode object for signature with duplicate names",c.b.errors.INVALID_ARGUMENT,{argument:"values",coder:e,value:n}),t[r]=!0,n[r];});}else y.throwArgumentError("invalid tuple value","tuple",n);e.length!==r.length&&y.throwArgumentError("types/value length mismatch","tuple",n);let o=new f.c(t.wordSize),l=new f.c(t.wordSize),h=[];e.forEach((t,e)=>{let n=r[e];if(t.dynamic){let e=l.length;t.encode(l,n);let r=o.writeUpdatableValue();h.push(t=>{r(t+e);});}else t.encode(o,n);}),h.forEach(t=>{t(o.length);});let d=t.appendWriter(o);return d+=t.appendWriter(l),d;}function w(t,e){let n=[],r=t.subReader(0);e.forEach(e=>{let o=null;if(e.dynamic){let n=t.readValue(),l=r.subReader(n.toNumber());try{o=e.decode(l);}catch(t){if(t.code===c.b.errors.BUFFER_OVERRUN)throw t;o=t,o.baseType=e.name,o.name=e.localName,o.type=e.type;}}else try{o=e.decode(t);}catch(t){if(t.code===c.b.errors.BUFFER_OVERRUN)throw t;o=t,o.baseType=e.name,o.name=e.localName,o.type=e.type;}null!=o&&n.push(o);});const o=e.reduce((t,e)=>{const n=e.localName;return n&&(t[n]||(t[n]=0),t[n]++),t;},{});e.forEach((t,e)=>{let r=t.localName;if(!r||1!==o[r])return;if("length"===r&&(r="_length"),null!=n[r])return;const c=n[e];c instanceof Error?Object.defineProperty(n,r,{enumerable:!0,get:()=>{throw c;}}):n[r]=c;});for(let i=0;i<n.length;i++){const t=n[i];t instanceof Error&&Object.defineProperty(n,i,{enumerable:!0,get:()=>{throw t;}});}return Object.freeze(n);}class _ extends f.a{constructor(t,e,n){super("array",t.type+"["+(e>=0?e:"")+"]",n,-1===e||t.dynamic),this.coder=t,this.length=e;}defaultValue(){const t=this.coder.defaultValue(),e=[];for(let i=0;i<this.length;i++)e.push(t);return e;}encode(t,e){Array.isArray(e)||this._throwError("expected array value",e);let n=this.length;-1===n&&(n=e.length,t.writeValue(e.length)),y.checkArgumentCount(e.length,n,"coder array"+(this.localName?" "+this.localName:""));let r=[];for(let i=0;i<e.length;i++)r.push(this.coder);return v(t,r,e);}decode(t){let e=this.length;-1===e&&(e=t.readValue().toNumber(),32*e>t._data.length&&y.throwError("insufficient data length",c.b.errors.BUFFER_OVERRUN,{length:t._data.length,count:e}));let n=[];for(let i=0;i<e;i++)n.push(new m(this.coder));return t.coerce(this.name,w(t,n));}}class A extends f.a{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 E extends f.a{constructor(t,e){super(t,t,e,!0);}defaultValue(){return"0x";}encode(t,e){e=Object(r.a)(e);let n=t.writeValue(e.length);return n+=t.writeBytes(e),n;}decode(t){return t.readBytes(t.readValue().toNumber(),!0);}}class T extends E{constructor(t){super("bytes",t);}decode(t){return t.coerce(this.name,Object(r.i)(super.decode(t)));}}class O extends f.a{constructor(t,e){let n="bytes"+String(t);super(n,n,e,!1),this.size=t;}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+2*this.size);}encode(t,e){let data=Object(r.a)(e);return data.length!==this.size&&this._throwError("incorrect data length",e),t.writeBytes(data);}decode(t){return t.coerce(this.name,Object(r.i)(t.readBytes(this.size)));}}class M extends f.a{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 k=n(7),x=n(41);class S extends f.a{constructor(t,e,n){const r=(e?"int":"uint")+8*t;super(r,r,n,!1),this.size=t,this.signed=e;}defaultValue(){return 0;}encode(t,e){let n=k.a.from(e),r=x.b.mask(8*t.wordSize);if(this.signed){let t=r.mask(8*this.size-1);(n.gt(t)||n.lt(t.add(x.e).mul(x.d)))&&this._throwError("value out-of-bounds",e);}else(n.lt(x.h)||n.gt(r.mask(8*this.size)))&&this._throwError("value out-of-bounds",e);return n=n.toTwos(8*this.size).mask(8*this.size),this.signed&&(n=n.fromTwos(8*this.size).toTwos(8*t.wordSize)),t.writeValue(n);}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 j=n(27);class N extends E{constructor(t){super("string",t);}defaultValue(){return"";}encode(t,e){return super.encode(t,Object(j.f)(e));}decode(t){return Object(j.h)(super.decode(t));}}class I extends f.a{constructor(t,e){let n=!1;const r=[];t.forEach(t=>{t.dynamic&&(n=!0),r.push(t.type);});super("tuple","tuple("+r.join(",")+")",e,n),this.coders=t;}defaultValue(){const t=[];this.coders.forEach(e=>{t.push(e.defaultValue());});const e=this.coders.reduce((t,e)=>{const n=e.localName;return n&&(t[n]||(t[n]=0),t[n]++),t;},{});return this.coders.forEach((n,r)=>{let o=n.localName;o&&1===e[o]&&("length"===o&&(o="_length"),null==t[o]&&(t[o]=t[r]));}),Object.freeze(t);}encode(t,e){return v(t,this.coders,e);}decode(t){return t.coerce(this.name,w(t,this.coders));}}var P=n(29);const R=new c.b(l.a),C=new RegExp(/^bytes([0-9]*)$/),B=new RegExp(/^(u?int)([0-9]*)$/);class L{constructor(t){Object(o.d)(this,"coerceFunc",t||null);}_getCoder(param){switch(param.baseType){case"address":return new d(param.name);case"bool":return new A(param.name);case"string":return new N(param.name);case"bytes":return new T(param.name);case"array":return new _(this._getCoder(param.arrayChildren),param.arrayLength,param.name);case"tuple":return new I((param.components||[]).map(component=>this._getCoder(component)),param.name);case"":return new M(param.name);}let t=param.type.match(B);if(t){let e=parseInt(t[2]||"256");return(0===e||e>256||e%8!=0)&&R.throwArgumentError("invalid "+t[1]+" bit length","param",param),new S(e/8,"int"===t[1],param.name);}if(t=param.type.match(C),t){let e=parseInt(t[1]);return(0===e||e>32)&&R.throwArgumentError("invalid bytes length","param",param),new O(e,param.name);}return R.throwArgumentError("invalid type","type",param.type);}_getWordSize(){return 32;}_getReader(data,t){return new f.b(data,this._getWordSize(),this.coerceFunc,t);}_getWriter(){return new f.c(this._getWordSize());}getDefaultValue(t){const e=t.map(t=>this._getCoder(P.g.from(t)));return new I(e,"_").defaultValue();}encode(t,e){t.length!==e.length&&R.throwError("types/values length mismatch",c.b.errors.INVALID_ARGUMENT,{count:{types:t.length,values:e.length},value:{types:t,values:e}});const n=t.map(t=>this._getCoder(P.g.from(t))),r=new I(n,"_"),o=this._getWriter();return r.encode(o,e),o.data;}decode(t,data,e){const n=t.map(t=>this._getCoder(P.g.from(t)));return new I(n,"_").decode(this._getReader(Object(r.a)(data),e));}}const F=new L();},function(t,e,n){"use strict";n.d(e,"b",function(){return d;}),n.d(e,"c",function(){return m;}),n.d(e,"d",function(){return y;}),n.d(e,"a",function(){return v;});var r=n(24),o=n.n(r),c=n(0),l=n(162),f=n(2);const h=new f.b("sha2/5.7.0");function d(data){return"0x"+o.a.ripemd160().update(Object(c.a)(data)).digest("hex");}function m(data){return"0x"+o.a.sha256().update(Object(c.a)(data)).digest("hex");}function y(data){return"0x"+o.a.sha512().update(Object(c.a)(data)).digest("hex");}function v(t,e,data){return l.a[t]||h.throwError("unsupported algorithm "+t,f.b.errors.UNSUPPORTED_OPERATION,{operation:"hmac",algorithm:t}),"0x"+o.a.hmac(o.a[t],Object(c.a)(e)).update(Object(c.a)(data)).digest("hex");}},function(t,e,n){const{isEmpty:r}=n(169),{BigNumber:o}=n(23),{IndexedDB:c}=n(254),{sleep:l}=n(220),{workerEvents:f,numbers:h}=n(54),{ExtendedProvider:d}=n(253),{POOL_CONTRACT:m,RPC_LIST:y,FALLBACK_RPC_LIST:v}=n(251),{TornadoPool__factory:w}=n(252),_=t=>{self.chainId=t;const e=(t=>new d(y[t],t,v[t]))(t);A(t,e),(async()=>{try{const t=new c({stores:[{keyPath:"nullifier",name:"nullifier_events_100",indexes:[{name:"transactionHash",unique:!1}]}],dbName:"tornado_pool_nullifier"});await t.initDB(),self.$indexedDB=t;}catch(t){console.log("err",t.message);}})();},A=(t,e)=>{self.poolContract=w.connect(m[t],e);},E=async(t,e=!0)=>{let n={blockFrom:h.DEPLOYED_BLOCK,cachedEvents:[]};try{if(t&&t.length){const[e]=t.sort((a,b)=>b.blockNumber-a.blockNumber),r=await self.poolContract.provider.getBlockNumber(),o=Number(e.blockNumber)+h.ONE;e.blockNumber===r&&(n.blockFrom=h.DEPLOYED_BLOCK),n.blockFrom=o>r?r:o,n.cachedEvents=t;}else n=await(async()=>{let t=h.DEPLOYED_BLOCK;self.$indexedDB||(await l(h.RECALL_DELAY));const e=await self.$indexedDB.getAll({storeName:"nullifier_events_100"});if(e&&e.length){const[n]=e.sort((a,b)=>b.blockNumber-a.blockNumber),r=await self.poolContract.provider.getBlockNumber(),o=Number(n.blockNumber)+h.ONE;if(n.blockNumber===r)return{blockFrom:t,cachedEvents:e};t=o>r?r:o;}return{blockFrom:t,cachedEvents:e};})();const{blockFrom:o=h.DEPLOYED_BLOCK,cachedEvents:c=[]}=n,f=await(async t=>{try{const filter=self.poolContract.filters.NewNullifier();return(await self.poolContract.queryFilter(filter,t)).map(({blockNumber:t,transactionHash:e,args:n})=>({blockNumber:t,transactionHash:e,nullifier:n.nullifier}));}catch(t){return console.error("getNullifiers",t.message),[];}})(o);return f.length&&(async({events:t})=>{try{if((await O())||!M()||r(t))return;self.$indexedDB.createMultipleTransactions({data:t,storeName:"nullifier_events_100"});}catch(t){console.error(`saveEvents has error: ${t.message}`);}})({events:f}),e?c.concat(f):f;}catch(t){throw new Error(`Method getNullifierEvents has error: ${t.message}`);}},T=async({cachedNullifiers:t,decryptedEvents:e})=>{try{if(e.length===h.ZERO)return{unspentUtxo:[],totalAmount:0};const n=await E(t);let r=o.from("0");const c=[],l=await Promise.all(e.map(t=>(async(t,e)=>{try{const{nullifierHash:n}=t;if((await O())&&(await self.$indexedDB.getFromIndex({key:n,indexName:"nullifier",storeName:"nullifier_events_100"})))return;if(e.find(t=>t.nullifier===n))return;return t;}catch(t){throw new Error(`Method getNullifierEvent has error: ${t.message}`);}})(t,n)));return l.forEach(t=>{t&&!o.from(t.amount).isZero()&&(c.push(t),r=r.add(t.amount));}),{totalAmount:r,unspentUtxo:c};}catch(t){throw new Error(`Method checkUnspentEvents has error: ${t.message}`);}},O=async()=>(self.$indexedDB||(await l(h.RECALL_DELAY)),!self.$indexedDB||self.$indexedDB.isBlocked),M=()=>!!self.location.host.includes("compassionate-payne-b9dc6b.netlify.app")||["localhost:3000","nova.tornadocash.eth","nova.tornadocash.eth.link","nova.tornadocash.eth.limo"].includes(self.location.host);self.addEventListener("message",({data:data,ports:t})=>{switch(self.postMessage(data),data.eventName){case f.INIT_WORKER:_(data.payload);break;case f.GET_NULLIFIER_EVENT:(async({cachedNullifiers:t,nullifierHash:e},[n])=>{try{const r=await self.$indexedDB.getFromIndex({key:e,indexName:"nullifier",storeName:"nullifier_events_100"});if(r)return void n.postMessage({result:r});const o=await E(t),[c]=o.filter(t=>t.nullifier===e);n.postMessage({result:c});}catch(t){n.postMessage({errorMessage:t.message});}})(data.payload,t);break;case f.UPDATE_NULLIFIER_EVENTS:(async(t,[e])=>{try{const n=await E(t);e.postMessage({result:n});}catch(t){e.postMessage({errorMessage:t.message});}})(data.payload,t);break;case f.GET_UNSPENT_EVENTS:(async({decryptedEvents:t,cachedNullifiers:e},[n])=>{try{const r=await T({decryptedEvents:t,cachedNullifiers:e});n.postMessage({result:r});}catch(t){n.postMessage({errorMessage:t.message});}})(data.payload,t);break;case f.GET_NULLIFIER_EVENTS_FROM_TX_HASH:(async({cachedNullifiers:t,txHash:e},[n])=>{try{const r=await self.$indexedDB.getAllFromIndex({key:e.toLowerCase(),indexName:"transactionHash",storeName:"nullifier_events_100"});if(r&&r.length>h.ZERO)return void n.postMessage({result:r});const o=(await E(t,!0)).filter(t=>t.transactionHash.toLowerCase()===e.toLowerCase());n.postMessage({result:o});}catch(t){n.postMessage({errorMessage:t.message});}})(data.payload,t);}},!1);},,,function(t,e,n){(function(t,r){var o;(function(){var c,l="Expected a function",f="__lodash_hash_undefined__",h="__lodash_placeholder__",d=16,m=32,y=64,v=128,w=256,_=1/0,A=9007199254740991,E=NaN,T=4294967295,O=[["ary",v],["bind",1],["bindKey",2],["curry",8],["curryRight",d],["flip",512],["partial",m],["partialRight",y],["rearg",w]],M="[object Arguments]",k="[object Array]",x="[object Boolean]",S="[object Date]",j="[object Error]",N="[object Function]",I="[object GeneratorFunction]",P="[object Map]",R="[object Number]",C="[object Object]",B="[object Promise]",L="[object RegExp]",F="[object Set]",D="[object String]",U="[object Symbol]",G="[object WeakMap]",z="[object ArrayBuffer]",H="[object DataView]",K="[object Float32Array]",W="[object Float64Array]",V="[object Int8Array]",J="[object Int16Array]",Y="[object Int32Array]",Q="[object Uint8Array]",X="[object Uint8ClampedArray]",Z="[object Uint16Array]",$="[object Uint32Array]",tt=/\b__p \+= '';/g,et=/\b(__p \+=) '' \+/g,nt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,it=/&(?:amp|lt|gt|quot|#39);/g,ot=/[&<>"']/g,at=RegExp(it.source),st=RegExp(ot.source),ut=/<%-([\s\S]+?)%>/g,ct=/<%([\s\S]+?)%>/g,lt=/<%=([\s\S]+?)%>/g,ft=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ht=/^\w*$/,pt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mt=/[\\^$.*+?()[\]{}|]/g,yt=RegExp(mt.source),gt=/^\s+/,bt=/\s/,vt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,wt=/\{\n\/\* \[wrapped with (.+)\] \*/,_t=/,? & /,At=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Et=/[()=,{}\[\]\/\s]/,Tt=/\\(\\)?/g,Ot=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Mt=/\w*$/,kt=/^[-+]0x[0-9a-f]+$/i,xt=/^0b[01]+$/i,St=/^\[object .+?Constructor\]$/,jt=/^0o[0-7]+$/i,Nt=/^(?:0|[1-9]\d*)$/,It=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Pt=/($^)/,Rt=/['\n\r\u2028\u2029\\]/g,Ct="\\ud800-\\udfff",Bt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Lt="\\u2700-\\u27bf",Ft="a-z\\xdf-\\xf6\\xf8-\\xff",Dt="A-Z\\xc0-\\xd6\\xd8-\\xde",Ut="\\ufe0e\\ufe0f",Gt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",zt="[']",Ht="["+Ct+"]",qt="["+Gt+"]",Kt="["+Bt+"]",Wt="\\d+",Vt="["+Lt+"]",Jt="["+Ft+"]",Yt="[^"+Ct+Gt+Wt+Lt+Ft+Dt+"]",Qt="\\ud83c[\\udffb-\\udfff]",Xt="[^"+Ct+"]",Zt="(?:\\ud83c[\\udde6-\\uddff]){2}",$t="[\\ud800-\\udbff][\\udc00-\\udfff]",te="["+Dt+"]",ee="\\u200d",ne="(?:"+Jt+"|"+Yt+")",re="(?:"+te+"|"+Yt+")",ie="(?:['](?:d|ll|m|re|s|t|ve))?",oe="(?:['](?:D|LL|M|RE|S|T|VE))?",ae="(?:"+Kt+"|"+Qt+")"+"?",se="["+Ut+"]?",ue=se+ae+("(?:"+ee+"(?:"+[Xt,Zt,$t].join("|")+")"+se+ae+")*"),ce="(?:"+[Vt,Zt,$t].join("|")+")"+ue,le="(?:"+[Xt+Kt+"?",Kt,Zt,$t,Ht].join("|")+")",fe=RegExp(zt,"g"),he=RegExp(Kt,"g"),de=RegExp(Qt+"(?="+Qt+")|"+le+ue,"g"),pe=RegExp([te+"?"+Jt+"+"+ie+"(?="+[qt,te,"$"].join("|")+")",re+"+"+oe+"(?="+[qt,te+ne,"$"].join("|")+")",te+"?"+ne+"+"+ie,te+"+"+oe,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Wt,ce].join("|"),"g"),me=RegExp("["+ee+Ct+Bt+Ut+"]"),ye=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ge=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],be=-1,ve={};ve[K]=ve[W]=ve[V]=ve[J]=ve[Y]=ve[Q]=ve[X]=ve[Z]=ve[$]=!0,ve[M]=ve[k]=ve[z]=ve[x]=ve[H]=ve[S]=ve[j]=ve[N]=ve[P]=ve[R]=ve[C]=ve[L]=ve[F]=ve[D]=ve[G]=!1;var we={};we[M]=we[k]=we[z]=we[H]=we[x]=we[S]=we[K]=we[W]=we[V]=we[J]=we[Y]=we[P]=we[R]=we[C]=we[L]=we[F]=we[D]=we[U]=we[Q]=we[X]=we[Z]=we[$]=!0,we[j]=we[N]=we[G]=!1;var _e={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ae=parseFloat,Ee=parseInt,Te="object"==typeof t&&t&&t.Object===Object&&t,Oe="object"==typeof self&&self&&self.Object===Object&&self,Me=Te||Oe||Function("return this")(),ke=e&&!e.nodeType&&e,xe=ke&&"object"==typeof r&&r&&!r.nodeType&&r,Se=xe&&xe.exports===ke,je=Se&&Te.process,Ne=function(){try{var t=xe&&xe.require&&xe.require("util").types;return t||je&&je.binding&&je.binding("util");}catch(t){}}(),Ie=Ne&&Ne.isArrayBuffer,Pe=Ne&&Ne.isDate,Re=Ne&&Ne.isMap,Ce=Ne&&Ne.isRegExp,Be=Ne&&Ne.isSet,Le=Ne&&Ne.isTypedArray;function Fe(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2]);}return t.apply(e,n);}function De(t,e,n,r){for(var o=-1,c=null==t?0:t.length;++o<c;){var l=t[o];e(r,l,n(l),t);}return r;}function Ue(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t;}function Ge(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t;}function ze(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0;}function He(t,e){for(var n=-1,r=null==t?0:t.length,o=0,c=[];++n<r;){var l=t[n];e(l,n,t)&&(c[o++]=l);}return c;}function qe(t,e){return!!(null==t?0:t.length)&&tn(t,e,0)>-1;}function Ke(t,e,n){for(var r=-1,o=null==t?0:t.length;++r<o;)if(n(e,t[r]))return!0;return!1;}function We(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o;}function Ve(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t;}function Je(t,e,n,r){var o=-1,c=null==t?0:t.length;for(r&&c&&(n=t[++o]);++o<c;)n=e(n,t[o],o,t);return n;}function Ye(t,e,n,r){var o=null==t?0:t.length;for(r&&o&&(n=t[--o]);o--;)n=e(n,t[o],o,t);return n;}function Qe(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1;}var Xe=on("length");function Ze(t,e,n){var r;return n(t,function(t,n,o){if(e(t,n,o))return r=n,!1;}),r;}function $e(t,e,n,r){for(var o=t.length,c=n+(r?1:-1);r?c--:++c<o;)if(e(t[c],c,t))return c;return-1;}function tn(t,e,n){return e==e?function(t,e,n){var r=n-1,o=t.length;for(;++r<o;)if(t[r]===e)return r;return-1;}(t,e,n):$e(t,nn,n);}function en(t,e,n,r){for(var o=n-1,c=t.length;++o<c;)if(r(t[o],e))return o;return-1;}function nn(t){return t!=t;}function rn(t,e){var n=null==t?0:t.length;return n?un(t,e)/n:E;}function on(t){return function(object){return null==object?c:object[t];};}function an(object){return function(t){return null==object?c:object[t];};}function sn(t,e,n,r,o){return o(t,function(t,o,c){n=r?(r=!1,t):e(n,t,o,c);}),n;}function un(t,e){for(var n,r=-1,o=t.length;++r<o;){var l=e(t[r]);l!==c&&(n=n===c?l:n+l);}return n;}function cn(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r;}function ln(t){return t?t.slice(0,kn(t)+1).replace(gt,""):t;}function fn(t){return function(e){return t(e);};}function hn(object,t){return We(t,function(t){return object[t];});}function dn(t,e){return t.has(e);}function pn(t,e){for(var n=-1,r=t.length;++n<r&&tn(e,t[n],0)>-1;);return n;}function mn(t,e){for(var n=t.length;n--&&tn(e,t[n],0)>-1;);return n;}var yn=an({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),gn=an({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function bn(t){return"\\"+_e[t];}function vn(t){return me.test(t);}function wn(map){var t=-1,e=Array(map.size);return map.forEach(function(n,r){e[++t]=[r,n];}),e;}function _n(t,e){return function(n){return t(e(n));};}function An(t,e){for(var n=-1,r=t.length,o=0,c=[];++n<r;){var l=t[n];l!==e&&l!==h||(t[n]=h,c[o++]=n);}return c;}function En(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t;}),n;}function Tn(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=[t,t];}),n;}function On(t){return vn(t)?function(t){var e=de.lastIndex=0;for(;de.test(t);)++e;return e;}(t):Xe(t);}function Mn(t){return vn(t)?function(t){return t.match(de)||[];}(t):function(t){return t.split("");}(t);}function kn(t){for(var e=t.length;e--&&bt.test(t.charAt(e)););return e;}var xn=an({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var Sn=function t(e){var n,r=(e=null==e?Me:Sn.defaults(Me.Object(),e,Sn.pick(Me,ge))).Array,o=e.Date,bt=e.Error,Ct=e.Function,Bt=e.Math,Lt=e.Object,Ft=e.RegExp,Dt=e.String,Ut=e.TypeError,Gt=r.prototype,zt=Ct.prototype,Ht=Lt.prototype,qt=e["__core-js_shared__"],Kt=zt.toString,Wt=Ht.hasOwnProperty,Vt=0,Jt=(n=/[^.]+$/.exec(qt&&qt.keys&&qt.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Yt=Ht.toString,Qt=Kt.call(Lt),Xt=Me._,Zt=Ft("^"+Kt.call(Wt).replace(mt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$t=Se?e.Buffer:c,te=e.Symbol,ee=e.Uint8Array,ne=$t?$t.allocUnsafe:c,re=_n(Lt.getPrototypeOf,Lt),ie=Lt.create,oe=Ht.propertyIsEnumerable,ae=Gt.splice,se=te?te.isConcatSpreadable:c,ue=te?te.iterator:c,ce=te?te.toStringTag:c,le=function(){try{var t=ko(Lt,"defineProperty");return t({},"",{}),t;}catch(t){}}(),de=e.clearTimeout!==Me.clearTimeout&&e.clearTimeout,me=o&&o.now!==Me.Date.now&&o.now,_e=e.setTimeout!==Me.setTimeout&&e.setTimeout,Te=Bt.ceil,Oe=Bt.floor,ke=Lt.getOwnPropertySymbols,xe=$t?$t.isBuffer:c,je=e.isFinite,Ne=Gt.join,Xe=_n(Lt.keys,Lt),an=Bt.max,jn=Bt.min,Nn=o.now,In=e.parseInt,Pn=Bt.random,Rn=Gt.reverse,Cn=ko(e,"DataView"),Bn=ko(e,"Map"),Ln=ko(e,"Promise"),Fn=ko(e,"Set"),Dn=ko(e,"WeakMap"),Un=ko(Lt,"create"),Gn=Dn&&new Dn(),zn={},Hn=$o(Cn),qn=$o(Bn),Kn=$o(Ln),Wn=$o(Fn),Vn=$o(Dn),Jn=te?te.prototype:c,Yn=Jn?Jn.valueOf:c,Qn=Jn?Jn.toString:c;function Xn(t){if(ps(t)&&!rs(t)&&!(t instanceof nr)){if(t instanceof er)return t;if(Wt.call(t,"__wrapped__"))return ta(t);}return new er(t);}var Zn=function(){function object(){}return function(t){if(!ds(t))return{};if(ie)return ie(t);object.prototype=t;var e=new object();return object.prototype=c,e;};}();function $n(){}function er(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=c;}function nr(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=T,this.__views__=[];}function rr(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1]);}}function ir(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1]);}}function or(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1]);}}function ar(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new or();++e<n;)this.add(t[e]);}function sr(t){var data=this.__data__=new ir(t);this.size=data.size;}function ur(t,e){var n=rs(t),r=!n&&ns(t),o=!n&&!r&&ss(t),c=!n&&!r&&!o&&As(t),l=n||r||o||c,f=l?cn(t.length,Dt):[],h=f.length;for(var d in t)!e&&!Wt.call(t,d)||l&&("length"==d||o&&("offset"==d||"parent"==d)||c&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||Ro(d,h))||f.push(d);return f;}function cr(t){var e=t.length;return e?t[ui(0,e-1)]:c;}function lr(t,e){return Qo(qi(t),_r(e,0,t.length));}function fr(t){return Qo(qi(t));}function dr(object,t,e){(e!==c&&!$a(object[t],e)||e===c&&!(t in object))&&vr(object,t,e);}function pr(object,t,e){var n=object[t];Wt.call(object,t)&&$a(n,e)&&(e!==c||t in object)||vr(object,t,e);}function mr(t,e){for(var n=t.length;n--;)if($a(t[n][0],e))return n;return-1;}function yr(t,e,n,r){return Mr(t,function(t,o,c){e(r,t,n(t),c);}),r;}function gr(object,source){return object&&Ki(source,qs(source),object);}function vr(object,t,e){"__proto__"==t&&le?le(object,t,{configurable:!0,enumerable:!0,value:e,writable:!0}):object[t]=e;}function wr(object,t){for(var e=-1,n=t.length,o=r(n),l=null==object;++e<n;)o[e]=l?c:Ds(object,t[e]);return o;}function _r(t,e,n){return t==t&&(n!==c&&(t=t<=n?t:n),e!==c&&(t=t>=e?t:e)),t;}function Ar(t,e,n,r,object,o){var l,f=1&e,h=2&e,d=4&e;if(n&&(l=object?n(t,r,object,o):n(t)),l!==c)return l;if(!ds(t))return t;var m=rs(t);if(m){if(l=function(t){var e=t.length,n=new t.constructor(e);e&&"string"==typeof t[0]&&Wt.call(t,"index")&&(n.index=t.index,n.input=t.input);return n;}(t),!f)return qi(t,l);}else{var y=jo(t),v=y==N||y==I;if(ss(t))return Fi(t,f);if(y==C||y==M||v&&!object){if(l=h||v?{}:Io(t),!f)return h?function(source,object){return Ki(source,So(source),object);}(t,function(object,source){return object&&Ki(source,Ks(source),object);}(l,t)):function(source,object){return Ki(source,xo(source),object);}(t,gr(l,t));}else{if(!we[y])return object?t:{};l=function(object,t,e){var n=object.constructor;switch(t){case z:return Di(object);case x:case S:return new n(+object);case H:return function(t,e){var n=e?Di(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength);}(object,e);case K:case W:case V:case J:case Y:case Q:case X:case Z:case $:return Ui(object,e);case P:return new n();case R:case D:return new n(object);case L:return function(t){var e=new t.constructor(t.source,Mt.exec(t));return e.lastIndex=t.lastIndex,e;}(object);case F:return new n();case U:return symbol=object,Yn?Lt(Yn.call(symbol)):{};}var symbol;}(t,y,f);}}o||(o=new sr());var w=o.get(t);if(w)return w;o.set(t,l),vs(t)?t.forEach(function(r){l.add(Ar(r,e,n,r,t,o));}):ms(t)&&t.forEach(function(r,c){l.set(c,Ar(r,e,n,c,t,o));});var _=m?c:(d?h?wo:vo:h?Ks:qs)(t);return Ue(_||t,function(r,c){_&&(r=t[c=r]),pr(l,c,Ar(r,e,n,c,t,o));}),l;}function Er(object,source,t){var e=t.length;if(null==object)return!e;for(object=Lt(object);e--;){var n=t[e],r=source[n],o=object[n];if(o===c&&!(n in object)||!r(o))return!1;}return!0;}function Tr(t,e,n){if("function"!=typeof t)throw new Ut(l);return Wo(function(){t.apply(c,n);},e);}function Or(t,e,n,r){var o=-1,c=qe,l=!0,f=t.length,h=[],d=e.length;if(!f)return h;n&&(e=We(e,fn(n))),r?(c=Ke,l=!1):e.length>=200&&(c=dn,l=!1,e=new ar(e));t:for(;++o<f;){var m=t[o],y=null==n?m:n(m);if(m=r||0!==m?m:0,l&&y==y){for(var v=d;v--;)if(e[v]===y)continue t;h.push(m);}else c(e,y,r)||h.push(m);}return h;}Xn.templateSettings={escape:ut,evaluate:ct,interpolate:lt,variable:"",imports:{_:Xn}},Xn.prototype=$n.prototype,Xn.prototype.constructor=Xn,er.prototype=Zn($n.prototype),er.prototype.constructor=er,nr.prototype=Zn($n.prototype),nr.prototype.constructor=nr,rr.prototype.clear=function(){this.__data__=Un?Un(null):{},this.size=0;},rr.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e;},rr.prototype.get=function(t){var data=this.__data__;if(Un){var e=data[t];return e===f?c:e;}return Wt.call(data,t)?data[t]:c;},rr.prototype.has=function(t){var data=this.__data__;return Un?data[t]!==c:Wt.call(data,t);},rr.prototype.set=function(t,e){var data=this.__data__;return this.size+=this.has(t)?0:1,data[t]=Un&&e===c?f:e,this;},ir.prototype.clear=function(){this.__data__=[],this.size=0;},ir.prototype.delete=function(t){var data=this.__data__,e=mr(data,t);return!(e<0)&&(e==data.length-1?data.pop():ae.call(data,e,1),--this.size,!0);},ir.prototype.get=function(t){var data=this.__data__,e=mr(data,t);return e<0?c:data[e][1];},ir.prototype.has=function(t){return mr(this.__data__,t)>-1;},ir.prototype.set=function(t,e){var data=this.__data__,n=mr(data,t);return n<0?(++this.size,data.push([t,e])):data[n][1]=e,this;},or.prototype.clear=function(){this.size=0,this.__data__={hash:new rr(),map:new(Bn||ir)(),string:new rr()};},or.prototype.delete=function(t){var e=Oo(this,t).delete(t);return this.size-=e?1:0,e;},or.prototype.get=function(t){return Oo(this,t).get(t);},or.prototype.has=function(t){return Oo(this,t).has(t);},or.prototype.set=function(t,e){var data=Oo(this,t),n=data.size;return data.set(t,e),this.size+=data.size==n?0:1,this;},ar.prototype.add=ar.prototype.push=function(t){return this.__data__.set(t,f),this;},ar.prototype.has=function(t){return this.__data__.has(t);},sr.prototype.clear=function(){this.__data__=new ir(),this.size=0;},sr.prototype.delete=function(t){var data=this.__data__,e=data.delete(t);return this.size=data.size,e;},sr.prototype.get=function(t){return this.__data__.get(t);},sr.prototype.has=function(t){return this.__data__.has(t);},sr.prototype.set=function(t,e){var data=this.__data__;if(data instanceof ir){var n=data.__data__;if(!Bn||n.length<199)return n.push([t,e]),this.size=++data.size,this;data=this.__data__=new or(n);}return data.set(t,e),this.size=data.size,this;};var Mr=Ji(Rr),kr=Ji(Cr,!0);function xr(t,e){var n=!0;return Mr(t,function(t,r,o){return n=!!e(t,r,o);}),n;}function Sr(t,e,n){for(var r=-1,o=t.length;++r<o;){var l=t[r],f=e(l);if(null!=f&&(h===c?f==f&&!_s(f):n(f,h)))var h=f,d=l;}return d;}function jr(t,e){var n=[];return Mr(t,function(t,r,o){e(t,r,o)&&n.push(t);}),n;}function Nr(t,e,n,r,o){var c=-1,l=t.length;for(n||(n=Po),o||(o=[]);++c<l;){var f=t[c];e>0&&n(f)?e>1?Nr(f,e-1,n,r,o):Ve(o,f):r||(o[o.length]=f);}return o;}var Ir=Yi(),Pr=Yi(!0);function Rr(object,t){return object&&Ir(object,t,qs);}function Cr(object,t){return object&&Pr(object,t,qs);}function Br(object,t){return He(t,function(t){return ls(object[t]);});}function Lr(object,path){for(var t=0,e=(path=Ri(path,object)).length;null!=object&&t<e;)object=object[Zo(path[t++])];return t&&t==e?object:c;}function Fr(object,t,e){var n=t(object);return rs(object)?n:Ve(n,e(object));}function Dr(t){return null==t?t===c?"[object Undefined]":"[object Null]":ce&&ce in Lt(t)?function(t){var e=Wt.call(t,ce),n=t[ce];try{t[ce]=c;var r=!0;}catch(t){}var o=Yt.call(t);r&&(e?t[ce]=n:delete t[ce]);return o;}(t):function(t){return Yt.call(t);}(t);}function Ur(t,e){return t>e;}function Gr(object,t){return null!=object&&Wt.call(object,t);}function zr(object,t){return null!=object&&t in Lt(object);}function Hr(t,e,n){for(var o=n?Ke:qe,l=t[0].length,f=t.length,h=f,d=r(f),m=1/0,y=[];h--;){var v=t[h];h&&e&&(v=We(v,fn(e))),m=jn(v.length,m),d[h]=!n&&(e||l>=120&&v.length>=120)?new ar(h&&v):c;}v=t[0];var w=-1,_=d[0];t:for(;++w<l&&y.length<m;){var A=v[w],E=e?e(A):A;if(A=n||0!==A?A:0,!(_?dn(_,E):o(y,E,n))){for(h=f;--h;){var T=d[h];if(!(T?dn(T,E):o(t[h],E,n)))continue t;}_&&_.push(E),y.push(A);}}return y;}function qr(object,path,t){var e=null==(object=Ho(object,path=Ri(path,object)))?object:object[Zo(la(path))];return null==e?c:Fe(e,object,t);}function Kr(t){return ps(t)&&Dr(t)==M;}function Wr(t,e,n,r,o){return t===e||(null==t||null==e||!ps(t)&&!ps(e)?t!=t&&e!=e:function(object,t,e,n,r,o){var l=rs(object),f=rs(t),h=l?k:jo(object),d=f?k:jo(t),m=(h=h==M?C:h)==C,y=(d=d==M?C:d)==C,v=h==d;if(v&&ss(object)){if(!ss(t))return!1;l=!0,m=!1;}if(v&&!m)return o||(o=new sr()),l||As(object)?go(object,t,e,n,r,o):function(object,t,e,n,r,o,c){switch(e){case H:if(object.byteLength!=t.byteLength||object.byteOffset!=t.byteOffset)return!1;object=object.buffer,t=t.buffer;case z:return!(object.byteLength!=t.byteLength||!o(new ee(object),new ee(t)));case x:case S:case R:return $a(+object,+t);case j:return object.name==t.name&&object.message==t.message;case L:case D:return object==t+"";case P:var l=wn;case F:var f=1&n;if(l||(l=En),object.size!=t.size&&!f)return!1;var h=c.get(object);if(h)return h==t;n|=2,c.set(object,t);var d=go(l(object),l(t),n,r,o,c);return c.delete(object),d;case U:if(Yn)return Yn.call(object)==Yn.call(t);}return!1;}(object,t,h,e,n,r,o);if(!(1&e)){var w=m&&Wt.call(object,"__wrapped__"),_=y&&Wt.call(t,"__wrapped__");if(w||_){var A=w?object.value():object,E=_?t.value():t;return o||(o=new sr()),r(A,E,e,n,o);}}if(!v)return!1;return o||(o=new sr()),function(object,t,e,n,r,o){var l=1&e,f=vo(object),h=f.length,d=vo(t),m=d.length;if(h!=m&&!l)return!1;var y=h;for(;y--;){var v=f[y];if(!(l?v in t:Wt.call(t,v)))return!1;}var w=o.get(object),_=o.get(t);if(w&&_)return w==t&&_==object;var A=!0;o.set(object,t),o.set(t,object);var E=l;for(;++y<h;){var T=object[v=f[y]],O=t[v];if(n)var M=l?n(O,T,v,t,object,o):n(T,O,v,object,t,o);if(!(M===c?T===O||r(T,O,e,n,o):M)){A=!1;break;}E||(E="constructor"==v);}if(A&&!E){var k=object.constructor,x=t.constructor;k==x||!("constructor"in object)||!("constructor"in t)||"function"==typeof k&&k instanceof k&&"function"==typeof x&&x instanceof x||(A=!1);}return o.delete(object),o.delete(t),A;}(object,t,e,n,r,o);}(t,e,n,r,Wr,o));}function Vr(object,source,t,e){var n=t.length,r=n,o=!e;if(null==object)return!r;for(object=Lt(object);n--;){var data=t[n];if(o&&data[2]?data[1]!==object[data[0]]:!(data[0]in object))return!1;}for(;++n<r;){var l=(data=t[n])[0],f=object[l],h=data[1];if(o&&data[2]){if(f===c&&!(l in object))return!1;}else{var d=new sr();if(e)var m=e(f,h,l,object,source,d);if(!(m===c?Wr(h,f,3,e,d):m))return!1;}}return!0;}function Jr(t){return!(!ds(t)||(e=t,Jt&&Jt in e))&&(ls(t)?Zt:St).test($o(t));var e;}function Yr(t){return"function"==typeof t?t:null==t?yu:"object"==typeof t?rs(t)?ei(t[0],t[1]):ti(t):Ou(t);}function Qr(object){if(!Do(object))return Xe(object);var t=[];for(var e in Lt(object))Wt.call(object,e)&&"constructor"!=e&&t.push(e);return t;}function Xr(object){if(!ds(object))return function(object){var t=[];if(null!=object)for(var e in Lt(object))t.push(e);return t;}(object);var t=Do(object),e=[];for(var n in object)("constructor"!=n||!t&&Wt.call(object,n))&&e.push(n);return e;}function Zr(t,e){return t<e;}function $r(t,e){var n=-1,o=os(t)?r(t.length):[];return Mr(t,function(t,r,c){o[++n]=e(t,r,c);}),o;}function ti(source){var t=Mo(source);return 1==t.length&&t[0][2]?Go(t[0][0],t[0][1]):function(object){return object===source||Vr(object,source,t);};}function ei(path,t){return Bo(path)&&Uo(t)?Go(Zo(path),t):function(object){var e=Ds(object,path);return e===c&&e===t?Us(object,path):Wr(t,e,3);};}function ni(object,source,t,e,n){object!==source&&Ir(source,function(r,o){if(n||(n=new sr()),ds(r))!function(object,source,t,e,n,r,o){var l=qo(object,t),f=qo(source,t),h=o.get(f);if(h)return void dr(object,t,h);var d=r?r(l,f,t+"",object,source,o):c,m=d===c;if(m){var y=rs(f),v=!y&&ss(f),w=!y&&!v&&As(f);d=f,y||v||w?rs(l)?d=l:as(l)?d=qi(l):v?(m=!1,d=Fi(f,!0)):w?(m=!1,d=Ui(f,!0)):d=[]:gs(f)||ns(f)?(d=l,ns(l)?d=js(l):ds(l)&&!ls(l)||(d=Io(f))):m=!1;}m&&(o.set(f,d),n(d,f,e,r,o),o.delete(f));dr(object,t,d);}(object,source,o,t,ni,e,n);else{var l=e?e(qo(object,o),r,o+"",object,source,n):c;l===c&&(l=r),dr(object,o,l);}},Ks);}function ri(t,e){var n=t.length;if(n)return Ro(e+=e<0?n:0,n)?t[e]:c;}function ii(t,e,n){e=e.length?We(e,function(t){return rs(t)?function(e){return Lr(e,1===t.length?t[0]:t);}:t;}):[yu];var r=-1;e=We(e,fn(To()));var o=$r(t,function(t,n,o){var c=We(e,function(e){return e(t);});return{criteria:c,index:++r,value:t};});return function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t;}(o,function(object,t){return function(object,t,e){var n=-1,r=object.criteria,o=t.criteria,c=r.length,l=e.length;for(;++n<c;){var f=Gi(r[n],o[n]);if(f)return n>=l?f:f*("desc"==e[n]?-1:1);}return object.index-t.index;}(object,t,n);});}function oi(object,t,e){for(var n=-1,r=t.length,o={};++n<r;){var path=t[n],c=Lr(object,path);e(c,path)&&pi(o,Ri(path,object),c);}return o;}function ai(t,e,n,r){var o=r?en:tn,c=-1,l=e.length,f=t;for(t===e&&(e=qi(e)),n&&(f=We(t,fn(n)));++c<l;)for(var h=0,d=e[c],m=n?n(d):d;(h=o(f,m,h,r))>-1;)f!==t&&ae.call(f,h,1),ae.call(t,h,1);return t;}function si(t,e){for(var n=t?e.length:0,r=n-1;n--;){var o=e[n];if(n==r||o!==c){var c=o;Ro(o)?ae.call(t,o,1):Mi(t,o);}}return t;}function ui(t,e){return t+Oe(Pn()*(e-t+1));}function ci(t,e){var n="";if(!t||e<1||e>A)return n;do{e%2&&(n+=t),(e=Oe(e/2))&&(t+=t);}while(e);return n;}function fi(t,e){return Vo(zo(t,e,yu),t+"");}function hi(t){return cr($s(t));}function di(t,e){var n=$s(t);return Qo(n,_r(e,0,n.length));}function pi(object,path,t,e){if(!ds(object))return object;for(var n=-1,r=(path=Ri(path,object)).length,o=r-1,l=object;null!=l&&++n<r;){var f=Zo(path[n]),h=t;if("__proto__"===f||"constructor"===f||"prototype"===f)return object;if(n!=o){var d=l[f];(h=e?e(d,f,l):c)===c&&(h=ds(d)?d:Ro(path[n+1])?[]:{});}pr(l,f,h),l=l[f];}return object;}var mi=Gn?function(t,data){return Gn.set(t,data),t;}:yu,yi=le?function(t,e){return le(t,"toString",{configurable:!0,enumerable:!1,value:du(e),writable:!0});}:yu;function gi(t){return Qo($s(t));}function bi(t,e,n){var o=-1,c=t.length;e<0&&(e=-e>c?0:c+e),(n=n>c?c:n)<0&&(n+=c),c=e>n?0:n-e>>>0,e>>>=0;for(var l=r(c);++o<c;)l[o]=t[o+e];return l;}function vi(t,e){var n;return Mr(t,function(t,r,o){return!(n=e(t,r,o));}),!!n;}function wi(t,e,n){var r=0,o=null==t?r:t.length;if("number"==typeof e&&e==e&&o<=2147483647){for(;r<o;){var c=r+o>>>1,l=t[c];null!==l&&!_s(l)&&(n?l<=e:l<e)?r=c+1:o=c;}return o;}return _i(t,e,yu,n);}function _i(t,e,n,r){var o=0,l=null==t?0:t.length;if(0===l)return 0;for(var f=(e=n(e))!=e,h=null===e,d=_s(e),m=e===c;o<l;){var y=Oe((o+l)/2),v=n(t[y]),w=v!==c,_=null===v,A=v==v,E=_s(v);if(f)var T=r||A;else T=m?A&&(r||w):h?A&&w&&(r||!_):d?A&&w&&!_&&(r||!E):!_&&!E&&(r?v<=e:v<e);T?o=y+1:l=y;}return jn(l,4294967294);}function Ai(t,e){for(var n=-1,r=t.length,o=0,c=[];++n<r;){var l=t[n],f=e?e(l):l;if(!n||!$a(f,h)){var h=f;c[o++]=0===l?0:l;}}return c;}function Ei(t){return"number"==typeof t?t:_s(t)?E:+t;}function Ti(t){if("string"==typeof t)return t;if(rs(t))return We(t,Ti)+"";if(_s(t))return Qn?Qn.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e;}function Oi(t,e,n){var r=-1,o=qe,c=t.length,l=!0,f=[],h=f;if(n)l=!1,o=Ke;else if(c>=200){var d=e?null:lo(t);if(d)return En(d);l=!1,o=dn,h=new ar();}else h=e?[]:f;t:for(;++r<c;){var m=t[r],y=e?e(m):m;if(m=n||0!==m?m:0,l&&y==y){for(var v=h.length;v--;)if(h[v]===y)continue t;e&&h.push(y),f.push(m);}else o(h,y,n)||(h!==f&&h.push(y),f.push(m));}return f;}function Mi(object,path){return null==(object=Ho(object,path=Ri(path,object)))||delete object[Zo(la(path))];}function ki(object,path,t,e){return pi(object,path,t(Lr(object,path)),e);}function xi(t,e,n,r){for(var o=t.length,c=r?o:-1;(r?c--:++c<o)&&e(t[c],c,t););return n?bi(t,r?0:c,r?c+1:o):bi(t,r?c+1:0,r?o:c);}function Si(t,e){var n=t;return n instanceof nr&&(n=n.value()),Je(e,function(t,e){return e.func.apply(e.thisArg,Ve([t],e.args));},n);}function ji(t,e,n){var o=t.length;if(o<2)return o?Oi(t[0]):[];for(var c=-1,l=r(o);++c<o;)for(var f=t[c],h=-1;++h<o;)h!=c&&(l[c]=Or(l[c]||f,t[h],e,n));return Oi(Nr(l,1),e,n);}function Ni(t,e,n){for(var r=-1,o=t.length,l=e.length,f={};++r<o;){var h=r<l?e[r]:c;n(f,t[r],h);}return f;}function Ii(t){return as(t)?t:[];}function Pi(t){return"function"==typeof t?t:yu;}function Ri(t,object){return rs(t)?t:Bo(t,object)?[t]:Xo(Ns(t));}var Ci=fi;function Bi(t,e,n){var r=t.length;return n=n===c?r:n,!e&&n>=r?t:bi(t,e,n);}var Li=de||function(t){return Me.clearTimeout(t);};function Fi(t,e){if(e)return t.slice();var n=t.length,r=ne?ne(n):new t.constructor(n);return t.copy(r),r;}function Di(t){var e=new t.constructor(t.byteLength);return new ee(e).set(new ee(t)),e;}function Ui(t,e){var n=e?Di(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length);}function Gi(t,e){if(t!==e){var n=t!==c,r=null===t,o=t==t,l=_s(t),f=e!==c,h=null===e,d=e==e,m=_s(e);if(!h&&!m&&!l&&t>e||l&&f&&d&&!h&&!m||r&&f&&d||!n&&d||!o)return 1;if(!r&&!l&&!m&&t<e||m&&n&&o&&!r&&!l||h&&n&&o||!f&&o||!d)return-1;}return 0;}function zi(t,e,n,o){for(var c=-1,l=t.length,f=n.length,h=-1,d=e.length,m=an(l-f,0),y=r(d+m),v=!o;++h<d;)y[h]=e[h];for(;++c<f;)(v||c<l)&&(y[n[c]]=t[c]);for(;m--;)y[h++]=t[c++];return y;}function Hi(t,e,n,o){for(var c=-1,l=t.length,f=-1,h=n.length,d=-1,m=e.length,y=an(l-h,0),v=r(y+m),w=!o;++c<y;)v[c]=t[c];for(var _=c;++d<m;)v[_+d]=e[d];for(;++f<h;)(w||c<l)&&(v[_+n[f]]=t[c++]);return v;}function qi(source,t){var e=-1,n=source.length;for(t||(t=r(n));++e<n;)t[e]=source[e];return t;}function Ki(source,t,object,e){var n=!object;object||(object={});for(var r=-1,o=t.length;++r<o;){var l=t[r],f=e?e(object[l],source[l],l,object,source):c;f===c&&(f=source[l]),n?vr(object,l,f):pr(object,l,f);}return object;}function Wi(t,e){return function(n,r){var o=rs(n)?De:yr,c=e?e():{};return o(n,t,To(r,2),c);};}function Vi(t){return fi(function(object,e){var n=-1,r=e.length,o=r>1?e[r-1]:c,l=r>2?e[2]:c;for(o=t.length>3&&"function"==typeof o?(r--,o):c,l&&Co(e[0],e[1],l)&&(o=r<3?c:o,r=1),object=Lt(object);++n<r;){var source=e[n];source&&t(object,source,n,o);}return object;});}function Ji(t,e){return function(n,r){if(null==n)return n;if(!os(n))return t(n,r);for(var o=n.length,c=e?o:-1,l=Lt(n);(e?c--:++c<o)&&!1!==r(l[c],c,l););return n;};}function Yi(t){return function(object,e,n){for(var r=-1,o=Lt(object),c=n(object),l=c.length;l--;){var f=c[t?l:++r];if(!1===e(o[f],f,o))break;}return object;};}function Qi(t){return function(e){var n=vn(e=Ns(e))?Mn(e):c,r=n?n[0]:e.charAt(0),o=n?Bi(n,1).join(""):e.slice(1);return r[t]()+o;};}function Xi(t){return function(e){return Je(lu(nu(e).replace(fe,"")),t,"");};}function Zi(t){return function(){var e=arguments;switch(e.length){case 0:return new t();case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6]);}var n=Zn(t.prototype),r=t.apply(n,e);return ds(r)?r:n;};}function $i(t){return function(e,n,r){var o=Lt(e);if(!os(e)){var l=To(n,3);e=qs(e),n=function(t){return l(o[t],t,o);};}var f=t(e,n,r);return f>-1?o[l?e[f]:f]:c;};}function to(t){return bo(function(e){var n=e.length,r=n,o=er.prototype.thru;for(t&&e.reverse();r--;){var f=e[r];if("function"!=typeof f)throw new Ut(l);if(o&&!h&&"wrapper"==Ao(f))var h=new er([],!0);}for(r=h?r:n;++r<n;){var d=Ao(f=e[r]),data="wrapper"==d?_o(f):c;h=data&&Lo(data[0])&&424==data[1]&&!data[4].length&&1==data[9]?h[Ao(data[0])].apply(h,data[3]):1==f.length&&Lo(f)?h[d]():h.thru(f);}return function(){var t=arguments,r=t[0];if(h&&1==t.length&&rs(r))return h.plant(r).value();for(var o=0,c=n?e[o].apply(this,t):r;++o<n;)c=e[o].call(this,c);return c;};});}function eo(t,e,n,o,l,f,h,d,m,y){var w=e&v,_=1&e,A=2&e,E=24&e,T=512&e,O=A?c:Zi(t);return function v(){for(var M=arguments.length,k=r(M),x=M;x--;)k[x]=arguments[x];if(E)var S=Eo(v),j=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r;}(k,S);if(o&&(k=zi(k,o,l,E)),f&&(k=Hi(k,f,h,E)),M-=j,E&&M<y){var N=An(k,S);return uo(t,e,eo,v.placeholder,n,k,N,d,m,y-M);}var I=_?n:this,P=A?I[t]:t;return M=k.length,d?k=function(t,e){var n=t.length,r=jn(e.length,n),o=qi(t);for(;r--;){var l=e[r];t[r]=Ro(l,n)?o[l]:c;}return t;}(k,d):T&&M>1&&k.reverse(),w&&m<M&&(k.length=m),this&&this!==Me&&this instanceof v&&(P=O||Zi(P)),P.apply(I,k);};}function no(t,e){return function(object,n){return function(object,t,e,n){return Rr(object,function(r,o,object){t(n,e(r),o,object);}),n;}(object,t,e(n),{});};}function ro(t,e){return function(n,r){var o;if(n===c&&r===c)return e;if(n!==c&&(o=n),r!==c){if(o===c)return r;"string"==typeof n||"string"==typeof r?(n=Ti(n),r=Ti(r)):(n=Ei(n),r=Ei(r)),o=t(n,r);}return o;};}function io(t){return bo(function(e){return e=We(e,fn(To())),fi(function(n){var r=this;return t(e,function(t){return Fe(t,r,n);});});});}function oo(t,e){var n=(e=e===c?" ":Ti(e)).length;if(n<2)return n?ci(e,t):e;var r=ci(e,Te(t/On(e)));return vn(e)?Bi(Mn(r),0,t).join(""):r.slice(0,t);}function ao(t){return function(e,n,o){return o&&"number"!=typeof o&&Co(e,n,o)&&(n=o=c),e=Ms(e),n===c?(n=e,e=0):n=Ms(n),function(t,e,n,o){for(var c=-1,l=an(Te((e-t)/(n||1)),0),f=r(l);l--;)f[o?l:++c]=t,t+=n;return f;}(e,n,o=o===c?e<n?1:-1:Ms(o),t);};}function so(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=Ss(e),n=Ss(n)),t(e,n);};}function uo(t,e,n,r,o,l,f,h,d,v){var w=8&e;e|=w?m:y,4&(e&=~(w?y:m))||(e&=-4);var _=[t,e,o,w?l:c,w?f:c,w?c:l,w?c:f,h,d,v],A=n.apply(c,_);return Lo(t)&&Ko(A,_),A.placeholder=r,Jo(A,t,e);}function co(t){var e=Bt[t];return function(t,n){if(t=Ss(t),(n=null==n?0:jn(ks(n),292))&&je(t)){var r=(Ns(t)+"e").split("e");return+((r=(Ns(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n));}return e(t);};}var lo=Fn&&1/En(new Fn([,-0]))[1]==_?function(t){return new Fn(t);}:_u;function fo(t){return function(object){var e=jo(object);return e==P?wn(object):e==F?Tn(object):function(object,t){return We(t,function(t){return[t,object[t]];});}(object,t(object));};}function ho(t,e,n,o,f,_,A,E){var T=2&e;if(!T&&"function"!=typeof t)throw new Ut(l);var O=o?o.length:0;if(O||(e&=-97,o=f=c),A=A===c?A:an(ks(A),0),E=E===c?E:ks(E),O-=f?f.length:0,e&y){var M=o,k=f;o=f=c;}var data=T?c:_o(t),x=[t,e,n,o,f,M,k,_,A,E];if(data&&function(data,source){var t=data[1],e=source[1],n=t|e,r=n<131,o=e==v&&8==t||e==v&&t==w&&data[7].length<=source[8]||384==e&&source[7].length<=source[8]&&8==t;if(!r&&!o)return data;1&e&&(data[2]=source[2],n|=1&t?0:4);var c=source[3];if(c){var l=data[3];data[3]=l?zi(l,c,source[4]):c,data[4]=l?An(data[3],h):source[4];}(c=source[5])&&(l=data[5],data[5]=l?Hi(l,c,source[6]):c,data[6]=l?An(data[5],h):source[6]);(c=source[7])&&(data[7]=c);e&v&&(data[8]=null==data[8]?source[8]:jn(data[8],source[8]));null==data[9]&&(data[9]=source[9]);data[0]=source[0],data[1]=n;}(x,data),t=x[0],e=x[1],n=x[2],o=x[3],f=x[4],!(E=x[9]=x[9]===c?T?0:t.length:an(x[9]-O,0))&&24&e&&(e&=-25),e&&1!=e)S=8==e||e==d?function(t,e,n){var o=Zi(t);return function l(){for(var f=arguments.length,h=r(f),d=f,m=Eo(l);d--;)h[d]=arguments[d];var y=f<3&&h[0]!==m&&h[f-1]!==m?[]:An(h,m);return(f-=y.length)<n?uo(t,e,eo,l.placeholder,c,h,y,c,c,n-f):Fe(this&&this!==Me&&this instanceof l?o:t,this,h);};}(t,e,E):e!=m&&33!=e||f.length?eo.apply(c,x):function(t,e,n,o){var c=1&e,l=Zi(t);return function e(){for(var f=-1,h=arguments.length,d=-1,m=o.length,y=r(m+h),v=this&&this!==Me&&this instanceof e?l:t;++d<m;)y[d]=o[d];for(;h--;)y[d++]=arguments[++f];return Fe(v,c?n:this,y);};}(t,e,n,o);else var S=function(t,e,n){var r=1&e,o=Zi(t);return function e(){return(this&&this!==Me&&this instanceof e?o:t).apply(r?n:this,arguments);};}(t,e,n);return Jo((data?mi:Ko)(S,x),t,e);}function po(t,e,n,object){return t===c||$a(t,Ht[n])&&!Wt.call(object,n)?e:t;}function mo(t,e,n,object,source,r){return ds(t)&&ds(e)&&(r.set(e,t),ni(t,e,c,mo,r),r.delete(e)),t;}function yo(t){return gs(t)?c:t;}function go(t,e,n,r,o,l){var f=1&n,h=t.length,d=e.length;if(h!=d&&!(f&&d>h))return!1;var m=l.get(t),y=l.get(e);if(m&&y)return m==e&&y==t;var v=-1,w=!0,_=2&n?new ar():c;for(l.set(t,e),l.set(e,t);++v<h;){var A=t[v],E=e[v];if(r)var T=f?r(E,A,v,e,t,l):r(A,E,v,t,e,l);if(T!==c){if(T)continue;w=!1;break;}if(_){if(!Qe(e,function(t,e){if(!dn(_,e)&&(A===t||o(A,t,n,r,l)))return _.push(e);})){w=!1;break;}}else if(A!==E&&!o(A,E,n,r,l)){w=!1;break;}}return l.delete(t),l.delete(e),w;}function bo(t){return Vo(zo(t,c,aa),t+"");}function vo(object){return Fr(object,qs,xo);}function wo(object){return Fr(object,Ks,So);}var _o=Gn?function(t){return Gn.get(t);}:_u;function Ao(t){for(var e=t.name+"",n=zn[e],r=Wt.call(zn,e)?n.length:0;r--;){var data=n[r],o=data.func;if(null==o||o==t)return data.name;}return e;}function Eo(t){return(Wt.call(Xn,"placeholder")?Xn:t).placeholder;}function To(){var t=Xn.iteratee||gu;return t=t===gu?Yr:t,arguments.length?t(arguments[0],arguments[1]):t;}function Oo(map,t){var e,n,data=map.__data__;return("string"==(n=typeof(e=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==e:null===e)?data["string"==typeof t?"string":"hash"]:data.map;}function Mo(object){for(var t=qs(object),e=t.length;e--;){var n=t[e],r=object[n];t[e]=[n,r,Uo(r)];}return t;}function ko(object,t){var e=function(object,t){return null==object?c:object[t];}(object,t);return Jr(e)?e:c;}var xo=ke?function(object){return null==object?[]:(object=Lt(object),He(ke(object),function(symbol){return oe.call(object,symbol);}));}:xu,So=ke?function(object){for(var t=[];object;)Ve(t,xo(object)),object=re(object);return t;}:xu,jo=Dr;function No(object,path,t){for(var e=-1,n=(path=Ri(path,object)).length,r=!1;++e<n;){var o=Zo(path[e]);if(!(r=null!=object&&t(object,o)))break;object=object[o];}return r||++e!=n?r:!!(n=null==object?0:object.length)&&hs(n)&&Ro(o,n)&&(rs(object)||ns(object));}function Io(object){return"function"!=typeof object.constructor||Do(object)?{}:Zn(re(object));}function Po(t){return rs(t)||ns(t)||!!(se&&t&&t[se]);}function Ro(t,e){var n=typeof t;return!!(e=null==e?A:e)&&("number"==n||"symbol"!=n&&Nt.test(t))&&t>-1&&t%1==0&&t<e;}function Co(t,e,object){if(!ds(object))return!1;var n=typeof e;return!!("number"==n?os(object)&&Ro(e,object.length):"string"==n&&e in object)&&$a(object[e],t);}function Bo(t,object){if(rs(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!_s(t))||ht.test(t)||!ft.test(t)||null!=object&&t in Lt(object);}function Lo(t){var e=Ao(t),n=Xn[e];if("function"!=typeof n||!(e in nr.prototype))return!1;if(t===n)return!0;var data=_o(n);return!!data&&t===data[0];}(Cn&&jo(new Cn(new ArrayBuffer(1)))!=H||Bn&&jo(new Bn())!=P||Ln&&jo(Ln.resolve())!=B||Fn&&jo(new Fn())!=F||Dn&&jo(new Dn())!=G)&&(jo=function(t){var e=Dr(t),n=e==C?t.constructor:c,r=n?$o(n):"";if(r)switch(r){case Hn:return H;case qn:return P;case Kn:return B;case Wn:return F;case Vn:return G;}return e;});var Fo=qt?ls:Su;function Do(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Ht);}function Uo(t){return t==t&&!ds(t);}function Go(t,e){return function(object){return null!=object&&object[t]===e&&(e!==c||t in Lt(object));};}function zo(t,e,n){return e=an(e===c?t.length-1:e,0),function(){for(var o=arguments,c=-1,l=an(o.length-e,0),f=r(l);++c<l;)f[c]=o[e+c];c=-1;for(var h=r(e+1);++c<e;)h[c]=o[c];return h[e]=n(f),Fe(t,this,h);};}function Ho(object,path){return path.length<2?object:Lr(object,bi(path,0,-1));}function qo(object,t){if(("constructor"!==t||"function"!=typeof object[t])&&"__proto__"!=t)return object[t];}var Ko=Yo(mi),Wo=_e||function(t,e){return Me.setTimeout(t,e);},Vo=Yo(yi);function Jo(t,e,n){var source=e+"";return Vo(t,function(source,details){var t=details.length;if(!t)return source;var e=t-1;return details[e]=(t>1?"& ":"")+details[e],details=details.join(t>2?", ":" "),source.replace(vt,"{\n/* [wrapped with "+details+"] */\n");}(source,function(details,t){return Ue(O,function(e){var n="_."+e[0];t&e[1]&&!qe(details,n)&&details.push(n);}),details.sort();}(function(source){var t=source.match(wt);return t?t[1].split(_t):[];}(source),n)));}function Yo(t){var e=0,n=0;return function(){var r=Nn(),o=16-(r-n);if(n=r,o>0){if(++e>=800)return arguments[0];}else e=0;return t.apply(c,arguments);};}function Qo(t,e){var n=-1,r=t.length,o=r-1;for(e=e===c?r:e;++n<e;){var l=ui(n,o),f=t[l];t[l]=t[n],t[n]=f;}return t.length=e,t;}var Xo=function(t){var e=Va(t,function(t){return 500===n.size&&n.clear(),t;}),n=e.cache;return e;}(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(pt,function(t,n,r,o){e.push(r?o.replace(Tt,"$1"):n||t);}),e;});function Zo(t){if("string"==typeof t||_s(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e;}function $o(t){if(null!=t){try{return Kt.call(t);}catch(t){}try{return t+"";}catch(t){}}return"";}function ta(t){if(t instanceof nr)return t.clone();var e=new er(t.__wrapped__,t.__chain__);return e.__actions__=qi(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e;}var ea=fi(function(t,e){return as(t)?Or(t,Nr(e,1,as,!0)):[];}),na=fi(function(t,e){var n=la(e);return as(n)&&(n=c),as(t)?Or(t,Nr(e,1,as,!0),To(n,2)):[];}),ra=fi(function(t,e){var n=la(e);return as(n)&&(n=c),as(t)?Or(t,Nr(e,1,as,!0),c,n):[];});function ia(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:ks(n);return o<0&&(o=an(r+o,0)),$e(t,To(e,3),o);}function oa(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r-1;return n!==c&&(o=ks(n),o=n<0?an(r+o,0):jn(o,r-1)),$e(t,To(e,3),o,!0);}function aa(t){return(null==t?0:t.length)?Nr(t,1):[];}function head(t){return t&&t.length?t[0]:c;}var sa=fi(function(t){var e=We(t,Ii);return e.length&&e[0]===t[0]?Hr(e):[];}),ua=fi(function(t){var e=la(t),n=We(t,Ii);return e===la(n)?e=c:n.pop(),n.length&&n[0]===t[0]?Hr(n,To(e,2)):[];}),ca=fi(function(t){var e=la(t),n=We(t,Ii);return(e="function"==typeof e?e:c)&&n.pop(),n.length&&n[0]===t[0]?Hr(n,c,e):[];});function la(t){var e=null==t?0:t.length;return e?t[e-1]:c;}var fa=fi(ha);function ha(t,e){return t&&t.length&&e&&e.length?ai(t,e):t;}var da=bo(function(t,e){var n=null==t?0:t.length,r=wr(t,e);return si(t,We(e,function(t){return Ro(t,n)?+t:t;}).sort(Gi)),r;});function pa(t){return null==t?t:Rn.call(t);}var ma=fi(function(t){return Oi(Nr(t,1,as,!0));}),ya=fi(function(t){var e=la(t);return as(e)&&(e=c),Oi(Nr(t,1,as,!0),To(e,2));}),ga=fi(function(t){var e=la(t);return e="function"==typeof e?e:c,Oi(Nr(t,1,as,!0),c,e);});function ba(t){if(!t||!t.length)return[];var e=0;return t=He(t,function(t){if(as(t))return e=an(t.length,e),!0;}),cn(e,function(e){return We(t,on(e));});}function va(t,e){if(!t||!t.length)return[];var n=ba(t);return null==e?n:We(n,function(t){return Fe(e,c,t);});}var wa=fi(function(t,e){return as(t)?Or(t,e):[];}),_a=fi(function(t){return ji(He(t,as));}),Aa=fi(function(t){var e=la(t);return as(e)&&(e=c),ji(He(t,as),To(e,2));}),Ea=fi(function(t){var e=la(t);return e="function"==typeof e?e:c,ji(He(t,as),c,e);}),Ta=fi(ba);var Oa=fi(function(t){var e=t.length,n=e>1?t[e-1]:c;return n="function"==typeof n?(t.pop(),n):c,va(t,n);});function Ma(t){var e=Xn(t);return e.__chain__=!0,e;}function ka(t,e){return e(t);}var xa=bo(function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,o=function(object){return wr(object,t);};return!(e>1||this.__actions__.length)&&r instanceof nr&&Ro(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:ka,args:[o],thisArg:c}),new er(r,this.__chain__).thru(function(t){return e&&!t.length&&t.push(c),t;})):this.thru(o);});var Sa=Wi(function(t,e,n){Wt.call(t,n)?++t[n]:vr(t,n,1);});var ja=$i(ia),Na=$i(oa);function Ia(t,e){return(rs(t)?Ue:Mr)(t,To(e,3));}function Pa(t,e){return(rs(t)?Ge:kr)(t,To(e,3));}var Ra=Wi(function(t,e,n){Wt.call(t,n)?t[n].push(e):vr(t,n,[e]);});var Ca=fi(function(t,path,e){var n=-1,o="function"==typeof path,c=os(t)?r(t.length):[];return Mr(t,function(t){c[++n]=o?Fe(path,t,e):qr(t,path,e);}),c;}),Ba=Wi(function(t,e,n){vr(t,n,e);});function map(t,e){return(rs(t)?We:$r)(t,To(e,3));}var La=Wi(function(t,e,n){t[n?0:1].push(e);},function(){return[[],[]];});var Fa=fi(function(t,e){if(null==t)return[];var n=e.length;return n>1&&Co(t,e[0],e[1])?e=[]:n>2&&Co(e[0],e[1],e[2])&&(e=[e[0]]),ii(t,Nr(e,1),[]);}),Da=me||function(){return Me.Date.now();};function Ua(t,e,n){return e=n?c:e,e=t&&null==e?t.length:e,ho(t,v,c,c,c,c,e);}function Ga(t,e){var n;if("function"!=typeof e)throw new Ut(l);return t=ks(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=c),n;};}var za=fi(function(t,e,n){var r=1;if(n.length){var o=An(n,Eo(za));r|=m;}return ho(t,r,e,n,o);}),Ha=fi(function(object,t,e){var n=3;if(e.length){var r=An(e,Eo(Ha));n|=m;}return ho(t,n,object,e,r);});function qa(t,e,n){var r,o,f,h,d,m,y=0,v=!1,w=!1,_=!0;if("function"!=typeof t)throw new Ut(l);function A(time){var e=r,n=o;return r=o=c,y=time,h=t.apply(n,e);}function E(time){var t=time-m;return m===c||t>=e||t<0||w&&time-y>=f;}function T(){var time=Da();if(E(time))return O(time);d=Wo(T,function(time){var t=e-(time-m);return w?jn(t,f-(time-y)):t;}(time));}function O(time){return d=c,_&&r?A(time):(r=o=c,h);}function M(){var time=Da(),t=E(time);if(r=arguments,o=this,m=time,t){if(d===c)return function(time){return y=time,d=Wo(T,e),v?A(time):h;}(m);if(w)return Li(d),d=Wo(T,e),A(m);}return d===c&&(d=Wo(T,e)),h;}return e=Ss(e)||0,ds(n)&&(v=!!n.leading,f=(w="maxWait"in n)?an(Ss(n.maxWait)||0,e):f,_="trailing"in n?!!n.trailing:_),M.cancel=function(){d!==c&&Li(d),y=0,r=m=o=d=c;},M.flush=function(){return d===c?h:O(Da());},M;}var Ka=fi(function(t,e){return Tr(t,1,e);}),Wa=fi(function(t,e,n){return Tr(t,Ss(e)||0,n);});function Va(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Ut(l);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],c=n.cache;if(c.has(o))return c.get(o);var l=t.apply(this,r);return n.cache=c.set(o,l)||c,l;};return n.cache=new(Va.Cache||or)(),n;}function Ja(t){if("function"!=typeof t)throw new Ut(l);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2]);}return!t.apply(this,e);};}Va.Cache=or;var Ya=Ci(function(t,e){var n=(e=1==e.length&&rs(e[0])?We(e[0],fn(To())):We(Nr(e,1),fn(To()))).length;return fi(function(r){for(var o=-1,c=jn(r.length,n);++o<c;)r[o]=e[o].call(this,r[o]);return Fe(t,this,r);});}),Qa=fi(function(t,e){var n=An(e,Eo(Qa));return ho(t,m,c,e,n);}),Xa=fi(function(t,e){var n=An(e,Eo(Xa));return ho(t,y,c,e,n);}),Za=bo(function(t,e){return ho(t,w,c,c,c,e);});function $a(t,e){return t===e||t!=t&&e!=e;}var ts=so(Ur),es=so(function(t,e){return t>=e;}),ns=Kr(function(){return arguments;}())?Kr:function(t){return ps(t)&&Wt.call(t,"callee")&&!oe.call(t,"callee");},rs=r.isArray,is=Ie?fn(Ie):function(t){return ps(t)&&Dr(t)==z;};function os(t){return null!=t&&hs(t.length)&&!ls(t);}function as(t){return ps(t)&&os(t);}var ss=xe||Su,us=Pe?fn(Pe):function(t){return ps(t)&&Dr(t)==S;};function cs(t){if(!ps(t))return!1;var e=Dr(t);return e==j||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!gs(t);}function ls(t){if(!ds(t))return!1;var e=Dr(t);return e==N||e==I||"[object AsyncFunction]"==e||"[object Proxy]"==e;}function fs(t){return"number"==typeof t&&t==ks(t);}function hs(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=A;}function ds(t){var e=typeof t;return null!=t&&("object"==e||"function"==e);}function ps(t){return null!=t&&"object"==typeof t;}var ms=Re?fn(Re):function(t){return ps(t)&&jo(t)==P;};function ys(t){return"number"==typeof t||ps(t)&&Dr(t)==R;}function gs(t){if(!ps(t)||Dr(t)!=C)return!1;var e=re(t);if(null===e)return!0;var n=Wt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Kt.call(n)==Qt;}var bs=Ce?fn(Ce):function(t){return ps(t)&&Dr(t)==L;};var vs=Be?fn(Be):function(t){return ps(t)&&jo(t)==F;};function ws(t){return"string"==typeof t||!rs(t)&&ps(t)&&Dr(t)==D;}function _s(t){return"symbol"==typeof t||ps(t)&&Dr(t)==U;}var As=Le?fn(Le):function(t){return ps(t)&&hs(t.length)&&!!ve[Dr(t)];};var Es=so(Zr),Ts=so(function(t,e){return t<=e;});function Os(t){if(!t)return[];if(os(t))return ws(t)?Mn(t):qi(t);if(ue&&t[ue])return function(t){for(var data,e=[];!(data=t.next()).done;)e.push(data.value);return e;}(t[ue]());var e=jo(t);return(e==P?wn:e==F?En:$s)(t);}function Ms(t){return t?(t=Ss(t))===_||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0;}function ks(t){var e=Ms(t),n=e%1;return e==e?n?e-n:e:0;}function xs(t){return t?_r(ks(t),0,T):0;}function Ss(t){if("number"==typeof t)return t;if(_s(t))return E;if(ds(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=ds(e)?e+"":e;}if("string"!=typeof t)return 0===t?t:+t;t=ln(t);var n=xt.test(t);return n||jt.test(t)?Ee(t.slice(2),n?2:8):kt.test(t)?E:+t;}function js(t){return Ki(t,Ks(t));}function Ns(t){return null==t?"":Ti(t);}var Is=Vi(function(object,source){if(Do(source)||os(source))Ki(source,qs(source),object);else for(var t in source)Wt.call(source,t)&&pr(object,t,source[t]);}),Ps=Vi(function(object,source){Ki(source,Ks(source),object);}),Rs=Vi(function(object,source,t,e){Ki(source,Ks(source),object,e);}),Cs=Vi(function(object,source,t,e){Ki(source,qs(source),object,e);}),Bs=bo(wr);var Ls=fi(function(object,t){object=Lt(object);var e=-1,n=t.length,r=n>2?t[2]:c;for(r&&Co(t[0],t[1],r)&&(n=1);++e<n;)for(var source=t[e],o=Ks(source),l=-1,f=o.length;++l<f;){var h=o[l],d=object[h];(d===c||$a(d,Ht[h])&&!Wt.call(object,h))&&(object[h]=source[h]);}return object;}),Fs=fi(function(t){return t.push(c,mo),Fe(Vs,c,t);});function Ds(object,path,t){var e=null==object?c:Lr(object,path);return e===c?t:e;}function Us(object,path){return null!=object&&No(object,path,zr);}var Gs=no(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Yt.call(e)),t[e]=n;},du(yu)),zs=no(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Yt.call(e)),Wt.call(t,e)?t[e].push(n):t[e]=[n];},To),Hs=fi(qr);function qs(object){return os(object)?ur(object):Qr(object);}function Ks(object){return os(object)?ur(object,!0):Xr(object);}var Ws=Vi(function(object,source,t){ni(object,source,t);}),Vs=Vi(function(object,source,t,e){ni(object,source,t,e);}),Js=bo(function(object,t){var e={};if(null==object)return e;var n=!1;t=We(t,function(path){return path=Ri(path,object),n||(n=path.length>1),path;}),Ki(object,wo(object),e),n&&(e=Ar(e,7,yo));for(var r=t.length;r--;)Mi(e,t[r]);return e;});var Ys=bo(function(object,t){return null==object?{}:function(object,t){return oi(object,t,function(t,path){return Us(object,path);});}(object,t);});function Qs(object,t){if(null==object)return{};var e=We(wo(object),function(t){return[t];});return t=To(t),oi(object,e,function(e,path){return t(e,path[0]);});}var Xs=fo(qs),Zs=fo(Ks);function $s(object){return null==object?[]:hn(object,qs(object));}var tu=Xi(function(t,e,n){return e=e.toLowerCase(),t+(n?eu(e):e);});function eu(t){return cu(Ns(t).toLowerCase());}function nu(t){return(t=Ns(t))&&t.replace(It,yn).replace(he,"");}var ru=Xi(function(t,e,n){return t+(n?"-":"")+e.toLowerCase();}),iu=Xi(function(t,e,n){return t+(n?" ":"")+e.toLowerCase();}),ou=Qi("toLowerCase");var au=Xi(function(t,e,n){return t+(n?"_":"")+e.toLowerCase();});var su=Xi(function(t,e,n){return t+(n?" ":"")+cu(e);});var uu=Xi(function(t,e,n){return t+(n?" ":"")+e.toUpperCase();}),cu=Qi("toUpperCase");function lu(t,pattern,e){return t=Ns(t),(pattern=e?c:pattern)===c?function(t){return ye.test(t);}(t)?function(t){return t.match(pe)||[];}(t):function(t){return t.match(At)||[];}(t):t.match(pattern)||[];}var fu=fi(function(t,e){try{return Fe(t,c,e);}catch(t){return cs(t)?t:new bt(t);}}),hu=bo(function(object,t){return Ue(t,function(t){t=Zo(t),vr(object,t,za(object[t],object));}),object;});function du(t){return function(){return t;};}var pu=to(),mu=to(!0);function yu(t){return t;}function gu(t){return Yr("function"==typeof t?t:Ar(t,1));}var bu=fi(function(path,t){return function(object){return qr(object,path,t);};}),vu=fi(function(object,t){return function(path){return qr(object,path,t);};});function wu(object,source,t){var e=qs(source),n=Br(source,e);null!=t||ds(source)&&(n.length||!e.length)||(t=source,source=object,object=this,n=Br(source,qs(source)));var r=!(ds(t)&&"chain"in t&&!t.chain),o=ls(object);return Ue(n,function(t){var e=source[t];object[t]=e,o&&(object.prototype[t]=function(){var t=this.__chain__;if(r||t){var n=object(this.__wrapped__);return(n.__actions__=qi(this.__actions__)).push({func:e,args:arguments,thisArg:object}),n.__chain__=t,n;}return e.apply(object,Ve([this.value()],arguments));});}),object;}function _u(){}var Au=io(We),Eu=io(ze),Tu=io(Qe);function Ou(path){return Bo(path)?on(Zo(path)):function(path){return function(object){return Lr(object,path);};}(path);}var Mu=ao(),ku=ao(!0);function xu(){return[];}function Su(){return!1;}var ju=ro(function(t,e){return t+e;},0),Nu=co("ceil"),Iu=ro(function(t,e){return t/e;},1),Pu=co("floor");var source,Ru=ro(function(t,e){return t*e;},1),Cu=co("round"),Bu=ro(function(t,e){return t-e;},0);return Xn.after=function(t,e){if("function"!=typeof e)throw new Ut(l);return t=ks(t),function(){if(--t<1)return e.apply(this,arguments);};},Xn.ary=Ua,Xn.assign=Is,Xn.assignIn=Ps,Xn.assignInWith=Rs,Xn.assignWith=Cs,Xn.at=Bs,Xn.before=Ga,Xn.bind=za,Xn.bindAll=hu,Xn.bindKey=Ha,Xn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return rs(t)?t:[t];},Xn.chain=Ma,Xn.chunk=function(t,e,n){e=(n?Co(t,e,n):e===c)?1:an(ks(e),0);var o=null==t?0:t.length;if(!o||e<1)return[];for(var l=0,f=0,h=r(Te(o/e));l<o;)h[f++]=bi(t,l,l+=e);return h;},Xn.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,o=[];++e<n;){var c=t[e];c&&(o[r++]=c);}return o;},Xn.concat=function(){var t=arguments.length;if(!t)return[];for(var e=r(t-1),n=arguments[0],o=t;o--;)e[o-1]=arguments[o];return Ve(rs(n)?qi(n):[n],Nr(e,1));},Xn.cond=function(t){var e=null==t?0:t.length,n=To();return t=e?We(t,function(t){if("function"!=typeof t[1])throw new Ut(l);return[n(t[0]),t[1]];}):[],fi(function(n){for(var r=-1;++r<e;){var o=t[r];if(Fe(o[0],this,n))return Fe(o[1],this,n);}});},Xn.conforms=function(source){return function(source){var t=qs(source);return function(object){return Er(object,source,t);};}(Ar(source,1));},Xn.constant=du,Xn.countBy=Sa,Xn.create=function(t,e){var n=Zn(t);return null==e?n:gr(n,e);},Xn.curry=function t(e,n,r){var o=ho(e,8,c,c,c,c,c,n=r?c:n);return o.placeholder=t.placeholder,o;},Xn.curryRight=function t(e,n,r){var o=ho(e,d,c,c,c,c,c,n=r?c:n);return o.placeholder=t.placeholder,o;},Xn.debounce=qa,Xn.defaults=Ls,Xn.defaultsDeep=Fs,Xn.defer=Ka,Xn.delay=Wa,Xn.difference=ea,Xn.differenceBy=na,Xn.differenceWith=ra,Xn.drop=function(t,e,n){var r=null==t?0:t.length;return r?bi(t,(e=n||e===c?1:ks(e))<0?0:e,r):[];},Xn.dropRight=function(t,e,n){var r=null==t?0:t.length;return r?bi(t,0,(e=r-(e=n||e===c?1:ks(e)))<0?0:e):[];},Xn.dropRightWhile=function(t,e){return t&&t.length?xi(t,To(e,3),!0,!0):[];},Xn.dropWhile=function(t,e){return t&&t.length?xi(t,To(e,3),!0):[];},Xn.fill=function(t,e,n,r){var o=null==t?0:t.length;return o?(n&&"number"!=typeof n&&Co(t,e,n)&&(n=0,r=o),function(t,e,n,r){var o=t.length;for((n=ks(n))<0&&(n=-n>o?0:o+n),(r=r===c||r>o?o:ks(r))<0&&(r+=o),r=n>r?0:xs(r);n<r;)t[n++]=e;return t;}(t,e,n,r)):[];},Xn.filter=function(t,e){return(rs(t)?He:jr)(t,To(e,3));},Xn.flatMap=function(t,e){return Nr(map(t,e),1);},Xn.flatMapDeep=function(t,e){return Nr(map(t,e),_);},Xn.flatMapDepth=function(t,e,n){return n=n===c?1:ks(n),Nr(map(t,e),n);},Xn.flatten=aa,Xn.flattenDeep=function(t){return(null==t?0:t.length)?Nr(t,_):[];},Xn.flattenDepth=function(t,e){return(null==t?0:t.length)?Nr(t,e=e===c?1:ks(e)):[];},Xn.flip=function(t){return ho(t,512);},Xn.flow=pu,Xn.flowRight=mu,Xn.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var o=t[e];r[o[0]]=o[1];}return r;},Xn.functions=function(object){return null==object?[]:Br(object,qs(object));},Xn.functionsIn=function(object){return null==object?[]:Br(object,Ks(object));},Xn.groupBy=Ra,Xn.initial=function(t){return(null==t?0:t.length)?bi(t,0,-1):[];},Xn.intersection=sa,Xn.intersectionBy=ua,Xn.intersectionWith=ca,Xn.invert=Gs,Xn.invertBy=zs,Xn.invokeMap=Ca,Xn.iteratee=gu,Xn.keyBy=Ba,Xn.keys=qs,Xn.keysIn=Ks,Xn.map=map,Xn.mapKeys=function(object,t){var e={};return t=To(t,3),Rr(object,function(n,r,object){vr(e,t(n,r,object),n);}),e;},Xn.mapValues=function(object,t){var e={};return t=To(t,3),Rr(object,function(n,r,object){vr(e,r,t(n,r,object));}),e;},Xn.matches=function(source){return ti(Ar(source,1));},Xn.matchesProperty=function(path,t){return ei(path,Ar(t,1));},Xn.memoize=Va,Xn.merge=Ws,Xn.mergeWith=Vs,Xn.method=bu,Xn.methodOf=vu,Xn.mixin=wu,Xn.negate=Ja,Xn.nthArg=function(t){return t=ks(t),fi(function(e){return ri(e,t);});},Xn.omit=Js,Xn.omitBy=function(object,t){return Qs(object,Ja(To(t)));},Xn.once=function(t){return Ga(2,t);},Xn.orderBy=function(t,e,n,r){return null==t?[]:(rs(e)||(e=null==e?[]:[e]),rs(n=r?c:n)||(n=null==n?[]:[n]),ii(t,e,n));},Xn.over=Au,Xn.overArgs=Ya,Xn.overEvery=Eu,Xn.overSome=Tu,Xn.partial=Qa,Xn.partialRight=Xa,Xn.partition=La,Xn.pick=Ys,Xn.pickBy=Qs,Xn.property=Ou,Xn.propertyOf=function(object){return function(path){return null==object?c:Lr(object,path);};},Xn.pull=fa,Xn.pullAll=ha,Xn.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?ai(t,e,To(n,2)):t;},Xn.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?ai(t,e,c,n):t;},Xn.pullAt=da,Xn.range=Mu,Xn.rangeRight=ku,Xn.rearg=Za,Xn.reject=function(t,e){return(rs(t)?He:jr)(t,Ja(To(e,3)));},Xn.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,o=[],c=t.length;for(e=To(e,3);++r<c;){var l=t[r];e(l,r,t)&&(n.push(l),o.push(r));}return si(t,o),n;},Xn.rest=function(t,e){if("function"!=typeof t)throw new Ut(l);return fi(t,e=e===c?e:ks(e));},Xn.reverse=pa,Xn.sampleSize=function(t,e,n){return e=(n?Co(t,e,n):e===c)?1:ks(e),(rs(t)?lr:di)(t,e);},Xn.set=function(object,path,t){return null==object?object:pi(object,path,t);},Xn.setWith=function(object,path,t,e){return e="function"==typeof e?e:c,null==object?object:pi(object,path,t,e);},Xn.shuffle=function(t){return(rs(t)?fr:gi)(t);},Xn.slice=function(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&Co(t,e,n)?(e=0,n=r):(e=null==e?0:ks(e),n=n===c?r:ks(n)),bi(t,e,n)):[];},Xn.sortBy=Fa,Xn.sortedUniq=function(t){return t&&t.length?Ai(t):[];},Xn.sortedUniqBy=function(t,e){return t&&t.length?Ai(t,To(e,2)):[];},Xn.split=function(t,e,n){return n&&"number"!=typeof n&&Co(t,e,n)&&(e=n=c),(n=n===c?T:n>>>0)?(t=Ns(t))&&("string"==typeof e||null!=e&&!bs(e))&&!(e=Ti(e))&&vn(t)?Bi(Mn(t),0,n):t.split(e,n):[];},Xn.spread=function(t,e){if("function"!=typeof t)throw new Ut(l);return e=null==e?0:an(ks(e),0),fi(function(n){var r=n[e],o=Bi(n,0,e);return r&&Ve(o,r),Fe(t,this,o);});},Xn.tail=function(t){var e=null==t?0:t.length;return e?bi(t,1,e):[];},Xn.take=function(t,e,n){return t&&t.length?bi(t,0,(e=n||e===c?1:ks(e))<0?0:e):[];},Xn.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?bi(t,(e=r-(e=n||e===c?1:ks(e)))<0?0:e,r):[];},Xn.takeRightWhile=function(t,e){return t&&t.length?xi(t,To(e,3),!1,!0):[];},Xn.takeWhile=function(t,e){return t&&t.length?xi(t,To(e,3)):[];},Xn.tap=function(t,e){return e(t),t;},Xn.throttle=function(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw new Ut(l);return ds(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),qa(t,e,{leading:r,maxWait:e,trailing:o});},Xn.thru=ka,Xn.toArray=Os,Xn.toPairs=Xs,Xn.toPairsIn=Zs,Xn.toPath=function(t){return rs(t)?We(t,Zo):_s(t)?[t]:qi(Xo(Ns(t)));},Xn.toPlainObject=js,Xn.transform=function(object,t,e){var n=rs(object),r=n||ss(object)||As(object);if(t=To(t,4),null==e){var o=object&&object.constructor;e=r?n?new o():[]:ds(object)&&ls(o)?Zn(re(object)):{};}return(r?Ue:Rr)(object,function(n,r,object){return t(e,n,r,object);}),e;},Xn.unary=function(t){return Ua(t,1);},Xn.union=ma,Xn.unionBy=ya,Xn.unionWith=ga,Xn.uniq=function(t){return t&&t.length?Oi(t):[];},Xn.uniqBy=function(t,e){return t&&t.length?Oi(t,To(e,2)):[];},Xn.uniqWith=function(t,e){return e="function"==typeof e?e:c,t&&t.length?Oi(t,c,e):[];},Xn.unset=function(object,path){return null==object||Mi(object,path);},Xn.unzip=ba,Xn.unzipWith=va,Xn.update=function(object,path,t){return null==object?object:ki(object,path,Pi(t));},Xn.updateWith=function(object,path,t,e){return e="function"==typeof e?e:c,null==object?object:ki(object,path,Pi(t),e);},Xn.values=$s,Xn.valuesIn=function(object){return null==object?[]:hn(object,Ks(object));},Xn.without=wa,Xn.words=lu,Xn.wrap=function(t,e){return Qa(Pi(e),t);},Xn.xor=_a,Xn.xorBy=Aa,Xn.xorWith=Ea,Xn.zip=Ta,Xn.zipObject=function(t,e){return Ni(t||[],e||[],pr);},Xn.zipObjectDeep=function(t,e){return Ni(t||[],e||[],pi);},Xn.zipWith=Oa,Xn.entries=Xs,Xn.entriesIn=Zs,Xn.extend=Ps,Xn.extendWith=Rs,wu(Xn,Xn),Xn.add=ju,Xn.attempt=fu,Xn.camelCase=tu,Xn.capitalize=eu,Xn.ceil=Nu,Xn.clamp=function(t,e,n){return n===c&&(n=e,e=c),n!==c&&(n=(n=Ss(n))==n?n:0),e!==c&&(e=(e=Ss(e))==e?e:0),_r(Ss(t),e,n);},Xn.clone=function(t){return Ar(t,4);},Xn.cloneDeep=function(t){return Ar(t,5);},Xn.cloneDeepWith=function(t,e){return Ar(t,5,e="function"==typeof e?e:c);},Xn.cloneWith=function(t,e){return Ar(t,4,e="function"==typeof e?e:c);},Xn.conformsTo=function(object,source){return null==source||Er(object,source,qs(source));},Xn.deburr=nu,Xn.defaultTo=function(t,e){return null==t||t!=t?e:t;},Xn.divide=Iu,Xn.endsWith=function(t,e,n){t=Ns(t),e=Ti(e);var r=t.length,o=n=n===c?r:_r(ks(n),0,r);return(n-=e.length)>=0&&t.slice(n,o)==e;},Xn.eq=$a,Xn.escape=function(t){return(t=Ns(t))&&st.test(t)?t.replace(ot,gn):t;},Xn.escapeRegExp=function(t){return(t=Ns(t))&&yt.test(t)?t.replace(mt,"\\$&"):t;},Xn.every=function(t,e,n){var r=rs(t)?ze:xr;return n&&Co(t,e,n)&&(e=c),r(t,To(e,3));},Xn.find=ja,Xn.findIndex=ia,Xn.findKey=function(object,t){return Ze(object,To(t,3),Rr);},Xn.findLast=Na,Xn.findLastIndex=oa,Xn.findLastKey=function(object,t){return Ze(object,To(t,3),Cr);},Xn.floor=Pu,Xn.forEach=Ia,Xn.forEachRight=Pa,Xn.forIn=function(object,t){return null==object?object:Ir(object,To(t,3),Ks);},Xn.forInRight=function(object,t){return null==object?object:Pr(object,To(t,3),Ks);},Xn.forOwn=function(object,t){return object&&Rr(object,To(t,3));},Xn.forOwnRight=function(object,t){return object&&Cr(object,To(t,3));},Xn.get=Ds,Xn.gt=ts,Xn.gte=es,Xn.has=function(object,path){return null!=object&&No(object,path,Gr);},Xn.hasIn=Us,Xn.head=head,Xn.identity=yu,Xn.includes=function(t,e,n,r){t=os(t)?t:$s(t),n=n&&!r?ks(n):0;var o=t.length;return n<0&&(n=an(o+n,0)),ws(t)?n<=o&&t.indexOf(e,n)>-1:!!o&&tn(t,e,n)>-1;},Xn.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:ks(n);return o<0&&(o=an(r+o,0)),tn(t,e,o);},Xn.inRange=function(t,e,n){return e=Ms(e),n===c?(n=e,e=0):n=Ms(n),function(t,e,n){return t>=jn(e,n)&&t<an(e,n);}(t=Ss(t),e,n);},Xn.invoke=Hs,Xn.isArguments=ns,Xn.isArray=rs,Xn.isArrayBuffer=is,Xn.isArrayLike=os,Xn.isArrayLikeObject=as,Xn.isBoolean=function(t){return!0===t||!1===t||ps(t)&&Dr(t)==x;},Xn.isBuffer=ss,Xn.isDate=us,Xn.isElement=function(t){return ps(t)&&1===t.nodeType&&!gs(t);},Xn.isEmpty=function(t){if(null==t)return!0;if(os(t)&&(rs(t)||"string"==typeof t||"function"==typeof t.splice||ss(t)||As(t)||ns(t)))return!t.length;var e=jo(t);if(e==P||e==F)return!t.size;if(Do(t))return!Qr(t).length;for(var n in t)if(Wt.call(t,n))return!1;return!0;},Xn.isEqual=function(t,e){return Wr(t,e);},Xn.isEqualWith=function(t,e,n){var r=(n="function"==typeof n?n:c)?n(t,e):c;return r===c?Wr(t,e,c,n):!!r;},Xn.isError=cs,Xn.isFinite=function(t){return"number"==typeof t&&je(t);},Xn.isFunction=ls,Xn.isInteger=fs,Xn.isLength=hs,Xn.isMap=ms,Xn.isMatch=function(object,source){return object===source||Vr(object,source,Mo(source));},Xn.isMatchWith=function(object,source,t){return t="function"==typeof t?t:c,Vr(object,source,Mo(source),t);},Xn.isNaN=function(t){return ys(t)&&t!=+t;},Xn.isNative=function(t){if(Fo(t))throw new bt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Jr(t);},Xn.isNil=function(t){return null==t;},Xn.isNull=function(t){return null===t;},Xn.isNumber=ys,Xn.isObject=ds,Xn.isObjectLike=ps,Xn.isPlainObject=gs,Xn.isRegExp=bs,Xn.isSafeInteger=function(t){return fs(t)&&t>=-9007199254740991&&t<=A;},Xn.isSet=vs,Xn.isString=ws,Xn.isSymbol=_s,Xn.isTypedArray=As,Xn.isUndefined=function(t){return t===c;},Xn.isWeakMap=function(t){return ps(t)&&jo(t)==G;},Xn.isWeakSet=function(t){return ps(t)&&"[object WeakSet]"==Dr(t);},Xn.join=function(t,e){return null==t?"":Ne.call(t,e);},Xn.kebabCase=ru,Xn.last=la,Xn.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r;return n!==c&&(o=(o=ks(n))<0?an(r+o,0):jn(o,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r;}(t,e,o):$e(t,nn,o,!0);},Xn.lowerCase=iu,Xn.lowerFirst=ou,Xn.lt=Es,Xn.lte=Ts,Xn.max=function(t){return t&&t.length?Sr(t,yu,Ur):c;},Xn.maxBy=function(t,e){return t&&t.length?Sr(t,To(e,2),Ur):c;},Xn.mean=function(t){return rn(t,yu);},Xn.meanBy=function(t,e){return rn(t,To(e,2));},Xn.min=function(t){return t&&t.length?Sr(t,yu,Zr):c;},Xn.minBy=function(t,e){return t&&t.length?Sr(t,To(e,2),Zr):c;},Xn.stubArray=xu,Xn.stubFalse=Su,Xn.stubObject=function(){return{};},Xn.stubString=function(){return"";},Xn.stubTrue=function(){return!0;},Xn.multiply=Ru,Xn.nth=function(t,e){return t&&t.length?ri(t,ks(e)):c;},Xn.noConflict=function(){return Me._===this&&(Me._=Xt),this;},Xn.noop=_u,Xn.now=Da,Xn.pad=function(t,e,n){t=Ns(t);var r=(e=ks(e))?On(t):0;if(!e||r>=e)return t;var o=(e-r)/2;return oo(Oe(o),n)+t+oo(Te(o),n);},Xn.padEnd=function(t,e,n){t=Ns(t);var r=(e=ks(e))?On(t):0;return e&&r<e?t+oo(e-r,n):t;},Xn.padStart=function(t,e,n){t=Ns(t);var r=(e=ks(e))?On(t):0;return e&&r<e?oo(e-r,n)+t:t;},Xn.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),In(Ns(t).replace(gt,""),e||0);},Xn.random=function(t,e,n){if(n&&"boolean"!=typeof n&&Co(t,e,n)&&(e=n=c),n===c&&("boolean"==typeof e?(n=e,e=c):"boolean"==typeof t&&(n=t,t=c)),t===c&&e===c?(t=0,e=1):(t=Ms(t),e===c?(e=t,t=0):e=Ms(e)),t>e){var r=t;t=e,e=r;}if(n||t%1||e%1){var o=Pn();return jn(t+o*(e-t+Ae("1e-"+((o+"").length-1))),e);}return ui(t,e);},Xn.reduce=function(t,e,n){var r=rs(t)?Je:sn,o=arguments.length<3;return r(t,To(e,4),n,o,Mr);},Xn.reduceRight=function(t,e,n){var r=rs(t)?Ye:sn,o=arguments.length<3;return r(t,To(e,4),n,o,kr);},Xn.repeat=function(t,e,n){return e=(n?Co(t,e,n):e===c)?1:ks(e),ci(Ns(t),e);},Xn.replace=function(){var t=arguments,e=Ns(t[0]);return t.length<3?e:e.replace(t[1],t[2]);},Xn.result=function(object,path,t){var e=-1,n=(path=Ri(path,object)).length;for(n||(n=1,object=c);++e<n;){var r=null==object?c:object[Zo(path[e])];r===c&&(e=n,r=t),object=ls(r)?r.call(object):r;}return object;},Xn.round=Cu,Xn.runInContext=t,Xn.sample=function(t){return(rs(t)?cr:hi)(t);},Xn.size=function(t){if(null==t)return 0;if(os(t))return ws(t)?On(t):t.length;var e=jo(t);return e==P||e==F?t.size:Qr(t).length;},Xn.snakeCase=au,Xn.some=function(t,e,n){var r=rs(t)?Qe:vi;return n&&Co(t,e,n)&&(e=c),r(t,To(e,3));},Xn.sortedIndex=function(t,e){return wi(t,e);},Xn.sortedIndexBy=function(t,e,n){return _i(t,e,To(n,2));},Xn.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=wi(t,e);if(r<n&&$a(t[r],e))return r;}return-1;},Xn.sortedLastIndex=function(t,e){return wi(t,e,!0);},Xn.sortedLastIndexBy=function(t,e,n){return _i(t,e,To(n,2),!0);},Xn.sortedLastIndexOf=function(t,e){if(null==t?0:t.length){var n=wi(t,e,!0)-1;if($a(t[n],e))return n;}return-1;},Xn.startCase=su,Xn.startsWith=function(t,e,n){return t=Ns(t),n=null==n?0:_r(ks(n),0,t.length),e=Ti(e),t.slice(n,n+e.length)==e;},Xn.subtract=Bu,Xn.sum=function(t){return t&&t.length?un(t,yu):0;},Xn.sumBy=function(t,e){return t&&t.length?un(t,To(e,2)):0;},Xn.template=function(t,e,n){var r=Xn.templateSettings;n&&Co(t,e,n)&&(e=c),t=Ns(t),e=Rs({},e,r,po);var o,l,f=Rs({},e.imports,r.imports,po),h=qs(f),d=hn(f,h),m=0,y=e.interpolate||Pt,source="__p += '",v=Ft((e.escape||Pt).source+"|"+y.source+"|"+(y===lt?Ot:Pt).source+"|"+(e.evaluate||Pt).source+"|$","g"),w="//# sourceURL="+(Wt.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++be+"]")+"\n";t.replace(v,function(e,n,r,c,f,h){return r||(r=c),source+=t.slice(m,h).replace(Rt,bn),n&&(o=!0,source+="' +\n__e("+n+") +\n'"),f&&(l=!0,source+="';\n"+f+";\n__p += '"),r&&(source+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),m=h+e.length,e;}),source+="';\n";var _=Wt.call(e,"variable")&&e.variable;if(_){if(Et.test(_))throw new bt("Invalid `variable` option passed into `_.template`");}else source="with (obj) {\n"+source+"\n}\n";source=(l?source.replace(tt,""):source).replace(et,"$1").replace(nt,"$1;"),source="function("+(_||"obj")+") {\n"+(_?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(l?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+source+"return __p\n}";var A=fu(function(){return Ct(h,w+"return "+source).apply(c,d);});if(A.source=source,cs(A))throw A;return A;},Xn.times=function(t,e){if((t=ks(t))<1||t>A)return[];var n=T,r=jn(t,T);e=To(e),t-=T;for(var o=cn(r,e);++n<t;)e(n);return o;},Xn.toFinite=Ms,Xn.toInteger=ks,Xn.toLength=xs,Xn.toLower=function(t){return Ns(t).toLowerCase();},Xn.toNumber=Ss,Xn.toSafeInteger=function(t){return t?_r(ks(t),-9007199254740991,A):0===t?t:0;},Xn.toString=Ns,Xn.toUpper=function(t){return Ns(t).toUpperCase();},Xn.trim=function(t,e,n){if((t=Ns(t))&&(n||e===c))return ln(t);if(!t||!(e=Ti(e)))return t;var r=Mn(t),o=Mn(e);return Bi(r,pn(r,o),mn(r,o)+1).join("");},Xn.trimEnd=function(t,e,n){if((t=Ns(t))&&(n||e===c))return t.slice(0,kn(t)+1);if(!t||!(e=Ti(e)))return t;var r=Mn(t);return Bi(r,0,mn(r,Mn(e))+1).join("");},Xn.trimStart=function(t,e,n){if((t=Ns(t))&&(n||e===c))return t.replace(gt,"");if(!t||!(e=Ti(e)))return t;var r=Mn(t);return Bi(r,pn(r,Mn(e))).join("");},Xn.truncate=function(t,e){var n=30,r="...";if(ds(e)){var o="separator"in e?e.separator:o;n="length"in e?ks(e.length):n,r="omission"in e?Ti(e.omission):r;}var l=(t=Ns(t)).length;if(vn(t)){var f=Mn(t);l=f.length;}if(n>=l)return t;var h=n-On(r);if(h<1)return r;var d=f?Bi(f,0,h).join(""):t.slice(0,h);if(o===c)return d+r;if(f&&(h+=d.length-h),bs(o)){if(t.slice(h).search(o)){var m,y=d;for(o.global||(o=Ft(o.source,Ns(Mt.exec(o))+"g")),o.lastIndex=0;m=o.exec(y);)var v=m.index;d=d.slice(0,v===c?h:v);}}else if(t.indexOf(Ti(o),h)!=h){var w=d.lastIndexOf(o);w>-1&&(d=d.slice(0,w));}return d+r;},Xn.unescape=function(t){return(t=Ns(t))&&at.test(t)?t.replace(it,xn):t;},Xn.uniqueId=function(t){var e=++Vt;return Ns(t)+e;},Xn.upperCase=uu,Xn.upperFirst=cu,Xn.each=Ia,Xn.eachRight=Pa,Xn.first=head,wu(Xn,(source={},Rr(Xn,function(t,e){Wt.call(Xn.prototype,e)||(source[e]=t);}),source),{chain:!1}),Xn.VERSION="4.17.21",Ue(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){Xn[t].placeholder=Xn;}),Ue(["drop","take"],function(t,e){nr.prototype[t]=function(n){n=n===c?1:an(ks(n),0);var r=this.__filtered__&&!e?new nr(this):this.clone();return r.__filtered__?r.__takeCount__=jn(n,r.__takeCount__):r.__views__.push({size:jn(n,T),type:t+(r.__dir__<0?"Right":"")}),r;},nr.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse();};}),Ue(["filter","map","takeWhile"],function(t,e){var n=e+1,r=1==n||3==n;nr.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:To(t,3),type:n}),e.__filtered__=e.__filtered__||r,e;};}),Ue(["head","last"],function(t,e){var n="take"+(e?"Right":"");nr.prototype[t]=function(){return this[n](1).value()[0];};}),Ue(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");nr.prototype[t]=function(){return this.__filtered__?new nr(this):this[n](1);};}),nr.prototype.compact=function(){return this.filter(yu);},nr.prototype.find=function(t){return this.filter(t).head();},nr.prototype.findLast=function(t){return this.reverse().find(t);},nr.prototype.invokeMap=fi(function(path,t){return"function"==typeof path?new nr(this):this.map(function(e){return qr(e,path,t);});}),nr.prototype.reject=function(t){return this.filter(Ja(To(t)));},nr.prototype.slice=function(t,e){t=ks(t);var n=this;return n.__filtered__&&(t>0||e<0)?new nr(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==c&&(n=(e=ks(e))<0?n.dropRight(-e):n.take(e-t)),n);},nr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse();},nr.prototype.toArray=function(){return this.take(T);},Rr(nr.prototype,function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),o=Xn[r?"take"+("last"==e?"Right":""):e],l=r||/^find/.test(e);o&&(Xn.prototype[e]=function(){var e=this.__wrapped__,f=r?[1]:arguments,h=e instanceof nr,d=f[0],m=h||rs(e),y=function(t){var e=o.apply(Xn,Ve([t],f));return r&&v?e[0]:e;};m&&n&&"function"==typeof d&&1!=d.length&&(h=m=!1);var v=this.__chain__,w=!!this.__actions__.length,_=l&&!v,A=h&&!w;if(!l&&m){e=A?e:new nr(this);var E=t.apply(e,f);return E.__actions__.push({func:ka,args:[y],thisArg:c}),new er(E,v);}return _&&A?t.apply(this,f):(E=this.thru(y),_?r?E.value()[0]:E.value():E);});}),Ue(["pop","push","shift","sort","splice","unshift"],function(t){var e=Gt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Xn.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var o=this.value();return e.apply(rs(o)?o:[],t);}return this[n](function(n){return e.apply(rs(n)?n:[],t);});};}),Rr(nr.prototype,function(t,e){var n=Xn[e];if(n){var r=n.name+"";Wt.call(zn,r)||(zn[r]=[]),zn[r].push({name:e,func:n});}}),zn[eo(c,2).name]=[{name:"wrapper",func:c}],nr.prototype.clone=function(){var t=new nr(this.__wrapped__);return t.__actions__=qi(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=qi(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=qi(this.__views__),t;},nr.prototype.reverse=function(){if(this.__filtered__){var t=new nr(this);t.__dir__=-1,t.__filtered__=!0;}else(t=this.clone()).__dir__*=-1;return t;},nr.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=rs(t),r=e<0,o=n?t.length:0,view=function(t,e,n){var r=-1,o=n.length;for(;++r<o;){var data=n[r],c=data.size;switch(data.type){case"drop":t+=c;break;case"dropRight":e-=c;break;case"take":e=jn(e,t+c);break;case"takeRight":t=an(t,e-c);}}return{start:t,end:e};}(0,o,this.__views__),c=view.start,l=view.end,f=l-c,h=r?l:c-1,d=this.__iteratees__,m=d.length,y=0,v=jn(f,this.__takeCount__);if(!n||!r&&o==f&&v==f)return Si(t,this.__actions__);var w=[];t:for(;f--&&y<v;){for(var _=-1,A=t[h+=e];++_<m;){var data=d[_],E=data.iteratee,T=data.type,O=E(A);if(2==T)A=O;else if(!O){if(1==T)continue t;break t;}}w[y++]=A;}return w;},Xn.prototype.at=xa,Xn.prototype.chain=function(){return Ma(this);},Xn.prototype.commit=function(){return new er(this.value(),this.__chain__);},Xn.prototype.next=function(){this.__values__===c&&(this.__values__=Os(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?c:this.__values__[this.__index__++]};},Xn.prototype.plant=function(t){for(var e,n=this;n instanceof $n;){var r=ta(n);r.__index__=0,r.__values__=c,e?o.__wrapped__=r:e=r;var o=r;n=n.__wrapped__;}return o.__wrapped__=t,e;},Xn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof nr){var e=t;return this.__actions__.length&&(e=new nr(this)),(e=e.reverse()).__actions__.push({func:ka,args:[pa],thisArg:c}),new er(e,this.__chain__);}return this.thru(pa);},Xn.prototype.toJSON=Xn.prototype.valueOf=Xn.prototype.value=function(){return Si(this.__wrapped__,this.__actions__);},Xn.prototype.first=Xn.prototype.head,ue&&(Xn.prototype[ue]=function(){return this;}),Xn;}();Me._=Sn,(o=function(){return Sn;}.call(e,n,e,r))===c||(r.exports=o);}).call(this);}).call(this,n(47),n(97)(t));},function(t,e){},function(t,e){"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 n=function(){};n.prototype=e.prototype,t.prototype=new n(),t.prototype.constructor=t;}};},function(t,e,n){"use strict";e.sha1=n(173),e.sha224=n(174),e.sha256=n(125),e.sha384=n(175),e.sha512=n(126);},function(t,e,n){"use strict";var r=n(37),o=n(64),c=n(124),l=r.rotl32,f=r.sum32,h=r.sum32_5,d=c.ft_1,m=o.BlockHash,y=[1518500249,1859775393,2400959708,3395469782];function v(){if(!(this instanceof v))return new v();m.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80);}r.inherits(v,m),t.exports=v,v.blockSize=512,v.outSize=160,v.hmacStrength=80,v.padLength=64,v.prototype._update=function(t,e){for(var n=this.W,i=0;i<16;i++)n[i]=t[e+i];for(;i<n.length;i++)n[i]=l(n[i-3]^n[i-8]^n[i-14]^n[i-16],1);var a=this.h[0],b=this.h[1],r=this.h[2],o=this.h[3],c=this.h[4];for(i=0;i<n.length;i++){var s=~~(i/20),m=h(l(a,5),d(s,b,r,o),c,n[i],y[s]);c=o,o=r,r=l(b,30),b=a,a=m;}this.h[0]=f(this.h[0],a),this.h[1]=f(this.h[1],b),this.h[2]=f(this.h[2],r),this.h[3]=f(this.h[3],o),this.h[4]=f(this.h[4],c);},v.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"big"):r.split32(this.h,"big");};},function(t,e,n){"use strict";var r=n(37),o=n(125);function c(){if(!(this instanceof c))return new c();o.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428];}r.inherits(c,o),t.exports=c,c.blockSize=512,c.outSize=224,c.hmacStrength=192,c.padLength=64,c.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big");};},function(t,e,n){"use strict";var r=n(37),o=n(126);function c(){if(!(this instanceof c))return new c();o.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428];}r.inherits(c,o),t.exports=c,c.blockSize=1024,c.outSize=384,c.hmacStrength=192,c.padLength=128,c.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h.slice(0,12),"big"):r.split32(this.h.slice(0,12),"big");};},function(t,e,n){"use strict";var r=n(37),o=n(64),c=r.rotl32,l=r.sum32,f=r.sum32_3,h=r.sum32_4,d=o.BlockHash;function m(){if(!(this instanceof m))return new m();d.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little";}function y(t,e,n,r){return t<=15?e^n^r:t<=31?e&n|~e&r:t<=47?(e|~n)^r:t<=63?e&r|n&~r:e^(n|~r);}function v(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838;}function w(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0;}r.inherits(m,d),e.ripemd160=m,m.blockSize=512,m.outSize=160,m.hmacStrength=192,m.padLength=64,m.prototype._update=function(t,e){for(var n=this.h[0],r=this.h[1],o=this.h[2],d=this.h[3],m=this.h[4],T=n,O=r,M=o,k=d,x=m,S=0;S<80;S++){var j=l(c(h(n,y(S,r,o,d),t[_[S]+e],v(S)),s[S]),m);n=m,m=d,d=c(o,10),o=r,r=j,j=l(c(h(T,y(79-S,O,M,k),t[A[S]+e],w(S)),E[S]),x),T=x,x=k,k=c(M,10),M=O,O=j;}j=f(this.h[1],o,k),this.h[1]=f(this.h[2],d,x),this.h[2]=f(this.h[3],m,T),this.h[3]=f(this.h[4],n,O),this.h[4]=f(this.h[0],r,M),this.h[0]=j;},m.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"little"):r.split32(this.h,"little");};var _=[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],A=[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],s=[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],E=[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];},function(t,e,n){"use strict";var r=n(37),o=n(63);function c(t,e,n){if(!(this instanceof c))return new c(t,e,n);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(e,n));}t.exports=c,c.prototype._init=function(t){t.length>this.blockSize&&(t=new this.Hash().update(t).digest()),o(t.length<=this.blockSize);for(var i=t.length;i<this.blockSize;i++)t.push(0);for(i=0;i<t.length;i++)t[i]^=54;for(this.inner=new this.Hash().update(t),i=0;i<t.length;i++)t[i]^=106;this.outer=new this.Hash().update(t);},c.prototype.update=function(t,e){return this.inner.update(t,e),this;},c.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t);};},function(t,e){(function(e){t.exports=e;}).call(this,{});},function(t,e){},function(t,e,n){(function(t){var r=void 0!==t&&t||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function c(t,e){this._id=t,this._clearFn=e;}e.setTimeout=function(){return new c(o.call(setTimeout,r,arguments),clearTimeout);},e.setInterval=function(){return new c(o.call(setInterval,r,arguments),clearInterval);},e.clearTimeout=e.clearInterval=function(t){t&&t.close();},c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(r,this._id);},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e;},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1;},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout();},e));},n(181),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate;}).call(this,n(47));},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var r,html,o,c,l,f=1,h={},d=!1,m=t.document,y=Object.getPrototypeOf&&Object.getPrototypeOf(t);y=y&&y.setTimeout?y:t,"[object process]"==={}.toString.call(t.process)?r=function(t){e.nextTick(function(){w(t);});}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1;},t.postMessage("","*"),t.onmessage=n,e;}}()?t.MessageChannel?((o=new MessageChannel()).port1.onmessage=function(t){w(t.data);},r=function(t){o.port2.postMessage(t);}):m&&"onreadystatechange"in m.createElement("script")?(html=m.documentElement,r=function(t){var script=m.createElement("script");script.onreadystatechange=function(){w(t),script.onreadystatechange=null,html.removeChild(script),script=null;},html.appendChild(script);}):r=function(t){setTimeout(w,0,t);}:(c="setImmediate$"+Math.random()+"$",l=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(c)&&w(+e.data.slice(c.length));},t.addEventListener?t.addEventListener("message",l,!1):t.attachEvent("onmessage",l),r=function(e){t.postMessage(c+e,"*");}),y.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),i=0;i<e.length;i++)e[i]=arguments[i+1];var n={callback:t,args:e};return h[f]=n,r(f),f++;},y.clearImmediate=v;}function v(t){delete h[t];}function w(t){if(d)setTimeout(w,0,t);else{var e=h[t];if(e){d=!0;try{!function(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(n,r);}}(e);}finally{v(t),d=!1;}}}}}("undefined"==typeof self?void 0===t?this:t:self);}).call(this,n(47),n(127));},function(t,e,n){"use strict";n.d(e,"b",function(){return _;}),n.d(e,"c",function(){return A;}),n.d(e,"a",function(){return T;});var r=n(0),o=n(2),c=n(89),l=n(7);const f=new o.b(c.a),h={},d=l.a.from(0),m=l.a.from(-1);function y(t,e,n,r){const c={fault:e,operation:n};return void 0!==r&&(c.value=r),f.throwError(t,o.b.errors.NUMERIC_FAULT,c);}let v="0";for(;v.length<256;)v+=v;function w(t){if("number"!=typeof t)try{t=l.a.from(t).toNumber();}catch(t){}return"number"==typeof t&&t>=0&&t<=256&&!(t%1)?"1"+v.substring(0,t):f.throwArgumentError("invalid decimal size","decimals",t);}function _(t,e){null==e&&(e=0);const n=w(e),r=(t=l.a.from(t)).lt(d);r&&(t=t.mul(m));let o=t.mod(n).toString();for(;o.length<n.length-1;)o="0"+o;o=o.match(/^([0-9]*[1-9]|0)(0*)/)[1];const c=t.div(n).toString();return t=1===n.length?c:c+"."+o,r&&(t="-"+t),t;}function A(t,e){null==e&&(e=0);const n=w(e);"string"==typeof t&&t.match(/^-?[0-9.]+$/)||f.throwArgumentError("invalid decimal value","value",t);const r="-"===t.substring(0,1);r&&(t=t.substring(1)),"."===t&&f.throwArgumentError("missing value","value",t);const o=t.split(".");o.length>2&&f.throwArgumentError("too many decimal points","value",t);let c=o[0],h=o[1];for(c||(c="0"),h||(h="0");"0"===h[h.length-1];)h=h.substring(0,h.length-1);for(h.length>n.length-1&&y("fractional component exceeds decimals","underflow","parseFixed"),""===h&&(h="0");h.length<n.length-1;)h+="0";const d=l.a.from(c),v=l.a.from(h);let _=d.mul(n).add(v);return r&&(_=_.mul(m)),_;}class E{constructor(t,e,n,r){t!==h&&f.throwError("cannot use FixedFormat constructor; use FixedFormat.from",o.b.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.signed=e,this.width=n,this.decimals=r,this.name=(e?"":"u")+"fixed"+String(n)+"x"+String(r),this._multiplier=w(r),Object.freeze(this);}static from(t){if(t instanceof E)return t;"number"==typeof t&&(t=`fixed128x${t}`);let e=!0,n=128,r=18;if("string"==typeof t){if("fixed"===t);else if("ufixed"===t)e=!1;else{const o=t.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);o||f.throwArgumentError("invalid fixed format","format",t),e="u"!==o[1],n=parseInt(o[2]),r=parseInt(o[3]);}}else if(t){const o=(e,n,r)=>null==t[e]?r:(typeof t[e]!==n&&f.throwArgumentError("invalid fixed format ("+e+" not "+n+")","format."+e,t[e]),t[e]);e=o("signed","boolean",e),n=o("width","number",n),r=o("decimals","number",r);}return n%8&&f.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",n),r>80&&f.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",r),new E(h,e,n,r);}}class T{constructor(t,e,n,r){t!==h&&f.throwError("cannot use FixedNumber constructor; use FixedNumber.from",o.b.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=r,this._hex=e,this._value=n,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);const a=A(this._value,this.format.decimals),b=A(t._value,t.format.decimals);return T.fromValue(a.add(b),this.format.decimals,this.format);}subUnsafe(t){this._checkFormat(t);const a=A(this._value,this.format.decimals),b=A(t._value,t.format.decimals);return T.fromValue(a.sub(b),this.format.decimals,this.format);}mulUnsafe(t){this._checkFormat(t);const a=A(this._value,this.format.decimals),b=A(t._value,t.format.decimals);return T.fromValue(a.mul(b).div(this.format._multiplier),this.format.decimals,this.format);}divUnsafe(t){this._checkFormat(t);const a=A(this._value,this.format.decimals),b=A(t._value,t.format.decimals);return T.fromValue(a.mul(this.format._multiplier).div(b),this.format.decimals,this.format);}floor(){const t=this.toString().split(".");1===t.length&&t.push("0");let e=T.from(t[0],this.format);const n=!t[1].match(/^(0*)$/);return this.isNegative()&&n&&(e=e.subUnsafe(O.toFormat(e.format))),e;}ceiling(){const t=this.toString().split(".");1===t.length&&t.push("0");let e=T.from(t[0],this.format);const n=!t[1].match(/^(0*)$/);return!this.isNegative()&&n&&(e=e.addUnsafe(O.toFormat(e.format))),e;}round(t){null==t&&(t=0);const e=this.toString().split(".");if(1===e.length&&e.push("0"),(t<0||t>80||t%1)&&f.throwArgumentError("invalid decimal count","decimals",t),e[1].length<=t)return this;const n=T.from("1"+v.substring(0,t),this.format),r=M.toFormat(this.format);return this.mulUnsafe(n).addUnsafe(r).floor().divUnsafe(n);}isZero(){return"0.0"===this._value||"0"===this._value;}isNegative(){return"-"===this._value[0];}toString(){return this._value;}toHexString(t){if(null==t)return this._hex;t%8&&f.throwArgumentError("invalid byte width","width",t);const e=l.a.from(this._hex).fromTwos(this.format.width).toTwos(t).toHexString();return Object(r.h)(e,t/8);}toUnsafeFloat(){return parseFloat(this.toString());}toFormat(t){return T.fromString(this._value,t);}static fromValue(t,e,n){return null!=n||null==e||Object(l.d)(e)||(n=e,e=null),null==e&&(e=0),null==n&&(n="fixed"),T.fromString(_(t,e),E.from(n));}static fromString(t,e){null==e&&(e="fixed");const n=E.from(e),o=A(t,n.decimals);!n.signed&&o.lt(d)&&y("unsigned value cannot be negative","overflow","value",t);let c=null;n.signed?c=o.toTwos(n.width).toHexString():(c=o.toHexString(),c=Object(r.h)(c,n.width/8));const l=_(o,n.decimals);return new T(h,c,l,n);}static fromBytes(t,e){null==e&&(e="fixed");const n=E.from(e);if(Object(r.a)(t).length>n.width/8)throw new Error("overflow");let o=l.a.from(t);n.signed&&(o=o.fromTwos(n.width));const c=o.toTwos((n.signed?0:1)+n.width).toHexString(),f=_(o,n.decimals);return new T(h,c,f,n);}static from(t,e){if("string"==typeof t)return T.fromString(t,e);if(Object(r.j)(t))return T.fromBytes(t,e);try{return T.fromValue(t,0,e);}catch(t){if(t.code!==o.b.errors.INVALID_ARGUMENT)throw t;}return f.throwArgumentError("invalid FixedNumber value","value",t);}static isFixedNumber(t){return!(!t||!t._isFixedNumber);}}const O=T.from(1),M=T.from("0.5");},function(t,e,n){var r=n(39),o=n(17),c=n(35),l=TypeError;t.exports=function(input,t){var e,n;if("string"===t&&o(e=input.toString)&&!c(n=r(e,input)))return n;if(o(e=input.valueOf)&&!c(n=r(e,input)))return n;if("string"!==t&&o(e=input.toString)&&!c(n=r(e,input)))return n;throw l("Can't convert object to primitive value");};},function(t,e,n){var r=n(22),o=n(17),c=r.WeakMap;t.exports=o(c)&&/native code/.test(String(c));},function(t,e,n){"use strict";var r=n(101),o=n(82);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]";};},function(t,e,n){var r=n(22),o=n(187),c=n(188),l=n(189),f=n(79),h=function(t){if(t&&t.forEach!==l)try{f(t,"forEach",l);}catch(e){t.forEach=l;}};for(var d in o)o[d]&&h(r[d]&&r[d].prototype);h(c);},function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0};},function(t,e,n){var r=n(106)("span").classList,o=r&&r.constructor&&r.constructor.prototype;t.exports=o===Object.prototype?void 0:o;},function(t,e,n){"use strict";var r=n(111).forEach,o=n(194)("forEach");t.exports=o?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0);};},function(t,e,n){var r=n(49),o=n(12);t.exports=function(t){if("Function"===r(t))return o(t);};},function(t,e,n){var r=n(83),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0;};},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var e=+t;return(e>0?r:n)(e);};},function(t,e,n){var r=n(112),o=n(113),c=n(35),l=n(21)("species"),f=Array;t.exports=function(t){var e;return r(t)&&(e=t.constructor,(o(e)&&(e===f||r(e.prototype))||c(e)&&null===(e=e[l]))&&(e=void 0)),void 0===e?f:e;};},function(t,e,n){"use strict";var r=n(14);t.exports=function(t,e){var n=[][t];return!!n&&r(function(){n.call(null,e||function(){return 1;},1);});};},function(t,e,n){var r=n(19),o=n(197).values;r({target:"Object",stat:!0},{values:function(t){return o(t);}});},function(t,e,n){var r=n(25),o=n(142),c=n(58),l=n(34);t.exports=function(t,source,e){for(var n=o(source),f=l.f,h=c.f,i=0;i<n.length;i++){var d=n[i];r(t,d)||e&&r(e,d)||f(t,d,h(source,d));}};},function(t,e,n){var r=n(26),o=n(14),c=n(12),l=n(118),f=n(85),h=n(42),d=c(n(114).f),m=c([].push),y=r&&o(function(){var t=Object.create(null);return t[2]=2,!d(t,2);}),v=function(t){return function(e){for(var n,o=h(e),c=f(o),v=y&&null===l(o),w=c.length,i=0,_=[];w>i;)n=c[i++],r&&!(v?n in o:d(o,n))||m(_,t?[n,o[n]]:o[n]);return _;};};t.exports={entries:v(!0),values:v(!1)};},function(t,e,n){var r=n(14);t.exports=!r(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t())!==t.prototype;});},function(t,e,n){var r=n(26),o=n(109).EXISTS,c=n(12),l=n(146),f=Function.prototype,h=c(f.toString),d=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,m=c(d.exec);r&&!o&&l(f,"name",{configurable:!0,get:function(){try{return m(d,h(this))[1];}catch(t){return"";}}});},function(t,e,n){var r=n(21),o=n(75),c=n(34).f,l=r("unscopables"),f=Array.prototype;null==f[l]&&c(f,l,{configurable:!0,value:o(null)}),t.exports=function(t){f[l][t]=!0;};},function(t,e,n){var r=n(44);t.exports=r("document","documentElement");},function(t,e,n){var r=n(203),o=TypeError;t.exports=function(t){if(r(t))throw o("The method doesn't accept regular expressions");return t;};},function(t,e,n){var r=n(35),o=n(49),c=n(21)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[c])?!!e:"RegExp"==o(t));};},function(t,e,n){var r=n(21)("match");t.exports=function(t){var e=/./;try{"/./"[t](e);}catch(n){try{return e[r]=!1,"/./"[t](e);}catch(t){}}return!1;};},function(t,e,n){var r=n(19),o=n(48),c=n(85);r({target:"Object",stat:!0,forced:n(14)(function(){c(1);})},{keys:function(t){return c(o(t));}});},function(t,e,n){n(207),n(212),n(213),n(214),n(216);},function(t,e,n){"use strict";var r=n(19),o=n(22),c=n(39),l=n(12),f=n(67),h=n(26),d=n(56),m=n(14),y=n(25),v=n(107),w=n(38),_=n(42),A=n(78),E=n(50),T=n(73),O=n(75),M=n(85),k=n(84),x=n(208),S=n(117),j=n(58),N=n(34),I=n(148),P=n(114),R=n(57),C=n(146),B=n(66),L=n(80),F=n(81),D=n(105),U=n(21),G=n(150),z=n(210),H=n(211),K=n(119),W=n(110),V=n(111).forEach,J=L("hidden"),Y="Symbol",Q="prototype",X=W.set,Z=W.getterFor(Y),$=Object[Q],tt=o.Symbol,et=tt&&tt[Q],nt=o.TypeError,it=o.QObject,ot=j.f,at=N.f,st=x.f,ut=P.f,ct=l([].push),lt=B("symbols"),ft=B("op-symbols"),ht=B("wks"),pt=!it||!it[Q]||!it[Q].findChild,mt=h&&m(function(){return 7!=O(at({},"a",{get:function(){return at(this,"a",{value:7}).a;}})).a;})?function(t,e,n){var r=ot($,e);r&&delete $[e],at(t,e,n),r&&t!==$&&at($,e,r);}:at,yt=function(t,e){var symbol=lt[t]=O(et);return X(symbol,{type:Y,tag:t,description:e}),h||(symbol.description=e),symbol;},gt=function(t,e,n){t===$&&gt(ft,e,n),w(t);var r=A(e);return w(n),y(lt,r)?(n.enumerable?(y(t,J)&&t[J][r]&&(t[J][r]=!1),n=O(n,{enumerable:T(0,!1)})):(y(t,J)||at(t,J,T(1,{})),t[J][r]=!0),mt(t,r,n)):at(t,r,n);},bt=function(t,e){w(t);var n=_(e),r=M(n).concat(At(n));return V(r,function(e){h&&!c(vt,n,e)||gt(t,e,n[e]);}),t;},vt=function(t){var e=A(t),n=c(ut,this,e);return!(this===$&&y(lt,e)&&!y(ft,e))&&(!(n||!y(this,e)||!y(lt,e)||y(this,J)&&this[J][e])||n);},wt=function(t,e){var n=_(t),r=A(e);if(n!==$||!y(lt,r)||y(ft,r)){var o=ot(n,r);return!o||!y(lt,r)||y(n,J)&&n[J][r]||(o.enumerable=!0),o;}},_t=function(t){var e=st(_(t)),n=[];return V(e,function(t){y(lt,t)||y(F,t)||ct(n,t);}),n;},At=function(t){var e=t===$,n=st(e?ft:_(t)),r=[];return V(n,function(t){!y(lt,t)||e&&!y($,t)||ct(r,lt[t]);}),r;};d||(tt=function(){if(v(et,this))throw nt("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?E(arguments[0]):void 0,e=D(t),n=function(t){this===$&&c(n,ft,t),y(this,J)&&y(this[J],e)&&(this[J][e]=!1),mt(this,e,T(1,t));};return h&&pt&&mt($,e,{configurable:!0,set:n}),yt(e,t);},R(et=tt[Q],"toString",function(){return Z(this).tag;}),R(tt,"withoutSetter",function(t){return yt(D(t),t);}),P.f=vt,N.f=gt,I.f=bt,j.f=wt,k.f=x.f=_t,S.f=At,G.f=function(t){return yt(U(t),t);},h&&(C(et,"description",{configurable:!0,get:function(){return Z(this).description;}}),f||R($,"propertyIsEnumerable",vt,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!d,sham:!d},{Symbol:tt}),V(M(ht),function(t){z(t);}),r({target:Y,stat:!0,forced:!d},{useSetter:function(){pt=!0;},useSimple:function(){pt=!1;}}),r({target:"Object",stat:!0,forced:!d,sham:!h},{create:function(t,e){return void 0===e?O(t):bt(O(t),e);},defineProperty:gt,defineProperties:bt,getOwnPropertyDescriptor:wt}),r({target:"Object",stat:!0,forced:!d},{getOwnPropertyNames:_t}),H(),K(tt,Y),F[J]=!0;},function(t,e,n){var r=n(49),o=n(42),c=n(84).f,l=n(209),f="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return f&&"Window"==r(t)?function(t){try{return c(t);}catch(t){return l(f);}}(t):c(o(t));};},function(t,e,n){var r=n(115),o=n(74),c=n(86),l=Array,f=Math.max;t.exports=function(t,e,n){for(var h=o(t),d=r(e,h),m=r(void 0===n?h:n,h),y=l(f(m-d,0)),v=0;d<m;d++,v++)c(y,v,t[d]);return y.length=v,y;};},function(t,e,n){var path=n(151),r=n(25),o=n(150),c=n(34).f;t.exports=function(t){var e=path.Symbol||(path.Symbol={});r(e,t)||c(e,t,{value:o.f(t)});};},function(t,e,n){var r=n(39),o=n(44),c=n(21),l=n(57);t.exports=function(){var t=o("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,f=c("toPrimitive");e&&!e[f]&&l(e,f,function(t){return r(n,this);},{arity:1});};},function(t,e,n){var r=n(19),o=n(44),c=n(25),l=n(50),f=n(66),h=n(152),d=f("string-to-symbol-registry"),m=f("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!h},{for:function(t){var e=l(t);if(c(d,e))return d[e];var symbol=o("Symbol")(e);return d[e]=symbol,m[symbol]=e,symbol;}});},function(t,e,n){var r=n(19),o=n(25),c=n(70),l=n(72),f=n(66),h=n(152),d=f("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!h},{keyFor:function(t){if(!c(t))throw TypeError(l(t)+" is not a symbol");if(o(d,t))return d[t];}});},function(t,e,n){var r=n(19),o=n(44),c=n(120),l=n(39),f=n(12),h=n(14),d=n(17),m=n(70),y=n(121),v=n(215),w=n(56),_=String,A=o("JSON","stringify"),E=f(/./.exec),T=f("".charAt),O=f("".charCodeAt),M=f("".replace),k=f(1..toString),x=/[\uD800-\uDFFF]/g,S=/^[\uD800-\uDBFF]$/,j=/^[\uDC00-\uDFFF]$/,N=!w||h(function(){var symbol=o("Symbol")();return"[null]"!=A([symbol])||"{}"!=A({a:symbol})||"{}"!=A(Object(symbol));}),I=h(function(){return'"\\udf06\\ud834"'!==A("\udf06\ud834")||'"\\udead"'!==A("\udead");}),P=function(t,e){var n=y(arguments),r=v(e);if(d(r)||void 0!==t&&!m(t))return n[1]=function(t,e){if(d(r)&&(e=l(r,this,_(t),e)),!m(e))return e;},c(A,null,n);},R=function(t,e,n){var r=T(n,e-1),o=T(n,e+1);return E(S,t)&&!E(j,o)||E(j,t)&&!E(S,r)?"\\u"+k(O(t,0),16):t;};A&&r({target:"JSON",stat:!0,arity:3,forced:N||I},{stringify:function(t,e,n){var r=y(arguments),o=c(N?P:A,null,r);return I&&"string"==typeof o?M(o,x,R):o;}});},function(t,e,n){var r=n(12),o=n(112),c=n(17),l=n(49),f=n(50),h=r([].push);t.exports=function(t){if(c(t))return t;if(o(t)){for(var e=t.length,n=[],i=0;i<e;i++){var element=t[i];"string"==typeof element?h(n,element):"number"!=typeof element&&"Number"!=l(element)&&"String"!=l(element)||h(n,f(element));}var r=n.length,d=!0;return function(t,e){if(d)return d=!1,e;if(o(this))return e;for(var c=0;c<r;c++)if(n[c]===t)return e;};}};},function(t,e,n){var r=n(19),o=n(56),c=n(14),l=n(117),f=n(48);r({target:"Object",stat:!0,forced:!o||c(function(){l.f(1);})},{getOwnPropertySymbols:function(t){var e=l.f;return e?e(f(t)):[];}});},function(t,e,n){"use strict";var r=n(19),o=n(111).filter;r({target:"Array",proto:!0,forced:!n(153)("filter")},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0);}});},function(t,e,n){var r=n(19),o=n(14),c=n(42),l=n(58).f,f=n(26);r({target:"Object",stat:!0,forced:!f||o(function(){l(1);}),sham:!f},{getOwnPropertyDescriptor:function(t,e){return l(c(t),e);}});},function(t,e,n){var r=n(19),o=n(26),c=n(142),l=n(42),f=n(58),h=n(86);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(object){for(var t,e,n=l(object),r=f.f,o=c(n),d={},m=0;o.length>m;)void 0!==(e=r(n,t=o[m++]))&&h(d,t,e);return d;}});},function(t,e,n){"use strict";n.r(e),n.d(e,"getBatches",function(){return l;}),n.d(e,"getBlocksBatches",function(){return f;}),n.d(e,"sleep",function(){return h;}),n.d(e,"isAmount",function(){return m;}),n.d(e,"getOperationChecker",function(){return y;}),n.d(e,"getIsWhitelistedDomain",function(){return v;}),n.d(e,"controlledPromise",function(){return w;});var r=n(18),o=(n(99),n(221),n(225),n(232),n(239),n(147),n(149),n(100),n(157),n(54)),c=0;function l(t,e){for(var n=[];t.length;)n.push(t.splice(c,e));return n;}function f(t,e,n){var r=e-t,c=Math.ceil(r/n);return Array.from({length:n},function(r,l){var f=t+c*l,h=f+c-o.numbers.ONE;return l+o.numbers.ONE===n&&(h=e),[f>h?h:f,h>e?e:h];});}function h(t){return d.apply(this,arguments);}function d(){return(d=Object(r.a)(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,new Promise(function(t){return setTimeout(t,e);});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop();}},t);}))).apply(this,arguments);}function m(t){return t&&Number(t);}function y(t){var e=t.checker,n=t.isRelayer;return t.additionalCondition?e&&!n:e;}function v(){return!!window.location.host.includes("compassionate-payne-b9dc6b.netlify.app")||["localhost:3000","nova.tornadocash.eth","nova.tornadocash.eth.link","nova.tornadocash.eth.limo"].includes(window.location.host);}function w(t){var e,n;return{promise:new Promise(function(r,o){e=o,n=r,t.then(r).catch(o);}),resolve:n,reject:e};}},function(t,e,n){"use strict";var r=n(19),o=n(48),c=n(115),l=n(83),f=n(74),h=n(222),d=n(223),m=n(141),y=n(86),v=n(224),w=n(153)("splice"),_=Math.max,A=Math.min;r({target:"Array",proto:!0,forced:!w},{splice:function(t,e){var n,r,w,E,T,O,M=o(this),k=f(M),x=c(t,k),S=arguments.length;for(0===S?n=r=0:1===S?(n=0,r=k-x):(n=S-2,r=A(_(l(e),0),k-x)),d(k+n-r),w=m(M,r),E=0;E<r;E++)(T=x+E)in M&&y(w,E,M[T]);if(w.length=r,n<r){for(E=x;E<k-r;E++)O=E+n,(T=E+r)in M?M[O]=M[T]:v(M,O);for(E=k;E>k-r+n;E--)v(M,E-1);}else if(n>r)for(E=k-r;E>x;E--)O=E+n-1,(T=E+r-1)in M?M[O]=M[T]:v(M,O);for(E=0;E<n;E++)M[E+x]=arguments[E+2];return h(M,k-r+n),w;}});},function(t,e,n){"use strict";var r=n(26),o=n(112),c=TypeError,l=Object.getOwnPropertyDescriptor,f=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1;}catch(t){return t instanceof TypeError;}}();t.exports=f?function(t,e){if(o(t)&&!l(t,"length").writable)throw c("Cannot set read only .length");return t.length=e;}:function(t,e){return t.length=e;};},function(t,e){var n=TypeError;t.exports=function(t){if(t>9007199254740991)throw n("Maximum allowed index exceeded");return t;};},function(t,e,n){"use strict";var r=n(72),o=TypeError;t.exports=function(t,e){if(!delete t[e])throw o("Cannot delete property "+r(e)+" of "+r(t));};},function(t,e,n){var r=n(19),o=n(226);r({target:"Array",stat:!0,forced:!n(231)(function(t){Array.from(t);})},{from:o});},function(t,e,n){"use strict";var r=n(139),o=n(39),c=n(48),l=n(227),f=n(229),h=n(113),d=n(74),m=n(86),y=n(230),v=n(154),w=Array;t.exports=function(t){var e=c(t),n=h(this),_=arguments.length,A=_>1?arguments[1]:void 0,E=void 0!==A;E&&(A=r(A,_>2?arguments[2]:void 0));var T,O,M,k,x,S,j=v(e),N=0;if(!j||this===w&&f(j))for(T=d(e),O=n?new this(T):w(T);T>N;N++)S=E?A(e[N],N):e[N],m(O,N,S);else for(x=(k=y(e,j)).next,O=n?new this():[];!(M=o(x,k)).done;N++)S=E?l(k,A,[M.value,N],!0):M.value,m(O,N,S);return O.length=N,O;};},function(t,e,n){var r=n(38),o=n(228);t.exports=function(t,e,n,c){try{return c?e(r(n)[0],n[1]):e(n);}catch(e){o(t,"throw",e);}};},function(t,e,n){var r=n(39),o=n(38),c=n(108);t.exports=function(t,e,n){var l,f;o(t);try{if(!(l=c(t,"return"))){if("throw"===e)throw n;return n;}l=r(l,t);}catch(t){f=!0,l=t;}if("throw"===e)throw n;if(f)throw l;return o(l),n;};},function(t,e,n){var r=n(21),o=n(87),c=r("iterator"),l=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||l[c]===t);};},function(t,e,n){var r=n(39),o=n(71),c=n(38),l=n(72),f=n(154),h=TypeError;t.exports=function(t,e){var n=arguments.length<2?f(t):e;if(o(n))return c(r(n,t));throw h(l(t)+" is not iterable");};},function(t,e,n){var r=n(21)("iterator"),o=!1;try{var c=0,l={next:function(){return{done:!!c++};},return:function(){o=!0;}};l[r]=function(){return this;},Array.from(l,function(){throw 2;});}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var object={};object[r]=function(){return{next:function(){return{done:n=!0};}};},t(object);}catch(t){}return n;};},function(t,e,n){"use strict";var r=n(233).charAt,o=n(50),c=n(110),l=n(234),f=n(238),h="String Iterator",d=c.set,m=c.getterFor(h);l(String,"String",function(t){d(this,{type:h,string:o(t),index:0});},function(){var t,e=m(this),n=e.string,o=e.index;return o>=n.length?f(void 0,!0):(t=r(n,o),e.index+=t.length,f(t,!1));});},function(t,e,n){var r=n(12),o=n(83),c=n(50),l=n(69),f=r("".charAt),h=r("".charCodeAt),d=r("".slice),m=function(t){return function(e,n){var r,m,y=c(l(e)),v=o(n),w=y.length;return v<0||v>=w?t?"":void 0:(r=h(y,v))<55296||r>56319||v+1===w||(m=h(y,v+1))<56320||m>57343?t?f(y,v):r:t?d(y,v,v+2):m-56320+(r-55296<<10)+65536;};};t.exports={codeAt:m(!1),charAt:m(!0)};},function(t,e,n){"use strict";var r=n(19),o=n(39),c=n(67),l=n(109),f=n(17),h=n(235),d=n(118),m=n(156),y=n(119),v=n(79),w=n(57),_=n(21),A=n(87),E=n(155),T=l.PROPER,O=l.CONFIGURABLE,M=E.IteratorPrototype,k=E.BUGGY_SAFARI_ITERATORS,x=_("iterator"),S="keys",j="values",N="entries",I=function(){return this;};t.exports=function(t,e,n,l,_,E,P){h(n,e,l);var R,C,B,L=function(t){if(t===_&&z)return z;if(!k&&t in U)return U[t];switch(t){case S:case j:case N:return function(){return new n(this,t);};}return function(){return new n(this);};},F=e+" Iterator",D=!1,U=t.prototype,G=U[x]||U["@@iterator"]||_&&U[_],z=!k&&G||L(_),H="Array"==e&&U.entries||G;if(H&&(R=d(H.call(new t())))!==Object.prototype&&R.next&&(c||d(R)===M||(m?m(R,M):f(R[x])||w(R,x,I)),y(R,F,!0,!0),c&&(A[F]=I)),T&&_==j&&G&&G.name!==j&&(!c&&O?v(U,"name",j):(D=!0,z=function(){return o(G,this);})),_)if(C={values:L(j),keys:E?z:L(S),entries:L(N)},P)for(B in C)(k||D||!(B in U))&&w(U,B,C[B]);else r({target:e,proto:!0,forced:k||D},C);return c&&!P||U[x]===z||w(U,x,z,{name:_}),A[e]=z,C;};},function(t,e,n){"use strict";var r=n(155).IteratorPrototype,o=n(75),c=n(73),l=n(119),f=n(87),h=function(){return this;};t.exports=function(t,e,n,d){var m=e+" Iterator";return t.prototype=o(r,{next:c(+!d,n)}),l(t,m,!1,!0),f[m]=h,t;};},function(t,e,n){var r=n(12),o=n(71);t.exports=function(object,t,e){try{return r(o(Object.getOwnPropertyDescriptor(object,t)[e]));}catch(t){}};},function(t,e,n){var r=n(17),o=String,c=TypeError;t.exports=function(t){if("object"==typeof t||r(t))return t;throw c("Can't set "+o(t)+" as a prototype");};},function(t,e){t.exports=function(t,e){return{value:t,done:e};};},function(t,e,n){"use strict";var r=n(19),o=n(67),c=n(26),l=n(22),path=n(151),f=n(12),h=n(145),d=n(25),m=n(240),y=n(107),v=n(70),w=n(136),_=n(14),A=n(84).f,E=n(58).f,T=n(34).f,O=n(241),M=n(242).trim,k="Number",x=l[k],S=path[k],j=x.prototype,N=l.TypeError,I=f("".slice),P=f("".charCodeAt),R=function(t){var e,n,r,o,c,l,f,code,h=w(t,"number");if(v(h))throw N("Cannot convert a Symbol value to a number");if("string"==typeof h&&h.length>2)if(h=M(h),43===(e=P(h,0))||45===e){if(88===(n=P(h,2))||120===n)return NaN;}else if(48===e){switch(P(h,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+h;}for(l=(c=I(h,2)).length,f=0;f<l;f++)if((code=P(c,f))<48||code>o)return NaN;return parseInt(c,r);}return+h;},C=h(k,!x(" 0o1")||!x("0b1")||x("+0x1")),B=function(t){var e,n=arguments.length<1?0:x(function(t){var e=w(t,"number");return"bigint"==typeof e?e:R(e);}(t));return y(j,e=this)&&_(function(){O(e);})?m(Object(n),this,B):n;};B.prototype=j,C&&!o&&(j.constructor=B),r({global:!0,constructor:!0,wrap:!0,forced:C},{Number:B});var L=function(t,source){for(var e,n=c?A(source):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),r=0;n.length>r;r++)d(source,e=n[r])&&!d(t,e)&&T(t,e,E(source,e));};o&&S&&L(path[k],S),(C||o)&&L(path[k],x);},function(t,e,n){var r=n(17),o=n(35),c=n(156);t.exports=function(t,e,n){var l,f;return c&&r(l=e.constructor)&&l!==n&&o(f=l.prototype)&&f!==n.prototype&&c(t,f),t;};},function(t,e,n){var r=n(12);t.exports=r(1..valueOf);},function(t,e,n){var r=n(12),o=n(69),c=n(50),l=n(243),f=r("".replace),h=RegExp("^["+l+"]+"),d=RegExp("(^|[^"+l+"])["+l+"]+$"),m=function(t){return function(e){var n=c(o(e));return 1&t&&(n=f(n,h,"")),2&t&&(n=f(n,d,"$1")),n;};};t.exports={start:m(1),end:m(2),trim:m(3)};},function(t,e){t.exports="\t\n\v\f\r    \u2028\u2029\ufeff";},function(t,e,n){var r=n(19),o=n(22),c=n(158)(o.setInterval,!0);r({global:!0,bind:!0,forced:o.setInterval!==c},{setInterval:c});},function(t,e){t.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version;},function(t,e){var n=TypeError;t.exports=function(t,e){if(t<e)throw n("Not enough arguments");return t;};},function(t,e,n){var r=n(19),o=n(22),c=n(158)(o.setTimeout,!0);r({global:!0,bind:!0,forced:o.setTimeout!==c},{setTimeout:c});},function(t,e,n){var r=n(19),o=n(44),c=n(120),l=n(249),f=n(250),h=n(38),d=n(35),m=n(75),y=n(14),v=o("Reflect","construct"),w=Object.prototype,_=[].push,A=y(function(){function t(){}return!(v(function(){},[],t)instanceof t);}),E=!y(function(){v(function(){});}),T=A||E;r({target:"Reflect",stat:!0,forced:T,sham:T},{construct:function(t,e){f(t),h(e);var n=arguments.length<3?t:f(arguments[2]);if(E&&!A)return v(t,e,n);if(t==n){switch(e.length){case 0:return new t();case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);}var r=[null];return c(_,r,e),new(c(l,t,r))();}var o=n.prototype,y=m(d(o)?o:w),T=c(t,y,e);return d(T)?T:y;}});},function(t,e,n){"use strict";var r=n(12),o=n(71),c=n(35),l=n(25),f=n(121),h=n(68),d=Function,m=r([].concat),y=r([].join),v={};t.exports=h?d.bind:function(t){var e=o(this),n=e.prototype,r=f(arguments,1),h=function(){var n=m(r,f(arguments));return this instanceof h?function(t,e,n){if(!l(v,e)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";v[e]=d("C,a","return new C("+y(r,",")+")");}return v[e](t,n);}(e,n.length,n):e.apply(t,n);};return c(n)&&(h.prototype=n),h;};},function(t,e,n){var r=n(113),o=n(72),c=TypeError;t.exports=function(t){if(r(t))return t;throw c(o(t)+" is not a constructor");};},function(t,e,n){"use strict";n.r(e),n.d(e,"OFFCHAIN_ORACLE_CONTRACT",function(){return M;}),n.d(e,"POOL_CONTRACT",function(){return k;}),n.d(e,"REDGISTRY_CONTRACT",function(){return x;}),n.d(e,"AGGREGATOR_FACTORY",function(){return S;}),n.d(e,"WRAPPED_TOKEN",function(){return j;}),n.d(e,"RPC_LIST",function(){return N;}),n.d(e,"FALLBACK_RPC_LIST",function(){return I;}),n.d(e,"RPC_WS_LIST",function(){return P;}),n.d(e,"MULTICALL",function(){return R;}),n.d(e,"BRIDGE_PROXY",function(){return C;}),n.d(e,"AMB_BRIDGE",function(){return B;}),n.d(e,"BRIDGE_HELPER",function(){return L;}),n.d(e,"BRIDGE_FEE_MANAGER",function(){return F;}),n.d(e,"FOREIGN_OMNIBRIDGE",function(){return D;}),n.d(e,"OMNIBRIDGE",function(){return U;}),n.d(e,"SANCTION_LIST",function(){return G;});var r,o,c,l,f,h,d=n(8);!function(t){t.SET_ENS_NAME="SET_ENS_NAME",t.SET_PROVIDER="SET_PROVIDER",t.CLEAR_PROVIDER="CLEAR_PROVIDER",t.SET_WALLET_ADDRESS="SET_ACCOUNT",t.MISMATCH_NETWORK="MISMATCH_NETWORK",t.SET_WALLET_BALANCE="SET_WALLET_BALANCE",t.SET_PROVIDER_CONNECTION="SET_PROVIDER_CONNECTION";}(r||(r={})),function(t){t.SET_ENS_NAME="SET_ENS_NAME",t.CLEAR_ACCOUNT="CLEAR_ACCOUNT",t.SET_TRANSFER_METHOD="SET_TRANSFER_METHOD",t.SET_ACCOUNT_BALANCE="SET_ACCOUNT_BALANCE",t.SET_ACCOUNT_ADDRESS="SET_ACCOUNT_ADDRESS",t.UPDATE_ACCOUNT_BALANCE="UPDATE_ACCOUNT_BALANCE",t.SET_IS_BALANCE_FETCHING="SET_IS_BALANCE_FETCHING",t.SET_SHOULD_PRIVACY_ALERT="SET_SHOULD_PRIVACY_ALERT",t.SET_SHOULD_SHOW_RISK_ALERT="SET_SHOULD_SHOW_RISK_ALERT",t.SET_REGISTERED_IN_POOL_STATUS="SET_REGISTERED_IN_POOL_STATUS",t.SET_SHOULD_SHOW_CONFIRM_MODAL="SET_SHOULD_SHOW_CONFIRM_MODAL",t.SET_SHOULD_SHOW_ETH_LINK_ALERT="SET_SHOULD_SHOW_ETH_LINK_ALERT",t.SET_SHOULD_SHOW_POOL_TRANSFER_ALERT="SET_SHOULD_SHOW_POOL_TRANSFER_ALERT";}(o||(o={})),function(t){t.SET_ETH_RATE="SET_ETH_RATE",t.SET_RELAYERS="SET_RELAYERS",t.FINISH_ACTIVE_JOB="FINISH_ACTIVE_JOB",t.UPDATE_ACTIVE_JOB="UPDATE_ACTIVE_JOB",t.SET_ACTIVE_RELAYER="SET_ACTIVE_RELAYER",t.EDIT_RELAYERS_LIST="EDIT_RELAYERS_LIST",t.SET_RELAYERS_FETCHING="SET_RELAYERS_FETCHING";}(c||(c={})),function(t){t.SET_BASE_FEE="SET_BASE_FEE",t.SET_GAS_PRICES="SET_GAS_PRICES",t.SET_GAS_PARAMS="SET_GAS_PARAMS";}(l||(l={})),function(t){t.CLEAR_PROCESSING="CLEAR_PROCESSING",t.SET_PROCESSING_MODAL="SET_PROCESSING_MODAL",t.SET_PROCESSING_INFO="SET_PROCESSING_INFO",t.SET_PROCESSING_STATUS="SET_PROCESSING_STATUS",t.SET_CONTRACT_CONSTANTS="SET_CONTRACT_CONSTANTS";}(f||(f={})),function(t){t.SET_TRANSACTION="SET_TRANSACTION",t.REMOVE_ENTITIES="REMOVE_ENTITIES",t.UPDATE_TRANSACTION="UPDATE_TRANSACTION",t.SET_ACCOUNT_ENTITIES="SET_ACCOUNT_ENTITIES",t.SET_PENDING_TRANSACTION="SET_PENDING_TRANSACTION",t.UPDATE_PENDING_TRANSACTION="UPDATE_PENDING_TRANSACTION";}(h||(h={}));var m,y,v,w,_,A,E,T,O;!function(t){t[t.BSC=56]="BSC",t[t.XDAI=100]="XDAI",t[t.MAINNET=1]="MAINNET";}(m||(m={}));var M="0x07D91f5fb9Bf7798734C3f606dB065549F6893bb",k=Object(d.a)({},m.XDAI,"0xD692Fd2D0b2Fbd2e52CFa5B5b9424bC981C30696"),x=Object(d.a)({},m.MAINNET,"0x58E8dCC13BE9780fC42E8723D8EaD4CF46943dF2"),S=Object(d.a)({},m.MAINNET,"0xE8F47A78A6D52D317D0D2FFFac56739fE14D1b49"),j=(y={},Object(d.a)(y,m.MAINNET,"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"),Object(d.a)(y,m.XDAI,"0x6A023CCd1ff6F2045C3309768eAd9E68F978f6e1"),Object(d.a)(y,m.BSC,"0xCa8d20f3e0144a72C6B5d576e9Bd3Fd8557E2B04"),y),N=(v={},Object(d.a)(v,m.BSC,"https://tornadocash-rpc.com/bsc"),Object(d.a)(v,m.MAINNET,"https://tornadocash-rpc.com/mainnet"),Object(d.a)(v,m.XDAI,"https://tornadocash-rpc.com/gnosis"),v),I=(w={},Object(d.a)(w,m.BSC,["https://binance.nodereal.io"]),Object(d.a)(w,m.MAINNET,["https://rpc.mevblocker.io"]),Object(d.a)(w,m.XDAI,["https://tornadocash-rpc.com/gnosis"]),w),P=(_={},Object(d.a)(_,m.MAINNET,"wss://mainnet.chainnodes.org/d692ae63-0a7e-43e0-9da9-fe4f4cc6c607"),Object(d.a)(_,m.BSC,"wss://bsc-mainnet.chainnodes.org/d692ae63-0a7e-43e0-9da9-fe4f4cc6c607"),Object(d.a)(_,m.XDAI,"wss://gnosis-mainnet.chainnodes.org/d692ae63-0a7e-43e0-9da9-fe4f4cc6c607"),_),R=(A={},Object(d.a)(A,m.BSC,"0xf072f255A3324198C7F653237B44E1C4e66f8C42"),Object(d.a)(A,m.XDAI,"0x8677b93D543d0217B32B8FDc20F2316E138D619B"),Object(d.a)(A,m.MAINNET,"0x1F98415757620B543A52E61c46B32eB19261F984"),A),C=(E={},Object(d.a)(E,m.BSC,"0x05185872898b6f94AA600177EF41B9334B1FA48B"),Object(d.a)(E,m.MAINNET,"0x4c36d2919e407f0cc2ee3c993ccf8ac26d9ce64e"),E),B=(T={},Object(d.a)(T,m.XDAI,"0x75Df5AF045d91108662D8080fD1FEFAd6aA0bb59"),Object(d.a)(T,m.MAINNET,"0x162E898bD0aacB578C8D5F8d6ca588c13d2A383F"),T),L=(O={},Object(d.a)(O,m.MAINNET,"0xCa0840578f57fE71599D29375e16783424023357"),Object(d.a)(O,m.BSC,"0x8845F740F8B01bC7D9A4C82a6fD4A60320c07AF1"),O),F=Object(d.a)({},m.XDAI,"0x5dbC897aEf6B18394D845A922BF107FA98E3AC55"),D=Object(d.a)({},m.MAINNET,"0x88ad09518695c6c3712AC10a214bE5109a655671"),U=Object(d.a)({},m.XDAI,"0xf6A78083ca3e2a662D6dd1703c939c8aCE2e268d"),G=Object(d.a)({},m.MAINNET,"0x40C57923924B5c5c5455c48D93317139ADDaC8fb");},function(t,e,n){"use strict";n.r(e),n.d(e,"Aggregator__factory",function(){return h;}),n.d(e,"AmbBridge__factory",function(){return m;}),n.d(e,"BridgeBNB__factory",function(){return v;}),n.d(e,"BscBridgeHelper__factory",function(){return _;}),n.d(e,"FeeManager__factory",function(){return E;}),n.d(e,"ForeignOmnibridge__factory",function(){return O;}),n.d(e,"Multicall__factory",function(){return k;}),n.d(e,"OffchainOracle__factory",function(){return S;}),n.d(e,"Omnibridge__factory",function(){return N;}),n.d(e,"RelayerRegistry__factory",function(){return P;}),n.d(e,"SanctionsList__factory",function(){return C;}),n.d(e,"TornadoPool__factory",function(){return L;}),n.d(e,"WbnbXdai__factory",function(){return D;});var r=n(9),o=n(10),c=n(45),l=n(51),f=[{inputs:[],name:"ensRegistry",outputs:[{internalType:"contract ENSRegistry",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract Governance",name:"governance",type:"address"}],name:"getAllProposals",outputs:[{components:[{internalType:"address",name:"proposer",type:"address"},{internalType:"address",name:"target",type:"address"},{internalType:"uint256",name:"startTime",type:"uint256"},{internalType:"uint256",name:"endTime",type:"uint256"},{internalType:"uint256",name:"forVotes",type:"uint256"},{internalType:"uint256",name:"againstVotes",type:"uint256"},{internalType:"bool",name:"executed",type:"bool"},{internalType:"bool",name:"extended",type:"bool"},{internalType:"enum Governance.ProposalState",name:"state",type:"uint8"}],internalType:"struct GovernanceAggregator.Proposal[]",name:"proposals",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract Governance",name:"governance",type:"address"},{internalType:"address[]",name:"accs",type:"address[]"}],name:"getGovernanceBalances",outputs:[{internalType:"uint256[]",name:"amounts",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract Governance",name:"governance",type:"address"},{internalType:"address",name:"account",type:"address"}],name:"getUserData",outputs:[{internalType:"uint256",name:"balance",type:"uint256"},{internalType:"uint256",name:"latestProposalId",type:"uint256"},{internalType:"uint256",name:"latestProposalIdState",type:"uint256"},{internalType:"uint256",name:"timelock",type:"uint256"},{internalType:"address",name:"delegatee",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"relayerRegistry",outputs:[{internalType:"contract RelayerRegistry",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32[]",name:"_relayers",type:"bytes32[]"},{internalType:"string[]",name:"_subdomains",type:"string[]"}],name:"relayersData",outputs:[{components:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"balance",type:"uint256"},{internalType:"bool",name:"isRegistered",type:"bool"},{internalType:"string[20]",name:"records",type:"string[20]"}],internalType:"struct Relayer[]",name:"",type:"tuple[]"}],stateMutability:"view",type:"function"}],h=function(){function t(){Object(r.a)(this,t);}return Object(o.a)(t,null,[{key:"createInterface",value:function(){return new c.utils.Interface(f);}},{key:"connect",value:function(address,t){return new l.b(address,f,t);}}]),t;}();h.abi=f;var d=[{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"bytes32",name:""}],name:"transactionHash",inputs:[],constant:!0},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"uint256",name:""}],name:"numMessagesSigned",inputs:[{type:"bytes32",name:"_message"}],constant:!0},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[],name:"confirmInformation",inputs:[{type:"bytes32",name:"_messageId"},{type:"bool",name:"_status"},{type:"bytes",name:"_result"}],constant:!1},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"uint256",name:""}],name:"sourceChainId",inputs:[],constant:!0},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[{type:"bytes32",name:""}],name:"_sendMessage",inputs:[{type:"address",name:"_contract"},{type:"bytes",name:"_data"},{type:"uint256",name:"_gas"},{type:"uint256",name:"_dataType"}],constant:!1},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"bytes",name:""}],name:"signature",inputs:[{type:"bytes32",name:"_hash"},{type:"uint256",name:"_index"}],constant:!0},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[{type:"bool",name:""}],name:"initialize",inputs:[{type:"uint256",name:"_sourceChainId"},{type:"uint256",name:"_destinationChainId"},{type:"address",name:"_validatorContract"},{type:"uint256",name:"_maxGasPerTx"},{type:"uint256",name:"_gasPrice"},{type:"uint256",name:"_requiredBlockConfirmations"},{type:"address",name:"_owner"}],constant:!1},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"bool",name:""}],name:"isInitialized",inputs:[],constant:!0},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"uint256",name:""}],name:"requiredBlockConfirmations",inputs:[],constant:!0},{type:"function",stateMutability:"pure",payable:!1,outputs:[{type:"uint256",name:"gas"}],name:"getMinimumGasUsage",inputs:[{type:"bytes",name:"_data"}],constant:!0},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"address",name:""}],name:"failedMessageReceiver",inputs:[{type:"bytes32",name:"_messageId"}],constant:!0},{type:"function",stateMutability:"pure",payable:!1,outputs:[{type:"bytes4",name:"_data"}],name:"getBridgeMode",inputs:[],constant:!0},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[],name:"setChainIds",inputs:[{type:"uint256",name:"_sourceChainId"},{type:"uint256",name:"_destinationChainId"}],constant:!1},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"bytes",name:""}],name:"message",inputs:[{type:"bytes32",name:"_hash"}],constant:!0},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"address",name:""}],name:"failedMessageSender",inputs:[{type:"bytes32",name:"_messageId"}],constant:!0},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"bool",name:""}],name:"allowReentrantRequests",inputs:[],constant:!0},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[{type:"bytes32",name:""}],name:"requireToGetInformation",inputs:[{type:"bytes32",name:"_requestSelector"},{type:"bytes",name:"_data"}],constant:!1},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[],name:"submitSignature",inputs:[{type:"bytes",name:"signature"},{type:"bytes",name:"message"}],constant:!1},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"bytes32",name:"id"}],name:"messageId",inputs:[],constant:!0},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"uint256",name:""}],name:"numAffirmationsSigned",inputs:[{type:"bytes32",name:"_hash"}],constant:!0},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"bool",name:""}],name:"affirmationsSigned",inputs:[{type:"bytes32",name:"_hash"}],constant:!0},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[],name:"setMaxGasPerTx",inputs:[{type:"uint256",name:"_maxGasPerTx"}],constant:!1},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"uint256",name:""}],name:"requiredSignatures",inputs:[],constant:!0},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"address",name:""}],name:"owner",inputs:[],constant:!0},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"bool",name:""}],name:"messagesSigned",inputs:[{type:"bytes32",name:"_message"}],constant:!0},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[{type:"bytes32",name:""}],name:"requireToConfirmMessage",inputs:[{type:"address",name:"_contract"},{type:"bytes",name:"_data"},{type:"uint256",name:"_gas"}],constant:!1},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"address",name:""}],name:"validatorContract",inputs:[],constant:!0},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"uint256",name:""}],name:"deployedAtBlock",inputs:[],constant:!0},{type:"function",stateMutability:"pure",payable:!1,outputs:[{type:"uint64",name:"major"},{type:"uint64",name:"minor"},{type:"uint64",name:"patch"}],name:"getBridgeInterfacesVersion",inputs:[],constant:!0},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"uint256",name:"id"}],name:"messageSourceChainId",inputs:[],constant:!0},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[],name:"setRequiredBlockConfirmations",inputs:[{type:"uint256",name:"_blockConfirmations"}],constant:!1},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"uint256",name:""}],name:"destinationChainId",inputs:[],constant:!0},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[],name:"setGasPrice",inputs:[{type:"uint256",name:"_gasPrice"}],constant:!1},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[],name:"setAllowReentrantRequests",inputs:[{type:"bool",name:"_enable"}],constant:!1},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[],name:"enableAsyncRequestSelector",inputs:[{type:"bytes32",name:"_requestSelector"},{type:"bool",name:"_enable"}],constant:!1},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"bool",name:""}],name:"messageCallStatus",inputs:[{type:"bytes32",name:"_messageId"}],constant:!0},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"address",name:"sender"}],name:"messageSender",inputs:[],constant:!0},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"int256",name:""}],name:"decimalShift",inputs:[],constant:!0},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[{type:"bytes32",name:""}],name:"requireToPassMessage",inputs:[{type:"address",name:"_contract"},{type:"bytes",name:"_data"},{type:"uint256",name:"_gas"}],constant:!1},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"bytes32",name:""}],name:"failedMessageDataHash",inputs:[{type:"bytes32",name:"_messageId"}],constant:!0},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"uint256",name:""}],name:"maxGasPerTx",inputs:[],constant:!0},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[],name:"executeAffirmation",inputs:[{type:"bytes",name:"message"}],constant:!1},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[],name:"transferOwnership",inputs:[{type:"address",name:"newOwner"}],constant:!1},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"bool",name:""}],name:"isAsyncRequestSelectorEnabled",inputs:[{type:"bytes32",name:"_requestSelector"}],constant:!0},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"uint256",name:""}],name:"gasPrice",inputs:[],constant:!0},{type:"function",stateMutability:"pure",payable:!1,outputs:[{type:"bool",name:""}],name:"isAlreadyProcessed",inputs:[{type:"uint256",name:"_number"}],constant:!0},{type:"event",name:"UserRequestForSignature",inputs:[{type:"bytes32",name:"messageId",indexed:!0},{type:"bytes",name:"encodedData",indexed:!1}],anonymous:!1},{type:"event",name:"AffirmationCompleted",inputs:[{type:"address",name:"sender",indexed:!0},{type:"address",name:"executor",indexed:!0},{type:"bytes32",name:"messageId",indexed:!0},{type:"bool",name:"status",indexed:!1}],anonymous:!1},{type:"event",name:"UserRequestForInformation",inputs:[{type:"bytes32",name:"messageId",indexed:!0},{type:"bytes32",name:"requestSelector",indexed:!0},{type:"address",name:"sender",indexed:!0},{type:"bytes",name:"data",indexed:!1}],anonymous:!1},{type:"event",name:"SignedForInformation",inputs:[{type:"address",name:"signer",indexed:!0},{type:"bytes32",name:"messageId",indexed:!0}],anonymous:!1},{type:"event",name:"InformationRetrieved",inputs:[{type:"bytes32",name:"messageId",indexed:!0},{type:"bool",name:"status",indexed:!1},{type:"bool",name:"callbackStatus",indexed:!1}],anonymous:!1},{type:"event",name:"EnabledAsyncRequestSelector",inputs:[{type:"bytes32",name:"requestSelector",indexed:!0},{type:"bool",name:"enable",indexed:!1}],anonymous:!1},{type:"event",name:"SignedForUserRequest",inputs:[{type:"address",name:"signer",indexed:!0},{type:"bytes32",name:"messageHash",indexed:!1}],anonymous:!1},{type:"event",name:"SignedForAffirmation",inputs:[{type:"address",name:"signer",indexed:!0},{type:"bytes32",name:"messageHash",indexed:!1}],anonymous:!1},{type:"event",name:"CollectedSignatures",inputs:[{type:"address",name:"authorityResponsibleForRelay",indexed:!1},{type:"bytes32",name:"messageHash",indexed:!1},{type:"uint256",name:"NumberOfCollectedSignatures",indexed:!1}],anonymous:!1},{type:"event",name:"GasPriceChanged",inputs:[{type:"uint256",name:"gasPrice",indexed:!1}],anonymous:!1},{type:"event",name:"RequiredBlockConfirmationChanged",inputs:[{type:"uint256",name:"requiredBlockConfirmations",indexed:!1}],anonymous:!1},{type:"event",name:"OwnershipTransferred",inputs:[{type:"address",name:"previousOwner",indexed:!1},{type:"address",name:"newOwner",indexed:!1}],anonymous:!1}],m=function(){function t(){Object(r.a)(this,t);}return Object(o.a)(t,null,[{key:"createInterface",value:function(){return new c.utils.Interface(d);}},{key:"connect",value:function(address,t){return new l.b(address,d,t);}}]),t;}();m.abi=d;var y=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"executor",type:"address"},{indexed:!0,internalType:"bytes32",name:"messageId",type:"bytes32"},{indexed:!1,internalType:"bool",name:"status",type:"bool"}],name:"RelayedMessage",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"messageId",type:"bytes32"},{indexed:!1,internalType:"bytes",name:"encodedData",type:"bytes"}],name:"UserRequestForAffirmation",type:"event"}],v=function(){function t(){Object(r.a)(this,t);}return Object(o.a)(t,null,[{key:"createInterface",value:function(){return new c.utils.Interface(y);}},{key:"connect",value:function(address,t){return new l.b(address,y,t);}}]),t;}();v.abi=y;var w=[{inputs:[{internalType:"contract IOmnibridge",name:"_bridge",type:"address"},{internalType:"contract IWETH",name:"_weth",type:"address"},{internalType:"address",name:"_owner",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!1,internalType:"bytes",name:"key",type:"bytes"}],name:"PublicKey",type:"event"},{inputs:[],name:"WETH",outputs:[{internalType:"contract IWETH",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"bridge",outputs:[{internalType:"contract IOmnibridge",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"},{internalType:"address",name:"_to",type:"address"}],name:"claimTokens",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"},{internalType:"uint256",name:"_value",type:"uint256"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"onTokenBridged",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"owner",type:"address"},{internalType:"bytes",name:"publicKey",type:"bytes"}],internalType:"struct L1Helper.Account",name:"_account",type:"tuple"}],name:"register",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"wrapAndRelayTokens",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"wrapAndRelayTokens",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"bytes",name:"_data",type:"bytes"},{components:[{internalType:"address",name:"owner",type:"address"},{internalType:"bytes",name:"publicKey",type:"bytes"}],internalType:"struct L1Helper.Account",name:"_account",type:"tuple"}],name:"wrapAndRelayTokens",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"}],name:"wrapAndRelayTokens",outputs:[],stateMutability:"payable",type:"function"},{stateMutability:"payable",type:"receive"}],_=function(){function t(){Object(r.a)(this,t);}return Object(o.a)(t,null,[{key:"createInterface",value:function(){return new c.utils.Interface(w);}},{key:"connect",value:function(address,t){return new l.b(address,w,t);}}]),t;}();_.abi=w;var A=[{type:"function",stateMutability:"view",outputs:[{type:"bytes32",name:"",internalType:"bytes32"}],name:"FOREIGN_TO_HOME_FEE",inputs:[]},{type:"function",stateMutability:"view",outputs:[{type:"bytes32",name:"",internalType:"bytes32"}],name:"HOME_TO_FOREIGN_FEE",inputs:[]},{type:"function",stateMutability:"view",outputs:[{type:"uint256",name:"",internalType:"uint256"}],name:"calculateFee",inputs:[{type:"bytes32",name:"_feeType",internalType:"bytes32"},{type:"address",name:"_token",internalType:"address"},{type:"uint256",name:"_value",internalType:"uint256"}]},{type:"function",stateMutability:"view",outputs:[{type:"uint256",name:"",internalType:"uint256"}],name:"getFee",inputs:[{type:"bytes32",name:"_feeType",internalType:"bytes32"},{type:"address",name:"_token",internalType:"address"}]}],E=function(){function t(){Object(r.a)(this,t);}return Object(o.a)(t,null,[{key:"createInterface",value:function(){return new c.utils.Interface(A);}},{key:"connect",value:function(address,t){return new l.b(address,A,t);}}]),t;}();E.abi=A;var T=[{inputs:[{internalType:"string",name:"_suffix",type:"string"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"token",type:"address"},{indexed:!1,internalType:"uint256",name:"newLimit",type:"uint256"}],name:"DailyLimitChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"token",type:"address"},{indexed:!1,internalType:"uint256",name:"newLimit",type:"uint256"}],name:"ExecutionDailyLimitChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"messageId",type:"bytes32"},{indexed:!1,internalType:"address",name:"token",type:"address"},{indexed:!1,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"FailedMessageFixed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"nativeToken",type:"address"},{indexed:!0,internalType:"address",name:"bridgedToken",type:"address"}],name:"NewTokenRegistered",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"previousOwner",type:"address"},{indexed:!1,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"token",type:"address"},{indexed:!0,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"},{indexed:!0,internalType:"bytes32",name:"messageId",type:"bytes32"}],name:"TokensBridged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"token",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"},{indexed:!0,internalType:"bytes32",name:"messageId",type:"bytes32"}],name:"TokensBridgingInitiated",type:"event"},{inputs:[],name:"bridgeContract",outputs:[{internalType:"contract IAMB",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_nativeToken",type:"address"}],name:"bridgedTokenAddress",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"},{internalType:"address",name:"_to",type:"address"}],name:"claimTokens",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_bridgedToken",type:"address"},{internalType:"address",name:"_token",type:"address"},{internalType:"address",name:"_to",type:"address"}],name:"claimTokensFromTokenContract",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"}],name:"dailyLimit",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"uint8",name:"_decimals",type:"uint8"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_value",type:"uint256"}],name:"deployAndHandleBridgedTokens",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"uint8",name:"_decimals",type:"uint8"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_value",type:"uint256"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"deployAndHandleBridgedTokensAndCall",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"}],name:"disableInterest",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"}],name:"executionDailyLimit",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"}],name:"executionMaxPerTx",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_messageId",type:"bytes32"}],name:"fixFailedMessage",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"},{internalType:"address",name:"_receiver",type:"address"}],name:"fixMediatorBalance",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getBridgeInterfacesVersion",outputs:[{internalType:"uint64",name:"major",type:"uint64"},{internalType:"uint64",name:"minor",type:"uint64"},{internalType:"uint64",name:"patch",type:"uint64"}],stateMutability:"pure",type:"function"},{inputs:[],name:"getBridgeMode",outputs:[{internalType:"bytes4",name:"_data",type:"bytes4"}],stateMutability:"pure",type:"function"},{inputs:[],name:"getCurrentDay",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_value",type:"uint256"}],name:"handleBridgedTokens",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_value",type:"uint256"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"handleBridgedTokensAndCall",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_value",type:"uint256"}],name:"handleNativeTokens",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_value",type:"uint256"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"handleNativeTokensAndCall",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_bridgeContract",type:"address"},{internalType:"address",name:"_mediatorContract",type:"address"},{internalType:"uint256[3]",name:"_dailyLimitMaxPerTxMinPerTxArray",type:"uint256[3]"},{internalType:"uint256[2]",name:"_executionDailyLimitExecutionMaxPerTxArray",type:"uint256[2]"},{internalType:"uint256",name:"_requestGasLimit",type:"uint256"},{internalType:"address",name:"_owner",type:"address"},{internalType:"address",name:"_tokenFactory",type:"address"}],name:"initialize",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"},{internalType:"address",name:"_impl",type:"address"},{internalType:"uint256",name:"_minCashThreshold",type:"uint256"}],name:"initializeInterest",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"}],name:"interestImplementation",outputs:[{internalType:"contract IInterestImplementation",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"}],name:"invest",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"}],name:"isBridgedTokenDeployAcknowledged",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"isInitialized",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"}],name:"isRegisteredAsNativeToken",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"}],name:"isTokenRegistered",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"}],name:"maxAvailablePerTx",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"}],name:"maxPerTx",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"}],name:"mediatorBalance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"mediatorContractOnOtherSide",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_messageId",type:"bytes32"}],name:"messageFixed",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_tokenFactory",type:"address"},{internalType:"address",name:"_interestImplementation",type:"address"}],name:"migrateTo_3_3_0",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"}],name:"minCashThreshold",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"}],name:"minPerTx",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_bridgedToken",type:"address"}],name:"nativeTokenAddress",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_from",type:"address"},{internalType:"uint256",name:"_value",type:"uint256"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"onTokenTransfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract IERC677",name:"token",type:"address"},{internalType:"uint256",name:"_value",type:"uint256"}],name:"relayTokens",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC677",name:"token",type:"address"},{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_value",type:"uint256"}],name:"relayTokens",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC677",name:"token",type:"address"},{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_value",type:"uint256"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"relayTokensAndCall",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"_messageId",type:"bytes32"}],name:"requestFailedMessageFix",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"requestGasLimit",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_bridgeContract",type:"address"}],name:"setBridgeContract",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_nativeToken",type:"address"},{internalType:"address",name:"_bridgedToken",type:"address"}],name:"setCustomTokenAddressPair",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"},{internalType:"uint256",name:"_dailyLimit",type:"uint256"}],name:"setDailyLimit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"},{internalType:"uint256",name:"_dailyLimit",type:"uint256"}],name:"setExecutionDailyLimit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"},{internalType:"uint256",name:"_maxPerTx",type:"uint256"}],name:"setExecutionMaxPerTx",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"},{internalType:"uint256",name:"_maxPerTx",type:"uint256"}],name:"setMaxPerTx",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_mediatorContract",type:"address"}],name:"setMediatorContractOnOtherSide",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"},{internalType:"uint256",name:"_minCashThreshold",type:"uint256"}],name:"setMinCashThreshold",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"},{internalType:"uint256",name:"_minPerTx",type:"uint256"}],name:"setMinPerTx",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_gasLimit",type:"uint256"}],name:"setRequestGasLimit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_tokenFactory",type:"address"}],name:"setTokenFactory",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"tokenFactory",outputs:[{internalType:"contract TokenFactory",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"},{internalType:"uint256",name:"_day",type:"uint256"}],name:"totalExecutedPerDay",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"},{internalType:"uint256",name:"_day",type:"uint256"}],name:"totalSpentPerDay",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"},{internalType:"uint256",name:"_amount",type:"uint256"}],name:"withinExecutionLimit",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_token",type:"address"},{internalType:"uint256",name:"_amount",type:"uint256"}],name:"withinLimit",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}],O=function(){function t(){Object(r.a)(this,t);}return Object(o.a)(t,null,[{key:"createInterface",value:function(){return new c.utils.Interface(T);}},{key:"connect",value:function(address,t){return new l.b(address,T,t);}}]),t;}();O.abi=T;var M=[{inputs:[],name:"getCurrentBlockTimestamp",outputs:[{internalType:"uint256",name:"timestamp",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"addr",type:"address"}],name:"getEthBalance",outputs:[{internalType:"uint256",name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"target",type:"address"},{internalType:"uint256",name:"gasLimit",type:"uint256"},{internalType:"bytes",name:"callData",type:"bytes"}],internalType:"struct UniswapInterfaceMulticall.Call[]",name:"calls",type:"tuple[]"}],name:"multicall",outputs:[{internalType:"uint256",name:"blockNumber",type:"uint256"},{components:[{internalType:"bool",name:"success",type:"bool"},{internalType:"uint256",name:"gasUsed",type:"uint256"},{internalType:"bytes",name:"returnData",type:"bytes"}],internalType:"struct UniswapInterfaceMulticall.Result[]",name:"returnData",type:"tuple[]"}],stateMutability:"nonpayable",type:"function"}],k=function(){function t(){Object(r.a)(this,t);}return Object(o.a)(t,null,[{key:"createInterface",value:function(){return new c.utils.Interface(M);}},{key:"connect",value:function(address,t){return new l.b(address,M,t);}}]),t;}();k.abi=M;var x=[{inputs:[{internalType:"contract MultiWrapper",name:"_multiWrapper",type:"address"},{internalType:"contract IOracle[]",name:"existingOracles",type:"address[]"},{internalType:"enum OffchainOracle.OracleType[]",name:"oracleTypes",type:"uint8[]"},{internalType:"contract IERC20[]",name:"existingConnectors",type:"address[]"},{internalType:"contract IERC20",name:"wBase",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"contract IERC20",name:"connector",type:"address"}],name:"ConnectorAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"contract IERC20",name:"connector",type:"address"}],name:"ConnectorRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"contract MultiWrapper",name:"multiWrapper",type:"address"}],name:"MultiWrapperUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"contract IOracle",name:"oracle",type:"address"},{indexed:!1,internalType:"enum OffchainOracle.OracleType",name:"oracleType",type:"uint8"}],name:"OracleAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"contract IOracle",name:"oracle",type:"address"},{indexed:!1,internalType:"enum OffchainOracle.OracleType",name:"oracleType",type:"uint8"}],name:"OracleRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{inputs:[{internalType:"contract IERC20",name:"connector",type:"address"}],name:"addConnector",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IOracle",name:"oracle",type:"address"},{internalType:"enum OffchainOracle.OracleType",name:"oracleKind",type:"uint8"}],name:"addOracle",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"connectors",outputs:[{internalType:"contract IERC20[]",name:"allConnectors",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract IERC20",name:"srcToken",type:"address"},{internalType:"contract IERC20",name:"dstToken",type:"address"},{internalType:"bool",name:"useWrappers",type:"bool"}],name:"getRate",outputs:[{internalType:"uint256",name:"weightedRate",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract IERC20",name:"srcToken",type:"address"},{internalType:"bool",name:"useSrcWrappers",type:"bool"}],name:"getRateToEth",outputs:[{internalType:"uint256",name:"weightedRate",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"multiWrapper",outputs:[{internalType:"contract MultiWrapper",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"oracles",outputs:[{internalType:"contract IOracle[]",name:"allOracles",type:"address[]"},{internalType:"enum OffchainOracle.OracleType[]",name:"oracleTypes",type:"uint8[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract IERC20",name:"connector",type:"address"}],name:"removeConnector",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IOracle",name:"oracle",type:"address"},{internalType:"enum OffchainOracle.OracleType",name:"oracleKind",type:"uint8"}],name:"removeOracle",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract MultiWrapper",name:"_multiWrapper",type:"address"}],name:"setMultiWrapper",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"}],S=function(){function t(){Object(r.a)(this,t);}return Object(o.a)(t,null,[{key:"createInterface",value:function(){return new c.utils.Interface(x);}},{key:"connect",value:function(address,t){return new l.b(address,x,t);}}]),t;}();S.abi=x;var j=[{type:"constructor",stateMutability:"nonpayable",inputs:[{type:"string",name:"_suffix",internalType:"string"}]},{type:"event",name:"DailyLimitChanged",inputs:[{type:"address",name:"token",internalType:"address",indexed:!0},{type:"uint256",name:"newLimit",internalType:"uint256",indexed:!1}],anonymous:!1},{type:"event",name:"ExecutionDailyLimitChanged",inputs:[{type:"address",name:"token",internalType:"address",indexed:!0},{type:"uint256",name:"newLimit",internalType:"uint256",indexed:!1}],anonymous:!1},{type:"event",name:"FailedMessageFixed",inputs:[{type:"bytes32",name:"messageId",internalType:"bytes32",indexed:!0},{type:"address",name:"token",internalType:"address",indexed:!1},{type:"address",name:"recipient",internalType:"address",indexed:!1},{type:"uint256",name:"value",internalType:"uint256",indexed:!1}],anonymous:!1},{type:"event",name:"FeeDistributed",inputs:[{type:"uint256",name:"fee",internalType:"uint256",indexed:!1},{type:"address",name:"token",internalType:"address",indexed:!0},{type:"bytes32",name:"messageId",internalType:"bytes32",indexed:!0}],anonymous:!1},{type:"event",name:"FeeDistributionFailed",inputs:[{type:"address",name:"token",internalType:"address",indexed:!0},{type:"uint256",name:"fee",internalType:"uint256",indexed:!1}],anonymous:!1},{type:"event",name:"NewTokenRegistered",inputs:[{type:"address",name:"nativeToken",internalType:"address",indexed:!0},{type:"address",name:"bridgedToken",internalType:"address",indexed:!0}],anonymous:!1},{type:"event",name:"OwnershipTransferred",inputs:[{type:"address",name:"previousOwner",internalType:"address",indexed:!1},{type:"address",name:"newOwner",internalType:"address",indexed:!1}],anonymous:!1},{type:"event",name:"TokensBridged",inputs:[{type:"address",name:"token",internalType:"address",indexed:!0},{type:"address",name:"recipient",internalType:"address",indexed:!0},{type:"uint256",name:"value",internalType:"uint256",indexed:!1},{type:"bytes32",name:"messageId",internalType:"bytes32",indexed:!0}],anonymous:!1},{type:"event",name:"TokensBridgingInitiated",inputs:[{type:"address",name:"token",internalType:"address",indexed:!0},{type:"address",name:"sender",internalType:"address",indexed:!0},{type:"uint256",name:"value",internalType:"uint256",indexed:!1},{type:"bytes32",name:"messageId",internalType:"bytes32",indexed:!0}],anonymous:!1},{type:"function",stateMutability:"view",outputs:[{type:"address",name:"",internalType:"contract IAMB"}],name:"bridgeContract",inputs:[]},{type:"function",stateMutability:"view",outputs:[{type:"address",name:"",internalType:"address"}],name:"bridgedTokenAddress",inputs:[{type:"address",name:"_nativeToken",internalType:"address"}]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"claimTokens",inputs:[{type:"address",name:"_token",internalType:"address"},{type:"address",name:"_to",internalType:"address"}]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"claimTokensFromTokenContract",inputs:[{type:"address",name:"_bridgedToken",internalType:"address"},{type:"address",name:"_token",internalType:"address"},{type:"address",name:"_to",internalType:"address"}]},{type:"function",stateMutability:"view",outputs:[{type:"uint256",name:"",internalType:"uint256"}],name:"dailyLimit",inputs:[{type:"address",name:"_token",internalType:"address"}]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"deployAndHandleBridgedTokens",inputs:[{type:"address",name:"_token",internalType:"address"},{type:"string",name:"_name",internalType:"string"},{type:"string",name:"_symbol",internalType:"string"},{type:"uint8",name:"_decimals",internalType:"uint8"},{type:"address",name:"_recipient",internalType:"address"},{type:"uint256",name:"_value",internalType:"uint256"}]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"deployAndHandleBridgedTokensAndCall",inputs:[{type:"address",name:"_token",internalType:"address"},{type:"string",name:"_name",internalType:"string"},{type:"string",name:"_symbol",internalType:"string"},{type:"uint8",name:"_decimals",internalType:"uint8"},{type:"address",name:"_recipient",internalType:"address"},{type:"uint256",name:"_value",internalType:"uint256"},{type:"bytes",name:"_data",internalType:"bytes"}]},{type:"function",stateMutability:"view",outputs:[{type:"uint256",name:"",internalType:"uint256"}],name:"executionDailyLimit",inputs:[{type:"address",name:"_token",internalType:"address"}]},{type:"function",stateMutability:"view",outputs:[{type:"uint256",name:"",internalType:"uint256"}],name:"executionMaxPerTx",inputs:[{type:"address",name:"_token",internalType:"address"}]},{type:"function",stateMutability:"view",outputs:[{type:"address",name:"",internalType:"contract OmnibridgeFeeManager"}],name:"feeManager",inputs:[]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"fixFailedMessage",inputs:[{type:"bytes32",name:"_messageId",internalType:"bytes32"}]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"fixMediatorBalance",inputs:[{type:"address",name:"_token",internalType:"address"},{type:"address",name:"_receiver",internalType:"address"}]},{type:"function",stateMutability:"view",outputs:[{type:"address",name:"",internalType:"address"}],name:"foreignTokenAddress",inputs:[{type:"address",name:"_homeToken",internalType:"address"}]},{type:"function",stateMutability:"view",outputs:[{type:"address",name:"",internalType:"contract MultiTokenForwardingRulesManager"}],name:"forwardingRulesManager",inputs:[]},{type:"function",stateMutability:"view",outputs:[{type:"address",name:"",internalType:"contract SelectorTokenGasLimitManager"}],name:"gasLimitManager",inputs:[]},{type:"function",stateMutability:"pure",outputs:[{type:"uint64",name:"major",internalType:"uint64"},{type:"uint64",name:"minor",internalType:"uint64"},{type:"uint64",name:"patch",internalType:"uint64"}],name:"getBridgeInterfacesVersion",inputs:[]},{type:"function",stateMutability:"pure",outputs:[{type:"bytes4",name:"_data",internalType:"bytes4"}],name:"getBridgeMode",inputs:[]},{type:"function",stateMutability:"view",outputs:[{type:"uint256",name:"",internalType:"uint256"}],name:"getCurrentDay",inputs:[]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"handleBridgedTokens",inputs:[{type:"address",name:"_token",internalType:"address"},{type:"address",name:"_recipient",internalType:"address"},{type:"uint256",name:"_value",internalType:"uint256"}]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"handleBridgedTokensAndCall",inputs:[{type:"address",name:"_token",internalType:"address"},{type:"address",name:"_recipient",internalType:"address"},{type:"uint256",name:"_value",internalType:"uint256"},{type:"bytes",name:"_data",internalType:"bytes"}]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"handleNativeTokens",inputs:[{type:"address",name:"_token",internalType:"address"},{type:"address",name:"_recipient",internalType:"address"},{type:"uint256",name:"_value",internalType:"uint256"}]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"handleNativeTokensAndCall",inputs:[{type:"address",name:"_token",internalType:"address"},{type:"address",name:"_recipient",internalType:"address"},{type:"uint256",name:"_value",internalType:"uint256"},{type:"bytes",name:"_data",internalType:"bytes"}]},{type:"function",stateMutability:"view",outputs:[{type:"address",name:"",internalType:"address"}],name:"homeTokenAddress",inputs:[{type:"address",name:"_foreignToken",internalType:"address"}]},{type:"function",stateMutability:"nonpayable",outputs:[{type:"bool",name:"",internalType:"bool"}],name:"initialize",inputs:[{type:"address",name:"_bridgeContract",internalType:"address"},{type:"address",name:"_mediatorContract",internalType:"address"},{type:"uint256[3]",name:"_dailyLimitMaxPerTxMinPerTxArray",internalType:"uint256[3]"},{type:"uint256[2]",name:"_executionDailyLimitExecutionMaxPerTxArray",internalType:"uint256[2]"},{type:"address",name:"_gasLimitManager",internalType:"address"},{type:"address",name:"_owner",internalType:"address"},{type:"address",name:"_tokenFactory",internalType:"address"},{type:"address",name:"_feeManager",internalType:"address"},{type:"address",name:"_forwardingRulesManager",internalType:"address"}]},{type:"function",stateMutability:"view",outputs:[{type:"bool",name:"",internalType:"bool"}],name:"isBridgedTokenDeployAcknowledged",inputs:[{type:"address",name:"_token",internalType:"address"}]},{type:"function",stateMutability:"view",outputs:[{type:"bool",name:"",internalType:"bool"}],name:"isInitialized",inputs:[]},{type:"function",stateMutability:"view",outputs:[{type:"bool",name:"",internalType:"bool"}],name:"isRegisteredAsNativeToken",inputs:[{type:"address",name:"_token",internalType:"address"}]},{type:"function",stateMutability:"view",outputs:[{type:"bool",name:"",internalType:"bool"}],name:"isTokenRegistered",inputs:[{type:"address",name:"_token",internalType:"address"}]},{type:"function",stateMutability:"view",outputs:[{type:"uint256",name:"",internalType:"uint256"}],name:"maxAvailablePerTx",inputs:[{type:"address",name:"_token",internalType:"address"}]},{type:"function",stateMutability:"view",outputs:[{type:"uint256",name:"",internalType:"uint256"}],name:"maxPerTx",inputs:[{type:"address",name:"_token",internalType:"address"}]},{type:"function",stateMutability:"view",outputs:[{type:"uint256",name:"",internalType:"uint256"}],name:"mediatorBalance",inputs:[{type:"address",name:"_token",internalType:"address"}]},{type:"function",stateMutability:"view",outputs:[{type:"address",name:"",internalType:"address"}],name:"mediatorContractOnOtherSide",inputs:[]},{type:"function",stateMutability:"view",outputs:[{type:"bool",name:"",internalType:"bool"}],name:"messageFixed",inputs:[{type:"bytes32",name:"_messageId",internalType:"bytes32"}]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"migrateTo_3_3_0",inputs:[{type:"address",name:"_tokenFactory",internalType:"address"},{type:"address",name:"_forwardingRulesManager",internalType:"address"},{type:"address",name:"_gasLimitManager",internalType:"address"},{type:"address",name:"_feeManager",internalType:"address"}]},{type:"function",stateMutability:"view",outputs:[{type:"uint256",name:"",internalType:"uint256"}],name:"minPerTx",inputs:[{type:"address",name:"_token",internalType:"address"}]},{type:"function",stateMutability:"view",outputs:[{type:"address",name:"",internalType:"address"}],name:"nativeTokenAddress",inputs:[{type:"address",name:"_bridgedToken",internalType:"address"}]},{type:"function",stateMutability:"nonpayable",outputs:[{type:"bool",name:"",internalType:"bool"}],name:"onTokenTransfer",inputs:[{type:"address",name:"_from",internalType:"address"},{type:"uint256",name:"_value",internalType:"uint256"},{type:"bytes",name:"_data",internalType:"bytes"}]},{type:"function",stateMutability:"view",outputs:[{type:"address",name:"",internalType:"address"}],name:"owner",inputs:[]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"relayTokens",inputs:[{type:"address",name:"token",internalType:"contract IERC677"},{type:"uint256",name:"_value",internalType:"uint256"}]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"relayTokens",inputs:[{type:"address",name:"token",internalType:"contract IERC677"},{type:"address",name:"_receiver",internalType:"address"},{type:"uint256",name:"_value",internalType:"uint256"}]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"relayTokensAndCall",inputs:[{type:"address",name:"token",internalType:"contract IERC677"},{type:"address",name:"_receiver",internalType:"address"},{type:"uint256",name:"_value",internalType:"uint256"},{type:"bytes",name:"_data",internalType:"bytes"}]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"requestFailedMessageFix",inputs:[{type:"bytes32",name:"_messageId",internalType:"bytes32"}]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"setBridgeContract",inputs:[{type:"address",name:"_bridgeContract",internalType:"address"}]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"setCustomTokenAddressPair",inputs:[{type:"address",name:"_nativeToken",internalType:"address"},{type:"address",name:"_bridgedToken",internalType:"address"}]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"setDailyLimit",inputs:[{type:"address",name:"_token",internalType:"address"},{type:"uint256",name:"_dailyLimit",internalType:"uint256"}]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"setExecutionDailyLimit",inputs:[{type:"address",name:"_token",internalType:"address"},{type:"uint256",name:"_dailyLimit",internalType:"uint256"}]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"setExecutionMaxPerTx",inputs:[{type:"address",name:"_token",internalType:"address"},{type:"uint256",name:"_maxPerTx",internalType:"uint256"}]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"setFeeManager",inputs:[{type:"address",name:"_feeManager",internalType:"address"}]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"setForwardingRulesManager",inputs:[{type:"address",name:"_manager",internalType:"address"}]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"setGasLimitManager",inputs:[{type:"address",name:"_manager",internalType:"address"}]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"setMaxPerTx",inputs:[{type:"address",name:"_token",internalType:"address"},{type:"uint256",name:"_maxPerTx",internalType:"uint256"}]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"setMediatorContractOnOtherSide",inputs:[{type:"address",name:"_mediatorContract",internalType:"address"}]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"setMinPerTx",inputs:[{type:"address",name:"_token",internalType:"address"},{type:"uint256",name:"_minPerTx",internalType:"uint256"}]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"setTokenFactory",inputs:[{type:"address",name:"_tokenFactory",internalType:"address"}]},{type:"function",stateMutability:"view",outputs:[{type:"address",name:"",internalType:"contract TokenFactory"}],name:"tokenFactory",inputs:[]},{type:"function",stateMutability:"view",outputs:[{type:"uint256",name:"",internalType:"uint256"}],name:"totalExecutedPerDay",inputs:[{type:"address",name:"_token",internalType:"address"},{type:"uint256",name:"_day",internalType:"uint256"}]},{type:"function",stateMutability:"view",outputs:[{type:"uint256",name:"",internalType:"uint256"}],name:"totalSpentPerDay",inputs:[{type:"address",name:"_token",internalType:"address"},{type:"uint256",name:"_day",internalType:"uint256"}]},{type:"function",stateMutability:"nonpayable",outputs:[],name:"transferOwnership",inputs:[{type:"address",name:"newOwner",internalType:"address"}]},{type:"function",stateMutability:"view",outputs:[{type:"bool",name:"",internalType:"bool"}],name:"withinExecutionLimit",inputs:[{type:"address",name:"_token",internalType:"address"},{type:"uint256",name:"_amount",internalType:"uint256"}]},{type:"function",stateMutability:"view",outputs:[{type:"bool",name:"",internalType:"bool"}],name:"withinLimit",inputs:[{type:"address",name:"_token",internalType:"address"},{type:"uint256",name:"_amount",internalType:"uint256"}]}],N=function(){function t(){Object(r.a)(this,t);}return Object(o.a)(t,null,[{key:"createInterface",value:function(){return new c.utils.Interface(j);}},{key:"connect",value:function(address,t){return new l.b(address,j,t);}}]),t;}();N.abi=j;var I=[{inputs:[{internalType:"address",name:"_torn",type:"address"},{internalType:"address",name:"_governance",type:"address"},{internalType:"address",name:"_ens",type:"address"},{internalType:"bytes32",name:"_staking",type:"bytes32"},{internalType:"bytes32",name:"_feeManager",type:"bytes32"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"minStakeAmount",type:"uint256"}],name:"MinimumStakeAmount",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"relayer",type:"address"}],name:"RelayerBalanceNullified",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"relayer",type:"bytes32"},{indexed:!1,internalType:"string",name:"ensName",type:"string"},{indexed:!1,internalType:"address",name:"relayerAddress",type:"address"},{indexed:!1,internalType:"uint256",name:"stakedAmount",type:"uint256"}],name:"RelayerRegistered",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"tornadoRouter",type:"address"}],name:"RouterRegistered",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"relayer",type:"address"},{indexed:!1,internalType:"uint256",name:"amountStakeAdded",type:"uint256"}],name:"StakeAddedToRelayer",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"relayer",type:"address"},{indexed:!1,internalType:"uint256",name:"amountBurned",type:"uint256"}],name:"StakeBurned",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"relayer",type:"address"},{indexed:!1,internalType:"address",name:"worker",type:"address"}],name:"WorkerRegistered",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"relayer",type:"address"},{indexed:!1,internalType:"address",name:"worker",type:"address"}],name:"WorkerUnregistered",type:"event"},{inputs:[{internalType:"bytes32[]",name:"domains",type:"bytes32[]"}],name:"bulkResolve",outputs:[{internalType:"address[]",name:"result",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"sender",type:"address"},{internalType:"address",name:"relayer",type:"address"},{internalType:"contract ITornadoInstance",name:"pool",type:"address"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"ens",outputs:[{internalType:"contract IENS",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"feeManager",outputs:[{internalType:"contract FeeManager",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"relayer",type:"address"}],name:"getRelayerBalance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"relayer",type:"address"}],name:"getRelayerEnsHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"governance",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_tornadoRouter",type:"bytes32"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"toResolve",type:"address"}],name:"isRelayer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"relayer",type:"address"},{internalType:"address",name:"toResolve",type:"address"}],name:"isRelayerRegistered",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"minStakeAmount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"relayer",type:"address"}],name:"nullifyBalance",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"ensName",type:"string"},{internalType:"uint256",name:"stake",type:"uint256"},{internalType:"address[]",name:"workersToRegister",type:"address[]"}],name:"register",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"ensName",type:"string"},{internalType:"uint256",name:"stake",type:"uint256"},{internalType:"address[]",name:"workersToRegister",type:"address[]"},{internalType:"address",name:"relayer",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"registerPermit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"relayer",type:"address"},{internalType:"address",name:"worker",type:"address"}],name:"registerWorker",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"relayers",outputs:[{internalType:"uint256",name:"balance",type:"uint256"},{internalType:"bytes32",name:"ensHash",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"node",type:"bytes32"}],name:"resolve",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"minAmount",type:"uint256"}],name:"setMinStakeAmount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"tornadoRouterAddress",type:"address"}],name:"setTornadoRouter",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"relayer",type:"address"},{internalType:"uint256",name:"stake",type:"uint256"}],name:"stakeToRelayer",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"relayer",type:"address"},{internalType:"uint256",name:"stake",type:"uint256"},{internalType:"address",name:"staker",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"stakeToRelayerPermit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"staking",outputs:[{internalType:"contract ITornadoStakingRewards",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"torn",outputs:[{internalType:"contract TORN",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"tornadoRouter",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"worker",type:"address"}],name:"unregisterWorker",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"workers",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"}],P=function(){function t(){Object(r.a)(this,t);}return Object(o.a)(t,null,[{key:"createInterface",value:function(){return new c.utils.Interface(I);}},{key:"connect",value:function(address,t){return new l.b(address,I,t);}}]),t;}();P.abi=I;var R=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"addr",type:"address"}],name:"NonSanctionedAddress",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"addr",type:"address"}],name:"SanctionedAddress",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address[]",name:"addrs",type:"address[]"}],name:"SanctionedAddressesAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address[]",name:"addrs",type:"address[]"}],name:"SanctionedAddressesRemoved",type:"event"},{inputs:[{internalType:"address[]",name:"newSanctions",type:"address[]"}],name:"addToSanctionsList",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"addr",type:"address"}],name:"isSanctioned",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"addr",type:"address"}],name:"isSanctionedVerbose",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"pure",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"removeSanctions",type:"address[]"}],name:"removeFromSanctionsList",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"}],C=function(){function t(){Object(r.a)(this,t);}return Object(o.a)(t,null,[{key:"createInterface",value:function(){return new c.utils.Interface(R);}},{key:"connect",value:function(address,t){return new l.b(address,R,t);}}]),t;}();C.abi=R;var B=[{inputs:[{internalType:"contract IVerifier",name:"_verifier2",type:"address"},{internalType:"contract IVerifier",name:"_verifier16",type:"address"},{internalType:"uint32",name:"_levels",type:"uint32"},{internalType:"address",name:"_hasher",type:"address"},{internalType:"contract IERC6777",name:"_token",type:"address"},{internalType:"address",name:"_omniBridge",type:"address"},{internalType:"address",name:"_l1Unwrapper",type:"address"},{internalType:"address",name:"_governance",type:"address"},{internalType:"uint256",name:"_l1ChainId",type:"uint256"},{internalType:"address",name:"_multisig",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"commitment",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"index",type:"uint256"},{indexed:!1,internalType:"bytes",name:"encryptedOutput",type:"bytes"}],name:"NewCommitment",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"nullifier",type:"bytes32"}],name:"NewNullifier",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!1,internalType:"bytes",name:"key",type:"bytes"}],name:"PublicKey",type:"event"},{inputs:[],name:"FIELD_SIZE",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"MAX_EXT_AMOUNT",outputs:[{internalType:"int256",name:"",type:"int256"}],stateMutability:"view",type:"function"},{inputs:[],name:"MAX_FEE",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"MIN_EXT_AMOUNT_LIMIT",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"ROOT_HISTORY_SIZE",outputs:[{internalType:"uint32",name:"",type:"uint32"}],stateMutability:"view",type:"function"},{inputs:[],name:"ZERO_VALUE",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"ambBridge",outputs:[{internalType:"contract IAMB",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"int256",name:"_extAmount",type:"int256"},{internalType:"uint256",name:"_fee",type:"uint256"}],name:"calculatePublicAmount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"_minimalWithdrawalAmount",type:"uint256"},{internalType:"uint256",name:"_maximumDepositAmount",type:"uint256"}],name:"configureLimits",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"currentRootIndex",outputs:[{internalType:"uint32",name:"",type:"uint32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"filledSubtrees",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"getLastRoot",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_left",type:"bytes32"},{internalType:"bytes32",name:"_right",type:"bytes32"}],name:"hashLeftRight",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"hasher",outputs:[{internalType:"contract IHasher",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_minimalWithdrawalAmount",type:"uint256"},{internalType:"uint256",name:"_maximumDepositAmount",type:"uint256"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"isCalledByOwner",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"_root",type:"bytes32"}],name:"isKnownRoot",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_nullifierHash",type:"bytes32"}],name:"isSpent",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"l1Unwrapper",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"lastBalance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"levels",outputs:[{internalType:"uint32",name:"",type:"uint32"}],stateMutability:"view",type:"function"},{inputs:[],name:"maximumDepositAmount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"minimalWithdrawalAmount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"multisig",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextIndex",outputs:[{internalType:"uint32",name:"",type:"uint32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"nullifierHashes",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"omniBridge",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract IERC6777",name:"_token",type:"address"},{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"onTokenBridged",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"bytes",name:"proof",type:"bytes"},{internalType:"bytes32",name:"root",type:"bytes32"},{internalType:"bytes32[]",name:"inputNullifiers",type:"bytes32[]"},{internalType:"bytes32[2]",name:"outputCommitments",type:"bytes32[2]"},{internalType:"uint256",name:"publicAmount",type:"uint256"},{internalType:"bytes32",name:"extDataHash",type:"bytes32"}],internalType:"struct TornadoPool.Proof",name:"_args",type:"tuple"},{components:[{internalType:"address",name:"recipient",type:"address"},{internalType:"int256",name:"extAmount",type:"int256"},{internalType:"address",name:"relayer",type:"address"},{internalType:"uint256",name:"fee",type:"uint256"},{internalType:"bytes",name:"encryptedOutput1",type:"bytes"},{internalType:"bytes",name:"encryptedOutput2",type:"bytes"},{internalType:"bool",name:"isL1Withdrawal",type:"bool"},{internalType:"uint256",name:"l1Fee",type:"uint256"}],internalType:"struct TornadoPool.ExtData",name:"_extData",type:"tuple"}],name:"onTransact",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"ownerChainId",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"owner",type:"address"},{internalType:"bytes",name:"publicKey",type:"bytes"}],internalType:"struct TornadoPool.Account",name:"_account",type:"tuple"}],name:"register",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"owner",type:"address"},{internalType:"bytes",name:"publicKey",type:"bytes"}],internalType:"struct TornadoPool.Account",name:"_account",type:"tuple"},{components:[{internalType:"bytes",name:"proof",type:"bytes"},{internalType:"bytes32",name:"root",type:"bytes32"},{internalType:"bytes32[]",name:"inputNullifiers",type:"bytes32[]"},{internalType:"bytes32[2]",name:"outputCommitments",type:"bytes32[2]"},{internalType:"uint256",name:"publicAmount",type:"uint256"},{internalType:"bytes32",name:"extDataHash",type:"bytes32"}],internalType:"struct TornadoPool.Proof",name:"_proofArgs",type:"tuple"},{components:[{internalType:"address",name:"recipient",type:"address"},{internalType:"int256",name:"extAmount",type:"int256"},{internalType:"address",name:"relayer",type:"address"},{internalType:"uint256",name:"fee",type:"uint256"},{internalType:"bytes",name:"encryptedOutput1",type:"bytes"},{internalType:"bytes",name:"encryptedOutput2",type:"bytes"},{internalType:"bool",name:"isL1Withdrawal",type:"bool"},{internalType:"uint256",name:"l1Fee",type:"uint256"}],internalType:"struct TornadoPool.ExtData",name:"_extData",type:"tuple"}],name:"registerAndTransact",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC6777",name:"_token",type:"address"},{internalType:"address payable",name:"_to",type:"address"},{internalType:"uint256",name:"_balance",type:"uint256"}],name:"rescueTokens",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"roots",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"token",outputs:[{internalType:"contract IERC6777",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes",name:"proof",type:"bytes"},{internalType:"bytes32",name:"root",type:"bytes32"},{internalType:"bytes32[]",name:"inputNullifiers",type:"bytes32[]"},{internalType:"bytes32[2]",name:"outputCommitments",type:"bytes32[2]"},{internalType:"uint256",name:"publicAmount",type:"uint256"},{internalType:"bytes32",name:"extDataHash",type:"bytes32"}],internalType:"struct TornadoPool.Proof",name:"_args",type:"tuple"},{components:[{internalType:"address",name:"recipient",type:"address"},{internalType:"int256",name:"extAmount",type:"int256"},{internalType:"address",name:"relayer",type:"address"},{internalType:"uint256",name:"fee",type:"uint256"},{internalType:"bytes",name:"encryptedOutput1",type:"bytes"},{internalType:"bytes",name:"encryptedOutput2",type:"bytes"},{internalType:"bool",name:"isL1Withdrawal",type:"bool"},{internalType:"uint256",name:"l1Fee",type:"uint256"}],internalType:"struct TornadoPool.ExtData",name:"_extData",type:"tuple"}],name:"transact",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"verifier16",outputs:[{internalType:"contract IVerifier",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"verifier2",outputs:[{internalType:"contract IVerifier",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes",name:"proof",type:"bytes"},{internalType:"bytes32",name:"root",type:"bytes32"},{internalType:"bytes32[]",name:"inputNullifiers",type:"bytes32[]"},{internalType:"bytes32[2]",name:"outputCommitments",type:"bytes32[2]"},{internalType:"uint256",name:"publicAmount",type:"uint256"},{internalType:"bytes32",name:"extDataHash",type:"bytes32"}],internalType:"struct TornadoPool.Proof",name:"_args",type:"tuple"}],name:"verifyProof",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"i",type:"uint256"}],name:"zeros",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"}],L=function(){function t(){Object(r.a)(this,t);}return Object(o.a)(t,null,[{key:"createInterface",value:function(){return new c.utils.Interface(B);}},{key:"connect",value:function(address,t){return new l.b(address,B,t);}}]),t;}();L.abi=B;var F=[{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"bool",name:""}],name:"mintingFinished",inputs:[],constant:!0},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"string",name:""}],name:"name",inputs:[],constant:!0},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[{type:"bool",name:"result"}],name:"approve",inputs:[{type:"address",name:"_to"},{type:"uint256",name:"_value"}],constant:!1},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[],name:"setBridgeContract",inputs:[{type:"address",name:"_bridgeContract"}],constant:!1},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"uint256",name:""}],name:"totalSupply",inputs:[],constant:!0},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[{type:"bool",name:""}],name:"transferFrom",inputs:[{type:"address",name:"_sender"},{type:"address",name:"_recipient"},{type:"uint256",name:"_amount"}],constant:!1},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"bytes32",name:""}],name:"PERMIT_TYPEHASH",inputs:[],constant:!0},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"uint8",name:""}],name:"decimals",inputs:[],constant:!0},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"bytes32",name:""}],name:"DOMAIN_SEPARATOR",inputs:[],constant:!0},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[{type:"bool",name:"result"}],name:"increaseAllowance",inputs:[{type:"address",name:"_to"},{type:"uint256",name:"_addedValue"}],constant:!1},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[{type:"bool",name:""}],name:"transferAndCall",inputs:[{type:"address",name:"_to"},{type:"uint256",name:"_value"},{type:"bytes",name:"_data"}],constant:!1},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[{type:"bool",name:""}],name:"mint",inputs:[{type:"address",name:"_to"},{type:"uint256",name:"_amount"}],constant:!1},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[],name:"burn",inputs:[{type:"uint256",name:"_value"}],constant:!1},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"string",name:""}],name:"version",inputs:[],constant:!0},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[{type:"bool",name:""}],name:"decreaseApproval",inputs:[{type:"address",name:"_spender"},{type:"uint256",name:"_subtractedValue"}],constant:!1},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[],name:"claimTokens",inputs:[{type:"address",name:"_token"},{type:"address",name:"_to"}],constant:!1},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"uint256",name:""}],name:"balanceOf",inputs:[{type:"address",name:"_owner"}],constant:!0},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[],name:"renounceOwnership",inputs:[],constant:!1},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"bool",name:""}],name:"isBridge",inputs:[{type:"address",name:"_address"}],constant:!0},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[{type:"bool",name:""}],name:"finishMinting",inputs:[],constant:!1},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"uint256",name:""}],name:"nonces",inputs:[{type:"address",name:""}],constant:!0},{type:"function",stateMutability:"pure",payable:!1,outputs:[{type:"uint64",name:"major"},{type:"uint64",name:"minor"},{type:"uint64",name:"patch"}],name:"getTokenInterfacesVersion",inputs:[],constant:!0},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"address",name:""}],name:"owner",inputs:[],constant:!0},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[],name:"permit",inputs:[{type:"address",name:"_holder"},{type:"address",name:"_spender"},{type:"uint256",name:"_nonce"},{type:"uint256",name:"_expiry"},{type:"bool",name:"_allowed"},{type:"uint8",name:"_v"},{type:"bytes32",name:"_r"},{type:"bytes32",name:"_s"}],constant:!1},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"string",name:""}],name:"symbol",inputs:[],constant:!0},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[{type:"bool",name:""}],name:"decreaseAllowance",inputs:[{type:"address",name:"spender"},{type:"uint256",name:"subtractedValue"}],constant:!1},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[{type:"bool",name:""}],name:"transfer",inputs:[{type:"address",name:"_to"},{type:"uint256",name:"_value"}],constant:!1},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[],name:"push",inputs:[{type:"address",name:"_to"},{type:"uint256",name:"_amount"}],constant:!1},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[],name:"move",inputs:[{type:"address",name:"_from"},{type:"address",name:"_to"},{type:"uint256",name:"_amount"}],constant:!1},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"address",name:""}],name:"bridgeContract",inputs:[],constant:!0},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[{type:"bool",name:""}],name:"increaseApproval",inputs:[{type:"address",name:"_spender"},{type:"uint256",name:"_addedValue"}],constant:!1},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"uint256",name:""}],name:"allowance",inputs:[{type:"address",name:"_owner"},{type:"address",name:"_spender"}],constant:!0},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[],name:"pull",inputs:[{type:"address",name:"_from"},{type:"uint256",name:"_amount"}],constant:!1},{type:"function",stateMutability:"nonpayable",payable:!1,outputs:[],name:"transferOwnership",inputs:[{type:"address",name:"_newOwner"}],constant:!1},{type:"function",stateMutability:"view",payable:!1,outputs:[{type:"uint256",name:""}],name:"expirations",inputs:[{type:"address",name:""},{type:"address",name:""}],constant:!0},{type:"constructor",stateMutability:"nonpayable",payable:!1,inputs:[{type:"string",name:"_name"},{type:"string",name:"_symbol"},{type:"uint8",name:"_decimals"},{type:"uint256",name:"_chainId"}]},{type:"event",name:"Mint",inputs:[{type:"address",name:"to",indexed:!0},{type:"uint256",name:"amount",indexed:!1}],anonymous:!1},{type:"event",name:"MintFinished",inputs:[],anonymous:!1},{type:"event",name:"OwnershipRenounced",inputs:[{type:"address",name:"previousOwner",indexed:!0}],anonymous:!1},{type:"event",name:"OwnershipTransferred",inputs:[{type:"address",name:"previousOwner",indexed:!0},{type:"address",name:"newOwner",indexed:!0}],anonymous:!1},{type:"event",name:"Burn",inputs:[{type:"address",name:"burner",indexed:!0},{type:"uint256",name:"value",indexed:!1}],anonymous:!1},{type:"event",name:"Transfer",inputs:[{type:"address",name:"from",indexed:!0},{type:"address",name:"to",indexed:!0},{type:"uint256",name:"value",indexed:!1},{type:"bytes",name:"data",indexed:!1}],anonymous:!1},{type:"event",name:"Approval",inputs:[{type:"address",name:"owner",indexed:!0},{type:"address",name:"spender",indexed:!0},{type:"uint256",name:"value",indexed:!1}],anonymous:!1},{type:"event",name:"Transfer",inputs:[{type:"address",name:"from",indexed:!0},{type:"address",name:"to",indexed:!0},{type:"uint256",name:"value",indexed:!1}],anonymous:!1}],D=function(){function t(){Object(r.a)(this,t);}return Object(o.a)(t,null,[{key:"createInterface",value:function(){return new c.utils.Interface(F);}},{key:"connect",value:function(address,t){return new l.b(address,F,t);}}]),t;}();D.abi=F;},function(t,e,n){"use strict";n.r(e),n.d(e,"ExtendedProvider",function(){return A;});n(248);var r=n(18),o=n(9),c=n(10);function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},l(t);}function f(){return f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var base=function(object,t){for(;!Object.prototype.hasOwnProperty.call(object,t)&&null!==(object=l(object)););return object;}(t,e);if(base){var desc=Object.getOwnPropertyDescriptor(base,e);return desc.get?desc.get.call(arguments.length<3?t:n):desc.value;}},f.apply(this,arguments);}function h(t,p){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,p){return t.__proto__=p,t;},h(t,p);}var d=n(53);function m(t,e){if(e&&("object"===Object(d.a)(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t;}(t);}n(100),n(157),n(99);var y=n(23),v=n(15),w=n(54);function _(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0;}catch(t){return!1;}}();return function(){var n,r=l(t);if(e){var o=l(this).constructor;n=Reflect.construct(r,arguments,o);}else n=r.apply(this,arguments);return m(this,n);};}var A=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e);}(y,t);var e,n,d,m=_(y);function y(t,e,n){var r;return Object(o.a)(this,y),(r=m.call(this,t,e)).fallbackRpcs=n,r;}return Object(c.a)(y,[{key:"send",value:(d=Object(r.a)(regeneratorRuntime.mark(function t(e,n){var r,o=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=o.length>2&&void 0!==o[2]?o[2]:0,t.prev=1,t.next=4,f(l(y.prototype),"send",this).call(this,e,n);case 4:case 16:return t.abrupt("return",t.sent);case 7:if(t.prev=7,t.t0=t.catch(1),r){t.next=18;break;}return t.next=13,this.sleep(3e3);case 13:if(!this.fallbackRpcs){t.next=17;break;}return t.next=16,this.fallbackSend(e,n,this.fallbackRpcs);case 17:return t.abrupt("return",this.send(e,n,++r));case 18:throw t.t0;case 19:case"end":return t.stop();}},t,this,[[1,7]]);})),function(t,e){return d.apply(this,arguments);})},{key:"fallbackSend",value:(n=Object(r.a)(regeneratorRuntime.mark(function t(e,n,r){var o,c,l,f,h=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return c=function(t){if(t.error){var e=new Error(t.error.message);throw e.code=t.error.code,e.data=t.error.data,e;}return t.result;},o=h.length>3&&void 0!==h[3]?h[3]:0,t.prev=2,l={method:e,params:n,id:this._nextId+w.numbers.ONE,jsonrpc:"2.0"},f=Object(v.b)({url:r[o]},JSON.stringify(l),c).then(function(t){return t;},function(t){throw t;}),t.next=7,f;case 7:case 19:return t.abrupt("return",t.sent);case 10:if(t.prev=10,t.t0=t.catch(2),o+=w.numbers.ONE,r[o]){t.next=17;break;}throw t.t0;case 17:return t.next=19,this.fallbackSend(e,n,r,o);case 20:case"end":return t.stop();}},t,this,[[2,10]]);})),function(t,e,r){return n.apply(this,arguments);})},{key:"sleep",value:(e=Object(r.a)(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,new Promise(function(t){return setTimeout(t,e);});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop();}},t);})),function(t){return e.apply(this,arguments);})}]),y;}(y.ethers.providers.StaticJsonRpcProvider);},function(t,e,n){"use strict";n.r(e),n.d(e,"IndexedDB",function(){return C;});var r=n(8),o=n(18),c=n(9),l=n(10);n(99),n(100),n(186),n(195),n(199),n(147),n(149),n(205),n(206),n(217),n(218),n(219);const f=(object,t)=>t.some(t=>object instanceof t);let h,d;const m=new WeakMap(),y=new WeakMap(),v=new WeakMap(),w=new WeakMap(),_=new WeakMap();let A={get(t,e,n){if(t instanceof IDBTransaction){if("done"===e)return y.get(t);if("objectStoreNames"===e)return t.objectStoreNames||v.get(t);if("store"===e)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0]);}return O(t[e]);},set:(t,e,n)=>(t[e]=n,!0),has:(t,e)=>t instanceof IDBTransaction&&("done"===e||"store"===e)||e in t};function E(t){return t!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(d||(d=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(t)?function(...e){return t.apply(M(this),e),O(m.get(this));}:function(...e){return O(t.apply(M(this),e));}:function(e,...n){const r=t.call(M(this),e,...n);return v.set(r,e.sort?e.sort():[e]),O(r);};}function T(t){return"function"==typeof t?E(t):(t instanceof IDBTransaction&&function(t){if(y.has(t))return;const e=new Promise((e,n)=>{const r=()=>{t.removeEventListener("complete",o),t.removeEventListener("error",c),t.removeEventListener("abort",c);},o=()=>{e(),r();},c=()=>{n(t.error||new DOMException("AbortError","AbortError")),r();};t.addEventListener("complete",o),t.addEventListener("error",c),t.addEventListener("abort",c);});y.set(t,e);}(t),f(t,h||(h=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(t,A):t);}function O(t){if(t instanceof IDBRequest)return function(t){const e=new Promise((e,n)=>{const r=()=>{t.removeEventListener("success",o),t.removeEventListener("error",c);},o=()=>{e(O(t.result)),r();},c=()=>{n(t.error),r();};t.addEventListener("success",o),t.addEventListener("error",c);});return e.then(e=>{e instanceof IDBCursor&&m.set(e,t);}).catch(()=>{}),_.set(e,t),e;}(t);if(w.has(t))return w.get(t);const e=T(t);return e!==t&&(w.set(t,e),_.set(e,t)),e;}const M=t=>_.get(t);function k(t,e,{blocked:n,upgrade:r,blocking:o,terminated:c}={}){const l=indexedDB.open(t,e),f=O(l);return r&&l.addEventListener("upgradeneeded",t=>{r(O(l.result),t.oldVersion,t.newVersion,O(l.transaction));}),n&&l.addEventListener("blocked",()=>n()),f.then(t=>{c&&t.addEventListener("close",()=>c()),o&&t.addEventListener("versionchange",()=>o());}).catch(()=>{}),f;}function x(t,{blocked:e}={}){const n=indexedDB.deleteDatabase(t);return e&&n.addEventListener("blocked",()=>e()),O(n).then(()=>{});}const S=["get","getKey","getAll","getAllKeys","count"],j=["put","add","delete","clear"],N=new Map();function I(t,e){if(!(t instanceof IDBDatabase)||e in t||"string"!=typeof e)return;if(N.get(e))return N.get(e);const n=e.replace(/FromIndex$/,""),r=e!==n,o=j.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!o&&!S.includes(n))return;const c=async function(t,...e){const c=this.transaction(t,o?"readwrite":"readonly");let l=c.store;return r&&(l=l.index(e.shift())),(await Promise.all([l[n](...e),o&&c.done]))[0];};return N.set(e,c),c;}function P(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable;})),e.push.apply(e,n);}return e;}function R(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?P(Object(source),!0).forEach(function(e){Object(r.a)(t,e,source[e]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):P(Object(source)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e));});}return t;}A=(t=>({...t,get:(e,n,r)=>I(e,n)||t.get(e,n,r),has:(e,n)=>!!I(e,n)||t.has(e,n)}))(A);var C=function(){function t(e){var n=e.stores,r=e.dbName;Object(c.a)(this,t),this.dbExists=!1,this.isBlocked=!1,this.options={upgrade:function(t){Object.values(t.objectStoreNames).forEach(function(e){t.deleteObjectStore(e);}),n.forEach(function(e){var n=e.name,r=e.keyPath,o=e.indexes,c=t.createObjectStore(n,{keyPath:r,autoIncrement:!0});Array.isArray(o)&&o.forEach(function(t){var e=t.name,n=t.unique,r=void 0!==n&&n;c.createIndex(e,String(e),{unique:r});});});}},this.dbName=r;}var e,n,r,f,h,d,m,y,v,w,_,A;return Object(l.a)(t,[{key:"initDB",value:(A=Object(o.a)(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!this.dbExists){t.next=3;break;}return t.abrupt("return");case 3:return t.next=5,k(this.dbName,9,this.options);case 5:this.db=t.sent,this.onEventHandler(),this.dbExists=!0,t.next=19;break;case 10:if(t.prev=10,t.t0=t.catch(0),!t.t0.message.includes("A mutation operation was attempted on a database that did not allow mutations.")){t.next=15;break;}return this.isBlocked=!0,t.abrupt("return");case 15:if(!t.t0.message.includes("less than the existing version")){t.next=18;break;}return t.next=18,this.removeExist();case 18:console.error("initDB has error: ".concat(t.t0.message));case 19:case"end":return t.stop();}},t,this,[[0,10]]);})),function(){return A.apply(this,arguments);})},{key:"createTransactions",value:(_=Object(o.a)(regeneratorRuntime.mark(function t(e){var n,data,r,o,c,l;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.storeName,data=e.data,r=e.mode,o=void 0===r?"readwrite":r,t.prev=1,c=this.db.transaction(n,o),!(l=c.objectStore(n)).add){t.next=9;break;}return t.next=7,l.add(data);case 7:return t.next=9,c.done;case 9:t.next=14;break;case 11:throw t.prev=11,t.t0=t.catch(1),new Error("Method createTransactions has error: ".concat(t.t0.message));case 14:case"end":return t.stop();}},t,this,[[1,11]]);})),function(t){return _.apply(this,arguments);})},{key:"createMultipleTransactions",value:function(t){var e=t.storeName,data=t.data,n=t.index,r=t.mode,o=void 0===r?"readwrite":r;try{var c=this.db.transaction(e,o);data.forEach(function(t){t&&c.store&&c.store.put&&c.store.put(R(R({},t),n));});}catch(t){throw new Error("Method createMultipleTransactions has error: ".concat(t.message));}}},{key:"getFromIndex",value:(w=Object(o.a)(regeneratorRuntime.mark(function t(e){var n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.isBlocked){t.next=2;break;}return t.abrupt("return");case 2:return t.prev=2,t.next=5,this.getFromIndexHandler(e);case 5:return n=t.sent,t.abrupt("return",n);case 9:return t.prev=9,t.t0=t.catch(2),t.abrupt("return",void 0);case 12:case"end":return t.stop();}},t,this,[[2,9]]);})),function(t){return w.apply(this,arguments);})},{key:"getItem",value:(v=Object(o.a)(regeneratorRuntime.mark(function t(e){var n,r,o,c;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.storeName,r=e.key,t.prev=1,!this.isBlocked){t.next=4;break;}return t.abrupt("return");case 4:return o=this.db.transaction(n).objectStore(n),t.next=7,o.get(r);case 7:return c=t.sent,t.abrupt("return",c);case 11:throw t.prev=11,t.t0=t.catch(1),new Error("Method getItem has error: ".concat(t.t0.message));case 14:case"end":return t.stop();}},t,this,[[1,11]]);})),function(t){return v.apply(this,arguments);})},{key:"addItem",value:(y=Object(o.a)(regeneratorRuntime.mark(function t(e){var n,data,r,o;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.storeName,data=e.data,r=e.key,t.prev=1,o=this.db.transaction(n,"readwrite"),t.next=5,o.objectStore(n).get(r);case 5:if(t.sent){t.next=9;break;}return t.next=9,o.objectStore(n).add(data);case 9:t.next=14;break;case 11:throw t.prev=11,t.t0=t.catch(1),new Error("Method addItem has error: ".concat(t.t0.message));case 14:case"end":return t.stop();}},t,this,[[1,11]]);})),function(t){return y.apply(this,arguments);})},{key:"putItem",value:(m=Object(o.a)(regeneratorRuntime.mark(function t(e){var n,data,r;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.storeName,data=e.data,t.prev=1,!this.isBlocked){t.next=4;break;}return t.abrupt("return");case 4:return r=this.db.transaction(n,"readwrite"),t.next=7,r.objectStore(n).put(data);case 7:t.next=12;break;case 9:throw t.prev=9,t.t0=t.catch(1),new Error("Method putItem has error: ".concat(t.t0.message));case 12:case"end":return t.stop();}},t,this,[[1,9]]);})),function(t){return m.apply(this,arguments);})},{key:"getAll",value:(d=Object(o.a)(regeneratorRuntime.mark(function t(e){var n,r,o,data;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.storeName,t.prev=1,!this.isBlocked&&this.dbExists){t.next=4;break;}return t.abrupt("return",[]);case 4:return r=this.db.transaction(n,"readonly"),o=r.objectStore(n),t.next=8,o.getAll();case 8:return data=t.sent,t.abrupt("return",data);case 12:throw t.prev=12,t.t0=t.catch(1),new Error("Method getAll has error: ".concat(t.t0.message));case 15:case"end":return t.stop();}},t,this,[[1,12]]);})),function(t){return d.apply(this,arguments);})},{key:"clearStore",value:(h=Object(o.a)(regeneratorRuntime.mark(function t(e){var n,r,o,c,l;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.storeName,r=e.mode,o=void 0===r?"readwrite":r,t.prev=1,c=this.db.transaction(n,o),!(l=c.objectStore(n)).clear){t.next=7;break;}return t.next=7,l.clear();case 7:t.next=12;break;case 9:throw t.prev=9,t.t0=t.catch(1),new Error("Method clearStore has error: ".concat(t.t0.message));case 12:case"end":return t.stop();}},t,this,[[1,9]]);})),function(t){return h.apply(this,arguments);})},{key:"getAllFromIndex",value:(f=Object(o.a)(regeneratorRuntime.mark(function t(e){var n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.isBlocked){t.next=2;break;}return t.abrupt("return",[]);case 2:return t.prev=2,t.next=5,this.getAllFromIndexHandler(e);case 5:return n=t.sent,t.abrupt("return",n);case 9:return t.prev=9,t.t0=t.catch(2),t.abrupt("return",[]);case 12:case"end":return t.stop();}},t,this,[[2,9]]);})),function(t){return f.apply(this,arguments);})},{key:"onEventHandler",value:function(){var t=this;this.db.addEventListener("onupgradeneeded",Object(o.a)(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.removeExist();case 2:case"end":return e.stop();}},e);})));}},{key:"removeExist",value:(r=Object(o.a)(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,x(this.dbName);case 2:return this.dbExists=!1,t.next=5,this.initDB();case 5:case"end":return t.stop();}},t,this);})),function(){return r.apply(this,arguments);})},{key:"getFromIndexHandler",value:(n=Object(o.a)(regeneratorRuntime.mark(function t(e){var n,r,o,c;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.storeName,r=e.indexName,o=e.key,t.prev=1,t.next=4,this.db.getFromIndex(n,r,o);case 4:return c=t.sent,t.abrupt("return",c);case 8:throw t.prev=8,t.t0=t.catch(1),new Error("Method getFromIndexHandler has error: ".concat(t.t0.message));case 11:case"end":return t.stop();}},t,this,[[1,8]]);})),function(t){return n.apply(this,arguments);})},{key:"getAllFromIndexHandler",value:(e=Object(o.a)(regeneratorRuntime.mark(function t(e){var n,r,o,c,l;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.storeName,r=e.indexName,o=e.key,c=e.count,t.prev=1,t.next=4,this.db.getAllFromIndex(n,r,o,c);case 4:return l=t.sent,t.abrupt("return",l);case 8:throw t.prev=8,t.t0=t.catch(1),new Error("Method getAllFromIndex has error: ".concat(t.t0.message));case 11:case"end":return t.stop();}},t,this,[[1,8]]);})),function(t){return e.apply(this,arguments);})}]),t;}();},function(t,e,n){"use strict";n.d(e,"a",function(){return h;});var r=n(77);let o=null;function c(t){if(null==o&&(o="AbandonAbilityAbleAboutAboveAbsentAbsorbAbstractAbsurdAbuseAccessAccidentAccountAccuseAchieveAcidAcousticAcquireAcrossActActionActorActressActualAdaptAddAddictAddressAdjustAdmitAdultAdvanceAdviceAerobicAffairAffordAfraidAgainAgeAgentAgreeAheadAimAirAirportAisleAlarmAlbumAlcoholAlertAlienAllAlleyAllowAlmostAloneAlphaAlreadyAlsoAlterAlwaysAmateurAmazingAmongAmountAmusedAnalystAnchorAncientAngerAngleAngryAnimalAnkleAnnounceAnnualAnotherAnswerAntennaAntiqueAnxietyAnyApartApologyAppearAppleApproveAprilArchArcticAreaArenaArgueArmArmedArmorArmyAroundArrangeArrestArriveArrowArtArtefactArtistArtworkAskAspectAssaultAssetAssistAssumeAsthmaAthleteAtomAttackAttendAttitudeAttractAuctionAuditAugustAuntAuthorAutoAutumnAverageAvocadoAvoidAwakeAwareAwayAwesomeAwfulAwkwardAxisBabyBachelorBaconBadgeBagBalanceBalconyBallBambooBananaBannerBarBarelyBargainBarrelBaseBasicBasketBattleBeachBeanBeautyBecauseBecomeBeefBeforeBeginBehaveBehindBelieveBelowBeltBenchBenefitBestBetrayBetterBetweenBeyondBicycleBidBikeBindBiologyBirdBirthBitterBlackBladeBlameBlanketBlastBleakBlessBlindBloodBlossomBlouseBlueBlurBlushBoardBoatBodyBoilBombBoneBonusBookBoostBorderBoringBorrowBossBottomBounceBoxBoyBracketBrainBrandBrassBraveBreadBreezeBrickBridgeBriefBrightBringBriskBroccoliBrokenBronzeBroomBrotherBrownBrushBubbleBuddyBudgetBuffaloBuildBulbBulkBulletBundleBunkerBurdenBurgerBurstBusBusinessBusyButterBuyerBuzzCabbageCabinCableCactusCageCakeCallCalmCameraCampCanCanalCancelCandyCannonCanoeCanvasCanyonCapableCapitalCaptainCarCarbonCardCargoCarpetCarryCartCaseCashCasinoCastleCasualCatCatalogCatchCategoryCattleCaughtCauseCautionCaveCeilingCeleryCementCensusCenturyCerealCertainChairChalkChampionChangeChaosChapterChargeChaseChatCheapCheckCheeseChefCherryChestChickenChiefChildChimneyChoiceChooseChronicChuckleChunkChurnCigarCinnamonCircleCitizenCityCivilClaimClapClarifyClawClayCleanClerkCleverClickClientCliffClimbClinicClipClockClogCloseClothCloudClownClubClumpClusterClutchCoachCoastCoconutCodeCoffeeCoilCoinCollectColorColumnCombineComeComfortComicCommonCompanyConcertConductConfirmCongressConnectConsiderControlConvinceCookCoolCopperCopyCoralCoreCornCorrectCostCottonCouchCountryCoupleCourseCousinCoverCoyoteCrackCradleCraftCramCraneCrashCraterCrawlCrazyCreamCreditCreekCrewCricketCrimeCrispCriticCropCrossCrouchCrowdCrucialCruelCruiseCrumbleCrunchCrushCryCrystalCubeCultureCupCupboardCuriousCurrentCurtainCurveCushionCustomCuteCycleDadDamageDampDanceDangerDaringDashDaughterDawnDayDealDebateDebrisDecadeDecemberDecideDeclineDecorateDecreaseDeerDefenseDefineDefyDegreeDelayDeliverDemandDemiseDenialDentistDenyDepartDependDepositDepthDeputyDeriveDescribeDesertDesignDeskDespairDestroyDetailDetectDevelopDeviceDevoteDiagramDialDiamondDiaryDiceDieselDietDifferDigitalDignityDilemmaDinnerDinosaurDirectDirtDisagreeDiscoverDiseaseDishDismissDisorderDisplayDistanceDivertDivideDivorceDizzyDoctorDocumentDogDollDolphinDomainDonateDonkeyDonorDoorDoseDoubleDoveDraftDragonDramaDrasticDrawDreamDressDriftDrillDrinkDripDriveDropDrumDryDuckDumbDuneDuringDustDutchDutyDwarfDynamicEagerEagleEarlyEarnEarthEasilyEastEasyEchoEcologyEconomyEdgeEditEducateEffortEggEightEitherElbowElderElectricElegantElementElephantElevatorEliteElseEmbarkEmbodyEmbraceEmergeEmotionEmployEmpowerEmptyEnableEnactEndEndlessEndorseEnemyEnergyEnforceEngageEngineEnhanceEnjoyEnlistEnoughEnrichEnrollEnsureEnterEntireEntryEnvelopeEpisodeEqualEquipEraEraseErodeErosionErrorEruptEscapeEssayEssenceEstateEternalEthicsEvidenceEvilEvokeEvolveExactExampleExcessExchangeExciteExcludeExcuseExecuteExerciseExhaustExhibitExileExistExitExoticExpandExpectExpireExplainExposeExpressExtendExtraEyeEyebrowFabricFaceFacultyFadeFaintFaithFallFalseFameFamilyFamousFanFancyFantasyFarmFashionFatFatalFatherFatigueFaultFavoriteFeatureFebruaryFederalFeeFeedFeelFemaleFenceFestivalFetchFeverFewFiberFictionFieldFigureFileFilmFilterFinalFindFineFingerFinishFireFirmFirstFiscalFishFitFitnessFixFlagFlameFlashFlatFlavorFleeFlightFlipFloatFlockFloorFlowerFluidFlushFlyFoamFocusFogFoilFoldFollowFoodFootForceForestForgetForkFortuneForumForwardFossilFosterFoundFoxFragileFrameFrequentFreshFriendFringeFrogFrontFrostFrownFrozenFruitFuelFunFunnyFurnaceFuryFutureGadgetGainGalaxyGalleryGameGapGarageGarbageGardenGarlicGarmentGasGaspGateGatherGaugeGazeGeneralGeniusGenreGentleGenuineGestureGhostGiantGiftGiggleGingerGiraffeGirlGiveGladGlanceGlareGlassGlideGlimpseGlobeGloomGloryGloveGlowGlueGoatGoddessGoldGoodGooseGorillaGospelGossipGovernGownGrabGraceGrainGrantGrapeGrassGravityGreatGreenGridGriefGritGroceryGroupGrowGruntGuardGuessGuideGuiltGuitarGunGymHabitHairHalfHammerHamsterHandHappyHarborHardHarshHarvestHatHaveHawkHazardHeadHealthHeartHeavyHedgehogHeightHelloHelmetHelpHenHeroHiddenHighHillHintHipHireHistoryHobbyHockeyHoldHoleHolidayHollowHomeHoneyHoodHopeHornHorrorHorseHospitalHostHotelHourHoverHubHugeHumanHumbleHumorHundredHungryHuntHurdleHurryHurtHusbandHybridIceIconIdeaIdentifyIdleIgnoreIllIllegalIllnessImageImitateImmenseImmuneImpactImposeImproveImpulseInchIncludeIncomeIncreaseIndexIndicateIndoorIndustryInfantInflictInformInhaleInheritInitialInjectInjuryInmateInnerInnocentInputInquiryInsaneInsectInsideInspireInstallIntactInterestIntoInvestInviteInvolveIronIslandIsolateIssueItemIvoryJacketJaguarJarJazzJealousJeansJellyJewelJobJoinJokeJourneyJoyJudgeJuiceJumpJungleJuniorJunkJustKangarooKeenKeepKetchupKeyKickKidKidneyKindKingdomKissKitKitchenKiteKittenKiwiKneeKnifeKnockKnowLabLabelLaborLadderLadyLakeLampLanguageLaptopLargeLaterLatinLaughLaundryLavaLawLawnLawsuitLayerLazyLeaderLeafLearnLeaveLectureLeftLegLegalLegendLeisureLemonLendLengthLensLeopardLessonLetterLevelLiarLibertyLibraryLicenseLifeLiftLightLikeLimbLimitLinkLionLiquidListLittleLiveLizardLoadLoanLobsterLocalLockLogicLonelyLongLoopLotteryLoudLoungeLoveLoyalLuckyLuggageLumberLunarLunchLuxuryLyricsMachineMadMagicMagnetMaidMailMainMajorMakeMammalManManageMandateMangoMansionManualMapleMarbleMarchMarginMarineMarketMarriageMaskMassMasterMatchMaterialMathMatrixMatterMaximumMazeMeadowMeanMeasureMeatMechanicMedalMediaMelodyMeltMemberMemoryMentionMenuMercyMergeMeritMerryMeshMessageMetalMethodMiddleMidnightMilkMillionMimicMindMinimumMinorMinuteMiracleMirrorMiseryMissMistakeMixMixedMixtureMobileModelModifyMomMomentMonitorMonkeyMonsterMonthMoonMoralMoreMorningMosquitoMotherMotionMotorMountainMouseMoveMovieMuchMuffinMuleMultiplyMuscleMuseumMushroomMusicMustMutualMyselfMysteryMythNaiveNameNapkinNarrowNastyNationNatureNearNeckNeedNegativeNeglectNeitherNephewNerveNestNetNetworkNeutralNeverNewsNextNiceNightNobleNoiseNomineeNoodleNormalNorthNoseNotableNoteNothingNoticeNovelNowNuclearNumberNurseNutOakObeyObjectObligeObscureObserveObtainObviousOccurOceanOctoberOdorOffOfferOfficeOftenOilOkayOldOliveOlympicOmitOnceOneOnionOnlineOnlyOpenOperaOpinionOpposeOptionOrangeOrbitOrchardOrderOrdinaryOrganOrientOriginalOrphanOstrichOtherOutdoorOuterOutputOutsideOvalOvenOverOwnOwnerOxygenOysterOzonePactPaddlePagePairPalacePalmPandaPanelPanicPantherPaperParadeParentParkParrotPartyPassPatchPathPatientPatrolPatternPausePavePaymentPeacePeanutPearPeasantPelicanPenPenaltyPencilPeoplePepperPerfectPermitPersonPetPhonePhotoPhrasePhysicalPianoPicnicPicturePiecePigPigeonPillPilotPinkPioneerPipePistolPitchPizzaPlacePlanetPlasticPlatePlayPleasePledgePluckPlugPlungePoemPoetPointPolarPolePolicePondPonyPoolPopularPortionPositionPossiblePostPotatoPotteryPovertyPowderPowerPracticePraisePredictPreferPreparePresentPrettyPreventPricePridePrimaryPrintPriorityPrisonPrivatePrizeProblemProcessProduceProfitProgramProjectPromoteProofPropertyProsperProtectProudProvidePublicPuddingPullPulpPulsePumpkinPunchPupilPuppyPurchasePurityPurposePursePushPutPuzzlePyramidQualityQuantumQuarterQuestionQuickQuitQuizQuoteRabbitRaccoonRaceRackRadarRadioRailRainRaiseRallyRampRanchRandomRangeRapidRareRateRatherRavenRawRazorReadyRealReasonRebelRebuildRecallReceiveRecipeRecordRecycleReduceReflectReformRefuseRegionRegretRegularRejectRelaxReleaseReliefRelyRemainRememberRemindRemoveRenderRenewRentReopenRepairRepeatReplaceReportRequireRescueResembleResistResourceResponseResultRetireRetreatReturnReunionRevealReviewRewardRhythmRibRibbonRiceRichRideRidgeRifleRightRigidRingRiotRippleRiskRitualRivalRiverRoadRoastRobotRobustRocketRomanceRoofRookieRoomRoseRotateRoughRoundRouteRoyalRubberRudeRugRuleRunRunwayRuralSadSaddleSadnessSafeSailSaladSalmonSalonSaltSaluteSameSampleSandSatisfySatoshiSauceSausageSaveSayScaleScanScareScatterSceneSchemeSchoolScienceScissorsScorpionScoutScrapScreenScriptScrubSeaSearchSeasonSeatSecondSecretSectionSecuritySeedSeekSegmentSelectSellSeminarSeniorSenseSentenceSeriesServiceSessionSettleSetupSevenShadowShaftShallowShareShedShellSheriffShieldShiftShineShipShiverShockShoeShootShopShortShoulderShoveShrimpShrugShuffleShySiblingSickSideSiegeSightSignSilentSilkSillySilverSimilarSimpleSinceSingSirenSisterSituateSixSizeSkateSketchSkiSkillSkinSkirtSkullSlabSlamSleepSlenderSliceSlideSlightSlimSloganSlotSlowSlushSmallSmartSmileSmokeSmoothSnackSnakeSnapSniffSnowSoapSoccerSocialSockSodaSoftSolarSoldierSolidSolutionSolveSomeoneSongSoonSorrySortSoulSoundSoupSourceSouthSpaceSpareSpatialSpawnSpeakSpecialSpeedSpellSpendSphereSpiceSpiderSpikeSpinSpiritSplitSpoilSponsorSpoonSportSpotSpraySpreadSpringSpySquareSqueezeSquirrelStableStadiumStaffStageStairsStampStandStartStateStaySteakSteelStemStepStereoStickStillStingStockStomachStoneStoolStoryStoveStrategyStreetStrikeStrongStruggleStudentStuffStumbleStyleSubjectSubmitSubwaySuccessSuchSuddenSufferSugarSuggestSuitSummerSunSunnySunsetSuperSupplySupremeSureSurfaceSurgeSurpriseSurroundSurveySuspectSustainSwallowSwampSwapSwarmSwearSweetSwiftSwimSwingSwitchSwordSymbolSymptomSyrupSystemTableTackleTagTailTalentTalkTankTapeTargetTaskTasteTattooTaxiTeachTeamTellTenTenantTennisTentTermTestTextThankThatThemeThenTheoryThereTheyThingThisThoughtThreeThriveThrowThumbThunderTicketTideTigerTiltTimberTimeTinyTipTiredTissueTitleToastTobaccoTodayToddlerToeTogetherToiletTokenTomatoTomorrowToneTongueTonightToolToothTopTopicToppleTorchTornadoTortoiseTossTotalTouristTowardTowerTownToyTrackTradeTrafficTragicTrainTransferTrapTrashTravelTrayTreatTreeTrendTrialTribeTrickTriggerTrimTripTrophyTroubleTruckTrueTrulyTrumpetTrustTruthTryTubeTuitionTumbleTunaTunnelTurkeyTurnTurtleTwelveTwentyTwiceTwinTwistTwoTypeTypicalUglyUmbrellaUnableUnawareUncleUncoverUnderUndoUnfairUnfoldUnhappyUniformUniqueUnitUniverseUnknownUnlockUntilUnusualUnveilUpdateUpgradeUpholdUponUpperUpsetUrbanUrgeUsageUseUsedUsefulUselessUsualUtilityVacantVacuumVagueValidValleyValveVanVanishVaporVariousVastVaultVehicleVelvetVendorVentureVenueVerbVerifyVersionVeryVesselVeteranViableVibrantViciousVictoryVideoViewVillageVintageViolinVirtualVirusVisaVisitVisualVitalVividVocalVoiceVoidVolcanoVolumeVoteVoyageWageWagonWaitWalkWallWalnutWantWarfareWarmWarriorWashWaspWasteWaterWaveWayWealthWeaponWearWeaselWeatherWebWeddingWeekendWeirdWelcomeWestWetWhaleWhatWheatWheelWhenWhereWhipWhisperWideWidthWifeWildWillWinWindowWineWingWinkWinnerWinterWireWisdomWiseWishWitnessWolfWomanWonderWoodWoolWordWorkWorldWorryWorthWrapWreckWrestleWristWriteWrongYardYearYellowYouYoungYouthZebraZeroZoneZoo".replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),"0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60"!==r.a.check(t)))throw o=null,new Error("BIP39 Wordlist for en (English) FAILED");}class l extends r.a{constructor(){super("en");}getWord(t){return c(this),o[t];}getWordIndex(t){return c(this),o.indexOf(t);}}const f=new l();r.a.register(f);const h={en:f};},function(t,e,n){"use strict";n.d(e,"a",function(){return c;});var r=n(0),o=n(165);function c(t,e,n,c,l){let f;t=Object(r.a)(t),e=Object(r.a)(e);let h=1;const d=new Uint8Array(c),m=new Uint8Array(e.length+4);let y,v;m.set(e);for(let i=1;i<=h;i++){m[e.length]=i>>24&255,m[e.length+1]=i>>16&255,m[e.length+2]=i>>8&255,m[e.length+3]=255&i;let w=Object(r.a)(Object(o.a)(l,t,m));f||(f=w.length,v=new Uint8Array(f),h=Math.ceil(c/f),y=c-(h-1)*f),v.set(w);for(let e=1;e<n;e++){w=Object(r.a)(Object(o.a)(l,t,w));for(let t=0;t<f;t++)v[t]^=w[t];}const _=(i-1)*f,A=i===h?y:f;d.set(Object(r.a)(v).slice(0,A),_);}return Object(r.i)(d);}},function(t,e,n){"use strict";n.d(e,"a",function(){return f;});var r=n(0),o=n(5),c=n(27);const l="Ethereum Signed Message:\n";function f(t){return"string"==typeof t&&(t=Object(c.f)(t)),Object(o.a)(Object(r.b)([Object(c.f)(l),Object(c.f)(String(t.length)),t]));}},function(t,e,n){"use strict";n.d(e,"a",function(){return P;});var r=n(4),o=n(7),c=n(0),l=n(5),f=n(1),h=n(2),d=n(90),m=n(55),y=function(t,e,n,r){return new(n||(n=Promise))(function(o,c){function l(t){try{h(r.next(t));}catch(t){c(t);}}function f(t){try{h(r.throw(t));}catch(t){c(t);}}function h(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e);})).then(l,f);}h((r=r.apply(t,e||[])).next());});};const v=new h.b(d.a),w=new Uint8Array(32);w.fill(0);const _=o.a.from(-1),A=o.a.from(0),E=o.a.from(1),T=o.a.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");const O=Object(c.h)(E.toHexString(),32),M=Object(c.h)(A.toHexString(),32),k={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},x=["name","version","chainId","verifyingContract","salt"];function S(t){return function(e){return"string"!=typeof e&&v.throwArgumentError(`invalid domain value for ${JSON.stringify(t)}`,`domain.${t}`,e),e;};}const j={name:S("name"),version:S("version"),chainId:function(t){try{return o.a.from(t).toString();}catch(t){}return v.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",t);},verifyingContract:function(t){try{return Object(r.a)(t).toLowerCase();}catch(t){}return v.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",t);},salt:function(t){try{const e=Object(c.a)(t);if(32!==e.length)throw new Error("bad length");return Object(c.i)(e);}catch(t){}return v.throwArgumentError('invalid domain value "salt"',"domain.salt",t);}};function N(t){{const e=t.match(/^(u?)int(\d*)$/);if(e){const n=""===e[1],r=parseInt(e[2]||"256");(r%8!=0||r>256||e[2]&&e[2]!==String(r))&&v.throwArgumentError("invalid numeric width","type",t);const l=T.mask(n?r-1:r),f=n?l.add(E).mul(_):A;return function(e){const n=o.a.from(e);return(n.lt(f)||n.gt(l))&&v.throwArgumentError(`value out-of-bounds for ${t}`,"value",e),Object(c.h)(n.toTwos(256).toHexString(),32);};}}{const e=t.match(/^bytes(\d+)$/);if(e){const n=parseInt(e[1]);return(0===n||n>32||e[1]!==String(n))&&v.throwArgumentError("invalid bytes width","type",t),function(e){return Object(c.a)(e).length!==n&&v.throwArgumentError(`invalid length for ${t}`,"value",e),function(t){const e=Object(c.a)(t),n=e.length%32;return n?Object(c.c)([e,w.slice(n)]):Object(c.i)(e);}(e);};}}switch(t){case"address":return function(t){return Object(c.h)(Object(r.a)(t),32);};case"bool":return function(t){return t?O:M;};case"bytes":return function(t){return Object(l.a)(t);};case"string":return function(t){return Object(m.a)(t);};}return null;}function I(t,e){return`${t}(${e.map(({name:t,type:e})=>e+" "+t).join(",")})`;}class P{constructor(t){Object(f.d)(this,"types",Object.freeze(Object(f.c)(t))),Object(f.d)(this,"_encoderCache",{}),Object(f.d)(this,"_types",{});const e={},n={},r={};Object.keys(t).forEach(t=>{e[t]={},n[t]=[],r[t]={};});for(const r in t){const o={};t[r].forEach(c=>{o[c.name]&&v.throwArgumentError(`duplicate variable name ${JSON.stringify(c.name)} in ${JSON.stringify(r)}`,"types",t),o[c.name]=!0;const l=c.type.match(/^([^\x5b]*)(\x5b|$)/)[1];l===r&&v.throwArgumentError(`circular type reference to ${JSON.stringify(l)}`,"types",t);N(l)||(n[l]||v.throwArgumentError(`unknown type ${JSON.stringify(l)}`,"types",t),n[l].push(r),e[r][l]=!0);});}const o=Object.keys(n).filter(t=>0===n[t].length);0===o.length?v.throwArgumentError("missing primary type","types",t):o.length>1&&v.throwArgumentError(`ambiguous primary types or unused types: ${o.map(t=>JSON.stringify(t)).join(", ")}`,"types",t),Object(f.d)(this,"primaryType",o[0]),function o(c,l){l[c]&&v.throwArgumentError(`circular type reference to ${JSON.stringify(c)}`,"types",t),l[c]=!0,Object.keys(e[c]).forEach(t=>{n[t]&&(o(t,l),Object.keys(l).forEach(e=>{r[e][t]=!0;}));}),delete l[c];}(this.primaryType,{});for(const e in r){const n=Object.keys(r[e]);n.sort(),this._types[e]=I(e,t[e])+n.map(e=>I(e,t[e])).join("");}}getEncoder(t){let e=this._encoderCache[t];return e||(e=this._encoderCache[t]=this._getEncoder(t)),e;}_getEncoder(t){{const e=N(t);if(e)return e;}const e=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(e){const t=e[1],n=this.getEncoder(t),r=parseInt(e[3]);return e=>{r>=0&&e.length!==r&&v.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",e);let o=e.map(n);return this._types[t]&&(o=o.map(l.a)),Object(l.a)(Object(c.c)(o));};}const n=this.types[t];if(n){const e=Object(m.a)(this._types[t]);return t=>{const r=n.map(({name:e,type:n})=>{const r=this.getEncoder(n)(t[e]);return this._types[n]?Object(l.a)(r):r;});return r.unshift(e),Object(c.c)(r);};}return v.throwArgumentError(`unknown type: ${t}`,"type",t);}encodeType(t){const e=this._types[t];return e||v.throwArgumentError(`unknown type: ${JSON.stringify(t)}`,"name",t),e;}encodeData(t,e){return this.getEncoder(t)(e);}hashStruct(t,e){return Object(l.a)(this.encodeData(t,e));}encode(t){return this.encodeData(this.primaryType,t);}hash(t){return this.hashStruct(this.primaryType,t);}_visit(t,e,n){if(N(t))return n(t,e);const r=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(r){const t=r[1],o=parseInt(r[3]);return o>=0&&e.length!==o&&v.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",e),e.map(e=>this._visit(t,e,n));}const o=this.types[t];return o?o.reduce((t,{name:r,type:o})=>(t[r]=this._visit(o,e[r],n),t),{}):v.throwArgumentError(`unknown type: ${t}`,"type",t);}visit(t,e){return this._visit(this.primaryType,t,e);}static from(t){return new P(t);}static getPrimaryType(t){return P.from(t).primaryType;}static hashStruct(t,e,n){return P.from(e).hashStruct(t,n);}static hashDomain(t){const e=[];for(const n in t){const r=k[n];r||v.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(n)}`,"domain",t),e.push({name:n,type:r});}return e.sort((a,b)=>x.indexOf(a.name)-x.indexOf(b.name)),P.hashStruct("EIP712Domain",{EIP712Domain:e},t);}static encode(t,e,n){return Object(c.c)(["0x1901",P.hashDomain(t),P.from(e).hash(n)]);}static hash(t,e,n){return Object(l.a)(P.encode(t,e,n));}static resolveNames(t,e,n,r){return y(this,void 0,void 0,function*(){t=Object(f.g)(t);const o={};t.verifyingContract&&!Object(c.l)(t.verifyingContract,20)&&(o[t.verifyingContract]="0x");const l=P.from(e);l.visit(n,(t,e)=>("address"!==t||Object(c.l)(e,20)||(o[e]="0x"),e));for(const t in o)o[t]=yield r(t);return t.verifyingContract&&o[t.verifyingContract]&&(t.verifyingContract=o[t.verifyingContract]),n=l.visit(n,(t,e)=>"address"===t&&o[e]?o[e]:e),{domain:t,value:n};});}static getPayload(t,e,n){P.hashDomain(t);const r={},l=[];x.forEach(e=>{const n=t[e];null!=n&&(r[e]=j[e](n),l.push({name:e,type:k[e]}));});const h=P.from(e),d=Object(f.g)(e);return d.EIP712Domain?v.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",e):d.EIP712Domain=l,h.encode(n),{types:d,domain:r,primaryType:h.primaryType,message:h.visit(n,(t,e)=>{if(t.match(/^bytes(\d*)/))return Object(c.i)(Object(c.a)(e));if(t.match(/^u?int/))return o.a.from(e).toString();switch(t){case"address":return e.toLowerCase();case"bool":return!!e;case"string":return"string"!=typeof e&&v.throwArgumentError("invalid string","value",e),e;}return v.throwArgumentError("unsupported type","type",t);})};}}},function(t,e,n){"use strict";function r(t){for(let i=(t=t.slice()).length-1;i>0;i--){const e=Math.floor(Math.random()*(i+1)),n=t[i];t[i]=t[e],t[e]=n;}return t;}n.d(e,"a",function(){return r;});},function(t,e,n){"use strict";n.d(e,"c",function(){return _;}),n.d(e,"d",function(){return A;}),n.d(e,"a",function(){return T;}),n.d(e,"b",function(){return k;});var r=n(4),o=n(7),c=n(0),l=n(55),f=n(5),h=n(1),d=n(164),m=n(29),y=n(2),v=n(40);const w=new y.b(v.a);class _ extends h.a{}class A extends h.a{}class E extends h.a{}class T extends h.a{static isIndexed(t){return!(!t||!t._isIndexed);}}const O={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function M(t,e){const n=new Error(`deferred error during ABI decoding triggered accessing ${t}`);return n.error=e,n;}class k{constructor(t){let e=[];e="string"==typeof t?JSON.parse(t):t,Object(h.d)(this,"fragments",e.map(t=>m.e.from(t)).filter(t=>null!=t)),Object(h.d)(this,"_abiCoder",Object(h.e)(new.target,"getAbiCoder")()),Object(h.d)(this,"functions",{}),Object(h.d)(this,"errors",{}),Object(h.d)(this,"events",{}),Object(h.d)(this,"structs",{}),this.fragments.forEach(t=>{let e=null;switch(t.type){case"constructor":return this.deploy?void w.warn("duplicate definition - constructor"):void Object(h.d)(this,"deploy",t);case"function":e=this.functions;break;case"event":e=this.events;break;case"error":e=this.errors;break;default:return;}let n=t.format();e[n]?w.warn("duplicate definition - "+n):e[n]=t;}),this.deploy||Object(h.d)(this,"deploy",m.a.from({payable:!1,type:"constructor"})),Object(h.d)(this,"_isInterface",!0);}format(t){t||(t=m.d.full),t===m.d.sighash&&w.throwArgumentError("interface does not support formatting sighash","format",t);const e=this.fragments.map(e=>e.format(t));return t===m.d.json?JSON.stringify(e.map(t=>JSON.parse(t))):e;}static getAbiCoder(){return d.b;}static getAddress(address){return Object(r.a)(address);}static getSighash(t){return Object(c.e)(Object(l.a)(t.format()),0,4);}static getEventTopic(t){return Object(l.a)(t.format());}getFunction(t){if(Object(c.l)(t)){for(const e in this.functions)if(t===this.getSighash(e))return this.functions[e];w.throwArgumentError("no matching function","sighash",t);}if(-1===t.indexOf("(")){const e=t.trim(),n=Object.keys(this.functions).filter(t=>t.split("(")[0]===e);return 0===n.length?w.throwArgumentError("no matching function","name",e):n.length>1&&w.throwArgumentError("multiple matching functions","name",e),this.functions[n[0]];}const e=this.functions[m.f.fromString(t).format()];return e||w.throwArgumentError("no matching function","signature",t),e;}getEvent(t){if(Object(c.l)(t)){const e=t.toLowerCase();for(const t in this.events)if(e===this.getEventTopic(t))return this.events[t];w.throwArgumentError("no matching event","topichash",e);}if(-1===t.indexOf("(")){const e=t.trim(),n=Object.keys(this.events).filter(t=>t.split("(")[0]===e);return 0===n.length?w.throwArgumentError("no matching event","name",e):n.length>1&&w.throwArgumentError("multiple matching events","name",e),this.events[n[0]];}const e=this.events[m.c.fromString(t).format()];return e||w.throwArgumentError("no matching event","signature",t),e;}getError(t){if(Object(c.l)(t)){const e=Object(h.e)(this.constructor,"getSighash");for(const n in this.errors){if(t===e(this.errors[n]))return this.errors[n];}w.throwArgumentError("no matching error","sighash",t);}if(-1===t.indexOf("(")){const e=t.trim(),n=Object.keys(this.errors).filter(t=>t.split("(")[0]===e);return 0===n.length?w.throwArgumentError("no matching error","name",e):n.length>1&&w.throwArgumentError("multiple matching errors","name",e),this.errors[n[0]];}const e=this.errors[m.f.fromString(t).format()];return e||w.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 Object(h.e)(this.constructor,"getSighash")(t);}getEventTopic(t){return"string"==typeof t&&(t=this.getEvent(t)),Object(h.e)(this.constructor,"getEventTopic")(t);}_decodeParams(t,data){return this._abiCoder.decode(t,data);}_encodeParams(t,e){return this._abiCoder.encode(t,e);}encodeDeploy(t){return this._encodeParams(this.deploy.inputs,t||[]);}decodeErrorResult(t,data){"string"==typeof t&&(t=this.getError(t));const e=Object(c.a)(data);return Object(c.i)(e.slice(0,4))!==this.getSighash(t)&&w.throwArgumentError(`data signature does not match error ${t.name}.`,"data",Object(c.i)(e)),this._decodeParams(t.inputs,e.slice(4));}encodeErrorResult(t,e){return"string"==typeof t&&(t=this.getError(t)),Object(c.i)(Object(c.b)([this.getSighash(t),this._encodeParams(t.inputs,e||[])]));}decodeFunctionData(t,data){"string"==typeof t&&(t=this.getFunction(t));const e=Object(c.a)(data);return Object(c.i)(e.slice(0,4))!==this.getSighash(t)&&w.throwArgumentError(`data signature does not match function ${t.name}.`,"data",Object(c.i)(e)),this._decodeParams(t.inputs,e.slice(4));}encodeFunctionData(t,e){return"string"==typeof t&&(t=this.getFunction(t)),Object(c.i)(Object(c.b)([this.getSighash(t),this._encodeParams(t.inputs,e||[])]));}decodeFunctionResult(t,data){"string"==typeof t&&(t=this.getFunction(t));let e=Object(c.a)(data),n=null,r="",o=null,l=null,f=null;switch(e.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(t.outputs,e);}catch(t){}break;case 4:{const t=Object(c.i)(e.slice(0,4)),h=O[t];if(h)o=this._abiCoder.decode(h.inputs,e.slice(4)),l=h.name,f=h.signature,h.reason&&(n=o[0]),"Error"===l?r=`; VM Exception while processing transaction: reverted with reason string ${JSON.stringify(o[0])}`:"Panic"===l&&(r=`; VM Exception while processing transaction: reverted with panic code ${o[0]}`);else try{const n=this.getError(t);o=this._abiCoder.decode(n.inputs,e.slice(4)),l=n.name,f=n.format();}catch(t){}break;}}return w.throwError("call revert exception"+r,y.b.errors.CALL_EXCEPTION,{method:t.format(),data:Object(c.i)(data),errorArgs:o,errorName:l,errorSignature:f,reason:n});}encodeFunctionResult(t,e){return"string"==typeof t&&(t=this.getFunction(t)),Object(c.i)(this._abiCoder.encode(t.outputs,e||[]));}encodeFilterTopics(t,e){"string"==typeof t&&(t=this.getEvent(t)),e.length>t.inputs.length&&w.throwError("too many arguments for "+t.format(),y.b.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:e});let n=[];t.anonymous||n.push(this.getEventTopic(t));const r=(param,t)=>"string"===param.type?Object(l.a)(t):"bytes"===param.type?Object(f.a)(Object(c.i)(t)):("bool"===param.type&&"boolean"==typeof t&&(t=t?"0x01":"0x00"),param.type.match(/^u?int/)&&(t=o.a.from(t).toHexString()),"address"===param.type&&this._abiCoder.encode(["address"],[t]),Object(c.h)(Object(c.i)(t),32));for(e.forEach((e,o)=>{let param=t.inputs[o];param.indexed?null==e?n.push(null):"array"===param.baseType||"tuple"===param.baseType?w.throwArgumentError("filtering with tuples or arrays not supported","contract."+param.name,e):Array.isArray(e)?n.push(e.map(t=>r(param,t))):n.push(r(param,e)):null!=e&&w.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+param.name,e);});n.length&&null===n[n.length-1];)n.pop();return n;}encodeEventLog(t,e){"string"==typeof t&&(t=this.getEvent(t));const n=[],r=[],o=[];return t.anonymous||n.push(this.getEventTopic(t)),e.length!==t.inputs.length&&w.throwArgumentError("event arguments/values mismatch","values",e),t.inputs.forEach((param,t)=>{const c=e[t];if(param.indexed){if("string"===param.type)n.push(Object(l.a)(c));else if("bytes"===param.type)n.push(Object(f.a)(c));else{if("tuple"===param.baseType||"array"===param.baseType)throw new Error("not implemented");n.push(this._abiCoder.encode([param.type],[c]));}}else r.push(param),o.push(c);}),{data:this._abiCoder.encode(r,o),topics:n};}decodeEventLog(t,data,e){if("string"==typeof t&&(t=this.getEvent(t)),null!=e&&!t.anonymous){let n=this.getEventTopic(t);Object(c.l)(e[0],32)&&e[0].toLowerCase()===n||w.throwError("fragment/topic mismatch",y.b.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:n,value:e[0]}),e=e.slice(1);}let n=[],r=[],o=[];t.inputs.forEach((param,t)=>{param.indexed?"string"===param.type||"bytes"===param.type||"tuple"===param.baseType||"array"===param.baseType?(n.push(m.g.fromObject({type:"bytes32",name:param.name})),o.push(!0)):(n.push(param),o.push(!1)):(r.push(param),o.push(!1));});let l=null!=e?this._abiCoder.decode(n,Object(c.b)(e)):null,f=this._abiCoder.decode(r,data,!0),h=[],d=0,v=0;t.inputs.forEach((param,t)=>{if(param.indexed){if(null==l)h[t]=new T({_isIndexed:!0,hash:null});else if(o[t])h[t]=new T({_isIndexed:!0,hash:l[v++]});else try{h[t]=l[v++];}catch(e){h[t]=e;}}else try{h[t]=f[d++];}catch(e){h[t]=e;}if(param.name&&null==h[param.name]){const e=h[t];e instanceof Error?Object.defineProperty(h,param.name,{enumerable:!0,get:()=>{throw M(`property ${JSON.stringify(param.name)}`,e);}}):h[param.name]=e;}});for(let i=0;i<h.length;i++){const t=h[i];t instanceof Error&&Object.defineProperty(h,i,{enumerable:!0,get:()=>{throw M(`index ${i}`,t);}});}return Object.freeze(h);}parseTransaction(t){let e=this.getFunction(t.data.substring(0,10).toLowerCase());return e?new A({args:this._abiCoder.decode(e.inputs,"0x"+t.data.substring(10)),functionFragment:e,name:e.name,signature:e.format(),sighash:this.getSighash(e),value:o.a.from(t.value||"0")}):null;}parseLog(t){let e=this.getEvent(t.topics[0]);return!e||e.anonymous?null:new _({eventFragment:e,name:e.name,signature:e.format(),topic:this.getEventTopic(e),args:this.decodeEventLog(e,t.data,t.topics)});}parseError(data){const t=Object(c.i)(data);let e=this.getError(t.substring(0,10).toLowerCase());return e?new E({args:this._abiCoder.decode(e.inputs,"0x"+t.substring(10)),errorFragment:e,name:e.name,signature:e.format(),sighash:this.getSighash(e)}):null;}static isInterface(t){return!(!t||!t._isInterface);}}},function(t,e,n){"use strict";n.d(e,"b",function(){return G;}),n.d(e,"c",function(){return z;}),n.d(e,"a",function(){return H;});var r=n(0),o=n(27),c=n(5),l=n(2),f=n(90),h=n(98);function d(t,e){null==e&&(e=1);const n=[],r=n.forEach,o=function(t,e){r.call(t,function(t){e>0&&Array.isArray(t)?o(t,e-1):n.push(t);});};return o(t,e),n;}function m(t){return function(t){let e=0;return()=>t[e++];}(function(t){let e=0;function n(){return t[e++]<<8|t[e++];}let r=n(),o=1,c=[0,1];for(let i=1;i<r;i++)c.push(o+=n());let l=n(),f=e;e+=l;let h=0,d=0;function m(){return 0==h&&(d=d<<8|t[e++],h=8),d>>--h&1;}const y=Math.pow(2,31),v=y>>>1,w=v>>1,_=y-1;let A=0;for(let i=0;i<31;i++)A=A<<1|m();let E=[],T=0,O=y;for(;;){let t=Math.floor(((A-T+1)*o-1)/O),e=0,n=r;for(;n-e>1;){let r=e+n>>>1;t<c[r]?n=r:e=r;}if(0==e)break;E.push(e);let a=T+Math.floor(O*c[e]/o),b=T+Math.floor(O*c[e+1]/o)-1;for(;0==((a^b)&v);)A=A<<1&_|m(),a=a<<1&_,b=b<<1&_|1;for(;a&~b&w;)A=A&v|A<<1&_>>>1|m(),a=a<<1^v,b=(b^v)<<1|v|1;T=a,O=1+b-a;}let M=r-4;return E.map(e=>{switch(e-M){case 3:return M+65792+(t[f++]<<16|t[f++]<<8|t[f++]);case 2:return M+256+(t[f++]<<8|t[f++]);case 1:return M+t[f++];default:return e-1;}});}(t));}function y(i){return 1&i?~i>>1:i>>1;}function v(t,e){let n=Array(t);for(let i=0,r=-1;i<t;i++)n[i]=r+=1+e();return n;}function w(t,e){let n=Array(t);for(let i=0,r=0;i<t;i++)n[i]=r+=y(e());return n;}function _(t,e){let n=v(t(),t),r=t(),o=v(r,t),c=function(t,e){let n=Array(t);for(let i=0;i<t;i++)n[i]=1+e();return n;}(r,t);for(let i=0;i<r;i++)for(let t=0;t<c[i];t++)n.push(o[i]+t);return e?n.map(t=>e[t]):n;}function A(t,e,n){let r=Array(t).fill(void 0).map(()=>[]);for(let i=0;i<e;i++)w(t,n).forEach((t,e)=>r[e].push(t));return r;}function E(t,e){let n=1+e(),r=e(),o=function(t){let e=[];for(;;){let i=t();if(0==i)break;e.push(i);}return e;}(e);return d(A(o.length,1+t,e).map((t,i)=>{const e=t[0],c=t.slice(1);return Array(o[i]).fill(void 0).map((t,o)=>{let l=o*r;return[e+o*n,c.map(t=>t+l)];});}));}function T(t,e){return A(1+e(),1+t,e).map(t=>[t[0],t.slice(1)]);}const O=m(Object(h.a)("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==")),M=new Set(_(O)),k=new Set(_(O)),x=function(t){let e=[];for(;;){let n=t();if(0==n)break;e.push(E(n,t));}for(;;){let n=t()-1;if(n<0)break;e.push(T(n,t));}return function(t){const e={};for(let i=0;i<t.length;i++){const n=t[i];e[n[0]]=n[1];}return e;}(d(e));}(O),S=function(t){let e=_(t).sort((a,b)=>a-b);return function n(){let r=[];for(;;){let o=_(t,e);if(0==o.length)break;r.push({set:new Set(o),node:n()});}r.sort((a,b)=>b.set.size-a.set.size);let o=t(),c=o%3;o=o/3|0;let l=!!(1&o);return o>>=1,{branches:r,valid:c,fe0f:l,save:1==o,check:2==o};}();}(O),j=45,N=95;function I(t){return Object(o.g)(t);}function P(t){return t.filter(t=>65039!=t);}function R(t){for(let label of t.split(".")){let t=I(label);try{for(let i=t.lastIndexOf(N)-1;i>=0;i--)if(t[i]!==N)throw new Error("underscore only allowed at start");if(t.length>=4&&t.every(t=>t<128)&&t[2]===j&&t[3]===j)throw new Error("invalid label extension");}catch(t){throw new Error(`Invalid label "${label}": ${t.message}`);}}return t;}function C(t){return R(function(t,e){let input=I(t).reverse(),output=[];for(;input.length;){let t=B(input);if(t){output.push(...e(t));continue;}let n=input.pop();if(M.has(n)){output.push(n);continue;}if(k.has(n))continue;let r=x[n];if(!r)throw new Error(`Disallowed codepoint: 0x${n.toString(16).toUpperCase()}`);output.push(...r);}return R((s=String.fromCodePoint(...output),s.normalize("NFC")));var s;}(t,P));}function B(t,e){var n;let r,o,c=S,l=[],f=t.length;for(e&&(e.length=0);f;){let h=t[--f];if(c=null===(n=c.branches.find(t=>t.set.has(h)))||void 0===n?void 0:n.node,!c)break;if(c.save)o=h;else if(c.check&&h===o)break;l.push(h),c.fe0f&&(l.push(65039),f>0&&65039==t[f-1]&&f--),c.valid&&(r=l.slice(),2==c.valid&&r.splice(1,1),e&&e.push(...t.slice(f).reverse()),t.length=f);}return r;}const L=new l.b(f.a),F=new Uint8Array(32);function D(t){if(0===t.length)throw new Error("invalid ENS name; empty component");return t;}function U(t){const e=Object(o.f)(C(t)),n=[];if(0===t.length)return n;let r=0;for(let i=0;i<e.length;i++){46===e[i]&&(n.push(D(e.slice(r,i))),r=i+1);}if(r>=e.length)throw new Error("invalid ENS name; empty component");return n.push(D(e.slice(r))),n;}function G(t){try{return 0!==U(t).length;}catch(t){}return!1;}function z(t){"string"!=typeof t&&L.throwArgumentError("invalid ENS name; not a string","name",t);let e=F;const n=U(t);for(;n.length;)e=Object(c.a)(Object(r.b)([e,Object(c.a)(n.pop())]));return Object(r.i)(e);}function H(t){return Object(r.i)(Object(r.b)(U(t).map(t=>{if(t.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");const e=new Uint8Array(t.length+1);return e.set(t,1),e[0]=e.length-1,e;})))+"00";}F.fill(0);}]);