PageSourceSearch

https://zaif-ino.com/js/chunk-vendors~5cbdb1e7.f29831ff.js

js zaif-ino.com collected 2026-10-04 13:29:01 UTC 62,806 bytes, 2 lines download raw bytes

vendor: 11,381 bytes, line 1
1(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-vendors~5cbdb1e7"],{"0a7f":function(t,e,r){"use strict";r.d(e,"b",(function(){return h})),r.d(e,"c",(function(){return d})),r.d(e,"a",(function(){return g}));var n=r("549e"),i=r("8424"),o=r("5273"),s=r("6f5a"),c=r("ffb2"),a=r("5873");const u=new c.b(a.a),f=new Uint8Array(32);f.fill(0);const l=new RegExp("^((.*)\\.)?([^.]+)$");function h(t){try{const e=t.split(".");for(let t=0;t<e.length;t++)if(0===Object(i.a)(e[t]).length)throw new Error("empty");return!0}catch(t){}return!1}function d(t){"string"!=typeof t&&u.throwArgumentError("invalid ENS name; not a string","name",t);let e=t,r=f;for(;e.length;){const c=e.match(l);null!=c&&""!==c[2]||u.throwArgumentError("invalid ENS address; missing component","name",t);const a=Object(o.f)(Object(i.a)(c[3]));r=Object(s.a)(Object(n.b)([r,Object(s.a)(a)])),e=c[2]||""}return Object(n.i)(r)}function g(t){return Object(n.i)(Object(n.b)(t.split(".").map((t=>{const e=Object(o.f)("_"+Object(i.a)(t));return e[0]=e.length-1,e}))))+"00"}},"0d17":function(t,e,r){"use strict";r.d(e,"b",(function(){return g})),r.d(e,"c",(function(){return m})),r.d(e,"a",(function(){return p}));var n=r("549e"),i=r("ffb2"),o=r("a960"),s=r("e36d");const c=new i.b(o.a),a={},u=s.a.from(0),f=s.a.from(-1);function l(t,e,r,n){const o={fault:e,operation:r};return void 0!==n&&(o.value=n),c.throwError(t,i.b.errors.NUMERIC_FAULT,o)}let h="0";for(;h.length<256;)h+=h;function d(t){if("number"!=typeof t)try{t=s.a.from(t).toNumber()}catch(t){}return"number"==typeof t&&t>=0&&t<=256&&!(t%1)?"1"+h.substring(0,t):c.throwArgumentError("invalid decimal size","decimals",t)}function g(t,e){null==e&&(e=0);const r=d(e),n=(t=s.a.from(t)).lt(u);n&&(t=t.mul(f));let i=t.mod(r).toString();for(;i.length<r.length-1;)i="0"+i;i=i.match(/^([0-9]*[1-9]|0)(0*)/)[1];const o=t.div(r).toString();return t=1===r.length?o:o+"."+i,n&&(t="-"+t),t}function m(t,e){null==e&&(e=0);const r=d(e);"string"==typeof t&&t.match(/^-?[0-9.]+$/)||c.throwArgumentError("invalid decimal value","value",t);const n="-"===t.substring(0,1);n&&(t=t.substring(1)),"."===t&&c.throwArgumentError("missing value","value",t);const i=t.split(".");i.length>2&&c.throwArgumentError("too many decimal points","value",t);let o=i[0],a=i[1];for(o||(o="0"),a||(a="0");"0"===a[a.length-1];)a=a.substring(0,a.length-1);for(a.length>r.length-1&&l("fractional component exceeds decimals","underflow","parseFixed"),""===a&&(a="0");a.length<r.length-1;)a+="0";const u=s.a.from(o),h=s.a.from(a);let g=u.mul(r).add(h);return n&&(g=g.mul(f)),g}class b{constructor(t,e,r,n){t!==a&&c.throwError("cannot use FixedFormat constructor; use FixedFormat.from",i.b.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.signed=e,this.width=r,this.decimals=n,this.name=(e?"":"u")+"fixed"+String(r)+"x"+String(n),this._multiplier=d(n),Object.freeze(this)}static from(t){if(t instanceof b)return t;"number"==typeof t&&(t="fixed128x"+t);let e=!0,r=128,n=18;if("string"==typeof t)if("fixed"===t);else if("ufixed"===t)e=!1;else{const i=t.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);i||c.throwArgumentError("invalid fixed format","format",t),e="u"!==i[1],r=parseInt(i[2]),n=parseInt(i[3])}else if(t){const i=(e,r,n)=>null==t[e]?n:(typeof t[e]!==r&&c.throwArgumentError("invalid fixed format ("+e+" not "+r+")","format."+e,t[e]),t[e]);e=i("signed","boolean",e),r=i("width","number",r),n=i("decimals","number",n)}return r%8&&c.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",r),n>80&&c.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",n),new b(a,e,r,n)}}class p{constructor(t,e,r,n){c.checkNew(new.target,p),t!==a&&c.throwError("cannot use FixedNumber constructor; use FixedNumber.from",i.b.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=n,this._hex=e,this._value=r,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(t){this.format.name!==t.format.name&&c.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",t)}addUnsafe(t){this._checkFormat(t);const e=m(this._value,this.format.decimals),r=m(t._value,t.format.decimals);return p.fromValue(e.add(r),this.format.decimals,this.format)}subUnsafe(t){this._checkFormat(t);const e=m(this._value,this.format.decimals),r=m(t._value,t.format.decimals);return p.fromValue(e.sub(r),this.format.decimals,this.format)}mulUnsafe(t){this._checkFormat(t);const e=m(this._value,this.format.decimals),r=m(t._value,t.format.decimals);return p.fromValue(e.mul(r).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(t){this._checkFormat(t);const e=m(this._value,this.format.decimals),r=m(t._value,t.format.decimals);return p.fromValue(e.mul(this.format._multiplier).div(r),this.format.decimals,this.format)}floor(){const t=this.toString().split(".");1===t.length&&t.push("0");let e=p.from(t[0],this.format);const r=!t[1].match(/^(0*)$/);return this.isNegative()&&r&&(e=e.subUnsafe(v.toFormat(e.format))),e}ceiling(){const t=this.toString().split(".");1===t.length&&t.push("0");let e=p.from(t[0],this.format);const r=!t[1].match(/^(0*)$/);return!this.isNegative()&&r&&(e=e.addUnsafe(v.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)&&c.throwArgumentError("invalid decimal count","decimals",t),e[1].length<=t)return this;const r=p.from("1"+h.substring(0,t),this.format),n=O.toFormat(this.format);return this.mulUnsafe(r).addUnsafe(n).floor().divUnsafe(r)}isZero(){return"0.0"===this._value||"0"===this._value}isNegative(){return"-"===this._value[0]}toString(){return this._value}toHexString(t){if(null==t)return this._hex;t%8&&c.throwArgumentError("invalid byte width","width",t);const e=s.a.from(this._hex).fromTwos(this.format.width).toTwos(t).toHexString();return Object(n.h)(e,t/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(t){return p.fromString(this._value,t)}static fromValue(t,e,r){return null!=r||null==e||Object(s.d)(e)||(r=e,e=null),null==e&&(e=0),null==r&&(r="fixed"),p.fromString(g(t,e),b.from(r))}static fromString(t,e){null==e&&(e="fixed");const r=b.from(e),i=m(t,r.decimals);!r.signed&&i.lt(u)&&l("unsigned value cannot be negative","overflow","value",t);let o=null;r.signed?o=i.toTwos(r.width).toHexString():(o=i.toHexString(),o=Object(n.h)(o,r.width/8));const s=g(i,r.decimals);return new p(a,o,s,r)}static fromBytes(t,e){null==e&&(e="fixed");const r=b.from(e);if(Object(n.a)(t).length>r.width/8)throw new Error("overflow");let i=s.a.from(t);r.signed&&(i=i.fromTwos(r.width));const o=i.toTwos((r.signed?0:1)+r.width).toHexString(),c=g(i,r.decimals);return new p(a,o,c,r)}static from(t,e){if("string"==typeof t)return p.fromString(t,e);if(Object(n.j)(t))return p.fromBytes(t,e);try{return p.fromValue(t,0,e)}catch(t){if(t.code!==i.b.errors.INVALID_ARGUMENT)throw t}return c.throwArgumentError("invalid FixedNumber value","value",t)}static isFixedNumber(t){return!(!t||!t._isFixedNumber)}}const v=p.from(1),O=p.from("0.5")},"35a8":function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var n=r("6f5a"),i=r("5273");function o(t){return Object(n.a)(Object(i.f)(t))}},4877:function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));const n="0x0000000000000000000000000000000000000000000000000000000000000000"},"51bf":function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));const n="json-wallets/5.6.0"},"549e":function(t,e,r){"use strict";r.d(e,"k",(function(){return s})),r.d(e,"j",(function(){return a})),r.d(e,"a",(function(){return u})),r.d(e,"b",(function(){return f})),r.d(e,"o",(function(){return l})),r.d(e,"p",(function(){return h})),r.d(e,"l",(function(){return d})),r.d(e,"i",(function(){return m})),r.d(e,"d",(function(){return b})),r.d(e,"e",(function(){return p})),r.d(e,"c",(function(){return v})),r.d(e,"g",(function(){return O})),r.d(e,"f",(function(){return y})),r.d(e,"h",(function(){return E})),r.d(e,"n",(function(){return w})),r.d(e,"m",(function(){return j}));const n=new(r("ffb2").b)("bytes/5.6.1");function i(t){return!!t.toHexString}function o(t){return t.slice||(t.slice=function(){const e=Array.prototype.slice.call(arguments);return o(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function s(t){return d(t)&&!(t.length%2)||a(t)}function c(t){return"number"==typeof t&&t==t&&t%1==0}function a(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"==typeof t)return!1;if(!c(t.length)||t.length<0)return!1;for(let e=0;e<t.length;e++){const r=t[e];if(!c(r)||r<0||r>=256)return!1}return!0}function u(t,e){if(e||(e={}),"number"==typeof t){n.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),o(new Uint8Array(e))}if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),i(t)&&(t=t.toHexString()),d(t)){let r=t.substring(2);r.length%2&&("left"===e.hexPad?r="0"+r:"right"===e.hexPad?r+="0":n.throwArgumentError("hex data is odd-length","value",t));const i=[];for(let t=0;t<r.length;t+=2)i.push(parseInt(r.substring(t,t+2),16));return o(new Uint8Array(i))}return a(t)?o(new Uint8Array(t)):n.throwArgumentError("invalid arrayify value","value",t)}function f(t){const e=t.map((t=>u(t))),r=e.reduce(((t,e)=>t+e.length),0),n=new Uint8Array(r);return e.reduce(((t,e)=>(n.set(e,t),t+e.length)),0),o(n)}function l(t){let e=u(t);if(0===e.length)return e;let r=0;for(;r<e.length&&0===e[r];)r++;return r&&(e=e.slice(r)),e}function h(t,e){(t=u(t)).length>e&&n.throwArgumentError("value out of range","value",arguments[0]);const r=new Uint8Array(e);return r.set(t,e-t.length),o(r)}function d(t,e){return!("string"!=typeof t||!t.match(/^0x[0-9A-Fa-f]*$/)||e&&t.length!==2+2*e)}const g="0123456789abcdef";function m(t,e){if(e||(e={}),"number"==typeof t){n.checkSafeUint53(t,"invalid hexlify value");let e="";for(;t;)e=g[15&t]+e,t=Math.floor(t/16);return e.length?(e.length%2&&(e="0"+e),"0x"+e):"0x00"}if("bigint"==typeof t)return(t=t.toString(16)).length%2?"0x0"+t:"0x"+t;if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),i(t))return t.toHexString();if(d(t))return t.length%2&&("left"===e.hexPad?t="0x0"+t.substring(2):"right"===e.hexPad?t+="0":n.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(a(t)){let e="0x";for(let r=0;r<t.length;r++){let n=t[r];e+=g[(240&n)>>4]+g[15&n]}return e}return n.throwArgumentError("invalid hexlify value","value",t)}function b(t){if("string"!=typeof t)t=m(t);else if(!d(t)||t.length%2)return null;return(t.length-2)/2}function p(t,e,r){return"string"!=typeof t?t=m(t):(!d(t)||t.length%2)&&n.throwArgumentError("invalid hexData","value",t),e=2+2*e,null!=r?"0x"+t.substring(e,2+2*r):"0x"+t.substring(e)}function v(t){let e="0x";return t.forEach((t=>{e+=m(t).substring(2)})),e}function O(t){const e=y(m(t,{hexPad:"left"}));return"0x"===e?"0x0":e}function y(t){"string"!=typeof t&&(t=m(t)),d(t)||n.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 E(t,e){for("string"!=typeof t?t=m(t):d(t)||n.throwArgumentError("invalid hex string","value",t),t.length>2*e+2&&n.throwArgumentError("value out of range","value",arguments[1]);t.length<2*e+2;)t="0x0"+t.substring(2);return t}function w(t){const e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"
10x"};if(s(t)){let r=u(t);64===r.length?(e.v=27+(r[32]>>7),r[32]&=127,e.r=m(r.slice(0,32)),e.s=m(r.slice(32,64))):65===r.length?(e.r=m(r.slice(0,32)),e.s=m(r.slice(32,64)),e.v=r[64]):n.throwArgumentError("invalid signature string","signature",t),e.v<27&&(0===e.v||1===e.v?e.v+=27:n.throwArgumentError("signature invalid v byte","signature",t)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(r[32]|=128),e._vs=m(r.slice(32,64))}else{if(e.r=t.r,e.s=t.s,e.v=t.v,e.recoveryParam=t.recoveryParam,e._vs=t._vs,null!=e._vs){const r=h(u(e._vs),32);e._vs=m(r);const i=r[0]>=128?1:0;null==e.recoveryParam?e.recoveryParam=i:e.recoveryParam!==i&&n.throwArgumentError("signature recoveryParam mismatch _vs","signature",t),r[0]&=127;const o=m(r);null==e.s?e.s=o:e.s!==o&&n.throwArgumentError("signature v mismatch _vs","signature",t)}if(null==e.recoveryParam)null==e.v?n.throwArgumentError("signature missing v and recoveryParam","signature",t):0===e.v||1===e.v?e.recoveryParam=e.v:e.recoveryParam=1-e.v%2;else if(null==e.v)e.v=27+e.recoveryParam;else{const r=0===e.v||1===e.v?e.v:1-e.v%2;e.recoveryParam!==r&&n.throwArgumentError("signature recoveryParam mismatch v","signature",t)}null!=e.r&&d(e.r)?e.r=E(e.r,32):n.throwArgumentError("signature missing or invalid r","signature",t),null!=e.s&&d(e.s)?e.s=E(e.s,32):n.throwArgumentError("signature missing or invalid s","signature",t);const r=u(e.s);r[0]>=128&&n.throwArgumentError("signature s out of range","signature",t),e.recoveryParam&&(r[0]|=128);const i=m(r);e._vs&&(d(e._vs)||n.throwArgumentError("signature invalid _vs","signature",t),e._vs=E(e._vs,32)),null==e._vs?e._vs=i:e._vs!==i&&n.throwArgumentError("signature _vs mismatch v and s","signature",t)}return e.yParityAndS=e._vs,e.compact=e.r+e.yParityAndS.substring(2),e}function j(t){return m(f([(t=w(t)).r,t.s,t.recoveryParam?"0x1c":"0x1b"]))}},5873:function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));const n="hash/5.6.0"},"6b5b":function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return o})),r.d(e,"a",(function(){return s}));var n=r("3b1c");function i(t){let e=null;try{e=JSON.parse(t)}catch(t){return!1}return e.encseed&&e.ethaddr}function o(t){let e=null;try{e=JSON.parse(t)}catch(t){return!1}return!(!e.version||parseInt(e.version)!==e.version||3!==parseInt(e.version))}function s(t){if(i(t))try{return Object(n.a)(JSON.parse(t).ethaddr)}catch(t){return null}if(o(t))try{return Object(n.a)(JSON.parse(t).address)}catch(t){return null}return null}},"6f5a":function(t,e,r){"use strict";r.d(e,"a",(function(){return s}));var n=r("1c55"),i=r.n(n),o=r("549e");function s(t){return"0x"+i.a.keccak_256(Object(o.a)(t))}},"714b":function(t,e,r){"use strict";r.d(e,"a",(function(){return s}));var n=r("549e"),i=r("6f5a"),o=r("5273");function s(t){return"string"==typeof t&&(t=Object(o.f)(t)),Object(i.a)(Object(n.b)([Object(o.f)("�Ethereum Signed Message:\n"),Object(o.f)(String(t.length)),t]))}},"9cf4":function(t,e,r){"use strict";r.d(e,"b",(function(){return _})),r.d(e,"a",(function(){return A})),r.d(e,"c",(function(){return x}));var n=r("7247"),i=r.n(n),o=r("9f6a"),s=r.n(o),c=r("3b1c"),a=r("549e"),u=r("f002"),f=r("6f5a"),l=r("4105"),h=r("6e45"),d=r("9bda"),g=r("5ac3"),m=r("fe6d"),b=r("ffb2"),p=r("51bf");const v=new b.b(p.a);function O(t){return null!=t&&t.mnemonic&&t.mnemonic.phrase}class y extends d.a{isKeystoreAccount(t){return!(!t||!t._isKeystoreAccount)}}function E(t,e){const r=Object(m.b)(Object(m.c)(t,"crypto/ciphertext"));if(Object(a.i)(Object(f.a)(Object(a.b)([e.slice(16,32),r]))).substring(2)!==Object(m.c)(t,"crypto/mac").toLowerCase())throw new Error("invalid password");const n=function(t,e,r){if("aes-128-ctr"===Object(m.c)(t,"crypto/cipher")){const n=Object(m.b)(Object(m.c)(t,"crypto/cipherparams/iv")),o=new i.a.Counter(n),s=new i.a.ModeOfOperation.ctr(e,o);return Object(a.a)(s.decrypt(r))}return null}(t,e.slice(0,16),r);n||v.throwError("unsupported cipher",b.b.errors.UNSUPPORTED_OPERATION,{operation:"decrypt"});const o=e.slice(32,64),s=Object(g.computeAddress)(n);if(t.address){let e=t.address.toLowerCase();if("0x"!==e.substring(0,2)&&(e="0x"+e),Object(c.a)(e)!==s)throw new Error("address mismatch")}const l={_isKeystoreAccount:!0,address:s,privateKey:Object(a.i)(n)};if("0.1"===Object(m.c)(t,"x-ethers/version")){const e=Object(m.b)(Object(m.c)(t,"x-ethers/mnemonicCiphertext")),r=Object(m.b)(Object(m.c)(t,"x-ethers/mnemonicCounter")),n=new i.a.C
1ounter(r),s=new i.a.ModeOfOperation.ctr(o,n),c=Object(m.c)(t,"x-ethers/path")||u.b,f=Object(m.c)(t,"x-ethers/locale")||"en",h=Object(a.a)(s.decrypt(e));try{const t=Object(u.c)(h,f),e=u.a.fromMnemonic(t,null,f).derivePath(c);if(e.privateKey!=l.privateKey)throw new Error("mnemonic mismatch");l.mnemonic=e.mnemonic}catch(t){if(t.code!==b.b.errors.INVALID_ARGUMENT||"wordlist"!==t.argument)throw t}}return new y(l)}function w(t,e,r,n,i){return Object(a.a)(Object(l.a)(t,e,r,n,i))}function j(t,e,r,n,i){return Promise.resolve(w(t,e,r,n,i))}function N(t,e,r,n,i){const o=Object(m.a)(e),s=Object(m.c)(t,"crypto/kdf");if(s&&"string"==typeof s){const e=function(t,e){return v.throwArgumentError("invalid key-derivation function parameters",t,e)};if("scrypt"===s.toLowerCase()){const r=Object(m.b)(Object(m.c)(t,"crypto/kdfparams/salt")),c=parseInt(Object(m.c)(t,"crypto/kdfparams/n")),a=parseInt(Object(m.c)(t,"crypto/kdfparams/r")),u=parseInt(Object(m.c)(t,"crypto/kdfparams/p"));c&&a&&u||e("kdf",s),0!=(c&c-1)&&e("N",c);const f=parseInt(Object(m.c)(t,"crypto/kdfparams/dklen"));return 32!==f&&e("dklen",f),n(o,r,c,a,u,64,i)}if("pbkdf2"===s.toLowerCase()){const n=Object(m.b)(Object(m.c)(t,"crypto/kdfparams/salt"));let i=null;const s=Object(m.c)(t,"crypto/kdfparams/prf");"hmac-sha256"===s?i="sha256":"hmac-sha512"===s?i="sha512":e("prf",s);const c=parseInt(Object(m.c)(t,"crypto/kdfparams/c")),a=parseInt(Object(m.c)(t,"crypto/kdfparams/dklen"));return 32!==a&&e("dklen",a),r(o,n,c,a,i)}}return v.throwArgumentError("unsupported key-derivation function","kdf",s)}function _(t,e){const r=JSON.parse(t);return E(r,N(r,e,w,s.a.syncScrypt))}function A(t,e,r){return function(t,e,r,n){function i(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,o){function s(t){try{a(n.next(t))}catch(t){o(t)}}function c(t){try{a(n.throw(t))}catch(t){o(t)}}function a(t){t.done?r(t.value):i(t.value).then(s,c)}a((n=n.apply(t,e||[])).next())}))}(this,void 0,void 0,(function*(){const n=JSON.parse(t);return E(n,yield N(n,e,j,s.a.scrypt,r))}))}function x(t,e,r,n){try{if(Object(c.a)(t.address)!==Object(g.computeAddress)(t.privateKey))throw new Error("address/privateKey mismatch");if(O(t)){const e=t.mnemonic;if(u.a.fromMnemonic(e.phrase,null,e.locale).derivePath(e.path||u.b).privateKey!=t.privateKey)throw new Error("mnemonic mismatch")}}catch(t){return Promise.reject(t)}"function"!=typeof r||n||(n=r,r={}),r||(r={});const o=Object(a.a)(t.privateKey),l=Object(m.a)(e);let d=null,b=null,p=null;if(O(t)){const e=t.mnemonic;d=Object(a.a)(Object(u.f)(e.phrase,e.locale||"en")),b=e.path||u.b,p=e.locale||"en"}let v=r.client;v||(v="ethers.js");let y=null;y=r.salt?Object(a.a)(r.salt):Object(h.a)(32);let E=null;if(r.iv){if(E=Object(a.a)(r.iv),16!==E.length)throw new Error("invalid iv")}else E=Object(h.a)(16);let w=null;if(r.uuid){if(w=Object(a.a)(r.uuid),16!==w.length)throw new Error("invalid uuid")}else w=Object(h.a)(16);let j=1<<17,N=8,_=1;return r.scrypt&&(r.scrypt.N&&(j=r.scrypt.N),r.scrypt.r&&(N=r.scrypt.r),r.scrypt.p&&(_=r.scrypt.p)),s.a.scrypt(l,y,j,N,_,64,n).then((e=>{const r=(e=Object(a.a)(e)).slice(0,16),n=e.slice(16,32),s=e.slice(32,64),c=new i.a.Counter(E),u=new i.a.ModeOfOperation.ctr(r,c),l=Object(a.a)(u.encrypt(o)),g=Object(f.a)(Object(a.b)([n,l])),O={address:t.address.substring(2).toLowerCase(),id:Object(m.d)(w),version:3,Crypto:{cipher:"aes-128-ctr",cipherparams:{iv:Object(a.i)(E).substring(2)},ciphertext:Object(a.i)(l).substring(2),kdf:"scrypt",kdfparams:{salt:Object(a.i)(y).substring(2),n:j,dklen:32,p:_,r:N},mac:g.substring(2)}};if(d){const t=Object(h.a)(16),e=new i.a.Counter(t),r=new i.a.ModeOfOperation.ctr(s,e),n=Object(a.a)(r.encrypt(d)),o=new Date,c=o.getUTCFullYear()+"-"+Object(m.e)(o.getUTCMonth()+1,2)+"-"+Object(m.e)(o.getUTCDate(),2)+"T"+Object(m.e)(o.getUTCHours(),2)+"-"+Object(m.e)(o.getUTCMinutes(),2)+"-"+Object(m.e)(o.getUTCSeconds(),2)+".0Z";O["x-ethers"]={client:v,gethFilename:"UTC--"+c+"--"+O.address,mnemonicCounter:Object(a.i)(t).substring(2),mnemonicCiphertext:Object(a.i)(n).substring(2),path:b,locale:p,version:"0.1"}}return JSON.stringify(O)}))}},"9d56":function(t,e,r){"use strict";r.d(e,"d",(function(){return i})),r.d(e,"h",(function(){return o}
1)),r.d(e,"e",(function(){return s})),r.d(e,"f",(function(){return c})),r.d(e,"g",(function(){return a})),r.d(e,"b",(function(){return u})),r.d(e,"c",(function(){return f})),r.d(e,"a",(function(){return l}));var n=r("e36d");const i=n.a.from(-1),o=n.a.from(0),s=n.a.from(1),c=n.a.from(2),a=n.a.from("1000000000000000000"),u=n.a.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),f=n.a.from("-0x8000000000000000000000000000000000000000000000000000000000000000"),l=n.a.from("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")},a960:function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));const n="bignumber/5.6.0"},b46b:function(t,e,r){"use strict";r.r(e),r.d(e,"AddressZero",(function(){return n.a})),r.d(e,"NegativeOne",(function(){return i.d})),r.d(e,"Zero",(function(){return i.h})),r.d(e,"One",(function(){return i.e})),r.d(e,"Two",(function(){return i.f})),r.d(e,"WeiPerEther",(function(){return i.g})),r.d(e,"MaxUint256",(function(){return i.b})),r.d(e,"MinInt256",(function(){return i.c})),r.d(e,"MaxInt256",(function(){return i.a})),r.d(e,"HashZero",(function(){return o.a})),r.d(e,"EtherSymbol",(function(){return s}));var n=r("c00b"),i=r("9d56"),o=r("4877");const s="Ξ"},c00b:function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));const n="0x0000000000000000000000000000000000000000"},ce42:function(t,e,r){"use strict";r.d(e,"a",(function(){return O})),r.d(e,"b",(function(){return y}));var n=r("7247"),i=r.n(n),o=r("3b1c"),s=r("549e"),c=r("6f5a"),a=r
1("4105"),u=r("5273"),f=r("9bda"),l=r("ffb2"),h=r("51bf"),d=r("fe6d");const g=new l.b(h.a);class m extends f.a{isCrowdsaleAccount(t){return!(!t||!t._isCrowdsaleAccount)}}function b(t,e){const r=JSON.parse(t);e=Object(d.a)(e);const n=Object(o.a)(Object(d.c)(r,"ethaddr")),f=Object(d.b)(Object(d.c)(r,"encseed"));f&&f.length%16==0||g.throwArgumentError("invalid encseed","json",t);const l=Object(s.a)(Object(a.a)(e,e,2e3,32,"sha256")).slice(0,16),h=f.slice(0,16),b=f.slice(16),p=new i.a.ModeOfOperation.cbc(l,h),v=i.a.padding.pkcs7.strip(Object(s.a)(p.decrypt(b)));let O="";for(let t=0;t<v.length;t++)O+=String.fromCharCode(v[t]);const y=Object(u.f)(O),E=Object(c.a)(y);return new m({_isCrowdsaleAccount:!0,address:n,privateKey:E})}var p=r("6b5b"),v=r("9cf4");function O(t,e,r){if(Object(p.b)(t)){r&&r(0);const n=b(t,e);return r&&r(1),Promise.resolve(n)}return Object(p.c)(t)?Object(v.a)(t,e,r):Promise.reject(new Error("invalid JSON wallet"))}function y(t,e){if(Object(p.b)(t))return b(t,e);if(Object(p.c)(t))return Object(v.b)(t,e);throw new Error("invalid JSON wallet")}},e108:function(t,e,r){"use strict";r.d(e,"a",(function(){return _}));var n=r("3b1c"),i=r("e36d"),o=r("549e"),s=r("6f5a"),c=r("9bda"),a=r("ffb2"),u=r("5873"),f=r("35a8");const l=new a.b(u.a),h=new Uint8Array(32);h.fill(0);const d=i.a.from(-1),g=i.a.from(0),m=i.a.from(1),b=i.a.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");const p=Object(o.h)(m.toHexString(),32),v=Object(o.h)(g.toHexString(),32),O={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},y=["name","version","chainId","verifyingContract","salt"];function E(t){return function(e){return"string"!=typeof e&&l.throwArgumentError("invalid domain value for "+JSON.stringify(t),"domain."+t,e),e}}const w={name:E("name"),version:E("version"),chainId:function(t){try{return i.a.from(t).toString()}catch(t){}return l.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",t)},verifyingContract:function(t){try{return Object(n.a)(t).toLowerCase()}catch(t){}return l.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",t)},salt:function(t){try{const e=Object(o.a)(t);if(32!==e.length)throw new Error("bad length");return Object(o.i)(e)}catch(t){}return l.throwArgumentError('invalid domain value "salt"',"domain.salt",t)}};function j(t){{const e=t.match(/^(u?)int(\d*)$/);if(e){const r=""===e[1],n=parseInt(e[2]||"256");(n%8!=0||n>256||e[2]&&e[2]!==String(n))&&l.throwArgumentError("invalid numeric width","type",t);const s=b.mask(r?n-1:n),c=r?s.add(m).mul(d):g;return function(e){const r=i.a.from(e);return(r.lt(c)||r.gt(s))&&l.throwArgumentError("value out-of-bounds for "+t,"value",e),Object(o.h)(r.toTwos(256).toHexString(),32)}}}{const e=t.match(/^bytes(\d+)$/);if(e){const r=parseInt(e[1]);return(0===r||r>32||e[1]!==String(r))&&l.throwArgumentError("invalid bytes width","type",t),function(e){return Object(o.a)(e).length!==r&&l.throwArgumentError("invalid length for "+t,"value",e),function(t){const e=Object(o.a)(t),r=e.length%32;return r?Object(o.c)([e,h.slice(r)]):Object(o.i)(e)}(e)}}}switch(t){case"address":return function(t){return Object(o.h)(Object(n.a)(t),32)};case"bool":return function(t){return t?p:v};case"bytes":return function(t){return Object(s.a)(t)};case"string":return function(t){return Object(f.a)(t)}}return null}function N(t,e){return`${t}(${e.map((({name:t,type:e})=>e+" "+t)).join(",")})`}class _{constructor(t){Object(c.d)(this,"types",Object.freeze(Object(c.c)(t))),Object(c.d)(this,"_encoderCache",{}),Object(c.d)(this,"_types",{});const e={},r={},n={};Object.keys(t).forEach((t=>{e[t]={},r[t]=[],n[t]={}}));for(const n in t){const i={};t[n].forEach((o=>{i[o.name]&&l.throwArgumentError(`duplicate variable name ${JSON.stringify(o.name)} in ${JSON.stringify(n)}`,"types",t),i[o.name]=!0;const s=o.type.match(/^([^\x5b]*)(\x5b|$)/)[1];s===n&&l.throwArgumentError("circular type reference to "+JSON.stringify(s),"types",t);j(s)||(r[s]||l.throwArgumentError("unknown type "+JSON.stringify(s),"types",t),r[s].push(n),e[n][s]=!0)}))}const i=Object.keys(r).filter((t=>0===r[t].length));0===i.length?l.throwArgumentError("missing primary type","types",t):i.length>1&&l.throwArgumentError("ambiguous primary types or unused types: "+i.map((t=>JSON.stringify(t))).join(", "),"types",t),Object(c.d)(this,"primaryType",i[0]),function i(o,s){s[o]&&l.throwArgumentError("circular type reference to "+JSON.stringify(o),"types",t),s[o]=!0,Object.keys(e[o]).forEac
1h((t=>{r[t]&&(i(t,s),Object.keys(s).forEach((e=>{n[e][t]=!0})))})),delete s[o]}(this.primaryType,{});for(const e in n){const r=Object.keys(n[e]);r.sort(),this._types[e]=N(e,t[e])+r.map((e=>N(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=j(t);if(e)return e}const e=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(e){const t=e[1],r=this.getEncoder(t),n=parseInt(e[3]);return e=>{n>=0&&e.length!==n&&l.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",e);let i=e.map(r);return this._types[t]&&(i=i.map(s.a)),Object(s.a)(Object(o.c)(i))}}const r=this.types[t];if(r){const e=Object(f.a)(this._types[t]);return t=>{const n=r.map((({name:e,type:r})=>{const n=this.getEncoder(r)(t[e]);return this._types[r]?Object(s.a)(n):n}));return n.unshift(e),Object(o.c)(n)}}return l.throwArgumentError("unknown type: "+t,"type",t)}encodeType(t){const e=this._types[t];return e||l.throwArgumentError("unknown type: "+JSON.stringify(t),"name",t),e}encodeData(t,e){return this.getEncoder(t)(e)}hashStruct(t,e){return Object(s.a)(this.encodeData(t,e))}encode(t){return this.encodeData(this.primaryType,t)}hash(t){return this.hashStruct(this.primaryType,t)}_visit(t,e,r){if(j(t))return r(t,e);const n=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(n){const t=n[1],i=parseInt(n[3]);return i>=0&&e.length!==i&&l.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",e),e.map((e=>this._visit(t,e,r)))}const i=this.types[t];return i?i.reduce(((t,{name:n,type:i})=>(t[n]=this._visit(i,e[n],r),t)),{}):l.throwArgumentError("unknown type: "+t,"type",t)}visit(t,e){return this._visit(this.primaryType,t,e)}static from(t){return new _(t)}static getPrimaryType(t){return _.from(t).primaryType}static hashStruct(t,e,r){return _.from(e).hashStruct(t,r)}static hashDomain(t){const e=[];for(const r in t){const n=O[r];n||l.throwArgumentError("invalid typed-data domain key: "+JSON.stringify(r),"domain",t),e.push({name:r,type:n})}return e.sort(((t,e)=>y.indexOf(t.name)-y.indexOf(e.name))),_.hashStruct("EIP712Domain",{EIP712Domain:e},t)}static encode(t,e,r){return Object(o.c)(["0x1901",_.hashDomain(t),_.from(e).hash(r)])}static hash(t,e,r){return Object(s.a)(_.encode(t,e,r))}static resolveNames(t,e,r,n){return function(t,e,r,n){function i(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,o){function s(t){try{a(n.next(t))}catch(t){o(t)}}function c(t){try{a(n.throw(t))}catch(t){o(t)}}function a(t){t.done?r(t.value):i(t.value).then(s,c)}a((n=n.apply(t,e||[])).next())}))}(this,void 0,void 0,(function*(){t=Object(c.g)(t);const i={};t.verifyingContract&&!Object(o.l)(t.verifyingContract,20)&&(i[t.verifyingContract]="0x");const s=_.from(e);s.visit(r,((t,e)=>("address"!==t||Object(o.l)(e,20)||(i[e]="0x"),e)));for(const t in i)i[t]=yield n(t);return t.verifyingContract&&i[t.verifyingContract]&&(t.verifyingContract=i[t.verifyingContract]),r=s.visit(r,((t,e)=>"address"===t&&i[e]?i[e]:e)),{domain:t,value:r}}))}static getPayload(t,e,r){_.hashDomain(t);const n={},s=[];y.forEach((e=>{const r=t[e];null!=r&&(n[e]=w[e](r),s.push({name:e,type:O[e]}))}));const a=_.from(e),u=Object(c.g)(e);return u.EIP712Domain?l.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",e):u.EIP712Domain=s,a.encode(r),{types:u,domain:n,primaryType:a.primaryType,message:a.visit(r,((t,e)=>{if(t.match(/^bytes(\d*)/))return Object(o.i)(Object(o.a)(e));if(t.match(/^u?int/))return i.a.from(e).toString();switch(t){case"address":return e.toLowerCase();case"bool":return!!e;case"string":return"string"!=typeof e&&l.throwArgumentError("invalid string","value",e),e}return l.throwArgumentError("unsupported type","type",t)}))}}}},e36d:function(t,e,r){"use strict";r.d(e,"d",(function(){return h})),r.d(e,"a",(function(){return g})),r.d(e,"c",(function(){return O})),r.d(e,"b",(function(){return y}));var n=r("399f"),i=r.n(n),o=r("549e"),s=r("ffb2"),c=r("a960"),a=i.a.BN;const u=new s.b(c.a),f={},l=9007199254740991;function h(t){return null!=t&&(g.isBigNumber(t)||"number"==typeof t&&t%1==0||"string"==typeof t&&!!t.match(/^-?[0-9]+$/)||Object(o.l)(t)||"bigint"==typeof t||Object(o.j)(t))}let d=!1;class g{constructor(t,e){u.checkNew(new.target,g),t!==f&&u.throwError("cannot call constructor directly; use BigNumber.from",s.b.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=e,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return b(p(this).fromTwos(t))}toTwos(t){return b(p(this).toTwos(t))}abs(){return"-"===this._hex[0]?g.from(this._hex.substring(1)):this}add(t){return b(p(this).add(p(t)))}sub(t){return b(p(this).sub(p(t)))}div(t){return g.from(t).isZero()&&v("division-by-zero","div"),b(p(this).div(p(t)))}mul(t){return b(p(this).mul(p(t)))}mod(t){const e=p(t);return e.isNeg()&&v("division-by-zero","mod"),b(p(this).umod(e))}pow(t){const e=p(t);return e.isNeg()&&v("negative-power","pow"),b(p(this).pow(e))}and(t){const e=p(t);return(this.isNegative()||e.isNeg())&&v("unbound-bitwise-result","and"),b(p(this).and(e))}or(t){const e=p(t);return(this.isNegative()||e.isNeg())&&v("unbound-bitwise-result","or"),b(p(this).or(e))}xor(t){const e=p(t);return(this.isNegative()||e.isNeg())&&v("unbound-bitwise-result","xor"),b(p(this).xor(e))}mask(t){return(this.isNegative()||t<0)&&v("negative-width","mask"),b(p(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&v("negative-width","shl"),b(p(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&v("negative-width","shr"),b(p(this).shrn(t))}eq(t){return p(this).eq(p(t))}lt(t){return p(this).lt(p(t))}lte(t){return p(this).lte(p(t))}gt(t){return p(this).gt(p(t))}gte(t){return p(this).gte(p(t))}isNegative(){return"-"===this._hex[0]}isZero(){return p(this).isZero()}toNumber(){try{return p(this).toNumber()}catch(t){v("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(t){}return u.throwError("this platform does not support BigInt",s.b.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?d||(d=!0,u.warn("BigNumber.toString does not accept any parameters;
1 base-10 is assumed")):16===arguments[0]?u.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",s.b.errors.UNEXPECTED_ARGUMENT,{}):u.throwError("BigNumber.toString does not accept parameters",s.b.errors.UNEXPECTED_ARGUMENT,{})),p(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof g)return t;if("string"==typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new g(f,m(t)):t.match(/^-?[0-9]+$/)?new g(f,m(new a(t))):u.throwArgumentError("invalid BigNumber string","value",t);if("number"==typeof t)return t%1&&v("underflow","BigNumber.from",t),(t>=l||t<=-l)&&v("overflow","BigNumber.from",t),g.from(String(t));const e=t;if("bigint"==typeof e)return g.from(e.toString());if(Object(o.j)(e))return g.from(Object(o.i)(e));if(e)if(e.toHexString){const t=e.toHexString();if("string"==typeof t)return g.from(t)}else{let t=e._hex;if(null==t&&"BigNumber"===e.type&&(t=e.hex),"string"==typeof t&&(Object(o.l)(t)||"-"===t[0]&&Object(o.l)(t.substring(1))))return g.from(t)}return u.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!(!t||!t._isBigNumber)}}function m(t){if("string"!=typeof t)return m(t.toString(16));if("-"===t[0])return"-"===(t=t.substring(1))[0]&&u.throwArgumentError("invalid hex","value",t),"0x00"===(t=m(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 b(t){return g.from(m(t))}function p(t){const e=g.from(t).toHexString();return"-"===e[0]?new a("-"+e.substring(3),16):new a(e.substring(2),16)}function v(t,e,r){const n={fault:t,operation:e};return null!=r&&(n.value=r),u.throwError(t,s.b.errors.NUMERIC_FAULT,n)}function O(t){return new a(t,36).toString(16)}function y(t){return new a(t,16).toString(36)}},f002:function(t,e,r){"use strict";r.d(e,"b",(function(){return N})),r.d(e,"a",(function(){return _})),r.d(e,"g",(function(){return A})),r.d(e,"f",(function(){return x})),r.d(e,"c",(function(){return S})),r.d(e,"e",(function(){return P})),r.d(e,"d",(function(){return T}));var n=r("2cf2"),i=r("549e"),o=r("e36d"),s=r("5273"),c=r("4105"),a=r("9bda"),u=r("ae1c"),f=r("3796"),l=r("d457"),h=r("5ac3"),d=r("5605");const g=new(r("ffb2").b)("hdnode/5.6.0"),m=o.a.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),b=Object(s.f)("Bitcoin seed"),p=2147483648;function v(t){return(1<<t)-1<<8-t}function O(t){return(1<<t)-1}function y(t){return Object(i.h)(Object(i.i)(t),32)}function E(t){return n.a.encode(Object(i.b)([t,Object(i.e)(Object(f.c)(Object(f.c)(t)),0,4)]))}function w(t){if(null==t)return d.a.en;if("string"==typeof t){const e=d.a[t];return null==e&&g.throwArgumentError("unknown locale","wordlist",t),e}return t}const j={},N="m/44'/60'/0'/0/0";class _{constructor(t,e,r,n,o,s,c,l){if(g.checkNew(new.target,_),t!==j)throw new Error("HDNode constructor cannot be called directly");if(e){const t=new u.a(e);Object(a.d)(this,"privateKey",t.privateKey),Object(a.d)(this,"publicKey",t.compressedPublicKey)}else Object(a.d)(this,"privateKey",null),Object(a.d)(this,"publicKey",Object(i.i)(r));Object(a.d)(this,"parentFingerprint",n),Object(a.d)(this,"fingerprint",Object(i.e)(Object(f.b)(Object(f.c)(this.publicKey)),0,4)),Object(a.d)(this,"address",Object(h.computeAddress)(this.publicKey)),Object(a.d)(this,"chainCode",o),Object(a.d)(this,"index",s),Object(a.d)(this,"depth",c),null==l?(Object(a.d)(this,"mnemonic",null),Object(a.d)(this,"path",null)):"string"==typeof l?(Object(a.d)(this,"mnemonic",null),Object(a.d)(this,"path",l)):(Object(a.d)(this,"mnemonic",l),Object(a.d)(this,"path",l.path))}get extendedKey(){if(this.depth>=256)throw new Error("Depth too large!");return E(Object(i.b)([null!=this.privateKey?"0x0488ADE4":"0x0488B21E",Object(i.i)(this.depth),this.parentFingerprint,Object(i.h)(Object(i.i)(this.index),4),this.chainCode,null!=this.privateKey?Object(i.b)(["0x00",this.privateKey]):this.publicKey]))}neuter(){return new _(j,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)}_derive(t){if(t>4294967295)throw new Error("invalid index - "+String(t));let e=this.path;e&&(e+="/"+(t&~p));
1const r=new Uint8Array(37);if(t&p){if(!this.privateKey)throw new Error("cannot derive child of neutered node");r.set(Object(i.a)(this.privateKey),1),e&&(e+="'")}else r.set(Object(i.a)(this.publicKey));for(let e=24;e>=0;e-=8)r[33+(e>>3)]=t>>24-e&255;const n=Object(i.a)(Object(f.a)(l.a.sha512,this.chainCode,r)),s=n.slice(0,32),c=n.slice(32);let a=null,h=null;if(this.privateKey)a=y(o.a.from(s).add(this.privateKey).mod(m));else{h=new u.a(Object(i.i)(s))._addPoint(this.publicKey)}let d=e;const g=this.mnemonic;return g&&(d=Object.freeze({phrase:g.phrase,path:e,locale:g.locale||"en"})),new _(j,a,h,this.fingerprint,y(c),t,this.depth+1,d)}derivePath(t){const e=t.split("/");if(0===e.length||"m"===e[0]&&0!==this.depth)throw new Error("invalid path - "+t);"m"===e[0]&&e.shift();let r=this;for(let t=0;t<e.length;t++){const n=e[t];if(n.match(/^[0-9]+'$/)){const t=parseInt(n.substring(0,n.length-1));if(t>=p)throw new Error("invalid path index - "+n);r=r._derive(p+t)}else{if(!n.match(/^[0-9]+$/))throw new Error("invalid path component - "+n);{const t=parseInt(n);if(t>=p)throw new Error("invalid path index - "+n);r=r._derive(t)}}}return r}static _fromSeed(t,e){const r=Object(i.a)(t);if(r.length<16||r.length>64)throw new Error("invalid seed");const n=Object(i.a)(Object(f.a)(l.a.sha512,b,r));return new _(j,y(n.slice(0,32)),null,"0x00000000",y(n.slice(32)),0,0,e)}static fromMnemonic(t,e,r){return t=S(x(t,r=w(r)),r),_._fromSeed(A(t,e),{phrase:t,path:"m",locale:r.locale})}static fromSeed(t){return _._fromSeed(t,null)}static fromExtendedKey(t){const e=n.a.decode(t);82===e.length&&E(e.slice(0,78))===t||g.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");const r=e[4],o=Object(i.i)(e.slice(5,9)),s=parseInt(Object(i.i)(e.slice(9,13)).substring(2),16),c=Object(i.i)(e.slice(13,45)),a=e.slice(45,78);switch(Object(i.i)(e.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new _(j,null,Object(i.i)(a),o,c,s,r,null);case"0x0488ade4":case"0x04358394 ":if(0!==a[0])break;return new _(j,Object(i.i)(a.slice(1)),null,o,c,s,r,null)}return g.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}function A(t,e){e||(e="");const r=Object(s.f)("mnemonic"+e,s.a.NFKD);return Object(c.a)(Object(s.f)(t,s.a.NFKD),r,2048,64,"sha512")}function x(t,e){e=w(e),g.checkNormalize();const r=e.split(t);if(r.length%3!=0)throw new Error("invalid mnemonic");const n=Object(i.a)(new Uint8Array(Math.ceil(11*r.length/8)));let o=0;for(let t=0;t<r.length;t++){let i=e.getWordIndex(r[t].normalize("NFKD"));if(-1===i)throw new Error("invalid mnemonic");for(let t=0;t<11;t++)i&1<<10-t&&(n[o>>3]|=1<<7-o%8),o++}const s=32*r.length/3,c=v(r.length/3);if((Object(i.a)(Object(f.c)(n.slice(0,s/8)))[0]&c)!==(n[n.length-1]&c))throw new Error("invalid checksum");return Object(i.i)(n.slice(0,s/8))}function S(t,e){if(e=w(e),(t=Object(i.a)(t)).length%4!=0||t.length<16||t.length>32)throw new Error("invalid entropy");const r=[0];let n=11;for(let e=0;e<t.length;e++)n>8?(r[r.length-1]<<=8,r[r.length-1]|=t[e],n-=8):(r[r.length-1]<<=n,r[r.length-1]|=t[e]>>8-n,r.push(t[e]&O(8-n)),n+=3);const o=t.length/4,s=Object(i.a)(Object(f.c)(t))[0]&v(o);return r[r.length-1]<<=o,r[r.length-1]|=s>>8-o,e.join(r.map((t=>e.getWord(t))))}function P(t,e){try{return x(t,e),!0}catch(t){}return!1}function T(t){return("number"!=typeof t||t<0||t>=p||t%1)&&g.throwArgumentError("invalid account index","index",t),`m/44'/60'/${t}'/0/0`}},f179:function(t,e,r){"use strict";r.d(e,"a",(function(){return x})),r.d(e,"b",(function(){return S})),r.d(e,"c",(function(){return P}));var n=r("5134"),i=r("a807"),o=r("edaa"),s=r("7ca5"),c=r("3b1c"),a=r("e36d"),u=r("549e"),f=r("9bda"),l=r("5ac3"),h=r("ffb2");var d=function(t,e,r,n){function i(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,o){function s(t){try{a(n.next(t))}catch(t){o(t)}}function c(t){try{a(n.throw(t))}catch(t){o(t)}}function a(t){t.done?r(t.value):i(t.value).then(s,c)}a((n=n.apply(t,e||[])).next())}))};const g=new h.b("contracts/5.6.0"),m={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 b(t,e){return d(this,void 0,void 0,(function*(){const r=yield e;"string"!=typeof r&&g.throwArgumentError("invalid address or ENS name","name",r);try{return Object(c.a)(r)}catch(t){}t||g.throwError("a provider or signer is needed to resolve ENS names",h.b.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"});const n=yield t.resolveName(r);return null==n&&g.throwArgumentError("resolver or addr is not configured for ENS name","name",r),n}))}function p(t,e,r){return d(this,void 0,void 0,(function*(){return Array.isArray(r)?yield Promise.all(r.map(((r,n)=>p(t,Array.isArray(e)?e[n]:e[r.name],r)))):"address"===r.type?yield b(t,e):"tuple"===r.type?yield p(t,e,r.components):"array"===r.baseType?Array.isArray(e)?yield Promise.all(e.map((e=>p(t,e,r.arrayChildren)))):Promise.reject(g.makeError("invalid value for array",h.b.errors.INVALID_ARGUMENT,{argument:"value",value:e})):e}))}function v(t,e,r){return d(this,void 0,void 0,(function*(){let n={};r.length===e.inputs.length+1&&"object"==typeof r[r.length-1]&&(n=Object(f.g)(r.pop())
1),g.checkArgumentCount(r.length,e.inputs.length,"passed to contract"),t.signer?n.from?n.from=Object(f.f)({override:b(t.signer,n.from),signer:t.signer.getAddress()}).then((t=>d(this,void 0,void 0,(function*(){return Object(c.a)(t.signer)!==t.override&&g.throwError("Contract with a Signer cannot override from",h.b.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),t.override})))):n.from=t.signer.getAddress():n.from&&(n.from=b(t.provider,n.from));const i=yield Object(f.f)({args:p(t.signer||t.provider,r,e.inputs),address:t.resolvedAddress,overrides:Object(f.f)(n)||{}}),o=t.interface.encodeFunctionData(e,i.args),s={data:o,to:i.address},m=i.overrides;if(null!=m.nonce&&(s.nonce=a.a.from(m.nonce).toNumber()),null!=m.gasLimit&&(s.gasLimit=a.a.from(m.gasLimit)),null!=m.gasPrice&&(s.gasPrice=a.a.from(m.gasPrice)),null!=m.maxFeePerGas&&(s.maxFeePerGas=a.a.from(m.maxFeePerGas)),null!=m.maxPriorityFeePerGas&&(s.maxPriorityFeePerGas=a.a.from(m.maxPriorityFeePerGas)),null!=m.from&&(s.from=m.from),null!=m.type&&(s.type=m.type),null!=m.accessList&&(s.accessList=Object(l.accessListify)(m.accessList)),null==s.gasLimit&&null!=e.gas){let t=21e3;const r=Object(u.a)(o);for(let e=0;e<r.length;e++)t+=4,r[e]&&(t+=64);s.gasLimit=a.a.from(e.gas).add(t)}if(m.value){const t=a.a.from(m.value);t.isZero()||e.payable||g.throwError("non-payable method cannot override value",h.b.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:n.value}),s.value=t}m.customData&&(s.customData=Object(f.g)(m.customData)),m.ccipReadEnabled&&(s.ccipReadEnabled=!!m.ccipReadEnabled),delete n.nonce,delete n.gasLimit,delete n.gasPrice,delete n.from,delete n.value,delete n.type,delete n.accessList,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas,delete n.customData,delete n.ccipReadEnabled;const v=Object.keys(n).filter((t=>null!=n[t]));return v.length&&g.throwError("cannot override "+v.map((t=>JSON.stringify(t))).join(","),h.b.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:v}),s}))}function O(t,e){const r=e.wait.bind(e);e.wait=e=>r(e).then((e=>(e.events=e.logs.map((r=>{let n=Object(f.c)(r),i=null;try{i=t.interface.parseLog(r)}catch(t){}return i&&(n.args=i.args,n.decode=(e,r)=>t.interface.decodeEventLog(i.eventFragment,e,r),n.event=i.name,n.eventSignature=i.signature),n.removeListener=()=>t.provider,n.getBlock=()=>t.provider.getBlock(e.blockHash),n.getTransaction=()=>t.provider.getTransaction(e.transactionHash),n.getTransactionReceipt=()=>Promise.resolve(e),n})),e)))}function y(t,e,r){const n=t.signer||t.provider;return function(...i){return d(this,void 0,void 0,(function*(){let o;if(i.length===e.inputs.length+1&&"object"==typeof i[i.length-1]){const t=Object(f.g)(i.pop());null!=t.blockTag&&(o=yield t.blockTag),delete t.blockTag,i.push(t)}null!=t.deployTransaction&&(yield t._deployed(o));const s=yield v(t,e,i),c=yield n.call(s,o);try{let n=t.interface.decodeFunctionResult(e,c);return r&&1===e.outputs.length&&(n=n[0]),n}catch(e){throw e.code===h.b.errors.CALL_EXCEPTION&&(e.address=t.address,e.args=i,e.transaction=s),e}}))}}function E(t,e,r){return e.constant?y(t,e,r):function(t,e){return function(...r){return d(this,void 0,void 0,(function*(){t.signer||g.throwError("sending a transaction requires a signer",h.b.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),null!=t.deployTransaction&&(yield t._deployed());const n=yield v(t,e,r),i=yield t.signer.sendTransaction(n);return O(t,i),i}))}}(t,e)}function w(t){return!t.address||null!=t.topics&&0!==t.topics.length?(t.address||"*")+"@"+(t.topics?t.topics.map((t=>Array.isArray(t)?t.join("|"):t)).join(":"):""):"*"}class j{constructor(t,e){Object(f.d)(this,"tag",t),Object(f.d)(this,"filter",e),this._listeners=[]}addListener(t,e){this._listeners.push({listener:t,once:e})}removeListener(t){let e=!1;this._listeners=this._listeners.filter((r=>!(!e&&r.listener===t&&(e=!0,1))))}removeAllListeners(){this._listeners=[]}listeners(){return this._listeners.map((t=>t.listener))}listenerCount(){return this._listeners.length}run(t){const e=this.listenerCount();return this._listeners=this._listeners.filter((e=>{const r=t.slice();return setTimeout((()=>{e.listener.apply(this,r)}),0),!e.once})),e}prepareEvent(t){}getEmit(t){return[t]}}class N extends j{constructor(){super("error",null)}}class _ extends j{constructor(t,e,r,n){const i={address:t};let o=e.getEventTopic(r);n?(o!==n[0]&&g.throwArgumentError("topic mismatch","topics",n),i.topics=n.slice()):i.topics=[o],super(w(i),i),Object(f.d)(this,"address",t),Object(f.d)(this,"interface",e),Object(f.d)(this,"fragment",r)}prepareEvent(t){super.prepareEvent(t),t.event=this.fragment.name,t.eventSignature=this.fragment.format(),t.decode=(t,e)=>this.interface.decodeEventLog(this.fragment,t,e);try{t.args=this.interface.decodeEventLog(this.fragment,t.data,t.topics)}catch(e){t.args=null,t.decodeError=e}}getEmit(t){const e=Object(n.d)(t.args);if(e.length)throw e[0].error;const r=(t.args||[]).slice();return r.push(t),r}}class A extends j{constructor(t,e){super("*",{address:t}),Object(f.d)(this,"address",t),Object(f.d)(this,"interface",e)}prepareEvent(t){super.prepareEvent(t);try{const e=this.interface.parseLog(t);t.event=e.name,t.eventSignature=e.signature,t.decode=(t,r)=>this.interface.decodeEventLog(e.eventFragment,t,r),t.args=e.args}catch(t){}}}class x{constructor(t,e,r){g.checkNew(new.target,S),Object(f.d)(this,"interface",Object(f.e)(new.target,"getInterface")(e)),null==r?(Object(f.d)(this,"provider",null),Object(f.d)(this,"signer",null)):s.a.isSigner(r)?(Object(f.d)(this,"provider",r.provider||null),Object(f.d)(this,"signer",r)):o.b.isProvider(r)?(Object(f.d)(this,"provider",r),Object(f.d)(this,"signer",null)):g.throwArgumentError("invalid signer or provider","signerOrProvider",r),Object(f.d)(this,"callStatic",{}),Object(f.d)(this,"estimateGas",{}),Object(f.d)(this,"functions",{}),Object(f.d)(this,"populateTransaction",{}),Object(f.d)(this,"filters",{});{const t={};
1Object.keys(this.interface.events).forEach((e=>{const r=this.interface.events[e];Object(f.d)(this.filters,e,((...t)=>({address:this.address,topics:this.interface.encodeFilterTopics(r,t)}))),t[r.name]||(t[r.name]=[]),t[r.name].push(e)})),Object.keys(t).forEach((e=>{const r=t[e];1===r.length?Object(f.d)(this.filters,e,this.filters[r[0]]):g.warn(`Duplicate definition of ${e} (${r.join(", ")})`)}))}if(Object(f.d)(this,"_runningEvents",{}),Object(f.d)(this,"_wrappedEmits",{}),null==t&&g.throwArgumentError("invalid contract address or ENS name","addressOrName",t),Object(f.d)(this,"address",t),this.provider)Object(f.d)(this,"resolvedAddress",b(this.provider,t));else try{Object(f.d)(this,"resolvedAddress",Promise.resolve(Object(c.a)(t)))}catch(t){g.throwError("provider is required to use ENS name as contract address",h.b.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}this.resolvedAddress.catch((t=>{}));const n={},i={};Object.keys(this.interface.functions).forEach((t=>{const e=this.interface.functions[t];if(i[t])g.warn("Duplicate ABI entry for "+JSON.stringify(t));else{i[t]=!0;{const r=e.name;n["%"+r]||(n["%"+r]=[]),n["%"+r].push(t)}null==this[t]&&Object(f.d)(this,t,E(this,e,!0)),null==this.functions[t]&&Object(f.d)(this.functions,t,E(this,e,!1)),null==this.callStatic[t]&&Object(f.d)(this.callStatic,t,y(this,e,!0)),null==this.populateTransaction[t]&&Object(f.d)(this.populateTransaction,t,function(t,e){return function(...r){return v(t,e,r)}}(this,e)),null==this.estimateGas[t]&&Object(f.d)(this.estimateGas,t,function(t,e){const r=t.signer||t.provider;return function(...n){return d(this,void 0,void 0,(function*(){r||g.throwError("estimate require a provider or signer",h.b.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"});const i=yield v(t,e,n);return yield r.estimateGas(i)}))}}(this,e))}})),Object.keys(n).forEach((t=>{const e=n[t];if(e.length>1)return;t=t.substring(1);const r=e[0];try{null==this[t]&&Object(f.d)(this,t,this[r])}catch(t){}null==this.functions[t]&&Object(f.d)(this.functions,t,this.functions[r]),null==this.callStatic[t]&&Object(f.d)(this.callStatic,t,this.callStatic[r]),null==this.populateTransaction[t]&&Object(f.d)(this.populateTransaction,t,this.populateTransaction[r]),null==this.estimateGas[t]&&Object(f.d)(this.estimateGas,t,this.estimateGas[r])}))}static getContractAddress(t){return Object(c.b)(t)}static getInterface(t){return i.b.isInterface(t)?t:new i.b(t)}deployed(){return this._deployed()}_deployed(t){return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then((()=>this)):this._deployedPromise=this.provider.getCode(this.address,t).then((t=>("0x"===t&&g.throwError("contract not deployed",h.b.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:"getDeployed"}),this)))),this._deployedPromise}fallback(t){this.signer||g.throwError("sending a transactions require a signer",h.b.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});const e=Object(f.g)(t||{});return["from","to"].forEach((function(t){null!=e[t]&&g.throwError("cannot override "+t,h.b.errors.UNSUPPORTED_OPERATION,{operation:t})})),e.to=this.resolvedAddress,this.deployed().then((()=>this.signer.sendTransaction(e)))}connect(t){"string"==typeof t&&(t=new s.b(t,this.provider));const e=new this.constructor(this.address,this.interface,t);return this.deployTransaction&&Object(f.d)(e,"deployTransaction",this.deployTransaction),e}attach(t){return new this.constructor(t,this.interface,this.signer||this.provider)}static isIndexed(t){return i.a.isIndexed(t)}_normalizeRunningEvent(t){return this._runningEvents[t.tag]?this._runningEvents[t.tag]:t}_getRunningEvent(t){if("string"==typeof t){if("error"===t)return this._normalizeRunningEvent(new N);if("event"===t)return this._normalizeRunningEvent(new j("event",null));if("*"===t)return this._normalizeRunningEvent(new A(this.address,this.interface));const e=this.interface.getEvent(t);return this._normalizeRunningEvent(new _(this.address,this.interface,e))}if(t.topics&&t.topics.length>0){try{const e=t.topics[0];if("string"!=typeof e)throw new Error("invalid topic");const r=this.interface.getEvent(e);return this._normalizeRunningEvent(new _(this.address,this.interface,r,t.topics))}catch(t){}const e={address:this.address,topics:t.topics};return this._normalizeRunningEvent(new j(w(e),e))}return this._normalizeRunningEvent(new A(this.address,this.interface))}_checkRunningEvents(t){if(0===t.listenerCount()){delete this._runningEvents[t.tag];const e=this._wrappedEmits[t.tag];e&&t.filter&&(this.provider.off(t.filter,e),delete this._wrappedEmits[t.tag])}}_wrapEvent(t,e,r){const n=Object(f.c)(e);return n.removeListener=()=>{r&&(t.removeListener(r),this._checkRunningEvents(t))},n.getBlock=()=>this.provider.getBlock(e.blockHash),n.getTransaction=()=>this.provider.getTransaction(e.transactionHash),n.getTransactionReceipt=()=>this.provider.getTransactionReceipt(e.transactionHash),t.prepareEvent(n),n}_addEventListener(t,e,r){if(this.provider||g.throwError("events require a provider or a signer with a provider",h.b.errors.UNSUPPORTED_OPERATION,{operation:"once"}),t.addListener(e,r),this._runningEvents[t.tag]=t,!this._wrappedEmits[t.tag]){const r=r=>{let n=this._wrapEvent(t,r,e);if(null==n.decodeError)try{const e=t.getEmit(n);
1this.emit(t.filter,...e)}catch(t){n.decodeError=t.error}null!=t.filter&&this.emit("event",n),null!=n.decodeError&&this.emit("error",n.decodeError,n)};this._wrappedEmits[t.tag]=r,null!=t.filter&&this.provider.on(t.filter,r)}}queryFilter(t,e,r){const n=this._getRunningEvent(t),i=Object(f.g)(n.filter);return"string"==typeof e&&Object(u.l)(e,32)?(null!=r&&g.throwArgumentError("cannot specify toBlock with blockhash","toBlock",r),i.blockHash=e):(i.fromBlock=null!=e?e:0,i.toBlock=null!=r?r:"latest"),this.provider.getLogs(i).then((t=>t.map((t=>this._wrapEvent(n,t,null)))))}on(t,e){return this._addEventListener(this._getRunningEvent(t),e,!1),this}once(t,e){return this._addEventListener(this._getRunningEvent(t),e,!0),this}emit(t,...e){if(!this.provider)return!1;const r=this._getRunningEvent(t),n=r.run(e)>0;return this._checkRunningEvents(r),n}listenerCount(t){return this.provider?null==t?Object.keys(this._runningEvents).reduce(((t,e)=>t+this._runningEvents[e].listenerCount()),0):this._getRunningEvent(t).listenerCount():0}listeners(t){if(!this.provider)return[];if(null==t){const t=[];for(let e in this._runningEvents)this._runningEvents[e].listeners().forEach((e=>{t.push(e)}));return t}return this._getRunningEvent(t).listeners()}removeAllListeners(t){if(!this.provider)return this;if(null==t){for(const t in this._runningEvents){const e=this._runningEvents[t];e.removeAllListeners(),this._checkRunningEvents(e)}return this}const e=this._getRunningEvent(t);return e.removeAllListeners(),this._checkRunningEvents(e),this}off(t,e){if(!this.provider)return this;const r=this._getRunningEvent(t);return r.removeListener(e),this._checkRunningEvents(r),this}removeListener(t,e){return this.off(t,e)}}class S extends x{}class P{constructor(t,e,r){let n=null;n="string"==typeof e?e:Object(u.j)(e)?Object(u.i)(e):e&&"string"==typeof e.object?e.object:"!","0x"!==n.substring(0,2)&&(n="0x"+n),(!Object(u.l)(n)||n.length%2)&&g.throwArgumentError("invalid bytecode","bytecode",e),r&&!s.a.isSigner(r)&&g.throwArgumentError("invalid signer","signer",r),Object(f.d)(this,"bytecode",n),Object(f.d)(this,"interface",Object(f.e)(new.target,"getInterface")(t)),Object(f.d)(this,"signer",r||null)}getDeployTransaction(...t){let e={};if(t.length===this.interface.deploy.inputs.length+1&&"object"==typeof t[t.length-1]){e=Object(f.g)(t.pop());for(const t in e)if(!m[t])throw new Error("unknown transaction override "+t)}if(["data","from","to"].forEach((t=>{null!=e[t]&&g.throwError("cannot override "+t,h.b.errors.UNSUPPORTED_OPERATION,{operation:t})})),e.value){a.a.from(e.value).isZero()||this.interface.deploy.payable||g.throwError("non-payable constructor cannot override value",h.b.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:e.value})}return g.checkArgumentCount(t.length,this.interface.deploy.inputs.length," in Contract constructor"),e.data=Object(u.i)(Object(u.b)([this.bytecode,this.interface.encodeDeploy(t)])),e}deploy(...t){return d(this,void 0,void 0,(function*(){let e={};t.length===this.interface.deploy.inputs.length+1&&(e=t.pop()),g.checkArgumentCount(t.length,this.interface.deploy.inputs.length," in Contract constructor");const r=yield p(this.signer,t,this.interface.deploy.inputs);r.push(e);const n=this.getDeployTransaction(...r),i=yield this.signer.sendTransaction(n),o=Object(f.e)(this.constructor,"getContractAddress")(i),s=Object(f.e)(this.constructor,"getContract")(o,this.interface,this.signer);return O(s,i),Object(f.d)(s,"deployTransaction",i),s}))}attach(t){return this.constructor.getContract(t,this.interface,this.signer)}connect(t){return new this.constructor(this.interface,this.bytecode,t)}static fromSolidity(t,e){null==t&&g.throwError("missing compiler output",h.b.errors.MISSING_ARGUMENT,{argument:"compilerOutput"}),"string"==typeof t&&(t=JSON.parse(t));const r=t.abi;let n=null;return t.bytecode?n=t.bytecode:t.evm&&t.evm.bytecode&&(n=t.evm.bytecode),new this(r,n,e)}static getInterface(t){return S.getInterface(t)}static getContractAddress(t){return Object(c.b)(t)}static getContract(t,e,r){return new S(t,e,r)}}},fe6d:function(t,e,r){"use strict";r.d(e,"b",(function(){return o}
1)),r.d(e,"e",(function(){return s})),r.d(e,"a",(function(){return c})),r.d(e,"c",(function(){return a})),r.d(e,"d",(function(){return u}));var n=r("549e"),i=r("5273");function o(t){return"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),Object(n.a)(t)}function s(t,e){for(t=String(t);t.length<e;)t="0"+t;return t}function c(t){return"string"==typeof t?Object(i.f)(t,i.a.NFKC):Object(n.a)(t)}function a(t,e){let r=t;const n=e.toLowerCase().split("/");for(let t=0;t<n.length;t++){let e=null;for(const i in r)if(i.toLowerCase()===n[t]){e=r[i];break}if(null===e)return null;r=e}return r}function u(t){const e=Object(n.a)(t);e[6]=15&e[6]|64,e[8]=63&e[8]|128;const r=Object(n.i)(e);return[r.substring(2,10),r.substring(10,14),r.substring(14,18),r.substring(18,22),r.substring(22,34)].join("-")}},ffb2:function(t,e,r){"use strict";r.d(e,"a",(function(){return f})),r.d(e,"b",(function(){return h}));let n=!1,i=!1;const o={debug:1,default:2,info:2,warning:3,error:4,off:5};let s=o.default,c=null;const a=function(){try{const t=[];if(["NFD","NFC","NFKD","NFKC"].forEach((e=>{try{if("test"!=="test".normalize(e))throw new Error("bad normalize")}catch(r){t.push(e)}})),t.length)throw new Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(t){return t.message}return null}();var u,f;(function(t){t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR",t.OFF="OFF"})(u||(u={})),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"}(f||(f={}));const l="0123456789abcdef";class h{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){const r=t.toLowerCase();null==o[r]&&this.throwArgumentError("invalid log level name","logLevel",t),s>o[r]||console.log.apply(console,e)}debug(...t){this._log(h.levels.DEBUG,t)}info(...t){this._log(h.levels.INFO,t)}warn(...t){this._log(h.levels.WARNING,t)}makeError(t,e,r){if(i)return this.makeError("censored error",e,{});e||(e=h.errors.UNKNOWN_ERROR),r||(r={});const n=[];Object.keys(r).forEach((t=>{const e=r[t];try{if(e instanceof Uint8Array){let r="";for(let t=0;t<e.length;t++)r+=l[e[t]>>4],r+=l[15&e[t]];n.push(t+"=Uint8Array(0x"+r+")")}else n.push(t+"="+JSON.stringify(e))}catch(e){n.push(t+"="+JSON.stringify(r[t].toString()))}})),n.push("code="+e),n.push("version="+this.version);const o=t;let s="";switch(e){case f.NUMERIC_FAULT:{s="NUMERIC_FAULT";const e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":s+="-"+e;break;case"negative-power":case"negative-width":s+="-unsupported";break;case"unbound-bitwise-result":s+="-unbound-result"}break}case f.CALL_EXCEPTION:case f.INSUFFICIENT_FUNDS:case f.MISSING_NEW:case f.NONCE_EXPIRED:case f.REPLACEMENT_UNDERPRICED:case f.TRANSACTION_REPLACED:case f.UNPREDICTABLE_GAS_LIMIT:s=e}s&&(t+=" [ See: https://links.ethers.org/v5-errors-"+s+" ]"),n.length&&(t+=" ("+n.join(", ")+")");const c=new Error(t);return c.reason=o,c.code=e,Object.keys(r).forEach((function(t){c[t]=r[t]})),c}throwError(t,e,r){throw this.makeError(t,e,r)}throwArgumentError(t,e,r){return this.throwError(t,h.errors.INVALID_ARGUMENT,{argument:e,value:r})}assert(t,e,r,n){t||this.throwError(e,r,n)}assertArgument(t,e,r,n){t||this.throwArgumentError(e,r,n)}checkNormalize(t){null==t&&(t="platform missing String.prototype.normalize"),a&&this.throwError("platform missing String.prototype.normalize",h.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:a})}checkSafeUint53(t,e){"number"==typeof t&&(null==e&&(e="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(e,h.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(e,h.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,e,r){r=r?": "+r:"",t<e&&this.throwError("missing argument"+r,h.errors.MISSING_ARGUMENT,{count:t,expectedCount:e}),t>e&&this.throwError("too many arguments"+r,h.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:e})}checkNew(t,e){t!==Object&&null!=t||this.throwError("missing new",h.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",h.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):t!==Object&&null!=t||this.throwError("missing new",h.errors.MISSING_NEW,{name:e.name})}static globalLogger(){return c||(c=new h("logger/5.6.0")),c}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",h.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),n){if(!t)return;this.globalLogger().throwError("error censorship permanent",h.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}i=!!t,n=!!e}static setLogLevel(t){const e=o[t.toLowerCase()];null!=e?s=e:h.globalLogger().warn("invalid log level - "+t)}static from(t){return new h(t)}}h.errors=f,h.levels=u}}]);
2//# sourceMappingURL=chunk-vendors~5cbdb1e7.f29831ff.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.