/*! For license information please see LICENSES */ (this.webpackJsonp=this.webpackJsonp||[]).push([[34],[,function(e,t,r){"use strict";r.r(t),r.d(t,"isBytesLike",(function(){return A})),r.d(t,"isBytes",(function(){return f})),r.d(t,"arrayify",(function(){return l})),r.d(t,"concat",(function(){return h})),r.d(t,"stripZeros",(function(){return d})),r.d(t,"zeroPad",(function(){return m})),r.d(t,"isHexString",(function(){return y})),r.d(t,"hexlify",(function(){return I})),r.d(t,"hexDataLength",(function(){return w})),r.d(t,"hexDataSlice",(function(){return E})),r.d(t,"hexConcat",(function(){return C})),r.d(t,"hexValue",(function(){return B})),r.d(t,"hexStripZeros",(function(){return Q})),r.d(t,"hexZeroPad",(function(){return _})),r.d(t,"splitSignature",(function(){return D})),r.d(t,"joinSignature",(function(){return M}));const n=new(r(5).Logger)("bytes/5.4.0");function o(e){return!!e.toHexString}function c(e){return e.slice||(e.slice=function(){const t=Array.prototype.slice.call(arguments);return c(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function A(e){return y(e)&&!(e.length%2)||f(e)}function f(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"==typeof e)return!1;if(null==e.length)return!1;for(let i=0;i=256||t%1)return!1}return!0}function l(e,t){if(t||(t={}),"number"==typeof e){n.checkSafeUint53(e,"invalid arrayify value");const t=[];for(;e;)t.unshift(255&e),e=parseInt(String(e/256));return 0===t.length&&t.push(0),c(new Uint8Array(t))}if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),o(e)&&(e=e.toHexString()),y(e)){let r=e.substring(2);r.length%2&&("left"===t.hexPad?r="0x0"+r.substring(2):"right"===t.hexPad?r+="0":n.throwArgumentError("hex data is odd-length","value",e));const o=[];for(let i=0;il(e))),r=t.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(r);return t.reduce(((e,object)=>(n.set(object,e),e+object.length)),0),c(n)}function d(e){let t=l(e);if(0===t.length)return t;let r=0;for(;rt&&n.throwArgumentError("value out of range","value",arguments[0]);const r=new Uint8Array(t);return r.set(e,t-e.length),c(r)}function y(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/))&&(!t||e.length===2+2*t)}const v="0123456789abcdef";function I(e,t){if(t||(t={}),"number"==typeof e){n.checkSafeUint53(e,"invalid hexlify value");let t="";for(;e;)t=v[15&e]+t,e=Math.floor(e/16);return t.length?(t.length%2&&(t="0"+t),"0x"+t):"0x00"}if("bigint"==typeof e)return(e=e.toString(16)).length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),o(e))return e.toHexString();if(y(e))return e.length%2&&("left"===t.hexPad?e="0x0"+e.substring(2):"right"===t.hexPad?e+="0":n.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(f(e)){let t="0x";for(let i=0;i>4]+v[15&r]}return t}return n.throwArgumentError("invalid hexlify value","value",e)}function w(data){if("string"!=typeof data)data=I(data);else if(!y(data)||data.length%2)return null;return(data.length-2)/2}function E(data,e,t){return"string"!=typeof data?data=I(data):(!y(data)||data.length%2)&&n.throwArgumentError("invalid hexData","value",data),e=2+2*e,null!=t?"0x"+data.substring(e,2+2*t):"0x"+data.substring(e)}function C(e){let t="0x";return e.forEach((e=>{t+=I(e).substring(2)})),t}function B(e){const t=Q(I(e,{hexPad:"left"}));return"0x"===t?"0x0":t}function Q(e){"string"!=typeof e&&(e=I(e)),y(e)||n.throwArgumentError("invalid hex string","value",e),e=e.substring(2);let t=0;for(;t2*t+2&&n.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}function D(e){const t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0};if(A(e)){const r=l(e);65!==r.length&&n.throwArgumentError("invalid signature string; must be 65 bytes","signature",e),t.r=I(r.slice(0,32)),t.s=I(r.slice(32,64)),t.v=r[64],t.v<27&&(0===t.v||1===t.v?t.v+=27:n.throwArgumentError("signature invalid v byte","signature",e)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(r[32]|=128),t._vs=I(r.slice(32,64))}else{if(t.r=e.r,t.s=e.s,t.v=e.v,t.recoveryParam=e.recoveryParam,t._vs=e._vs,null!=t._vs){const r=m(l(t._vs),32);t._vs=I(r);const o=r[0]>=128?1:0;null==t.recoveryParam?t.recoveryParam=o:t.recoveryParam!==o&&n.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),r[0]&=127;const s=I(r);null==t.s?t.s=s:t.s!==s&&n.throwArgumentError("signature v mismatch _vs","signature",e)}null==t.recoveryParam?null==t.v?n.throwArgumentError("signature missing v and recoveryParam","signature",e):0===t.v||1===t.v?t.recoveryParam=t.v:t.recoveryParam=1-t.v%2:null==t.v?t.v=27+t.recoveryParam:t.recoveryParam!==1-t.v%2&&n.throwArgumentError("signature recoveryParam mismatch v","signature",e),null!=t.r&&y(t.r)?t.r=_(t.r,32):n.throwArgumentError("signature missing or invalid r","signature",e),null!=t.s&&y(t.s)?t.s=_(t.s,32):n.throwArgumentError("signature missing or invalid s","signature",e);const r=l(t.s);r[0]>=128&&n.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(r[0]|=128);const o=I(r);t._vs&&(y(t._vs)||n.throwArgumentError("signature invalid _vs","signature",e),t._vs=_(t._vs,32)),null==t._vs?t._vs=o:t._vs!==o&&n.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t}function M(e){return I(h([(e=D(e)).r,e.s,e.recoveryParam?"0x1c":"0x1b"]))}},function(e,t,r){"use strict";r.d(t,"k",(function(){return A})),r.d(t,"j",(function(){return l})),r.d(t,"a",(function(){return h})),r.d(t,"b",(function(){return d})),r.d(t,"o",(function(){return m})),r.d(t,"p",(function(){return y})),r.d(t,"l",(function(){return v})),r.d(t,"i",(function(){return w})),r.d(t,"d",(function(){return E})),r.d(t,"e",(function(){return C})),r.d(t,"c",(function(){return B})),r.d(t,"g",(function(){return Q})),r.d(t,"f",(function(){return _})),r.d(t,"h",(function(){return D})),r.d(t,"n",(function(){return M})),r.d(t,"m",(function(){return S}));const n=new(r(7).b)("bytes/5.5.0");function o(e){return!!e.toHexString}function c(e){return e.slice||(e.slice=function(){const t=Array.prototype.slice.call(arguments);return c(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function A(e){return v(e)&&!(e.length%2)||l(e)}function f(e){return"number"==typeof e&&e==e&&e%1==0}function l(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"==typeof e)return!1;if(!f(e.length)||e.length<0)return!1;for(let i=0;i=256)return!1}return!0}function h(e,t){if(t||(t={}),"number"==typeof e){n.checkSafeUint53(e,"invalid arrayify value");const t=[];for(;e;)t.unshift(255&e),e=parseInt(String(e/256));return 0===t.length&&t.push(0),c(new Uint8Array(t))}if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),o(e)&&(e=e.toHexString()),v(e)){let r=e.substring(2);r.length%2&&("left"===t.hexPad?r="0x0"+r.substring(2):"right"===t.hexPad?r+="0":n.throwArgumentError("hex data is odd-length","value",e));const o=[];for(let i=0;ih(e))),r=t.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(r);return t.reduce(((e,object)=>(n.set(object,e),e+object.length)),0),c(n)}function m(e){let t=h(e);if(0===t.length)return t;let r=0;for(;rt&&n.throwArgumentError("value out of range","value",arguments[0]);const r=new Uint8Array(t);return r.set(e,t-e.length),c(r)}function v(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/))&&(!t||e.length===2+2*t)}const I="0123456789abcdef";function w(e,t){if(t||(t={}),"number"==typeof e){n.checkSafeUint53(e,"invalid hexlify value");let t="";for(;e;)t=I[15&e]+t,e=Math.floor(e/16);return t.length?(t.length%2&&(t="0"+t),"0x"+t):"0x00"}if("bigint"==typeof e)return(e=e.toString(16)).length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),o(e))return e.toHexString();if(v(e))return e.length%2&&("left"===t.hexPad?e="0x0"+e.substring(2):"right"===t.hexPad?e+="0":n.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(l(e)){let t="0x";for(let i=0;i>4]+I[15&r]}return t}return n.throwArgumentError("invalid hexlify value","value",e)}function E(data){if("string"!=typeof data)data=w(data);else if(!v(data)||data.length%2)return null;return(data.length-2)/2}function C(data,e,t){return"string"!=typeof data?data=w(data):(!v(data)||data.length%2)&&n.throwArgumentError("invalid hexData","value",data),e=2+2*e,null!=t?"0x"+data.substring(e,2+2*t):"0x"+data.substring(e)}function B(e){let t="0x";return e.forEach((e=>{t+=w(e).substring(2)})),t}function Q(e){const t=_(w(e,{hexPad:"left"}));return"0x"===t?"0x0":t}function _(e){"string"!=typeof e&&(e=w(e)),v(e)||n.throwArgumentError("invalid hex string","value",e),e=e.substring(2);let t=0;for(;t2*t+2&&n.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}function M(e){const t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0};if(A(e)){const r=h(e);65!==r.length&&n.throwArgumentError("invalid signature string; must be 65 bytes","signature",e),t.r=w(r.slice(0,32)),t.s=w(r.slice(32,64)),t.v=r[64],t.v<27&&(0===t.v||1===t.v?t.v+=27:n.throwArgumentError("signature invalid v byte","signature",e)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(r[32]|=128),t._vs=w(r.slice(32,64))}else{if(t.r=e.r,t.s=e.s,t.v=e.v,t.recoveryParam=e.recoveryParam,t._vs=e._vs,null!=t._vs){const r=y(h(t._vs),32);t._vs=w(r);const o=r[0]>=128?1:0;null==t.recoveryParam?t.recoveryParam=o:t.recoveryParam!==o&&n.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),r[0]&=127;const s=w(r);null==t.s?t.s=s:t.s!==s&&n.throwArgumentError("signature v mismatch _vs","signature",e)}if(null==t.recoveryParam)null==t.v?n.throwArgumentError("signature missing v and recoveryParam","signature",e):0===t.v||1===t.v?t.recoveryParam=t.v:t.recoveryParam=1-t.v%2;else if(null==t.v)t.v=27+t.recoveryParam;else{const r=0===t.v||1===t.v?t.v:1-t.v%2;t.recoveryParam!==r&&n.throwArgumentError("signature recoveryParam mismatch v","signature",e)}null!=t.r&&v(t.r)?t.r=D(t.r,32):n.throwArgumentError("signature missing or invalid r","signature",e),null!=t.s&&v(t.s)?t.s=D(t.s,32):n.throwArgumentError("signature missing or invalid s","signature",e);const r=h(t.s);r[0]>=128&&n.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(r[0]|=128);const o=w(r);t._vs&&(v(t._vs)||n.throwArgumentError("signature invalid _vs","signature",e),t._vs=D(t._vs,32)),null==t._vs?t._vs=o:t._vs!==o&&n.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t}function S(e){return w(d([(e=M(e)).r,e.s,e.recoveryParam?"0x1c":"0x1b"]))}},function(e,t,r){"use strict";r.r(t),r.d(t,"defineReadOnly",(function(){return A})),r.d(t,"getStatic",(function(){return f})),r.d(t,"resolveProperties",(function(){return l})),r.d(t,"checkProperties",(function(){return h})),r.d(t,"shallowCopy",(function(){return d})),r.d(t,"deepCopy",(function(){return I})),r.d(t,"Description",(function(){return w}));var n=r(5);var o=function(e,t,r,n){return new(r||(r=Promise))((function(o,c){function A(e){try{l(n.next(e))}catch(e){c(e)}}function f(e){try{l(n.throw(e))}catch(e){c(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(A,f)}l((n=n.apply(e,t||[])).next())}))};const c=new n.Logger("properties/5.4.1");function A(object,e,t){Object.defineProperty(object,e,{enumerable:!0,value:t,writable:!1})}function f(e,t){for(let i=0;i<32;i++){if(e[t])return e[t];if(!e.prototype||"object"!=typeof e.prototype)break;e=Object.getPrototypeOf(e.prototype).constructor}return null}function l(object){return o(this,void 0,void 0,(function*(){const e=Object.keys(object).map((e=>{const t=object[e];return Promise.resolve(t).then((t=>({key:e,value:t})))}));return(yield Promise.all(e)).reduce(((e,t)=>(e[t.key]=t.value,e)),{})}))}function h(object,e){object&&"object"==typeof object||c.throwArgumentError("invalid object","object",object),Object.keys(object).forEach((t=>{e[t]||c.throwArgumentError("invalid object key - "+t,"transaction:"+t,object)}))}function d(object){const e={};for(const t in object)e[t]=object[t];return e}const m={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function y(object){if(null==object||m[typeof object])return!0;if(Array.isArray(object)||"object"==typeof object){if(!Object.isFrozen(object))return!1;const e=Object.keys(object);for(let i=0;iI(e))));if("object"==typeof object){const e={};for(const t in object){const r=object[t];void 0!==r&&A(e,t,I(r))}return e}return c.throwArgumentError("Cannot deepCopy "+typeof object,"object",object)}function I(object){return v(object)}class w{constructor(e){for(const t in e)this[t]=I(e[t])}}},function(e,t,r){"use strict";function n(e,t,r,n,o,c,A){try{var f=e[c](A),l=f.value}catch(e){return void r(e)}f.done?t(l):Promise.resolve(l).then(n,o)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(o,c){var A=e.apply(t,r);function f(e){n(A,o,c,f,l,"next",e)}function l(e){n(A,o,c,f,l,"throw",e)}f(void 0)}))}}r.d(t,"a",(function(){return o}))},function(e,t,r){"use strict";r.r(t),r.d(t,"LogLevel",(function(){return h})),r.d(t,"ErrorCode",(function(){return d})),r.d(t,"Logger",(function(){return y}));let n=!1,o=!1;const c={debug:1,default:2,info:2,warning:3,error:4,off:5};let A=c.default,f=null;const l=function(){try{const e=[];if(["NFD","NFC","NFKD","NFKC"].forEach((form=>{try{if("test"!=="test".normalize(form))throw new Error("bad normalize")}catch(t){e.push(form)}})),e.length)throw new Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(e){return e.message}return null}();var h,d;!function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"}(h||(h={})),function(e){e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.NOT_IMPLEMENTED="NOT_IMPLEMENTED",e.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",e.NETWORK_ERROR="NETWORK_ERROR",e.SERVER_ERROR="SERVER_ERROR",e.TIMEOUT="TIMEOUT",e.BUFFER_OVERRUN="BUFFER_OVERRUN",e.NUMERIC_FAULT="NUMERIC_FAULT",e.MISSING_NEW="MISSING_NEW",e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.MISSING_ARGUMENT="MISSING_ARGUMENT",e.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",e.CALL_EXCEPTION="CALL_EXCEPTION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.NONCE_EXPIRED="NONCE_EXPIRED",e.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",e.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",e.TRANSACTION_REPLACED="TRANSACTION_REPLACED"}(d||(d={}));const m="0123456789abcdef";class y{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,t){const r=e.toLowerCase();null==c[r]&&this.throwArgumentError("invalid log level name","logLevel",e),A>c[r]||console.log.apply(console,t)}debug(...e){this._log(y.levels.DEBUG,e)}info(...e){this._log(y.levels.INFO,e)}warn(...e){this._log(y.levels.WARNING,e)}makeError(e,code,t){if(o)return this.makeError("censored error",code,{});code||(code=y.errors.UNKNOWN_ERROR),t||(t={});const r=[];Object.keys(t).forEach((e=>{const n=t[e];try{if(n instanceof Uint8Array){let t="";for(let i=0;i>4],t+=m[15&n[i]];r.push(e+"=Uint8Array(0x"+t+")")}else r.push(e+"="+JSON.stringify(n))}catch(n){r.push(e+"="+JSON.stringify(t[e].toString()))}})),r.push(`code=${code}`),r.push(`version=${this.version}`);const n=e;r.length&&(e+=" ("+r.join(", ")+")");const c=new Error(e);return c.reason=n,c.code=code,Object.keys(t).forEach((function(e){c[e]=t[e]})),c}throwError(e,code,t){throw this.makeError(e,code,t)}throwArgumentError(e,t,r){return this.throwError(e,y.errors.INVALID_ARGUMENT,{argument:t,value:r})}assert(e,t,code,r){e||this.throwError(t,code,r)}assertArgument(e,t,r,n){e||this.throwArgumentError(t,r,n)}checkNormalize(e){null==e&&(e="platform missing String.prototype.normalize"),l&&this.throwError("platform missing String.prototype.normalize",y.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:l})}checkSafeUint53(e,t){"number"==typeof e&&(null==t&&(t="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(t,y.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(t,y.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,t,r){r=r?": "+r:"",et&&this.throwError("too many arguments"+r,y.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})}checkNew(e,t){e!==Object&&null!=e||this.throwError("missing new",y.errors.MISSING_NEW,{name:t.name})}checkAbstract(e,t){e===t?this.throwError("cannot instantiate abstract class "+JSON.stringify(t.name)+" directly; use a sub-class",y.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):e!==Object&&null!=e||this.throwError("missing new",y.errors.MISSING_NEW,{name:t.name})}static globalLogger(){return f||(f=new y("logger/5.4.1")),f}static setCensorship(e,t){if(!e&&t&&this.globalLogger().throwError("cannot permanently disable censorship",y.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),n){if(!e)return;this.globalLogger().throwError("error censorship permanent",y.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}o=!!e,n=!!t}static setLogLevel(e){const t=c[e.toLowerCase()];null!=t?A=t:y.globalLogger().warn("invalid log level - "+e)}static from(e){return new y(e)}}y.errors=d,y.levels=h},,function(e,t,r){"use strict";r.d(t,"a",(function(){return d})),r.d(t,"b",(function(){return y}));let n=!1,o=!1;const c={debug:1,default:2,info:2,warning:3,error:4,off:5};let A=c.default,f=null;const l=function(){try{const e=[];if(["NFD","NFC","NFKD","NFKC"].forEach((form=>{try{if("test"!=="test".normalize(form))throw new Error("bad normalize")}catch(t){e.push(form)}})),e.length)throw new Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(e){return e.message}return null}();var h,d;!function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"}(h||(h={})),function(e){e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.NOT_IMPLEMENTED="NOT_IMPLEMENTED",e.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",e.NETWORK_ERROR="NETWORK_ERROR",e.SERVER_ERROR="SERVER_ERROR",e.TIMEOUT="TIMEOUT",e.BUFFER_OVERRUN="BUFFER_OVERRUN",e.NUMERIC_FAULT="NUMERIC_FAULT",e.MISSING_NEW="MISSING_NEW",e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.MISSING_ARGUMENT="MISSING_ARGUMENT",e.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",e.CALL_EXCEPTION="CALL_EXCEPTION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.NONCE_EXPIRED="NONCE_EXPIRED",e.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",e.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",e.TRANSACTION_REPLACED="TRANSACTION_REPLACED"}(d||(d={}));const m="0123456789abcdef";class y{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,t){const r=e.toLowerCase();null==c[r]&&this.throwArgumentError("invalid log level name","logLevel",e),A>c[r]||console.log.apply(console,t)}debug(...e){this._log(y.levels.DEBUG,e)}info(...e){this._log(y.levels.INFO,e)}warn(...e){this._log(y.levels.WARNING,e)}makeError(e,code,t){if(o)return this.makeError("censored error",code,{});code||(code=y.errors.UNKNOWN_ERROR),t||(t={});const r=[];Object.keys(t).forEach((e=>{const n=t[e];try{if(n instanceof Uint8Array){let t="";for(let i=0;i>4],t+=m[15&n[i]];r.push(e+"=Uint8Array(0x"+t+")")}else r.push(e+"="+JSON.stringify(n))}catch(n){r.push(e+"="+JSON.stringify(t[e].toString()))}})),r.push(`code=${code}`),r.push(`version=${this.version}`);const n=e;r.length&&(e+=" ("+r.join(", ")+")");const c=new Error(e);return c.reason=n,c.code=code,Object.keys(t).forEach((function(e){c[e]=t[e]})),c}throwError(e,code,t){throw this.makeError(e,code,t)}throwArgumentError(e,t,r){return this.throwError(e,y.errors.INVALID_ARGUMENT,{argument:t,value:r})}assert(e,t,code,r){e||this.throwError(t,code,r)}assertArgument(e,t,r,n){e||this.throwArgumentError(t,r,n)}checkNormalize(e){null==e&&(e="platform missing String.prototype.normalize"),l&&this.throwError("platform missing String.prototype.normalize",y.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:l})}checkSafeUint53(e,t){"number"==typeof e&&(null==t&&(t="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(t,y.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(t,y.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,t,r){r=r?": "+r:"",et&&this.throwError("too many arguments"+r,y.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})}checkNew(e,t){e!==Object&&null!=e||this.throwError("missing new",y.errors.MISSING_NEW,{name:t.name})}checkAbstract(e,t){e===t?this.throwError("cannot instantiate abstract class "+JSON.stringify(t.name)+" directly; use a sub-class",y.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):e!==Object&&null!=e||this.throwError("missing new",y.errors.MISSING_NEW,{name:t.name})}static globalLogger(){return f||(f=new y("logger/5.5.0")),f}static setCensorship(e,t){if(!e&&t&&this.globalLogger().throwError("cannot permanently disable censorship",y.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),n){if(!e)return;this.globalLogger().throwError("error censorship permanent",y.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}o=!!e,n=!!t}static setLogLevel(e){const t=c[e.toLowerCase()];null!=t?A=t:y.globalLogger().warn("invalid log level - "+e)}static from(e){return new y(e)}}y.errors=d,y.levels=h},,function(e,t,r){"use strict";r.d(t,"c",(function(){return o})),r.d(t,"a",(function(){return c})),r.d(t,"e",(function(){return A})),r.d(t,"b",(function(){return f})),r.d(t,"d",(function(){return l})),r.d(t,"f",(function(){return h}));var n=function(e,b){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,b){e.__proto__=b}||function(e,b){for(var p in b)Object.prototype.hasOwnProperty.call(b,p)&&(e[p]=b[p])},n(e,b)};function o(e,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function t(){this.constructor=e}n(e,b),e.prototype=null===b?Object.create(b):(t.prototype=b.prototype,new t)}var c=function(){return c=Object.assign||function(e){for(var s,i=1,t=arguments.length;i0&&n[n.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!n||c[1]>n[0]&&c[1]-1&&t.splice(i,1)}}function w(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var r=e.state;C(e,r,[],e._modules.root,!0),E(e,r,t)}function E(e,t,r){var n=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var o=e._wrappedGetters,A={};c(o,(function(t,r){A[r]=function(e,t){return function(){return e(t)}}(t,e),Object.defineProperty(e.getters,r,{get:function(){return e._vm[r]},enumerable:!0})}));var f=m.config.silent;m.config.silent=!0,e._vm=new m({data:{$$state:t},computed:A}),m.config.silent=f,e.strict&&function(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(e),n&&(r&&e._withCommit((function(){n._data.$$state=null})),m.nextTick((function(){return n.$destroy()})))}function C(e,t,path,r,n){var o=!path.length,c=e._modules.getNamespace(path);if(r.namespaced&&(e._modulesNamespaceMap[c],e._modulesNamespaceMap[c]=r),!o&&!n){var A=B(t,path.slice(0,-1)),f=path[path.length-1];e._withCommit((function(){m.set(A,f,r.state)}))}var l=r.context=function(e,t,path){var r=""===t,n={dispatch:r?e.dispatch:function(r,n,o){var c=Q(r,n,o),A=c.payload,f=c.options,l=c.type;return f&&f.root||(l=t+l),e.dispatch(l,A)},commit:r?e.commit:function(r,n,o){var c=Q(r,n,o),A=c.payload,f=c.options,l=c.type;f&&f.root||(l=t+l),e.commit(l,A,f)}};return Object.defineProperties(n,{getters:{get:r?function(){return e.getters}:function(){return function(e,t){if(!e._makeLocalGettersCache[t]){var r={},n=t.length;Object.keys(e.getters).forEach((function(o){if(o.slice(0,n)===t){var c=o.slice(n);Object.defineProperty(r,c,{get:function(){return e.getters[o]},enumerable:!0})}})),e._makeLocalGettersCache[t]=r}return e._makeLocalGettersCache[t]}(e,t)}},state:{get:function(){return B(e.state,path)}}}),n}(e,c,path);r.forEachMutation((function(t,r){!function(e,t,r,n){(e._mutations[t]||(e._mutations[t]=[])).push((function(t){r.call(e,n.state,t)}))}(e,c+r,t,l)})),r.forEachAction((function(t,r){var n=t.root?r:c+r,o=t.handler||t;!function(e,t,r,n){(e._actions[t]||(e._actions[t]=[])).push((function(t){var o,c=r.call(e,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:e.getters,rootState:e.state},t);return(o=c)&&"function"==typeof o.then||(c=Promise.resolve(c)),e._devtoolHook?c.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):c}))}(e,n,o,l)})),r.forEachGetter((function(t,r){!function(e,t,r,n){if(e._wrappedGetters[t])return void 0;e._wrappedGetters[t]=function(e){return r(n.state,n.getters,e.state,e.getters)}}(e,c+r,t,l)})),r.forEachChild((function(r,o){C(e,t,path.concat(o),r,n)}))}function B(e,path){return path.reduce((function(e,t){return e[t]}),e)}function Q(e,t,r){return A(e)&&e.type&&(r=t,t=e,e=e.type),{type:e,payload:t,options:r}}function _(e){m&&e===m||function(e){if(Number(e.version.split(".")[0])>=2)e.mixin({beforeCreate:r});else{var t=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[r].concat(e.init):r,t.call(this,e)}}function r(){var e=this.$options;e.store?this.$store="function"==typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}(m=e)}v.state.get=function(){return this._vm._data.$$state},v.state.set=function(e){0},y.prototype.commit=function(e,t,r){var n=this,o=Q(e,t,r),c=o.type,A=o.payload,f=(o.options,{type:c,payload:A}),l=this._mutations[c];l&&(this._withCommit((function(){l.forEach((function(e){e(A)}))})),this._subscribers.slice().forEach((function(sub){return sub(f,n.state)})))},y.prototype.dispatch=function(e,t){var r=this,n=Q(e,t),o=n.type,c=n.payload,A={type:o,payload:c},f=this._actions[o];if(f){try{this._actionSubscribers.slice().filter((function(sub){return sub.before})).forEach((function(sub){return sub.before(A,r.state)}))}catch(e){0}var l=f.length>1?Promise.all(f.map((function(e){return e(c)}))):f[0](c);return new Promise((function(e,t){l.then((function(t){try{r._actionSubscribers.filter((function(sub){return sub.after})).forEach((function(sub){return sub.after(A,r.state)}))}catch(e){0}e(t)}),(function(e){try{r._actionSubscribers.filter((function(sub){return sub.error})).forEach((function(sub){return sub.error(A,r.state,e)}))}catch(e){0}t(e)}))}))}},y.prototype.subscribe=function(e,t){return I(e,this._subscribers,t)},y.prototype.subscribeAction=function(e,t){return I("function"==typeof e?{before:e}:e,this._actionSubscribers,t)},y.prototype.watch=function(e,t,r){var n=this;return this._watcherVM.$watch((function(){return e(n.state,n.getters)}),t,r)},y.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},y.prototype.registerModule=function(path,e,t){void 0===t&&(t={}),"string"==typeof path&&(path=[path]),this._modules.register(path,e),C(this,this.state,path,this._modules.get(path),t.preserveState),E(this,this.state)},y.prototype.unregisterModule=function(path){var e=this;"string"==typeof path&&(path=[path]),this._modules.unregister(path),this._withCommit((function(){var t=B(e.state,path.slice(0,-1));m.delete(t,path[path.length-1])})),w(this)},y.prototype.hasModule=function(path){return"string"==typeof path&&(path=[path]),this._modules.isRegistered(path)},y.prototype.hotUpdate=function(e){this._modules.update(e),w(this,!0)},y.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(y.prototype,v);var D=O((function(e,t){var r={};return x(t).forEach((function(t){var n=t.key,o=t.val;r[n]=function(){var t=this.$store.state,r=this.$store.getters;if(e){var n=F(this.$store,"mapState",e);if(!n)return;t=n.context.state,r=n.context.getters}return"function"==typeof o?o.call(this,t,r):t[o]},r[n].vuex=!0})),r})),M=O((function(e,t){var r={};return x(t).forEach((function(t){var n=t.key,o=t.val;r[n]=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var n=this.$store.commit;if(e){var c=F(this.$store,"mapMutations",e);if(!c)return;n=c.context.commit}return"function"==typeof o?o.apply(this,[n].concat(t)):n.apply(this.$store,[o].concat(t))}})),r})),S=O((function(e,t){var r={};return x(t).forEach((function(t){var n=t.key,o=t.val;o=e+o,r[n]=function(){if(!e||F(this.$store,"mapGetters",e))return this.$store.getters[o]},r[n].vuex=!0})),r})),k=O((function(e,t){var r={};return x(t).forEach((function(t){var n=t.key,o=t.val;r[n]=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var n=this.$store.dispatch;if(e){var c=F(this.$store,"mapActions",e);if(!c)return;n=c.context.dispatch}return"function"==typeof o?o.apply(this,[n].concat(t)):n.apply(this.$store,[o].concat(t))}})),r}));function x(map){return function(map){return Array.isArray(map)||A(map)}(map)?Array.isArray(map)?map.map((function(e){return{key:e,val:e}})):Object.keys(map).map((function(e){return{key:e,val:map[e]}})):[]}function O(e){return function(t,map){return"string"!=typeof t?(map=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,map)}}function F(e,t,r){return e._modulesNamespaceMap[r]}function R(e,t,r){var n=r?e.groupCollapsed:e.group;try{n.call(e,t)}catch(r){e.log(t)}}function N(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function P(){var time=new Date;return" @ "+T(time.getHours(),2)+":"+T(time.getMinutes(),2)+":"+T(time.getSeconds(),2)+"."+T(time.getMilliseconds(),3)}function T(e,t){return r="0",n=t-e.toString().length,new Array(n+1).join(r)+e;var r,n}var L={Store:y,install:_,version:"3.6.2",mapState:D,mapMutations:M,mapGetters:S,mapActions:k,createNamespacedHelpers:function(e){return{mapState:D.bind(null,e),mapGetters:S.bind(null,e),mapMutations:M.bind(null,e),mapActions:k.bind(null,e)}},createLogger:function(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var filter=e.filter;void 0===filter&&(filter=function(e,t,r){return!0});var r=e.transformer;void 0===r&&(r=function(e){return e});var n=e.mutationTransformer;void 0===n&&(n=function(e){return e});var c=e.actionFilter;void 0===c&&(c=function(e,t){return!0});var A=e.actionTransformer;void 0===A&&(A=function(e){return e});var f=e.logMutations;void 0===f&&(f=!0);var l=e.logActions;void 0===l&&(l=!0);var h=e.logger;return void 0===h&&(h=console),function(e){var d=o(e.state);void 0!==h&&(f&&e.subscribe((function(e,c){var A=o(c);if(filter(e,d,A)){var f=P(),l=n(e),m="mutation "+e.type+f;R(h,m,t),h.log("%c prev state","color: #9E9E9E; font-weight: bold",r(d)),h.log("%c mutation","color: #03A9F4; font-weight: bold",l),h.log("%c next state","color: #4CAF50; font-weight: bold",r(A)),N(h)}d=A})),l&&e.subscribeAction((function(e,r){if(c(e,r)){var n=P(),o=A(e),f="action "+e.type+n;R(h,f,t),h.log("%c action","color: #03A9F4; font-weight: bold",o),N(h)}})))}}};t.a=L}).call(this,r(36))},function(e,t,r){"use strict";r.d(t,"c",(function(){return v.a})),r.d(t,"b",(function(){return l})),r.d(t,"a",(function(){return f}));var n=r(9),o="Invariant Violation",c=Object.setPrototypeOf,A=void 0===c?function(e,t){return e.__proto__=t,e}:c,f=function(e){function t(r){void 0===r&&(r=o);var n=e.call(this,"number"==typeof r?o+": "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name=o,A(n,t.prototype),n}return Object(n.c)(t,e),t}(Error);function l(e,t){if(!e)throw new f(t)}var h=["debug","log","warn","error","silent"],d=h.indexOf("log");function m(e){return function(){if(h.indexOf(e)>=d){var t=console[e]||console.log;return t.apply(console,arguments)}}}!function(e){e.debug=m("debug"),e.log=m("log"),e.warn=m("warn"),e.error=m("error")}(l||(l={}));var y=r(248),v=r(140),I="__",w=[I,I].join("DEV");var E=function(){try{return Boolean(__DEV__)}catch(e){return Object.defineProperty(y.a,w,{value:"production"!==Object(v.a)((function(){return"production"})),enumerable:!1,configurable:!0,writable:!0}),y.a[w]}}(),C=r(458);r(512).a,Object(C.a)(),__DEV__?l("boolean"==typeof E,E):l("boolean"==typeof E,38)},function(e,t,r){(function(e){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function o(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function c(e,base,t){if(c.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==base&&"be"!==base||(t=base,base=10),this._init(e||0,base||10,t||"be"))}var A;"object"==typeof e?e.exports=c:t.BN=c,c.BN=c,c.wordSize=26;try{A="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(798).Buffer}catch(e){}function f(e,t){var r=e.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function l(e,t,r){var n=f(e,r);return r-1>=t&&(n|=f(e,r-1)<<4),n}function h(e,t,r,n){for(var o=0,c=Math.min(e.length,r),i=t;i=49?A-49+10:A>=17?A-17+10:A}return o}c.isBN=function(e){return e instanceof c||null!==e&&"object"==typeof e&&e.constructor.wordSize===c.wordSize&&Array.isArray(e.words)},c.max=function(e,t){return e.cmp(t)>0?e:t},c.min=function(e,t){return e.cmp(t)<0?e:t},c.prototype._init=function(e,base,t){if("number"==typeof e)return this._initNumber(e,base,t);if("object"==typeof e)return this._initArray(e,base,t);"hex"===base&&(base=16),n(base===(0|base)&&base>=2&&base<=36);var r=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(r++,this.negative=1),r=0;i-=3)o=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[r]|=o<>>26-c&67108863,(c+=24)>=26&&(c-=26,r++);else if("le"===t)for(i=0,r=0;i>>26-c&67108863,(c+=24)>=26&&(c-=26,r++);return this.strip()},c.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var i=0;i=t;i-=2)n=l(e,t,i)<=18?(o-=18,c+=1,this.words[c]|=n>>>26):o+=8;else for(i=(e.length-t)%2==0?t+1:t;i=18?(o-=18,c+=1,this.words[c]|=n>>>26):o+=8;this.strip()},c.prototype._parseBase=function(e,base,t){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=base)r++;r--,n=n/base|0;for(var o=e.length-t,c=o%r,A=Math.min(o,o-c)+t,f=0,i=t;i1&&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},c.prototype.inspect=function(){return(this.red?""};var d=["","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"],m=[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],y=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function v(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var a=0|e.words[0],b=0|t.words[0],o=a*b,c=67108863&o,A=o/67108864|0;r.words[0]=c;for(var f=1;f>>26,h=67108863&A,d=Math.min(f,t.length-1),m=Math.max(0,f-e.length+1);m<=d;m++){var i=f-m|0;l+=(o=(a=0|e.words[i])*(b=0|t.words[m])+h)/67108864|0,h=67108863&o}r.words[f]=0|h,A=0|l}return 0!==A?r.words[f]=0|A:r.length--,r.strip()}c.prototype.toString=function(base,e){var t;if(e=0|e||1,16===(base=base||10)||"hex"===base){t="";for(var r=0,o=0,i=0;i>>24-r&16777215)||i!==this.length-1?d[6-A.length]+A+t:A+t,(r+=2)>=26&&(r-=26,i--)}for(0!==o&&(t=o.toString(16)+t);t.length%e!=0;)t="0"+t;return 0!==this.negative&&(t="-"+t),t}if(base===(0|base)&&base>=2&&base<=36){var f=m[base],l=y[base];t="";var h=this.clone();for(h.negative=0;!h.isZero();){var v=h.modn(l).toString(base);t=(h=h.idivn(l)).isZero()?v+t:d[f-v.length]+v+t}for(this.isZero()&&(t="0"+t);t.length%e!=0;)t="0"+t;return 0!==this.negative&&(t="-"+t),t}n(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},c.prototype.toJSON=function(){return this.toString(16)},c.prototype.toBuffer=function(e,t){return n(void 0!==A),this.toArrayLike(A,e,t)},c.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},c.prototype.toArrayLike=function(e,t,r){var o=this.byteLength(),c=r||Math.max(1,o);n(o<=c,"byte array longer than desired length"),n(c>0,"Requested array length <= 0"),this.strip();var b,i,A="le"===t,f=new e(c),q=this.clone();if(A){for(i=0;!q.isZero();i++)b=q.andln(255),q.iushrn(8),f[i]=b;for(;i=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},c.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},c.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,i=0;ie.length?this.clone().ior(e):e.clone().ior(this)},c.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},c.prototype.iuand=function(e){var b;b=this.length>e.length?e:this;for(var i=0;ie.length?this.clone().iand(e):e.clone().iand(this)},c.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},c.prototype.iuxor=function(e){var a,b;this.length>e.length?(a=this,b=e):(a=e,b=this);for(var i=0;ie.length?this.clone().ixor(e):e.clone().ixor(this)},c.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},c.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},c.prototype.notn=function(e){return this.clone().inotn(e)},c.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,o=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(a=this,b=e):(a=e,b=this);for(var r=0,i=0;i>>26;for(;0!==r&&i>>26;if(this.length=a.length,0!==r)this.words[this.length]=r,this.length++;else if(a!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},c.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var a,b,r=this.cmp(e);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(a=this,b=e):(a=e,b=this);for(var n=0,i=0;i>26,this.words[i]=67108863&t;for(;0!==n&&i>26,this.words[i]=67108863&t;if(0===n&&i>>13,m=0|a[1],y=8191&m,v=m>>>13,I=0|a[2],w=8191&I,E=I>>>13,C=0|a[3],B=8191&C,Q=C>>>13,_=0|a[4],D=8191&_,M=_>>>13,S=0|a[5],k=8191&S,x=S>>>13,O=0|a[6],F=8191&O,R=O>>>13,N=0|a[7],P=8191&N,T=N>>>13,L=0|a[8],j=8191&L,U=L>>>13,H=0|a[9],J=8191&H,G=H>>>13,z=0|b[0],V=8191&z,X=z>>>13,K=0|b[1],Y=8191&K,Z=K>>>13,W=0|b[2],$=8191&W,ee=W>>>13,te=0|b[3],re=8191&te,ne=te>>>13,ie=0|b[4],oe=8191&ie,ae=ie>>>13,se=0|b[5],ue=8191&se,ce=se>>>13,Ae=0|b[6],fe=8191&Ae,le=Ae>>>13,he=0|b[7],de=8191&he,ge=he>>>13,pe=0|b[8],me=8191&pe,be=pe>>>13,ye=0|b[9],ve=8191&ye,Ie=ye>>>13;r.negative=e.negative^t.negative,r.length=19;var we=(f+(n=Math.imul(h,V))|0)+((8191&(o=(o=Math.imul(h,X))+Math.imul(d,V)|0))<<13)|0;f=((c=Math.imul(d,X))+(o>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(y,V),o=(o=Math.imul(y,X))+Math.imul(v,V)|0,c=Math.imul(v,X);var Ee=(f+(n=n+Math.imul(h,Y)|0)|0)+((8191&(o=(o=o+Math.imul(h,Z)|0)+Math.imul(d,Y)|0))<<13)|0;f=((c=c+Math.imul(d,Z)|0)+(o>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(w,V),o=(o=Math.imul(w,X))+Math.imul(E,V)|0,c=Math.imul(E,X),n=n+Math.imul(y,Y)|0,o=(o=o+Math.imul(y,Z)|0)+Math.imul(v,Y)|0,c=c+Math.imul(v,Z)|0;var Ce=(f+(n=n+Math.imul(h,$)|0)|0)+((8191&(o=(o=o+Math.imul(h,ee)|0)+Math.imul(d,$)|0))<<13)|0;f=((c=c+Math.imul(d,ee)|0)+(o>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(B,V),o=(o=Math.imul(B,X))+Math.imul(Q,V)|0,c=Math.imul(Q,X),n=n+Math.imul(w,Y)|0,o=(o=o+Math.imul(w,Z)|0)+Math.imul(E,Y)|0,c=c+Math.imul(E,Z)|0,n=n+Math.imul(y,$)|0,o=(o=o+Math.imul(y,ee)|0)+Math.imul(v,$)|0,c=c+Math.imul(v,ee)|0;var Be=(f+(n=n+Math.imul(h,re)|0)|0)+((8191&(o=(o=o+Math.imul(h,ne)|0)+Math.imul(d,re)|0))<<13)|0;f=((c=c+Math.imul(d,ne)|0)+(o>>>13)|0)+(Be>>>26)|0,Be&=67108863,n=Math.imul(D,V),o=(o=Math.imul(D,X))+Math.imul(M,V)|0,c=Math.imul(M,X),n=n+Math.imul(B,Y)|0,o=(o=o+Math.imul(B,Z)|0)+Math.imul(Q,Y)|0,c=c+Math.imul(Q,Z)|0,n=n+Math.imul(w,$)|0,o=(o=o+Math.imul(w,ee)|0)+Math.imul(E,$)|0,c=c+Math.imul(E,ee)|0,n=n+Math.imul(y,re)|0,o=(o=o+Math.imul(y,ne)|0)+Math.imul(v,re)|0,c=c+Math.imul(v,ne)|0;var Qe=(f+(n=n+Math.imul(h,oe)|0)|0)+((8191&(o=(o=o+Math.imul(h,ae)|0)+Math.imul(d,oe)|0))<<13)|0;f=((c=c+Math.imul(d,ae)|0)+(o>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,n=Math.imul(k,V),o=(o=Math.imul(k,X))+Math.imul(x,V)|0,c=Math.imul(x,X),n=n+Math.imul(D,Y)|0,o=(o=o+Math.imul(D,Z)|0)+Math.imul(M,Y)|0,c=c+Math.imul(M,Z)|0,n=n+Math.imul(B,$)|0,o=(o=o+Math.imul(B,ee)|0)+Math.imul(Q,$)|0,c=c+Math.imul(Q,ee)|0,n=n+Math.imul(w,re)|0,o=(o=o+Math.imul(w,ne)|0)+Math.imul(E,re)|0,c=c+Math.imul(E,ne)|0,n=n+Math.imul(y,oe)|0,o=(o=o+Math.imul(y,ae)|0)+Math.imul(v,oe)|0,c=c+Math.imul(v,ae)|0;var _e=(f+(n=n+Math.imul(h,ue)|0)|0)+((8191&(o=(o=o+Math.imul(h,ce)|0)+Math.imul(d,ue)|0))<<13)|0;f=((c=c+Math.imul(d,ce)|0)+(o>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(F,V),o=(o=Math.imul(F,X))+Math.imul(R,V)|0,c=Math.imul(R,X),n=n+Math.imul(k,Y)|0,o=(o=o+Math.imul(k,Z)|0)+Math.imul(x,Y)|0,c=c+Math.imul(x,Z)|0,n=n+Math.imul(D,$)|0,o=(o=o+Math.imul(D,ee)|0)+Math.imul(M,$)|0,c=c+Math.imul(M,ee)|0,n=n+Math.imul(B,re)|0,o=(o=o+Math.imul(B,ne)|0)+Math.imul(Q,re)|0,c=c+Math.imul(Q,ne)|0,n=n+Math.imul(w,oe)|0,o=(o=o+Math.imul(w,ae)|0)+Math.imul(E,oe)|0,c=c+Math.imul(E,ae)|0,n=n+Math.imul(y,ue)|0,o=(o=o+Math.imul(y,ce)|0)+Math.imul(v,ue)|0,c=c+Math.imul(v,ce)|0;var De=(f+(n=n+Math.imul(h,fe)|0)|0)+((8191&(o=(o=o+Math.imul(h,le)|0)+Math.imul(d,fe)|0))<<13)|0;f=((c=c+Math.imul(d,le)|0)+(o>>>13)|0)+(De>>>26)|0,De&=67108863,n=Math.imul(P,V),o=(o=Math.imul(P,X))+Math.imul(T,V)|0,c=Math.imul(T,X),n=n+Math.imul(F,Y)|0,o=(o=o+Math.imul(F,Z)|0)+Math.imul(R,Y)|0,c=c+Math.imul(R,Z)|0,n=n+Math.imul(k,$)|0,o=(o=o+Math.imul(k,ee)|0)+Math.imul(x,$)|0,c=c+Math.imul(x,ee)|0,n=n+Math.imul(D,re)|0,o=(o=o+Math.imul(D,ne)|0)+Math.imul(M,re)|0,c=c+Math.imul(M,ne)|0,n=n+Math.imul(B,oe)|0,o=(o=o+Math.imul(B,ae)|0)+Math.imul(Q,oe)|0,c=c+Math.imul(Q,ae)|0,n=n+Math.imul(w,ue)|0,o=(o=o+Math.imul(w,ce)|0)+Math.imul(E,ue)|0,c=c+Math.imul(E,ce)|0,n=n+Math.imul(y,fe)|0,o=(o=o+Math.imul(y,le)|0)+Math.imul(v,fe)|0,c=c+Math.imul(v,le)|0;var Me=(f+(n=n+Math.imul(h,de)|0)|0)+((8191&(o=(o=o+Math.imul(h,ge)|0)+Math.imul(d,de)|0))<<13)|0;f=((c=c+Math.imul(d,ge)|0)+(o>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(j,V),o=(o=Math.imul(j,X))+Math.imul(U,V)|0,c=Math.imul(U,X),n=n+Math.imul(P,Y)|0,o=(o=o+Math.imul(P,Z)|0)+Math.imul(T,Y)|0,c=c+Math.imul(T,Z)|0,n=n+Math.imul(F,$)|0,o=(o=o+Math.imul(F,ee)|0)+Math.imul(R,$)|0,c=c+Math.imul(R,ee)|0,n=n+Math.imul(k,re)|0,o=(o=o+Math.imul(k,ne)|0)+Math.imul(x,re)|0,c=c+Math.imul(x,ne)|0,n=n+Math.imul(D,oe)|0,o=(o=o+Math.imul(D,ae)|0)+Math.imul(M,oe)|0,c=c+Math.imul(M,ae)|0,n=n+Math.imul(B,ue)|0,o=(o=o+Math.imul(B,ce)|0)+Math.imul(Q,ue)|0,c=c+Math.imul(Q,ce)|0,n=n+Math.imul(w,fe)|0,o=(o=o+Math.imul(w,le)|0)+Math.imul(E,fe)|0,c=c+Math.imul(E,le)|0,n=n+Math.imul(y,de)|0,o=(o=o+Math.imul(y,ge)|0)+Math.imul(v,de)|0,c=c+Math.imul(v,ge)|0;var Se=(f+(n=n+Math.imul(h,me)|0)|0)+((8191&(o=(o=o+Math.imul(h,be)|0)+Math.imul(d,me)|0))<<13)|0;f=((c=c+Math.imul(d,be)|0)+(o>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(J,V),o=(o=Math.imul(J,X))+Math.imul(G,V)|0,c=Math.imul(G,X),n=n+Math.imul(j,Y)|0,o=(o=o+Math.imul(j,Z)|0)+Math.imul(U,Y)|0,c=c+Math.imul(U,Z)|0,n=n+Math.imul(P,$)|0,o=(o=o+Math.imul(P,ee)|0)+Math.imul(T,$)|0,c=c+Math.imul(T,ee)|0,n=n+Math.imul(F,re)|0,o=(o=o+Math.imul(F,ne)|0)+Math.imul(R,re)|0,c=c+Math.imul(R,ne)|0,n=n+Math.imul(k,oe)|0,o=(o=o+Math.imul(k,ae)|0)+Math.imul(x,oe)|0,c=c+Math.imul(x,ae)|0,n=n+Math.imul(D,ue)|0,o=(o=o+Math.imul(D,ce)|0)+Math.imul(M,ue)|0,c=c+Math.imul(M,ce)|0,n=n+Math.imul(B,fe)|0,o=(o=o+Math.imul(B,le)|0)+Math.imul(Q,fe)|0,c=c+Math.imul(Q,le)|0,n=n+Math.imul(w,de)|0,o=(o=o+Math.imul(w,ge)|0)+Math.imul(E,de)|0,c=c+Math.imul(E,ge)|0,n=n+Math.imul(y,me)|0,o=(o=o+Math.imul(y,be)|0)+Math.imul(v,me)|0,c=c+Math.imul(v,be)|0;var ke=(f+(n=n+Math.imul(h,ve)|0)|0)+((8191&(o=(o=o+Math.imul(h,Ie)|0)+Math.imul(d,ve)|0))<<13)|0;f=((c=c+Math.imul(d,Ie)|0)+(o>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(J,Y),o=(o=Math.imul(J,Z))+Math.imul(G,Y)|0,c=Math.imul(G,Z),n=n+Math.imul(j,$)|0,o=(o=o+Math.imul(j,ee)|0)+Math.imul(U,$)|0,c=c+Math.imul(U,ee)|0,n=n+Math.imul(P,re)|0,o=(o=o+Math.imul(P,ne)|0)+Math.imul(T,re)|0,c=c+Math.imul(T,ne)|0,n=n+Math.imul(F,oe)|0,o=(o=o+Math.imul(F,ae)|0)+Math.imul(R,oe)|0,c=c+Math.imul(R,ae)|0,n=n+Math.imul(k,ue)|0,o=(o=o+Math.imul(k,ce)|0)+Math.imul(x,ue)|0,c=c+Math.imul(x,ce)|0,n=n+Math.imul(D,fe)|0,o=(o=o+Math.imul(D,le)|0)+Math.imul(M,fe)|0,c=c+Math.imul(M,le)|0,n=n+Math.imul(B,de)|0,o=(o=o+Math.imul(B,ge)|0)+Math.imul(Q,de)|0,c=c+Math.imul(Q,ge)|0,n=n+Math.imul(w,me)|0,o=(o=o+Math.imul(w,be)|0)+Math.imul(E,me)|0,c=c+Math.imul(E,be)|0;var xe=(f+(n=n+Math.imul(y,ve)|0)|0)+((8191&(o=(o=o+Math.imul(y,Ie)|0)+Math.imul(v,ve)|0))<<13)|0;f=((c=c+Math.imul(v,Ie)|0)+(o>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(J,$),o=(o=Math.imul(J,ee))+Math.imul(G,$)|0,c=Math.imul(G,ee),n=n+Math.imul(j,re)|0,o=(o=o+Math.imul(j,ne)|0)+Math.imul(U,re)|0,c=c+Math.imul(U,ne)|0,n=n+Math.imul(P,oe)|0,o=(o=o+Math.imul(P,ae)|0)+Math.imul(T,oe)|0,c=c+Math.imul(T,ae)|0,n=n+Math.imul(F,ue)|0,o=(o=o+Math.imul(F,ce)|0)+Math.imul(R,ue)|0,c=c+Math.imul(R,ce)|0,n=n+Math.imul(k,fe)|0,o=(o=o+Math.imul(k,le)|0)+Math.imul(x,fe)|0,c=c+Math.imul(x,le)|0,n=n+Math.imul(D,de)|0,o=(o=o+Math.imul(D,ge)|0)+Math.imul(M,de)|0,c=c+Math.imul(M,ge)|0,n=n+Math.imul(B,me)|0,o=(o=o+Math.imul(B,be)|0)+Math.imul(Q,me)|0,c=c+Math.imul(Q,be)|0;var Oe=(f+(n=n+Math.imul(w,ve)|0)|0)+((8191&(o=(o=o+Math.imul(w,Ie)|0)+Math.imul(E,ve)|0))<<13)|0;f=((c=c+Math.imul(E,Ie)|0)+(o>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(J,re),o=(o=Math.imul(J,ne))+Math.imul(G,re)|0,c=Math.imul(G,ne),n=n+Math.imul(j,oe)|0,o=(o=o+Math.imul(j,ae)|0)+Math.imul(U,oe)|0,c=c+Math.imul(U,ae)|0,n=n+Math.imul(P,ue)|0,o=(o=o+Math.imul(P,ce)|0)+Math.imul(T,ue)|0,c=c+Math.imul(T,ce)|0,n=n+Math.imul(F,fe)|0,o=(o=o+Math.imul(F,le)|0)+Math.imul(R,fe)|0,c=c+Math.imul(R,le)|0,n=n+Math.imul(k,de)|0,o=(o=o+Math.imul(k,ge)|0)+Math.imul(x,de)|0,c=c+Math.imul(x,ge)|0,n=n+Math.imul(D,me)|0,o=(o=o+Math.imul(D,be)|0)+Math.imul(M,me)|0,c=c+Math.imul(M,be)|0;var Fe=(f+(n=n+Math.imul(B,ve)|0)|0)+((8191&(o=(o=o+Math.imul(B,Ie)|0)+Math.imul(Q,ve)|0))<<13)|0;f=((c=c+Math.imul(Q,Ie)|0)+(o>>>13)|0)+(Fe>>>26)|0,Fe&=67108863,n=Math.imul(J,oe),o=(o=Math.imul(J,ae))+Math.imul(G,oe)|0,c=Math.imul(G,ae),n=n+Math.imul(j,ue)|0,o=(o=o+Math.imul(j,ce)|0)+Math.imul(U,ue)|0,c=c+Math.imul(U,ce)|0,n=n+Math.imul(P,fe)|0,o=(o=o+Math.imul(P,le)|0)+Math.imul(T,fe)|0,c=c+Math.imul(T,le)|0,n=n+Math.imul(F,de)|0,o=(o=o+Math.imul(F,ge)|0)+Math.imul(R,de)|0,c=c+Math.imul(R,ge)|0,n=n+Math.imul(k,me)|0,o=(o=o+Math.imul(k,be)|0)+Math.imul(x,me)|0,c=c+Math.imul(x,be)|0;var Re=(f+(n=n+Math.imul(D,ve)|0)|0)+((8191&(o=(o=o+Math.imul(D,Ie)|0)+Math.imul(M,ve)|0))<<13)|0;f=((c=c+Math.imul(M,Ie)|0)+(o>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(J,ue),o=(o=Math.imul(J,ce))+Math.imul(G,ue)|0,c=Math.imul(G,ce),n=n+Math.imul(j,fe)|0,o=(o=o+Math.imul(j,le)|0)+Math.imul(U,fe)|0,c=c+Math.imul(U,le)|0,n=n+Math.imul(P,de)|0,o=(o=o+Math.imul(P,ge)|0)+Math.imul(T,de)|0,c=c+Math.imul(T,ge)|0,n=n+Math.imul(F,me)|0,o=(o=o+Math.imul(F,be)|0)+Math.imul(R,me)|0,c=c+Math.imul(R,be)|0;var Ne=(f+(n=n+Math.imul(k,ve)|0)|0)+((8191&(o=(o=o+Math.imul(k,Ie)|0)+Math.imul(x,ve)|0))<<13)|0;f=((c=c+Math.imul(x,Ie)|0)+(o>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,n=Math.imul(J,fe),o=(o=Math.imul(J,le))+Math.imul(G,fe)|0,c=Math.imul(G,le),n=n+Math.imul(j,de)|0,o=(o=o+Math.imul(j,ge)|0)+Math.imul(U,de)|0,c=c+Math.imul(U,ge)|0,n=n+Math.imul(P,me)|0,o=(o=o+Math.imul(P,be)|0)+Math.imul(T,me)|0,c=c+Math.imul(T,be)|0;var Pe=(f+(n=n+Math.imul(F,ve)|0)|0)+((8191&(o=(o=o+Math.imul(F,Ie)|0)+Math.imul(R,ve)|0))<<13)|0;f=((c=c+Math.imul(R,Ie)|0)+(o>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(J,de),o=(o=Math.imul(J,ge))+Math.imul(G,de)|0,c=Math.imul(G,ge),n=n+Math.imul(j,me)|0,o=(o=o+Math.imul(j,be)|0)+Math.imul(U,me)|0,c=c+Math.imul(U,be)|0;var Te=(f+(n=n+Math.imul(P,ve)|0)|0)+((8191&(o=(o=o+Math.imul(P,Ie)|0)+Math.imul(T,ve)|0))<<13)|0;f=((c=c+Math.imul(T,Ie)|0)+(o>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(J,me),o=(o=Math.imul(J,be))+Math.imul(G,me)|0,c=Math.imul(G,be);var Le=(f+(n=n+Math.imul(j,ve)|0)|0)+((8191&(o=(o=o+Math.imul(j,Ie)|0)+Math.imul(U,ve)|0))<<13)|0;f=((c=c+Math.imul(U,Ie)|0)+(o>>>13)|0)+(Le>>>26)|0,Le&=67108863;var je=(f+(n=Math.imul(J,ve))|0)+((8191&(o=(o=Math.imul(J,Ie))+Math.imul(G,ve)|0))<<13)|0;return f=((c=Math.imul(G,Ie))+(o>>>13)|0)+(je>>>26)|0,je&=67108863,A[0]=we,A[1]=Ee,A[2]=Ce,A[3]=Be,A[4]=Qe,A[5]=_e,A[6]=De,A[7]=Me,A[8]=Se,A[9]=ke,A[10]=xe,A[11]=Oe,A[12]=Fe,A[13]=Re,A[14]=Ne,A[15]=Pe,A[16]=Te,A[17]=Le,A[18]=je,0!==f&&(A[19]=f,r.length++),r};function w(e,t,r){return(new E).mulp(e,t,r)}function E(e,t){this.x=e,this.y=t}Math.imul||(I=v),c.prototype.mulTo=function(e,t){var r,n=this.length+e.length;return r=10===this.length&&10===e.length?I(this,e,t):n<63?v(this,e,t):n<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,o=0,c=0;c>>26)|0)>>>26,A&=67108863}r.words[c]=f,n=A,A=o}return 0!==n?r.words[c]=n:r.length--,r.strip()}(this,e,t):w(this,e,t),r},E.prototype.makeRBT=function(e){for(var t=new Array(e),r=c.prototype._countBits(e)-1,i=0;i>=1;return n},E.prototype.permute=function(e,t,r,n,o,c){for(var i=0;i>>=1)i++;return 1<>>=13,r[2*i+1]=8191&c,c>>>=13;for(i=2*t;i>=26,t+=r/67108864|0,t+=o>>>26,this.words[i]=67108863&o}return 0!==t&&(this.words[i]=t,this.length++),this},c.prototype.muln=function(e){return this.clone().imuln(e)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>o}return t}(e);if(0===t.length)return new c(1);for(var r=this,i=0;i=0);var i,t=e%26,s=(e-t)/26,r=67108863>>>26-t<<26-t;if(0!==t){var o=0;for(i=0;i>>26-t}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=0),o=t?(t-t%26)/26:0;var c=e%26,s=Math.min((e-c)/26,this.length),mask=67108863^67108863>>>c<s)for(this.length-=s,i=0;i=0&&(0!==f||i>=o);i--){var l=0|this.words[i];this.words[i]=f<<26-c|l>>>c,f=l&mask}return A&&0!==f&&(A.words[A.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},c.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},c.prototype.shln=function(e){return this.clone().ishln(e)},c.prototype.ushln=function(e){return this.clone().iushln(e)},c.prototype.shrn=function(e){return this.clone().ishrn(e)},c.prototype.ushrn=function(e){return this.clone().iushrn(e)},c.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,s=(e-t)/26,q=1<=0);var t=e%26,s=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=s)return this;if(0!==t&&s++,this.length=Math.min(s,this.length),0!==t){var mask=67108863^67108863>>>t<=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(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var i=0;i>26)-(f/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===A)return this.strip();for(n(-1===A),A=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},c.prototype._wordDiv=function(e,t){var r=(this.length,e.length),a=this.clone(),b=e,n=0|b.words[b.length-1];0!==(r=26-this._countBits(n))&&(b=b.ushln(r),a.iushln(r),n=0|b.words[b.length-1]);var q,o=a.length-b.length;if("mod"!==t){(q=new c(null)).length=o+1,q.words=new Array(q.length);for(var i=0;i=0;f--){var l=67108864*(0|a.words[b.length+f])+(0|a.words[b.length+f-1]);for(l=Math.min(l/n|0,67108863),a._ishlnsubmul(b,l,f);0!==a.negative;)l--,a.negative=0,a._ishlnsubmul(b,1,f),a.isZero()||(a.negative^=1);q&&(q.words[f]=l)}return q&&q.strip(),a.strip(),"div"!==t&&0!==r&&a.iushrn(r),{div:q||null,mod:a}},c.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new c(0),mod:new c(0)}:0!==this.negative&&0===e.negative?(A=this.neg().divmod(e,t),"mod"!==t&&(div=A.div.neg()),"div"!==t&&(o=A.mod.neg(),r&&0!==o.negative&&o.iadd(e)),{div:div,mod:o}):0===this.negative&&0!==e.negative?(A=this.divmod(e.neg(),t),"mod"!==t&&(div=A.div.neg()),{div:div,mod:A.mod}):0!=(this.negative&e.negative)?(A=this.neg().divmod(e.neg(),t),"div"!==t&&(o=A.mod.neg(),r&&0!==o.negative&&o.isub(e)),{div:A.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new c(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new c(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new c(this.modn(e.words[0]))}:this._wordDiv(e,t);var div,o,A},c.prototype.div=function(e){return this.divmod(e,"div",!1).div},c.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},c.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},c.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),o=e.andln(1),c=r.cmp(n);return c<0||1===o&&0===c?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},c.prototype.modn=function(e){n(e<=67108863);for(var p=(1<<26)%e,t=0,i=this.length-1;i>=0;i--)t=(p*t+(0|this.words[i]))%e;return t},c.prototype.idivn=function(e){n(e<=67108863);for(var t=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*t;this.words[i]=r/e|0,t=r%e}return this.strip()},c.prototype.divn=function(e){return this.clone().idivn(e)},c.prototype.egcd=function(p){n(0===p.negative),n(!p.isZero());var e=this,t=p.clone();e=0!==e.negative?e.umod(p):e.clone();for(var r=new c(1),o=new c(0),A=new c(0),f=new c(1),g=0;e.isEven()&&t.isEven();)e.iushrn(1),t.iushrn(1),++g;for(var l=t.clone(),h=e.clone();!e.isZero();){for(var i=0,d=1;0==(e.words[0]&d)&&i<26;++i,d<<=1);if(i>0)for(e.iushrn(i);i-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(l),o.isub(h)),r.iushrn(1),o.iushrn(1);for(var m=0,y=1;0==(t.words[0]&y)&&m<26;++m,y<<=1);if(m>0)for(t.iushrn(m);m-- >0;)(A.isOdd()||f.isOdd())&&(A.iadd(l),f.isub(h)),A.iushrn(1),f.iushrn(1);e.cmp(t)>=0?(e.isub(t),r.isub(A),o.isub(f)):(t.isub(e),A.isub(r),f.isub(o))}return{a:A,b:f,gcd:t.iushln(g)}},c.prototype._invmp=function(p){n(0===p.negative),n(!p.isZero());var a=this,b=p.clone();a=0!==a.negative?a.umod(p):a.clone();for(var e,t=new c(1),r=new c(0),o=b.clone();a.cmpn(1)>0&&b.cmpn(1)>0;){for(var i=0,A=1;0==(a.words[0]&A)&&i<26;++i,A<<=1);if(i>0)for(a.iushrn(i);i-- >0;)t.isOdd()&&t.iadd(o),t.iushrn(1);for(var f=0,l=1;0==(b.words[0]&l)&&f<26;++f,l<<=1);if(f>0)for(b.iushrn(f);f-- >0;)r.isOdd()&&r.iadd(o),r.iushrn(1);a.cmp(b)>=0?(a.isub(b),t.isub(r)):(b.isub(a),r.isub(t))}return(e=0===a.cmpn(1)?t:r).cmpn(0)<0&&e.iadd(p),e},c.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var a=this.clone(),b=e.clone();a.negative=0,b.negative=0;for(var t=0;a.isEven()&&b.isEven();t++)a.iushrn(1),b.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;b.isEven();)b.iushrn(1);var r=a.cmp(b);if(r<0){var n=a;a=b,b=n}else if(0===r||0===b.cmpn(1))break;a.isub(b)}return b.iushln(t)},c.prototype.invm=function(e){return this.egcd(e).a.umod(e)},c.prototype.isEven=function(){return 0==(1&this.words[0])},c.prototype.isOdd=function(){return 1==(1&this.words[0])},c.prototype.andln=function(e){return this.words[0]&e},c.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,s=(e-t)/26,q=1<>>26,o&=67108863,this.words[i]=o}return 0!==r&&(this.words[i]=r,this.length++),this},c.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},c.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var o=0|this.words[0];t=o===e?0:oe.length)return 1;if(this.length=0;i--){var a=0|this.words[i],b=0|e.words[i];if(a!==b){ab&&(t=1);break}}return t},c.prototype.gtn=function(e){return 1===this.cmpn(e)},c.prototype.gt=function(e){return 1===this.cmp(e)},c.prototype.gten=function(e){return this.cmpn(e)>=0},c.prototype.gte=function(e){return this.cmp(e)>=0},c.prototype.ltn=function(e){return-1===this.cmpn(e)},c.prototype.lt=function(e){return-1===this.cmp(e)},c.prototype.lten=function(e){return this.cmpn(e)<=0},c.prototype.lte=function(e){return this.cmp(e)<=0},c.prototype.eqn=function(e){return 0===this.cmpn(e)},c.prototype.eq=function(e){return 0===this.cmp(e)},c.red=function(e){return new S(e)},c.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},c.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(e){return this.red=e,this},c.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},c.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},c.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},c.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},c.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},c.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},c.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},c.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},c.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var C={k256:null,p224:null,p192:null,p25519:null};function B(e,p){this.name=e,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 Q(){B.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){B.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function D(){B.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){B.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=c._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){S.call(this,e),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)}B.prototype._tmp=function(){var e=new c(null);return e.words=new Array(Math.ceil(this.n/13)),e},B.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},B.prototype.split=function(input,e){input.iushrn(this.n,0,e)},B.prototype.imulK=function(e){return e.imul(this.k)},o(Q,B),Q.prototype.split=function(input,output){for(var mask=4194303,e=Math.min(input.length,9),i=0;i>>22,t=r}t>>>=22,input.words[i-10]=t,0===t&&input.length>10?input.length-=10:input.length-=9},Q.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i>>=26,e.words[i]=n,t=r}return 0!==t&&(e.words[e.length++]=t),e},c._prime=function(e){if(C[e])return C[e];var t;if("k256"===e)t=new Q;else if("p224"===e)t=new _;else if("p192"===e)t=new D;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new M}return C[e]=t,t},S.prototype._verify1=function(a){n(0===a.negative,"red works only with positives"),n(a.red,"red works only with red numbers")},S.prototype._verify2=function(a,b){n(0==(a.negative|b.negative),"red works only with positives"),n(a.red&&a.red===b.red,"red works only with red numbers")},S.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):a.umod(this.m)._forceRed(this)},S.prototype.neg=function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this)},S.prototype.add=function(a,b){this._verify2(a,b);var e=a.add(b);return e.cmp(this.m)>=0&&e.isub(this.m),e._forceRed(this)},S.prototype.iadd=function(a,b){this._verify2(a,b);var e=a.iadd(b);return e.cmp(this.m)>=0&&e.isub(this.m),e},S.prototype.sub=function(a,b){this._verify2(a,b);var e=a.sub(b);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},S.prototype.isub=function(a,b){this._verify2(a,b);var e=a.isub(b);return e.cmpn(0)<0&&e.iadd(this.m),e},S.prototype.shl=function(a,e){return this._verify1(a),this.imod(a.ushln(e))},S.prototype.imul=function(a,b){return this._verify2(a,b),this.imod(a.imul(b))},S.prototype.mul=function(a,b){return this._verify2(a,b),this.imod(a.mul(b))},S.prototype.isqr=function(a){return this.imul(a,a.clone())},S.prototype.sqr=function(a){return this.mul(a,a)},S.prototype.sqrt=function(a){if(a.isZero())return a.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var t=this.m.add(new c(1)).iushrn(2);return this.pow(a,t)}for(var q=this.m.subn(1),s=0;!q.isZero()&&0===q.andln(1);)s++,q.iushrn(1);n(!q.isZero());var r=new c(1).toRed(this),o=r.redNeg(),A=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new c(2*f*f).toRed(this);0!==this.pow(f,A).cmp(o);)f.redIAdd(o);for(var l=this.pow(f,q),h=this.pow(a,q.addn(1).iushrn(1)),d=this.pow(a,q),m=s;0!==d.cmp(r);){for(var y=d,i=0;0!==y.cmp(r);i++)y=y.redSqr();n(i=0;i--){for(var f=e.words[i],l=A-1;l>=0;l--){var h=f>>l&1;r!==t[0]&&(r=this.sqr(r)),0!==h||0!==n?(n<<=1,n|=h,(4===++o||0===i&&0===l)&&(r=this.mul(r,t[n]),o=0,n=0)):o=0}A=26}return r},S.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},S.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},c.mont=function(e){return new k(e)},o(k,S),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(a,b){if(a.isZero()||b.isZero())return a.words[0]=0,a.length=1,a;var e=a.imul(b),t=e.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=e.isub(t).iushrn(this.shift),r=u;return u.cmp(this.m)>=0?r=u.isub(this.m):u.cmpn(0)<0&&(r=u.iadd(this.m)),r._forceRed(this)},k.prototype.mul=function(a,b){if(a.isZero()||b.isZero())return new c(0)._forceRed(this);var e=a.mul(b),t=e.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=e.isub(t).iushrn(this.shift),r=u;return u.cmp(this.m)>=0?r=u.isub(this.m):u.cmpn(0)<0&&(r=u.iadd(this.m)),r._forceRed(this)},k.prototype.invm=function(a){return this.imod(a._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(124)(e))},function(e,t,r){"use strict";r.r(t),r.d(t,"toRprLE",(function(){return Ne})),r.d(t,"toRprBE",(function(){return Pe})),r.d(t,"fromRprLE",(function(){return Te})),r.d(t,"fromRprBE",(function(){return Le})),r.d(t,"toString",(function(){return je})),r.d(t,"toLEBuff",(function(){return Ue})),r.d(t,"zero",(function(){return He})),r.d(t,"one",(function(){return Je})),r.d(t,"fromString",(function(){return Ge})),r.d(t,"e",(function(){return qe})),r.d(t,"fromArray",(function(){return ze})),r.d(t,"bitLength",(function(){return Ve})),r.d(t,"isNegative",(function(){return Xe})),r.d(t,"isZero",(function(){return Ke})),r.d(t,"shiftLeft",(function(){return Ye})),r.d(t,"shiftRight",(function(){return Ze})),r.d(t,"shl",(function(){return We})),r.d(t,"shr",(function(){return $e})),r.d(t,"isOdd",(function(){return et})),r.d(t,"naf",(function(){return tt})),r.d(t,"bits",(function(){return nt})),r.d(t,"toNumber",(function(){return it})),r.d(t,"toArray",(function(){return ot})),r.d(t,"add",(function(){return at})),r.d(t,"sub",(function(){return st})),r.d(t,"neg",(function(){return ut})),r.d(t,"mul",(function(){return ct})),r.d(t,"square",(function(){return At})),r.d(t,"pow",(function(){return ft})),r.d(t,"exp",(function(){return lt})),r.d(t,"abs",(function(){return ht})),r.d(t,"div",(function(){return gt})),r.d(t,"mod",(function(){return pt})),r.d(t,"eq",(function(){return mt})),r.d(t,"neq",(function(){return bt})),r.d(t,"lt",(function(){return yt})),r.d(t,"gt",(function(){return vt})),r.d(t,"leq",(function(){return It})),r.d(t,"geq",(function(){return wt})),r.d(t,"band",(function(){return Et})),r.d(t,"bor",(function(){return Ct})),r.d(t,"bxor",(function(){return Bt})),r.d(t,"land",(function(){return Qt})),r.d(t,"lor",(function(){return _t})),r.d(t,"lnot",(function(){return Dt}));var n={};r.r(n),r.d(n,"fromString",(function(){return A})),r.d(n,"e",(function(){return f})),r.d(n,"fromArray",(function(){return l})),r.d(n,"bitLength",(function(){return h})),r.d(n,"isNegative",(function(){return d})),r.d(n,"isZero",(function(){return m})),r.d(n,"shiftLeft",(function(){return y})),r.d(n,"shiftRight",(function(){return v})),r.d(n,"shl",(function(){return I})),r.d(n,"shr",(function(){return w})),r.d(n,"isOdd",(function(){return E})),r.d(n,"naf",(function(){return C})),r.d(n,"bits",(function(){return B})),r.d(n,"toNumber",(function(){return Q})),r.d(n,"toArray",(function(){return _})),r.d(n,"add",(function(){return D})),r.d(n,"sub",(function(){return sub})),r.d(n,"neg",(function(){return M})),r.d(n,"mul",(function(){return S})),r.d(n,"square",(function(){return k})),r.d(n,"pow",(function(){return x})),r.d(n,"exp",(function(){return O})),r.d(n,"abs",(function(){return F})),r.d(n,"div",(function(){return div})),r.d(n,"mod",(function(){return R})),r.d(n,"eq",(function(){return N})),r.d(n,"neq",(function(){return P})),r.d(n,"lt",(function(){return T})),r.d(n,"gt",(function(){return L})),r.d(n,"leq",(function(){return j})),r.d(n,"geq",(function(){return U})),r.d(n,"band",(function(){return H})),r.d(n,"bor",(function(){return J})),r.d(n,"bxor",(function(){return G})),r.d(n,"land",(function(){return z})),r.d(n,"lor",(function(){return V})),r.d(n,"lnot",(function(){return X}));var o={};r.r(o),r.d(o,"fromString",(function(){return Z})),r.d(o,"e",(function(){return W})),r.d(o,"fromArray",(function(){return $})),r.d(o,"bitLength",(function(){return ee})),r.d(o,"isNegative",(function(){return te})),r.d(o,"isZero",(function(){return re})),r.d(o,"shiftLeft",(function(){return ne})),r.d(o,"shiftRight",(function(){return ie})),r.d(o,"shl",(function(){return oe})),r.d(o,"shr",(function(){return ae})),r.d(o,"isOdd",(function(){return se})),r.d(o,"naf",(function(){return ue})),r.d(o,"bits",(function(){return ce})),r.d(o,"toNumber",(function(){return Ae})),r.d(o,"toArray",(function(){return fe})),r.d(o,"add",(function(){return le})),r.d(o,"sub",(function(){return he})),r.d(o,"neg",(function(){return de})),r.d(o,"mul",(function(){return ge})),r.d(o,"square",(function(){return pe})),r.d(o,"pow",(function(){return me})),r.d(o,"exp",(function(){return be})),r.d(o,"abs",(function(){return ye})),r.d(o,"div",(function(){return ve})),r.d(o,"mod",(function(){return Ie})),r.d(o,"eq",(function(){return we})),r.d(o,"neq",(function(){return Ee})),r.d(o,"lt",(function(){return Ce})),r.d(o,"gt",(function(){return Be})),r.d(o,"leq",(function(){return Qe})),r.d(o,"geq",(function(){return _e})),r.d(o,"band",(function(){return De})),r.d(o,"bor",(function(){return Me})),r.d(o,"bxor",(function(){return Se})),r.d(o,"land",(function(){return ke})),r.d(o,"lor",(function(){return xe})),r.d(o,"lnot",(function(){return Oe}));const c=[0,1,2,2,3,3,3,3,4,4,4,4,4,4,4,4];function A(s,e){return e&&10!=e?16==e?"0x"==s.slice(0,2)?BigInt(s):BigInt("0x"+s):void 0:BigInt(s)}const f=A;function l(a,e){let t=BigInt(0);e=BigInt(e);for(let i=0;i>BigInt(e)}const I=y,w=v;function E(a){return(BigInt(a)&BigInt(1))==BigInt(1)}function C(e){let t=BigInt(e);const r=[];for(;t;){if(t&BigInt(1)){const e=2-Number(t%BigInt(4));r.push(e),t-=BigInt(e)}else r.push(0);t>>=BigInt(1)}return r}function B(e){let t=BigInt(e);const r=[];for(;t;)t&BigInt(1)?r.push(1):r.push(0),t>>=BigInt(1);return r}function Q(s){if(s>BigInt(Number.MAX_SAFE_INTEGER))throw new Error("Number too big");return Number(s)}function _(s,e){const t=[];let r=BigInt(s);for(e=BigInt(e);r;)t.unshift(Number(r%e)),r/=e;return t}function D(a,b){return BigInt(a)+BigInt(b)}function sub(a,b){return BigInt(a)-BigInt(b)}function M(a){return-BigInt(a)}function S(a,b){return BigInt(a)*BigInt(b)}function k(a){return BigInt(a)*BigInt(a)}function x(a,b){return BigInt(a)**BigInt(b)}function O(a,b){return BigInt(a)**BigInt(b)}function F(a){return BigInt(a)>=0?BigInt(a):-BigInt(a)}function div(a,b){return BigInt(a)/BigInt(b)}function R(a,b){return BigInt(a)%BigInt(b)}function N(a,b){return BigInt(a)==BigInt(b)}function P(a,b){return BigInt(a)!=BigInt(b)}function T(a,b){return BigInt(a)BigInt(b)}function j(a,b){return BigInt(a)<=BigInt(b)}function U(a,b){return BigInt(a)>=BigInt(b)}function H(a,b){return BigInt(a)&BigInt(b)}function J(a,b){return BigInt(a)|BigInt(b)}function G(a,b){return BigInt(a)^BigInt(b)}function z(a,b){return BigInt(a)&&BigInt(b)}function V(a,b){return BigInt(a)||BigInt(b)}function X(a){return!BigInt(a)}var K=r(16),Y=r.n(K);function Z(s,e){return"string"==typeof s&&"0x"==s.slice(0,2)?Y()(s.slice(2),16):Y()(s,e)}const W=Z;function $(a,e){return Y.a.fromArray(a,e)}function ee(a){return Y()(a).bitLength()}function te(a){return Y()(a).isNegative()}function re(a){return Y()(a).isZero()}function ne(a,e){return Y()(a).shiftLeft(e)}function ie(a,e){return Y()(a).shiftRight(e)}const oe=ne,ae=ie;function se(a){return Y()(a).isOdd()}function ue(e){let t=Y()(e);const r=[];for(;t.gt(Y.a.zero);){if(t.isOdd()){const e=2-t.mod(4).toJSNumber();r.push(e),t=t.minus(e)}else r.push(0);t=t.shiftRight(1)}return r}function ce(e){let t=Y()(e);const r=[];for(;t.gt(Y.a.zero);)t.isOdd()?r.push(1):r.push(0),t=t.shiftRight(1);return r}function Ae(s){if(!s.lt(Y()("9007199254740992",10)))throw new Error("Number too big");return s.toJSNumber()}function fe(s,e){return Y()(s).toArray(e)}function le(a,b){return Y()(a).add(Y()(b))}function he(a,b){return Y()(a).minus(Y()(b))}function de(a){return Y.a.zero.minus(Y()(a))}function ge(a,b){return Y()(a).times(Y()(b))}function pe(a){return Y()(a).square()}function me(a,b){return Y()(a).pow(Y()(b))}function be(a,b){return Y()(a).pow(Y()(b))}function ye(a){return Y()(a).abs()}function ve(a,b){return Y()(a).divide(Y()(b))}function Ie(a,b){return Y()(a).mod(Y()(b))}function we(a,b){return Y()(a).eq(Y()(b))}function Ee(a,b){return Y()(a).neq(Y()(b))}function Ce(a,b){return Y()(a).lt(Y()(b))}function Be(a,b){return Y()(a).gt(Y()(b))}function Qe(a,b){return Y()(a).leq(Y()(b))}function _e(a,b){return Y()(a).geq(Y()(b))}function De(a,b){return Y()(a).and(Y()(b))}function Me(a,b){return Y()(a).or(Y()(b))}function Se(a,b){return Y()(a).xor(Y()(b))}function ke(a,b){return!Y()(a).isZero()&&!Y()(b).isZero()}function xe(a,b){return!Y()(a).isZero()||!Y()(b).isZero()}function Oe(a){return Y()(a).isZero()}const Fe="function"==typeof BigInt;let Re={};Fe?Object.assign(Re,n):Object.assign(Re,o),Re.toRprLE=function(e,t,r,n){const s="0000000"+r.toString(16),o=new Uint32Array(e.buffer,t,n/4),c=1+(4*(s.length-7)-1>>5);for(let i=0;i>5);for(let i=0;ia[a.length-i-1]=e.toString(16).padStart(8,"0"))),Re.fromString(a.join(""),16)},Re.fromRprBE=function(e,t,r){r=r||e.byteLength,t=t||0;const n=new DataView(e.buffer,e.byteOffset+t,r),a=new Array(r/4);for(let i=0;i0?Math.floor(e):Math.ceil(e)}function C(a,b){var e,i,r=a.length,n=b.length,o=new Array(r),c=0,base=t;for(i=0;i=base?1:0,o[i]=e-c*base;for(;i0&&o.push(c),o}function B(a,b){return a.length>=b.length?C(a,b):C(b,a)}function Q(a,e){var r,i,n=a.length,o=new Array(n),base=t;for(i=0;i0;)o[i++]=e%base,e=Math.floor(e/base);return o}function _(a,b){var i,e,r=a.length,n=b.length,o=new Array(r),c=0,base=t;for(i=0;i0;)n[i++]=o%base,o=Math.floor(o/base);return n}function k(e,t){for(var r=[];t-- >0;)r.push(0);return r.concat(e)}function x(e,t){var r=Math.max(e.length,t.length);if(r<=30)return M(e,t);r=Math.ceil(r/2);var b=e.slice(r),a=e.slice(0,r),n=t.slice(r),o=t.slice(0,r),c=x(a,o),A=x(b,n),f=x(B(a,b),B(o,n)),l=B(B(c,k(_(_(f,c),A),r)),k(A,2*r));return I(l),l}function O(a,b,e){return new l(a=0;--i)r=(n=1e7*r+e[i])-(q=E(n/t))*t,c[i]=0|q;return[c,0|r]}function N(e,r){var n,o=ne(r);if(A)return[new d(e.value/o.value),new d(e.value%o.value)];var c,a=e.value,b=o.value;if(0===b)throw new Error("Cannot divide by zero");if(e.isSmall)return o.isSmall?[new h(E(a/b)),new h(a%b)]:[f[0],e];if(o.isSmall){if(1===b)return[e,f[0]];if(-1==b)return[e.negate(),f[0]];var m=Math.abs(b);if(m=0;r--){for(e=base-1,m[r+f]!==h&&(e=Math.floor((m[r+f]*base+m[r+f-1])/h)),n=0,o=0,c=y.length,i=0;if&&(n=(n+1)*base),e=Math.ceil(n/o);do{if(P(c=S(b,e),h)<=0)break;e--}while(e);l.push(e),h=_(h,c)}return l.reverse(),[v(l),v(h)]}(a,b),c=n[0];var Q=e.sign!==o.sign,D=n[1],M=e.sign;return"number"==typeof c?(Q&&(c=-c),c=new h(c)):c=new l(c,Q),"number"==typeof D?(M&&(D=-D),D=new h(D)):D=new l(D,M),[c,D]}function P(a,b){if(a.length!==b.length)return a.length>b.length?1:-1;for(var i=a.length-1;i>=0;i--)if(a[i]!==b[i])return a[i]>b[i]?1:-1;return 0}function T(e){var t=e.abs();return!t.isUnit()&&(!!(t.equals(2)||t.equals(3)||t.equals(5))||!(t.isEven()||t.isDivisibleBy(3)||t.isDivisibleBy(5))&&(!!t.lesser(49)||void 0))}function L(e,a){for(var t,i,r,n=e.prev(),b=n,c=0;b.isEven();)b=b.divide(2),c++;e:for(i=0;i=0?t=_(a,b):(t=_(b,a),e=!e),"number"==typeof(t=v(t))?(e&&(t=-t),new h(t)):new l(t,e)}(a,b,this.sign)},l.prototype.minus=l.prototype.subtract,h.prototype.subtract=function(e){var t=ne(e),a=this.value;if(a<0!==t.sign)return this.add(t.negate());var b=t.value;return t.isSmall?new h(a-b):D(b,Math.abs(a),a>=0)},h.prototype.minus=h.prototype.subtract,d.prototype.subtract=function(e){return new d(this.value-ne(e).value)},d.prototype.minus=d.prototype.subtract,l.prototype.negate=function(){return new l(this.value,!this.sign)},h.prototype.negate=function(){var e=this.sign,small=new h(-this.value);return small.sign=!e,small},d.prototype.negate=function(){return new d(-this.value)},l.prototype.abs=function(){return new l(this.value,!1)},h.prototype.abs=function(){return new h(Math.abs(this.value))},d.prototype.abs=function(){return new d(this.value>=0?this.value:-this.value)},l.prototype.multiply=function(e){var r,n,o,c=ne(e),a=this.value,b=c.value,A=this.sign!==c.sign;if(c.isSmall){if(0===b)return f[0];if(1===b)return this;if(-1===b)return this.negate();if((r=Math.abs(b))0?x(a,b):M(a,b),A)},l.prototype.times=l.prototype.multiply,h.prototype._multiplyBySmall=function(a){return m(a.value*this.value)?new h(a.value*this.value):O(Math.abs(a.value),y(Math.abs(this.value)),this.sign!==a.sign)},l.prototype._multiplyBySmall=function(a){return 0===a.value?f[0]:1===a.value?this:-1===a.value?this.negate():O(Math.abs(a.value),this.value,this.sign!==a.sign)},h.prototype.multiply=function(e){return ne(e)._multiplyBySmall(this)},h.prototype.times=h.prototype.multiply,d.prototype.multiply=function(e){return new d(this.value*ne(e).value)},d.prototype.times=d.prototype.multiply,l.prototype.square=function(){return new l(F(this.value),!1)},h.prototype.square=function(){var e=this.value*this.value;return m(e)?new h(e):new l(F(y(Math.abs(this.value))),!1)},d.prototype.square=function(e){return new d(this.value*this.value)},l.prototype.divmod=function(e){var t=N(this,e);return{quotient:t[0],remainder:t[1]}},d.prototype.divmod=h.prototype.divmod=l.prototype.divmod,l.prototype.divide=function(e){return N(this,e)[0]},d.prototype.over=d.prototype.divide=function(e){return new d(this.value/ne(e).value)},h.prototype.over=h.prototype.divide=l.prototype.over=l.prototype.divide,l.prototype.mod=function(e){return N(this,e)[1]},d.prototype.mod=d.prototype.remainder=function(e){return new d(this.value%ne(e).value)},h.prototype.remainder=h.prototype.mod=l.prototype.remainder=l.prototype.mod,l.prototype.pow=function(e){var t,r,n,o=ne(e),a=this.value,b=o.value;if(0===b)return f[1];if(0===a)return f[0];if(1===a)return f[1];if(-1===a)return o.isEven()?f[1]:f[-1];if(o.sign)return f[0];if(!o.isSmall)throw new Error("The exponent "+o.toString()+" is too large.");if(this.isSmall&&m(t=Math.pow(a,b)))return new h(E(t));for(r=this,n=f[1];!0&b&&(n=n.times(r),--b),0!==b;)b/=2,r=r.square();return n},h.prototype.pow=l.prototype.pow,d.prototype.pow=function(e){var t=ne(e),a=this.value,b=t.value,r=BigInt(0),n=BigInt(1),o=BigInt(2);if(b===r)return f[1];if(a===r)return f[0];if(a===n)return f[1];if(a===BigInt(-1))return t.isEven()?f[1]:f[-1];if(t.isNegative())return new d(r);for(var c=this,A=f[1];(b&n)===n&&(A=A.times(c),--b),b!==r;)b/=o,c=c.square();return A},l.prototype.modPow=function(e,t){if(e=ne(e),(t=ne(t)).isZero())throw new Error("Cannot take modPow with modulus 0");var r=f[1],base=this.mod(t);for(e.isNegative()&&(e=e.multiply(f[-1]),base=base.modInv(t));e.isPositive();){if(base.isZero())return f[0];e.isOdd()&&(r=r.multiply(base).mod(t)),e=e.divide(2),base=base.square().mod(t)}return r},d.prototype.modPow=h.prototype.modPow=l.prototype.modPow,l.prototype.compareAbs=function(e){var t=ne(e),a=this.value,b=t.value;return t.isSmall?1:P(a,b)},h.prototype.compareAbs=function(e){var t=ne(e),a=Math.abs(this.value),b=t.value;return t.isSmall?a===(b=Math.abs(b))?0:a>b?1:-1:-1},d.prototype.compareAbs=function(e){var a=this.value,b=ne(e).value;return(a=a>=0?a:-a)===(b=b>=0?b:-b)?0:a>b?1:-1},l.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=ne(e),a=this.value,b=t.value;return this.sign!==t.sign?t.sign?1:-1:t.isSmall?this.sign?-1:1:P(a,b)*(this.sign?-1:1)},l.prototype.compareTo=l.prototype.compare,h.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=ne(e),a=this.value,b=t.value;return t.isSmall?a==b?0:a>b?1:-1:a<0!==t.sign?a<0?-1:1:a<0?1:-1},h.prototype.compareTo=h.prototype.compare,d.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var a=this.value,b=ne(e).value;return a===b?0:a>b?1:-1},d.prototype.compareTo=d.prototype.compare,l.prototype.equals=function(e){return 0===this.compare(e)},d.prototype.eq=d.prototype.equals=h.prototype.eq=h.prototype.equals=l.prototype.eq=l.prototype.equals,l.prototype.notEquals=function(e){return 0!==this.compare(e)},d.prototype.neq=d.prototype.notEquals=h.prototype.neq=h.prototype.notEquals=l.prototype.neq=l.prototype.notEquals,l.prototype.greater=function(e){return this.compare(e)>0},d.prototype.gt=d.prototype.greater=h.prototype.gt=h.prototype.greater=l.prototype.gt=l.prototype.greater,l.prototype.lesser=function(e){return this.compare(e)<0},d.prototype.lt=d.prototype.lesser=h.prototype.lt=h.prototype.lesser=l.prototype.lt=l.prototype.lesser,l.prototype.greaterOrEquals=function(e){return this.compare(e)>=0},d.prototype.geq=d.prototype.greaterOrEquals=h.prototype.geq=h.prototype.greaterOrEquals=l.prototype.geq=l.prototype.greaterOrEquals,l.prototype.lesserOrEquals=function(e){return this.compare(e)<=0},d.prototype.leq=d.prototype.lesserOrEquals=h.prototype.leq=h.prototype.lesserOrEquals=l.prototype.leq=l.prototype.lesserOrEquals,l.prototype.isEven=function(){return 0==(1&this.value[0])},h.prototype.isEven=function(){return 0==(1&this.value)},d.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},l.prototype.isOdd=function(){return 1==(1&this.value[0])},h.prototype.isOdd=function(){return 1==(1&this.value)},d.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},l.prototype.isPositive=function(){return!this.sign},h.prototype.isPositive=function(){return this.value>0},d.prototype.isPositive=h.prototype.isPositive,l.prototype.isNegative=function(){return this.sign},h.prototype.isNegative=function(){return this.value<0},d.prototype.isNegative=h.prototype.isNegative,l.prototype.isUnit=function(){return!1},h.prototype.isUnit=function(){return 1===Math.abs(this.value)},d.prototype.isUnit=function(){return this.abs().value===BigInt(1)},l.prototype.isZero=function(){return!1},h.prototype.isZero=function(){return 0===this.value},d.prototype.isZero=function(){return this.value===BigInt(0)},l.prototype.isDivisibleBy=function(e){var t=ne(e);return!t.isZero()&&(!!t.isUnit()||(0===t.compareAbs(2)?this.isEven():this.mod(t).isZero()))},d.prototype.isDivisibleBy=h.prototype.isDivisibleBy=l.prototype.isDivisibleBy,l.prototype.isPrime=function(t){var r=T(this);if(r!==e)return r;var n=this.abs(),c=n.bitLength();if(c<=64)return L(n,[2,3,5,7,11,13,17,19,23,29,31,37]);for(var A=Math.log(2)*c.toJSNumber(),f=Math.ceil(!0===t?2*Math.pow(A,2):A),a=[],i=0;i-r?new h(e-1):new l(n,!0)},d.prototype.prev=function(){return new d(this.value-BigInt(1))};for(var j=[1];2*j[j.length-1]<=t;)j.push(2*j[j.length-1]);var U=j.length,H=j[U-1];function J(e){return Math.abs(e)<=t}function G(e,t,r){t=ne(t);for(var n=e.isNegative(),c=t.isNegative(),A=n?e.not():e,f=c?t.not():t,l=0,h=0,d=null,m=null,y=[];!A.isZero()||!f.isZero();)l=(d=N(A,H))[1].toJSNumber(),n&&(l=H-1-l),h=(m=N(f,H))[1].toJSNumber(),c&&(h=H-1-h),A=d[0],f=m[0],y.push(r(l,h));for(var v=0!==r(n?1:0,c?1:0)?o(-1):o(0),i=y.length-1;i>=0;i-=1)v=v.multiply(H).add(o(y[i]));return v}l.prototype.shiftLeft=function(e){var t=ne(e).toJSNumber();if(!J(t))throw new Error(String(t)+" is too large for shifting.");if(t<0)return this.shiftRight(-t);var r=this;if(r.isZero())return r;for(;t>=U;)r=r.multiply(H),t-=U-1;return r.multiply(j[t])},d.prototype.shiftLeft=h.prototype.shiftLeft=l.prototype.shiftLeft,l.prototype.shiftRight=function(e){var t,r=ne(e).toJSNumber();if(!J(r))throw new Error(String(r)+" is too large for shifting.");if(r<0)return this.shiftLeft(-r);for(var n=this;r>=U;){if(n.isZero()||n.isNegative()&&n.isUnit())return n;n=(t=N(n,H))[1].isNegative()?t[0].prev():t[0],r-=U-1}return(t=N(n,j[r]))[1].isNegative()?t[0].prev():t[0]},d.prototype.shiftRight=h.prototype.shiftRight=l.prototype.shiftRight,l.prototype.not=function(){return this.negate().prev()},d.prototype.not=h.prototype.not=l.prototype.not,l.prototype.and=function(e){return G(this,e,(function(a,b){return a&b}))},d.prototype.and=h.prototype.and=l.prototype.and,l.prototype.or=function(e){return G(this,e,(function(a,b){return a|b}))},d.prototype.or=h.prototype.or=l.prototype.or,l.prototype.xor=function(e){return G(this,e,(function(a,b){return a^b}))},d.prototype.xor=h.prototype.xor=l.prototype.xor;var z=1<<30;function V(e){var r=e.value,n="number"==typeof r?r|z:"bigint"==typeof r?r|BigInt(z):r[0]+r[1]*t|1073758208;return n&-n}function X(e,base){if(base.compareTo(e)<=0){var t=X(e,base.square(base)),p=t.p,r=t.e,n=p.multiply(base);return n.compareTo(e)<=0?{p:n,e:2*r+1}:{p:p,e:2*r}}return{p:o(1),e:0}}function K(a,b){return a=ne(a),b=ne(b),a.greater(b)?a:b}function Y(a,b){return a=ne(a),b=ne(b),a.lesser(b)?a:b}function Z(a,b){if(a=ne(a).abs(),b=ne(b).abs(),a.equals(b))return a;if(a.isZero())return b;if(b.isZero())return a;for(var e,t,r=f[1];a.isEven()&&b.isEven();)e=Y(V(a),V(b)),a=a.divide(e),b=b.divide(e),r=r.multiply(e);for(;a.isEven();)a=a.divide(V(a));do{for(;b.isEven();)b=b.divide(V(b));a.greater(b)&&(t=b,b=a,a=t),b=b.subtract(a)}while(!b.isZero());return r.isUnit()?a:a.multiply(r)}l.prototype.bitLength=function(){var e=this;return e.compareTo(o(0))<0&&(e=e.negate().subtract(o(1))),0===e.compareTo(o(0))?o(0):o(X(e,o(2)).e).add(o(1))},d.prototype.bitLength=h.prototype.bitLength=l.prototype.bitLength;var W=function(text,base,e,t){e=e||c,text=String(text),t||(text=text.toLowerCase(),e=e.toLowerCase());var i,r=text.length,n=Math.abs(base),o={};for(i=0;i=n)){if("1"===l&&1===n)continue;throw new Error(l+" is not a valid digit in base "+base+".")}}base=ne(base);var A=[],f="-"===text[0];for(i=f?1:0;i"!==text[i]&&i=0;i--)r=r.add(e[i].times(n)),n=n.times(base);return t?r.negate():r}function ee(e,base){if((base=o(base)).isZero()){if(e.isZero())return{value:[0],isNegative:!1};throw new Error("Cannot convert nonzero numbers to base 0.")}if(base.equals(-1)){if(e.isZero())return{value:[0],isNegative:!1};if(e.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-e.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var t=Array.apply(null,Array(e.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return t.unshift([1]),{value:[].concat.apply([],t),isNegative:!1}}var r=!1;if(e.isNegative()&&base.isPositive()&&(r=!0,e=e.abs()),base.isUnit())return e.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(e.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:r};for(var n,c=[],A=e;A.isNegative()||A.compareAbs(base)>=0;){n=A.divmod(base),A=n.quotient;var f=n.remainder;f.isNegative()&&(f=base.minus(f).abs(),A=A.next()),c.push(f.toJSNumber())}return c.push(A.toJSNumber()),{value:c.reverse(),isNegative:r}}function te(e,base,t){var r=ee(e,base);return(r.isNegative?"-":"")+r.value.map((function(e){return function(e,t){return e<(t=t||c).length?t[e]:"<"+e+">"}(e,t)})).join("")}function re(e){if(m(+e)){var t=+e;if(t===E(t))return A?new d(BigInt(t)):new h(t);throw new Error("Invalid integer: "+e)}var r="-"===e[0];r&&(e=e.slice(1));var n=e.split(/e/i);if(n.length>2)throw new Error("Invalid integer: "+n.join("e"));if(2===n.length){var o=n[1];if("+"===o[0]&&(o=o.slice(1)),(o=+o)!==E(o)||!m(o))throw new Error("Invalid integer: "+o+" is not a valid exponent.");var text=n[0],c=text.indexOf(".");if(c>=0&&(o-=text.length-c-1,text=text.slice(0,c)+text.slice(c+1)),o<0)throw new Error("Cannot include negative exponent part for integers");e=text+=new Array(o+1).join("0")}if(!/^([0-9][0-9]*)$/.test(e))throw new Error("Invalid integer: "+e);if(A)return new d(BigInt(r?"-"+e:e));for(var f=[],y=e.length,v=y-7;y>0;)f.push(+e.slice(v,y)),(v-=7)<0&&(v=0),y-=7;return I(f),new l(f,r)}function ne(e){return"number"==typeof e?function(e){if(A)return new d(BigInt(e));if(m(e)){if(e!==E(e))throw new Error(e+" is not an integer.");return new h(e)}return re(e.toString())}(e):"string"==typeof e?re(e):"bigint"==typeof e?new d(e):e}l.prototype.toArray=function(e){return ee(this,e)},h.prototype.toArray=function(e){return ee(this,e)},d.prototype.toArray=function(e){return ee(this,e)},l.prototype.toString=function(t,r){if(t===e&&(t=10),10!==t)return te(this,t,r);for(var n,o=this.value,c=o.length,A=String(o[--c]);--c>=0;)n=String(o[c]),A+="0000000".slice(n.length)+n;return(this.sign?"-":"")+A},h.prototype.toString=function(t,r){return t===e&&(t=10),10!=t?te(this,t,r):String(this.value)},d.prototype.toString=h.prototype.toString,d.prototype.toJSON=l.prototype.toJSON=h.prototype.toJSON=function(){return this.toString()},l.prototype.valueOf=function(){return parseInt(this.toString(),10)},l.prototype.toJSNumber=l.prototype.valueOf,h.prototype.valueOf=function(){return this.value},h.prototype.toJSNumber=h.prototype.valueOf,d.prototype.valueOf=d.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};for(var i=0;i<1e3;i++)f[i]=ne(i),i>0&&(f[-i]=ne(-i));return f.one=f[1],f.zero=f[0],f.minusOne=f[-1],f.max=K,f.min=Y,f.gcd=Z,f.lcm=function(a,b){return a=ne(a).abs(),b=ne(b).abs(),a.divide(Z(a,b)).multiply(b)},f.isInstance=function(e){return e instanceof l||e instanceof h||e instanceof d},f.randBetween=function(a,b,e){a=ne(a),b=ne(b);var r=e||Math.random,n=Y(a,b),o=K(a,b).subtract(n).add(1);if(o.isSmall)return n.add(Math.floor(r()*o));for(var c=ee(o,t).value,A=[],l=!0,i=0;i=A())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+A().toString(16)+" bytes");return 0|e}function I(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Y(e).length;default:if(n)return K(e).length;t=(""+t).toLowerCase(),n=!0}}function w(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,r);case"utf8":case"utf-8":return O(this,t,r);case"ascii":return R(this,t,r);case"latin1":case"binary":return N(this,t,r);case"base64":return x(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function E(b,e,t){var i=b[e];b[e]=b[t],b[t]=i}function C(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=l.from(t,n)),l.isBuffer(t))return 0===t.length?-1:B(e,t,r,n,o);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):B(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function B(e,t,r,n,o){var i,c=1,A=e.length,f=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;c=2,A/=2,f/=2,r/=2}function l(e,i){return 1===c?e[i]:e.readUInt16BE(i*c)}if(o){var h=-1;for(i=r;iA&&(r=A-f),i=r;i>=0;i--){for(var d=!0,m=0;mo&&(n=o):n=o;var c=t.length;if(c%2!=0)throw new TypeError("Invalid hex string");n>c/2&&(n=c/2);for(var i=0;i>8,o=r%256,c.push(o),c.push(n);return c}(t,e.length-r),e,r,n)}function x(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function O(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i239?4:l>223?3:l>191?2:1;if(i+d<=r)switch(d){case 1:l<128&&(h=l);break;case 2:128==(192&(o=e[i+1]))&&(f=(31&l)<<6|63&o)>127&&(h=f);break;case 3:o=e[i+1],c=e[i+2],128==(192&o)&&128==(192&c)&&(f=(15&l)<<12|(63&o)<<6|63&c)>2047&&(f<55296||f>57343)&&(h=f);break;case 4:o=e[i+1],c=e[i+2],A=e[i+3],128==(192&o)&&128==(192&c)&&128==(192&A)&&(f=(15&l)<<18|(63&o)<<12|(63&c)<<6|63&A)>65535&&f<1114112&&(h=f)}null===h?(h=65533,d=1):h>65535&&(h-=65536,n.push(h>>>10&1023|55296),h=56320|1023&h),n.push(h),i+=d}return function(e){var t=e.length;if(t<=F)return String.fromCharCode.apply(String,e);var r="",i=0;for(;i0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),""},l.prototype.compare=function(e,t,r,n,o){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;for(var c=(o>>>=0)-(n>>>=0),A=(r>>>=0)-(t>>>=0),f=Math.min(c,A),h=this.slice(n,o),d=e.slice(t,r),i=0;io)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var c=!1;;)switch(n){case"hex":return Q(this,e,t,r);case"utf8":case"utf-8":return _(this,e,t,r);case"ascii":return D(this,e,t,r);case"latin1":case"binary":return M(this,e,t,r);case"base64":return S(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,r);default:if(c)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),c=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var F=4096;function R(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;in)&&(r=n);for(var o="",i=t;ir)throw new RangeError("Trying to access beyond buffer length")}function j(e,t,r,n,o,c){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function U(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i>>8*(n?i:1-i)}function H(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i>>8*(n?i:3-i)&255}function J(e,t,r,n,o,c){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function G(e,t,r,n,c){return c||J(e,0,r,4),o.write(e,t,r,n,23,4),r+4}function z(e,t,r,n,c){return c||J(e,0,r,8),o.write(e,t,r,n,52,8),r+8}l.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t0&&(o*=256);)n+=this[e+--t]*o;return n},l.prototype.readUInt8=function(e,t){return t||L(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||L(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||L(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||L(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||L(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||L(e,t,this.length);for(var n=this[e],o=1,i=0;++i=(o*=128)&&(n-=Math.pow(2,8*t)),n},l.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||L(e,t,this.length);for(var i=t,n=1,o=this[e+--i];i>0&&(n*=256);)o+=this[e+--i]*n;return o>=(n*=128)&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return t||L(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||L(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt16BE=function(e,t){t||L(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt32LE=function(e,t){return t||L(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||L(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||L(e,4,this.length),o.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||L(e,4,this.length),o.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||L(e,8,this.length),o.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||L(e,8,this.length),o.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||j(this,e,t,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[t]=255&e;++i=0&&(o*=256);)this[t+i]=e/o&255;return t+r},l.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):U(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):U(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):H(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):H(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);j(this,e,t,r,o-1,-o)}var i=0,c=1,sub=0;for(this[t]=255&e;++i>0)-sub&255;return t+r},l.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);j(this,e,t,r,o-1,-o)}var i=r-1,c=1,sub=0;for(this[t+i]=255&e;--i>=0&&(c*=256);)e<0&&0===sub&&0!==this[t+i+1]&&(sub=1),this[t+i]=(e/c>>0)-sub&255;return t+r},l.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):U(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):U(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):H(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):H(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,r){return G(this,e,t,!0,r)},l.prototype.writeFloatBE=function(e,t,r){return G(this,e,t,!1,r)},l.prototype.writeDoubleLE=function(e,t,r){return z(this,e,t,!0,r)},l.prototype.writeDoubleBE=function(e,t,r){return z(this,e,t,!1,r)},l.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--i)e[i+t]=this[i+r];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&c.push(239,191,189);continue}if(i+1===n){(t-=3)>-1&&c.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&c.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&c.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;c.push(r)}else if(r<2048){if((t-=2)<0)break;c.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;c.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;c.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return c}function Y(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(V,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Z(e,t,r,n){for(var i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}}).call(this,r(36))},function(e,t,r){"use strict";r.d(t,"a",(function(){return A}));var n=r(348);var o=r(212),c=r(349);function A(e,i){return Object(n.a)(e)||function(e,i){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,n,o=[],c=!0,A=!1;try{for(t=t.call(e);!(c=(r=t.next()).done)&&(o.push(r.value),!i||o.length!==i);c=!0);}catch(e){A=!0,n=e}finally{try{c||null==t.return||t.return()}finally{if(A)throw n}}return o}}(e,i)||Object(o.a)(e,i)||Object(c.a)()}},function(e,t,r){"use strict";r.d(t,"d",(function(){return y})),r.d(t,"a",(function(){return I})),r.d(t,"c",(function(){return Q})),r.d(t,"b",(function(){return _}));var n=r(13),o=r.n(n),c=r(1),A=r(5),f=r(352),l=o.a.BN;const h=new A.Logger(f.a),d={},m=9007199254740991;function y(e){return null!=e&&(I.isBigNumber(e)||"number"==typeof e&&e%1==0||"string"==typeof e&&!!e.match(/^-?[0-9]+$/)||Object(c.isHexString)(e)||"bigint"==typeof e||Object(c.isBytes)(e))}let v=!1;class I{constructor(e,t){h.checkNew(new.target,I),e!==d&&h.throwError("cannot call constructor directly; use BigNumber.from",A.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=t,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return E(C(this).fromTwos(e))}toTwos(e){return E(C(this).toTwos(e))}abs(){return"-"===this._hex[0]?I.from(this._hex.substring(1)):this}add(e){return E(C(this).add(C(e)))}sub(e){return E(C(this).sub(C(e)))}div(e){return I.from(e).isZero()&&B("division by zero","div"),E(C(this).div(C(e)))}mul(e){return E(C(this).mul(C(e)))}mod(e){const t=C(e);return t.isNeg()&&B("cannot modulo negative values","mod"),E(C(this).umod(t))}pow(e){const t=C(e);return t.isNeg()&&B("cannot raise to negative values","pow"),E(C(this).pow(t))}and(e){const t=C(e);return(this.isNegative()||t.isNeg())&&B("cannot 'and' negative values","and"),E(C(this).and(t))}or(e){const t=C(e);return(this.isNegative()||t.isNeg())&&B("cannot 'or' negative values","or"),E(C(this).or(t))}xor(e){const t=C(e);return(this.isNegative()||t.isNeg())&&B("cannot 'xor' negative values","xor"),E(C(this).xor(t))}mask(e){return(this.isNegative()||e<0)&&B("cannot mask negative values","mask"),E(C(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&B("cannot shift negative values","shl"),E(C(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&B("cannot shift negative values","shr"),E(C(this).shrn(e))}eq(e){return C(this).eq(C(e))}lt(e){return C(this).lt(C(e))}lte(e){return C(this).lte(C(e))}gt(e){return C(this).gt(C(e))}gte(e){return C(this).gte(C(e))}isNegative(){return"-"===this._hex[0]}isZero(){return C(this).isZero()}toNumber(){try{return C(this).toNumber()}catch(e){B("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(e){}return h.throwError("this platform does not support BigInt",A.Logger.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?v||(v=!0,h.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?h.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",A.Logger.errors.UNEXPECTED_ARGUMENT,{}):h.throwError("BigNumber.toString does not accept parameters",A.Logger.errors.UNEXPECTED_ARGUMENT,{})),C(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof I)return e;if("string"==typeof e)return e.match(/^-?0x[0-9a-f]+$/i)?new I(d,w(e)):e.match(/^-?[0-9]+$/)?new I(d,w(new l(e))):h.throwArgumentError("invalid BigNumber string","value",e);if("number"==typeof e)return e%1&&B("underflow","BigNumber.from",e),(e>=m||e<=-m)&&B("overflow","BigNumber.from",e),I.from(String(e));const t=e;if("bigint"==typeof t)return I.from(t.toString());if(Object(c.isBytes)(t))return I.from(Object(c.hexlify)(t));if(t)if(t.toHexString){const e=t.toHexString();if("string"==typeof e)return I.from(e)}else{let e=t._hex;if(null==e&&"BigNumber"===t.type&&(e=t.hex),"string"==typeof e&&(Object(c.isHexString)(e)||"-"===e[0]&&Object(c.isHexString)(e.substring(1))))return I.from(e)}return h.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!(!e||!e._isBigNumber)}}function w(e){if("string"!=typeof e)return w(e.toString(16));if("-"===e[0])return"-"===(e=e.substring(1))[0]&&h.throwArgumentError("invalid hex","value",e),"0x00"===(e=w(e))?e:"-"+e;if("0x"!==e.substring(0,2)&&(e="0x"+e),"0x"===e)return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&"0x00"===e.substring(0,4);)e="0x"+e.substring(4);return e}function E(e){return I.from(w(e))}function C(e){const t=I.from(e).toHexString();return"-"===t[0]?new l("-"+t.substring(3),16):new l(t.substring(2),16)}function B(e,t,r){const n={fault:e,operation:t};return null!=r&&(n.value=r),h.throwError(e,A.Logger.errors.NUMERIC_FAULT,n)}function Q(e){return new l(e,36).toString(16)}function _(e){return new l(e,16).toString(36)}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}r.d(t,"a",(function(){return n}))},function(e,t,r){"use strict";r.r(t),function(e,r){var n=Object.freeze({});function o(e){return null==e}function c(e){return null!=e}function A(e){return!0===e}function f(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function l(e){return null!==e&&"object"==typeof e}var h=Object.prototype.toString;function d(e){return"[object Object]"===h.call(e)}function m(e){return"[object RegExp]"===h.call(e)}function y(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function v(e){return c(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function I(e){return null==e?"":Array.isArray(e)||d(e)&&e.toString===h?JSON.stringify(e,null,2):String(e)}function w(e){var t=parseFloat(e);return isNaN(t)?e:t}function E(e,t){for(var map=Object.create(null),r=e.split(","),i=0;i-1)return e.splice(r,1)}}var Q=Object.prototype.hasOwnProperty;function _(e,t){return Q.call(e,t)}function D(e){var t=Object.create(null);return function(r){return t[r]||(t[r]=e(r))}}var M=/-(\w)/g,S=D((function(e){return e.replace(M,(function(e,t){return t?t.toUpperCase():""}))})),k=D((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),x=/\B([A-Z])/g,O=D((function(e){return e.replace(x,"-$1").toLowerCase()}));var F=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function r(a){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,a):e.call(t)}return r._length=e.length,r};function R(e,t){t=t||0;for(var i=e.length-t,r=new Array(i);i--;)r[i]=e[i+t];return r}function N(e,t){for(var r in t)e[r]=t[r];return e}function P(e){for(var t={},i=0;i0,se=ie&&ie.indexOf("edge/")>0,ue=(ie&&ie.indexOf("android"),ie&&/iphone|ipad|ipod|ios/.test(ie)||"ios"===ne),ce=(ie&&/chrome\/\d+/.test(ie),ie&&/phantomjs/.test(ie),ie&&ie.match(/firefox\/(\d+)/)),Ae={}.watch,fe=!1;if(te)try{var le={};Object.defineProperty(le,"passive",{get:function(){fe=!0}}),window.addEventListener("test-passive",null,le)}catch(e){}var he=function(){return void 0===$&&($=!te&&!re&&void 0!==e&&(e.process&&"server"===e.process.env.VUE_ENV)),$},de=te&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ge(e){return"function"==typeof e&&/native code/.test(e.toString())}var pe,me="undefined"!=typeof Symbol&&ge(Symbol)&&"undefined"!=typeof Reflect&&ge(Reflect.ownKeys);pe="undefined"!=typeof Set&&ge(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var be=T,ye=0,ve=function(){this.id=ye++,this.subs=[]};ve.prototype.addSub=function(sub){this.subs.push(sub)},ve.prototype.removeSub=function(sub){B(this.subs,sub)},ve.prototype.depend=function(){ve.target&&ve.target.addDep(this)},ve.prototype.notify=function(){var e=this.subs.slice();for(var i=0,t=e.length;i-1)if(c&&!_(o,"default"))A=!1;else if(""===A||A===O(e)){var l=Ze(String,o.type);(l<0||f0&&(wt((r=Et(r,(t||"")+"_"+i))[0])&&wt(l)&&(h[n]=_e(l.text+r[0].text),r.shift()),h.push.apply(h,r)):f(r)?wt(l)?h[n]=_e(l.text+r):""!==r&&h.push(_e(r)):wt(r)&&wt(l)?h[n]=_e(l.text+r.text):(A(e._isVList)&&c(r.tag)&&o(r.key)&&c(t)&&(r.key="__vlist"+t+"_"+i+"__"),h.push(r)));return h}function Ct(e,t){if(e){for(var r=Object.create(null),n=me?Reflect.ownKeys(e):Object.keys(e),i=0;i0,A=e?!!e.$stable:!c,f=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(A&&r&&r!==n&&f===r.$key&&!c&&!r.$hasNormal)return r;for(var l in o={},e)e[l]&&"$"!==l[0]&&(o[l]=Mt(t,l,e[l]))}else o={};for(var h in t)h in o||(o[h]=St(t,h));return e&&Object.isExtensible(e)&&(e._normalized=o),Z(o,"$stable",A),Z(o,"$key",f),Z(o,"$hasNormal",c),o}function Mt(e,t,r){var n=function(){var e=arguments.length?r.apply(null,arguments):r({}),t=(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:It(e))&&e[0];return e&&(!t||1===e.length&&t.isComment&&!_t(t))?void 0:e};return r.proxy&&Object.defineProperty(e,t,{get:n,enumerable:!0,configurable:!0}),n}function St(e,t){return function(){return e[t]}}function kt(e,t){var r,i,n,o,A;if(Array.isArray(e)||"string"==typeof e)for(r=new Array(e.length),i=0,n=e.length;idocument.createEvent("Event").timeStamp&&(Br=function(){return Qr.now()})}function _r(){var e,t;for(Cr=Br(),wr=!0,mr.sort((function(a,b){return a.id-b.id})),Er=0;ErEr&&mr[i].id>e.id;)i--;mr.splice(i+1,0,e)}else mr.push(e);Ir||(Ir=!0,ft(_r))}}(this)},Mr.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||l(e)||this.deep){var t=this.value;if(this.value=e,this.user){var r='callback for watcher "'+this.expression+'"';$e(this.cb,this.vm,[e,t],this.vm,r)}else this.cb.call(this.vm,e,t)}}},Mr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Mr.prototype.depend=function(){for(var i=this.deps.length;i--;)this.deps[i].depend()},Mr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||B(this.vm._watchers,this);for(var i=this.deps.length;i--;)this.deps[i].removeSub(this);this.active=!1}};var Sr={enumerable:!0,configurable:!0,get:T,set:T};function kr(e,t,r){Sr.get=function(){return this[t][r]},Sr.set=function(e){this[t][r]=e},Object.defineProperty(e,r,Sr)}function xr(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var r=e.$options.propsData||{},n=e._props={},o=e.$options._propKeys=[];e.$parent&&Oe(!1);var c=function(c){o.push(c);var A=Ve(c,t,r,e);Ne(n,c,A),c in e||kr(e,"_props",c)};for(var A in t)c(A);Oe(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var r in t)e[r]="function"!=typeof t[r]?T:F(t[r],e)}(e,t.methods),t.data?function(e){var data=e.$options.data;d(data=e._data="function"==typeof data?function(data,e){we();try{return data.call(e,e)}catch(t){return We(t,e,"data()"),{}}finally{Ee()}}(data,e):data||{})||(data={});var t=Object.keys(data),r=e.$options.props,i=(e.$options.methods,t.length);for(;i--;){var n=t[i];0,r&&_(r,n)||Y(n)||kr(e,"_data",n)}Re(data,!0)}(e):Re(e._data={},!0),t.computed&&function(e,t){var r=e._computedWatchers=Object.create(null),n=he();for(var o in t){var c=t[o],A="function"==typeof c?c:c.get;0,n||(r[o]=new Mr(e,A||T,T,Or)),o in e||Fr(e,o,c)}}(e,t.computed),t.watch&&t.watch!==Ae&&function(e,t){for(var r in t){var n=t[r];if(Array.isArray(n))for(var i=0;i-1:"string"==typeof pattern?pattern.split(",").indexOf(e)>-1:!!m(pattern)&&pattern.test(e)}function Gr(e,filter){var t=e.cache,r=e.keys,n=e._vnode;for(var o in t){var c=t[o];if(c){var A=c.name;A&&!filter(A)&&qr(t,o,r,n)}}}function qr(e,t,r,n){var o=e[t];!o||n&&o.tag===n.tag||o.componentInstance.$destroy(),e[t]=null,B(r,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=Tr++,t._isVue=!0,e&&e._isComponent?function(e,t){var r=e.$options=Object.create(e.constructor.options),n=t._parentVnode;r.parent=t.parent,r._parentVnode=n;var o=n.componentOptions;r.propsData=o.propsData,r._parentListeners=o.listeners,r._renderChildren=o.children,r._componentTag=o.tag,t.render&&(r.render=t.render,r.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=qe(Lr(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,r=t.parent;if(r&&!t.abstract){for(;r.$options.abstract&&r.$parent;)r=r.$parent;r.$children.push(e)}e.$parent=r,e.$root=r?r.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&cr(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,r=e.$vnode=t._parentVnode,o=r&&r.context;e.$slots=Bt(t._renderChildren,o),e.$scopedSlots=n,e._c=function(a,b,t,r){return $t(e,a,b,t,r,!1)},e.$createElement=function(a,b,t,r){return $t(e,a,b,t,r,!0)};var c=r&&r.data;Ne(e,"$attrs",c&&c.attrs||n,null,!0),Ne(e,"$listeners",t._parentListeners||n,null,!0)}(t),pr(t,"beforeCreate"),function(e){var t=Ct(e.$options.inject,e);t&&(Oe(!1),Object.keys(t).forEach((function(r){Ne(e,r,t[r])})),Oe(!0))}(t),xr(t),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),pr(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(jr),function(e){var t={get:function(){return this._data}},r={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",r),e.prototype.$set=Pe,e.prototype.$delete=del,e.prototype.$watch=function(e,t,r){var n=this;if(d(t))return Pr(n,e,t,r);(r=r||{}).user=!0;var o=new Mr(n,e,t,r);if(r.immediate){var c='callback for immediate watcher "'+o.expression+'"';we(),$e(t,n,[o.value],n,c),Ee()}return function(){o.teardown()}}}(jr),function(e){var t=/^hook:/;e.prototype.$on=function(e,r){var n=this;if(Array.isArray(e))for(var i=0,o=e.length;i1?R(r):r;for(var n=R(arguments,1),o='event handler for "'+e+'"',i=0,c=r.length;iparseInt(this.max)&&qr(t,r[0],r,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)qr(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",(function(t){Gr(e,(function(e){return Jr(t,e)}))})),this.$watch("exclude",(function(t){Gr(e,(function(e){return!Jr(t,e)}))}))},updated:function(){this.cacheVNode()},render:function(){var slot=this.$slots.default,e=or(slot),t=e&&e.componentOptions;if(t){var r=Hr(t),n=this.include,o=this.exclude;if(n&&(!r||!Jr(n,r))||o&&r&&Jr(o,r))return e;var c=this.cache,A=this.keys,f=null==e.key?t.Ctor.cid+(t.tag?"::"+t.tag:""):e.key;c[f]?(e.componentInstance=c[f].componentInstance,B(A,f),A.push(f)):(this.vnodeToCache=e,this.keyToCache=f),e.data.keepAlive=!0}return e||slot&&slot[0]}},Xr={KeepAlive:Vr};!function(e){var t={get:function(){return X}};Object.defineProperty(e,"config",t),e.util={warn:be,extend:N,mergeOptions:qe,defineReactive:Ne},e.set=Pe,e.delete=del,e.nextTick=ft,e.observable=function(e){return Re(e),e},e.options=Object.create(null),z.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,N(e.options.components,Xr),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var r=R(arguments,1);return r.unshift(this),"function"==typeof e.install?e.install.apply(e,r):"function"==typeof e&&e.apply(null,r),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=qe(this.options,e),this}}(e),Ur(e),function(e){z.forEach((function(t){e[t]=function(e,r){return r?("component"===t&&d(r)&&(r.name=r.name||e,r=this.options._base.extend(r)),"directive"===t&&"function"==typeof r&&(r={bind:r,update:r}),this.options[t+"s"][e]=r,r):this.options[t+"s"][e]}}))}(e)}(jr),Object.defineProperty(jr.prototype,"$isServer",{get:he}),Object.defineProperty(jr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(jr,"FunctionalRenderContext",{value:zt}),jr.version="2.6.14";var Kr=E("style,class"),Yr=E("input,textarea,option,select,progress"),Zr=E("contenteditable,draggable,spellcheck"),Wr=E("events,caret,typing,plaintext-only"),$r=E("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),en="http://www.w3.org/1999/xlink",tn=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},rn=function(e){return tn(e)?e.slice(6,e.length):""},nn=function(e){return null==e||!1===e};function on(e){for(var data=e.data,t=e,r=e;c(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(data=an(r.data,data));for(;c(t=t.parent);)t&&t.data&&(data=an(data,t.data));return function(e,t){if(c(e)||c(t))return sn(e,un(t));return""}(data.staticClass,data.class)}function an(e,t){return{staticClass:sn(e.staticClass,t.staticClass),class:c(e.class)?[e.class,t.class]:t.class}}function sn(a,b){return a?b?a+" "+b:a:b||""}function un(e){return Array.isArray(e)?function(e){for(var t,r="",i=0,n=e.length;i-1?kn(e,t,r):$r(t)?nn(r)?e.removeAttribute(t):(r="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,r)):Zr(t)?e.setAttribute(t,function(e,t){return nn(t)||"false"===t?"false":"contenteditable"===e&&Wr(t)?t:"true"}(t,r)):tn(t)?nn(r)?e.removeAttributeNS(en,rn(t)):e.setAttributeNS(en,t,r):kn(e,t,r)}function kn(e,t,r){if(nn(r))e.removeAttribute(t);else{if(oe&&!ae&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==r&&!e.__ieph){var n=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",n)};e.addEventListener("input",n),e.__ieph=!0}e.setAttribute(t,r)}}var xn={create:Mn,update:Mn};function On(e,t){var r=t.elm,data=t.data,n=e.data;if(!(o(data.staticClass)&&o(data.class)&&(o(n)||o(n.staticClass)&&o(n.class)))){var A=on(t),f=r._transitionClasses;c(f)&&(A=sn(A,un(f))),A!==r._prevClass&&(r.setAttribute("class",A),r._prevClass=A)}}var Fn,Rn={create:On,update:On};function Nn(e,t,r){var n=Fn;return function o(){var c=t.apply(null,arguments);null!==c&&Ln(e,o,r,n)}}var Pn=it&&!(ce&&Number(ce[1])<=53);function Tn(e,t,r,n){if(Pn){var o=Cr,c=t;t=c._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=o||e.timeStamp<=0||e.target.ownerDocument!==document)return c.apply(this,arguments)}}Fn.addEventListener(e,t,fe?{capture:r,passive:n}:r)}function Ln(e,t,r,n){(n||Fn).removeEventListener(e,t._wrapper||t,r)}function jn(e,t){if(!o(e.data.on)||!o(t.data.on)){var r=t.data.on||{},n=e.data.on||{};Fn=t.elm,function(e){if(c(e.__r)){var t=oe?"change":"input";e[t]=[].concat(e.__r,e[t]||[]),delete e.__r}c(e.__c)&&(e.change=[].concat(e.__c,e.change||[]),delete e.__c)}(r),bt(r,n,Tn,Ln,Nn,t.context),Fn=void 0}}var Un,Hn={create:jn,update:jn};function Jn(e,t){if(!o(e.data.domProps)||!o(t.data.domProps)){var r,n,A=t.elm,f=e.data.domProps||{},l=t.data.domProps||{};for(r in c(l.__ob__)&&(l=t.data.domProps=N({},l)),f)r in l||(A[r]="");for(r in l){if(n=l[r],"textContent"===r||"innerHTML"===r){if(t.children&&(t.children.length=0),n===f[r])continue;1===A.childNodes.length&&A.removeChild(A.childNodes[0])}if("value"===r&&"PROGRESS"!==A.tagName){A._value=n;var h=o(n)?"":String(n);Gn(A,h)&&(A.value=h)}else if("innerHTML"===r&&fn(A.tagName)&&o(A.innerHTML)){(Un=Un||document.createElement("div")).innerHTML=""+n+"";for(var svg=Un.firstChild;A.firstChild;)A.removeChild(A.firstChild);for(;svg.firstChild;)A.appendChild(svg.firstChild)}else if(n!==f[r])try{A[r]=n}catch(e){}}}}function Gn(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var r=!0;try{r=document.activeElement!==e}catch(e){}return r&&e.value!==t}(e,t)||function(e,t){var r=e.value,n=e._vModifiers;if(c(n)){if(n.number)return w(r)!==w(t);if(n.trim)return r.trim()!==t.trim()}return r!==t}(e,t))}var qn={create:Jn,update:Jn},zn=D((function(e){var t={},r=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var n=e.split(r);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}));function Vn(data){var style=Xn(data.style);return data.staticStyle?N(data.staticStyle,style):style}function Xn(e){return Array.isArray(e)?P(e):"string"==typeof e?zn(e):e}var Kn,Yn=/^--/,Zn=/\s*!important$/,Wn=function(e,t,r){if(Yn.test(t))e.style.setProperty(t,r);else if(Zn.test(r))e.style.setProperty(O(t),r.replace(Zn,""),"important");else{var n=ei(t);if(Array.isArray(r))for(var i=0,o=r.length;i-1?t.split(ri).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var r=" "+(e.getAttribute("class")||"")+" ";r.indexOf(" "+t+" ")<0&&e.setAttribute("class",(r+t).trim())}}function ii(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(ri).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var r=" "+(e.getAttribute("class")||"")+" ",n=" "+t+" ";r.indexOf(n)>=0;)r=r.replace(n," ");(r=r.trim())?e.setAttribute("class",r):e.removeAttribute("class")}}function oi(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&N(t,ai(e.name||"v")),N(t,e),t}return"string"==typeof e?ai(e):void 0}}var ai=D((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),si=te&&!ae,ui="transition",ci="animation",Ai="transition",fi="transitionend",hi="animation",di="animationend";si&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Ai="WebkitTransition",fi="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(hi="WebkitAnimation",di="webkitAnimationEnd"));var gi=te?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function pi(e){gi((function(){gi(e)}))}function mi(e,t){var r=e._transitionClasses||(e._transitionClasses=[]);r.indexOf(t)<0&&(r.push(t),ni(e,t))}function bi(e,t){e._transitionClasses&&B(e._transitionClasses,t),ii(e,t)}function yi(e,t,r){var n=Ii(e,t),o=n.type,c=n.timeout,A=n.propCount;if(!o)return r();var f=o===ui?fi:di,l=0,h=function(){e.removeEventListener(f,d),r()},d=function(t){t.target===e&&++l>=A&&h()};setTimeout((function(){l0&&(r=ui,d=A,m=c.length):t===ci?h>0&&(r=ci,d=h,m=l.length):m=(r=(d=Math.max(A,h))>0?A>h?ui:ci:null)?r===ui?c.length:l.length:0,{type:r,timeout:d,propCount:m,hasTransform:r===ui&&vi.test(n[Ai+"Property"])}}function wi(e,t){for(;e.length1}function Di(e,t){!0!==t.data.show&&Ci(t)}var Mi=function(e){var i,t,r={},n=e.modules,l=e.nodeOps;for(i=0;iI?B(e,o(r[C+1])?null:r[C+1].elm,r,v,C,n):v>C&&_(t,y,I)}(y,v,w,n,m):c(w)?(c(e.text)&&l.setTextContent(y,""),B(y,null,w,0,w.length-1,n)):c(v)?_(v,0,v.length-1):c(e.text)&&l.setTextContent(y,""):e.text!==t.text&&l.setTextContent(y,t.text),c(data)&&c(i=data.hook)&&c(i=i.postpatch)&&i(e,t)}}}function k(e,t,r){if(A(r)&&c(e.parent))e.parent.data.pendingInsert=t;else for(var i=0;i-1,option.selected!==c&&(option.selected=c);else if(U(Fi(option),n))return void(e.selectedIndex!==i&&(e.selectedIndex=i));o||(e.selectedIndex=-1)}}function Oi(e,t){return t.every((function(t){return!U(t,e)}))}function Fi(option){return"_value"in option?option._value:option.value}function Ri(e){e.target.composing=!0}function Ni(e){e.target.composing&&(e.target.composing=!1,Pi(e.target,"input"))}function Pi(e,t){var r=document.createEvent("HTMLEvents");r.initEvent(t,!0,!0),e.dispatchEvent(r)}function Ti(e){return!e.componentInstance||e.data&&e.data.transition?e:Ti(e.componentInstance._vnode)}var Li={bind:function(e,t,r){var n=t.value,o=(r=Ti(r)).data&&r.data.transition,c=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;n&&o?(r.data.show=!0,Ci(r,(function(){e.style.display=c}))):e.style.display=n?c:"none"},update:function(e,t,r){var n=t.value;!n!=!t.oldValue&&((r=Ti(r)).data&&r.data.transition?(r.data.show=!0,n?Ci(r,(function(){e.style.display=e.__vOriginalDisplay})):Bi(r,(function(){e.style.display="none"}))):e.style.display=n?e.__vOriginalDisplay:"none")},unbind:function(e,t,r,n,o){o||(e.style.display=e.__vOriginalDisplay)}},ji={model:Si,show:Li},Ui={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Hi(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Hi(or(t.children)):e}function Ji(e){var data={},t=e.$options;for(var r in t.propsData)data[r]=e[r];var n=t._parentListeners;for(var o in n)data[S(o)]=n[o];return data}function Gi(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var qi=function(e){return e.tag||_t(e)},zi=function(e){return"show"===e.name},Vi={name:"transition",props:Ui,abstract:!0,render:function(e){var t=this,r=this.$slots.default;if(r&&(r=r.filter(qi)).length){0;var n=this.mode;0;var o=r[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return o;var c=Hi(o);if(!c)return o;if(this._leaving)return Gi(e,o);var A="__transition-"+this._uid+"-";c.key=null==c.key?c.isComment?A+"comment":A+c.tag:f(c.key)?0===String(c.key).indexOf(A)?c.key:A+c.key:c.key;var data=(c.data||(c.data={})).transition=Ji(this),l=this._vnode,h=Hi(l);if(c.data.directives&&c.data.directives.some(zi)&&(c.data.show=!0),h&&h.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(c,h)&&!_t(h)&&(!h.componentInstance||!h.componentInstance._vnode.isComment)){var d=h.data.transition=N({},data);if("out-in"===n)return this._leaving=!0,yt(d,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),Gi(e,o);if("in-out"===n){if(_t(c))return l;var m,y=function(){m()};yt(data,"afterEnter",y),yt(data,"enterCancelled",y),yt(d,"delayLeave",(function(e){m=e}))}}return o}}},Xi=N({tag:String,moveClass:String},Ui);function Ki(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function Yi(e){e.data.newPos=e.elm.getBoundingClientRect()}function Zi(e){var t=e.data.pos,r=e.data.newPos,n=t.left-r.left,o=t.top-r.top;if(n||o){e.data.moved=!0;var s=e.elm.style;s.transform=s.WebkitTransform="translate("+n+"px,"+o+"px)",s.transitionDuration="0s"}}delete Xi.mode;var Wi={Transition:Vi,TransitionGroup:{props:Xi,beforeMount:function(){var e=this,t=this._update;this._update=function(r,n){var o=fr(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,o(),t.call(e,r,n)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",map=Object.create(null),r=this.prevChildren=this.children,n=this.$slots.default||[],o=this.children=[],c=Ji(this),i=0;i-1?hn[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:hn[e]=/HTMLUnknownElement/.test(t.toString())},N(jr.options.directives,ji),N(jr.options.components,Wi),jr.prototype.__patch__=te?Mi:T,jr.prototype.$mount=function(e,t){return function(e,t,r){var n;return e.$el=t,e.$options.render||(e.$options.render=Qe),pr(e,"beforeMount"),n=function(){e._update(e._render(),r)},new Mr(e,n,T,{before:function(){e._isMounted&&!e._isDestroyed&&pr(e,"beforeUpdate")}},!0),r=!1,null==e.$vnode&&(e._isMounted=!0,pr(e,"mounted")),e}(this,e=e&&te?function(e){if("string"==typeof e){return document.querySelector(e)||document.createElement("div")}return e}(e):void 0,t)},te&&setTimeout((function(){X.devtools&&de&&de.emit("init",jr)}),0),t.default=jr}.call(this,r(36),r(388).setImmediate)},function(e,t,r){var n=r(51),o=r(145).f,c=r(160),A=r(103),f=r(367),l=r(522),h=r(225);e.exports=function(e,source){var t,r,d,m,y,v=e.target,I=e.global,w=e.stat;if(t=I?n:w?n[v]||f(v,{}):(n[v]||{}).prototype)for(r in source){if(m=source[r],d=e.noTargetGet?(y=o(t,r))&&y.value:t[r],!h(I?r:v+(w?".":"#")+r,e.forced)&&void 0!==d){if(typeof m==typeof d)continue;l(m,d)}(e.sham||d&&d.sham)&&c(m,"sham",!0),A(t,r,m,e)}}},function(e,t,r){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var content=function(e,t){var content=e[1]||"",r=e[3];if(!r)return content;if(t&&"function"==typeof btoa){var n=(c=r,A=btoa(unescape(encodeURIComponent(JSON.stringify(c)))),data="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(A),"/*# ".concat(data," */")),o=r.sources.map((function(source){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(source," */")}));return[content].concat(o).concat([n]).join("\n")}var c,A,data;return[content].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(content,"}"):content})).join("")},t.i=function(e,r,n){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(n)for(var i=0;it.parts.length&&(r.parts.length=t.parts.length)}else{var o=[];for(n=0;n=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,A=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return c=e.done,e},e:function(e){A=!0,o=e},f:function(){try{c||null==r.return||r.return()}finally{if(A)throw o}}}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,r=new Array(t);i1&&void 0!==arguments[1]?arguments[1]:[],n=e.$children||[],o=m(n);try{for(o.s();!(t=o.n()).done;){var c=t.value;c.$fetch?r.push(c):c.$children&&w(c,r)}}catch(e){o.e(e)}finally{o.f()}return r}function E(e,t){if(t||!e.options.__hasNuxtData){var r=e.options._originDataFn||e.options.data||function(){return{}};e.options._originDataFn=r,e.options.data=function(){var data=r.call(this,this);return this.$ssrContext&&(t=this.$ssrContext.asyncData[e.cid]),d(d({},data),t)},e.options.__hasNuxtData=!0,e._Ctor&&e._Ctor.options&&(e._Ctor.options.data=e.options.data)}}function C(e){return e.options&&e._Ctor===e||(e.options?(e._Ctor=e,e.extendOptions=e.options):(e=f.default.extend(e))._Ctor=e,!e.options.name&&e.options.__file&&(e.options.name=e.options.__file)),e}function B(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"components";return Array.prototype.concat.apply([],e.matched.map((function(e,n){return Object.keys(e[r]).map((function(o){return t&&t.push(n),e[r][o]}))})))}function Q(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return B(e,t,"instances")}function _(e,t){return Array.prototype.concat.apply([],e.matched.map((function(e,r){return Object.keys(e.components).reduce((function(n,o){return e.components[o]?n.push(t(e.components[o],e.instances[o],e,o,r)):delete e.components[o],n}),[])})))}function D(e,t){return Promise.all(_(e,function(){var e=Object(o.a)(regeneratorRuntime.mark((function e(r,n,o,c){var A,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof r||r.options){e.next=11;break}return e.prev=1,e.next=4,r();case 4:r=e.sent,e.next=11;break;case 7:throw e.prev=7,e.t0=e.catch(1),e.t0&&"ChunkLoadError"===e.t0.name&&"undefined"!=typeof window&&window.sessionStorage&&(A=Date.now(),(!(f=parseInt(window.sessionStorage.getItem("nuxt-reload")))||f+6e4=0;--i){var c=this.tryEntries[i],A=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var f=n.call(c,"catchLoc"),l=n.call(c,"finallyLoc");if(f&&l){if(this.prev=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev=0;--i){var t=this.tryEntries[i];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),F(t),w}},catch:function(e){for(var i=this.tryEntries.length-1;i>=0;--i){var t=this.tryEntries[i];if(t.tryLoc===e){var r=t.completion;if("throw"===r.type){var n=r.arg;F(t)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),w}},e}(e.exports);try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},function(e,t,r){"use strict";r.r(t),r.d(t,"getAddress",(function(){return v})),r.d(t,"isAddress",(function(){return I})),r.d(t,"getIcapAddress",(function(){return w})),r.d(t,"getContractAddress",(function(){return E})),r.d(t,"getCreate2Address",(function(){return C}));var n=r(1),o=r(20),c=r(31),A=r(111);const f=new(r(5).Logger)("address/5.4.0");function l(address){Object(n.isHexString)(address,20)||f.throwArgumentError("invalid address","address",address);const e=(address=address.toLowerCase()).substring(2).split(""),t=new Uint8Array(40);for(let i=0;i<40;i++)t[i]=e[i].charCodeAt(0);const r=Object(n.arrayify)(Object(c.keccak256)(t));for(let i=0;i<40;i+=2)r[i>>1]>>4>=8&&(e[i]=e[i].toUpperCase()),(15&r[i>>1])>=8&&(e[i+1]=e[i+1].toUpperCase());return"0x"+e.join("")}const h={};for(let i=0;i<10;i++)h[String(i)]=String(i);for(let i=0;i<26;i++)h[String.fromCharCode(65+i)]=String(10+i);const d=Math.floor((m=9007199254740991,Math.log10?Math.log10(m):Math.log(m)/Math.LN10));var m;function y(address){let e=(address=(address=address.toUpperCase()).substring(4)+address.substring(0,2)+"00").split("").map((e=>h[e])).join("");for(;e.length>=d;){let t=e.substring(0,d);e=parseInt(t,10)%97+e.substring(t.length)}let t=String(98-parseInt(e,10)%97);for(;t.length<2;)t="0"+t;return t}function v(address){let e=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),e=l(address),address.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==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)!==y(address)&&f.throwArgumentError("bad icap checksum","address",address),e=Object(o.c)(address.substring(4));e.length<40;)e="0"+e;e=l("0x"+e)}else f.throwArgumentError("invalid address","address",address);return e}function I(address){try{return v(address),!0}catch(e){}return!1}function w(address){let e=Object(o.b)(v(address).substring(2)).toUpperCase();for(;e.length<30;)e="0"+e;return"XE"+y("XE00"+e)+e}function E(e){let t=null;try{t=v(e.from)}catch(t){f.throwArgumentError("missing from address","transaction",e)}const r=Object(n.stripZeros)(Object(n.arrayify)(o.a.from(e.nonce).toHexString()));return v(Object(n.hexDataSlice)(Object(c.keccak256)(Object(A.encode)([t,r])),12))}function C(e,t,r){return 32!==Object(n.hexDataLength)(t)&&f.throwArgumentError("salt must be 32 bytes","salt",t),32!==Object(n.hexDataLength)(r)&&f.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",r),v(Object(n.hexDataSlice)(Object(c.keccak256)(Object(n.concat)(["0xff",v(e),t,r])),12))}},function(e,t,r){"use strict";r.r(t),r.d(t,"keccak256",(function(){return A}));var n=r(715),o=r.n(n),c=r(1);function A(data){return"0x"+o.a.keccak_256(Object(c.arrayify)(data))}},function(e,t,r){"use strict";var n=r(24),o=r(51),c=r(108),A=r(68),f=r(88),l=r(365),h=r(49),d=r(92),m=r(226),y=r(57),v=r(79),I=r(257),w=r(48),E=r(112),C=r(123),B=r(256),Q=r(73),_=r(192),D=r(147),M=r(231),S=r(193),k=r(531),x=r(369),O=r(145),F=r(102),R=r(254),N=r(103),P=r(258),T=r(262),L=r(223),j=r(259),U=r(56),H=r(532),J=r(533),G=r(177),z=r(129),V=r(194).forEach,X=T("hidden"),K="Symbol",Y=U("toPrimitive"),Z=z.set,W=z.getterFor(K),$=Object.prototype,ee=o.Symbol,te=c("JSON","stringify"),re=O.f,ne=F.f,ie=k.f,oe=R.f,ae=P("symbols"),se=P("op-symbols"),ue=P("string-to-symbol-registry"),ce=P("symbol-to-string-registry"),Ae=P("wks"),fe=o.QObject,le=!fe||!fe.prototype||!fe.prototype.findChild,he=f&&h((function(){return 7!=D(ne({},"a",{get:function(){return ne(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=re($,t);n&&delete $[t],ne(e,t,r),n&&e!==$&&ne($,t,n)}:ne,de=function(e,t){var symbol=ae[e]=D(ee.prototype);return Z(symbol,{type:K,tag:e,description:t}),f||(symbol.description=t),symbol},ge=function(e,t,r){e===$&&ge(se,t,r),w(e);var n=B(t);return w(r),d(ae,n)?(r.enumerable?(d(e,X)&&e[X][n]&&(e[X][n]=!1),r=D(r,{enumerable:_(0,!1)})):(d(e,X)||ne(e,X,_(1,{})),e[X][n]=!0),he(e,n,r)):ne(e,n,r)},pe=function(e,t){w(e);var r=C(t),n=M(r).concat(ve(r));return V(n,(function(t){f&&!me.call(r,t)||ge(e,t,r[t])})),e},me=function(e){var t=B(e),r=oe.call(this,t);return!(this===$&&d(ae,t)&&!d(se,t))&&(!(r||!d(this,t)||!d(ae,t)||d(this,X)&&this[X][t])||r)},be=function(e,t){var r=C(e),n=B(t);if(r!==$||!d(ae,n)||d(se,n)){var o=re(r,n);return!o||!d(ae,n)||d(r,X)&&r[X][n]||(o.enumerable=!0),o}},ye=function(e){var t=ie(C(e)),r=[];return V(t,(function(e){d(ae,e)||d(L,e)||r.push(e)})),r},ve=function(e){var t=e===$,r=ie(t?se:C(e)),n=[];return V(r,(function(e){!d(ae,e)||t&&!d($,e)||n.push(ae[e])})),n};(l||(ee=function(){if(this instanceof ee)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?Q(arguments[0]):void 0,t=j(e),r=function(e){this===$&&r.call(se,e),d(this,X)&&d(this[X],t)&&(this[X][t]=!1),he(this,t,_(1,e))};return f&&le&&he($,t,{configurable:!0,set:r}),de(t,e)},N(ee.prototype,"toString",(function(){return W(this).tag})),N(ee,"withoutSetter",(function(e){return de(j(e),e)})),R.f=me,F.f=ge,O.f=be,S.f=k.f=ye,x.f=ve,H.f=function(e){return de(U(e),e)},f&&(ne(ee.prototype,"description",{configurable:!0,get:function(){return W(this).description}}),A||N($,"propertyIsEnumerable",me,{unsafe:!0}))),n({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:ee}),V(M(Ae),(function(e){J(e)})),n({target:K,stat:!0,forced:!l},{for:function(e){var t=Q(e);if(d(ue,t))return ue[t];var symbol=ee(t);return ue[t]=symbol,ce[symbol]=t,symbol},keyFor:function(e){if(!I(e))throw TypeError(e+" is not a symbol");if(d(ce,e))return ce[e]},useSetter:function(){le=!0},useSimple:function(){le=!1}}),n({target:"Object",stat:!0,forced:!l,sham:!f},{create:function(e,t){return void 0===t?D(e):pe(D(e),t)},defineProperty:ge,defineProperties:pe,getOwnPropertyDescriptor:be}),n({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:ye,getOwnPropertySymbols:ve}),n({target:"Object",stat:!0,forced:h((function(){x.f(1)}))},{getOwnPropertySymbols:function(e){return x.f(E(e))}}),te)&&n({target:"JSON",stat:!0,forced:!l||h((function(){var symbol=ee();return"[null]"!=te([symbol])||"{}"!=te({a:symbol})||"{}"!=te(Object(symbol))}))},{stringify:function(e,t,r){for(var n,o=[e],c=1;arguments.length>c;)o.push(arguments[c++]);if(n=t,(v(t)||void 0!==e)&&!I(e))return m(t)||(t=function(e,t){if(y(n)&&(t=n.call(this,e,t)),!I(t))return t}),o[1]=t,te.apply(null,o)}});if(!ee.prototype[Y]){var Ie=ee.prototype.valueOf;N(ee.prototype,Y,(function(){return Ie.apply(this,arguments)}))}G(ee,K),L[X]=!0},function(e,t,r){var n=r(18),o=n.Buffer;function c(e,t){for(var r in e)t[r]=e[r]}function A(e,t,r){return o(e,t,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=n:(c(n,t),t.Buffer=A),A.prototype=Object.create(o.prototype),c(o,A),A.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,r)},A.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=o(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},A.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},A.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},function(e,t,r){var n=r(51),o=r(544),c=r(545),A=r(769),f=r(160),l=function(e){if(e&&e.forEach!==A)try{f(e,"forEach",A)}catch(t){e.forEach=A}};for(var h in o)l(n[h]&&n[h].prototype);l(c)},function(e,t,r){"use strict";var n=r(24),o=r(194).filter;n({target:"Array",proto:!0,forced:!r(229)("filter")},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t){var g;g=function(){return this}();try{g=g||new Function("return this")()}catch(e){"object"==typeof window&&(g=window)}e.exports=g},function(e,t,r){var n=r(24),o=r(112),c=r(231);n({target:"Object",stat:!0,forced:r(49)((function(){c(1)}))},{keys:function(e){return c(o(e))}})},,function(e,t,r){"use strict";r.d(t,"b",(function(){return c})),r.d(t,"e",(function(){return A})),r.d(t,"a",(function(){return f})),r.d(t,"c",(function(){return l})),r.d(t,"d",(function(){return h}));var n=r(1),o=r(63);function c(e){return"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),Object(n.arrayify)(e)}function A(e,t){for(e=String(e);e.lengthd;)void 0!==(t=n(r,e=o[d++]))&&l(h,e,t);return h}})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const n=r(291),o=r(666);var c=r(291);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return c._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return c.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return c.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return c.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return c.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return c.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return c.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return c.Name}});var A=r(666);Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return A.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return A.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return A.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return A.varKinds}}),t.operators={GT:new n._Code(">"),GTE:new n._Code(">="),LT:new n._Code("<"),LTE:new n._Code("<="),EQ:new n._Code("==="),NEQ:new n._Code("!=="),NOT:new n._Code("!"),OR:new n._Code("||"),AND:new n._Code("&&"),ADD:new n._Code("+")};class f{optimizeNodes(){return this}optimizeNames(e,t){return this}}class l extends f{constructor(e,t,r){super(),this.varKind=e,this.name=t,this.rhs=r}render({es5:e,_n:t}){const r=e?o.varKinds.var:this.varKind,n=void 0===this.rhs?"":` = ${this.rhs}`;return`${r} ${this.name}${n};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=T(this.rhs,e,t)),this}get names(){return this.rhs instanceof n._CodeOrName?this.rhs.names:{}}}class h extends f{constructor(e,t,r){super(),this.lhs=e,this.rhs=t,this.sideEffects=r}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(!(this.lhs instanceof n.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=T(this.rhs,e,t),this}get names(){return P(this.lhs instanceof n.Name?{}:{...this.lhs.names},this.rhs)}}class d extends h{constructor(e,t,r,n){super(e,r,n),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class m extends f{constructor(label){super(),this.label=label,this.names={}}render({_n:e}){return`${this.label}:`+e}}class y extends f{constructor(label){super(),this.label=label,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class v extends f{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class I extends f{constructor(code){super(),this.code=code}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=T(this.code,e,t),this}get names(){return this.code instanceof n._CodeOrName?this.code.names:{}}}class w extends f{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce(((code,t)=>code+t.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let i=e.length;for(;i--;){const t=e[i].optimizeNodes();Array.isArray(t)?e.splice(i,1,...t):t?e[i]=t:e.splice(i,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:r}=this;let i=r.length;for(;i--;){const n=r[i];n.optimizeNames(e,t)||(L(e,n.names),r.splice(i,1))}return r.length>0?this:void 0}get names(){return this.nodes.reduce(((e,t)=>N(e,t.names)),{})}}class E extends w{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class C extends w{}class B extends E{}B.kind="else";class Q extends E{constructor(e,t){super(t),this.condition=e}render(e){let code=`if(${this.condition})`+super.render(e);return this.else&&(code+="else "+this.else.render(e)),code}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new B(e):e}return t?!1===e?t instanceof Q?t:t.nodes:this.nodes.length?this:new Q(j(e),t instanceof Q?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var r;if(this.else=null===(r=this.else)||void 0===r?void 0:r.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=T(this.condition,e,t),this}get names(){const e=super.names;return P(e,this.condition),this.else&&N(e,this.else.names),e}}Q.kind="if";class _ extends E{}_.kind="for";class D extends _{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=T(this.iteration,e,t),this}get names(){return N(super.names,this.iteration.names)}}class M extends _{constructor(e,t,r,n){super(),this.varKind=e,this.name=t,this.from=r,this.to=n}render(e){const t=e.es5?o.varKinds.var:this.varKind,{name:r,from:n,to:c}=this;return`for(${t} ${r}=${n}; ${r}<${c}; ${r}++)`+super.render(e)}get names(){const e=P(super.names,this.from);return P(e,this.to)}}class S extends _{constructor(e,t,r,n){super(),this.loop=e,this.varKind=t,this.name=r,this.iterable=n}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=T(this.iterable,e,t),this}get names(){return N(super.names,this.iterable.names)}}class k extends E{constructor(e,t,r){super(),this.name=e,this.args=t,this.async=r}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}k.kind="func";class x extends w{render(e){return"return "+super.render(e)}}x.kind="return";class O extends E{render(e){let code="try"+super.render(e);return this.catch&&(code+=this.catch.render(e)),this.finally&&(code+=this.finally.render(e)),code}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var r,n;return super.optimizeNames(e,t),null===(r=this.catch)||void 0===r||r.optimizeNames(e,t),null===(n=this.finally)||void 0===n||n.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&N(e,this.catch.names),this.finally&&N(e,this.finally.names),e}}class F extends E{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}F.kind="catch";class R extends E{render(e){return"finally"+super.render(e)}}R.kind="finally";function N(e,t){for(const r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function P(e,t){return t instanceof n._CodeOrName?N(e,t.names):e}function T(e,t,r){return e instanceof n.Name?c(e):(o=e)instanceof n._Code&&o._items.some((e=>e instanceof n.Name&&1===t[e.str]&&void 0!==r[e.str]))?new n._Code(e._items.reduce(((e,t)=>(t instanceof n.Name&&(t=c(t)),t instanceof n._Code?e.push(...t._items):e.push(t),e)),[])):e;var o;function c(e){const n=r[e.str];return void 0===n||1!==t[e.str]?e:(delete t[e.str],n)}}function L(e,t){for(const r in t)e[r]=(e[r]||0)-(t[r]||0)}function j(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:n._`!${G(e)}`}t.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new o.Scope({parent:e}),this._nodes=[new C]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const r=this._extScope.value(e,t);return(this._values[r.prefix]||(this._values[r.prefix]=new Set)).add(r),r}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,r,n){const o=this._scope.toName(t);return void 0!==r&&n&&(this._constants[o.str]=r),this._leafNode(new l(e,o,r)),o}const(e,t,r){return this._def(o.varKinds.const,e,t,r)}let(e,t,r){return this._def(o.varKinds.let,e,t,r)}var(e,t,r){return this._def(o.varKinds.var,e,t,r)}assign(e,t,r){return this._leafNode(new h(e,t,r))}add(e,r){return this._leafNode(new d(e,t.operators.ADD,r))}code(e){return"function"==typeof e?e():e!==n.nil&&this._leafNode(new I(e)),this}object(...e){const code=["{"];for(const[t,r]of e)code.length>1&&code.push(","),code.push(t),(t!==r||this.opts.es5)&&(code.push(":"),(0,n.addCodeArg)(code,r));return code.push("}"),new n._Code(code)}if(e,t,r){if(this._blockNode(new Q(e)),t&&r)this.code(t).else().code(r).endIf();else if(t)this.code(t).endIf();else if(r)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new Q(e))}else(){return this._elseNode(new B)}endIf(){return this._endBlockNode(Q,B)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new D(e),t)}forRange(e,t,r,n,c=(this.opts.es5?o.varKinds.var:o.varKinds.let)){const A=this._scope.toName(e);return this._for(new M(c,A,t,r),(()=>n(A)))}forOf(e,t,r,c=o.varKinds.const){const A=this._scope.toName(e);if(this.opts.es5){const e=t instanceof n.Name?t:this.var("_arr",t);return this.forRange("_i",0,n._`${e}.length`,(i=>{this.var(A,n._`${e}[${i}]`),r(A)}))}return this._for(new S("of",c,A,t),(()=>r(A)))}forIn(e,t,r,c=(this.opts.es5?o.varKinds.var:o.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,n._`Object.keys(${t})`,r);const A=this._scope.toName(e);return this._for(new S("in",c,A,t),(()=>r(A)))}endFor(){return this._endBlockNode(_)}label(label){return this._leafNode(new m(label))}break(label){return this._leafNode(new y(label))}return(e){const t=new x;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(x)}try(e,t,r){if(!t&&!r)throw new Error('CodeGen: "try" without "catch" and "finally"');const n=new O;if(this._blockNode(n),this.code(e),t){const e=this.name("e");this._currNode=n.catch=new F(e),t(e)}return r&&(this._currNode=n.finally=new R,this.code(r)),this._endBlockNode(F,R)}throw(e){return this._leafNode(new v(e))}block(body,e){return this._blockStarts.push(this._nodes.length),body&&this.code(body).endBlock(e),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const r=this._nodes.length-t;if(r<0||void 0!==e&&r!==e)throw new Error(`CodeGen: wrong number of nodes: ${r} vs ${e} expected`);return this._nodes.length=t,this}func(e,t=n.nil,r,o){return this._blockNode(new k(e,t,r)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(k)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const r=this._currNode;if(r instanceof e||t&&r instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof Q))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},t.not=j;const U=J(t.operators.AND);t.and=function(...e){return e.reduce(U)};const H=J(t.operators.OR);function J(e){return(t,r)=>t===n.nil?r:r===n.nil?t:n._`${G(t)} ${e} ${G(r)}`}function G(e){return e instanceof n.Name?e:n._`(${e})`}t.or=function(...e){return e.reduce(H)}},function(e,t,r){"use strict";var n=r(77);r.d(t,"a",(function(){return n}));try{const e=window;null==e._ethers&&(e._ethers=n)}catch(e){}},,function(e,t,r){var n=t;n.utils=r(131),n.common=r(234),n.sha=r(803),n.ripemd=r(807),n.hmac=r(808),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},,function(e,t,r){var n=r(79);e.exports=function(e){if(n(e))return e;throw TypeError(String(e)+" is not an object")}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,r){var n=r(370),o=r(103),c=r(768);n||o(Object.prototype,"toString",c,{unsafe:!0})},function(e,t,r){(function(t){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,r(36))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.setEvaluated=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.schemaHasRules=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;const n=r(43),o=r(291);function c(e,t=e.schema){const{opts:r,self:n}=e;if(!r.strictSchema)return;if("boolean"==typeof t)return;const o=n.RULES.keywords;for(const r in t)o[r]||I(e,`unknown keyword: "${r}"`)}function A(e,t){if("boolean"==typeof e)return!e;for(const r in e)if(t[r])return!0;return!1}function f(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function l(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function h({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:o}){return(c,A,f,l)=>{const h=void 0===f?A:f instanceof n.Name?(A instanceof n.Name?e(c,A,f):t(c,A,f),f):A instanceof n.Name?(t(c,f,A),A):r(A,f);return l!==n.Name||h instanceof n.Name?h:o(c,h)}}function d(e,t){if(!0===t)return e.var("props",!0);const r=e.var("props",n._`{}`);return void 0!==t&&m(e,r,t),r}function m(e,t,r){Object.keys(r).forEach((p=>e.assign(n._`${t}${(0,n.getProperty)(p)}`,!0)))}t.toHash=function(e){const t={};for(const r of e)t[r]=!0;return t},t.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(c(e,t),!A(t,e.self.RULES.all))},t.checkUnknownRules=c,t.schemaHasRules=A,t.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const r in e)if("$ref"!==r&&t.all[r])return!0;return!1},t.schemaRefOrVal=function({topSchemaRef:e,schemaPath:t},r,o,c){if(!c){if("number"==typeof r||"boolean"==typeof r)return r;if("string"==typeof r)return n._`${r}`}return n._`${e}${t}${(0,n.getProperty)(o)}`},t.unescapeFragment=function(e){return l(decodeURIComponent(e))},t.escapeFragment=function(e){return encodeURIComponent(f(e))},t.escapeJsonPointer=f,t.unescapeJsonPointer=l,t.eachItem=function(e,t){if(Array.isArray(e))for(const r of e)t(r);else t(e)},t.mergeEvaluated={props:h({mergeNames:(e,t,r)=>e.if(n._`${r} !== true && ${t} !== undefined`,(()=>{e.if(n._`${t} === true`,(()=>e.assign(r,!0)),(()=>e.assign(r,n._`${r} || {}`).code(n._`Object.assign(${r}, ${t})`)))})),mergeToName:(e,t,r)=>e.if(n._`${r} !== true`,(()=>{!0===t?e.assign(r,!0):(e.assign(r,n._`${r} || {}`),m(e,r,t))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:d}),items:h({mergeNames:(e,t,r)=>e.if(n._`${r} !== true && ${t} !== undefined`,(()=>e.assign(r,n._`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`))),mergeToName:(e,t,r)=>e.if(n._`${r} !== true`,(()=>e.assign(r,!0===t||n._`${r} > ${t} ? ${r} : ${t}`))),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},t.evaluatedPropsToName=d,t.setEvaluated=m;const y={};var v;function I(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,!0===r)throw new Error(t);e.self.logger.warn(t)}}t.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:y[t.code]||(y[t.code]=new o._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(v=t.Type||(t.Type={})),t.getErrorPath=function(e,t,r){if(e instanceof n.Name){const o=t===v.Num;return r?o?n._`"[" + ${e} + "]"`:n._`"['" + ${e} + "']"`:o?n._`"/" + ${e}`:n._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,n.getProperty)(e).toString():"/"+f(e)},t.checkStrictMode=I},function(e,t,r){"use strict";r.r(t),r.d(t,"TransactionTypes",(function(){return v})),r.d(t,"computeAddress",(function(){return B})),r.d(t,"recoverAddress",(function(){return Q})),r.d(t,"accessListify",(function(){return M})),r.d(t,"serialize",(function(){return O})),r.d(t,"parse",(function(){return R}));var n=r(30),o=r(20),c=r(1),A=r(152),f=r(31),l=r(3),h=r(111),d=r(107),m=r(5);const y=new m.Logger("transactions/5.4.0");var v;function I(e){return"0x"===e?null:Object(n.getAddress)(e)}function w(e){return"0x"===e?A.h:o.a.from(e)}!function(e){e[e.legacy=0]="legacy",e[e.eip2930=1]="eip2930",e[e.eip1559=2]="eip1559"}(v||(v={}));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"}],C={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function B(e){const t=Object(d.computePublicKey)(e);return Object(n.getAddress)(Object(c.hexDataSlice)(Object(f.keccak256)(Object(c.hexDataSlice)(t,1)),12))}function Q(e,t){return B(Object(d.recoverPublicKey)(Object(c.arrayify)(e),t))}function _(e,t){const r=Object(c.stripZeros)(o.a.from(e).toHexString());return r.length>32&&y.throwArgumentError("invalid length for "+t,"transaction:"+t,e),r}function D(e,t){return{address:Object(n.getAddress)(e),storageKeys:(t||[]).map(((t,r)=>(32!==Object(c.hexDataLength)(t)&&y.throwArgumentError("invalid access list storageKey",`accessList[${e}:${r}]`,t),t.toLowerCase())))}}function M(e){if(Array.isArray(e))return e.map(((e,t)=>Array.isArray(e)?(e.length>2&&y.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${t}]`,e),D(e[0],e[1])):D(e.address,e.storageKeys)));const t=Object.keys(e).map((t=>{const r=e[t].reduce(((e,t)=>(e[t]=!0,e)),{});return D(t,Object.keys(r).sort())}));return t.sort(((a,b)=>a.address.localeCompare(b.address))),t}function S(e){return M(e).map((e=>[e.address,e.storageKeys]))}function k(e,t){if(null!=e.gasPrice){const t=o.a.from(e.gasPrice),r=o.a.from(e.maxFeePerGas||0);t.eq(r)||y.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:t,maxFeePerGas:r})}const r=[_(e.chainId||0,"chainId"),_(e.nonce||0,"nonce"),_(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),_(e.maxFeePerGas||0,"maxFeePerGas"),_(e.gasLimit||0,"gasLimit"),null!=e.to?Object(n.getAddress)(e.to):"0x",_(e.value||0,"value"),e.data||"0x",S(e.accessList||[])];if(t){const e=Object(c.splitSignature)(t);r.push(_(e.recoveryParam,"recoveryParam")),r.push(Object(c.stripZeros)(e.r)),r.push(Object(c.stripZeros)(e.s))}return Object(c.hexConcat)(["0x02",h.encode(r)])}function x(e,t){const r=[_(e.chainId||0,"chainId"),_(e.nonce||0,"nonce"),_(e.gasPrice||0,"gasPrice"),_(e.gasLimit||0,"gasLimit"),null!=e.to?Object(n.getAddress)(e.to):"0x",_(e.value||0,"value"),e.data||"0x",S(e.accessList||[])];if(t){const e=Object(c.splitSignature)(t);r.push(_(e.recoveryParam,"recoveryParam")),r.push(Object(c.stripZeros)(e.r)),r.push(Object(c.stripZeros)(e.s))}return Object(c.hexConcat)(["0x01",h.encode(r)])}function O(e,t){if(null==e.type||0===e.type)return null!=e.accessList&&y.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",e),function(e,t){Object(l.checkProperties)(e,C);const r=[];E.forEach((function(t){let n=e[t.name]||[];const o={};t.numeric&&(o.hexPad="left"),n=Object(c.arrayify)(Object(c.hexlify)(n,o)),t.length&&n.length!==t.length&&n.length>0&&y.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,n),t.maxLength&&(n=Object(c.stripZeros)(n),n.length>t.maxLength&&y.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,n)),r.push(Object(c.hexlify)(n))}));let n=0;if(null!=e.chainId?(n=e.chainId,"number"!=typeof n&&y.throwArgumentError("invalid transaction.chainId","transaction",e)):t&&!Object(c.isBytesLike)(t)&&t.v>28&&(n=Math.floor((t.v-35)/2)),0!==n&&(r.push(Object(c.hexlify)(n)),r.push("0x"),r.push("0x")),!t)return h.encode(r);const o=Object(c.splitSignature)(t);let A=27+o.recoveryParam;return 0!==n?(r.pop(),r.pop(),r.pop(),A+=2*n+8,o.v>28&&o.v!==A&&y.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t)):o.v!==A&&y.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t),r.push(Object(c.hexlify)(A)),r.push(Object(c.stripZeros)(Object(c.arrayify)(o.r))),r.push(Object(c.stripZeros)(Object(c.arrayify)(o.s))),h.encode(r)}(e,t);switch(e.type){case 1:return x(e,t);case 2:return k(e,t)}return y.throwError(`unsupported transaction type: ${e.type}`,m.Logger.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:e.type})}function F(e,t,r){try{const r=w(t[0]).toNumber();if(0!==r&&1!==r)throw new Error("bad recid");e.v=r}catch(e){y.throwArgumentError("invalid v for transaction type: 1","v",t[0])}e.r=Object(c.hexZeroPad)(t[1],32),e.s=Object(c.hexZeroPad)(t[2],32);try{const t=Object(f.keccak256)(r(e));e.from=Q(t,{r:e.r,s:e.s,recoveryParam:e.v})}catch(e){console.log(e)}}function R(e){const t=Object(c.arrayify)(e);if(t[0]>127)return function(e){const t=h.decode(e);9!==t.length&&6!==t.length&&y.throwArgumentError("invalid raw transaction","rawTransaction",e);const r={nonce:w(t[0]).toNumber(),gasPrice:w(t[1]),gasLimit:w(t[2]),to:I(t[3]),value:w(t[4]),data:t[5],chainId:0};if(6===t.length)return r;try{r.v=o.a.from(t[6]).toNumber()}catch(e){return console.log(e),r}if(r.r=Object(c.hexZeroPad)(t[7],32),r.s=Object(c.hexZeroPad)(t[8],32),o.a.from(r.r).isZero()&&o.a.from(r.s).isZero())r.chainId=r.v,r.v=0;else{r.chainId=Math.floor((r.v-35)/2),r.chainId<0&&(r.chainId=0);let n=r.v-27;const o=t.slice(0,6);0!==r.chainId&&(o.push(Object(c.hexlify)(r.chainId)),o.push("0x"),o.push("0x"),n-=2*r.chainId+8);const A=Object(f.keccak256)(h.encode(o));try{r.from=Q(A,{r:Object(c.hexlify)(r.r),s:Object(c.hexlify)(r.s),recoveryParam:n})}catch(e){console.log(e)}r.hash=Object(f.keccak256)(e)}return r.type=null,r}(t);switch(t[0]){case 1:return function(e){const t=h.decode(e.slice(1));8!==t.length&&11!==t.length&&y.throwArgumentError("invalid component count for transaction type: 1","payload",Object(c.hexlify)(e));const r={type:1,chainId:w(t[0]).toNumber(),nonce:w(t[1]).toNumber(),gasPrice:w(t[2]),gasLimit:w(t[3]),to:I(t[4]),value:w(t[5]),data:t[6],accessList:M(t[7])};return 8===t.length||(r.hash=Object(f.keccak256)(e),F(r,t.slice(8),x)),r}(t);case 2:return function(e){const t=h.decode(e.slice(1));9!==t.length&&12!==t.length&&y.throwArgumentError("invalid component count for transaction type: 2","payload",Object(c.hexlify)(e));const r=w(t[2]),n=w(t[3]),o={type:2,chainId:w(t[0]).toNumber(),nonce:w(t[1]).toNumber(),maxPriorityFeePerGas:r,maxFeePerGas:n,gasPrice:null,gasLimit:w(t[4]),to:I(t[5]),value:w(t[6]),data:t[7],accessList:M(t[8])};return 9===t.length||(o.hash=Object(f.keccak256)(e),F(o,t.slice(9),k)),o}(t)}return y.throwError(`unsupported transaction type: ${t[0]}`,m.Logger.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:t[0]})}},,function(e,t){var r,n,o=e.exports={};function c(){throw new Error("setTimeout has not been defined")}function A(){throw new Error("clearTimeout has not been defined")}function f(e){if(r===setTimeout)return setTimeout(e,0);if((r===c||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:c}catch(e){r=c}try{n="function"==typeof clearTimeout?clearTimeout:A}catch(e){n=A}}();var l,h=[],d=!1,m=-1;function y(){d&&l&&(d=!1,l.length?h=l.concat(h):m=-1,h.length&&v())}function v(){if(!d){var e=f(y);d=!0;for(var t=h.length;t;){for(l=h,h=[];++m1)for(var i=1;ithis.wordSize&&l.throwError("value out-of-bounds",A.Logger.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=Object(n.concat)([this._padding.slice(t.length%this.wordSize),t])),t}writeValue(e){return this._writeData(this._getValue(e))}writeUpdatableValue(){const e=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,t=>{this._data[e]=this._getValue(t)}}}class y{constructor(data,e,t,r){Object(c.defineReadOnly)(this,"_data",Object(n.arrayify)(data)),Object(c.defineReadOnly)(this,"wordSize",e||32),Object(c.defineReadOnly)(this,"_coerceFunc",t),Object(c.defineReadOnly)(this,"allowLoose",r),this._offset=0}get data(){return Object(n.hexlify)(this._data)}get consumed(){return this._offset}static coerce(e,t){let r=e.match("^u?int([0-9]+)$");return r&&parseInt(r[1])<=48&&(t=t.toNumber()),t}coerce(e,t){return this._coerceFunc?this._coerceFunc(e,t):y.coerce(e,t)}_peekBytes(e,t,r){let n=Math.ceil(t/this.wordSize)*this.wordSize;return this._offset+n>this._data.length&&(this.allowLoose&&r&&this._offset+t<=this._data.length?n=t:l.throwError("data out-of-bounds",A.Logger.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+n})),this._data.slice(this._offset,this._offset+n)}subReader(e){return new y(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(e,t){let r=this._peekBytes(0,e,!!t);return this._offset+=r.length,r.slice(0,e)}readValue(){return o.a.from(this.readBytes(this.wordSize))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));const n=1<<30;class o{constructor(e){this.buffers=[],this.byteLength=e;for(let i=0;i0;){const e=f+l>n?n-f:l,t=new Uint8Array(this.buffers[p].buffer,this.buffers[p].byteOffset+f,e);if(e==r)return t.slice();A||(A=r<=n?new Uint8Array(r):new o(r)),A.set(t,r-l),l-=e,p++,f=0}return A}set(e,t){void 0===t&&(t=0);const r=e.byteLength;if(0==r)return;const c=Math.floor(t/n);if(c==Math.floor((t+r-1)/n))return e instanceof o&&1==e.buffers.length?this.buffers[c].set(e.buffers[0],t%n):this.buffers[c].set(e,t%n);let p=c,A=t%n,f=r;for(;f>0;){const t=A+f>n?n-A:f,o=e.slice(r-f,r-f+t);new Uint8Array(this.buffers[p].buffer,this.buffers[p].byteOffset+A,t).set(o),f-=t,p++,A=0}}}},function(e,t,r){"use strict";r.r(t),r.d(t,"defaultPath",(function(){return S})),r.d(t,"HDNode",(function(){return k})),r.d(t,"mnemonicToSeed",(function(){return x})),r.d(t,"mnemonicToEntropy",(function(){return O})),r.d(t,"entropyToMnemonic",(function(){return F})),r.d(t,"isValidMnemonic",(function(){return R})),r.d(t,"getAccountPath",(function(){return N}));var n=r(154),o=r(1),c=r(20),A=r(63),f=r(1234),l=r(3),h=r(107),d=r(170),m=r(345),y=r(53),v=r(1227);const I=new(r(5).Logger)("hdnode/5.4.0"),w=c.a.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),E=Object(A.f)("Bitcoin seed"),C=2147483648;function B(e){return(1<=256)throw new Error("Depth too large!");return _(Object(o.concat)([null!=this.privateKey?"0x0488ADE4":"0x0488B21E",Object(o.hexlify)(this.depth),this.parentFingerprint,Object(o.hexZeroPad)(Object(o.hexlify)(this.index),4),this.chainCode,null!=this.privateKey?Object(o.concat)(["0x00",this.privateKey]):this.publicKey]))}neuter(){return new k(M,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)}_derive(e){if(e>4294967295)throw new Error("invalid index - "+String(e));let path=this.path;path&&(path+="/"+(2147483647&e));const data=new Uint8Array(37);if(e&C){if(!this.privateKey)throw new Error("cannot derive child of neutered node");data.set(Object(o.arrayify)(this.privateKey),1),path&&(path+="'")}else data.set(Object(o.arrayify)(this.publicKey));for(let i=24;i>=0;i-=8)data[33+(i>>3)]=e>>24-i&255;const t=Object(o.arrayify)(Object(d.a)(m.a.sha512,this.chainCode,data)),r=t.slice(0,32),n=t.slice(32);let A=null,f=null;if(this.privateKey)A=Q(c.a.from(r).add(this.privateKey).mod(w));else{f=new h.SigningKey(Object(o.hexlify)(r))._addPoint(this.publicKey)}let l=path;const y=this.mnemonic;return y&&(l=Object.freeze({phrase:y.phrase,path:path,locale:y.locale||"en"})),new k(M,A,f,this.fingerprint,Q(n),e,this.depth+1,l)}derivePath(path){const e=path.split("/");if(0===e.length||"m"===e[0]&&0!==this.depth)throw new Error("invalid path - "+path);"m"===e[0]&&e.shift();let t=this;for(let i=0;i=C)throw new Error("invalid path index - "+component);t=t._derive(C+e)}else{if(!component.match(/^[0-9]+$/))throw new Error("invalid path component - "+component);{const e=parseInt(component);if(e>=C)throw new Error("invalid path index - "+component);t=t._derive(e)}}}return t}static _fromSeed(e,t){const r=Object(o.arrayify)(e);if(r.length<16||r.length>64)throw new Error("invalid seed");const n=Object(o.arrayify)(Object(d.a)(m.a.sha512,E,r));return new k(M,Q(n.slice(0,32)),null,"0x00000000",Q(n.slice(32)),0,0,t)}static fromMnemonic(e,t,r){return e=F(O(e,r=D(r)),r),k._fromSeed(x(e,t),{phrase:e,path:"m",locale:r.locale})}static fromSeed(e){return k._fromSeed(e,null)}static fromExtendedKey(e){const t=n.Base58.decode(e);82===t.length&&_(t.slice(0,78))===e||I.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");const r=t[4],c=Object(o.hexlify)(t.slice(5,9)),A=parseInt(Object(o.hexlify)(t.slice(9,13)).substring(2),16),f=Object(o.hexlify)(t.slice(13,45)),l=t.slice(45,78);switch(Object(o.hexlify)(t.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new k(M,null,Object(o.hexlify)(l),c,f,A,r,null);case"0x0488ade4":case"0x04358394 ":if(0!==l[0])break;return new k(M,Object(o.hexlify)(l.slice(1)),null,c,f,A,r,null)}return I.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}function x(e,t){t||(t="");const r=Object(A.f)("mnemonic"+t,A.a.NFKD);return Object(f.a)(Object(A.f)(e,A.a.NFKD),r,2048,64,"sha512")}function O(e,t){t=D(t),I.checkNormalize();const r=t.split(e);if(r.length%3!=0)throw new Error("invalid mnemonic");const n=Object(o.arrayify)(new Uint8Array(Math.ceil(11*r.length/8)));let c=0;for(let i=0;i>3]|=1<<7-c%8),c++}const A=32*r.length/3,f=B(r.length/3);if((Object(o.arrayify)(Object(d.c)(n.slice(0,A/8)))[0]&f)!==(n[n.length-1]&f))throw new Error("invalid checksum");return Object(o.hexlify)(n.slice(0,A/8))}function F(e,t){if(t=D(t),(e=Object(o.arrayify)(e)).length%4!=0||e.length<16||e.length>32)throw new Error("invalid entropy");const r=[0];let n=11;for(let i=0;i8?(r[r.length-1]<<=8,r[r.length-1]|=e[i],n-=8):(r[r.length-1]<<=n,r[r.length-1]|=e[i]>>8-n,r.push(e[i]&(1<<8-n)-1),n+=3);const c=e.length/4,A=Object(o.arrayify)(Object(d.c)(e))[0]&B(c);return r[r.length-1]<<=c,r[r.length-1]|=A>>8-c,t.join(r.map((e=>t.getWord(e))))}function R(e,t){try{return O(e,t),!0}catch(e){}return!1}function N(e){return("number"!=typeof e||e<0||e>=C||e%1)&&I.throwArgumentError("invalid account index","index",e),`m/44'/60'/${e}'/0/0`}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c})),r.d(t,"c",(function(){return A})),r.d(t,"b",(function(){return l})),r.d(t,"f",(function(){return d})),r.d(t,"d",(function(){return y})),r.d(t,"e",(function(){return v})),r.d(t,"h",(function(){return I})),r.d(t,"g",(function(){return w}));var n=r(1);const o=new(r(5).Logger)("strings/5.4.0");var c,A;function f(e,t,r,output,n){if(e===A.BAD_PREFIX||e===A.UNEXPECTED_CONTINUE){let i=0;for(let e=t+1;e>6==2;e++)i++;return i}return e===A.OVERRUN?r.length-t-1:0}!function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"}(c||(c={})),function(e){e.UNEXPECTED_CONTINUE="unexpected continuation byte",e.BAD_PREFIX="bad codepoint prefix",e.OVERRUN="string overrun",e.MISSING_CONTINUE="missing continuation byte",e.OUT_OF_RANGE="out of UTF-8 range",e.UTF16_SURROGATE="UTF-16 surrogate",e.OVERLONG="overlong representation"}(A||(A={}));const l=Object.freeze({error:function(e,t,r,output,n){return o.throwArgumentError(`invalid codepoint at offset ${t}; ${e}`,"bytes",r)},ignore:f,replace:function(e,t,r,output,n){return e===A.OVERLONG?(output.push(n),0):(output.push(65533),f(e,t,r))}});function h(e,t){null==t&&(t=l.error),e=Object(n.arrayify)(e);const r=[];let i=0;for(;i>7==0){r.push(n);continue}let o=null,c=null;if(192==(224&n))o=1,c=127;else if(224==(240&n))o=2,c=2047;else{if(240!=(248&n)){i+=t(128==(192&n)?A.UNEXPECTED_CONTINUE:A.BAD_PREFIX,i-1,e,r);continue}o=3,c=65535}if(i-1+o>=e.length){i+=t(A.OVERRUN,i-1,e,r);continue}let f=n&(1<<8-o-1)-1;for(let n=0;n1114111?i+=t(A.OUT_OF_RANGE,i-1-o,e,r,f):f>=55296&&f<=57343?i+=t(A.UTF16_SURROGATE,i-1-o,e,r,f):f<=c?i+=t(A.OVERLONG,i-1-o,e,r,f):r.push(f))}return r}function d(e,form=c.current){form!=c.current&&(o.checkNormalize(),e=e.normalize(form));let t=[];for(let i=0;i>6|192),t.push(63&r|128);else if(55296==(64512&r)){i++;const n=e.charCodeAt(i);if(i>=e.length||56320!=(64512&n))throw new Error("invalid utf-8 string");const o=65536+((1023&r)<<10)+(1023&n);t.push(o>>18|240),t.push(o>>12&63|128),t.push(o>>6&63|128),t.push(63&o|128)}else t.push(r>>12|224),t.push(r>>6&63|128),t.push(63&r|128)}return Object(n.arrayify)(t)}function m(e){const t="0000"+e.toString(16);return"\\u"+t.substring(t.length-4)}function y(e,t){return'"'+h(e,t).map((e=>{if(e<256){switch(e){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(e>=32&&e<127)return String.fromCharCode(e)}return e<=65535?m(e):m(55296+((e-=65536)>>10&1023))+m(56320+(1023&e))})).join("")+'"'}function v(e){return e.map((e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10&1023),56320+(1023&e))))).join("")}function I(e,t){return v(h(e,t))}function w(e,form=c.current){return h(d(e,form))}},function(e,t,r){"use strict";var n=r(24),o=r(525).includes,c=r(232);n({target:"Array",proto:!0},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),c("includes")},function(e,t,r){"use strict";var n=r(24),o=r(49),c=r(226),A=r(79),f=r(112),l=r(93),h=r(228),d=r(266),m=r(229),y=r(56),v=r(222),I=y("isConcatSpreadable"),w=9007199254740991,E="Maximum allowed index exceeded",C=v>=51||!o((function(){var e=[];return e[I]=!1,e.concat()[0]!==e})),B=m("concat"),Q=function(e){if(!A(e))return!1;var t=e[I];return void 0!==t?!!t:c(e)};n({target:"Array",proto:!0,forced:!C||!B},{concat:function(e){var i,t,r,n,o,c=f(this),A=d(c,0),m=0;for(i=-1,r=arguments.length;iw)throw TypeError(E);for(t=0;t=w)throw TypeError(E);h(A,m++,o)}return A.length=m,A}})},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=Object.prototype,o=n.toString,c=n.hasOwnProperty,A=Function.prototype.toString,f=new Map;function l(a,b){try{return h(a,b)}finally{f.clear()}}function h(a,b){if(a===b)return!0;var e,t,r,n=o.call(a);if(n!==o.call(b))return!1;switch(n){case"[object Array]":if(a.length!==b.length)return!1;case"[object Object]":if(v(a,b))return!0;var f=d(a),l=d(b),m=f.length;if(m!==l.length)return!1;for(var I=0;I=0&&e.indexOf(t,r)===r))}return!1}function d(e){return Object.keys(e).filter(m,e)}function m(e){return void 0!==this[e]}var y="{ [native code] }";function v(a,b){var e=f.get(a);if(e){if(e.has(b))return!0}else f.set(a,e=new Set);return e.add(b),!1}},function(e,t,r){"use strict";!function(t){function r(e){return parseInt(e)===e}function n(e){if(!r(e.length))return!1;for(var i=0;i255)return!1;return!0}function o(e,t){if(e.buffer&&ArrayBuffer.isView(e)&&"Uint8Array"===e.name)return t&&(e=e.slice?e.slice():Array.prototype.slice.call(e)),e;if(Array.isArray(e)){if(!n(e))throw new Error("Array contains invalid value: "+e);return new Uint8Array(e)}if(r(e.length)&&n(e))return new Uint8Array(e);throw new Error("unsupported array-like object")}function c(e){return new Uint8Array(e)}function A(e,t,r,n,o){null==n&&null==o||(e=e.slice?e.slice(n,o):Array.prototype.slice.call(e,n,o)),t.set(e,r)}var f,l={toBytes:function(text){var e=[],i=0;for(text=encodeURI(text);i191&&r<224?(t.push(String.fromCharCode((31&r)<<6|63&e[i+1])),i+=2):(t.push(String.fromCharCode((15&r)<<12|(63&e[i+1])<<6|63&e[i+2])),i+=3)}return t.join("")}},h=(f="0123456789abcdef",{toBytes:function(text){for(var e=[],i=0;i>4]+f[15&r])}return t.join("")}}),d={16:10,24:12,32:14},m=[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],y=[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],v=[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],I=[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],w=[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],C=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],B=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],Q=[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],_=[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],D=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],M=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],S=[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],k=[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],x=[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 O(e){for(var t=[],i=0;i>2,this._Ke[t][i%4]=o[i],this._Kd[e-t][i%4]=o[i];for(var c,A=0,f=n;f>16&255]<<24^y[c>>8&255]<<16^y[255&c]<<8^y[c>>24&255]^m[A]<<24,A+=1,8!=n)for(i=1;i>8&255]<<8^y[c>>16&255]<<16^y[c>>24&255]<<24;for(i=n/2+1;i>2,h=f%4,this._Ke[l][h]=o[i],this._Kd[e-l][h]=o[i++],f++}for(var l=1;l>24&255]^S[c>>16&255]^k[c>>8&255]^x[255&c]},F.prototype.encrypt=function(e){if(16!=e.length)throw new Error("invalid plaintext size (must be 16 bytes)");for(var t=this._Ke.length-1,a=[0,0,0,0],r=O(e),i=0;i<4;i++)r[i]^=this._Ke[0][i];for(var n=1;n>24&255]^w[r[(i+1)%4]>>16&255]^E[r[(i+2)%4]>>8&255]^C[255&r[(i+3)%4]]^this._Ke[n][i];r=a.slice()}var o,A=c(16);for(i=0;i<4;i++)o=this._Ke[t][i],A[4*i]=255&(y[r[i]>>24&255]^o>>24),A[4*i+1]=255&(y[r[(i+1)%4]>>16&255]^o>>16),A[4*i+2]=255&(y[r[(i+2)%4]>>8&255]^o>>8),A[4*i+3]=255&(y[255&r[(i+3)%4]]^o);return A},F.prototype.decrypt=function(e){if(16!=e.length)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var t=this._Kd.length-1,a=[0,0,0,0],r=O(e),i=0;i<4;i++)r[i]^=this._Kd[0][i];for(var n=1;n>24&255]^Q[r[(i+3)%4]>>16&255]^_[r[(i+2)%4]>>8&255]^D[255&r[(i+1)%4]]^this._Kd[n][i];r=a.slice()}var o,A=c(16);for(i=0;i<4;i++)o=this._Kd[t][i],A[4*i]=255&(v[r[i]>>24&255]^o>>24),A[4*i+1]=255&(v[r[(i+3)%4]>>16&255]^o>>16),A[4*i+2]=255&(v[r[(i+2)%4]>>8&255]^o>>8),A[4*i+3]=255&(v[255&r[(i+1)%4]]^o);return A};var R=function(e){if(!(this instanceof R))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new F(e)};R.prototype.encrypt=function(e){if((e=o(e)).length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=c(e.length),r=c(16),i=0;i=0;--t)this._counter[t]=e%256,e>>=8},L.prototype.setBytes=function(e){if(16!=(e=o(e,!0)).length)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=e},L.prototype.increment=function(){for(var i=15;i>=0;i--){if(255!==this._counter[i]){this._counter[i]++;break}this._counter[i]=0}};var j=function(e,t){if(!(this instanceof j))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",t instanceof L||(t=new L(t)),this._counter=t,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new F(e)};j.prototype.encrypt=function(e){for(var t=o(e,!0),i=0;i16)throw new Error("PKCS#7 padding byte out of range");for(var t=data.length-e,i=0;i=0||"tuple"===e)&&d[t])return!0;return(h[t]||"payable"===t)&&f.throwArgumentError("invalid modifier","name",t),!1}function y(object,e){for(let t in e)Object(o.defineReadOnly)(object,t,e[t])}const v=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),I=new RegExp(/^(.*)\[([0-9]*)\]$/);class w{constructor(e,t){e!==l&&f.throwError("use fromString",c.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),y(this,t);let r=this.type.match(I);y(this,r?{arrayLength:parseInt(r[2]||"-1"),arrayChildren:w.fromObject({type:r[1],components:this.components}),baseType:"array"}:{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}format(e){if(e||(e=v.sighash),v[e]||f.throwArgumentError("invalid format type","format",e),e===v.json){let t={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"==typeof this.indexed&&(t.indexed=this.indexed),this.components&&(t.components=this.components.map((t=>JSON.parse(t.format(e))))),JSON.stringify(t)}let t="";return"array"===this.baseType?(t+=this.arrayChildren.format(e),t+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(e!==v.sighash&&(t+=this.type),t+="("+this.components.map((t=>t.format(e))).join(e===v.full?", ":",")+")"):t+=this.type,e!==v.sighash&&(!0===this.indexed&&(t+=" indexed"),e===v.full&&this.name&&(t+=" "+this.name)),t}static from(e,t){return"string"==typeof e?w.fromString(e,t):w.fromObject(e)}static fromObject(e){return w.isParamType(e)?e:new w(l,{name:e.name||null,type:O(e.type),indexed:null==e.indexed?null:!!e.indexed,components:e.components?e.components.map(w.fromObject):null})}static fromString(e,t){return r=function(param,e){let t=param;function r(i){f.throwArgumentError(`unexpected character at position ${i}`,"param",param)}function n(t){let r={type:"",name:"",parent:t,state:{allowType:!0}};return e&&(r.indexed=!1),r}param=param.replace(/\s/g," ");let o={type:"",name:"",state:{allowType:!0}},c=o;for(let i=0;iw.fromString(param,t)))}class C{constructor(e,t){e!==l&&f.throwError("use a static from method",c.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),y(this,t),this._isFragment=!0,Object.freeze(this)}static from(e){return C.isFragment(e)?e:"string"==typeof e?C.fromString(e):C.fromObject(e)}static fromObject(e){if(C.isFragment(e))return e;switch(e.type){case"function":return S.fromObject(e);case"event":return B.fromObject(e);case"constructor":return M.fromObject(e);case"error":return x.fromObject(e);case"fallback":case"receive":return null}return f.throwArgumentError("invalid fragment object","value",e)}static fromString(e){return"event"===(e=(e=(e=e.replace(/\s/g," ")).replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," ")).trim()).split(" ")[0]?B.fromString(e.substring(5).trim()):"function"===e.split(" ")[0]?S.fromString(e.substring(8).trim()):"constructor"===e.split("(")[0].trim()?M.fromString(e.trim()):"error"===e.split(" ")[0]?x.fromString(e.substring(5).trim()):f.throwArgumentError("unsupported fragment","value",e)}static isFragment(e){return!(!e||!e._isFragment)}}class B extends C{format(e){if(e||(e=v.sighash),v[e]||f.throwArgumentError("invalid format type","format",e),e===v.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map((input=>JSON.parse(input.format(e))))});let t="";return e!==v.sighash&&(t+="event "),t+=this.name+"("+this.inputs.map((input=>input.format(e))).join(e===v.full?", ":",")+") ",e!==v.sighash&&this.anonymous&&(t+="anonymous "),t.trim()}static from(e){return"string"==typeof e?B.fromString(e):B.fromObject(e)}static fromObject(e){if(B.isEventFragment(e))return e;"event"!==e.type&&f.throwArgumentError("invalid event object","value",e);const t={name:R(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(w.fromObject):[],type:"event"};return new B(l,t)}static fromString(e){let t=e.match(N);t||f.throwArgumentError("invalid event string","value",e);let r=!1;return t[3].split(" ").forEach((e=>{switch(e.trim()){case"anonymous":r=!0;break;case"":break;default:f.warn("unknown modifier: "+e)}})),B.fromObject({name:t[1].trim(),anonymous:r,inputs:E(t[2],!0),type:"event"})}static isEventFragment(e){return e&&e._isFragment&&"event"===e.type}}function Q(e,t){t.gas=null;let r=e.split("@");return 1!==r.length?(r.length>2&&f.throwArgumentError("invalid human-readable ABI signature","value",e),r[1].match(/^[0-9]+$/)||f.throwArgumentError("invalid human-readable ABI signature gas","value",e),t.gas=n.a.from(r[1]),r[0]):e}function _(e,t){t.constant=!1,t.payable=!1,t.stateMutability="nonpayable",e.split(" ").forEach((e=>{switch(e.trim()){case"constant":t.constant=!0;break;case"payable":t.payable=!0,t.stateMutability="payable";break;case"nonpayable":t.payable=!1,t.stateMutability="nonpayable";break;case"pure":t.constant=!0,t.stateMutability="pure";break;case"view":t.constant=!0,t.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+e)}}))}function D(e){let t={constant:!1,payable:!0,stateMutability:"payable"};return null!=e.stateMutability?(t.stateMutability=e.stateMutability,t.constant="view"===t.stateMutability||"pure"===t.stateMutability,null!=e.constant&&!!e.constant!==t.constant&&f.throwArgumentError("cannot have constant function with mutability "+t.stateMutability,"value",e),t.payable="payable"===t.stateMutability,null!=e.payable&&!!e.payable!==t.payable&&f.throwArgumentError("cannot have payable function with mutability "+t.stateMutability,"value",e)):null!=e.payable?(t.payable=!!e.payable,null!=e.constant||t.payable||"constructor"===e.type||f.throwArgumentError("unable to determine stateMutability","value",e),t.constant=!!e.constant,t.constant?t.stateMutability="view":t.stateMutability=t.payable?"payable":"nonpayable",t.payable&&t.constant&&f.throwArgumentError("cannot have constant payable function","value",e)):null!=e.constant?(t.constant=!!e.constant,t.payable=!t.constant,t.stateMutability=t.constant?"view":"payable"):"constructor"!==e.type&&f.throwArgumentError("unable to determine stateMutability","value",e),t}class M extends C{format(e){if(e||(e=v.sighash),v[e]||f.throwArgumentError("invalid format type","format",e),e===v.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(e))))});e===v.sighash&&f.throwError("cannot format a constructor for sighash",c.Logger.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let t="constructor("+this.inputs.map((input=>input.format(e))).join(e===v.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "),t.trim()}static from(e){return"string"==typeof e?M.fromString(e):M.fromObject(e)}static fromObject(e){if(M.isConstructorFragment(e))return e;"constructor"!==e.type&&f.throwArgumentError("invalid constructor object","value",e);let t=D(e);t.constant&&f.throwArgumentError("constructor cannot be constant","value",e);const r={name:null,type:e.type,inputs:e.inputs?e.inputs.map(w.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?n.a.from(e.gas):null};return new M(l,r)}static fromString(e){let t={type:"constructor"},r=(e=Q(e,t)).match(N);return r&&"constructor"===r[1].trim()||f.throwArgumentError("invalid constructor string","value",e),t.inputs=E(r[2].trim(),!1),_(r[3].trim(),t),M.fromObject(t)}static isConstructorFragment(e){return e&&e._isFragment&&"constructor"===e.type}}class S extends M{format(e){if(e||(e=v.sighash),v[e]||f.throwArgumentError("invalid format type","format",e),e===v.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(e)))),outputs:this.outputs.map((output=>JSON.parse(output.format(e))))});let t="";return e!==v.sighash&&(t+="function "),t+=this.name+"("+this.inputs.map((input=>input.format(e))).join(e===v.full?", ":",")+") ",e!==v.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "):this.constant&&(t+="view "),this.outputs&&this.outputs.length&&(t+="returns ("+this.outputs.map((output=>output.format(e))).join(", ")+") "),null!=this.gas&&(t+="@"+this.gas.toString()+" ")),t.trim()}static from(e){return"string"==typeof e?S.fromString(e):S.fromObject(e)}static fromObject(e){if(S.isFunctionFragment(e))return e;"function"!==e.type&&f.throwArgumentError("invalid function object","value",e);let t=D(e);const r={type:e.type,name:R(e.name),constant:t.constant,inputs:e.inputs?e.inputs.map(w.fromObject):[],outputs:e.outputs?e.outputs.map(w.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?n.a.from(e.gas):null};return new S(l,r)}static fromString(e){let t={type:"function"},r=(e=Q(e,t)).split(" returns ");r.length>2&&f.throwArgumentError("invalid function string","value",e);let n=r[0].match(N);if(n||f.throwArgumentError("invalid function signature","value",e),t.name=n[1].trim(),t.name&&R(t.name),t.inputs=E(n[2],!1),_(n[3].trim(),t),r.length>1){let n=r[1].match(N);""==n[1].trim()&&""==n[3].trim()||f.throwArgumentError("unexpected tokens","value",e),t.outputs=E(n[2],!1)}else t.outputs=[];return S.fromObject(t)}static isFunctionFragment(e){return e&&e._isFragment&&"function"===e.type}}function k(e){const t=e.format();return"Error(string)"!==t&&"Panic(uint256)"!==t||f.throwArgumentError(`cannot specify user defined ${t} error`,"fragment",e),e}class x extends C{format(e){if(e||(e=v.sighash),v[e]||f.throwArgumentError("invalid format type","format",e),e===v.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map((input=>JSON.parse(input.format(e))))});let t="";return e!==v.sighash&&(t+="error "),t+=this.name+"("+this.inputs.map((input=>input.format(e))).join(e===v.full?", ":",")+") ",t.trim()}static from(e){return"string"==typeof e?x.fromString(e):x.fromObject(e)}static fromObject(e){if(x.isErrorFragment(e))return e;"error"!==e.type&&f.throwArgumentError("invalid error object","value",e);const t={type:e.type,name:R(e.name),inputs:e.inputs?e.inputs.map(w.fromObject):[]};return k(new x(l,t))}static fromString(e){let t={type:"error"},r=e.match(N);return r||f.throwArgumentError("invalid error signature","value",e),t.name=r[1].trim(),t.name&&R(t.name),t.inputs=E(r[2],!1),k(x.fromObject(t))}static isErrorFragment(e){return e&&e._isFragment&&"error"===e.type}}function O(e){return e.match(/^uint($|[^1-9])/)?e="uint256"+e.substring(4):e.match(/^int($|[^1-9])/)&&(e="int256"+e.substring(3)),e}const F=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function R(e){return e&&e.match(F)||f.throwArgumentError(`invalid identifier "${e}"`,"value",e),e}const N=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$")},function(e,t,r){"use strict";var n=r(24),o=r(226),c=r(264),A=r(79),f=r(263),l=r(93),h=r(123),d=r(228),m=r(56),y=r(229)("slice"),v=m("species"),I=[].slice,w=Math.max;n({target:"Array",proto:!0,forced:!y},{slice:function(e,t){var r,n,m,y=h(this),E=l(y.length),C=f(e,E),B=f(void 0===t?E:t,E);if(o(y)&&(r=y.constructor,(c(r)&&(r===Array||o(r.prototype))||A(r)&&null===(r=r[v]))&&(r=void 0),r===Array||void 0===r))return I.call(y,C,B);for(n=new(void 0===r?Array:r)(w(B-C,0)),m=0;C2)if(43===(t=(l=C(l)).charCodeAt(0))||45===t){if(88===(r=l.charCodeAt(2))||120===r)return NaN}else if(48===t){switch(l.charCodeAt(1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+l}for(A=(c=l.slice(2)).length,f=0;fo)return NaN;return parseInt(c,n)}return+l};if(c(B,!Q(" 0o1")||!Q("0b1")||Q("+0x1"))){for(var S,k=function(e){var t=arguments.length<1?0:e,r=this;return r instanceof k&&(D?y((function(){_.valueOf.call(r)})):l(r)!=B)?h(new Q(M(t)),r,k):M(t)},x=n?I(Q):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),O=0;x.length>O;O++)f(Q,S=x[O])&&!f(k,S)&&E(k,S,w(Q,S));k.prototype=_,_.constructor=k,A(o,B,k)}},function(e,t,r){"use strict";r.r(t);var n=r(408);r.d(t,"formatBytes32String",(function(){return n.a})),r.d(t,"parseBytes32String",(function(){return n.b}));var o=r(355);r.d(t,"nameprep",(function(){return o.a}));var c=r(63);r.d(t,"_toEscapedUtf8String",(function(){return c.d})),r.d(t,"toUtf8Bytes",(function(){return c.f})),r.d(t,"toUtf8CodePoints",(function(){return c.g})),r.d(t,"toUtf8String",(function(){return c.h})),r.d(t,"Utf8ErrorFuncs",(function(){return c.b})),r.d(t,"Utf8ErrorReason",(function(){return c.c})),r.d(t,"UnicodeNormalizationForm",(function(){return c.a}))},function(e,t,r){"use strict";r.r(t),r.d(t,"_fetchData",(function(){return I})),r.d(t,"fetchJson",(function(){return w})),r.d(t,"poll",(function(){return E}));var n=r(406),o=r(1),c=r(3),A=r(63),f=r(5);var l=function(e,t,r,n){return new(r||(r=Promise))((function(o,c){function A(e){try{l(n.next(e))}catch(e){c(e)}}function f(e){try{l(n.throw(e))}catch(e){c(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(A,f)}l((n=n.apply(e,t||[])).next())}))};function h(e,t){return l(this,void 0,void 0,(function*(){null==t&&(t={});const r={method:t.method||"GET",headers:t.headers||{},body:t.body||void 0,mode:"cors",cache:"no-cache",credentials:"same-origin",redirect:"follow",referrer:"client"},n=yield fetch(e,r),body=yield n.arrayBuffer(),c={};return n.headers.forEach?n.headers.forEach(((e,t)=>{c[t.toLowerCase()]=e})):n.headers.keys().forEach((e=>{c[e.toLowerCase()]=n.headers.get(e)})),{headers:c,statusCode:n.status,statusMessage:n.statusText,body:Object(o.arrayify)(new Uint8Array(body))}}))}var d=function(e,t,r,n){return new(r||(r=Promise))((function(o,c){function A(e){try{l(n.next(e))}catch(e){c(e)}}function f(e){try{l(n.throw(e))}catch(e){c(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(A,f)}l((n=n.apply(e,t||[])).next())}))};const m=new f.Logger("web/5.4.0");function y(e){return new Promise((t=>{setTimeout(t,e)}))}function v(e,t){if(null==e)return null;if("string"==typeof e)return e;if(Object(o.isBytesLike)(e)){if(t&&("text"===t.split("/")[0]||"application/json"===t.split(";")[0].trim()))try{return Object(A.h)(e)}catch(e){}return Object(o.hexlify)(e)}return e}function I(e,body,t){const r="object"==typeof e&&null!=e.throttleLimit?e.throttleLimit:12;m.assertArgument(r>0&&r%1==0,"invalid connection throttle limit","connection.throttleLimit",r);const o="object"==typeof e?e.throttleCallback:null,c="object"==typeof e&&"number"==typeof e.throttleSlotInterval?e.throttleSlotInterval:100;m.assertArgument(c>0&&c%1==0,"invalid connection throttle slot interval","connection.throttleSlotInterval",c);const l={};let I=null;const w={method:"GET"};let E=!1,C=12e4;if("string"==typeof e)I=e;else if("object"==typeof e){if(null!=e&&null!=e.url||m.throwArgumentError("missing URL","connection.url",e),I=e.url,"number"==typeof e.timeout&&e.timeout>0&&(C=e.timeout),e.headers)for(const t in e.headers)l[t.toLowerCase()]={key:t,value:String(e.headers[t])},["if-none-match","if-modified-since"].indexOf(t.toLowerCase())>=0&&(E=!0);if(w.allowGzip=!!e.allowGzip,null!=e.user&&null!=e.password){"https:"!==I.substring(0,6)&&!0!==e.allowInsecureAuthentication&&m.throwError("basic authentication requires a secure https url",f.Logger.errors.INVALID_ARGUMENT,{argument:"url",url:I,user:e.user,password:"[REDACTED]"});const t=e.user+":"+e.password;l.authorization={key:"Authorization",value:"Basic "+Object(n.b)(Object(A.f)(t))}}}body&&(w.method="POST",w.body=body,null==l["content-type"]&&(l["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==l["content-length"]&&(l["content-length"]={key:"Content-Length",value:String(body.length)}));const B={};Object.keys(l).forEach((e=>{const header=l[e];B[header.key]=header.value})),w.headers=B;const Q=function(){let e=null;return{promise:new Promise((function(t,r){C&&(e=setTimeout((()=>{null!=e&&(e=null,r(m.makeError("timeout",f.Logger.errors.TIMEOUT,{requestBody:v(w.body,B["content-type"]),requestMethod:w.method,timeout:C,url:I})))}),C))})),cancel:function(){null!=e&&(clearTimeout(e),e=null)}}}(),_=function(){return d(this,void 0,void 0,(function*(){for(let e=0;e=300)&&(Q.cancel(),m.throwError("bad response",f.Logger.errors.SERVER_ERROR,{status:n.statusCode,headers:n.headers,body:v(body,n.headers?n.headers["content-type"]:null),requestBody:v(w.body,B["content-type"]),requestMethod:w.method,url:I})),t)try{const e=yield t(body,n);return Q.cancel(),e}catch(t){if(t.throttleRetry&&e"content-type"===e.toLowerCase())).length||(r.headers=Object(c.shallowCopy)(r.headers),r.headers["content-type"]="application/json")}else r.headers={"content-type":"application/json"};e=r}return I(e,body,((e,t)=>{let n=null;if(null!=e)try{n=JSON.parse(Object(A.h)(e))}catch(t){m.throwError("invalid JSON",f.Logger.errors.SERVER_ERROR,{body:e,error:t})}return r&&(n=r(n,t)),n}))}function E(e,t){return t||(t={}),null==(t=Object(c.shallowCopy)(t)).floor&&(t.floor=0),null==t.ceiling&&(t.ceiling=1e4),null==t.interval&&(t.interval=250),new Promise((function(r,n){let o=null,c=!1;const A=()=>!c&&(c=!0,o&&clearTimeout(o),!0);t.timeout&&(o=setTimeout((()=>{A()&&n(new Error("timeout"))}),t.timeout));const f=t.retryLimit;let l=0;!function o(){return e().then((function(e){if(void 0!==e)A()&&r(e);else if(t.oncePoll)t.oncePoll.once("poll",o);else if(t.onceBlock)t.onceBlock.once("block",o);else if(!c){if(l++,l>f)return void(A()&&n(new Error("retry limit reached")));let e=t.interval*parseInt(String(Math.random()*Math.pow(2,l)));et.ceiling&&(e=t.ceiling),setTimeout(o,e)}return null}),(function(e){A()&&n(e)}))}()}))}},function(e,t,r){"use strict";r.r(t),r.d(t,"Signer",(function(){return f.a})),r.d(t,"Wallet",(function(){return l.Wallet})),r.d(t,"VoidSigner",(function(){return f.b})),r.d(t,"getDefaultProvider",(function(){return d.getDefaultProvider})),r.d(t,"providers",(function(){return d})),r.d(t,"BaseContract",(function(){return o.a})),r.d(t,"Contract",(function(){return o.b})),r.d(t,"ContractFactory",(function(){return o.c})),r.d(t,"BigNumber",(function(){return c.a})),r.d(t,"FixedNumber",(function(){return A.a})),r.d(t,"constants",(function(){return h})),r.d(t,"errors",(function(){return R.ErrorCode})),r.d(t,"logger",(function(){return W})),r.d(t,"utils",(function(){return n})),r.d(t,"wordlists",(function(){return m.a})),r.d(t,"version",(function(){return Z.a})),r.d(t,"Wordlist",(function(){return y.a}));var n={};r.r(n),r.d(n,"AbiCoder",(function(){return v.a})),r.d(n,"defaultAbiCoder",(function(){return v.b})),r.d(n,"Fragment",(function(){return I.e})),r.d(n,"ConstructorFragment",(function(){return I.a})),r.d(n,"ErrorFragment",(function(){return I.b})),r.d(n,"EventFragment",(function(){return I.c})),r.d(n,"FunctionFragment",(function(){return I.f})),r.d(n,"ParamType",(function(){return I.g})),r.d(n,"FormatTypes",(function(){return I.d})),r.d(n,"checkResultErrors",(function(){return w.d})),r.d(n,"Logger",(function(){return R.Logger})),r.d(n,"RLP",(function(){return U})),r.d(n,"_fetchData",(function(){return K._fetchData})),r.d(n,"fetchJson",(function(){return K.fetchJson})),r.d(n,"poll",(function(){return K.poll})),r.d(n,"checkProperties",(function(){return j.checkProperties})),r.d(n,"deepCopy",(function(){return j.deepCopy})),r.d(n,"defineReadOnly",(function(){return j.defineReadOnly})),r.d(n,"getStatic",(function(){return j.getStatic})),r.d(n,"resolveProperties",(function(){return j.resolveProperties})),r.d(n,"shallowCopy",(function(){return j.shallowCopy})),r.d(n,"arrayify",(function(){return _.arrayify})),r.d(n,"concat",(function(){return _.concat})),r.d(n,"stripZeros",(function(){return _.stripZeros})),r.d(n,"zeroPad",(function(){return _.zeroPad})),r.d(n,"isBytes",(function(){return _.isBytes})),r.d(n,"isBytesLike",(function(){return _.isBytesLike})),r.d(n,"defaultPath",(function(){return x.defaultPath})),r.d(n,"HDNode",(function(){return x.HDNode})),r.d(n,"SigningKey",(function(){return H.SigningKey})),r.d(n,"Interface",(function(){return E.b})),r.d(n,"LogDescription",(function(){return E.c})),r.d(n,"TransactionDescription",(function(){return E.d})),r.d(n,"base58",(function(){return Q.Base58})),r.d(n,"base64",(function(){return B})),r.d(n,"hexlify",(function(){return _.hexlify})),r.d(n,"isHexString",(function(){return _.isHexString})),r.d(n,"hexConcat",(function(){return _.hexConcat})),r.d(n,"hexStripZeros",(function(){return _.hexStripZeros})),r.d(n,"hexValue",(function(){return _.hexValue})),r.d(n,"hexZeroPad",(function(){return _.hexZeroPad})),r.d(n,"hexDataLength",(function(){return _.hexDataLength})),r.d(n,"hexDataSlice",(function(){return _.hexDataSlice})),r.d(n,"nameprep",(function(){return J.a})),r.d(n,"_toEscapedUtf8String",(function(){return G.d})),r.d(n,"toUtf8Bytes",(function(){return G.f})),r.d(n,"toUtf8CodePoints",(function(){return G.g})),r.d(n,"toUtf8String",(function(){return G.h})),r.d(n,"Utf8ErrorFuncs",(function(){return G.b})),r.d(n,"formatBytes32String",(function(){return z.a})),r.d(n,"parseBytes32String",(function(){return z.b})),r.d(n,"hashMessage",(function(){return D.a})),r.d(n,"namehash",(function(){return M.b})),r.d(n,"isValidName",(function(){return M.a})),r.d(n,"id",(function(){return S.a})),r.d(n,"_TypedDataEncoder",(function(){return k.a})),r.d(n,"getAddress",(function(){return C.getAddress})),r.d(n,"getIcapAddress",(function(){return C.getIcapAddress})),r.d(n,"getContractAddress",(function(){return C.getContractAddress})),r.d(n,"getCreate2Address",(function(){return C.getCreate2Address})),r.d(n,"isAddress",(function(){return C.isAddress})),r.d(n,"formatEther",(function(){return X.formatEther})),r.d(n,"parseEther",(function(){return X.parseEther})),r.d(n,"formatUnits",(function(){return X.formatUnits})),r.d(n,"parseUnits",(function(){return X.parseUnits})),r.d(n,"commify",(function(){return X.commify})),r.d(n,"computeHmac",(function(){return N.a})),r.d(n,"keccak256",(function(){return F.keccak256})),r.d(n,"ripemd160",(function(){return N.b})),r.d(n,"sha256",(function(){return N.c})),r.d(n,"sha512",(function(){return N.d})),r.d(n,"randomBytes",(function(){return T.a})),r.d(n,"shuffled",(function(){return L.a})),r.d(n,"solidityPack",(function(){return P.pack})),r.d(n,"solidityKeccak256",(function(){return P.keccak256})),r.d(n,"soliditySha256",(function(){return P.sha256})),r.d(n,"splitSignature",(function(){return _.splitSignature})),r.d(n,"joinSignature",(function(){return _.joinSignature})),r.d(n,"accessListify",(function(){return V.accessListify})),r.d(n,"parseTransaction",(function(){return V.parse})),r.d(n,"serializeTransaction",(function(){return V.serialize})),r.d(n,"TransactionTypes",(function(){return V.TransactionTypes})),r.d(n,"getJsonWalletAddress",(function(){return O.a})),r.d(n,"computeAddress",(function(){return V.computeAddress})),r.d(n,"recoverAddress",(function(){return V.recoverAddress})),r.d(n,"computePublicKey",(function(){return H.computePublicKey})),r.d(n,"recoverPublicKey",(function(){return H.recoverPublicKey})),r.d(n,"verifyMessage",(function(){return l.verifyMessage})),r.d(n,"verifyTypedData",(function(){return l.verifyTypedData})),r.d(n,"getAccountPath",(function(){return x.getAccountPath})),r.d(n,"mnemonicToEntropy",(function(){return x.mnemonicToEntropy})),r.d(n,"entropyToMnemonic",(function(){return x.entropyToMnemonic})),r.d(n,"isValidMnemonic",(function(){return x.isValidMnemonic})),r.d(n,"mnemonicToSeed",(function(){return x.mnemonicToSeed})),r.d(n,"SupportedAlgorithm",(function(){return Y.a})),r.d(n,"UnicodeNormalizationForm",(function(){return G.a})),r.d(n,"Utf8ErrorReason",(function(){return G.c})),r.d(n,"Indexed",(function(){return E.a}));var o=r(183),c=r(20),A=r(868),f=r(115),l=r(136),h=r(169),d=r(244),m=r(1227),y=r(40),v=r(246),I=r(71),w=r(60),E=r(237),C=r(30),B=r(278),Q=r(154),_=r(1),D=r(405),M=r(407),S=r(155),k=r(591),x=r(62),O=r(171),F=r(31),R=r(5),N=r(170),P=r(238),T=r(217),L=r(593),j=r(3),U=r(111),H=r(107),J=r(355),G=r(63),z=r(408),V=r(53),X=r(184),K=r(76),Y=r(345),Z=r(344);const W=new R.Logger(Z.a)},,function(e,t,r){var n=r(57);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},function(e,t,r){"use strict";var n=r(383).charAt,o=r(73),c=r(129),A=r(374),f="String Iterator",l=c.set,h=c.getterFor(f);A(String,"String",(function(e){l(this,{type:f,string:o(e),index:0})}),(function(){var e,t=h(this),r=t.string,o=t.index;return o>=r.length?{value:void 0,done:!0}:(e=n(r,o),t.index+=e.length,{value:e,done:!1})}))},function(e,t,r){var n=r(24),o=r(51),c=r(57),A=r(146),f=[].slice,l=function(e){return function(t,r){var n=arguments.length>2,o=n?f.call(arguments,2):void 0;return e(n?function(){(c(t)?t:Function(t)).apply(this,o)}:t,r)}};n({global:!0,bind:!0,forced:/MSIE .\./.test(A)},{setTimeout:l(o.setTimeout),setInterval:l(o.setInterval)})},function(e,t,r){t.Scalar=r(282),t.PolField=r(921),t.F1Field=r(629),t.F2Field=r(630),t.F3Field=r(631),t.ZqField=t.F1Field,t.EC=r(632),t.bn128=r(924),t.utils=r(925)},,function(e,t,r){"use strict";r.r(t),r.d(t,"bitReverse",(function(){return S})),r.d(t,"log2",(function(){return k})),r.d(t,"buffReverseBits",(function(){return x})),r.d(t,"stringifyBigInts",(function(){return O})),r.d(t,"unstringifyBigInts",(function(){return F})),r.d(t,"beBuff2int",(function(){return R})),r.d(t,"beInt2Buff",(function(){return N})),r.d(t,"leBuff2int",(function(){return P})),r.d(t,"leInt2Buff",(function(){return T}));var n={};r.r(n),r.d(n,"stringifyBigInts",(function(){return A})),r.d(n,"unstringifyBigInts",(function(){return f})),r.d(n,"beBuff2int",(function(){return l})),r.d(n,"beInt2Buff",(function(){return h})),r.d(n,"leBuff2int",(function(){return d})),r.d(n,"leInt2Buff",(function(){return m}));var o={};r.r(o),r.d(o,"stringifyBigInts",(function(){return I})),r.d(o,"unstringifyBigInts",(function(){return w})),r.d(o,"beBuff2int",(function(){return E})),r.d(o,"beInt2Buff",(function(){return C})),r.d(o,"leBuff2int",(function(){return B})),r.d(o,"leInt2Buff",(function(){return Q}));var c=r(14);function A(e){if("bigint"==typeof e||void 0!==e.eq)return e.toString(10);if(e instanceof Uint8Array)return c.fromRprLE(e,0);if(Array.isArray(e))return e.map(A);if("object"==typeof e){const t={};return Object.keys(e).forEach((r=>{t[r]=A(e[r])})),t}return e}function f(e){if("string"==typeof e&&/^[0-9]+$/.test(e))return BigInt(e);if("string"==typeof e&&/^0x[0-9a-fA-F]+$/.test(e))return BigInt(e);if(Array.isArray(e))return e.map(f);if("object"==typeof e){if(null===e)return null;const t={};return Object.keys(e).forEach((r=>{t[r]=f(e[r])})),t}return e}function l(e){let t=BigInt(0),i=e.length,r=0;const n=new DataView(e.buffer,e.byteOffset,e.byteLength);for(;i>0;)i>=4?(i-=4,t+=BigInt(n.getUint32(i))<=2?(i-=2,t+=BigInt(n.getUint16(i))<0;)c-4>=0?(c-=4,o.setUint32(c,Number(r&BigInt(4294967295))),r>>=BigInt(32)):c-2>=0?(c-=2,o.setUint16(c,Number(r&BigInt(65535))),r>>=BigInt(16)):(c-=1,o.setUint8(c,Number(r&BigInt(255))),r>>=BigInt(8));if(r)throw new Error("Number does not fit in this length");return n}function d(e){let t=BigInt(0),i=0;const r=new DataView(e.buffer,e.byteOffset,e.byteLength);for(;i>=BigInt(32)):A+2<=t?(o.setUint16(Number(A,r&BigInt(65535)),!0),A+=2,r>>=BigInt(16)):(o.setUint8(Number(A,r&BigInt(255)),!0),A+=1,r>>=BigInt(8));if(r)throw new Error("Number does not fit in this length");return n}var y=r(16),v=r.n(y);function I(e){if("bigint"==typeof e||void 0!==e.eq)return e.toString(10);if(Array.isArray(e))return e.map(I);if("object"==typeof e){const t={};return Object.keys(e).forEach((r=>{t[r]=I(e[r])})),t}return e}function w(e){if("string"==typeof e&&/^[0-9]+$/.test(e))return v()(e);if("string"==typeof e&&/^0x[0-9a-fA-F]+$/.test(e))return v()(e);if(Array.isArray(e))return e.map(w);if("object"==typeof e){const t={};return Object.keys(e).forEach((r=>{t[r]=w(e[r])})),t}return e}function E(e){let t=v.a.zero;for(let i=0;i=0;){let e=Number(r.and(v()("255")));o[n]=e,n--,r=r.shiftRight(8)}if(!r.eq(v.a.zero))throw new Error("Number does not fit in this length");return o}function B(e){let t=v.a.zero;for(let i=0;i>=1;return r}_.bitReverse=function(e,t){return(D[e>>>24]|D[e>>>16&255]<<8|D[e>>>8&255]<<16|D[255&e]<<24)>>>32-t},_.log2=function(e){return(0!=(4294901760&e)?(e&=4294901760,16):0)|(0!=(4278255360&e)?(e&=4278255360,8):0)|(0!=(4042322160&e)?(e&=4042322160,4):0)|(0!=(3435973836&e)?(e&=3435973836,2):0)|0!=(2863311530&e)},_.buffReverseBits=function(e,t){const r=e.byteLength/t,n=_.log2(r);if(r!=1<r){const n=e.slice(i*t,(i+1)*t);e.set(e.slice(r*t,(r+1)*t),i*t),e.set(n,r*t)}}};let{bitReverse:S,log2:k,buffReverseBits:x,stringifyBigInts:O,unstringifyBigInts:F,beBuff2int:R,beInt2Buff:N,leBuff2int:P,leInt2Buff:T}=_},,,,function(e,t,r){var n=r(49);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,r){"use strict";var n=r(24),o=r(381),c=r(100),A=r(73);n({target:"String",proto:!0,forced:!r(382)("includes")},{includes:function(e){return!!~A(c(this)).indexOf(A(o(e)),arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){"use strict";var n=r(24),o=r(194).map;n({target:"Array",proto:!0,forced:!r(229)("map")},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){var n=r(51),o=r(544),c=r(545),A=r(373),f=r(160),l=r(56),h=l("iterator"),d=l("toStringTag"),m=A.values,y=function(e,t){if(e){if(e[h]!==m)try{f(e,h,m)}catch(t){e[h]=m}if(e[d]||f(e,d,t),o[t])for(var r in A)if(e[r]!==A[r])try{f(e,r,A[r])}catch(t){e[r]=A[r]}}};for(var v in o)y(n[v]&&n[v].prototype,v);y(c,"DOMTokenList")},function(e,t,r){var n=r(112),o={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return o.call(n(e),t)}},function(e,t,r){var n=r(176),o=Math.min;e.exports=function(e){return e>0?o(n(e),9007199254740991):0}},function(e,t,r){var n=r(88),o=r(224).EXISTS,c=r(102).f,A=Function.prototype,f=A.toString,l=/^\s*function ([^ (]*)/;n&&!o&&c(A,"name",{configurable:!0,get:function(){try{return f.call(this).match(l)[1]}catch(e){return""}}})},function(e,t,r){"use strict";var n,o=r(652),c=Object.prototype.toString,A=(n=Object.create(null),function(e){var t=c.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())});function f(e){return e=e.toLowerCase(),function(t){return A(t)===e}}function l(e){return Array.isArray(e)}function h(e){return void 0===e}var d=f("ArrayBuffer");function m(e){return null!==e&&"object"==typeof e}function y(e){if("object"!==A(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var v=f("Date"),I=f("File"),w=f("Blob"),E=f("FileList");function C(e){return"[object Function]"===c.call(e)}var B=f("URLSearchParams");function Q(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),l(e))for(var i=0,r=e.length;i0;)o[n=r[i]]||(t[n]=e[n],o[n]=!0);e=Object.getPrototypeOf(e)}while(e&&(!filter||filter(e,t))&&e!==Object.prototype);return t},kindOf:A,kindOfTest:f,endsWith:function(e,t,r){e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;var n=e.indexOf(t,r);return-1!==n&&n===r},toArray:function(e){if(!e)return null;var i=e.length;if(h(i))return null;for(var t=new Array(i);i-- >0;)t[i]=e[i];return t},isTypedArray:D,isFileList:E}},,function(e,t,r){t.Circuit=r(948),t.original={setup:r(950),genProof:r(954),isValid:r(955)},t.groth={setup:r(956),genProof:r(957),isValid:r(958)},t.kimleeoh={setup:r(959),genProof:r(960),isValid:r(966)},t.bigInt=r(113),t.ZqField=r(165),t.stringifyBigInts=r(647).stringifyBigInts,t.unstringifyBigInts=r(647).unstringifyBigInts;const n=r(133);t.bn128=new n},function(e,t,r){"use strict";function n(e){return null!==e&&"object"==typeof e}r.d(t,"a",(function(){return n}))},,function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,r){var n=r(57),o=r(520);e.exports=function(e){if(n(e))return e;throw TypeError(o(e)+" is not a function")}},function(e,t,r){var n=r(88),o=r(521),c=r(48),A=r(256),f=Object.defineProperty;t.f=n?f:function(e,t,r){if(c(e),t=A(t),c(r),o)try{return f(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},function(e,t,r){var n=r(51),o=r(57),c=r(92),A=r(160),f=r(367),l=r(261),h=r(129),d=r(224).CONFIGURABLE,m=h.get,y=h.enforce,v=String(String).split("String");(e.exports=function(e,t,r,l){var h,m=!!l&&!!l.unsafe,I=!!l&&!!l.enumerable,w=!!l&&!!l.noTargetGet,E=l&&void 0!==l.name?l.name:t;o(r)&&("Symbol("===String(E).slice(0,7)&&(E="["+String(E).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!c(r,"name")||d&&r.name!==E)&&A(r,"name",E),(h=y(r)).source||(h.source=v.join("string"==typeof E?E:""))),e!==n?(m?!w&&e[t]&&(I=!0):delete e[t],I?e[t]=r:A(e,t,r)):I?e[t]=r:f(t,r)})(Function.prototype,"toString",(function(){return o(this)&&m(this).source||l(this)}))},function(e,t,r){var n=r(48),o=r(528),c=r(93),A=r(109),f=r(371),l=r(265),h=r(527),d=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,r){var m,y,v,I,w,E,C,B=r&&r.that,Q=!(!r||!r.AS_ENTRIES),_=!(!r||!r.IS_ITERATOR),D=!(!r||!r.INTERRUPTED),M=A(t,B,1+Q+D),S=function(e){return m&&h(m,"normal",e),new d(!0,e)},k=function(e){return Q?(n(e),D?M(e[0],e[1],S):M(e[0],e[1])):D?M(e,S):M(e)};if(_)m=e;else{if(!(y=l(e)))throw TypeError(String(e)+" is not iterable");if(o(y)){for(v=0,I=c(e.length);I>v;v++)if((w=k(e[v]))&&w instanceof d)return w;return new d(!1)}m=f(e,y)}for(E=m.next;!(C=E.call(m)).done;){try{w=k(C.value)}catch(e){h(m,"throw",e)}if("object"==typeof w&&w&&w instanceof d)return w}return new d(!1)}},function(e,t,r){"use strict";var n=r(24),o=r(268);n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},function(e,t,r){"use strict";(function(t){var n=r(820);function o(a,b){if(a===b)return 0;for(var e=a.length,t=b.length,i=0,r=Math.min(e,t);i=0;i--)if(c[i]!==f[i])return!1;for(i=c.length-1;i>=0;i--)if(!Q(a[o=c[i]],b[o],e,t))return!1;return!0}(e,t,r,n))}return r?e===t:e==t}function _(object){return"[object Arguments]"==Object.prototype.toString.call(object)}function D(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function M(e,t,r,n){var o;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(n=r,r=null),o=function(e){var t;try{e()}catch(e){t=e}return t}(t),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!o&&C(o,r,"Missing expected exception"+n);var c="string"==typeof n,f=!e&&o&&!r;if((!e&&A.isError(o)&&c&&D(o,r)||f)&&C(o,r,"Got unwanted exception"+n),e&&o&&r&&!D(o,r)||!e&&o)throw o}y.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return w(E(e.actual),128)+" "+e.operator+" "+w(E(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||C;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var r=new Error;if(r.stack){var n=r.stack,o=I(t),c=n.indexOf("\n"+o);if(c>=0){var A=n.indexOf("\n",c+1);n=n.substring(A+1)}this.stack=n}}},A.inherits(y.AssertionError,Error),y.fail=C,y.ok=B,y.equal=function(e,t,r){e!=t&&C(e,t,r,"==",y.equal)},y.notEqual=function(e,t,r){e==t&&C(e,t,r,"!=",y.notEqual)},y.deepEqual=function(e,t,r){Q(e,t,!1)||C(e,t,r,"deepEqual",y.deepEqual)},y.deepStrictEqual=function(e,t,r){Q(e,t,!0)||C(e,t,r,"deepStrictEqual",y.deepStrictEqual)},y.notDeepEqual=function(e,t,r){Q(e,t,!1)&&C(e,t,r,"notDeepEqual",y.notDeepEqual)},y.notDeepStrictEqual=function e(t,r,n){Q(t,r,!0)&&C(t,r,n,"notDeepStrictEqual",e)},y.strictEqual=function(e,t,r){e!==t&&C(e,t,r,"===",y.strictEqual)},y.notStrictEqual=function(e,t,r){e===t&&C(e,t,r,"!==",y.notStrictEqual)},y.throws=function(e,t,r){M(!0,e,t,r)},y.doesNotThrow=function(e,t,r){M(!1,e,t,r)},y.ifError=function(e){if(e)throw e},y.strict=n((function e(t,r){t||C(t,!0,r,"==",e)}),y,{equal:y.strictEqual,deepEqual:y.deepStrictEqual,notEqual:y.notStrictEqual,notDeepEqual:y.notDeepStrictEqual}),y.strict.strict=y.strict;var S=Object.keys||function(e){var t=[];for(var r in e)f.call(e,r)&&t.push(r);return t}}).call(this,r(36))},function(e,t,r){"use strict";r.r(t),r.d(t,"SigningKey",(function(){return h})),r.d(t,"recoverPublicKey",(function(){return d})),r.d(t,"computePublicKey",(function(){return m}));var n=r(714),o=r(1),c=r(3);const A=new(r(5).Logger)("signing-key/5.4.0");let f=null;function l(){return f||(f=new n.a("secp256k1")),f}class h{constructor(e){Object(c.defineReadOnly)(this,"curve","secp256k1"),Object(c.defineReadOnly)(this,"privateKey",Object(o.hexlify)(e));const t=l().keyFromPrivate(Object(o.arrayify)(this.privateKey));Object(c.defineReadOnly)(this,"publicKey","0x"+t.getPublic(!1,"hex")),Object(c.defineReadOnly)(this,"compressedPublicKey","0x"+t.getPublic(!0,"hex")),Object(c.defineReadOnly)(this,"_isSigningKey",!0)}_addPoint(e){const t=l().keyFromPublic(Object(o.arrayify)(this.publicKey)),r=l().keyFromPublic(Object(o.arrayify)(e));return"0x"+t.pub.add(r.pub).encodeCompressed("hex")}signDigest(e){const t=l().keyFromPrivate(Object(o.arrayify)(this.privateKey)),r=Object(o.arrayify)(e);32!==r.length&&A.throwArgumentError("bad digest length","digest",e);const n=t.sign(r,{canonical:!0});return Object(o.splitSignature)({recoveryParam:n.recoveryParam,r:Object(o.hexZeroPad)("0x"+n.r.toString(16),32),s:Object(o.hexZeroPad)("0x"+n.s.toString(16),32)})}computeSharedSecret(e){const t=l().keyFromPrivate(Object(o.arrayify)(this.privateKey)),r=l().keyFromPublic(Object(o.arrayify)(m(e)));return Object(o.hexZeroPad)("0x"+t.derive(r.getPublic()).toString(16),32)}static isSigningKey(e){return!(!e||!e._isSigningKey)}}function d(e,t){const r=Object(o.splitSignature)(t),n={r:Object(o.arrayify)(r.r),s:Object(o.arrayify)(r.s)};return"0x"+l().recoverPubKey(Object(o.arrayify)(e),n,r.recoveryParam).encode("hex",!1)}function m(e,t){const r=Object(o.arrayify)(e);if(32===r.length){const e=new h(r);return t?"0x"+l().keyFromPrivate(r).getPublic(!0,"hex"):e.publicKey}return 33===r.length?t?Object(o.hexlify)(r):"0x"+l().keyFromPublic(r).getPublic(!1,"hex"):65===r.length?t?"0x"+l().keyFromPublic(r).getPublic(!0,"hex"):Object(o.hexlify)(r):A.throwArgumentError("invalid public or private key","key","[REDACTED]")}},function(e,t,r){var n=r(51),o=r(57),c=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?c(n[e]):n[e]&&n[e][t]}},function(e,t,r){var n=r(101);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(a){return e.call(t,a)};case 2:return function(a,b){return e.call(t,a,b)};case 3:return function(a,b,r){return e.call(t,a,b,r)}}return function(){return e.apply(t,arguments)}}},function(e,t,r){"use strict";var n=r(224).PROPER,o=r(103),c=r(48),A=r(73),f=r(49),l=r(269),h="toString",d=RegExp.prototype,m=d.toString,y=f((function(){return"/a/b"!=m.call({source:"a",flags:"b"})})),v=n&&m.name!=h;(y||v)&&o(RegExp.prototype,h,(function(){var e=c(this),p=A(e.source),t=e.flags;return"/"+p+"/"+A(void 0===t&&e instanceof RegExp&&!("flags"in d)?l.call(e):t)}),{unsafe:!0})},function(e,t,r){"use strict";r.r(t),r.d(t,"encode",(function(){return h})),r.d(t,"decode",(function(){return y}));var n=r(1),o=r(5);const c=new o.Logger("rlp/5.4.0");function A(e){const t=[];for(;e;)t.unshift(255&e),e>>=8;return t}function f(data,e,t){let r=0;for(let i=0;ie+1+r&&c.throwError("child data too short",o.Logger.errors.BUFFER_OVERRUN,{})}return{consumed:1+r,result:n}}function m(data,e){if(0===data.length&&c.throwError("data too short",o.Logger.errors.BUFFER_OVERRUN,{}),data[e]>=248){const t=data[e]-247;e+1+t>data.length&&c.throwError("data short segment too short",o.Logger.errors.BUFFER_OVERRUN,{});const r=f(data,e+1,t);return e+1+t+r>data.length&&c.throwError("data long segment too short",o.Logger.errors.BUFFER_OVERRUN,{}),d(data,e,e+1+t,t+r)}if(data[e]>=192){const t=data[e]-192;return e+1+t>data.length&&c.throwError("data array too short",o.Logger.errors.BUFFER_OVERRUN,{}),d(data,e,e+1,t)}if(data[e]>=184){const t=data[e]-183;e+1+t>data.length&&c.throwError("data array too short",o.Logger.errors.BUFFER_OVERRUN,{});const r=f(data,e+1,t);e+1+t+r>data.length&&c.throwError("data array too short",o.Logger.errors.BUFFER_OVERRUN,{});return{consumed:1+t+r,result:Object(n.hexlify)(data.slice(e+1+t,e+1+t+r))}}if(data[e]>=128){const t=data[e]-128;e+1+t>data.length&&c.throwError("data too short",o.Logger.errors.BUFFER_OVERRUN,{});return{consumed:1+t,result:Object(n.hexlify)(data.slice(e+1,e+1+t))}}return{consumed:1,result:Object(n.hexlify)(data[e])}}function y(data){const e=Object(n.arrayify)(data),t=m(e,0);return t.consumed!==e.length&&c.throwArgumentError("invalid rlp data","data",data),t.result}},function(e,t,r){var n=r(100);e.exports=function(e){return Object(n(e))}},function(e,t,r){(function(t){const n=r(16);let o;if("undefined"!=typeof BigInt)o=BigInt,o.one=o(1),o.zero=o(0),o.genAffine=q=>{const e=-q;return a=>{let t=a;return t<0?(t<=e&&(t%=q),t=q&&(t%=q),t.valueOf()}},o.genInverse=q=>a=>{let e=o.zero,t=q,r=o.one,n=o.affine(a,q);for(;n!=o.zero;){let q=t/n;[e,r]=[r,e-q*r],[t,n]=[n,t-q*n]}return eq?(a,b)=>(a+b)%q:(a,b)=>a+b,o.genSub=q=>q?(a,b)=>(a-b)%q:(a,b)=>a-b,o.genNeg=q=>q?a=>-a%q:a=>-a,o.genMul=q=>q?(a,b)=>a*b%q:(a,b)=>a*b,o.genShr=()=>(a,b)=>a>>o(b),o.genShl=q=>q?(a,b)=>(a<a<q?(a,b)=>a.affine(q)==b.affine(q):(a,b)=>a==b,o.genSquare=q=>q?a=>a*a%q:a=>a*a,o.genDouble=q=>q?a=>(a+a)%q:a=>a+a,o.genIsZero=q=>q?a=>a.affine(q)==o.zero:a=>a==o.zero,o.prototype.isOdd=function(){return(this&o.one)==o(1)},o.prototype.isNegative=function(){return thiso.zero?this:-this},o.prototype.modPow=function(e,t){let r=o.one,n=this,c=e;for(;c;)c&o.one&&(r=r*n%t),n=n*n%t,c>>=o.one;return r},o.prototype.greaterOrEquals=function(b){return this>=b},o.prototype.greater=function(b){return this>b},o.prototype.gt=o.prototype.greater,o.prototype.lesserOrEquals=function(b){return this<=b},o.prototype.lesser=function(b){return this{const e=o.zero.minus(q);return a=>{let t=a;return t.isNegative()?(t.lesserOrEquals(e)&&(t=t.mod(q)),t.isNegative()&&(t=t.add(q))):t.greaterOrEquals(q)&&(t=t.mod(q)),t}},o.genInverse=q=>a=>a.affine(q).modInv(q),o.genAdd=q=>q?(a,b)=>{const e=a.add(b);return e.greaterOrEquals(q)?e.minus(q):e}:(a,b)=>a.add(b),o.genSub=q=>q?(a,b)=>a.greaterOrEquals(b)?a.minus(b):a.minus(b).add(q):(a,b)=>a.minus(b),o.genNeg=q=>q?a=>a.isZero()?a:q.minus(a):a=>o.zero.minus(a),o.genMul=q=>q?(a,b)=>a.times(b).mod(q):(a,b)=>a.times(b),o.genShr=()=>(a,b)=>a.shiftRight(o(b).value),o.genShl=q=>q?(a,b)=>a.shiftLeft(o(b).value).mod(q):(a,b)=>a.shiftLeft(o(b).value),o.genSquare=q=>q?a=>a.square().mod(q):a=>a.square(),o.genDouble=q=>q?a=>a.add(a).mod(q):a=>a.add(a),o.genEquals=q=>q?(a,b)=>a.affine(q).equals(b.affine(q)):(a,b)=>a.equals(b),o.genIsZero=q=>q?a=>a.affine(q).isZero():a=>a.isZero()}o.affine=function(a,q){return o.genAffine(q)(a)},o.prototype.affine=function(q){return o.affine(this,q)},o.inverse=function(a,q){return o.genInverse(q)(a)},o.prototype.inverse=function(q){return o.genInverse(q)(this)},o.add=function(a,b,q){return o.genAdd(q)(a,b)},o.prototype.add=function(a,q){return o.genAdd(q)(this,a)},o.sub=function(a,b,q){return o.genSub(q)(a,b)},o.prototype.sub=function(a,q){return o.genSub(q)(this,a)},o.neg=function(a,q){return o.genNeg(q)(a)},o.prototype.neg=function(q){return o.genNeg(q)(this)},o.mul=function(a,b,q){return o.genMul(q)(a,b)},o.prototype.mul=function(a,q){return o.genMul(q)(this,a)},o.shr=function(a,b,q){return o.genShr(q)(a,b)},o.prototype.shr=function(a,q){return o.genShr(q)(this,a)},o.shl=function(a,b,q){return o.genShl(q)(a,b)},o.prototype.shl=function(a,q){return o.genShl(q)(this,a)},o.equals=function(a,b,q){return o.genEquals(q)(a,b)},o.prototype.equals=function(a,q){return o.genEquals(q)(this,a)},o.square=function(a,q){return o.genSquare(q)(a)},o.prototype.square=function(q){return o.genSquare(q)(this)},o.double=function(a,q){return o.genDouble(q)(a)},o.prototype.double=function(q){return o.genDouble(q)(this)},o.isZero=function(a,q){return o.genIsZero(q)(a)},o.prototype.isZero=function(q){return o.genIsZero(q)(this)},o.leBuff2int=function(e){let t=o.zero;for(let i=0;i=0;){let e=Number(n.and(o("255")));A[c]=e,c--,n=n.shr(8)}if(n.greater(o.zero))throw new Error("Number does not feed in buffer");return A},o.prototype.beInt2Buff=function(e){return o.beInt2Buff(this,e)},e.exports=o}).call(this,r(18).Buffer)},function(e,t,r){"use strict";var n=r(677),o=Object.prototype.toString;function c(e){return"[object Array]"===o.call(e)}function A(e){return void 0===e}function f(e){return null!==e&&"object"==typeof e}function l(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function h(e){return"[object Function]"===o.call(e)}function d(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),c(e))for(var i=0,r=e.length;i(t[0].toLowerCase()!==t[1].toLowerCase()&&A.throwArgumentError("from address mismatch","transaction",e),t[0]))),t}populateTransaction(e){return c(this,void 0,void 0,(function*(){const t=yield Object(n.resolveProperties)(this.checkTransaction(e));null!=t.to&&(t.to=Promise.resolve(t.to).then((e=>c(this,void 0,void 0,(function*(){if(null==e)return null;const address=yield this.resolveName(e);return null==address&&A.throwArgumentError("provided ENS name resolves to null","tx.to",e),address})))),t.to.catch((e=>{})));const r=null!=t.maxFeePerGas||null!=t.maxPriorityFeePerGas;if(null==t.gasPrice||2!==t.type&&!r?0!==t.type&&1!==t.type||!r||A.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",e):A.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",e),2!==t.type&&null!=t.type||null==t.maxFeePerGas||null==t.maxPriorityFeePerGas)if(0===t.type||1===t.type)null==t.gasPrice&&(t.gasPrice=this.getGasPrice());else{const e=yield this.getFeeData();if(null==t.type)if(null!=e.maxFeePerGas&&null!=e.maxPriorityFeePerGas)if(t.type=2,null!=t.gasPrice){const e=t.gasPrice;delete t.gasPrice,t.maxFeePerGas=e,t.maxPriorityFeePerGas=e}else null==t.maxFeePerGas&&(t.maxFeePerGas=e.maxFeePerGas),null==t.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas);else null!=e.gasPrice?(r&&A.throwError("network does not support EIP-1559",o.Logger.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),null==t.gasPrice&&(t.gasPrice=e.gasPrice),t.type=0):A.throwError("failed to get consistent fee data",o.Logger.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"});else 2===t.type&&(null==t.maxFeePerGas&&(t.maxFeePerGas=e.maxFeePerGas),null==t.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas))}else t.type=2;return null==t.nonce&&(t.nonce=this.getTransactionCount("pending")),null==t.gasLimit&&(t.gasLimit=this.estimateGas(t).catch((e=>{if(l.indexOf(e.code)>=0)throw e;return A.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",o.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,tx:t})}))),null==t.chainId?t.chainId=this.getChainId():t.chainId=Promise.all([Promise.resolve(t.chainId),this.getChainId()]).then((t=>(0!==t[1]&&t[0]!==t[1]&&A.throwArgumentError("chainId address mismatch","transaction",e),t[0]))),yield Object(n.resolveProperties)(t)}))}_checkProvider(e){this.provider||A.throwError("missing provider",o.Logger.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}static isSigner(e){return!(!e||!e._isSigner)}}class d extends h{constructor(address,e){A.checkNew(new.target,d),super(),Object(n.defineReadOnly)(this,"address",address),Object(n.defineReadOnly)(this,"provider",e||null)}getAddress(){return Promise.resolve(this.address)}_fail(e,t){return Promise.resolve().then((()=>{A.throwError(e,o.Logger.errors.UNSUPPORTED_OPERATION,{operation:t})}))}signMessage(e){return this._fail("VoidSigner cannot sign messages","signMessage")}signTransaction(e){return this._fail("VoidSigner cannot sign transactions","signTransaction")}_signTypedData(e,t,r){return this._fail("VoidSigner cannot sign typed data","signTypedData")}connect(e){return new d(this.address,e)}}},,function(e,t,r){"use strict";var n=t,o=r(13),c=r(118),A=r(568);n.assert=c,n.toArray=A.toArray,n.zero2=A.zero2,n.toHex=A.toHex,n.encode=A.encode,n.getNAF=function(e,t,r){var n=new Array(Math.max(e.bitLength(),r)+1);n.fill(0);for(var o=1<(o>>1)-1?(o>>1)-f:f,c.isubn(A)):A=0,n[i]=A,c.iushrn(1)}return n},n.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n,o=0,c=0;e.cmpn(-o)>0||t.cmpn(-c)>0;){var A,f,l=e.andln(3)+o&3,h=t.andln(3)+c&3;3===l&&(l=-1),3===h&&(h=-1),A=0==(1&l)?0:3!==(n=e.andln(7)+o&7)&&5!==n||2!==h?l:-l,r[0].push(A),f=0==(1&h)?0:3!==(n=t.andln(7)+c&7)&&5!==n||2!==l?h:-h,r[1].push(f),2*o===A+1&&(o=1-o),2*c===f+1&&(c=1-c),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new o(e,"hex","le")}},function(e,t){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=r,r.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},function(e,t,r){"use strict";(function(t){var n=r(586),o=r(587);function c(e){var a=e;if("string"!=typeof a)throw new Error("[ethjs-util] while padding to even, value must be string, is currently "+typeof a+", while padToEven.");return a.length%2&&(a="0"+a),a}function A(i){return"0x"+i.toString(16)}e.exports={arrayContainsArray:function(e,t,r){if(!0!==Array.isArray(e))throw new Error("[ethjs-util] method arrayContainsArray requires input 'superset' to be an array got type '"+typeof e+"'");if(!0!==Array.isArray(t))throw new Error("[ethjs-util] method arrayContainsArray requires input 'subset' to be an array got type '"+typeof t+"'");return t[Boolean(r)?"some":"every"]((function(t){return e.indexOf(t)>=0}))},intToBuffer:function(i){var e=A(i);return new t(c(e.slice(2)),"hex")},getBinarySize:function(e){if("string"!=typeof e)throw new Error("[ethjs-util] while getting binary size, method getBinarySize requires input 'str' to be type String, got '"+typeof e+"'.");return t.byteLength(e,"utf8")},isHexPrefixed:n,stripHexPrefix:o,padToEven:c,intToHex:A,fromAscii:function(e){for(var t="",i=0;inull))});let r=null,c=null;return e&&e.baseFeePerGas&&(c=n.a.from("2500000000"),r=e.baseFeePerGas.mul(2).add(c)),{maxFeePerGas:r,maxPriorityFeePerGas:c,gasPrice:t}}))}addListener(e,t){return this.on(e,t)}removeListener(e,t){return this.off(e,t)}static isProvider(e){return!(!e||!e._isProvider)}}},function(e,t,r){"use strict";function n(e){return n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}r.d(t,"a",(function(){return n}))},function(e,t,r){"use strict";r.d(t,"a",(function(){return h})),r.d(t,"b",(function(){return d}));var n=r(9),o=(r(12),r(127)),c=r(98),A=r(253);var f,l,h=function(){function e(){this.known=new(A.c?WeakSet:Set),this.pool=new o.a(A.b),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return Object(c.a)(e)&&this.known.has(e)},e.prototype.pass=function(e){if(Object(c.a)(e)){var t=function(e){return Object(c.a)(e)?Array.isArray(e)?e.slice(0):Object(n.a)({__proto__:Object.getPrototypeOf(e)},e):e}(e);return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if(Object(c.a)(e)){var r=this.passes.get(e);if(r)return r;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))return e;var n=e.map(this.admit,this);return(l=this.pool.lookupArray(n)).array||(this.known.add(l.array=n),__DEV__&&Object.freeze(n)),l.array;case null:case Object.prototype:if(this.known.has(e))return e;var o=Object.getPrototypeOf(e),A=[o],f=this.sortedKeys(e);A.push(f.json);var l,h=A.length;if(f.sorted.forEach((function(r){A.push(t.admit(e[r]))})),!(l=this.pool.lookupArray(A)).object){var d=l.object=Object.create(o);this.known.add(d),f.sorted.forEach((function(e,i){d[e]=A[h+i]})),__DEV__&&Object.freeze(d)}return l.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),r=this.pool.lookupArray(t);if(!r.keys){t.sort();var n=JSON.stringify(t);(r.keys=this.keysByJSON.get(n))||this.keysByJSON.set(n,r.keys={sorted:t,json:n})}return r.keys},e}(),d=Object.assign((function(e){if(Object(c.a)(e)){void 0===f&&m();var t=f.admit(e),r=l.get(t);return void 0===r&&l.set(t,r=JSON.stringify(t)),r}return JSON.stringify(e)}),{reset:m});function m(){f=new h,l=new(A.b?WeakMap:Map)}},function(e,t,r){var n=r(255),o=r(100);e.exports=function(e){return n(o(e))}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateUnion=t.validateArray=t.usePattern=t.callValidateCode=t.schemaProperties=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.isOwnProperty=t.hasPropFunc=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;const n=r(43),o=r(52),c=r(168);function A(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:n._`Object.prototype.hasOwnProperty`})}function f(e,data,t){return n._`${A(e)}.call(${data}, ${t})`}function l(e,data,t,r){const o=n._`${data}${(0,n.getProperty)(t)} === undefined`;return r?(0,n.or)(o,(0,n.not)(f(e,data,t))):o}function h(e){return e?Object.keys(e).filter((p=>"__proto__"!==p)):[]}t.checkReportMissingProp=function(e,t){const{gen:r,data:data,it:o}=e;r.if(l(r,data,t,o.opts.ownProperties),(()=>{e.setParams({missingProperty:n._`${t}`},!0),e.error()}))},t.checkMissingProp=function({gen:e,data:data,it:{opts:t}},r,o){return(0,n.or)(...r.map((r=>(0,n.and)(l(e,data,r,t.ownProperties),n._`${o} = ${r}`))))},t.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},t.hasPropFunc=A,t.isOwnProperty=f,t.propertyInData=function(e,data,t,r){const o=n._`${data}${(0,n.getProperty)(t)} !== undefined`;return r?n._`${o} && ${f(e,data,t)}`:o},t.noPropertyInData=l,t.allSchemaProperties=h,t.schemaProperties=function(e,t){return h(t).filter((p=>!(0,o.alwaysValidSchema)(e,t[p])))},t.callValidateCode=function({schemaCode:e,data:data,it:{gen:t,topSchemaRef:r,schemaPath:o,errorPath:A},it:f},l,h,d){const m=d?n._`${e}, ${data}, ${r}${o}`:data,y=[[c.default.instancePath,(0,n.strConcat)(c.default.instancePath,A)],[c.default.parentData,f.parentData],[c.default.parentDataProperty,f.parentDataProperty],[c.default.rootData,c.default.rootData]];f.opts.dynamicRef&&y.push([c.default.dynamicAnchors,c.default.dynamicAnchors]);const v=n._`${m}, ${t.object(...y)}`;return h!==n.nil?n._`${l}.call(${h}, ${v})`:n._`${l}(${v})`},t.usePattern=function({gen:e,it:{opts:t}},pattern){const u=t.unicodeRegExp?"u":"";return e.scopeValue("pattern",{key:pattern,ref:new RegExp(pattern,u),code:n._`new RegExp(${pattern}, ${u})`})},t.validateArray=function(e){const{gen:t,data:data,keyword:r,it:c}=e,A=t.name("valid");if(c.allErrors){const e=t.let("valid",!0);return f((()=>t.assign(e,!1))),e}return t.var(A,!0),f((()=>t.break())),A;function f(c){const f=t.const("len",n._`${data}.length`);t.forRange("i",0,f,(i=>{e.subschema({keyword:r,dataProp:i,dataPropType:o.Type.Num},A),t.if((0,n.not)(A),c)}))}},t.validateUnion=function(e){const{gen:t,schema:r,keyword:c,it:A}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some((e=>(0,o.alwaysValidSchema)(A,e)))&&!A.opts.unevaluated)return;const f=t.let("valid",!1),l=t.name("_valid");t.block((()=>r.forEach(((r,i)=>{const o=e.subschema({keyword:c,schemaProp:i,compositeRule:!0},l);t.assign(f,n._`${f} || ${l}`);e.mergeValidEvaluated(o,l)||t.if((0,n.not)(f))})))),e.result(f,(()=>e.reset()),(()=>e.error(!0)))}},function(e,t,r){var n=r(859),o=r(590),c=r(867),A=r(161),f=r(13),l=function(e,t){var r=[];return t.forEach((function(param){if("object"==typeof param.components){if("tuple"!==param.type.substring(0,5))throw new Error("components found but type is not tuple; report on GitHub");var t="",n=param.type.indexOf("[");n>=0&&(t=param.type.substring(n));var o=l(e,param.components);Array.isArray(o)&&e?r.push("tuple("+o.join(",")+")"+t):e?r.push("("+o+")"):r.push("("+o.join(",")+")"+t)}else r.push(param.type)})),r},h=function(e){if(!o.isHexStrict(e))throw new Error("The parameter must be a valid HEX string.");var t="",i=0,r=e.length;for("0x"===e.substring(0,2)&&(i=2);i7?t+=address[i].toUpperCase():t+=address[i];return t},toHex:o.toHex,toBN:o.toBN,bytesToHex:o.bytesToHex,hexToBytes:o.hexToBytes,hexToNumberString:o.hexToNumberString,hexToNumber:o.hexToNumber,toDecimal:o.hexToNumber,numberToHex:o.numberToHex,fromDecimal:o.numberToHex,hexToUtf8:o.hexToUtf8,hexToString:o.hexToUtf8,toUtf8:o.hexToUtf8,stripHexPrefix:o.stripHexPrefix,utf8ToHex:o.utf8ToHex,stringToHex:o.utf8ToHex,fromUtf8:o.utf8ToHex,hexToAscii:h,toAscii:h,asciiToHex:d,fromAscii:d,unitMap:n.unitMap,toWei:function(e,t){if(t=m(t),!o.isBN(e)&&"string"!=typeof e)throw new Error("Please pass numbers as strings or BN objects to avoid precision errors.");return o.isBN(e)?n.toWei(e,t):n.toWei(e,t).toString(10)},fromWei:function(e,t){if(t=m(t),!o.isBN(e)&&"string"!=typeof e)throw new Error("Please pass numbers as strings or BN objects to avoid precision errors.");return o.isBN(e)?n.fromWei(e,t):n.fromWei(e,t).toString(10)},padLeft:o.leftPad,leftPad:o.leftPad,padRight:o.rightPad,rightPad:o.rightPad,toTwosComplement:o.toTwosComplement,isBloom:o.isBloom,isUserEthereumAddressInBloom:o.isUserEthereumAddressInBloom,isContractAddressInBloom:o.isContractAddressInBloom,isTopic:o.isTopic,isTopicInBloom:o.isTopicInBloom,isInBloom:o.isInBloom,compareBlockNumbers:function(a,b){if(a==b)return 0;if("genesis"!=a&&"earliest"!=a&&0!=a||"genesis"!=b&&"earliest"!=b&&0!=b){if("genesis"==a||"earliest"==a)return-1;if("genesis"==b||"earliest"==b)return 1;if("latest"==a)return"pending"==b?-1:1;if("latest"===b)return"pending"==a?1:-1;if("pending"==a)return 1;if("pending"==b)return-1;{let e=new f(a),t=new f(b);return e.lt(t)?-1:e.eq(t)?0:1}}return 0},toNumber:o.toNumber}},function(e,t,r){"use strict";r.d(t,"a",(function(){return f}));var n=function(){return Object.create(null)},o=Array.prototype,c=o.forEach,A=o.slice,f=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=n),this.weakness=e,this.makeData=t}return e.prototype.lookup=function(){for(var e=[],t=0;tthis.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),l=new o.a,h=Object.prototype.hasOwnProperty,d=void 0===(A=Array.from)?function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}:A;function m(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var y=[];function v(e,t){if(!e)throw new Error(t||"assertion failure")}function I(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var w=function(){function e(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}return e.prototype.peek=function(){if(1===this.value.length&&!B(this))return E(this),this.value[0]},e.prototype.recompute=function(e){return v(!this.recomputing,"already recomputing"),E(this),B(this)?function(e,t){x(e),l.withValue(e,C,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{m(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(e,t)&&function(e){if(e.dirty=!1,B(e))return;_(e)}(e);return I(e.value)}(this,e):I(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,Q(this),m(this))},e.prototype.dispose=function(){var e=this;this.setDirty(),x(this),D(this,(function(t,r){t.setDirty(),O(t,e)}))},e.prototype.forget=function(){this.dispose()},e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=y.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(d(this.deps).forEach((function(t){return t.delete(e)})),this.deps.clear(),y.push(this.deps),this.deps=null)},e.count=0,e}();function E(e){var t=l.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),B(e)?M(t,e):S(t,e),t}function C(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(t){e.value[1]=t}e.recomputing=!1}function B(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function Q(e){D(e,M)}function _(e){D(e,S)}function D(e,t){var r=e.parents.size;if(r)for(var n=d(e.parents),i=0;i0&&r===b.length&&a[r-1]===b[r-1]||e.setDirty()),k(e,t),B(e)||_(e)}function k(e,t){var r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(y.length<100&&y.push(r),e.dirtyChildren=null))}function x(e){e.childValues.size>0&&e.childValues.forEach((function(t,r){O(e,r)})),e.forgetDeps(),v(null===e.dirtyChildren)}function O(e,t){t.parents.delete(e),e.childValues.delete(t),k(e,t)}var F={setDirty:!0,dispose:!0,forget:!0};function R(e){var t=new Map,r=e&&e.subscribe;function n(e){var n=l.getValue();if(n){var o=t.get(e);o||t.set(e,o=new Set),n.dependOn(o),"function"==typeof r&&(m(o),o.unsubscribe=r(e))}}return n.dirty=function(e,r){var n=t.get(e);if(n){var o=r&&h.call(F,r)?r:"setDirty";d(n).forEach((function(e){return e[o]()})),t.delete(e),m(n)}},n}function N(){var e=new n.a("function"==typeof WeakMap);return function(){return e.lookupArray(arguments)}}N();var P=new Set;function T(e,t){void 0===t&&(t=Object.create(null));var r=new f(t.max||Math.pow(2,16),(function(e){return e.dispose()})),n=t.keyArgs,o=t.makeCacheKey||N(),c=function(){var c=o.apply(null,n?n.apply(null,arguments):arguments);if(void 0===c)return e.apply(null,arguments);var A=r.get(c);A||(r.set(c,A=new w(e)),A.subscribe=t.subscribe,A.forget=function(){return r.delete(c)});var f=A.recompute(Array.prototype.slice.call(arguments));return r.set(c,A),P.add(r),l.hasValue()||(P.forEach((function(e){return e.clean()})),P.clear()),f};function A(e){var t=r.get(e);t&&t.setDirty()}function h(e){var t=r.get(e);if(t)return t.peek()}function d(e){return r.delete(e)}return Object.defineProperty(c,"size",{get:function(){return r.map.size},configurable:!1,enumerable:!1}),c.dirtyKey=A,c.dirty=function(){A(o.apply(null,arguments))},c.peekKey=h,c.peek=function(){return h(o.apply(null,arguments))},c.forgetKey=d,c.forget=function(){return d(o.apply(null,arguments))},c.makeCacheKey=o,c.getKey=n?function(){return o.apply(null,n.apply(null,arguments))}:o,Object.freeze(c)}},function(e,t,r){var n,o,c,A=r(754),f=r(51),l=r(79),h=r(160),d=r(92),m=r(366),y=r(262),v=r(223),I="Object already initialized",w=f.WeakMap;if(A||m.state){var E=m.state||(m.state=new w),C=E.get,B=E.has,Q=E.set;n=function(e,t){if(B.call(E,e))throw new TypeError(I);return t.facade=e,Q.call(E,e,t),t},o=function(e){return C.call(E,e)||{}},c=function(e){return B.call(E,e)}}else{var _=y("state");v[_]=!0,n=function(e,t){if(d(e,_))throw new TypeError(I);return t.facade=e,h(e,_,t),t},o=function(e){return d(e,_)?e[_]:{}},c=function(e){return d(e,_)}}e.exports={set:n,get:o,has:c,enforce:function(e){return c(e)?o(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!l(t)||(r=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}}},function(e,t,r){var n=r(24),o=r(526);n({target:"Array",stat:!0,forced:!r(372)((function(e){Array.from(e)}))},{from:o})},function(e,t,r){"use strict";var n=r(118),o=r(21);function c(e,i){return 55296==(64512&e.charCodeAt(i))&&(!(i<0||i+1>=e.length)&&56320==(64512&e.charCodeAt(i+1)))}function A(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function f(e){return 1===e.length?"0"+e:e}function l(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=o,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i>6|192,r[p++]=63&n|128):c(e,i)?(n=65536+((1023&n)<<10)+(1023&e.charCodeAt(++i)),r[p++]=n>>18|240,r[p++]=n>>12&63|128,r[p++]=n>>6&63|128,r[p++]=63&n|128):(r[p++]=n>>12|224,r[p++]=n>>6&63|128,r[p++]=63&n|128)}else for(i=0;i>>0}return A},t.split32=function(e,t){for(var r=new Array(4*e.length),i=0,n=0;i>>24,r[n+1]=o>>>16&255,r[n+2]=o>>>8&255,r[n+3]=255&o):(r[n+3]=o>>>24,r[n+2]=o>>>16&255,r[n+1]=o>>>8&255,r[n]=255&o)}return r},t.rotr32=function(e,b){return e>>>b|e<<32-b},t.rotl32=function(e,b){return e<>>32-b},t.sum32=function(a,b){return a+b>>>0},t.sum32_3=function(a,b,e){return a+b+e>>>0},t.sum32_4=function(a,b,e,t){return a+b+e+t>>>0},t.sum32_5=function(a,b,e,t,r){return a+b+e+t+r>>>0},t.sum64=function(e,t,r,n){var o=e[t],c=n+e[t+1]>>>0,A=(c>>0,e[t+1]=c},t.sum64_hi=function(e,t,r,n){return(t+n>>>0>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,o,c,A,dl){var f=0,l=t;return f+=(l=l+n>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,r,n,o,c,A,dl){return t+n+c+dl>>>0},t.sum64_5_hi=function(e,t,r,n,o,c,A,dl,f,l){var h=0,d=t;return h+=(d=d+n>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,r,n,o,c,A,dl,f,l){return t+n+c+dl+l>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},function(e,t,r){"use strict";var n=r(24),o=r(194).find,c=r(232),A="find",f=!0;A in[]&&Array(1).find((function(){f=!1})),n({target:"Array",proto:!0,forced:f},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),c(A)},function(e,t,r){const n=r(113),o=r(165),c=r(951),A=r(952),f=r(953);e.exports=class{constructor(){this.q=n("21888242871839275222246405745257275088696311157297823662689037894645226208583"),this.r=n("21888242871839275222246405745257275088548364400416034343698204186575808495617"),this.g1=[n(1),n(2),n(1)],this.g2=[[n("10857046999023057135944570762232829481370756359578518086990519993285655852781"),n("11559732032986387107991004021392285783925812861821192530917403151452391805634")],[n("8495653923123431417604973247489272438418190587263600148770280649306958101930"),n("4082367875863433681332203403145435568316851327593401208105741076214120093531")],[n("1"),n("0")]],this.nonResidueF2=n("21888242871839275222246405745257275088696311157297823662689037894645226208582"),this.nonResidueF6=[n("9"),n("1")],this.F1=new o(this.q),this.F2=new c(this.F1,this.nonResidueF2),this.G1=new f(this.F1,this.g1),this.G2=new f(this.F2,this.g2),this.F6=new A(this.F2,this.nonResidueF6),this.F12=new c(this.F6,this.nonResidueF6),this.Fr=new o(this.r);const e=this;this.F12._mulByNonResidue=function(a){return[e.F2.mul(this.nonResidue,a[2]),a[0],a[1]]},this._preparePairing()}_preparePairing(){this.loopCount=n("29793968203157093288"),this.loopCount.isNegative()?(this.loopCount=this.loopCount.neg(),this.loopCountNeg=!0):this.loopCountNeg=!1;let e=this.loopCount;for(this.loop_count_bits=[];!e.isZero();)this.loop_count_bits.push(e.isOdd()),e=e.shr(1);this.two_inv=this.F1.inverse(n(2)),this.coef_b=n(3),this.twist=[n(9),n(1)],this.twist_coeff_b=this.F2.mulScalar(this.F2.inverse(this.twist),this.coef_b),this.frobenius_coeffs_c1_1=n("21888242871839275222246405745257275088696311157297823662689037894645226208582"),this.twist_mul_by_q_X=[n("21575463638280843010398324269430826099269044274347216827212613867836435027261"),n("10307601595873709700152284273816112264069230130616436755625194854815875713954")],this.twist_mul_by_q_Y=[n("2821565182194536844548159561693502659359617185244120367078079554186484126554"),n("3505843767911556378687030309984248845540243509899259641013678093033130930403")],this.final_exponent=n("552484233613224096312617126783173147097382103762957654188882734314196910839907541213974502761540629817009608548654680343627701153829446747810907373256841551006201639677726139946029199968412598804882391702273019083653272047566316584365559776493027495458238373902875937659943504873220554161550525926302303331747463515644711876653177129578303191095900909191624817826566688241804408081892785725967931714097716709526092261278071952560171111444072049229123565057483750161460024353346284167282452756217662335528813519139808291170539072125381230815729071544861602750936964829313608137325426383735122175229541155376346436093930287402089517426973178917569713384748081827255472576937471496195752727188261435633271238710131736096299798168852925540549342330775279877006784354801422249722573783561685179618816480037695005515426162362431072245638324744480")}pairing(e,t){const r=this.precomputeG1(e),n=this.precomputeG2(t),o=this.millerLoop(r,n);return this.finalExponentiation(o)}precomputeG1(p){const e=this.G1.affine(p),t={};return t.PX=e[0],t.PY=e[1],t}precomputeG2(p){const e=this.G2.affine(p),t={QX:e[0],QY:e[1],coeffs:[]},r={X:e[0],Y:e[1],Z:this.F2.one};let n;for(let i=this.loop_count_bits.length-2;i>=0;--i){const o=this.loop_count_bits[i];n=this._doubleStep(r),t.coeffs.push(n),o&&(n=this._addStep(e,r),t.coeffs.push(n))}const o=this.G2.affine(this._g2MulByQ(e));if(!this.F2.equals(o[2],this.F2.one))throw new Error("Expected values are not equal");const c=this.G2.affine(this._g2MulByQ(o));if(!this.F2.equals(c[2],this.F2.one))throw new Error("Expected values are not equal");return this.loopCountNeg&&(r.Y=this.F2.neg(r.Y)),c[1]=this.F2.neg(c[1]),n=this._addStep(o,r),t.coeffs.push(n),n=this._addStep(c,r),t.coeffs.push(n),t}millerLoop(e,t){let r,n=this.F12.one,o=0;for(let i=this.loop_count_bits.length-2;i>=0;--i){const c=this.loop_count_bits[i];r=t.coeffs[o++],n=this.F12.square(n),n=this._mul_by_024(n,r.ell_0,this.F2.mulScalar(r.ell_VW,e.PY),this.F2.mulScalar(r.ell_VV,e.PX)),c&&(r=t.coeffs[o++],n=this._mul_by_024(n,r.ell_0,this.F2.mulScalar(r.ell_VW,e.PY),this.F2.mulScalar(r.ell_VV,e.PX)))}return this.loopCountNeg&&(n=this.F12.inverse(n)),r=t.coeffs[o++],n=this._mul_by_024(n,r.ell_0,this.F2.mulScalar(r.ell_VW,e.PY),this.F2.mulScalar(r.ell_VV,e.PX)),r=t.coeffs[o++],n=this._mul_by_024(n,r.ell_0,this.F2.mulScalar(r.ell_VW,e.PY),this.F2.mulScalar(r.ell_VV,e.PX)),n}finalExponentiation(e){return this.F12.exp(e,this.final_exponent)}_doubleStep(e){const t=e.X,r=e.Y,n=e.Z,o=this.F2.mulScalar(this.F2.mul(t,r),this.two_inv),c=this.F2.square(r),A=this.F2.square(n),f=this.F2.add(A,this.F2.add(A,A)),l=this.F2.mul(this.twist_coeff_b,f),h=this.F2.add(l,this.F2.add(l,l)),d=this.F2.mulScalar(this.F2.add(c,h),this.two_inv),m=this.F2.sub(this.F2.square(this.F2.add(r,n)),this.F2.add(c,A)),y=this.F2.sub(l,c),v=this.F2.square(t),I=this.F2.square(l);e.X=this.F2.mul(o,this.F2.sub(c,h)),e.Y=this.F2.sub(this.F2.sub(this.F2.square(d),I),this.F2.add(I,I)),e.Z=this.F2.mul(c,m);return{ell_0:this.F2.mul(y,this.twist),ell_VW:this.F2.neg(m),ell_VV:this.F2.add(v,this.F2.add(v,v))}}_addStep(base,e){const t=e.X,r=e.Y,n=e.Z,o=base[0],c=base[1],A=this.F2.sub(t,this.F2.mul(o,n)),f=this.F2.sub(r,this.F2.mul(c,n)),l=this.F2.square(A),h=this.F2.square(f),d=this.F2.mul(A,l),m=this.F2.mul(t,l),y=this.F2.sub(this.F2.add(d,this.F2.mul(n,h)),this.F2.add(m,m));e.X=this.F2.mul(A,y),e.Y=this.F2.sub(this.F2.mul(f,this.F2.sub(m,y)),this.F2.mul(d,r)),e.Z=this.F2.mul(n,d);return{ell_0:this.F2.mul(this.twist,this.F2.sub(this.F2.mul(f,o),this.F2.mul(A,c))),ell_VV:this.F2.neg(f),ell_VW:A}}_mul_by_024(a,e,t,r){let n=a[0][0],o=a[0][1],c=a[0][2],A=a[1][0],f=a[1][1],l=a[1][2];const h=e,d=r,m=t,y=this.F2.mul(n,h),v=this.F2.mul(c,d),I=this.F2.mul(f,m),w=this.F2.add(n,f);let E=this.F2.add(n,c);const C=this.F2.add(this.F2.add(o,A),l);let B=this.F2.mul(o,d),Q=this.F2.add(B,I),_=this.F2.add(this.F2.mul(this.nonResidueF6,Q),y);n=_,Q=this.F2.mul(l,m),B=this.F2.add(B,Q),Q=this.F2.add(Q,v),_=this.F2.mul(this.nonResidueF6,Q),Q=this.F2.mul(o,h),B=this.F2.add(B,Q),_=this.F2.add(_,Q),o=_;let D=this.F2.add(h,d);return Q=this.F2.sub(this.F2.mul(E,D),this.F2.add(y,v)),_=this.F2.mul(A,m),B=this.F2.add(B,_),D=this.F2.add(c,f),c=this.F2.add(Q,_),E=this.F2.add(d,m),Q=this.F2.sub(this.F2.mul(D,E),this.F2.add(v,I)),_=this.F2.mul(this.nonResidueF6,Q),Q=this.F2.mul(A,h),B=this.F2.add(B,Q),_=this.F2.add(_,Q),A=_,Q=this.F2.mul(l,d),B=this.F2.add(B,Q),_=this.F2.mul(this.nonResidueF6,Q),D=this.F2.add(h,m),Q=this.F2.sub(this.F2.mul(w,D),this.F2.add(y,I)),_=this.F2.add(_,Q),f=_,D=this.F2.add(this.F2.add(h,d),m),Q=this.F2.sub(this.F2.mul(C,D),B),l=Q,[[n,o,c],[A,f,l]]}_g2MulByQ(p){const e=[p[0][0],this.F1.mul(p[0][1],this.frobenius_coeffs_c1_1)],t=[p[1][0],this.F1.mul(p[1][1],this.frobenius_coeffs_c1_1)],r=[p[2][0],this.F1.mul(p[2][1],this.frobenius_coeffs_c1_1)];return[this.F2.mul(this.twist_mul_by_q_X,e),this.F2.mul(this.twist_mul_by_q_Y,t),r]}}},function(e,t){e.exports=function(e){return Map.prototype.entries.call(e)}},function(e,t,r){var n=r(694),o="object"==typeof self&&self&&self.Object===Object&&self,c=n||o||Function("return this")();e.exports=c},function(e,t,r){"use strict";r.r(t),r.d(t,"Wallet",(function(){return _})),r.d(t,"verifyMessage",(function(){return D})),r.d(t,"verifyTypedData",(function(){return M}));var n=r(30),o=r(120),c=r(115),A=r(1),f=r(405),l=r(591),h=r(62),d=r(31),m=r(3),y=r(217),v=r(107),I=r(211),w=r(250),E=r(53),C=r(5);var B=function(e,t,r,n){return new(r||(r=Promise))((function(o,c){function A(e){try{l(n.next(e))}catch(e){c(e)}}function f(e){try{l(n.throw(e))}catch(e){c(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(A,f)}l((n=n.apply(e,t||[])).next())}))};const Q=new C.Logger("wallet/5.4.0");class _ extends c.a{constructor(e,t){if(Q.checkNew(new.target,_),super(),null!=(r=e)&&Object(A.isHexString)(r.privateKey,32)&&null!=r.address){const t=new v.SigningKey(e.privateKey);if(Object(m.defineReadOnly)(this,"_signingKey",(()=>t)),Object(m.defineReadOnly)(this,"address",Object(E.computeAddress)(this.publicKey)),this.address!==Object(n.getAddress)(e.address)&&Q.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),function(e){const t=e.mnemonic;return t&&t.phrase}(e)){const t=e.mnemonic;Object(m.defineReadOnly)(this,"_mnemonic",(()=>({phrase:t.phrase,path:t.path||h.defaultPath,locale:t.locale||"en"})));const r=this.mnemonic,n=h.HDNode.fromMnemonic(r.phrase,null,r.locale).derivePath(r.path);Object(E.computeAddress)(n.privateKey)!==this.address&&Q.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else Object(m.defineReadOnly)(this,"_mnemonic",(()=>null))}else{if(v.SigningKey.isSigningKey(e))"secp256k1"!==e.curve&&Q.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),Object(m.defineReadOnly)(this,"_signingKey",(()=>e));else{"string"==typeof e&&e.match(/^[0-9a-f]*$/i)&&64===e.length&&(e="0x"+e);const t=new v.SigningKey(e);Object(m.defineReadOnly)(this,"_signingKey",(()=>t))}Object(m.defineReadOnly)(this,"_mnemonic",(()=>null)),Object(m.defineReadOnly)(this,"address",Object(E.computeAddress)(this.publicKey))}var r;t&&!o.b.isProvider(t)&&Q.throwArgumentError("invalid provider","provider",t),Object(m.defineReadOnly)(this,"provider",t||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(e){return new _(this,e)}signTransaction(e){return Object(m.resolveProperties)(e).then((t=>{null!=t.from&&(Object(n.getAddress)(t.from)!==this.address&&Q.throwArgumentError("transaction from address mismatch","transaction.from",e.from),delete t.from);const r=this._signingKey().signDigest(Object(d.keccak256)(Object(E.serialize)(t)));return Object(E.serialize)(t,r)}))}signMessage(e){return B(this,void 0,void 0,(function*(){return Object(A.joinSignature)(this._signingKey().signDigest(Object(f.a)(e)))}))}_signTypedData(e,t,r){return B(this,void 0,void 0,(function*(){const n=yield l.a.resolveNames(e,t,r,(e=>(null==this.provider&&Q.throwError("cannot resolve ENS names without a provider",C.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:e}),this.provider.resolveName(e))));return Object(A.joinSignature)(this._signingKey().signDigest(l.a.hash(n.domain,t,n.value)))}))}encrypt(e,t,r){if("function"!=typeof t||r||(r=t,t={}),r&&"function"!=typeof r)throw new Error("invalid callback");return t||(t={}),Object(I.c)(this,e,t,r)}static createRandom(e){let t=Object(y.a)(16);e||(e={}),e.extraEntropy&&(t=Object(A.arrayify)(Object(A.hexDataSlice)(Object(d.keccak256)(Object(A.concat)([t,e.extraEntropy])),0,16)));const r=Object(h.entropyToMnemonic)(t,e.locale);return _.fromMnemonic(r,e.path,e.locale)}static fromEncryptedJson(e,t,r){return Object(w.decryptJsonWallet)(e,t,r).then((e=>new _(e)))}static fromEncryptedJsonSync(e,t){return new _(Object(w.decryptJsonWalletSync)(e,t))}static fromMnemonic(e,path,t){return path||(path=h.defaultPath),new _(h.HDNode.fromMnemonic(e,null,t).derivePath(path))}}function D(e,t){return Object(E.recoverAddress)(Object(f.a)(e),t)}function M(e,t,r,n){return Object(E.recoverAddress)(l.a.hash(e,t,r),n)}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));const n="abi/5.4.1"},function(e,t,r){"use strict";r.d(t,"a",(function(){return A})),r.d(t,"b",(function(){return l}));var n=r(346),o=r(185),c=r.n(o);function A(e){let t=new Uint8Array(e);if("undefined"!=typeof window)if(void 0!==window.crypto)window.crypto.getRandomValues(t);else for(let i=0;i>>0;else c.a.randomFillSync(t);return t}let f=null;function l(){return f||(f=new n.a(function(){const e=A(32),t=new Uint32Array(e.buffer),r=[];for(let i=0;i<8;i++)r.push(t[i]);return r}()),f)}},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return f}));var n=r(356),o=r.n(n),c=r(360),A=r(14);async function f(t){if(!t&&e.curve_bn128)return e.curve_bn128;const r={name:"bn128",wasm:o.a.bn128_wasm,q:A.e("21888242871839275222246405745257275088696311157297823662689037894645226208583"),r:A.e("21888242871839275222246405745257275088548364400416034343698204186575808495617"),n8q:32,n8r:32,cofactorG2:A.e("30644e72e131a029b85045b68181585e06ceecda572a2489345f2299c0f9fa8d",16),singleThread:!!t},n=await Object(c.a)(r);return n.terminate=async function(){r.singleThread||(e.curve_bn128=null,await this.tm.terminate())},t||(e.curve_bn128=n),n}e.curve_bn128=null}).call(this,r(36))},function(e,t,r){"use strict";function n(e){try{return e()}catch(e){}}r.d(t,"a",(function(){return n}))},,,function(e,t,r){"use strict";function n(source,e){if(null==source)return{};var t,i,r=function(source,e){if(null==source)return{};var t,i,r={},n=Object.keys(source);for(i=0;i=0||(r[t]=source[t]);return r}(source,e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,t)&&(r[t]=source[t])}return r}r.d(t,"a",(function(){return n}))},function(e,t,r){"use strict";function n(e,t,r,a){(S(e)||k(e))&&("family"in e||"graphite"in e)||M(`${t}: expect ${r} to be a unit (store, event or effect)${a}`)}function o(e,t,a){if(Array.isArray(e))for(let r=0;rDe?((e,t,r,a)=>{let n=De,o=null;if(t)for(o=De;o&&o.template!==t;)o=ue(o);Se(o);let s=e.create(r,a);return Se(n),s})(r,n,e,t):r.create(e,t);r.graphite=a({meta:Ke("event",r,t,e),regional:1}),r.create=e=>(c(Be?Be.find(r):r,e),e),r.watch=P(ze,r),r.map=e=>{let t,a;S(e)&&(t=e,a=e.name,e=e.fn);let n=h(Re(r,a),t);return Ze(r,n,C,e),n},r.filter=e=>We(r,"filter",e.fn?e:e.fn,[z({fn:$})]),r.filterMap=e=>We(r,"filterMap",e,[G({fn:$}),J.defined()]),r.prepend=e=>{let t=h("* → "+r.shortName,{parent:ue(r)}),a=le();return a&&ee(t).seq.push(a.upward),Ze(t,r,"prepend",e),Xe(r,t),t};let n=le();return r}function u(e,t){function r(e,t){p.off(e),se(p).set(e,Je($e(e,p,"on",1,t,h)))}let s=K(e),n=K(e),i=Ye("updates"),A=le();s.after=[{type:"copy",to:n}],A&&A.plain.push(s,n);let f=s.id,p={subscribers:new Map,updates:i,defaultState:e,stateRef:s,getState(){let e,t=s;if(De){let t=De;for(;t&&!t.reg[f];)t=ue(t);t&&(e=t)}return!e&&Be&&Be.reg[f]&&(e=Be),e&&(t=e.reg[f]),Y(t)},setState(e){let t;Be&&(t=Be.nodeMap[ee(p).id]),t||(t=p),c({target:t,params:e,defer:1})},reset(...e){for(let t of e)p.on(t,(()=>p.defaultState));return p},on(e,t){if(o(e,".on","first argument"),Array.isArray(e))for(let n of e)r(n,t);else r(e,t);return p},off(e){let t=se(p).get(e);return t&&(t(),se(p).delete(e)),p},map(e,t){let r,a,n;S(e)&&(r=e,a=e.name,t=e.firstState,e=e.fn);let o=p.getState(),c=le();c?n=null:void 0!==o&&(n=e(o,t));let i=u(n,{name:Re(p,a),config:r,strict:0}),A=$e(p,i,C,0,e);return ne(i).before=[{type:C,fn:e,from:s}],c&&(Te(c.plain,s)||Te(A.seq,c.loader)||A.seq.unshift(c.loader)),i},watch(e,t){if(!t||!B(e)){let t=ze(p,e),r=le();return r?r.watch.push({of:s,fn:e}):e(p.getState()),t}return k(t)||M("second argument should be a function"),e.watch((e=>t(p.getState(),e)))}},l=Ke(w,p,t),h=p.defaultConfig.updateFilter;return p.graphite=a({scope:{state:s},node:[J.defined(),J.changed({store:n}),h&&H({store:n,to:"a"}),h&&z({fn:(e,t,{a:r})=>h(e,r)}),X({store:s}),X({store:n})],child:i,meta:l,regional:1}),dt&&void 0===e&&M("current state can't be undefined, use null instead"),Ae(p,[i]),p}function p(...e){let t,r,a;Ne(e[0],((t,r)=>{a=t,e=r}));let n,o,s=e[e.length-1];if(k(s)?(r=e.slice(0,-1),t=s):r=e,1===r.length){let e=r[0];_(e)||(n=e,o=1)}return o||(n=r,t&&(t=et(t))),S(n)||M("shape should be an object"),tt(Array.isArray(n),n,a,t)}function d(){let e={};return e.req=new Promise(((t,r)=>{e.rs=t,e.rj=r})),e.req.catch((()=>{})),e}function m(e,t){let r=h(e,t),n=r.defaultConfig.handler||(()=>M(`no handler used in ${r.getType()}`)),s=ee(r);s.meta.onCopy=["runner"],s.meta.unit=r.kind="effect",r.use=e=>(k(e)||M(".use argument should be a function"),n=e,r);let o=r.finally=Ye("finally"),i=r.done=o.filterMap({named:"done",fn({status:e,params:t,result:r}){if("done"===e)return{params:t,result:r}}}),A=r.fail=o.filterMap({named:"fail",fn({status:e,params:t,error:r}){if("fail"===e)return{params:t,error:r}}}),p=r.doneData=i.map({named:"doneData",fn:({result:e})=>e}),f=r.failData=A.map({named:"failData",fn:({error:e})=>e}),l=a({scope:{getHandler:r.use.getCurrent=()=>n,finally:o},node:[V({fn({params:e,req:t},{finally:r,getHandler:a},n){let o,s=nt({params:e,req:t,ok:1,anyway:r,stack:n}),c=nt({params:e,req:t,ok:0,anyway:r,stack:n});try{o=a()(e)}catch(e){return void c(e)}S(o)&&k(o.then)?o.then(s,c):s(o)}})],meta:{op:"fx",fx:"runner",onCopy:["finally"]}});s.scope.runner=l,s.seq.push(G({fn:(e,t,r)=>ue(r)?{params:e,req:{rs(e){},rj(e){}}}:e}),V({fn:(e,{runner:t},r)=>(c({target:t,params:e,defer:1,forkPage:ce(r)}),e.params)})),r.create=e=>{let t=d(),a={params:e,req:t};if(Be){if(!_e){let e=Be;t.req.finally((()=>{Me(e)})).catch((()=>{}))}c(Be.find(r),a)}else c(r,a);return t.req};let g=r.inFlight=u(0,{named:"inFlight"}).on(r,(e=>e+1)).on(o,(e=>e-1)),m=r.pending=g.map({fn:e=>e>0,named:"pending"});return Ae(r,[o,i,A,p,f,m,g,l]),r}function b(e,t){let a=h(t||A(e,"merge"));return o(e,"merge","first argument"),qe({from:e,to:a,meta:{op:"merge"}}),a}function y(...e){let t,r,n,s,[[c,i,A],f]=Pe(e);void 0===i&&S(c)&&(e=>{let t=0;return l(ot,(r=>{r in e&&(null==e[r]&&M(`sample: ${r} should be defined`),t=1)})),t})(c)&&(i=c.clock,A=c.fn,s=c.greedy,t=c.target,r=c.name,n=c.sid,c=c.source);let d=1;void 0===c&&(o(i,"sample","clock"),Array.isArray(i)&&(i=b(i)),c=i,d=0),d&&!B(c)&&(c=p(c)),void 0===i&&(i=c),o(i,"sample","clock"),r=f||r||c.shortName;let g=le(),m=!!t;t||(_(c)&&_(i)?t=u(A?A(Y(ne(c)),Y(ne(i))):Y(ne(c)),{name:r,sid:n}):(t=h(r),g&&ee(t).seq.push(g.loader)));let y=m&&B(t)&&ee(t).meta.nativeTemplate;if(_(c)){let e=ne(c);Ae(c,[Ge(i,t,{scope:{fn:A,targetTemplate:y},node:[g&&g.loader,!s&&U({priority:"sampler"}),H({store:e,to:A?"a":"stack"}),A&&G({fn:W}),g&&m&&g.upward],meta:{op:"sample",sample:w}})]),g&&(Te(g.plain,e)||Te(g.closure,e)||g.closure.push(e))}else{let e=K(0),r=K(),n=K();g&&g.plain.push(e,r,n),a({parent:c,node:[X({store:r}),H({from:"value",store:1,target:e})],family:{owners:[c,t,i],links:t},meta:{op:"sample",sample:"source"},regional:1}),Ae(c,[Ge(i,t,{scope:{fn:A,targetTemplate:y},node:[g&&g.loader,X({store:n}),H({store:e}),z({fn:e=>e}),!s&&U({priority:"sampler"}),H({store:r}),H({store:n,to:"a"}),A&&G({fn:Z}),g&&m&&g.upward],meta:{op:"sample",sample:"clock"}})])}return t}function v(...e){let t={op:"guard"},r="guard",[[n,s],c]=Pe(e);c&&(t.config=c,c.name&&(r=c.name)),s||(s=n,n=s.source);let{filter:i,greedy:A,clock:u,name:f=r}=s,l=s.target||h(f,t.config),d=B(i),g=1;return void 0===n&&(o(u,"guard","clock"),Array.isArray(u)&&(u=b(u)),n=u,g=0),g&&!B(n)&&(n=p(n)),u&&(o(u,"guard","clock"),n=y({source:n,clock:u,greedy:A,fn:d?null:(e,t)=>({source:e,clock:t})})),o(l,"guard","target"),d?y({source:i,clock:n,target:a({node:[z({fn:({guard:e})=>e}),G({fn:({data:e})=>e})],child:l,meta:t,family:{owners:[n,i,l,...[].concat(u||[])],links:l},regional:1}),fn:(e,t)=>({guard:e,data:t}),greedy:A,name:f}):(k(i)||M("`filter` should be function or unit"),Ge(n,l,{scope:{fn:i},node:u?[z({fn:({source:e,clock:t},{fn:r})=>r(e,t)}),G({fn:({source:e})=>e})]:[z({fn:$})],meta:t})),l}r.d(t,"a",(function(){return m})),r.d(t,"b",(function(){return h})),r.d(t,"c",(function(){return u})),r.d(t,"d",(function(){return qe})),r.d(t,"e",(function(){return v}));let I="undefined"!=typeof Symbol&&Symbol.observable||"@@observable",w="store",E="effect",C="map",B=e=>(k(e)||S(e))&&"kind"in e;const Q=e=>t=>B(t)&&t.kind===e;let _=Q(w),D=(Q("event"),Q(E),Q("domain"));let M=e=>{throw Error(e)},S=e=>"object"==typeof e&&null!==e,k=e=>"function"==typeof e,x=e=>{S(e)||k(e)||M("expect first argument be an object")};const O=()=>{let e=0;return()=>(++e).toString(36)};let F=O(),R=O(),N=O(),P=(e,t)=>e.bind(null,t),T=(e,t,r)=>e.bind(null,t,r);const L=(e,t,r)=>({id:R(),type:e,data:r,hasRef:t});let j=0,U=({priority:e="barrier"})=>L("barrier",0,{barrierID:++j,priority:e}),H=({from:e=w,store:t,target:r,to:a=(r?w:"stack")})=>L("mov",e===w,{from:e,store:t,to:a,target:r}),J={defined:()=>L("check",0,{type:"defined"}),changed:({store:e})=>L("check",1,{type:"changed",store:e})},G=T(L,"compute",0),z=T(L,"filter",0),V=T(L,"run",0),X=({store:e})=>H({from:"stack",target:e});let K=e=>({id:R(),current:e}),Y=({current:e})=>e,Z=(e,{fn:t},{a:r})=>t(e,r),W=(e,{fn:t},{a:r})=>t(r,e),$=(e,{fn:t})=>t(e),ee=e=>e.graphite||e,te=e=>e.family.owners,re=e=>e.family.links,ne=e=>e.stateRef,ie=e=>e.config,oe=e=>e.ɔ,ae=e=>e.value,se=e=>e.subscribers,ue=e=>e.parent,ce=e=>e.forkPage,Ae=(e,t)=>{let r=ee(e);for(let e=0;efe&&fe.template,he=e=>(e&&fe&&fe.sidRoot&&(e=`${fe.sidRoot}ɔ${e}`),e);const de=(e=[])=>{let t=[];if(Array.isArray(e))for(let r=0;r{let n;e&&(n=r.store,a[n.id]=n),"mov"===t&&r.to===w&&(n=r.target,a[n.id]=n)},pe=null;const me=(e,t)=>{if(!e)return t;if(!t)return e;let r,a=e.v.type===t.v.type;return(a&&e.v.id>t.v.id||!a&&"sampler"===e.v.type)&&(r=e,e=t,t=r),r=me(e.r,t),e.r=e.l,e.l=r,e},be=[];let ye=0;for(;ye<5;)be.push({first:null,last:null,size:0}),ye+=1;const ve=()=>{for(let e=0;e<5;e++){let t=be[e];if(t.size>0){if(2===e||3===e){t.size-=1;let e=pe.v;return pe=me(pe.l,pe.r),e}1===t.size&&(t.last=null);let r=t.first;return t.first=r.r,t.size-=1,r.v}}},Ie=(e,t,r,a,n,o)=>we(0,{a:null,b:null,node:r,parent:a,value:n,page:t,forkPage:o},e),we=(e,t,r,a=0)=>{let n=Ee(r),o=be[n],s={v:{idx:e,stack:t,type:r,id:a},l:0,r:0};2===n||3===n?pe=me(pe,s):(0===o.size?o.first=s:o.last.r=s,o.last=s),o.size+=1},Ee=e=>{switch(e){case"child":return 0;case"pure":return 1;case"barrier":return 2;case"sampler":return 3;case E:return 4;default:return-1}},Ce=new Set;let Be,Qe=1,_e=0,De=null,Me=e=>{Be=e},Se=e=>{De=e};const ke=(e,t)=>{if(e){for(;e&&!e.reg[t];)e=ue(e);if(e)return e}return null},xe=(e,t,r)=>(ke(e,r)||t).reg[r],Oe=(e,{fn:t},r)=>{try{return t(ae(r),e.scope,r)}catch(t){console.error(t),e.fail=1}};let Fe=(e,t)=>""+e.shortName+t,Re=(e,t)=>null==t?Fe(e," → *"):t,Ne=(e,t)=>{x(e),oe(e)&&t(ie(e),oe(e))},Pe=e=>{let t;return Ne(e[0],((r,a)=>{t=r,e=a})),[e,t]},Te=(e,t)=>e.includes(t),rt=(e,t)=>{let r=e.indexOf(t);-1!==r&&e.splice(r,1)};const Le=(e,t)=>{rt(e.next,t),rt(te(e),t),rt(re(e),t)},je=(e,t,r)=>{let a;e.next.length=0,e.seq.length=0,e.scope=null;let n=re(e);for(;a=n.pop();)Le(a,e),(t||r&&!e.meta.sample||"crosslink"===a.family.type)&&je(a,t,"on"!==a.meta.op&&r);for(n=te(e);a=n.pop();)Le(a,e),r&&"crosslink"===a.family.type&&je(a,t,"on"!==a.meta.op&&r)},Ue=e=>e.clear();let He=(e,{deep:t}={})=>{let r=0;if(e.ownerSet&&e.ownerSet.delete(e),_(e))Ue(se(e));else if(D(e)){r=1;let t=e.history;Ue(t.events),Ue(t.effects),Ue(t.stores),Ue(t.domains)}je(ee(e),!!t,r)},Je=e=>{let t=T(He,e,void 0);return t.unsubscribe=t,t},Ge=(e,t,{node:r,scope:n,meta:o})=>a({node:r,parent:e,child:t,scope:n,meta:o,family:{owners:[e,t],links:t},regional:1}),qe=e=>{let t;Ne(e,((r,a)=>{t=r,e=a}));let{from:r,to:n,meta:s={op:"forward"}}=e;return o(r,"forward",'"from"'),o(n,"forward",'"to"'),t&&(s.config=t),Je(a({parent:r,child:n,meta:s,family:{},regional:1}))},ze=(e,t)=>{if(k(t)||M(".watch argument should be a function"),Be){let t=Be.nodeMap[ee(e).id];t&&(e=t)}return Je(a({scope:{fn:t},node:[V({fn:$})],parent:e,meta:{op:"watch"},family:{owners:e},regional:1}))};const Ve=(e,t)=>(S(e)&&(Ve(ie(e),t),null!=e.name&&(S(e.name)?Ve(e.name,t):k(e.name)?t.handler=e.name:t.name=e.name),e.loc&&(t.loc=e.loc),(e.sid||null===e.sid)&&(t.sid=e.sid),e.handler&&(t.handler=e.handler),e.updateFilter&&(t.updateFilter=e.updateFilter),ue(e)&&(t.parent=ue(e)),"strict"in e&&(t.strict=e.strict),e.named&&(t.named=e.named),Ve(oe(e),t)),t);let dt,Xe=(e,t,r="event")=>{ue(e)&&ue(e).hooks[r](t)},Ke=(e,t,r,a)=>{let n=Ve({name:a,config:r},{}),o="domain"===e,s=F(),{parent:i=null,sid:c=null,strict:A=1,named:u=null}=n,p=u||n.name||(o?"":s),l=f(p,i),h={unit:t.kind=e,name:t.shortName=p,sid:t.sid=he(c),named:u,unitId:t.id=s};if(t.parent=i,t.compositeName=l,t.defaultConfig=n,t.thru=e=>e(t),t.getType=()=>l.fullName,!o){t.subscribe=e=>(x(e),t.watch(k(e)?e:t=>{e.next&&e.next(t)})),t[I]=()=>t;let e=le();e&&(h.nativeTemplate=e)}return dt=A,h},Ye=e=>h({named:e});const Ze=(e,t,r,a)=>Ge(e,t,{scope:{fn:a},node:[G({fn:$})],meta:{op:r}}),We=(e,t,r,a)=>{let n;S(r)&&(n=r,r=r.fn);let o=h(Fe(e," →? *"),n);return Ge(e,o,{scope:{fn:r},node:a,meta:{op:t}}),o},$e=(e,t,r,a,n,o)=>{let s=ne(t),c=[H({store:s,to:"a"}),G({fn:a?W:Z}),J.defined(),J.changed({store:s}),o&&z({fn:(e,t,{a:r})=>o(e,r)}),X({store:s})],i=le();if(i&&(c.unshift(i.loader),c.push(i.upward),_(e))){let t=ne(e);Te(i.plain,t)||(Te(i.closure,t)||i.closure.push(t),s.before||(s.before=[]),s.before.push({type:"closure",of:t}))}return Ge(e,t,{scope:{fn:n},node:c,meta:{op:r}})},et=e=>t=>e(...t),tt=(e,t,r,a)=>{let n=e?e=>e.slice():e=>({...e}),s=e?[]:{},o=le(),c=n(s),f=K(c),p=K(1);f.type=e?"list":"shape",o&&o.plain.push(f,p);let l=u(c,{name:r||A(t)});ee(l).meta.isCombine=1;let h=[J.defined(),H({store:f,to:"a"}),z({fn:(e,{key:t},{a:r})=>e!==r[t]}),H({store:p,to:"b"}),G({fn(e,{clone:t,key:r},a){a.b&&(a.a=t(a.a)),a.a[r]=e}}),H({from:"a",target:f}),H({from:"value",store:0,target:p}),U({priority:"barrier"}),H({from:"value",store:1,target:p}),H({store:f}),a&&G({fn:a}),J.changed({store:ne(l)})],d=f.before=[];return i(t,((e,t)=>{if(!_(e))return void(c[t]=s[t]=e);s[t]=e.defaultState,c[t]=e.getState();let r=Ge(e,l,{scope:{key:t,clone:n},node:h,meta:{op:"combine"}}),a=ne(e);d.push({type:"field",field:t,from:a}),o&&(Te(o.plain,a)||r.seq.unshift(o.loader))})),l.defaultShape=t,f.after=[a?{type:C,to:ne(l),fn:a}:{type:"copy",to:ne(l)}],o||(l.defaultState=a?ne(l).current=a(c):s),l};let nt=({params:e,req:t,ok:r,anyway:a,stack:n})=>s=>c({target:[a,it],params:[r?{status:"done",params:e,result:s}:{status:"fail",params:e,error:s},{fn:r?t.rs:t.rj,value:s}],defer:1,page:n.page,forkPage:ce(n)}),it=a({node:[V({fn({fn:e,value:t}){e(t)}})],meta:{op:"fx",fx:"sidechain"}});const ot=["source","clock","target"]},function(e,t,r){var n=r(88),o=r(254),c=r(192),A=r(123),f=r(256),l=r(92),h=r(521),d=Object.getOwnPropertyDescriptor;t.f=n?d:function(e,t){if(e=A(e),t=f(t),h)try{return d(e,t)}catch(e){}if(l(e,t))return c(!o.f.call(e,t),e[t])}},function(e,t,r){var n=r(108);e.exports=n("navigator","userAgent")||""},function(e,t,r){var n,o=r(48),c=r(529),A=r(368),f=r(223),html=r(530),l=r(260),h=r(262),d=h("IE_PROTO"),m=function(){},y=function(content){return"